@rpamis/comet 0.4.0-beta.17 → 0.4.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -24
- package/assets/manifest.json +2 -1
- package/assets/skills/comet/scripts/comet-archive.mjs +128 -128
- package/assets/skills/comet/scripts/comet-entry-runtime.mjs +78 -78
- package/assets/skills/comet/scripts/comet-guard.mjs +144 -144
- package/assets/skills/comet/scripts/comet-handoff.mjs +109 -109
- package/assets/skills/comet/scripts/comet-hook-guard.mjs +130 -130
- package/assets/skills/comet/scripts/comet-hook-router.mjs +115 -115
- package/assets/skills/comet/scripts/comet-resume-probe.mjs +85 -85
- package/assets/skills/comet/scripts/comet-runtime.mjs +188 -187
- package/assets/skills/comet/scripts/comet-state.mjs +117 -117
- package/assets/skills/comet/scripts/comet-yaml-validate.mjs +71 -71
- package/assets/skills/comet-build/SKILL.md +15 -56
- package/assets/skills/comet-classic/SKILL.md +14 -8
- package/assets/skills/comet-classic/reference/comet-yaml-fields.md +1 -1
- package/assets/skills/comet-classic/reference/scripts.md +3 -1
- package/assets/skills/comet-classic/reference/workspace.md +23 -0
- package/assets/skills/comet-native/SKILL.md +13 -10
- package/assets/skills/comet-native/reference/artifacts.md +3 -2
- package/assets/skills/comet-native/reference/commands.md +1 -1
- package/assets/skills/comet-native/reference/recovery.md +1 -1
- package/assets/skills/comet-native/reference/workspace.md +4 -4
- package/assets/skills/comet-native/scripts/comet-native-archive.mjs +97 -97
- package/assets/skills/comet-native/scripts/comet-native-doctor.mjs +146 -146
- package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +100 -100
- package/assets/skills/comet-native/scripts/comet-native-init.mjs +85 -85
- package/assets/skills/comet-native/scripts/comet-native-new.mjs +115 -115
- package/assets/skills/comet-native/scripts/comet-native-next.mjs +118 -118
- package/assets/skills/comet-native/scripts/comet-native-root.mjs +107 -107
- package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +154 -154
- package/assets/skills/comet-native/scripts/comet-native-select.mjs +133 -133
- package/assets/skills/comet-native/scripts/comet-native-show.mjs +109 -109
- package/assets/skills/comet-native/scripts/comet-native-spec.mjs +87 -87
- package/assets/skills/comet-native/scripts/comet-native-status.mjs +109 -109
- package/assets/skills/comet-open/SKILL.md +24 -5
- package/assets/skills-zh/comet-build/SKILL.md +15 -56
- package/assets/skills-zh/comet-classic/SKILL.md +14 -8
- package/assets/skills-zh/comet-classic/reference/comet-yaml-fields.md +1 -1
- package/assets/skills-zh/comet-classic/reference/scripts.md +3 -1
- package/assets/skills-zh/comet-classic/reference/workspace.md +23 -0
- package/assets/skills-zh/comet-native/SKILL.md +13 -10
- package/assets/skills-zh/comet-native/reference/artifacts.md +3 -2
- package/assets/skills-zh/comet-native/reference/commands.md +1 -1
- package/assets/skills-zh/comet-native/reference/recovery.md +1 -1
- package/assets/skills-zh/comet-native/reference/workspace.md +4 -4
- package/assets/skills-zh/comet-open/SKILL.md +24 -5
- package/dist/app/cli/index.js +20 -1
- package/dist/app/cli/index.js.map +1 -1
- package/dist/app/commands/classic.d.ts.map +1 -1
- package/dist/app/commands/classic.js +2 -0
- package/dist/app/commands/classic.js.map +1 -1
- package/dist/app/commands/eval.d.ts +9 -2
- package/dist/app/commands/eval.d.ts.map +1 -1
- package/dist/app/commands/eval.js +293 -48
- package/dist/app/commands/eval.js.map +1 -1
- package/dist/app/commands/init.d.ts.map +1 -1
- package/dist/app/commands/init.js +2 -1
- package/dist/app/commands/init.js.map +1 -1
- package/dist/app/commands/update.d.ts.map +1 -1
- package/dist/app/commands/update.js +4 -1
- package/dist/app/commands/update.js.map +1 -1
- package/dist/domains/comet-classic/classic-cli.d.ts +1 -1
- package/dist/domains/comet-classic/classic-cli.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-cli.js +3 -0
- package/dist/domains/comet-classic/classic-cli.js.map +1 -1
- package/dist/domains/comet-classic/classic-current-change.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-current-change.js +29 -3
- package/dist/domains/comet-classic/classic-current-change.js.map +1 -1
- package/dist/domains/comet-classic/classic-guard.js +2 -2
- package/dist/domains/comet-classic/classic-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-hook-guard.js +14 -1
- package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-state-command.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state-command.js +31 -8
- package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
- package/dist/domains/comet-classic/classic-workspace-command.d.ts +3 -0
- package/dist/domains/comet-classic/classic-workspace-command.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-workspace-command.js +45 -0
- package/dist/domains/comet-classic/classic-workspace-command.js.map +1 -0
- package/dist/domains/comet-classic/classic-workspace.d.ts +38 -0
- package/dist/domains/comet-classic/classic-workspace.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-workspace.js +315 -0
- package/dist/domains/comet-classic/classic-workspace.js.map +1 -0
- package/dist/domains/comet-entry/hook-adapter.d.ts.map +1 -1
- package/dist/domains/comet-entry/hook-adapter.js +1 -0
- package/dist/domains/comet-entry/hook-adapter.js.map +1 -1
- package/dist/domains/comet-entry/hook-router-entry.d.ts +2 -0
- package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -1
- package/dist/domains/comet-entry/hook-router-entry.js +21 -1
- package/dist/domains/comet-entry/hook-router-entry.js.map +1 -1
- package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -1
- package/dist/domains/comet-entry/init-workflow.js +13 -5
- package/dist/domains/comet-entry/init-workflow.js.map +1 -1
- package/dist/domains/comet-native/index.d.ts +1 -0
- package/dist/domains/comet-native/index.d.ts.map +1 -1
- package/dist/domains/comet-native/index.js +1 -0
- package/dist/domains/comet-native/index.js.map +1 -1
- package/dist/domains/comet-native/native-children.d.ts +49 -0
- package/dist/domains/comet-native/native-children.d.ts.map +1 -0
- package/dist/domains/comet-native/native-children.js +388 -0
- package/dist/domains/comet-native/native-children.js.map +1 -0
- package/dist/domains/comet-native/native-cli-help.d.ts.map +1 -1
- package/dist/domains/comet-native/native-cli-help.js +3 -3
- package/dist/domains/comet-native/native-cli-help.js.map +1 -1
- package/dist/domains/comet-native/native-doctor-command.d.ts.map +1 -1
- package/dist/domains/comet-native/native-doctor-command.js +10 -5
- package/dist/domains/comet-native/native-doctor-command.js.map +1 -1
- package/dist/domains/comet-native/native-hook-guard.d.ts.map +1 -1
- package/dist/domains/comet-native/native-hook-guard.js +41 -2
- package/dist/domains/comet-native/native-hook-guard.js.map +1 -1
- package/dist/domains/comet-native/native-next-command.d.ts.map +1 -1
- package/dist/domains/comet-native/native-next-command.js +85 -5
- package/dist/domains/comet-native/native-next-command.js.map +1 -1
- package/dist/domains/comet-native/native-portable-continuation.d.ts +3 -2
- package/dist/domains/comet-native/native-portable-continuation.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-continuation.js +63 -1
- package/dist/domains/comet-native/native-portable-continuation.js.map +1 -1
- package/dist/domains/comet-native/native-portable-runtime.d.ts +5 -0
- package/dist/domains/comet-native/native-portable-runtime.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-runtime.js +110 -4
- package/dist/domains/comet-native/native-portable-runtime.js.map +1 -1
- package/dist/domains/comet-native/native-portable-state.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-state.js +13 -0
- package/dist/domains/comet-native/native-portable-state.js.map +1 -1
- package/dist/domains/comet-native/native-portable-status.d.ts +3 -0
- package/dist/domains/comet-native/native-portable-status.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-status.js +9 -1
- package/dist/domains/comet-native/native-portable-status.js.map +1 -1
- package/dist/domains/comet-native/native-portable-types.d.ts +1 -0
- package/dist/domains/comet-native/native-portable-types.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-types.js.map +1 -1
- package/dist/domains/comet-native/native-show-command.d.ts.map +1 -1
- package/dist/domains/comet-native/native-show-command.js +2 -1
- package/dist/domains/comet-native/native-show-command.js.map +1 -1
- package/dist/domains/comet-native/native-workspace-preparation.d.ts.map +1 -1
- package/dist/domains/comet-native/native-workspace-preparation.js +192 -133
- package/dist/domains/comet-native/native-workspace-preparation.js.map +1 -1
- package/dist/domains/dashboard/collector.d.ts +1 -1
- package/dist/domains/dashboard/collector.d.ts.map +1 -1
- package/dist/domains/dashboard/collector.js +102 -87
- package/dist/domains/dashboard/collector.js.map +1 -1
- package/dist/domains/dashboard/native-adapter.d.ts +20 -0
- package/dist/domains/dashboard/native-adapter.d.ts.map +1 -1
- package/dist/domains/dashboard/native-adapter.js +11 -0
- package/dist/domains/dashboard/native-adapter.js.map +1 -1
- package/dist/domains/dashboard/native-collector.d.ts +1 -0
- package/dist/domains/dashboard/native-collector.d.ts.map +1 -1
- package/dist/domains/dashboard/native-collector.js +304 -55
- package/dist/domains/dashboard/native-collector.js.map +1 -1
- package/dist/domains/dashboard/native-legacy-adapter.d.ts +12 -5
- package/dist/domains/dashboard/native-legacy-adapter.d.ts.map +1 -1
- package/dist/domains/dashboard/native-legacy-adapter.js +12 -0
- package/dist/domains/dashboard/native-legacy-adapter.js.map +1 -1
- package/dist/domains/dashboard/server.d.ts.map +1 -1
- package/dist/domains/dashboard/server.js +5 -3
- package/dist/domains/dashboard/server.js.map +1 -1
- package/dist/domains/dashboard/types.d.ts +5 -0
- package/dist/domains/dashboard/types.d.ts.map +1 -1
- package/dist/domains/dashboard/web/assets/abnfDiagram-N423BO3Z-B5cFR6hS.js +1 -0
- package/dist/domains/dashboard/web/assets/arc-CVQDtMsu.js +1 -0
- package/dist/domains/dashboard/web/assets/architectureDiagram-T3A2C74G-C0v0kULK.js +36 -0
- package/dist/domains/dashboard/web/assets/blockDiagram-VBNYF7ZC-DpHLuxu4.js +132 -0
- package/dist/domains/dashboard/web/assets/{c4Diagram-AAUBKEIU-BL17BIb8.js → c4Diagram-5PPSVZJV-BHnFxUs1.js} +1 -1
- package/dist/domains/dashboard/web/assets/channel-eM0x3m1G.js +1 -0
- package/dist/domains/dashboard/web/assets/{chunk-ND2GUHAM-XWLMOyd4.js → chunk-2GRJ4B5K-CGC9gh5n.js} +1 -1
- package/dist/domains/dashboard/web/assets/{chunk-QZHKN3VN-4drjXzHQ.js → chunk-2Q5K7J3B-l4puLU_O.js} +1 -1
- package/dist/domains/dashboard/web/assets/chunk-5RXB4S5H-ls9jQHZc.js +231 -0
- package/dist/domains/dashboard/web/assets/{chunk-FMBD7UC4-CQXqBSqQ.js → chunk-5VM5RSS4-BVavmTEq.js} +1 -1
- package/dist/domains/dashboard/web/assets/chunk-6Q2QTUOP-Dungt2g9.js +88 -0
- package/dist/domains/dashboard/web/assets/{chunk-727SXJPM-pMreYMW7.js → chunk-GF5L2VYU-BidXO_ZP.js} +5 -5
- package/dist/domains/dashboard/web/assets/{chunk-4BX2VUAB-vQyyh3eG.js → chunk-JWPE2WC7-57L5Up5X.js} +1 -1
- package/dist/domains/dashboard/web/assets/{chunk-2J33WTMH-B_DDS2IK.js → chunk-KBJHAD2P-C5u5vbwr.js} +1 -1
- package/dist/domains/dashboard/web/assets/chunk-RYQCIY6F-CvLz21I2.js +1 -0
- package/dist/domains/dashboard/web/assets/{chunk-55IACEB6-Cug8J1Qa.js → chunk-XXDRQBXY-D5nJpckG.js} +1 -1
- package/dist/domains/dashboard/web/assets/classDiagram-JCYQIIEL-CEFhao2K.js +1 -0
- package/dist/domains/dashboard/web/assets/classDiagram-v2-OCEON4UE-CEFhao2K.js +1 -0
- package/dist/domains/dashboard/web/assets/{cose-bilkent-S5V4N54A-IQKP-hgj.js → cose-bilkent-JH36ORCC-Dp0JAGyE.js} +1 -1
- package/dist/domains/dashboard/web/assets/{cynefin-VYW2F7L2-CvvRO4J2.js → cynefin-VYW2F7L2-EjC54l1g.js} +2 -2
- package/dist/domains/dashboard/web/assets/cynefinDiagram-MW4NZA55-CpYrW3w3.js +62 -0
- package/dist/domains/dashboard/web/assets/dagre-VZM6K2ZE-h5K39rCk.js +4 -0
- package/dist/domains/dashboard/web/assets/{demo-CeIDHUFJ.js → demo-BfLsKrIL.js} +26 -5
- package/dist/domains/dashboard/web/assets/diagram-7IWD3JNH-CKQj9O4H.js +30 -0
- package/dist/domains/dashboard/web/assets/{diagram-KO2AKTUF-CN_LYqvT.js → diagram-B4RE2ZJO-DXRIYcnW.js} +3 -3
- package/dist/domains/dashboard/web/assets/diagram-LBJQPF4R-wWutQYmv.js +24 -0
- package/dist/domains/dashboard/web/assets/diagram-Q27KOJAE-EgXLJQYi.js +24 -0
- package/dist/domains/dashboard/web/assets/diagram-UB23O5K3-CsQRXDQZ.js +41 -0
- package/dist/domains/dashboard/web/assets/ebnfDiagram-BXEA7PRR-gm328Eho.js +1 -0
- package/dist/domains/dashboard/web/assets/erDiagram-JOGREHBK-BbbMVUx_.js +85 -0
- package/dist/domains/dashboard/web/assets/flowDiagram-UKHOOZJN-1Y7scCns.js +156 -0
- package/dist/domains/dashboard/web/assets/ganttDiagram-PKOTCBZU-BAoBqczv.js +292 -0
- package/dist/domains/dashboard/web/assets/{gitGraphDiagram-PVQCEYII-CaWEk3PM.js → gitGraphDiagram-DS77QQ5N-CMUAyEzl.js} +3 -3
- package/dist/domains/dashboard/web/assets/{graph--OzhPTMs.js → graph-DOmOIIwC.js} +1 -1
- package/dist/domains/dashboard/web/assets/{index-BNyOfAhu.js → index-CCApJ0Yr.js} +1 -1
- package/dist/domains/dashboard/web/assets/index-DWdm_XBi.js +257 -0
- package/dist/domains/dashboard/web/assets/{index-BFwKBVTJ.css → index-DhhbseFJ.css} +1 -1
- package/dist/domains/dashboard/web/assets/{infoDiagram-5YYISTIA-BK07mNG0.js → infoDiagram-6WML65LV-BaCdtYYC.js} +1 -1
- package/dist/domains/dashboard/web/assets/{ishikawaDiagram-YF4QCWOH-mWnmaWfZ.js → ishikawaDiagram-WSZJBQD7-DQQlNnjU.js} +4 -4
- package/dist/domains/dashboard/web/assets/{journeyDiagram-JHISSGLW-BPy-P7xx.js → journeyDiagram-NVQOT4AX-DW9wUMqn.js} +1 -1
- package/dist/domains/dashboard/web/assets/{kanban-definition-UN3LZRKU-3Jq9c_lo.js → kanban-definition-27J2QSJJ-C_ITaZ0q.js} +7 -7
- package/dist/domains/dashboard/web/assets/layout-D-LzfAck.js +1 -0
- package/dist/domains/dashboard/web/assets/{linear-kQyEW-4G.js → linear-DXOo6ZRT.js} +1 -1
- package/dist/domains/dashboard/web/assets/map-DxJ2ADlA.js +1 -0
- package/dist/domains/dashboard/web/assets/mermaid.core-ol-0NI97.js +306 -0
- package/dist/domains/dashboard/web/assets/{mindmap-definition-RKZ34NQL-CyyurUpv.js → mindmap-definition-FAOFIHXS-CHF_HOLV.js} +1 -1
- package/dist/domains/dashboard/web/assets/pegDiagram-VL7TDLO6-wQEvkNF8.js +1 -0
- package/dist/domains/dashboard/web/assets/pieDiagram-7S7Q4E2Y-C3H3kiIP.js +39 -0
- package/dist/domains/dashboard/web/assets/purify.es-Cz4mVeUR.js +3 -0
- package/dist/domains/dashboard/web/assets/{quadrantDiagram-W4KKPZXB-CpayUMjH.js → quadrantDiagram-CIZ2JOQS-S0FdVzJb.js} +4 -4
- package/dist/domains/dashboard/web/assets/railroadDiagram-AXF67PYL-DCDXDaVg.js +1 -0
- package/dist/domains/dashboard/web/assets/{requirementDiagram-4Y6WPE33-Bi8YpfnA.js → requirementDiagram-LRYGKXZP-BW8J4gO_.js} +1 -1
- package/dist/domains/dashboard/web/assets/sankeyDiagram-W5VNT64P-DQQBmLoy.js +40 -0
- package/dist/domains/dashboard/web/assets/sequenceDiagram-SI44F4Z6-2tDcli0Y.js +162 -0
- package/dist/domains/dashboard/web/assets/sizeCapture-X5ZJPWSS-4sEZLBKb.js +1 -0
- package/dist/domains/dashboard/web/assets/stateDiagram-OKZ733FA-OgPb8pyR.js +1 -0
- package/dist/domains/dashboard/web/assets/stateDiagram-v2-UEYNNEHI-CiDNPr4P.js +1 -0
- package/dist/domains/dashboard/web/assets/swimlanes-SLNWSIFB-DR7lwtxd.js +2 -0
- package/dist/domains/dashboard/web/assets/swimlanesDiagram-ULZ7WXOC-DggHFP9q.js +8 -0
- package/dist/domains/dashboard/web/assets/{timeline-definition-PNZ67QCA-aHrrtV-b.js → timeline-definition-Z64GVDOM-DNIJVlQV.js} +4 -4
- package/dist/domains/dashboard/web/assets/vennDiagram-T6HMQDX7-CClhw4QZ.js +34 -0
- package/dist/domains/dashboard/web/assets/{wardleyDiagram-YWT4CUSO-RVQbcySh.js → wardleyDiagram-T6FBY63Y-DzR3aFPS.js} +3 -3
- package/dist/domains/dashboard/web/assets/xychartDiagram-ELKLHX3M-DZhq0ZRj.js +7 -0
- package/dist/domains/dashboard/web/index.html +2 -2
- package/dist/domains/dashboard/workspace.d.ts +24 -0
- package/dist/domains/dashboard/workspace.d.ts.map +1 -0
- package/dist/domains/dashboard/workspace.js +87 -0
- package/dist/domains/dashboard/workspace.js.map +1 -0
- package/dist/domains/eval/index.d.ts +3 -0
- package/dist/domains/eval/index.d.ts.map +1 -1
- package/dist/domains/eval/index.js +3 -0
- package/dist/domains/eval/index.js.map +1 -1
- package/dist/domains/eval/standalone-context.d.ts +19 -0
- package/dist/domains/eval/standalone-context.d.ts.map +1 -0
- package/dist/domains/eval/standalone-context.js +107 -0
- package/dist/domains/eval/standalone-context.js.map +1 -0
- package/dist/domains/eval/standalone-static-collect.d.ts +22 -0
- package/dist/domains/eval/standalone-static-collect.d.ts.map +1 -0
- package/dist/domains/eval/standalone-static-collect.js +779 -0
- package/dist/domains/eval/standalone-static-collect.js.map +1 -0
- package/dist/domains/eval/user-environment.d.ts +6 -0
- package/dist/domains/eval/user-environment.d.ts.map +1 -0
- package/dist/domains/eval/user-environment.js +73 -0
- package/dist/domains/eval/user-environment.js.map +1 -0
- package/dist/domains/integrations/openspec.d.ts +1 -1
- package/dist/domains/integrations/openspec.d.ts.map +1 -1
- package/dist/domains/integrations/openspec.js +110 -26
- package/dist/domains/integrations/openspec.js.map +1 -1
- package/dist/domains/integrations/superpowers.d.ts +5 -1
- package/dist/domains/integrations/superpowers.d.ts.map +1 -1
- package/dist/domains/integrations/superpowers.js +21 -2
- package/dist/domains/integrations/superpowers.js.map +1 -1
- package/dist/domains/skill/platform-install.d.ts +1 -1
- package/dist/domains/skill/platform-install.js +1 -1
- package/dist/domains/skill/project-instructions.d.ts.map +1 -1
- package/dist/domains/skill/project-instructions.js +5 -3
- package/dist/domains/skill/project-instructions.js.map +1 -1
- package/dist/domains/workflow-contract/hook-write-policy.d.ts +9 -0
- package/dist/domains/workflow-contract/hook-write-policy.d.ts.map +1 -0
- package/dist/domains/workflow-contract/hook-write-policy.js +52 -0
- package/dist/domains/workflow-contract/hook-write-policy.js.map +1 -0
- package/dist/domains/workflow-contract/index.d.ts +2 -0
- package/dist/domains/workflow-contract/index.d.ts.map +1 -1
- package/dist/domains/workflow-contract/index.js +1 -0
- package/dist/domains/workflow-contract/index.js.map +1 -1
- package/dist/domains/workflow-contract/project-config.d.ts +2 -2
- package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
- package/dist/domains/workflow-contract/project-config.js +42 -2
- package/dist/domains/workflow-contract/project-config.js.map +1 -1
- package/dist/domains/workflow-contract/protected-project-path.d.ts +13 -0
- package/dist/domains/workflow-contract/protected-project-path.d.ts.map +1 -1
- package/dist/domains/workflow-contract/protected-project-path.js +83 -0
- package/dist/domains/workflow-contract/protected-project-path.js.map +1 -1
- package/dist/domains/workflow-contract/types.d.ts +4 -0
- package/dist/domains/workflow-contract/types.d.ts.map +1 -1
- package/dist/platform/install/platforms.d.ts.map +1 -1
- package/dist/platform/install/platforms.js +13 -2
- package/dist/platform/install/platforms.js.map +1 -1
- package/dist/platform/paths/git-worktree.d.ts +7 -1
- package/dist/platform/paths/git-worktree.d.ts.map +1 -1
- package/dist/platform/paths/git-worktree.js +28 -7
- package/dist/platform/paths/git-worktree.js.map +1 -1
- package/eval/.env.example +115 -0
- package/eval/README.md +237 -14
- package/eval/langfuse/.env.example +9 -0
- package/eval/langfuse/tests/conftest.py +146 -0
- package/eval/langfuse/tests/tasks/test_tasks.py +109 -0
- package/eval/langfuse/tests/test_adapter.py +272 -0
- package/eval/langsmith/.env.example +16 -0
- package/eval/langsmith/tests/conftest.py +10 -1
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet-package.json +4 -2
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet-package.json +2 -2
- package/eval/local/tests/conftest.py +701 -80
- package/eval/local/tests/scaffold/fixtures/custom-agent/adapter.yaml +19 -0
- package/eval/local/tests/scaffold/test_agents.py +76 -0
- package/eval/local/tests/scaffold/test_aligned_comparison.py +70 -0
- package/eval/local/tests/scaffold/test_auto_tasks.py +350 -0
- package/eval/local/tests/scaffold/test_conftest_helpers.py +267 -18
- package/eval/local/tests/scaffold/test_custom_agents.py +174 -0
- package/eval/local/tests/scaffold/test_eval_context.py +217 -0
- package/eval/local/tests/scaffold/test_execution.py +364 -0
- package/eval/local/tests/scaffold/test_inline_tasks.py +56 -0
- package/eval/local/tests/scaffold/test_langfuse_trajectory.py +263 -0
- package/eval/local/tests/scaffold/test_langsmith_conftest.py +63 -0
- package/eval/local/tests/scaffold/test_logging.py +162 -0
- package/eval/local/tests/scaffold/test_manifest_tasks.py +76 -0
- package/eval/local/tests/scaffold/test_manifests.py +396 -0
- package/eval/local/tests/scaffold/test_native_aligned_eval.py +17 -0
- package/eval/local/tests/scaffold/test_profiles.py +64 -6
- package/eval/local/tests/scaffold/test_task_resolution.py +212 -0
- package/eval/local/tests/scaffold/test_utils.py +480 -4
- package/eval/local/tests/tasks/test_tasks.py +216 -14
- package/eval/pyproject.toml +5 -0
- package/eval/scaffold/__init__.py +6 -0
- package/eval/scaffold/docker/agent-overlay.Dockerfile +41 -0
- package/eval/scaffold/python/__init__.py +128 -20
- package/eval/scaffold/python/agents.py +239 -0
- package/eval/scaffold/python/aligned_comparison.py +156 -27
- package/eval/scaffold/python/auto_tasks.py +700 -0
- package/eval/scaffold/python/custom_agents.py +172 -0
- package/eval/scaffold/python/eval_context.py +236 -0
- package/eval/scaffold/python/eval_schema.py +135 -0
- package/eval/scaffold/python/execution.py +544 -0
- package/eval/scaffold/python/generated_task_cache.py +230 -0
- package/eval/scaffold/python/generic_llm_judge.py +41 -14
- package/eval/scaffold/python/inline_tasks.py +118 -0
- package/eval/scaffold/python/judge_config.py +158 -37
- package/eval/scaffold/python/langfuse_adapter.py +1023 -0
- package/eval/scaffold/python/llm_judge.py +68 -11
- package/eval/scaffold/python/logging.py +157 -17
- package/eval/scaffold/python/manifest_tasks.py +69 -0
- package/eval/scaffold/python/manifests.py +443 -22
- package/eval/scaffold/python/paths.py +11 -1
- package/eval/scaffold/python/task_resolution.py +176 -0
- package/eval/scaffold/python/tasks.py +17 -4
- package/eval/scaffold/python/utils.py +167 -11
- package/eval/scaffold/python/validation/core.py +48 -2
- package/eval/scaffold/python/validation/generic_rubric.py +9 -0
- package/eval/scaffold/python/validation/native_workflow.py +6 -1
- package/eval/scaffold/python/validation/rubric.py +16 -1
- package/eval/scaffold/shell/agent-runtime-config.sh +88 -0
- package/eval/scaffold/shell/docker.sh +534 -33
- package/eval/scaffold/shell/run-agent-runtime.sh +49 -0
- package/eval/scaffold/shell/run-claude-loop.sh +153 -14
- package/eval/schemas/comet.eval/v1alpha1.schema.json +244 -0
- package/package.json +8 -3
- package/dist/domains/dashboard/web/assets/arc-CkuYweSh.js +0 -1
- package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR--tTGrKam.js +0 -36
- package/dist/domains/dashboard/web/assets/blockDiagram-GPEHLZMM-DLKYOixs.js +0 -132
- package/dist/domains/dashboard/web/assets/channel-Cg__FSMr.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-AQP2D5EJ-BUkV_rb7.js +0 -231
- package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-CsC-pvu9.js +0 -1
- package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-CsC-pvu9.js +0 -1
- package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-DeOQo7bP.js +0 -4
- package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-IQd_jQwB.js +0 -43
- package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-Dllkdt0m.js +0 -10
- package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-DK36WkNN.js +0 -24
- package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-iqUnMYEh.js +0 -24
- package/dist/domains/dashboard/web/assets/erDiagram-TEJ5UH35-Bc64lzy8.js +0 -85
- package/dist/domains/dashboard/web/assets/flowDiagram-I6XJVG4X-UfOqef9j.js +0 -162
- package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-D-u6Aauc.js +0 -292
- package/dist/domains/dashboard/web/assets/index-COZ_03uK.js +0 -257
- package/dist/domains/dashboard/web/assets/layout-SsrduOYp.js +0 -1
- package/dist/domains/dashboard/web/assets/mermaid.core-COBBjtVH.js +0 -301
- package/dist/domains/dashboard/web/assets/pieDiagram-4H26LBE5-CJro_XKk.js +0 -30
- package/dist/domains/dashboard/web/assets/purify.es-VaSPOPhr.js +0 -3
- package/dist/domains/dashboard/web/assets/sankeyDiagram-5OEKKPKP-Wx60WwHe.js +0 -40
- package/dist/domains/dashboard/web/assets/sequenceDiagram-3UESZ5HK-BiMsRFbc.js +0 -162
- package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-BrURMY0R.js +0 -1
- package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-BpEE-yEg.js +0 -1
- package/dist/domains/dashboard/web/assets/vennDiagram-CIIHVFJN-DGB16bvR.js +0 -34
- package/dist/domains/dashboard/web/assets/xychartDiagram-2RQKCTM6-DMzzwDVX.js +0 -7
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-COBBjtVH.js","assets/purify.es-VaSPOPhr.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function VT(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function o(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=o(i);fetch(i.href,l)}})();const FT="modulepreload",qT=function(e){return"/"+e},G1={},mi=function(t,o,r){let i=Promise.resolve();if(o&&o.length>0){let p=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");i=p(o.map(m=>{if(m=qT(m),m in G1)return;G1[m]=!0;const g=m.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":FT,g||(v.as="script"),v.crossOrigin="",v.href=m,f&&v.setAttribute("nonce",f),document.head.appendChild(v),g)return new Promise((x,C)=>{v.addEventListener("load",x),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return i.then(u=>{for(const f of u||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vp={exports:{}},Tl={};var X1;function UT(){if(X1)return Tl;X1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(r,i,l){var u=null;if(l!==void 0&&(u=""+l),i.key!==void 0&&(u=""+i.key),"key"in i){l={};for(var f in i)f!=="key"&&(l[f]=i[f])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:u,ref:i!==void 0?i:null,props:l}}return Tl.Fragment=t,Tl.jsx=o,Tl.jsxs=o,Tl}var k1;function WT(){return k1||(k1=1,Vp.exports=UT()),Vp.exports}var O=WT(),Fp={exports:{}},ht={};var Y1;function GT(){if(Y1)return ht;Y1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=v&&j[v]||j["@@iterator"],typeof j=="function"?j:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,R={};function E(j,V,k){this.props=j,this.context=V,this.refs=R,this.updater=k||C}E.prototype.isReactComponent={},E.prototype.setState=function(j,V){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,V,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function N(){}N.prototype=E.prototype;function $(j,V,k){this.props=j,this.context=V,this.refs=R,this.updater=k||C}var w=$.prototype=new N;w.constructor=$,S(w,E.prototype),w.isPureReactComponent=!0;var T=Array.isArray;function z(){}var A={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function B(j,V,k){var G=k.ref;return{$$typeof:e,type:j,key:V,ref:G!==void 0?G:null,props:k}}function D(j,V){return B(j.type,V,j.props)}function I(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function H(j){var V={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(k){return V[k]})}var X=/\/+/g;function Z(j,V){return typeof j=="object"&&j!==null&&j.key!=null?H(""+j.key):V.toString(36)}function U(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(z,z):(j.status="pending",j.then(function(V){j.status==="pending"&&(j.status="fulfilled",j.value=V)},function(V){j.status==="pending"&&(j.status="rejected",j.reason=V)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function L(j,V,k,G,K){var te=typeof j;(te==="undefined"||te==="boolean")&&(j=null);var Y=!1;if(j===null)Y=!0;else switch(te){case"bigint":case"string":case"number":Y=!0;break;case"object":switch(j.$$typeof){case e:case t:Y=!0;break;case g:return Y=j._init,L(Y(j._payload),V,k,G,K)}}if(Y)return K=K(j),Y=G===""?"."+Z(j,0):G,T(K)?(k="",Y!=null&&(k=Y.replace(X,"$&/")+"/"),L(K,V,k,"",function(ae){return ae})):K!=null&&(I(K)&&(K=D(K,k+(K.key==null||j&&j.key===K.key?"":(""+K.key).replace(X,"$&/")+"/")+Y)),V.push(K)),1;Y=0;var ie=G===""?".":G+":";if(T(j))for(var se=0;se<j.length;se++)G=j[se],te=ie+Z(G,se),Y+=L(G,V,k,te,K);else if(se=x(j),typeof se=="function")for(j=se.call(j),se=0;!(G=j.next()).done;)G=G.value,te=ie+Z(G,se++),Y+=L(G,V,k,te,K);else if(te==="object"){if(typeof j.then=="function")return L(U(j),V,k,G,K);throw V=String(j),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Y}function q(j,V,k){if(j==null)return j;var G=[],K=0;return L(j,G,"","",function(te){return V.call(k,te,K++)}),G}function F(j){if(j._status===-1){var V=j._result;V=V(),V.then(function(k){(j._status===0||j._status===-1)&&(j._status=1,j._result=k)},function(k){(j._status===0||j._status===-1)&&(j._status=2,j._result=k)}),j._status===-1&&(j._status=0,j._result=V)}if(j._status===1)return j._result.default;throw j._result}var J=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},Q={map:q,forEach:function(j,V,k){q(j,function(){V.apply(this,arguments)},k)},count:function(j){var V=0;return q(j,function(){V++}),V},toArray:function(j){return q(j,function(V){return V})||[]},only:function(j){if(!I(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ht.Activity=b,ht.Children=Q,ht.Component=E,ht.Fragment=o,ht.Profiler=i,ht.PureComponent=$,ht.StrictMode=r,ht.Suspense=p,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,ht.__COMPILER_RUNTIME={__proto__:null,c:function(j){return A.H.useMemoCache(j)}},ht.cache=function(j){return function(){return j.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(j,V,k){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var G=S({},j.props),K=j.key;if(V!=null)for(te in V.key!==void 0&&(K=""+V.key),V)!P.call(V,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&V.ref===void 0||(G[te]=V[te]);var te=arguments.length-2;if(te===1)G.children=k;else if(1<te){for(var Y=Array(te),ie=0;ie<te;ie++)Y[ie]=arguments[ie+2];G.children=Y}return B(j.type,K,G)},ht.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:l,_context:j},j},ht.createElement=function(j,V,k){var G,K={},te=null;if(V!=null)for(G in V.key!==void 0&&(te=""+V.key),V)P.call(V,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(K[G]=V[G]);var Y=arguments.length-2;if(Y===1)K.children=k;else if(1<Y){for(var ie=Array(Y),se=0;se<Y;se++)ie[se]=arguments[se+2];K.children=ie}if(j&&j.defaultProps)for(G in Y=j.defaultProps,Y)K[G]===void 0&&(K[G]=Y[G]);return B(j,te,K)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(j){return{$$typeof:f,render:j}},ht.isValidElement=I,ht.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:F}},ht.memo=function(j,V){return{$$typeof:m,type:j,compare:V===void 0?null:V}},ht.startTransition=function(j){var V=A.T,k={};A.T=k;try{var G=j(),K=A.S;K!==null&&K(k,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(z,J)}catch(te){J(te)}finally{V!==null&&k.types!==null&&(V.types=k.types),A.T=V}},ht.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},ht.use=function(j){return A.H.use(j)},ht.useActionState=function(j,V,k){return A.H.useActionState(j,V,k)},ht.useCallback=function(j,V){return A.H.useCallback(j,V)},ht.useContext=function(j){return A.H.useContext(j)},ht.useDebugValue=function(){},ht.useDeferredValue=function(j,V){return A.H.useDeferredValue(j,V)},ht.useEffect=function(j,V){return A.H.useEffect(j,V)},ht.useEffectEvent=function(j){return A.H.useEffectEvent(j)},ht.useId=function(){return A.H.useId()},ht.useImperativeHandle=function(j,V,k){return A.H.useImperativeHandle(j,V,k)},ht.useInsertionEffect=function(j,V){return A.H.useInsertionEffect(j,V)},ht.useLayoutEffect=function(j,V){return A.H.useLayoutEffect(j,V)},ht.useMemo=function(j,V){return A.H.useMemo(j,V)},ht.useOptimistic=function(j,V){return A.H.useOptimistic(j,V)},ht.useReducer=function(j,V,k){return A.H.useReducer(j,V,k)},ht.useRef=function(j){return A.H.useRef(j)},ht.useState=function(j){return A.H.useState(j)},ht.useSyncExternalStore=function(j,V,k){return A.H.useSyncExternalStore(j,V,k)},ht.useTransition=function(){return A.H.useTransition()},ht.version="19.2.7",ht}var K1;function o0(){return K1||(K1=1,Fp.exports=GT()),Fp.exports}var c=o0();const ce=Xt(c),XT=VT({__proto__:null,default:ce},[c]),pt=e=>{const t=c.useRef(e);return t.current=e,c.useCallback((...r)=>t.current?.(...r),[])};function zo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Q1=zo()?c.useLayoutEffect:c.useEffect,un=(e,t)=>{const o=c.useRef(!0);Q1(()=>e(o.current),t),Q1(()=>(o.current=!1,()=>{o.current=!0}),[])},kT=(e,t)=>{un(o=>{if(!o)return e()},t)},IE=e=>{const t=c.useRef(!1),[o,r]=c.useState(e);c.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(l,u){u&&t.current||r(l)}return[o,i]};function To(e,t){const[o,r]=c.useState(e),i=t!==void 0?t:o;return un(l=>{l||r(t)},[t]),[i,r]}let PE=e=>+setTimeout(e,16),jE=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(PE=e=>window.requestAnimationFrame(e),jE=e=>window.cancelAnimationFrame(e));let Z1=0;const r0=new Map;function BE(e){r0.delete(e)}const Lt=(e,t=1)=>{Z1+=1;const o=Z1;function r(i){if(i===0)BE(o),e();else{const l=PE(()=>{r(i-1)});r0.set(o,l)}}return r(t),o};Lt.cancel=e=>{const t=r0.get(e);return BE(e),jE(t)};function YT(){return{...XT}.useId}let J1=0;const eS=YT(),Xr=eS?(function(t){const o=eS();return t||o}):(function(t){const[o,r]=c.useState("ssr-id");return c.useEffect(()=>{const i=J1;J1+=1,r(`rc_unique_${i}`)},[]),t||o});function dc(e,t,o){const r=c.useRef({});return(!("value"in r.current)||o(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function KT(e){const[,t]=c.useReducer(l=>l+1,0),o=c.useRef(e),r=pt(()=>o.current),i=pt(l=>{o.current=typeof l=="function"?l(o.current):l,t()});return[r,i]}var qp={exports:{}},ln={};var tS;function QT(){if(tS)return ln;tS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var R=S.$$typeof;switch(R){case e:switch(S=S.type,S){case o:case i:case r:case p:case m:case v:return S;default:switch(S=S&&S.$$typeof,S){case u:case f:case b:case g:return S;case l:return S;default:return R}}case t:return R}}}return ln.ContextConsumer=l,ln.ContextProvider=u,ln.Element=e,ln.ForwardRef=f,ln.Fragment=o,ln.Lazy=b,ln.Memo=g,ln.Portal=t,ln.Profiler=i,ln.StrictMode=r,ln.Suspense=p,ln.SuspenseList=m,ln.isContextConsumer=function(S){return C(S)===l},ln.isContextProvider=function(S){return C(S)===u},ln.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},ln.isForwardRef=function(S){return C(S)===f},ln.isFragment=function(S){return C(S)===o},ln.isLazy=function(S){return C(S)===b},ln.isMemo=function(S){return C(S)===g},ln.isPortal=function(S){return C(S)===t},ln.isProfiler=function(S){return C(S)===i},ln.isStrictMode=function(S){return C(S)===r},ln.isSuspense=function(S){return C(S)===p},ln.isSuspenseList=function(S){return C(S)===m},ln.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===o||S===i||S===r||S===p||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===g||S.$$typeof===u||S.$$typeof===l||S.$$typeof===f||S.$$typeof===x||S.getModuleId!==void 0)},ln.typeOf=C,ln}var nS;function ZT(){return nS||(nS=1,qp.exports=QT()),qp.exports}var Up=ZT();const JT=Symbol.for("react.element"),eO=Symbol.for("react.transitional.element"),tO=Symbol.for("react.fragment");function _E(e){return e&&typeof e=="object"&&(e.$$typeof===JT||e.$$typeof===eO)&&e.type===tO}const nO=Number(c.version.split(".")[0]),oO=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},oo=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:o=>{e.forEach(r=>{oO(r,o)})}},kr=(...e)=>dc(()=>oo(...e),e,(t,o)=>t.length!==o.length||t.every((r,i)=>r!==o[i])),Ms=e=>{if(!e)return!1;if(a0(e)&&nO>=19)return!0;const t=Up.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Up.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Up.ForwardRef)};function a0(e){return c.isValidElement(e)&&!_E(e)}const rO=e=>a0(e)&&Ms(e),vi=e=>{if(e&&a0(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Lg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}const oS="data-rc-order",rS="data-rc-priority",aO="rc-util-key",Vg=new Map;function HE({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:aO}function ff(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function iO(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function i0(e){return Array.from((Vg.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function DE(e,t={}){if(!zo())return null;const{csp:o,prepend:r,priority:i=0}=t,l=iO(r),u=l==="prependQueue",f=document.createElement("style");f.setAttribute(oS,l),u&&i&&f.setAttribute(rS,`${i}`),o?.nonce&&(f.nonce=o?.nonce),f.innerHTML=e;const p=ff(t),{firstChild:m}=p;if(r){if(u){const g=(t.styles||i0(p)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(oS)))return!1;const v=Number(b.getAttribute(rS)||0);return i>=v});if(g.length)return p.insertBefore(f,g[g.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function LE(e,t={}){let{styles:o}=t;return o||=i0(ff(t)),o.find(r=>r.getAttribute(HE(t))===e)}function Kl(e,t={}){const o=LE(e,t);o&&ff(t).removeChild(o)}function sO(e,t){const o=Vg.get(e);if(!o||!Lg(document,o)){const r=DE("",t),{parentNode:i}=r;Vg.set(e,i),e.removeChild(r)}}function ci(e,t,o={}){const r=ff(o),i=i0(r),l={...o,styles:i};sO(r,l);const u=LE(t,l);if(u)return l.csp?.nonce&&u.nonce!==l.csp?.nonce&&(u.nonce=l.csp?.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;const f=DE(e,l);return f.setAttribute(HE(l),t),f}function ys(e){return e instanceof HTMLElement||e instanceof SVGElement}function pi(e){return e&&typeof e=="object"&&ys(e.nativeElement)?e.nativeElement:ys(e)?e:null}const s0=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:o}=e.getBBox();if(t||o)return!0}if(e.getBoundingClientRect){const{width:t,height:o}=e.getBoundingClientRect();if(t||o)return!0}}return!1});function aS(e,t=!1){if(s0(e)){const o=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(o)||e.isContentEditable||o==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),l=Number(i);let u=null;return i&&!Number.isNaN(l)?u=l:r&&u===null&&(u=0),r&&e.disabled&&(u=null),u!==null&&(u>=0||t&&u<0)}return!1}function l0(e,t=!1){const o=[...e.querySelectorAll("*")].filter(r=>aS(r,t));return aS(e,t)&&o.unshift(e),o}function VE(e,t){if(!e)return;e.focus(t);const{cursor:o}=t||{};if(o&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let hs=null,Na=[];const Fg=new Map,c0=new Map;function u0(){return Na[Na.length-1]}function lO(e){const t=u0();if(e&&t){let o;for(const[i,l]of Fg.entries())if(l===t){o=i;break}const r=c0.get(o);return!!r&&(r===e||r.contains(e))}return!1}function cO(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Wp(){const e=u0(),{activeElement:t}=document;if(!lO(t))if(e&&!cO(e)){const o=l0(e);(o.includes(hs)?hs:o[0])?.focus({preventScroll:!0})}else hs=t}function iS(e){if(e.key==="Tab"){const{activeElement:t}=document,o=u0(),r=l0(o),i=r[r.length-1];e.shiftKey&&t===r[0]?hs=i:!e.shiftKey&&t===i&&(hs=r[0])}}function uO(e,t){return e&&(Fg.set(t,e),Na=Na.filter(o=>o!==e),Na.push(e),window.addEventListener("focusin",Wp),window.addEventListener("keydown",iS,!0),Wp()),()=>{hs=null,Na=Na.filter(o=>o!==e),Fg.delete(t),c0.delete(t),Na.length===0&&(window.removeEventListener("focusin",Wp),window.removeEventListener("keydown",iS,!0))}}function dO(e,t){const o=c.useRef(0),[r,i]=c.useState(0);c.useEffect(()=>{o.current=0},t),c.useEffect(()=>{const[l,u]=e(o.current);return u||(o.current+=1,i(f=>f+1)),l},[...t,r])}function FE(e,t){const o=Xr(),r=c.useRef(t);return r.current=t,dO(u=>{if(!e)return[void 0,!0];const f=r.current();return f?[uO(f,o),!0]:[void 0,u>=1]},[o,e]),[u=>{u&&c0.set(o,u)}]}function qE(e){return e?.getRootNode?.()}function fO(e){return qE(e)instanceof ShadowRoot}function qg(e){return fO(e)?qE(e):null}const at={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};function mO(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=t;const r=o.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let i,l;if(e){const p=getComputedStyle(e);r.scrollbarColor=p.scrollbarColor,r.scrollbarWidth=p.scrollbarWidth;const m=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(m.width,10),b=parseInt(m.height,10);try{const v=g?`width: ${m.width};`:"",x=b?`height: ${m.height};`:"";ci(`
|
|
3
|
-
#${t}::-webkit-scrollbar {
|
|
4
|
-
${v}
|
|
5
|
-
${x}
|
|
6
|
-
}`,t)}catch(v){console.error(v),i=g,l=b}}document.body.appendChild(o);const u=e&&i&&!Number.isNaN(i)?i:o.offsetWidth-o.clientWidth,f=e&&l&&!Number.isNaN(l)?l:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),Kl(t),{width:u,height:f}}function pO(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:mO(e)}let Ug={};const gO=e=>{};function hO(e,t){}function bO(e,t){}function vO(){Ug={}}function UE(e,t,o){!t&&!Ug[o]&&(e(!1,o),Ug[o]=!0)}function Yn(e,t){UE(hO,e,t)}function yO(e,t){UE(bO,e,t)}Yn.preMessage=gO;Yn.resetWarned=vO;Yn.noteOnce=yO;function Ql(e,t,o=!1){const r=new Set;function i(l,u,f=1){const p=r.has(l);if(Yn(!p,"Warning: There may be circular references"),p)return!1;if(l===u)return!0;if(o&&f>1)return!1;r.add(l);const m=f+1;if(Array.isArray(l)){if(!Array.isArray(u)||l.length!==u.length)return!1;for(let g=0;g<l.length;g++)if(!i(l[g],u[g],m))return!1;return!0}if(l&&u&&typeof l=="object"&&typeof u=="object"){const g=Object.keys(l);return g.length!==Object.keys(u).length?!1:g.every(b=>i(l[b],u[b],m))}return!1}return i(e,t)}var Ol={exports:{}},sS;function xO(){if(sS)return Ol.exports;sS=1,Ol.exports=r,Ol.exports.isMobile=r,Ol.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,o=/android|ipad|playbook|silk/i;function r(i){i||(i={});let l=i.ua;if(!l&&typeof navigator<"u"&&(l=navigator.userAgent),l&&l.headers&&typeof l.headers["user-agent"]=="string"&&(l=l.headers["user-agent"]),typeof l!="string")return!1;let u=e.test(l)&&!t.test(l)||!!i.tablet&&o.test(l);return!u&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&l.indexOf("Macintosh")!==-1&&l.indexOf("Safari")!==-1&&(u=!0),u}return Ol.exports}var SO=xO();const CO=Xt(SO);let Gp;const $O=()=>(typeof Gp>"u"&&(Gp=CO()),Gp);function xn(e,t){const o=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete o[r]}),o}const EO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
7
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
8
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
9
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
10
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
11
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
12
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
13
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
14
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
15
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
16
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
17
|
-
summary tabIndex target title type useMap value width wmode wrap`,wO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
18
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
19
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
20
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
21
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
22
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
23
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
|
|
24
|
-
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
|
|
25
|
-
onAnimationStart onAnimationEnd onAnimationIteration
|
|
26
|
-
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
|
|
27
|
-
onBeforeInput onReset onInvalid
|
|
28
|
-
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,NO=`${EO} ${wO}`.split(/[\s\n]+/),RO="aria-",MO="data-";function lS(e,t){return e.indexOf(t)===0}function Qn(e,t=!1){let o;t===!1?o={aria:!0,data:!0,attr:!0}:t===!0?o={aria:!0}:o={...t};const r={};return Object.keys(e).forEach(i=>{(o.aria&&(i==="role"||lS(i,RO))||o.data&&lS(i,MO)||o.attr&&NO.includes(i))&&(r[i]=e[i])}),r}function Ao(e,t={}){let o=[];return ce.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?o=o.concat(Ao(r)):_E(r)&&r.props?o=o.concat(Ao(r.props.children,t)):o.push(r))}),o}function cS(...e){const t={};for(const o of e)if(o)for(const r of Object.keys(o))o[r]!==void 0&&(t[r]=o[r]);return t}function Go(e,t){let o=e;for(let r=0;r<t.length;r+=1){if(o==null)return;o=o[t[r]]}return o}function WE(e,t,o,r){if(!t.length)return o;const[i,...l]=t;let u;return!e&&typeof i=="number"?u=[]:Array.isArray(e)?u=[...e]:u={...e},r&&o===void 0&&l.length===1?delete u[i][l[0]]:u[i]=WE(u[i],l,o,r),u}function Ro(e,t,o,r=!1){return t.length&&r&&o===void 0&&!Go(e,t.slice(0,-1))?e:WE(e,t,o,r)}function TO(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function uS(e){return Array.isArray(e)?[]:{}}const OO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function zO(e,t={}){const{prepareArray:o}=t,r=o||(()=>[]);let i=uS(e[0]);return e.forEach(l=>{function u(f,p){const m=new Set(p),g=Go(l,f),b=Array.isArray(g);if(b||TO(g)){if(!m.has(g)){m.add(g);const v=Go(i,f);b?i=Ro(i,f,r(v,g)):(!v||typeof v!="object")&&(i=Ro(i,f,uS(g))),OO(g).forEach(x=>{Object.getOwnPropertyDescriptor(g,x).enumerable&&u([...f,x],m)})}}else i=Ro(i,f,g)}u([])}),i}function fs(...e){return zO(e)}var Xp={exports:{}},zl={},kp={exports:{}},Yp={};var dS;function AO(){return dS||(dS=1,(function(e){function t(L,q){var F=L.length;L.push(q);e:for(;0<F;){var J=F-1>>>1,Q=L[J];if(0<i(Q,q))L[J]=q,L[F]=Q,F=J;else break e}}function o(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var q=L[0],F=L.pop();if(F!==q){L[0]=F;e:for(var J=0,Q=L.length,j=Q>>>1;J<j;){var V=2*(J+1)-1,k=L[V],G=V+1,K=L[G];if(0>i(k,F))G<Q&&0>i(K,k)?(L[J]=K,L[G]=F,J=G):(L[J]=k,L[V]=F,J=V);else if(G<Q&&0>i(K,F))L[J]=K,L[G]=F,J=G;else break e}}return q}function i(L,q){var F=L.sortIndex-q.sortIndex;return F!==0?F:L.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],m=[],g=1,b=null,v=3,x=!1,C=!1,S=!1,R=!1,E=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function w(L){for(var q=o(m);q!==null;){if(q.callback===null)r(m);else if(q.startTime<=L)r(m),q.sortIndex=q.expirationTime,t(p,q);else break;q=o(m)}}function T(L){if(S=!1,w(L),!C)if(o(p)!==null)C=!0,z||(z=!0,H());else{var q=o(m);q!==null&&U(T,q.startTime-L)}}var z=!1,A=-1,P=5,B=-1;function D(){return R?!0:!(e.unstable_now()-B<P)}function I(){if(R=!1,z){var L=e.unstable_now();B=L;var q=!0;try{e:{C=!1,S&&(S=!1,N(A),A=-1),x=!0;var F=v;try{t:{for(w(L),b=o(p);b!==null&&!(b.expirationTime>L&&D());){var J=b.callback;if(typeof J=="function"){b.callback=null,v=b.priorityLevel;var Q=J(b.expirationTime<=L);if(L=e.unstable_now(),typeof Q=="function"){b.callback=Q,w(L),q=!0;break t}b===o(p)&&r(p),w(L)}else r(p);b=o(p)}if(b!==null)q=!0;else{var j=o(m);j!==null&&U(T,j.startTime-L),q=!1}}break e}finally{b=null,v=F,x=!1}q=void 0}}finally{q?H():z=!1}}}var H;if(typeof $=="function")H=function(){$(I)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,Z=X.port2;X.port1.onmessage=I,H=function(){Z.postMessage(null)}}else H=function(){E(I,0)};function U(L,q){A=E(function(){L(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(L){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var F=v;v=q;try{return L()}finally{v=F}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(L,q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=v;v=L;try{return q()}finally{v=F}},e.unstable_scheduleCallback=function(L,q,F){var J=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?J+F:J):F=J,L){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=F+Q,L={id:g++,callback:q,priorityLevel:L,startTime:F,expirationTime:Q,sortIndex:-1},F>J?(L.sortIndex=F,t(m,L),o(p)===null&&L===o(m)&&(S?(N(A),A=-1):S=!0,U(T,F-J))):(L.sortIndex=Q,t(p,L),C||x||(C=!0,z||(z=!0,H()))),L},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(L){var q=v;return function(){var F=v;v=q;try{return L.apply(this,arguments)}finally{v=F}}}})(Yp)),Yp}var fS;function IO(){return fS||(fS=1,kp.exports=AO()),kp.exports}var Kp={exports:{}},Xn={};var mS;function PO(){if(mS)return Xn;mS=1;var e=o0();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(p,m,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:b==null?null:""+b,children:p,containerInfo:m,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xn.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(p,m,null,g)},Xn.flushSync=function(p){var m=u.T,g=r.p;try{if(u.T=null,r.p=2,p)return p()}finally{u.T=m,r.p=g,r.d.f()}},Xn.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},Xn.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Xn.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,b=f(g,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:x}):g==="script"&&r.d.X(p,{crossOrigin:b,integrity:v,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Xn.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},Xn.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,b=f(g,m.crossOrigin);r.d.L(p,g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Xn.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=f(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},Xn.requestFormReset=function(p){r.d.r(p)},Xn.unstable_batchedUpdates=function(p,m){return p(m)},Xn.useFormState=function(p,m,g){return u.H.useFormState(p,m,g)},Xn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Xn.version="19.2.7",Xn}var pS;function GE(){if(pS)return Kp.exports;pS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Kp.exports=PO(),Kp.exports}var gS;function jO(){if(gS)return zl;gS=1;var e=IO(),t=o0(),o=GE();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(l(n)!==n)throw Error(r(188))}function m(n){var a=n.alternate;if(!a){if(a=l(n),a===null)throw Error(r(188));return a!==n?null:n}for(var s=n,d=a;;){var h=s.return;if(h===null)break;var y=h.alternate;if(y===null){if(d=h.return,d!==null){s=d;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===s)return p(h),n;if(y===d)return p(h),a;y=y.sibling}throw Error(r(188))}if(s.return!==d.return)s=h,d=y;else{for(var M=!1,_=h.child;_;){if(_===s){M=!0,s=h,d=y;break}if(_===d){M=!0,d=h,s=y;break}_=_.sibling}if(!M){for(_=y.child;_;){if(_===s){M=!0,s=y,d=h;break}if(_===d){M=!0,d=y,s=h;break}_=_.sibling}if(!M)throw Error(r(189))}}if(s.alternate!==d)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:a}function g(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=g(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),$=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=I&&n[I]||n["@@iterator"],typeof n=="function"?n:null)}var X=Symbol.for("react.client.reference");function Z(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===X?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case E:return"Profiler";case R:return"StrictMode";case T:return"Suspense";case z:return"SuspenseList";case B:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case $:return n.displayName||"Context";case N:return(n._context.displayName||"Context")+".Consumer";case w:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case A:return a=n.displayName||null,a!==null?a:Z(n.type)||"Memo";case P:a=n._payload,n=n._init;try{return Z(n(a))}catch{}}return null}var U=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},J=[],Q=-1;function j(n){return{current:n}}function V(n){0>Q||(n.current=J[Q],J[Q]=null,Q--)}function k(n,a){Q++,J[Q]=n.current,n.current=a}var G=j(null),K=j(null),te=j(null),Y=j(null);function ie(n,a){switch(k(te,a),k(K,n),k(G,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?g1(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=g1(a),n=h1(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}V(G),k(G,n)}function se(){V(G),V(K),V(te)}function ae(n){n.memoizedState!==null&&k(Y,n);var a=G.current,s=h1(a,n.type);a!==s&&(k(K,n),k(G,s))}function me(n){K.current===n&&(V(G),V(K)),Y.current===n&&(V(Y),wl._currentValue=F)}var ne,ue;function he(n){if(ne===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);ne=a&&a[1]||"",ue=-1<s.stack.indexOf(`
|
|
29
|
-
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
30
|
-
`+ne+n+ue}var ge=!1;function Se(n,a){if(!n||ge)return"";ge=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(be){var pe=be}Reflect.construct(n,[],Me)}else{try{Me.call()}catch(be){pe=be}n.call(Me.prototype)}}else{try{throw Error()}catch(be){pe=be}(Me=n())&&typeof Me.catch=="function"&&Me.catch(function(){})}}catch(be){if(be&&pe&&typeof be.stack=="string")return[be.stack,pe.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),M=y[0],_=y[1];if(M&&_){var ee=M.split(`
|
|
31
|
-
`),fe=_.split(`
|
|
32
|
-
`);for(h=d=0;d<ee.length&&!ee[d].includes("DetermineComponentFrameRoot");)d++;for(;h<fe.length&&!fe[h].includes("DetermineComponentFrameRoot");)h++;if(d===ee.length||h===fe.length)for(d=ee.length-1,h=fe.length-1;1<=d&&0<=h&&ee[d]!==fe[h];)h--;for(;1<=d&&0<=h;d--,h--)if(ee[d]!==fe[h]){if(d!==1||h!==1)do if(d--,h--,0>h||ee[d]!==fe[h]){var Ee=`
|
|
33
|
-
`+ee[d].replace(" at new "," at ");return n.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",n.displayName)),Ee}while(1<=d&&0<=h);break}}}finally{ge=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?he(s):""}function $e(n,a){switch(n.tag){case 26:case 27:case 5:return he(n.type);case 16:return he("Lazy");case 13:return n.child!==a&&a!==null?he("Suspense Fallback"):he("Suspense");case 19:return he("SuspenseList");case 0:case 15:return Se(n.type,!1);case 11:return Se(n.type.render,!1);case 1:return Se(n.type,!0);case 31:return he("Activity");default:return""}}function ye(n){try{var a="",s=null;do a+=$e(n,s),s=n,n=n.return;while(n);return a}catch(d){return`
|
|
34
|
-
Error generating stack: `+d.message+`
|
|
35
|
-
`+d.stack}}var xe=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,we=e.unstable_cancelCallback,Be=e.unstable_shouldYield,Te=e.unstable_requestPaint,He=e.unstable_now,nt=e.unstable_getCurrentPriorityLevel,Ke=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,Je=e.unstable_LowPriority,Ue=e.unstable_IdlePriority,Pe=e.log,_e=e.unstable_setDisableYieldValue,Xe=null,De=null;function Oe(n){if(typeof Pe=="function"&&_e(n),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Xe,n)}catch{}}var Qe=Math.clz32?Math.clz32:We,ze=Math.log,Ie=Math.LN2;function We(n){return n>>>=0,n===0?32:31-(ze(n)/Ie|0)|0}var Ye=256,rt=262144,ct=4194304;function it(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function yt(n,a,s){var d=n.pendingLanes;if(d===0)return 0;var h=0,y=n.suspendedLanes,M=n.pingedLanes;n=n.warmLanes;var _=d&134217727;return _!==0?(d=_&~y,d!==0?h=it(d):(M&=_,M!==0?h=it(M):s||(s=_&~n,s!==0&&(h=it(s))))):(_=d&~y,_!==0?h=it(_):M!==0?h=it(M):s||(s=d&~n,s!==0&&(h=it(s)))),h===0?0:a!==0&&a!==h&&(a&y)===0&&(y=h&-h,s=a&-a,y>=s||y===32&&(s&4194048)!==0)?a:h}function Et(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Tt(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var n=ct;return ct<<=1,(ct&62914560)===0&&(ct=4194304),n}function Ot(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function Le(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ne(n,a,s,d,h,y){var M=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var _=n.entanglements,ee=n.expirationTimes,fe=n.hiddenUpdates;for(s=M&~s;0<s;){var Ee=31-Qe(s),Me=1<<Ee;_[Ee]=0,ee[Ee]=-1;var pe=fe[Ee];if(pe!==null)for(fe[Ee]=null,Ee=0;Ee<pe.length;Ee++){var be=pe[Ee];be!==null&&(be.lane&=-536870913)}s&=~Me}d!==0&&Ae(n,d,0),y!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=y&~(M&~a))}function Ae(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var d=31-Qe(a);n.entangledLanes|=a,n.entanglements[d]=n.entanglements[d]|1073741824|s&261930}function ve(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var d=31-Qe(s),h=1<<d;h&a|n[d]&a&&(n[d]|=a),s&=~h}}function je(n,a){var s=a&-a;return s=(s&42)!==0?1:Ve(s),(s&(n.suspendedLanes|a))!==0?0:s}function Ve(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ze(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ft(){var n=q.p;return n!==0?n:(n=window.event,n===void 0?32:D1(n.type))}function Jt(n,a){var s=q.p;try{return q.p=n,a()}finally{q.p=s}}var Rt=Math.random().toString(36).slice(2),mt="__reactFiber$"+Rt,Mt="__reactProps$"+Rt,on="__reactContainer$"+Rt,ut="__reactEvents$"+Rt,bt="__reactListeners$"+Rt,$t="__reactHandles$"+Rt,Ge="__reactResources$"+Rt,lt="__reactMarker$"+Rt;function _t(n){delete n[mt],delete n[Mt],delete n[ut],delete n[bt],delete n[$t]}function en(n){var a=n[mt];if(a)return a;for(var s=n.parentNode;s;){if(a=s[on]||s[mt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=$1(n);n!==null;){if(s=n[mt])return s;n=$1(n)}return a}n=s,s=n.parentNode}return null}function wt(n){if(n=n[mt]||n[on]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Ft(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function gn(n){var a=n[Ge];return a||(a=n[Ge]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ht(n){n[lt]=!0}var ro=new Set,yr={};function jn(n,a){ao(n,a),ao(n+"Capture",a)}function ao(n,a){for(yr[n]=a,n=0;n<a.length;n++)ro.add(a[n])}var Qo=RegExp("^[: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]*$"),Po={},Gn={};function gt(n){return xe.call(Gn,n)?!0:xe.call(Po,n)?!1:Qo.test(n)?Gn[n]=!0:(Po[n]=!0,!1)}function Mn(n,a,s){if(gt(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function wn(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function Zn(n,a,s,d){if(d===null)n.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+d)}}function Tn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function _a(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Si(n,a,s){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var h=d.get,y=d.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return h.call(this)},set:function(M){s=""+M,y.call(this,M)}}),Object.defineProperty(n,a,{enumerable:d.enumerable}),{getValue:function(){return s},setValue:function(M){s=""+M},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Yr(n){if(!n._valueTracker){var a=_a(n)?"checked":"value";n._valueTracker=Si(n,a,""+n[a])}}function Hs(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),d="";return n&&(d=_a(n)?n.checked?"true":"false":n.value),n=d,n!==s?(a.setValue(n),!0):!1}function Kr(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Ds=/[\n"\\]/g;function io(n){return n.replace(Ds,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ke(n,a,s,d,h,y,M,_){n.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.type=M:n.removeAttribute("type"),a!=null?M==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Tn(a)):n.value!==""+Tn(a)&&(n.value=""+Tn(a)):M!=="submit"&&M!=="reset"||n.removeAttribute("value"),a!=null?Qr(n,M,Tn(a)):s!=null?Qr(n,M,Tn(s)):d!=null&&n.removeAttribute("value"),h==null&&y!=null&&(n.defaultChecked=!!y),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+Tn(_):n.removeAttribute("name")}function Dt(n,a,s,d,h,y,M,_){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),a!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){Yr(n);return}s=s!=null?""+Tn(s):"",a=a!=null?""+Tn(a):s,_||a===n.value||(n.value=a),n.defaultValue=a}d=d??h,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=_?n.checked:!!d,n.defaultChecked=!!d,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(n.name=M),Yr(n)}function Qr(n,a,s){a==="number"&&Kr(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Zr(n,a,s,d){if(n=n.options,a){a={};for(var h=0;h<s.length;h++)a["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=a.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&d&&(n[s].defaultSelected=!0)}else{for(s=""+Tn(s),a=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,d&&(n[h].defaultSelected=!0);return}a!==null||n[h].disabled||(a=n[h])}a!==null&&(a.selected=!0)}}function Ls(n,a,s){if(a!=null&&(a=""+Tn(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+Tn(s):""}function Vs(n,a,s,d){if(a==null){if(d!=null){if(s!=null)throw Error(r(92));if(U(d)){if(1<d.length)throw Error(r(93));d=d[0]}s=d}s==null&&(s=""),a=s}s=Tn(a),n.defaultValue=s,d=n.textContent,d===s&&d!==""&&d!==null&&(n.value=d),Yr(n)}function Jr(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var BR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fv(n,a,s){var d=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?d?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":d?n.setProperty(a,s):typeof s!="number"||s===0||BR.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}function mv(n,a,s){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,s!=null){for(var d in s)!s.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var h in a)d=a[h],a.hasOwnProperty(h)&&s[h]!==d&&fv(n,h,d)}else for(var y in a)a.hasOwnProperty(y)&&fv(n,y,a[y])}function _f(n){if(n.indexOf("-")===-1)return!1;switch(n){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 _R=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),HR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rc(n){return HR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function xr(){}var Hf=null;function Df(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ci=null,$i=null;function pv(n){var a=wt(n);if(a&&(n=a.stateNode)){var s=n[Mt]||null;e:switch(n=a.stateNode,a.type){case"input":if(ke(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+io(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var d=s[a];if(d!==n&&d.form===n.form){var h=d[Mt]||null;if(!h)throw Error(r(90));ke(d,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(a=0;a<s.length;a++)d=s[a],d.form===n.form&&Hs(d)}break e;case"textarea":Ls(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&Zr(n,!!s.multiple,a,!1)}}}var Lf=!1;function gv(n,a,s){if(Lf)return n(a,s);Lf=!0;try{var d=n(a);return d}finally{if(Lf=!1,(Ci!==null||$i!==null)&&(pu(),Ci&&(a=Ci,n=$i,$i=Ci=null,pv(a),n)))for(a=0;a<n.length;a++)pv(n[a])}}function Fs(n,a){var s=n.stateNode;if(s===null)return null;var d=s[Mt]||null;if(d===null)return null;s=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var Sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vf=!1;if(Sr)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){Vf=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{Vf=!1}var ea=null,Ff=null,Mc=null;function hv(){if(Mc)return Mc;var n,a=Ff,s=a.length,d,h="value"in ea?ea.value:ea.textContent,y=h.length;for(n=0;n<s&&a[n]===h[n];n++);var M=s-n;for(d=1;d<=M&&a[s-d]===h[y-d];d++);return Mc=h.slice(n,1<d?1-d:void 0)}function Tc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Oc(){return!0}function bv(){return!1}function so(n){function a(s,d,h,y,M){this._reactName=s,this._targetInst=h,this.type=d,this.nativeEvent=y,this.target=M,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(s=n[_],this[_]=s?s(y):y[_]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Oc:bv,this.isPropagationStopped=bv,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Oc)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Oc)},persist:function(){},isPersistent:Oc}),a}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zc=so(Ha),Us=b({},Ha,{view:0,detail:0}),DR=so(Us),qf,Uf,Ws,Ac=b({},Us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ws&&(Ws&&n.type==="mousemove"?(qf=n.screenX-Ws.screenX,Uf=n.screenY-Ws.screenY):Uf=qf=0,Ws=n),qf)},movementY:function(n){return"movementY"in n?n.movementY:Uf}}),vv=so(Ac),LR=b({},Ac,{dataTransfer:0}),VR=so(LR),FR=b({},Us,{relatedTarget:0}),Wf=so(FR),qR=b({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),UR=so(qR),WR=b({},Ha,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),GR=so(WR),XR=b({},Ha,{data:0}),yv=so(XR),kR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},KR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QR(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=KR[n])?!!a[n]:!1}function Gf(){return QR}var ZR=b({},Us,{key:function(n){if(n.key){var a=kR[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Tc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?YR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gf,charCode:function(n){return n.type==="keypress"?Tc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Tc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),JR=so(ZR),eM=b({},Ac,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xv=so(eM),tM=b({},Us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gf}),nM=so(tM),oM=b({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),rM=so(oM),aM=b({},Ac,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),iM=so(aM),sM=b({},Ha,{newState:0,oldState:0}),lM=so(sM),cM=[9,13,27,32],Xf=Sr&&"CompositionEvent"in window,Gs=null;Sr&&"documentMode"in document&&(Gs=document.documentMode);var uM=Sr&&"TextEvent"in window&&!Gs,Sv=Sr&&(!Xf||Gs&&8<Gs&&11>=Gs),Cv=" ",$v=!1;function Ev(n,a){switch(n){case"keyup":return cM.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ei=!1;function dM(n,a){switch(n){case"compositionend":return wv(a);case"keypress":return a.which!==32?null:($v=!0,Cv);case"textInput":return n=a.data,n===Cv&&$v?null:n;default:return null}}function fM(n,a){if(Ei)return n==="compositionend"||!Xf&&Ev(n,a)?(n=hv(),Mc=Ff=ea=null,Ei=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Sv&&a.locale!=="ko"?null:a.data;default:return null}}var mM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nv(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!mM[n.type]:a==="textarea"}function Rv(n,a,s,d){Ci?$i?$i.push(d):$i=[d]:Ci=d,a=Su(a,"onChange"),0<a.length&&(s=new zc("onChange","change",null,s,d),n.push({event:s,listeners:a}))}var Xs=null,ks=null;function pM(n){c1(n,0)}function Ic(n){var a=Ft(n);if(Hs(a))return n}function Mv(n,a){if(n==="change")return a}var Tv=!1;if(Sr){var kf;if(Sr){var Yf="oninput"in document;if(!Yf){var Ov=document.createElement("div");Ov.setAttribute("oninput","return;"),Yf=typeof Ov.oninput=="function"}kf=Yf}else kf=!1;Tv=kf&&(!document.documentMode||9<document.documentMode)}function zv(){Xs&&(Xs.detachEvent("onpropertychange",Av),ks=Xs=null)}function Av(n){if(n.propertyName==="value"&&Ic(ks)){var a=[];Rv(a,ks,n,Df(n)),gv(pM,a)}}function gM(n,a,s){n==="focusin"?(zv(),Xs=a,ks=s,Xs.attachEvent("onpropertychange",Av)):n==="focusout"&&zv()}function hM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ic(ks)}function bM(n,a){if(n==="click")return Ic(a)}function vM(n,a){if(n==="input"||n==="change")return Ic(a)}function yM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var vo=typeof Object.is=="function"?Object.is:yM;function Ys(n,a){if(vo(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),d=Object.keys(a);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var h=s[d];if(!xe.call(a,h)||!vo(n[h],a[h]))return!1}return!0}function Iv(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Pv(n,a){var s=Iv(n);n=0;for(var d;s;){if(s.nodeType===3){if(d=n+s.textContent.length,n<=a&&d>=a)return{node:s,offset:a-n};n=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Iv(s)}}function jv(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?jv(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Bv(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Kr(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=Kr(n.document)}return a}function Kf(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var xM=Sr&&"documentMode"in document&&11>=document.documentMode,wi=null,Qf=null,Ks=null,Zf=!1;function _v(n,a,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Zf||wi==null||wi!==Kr(d)||(d=wi,"selectionStart"in d&&Kf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ks&&Ys(Ks,d)||(Ks=d,d=Su(Qf,"onSelect"),0<d.length&&(a=new zc("onSelect","select",null,a,s),n.push({event:a,listeners:d}),a.target=wi)))}function Da(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var Ni={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionrun:Da("Transition","TransitionRun"),transitionstart:Da("Transition","TransitionStart"),transitioncancel:Da("Transition","TransitionCancel"),transitionend:Da("Transition","TransitionEnd")},Jf={},Hv={};Sr&&(Hv=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function La(n){if(Jf[n])return Jf[n];if(!Ni[n])return n;var a=Ni[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in Hv)return Jf[n]=a[s];return n}var Dv=La("animationend"),Lv=La("animationiteration"),Vv=La("animationstart"),SM=La("transitionrun"),CM=La("transitionstart"),$M=La("transitioncancel"),Fv=La("transitionend"),qv=new Map,em="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");em.push("scrollEnd");function Zo(n,a){qv.set(n,a),jn(a,[n])}var Pc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},jo=[],Ri=0,tm=0;function jc(){for(var n=Ri,a=tm=Ri=0;a<n;){var s=jo[a];jo[a++]=null;var d=jo[a];jo[a++]=null;var h=jo[a];jo[a++]=null;var y=jo[a];if(jo[a++]=null,d!==null&&h!==null){var M=d.pending;M===null?h.next=h:(h.next=M.next,M.next=h),d.pending=h}y!==0&&Uv(s,h,y)}}function Bc(n,a,s,d){jo[Ri++]=n,jo[Ri++]=a,jo[Ri++]=s,jo[Ri++]=d,tm|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function nm(n,a,s,d){return Bc(n,a,s,d),_c(n)}function Va(n,a){return Bc(n,null,null,a),_c(n)}function Uv(n,a,s){n.lanes|=s;var d=n.alternate;d!==null&&(d.lanes|=s);for(var h=!1,y=n.return;y!==null;)y.childLanes|=s,d=y.alternate,d!==null&&(d.childLanes|=s),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(h=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,h&&a!==null&&(h=31-Qe(s),n=y.hiddenUpdates,d=n[h],d===null?n[h]=[a]:d.push(a),a.lane=s|536870912),y):null}function _c(n){if(50<vl)throw vl=0,dp=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Mi={};function EM(n,a,s,d){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(n,a,s,d){return new EM(n,a,s,d)}function om(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Cr(n,a){var s=n.alternate;return s===null?(s=yo(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function Wv(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Hc(n,a,s,d,h,y){var M=0;if(d=n,typeof n=="function")om(n)&&(M=1);else if(typeof n=="string")M=TT(n,s,G.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case B:return n=yo(31,s,a,h),n.elementType=B,n.lanes=y,n;case S:return Fa(s.children,h,y,a);case R:M=8,h|=24;break;case E:return n=yo(12,s,a,h|2),n.elementType=E,n.lanes=y,n;case T:return n=yo(13,s,a,h),n.elementType=T,n.lanes=y,n;case z:return n=yo(19,s,a,h),n.elementType=z,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case $:M=10;break e;case N:M=9;break e;case w:M=11;break e;case A:M=14;break e;case P:M=16,d=null;break e}M=29,s=Error(r(130,n===null?"null":typeof n,"")),d=null}return a=yo(M,s,a,h),a.elementType=n,a.type=d,a.lanes=y,a}function Fa(n,a,s,d){return n=yo(7,n,d,a),n.lanes=s,n}function rm(n,a,s){return n=yo(6,n,null,a),n.lanes=s,n}function Gv(n){var a=yo(18,null,null,0);return a.stateNode=n,a}function am(n,a,s){return a=yo(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Xv=new WeakMap;function Bo(n,a){if(typeof n=="object"&&n!==null){var s=Xv.get(n);return s!==void 0?s:(a={value:n,source:a,stack:ye(a)},Xv.set(n,a),a)}return{value:n,source:a,stack:ye(a)}}var Ti=[],Oi=0,Dc=null,Qs=0,_o=[],Ho=0,ta=null,sr=1,lr="";function $r(n,a){Ti[Oi++]=Qs,Ti[Oi++]=Dc,Dc=n,Qs=a}function kv(n,a,s){_o[Ho++]=sr,_o[Ho++]=lr,_o[Ho++]=ta,ta=n;var d=sr;n=lr;var h=32-Qe(d)-1;d&=~(1<<h),s+=1;var y=32-Qe(a)+h;if(30<y){var M=h-h%5;y=(d&(1<<M)-1).toString(32),d>>=M,h-=M,sr=1<<32-Qe(a)+h|s<<h|d,lr=y+n}else sr=1<<y|s<<h|d,lr=n}function im(n){n.return!==null&&($r(n,1),kv(n,1,0))}function sm(n){for(;n===Dc;)Dc=Ti[--Oi],Ti[Oi]=null,Qs=Ti[--Oi],Ti[Oi]=null;for(;n===ta;)ta=_o[--Ho],_o[Ho]=null,lr=_o[--Ho],_o[Ho]=null,sr=_o[--Ho],_o[Ho]=null}function Yv(n,a){_o[Ho++]=sr,_o[Ho++]=lr,_o[Ho++]=ta,sr=a.id,lr=a.overflow,ta=n}var Fn=null,hn=null,Bt=!1,na=null,Do=!1,lm=Error(r(519));function oa(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zs(Bo(a,n)),lm}function Kv(n){var a=n.stateNode,s=n.type,d=n.memoizedProps;switch(a[mt]=n,a[Mt]=d,s){case"dialog":At("cancel",a),At("close",a);break;case"iframe":case"object":case"embed":At("load",a);break;case"video":case"audio":for(s=0;s<xl.length;s++)At(xl[s],a);break;case"source":At("error",a);break;case"img":case"image":case"link":At("error",a),At("load",a);break;case"details":At("toggle",a);break;case"input":At("invalid",a),Dt(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":At("invalid",a);break;case"textarea":At("invalid",a),Vs(a,d.value,d.defaultValue,d.children)}s=d.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||d.suppressHydrationWarning===!0||m1(a.textContent,s)?(d.popover!=null&&(At("beforetoggle",a),At("toggle",a)),d.onScroll!=null&&At("scroll",a),d.onScrollEnd!=null&&At("scrollend",a),d.onClick!=null&&(a.onclick=xr),a=!0):a=!1,a||oa(n,!0)}function Qv(n){for(Fn=n.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:Do=!1;return;case 27:case 3:Do=!0;return;default:Fn=Fn.return}}function zi(n){if(n!==Fn)return!1;if(!Bt)return Qv(n),Bt=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||Np(n.type,n.memoizedProps)),s=!s),s&&hn&&oa(n),Qv(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));hn=C1(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));hn=C1(n)}else a===27?(a=hn,ba(n.type)?(n=zp,zp=null,hn=n):hn=a):hn=Fn?Vo(n.stateNode.nextSibling):null;return!0}function qa(){hn=Fn=null,Bt=!1}function cm(){var n=na;return n!==null&&(fo===null?fo=n:fo.push.apply(fo,n),na=null),n}function Zs(n){na===null?na=[n]:na.push(n)}var um=j(null),Ua=null,Er=null;function ra(n,a,s){k(um,a._currentValue),a._currentValue=s}function wr(n){n._currentValue=um.current,V(um)}function dm(n,a,s){for(;n!==null;){var d=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),n===s)break;n=n.return}}function fm(n,a,s,d){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var y=h.dependencies;if(y!==null){var M=h.child;y=y.firstContext;e:for(;y!==null;){var _=y;y=h;for(var ee=0;ee<a.length;ee++)if(_.context===a[ee]){y.lanes|=s,_=y.alternate,_!==null&&(_.lanes|=s),dm(y.return,s,n),d||(M=null);break e}y=_.next}}else if(h.tag===18){if(M=h.return,M===null)throw Error(r(341));M.lanes|=s,y=M.alternate,y!==null&&(y.lanes|=s),dm(M,s,n),M=null}else M=h.child;if(M!==null)M.return=h;else for(M=h;M!==null;){if(M===n){M=null;break}if(h=M.sibling,h!==null){h.return=M.return,M=h;break}M=M.return}h=M}}function Ai(n,a,s,d){n=null;for(var h=a,y=!1;h!==null;){if(!y){if((h.flags&524288)!==0)y=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var M=h.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var _=h.type;vo(h.pendingProps.value,M.value)||(n!==null?n.push(_):n=[_])}}else if(h===Y.current){if(M=h.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(wl):n=[wl])}h=h.return}n!==null&&fm(a,n,s,d),a.flags|=262144}function Lc(n){for(n=n.firstContext;n!==null;){if(!vo(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Wa(n){Ua=n,Er=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function qn(n){return Zv(Ua,n)}function Vc(n,a){return Ua===null&&Wa(n),Zv(n,a)}function Zv(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},Er===null){if(n===null)throw Error(r(308));Er=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Er=Er.next=a;return s}var wM=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,d){n.push(d)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},NM=e.unstable_scheduleCallback,RM=e.unstable_NormalPriority,On={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mm(){return{controller:new wM,data:new Map,refCount:0}}function Js(n){n.refCount--,n.refCount===0&&NM(RM,function(){n.controller.abort()})}var el=null,pm=0,Ii=0,Pi=null;function MM(n,a){if(el===null){var s=el=[];pm=0,Ii=bp(),Pi={status:"pending",value:void 0,then:function(d){s.push(d)}}}return pm++,a.then(Jv,Jv),a}function Jv(){if(--pm===0&&el!==null){Pi!==null&&(Pi.status="fulfilled");var n=el;el=null,Ii=0,Pi=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function TM(n,a){var s=[],d={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return n.then(function(){d.status="fulfilled",d.value=a;for(var h=0;h<s.length;h++)(0,s[h])(a)},function(h){for(d.status="rejected",d.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),d}var ey=L.S;L.S=function(n,a){_x=He(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&MM(n,a),ey!==null&&ey(n,a)};var Ga=j(null);function gm(){var n=Ga.current;return n!==null?n:fn.pooledCache}function Fc(n,a){a===null?k(Ga,Ga.current):k(Ga,a.pool)}function ty(){var n=gm();return n===null?null:{parent:On._currentValue,pool:n}}var ji=Error(r(460)),hm=Error(r(474)),qc=Error(r(542)),Uc={then:function(){}};function ny(n){return n=n.status,n==="fulfilled"||n==="rejected"}function oy(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(xr,xr),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ay(n),n;default:if(typeof a.status=="string")a.then(xr,xr);else{if(n=fn,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(d){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=d}},function(d){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ay(n),n}throw ka=a,ji}}function Xa(n){try{var a=n._init;return a(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ka=s,ji):s}}var ka=null;function ry(){if(ka===null)throw Error(r(459));var n=ka;return ka=null,n}function ay(n){if(n===ji||n===qc)throw Error(r(483))}var Bi=null,tl=0;function Wc(n){var a=tl;return tl+=1,Bi===null&&(Bi=[]),oy(Bi,n,a)}function nl(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Gc(n,a){throw a.$$typeof===v?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function iy(n){function a(le,oe){if(n){var de=le.deletions;de===null?(le.deletions=[oe],le.flags|=16):de.push(oe)}}function s(le,oe){if(!n)return null;for(;oe!==null;)a(le,oe),oe=oe.sibling;return null}function d(le){for(var oe=new Map;le!==null;)le.key!==null?oe.set(le.key,le):oe.set(le.index,le),le=le.sibling;return oe}function h(le,oe){return le=Cr(le,oe),le.index=0,le.sibling=null,le}function y(le,oe,de){return le.index=de,n?(de=le.alternate,de!==null?(de=de.index,de<oe?(le.flags|=67108866,oe):de):(le.flags|=67108866,oe)):(le.flags|=1048576,oe)}function M(le){return n&&le.alternate===null&&(le.flags|=67108866),le}function _(le,oe,de,Re){return oe===null||oe.tag!==6?(oe=rm(de,le.mode,Re),oe.return=le,oe):(oe=h(oe,de),oe.return=le,oe)}function ee(le,oe,de,Re){var st=de.type;return st===S?Ee(le,oe,de.props.children,Re,de.key):oe!==null&&(oe.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===P&&Xa(st)===oe.type)?(oe=h(oe,de.props),nl(oe,de),oe.return=le,oe):(oe=Hc(de.type,de.key,de.props,null,le.mode,Re),nl(oe,de),oe.return=le,oe)}function fe(le,oe,de,Re){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==de.containerInfo||oe.stateNode.implementation!==de.implementation?(oe=am(de,le.mode,Re),oe.return=le,oe):(oe=h(oe,de.children||[]),oe.return=le,oe)}function Ee(le,oe,de,Re,st){return oe===null||oe.tag!==7?(oe=Fa(de,le.mode,Re,st),oe.return=le,oe):(oe=h(oe,de),oe.return=le,oe)}function Me(le,oe,de){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return oe=rm(""+oe,le.mode,de),oe.return=le,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case x:return de=Hc(oe.type,oe.key,oe.props,null,le.mode,de),nl(de,oe),de.return=le,de;case C:return oe=am(oe,le.mode,de),oe.return=le,oe;case P:return oe=Xa(oe),Me(le,oe,de)}if(U(oe)||H(oe))return oe=Fa(oe,le.mode,de,null),oe.return=le,oe;if(typeof oe.then=="function")return Me(le,Wc(oe),de);if(oe.$$typeof===$)return Me(le,Vc(le,oe),de);Gc(le,oe)}return null}function pe(le,oe,de,Re){var st=oe!==null?oe.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return st!==null?null:_(le,oe,""+de,Re);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case x:return de.key===st?ee(le,oe,de,Re):null;case C:return de.key===st?fe(le,oe,de,Re):null;case P:return de=Xa(de),pe(le,oe,de,Re)}if(U(de)||H(de))return st!==null?null:Ee(le,oe,de,Re,null);if(typeof de.then=="function")return pe(le,oe,Wc(de),Re);if(de.$$typeof===$)return pe(le,oe,Vc(le,de),Re);Gc(le,de)}return null}function be(le,oe,de,Re,st){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return le=le.get(de)||null,_(oe,le,""+Re,st);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case x:return le=le.get(Re.key===null?de:Re.key)||null,ee(oe,le,Re,st);case C:return le=le.get(Re.key===null?de:Re.key)||null,fe(oe,le,Re,st);case P:return Re=Xa(Re),be(le,oe,de,Re,st)}if(U(Re)||H(Re))return le=le.get(de)||null,Ee(oe,le,Re,st,null);if(typeof Re.then=="function")return be(le,oe,de,Wc(Re),st);if(Re.$$typeof===$)return be(le,oe,de,Vc(oe,Re),st);Gc(oe,Re)}return null}function tt(le,oe,de,Re){for(var st=null,qt=null,ot=oe,xt=oe=0,Pt=null;ot!==null&&xt<de.length;xt++){ot.index>xt?(Pt=ot,ot=null):Pt=ot.sibling;var Ut=pe(le,ot,de[xt],Re);if(Ut===null){ot===null&&(ot=Pt);break}n&&ot&&Ut.alternate===null&&a(le,ot),oe=y(Ut,oe,xt),qt===null?st=Ut:qt.sibling=Ut,qt=Ut,ot=Pt}if(xt===de.length)return s(le,ot),Bt&&$r(le,xt),st;if(ot===null){for(;xt<de.length;xt++)ot=Me(le,de[xt],Re),ot!==null&&(oe=y(ot,oe,xt),qt===null?st=ot:qt.sibling=ot,qt=ot);return Bt&&$r(le,xt),st}for(ot=d(ot);xt<de.length;xt++)Pt=be(ot,le,xt,de[xt],Re),Pt!==null&&(n&&Pt.alternate!==null&&ot.delete(Pt.key===null?xt:Pt.key),oe=y(Pt,oe,xt),qt===null?st=Pt:qt.sibling=Pt,qt=Pt);return n&&ot.forEach(function(Ca){return a(le,Ca)}),Bt&&$r(le,xt),st}function dt(le,oe,de,Re){if(de==null)throw Error(r(151));for(var st=null,qt=null,ot=oe,xt=oe=0,Pt=null,Ut=de.next();ot!==null&&!Ut.done;xt++,Ut=de.next()){ot.index>xt?(Pt=ot,ot=null):Pt=ot.sibling;var Ca=pe(le,ot,Ut.value,Re);if(Ca===null){ot===null&&(ot=Pt);break}n&&ot&&Ca.alternate===null&&a(le,ot),oe=y(Ca,oe,xt),qt===null?st=Ca:qt.sibling=Ca,qt=Ca,ot=Pt}if(Ut.done)return s(le,ot),Bt&&$r(le,xt),st;if(ot===null){for(;!Ut.done;xt++,Ut=de.next())Ut=Me(le,Ut.value,Re),Ut!==null&&(oe=y(Ut,oe,xt),qt===null?st=Ut:qt.sibling=Ut,qt=Ut);return Bt&&$r(le,xt),st}for(ot=d(ot);!Ut.done;xt++,Ut=de.next())Ut=be(ot,le,xt,Ut.value,Re),Ut!==null&&(n&&Ut.alternate!==null&&ot.delete(Ut.key===null?xt:Ut.key),oe=y(Ut,oe,xt),qt===null?st=Ut:qt.sibling=Ut,qt=Ut);return n&&ot.forEach(function(LT){return a(le,LT)}),Bt&&$r(le,xt),st}function sn(le,oe,de,Re){if(typeof de=="object"&&de!==null&&de.type===S&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case x:e:{for(var st=de.key;oe!==null;){if(oe.key===st){if(st=de.type,st===S){if(oe.tag===7){s(le,oe.sibling),Re=h(oe,de.props.children),Re.return=le,le=Re;break e}}else if(oe.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===P&&Xa(st)===oe.type){s(le,oe.sibling),Re=h(oe,de.props),nl(Re,de),Re.return=le,le=Re;break e}s(le,oe);break}else a(le,oe);oe=oe.sibling}de.type===S?(Re=Fa(de.props.children,le.mode,Re,de.key),Re.return=le,le=Re):(Re=Hc(de.type,de.key,de.props,null,le.mode,Re),nl(Re,de),Re.return=le,le=Re)}return M(le);case C:e:{for(st=de.key;oe!==null;){if(oe.key===st)if(oe.tag===4&&oe.stateNode.containerInfo===de.containerInfo&&oe.stateNode.implementation===de.implementation){s(le,oe.sibling),Re=h(oe,de.children||[]),Re.return=le,le=Re;break e}else{s(le,oe);break}else a(le,oe);oe=oe.sibling}Re=am(de,le.mode,Re),Re.return=le,le=Re}return M(le);case P:return de=Xa(de),sn(le,oe,de,Re)}if(U(de))return tt(le,oe,de,Re);if(H(de)){if(st=H(de),typeof st!="function")throw Error(r(150));return de=st.call(de),dt(le,oe,de,Re)}if(typeof de.then=="function")return sn(le,oe,Wc(de),Re);if(de.$$typeof===$)return sn(le,oe,Vc(le,de),Re);Gc(le,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,oe!==null&&oe.tag===6?(s(le,oe.sibling),Re=h(oe,de),Re.return=le,le=Re):(s(le,oe),Re=rm(de,le.mode,Re),Re.return=le,le=Re),M(le)):s(le,oe)}return function(le,oe,de,Re){try{tl=0;var st=sn(le,oe,de,Re);return Bi=null,st}catch(ot){if(ot===ji||ot===qc)throw ot;var qt=yo(29,ot,null,le.mode);return qt.lanes=Re,qt.return=le,qt}}}var Ya=iy(!0),sy=iy(!1),aa=!1;function bm(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vm(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ia(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function sa(n,a,s){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(kt&2)!==0){var h=d.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),d.pending=a,a=_c(n),Uv(n,null,s),a}return Bc(n,d,a,s),_c(n)}function ol(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var d=a.lanes;d&=n.pendingLanes,s|=d,a.lanes=s,ve(n,s)}}function ym(n,a){var s=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var h=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var M={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?h=y=M:y=y.next=M,s=s.next}while(s!==null);y===null?h=y=a:y=y.next=a}else h=y=a;s={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var xm=!1;function rl(){if(xm){var n=Pi;if(n!==null)throw n}}function al(n,a,s,d){xm=!1;var h=n.updateQueue;aa=!1;var y=h.firstBaseUpdate,M=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var ee=_,fe=ee.next;ee.next=null,M===null?y=fe:M.next=fe,M=ee;var Ee=n.alternate;Ee!==null&&(Ee=Ee.updateQueue,_=Ee.lastBaseUpdate,_!==M&&(_===null?Ee.firstBaseUpdate=fe:_.next=fe,Ee.lastBaseUpdate=ee))}if(y!==null){var Me=h.baseState;M=0,Ee=fe=ee=null,_=y;do{var pe=_.lane&-536870913,be=pe!==_.lane;if(be?(It&pe)===pe:(d&pe)===pe){pe!==0&&pe===Ii&&(xm=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var tt=n,dt=_;pe=a;var sn=s;switch(dt.tag){case 1:if(tt=dt.payload,typeof tt=="function"){Me=tt.call(sn,Me,pe);break e}Me=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=dt.payload,pe=typeof tt=="function"?tt.call(sn,Me,pe):tt,pe==null)break e;Me=b({},Me,pe);break e;case 2:aa=!0}}pe=_.callback,pe!==null&&(n.flags|=64,be&&(n.flags|=8192),be=h.callbacks,be===null?h.callbacks=[pe]:be.push(pe))}else be={lane:pe,tag:_.tag,payload:_.payload,callback:_.callback,next:null},Ee===null?(fe=Ee=be,ee=Me):Ee=Ee.next=be,M|=pe;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;be=_,_=be.next,be.next=null,h.lastBaseUpdate=be,h.shared.pending=null}}while(!0);Ee===null&&(ee=Me),h.baseState=ee,h.firstBaseUpdate=fe,h.lastBaseUpdate=Ee,y===null&&(h.shared.lanes=0),fa|=M,n.lanes=M,n.memoizedState=Me}}function ly(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function cy(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)ly(s[n],a)}var _i=j(null),Xc=j(0);function uy(n,a){n=Pr,k(Xc,n),k(_i,a),Pr=n|a.baseLanes}function Sm(){k(Xc,Pr),k(_i,_i.current)}function Cm(){Pr=Xc.current,V(_i),V(Xc)}var xo=j(null),Lo=null;function la(n){var a=n.alternate;k(Nn,Nn.current&1),k(xo,n),Lo===null&&(a===null||_i.current!==null||a.memoizedState!==null)&&(Lo=n)}function $m(n){k(Nn,Nn.current),k(xo,n),Lo===null&&(Lo=n)}function dy(n){n.tag===22?(k(Nn,Nn.current),k(xo,n),Lo===null&&(Lo=n)):ca()}function ca(){k(Nn,Nn.current),k(xo,xo.current)}function So(n){V(xo),Lo===n&&(Lo=null),V(Nn)}var Nn=j(0);function kc(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Tp(s)||Op(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Nr=0,vt=null,rn=null,zn=null,Yc=!1,Hi=!1,Ka=!1,Kc=0,il=0,Di=null,OM=0;function Sn(){throw Error(r(321))}function Em(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!vo(n[s],a[s]))return!1;return!0}function wm(n,a,s,d,h,y){return Nr=y,vt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=n===null||n.memoizedState===null?ky:Lm,Ka=!1,y=s(d,h),Ka=!1,Hi&&(y=my(a,s,d,h)),fy(n),y}function fy(n){L.H=cl;var a=rn!==null&&rn.next!==null;if(Nr=0,zn=rn=vt=null,Yc=!1,il=0,Di=null,a)throw Error(r(300));n===null||An||(n=n.dependencies,n!==null&&Lc(n)&&(An=!0))}function my(n,a,s,d){vt=n;var h=0;do{if(Hi&&(Di=null),il=0,Hi=!1,25<=h)throw Error(r(301));if(h+=1,zn=rn=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}L.H=Yy,y=a(s,d)}while(Hi);return y}function zM(){var n=L.H,a=n.useState()[0];return a=typeof a.then=="function"?sl(a):a,n=n.useState()[0],(rn!==null?rn.memoizedState:null)!==n&&(vt.flags|=1024),a}function Nm(){var n=Kc!==0;return Kc=0,n}function Rm(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function Mm(n){if(Yc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Yc=!1}Nr=0,zn=rn=vt=null,Hi=!1,il=Kc=0,Di=null}function Jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?vt.memoizedState=zn=n:zn=zn.next=n,zn}function Rn(){if(rn===null){var n=vt.alternate;n=n!==null?n.memoizedState:null}else n=rn.next;var a=zn===null?vt.memoizedState:zn.next;if(a!==null)zn=a,rn=n;else{if(n===null)throw vt.alternate===null?Error(r(467)):Error(r(310));rn=n,n={memoizedState:rn.memoizedState,baseState:rn.baseState,baseQueue:rn.baseQueue,queue:rn.queue,next:null},zn===null?vt.memoizedState=zn=n:zn=zn.next=n}return zn}function Qc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(n){var a=il;return il+=1,Di===null&&(Di=[]),n=oy(Di,n,a),a=vt,(zn===null?a.memoizedState:zn.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?ky:Lm),n}function Zc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return sl(n);if(n.$$typeof===$)return qn(n)}throw Error(r(438,String(n)))}function Tm(n){var a=null,s=vt.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var d=vt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Qc(),vt.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),d=0;d<n;d++)s[d]=D;return a.index++,s}function Rr(n,a){return typeof a=="function"?a(n):a}function Jc(n){var a=Rn();return Om(a,rn,n)}function Om(n,a,s){var d=n.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=s;var h=n.baseQueue,y=d.pending;if(y!==null){if(h!==null){var M=h.next;h.next=y.next,y.next=M}a.baseQueue=h=y,d.pending=null}if(y=n.baseState,h===null)n.memoizedState=y;else{a=h.next;var _=M=null,ee=null,fe=a,Ee=!1;do{var Me=fe.lane&-536870913;if(Me!==fe.lane?(It&Me)===Me:(Nr&Me)===Me){var pe=fe.revertLane;if(pe===0)ee!==null&&(ee=ee.next={lane:0,revertLane:0,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Me===Ii&&(Ee=!0);else if((Nr&pe)===pe){fe=fe.next,pe===Ii&&(Ee=!0);continue}else Me={lane:0,revertLane:fe.revertLane,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},ee===null?(_=ee=Me,M=y):ee=ee.next=Me,vt.lanes|=pe,fa|=pe;Me=fe.action,Ka&&s(y,Me),y=fe.hasEagerState?fe.eagerState:s(y,Me)}else pe={lane:Me,revertLane:fe.revertLane,gesture:fe.gesture,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},ee===null?(_=ee=pe,M=y):ee=ee.next=pe,vt.lanes|=Me,fa|=Me;fe=fe.next}while(fe!==null&&fe!==a);if(ee===null?M=y:ee.next=_,!vo(y,n.memoizedState)&&(An=!0,Ee&&(s=Pi,s!==null)))throw s;n.memoizedState=y,n.baseState=M,n.baseQueue=ee,d.lastRenderedState=y}return h===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function zm(n){var a=Rn(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var d=s.dispatch,h=s.pending,y=a.memoizedState;if(h!==null){s.pending=null;var M=h=h.next;do y=n(y,M.action),M=M.next;while(M!==h);vo(y,a.memoizedState)||(An=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),s.lastRenderedState=y}return[y,d]}function py(n,a,s){var d=vt,h=Rn(),y=Bt;if(y){if(s===void 0)throw Error(r(407));s=s()}else s=a();var M=!vo((rn||h).memoizedState,s);if(M&&(h.memoizedState=s,An=!0),h=h.queue,Pm(by.bind(null,d,h,n),[n]),h.getSnapshot!==a||M||zn!==null&&zn.memoizedState.tag&1){if(d.flags|=2048,Li(9,{destroy:void 0},hy.bind(null,d,h,s,a),null),fn===null)throw Error(r(349));y||(Nr&127)!==0||gy(d,a,s)}return s}function gy(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=vt.updateQueue,a===null?(a=Qc(),vt.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function hy(n,a,s,d){a.value=s,a.getSnapshot=d,vy(a)&&yy(n)}function by(n,a,s){return s(function(){vy(a)&&yy(n)})}function vy(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!vo(n,s)}catch{return!0}}function yy(n){var a=Va(n,2);a!==null&&mo(a,n,2)}function Am(n){var a=Jn();if(typeof n=="function"){var s=n;if(n=s(),Ka){Oe(!0);try{s()}finally{Oe(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:n},a}function xy(n,a,s,d){return n.baseState=s,Om(n,rn,typeof d=="function"?d:Rr)}function AM(n,a,s,d,h){if(nu(n))throw Error(r(485));if(n=a.action,n!==null){var y={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){y.listeners.push(M)}};L.T!==null?s(!0):y.isTransition=!1,d(y),s=a.pending,s===null?(y.next=a.pending=y,Sy(a,y)):(y.next=s.next,a.pending=s.next=y)}}function Sy(n,a){var s=a.action,d=a.payload,h=n.state;if(a.isTransition){var y=L.T,M={};L.T=M;try{var _=s(h,d),ee=L.S;ee!==null&&ee(M,_),Cy(n,a,_)}catch(fe){Im(n,a,fe)}finally{y!==null&&M.types!==null&&(y.types=M.types),L.T=y}}else try{y=s(h,d),Cy(n,a,y)}catch(fe){Im(n,a,fe)}}function Cy(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(d){$y(n,a,d)},function(d){return Im(n,a,d)}):$y(n,a,s)}function $y(n,a,s){a.status="fulfilled",a.value=s,Ey(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,Sy(n,s)))}function Im(n,a,s){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=s,Ey(a),a=a.next;while(a!==d)}n.action=null}function Ey(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function wy(n,a){return a}function Ny(n,a){if(Bt){var s=fn.formState;if(s!==null){e:{var d=vt;if(Bt){if(hn){t:{for(var h=hn,y=Do;h.nodeType!==8;){if(!y){h=null;break t}if(h=Vo(h.nextSibling),h===null){h=null;break t}}y=h.data,h=y==="F!"||y==="F"?h:null}if(h){hn=Vo(h.nextSibling),d=h.data==="F!";break e}}oa(d)}d=!1}d&&(a=s[0])}}return s=Jn(),s.memoizedState=s.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wy,lastRenderedState:a},s.queue=d,s=Wy.bind(null,vt,d),d.dispatch=s,d=Am(!1),y=Dm.bind(null,vt,!1,d.queue),d=Jn(),h={state:a,dispatch:null,action:n,pending:null},d.queue=h,s=AM.bind(null,vt,h,y,s),h.dispatch=s,d.memoizedState=n,[a,s,!1]}function Ry(n){var a=Rn();return My(a,rn,n)}function My(n,a,s){if(a=Om(n,a,wy)[0],n=Jc(Rr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=sl(a)}catch(M){throw M===ji?qc:M}else d=a;a=Rn();var h=a.queue,y=h.dispatch;return s!==a.memoizedState&&(vt.flags|=2048,Li(9,{destroy:void 0},IM.bind(null,h,s),null)),[d,y,n]}function IM(n,a){n.action=a}function Ty(n){var a=Rn(),s=rn;if(s!==null)return My(a,s,n);Rn(),a=a.memoizedState,s=Rn();var d=s.queue.dispatch;return s.memoizedState=n,[a,d,!1]}function Li(n,a,s,d){return n={tag:n,create:s,deps:d,inst:a,next:null},a=vt.updateQueue,a===null&&(a=Qc(),vt.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(d=s.next,s.next=n,n.next=d,a.lastEffect=n),n}function Oy(){return Rn().memoizedState}function eu(n,a,s,d){var h=Jn();vt.flags|=n,h.memoizedState=Li(1|a,{destroy:void 0},s,d===void 0?null:d)}function tu(n,a,s,d){var h=Rn();d=d===void 0?null:d;var y=h.memoizedState.inst;rn!==null&&d!==null&&Em(d,rn.memoizedState.deps)?h.memoizedState=Li(a,y,s,d):(vt.flags|=n,h.memoizedState=Li(1|a,y,s,d))}function zy(n,a){eu(8390656,8,n,a)}function Pm(n,a){tu(2048,8,n,a)}function PM(n){vt.flags|=4;var a=vt.updateQueue;if(a===null)a=Qc(),vt.updateQueue=a,a.events=[n];else{var s=a.events;s===null?a.events=[n]:s.push(n)}}function Ay(n){var a=Rn().memoizedState;return PM({ref:a,nextImpl:n}),function(){if((kt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Iy(n,a){return tu(4,2,n,a)}function Py(n,a){return tu(4,4,n,a)}function jy(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function By(n,a,s){s=s!=null?s.concat([n]):null,tu(4,4,jy.bind(null,a,n),s)}function jm(){}function _y(n,a){var s=Rn();a=a===void 0?null:a;var d=s.memoizedState;return a!==null&&Em(a,d[1])?d[0]:(s.memoizedState=[n,a],n)}function Hy(n,a){var s=Rn();a=a===void 0?null:a;var d=s.memoizedState;if(a!==null&&Em(a,d[1]))return d[0];if(d=n(),Ka){Oe(!0);try{n()}finally{Oe(!1)}}return s.memoizedState=[d,a],d}function Bm(n,a,s){return s===void 0||(Nr&1073741824)!==0&&(It&261930)===0?n.memoizedState=a:(n.memoizedState=s,n=Dx(),vt.lanes|=n,fa|=n,s)}function Dy(n,a,s,d){return vo(s,a)?s:_i.current!==null?(n=Bm(n,s,d),vo(n,a)||(An=!0),n):(Nr&42)===0||(Nr&1073741824)!==0&&(It&261930)===0?(An=!0,n.memoizedState=s):(n=Dx(),vt.lanes|=n,fa|=n,a)}function Ly(n,a,s,d,h){var y=q.p;q.p=y!==0&&8>y?y:8;var M=L.T,_={};L.T=_,Dm(n,!1,a,s);try{var ee=h(),fe=L.S;if(fe!==null&&fe(_,ee),ee!==null&&typeof ee=="object"&&typeof ee.then=="function"){var Ee=TM(ee,d);ll(n,a,Ee,Eo(n))}else ll(n,a,d,Eo(n))}catch(Me){ll(n,a,{then:function(){},status:"rejected",reason:Me},Eo())}finally{q.p=y,M!==null&&_.types!==null&&(M.types=_.types),L.T=M}}function jM(){}function _m(n,a,s,d){if(n.tag!==5)throw Error(r(476));var h=Vy(n).queue;Ly(n,h,a,F,s===null?jM:function(){return Fy(n),s(d)})}function Vy(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:F},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Fy(n){var a=Vy(n);a.next===null&&(a=n.alternate.memoizedState),ll(n,a.next.queue,{},Eo())}function Hm(){return qn(wl)}function qy(){return Rn().memoizedState}function Uy(){return Rn().memoizedState}function BM(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=Eo();n=ia(s);var d=sa(a,n,s);d!==null&&(mo(d,a,s),ol(d,a,s)),a={cache:mm()},n.payload=a;return}a=a.return}}function _M(n,a,s){var d=Eo();s={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},nu(n)?Gy(a,s):(s=nm(n,a,s,d),s!==null&&(mo(s,n,d),Xy(s,a,d)))}function Wy(n,a,s){var d=Eo();ll(n,a,s,d)}function ll(n,a,s,d){var h={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(nu(n))Gy(a,h);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var M=a.lastRenderedState,_=y(M,s);if(h.hasEagerState=!0,h.eagerState=_,vo(_,M))return Bc(n,a,h,0),fn===null&&jc(),!1}catch{}if(s=nm(n,a,h,d),s!==null)return mo(s,n,d),Xy(s,a,d),!0}return!1}function Dm(n,a,s,d){if(d={lane:2,revertLane:bp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},nu(n)){if(a)throw Error(r(479))}else a=nm(n,s,d,2),a!==null&&mo(a,n,2)}function nu(n){var a=n.alternate;return n===vt||a!==null&&a===vt}function Gy(n,a){Hi=Yc=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function Xy(n,a,s){if((s&4194048)!==0){var d=a.lanes;d&=n.pendingLanes,s|=d,a.lanes=s,ve(n,s)}}var cl={readContext:qn,use:Zc,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useLayoutEffect:Sn,useInsertionEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useSyncExternalStore:Sn,useId:Sn,useHostTransitionStatus:Sn,useFormState:Sn,useActionState:Sn,useOptimistic:Sn,useMemoCache:Sn,useCacheRefresh:Sn};cl.useEffectEvent=Sn;var ky={readContext:qn,use:Zc,useCallback:function(n,a){return Jn().memoizedState=[n,a===void 0?null:a],n},useContext:qn,useEffect:zy,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,eu(4194308,4,jy.bind(null,a,n),s)},useLayoutEffect:function(n,a){return eu(4194308,4,n,a)},useInsertionEffect:function(n,a){eu(4,2,n,a)},useMemo:function(n,a){var s=Jn();a=a===void 0?null:a;var d=n();if(Ka){Oe(!0);try{n()}finally{Oe(!1)}}return s.memoizedState=[d,a],d},useReducer:function(n,a,s){var d=Jn();if(s!==void 0){var h=s(a);if(Ka){Oe(!0);try{s(a)}finally{Oe(!1)}}}else h=a;return d.memoizedState=d.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},d.queue=n,n=n.dispatch=_M.bind(null,vt,n),[d.memoizedState,n]},useRef:function(n){var a=Jn();return n={current:n},a.memoizedState=n},useState:function(n){n=Am(n);var a=n.queue,s=Wy.bind(null,vt,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:jm,useDeferredValue:function(n,a){var s=Jn();return Bm(s,n,a)},useTransition:function(){var n=Am(!1);return n=Ly.bind(null,vt,n.queue,!0,!1),Jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var d=vt,h=Jn();if(Bt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),fn===null)throw Error(r(349));(It&127)!==0||gy(d,a,s)}h.memoizedState=s;var y={value:s,getSnapshot:a};return h.queue=y,zy(by.bind(null,d,y,n),[n]),d.flags|=2048,Li(9,{destroy:void 0},hy.bind(null,d,y,s,a),null),s},useId:function(){var n=Jn(),a=fn.identifierPrefix;if(Bt){var s=lr,d=sr;s=(d&~(1<<32-Qe(d)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Kc++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=OM++,a="_"+a+"r_"+s.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Hm,useFormState:Ny,useActionState:Ny,useOptimistic:function(n){var a=Jn();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=Dm.bind(null,vt,!0,s),s.dispatch=a,[n,a]},useMemoCache:Tm,useCacheRefresh:function(){return Jn().memoizedState=BM.bind(null,vt)},useEffectEvent:function(n){var a=Jn(),s={impl:n};return a.memoizedState=s,function(){if((kt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Lm={readContext:qn,use:Zc,useCallback:_y,useContext:qn,useEffect:Pm,useImperativeHandle:By,useInsertionEffect:Iy,useLayoutEffect:Py,useMemo:Hy,useReducer:Jc,useRef:Oy,useState:function(){return Jc(Rr)},useDebugValue:jm,useDeferredValue:function(n,a){var s=Rn();return Dy(s,rn.memoizedState,n,a)},useTransition:function(){var n=Jc(Rr)[0],a=Rn().memoizedState;return[typeof n=="boolean"?n:sl(n),a]},useSyncExternalStore:py,useId:qy,useHostTransitionStatus:Hm,useFormState:Ry,useActionState:Ry,useOptimistic:function(n,a){var s=Rn();return xy(s,rn,n,a)},useMemoCache:Tm,useCacheRefresh:Uy};Lm.useEffectEvent=Ay;var Yy={readContext:qn,use:Zc,useCallback:_y,useContext:qn,useEffect:Pm,useImperativeHandle:By,useInsertionEffect:Iy,useLayoutEffect:Py,useMemo:Hy,useReducer:zm,useRef:Oy,useState:function(){return zm(Rr)},useDebugValue:jm,useDeferredValue:function(n,a){var s=Rn();return rn===null?Bm(s,n,a):Dy(s,rn.memoizedState,n,a)},useTransition:function(){var n=zm(Rr)[0],a=Rn().memoizedState;return[typeof n=="boolean"?n:sl(n),a]},useSyncExternalStore:py,useId:qy,useHostTransitionStatus:Hm,useFormState:Ty,useActionState:Ty,useOptimistic:function(n,a){var s=Rn();return rn!==null?xy(s,rn,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:Tm,useCacheRefresh:Uy};Yy.useEffectEvent=Ay;function Vm(n,a,s,d){a=n.memoizedState,s=s(d,a),s=s==null?a:b({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var Fm={enqueueSetState:function(n,a,s){n=n._reactInternals;var d=Eo(),h=ia(d);h.payload=a,s!=null&&(h.callback=s),a=sa(n,h,d),a!==null&&(mo(a,n,d),ol(a,n,d))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var d=Eo(),h=ia(d);h.tag=1,h.payload=a,s!=null&&(h.callback=s),a=sa(n,h,d),a!==null&&(mo(a,n,d),ol(a,n,d))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=Eo(),d=ia(s);d.tag=2,a!=null&&(d.callback=a),a=sa(n,d,s),a!==null&&(mo(a,n,s),ol(a,n,s))}};function Ky(n,a,s,d,h,y,M){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,y,M):a.prototype&&a.prototype.isPureReactComponent?!Ys(s,d)||!Ys(h,y):!0}function Qy(n,a,s,d){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,d),a.state!==n&&Fm.enqueueReplaceState(a,a.state,null)}function Qa(n,a){var s=a;if("ref"in a){s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}if(n=n.defaultProps){s===a&&(s=b({},s));for(var h in n)s[h]===void 0&&(s[h]=n[h])}return s}function Zy(n){Pc(n)}function Jy(n){console.error(n)}function ex(n){Pc(n)}function ou(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function tx(n,a,s){try{var d=n.onCaughtError;d(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function qm(n,a,s){return s=ia(s),s.tag=3,s.payload={element:null},s.callback=function(){ou(n,a)},s}function nx(n){return n=ia(n),n.tag=3,n}function ox(n,a,s,d){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var y=d.value;n.payload=function(){return h(y)},n.callback=function(){tx(a,s,d)}}var M=s.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(n.callback=function(){tx(a,s,d),typeof h!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var _=d.stack;this.componentDidCatch(d.value,{componentStack:_!==null?_:""})})}function HM(n,a,s,d,h){if(s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=s.alternate,a!==null&&Ai(a,s,h,!0),s=xo.current,s!==null){switch(s.tag){case 31:case 13:return Lo===null?gu():s.alternate===null&&Cn===0&&(Cn=3),s.flags&=-257,s.flags|=65536,s.lanes=h,d===Uc?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([d]):a.add(d),pp(n,d,h)),!1;case 22:return s.flags|=65536,d===Uc?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([d]):s.add(d)),pp(n,d,h)),!1}throw Error(r(435,s.tag))}return pp(n,d,h),gu(),!1}if(Bt)return a=xo.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,d!==lm&&(n=Error(r(422),{cause:d}),Zs(Bo(n,s)))):(d!==lm&&(a=Error(r(423),{cause:d}),Zs(Bo(a,s))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,d=Bo(d,s),h=qm(n.stateNode,d,h),ym(n,h),Cn!==4&&(Cn=2)),!1;var y=Error(r(520),{cause:d});if(y=Bo(y,s),bl===null?bl=[y]:bl.push(y),Cn!==4&&(Cn=2),a===null)return!0;d=Bo(d,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=h&-h,s.lanes|=n,n=qm(s.stateNode,d,n),ym(s,n),!1;case 1:if(a=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ma===null||!ma.has(y))))return s.flags|=65536,h&=-h,s.lanes|=h,h=nx(h),ox(h,n,s,d),ym(s,h),!1}s=s.return}while(s!==null);return!1}var Um=Error(r(461)),An=!1;function Un(n,a,s,d){a.child=n===null?sy(a,null,s,d):Ya(a,n.child,s,d)}function rx(n,a,s,d,h){s=s.render;var y=a.ref;if("ref"in d){var M={};for(var _ in d)_!=="ref"&&(M[_]=d[_])}else M=d;return Wa(a),d=wm(n,a,s,M,y,h),_=Nm(),n!==null&&!An?(Rm(n,a,h),Mr(n,a,h)):(Bt&&_&&im(a),a.flags|=1,Un(n,a,d,h),a.child)}function ax(n,a,s,d,h){if(n===null){var y=s.type;return typeof y=="function"&&!om(y)&&y.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=y,ix(n,a,y,d,h)):(n=Hc(s.type,null,d,a,a.mode,h),n.ref=a.ref,n.return=a,a.child=n)}if(y=n.child,!Zm(n,h)){var M=y.memoizedProps;if(s=s.compare,s=s!==null?s:Ys,s(M,d)&&n.ref===a.ref)return Mr(n,a,h)}return a.flags|=1,n=Cr(y,d),n.ref=a.ref,n.return=a,a.child=n}function ix(n,a,s,d,h){if(n!==null){var y=n.memoizedProps;if(Ys(y,d)&&n.ref===a.ref)if(An=!1,a.pendingProps=d=y,Zm(n,h))(n.flags&131072)!==0&&(An=!0);else return a.lanes=n.lanes,Mr(n,a,h)}return Wm(n,a,s,d,h)}function sx(n,a,s,d){var h=d.children,y=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(y=y!==null?y.baseLanes|s:s,n!==null){for(d=a.child=n.child,h=0;d!==null;)h=h|d.lanes|d.childLanes,d=d.sibling;d=h&~y}else d=0,a.child=null;return lx(n,a,y,s,d)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Fc(a,y!==null?y.cachePool:null),y!==null?uy(a,y):Sm(),dy(a);else return d=a.lanes=536870912,lx(n,a,y!==null?y.baseLanes|s:s,s,d)}else y!==null?(Fc(a,y.cachePool),uy(a,y),ca(),a.memoizedState=null):(n!==null&&Fc(a,null),Sm(),ca());return Un(n,a,h,s),a.child}function ul(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function lx(n,a,s,d,h){var y=gm();return y=y===null?null:{parent:On._currentValue,pool:y},a.memoizedState={baseLanes:s,cachePool:y},n!==null&&Fc(a,null),Sm(),dy(a),n!==null&&Ai(n,a,d,!0),a.childLanes=h,null}function ru(n,a){return a=iu({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function cx(n,a,s){return Ya(a,n.child,null,s),n=ru(a,a.pendingProps),n.flags|=2,So(a),a.memoizedState=null,n}function DM(n,a,s){var d=a.pendingProps,h=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Bt){if(d.mode==="hidden")return n=ru(a,d),a.lanes=536870912,ul(null,n);if($m(a),(n=hn)?(n=S1(n,Do),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ta!==null?{id:sr,overflow:lr}:null,retryLane:536870912,hydrationErrors:null},s=Gv(n),s.return=a,a.child=s,Fn=a,hn=null)):n=null,n===null)throw oa(a);return a.lanes=536870912,null}return ru(a,d)}var y=n.memoizedState;if(y!==null){var M=y.dehydrated;if($m(a),h)if(a.flags&256)a.flags&=-257,a=cx(n,a,s);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(An||Ai(n,a,s,!1),h=(s&n.childLanes)!==0,An||h){if(d=fn,d!==null&&(M=je(d,s),M!==0&&M!==y.retryLane))throw y.retryLane=M,Va(n,M),mo(d,n,M),Um;gu(),a=cx(n,a,s)}else n=y.treeContext,hn=Vo(M.nextSibling),Fn=a,Bt=!0,na=null,Do=!1,n!==null&&Yv(a,n),a=ru(a,d),a.flags|=4096;return a}return n=Cr(n.child,{mode:d.mode,children:d.children}),n.ref=a.ref,a.child=n,n.return=a,n}function au(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function Wm(n,a,s,d,h){return Wa(a),s=wm(n,a,s,d,void 0,h),d=Nm(),n!==null&&!An?(Rm(n,a,h),Mr(n,a,h)):(Bt&&d&&im(a),a.flags|=1,Un(n,a,s,h),a.child)}function ux(n,a,s,d,h,y){return Wa(a),a.updateQueue=null,s=my(a,d,s,h),fy(n),d=Nm(),n!==null&&!An?(Rm(n,a,y),Mr(n,a,y)):(Bt&&d&&im(a),a.flags|=1,Un(n,a,s,y),a.child)}function dx(n,a,s,d,h){if(Wa(a),a.stateNode===null){var y=Mi,M=s.contextType;typeof M=="object"&&M!==null&&(y=qn(M)),y=new s(d,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Fm,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=d,y.state=a.memoizedState,y.refs={},bm(a),M=s.contextType,y.context=typeof M=="object"&&M!==null?qn(M):Mi,y.state=a.memoizedState,M=s.getDerivedStateFromProps,typeof M=="function"&&(Vm(a,s,M,d),y.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(M=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),M!==y.state&&Fm.enqueueReplaceState(y,y.state,null),al(a,d,y,h),rl(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(n===null){y=a.stateNode;var _=a.memoizedProps,ee=Qa(s,_);y.props=ee;var fe=y.context,Ee=s.contextType;M=Mi,typeof Ee=="object"&&Ee!==null&&(M=qn(Ee));var Me=s.getDerivedStateFromProps;Ee=typeof Me=="function"||typeof y.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,Ee||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(_||fe!==M)&&Qy(a,y,d,M),aa=!1;var pe=a.memoizedState;y.state=pe,al(a,d,y,h),rl(),fe=a.memoizedState,_||pe!==fe||aa?(typeof Me=="function"&&(Vm(a,s,Me,d),fe=a.memoizedState),(ee=aa||Ky(a,s,ee,d,pe,fe,M))?(Ee||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=fe),y.props=d,y.state=fe,y.context=M,d=ee):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{y=a.stateNode,vm(n,a),M=a.memoizedProps,Ee=Qa(s,M),y.props=Ee,Me=a.pendingProps,pe=y.context,fe=s.contextType,ee=Mi,typeof fe=="object"&&fe!==null&&(ee=qn(fe)),_=s.getDerivedStateFromProps,(fe=typeof _=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(M!==Me||pe!==ee)&&Qy(a,y,d,ee),aa=!1,pe=a.memoizedState,y.state=pe,al(a,d,y,h),rl();var be=a.memoizedState;M!==Me||pe!==be||aa||n!==null&&n.dependencies!==null&&Lc(n.dependencies)?(typeof _=="function"&&(Vm(a,s,_,d),be=a.memoizedState),(Ee=aa||Ky(a,s,Ee,d,pe,be,ee)||n!==null&&n.dependencies!==null&&Lc(n.dependencies))?(fe||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,be,ee),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,be,ee)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=be),y.props=d,y.state=be,y.context=ee,d=Ee):(typeof y.componentDidUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=1024),d=!1)}return y=d,au(n,a),d=(a.flags&128)!==0,y||d?(y=a.stateNode,s=d&&typeof s.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,n!==null&&d?(a.child=Ya(a,n.child,null,h),a.child=Ya(a,null,s,h)):Un(n,a,s,h),a.memoizedState=y.state,n=a.child):n=Mr(n,a,h),n}function fx(n,a,s,d){return qa(),a.flags|=256,Un(n,a,s,d),a.child}var Gm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xm(n){return{baseLanes:n,cachePool:ty()}}function km(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=$o),n}function mx(n,a,s){var d=a.pendingProps,h=!1,y=(a.flags&128)!==0,M;if((M=y)||(M=n!==null&&n.memoizedState===null?!1:(Nn.current&2)!==0),M&&(h=!0,a.flags&=-129),M=(a.flags&32)!==0,a.flags&=-33,n===null){if(Bt){if(h?la(a):ca(),(n=hn)?(n=S1(n,Do),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ta!==null?{id:sr,overflow:lr}:null,retryLane:536870912,hydrationErrors:null},s=Gv(n),s.return=a,a.child=s,Fn=a,hn=null)):n=null,n===null)throw oa(a);return Op(n)?a.lanes=32:a.lanes=536870912,null}var _=d.children;return d=d.fallback,h?(ca(),h=a.mode,_=iu({mode:"hidden",children:_},h),d=Fa(d,h,s,null),_.return=a,d.return=a,_.sibling=d,a.child=_,d=a.child,d.memoizedState=Xm(s),d.childLanes=km(n,M,s),a.memoizedState=Gm,ul(null,d)):(la(a),Ym(a,_))}var ee=n.memoizedState;if(ee!==null&&(_=ee.dehydrated,_!==null)){if(y)a.flags&256?(la(a),a.flags&=-257,a=Km(n,a,s)):a.memoizedState!==null?(ca(),a.child=n.child,a.flags|=128,a=null):(ca(),_=d.fallback,h=a.mode,d=iu({mode:"visible",children:d.children},h),_=Fa(_,h,s,null),_.flags|=2,d.return=a,_.return=a,d.sibling=_,a.child=d,Ya(a,n.child,null,s),d=a.child,d.memoizedState=Xm(s),d.childLanes=km(n,M,s),a.memoizedState=Gm,a=ul(null,d));else if(la(a),Op(_)){if(M=_.nextSibling&&_.nextSibling.dataset,M)var fe=M.dgst;M=fe,d=Error(r(419)),d.stack="",d.digest=M,Zs({value:d,source:null,stack:null}),a=Km(n,a,s)}else if(An||Ai(n,a,s,!1),M=(s&n.childLanes)!==0,An||M){if(M=fn,M!==null&&(d=je(M,s),d!==0&&d!==ee.retryLane))throw ee.retryLane=d,Va(n,d),mo(M,n,d),Um;Tp(_)||gu(),a=Km(n,a,s)}else Tp(_)?(a.flags|=192,a.child=n.child,a=null):(n=ee.treeContext,hn=Vo(_.nextSibling),Fn=a,Bt=!0,na=null,Do=!1,n!==null&&Yv(a,n),a=Ym(a,d.children),a.flags|=4096);return a}return h?(ca(),_=d.fallback,h=a.mode,ee=n.child,fe=ee.sibling,d=Cr(ee,{mode:"hidden",children:d.children}),d.subtreeFlags=ee.subtreeFlags&65011712,fe!==null?_=Cr(fe,_):(_=Fa(_,h,s,null),_.flags|=2),_.return=a,d.return=a,d.sibling=_,a.child=d,ul(null,d),d=a.child,_=n.child.memoizedState,_===null?_=Xm(s):(h=_.cachePool,h!==null?(ee=On._currentValue,h=h.parent!==ee?{parent:ee,pool:ee}:h):h=ty(),_={baseLanes:_.baseLanes|s,cachePool:h}),d.memoizedState=_,d.childLanes=km(n,M,s),a.memoizedState=Gm,ul(n.child,d)):(la(a),s=n.child,n=s.sibling,s=Cr(s,{mode:"visible",children:d.children}),s.return=a,s.sibling=null,n!==null&&(M=a.deletions,M===null?(a.deletions=[n],a.flags|=16):M.push(n)),a.child=s,a.memoizedState=null,s)}function Ym(n,a){return a=iu({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function iu(n,a){return n=yo(22,n,null,a),n.lanes=0,n}function Km(n,a,s){return Ya(a,n.child,null,s),n=Ym(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function px(n,a,s){n.lanes|=a;var d=n.alternate;d!==null&&(d.lanes|=a),dm(n.return,a,s)}function Qm(n,a,s,d,h,y){var M=n.memoizedState;M===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:h,treeForkCount:y}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=d,M.tail=s,M.tailMode=h,M.treeForkCount=y)}function gx(n,a,s){var d=a.pendingProps,h=d.revealOrder,y=d.tail;d=d.children;var M=Nn.current,_=(M&2)!==0;if(_?(M=M&1|2,a.flags|=128):M&=1,k(Nn,M),Un(n,a,d,s),d=Bt?Qs:0,!_&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&px(n,s,a);else if(n.tag===19)px(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"forwards":for(s=a.child,h=null;s!==null;)n=s.alternate,n!==null&&kc(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=a.child,a.child=null):(h=s.sibling,s.sibling=null),Qm(a,!1,h,s,y,d);break;case"backwards":case"unstable_legacy-backwards":for(s=null,h=a.child,a.child=null;h!==null;){if(n=h.alternate,n!==null&&kc(n)===null){a.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}Qm(a,!0,s,null,y,d);break;case"together":Qm(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function Mr(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),fa|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(Ai(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,s=Cr(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=Cr(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function Zm(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Lc(n)))}function LM(n,a,s){switch(a.tag){case 3:ie(a,a.stateNode.containerInfo),ra(a,On,n.memoizedState.cache),qa();break;case 27:case 5:ae(a);break;case 4:ie(a,a.stateNode.containerInfo);break;case 10:ra(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,$m(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(la(a),a.flags|=128,null):(s&a.child.childLanes)!==0?mx(n,a,s):(la(a),n=Mr(n,a,s),n!==null?n.sibling:null);la(a);break;case 19:var h=(n.flags&128)!==0;if(d=(s&a.childLanes)!==0,d||(Ai(n,a,s,!1),d=(s&a.childLanes)!==0),h){if(d)return gx(n,a,s);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),k(Nn,Nn.current),d)break;return null;case 22:return a.lanes=0,sx(n,a,s,a.pendingProps);case 24:ra(a,On,n.memoizedState.cache)}return Mr(n,a,s)}function hx(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)An=!0;else{if(!Zm(n,s)&&(a.flags&128)===0)return An=!1,LM(n,a,s);An=(n.flags&131072)!==0}else An=!1,Bt&&(a.flags&1048576)!==0&&kv(a,Qs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(n=Xa(a.elementType),a.type=n,typeof n=="function")om(n)?(d=Qa(n,d),a.tag=1,a=dx(null,a,n,d,s)):(a.tag=0,a=Wm(null,a,n,d,s));else{if(n!=null){var h=n.$$typeof;if(h===w){a.tag=11,a=rx(null,a,n,d,s);break e}else if(h===A){a.tag=14,a=ax(null,a,n,d,s);break e}}throw a=Z(n)||n,Error(r(306,a,""))}}return a;case 0:return Wm(n,a,a.type,a.pendingProps,s);case 1:return d=a.type,h=Qa(d,a.pendingProps),dx(n,a,d,h,s);case 3:e:{if(ie(a,a.stateNode.containerInfo),n===null)throw Error(r(387));d=a.pendingProps;var y=a.memoizedState;h=y.element,vm(n,a),al(a,d,null,s);var M=a.memoizedState;if(d=M.cache,ra(a,On,d),d!==y.cache&&fm(a,[On],s,!0),rl(),d=M.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=fx(n,a,d,s);break e}else if(d!==h){h=Bo(Error(r(424)),a),Zs(h),a=fx(n,a,d,s);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,hn=Vo(n.firstChild),Fn=a,Bt=!0,na=null,Do=!0,s=sy(a,null,d,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(qa(),d===h){a=Mr(n,a,s);break e}Un(n,a,d,s)}a=a.child}return a;case 26:return au(n,a),n===null?(s=R1(a.type,null,a.pendingProps,null))?a.memoizedState=s:Bt||(s=a.type,n=a.pendingProps,d=Cu(te.current).createElement(s),d[mt]=a,d[Mt]=n,Wn(d,s,n),Ht(d),a.stateNode=d):a.memoizedState=R1(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return ae(a),n===null&&Bt&&(d=a.stateNode=E1(a.type,a.pendingProps,te.current),Fn=a,Do=!0,h=hn,ba(a.type)?(zp=h,hn=Vo(d.firstChild)):hn=h),Un(n,a,a.pendingProps.children,s),au(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Bt&&((h=d=hn)&&(d=hT(d,a.type,a.pendingProps,Do),d!==null?(a.stateNode=d,Fn=a,hn=Vo(d.firstChild),Do=!1,h=!0):h=!1),h||oa(a)),ae(a),h=a.type,y=a.pendingProps,M=n!==null?n.memoizedProps:null,d=y.children,Np(h,y)?d=null:M!==null&&Np(h,M)&&(a.flags|=32),a.memoizedState!==null&&(h=wm(n,a,zM,null,null,s),wl._currentValue=h),au(n,a),Un(n,a,d,s),a.child;case 6:return n===null&&Bt&&((n=s=hn)&&(s=bT(s,a.pendingProps,Do),s!==null?(a.stateNode=s,Fn=a,hn=null,n=!0):n=!1),n||oa(a)),null;case 13:return mx(n,a,s);case 4:return ie(a,a.stateNode.containerInfo),d=a.pendingProps,n===null?a.child=Ya(a,null,d,s):Un(n,a,d,s),a.child;case 11:return rx(n,a,a.type,a.pendingProps,s);case 7:return Un(n,a,a.pendingProps,s),a.child;case 8:return Un(n,a,a.pendingProps.children,s),a.child;case 12:return Un(n,a,a.pendingProps.children,s),a.child;case 10:return d=a.pendingProps,ra(a,a.type,d.value),Un(n,a,d.children,s),a.child;case 9:return h=a.type._context,d=a.pendingProps.children,Wa(a),h=qn(h),d=d(h),a.flags|=1,Un(n,a,d,s),a.child;case 14:return ax(n,a,a.type,a.pendingProps,s);case 15:return ix(n,a,a.type,a.pendingProps,s);case 19:return gx(n,a,s);case 31:return DM(n,a,s);case 22:return sx(n,a,s,a.pendingProps);case 24:return Wa(a),d=qn(On),n===null?(h=gm(),h===null&&(h=fn,y=mm(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=s),h=y),a.memoizedState={parent:d,cache:h},bm(a),ra(a,On,h)):((n.lanes&s)!==0&&(vm(n,a),al(a,null,null,s),rl()),h=n.memoizedState,y=a.memoizedState,h.parent!==d?(h={parent:d,cache:d},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),ra(a,On,d)):(d=y.cache,ra(a,On,d),d!==h.cache&&fm(a,[On],s,!0))),Un(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Tr(n){n.flags|=4}function Jm(n,a,s,d,h){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(qx())n.flags|=8192;else throw ka=Uc,hm}else n.flags&=-16777217}function bx(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!A1(a))if(qx())n.flags|=8192;else throw ka=Uc,hm}function su(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?et():536870912,n.lanes|=a,Ui|=a)}function dl(n,a){if(!Bt)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function bn(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,d=0;if(a)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,d|=h.subtreeFlags&65011712,d|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,d|=h.subtreeFlags,d|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=d,n.childLanes=s,a}function VM(n,a,s){var d=a.pendingProps;switch(sm(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bn(a),null;case 1:return bn(a),null;case 3:return s=a.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),wr(On),se(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(zi(a)?Tr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,cm())),bn(a),null;case 26:var h=a.type,y=a.memoizedState;return n===null?(Tr(a),y!==null?(bn(a),bx(a,y)):(bn(a),Jm(a,h,null,d,s))):y?y!==n.memoizedState?(Tr(a),bn(a),bx(a,y)):(bn(a),a.flags&=-16777217):(n=n.memoizedProps,n!==d&&Tr(a),bn(a),Jm(a,h,n,d,s)),null;case 27:if(me(a),s=te.current,h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==d&&Tr(a);else{if(!d){if(a.stateNode===null)throw Error(r(166));return bn(a),null}n=G.current,zi(a)?Kv(a):(n=E1(h,d,s),a.stateNode=n,Tr(a))}return bn(a),null;case 5:if(me(a),h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==d&&Tr(a);else{if(!d){if(a.stateNode===null)throw Error(r(166));return bn(a),null}if(y=G.current,zi(a))Kv(a);else{var M=Cu(te.current);switch(y){case 1:y=M.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:y=M.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":y=M.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":y=M.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":y=M.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof d.is=="string"?M.createElement("select",{is:d.is}):M.createElement("select"),d.multiple?y.multiple=!0:d.size&&(y.size=d.size);break;default:y=typeof d.is=="string"?M.createElement(h,{is:d.is}):M.createElement(h)}}y[mt]=a,y[Mt]=d;e:for(M=a.child;M!==null;){if(M.tag===5||M.tag===6)y.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=y;e:switch(Wn(y,h,d),h){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Tr(a)}}return bn(a),Jm(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,s),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==d&&Tr(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(r(166));if(n=te.current,zi(a)){if(n=a.stateNode,s=a.memoizedProps,d=null,h=Fn,h!==null)switch(h.tag){case 27:case 5:d=h.memoizedProps}n[mt]=a,n=!!(n.nodeValue===s||d!==null&&d.suppressHydrationWarning===!0||m1(n.nodeValue,s)),n||oa(a,!0)}else n=Cu(n).createTextNode(d),n[mt]=a,a.stateNode=n}return bn(a),null;case 31:if(s=a.memoizedState,n===null||n.memoizedState!==null){if(d=zi(a),s!==null){if(n===null){if(!d)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[mt]=a}else qa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),n=!1}else s=cm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return a.flags&256?(So(a),a):(So(a),null);if((a.flags&128)!==0)throw Error(r(558))}return bn(a),null;case 13:if(d=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=zi(a),d!==null&&d.dehydrated!==null){if(n===null){if(!h)throw Error(r(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[mt]=a}else qa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),h=!1}else h=cm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(So(a),a):(So(a),null)}return So(a),(a.flags&128)!==0?(a.lanes=s,a):(s=d!==null,n=n!==null&&n.memoizedState!==null,s&&(d=a.child,h=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(h=d.alternate.memoizedState.cachePool.pool),y=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==h&&(d.flags|=2048)),s!==n&&s&&(a.child.flags|=8192),su(a,a.updateQueue),bn(a),null);case 4:return se(),n===null&&Sp(a.stateNode.containerInfo),bn(a),null;case 10:return wr(a.type),bn(a),null;case 19:if(V(Nn),d=a.memoizedState,d===null)return bn(a),null;if(h=(a.flags&128)!==0,y=d.rendering,y===null)if(h)dl(d,!1);else{if(Cn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(y=kc(n),y!==null){for(a.flags|=128,dl(d,!1),n=y.updateQueue,a.updateQueue=n,su(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)Wv(s,n),s=s.sibling;return k(Nn,Nn.current&1|2),Bt&&$r(a,d.treeForkCount),a.child}n=n.sibling}d.tail!==null&&He()>fu&&(a.flags|=128,h=!0,dl(d,!1),a.lanes=4194304)}else{if(!h)if(n=kc(y),n!==null){if(a.flags|=128,h=!0,n=n.updateQueue,a.updateQueue=n,su(a,n),dl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Bt)return bn(a),null}else 2*He()-d.renderingStartTime>fu&&s!==536870912&&(a.flags|=128,h=!0,dl(d,!1),a.lanes=4194304);d.isBackwards?(y.sibling=a.child,a.child=y):(n=d.last,n!==null?n.sibling=y:a.child=y,d.last=y)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=He(),n.sibling=null,s=Nn.current,k(Nn,h?s&1|2:s&1),Bt&&$r(a,d.treeForkCount),n):(bn(a),null);case 22:case 23:return So(a),Cm(),d=a.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(s&536870912)!==0&&(a.flags&128)===0&&(bn(a),a.subtreeFlags&6&&(a.flags|=8192)):bn(a),s=a.updateQueue,s!==null&&su(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==s&&(a.flags|=2048),n!==null&&V(Ga),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),wr(On),bn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function FM(n,a){switch(sm(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return wr(On),se(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return me(a),null;case 31:if(a.memoizedState!==null){if(So(a),a.alternate===null)throw Error(r(340));qa()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(So(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));qa()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return V(Nn),null;case 4:return se(),null;case 10:return wr(a.type),null;case 22:case 23:return So(a),Cm(),n!==null&&V(Ga),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return wr(On),null;case 25:return null;default:return null}}function vx(n,a){switch(sm(a),a.tag){case 3:wr(On),se();break;case 26:case 27:case 5:me(a);break;case 4:se();break;case 31:a.memoizedState!==null&&So(a);break;case 13:So(a);break;case 19:V(Nn);break;case 10:wr(a.type);break;case 22:case 23:So(a),Cm(),n!==null&&V(Ga);break;case 24:wr(On)}}function fl(n,a){try{var s=a.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var h=d.next;s=h;do{if((s.tag&n)===n){d=void 0;var y=s.create,M=s.inst;d=y(),M.destroy=d}s=s.next}while(s!==h)}}catch(_){nn(a,a.return,_)}}function ua(n,a,s){try{var d=a.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var y=h.next;d=y;do{if((d.tag&n)===n){var M=d.inst,_=M.destroy;if(_!==void 0){M.destroy=void 0,h=a;var ee=s,fe=_;try{fe()}catch(Ee){nn(h,ee,Ee)}}}d=d.next}while(d!==y)}}catch(Ee){nn(a,a.return,Ee)}}function yx(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{cy(a,s)}catch(d){nn(n,n.return,d)}}}function xx(n,a,s){s.props=Qa(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(d){nn(n,a,d)}}function ml(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof s=="function"?n.refCleanup=s(d):s.current=d}}catch(h){nn(n,a,h)}}function cr(n,a){var s=n.ref,d=n.refCleanup;if(s!==null)if(typeof d=="function")try{d()}catch(h){nn(n,a,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){nn(n,a,h)}else s.current=null}function Sx(n){var a=n.type,s=n.memoizedProps,d=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&d.focus();break e;case"img":s.src?d.src=s.src:s.srcSet&&(d.srcset=s.srcSet)}}catch(h){nn(n,n.return,h)}}function ep(n,a,s){try{var d=n.stateNode;uT(d,n.type,s,a),d[Mt]=a}catch(h){nn(n,n.return,h)}}function Cx(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ba(n.type)||n.tag===4}function tp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Cx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ba(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function np(n,a,s){var d=n.tag;if(d===5||d===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=xr));else if(d!==4&&(d===27&&ba(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(np(n,a,s),n=n.sibling;n!==null;)np(n,a,s),n=n.sibling}function lu(n,a,s){var d=n.tag;if(d===5||d===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(d!==4&&(d===27&&ba(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(lu(n,a,s),n=n.sibling;n!==null;)lu(n,a,s),n=n.sibling}function $x(n){var a=n.stateNode,s=n.memoizedProps;try{for(var d=n.type,h=a.attributes;h.length;)a.removeAttributeNode(h[0]);Wn(a,d,s),a[mt]=n,a[Mt]=s}catch(y){nn(n,n.return,y)}}var Or=!1,In=!1,op=!1,Ex=typeof WeakSet=="function"?WeakSet:Set,Ln=null;function qM(n,a){if(n=n.containerInfo,Ep=Tu,n=Bv(n),Kf(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var h=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var M=0,_=-1,ee=-1,fe=0,Ee=0,Me=n,pe=null;t:for(;;){for(var be;Me!==s||h!==0&&Me.nodeType!==3||(_=M+h),Me!==y||d!==0&&Me.nodeType!==3||(ee=M+d),Me.nodeType===3&&(M+=Me.nodeValue.length),(be=Me.firstChild)!==null;)pe=Me,Me=be;for(;;){if(Me===n)break t;if(pe===s&&++fe===h&&(_=M),pe===y&&++Ee===d&&(ee=M),(be=Me.nextSibling)!==null)break;Me=pe,pe=Me.parentNode}Me=be}s=_===-1||ee===-1?null:{start:_,end:ee}}else s=null}s=s||{start:0,end:0}}else s=null;for(wp={focusedElem:n,selectionRange:s},Tu=!1,Ln=a;Ln!==null;)if(a=Ln,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Ln=n;else for(;Ln!==null;){switch(a=Ln,y=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)h=n[s],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,s=a,h=y.memoizedProps,y=y.memoizedState,d=s.stateNode;try{var tt=Qa(s.type,h);n=d.getSnapshotBeforeUpdate(tt,y),d.__reactInternalSnapshotBeforeUpdate=n}catch(dt){nn(s,s.return,dt)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)Mp(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Mp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Ln=n;break}Ln=a.return}}function wx(n,a,s){var d=s.flags;switch(s.tag){case 0:case 11:case 15:Ar(n,s),d&4&&fl(5,s);break;case 1:if(Ar(n,s),d&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(M){nn(s,s.return,M)}else{var h=Qa(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(h,a,n.__reactInternalSnapshotBeforeUpdate)}catch(M){nn(s,s.return,M)}}d&64&&yx(s),d&512&&ml(s,s.return);break;case 3:if(Ar(n,s),d&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{cy(n,a)}catch(M){nn(s,s.return,M)}}break;case 27:a===null&&d&4&&$x(s);case 26:case 5:Ar(n,s),a===null&&d&4&&Sx(s),d&512&&ml(s,s.return);break;case 12:Ar(n,s);break;case 31:Ar(n,s),d&4&&Mx(n,s);break;case 13:Ar(n,s),d&4&&Tx(n,s),d&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=ZM.bind(null,s),vT(n,s))));break;case 22:if(d=s.memoizedState!==null||Or,!d){a=a!==null&&a.memoizedState!==null||In,h=Or;var y=In;Or=d,(In=a)&&!y?Ir(n,s,(s.subtreeFlags&8772)!==0):Ar(n,s),Or=h,In=y}break;case 30:break;default:Ar(n,s)}}function Nx(n){var a=n.alternate;a!==null&&(n.alternate=null,Nx(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&_t(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yn=null,lo=!1;function zr(n,a,s){for(s=s.child;s!==null;)Rx(n,a,s),s=s.sibling}function Rx(n,a,s){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(Xe,s)}catch{}switch(s.tag){case 26:In||cr(s,a),zr(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:In||cr(s,a);var d=yn,h=lo;ba(s.type)&&(yn=s.stateNode,lo=!1),zr(n,a,s),Cl(s.stateNode),yn=d,lo=h;break;case 5:In||cr(s,a);case 6:if(d=yn,h=lo,yn=null,zr(n,a,s),yn=d,lo=h,yn!==null)if(lo)try{(yn.nodeType===9?yn.body:yn.nodeName==="HTML"?yn.ownerDocument.body:yn).removeChild(s.stateNode)}catch(y){nn(s,a,y)}else try{yn.removeChild(s.stateNode)}catch(y){nn(s,a,y)}break;case 18:yn!==null&&(lo?(n=yn,y1(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Zi(n)):y1(yn,s.stateNode));break;case 4:d=yn,h=lo,yn=s.stateNode.containerInfo,lo=!0,zr(n,a,s),yn=d,lo=h;break;case 0:case 11:case 14:case 15:ua(2,s,a),In||ua(4,s,a),zr(n,a,s);break;case 1:In||(cr(s,a),d=s.stateNode,typeof d.componentWillUnmount=="function"&&xx(s,a,d)),zr(n,a,s);break;case 21:zr(n,a,s);break;case 22:In=(d=In)||s.memoizedState!==null,zr(n,a,s),In=d;break;default:zr(n,a,s)}}function Mx(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Zi(n)}catch(s){nn(a,a.return,s)}}}function Tx(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Zi(n)}catch(s){nn(a,a.return,s)}}function UM(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Ex),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Ex),a;default:throw Error(r(435,n.tag))}}function cu(n,a){var s=UM(n);a.forEach(function(d){if(!s.has(d)){s.add(d);var h=JM.bind(null,n,d);d.then(h,h)}})}function co(n,a){var s=a.deletions;if(s!==null)for(var d=0;d<s.length;d++){var h=s[d],y=n,M=a,_=M;e:for(;_!==null;){switch(_.tag){case 27:if(ba(_.type)){yn=_.stateNode,lo=!1;break e}break;case 5:yn=_.stateNode,lo=!1;break e;case 3:case 4:yn=_.stateNode.containerInfo,lo=!0;break e}_=_.return}if(yn===null)throw Error(r(160));Rx(y,M,h),yn=null,lo=!1,y=h.alternate,y!==null&&(y.return=null),h.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Ox(a,n),a=a.sibling}var Jo=null;function Ox(n,a){var s=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:co(a,n),uo(n),d&4&&(ua(3,n,n.return),fl(3,n),ua(5,n,n.return));break;case 1:co(a,n),uo(n),d&512&&(In||s===null||cr(s,s.return)),d&64&&Or&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?d:s.concat(d))));break;case 26:var h=Jo;if(co(a,n),uo(n),d&512&&(In||s===null||cr(s,s.return)),d&4){var y=s!==null?s.memoizedState:null;if(d=n.memoizedState,s===null)if(d===null)if(n.stateNode===null){e:{d=n.type,s=n.memoizedProps,h=h.ownerDocument||h;t:switch(d){case"title":y=h.getElementsByTagName("title")[0],(!y||y[lt]||y[mt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=h.createElement(d),h.head.insertBefore(y,h.querySelector("head > title"))),Wn(y,d,s),y[mt]=n,Ht(y),d=y;break e;case"link":var M=O1("link","href",h).get(d+(s.href||""));if(M){for(var _=0;_<M.length;_++)if(y=M[_],y.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){M.splice(_,1);break t}}y=h.createElement(d),Wn(y,d,s),h.head.appendChild(y);break;case"meta":if(M=O1("meta","content",h).get(d+(s.content||""))){for(_=0;_<M.length;_++)if(y=M[_],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){M.splice(_,1);break t}}y=h.createElement(d),Wn(y,d,s),h.head.appendChild(y);break;default:throw Error(r(468,d))}y[mt]=n,Ht(y),d=y}n.stateNode=d}else z1(h,n.type,n.stateNode);else n.stateNode=T1(h,d,n.memoizedProps);else y!==d?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,d===null?z1(h,n.type,n.stateNode):T1(h,d,n.memoizedProps)):d===null&&n.stateNode!==null&&ep(n,n.memoizedProps,s.memoizedProps)}break;case 27:co(a,n),uo(n),d&512&&(In||s===null||cr(s,s.return)),s!==null&&d&4&&ep(n,n.memoizedProps,s.memoizedProps);break;case 5:if(co(a,n),uo(n),d&512&&(In||s===null||cr(s,s.return)),n.flags&32){h=n.stateNode;try{Jr(h,"")}catch(tt){nn(n,n.return,tt)}}d&4&&n.stateNode!=null&&(h=n.memoizedProps,ep(n,h,s!==null?s.memoizedProps:h)),d&1024&&(op=!0);break;case 6:if(co(a,n),uo(n),d&4){if(n.stateNode===null)throw Error(r(162));d=n.memoizedProps,s=n.stateNode;try{s.nodeValue=d}catch(tt){nn(n,n.return,tt)}}break;case 3:if(wu=null,h=Jo,Jo=$u(a.containerInfo),co(a,n),Jo=h,uo(n),d&4&&s!==null&&s.memoizedState.isDehydrated)try{Zi(a.containerInfo)}catch(tt){nn(n,n.return,tt)}op&&(op=!1,zx(n));break;case 4:d=Jo,Jo=$u(n.stateNode.containerInfo),co(a,n),uo(n),Jo=d;break;case 12:co(a,n),uo(n);break;case 31:co(a,n),uo(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,cu(n,d)));break;case 13:co(a,n),uo(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(du=He()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,cu(n,d)));break;case 22:h=n.memoizedState!==null;var ee=s!==null&&s.memoizedState!==null,fe=Or,Ee=In;if(Or=fe||h,In=Ee||ee,co(a,n),In=Ee,Or=fe,uo(n),d&8192)e:for(a=n.stateNode,a._visibility=h?a._visibility&-2:a._visibility|1,h&&(s===null||ee||Or||In||Za(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){ee=s=a;try{if(y=ee.stateNode,h)M=y.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{_=ee.stateNode;var Me=ee.memoizedProps.style,pe=Me!=null&&Me.hasOwnProperty("display")?Me.display:null;_.style.display=pe==null||typeof pe=="boolean"?"":(""+pe).trim()}}catch(tt){nn(ee,ee.return,tt)}}}else if(a.tag===6){if(s===null){ee=a;try{ee.stateNode.nodeValue=h?"":ee.memoizedProps}catch(tt){nn(ee,ee.return,tt)}}}else if(a.tag===18){if(s===null){ee=a;try{var be=ee.stateNode;h?x1(be,!0):x1(ee.stateNode,!1)}catch(tt){nn(ee,ee.return,tt)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=n.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,cu(n,s))));break;case 19:co(a,n),uo(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,cu(n,d)));break;case 30:break;case 21:break;default:co(a,n),uo(n)}}function uo(n){var a=n.flags;if(a&2){try{for(var s,d=n.return;d!==null;){if(Cx(d)){s=d;break}d=d.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var h=s.stateNode,y=tp(n);lu(n,y,h);break;case 5:var M=s.stateNode;s.flags&32&&(Jr(M,""),s.flags&=-33);var _=tp(n);lu(n,_,M);break;case 3:case 4:var ee=s.stateNode.containerInfo,fe=tp(n);np(n,fe,ee);break;default:throw Error(r(161))}}catch(Ee){nn(n,n.return,Ee)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function zx(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;zx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ar(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)wx(n,a.alternate,a),a=a.sibling}function Za(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:ua(4,a,a.return),Za(a);break;case 1:cr(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&xx(a,a.return,s),Za(a);break;case 27:Cl(a.stateNode);case 26:case 5:cr(a,a.return),Za(a);break;case 22:a.memoizedState===null&&Za(a);break;case 30:Za(a);break;default:Za(a)}n=n.sibling}}function Ir(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,h=n,y=a,M=y.flags;switch(y.tag){case 0:case 11:case 15:Ir(h,y,s),fl(4,y);break;case 1:if(Ir(h,y,s),d=y,h=d.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(fe){nn(d,d.return,fe)}if(d=y,h=d.updateQueue,h!==null){var _=d.stateNode;try{var ee=h.shared.hiddenCallbacks;if(ee!==null)for(h.shared.hiddenCallbacks=null,h=0;h<ee.length;h++)ly(ee[h],_)}catch(fe){nn(d,d.return,fe)}}s&&M&64&&yx(y),ml(y,y.return);break;case 27:$x(y);case 26:case 5:Ir(h,y,s),s&&d===null&&M&4&&Sx(y),ml(y,y.return);break;case 12:Ir(h,y,s);break;case 31:Ir(h,y,s),s&&M&4&&Mx(h,y);break;case 13:Ir(h,y,s),s&&M&4&&Tx(h,y);break;case 22:y.memoizedState===null&&Ir(h,y,s),ml(y,y.return);break;case 30:break;default:Ir(h,y,s)}a=a.sibling}}function rp(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Js(s))}function ap(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Js(n))}function er(n,a,s,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Ax(n,a,s,d),a=a.sibling}function Ax(n,a,s,d){var h=a.flags;switch(a.tag){case 0:case 11:case 15:er(n,a,s,d),h&2048&&fl(9,a);break;case 1:er(n,a,s,d);break;case 3:er(n,a,s,d),h&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Js(n)));break;case 12:if(h&2048){er(n,a,s,d),n=a.stateNode;try{var y=a.memoizedProps,M=y.id,_=y.onPostCommit;typeof _=="function"&&_(M,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ee){nn(a,a.return,ee)}}else er(n,a,s,d);break;case 31:er(n,a,s,d);break;case 13:er(n,a,s,d);break;case 23:break;case 22:y=a.stateNode,M=a.alternate,a.memoizedState!==null?y._visibility&2?er(n,a,s,d):pl(n,a):y._visibility&2?er(n,a,s,d):(y._visibility|=2,Vi(n,a,s,d,(a.subtreeFlags&10256)!==0||!1)),h&2048&&rp(M,a);break;case 24:er(n,a,s,d),h&2048&&ap(a.alternate,a);break;default:er(n,a,s,d)}}function Vi(n,a,s,d,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=n,M=a,_=s,ee=d,fe=M.flags;switch(M.tag){case 0:case 11:case 15:Vi(y,M,_,ee,h),fl(8,M);break;case 23:break;case 22:var Ee=M.stateNode;M.memoizedState!==null?Ee._visibility&2?Vi(y,M,_,ee,h):pl(y,M):(Ee._visibility|=2,Vi(y,M,_,ee,h)),h&&fe&2048&&rp(M.alternate,M);break;case 24:Vi(y,M,_,ee,h),h&&fe&2048&&ap(M.alternate,M);break;default:Vi(y,M,_,ee,h)}a=a.sibling}}function pl(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,d=a,h=d.flags;switch(d.tag){case 22:pl(s,d),h&2048&&rp(d.alternate,d);break;case 24:pl(s,d),h&2048&&ap(d.alternate,d);break;default:pl(s,d)}a=a.sibling}}var gl=8192;function Fi(n,a,s){if(n.subtreeFlags&gl)for(n=n.child;n!==null;)Ix(n,a,s),n=n.sibling}function Ix(n,a,s){switch(n.tag){case 26:Fi(n,a,s),n.flags&gl&&n.memoizedState!==null&&OT(s,Jo,n.memoizedState,n.memoizedProps);break;case 5:Fi(n,a,s);break;case 3:case 4:var d=Jo;Jo=$u(n.stateNode.containerInfo),Fi(n,a,s),Jo=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=gl,gl=16777216,Fi(n,a,s),gl=d):Fi(n,a,s));break;default:Fi(n,a,s)}}function Px(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function hl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];Ln=d,Bx(d,n)}Px(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)jx(n),n=n.sibling}function jx(n){switch(n.tag){case 0:case 11:case 15:hl(n),n.flags&2048&&ua(9,n,n.return);break;case 3:hl(n);break;case 12:hl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,uu(n)):hl(n);break;default:hl(n)}}function uu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];Ln=d,Bx(d,n)}Px(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:ua(8,a,a.return),uu(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,uu(a));break;default:uu(a)}n=n.sibling}}function Bx(n,a){for(;Ln!==null;){var s=Ln;switch(s.tag){case 0:case 11:case 15:ua(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var d=s.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Js(s.memoizedState.cache)}if(d=s.child,d!==null)d.return=s,Ln=d;else e:for(s=n;Ln!==null;){d=Ln;var h=d.sibling,y=d.return;if(Nx(d),d===s){Ln=null;break e}if(h!==null){h.return=y,Ln=h;break e}Ln=y}}}var WM={getCacheForType:function(n){var a=qn(On),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s},cacheSignal:function(){return qn(On).controller.signal}},GM=typeof WeakMap=="function"?WeakMap:Map,kt=0,fn=null,zt=null,It=0,tn=0,Co=null,da=!1,qi=!1,ip=!1,Pr=0,Cn=0,fa=0,Ja=0,sp=0,$o=0,Ui=0,bl=null,fo=null,lp=!1,du=0,_x=0,fu=1/0,mu=null,ma=null,Bn=0,pa=null,Wi=null,jr=0,cp=0,up=null,Hx=null,vl=0,dp=null;function Eo(){return(kt&2)!==0&&It!==0?It&-It:L.T!==null?bp():ft()}function Dx(){if($o===0)if((It&536870912)===0||Bt){var n=rt;rt<<=1,(rt&3932160)===0&&(rt=262144),$o=n}else $o=536870912;return n=xo.current,n!==null&&(n.flags|=32),$o}function mo(n,a,s){(n===fn&&(tn===2||tn===9)||n.cancelPendingCommit!==null)&&(Gi(n,0),ga(n,It,$o,!1)),Le(n,s),((kt&2)===0||n!==fn)&&(n===fn&&((kt&2)===0&&(Ja|=s),Cn===4&&ga(n,It,$o,!1)),ur(n))}function Lx(n,a,s){if((kt&6)!==0)throw Error(r(327));var d=!s&&(a&127)===0&&(a&n.expiredLanes)===0||Et(n,a),h=d?YM(n,a):mp(n,a,!0),y=d;do{if(h===0){qi&&!d&&ga(n,a,0,!1);break}else{if(s=n.current.alternate,y&&!XM(s)){h=mp(n,a,!1),y=!1;continue}if(h===2){if(y=a,n.errorRecoveryDisabledLanes&y)var M=0;else M=n.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){a=M;e:{var _=n;h=bl;var ee=_.current.memoizedState.isDehydrated;if(ee&&(Gi(_,M).flags|=256),M=mp(_,M,!1),M!==2){if(ip&&!ee){_.errorRecoveryDisabledLanes|=y,Ja|=y,h=4;break e}y=fo,fo=h,y!==null&&(fo===null?fo=y:fo.push.apply(fo,y))}h=M}if(y=!1,h!==2)continue}}if(h===1){Gi(n,0),ga(n,a,0,!0);break}e:{switch(d=n,y=h,y){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ga(d,a,$o,!da);break e;case 2:fo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(h=du+300-He(),10<h)){if(ga(d,a,$o,!da),yt(d,0,!0)!==0)break e;jr=a,d.timeoutHandle=b1(Vx.bind(null,d,s,fo,mu,lp,a,$o,Ja,Ui,da,y,"Throttled",-0,0),h);break e}Vx(d,s,fo,mu,lp,a,$o,Ja,Ui,da,y,null,-0,0)}}break}while(!0);ur(n)}function Vx(n,a,s,d,h,y,M,_,ee,fe,Ee,Me,pe,be){if(n.timeoutHandle=-1,Me=a.subtreeFlags,Me&8192||(Me&16785408)===16785408){Me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xr},Ix(a,y,Me);var tt=(y&62914560)===y?du-He():(y&4194048)===y?_x-He():0;if(tt=zT(Me,tt),tt!==null){jr=y,n.cancelPendingCommit=tt(Yx.bind(null,n,a,y,s,d,h,M,_,ee,Ee,Me,null,pe,be)),ga(n,y,M,!fe);return}}Yx(n,a,y,s,d,h,M,_,ee)}function XM(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var d=0;d<s.length;d++){var h=s[d],y=h.getSnapshot;h=h.value;try{if(!vo(y(),h))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ga(n,a,s,d){a&=~sp,a&=~Ja,n.suspendedLanes|=a,n.pingedLanes&=~a,d&&(n.warmLanes|=a),d=n.expirationTimes;for(var h=a;0<h;){var y=31-Qe(h),M=1<<y;d[y]=-1,h&=~M}s!==0&&Ae(n,s,a)}function pu(){return(kt&6)===0?(yl(0),!1):!0}function fp(){if(zt!==null){if(tn===0)var n=zt.return;else n=zt,Er=Ua=null,Mm(n),Bi=null,tl=0,n=zt;for(;n!==null;)vx(n.alternate,n),n=n.return;zt=null}}function Gi(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,mT(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),jr=0,fp(),fn=n,zt=s=Cr(n.current,null),It=a,tn=0,Co=null,da=!1,qi=Et(n,a),ip=!1,Ui=$o=sp=Ja=fa=Cn=0,fo=bl=null,lp=!1,(a&8)!==0&&(a|=a&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=a;0<d;){var h=31-Qe(d),y=1<<h;a|=n[h],d&=~y}return Pr=a,jc(),s}function Fx(n,a){vt=null,L.H=cl,a===ji||a===qc?(a=ry(),tn=3):a===hm?(a=ry(),tn=4):tn=a===Um?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Co=a,zt===null&&(Cn=1,ou(n,Bo(a,n.current)))}function qx(){var n=xo.current;return n===null?!0:(It&4194048)===It?Lo===null:(It&62914560)===It||(It&536870912)!==0?n===Lo:!1}function Ux(){var n=L.H;return L.H=cl,n===null?cl:n}function Wx(){var n=L.A;return L.A=WM,n}function gu(){Cn=4,da||(It&4194048)!==It&&xo.current!==null||(qi=!0),(fa&134217727)===0&&(Ja&134217727)===0||fn===null||ga(fn,It,$o,!1)}function mp(n,a,s){var d=kt;kt|=2;var h=Ux(),y=Wx();(fn!==n||It!==a)&&(mu=null,Gi(n,a)),a=!1;var M=Cn;e:do try{if(tn!==0&&zt!==null){var _=zt,ee=Co;switch(tn){case 8:fp(),M=6;break e;case 3:case 2:case 9:case 6:xo.current===null&&(a=!0);var fe=tn;if(tn=0,Co=null,Xi(n,_,ee,fe),s&&qi){M=0;break e}break;default:fe=tn,tn=0,Co=null,Xi(n,_,ee,fe)}}kM(),M=Cn;break}catch(Ee){Fx(n,Ee)}while(!0);return a&&n.shellSuspendCounter++,Er=Ua=null,kt=d,L.H=h,L.A=y,zt===null&&(fn=null,It=0,jc()),M}function kM(){for(;zt!==null;)Gx(zt)}function YM(n,a){var s=kt;kt|=2;var d=Ux(),h=Wx();fn!==n||It!==a?(mu=null,fu=He()+500,Gi(n,a)):qi=Et(n,a);e:do try{if(tn!==0&&zt!==null){a=zt;var y=Co;t:switch(tn){case 1:tn=0,Co=null,Xi(n,a,y,1);break;case 2:case 9:if(ny(y)){tn=0,Co=null,Xx(a);break}a=function(){tn!==2&&tn!==9||fn!==n||(tn=7),ur(n)},y.then(a,a);break e;case 3:tn=7;break e;case 4:tn=5;break e;case 7:ny(y)?(tn=0,Co=null,Xx(a)):(tn=0,Co=null,Xi(n,a,y,7));break;case 5:var M=null;switch(zt.tag){case 26:M=zt.memoizedState;case 5:case 27:var _=zt;if(M?A1(M):_.stateNode.complete){tn=0,Co=null;var ee=_.sibling;if(ee!==null)zt=ee;else{var fe=_.return;fe!==null?(zt=fe,hu(fe)):zt=null}break t}}tn=0,Co=null,Xi(n,a,y,5);break;case 6:tn=0,Co=null,Xi(n,a,y,6);break;case 8:fp(),Cn=6;break e;default:throw Error(r(462))}}KM();break}catch(Ee){Fx(n,Ee)}while(!0);return Er=Ua=null,L.H=d,L.A=h,kt=s,zt!==null?0:(fn=null,It=0,jc(),Cn)}function KM(){for(;zt!==null&&!Be();)Gx(zt)}function Gx(n){var a=hx(n.alternate,n,Pr);n.memoizedProps=n.pendingProps,a===null?hu(n):zt=a}function Xx(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=ux(s,a,a.pendingProps,a.type,void 0,It);break;case 11:a=ux(s,a,a.pendingProps,a.type.render,a.ref,It);break;case 5:Mm(a);default:vx(s,a),a=zt=Wv(a,Pr),a=hx(s,a,Pr)}n.memoizedProps=n.pendingProps,a===null?hu(n):zt=a}function Xi(n,a,s,d){Er=Ua=null,Mm(a),Bi=null,tl=0;var h=a.return;try{if(HM(n,h,a,s,It)){Cn=1,ou(n,Bo(s,n.current)),zt=null;return}}catch(y){if(h!==null)throw zt=h,y;Cn=1,ou(n,Bo(s,n.current)),zt=null;return}a.flags&32768?(Bt||d===1?n=!0:qi||(It&536870912)!==0?n=!1:(da=n=!0,(d===2||d===9||d===3||d===6)&&(d=xo.current,d!==null&&d.tag===13&&(d.flags|=16384))),kx(a,n)):hu(a)}function hu(n){var a=n;do{if((a.flags&32768)!==0){kx(a,da);return}n=a.return;var s=VM(a.alternate,a,Pr);if(s!==null){zt=s;return}if(a=a.sibling,a!==null){zt=a;return}zt=a=n}while(a!==null);Cn===0&&(Cn=5)}function kx(n,a){do{var s=FM(n.alternate,n);if(s!==null){s.flags&=32767,zt=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){zt=n;return}zt=n=s}while(n!==null);Cn=6,zt=null}function Yx(n,a,s,d,h,y,M,_,ee){n.cancelPendingCommit=null;do bu();while(Bn!==0);if((kt&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(y=a.lanes|a.childLanes,y|=tm,Ne(n,s,y,M,_,ee),n===fn&&(zt=fn=null,It=0),Wi=a,pa=n,jr=s,cp=y,up=h,Hx=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,eT(qe,function(){return e1(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=L.T,L.T=null,h=q.p,q.p=2,M=kt,kt|=4;try{qM(n,a,s)}finally{kt=M,q.p=h,L.T=d}}Bn=1,Kx(),Qx(),Zx()}}function Kx(){if(Bn===1){Bn=0;var n=pa,a=Wi,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=L.T,L.T=null;var d=q.p;q.p=2;var h=kt;kt|=4;try{Ox(a,n);var y=wp,M=Bv(n.containerInfo),_=y.focusedElem,ee=y.selectionRange;if(M!==_&&_&&_.ownerDocument&&jv(_.ownerDocument.documentElement,_)){if(ee!==null&&Kf(_)){var fe=ee.start,Ee=ee.end;if(Ee===void 0&&(Ee=fe),"selectionStart"in _)_.selectionStart=fe,_.selectionEnd=Math.min(Ee,_.value.length);else{var Me=_.ownerDocument||document,pe=Me&&Me.defaultView||window;if(pe.getSelection){var be=pe.getSelection(),tt=_.textContent.length,dt=Math.min(ee.start,tt),sn=ee.end===void 0?dt:Math.min(ee.end,tt);!be.extend&&dt>sn&&(M=sn,sn=dt,dt=M);var le=Pv(_,dt),oe=Pv(_,sn);if(le&&oe&&(be.rangeCount!==1||be.anchorNode!==le.node||be.anchorOffset!==le.offset||be.focusNode!==oe.node||be.focusOffset!==oe.offset)){var de=Me.createRange();de.setStart(le.node,le.offset),be.removeAllRanges(),dt>sn?(be.addRange(de),be.extend(oe.node,oe.offset)):(de.setEnd(oe.node,oe.offset),be.addRange(de))}}}}for(Me=[],be=_;be=be.parentNode;)be.nodeType===1&&Me.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<Me.length;_++){var Re=Me[_];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}Tu=!!Ep,wp=Ep=null}finally{kt=h,q.p=d,L.T=s}}n.current=a,Bn=2}}function Qx(){if(Bn===2){Bn=0;var n=pa,a=Wi,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=L.T,L.T=null;var d=q.p;q.p=2;var h=kt;kt|=4;try{wx(n,a.alternate,a)}finally{kt=h,q.p=d,L.T=s}}Bn=3}}function Zx(){if(Bn===4||Bn===3){Bn=0,Te();var n=pa,a=Wi,s=jr,d=Hx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Bn=5:(Bn=0,Wi=pa=null,Jx(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(ma=null),Ze(s),a=a.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(Xe,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=L.T,h=q.p,q.p=2,L.T=null;try{for(var y=n.onRecoverableError,M=0;M<d.length;M++){var _=d[M];y(_.value,{componentStack:_.stack})}}finally{L.T=a,q.p=h}}(jr&3)!==0&&bu(),ur(n),h=n.pendingLanes,(s&261930)!==0&&(h&42)!==0?n===dp?vl++:(vl=0,dp=n):vl=0,yl(0)}}function Jx(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Js(a)))}function bu(){return Kx(),Qx(),Zx(),e1()}function e1(){if(Bn!==5)return!1;var n=pa,a=cp;cp=0;var s=Ze(jr),d=L.T,h=q.p;try{q.p=32>s?32:s,L.T=null,s=up,up=null;var y=pa,M=jr;if(Bn=0,Wi=pa=null,jr=0,(kt&6)!==0)throw Error(r(331));var _=kt;if(kt|=4,jx(y.current),Ax(y,y.current,M,s),kt=_,yl(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(Xe,y)}catch{}return!0}finally{q.p=h,L.T=d,Jx(n,a)}}function t1(n,a,s){a=Bo(s,a),a=qm(n.stateNode,a,2),n=sa(n,a,2),n!==null&&(Le(n,2),ur(n))}function nn(n,a,s){if(n.tag===3)t1(n,n,s);else for(;a!==null;){if(a.tag===3){t1(a,n,s);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ma===null||!ma.has(d))){n=Bo(s,n),s=nx(2),d=sa(a,s,2),d!==null&&(ox(s,d,a,n),Le(d,2),ur(d));break}}a=a.return}}function pp(n,a,s){var d=n.pingCache;if(d===null){d=n.pingCache=new GM;var h=new Set;d.set(a,h)}else h=d.get(a),h===void 0&&(h=new Set,d.set(a,h));h.has(s)||(ip=!0,h.add(s),n=QM.bind(null,n,a,s),a.then(n,n))}function QM(n,a,s){var d=n.pingCache;d!==null&&d.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,fn===n&&(It&s)===s&&(Cn===4||Cn===3&&(It&62914560)===It&&300>He()-du?(kt&2)===0&&Gi(n,0):sp|=s,Ui===It&&(Ui=0)),ur(n)}function n1(n,a){a===0&&(a=et()),n=Va(n,a),n!==null&&(Le(n,a),ur(n))}function ZM(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),n1(n,s)}function JM(n,a){var s=0;switch(n.tag){case 31:case 13:var d=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(a),n1(n,s)}function eT(n,a){return Ce(n,a)}var vu=null,ki=null,gp=!1,yu=!1,hp=!1,ha=0;function ur(n){n!==ki&&n.next===null&&(ki===null?vu=ki=n:ki=ki.next=n),yu=!0,gp||(gp=!0,nT())}function yl(n,a){if(!hp&&yu){hp=!0;do for(var s=!1,d=vu;d!==null;){if(n!==0){var h=d.pendingLanes;if(h===0)var y=0;else{var M=d.suspendedLanes,_=d.pingedLanes;y=(1<<31-Qe(42|n)+1)-1,y&=h&~(M&~_),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(s=!0,i1(d,y))}else y=It,y=yt(d,d===fn?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||Et(d,y)||(s=!0,i1(d,y));d=d.next}while(s);hp=!1}}function tT(){o1()}function o1(){yu=gp=!1;var n=0;ha!==0&&fT()&&(n=ha);for(var a=He(),s=null,d=vu;d!==null;){var h=d.next,y=r1(d,a);y===0?(d.next=null,s===null?vu=h:s.next=h,h===null&&(ki=s)):(s=d,(n!==0||(y&3)!==0)&&(yu=!0)),d=h}Bn!==0&&Bn!==5||yl(n),ha!==0&&(ha=0)}function r1(n,a){for(var s=n.suspendedLanes,d=n.pingedLanes,h=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var M=31-Qe(y),_=1<<M,ee=h[M];ee===-1?((_&s)===0||(_&d)!==0)&&(h[M]=Tt(_,a)):ee<=a&&(n.expiredLanes|=_),y&=~_}if(a=fn,s=It,s=yt(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,s===0||n===a&&(tn===2||tn===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&we(d),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||Et(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(d!==null&&we(d),Ze(s)){case 2:case 8:s=Fe;break;case 32:s=qe;break;case 268435456:s=Ue;break;default:s=qe}return d=a1.bind(null,n),s=Ce(s,d),n.callbackPriority=a,n.callbackNode=s,a}return d!==null&&d!==null&&we(d),n.callbackPriority=2,n.callbackNode=null,2}function a1(n,a){if(Bn!==0&&Bn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(bu()&&n.callbackNode!==s)return null;var d=It;return d=yt(n,n===fn?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(Lx(n,d,a),r1(n,He()),n.callbackNode!=null&&n.callbackNode===s?a1.bind(null,n):null)}function i1(n,a){if(bu())return null;Lx(n,a,!0)}function nT(){pT(function(){(kt&6)!==0?Ce(Ke,tT):o1()})}function bp(){if(ha===0){var n=Ii;n===0&&(n=Ye,Ye<<=1,(Ye&261888)===0&&(Ye=256)),ha=n}return ha}function s1(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Rc(""+n)}function l1(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function oT(n,a,s,d,h){if(a==="submit"&&s&&s.stateNode===h){var y=s1((h[Mt]||null).action),M=d.submitter;M&&(a=(a=M[Mt]||null)?s1(a.formAction):M.getAttribute("formAction"),a!==null&&(y=a,M=null));var _=new zc("action","action",null,d,h);n.push({event:_,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(ha!==0){var ee=M?l1(h,M):new FormData(h);_m(s,{pending:!0,data:ee,method:h.method,action:y},null,ee)}}else typeof y=="function"&&(_.preventDefault(),ee=M?l1(h,M):new FormData(h),_m(s,{pending:!0,data:ee,method:h.method,action:y},y,ee))},currentTarget:h}]})}}for(var vp=0;vp<em.length;vp++){var yp=em[vp],rT=yp.toLowerCase(),aT=yp[0].toUpperCase()+yp.slice(1);Zo(rT,"on"+aT)}Zo(Dv,"onAnimationEnd"),Zo(Lv,"onAnimationIteration"),Zo(Vv,"onAnimationStart"),Zo("dblclick","onDoubleClick"),Zo("focusin","onFocus"),Zo("focusout","onBlur"),Zo(SM,"onTransitionRun"),Zo(CM,"onTransitionStart"),Zo($M,"onTransitionCancel"),Zo(Fv,"onTransitionEnd"),ao("onMouseEnter",["mouseout","mouseover"]),ao("onMouseLeave",["mouseout","mouseover"]),ao("onPointerEnter",["pointerout","pointerover"]),ao("onPointerLeave",["pointerout","pointerover"]),jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xl));function c1(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var d=n[s],h=d.event;d=d.listeners;e:{var y=void 0;if(a)for(var M=d.length-1;0<=M;M--){var _=d[M],ee=_.instance,fe=_.currentTarget;if(_=_.listener,ee!==y&&h.isPropagationStopped())break e;y=_,h.currentTarget=fe;try{y(h)}catch(Ee){Pc(Ee)}h.currentTarget=null,y=ee}else for(M=0;M<d.length;M++){if(_=d[M],ee=_.instance,fe=_.currentTarget,_=_.listener,ee!==y&&h.isPropagationStopped())break e;y=_,h.currentTarget=fe;try{y(h)}catch(Ee){Pc(Ee)}h.currentTarget=null,y=ee}}}}function At(n,a){var s=a[ut];s===void 0&&(s=a[ut]=new Set);var d=n+"__bubble";s.has(d)||(u1(a,n,2,!1),s.add(d))}function xp(n,a,s){var d=0;a&&(d|=4),u1(s,n,d,a)}var xu="_reactListening"+Math.random().toString(36).slice(2);function Sp(n){if(!n[xu]){n[xu]=!0,ro.forEach(function(s){s!=="selectionchange"&&(iT.has(s)||xp(s,!1,n),xp(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[xu]||(a[xu]=!0,xp("selectionchange",!1,a))}}function u1(n,a,s,d){switch(D1(a)){case 2:var h=PT;break;case 8:h=jT;break;default:h=Bp}s=h.bind(null,a,s,n),h=void 0,!Vf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),d?h!==void 0?n.addEventListener(a,s,{capture:!0,passive:h}):n.addEventListener(a,s,!0):h!==void 0?n.addEventListener(a,s,{passive:h}):n.addEventListener(a,s,!1)}function Cp(n,a,s,d,h){var y=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var M=d.tag;if(M===3||M===4){var _=d.stateNode.containerInfo;if(_===h)break;if(M===4)for(M=d.return;M!==null;){var ee=M.tag;if((ee===3||ee===4)&&M.stateNode.containerInfo===h)return;M=M.return}for(;_!==null;){if(M=en(_),M===null)return;if(ee=M.tag,ee===5||ee===6||ee===26||ee===27){d=y=M;continue e}_=_.parentNode}}d=d.return}gv(function(){var fe=y,Ee=Df(s),Me=[];e:{var pe=qv.get(n);if(pe!==void 0){var be=zc,tt=n;switch(n){case"keypress":if(Tc(s)===0)break e;case"keydown":case"keyup":be=JR;break;case"focusin":tt="focus",be=Wf;break;case"focusout":tt="blur",be=Wf;break;case"beforeblur":case"afterblur":be=Wf;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=vv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=VR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=nM;break;case Dv:case Lv:case Vv:be=UR;break;case Fv:be=rM;break;case"scroll":case"scrollend":be=DR;break;case"wheel":be=iM;break;case"copy":case"cut":case"paste":be=GR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=xv;break;case"toggle":case"beforetoggle":be=lM}var dt=(a&4)!==0,sn=!dt&&(n==="scroll"||n==="scrollend"),le=dt?pe!==null?pe+"Capture":null:pe;dt=[];for(var oe=fe,de;oe!==null;){var Re=oe;if(de=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||de===null||le===null||(Re=Fs(oe,le),Re!=null&&dt.push(Sl(oe,Re,de))),sn)break;oe=oe.return}0<dt.length&&(pe=new be(pe,tt,null,s,Ee),Me.push({event:pe,listeners:dt}))}}if((a&7)===0){e:{if(pe=n==="mouseover"||n==="pointerover",be=n==="mouseout"||n==="pointerout",pe&&s!==Hf&&(tt=s.relatedTarget||s.fromElement)&&(en(tt)||tt[on]))break e;if((be||pe)&&(pe=Ee.window===Ee?Ee:(pe=Ee.ownerDocument)?pe.defaultView||pe.parentWindow:window,be?(tt=s.relatedTarget||s.toElement,be=fe,tt=tt?en(tt):null,tt!==null&&(sn=l(tt),dt=tt.tag,tt!==sn||dt!==5&&dt!==27&&dt!==6)&&(tt=null)):(be=null,tt=fe),be!==tt)){if(dt=vv,Re="onMouseLeave",le="onMouseEnter",oe="mouse",(n==="pointerout"||n==="pointerover")&&(dt=xv,Re="onPointerLeave",le="onPointerEnter",oe="pointer"),sn=be==null?pe:Ft(be),de=tt==null?pe:Ft(tt),pe=new dt(Re,oe+"leave",be,s,Ee),pe.target=sn,pe.relatedTarget=de,Re=null,en(Ee)===fe&&(dt=new dt(le,oe+"enter",tt,s,Ee),dt.target=de,dt.relatedTarget=sn,Re=dt),sn=Re,be&&tt)t:{for(dt=sT,le=be,oe=tt,de=0,Re=le;Re;Re=dt(Re))de++;Re=0;for(var st=oe;st;st=dt(st))Re++;for(;0<de-Re;)le=dt(le),de--;for(;0<Re-de;)oe=dt(oe),Re--;for(;de--;){if(le===oe||oe!==null&&le===oe.alternate){dt=le;break t}le=dt(le),oe=dt(oe)}dt=null}else dt=null;be!==null&&d1(Me,pe,be,dt,!1),tt!==null&&sn!==null&&d1(Me,sn,tt,dt,!0)}}e:{if(pe=fe?Ft(fe):window,be=pe.nodeName&&pe.nodeName.toLowerCase(),be==="select"||be==="input"&&pe.type==="file")var qt=Mv;else if(Nv(pe))if(Tv)qt=vM;else{qt=hM;var ot=gM}else be=pe.nodeName,!be||be.toLowerCase()!=="input"||pe.type!=="checkbox"&&pe.type!=="radio"?fe&&_f(fe.elementType)&&(qt=Mv):qt=bM;if(qt&&(qt=qt(n,fe))){Rv(Me,qt,s,Ee);break e}ot&&ot(n,pe,fe),n==="focusout"&&fe&&pe.type==="number"&&fe.memoizedProps.value!=null&&Qr(pe,"number",pe.value)}switch(ot=fe?Ft(fe):window,n){case"focusin":(Nv(ot)||ot.contentEditable==="true")&&(wi=ot,Qf=fe,Ks=null);break;case"focusout":Ks=Qf=wi=null;break;case"mousedown":Zf=!0;break;case"contextmenu":case"mouseup":case"dragend":Zf=!1,_v(Me,s,Ee);break;case"selectionchange":if(xM)break;case"keydown":case"keyup":_v(Me,s,Ee)}var xt;if(Xf)e:{switch(n){case"compositionstart":var Pt="onCompositionStart";break e;case"compositionend":Pt="onCompositionEnd";break e;case"compositionupdate":Pt="onCompositionUpdate";break e}Pt=void 0}else Ei?Ev(n,s)&&(Pt="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Pt="onCompositionStart");Pt&&(Sv&&s.locale!=="ko"&&(Ei||Pt!=="onCompositionStart"?Pt==="onCompositionEnd"&&Ei&&(xt=hv()):(ea=Ee,Ff="value"in ea?ea.value:ea.textContent,Ei=!0)),ot=Su(fe,Pt),0<ot.length&&(Pt=new yv(Pt,n,null,s,Ee),Me.push({event:Pt,listeners:ot}),xt?Pt.data=xt:(xt=wv(s),xt!==null&&(Pt.data=xt)))),(xt=uM?dM(n,s):fM(n,s))&&(Pt=Su(fe,"onBeforeInput"),0<Pt.length&&(ot=new yv("onBeforeInput","beforeinput",null,s,Ee),Me.push({event:ot,listeners:Pt}),ot.data=xt)),oT(Me,n,fe,s,Ee)}c1(Me,a)})}function Sl(n,a,s){return{instance:n,listener:a,currentTarget:s}}function Su(n,a){for(var s=a+"Capture",d=[];n!==null;){var h=n,y=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||y===null||(h=Fs(n,s),h!=null&&d.unshift(Sl(n,h,y)),h=Fs(n,a),h!=null&&d.push(Sl(n,h,y))),n.tag===3)return d;n=n.return}return[]}function sT(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function d1(n,a,s,d,h){for(var y=a._reactName,M=[];s!==null&&s!==d;){var _=s,ee=_.alternate,fe=_.stateNode;if(_=_.tag,ee!==null&&ee===d)break;_!==5&&_!==26&&_!==27||fe===null||(ee=fe,h?(fe=Fs(s,y),fe!=null&&M.unshift(Sl(s,fe,ee))):h||(fe=Fs(s,y),fe!=null&&M.push(Sl(s,fe,ee)))),s=s.return}M.length!==0&&n.push({event:a,listeners:M})}var lT=/\r\n?/g,cT=/\u0000|\uFFFD/g;function f1(n){return(typeof n=="string"?n:""+n).replace(lT,`
|
|
36
|
-
`).replace(cT,"")}function m1(n,a){return a=f1(a),f1(n)===a}function an(n,a,s,d,h,y){switch(s){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||Jr(n,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&Jr(n,""+d);break;case"className":wn(n,"class",d);break;case"tabIndex":wn(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":wn(n,s,d);break;case"style":mv(n,d,y);break;case"data":if(a!=="object"){wn(n,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(s);break}d=Rc(""+d),n.setAttribute(s,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(s==="formAction"?(a!=="input"&&an(n,a,"name",h.name,h,null),an(n,a,"formEncType",h.formEncType,h,null),an(n,a,"formMethod",h.formMethod,h,null),an(n,a,"formTarget",h.formTarget,h,null)):(an(n,a,"encType",h.encType,h,null),an(n,a,"method",h.method,h,null),an(n,a,"target",h.target,h,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(s);break}d=Rc(""+d),n.setAttribute(s,d);break;case"onClick":d!=null&&(n.onclick=xr);break;case"onScroll":d!=null&&At("scroll",n);break;case"onScrollEnd":d!=null&&At("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(s=d.__html,s!=null){if(h.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}s=Rc(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(s,""+d):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":d===!0?n.setAttribute(s,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(s,d):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(s,d):n.removeAttribute(s);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(s):n.setAttribute(s,d);break;case"popover":At("beforetoggle",n),At("toggle",n),Mn(n,"popover",d);break;case"xlinkActuate":Zn(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Zn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Zn(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Zn(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Zn(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Zn(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Mn(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=_R.get(s)||s,Mn(n,s,d))}}function $p(n,a,s,d,h,y){switch(s){case"style":mv(n,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(s=d.__html,s!=null){if(h.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof d=="string"?Jr(n,d):(typeof d=="number"||typeof d=="bigint")&&Jr(n,""+d);break;case"onScroll":d!=null&&At("scroll",n);break;case"onScrollEnd":d!=null&&At("scrollend",n);break;case"onClick":d!=null&&(n.onclick=xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yr.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),a=s.slice(2,h?s.length-7:void 0),y=n[Mt]||null,y=y!=null?y[s]:null,typeof y=="function"&&n.removeEventListener(a,y,h),typeof d=="function")){typeof y!="function"&&y!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,d,h);break e}s in n?n[s]=d:d===!0?n.setAttribute(s,""):Mn(n,s,d)}}}function Wn(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":At("error",n),At("load",n);var d=!1,h=!1,y;for(y in s)if(s.hasOwnProperty(y)){var M=s[y];if(M!=null)switch(y){case"src":d=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:an(n,a,y,M,s,null)}}h&&an(n,a,"srcSet",s.srcSet,s,null),d&&an(n,a,"src",s.src,s,null);return;case"input":At("invalid",n);var _=y=M=h=null,ee=null,fe=null;for(d in s)if(s.hasOwnProperty(d)){var Ee=s[d];if(Ee!=null)switch(d){case"name":h=Ee;break;case"type":M=Ee;break;case"checked":ee=Ee;break;case"defaultChecked":fe=Ee;break;case"value":y=Ee;break;case"defaultValue":_=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,a));break;default:an(n,a,d,Ee,s,null)}}Dt(n,y,_,ee,fe,M,h,!1);return;case"select":At("invalid",n),d=M=y=null;for(h in s)if(s.hasOwnProperty(h)&&(_=s[h],_!=null))switch(h){case"value":y=_;break;case"defaultValue":M=_;break;case"multiple":d=_;default:an(n,a,h,_,s,null)}a=y,s=M,n.multiple=!!d,a!=null?Zr(n,!!d,a,!1):s!=null&&Zr(n,!!d,s,!0);return;case"textarea":At("invalid",n),y=h=d=null;for(M in s)if(s.hasOwnProperty(M)&&(_=s[M],_!=null))switch(M){case"value":d=_;break;case"defaultValue":h=_;break;case"children":y=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:an(n,a,M,_,s,null)}Vs(n,d,h,y);return;case"option":for(ee in s)s.hasOwnProperty(ee)&&(d=s[ee],d!=null)&&(ee==="selected"?n.selected=d&&typeof d!="function"&&typeof d!="symbol":an(n,a,ee,d,s,null));return;case"dialog":At("beforetoggle",n),At("toggle",n),At("cancel",n),At("close",n);break;case"iframe":case"object":At("load",n);break;case"video":case"audio":for(d=0;d<xl.length;d++)At(xl[d],n);break;case"image":At("error",n),At("load",n);break;case"details":At("toggle",n);break;case"embed":case"source":case"link":At("error",n),At("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in s)if(s.hasOwnProperty(fe)&&(d=s[fe],d!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:an(n,a,fe,d,s,null)}return;default:if(_f(a)){for(Ee in s)s.hasOwnProperty(Ee)&&(d=s[Ee],d!==void 0&&$p(n,a,Ee,d,s,void 0));return}}for(_ in s)s.hasOwnProperty(_)&&(d=s[_],d!=null&&an(n,a,_,d,s,null))}function uT(n,a,s,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,y=null,M=null,_=null,ee=null,fe=null,Ee=null;for(be in s){var Me=s[be];if(s.hasOwnProperty(be)&&Me!=null)switch(be){case"checked":break;case"value":break;case"defaultValue":ee=Me;default:d.hasOwnProperty(be)||an(n,a,be,null,d,Me)}}for(var pe in d){var be=d[pe];if(Me=s[pe],d.hasOwnProperty(pe)&&(be!=null||Me!=null))switch(pe){case"type":y=be;break;case"name":h=be;break;case"checked":fe=be;break;case"defaultChecked":Ee=be;break;case"value":M=be;break;case"defaultValue":_=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(r(137,a));break;default:be!==Me&&an(n,a,pe,be,d,Me)}}ke(n,M,_,ee,fe,Ee,y,h);return;case"select":be=M=_=pe=null;for(y in s)if(ee=s[y],s.hasOwnProperty(y)&&ee!=null)switch(y){case"value":break;case"multiple":be=ee;default:d.hasOwnProperty(y)||an(n,a,y,null,d,ee)}for(h in d)if(y=d[h],ee=s[h],d.hasOwnProperty(h)&&(y!=null||ee!=null))switch(h){case"value":pe=y;break;case"defaultValue":_=y;break;case"multiple":M=y;default:y!==ee&&an(n,a,h,y,d,ee)}a=_,s=M,d=be,pe!=null?Zr(n,!!s,pe,!1):!!d!=!!s&&(a!=null?Zr(n,!!s,a,!0):Zr(n,!!s,s?[]:"",!1));return;case"textarea":be=pe=null;for(_ in s)if(h=s[_],s.hasOwnProperty(_)&&h!=null&&!d.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:an(n,a,_,null,d,h)}for(M in d)if(h=d[M],y=s[M],d.hasOwnProperty(M)&&(h!=null||y!=null))switch(M){case"value":pe=h;break;case"defaultValue":be=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:h!==y&&an(n,a,M,h,d,y)}Ls(n,pe,be);return;case"option":for(var tt in s)pe=s[tt],s.hasOwnProperty(tt)&&pe!=null&&!d.hasOwnProperty(tt)&&(tt==="selected"?n.selected=!1:an(n,a,tt,null,d,pe));for(ee in d)pe=d[ee],be=s[ee],d.hasOwnProperty(ee)&&pe!==be&&(pe!=null||be!=null)&&(ee==="selected"?n.selected=pe&&typeof pe!="function"&&typeof pe!="symbol":an(n,a,ee,pe,d,be));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var dt in s)pe=s[dt],s.hasOwnProperty(dt)&&pe!=null&&!d.hasOwnProperty(dt)&&an(n,a,dt,null,d,pe);for(fe in d)if(pe=d[fe],be=s[fe],d.hasOwnProperty(fe)&&pe!==be&&(pe!=null||be!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,a));break;default:an(n,a,fe,pe,d,be)}return;default:if(_f(a)){for(var sn in s)pe=s[sn],s.hasOwnProperty(sn)&&pe!==void 0&&!d.hasOwnProperty(sn)&&$p(n,a,sn,void 0,d,pe);for(Ee in d)pe=d[Ee],be=s[Ee],!d.hasOwnProperty(Ee)||pe===be||pe===void 0&&be===void 0||$p(n,a,Ee,pe,d,be);return}}for(var le in s)pe=s[le],s.hasOwnProperty(le)&&pe!=null&&!d.hasOwnProperty(le)&&an(n,a,le,null,d,pe);for(Me in d)pe=d[Me],be=s[Me],!d.hasOwnProperty(Me)||pe===be||pe==null&&be==null||an(n,a,Me,pe,d,be)}function p1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dT(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,s=performance.getEntriesByType("resource"),d=0;d<s.length;d++){var h=s[d],y=h.transferSize,M=h.initiatorType,_=h.duration;if(y&&_&&p1(M)){for(M=0,_=h.responseEnd,d+=1;d<s.length;d++){var ee=s[d],fe=ee.startTime;if(fe>_)break;var Ee=ee.transferSize,Me=ee.initiatorType;Ee&&p1(Me)&&(ee=ee.responseEnd,M+=Ee*(ee<_?1:(_-fe)/(ee-fe)))}if(--d,a+=8*(y+M)/(h.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Ep=null,wp=null;function Cu(n){return n.nodeType===9?n:n.ownerDocument}function g1(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function h1(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Np(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Rp=null;function fT(){var n=window.event;return n&&n.type==="popstate"?n===Rp?!1:(Rp=n,!0):(Rp=null,!1)}var b1=typeof setTimeout=="function"?setTimeout:void 0,mT=typeof clearTimeout=="function"?clearTimeout:void 0,v1=typeof Promise=="function"?Promise:void 0,pT=typeof queueMicrotask=="function"?queueMicrotask:typeof v1<"u"?function(n){return v1.resolve(null).then(n).catch(gT)}:b1;function gT(n){setTimeout(function(){throw n})}function ba(n){return n==="head"}function y1(n,a){var s=a,d=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"||s==="/&"){if(d===0){n.removeChild(h),Zi(a);return}d--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")d++;else if(s==="html")Cl(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,Cl(s);for(var y=s.firstChild;y;){var M=y.nextSibling,_=y.nodeName;y[lt]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&y.rel.toLowerCase()==="stylesheet"||s.removeChild(y),y=M}}else s==="body"&&Cl(n.ownerDocument.body);s=h}while(s);Zi(a)}function x1(n,a){var s=n;n=0;do{var d=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=d}while(s)}function Mp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Mp(s),_t(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function hT(n,a,s,d){for(;n.nodeType===1;){var h=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[lt])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var y=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Vo(n.nextSibling),n===null)break}return null}function bT(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Vo(n.nextSibling),n===null))return null;return n}function S1(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Vo(n.nextSibling),n===null))return null;return n}function Tp(n){return n.data==="$?"||n.data==="$~"}function Op(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function vT(n,a){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||s.readyState!=="loading")a();else{var d=function(){a(),s.removeEventListener("DOMContentLoaded",d)};s.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function Vo(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var zp=null;function C1(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(a===0)return Vo(n.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}n=n.nextSibling}return null}function $1(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return n;a--}else s!=="/$"&&s!=="/&"||a++}n=n.previousSibling}return null}function E1(n,a,s){switch(a=Cu(s),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function Cl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);_t(n)}var Fo=new Map,w1=new Set;function $u(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Br=q.d;q.d={f:yT,r:xT,D:ST,C:CT,L:$T,m:ET,X:NT,S:wT,M:RT};function yT(){var n=Br.f(),a=pu();return n||a}function xT(n){var a=wt(n);a!==null&&a.tag===5&&a.type==="form"?Fy(a):Br.r(n)}var Yi=typeof document>"u"?null:document;function N1(n,a,s){var d=Yi;if(d&&typeof a=="string"&&a){var h=io(a);h='link[rel="'+n+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),w1.has(h)||(w1.add(h),n={rel:n,crossOrigin:s,href:a},d.querySelector(h)===null&&(a=d.createElement("link"),Wn(a,"link",n),Ht(a),d.head.appendChild(a)))}}function ST(n){Br.D(n),N1("dns-prefetch",n,null)}function CT(n,a){Br.C(n,a),N1("preconnect",n,a)}function $T(n,a,s){Br.L(n,a,s);var d=Yi;if(d&&n&&a){var h='link[rel="preload"][as="'+io(a)+'"]';a==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+io(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+io(s.imageSizes)+'"]')):h+='[href="'+io(n)+'"]';var y=h;switch(a){case"style":y=Ki(n);break;case"script":y=Qi(n)}Fo.has(y)||(n=b({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),Fo.set(y,n),d.querySelector(h)!==null||a==="style"&&d.querySelector($l(y))||a==="script"&&d.querySelector(El(y))||(a=d.createElement("link"),Wn(a,"link",n),Ht(a),d.head.appendChild(a)))}}function ET(n,a){Br.m(n,a);var s=Yi;if(s&&n){var d=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+io(d)+'"][href="'+io(n)+'"]',y=h;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Qi(n)}if(!Fo.has(y)&&(n=b({rel:"modulepreload",href:n},a),Fo.set(y,n),s.querySelector(h)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(El(y)))return}d=s.createElement("link"),Wn(d,"link",n),Ht(d),s.head.appendChild(d)}}}function wT(n,a,s){Br.S(n,a,s);var d=Yi;if(d&&n){var h=gn(d).hoistableStyles,y=Ki(n);a=a||"default";var M=h.get(y);if(!M){var _={loading:0,preload:null};if(M=d.querySelector($l(y)))_.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},s),(s=Fo.get(y))&&Ap(n,s);var ee=M=d.createElement("link");Ht(ee),Wn(ee,"link",n),ee._p=new Promise(function(fe,Ee){ee.onload=fe,ee.onerror=Ee}),ee.addEventListener("load",function(){_.loading|=1}),ee.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Eu(M,a,d)}M={type:"stylesheet",instance:M,count:1,state:_},h.set(y,M)}}}function NT(n,a){Br.X(n,a);var s=Yi;if(s&&n){var d=gn(s).hoistableScripts,h=Qi(n),y=d.get(h);y||(y=s.querySelector(El(h)),y||(n=b({src:n,async:!0},a),(a=Fo.get(h))&&Ip(n,a),y=s.createElement("script"),Ht(y),Wn(y,"link",n),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(h,y))}}function RT(n,a){Br.M(n,a);var s=Yi;if(s&&n){var d=gn(s).hoistableScripts,h=Qi(n),y=d.get(h);y||(y=s.querySelector(El(h)),y||(n=b({src:n,async:!0,type:"module"},a),(a=Fo.get(h))&&Ip(n,a),y=s.createElement("script"),Ht(y),Wn(y,"link",n),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(h,y))}}function R1(n,a,s,d){var h=(h=te.current)?$u(h):null;if(!h)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=Ki(s.href),s=gn(h).hoistableStyles,d=s.get(a),d||(d={type:"style",instance:null,count:0,state:null},s.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=Ki(s.href);var y=gn(h).hoistableStyles,M=y.get(n);if(M||(h=h.ownerDocument||h,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,M),(y=h.querySelector($l(n)))&&!y._p&&(M.instance=y,M.state.loading=5),Fo.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Fo.set(n,s),y||MT(h,n,s,M.state))),a&&d===null)throw Error(r(528,""));return M}if(a&&d!==null)throw Error(r(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Qi(s),s=gn(h).hoistableScripts,d=s.get(a),d||(d={type:"script",instance:null,count:0,state:null},s.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function Ki(n){return'href="'+io(n)+'"'}function $l(n){return'link[rel="stylesheet"]['+n+"]"}function M1(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function MT(n,a,s,d){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=n.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),Wn(a,"link",s),Ht(a),n.head.appendChild(a))}function Qi(n){return'[src="'+io(n)+'"]'}function El(n){return"script[async]"+n}function T1(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var d=n.querySelector('style[data-href~="'+io(s.href)+'"]');if(d)return a.instance=d,Ht(d),d;var h=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),Ht(d),Wn(d,"style",h),Eu(d,s.precedence,n),a.instance=d;case"stylesheet":h=Ki(s.href);var y=n.querySelector($l(h));if(y)return a.state.loading|=4,a.instance=y,Ht(y),y;d=M1(s),(h=Fo.get(h))&&Ap(d,h),y=(n.ownerDocument||n).createElement("link"),Ht(y);var M=y;return M._p=new Promise(function(_,ee){M.onload=_,M.onerror=ee}),Wn(y,"link",d),a.state.loading|=4,Eu(y,s.precedence,n),a.instance=y;case"script":return y=Qi(s.src),(h=n.querySelector(El(y)))?(a.instance=h,Ht(h),h):(d=s,(h=Fo.get(y))&&(d=b({},s),Ip(d,h)),n=n.ownerDocument||n,h=n.createElement("script"),Ht(h),Wn(h,"link",d),n.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,Eu(d,s.precedence,n));return a.instance}function Eu(n,a,s){for(var d=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=d.length?d[d.length-1]:null,y=h,M=0;M<d.length;M++){var _=d[M];if(_.dataset.precedence===a)y=_;else if(y!==h)break}y?y.parentNode.insertBefore(n,y.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function Ap(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Ip(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var wu=null;function O1(n,a,s){if(wu===null){var d=new Map,h=wu=new Map;h.set(s,d)}else h=wu,d=h.get(s),d||(d=new Map,h.set(s,d));if(d.has(n))return d;for(d.set(n,null),s=s.getElementsByTagName(n),h=0;h<s.length;h++){var y=s[h];if(!(y[lt]||y[mt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var M=y.getAttribute(a)||"";M=n+M;var _=d.get(M);_?_.push(y):d.set(M,[y])}}return d}function z1(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function TT(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function A1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function OT(n,a,s,d){if(s.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var h=Ki(d.href),y=a.querySelector($l(h));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Nu.bind(n),a.then(n,n)),s.state.loading|=4,s.instance=y,Ht(y);return}y=a.ownerDocument||a,d=M1(d),(h=Fo.get(h))&&Ap(d,h),y=y.createElement("link"),Ht(y);var M=y;M._p=new Promise(function(_,ee){M.onload=_,M.onerror=ee}),Wn(y,"link",d),s.instance=y}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=Nu.bind(n),a.addEventListener("load",s),a.addEventListener("error",s))}}var Pp=0;function zT(n,a){return n.stylesheets&&n.count===0&&Mu(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var d=setTimeout(function(){if(n.stylesheets&&Mu(n,n.stylesheets),n.unsuspend){var y=n.unsuspend;n.unsuspend=null,y()}},6e4+a);0<n.imgBytes&&Pp===0&&(Pp=62500*dT());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Mu(n,n.stylesheets),n.unsuspend)){var y=n.unsuspend;n.unsuspend=null,y()}},(n.imgBytes>Pp?50:800)+a);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(h)}}:null}function Nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Ru=null;function Mu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Ru=new Map,a.forEach(AT,n),Ru=null,Nu.call(n))}function AT(n,a){if(!(a.state.loading&4)){var s=Ru.get(n);if(s)var d=s.get(null);else{s=new Map,Ru.set(n,s);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<h.length;y++){var M=h[y];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(s.set(M.dataset.precedence,M),d=M)}d&&s.set(null,d)}h=a.instance,M=h.getAttribute("data-precedence"),y=s.get(M)||d,y===d&&s.set(null,h),s.set(M,h),this.count++,d=Nu.bind(this),h.addEventListener("load",d),h.addEventListener("error",d),y?y.parentNode.insertBefore(h,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),a.state.loading|=4}}var wl={$$typeof:$,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function IT(n,a,s,d,h,y,M,_,ee){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ot(0),this.hiddenUpdates=Ot(null),this.identifierPrefix=d,this.onUncaughtError=h,this.onCaughtError=y,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ee,this.incompleteTransitions=new Map}function I1(n,a,s,d,h,y,M,_,ee,fe,Ee,Me){return n=new IT(n,a,s,M,ee,fe,Ee,Me,_),a=1,y===!0&&(a|=24),y=yo(3,null,null,a),n.current=y,y.stateNode=n,a=mm(),a.refCount++,n.pooledCache=a,a.refCount++,y.memoizedState={element:d,isDehydrated:s,cache:a},bm(y),n}function P1(n){return n?(n=Mi,n):Mi}function j1(n,a,s,d,h,y){h=P1(h),d.context===null?d.context=h:d.pendingContext=h,d=ia(a),d.payload={element:s},y=y===void 0?null:y,y!==null&&(d.callback=y),s=sa(n,d,a),s!==null&&(mo(s,n,a),ol(s,n,a))}function B1(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function jp(n,a){B1(n,a),(n=n.alternate)&&B1(n,a)}function _1(n){if(n.tag===13||n.tag===31){var a=Va(n,67108864);a!==null&&mo(a,n,67108864),jp(n,67108864)}}function H1(n){if(n.tag===13||n.tag===31){var a=Eo();a=Ve(a);var s=Va(n,a);s!==null&&mo(s,n,a),jp(n,a)}}var Tu=!0;function PT(n,a,s,d){var h=L.T;L.T=null;var y=q.p;try{q.p=2,Bp(n,a,s,d)}finally{q.p=y,L.T=h}}function jT(n,a,s,d){var h=L.T;L.T=null;var y=q.p;try{q.p=8,Bp(n,a,s,d)}finally{q.p=y,L.T=h}}function Bp(n,a,s,d){if(Tu){var h=_p(d);if(h===null)Cp(n,a,d,Ou,s),L1(n,d);else if(_T(h,n,a,s,d))d.stopPropagation();else if(L1(n,d),a&4&&-1<BT.indexOf(n)){for(;h!==null;){var y=wt(h);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var M=it(y.pendingLanes);if(M!==0){var _=y;for(_.pendingLanes|=2,_.entangledLanes|=2;M;){var ee=1<<31-Qe(M);_.entanglements[1]|=ee,M&=~ee}ur(y),(kt&6)===0&&(fu=He()+500,yl(0))}}break;case 31:case 13:_=Va(y,2),_!==null&&mo(_,y,2),pu(),jp(y,2)}if(y=_p(d),y===null&&Cp(n,a,d,Ou,s),y===h)break;h=y}h!==null&&d.stopPropagation()}else Cp(n,a,d,null,s)}}function _p(n){return n=Df(n),Hp(n)}var Ou=null;function Hp(n){if(Ou=null,n=en(n),n!==null){var a=l(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=u(a),n!==null)return n;n=null}else if(s===31){if(n=f(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Ou=n,null}function D1(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(nt()){case Ke:return 2;case Fe:return 8;case qe:case Je:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Dp=!1,va=null,ya=null,xa=null,Nl=new Map,Rl=new Map,Sa=[],BT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function L1(n,a){switch(n){case"focusin":case"focusout":va=null;break;case"dragenter":case"dragleave":ya=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":Nl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(a.pointerId)}}function Ml(n,a,s,d,h,y){return n===null||n.nativeEvent!==y?(n={blockedOn:a,domEventName:s,eventSystemFlags:d,nativeEvent:y,targetContainers:[h]},a!==null&&(a=wt(a),a!==null&&_1(a)),n):(n.eventSystemFlags|=d,a=n.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),n)}function _T(n,a,s,d,h){switch(a){case"focusin":return va=Ml(va,n,a,s,d,h),!0;case"dragenter":return ya=Ml(ya,n,a,s,d,h),!0;case"mouseover":return xa=Ml(xa,n,a,s,d,h),!0;case"pointerover":var y=h.pointerId;return Nl.set(y,Ml(Nl.get(y)||null,n,a,s,d,h)),!0;case"gotpointercapture":return y=h.pointerId,Rl.set(y,Ml(Rl.get(y)||null,n,a,s,d,h)),!0}return!1}function V1(n){var a=en(n.target);if(a!==null){var s=l(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){n.blockedOn=a,Jt(n.priority,function(){H1(s)});return}}else if(a===31){if(a=f(s),a!==null){n.blockedOn=a,Jt(n.priority,function(){H1(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function zu(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=_p(n.nativeEvent);if(s===null){s=n.nativeEvent;var d=new s.constructor(s.type,s);Hf=d,s.target.dispatchEvent(d),Hf=null}else return a=wt(s),a!==null&&_1(a),n.blockedOn=s,!1;a.shift()}return!0}function F1(n,a,s){zu(n)&&s.delete(a)}function HT(){Dp=!1,va!==null&&zu(va)&&(va=null),ya!==null&&zu(ya)&&(ya=null),xa!==null&&zu(xa)&&(xa=null),Nl.forEach(F1),Rl.forEach(F1)}function Au(n,a){n.blockedOn===a&&(n.blockedOn=null,Dp||(Dp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,HT)))}var Iu=null;function q1(n){Iu!==n&&(Iu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Iu===n&&(Iu=null);for(var a=0;a<n.length;a+=3){var s=n[a],d=n[a+1],h=n[a+2];if(typeof d!="function"){if(Hp(d||s)===null)continue;break}var y=wt(s);y!==null&&(n.splice(a,3),a-=3,_m(y,{pending:!0,data:h,method:s.method,action:d},d,h))}}))}function Zi(n){function a(ee){return Au(ee,n)}va!==null&&Au(va,n),ya!==null&&Au(ya,n),xa!==null&&Au(xa,n),Nl.forEach(a),Rl.forEach(a);for(var s=0;s<Sa.length;s++){var d=Sa[s];d.blockedOn===n&&(d.blockedOn=null)}for(;0<Sa.length&&(s=Sa[0],s.blockedOn===null);)V1(s),s.blockedOn===null&&Sa.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(d=0;d<s.length;d+=3){var h=s[d],y=s[d+1],M=h[Mt]||null;if(typeof y=="function")M||q1(s);else if(M){var _=null;if(y&&y.hasAttribute("formAction")){if(h=y,M=y[Mt]||null)_=M.formAction;else if(Hp(h)!==null)continue}else _=M.action;typeof _=="function"?s[d+1]=_:(s.splice(d,3),d-=3),q1(s)}}}function U1(){function n(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(M){return h=M})},focusReset:"manual",scroll:"manual"})}function a(){h!==null&&(h(),h=null),d||setTimeout(s,20)}function s(){if(!d&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),h!==null&&(h(),h=null)}}}function Lp(n){this._internalRoot=n}Pu.prototype.render=Lp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var s=a.current,d=Eo();j1(s,d,n,a,null,null)},Pu.prototype.unmount=Lp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;j1(n.current,2,null,n,null,null),pu(),a[on]=null}};function Pu(n){this._internalRoot=n}Pu.prototype.unstable_scheduleHydration=function(n){if(n){var a=ft();n={blockedOn:null,target:n,priority:a};for(var s=0;s<Sa.length&&a!==0&&a<Sa[s].priority;s++);Sa.splice(s,0,n),s===0&&V1(n)}};var W1=t.version;if(W1!=="19.2.7")throw Error(r(527,W1,"19.2.7"));q.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(a),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var DT={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{Xe=ju.inject(DT),De=ju}catch{}}return zl.createRoot=function(n,a){if(!i(n))throw Error(r(299));var s=!1,d="",h=Zy,y=Jy,M=ex;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(M=a.onRecoverableError)),a=I1(n,1,!1,null,null,s,d,null,h,y,M,U1),n[on]=a.current,Sp(n),new Lp(a)},zl.hydrateRoot=function(n,a,s){if(!i(n))throw Error(r(299));var d=!1,h="",y=Zy,M=Jy,_=ex,ee=null;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(M=s.onCaughtError),s.onRecoverableError!==void 0&&(_=s.onRecoverableError),s.formState!==void 0&&(ee=s.formState)),a=I1(n,1,!0,a,s??null,d,h,ee,y,M,_,U1),a.context=P1(null),s=a.current,d=Eo(),d=Ve(d),h=ia(d),h.callback=null,sa(s,h,d),s=d,a.current.lanes=s,Le(a,s),ur(a),n[on]=a.current,Sp(n),new Pu(a)},zl.version="19.2.7",zl}var hS;function BO(){if(hS)return Xp.exports;hS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xp.exports=jO(),Xp.exports}var XE=BO();const Ud="__rc_react_root__";function _O(e,t){const o=t[Ud]||XE.createRoot(t);o.render(e),t[Ud]=o}async function HO(e){return Promise.resolve().then(()=>{e[Ud]?.unmount(),delete e[Ud]})}var gi=GE();const DO=c.createContext({}),Wg=c.createContext(null);function LO({children:e,onBatchResize:t}){const o=c.useRef(0),r=c.useRef([]),i=c.useContext(Wg),l=c.useCallback((u,f,p)=>{o.current+=1;const m=o.current;r.current.push({size:u,element:f,data:p}),Promise.resolve().then(()=>{m===o.current&&(t?.(r.current),r.current=[])}),i?.(u,f,p)},[t,i]);return c.createElement(Wg.Provider,{value:l},e)}const Ra=new Map;function VO(e){e.forEach(t=>{const{target:o}=t;Ra.get(o)?.forEach(r=>r(o))})}let Qp;function kE(){return Qp||(Qp=new ResizeObserver(VO)),Qp}function FO(e,t){Ra.has(e)||(Ra.set(e,new Set),kE().observe(e)),Ra.get(e).add(t)}function qO(e,t){Ra.has(e)&&(Ra.get(e).delete(t),Ra.get(e).size||(kE().unobserve(e),Ra.delete(e)))}function YE(e,t,o,r){const i=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=pt(p=>{const{width:m,height:g}=p.getBoundingClientRect(),{offsetWidth:b,offsetHeight:v}=p,x=Math.floor(m),C=Math.floor(g);if(i.current.width!==x||i.current.height!==C||i.current.offsetWidth!==b||i.current.offsetHeight!==v){const S={width:x,height:C,offsetWidth:b,offsetHeight:v};i.current=S;const R=b===Math.round(m)?m:b,E=v===Math.round(g)?g:v,N={...S,offsetWidth:R,offsetHeight:E};r?.(N,p),Promise.resolve().then(()=>{o?.(N,p)})}}),u=typeof t=="function",f=c.useRef(0);c.useEffect(()=>{const p=u?t():t;return p&&e?FO(p,l):e&&u&&(f.current+=1),()=>{p&&qO(p,l)}},[e,u?f.current:t])}function UO(e,t){const{children:o,disabled:r,onResize:i,data:l}=e,u=c.useRef(null),f=c.useContext(Wg),p=typeof o=="function",m=p?o(u):o,g=!p&&c.isValidElement(m)&&Ms(m),b=g?vi(m):null,v=kr(b,u),x=()=>pi(u.current);return c.useImperativeHandle(t,()=>x()),YE(!r,x,i,(C,S)=>{f?.(C,S,l)}),g?c.cloneElement(m,{ref:v}):m}const WO=c.forwardRef(UO);function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Gg.apply(this,arguments)}const GO="rc-observer-key";function XO(e,t){const{children:o}=e;return(typeof o=="function"?[o]:Ao(o)).map((i,l)=>{const u=i?.key||`${GO}-${l}`;return c.createElement(WO,Gg({},e,{key:u,ref:l===0?t:void 0}),i)})}const gr=c.forwardRef(XO);gr.Collection=LO;function KE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(o=KE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function W(){for(var e,t,o=0,r="",i=arguments.length;o<i;o++)(e=arguments[o])&&(t=KE(e))&&(r&&(r+=" "),r+=t);return r}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function kO(e){if(Array.isArray(e))return Xg(e)}function YO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QE(e,t){if(e){if(typeof e=="string")return Xg(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Xg(e,t):void 0}}function KO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
37
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ho(e){return kO(e)||YO(e)||QE(e)||KO()}const Wd="ant",d0="anticon",QO=["outlined","borderless","filled","underlined"],ZO=(e,t)=>t||(e?`${Wd}-${e}`:Wd),St=c.createContext({getPrefixCls:ZO,iconPrefixCls:d0}),{Consumer:tF}=St,bS={};function Kt(e){const t=c.useContext(St),{getPrefixCls:o,direction:r,getPopupContainer:i,renderEmpty:l}=t,u=t[e];return{classNames:bS,styles:bS,...u,getPrefixCls:o,direction:r,getPopupContainer:i,renderEmpty:l}}function Zl(e){for(var t=0,o,r=0,i=e.length;i>=4;++r,i-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){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)}const JO="%";function kg(e){return e.join(JO)}let vS=0;class e4{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(kg(t))}opGet(t){return this.cache.get(t)||null}update(t,o){return this.opUpdate(kg(t),o)}opUpdate(t,o){const r=this.cache.get(t),i=o(r);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,vS),vS+=1)}}const f0="data-token-hash",Lr="data-css-hash",ui="__cssinjs_instance__";function t4(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Lr}]`)||[],{firstChild:o}=document.head;Array.from(t).forEach(i=>{i[ui]||=e,i[ui]===e&&document.head.insertBefore(i,o)});const r={};Array.from(document.querySelectorAll(`style[${Lr}]`)).forEach(i=>{const l=i.getAttribute(Lr);r[l]?i[ui]===e&&i.parentNode?.removeChild(i):r[l]=!0})}return new e4(e)}const fc=c.createContext({hashPriority:"low",cache:t4(),defaultCache:!0,autoPrefix:!1});function n4(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}class Gd{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,o=!1){let r={map:this.cache};return t.forEach(i=>{r?r=r?.map?.get(i):r=void 0}),r?.value&&o&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,o){if(!this.has(t)){if(this.size()+1>Gd.MAX_CACHE_SIZE+Gd.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((l,u)=>{const[,f]=l;return this.internalGet(u)[1]<f?[u,this.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(t)}let r=this.cache;t.forEach((i,l)=>{if(l===t.length-1)r.set(i,{value:[o,this.cacheCallTimes++]});else{const u=r.get(i);u?u.map||(u.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(t,o){const r=t.get(o[0]);if(o.length===1)return r.map?t.set(o[0],{map:r.map}):t.delete(o[0]),r.value?.[0];const i=this.deleteByPath(r.map,o.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(o[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(o=>!n4(o,t)),this.deleteByPath(this.cache,t)}}let yS=0;class ZE{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=yS,t.length===0&&(t.length>0,void 0),yS+=1}getDerivativeToken(t){return this.derivatives.reduce((o,r)=>r(t,o),void 0)}}const Zp=new Gd;function Yg(e){const t=Array.isArray(e)?e:[e];return Zp.has(t)||Zp.set(t,new ZE(t)),Zp.get(t)}const o4=new WeakMap,Jp={};function r4(e,t){let o=o4;for(let r=0;r<t.length;r+=1){const i=t[r];o.has(i)||o.set(i,new WeakMap),o=o.get(i)}return o.has(Jp)||o.set(Jp,e()),o.get(Jp)}const xS=new WeakMap;function Ul(e){let t=xS.get(e)||"";return t||(Object.keys(e).forEach(o=>{const r=e[o];t+=o,r instanceof ZE?t+=r.id:r&&typeof r=="object"?t+=Ul(r):t+=r}),t=Zl(t),xS.set(e,t)),t}function a4(e,t){return Zl(`${t}_${Ul(e)}`)}const Kg=zo();function re(e){return typeof e=="number"?`${e}px`:e}function JE(e){const{hashCls:t,hashPriority:o="low"}=e||{};if(!t)return"";const r=`.${t}`;return o==="low"?`:where(${r})`:r}const i4=e=>e!=null;function m0(e,t){const o=typeof t=="function"?t():t;return o?{...e,csp:{...e.csp,nonce:o}}:e}const zd=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),s4=(e,t,o)=>{const{hashCls:r,hashPriority:i="low",scope:l}=o||{};if(!Object.keys(e).length)return"";const u=`${JE({hashCls:r,hashPriority:i})}.${t}`,f=[l].flat().filter(Boolean);return`${f.length?f.map(m=>`${u}.${m}`).join(", "):u}{${Object.entries(e).map(([m,g])=>`${m}:${g};`).join("")}}`},ew=(e,t,o)=>{const{hashCls:r,hashPriority:i="low",prefix:l,unitless:u,ignore:f,preserve:p}=o||{},m={},g={};return Object.entries(e).forEach(([b,v])=>{if(p?.[b])g[b]=v;else if((typeof v=="string"||typeof v=="number")&&!f?.[b]){const x=zd(b,l);m[x]=typeof v=="number"&&!u?.[b]?`${v}px`:String(v),g[b]=`var(${x})`}}),[g,s4(m,t,{scope:o?.scope,hashCls:r,hashPriority:i})]},Bu=new Map;function p0(e,t,o,r,i){const{cache:l}=c.useContext(fc),u=[e,...t],f=kg(u),p=b=>{l.opUpdate(f,v=>{const[x=0,C]=v||[void 0,void 0],R=C||o(),E=[x,R];return b?b(E):E})};c.useMemo(()=>{p()},[f]);const g=l.opGet(f)[1];return c.useInsertionEffect(()=>(p(([b,v])=>[b+1,v]),Bu.has(f)||(i?.(g),Bu.set(f,!0),Promise.resolve().then(()=>{Bu.delete(f)})),()=>{l.opUpdate(f,b=>{const[v=0,x]=b||[];return v-1===0?(r?.(x,!1),Bu.delete(f),null):[v-1,x]})}),[f]),g}const l4={},c4="css",ni=new Map;function u4(e){ni.set(e,(ni.get(e)||0)+1)}function d4(e,t){typeof document<"u"&&document.querySelectorAll(`style[${f0}="${e}"]`).forEach(r=>{r[ui]===t&&r.parentNode?.removeChild(r)})}const f4=-1;function m4(e,t){ni.set(e,(ni.get(e)||0)-1);const o=new Set;ni.forEach((r,i)=>{r<=0&&o.add(i)}),ni.size-o.size>f4&&o.forEach(r=>{d4(r,t),ni.delete(r)})}const p4=(e,t,o,r)=>{let l={...o.getDerivativeToken(e),...t};return r&&(l=r(l)),l},g4="token";function h4(e,t,o){const{cache:{instanceId:r},container:i,hashPriority:l}=c.useContext(fc),{salt:u="",override:f=l4,formatToken:p,getComputedToken:m,cssVar:g,nonce:b}=o,v=r4(()=>Object.assign({},...t),t),x=Ul(v),C=Ul(f),S=Ul(g);return p0(g4,[u,e.id,x,C,S],()=>{const E=m?m(v,f,e):p4(v,f,e,p),N={...E},$=`${u}_${g.prefix}`,w=Zl($),T=`${c4}-${w}`;N._tokenKey=a4(N,$);const[z,A]=ew(E,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:l,hashCls:g.hashed?T:void 0});return z._hashId=w,u4(g.key),[z,T,N,A,g.key]},([,,,,E])=>{m4(E,r)},([,,,E,N])=>{if(!E)return;let $={mark:Lr,prepend:"queue",attachTo:i,priority:-999};$=m0($,b);const w=ci(E,Zl(`css-var-${N}`),$);w[ui]=r,w.setAttribute(f0,N)})}var b4={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},vn="-ms-",Wl="-moz-",Yt="-webkit-",tw="comm",g0="rule",h0="decl",nF="@media",v4="@import",oF="@supports",y4="@namespace",nw="@keyframes",x4="@layer",rF="@scope",S4=Math.abs,Gl=String.fromCharCode,Qg=Object.assign;function C4(e,t){return _n(e,0)^45?(((t<<2^_n(e,0))<<2^_n(e,1))<<2^_n(e,2))<<2^_n(e,3):0}function ow(e){return e.trim()}function _r(e,t){return(e=t.exec(e))?e[0]:e}function Nt(e,t,o){return e.replace(t,o)}function eg(e,t){return e.indexOf(t)}function _n(e,t){return e.charCodeAt(t)|0}function hi(e,t,o){return e.slice(t,o)}function tr(e){return e.length}function rw(e){return e.length}function Hl(e,t){return t.push(e),e}function $4(e,t){return e.map(t).join("")}function SS(e,t){return e.filter(function(o){return!_r(o,t)})}var mf=1,xs=1,aw=0,Yo=0,Pn=0,Ts="";function pf(e,t,o,r,i,l,u,f){return{value:e,root:t,parent:o,type:r,props:i,children:l,line:mf,column:xs,length:u,return:"",siblings:f}}function Ea(e,t){return Qg(pf("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ji(e){for(;e.root;)e=Ea(e.root,{children:[e]});Hl(e,e.siblings)}function E4(){return Pn}function w4(){return Pn=Yo>0?_n(Ts,--Yo):0,xs--,Pn===10&&(xs=1,mf--),Pn}function or(){return Pn=Yo<aw?_n(Ts,Yo++):0,xs++,Pn===10&&(xs=1,mf++),Pn}function Ma(){return _n(Ts,Yo)}function Ad(){return Yo}function gf(e,t){return hi(Ts,e,t)}function Jl(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 N4(e){return mf=xs=1,aw=tr(Ts=e),Yo=0,[]}function R4(e){return Ts="",e}function tg(e){return ow(gf(Yo-1,Zg(e===91?e+2:e===40?e+1:e)))}function M4(e){for(;(Pn=Ma())&&Pn<33;)or();return Jl(e)>2||Jl(Pn)>3?"":" "}function T4(e,t){for(;--t&&or()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return gf(e,Ad()+(t<6&&Ma()==32&&or()==32))}function Zg(e){for(;or();)switch(Pn){case e:return Yo;case 34:case 39:e!==34&&e!==39&&Zg(Pn);break;case 40:e===41&&Zg(e);break;case 92:or();break}return Yo}function O4(e,t){for(;or()&&e+Pn!==57;)if(e+Pn===84&&Ma()===47)break;return"/*"+gf(t,Yo-1)+"*"+Gl(e===47?e:or())}function z4(e){for(;!Jl(Ma());)or();return gf(e,Yo)}function CS(e){return R4(Id("",null,null,null,[""],e=N4(e),0,[0],e))}function Id(e,t,o,r,i,l,u,f,p){for(var m=0,g=0,b=u,v=0,x=0,C=0,S=1,R=1,E=1,N=0,$=0,w="",T=i,z=l,A=r,P=w;R;)switch(C=$,$=or()){case 40:C!=108&&_n(P,b-1)==58?(N++,P+="("):P+=tg($);break;case 41:N--,P+=")";break;case 34:case 39:case 91:P+=tg($);break;case 9:case 10:case 13:case 32:if(N>0){P+=Gl($);break}P+=M4(C);break;case 92:P+=T4(Ad()-1,7);continue;case 47:switch(Ma()){case 42:case 47:Hl(A4(O4(or(),Ad()),t,o,p),p),(Jl(C||1)==5||Jl(Ma()||1)==5)&&tr(P)&&hi(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*S:f[m++]=tr(P)*E;case 125*S:case 59:case 0:if(N>0&&$){P+=Gl($);break}switch($){case 0:case 125:R=0;case 59+g:E==-1&&(P=Nt(P,/\f/g,"")),x>0&&(tr(P)-b||S===0)&&Hl(x>32?ES(P+";",r,o,b-1,p):ES(Nt(P," ","")+";",r,o,b-2,p),p);break;case 59:P+=";";default:if(Hl(A=$S(P,t,o,m,g,i,f,w,T=[],z=[],b,l),l),$===123)if(g===0)Id(P,t,A,A,T,l,b,f,z);else{switch(v){case 99:if(_n(P,3)===110)break;case 108:if(_n(P,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Id(e,A,A,r&&Hl($S(e,A,A,0,0,i,f,w,i,T=[],b,z),z),i,z,b,f,r?T:z):Id(P,A,A,A,[""],z,0,f,z)}}m=g=x=0,S=E=1,w=P="",b=u;break;case 58:b=1+tr(P),x=C;default:if(S<1){if($==123)--S;else if($==125&&S++==0&&w4()==125)continue}switch(P+=Gl($),$*S){case 38:E=g>0?1:(P+="\f",-1);break;case 44:if(N>0)break;f[m++]=(tr(P)-1)*E,E=1;break;case 64:Ma()===45&&(P+=tg(or())),v=Ma(),g=b=tr(w=P+=z4(Ad())),$++;break;case 45:C===45&&tr(P)==2&&(S=0)}}return l}function $S(e,t,o,r,i,l,u,f,p,m,g,b){for(var v=i-1,x=i===0?l:[""],C=rw(x),S=0,R=0,E=0;S<r;++S)for(var N=0,$=hi(e,v+1,v=S4(R=u[S])),w=e;N<C;++N)(w=ow(R>0?x[N]+" "+$:Nt($,/&\f/g,x[N])))&&(p[E++]=w);return pf(e,t,o,i===0?g0:f,p,m,g,b)}function A4(e,t,o,r){return pf(e,t,o,tw,Gl(E4()),hi(e,2,-2),0,r)}function ES(e,t,o,r,i){return pf(e,t,o,h0,hi(e,0,r),hi(e,r+1,-1),r,i)}function iw(e,t,o){switch(C4(e,t)){case 5103:return Yt+"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 Yt+e+e;case 4855:return Yt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Wl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+e+Wl+e+vn+e+e;case 5936:switch(_n(e,t+11)){case 114:return Yt+e+vn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+vn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+vn+Nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yt+e+vn+e+e;case 6165:return Yt+e+vn+"flex-"+e+e;case 5187:return Yt+e+Nt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return Yt+e+vn+"flex-item-"+Nt(e,/flex-|-self/g,"")+(_r(e,/flex-|baseline/)?"":vn+"grid-row-"+Nt(e,/flex-|-self/g,""))+e;case 4675:return Yt+e+vn+"flex-line-pack"+Nt(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yt+e+vn+Nt(e,"shrink","negative")+e;case 5292:return Yt+e+vn+Nt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+Nt(e,"-grow","")+Yt+e+vn+Nt(e,"grow","positive")+e;case 4554:return Yt+Nt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return Nt(Nt(Nt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return Nt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Nt(Nt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+vn+"flex-pack:$3"),/space-between/,"justify")+Yt+e+e;case 4200:if(!_r(e,/flex-|baseline/))return vn+"grid-column-align"+hi(e,t)+e;break;case 2592:case 3360:return vn+Nt(e,"template-","")+e;case 4384:case 3616:return o&&o.some(function(r,i){return t=i,_r(r.props,/grid-\w+-end/)})?~eg(e+(o=o[t].value),"span")?e:vn+Nt(e,"-start","")+e+vn+"grid-row-span:"+(~eg(o,"span")?_r(o,/\d+/):+_r(o,/\d+/)-+_r(e,/\d+/))+";":vn+Nt(e,"-start","")+e;case 4896:case 4128:return o&&o.some(function(r){return _r(r.props,/grid-\w+-start/)})?e:vn+Nt(Nt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Nt(e,/(.+)-inline(.+)/,Yt+"$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(tr(e)-1-t>6)switch(_n(e,t+1)){case 109:if(_n(e,t+4)!==45)break;case 102:return Nt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+Wl+(_n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~eg(e,"stretch")?iw(Nt(e,"stretch","fill-available"),t,o)+e:e}break;case 5152:case 5920:return Nt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,l,u,f,p,m){return vn+i+":"+l+m+(u?vn+i+"-span:"+(f?p:+p-+l)+m:"")+e});case 4949:if(_n(e,t+6)===121)return Nt(e,":",":"+Yt)+e;break;case 6444:switch(_n(e,_n(e,14)===45?18:11)){case 120:return Nt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yt+(_n(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+vn+"$2box$3")+e;case 100:return Nt(e,":",":"+vn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Nt(e,"scroll-","scroll-snap-")+e}return e}function ec(e,t){for(var o="",r=0;r<e.length;r++)o+=t(e[r],r,e,t)||"";return o}function wS(e,t,o,r){switch(e.type){case x4:if(e.children.length)break;case v4:case y4:case h0:return e.return=e.return||e.value;case tw:return"";case nw:return e.return=e.value+"{"+ec(e.children,r)+"}";case g0:if(!tr(e.value=e.props.join(",")))return""}return tr(o=ec(e.children,r))?e.return=e.value+"{"+o+"}":""}function I4(e){var t=rw(e);return function(o,r,i,l){for(var u="",f=0;f<t;f++)u+=e[f](o,r,i,l)||"";return u}}function P4(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case h0:e.return=iw(e.value,e.length,o);return;case nw:return ec([Ea(e,{value:Nt(e.value,"@","@"+Yt)})],r);case g0:if(e.length)return $4(o=e.props,function(i){switch(_r(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ji(Ea(e,{props:[Nt(i,/:(read-\w+)/,":"+Wl+"$1")]})),Ji(Ea(e,{props:[i]})),Qg(e,{props:SS(o,r)});break;case"::placeholder":Ji(Ea(e,{props:[Nt(i,/:(plac\w+)/,":"+Yt+"input-$1")]})),Ji(Ea(e,{props:[Nt(i,/:(plac\w+)/,":"+Wl+"$1")]})),Ji(Ea(e,{props:[Nt(i,/:(plac\w+)/,vn+"input-$1")]})),Ji(Ea(e,{props:[i]})),Qg(e,{props:SS(o,r)});break}return""})}}const NS="data-ant-cssinjs-cache-path",sw="_FILE_STYLE__";let di,lw=!0;function j4(){if(!di&&(di={},zo())){const e=document.createElement("div");e.className=NS,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[i,l]=r.split(":");di[i]=l});const o=document.querySelector(`style[${NS}]`);o&&(lw=!1,o.parentNode?.removeChild(o)),document.body.removeChild(e)}}function B4(e){return j4(),!!di[e]}function _4(e){const t=di[e];let o=null;if(t&&zo())if(lw)o=sw;else{const r=document.querySelector(`style[${Lr}="${di[e]}"]`);r?o=r.innerHTML:delete di[e]}return[o,t]}const H4="_skip_check_",cw="_multi_value_";function ng(e,t){return(t?ec(CS(e),I4([P4,wS])):ec(CS(e),wS)).replace(/\{%%%\:[^;];}/g,";")}function D4(e){return typeof e=="object"&&e&&(H4 in e||cw in e)}function RS(e,t,o="high"){if(!t)return e;const r=JE({hashCls:t,hashPriority:o});return e.split(",").map(l=>{const u=l.trim().split(/\s+/);let f=u[0]||"";const p=f.match(/^\w+/)?.[0]||"";return f=`${p}${r}${f.slice(p.length)}`,[f,...u.slice(1)].join(" ")}).join(",")}const Jg=(e,t={},{root:o,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:u,path:f,hashPriority:p,transformers:m=[],linters:g=[]}=t;let b="",v={};function x(R){const E=R.getName(l);if(!v[E]){const[N]=Jg(R.style,t,{root:!1,parentSelectors:i});v[E]=`@keyframes ${R.getName(l)}${N}`}}function C(R,E=[]){return R.forEach(N=>{Array.isArray(N)?C(N,E):N&&E.push(N)}),E}return C(Array.isArray(e)?e:[e]).forEach(R=>{const E=typeof R=="string"&&!o?{}:R;if(typeof E=="string")b+=`${E}
|
|
38
|
-
`;else if(E._keyframe)x(E);else{const N=m.reduce(($,w)=>w?.visit?.($)||$,E);Object.keys(N).forEach($=>{const w=N[$];if(typeof w=="object"&&w&&($!=="animationName"||!w._keyframe)&&!D4(w)){let T=!1,z=$.trim(),A=!1;(o||r)&&l?z.startsWith("@")?T=!0:z==="&"?z=RS("",l,p):z=RS($,l,p):o&&!l&&(z==="&"||z==="")&&(z="",A=!0);const[P,B]=Jg(w,t,{root:A,injectHash:T,parentSelectors:[...i,z]});v={...v,...B},b+=`${z}${P}`}else{let T=function(A,P){const B=A.replace(/[A-Z]/g,I=>`-${I.toLowerCase()}`);let D=P;!b4[A]&&typeof D=="number"&&D!==0&&(D=`${D}px`),A==="animationName"&&P?._keyframe&&(x(P),D=P.getName(l)),b+=`${B}:${D};`};const z=w?.value??w;typeof w=="object"&&w?.[cw]&&Array.isArray(z)?z.forEach(A=>{T($,A)}):i4(z)&&T($,z)}})}}),o?u&&(b&&(b=`@layer ${u.name} {${b}}`),u.dependencies&&(v[`@layer ${u.name}`]=u.dependencies.map(R=>`@layer ${R}, ${u.name};`).join(`
|
|
39
|
-
`))):b=`{${b}}`,[b,v]};function uw(e,t){return Zl(`${e.join("%")}${t}`)}const L4="style";function eh(e,t){const{path:o,hashId:r,layer:i,nonce:l,clientOnly:u,order:f=0}=e,{mock:p,hashPriority:m,container:g,transformers:b,linters:v,cache:x,layer:C,autoPrefix:S}=c.useContext(fc),R=[r||""];C&&R.push("layer"),R.push(...o);let E=Kg;p0(L4,R,()=>{const N=R.join("|");if(B4(N)){const[P,B]=_4(N);if(P)return[P,B,{},u,f]}const $=t(),[w,T]=Jg($,{hashId:r,hashPriority:m,layer:C?i:void 0,path:o.join("-"),transformers:b,linters:v}),z=ng(w,S||!1),A=uw(R,z);return[z,A,T,u,f]},(N,$)=>{const[,w]=N;$&&Kg&&Kl(w,{mark:Lr,attachTo:g})},N=>{const[$,w,T,,z]=N;if(E&&$!==sw){let A={mark:Lr,prepend:C?!1:"queue",attachTo:g,priority:z};A=m0(A,l);const P=[],B=[];Object.keys(T).forEach(I=>{I.startsWith("@layer")?P.push(I):B.push(I)}),P.forEach(I=>{ci(ng(T[I],S||!1),`_layer-${I}`,{...A,prepend:!0})});const D=ci($,w,A);D[ui]=x.instanceId,B.forEach(I=>{ci(ng(T[I],S||!1),`_effect-${I}`,A)})}})}const V4="cssVar",F4=(e,t)=>{const{key:o,prefix:r,unitless:i,ignore:l,token:u,hashId:f,scope:p,nonce:m}=e,{cache:{instanceId:g},container:b,hashPriority:v}=c.useContext(fc),{_tokenKey:x}=u,C=Array.isArray(p)?p.join("@@"):p,S=[...e.path,o,C,x];return p0(V4,S,()=>{const E=t(),[N,$]=ew(E,o,{prefix:r,unitless:i,ignore:l,scope:p,hashPriority:v,hashCls:f}),w=uw(S,$);return[N,$,w,o]},([,,E])=>{Kg&&Kl(E,{mark:Lr,attachTo:b})},([,E,N])=>{if(!E)return;let $={mark:Lr,prepend:"queue",attachTo:b,priority:-999};$=m0($,m);const w=ci(E,N,$);w[ui]=g,w.setAttribute(f0,o)})};class Ct{name;style;constructor(t,o){this.name=t,this.style=o}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function es(e){return e.notSplit=!0,e}es(["borderTop","borderBottom"]),es(["borderTop"]),es(["borderBottom"]),es(["borderLeft","borderRight"]),es(["borderLeft"]),es(["borderRight"]);function rr(e){"@babel/helpers - typeof";return rr=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},rr(e)}function q4(e){if(Array.isArray(e))return e}function U4(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r,i,l,u,f=[],p=!0,m=!1;try{if(l=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;p=!1}else for(;!(p=(r=l.call(o)).done)&&(f.push(r.value),f.length!==t);p=!0);}catch(g){m=!0,i=g}finally{try{if(!p&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(m)throw i}}return f}}function W4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dw(e,t){return q4(e)||U4(e,t)||QE(e,t)||W4()}function G4(e,t){if(rr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(rr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fw(e){var t=G4(e,"string");return rr(t)=="symbol"?t:t+""}function fr(e,t,o){return(t=fw(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function MS(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function go(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?MS(Object(o),!0).forEach(function(r){fr(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):MS(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X4(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fw(r.key),r)}}function pc(e,t,o){return t&&X4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function th(e,t){return th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},th(e,t)}function mw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&th(e,t)}function Ss(e){return Ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ss(e)}function b0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b0=function(){return!!e})()}function pw(e,t){if(t&&(rr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pd(e)}function k4(e){var t=b0();return function(){var o,r=Ss(e);if(t){var i=Ss(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return pw(this,o)}}var Y4=pc(function e(){mc(this,e)}),gw="CALC_UNIT",K4=new RegExp(gw,"g");function og(e){return typeof e=="number"?"".concat(e).concat(gw):e}var Q4=(function(e){mw(o,e);var t=k4(o);function o(r,i){var l;mc(this,o),l=t.call(this),fr(Pd(l),"result",""),fr(Pd(l),"unitlessCssVar",void 0),fr(Pd(l),"lowPriority",void 0);var u=rr(r);return l.unitlessCssVar=i,r instanceof o?l.result="(".concat(r.result,")"):u==="number"?l.result=og(r):u==="string"&&(l.result=r),l}return pc(o,[{key:"add",value:function(i){return i instanceof o?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(og(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof o?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(og(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof o?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof o?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var l=this,u=i||{},f=u.unit,p=!0;return typeof f=="boolean"?p=f:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(p=!1),this.result=this.result.replace(K4,p?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),o})(Y4),Z4=function(t,o){var r=Q4;return function(i){return new r(i,o)}},TS=function(t,o){return"".concat([o,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function OS(e,t,o,r){var i=go({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(f){var p=dw(f,2),m=p[0],g=p[1];if(i!=null&&i[m]||i!=null&&i[g]){var b;(b=i[g])!==null&&b!==void 0||(i[g]=i?.[m])}})}var u=go(go({},o),i);return Object.keys(u).forEach(function(f){u[f]===t[f]&&delete u[f]}),u}var hw=typeof CSSINJS_STATISTIC<"u",nh=!0;function Gt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!hw)return Object.assign.apply(Object,[{}].concat(t));nh=!1;var r={};return t.forEach(function(i){if(rr(i)==="object"){var l=Object.keys(i);l.forEach(function(u){Object.defineProperty(r,u,{configurable:!0,enumerable:!0,get:function(){return i[u]}})})}}),nh=!0,r}var zS={};function J4(){}var e6=function(t){var o,r=t,i=J4;return hw&&typeof Proxy<"u"&&(o=new Set,r=new Proxy(t,{get:function(u,f){if(nh){var p;(p=o)===null||p===void 0||p.add(f)}return u[f]}}),i=function(u,f){var p;zS[u]={global:Array.from(o),component:go(go({},(p=zS[u])===null||p===void 0?void 0:p.component),f)}}),{token:r,keys:o,flush:i}};function AS(e,t,o){if(typeof o=="function"){var r;return o(Gt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return o??{}}function t6(e){return{max:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return"max(".concat(r.map(function(l){return re(l)}).join(","),")")},min:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return"min(".concat(r.map(function(l){return re(l)}).join(","),")")}}}var n6=1e3*60*10,o6=(function(){function e(){mc(this,e),fr(this,"map",new Map),fr(this,"objectIDMap",new WeakMap),fr(this,"nextID",0),fr(this,"lastAccessBeat",new Map),fr(this,"accessBeat",0)}return pc(e,[{key:"set",value:function(o,r){this.clear();var i=this.getCompositeKey(o);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(o){var r=this.getCompositeKey(o),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(o){var r=this,i=o.map(function(l){return l&&rr(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(rr(l),"_").concat(l)});return i.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var r=this.nextID;return this.objectIDMap.set(o,r),this.nextID+=1,r}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,l){r-i>n6&&(o.map.delete(l),o.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),IS=new o6;function r6(e,t){return ce.useMemo(function(){var o=IS.get(t);if(o)return o;var r=e();return IS.set(t,r),r},t)}var a6=function(){return{}};function i6(e){var t=e.useCSP,o=t===void 0?a6:t,r=e.useToken,i=e.usePrefix,l=e.getResetStyles,u=e.getCommonStyle,f=e.getCompUnitless;function p(v,x,C,S){var R=Array.isArray(v)?v[0]:v;function E(P){return"".concat(String(R)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var N=S?.unitless||{},$=typeof f=="function"?f(v):{},w=go(go({},$),{},fr({},E("zIndexPopup"),!0));Object.keys(N).forEach(function(P){w[E(P)]=N[P]});var T=go(go({},S),{},{unitless:w,prefixToken:E}),z=g(v,x,C,T),A=m(R,C,T);return function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,D=z(P,B),I=S?.extraCssVarPrefixCls,H=typeof I=="function"?I({prefixCls:P,rootCls:B}):I,X=A(H!=null&&H.length?[B].concat(ho(H)):B);return[D,X]}}function m(v,x,C){var S=C.unitless,R=C.prefixToken,E=C.ignore;return function(N){var $=r(),w=$.cssVar,T=$.realToken,z=o();return F4({path:[v],prefix:w.prefix,key:w.key,unitless:S,ignore:E,token:T,scope:N,nonce:function(){return z.nonce}},function(){var A=AS(v,T,x),P=OS(v,T,A,{deprecatedTokens:C?.deprecatedTokens});return A&&Object.keys(A).forEach(function(B){P[R(B)]=P[B],delete P[B]}),P}),w?.key}}function g(v,x,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},R=Array.isArray(v)?v:[v,v],E=dw(R,1),N=E[0],$=R.join("-"),w=e.layer||{name:"antd"};return function(T){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,A=r(),P=A.theme,B=A.realToken,D=A.hashId,I=A.token,H=A.cssVar,X=A.zeroRuntime,Z=c.useMemo(function(){return X},[]);if(Z)return D;var U=i(),L=U.rootPrefixCls,q=U.iconPrefixCls,F=o(),J="css",Q=r6(function(){var K=new Set;return Object.keys(S.unitless||{}).forEach(function(te){K.add(zd(te,H.prefix)),K.add(zd(te,TS(N,H.prefix)))}),Z4(J,K)},[J,N,H?.prefix]),j=t6(),V=j.max,k=j.min,G={theme:P,token:I,hashId:D,nonce:function(){return F.nonce},clientOnly:S.clientOnly,layer:w,order:S.order||-999};return typeof l=="function"&&eh(go(go({},G),{},{clientOnly:!1,path:["Shared",L]}),function(){return l(I,{prefix:{rootPrefixCls:L,iconPrefixCls:q},csp:F})}),eh(go(go({},G),{},{path:[$,T,q]}),function(){if(S.injectStyle===!1)return[];var K=e6(I),te=K.token,Y=K.flush,ie=AS(N,B,C),se=".".concat(T),ae=OS(N,B,ie,{deprecatedTokens:S.deprecatedTokens});ie&&rr(ie)==="object"&&Object.keys(ie).forEach(function(he){ie[he]="var(".concat(zd(he,TS(N,H.prefix)),")")});var me=Gt(te,{componentCls:se,prefixCls:T,iconCls:".".concat(q),antCls:".".concat(L),calc:Q,max:V,min:k},ie),ne=x(me,{hashId:D,prefixCls:T,rootPrefixCls:L,iconPrefixCls:q});Y(N,ae);var ue=typeof u=="function"?u(me,T,z,S.resetFont):null;return[S.resetStyle===!1?null:ue,ne]}),D}}function b(v,x,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},R=g(v,x,C,go({resetStyle:!1,order:-998},S)),E=function($){var w=$.prefixCls,T=$.rootCls,z=T===void 0?w:T;return R(w,z),null};return E}return{genStyleHooks:p,genSubStyleComponent:b,genComponentStyleHook:g}}const Aa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function jd(e){return(e+8)/e}function s6(e){const t=Array.from({length:10}).map((o,r)=>{const i=r-1,l=e*Math.E**(i/5),u=r>1?Math.floor(l):Math.ceil(l);return Math.floor(u/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:jd(o)}))}const l6="6.5.2",bw={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"},tc={...bw,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
41
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
42
|
-
'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},c6={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Vn=Math.round;function rg(e,t){const o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=o.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,o[i]||"",i);return o[3]?r[3]=o[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const PS=(e,t,o)=>o===0?e:e/100;function Al(e,t){const o=t||255;return e>o?o:e<0?0:e}class En{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function o(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(l){return r.startsWith(l)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const l=c6[r.toLowerCase()];l&&this.fromHexString(parseInt(l,36).toString(16).padStart(6,"0"))}}else if(t instanceof En)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(o("rgb"))this.r=Al(t.r),this.g=Al(t.g),this.b=Al(t.b),this.a=typeof t.a=="number"?Al(t.a,1):1;else if(o("hsl"))this.fromHsl(t);else if(o("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 o=this.toHsv();return o.h=t,this._c(o)}getLuminance(){function t(l){const u=l/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const o=t(this.r),r=t(this.g),i=t(this.b);return .2126*o+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Vn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"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 o=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*o-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 o=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:o,s:r,l:i,a:this.a})}lighten(t=10){const o=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:o,s:r,l:i,a:this.a})}mix(t,o=50){const r=this._c(t),i=o/100,l=f=>(r[f]-this[f])*i+this[f],u={r:Vn(l("r")),g:Vn(l("g")),b:Vn(l("b")),a:Vn(l("a")*100)/100};return this._c(u)}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 o=this._c(t),r=this.a+o.a*(1-this.a),i=l=>Vn((this[l]*this.a+o[l]*o.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 o=(this.r||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Vn(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),o=Vn(this.getHSLSaturation()*100),r=Vn(this.getLightness()*100);return this.a!==1?`hsla(${t},${o}%,${r}%,${this.a})`:`hsl(${t},${o}%,${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,o,r){const i=this.clone();return i[t]=Al(o,r),i}_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 o=t.replace("#","");function r(i,l){return parseInt(o[i]+o[l||i],16)}o.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=o[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=o[6]?r(6,7)/255:1)}fromHsl({h:t,s:o,l:r,a:i}){const l=(t%360+360)%360;if(this._h=l,this._hsl_s=o,this._l=r,this.a=typeof i=="number"?i:1,o<=0){const x=Vn(r*255);this.r=x,this.g=x,this.b=x;return}let u=0,f=0,p=0;const m=l/60,g=(1-Math.abs(2*r-1))*o,b=g*(1-Math.abs(m%2-1));m>=0&&m<1?(u=g,f=b):m>=1&&m<2?(u=b,f=g):m>=2&&m<3?(f=g,p=b):m>=3&&m<4?(f=b,p=g):m>=4&&m<5?(u=b,p=g):m>=5&&m<6&&(u=g,p=b);const v=r-g/2;this.r=Vn((u+v)*255),this.g=Vn((f+v)*255),this.b=Vn((p+v)*255)}fromHsv({h:t,s:o,v:r,a:i}){const l=(t%360+360)%360;this._h=l,this._hsv_s=o,this._v=r,this.a=typeof i=="number"?i:1;const u=Vn(r*255);if(this.r=u,this.g=u,this.b=u,o<=0)return;const f=l/60,p=Math.floor(f),m=f-p,g=Vn(r*(1-o)*255),b=Vn(r*(1-o*m)*255),v=Vn(r*(1-o*(1-m))*255);switch(p){case 0:this.g=v,this.b=g;break;case 1:this.r=b,this.b=g;break;case 2:this.r=g,this.b=v;break;case 3:this.r=g,this.g=b;break;case 4:this.r=v,this.g=g;break;default:this.g=g,this.b=b;break}}fromHsvString(t){const o=rg(t,PS);this.fromHsv({h:o[0],s:o[1],v:o[2],a:o[3]})}fromHslString(t){const o=rg(t,PS);this.fromHsl({h:o[0],s:o[1],l:o[2],a:o[3]})}fromRgbString(t){const o=rg(t,(r,i)=>i.includes("%")?Vn(r/100*255):r);this.r=o[0],this.g=o[1],this.b=o[2],this.a=o[3]}}const _u=2,jS=.16,u6=.05,d6=.05,f6=.15,vw=5,yw=4,m6=[{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 BS(e,t,o){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=o?Math.round(e.h)-_u*t:Math.round(e.h)+_u*t:r=o?Math.round(e.h)+_u*t:Math.round(e.h)-_u*t,r<0?r+=360:r>=360&&(r-=360),r}function _S(e,t,o){if(e.h===0&&e.s===0)return e.s;let r;return o?r=e.s-jS*t:t===yw?r=e.s+jS:r=e.s+u6*t,r>1&&(r=1),o&&t===vw&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function HS(e,t,o){let r;return o?r=e.v+d6*t:r=e.v-f6*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xw(e,t={}){const o=[],r=new En(e),i=r.toHsv();for(let l=vw;l>0;l-=1){const u=new En({h:BS(i,l,!0),s:_S(i,l,!0),v:HS(i,l,!0)});o.push(u)}o.push(r);for(let l=1;l<=yw;l+=1){const u=new En({h:BS(i,l),s:_S(i,l),v:HS(i,l)});o.push(u)}return t.theme==="dark"?m6.map(({index:l,amount:u})=>new En(t.backgroundColor||"#141414").mix(o[l],u).toHexString()):o.map(l=>l.toHexString())}const bs={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"},oh=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];oh.primary=oh[5];const rh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];rh.primary=rh[5];const ah=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ah.primary=ah[5];const ih=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ih.primary=ih[5];const sh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sh.primary=sh[5];const lh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lh.primary=lh[5];const ch=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ch.primary=ch[5];const uh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];uh.primary=uh[5];const dh=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dh.primary=dh[5];const fh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];fh.primary=fh[5];const mh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];mh.primary=mh[5];const ph=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ph.primary=ph[5];const gh=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];gh.primary=gh[5];const ag={red:oh,volcano:rh,orange:ah,gold:ih,yellow:sh,lime:lh,green:ch,cyan:uh,blue:dh,geekblue:fh,purple:mh,magenta:ph,grey:gh};function p6(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:u,colorPrimary:f,colorBgBase:p,colorTextBase:m}=e,g=t(f),b=t(r),v=t(i),x=t(l),C=t(u),S=o(p,m),R=e.colorLink||e.colorInfo,E=t(R),N=new En(x[1]).mix(new En(x[3]),50).toHexString(),$={};return Aa.forEach(w=>{const T=e[w];if(T){const z=t(T);$[`${w}Hover`]=z[5],$[`${w}Active`]=z[7]}}),{...S,colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:b[1],colorSuccessBgHover:b[2],colorSuccessBorder:b[3],colorSuccessBorderHover:b[4],colorSuccessHover:b[4],colorSuccess:b[6],colorSuccessActive:b[7],colorSuccessTextHover:b[8],colorSuccessText:b[9],colorSuccessTextActive:b[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBgFilledHover:N,colorErrorBgActive:x[3],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],...$,colorBgMask:new En("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const g6=e=>{let t=e,o=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:i}};function h6(e){const{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:i+1,...g6(r)}}const b6=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},v6=e=>{const t=s6(e),o=t.map(g=>g.size),r=t.map(g=>g.lineHeight),i=o[1],l=o[0],u=o[2],f=r[1],p=r[0],m=r[2];return{fontSizeSM:l,fontSize:i,fontSizeLG:u,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:f,lineHeightLG:m,lineHeightSM:p,fontHeight:Math.round(f*i),fontHeightLG:Math.round(m*u),fontHeightSM:Math.round(p*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function y6(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}const qo=(e,t)=>new En(e).setA(t).toRgbString(),ts=(e,t)=>new En(e).darken(t).toHexString(),x6=e=>{const t=xw(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]}},S6=(e,t,o)=>{const r=e||"#fff",i=t||"#000";return{colorBgBase:r,colorTextBase:i,colorShadow:o||"#000",colorText:qo(i,.88),colorTextSecondary:qo(i,.65),colorTextTertiary:qo(i,.45),colorTextQuaternary:qo(i,.25),colorFill:qo(i,.15),colorFillSecondary:qo(i,.06),colorFillTertiary:qo(i,.04),colorFillQuaternary:qo(i,.02),colorBgSolid:qo(i,1),colorBgSolidHover:qo(i,.75),colorBgSolidActive:qo(i,.95),colorBgLayout:ts(r,4),colorBgContainer:ts(r,0),colorBgElevated:ts(r,0),colorBgSpotlight:qo(i,.85),colorBgBlur:"transparent",colorBorder:ts(r,15),colorBorderDisabled:ts(r,15),colorBorderSecondary:ts(r,6)}};function C6(e){bs.pink=bs.magenta,ag.pink=ag.magenta;const t=Object.keys(bw).map(o=>{const r=e[o]===bs[o]?ag[o]:xw(e[o]);return Array.from({length:10},()=>1).reduce((i,l,u)=>(i[`${o}-${u+1}`]=r[u],i[`${o}${u+1}`]=r[u],i),{})}).reduce((o,r)=>(o={...o,...r},o),{});return{...e,...t,...p6(e,{generateColorPalettes:x6,generateNeutralColorPalettes:S6}),...v6(e.fontSize),...y6(e),...b6(e),...h6(e)}}const Sw=Yg(C6),hh={token:tc,override:{override:tc},hashed:!0},Cw=ce.createContext(hh);function ig(e){return e>=0&&e<=255}function Dl(e,t){const{r:o,g:r,b:i,a:l}=new En(e).toRgb();if(l<1)return e;const{r:u,g:f,b:p}=new En(t).toRgb();for(let m=.01;m<=1;m+=.01){const g=Math.round((o-u*(1-m))/m),b=Math.round((r-f*(1-m))/m),v=Math.round((i-p*(1-m))/m);if(ig(g)&&ig(b)&&ig(v))return new En({r:g,g:b,b:v,a:Math.round(m*100)/100}).toRgbString()}return new En({r:o,g:r,b:i,a:1}).toRgbString()}function $6(e){const{override:t,...o}=e,r={...t};Object.keys(tc).forEach(R=>{delete r[R]});const i={...o,...r},l=new En(i.colorShadow),u=l.a,f=R=>l.clone().setA(u*R).toRgbString(),p=480,m=576,g=768,b=992,v=1200,x=1600,C=1920;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Dl(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Dl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Dl(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Dl(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
43
|
-
0 6px 16px 0 ${f(.08)},
|
|
44
|
-
0 3px 6px -4px ${f(.12)},
|
|
45
|
-
0 9px 28px 8px ${f(.05)}
|
|
46
|
-
`,boxShadowSecondary:`
|
|
47
|
-
0 6px 16px 0 ${f(.08)},
|
|
48
|
-
0 3px 6px -4px ${f(.12)},
|
|
49
|
-
0 9px 28px 8px ${f(.05)}
|
|
50
|
-
`,boxShadowTertiary:`
|
|
51
|
-
0 1px 2px 0 ${f(.05)},
|
|
52
|
-
0 1px 6px -1px ${f(.03)},
|
|
53
|
-
0 2px 4px 0 ${f(.03)}
|
|
54
|
-
`,screenXS:p,screenXSMin:p,screenXSMax:m-1,screenSM:m,screenSMMin:m,screenSMMax:g-1,screenMD:g,screenMDMin:g,screenMDMax:b-1,screenLG:b,screenLGMin:b,screenLGMax:v-1,screenXL:v,screenXLMin:v,screenXLMax:x-1,screenXXL:x,screenXXLMin:x,screenXXLMax:C-1,screenXXXL:C,screenXXXLMin:C,boxShadowPopoverArrow:`2px 2px 5px ${f(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${f(.08)}) drop-shadow(0 3px 6px ${f(.12)}) drop-shadow(0 9px 28px ${f(.05)})`,boxShadowCard:`
|
|
55
|
-
0 1px 2px -2px ${f(.16)},
|
|
56
|
-
0 3px 6px 0 ${f(.12)},
|
|
57
|
-
0 5px 12px 4px ${f(.09)}
|
|
58
|
-
`,boxShadowDrawerRight:`
|
|
59
|
-
-6px 0 16px 0 ${f(.08)},
|
|
60
|
-
-3px 0 6px -4px ${f(.12)},
|
|
61
|
-
-9px 0 28px 8px ${f(.05)}
|
|
62
|
-
`,boxShadowDrawerLeft:`
|
|
63
|
-
6px 0 16px 0 ${f(.08)},
|
|
64
|
-
3px 0 6px -4px ${f(.12)},
|
|
65
|
-
9px 0 28px 8px ${f(.05)}
|
|
66
|
-
`,boxShadowDrawerUp:`
|
|
67
|
-
0 6px 16px 0 ${f(.08)},
|
|
68
|
-
0 3px 6px -4px ${f(.12)},
|
|
69
|
-
0 9px 28px 8px ${f(.05)}
|
|
70
|
-
`,boxShadowDrawerDown:`
|
|
71
|
-
0 -6px 16px 0 ${f(.08)},
|
|
72
|
-
0 -3px 6px -4px ${f(.12)},
|
|
73
|
-
0 -9px 28px 8px ${f(.05)}
|
|
74
|
-
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${f(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${f(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${f(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${f(.08)}`,...r}}const $w={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},E6={motionBase:!0,motionUnit:!0},w6={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Ew=(e,t,o)=>{const r=o.getDerivativeToken(e),{override:i,...l}=t;let u={...r,override:i};return u=$6(u),l&&Object.entries(l).forEach(([f,p])=>{const{theme:m,...g}=p;let b=g;m&&(b=Ew({...u,...g},{override:g},m)),u[f]=b}),u};function Ko(){const{token:e,hashed:t,theme:o,override:r,cssVar:i,zeroRuntime:l}=ce.useContext(Cw),{csp:u,getPrefixCls:f}=ce.useContext(St),p={prefix:i?.prefix??f(),key:i?.key??"css-var-root"},m=`${l6}-${t||""}`,g=o||Sw,[b,v,x]=h4(g,[tc,e],{salt:m,override:r,getComputedToken:Ew,cssVar:{...p,unitless:$w,ignore:E6,preserve:w6},nonce:u?.nonce});return[g,x,t?v:"",b,p,!!l]}const ar={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dn=(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}),hf=()=>({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"}}),N6=new Ct("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),bi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Os=(e,t)=>({outline:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),Fr=(e,t)=>({"&:focus-visible":Os(e,t)}),R6=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},...Fr(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),M6=(e,t,o,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,l=o?`.${o}`:i,u={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let f={};return r!==!1&&(f={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...f,...u,[i]:u}}},ww=e=>({[`.${e}`]:{...hf(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:N6,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),{genStyleHooks:Qt,genComponentStyleHook:T6,genSubStyleComponent:bf}=i6({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(St);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,o,r,i,l]=Ko();return{theme:e,realToken:t,hashId:o,token:r,cssVar:i,zeroRuntime:l}},useCSP:()=>{const{csp:e}=c.useContext(St);return e??{}},getResetStyles:(e,t)=>{const o=R6(e);return[o,{"&":o},ww(t?.prefix.iconPrefixCls??d0)]},getCommonStyle:M6,getCompUnitless:()=>$w}),Vt=(e,t)=>{const o=`--${e.replace(/\./g,"")}-${t}-`;return[l=>`${o}${l}`,(l,u)=>u?`var(${o}${l}, ${u})`:`var(${o}${l})`]};function v0(e,t){return Aa.reduce((o,r)=>{const i=e[`${r}1`],l=e[`${r}3`],u=e[`${r}6`],f=e[`${r}7`];return{...o,...t(r,{lightColor:i,lightBorderColor:l,darkColor:u,textColor:f})}},{})}const O6=(e,t)=>(Ko(),eh({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>ww(e)));var Hu={},DS;function z6(){if(DS)return Hu;DS=1,Object.defineProperty(Hu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return Hu.default=e,Hu}var A6=z6();const I6=Xt(A6),y0=c.createContext({}),LS="data-rc-order",VS="data-rc-priority",P6="rc-util-key",bh=new Map;function Nw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function j6(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}function Rw({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:P6}function x0(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function B6(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function S0(e){return Array.from((bh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Mw(e,t={}){if(!Nw())return null;const{csp:o,prepend:r,priority:i=0}=t,l=B6(r),u=l==="prependQueue",f=document.createElement("style");f.setAttribute(LS,l),u&&i&&f.setAttribute(VS,`${i}`),o?.nonce&&(f.nonce=o.nonce),f.innerHTML=e;const p=x0(t),{firstChild:m}=p;if(r){if(u){const g=(t.styles||S0(p)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(LS)))return!1;const v=Number(b.getAttribute(VS)||0);return i>=v});if(g.length)return p.insertBefore(f,g[g.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function _6(e,t={}){let{styles:o}=t;return o||=S0(x0(t)),o.find(r=>r.getAttribute(Rw(t))===e)}function H6(e,t){const o=bh.get(e);if(!o||!j6(document,o)){const r=Mw("",t);if(!r)return;const{parentNode:i}=r;bh.set(e,i),e.removeChild(r)}}function D6(e,t,o={}){if(!Nw())return null;const r=x0(o),i=S0(r),l={...o,styles:i};H6(r,l);const u=_6(t,l);if(u)return l.csp?.nonce&&u.nonce!==l.csp.nonce&&(u.nonce=l.csp.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;const f=Mw(e,l);return f?.setAttribute(Rw(l),t),f}function L6(e){return e?.getRootNode?.()}function V6(e){const t=L6(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const FS={};function F6(e,t){e||FS[t]||(FS[t]=!0)}function q6(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function U6(e,t){F6(e,`[@ant-design/icons] ${t}`)}function qS(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function US(e={}){return Object.keys(e).reduce((t,o)=>{const r=e[o];return o==="class"?(t.className=r,delete t.class):(delete t[o],t[q6(o)]=r),t},{})}function vh(e,t,o){return o?ce.createElement(e.tag,{key:t,...US(e.attrs),...o},(e.children||[]).map((r,i)=>vh(r,`${t}-${e.tag}-${i}`))):ce.createElement(e.tag,{key:t,...US(e.attrs)},(e.children||[]).map((r,i)=>vh(r,`${t}-${e.tag}-${i}`)))}const W6=`
|
|
75
|
-
.anticon {
|
|
76
|
-
display: inline-flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
color: inherit;
|
|
79
|
-
font-style: normal;
|
|
80
|
-
line-height: 0;
|
|
81
|
-
text-align: center;
|
|
82
|
-
text-transform: none;
|
|
83
|
-
vertical-align: -0.125em;
|
|
84
|
-
text-rendering: optimizeLegibility;
|
|
85
|
-
-webkit-font-smoothing: antialiased;
|
|
86
|
-
-moz-osx-font-smoothing: grayscale;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.anticon > * {
|
|
90
|
-
line-height: 1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.anticon svg {
|
|
94
|
-
display: inline-block;
|
|
95
|
-
vertical-align: inherit;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.anticon::before {
|
|
99
|
-
display: none;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.anticon .anticon-icon {
|
|
103
|
-
display: block;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.anticon[tabindex] {
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.anticon-spin {
|
|
111
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
112
|
-
animation: loadingCircle 1s infinite linear;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@-webkit-keyframes loadingCircle {
|
|
116
|
-
100% {
|
|
117
|
-
-webkit-transform: rotate(360deg);
|
|
118
|
-
transform: rotate(360deg);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@keyframes loadingCircle {
|
|
123
|
-
100% {
|
|
124
|
-
-webkit-transform: rotate(360deg);
|
|
125
|
-
transform: rotate(360deg);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
`,G6=e=>{const{csp:t,prefixCls:o,layer:r,zeroRuntime:i}=c.useContext(y0);let l=W6;o&&(l=l.replace(/anticon/g,o)),r&&(l=`@layer ${r} {
|
|
129
|
-
${l}
|
|
130
|
-
}`),c.useEffect(()=>{if(i)return;const u=e.current,f=V6(u);D6(l,"@ant-design-icons",{prepend:!r,csp:t,attachTo:f})},[])},Tw=e=>{const{icon:t,className:o,onClick:r,style:i,primaryColor:l,secondaryColor:u,...f}=e,p=c.useRef(null);if(G6(p),U6(qS(t),`icon should be icon definiton, but got ${t}`),!qS(t))return null;const m=t;return vh(m.icon,`svg-${m.name}`,{className:o,onClick:r,style:i,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...f,ref:p})};Tw.displayName="IconReact";function yh(){return yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},yh.apply(this,arguments)}const Zt=c.forwardRef((e,t)=>{const{className:o,icon:r,spin:i,rotate:l,tabIndex:u,onClick:f,twoToneColor:p,...m}=e,{prefixCls:g="anticon",rootClassName:b}=c.useContext(y0),v=W(b,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!i||r.name==="loading"},o);let x=u;x===void 0&&f&&(x=-1);const C=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0;return c.createElement("span",yh({role:"img","aria-label":r.name},m,{ref:t,tabIndex:x,onClick:f,className:v}),c.createElement(Tw,{icon:r,style:C}))});function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},xh.apply(this,arguments)}const X6=(e,t)=>c.createElement(Zt,xh({},e,{ref:t,icon:I6})),gc=c.forwardRef(X6);var Du={},WS;function k6(){if(WS)return Du;WS=1,Object.defineProperty(Du,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};return Du.default=e,Du}var Y6=k6();const K6=Xt(Y6);function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Sh.apply(this,arguments)}const Q6=(e,t)=>c.createElement(Zt,Sh({},e,{ref:t,icon:K6})),yi=c.forwardRef(Q6);var Lu={},GS;function Z6(){if(GS)return Lu;GS=1,Object.defineProperty(Lu,"__esModule",{value:!0});var e={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"};return Lu.default=e,Lu}var J6=Z6();const ez=Xt(J6);function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ch.apply(this,arguments)}const tz=(e,t)=>c.createElement(Zt,Ch({},e,{ref:t,icon:ez})),br=c.forwardRef(tz);var Vu={},XS;function nz(){if(XS)return Vu;XS=1,Object.defineProperty(Vu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return Vu.default=e,Vu}var oz=nz();const rz=Xt(oz);function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},$h.apply(this,arguments)}const az=(e,t)=>c.createElement(Zt,$h({},e,{ref:t,icon:rz})),vf=c.forwardRef(az);var Fu={},kS;function iz(){if(kS)return Fu;kS=1,Object.defineProperty(Fu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 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"};return Fu.default=e,Fu}var sz=iz();const lz=Xt(sz);function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Eh.apply(this,arguments)}const cz=(e,t)=>c.createElement(Zt,Eh({},e,{ref:t,icon:lz})),yf=c.forwardRef(cz),Ow=c.createContext({}),uz=e=>{const{children:t,...o}=e,r=c.useMemo(()=>({motion:o.motion}),[o.motion]);return c.createElement(Ow.Provider,{value:r},t)},dr="none",qu="appear",Uu="enter",Wu="leave",YS="none",nr="prepare",oi="start",ri="active",C0="end",zw="prepared";function KS(e,t){const o={};return o[e.toLowerCase()]=t.toLowerCase(),o[`Webkit${e}`]=`webkit${t}`,o[`Moz${e}`]=`moz${t}`,o[`ms${e}`]=`MS${t}`,o[`O${e}`]=`o${t.toLowerCase()}`,o}function dz(e,t){const o={animationend:KS("Animation","AnimationEnd"),transitionend:KS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete o.animationend.animation,"TransitionEvent"in t||delete o.transitionend.transition),o}const fz=dz(zo(),typeof window<"u"?window:{});let Aw={};zo()&&({style:Aw}=document.createElement("div"));const Gu={};function Iw(e){if(Gu[e])return Gu[e];const t=fz[e];if(t){const o=Object.keys(t),r=o.length;for(let i=0;i<r;i+=1){const l=o[i];if(Object.prototype.hasOwnProperty.call(t,l)&&l in Aw)return Gu[e]=t[l],Gu[e]}}return""}const Pw=Iw("animationend"),jw=Iw("transitionend"),mz=!!(Pw&&jw),QS=Pw||"animationend",ZS=jw||"transitionend";function JS(e,t){if(!e)return null;if(typeof e=="object"){const o=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[o]}return`${e}-${t}`}const pz=(e=>{const t=c.useRef();function o(i){i&&(i.removeEventListener(ZS,e),i.removeEventListener(QS,e))}function r(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(ZS,e),i.addEventListener(QS,e),t.current=i)}return c.useEffect(()=>()=>{o(t.current),t.current=null},[]),[r,o]}),Bw=zo()?c.useLayoutEffect:c.useEffect,gz=(()=>{const e=c.useRef(null);function t(){Lt.cancel(e.current)}function o(r,i=2){t();const l=Lt(()=>{i<=1?r({isCanceled:()=>l!==e.current}):o(r,i-1)});e.current=l}return c.useEffect(()=>()=>{t()},[]),[o,t]}),hz=[nr,oi,ri,C0],bz=[nr,zw],_w=!1,vz=!0;function Hw(e){return e===ri||e===C0}const yz=((e,t,o)=>{const[r,i]=IE(YS),[l,u]=gz();function f(){i(nr,!0)}const p=t?bz:hz;return Bw(()=>{if(r!==YS&&r!==C0){const m=p.indexOf(r),g=p[m+1],b=o(r);b===_w?i(g,!0):g&&l(v=>{function x(){v.isCanceled()||i(g,!0)}b===!0?x():Promise.resolve(b).then(x)})}},[e,r]),c.useEffect(()=>()=>{u()},[]),[f,r]});function xz(e,t,o,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:l=!0,motionDeadline:u,motionLeaveImmediately:f,onAppearPrepare:p,onEnterPrepare:m,onLeavePrepare:g,onAppearStart:b,onEnterStart:v,onLeaveStart:x,onAppearActive:C,onEnterActive:S,onLeaveActive:R,onAppearEnd:E,onEnterEnd:N,onLeaveEnd:$,onVisibleChanged:w}){const[T,z]=c.useState(),[A,P]=KT(dr),[B,D]=c.useState([null,null]),I=A(),H=c.useRef(!1),X=c.useRef(null);function Z(){return o()}const U=c.useRef(!1);function L(){P(dr),D([null,null])}const q=pt(ie=>{const se=A();if(se===dr)return;const ae=Z();if(ie&&!ie.deadline&&ie.target!==ae)return;const me=U.current;let ne;se===qu&&me?ne=E?.(ae,ie):se===Uu&&me?ne=N?.(ae,ie):se===Wu&&me&&(ne=$?.(ae,ie)),me&&ne!==!1&&L()}),[F]=pz(q),J=ie=>{switch(ie){case qu:return{[nr]:p,[oi]:b,[ri]:C};case Uu:return{[nr]:m,[oi]:v,[ri]:S};case Wu:return{[nr]:g,[oi]:x,[ri]:R};default:return{}}},Q=c.useMemo(()=>J(I),[I]),[j,V]=yz(I,!e,ie=>{if(ie===nr){const se=Q[nr];return se?se(Z()):_w}return ie in Q&&D([Q[ie]?.(Z(),null)||null,ie]),ie===ri&&I!==dr&&(F(Z()),u>0&&(clearTimeout(X.current),X.current=setTimeout(()=>{q({deadline:!0})},u))),ie===zw&&L(),vz}),k=Hw(V);U.current=k;const G=c.useRef(null);Bw(()=>{if(H.current&&G.current===t)return;z(t);const ie=H.current;H.current=!0;let se;!ie&&t&&i&&(se=qu),ie&&t&&r&&(se=Uu),(ie&&!t&&l||!ie&&f&&!t&&l)&&(se=Wu);const ae=J(se);se&&(e||ae[nr])?(P(se),j()):P(dr),G.current=t},[t]),c.useEffect(()=>{(I===qu&&!i||I===Uu&&!r||I===Wu&&!l)&&P(dr)},[i,r,l]),c.useEffect(()=>()=>{H.current=!1,clearTimeout(X.current)},[]);const K=c.useRef(!1);c.useEffect(()=>{T&&(K.current=!0),T!==void 0&&I===dr&&((K.current||T)&&w?.(T),K.current=!0)},[T,I]);let te=B[0];Q[nr]&&V===oi&&(te={transition:"none",...te});const Y=B[1];return[A,V,te,T??t,!H.current&&I===dr&&e&&i?"NONE":V===oi||V===ri?Y===V:!0]}function Dw(e){return e?.length<2}function Sz(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function o(i,l){return!!(i.motionName&&t&&l!==!1)}const r=c.forwardRef((i,l)=>{const{visible:u=!0,removeOnLeave:f=!0,forceRender:p,children:m,motionName:g,leavedClassName:b,eventProps:v}=i,{motion:x}=c.useContext(Ow),C=o(i,x),S=c.useRef();function R(){return pi(S.current)}const[E,N,$,w,T]=xz(C,u,R,i),z=E(),A=c.useRef(w);w&&(A.current=!0);const P=c.useMemo(()=>{const I={};return Object.defineProperties(I,{nativeElement:{enumerable:!0,get:R},inMotion:{enumerable:!0,get:()=>()=>E()!==dr},enableMotion:{enumerable:!0,get:()=>()=>C}}),I},[]);c.useImperativeHandle(l,()=>P,[]);const B=c.useRef(0);T&&(B.current+=1);const D=c.useMemo(()=>{if(T==="NONE")return null;let I;const H={...v,visible:u};if(!m)I=null;else if(z===dr)w?I=m({...H},S):!f&&A.current&&b?I=m({...H,className:b},S):p||!f&&!b?I=m({...H,style:{display:"none"}},S):I=null;else{let X;N===nr?X="prepare":Hw(N)?X="active":N===oi&&(X="start");const Z=JS(g,`${z}-${X}`);I=m({...H,className:W(JS(g,z),{[Z]:Z&&X,[g]:typeof g=="string"}),style:$},S)}return I},[B.current]);if(Dw(m)&&rO(D)){const I=vi(D);if(I!==S)return c.cloneElement(D,{ref:oo(I,S)})}return D});return r.displayName="CSSMotion",r}const no=Sz(mz),wh="add",Nh="keep",Rh="remove",sg="removed";function Cz(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Mh(e=[]){return e.map(Cz)}function $z(e=[],t=[]){let o=[],r=0;const i=t.length,l=Mh(e),u=Mh(t);l.forEach(m=>{let g=!1;for(let b=r;b<i;b+=1){const v=u[b];if(v.key===m.key){r<b&&(o=o.concat(u.slice(r,b).map(x=>({...x,status:wh}))),r=b),o.push({...v,status:Nh}),r+=1,g=!0;break}}g||o.push({...m,status:Rh})}),r<i&&(o=o.concat(u.slice(r).map(m=>({...m,status:wh}))));const f={};return o.forEach(({key:m})=>{f[m]=(f[m]||0)+1}),Object.keys(f).filter(m=>f[m]>1).forEach(m=>{o=o.filter(({key:g,status:b})=>g!==m||b!==Rh),o.forEach(g=>{g.key===m&&(g.status=Nh)})}),o}function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Th.apply(this,arguments)}const Ez=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function wz(e,t=no){class o extends c.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:l}){const u=Mh(i);return{keyEntities:$z(l,u).filter(p=>{const m=l.find(({key:g})=>p.key===g);return!(m&&m.status===sg&&p.status===Rh)})}}removeKey=i=>{this.setState(l=>({keyEntities:l.keyEntities.map(f=>f.key!==i?f:{...f,status:sg})}),()=>{const{keyEntities:l}=this.state;l.filter(({status:f})=>f!==sg).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:i}=this.state,{component:l,children:u,onVisibleChanged:f,onAllRemoved:p,...m}=this.props,g=l||c.Fragment,b={};return Ez.forEach(v=>{b[v]=m[v],delete m[v]}),delete m.keys,c.createElement(g,m,i.map(({status:v,...x},C)=>{const S=v===wh||v===Nh;return c.createElement(t,Th({},b,{key:x.key,visible:S,eventProps:x,onVisibleChanged:R=>{f?.(R,{key:x.key}),R||this.removeKey(x.key)}}),Dw(u)?R=>u({...R,index:C}):(R,E)=>u({...R,index:C},E))}))}}return o}const Nz=wz(),Kn=e=>e!=null,hr=e=>Kn(e)&&e!==!1&&e!=="",ko=e=>typeof e=="number"&&!Number.isNaN(e),Oa=e=>typeof e=="string",Wt=e=>e!==null&&typeof e=="object",mn=e=>typeof e=="function",lg=e=>Kn(e)&&mn(e.then),Lw=e=>Wt(e)&&"propertyName"in e&&Oa(e.propertyName),Oh=(e,t)=>{const o={...e};return Object.keys(t).forEach(r=>{t[r]._default?o[r]||(o[r]={}):o[r]=Oh(o[r],t[r])}),o},Vw=(e={},...t)=>t.filter(o=>!!o).reduce((o,r)=>(Object.keys(r).forEach(i=>{const l=e[i],u=r[i];if(l)if(Wt(u))o[i]=Vw(l,o[i],u);else{const{_default:f}=l;f&&(o[i]=o[i]||{},o[i][f]=W(o[i][f],u))}else o[i]=W(o[i],u)}),o),{}),Rz=(e,...t)=>c.useMemo(()=>Vw.apply(void 0,[e].concat(t)),[e].concat(t)),Mz=(...e)=>e.filter(t=>!!t).reduce((t,o={})=>(Object.keys(o).forEach(r=>{t[r]={...t[r],...o[r]}}),t),{}),Tz=(...e)=>c.useMemo(()=>Mz.apply(void 0,e),[].concat(e)),pn=e=>c.useMemo(()=>e?{root:e}:void 0,[e]),Cs=(e,t)=>mn(e)?e(t):e,dn=(e,t,o,r)=>{const i=e.map(p=>p?Cs(p,o):void 0),l=t.map(p=>p?Cs(p,o):void 0),u=Rz.apply(void 0,[r].concat(ho(i))),f=Tz.apply(void 0,ho(l));return c.useMemo(()=>r?[Oh(u,r),Oh(f,r)]:[u,f],[u,f,r])},Xu=(e,t,o)=>({background:e,[`${o}-icon`]:{color:t}}),Oz=e=>{const{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:i,fontSize:l,fontSizeLG:u,lineHeight:f,borderRadiusLG:p,motionEaseInOutCirc:m,withDescriptionIconSize:g,colorText:b,colorTextHeading:v,withDescriptionPadding:x,defaultPadding:C,lineWidth:S,lineType:R,colorSuccessBorder:E,colorWarningBorder:N,colorErrorBorder:$,colorInfoBorder:w}=e;return{[t]:{...Dn(e),position:"relative",display:"flex",alignItems:"center",padding:C,wordWrap:"break-word",borderRadius:p,borderWidth:re(S),borderStyle:R,[`&${t}-success`]:{borderColor:E},[`&${t}-info`]:{borderColor:w},[`&${t}-warning`]:{borderColor:N},[`&${t}-error`]:{borderColor:$},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:f},"&-title":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(T=>`${T} ${o} ${m}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:x,[`${t}-icon`]:{marginInlineEnd:i,fontSize:g,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:v,fontSize:u},[`${t}-description`]:{display:"block",color:b}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},zz=e=>{const{componentCls:t,colorSuccess:o,colorSuccessBg:r,colorWarning:i,colorWarningBg:l,colorError:u,colorErrorBg:f,colorInfo:p,colorInfoBg:m}=e;return{[t]:{"&-success":Xu(r,o,t),"&-info":Xu(m,p,t),"&-warning":Xu(l,i,t),"&-error":{...Xu(f,u,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},Az=e=>{const{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:i,fontSizeIcon:l,colorIcon:u,colorIconHover:f}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:l,lineHeight:re(l),backgroundColor:"transparent",border:"none",cursor:"pointer",...Fr(e),[`${o}-close`]:{color:u,transition:`color ${r}`,"&:hover":{color:f}}},"&-close-text":{color:u,transition:`color ${r}`,"&:hover":{color:f}}}}},Iz=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Pz=Qt("Alert",e=>[Oz(e),zz(e),Az(e)],Iz),jz=e=>{const{icon:t,type:o,className:r,style:i,successIcon:l,infoIcon:u,warningIcon:f,errorIcon:p}=e,m={success:l??c.createElement(gc,null),info:u??c.createElement(yf,null),error:p??c.createElement(yi,null),warning:f??c.createElement(vf,null)};return c.createElement("span",{className:r,style:i},t??m[o])},Bz=e=>{const{isClosable:t,prefixCls:o,closeIcon:r,handleClose:i,ariaProps:l,className:u,style:f}=e,p=r===!0||r===void 0?c.createElement(br,null):r;return t?c.createElement("button",{type:"button",onClick:i,className:W(`${o}-close-icon`,u),tabIndex:0,style:f,...l},p):null},Fw=c.forwardRef((e,t)=>{const{description:o,prefixCls:r,message:i,title:l,banner:u,className:f,rootClassName:p,style:m,onMouseEnter:g,onMouseLeave:b,onClick:v,afterClose:x,showIcon:C,closable:S,closeText:R,closeIcon:E,action:N,id:$,styles:w,classNames:T,...z}=e,A=l??i,[P,B]=c.useState(!1),D=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:D.current}));const{getPrefixCls:I,direction:H,variant:X,closable:Z,closeIcon:U,className:L,style:q,classNames:F,styles:J,successIcon:Q,infoIcon:j,warningIcon:V,errorIcon:k}=Kt("alert"),G=I("alert",r),[K,te]=Pz(G),{onClose:Y,afterClose:ie}=Wt(S)?S:{},se=Te=>{B(!0),(Y??e.onClose)?.(Te)},ae=c.useMemo(()=>e.type!==void 0?e.type:u?"warning":"info",[e.type,u]),me=e.variant??X??"outlined",ne=c.useMemo(()=>Wt(S)&&S.closeIcon||R?!0:typeof S=="boolean"?S:E!==!1&&Kn(E)?!0:!!Z,[R,E,S,Z]),ue=u&&C===void 0?!0:C,he={...e,prefixCls:G,variant:me,type:ae,showIcon:ue,closable:ne},ge=pn(q),Se=pn(m),[$e,ye]=dn([F,T],[J,ge,w,Se],{props:he}),xe=W(G,`${G}-${ae}`,`${G}-${me}`,{[`${G}-with-description`]:!!o,[`${G}-no-icon`]:!ue,[`${G}-banner`]:!!u,[`${G}-rtl`]:H==="rtl"},L,f,p,$e.root,te,K),Ce=Qn(z,{aria:!0,data:!0}),we=c.useMemo(()=>Wt(S)&&S.closeIcon?S.closeIcon:R||(E!==void 0?E:Wt(Z)&&Z.closeIcon?Z.closeIcon:U),[E,S,Z,R,U]),Be=c.useMemo(()=>{const Te=S??Z;return Wt(Te)?Qn(Te,{data:!0,aria:!0}):{}},[S,Z]);return c.createElement(no,{visible:!P,motionName:`${G}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Te=>({maxHeight:Te.offsetHeight}),onLeaveEnd:ie??x},({className:Te,style:He},nt)=>c.createElement("div",{id:$,ref:oo(D,nt),"data-show":!P,className:W(xe,Te),style:{...ye.root,...He},onMouseEnter:g,onMouseLeave:b,onClick:v,role:"alert",...Ce},ue?c.createElement(jz,{className:W(`${G}-icon`,$e.icon),style:ye.icon,description:o,icon:e.icon,prefixCls:G,type:ae,successIcon:Q,infoIcon:j,warningIcon:V,errorIcon:k}):null,c.createElement("div",{className:W(`${G}-section`,$e.section),style:ye.section},A?c.createElement("div",{className:W(`${G}-title`,$e.title),style:ye.title},A):null,o?c.createElement("div",{className:W(`${G}-description`,$e.description),style:ye.description},o):null),N?c.createElement("div",{className:W(`${G}-actions`,$e.actions),style:ye.actions},N):null,c.createElement(Bz,{className:$e.close,style:ye.close,isClosable:ne,prefixCls:G,closeIcon:we,handleClose:se,ariaProps:Be})))});function _z(e,t,o){return t=Ss(t),pw(e,b0()?Reflect.construct(t,o||[],Ss(e).constructor):t.apply(e,o))}let Hz=(function(e){function t(){var o;return mc(this,t),o=_z(this,t,arguments),o.state={error:void 0,info:{}},o}return mw(t,e),pc(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,title:i,description:l,id:u,children:f}=this.props,{error:p,info:m}=this.state,g=i??r,b=m?.componentStack||null,v=Kn(g)?g:p?.toString(),x=Kn(l)?l:b;return p?c.createElement(Fw,{id:u,type:"error",title:v,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},x)}):f}}])})(c.PureComponent);const qw=Fw;qw.ErrorBoundary=Hz;const vr=e=>`${e}-css-var`,Dz=c.createContext(void 0),Lz={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"},Vz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Fz={...Vz,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",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"},Uw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},eC={lang:{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"],...Fz},timePickerLocale:{...Uw}},wo="${label} is not a valid ${type}",Ia={locale:"en",Pagination:Lz,DatePicker:eC,TimePicker:Uw,Calendar:eC,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},string:{len:"${label} 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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Bd={...Ia.Modal},_d=[];const tC=()=>_d.reduce((e,t)=>({...e,...t}),Ia.Modal);function qz(e){if(e){const t={...e};return _d.push(t),Bd=tC(),()=>{_d=_d.filter(o=>o!==t),Bd=tC()}}Bd={...Ia.Modal}}function Uz(){return Bd}const $0=c.createContext(void 0),Pa=(e,t)=>{const o=c.useContext($0),r=c.useMemo(()=>{const l=t||Ia[e],u=o?.[e]??{};return{...mn(l)?l():l,...u||{}}},[e,t,o]),i=c.useMemo(()=>{const l=o?.locale;return o?.exist&&!l?Ia.locale:l},[o]);return[r,i]},Wz="internalMark",Gz=e=>{const{locale:t={},children:o,_ANT_MARK__:r}=e;c.useEffect(()=>qz(t?.Modal),[t]);const i=c.useMemo(()=>({...t,exist:!0}),[t]);return c.createElement($0.Provider,{value:i},o)},Ww=c.createContext(null);let Xz=!1;function kz(e){return Xz}const nC=[];function Yz(e,t){const[o]=c.useState(()=>zo()?document.createElement("div"):null),r=c.useRef(!1),i=c.useContext(Ww),[l,u]=c.useState(nC),f=i||(r.current?void 0:g=>{u(b=>[g,...b])});function p(){o.parentElement||document.body.appendChild(o),r.current=!0}function m(){o.parentElement?.removeChild(o),r.current=!1}return un(()=>(e?i?i(p):p():m(),m),[e]),un(()=>{l.length&&(l.forEach(g=>g()),u(nC))},[l]),[o,f]}function Kz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Qz=`rc-util-locker-${Date.now()}`;let oC=0;function Zz(e){const t=!!e,[o]=c.useState(()=>(oC+=1,`${Qz}_${oC}`));un(()=>{if(t){const r=pO(document.body).width,i=Kz();ci(`
|
|
131
|
-
html body {
|
|
132
|
-
overflow-y: hidden;
|
|
133
|
-
${i?`width: calc(100% - ${r}px);`:""}
|
|
134
|
-
}`,o)}else Kl(o);return()=>{Kl(o)}},[t,o])}let ii=[];const Jz=200;let Gw=0;const Xw=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Gw<Jz)return;const o=ii.length;for(let r=o-1;r>=0;r-=1)ii[r].onEsc({top:r===o-1,event:e})}},kw=()=>{Gw=Date.now()};function e3(){window.addEventListener("keydown",Xw),window.addEventListener("compositionend",kw)}function t3(){ii.length===0&&(window.removeEventListener("keydown",Xw),window.removeEventListener("compositionend",kw))}function n3(e,t){const o=Xr(),r=pt(t),i=()=>{ii.find(u=>u.id===o)||ii.push({id:o,onEsc:r})},l=()=>{ii=ii.filter(u=>u.id!==o)};c.useMemo(()=>{e?i():e||l()},[e]),c.useEffect(()=>{if(e)return i(),e3(),()=>{l(),t3()}},[e])}const rC=e=>e===!1?!1:!zo()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,hc=c.forwardRef((e,t)=>{const{open:o,autoLock:r,getContainer:i,debug:l,autoDestroy:u=!0,children:f,onEsc:p}=e,[m,g]=c.useState(o),b=m||o;c.useEffect(()=>{(u||o)&&g(o)},[o,u]);const[v,x]=c.useState(()=>rC(i));c.useEffect(()=>{const T=rC(i);x(()=>T??null)});const[C,S]=Yz(b&&!v),R=v??C;Zz(r&&o&&zo()&&(R===C||R===document.body)),n3(o,p);let E=null;f&&Ms(f)&&t&&(E=vi(f));const N=kr(E,t);if(!b||!zo()||v===void 0)return null;const $=R===!1||kz();let w=f;return t&&(w=c.cloneElement(f,{ref:N})),c.createElement(Ww.Provider,{value:S},$?w:gi.createPortal(w,R))});function o3(e){const{prefixCls:t,align:o,arrow:r,arrowPos:i}=e,{className:l,content:u,style:f}=r||{},{x:p=0,y:m=0}=i,g=c.useRef(null);if(!o||!o.points)return null;const b={position:"absolute"};if(o.autoArrow!==!1){const v=o.points[0],x=o.points[1],C=v[0],S=v[1],R=x[0],E=x[1];C===R||!["t","b"].includes(C)?b.top=m:C==="t"?b.top=0:b.bottom=0,S===E||!["l","r"].includes(S)?b.left=p:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:g,className:W(`${t}-arrow`,l),style:{...b,...f}},u)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},zh.apply(this,arguments)}function r3(e){const{prefixCls:t,open:o,zIndex:r,mask:i,motion:l,mobile:u}=e;return i?c.createElement(no,zh({},l,{motionAppear:!0,visible:o,removeOnLeave:!0}),({className:f})=>c.createElement("div",{style:{zIndex:r},className:W(`${t}-mask`,u&&`${t}-mobile-mask`,f)})):null}const a3=c.memo(({children:e})=>e,(e,t)=>t.cache);function Yw(e,t,o,r,i,l,u,f){const p="auto",m=e?{}:{left:"-1000vw",top:"-1000vh",right:p,bottom:p};if(!e&&(t||!o)){const{points:g}=r,b=r.dynamicInset||r._experimental?.dynamicInset,v=b&&g[0][1]==="r",x=b&&g[0][0]==="b";v?(m.right=i,m.left=p):(m.left=u,m.right=p),x?(m.bottom=l,m.top=p):(m.top=f,m.bottom=p)}return m}function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ah.apply(this,arguments)}const Kw=c.forwardRef((e,t)=>{const{onEsc:o,popup:r,className:i,prefixCls:l,style:u,target:f,onVisibleChanged:p,open:m,keepDom:g,fresh:b,onClick:v,mask:x,arrow:C,arrowPos:S,align:R,motion:E,maskMotion:N,mobile:$,forceRender:w,getPopupContainer:T,autoDestroy:z,portal:A,children:P,zIndex:B,onMouseEnter:D,onMouseLeave:I,onPointerEnter:H,onPointerDownCapture:X,ready:Z,offsetX:U,offsetY:L,offsetR:q,offsetB:F,onAlign:J,onPrepare:Q,onResize:j,stretch:V,targetWidth:k,targetHeight:G}=e,K=typeof r=="function"?r():r,te=m||g,Y=!!$,[ie,se,ae]=c.useMemo(()=>$?[$.mask,$.maskMotion,$.motion]:[x,N,E],[$,x,N,E]),me=T?.length>0,[ne,ue]=c.useState(!T||!me);un(()=>{!ne&&me&&f&&ue(!0)},[ne,me,f]);const he=pt(($e,ye)=>{j?.($e,ye),J()}),ge=Yw(Y,Z,m,R,q,F,U,L);if(!ne)return null;const Se={};return V&&(V.includes("height")&&G?Se.height=G:V.includes("minHeight")&&G&&(Se.minHeight=G),V.includes("width")&&k?Se.width=k:V.includes("minWidth")&&k&&(Se.minWidth=k)),m||(Se.pointerEvents="none"),c.createElement(A,{open:w||te,getContainer:T&&(()=>T(f)),autoDestroy:z,onEsc:o},c.createElement(r3,{prefixCls:l,open:m,zIndex:B,mask:ie,motion:se,mobile:Y}),c.createElement(gr,{onResize:he,disabled:!m},$e=>c.createElement(no,Ah({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${l}-hidden`},ae,{onAppearPrepare:Q,onEnterPrepare:Q,visible:m,onVisibleChanged:ye=>{E?.onVisibleChanged?.(ye),p(ye)}}),({className:ye,style:xe},Ce)=>{const we=W(l,ye,i,{[`${l}-mobile`]:Y});return c.createElement("div",{ref:oo($e,t,Ce),className:we,style:{"--arrow-x":`${S.x||0}px`,"--arrow-y":`${S.y||0}px`,...ge,...Se,...xe,boxSizing:"border-box",zIndex:B,...u},onMouseEnter:D,onMouseLeave:I,onPointerEnter:H,onClick:v,onPointerDownCapture:X},C&&c.createElement(o3,{prefixCls:l,arrow:C,arrowPos:S,align:R}),c.createElement(a3,{cache:!m&&!b},K))})),P)}),Xd=c.createContext(null),Qw=c.createContext(null);function aC(e){return e?Array.isArray(e)?e:[e]:[]}function i3(e,t,o){return c.useMemo(()=>{const r=aC(t??e),i=aC(o??e),l=new Set(r),u=new Set(i);return l.has("hover")&&!l.has("click")&&l.add("touch"),u.has("hover")&&!u.has("click")&&u.add("touch"),[l,u]},[e,t,o])}function s3(e=[],t=[],o){const r=(i,l)=>i[l]||"";return o?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Zw(e,t,o,r){const{points:i}=o,l=Object.keys(e);for(let u=0;u<l.length;u+=1){const f=l[u];if(s3(e[f]?.points,i,r))return`${t}-placement-${f}`}return""}function bc(e){return e.ownerDocument.defaultView}function Ih(e){const t=[];let o=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;o;){const{overflowX:i,overflowY:l,overflow:u}=bc(o).getComputedStyle(o);[i,l,u].some(f=>r.includes(f))&&t.push(o),o=o.parentElement}return t}function nc(e,t=1){return Number.isNaN(e)?t:e}function Il(e){return nc(parseFloat(e),0)}function iC(e,t){const o={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:l,borderTopWidth:u,borderBottomWidth:f,borderLeftWidth:p,borderRightWidth:m}=bc(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:b,clientHeight:v,offsetWidth:x,clientWidth:C}=r,S=Il(u),R=Il(f),E=Il(p),N=Il(m),$=nc(Math.round(g.width/x*1e3)/1e3),w=nc(Math.round(g.height/b*1e3)/1e3),T=(x-C-E-N)*$,z=(b-v-S-R)*w,A=S*w,P=R*w,B=E*$,D=N*$;let I=0,H=0;if(i==="clip"){const q=Il(l);I=q*$,H=q*w}const X=g.x+B-I,Z=g.y+A-H,U=X+g.width+2*I-B-D-T,L=Z+g.height+2*H-A-P-z;o.left=Math.max(o.left,X),o.top=Math.max(o.top,Z),o.right=Math.min(o.right,U),o.bottom=Math.min(o.bottom,L)}),o}function sC(e,t=0){const o=`${t}`,r=o.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(o)}function lC(e,t){const[o,r]=t||[];return[sC(e.width,o),sC(e.height,r)]}function cC(e=""){return[e[0],e[1]]}function ns(e,t){const o=t[0],r=t[1];let i,l;return o==="t"?l=e.y:o==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:l}}function $a(e,t){const o={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=o[e[t]]||"c",r}function uC(e){return e.join("")}function Jw(e,t,o,r,i,l,u,f){const[p,m]=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),g=c.useRef(0),b=c.useMemo(()=>!t||f?[]:Ih(t),[t]),v=c.useRef({});e||(v.current={});const C=pt(()=>{if(t&&o&&e&&!f){let ze=function(gt,Mn,wn=Se){const Zn=U.x+gt,Tn=U.y+Mn,_a=Zn+K,Si=Tn+G,Yr=Math.max(Zn,wn.left),Hs=Math.max(Tn,wn.top),Kr=Math.min(_a,wn.right),Ds=Math.min(Si,wn.bottom);return Math.max(0,(Kr-Yr)*(Ds-Hs))},Ve=function(){Ne=U.y+Qe,Ae=Ne+G,ve=U.x+Oe,je=ve+K};const E=t,N=E.ownerDocument,$=bc(E),{position:w}=$.getComputedStyle(E),T=E.style.left,z=E.style.top,A=E.style.right,P=E.style.bottom,B=E.style.overflow,D=E.style.overflowX,I=E.style.overflowY,H={...i[r],...l},X=N.createElement("div");E.parentElement?.appendChild(X),X.style.left=`${E.offsetLeft}px`,X.style.top=`${E.offsetTop}px`,X.style.position=w,X.style.height=`${E.offsetHeight}px`,X.style.width=`${E.offsetWidth}px`,E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";let Z;if(Array.isArray(o))Z={x:o[0],y:o[1],width:0,height:0};else{const gt=o.getBoundingClientRect();gt.x=gt.x??gt.left,gt.y=gt.y??gt.top,Z={x:gt.x,y:gt.y,width:gt.width,height:gt.height}}const U=E.getBoundingClientRect(),{height:L,width:q}=$.getComputedStyle(E);U.x=U.x??U.left,U.y=U.y??U.top;const{clientWidth:F,clientHeight:J,scrollWidth:Q,scrollHeight:j,scrollTop:V,scrollLeft:k}=N.documentElement,G=U.height,K=U.width,te=Z.height,Y=Z.width,ie={left:0,top:0,right:F,bottom:J},se={left:-k,top:-V,right:Q-k,bottom:j-V};let{htmlRegion:ae}=H;const me="visible",ne="visibleFirst";ae!=="scroll"&&ae!==ne&&(ae=me);const ue=ae===ne,he=iC(se,b),ge=iC(ie,b),Se=ae===me?ge:he,$e=ue?ge:Se;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";const ye=E.getBoundingClientRect();E.style.left=T,E.style.top=z,E.style.right=A,E.style.bottom=P,E.style.overflow=B,E.style.overflowX=D,E.style.overflowY=I,E.parentElement?.removeChild(X);const xe=nc(Math.round(K/parseFloat(q)*1e3)/1e3),Ce=nc(Math.round(G/parseFloat(L)*1e3)/1e3);if(xe===0||Ce===0||ys(o)&&!s0(o))return;const{offset:we,targetOffset:Be}=H;let[Te,He]=lC(U,we);const[nt,Ke]=lC(Z,Be);Z.x-=nt,Z.y-=Ke;const[Fe,qe]=H.points||[],Je=cC(qe),Ue=cC(Fe),Pe=ns(Z,Je),_e=ns(U,Ue),Xe={...H};let De=[Ue,Je],Oe=Pe.x-_e.x+Te,Qe=Pe.y-_e.y+He;const Ie=ze(Oe,Qe),We=ze(Oe,Qe,ge),Ye=ns(Z,["t","l"]),rt=ns(U,["t","l"]),ct=ns(Z,["b","r"]),it=ns(U,["b","r"]),yt=H.overflow||{},{adjustX:Et,adjustY:Tt,shiftX:et,shiftY:Ot}=yt,Le=gt=>typeof gt=="boolean"?gt:gt>=0;let Ne,Ae,ve,je;Ve();const Ze=Le(Tt),ft=Ue[0]===Je[0];if(Ze&&Ue[0]==="t"&&(Ae>$e.bottom||v.current.bt)){let gt=Qe;ft?gt-=G-te:gt=Ye.y-it.y-He;const Mn=ze(Oe,gt),wn=ze(Oe,gt,ge);Mn>Ie||Mn===Ie&&(!ue||wn>=We)?(v.current.bt=!0,Qe=gt,He=-He,De=[$a(De[0],0),$a(De[1],0)]):v.current.bt=!1}if(Ze&&Ue[0]==="b"&&(Ne<$e.top||v.current.tb)){let gt=Qe;ft?gt+=G-te:gt=ct.y-rt.y-He;const Mn=ze(Oe,gt),wn=ze(Oe,gt,ge);Mn>Ie||Mn===Ie&&(!ue||wn>=We)?(v.current.tb=!0,Qe=gt,He=-He,De=[$a(De[0],0),$a(De[1],0)]):v.current.tb=!1}const Jt=Le(Et),Rt=Ue[1]===Je[1];if(Jt&&Ue[1]==="l"&&(je>$e.right||v.current.rl)){let gt=Oe;Rt?gt-=K-Y:gt=Ye.x-it.x-Te;const Mn=ze(gt,Qe),wn=ze(gt,Qe,ge);Mn>Ie||Mn===Ie&&(!ue||wn>=We)?(v.current.rl=!0,Oe=gt,Te=-Te,De=[$a(De[0],1),$a(De[1],1)]):v.current.rl=!1}if(Jt&&Ue[1]==="r"&&(ve<$e.left||v.current.lr)){let gt=Oe;Rt?gt+=K-Y:gt=ct.x-rt.x-Te;const Mn=ze(gt,Qe),wn=ze(gt,Qe,ge);Mn>Ie||Mn===Ie&&(!ue||wn>=We)?(v.current.lr=!0,Oe=gt,Te=-Te,De=[$a(De[0],1),$a(De[1],1)]):v.current.lr=!1}Xe.points=[uC(De[0]),uC(De[1])],Ve();const mt=et===!0?0:et;typeof mt=="number"&&(ve<ge.left&&(Oe-=ve-ge.left-Te,Z.x+Y<ge.left+mt&&(Oe+=Z.x-ge.left+Y-mt)),je>ge.right&&(Oe-=je-ge.right-Te,Z.x>ge.right-mt&&(Oe+=Z.x-ge.right+mt)));const Mt=Ot===!0?0:Ot;typeof Mt=="number"&&(Ne<ge.top&&(Qe-=Ne-ge.top-He,Z.y+te<ge.top+Mt&&(Qe+=Z.y-ge.top+te-Mt)),Ae>ge.bottom&&(Qe-=Ae-ge.bottom-He,Z.y>ge.bottom-Mt&&(Qe+=Z.y-ge.bottom+Mt)));const on=U.x+Oe,ut=on+K,bt=U.y+Qe,$t=bt+G,Ge=Z.x,lt=Ge+Y,_t=Z.y,en=_t+te,wt=Math.max(on,Ge),Ft=Math.min(ut,lt),Ht=(wt+Ft)/2-on,ro=Math.max(bt,_t),yr=Math.min($t,en),ao=(ro+yr)/2-bt;u?.(t,Xe);let Qo=ye.right-U.x-(Oe+U.width),Po=ye.bottom-U.y-(Qe+U.height);xe===1&&(Oe=Math.floor(Oe),Qo=Math.floor(Qo)),Ce===1&&(Qe=Math.floor(Qe),Po=Math.floor(Po));const Gn={ready:!0,offsetX:Oe/xe,offsetY:Qe/Ce,offsetR:Qo/xe,offsetB:Po/Ce,arrowX:Ht/xe,arrowY:ao/Ce,scaleX:xe,scaleY:Ce,align:Xe};m(Gn)}}),S=()=>{g.current+=1;const E=g.current;Promise.resolve().then(()=>{g.current===E&&C()})},R=()=>{m(E=>({...E,ready:!1}))};return un(R,[r]),un(()=>{e||R()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,S]}function e2(){const e=c.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},o=(r,i)=>{t(),i===0?r():e.current=setTimeout(()=>{r()},i*1e3)};return c.useEffect(()=>()=>{t()},[]),o}function l3(e,t,o,r,i){un(()=>{if(e&&t&&o){let b=function(){r(),i()};const l=t,u=o,f=Ih(l),p=Ih(u),m=bc(u),g=new Set([m,...f,...p]);return g.forEach(v=>{v.addEventListener("scroll",b,{passive:!0})}),m.addEventListener("resize",b,{passive:!0}),r(),()=>{g.forEach(v=>{v.removeEventListener("scroll",b),m.removeEventListener("resize",b)})}}},[e,t,o])}function c3(e,t,o,r,i,l,u,f){const p=c.useRef(e);p.current=e;const m=c.useRef(!1);c.useEffect(()=>{if(t&&r&&(!i||l)){const b=()=>{m.current=!1},v=S=>{p.current&&!u(S.composedPath?.()?.[0]||S.target)&&!m.current&&f(!1)},x=bc(r);x.addEventListener("pointerdown",b,!0),x.addEventListener("mousedown",v,!0),x.addEventListener("contextmenu",v,!0);const C=qg(o);return C&&(C.addEventListener("mousedown",v,!0),C.addEventListener("contextmenu",v,!0)),()=>{x.removeEventListener("pointerdown",b,!0),x.removeEventListener("mousedown",v,!0),x.removeEventListener("contextmenu",v,!0),C&&(C.removeEventListener("mousedown",v,!0),C.removeEventListener("contextmenu",v,!0))}}},[t,o,r,i,l]);function g(){m.current=!0}return g}function u3(){const[e,t]=ce.useState(null),[o,r]=ce.useState(!1),[i,l]=ce.useState(!1),u=ce.useRef(null),f=pt(m=>{m===!1?(u.current=null,r(!1)):i&&o?u.current=m:(r(!0),t(m),u.current=null,o||l(!0))}),p=pt(m=>{m?(l(!1),u.current&&(t(u.current),u.current=null)):(l(!1),u.current=null)});return[f,o,e,p]}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ph.apply(this,arguments)}const d3=e=>{const{prefixCls:t,isMobile:o,ready:r,open:i,align:l,offsetR:u,offsetB:f,offsetX:p,offsetY:m,arrowPos:g,popupSize:b,motion:v,uniqueContainerClassName:x,uniqueContainerStyle:C}=e,S=`${t}-unique-container`,[R,E]=ce.useState(!1),N=Yw(o,r,i,l,u,f,p,m),$=ce.useRef(N);r&&($.current=N);const w={};return b&&(w.width=b.width,w.height=b.height),ce.createElement(no,Ph({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${S}-hidden`},v,{visible:i,onVisibleChanged:T=>{E(T)}}),({className:T,style:z})=>{const A=W(S,T,x,{[`${S}-visible`]:R});return ce.createElement("div",{className:A,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...$.current,...w,...z,...C}})})},f3=({children:e,postTriggerProps:t})=>{const[o,r,i,l]=u3(),u=c.useMemo(()=>!i||!t?i:t(i),[i,t]),[f,p]=c.useState(null),[m,g]=c.useState(null),b=c.useRef(null),v=pt(F=>{b.current=F,ys(F)&&f!==F&&p(F)}),x=c.useRef(null),C=e2(),S=pt((F,J)=>{x.current=J,C(()=>{o(F)},F.delay)}),R=F=>{C(()=>{x.current?.()||o(!1)},F)},E=pt(F=>{l(F)}),[N,$,w,T,z,A,P,,,B,D]=Jw(r,f,u?.target,u?.popupPlacement,u?.builtinPlacements||{},u?.popupAlign,void 0,!1),I=c.useMemo(()=>{if(!u)return"";const F=Zw(u.builtinPlacements||{},u.prefixCls||"",B,!1);return W(F,u.getPopupClassNameFromAlign?.(B))},[B,u?.getPopupClassNameFromAlign,u?.builtinPlacements,u?.prefixCls]),H=c.useMemo(()=>({show:S,hide:R}),[]);c.useEffect(()=>{D()},[u?.target]);const X=pt(()=>(D(),Promise.resolve())),Z=c.useRef({}),U=c.useContext(Xd),L=c.useMemo(()=>({registerSubPopup:(F,J)=>{Z.current[F]=J,U?.registerSubPopup(F,J)}}),[U]),q=u?.prefixCls;return c.createElement(Qw.Provider,{value:H},e,u&&c.createElement(Xd.Provider,{value:L},c.createElement(Kw,{ref:v,portal:hc,onEsc:u.onEsc,prefixCls:q,popup:u.popup,className:W(u.popupClassName,I,`${q}-unique-controlled`),style:u.popupStyle,target:u.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:E,ready:N,offsetX:$,offsetY:w,offsetR:T,offsetB:z,onAlign:D,onPrepare:X,onResize:F=>g({width:F.offsetWidth,height:F.offsetHeight}),arrowPos:{x:A,y:P},align:B,zIndex:u.zIndex,mask:u.mask,arrow:u.arrow,motion:u.popupMotion,maskMotion:u.maskMotion,getPopupContainer:u.getPopupContainer},c.createElement(d3,{prefixCls:q,isMobile:!1,ready:N,open:r,align:B,offsetR:T,offsetB:z,offsetX:$,offsetY:w,arrowPos:{x:A,y:P},popupSize:m,motion:u.popupMotion,uniqueContainerClassName:W(u.uniqueContainerClassName,I),uniqueContainerStyle:u.uniqueContainerStyle}))))};function m3(e=hc){return c.forwardRef((o,r)=>{const{prefixCls:i="rc-trigger-popup",children:l,action:u="hover",showAction:f,hideAction:p,disabled:m=!1,popupVisible:g,defaultPopupVisible:b,onOpenChange:v,afterOpenChange:x,onPopupVisibleChange:C,afterPopupVisibleChange:S,mouseEnterDelay:R,mouseLeaveDelay:E=.1,focusDelay:N,blurDelay:$,mask:w,maskClosable:T=!0,getPopupContainer:z,forceRender:A,autoDestroy:P,popup:B,popupClassName:D,uniqueContainerClassName:I,uniqueContainerStyle:H,popupStyle:X,popupPlacement:Z,builtinPlacements:U={},popupAlign:L,zIndex:q,stretch:F,getPopupClassNameFromAlign:J,fresh:Q,unique:j,alignPoint:V,onPopupClick:k,onPopupAlign:G,arrow:K,popupMotion:te,maskMotion:Y,mobile:ie,...se}=o,ae=P||!1,me=g===void 0,ne=!!ie,ue=c.useRef({}),he=c.useContext(Xd),ge=c.useMemo(()=>({registerSubPopup:(ke,Dt)=>{ue.current[ke]=Dt,he?.registerSubPopup(ke,Dt)}}),[he]),Se=c.useContext(Qw),$e=Xr(),[ye,xe]=c.useState(null),Ce=c.useRef(null),we=pt(ke=>{Ce.current=ke,ys(ke)&&ye!==ke&&xe(ke),he?.registerSubPopup($e,ke)}),[Be,Te]=c.useState(null),He=c.useRef(null),nt=pt(ke=>{const Dt=pi(ke);ys(Dt)&&Be!==Dt&&(Te(Dt),He.current=Dt)}),Ke={},Fe=pt(ke=>{const Dt=Be;return Dt?.contains(ke)||qg(Dt)?.host===ke||ke===Dt||ye?.contains(ke)||qg(ye)?.host===ke||ke===ye||Object.values(ue.current).some(Qr=>Qr?.contains(ke)||ke===Qr)}),qe=K?{...K!==!0?K:{}}:null,[Je,Ue]=To(b||!1,g),Pe=Je||!1,_e=Pe&&!m,Xe=c.useMemo(()=>{const ke=typeof l=="function"?l({open:_e}):l;return c.Children.only(ke)},[l,_e]),De=Xe?.props||{},Oe=pt(()=>_e),Qe=pt((ke=0)=>({popup:B,target:Be,delay:ke,prefixCls:i,popupClassName:D,uniqueContainerClassName:I,uniqueContainerStyle:H,popupStyle:X,popupPlacement:Z,builtinPlacements:U,popupAlign:L,zIndex:q,mask:w,maskClosable:T,popupMotion:te,maskMotion:Y,arrow:qe,getPopupContainer:z,getPopupClassNameFromAlign:J,id:$e,onEsc:rt}));un(()=>{Se&&j&&Be&&!me&&!he&&(_e?Se.show(Qe(R),Oe):Se.hide(E))},[_e,Be]);const ze=c.useRef(_e);ze.current=_e;const Ie=pt(ke=>{gi.flushSync(()=>{Pe!==ke&&(Ue(ke),v?.(ke),C?.(ke))})}),We=e2(),Ye=(ke,Dt=0)=>{if(g!==void 0){We(()=>{Ie(ke)},Dt);return}if(Se&&j&&me&&!he){ke?Se.show(Qe(Dt),Oe):Se.hide(Dt);return}We(()=>{Ie(ke)},Dt)};function rt({top:ke}){ke&&Ye(!1)}const[ct,it]=c.useState(!1);un(ke=>{(!ke||_e)&&it(!0)},[_e]);const[yt,Et]=c.useState(null),[Tt,et]=c.useState(null),Ot=ke=>{et([ke.clientX,ke.clientY])},[Le,Ne,Ae,ve,je,Ve,Ze,ft,Jt,Rt,mt]=Jw(_e,ye,V&&Tt!==null?Tt:Be,Z,U,L,G,ne),[Mt,on]=i3(u,f,p),ut=Mt.has("click"),bt=on.has("click")||on.has("contextMenu"),$t=pt(()=>{ct||mt()});l3(_e,Be,ye,$t,()=>{ze.current&&V&&bt&&Ye(!1)}),un(()=>{$t()},[Tt,Z]),un(()=>{_e&&!U?.[Z]&&$t()},[JSON.stringify(L)]);const lt=c.useMemo(()=>{const ke=Zw(U,i,Rt,V);return W(ke,J?.(Rt))},[Rt,J,U,i,V]);c.useImperativeHandle(r,()=>({nativeElement:He.current,popupElement:Ce.current,forceAlign:$t}));const[_t,en]=c.useState(0),[wt,Ft]=c.useState(0),gn=()=>{if(F&&Be){const ke=Be.getBoundingClientRect();en(ke.width),Ft(ke.height)}},Ht=()=>{gn(),$t()},ro=ke=>{it(!1),mt(),x?.(ke),S?.(ke)},yr=()=>new Promise(ke=>{gn(),Et(()=>ke)});un(()=>{yt&&(mt(),yt(),Et(null))},[yt]);function jn(ke,Dt,Qr,Zr,Ls){Ke[ke]=(Vs,...Jr)=>{(!Ls||!Ls())&&(Zr?.(Vs),Ye(Dt,Qr)),De[ke]?.(Vs,...Jr)}}const ao=Mt.has("touch"),Qo=on.has("touch"),Po=c.useRef(!1);(ao||Qo)&&(Ke.onTouchStart=(...ke)=>{Po.current=!0,ze.current&&Qo?Ye(!1):!ze.current&&ao&&Ye(!0),De.onTouchStart?.(...ke)}),(ut||bt)&&(Ke.onClick=(ke,...Dt)=>{ze.current&&bt?Ye(!1):!ze.current&&ut&&(Ot(ke),Ye(!0)),De.onClick?.(ke,...Dt),Po.current=!1});const Gn=c3(_e,bt||Qo,Be,ye,w,T,Fe,Ye),gt=Mt.has("hover"),Mn=on.has("hover");let wn,Zn;const Tn=()=>Po.current;if(gt){const ke=Dt=>{Ot(Dt)};jn("onMouseEnter",!0,R,ke,Tn),jn("onPointerEnter",!0,R,ke,Tn),wn=Dt=>{(_e||ct)&&ye?.contains(Dt.target)&&Ye(!0,R)},V&&(Ke.onMouseMove=Dt=>{De.onMouseMove?.(Dt)})}Mn&&(jn("onMouseLeave",!1,E,void 0,Tn),jn("onPointerLeave",!1,E,void 0,Tn),Zn=()=>{Ye(!1,E)}),Mt.has("focus")&&jn("onFocus",!0,N),on.has("focus")&&jn("onBlur",!1,$),Mt.has("contextMenu")&&(Ke.onContextMenu=(ke,...Dt)=>{ze.current&&on.has("contextMenu")?Ye(!1):(Ot(ke),Ye(!0)),ke.preventDefault(),De.onContextMenu?.(ke,...Dt)});const _a=c.useRef(!1);_a.current||=A||_e||ct;const Si={...De,...Ke},Yr={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(ke=>{se[ke]&&(Yr[ke]=(...Dt)=>{Si[ke]?.(...Dt),se[ke](...Dt)})});const Kr={x:Ve,y:Ze};YE(_e,Be,Ht);const Ds=kr(nt,vi(Xe)),io=c.cloneElement(Xe,{...Si,...Yr,ref:Ds});return c.createElement(c.Fragment,null,io,_a.current&&(!Se||!j)&&c.createElement(Xd.Provider,{value:ge},c.createElement(Kw,{portal:e,ref:we,prefixCls:i,popup:B,className:W(D,!ne&<),style:X,target:Be,onMouseEnter:wn,onMouseLeave:Zn,onPointerEnter:wn,zIndex:q,open:_e,keepDom:ct,fresh:Q,onClick:k,onPointerDownCapture:Gn,mask:w,motion:te,maskMotion:Y,onVisibleChanged:ro,onPrepare:yr,forceRender:A,autoDestroy:ae,getPopupContainer:z,onEsc:rt,align:Rt,arrow:qe,arrowPos:Kr,ready:Le,offsetX:Ne,offsetY:Ae,offsetR:ve,offsetB:je,onAlign:$t,stretch:F,targetWidth:_t/ft,targetHeight:wt/Jt,mobile:ie})))})}const xf=m3(hc);function t2(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const p3=(e,t,o)=>ce.isValidElement(e)?ce.cloneElement(e,mn(o)?o(e.props||{}):o):t;function Io(e,t){return p3(e,e,t)}const g3=({children:e})=>{const{getPrefixCls:t}=ce.useContext(St),o=t();return ce.isValidElement(e)?ce.createElement(no,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>Io(e,l=>({className:W(l.className,i),style:{...l.style,...r}}))):e},ku=[null,null];function h3(e){if(ku[0]!==e){const t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),ku[0]=e,ku[1]=t}return ku[1]}const n2=({children:e})=>{const t=o=>{const{id:r,builtinPlacements:i,popup:l}=o,u=mn(l)?l():l,f=h3(i);return{...o,getPopupContainer:null,arrow:!1,popup:ce.createElement(g3,{key:r},u),builtinPlacements:f}};return ce.createElement(f3,{postTriggerProps:t},e)},qr=c.createContext(!1),o2=({children:e,disabled:t})=>{const o=c.useContext(qr);return c.createElement(qr.Provider,{value:t??o},e)},$s=c.createContext(void 0),b3=({children:e,size:t})=>{const o=c.useContext($s);return c.createElement($s.Provider,{value:t||o},e)};function v3(){const e=c.useContext(qr),t=c.useContext($s);return{componentDisabled:e,componentSize:t}}function y3(e,t,o){const r=e||{},i=r.inherit===!1||!t?{...hh,hashed:t?.hashed??hh.hashed,cssVar:t?.cssVar}:t,l=c.useId();return dc(()=>{if(!e)return t;const u={...i.components};Object.keys(e.components||{}).forEach(m=>{u[m]={...u[m],...e.components[m]}});const f=`css-var-${l.replace(/:/g,"")}`,p={prefix:o?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||f};return{...i,...r,token:{...i.token,...r.token},components:u,cssVar:p}},[r,i,o?.prefixCls,l],(u,f)=>u.some((p,m)=>{const g=f[m];return!Ql(p,g,!0)}))}const dC=c.createContext(!0);function x3(e){const t=c.useContext(dC),{children:o}=e,[,r]=Ko(),{motion:i}=r,l=c.useRef(!1);return l.current||(l.current=t!==i),l.current?c.createElement(dC.Provider,{value:i},c.createElement(uz,{motion:i},o)):o}const S3=()=>null,C3=({iconPrefixCls:e,csp:t})=>(O6(e,t),null),$3=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],E3=e=>{const{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:i}=e},w3=e=>{const{children:t,csp:o,autoInsertSpaceInButton:r,alert:i,affix:l,anchor:u,app:f,form:p,locale:m,componentSize:g,direction:b,space:v,splitter:x,virtual:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:R,popupOverflow:E,legacyLocale:N,parentContext:$,iconPrefixCls:w,theme:T,componentDisabled:z,segmented:A,statistic:P,spin:B,calendar:D,carousel:I,cascader:H,collapse:X,typography:Z,checkbox:U,descriptions:L,divider:q,drawer:F,skeleton:J,steps:Q,image:j,layout:V,list:k,mentions:G,modal:K,progress:te,result:Y,slider:ie,breadcrumb:se,masonry:ae,menu:me,pagination:ne,input:ue,inputPassword:he,inputSearch:ge,textArea:Se,otp:$e,empty:ye,badge:xe,borderBeam:Ce,radio:we,rate:Be,ribbon:Te,switch:He,transfer:nt,avatar:Ke,message:Fe,tag:qe,table:Je,card:Ue,cardMeta:Pe,tabs:_e,timeline:Xe,timePicker:De,upload:Oe,notification:Qe,tree:ze,colorPicker:Ie,datePicker:We,rangePicker:Ye,flex:rt,wave:ct,dropdown:it,warning:yt,tour:Et,tooltip:Tt,popover:et,popconfirm:Ot,qrcode:Le,floatButton:Ne,floatButtonGroup:Ae,variant:ve,inputNumber:je,treeSelect:Ve,watermark:Ze}=e,ft=c.useMemo(()=>Wt(m)&&Object.prototype.hasOwnProperty.call(m,"default")&&m.default?.locale?m.default:m,[m]),Jt=c.useCallback((wt,Ft)=>{const{prefixCls:gn}=e;if(Ft)return Ft;const Ht=gn||$.getPrefixCls("");return wt?`${Ht}-${wt}`:Ht},[$.getPrefixCls,e.prefixCls]),Rt=w||$.iconPrefixCls||d0,mt=o||$.csp,Mt=y3(T,$.theme,{prefixCls:Jt("")}),on={csp:mt,autoInsertSpaceInButton:r,alert:i,affix:l,anchor:u,app:f,locale:ft||N,direction:b,space:v,splitter:x,virtual:C,popupMatchSelectWidth:R??S,popupOverflow:E,getPrefixCls:Jt,iconPrefixCls:Rt,theme:Mt,segmented:A,statistic:P,spin:B,calendar:D,carousel:I,cascader:H,collapse:X,typography:Z,checkbox:U,descriptions:L,divider:q,drawer:F,skeleton:J,steps:Q,image:j,input:ue,inputPassword:he,inputSearch:ge,textArea:Se,otp:$e,layout:V,list:k,mentions:G,modal:K,progress:te,result:Y,slider:ie,breadcrumb:se,masonry:ae,menu:me,pagination:ne,empty:ye,badge:xe,borderBeam:Ce,radio:we,rate:Be,ribbon:Te,switch:He,transfer:nt,avatar:Ke,message:Fe,tag:qe,table:Je,card:Ue,cardMeta:Pe,tabs:_e,timeline:Xe,timePicker:De,upload:Oe,notification:Qe,tree:ze,colorPicker:Ie,datePicker:We,rangePicker:Ye,flex:rt,wave:ct,dropdown:it,warning:yt,tour:Et,tooltip:Tt,popover:et,popconfirm:Ot,qrcode:Le,floatButton:Ne,floatButtonGroup:Ae,variant:ve,inputNumber:je,treeSelect:Ve,watermark:Ze},ut={...$};Object.keys(on).forEach(wt=>{on[wt]!==void 0&&(ut[wt]=on[wt])}),$3.forEach(wt=>{const Ft=e[wt];Ft&&(ut[wt]=Ft)}),typeof r<"u"&&(ut.button={autoInsertSpace:r,...ut.button});const bt=dc(()=>ut,ut,(wt,Ft)=>{const gn=Object.keys(wt),Ht=Object.keys(Ft);return gn.length!==Ht.length||gn.some(ro=>wt[ro]!==Ft[ro])}),{layer:$t}=c.useContext(fc),Ge=c.useMemo(()=>({prefixCls:Rt,csp:mt,layer:$t?"antd":void 0,zeroRuntime:!!$t||Mt?.zeroRuntime}),[Rt,mt,$t,Mt?.zeroRuntime]);let lt=c.createElement(c.Fragment,null,c.createElement(C3,{iconPrefixCls:Rt,csp:mt}),c.createElement(S3,{dropdownMatchSelectWidth:S}),t);const _t=c.useMemo(()=>fs(Ia.Form?.defaultValidateMessages||{},bt.locale?.Form?.defaultValidateMessages||{},bt.form?.validateMessages||{},p?.validateMessages||{}),[bt,p?.validateMessages]);Object.keys(_t).length>0&&(lt=c.createElement(Dz.Provider,{value:_t},lt)),ft&&(lt=c.createElement(Gz,{locale:ft,_ANT_MARK__:Wz},lt)),lt=c.createElement(y0.Provider,{value:Ge},lt),g&&(lt=c.createElement(b3,{size:g},lt)),lt=c.createElement(x3,null,lt),Tt?.unique&&(lt=c.createElement(n2,null,lt));const en=c.useMemo(()=>{const{algorithm:wt,token:Ft,components:gn,cssVar:Ht,...ro}=Mt||{},yr=wt&&(!Array.isArray(wt)||wt.length>0)?Yg(wt):Sw,jn={};Object.entries(gn||{}).forEach(([Qo,Po])=>{const Gn={...Po};"algorithm"in Gn&&(Gn.algorithm===!0?Gn.theme=yr:(Array.isArray(Gn.algorithm)||mn(Gn.algorithm))&&(Gn.theme=Yg(Gn.algorithm)),delete Gn.algorithm),jn[Qo]=Gn});const ao={...tc,...Ft};return{...ro,theme:yr,token:ao,components:jn,override:{override:ao,...jn},cssVar:Ht}},[Mt]);return T&&(lt=c.createElement(Cw.Provider,{value:en},lt)),bt.warning&&(lt=c.createElement(DO.Provider,{value:bt.warning},lt)),z!==void 0&&(lt=c.createElement(o2,{disabled:z},lt)),c.createElement(St.Provider,{value:bt},lt)},ja=e=>{const t=c.useContext(St),o=c.useContext($0);return c.createElement(w3,{parentContext:t,legacyLocale:o,...e})};ja.ConfigContext=St;ja.SizeContext=$s;ja.config=E3;ja.useConfig=v3;Object.defineProperty(ja,"SizeContext",{get:()=>$s});function N3(){const[e,t]=c.useState({}),o=c.useCallback((r,i)=>{if(!i){t(u=>{if(!(r in u))return u;const f={...u};return delete f[r],f});return}const l={width:i.offsetWidth,height:i.offsetHeight};t(u=>{const f=u[r];return f&&f.width===l.width&&f.height===l.height?u:{...u,[r]:l}})},[]);return[e,o]}function R3(e,t,o=0){const[r,i]=N3(),[l,u,f,p]=c.useMemo(()=>{let m=0,g=0;const b=t?.threshold??0,v=new Map;let x,C;return e.slice().reverse().forEach((S,R)=>{const E=String(S.key),N=r[E]?.height??0,$=t&&R>0?m+(t.offset??0)-N:m;v.set(E,$),R===0&&(x=N,C=r[E]?.width??0),(!t||R<b)&&(g=Math.max(g,$+N)),t?m=$+N:m+=N+o}),[v,g,x,C]},[e,o,r,t]);return[l,i,u,f,p]}const fC=8,mC=3,M3=e=>{const t={offset:fC,threshold:mC};return e&&typeof e=="object"&&(t.offset=e.offset??fC,t.threshold=e.threshold??mC),[!!e,t]};function T3(e,t,o){const i=Math.max(typeof e=="number"?e:0,0)*1e3,l=pt(t),u=pt(o),[f,p]=c.useState(i>0),m=c.useRef(0),g=c.useRef(null);function b(){const C=Date.now(),S=g.current;S!==null&&(m.current+=C-S),g.current=C}const v=c.useCallback(()=>{b(),p(!1)},[]),x=c.useCallback(()=>{i>0?(g.current=Date.now(),p(!0)):u(0)},[i]);return c.useEffect(()=>{m.current=0,p(i>0)},[i]),c.useEffect(()=>{if(!f)return;let C=null;function S(){b(),m.current>=i?(u(1),l()):(u(Math.min(m.current/i,1)),C=Lt(S))}return S(),()=>{Lt.cancel(C)}},[i,f]),[x,v]}function O3(e){const t=c.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),o=c.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),r=c.useMemo(()=>Qn(o,!0),[o]);return[!!e,o,r]}const z3=({className:e,style:t,percent:o})=>c.createElement("progress",{className:e,max:"100",value:o,style:t});function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kd.apply(this,arguments)}const A3=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,classNames:l,styles:u,components:f,title:p,description:m,icon:g,actions:b,role:v,closable:x,offset:C,notificationIndex:S,stackInThreshold:R,props:E,duration:N=4.5,showProgress:$,hovering:w,pauseOnHover:T=!0,onClick:z,onMouseEnter:A,onMouseLeave:P,onClose:B}=e,[D,I]=c.useState(0),H=`${o}-notice`,[X,Z,U]=O3(x),L=pt(()=>{Z.onClose?.(),B?.()}),[q,F]=c.useState(!1),[J,Q]=T3(N,L,I),j=100-Math.min(Math.max(D*100,0),100),V=f?.progress||z3;c.useEffect(()=>{T&&(w?Q():q||J())},[w,q,Q,J,T]);function k(ye){F(!0),T&&Q(),A?.(ye)}function G(ye){F(!1),T&&!w&&J(),P?.(ye)}function K(ye){ye.preventDefault(),ye.stopPropagation(),L()}const te=c.useRef(C);C!==void 0&&(te.current=C);const Y=c.useRef(S);S!==void 0&&(Y.current=S);const ie=C??te.current,se=S??Y.current??0,ae=p!=null?c.createElement("div",{className:W(`${H}-title`,l?.title),style:u?.title},p):null,me=m!=null?c.createElement("div",{className:W(`${H}-description`,l?.description),style:u?.description},m):null,ne=ae!==null,ue=me!==null;let he=null;ne&&ue?he=c.createElement("div",{className:W(`${H}-section`,l?.section),style:u?.section},ae,me):he=ae||me,g!=null&&(he=c.createElement("div",{className:W(`${H}-wrapper`,l?.wrapper),style:u?.wrapper},c.createElement("div",{className:W(`${H}-icon`,l?.icon),style:u?.icon},g),he));const ge=b?c.createElement("div",{className:W(`${H}-actions`,l?.actions),style:u?.actions},b):null,Se={"--notification-index":se,...u?.root,...i};ie!==void 0&&(Se["--notification-y"]=`${ie}px`);const $e=v??E?.role??"alert";return c.createElement("div",kd({},E,{ref:t,role:$e,"data-notification-index":se,className:W(H,r,l?.root,{[`${H}-closable`]:X,[`${H}-stack-in-threshold`]:R}),style:Se,onClick:z,onMouseEnter:k,onMouseLeave:G}),he,ge,X&&c.createElement("button",kd({className:W(`${H}-close`,l?.close),"aria-label":"Close"},U,{style:u?.close,onClick:K}),Z.closeIcon),$&&typeof N=="number"&&N>0&&c.createElement(V,{className:W(`${H}-progress`,l?.progress),percent:j,style:u?.progress}))}),r2=c.createContext({}),a2=({children:e,classNames:t})=>{const o=c.useMemo(()=>({classNames:t}),[t]);return c.createElement(r2.Provider,{value:o},e)};function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},jh.apply(this,arguments)}const I3=c.forwardRef((e,t)=>{const{listPrefixCls:o,height:r,topNoticeHeight:i=0,topNoticeWidth:l=0,className:u,style:f,...p}=e,m=`${o}-content`,g=c.useRef(r),b=g.current,v=r<b?"decrease":"increase";g.current=r;const x={...f,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${l}px`};return c.createElement("div",jh({},p,{className:W(m,`${m}-${v}`,u),style:x,ref:t}))});function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Yd.apply(this,arguments)}const i2=["wrapper","root","icon","section","title","description","actions","close","progress"];function P3(e){return i2.reduce((t,o)=>(t[o]=W(...e.map(r=>r?.[o])),t),{})}function j3(e){return i2.reduce((t,o)=>(t[o]=Object.assign({},...e.map(r=>r?.[o])),t),{})}function B3(e,t){const o=String(t),r=e.findIndex(i=>i.key===o);if(r!==-1)return e.length-r-1}const _3=e=>{const{config:t,components:o,contextClassNames:r,classNames:i,styles:l,className:u,style:f,nodeRef:p,listHovering:m,stackEnabled:g,pauseOnHover:b,setNodeSize:v,onNoticeClose:x,...C}=e,{key:S,placement:R,...E}=t,N=String(S),$=c.useCallback(T=>{v(N,T)},[v,N]),w=kr(p,$);return c.createElement(A3,Yd({},E,C,{ref:w,className:W(r?.notice,t.className,u),style:{...f,...t.style},classNames:P3([i,t.classNames]),styles:j3([l,t.styles]),components:{...o,...t.components},hovering:g&&m,pauseOnHover:t.pauseOnHover??b,onClose:()=>{t.onClose?.(),x?.(S)}}))},H3=e=>{const{configList:t=[],prefixCls:o="rc-notification",pauseOnHover:r,classNames:i,styles:l,components:u,stack:f,motion:p,placement:m,className:g,style:b,onNoticeClose:v,onAllRemoved:x}=e,{classNames:C}=c.useContext(r2),S=c.useMemo(()=>t.map(F=>({config:F,key:String(F.key)})),[t]),R=typeof p=="function"?p(m):p,[E,{offset:N,threshold:$}]=M3(f),[w,T]=c.useState(!1),z=E&&(w||S.length<=$),A=c.useMemo(()=>{if(!(!E||z))return{offset:N,threshold:$}},[z,N,E,$]),[P,B]=c.useState(0),D=c.useRef(null),[I,H,X,Z,U]=R3(t,A,P),L=!!t.length;c.useEffect(()=>{const F=D.current;if(!F)return;const{gap:J,rowGap:Q}=window.getComputedStyle(F),j=parseFloat(Q||J)||0;B(V=>V===j?V:j)},[L]);const q=`${o}-list`;return c.createElement("div",{className:W(o,q,`${o}-${m}`,C?.list,g,i?.list,{[`${o}-stack`]:E,[`${o}-stack-expanded`]:z,[`${q}-hovered`]:w}),onMouseEnter:()=>{T(!0)},onMouseLeave:()=>{T(!1)},style:{...l?.list,...b}},c.createElement(I3,{listPrefixCls:q,height:X,topNoticeHeight:Z,topNoticeWidth:U,className:i?.listContent,style:l?.listContent,ref:D},c.createElement(Nz,Yd({component:!1,keys:S,motionAppear:!0},R,{onAllRemoved:()=>{m&&x?.(m)}}),({config:F,className:J,style:Q},j)=>{const{key:V}=F,k=String(V),G=B3(S,V),K=E&&G!==void 0&&G<$;return c.createElement(_3,{key:V,config:F,components:u,contextClassNames:C,classNames:i,styles:l,className:J,style:Q,nodeRef:j,prefixCls:o,offset:I.get(k),notificationIndex:G,stackInThreshold:K,listHovering:w,stackEnabled:E,pauseOnHover:r,setNodeSize:H,onNoticeClose:v})})))},D3=c.forwardRef((e,t)=>{const{prefixCls:o="rc-notification",container:r,motion:i,maxCount:l,pauseOnHover:u,classNames:f,styles:p,components:m,className:g,style:b,onAllRemoved:v,stack:x,renderNotifications:C}=e,[S,R]=c.useState([]),[E,N]=c.useState({}),$=c.useRef(!1);c.useImperativeHandle(t,()=>({open:z=>{R(A=>{let P=[...A];const B=P.findIndex(I=>I.key===z.key),D={...z};return B>=0?(D.times=(A[B]?.times??0)+1,P[B]=D):(D.times=0,P.push(D)),l&&l>0&&P.length>l&&(P=P.slice(-l)),P})},close:z=>{R(A=>A.filter(P=>P.key!==z))},destroy:()=>{R([])}})),c.useEffect(()=>{const z={};S.forEach(A=>{const P=A.placement??"topRight";z[P]=z[P]||[],z[P].push(A)}),Object.keys(E).forEach(A=>{z[A]=z[A]||[]}),N(z)},[S]);const w=pt(z=>{N(A=>{const P={...A};return(P[z]||[]).length||delete P[z],P})});if(c.useEffect(()=>{Object.keys(E).length>0?$.current=!0:$.current&&(v?.(),$.current=!1)},[E,v]),!r)return null;const T=Object.keys(E);return gi.createPortal(c.createElement(c.Fragment,null,T.map(z=>{const A=c.createElement(H3,{key:z,configList:E[z],placement:z,prefixCls:o,pauseOnHover:u,classNames:f,styles:p,components:m,className:g?.(z),style:b?.(z),motion:i,stack:x,onNoticeClose:P=>{R(B=>B.filter(D=>D.key!==P))},onAllRemoved:w});return C?c.cloneElement(C(A,{prefixCls:o,key:z}),{key:z}):A})),r)}),L3=()=>document.body;let pC=0;function V3(...e){const t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{const i=o[r];i!==void 0&&(t[r]=i)})}),t}function s2(e={}){const{getContainer:t=L3,motion:o,prefixCls:r,placement:i,closable:l,duration:u,showProgress:f,pauseOnHover:p,classNames:m,styles:g,components:b,maxCount:v,className:x,style:C,onAllRemoved:S,stack:R,renderNotifications:E}=e,N={placement:i,closable:l,duration:u,showProgress:f},[$,w]=c.useState(),T=c.useRef(null),[z,A]=c.useState([]),P=c.createElement(D3,{container:$,ref:T,prefixCls:r,motion:o,maxCount:v,pauseOnHover:p,classNames:m,styles:g,components:b,className:x,style:C,onAllRemoved:S,stack:R,renderNotifications:E}),B=pt(I=>{const H=V3(N,I);(H.key===null||H.key===void 0)&&(H.key=`rc-notification-${pC}`,pC+=1),A(X=>[...X,{type:"open",config:H}])}),D=c.useMemo(()=>({open:B,close:I=>{A(H=>[...H,{type:"close",key:I}])},destroy:()=>{A(I=>[...I,{type:"destroy"}])}}),[]);return c.useEffect(()=>{w(t())}),c.useEffect(()=>{T.current&&z.length&&(z.forEach(I=>{switch(I.type){case"open":T.current?.open(I.config);break;case"close":T.current?.close(I.key);break;case"destroy":T.current?.destroy();break}}),A(I=>{const H=I.filter(X=>!z.includes(X));return H.length===I.length?I:H}))},[z]),[D,P]}const l2=(e,t)=>c.useMemo(()=>{const o=e??t;return o?{...Wt(t)?t:{},...Wt(o)?o:{}}:!1},[e,t]);function c2(e,t){return{...Kn(e)&&{"--notification-top":re(e)},...Kn(t)&&{"--notification-bottom":re(t)}}}function F3(e){return{motionName:`${e}-fade`}}function q3(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}var Yu={},gC;function U3(){if(gC)return Yu;gC=1,Object.defineProperty(Yu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return Yu.default=e,Yu}var W3=U3();const G3=Xt(W3);function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Bh.apply(this,arguments)}const X3=(e,t)=>c.createElement(Zt,Bh({},e,{ref:t,icon:G3})),Sf=c.forwardRef(X3);function Xo(...e){return e.find(t=>t!==void 0)}const u2=e=>{const{allowClear:t,clearIcon:o,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:l,componentName:u}=e;return c.useMemo(()=>t??r??l?{clearIcon:Xo(Wt(t)?t?.clearIcon:o,Wt(r)?r?.clearIcon:i,ce.createElement(yi,null)),disabled:(Wt(t)?t?.disabled:void 0)??(Wt(r)?r?.disabled:void 0)}:!1,[t,o,r,i,l])},Es=e=>{if(!e)return;const{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},d2={},hC=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Kn(e)&&!Kn(t))return null;let o={closeIcon:typeof t!="boolean"&&Kn(t)?t:void 0};return Wt(e)&&(o={...o,...e}),o},k3=(e,t,o)=>e===!1?!1:e?cS(o,t,e):t===!1?!1:t?cS(o,t):o.closable?o:!1,Y3=(e,t,o)=>{const{closeIconRender:r}=t,{closeIcon:i,...l}=e;let u=i;const f=Qn(l,!0);return Kn(u)&&(r&&(u=r(u)),u=ce.isValidElement(u)?ce.cloneElement(u,{"aria-label":o,...u.props,...f}):ce.createElement("span",{"aria-label":o,...f},u)),[u,f]},f2=(e,t,o=d2,r="Close")=>{const i=hC(e?.closable,e?.closeIcon),l=hC(t?.closable,t?.closeIcon),u={closeIcon:ce.createElement(br,null),...o},f=k3(i,l,u),p=typeof f!="boolean"?!!f?.disabled:!1;if(f===!1)return[!1,null,p,{}];const[m,g]=Y3(f,u,r);return[!0,m,p,g]},m2=(e,t,o=d2)=>{const[r]=Pa("global",Ia.global);return ce.useMemo(()=>f2(e,t,{closeIcon:ce.createElement(br,null),...o},r.close),[e,t,o,r.close])},K3=()=>ce.useReducer(e=>e+1,0),_h=(e,t)=>{let o={};return Wt(e)&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},p2=(e,t,o,r)=>c.useMemo(()=>{const i=_h(e,r),l=_h(t),u={blur:!1,...l,...i,closable:i.closable??r??l.closable??!0},f=u.blur?`${o}-mask-blur`:void 0;return[u.enabled!==!1,{mask:f},!!u.closable]},[e,t,o,r]),bC=e=>e==="horizontal"||e==="vertical",g2=(e,t,o)=>c.useMemo(()=>{const r=bC(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=bC(o)?o:"horizontal",[i,i==="vertical"]},[o,e,t]),Q3=()=>{const[e,t]=c.useState([]),o=c.useCallback(r=>(t(i=>[].concat(ho(i),[r])),()=>{t(i=>i.filter(l=>l!==r))}),[]);return[e,o]},Cf=ce.createContext(void 0),wa=100,Z3=10,E0=wa*Z3,h2={Modal:wa,Drawer:wa,Popover:wa,Popconfirm:wa,Tooltip:wa,Tour:wa,FloatButton:wa},J3={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},eA=e=>e in h2,vc=(e,t)=>{const[,o]=Ko(),r=ce.useContext(Cf),i=eA(e);let l;if(t!==void 0)l=[t,t];else{let u=r??0;i?u+=(r?0:o.zIndexPopupBase)+h2[e]:u+=J3[e],l=[r===void 0?t:u,u]}return l},tA=e=>{const{motionDurationMid:t,motionEaseInOut:o}=e,r=`${t} ${o}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(i=>`${i} ${r}`).join(", ")}},b2=(e,t)=>{const{componentCls:o,antCls:r,colorSuccess:i,colorInfo:l,colorWarning:u,colorError:f,colorTextHeading:p,colorText:m,boxShadow:g,borderRadiusLG:b,fontSize:v,lineHeight:x,notificationBg:C,notificationPadding:S,notificationMarginEdge:R,margin:E,calc:N}=e,$=`${o}-notice`,[w,T]=Vt(r,"notification");return{[$]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${re(N(R).mul(2).equal())})`,padding:S,pointerEvents:"auto",[w("icon-font-size")]:t.iconFontSize,[w("title-font-size")]:t.titleFontSize,[w("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:m,background:C,borderRadius:b,boxShadow:g,fontSize:v,lineHeight:x,wordWrap:"break-word",overflow:"visible",...tA(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:N(E).mul(-1).equal(),height:E,content:'""'},...t.typeStyle&&{"&-success":{background:T("color-success-bg",C)},"&-error":{background:T("color-error-bg",C)},"&-info":{background:T("color-info-bg",C)},"&-warning":{background:T("color-warning-bg",C)}}},[`${$}-wrapper`]:{display:"flex",...t.contentStyle},[`${$}-title`]:{color:p,fontSize:T("title-font-size"),lineHeight:T("title-line-height")},[`${$}-icon`]:{flex:"none",fontSize:T("icon-font-size"),lineHeight:1,[`&${$}-icon-success`]:{color:i},[`&${$}-icon-info, &${$}-icon-loading`]:{color:l},[`&${$}-icon-warning`]:{color:u},[`&${$}-icon-error`]:{color:f}}}},v2=e=>{const{componentCls:t,progressBg:o,notificationProgressHeight:r,fontSize:i,borderRadiusLG:l,width:u,notificationIconSize:f,colorText:p,motionDurationMid:m,fontSizeLG:g,lineHeightLG:b,marginSM:v,marginXS:x,paddingLG:C,notificationPaddingVertical:S,notificationPaddingHorizontal:R,notificationCloseButtonSize:E,colorIcon:N,borderRadiusSM:$,colorIconHover:w,colorBgTextHover:T,colorBgTextActive:z}=e,A=`${t}-notice`;return{...b2(e,{width:u,iconFontSize:f,titleFontSize:g,titleLineHeight:b,contentStyle:{alignItems:"flex-start",gap:v},typeStyle:!0}),[`${A}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:x,minWidth:0},[`${A}-description`]:{color:p,fontSize:i},[`${A}-closable`]:{[`${A}-title, ${A}-description`]:{paddingInlineEnd:C},[`${A}-title + ${A}-description`]:{paddingInlineEnd:0}},[`${A}-close`]:{position:"absolute",top:S,insetInlineEnd:R,display:"flex",alignItems:"center",justifyContent:"center",width:E,height:E,color:N,background:"none",border:"none",borderRadius:$,outline:"none",transition:["color","background-color"].map(P=>`${P} ${m}`).join(", "),"&:hover":{color:w,backgroundColor:T},"&:active":{backgroundColor:z},...Fr(e)},[`${A}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${re(l)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:o},"&::-webkit-progress-value":{borderRadius:l,background:o}},[`${A}-actions`]:{float:"right",marginTop:v}}},nA=e=>{const{componentCls:t,width:o}=e,r=`${t}-notice`,i=`${r}-actions`,l=v2(e);return{[`${r}-pure-panel`]:{width:o,maxWidth:"100%",...l,[r]:{...l[r],position:"relative",width:"100%",maxWidth:"100%"},[i]:{...l[i],float:"none",textAlign:"end"}}}},oA=e=>{const{componentCls:t}=e;return{[t]:v2(e)}},rA=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],aA="--notification-margin-edge",iA=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),vC=e=>{const t=e?.x??"0",o=e?.y??"0";return`translate3d(${t}, ${o}, 0) scale(var(--notification-scale, 1))`},sA=(e,t)=>{const o=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:i,inlineEnd:l}=iA(o,r),u=e==="top"||e==="bottom",f=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:o,blockEnd:i,horizontal:r,inlineEnd:l,motionOffset:u?{x:"-50%",y:f}:{x:f},baseMotionOffset:u?{x:"-50%"}:void 0,isCenterPlacement:u}},lA=e=>e==="bottom"?"column-reverse":"column",cA=e=>{const t=`var(${aA}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},uA=e=>e==="bottom"?"center top":"center bottom",y2=e=>re(e.calc(e.marginXXL).mul(-1).equal()),dA=e=>{const t=y2(e);return`inset(${t} ${t} ${t} ${t})`},fA=(e,t)=>{const o=y2(e);return t==="bottom"?`inset(${o} ${o} 50% ${o})`:`inset(50% ${o} ${o} ${o})`},mA=(e,t)=>{const{componentCls:o}=e,{placement:r,vertical:i,blockEnd:l,horizontal:u,inlineEnd:f,isCenterPlacement:p}=t,m=`${o}-notice`,g=`${m}${o}-fade`,b=vC(t.motionOffset),v=vC(t.baseMotionOffset),x=uA(i);return{[`&${o}-${r}`]:{[i]:cA(i),[l]:"auto",display:"flex",flexDirection:lA(i),...p?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[u]:0,[f]:"auto"},[m]:{[i]:"var(--notification-y, 0)",...p?{left:"50%",transform:v}:{[u]:"var(--notification-x, 0)"},transformOrigin:x},[`${g}-appear-prepare, ${g}-enter-prepare`]:{opacity:0,transform:b,transition:"none"},[`${g}-appear-start, ${g}-enter-start`]:{opacity:0,transform:b},[`${g}-appear-active, ${g}-enter-active`]:{opacity:1,transform:v},[`${g}-leave-start`]:{opacity:1,transform:v},[`${g}-leave-active`]:{opacity:0,transform:b},[`&${o}-stack:not(${o}-stack-expanded)`]:{[m]:{clipPath:fA(e,i)},[`${m}[data-notification-index='0']`]:{clipPath:dA(e)}}}}},pA=(e,t=rA)=>{const{notificationMotionOffset:o}=e,r=re(o);return{...t.reduce((i,l)=>({...i,...mA(e,sA(l,r))}),{})}},gA=e=>{const{componentCls:t}=e;return{[t]:pA(e)}},hA=3,x2=e=>({zIndexPopup:e.zIndexPopupBase+E0+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),w0=e=>{const t=e.paddingMD,o=e.paddingLG;return Gt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},bA=e=>`inset(${e} ${e} ${e} ${e})`,vA=e=>{const{componentCls:t,motionDurationMid:o,motionDurationSlow:r,motionEaseInOut:i}=e,u=`${`${t}-list`}-content`;return{[u]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${u}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${o}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},yA=(e,t)=>{const{componentCls:o,notificationMarginEdge:r}=e,i="--notification-margin-edge",l=`${o}-notice`,u=`${o}-list`,f=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",p=t.stackVisibleCount??hA,m=`${l}:nth-last-child(n + ${p+1})`,g=re(e.calc(e.marginXXL).mul(-1).equal()),b=bA(g);return{[o]:{...Dn(e),[i]:re(r),position:"fixed",zIndex:e.zIndexPopup,width:f,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${o}-hook-holder`]:{position:"relative"},[`&${u}`]:{maxHeight:"100vh",padding:`var(${i})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...vA(e),[`&${o}-stack`]:{[l]:{clipPath:b},[`&:not(${o}-stack-expanded)`]:{[l]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${l}:not(${l}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[m]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${l}-actions`]:{float:"left"}}}}};bf(["Notification","PurePanel"],e=>nA(w0(e)),x2);const S2=(e,t)=>{const o=t.itemStyle??oA;return[yA(e,t),o(e),gA(e)]},xA=Qt("Notification",e=>{const t=w0(e);return S2(t,{listWidthKey:"width"})},x2),C2=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),o=e.paddingSM;return Gt(w0(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:o})},$2=e=>({zIndexPopup:e.zIndexPopupBase+E0+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),N0=e=>{const{fontSize:t,fontSizeLG:o,lineHeight:r}=e;return b2(e,{width:"max-content",iconFontSize:o,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},SA=e=>{const{componentCls:t}=e,o=`${t}-notice`,r=`${t}-list-content`,i=N0(e),{"&::after":l,...u}=i[o],f={...u,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...f,top:`calc(var(--top-notificiation-height) - ${re(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${re(e.margin)})`},"&::after":{...f,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${re(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},CA=e=>{const{componentCls:t}=e,o=`${t}-notice`,r=N0(e);return{[`${o}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[o]:{...r[o],position:"relative",width:"max-content",maxWidth:"100%"}}}};bf(["Message","PurePanel"],e=>CA(C2(e)),$2);const $A=e=>({[e.componentCls]:N0(e)}),EA=Qt("Message",e=>{const t=C2(e);return[S2(t,{stackVisibleCount:1,itemStyle:$A}),SA(t)]},$2),wA={info:c.createElement(yf,null),success:c.createElement(gc,null),error:c.createElement(yi,null),warning:c.createElement(vf,null),loading:c.createElement(Sf,null)},NA=(e,t)=>t||e&&wA[e]||null;function RA(e,t){return{motionName:t??`${e}-fade`}}function MA(e){let t;const o=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t?.()};return r.then=(i,l)=>o.then(i,l),r.promise=o,r}const TA=8,OA=3,zA=!1,AA=({children:e,prefixCls:t})=>{const o=vr(t),[r,i]=EA(t,o);return c.createElement(a2,{classNames:{list:W(r,i,o)}},e)},IA=(e,{prefixCls:t,key:o})=>c.createElement(AA,{prefixCls:t,key:o},e),PA=c.forwardRef((e,t)=>{const{top:o,prefixCls:r,getContainer:i,maxCount:l,duration:u=OA,rtl:f,classNames:p,styles:m,transitionName:g,pauseOnHover:b=!0,stack:v,onAllRemoved:x}=e,{getPrefixCls:C,direction:S,getPopupContainer:R}=Kt("message"),{message:E}=c.useContext(St),N=r||C("message"),[$,w]=dn([E?.classNames,p],[E?.styles,m],{props:e}),T=()=>c2(o??TA),z=()=>W({[`${N}-rtl`]:f??S==="rtl"}),A=()=>RA(N,g),P=l2(v,zA),[B,D]=s2({prefixCls:N,style:T,className:z,motion:A,closable:!1,duration:u,getContainer:()=>i?.()||R?.()||document.body,maxCount:l,onAllRemoved:x,classNames:$,styles:w,renderNotifications:IA,pauseOnHover:b,stack:P});return c.useImperativeHandle(t,()=>({...B,prefixCls:N,message:E})),D});let yC=0;function jA(e){const t=c.useRef(null);return[c.useMemo(()=>{const r=p=>{t.current?.close(p)},i=p=>{if(!t.current){const U=()=>{};return U.then=()=>{},U}const{open:m,prefixCls:g,message:b}=t.current,v=b?.className||{},x=b?.style||{},C=`${g}-notice`,{content:S,icon:R,type:E,key:N,className:$,style:w,onClose:T,classNames:z={},styles:A={},...P}=p;let B=N;Kn(B)||(yC+=1,B=`antd-message-${yC}`);const D={...e,...p},I=Cs(z,{props:D}),H=Cs(A,{props:D}),X=NA(E,R),Z=E?`${C}-icon-${E}`:void 0;return MA(U=>(m({...P,key:B,icon:X,title:S,classNames:{...I,wrapper:W(E&&`${g}-${E}`,I?.wrapper),icon:W(Z,I?.icon)},styles:H,placement:"top",className:W({[`${C}-${E}`]:E},$,v),style:{...x,...w},onClose:()=>{T?.(),U()}}),()=>{r(B)}))},u={open:i,destroy:p=>{p!==void 0?r(p):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(p=>{const m=(g,b,v)=>{let x;Wt(g)&&"content"in g?x=g:x={content:g};let C,S;mn(b)?S=b:(C=b,S=v);const R={onClose:S,duration:C,...x,type:p};return i(R)};u[p]=m}),u},[]),c.createElement(PA,{key:"message-holder",...e,ref:t})]}function BA(e){return jA(e)}const cg=()=>({height:0,opacity:0}),xC=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),_A=e=>({height:e?.offsetHeight??0}),ug=(e,t)=>t?.deadline===!0||Lw(t)&&t.propertyName==="height",HA=(e=Wd)=>({motionName:`${e}-motion-collapse`,onAppearStart:cg,onEnterStart:cg,onAppearActive:xC,onEnterActive:xC,onLeaveStart:_A,onLeaveActive:cg,onAppearEnd:ug,onEnterEnd:ug,onLeaveEnd:ug,motionDeadline:500}),Ur=(e,t,o)=>o!==void 0?o:`${e}-${t}`,DA=e=>{const{componentCls:t,colorPrimary:o,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:l,antCls:u}=e,[,f]=Vt(u,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:f("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(p=>`${p} ${l}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(p=>`${p} ${r} ${i}`).join(",")}}}}},LA=T6("Wave",DA),R0=`${Wd}-wave-target`,SC=e=>e?Oa(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function VA(e,t=null){const o=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:l}=o;return t&&SC(o[t])?o[t]:[r,i,l].find(SC)??null}function dg(e){return Number.isNaN(e)?0:e}const FA=e=>{const{className:t,target:o,component:r,colorSource:i}=e,l=c.useRef(null),{getPrefixCls:u}=c.useContext(St),f=u(),[p]=Vt(f,"wave"),[m,g]=c.useState(null),[b,v]=c.useState([]),[x,C]=c.useState(0),[S,R]=c.useState(0),[E,N]=c.useState(0),[$,w]=c.useState(0),[T,z]=c.useState(!1),A={left:x,top:S,width:E,height:$,borderRadius:b.map(D=>`${D}px`).join(" ")};m&&(A[p("color")]=m);function P(){const D=getComputedStyle(o);g(VA(o,i));const I=D.position==="static",{borderLeftWidth:H,borderTopWidth:X}=D;C(I?o.offsetLeft:dg(-Number.parseFloat(H))),R(I?o.offsetTop:dg(-Number.parseFloat(X))),N(o.offsetWidth),w(o.offsetHeight);const{borderTopLeftRadius:Z,borderTopRightRadius:U,borderBottomLeftRadius:L,borderBottomRightRadius:q}=D;v([Z,U,q,L].map(F=>dg(Number.parseFloat(F))))}if(c.useEffect(()=>{if(o){const D=Lt(()=>{P(),z(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(P),I.observe(o)),()=>{Lt.cancel(D),I?.disconnect()}}},[o]),!T)return null;const B=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(R0);return c.createElement(no,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(D,I)=>{if(I.deadline||Lw(I)&&I.propertyName==="opacity"){const H=l.current?.parentElement;HO(H).then(()=>{H?.remove()})}return!1}},({className:D},I)=>c.createElement("div",{ref:oo(l,I),className:W(t,D,{"wave-quick":B}),style:A}))},qA=(e,t)=>{const{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),_O(c.createElement(FA,{...t,target:e}),r)},UA=(e,t,o,r)=>{const{wave:i}=c.useContext(St),[,l,u]=Ko(),f=pt(g=>{const b=e.current;if(i?.disabled||!b)return;const v=b.querySelector(`.${R0}`)||b,{showEffect:x}=i||{};(x||qA)(v,{className:t,token:l,component:o,event:g,hashId:u,colorSource:r})}),p=c.useRef(null);return c.useEffect(()=>()=>{Lt.cancel(p.current)},[]),g=>{Lt.cancel(p.current),p.current=Lt(()=>{f(g)})}},CC={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},E2=e=>{const{children:t,disabled:o,component:r,colorSource:i}=e,{getPrefixCls:l,wave:u}=c.useContext(St),f=c.useRef(null),p=l("wave"),m=LA(p),g=UA(f,W(p,m),r,i);if(ce.useEffect(()=>{const v=f.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||o)return;const x=R=>{!s0(R.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||g(R)},C=u?.triggerType,S=C&&C in CC?CC[C]:"click";return v.addEventListener(S,x,!0),()=>{v.removeEventListener(S,x,!0)}},[o,u?.triggerType]),!ce.isValidElement(t))return t??null;const b=Ms(t)?oo(vi(t),f):f;return Io(t,{ref:b})},bo=e=>{const t=ce.useContext($s);return ce.useMemo(()=>e?Oa(e)?e??t:mn(e)?e(t):t:t,[e,t])},WA=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},GA=Qt(["Space","Compact"],WA,()=>({}),{resetStyle:!1}),$f=c.createContext(null),zs=(e,t)=>{const o=c.useContext($f),r=c.useMemo(()=>{if(!o)return"";const{compactDirection:i,isFirstItem:l,isLastItem:u}=o,f=i==="vertical"?"-vertical-":"-";return W(`${e}-compact${f}item`,{[`${e}-compact${f}first-item`]:l,[`${e}-compact${f}last-item`]:u,[`${e}-compact${f}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},XA=e=>{const{children:t}=e;return c.createElement($f.Provider,{value:null},t)},kA=e=>{const{children:t,...o}=e;return c.createElement($f.Provider,{value:c.useMemo(()=>o,[o])},t)},w2=e=>{const{getPrefixCls:t,direction:o}=c.useContext(St),{size:r,direction:i,orientation:l,block:u,prefixCls:f,className:p,rootClassName:m,children:g,vertical:b,...v}=e,[x,C]=g2(l,b,i),S=bo(z=>r??z),R=t("space-compact",f),[E]=GA(R),N=W(R,E,{[`${R}-rtl`]:o==="rtl",[`${R}-block`]:u,[`${R}-vertical`]:C},p,m),$=c.useContext($f),w=Ao(g),T=c.useMemo(()=>w.map((z,A)=>{const P=z?.key||`${R}-item-${A}`;return c.createElement(kA,{key:P,compactSize:S,compactDirection:x,isFirstItem:A===0&&(!$||$?.isFirstItem),isLastItem:A===w.length-1&&(!$||$?.isLastItem)},z)}),[w,$,x,S,R]);return w.length===0?null:c.createElement("div",{className:N,...v},T)},N2=c.createContext(void 0),YA=e=>{const{getPrefixCls:t,direction:o}=c.useContext(St),{prefixCls:r,size:i,className:l,...u}=e,f=t("btn-group",r),[,,p]=Ko(),m=c.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),g=W(f,{[`${f}-${m}`]:m,[`${f}-rtl`]:o==="rtl"},l,p);return c.createElement(N2.Provider,{value:i},c.createElement("div",{...u,className:g}))},$C=/^[\u4E00-\u9FA5]{2}$/,Hh=$C.test.bind($C);function R2(e){return e==="danger"?{danger:!0}:{type:e}}function fg(e){return e==="text"||e==="link"}function KA(e,t,o,r){if(!hr(e))return;const i=t?" ":"";return!Oa(e)&&!ko(e)&&Oa(e.type)&&Hh(e.props.children)?Io(e,l=>{const u=W(l.className,r)||void 0,f={...o,...l.style};return{...l,children:l.children.split("").join(i),className:u,style:f}}):Oa(e)?ce.createElement("span",{className:r,style:o},Hh(e)?e.split("").join(i):e):t2(e)?ce.createElement("span",{className:r,style:o},e):Io(e,l=>({...l,className:W(l.className,r)||void 0,style:{...l.style,...o}}))}function QA(e,t,o,r){let i=!1;const l=[];return ce.Children.forEach(e,u=>{const f=Oa(u)||ko(u);if(i&&f){const p=l.length-1,m=l[p];l[p]=`${m}${u}`}else l.push(u);i=f}),ce.Children.map(l,u=>KA(u,t,o,r))}["default","primary","danger"].concat(ho(Aa));const M2=c.forwardRef((e,t)=>{const{className:o,style:r,children:i,prefixCls:l}=e,u=W(`${l}-icon`,o);return ce.createElement("span",{ref:t,className:u,style:r},i)}),EC=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,iconClassName:l}=e,u=W(`${o}-loading-icon`,r);return ce.createElement(M2,{prefixCls:o,className:u,style:i,ref:t},ce.createElement(Sf,{className:l}))}),mg=()=>({width:0,opacity:0,transform:"scale(0)"}),pg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ZA=e=>{const{prefixCls:t,loading:o,existIcon:r,className:i,style:l,mount:u}=e,f=!!o;return r?ce.createElement(EC,{prefixCls:t,className:i,style:l}):ce.createElement(no,{visible:f,motionName:`${t}-loading-icon-motion`,motionAppear:!u,motionEnter:!u,motionLeave:!u,removeOnLeave:!0,onAppearStart:mg,onAppearActive:pg,onEnterStart:mg,onEnterActive:pg,onLeaveStart:pg,onLeaveActive:mg},({className:p,style:m},g)=>{const b={...l,...m};return ce.createElement(EC,{prefixCls:t,className:W(i,p),style:b,ref:g})})},JA=e=>{const{componentCls:t,antCls:o,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${o}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(l=>`${l} ${r} ${i}`).join(", ")} !important`}},[`${o}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(l=>`${l} ${r} ${i}`).join(", ")} !important`}}}},wC=e=>({animationDuration:e,animationFillMode:"both"}),Ef=(e,t,o,r,i=!1)=>{const l=i?"&":"";return{[`
|
|
135
|
-
${l}${e}-enter,
|
|
136
|
-
${l}${e}-appear
|
|
137
|
-
`]:{...wC(r),animationPlayState:"paused"},[`${l}${e}-leave`]:{...wC(r),animationPlayState:"paused"},[`
|
|
138
|
-
${l}${e}-enter${e}-enter-active,
|
|
139
|
-
${l}${e}-appear${e}-appear-active
|
|
140
|
-
`]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}},e5=new Ct("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),t5=new Ct("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),T2=(e,t=!1)=>{const{antCls:o}=e,r=`${o}-fade`,i=t?"&":"";return[Ef(r,e5,t5,e.motionDurationMid,t),{[`
|
|
141
|
-
${i}${r}-enter,
|
|
142
|
-
${i}${r}-appear
|
|
143
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},n5=new Ct("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o5=new Ct("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),r5=new Ct("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a5=new Ct("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),i5=new Ct("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s5=new Ct("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),l5=new Ct("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c5=new Ct("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),u5={"move-up":{inKeyframes:l5,outKeyframes:c5},"move-down":{inKeyframes:n5,outKeyframes:o5},"move-left":{inKeyframes:r5,outKeyframes:a5},"move-right":{inKeyframes:i5,outKeyframes:s5}},NC=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=u5[t];return[Ef(r,i,l,e.motionDurationMid),{[`
|
|
144
|
-
${r}-enter,
|
|
145
|
-
${r}-appear
|
|
146
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},M0=new Ct("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),T0=new Ct("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),O0=new Ct("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),z0=new Ct("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),d5=new Ct("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),f5=new Ct("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),m5=new Ct("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p5=new Ct("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),g5={"slide-up":{inKeyframes:M0,outKeyframes:T0},"slide-down":{inKeyframes:O0,outKeyframes:z0},"slide-left":{inKeyframes:d5,outKeyframes:f5},"slide-right":{inKeyframes:m5,outKeyframes:p5}},ws=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=g5[t];return[Ef(r,i,l,e.motionDurationMid),{[`
|
|
147
|
-
${r}-enter,
|
|
148
|
-
${r}-appear
|
|
149
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},h5=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),b5=new Ct("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),v5=new Ct("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),RC=new Ct("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),MC=new Ct("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),y5=new Ct("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),x5=new Ct("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),S5=new Ct("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),C5=new Ct("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),$5=new Ct("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),E5=new Ct("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),w5=new Ct("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),N5=new Ct("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),R5={zoom:{inKeyframes:b5,outKeyframes:v5},"zoom-big":{inKeyframes:RC,outKeyframes:MC},"zoom-big-fast":{inKeyframes:RC,outKeyframes:MC},"zoom-left":{inKeyframes:S5,outKeyframes:C5},"zoom-right":{inKeyframes:$5,outKeyframes:E5},"zoom-up":{inKeyframes:y5,outKeyframes:x5},"zoom-down":{inKeyframes:w5,outKeyframes:N5}},A0=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=R5[t];return[Ef(r,i,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
150
|
-
${r}-enter,
|
|
151
|
-
${r}-appear
|
|
152
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},TC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),M5=e=>{const{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:i,colorErrorHover:l}=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:o}},TC(`${t}-primary`,i),TC(`${t}-danger`,l)]}},gg=e=>Math.round(Number(e||0)),T5=e=>{if(e instanceof En)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...o}=e;return{...o,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class oc extends En{constructor(t){super(T5(t))}toHsbString(){const t=this.toHsb(),o=gg(t.s*100),r=gg(t.b*100),i=gg(t.h),l=t.a,u=`hsb(${i}, ${o}%, ${r}%)`,f=`hsba(${i}, ${o}%, ${r}%, ${l.toFixed(l===0?0:2)})`;return l===1?u:f}toHsb(){const{v:t,...o}=this.toHsv();return{...o,b:t,a:this.a}}}const O5=e=>e instanceof oc?e:new oc(e);O5("#1677ff");const z5=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",A5=(e,t)=>e?z5(e,t):"";let Dh=(function(){function e(t){if(mc(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:i})=>({color:new e(r),percent:i})),this.metaColor=new oc(this.colors[0].color.metaColor)):this.metaColor=new oc(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return pc(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return A5(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:o}=this;return o?`linear-gradient(90deg, ${o.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((r,i)=>{const l=o.colors[i];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===o.toHexString()}}])})();var Ku={},OC;function I5(){if(OC)return Ku;OC=1,Object.defineProperty(Ku,"__esModule",{value:!0});var e={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"};return Ku.default=e,Ku}var P5=I5();const j5=Xt(P5);function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Lh.apply(this,arguments)}const B5=(e,t)=>c.createElement(Zt,Lh({},e,{ref:t,icon:j5})),zC=c.forwardRef(B5);function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mr.apply(null,arguments)}const _5=e=>e instanceof Dh?e:new Dh(e),H5=(e,t)=>{const{r:o,g:r,b:i,a:l}=e.toRgb(),u=new oc(e.toRgbString()).onBackground(t).toHsv();return l<=.5?u.v>.5:o*.299+r*.587+i*.114>192},O2=e=>{const{paddingInline:t,onlyIconSize:o,borderColorDisabled:r}=e;return Gt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:r})},z2=e=>{const t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??jd(t),l=e.contentLineHeightSM??jd(o),u=e.contentLineHeightLG??jd(r),f=H5(new Dh(e.colorBgSolid),"#fff")?"#000":"#fff",p=Aa.reduce((b,v)=>({...b,[`${v}ShadowColor`]:`0 ${re(e.controlOutlineWidth)} 0 ${Dl(e[`${v}1`],e.colorBgContainer)}`}),{}),m=e.colorBgContainerDisabled,g=e.colorBgContainerDisabled;return{...p,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,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:f,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:l,contentLineHeightLG:u,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*l)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*u)/2-e.lineWidth,0),defaultBgDisabled:m,dashedBgDisabled:g}},D5=e=>{const{componentCls:t,antCls:o,lineWidth:r,lineType:i}=e,[l,u]=Vt(o,"btn");return{[t]:[{[l("border-width")]:r,[l("border-color")]:"#000",[l("border-color-hover")]:u("border-color"),[l("border-color-active")]:u("border-color"),[l("border-color-disabled")]:u("border-color"),[l("border-style")]:i,[l("text-color")]:"#000",[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color"),[l("text-color-disabled")]:u("text-color"),[l("bg-color")]:"#ddd",[l("bg-color-hover")]:u("bg-color"),[l("bg-color-active")]:u("bg-color"),[l("bg-color-disabled")]:e.colorBgContainerDisabled,[l("bg-color-container")]:e.colorBgContainer,[l("shadow")]:"none"},{border:[u("border-width"),u("border-style"),u("border-color")].join(" "),color:u("text-color"),backgroundColor:u("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[u("border-width"),u("border-style"),u("border-color-hover")].join(" "),color:u("text-color-hover"),backgroundColor:u("bg-color-hover")},"&:active":{border:[u("border-width"),u("border-style"),u("border-color-active")].join(" "),color:u("text-color-active"),backgroundColor:u("bg-color-active")}}},{[`&${t}-variant-solid`]:{[l("solid-bg-color")]:u("color-base"),[l("solid-bg-color-hover")]:u("color-hover"),[l("solid-bg-color-active")]:u("color-active"),[l("border-color")]:"transparent",[l("text-color")]:e.colorTextLightSolid,[l("bg-color")]:u("solid-bg-color"),[l("bg-color-hover")]:u("solid-bg-color-hover"),[l("bg-color-active")]:u("solid-bg-color-active"),boxShadow:u("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("border-color")]:u("color-base"),[l("border-color-hover")]:u("color-hover"),[l("border-color-active")]:u("color-active"),[l("bg-color")]:u("bg-color-container"),[l("text-color")]:u("color-base"),[l("text-color-hover")]:u("color-hover"),[l("text-color-active")]:u("color-active"),boxShadow:u("shadow")},[`&${t}-variant-dashed`]:{[l("border-style")]:"dashed",[l("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[l("border-color")]:"transparent",[l("text-color")]:u("color-base"),[l("bg-color")]:u("color-light"),[l("bg-color-hover")]:u("color-light-hover"),[l("bg-color-active")]:u("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[l("border-color")]:"transparent",[l("text-color")]:u("color-base"),[l("text-color-hover")]:u("color-hover"),[l("text-color-active")]:u("color-active"),[l("bg-color")]:"transparent",[l("bg-color-hover")]:"transparent",[l("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[l("bg-color-hover")]:u("color-light"),[l("bg-color-active")]:u("color-light-active")}},{[`&${t}-variant-link`]:{[l("color-base")]:e.colorLink,[l("color-hover")]:e.colorLinkHover,[l("color-active")]:e.colorLinkActive,[l("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[l("color-base")]:e.colorPrimary,[l("color-hover")]:e.colorPrimaryHover,[l("color-active")]:e.colorPrimaryActive,[l("color-light")]:e.colorPrimaryBg,[l("color-light-hover")]:e.colorPrimaryBgHover,[l("color-light-active")]:e.colorPrimaryBorder,[l("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.primaryColor,[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")}},[`&${t}-color-dangerous`]:{[l("color-base")]:e.colorError,[l("color-hover")]:e.colorErrorHover,[l("color-active")]:e.colorErrorActive,[l("color-light")]:e.colorErrorBg,[l("color-light-hover")]:e.colorErrorBgFilledHover,[l("color-light-active")]:e.colorErrorBgActive,[l("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.dangerColor,[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")}},[`&${t}-color-default`]:{[l("solid-bg-color")]:e.colorBgSolid,[l("solid-bg-color-hover")]:e.colorBgSolidHover,[l("solid-bg-color-active")]:e.colorBgSolidActive,[l("color-base")]:e.defaultBorderColor,[l("color-hover")]:e.defaultHoverBorderColor,[l("color-active")]:e.defaultActiveBorderColor,[l("color-light")]:e.colorFillTertiary,[l("color-light-hover")]:e.colorFillSecondary,[l("color-light-active")]:e.colorFill,[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[l("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[l("text-color")]:e.solidTextColor,[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("bg-color-container")]:e.defaultBg,[l("bg-color-hover")]:e.defaultHoverBg,[l("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[l("text-color")]:e.textTextColor,[l("text-color-hover")]:e.textTextHoverColor,[l("text-color-active")]:e.textTextActiveColor,[l("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultGhostColor,[l("border-color")]:e.defaultGhostBorderColor}}}},Aa.map(f=>{const p=e[`${f}6`],m=e[`${f}1`],g=e[`${f}Hover`],b=e[`${f}2`],v=e[`${f}3`],x=e[`${f}Active`],C=e[`${f}ShadowColor`];return{[`&${t}-color-${f}`]:{[l("color-base")]:p,[l("color-hover")]:g,[l("color-active")]:x,[l("color-light")]:m,[l("color-light-hover")]:b,[l("color-light-active")]:v,[l("shadow")]:C}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:u("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[l("bg-color")]:e.ghostBg,[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg,[l("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg}}}]}},L5=e=>{const{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:i,motionDurationSlow:l,motionEaseInOut:u,iconGap:f,calc:p}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:f,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...h5(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:hf(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[o]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":Fr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${l} ${u}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:p(f).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:p(f).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:p(f).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:p(f).mul(-1).equal()}}}}}},V5=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),I0=(e,t="")=>{const{componentCls:o,controlHeight:r,fontSize:i,borderRadius:l,buttonPaddingHorizontal:u,iconCls:f,buttonPaddingVertical:p,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:i,height:r,padding:`${re(p)} ${re(u)}`,borderRadius:l,[`&${o}-icon-only`]:{width:r,[f]:{fontSize:m}}}},{[`${o}${o}-circle${t}`]:V5(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},F5=e=>{const t=Gt(e,{fontSize:e.contentFontSize});return I0(t,e.componentCls)},q5=e=>{const t=Gt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return I0(t,`${e.componentCls}-sm`)},U5=e=>{const t=Gt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return I0(t,`${e.componentCls}-lg`)},W5=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},G5=Qt("Button",e=>{const t=O2(e);return[L5(t),F5(t),q5(t),U5(t),W5(t),D5(t),M5(t)]},z2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function X5(e,t,o,r){const{focusElCls:i,focus:l,borderElCls:u}=o,f=u?"> *":"",p=f?` ${f}`:"",m=v=>v.filter(Boolean).map(x=>`&:${x}${p}`).join(","),g=m(["hover",i?`hover${i}`:null]),b=m([l?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[b]:{zIndex:3},[g]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${f}`]:{zIndex:0}}}}function k5(e,t,o){const{borderElCls:r}=o,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function wf(e,t={focus:!0}){const{componentCls:o}=e,{componentCls:r}=t,i=r||o,l=`${i}-compact`;return{[l]:{...X5(e,l,t,i),...k5(i,l,t)}}}function Y5(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function K5(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 Q5(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Y5(e,t,e.componentCls),...K5(e.componentCls,t)}}}const Z5=e=>{const{antCls:t,componentCls:o,lineWidth:r,calc:i,colorBgContainer:l}=e,u=`${o}-variant-solid:not([disabled])`,f=i(r).mul(-1).equal(),[p,m]=Vt(t,"btn"),g=b=>({[`${o}-compact${b?"-vertical":""}-item`]:{[p("compact-connect-border-color")]:m("bg-color-hover"),[`&${u}`]:{transition:"none",[`& + ${u}:before`]:[{position:"absolute",backgroundColor:m("compact-connect-border-color"),content:'""'},b?{top:f,insetInline:f,height:r}:{insetBlock:f,insetInlineStart:f,width:r}],"&:hover:before":{display:"none"}}}});return[g(),g(!0),{[`${u}${o}-color-default`]:{[p("compact-connect-border-color")]:`color-mix(in srgb, ${m("bg-color-hover")} 75%, ${l})`}}]},J5=bf(["Button","compact"],e=>{const t=O2(e);return[wf(t),Q5(t),Z5(t)]},z2);function e8(e){if(Wt(e)){let t=e?.delay;return t=ko(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const t8={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},n8=ce.forwardRef((e,t)=>{const{_skipSemantic:o,loading:r=!1,prefixCls:i,color:l,variant:u,type:f,danger:p=!1,shape:m,size:g,disabled:b,className:v,rootClassName:x,children:C,icon:S,iconPosition:R,iconPlacement:E,ghost:N=!1,block:$=!1,htmlType:w="button",classNames:T,styles:z,style:A,autoInsertSpace:P,autoFocus:B,...D}=e,I=Ao(C),H=f||"default",{getPrefixCls:X,direction:Z,autoInsertSpace:U,className:L,style:q,classNames:F,styles:J,loadingIcon:Q,shape:j,color:V,variant:k}=Kt("button"),G=m||j||"default",[K,te]=c.useMemo(()=>{if(l&&u)return[l,u];if(f||p){const et=t8[H]||[];return p?["danger",et[1]]:et}return u==="solid"?["primary",u]:V&&k?[V,k]:k==="solid"?["primary",k]:["default","outlined"]},[l,u,f,p,V,k,H]),[Y,ie]=c.useMemo(()=>N&&te==="solid"?[K,"outlined"]:[K,te],[K,te,N]),se=Y==="danger",ae=se?"dangerous":Y,me=P??U??!0,ne=X("btn",i),[ue,he]=G5(ne),ge=c.useContext(qr),Se=b??ge,$e=c.useContext(N2),ye=c.useMemo(()=>e8(r),[r]),[xe,Ce]=c.useState(ye.loading),[we,Be]=c.useState(!1),Te=c.useRef(null),He=kr(t,Te),nt=I.length===1&&!S&&!fg(ie),Ke=c.useRef(!0);ce.useEffect(()=>(Ke.current=!1,()=>{Ke.current=!0}),[]),un(()=>{let et=null;ye.delay>0?et=setTimeout(()=>{et=null,Ce(!0)},ye.delay):Ce(ye.loading);function Ot(){et&&(clearTimeout(et),et=null)}return Ot},[ye.delay,ye.loading]),c.useEffect(()=>{if(!Te.current||!me)return;const et=Te.current.textContent||"";nt&&Hh(et)?we||Be(!0):we&&Be(!1)}),c.useEffect(()=>{B&&Te.current?.focus()},[]);const Fe=ce.useCallback(et=>{if(xe||Se){et.preventDefault();return}e.onClick?.(("href"in e,et))},[e.onClick,xe,Se]),{compactSize:qe,compactItemClassnames:Je}=zs(ne,Z),Ue=bo(et=>g??qe??$e??et),Pe=xe?"loading":S,_e=E??R??"start",Xe=xn(D,["navigate"]),De={...e,type:H,color:Y,variant:ie,danger:se,shape:G,size:Ue,disabled:Se,loading:xe,iconPlacement:_e},Oe=pn(q),Qe=pn(A),[ze,Ie]=dn([o?void 0:F,T],[o?void 0:J,Oe,z,Qe],{props:De}),We=W(ne,ue,he,{[`${ne}-${G}`]:G!=="default"&&G!=="square"&&G,[`${ne}-${H}`]:H,[`${ne}-dangerous`]:p,[`${ne}-color-${ae}`]:ae,[`${ne}-variant-${ie}`]:ie,[`${ne}-lg`]:Ue==="large",[`${ne}-sm`]:Ue==="small",[`${ne}-icon-only`]:!C&&C!==0&&!!Pe,[`${ne}-background-ghost`]:N&&!fg(ie),[`${ne}-loading`]:xe,[`${ne}-two-chinese-chars`]:we&&me&&!xe,[`${ne}-block`]:$,[`${ne}-rtl`]:Z==="rtl",[`${ne}-icon-end`]:_e==="end"},Je,v,x,L,ze.root),Ye={className:ze.icon,style:Ie.icon},rt=et=>ce.createElement(M2,{prefixCls:ne,...Ye},et),ct=ce.createElement(ZA,{existIcon:!!S,prefixCls:ne,loading:xe,mount:Ke.current,...Ye}),it=Wt(r)&&r.icon||Q;let yt;S&&!xe?yt=rt(S):r&&it?yt=rt(it):yt=ct;const Et=hr(C)?QA(C,nt&&me,Ie.content,ze.content):null;if(Xe.href!==void 0)return ce.createElement("a",{...Xe,className:W(We,{[`${ne}-disabled`]:Se}),href:Se?void 0:Xe.href,style:Ie.root,onClick:Fe,ref:He,tabIndex:Se?-1:0,"aria-disabled":Se},yt,Et);let Tt=ce.createElement("button",{...D,type:w,className:We,style:Ie.root,onClick:Fe,disabled:Se,ref:He},yt,Et,Je&&ce.createElement(J5,{prefixCls:ne}));return fg(ie)||(Tt=ce.createElement(E2,{component:"Button",disabled:xe},Tt)),Tt}),to=n8;to.Group=YA;to.__ANT_BUTTON=!0;const A2=e=>{const{type:t,children:o,prefixCls:r,buttonProps:i,close:l,autoFocus:u,emitEvent:f,isSilent:p,quitOnNullishReturnValue:m,actionFn:g}=e,b=c.useRef(!1),v=c.useRef(null),[x,C]=IE(!1),S=(...N)=>{l?.(...N)};c.useEffect(()=>{let N=null;return u&&(N=setTimeout(()=>{v.current?.focus({preventScroll:!0})})),()=>{N&&clearTimeout(N)}},[u]);const R=N=>{lg(N)&&(C(!0),N.then((...$)=>{C(!1,!0),S.apply(void 0,$),b.current=!1},$=>{if(C(!1,!0),b.current=!1,!p?.())return Promise.reject($)}))},E=N=>{if(b.current)return;if(b.current=!0,!g){S();return}let $;if(f){if($=g(N),m&&!lg($)){b.current=!1,S(N);return}}else if(g.length)$=g(l),b.current=!1;else if($=g(),!lg($)){S();return}R($)};return c.createElement(to,{...R2(t),onClick:E,loading:x,prefixCls:r,...i,ref:v},o)},yc=ce.createContext({}),{Provider:I2}=yc,AC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:i,rootPrefixCls:l,close:u,onCancel:f,onConfirm:p,onClose:m}=c.useContext(yc);return i?ce.createElement(A2,{isSilent:r,actionFn:f,close:(...g)=>{u?.(...g),p?.(!1),m?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},o):null},IC=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:i,okTextLocale:l,okType:u,onConfirm:f,onOk:p,onClose:m}=c.useContext(yc);return ce.createElement(A2,{isSilent:o,type:u||"primary",actionFn:p,close:(...g)=>{t?.(...g),f?.(!0),m?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},l)},P2=c.createContext({});function PC(e,t,o){let r=t;return!r&&o&&(r=`${e}-${o}`),r}function jC(e,t){let o=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){const i=e.document;o=i.documentElement[r],typeof o!="number"&&(o=i.body[r])}return o}function o8(e){const t=e.getBoundingClientRect(),o={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return o.left+=jC(i),o.top+=jC(i,!0),o}const r8=c.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Kd.apply(this,arguments)}const a8=ce.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,title:l,ariaId:u,footer:f,closable:p,closeIcon:m,onClose:g,children:b,bodyStyle:v,bodyProps:x,modalRender:C,onMouseDown:S,onMouseUp:R,holderRef:E,visible:N,forceRender:$,width:w,height:T,classNames:z,styles:A,isFixedPos:P,focusTrap:B}=e,{panel:D}=ce.useContext(P2),I=c.useRef(null),H=kr(E,D,I),[X]=FE(N&&P&&B!==!1,()=>I.current);ce.useImperativeHandle(t,()=>({focus:()=>{I.current?.focus({preventScroll:!0})}}));const Z={};w!==void 0&&(Z.width=w),T!==void 0&&(Z.height=T);const U=f?ce.createElement("div",{className:W(`${o}-footer`,z?.footer),style:{...A?.footer}},f):null,L=l?ce.createElement("div",{className:W(`${o}-header`,z?.header),style:{...A?.header}},ce.createElement("div",{className:W(`${o}-title`,z?.title),id:u,style:{...A?.title}},l)):null,q=c.useMemo(()=>typeof p=="object"&&p!==null?p:p?{closeIcon:m??ce.createElement("span",{className:`${o}-close-x`})}:{},[p,m,o]),F=Qn(q,!0),J=typeof p=="object"&&p.disabled,Q=p?ce.createElement("button",Kd({type:"button",onClick:g,"aria-label":"Close"},F,{className:W(`${o}-close`,z?.close),disabled:J,style:A?.close}),q.closeIcon):null,j=ce.createElement("div",{className:W(`${o}-container`,z?.container),style:A?.container},Q,L,ce.createElement("div",Kd({className:W(`${o}-body`,z?.body),style:{...v,...A?.body}},x),b),U);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?u:null,"aria-modal":"true",ref:H,style:{...i,...Z},className:W(o,r),onMouseDown:S,onMouseUp:R,tabIndex:-1,onFocus:V=>{X(V.target)}},ce.createElement(r8,{shouldUpdate:N||$},C?C(j):j))});function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Vh.apply(this,arguments)}const i8=c.forwardRef((e,t)=>{const{prefixCls:o,title:r,style:i,className:l,visible:u,forceRender:f,destroyOnHidden:p,motionName:m,ariaId:g,onVisibleChanged:b,mousePosition:v}=e,x=c.useRef(null),C=c.useRef(null);c.useImperativeHandle(t,()=>({...C.current,inMotion:x.current.inMotion,enableMotion:x.current.enableMotion}));const[S,R]=c.useState(),E={};S&&(E.transformOrigin=S);function N(){if(!x.current?.nativeElement)return;const $=o8(x.current.nativeElement);R(v&&(v.x||v.y)?`${v.x-$.left}px ${v.y-$.top}px`:"")}return c.createElement(no,{visible:u,onVisibleChanged:b,onAppearPrepare:N,onEnterPrepare:N,forceRender:f,motionName:m,removeOnLeave:p,ref:x},({className:$,style:w},T)=>c.createElement(a8,Vh({},e,{ref:C,title:r,ariaId:g,prefixCls:o,holderRef:T,style:{...w,...i,...E},className:W(l,$)})))});function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fh.apply(this,arguments)}const s8=e=>{const{prefixCls:t,style:o,visible:r,maskProps:i,motionName:l,className:u}=e;return c.createElement(no,{key:"mask",visible:r,motionName:l,leavedClassName:`${t}-mask-hidden`},({className:f,style:p},m)=>c.createElement("div",Fh({ref:m,style:{...p,...o},className:W(`${t}-mask`,f,u)},i)))};function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Xl.apply(this,arguments)}const l8=e=>{const{prefixCls:t="rc-dialog",zIndex:o,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:l,wrapClassName:u,wrapProps:f,onClose:p,afterOpenChange:m,afterClose:g,transitionName:b,animation:v,closable:x=!0,mask:C=!0,maskTransitionName:S,maskAnimation:R,maskClosable:E=!0,maskStyle:N,maskProps:$,rootClassName:w,rootStyle:T,classNames:z,styles:A}=e,P=c.useRef(null),B=c.useRef(null),D=c.useRef(null),[I,H]=c.useState(r),[X,Z]=c.useState(!1),U=Xr();function L(){Lg(B.current,document.activeElement)||(P.current=document.activeElement)}function q(){Lg(B.current,document.activeElement)||D.current?.focus()}function F(){if(H(!1),C&&P.current&&i){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}I&&g?.()}function J(K){K?q():F(),m?.(K)}function Q(K){p?.(K)}const j=c.useRef(!1);let V=null;E&&(V=K=>{B.current===K.target&&j.current&&Q(K)});function k(K){j.current=K.target===B.current}c.useEffect(()=>{if(r){if(j.current=!1,H(!0),L(),B.current){const K=getComputedStyle(B.current);Z(K.position==="fixed")}}else I&&D.current.enableMotion()&&!D.current.inMotion()&&F()},[r]);const G={zIndex:o,...l,...A?.wrapper,display:I?null:"none"};return c.createElement("div",Xl({className:W(`${t}-root`,w),style:T},Qn(e,{data:!0})),c.createElement(s8,{prefixCls:t,visible:C&&r,motionName:PC(t,S,R),style:{zIndex:o,...N,...A?.mask},maskProps:$,className:z?.mask}),c.createElement("div",Xl({className:W(`${t}-wrap`,u,z?.wrapper),ref:B,onClick:V,onMouseDown:k,style:G},f),c.createElement(i8,Xl({},e,{isFixedPos:X,ref:D,closable:x,ariaId:U,prefixCls:t,visible:r&&I,onClose:Q,onVisibleChanged:J,motionName:PC(t,b,v)}))))};function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},qh.apply(this,arguments)}const c8=e=>{const{visible:t,getContainer:o,forceRender:r,destroyOnHidden:i=!1,afterClose:l,closable:u,panelRef:f,keyboard:p=!0,scrollLock:m=!0,onClose:g}=e,{scrollLock:b,...v}=e,[x,C]=c.useState(t),S=c.useMemo(()=>({panel:f}),[f]),R=({top:E,event:N})=>{if(E&&p){N.stopPropagation(),g?.(N);return}};return c.useEffect(()=>{t&&C(!0)},[t]),!r&&i&&!x?null:c.createElement(P2.Provider,{value:S},c.createElement(hc,{open:t||r||x,onEsc:R,autoDestroy:!1,getContainer:o,autoLock:m&&(t||x)},c.createElement(l8,qh({},v,{destroyOnHidden:i,afterClose:()=>{const E=u&&typeof u=="object"?u:{},{afterClose:N}=E||{};N?.(),l?.(),C(!1)}}))))},si="RC_FORM_INTERNAL_HOOKS",cn=()=>{Yn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ns=c.createContext({getFieldValue:cn,getFieldsValue:cn,getFieldError:cn,getFieldWarning:cn,getFieldsError:cn,isFieldsTouched:cn,isFieldTouched:cn,isFieldValidating:cn,isFieldsValidating:cn,resetFields:cn,setFields:cn,setFieldValue:cn,setFieldsValue:cn,validateFields:cn,submit:cn,getInternalHooks:()=>(cn(),{dispatch:cn,initEntityValue:cn,registerField:cn,useSubscribe:cn,setInitialValues:cn,destroyForm:cn,setCallbacks:cn,registerWatch:cn,getFields:cn,setValidateMessages:cn,setPreserve:cn,getInitialValue:cn})}),Qd=c.createContext(null);function Uh(e){return e==null?[]:Array.isArray(e)?e:[e]}function u8(e){return e&&!!e._init}function Wh(){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(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const hg=Wh(),d8=/%[sdj%]/g;let f8=()=>{};function Gh(e){if(!e||!e.length)return null;const t={};return e.forEach(o=>{const r=o.field;t[r]=t[r]||[],t[r].push(o)}),t}function Mo(e,...t){let o=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(d8,l=>{if(l==="%%")return"%";if(o>=r)return l;switch(l){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return l}}):e}function m8(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||m8(t)&&typeof e=="string"&&!e)}function p8(e,t,o){const r=[];let i=0;const l=e.length;function u(f){r.push(...f||[]),i++,i===l&&o(r)}e.forEach(f=>{t(f,u)})}function BC(e,t,o){let r=0;const i=e.length;function l(u){if(u&&u.length){o(u);return}const f=r;r=r+1,f<i?t(e[f],l):o([])}l([])}function g8(e){const t=[];return Object.keys(e).forEach(o=>{t.push(...e[o]||[])}),t}class _C extends Error{errors;fields;constructor(t,o){super("Async Validation Error"),this.errors=t,this.fields=o}}function h8(e,t,o,r,i){if(t.first){const b=new Promise((v,x)=>{const C=R=>(r(R),R.length?x(new _C(R,Gh(R))):v(i)),S=g8(e);BC(S,o,C)});return b.catch(v=>v),b}const l=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length;let p=0;const m=[],g=new Promise((b,v)=>{const x=C=>{if(m.push.apply(m,C),p++,p===f)return r(m),m.length?v(new _C(m,Gh(m))):b(i)};u.length||(r(m),b(i)),u.forEach(C=>{const S=e[C];l.indexOf(C)!==-1?BC(S,o,x):p8(S,o,x)})});return g.catch(b=>b),g}function b8(e){return!!(e&&e.message!==void 0)}function v8(e,t){let o=e;for(let r=0;r<t.length;r++){if(o==null)return o;o=o[t[r]]}return o}function HC(e,t){return o=>{let r;return e.fullFields?r=v8(t,e.fullFields):r=t[o.field||e.fullField],b8(o)?(o.field=o.field||e.fullField,o.fieldValue=r,o):{message:typeof o=="function"?o():o,fieldValue:r,field:o.field||e.fullField}}}function DC(e,t){if(t){for(const o in t)if(t.hasOwnProperty(o)){const r=t[o];typeof r=="object"&&typeof e[o]=="object"?e[o]={...e[o],...r}:e[o]=r}}return e}const os="enum",y8=(e,t,o,r,i)=>{e[os]=Array.isArray(e[os])?e[os]:[],e[os].indexOf(t)===-1&&r.push(Mo(i.messages[os],e.fullField,e[os].join(", ")))},x8=(e,t,o,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Mo(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(Mo(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},S8=(e,t,o,r,i)=>{const l=typeof e.len=="number",u=typeof e.min=="number",f=typeof e.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let m=t,g=null;const b=typeof t=="number",v=typeof t=="string",x=Array.isArray(t);if(b?g="number":v?g="string":x&&(g="array"),!g)return!1;x&&(m=t.length),v&&(m=t.replace(p,"_").length),l?m!==e.len&&r.push(Mo(i.messages[g].len,e.fullField,e.len)):u&&!f&&m<e.min?r.push(Mo(i.messages[g].min,e.fullField,e.min)):f&&!u&&m>e.max?r.push(Mo(i.messages[g].max,e.fullField,e.max)):u&&f&&(m<e.min||m>e.max)&&r.push(Mo(i.messages[g].range,e.fullField,e.min,e.max))},j2=(e,t,o,r,i,l)=>{e.required&&(!o.hasOwnProperty(e.field)||Hn(t,l||e.type))&&r.push(Mo(i.messages.required,e.fullField))};let Qu;const C8=(()=>{if(Qu)return Qu;const e="[a-fA-F\\d:]",t=T=>T&&T.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",o="(?: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}",u=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${o}|:${r}|:)`,`(?:${r}:){5}(?::${o}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${o}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${o}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${o}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${o}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${o}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,f=new RegExp(`(?:^${o}$)|(?:^${u}$)`),p=new RegExp(`^${o}$`),m=new RegExp(`^${u}$`),g=T=>T&&T.exact?f:new RegExp(`(?:${t(T)}${o}${t(T)})|(?:${t(T)}${u}${t(T)})`,"g");g.v4=T=>T&&T.exact?p:new RegExp(`${t(T)}${o}${t(T)}`,"g"),g.v6=T=>T&&T.exact?m:new RegExp(`${t(T)}${u}${t(T)}`,"g");const b="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",x=g.v4().source,C=g.v6().source,w=`(?:${b}|www\\.)${v}(?:localhost|${x}|${C}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Qu=new RegExp(`(?:^${w}$)`,"i"),Qu}),bg={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},Ll={integer(e){return Ll.number(e)&&parseInt(e,10)===e},float(e){return Ll.number(e)&&!Ll.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!Ll.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(bg.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(bg.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(C8())},hex(e){return typeof e=="string"&&!!e.match(bg.hex)}},$8=(e,t,o,r,i)=>{if(e.required&&t===void 0){j2(e,t,o,r,i);return}const l=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=e.type;l.indexOf(u)>-1?Ll[u](t)||r.push(Mo(i.messages.types[u],e.fullField,e.type)):u&&typeof t!==e.type&&r.push(Mo(i.messages.types[u],e.fullField,e.type))},E8=(e,t,o,r,i)=>{(/^\s+$/.test(t)||t==="")&&r.push(Mo(i.messages.whitespace,e.fullField))},jt={required:j2,whitespace:E8,type:$8,range:S8,enum:y8,pattern:x8},w8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i)}o(l)},N8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return o();jt.required(e,t,r,l,i,"array"),t!=null&&(jt.type(e,t,r,l,i),jt.range(e,t,r,l,i))}o(l)},R8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&jt.type(e,t,r,l,i)}o(l)},M8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"date")&&!e.required)return o();if(jt.required(e,t,r,l,i),!Hn(t,"date")){let f;t instanceof Date?f=t:f=new Date(t),jt.type(e,f,r,l,i),f&&jt.range(e,f.getTime(),r,l,i)}}o(l)},T8="enum",O8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&jt[T8](e,t,r,l,i)}o(l)},z8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&(jt.type(e,t,r,l,i),jt.range(e,t,r,l,i))}o(l)},A8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&(jt.type(e,t,r,l,i),jt.range(e,t,r,l,i))}o(l)},I8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&jt.type(e,t,r,l,i)}o(l)},P8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&(jt.type(e,t,r,l,i),jt.range(e,t,r,l,i))}o(l)},j8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),t!==void 0&&jt.type(e,t,r,l,i)}o(l)},B8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"string")&&!e.required)return o();jt.required(e,t,r,l,i),Hn(t,"string")||jt.pattern(e,t,r,l,i)}o(l)},_8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();jt.required(e,t,r,l,i),Hn(t)||jt.type(e,t,r,l,i)}o(l)},H8=(e,t,o,r,i)=>{const l=[],u=Array.isArray(t)?"array":typeof t;jt.required(e,t,r,l,i,u),o(l)},D8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"string")&&!e.required)return o();jt.required(e,t,r,l,i,"string"),Hn(t,"string")||(jt.type(e,t,r,l,i),jt.range(e,t,r,l,i),jt.pattern(e,t,r,l,i),e.whitespace===!0&&jt.whitespace(e,t,r,l,i))}o(l)},Zu=(e,t,o,r,i)=>{const l=e.type,u=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,l)&&!e.required)return o();jt.required(e,t,r,u,i,l),Hn(t,l)||jt.type(e,t,r,u,i)}o(u)},Pl={string:D8,method:I8,number:P8,boolean:R8,regexp:_8,integer:A8,float:z8,array:N8,object:j8,enum:O8,pattern:B8,date:M8,url:Zu,hex:Zu,email:Zu,tel:Zu,required:H8,any:w8};class Zd{static register=function(o,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Pl[o]=r};static warning=f8;static messages=hg;static validators=Pl;rules=null;_messages=hg;constructor(t){this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(o=>{const r=t[o];this.rules[o]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=DC(Wh(),t)),this._messages}validate(t,o={},r=()=>{}){let i=t,l=o,u=r;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function f(b){let v=[],x={};function C(S){Array.isArray(S)?v=v.concat(...S):v.push(S)}for(let S=0;S<b.length;S++)C(b[S]);v.length?(x=Gh(v),u(v,x)):u(null,i)}if(l.messages){let b=this.messages();b===hg&&(b=Wh()),DC(b,l.messages),l.messages=b}else l.messages=this.messages();const p={};(l.keys||Object.keys(this.rules)).forEach(b=>{const v=this.rules[b];let x=i[b];v.forEach(C=>{let S=C;typeof S.transform=="function"&&(i===t&&(i={...i}),x=i[b]=S.transform(x),x!=null&&(S.type=S.type||(Array.isArray(x)?"array":typeof x))),typeof S=="function"?S={validator:S}:S={...S},S.validator=this.getValidationMethod(S),S.validator&&(S.field=b,S.fullField=S.fullField||b,S.type=this.getType(S),p[b]=p[b]||[],p[b].push({rule:S,value:x,source:i,field:b}))})});const g={};return h8(p,l,(b,v)=>{const x=b.rule;let C=(x.type==="object"||x.type==="array")&&(typeof x.fields=="object"||typeof x.defaultField=="object");C=C&&(x.required||!x.required&&b.value),x.field=b.field;function S(N,$){return{...$,fullField:`${x.fullField}.${N}`,fullFields:x.fullFields?[...x.fullFields,N]:[N]}}function R(N=[]){let $=Array.isArray(N)?N:[N];!l.suppressWarning&&$.length&&Zd.warning("async-validator:",$),$.length&&x.message!==void 0&&x.message!==null&&($=[].concat(x.message));let w=$.map(HC(x,i));if(l.first&&w.length)return g[x.field]=1,v(w);if(!C)v(w);else{if(x.required&&!b.value)return x.message!==void 0?w=[].concat(x.message).map(HC(x,i)):l.error&&(w=[l.error(x,Mo(l.messages.required,x.field))]),v(w);let T={};x.defaultField&&Object.keys(b.value).map(P=>{T[P]=x.defaultField}),T={...T,...b.rule.fields};const z={};Object.keys(T).forEach(P=>{const B=T[P],D=Array.isArray(B)?B:[B];z[P]=D.map(S.bind(null,P))});const A=new Zd(z);A.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),A.validate(b.value,b.rule.options||l,P=>{const B=[];w&&w.length&&B.push(...w),P&&P.length&&B.push(...P),v(B.length?B:null)})}}let E;if(x.asyncValidator)E=x.asyncValidator(x,b.value,R,b.source,l);else if(x.validator){try{E=x.validator(x,b.value,R,b.source,l)}catch(N){console.error?.(N),l.suppressValidatorError||setTimeout(()=>{throw N},0),R(N.message)}E===!0?R():E===!1?R(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||`${x.fullField||x.field} fails`):E instanceof Array?R(E):E instanceof Error&&R(E.message)}E&&E.then&&E.then(()=>R(),N=>R(N))},b=>{f(b)},i)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Pl.hasOwnProperty(t.type))throw new Error(Mo("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const o=Object.keys(t),r=o.indexOf("message");return r!==-1&&o.splice(r,1),o.length===1&&o[0]==="required"?Pl.required:Pl[this.getType(t)]||void 0}}const po="'${name}' is not a valid ${type}",B2={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:po,method:po,array:po,object:po,number:po,date:po,boolean:po,integer:po,float:po,regexp:po,email:po,tel:po,url:po,hex:po},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}"}},LC=Zd;function L8(e,t){return e.replace(/\\?\$\{\w+\}/g,o=>{if(o.startsWith("\\"))return o.slice(1);const r=o.slice(2,-1);return t[r]})}const VC="CODE_LOGIC_ERROR";async function Xh(e,t,o,r,i){const l={...o};if(delete l.ruleIndex,LC.warning=()=>{},l.validator){const v=l.validator;l.validator=(...x)=>{try{return v(...x)}catch(C){return console.error(C),Promise.reject(VC)}}}let u=null;l&&l.type==="array"&&l.defaultField&&(u=l.defaultField,delete l.defaultField);const f=new LC({[e]:[l]}),p=fs(B2,r.validateMessages);f.messages(p);let m=[];try{await Promise.resolve(f.validate({[e]:t},{...r}))}catch(v){v.errors&&(m=v.errors.map(({message:x},C)=>{const S=x===VC?p.default:x;return c.isValidElement(S)?c.cloneElement(S,{key:`error_${C}`}):S}))}if(!m.length&&u&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((x,C)=>Xh(`${e}.${C}`,x,u,r,i)))).reduce((x,C)=>[...x,...C],[]);const g={...o,name:e,enum:(o.enum||[]).join(", "),...i};return m.map(v=>typeof v=="string"?L8(v,g):v)}function V8(e,t,o,r,i,l){const u=e.join("."),f=o.map((m,g)=>{const b=m.validator,v={...m,ruleIndex:g};return b&&(v.validator=(x,C,S)=>{let R=!1;const N=b(x,C,(...$)=>{Promise.resolve().then(()=>{Yn(!R,"Your validator function has already return a promise. `callback` will be ignored."),R||S(...$)})});R=N&&typeof N.then=="function"&&typeof N.catch=="function",Yn(R,"`callback` is deprecated. Please return a promise instead."),R&&N.then(()=>{S()}).catch($=>{S($||" ")})}),v}).sort(({warningOnly:m,ruleIndex:g},{warningOnly:b,ruleIndex:v})=>!!m==!!b?g-v:m?1:-1);let p;if(i===!0)p=new Promise(async(m,g)=>{for(let b=0;b<f.length;b+=1){const v=f[b],x=await Xh(u,t,v,r,l);if(x.length){g([{errors:x,rule:v}]);return}}m([])});else{const m=f.map(g=>Xh(u,t,g,r,l).then(b=>({errors:b,rule:g})));p=(i?q8(m):F8(m)).then(g=>Promise.reject(g))}return p.catch(m=>m),p}async function F8(e){return Promise.all(e).then(t=>[].concat(...t))}async function q8(e){let t=0;return new Promise(o=>{e.forEach(r=>{r.then(i=>{i.errors.length&&o([i]),t+=1,t===e.length&&o([])})})})}function $n(e){return Uh(e)}function FC(e,t){let o={};return t.forEach(r=>{const i=Go(e,r);o=Ro(o,r,i)}),o}function vs(e,t,o=!1){return e&&e.some(r=>Jd(t,r,o))}function Jd(e,t,o=!1){return!e||!t||!o&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function U8(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const o=Object.keys(e),r=Object.keys(t);return[...new Set([...o,...r])].every(l=>{const u=e[l],f=t[l];return typeof u=="function"&&typeof f=="function"?!0:u===f})}function W8(e,...t){const o=t[0];return o&&o.target&&typeof o.target=="object"&&e in o.target?o.target[e]:o}function qC(e,t,o){const{length:r}=e;if(t<0||t>=r||o<0||o>=r)return e;const i=e[t],l=t-o;return l>0?[...e.slice(0,o),i,...e.slice(o,t),...e.slice(t+1,r)]:l<0?[...e.slice(0,t),...e.slice(t+1,o+1),i,...e.slice(o+1,r)]:e}const _2=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class G8{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(o=>{this.namePathList.every(r=>!Jd(r,o))&&this.namePathList.push(o)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;_2(()=>{if(t===this.taskId&&this.watcherList.size){const o=this.form.getForm(),r=o.getFieldsValue(),i=o.getFieldsValue(!0);this.watcherList.forEach(l=>{l(r,i,this.namePathList)}),this.namePathList=[]}})}}async function X8(){return new Promise(e=>{_2(()=>{Lt(()=>{e()})})})}function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kh.apply(this,arguments)}const ei=[],jl=[];function vg(e,t,o,r,i,l){return typeof e=="function"?e(t,o,"source"in l?{source:l.source}:{}):r!==i}class k8 extends c.PureComponent{static contextType=Ns;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=ei;warnings=jl;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:o}=t.fieldContext,{initEntityValue:r}=o(si);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:r}=o,{registerField:i}=r(si);this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:o,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,t,$n(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:o}=this.props,{prefixName:r=[]}=o;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:o}=this.props;return t.map(r=>typeof r=="function"?r(o):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:o}=this.props;if(o){const r={...this.getMeta(),destroy:t};Ql(this.metaCache,r)||o(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,o,r)=>{const{shouldUpdate:i,dependencies:l=[],onReset:u}=this.props,{store:f}=r,p=this.getNamePath(),m=this.getValue(t),g=this.getValue(f),b=o&&vs(o,p);switch(r.type==="valueUpdate"&&r.source==="external"&&!Ql(m,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=ei,this.warnings=jl,this.triggerMetaEvent()),r.type){case"reset":if(!o||b){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=ei,this.warnings=jl,this.triggerMetaEvent(),u?.(),this.refresh();return}break;case"remove":{if(i&&vg(i,t,f,m,g,r)){this.reRender();return}break}case"setField":{const{data:v}=r;if(b){"touched"in v&&(this.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(this.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(this.errors=v.errors||ei),"warnings"in v&&(this.warnings=v.warnings||jl),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in v&&vs(o,p,!0)){this.reRender();return}if(i&&!p.length&&vg(i,t,f,m,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(l.map($n).some(x=>vs(r.relatedFields,x))){this.reRender();return}break}default:if(b||(!l.length||p.length||i)&&vg(i,t,f,m,g,r)){this.reRender();return}break}i===!0&&this.reRender()};validateRules=t=>{const o=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:l=!1,delayFrame:u}=t||{},f=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:p=!1,messageVariables:m,validateDebounce:g}=this.props;u&&await X8();let b=this.getRules();if(i&&(b=b.filter(x=>x).filter(x=>{const{validateTrigger:C}=x;return C?Uh(C).includes(i):!0})),g&&i&&(await new Promise(x=>{setTimeout(x,g)}),this.validatePromise!==f))return[];const v=V8(o,r,b,t,p,m);return v.catch(x=>x).then((x=ei)=>{if(this.validatePromise===f){this.validatePromise=null;const C=[],S=[];x.forEach?.(({rule:{warningOnly:R},errors:E=ei})=>{R?S.push(...E):C.push(...E)}),this.errors=C,this.warnings=S,this.triggerMetaEvent(),this.reRender()}}),v});return l||(this.validatePromise=f,this.dirty=!0,this.errors=ei,this.warnings=jl,this.triggerMetaEvent(),this.reRender()),f};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:o}=t.getInternalHooks(si);return o(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const o=Ao(t);return o.length!==1||!c.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:o}=this.props.fieldContext,r=this.getNamePath();return Go(t||o(!0),r)};getControlled=(t={})=>{const{name:o,trigger:r="onChange",validateTrigger:i,getValueFromEvent:l,normalize:u,valuePropName:f="value",getValueProps:p,fieldContext:m}=this.props,g=i!==void 0?i:m.validateTrigger,b=this.getNamePath(),{getInternalHooks:v,getFieldsValue:x}=m,{dispatch:C}=v(si),S=this.getValue(),R=p||(T=>({[f]:T})),E=t[r],N=o!==void 0?R(S):{},$={...t,...N};return $[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();const z=this.getValue();let A;l?A=l(...T):A=W8(f,...T),u&&(A=u(A,z,x(!0))),A!==z&&C({type:"updateValue",namePath:b,value:A}),E&&E(...T)},Uh(g||[]).forEach(T=>{const z=$[T];$[T]=(...A)=>{z&&z(...A);const{rules:P}=this.props;P&&P.length&&C({type:"validateField",namePath:b,triggerName:T})}}),$};render(){const{resetCount:t}=this.state,{children:o}=this.props,{child:r,isFunction:i}=this.getOnlyChild(o);let l;return i?l=r:c.isValidElement(r)?l=c.cloneElement(r,this.getControlled(r.props)):(Yn(!r,"`children` of Field is not validate ReactElement."),l=r),c.createElement(c.Fragment,{key:t},l)}}function H2({name:e,...t}){const o=c.useContext(Ns),r=c.useContext(Qd),i=e!==void 0?$n(e):void 0,l=t.isListField??!!r;let u="keep";return l||(u=`_${(i||[]).join("_")}`),c.createElement(k8,kh({key:u,name:i,isListField:l},t,{fieldContext:o}))}function Y8({name:e,initialValue:t,children:o,rules:r,validateTrigger:i,isListField:l}){const u=c.useContext(Ns),f=c.useContext(Qd),m=c.useRef({keys:[],id:0}).current,g=c.useMemo(()=>[...$n(u.prefixName)||[],...$n(e)],[u.prefixName,e]),b=c.useMemo(()=>({...u,prefixName:g}),[u,g]),v=c.useMemo(()=>({getKey:C=>{const S=g.length,R=C[S];return[m.keys[R],C.slice(S+1)]}}),[m,g]);if(typeof o!="function")return Yn(!1,"Form.List only accepts function as children."),null;const x=(C,S,{source:R})=>R==="internal"?!1:C!==S;return c.createElement(Qd.Provider,{value:v},c.createElement(Ns.Provider,{value:b},c.createElement(H2,{name:[],shouldUpdate:x,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:l??!!f},({value:C=[],onChange:S},R)=>{const{getFieldValue:E}=u,N=()=>E(g||[])||[],$={add:(T,z)=>{const A=N();z>=0&&z<=A.length?(m.keys=[...m.keys.slice(0,z),m.id,...m.keys.slice(z)],S([...A.slice(0,z),T,...A.slice(z)])):(m.keys=[...m.keys,m.id],S([...A,T])),m.id+=1},remove:T=>{const z=N(),A=new Set(Array.isArray(T)?T:[T]);A.size<=0||(m.keys=m.keys.filter((P,B)=>!A.has(B)),S(z.filter((P,B)=>!A.has(B))))},move(T,z){if(T===z)return;const A=N();T<0||T>=A.length||z<0||z>=A.length||(m.keys=qC(m.keys,T,z),S(qC(A,T,z)))}};let w=C||[];return Array.isArray(w)||(w=[]),o(w.map((T,z)=>{let A=m.keys[z];return A===void 0&&(m.keys[z]=m.id,A=m.keys[z],m.id+=1),{name:z,key:A,isListField:!0}}),$,R)})))}function K8(e){let t=!1,o=e.length;const r=[];return e.length?new Promise((i,l)=>{e.forEach((u,f)=>{u.catch(p=>(t=!0,p)).then(p=>{o-=1,r[f]=p,!(o>0)&&(t&&l(r),i(r))})})}):Promise.resolve([])}const Yh="__@field_split__";function Ju(e){return e.map(t=>`${typeof t}:${t}`).join(Yh)}class rs{kvs=new Map;set(t,o){this.kvs.set(Ju(t),o)}get(t){return this.kvs.get(Ju(t))}getAsPrefix(t){const o=Ju(t),r=o+Yh,i=[],l=this.kvs.get(o);return l!==void 0&&i.push(l),this.kvs.forEach((u,f)=>{f.startsWith(r)&&i.push(u)}),i}update(t,o){const r=this.get(t),i=o(r);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(Ju(t))}map(t){return[...this.kvs.entries()].map(([o,r])=>{const i=o.split(Yh);return t({key:i.map(l=>{const[,u,f]=l.match(/^([^:]*):(.*)$/);return u==="number"?Number(f):f}),value:r})})}toJSON(){const t={};return this.map(({key:o,value:r})=>(t[o.join(".")]=r,null)),t}}class Q8{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new G8(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===si?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Yn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,o)=>{if(this.initialValues=t||{},o){let r=fs(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=Ro(r,i,Go(t,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const o=new rs;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||o.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=o}};getInitialValue=t=>{const o=Go(this.initialValues,t);return t.length?fs(o):o};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(o=>o.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const o=new rs;return this.getFieldEntities(t).forEach(r=>{const i=r.getNamePath();o.set(i,r)}),o};getFieldEntitiesForNamePathList=(t,o=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return o?t.flatMap(i=>{const l=$n(i),u=r.getAsPrefix(l);return u.length?u:[{INVALIDATE_NAME_PATH:l}]}):t.map(i=>{const l=$n(i);return r.get(l)||{INVALIDATE_NAME_PATH:$n(i)}})};getFieldsValue=(t,o)=>{this.warningUnhooked();let r,i;if(t===!0||Array.isArray(t)?(r=t,i=o):t&&typeof t=="object"&&(i=t.filter),r===!0&&!i)return this.store;const l=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),u=[],f=[];l.forEach(m=>{const g=m.INVALIDATE_NAME_PATH||m.getNamePath();if(m.isList?.()){f.push(g);return}if(!i)u.push(g);else{const b="getMeta"in m?m.getMeta():null;i(b)&&u.push(g)}});let p=FC(this.store,u.map($n));return f.forEach(m=>{Go(p,m)||(p=Ro(p,m,[]))}),p};getFieldValue=t=>{this.warningUnhooked();const o=$n(t);return Go(this.store,o)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:$n(t[i]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const o=$n(t);return this.getFieldsError([o])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const o=$n(t);return this.getFieldsError([o])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[o,r]=t;let i,l=!1;t.length===0?i=null:t.length===1?Array.isArray(o)?(i=o.map($n),l=!1):(i=null,l=o):(i=o.map($n),l=r);const u=this.getFieldEntities(!0),f=b=>b.isFieldTouched();if(!i)return l?u.every(b=>f(b)||b.isList()):u.some(f);const p=new rs;i.forEach(b=>{p.set(b,[])}),u.forEach(b=>{const v=b.getNamePath();i.forEach(x=>{x.every((C,S)=>v[S]===C)&&p.update(x,C=>[...C,b])})});const m=b=>b.some(f),g=p.map(({value:b})=>b);return l?g.every(m):g.some(m)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const o=this.getFieldEntities();if(!t)return o.some(i=>i.isFieldValidating());const r=t.map($n);return o.some(i=>{const l=i.getNamePath();return vs(r,l)&&i.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const o=new rs,r=this.getFieldEntities(!0);r.forEach(u=>{const{initialValue:f}=u.props,p=u.getNamePath();if(f!==void 0){const m=o.get(p)||new Set;m.add({entity:u,value:f}),o.set(p,m)}});const i=u=>{u.forEach(f=>{const{initialValue:p}=f.props;if(p!==void 0){const m=f.getNamePath();if(this.getInitialValue(m)!==void 0)Yn(!1,`Form already set 'initialValues' with path '${m.join(".")}'. Field can not overwrite it.`);else{const b=o.get(m);if(b&&b.size>1)Yn(!1,`Multiple Field with path '${m.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(b){const v=this.getFieldValue(m);!f.isListField()&&(!t.skipExist||v===void 0)&&this.updateStore(Ro(this.store,m,[...b][0].value))}}}})};let l;t.entities?l=t.entities:t.namePathList?(l=[],t.namePathList.forEach(u=>{const f=o.get(u);f&&l.push(...[...f].map(p=>p.entity))})):l=r,i(l)};resetFields=t=>{this.warningUnhooked();const o=this.store;if(!t){this.updateStore(fs(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(o,null,{type:"reset"}),this.notifyWatch();return}const r=t.map($n);r.forEach(i=>{const l=this.getInitialValue(i);this.updateStore(Ro(this.store,i,l))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(o,r,{type:"reset"}),this.notifyWatch(r)};setFields=t=>{this.warningUnhooked();const o=this.store,r=[];t.forEach(i=>{const{name:l,...u}=i,f=$n(l);r.push(f),"value"in u&&this.updateStore(Ro(this.store,f,u.value)),this.notifyObservers(o,[f],{type:"setField",data:i})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),u={...r.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(u,"originRCField",{value:!0}),u});initEntityValue=t=>{const{initialValue:o}=t.props;if(o!==void 0){const r=t.getNamePath();Go(this.store,r)===void 0&&this.updateStore(Ro(this.store,r,o))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const o=t.getNamePath();if(this.notifyWatch([o]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,i,l=[])=>{if(this.fieldEntities=this.fieldEntities.filter(u=>u!==t),!this.isMergedPreserve(i)&&(!r||l.length>1)){const u=r?void 0:this.getInitialValue(o);if(o.length&&this.getFieldValue(o)!==u&&this.fieldEntities.every(f=>!Jd(f.getNamePath(),o))){const f=this.store;this.updateStore(Ro(f,o,u,!0)),this.notifyObservers(f,[o],{type:"remove"}),this.triggerDependenciesUpdate(f,o)}}this.notifyWatch([o])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:o,value:r}=t;this.updateValue(o,r);break}case"validateField":{const{namePath:o,triggerName:r}=t;this.validateFields([o],{triggerName:r});break}}};notifyObservers=(t,o,r)=>{if(this.subscribable){const i={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:l})=>{l(t,o,i)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,o)=>{const r=this.getDependencyChildrenFields(o);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[o,...r]}),r};updateValue=(t,o)=>{const r=$n(t),i=this.store;this.updateStore(Ro(this.store,r,o)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const l=this.triggerDependenciesUpdate(i,r),{onValuesChange:u}=this.callbacks;if(u){const f=FC(this.store,[r]),p=this.getFieldsValue(),m=Ro(p,r,Go(f,r));u(f,m)}this.triggerOnFieldsChange([r,...l])};setFieldsValue=t=>{this.warningUnhooked();const o=this.store;if(t){const r=fs(this.store,t);this.updateStore(r)}this.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,o)=>{this.setFields([{name:t,value:o,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const o=new Set,r=[],i=new rs;this.getFieldEntities().forEach(u=>{const{dependencies:f}=u.props;(f||[]).forEach(p=>{const m=$n(p);i.update(m,(g=new Set)=>(g.add(u),g))})});const l=u=>{(i.get(u)||new Set).forEach(p=>{if(!o.has(p)){o.add(p);const m=p.getNamePath();p.isFieldDirty()&&m.length&&(r.push(m),l(m))}})};return l(t),r};triggerOnFieldsChange=(t,o)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(o){const u=new rs;o.forEach(({name:f,errors:p})=>{u.set(f,p)}),i.forEach(f=>{f.errors=u.get(f.name)||f.errors})}const l=i.filter(({name:u})=>vs(t,u));l.length&&r(l,i)}};validateFields=(t,o)=>{this.warningUnhooked();let r,i;Array.isArray(t)||typeof t=="string"||typeof o=="string"?(r=t,i=o):i=t;const l=!!r,u=l?r.map($n):[],f=[...u],p=[],m=String(Date.now()),g=new Set,{recursive:b,dirty:v}=i||{};this.getFieldEntities(!0).forEach(R=>{const E=R.getNamePath();if(l||((!R.isList()||!u.some(N=>Jd(N,E,!0)))&&f.push(E),u.push(E)),!(!R.props.rules||!R.props.rules.length)&&!(v&&!R.isFieldDirty())&&(g.add(E.join(m)),!l||vs(u,E,b))){const N=R.validateRules({validateMessages:{...B2,...this.validateMessages},...i});p.push(N.then(()=>({name:E,errors:[],warnings:[]})).catch($=>{const w=[],T=[];return $.forEach?.(({rule:{warningOnly:z},errors:A})=>{z?T.push(...A):w.push(...A)}),w.length?Promise.reject({name:E,errors:w,warnings:T}):{name:E,errors:w,warnings:T}}))}});const x=K8(p);this.lastValidatePromise=x,x.catch(R=>R).then(R=>{const E=R.map(({name:N})=>N);this.notifyObservers(this.store,E,{type:"validateFinish"}),this.triggerOnFieldsChange(E,R)});const C=x.then(()=>this.lastValidatePromise===x?Promise.resolve(this.getFieldsValue(f)):Promise.reject([])).catch(R=>{const E=R.filter($=>$&&$.errors.length),N=E[0]?.errors?.[0];return Promise.reject({message:N,values:this.getFieldsValue(u),errorFields:E,outOfDate:this.lastValidatePromise!==x})});C.catch(R=>R);const S=u.filter(R=>g.has(R.join(m)));return this.triggerOnFieldsChange(S),C};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:o}=this.callbacks;if(o)try{o(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:o}=this.callbacks;o&&o(t)})}}function D2(e){const t=c.useRef(null),[,o]=c.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{o({})},i=new Q8(r);t.current=i.getForm()}return[t.current]}const Kh=c.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Z8=({validateMessages:e,onFormChange:t,onFormFinish:o,children:r})=>{const i=c.useContext(Kh),l=c.useRef({});return c.createElement(Kh.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(u,f)=>{t&&t(u,{changedFields:f,forms:l.current}),i.triggerFormChange(u,f)},triggerFormFinish:(u,f)=>{o&&o(u,{values:f,forms:l.current}),i.triggerFormFinish(u,f)},registerForm:(u,f)=>{u&&(l.current={...l.current,[u]:f}),i.registerForm(u,f)},unregisterForm:u=>{const f={...l.current};delete f[u],l.current=f,i.unregisterForm(u)}}},r)};function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Qh.apply(this,arguments)}const J8=(e,t)=>{const{name:o,initialValues:r,fields:i,form:l,preserve:u,children:f,component:p="form",validateMessages:m,validateTrigger:g="onChange",onValuesChange:b,onFieldsChange:v,onFinish:x,onFinishFailed:C,clearOnDestroy:S,...R}=e,E=c.useRef(null),N=c.useContext(Kh),[$]=D2(l),{useSubscribe:w,setInitialValues:T,setCallbacks:z,setValidateMessages:A,setPreserve:P,destroyForm:B}=$.getInternalHooks(si);c.useImperativeHandle(t,()=>({...$,nativeElement:E.current})),c.useEffect(()=>(N.registerForm(o,$),()=>{N.unregisterForm(o)}),[N,$,o]),A({...N.validateMessages,...m}),z({onValuesChange:b,onFieldsChange:(L,...q)=>{N.triggerFormChange(o,L),v&&v(L,...q)},onFinish:L=>{N.triggerFormFinish(o,L),x&&x(L)},onFinishFailed:C}),P(u);const D=c.useRef(null);T(r,!D.current),D.current||(D.current=!0),c.useEffect(()=>()=>B(S),[]);let I;const H=typeof f=="function";if(H){const L=$.getFieldsValue(!0);I=f(L,$)}else I=f;w(!H);const X=c.useRef(null);c.useEffect(()=>{U8(X.current||[],i||[])||$.setFields(i||[]),X.current=i},[i,$]);const Z=c.useMemo(()=>({...$,validateTrigger:g}),[$,g]),U=c.createElement(Qd.Provider,{value:null},c.createElement(Ns.Provider,{value:Z},I));return p===!1?U:c.createElement(p,Qh({},R,{ref:E,onSubmit:L=>{L.preventDefault(),L.stopPropagation(),$.submit()},onReset:L=>{L.preventDefault(),$.resetFields(),R.onReset?.(L)}}),U)};function yg(e){try{return JSON.stringify(e)}catch{return Math.random()}}function eI(...e){const[t,o={}]=e,r=u8(o)?{form:o}:o,i=r.form,[l,u]=c.useState(()=>typeof t=="function"?t({}):void 0),f=c.useMemo(()=>yg(l),[l]),p=c.useRef(f);p.current=f;const m=c.useContext(Ns),g=i||m,b=g&&g._init,{getFieldsValue:v,getInternalHooks:x}=g,{registerWatch:C}=x(si),S=pt((E,N)=>{const $=r.preserve?N??v(!0):E??v(),w=typeof t=="function"?t($):Go($,$n(t));yg(l)!==yg(w)&&u(w)}),R=typeof t=="function"?t:JSON.stringify(t);return c.useEffect(()=>{b&&S()},[b,R]),c.useEffect(()=>b?C((N,$)=>{S(N,$)}):void 0,[b]),l}const tI=c.forwardRef(J8),xc=tI;xc.FormProvider=Z8;xc.Field=H2;xc.List=Y8;xc.useForm=D2;xc.useWatch=eI;const Wr=c.createContext({}),nI=({children:e,status:t,override:o})=>{const r=c.useContext(Wr),i=c.useMemo(()=>{const l={...r};return o&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,o,r]);return c.createElement(Wr.Provider,{value:i},e)},oI=c.createContext(void 0),Rs=e=>{const{space:t,form:o,children:r}=e;if(!hr(r))return null;let i=r;return o&&(i=ce.createElement(nI,{override:!0,status:!0},i)),t&&(i=ce.createElement(XA,null,i)),i},rI=()=>zo()&&window.document.documentElement;function L2(e,t,o){return c.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}const Nf=e=>{const{prefixCls:t,className:o,style:r,size:i,shape:l}=e,u=W({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),f=W({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),p=c.useMemo(()=>ko(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return c.createElement("span",{className:W(t,u,f,o),style:{...p,...r}})},aI=new Ct("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),P0=e=>({height:e,lineHeight:re(e)}),za=e=>({width:e,...P0(e)}),iI=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:aI,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),xg=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...P0(e)}),sI=e=>{const{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:i,controlHeightSM:l}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...za(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...za(i)},[`${t}${t}-sm`]:{...za(l)}}},lI=e=>{const{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:l,gradientFromColor:u,calc:f}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:u,borderRadius:o,...xg(t,f)},[`${r}-lg`]:{...xg(i,f)},[`${r}-sm`]:{...xg(l,f)}}},V2=e=>{const{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:r,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...za(i(r).mul(2).equal())}},cI=e=>({[e.skeletonNodeCls]:{...V2(e)}}),uI=e=>{const{skeletonImageCls:t,imageSizeBase:o,calc:r}=e;return{[t]:{...V2(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...za(o),maxWidth:r(o).mul(4).equal(),maxHeight:r(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Sg=(e,t,o)=>{const{skeletonButtonCls:r}=e;return{[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},Cg=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...P0(e)}),dI=e=>{const{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:i,controlHeightSM:l,gradientFromColor:u,calc:f}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:u,borderRadius:t,width:f(r).mul(2).equal(),minWidth:f(r).mul(2).equal(),...Cg(r,f)},...Sg(e,r,o),[`${o}-lg`]:{...Cg(i,f)},...Sg(e,i,`${o}-lg`),[`${o}-sm`]:{...Cg(l,f)},...Sg(e,l,`${o}-sm`)}},fI=e=>{const{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:l,skeletonInputCls:u,skeletonNodeCls:f,skeletonImageCls:p,controlHeight:m,controlHeightLG:g,controlHeightSM:b,gradientFromColor:v,padding:x,marginSM:C,borderRadius:S,titleHeight:R,blockRadius:E,paragraphLiHeight:N,controlHeightXS:$,paragraphMarginTop:w}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:x,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:v,...za(m)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...za(g)},[`${o}-sm`]:{...za(b)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:R,background:v,borderRadius:E,[`+ ${i}`]:{marginBlockStart:b}},[i]:{padding:0,"> li":{width:"100%",height:N,listStyle:"none",background:v,borderRadius:E,"+ li":{marginBlockStart:$}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:C,[`+ ${i}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...dI(e),...sI(e),...lI(e),...cI(e),...uI(e)},[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[u]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
153
|
-
${r},
|
|
154
|
-
${i} > li,
|
|
155
|
-
${o},
|
|
156
|
-
${l},
|
|
157
|
-
${u},
|
|
158
|
-
${f},
|
|
159
|
-
${p}
|
|
160
|
-
`]:{...iI(e)}}}},mI=e=>{const{colorFillContent:t,colorFill:o}=e,r=t,i=o;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Sc=Qt("Skeleton",e=>{const{componentCls:t,calc:o}=e,r=Gt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(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 fI(r)},mI,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),pI=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:i,active:l,style:u,styles:f,shape:p="circle",size:m,...g}=e,{getPrefixCls:b}=c.useContext(St),v=b("skeleton",t),[x,C]=Sc(v),S=bo(E=>m??E),R=W(v,`${v}-element`,{[`${v}-active`]:l},r?.root,o,i,x,C);return c.createElement("div",{className:R,style:f?.root},c.createElement(Nf,{prefixCls:`${v}-avatar`,className:r?.content,style:{...f?.content,...u},shape:p,size:S,...g}))},gI=e=>{const{prefixCls:t,className:o,rootClassName:r,classNames:i,active:l,style:u,styles:f,block:p=!1,size:m,...g}=e,{getPrefixCls:b}=c.useContext(St),v=b("skeleton",t),[x,C]=Sc(v),S=bo(E=>m??E),R=W(v,`${v}-element`,{[`${v}-active`]:l,[`${v}-block`]:p},i?.root,o,r,x,C);return c.createElement("div",{className:R,style:f?.root},c.createElement(Nf,{prefixCls:`${v}-button`,className:i?.content,style:{...f?.content,...u},size:S,...g}))},F2=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:i,internalClassName:l,style:u,styles:f,active:p,children:m}=e,{getPrefixCls:g}=c.useContext(St),b=g("skeleton",t),[v,x]=Sc(b),C=W(b,`${b}-element`,{[`${b}-active`]:p},v,r?.root,o,i,x);return c.createElement("div",{className:C,style:f?.root},c.createElement("div",{className:W(r?.content,l||`${b}-node`),style:{...f?.content,...u}},m))},hI=e=>{const{getPrefixCls:t}=c.useContext(St),o=t("skeleton",e.prefixCls);return c.createElement(F2,{...e,internalClassName:`${o}-image`},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},bI=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:i,active:l,block:u,style:f,styles:p,size:m,...g}=e,{getPrefixCls:b}=c.useContext(St),v=b("skeleton",t),[x,C]=Sc(v),S=bo(E=>m??E),R=W(v,`${v}-element`,{[`${v}-active`]:l,[`${v}-block`]:u},r?.root,o,i,x,C);return c.createElement("div",{className:R,style:p?.root},c.createElement(Nf,{prefixCls:`${v}-input`,className:r?.content,style:{...p?.content,...f},size:S,...g}))},vI=(e,t)=>{const{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},yI=e=>{const{prefixCls:t,className:o,style:r,rows:i=0}=e,l=Array.from({length:i}).map((u,f)=>c.createElement("li",{key:f,style:{width:vI(f,e)}}));return c.createElement("ul",{className:W(t,o),style:r},l)},xI=({prefixCls:e,className:t,width:o,style:r})=>c.createElement("h3",{className:W(e,t),style:{width:o,...r}});function $g(e){return Wt(e)?e:{}}function SI(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function CI(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function $I(e,t){const o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}const Ba=e=>{const{prefixCls:t,loading:o,className:r,rootClassName:i,classNames:l,style:u,styles:f,children:p,avatar:m=!1,title:g=!0,paragraph:b=!0,active:v,round:x}=e,{getPrefixCls:C,direction:S,className:R,style:E,classNames:N,styles:$}=Kt("skeleton"),w=C("skeleton",t),[T,z]=Sc(w),A={...e,avatar:m,title:g,paragraph:b},P=pn(E),B=pn(u),[D,I]=dn([N,l],[$,P,f,B],{props:A});if(o||!("loading"in e)){const H=!!m,X=!!g,Z=!!b;let U;if(H){const F={className:D.avatar,prefixCls:`${w}-avatar`,...SI(X,Z),...$g(m),style:I.avatar};U=c.createElement("div",{className:W(D.header,`${w}-header`),style:I.header},c.createElement(Nf,{...F}))}let L;if(X||Z){let F;if(X){const Q={className:D.title,prefixCls:`${w}-title`,...CI(H,Z),...$g(g),style:I.title};F=c.createElement(xI,{...Q})}let J;if(Z){const Q={className:D.paragraph,prefixCls:`${w}-paragraph`,...$I(H,X),...$g(b),style:I.paragraph};J=c.createElement(yI,{...Q})}L=c.createElement("div",{className:W(D.section,`${w}-section`),style:I.section},F,J)}const q=W(w,{[`${w}-with-avatar`]:H,[`${w}-active`]:v,[`${w}-rtl`]:S==="rtl",[`${w}-round`]:x},D.root,R,r,i,T,z);return c.createElement("div",{className:q,style:I.root},U,L)}return p??null};Ba.Button=gI;Ba.Avatar=pI;Ba.Input=bI;Ba.Image=hI;Ba.Node=F2;function UC(){}const EI=c.createContext({add:UC,remove:UC});function q2(e){const t=c.useContext(EI),o=c.useRef(null);return pt(i=>{if(i){const l=e?i.querySelector(e):i;l&&(t.add(l),o.current=l)}else t.remove(o.current)})}const WC=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=c.useContext(yc);return ce.createElement(to,{onClick:o,...e},t)},GC=()=>{const{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:i}=c.useContext(yc);return ce.createElement(to,{...R2(o),loading:e,onClick:i,...t},r)};function wI(e,t){return ce.createElement("span",{className:`${e}-close-x`},t||ce.createElement(br,{className:`${e}-close-icon`}))}const NI=e=>{const{okText:t,okType:o="primary",cancelText:r,confirmLoading:i,onOk:l,onCancel:u,okButtonProps:f,cancelButtonProps:p,footer:m}=e,[g]=Pa("Modal",Uz()),b=t||g?.okText,v=r||g?.cancelText,x=ce.useMemo(()=>({confirmLoading:i,okButtonProps:f,cancelButtonProps:p,okTextLocale:b,cancelTextLocale:v,okType:o,onOk:l,onCancel:u}),[i,f,p,b,v,o,l,u]);let C;return mn(m)||typeof m>"u"?(C=ce.createElement(ce.Fragment,null,ce.createElement(WC,null),ce.createElement(GC,null)),mn(m)&&(C=m(C,{OkBtn:GC,CancelBtn:WC})),C=ce.createElement(I2,{value:x},C)):C=m,ce.createElement(o2,{disabled:!1},C)},RI=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"}}}},MI=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TI=(e,t)=>{const{componentCls:o,gridColumns:r,antCls:i}=e,[l,u]=Vt(i,"grid"),[,f]=Vt(i,"col"),p={};for(let m=r;m>=0;m--)m===0?(p[`${o}${t}-${m}`]={display:"none"},p[`${o}-push-${m}`]={insetInlineStart:"auto"},p[`${o}-pull-${m}`]={insetInlineEnd:"auto"},p[`${o}${t}-push-${m}`]={insetInlineStart:"auto"},p[`${o}${t}-pull-${m}`]={insetInlineEnd:"auto"},p[`${o}${t}-offset-${m}`]={marginInlineStart:0},p[`${o}${t}-order-${m}`]={order:0}):(p[`${o}${t}-${m}`]=[{[l("display")]:"block",display:"block"},{display:u("display"),flex:`0 0 ${m/r*100}%`,maxWidth:`${m/r*100}%`}],p[`${o}${t}-push-${m}`]={insetInlineStart:`${m/r*100}%`},p[`${o}${t}-pull-${m}`]={insetInlineEnd:`${m/r*100}%`},p[`${o}${t}-offset-${m}`]={marginInlineStart:`${m/r*100}%`},p[`${o}${t}-order-${m}`]={order:m});return p[`${o}${t}-flex`]={flex:f(`${t.replace(/-/,"")}-flex`)},p},Zh=(e,t)=>TI(e,t),OI=(e,t,o)=>({[`@media (min-width: ${re(t)})`]:{...Zh(e,o)}}),zI=()=>({}),AI=()=>({});Qt("Grid",RI,zI);const U2=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});Qt("Grid",e=>{const t=Gt(e,{gridColumns:24}),o=U2(t);return delete o.xs,[MI(t),Zh(t,""),Zh(t,"-xs"),Object.keys(o).map(r=>OI(t,o[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},AI);function XC(e){return{position:e,inset:0}}const II=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...XC("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...XC("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:T2(e)}]},PI=e=>{const{componentCls:t,motionDurationMid:o}=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:`${re(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Dn(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${re(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...Os(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{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","background-color"].map(r=>`${r} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:re(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Fr(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${re(e.borderRadiusLG)} ${re(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:`${re(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}-container,
|
|
161
|
-
${t}-body,
|
|
162
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},jI=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},BI=e=>{const{componentCls:t}=e,o=U2(e),r={...o};delete r.xs;const i=`--${t.replace(".","")}-`,l=Object.keys(r).map(u=>({[`@media (min-width: ${re(r[u])})`]:{width:`var(${i}${u}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ho(Object.keys(o).map((u,f)=>{const p=Object.keys(o)[f-1];return p?{[`${i}${u}-width`]:`var(${i}${p}-width)`}:null})),[{width:`var(${i}xs-width)`}],ho(l))}}},W2=e=>{const t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return Gt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).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()})},G2=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${re(e.padding)} ${re(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${re(e.paddingXS)} ${re(e.padding)}`:0,footerBorderTop:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${re(e.padding*2)} ${re(e.padding*2)} ${re(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),_I=Qt("Modal",e=>{const t=W2(e);return[PI(t),jI(t),II(t),A0(t,"zoom"),BI(t)]},G2,{unitless:{titleLineHeight:!0}});let Jh;const HI=e=>{Jh={x:e.pageX,y:e.pageY},setTimeout(()=>{Jh=null},100)};rI()&&document.documentElement.addEventListener("click",HI,!0);const DI=e=>{const{prefixCls:t,className:o,rootClassName:r,open:i,wrapClassName:l,centered:u,getContainer:f,style:p,width:m=520,footer:g,classNames:b,styles:v,children:x,loading:C,confirmLoading:S,zIndex:R,mousePosition:E,onOk:N,onCancel:$,okButtonProps:w,cancelButtonProps:T,destroyOnHidden:z,destroyOnClose:A,panelRef:P=null,closable:B,mask:D,modalRender:I,maskClosable:H,_semanticOmit:X,scrollLock:Z,focusTriggerAfterClose:U,focusable:L,_renderSemanticContent:q,...F}=e,{getPopupContainer:J,getPrefixCls:Q,direction:j,className:V,style:k,classNames:G,styles:K,centered:te,cancelButtonProps:Y,okButtonProps:ie,mask:se,focusable:ae}=Kt("modal"),{modal:me}=c.useContext(St),[ne,ue]=c.useMemo(()=>typeof B=="boolean"?[void 0,void 0]:[B?.afterClose,B?.onClose],[B]),he=Q("modal",t),ge=Q(),[Se,$e,ye]=p2(D,se,he,H),xe=L2({...ae,...L},Se,U),Ce=et=>{S||($?.(et),ue?.())},we=et=>{N?.(et),ue?.()},Be=vr(he),[Te,He]=_I(he,Be),nt=W(l,{[`${he}-centered`]:u??te,[`${he}-wrap-rtl`]:j==="rtl"}),Ke=g!==null&&!C?c.createElement(NI,{...e,okButtonProps:{...ie,...w},onOk:we,cancelButtonProps:{...Y,...T},onCancel:Ce}):null,[Fe,qe,Je,Ue]=m2(Es(e),Es(me),{closable:!0,closeIcon:c.createElement(br,{className:`${he}-close-icon`}),closeIconRender:et=>wI(he,et)}),Pe=Fe?{disabled:Je,closeIcon:qe,afterClose:ne,...Ue}:!1,_e=I?et=>c.createElement("div",{className:`${he}-render`},I(et)):void 0,Xe=`.${he}-${I?"render":"container"}`,De=q2(Xe),Oe=oo(P,De),[Qe,ze]=vc("Modal",R),Ie={...e,width:m,panelRef:P,focusTriggerAfterClose:xe.focusTriggerAfterClose,focusable:xe,mask:Se,maskClosable:ye,zIndex:Qe},[We,Ye]=dn([G,b,$e],[K,v],{props:Ie}),rt=X?xn(We,X):We,ct=X?xn(Ye,X):Ye,it=q?q({classNames:We,styles:Ye}):x,[yt,Et]=c.useMemo(()=>Wt(m)?[void 0,m]:[m,void 0],[m]),Tt=c.useMemo(()=>{const et={};return Et&&Object.keys(Et).forEach(Ot=>{const Le=Et[Ot];Kn(Le)&&(et[`--${he}-${Ot}-width`]=ko(Le)?`${Le}px`:Le)}),et},[he,Et]);return c.createElement(Rs,{form:!0,space:!0},c.createElement(Cf.Provider,{value:ze},c.createElement(c8,{width:yt,...F,zIndex:Qe,getContainer:f===void 0?J:f,prefixCls:he,rootClassName:W(Te,r,He,Be,rt.root),rootStyle:ct.root,footer:Ke,visible:i,mousePosition:E??Jh,onClose:Ce,closable:Pe,closeIcon:qe,transitionName:Ur(ge,"zoom",e.transitionName),maskTransitionName:Ur(ge,"fade",e.maskTransitionName),mask:Se,maskClosable:ye,scrollLock:Z,className:W(Te,o,V),style:{...k,...p,...Tt},classNames:{...rt,wrapper:W(rt.wrapper,nt)},styles:ct,panelRef:Oe,destroyOnHidden:z??A,modalRender:_e,focusTriggerAfterClose:xe.focusTriggerAfterClose,focusTrap:xe.trap},C?c.createElement(Ba,{active:!0,title:!1,paragraph:{rows:4},className:`${he}-body-skeleton`}):it)))},LI=e=>{const{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:i,fontSize:l,lineHeight:u,modalTitleHeight:f,fontHeight:p,confirmBodyPadding:m}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...bi()},[`&${t} ${t}-body`]:{padding:m},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(p).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(f).sub(i).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${re(e.marginSM)})`},[`${g}-body-no-icon ${g}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${re(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${g}-container`]:{color:e.colorText,fontSize:l,lineHeight:u},[`${g}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${g}-error ${g}-body > ${e.iconCls}`]:{color:e.colorError},[`${g}-warning ${g}-body > ${e.iconCls},
|
|
163
|
-
${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},VI=bf(["Modal","confirm"],e=>{const t=W2(e);return LI(t)},G2,{order:-1e3}),FI=["body"],qI=e=>{const{prefixCls:t,icon:o,okText:r,cancelText:i,confirmPrefixCls:l,type:u,okCancel:f,footer:p,locale:m,autoFocusButton:g,focusable:b,contentClassName:v,contentStyle:x,...C}=e,{infoIcon:S,successIcon:R,errorIcon:E,warningIcon:N}=Kt("modal");let $=o;if(o===void 0)switch(u){case"info":$=Xo(S,c.createElement(yf,null));break;case"success":$=Xo(R,c.createElement(gc,null));break;case"error":$=Xo(E,c.createElement(yi,null));break;default:$=Xo(N,c.createElement(vf,null))}const w=f??u==="confirm",T=c.useMemo(()=>{const q=b?.autoFocusButton||g;return q||q===null?q:"ok"},[g,b?.autoFocusButton]),[z]=Pa("Modal"),A=m||z,P=r||(w?A?.okText:A?.justOkText),B=i||A?.cancelText,{closable:D}=C,{onClose:I}=Wt(D)?D:{},H=c.useMemo(()=>({autoFocusButton:T,cancelTextLocale:B,okTextLocale:P,mergedOkCancel:w,onClose:I,...C}),[T,B,P,w,I,C]),X=c.createElement(c.Fragment,null,c.createElement(AC,null),c.createElement(IC,null)),Z=hr(e.title),U=hr($),L=`${l}-body`;return c.createElement("div",{className:`${l}-body-wrapper`},c.createElement("div",{className:W(L,{[`${L}-has-title`]:Z,[`${L}-no-icon`]:!U})},$,c.createElement("div",{className:`${l}-paragraph`},Z&&c.createElement("span",{className:`${l}-title`},e.title),c.createElement("div",{className:W(`${l}-content`,v),style:x},e.content))),p===void 0||mn(p)?c.createElement(I2,{value:H},c.createElement("div",{className:`${l}-btns`},mn(p)?p(X,{OkBtn:IC,CancelBtn:AC}):X)):p,c.createElement(VI,{prefixCls:t}))},UI=e=>{const{close:t,zIndex:o,maskStyle:r,direction:i,prefixCls:l,wrapClassName:u,rootPrefixCls:f,bodyStyle:p,closable:m=!1,onConfirm:g,styles:b,title:v,mask:x,maskClosable:C,okButtonProps:S,cancelButtonProps:R}=e,{cancelButtonProps:E,okButtonProps:N}=Kt("modal"),$=`${l}-confirm`,w=e.width||416,T=e.style||{},z=mn(b)?H=>({body:p,mask:r,...b(H)}):{body:p,mask:r,...b},A=xn(e,["bodyStyle","maskStyle"]),P=W($,`${$}-${e.type}`,{[`${$}-rtl`]:i==="rtl"},e.className),B=c.useMemo(()=>{const H=_h(x,C);return H.closable??(H.closable=!1),H},[x,C]),[,D]=Ko(),I=c.useMemo(()=>o!==void 0?o:D.zIndexPopupBase+E0,[o,D]);return c.createElement(DI,{...A,className:P,wrapClassName:W({[`${$}-centered`]:!!e.centered},u),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:v,footer:null,transitionName:Ur(f||"","zoom",e.transitionName),maskTransitionName:Ur(f||"","fade",e.maskTransitionName),mask:B,style:T,styles:z,width:w,zIndex:I,closable:m,_semanticOmit:FI,_renderSemanticContent:({classNames:H,styles:X})=>c.createElement(qI,{...e,confirmPrefixCls:$,okButtonProps:{...N,...S},cancelButtonProps:{...E,...R},contentClassName:H.body,contentStyle:X.body})})},WI=e=>{const{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:i}=e;return c.createElement(ja,{prefixCls:t,iconPrefixCls:o,direction:r,theme:i},c.createElement(UI,{...e}))};function GI(e){return{...e,type:"warning"}}function XI(e){return{...e,type:"info"}}function kI(e){return{...e,type:"success"}}function YI(e){return{...e,type:"error"}}function KI(e){return{...e,type:"confirm"}}const QI=c.forwardRef((e,t)=>{const{afterClose:o,config:r,...i}=e,[l,u]=c.useState(!0),[f,p]=c.useState(r),{direction:m,getPrefixCls:g}=c.useContext(St),b=g("modal"),v=g(),x=()=>{o(),f.afterClose?.()},C=(...E)=>{u(!1),E.some($=>$?.triggerCancel)&&f.onCancel?.(()=>{},...E.slice(1))};c.useImperativeHandle(t,()=>({destroy:C,update:E=>{p(N=>{const $=mn(E)?E(N):E;return{...N,...$}})}}));const S=f.okCancel??f.type==="confirm",[R]=Pa("Modal",Ia.Modal);return c.createElement(WI,{prefixCls:b,rootPrefixCls:v,...f,close:C,open:l,afterClose:x,okText:f.okText||(S?R?.okText:R?.justOkText),direction:f.direction||m,cancelText:f.cancelText||R?.cancelText,...i})});let kC=0;const ZI=c.memo(c.forwardRef((e,t)=>{const[o,r]=Q3();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,o)}));function JI(){const e=c.useRef(null),[t,o]=c.useState([]);c.useEffect(()=>{t.length&&(ho(t).forEach(u=>{u()}),o([]))},[t]);const r=c.useCallback(l=>function(f){kC+=1;const p=c.createRef();let m;const g=new Promise(S=>{m=S});let b=!1,v;const x=c.createElement(QI,{key:`modal-${kC}`,config:l(f),ref:p,afterClose:()=>{v?.()},isSilent:()=>b,onConfirm:S=>{m(S)}});return v=e.current?.patchElement(x),{destroy:()=>{function S(){p.current?.destroy()}p.current?S():o(R=>[].concat(ho(R),[S]))},update:S=>{function R(){p.current?.update(S)}p.current?R():o(E=>[].concat(ho(E),[R]))},then:S=>(b=!0,g.then(S))}},[]);return[c.useMemo(()=>({info:r(XI),success:r(kI),error:r(YI),warning:r(GI),confirm:r(KI)}),[r]),c.createElement(ZI,{key:"modal-holder",ref:e})]}const eP={info:c.createElement(yf,null),success:c.createElement(gc,null),error:c.createElement(yi,null),warning:c.createElement(vf,null),loading:c.createElement(Sf,null)};function X2(e,t){return t===null||t===!1?null:t||c.createElement(br,{className:`${e}-close-icon`})}const tP=4.5,nP="topRight",oP={offset:8},rP=({children:e,prefixCls:t})=>{const o=vr(t),[r,i]=xA(t,o);return ce.createElement(a2,{classNames:{list:W(r,i,o)}},e)},aP=(e,{prefixCls:t,key:o})=>ce.createElement(rP,{prefixCls:t,key:o},e),iP=ce.forwardRef((e,t)=>{const{top:o,bottom:r,prefixCls:i,getContainer:l,maxCount:u,rtl:f,onAllRemoved:p,stack:m,duration:g=tP,pauseOnHover:b=!0,showProgress:v}=e,{getPrefixCls:x,getPopupContainer:C,direction:S}=Kt("notification"),{notification:R}=c.useContext(St),E=i||x("notification"),N=c.useMemo(()=>ko(g)&&g>0?g:!1,[g]),[$,w]=dn([R?.classNames,e?.classNames],[R?.styles,e?.styles],{props:e}),T=()=>c2(o,r),z=()=>W({[`${E}-rtl`]:f??S==="rtl"}),A=()=>F3(E),P=l2(m,oP),[B,D]=s2({prefixCls:E,style:T,className:z,motion:A,closable:{closeIcon:X2(E)},duration:N,getContainer:()=>l?.()||C?.()||document.body,maxCount:u,pauseOnHover:b,showProgress:v,classNames:$,styles:w,onAllRemoved:p,renderNotifications:aP,stack:P});return ce.useImperativeHandle(t,()=>({...B,prefixCls:E,notification:R})),D});function sP(e){const t=ce.useRef(null),{notification:o}=ce.useContext(St);return[ce.useMemo(()=>{const i=p=>{if(!t.current)return;const{open:m,prefixCls:g,notification:b}=t.current,v=b?.className||{},x=b?.style||{},C=`${g}-notice`,{title:S,message:R,description:E,icon:N,type:$,btn:w,actions:T,className:z,style:A,role:P="alert",closeIcon:B,closable:D,classNames:I={},styles:H={},...X}=p,Z=S??R,U=hr(Z),L=T??w,q=X2(C,q3(B,e,b)),[F,J,,Q]=f2(Es({...e||{},...p}),Es(o),{closable:!0,closeIcon:q}),j=F?{onClose:Wt(D)?D.onClose:void 0,closeIcon:J,...Q}:!1,V=Cs(I,{props:p}),k=Cs(H,{props:p}),G=N||($?eP[$]:null),K=!N&&$?`${C}-icon-${$}`:void 0;return m({placement:e?.placement??nP,...X,title:U?Z:null,description:E,icon:G,actions:L,role:P,classNames:{...V,icon:W(K,V?.icon)},styles:{...k,root:{...x,...k?.root}},className:W({[`${C}-${$}`]:$},z,v),style:A,closable:j})},u={open:i,destroy:p=>{p!==void 0?t.current?.close(p):t.current?.destroy()}};return["success","info","warning","error"].forEach(p=>{u[p]=m=>i({...m,type:p})}),u},[e,o]),ce.createElement(iP,{key:"notification-holder",...e,ref:t})]}function lP(e){return sP(e)}const YC=ce.createContext({}),k2=ce.createContext({message:{},notification:{},modal:{}}),cP=e=>{const{componentCls:t,colorText:o,fontSize:r,lineHeight:i,fontFamily:l}=e;return{[t]:{color:o,fontSize:r,lineHeight:i,fontFamily:l,[`&${t}-rtl`]:{direction:"rtl"}}}},uP=()=>({}),dP=Qt("App",cP,uP),fP=ce.forwardRef((e,t)=>{const{prefixCls:o,children:r,className:i,rootClassName:l,message:u,notification:f,style:p,component:m="div"}=e,{direction:g,getPrefixCls:b,className:v,style:x}=Kt("app"),C=b("app",o),[S,R]=dP(C),E=W(S,C,i,l,R,{[`${C}-rtl`]:g==="rtl"}),N=c.useContext(YC),$=ce.useMemo(()=>({message:{...N.message,...u},notification:{...N.notification,...f}}),[u,f,N.message,N.notification]),[w,T]=BA($.message),[z,A]=lP($.notification),[P,B]=JI(),D=ce.useMemo(()=>({message:w,notification:z,modal:P}),[w,z,P]),I=m===!1?ce.Fragment:m,H={className:W(v,E),style:{...x,...p}};return ce.createElement(k2.Provider,{value:D},ce.createElement(YC.Provider,{value:$},ce.createElement(I,{...m===!1?void 0:{...H,ref:t}},B,T,A,r)))}),mP=()=>ce.useContext(k2),j0=fP;j0.useApp=mP;function pP(e){return t=>c.createElement(ja,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,{...t}))}const gP=(e,t,o,r,i)=>pP(u=>{const{prefixCls:f,style:p}=u,m=c.useRef(null),[g,b]=c.useState(0),[v,x]=c.useState(0),[C,S]=To(!1,u.open),{getPrefixCls:R}=c.useContext(St),E=R("select",f);c.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(z=>{const A=z[0].target;b(A.offsetHeight+8),x(A.offsetWidth)}),T=setInterval(()=>{const z=`.${E}-dropdown`,A=m.current?.querySelector(z);A&&(clearInterval(T),w.observe(A))},10);return()=>{clearInterval(T),w.disconnect()}}},[E]);let N={...u,style:{...p,margin:0},open:C,getPopupContainer:()=>m.current};N={...N,[t]:{overflow:{adjustX:!1,adjustY:!1}}};const $={paddingBottom:g,position:"relative",minWidth:v};return c.createElement("div",{ref:m,style:$},c.createElement(e,{...N}))}),hP=(e,t,o,r,i=!1,l,u)=>{const f=c.useMemo(()=>typeof o=="boolean"?{allowClear:o}:o&&typeof o=="object"?o:{allowClear:!1},[o]);return c.useMemo(()=>{const p=!i&&f.allowClear!==!1&&(t.length||l)&&!(u==="combobox"&&l==="");return{allowClear:p,clearIcon:p?f.clearIcon||r||"×":null}},[f,r,i,t.length,l,u])},Y2=c.createContext(null);function xi(){return c.useContext(Y2)}function bP(e=250){const t=c.useRef(null),o=c.useRef(null);c.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function K2(e,t){return e.filter(o=>o).some(o=>o.contains(t)||o===t)}function vP(e,t,o,r){const i=pt(l=>{if(r)return;let u=l.target;u.shadowRoot&&l.composed&&(u=l.composedPath()[0]||u),l._ori_target&&(u=l._ori_target),t&&!K2(e(),u)&&o(!1)});c.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},eb.apply(this,arguments)}const yP=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},xP=(e,t)=>{const{prefixCls:o,disabled:r,visible:i,children:l,popupElement:u,animation:f,transitionName:p,popupStyle:m,popupClassName:g,direction:b="ltr",placement:v,builtinPlacements:x,popupMatchSelectWidth:C,popupRender:S,popupAlign:R,getPopupContainer:E,empty:N,onPopupVisibleChange:$,onPopupMouseEnter:w,onPopupMouseDown:T,onPopupBlur:z,...A}=e,P=`${o}-dropdown`;let B=u;S&&(B=S(u));const D=c.useMemo(()=>x||yP(C),[x,C]),I=f?`${P}-${f}`:p,H=typeof C=="number",X=c.useMemo(()=>C===!1||H?"minWidth":"width",[C,H]);let Z=m;H&&(Z={...m,width:C});const U=c.useRef(null);return c.useImperativeHandle(t,()=>({getPopupElement:()=>U.current?.popupElement})),c.createElement(xf,eb({},A,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:v||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:P,popupMotion:{motionName:I},popup:c.createElement("div",{onMouseEnter:w,onMouseDown:T,onBlur:z},B),ref:U,stretch:X,popupAlign:R,popupVisible:i,getPopupContainer:E,popupClassName:W(g,{[`${P}-empty`]:N}),popupStyle:Z,onPopupVisibleChange:$}),l)},SP=c.forwardRef(xP);function KC(e,t){const{key:o}=e;let r;return"value"in e&&({value:r}=e),o??(r!==void 0?r:`rc-index-key-${t}`)}function tb(e){return typeof e<"u"&&!Number.isNaN(e)}function Q2(e,t){const{label:o,value:r,options:i,groupLabel:l}=e||{},u=o||(t?"children":"label");return{label:u,value:r||"value",options:i||"options",groupLabel:l||u}}function CP(e,{fieldNames:t,childrenAsData:o}={}){const r=[],{label:i,value:l,options:u,groupLabel:f}=Q2(t,!1);function p(m,g){Array.isArray(m)&&m.forEach(b=>{if(g||!(u in b)){const v=b[l];r.push({key:KC(b,r.length),groupOption:g,data:b,label:b[i],value:v})}else{let v=b[f];v===void 0&&o&&(v=b.label),r.push({key:KC(b,r.length),group:!0,data:b,label:v}),p(b[u],!0)}})}return p(e,!1),r}function nb(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Yn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const $P=(e,t,o)=>{if(!t||!t.length)return null;let r=!1;const i=(u,[f,...p])=>{if(!f)return[u];const m=u.split(f);return r=r||m.length>1,m.reduce((g,b)=>[...g,...i(b,p)],[]).filter(Boolean)},l=i(e,t);return r?typeof o<"u"?l.slice(0,o):l:null};function EP(e){const{visible:t,values:o}=e;if(!t)return null;const r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${o.slice(0,r).map(({label:i,value:l})=>["number","string"].includes(typeof i)?i:l).join(", ")}`,o.length>r?", ...":null)}const wP=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},B0=(e,t=1)=>{if(t<=0){e();return}wP(()=>{B0(e,t-1)})};function NP(e,t,o,r){const[i,l]=c.useState(!1);c.useEffect(()=>{l(!0)},[]);const[u,f]=To(e,t),[p,m]=c.useState(!1),g=i?u:!1,b=r(g),v=c.useRef(0),x=pt(S=>{o&&b!==S&&o(S),f(S)}),C=pt((S,R={})=>{const{cancelFun:E}=R;v.current+=1;const N=v.current,$=typeof S=="boolean"?S:!b;m(!$);function w(){N===v.current&&!E?.()&&(x($),m(!1))}$?w():B0(()=>{w()})});return[g,b,C,p]}function Eg(e){const{children:t,...o}=e;return t?c.createElement("div",o,t):null}const Z2=c.createContext(null);function Cc(){return c.useContext(Z2)}const J2=c.forwardRef((e,t)=>{const{onChange:o,onKeyDown:r,onBlur:i,style:l,syncWidth:u,value:f,className:p,autoComplete:m,...g}=e,{prefixCls:b,mode:v,onSearch:x,onSearchSubmit:C,onInputBlur:S,autoFocus:R,tokenWithEnter:E,placeholder:N,components:{input:$="input"}}=Cc(),{id:w,classNames:T,styles:z,open:A,activeDescendantId:P,role:B,disabled:D}=xi()||{},I=W(`${b}-input`,T?.input,p),H=c.useRef(!1),X=c.useRef(null),Z=c.useRef(null);c.useImperativeHandle(t,()=>Z.current);const U=K=>{let{value:te}=K.target;if(E&&X.current&&/[\r\n]/.test(X.current)){const Y=X.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");te=te.replace(Y,X.current)}X.current=null,x&&x(te,!0,H.current),o?.(K)},L=K=>{const{key:te}=K,{value:Y}=K.currentTarget;te==="Enter"&&v==="tags"&&!A&&!H.current&&C&&C(Y),r?.(K)},q=K=>{S?.(),i?.(K)},F=()=>{H.current=!0},J=K=>{if(H.current=!1,v!=="combobox"){const{value:te}=K.currentTarget;x?.(te,!0,!1)}},Q=K=>{const{clipboardData:te}=K,Y=te?.getData("text");X.current=Y||""},[j,V]=c.useState(void 0);un(()=>{const K=Z.current;if(u&&K){K.style.width="0px";const te=K.scrollWidth;V(te),K.style.width=""}},[u,f]);const k={id:w,type:"text",...g,ref:Z,style:{...z?.input,...l,"--select-input-width":j},autoFocus:R,autoComplete:m||"new-password",className:I,disabled:D,value:f||"",onChange:U,onKeyDown:L,onBlur:q,onPaste:Q,onCompositionStart:F,onCompositionEnd:J,role:B||"combobox","aria-expanded":A||!1,"aria-haspopup":"listbox","aria-owns":A?`${w}_list`:void 0,"aria-autocomplete":"list","aria-controls":A?`${w}_list`:void 0,"aria-activedescendant":A?P:void 0};if(c.isValidElement($)){const K=$.props||{},te={placeholder:e.placeholder||N,...k,...K};return Object.keys(K).forEach(Y=>{const ie=K[Y];typeof ie=="function"&&(te[Y]=(...se)=>{ie(...se),k[Y]?.(...se)})}),te.ref=oo($.ref,k.ref),c.cloneElement($,te)}const G=$;return c.createElement(G,k)});function eN(e){const{prefixCls:t,placeholder:o,displayValues:r}=Cc(),{classNames:i,styles:l}=xi(),{show:u=!0}=e;return r.length?null:c.createElement("div",{className:W(`${t}-placeholder`,i?.placeholder),style:{visibility:u?"visible":"hidden",...l?.placeholder}},o)}const _0=c.createContext(null);function tN(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function RP(e){return e!=null}function MP(e){return!e&&e!==0}function QC(e){return["string","number"].includes(typeof e)}function ob(e){let t;return e&&(QC(e.title)?t=e.title.toString():QC(e.label)&&(t=e.label.toString())),t}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rb.apply(this,arguments)}const TP=c.forwardRef(({inputProps:e},t)=>{const{prefixCls:o,searchValue:r,activeValue:i,displayValues:l,maxLength:u,mode:f,components:p}=Cc(),{triggerOpen:m,title:g,showSearch:b,classNames:v,styles:x}=xi(),C=c.useContext(_0),[S,R]=c.useState(!1),E=f==="combobox",N=l[0],$=c.useMemo(()=>E&&i&&!S&&m?i:b?r:"",[E,i,S,m,r,b]),[w,T,z,A]=c.useMemo(()=>{let I,H,X;if(N&&C?.flattenOptions){const U=C.flattenOptions.find(L=>L.value===N.value);U?.data&&(I=U.data.className,H=U.data.style,X=ob(U.data))}return N&&!X&&(X=ob(N)),g!==void 0&&(X=g),[I,H,X,!!I||!!H]},[N,C?.flattenOptions,g]);c.useEffect(()=>{E&&R(!1)},[E,i]);const P=N&&N.label!==null&&N.label!==void 0&&String(N.label).trim()!=="",D=!(E&&p?.input)?N?A?c.createElement("div",{className:W(`${o}-content-value`,w),style:{...$?{visibility:"hidden"}:{},...T},title:z},N.label):N.label:c.createElement(eN,{show:!$}):null;return c.createElement("div",{className:W(`${o}-content`,P&&`${o}-content-has-value`,$&&`${o}-content-has-search-value`,A&&`${o}-content-has-option-style`,v?.content),style:x?.content,title:A?void 0:z},D,c.createElement(J2,rb({ref:t},e,{value:$,maxLength:f==="combobox"?u:void 0,onChange:I=>{R(!0),e.onChange?.(I)}})))}),as=void 0;function OP(e,t){const{prefixCls:o,invalidate:r,item:i,renderItem:l,responsive:u,responsiveDisabled:f,registerSize:p,itemKey:m,className:g,style:b,children:v,display:x,order:C,component:S="div",...R}=e,E=u&&!x;function N(A){p(m,A)}c.useEffect(()=>()=>{N(null)},[]);const $=l&&i!==as?l(i,{index:C}):v;let w;r||(w={opacity:E?0:1,height:E?0:as,overflowY:E?"hidden":as,order:u?C:as,pointerEvents:E?"none":as,position:E?"absolute":as});const T={};E&&(T["aria-hidden"]=!0);let z=c.createElement(S,mr({className:W(!r&&o,g),style:{...w,...b}},T,R,{ref:t}),$);return u&&(z=c.createElement(gr,{onResize:({offsetWidth:A})=>{N(A)},disabled:f},z)),z}const Vl=c.forwardRef(OP);function zP(e){if(typeof MessageChannel>"u")Lt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function AP(){const e=c.useRef(null);return o=>{e.current||(e.current=[],zP(()=>{gi.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(o)}}function is(e,t){const[o,r]=c.useState(t),i=pt(l=>{e(()=>{r(l)})});return[o,i]}const ef=ce.createContext(null),IP=(e,t)=>{const o=c.useContext(ef);if(!o){const{component:f="div",...p}=e;return c.createElement(f,mr({},p,{ref:t}))}const{className:r,...i}=o,{className:l,...u}=e;return c.createElement(ef.Provider,{value:null},c.createElement(Vl,mr({ref:t,className:W(r,l)},i,u)))},PP=c.forwardRef(IP),nN="responsive",oN="invalidate";function jP(e){return`+ ${e.length} ...`}function BP(e,t){const{prefixCls:o="rc-overflow",data:r=[],renderItem:i,renderRawItem:l,itemKey:u,itemWidth:f=10,ssr:p,style:m,className:g,maxCount:b,renderRest:v,renderRawRest:x,prefix:C,suffix:S,component:R="div",itemComponent:E,onVisibleChange:N,...$}=e,w=p==="full",T=AP(),[z,A]=is(T,null),P=z||0,[B,D]=is(T,new Map),[I,H]=is(T,0),[X,Z]=is(T,0),[U,L]=is(T,0),[q,F]=is(T,0),[J,Q]=c.useState(null),[j,V]=c.useState(null),k=c.useMemo(()=>j===null&&w?Number.MAX_SAFE_INTEGER:j||0,[j,z]),[G,K]=c.useState(!1),te=`${o}-item`,Y=Math.max(I,X),ie=b===nN,se=r.length&&ie,ae=b===oN,me=se||typeof b=="number"&&r.length>b,ne=c.useMemo(()=>{let Pe=r;return se?z===null&&w?Pe=r:Pe=r.slice(0,Math.min(r.length,P/f)):typeof b=="number"&&(Pe=r.slice(0,b)),Pe},[r,f,z,b,se]),ue=c.useMemo(()=>se?r.slice(k+1):r.slice(ne.length),[r,ne,se,k]),he=c.useCallback((Pe,_e)=>typeof u=="function"?u(Pe):(u&&Pe?.[u])??_e,[u]),ge=c.useCallback(i||(Pe=>Pe),[i]);function Se(Pe,_e,Xe){j===Pe&&(_e===void 0||_e===J)||(V(Pe),Xe||(K(Pe<r.length-1),N?.(Pe)),_e!==void 0&&Q(_e))}function $e(Pe,_e){A(_e.clientWidth)}function ye(Pe,_e){D(Xe=>{const De=new Map(Xe);return _e===null?De.delete(Pe):De.set(Pe,_e),De})}function xe(Pe,_e){Z(_e),H(X)}function Ce(Pe,_e){L(_e)}function we(Pe,_e){F(_e)}function Be(Pe){return B.get(he(ne[Pe],Pe))}un(()=>{if(P&&typeof Y=="number"&&ne){let Pe=U+q;const _e=ne.length,Xe=_e-1;if(!_e){Se(0,null);return}for(let De=0;De<_e;De+=1){let Oe=Be(De);if(w&&(Oe=Oe||0),Oe===void 0){Se(De-1,void 0,!0);break}if(Pe+=Oe,Xe===0&&Pe<=P||De===Xe-1&&Pe+Be(Xe)<=P){Se(Xe,null);break}else if(Pe+Y>P){Se(De-1,Pe-Oe-q+X);break}}S&&Be(0)+q>P&&Q(null)}},[P,B,X,U,q,he,ne]);const Te=G&&!!ue.length;let He={};J!==null&&se&&(He={position:"absolute",top:0,insetInlineStart:J});const nt={prefixCls:te,responsive:se,component:E,invalidate:ae},Ke=l?(Pe,_e)=>{const Xe=he(Pe,_e);return c.createElement(ef.Provider,{key:Xe,value:{...nt,order:_e,item:Pe,itemKey:Xe,registerSize:ye,display:_e<=k}},l(Pe,_e))}:(Pe,_e)=>{const Xe=he(Pe,_e);return c.createElement(Vl,mr({},nt,{order:_e,key:Xe,item:Pe,renderItem:ge,itemKey:Xe,registerSize:ye,display:_e<=k}))},Fe={order:Te?k:Number.MAX_SAFE_INTEGER,className:`${te}-rest`,registerSize:xe,display:Te},qe=v||jP,Je=x?c.createElement(ef.Provider,{value:{...nt,...Fe}},x(ue)):c.createElement(Vl,mr({},nt,Fe),typeof qe=="function"?qe(ue):qe),Ue=c.createElement(R,mr({className:W(!ae&&o,g),style:m,ref:t},$),C&&c.createElement(Vl,mr({},nt,{responsive:ie,responsiveDisabled:!se,order:-1,className:`${te}-prefix`,registerSize:Ce,display:!0}),C),ne.map(Ke),me?Je:null,S&&c.createElement(Vl,mr({},nt,{responsive:ie,responsiveDisabled:!se,order:k,className:`${te}-suffix`,registerSize:we,display:!0,style:He}),S));return ie?c.createElement(gr,{onResize:$e,disabled:!se},Ue):Ue}const Vr=c.forwardRef(BP);Vr.Item=PP;Vr.RESPONSIVE=nN;Vr.INVALIDATE=oN;const rN=e=>{const{className:t,style:o,customizeIcon:r,customizeIconProps:i,children:l,onMouseDown:u,onClick:f}=e,p=typeof r=="function"?r(i):r;return c.createElement("span",{className:t,onMouseDown:m=>{m.preventDefault(),u?.(m)},style:{userSelect:"none",WebkitUserSelect:"none",...o},unselectable:"on",onClick:f,"aria-hidden":!0},p!==void 0?p:c.createElement("span",{className:W(t.split(/\s+/).map(m=>`${m}-icon`))},l))};function ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ab.apply(this,arguments)}function _P(e){return e.key??e.value}const ZC=e=>{e.preventDefault(),e.stopPropagation()},HP=c.forwardRef(function({inputProps:t},o){const{prefixCls:r,displayValues:i,searchValue:l,mode:u,onSelectorRemove:f,removeIcon:p}=Cc(),{disabled:m,showSearch:g,triggerOpen:b,rawOpen:v,toggleOpen:x,autoClearSearchValue:C,tagRender:S,maxTagPlaceholder:R,maxTagTextLength:E,maxTagCount:N,classNames:$,styles:w}=xi(),T=`${r}-selection-item`;let z=l;!v&&u==="multiple"&&C!==!1&&(z="");const A=g&&z||"",P=g&&!m,B=p??"×",D=R??(F=>`+ ${F.length} ...`),I=S,H=F=>{x(F)},X=F=>{f?.(F)},Z=(F,J,Q,j,V)=>c.createElement("span",{title:ob(F),className:W(T,{[`${T}-disabled`]:Q},$?.item),style:w?.item},c.createElement("span",{className:W(`${T}-content`,$?.itemContent),style:w?.itemContent},J),j&&c.createElement(rN,{className:W(`${T}-remove`,$?.itemRemove),style:w?.itemRemove,onMouseDown:ZC,onClick:V,customizeIcon:B},"×")),U=(F,J,Q,j,V,k,G)=>{const K=te=>{ZC(te),H(!b)};return c.createElement("span",{onMouseDown:K},I({label:J,value:F,index:G?.index,disabled:Q,closable:j,onClose:V,isMaxTag:!!k}))},L=(F,J)=>{const{disabled:Q,label:j,value:V}=F,k=!m&&!Q;let G=j;if(typeof E=="number"&&(typeof j=="string"||typeof j=="number")){const te=String(G);te.length>E&&(G=`${te.slice(0,E)}...`)}const K=te=>{te&&te.stopPropagation(),X(F)};return typeof I=="function"?U(V,G,Q,k,K,void 0,J):Z(F,G,Q,k,K)},q=F=>{if(!i.length)return null;const J=typeof D=="function"?D(F):D;return typeof I=="function"?U(void 0,J,!1,!1,void 0,!0):Z({title:J},J,!1)};return c.createElement(Vr,{prefixCls:`${r}-content`,className:$?.content,style:w?.content,prefix:!i.length&&!A&&c.createElement(eN,null),data:i,renderItem:L,renderRest:q,suffix:c.createElement(J2,ab({ref:o,disabled:m,readOnly:!P},t,{value:A||"",syncWidth:!0})),itemKey:_P,maxCount:N})}),DP=c.forwardRef(function(t,o){const{multiple:r,onInputKeyDown:i,tabIndex:l}=Cc(),u=xi(),{showSearch:f}=u,m={...Qn(u,{aria:!0}),onKeyDown:i,readOnly:!f,tabIndex:l};return r?c.createElement(HP,{ref:o,inputProps:m}):c.createElement(TP,{ref:o,inputProps:m})});function LP(e){return e&&![at.ESC,at.SHIFT,at.BACKSPACE,at.TAB,at.WIN_KEY,at.ALT,at.META,at.WIN_KEY_RIGHT,at.CTRL,at.SEMICOLON,at.EQUALS,at.CAPS_LOCK,at.CONTEXT_MENU,at.UP,at.LEFT,at.RIGHT,at.F1,at.F2,at.F3,at.F4,at.F5,at.F6,at.F7,at.F8,at.F9,at.F10,at.F11,at.F12].includes(e)}function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},tf.apply(this,arguments)}const VP=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],FP=c.forwardRef(function(t,o){const{prefixCls:r,className:i,style:l,prefix:u,suffix:f,clearIcon:p,children:m,multiple:g,displayValues:b,placeholder:v,mode:x,searchValue:C,onSearch:S,onSearchSubmit:R,onInputBlur:E,maxLength:N,autoFocus:$,onMouseDown:w,onClearMouseDown:T,onInputKeyDown:z,onSelectorRemove:A,tokenWithEnter:P,components:B,...D}=t,{triggerOpen:I,toggleOpen:H,showSearch:X,disabled:Z,loading:U,classNames:L,styles:q}=xi(),F=c.useRef(null),J=c.useRef(null),Q=pt(Y=>{const{which:ie}=Y,se=J.current instanceof HTMLTextAreaElement;if(!se&&I&&(ie===at.UP||ie===at.DOWN)&&Y.preventDefault(),z&&z(Y),se&&!I&&~[at.UP,at.DOWN,at.LEFT,at.RIGHT].indexOf(ie))return;!(Y.ctrlKey||Y.altKey||Y.metaKey)&&LP(ie)&&H(!0)});c.useImperativeHandle(o,()=>({focus:Y=>{(J.current||F.current).focus?.(Y)},blur:()=>{(J.current||F.current).blur?.()},nativeElement:pi(F.current)}));const j=pt(Y=>{if(!Z){const ie=pi(J.current);Y.nativeEvent._ori_target=ie;const se=ie===Y.target||ie?.contains(Y.target);ie&&!se&&Y.preventDefault();const ne=I&&!g&&(x==="combobox"||X)||I&&g&&se;Y.nativeEvent._select_lazy?I&&!g&&H(!1):(J.current?.focus(),ne||H())}w?.(Y)}),{root:V}=B,k=xn(D,VP),G=Qn(k,{aria:!0}),K=Object.keys(G),te={...t,onInputKeyDown:Q};if(V){const Y=V.props||{},ie={...Y,...k};return Object.keys(Y).forEach(se=>{const ae=Y[se],me=k[se];typeof ae=="function"&&typeof me=="function"&&(ie[se]=(...ne)=>{me(...ne),ae(...ne)})}),c.isValidElement(V)?c.cloneElement(V,{...ie,ref:oo(V.ref,F)}):c.createElement(V,tf({},ie,{ref:F}))}return c.createElement(Z2.Provider,{value:te},c.createElement("div",tf({},xn(k,K),{ref:F,className:i,style:l,onMouseDown:j}),c.createElement(Eg,{className:W(`${r}-prefix`,L?.prefix),style:q?.prefix},u),c.createElement(DP,{ref:J}),c.createElement(Eg,{className:W(`${r}-suffix`,{[`${r}-suffix-loading`]:U},L?.suffix),style:q?.suffix},f),p&&c.createElement(Eg,{className:W(`${r}-clear`,L?.clear),style:q?.clear,onMouseDown:Y=>{Y.nativeEvent._select_lazy=!0,T?.(Y)}},p),m))});function qP(e,t,o){return c.useMemo(()=>{let{root:r,input:i}=e||{};return o&&(r=o()),t&&(i=t()),{root:r,input:i}},[e,t,o])}function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ib.apply(this,arguments)}const sb=e=>e==="tags"||e==="multiple",UP=c.forwardRef((e,t)=>{const{id:o,prefixCls:r,className:i,styles:l,classNames:u,showSearch:f,tagRender:p,showScrollBar:m="optional",direction:g,omitDomProps:b,displayValues:v,onDisplayValuesChange:x,emptyOptions:C,notFoundContent:S="Not Found",onClear:R,maxCount:E,placeholder:N,mode:$,disabled:w,loading:T,getInputElement:z,getRawInputElement:A,open:P,defaultOpen:B,onPopupVisibleChange:D,activeValue:I,onActiveValueChange:H,activeDescendantId:X,searchValue:Z,autoClearSearchValue:U,onSearch:L,onSearchSplit:q,tokenSeparators:F,allowClear:J,prefix:Q,suffix:j,suffixIcon:V,clearIcon:k,OptionList:G,animation:K,transitionName:te,popupStyle:Y,popupClassName:ie,popupMatchSelectWidth:se,popupRender:ae,popupAlign:me,placement:ne,builtinPlacements:ue,getPopupContainer:he,showAction:ge=[],onFocus:Se,onBlur:$e,onKeyUp:ye,onKeyDown:xe,onMouseDown:Ce,components:we,...Be}=e,Te=sb($),He=c.useRef(null),nt=c.useRef(null),Ke=c.useRef(null),[Fe,qe]=c.useState(!1);c.useImperativeHandle(t,()=>({focus:He.current?.focus,blur:He.current?.blur,scrollTo:Ge=>Ke.current?.scrollTo(Ge),nativeElement:pi(He.current)}));const Je=qP(we,z,A),Ue=c.useMemo(()=>{if($!=="combobox")return Z;const Ge=v[0]?.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[Z,$,v]),Pe=$==="combobox"&&typeof z=="function"&&z()||null,_e=!S&&C,[Xe,De,Oe,Qe]=NP(B||!1,P,D,Ge=>w||_e?!1:Ge),ze=c.useMemo(()=>typeof F=="function"||(F||[]).some(Ge=>[`
|
|
164
|
-
`,`\r
|
|
165
|
-
`].includes(Ge)),[F]),Ie=c.useMemo(()=>typeof F=="function"?(Ge,lt)=>{const _t=F(Ge),en=Array.isArray(_t)&&_t.length===1&&_t[0]===Ge;return!Array.isArray(_t)||!_t.length||en?null:typeof lt<"u"?_t.slice(0,lt):_t}:(Ge,lt)=>$P(Ge,F,lt),[F]),We=(Ge,lt,_t)=>{if(Te&&tb(E)&&v.length>=E)return;let en=!0,wt=Ge;H?.(null);const Ft=tb(E)?E-v.length:void 0,gn=_t?null:Ie(Ge,Ft);return $!=="combobox"&&gn&&(wt="",q?.(gn),Oe(!1),en=!1),L&&Ue!==wt&&L(wt,{source:lt?"typing":"effect"}),Ge&<&&en&&Oe(!0),en},Ye=Ge=>{!Ge||!Ge.trim()||L(Ge,{source:"submit"})};c.useEffect(()=>{!Xe&&!Te&&$!=="combobox"&&We("",!1,!1)},[Xe]),c.useEffect(()=>{w&&(Oe(!1),qe(!1))},[w,De]);const[rt,ct]=bP(),it=c.useRef(!1),yt=Ge=>{const lt=rt(),{key:_t}=Ge,en=_t==="Enter",wt=_t===" ";if(en||wt){const Ft=$==="combobox";(wt&&!(Ft||f)||en&&!Ft)&&Ge.preventDefault(),De||Oe(!0)}if(ct(!!Ue),_t==="Backspace"&&!lt&&Te&&!Ue&&v.length){const Ft=[...v];let gn=null;for(let Ht=Ft.length-1;Ht>=0;Ht-=1){const ro=Ft[Ht];if(!ro.disabled){Ft.splice(Ht,1),gn=ro;break}}gn&&x(Ft,{type:"remove",values:[gn]})}De&&(!en||!it.current)&&!wt&&(en&&(it.current=!0),Ke.current?.onKeyDown(Ge)),xe?.(Ge)},Et=(Ge,...lt)=>{De&&Ke.current?.onKeyUp(Ge,...lt),Ge.key==="Enter"&&(it.current=!1),ye?.(Ge,...lt)},Tt=pt(Ge=>{const lt=v.filter(_t=>_t!==Ge);x(lt,{type:"remove",values:[Ge]})}),et=()=>{it.current=!1},Ot=()=>[pi(He.current),nt.current?.getPopupElement()];vP(Ot,De,Oe,!!Je.root);const Le=c.useRef(!1),Ne=Ge=>{qe(!0),w||(ge.includes("focus")&&Oe(!0),Se?.(Ge))},Ae=()=>{De&&!Le.current&&Oe(!1,{cancelFun:()=>K2(Ot(),document.activeElement)})},ve=Ge=>{qe(!1),Ue&&($==="tags"?L(Ue,{source:"submit"}):$==="multiple"&&L("",{source:"blur"})),Ae(),w||$e?.(Ge)},je=(Ge,...lt)=>{const{target:_t}=Ge;nt.current?.getPopupElement()?.contains(_t)&&Oe&&Oe(!0),Ce?.(Ge,...lt),Le.current=!0,B0(()=>{Le.current=!1})},[,Ve]=c.useState({});function Ze(){Ve({})}let ft;Je.root&&(ft=Ge=>{Oe(Ge)});const Jt=c.useMemo(()=>({...e,notFoundContent:S,open:De,triggerOpen:De,rawOpen:Xe,id:o,showSearch:f,multiple:Te,toggleOpen:Oe,showScrollBar:m,styles:l,classNames:u,lockOptions:Qe}),[e,S,Oe,o,f,Te,De,Xe,m,l,u,Qe]),Rt=c.useMemo(()=>{const Ge=j??V;return typeof Ge=="function"?Ge({searchValue:Ue,open:De,focused:Fe,showSearch:f,loading:T}):Ge},[j,V,Ue,De,Fe,f,T]),mt=()=>{R?.(),He.current?.focus(),x([],{type:"clear",values:v}),We("",!1,!1)},{allowClear:Mt,clearIcon:on}=hP(r,v,J,k,w,Ue,$),ut=c.createElement(G,{ref:Ke}),bt=W(r,i,{[`${r}-focused`]:Fe,[`${r}-multiple`]:Te,[`${r}-single`]:!Te,[`${r}-allow-clear`]:Mt,[`${r}-show-arrow`]:Rt!=null,[`${r}-disabled`]:w,[`${r}-loading`]:T,[`${r}-open`]:De,[`${r}-customize-input`]:Pe,[`${r}-show-search`]:f});let $t=c.createElement(FP,ib({},Be,{ref:He,prefixCls:r,className:bt,focused:Fe,prefix:Q,suffix:Rt,clearIcon:on,multiple:Te,mode:$,displayValues:v,placeholder:N,searchValue:Ue,activeValue:I,onSearch:We,onSearchSubmit:Ye,onInputBlur:et,onFocus:Ne,onBlur:ve,onClearMouseDown:mt,onKeyDown:yt,onKeyUp:Et,onSelectorRemove:Tt,tokenWithEnter:ze,onMouseDown:je,components:Je}));return $t=c.createElement(SP,{ref:nt,disabled:w,prefixCls:r,visible:De,popupElement:ut,animation:K,transitionName:te,popupStyle:Y,popupClassName:ie,direction:g,popupMatchSelectWidth:se,popupRender:ae,popupAlign:me,placement:ne,builtinPlacements:ue,getPopupContainer:he,empty:C,onPopupVisibleChange:ft,onPopupMouseEnter:Ze,onPopupMouseDown:je,onPopupBlur:Ae},$t),c.createElement(Y2.Provider,{value:Jt},c.createElement(EP,{visible:Fe&&!De,values:v}),$t)}),H0=()=>null;H0.isSelectOptGroup=!0;const D0=()=>null;D0.isSelectOption=!0;function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},lb.apply(this,arguments)}const aN=c.forwardRef(({height:e,offsetY:t,offsetX:o,children:r,prefixCls:i,onInnerResize:l,innerProps:u,rtl:f,extra:p},m)=>{let g={},b={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},b={...b,transform:`translateY(${t}px)`,[f?"marginRight":"marginLeft"]:-o,position:"absolute",left:0,right:0,top:0}),c.createElement("div",{style:g},c.createElement(gr,{onResize:({offsetHeight:v})=>{v&&l&&l()}},c.createElement("div",lb({style:b,className:W({[`${i}-holder-inner`]:i}),ref:m},u),r,p)))});aN.displayName="Filler";function WP({children:e,setRef:t}){const o=c.useCallback(r=>{t(r)},[t]);return c.cloneElement(e,{ref:o})}function GP(e,t,o,r,i,l,u,{getKey:f}){return e.slice(t,o+1).map((p,m)=>{const g=t+m,b=u(p,g,{style:{width:r},offsetX:i}),v=f(p);return c.createElement(WP,{key:v,setRef:x=>l(p,x)},b)})}function XP(e,t,o){const r=e.length,i=t.length;let l,u;if(r===0&&i===0)return null;r<i?(l=e,u=t):(l=t,u=e);const f={__EMPTY_ITEM__:!0};function p(b){return b!==void 0?o(b):f}let m=null,g=Math.abs(r-i)!==1;for(let b=0;b<u.length;b+=1){const v=p(l[b]),x=p(u[b]);if(v!==x){m=b,g=g||v!==p(u[b+1]);break}}return m===null?null:{index:m,multiple:g}}function kP(e,t,o){const[r,i]=c.useState(e),[l,u]=c.useState(null);return c.useEffect(()=>{const f=XP(r||[],e||[],t);f?.index!==void 0&&u(e[f.index]),i(e)},[e]),[l]}const JC=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),iN=((e,t,o,r)=>{const i=c.useRef(!1),l=c.useRef(null);function u(){clearTimeout(l.current),i.current=!0,l.current=setTimeout(()=>{i.current=!1},50)}const f=c.useRef({top:e,bottom:t,left:o,right:r});return f.current.top=e,f.current.bottom=t,f.current.left=o,f.current.right=r,(p,m,g=!1)=>{const b=p?m<0&&f.current.left||m>0&&f.current.right:m<0&&f.current.top||m>0&&f.current.bottom;return g&&b?(clearTimeout(l.current),i.current=!1):(!b||i.current)&&u(),!i.current&&b}});function YP(e,t,o,r,i,l,u){const f=c.useRef(0),p=c.useRef(null),m=c.useRef(null),g=c.useRef(!1),b=iN(t,o,r,i);function v(N,$){if(Lt.cancel(p.current),b(!1,$))return;const w=N;if(!w._virtualHandled)w._virtualHandled=!0;else return;f.current+=$,m.current=$,JC||w.preventDefault(),p.current=Lt(()=>{const T=g.current?10:1;u(f.current*T,!1),f.current=0})}function x(N,$){u($,!0),JC||N.preventDefault()}const C=c.useRef(null),S=c.useRef(null);function R(N){if(!e)return;Lt.cancel(S.current),S.current=Lt(()=>{C.current=null},2);const{deltaX:$,deltaY:w,shiftKey:T}=N;let z=$,A=w;(C.current==="sx"||!C.current&&T&&w&&!$)&&(z=w,A=0,C.current="sx");const P=Math.abs(z),B=Math.abs(A);C.current===null&&(C.current=l&&P>B?"x":"y"),C.current==="y"?v(N,A):x(N,z)}function E(N){e&&(g.current=N.detail===m.current)}return[R,E]}function KP(e,t,o,r){const[i,l]=c.useMemo(()=>[new Map,[]],[e,o.id,r]);return(f,p=f)=>{let m=i.get(f),g=i.get(p);if(m===void 0||g===void 0){const b=e.length;for(let v=l.length;v<b;v+=1){const x=e[v],C=t(x);i.set(C,v);const S=o.get(C)??r;if(l[v]=(l[v-1]||0)+S,C===f&&(m=v),C===p&&(g=v),m!==void 0&&g!==void 0)break}}return{top:l[m-1]||0,bottom:l[g]}}}class QP{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,o){this.diffRecords.set(t,this.maps[t]),this.maps[t]=o,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function e$(e){const t=parseFloat(e);return isNaN(t)?0:t}function ZP(e,t,o){const[r,i]=c.useState(0),l=c.useRef(new Map),u=c.useRef(new QP),f=c.useRef(0);function p(){f.current+=1}function m(b=!1){p();const v=()=>{let x=!1;l.current.forEach((C,S)=>{if(C&&C.offsetParent){const{offsetHeight:R}=C,{marginTop:E,marginBottom:N}=getComputedStyle(C),$=e$(E),w=e$(N),T=R+$+w;u.current.get(S)!==T&&(u.current.set(S,T),x=!0)}}),x&&i(C=>C+1)};if(b)v();else{f.current+=1;const x=f.current;Promise.resolve().then(()=>{x===f.current&&v()})}}function g(b,v){const x=e(b);l.current.get(x),v?(l.current.set(x,v),m()):l.current.delete(x)}return c.useEffect(()=>p,[]),[g,m,u.current,r]}const t$=14/15;function JP(e,t,o){const r=c.useRef(!1),i=c.useRef(0),l=c.useRef(0),u=c.useRef(null),f=c.useRef(null);let p;const m=v=>{if(r.current){const x=Math.ceil(v.touches[0].pageX),C=Math.ceil(v.touches[0].pageY);let S=i.current-x,R=l.current-C;const E=Math.abs(S)>Math.abs(R);E?i.current=x:l.current=C;const N=o(E,E?S:R,!1,v);N&&v.preventDefault(),clearInterval(f.current),N&&(f.current=setInterval(()=>{E?S*=t$:R*=t$;const $=Math.floor(E?S:R);(!o(E,$,!0)||Math.abs($)<=.1)&&clearInterval(f.current)},16))}},g=()=>{r.current=!1,p()},b=v=>{p(),v.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(v.touches[0].pageX),l.current=Math.ceil(v.touches[0].pageY),u.current=v.target,u.current.addEventListener("touchmove",m,{passive:!1}),u.current.addEventListener("touchend",g,{passive:!0}))};p=()=>{u.current&&(u.current.removeEventListener("touchmove",m),u.current.removeEventListener("touchend",g))},un(()=>(e&&t.current.addEventListener("touchstart",b,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",b),p(),clearInterval(f.current)}),[e])}function n$(e){return Math.floor(e**.5)}function Hd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function ej(e,t,o){c.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,l,u;const f=()=>{Lt.cancel(l)},p=()=>{f(),l=Lt(()=>{o(u),p()})},m=()=>{i=!1,f()},g=v=>{if(v.target.draggable||v.button!==0)return;const x=v;x._virtualHandled||(x._virtualHandled=!0,i=!0)},b=v=>{if(i){const x=Hd(v,!1),{top:C,bottom:S}=r.getBoundingClientRect();if(x<=C){const R=C-x;u=-n$(R),p()}else if(x>=S){const R=x-S;u=n$(R),p()}else f()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",b),r.ownerDocument.addEventListener("dragend",m),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",b),r.ownerDocument.removeEventListener("dragend",m),f()}}},[e])}const tj=10;function nj(e,t){const o=typeof e=="function"?e(t):e;return Number.isFinite(o)?o:0}function oj(e,t,o,r,i,l,u,f,p){const m=c.useRef(void 0),[g,b]=c.useState(null);return un(()=>{if(g&&g.times<tj){if(!e.current){b(z=>({...z}));return}u();const{targetAlign:v,originAlign:x,offset:C}=g,S=g.index>=0?g.index:t.findIndex(z=>i(z)===g.key),R=v||x,E=nj(C,{getSize:l,align:R}),N=e.current.clientHeight;let $=!1,w=v,T=null;if(N&&S>=0){let z=0,A=0,P=0;const B=Math.min(t.length-1,S);for(let I=0;I<=B;I+=1){const H=i(t[I]);A=z;const X=o.get(H);P=A+(X===void 0?r:X),z=P}let D=R==="top"?E:N-E;for(let I=B;I>=0;I-=1){const H=i(t[I]),X=o.get(H);if(X===void 0){$=!0;break}if(D-=X,D<=0)break}switch(R){case"top":T=A-E;break;case"bottom":T=P-N+E;break;default:{const{scrollTop:I}=e.current,H=I+N;A<I?w="top":P>H&&(w="bottom")}}T!==null&&f(T),T!==g.lastTop&&($=!0)}$&&b(z=>({...z,times:z.times+1,index:S,targetAlign:w,lastTop:T}))}},[g,e.current]),v=>{if(v==null){p();return}if(Lt.cancel(m.current),typeof v=="number")f(v);else if(v&&typeof v=="object"){let x,C;const{align:S}=v;"index"in v?{index:x}=v:(C=v.key,x=t.findIndex(E=>i(E)===C));const{offset:R=0}=v;b({times:0,index:x,key:C,offset:R,originAlign:S})}}}function o$(e,t,o){if(t<=0||o<=0)return 0;const i=Math.max(Math.min(e,o),0)/o;let l=Math.ceil(i*t);return l=Math.max(l,0),l=Math.min(l,t),l}const r$=c.forwardRef((e,t)=>{const{prefixCls:o,rtl:r,scrollOffset:i,scrollRange:l,onStartMove:u,onStopMove:f,onScroll:p,horizontal:m,spinSize:g,containerSize:b,style:v,thumbStyle:x,showScrollBar:C}=e,[S,R]=c.useState(!1),[E,N]=c.useState(null),[$,w]=c.useState(null),T=!r,z=c.useRef(null),A=c.useRef(null),[P,B]=c.useState(C),D=c.useRef(void 0),I=()=>{C===!0||C===!1||(clearTimeout(D.current),B(!0),D.current=setTimeout(()=>{B(!1)},3e3))},H=l-b||0,X=b-g||0,Z=c.useMemo(()=>i===0||H===0?0:i/H*X,[i,H,X]),U=K=>!!K&&A.current?.contains(K),L=K=>{const te=z.current;if(!te)return;const Y=te.getBoundingClientRect(),ie=Hd(K,m);let se;if(Number.isFinite(ie)){if(m){const ae=T?Y.left:Y.right;if(!Number.isFinite(ae))return;se=(T?ie-ae:ae-ie)-g/2}else{if(!Number.isFinite(Y.top))return;se=ie-Y.top-g/2}p(o$(se,H,X),m)}},q=K=>{K.stopPropagation(),K.preventDefault(),!(K.button!==0||U(K.target))&&L(K)},F=c.useRef({top:Z,dragging:S,pageY:E,startTop:$});F.current={top:Z,dragging:S,pageY:E,startTop:$};const J=pt(K=>{R(!0),N(Hd(K,m)),w(F.current.top),u(),K.stopPropagation(),K.preventDefault()});c.useEffect(()=>{const K=ie=>{ie.preventDefault()},te=z.current,Y=A.current;return te.addEventListener("touchstart",K,{passive:!1}),Y.addEventListener("touchstart",J,{passive:!1}),()=>{te.removeEventListener("touchstart",K),Y.removeEventListener("touchstart",J)}},[J]);const Q=c.useRef(void 0);Q.current=H;const j=c.useRef(void 0);j.current=X,c.useEffect(()=>{if(S){let K;const te=ie=>{const{dragging:se,pageY:ae,startTop:me}=F.current;Lt.cancel(K);const ne=z.current.getBoundingClientRect(),ue=b/(m?ne.width:ne.height);if(se){const he=(Hd(ie,m)-ae)*ue;let ge=me;!T&&m?ge-=he:ge+=he;const Se=Q.current,$e=j.current,ye=o$(ge,Se,$e);K=Lt(()=>{p(ye,m)})}},Y=()=>{R(!1),f()};return window.addEventListener("mousemove",te,{passive:!0}),window.addEventListener("touchmove",te,{passive:!0}),window.addEventListener("mouseup",Y,{passive:!0}),window.addEventListener("touchend",Y,{passive:!0}),()=>{window.removeEventListener("mousemove",te),window.removeEventListener("touchmove",te),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),Lt.cancel(K)}}},[S]),c.useEffect(()=>(I(),()=>{clearTimeout(D.current)}),[i]),c.useImperativeHandle(t,()=>({delayHidden:I}));const V=`${o}-scrollbar`,k={position:"absolute",visibility:P?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(k,{height:8,left:0,right:0,bottom:0}),Object.assign(G,{height:"100%",width:g,[T?"left":"right"]:Z})):(Object.assign(k,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(G,{width:"100%",height:g,top:Z})),c.createElement("div",{ref:z,className:W(V,{[`${V}-horizontal`]:m,[`${V}-vertical`]:!m,[`${V}-visible`]:P}),style:{...k,...v},onMouseDown:q,onMouseMove:I},c.createElement("div",{ref:A,className:W(`${V}-thumb`,{[`${V}-thumb-moving`]:S}),style:{...G,...x},onMouseDown:J}))}),rj=20;function a$(e=0,t=0){let o=e/t*e;return isNaN(o)&&(o=0),o=Math.max(o,rj),Math.floor(o)}function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},cb.apply(this,arguments)}const aj=[],ij={overflowY:"auto",overflowAnchor:"none"};function sN(e,t){const{prefixCls:o="rc-virtual-list",className:r,height:i,itemHeight:l,fullHeight:u=!0,style:f,data:p,children:m,itemKey:g,virtual:b,direction:v,scrollWidth:x,component:C="div",onScroll:S,onVirtualScroll:R,onVisibleChange:E,innerProps:N,extraRender:$,styles:w,showScrollBar:T="optional",...z}=e,A=c.useCallback(Le=>typeof g=="function"?g(Le):Le?.[g],[g]),[P,B,D,I]=ZP(A),H=!!(b!==!1&&i&&l),X=c.useMemo(()=>Object.values(D.maps).reduce((Le,Ne)=>Le+Ne,0),[D.id,D.maps]),Z=H&&p&&(Math.max(l*p.length,X)>i||!!x),U=v==="rtl",L=W(o,{[`${o}-rtl`]:U},r),q=p||aj,F=c.useRef(null),J=c.useRef(null),Q=c.useRef(null),[j,V]=c.useState(0),[k,G]=c.useState(0),[K,te]=c.useState(!1),Y=()=>{te(!0)},ie=()=>{te(!1)},se={getKey:A};function ae(Le){V(Ne=>{let Ae;typeof Le=="function"?Ae=Le(Ne):Ae=Le;const ve=Fe(Ae);return F.current.scrollTop=ve,ve})}const me=c.useRef({start:0,end:q.length}),ne=c.useRef(void 0),[ue]=kP(q,A);ne.current=ue;const{scrollHeight:he,start:ge,end:Se,offset:$e}=c.useMemo(()=>{if(!H)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};if(!Z)return{scrollHeight:J.current?.offsetHeight||0,start:0,end:q.length-1,offset:void 0};let Le=0,Ne,Ae,ve;const je=q.length;for(let Ve=0;Ve<je;Ve+=1){const Ze=q[Ve],ft=A(Ze),Jt=D.get(ft),Rt=Le+(Jt===void 0?l:Jt);Rt>=j&&Ne===void 0&&(Ne=Ve,Ae=Le),Rt>j+i&&ve===void 0&&(ve=Ve),Le=Rt}return Ne===void 0&&(Ne=0,Ae=0,ve=Math.ceil(i/l)),ve===void 0&&(ve=q.length-1),ve=Math.min(ve+1,q.length-1),{scrollHeight:Le,start:Ne,end:ve,offset:Ae}},[Z,H,j,q,I,i]);me.current.start=ge,me.current.end=Se,c.useLayoutEffect(()=>{const Le=D.getRecord();if(Le.size===1){const Ne=Array.from(Le.keys())[0],Ae=Le.get(Ne),ve=q[ge];if(ve&&Ae===void 0&&A(ve)===Ne){const Ze=D.get(Ne)-l;ae(ft=>ft+Ze)}}D.resetRecord()},[he]);const[ye,xe]=c.useState({width:0,height:i}),Ce=Le=>{xe({width:Le.offsetWidth,height:Le.offsetHeight})},we=c.useRef(null),Be=c.useRef(null),Te=c.useMemo(()=>a$(ye.width,x),[ye.width,x]),He=c.useMemo(()=>a$(ye.height,he),[ye.height,he]),nt=he-i,Ke=c.useRef(nt);Ke.current=nt;function Fe(Le){let Ne=Le;return Number.isNaN(Ke.current)||(Ne=Math.min(Ne,Ke.current)),Ne=Math.max(Ne,0),Ne}const qe=j<=0,Je=j>=nt,Ue=k<=0,Pe=k>=x,_e=iN(qe,Je,Ue,Pe),Xe=()=>({x:U?-k:k,y:j}),De=c.useRef(Xe()),Oe=pt(Le=>{if(R){const Ne={...Xe(),...Le};(De.current.x!==Ne.x||De.current.y!==Ne.y)&&(R(Ne),De.current=Ne)}});function Qe(Le,Ne){const Ae=Le;Ne?(gi.flushSync(()=>{G(Ae)}),Oe()):ae(Ae)}function ze(Le){const{scrollTop:Ne}=Le.currentTarget;Ne!==j&&ae(Ne),S?.(Le),Oe()}const Ie=Le=>{let Ne=Le;const Ae=x?x-ye.width:0;return Ne=Math.max(Ne,0),Ne=Math.min(Ne,Ae),Ne},We=pt((Le,Ne)=>{Ne?(gi.flushSync(()=>{G(Ae=>{const ve=Ae+(U?-Le:Le);return Ie(ve)})}),Oe()):ae(Ae=>Ae+Le)}),[Ye,rt]=YP(H,qe,Je,Ue,Pe,!!x,We);JP(H,F,(Le,Ne,Ae,ve)=>{const je=ve;return _e(Le,Ne,Ae)?!1:!je||!je._virtualHandled?(je&&(je._virtualHandled=!0),Ye({preventDefault(){},deltaX:Le?Ne:0,deltaY:Le?0:Ne}),!0):!1}),ej(Z,F,Le=>{ae(Ne=>Ne+Le)}),un(()=>{function Le(Ae){const ve=qe&&Ae.detail<0,je=Je&&Ae.detail>0;H&&!ve&&!je&&Ae.preventDefault()}const Ne=F.current;return Ne.addEventListener("wheel",Ye,{passive:!1}),Ne.addEventListener("DOMMouseScroll",rt,{passive:!0}),Ne.addEventListener("MozMousePixelScroll",Le,{passive:!1}),()=>{Ne.removeEventListener("wheel",Ye),Ne.removeEventListener("DOMMouseScroll",rt),Ne.removeEventListener("MozMousePixelScroll",Le)}},[H,qe,Je]),un(()=>{if(x){const Le=Ie(k);G(Le),Oe({x:Le})}},[ye.width,x]);const ct=()=>{we.current?.delayHidden(),Be.current?.delayHidden()},it=KP(q,A,D,l),yt=oj(F,q,D,l,A,it,()=>B(!0),ae,ct);c.useImperativeHandle(t,()=>({nativeElement:Q.current,getScrollInfo:Xe,scrollTo:Le=>{function Ne(Ae){return Ae&&typeof Ae=="object"&&("left"in Ae||"top"in Ae)}Ne(Le)?(Le.left!==void 0&&G(Ie(Le.left)),yt(Le.top)):yt(Le)}})),un(()=>{if(E){const Le=q.slice(ge,Se+1);E(Le,q)}},[ge,Se,q]);const Et=$?.({start:ge,end:Se,virtual:Z,offsetX:k,scrollTop:j,offsetY:$e,rtl:U,getSize:it}),Tt=GP(q,ge,Se,x,k,P,m,se);let et=null;i&&(et={[u?"height":"maxHeight"]:i,...ij},H&&(et.overflowY="hidden",x&&(et.overflowX="hidden"),K&&(et.pointerEvents="none")));const Ot={};return U&&(Ot.dir="rtl"),c.createElement("div",cb({ref:Q,style:{...f,position:"relative"},className:L},Ot,z),c.createElement(gr,{onResize:Ce},c.createElement(C,{className:`${o}-holder`,style:et,ref:F,onScroll:ze,onMouseEnter:ct},c.createElement(aN,{prefixCls:o,height:he,offsetX:k,offsetY:$e,scrollWidth:x,onInnerResize:B,ref:J,innerProps:N,rtl:U,extra:Et},Tt))),Z&&he>i&&c.createElement(r$,{ref:we,prefixCls:o,scrollOffset:j,scrollRange:he,rtl:U,onScroll:Qe,onStartMove:Y,onStopMove:ie,spinSize:He,containerSize:ye.height,style:w?.verticalScrollBar,thumbStyle:w?.verticalScrollBarThumb,showScrollBar:T}),Z&&x>ye.width&&c.createElement(r$,{ref:Be,prefixCls:o,scrollOffset:k,scrollRange:x,rtl:U,onScroll:Qe,onStartMove:Y,onStopMove:ie,spinSize:Te,containerSize:ye.width,horizontal:!0,style:w?.horizontalScrollBar,thumbStyle:w?.horizontalScrollBarThumb,showScrollBar:T}))}const lN=c.forwardRef(sN);lN.displayName="List";const sj=c.forwardRef((e,t)=>sN({...e,virtual:!1},t));sj.displayName="List";function lj(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kl.apply(this,arguments)}function i$(e){return typeof e=="string"||typeof e=="number"}const cj=(e,t)=>{const{prefixCls:o,id:r,open:i,multiple:l,mode:u,searchValue:f,toggleOpen:p,notFoundContent:m,onPopupScroll:g,showScrollBar:b,lockOptions:v}=xi(),{maxCount:x,flattenOptions:C,onActiveValue:S,defaultActiveFirstOption:R,onSelect:E,menuItemSelectedIcon:N,rawValues:$,fieldNames:w,virtual:T,direction:z,listHeight:A,listItemHeight:P,optionRender:B,classNames:D,styles:I}=c.useContext(_0),H=`${o}-item`,X=dc(()=>C,[i,v],(ae,me)=>me[0]&&!me[1]),Z=c.useRef(null),U=c.useMemo(()=>l&&tb(x)&&$?.size>=x,[l,x,$?.size]),L=ae=>{ae.preventDefault()},q=ae=>{Z.current?.scrollTo(typeof ae=="number"?{index:ae}:ae)},F=c.useCallback(ae=>u==="combobox"?!1:$.has(ae),[u,[...$].toString(),$.size]),J=(ae,me=1)=>{const ne=X.length;for(let ue=0;ue<ne;ue+=1){const he=(ae+ue*me+ne)%ne,{group:ge,data:Se}=X[he]||{};if(!ge&&!Se?.disabled&&(F(Se.value)||!U))return he}return-1},[Q,j]=c.useState(()=>J(0)),V=(ae,me=!1)=>{j(ae);const ne={source:me?"keyboard":"mouse"},ue=X[ae];if(!ue){S(null,-1,ne);return}S(ue.value,ae,ne)};c.useEffect(()=>{V(R!==!1?J(0):-1)},[X.length,f]);const k=c.useCallback(ae=>u==="combobox"?String(ae).toLowerCase()===f.toLowerCase():$.has(ae),[u,f,[...$].toString(),$.size]);c.useEffect(()=>{let ae;if(!l&&i&&$.size===1){const me=Array.from($)[0],ne=X.findIndex(({data:ue})=>f?String(ue.value).startsWith(f):ue.value===me);ne!==-1&&(V(ne),ae=setTimeout(()=>{q(ne)}))}return i&&Z.current?.scrollTo(void 0),()=>clearTimeout(ae)},[i,f]);const G=ae=>{ae!==void 0&&E(ae,{selected:!$.has(ae)}),l||p(!1)};if(c.useImperativeHandle(t,()=>({onKeyDown:ae=>{const{which:me,ctrlKey:ne}=ae;switch(me){case at.N:case at.P:case at.UP:case at.DOWN:{let ue=0;if(me===at.UP?ue=-1:me===at.DOWN?ue=1:lj()&&ne&&(me===at.N?ue=1:me===at.P&&(ue=-1)),ue!==0){const he=J(Q+ue,ue);q(he),V(he,!0)}break}case at.TAB:case at.ENTER:{const ue=X[Q];if(!ue||ue.data.disabled)return G(void 0);!U||$.has(ue.value)?G(ue.value):G(void 0),i&&ae.preventDefault();break}case at.ESC:p(!1),i&&ae.stopPropagation()}},onKeyUp:()=>{},scrollTo:ae=>{q(ae)}})),X.length===0)return c.createElement("div",{role:"listbox",id:`${r}_list`,className:`${H}-empty`,onMouseDown:L},m);const K=Object.keys(w).map(ae=>w[ae]),te=ae=>ae.label;function Y(ae,me){const{group:ne}=ae;return{role:ne?"presentation":"option",id:`${r}_list_${me}`}}const ie=ae=>{const me=X[ae];if(!me)return null;const ne=me.data||{},{value:ue,disabled:he}=ne,{group:ge}=me,Se=Qn(ne,!0),$e=te(me);return me?c.createElement("div",kl({"aria-label":typeof $e=="string"&&!ge?$e:null},Se,{key:ae},Y(me,ae),{"aria-selected":k(ue),"aria-disabled":he}),ue):null},se={role:"listbox",id:`${r}_list`};return c.createElement(c.Fragment,null,T&&c.createElement("div",kl({},se,{style:{height:0,width:0,overflow:"hidden"}}),ie(Q-1),ie(Q),ie(Q+1)),c.createElement(lN,{itemKey:"key",ref:Z,data:X,height:A,itemHeight:P,fullHeight:!1,onMouseDown:L,onScroll:g,virtual:T,direction:z,innerProps:T?null:se,showScrollBar:b,className:D?.popup?.list,style:I?.popup?.list},(ae,me)=>{const{group:ne,groupOption:ue,data:he,label:ge,value:Se}=ae,{key:$e}=he;if(ne){const Xe=he.title??(i$(ge)?ge.toString():void 0);return c.createElement("div",{className:W(H,`${H}-group`,he.className),title:Xe},ge!==void 0?ge:$e)}const{disabled:ye,title:xe,children:Ce,style:we,className:Be,...Te}=he,He=xn(Te,K),nt=F(Se),Ke=ye||!nt&&U,Fe=`${H}-option`,qe=W(H,Fe,Be,D?.popup?.listItem,{[`${Fe}-grouped`]:ue,[`${Fe}-active`]:Q===me&&!Ke,[`${Fe}-disabled`]:Ke,[`${Fe}-selected`]:nt}),Je=te(ae),Ue=!N||typeof N=="function"||nt,Pe=typeof Je=="number"?Je:Je||Se;let _e=i$(Pe)?Pe.toString():void 0;return xe!==void 0&&(_e=xe),c.createElement("div",kl({},Qn(He),T?{}:Y(ae,me),{"aria-selected":T?void 0:k(Se),"aria-disabled":Ke,className:qe,title:_e,onMouseMove:()=>{Q===me||Ke||V(me)},onClick:()=>{Ke||G(Se)},style:{...I?.popup?.listItem,...we}}),c.createElement("div",{className:`${Fe}-content`},typeof B=="function"?B(ae,{index:me}):Pe),c.isValidElement(N)||nt,Ue&&c.createElement(rN,{className:`${H}-option-state`,customizeIcon:N,customizeIconProps:{value:Se,disabled:Ke,isSelected:nt}},nt?"✓":null))}))},uj=c.forwardRef(cj),dj=((e,t)=>{const o=c.useRef({values:new Map,options:new Map}),r=c.useMemo(()=>{const{values:l,options:u}=o.current,f=e.map(g=>g.label===void 0?{...g,label:l.get(g.value)?.label}:g),p=new Map,m=new Map;return f.forEach(g=>{p.set(g.value,g),m.set(g.value,t.get(g.value)||u.get(g.value))}),o.current.values=p,o.current.options=m,f},[e,t]),i=c.useCallback(l=>t.get(l)||o.current.options.get(l),[t]);return[r,i]});function wg(e,t){return tN(e).join("").toUpperCase().includes(t)}const fj=((e,t,o,r,i)=>c.useMemo(()=>{if(!o||r===!1)return e;const{options:l,label:u,value:f}=t,p=[],m=typeof r=="function",g=o.toUpperCase(),b=m?r:(x,C)=>i&&i.length?i.some(S=>wg(C[S],g)):C[l]?wg(C[u!=="children"?u:"label"],g):wg(C[f],g),v=m?x=>nb(x):x=>x;return e.forEach(x=>{if(x[l]){if(b(o,v(x)))p.push(x);else{const S=x[l].filter(R=>b(o,v(R)));S.length&&p.push({...x,[l]:S})}return}b(o,v(x))&&p.push(x)}),p},[e,r,i,o,t]));function mj(e){const{key:t,props:{children:o,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:o,...i}}function cN(e,t=!1){return Ao(e).map((o,r)=>{if(!c.isValidElement(o)||!o.type)return null;const{type:{isSelectOptGroup:i},key:l,props:{children:u,...f}}=o;return t||!i?mj(o):{key:`__RC_SELECT_GRP__${l===null?r:l}__`,label:l,...f,options:cN(u)}}).filter(o=>o)}const pj=(e,t,o,r,i)=>c.useMemo(()=>{let l=e;!e&&(l=cN(t));const f=new Map,p=new Map,m=(b,v,x)=>{x&&typeof x=="string"&&b.set(v[x],v)},g=(b,v=!1)=>{for(let x=0;x<b.length;x+=1){const C=b[x];!C[o.options]||v?(f.set(C[o.value],C),m(p,C,o.label),r.forEach(S=>{m(p,C,S)}),m(p,C,i)):g(C[o.options],!0)}};return g(l),{options:l,valueOptions:f,labelOptions:p}},[e,t,o,r,i]);function s$(e){const t=c.useRef();return t.current=e,c.useCallback((...r)=>t.current(...r),[])}function gj(e,t,o){const{filterOption:r,searchValue:i,optionFilterProp:l,filterSort:u,onSearch:f,autoClearSearchValue:p}=t;return c.useMemo(()=>{const m=typeof e=="object",g={filterOption:r,searchValue:i,optionFilterProp:l,filterSort:u,onSearch:f,autoClearSearchValue:p,...m?e:{}};return[m||o==="combobox"||o==="tags"||o==="multiple"&&e===void 0?!0:e,g]},[o,e,r,i,l,u,f,p])}function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ub.apply(this,arguments)}const hj=["inputValue"];function bj(e){return!e||typeof e!="object"}const vj=c.forwardRef((e,t)=>{const{id:o,mode:r,prefixCls:i="rc-select",backfill:l,fieldNames:u,showSearch:f,searchValue:p,onSearch:m,autoClearSearchValue:g,filterOption:b,optionFilterProp:v,filterSort:x,onSelect:C,onDeselect:S,onActive:R,popupMatchSelectWidth:E=!0,optionLabelProp:N,options:$,optionRender:w,children:T,defaultActiveFirstOption:z,menuItemSelectedIcon:A,virtual:P,direction:B,listHeight:D=200,listItemHeight:I=20,labelRender:H,value:X,defaultValue:Z,labelInValue:U,onChange:L,maxCount:q,classNames:F,styles:J,...Q}=e,j={searchValue:p,onSearch:m,autoClearSearchValue:g,filterOption:b,optionFilterProp:v,filterSort:x},[V,k]=gj(f,j,r),{filterOption:G,searchValue:K,optionFilterProp:te,filterSort:Y,onSearch:ie,autoClearSearchValue:se=!0}=k,ae=c.useMemo(()=>te?Array.isArray(te)?te:[te]:[],[te]),me=Xr(o),ne=sb(r),ue=!!(!$&&T),he=c.useMemo(()=>G===void 0&&r==="combobox"?!1:G,[G,r]),ge=c.useMemo(()=>Q2(u,ue),[JSON.stringify(u),ue]),[Se,$e]=To("",K),ye=Se||"",xe=pj($,T,ge,ae,N),{valueOptions:Ce,labelOptions:we,options:Be}=xe,Te=c.useCallback(ve=>tN(ve).map(Ve=>{let Ze,ft,Jt,Rt;bj(Ve)?Ze=Ve:(ft=Ve.label,Ze=Ve.value);const mt=Ce.get(Ze);return mt&&(ft===void 0&&(ft=mt?.[N||ge.label]),Jt=mt?.disabled,Rt=mt?.title),{label:ft,value:Ze,key:Ze,disabled:Jt,title:Rt}}),[ge,N,Ce]),[He,nt]=To(Z,X),Ke=c.useMemo(()=>{const je=Te(ne&&He===null?[]:He);return r==="combobox"&&MP(je[0]?.value)?[]:je},[He,Te,r,ne]),[Fe,qe]=dj(Ke,Ce),Je=c.useMemo(()=>{if(!r&&Fe.length===1){const ve=Fe[0];if(ve.value===null&&(ve.label===null||ve.label===void 0))return[]}return Fe.map(ve=>({...ve,label:(typeof H=="function"?H(ve):ve.label)??ve.value}))},[r,Fe,H]),Ue=c.useMemo(()=>new Set(Fe.map(ve=>ve.value)),[Fe]);c.useEffect(()=>{if(r==="combobox"){const ve=Fe[0]?.value;$e(RP(ve)?String(ve):"")}},[Fe]);const Pe=s$((ve,je)=>{const Ve=je??ve;return{[ge.value]:ve,[ge.label]:Ve}}),_e=c.useMemo(()=>{if(r!=="tags")return Be;const ve=[...Be],je=Ve=>Ce.has(Ve);return[...Fe].sort((Ve,Ze)=>Ve.value<Ze.value?-1:1).forEach(Ve=>{const Ze=Ve.value;je(Ze)||ve.push(Pe(Ze,Ve.label))}),ve},[Pe,Be,Ce,Fe,r]),Xe=fj(_e,ge,ye,he,ae),De=c.useMemo(()=>{const ve=je=>ae.length?ae.some(Ve=>je?.[Ve]===ye):je?.value===ye;return r!=="tags"||!ye||Xe.some(je=>ve(je))||Xe.some(je=>je[ge.value]===ye)||Ce.get(ye)?.disabled?Xe:[Pe(ye),...Xe]},[Pe,ae,r,Xe,ye,ge,Ce]),Oe=ve=>[...ve].sort((Ve,Ze)=>Y(Ve,Ze,{searchValue:ye})).map(Ve=>Array.isArray(Ve.options)?{...Ve,options:Ve.options.length>0?Oe(Ve.options):Ve.options}:Ve),Qe=c.useMemo(()=>Y?Oe(De):De,[De,Y,ye]),ze=c.useMemo(()=>CP(Qe,{fieldNames:ge,childrenAsData:ue}),[Qe,ge,ue]),Ie=ve=>{const je=Te(ve);if(nt(je),L&&(je.length!==Fe.length||je.some((Ve,Ze)=>Fe[Ze]?.value!==Ve?.value))){const Ve=U?je.map(({label:ft,value:Jt})=>({label:ft,value:Jt})):je.map(ft=>ft.value),Ze=je.map(ft=>nb(qe(ft.value)));L(ne?Ve:Ve[0],ne?Ze:Ze[0])}},[We,Ye]=c.useState(null),[rt,ct]=c.useState(0),it=z!==void 0?z:r!=="combobox",yt=c.useRef(),Et=c.useCallback((ve,je,{source:Ve="keyboard"}={})=>{ct(je),l&&r==="combobox"&&ve!==null&&Ve==="keyboard"&&Ye(String(ve));const Ze=Promise.resolve().then(()=>{yt.current===Ze&&R?.(ve)});yt.current=Ze},[l,r,R]),Tt=(ve,je,Ve)=>{const Ze=()=>{const ft=qe(ve);return[U?{label:ft?.[ge.label],value:ve}:ve,nb(ft)]};if(je&&C){const[ft,Jt]=Ze();C(ft,Jt)}else if(!je&&S&&Ve!=="clear"){const[ft,Jt]=Ze();S(ft,Jt)}},et=s$((ve,je)=>{let Ve;const Ze=ne?je.selected:!0;Ze?Ve=ne?[...Fe,ve]:[ve]:Ve=Fe.filter(ft=>ft.value!==ve),Ie(Ve),Tt(ve,Ze),r==="combobox"?Ye(""):(!sb||se)&&($e(""),Ye(""))}),Ot=(ve,je)=>{Ie(ve);const{type:Ve,values:Ze}=je;(Ve==="remove"||Ve==="clear")&&Ze.forEach(ft=>{Tt(ft.value,!1,Ve)})},Le=(ve,je)=>{if($e(ve),Ye(null),je.source==="submit"){const Ve=(ve||"").trim();if(Ve){if(Ce.get(Ve)?.disabled){$e("");return}const Ze=Array.from(new Set([...Ue,Ve]));Ie(Ze),Tt(Ve,!0),$e("")}return}je.source!=="blur"&&(r==="combobox"&&Ie(ve),ie?.(ve))},Ne=ve=>{let je=ve;r!=="tags"&&(je=ve.map(Ze=>we.get(Ze)?.value).filter(Ze=>Ze!==void 0)),r==="tags"&&(je=je.filter(Ze=>!Ce.get(Ze)?.disabled));const Ve=Array.from(new Set([...Ue,...je]));Ie(Ve),Ve.forEach(Ze=>{Tt(Ze,!0)})},Ae=c.useMemo(()=>({...xe,flattenOptions:ze,onActiveValue:Et,defaultActiveFirstOption:it,onSelect:et,menuItemSelectedIcon:A,rawValues:Ue,fieldNames:ge,virtual:P!==!1&&E!==!1,direction:B,listHeight:D,listItemHeight:I,childrenAsData:ue,maxCount:q,optionRender:w,classNames:F,styles:J}),[q,xe,ze,Et,it,et,A,Ue,ge,P,E,B,D,I,ue,w,F,J]);return c.createElement(_0.Provider,{value:Ae},c.createElement(UP,ub({},Q,{id:me,prefixCls:i,ref:t,omitDomProps:hj,mode:r,classNames:F,styles:J,displayValues:Je,onDisplayValuesChange:Ot,maxCount:q,direction:B,showSearch:V,searchValue:ye,onSearch:Le,autoClearSearchValue:se,onSearchSplit:Ne,popupMatchSelectWidth:E,OptionList:uj,emptyOptions:!ze.length,activeValue:We,activeDescendantId:`${me}_list_${rt}`})))}),L0=vj;L0.Option=D0;L0.OptGroup=H0;function l$(e,t,o){return e===!1?null:e===!0?o:e&&e[t]!==void 0?e[t]:o}const rc=(e,t,o)=>W({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),Rf=(e,t)=>t||e,li=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new En(e).onBackground(t).toHexString(),yj=()=>{const[,e]=Ko(),[t]=Pa("Empty"),{colorBgContainer:o,colorFill:r,colorFillSecondary:i,colorFillTertiary:l,colorTextQuaternary:u}=e,{panelBgColor:f,borderColor:p,detailColor:m,shadowColor:g,iconColor:b}=c.useMemo(()=>({panelBgColor:li(l,o),borderColor:li(u,o),detailColor:li(r,o),shadowColor:li(i,o),iconColor:o}),[o,r,i,l,u]);return c.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,t?.description||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.7)"},c.createElement("ellipse",{fillOpacity:".8",fill:g,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),c.createElement("path",{fill:p,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),c.createElement("path",{fill:f,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),c.createElement("path",{fill:m,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),c.createElement("path",{fill:m,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),c.createElement("g",{fill:b,transform:"translate(149.7 15.4)"},c.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),c.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},xj=()=>{const[,e]=Ko(),[t]=Pa("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:l}=e,{borderColor:u,shadowColor:f,contentColor:p}=c.useMemo(()=>({borderColor:li(o,l),shadowColor:li(r,l),contentColor:li(i,l)}),[o,r,i,l]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,t?.description||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:f,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:u},c.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),c.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:p}))))},Sj=e=>{const{componentCls:t,margin:o,marginXS:r,marginXL:i,fontSize:l,lineHeight:u}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:u,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:o},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Cj=Qt("Empty",e=>{const{componentCls:t,controlHeightLG:o,calc:r}=e,i=Gt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return Sj(i)}),uN=c.createElement(yj,null),dN=c.createElement(xj,null),Hr=e=>{const{className:t,rootClassName:o,prefixCls:r,image:i,description:l,children:u,imageStyle:f,style:p,classNames:m,styles:g,...b}=e,{getPrefixCls:v,direction:x,className:C,style:S,classNames:R,styles:E,image:N}=Kt("empty"),$=v("empty",r),[w,T]=Cj($),z=pn(S),A=pn(p),[P,B]=dn([R,m],[E,z,g,A],{props:e}),[D]=Pa("Empty"),I=typeof l<"u"?l:D?.description,H=typeof I=="string"?I:"empty",X=i??N??uN;let Z=null;return typeof X=="string"?Z=c.createElement("img",{draggable:!1,alt:H,src:X}):Z=X,c.createElement("div",{className:W(w,T,$,C,{[`${$}-normal`]:X===dN,[`${$}-rtl`]:x==="rtl"},t,o,P.root),style:B.root,...b},c.createElement("div",{className:W(`${$}-image`,P.image),style:{...f,...B.image}},Z),I&&c.createElement("div",{className:W(`${$}-description`,P.description),style:B.description},I),u&&c.createElement("div",{className:W(`${$}-footer`,P.footer),style:B.footer},u))};Hr.PRESENTED_IMAGE_DEFAULT=uN;Hr.PRESENTED_IMAGE_SIMPLE=dN;const $j=e=>{const{componentName:t}=e,{getPrefixCls:o}=c.useContext(St),r=o("empty");switch(t){case"Table":case"List":return ce.createElement(Hr,{image:Hr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Hr,{image:Hr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(Hr,null)}},Mf=(e,t,o)=>{const{variant:r,[e]:i}=c.useContext(St),l=c.useContext(oI),u=i?.variant;let f;typeof t<"u"?f=t:o===!1?f="borderless":f=l??u??r??"outlined";const p=QO.includes(f);return[f,p]},Ej=e=>{const o={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function wj(e,t){return e||Ej(t)}const c$=e=>{const{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},Nj=e=>{const{antCls:t,componentCls:o}=e,r=`${o}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,u=`&${t}-slide-up-leave${t}-slide-up-leave-active`,f=`${o}-dropdown-placement-`,p=`${r}-option-selected`;return[{[`${o}-dropdown`]:{...Dn(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,[`
|
|
166
|
-
${i}${f}bottomLeft,
|
|
167
|
-
${l}${f}bottomLeft
|
|
168
|
-
`]:{animationName:M0},[`
|
|
169
|
-
${i}${f}topLeft,
|
|
170
|
-
${l}${f}topLeft,
|
|
171
|
-
${i}${f}topRight,
|
|
172
|
-
${l}${f}topRight
|
|
173
|
-
`]:{animationName:O0},[`${u}${f}bottomLeft`]:{animationName:T0},[`
|
|
174
|
-
${u}${f}topLeft,
|
|
175
|
-
${u}${f}topRight
|
|
176
|
-
`]:{animationName:z0},"&-hidden":{display:"none"},[r]:{...c$(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...ar},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...c$(e),color:e.colorTextDisabled}},[`${p}:has(+ ${p})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${p}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},ws(e,"slide-up"),ws(e,"slide-down"),NC(e,"move-up"),NC(e,"move-down")]},Rj=e=>{const{antCls:t,componentCls:o}=e,r={background:"transparent"},i=["> input[disabled]","> textarea[disabled]",`> ${o}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${o}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${o}-placeholder`]:{display:"none"},[`${o}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${o}-filled ${o}-content`]:{[`${t}-input-filled`]:r},[`&${o}-disabled ${o}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},u$=4,Mj=e=>{const{componentCls:t,calc:o,iconCls:r,paddingXS:i,paddingXXS:l,INTERNAL_FIXED_ITEM_MARGIN:u,lineWidth:f,lineType:p,colorIcon:m,colorIconHover:g,inputPaddingHorizontalBase:b,antCls:v}=e,[x,C]=Vt(v,"select");return{"&-multiple":{[x("multi-item-background")]:e.multipleItemBg,[x("multi-item-border-color")]:"transparent",[x("multi-item-border-radius")]:e.borderRadiusSM,[x("multi-item-height")]:e.multipleItemHeight,[x("multi-padding-base")]:`calc((${C("height")} - ${C("multi-item-height")}) / 2)`,[x("multi-padding-vertical")]:`calc(${C("multi-padding-base")} - ${u} - ${f})`,[x("multi-item-padding-horizontal")]:`calc(${b} - ${C("multi-padding-vertical")} - ${f} * 2)`,paddingBlock:C("multi-padding-vertical"),paddingInlineStart:`calc(${C("multi-padding-base")} - ${f})`,[`${t}-prefix`]:{marginInlineStart:C("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:C("line-height"),insetInlineStart:C("multi-item-padding-horizontal"),width:`calc(100% - ${C("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:C("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${u$}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
177
|
-
${t}-content-item-suffix:first-child`]:{marginInlineStart:C("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${C("multi-item-height")} - ${f} * 2)`,border:`${f} ${p} ${C("multi-item-border-color")}`,display:"flex",marginBlock:u,marginInlineEnd:o(u).mul(2).equal(),background:C("multi-item-background"),borderRadius:C("multi-item-border-radius"),paddingInlineStart:i,paddingInlineEnd:l,transition:["height","line-height","padding"].map(S=>`${S} ${e.motionDurationSlow}`).join(","),"&-content":{...ar,marginInlineEnd:l},"&-remove":{...hf(),display:"inline-flex",alignItems:"center",color:m,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:g}}},[`${t}-input`]:{lineHeight:o(u).mul(2).add(C("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:u$,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[x("multi-item-height")]:e.multipleItemHeightSM,[x("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[x("multi-item-height")]:e.multipleItemHeightLG,[x("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[x("multi-item-border-color")]:e.colorSplit,[x("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[x("multi-item-border-color")]:"transparent"}}}}},Ng=(e,t)=>{const{componentCls:o,antCls:r}=e,[i]=Vt(r,"select"),{border:l,borderHover:u,borderActive:f,borderOutline:p}=t,m=t.background||e.selectorBg||e.colorBgContainer;return{[i("border-color")]:l,[i("background-color")]:m,[i("affix-color")]:t.affixColor,[`&:not(${o}-disabled)`]:{"&:hover":{[i("border-color")]:u,[i("background-color")]:t.backgroundHover||m},[`&${o}-focused`]:{[i("border-color")]:f,[i("background-color")]:t.backgroundActive||m,boxShadow:`0 0 0 ${re(e.controlOutlineWidth)} ${p}`}},[`&${o}-disabled`]:{[i("border-color")]:t.borderDisabled||t.border,[i("background-color")]:t.backgroundDisabled||t.background}}},ed=(e,t,o,r,i,l)=>{const{componentCls:u}=e;return{[`&${u}-${t}`]:[Ng(e,o),{[`&${u}-status-error`]:Ng(e,{...o,...r}),[`&${u}-status-warning`]:Ng(e,{...o,...i})},l]}},Rg=(e,t)=>({outline:`${re(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:re(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),Tj=e=>{const{componentCls:t,fontHeight:o,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:l,iconCls:u,antCls:f,max:p,calc:m}=e,[g,b]=Vt(f,"select"),v=p(m(l).sub(i).equal(),0);return{[t]:[{[g("border-radius")]:e.borderRadius,[g("border-color")]:"#000",[g("border-size")]:e.lineWidth,[g("background-color")]:e.colorBgContainer,[g("font-size")]:e.fontSize,[g("line-height")]:e.lineHeight,[g("font-height")]:o,[g("color")]:e.colorText,[g("affix-color")]:e.colorText,[g("height")]:r,[g("padding-horizontal")]:m(e.paddingSM).sub(e.lineWidth).equal(),[g("padding-vertical")]:`calc((${b("height")} - ${b("font-height")}) / 2 - ${b("border-size")})`,...Dn(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:b("border-radius"),borderWidth:b("border-size"),borderStyle:e.lineType,borderColor:b("border-color"),background:b("background-color"),fontSize:b("font-size"),lineHeight:b("line-height"),color:b("color"),paddingInline:b("padding-horizontal"),paddingBlock:b("padding-vertical"),[`${t}-prefix`]:{color:b("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...ar,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:v,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[u]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[g("height")]:e.controlHeightSM,[g("padding-horizontal")]:m(e.paddingXS).sub(e.lineWidth).equal(),[g("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:b("padding-horizontal")}},"&-lg":{[g("height")]:e.controlHeightLG,[g("font-size")]:e.fontSizeLG,[g("line-height")]:e.lineHeightLG,[g("font-height")]:e.fontHeightLG,[g("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:b("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...ar,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},Mj(e),ed(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),ed(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),ed(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:Rg(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:Rg(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:Rg(e,e.colorWarning)}),ed(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),Rj(e)]}},Oj=e=>{const{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:i,controlHeightSM:l,controlHeightLG:u,paddingXXS:f,controlPaddingHorizontal:p,zIndexPopupBase:m,colorText:g,fontWeightStrong:b,controlItemBgActive:v,controlItemBgHover:x,colorBgContainer:C,colorFillSecondary:S,colorBgContainerDisabled:R,colorTextDisabled:E,colorPrimaryHover:N,colorPrimary:$,controlOutline:w}=e,T=f*2,z=r*2,A=Math.min(i-T,i-z),P=Math.min(l-T,l-z),B=Math.min(u-T,u-z);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(f/2),zIndexPopup:m+50,optionSelectedColor:g,optionSelectedFontWeight:b,optionSelectedBg:v,optionActiveBg:x,optionPadding:`${(i-t*o)/2}px ${p}px`,optionFontSize:t,optionLineHeight:o,optionHeight:i,selectorBg:C,clearBg:C,singleItemHeightLG:u,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:P,multipleItemHeightLG:B,multipleSelectorBgDisabled:R,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:N,activeBorderColor:$,activeOutlineColor:w,selectAffixPadding:f}},zj=e=>{const{antCls:t,componentCls:o,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,l={[`${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[o]:{...Dn(e),[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...ar,[`> ${t}-typography`]:{display:"inline"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,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","opacity"].map(u=>`${u} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Aj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},zj(e),Nj(e),{[`${t}-rtl`]:{direction:"rtl"}},wf(e,{focusElCls:`${t}-focused`})]},Ij=Qt("Select",(e,{rootPrefixCls:t})=>{const o=Gt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Aj(o),Tj(o)]},Oj,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var td={},d$;function Pj(){if(d$)return td;d$=1,Object.defineProperty(td,"__esModule",{value:!0});var e={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"};return td.default=e,td}var jj=Pj();const Bj=Xt(jj);function db(){return db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},db.apply(this,arguments)}const _j=(e,t)=>c.createElement(Zt,db({},e,{ref:t,icon:Bj})),As=c.forwardRef(_j);var nd={},f$;function Hj(){if(f$)return nd;f$=1,Object.defineProperty(nd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};return nd.default=e,nd}var Dj=Hj();const Lj=Xt(Dj);function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fb.apply(this,arguments)}const Vj=(e,t)=>c.createElement(Zt,fb({},e,{ref:t,icon:Lj})),Fj=c.forwardRef(Vj);var od={},m$;function qj(){if(m$)return od;m$=1,Object.defineProperty(od,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};return od.default=e,od}var Uj=qj();const Wj=Xt(Uj);function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mb.apply(this,arguments)}const Gj=(e,t)=>c.createElement(Zt,mb({},e,{ref:t,icon:Wj})),V0=c.forwardRef(Gj);function Xj({suffixIcon:e,contextSuffixIcon:t,clearIcon:o,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:l,removeIcon:u,contextRemoveIcon:f,loading:p,loadingIcon:m,contextLoadingIcon:g,searchIcon:b,contextSearchIcon:v,multiple:x,hasFeedback:C,showSuffixIcon:S,feedbackIcon:R,showArrow:E,componentName:N}){return c.useMemo(()=>{const $=Xo(o,r,c.createElement(yi,null)),w=P=>e===null&&!C&&!E?null:c.createElement(c.Fragment,null,S!==!1&&P,C&&R);let T=null;e!==void 0?T=w(e):p?T=w(Xo(m,g,c.createElement(Sf,{spin:!0}))):T=({open:P,showSearch:B})=>w(P&&B?Xo(b,v,c.createElement(V0,null)):Xo(t,c.createElement(Fj,null)));const z=Xo(i,l,x?c.createElement(As,null):null),A=Xo(u,f,c.createElement(br,null));return{clearIcon:$,suffixIcon:T,itemIcon:z,removeIcon:A}},[e,t,o,r,i,l,u,f,p,m,g,b,v,x,C,S,R,E])}function kj(e){return ce.useMemo(()=>{if(e)return(...t)=>ce.createElement(Rs,{space:!0},e.apply(void 0,t))},[e])}function Yj(e,t){return t!==void 0?t:e!==null}const fN="SECRET_COMBOBOX_MODE_DO_NOT_USE",Kj=(e,t)=>{const{prefixCls:o,bordered:r,className:i,rootClassName:l,getPopupContainer:u,popupClassName:f,dropdownClassName:p,listHeight:m=256,placement:g,listItemHeight:b,size:v,disabled:x,notFoundContent:C,status:S,builtinPlacements:R,dropdownMatchSelectWidth:E,popupMatchSelectWidth:N,direction:$,style:w,allowClear:T,variant:z,popupStyle:A,dropdownStyle:P,transitionName:B,tagRender:D,maxCount:I,prefix:H,dropdownRender:X,popupRender:Z,onDropdownVisibleChange:U,onOpenChange:L,styles:q,classNames:F,clearIcon:J,showSearch:Q,...j}=e,{getPopupContainer:V,getPrefixCls:k,renderEmpty:G,direction:K,virtual:te,popupMatchSelectWidth:Y,popupOverflow:ie}=c.useContext(St),{showSearch:se,allowClear:ae,style:me,styles:ne,className:ue,classNames:he,clearIcon:ge,loadingIcon:Se,menuItemSelectedIcon:$e,removeIcon:ye,suffixIcon:xe}=Kt("select"),[,Ce]=Ko(),we=b??Ce?.controlHeight,Be=k("select",o),Te=k(),He=$??K,{compactSize:nt,compactItemClassnames:Ke}=zs(Be,He),[Fe,qe]=Mf("select",z,r),Je=vr(Be),[Ue,Pe]=Ij(Be,Je),_e=c.useMemo(()=>{const{mode:Ge}=e;if(Ge!=="combobox")return Ge===fN?"combobox":Ge},[e.mode]),Xe=_e==="multiple"||_e==="tags",De=Yj(e.suffixIcon,e.showArrow),Oe=N??E??Y,Qe=kj(Z||X),ze=L||U,{status:Ie,hasFeedback:We,isFormItemInput:Ye,feedbackIcon:rt}=c.useContext(Wr),ct=Rf(Ie,S);let it;C!==void 0?it=C:_e==="combobox"?it=null:it=G?.("Select")||c.createElement($j,{componentName:"Select"});const{suffixIcon:yt,itemIcon:Et,removeIcon:Tt,clearIcon:et}=Xj({...j,multiple:Xe,hasFeedback:We,feedbackIcon:rt,showSuffixIcon:De,componentName:"Select",clearIcon:J,searchIcon:l$(Q,"searchIcon"),contextClearIcon:ge,contextLoadingIcon:Se,contextMenuItemSelectedIcon:$e,contextRemoveIcon:ye,contextSearchIcon:l$(se,"searchIcon"),contextSuffixIcon:xe}),Ot=T??ae,Le=Ot===!0?{clearIcon:et}:Ot,Ne=Q??se,Ae=xn(j,["suffixIcon","itemIcon"]),ve=bo(Ge=>v??nt??Ge),je=c.useContext(qr),Ve=x??je,Ze={...e,variant:Fe,status:ct,disabled:Ve,size:ve},ft=pn(me),Jt=pn(w),[Rt,mt]=dn([he,F],[ne,ft,q,Jt],{props:Ze},{popup:{_default:"root"}}),Mt=W(Rt.popup.root,f,p,{[`${Be}-dropdown-${He}`]:He==="rtl"},l,Pe,Je,Ue),on={...mt.popup?.root,...A??P},ut=W({[`${Be}-lg`]:ve==="large",[`${Be}-sm`]:ve==="small",[`${Be}-rtl`]:He==="rtl",[`${Be}-${Fe}`]:qe,[`${Be}-in-form-item`]:Ye},rc(Be,ct,We),Ke,ue,i,Rt.root,l,Pe,Je,Ue),bt=c.useMemo(()=>g!==void 0?g:He==="rtl"?"bottomRight":"bottomLeft",[g,He]),[$t]=vc("SelectLike",mt.popup.root?.zIndex??on.zIndex);return c.createElement(L0,{ref:t,virtual:te,classNames:Rt,styles:mt,showSearch:Ne,...Ae,style:mt.root,popupMatchSelectWidth:Oe,transitionName:Ur(Te,"slide-up",B),builtinPlacements:wj(R,ie),listHeight:m,listItemHeight:we,mode:_e,prefixCls:Be,placement:bt,direction:He,prefix:H,suffixIcon:yt,menuItemSelectedIcon:Et,removeIcon:Tt,allowClear:Le,notFoundContent:it,className:ut,getPopupContainer:u||V,popupClassName:Mt,disabled:Ve,popupStyle:{...mt.popup.root,...on,zIndex:$t},maxCount:Xe?I:void 0,tagRender:Xe?D:void 0,popupRender:Qe,onPopupVisibleChange:ze})},Is=c.forwardRef(Kj),Qj=gP(Is,"popupAlign");Is.SECRET_COMBOBOX_MODE_DO_NOT_USE=fN;Is.Option=D0;Is.OptGroup=H0;Is._InternalPanelDoNotUseOrYouWillBeFired=Qj;const Zj=["xxxl","xxl","xl","lg","md","sm","xs"],Jj=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),eB=e=>{const t=e,o=[].concat(Zj).reverse();return o.forEach((r,i)=>{const l=r.toUpperCase(),u=`screen${l}Min`,f=`screen${l}`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`);if(i<o.length-1){const p=`screen${l}Max`;if(!(t[f]<=t[p]))throw new Error(`${f}<=${p} fails : !(${t[f]}<=${t[p]})`);const g=`screen${o[i+1].toUpperCase()}Min`;if(!(t[p]<=t[g]))throw new Error(`${p}<=${g} fails : !(${t[p]}<=${t[g]})`)}}),e},tB=()=>{const[,e]=Ko(),t=Jj(eB(e));return ce.useMemo(()=>{const o=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return i=l,o.forEach(u=>{u(i)}),o.size>=1},subscribe(l){return o.size||this.register(),r+=1,o.set(r,l),l(i),r},unsubscribe(l){o.delete(l),o.size||this.unregister()},register(){Object.entries(t).forEach(([l,u])=>{const f=({matches:m})=>{this.dispatch({...i,[l]:m})},p=window.matchMedia(u);mn(p.addEventListener)&&p.addEventListener("change",f),this.matchHandlers[u]={mql:p,listener:f},f(p)})},unregister(){Object.values(t).forEach(l=>{const u=this.matchHandlers[l];mn(u?.mql.removeEventListener)&&u.mql.removeEventListener("change",u?.listener)}),o.clear()}}},[t])};function nB(e=!0,t={}){const o=c.useRef(t),[,r]=K3(),i=tB();return un(()=>{const l=i.subscribe(u=>{o.current=u,e&&r()});return()=>i.unsubscribe(l)},[e]),o.current}const mN=e=>{const{children:t,prefixCls:o,id:r,classNames:i,styles:l,className:u,style:f}=e;return c.createElement("div",{id:r,className:W(`${o}-container`,i?.container,u),style:{...l?.container,...f},role:"tooltip"},typeof t=="function"?t():t)},ss={shiftX:64,adjustY:1},ls={adjustX:1,shiftY:!0},Uo=[0,0],oB={left:{points:["cr","cl"],overflow:ls,offset:[-4,0],targetOffset:Uo},right:{points:["cl","cr"],overflow:ls,offset:[4,0],targetOffset:Uo},top:{points:["bc","tc"],overflow:ss,offset:[0,-4],targetOffset:Uo},bottom:{points:["tc","bc"],overflow:ss,offset:[0,4],targetOffset:Uo},topLeft:{points:["bl","tl"],overflow:ss,offset:[0,-4],targetOffset:Uo},leftTop:{points:["tr","tl"],overflow:ls,offset:[-4,0],targetOffset:Uo},topRight:{points:["br","tr"],overflow:ss,offset:[0,-4],targetOffset:Uo},rightTop:{points:["tl","tr"],overflow:ls,offset:[4,0],targetOffset:Uo},bottomRight:{points:["tr","br"],overflow:ss,offset:[0,4],targetOffset:Uo},rightBottom:{points:["bl","br"],overflow:ls,offset:[4,0],targetOffset:Uo},bottomLeft:{points:["tl","bl"],overflow:ss,offset:[0,4],targetOffset:Uo},leftBottom:{points:["br","bl"],overflow:ls,offset:[-4,0],targetOffset:Uo}};function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},pb.apply(this,arguments)}const rB=c.forwardRef((e,t)=>{const{trigger:o=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:l="rc-tooltip",children:u,onVisibleChange:f,afterVisibleChange:p,motion:m,placement:g="right",align:b={},destroyOnHidden:v=!1,defaultVisible:x,getTooltipContainer:C,arrowContent:S,overlay:R,id:E,showArrow:N=!0,classNames:$,styles:w,...T}=e,z=Xr(E),A=c.useRef(null);c.useImperativeHandle(t,()=>A.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const B=c.useMemo(()=>{if(!N)return!1;const I=N===!0?{}:N;return{...I,className:W(I.className,$?.arrow),style:{...I.style,...w?.arrow},content:I.content??S}},[N,$?.arrow,w?.arrow,S]),D=({open:I})=>{const H=c.Children.only(u),X={"aria-describedby":R&&I?z:void 0};return c.cloneElement(H,X)};return c.createElement(xf,pb({popupClassName:$?.root,prefixCls:l,popup:c.createElement(mN,{key:"content",prefixCls:l,id:z,classNames:$,styles:w},R),action:o,builtinPlacements:oB,popupPlacement:g,ref:A,popupAlign:b,getPopupContainer:C,onOpenChange:f,afterOpenChange:p,popupMotion:m,defaultPopupVisible:x,autoDestroy:v,mouseLeaveDelay:i,popupStyle:w?.root,mouseEnterDelay:r,arrow:B,uniqueContainerClassName:$?.uniqueContainer,uniqueContainerStyle:w?.uniqueContainer},P),D)});function aB(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,i=t/2,l=0,u=i,f=r*1/Math.sqrt(2),p=i-r*(1-1/Math.sqrt(2)),m=i-o*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),b=2*i-m,v=g,x=2*i-f,C=p,S=2*i-l,R=u,E=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),N=r*(Math.sqrt(2)-1),$=`polygon(${N}px 100%, 50% ${N}px, ${2*i-N}px 100%, ${N}px 100%)`,w=`path('M ${l} ${u} A ${r} ${r} 0 0 0 ${f} ${p} L ${m} ${g} A ${o} ${o} 0 0 1 ${b} ${v} L ${x} ${C} A ${r} ${r} 0 0 0 ${S} ${R} Z')`;return{arrowShadowWidth:E,arrowPath:w,arrowPolygon:$}}const iB=(e,t,o)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:l,arrowShadowWidth:u,borderRadiusXS:f,calc:p}=e,m={content:'""',position:"absolute",width:u,height:u,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(f)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return o&&(m.boxShadow=o),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:p(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,l]},content:'""'},"&::after":m}},pN=8;function gN(e){const{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:o?pN:r}}const sB=(e,t,o)=>{const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:l,arrowOffsetHorizontal:u,antCls:f}=e,[p]=Vt(f,"tooltip"),{arrowDistance:m=0,arrowShadow:g=!0}=o||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...iB(e,t,g?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[p("arrow-offset-x")]:u,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-topRight":{[p("arrow-offset-x")]:`calc(100% - ${re(u)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:u}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[p("arrow-offset-x")]:u,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-bottomRight":{[p("arrow-offset-x")]:`calc(100% - ${re(u)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:u}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},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:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},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:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}}};function lB(e,t,o,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=Wt(r)?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+o,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+o,l.shiftX=!0,l.adjustX=!0;break}const u={...l,...i};return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const p$={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"]}},cB={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"]}},uB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dB(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:i,borderRadius:l}=e,u=t/2,f={},p=gN({contentRadius:l,limitVerticalRadius:!0});return Object.keys(p$).forEach(m=>{const b={...r&&cB[m]||p$[m],offset:[0,0],dynamicInset:!0};switch(f[m]=b,uB.has(m)&&(b.autoArrow=!1),m){case"top":case"topLeft":case"topRight":b.offset[1]=-u-i;break;case"bottom":case"bottomLeft":case"bottomRight":b.offset[1]=u+i;break;case"left":case"leftTop":case"leftBottom":b.offset[0]=-u-i;break;case"right":case"rightTop":case"rightBottom":b.offset[0]=u+i;break}if(r)switch(m){case"topLeft":case"bottomLeft":b.offset[0]=-p.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":b.offset[0]=p.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":b.offset[1]=-p.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":b.offset[1]=p.arrowOffsetHorizontal*2-u;break}b.overflow=lB(m,p,t,o),b.htmlRegion="visibleFirst"}),f}const fB=ce.createContext(!1),mB=(e,t)=>{const o=r=>typeof r=="boolean"?{show:r}:r||{};return ce.useMemo(()=>{const r=o(e),i=o(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},g$="50%",pB=e=>{const{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:l,tooltipBorderRadius:u,zIndexPopup:f,controlHeight:p,dropShadowPopover:m,paddingSM:g,paddingXS:b,arrowOffsetHorizontal:v,sizePopupArrow:x,antCls:C}=e,[S,R]=Vt(C,"tooltip"),E=t(u).add(x).add(v).equal(),$={minWidth:t(u).mul(2).add(x).equal(),minHeight:p,padding:`${re(e.calc(g).div(2).equal())} ${re(b)}`,color:R("overlay-color",i),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:u,boxSizing:"border-box"},w={[S("valid-offset-x")]:R("arrow-offset-x","var(--arrow-x)"),transformOrigin:[R("valid-offset-x",g$),`var(--arrow-y, ${g$})`].join(" ")};return[{[o]:{...Dn(e),position:"absolute",zIndex:f,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:m,...w,"&-hidden":{display:"none"},[S("arrow-background-color")]:l,[`${o}-container`]:[$,T2(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:E},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(u,pN)}},[`${o}-content`]:{position:"relative"},...v0(e,(T,{darkColor:z})=>({[`&${o}-${T}`]:{[`${o}-container`]:{backgroundColor:z},[`${o}-arrow`]:{[S("arrow-background-color")]:z}}})),"&-rtl":{direction:"rtl"}}},sB(e,R("arrow-background-color"),{arrowShadow:!1}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...$,...w,position:"absolute",zIndex:t(f).sub(1).equal(),filter:m,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},gB=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...gN({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...aB(Gt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),hN=(e,t,o=!0)=>Qt("Tooltip",i=>{const{borderRadius:l,colorTextLightSolid:u,colorBgSpotlight:f,maxWidth:p}=i,m=Gt(i,{tooltipMaxWidth:p,tooltipColor:u,tooltipBorderRadius:l,tooltipBg:f});return[pB(m),A0(i,"zoom-big-fast")]},gB,{resetStyle:!1,injectStyle:o})(e,t),hB=Aa.map(e=>`${e}-inverse`);function F0(e,t=!0){return t?[].concat(ho(hB),ho(Aa)).includes(e):Aa.includes(e)}const bN=(e,t,o)=>{const r=F0(o),[i]=Vt(e,"tooltip"),l=W({[`${t}-${o}`]:o&&r}),u={},f={},p=_5(o).toRgb(),g=(.299*p.r+.587*p.g+.114*p.b)/255<.5?"#FFF":"#000";return o&&!r&&(u.background=o,u[i("overlay-color")]=g,f[i("arrow-background-color")]=o),{className:l,overlayStyle:u,arrowStyle:f}},bB=e=>{const{prefixCls:t,className:o,placement:r="top",title:i,color:l,overlayInnerStyle:u,classNames:f,styles:p}=e,{getPrefixCls:m}=c.useContext(St),g=m("tooltip",t),b=m(),v=vr(g),[x,C]=hN(g,v),S=bN(b,g,l),R=S.arrowStyle,E=c.useMemo(()=>({container:{...u,...S.overlayStyle}}),[u,S.overlayStyle]),N={...e,placement:r},[$,w]=dn([f],[E,p],{props:N}),T=W(v,x,C,g,`${g}-pure`,`${g}-placement-${r}`,o,S.className);return c.createElement("div",{className:T,style:R},c.createElement("div",{className:`${g}-arrow`}),c.createElement(mN,{...e,className:x,prefixCls:g,classNames:$,styles:w},i))},vB=c.forwardRef((e,t)=>{const{prefixCls:o,openClassName:r,getTooltipContainer:i,color:l,children:u,afterOpenChange:f,arrow:p,destroyTooltipOnHide:m,destroyOnHidden:g,title:b,overlay:v,trigger:x,builtinPlacements:C,autoAdjustOverflow:S=!0,motion:R,getPopupContainer:E,placement:N="top",mouseEnterDelay:$=.1,mouseLeaveDelay:w=.1,rootClassName:T,styles:z,classNames:A,onOpenChange:P,overlayInnerStyle:B,overlayStyle:D,overlayClassName:I,...H}=e,[,X]=Ko(),Z=e["data-popover-inject"],{getPopupContainer:U,getPrefixCls:L,direction:q,...F}=Kt("tooltip"),{className:J,style:Q,classNames:j,styles:V,arrow:k,trigger:G}=Z?{}:F,K=mB(p,k),te=K.show,Y=x||G||"hover",ie=E||U,se=g??!!m,ae=c.useContext(fB),me=c.useRef(null),ne=()=>{me.current?.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:ne,nativeElement:me.current?.nativeElement,popupElement:me.current?.popupElement}));const[ue,he]=To(e.defaultOpen??!1,e.open),ge=!b&&!v&&b!==0,Se=Ye=>{he(ge?!1:Ye),!ge&&P&&P(Ye)},$e=c.useMemo(()=>C||dB({arrowPointAtCenter:K?.pointAtCenter??!1,autoAdjustOverflow:S,arrowWidth:te?X.sizePopupArrow:0,borderRadius:X.borderRadius,offset:X.marginXXS}),[K,C,X,te,S]),ye=c.useMemo(()=>b===0?b:v||b||"",[v,b]),xe=c.createElement(Rs,{space:!0,form:!0},mn(ye)?ye():ye),Ce={...e,trigger:Y,builtinPlacements:$e,getPopupContainer:ie,destroyOnHidden:se},[we,Be]=dn([j,A],[V,z],{props:Ce}),Te=L("tooltip",o),He=L();let nt=ue;(!("open"in e)&&ge||ae)&&(nt=!1);const Ke=c.isValidElement(u)&&!t2(u)?u:c.createElement("span",null,u),Fe=Ke.props,qe=!Fe.className||typeof Fe.className=="string"?W(Fe.className,r||`${Te}-open`):Fe.className,Je=vr(Te),[Ue,Pe]=hN(Te,Je,!Z),_e=bN(He,Te,l),Xe=_e.arrowStyle,De=W(Je,Ue,Pe),Oe=W(I,{[`${Te}-rtl`]:q==="rtl"},_e.className,T,De,J,we.root),[Qe,ze]=vc("Tooltip",H.zIndex),Ie={...Be.container,...B,..._e.overlayStyle},We=c.createElement(rB,{unique:!0,...H,zIndex:Qe,showArrow:te,placement:N,mouseEnterDelay:$,mouseLeaveDelay:w,prefixCls:Te,classNames:{root:Oe,container:we.container,arrow:we.arrow,uniqueContainer:W(De,we.container)},styles:{root:{...Xe,...Be.root,...Q,...D},container:Ie,uniqueContainer:Ie,arrow:Be.arrow},ref:me,overlay:xe,visible:nt,onVisibleChange:Se,afterVisibleChange:f,arrowContent:c.createElement("span",{className:`${Te}-arrow-content`}),motion:{motionName:Ur(He,"zoom-big-fast",typeof R?.motionName=="string"?R?.motionName:void 0),motionDeadline:1e3},trigger:Y,builtinPlacements:$e,getTooltipContainer:ie,destroyOnHidden:se},nt?Io(Ke,{className:qe}):Ke);return c.createElement(Cf.Provider,{value:ze},We)}),Gr=vB;Gr._InternalPanelDoNotUseOrYouWillBeFired=bB;Gr.UniqueProvider=n2;const h$=e=>{const{prefixCls:t,value:o,current:r,offset:i=0}=e;let l;return i&&(l={position:"absolute",top:`${i}00%`,left:0}),c.createElement("span",{style:l,className:W(`${t}-only-unit`,{current:r})},o)};function yB(e,t,o){let r=e,i=0;for(;(r+10)%10!==t;)r+=o,i+=o;return i}const xB=e=>{const{prefixCls:t,count:o,value:r}=e,i=Number(r),l=Math.abs(o),[u,f]=c.useState(i),[p,m]=c.useState(l),g=()=>{f(i),m(l)};c.useEffect(()=>{const x=setTimeout(g,1e3);return()=>clearTimeout(x)},[i]);let b,v;if(u===i||Number.isNaN(i)||Number.isNaN(u))b=[c.createElement(h$,{...e,key:i,current:!0})],v={transition:"none"};else{b=[];const x=i+10,C=[];for(let N=i;N<=x;N+=1)C.push(N);const S=p<l?1:-1,R=C.findIndex(N=>N%10===u);b=(S<0?C.slice(0,R+1):C.slice(R)).map((N,$)=>{const w=N%10;return c.createElement(h$,{...e,key:N,value:w,offset:S<0?$-R:$,current:$===R})}),v={transform:`translateY(${-yB(u,i,S)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:g},b)},SB=c.forwardRef((e,t)=>{const{prefixCls:o,count:r,className:i,motionClassName:l,style:u,title:f,show:p,component:m="sup",children:g,...b}=e,{getPrefixCls:v}=c.useContext(St),x=v("scroll-number",o),C={...b,"data-show":p,style:u,className:W(x,i,l),title:f};let S=r;if(r&&Number(r)%1===0){const R=String(r).split("");S=c.createElement("bdi",null,R.map((E,N)=>c.createElement(xB,{prefixCls:x,count:Number(r),value:E,key:R.length-N})))}return u?.borderColor&&(C.style={...u,boxShadow:`0 0 0 1px ${u.borderColor} inset`}),g?Io(g,R=>({className:W(`${x}-custom-component`,R?.className,l)})):c.createElement(m,{...C,ref:t},S)}),CB=new Ct("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),$B=new Ct("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),EB=new Ct("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wB=new Ct("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),NB=new Ct("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),RB=new Ct("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),MB=e=>{const{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:i,textFontSize:l,textFontSizeSM:u,statusSize:f,dotSize:p,textFontWeight:m,indicatorHeight:g,indicatorHeightSM:b,marginXS:v,calc:x}=e,C=`${r}-scroll-number`,S=v0(e,(R,{darkColor:E})=>({[`&${t} ${t}-color-${R}`]:{background:E,[`&:not(${t}-count)`]:{color:E},"a:hover &":{background:E}}}));return{[t]:{...Dn(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:re(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:x(g).div(2).equal(),boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:b,height:b,fontSize:u,lineHeight:re(b),borderRadius:x(b).div(2).equal()},[`${t}-multiple-words`]:{paddingInline:e.paddingInline,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:p,minWidth:p,height:p,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:RB,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfoTextHover,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:CB,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:v,color:e.colorText,fontSize:e.fontSize}},...S,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:$B,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:EB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:NB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},vN=e=>{const{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:i}=e,l=t,u=o,f=e.colorTextLightSolid,p=e.colorError,m=e.colorErrorHover;return Gt(e,{badgeFontHeight:l,badgeShadowSize:u,badgeTextColor:f,badgeColor:p,badgeColorHover:m,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},yN=e=>{const{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:i,paddingXS:l}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2,paddingInline:l}},TB=Qt("Badge",e=>{const t=vN(e);return MB(t)},yN),OB=c.forwardRef((e,t)=>{const{prefixCls:o,scrollNumberPrefixCls:r,children:i,status:l,text:u,color:f,count:p=null,overflowCount:m=99,dot:g=!1,size:b="medium",title:v,offset:x,style:C,className:S,rootClassName:R,classNames:E,styles:N,showZero:$=!1,...w}=e,{getPrefixCls:T,direction:z,className:A,style:P,classNames:B,styles:D}=Kt("badge"),I=T("badge",o),[H,X]=TB(I),Z={...e,overflowCount:m,size:b,dot:g,showZero:$},[U,L]=dn([B,E],[D,N],{props:Z}),q=p>m?`${m}+`:p,F=q==="0"||q===0||u==="0"||u===0,J=p===null||F&&!$,Q=(Kn(l)||Kn(f))&&J,j=Kn(l)||!F,V=g&&!F,k=V?"":q,G=c.useMemo(()=>(!hr(k)&&!hr(u)||F&&!$)&&!V,[k,F,$,V,u]),K=c.useRef(p);G||(K.current=p);const te=K.current,Y=c.useRef(k);G||(Y.current=k);const ie=Y.current,se=c.useRef(V);G||(se.current=V);const ae=c.useMemo(()=>{if(!x)return{...P,...C};const Ce=Number.parseInt(x[0],10);return{...{marginTop:x[1],insetInlineEnd:-Ce},...P,...C}},[x,C,P]),me=Oa(te)||ko(te)?te:void 0,ne=v===null||v===!1?void 0:v??me,ue=!G&&(u===0?$:!!u&&u!==!0),he=ue?c.createElement("span",{className:`${I}-status-text`},u):null,ge=Wt(te)?Io(te,Ce=>({style:{...ae,...Ce.style}})):void 0,Se=F0(f,!1),$e=W(U.indicator,{[`${I}-status-dot`]:Q,[`${I}-status-${l}`]:!!l,[`${I}-color-${f}`]:Se}),ye={};f&&!Se&&(ye.color=f,ye.background=f);const xe=W(I,{[`${I}-status`]:Q,[`${I}-not-a-wrapper`]:!i,[`${I}-rtl`]:z==="rtl"},S,R,A,U.root,H,X);if(!i&&Q&&(u||j||!J)){const Ce=ae.color;return c.createElement("span",{ref:t,...w,className:xe,style:{...L.root,...ae}},c.createElement("span",{className:$e,style:{...L.indicator,...ye}}),ue&&c.createElement("span",{style:{color:Ce},className:`${I}-status-text`},u))}return c.createElement("span",{ref:t,...w,className:xe,style:L.root},i,c.createElement(no,{visible:!G,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Ce})=>{const we=T("scroll-number",r),Be=se.current,Te=W(U.indicator,{[`${I}-dot`]:Be,[`${I}-count`]:!Be,[`${I}-count-sm`]:b==="small",[`${I}-multiple-words`]:!Be&&ie&&ie.toString().length>1,[`${I}-status-${l}`]:!!l,[`${I}-color-${f}`]:Se});let He={...L.indicator,...ae};return f&&!Se&&(He=He||{},He.background=f),c.createElement(SB,{prefixCls:we,show:!G,motionClassName:Ce,className:Te,count:ie,title:ne,style:He,key:"scrollNumber"},ge)}),he)}),zB=e=>{const{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:i,calc:l}=e,u=`${t}-ribbon`,f=`${t}-ribbon-wrapper`,p=v0(e,(m,{darkColor:g})=>({[`&${u}-color-${m}`]:{background:g,color:g}}));return{[f]:{position:"relative"},[u]:{...Dn(e),position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${u}-content`]:{color:e.badgeTextColor},[`${u}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${re(l(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...p,[`&${u}-placement-end`]:{insetInlineEnd:l(i).mul(-1).equal(),borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:l(i).mul(-1).equal(),borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},AB=Qt(["Badge","Ribbon"],e=>{const t=vN(e);return zB(t)},yN),IB=e=>{const{className:t,prefixCls:o,style:r,color:i,children:l,text:u,placement:f="end",rootClassName:p,styles:m,classNames:g}=e,{getPrefixCls:b,direction:v,className:x,style:C,classNames:S,styles:R}=Kt("ribbon"),E=b("ribbon",o),N=`${E}-wrapper`,[$,w]=AB(E,N),T={...e,placement:f},[z,A]=dn([S,g],[R,m],{props:T}),P=F0(i,!1),B=W(E,`${E}-placement-${f}`,{[`${E}-rtl`]:v==="rtl",[`${E}-color-${i}`]:P},t,x,z.indicator),D={},I={};return i&&!P&&(D.background=i,I.color=i),c.createElement("div",{className:W(N,p,$,w,z.root),style:A.root},l,c.createElement("div",{className:W(B,$),style:{...D,...A.indicator,...C,...r}},c.createElement("span",{className:W(`${E}-content`,z.content),style:A.content},u),c.createElement("div",{className:`${E}-corner`,style:I})))},xN=OB;xN.Ribbon=IB;var rd={},b$;function PB(){if(b$)return rd;b$=1,Object.defineProperty(rd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};return rd.default=e,rd}var jB=PB();const BB=Xt(jB);function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gb.apply(this,arguments)}const _B=(e,t)=>c.createElement(Zt,gb({},e,{ref:t,icon:BB})),v$=c.forwardRef(_B),{ESC:HB,TAB:DB}=at;function LB({visible:e,triggerRef:t,onVisibleChange:o,autoFocus:r,overlayRef:i}){const l=c.useRef(!1),u=()=>{e&&(t.current?.focus?.(),o?.(!1))},f=()=>i.current?.focus?(i.current.focus(),l.current=!0,!0):!1,p=m=>{switch(m.keyCode){case HB:u();break;case DB:{let g=!1;l.current||(g=f()),g?m.preventDefault():u();break}}};c.useEffect(()=>e?(window.addEventListener("keydown",p),r&&Lt(f,3),()=>{window.removeEventListener("keydown",p),l.current=!1}):()=>{l.current=!1},[e])}const VB=c.forwardRef((e,t)=>{const{overlay:o,arrow:r,prefixCls:i}=e,l=c.useMemo(()=>{let f;return typeof o=="function"?f=o():f=o,f},[o]),u=oo(t,vi(l));return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:`${i}-arrow`}),ce.cloneElement(l,{ref:Ms(l)?u:void 0}))}),cs={adjustX:1,adjustY:1},us=[0,0],FB={topLeft:{points:["bl","tl"],overflow:cs,offset:[0,-4],targetOffset:us},top:{points:["bc","tc"],overflow:cs,offset:[0,-4],targetOffset:us},topRight:{points:["br","tr"],overflow:cs,offset:[0,-4],targetOffset:us},bottomLeft:{points:["tl","bl"],overflow:cs,offset:[0,4],targetOffset:us},bottom:{points:["tc","bc"],overflow:cs,offset:[0,4],targetOffset:us},bottomRight:{points:["tr","br"],overflow:cs,offset:[0,4],targetOffset:us}};function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hb.apply(this,arguments)}const qB=ce.forwardRef((e,t)=>{const{arrow:o=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:l,align:u,placement:f="bottomLeft",placements:p=FB,getPopupContainer:m,showAction:g,hideAction:b,overlayClassName:v,overlayStyle:x,visible:C,trigger:S=["hover"],autoFocus:R,overlay:E,children:N,onVisibleChange:$,disabled:w,...T}=e,[z,A]=ce.useState(),P="visible"in e?C:z,B=l?`${r}-${l}`:i,D=ce.useRef(null),I=ce.useRef(null),H=ce.useRef(null);ce.useImperativeHandle(t,()=>D.current);const X=G=>{A(G),$?.(G)};LB({visible:P,triggerRef:H,onVisibleChange:X,autoFocus:R,overlayRef:I});const Z=G=>{const{onOverlayClick:K}=e;A(!1),K&&K(G)},U=()=>ce.createElement(VB,{ref:I,overlay:E,prefixCls:r,arrow:o}),L=()=>typeof E=="function"?U:U(),q=()=>{const{minOverlayWidthMatchTrigger:G,alignPoint:K}=e;return"minOverlayWidthMatchTrigger"in e?G:!K},F=()=>{const{openClassName:G}=e;return G!==void 0?G:`${r}-open`},J=N,Q=W(J.props?.className,P&&F()),j={className:Q,ref:oo(H,vi(J))},V=Ms(J)?ce.cloneElement(J,j):ce.createElement("span",{className:Q,ref:H},ce.cloneElement(J,{className:Q}));let k=b;return!k&&S.indexOf("contextMenu")!==-1&&(k=["click"]),ce.createElement(xf,hb({builtinPlacements:p},T,{prefixCls:r,ref:D,popupClassName:W(v,{[`${r}-show-arrow`]:o}),popupStyle:x,action:S,showAction:g,hideAction:k,popupPlacement:f,popupAlign:u,popupMotion:{motionName:B},popupVisible:P,stretch:q()?"minWidth":"",popup:L(),onOpenChange:X,onPopupClick:Z,getPopupContainer:m}),V)}),SN=c.createContext(null);function CN(e,t){return`${e}-${t}`}function $N(e){const t=c.useContext(SN);return CN(t,e)}const ir=c.createContext(null);function UB(e,t){const o={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(o[r]=i)}),o}function ac({children:e,locked:t,...o}){const r=c.useContext(ir),i=dc(()=>UB(r,o),[r,o],(l,u)=>!t&&(l[0]!==u[0]||!Ql(l[1],u[1],!0)));return c.createElement(ir.Provider,{value:i},e)}const WB=[],EN=c.createContext(null);function Tf(){return c.useContext(EN)}const wN=c.createContext(WB);function Ps(e){const t=c.useContext(wN);return c.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const NN=c.createContext(null),q0=c.createContext({}),{LEFT:bb,RIGHT:vb,UP:yb,DOWN:Dd,ENTER:Ld,ESC:RN,HOME:Bl,END:_l}=at,y$=[yb,Dd,bb,vb];function GB(e,t,o,r){const i="prev",l="next",u="children",f="parent";if(e==="inline"&&r===Ld)return{inlineTrigger:!0};const p={[yb]:i,[Dd]:l},m={[bb]:o?l:i,[vb]:o?i:l,[Dd]:u,[Ld]:u},g={[yb]:i,[Dd]:l,[Ld]:u,[RN]:f,[bb]:o?u:f,[vb]:o?f:u};switch({inline:p,horizontal:m,vertical:g,inlineSub:p,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function XB(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function kB(e,t){let o=e||document.activeElement;for(;o;){if(t.has(o))return o;o=o.parentElement}return null}function U0(e,t){return l0(e,!0).filter(r=>t.has(r))}function x$(e,t,o,r=1){if(!e)return null;const i=U0(e,t),l=i.length;let u=i.findIndex(f=>o===f);return r<0?u===-1?u=l-1:u-=1:r>0&&(u+=1),u=(u+l)%l,i[u]}const nf=(e,t)=>{const o=new Set,r=new Map,i=new Map;return e.forEach(l=>{const u=document.querySelector(`[data-menu-id='${CN(t,l)}']`);u&&(o.add(u),i.set(u,l),r.set(l,u))}),{elements:o,key2element:r,element2key:i}};function YB(e,t,o,r,i,l,u,f,p,m){const g=c.useRef(),b=c.useRef();b.current=t;const v=()=>{Lt.cancel(g.current)};return c.useEffect(()=>()=>{v()},[]),x=>{const{which:C}=x;if([...y$,Ld,RN,Bl,_l].includes(C)){const S=l();let R=nf(S,r);const{elements:E,key2element:N,element2key:$}=R,w=N.get(t),T=kB(w,E),z=$.get(T),A=GB(e,u(z,!0).length===1,o,C);if(!A&&C!==Bl&&C!==_l)return;(y$.includes(C)||[Bl,_l].includes(C))&&x.preventDefault();const P=B=>{if(B){let D=B;const I=B.querySelector("a");I?.getAttribute("href")&&(D=I);const H=$.get(B);f(H),v(),g.current=Lt(()=>{b.current===H&&D.focus()})}};if([Bl,_l].includes(C)||A.sibling||!T){let B;!T||e==="inline"?B=i.current:B=XB(T);let D;const I=U0(B,E);C===Bl?D=I[0]:C===_l?D=I[I.length-1]:D=x$(B,E,T,A.offset),P(D)}else if(A.inlineTrigger)p(z);else if(A.offset>0)p(z,!0),v(),g.current=Lt(()=>{R=nf(S,r);const B=T.getAttribute("aria-controls"),D=document.getElementById(B),I=x$(D,R.elements);P(I)},5);else if(A.offset<0){const B=u(z,!0),D=B[B.length-2],I=N.get(D);p(D,!1),P(I)}}m?.(x)}}function KB(e){Promise.resolve().then(e)}const W0="__RC_UTIL_PATH_SPLIT__",S$=e=>e.join(W0),QB=e=>e.split(W0),xb="rc-menu-more";function ZB(){const[,e]=c.useState({}),t=c.useRef(new Map),o=c.useRef(new Map),[r,i]=c.useState([]),l=c.useRef(0),u=c.useRef(!1),f=()=>{u.current||e({})},p=c.useCallback((S,R)=>{const E=S$(R);o.current.set(E,S),t.current.set(S,E),l.current+=1;const N=l.current;KB(()=>{N===l.current&&f()})},[]),m=c.useCallback((S,R)=>{const E=S$(R);o.current.delete(E),t.current.delete(S)},[]),g=c.useCallback(S=>{i(S)},[]),b=c.useCallback((S,R)=>{const E=t.current.get(S)||"",N=QB(E);return R&&r.includes(N[0])&&N.unshift(xb),N},[r]),v=c.useCallback((S,R)=>S.filter(E=>E!==void 0).some(E=>b(E,!0).includes(R)),[b]),x=()=>{const S=[...t.current.keys()];return r.length&&S.push(xb),S},C=c.useCallback(S=>{const R=`${t.current.get(S)}${W0}`,E=new Set;return[...o.current.keys()].forEach(N=>{N.startsWith(R)&&E.add(o.current.get(N))}),E},[]);return c.useEffect(()=>()=>{u.current=!0},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:g,isSubPathKey:v,getKeyPath:b,getKeys:x,getSubPathKeys:C}}function Fl(e){const t=c.useRef(e);t.current=e;const o=c.useCallback((...r)=>t.current?.(...r),[]);return e?o:void 0}function MN(e,t,o,r){const{activeKey:i,onActive:l,onInactive:u}=c.useContext(ir),f={active:i===e};return t||(f.onMouseEnter=p=>{o?.({key:e,domEvent:p}),l(e)},f.onMouseLeave=p=>{r?.({key:e,domEvent:p}),u(e)}),f}function TN(e){const{mode:t,rtl:o,inlineIndent:r}=c.useContext(ir);if(t!=="inline")return null;const i=e;return o?{paddingRight:i*r}:{paddingLeft:i*r}}function ON({icon:e,props:t,children:o}){let r;return e===null||e===!1?null:(typeof e=="function"?r=c.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||o||null)}function of({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Yn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ic.apply(this,arguments)}class JB extends c.Component{render(){const{title:t,attribute:o,elementRef:r,...i}=this.props,l=xn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Yn(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Vr.Item,ic({},o,{title:typeof t=="string"?t:void 0},l,{ref:r}))}}const e_=c.forwardRef((e,t)=>{const{style:o,className:r,eventKey:i,warnKey:l,disabled:u,itemIcon:f,children:p,itemData:m,role:g,onMouseEnter:b,onMouseLeave:v,onClick:x,onKeyDown:C,onFocus:S,...R}=e,E=$N(i),{prefixCls:N,onItemClick:$,disabled:w,overflowDisabled:T,itemIcon:z,selectedKeys:A,onActive:P}=c.useContext(ir),{_internalRenderMenuItem:B}=c.useContext(q0),D=`${N}-item`,I=c.useRef(),H=c.useRef(),X=w||u,Z=kr(t,H),U=Ps(i),L=Y=>{const ie=m||{key:i||"",label:p,itemIcon:f,extra:e.extra,title:e.title};return{key:i,keyPath:[...U].reverse(),item:I.current,domEvent:Y,itemData:m||ie}},q=f||z,{active:F,...J}=MN(i,X,b,v),Q=A.includes(i),j=TN(U.length),V=Y=>{if(X)return;const ie=L(Y);x?.(of(ie)),$(ie)},k=Y=>{if(C?.(Y),Y.which===at.ENTER){const ie=L(Y);x?.(of(ie)),$(ie)}},G=Y=>{P(i),S?.(Y)},K={};e.role==="option"&&(K["aria-selected"]=Q);let te=c.createElement(JB,ic({ref:I,elementRef:Z,role:g===null?"none":g||"menuitem",tabIndex:u?null:-1,"data-menu-id":T&&E?null:E},xn(R,["extra"]),J,K,{component:"li","aria-disabled":u,style:{...j,...o},className:W(D,{[`${D}-active`]:F,[`${D}-selected`]:Q,[`${D}-disabled`]:X},r),onClick:V,onKeyDown:k,onFocus:G}),p,c.createElement(ON,{props:{...e,isSelected:Q},icon:q}));return B&&(te=B(te,e,{selected:Q})),te});function t_(e,t){const{eventKey:o}=e,r=Tf(),i=Ps(o);return c.useEffect(()=>{if(r)return r.registerPath(o,i),()=>{r.unregisterPath(o,i)}},[i]),r?null:c.createElement(e_,ic({},e,{ref:t}))}const $c=c.forwardRef(t_);function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Sb.apply(this,arguments)}const n_=({className:e,children:t,...o},r)=>{const{prefixCls:i,mode:l,rtl:u}=c.useContext(ir);return c.createElement("ul",Sb({className:W(i,u&&`${i}-rtl`,`${i}-sub`,`${i}-${l==="inline"?"inline":"vertical"}`,e),role:"menu"},o,{"data-menu-list":!0,ref:r}),t)},zN=c.forwardRef(n_);function G0(e,t){return Ao(e).map((o,r)=>{if(c.isValidElement(o)){const{key:i}=o;let l=o.props?.eventKey??i;l==null&&(l=`tmp_key-${[...t,r].join("-")}`);const f={key:l,eventKey:l};return c.cloneElement(o,f)}return o})}const kn={adjustX:1,adjustY:1},o_={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},leftTop:{points:["tr","tl"],overflow:kn},leftBottom:{points:["br","bl"],overflow:kn},rightTop:{points:["tl","tr"],overflow:kn},rightBottom:{points:["bl","br"],overflow:kn}},r_={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},rightTop:{points:["tr","tl"],overflow:kn},rightBottom:{points:["br","bl"],overflow:kn},leftTop:{points:["tl","tr"],overflow:kn},leftBottom:{points:["bl","br"],overflow:kn}};function AN(e,t,o){if(t)return t;if(o)return o[e]||o.other}const a_={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function i_({prefixCls:e,visible:t,children:o,popup:r,popupStyle:i,popupClassName:l,popupOffset:u,disabled:f,mode:p,onVisibleChange:m}){const{getPopupContainer:g,rtl:b,subMenuOpenDelay:v,subMenuCloseDelay:x,builtinPlacements:C,triggerSubMenuAction:S,forceSubMenuRender:R,rootClassName:E,motion:N,defaultMotions:$}=c.useContext(ir),[w,T]=c.useState(!1),z=b?{...r_,...C}:{...o_,...C},A=a_[p],P=AN(p,N,$),B=c.useRef(P);p!=="inline"&&(B.current=P);const D={...B.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},I=c.useRef();return c.useEffect(()=>(I.current=Lt(()=>{T(t)}),()=>{Lt.cancel(I.current)}),[t]),c.createElement(xf,{prefixCls:e,popupClassName:W(`${e}-popup`,{[`${e}-rtl`]:b},l,E),stretch:p==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:z,popupPlacement:A,popupVisible:w,popup:r,popupStyle:i,popupAlign:u&&{offset:u},action:f?[]:[S],mouseEnterDelay:v,mouseLeaveDelay:x,onPopupVisibleChange:m,forceRender:R,popupMotion:D,fresh:!0},o)}function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Cb.apply(this,arguments)}function s_({id:e,open:t,keyPath:o,children:r}){const i="inline",{prefixCls:l,forceSubMenuRender:u,motion:f,defaultMotions:p,mode:m}=c.useContext(ir),g=c.useRef(!1);g.current=m===i;const[b,v]=c.useState(!g.current),x=g.current?t:!1;c.useEffect(()=>{g.current&&v(!1)},[m]);const C={...AN(i,f,p)};o.length>1&&(C.motionAppear=!1);const S=C.onVisibleChanged;return C.onVisibleChanged=R=>(!g.current&&!R&&v(!0),S?.(R)),b?null:c.createElement(ac,{mode:i,locked:!g.current},c.createElement(no,Cb({visible:x},C,{forceRender:u,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),({className:R,style:E})=>c.createElement(zN,{id:e,className:R,style:E},r)))}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},sc.apply(this,arguments)}const l_=c.forwardRef((e,t)=>{const{style:o,className:r,styles:i,classNames:l,title:u,eventKey:f,warnKey:p,disabled:m,internalPopupClose:g,children:b,itemIcon:v,expandIcon:x,popupClassName:C,popupOffset:S,popupStyle:R,onClick:E,onMouseEnter:N,onMouseLeave:$,onTitleClick:w,onTitleMouseEnter:T,onTitleMouseLeave:z,popupRender:A,...P}=e,B=$N(f),{prefixCls:D,mode:I,openKeys:H,disabled:X,overflowDisabled:Z,activeKey:U,selectedKeys:L,itemIcon:q,expandIcon:F,onItemClick:J,onOpenChange:Q,onActive:j,popupRender:V}=c.useContext(ir),{_internalRenderSubMenuItem:k}=c.useContext(q0),{isSubPathKey:G}=c.useContext(NN),K=Ps(),te=`${D}-submenu`,Y=X||m,ie=c.useRef(),se=c.useRef(),ae=v??q,me=x??F,ne=H.includes(f),ue=!Z&&ne,he=G(L,f),{active:ge,...Se}=MN(f,Y,T,z),[$e,ye]=c.useState(!1),xe=Oe=>{Y||ye(Oe)},Ce=Oe=>{xe(!0),N?.({key:f,domEvent:Oe})},we=Oe=>{xe(!1),$?.({key:f,domEvent:Oe})},Be=c.useMemo(()=>ge||(I!=="inline"?$e||G([U],f):!1),[I,ge,U,$e,f,G]),Te=TN(K.length),He=Oe=>{Y||(w?.({key:f,domEvent:Oe}),I==="inline"&&Q(f,!ne))},nt=Fl(Oe=>{E?.(of(Oe)),J(Oe)}),Ke=Oe=>{I!=="inline"&&Q(f,Oe)},Fe=()=>{j(f)},qe=B&&`${B}-popup`,Je=c.useMemo(()=>c.createElement(ON,{icon:I!=="horizontal"?me:void 0,props:{...e,isOpen:ue,isSubMenu:!0}},c.createElement("i",{className:`${te}-arrow`})),[I,me,e,ue,te]);let Ue=c.createElement("div",sc({role:"menuitem",style:Te,className:`${te}-title`,tabIndex:Y?null:-1,ref:ie,title:typeof u=="string"?u:null,"data-menu-id":Z&&B?null:B,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":qe,"aria-disabled":Y,onClick:He,onFocus:Fe},Se),u,Je);const Pe=c.useRef(I);I!=="inline"&&K.length>1?Pe.current="vertical":Pe.current=I;const _e=Pe.current,Xe=c.useMemo(()=>{const Oe=c.createElement(ac,{classNames:l,styles:i,mode:_e==="horizontal"?"vertical":_e},c.createElement(zN,{id:qe,ref:se},b)),Qe=A||V;return Qe?Qe(Oe,{item:e,keys:K}):Oe},[A,V,K,qe,b,e,_e]);if(!Z){const Oe=Pe.current;Ue=c.createElement(i_,{mode:Oe,prefixCls:te,visible:!g&&ue&&I!=="inline",popupClassName:C,popupOffset:S,popupStyle:R,popup:Xe,disabled:Y,onVisibleChange:Ke},Ue)}let De=c.createElement(Vr.Item,sc({ref:t,role:"none"},P,{component:"li",style:o,className:W(te,`${te}-${I}`,r,{[`${te}-open`]:ue,[`${te}-active`]:Be,[`${te}-selected`]:he,[`${te}-disabled`]:Y}),onMouseEnter:Ce,onMouseLeave:we}),Ue,!Z&&c.createElement(s_,{id:qe,open:ue,keyPath:K},b));return k&&(De=k(De,e,{selected:he,active:Be,open:ue,disabled:Y})),c.createElement(ac,{classNames:l,styles:i,onItemClick:nt,mode:I==="horizontal"?"vertical":I,itemIcon:ae,expandIcon:me},De)}),Of=c.forwardRef((e,t)=>{const{eventKey:o,children:r}=e,i=Ps(o),l=G0(r,i),u=Tf();c.useEffect(()=>{if(u)return u.registerPath(o,i),()=>{u.unregisterPath(o,i)}},[i]);let f;return u?f=l:f=c.createElement(l_,sc({ref:t},e),l),c.createElement(wN.Provider,{value:i},f)});function X0({className:e,style:t}){const{prefixCls:o}=c.useContext(ir);return Tf()?null:c.createElement("li",{role:"separator",className:W(`${o}-item-divider`,e),style:t})}function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rf.apply(this,arguments)}const c_=c.forwardRef((e,t)=>{const{className:o,title:r,eventKey:i,children:l,...u}=e,{prefixCls:f,classNames:p,styles:m}=c.useContext(ir),g=`${f}-item-group`;return c.createElement("li",rf({ref:t,role:"presentation"},u,{onClick:b=>b.stopPropagation(),className:W(g,o)}),c.createElement("div",{role:"presentation",className:W(`${g}-title`,p?.listTitle),style:m?.listTitle,title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:W(`${g}-list`,p?.list),style:m?.list},l))}),k0=c.forwardRef((e,t)=>{const{eventKey:o,children:r}=e,i=Ps(o),l=G0(r,i);return Tf()?l:c.createElement(c_,rf({ref:t},xn(e,["warnKey"])),l)});function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ms.apply(this,arguments)}function $b(e,t,o){const{item:r,group:i,submenu:l,divider:u}=t;return(e||[]).map((f,p)=>{if(f&&typeof f=="object"){const{label:m,children:g,key:b,type:v,extra:x,...C}=f,S=b??`tmp-${p}`;if(g||v==="group")return v==="group"?c.createElement(i,ms({key:S},C,{title:m}),$b(g,t,o)):c.createElement(l,ms({key:S},C,{title:m}),$b(g,t,o));if(v==="divider")return c.createElement(u,ms({key:S},C));const R=!!x||x===0;return c.createElement(r,ms({key:S},C,{extra:x,itemData:{...f,key:S}}),R?c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}-item-label`},m),c.createElement("span",{className:`${o}-item-extra`},x)):m)}return null}).filter(f=>f)}function C$(e,t,o,r,i){let l=e;const u={divider:X0,item:$c,group:k0,submenu:Of,...r};return t&&(l=$b(t,u,i)),G0(l,o)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Eb.apply(this,arguments)}const ti=[],u_=c.forwardRef((e,t)=>{const{prefixCls:o="rc-menu",rootClassName:r,style:i,className:l,styles:u,classNames:f,tabIndex:p=0,items:m,children:g,direction:b,id:v,mode:x="vertical",inlineCollapsed:C,disabled:S,disabledOverflow:R,subMenuOpenDelay:E=.1,subMenuCloseDelay:N=.1,forceSubMenuRender:$,defaultOpenKeys:w,openKeys:T,activeKey:z,defaultActiveFirst:A,selectable:P=!0,multiple:B=!1,defaultSelectedKeys:D,selectedKeys:I,onSelect:H,onDeselect:X,inlineIndent:Z=24,motion:U,defaultMotions:L,triggerSubMenuAction:q="hover",builtinPlacements:F,itemIcon:J,expandIcon:Q,overflowedIndicator:j="...",overflowedIndicatorPopupClassName:V,getPopupContainer:k,onClick:G,onOpenChange:K,onKeyDown:te,openAnimation:Y,openTransitionName:ie,_internalRenderMenuItem:se,_internalRenderSubMenuItem:ae,_internalComponents:me,popupRender:ne,...ue}=e,[he,ge]=c.useMemo(()=>[C$(g,m,ti,me,o),C$(g,m,ti,{},o)],[g,m,me]),[Se,$e]=c.useState(!1),ye=c.useRef(),xe=Xr(v?`rc-menu-uuid-${v}`:"rc-menu-uuid"),Ce=b==="rtl",[we,Be]=To(w,T),Te=we||ti,He=(ut,bt=!1)=>{function $t(){Be(ut),K?.(ut)}bt?gi.flushSync($t):$t()},[nt,Ke]=c.useState(Te),Fe=c.useRef(!1),[qe,Je]=c.useMemo(()=>(x==="inline"||x==="vertical")&&C?["vertical",C]:[x,!1],[x,C]),Ue=qe==="inline",[Pe,_e]=c.useState(qe),[Xe,De]=c.useState(Je);c.useEffect(()=>{_e(qe),De(Je),Fe.current&&(Ue?Be(nt):He(ti))},[qe,Je]);const[Oe,Qe]=c.useState(0),ze=Oe>=he.length-1||Pe!=="horizontal"||R;c.useEffect(()=>{Ue&&Ke(Te)},[Te]),c.useEffect(()=>(Fe.current=!0,()=>{Fe.current=!1}),[]);const{registerPath:Ie,unregisterPath:We,refreshOverflowKeys:Ye,isSubPathKey:rt,getKeyPath:ct,getKeys:it,getSubPathKeys:yt}=ZB(),Et=c.useMemo(()=>({registerPath:Ie,unregisterPath:We}),[Ie,We]),Tt=c.useMemo(()=>({isSubPathKey:rt}),[rt]);c.useEffect(()=>{Ye(ze?ti:he.slice(Oe+1).map(ut=>ut.key))},[Oe,ze]);const[et,Ot]=To(z||A&&he[0]?.key,z),Le=Fl(ut=>{Ot(ut)}),Ne=Fl(()=>{Ot(void 0)});c.useImperativeHandle(t,()=>({list:ye.current,focus:ut=>{const bt=it(),{elements:$t,key2element:Ge,element2key:lt}=nf(bt,xe),_t=U0(ye.current,$t);let en;et&&bt.includes(et)?en=et:en=_t[0]?lt.get(_t[0]):he.find(Ft=>!Ft.props.disabled)?.key;const wt=Ge.get(en);en&&wt&&wt?.focus?.(ut)},findItem:({key:ut})=>{const bt=it(),{key2element:$t}=nf(bt,xe);return $t.get(ut)||null}}));const[Ae,ve]=To(D||[],I),je=c.useMemo(()=>Array.isArray(Ae)?Ae:Ae==null?ti:[Ae],[Ae]),Ve=ut=>{if(P){const{key:bt}=ut,$t=je.includes(bt);let Ge;B?$t?Ge=je.filter(_t=>_t!==bt):Ge=[...je,bt]:Ge=[bt],ve(Ge);const lt={...ut,selectedKeys:Ge};$t?X?.(lt):H?.(lt)}!B&&Te.length&&Pe!=="inline"&&He(ti)},Ze=Fl(ut=>{G?.(of(ut)),Ve(ut)}),ft=Fl((ut,bt)=>{let $t=Te.filter(Ge=>Ge!==ut);if(bt)$t.push(ut);else if(Pe!=="inline"){const Ge=yt(ut);$t=$t.filter(lt=>!Ge.has(lt))}Ql(Te,$t,!0)||He($t,!0)}),Rt=YB(Pe,et,Ce,xe,ye,it,ct,Ot,(ut,bt)=>{const $t=bt??!Te.includes(ut);ft(ut,$t)},te);c.useEffect(()=>{$e(!0)},[]);const mt=c.useMemo(()=>({_internalRenderMenuItem:se,_internalRenderSubMenuItem:ae}),[se,ae]),Mt=Pe!=="horizontal"||R?he:he.map((ut,bt)=>c.createElement(ac,{key:ut.key,overflowDisabled:bt>Oe,classNames:f,styles:u},ut)),on=c.createElement(Vr,Eb({id:v,ref:ye,prefixCls:`${o}-overflow`,component:"ul",itemComponent:$c,className:W(o,`${o}-root`,`${o}-${Pe}`,l,{[`${o}-inline-collapsed`]:Xe,[`${o}-rtl`]:Ce},r),dir:b,style:i,role:"menu",tabIndex:p,data:Mt,renderRawItem:ut=>ut,renderRawRest:ut=>{const bt=ut.length,$t=bt?he.slice(-bt):null;return c.createElement(Of,{eventKey:xb,title:j,disabled:ze,internalPopupClose:bt===0,popupClassName:V},$t)},maxCount:Pe!=="horizontal"||R?Vr.INVALIDATE:Vr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ut=>{Qe(ut)},onKeyDown:Rt},ue));return c.createElement(q0.Provider,{value:mt},c.createElement(SN.Provider,{value:xe},c.createElement(ac,{prefixCls:o,rootClassName:r,classNames:f,styles:u,mode:Pe,openKeys:Te,rtl:Ce,disabled:S,motion:Se?U:null,defaultMotions:Se?L:null,activeKey:et,onActive:Le,onInactive:Ne,selectedKeys:je,inlineIndent:Z,subMenuOpenDelay:E,subMenuCloseDelay:N,forceSubMenuRender:$,builtinPlacements:F,triggerSubMenuAction:q,getPopupContainer:k,itemIcon:J,expandIcon:Q,onItemClick:Ze,onOpenChange:ft,popupRender:ne},c.createElement(NN.Provider,{value:Tt},on),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(EN.Provider,{value:Et},ge)))))}),js=u_;js.Item=$c;js.SubMenu=Of;js.ItemGroup=k0;js.Divider=X0;var ad={},$$;function d_(){if($$)return ad;$$=1,Object.defineProperty(ad,"__esModule",{value:!0});var e={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"};return ad.default=e,ad}var f_=d_();const m_=Xt(f_);function wb(){return wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wb.apply(this,arguments)}const p_=(e,t)=>c.createElement(Zt,wb({},e,{ref:t,icon:m_})),g_=c.forwardRef(p_),IN=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),h_=e=>{const{antCls:t,componentCls:o,colorText:r,footerBg:i,headerHeight:l,headerPadding:u,headerColor:f,footerPadding:p,fontSize:m,bodyBg:g,headerBg:b}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:l,padding:u,color:f,lineHeight:re(l),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:p,color:r,fontSize:m,background:i},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},PN=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:i,controlHeightSM:l,marginXXS:u,colorTextLightSolid:f,colorBgContainer:p}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${m}px`,headerColor:i,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+u*2,triggerBg:"#002140",triggerColor:f,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:p,lightTriggerBg:p,lightTriggerColor:i}},jN=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],BN=Qt("Layout",h_,PN,{deprecatedTokens:jN}),b_=e=>{const{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:i,antCls:l,triggerHeight:u,triggerColor:f,triggerBg:p,headerHeight:m,zeroTriggerWidth:g,zeroTriggerHeight:b,borderRadiusLG:v,lightSiderBg:x,lightTriggerColor:C,lightTriggerBg:S,bodyBg:R}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:u},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:u,color:f,lineHeight:re(u),textAlign:"center",background:p,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:b,color:f,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${re(v)} ${re(v)} 0`,cursor:"pointer",transition:`background-color ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${re(v)} 0 0 ${re(v)}`}},"&-light":{background:x,[`${t}-trigger`]:{color:C,background:S},[`${t}-zero-width-trigger`]:{color:C,background:S,border:`${re(e.lineWidth)} ${e.lineType} ${R}`,borderInlineStart:0}}}}},v_=Qt(["Layout","Sider"],b_,PN,{deprecatedTokens:jN}),E$={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},y_=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),zf=c.createContext({}),x_=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),_N=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,trigger:i,children:l,defaultCollapsed:u=!1,theme:f="dark",style:p={},collapsible:m=!1,reverseArrow:g=!1,width:b=200,collapsedWidth:v=80,zeroWidthTriggerStyle:x,breakpoint:C,onCollapse:S,onBreakpoint:R,classNames:E,styles:N,...$}=e,{siderHook:w}=c.useContext(IN),[T,z]=c.useState("collapsed"in e?e.collapsed:u),[A,P]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&z(e.collapsed)},[e.collapsed]);const B=(ne,ue)=>{"collapsed"in e||z(ne),S?.(ne,ue)},D={...e,collapsed:T,defaultCollapsed:u,theme:f,style:p,collapsible:m,reverseArrow:g,width:b,collapsedWidth:v,zeroWidthTriggerStyle:x,breakpoint:C,onCollapse:S,onBreakpoint:R},[I,H]=dn([E],[N],{props:D}),{getPrefixCls:X,direction:Z}=c.useContext(St),U=X("layout-sider",o),[L,q]=v_(U),F=c.useRef(null);F.current=ne=>{P(ne.matches),R?.(ne.matches),T!==ne.matches&&B(ne.matches,"responsive")},c.useEffect(()=>{function ne(he){return F.current?.(he)}let ue;return typeof window?.matchMedia<"u"&&C&&C in E$&&(ue=window.matchMedia(`screen and (max-width: ${E$[C]})`),mn(ue?.addEventListener)&&ue.addEventListener("change",ne),ne(ue)),()=>{mn(ue?.removeEventListener)&&ue.removeEventListener("change",ne)}},[C]),c.useEffect(()=>{const ne=x_("ant-sider-");return w.addSider(ne),()=>w.removeSider(ne)},[]);const J=()=>{B(!T,"clickTrigger")},Q=xn($,["collapsed"]),j=T?v:b,V=y_(j)?`${j}px`:String(j),k=Number.parseFloat(String(v||0))===0?c.createElement("span",{onClick:J,className:W(`${U}-zero-width-trigger`,`${U}-zero-width-trigger-${g?"right":"left"}`),style:x},i||c.createElement(g_,null)):null,G=Z==="rtl"==!g,Y={expanded:G?c.createElement(zC,null):c.createElement(v$,null),collapsed:G?c.createElement(v$,null):c.createElement(zC,null)}[T?"collapsed":"expanded"],ie=i!==null?k||c.createElement("div",{className:`${U}-trigger`,onClick:J,style:{width:V}},i||Y):null,se={...p,flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V},ae=W(U,`${U}-${f}`,{[`${U}-collapsed`]:!!T,[`${U}-has-trigger`]:m&&i!==null&&!k,[`${U}-below`]:!!A,[`${U}-zero-width`]:Number.parseFloat(V)===0},r,I.root,L,q),me=c.useMemo(()=>({siderCollapsed:T}),[T]);return c.createElement(zf.Provider,{value:me},c.createElement("aside",{className:ae,...Q,style:{...H.root,...se},ref:t},c.createElement("div",{className:W(`${U}-children`,I.body),style:H.body},l),m||A&&k?ie:null))});var id={},w$;function S_(){if(w$)return id;w$=1,Object.defineProperty(id,"__esModule",{value:!0});var e={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"};return id.default=e,id}var C_=S_();const $_=Xt(C_);function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Nb.apply(this,arguments)}const E_=(e,t)=>c.createElement(Zt,Nb({},e,{ref:t,icon:$_})),Y0=c.forwardRef(E_),af=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),HN=e=>{const{prefixCls:t,className:o,dashed:r,...i}=e,{getPrefixCls:l}=c.useContext(St),u=l("menu",t),f=W({[`${u}-item-divider-dashed`]:!!r},o);return c.createElement(X0,{className:f,...i})},DN=e=>{const{className:t,children:o,icon:r,title:i,danger:l,extra:u}=e,{prefixCls:f,firstLevel:p,direction:m,disableMenuItemTitleTooltip:g,tooltip:b,inlineCollapsed:v,styles:x,classNames:C}=c.useContext(af),S=A=>{const P=o?.[0],B=c.createElement("span",{className:W(`${f}-title-content`,p?C?.itemContent:C?.subMenu?.itemContent,{[`${f}-title-content-with-extra`]:!!u||u===0}),style:p?x?.itemContent:x?.subMenu?.itemContent},o);return(!r||c.isValidElement(o)&&o.type==="span")&&o&&A&&p&&typeof P=="string"?c.createElement("div",{className:`${f}-inline-collapsed-noicon`},P.charAt(0)):B},{siderCollapsed:R}=c.useContext(zf);let E=i;typeof i>"u"?E=p?o:"":i===!1&&(E="");const N=b===!1?void 0:b,$=N&&N.title!==void 0?N.title:E,w={...N??null,title:$};!R&&!v&&(w.title=null,w.open=!1);const T=Ao(o).length;let z=c.createElement($c,{...xn(e,["title","icon","danger"]),className:W(p?C?.item:C?.subMenu?.item,{[`${f}-item-danger`]:l,[`${f}-item-only-child`]:(r?T+1:T)===1},t),style:{...p?x?.item:x?.subMenu?.item,...e.style},title:typeof i=="string"?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Io(r,A=>({className:W(`${f}-item-icon`,p?C?.itemIcon:C?.subMenu?.itemIcon,A.className),style:{...p?x?.itemIcon:x?.subMenu?.itemIcon,...A.style}})),S(v));if(!g&&b!==!1){const A=N&&N.placement?N.placement:m==="rtl"?"left":"right",P=`${f}-inline-collapsed-tooltip`,B=I=>({...I,root:W(P,I?.root)}),D=mn(N?.classNames)?I=>{const H=N.classNames(I);return B(H)}:B(N?.classNames);z=c.createElement(Gr,{...w,placement:A,classNames:D},z)}return z},N$=c.createContext(null),w_=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:i,lineWidth:l,lineType:u,itemPaddingInline:f}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(l)} ${u} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:f},[`> ${t}-item:hover,
|
|
178
|
-
> ${t}-item-active,
|
|
179
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(p=>`${p} ${o}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},N_=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
180
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${re(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${re(t)})`}}}}),R$=e=>Os(e),M$=(e,t)=>{const{componentCls:o,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:l,groupTitleColor:u,itemBg:f,subMenuItemBg:p,itemSelectedBg:m,activeBarHeight:g,activeBarWidth:b,activeBarBorderWidth:v,motionDurationSlow:x,motionEaseInOut:C,motionEaseOut:S,itemPaddingInline:R,motionDurationMid:E,itemHoverColor:N,lineType:$,colorSplit:w,itemDisabledColor:T,dangerItemColor:z,dangerItemHoverColor:A,dangerItemSelectedColor:P,dangerItemActiveBg:B,dangerItemSelectedBg:D,popupBg:I,itemHoverBg:H,itemActiveBg:X,menuSubMenuBg:Z,horizontalItemSelectedColor:U,horizontalItemSelectedBg:L,horizontalItemBorderRadius:q,horizontalItemHoverBg:F}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:r,background:f,[`&${o}-root:focus-visible`]:{...R$(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:u}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:l},[`${o}-item, ${o}-submenu-title`]:{color:r,[`&:not(${o}-item-disabled):focus-visible`]:{...R$(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${T} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:N}},[`${o}-submenu:not(${o}-submenu-selected)`]:{[`> ${o}-submenu-title:hover`]:{color:N}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:X}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:X}}},[`${o}-item-danger`]:{color:z,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:A}},[`&${o}-item:active`]:{background:B}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:i,[`&${o}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:m,[`&${o}-item-danger`]:{backgroundColor:D}},[`&${o}-submenu > ${o}`]:{backgroundColor:Z},[`&${o}-popup > ${o}`]:{backgroundColor:I},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:I},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:q,"&::after":{position:"absolute",insetInline:R,bottom:0,borderBottom:`${re(g)} solid transparent`,transition:`border-color ${x} ${C}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:g,borderBottomColor:U}},"&-selected":{color:U,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:g,borderBottomColor:U}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${re(v)} ${$} ${w}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:p},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${re(b)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(J=>`${J} ${E} ${S}`).join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(J=>`${J} ${E} ${C}`).join(",")}}}}}},T$=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:r,padding:i,menuArrowSize:l,marginXS:u,itemMarginBlock:f,itemWidth:p,itemPaddingInline:m}=e,g=e.calc(l).add(i).add(u).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:re(o),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:f,width:p},[`> ${t}-item,
|
|
181
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:re(o)},[`${t}-item-group-list ${t}-submenu-title,
|
|
182
|
-
${t}-submenu-title`]:{paddingInlineEnd:g}}},R_=e=>{const{componentCls:t,iconCls:o,itemHeight:r,colorTextLightSolid:i,dropdownWidth:l,controlHeightLG:u,motionEaseOut:f,padding:p,paddingXL:m,itemMarginInline:g,fontSizeLG:b,motionDurationFast:v,motionDurationSlow:x,paddingXS:C,boxShadowSecondary:S,collapsedWidth:R,collapsedIconSize:E}=e,N={height:r,lineHeight:re(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...T$(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...T$(e),boxShadow:S}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${re(e.calc(u).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 ${x}`,`background-color ${x}`,`padding ${v} ${f}`].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`]:N,[`& ${t}-item-group-title`]:{paddingInlineStart:m}},[`${t}-item`]:N}},{[`${t}-inline-collapsed`]:{width:R,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:b,textAlign:"center",width:"100%"}}},[`> ${t}-item,
|
|
183
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
184
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
185
|
-
> ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${re(e.calc(E).div(2).equal())} - ${re(g)})`,textOverflow:"clip",[`
|
|
186
|
-
${t}-submenu-arrow,
|
|
187
|
-
${t}-submenu-expand-icon
|
|
188
|
-
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:E,lineHeight:re(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:p},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...ar,paddingInline:C}}}]},O$=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:l,iconCls:u,iconSize:f,iconMarginInlineEnd:p}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background-color ${o}`,`padding calc(${o} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${u}`]:{minWidth:f,fontSize:f,transition:[`font-size ${r} ${l}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:p,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...hf()},[`&${t}-item-only-child`]:{[`> ${u}, > ${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"}}}},z$=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:r,borderRadius:i,menuArrowSize:l,menuArrowOffset:u}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(f=>`${f} ${o}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:["background-color","transform","top","color"].map(f=>`${f} ${o} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${re(e.calc(u).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${re(u)})`}}}}},M_=e=>{const{antCls:t,componentCls:o,fontSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:u,paddingXS:f,padding:p,colorSplit:m,lineWidth:g,zIndexPopup:b,borderRadiusLG:v,subMenuItemBorderRadius:x,menuArrowSize:C,menuArrowOffset:S,lineType:R,groupTitleLineHeight:E,groupTitleFontSize:N,iconSize:$,iconMarginInlineEnd:w}=e,T=[`> ${t}-typography-ellipsis-single-line`,`> ${o}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[o]:{...bi(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...Dn(e),...bi(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${re(f)} ${re(p)}`,fontSize:N,lineHeight:E,transition:`all ${i}`},[`&-horizontal ${o}-submenu`]:{transition:["border-color","background-color"].map(z=>`${z} ${i} ${u}`).join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${l}`].map(z=>`${z} ${u}`).join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(z=>`${z} ${i} ${u}`).join(",")},[`${o}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${o}-item-label`]:{flex:"auto",minWidth:0,...ar},[T]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${o}-item-icon + ${o}-title-content-with-extra`]:{width:`calc(100% - ${re(e.calc($).add(w??0).equal())})`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:R,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...O$(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${re(e.calc(r).mul(2).equal())} ${re(p)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:v,...O$(e),...z$(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:x},[`${o}-submenu-title::after`]:{transition:`transform ${i} ${u}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...z$(e),[`&-inline-collapsed ${o}-submenu-arrow,
|
|
189
|
-
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${re(S)})`},"&::after":{transform:`rotate(45deg) translateX(${re(e.calc(S).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${re(e.calc(C).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${re(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${re(S)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},T_=e=>{const{colorPrimary:t,colorError:o,colorTextDisabled:r,colorErrorBg:i,colorText:l,colorTextDescription:u,colorBgContainer:f,colorFillAlter:p,colorFillContent:m,lineWidth:g,lineWidthBold:b,controlItemBgActive:v,colorBgTextHover:x,controlHeightLG:C,lineHeight:S,colorBgElevated:R,marginXXS:E,padding:N,fontSize:$,controlHeightSM:w,fontSizeLG:T,colorTextLightSolid:z,colorErrorHover:A}=e,P=e.activeBarWidth??0,B=e.activeBarBorderWidth??g,D=e.itemMarginInline??e.marginXXS,I=new En(z).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:t,horizontalItemHoverColor:t,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:f,itemBg:f,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:g,activeBarBorderWidth:B,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:S,collapsedWidth:C*2,popupBg:R,itemMarginBlock:E,itemPaddingInline:N,horizontalLineHeight:`${C*1.15}px`,iconSize:$,iconMarginInlineEnd:w-$,collapsedIconSize:T,groupTitleFontSize:$,darkItemDisabledColor:new En(z).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:z,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:z,darkDangerItemHoverColor:A,darkDangerItemSelectedColor:z,darkDangerItemActiveBg:o,itemWidth:P?`calc(100% + ${B}px)`:`calc(100% - ${D*2}px)`}},O_=(e,t=e,o=!0)=>Qt("Menu",i=>{const{colorBgElevated:l,controlHeightLG:u,fontSize:f,darkItemColor:p,darkDangerItemColor:m,darkItemBg:g,darkSubMenuItemBg:b,darkItemSelectedColor:v,darkItemSelectedBg:x,darkDangerItemSelectedBg:C,darkItemHoverBg:S,darkGroupTitleColor:R,darkItemHoverColor:E,darkItemDisabledColor:N,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:T,popupBg:z,darkPopupBg:A}=i,P=i.calc(f).div(7).mul(5).equal(),B=Gt(i,{menuArrowSize:P,menuHorizontalHeight:i.calc(u).mul(1.15).equal(),menuArrowOffset:i.calc(P).mul(.25).equal(),menuSubMenuBg:l,calc:i.calc,popupBg:z}),D=Gt(B,{itemColor:p,itemHoverColor:E,groupTitleColor:R,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:g,popupBg:A,subMenuItemBg:b,itemActiveBg:"transparent",itemSelectedBg:x,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:N,dangerItemColor:m,dangerItemHoverColor:$,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:C,menuSubMenuBg:b,horizontalItemSelectedColor:v,horizontalItemSelectedBg:x});return[M_(B),w_(B),R_(B),M$(B,"light"),M$(D,"dark"),N_(B),JA(B),ws(B,"slide-up"),ws(B,"slide-down"),A0(B,"zoom-big")]},T_,{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:o,unitless:{groupTitleLineHeight:!0}})(e,t),LN=e=>{const{popupClassName:t,icon:o,title:r,theme:i}=e,l=c.useContext(af),{prefixCls:u,inlineCollapsed:f,theme:p,classNames:m,styles:g}=l,b=Ps();let v;if(!o)v=f&&!b.length&&r&&typeof r=="string"?c.createElement("div",{className:`${u}-inline-collapsed-noicon`},r.charAt(0)):c.createElement("span",{className:`${u}-title-content`},r);else{const S=c.isValidElement(r)&&r.type==="span";v=c.createElement(c.Fragment,null,Io(o,R=>({className:W(R.className,`${u}-item-icon`,m?.itemIcon),style:{...R.style,...g?.itemIcon}})),S?r:c.createElement("span",{className:`${u}-title-content`},r))}const x=c.useMemo(()=>({...l,firstLevel:!1}),[l]),[C]=vc("Menu");return c.createElement(af.Provider,{value:x},c.createElement(Of,{...xn(e,["icon"]),title:v,classNames:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},styles:{list:g?.subMenu?.list,listTitle:g?.subMenu?.itemTitle},popupClassName:W(u,t,m?.popup?.root,`${u}-${i||p}`),popupStyle:{zIndex:C,...e.popupStyle,...g?.popup?.root}}))};function Mg(e){return e===null||e===!1}const z_={item:DN,submenu:LN,divider:HN},A_=c.forwardRef((e,t)=>{const o=c.useContext(N$),r=o||{},{prefixCls:i,className:l,style:u,theme:f="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:m,tooltip:g,inlineCollapsed:b,siderCollapsed:v,rootClassName:x,mode:C,selectable:S,onClick:R,overflowedIndicatorPopupClassName:E,classNames:N,styles:$,...w}=e,{menu:T}=c.useContext(St),{getPrefixCls:z,getPopupContainer:A,direction:P,className:B,style:D,classNames:I,styles:H}=Kt("menu"),X=z(),Z=xn(w,["collapsedWidth"]);r.validator?.({mode:C});const U=pt((...ne)=>{R?.(...ne),r.onClick?.()}),L=r.mode||C,q=S??r.selectable,F=b??v,J={...e,mode:L,inlineCollapsed:F,selectable:q,theme:f},Q=pn(D),j=pn(u),[V,k]=dn([I,N],[H,Q,$,j],{props:J},{popup:{_default:"root"},subMenu:{_default:"item"}}),G={horizontal:{motionName:`${X}-slide-up`},inline:HA(X),other:{motionName:`${X}-zoom-big`}},K=z("menu",i||r.prefixCls),te=vr(K),[Y,ie]=O_(K,te,!o),se=W(`${K}-${f}`,B,l),ae=c.useMemo(()=>{if(mn(p)||Mg(p))return p||null;if(mn(r.expandIcon)||Mg(r.expandIcon))return r.expandIcon||null;if(mn(T?.expandIcon)||Mg(T?.expandIcon))return T?.expandIcon||null;const ne=p??r?.expandIcon??T?.expandIcon;return Io(ne,{className:W(`${K}-submenu-expand-icon`,c.isValidElement(ne)?ne.props?.className:void 0)})},[p,r?.expandIcon,T?.expandIcon,K]),me=c.useMemo(()=>({prefixCls:K,inlineCollapsed:F||!1,direction:P,firstLevel:!0,theme:f,mode:L,disableMenuItemTitleTooltip:m,tooltip:g,classNames:V,styles:k}),[K,F,P,m,f,L,V,k,g]);return c.createElement(N$.Provider,{value:null},c.createElement(af.Provider,{value:me},c.createElement(js,{getPopupContainer:A,overflowedIndicator:c.createElement(Y0,null),overflowedIndicatorPopupClassName:W(K,`${K}-${f}`,E),classNames:{list:V.list,listTitle:V.itemTitle},styles:{list:k.list,listTitle:k.itemTitle},mode:L,selectable:q,onClick:U,...Z,inlineCollapsed:F,style:k.root,className:se,prefixCls:K,direction:P,defaultMotions:G,expandIcon:ae,ref:t,rootClassName:W(x,Y,r.rootClassName,ie,te,V.root),_internalComponents:z_})))}),Ec=c.forwardRef((e,t)=>{const o=c.useRef(null),r=c.useContext(zf);return c.useImperativeHandle(t,()=>({menu:o.current,focus:i=>{o.current?.focus(i)}})),c.createElement(A_,{ref:o,...e,...r})});Ec.Item=DN;Ec.SubMenu=LN;Ec.Divider=HN;Ec.ItemGroup=k0;function wc(e){return Gt(e,{inputAffixPadding:e.paddingXXS})}const Nc=e=>{const{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:i,controlHeightSM:l,controlHeightLG:u,fontSizeLG:f,lineHeightLG:p,paddingSM:m,controlPaddingHorizontalSM:g,controlPaddingHorizontal:b,colorFillAlter:v,colorPrimaryHover:x,colorPrimary:C,controlOutlineWidth:S,controlOutline:R,colorErrorOutline:E,colorWarningOutline:N,colorBgContainer:$,inputFontSize:w,inputFontSizeLG:T,inputFontSizeSM:z}=e,A=w||o,P=z||A,B=T||f,D=Math.round((t-A*r)/2*10)/10-i,I=Math.round((l-P*r)/2*10)/10-i,H=Math.ceil((u-B*p)/2*10)/10-i;return{paddingBlock:Math.max(D,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(H,0),paddingInline:m-i,paddingInlineSM:g-i,paddingInlineLG:b-i,addonBg:v,activeBorderColor:C,hoverBorderColor:x,activeShadow:`0 0 0 ${S}px ${R}`,errorActiveShadow:`0 0 0 ${S}px ${E}`,warningActiveShadow:`0 0 0 ${S}px ${N}`,hoverBg:$,activeBg:$,inputFontSize:A,inputFontSizeLG:B,inputFontSizeSM:P}},I_=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),K0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...I_(Gt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),VN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),A$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...VN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),P_=(e,t)=>({"&-outlined":{...VN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...K0(e)},...A$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...A$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),I$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),j_=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...I$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...I$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...K0(e)}}}}),FN="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",qN=(e,t)=>({outline:`${re(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:re(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),P$=(e,t)=>({"&, & input, & textarea":{color:t.color},[FN]:qN(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),B_=(e,t)=>{const{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[FN]:qN(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:P$(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:P$(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},UN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),j$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...UN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),__=(e,t)=>({"&-filled":{...UN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...K0(e)},...j$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...j$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),B$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),H_=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...B$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...B$(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),WN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${re(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}}),_$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...WN(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`}}),D_=(e,t)=>({"&-underlined":{...WN(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"},..._$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),..._$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),L_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),GN=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${re(t)} ${re(i)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},XN=e=>({padding:`${re(e.paddingBlockSM)} ${re(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),kN=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${re(e.paddingBlock)} ${re(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...L_(e.colorTextPlaceholder),"&-lg":{...GN(e),...t.largeStyle},"&-sm":{...XN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),V_=e=>{const{componentCls:t,antCls:o}=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`]:{...GN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...XN(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single`]:{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 ${re(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${re(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${re(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${re(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${re(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-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}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select`]:{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,[`${o}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...bi(),[`${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},[`
|
|
190
|
-
& > ${t}-affix-wrapper,
|
|
191
|
-
& > ${t}-number-affix-wrapper,
|
|
192
|
-
& > ${o}-picker-range
|
|
193
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${o}-select,
|
|
194
|
-
& > ${o}-select-auto-complete ${t},
|
|
195
|
-
& > ${o}-cascader-picker ${t},
|
|
196
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
197
|
-
& > ${o}-select:first-child,
|
|
198
|
-
& > ${o}-select-auto-complete:first-child ${t},
|
|
199
|
-
& > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
200
|
-
& > ${o}-select:last-child,
|
|
201
|
-
& > ${o}-cascader-picker:last-child ${t},
|
|
202
|
-
& > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},F_=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:r,calc:i}=e,u=i(o).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Dn(e),...kN(e),...P_(e),...__(e),...B_(e),...D_(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:u,paddingBottom:u}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},q_=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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Os(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${re(e.inputAffixPadding)}`}}}},U_=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:i,colorIcon:l,colorIconHover:u}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:{...kN(e),display:"inline-flex","&-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:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:l,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:u}}},...q_(e)},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},W_=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Dn(e),...V_(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...j_(e),...H_(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}}}}}},G_=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},YN=Qt(["Input","Shared"],e=>{const t=Gt(e,wc(e));return[F_(t),U_(t)]},Nc,{resetFont:!1}),KN=Qt(["Input","Component"],e=>{const t=Gt(e,wc(e));return[W_(t),G_(t),wf(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Nc,{resetFont:!1});var sd={},H$;function X_(){if(H$)return sd;H$=1,Object.defineProperty(sd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};return sd.default=e,sd}var k_=X_();const Y_=Xt(k_);function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Rb.apply(this,arguments)}const K_=(e,t)=>c.createElement(Zt,Rb({},e,{ref:t,icon:Y_})),Q_=c.forwardRef(K_),Q0=c.createContext(null),Z_=e=>{const{activeTabOffset:t,horizontal:o,rtl:r,indicator:i={}}=e,{size:l,align:u="center"}=i,[f,p]=c.useState(),m=c.useRef(),g=ce.useCallback(v=>typeof l=="function"?l(v):typeof l=="number"?l:v,[l]);function b(){Lt.cancel(m.current)}return c.useEffect(()=>{const v={};if(t)if(o){v.width=g(t.width);const x=r?"right":"left";u==="start"&&(v[x]=t[x]),u==="center"&&(v[x]=t[x]+t.width/2,v.transform=r?"translateX(50%)":"translateX(-50%)"),u==="end"&&(v[x]=t[x]+t.width,v.transform="translateX(-100%)")}else v.height=g(t.height),u==="start"&&(v.top=t.top),u==="center"&&(v.top=t.top+t.height/2,v.transform="translateY(-50%)"),u==="end"&&(v.top=t.top+t.height,v.transform="translateY(-100%)");return b(),m.current=Lt(()=>{f&&v&&Object.keys(v).every(C=>{const S=v[C],R=f[C];return typeof S=="number"&&typeof R=="number"?Math.round(S)===Math.round(R):S===R})||p(v)}),b},[JSON.stringify(t),o,r,u,g]),{style:f}},D$={width:0,height:0,left:0,top:0};function J_(e,t,o){return c.useMemo(()=>{const r=new Map,i=t.get(e[0]?.key)||D$,l=i.left+i.width;for(let u=0;u<e.length;u+=1){const{key:f}=e[u];let p=t.get(f);p||(p=t.get(e[u-1]?.key)||D$);const m=r.get(f)||{...p};m.right=l-m.left-m.width,r.set(f,m)}return r},[e.map(r=>r.key).join("_"),t,o])}function L$(e,t){const o=c.useRef(e),[,r]=c.useState({});function i(l){const u=typeof l=="function"?l(o.current):l;u!==o.current&&t(u,o.current),o.current=u,r({})}return[o.current,i]}const eH=.1,V$=.01,Vd=20,F$=.995**Vd;function tH(e,t){const[o,r]=c.useState(),[i,l]=c.useState(0),[u,f]=c.useState(0),[p,m]=c.useState(),g=c.useRef();function b(E){const{screenX:N,screenY:$}=E.touches[0];r({x:N,y:$}),window.clearInterval(g.current)}function v(E){if(!o)return;const{screenX:N,screenY:$}=E.touches[0];r({x:N,y:$});const w=N-o.x,T=$-o.y;t(w,T);const z=Date.now();l(z),f(z-i),m({x:w,y:T})}function x(){if(o&&(r(null),m(null),p)){const E=p.x/u,N=p.y/u,$=Math.abs(E),w=Math.abs(N);if(Math.max($,w)<eH)return;let T=E,z=N;g.current=window.setInterval(()=>{if(Math.abs(T)<V$&&Math.abs(z)<V$){window.clearInterval(g.current);return}T*=F$,z*=F$,t(T*Vd,z*Vd)},Vd)}}const C=c.useRef();function S(E){const{deltaX:N,deltaY:$}=E;let w=0;const T=Math.abs(N),z=Math.abs($);T===z?w=C.current==="x"?N:$:T>z?(w=N,C.current="x"):(w=$,C.current="y"),t(-w,-w)&&E.preventDefault()}const R=c.useRef(null);R.current={onTouchStart:b,onTouchMove:v,onTouchEnd:x,onWheel:S},c.useEffect(()=>{function E(T){R.current.onTouchStart(T)}function N(T){R.current.onTouchMove(T)}function $(T){R.current.onTouchEnd(T)}function w(T){R.current.onWheel(T)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",E,{passive:!0}),e.current.addEventListener("wheel",w,{passive:!1}),()=>{document.removeEventListener("touchmove",N),document.removeEventListener("touchend",$)}},[])}function QN(e){const[t,o]=c.useState(0),r=c.useRef(0),i=c.useRef();return i.current=e,kT(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,o(r.current))}}function nH(e){const t=c.useRef([]),[,o]=c.useState({}),r=c.useRef(typeof e=="function"?e():e),i=QN(()=>{let u=r.current;t.current.forEach(f=>{u=f(u)}),t.current=[],r.current=u,o({})});function l(u){t.current.push(u),i()}return[r.current,l]}const q$={width:0,height:0,left:0,top:0,right:0};function oH(e,t,o,r,i,l,{tabs:u,tabPosition:f,rtl:p}){let m,g,b;return["top","bottom"].includes(f)?(m="width",g=p?"right":"left",b=Math.abs(o)):(m="height",g="top",b=-o),c.useMemo(()=>{if(!u.length)return[0,0];const v=u.length;let x=v;for(let S=0;S<v;S+=1){const R=e.get(u[S].key)||q$;if(Math.floor(R[g]+R[m])>Math.floor(b+t)){x=S-1;break}}let C=0;for(let S=v-1;S>=0;S-=1)if((e.get(u[S].key)||q$)[g]<b){C=S+1;break}return C>x?[0,-1]:[C,x]},[e,t,r,i,l,b,f,u.map(v=>v.key).join("_"),p])}function U$(e){let t;return e instanceof Map?(t={},e.forEach((o,r)=>{t[r]=o})):t=e,JSON.stringify(t)}const rH="TABS_DQ";function ZN(e){return String(e).replace(/"/g,rH)}function Z0(e,t,o,r){return!(!o||r||e===!1||e===void 0&&(t===!1||t===null))}const JN=c.forwardRef((e,t)=>{const{prefixCls:o,editable:r,locale:i,style:l}=e;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:`${o}-nav-add`,style:l,"aria-label":i?.addAriaLabel||"Add tab",onClick:u=>{r.onEdit("add",{event:u})}},r.addIcon||"+")}),W$=c.forwardRef((e,t)=>{const{position:o,prefixCls:r,extra:i}=e;if(!i)return null;let l,u={};return typeof i=="object"&&!c.isValidElement(i)?u=i:u.right=i,o==="right"&&(l=u.right),o==="left"&&(l=u.left),l?c.createElement("div",{className:`${r}-extra-content`,ref:t},l):null});function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Mb.apply(this,arguments)}const aH=c.forwardRef((e,t)=>{const{prefixCls:o,id:r,tabs:i,locale:l,mobile:u,more:f={},style:p,className:m,editable:g,tabBarGutter:b,rtl:v,removeAriaLabel:x,onTabClick:C,getPopupContainer:S,popupClassName:R,popupStyle:E,classNames:N,styles:$}=e,[w,T]=c.useState(!1),[z,A]=c.useState(null),{icon:P="More"}=f,B=`${r}-more-popup`,D=`${o}-dropdown`,I=z!==null?`${B}-${z}`:null,H=l?.dropdownAriaLabel;function X(Q,j){Q.preventDefault(),Q.stopPropagation(),g.onEdit("remove",{key:j,event:Q})}const Z=c.createElement(js,{onClick:({key:Q,domEvent:j})=>{C(Q,j),T(!1)},prefixCls:`${D}-menu`,id:B,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[z],"aria-label":H!==void 0?H:"expanded dropdown"},i.map(Q=>{const{closable:j,disabled:V,closeIcon:k,key:G,label:K}=Q,te=Z0(j,k,g,V);return c.createElement($c,{key:G,id:`${B}-${G}`,role:"option","aria-controls":r&&`${r}-panel-${G}`,disabled:V},c.createElement("span",null,K),te&&c.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:W(`${D}-menu-item-remove`,N?.remove),style:$?.remove,onClick:Y=>{Y.stopPropagation(),X(Y,G)}},k||g.removeIcon||"×"))}));function U(Q){const j=i.filter(G=>!G.disabled);let V=j.findIndex(G=>G.key===z)||0;const k=j.length;for(let G=0;G<k;G+=1){V=(V+Q+k)%k;const K=j[V];if(!K.disabled){A(K.key);return}}}function L(Q){const{which:j}=Q;if(!w){[at.DOWN,at.SPACE,at.ENTER].includes(j)&&(T(!0),Q.preventDefault());return}switch(j){case at.UP:U(-1),Q.preventDefault();break;case at.DOWN:U(1),Q.preventDefault();break;case at.ESC:T(!1);break;case at.SPACE:case at.ENTER:z!==null&&C(z,Q);break}}c.useEffect(()=>{const Q=document.getElementById(I);Q?.scrollIntoView&&Q.scrollIntoView(!1)},[I,z]),c.useEffect(()=>{w||A(null)},[w]);const q={marginInlineStart:b};i.length||(q.visibility="hidden",q.order=1);const F=W(R,{[`${D}-rtl`]:v}),J=u?null:c.createElement(qB,Mb({prefixCls:D,overlay:Z,visible:i.length?w:!1,onVisibleChange:T,overlayClassName:F,overlayStyle:E,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},f),c.createElement("button",{type:"button",className:`${o}-nav-more`,style:q,"aria-haspopup":"listbox","aria-controls":B,id:`${r}-more`,"aria-expanded":w,onKeyDown:L},P));return c.createElement("div",{className:W(`${o}-nav-operations`,m),style:p,ref:t},J,c.createElement(JN,{prefixCls:o,locale:l,editable:g}))}),iH=c.memo(aH,(e,t)=>t.tabMoving),sH=e=>{const{prefixCls:t,id:o,active:r,focus:i,tab:{key:l,label:u,disabled:f,closeIcon:p,icon:m},closable:g,renderWrapper:b,removeAriaLabel:v,editable:x,onClick:C,onFocus:S,onBlur:R,onKeyDown:E,onMouseDown:N,onMouseUp:$,styles:w,classNames:T,tabCount:z,currentPosition:A}=e,P=`${t}-tab`,B=Z0(g,p,x,f);function D(U){f||C(U)}function I(U){U.preventDefault(),U.stopPropagation(),x.onEdit("remove",{key:l,event:U})}const H=c.useMemo(()=>m&&typeof u=="string"?c.createElement("span",null,u):u,[u,m]),X=c.useRef(null);c.useEffect(()=>{i&&X.current&&X.current.focus()},[i]);const Z=c.createElement("div",{key:l,"data-node-key":ZN(l),className:W(P,T?.item,{[`${P}-with-remove`]:B,[`${P}-active`]:r,[`${P}-disabled`]:f,[`${P}-focus`]:i}),style:w?.item,onClick:D},c.createElement("div",{ref:X,role:"tab","aria-selected":r,id:o&&`${o}-tab-${l}`,className:`${P}-btn`,"aria-controls":o&&`${o}-panel-${l}`,"aria-disabled":f,tabIndex:f?null:r?0:-1,onClick:U=>{U.stopPropagation(),D(U)},onKeyDown:E,onMouseDown:N,onMouseUp:$,onFocus:S,onBlur:R},i&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${A} of ${z}`),m&&c.createElement("span",{className:`${P}-icon`},m),u&&H),B&&c.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:r?0:-1,className:W(`${P}-remove`,T?.remove),style:w?.remove,onClick:U=>{U.stopPropagation(),I(U)}},p||x.removeIcon||"×"));return b?b(Z):Z};function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Tb.apply(this,arguments)}const lH=(e,t)=>{const{offsetWidth:o,offsetHeight:r,offsetTop:i,offsetLeft:l}=e,{width:u,height:f,left:p,top:m}=e.getBoundingClientRect();return Math.abs(u-o)<1?[u,f,p-t.left,m-t.top]:[o,r,l,i]},ds=e=>{const{offsetWidth:t=0,offsetHeight:o=0}=e.current||{};if(e.current){const{width:r,height:i}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,i]}return[t,o]},ld=(e,t)=>e[t?0:1],G$=c.forwardRef((e,t)=>{const{className:o,style:r,id:i,animated:l,activeKey:u,rtl:f,extra:p,editable:m,locale:g,tabPosition:b,tabBarGutter:v,children:x,onTabClick:C,onTabScroll:S,indicator:R,classNames:E,styles:N}=e,{prefixCls:$,tabs:w}=c.useContext(Q0),T=c.useRef(null),z=c.useRef(null),A=c.useRef(null),P=c.useRef(null),B=c.useRef(null),D=c.useRef(null),I=c.useRef(null),H=b==="top"||b==="bottom",[X,Z]=L$(0,(Ne,Ae)=>{H&&S&&S({direction:Ne>Ae?"left":"right"})}),[U,L]=L$(0,(Ne,Ae)=>{!H&&S&&S({direction:Ne>Ae?"top":"bottom"})}),[q,F]=c.useState([0,0]),[J,Q]=c.useState([0,0]),[j,V]=c.useState([0,0]),[k,G]=c.useState([0,0]),[K,te]=nH(new Map),Y=J_(w,K,J[0]),ie=ld(q,H),se=ld(J,H),ae=ld(j,H),me=ld(k,H),ne=Math.floor(ie)<Math.floor(se+ae),ue=ne?ie-me:ie-ae,he=`${$}-nav-operations-hidden`;let ge=0,Se=0;H&&f?(ge=0,Se=Math.max(0,se-ue)):(ge=Math.min(0,ue-se),Se=0);function $e(Ne){return Ne<ge?ge:Ne>Se?Se:Ne}const ye=c.useRef(null),[xe,Ce]=c.useState();function we(){Ce(Date.now())}function Be(){ye.current&&clearTimeout(ye.current)}tH(P,(Ne,Ae)=>{function ve(je,Ve){je(Ze=>$e(Ze+Ve))}return ne?(H?ve(Z,Ne):ve(L,Ae),Be(),we(),!0):!1}),c.useEffect(()=>(Be(),xe&&(ye.current=setTimeout(()=>{Ce(0)},100)),Be),[xe]);const[Te,He]=oH(Y,ue,H?X:U,se,ae,me,{...e,tabs:w}),nt=pt((Ne=u)=>{const Ae=Y.get(Ne)||{width:0,height:0,left:0,right:0,top:0};if(H){let ve=X;f?Ae.right<X?ve=Ae.right:Ae.right+Ae.width>X+ue&&(ve=Ae.right+Ae.width-ue):Ae.left<-X?ve=-Ae.left:Ae.left+Ae.width>-X+ue&&(ve=-(Ae.left+Ae.width-ue)),L(0),Z($e(ve))}else{let ve=U;Ae.top<-U?ve=-Ae.top:Ae.top+Ae.height>-U+ue&&(ve=-(Ae.top+Ae.height-ue)),Z(0),L($e(ve))}}),[Ke,Fe]=c.useState(),[qe,Je]=c.useState(!1),Ue=w.filter(Ne=>!Ne.disabled).map(Ne=>Ne.key),Pe=Ne=>{const Ae=Ue.indexOf(Ke||u),ve=Ue.length,je=(Ae+Ne+ve)%ve,Ve=Ue[je];Fe(Ve)},_e=(Ne,Ae)=>{const ve=Ue.indexOf(Ne),je=w.find(Ze=>Ze.key===Ne);Z0(je?.closable,je?.closeIcon,m,je?.disabled)&&(Ae.preventDefault(),Ae.stopPropagation(),m.onEdit("remove",{key:Ne,event:Ae}),ve===Ue.length-1?Pe(-1):Pe(1))},Xe=(Ne,Ae)=>{Je(!0),Ae.button===1&&_e(Ne,Ae)},De=Ne=>{const{code:Ae}=Ne,ve=f&&H,je=Ue[0],Ve=Ue[Ue.length-1];switch(Ae){case"ArrowLeft":{H&&Pe(ve?1:-1);break}case"ArrowRight":{H&&Pe(ve?-1:1);break}case"ArrowUp":{Ne.preventDefault(),H||Pe(-1);break}case"ArrowDown":{Ne.preventDefault(),H||Pe(1);break}case"Home":{Ne.preventDefault(),Fe(je);break}case"End":{Ne.preventDefault(),Fe(Ve);break}case"Enter":case"Space":{Ne.preventDefault(),C(Ke??u,Ne);break}case"Backspace":case"Delete":{_e(Ke,Ne);break}}},Oe={};H?Oe.marginInlineStart=v:Oe.marginTop=v;const Qe=w.map((Ne,Ae)=>{const{key:ve}=Ne;return c.createElement(sH,{id:i,prefixCls:$,key:ve,tab:Ne,classNames:{item:E?.item,remove:E?.remove},styles:{item:Ae===0?N?.item:{...Oe,...N?.item},remove:N?.remove},closable:Ne.closable,editable:m,active:ve===u,focus:ve===Ke,renderWrapper:x,removeAriaLabel:g?.removeAriaLabel,tabCount:Ue.length,currentPosition:Ae+1,onClick:je=>{C(ve,je)},onKeyDown:De,onFocus:()=>{qe||Fe(ve),nt(ve),we(),P.current&&(f||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{Fe(void 0)},onMouseDown:je=>Xe(ve,je),onMouseUp:()=>{Je(!1)}})}),ze=()=>te(()=>{const Ne=new Map,Ae=B.current?.getBoundingClientRect();return w.forEach(({key:ve})=>{const je=B.current?.querySelector(`[data-node-key="${ZN(ve)}"]`);if(je){const[Ve,Ze,ft,Jt]=lH(je,Ae);Ne.set(ve,{width:Ve,height:Ze,left:ft,top:Jt})}}),Ne});c.useEffect(()=>{ze()},[w.map(Ne=>Ne.key).join("_")]);const Ie=QN(()=>{const Ne=ds(T),Ae=ds(z),ve=ds(A);F([Ne[0]-Ae[0]-ve[0],Ne[1]-Ae[1]-ve[1]]);const je=ds(I);V(je);const Ve=ds(D);G(Ve);const Ze=ds(B);Q([Ze[0]-je[0],Ze[1]-je[1]]),ze()}),We=w.slice(0,Te),Ye=w.slice(He+1),rt=[...We,...Ye],ct=Y.get(u),{style:it}=Z_({activeTabOffset:ct,horizontal:H,indicator:R,rtl:f});c.useEffect(()=>{nt()},[u,ge,Se,U$(ct),U$(Y),H]),c.useEffect(()=>{Ie()},[f]);const yt=!!rt.length,Et=`${$}-nav-wrap`;let Tt,et,Ot,Le;return H?f?(et=X>0,Tt=X!==Se):(Tt=X<0,et=X!==ge):(Ot=U<0,Le=U!==ge),c.createElement(gr,{onResize:Ie},c.createElement("div",{ref:kr(t,T),role:"tablist","aria-orientation":H?"horizontal":"vertical",className:W(`${$}-nav`,o,E?.header),style:{...N?.header,...r},onKeyDown:()=>{we()}},c.createElement(W$,{ref:z,position:"left",extra:p,prefixCls:$}),c.createElement(gr,{onResize:Ie},c.createElement("div",{className:W(Et,{[`${Et}-ping-left`]:Tt,[`${Et}-ping-right`]:et,[`${Et}-ping-top`]:Ot,[`${Et}-ping-bottom`]:Le}),ref:P},c.createElement(gr,{onResize:Ie},c.createElement("div",{ref:B,className:`${$}-nav-list`,style:{transform:`translate(${X}px, ${U}px)`,transition:xe?"none":void 0}},Qe,c.createElement(JN,{ref:I,prefixCls:$,locale:g,editable:m,style:{...Qe.length===0?void 0:Oe,visibility:yt?"hidden":null}}),c.createElement("div",{className:W(`${$}-ink-bar`,E?.indicator,{[`${$}-ink-bar-animated`]:l.inkBar}),style:{...it,...N?.indicator}}))))),c.createElement(iH,Tb({},e,{removeAriaLabel:g?.removeAriaLabel,ref:D,prefixCls:$,tabs:rt,className:!yt&&he,popupStyle:N?.popup,tabMoving:!!xe})),c.createElement(W$,{ref:A,position:"right",extra:p,prefixCls:$})))}),cH=({renderTabBar:e,...t})=>e?e(t,G$):c.createElement(G$,t),uH=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,id:l,active:u,tabKey:f,children:p}=e,m=c.Children.count(p)>0;return c.createElement("div",{id:l&&`${l}-panel-${f}`,role:"tabpanel",tabIndex:u&&m?0:-1,"aria-labelledby":l&&`${l}-tab-${f}`,"aria-hidden":!u,style:i,className:W(o,u&&`${o}-active`,r),ref:t},p)});function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},sf.apply(this,arguments)}const dH=e=>{const{id:t,activeKey:o,animated:r,tabPosition:i,destroyOnHidden:l,bodyStyle:u,bodyClassName:f,contentStyle:p,contentClassName:m}=e,{prefixCls:g,tabs:b}=c.useContext(Q0),v=r.tabPane,x=`${g}-body`,C=`${g}-content`;return c.createElement("div",{className:W(`${x}-holder`)},c.createElement("div",{className:W(x,`${x}-${i}`,{[`${x}-animated`]:v},f),style:u},b.map(S=>{const{key:R,forceRender:E,style:N,className:$,destroyOnHidden:w,...T}=S,z=R===o;return c.createElement(no,sf({key:R,visible:z,forceRender:E,removeOnLeave:!!(l??w),leavedClassName:`${C}-hidden`},r.tabPaneMotion),({style:A,className:P},B)=>c.createElement(uH,sf({},T,{prefixCls:C,id:t,tabKey:R,animated:v,active:z,style:{...p,...N,...A},className:W(m,$,P),ref:B})))})))};function fH(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Yl.apply(this,arguments)}let X$=0;const mH=c.forwardRef((e,t)=>{const{id:o,prefixCls:r="rc-tabs",className:i,items:l,direction:u,activeKey:f,defaultActiveKey:p,editable:m,animated:g,tabPosition:b="top",tabBarGutter:v,tabBarStyle:x,tabBarExtraContent:C,locale:S,more:R,destroyOnHidden:E,renderTabBar:N,onChange:$,onTabClick:w,onTabScroll:T,getPopupContainer:z,popupClassName:A,indicator:P,classNames:B,styles:D,...I}=e,H=c.useMemo(()=>(l||[]).filter(Y=>Y&&typeof Y=="object"&&"key"in Y),[l]),X=u==="rtl",Z=fH(g),[U,L]=c.useState(!1);c.useEffect(()=>{L($O())},[]);const[q,F]=To(p??H[0]?.key,f),[J,Q]=c.useState(()=>H.findIndex(Y=>Y.key===q));c.useEffect(()=>{let Y=H.findIndex(ie=>ie.key===q);Y===-1&&(Y=Math.max(0,Math.min(J,H.length-1)),F(H[Y]?.key)),Q(Y)},[H.map(Y=>Y.key).join("_"),q,J]);const[j,V]=To(null,o);c.useEffect(()=>{o||(V(`rc-tabs-${X$}`),X$+=1)},[]);function k(Y,ie){w?.(Y,ie);const se=Y!==q;F(Y),se&&$?.(Y)}const G={id:j,activeKey:q,animated:Z,tabPosition:b,rtl:X,mobile:U},K={...G,editable:m,locale:S,more:R,tabBarGutter:v,onTabClick:k,onTabScroll:T,extra:C,style:x,getPopupContainer:z,popupClassName:W(A,B?.popup),indicator:P,styles:D,classNames:B},te=c.useMemo(()=>({tabs:H,prefixCls:r}),[H,r]);return c.createElement(Q0.Provider,{value:te},c.createElement("div",Yl({ref:t,id:o,className:W(r,`${r}-${b}`,{[`${r}-mobile`]:U,[`${r}-editable`]:m,[`${r}-rtl`]:X},i)},I),c.createElement(cH,Yl({},K,{renderTabBar:N})),c.createElement(dH,Yl({destroyOnHidden:E},G,{bodyStyle:D?.body,bodyClassName:B?.body,contentStyle:D?.content,contentClassName:B?.content,animated:Z}))))}),pH={motionAppear:!1,motionEnter:!0,motionLeave:!0};function gH(e,t={inkBar:!0,tabPane:!1}){let o;return t===!1?o={inkBar:!1,tabPane:!1}:t===!0?o={inkBar:!0,tabPane:!0}:o={inkBar:!0,...Wt(t)?t:{}},o.tabPane&&(o.tabPaneMotion={...pH,motionName:Ur(e,"switch")}),o}function hH(e){return e.filter(t=>t)}function bH(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const o=Ao(t).map(r=>{if(c.isValidElement(r)){const{key:i,props:l}=r,{tab:u,...f}=l||{};return{key:String(i),...f,label:u}}return null});return hH(o)}const vH=e=>{const{componentCls:t,motionDurationSlow:o}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[ws(e,"slide-up"),ws(e,"slide-down")]]},yH=e=>{const{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:u}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:u,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Os(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:re(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(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 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},xH=e=>{const{antCls:t,componentCls:o,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${o}-dropdown`]:{...Dn(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomLeft,
|
|
203
|
-
&${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomLeft,
|
|
204
|
-
&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottom,
|
|
205
|
-
&${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottom,
|
|
206
|
-
&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomRight,
|
|
207
|
-
&${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomRight`]:{animationName:M0},[`&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topLeft,
|
|
208
|
-
&${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topLeft,
|
|
209
|
-
&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-top,
|
|
210
|
-
&${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-top,
|
|
211
|
-
&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topRight,
|
|
212
|
-
&${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topRight`]:{animationName:O0},[`&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomLeft,
|
|
213
|
-
&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottom,
|
|
214
|
-
&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomRight`]:{animationName:T0},[`&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topLeft,
|
|
215
|
-
&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-top,
|
|
216
|
-
&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topRight`]:{animationName:z0},[`${o}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${re(i)} 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":{...ar,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},SH=e=>{const{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:u,motionDurationSlow:f,calc:p}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(m=>`${m} ${f}`).join(", ")}},[`${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,
|
|
217
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:p(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:u},[`${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","top"].map(m=>`${m} ${f}`).join(", ")}},[`${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}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:re(p(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{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}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:p(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},CH=e=>{const{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:l,horizontalItemPaddingSM:u,horizontalItemPaddingLG:f}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:f,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadius)} ${re(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${re(e.borderRadius)} ${re(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadius)} ${re(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadius)} 0 0 ${re(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},$H=e=>{const{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:u,itemSelectedColor:f,itemColor:p}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:u,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:p,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{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},...Fr(e)},"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:f},[`&${m}-focus ${m}-btn:focus-visible`]:Os(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},EH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:l(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},wH=e=>{const{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:u,colorBorderSecondary:f}=e;return{[t]:{...Dn(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:o,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`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${re(e.lineWidth)} ${e.lineType} ${f}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:u},...Fr(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...$H(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...Fr(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"}}}}}},NH=e=>{const{cardHeight:t,cardHeightSM:o,cardHeightLG:r,controlHeight:i,controlHeightLG:l}=e,u=t||l,f=o||i,p=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:u,cardHeightSM:f,cardHeightLG:p,cardPadding:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(f-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(p-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}},RH=Qt("Tabs",e=>{const t=Gt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${re(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${re(e.horizontalItemGutter)}`});return[CH(t),EH(t),SH(t),xH(t),yH(t),wH(t),vH(t)]},NH),MH=()=>null,TH=c.forwardRef((e,t)=>{const{type:o,className:r,rootClassName:i,size:l,onEdit:u,hideAdd:f,centered:p,addIcon:m,removeIcon:g,moreIcon:b,more:v,popupClassName:x,children:C,items:S,animated:R,style:E,indicatorSize:N,indicator:$,classNames:w,styles:T,destroyInactiveTabPane:z,destroyOnHidden:A,tabPlacement:P,tabPosition:B,...D}=e,{prefixCls:I}=D,{getPrefixCls:H,direction:X,getPopupContainer:Z,className:U,style:L,classNames:q,styles:F}=Kt("tabs"),{tabs:J}=c.useContext(St),Q=H("tabs",I),j=vr(Q),[V,k]=RH(Q,j),G=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:G.current}));let K;o==="editable-card"&&(K={onEdit:($e,{key:ye,event:xe})=>{u?.($e==="add"?xe:ye,$e)},removeIcon:g??J?.removeIcon??c.createElement(br,null),addIcon:(m??J?.addIcon)||c.createElement(Q_,null),showAdd:f!==!0});const te=H(),Y=bo(l),ie=bH(S,C),se=gH(Q,R),ae={align:$?.align??J?.indicator?.align,size:$?.size??N??J?.indicator?.size??J?.indicatorSize},me=c.useMemo(()=>{const $e=P??B??void 0,ye=X==="rtl";switch($e){case"start":return ye?"right":"left";case"end":return ye?"left":"right";default:return $e}},[P,B,X]),ne={...e,size:Y,tabPlacement:me,items:ie},ue=pn(L),he=pn(E),[ge,Se]=dn([q,w],[F,ue,T,he],{props:ne},{popup:{_default:"root"}});return c.createElement(mH,{ref:G,direction:X,getPopupContainer:Z,...D,items:ie,className:W({[`${Q}-large`]:Y==="large",[`${Q}-small`]:Y==="small",[`${Q}-card`]:["card","editable-card"].includes(o),[`${Q}-editable-card`]:o==="editable-card",[`${Q}-centered`]:p},U,r,i,ge.root,V,k,j),classNames:{...ge,popup:W(x,V,k,j,ge.popup?.root)},styles:Se,style:Se.root,editable:K,more:{icon:J?.more?.icon??J?.moreIcon??b??c.createElement(Y0,null),transitionName:`${te}-slide-up`,...v},prefixCls:Q,animated:se,indicator:ae,destroyOnHidden:A??z,tabPosition:me})}),J0=TH;J0.TabPane=MH;const eR=({prefixCls:e,className:t,hoverable:o=!0,...r})=>{const{getPrefixCls:i}=c.useContext(St),l=i("card",e),u=W(`${l}-grid`,t,{[`${l}-grid-hoverable`]:o});return c.createElement("div",{...r,className:u})},OH=e=>{const{antCls:t,componentCls:o,headerHeight:r,headerPadding:i,tabsMarginBottom:l}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${re(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,...bi(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...ar,[`
|
|
218
|
-
> ${o}-typography,
|
|
219
|
-
> ${o}-typography-edit-content
|
|
220
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},zH=e=>{const{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
221
|
-
${re(i)} 0 0 0 ${o},
|
|
222
|
-
0 ${re(i)} 0 0 ${o},
|
|
223
|
-
${re(i)} ${re(i)} 0 0 ${o},
|
|
224
|
-
${re(i)} 0 0 0 ${o} inset,
|
|
225
|
-
0 ${re(i)} 0 0 ${o} inset;
|
|
226
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},AH=e=>{const{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:l,actionsBg:u}=e;return{margin:0,padding:0,listStyle:"none",background:u,borderTop:`${re(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`,...bi(),"& > 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), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:re(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:i,lineHeight:re(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${l}`}}}},IH=e=>({margin:`${re(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...bi(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...ar},"&-description":{color:e.colorTextDescription}}),PH=e=>{const{componentCls:t,colorFillAlter:o,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${re(r)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${re(e.padding)} ${re(i)}`}}},jH=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},BH=e=>{const{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:l,bodyPadding:u,extraColor:f,motionDurationMid:p}=e;return{[t]:{...Dn(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:OH(e),[`${t}-extra`]:{marginInlineStart:"auto",color:f,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:u,borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:zH(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:AH(e),[`${t}-meta`]:IH(e)},[`${t}-bordered`]:{border:`${re(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(m=>`${m} ${p}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius: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`]:PH(e),[`${t}-loading`]:jH(e),[`${t}-rtl`]:{direction:"rtl"}}},_H=e=>{const{componentCls:t,bodyPaddingSM:o,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${re(r)}`,fontSize:l,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},HH=e=>({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:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),DH=Qt("Card",e=>{const t=Gt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[BH(t),_H(t)]},HH),LH=e=>{const{actionClasses:t,actions:o=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},o.map((i,l)=>{const u=`action-${l}`;return c.createElement("li",{style:{width:`${100/o.length}%`},key:u},c.createElement("span",null,i))}))},VH=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,rootClassName:i,style:l,extra:u,headStyle:f={},bodyStyle:p={},title:m,loading:g,bordered:b,variant:v,size:x,type:C,cover:S,actions:R,tabList:E,children:N,activeTabKey:$,defaultActiveTabKey:w,tabBarExtraContent:T,hoverable:z,tabProps:A={},classNames:P,styles:B,...D}=e,{getPrefixCls:I,direction:H,className:X,style:Z,classNames:U,styles:L}=Kt("card"),[q]=Mf("card",v,b),F=bo(x),J={...e,size:F,variant:q},Q=pn(Z),j=pn(l),[V,k]=dn([U,P],[L,Q,B,j],{props:J}),G=Ke=>{e.onTabChange?.(Ke)},K=c.useMemo(()=>Ao(N),[N]),te=c.useMemo(()=>K.some(Ke=>c.isValidElement(Ke)&&Ke.type===eR),[K]),Y=I("card",o),[ie,se]=DH(Y),ae=c.createElement(Ba,{loading:!0,active:!0,paragraph:{rows:4},title:!1},N),me=$!==void 0,ne={...A,[me?"activeKey":"defaultActiveKey"]:me?$:w,tabBarExtraContent:T};let ue;const he=F!=="small"?"large":F,ge=E?c.createElement(J0,{size:he,...ne,className:`${Y}-head-tabs`,onChange:G,items:E.map(({tab:Ke,...Fe})=>({label:Ke,...Fe}))}):null;if(m||u||ge){const Ke=W(`${Y}-head`,V.header),Fe=W(`${Y}-head-title`,V.title),qe=W(`${Y}-extra`,V.extra),Je={...f,...k.header};ue=c.createElement("div",{className:Ke,style:Je},c.createElement("div",{className:`${Y}-head-wrapper`},m&&c.createElement("div",{className:Fe,style:k.title},m),u&&c.createElement("div",{className:qe,style:k.extra},u)),ge)}const Se=W(`${Y}-cover`,V.cover),$e=S?c.createElement("div",{className:Se,style:k.cover},S):null,ye=W(`${Y}-body`,V.body),xe={...p,...k.body},Ce=g||K.length?c.createElement("div",{className:ye,style:xe},g?ae:N):null,we=W(`${Y}-actions`,V.actions),Be=R?.length?c.createElement(LH,{actionClasses:we,actionStyle:k.actions,actions:R}):null,Te=xn(D,["onTabChange"]),He=W(Y,X,{[`${Y}-loading`]:g,[`${Y}-bordered`]:q!=="borderless",[`${Y}-hoverable`]:z,[`${Y}-contain-grid`]:te,[`${Y}-contain-tabs`]:E?.length,[`${Y}-small`]:F==="small",[`${Y}-type-${C}`]:!!C,[`${Y}-rtl`]:H==="rtl"},r,i,ie,se,V.root),nt={...k.root};return c.createElement("div",{ref:t,...Te,className:He,style:nt},ue,$e,Ce,Be)}),FH=e=>{const{prefixCls:t,className:o,avatar:r,title:i,description:l,style:u,classNames:f,styles:p,...m}=e,{getPrefixCls:g,className:b,style:v,classNames:x,styles:C}=Kt("cardMeta"),R=`${g("card",t)}-meta`,E=pn(v),N=pn(u),[$,w]=dn([x,f],[C,E,p,N],{props:e}),T=W(R,o,b,$.root),z={...w.root},A=W(`${R}-avatar`,$.avatar),P=W(`${R}-title`,$.title),B=W(`${R}-description`,$.description),D=W(`${R}-section`,$.section),I=r?c.createElement("div",{className:A,style:w.avatar},r):null,H=i?c.createElement("div",{className:P,style:w.title},i):null,X=l?c.createElement("div",{className:B,style:w.description},l):null,Z=H||X?c.createElement("div",{className:D,style:w.section},H,X):null;return c.createElement("div",{...m,className:T,style:z},I,Z)},lc=VH;lc.Grid=eR;lc.Meta=FH;function qH(e,t,o){var r=o||{},i=r.noTrailing,l=i===void 0?!1:i,u=r.noLeading,f=u===void 0?!1:u,p=r.debounceMode,m=p===void 0?void 0:p,g,b=!1,v=0;function x(){g&&clearTimeout(g)}function C(R){var E=R||{},N=E.upcomingOnly,$=N===void 0?!1:N;x(),b=!$}function S(){for(var R=arguments.length,E=new Array(R),N=0;N<R;N++)E[N]=arguments[N];var $=this,w=Date.now()-v;if(b)return;function T(){v=Date.now(),t.apply($,E)}function z(){g=void 0}!f&&m&&!g&&T(),x(),m===void 0&&w>e?f?(v=Date.now(),l||(g=setTimeout(m?z:T,e))):T():l!==!0&&(g=setTimeout(m?z:T,m===void 0?e-w:e))}return S.cancel=C,S}function UH(e,t,o){var r={},i=r.atBegin,l=i===void 0?!1:i;return qH(e,t,{debounceMode:l!==!1})}const WH=e=>{const{componentCls:t,borderRadius:o,paddingSM:r,colorBorder:i,paddingXS:l,fontSizeLG:u,fontSizeSM:f,borderRadiusLG:p,borderRadiusSM:m,colorBgContainerDisabled:g,lineWidth:b,lineType:v,antCls:x}=e,[C,S]=Vt(x,"space-addon");return{[t]:[{...Dn(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:b,borderStyle:v,borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:u,borderRadius:p},"&-small":{paddingInline:l,borderRadius:m,fontSize:f},"&-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},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[C("addon-border-color")]:i,[C("addon-background")]:g,[C("addon-border-color-outlined")]:i,[C("addon-background-filled")]:g,borderColor:S("addon-border-color"),background:S("addon-background"),"&-variant-outlined":{[C("addon-border-color")]:S("addon-border-color-outlined")},"&-variant-filled":{[C("addon-border-color")]:"transparent",[C("addon-background")]:S("addon-background-filled"),[`&${t}-disabled`]:{[C("addon-border-color")]:i,[C("addon-background")]:g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[C("addon-border-color-outlined")]:e.colorError,[C("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[C("addon-border-color-outlined")]:e.colorWarning,[C("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},GH=Qt("Addon",e=>[WH(e),wf(e,{focus:!1})]),XH=ce.forwardRef((e,t)=>{const{className:o,children:r,style:i,prefixCls:l,variant:u="outlined",disabled:f,status:p,...m}=e,{getPrefixCls:g,direction:b}=ce.useContext(St),v=g("space-addon",l),[x,C]=GH(v),{compactItemClassnames:S,compactSize:R}=zs(v,b),E=rc(v,p),N=W(v,x,S,C,`${v}-variant-${u}`,E,{[`${v}-${R}`]:R,[`${v}-disabled`]:f},o);return ce.createElement("div",{ref:t,className:N,style:i,...m},r)});function kH(e){return!!(e.addonBefore||e.addonAfter)}function YH(e){return!!(e.prefix||e.suffix||e.allowClear)}function k$(e,t,o){const r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=o,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...l)=>{t.setSelectionRange(...l)},i}function lf(e,t,o,r){if(!o)return;let i=t;if(t.type==="click"){i=k$(t,e,""),o(i);return}if(e.type!=="file"&&r!==void 0){i=k$(t,e,r),o(i);return}o(i)}function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ob.apply(this,arguments)}const tR=ce.forwardRef((e,t)=>{const{inputElement:o,children:r,prefixCls:i,prefix:l,suffix:u,addonBefore:f,addonAfter:p,className:m,style:g,disabled:b,readOnly:v,focused:x,triggerFocus:C,allowClear:S,value:R,handleReset:E,hidden:N,classes:$,classNames:w,dataAttrs:T,styles:z,components:A,onClear:P}=e,B=r??o,D=A?.affixWrapper||"span",I=A?.groupWrapper||"span",H=A?.wrapper||"span",X=A?.groupAddon||"span",Z=c.useRef(null),U=J=>{Z.current?.contains(J.target)&&C?.()},L=YH(e);let q=c.cloneElement(B,{value:R,className:W(B.props?.className,!L&&w?.variant)||null});const F=c.useRef(null);if(ce.useImperativeHandle(t,()=>({nativeElement:F.current||Z.current})),L){let J=null;if(S){const k=!b&&!v&&R&&!(typeof S=="object"&&S.disabled),G=`${i}-clear-icon`,K=typeof S=="object"&&S?.clearIcon?S.clearIcon:"✖";J=ce.createElement("button",{type:"button",onClick:te=>{E?.(te),P?.()},onMouseDown:te=>te.preventDefault(),className:W(G,{[`${G}-hidden`]:!k,[`${G}-has-suffix`]:!!u},w?.clear),style:z?.clear},K)}const Q=`${i}-affix-wrapper`,j=W(Q,{[`${i}-disabled`]:b,[`${Q}-disabled`]:b,[`${Q}-focused`]:x,[`${Q}-readonly`]:v,[`${Q}-input-with-clear-btn`]:u&&S&&R},$?.affixWrapper,w?.affixWrapper,w?.variant),V=(u||S)&&ce.createElement("span",{className:W(`${i}-suffix`,w?.suffix),style:z?.suffix},J,u);q=ce.createElement(D,Ob({className:j,style:z?.affixWrapper,onClick:U},T?.affixWrapper,{ref:Z}),l&&ce.createElement("span",{className:W(`${i}-prefix`,w?.prefix),style:z?.prefix},l),q,V)}if(kH(e)){const J=`${i}-group`,Q=`${J}-addon`,j=`${J}-wrapper`,V=W(`${i}-wrapper`,J,$?.wrapper,w?.wrapper),k=W(j,{[`${j}-disabled`]:b},$?.group,w?.groupWrapper);q=ce.createElement(I,{className:k,ref:F},ce.createElement(H,{className:V},f&&ce.createElement(X,{className:Q},f),q,p&&ce.createElement(X,{className:Q},p)))}return ce.cloneElement(q,{className:W(q.props?.className,m)||null,style:{...q.props?.style,...g},hidden:N})});function nR(e,t){return c.useMemo(()=>{let o={};t&&(o.show=typeof t=="object"&&t.formatter?t.formatter:!!t),o={...o,...e};const{show:r,...i}=o;return{...i,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:i.strategy||(l=>l.length)}},[e,t])}function oR({countConfig:e,value:t,maxLength:o}){return c.useMemo(()=>{const r=e.max??o,i=e.strategy(t),l=!!r&&i>r,u=Number(r)>0,f=e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${u?` / ${r}`:""}`:void 0;return{mergedMax:r,isOutOfRange:l,dataCount:f}},[e,o,t])}function rR({countConfig:e,getTarget:t}){const[o,r]=c.useState(null),i=c.useRef(t);return c.useEffect(()=>{i.current=t},[t]),c.useEffect(()=>{o&&(i.current()?.setSelectionRange(...o),r(null))},[o]),c.useCallback((u,f)=>{let p=u;return!f&&e.exceedFormatter&&e.max&&e.strategy(u)>e.max&&(p=e.exceedFormatter(u,{max:e.max}),u!==p&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),p},[e])}function aR(e,t){const[o,r]=To(e,t),i=o==null?"":String(o);return{value:o,setValue:r,formatValue:i}}function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},cf.apply(this,arguments)}const KH=c.forwardRef((e,t)=>{const{autoComplete:o,onChange:r,onFocus:i,onBlur:l,onPressEnter:u,onKeyDown:f,onKeyUp:p,prefixCls:m="rc-input",disabled:g,htmlSize:b,className:v,maxLength:x,suffix:C,showCount:S,count:R,type:E="text",classes:N,classNames:$,styles:w,onCompositionStart:T,onCompositionEnd:z,...A}=e,[P,B]=c.useState(!1),D=c.useRef(!1),I=c.useRef(!1),H=c.useRef(null),X=c.useRef(null),Z=ne=>{H.current&&VE(H.current,ne)},{setValue:U,formatValue:L}=aR(e.defaultValue,e.value),q=nR(R,S),{isOutOfRange:F,dataCount:J}=oR({countConfig:q,value:L,maxLength:x}),Q=rR({countConfig:q,getTarget:()=>H.current});c.useImperativeHandle(t,()=>({focus:Z,blur:()=>{H.current?.blur()},setSelectionRange:(ne,ue,he)=>{H.current?.setSelectionRange(ne,ue,he)},select:()=>{H.current?.select()},input:H.current,nativeElement:X.current?.nativeElement||H.current})),c.useEffect(()=>{I.current&&(I.current=!1),B(ne=>ne&&g?!1:ne)},[g]);const j=(ne,ue,he)=>{const ge=Q(ue,D.current);he.source==="compositionEnd"&&ue===ge||(U(ge),H.current&&lf(H.current,ne,r,ge))},V=ne=>{j(ne,ne.target.value,{source:"change"})},k=ne=>{D.current=!1,j(ne,ne.currentTarget.value,{source:"compositionEnd"}),z?.(ne)},G=ne=>{u&&ne.key==="Enter"&&!I.current&&!ne.nativeEvent.isComposing&&(I.current=!0,u(ne)),f?.(ne)},K=ne=>{ne.key==="Enter"&&(I.current=!1),p?.(ne)},te=ne=>{B(!0),i?.(ne)},Y=ne=>{I.current&&(I.current=!1),B(!1),l?.(ne)},ie=ne=>{U(""),Z(),H.current&&lf(H.current,ne,r)},se=F&&`${m}-out-of-range`,ae=()=>{const ne=xn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",cf({autoComplete:o},ne,{onChange:V,onFocus:te,onBlur:Y,onKeyDown:G,onKeyUp:K,className:W(m,{[`${m}-disabled`]:g},$?.input),style:w?.input,ref:H,size:b,type:E,onCompositionStart:ue=>{D.current=!0,T?.(ue)},onCompositionEnd:k}))},me=()=>C||q.show?ce.createElement(ce.Fragment,null,q.show&&ce.createElement("span",{className:W(`${m}-show-count-suffix`,{[`${m}-show-count-has-suffix`]:!!C},$?.count),style:{...w?.count}},J),C):null;return ce.createElement(tR,cf({},A,{prefixCls:m,className:W(v,se),handleReset:ie,value:L,focused:P,triggerFocus:Z,suffix:me(),disabled:g,classes:N,classNames:$,styles:w,ref:X}),ae())}),QH=`
|
|
227
|
-
min-height:0 !important;
|
|
228
|
-
max-height:none !important;
|
|
229
|
-
height:0 !important;
|
|
230
|
-
visibility:hidden !important;
|
|
231
|
-
overflow:hidden !important;
|
|
232
|
-
position:absolute !important;
|
|
233
|
-
z-index:-1000 !important;
|
|
234
|
-
top:0 !important;
|
|
235
|
-
right:0 !important;
|
|
236
|
-
pointer-events: none !important;
|
|
237
|
-
`,ZH=["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"],Tg={};let No;function JH(e,t=!1){const o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Tg[o])return Tg[o];const r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),u=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),p={sizingStyle:ZH.map(m=>`${m}:${r.getPropertyValue(m)}`).join(";"),paddingSize:l,borderSize:u,boxSizing:i};return t&&o&&(Tg[o]=p),p}function eD(e,t=!1,o=null,r=null){No||(No=document.createElement("textarea"),No.setAttribute("tab-index","-1"),No.setAttribute("aria-hidden","true"),No.setAttribute("name","hiddenTextarea"),document.body.appendChild(No)),e.getAttribute("wrap")?No.setAttribute("wrap",e.getAttribute("wrap")):No.removeAttribute("wrap");const{paddingSize:i,borderSize:l,boxSizing:u,sizingStyle:f}=JH(e,t);No.setAttribute("style",`${f};${QH}`),No.value=e.value||e.placeholder||"";let p,m,g,b=No.scrollHeight;if(u==="border-box"?b+=l:u==="content-box"&&(b-=i),o!==null||r!==null){No.value=" ";const x=No.scrollHeight-i;o!==null&&(p=x*o,u==="border-box"&&(p=p+i+l),b=Math.max(p,b)),r!==null&&(m=x*r,u==="border-box"&&(m=m+i+l),g=b>m?void 0:"hidden",b=Math.min(m,b))}const v={height:b,overflowY:g,resize:"none"};return p&&(v.minHeight=p),m&&(v.maxHeight=m),v}function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},zb.apply(this,arguments)}const Og=0,zg=1,Ag=2,tD=c.forwardRef((e,t)=>{const{prefixCls:o,defaultValue:r,value:i,autoSize:l,onResize:u,className:f,style:p,disabled:m,onChange:g,onInternalAutoSize:b,...v}=e,[x,C]=To(r,i),S=x??"",R=U=>{C(U.target.value),g?.(U)},E=c.useRef(null);c.useImperativeHandle(t,()=>({textArea:E.current}));const[N,$]=c.useMemo(()=>l&&typeof l=="object"?[l.minRows,l.maxRows]:[],[l]),w=!!l,[T,z]=c.useState(Ag),[A,P]=c.useState(),B=()=>{z(Og)};un(()=>{w&&B()},[i,N,$,w]),un(()=>{if(T===Og)z(zg);else if(T===zg){const U=eD(E.current,!1,N,$);z(Ag),P(U)}},[T]);const D=c.useRef(void 0),I=()=>{D.current!==void 0&&Lt.cancel(D.current)},H=U=>{T===Ag&&(u?.(U),l&&(I(),D.current=Lt(()=>{B()})))};c.useEffect(()=>I,[]);const Z={...p,...w?A:null};return(T===Og||T===zg)&&(Z.overflowY="hidden",Z.overflowX="hidden"),c.createElement(gr,{onResize:H,disabled:!(l||u)},c.createElement("textarea",zb({},v,{ref:E,style:Z,className:W(o,f,{[`${o}-disabled`]:m}),disabled:m,value:S,onChange:R})))});function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ab.apply(this,arguments)}const nD=ce.forwardRef(({defaultValue:e,value:t,onFocus:o,onBlur:r,onChange:i,allowClear:l,maxLength:u,onCompositionStart:f,onCompositionEnd:p,suffix:m,prefixCls:g="rc-textarea",showCount:b,count:v,className:x,style:C,disabled:S,hidden:R,classNames:E,styles:N,onResize:$,onClear:w,onPressEnter:T,readOnly:z,autoSize:A,onKeyDown:P,...B},D)=>{const[I,H]=ce.useState(!1),X=ce.useRef(!1),[Z,U]=ce.useState(null),L=c.useRef(null),q=c.useRef(null),F=()=>q.current?.textArea||null,{setValue:J,formatValue:Q}=aR(e,t),j=nR(v,b),{isOutOfRange:V,dataCount:k}=oR({countConfig:j,value:Q,maxLength:u}),G=rR({countConfig:j,getTarget:()=>q.current?.textArea||null}),K=()=>{F()?.focus()};c.useImperativeHandle(D,()=>({resizableTextArea:q.current,focus:K,blur:()=>{F()?.blur()},nativeElement:L.current?.nativeElement||F()})),c.useEffect(()=>{H($e=>!S&&$e)},[S]);const te=($e,ye)=>{const xe=G(ye,X.current);J(xe),lf($e.currentTarget,$e,i,xe)},Y=$e=>{X.current=!0,f?.($e)},ie=$e=>{X.current=!1,te($e,$e.currentTarget.value),p?.($e)},se=$e=>{te($e,$e.target.value)},ae=$e=>{$e.key==="Enter"&&T&&!$e.nativeEvent.isComposing&&T($e),P?.($e)},me=$e=>{H(!0),o?.($e)},ne=$e=>{H(!1),r?.($e)},ue=$e=>{J(""),K();const ye=F();ye&&lf(ye,$e,i)};let he=m;j.show&&(he=ce.createElement(ce.Fragment,null,he,ce.createElement("span",{className:W(`${g}-data-count`,E?.count),style:N?.count},k)));const ge=$e=>{$?.($e),F()?.style.height&&U(!0)},Se=!A&&!b&&!l;return ce.createElement(tR,{ref:L,value:Q,allowClear:l,handleReset:ue,suffix:he,prefixCls:g,classNames:{...E,affixWrapper:W(E?.affixWrapper,{[`${g}-show-count`]:b,[`${g}-textarea-allow-clear`]:l})},disabled:S,focused:I,className:W(x,V&&`${g}-out-of-range`),style:{...C,...Z&&!Se?{height:"auto"}:{}},dataAttrs:typeof k=="string"?{affixWrapper:{"data-count":k}}:void 0,styles:N,hidden:R,readOnly:z,onClear:w},ce.createElement(tD,Ab({},B,{autoSize:A,maxLength:u,onKeyDown:ae,onChange:se,onFocus:me,onBlur:ne,onCompositionStart:Y,onCompositionEnd:ie,className:W(E?.textarea),style:{resize:C?.resize,...N?.textarea},disabled:S,prefixCls:g,onResize:ge,ref:q,readOnly:z})))});function iR(e,t){const o=c.useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return c.useEffect(()=>(t&&r(),()=>o.current.forEach(i=>{i&&clearTimeout(i)})),[t]),r}function oD(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Af=c.forwardRef((e,t)=>{const{prefixCls:o,bordered:r=!0,status:i,size:l,disabled:u,onBlur:f,onFocus:p,suffix:m,allowClear:g,addonAfter:b,addonBefore:v,className:x,style:C,styles:S,rootClassName:R,onChange:E,classNames:N,variant:$,...w}=e,{getPrefixCls:T,direction:z,allowClear:A,autoComplete:P,className:B,style:D,classNames:I,styles:H}=Kt("input"),X=T("input",o),Z=c.useRef(null),U=vr(X),[L,q]=YN(X,R);KN(X,U);const{compactSize:F,compactItemClassnames:J}=zs(X,z),Q=bo(we=>l??F??we),j=ce.useContext(qr),V=u??j,k={...e,size:Q,disabled:V},G=pn(D),K=pn(C),[te,Y]=dn([I,N],[H,G,S,K],{props:k}),{status:ie,hasFeedback:se,feedbackIcon:ae}=c.useContext(Wr),me=Rf(ie,i),ne=oD(e)||!!se;c.useRef(ne);const ue=iR(Z,!0),he=we=>{ue(),f?.(we)},ge=we=>{ue(),p?.(we)},Se=we=>{ue(),E?.(we)},$e=(se||m)&&ce.createElement(ce.Fragment,null,m,se&&ae),ye=u2({allowClear:g,contextAllowClear:A,componentName:"Input"}),[xe,Ce]=Mf("input",$,r);return ce.createElement(KH,{ref:oo(t,Z),prefixCls:X,autoComplete:P,...w,disabled:V,onBlur:he,onFocus:ge,style:Y.root,styles:Y,suffix:$e,allowClear:ye,className:W(x,R,q,U,J,B,te.root),onChange:Se,addonBefore:v&&ce.createElement(Rs,{form:!0,space:!0},v),addonAfter:b&&ce.createElement(Rs,{form:!0,space:!0},b),classNames:{...te,input:W({[`${X}-sm`]:Q==="small",[`${X}-lg`]:Q==="large",[`${X}-rtl`]:z==="rtl"},te.input,L),variant:W({[`${X}-${xe}`]:Ce},rc(X,me)),affixWrapper:W({[`${X}-affix-wrapper-sm`]:Q==="small",[`${X}-affix-wrapper-lg`]:Q==="large",[`${X}-affix-wrapper-rtl`]:z==="rtl"},L),wrapper:W({[`${X}-group-rtl`]:z==="rtl"},L),groupWrapper:W({[`${X}-group-wrapper-sm`]:Q==="small",[`${X}-group-wrapper-lg`]:Q==="large",[`${X}-group-wrapper-rtl`]:z==="rtl",[`${X}-group-wrapper-${xe}`]:Ce},rc(`${X}-group-wrapper`,me,se),L)}})}),Y$=c.createContext(null),sR=c.createContext({});function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ib.apply(this,arguments)}const rD=e=>{const{prefixCls:t,className:o,containerRef:r,...i}=e,{panel:l}=c.useContext(sR),u=kr(l,r);return c.createElement("div",Ib({className:W(`${t}-section`,o),role:"dialog",ref:u},Qn(e,{aria:!0}),{"aria-modal":"true"},i))};function aD(e){const{prefixCls:t,direction:o,className:r,style:i,maxSize:l,containerRef:u,currentSize:f,onResize:p,onResizeEnd:m,onResizeStart:g}=e,[b,v]=c.useState(!1),[x,C]=c.useState(0),[S,R]=c.useState(0),E=o==="left"||o==="right",N=pt(z=>{z.preventDefault(),z.stopPropagation(),v(!0),C(E?z.clientX:z.clientY);let A;if(typeof f=="number")A=f;else if(u?.current){const P=u.current.getBoundingClientRect();A=E?P.width:P.height}R(A),g?.(A)}),$=pt(z=>{if(!b)return;let P=(E?z.clientX:z.clientY)-x;(o==="right"||o==="bottom")&&(P=-P);let B=S+P;B<0&&(B=0),l&&B>l&&(B=l),p?.(B)}),w=c.useCallback(()=>{if(b&&(v(!1),u?.current)){const z=u.current.getBoundingClientRect(),A=E?z.width:z.height;m?.(A)}},[b,u,m,E]);return c.useEffect(()=>{if(b)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",w),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",w)}},[b,$,w]),{dragElementProps:{className:W(`${t}-dragger`,`${t}-dragger-${o}`,{[`${t}-dragger-dragging`]:b,[`${t}-dragger-horizontal`]:E,[`${t}-dragger-vertical`]:!E},r),style:i,onMouseDown:N},isDragging:b}}function Ig(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&Yn(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function iD(e,t,o,r,i){const l=r??i!==!1,[u]=FE(t&&l,e);return ce.useEffect(()=>{t&&o===!0&&e()?.focus({preventScroll:!0})},[t]),u}function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ps.apply(this,arguments)}const sD=(e,t)=>{const{prefixCls:o,open:r,placement:i,inline:l,push:u,forceRender:f,autoFocus:p,focusTrap:m,classNames:g,rootClassName:b,rootStyle:v,zIndex:x,className:C,id:S,style:R,motion:E,width:N,height:$,size:w,maxSize:T,children:z,mask:A,maskClosable:P,maskMotion:B,maskClassName:D,maskStyle:I,afterOpenChange:H,onClose:X,onMouseEnter:Z,onMouseOver:U,onMouseLeave:L,onClick:q,onKeyDown:F,onKeyUp:J,styles:Q,drawerRender:j,resizable:V,defaultSize:k}=e,G=c.useRef(null);c.useImperativeHandle(t,()=>G.current);const K=iD(()=>G.current,r,p,m,A),[te,Y]=c.useState(!1),ie=c.useContext(Y$);let se;typeof u=="boolean"?se=u?{}:{distance:0}:se=u||{};const ae=se?.distance??ie?.pushDistance??180,me=c.useMemo(()=>({pushDistance:ae,push:()=>{Y(!0)},pull:()=>{Y(!1)}}),[ae]);c.useEffect(()=>{r?ie?.push?.():ie?.pull?.()},[r]),c.useEffect(()=>()=>{ie?.pull?.()},[]);const ne=c.createElement(no,ps({key:"mask"},B,{visible:A&&r}),({className:qe,style:Je},Ue)=>c.createElement("div",{className:W(`${o}-mask`,qe,g?.mask,D),style:{...Je,...I,...Q?.mask},onClick:P&&r?X:void 0,ref:Ue})),ue=typeof E=="function"?E(i):E,[he,ge]=c.useState(),Se=i==="left"||i==="right",$e=c.useMemo(()=>Ig(w??(Se?N:$)??he??k??(Se?378:void 0)),[w,N,$,k,Se,he]),ye=c.useMemo(()=>{const qe={};if(te&&ae)switch(i){case"top":qe.transform=`translateY(${ae}px)`;break;case"bottom":qe.transform=`translateY(${-ae}px)`;break;case"left":qe.transform=`translateX(${ae}px)`;break;default:qe.transform=`translateX(${-ae}px)`;break}return Se?qe.width=Ig($e):qe.height=Ig($e),qe},[te,ae,i,Se,$e]),xe=c.useRef(null),Ce=!!V,we=typeof V=="object"&&V||{},Be=pt(qe=>{ge(qe),we.onResize?.(qe)}),{dragElementProps:Te,isDragging:He}=aD({prefixCls:`${o}-resizable`,direction:i,className:g?.dragger,style:Q?.dragger,maxSize:T,containerRef:xe,currentSize:$e,onResize:Be,onResizeStart:we.onResizeStart,onResizeEnd:we.onResizeEnd}),nt={onMouseEnter:Z,onMouseOver:U,onMouseLeave:L,onClick:q,onKeyDown:F,onKeyUp:J,onFocus:qe=>{K(qe.target)}},Ke=c.createElement(no,ps({key:"panel"},ue,{visible:r,forceRender:f,onVisibleChanged:H,removeOnLeave:!1,leavedClassName:`${o}-content-wrapper-hidden`}),({className:qe,style:Je},Ue)=>{const Pe=c.createElement(rD,ps({id:S,containerRef:Ue,prefixCls:o,className:W(C,g?.section),style:{...R,...Q?.section}},Qn(e,{aria:!0}),nt),z);return c.createElement("div",ps({ref:xe,className:W(`${o}-content-wrapper`,He&&`${o}-content-wrapper-dragging`,g?.wrapper,!He&&qe),style:{...Je,...ye,...Q?.wrapper}},Qn(e,{data:!0})),Ce&&c.createElement("div",Te),j?j(Pe):Pe)}),Fe={...v};return x&&(Fe.zIndex=x),c.createElement(Y$.Provider,{value:me},c.createElement("div",{className:W(o,`${o}-${i}`,b,{[`${o}-open`]:r,[`${o}-inline`]:l}),style:Fe,tabIndex:-1,ref:G},ne,Ke))},lD=c.forwardRef(sD),cD=e=>{const{open:t=!1,prefixCls:o="rc-drawer",placement:r="right",autoFocus:i=!0,keyboard:l=!0,width:u,height:f,size:p,maxSize:m,mask:g=!0,maskClosable:b=!0,getContainer:v,forceRender:x,afterOpenChange:C,destroyOnHidden:S,onMouseEnter:R,onMouseOver:E,onMouseLeave:N,onClick:$,onKeyDown:w,onKeyUp:T,onClose:z,resizable:A,defaultSize:P,focusTriggerAfterClose:B,panelRef:D}=e,[I,H]=c.useState(!1),[X,Z]=c.useState(!1);un(()=>{Z(!0)},[]);const U=X?t:!1,L=c.useRef(null),q=c.useRef(null);un(()=>{U&&(q.current=document.activeElement)},[U]);const F=k=>{H(k),C?.(k),!k&&B!==!1&&q.current&&!L.current?.contains(q.current)&&q.current?.focus({preventScroll:!0})},J=c.useMemo(()=>({panel:D}),[D]);if(!x&&!I&&!U&&S)return null;const j={...e,open:U,prefixCls:o,placement:r,autoFocus:i,keyboard:l,width:u,height:f,size:p,maxSize:m,defaultSize:P,mask:g,maskClosable:b,inline:v===!1,afterOpenChange:F,ref:L,resizable:A,...{onMouseEnter:R,onMouseOver:E,onMouseLeave:N,onClick:$,onKeyDown:w,onKeyUp:T}},V=({top:k,event:G})=>{k&&l&&(G.stopPropagation(),z?.(G))};return c.createElement(sR.Provider,{value:J},c.createElement(hc,{open:U||x||I,autoDestroy:!1,getContainer:v,autoLock:g&&(U||I),onEsc:V},c.createElement(lD,j)))},lR=e=>{const{prefixCls:t,ariaId:o,title:r,footer:i,extra:l,closable:u,loading:f,onClose:p,headerStyle:m,bodyStyle:g,footerStyle:b,children:v,classNames:x,styles:C}=e,S=Kt("drawer"),{classNames:R,styles:E,closable:N}=S,[$,w]=dn([R,x],[E,C],{props:{...e,closable:u??N}}),T=c.useMemo(()=>{const I=u??N;if(I!==!1)return Wt(I)&&I?.placement==="end"?"end":"start"},[u,N]),z=c.useCallback(I=>c.createElement("button",{type:"button",onClick:p,className:W(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},$.close),style:w.close},I),[p,t,T,$.close,w.close]),[A,P]=m2(Es(e),Es(S),{closable:!0,closeIconRender:z}),B=()=>!r&&!A?null:c.createElement("div",{style:{...w.header,...m},className:W(`${t}-header`,$.header,{[`${t}-header-close-only`]:A&&!r&&!l})},c.createElement("div",{className:`${t}-header-title`},T==="start"&&P,r&&c.createElement("div",{className:W(`${t}-title`,$.title),style:w.title,id:o},r)),l&&c.createElement("div",{className:W(`${t}-extra`,$.extra),style:w.extra},l),T==="end"&&P),D=()=>i?c.createElement("div",{className:W(`${t}-footer`,$.footer),style:{...w.footer,...b}},i):null;return c.createElement(c.Fragment,null,B(),c.createElement("div",{className:W(`${t}-body`,$.body),style:{...w.body,...g}},f?c.createElement(Ba,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):v),D())},uD=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},cR=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),uR=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...cR({opacity:e},{opacity:1})}),dD=(e,t)=>[uR(.7,t),cR({transform:uD(e)},{transform:"none"})],fD=e=>{const{componentCls:t,motionDurationSlow:o}=e;return{[t]:{[`${t}-mask-motion`]:uR(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>({...r,[`&-${i}`]:dD(i,o)}),{})}}},mD=e=>{const{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:i,colorBgElevated:l,motionDurationSlow:u,motionDurationMid:f,paddingXS:p,padding:m,paddingLG:g,fontSizeLG:b,lineHeightLG:v,lineWidth:x,lineType:C,colorSplit:S,marginXS:R,colorIcon:E,colorIconHover:N,colorBgTextHover:$,colorBgTextActive:w,colorText:T,fontWeightStrong:z,footerPaddingBlock:A,footerPaddingInline:P,draggerSize:B,calc:D}=e,I=`${o}-content-wrapper`,H=`${o}-resizable-dragger`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto",[`&${o}-mask-blur`]:{backdropFilter:"blur(4px)"}},[I]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${u}`,"&-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},[`${o}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${re(m)} ${re(g)}`,fontSize:b,lineHeight:v,borderBottom:`${re(x)} ${C} ${S}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:D(b).add(p).equal(),height:D(b).add(p).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:E,fontWeight:z,fontSize:b,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${f}`,textRendering:"auto",[`&${o}-close-end`]:{marginInlineStart:R},[`&:not(${o}-close-end)`]:{marginInlineEnd:R},"&:hover":{color:N,backgroundColor:$,textDecoration:"none"},"&:active":{backgroundColor:w},...Fr(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:b,lineHeight:v},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${re(A)} ${re(P)}`,borderTop:`${re(x)} ${C} ${S}`},[H]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${H}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:B,cursor:"col-resize"},[`${H}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:B,cursor:"col-resize"},[`${H}-top`]:{insetInline:0,bottom:0,height:B,cursor:"row-resize"},[`${H}-bottom`]:{insetInline:0,top:0,height:B,cursor:"row-resize"},[`${I}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${o}-content`]:{pointerEvents:"none"},[`${o}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},pD=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),dR=Qt("Drawer",e=>{const t=Gt(e,{});return[mD(t),fD(t)]},pD),gD={distance:180},K$=378,Q$={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},fR=e=>{const{rootClassName:t,size:o,defaultSize:r=K$,height:i,width:l,mask:u,push:f=gD,open:p,afterOpenChange:m,onClose:g,prefixCls:b,getContainer:v,panelRef:x=null,style:C,className:S,resizable:R,"aria-labelledby":E,focusable:N,maskClosable:$,maskStyle:w,drawerStyle:T,contentWrapperStyle:z,destroyOnClose:A,destroyOnHidden:P,...B}=e,{placement:D}=B,I=Xr(),H=B.title?I:void 0,{getPopupContainer:X,getPrefixCls:Z,direction:U,className:L,style:q,classNames:F,styles:J,mask:Q,focusable:j}=Kt("drawer"),V=Z("drawer",b),[k,G]=dR(V),K=v===void 0&&X?()=>X(document.body):v,te=c.useMemo(()=>ko(o)?o:o==="large"?736:o==="default"?K$:typeof o=="string"?/^\d+(\.\d+)?$/.test(o)?Number(o):o:!D||D==="left"||D==="right"?l:i,[o,D,l,i]),Y={motionName:Ur(V,"mask-motion"),...Q$},ie=He=>({motionName:Ur(V,`panel-motion-${He}`),...Q$}),se=q2(),ae=oo(x,se),[me,ne]=vc("Drawer",B.zIndex),[ue,he,ge]=p2(u,Q,V,$),Se=L2({...j,...N},K!==!1&&ue),{classNames:$e,styles:ye,rootStyle:xe}=B,Ce={...e,zIndex:me,panelRef:x,mask:ue,maskClosable:ge,defaultSize:r,push:f,focusable:Se},[we,Be]=dn([F,$e],[J,ye],{props:Ce}),Te=W({"no-mask":!ue,[`${V}-rtl`]:U==="rtl"},t,k,G,we.root);return c.createElement(Rs,{form:!0,space:!0},c.createElement(Cf.Provider,{value:ne},c.createElement(cD,{prefixCls:V,onClose:g,maskMotion:Y,motion:ie,...B,classNames:{mask:W(we.mask,he.mask),section:we.section,wrapper:we.wrapper,dragger:we.dragger},styles:{mask:{...Be.mask,...w},section:{...Be.section,...T},wrapper:{...Be.wrapper,...z},dragger:Be.dragger},open:p,mask:ue,maskClosable:ge,push:f,size:te,defaultSize:r,style:{...q,...C},rootStyle:{...xe,...Be.root},className:W(L,S),rootClassName:Te,getContainer:K,afterOpenChange:m,panelRef:ae,zIndex:me,...R?{resizable:R}:{},"aria-labelledby":E??H,destroyOnHidden:P??A,focusTriggerAfterClose:Se.focusTriggerAfterClose,focusTrap:Se.trap},c.createElement(lR,{prefixCls:V,size:o,...B,ariaId:H,onClose:g}))))},hD=e=>{const{prefixCls:t,style:o,className:r,placement:i="right",...l}=e,{getPrefixCls:u}=c.useContext(St),f=u("drawer",t),[p,m]=dR(f),g=W(f,`${f}-pure`,`${f}-${i}`,p,m,r);return c.createElement("div",{className:g,style:o},c.createElement(lR,{prefixCls:f,...l}))};fR._InternalPanelDoNotUseOrYouWillBeFired=hD;function Z$(e){return["small","middle","medium","large"].includes(e)}function J$(e){return e?ko(e):!1}const mR=ce.createContext({latestIndex:0}),bD=mR.Provider,vD=e=>{const{className:t,prefix:o,index:r,children:i,separator:l,style:u,classNames:f,styles:p}=e,{latestIndex:m}=c.useContext(mR);return hr(i)?c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:u},i),r<m&&l&&c.createElement("span",{className:W(`${o}-item-separator`,f?.separator),style:p?.separator},l)):null},yD=e=>{const{componentCls:t,antCls:o}=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 > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},xD=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},SD=Qt("Space",e=>{const t=Gt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[yD(t),xD(t)]},()=>({}),{resetStyle:!1}),CD=c.forwardRef((e,t)=>{const{getPrefixCls:o,direction:r,size:i,className:l,style:u,classNames:f,styles:p}=Kt("space"),{size:m=i??"small",align:g,className:b,rootClassName:v,children:x,direction:C,orientation:S,prefixCls:R,split:E,separator:N,style:$,vertical:w,wrap:T=!1,classNames:z,styles:A,...P}=e,[B,D]=Array.isArray(m)?m:[m,m],I=Z$(D),H=Z$(B),X=J$(D),Z=J$(B),U=Ao(x,{keepEmpty:!0}),[L,q]=g2(S,w,C),F=g===void 0&&!q?"center":g,J=N??E,Q=o("space",R),[j,V]=SD(Q),k={...e,size:m,orientation:L,align:F},[G,K]=dn([f,z],[p,A],{props:k}),te=W(Q,l,j,`${Q}-${L}`,{[`${Q}-rtl`]:r==="rtl",[`${Q}-align-${F}`]:F,[`${Q}-gap-row-${D}`]:I,[`${Q}-gap-col-${B}`]:H},b,v,V,G.root),Y=W(`${Q}-item`,G.item),ie=U.map((me,ne)=>{const ue=me?.key||`${Y}-${ne}`;return c.createElement(vD,{prefix:Q,classNames:G,styles:K,className:Y,key:ue,index:ne,separator:J,style:K.item},me)}),se=c.useMemo(()=>({latestIndex:U.reduce((ne,ue,he)=>hr(ue)?he:ne,0)}),[U]);if(U.length===0)return null;const ae={};return T&&(ae.flexWrap="wrap"),!H&&Z&&(ae.columnGap=B),!I&&X&&(ae.rowGap=D),c.createElement("div",{ref:t,className:te,style:{...ae,...K.root,...u,...$},...P},c.createElement(bD,{value:se},ie))}),ev=CD;ev.Compact=w2;ev.Addon=XH;var cd={},eE;function $D(){if(eE)return cd;eE=1,Object.defineProperty(cd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};return cd.default=e,cd}var ED=$D();const wD=Xt(ED);function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Pb.apply(this,arguments)}const ND=(e,t)=>c.createElement(Zt,Pb({},e,{ref:t,icon:wD})),RD=c.forwardRef(ND),MD=e=>{const{getPrefixCls:t,direction:o}=c.useContext(St),{prefixCls:r,className:i}=e,l=t("input-group",r),u=t("input"),[f,p]=KN(u),m=W(l,p,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:o==="rtl"},f,i),g=c.useContext(Wr),b=c.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return c.createElement(Wr.Provider,{value:b},c.createElement(ev.Compact,{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},TD=e=>{const{componentCls:t,paddingXS:o}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,[`${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,"&::selection":{color:"transparent"}},[`${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}}}},OD=Qt(["Input","OTP"],e=>{const t=Gt(e,wc(e));return TD(t)},Nc),zD=c.forwardRef((e,t)=>{const{className:o,value:r,onChange:i,onActiveChange:l,index:u,mask:f,onFocus:p,...m}=e,{getPrefixCls:g}=c.useContext(St),b=g("otp"),v=typeof f=="string"?f:r,x=c.useRef(null);c.useImperativeHandle(t,()=>x.current);const C=N=>{i(u,N.target.value)},S=()=>{Lt(()=>{const N=x.current?.input;document.activeElement===N&&N&&N.select()})},R=N=>{p?.(N),S()},E=N=>{const{key:$,ctrlKey:w,metaKey:T}=N;$==="ArrowLeft"?l(u-1):$==="ArrowRight"?l(u+1):$==="z"&&(w||T)?N.preventDefault():$==="Backspace"&&!r&&l(u-1),S()};return c.createElement("span",{className:`${b}-input-wrapper`,role:"presentation"},f&&r!==""&&r!==void 0&&c.createElement("span",{className:`${b}-mask-icon`,"aria-hidden":"true"},v),c.createElement(Af,{"aria-label":`OTP Input ${u+1}`,type:f===!0?"password":"text",...m,ref:x,value:r,onInput:C,onFocus:R,onKeyDown:E,onMouseDown:S,onMouseUp:S,className:W(o,{[`${b}-mask-input`]:f})}))});function ud(e){return(e||"").split("")}const AD=e=>{const{index:t,prefixCls:o,separator:r,className:i,style:l}=e,u=mn(r)?r(t):r;return u?c.createElement("span",{className:W(`${o}-separator`,i),style:l},u):null},ID=c.forwardRef((e,t)=>{const{prefixCls:o,length:r=6,size:i,defaultValue:l,value:u,onChange:f,formatter:p,separator:m,variant:g,disabled:b,status:v,autoFocus:x,mask:C,type:S,autoComplete:R,onInput:E,onFocus:N,inputMode:$,classNames:w,styles:T,className:z,style:A,...P}=e,{classNames:B,styles:D,getPrefixCls:I,direction:H,style:X,className:Z}=Kt("otp"),U=I("otp",o),L={...e,length:r},q=pn(X),F=pn(A),[J,Q]=dn([B,w],[D,q,T,F],{props:L}),j=Qn(P,{aria:!0,data:!0,attr:!0}),[V,k]=OD(U),G=bo(xe=>i??xe),K=c.useContext(Wr),te=Rf(K.status,v),Y=c.useMemo(()=>({...K,status:te,hasFeedback:!1,feedbackIcon:null}),[K,te]),ie=c.useRef(null),se=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{se.current[0]?.focus()},blur:()=>{for(let xe=0;xe<r;xe+=1)se.current[xe]?.blur()},nativeElement:ie.current}));const ae=xe=>p?p(xe):xe,[me,ne]=c.useState(()=>ud(ae(l||"")));c.useEffect(()=>{u!==void 0&&ne(ud(u))},[u]);const ue=pt(xe=>{ne(xe),E&&E(xe),f&&xe.length===r&&xe.every(Ce=>Ce)&&xe.some((Ce,we)=>me[we]!==Ce)&&f(xe.join(""))}),he=pt((xe,Ce)=>{let we=ho(me);for(let Te=0;Te<xe;Te+=1)we[Te]||(we[Te]="");Ce.length<=1?we[xe]=Ce:we=we.slice(0,xe).concat(ud(Ce)),we=we.slice(0,r);for(let Te=we.length-1;Te>=0&&!we[Te];Te-=1)we.pop();const Be=ae(we.map(Te=>Te||" ").join(""));return we=ud(Be).map((Te,He)=>Te===" "&&!we[He]?we[He]:Te),we}),ge=(xe,Ce)=>{const we=he(xe,Ce),Be=Math.min(xe+Ce.length,r-1);Be!==xe&&we[xe]!==void 0&&se.current[Be]?.focus(),ue(we)},Se=xe=>{se.current[xe]?.focus()},$e=(xe,Ce)=>{for(let we=0;we<Ce;we+=1)if(!se.current[we]?.input?.value){se.current[we]?.focus();break}N?.(xe)},ye={variant:g,disabled:b,status:te,mask:C,type:S,inputMode:$,autoComplete:R};return c.createElement("div",{...j,ref:ie,className:W(z,U,{[`${U}-sm`]:G==="small",[`${U}-lg`]:G==="large",[`${U}-rtl`]:H==="rtl"},k,V,Z,J.root),style:Q.root,role:"group"},c.createElement(Wr.Provider,{value:Y},Array.from({length:r}).map((xe,Ce)=>{const we=`otp-${Ce}`,Be=me[Ce]||"";return c.createElement(c.Fragment,{key:we},c.createElement(zD,{ref:Te=>{se.current[Ce]=Te},index:Ce,size:G,htmlSize:1,className:W(J.input,`${U}-input`),style:Q.input,onChange:ge,value:Be,onActiveChange:Se,autoFocus:Ce===0&&x,onFocus:Te=>$e(Te,Ce),...ye}),Ce<r-1&&c.createElement(AD,{separator:m,index:Ce,prefixCls:U,className:W(J.separator),style:Q.separator}))})))});var dd={},tE;function PD(){if(tE)return dd;tE=1,Object.defineProperty(dd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};return dd.default=e,dd}var jD=PD();const BD=Xt(jD);function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},jb.apply(this,arguments)}const _D=(e,t)=>c.createElement(Zt,jb({},e,{ref:t,icon:BD})),HD=c.forwardRef(_D);var fd={},nE;function DD(){if(nE)return fd;nE=1,Object.defineProperty(fd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};return fd.default=e,fd}var LD=DD();const VD=Xt(LD);function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Bb.apply(this,arguments)}const FD=(e,t)=>c.createElement(Zt,Bb({},e,{ref:t,icon:VD})),qD=c.forwardRef(FD),UD=e=>e?c.createElement(qD,null):c.createElement(HD,null),WD={click:"onClick",hover:"onMouseOver"},GD=c.forwardRef((e,t)=>{const{disabled:o,action:r="click",visibilityToggle:i=!0,iconRender:l,prefixCls:u,inputPrefixCls:f,suffix:p,className:m,style:g,classNames:b,styles:v,...x}=e,{getPrefixCls:C,className:S,style:R,classNames:E,styles:N,iconRender:$}=Kt("inputPassword"),[w]=Pa("global"),T=c.useContext(qr),z=o??T,A={...e,disabled:z},[P,B]=dn([E,b],[N,v],{props:A}),D=Wt(i)&&i.visible!==void 0,[I,H]=c.useState(()=>D?i.visible:!1),X=c.useRef(null);c.useEffect(()=>{D&&H(i.visible)},[D,i]);const Z=iR(X),U=()=>{if(z)return;I&&Z();const V=!I;H(V),Wt(i)&&i.onVisibleChange?.(V)},L=V=>{const k=WD[r]||"",K=(l||$||UD)(I),te=Wt(i)?i.tabIndex:void 0;return c.createElement("span",{key:"passwordIcon",role:"button",tabIndex:z?-1:te??0,className:`${V}-icon`,"aria-disabled":z,"aria-pressed":I,"aria-label":I?w.hide:w.show,onMouseDown:Y=>{Y.preventDefault()},onMouseUp:Y=>{Y.preventDefault()},onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),U())},[k]:U},K)},q=C("input",f),F=C("input-password",u),J=i&&L(F),Q=W(F,S,m,{[`${F}-${e.size}`]:!!e.size}),j={...x,type:I?"text":"password",prefixCls:q,suffix:c.createElement(c.Fragment,null,J,p),disabled:z,className:Q,style:{...R,...g},classNames:P,styles:B};return c.createElement(Af,{ref:oo(t,X),...j})}),XD=e=>{const{componentCls:t,antCls:o,calc:r,max:i}=e,l=`${t}-btn`,[u,f]=Vt(o,"input-search"),p=e.inputFontSizeSM??e.fontSize,m=i(e.controlHeightSM,r(p).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[u("btn-height")]:re(e.controlHeight),width:"100%",[l]:{height:f("btn-height"),"&:focus-visible":{zIndex:5},[`&${o}-btn-icon-only`]:{width:f("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[u("btn-height")]:re(e.controlHeightLG)},[`&${t}-small`]:{[u("btn-height")]:re(e.controlHeightSM)},[`&${t}-small ${l}`]:{minHeight:m,[`&${e.antCls}-btn-icon-only`]:{minWidth:m}}}}},kD=Qt(["Input","Search"],e=>{const t=Gt(e,wc(e));return XD(t)},Nc),YD=c.forwardRef((e,t)=>{const{prefixCls:o,inputPrefixCls:r,className:i,size:l,style:u,enterButton:f=!1,searchIcon:p,addonAfter:m,loading:g,disabled:b,onSearch:v,onChange:x,onCompositionStart:C,onCompositionEnd:S,variant:R,onPressEnter:E,classNames:N,styles:$,hidden:w,...T}=e,{direction:z,getPrefixCls:A,className:P,style:B,classNames:D,styles:I,searchIcon:H}=Kt("inputSearch"),X=c.useContext(qr),Z=b??X,U={...e,enterButton:f},[L,q]=dn([D,N],[I,$],{props:U},{button:{_default:"root"}}),F=c.useRef(!1),J=A("input-search",o),Q=A("input",r),[j,V]=kD(J),{compactSize:k}=zs(J,z),G=bo(we=>l??k??we),K=c.useRef(null),te=we=>{we?.target&&we.type==="click"&&v&&v(we.target.value,we,{source:"clear"}),x?.(we)},Y=we=>{document.activeElement===K.current?.input&&we.preventDefault()},ie=we=>{v&&v(K.current?.input?.value,we,{source:"input"})},se=we=>{F.current||g||(E?.(we),ie(we))},ae=typeof f=="boolean"?Xo(p,H,c.createElement(V0,null)):null,me=`${J}-btn`,ne=W(me,{[`${me}-${R}`]:R});let ue;const he=f||{},ge=he.type&&he.type.__ANT_BUTTON===!0;if(ge||he.type==="button"){const we=he.props;ue=Io(he,{disabled:Z||we.disabled||!ge&&g,onMouseDown:Y,onClick:Be=>{he?.props?.onClick?.(Be),ie(Be)},key:"enterButton",...ge?{className:W(ne,we.className),loading:g||we.loading,size:G}:{}})}else ue=c.createElement(to,{classNames:L.button,styles:q.button,className:ne,color:f?"primary":"default",size:G,disabled:b,key:"enterButton",onMouseDown:Y,onClick:ie,loading:g,icon:ae,variant:R==="borderless"||R==="filled"||R==="underlined"?"text":f?"solid":void 0},f);m&&(ue=[ue,Io(m,{key:"addonAfter"})]);const Se=W(J,V,{[`${J}-rtl`]:z==="rtl",[`${J}-${G}`]:!!G,[`${J}-with-button`]:!!f},i,P,j,L.root),$e=we=>{F.current=!0,C?.(we)},ye=we=>{F.current=!1,S?.(we)},xe=Qn(T,{data:!0}),Ce=xn({...T,classNames:xn(L,["button","root"]),styles:xn(q,["button","root"]),prefixCls:Q,type:"search",size:G,variant:R,onPressEnter:se,onCompositionStart:$e,onCompositionEnd:ye,onChange:te,disabled:b},Object.keys(xe));return c.createElement(w2,{className:Se,style:{...q.root,...B,...u},...xe,hidden:w},c.createElement(Af,{ref:oo(K,t),...Ce}),ue)}),KD=e=>{const{componentCls:t,paddingLG:o}=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"}},[`
|
|
238
|
-
&-allow-clear > ${t},
|
|
239
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
240
|
-
`]:{paddingInlineEnd:o},[`&-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}}}}}},QD=Qt(["Input","TextArea"],e=>{const t=Gt(e,wc(e));return KD(t)},Nc,{resetFont:!1}),ZD=c.forwardRef((e,t)=>{const{prefixCls:o,bordered:r=!0,size:i,disabled:l,status:u,allowClear:f,classNames:p,rootClassName:m,className:g,style:b,styles:v,variant:x,showCount:C,onMouseDown:S,onResize:R,...E}=e,{getPrefixCls:N,direction:$,allowClear:w,autoComplete:T,className:z,style:A,classNames:P,styles:B}=Kt("textArea"),D=c.useContext(qr),I=l??D,{status:H,hasFeedback:X,feedbackIcon:Z}=c.useContext(Wr),U=Rf(H,u),L=pn(A),q=pn(b),[F,J]=dn([P,p],[B,L,v,q],{props:e}),Q=c.useRef(null);c.useImperativeHandle(t,()=>({resizableTextArea:Q.current?.resizableTextArea,focus:$e=>{VE(Q.current?.resizableTextArea?.textArea,$e)},blur:()=>Q.current?.blur(),nativeElement:Q.current?.nativeElement||null}));const j=N("input",o),V=vr(j),[k,G]=YN(j,m);QD(j,V);const{compactSize:K,compactItemClassnames:te}=zs(j,$),Y=bo($e=>i??K??$e),[ie,se]=Mf("textArea",x,r),ae=u2({allowClear:f,contextAllowClear:w,componentName:"TextArea"}),[me,ne]=c.useState(!1),[ue,he]=c.useState(!1),ge=$e=>{ne(!0),S?.($e);const ye=()=>{ne(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},Se=$e=>{if(R?.($e),me&&mn(getComputedStyle)){const ye=Q.current?.nativeElement?.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&he(!0)}};return c.createElement(nD,{autoComplete:T,...E,style:J.root,styles:J,disabled:I,allowClear:ae,className:W(G,V,g,m,te,z,F.root,{[`${j}-textarea-affix-wrapper-resize-dirty`]:ue}),classNames:{...F,textarea:W({[`${j}-sm`]:Y==="small",[`${j}-lg`]:Y==="large"},k,F.textarea,me&&`${j}-mouse-active`),variant:W({[`${j}-${ie}`]:se},rc(j,U)),affixWrapper:W(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:$==="rtl",[`${j}-affix-wrapper-sm`]:Y==="small",[`${j}-affix-wrapper-lg`]:Y==="large",[`${j}-textarea-show-count`]:C||e.count?.show},k)},prefixCls:j,suffix:X&&c.createElement("span",{className:`${j}-textarea-suffix`},Z),showCount:C,ref:Q,onResize:Se,onMouseDown:ge})}),Bs=Af;Bs.Group=MD;Bs.Search=YD;Bs.TextArea=ZD;Bs.Password=GD;Bs.OTP=ID;function JD(e,t,o){return typeof o=="boolean"?o:e.length?!0:Ao(t).some(i=>i.type===_N)}const If=({suffixCls:e,tagName:t,displayName:o})=>r=>c.forwardRef((l,u)=>c.createElement(r,{ref:u,suffixCls:e,tagName:t,...l})),tv=c.forwardRef((e,t)=>{const{prefixCls:o,suffixCls:r,className:i,tagName:l,...u}=e,{getPrefixCls:f}=c.useContext(St),p=f("layout",o),[m,g]=BN(p),b=r?`${p}-${r}`:p;return c.createElement(l,{className:W(o||b,i,m,g),ref:t,...u})}),eL=c.forwardRef((e,t)=>{const{direction:o}=c.useContext(St),[r,i]=c.useState([]),{prefixCls:l,className:u,rootClassName:f,children:p,hasSider:m,tagName:g,style:b,...v}=e,x=xn(v,["suffixCls"]),{getPrefixCls:C,className:S,style:R}=Kt("layout"),E=C("layout",l),N=JD(r,p,m),[$,w]=BN(E),T=W(E,{[`${E}-has-sider`]:N,[`${E}-rtl`]:o==="rtl"},S,u,f,$,w),z=c.useMemo(()=>({siderHook:{addSider:A=>{i(P=>[].concat(ho(P),[A]))},removeSider:A=>{i(P=>P.filter(B=>B!==A))}}}),[]);return c.createElement(IN.Provider,{value:z},c.createElement(g,{ref:t,className:T,style:{...R,...b},...x},p))}),tL=If({tagName:"div",displayName:"Layout"})(eL),nL=If({suffixCls:"header",tagName:"header",displayName:"Header"})(tv),oL=If({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(tv),rL=If({suffixCls:"content",tagName:"main",displayName:"Content"})(tv),_s=tL;_s.Header=nL;_s.Footer=oL;_s.Content=rL;_s.Sider=_N;_s._InternalSiderContext=zf;const uf=100,pR=uf/5,gR=uf/2-pR/2,Pg=gR*2*Math.PI,oE=50,rE=e=>{const{dotClassName:t,style:o,hasCircleCls:r}=e;return c.createElement("circle",{className:W(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:gR,cx:oE,cy:oE,strokeWidth:pR,style:o})},aL=({percent:e,prefixCls:t})=>{const o=`${t}-dot`,r=`${o}-holder`,i=`${r}-hidden`,[l,u]=c.useState(!1);un(()=>{e!==0&&u(!0)},[e]);const f=Math.max(Math.min(e,100),0);if(!l)return null;const p={strokeDashoffset:`${Pg/4}`,strokeDasharray:`${Pg*f/100} ${Pg*(100-f)/100}`};return c.createElement("span",{className:W(r,`${o}-progress`,{[i]:f<=0})},c.createElement("svg",{viewBox:`0 0 ${uf} ${uf}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f},c.createElement(rE,{dotClassName:o,hasCircleCls:!0}),c.createElement(rE,{dotClassName:o,style:p})))};function iL(e){const{prefixCls:t,percent:o=0,className:r,style:i}=e,l=`${t}-dot`,u=`${l}-holder`,f=`${u}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:W(u,r,o>0&&f),style:i},c.createElement("span",{className:W(l,`${t}-dot-spin`)},[1,2,3,4].map(p=>c.createElement("i",{className:`${t}-dot-item`,key:p})))),c.createElement(aL,{prefixCls:t,percent:o}))}function sL(e){const{prefixCls:t,indicator:o,percent:r,className:i,style:l}=e,u=`${t}-dot`;return o&&c.isValidElement(o)?Io(o,f=>({className:W(f.className,u,i),style:{...f.style,...l},percent:r})):c.createElement(iL,{prefixCls:t,percent:r,className:i,style:l})}const lL=new Ct("antSpinMove",{to:{opacity:1}}),cL=new Ct("antRotate",{to:{transform:"rotate(405deg)"}}),uL=e=>{const{componentCls:t}=e,o=`${t}-section`;return{[t]:{...Dn(e),position:"relative","&-rtl":{direction:"rtl"},[`&${o}, ${o}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${o}`]:{display:"inline-flex"},[o]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[o]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},dL=e=>{const{componentCls:t,antCls:o,motionDurationSlow:r}=e,[i,l]=Vt(o,"spin");return{[t]:{[i("dot-holder-size")]:e.dotSize,[i("dot-item-size")]:`calc((${l("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:l("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(u=>`${u} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:l("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:cL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:l("dot-item-size"),height:l("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:lL,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"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(u=>`${u} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},fL=e=>{const{componentCls:t}=e,[o]=Vt(e.antCls,"spin");return{[t]:{"&-sm":{[o("dot-holder-size")]:e.dotSizeSM},"&-lg":{[o("dot-holder-size")]:e.dotSizeLG}}}},mL=e=>{const{controlHeightLG:t,controlHeight:o}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},pL=Qt("Spin",e=>{const t=Gt(e,{spinDotDefault:e.colorTextDescription});return[uL(t),dL(t),fL(t)]},mL),gL=200,aE=[[30,.05],[70,.03],[96,.01]];function hL(e,t){const[o,r]=c.useState(0),i=c.useRef(null),l=t==="auto";return c.useEffect(()=>(l&&e&&(r(0),i.current=setInterval(()=>{r(u=>{const f=100-u;for(let p=0;p<aE.length;p+=1){const[m,g]=aE[p];if(u<=m)return u+f*g}return u})},gL)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[l,e]),l?o:t}let hR;function bL(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const nv=e=>{const{prefixCls:t,spinning:o=!0,delay:r=0,className:i,rootClassName:l,size:u,tip:f,description:p,wrapperClassName:m,style:g,children:b,fullscreen:v=!1,indicator:x,percent:C,classNames:S,styles:R,...E}=e,{getPrefixCls:N,direction:$,indicator:w,className:T,style:z,classNames:A,styles:P}=Kt("spin"),B=N("spin",t),[D,I]=pL(B),[H,X]=c.useState(()=>o&&!bL(o,r)),Z=hL(H,C);c.useEffect(()=>{if(o){const G=UH(r,()=>{X(!0)});return G(),()=>{G?.cancel?.()}}X(!1)},[r,o]);const U=bo(G=>u??G),L=p??f,q={...e,size:U,spinning:H,tip:L,description:L,fullscreen:v,children:b,percent:Z},[F,J]=dn([A,S],[P,R],{props:q}),Q=x??w??hR,j=typeof b<"u",V=j||v,k=c.createElement(c.Fragment,null,c.createElement(sL,{className:W(F.indicator),style:J.indicator,prefixCls:B,indicator:Q,percent:Z}),L&&c.createElement("div",{className:W(`${B}-description`,F.tip,F.description),style:{...J.tip,...J.description}},L));return c.createElement("div",{className:W(B,{[`${B}-sm`]:U==="small",[`${B}-lg`]:U==="large",[`${B}-spinning`]:H,[`${B}-rtl`]:$==="rtl",[`${B}-fullscreen`]:v},l,F.root,v&&F.mask,V?m:[`${B}-section`,F.section],T,i,D,I),style:{...J.root,...V?{}:J.section,...v?J.mask:{},...z,...g},"aria-live":"polite","aria-busy":H,...E},H&&(V?c.createElement("div",{className:W(`${B}-section`,F.section),style:J.section},k):k),j&&c.createElement("div",{className:W(`${B}-container`,F.container),style:J.container},b))};nv.setDefaultIndicator=e=>{hR=e};const vL={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},yL=()=>{const e=c.useRef([]),t=c.useRef(null);return c.useEffect(()=>{const o=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const l=i.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.current&&o-t.current<100&&(l.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},iE=({bg:e,children:t})=>c.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function sE(e,t){return Object.keys(e).map(o=>{const r=parseFloat(o),i=`${Math.floor(r*t)}%`;return`${e[o]} ${i}`})}const xL=c.forwardRef((e,t)=>{const{prefixCls:o,color:r,gradientId:i,radius:l,className:u,style:f,ptg:p,strokeLinecap:m,strokeWidth:g,size:b,gapDegree:v}=e,x=r&&typeof r=="object",C=x?"#FFF":void 0,S=b/2,R=c.createElement("circle",{className:W(`${o}-circle-path`,u),r:l,cx:S,cy:S,stroke:C,strokeLinecap:m,strokeWidth:g,opacity:p===0?0:1,style:f,ref:t});if(!x)return R;const E=`${i}-conic`,N=v?`${180+v/2}deg`:"0deg",$=sE(r,(360-v)/360),w=sE(r,1),T=`conic-gradient(from ${N}, ${$.join(", ")})`,z=`linear-gradient(to ${v?"bottom":"top"}, ${w.join(", ")})`;return c.createElement(c.Fragment,null,c.createElement("mask",{id:E},R),c.createElement("foreignObject",{x:0,y:0,width:b,height:b,mask:`url(#${E})`},c.createElement(iE,{bg:z},c.createElement(iE,{bg:T}))))}),ql=100,jg=(e,t,o,r,i,l,u,f,p,m,g=0)=>{const b=o/100*360*((360-l)/360),v=l===0?0:{bottom:0,top:180,left:90,right:-90}[u];let x=(100-r)/100*t;p==="round"&&r!==100&&(x+=m/2,x>=t&&(x=t-.01));const C=ql/2;return{stroke:typeof f=="string"?f:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:x+g,transform:`rotate(${i+b+v}deg)`,transformOrigin:`${C}px ${C}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}},SL=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:ce.createElement("style",null,`@keyframes ${o} {
|
|
241
|
-
0% { transform: rotate(0deg); }
|
|
242
|
-
100% { transform: rotate(360deg); }
|
|
243
|
-
}`)}});function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_b.apply(this,arguments)}function lE(e){const t=e??[];return Array.isArray(t)?t:[t]}const CL=e=>{const{id:t,prefixCls:o,classNames:r={},styles:i={},steps:l,strokeWidth:u,railWidth:f,gapDegree:p=0,gapPosition:m,railColor:g,strokeLinecap:b,style:v,className:x,strokeColor:C,percent:S,loading:R,...E}={...vL,...e},N=ql/2,$=Xr(t),w=`${$}-gradient`,T=N-u/2,z=Math.PI*2*T,A=p>0?90+p/2:-90,P=z*((360-p)/360),{count:B,gap:D}=typeof l=="object"?l:{count:l,gap:2},I=lE(S),H=lE(C),X=H.find(V=>V&&typeof V=="object"),U=X&&typeof X=="object"?"butt":b,{indeterminateStyleProps:L,indeterminateStyleAnimation:q}=SL({id:$,loading:R}),F=jg(z,P,0,100,A,p,m,g,U,u),J=yL(),Q=()=>{let V=0;return I.map((k,G)=>{const K=H[G]||H[H.length-1],te=jg(z,P,V,k,A,p,m,K,U,u);return V+=k,c.createElement(xL,{key:G,color:K,ptg:k,radius:T,prefixCls:o,gradientId:w,className:r.track,style:{...te,...L,...i.track},strokeLinecap:U,strokeWidth:u,gapDegree:p,ref:Y=>{J[G]=Y},size:ql})}).reverse()},j=()=>{const V=Math.round(B*(I[0]/100)),k=100/B;let G=0;return new Array(B).fill(null).map((K,te)=>{const Y=te<=V-1?H[0]:g,ie=Y&&typeof Y=="object"?`url(#${w})`:void 0,se=jg(z,P,G,k,A,p,m,Y,"butt",u,D);return G+=(P-se.strokeDashoffset+D)*100/P,c.createElement("circle",{key:te,className:W(`${o}-circle-path`,r.track),r:T,cx:N,cy:N,stroke:ie,strokeWidth:u,opacity:1,style:{...se,...i.track},ref:ae=>{J[te]=ae}})})};return c.createElement("svg",_b({className:W(`${o}-circle`,r.root,x),viewBox:`0 0 ${ql} ${ql}`,style:{...i.root,...v},id:t,role:"presentation"},E),!B&&c.createElement("circle",{className:W(`${o}-circle-rail`,r.rail),r:T,cx:N,cy:N,stroke:g,strokeLinecap:U,strokeWidth:f||u,style:{...F,...i.rail}}),B?j():Q(),q)};function fi(e){return!e||e<0?0:e>100?100:e}function df({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const $L=({percent:e,success:t})=>{const o=fi(df({success:t}));return[o,fi(fi(e)-o)]},EL=({success:e={},strokeColor:t})=>{const{strokeColor:o}=e;return[o||bs.green,t||null]},Pf=(e,t,o)=>{let r=-1,i=-1;if(t==="step"){const l=o.steps,u=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=u??8):ko(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=l}else if(t==="line"){const l=o?.strokeWidth;typeof e=="string"||typeof e>"u"?i=l||(e==="small"?6:8):ko(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:ko(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},wL=3,NL=e=>wL/e*100,cE=["root","body","indicator"],RL=e=>{const{prefixCls:t,classNames:o,styles:r,railColor:i,trailColor:l,strokeLinecap:u="round",gapPosition:f,gapPlacement:p,gapDegree:m,width:g=120,type:b,children:v,success:x,size:C=g,steps:S}=e,{direction:R}=Kt("progress"),E=i??l,[N,$]=Pf(C,"circle");let{strokeWidth:w}=e;w===void 0&&(w=Math.max(NL(N),6));const T={width:N,height:$,fontSize:N*.15+6},z=c.useMemo(()=>{if(m||m===0)return m;if(b==="dashboard")return 75},[m,b]),A=$L(e),P=c.useMemo(()=>{const U=(p??f)||b==="dashboard"&&"bottom"||void 0,L=R==="rtl";switch(U){case"start":return L?"right":"left";case"end":return L?"left":"right";default:return U}},[R,p,f,b]),B=Wt(e.strokeColor),D=EL({success:x,strokeColor:e.strokeColor}),I=W(`${t}-body`,{[`${t}-circle-gradient`]:B},o.body),H=c.createElement(CL,{steps:S,percent:S?A[1]:A,strokeWidth:w,railWidth:w,strokeColor:S?D[1]:D,strokeLinecap:u,railColor:E,prefixCls:t,gapDegree:z,gapPosition:P,classNames:xn(o,cE),styles:xn(r,cE)}),X=N<=20,Z=c.createElement("div",{className:I,style:{...T,...r.body}},H,!X&&v);return X?c.createElement(Gr,{title:v},Z):Z},Hb="--progress-line-stroke-color",ML=e=>{const t="-100%";return new Ct("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},TL=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{...Dn(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},OL=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:ML(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},zL=e=>{const{componentCls:t,iconCls:o}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{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%)",[o]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},AL=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},IL=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${o}`]:{fontSize:e.fontSizeSM}}}},PL=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),jL=Qt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),o=Gt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[TL(o),OL(o),zL(o),AL(o),IL(o)]},PL),BL=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=Number.parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},_L=(e,t)=>{const{from:o=bs.blue,to:r=bs.blue,direction:i=t==="rtl"?"to left":"to right",...l}=e;if(Object.keys(l).length!==0){const f=BL(l),p=`linear-gradient(${i}, ${f})`;return{background:p,[Hb]:p}}const u=`linear-gradient(${i}, ${o}, ${r})`;return{background:u,[Hb]:u}},HL=e=>{const{prefixCls:t,classNames:o,styles:r,direction:i,percent:l,size:u,strokeWidth:f,strokeColor:p,strokeLinecap:m="round",children:g,railColor:b,trailColor:v,percentPosition:x,success:C}=e,{align:S,type:R}=x,E=b??v,N=m==="square"||m==="butt"?0:void 0,$=u??[-1,f||(u==="small"?6:8)],[w,T]=Pf($,"line",{strokeWidth:f}),z={backgroundColor:E||void 0,borderRadius:N,height:T},A=`${t}-track`,P=p&&typeof p!="string"?_L(p,i):{[Hb]:p,background:p},B={width:`${fi(l)}%`,height:T,borderRadius:N,...P},D=df(e),I={width:`${fi(D)}%`,height:T,borderRadius:N,backgroundColor:C?.strokeColor};return c.createElement("div",{className:W(`${t}-body`,o.body,{[`${t}-body-layout-bottom`]:S==="center"&&R==="outer"}),style:{width:w>0?w:"100%",...r.body}},c.createElement("div",{className:W(`${t}-rail`,o.rail),style:{...z,...r.rail}},c.createElement("div",{className:W(A,o.track),style:{...B,...r.track}},R==="inner"&&g),D!==void 0&&c.createElement("div",{className:W(A,`${A}-success`,o.track),style:{...I,...r.track}})),R==="outer"&&g)},DL=e=>{const{classNames:t,styles:o,size:r,steps:i,rounding:l=Math.round,percent:u=0,strokeWidth:f=8,strokeColor:p,railColor:m,trailColor:g,prefixCls:b,children:v}=e,x=l(i*(u/100)),S=r??[r==="small"?2:14,f],[R,E]=Pf(S,"step",{steps:i,strokeWidth:f}),N=R/i,$=Array.from({length:i}),w=m??g;for(let T=0;T<i;T++){const z=Array.isArray(p)?p[T]:p;$[T]=c.createElement("div",{key:T,className:W(`${b}-steps-item`,{[`${b}-steps-item-active`]:T<=x-1},t.track),style:{backgroundColor:T<=x-1?z:w,width:N,height:E,...o.track}})}return c.createElement("div",{className:W(`${b}-steps-body`,t.body),style:o.body},$,v)},LL=["normal","exception","active","success"],VL=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,rootClassName:i,classNames:l,styles:u,steps:f,strokeColor:p,percent:m=0,size:g="medium",showInfo:b=!0,type:v="line",status:x,format:C,style:S,percentPosition:R={},...E}=e,{align:N="end",type:$="outer"}=R,w=Array.isArray(p)?p[0]:p,T=typeof p=="string"||Array.isArray(p)?p:void 0,z=c.useMemo(()=>{if(w){const se=typeof w=="string"?w:Object.values(w)[0];return new En(se).isLight()}return!1},[p]),A=c.useMemo(()=>{const se=df(e);return Number.parseInt(se!==void 0?(se??0)?.toString():(m??0)?.toString(),10)},[m,e.success]),P=c.useMemo(()=>!LL.includes(x)&&A>=100?"success":x||"normal",[x,A]),{getPrefixCls:B,direction:D,className:I,style:H,classNames:X,styles:Z}=Kt("progress"),U=B("progress",o),[L,q]=jL(U),F={...e,percent:m,type:v,size:g,showInfo:b,percentPosition:R},J=pn(H),Q=pn(S),[j,V]=dn([X,l],[Z,J,u,Q],{props:F}),k=v==="line",G=k&&!f,K=c.useMemo(()=>{if(!b)return null;const se=df(e);let ae;const me=C||(ue=>`${ue}%`),ne=k&&z&&$==="inner";return $==="inner"||C||P!=="exception"&&P!=="success"?ae=me(fi(m),fi(se)):P==="exception"?ae=k?c.createElement(yi,null):c.createElement(br,null):P==="success"&&(ae=k?c.createElement(gc,null):c.createElement(As,null)),c.createElement("span",{className:W(`${U}-indicator`,{[`${U}-indicator-bright`]:ne,[`${U}-indicator-${N}`]:G,[`${U}-indicator-${$}`]:G},j.indicator),style:V.indicator,title:typeof ae=="string"?ae:void 0},ae)},[b,m,A,P,v,U,C,k,z,$,N,G,j.indicator,V.indicator]),te={...e,classNames:j,styles:V};let Y;v==="line"?Y=f?c.createElement(DL,{...te,strokeColor:T,prefixCls:U,steps:Wt(f)?f.count:f},K):c.createElement(HL,{...te,strokeColor:w,prefixCls:U,direction:D,percentPosition:{align:N,type:$}},K):(v==="circle"||v==="dashboard")&&(Y=c.createElement(RL,{...te,strokeColor:w,prefixCls:U,progressStatus:P},K));const ie=W(U,`${U}-status-${P}`,{[`${U}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${U}-inline-circle`]:v==="circle"&&Pf(g,"circle")[0]<=20,[`${U}-line`]:G,[`${U}-line-align-${N}`]:G,[`${U}-line-position-${$}`]:G,[`${U}-steps`]:f,[`${U}-show-info`]:b,[`${U}-small`]:g==="small",[`${U}-rtl`]:D==="rtl"},I,r,i,j.root,L,q);return c.createElement("div",{ref:t,style:V.root,className:ie,role:"progressbar","aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100,...xn(E,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},Y)});var md={},uE;function FL(){if(uE)return md;uE=1,Object.defineProperty(md,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};return md.default=e,md}var qL=FL();const UL=Xt(qL);function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Db.apply(this,arguments)}const WL=(e,t)=>c.createElement(Zt,Db({},e,{ref:t,icon:UL})),GL=c.forwardRef(WL);function XL(e){const{prefixCls:t,className:o,style:r,status:i}=e,l=`${t}-rail`;return c.createElement("div",{className:W(l,`${l}-${i}`,o),style:r})}const kL=c.createContext({}),ov=c.createContext(null);function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Lb.apply(this,arguments)}const bR=c.createContext({}),dE=c.forwardRef((e,t)=>{const{className:o,style:r,children:i,...l}=e,{prefixCls:u,classNames:f,styles:p}=c.useContext(ov),{className:m,style:g}=c.useContext(bR),b=`${u}-item`;return c.createElement("div",Lb({},Qn(l,!1),{ref:t,className:W(`${b}-icon`,f.itemIcon,m,o),style:{...p.itemIcon,...g,...r}}),i)});function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Vb.apply(this,arguments)}function Bg(e){return e!=null}function YL(e){const{prefixCls:t,classNames:o,styles:r,data:i,last:l,nextStatus:u,active:f,index:p,itemRender:m,iconRender:g,itemWrapperRender:b,onClick:v}=e,x=`${t}-item`,{railFollowPrevStatus:C}=c.useContext(kL),{ItemComponent:S}=c.useContext(ov),{onClick:R,title:E,subTitle:N,content:$,description:w,disabled:T,icon:z,status:A,className:P,style:B,classNames:D={},styles:I={},...H}=i,X=$??w,Z={item:{...i,content:X},index:p,active:f},U=!!(v||R)&&!T,L={};U&&(L.role="button",L.tabIndex=0,L.onClick=G=>{R?.(G),v(p)},L.onKeyDown=G=>{const{which:K}=G;(K===at.ENTER||K===at.SPACE)&&v(p)});const q=A||"wait",F=Bg(E),J=Bg(N),Q=W(x,`${x}-${q}`,{[`${x}-custom`]:z,[`${x}-active`]:f,[`${x}-disabled`]:T===!0,[`${x}-empty-header`]:!F&&!J},P,o.item,D.root);let j=c.createElement(dE,null);g&&(j=g(j,{...Z,components:{Icon:dE}}));const V=c.createElement("div",{className:W(`${x}-wrapper`,o.itemWrapper,D.wrapper),style:{...r.itemWrapper,...I.wrapper}},c.createElement(bR.Provider,{value:{className:D.icon,style:I.icon}},j),c.createElement("div",{className:W(`${x}-section`,o.itemSection,D.section),style:{...r.itemSection,...I.section}},c.createElement("div",{className:W(`${x}-header`,o.itemHeader,D.header),style:{...r.itemHeader,...I.header}},F&&c.createElement("div",{className:W(`${x}-title`,o.itemTitle,D.title),style:{...r.itemTitle,...I.title}},E),J&&c.createElement("div",{title:typeof N=="string"?N:void 0,className:W(`${x}-subtitle`,o.itemSubtitle,D.subtitle),style:{...r.itemSubtitle,...I.subtitle}},N),!l&&c.createElement(XL,{prefixCls:x,className:W(o.itemRail,D.rail),style:{...r.itemRail,...I.rail},status:C?A:u})),Bg(X)&&c.createElement("div",{className:W(`${x}-content`,o.itemContent,D.content),style:{...r.itemContent,...I.content}},X)));let k=c.createElement(S,Vb({},H,L,{className:Q,style:{...r.item,...I.root,...B}}),b?b(V):V);return m&&(k=m(k,Z)||null),k}function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fb.apply(this,arguments)}const fE={};function KL(e){const{prefixCls:t="rc-steps",style:o,className:r,classNames:i=fE,styles:l=fE,rootClassName:u,orientation:f,titlePlacement:p,components:m,status:g="process",current:b=0,initial:v=0,onChange:x,items:C,iconRender:S,itemRender:R,itemWrapperRender:E,...N}=e,$=f==="vertical",w=$?"vertical":"horizontal",T=!$&&p==="vertical"?"vertical":"horizontal",z=W(t,`${t}-${w}`,`${t}-title-${T}`,u,r,i.root),A=ce.useMemo(()=>(C||[]).filter(Boolean),[C]),P=ce.useMemo(()=>A.map(({status:Z},U)=>{const L=v+U;return Z||(L===b?g:L<b?"finish":"wait")}),[A,g,b,v]),B=Z=>{x&&b!==Z&&x(Z)},{root:D="div",item:I="div"}=m||{},H=ce.useMemo(()=>({prefixCls:t,classNames:i,styles:l,ItemComponent:I}),[t,i,l,I]),X=(Z,U)=>{const L=v+U,q=P[U],F=P[U+1],J={...Z,status:q};return ce.createElement(YL,{key:L,prefixCls:t,classNames:i,styles:l,data:J,nextStatus:F,active:L===b,index:L,last:A.length-1===U,iconRender:S,itemRender:R,itemWrapperRender:E,onClick:x&&B})};return ce.createElement(D,Fb({className:z,style:{...o,...l?.root}},N),ce.createElement(ov.Provider,{value:H},A.map(X)))}const QL=c.createContext(null),ZL=e=>{const{prefixCls:t}=e;return c.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},c.createElement("title",null,"Arrow"),c.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},JL=e=>{const{prefixCls:t,rootPrefixCls:o,children:r,percent:i}=e,l=`${t}-item-progress-icon`,u=`${l}-circle`,[,f]=Vt(o,"cmp-steps"),p=`calc(${f("progress-radius")} * 2 * ${Math.PI*i/100}) 9999`;return c.createElement(c.Fragment,null,c.createElement("svg",{className:`${l}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i},c.createElement("title",null,"Progress"),c.createElement("circle",{className:W(u,`${u}-rail`)}),c.createElement("circle",{className:W(u,`${u}-ptg`),strokeDasharray:p,transform:"rotate(-90 50 50)"})),r)},e9=e=>{const{componentCls:t,antCls:o}=e,r=`${t}-item`,[i,l]=Vt(o,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[i("horizontal-rail-margin")]:`calc(${l("icon-size-max")} / 2 - ${l("rail-size")} / 2 + ${l("item-wrapper-padding-top")})`,position:"static",marginTop:l("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:l("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},t9=e=>{const{componentCls:t,customIconFontSize:o,motionDurationSlow:r,iconSize:i,lineWidth:l,lineType:u,antCls:f}=e,p=`${t}-item`,[m,g]=Vt(f,"cmp-steps");return{[t]:{[m("icon-size")]:i,[m("icon-border-width")]:l,[`${p}-icon`]:{width:g("icon-size"),height:g("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:g("icon-size"),textAlign:"center",borderRadius:g("icon-size"),border:`${g("icon-border-width")} ${u} transparent`,transition:["background-color","border","color","inset","transform"].map(b=>`${b} ${r}`).join(", "),zIndex:1},[`${p}-custom ${p}-icon`]:{background:"none",border:0,fontSize:o}}}},n9=e=>{const{componentCls:t,inlineDotSize:o,paddingXS:r,lineWidth:i,antCls:l,calc:u}=e,f=u(r).add(i).equal(),p=`${t}-item`,[m,g]=Vt(l,"cmp-steps");return{[`${t}-inline`]:{[m("items-offset")]:"0",[m("item-wrapper-padding-top")]:f,display:"inline-flex","&:before":{content:'""',flex:g("items-offset")},[p]:{[m("title-vertical-row-gap")]:r,[m("icon-size")]:o,[m("icon-size-active")]:o,[m("title-font-size")]:e.fontSizeSM,[m("title-line-height")]:e.lineHeightSM,[m("item-title-color")]:e.colorTextSecondary,[m("subtitle-font-size")]:e.fontSizeSM,[m("subtitle-line-height")]:e.lineHeightSM,[m("item-subtitle-color")]:e.colorTextQuaternary,[m("rail-size")]:e.lineWidth,[m("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${p}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function o9(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const rv=(e,t,o)=>{const{calc:r,componentCls:i,descriptionMaxWidth:l,antCls:u}=e,f=`${i}-item`,[,p]=Vt(u,"cmp-steps");return{[`@container style(${o9(l)})`]:[{[`${f}-icon`]:{marginInlineStart:r(l).sub(p("icon-size")).div(2).equal()},[`${f}-rail`]:{width:"auto",insetInlineStart:r(l).add(p("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(l).sub(p("icon-size")).div(2).sub(t).mul(-1).equal()}},o]}},r9=e=>{const{componentCls:t,descriptionMaxWidth:o,marginXS:r,fontHeightLG:i,margin:l,paddingSM:u,marginXXS:f,antCls:p,calc:m}=e,g=`${t}-item`,[b,v]=Vt(p,"cmp-steps");return{[t]:{[b("icon-size-max")]:`max(${v("icon-size")}, ${v("icon-size-active",v("icon-size"))})`,[`${g}-icon`]:{marginBlockStart:`calc((${v("heading-height")} - ${v("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[b("title-horizontal-item-margin")]:l,[b("title-horizontal-rail-margin")]:l,[b("title-horizontal-title-height")]:i,[b("heading-height")]:`max(${v("icon-size")}, ${v("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${g}:not(:first-child)`]:{marginInlineStart:v("title-horizontal-item-margin")},[`${g}:last-child`]:{flex:"0 1 auto"},[`${g}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${g}-wrapper`]:{columnGap:e.margin},[`${g}-empty-header`]:{[`${g}-header`]:{minHeight:"auto"},[`${g}-content`]:{marginTop:m(v("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${g}-section`]:{flex:1,minWidth:0},[`${g}-header`]:{minHeight:v("heading-height")},[`${g}-title`]:{flex:"0 1 auto"},[`${g}-content`]:{maxWidth:o},[`${g}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${g}-rail`]:{[b("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:v("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[b("title-vertical-row-gap")]:u,[b("title-horizontal-rail-gap")]:f,[b("heading-height")]:v("icon-size-max"),[`> ${g}`]:{flex:"1 1 0%",[`${g}-wrapper`]:{flexDirection:"column",rowGap:v("title-vertical-row-gap"),alignItems:"center"},[`${g}-section`]:{alignSelf:"stretch"},[`${g}-header`]:{flexDirection:"column",alignItems:"center"},[`${g}-title, ${g}-subtitle, ${g}-content`]:{textAlign:"center",maxWidth:"100%"},[`${g}-subtitle`]:{margin:0},[`${g}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${v("icon-size")} - ${v("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${v("icon-size")} / 2 + ${v("title-horizontal-rail-gap")})`}},...rv(e,r,{[`${g}:last-child`]:{flex:"none"},[`${g}-icon`]:{alignSelf:"flex-start"},[`${g}-section`]:{width:o}})}}},a9=e=>{const{componentCls:t}=e,o=`${t}-item`;return{[`${t}-max-count`]:{[`${o}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:{color:e.colorTextDescription}}}}},i9=e=>{const{componentCls:t,fontSizeIcon:o,navContentMaxWidth:r,navArrowColor:i,colorPrimary:l,motionDurationSlow:u,antCls:f,calc:p}=e,m=`${t}-item`,g=l,[b,v]=Vt(f,"cmp-steps");return{[`${t}${t}-navigation`]:{[m.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${m}-wrapper`]:{paddingBlock:e.paddingSM},[`${m}-section`]:{maxWidth:r},[`${m}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:g,transition:`all ${u}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${re(e.lineWidth)} ${e.lineType} ${i}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${i}`,content:'""'},[`&${m}-active`]:{[b("item-content-active-color")]:v("item-content-color"),[b("item-icon-active-bg-color")]:v("item-icon-bg-color"),[b("item-icon-active-border-color")]:v("item-icon-border-color"),[b("item-icon-active-text-color")]:v("item-icon-text-color")}},[`&${t}-horizontal`]:{[m]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${m}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:p(o).div(2).mul(-1).add("100%").equal(),width:o,height:o,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[m.repeat(4)]:{[`${m}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${m}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:p(o).div(3).mul(2).equal(),height:p(o).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},s9=e=>{const{componentCls:t,lineWidthBold:o,borderRadius:r,borderRadiusSM:i,motionDurationMid:l,paddingXS:u,lineType:f,paddingSM:p,antCls:m,calc:g}=e,b=`${t}-item`,[v,x]=Vt(m,"cmp-steps"),C=`${re(o)} ${f} ${x("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${b}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[b]:{flex:1,margin:0}}},{"&":{[v("panel-padding")]:p,[v("item-border-radius")]:r,[b]:{[v("panel-bg-color")]:x("item-icon-bg-color"),[v("panel-border-color")]:x("item-icon-border-color"),[v("panel-active-bg-color")]:x("item-icon-active-bg-color"),[v("panel-active-border-color")]:x("item-icon-active-border-color"),[v("panel-title-height")]:`calc(${x("title-font-size")} * ${x("title-line-height")})`,[v("item-base-height")]:g(x("panel-padding")).mul(2).add(x("icon-size")).add(x("panel-title-height")).equal(),[v("item-base-width")]:`calc(${x("item-base-height")} * 0.7071)`,transition:`background-color ${l}`}},[`${b}-icon`]:{display:"none"},[`${b}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:g(o).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:g(o).mul(2).add("100%").equal(),width:x("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:x("panel-bg-color"),stroke:x("panel-border-color"),strokeWidth:o,vectorEffect:"non-scaling-stroke",transition:`fill ${l}`}},[`${b}:last-child ${t}-panel-arrow`]:{display:"none"},[b]:{padding:x("panel-padding"),background:x("panel-bg-color"),position:"relative",borderBlock:C,"&:not(:first-child)":{paddingInlineStart:`calc(${x("panel-padding")} + ${x("item-base-width")})`},"&:first-child":{borderInlineStart:C,borderStartStartRadius:x("item-border-radius"),borderEndStartRadius:x("item-border-radius")},"&:last-child":{borderInlineEnd:C,borderStartEndRadius:x("item-border-radius"),borderEndEndRadius:x("item-border-radius")},"&-active":{background:x("panel-active-bg-color"),borderColor:x("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:x("panel-active-bg-color"),stroke:x("panel-active-border-color")}},[`${b}-title, ${b}-subtitle, ${b}-content`]:{color:x("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[v("panel-padding")]:u,[v("item-border-radius")]:i}},{[`&${t}-filled`]:{[b]:{"&:not(:first-child)":{clipPath:`polygon(${[`${re(o)} 0`,`calc(100% + ${x("item-base-width")}) 0`,`calc(100% + ${x("item-base-width")}) 100%`,`${re(o)} 100%`,`calc(${x("item-base-width")} + ${re(o)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:g(o).div(2).mul(-1).equal(),height:g(o).add("100%").equal()}}}]}},l9=e=>{const{calc:t,antCls:o,componentCls:r,lineWidthBold:i,motionDurationSlow:l}=e,u=`${r}-item`,[f,p]=Vt(o,"cmp-steps"),m=t(i).add(i).equal();return{[`${r}${r}-with-progress`]:{[f("item-wrapper-padding-top")]:m,[`${u}${u}-process`]:{[`${u}-icon`]:{position:"relative"}},[`${u}-progress-icon`]:{"&-svg":{[f("svg-size")]:t(m).mul(2).add(p("icon-size")).equal(),[f("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${p("svg-size")}, 1px)))`,fontSize:p("svg-size"),lineHeight:p("icon-size-ptg-unitless"),position:"absolute",inset:t(m).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:p("icon-size-ptg-unitless"),strokeWidth:t(p("icon-size-ptg-unitless")).mul(i).equal(),[f("progress-radius")]:t(p("svg-size")).sub(i).mul(p("icon-size-ptg-unitless")).div(2).equal(),r:p("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${l} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},c9=e=>{const{componentCls:t,iconSize:o,dotSize:r,dotCurrentSize:i,marginXXS:l,lineWidthBold:u,fontSizeSM:f,antCls:p}=e,m=`${t}-item`,[g,b]=Vt(p,"cmp-steps");return{[`${t}${t}-dot`]:{[g("icon-size-active")]:i,[g("icon-size")]:r,[g("dot-icon-size")]:r,[g("dot-icon-border-width")]:u,[g("rail-size")]:u,[g("icon-border-width")]:u,[`${m}-custom ${m}-icon`]:{fontSize:f},[`${m}-icon`]:{position:"relative","&:after":{content:'""',width:o,height:o,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${m}-active ${m}-icon`]:{[g("icon-size")]:b("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:rv(e,l)}}}},u9=e=>{const{componentCls:t,lineWidthBold:o,antCls:r}=e,i=`${t}-item`,[,l]=Vt(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${i}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[i]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${l("item-base-width")}) 0px`,`calc(100% - ${re(o)}) 0px`,`calc(100% - ${l("item-base-width")} - ${re(o)}) 50%`,`calc(100% - ${re(o)}) 100%`,`calc(0px - ${l("item-base-width")}) 100%`].join(",")})`}}}}}}},d9=e=>{const{componentCls:t,iconSizeSM:o,fontSize:r,lineHeight:i,marginXS:l,fontHeight:u,marginSM:f,paddingXS:p,antCls:m}=e,[g]=Vt(m,"cmp-steps");return{[`${t}${t}-small`]:{[g("icon-size")]:o,[g("title-horizontal-item-margin")]:f,[g("title-vertical-row-gap")]:p,[g("title-font-size")]:r,[g("title-line-height")]:i,[g("title-horizontal-rail-margin")]:l,[g("title-horizontal-title-height")]:u,[`&${t}-horizontal${t}-title-vertical`]:rv(e,l)}}},pd="wait",gd="process",hd="finish",bd="error",f9=e=>{const{componentCls:t,colorTextDisabled:o,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:l,colorError:u,colorErrorHover:f,colorErrorBgFilledHover:p,colorFillTertiary:m,colorErrorBg:g,colorPrimaryBgHover:b,colorPrimaryBg:v,colorText:x,colorTextDescription:C,colorBgContainer:S,colorPrimaryHover:R,lineType:E,antCls:N}=e,$=`${t}-item`,[w,T]=Vt(N,"cmp-steps");return{[t]:[{[$]:{[w("item-solid-line-color")]:"#000",[w("item-title-color")]:"#000",[w("item-content-color")]:"#000",[w("item-subtitle-color")]:T("item-content-color"),[w("item-icon-custom-color")]:"#000",[w("item-icon-bg-color")]:"#000",[w("item-icon-border-color")]:"#000",[w("item-icon-text-color")]:"#fff",[w("item-icon-dot-color")]:"#000",[w("item-icon-dot-bg-color")]:T("item-icon-dot-color"),[w("item-icon-dot-border-color")]:T("item-icon-dot-color"),[w("item-text-hover-color")]:"#000",[w("item-icon-bg-hover-color")]:T("item-icon-bg-color"),[w("item-icon-border-hover-color")]:T("item-icon-border-color"),[w("item-icon-text-hover-color")]:T("item-icon-text-color"),[w("item-content-active-color")]:T("item-content-color"),[w("item-icon-active-bg-color")]:T("item-icon-bg-color"),[w("item-icon-active-border-color")]:T("item-icon-border-color"),[w("item-icon-active-text-color")]:T("item-icon-text-color"),[w("item-process-rail-line-style")]:E},[`${$}-rail`]:{borderColor:T("item-solid-line-color")},[`${$}-custom ${$}-icon`]:{color:T("item-icon-custom-color")},[`${$}-title`]:{color:T("item-title-color")},[`${$}-subtitle`]:{color:T("item-subtitle-color")},[`${$}-content`]:{color:T("item-content-color")},[`${$}-active ${$}-icon`]:{},[`${$}-active ${$}-content`]:{color:T("item-content-active-color")},[`${$}[role='button']:not(${$}-active):hover`]:{[`${$}-title, ${$}-content`]:{color:T("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${$}:not(${$}-custom)`]:{[`${$}-icon`]:{background:T("item-icon-bg-color"),borderColor:T("item-icon-border-color"),color:T("item-icon-text-color")},[`&[role='button']:not(${$}-active):hover`]:{[`${$}-icon`]:{background:T("item-icon-bg-hover-color"),borderColor:T("item-icon-border-hover-color"),color:T("item-icon-text-hover-color")}},[`&${$}-active`]:{[`${$}-icon`]:{background:T("item-icon-active-bg-color"),borderColor:T("item-icon-active-border-color"),color:T("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${$}-icon`]:{background:T("item-icon-dot-bg-color"),borderColor:T("item-icon-dot-border-color"),color:T("item-icon-dot-color"),[`&${$}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${$}-${pd}`]:{[w("item-icon-custom-color")]:o,[w("item-title-color")]:C,[w("item-content-color")]:C,[w("item-content-active-color")]:x,[w("item-text-hover-color")]:R},[`${$}-rail-${pd}`]:{[w("item-solid-line-color")]:o},[`${$}-${gd}`]:{[w("item-icon-custom-color")]:i,[w("item-title-color")]:x,[w("item-content-color")]:C,[w("item-content-active-color")]:x,[w("item-text-hover-color")]:R},[`${$}-rail-${gd}`]:{[w("item-solid-line-color")]:i,[w("rail-line-style")]:T("item-process-rail-line-style")},[`${$}-${hd}`]:{[w("item-icon-custom-color")]:i,[w("item-title-color")]:x,[w("item-content-color")]:C,[w("item-content-active-color")]:x,[w("item-text-hover-color")]:R},[`${$}-rail-${hd}`]:{[w("item-solid-line-color")]:i},[`${$}-${bd}`]:{[w("item-icon-custom-color")]:u,[w("item-title-color")]:u,[w("item-content-color")]:u,[w("item-content-active-color")]:u,[w("item-text-hover-color")]:f},[`${$}-rail-${bd}`]:{[w("item-solid-line-color")]:u}},{[`&${t}-filled`]:{[$]:{[w("item-icon-dot-border-color")]:"transparent"},[`${$}-${pd}`]:{[w("item-icon-bg-color")]:m,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:l,[w("item-icon-dot-bg-color")]:o,[w("item-icon-bg-hover-color")]:b,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:i,[w("item-icon-active-bg-color")]:i,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r},[`${$}-${gd}, ${$}-${hd}`]:{[w("item-icon-bg-color")]:v,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:i,[w("item-icon-dot-bg-color")]:i,[w("item-icon-bg-hover-color")]:b,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:i,[w("item-icon-active-bg-color")]:i,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r},[`${$}-${bd}`]:{[w("item-icon-bg-color")]:g,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:u,[w("item-icon-dot-bg-color")]:u,[w("item-icon-bg-hover-color")]:p,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:u,[w("item-icon-active-bg-color")]:u,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[$]:{[w("item-icon-dot-bg-color")]:"transparent"},[`${$}-${pd}`]:{[w("item-icon-bg-color")]:S,[w("item-icon-border-color")]:o,[w("item-icon-text-color")]:o,[w("item-icon-dot-color")]:o,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:R,[w("item-icon-text-hover-color")]:R,[w("item-icon-active-bg-color")]:m},[`${$}-${gd}, ${$}-${hd}`]:{[w("item-icon-bg-color")]:S,[w("item-icon-border-color")]:i,[w("item-icon-text-color")]:i,[w("item-icon-dot-color")]:i,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:R,[w("item-icon-text-hover-color")]:R,[w("item-icon-active-bg-color")]:v},[`${$}-${bd}`]:{[w("item-icon-bg-color")]:S,[w("item-icon-border-color")]:u,[w("item-icon-text-color")]:u,[w("item-icon-dot-color")]:u,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:f,[w("item-icon-text-hover-color")]:f,[w("item-icon-active-bg-color")]:g}}}]}},m9=e=>{const{componentCls:t,marginXXS:o,paddingSM:r,controlHeight:i,antCls:l,calc:u}=e,f=`${t}-item`,[p,m]=Vt(l,"cmp-steps");return{[`${t}-vertical`]:{[p("vertical-rail-margin")]:u(o).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${f}`]:{minHeight:u(i).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${f}-icon`]:{marginInlineStart:`calc((${m("icon-size-max")} - ${m("icon-size")}) / 2)`},[`${f}-rail`]:{[p("rail-offset")]:u(m("heading-height")).sub(m("icon-size")).div(2).equal(),borderInlineStartWidth:m("rail-size"),position:"absolute",top:u(m("icon-size")).add(m("item-wrapper-padding-top")).add(m("rail-offset")).add(m("vertical-rail-margin")).equal(),insetInlineStart:u(m("icon-size-max")).div(2).equal(),bottom:u(m("vertical-rail-margin")).sub(m("rail-offset")).equal(),marginInlineStart:`calc(${m("rail-size")} / -2)`}}}}},p9=e=>{const{componentCls:t,antCls:o}=e,r=`${t}-item`,[i,l]=Vt(o,"cmp-steps");return{[t]:{[i("title-font-size")]:e.fontSizeLG,[i("title-line-height")]:e.lineHeightLG,[i("subtitle-font-size")]:e.fontSize,[i("subtitle-line-height")]:e.lineHeight,[i("item-wrapper-padding-top")]:"0px",[i("rail-size")]:e.lineWidth,[i("rail-line-style")]:e.lineType,...Dn(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:l("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:l("title-font-size"),lineHeight:l("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:l("subtitle-font-size"),lineHeight:l("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:l("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:ar},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},g9=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:void 0,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}),h9=Qt("Steps",e=>{const t=Gt(e,{inlineDotSize:6});return[p9(t),t9(t),m9(t),e9(t),r9(t),d9(t),c9(t),f9(t),i9(t),s9(t),n9(t),a9(t),l9(t),u9(t)]},g9);function b9(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function v9(e,t,o,r,i){const l=e[o].key??o,u=e[r].key??r,p=e.slice(o+1,r).some(m=>m.status==="error")?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${l}-${u}`,title:"",icon:c.createElement(Y0),status:p,disabled:!0,className:`${i}-item-ellipsis`},originIndex:-1}}function y9(e,t,o){const r=Math.min(Math.max(t,0),e-1),i=Math.min(o,e),l=new Set([0,r,e-1]);for(let u=1;l.size<i&&u<e;u+=1){const f=[r-u,r+u,u,e-1-u];for(const p of f){if(l.size>=i)break;p>=0&&p<e&&l.add(p)}}return Array.from(l).sort((u,f)=>u-f).flatMap((u,f,p)=>f>0&&u-p[f-1]>1?[null,u]:[u])}function x9(e,t,o,r,i){const l=r!==void 0&&r>=3&&e.length>r,u=t-o,f=c.useMemo(()=>{if(!l)return e.map((g,b)=>({item:g,originIndex:b}));const m=y9(e.length,u,r);return m.map((g,b)=>g===null?v9(e,u,m[b-1],m[b+1],i):b9(e[g],g))},[l,u,e,r,i]),p=f.findIndex(m=>m.originIndex===u);return{canApplyMaxCount:l,displaySteps:f,mappedDisplayCurrent:p>=0?p:u,displayItems:f.map(m=>m.item)}}const S9={itemIcon:R0},C9=e=>{const{size:t,className:o,rootClassName:r,style:i,variant:l="filled",type:u,classNames:f,styles:p,direction:m,orientation:g,responsive:b=!0,progressDot:v,labelPlacement:x,titlePlacement:C,ellipsis:S,maxCount:R,offset:E=0,items:N,percent:$,current:w=0,initial:T=0,onChange:z,iconRender:A,...P}=e,B=c.useContext(QL),D=Kt("steps"),{getPrefixCls:I,direction:H,className:X,style:Z}=D;let U,L,q={};B?q={root:B.rootComponent,item:B.itemComponent}:{classNames:U,styles:L}=D;const F=I(),J=I("steps",e.prefixCls),Q=`${J}-item-icon`,[j,V]=h9(J),[k]=Vt(F,"cmp-steps"),G=bo(t),K=c.useMemo(()=>(N||[]).filter(Boolean),[N]),{xs:te}=nB(b),Y=c.useMemo(()=>u&&u!=="default"?u:v?"dot":u,[v,u]),ie=Y==="inline",se=Y==="dot"||Y==="inline",ae=c.useMemo(()=>Y==="dot"&&mn(v)?v:void 0,[Y,v]),me=c.useMemo(()=>{const Fe=g||m;return Y==="panel"?"horizontal":b&&te||Fe==="vertical"?"vertical":"horizontal"},[g,m,Y,b,te]),ne=c.useMemo(()=>se||me==="vertical"?me==="vertical"?"horizontal":"vertical":u==="navigation"?"horizontal":C||x||"horizontal",[se,x,me,C,u]),ue=ie?void 0:$,{canApplyMaxCount:he,displaySteps:ge,mappedDisplayCurrent:Se,displayItems:$e}=x9(K,w,T,R,J),ye={...e,variant:l,size:G,type:Y,orientation:me,titlePlacement:ne,current:w,initial:T,percent:ue,responsive:b,offset:E,ellipsis:S,maxCount:R},[xe,Ce]=dn([S9,U,f],[L,p],{props:ye}),we=(Fe,qe)=>{const{item:Je,index:Ue,active:Pe,components:{Icon:_e}}=qe,Xe=ge[Ue]?.originIndex,De=Xe!==void 0&&Xe>=0?T+Xe:Ue,{status:Oe,icon:Qe}=Je;let ze=null;if(se||Qe)ze=Qe;else switch(Oe){case"finish":ze=c.createElement(As,{className:`${Q}-finish`});break;case"error":ze=c.createElement(br,{className:`${Q}-error`});break;default:{let We=c.createElement("span",{className:`${Q}-number`},De+1);Oe==="process"&&ue!==void 0&&(We=c.createElement(JL,{prefixCls:J,rootPrefixCls:F,percent:ue},We)),ze=We}}let Ie=c.createElement(_e,null,ze);return A?Ie=A(Ie,{index:De,active:Pe,item:Je,components:{Icon:_e}}):mn(ae)&&(Ie=ae(Ie,{index:De,...Je})),Ie},Be=(Fe,qe)=>{let Je=Fe;return ie&&qe.item.content&&(Je=c.createElement(Gr,{destroyOnHidden:!0,title:qe.item.content},Fe)),c.createElement(E2,{component:"Steps",disabled:qe.item.disabled||!z,colorSource:l==="filled"?"color":null},Je)},Te=Y==="panel"?Fe=>c.createElement(c.Fragment,null,Fe,c.createElement(ZL,{prefixCls:J})):void 0,He={[k("items-offset")]:`${E}`,...Z,...i},nt=W(X,`${J}-${l}`,{[`${J}-${Y}`]:Y!=="dot"?Y:!1,[`${J}-rtl`]:H==="rtl",[`${J}-dot`]:se,[`${J}-ellipsis`]:S,[`${J}-max-count`]:he,[`${J}-with-progress`]:ue!==void 0,[`${J}-small`]:G==="small"},o,r,j,V),Ke=Fe=>{const qe=ge[Fe];z&&qe&&qe.originIndex>=0&&z(T+qe.originIndex)};return c.createElement(KL,{...P,prefixCls:J,className:nt,style:He,classNames:xe,styles:Ce,orientation:me,titlePlacement:ne,components:q,initial:0,current:Se,items:$e,onChange:z?Ke:void 0,iconRender:we,itemRender:Be,itemWrapperRender:Te})};var vd={},mE;function $9(){if(mE)return vd;mE=1,Object.defineProperty(vd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return vd.default=e,vd}var E9=$9();const w9=Xt(E9);function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},qb.apply(this,arguments)}const N9=(e,t)=>c.createElement(Zt,qb({},e,{ref:t,icon:w9})),vR=c.forwardRef(N9);var yd={},pE;function R9(){if(pE)return yd;pE=1,Object.defineProperty(yd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};return yd.default=e,yd}var M9=R9();const T9=Xt(M9);function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ub.apply(this,arguments)}const O9=(e,t)=>c.createElement(Zt,Ub({},e,{ref:t,icon:T9})),z9=c.forwardRef(O9);var xd={},gE;function A9(){if(gE)return xd;gE=1,Object.defineProperty(xd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};return xd.default=e,xd}var I9=A9();const P9=Xt(I9);function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wb.apply(this,arguments)}const j9=(e,t)=>c.createElement(Zt,Wb({},e,{ref:t,icon:P9})),B9=c.forwardRef(j9);var Sd={},hE;function _9(){if(hE)return Sd;hE=1,Object.defineProperty(Sd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};return Sd.default=e,Sd}var H9=_9();const D9=Xt(H9);function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Gb.apply(this,arguments)}const L9=(e,t)=>c.createElement(Zt,Gb({},e,{ref:t,icon:D9})),yR=c.forwardRef(L9);var Cd={},bE;function V9(){if(bE)return Cd;bE=1,Object.defineProperty(Cd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};return Cd.default=e,Cd}var F9=V9();const q9=Xt(F9);function Xb(){return Xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Xb.apply(this,arguments)}const U9=(e,t)=>c.createElement(Zt,Xb({},e,{ref:t,icon:q9})),av=c.forwardRef(U9);var $d={},vE;function W9(){if(vE)return $d;vE=1,Object.defineProperty($d,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return $d.default=e,$d}var G9=W9();const X9=Xt(G9);function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kb.apply(this,arguments)}const k9=(e,t)=>c.createElement(Zt,kb({},e,{ref:t,icon:X9})),xR=c.forwardRef(k9);var Ed={},yE;function Y9(){if(yE)return Ed;yE=1,Object.defineProperty(Ed,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"};return Ed.default=e,Ed}var K9=Y9();const Q9=Xt(K9);function Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Yb.apply(this,arguments)}const Z9=(e,t)=>c.createElement(Zt,Yb({},e,{ref:t,icon:Q9})),SR=c.forwardRef(Z9);var wd={},xE;function J9(){if(xE)return wd;xE=1,Object.defineProperty(wd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};return wd.default=e,wd}var e7=J9();const t7=Xt(e7);function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Kb.apply(this,arguments)}const n7=(e,t)=>c.createElement(Zt,Kb({},e,{ref:t,icon:t7})),o7=c.forwardRef(n7);var Nd={},SE;function r7(){if(SE)return Nd;SE=1,Object.defineProperty(Nd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};return Nd.default=e,Nd}var a7=r7();const i7=Xt(a7);function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Qb.apply(this,arguments)}const s7=(e,t)=>c.createElement(Zt,Qb({},e,{ref:t,icon:i7})),l7=c.forwardRef(s7);var Rd={},CE;function c7(){if(CE)return Rd;CE=1,Object.defineProperty(Rd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};return Rd.default=e,Rd}var u7=c7();const d7=Xt(u7);function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Zb.apply(this,arguments)}const f7=(e,t)=>c.createElement(Zt,Zb({},e,{ref:t,icon:d7})),CR=c.forwardRef(f7);var Md={},$E;function m7(){if($E)return Md;$E=1,Object.defineProperty(Md,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};return Md.default=e,Md}var p7=m7();const g7=Xt(p7);function Jb(){return Jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Jb.apply(this,arguments)}const h7=(e,t)=>c.createElement(Zt,Jb({},e,{ref:t,icon:g7})),b7=c.forwardRef(h7);var Td={},EE;function v7(){if(EE)return Td;EE=1,Object.defineProperty(Td,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};return Td.default=e,Td}var y7=v7();const x7=Xt(y7);function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},e0.apply(this,arguments)}const S7=(e,t)=>c.createElement(Zt,e0({},e,{ref:t,icon:x7})),C7=c.forwardRef(S7),$7=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,E7={USE_PROFILES:{html:!0},FORBID_TAGS:["style","iframe","object","embed","form","input","button"],FORBID_ATTR:["style"],ALLOWED_URI_REGEXP:$7},w7=/<!--\s*comet-native:acceptance-evidence:start\s*-->\s*([\s\S]*?)\s*<!--\s*comet-native:acceptance-evidence:end\s*-->/gu;function eo(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function N7(){const e=new Map;return{slug(t){let o=String(t??"").toLowerCase().replace(/[^\w\u4e00-\u9fa5\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");o||(o="heading");const r=e.get(o)??0;return e.set(o,r+1),r===0?o:`${o}-${r}`}}}async function Dr(e){const t=(await mi(async()=>{const{default:r}=await import("./purify.es-VaSPOPhr.js");return{default:r}},[])).default;let o=t;if(typeof window>"u"||!window.document){const{JSDOM:r}=await mi(async()=>{const{JSDOM:i}=await import("jsdom");return{JSDOM:i}},[]);o=t(new r("").window)}return o.sanitize(String(e??""),E7)}function iv(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function sv(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function $R(e){return e==null?"":String(e)}function ER(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function R7(e){return e.includes("/check-receipts/")?"自动化检查回执":e.includes("/manual-evidence/")?"人工验证回执":"证据文件"}function M7(e){if(!Array.isArray(e)||!e.every(iv))return null;const t=e.length,o=e.filter(({status:f})=>f==="passed").length,r=e.filter(({status:f})=>f==="failed").length,i=new Set(e.flatMap(({evidence_refs:f})=>Array.isArray(f)?f.filter(p=>typeof p=="string"&&p.trim()):[])),l=r>0?"有未通过的验收项,需要继续处理。":"全部验收项已通过。",u=[...i].map(f=>`<li><span>${R7(f)}</span><code>${eo(f)}</code></li>`).join("");return['<section class="acceptance-evidence-summary" aria-label="验收证据摘要">',`<div class="acceptance-evidence-stat"><strong>${t}</strong><span>验收项</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-pass"><strong>${o}</strong><span>已通过</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-failed"><strong>${r}</strong><span>需关注</span></div>`,`<div class="acceptance-evidence-stat"><strong>${i.size}</strong><span>证据引用</span></div>`,"</section>",`<p class="acceptance-evidence-note">${l} 原始证据已保留在验证文件中。</p>`,u?`<section class="acceptance-evidence-references"><h3>引用证据</h3><ul>${u}</ul></section>`:""].join("")}function T7(e){return String(e??"").replace(w7,(t,o)=>{try{return M7(JSON.parse(o))??t}catch{return t}})}function O7(e,{className:t="yaml-kv-table"}={}){const o=e.map(([r,i])=>{const l=sv(i)?$R(i):ER(i);return`<tr><th scope="row">${eo(r)}</th><td>${eo(l)}</td></tr>`}).join("");return[`<table class="${eo(t)}">`,'<thead><tr><th scope="col">字段</th><th scope="col">值</th></tr></thead>',`<tbody>${o}</tbody>`,"</table>"].join("")}function wR(e){if(!Array.isArray(e)||e.length===0||!e.every(iv))return!1;const t=Object.keys(e[0]).sort().join("\0");return e.every(o=>Object.keys(o).sort().join("\0")===t)}function NR(e,{className:t="json-array-table"}={}){const o=Object.keys(e[0]),r=o.map(l=>`<th scope="col">${eo(l)}</th>`).join(""),i=e.map(l=>`<tr>${o.map(f=>{const p=l[f],m=sv(p)?$R(p):ER(p);return`<td>${eo(m)}</td>`}).join("")}</tr>`).join("");return[`<table class="${eo(t)}">`,`<thead><tr>${r}</tr></thead>`,`<tbody>${i}</tbody>`,"</table>"].join("")}function RR(e){const t=[],o=[];for(const[i,l]of Object.entries(e)){if(sv(l)){t.push([i,l]);continue}if(wR(l)){o.push(`<h3 id="${eo(i)}">${eo(i)}</h3>${NR(l)}`);continue}t.push([i,l])}const r=[];return t.length>0&&r.push(O7(t)),r.push(...o),r.join(`
|
|
244
|
-
`)||"<p>这个产物是空文件。</p>"}async function wE(e){const t=String(e??"");if(!t.trim())return Dr("<p>这个产物是空文件。</p>");try{const{parse:o}=await mi(async()=>{const{parse:i}=await import("./index-DlSYK56b.js");return{parse:i}},[]),r=o(t);return r==null?Dr("<p>这个产物是空文件。</p>"):typeof r!="object"||Array.isArray(r)?cc(["```yaml",t.replace(/\n$/,""),"```"].join(`
|
|
245
|
-
`)):Dr(RR(r))}catch{return cc(["```yaml",t.replace(/\n$/,""),"```"].join(`
|
|
246
|
-
`))}}async function NE(e){const t=String(e??"");if(!t.trim())return Dr("<p>这个产物是空文件。</p>");try{const o=JSON.parse(t);return o===null?Dr("<p>这个产物是空文件。</p>"):wR(o)?Dr(NR(o)):iv(o)?Dr(RR(o)):cc(["```json",JSON.stringify(o,null,2),"```"].join(`
|
|
247
|
-
`))}catch{return cc(["```json",t.replace(/\n$/,""),"```"].join(`
|
|
248
|
-
`))}}async function cc(e){try{const{Marked:t}=await mi(async()=>{const{Marked:f}=await import("./marked.esm-DECB3bxB.js");return{Marked:f}},[]);let o=null;try{o=(await mi(async()=>{const{default:f}=await import("./index-BNyOfAhu.js");return{default:f}},[])).default}catch{}const r=N7(),i=new t;i.use({renderer:{heading({text:f,depth:p,tokens:m}){const g=r.slug(f),b=m&&this.parser?.parseInline?this.parser.parseInline(m):eo(f);return`<h${p} id="${eo(g)}">${b}</h${p}>`},code({text:f,lang:p}){if(p==="mermaid")return`<div class="mermaid">${eo(f)}</div>`;if(o){const m=p&&o.getLanguage(p)?p:"plaintext",g=o.highlight(f,{language:m}).value;return`<pre><code class="hljs language-${eo(m)}">${g}</code></pre>`}return`<pre><code>${eo(f)}</code></pre>`}}});const l=i.parse(T7(e)),u=typeof l=="string"?l:String(l);return Dr(u)}catch{return Dr(`<pre>${eo(e)}</pre>`)}}function z7(e){const t=e.querySelectorAll("h1, h2, h3"),o=[];return t.forEach(r=>{const i=r.id,l=r.textContent??"",u=parseInt(r.tagName[1],10);i&&l&&o.push({id:i,text:l,depth:u})}),o}async function A7(e){const t=e.querySelectorAll("div.mermaid");if(t.length!==0)try{const o=(await mi(async()=>{const{default:r}=await import("./mermaid.core-COBBjtVH.js").then(i=>i.bl);return{default:r}},__vite__mapDeps([0,1]))).default;o.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif'}),await o.run({nodes:Array.from(t)})}catch{}}function gs(e,t=800,o=e){const[r,i]=c.useState(0);return c.useEffect(()=>{if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){i(e);return}const u=0,f=e,p=performance.now();let m=0;i(0);const g=b=>{const v=Math.min(1,(b-p)/t),x=1-Math.pow(1-v,3);i(u+f*x),v<1&&(m=requestAnimationFrame(g))};return m=requestAnimationFrame(g),()=>{cancelAnimationFrame(m)}},[t,o,e]),r}const I7="dashboard-workspace-region grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]";function MR({left:e,center:t,right:o,leftClassName:r="",stableFrame:i=!1}){const l=c.useRef(null),[u,f]=c.useState(0);c.useLayoutEffect(()=>{if(i){f(0);return}const m=l.current;if(!m)return;const g=()=>{const v=Math.ceil(m.getBoundingClientRect().height);f(x=>x===v?x:v)};if(g(),typeof ResizeObserver>"u")return;const b=new ResizeObserver(g);return b.observe(m),()=>b.disconnect()},[i]);const p=u>0?{"--dashboard-center-height":`${u}px`}:void 0;return O.jsxs("div",{className:`${I7} ${i?"dashboard-workspace-region-stable":""}`.trim(),style:p,children:[O.jsx("div",{className:`dashboard-workspace-side dashboard-workspace-left ${r}`.trim(),children:e}),O.jsx("div",{ref:l,className:"dashboard-workspace-center min-w-0",children:t}),O.jsx("div",{className:"dashboard-workspace-side dashboard-workspace-right xl:col-start-2 2xl:col-start-auto",children:o})]})}const Fd=[["shape","Shape"],["build","Build"],["verify","Verify"],["archive","Archive"]],lv=Object.fromEntries(Fd),uc={shape:"需求澄清",building:"构建中","verify-ready":"等待验证",repairing:"修复中","archive-ready":"可归档","await-user":"等待用户",blocked:"已阻塞",done:"已完成"},jf={builder:"Builder",runtime:"Runtime",verifier:"Verifier"},P7={building:"构建",checking:"执行检查",verifying:"独立验证",archiving:"归档"},TR={pending:"待验证",pass:"验证通过",fail:"验证失败",blocked:"验证阻塞"},j7={"host-attested":{label:"宿主身份校验",tone:"ok"},"skill-coordinated":{label:"Skill 协调",tone:"warn"},"semantic-verification-unavailable":{label:"语义验收不可用",tone:"danger"},"user-confirmed-degraded":{label:"用户确认降级通过",tone:"warn"}},B7={passed:"通过",failed:"失败",blocked:"阻塞",pending:"待验证"},_7={pass:"通过",fail:"失败",blocked:"阻塞","execution-error":"执行异常",recovery:"恢复"},t0={current:"与当前 YAML 一致",idle:"当前无执行任务",missing:"可从 YAML 恢复","version-mismatch":"本机状态已过期,可从 YAML 恢复",invalid:"本机状态不可读,可从 YAML 恢复",archived:"归档只读"},H7={none:"当前格式",required:"需要迁移",failed:"迁移失败","legacy-read-only":"旧归档只读",invalid:"状态无效"},_g=5;function pr(e,t="—"){return e?.text||t}function ai(e){return`${e.status}:${e.archiveName??""}:${e.name}`}function OR(e){const t=e.acceptance;if(!t?.total)return null;const o=t.total-t.pending;return{resolved:o,total:t.total,percent:Math.round(o/t.total*100),complete:t.pending===0}}function D7({native:e,git:t,query:o,tab:r="active",onTab:i,pagedChanges:l=null,total:u,hasMore:f=!1,pageLoading:p=!1,onLoadMore:m,selectedDetail:g=null,detailLoading:b=!1,detailError:v=null,onSelect:x,onRetryDetail:C,onPreview:S,onCopyChangeName:R}){const E=Array.isArray(l),N=c.useRef(null),$=c.useRef(null),[w,T]=c.useState(_g),z=o.trim().toLowerCase(),A=c.useMemo(()=>{const q=E?l:e?.changes??[];return E?q:q.filter(F=>{const J=r==="all"||F.status===r,Q=!z||F.name.toLowerCase().includes(z);return J&&Q})},[e,z,l,E,r]),[P,B]=c.useState(null);c.useEffect(()=>T(_g),[z,E,r]);const D=c.useCallback(()=>{if(E){!p&&f&&m?.();return}T(q=>Math.min(q+_g,A.length))},[f,m,p,E,A.length]),I=E?A:A.slice(0,w),H=E?f:I.length<A.length;c.useEffect(()=>{if(!E||!H)return;const q=$.current;if(!q)return;const F=N.current?.closest(".dashboard-content-shell"),J=F&&F.scrollHeight>F.clientHeight?F:null,Q=new IntersectionObserver(([V])=>{V.isIntersecting&&!p&&D()},{root:J,rootMargin:"0px 0px 32px"});Q.observe(q);const j=window.requestAnimationFrame(()=>{const V=q.getBoundingClientRect(),k=J?.getBoundingClientRect(),G=k?.top??0,K=k?.bottom??window.innerHeight;V.top<=K+32&&V.bottom>=G&&!p&&D()});return()=>{window.cancelAnimationFrame(j),Q.disconnect()}},[H,D,p,E]),c.useEffect(()=>{const q=N.current;if(!q||!H)return;const F=window.requestAnimationFrame(()=>{const J=q.scrollHeight<=q.clientHeight+1,j=q.getBoundingClientRect().bottom<=window.innerHeight+32;J&&(window.innerWidth>=1024||j)&&D()});return()=>window.cancelAnimationFrame(F)},[H,D,w]),c.useEffect(()=>{if(!H||window.innerWidth>=1024)return;const q=()=>{const F=N.current;!F||p||F.getBoundingClientRect().bottom<=window.innerHeight+32&&D()};return window.addEventListener("scroll",q,{passive:!0}),()=>window.removeEventListener("scroll",q)},[H,D,p]);const X=c.useCallback(q=>{if(!H||p)return;const{scrollTop:F,clientHeight:J,scrollHeight:Q}=q.currentTarget;F+J>=Q-32&&D()},[H,D,p]);c.useEffect(()=>{B(q=>I.some(F=>ai(F)===q)?q:I[0]?ai(I[0]):null)},[I]);const Z=I.find(q=>ai(q)===P)??I[0]??null;c.useEffect(()=>{Z&&x?.(Z)},[x,Z]);const U=E?g:Z,L=!!(e&&e.totalChangeCount>0);return O.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[O.jsx(RE,{title:"项目概览",hint:e?`Native 状态生成于 ${qd(e.generatedAt)}`:"当前项目尚无 Native 状态"}),O.jsx(F7,{change:U??Z}),O.jsx(q7,{native:e,loadedChanges:I}),O.jsx(RE,{title:"Native 变更工作区",hint:"查看循环、验收、阻塞与恢复状态"}),!e||!L?O.jsx(nV,{}):O.jsx(MR,{stableFrame:!0,leftClassName:"native-workspace-left",left:O.jsx(W7,{changes:I,total:E?u??A.length:A.length,selectedKey:Z?ai(Z):null,tab:r,onTab:i,onSelect:q=>B(ai(q)),listRef:N,loadMoreRef:$,hasMore:H,pageLoading:p,onScroll:X}),center:U?O.jsx(G7,{change:U,onPreview:S,onCopyChangeName:R}):Z&&(b||!v)?O.jsx("div",{className:"native-change-detail dashboard-change-detail-loading min-w-0 rounded-lg border border-border bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 Native 变更详情…"}):v?O.jsxs("div",{className:"native-change-detail dashboard-change-detail-loading min-w-0 rounded-lg border border-border bg-bg p-10 text-center text-sm text-danger shadow-raised",children:[O.jsxs("p",{role:"alert",children:["Native 变更详情加载失败:",v.reason]}),O.jsx(to,{className:"mt-4",onClick:C,children:"重新加载"})]}):O.jsx(L7,{native:e,tab:r,query:o,onTab:i}),right:U?O.jsx(tV,{change:U,git:t}):null})]})}function L7({native:e,tab:t,query:o,onTab:r}){const i=(e?.archivedChangeCount??0)>0,l=t==="active"&&!o.trim()&&i;return O.jsx("section",{className:"native-workspace-empty flex min-h-[360px] items-center justify-center rounded-lg bg-bg p-8 text-center shadow-raised xl:col-span-1 2xl:col-span-2",children:O.jsxs("div",{className:"max-w-sm",children:[O.jsx("span",{className:"mx-auto grid size-12 place-items-center rounded-2xl bg-accent-softer text-xl text-accent",children:"◇"}),O.jsx("h3",{className:"mt-5 text-lg font-semibold tracking-tight",children:l?"当前没有活跃的 Native change":"没有匹配的 Native change"}),O.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:l?"当前 Native 工作均已归档,可查看只读历史。":"调整搜索条件或切换筛选后重试。"}),l&&O.jsx(to,{className:"mt-5",type:"primary",onClick:()=>r("archived"),children:"查看已归档变更"})]})})}function V7(e){return e?e.migration?.status==="invalid"?e.migration.message??"Native 状态无效。":e.migration?.status==="required"||e.migration?.status==="failed"?e.migration.message??"需要先迁移 Native 状态。":e.migration?.status==="legacy-read-only"?"这是旧版归档,仅供查看。":e.blockers?.length?pr(e.blockers[0].reason,"当前变更已阻塞。"):e.status==="archived"?"当前变更已经归档,可查看验收与循环历史。":e.loop?.nextAction??"Runtime 将根据当前 YAML 状态继续执行。":"当前没有可展示的 Native change。"}function F7({change:e}){return O.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[O.jsxs("div",{className:"dashboard-priority-title",children:[O.jsx(av,{"aria-hidden":"true"}),O.jsx("span",{children:"下一步建议"})]}),O.jsx("p",{children:V7(e)})]})}function RE({title:e,hint:t}){return O.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[O.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),O.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function q7({native:e,loadedChanges:t=[]}){const[o,r]=c.useState(0),i=e?.activeChangeCount??t.filter(g=>g.status==="active").length,l=t.filter(g=>g.loop?.stage==="archive-ready").length,u=t.filter(g=>g.localExecution?.status==="running").length,f=t.filter(g=>["fail","blocked"].includes(g.verificationResult)||(g.acceptance?.failed??0)>0||(g.acceptance?.blocked??0)>0).length,p=t.reduce((g,b)=>g+(b.acceptance?.pending??0),0),m=[["活跃变更",i,"当前 Native workflow",i?"进行中":"清零",SR],["可归档",l,"已加载的循环状态",l?"就绪":"暂无",xR],["正在执行",u,"匹配当前 YAML 的本机任务",u?"运行中":"空闲",C7],["失败或阻塞",f,"已加载的验收与验证",f?"需处理":"健康",CR],["待验收项",p,"已加载的验收条目",p?"待验证":"已处理",z9]];return O.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:m.map(([g,b,v,x,C],S)=>O.jsx(U7,{label:g,value:b,note:v,tag:x,icon:C,tone:`dashboard-summary-tone-${S+1}`,selected:o===S,onClick:()=>r(S)},g))})}function U7({label:e,value:t,note:o,tag:r,icon:i,tone:l,selected:u,onClick:f}){const p=gs(t,850,t);return O.jsxs("button",{type:"button","aria-pressed":u,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${l} ${u?"dashboard-summary-primary":""}`,onClick:f,children:[O.jsxs("div",{className:"dashboard-summary-card-top",children:[O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),O.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(p)})]}),O.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:O.jsx(i,{})})]}),O.jsx("span",{className:"dashboard-summary-status",children:r}),O.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:o})]})}function W7({changes:e,total:t,selectedKey:o,tab:r,onTab:i,onSelect:l,listRef:u,loadMoreRef:f,hasMore:p,pageLoading:m,onScroll:g}){return O.jsxs("aside",{className:"native-changes-explorer flex min-h-0 flex-col rounded-lg border border-border bg-bg shadow-raised",children:[O.jsx("div",{className:"native-changes-explorer-header flex flex-none items-center border-b border-border-soft",children:O.jsxs("h3",{className:"font-semibold",children:["Changes Explorer ",O.jsx("span",{className:"native-changes-count",children:t})]})}),O.jsxs("div",{className:"native-changes-explorer-body flex min-h-0 flex-1 flex-col",children:[O.jsx("div",{className:"native-changes-explorer-tabs mb-4 flex flex-none items-end gap-8 border-b border-border-soft",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([b,v])=>O.jsx("button",{type:"button",role:"tab","aria-selected":r===b,className:`native-change-tab ${r===b?"active":""}`,onClick:()=>i(b),children:v},b))}),O.jsxs("div",{ref:u,className:"native-change-list min-h-0 flex-1 space-y-2 overflow-y-auto",onScroll:g,children:[e.length===0?m?O.jsx("div",{className:"flex justify-center py-8",children:O.jsx(nv,{"aria-label":"正在加载 Native 变更列表"})}):O.jsx("div",{className:"py-8 text-center text-sm text-muted",children:r==="active"?"暂无活跃变更":r==="archived"?"暂无已归档变更":"没有匹配的 Native change"}):e.map(b=>{const v=OR(b);return O.jsx("div",{className:`native-change-list-item ${ai(b)===o?"selected":""}`,children:O.jsx("button",{type:"button",className:"native-change-row",onClick:()=>l(b),children:O.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("div",{className:"truncate font-semibold",children:b.name}),O.jsxs("div",{className:"mt-1 text-xs text-meta",children:[lv[b.phase]??"状态异常",b.loop?` · ${uc[b.loop.stage]} · 第${b.loop.iteration}轮/第${b.loop.attempt}次`:""]}),v&&O.jsx("div",{className:`native-change-progress mt-1 ${v.complete?"complete":""}`,role:"progressbar","aria-valuenow":v.percent,"aria-valuemin":"0","aria-valuemax":"100",children:O.jsx("span",{style:{width:`${v.percent}%`}})})]}),O.jsx(Oo,{tone:zR(b.verificationResult),children:TR[b.verificationResult]??"状态未知"})]})})},ai(b))}),p&&O.jsx("div",{ref:f,className:"py-2 text-center text-xs text-meta","aria-live":"polite",children:"继续下滑加载更多"})]})]})]})}function G7({change:e,onPreview:t,onCopyChangeName:o}){const[r,i]=c.useState(!1);return c.useEffect(()=>i(!1),[e.name]),O.jsxs("section",{className:"native-change-detail min-w-0 rounded-lg border border-border bg-bg shadow-raised",children:[O.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("h3",{className:"truncate text-base font-semibold",children:e.name}),O.jsx(Gr,{title:"复制 Change 名称",children:O.jsx(to,{type:"text",size:"small",icon:r?O.jsx(As,{}):O.jsx(vR,{}),"aria-label":r?"已复制 Change 名称":"复制 Change 名称",onClick:()=>o?.(e.name)?.then(()=>{i(!0),window.setTimeout(()=>i(!1),1600)})})})]}),O.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[O.jsx("span",{children:"native"}),O.jsx("span",{children:e.status==="archived"?`归档于 ${e.archivedAt??"未知时间"}`:`state v${e.stateVersion??"—"}`}),O.jsx("span",{children:H7[e.migration?.status]??"状态未知"}),e.loop?.actor&&O.jsxs("span",{children:["当前执行者 ",jf[e.loop.actor]]})]})]}),O.jsx(Oo,{tone:oV(e.phase),children:lv[e.phase]??"状态异常"})]}),O.jsxs("div",{className:"space-y-5 p-5",children:[O.jsx(eV,{change:e}),O.jsx(J7,{artifacts:e.artifacts,onPreview:t}),O.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[O.jsx(X7,{change:e}),O.jsx(k7,{change:e})]}),O.jsx(Y7,{change:e}),O.jsx(K7,{change:e}),O.jsx(Q7,{blockers:e.blockers??[]}),O.jsx(Z7,{history:e.history??[],overflow:e.historyOverflow})]})]})}function X7({change:e}){const t=e.loop,o=e.localExecution;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"循环与恢复"}),O.jsx(Oo,{tone:o?.status==="running"?"info":o?.reason==="invalid"?"danger":"neutral",children:o?.status==="running"?"正在执行":t0[o?.reason]??"状态未知"})]}),t?O.jsxs("dl",{className:"space-y-3 text-sm",children:[O.jsx(Wo,{label:"循环阶段",value:uc[t.stage]??t.stage}),O.jsx(Wo,{label:"Goal cycle",value:`${t.goalCycle}`}),O.jsx(Wo,{label:"轮次 / 尝试",value:`${t.iteration} / ${t.attempt}`}),O.jsx(Wo,{label:"执行者",value:jf[t.actor]??"当前无执行者"}),O.jsx(Wo,{label:"检查请求轮次",value:`${o?.requestCheckRounds??0}`})]}):O.jsx("p",{className:"text-sm leading-relaxed text-muted",children:"旧版归档不包含可移植 Loop 状态。"}),O.jsxs("div",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3",children:[O.jsx("div",{className:"text-[11px] font-medium text-meta",children:"恢复依据与下一步"}),O.jsx("div",{className:"mt-1 text-xs font-medium leading-relaxed text-fg-2",children:o?.recoverableFromStage?`可从 YAML 的 ${uc[o.recoverableFromStage]??o.recoverableFromStage} 阶段恢复。`:t?.nextAction??t0[o?.reason]??"无后续动作。"})]}),e.builderHandoff&&O.jsxs("div",{className:"mt-3 border-t border-border-soft pt-3 text-xs",children:[O.jsxs("div",{className:"font-medium text-meta",children:["Builder handoff · 第 ",e.builderHandoff.iteration," 轮"]}),O.jsx("p",{className:"mt-1 leading-relaxed text-fg-2",children:pr(e.builderHandoff.summary)})]}),(o?.checks??[]).length>0&&O.jsxs("div",{className:"mt-3 text-xs text-meta",children:["本机检查摘要:",o.checks.filter(r=>r.status==="passed").length," 通过 /"," ",o.checks.filter(r=>r.status==="failed").length," 失败 /"," ",o.checks.filter(r=>["planned","running"].includes(r.status)).length," ","进行中"]})]})}function k7({change:e}){const t=e.specs,o=t?.capabilities??[];return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"变更范围"}),O.jsxs("span",{className:"rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:[t?.total??0," 个 capability"]})]}),O.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[O.jsx(Hg,{label:"新增",value:t?.create??0,tone:"info"}),O.jsx(Hg,{label:"修改",value:t?.modify??0,tone:"warn"}),O.jsx(Hg,{label:"删除",value:t?.remove??0,tone:"danger"})]}),O.jsx("div",{className:"mt-4 space-y-2",children:o.length===0?O.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚未声明 Spec 变更。"}):o.map(r=>O.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border-soft px-3 py-2",children:[O.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-2",children:r.capability}),O.jsx("span",{className:"text-[11px] text-meta",children:sV(r.operation)})]},`${r.capability}-${r.operation}`))})]})}function Hg({label:e,value:t,tone:o}){const r={info:"bg-info-soft text-info",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger"}[o];return O.jsxs("div",{className:"rounded-lg bg-surface-warm px-2 py-3",children:[O.jsx("div",{className:`text-lg font-bold tabular-nums ${t?r:"text-fg-2"}`,children:t}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function Y7({change:e}){const t=e.acceptance,o=OR(e);return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"验收状态"}),O.jsx(Oo,{tone:rV(t),children:o?`${o.percent}% 已处理`:"无可移植验收数据"})]}),o&&O.jsx("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface",children:O.jsx("span",{className:`block h-full rounded-full transition-[width] ${o.complete?"bg-success":"bg-accent"}`,style:{width:`${o.percent}%`}})}),O.jsxs("div",{className:"mt-4 grid grid-cols-4 gap-3 text-center",children:[O.jsx(Od,{label:"通过",value:t?.passed??0}),O.jsx(Od,{label:"失败",value:t?.failed??0}),O.jsx(Od,{label:"阻塞",value:t?.blocked??0}),O.jsx(Od,{label:"待验证",value:t?.pending??0})]}),(e.acceptanceItems??[]).length>0&&O.jsx("ul",{className:"mt-4 space-y-2 border-t border-border-soft pt-4",children:e.acceptanceItems.map(r=>O.jsxs("li",{className:"rounded-lg bg-surface px-3 py-3 text-xs",children:[O.jsxs("div",{className:"flex items-start gap-3",children:[O.jsx("span",{className:"font-mono text-meta",children:r.id}),O.jsx("span",{className:"min-w-0 flex-1 text-fg-2",children:r.text}),O.jsx(Oo,{tone:aV(r.result),children:B7[r.result]})]}),r.reason&&O.jsx("p",{className:"mt-2 pl-8 text-muted",children:pr(r.reason)})]},r.id))})]})}function Od({label:e,value:t}){return O.jsxs("div",{children:[O.jsx("div",{className:"text-xl font-bold tabular-nums",children:t}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function K7({change:e}){const t=e.checks??[],o=j7[e.verification?.assurance]??null;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"检查结果"}),O.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[o&&O.jsx(Oo,{tone:o.tone,children:o.label}),O.jsx(Oo,{tone:zR(e.verificationResult),children:TR[e.verificationResult]??"状态未知"})]})]}),O.jsx("p",{className:"mt-3 text-sm leading-relaxed text-fg-2",children:pr(e.verification?.summary,"尚无 Verifier 结论。")}),(e.verification?.risks??[]).length>0&&O.jsx("ul",{className:"mt-3 list-disc space-y-1 pl-5 text-xs text-muted",children:e.verification.risks.map((r,i)=>O.jsx("li",{children:pr(r)},`${pr(r)}-${i}`))}),O.jsx("div",{className:"mt-4 space-y-2",children:t.length===0?O.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚无持久化检查摘要。"}):t.map(r=>O.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 rounded-lg border border-border-soft px-3 py-2.5 text-xs",children:[O.jsx("span",{className:"min-w-0 flex-1 text-fg-2",children:pr(r.name,r.id)}),O.jsx(Oo,{tone:r.status==="passed"?"ok":r.status==="failed"?"danger":"warn",children:r.status}),O.jsx("span",{className:"text-meta",children:lV(r.durationMs)}),r.exitCode!==null&&O.jsxs("span",{className:"font-mono text-meta",children:["exit ",r.exitCode]})]},r.id))})]})}function Q7({blockers:e}){return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"阻塞项"}),O.jsx(Oo,{tone:e.length?"danger":"ok",children:e.length?`${e.length} 项`:"无阻塞"})]}),e.length===0?O.jsx("p",{className:"mt-3 text-xs text-muted",children:"当前没有持久化阻塞项。"}):O.jsx("ul",{className:"mt-4 space-y-2",children:e.map((t,o)=>O.jsxs("li",{className:"rounded-lg bg-surface px-3 py-3 text-xs",children:[O.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[O.jsx(Oo,{tone:"warn",children:jf[t.owner]??t.owner}),O.jsx("span",{className:"text-fg-2",children:pr(t.reason)})]}),O.jsxs("div",{className:"mt-2 text-meta",children:["验收:",t.acceptanceIds.join(", ")||"—"," · 处理:",t.resolutionAction]})]},`${t.owner}-${o}`))})]})}function Z7({history:e,overflow:t}){return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"执行历史"}),O.jsxs("span",{className:"font-mono text-xs text-meta",children:["保留 ",e.length," 条"]})]}),t?.droppedEntries>0&&O.jsxs("p",{className:"mt-3 rounded-lg bg-warn-soft px-3 py-2 text-xs text-warn",children:["更早的 ",t.droppedEntries," 条历史已汇总,时间范围"," ",qd(t.firstDroppedAt)," 至 ",qd(t.lastDroppedAt),"。"]}),e.length===0?O.jsx("p",{className:"mt-3 text-xs text-muted",children:"尚无完成的循环记录。"}):O.jsx("ol",{className:"mt-4 space-y-2",children:e.map((o,r)=>O.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border-soft px-3 py-3 text-xs",children:[O.jsxs("span",{className:"font-mono text-meta",children:["#",o.iteration,".",o.attempt]}),O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("div",{className:"text-fg-2",children:pr(o.summary)}),O.jsx("div",{className:"mt-1 text-meta",children:qd(o.completedAt)})]}),O.jsx(Oo,{tone:iV(o.outcome),children:_7[o.outcome]??o.outcome})]},`${o.goalCycle}-${o.iteration}-${o.attempt}-${r}`))})]})}function J7({artifacts:e,onPreview:t}){const o=e??[],r=o.filter(i=>i.exists).length;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r,"/",o.length]})]}),O.jsxs("div",{children:[O.jsx("div",{className:"mb-1.5 flex items-center gap-2",children:O.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:"Comet Native"})}),O.jsxs("div",{className:"space-y-0.5",children:[o.map(i=>O.jsxs("button",{type:"button",className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${i.exists?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!i.exists,onClick:()=>t({key:i.key,name:i.label,preview:i}),children:[O.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:O.jsx("span",{className:`h-2 w-2 rounded-full ${i.exists?"bg-accent":"border border-border"}`})}),O.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:i.key}),O.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:i.exists?i.label:"未生成"})]},i.key)),o.length===0&&O.jsx("div",{className:"py-6 text-center text-sm text-muted",children:"暂无可预览产物"})]})]})]})}function eV({change:e}){const t=Math.max(0,Fd.findIndex(([r])=>r===e.phase)),o=e.status==="archived";return O.jsxs("article",{children:[O.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[O.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),O.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:o?"已归档":`当前 ${lv[e.phase]??"状态异常"}`})]}),O.jsx("div",{className:"flex",children:Fd.map(([r,i],l)=>{const u=o||l<t?"done":l===t?"current":"pending";return O.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[l>0&&O.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${l<=t?"bg-accent":"bg-border"}`}),l<Fd.length-1&&O.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${l<t?"bg-accent":"bg-border"}`}),O.jsx("span",{"aria-label":`${i} ${u==="done"?"已完成":u==="current"?"当前阶段":"待进行"}`,className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${u==="done"?"border-accent bg-accent text-white":u==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:u==="done"?"✓":l+1}),O.jsx("span",{className:`text-[13px] font-semibold ${u==="pending"?"text-fg-2":"text-accent"}`,children:i})]},r)})}),e.loop&&O.jsxs("p",{className:"mt-4 text-center text-xs text-meta",children:["Build ↔ Verify Loop · ",uc[e.loop.stage]," · 第 ",e.loop.iteration," ","轮 / 第 ",e.loop.attempt," 次"]})]})}function tV({change:e,git:t}){const o=e.localExecution,r=e.blockers??[];return O.jsxs("aside",{className:"space-y-5",children:[O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"恢复状态"}),O.jsx(Oo,{tone:o?.status==="running"?"info":"neutral",children:o?.status==="running"?"执行中":"YAML 稳定边界"})]}),O.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[O.jsx(Wo,{label:"本机状态",value:t0[o?.reason]??"状态未知"}),O.jsx(Wo,{label:"执行阶段",value:o?.stage?P7[o.stage]??o.stage:"—"}),O.jsx(Wo,{label:"执行者",value:jf[o?.actor]??"—"}),O.jsx(Wo,{label:"可恢复阶段",value:o?.recoverableFromStage?uc[o.recoverableFromStage]??o.recoverableFromStage:"—"})]})]}),O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"当前阻塞"}),O.jsx(Oo,{tone:r.length?"danger":"ok",children:r.length?`${r.length} 项`:"无"})]}),O.jsx("p",{className:"mt-3 text-xs leading-relaxed text-muted",children:r.length?pr(r[0].reason):"当前没有阻止 Loop 前进的事项。"})]}),t&&O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"Git 摘要"}),O.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[O.jsx(Wo,{label:"分支",value:t.branch??"—"}),O.jsx(Wo,{label:"HEAD",value:t.head??"—"}),O.jsx(Wo,{label:"未提交文件",value:`${t.dirtyFiles??0} 个`})]})]})]})}function Wo({label:e,value:t}){return O.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border-soft pb-3 last:border-0 last:pb-0",children:[O.jsx("dt",{className:"text-muted",children:e}),O.jsx("dd",{className:"text-right font-medium text-fg-2",children:t})]})}function Oo({tone:e="neutral",children:t}){const o={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[e]??"bg-surface text-fg-2";return O.jsx("span",{className:`inline-flex max-w-full items-center rounded-full px-2.5 py-1 text-xs font-semibold leading-tight ${o}`,children:O.jsx("span",{className:"break-words",children:t})})}function nV(){return O.jsxs("div",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[O.jsx("div",{className:"text-lg font-semibold",children:"当前没有 Native change"}),O.jsx("p",{className:"mt-2 text-sm text-muted",children:"Native 状态出现后会在这里展示。"})]})}function oV(e){return e==="archive"?"ok":e==="invalid"?"danger":e==="verify"?"warn":"info"}function zR(e){return e==="pass"?"ok":e==="fail"?"danger":e==="blocked"?"warn":"neutral"}function rV(e){return e?e.failed>0?"danger":e.blocked>0||e.pending>0?"warn":"ok":"neutral"}function aV(e){return e==="passed"?"ok":e==="failed"?"danger":e==="blocked"?"warn":"neutral"}function iV(e){return e==="pass"||e==="recovery"?"ok":e==="fail"||e==="execution-error"?"danger":"warn"}function sV(e){return e==="create"?"新增":e==="modify"?"修改":e==="remove"?"删除":"未知操作"}function lV(e){return Number.isFinite(e)?e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`:"—"}function qd(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(t)}function cV(e,t){if(!e)return t;const o=e.items.slice(0,t.items.length).map(l=>l.id),r=t.items.map(l=>l.id);if(e.total!==t.total||o.length!==r.length||!o.every((l,u)=>l===r[u]))return t;const i=new Map(t.items.map(l=>[l.id,l]));return{...e,items:e.items.map(l=>i.get(l.id)??l)}}function Ta(e){return`${e.status}:${e.archiveName??""}:${e.name}`}function uV(e,t){if(!e)return t;const o=e.items.slice(0,t.items.length).map(Ta),r=t.items.map(Ta);if(e.total!==t.total||o.length!==r.length||!o.every((l,u)=>l===r[u]))return t;const i=new Map(t.items.map(l=>[Ta(l),l]));return{...e,items:e.items.map(l=>i.get(Ta(l))??l)}}function dV(e){return e instanceof Error&&e.message==="Stale Native Dashboard change cursor"}async function AR(e){try{const t=await e.json();if(typeof t?.error=="string"&&t.error.trim())return new Error(t.error)}catch{}return new Error(`HTTP ${e.status}`)}function fV({detailLoading:e,selectedId:t,selectedDetailId:o,visibleIds:r,failedDetailId:i}){return e||!t||i===t?!1:!(o===t&&r.includes(t))}function mV({detailLoading:e,selectedId:t,selectedDetailId:o,failedDetailId:r}){return r&&r===t?!1:e||!!(t&&!o)}const pV=3e4,gV="'Segoe UI Variable', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif",hV="Bahnschrift, 'Cascadia Mono', Consolas, monospace";function bV(){const[e,t]=c.useState(()=>{const r=localStorage.getItem("comet-theme"),i=r==="dark"||r==="light"?r:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return document.documentElement.setAttribute("data-theme",i),i});c.useLayoutEffect(()=>{const r=document.documentElement;r.classList.add("theme-switching"),r.setAttribute("data-theme",e),localStorage.setItem("comet-theme",e);const i=window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>r.classList.remove("theme-switching"))});return()=>window.cancelAnimationFrame(i)},[e]);const o=c.useCallback(()=>t(r=>r==="dark"?"light":"dark"),[]);return{theme:e,toggle:o}}const n0=[["open","启动"],["design","设计"],["build","构建"],["verify","验证"],["archive","归档"]],cv={pass:"通过",fail:"验证失败",pending:"待验证",unknown:"未知"},IR={pass:"ok",fail:"danger",pending:"warn",unknown:"neutral"};function vV(){const{theme:e,toggle:t}=bV();return O.jsx(ja,{theme:{token:{colorPrimary:e==="dark"?"#7fa8ff":"#255ed8",colorBgContainer:e==="dark"?"#151923":"#ffffff",colorBgElevated:e==="dark"?"#1a202b":"#ffffff",colorBgLayout:e==="dark"?"#0e1420":"#eef1f5",colorText:e==="dark"?"#edf2fb":"#101827",colorTextSecondary:e==="dark"?"#aab5c8":"#5f6979",colorBorder:e==="dark"?"#293345":"#e3e8ef",colorSplit:e==="dark"?"#293345":"#edf0f4",colorFillAlter:e==="dark"?"#182131":"#f6f8fb",colorInfoBg:e==="dark"?"#1a202b":"#e6f4ff",colorInfoBorder:e==="dark"?"#34597f":"#91caff",borderRadius:12,fontFamily:gV,fontFamilyCode:hV,fontSize:14,fontSizeHeading2:26,fontSizeHeading3:18,fontSizeHeading4:15}},children:O.jsx(j0,{children:O.jsx(yV,{theme:e,onToggleTheme:t})})})}function yV({theme:e,onToggleTheme:t}){const[o,r]=c.useState(null),[i,l]=c.useState(null),[u,f]=c.useState("classic"),[p,m]=c.useState([]),[g,b]=c.useState(!1),[v,x]=c.useState({active:null,archived:null,all:null}),[C,S]=c.useState({active:null,archived:null,all:null}),[R,E]=c.useState(null),[N,$]=c.useState(null),[w,T]=c.useState(null),[z,A]=c.useState(!1),[P,B]=c.useState(null),[D,I]=c.useState(null),[H,X]=c.useState(null),[Z,U]=c.useState(!1),[L,q]=c.useState(null),[F,J]=c.useState("active"),[Q,j]=c.useState(""),[V,k]=c.useState(!1),[G,K]=c.useState(!1),[te,Y]=c.useState(null),ie=c.useRef(null),se=c.useRef(null),ae=c.useRef(null),me=c.useRef(null),ne=c.useRef(null),ue=c.useRef(null),he=c.useRef({active:null,archived:null,all:null}),ge=c.useRef({active:null,archived:null,all:null}),Se=c.useRef(null),$e=c.useRef(""),{message:ye}=j0.useApp(),xe=c.useCallback((ze,Ie="success")=>ye[Ie](ze),[ye]),Ce=new URLSearchParams(window.location.search).has("demo"),we=c.useRef(Q),Be=c.useRef(F),Te=c.useRef(u);we.current=Q,Be.current=F,Te.current=u,Se.current=w,c.useEffect(()=>{ue.current=D},[D]),c.useEffect(()=>{he.current=v},[v]);const He=c.useCallback(async(ze=!1)=>{if(!Ce&&!i)return;ie.current?.abort();const Ie=new AbortController;ie.current=Ie,ze&&k(!0);try{const We=Ce?await LV():await _V(i,Ie.signal,we.current);if(ie.current!==Ie||Ie.signal.aborted)return;if(Ce){r(We);const Ye=FV(We,ue.current);I(Ye),X(AE(We,Ye)),$e.current=Q}else{const Ye=We.initialChanges,rt=Be.current,ct=we.current,it=ct!==$e.current,yt=it?{active:Ye,archived:null,all:null}:{...he.current,active:cV(he.current.active,Ye)},Et=rt==="active"?yt.active:yt[rt];r(QV(We,Ye)),he.current=yt,x(yt);const Tt=it?{active:null,archived:null,all:null}:ge.current;if(ge.current=Tt,S(Tt),!it&&Te.current==="native"&&We.native){const Le=Se.current,Ne=Le?Ta(Le):null,Ae=[];Tt[rt]&&Ae.push(OE(i,rt,{query:ct,signal:Ie.signal}).then(ve=>{if(ie.current!==Ie||Ie.signal.aborted)return;const je=ge.current,Ve=uV(je[rt],ve),Ze={...je,[rt]:Ve};ge.current=Ze,S(Ze)})),Le&&Ae.push(zE(i,Le,Ie.signal).then(ve=>{if(ie.current!==Ie||Ie.signal.aborted)return;const je=Se.current;je&&Ne===Ta(je)&&(Se.current=ve,T(ve))})),await Promise.allSettled(Ae)}const et=KV(it&&rt!=="active"?yt[rt]:Et,ue.current),Ot=ue.current;I(et),ue.current=et,et!==Ot&&(X(null),q(null),U(!1)),$e.current=ct}ze&&xe("状态已刷新")}catch(We){if(Ie.signal.aborted)return;xe(`刷新失败:${We.message}`,"error")}finally{ie.current===Ie&&(ie.current=null,ze&&k(!1))}},[i,xe,Ce]);c.useEffect(()=>{if(!Ce&&(!g||!i))return;He(!1);const ze=window.setInterval(()=>{He(!1)},pV);return()=>window.clearInterval(ze)},[i,g,He,Ce]),c.useEffect(()=>()=>{ie.current?.abort(),se.current?.abort(),ae.current?.abort(),me.current?.abort(),me.current?.abort(),ne.current?.abort()},[]),c.useEffect(()=>{if(Ce)return;let ze=!1;return BV().then(Ie=>{if(ze)return;m(Ie.projects??[]);const We=(Ie.projects??[]).filter(ct=>ct.availability==="available"),Ye=localStorage.getItem("comet-dashboard-project"),rt=We.find(ct=>ct.id===Ye)?.id??Ie.currentProjectId;l(ct=>ct??rt),b(!0)}).catch(Ie=>{ze||(b(!0),xe(`项目列表加载失败:${Ie.message}`,"error"))}),()=>{ze=!0}},[Ce]);const nt=c.useCallback(async(ze,Ie=!1)=>{if(Ce||!i||Ie&&se.current)return;const We=he.current[ze];if(Ie&&!We?.nextCursor)return;se.current?.abort();const Ye=new AbortController;se.current=Ye,E(ze);try{const rt=await HV(i,ze,{cursor:Ie?We?.nextCursor:void 0,query:Q,signal:Ye.signal});if(se.current!==Ye||Ye.signal.aborted)return;const ct=Ie&&We?{...rt,items:[...We.items,...rt.items]}:rt;x(it=>({...it,[ze]:ct})),r(it=>it&&ZV(it,ze,ct.items)),$e.current=Q}catch(rt){if(Ye.signal.aborted)return;xe(`变更列表加载失败:${rt.message}`,"error")}finally{se.current===Ye&&(se.current=null,E(null))}},[i,Q,xe,Ce]);c.useEffect(()=>{if(Ce||!o||!i||Q===$e.current)return;const ze=window.setTimeout(()=>{ie.current?.abort(),se.current?.abort(),ae.current?.abort(),x({active:null,archived:null,all:null}),he.current={active:null,archived:null,all:null},S({active:null,archived:null,all:null}),ge.current={active:null,archived:null,all:null},T(null),Se.current=null,B(null)},250);return()=>window.clearTimeout(ze)},[i,Q,o,Ce]),c.useEffect(()=>{Ce||!o||!i||v[F]||nt(F)},[i,nt,v,o,F,Ce]);const Ke=c.useCallback(async(ze,Ie=!1)=>{if(Ce||u!=="native"||!i||!o?.native||Ie&&ae.current)return;const We=ge.current[ze];if(Ie&&!We?.nextCursor)return;ae.current?.abort();const Ye=new AbortController;ae.current=Ye,$(ze);try{const rt=await OE(i,ze,{cursor:Ie?We?.nextCursor:void 0,query:Q,signal:Ye.signal});if(ae.current!==Ye||Ye.signal.aborted)return;const ct=Ie&&We?{...rt,items:[...We.items,...rt.items]}:rt,it={...ge.current,[ze]:ct};ge.current=it,S(it)}catch(rt){if(Ye.signal.aborted)return;if(Ie&&dV(rt)){const ct={...ge.current,[ze]:null};ge.current=ct,S(ct),xe("Native 变更列表已更新,正在重新加载第一页。","info");return}xe(`Native 变更列表加载失败:${rt.message}`,"error")}finally{ae.current===Ye&&(ae.current=null,$(null))}},[i,Q,o,xe,Ce,u]),Fe=c.useCallback(async ze=>{if(!ze)return;if(B(null),Se.current&&Ta(Se.current)!==Ta(ze)&&(Se.current=null,T(null)),Ce){T(ze),Se.current=ze;return}if(!i)return;me.current?.abort();const Ie=new AbortController;me.current=Ie,A(!0);try{const We=await zE(i,ze,Ie.signal);if(me.current!==Ie||Ie.signal.aborted)return;T(We),Se.current=We}catch(We){if(Ie.signal.aborted)return;B({change:ze,reason:We instanceof Error?We.message:String(We)}),xe(`Native 变更详情加载失败:${We.message}`,"error")}finally{me.current===Ie&&(me.current=null,A(!1))}},[i,xe,Ce]);c.useEffect(()=>{Ce||u!=="native"||!o?.native||C[F]||Ke(F)},[Ke,C,o,F,Ce,u]);const qe=H,Je=c.useMemo(()=>Ce?qV(o,F,Q):v[F]?.items??[],[v,Q,o,F,Ce]),Ue=v[F],Pe=Ce?Je.length:Ue?.total??Je.length,_e=C[F],Xe=F==="active"?o?.native?.activeChangeCount??0:F==="archived"?o?.native?.archivedChangeCount??0:o?.native?.totalChangeCount??0,De=Ce?o?.native?.changes?.length??0:_e?.total??Xe,Oe=c.useCallback(async ze=>{if(ue.current=ze,I(ze),q(null),Ce){X(AE(o,ze));return}if(!i)return;ne.current?.abort();const Ie=new AbortController;ne.current=Ie,U(!0);try{const We=await DV(i,ze,Ie.signal);if(ne.current!==Ie||Ie.signal.aborted)return;X(We)}catch(We){if(Ie.signal.aborted)return;q({id:ze,message:We instanceof Error?We.message:String(We)}),xe(`变更详情加载失败:${We.message}`,"error")}finally{ne.current===Ie&&(ne.current=null,U(!1))}},[i,o,xe,Ce]);c.useEffect(()=>{if(Ce||!o||!i||!fV({detailLoading:Z,selectedId:D,selectedDetailId:H?.id??null,visibleIds:Je.map(Ie=>Ie.id),failedDetailId:L?.id??null}))return;const ze=Je[0]?.id??null;if(ne.current?.abort(),!ze){ue.current=null,I(null),X(null),U(!1);return}Oe(ze)},[i,Z,L,Oe,H,D,o,Ce,Je]);const Qe=c.useCallback(ze=>J(ze),[]);return O.jsxs("main",{className:"dashboard-workbench min-h-screen bg-surface text-fg antialiased lg:grid lg:grid-cols-[var(--rail-w)_1fr]",children:[O.jsx(GV,{open:G,workflow:u,onWorkflow:f,onClose:()=>K(!1)}),G&&O.jsx("button",{className:"fixed inset-0 z-40 bg-black/30 lg:hidden","aria-label":"关闭导航",onClick:()=>K(!1)}),O.jsxs("section",{className:"min-w-0",children:[O.jsx(xV,{project:o?.project,projects:p,activeProjectId:i,onProjectSelect:ze=>{localStorage.setItem("comet-dashboard-project",ze),ie.current?.abort(),se.current?.abort(),ae.current?.abort(),me.current?.abort(),ne.current?.abort(),l(ze),r(null),x({active:null,archived:null,all:null}),he.current={active:null,archived:null,all:null},S({active:null,archived:null,all:null}),ge.current={active:null,archived:null,all:null},T(null),Se.current=null,B(null),I(null),ue.current=null,X(null),q(null),j(""),K(!1)},loading:V,query:Q,onQuery:j,onMenu:()=>K(!0),onRefresh:()=>He(!0),theme:e,onToggleTheme:t}),O.jsx("div",{className:"dashboard-content-shell",children:O.jsx("div",{className:"dashboard-content-inner",children:o?u==="native"?O.jsx(D7,{native:o.native,git:o.git,query:Q,tab:F,onTab:Qe,pagedChanges:Ce?null:_e?.items??[],total:De,hasMore:!!_e?.nextCursor,pageLoading:N===F||!Ce&&!_e,onLoadMore:()=>Ke(F,!0),selectedDetail:w,detailLoading:z,detailError:P,onSelect:Fe,onRetryDetail:()=>P?.change&&Fe(P.change),onPreview:Y,onCopyChangeName:ze=>jR(ze).then(()=>xe("Change 名称已复制")).catch(()=>xe("复制 Change 名称失败","error"))}):O.jsx(SV,{snapshot:o,visible:Je,visibleTotal:Pe,selected:qe,selectedId:D,tab:F,onTab:Qe,onSelect:Oe,hasMore:!!Ue?.nextCursor,pageLoading:R===F,onLoadMore:()=>nt(F,!0),detailLoading:Z,detailError:L,onRetryDetail:()=>D&&Oe(D),onPreview:Y}):O.jsx(jV,{})})})]}),O.jsx(zV,{artifact:te,onClose:()=>Y(null)})]})}function xV({project:e,loading:t,query:o,onQuery:r,projects:i,activeProjectId:l,onProjectSelect:u,onMenu:f,onRefresh:p,theme:m,onToggleTheme:g}){return O.jsxs("header",{className:"comet-workbench-header sticky top-0 z-30 border-b border-border-soft bg-surface/90 backdrop-blur-xl",children:[O.jsx(to,{className:"comet-header-menu lg:hidden",type:"text",icon:O.jsx(o7,{}),onClick:f,"aria-label":"打开导航"}),O.jsx("div",{className:"comet-header-context",children:O.jsx(Is,{className:"comet-project-select",value:l??void 0,placeholder:e?.name??"选择项目",showSearch:!0,optionFilterProp:"searchText",optionLabelProp:"selectedLabel",classNames:{popup:{root:"comet-project-select-dropdown"}},onChange:u,options:i.map(b=>({value:b.id,disabled:b.availability!=="available",searchText:`${b.name} ${b.path}`,selectedLabel:b.name,label:O.jsxs("span",{className:"comet-project-option",children:[O.jsx("strong",{className:"comet-project-option-name",children:b.name}),O.jsx("small",{className:"comet-project-option-path",children:b.path})]})}))})}),O.jsx("div",{className:"comet-header-search",children:O.jsx(Bs,{value:o,onChange:b=>r(b.target.value),prefix:O.jsx(V0,{className:"text-meta"}),placeholder:"搜索变更、产物或文件…",allowClear:!0})}),O.jsxs("div",{className:"comet-header-actions",children:[O.jsx(Gr,{title:"立即刷新",children:O.jsx(to,{className:"comet-refresh-button",icon:O.jsx(GL,{}),loading:t,onClick:p,"aria-label":"立即刷新"})}),O.jsx(Gr,{title:m==="dark"?"切换到亮色模式":"切换到暗色模式",children:O.jsx(to,{className:"hidden sm:inline-flex",type:"text",icon:m==="dark"?O.jsx(b7,{}):O.jsx(l7,{}),onClick:g,"aria-label":m==="dark"?"切换到亮色模式":"切换到暗色模式"})})]})]})}function SV({snapshot:e,visible:t,visibleTotal:o,selected:r,selectedId:i,tab:l,onTab:u,onSelect:f,hasMore:p,pageLoading:m,onLoadMore:g,detailLoading:b,detailError:v,onRetryDetail:x,onPreview:C}){const S=e.summary.activeChanges+e.summary.archivedChanges>0,R=e.classicError&&S,E=mV({detailLoading:b,selectedId:i,selectedDetailId:r?.id??null,failedDetailId:v?.id??null});return O.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[O.jsx(ME,{title:"项目概览",hint:`生成于 ${dv(e.project.generatedAt)}`}),O.jsx(CV,{command:r?.next?.command,description:r?.next?.description}),O.jsx(XV,{snapshot:e}),O.jsx(ME,{title:"变更工作区",hint:"查看文件产物与项目进度"}),e.classicError&&!S?O.jsx(IV,{error:e.classicError}):S?O.jsxs(O.Fragment,{children:[R?O.jsx(AV,{error:e.classicError}):null,O.jsx(MR,{leftClassName:"dashboard-workspace-left-inner-scroll",stableFrame:!0,left:O.jsx(YV,{visible:t,total:o,selectedId:i,tab:l,onTab:u,onSelect:f,hasMore:p,pageLoading:m,onLoadMore:g}),center:r?O.jsx(eF,{change:r,onPreview:C}):E?O.jsx("div",{className:"change-detail dashboard-change-detail-loading min-w-0 rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载变更详情…"}):v?O.jsxs("div",{className:"change-detail min-w-0 rounded-lg bg-bg p-10 text-center text-sm text-danger shadow-raised",children:[O.jsxs("p",{role:"alert",children:["变更详情加载失败:",v.message]}),O.jsx(to,{className:"mt-4",onClick:x,children:"重试"})]}):null,right:r?O.jsx(NV,{change:r,git:e.git,onPreview:C}):null})]}):O.jsx(PV,{})]})}function CV({command:e,description:t}){return O.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[O.jsxs("div",{className:"dashboard-priority-title",children:[O.jsx(av,{"aria-hidden":"true"}),O.jsx("span",{children:"下一步建议"})]}),O.jsx("p",{children:e?O.jsxs(O.Fragment,{children:["优先执行 ",O.jsx("code",{children:e}),t?`,${t}`:",完成当前工作流阶段。"]}):"当前变更没有待执行动作,可以继续检查产物与验证结果。"})]})}function ME({title:e,hint:t}){return O.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[O.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),O.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function $V({change:e,onPreview:t}){const o=new Map((e.artifactPreviews??[]).map(m=>[m.key,m])),r=e.artifacts?.grouped??[],i=r.length,l=r.filter(m=>m.exists).length,u=r.filter(m=>m.source==="openspec"),f=r.filter(m=>m.source==="superpowers"),p=r.filter(m=>m.source==="comet");return O.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[l,"/",i]})]}),O.jsxs("div",{className:"space-y-3",children:[O.jsx(Dg,{title:"OpenSpec",artifacts:u,previewByKey:o,onPreview:t}),O.jsx(Dg,{title:"Superpowers",artifacts:f,previewByKey:o,onPreview:t}),O.jsx(Dg,{title:"Comet",artifacts:p,previewByKey:o,onPreview:t})]})]})}function Dg({title:e,artifacts:t,previewByKey:o,onPreview:r}){return t.length===0?null:O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[O.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:e}),O.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),O.jsx("div",{className:"space-y-px",children:t.map(i=>{const l=o.get(i.key);return O.jsx(EV,{artifact:i,preview:l,onPreview:r},i.key)})})]})}function EV({artifact:e,preview:t,onPreview:o}){const r=e.exists,i=e.notApplicable,l=r?e.label:i?"无需生成":"未生成";return O.jsxs("button",{className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${r?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!r,onClick:()=>o({key:e.key,name:e.label,preview:t}),children:[O.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:r?O.jsx("span",{className:"h-2 w-2 rounded-full bg-accent"}):i?O.jsx("span",{className:"h-2 w-2 rounded-full border border-border bg-surface"}):O.jsx("span",{className:"h-2 w-2 rounded-full border border-border"})}),O.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:e.key}),O.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:l})]})}function wV({change:e}){const t=e.tasks.total,o=e.tasks.completed,r=Math.max(0,t-o),i=e.status==="archived",l=e.tasks.sections.filter($=>$.status==="done").length,u=e.tasks.sections.length,f=t?Math.round(o/t*100):0,p=gs(f,900,e.id),m=gs(o,900,e.id),g=gs(r,900,e.id),b=gs(l,900,e.id),v=Math.round(g),x=2*Math.PI*54,C=x*(1-p/100),S=r===0&&t>0,R=i||S?"bg-ok-soft text-success":"bg-accent-softer text-fg-2",E=i||S?"bg-success":"bg-accent",N=i?"已归档完成,流程已结束":S?`所有任务已完成,可以进入 ${e.phase==="verify"?"归档":"Verify"}`:`剩余 ${v} 项未完成,完成后进入 ${e.phase==="verify"?"归档":"Verify"}`;return O.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"任务进度"}),O.jsx("span",{className:`rounded-full px-2 py-0.5 text-[11px] font-medium ${S?"bg-ok-soft text-success":"bg-accent-soft text-accent"}`,children:S?"全部完成":`${v} 项待办`})]}),O.jsx("div",{className:"flex justify-center",children:O.jsxs("div",{className:"relative h-[110px] w-[110px]",children:[O.jsxs("svg",{className:"block size-full -rotate-90",viewBox:"0 0 120 120",role:"img","aria-label":`任务完成度 ${f}%`,children:[O.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"var(--color-border-soft)",strokeWidth:"7"}),O.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:S?"var(--color-success)":"var(--color-accent)",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:C})]}),O.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[O.jsxs("span",{className:"text-[26px] font-bold leading-none tabular-nums",children:[Math.round(p),"%"]}),O.jsx("span",{className:"mt-0.5 text-[10px] text-muted",children:"完成度"})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center gap-6 text-center",children:[O.jsxs("div",{children:[O.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:Math.round(m)}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"已完成"})]}),O.jsx("div",{className:"h-6 w-px bg-border-soft"}),O.jsxs("div",{children:[O.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:v}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"剩余"})]}),O.jsx("div",{className:"h-6 w-px bg-border-soft"}),O.jsxs("div",{children:[O.jsxs("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:[Math.round(b),"/",u]}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"分组"})]})]}),e.tasks.sections.length>0&&O.jsx("div",{className:"mt-4 space-y-2.5 border-t border-border-soft pt-4",children:e.tasks.sections.map($=>{const w=$.total?Math.round($.completed/$.total*100):0,T=$.status==="done";return O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[O.jsx("span",{className:"truncate text-[11px] text-fg-2",children:$.title}),O.jsxs("span",{className:"shrink-0 pl-2 font-mono text-[10px] text-muted",children:[$.completed,"/",$.total]})]}),O.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-surface",children:O.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${T?"bg-success":"bg-accent"}`,style:{width:`${w}%`}})})]},$.title)})}),O.jsxs("div",{className:`mt-4 flex items-center gap-2 rounded-lg px-3 py-2 text-[11px] ${R}`,children:[O.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${E}`}),O.jsx("span",{children:N})]})]})}function NV({change:e,git:t,onPreview:o}){return O.jsxs("aside",{className:"min-h-[480px] space-y-4",children:[e.status==="archived"?O.jsx(MV,{change:e}):O.jsx(RV,{change:e}),O.jsx(TV,{change:e}),O.jsx(OV,{git:t})]})}function RV({change:e}){return O.jsxs(Bf,{title:"下一步建议",tag:uv(e.phase),children:[O.jsxs("div",{className:"rounded-xl bg-fg px-4 py-3 font-mono text-[13px] text-bg",children:[O.jsx("span",{className:"text-success",children:"$ "}),e.next?.command??"—"]}),O.jsx("p",{className:"text-sm text-fg-2",children:e.next?.reason??"暂无建议"}),O.jsx("p",{className:"text-[13px] leading-relaxed text-muted",children:e.next?.description??""})]})}function MV({change:e}){return O.jsxs(Bf,{title:"归档摘要",tag:"已归档",children:[O.jsx("div",{className:"break-words rounded-xl bg-accent-soft px-4 py-3 font-mono text-[13px] text-accent",children:e.archive?.archiveName??e.name}),O.jsxs("p",{className:"break-words text-sm text-fg-2",children:["原名:",e.archive?.originalName??e.name," · 归档于:",e.archive?.archivedAt??"—"]}),O.jsxs("p",{className:"break-words text-[13px] leading-relaxed text-muted",children:["归档路径:",e.archive?.archivePath??e.path," · 任务:",e.tasks.completed," /"," ",e.tasks.total]})]})}function TV({change:e}){const t=e.risks??[];return O.jsx(Bf,{title:"风险提示",tag:`${t.length} 项`,children:t.length===0?O.jsx("div",{className:"rounded-xl bg-surface-warm p-3 text-sm text-muted",children:"当前未发现阻塞风险。"}):O.jsx("div",{className:"space-y-2",children:t.map(o=>O.jsxs("div",{className:"rounded-xl border border-border-soft p-3",children:[O.jsxs("div",{className:"flex gap-2 text-sm font-semibold",children:[O.jsx("span",{className:o.level==="error"?"text-danger":o.level==="warning"?"text-warn":"text-meta",children:"●"}),O.jsx("span",{children:o.message})]}),O.jsx("div",{className:"mt-1 font-mono text-xs text-meta",children:o.code})]},`${o.code}-${o.message}`))})})}function OV({git:e}){return O.jsxs(Bf,{title:"Git 快照",tag:`${e.dirtyFiles} 个未提交`,children:[O.jsx(TE,{k:"分支",v:e.branch??"—"}),O.jsx(TE,{k:"HEAD",v:e.head??"—"}),O.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"最近提交"}),O.jsx("ul",{className:"space-y-1",children:e.recentCommits.map(t=>O.jsx("li",{className:"truncate text-sm text-fg-2",children:t},t))}),O.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"未提交文件"}),O.jsx("ul",{className:"space-y-1",children:e.dirtyFileList.slice(0,5).map(t=>O.jsx("li",{className:"break-all font-mono text-xs text-warn",children:t},t))})]})}function Bf({title:e,tag:t,children:o}){return O.jsxs("article",{className:"rounded-lg bg-bg p-5 shadow-card",children:[O.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[O.jsx("h4",{className:"font-semibold",children:e}),t&&O.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:t})]}),O.jsx("div",{className:"space-y-3",children:o})]})}function TE({k:e,v:t}){return O.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[O.jsx("span",{className:"w-16 shrink-0 text-muted",children:e}),O.jsx("span",{className:"min-w-0 truncate font-mono text-[13px]",children:t})]})}function zV({artifact:e,onClose:t}){const[o,r]=c.useState({status:"idle"}),[i,l]=c.useState(!1),[u,f]=c.useState([]),[p,m]=c.useState(""),g=c.useRef(null),b=c.useRef(null);if(c.useEffect(()=>{if(!e){l(!1);return}const x=window.scrollY,C={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width};return document.body.style.position="fixed",document.body.style.top=`-${x}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{l(!1),document.body.style.position=C.position,document.body.style.top=C.top,document.body.style.left=C.left,document.body.style.right=C.right,document.body.style.width=C.width,window.scrollTo(0,x)}},[e]),c.useEffect(()=>{if(!e){r({status:"idle"});return}let x=!1;r({status:"loading"});const C=e.preview,S=C?.path??"",R=e.key==="cometYaml"||/\.ya?ml$/i.test(S),E=e.key==="handoff"||e.key==="checkpoint"||/\.json$/i.test(S),N=R||E,$=C?.exists?N?C.content?.trimEnd()||"":`${C.content?.trimEnd()||"这个产物是空文件。"}${C.truncated?`
|
|
249
|
-
|
|
250
|
-
> 内容过长,已截取前 256KB。`:""}`:C?`尚未生成 ${e.name}。`:"这个产物文件存在,但当前 dashboard 服务返回的数据里没有全文内容。请重启 dashboard 服务后再刷新页面。";return(async()=>{try{let w;if(C?.exists&&N?$.trim()?(w=E?await NE($):await wE($),C.truncated&&(w+="<p><em>内容过长,已截取前 256KB。</em></p>")):w=E?await NE(""):await wE(""):w=await cc($),x)return;if(!w.trim()){r({status:"empty"});return}r({status:"success",html:w})}catch(w){if(x)return;r({status:"error",message:w instanceof Error?w.message:"产物预览渲染失败,请重试"})}})(),()=>{x=!0}},[e]),c.useEffect(()=>{if(o.status==="success"&&g.current){A7(g.current);const x=z7(g.current);f(x),x.length>0&&m(x[0].id)}else f([]),m("")},[o]),c.useEffect(()=>{if(!i)return;const x=b.current,C=g.current;if(!x||!C||u.length===0)return;const S=()=>{const R=u.map(({id:N})=>document.getElementById(N)).filter(Boolean);let E=R[0]?.id??"";for(const N of R){const $=N.getBoundingClientRect(),w=x.getBoundingClientRect();$.top-w.top<=80&&(E=N.id)}m(E)};return x.addEventListener("scroll",S,{passive:!0}),()=>x.removeEventListener("scroll",S)},[u,i]),!e)return null;const v=e.preview;return O.jsxs("div",{className:i?"fixed inset-0 z-[90] flex":"fixed inset-0 z-[90] grid grid-cols-[minmax(0,1fr)_minmax(360px,760px)] max-sm:grid-cols-1",children:[!i&&O.jsx("button",{"aria-label":"关闭产物预览",className:"bg-black/30 max-sm:hidden",onClick:t}),O.jsxs("section",{className:["flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-bg",i?"h-full w-full":"border-l border-border shadow-[-20px_0_44px_rgba(0,0,0,0.12)]"].join(" "),children:[O.jsxs("header",{className:"flex items-start gap-3 border-b border-border-soft p-5",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("h2",{className:"text-xl font-bold",children:e.name}),O.jsxs("div",{className:"mt-1 flex items-start gap-1.5",children:[v?.path&&O.jsx("button",{type:"button",className:"grid size-7 shrink-0 place-items-center rounded-lg text-muted hover:bg-surface hover:text-fg-2","aria-label":"复制文件路径",onClick:async()=>{try{await navigator.clipboard.writeText(v.path),toast("路径已复制")}catch{toast("复制失败","error")}},children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),O.jsx("p",{className:"min-w-0 flex-1 break-all font-mono text-xs text-meta",children:v?.path??"当前服务未返回全文内容"})]}),(v?.size!=null||v?.updatedAt)&&O.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-3 text-[11px] text-muted",children:[v?.size!=null&&O.jsx("span",{children:WV(v.size)}),v?.updatedAt&&O.jsxs("span",{children:["更新于 ",dv(v.updatedAt)]})]})]}),O.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[O.jsx("button",{type:"button",className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:()=>l(x=>!x),"aria-label":i?"退出全屏":"全屏展示",children:i?O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})}):O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}),O.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:t,"aria-label":"关闭产物预览",children:"×"})]})]}),O.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[i&&u.length>0&&O.jsxs("nav",{"aria-label":"文档目录",className:"hidden w-[220px] shrink-0 overflow-y-auto border-r border-border-soft bg-surface px-3 py-4 sm:block",children:[O.jsx("p",{className:"mb-2 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted",children:"目录"}),O.jsx("ul",{className:"space-y-0.5",children:u.map(x=>O.jsx("li",{children:O.jsx("a",{href:`#${x.id}`,onClick:C=>{C.preventDefault();const S=document.getElementById(x.id),R=b.current;if(!S||!R)return;const E=S.getBoundingClientRect().top-R.getBoundingClientRect().top+R.scrollTop-16;R.scrollTo({top:E,behavior:"smooth"}),m(x.id)},className:["block rounded-md px-2 py-1.5 leading-snug transition-colors",x.depth===1?"text-[13px] font-medium":"",x.depth===2?"pl-4 text-xs":"",x.depth===3?"pl-7 text-xs":"",p===x.id?"bg-accent-soft font-medium text-accent":"text-fg-2 hover:bg-surface-warm hover:text-fg"].join(" "),children:x.text})},x.id))})]}),O.jsxs("div",{ref:b,className:["min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",i?"px-12 py-6":"p-5"].join(" "),children:[o.status==="loading"&&O.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"正在加载..."}),o.status==="empty"&&O.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"该产物文件尚未生成"}),o.status==="error"&&O.jsx("p",{role:"alert",className:"py-10 text-center text-sm text-danger",children:o.message}),o.status==="success"&&O.jsx("article",{ref:g,className:"md-github",dangerouslySetInnerHTML:{__html:o.html}})]})]})]})]})}function PR({tone:e="neutral",children:t}){const o={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[e]??"bg-surface text-fg-2";return O.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${o}`,children:t})}function AV({error:e}){return O.jsxs("div",{role:"status",className:"mb-4 rounded-lg border border-warn/30 bg-warn-soft p-4 shadow-card",children:[O.jsx("h3",{className:"font-semibold text-warn",children:"Classic 数据部分读取失败"}),O.jsxs("p",{className:"mt-1 break-words text-sm text-fg-2",children:["已展示可读取的变更;请检查其余 Classic 产物目录后刷新。",e.message]})]})}function IV({error:e}){return O.jsxs("div",{role:"alert",className:"rounded-lg border border-danger/30 bg-danger-soft p-6 shadow-card",children:[O.jsx("h3",{className:"font-semibold text-danger",children:"Classic 数据读取失败"}),O.jsx("p",{className:"mt-2 break-words text-sm text-fg-2",children:e.message}),O.jsx("p",{className:"mt-3 text-sm text-muted",children:"请检查 .comet/config.yaml 与 Classic 产物目录,然后刷新 Dashboard。"})]})}function PV(){return O.jsxs("section",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[O.jsx("h3",{className:"text-lg font-semibold tracking-tight",children:"当前没有 Classic change"}),O.jsx("p",{className:"mt-2 text-sm text-muted",children:"Classic 变更出现后会在这里展示。"})]})}function jV(){return O.jsx("div",{className:"mx-auto max-w-dashboard rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 dashboard..."})}async function BV(){const e=await fetch("/api/dashboard/projects",{cache:"no-store"});if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.json()}async function _V(e,t,o=""){const r=new URLSearchParams;o.trim()&&r.set("q",o.trim());const i=r.toString()?`?${r.toString()}`:"",l=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/overview${i}`,{cache:"no-store",signal:t});if(!l.ok)throw new Error(`HTTP ${l.status}`);return l.json()}async function HV(e,t,o={}){const r=new URLSearchParams({status:t,limit:"5"});o.cursor&&r.set("cursor",o.cursor),o.query?.trim()&&r.set("q",o.query.trim());const i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/changes?${r.toString()}`,{cache:"no-store",signal:o.signal});if(!i.ok)throw new Error(`HTTP ${i.status}`);return i.json()}async function OE(e,t,o={}){const r=new URLSearchParams({status:t,limit:"5"});o.cursor&&r.set("cursor",o.cursor),o.query?.trim()&&r.set("q",o.query.trim());const i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/native-changes?${r.toString()}`,{cache:"no-store",signal:o.signal});if(!i.ok)throw await AR(i);return i.json()}async function zE(e,t,o){const r=new URLSearchParams({status:t.status,changeName:t.name});t.archiveName&&r.set("archiveName",t.archiveName);const i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/native-change?${r.toString()}`,{cache:"no-store",signal:o});if(!i.ok)throw await AR(i);return i.json()}async function DV(e,t,o){const r=new URLSearchParams({changeId:t}),i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/change?${r.toString()}`,{cache:"no-store",signal:o});if(!i.ok)throw new Error(`HTTP ${i.status}`);return i.json()}async function LV(){const e=await mi(()=>import("./demo-CeIDHUFJ.js"),[]);return VV(e.DEMO_SNAPSHOT)}function VV(e){const t=o=>{const i=(o.artifacts?.grouped??[]).map(l=>({key:l.key,label:l.label,path:l.path,exists:l.exists,size:l.exists?1024+Math.floor(Math.random()*4096):void 0,updatedAt:l.exists?"2026-06-25T12:00:00.000Z":void 0,content:l.exists?`# ${l.label}
|
|
251
|
-
|
|
252
|
-
${l.label}:${o.displayName}
|
|
253
|
-
|
|
254
|
-
- 当前阶段:${uv(o.phase)}
|
|
255
|
-
- 任务进度:${o.tasks.completed}/${o.tasks.total}
|
|
256
|
-
- Verify:${cv[o.verify.result]??"未知"}
|
|
257
|
-
`:void 0}));return{...o,artifactPreviews:i}};return{...e,changes:{active:(e.changes.active??[]).map(t),archived:(e.changes.archived??[]).map(t)}}}function FV(e,t){const o=[...e.changes.active??[],...e.changes.archived??[]];return t&&o.some(r=>r.id===t)?t:e.changes.active?.[0]?.id??e.changes.archived?.[0]?.id??null}function AE(e,t){return!e||!t?null:[...e.changes.active??[],...e.changes.archived??[]].find(o=>o.id===t)??null}function qV(e,t,o){if(!e)return[];const r=t==="archived"?e.changes.archived??[]:t==="all"?[...e.changes.active??[],...e.changes.archived??[]]:e.changes.active??[],i=o.trim().toLowerCase();return i?r.filter(l=>[l.name,l.displayName,l.workflow,l.phase].filter(Boolean).join(" ").toLowerCase().includes(i)):r}function UV(e){return e.relativePath||e.name}function uv(e){return n0.find(([t])=>t===e)?.[1]??e??"未知"}function dv(e){if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const o=r=>String(r).padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}function WV(e){return e==null?null:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}async function jR(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.cssText="position:fixed;opacity:0;pointer-events:none",document.body.append(t),t.select();const o=document.execCommand("copy");if(t.remove(),!o)throw new Error("当前浏览器不支持复制")}XE.createRoot(document.getElementById("root")).render(O.jsx(vV,{}));function GV({open:e,workflow:t,onWorkflow:o,onClose:r}){const i=O.jsx(Ec,{mode:"inline",selectedKeys:[t],items:[{key:"classic",icon:O.jsx(yR,{}),label:"Classic 工作流"},{key:"native",icon:O.jsx(RD,{}),label:"Native 工作流"}],onClick:({key:l})=>{o(l),r()}});return O.jsxs(O.Fragment,{children:[O.jsx(_s.Sider,{className:"dashboard-sidebar !hidden !bg-bg lg:!block",width:228,theme:"light",children:O.jsxs("div",{className:"flex h-full flex-col",children:[O.jsxs("div",{className:"dashboard-sidebar-brand flex items-center gap-2",children:[O.jsx("img",{src:"/favicon.png",alt:"Comet",className:"size-7 rounded-[7px]"}),O.jsxs("div",{children:[O.jsx("strong",{children:"Comet Dashboard"}),O.jsx("div",{className:"text-xs text-meta",children:"只读工作台"})]})]}),O.jsxs("div",{className:"dashboard-sidebar-navigation",children:[O.jsxs("div",{className:"dashboard-sidebar-feature",children:[O.jsx(B9,{"aria-hidden":"true"}),O.jsx("span",{children:"变更工作区"})]}),O.jsx("div",{className:"dashboard-sidebar-label",children:"工作流"}),i]}),O.jsxs("div",{className:"dashboard-sidebar-status",children:[O.jsxs("div",{className:"flex items-center gap-2 font-medium text-fg",children:[O.jsx(av,{"aria-hidden":"true"}),"工作台状态"]}),O.jsx("div",{className:"mt-2 text-xs text-meta",children:"只读连接 · 自动同步"})]})]})}),O.jsx(fR,{title:"Comet 工作台",placement:"left",open:e,onClose:r,size:280,children:i})]})}function XV({snapshot:e}){const[t,o]=c.useState(0),r=[["活跃变更",e.summary.activeChanges,"当前 Classic workflow","进行中",SR],["已归档变更",e.summary.archivedChanges,"历史变更已归档","已完成",xR],["Verify 失败",e.summary.verifyFailed,"验证结果",e.summary.verifyFailed?"阻塞":"健康",CR],["未完成任务",e.summary.tasksIncomplete,"任务推进情况",e.summary.tasksIncomplete?"待办":"清零",As],["Git 未提交",e.summary.dirtyFiles,"工作区状态",e.summary.dirtyFiles?"未提交":"干净",yR]];return O.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:r.map(([i,l,u,f,p],m)=>O.jsx(kV,{title:i,value:l,note:u,status:f,icon:p,tone:`dashboard-summary-tone-${m+1}`,selected:t===m,onClick:()=>o(m)},i))})}function kV({title:e,value:t,note:o,status:r,icon:i,tone:l,selected:u,onClick:f}){const p=gs(t,850,t);return O.jsxs("button",{type:"button","aria-pressed":u,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${l} ${u?"dashboard-summary-primary":""}`,onClick:f,children:[O.jsxs("div",{className:"dashboard-summary-card-top",children:[O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),O.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(p)})]}),O.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:O.jsx(i,{})})]}),O.jsx("span",{className:"dashboard-summary-status",children:r}),O.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:o})]})}function YV({visible:e,total:t,selectedId:o,tab:r,onTab:i,onSelect:l,hasMore:u,pageLoading:f,onLoadMore:p}){const m=[["active","活跃"],["archived","已归档"],["all","全部"]].map(([g,b])=>({key:g,label:b}));return O.jsx(lc,{className:"classic-changes-explorer min-w-0",title:O.jsxs("span",{children:["Changes Explorer ",O.jsx(xN,{count:t,showZero:!0,className:"ml-2"})]}),children:O.jsx(J0,{activeKey:r,onChange:i,items:m.map(g=>({...g,children:O.jsx(JV,{visible:e,selectedId:o,onSelect:l,hasMore:u,pageLoading:f,onLoadMore:p})}))})})}function KV(e,t){const o=e?.items??[];return t&&o.some(r=>r.id===t)?t:o[0]?.id??null}function QV(e,t){return{...e,changes:{active:t?.items??[],archived:[]}}}function ZV(e,t,o){return t==="active"?{...e,changes:{...e.changes,active:o}}:t==="archived"?{...e,changes:{...e.changes,archived:o}}:{...e,changes:{active:o.filter(r=>r.status==="active"),archived:o.filter(r=>r.status==="archived")}}}function JV({visible:e,selectedId:t,onSelect:o,hasMore:r,pageLoading:i,onLoadMore:l}){const u=c.useRef(null),f=c.useRef(null);c.useEffect(()=>{const m=u.current,g=f.current;if(!m||!g||!r||!l)return;const b=new IntersectionObserver(([v])=>{v.isIntersecting&&!i&&l()},{root:m});return b.observe(g),()=>b.disconnect()},[r,l,i]);const p=c.useCallback(m=>{if(!r||i||!l)return;const{scrollTop:g,clientHeight:b,scrollHeight:v}=m.currentTarget;g>0&&g+b>=v-24&&l()},[r,l,i]);return O.jsxs("div",{ref:u,className:"dashboard-change-list",onScroll:p,children:[e.length===0&&!i?O.jsx(Hr,{image:Hr.PRESENTED_IMAGE_SIMPLE,description:"暂无变更"}):e.map(m=>O.jsx("div",{className:`dashboard-change-list-item ${m.id===t?"selected":""} px-2`,children:O.jsx(to,{className:`dashboard-change-row ${m.id===t?"dashboard-change-row-selected":""}`,type:"text",block:!0,onClick:()=>o(m.id),children:O.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("strong",{className:"block truncate",children:m.displayName}),O.jsxs("span",{className:"mt-0.5 block text-xs text-meta",children:[uv(m.phase)," · ",m.tasks.completed,"/",m.tasks.total]}),O.jsx(VL,{percent:m.tasks.total?Math.round(m.tasks.completed/m.tasks.total*100):0,className:"mt-1",size:"small",showInfo:!1})]}),O.jsx(PR,{tone:IR[m.verify.result]??"neutral",children:cv[m.verify.result]??"未知"})]})})},m.id)),O.jsx("div",{ref:f,className:"py-2 text-center text-xs text-meta","aria-live":"polite",children:i?O.jsx(nv,{size:"small"}):r?"继续下滑加载更多":null})]})}function eF({change:e,onPreview:t}){const[o,r]=c.useState(!1),i=e.status==="archived"?"archive":e.phase,l=Math.max(0,n0.findIndex(([u])=>u===i));return O.jsxs(lc,{className:"change-detail min-w-0",title:O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("span",{className:"truncate",children:e.displayName}),O.jsx(Gr,{title:"复制 Change 名称",children:O.jsx(to,{type:"text",size:"small",icon:o?O.jsx(As,{}):O.jsx(vR,{}),"aria-label":o?"已复制 Change 名称":"复制 Change 名称",onClick:()=>jR(e.name).then(()=>{r(!0),toast("Change 名称已复制"),window.setTimeout(()=>r(!1),1600)}).catch(()=>toast("复制 Change 名称失败","error"))})})]}),extra:O.jsx(PR,{tone:e.status==="archived"?"neutral":IR[e.verify.result],children:e.status==="archived"?"已归档":cv[e.verify.result]}),children:[O.jsxs("div",{className:"mb-4 text-xs text-meta",children:[e.workflow??"—"," · 更新于 ",dv(e.updatedAt)," ·"," ",UV(e)]}),O.jsx(C9,{size:"small",current:l,items:n0.map(([,u])=>({title:u}))}),O.jsx(qw,{className:"dashboard-next-step-alert",type:"info",showIcon:!0,title:e.next?.command?`下一步:${e.next.command}`:"该变更没有待执行的下一步",description:e.next?.description}),O.jsxs("div",{className:"change-detail-panels grid min-w-0 gap-4",children:[O.jsx(lc,{size:"small",title:"关键产物",children:O.jsx($V,{change:e,onPreview:t})}),O.jsx(wV,{change:e})]})]})}export{tw as C,nw as K,x4 as L,nF as M,oF as S,mi as _,wS as a,rF as b,CS as c,Xt as g,I4 as m,ec as s};
|