@rpamis/comet 0.4.0-rc.2 → 0.4.0-rc.3
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/LICENSE +21 -21
- package/README.md +1 -1
- package/assets/manifest.json +1 -1
- package/assets/skills/comet/scripts/comet-archive.mjs +55 -55
- package/assets/skills/comet/scripts/comet-entry-runtime.mjs +1 -1
- package/assets/skills/comet/scripts/comet-guard.mjs +79 -79
- package/assets/skills/comet/scripts/comet-handoff.mjs +64 -64
- package/assets/skills/comet/scripts/comet-hook-guard.mjs +51 -51
- package/assets/skills/comet/scripts/comet-hook-router.mjs +123 -123
- package/assets/skills/comet/scripts/comet-resume-probe.mjs +48 -48
- package/assets/skills/comet/scripts/comet-runtime.mjs +128 -128
- package/assets/skills/comet/scripts/comet-state.mjs +60 -60
- package/assets/skills/comet/scripts/comet-yaml-validate.mjs +15 -15
- package/assets/skills/comet-native/SKILL.md +2 -2
- package/assets/skills/comet-native/reference/commands.md +3 -2
- package/assets/skills/comet-native/scripts/comet-native-archive.mjs +120 -120
- package/assets/skills/comet-native/scripts/comet-native-doctor.mjs +126 -126
- package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +62 -62
- package/assets/skills/comet-native/scripts/comet-native-init.mjs +57 -57
- package/assets/skills/comet-native/scripts/comet-native-new.mjs +87 -87
- package/assets/skills/comet-native/scripts/comet-native-next.mjs +129 -129
- package/assets/skills/comet-native/scripts/comet-native-root.mjs +67 -67
- package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +157 -157
- package/assets/skills/comet-native/scripts/comet-native-select.mjs +98 -98
- package/assets/skills/comet-native/scripts/comet-native-show.mjs +88 -88
- package/assets/skills/comet-native/scripts/comet-native-spec.mjs +94 -94
- package/assets/skills/comet-native/scripts/comet-native-status.mjs +91 -91
- package/assets/skills-zh/comet-native/SKILL.md +2 -2
- package/assets/skills-zh/comet-native/reference/commands.md +3 -2
- package/dist/app/commands/bundle.d.ts.map +1 -1
- package/dist/app/commands/bundle.js.map +1 -1
- package/dist/app/commands/dashboard.d.ts +1 -1
- package/dist/app/commands/dashboard.js +1 -1
- package/dist/app/commands/doctor.d.ts.map +1 -1
- package/dist/app/commands/doctor.js +1 -1
- package/dist/app/commands/doctor.js.map +1 -1
- package/dist/app/commands/init.js +2 -2
- package/dist/app/commands/init.js.map +1 -1
- package/dist/app/commands/platform-select-prompt.d.ts.map +1 -1
- package/dist/app/commands/platform-select-prompt.js +1 -0
- package/dist/app/commands/platform-select-prompt.js.map +1 -1
- package/dist/app/commands/update.d.ts.map +1 -1
- package/dist/app/commands/update.js +12 -5
- package/dist/app/commands/update.js.map +1 -1
- package/dist/domains/agent-learning/policy-compiler.d.ts.map +1 -1
- package/dist/domains/agent-learning/policy-compiler.js.map +1 -1
- package/dist/domains/agent-learning/types.d.ts.map +1 -1
- package/dist/domains/agent-learning/types.js.map +1 -1
- package/dist/domains/bundle/authoring.d.ts.map +1 -1
- package/dist/domains/bundle/authoring.js.map +1 -1
- package/dist/domains/bundle/next-action.d.ts.map +1 -1
- package/dist/domains/bundle/next-action.js.map +1 -1
- package/dist/domains/bundle/readiness-user-summary.d.ts.map +1 -1
- package/dist/domains/bundle/readiness-user-summary.js.map +1 -1
- package/dist/domains/bundle/types.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -1
- package/dist/domains/comet-entry/current-selection.d.ts.map +1 -1
- package/dist/domains/comet-entry/current-selection.js.map +1 -1
- package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -1
- package/dist/domains/comet-entry/init-workflow.js.map +1 -1
- package/dist/domains/comet-entry/types.d.ts.map +1 -1
- package/dist/domains/comet-memory/personal-memory.d.ts.map +1 -1
- package/dist/domains/comet-memory/personal-memory.js.map +1 -1
- package/dist/domains/comet-memory/types.d.ts.map +1 -1
- package/dist/domains/comet-memory/types.js.map +1 -1
- package/dist/domains/comet-native/native-atomic-file.d.ts +1 -0
- package/dist/domains/comet-native/native-atomic-file.d.ts.map +1 -1
- package/dist/domains/comet-native/native-atomic-file.js +19 -0
- package/dist/domains/comet-native/native-atomic-file.js.map +1 -1
- package/dist/domains/comet-native/native-children.d.ts +1 -0
- package/dist/domains/comet-native/native-children.d.ts.map +1 -1
- package/dist/domains/comet-native/native-children.js +15 -4
- package/dist/domains/comet-native/native-children.js.map +1 -1
- package/dist/domains/comet-native/native-cli-help.js +1 -1
- package/dist/domains/comet-native/native-cli-help.js.map +1 -1
- package/dist/domains/comet-native/native-cli-shared.js.map +1 -1
- package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -1
- package/dist/domains/comet-native/native-evidence-storage.js.map +1 -1
- package/dist/domains/comet-native/native-lock.d.ts.map +1 -1
- package/dist/domains/comet-native/native-lock.js +10 -1
- package/dist/domains/comet-native/native-lock.js.map +1 -1
- package/dist/domains/comet-native/native-loop-runtime.d.ts.map +1 -1
- package/dist/domains/comet-native/native-loop-runtime.js +21 -3
- package/dist/domains/comet-native/native-loop-runtime.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 +35 -2
- package/dist/domains/comet-native/native-next-command.js.map +1 -1
- package/dist/domains/comet-native/native-output-language.d.ts.map +1 -1
- package/dist/domains/comet-native/native-output-language.js.map +1 -1
- package/dist/domains/comet-native/native-portable-archive.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-archive.js +17 -1
- package/dist/domains/comet-native/native-portable-archive.js.map +1 -1
- package/dist/domains/comet-native/native-portable-continuation.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-continuation.js +28 -29
- package/dist/domains/comet-native/native-portable-continuation.js.map +1 -1
- package/dist/domains/comet-native/native-portable-migration.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-migration.js.map +1 -1
- package/dist/domains/comet-native/native-portable-recovery.d.ts +1 -0
- package/dist/domains/comet-native/native-portable-recovery.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-recovery.js +2 -2
- package/dist/domains/comet-native/native-portable-recovery.js.map +1 -1
- package/dist/domains/comet-native/native-portable-runtime.d.ts +21 -0
- package/dist/domains/comet-native/native-portable-runtime.d.ts.map +1 -1
- package/dist/domains/comet-native/native-portable-runtime.js +113 -3
- package/dist/domains/comet-native/native-portable-runtime.js.map +1 -1
- 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-runner-input.d.ts.map +1 -1
- package/dist/domains/comet-native/native-runner-input.js +14 -27
- package/dist/domains/comet-native/native-runner-input.js.map +1 -1
- package/dist/domains/comet-native/native-schema-migration.d.ts.map +1 -1
- package/dist/domains/comet-native/native-schema-migration.js.map +1 -1
- package/dist/domains/comet-native/native-supervisor.d.ts +11 -1
- package/dist/domains/comet-native/native-supervisor.d.ts.map +1 -1
- package/dist/domains/comet-native/native-supervisor.js +61 -0
- package/dist/domains/comet-native/native-supervisor.js.map +1 -1
- package/dist/domains/comet-native/native-types.d.ts.map +1 -1
- package/dist/domains/comet-native/native-verification-receipt.d.ts.map +1 -1
- package/dist/domains/comet-native/native-verification-receipt.js.map +1 -1
- package/dist/domains/comet-native/native-workspace.d.ts.map +1 -1
- package/dist/domains/comet-native/native-workspace.js.map +1 -1
- package/dist/domains/comet-plugin/integration.d.ts +2 -0
- package/dist/domains/comet-plugin/integration.d.ts.map +1 -1
- package/dist/domains/comet-plugin/integration.js +10 -6
- package/dist/domains/comet-plugin/integration.js.map +1 -1
- package/dist/domains/dashboard/collector.js +1 -1
- package/dist/domains/dashboard/default-plugin-host.d.ts +3 -0
- package/dist/domains/dashboard/default-plugin-host.d.ts.map +1 -1
- package/dist/domains/dashboard/default-plugin-host.js +38 -4
- package/dist/domains/dashboard/default-plugin-host.js.map +1 -1
- package/dist/domains/dashboard/native-adapter.d.ts.map +1 -1
- package/dist/domains/dashboard/native-adapter.js.map +1 -1
- package/dist/domains/dashboard/web/assets/abnfDiagram-VCTEODGH-UcCx24DV.js +1 -0
- package/dist/domains/dashboard/web/assets/arc-n8qsRq7W.js +1 -0
- package/dist/domains/dashboard/web/assets/architecture-7GRP2DOG-B5p4GzJf.js +1 -0
- package/dist/domains/dashboard/web/assets/architectureDiagram-5GKGNRK7-D4pJ8CU0.js +36 -0
- package/dist/domains/dashboard/web/assets/array-BifhSqXX.js +1 -0
- package/dist/domains/dashboard/web/assets/blockDiagram-I7D4REHJ-C7n-qrSQ.js +129 -0
- package/dist/domains/dashboard/web/assets/browser-CgwPGwaV.js +107 -0
- package/dist/domains/dashboard/web/assets/c4Diagram-7LVT6UL2-cMVrWYOm.js +38 -0
- package/dist/domains/dashboard/web/assets/channel-BZeSeXVb.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-4HAMMTFA-CE5QrCQd.js +62 -0
- package/dist/domains/dashboard/web/assets/{chunk-5VM5RSS4-CopXcnFA.js → chunk-5VM5RSS4-ZNzvKenW.js} +2 -2
- package/dist/domains/dashboard/web/assets/chunk-75Z2AOVW-BtZqN-pM.js +2 -0
- package/dist/domains/dashboard/web/assets/chunk-DU6HZSFF-CChv0huc.js +125 -0
- package/dist/domains/dashboard/web/assets/chunk-F27PBJKO-CDT1ttJ8.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-FOHPRMQF-DHwB1DNv.js +161 -0
- package/dist/domains/dashboard/web/assets/chunk-GMAD6QVW-y5m6LMR7.js +72 -0
- package/dist/domains/dashboard/web/assets/chunk-GVQU2GXP-DkhKkaHd.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-IMKFNOWR-BaDSh7Jp.js +231 -0
- package/dist/domains/dashboard/web/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-L3NEJ4N5-B4ztH2fV.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-OSK3NFVY-BhX6NVzA.js +10 -0
- package/dist/domains/dashboard/web/assets/chunk-P2QGCYS3-BCNdGJkX.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-POPQ4Y6H-DwYVuiXw.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-PWAF6VOD-Cyg0IO0R.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-SHT3W25Y-BZ6skx8I.js +168 -0
- package/dist/domains/dashboard/web/assets/chunk-SVP7TREG-CLIGmSO0.js +88 -0
- package/dist/domains/dashboard/web/assets/chunk-TICWLB2K-BAQBbsn9.js +206 -0
- package/dist/domains/dashboard/web/assets/chunk-XXDRQBXY-D07UbEpV.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/domains/dashboard/web/assets/classDiagram-ZZMXUADV-2fcinal6.js +1 -0
- package/dist/domains/dashboard/web/assets/classDiagram-v2-VYDZK3BY-2fcinal6.js +1 -0
- package/dist/domains/dashboard/web/assets/cose-bilkent-JH36ORCC-wIi0mUih.js +1 -0
- package/dist/domains/dashboard/web/assets/cynefin-OW5HDTMX-DBdxyuTN.js +1 -0
- package/dist/domains/dashboard/web/assets/cynefinDiagram-5FMLGOSQ-DzO3jXxV.js +62 -0
- package/dist/domains/dashboard/web/assets/cytoscape.esm-CGd-uY3x.js +321 -0
- package/dist/domains/dashboard/web/assets/dagre-GXQ25YYZ-CE7H_hZS.js +4 -0
- package/dist/domains/dashboard/web/assets/dagre-PrKaheQc.js +1 -0
- package/dist/domains/dashboard/web/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/dist/domains/dashboard/web/assets/demo-DrJ2uuUL.js +456 -0
- package/dist/domains/dashboard/web/assets/diagram-S7CK7UJ4-jUGQk5n-.js +30 -0
- package/dist/domains/dashboard/web/assets/diagram-UQ7AKVKN-DaH_zW8T.js +41 -0
- package/dist/domains/dashboard/web/assets/diagram-VSXAHHWV-DmG80db0.js +3 -0
- package/dist/domains/dashboard/web/assets/diagram-VX7I27RA-ltQ6niKn.js +24 -0
- package/dist/domains/dashboard/web/assets/diagram-Z3DM3KII-x92ex4lK.js +24 -0
- package/dist/domains/dashboard/web/assets/dist-Cf0h0n6i.js +1 -0
- package/dist/domains/dashboard/web/assets/ebnfDiagram-PWID7BFC-CI2u976k.js +1 -0
- package/dist/domains/dashboard/web/assets/erDiagram-RLTQ6QDP-DKs90SRd.js +99 -0
- package/dist/domains/dashboard/web/assets/es-D7xGlyQk.js +10 -0
- package/dist/domains/dashboard/web/assets/eventmodeling-NTZA5JFV-uARcGZPD.js +1 -0
- package/dist/domains/dashboard/web/assets/flowDiagram-HODETNUW-DXL1E4Bl.js +1 -0
- package/dist/domains/dashboard/web/assets/ganttDiagram-EL5Y4UJY-D3z6G60S.js +292 -0
- package/dist/domains/dashboard/web/assets/gitGraph-4MIJSDKK-vT1UnORT.js +1 -0
- package/dist/domains/dashboard/web/assets/gitGraphDiagram-WWUBYQGX-BJmJ96jv.js +106 -0
- package/dist/domains/dashboard/web/assets/graphlib-DS17s2tU.js +1 -0
- package/dist/domains/dashboard/web/assets/index-BG3MF8re.js +261 -0
- package/dist/domains/dashboard/web/assets/index-C2Hlo7VZ.css +1 -0
- package/dist/domains/dashboard/web/assets/info-A6RAGUB7-DFeLqqen.js +1 -0
- package/dist/domains/dashboard/web/assets/infoDiagram-27XIBGKW-DxuY43XD.js +2 -0
- package/dist/domains/dashboard/web/assets/init-C-OQMol4.js +1 -0
- package/dist/domains/dashboard/web/assets/ishikawaDiagram-5VMMS53U-DxillfWQ.js +70 -0
- package/dist/domains/dashboard/web/assets/journeyDiagram-3NMN7TZE-BPngQ3ag.js +139 -0
- package/dist/domains/dashboard/web/assets/kanban-definition-UXKFOSKX-DHMLEGD4.js +89 -0
- package/dist/domains/dashboard/web/assets/katex-CXMH3UgJ.js +257 -0
- package/dist/domains/dashboard/web/assets/line-D31peBjo.js +1 -0
- package/dist/domains/dashboard/web/assets/linear-B7X50T2m.js +1 -0
- package/dist/domains/dashboard/web/assets/marked.esm-BtJme7Pf.js +65 -0
- package/dist/domains/dashboard/web/assets/mermaid-parser.core-CX3Pzygh.js +7 -0
- package/dist/domains/dashboard/web/assets/mermaid.core-DlMjBFb6.js +44 -0
- package/dist/domains/dashboard/web/assets/mindmap-definition-YA3MSWOX-BKuSGF75.js +96 -0
- package/dist/domains/dashboard/web/assets/ordinal-BDEzSJ7C.js +1 -0
- package/dist/domains/dashboard/web/assets/packet-AYTQ26CC-B1T8Bds9.js +1 -0
- package/dist/domains/dashboard/web/assets/path-fybaL0A-.js +1 -0
- package/dist/domains/dashboard/web/assets/pegDiagram-XKGWAZYB-BYgTNxLw.js +1 -0
- package/dist/domains/dashboard/web/assets/pie-WAS4IAKB-fqAjmoQw.js +1 -0
- package/dist/domains/dashboard/web/assets/pieDiagram-E7YTZNPT-BAO0Ufky.js +39 -0
- package/dist/domains/dashboard/web/assets/purify.es-ChwZkWde.js +3 -0
- package/dist/domains/dashboard/web/assets/quadrantDiagram-AXDQQJYC-SA_1-7DT.js +7 -0
- package/dist/domains/dashboard/web/assets/radar-RG4KPBEZ-Bl_UfUle.js +1 -0
- package/dist/domains/dashboard/web/assets/railroad-74A4TZTK-yj6dkiSy.js +1 -0
- package/dist/domains/dashboard/web/assets/railroad-abnf-HS5TGJTU-CvouMciM.js +1 -0
- package/dist/domains/dashboard/web/assets/railroad-ebnf-LZEXJU2U-CkYQEX72.js +1 -0
- package/dist/domains/dashboard/web/assets/railroad-peg-WCYAUIDC-B0uYr48F.js +1 -0
- package/dist/domains/dashboard/web/assets/railroadDiagram-O6MQD6OU-DqV18Y46.js +1 -0
- package/dist/domains/dashboard/web/assets/requirementDiagram-BXWQKSXE-Ca2K5LuT.js +84 -0
- package/dist/domains/dashboard/web/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/domains/dashboard/web/assets/sankeyDiagram-P5KCCOFB-D9MKl-Nr.js +40 -0
- package/dist/domains/dashboard/web/assets/sequenceDiagram-WJ2MYXX4-CXfvIzRx.js +162 -0
- package/dist/domains/dashboard/web/assets/sizeCapture-INFHLROL-B0uUizjq.js +1 -0
- package/dist/domains/dashboard/web/assets/src-CquUPIQx.js +1 -0
- package/dist/domains/dashboard/web/assets/stateDiagram-D77RDMKH-B7iaZHW7.js +1 -0
- package/dist/domains/dashboard/web/assets/stateDiagram-v2-MP3YSRHH-B6KoHQVe.js +1 -0
- package/dist/domains/dashboard/web/assets/swimlanes-42K2YHIH-OK-62yZl.js +1 -0
- package/dist/domains/dashboard/web/assets/swimlanesDiagram-VR7AAH4N-CjdOls9K.js +8 -0
- package/dist/domains/dashboard/web/assets/timeline-definition-24CTP7MA-D0l01B1h.js +120 -0
- package/dist/domains/dashboard/web/assets/treeView-Q6P3EWNA-Bg5u_o3A.js +1 -0
- package/dist/domains/dashboard/web/assets/treemap-WGGIJYW6-x89ccozk.js +1 -0
- package/dist/domains/dashboard/web/assets/vennDiagram-4TSXK5OY-DV19Cqhv.js +34 -0
- package/dist/domains/dashboard/web/assets/wardley-WFR3VGLG-BWoeoVk5.js +1 -0
- package/dist/domains/dashboard/web/assets/wardleyDiagram-VM6X3IG4-D4fCpoIP.js +78 -0
- package/dist/domains/dashboard/web/assets/xychartDiagram-S5SC5T6Z-DALnOMLb.js +7 -0
- package/dist/domains/dashboard/web/index.html +16 -16
- package/dist/domains/factory/artifacts.d.ts.map +1 -1
- package/dist/domains/factory/artifacts.js.map +1 -1
- package/dist/domains/factory/types.d.ts.map +1 -1
- package/dist/domains/integrations/codegraph.d.ts.map +1 -1
- package/dist/domains/integrations/codegraph.js.map +1 -1
- package/dist/domains/project-knowledge/local-store.d.ts +21 -0
- package/dist/domains/project-knowledge/local-store.d.ts.map +1 -1
- package/dist/domains/project-knowledge/local-store.js +97 -0
- package/dist/domains/project-knowledge/local-store.js.map +1 -1
- package/dist/domains/project-knowledge/types.d.ts.map +1 -1
- package/dist/domains/skill/platform-inspect.d.ts +1 -1
- package/dist/domains/skill/platform-inspect.d.ts.map +1 -1
- package/dist/domains/skill/platform-inspect.js +50 -10
- package/dist/domains/skill/platform-inspect.js.map +1 -1
- package/dist/domains/skill/platform-install.d.ts +10 -5
- package/dist/domains/skill/platform-install.d.ts.map +1 -1
- package/dist/domains/skill/platform-install.js +107 -17
- package/dist/domains/skill/platform-install.js.map +1 -1
- package/dist/domains/skill/uninstall.d.ts.map +1 -1
- package/dist/domains/skill/uninstall.js +38 -61
- package/dist/domains/skill/uninstall.js.map +1 -1
- package/dist/domains/workflow-contract/contained-atomic-write.d.ts +1 -0
- package/dist/domains/workflow-contract/contained-atomic-write.d.ts.map +1 -1
- package/dist/domains/workflow-contract/contained-atomic-write.js +19 -0
- package/dist/domains/workflow-contract/contained-atomic-write.js.map +1 -1
- package/dist/domains/workflow-contract/global-config.d.ts +8 -0
- package/dist/domains/workflow-contract/global-config.d.ts.map +1 -1
- package/dist/domains/workflow-contract/global-config.js +25 -0
- package/dist/domains/workflow-contract/global-config.js.map +1 -1
- package/dist/domains/workflow-contract/index.d.ts +1 -1
- package/dist/domains/workflow-contract/index.d.ts.map +1 -1
- package/dist/domains/workflow-contract/index.js +1 -1
- package/dist/domains/workflow-contract/index.js.map +1 -1
- package/dist/domains/workflow-contract/project-config.d.ts +1 -1
- package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
- package/dist/domains/workflow-contract/project-config.js +1 -0
- package/dist/domains/workflow-contract/project-config.js.map +1 -1
- package/dist/domains/workflow-contract/types.d.ts.map +1 -1
- package/dist/platform/install/platforms.d.ts +4 -0
- package/dist/platform/install/platforms.d.ts.map +1 -1
- package/dist/platform/install/platforms.js +15 -3
- package/dist/platform/install/platforms.js.map +1 -1
- package/dist/platform/paths/project-knowledge-storage.d.ts +1 -1
- package/dist/platform/paths/project-knowledge-storage.d.ts.map +1 -1
- package/dist/platform/paths/project-knowledge-storage.js +9 -4
- package/dist/platform/paths/project-knowledge-storage.js.map +1 -1
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet-package.json +13 -13
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet-package.json +13 -13
- package/package.json +24 -24
- package/dist/domains/dashboard/web/assets/abnfDiagram-N423BO3Z-BkUJc7LK.js +0 -1
- package/dist/domains/dashboard/web/assets/arc-DY4Y9tSO.js +0 -1
- package/dist/domains/dashboard/web/assets/architectureDiagram-T3A2C74G-7wC9YZS-.js +0 -36
- package/dist/domains/dashboard/web/assets/blockDiagram-VBNYF7ZC-Biqe-SaL.js +0 -132
- package/dist/domains/dashboard/web/assets/c4Diagram-5PPSVZJV-CccUFD1S.js +0 -10
- package/dist/domains/dashboard/web/assets/channel-DnRvSkOm.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-2GRJ4B5K-BUL4dDxo.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-2Q5K7J3B-BnKtDH9O.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-5RXB4S5H-C9pHQ1n3.js +0 -231
- package/dist/domains/dashboard/web/assets/chunk-6Q2QTUOP-CxrbngCi.js +0 -88
- package/dist/domains/dashboard/web/assets/chunk-GF5L2VYU-01mzgCUh.js +0 -206
- package/dist/domains/dashboard/web/assets/chunk-JWPE2WC7-wTiZVDvw.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-KBJHAD2P-Bxdv5bl-.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-RYQCIY6F-B5vF9l9A.js +0 -1
- package/dist/domains/dashboard/web/assets/chunk-XXDRQBXY-Dra3NnDp.js +0 -1
- package/dist/domains/dashboard/web/assets/classDiagram-JCYQIIEL-D3E-rgaQ.js +0 -1
- package/dist/domains/dashboard/web/assets/classDiagram-v2-OCEON4UE-D3E-rgaQ.js +0 -1
- package/dist/domains/dashboard/web/assets/cose-bilkent-JH36ORCC-DC96ge-n.js +0 -1
- package/dist/domains/dashboard/web/assets/cynefin-VYW2F7L2-Tt_NiopT.js +0 -166
- package/dist/domains/dashboard/web/assets/cynefinDiagram-MW4NZA55-BQ5__1hv.js +0 -62
- package/dist/domains/dashboard/web/assets/cytoscape.esm-D3_iZ_3b.js +0 -321
- package/dist/domains/dashboard/web/assets/dagre-VZM6K2ZE-Cr2zq3ro.js +0 -4
- package/dist/domains/dashboard/web/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/dist/domains/dashboard/web/assets/demo-lxXhgJ9-.js +0 -456
- package/dist/domains/dashboard/web/assets/diagram-7IWD3JNH-BRpYDwPl.js +0 -30
- package/dist/domains/dashboard/web/assets/diagram-B4RE2ZJO-D7u-VBxW.js +0 -3
- package/dist/domains/dashboard/web/assets/diagram-LBJQPF4R-CHYuv2JD.js +0 -24
- package/dist/domains/dashboard/web/assets/diagram-Q27KOJAE-CV3ZE8Q3.js +0 -24
- package/dist/domains/dashboard/web/assets/diagram-UB23O5K3-co_OsTiQ.js +0 -41
- package/dist/domains/dashboard/web/assets/ebnfDiagram-BXEA7PRR-CETcWswS.js +0 -1
- package/dist/domains/dashboard/web/assets/erDiagram-JOGREHBK-edkItb7Z.js +0 -85
- package/dist/domains/dashboard/web/assets/flowDiagram-UKHOOZJN-D_oFJtSf.js +0 -156
- package/dist/domains/dashboard/web/assets/ganttDiagram-PKOTCBZU-CFjLVoA1.js +0 -292
- package/dist/domains/dashboard/web/assets/gitGraphDiagram-DS77QQ5N-BfD0tiKH.js +0 -106
- package/dist/domains/dashboard/web/assets/graph-DOmOIIwC.js +0 -1
- package/dist/domains/dashboard/web/assets/index-BzyqCfMb.css +0 -1
- package/dist/domains/dashboard/web/assets/index-CCKHH_A9.js +0 -10
- package/dist/domains/dashboard/web/assets/index-D8dxsTJY.js +0 -271
- package/dist/domains/dashboard/web/assets/index-DlSYK56b.js +0 -139
- package/dist/domains/dashboard/web/assets/infoDiagram-6WML65LV-Cx6xa9DS.js +0 -2
- package/dist/domains/dashboard/web/assets/init-Gi6I4Gst.js +0 -1
- package/dist/domains/dashboard/web/assets/ishikawaDiagram-WSZJBQD7-BjNLyyv_.js +0 -70
- package/dist/domains/dashboard/web/assets/journeyDiagram-NVQOT4AX-D2n9vrhx.js +0 -139
- package/dist/domains/dashboard/web/assets/kanban-definition-27J2QSJJ-kJL7v018.js +0 -89
- package/dist/domains/dashboard/web/assets/katex-HP8lGamR.js +0 -257
- package/dist/domains/dashboard/web/assets/layout-D-LzfAck.js +0 -1
- package/dist/domains/dashboard/web/assets/linear-CeHtd5-l.js +0 -1
- package/dist/domains/dashboard/web/assets/map-DxJ2ADlA.js +0 -1
- package/dist/domains/dashboard/web/assets/marked.esm-DECB3bxB.js +0 -64
- package/dist/domains/dashboard/web/assets/mermaid.core-B0EPSHs2.js +0 -306
- package/dist/domains/dashboard/web/assets/mindmap-definition-FAOFIHXS-bQQWINF4.js +0 -96
- package/dist/domains/dashboard/web/assets/ordinal-Cboi1Yqb.js +0 -1
- package/dist/domains/dashboard/web/assets/pegDiagram-VL7TDLO6-LxLY1W7W.js +0 -1
- package/dist/domains/dashboard/web/assets/pieDiagram-7S7Q4E2Y-BMDQqvuT.js +0 -39
- package/dist/domains/dashboard/web/assets/purify.es-Cz4mVeUR.js +0 -3
- package/dist/domains/dashboard/web/assets/quadrantDiagram-CIZ2JOQS-XWYjcuZN.js +0 -7
- package/dist/domains/dashboard/web/assets/railroadDiagram-AXF67PYL-p-OlQTa7.js +0 -1
- package/dist/domains/dashboard/web/assets/requirementDiagram-LRYGKXZP-BL4N8Vsl.js +0 -84
- package/dist/domains/dashboard/web/assets/sankeyDiagram-W5VNT64P-Btu-o6LN.js +0 -40
- package/dist/domains/dashboard/web/assets/sequenceDiagram-SI44F4Z6-9HpdQQ47.js +0 -162
- package/dist/domains/dashboard/web/assets/sizeCapture-X5ZJPWSS-5AnBiBHD.js +0 -1
- package/dist/domains/dashboard/web/assets/stateDiagram-OKZ733FA-Dv8IDsai.js +0 -1
- package/dist/domains/dashboard/web/assets/stateDiagram-v2-UEYNNEHI-DxOMyFOm.js +0 -1
- package/dist/domains/dashboard/web/assets/swimlanes-SLNWSIFB-BfJcN7dK.js +0 -2
- package/dist/domains/dashboard/web/assets/swimlanesDiagram-ULZ7WXOC-BnHRSbDk.js +0 -8
- package/dist/domains/dashboard/web/assets/timeline-definition-Z64GVDOM-DEOuEHi5.js +0 -120
- package/dist/domains/dashboard/web/assets/vennDiagram-T6HMQDX7-BqsGpwgo.js +0 -34
- package/dist/domains/dashboard/web/assets/wardleyDiagram-T6FBY63Y-CXlOp9so.js +0 -78
- package/dist/domains/dashboard/web/assets/xychartDiagram-ELKLHX3M-DyqqtC9X.js +0 -7
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-B0EPSHs2.js","assets/purify.es-Cz4mVeUR.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function aT(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(o,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>o[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const sT="modulepreload",iT=function(e){return"/"+e},LC={},ga=function(t,n,o){let s=Promise.resolve();if(n&&n.length>0){let h=function(p){return Promise.all(p.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]"),m=u?.nonce||u?.getAttribute("nonce");s=h(n.map(p=>{if(p=iT(p),p in LC)return;LC[p]=!0;const g=p.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":sT,g||(y.as="script"),y.crossOrigin="",y.href=p,m&&y.setAttribute("nonce",m),document.head.appendChild(y),g)return new Promise((S,$)=>{y.addEventListener("load",S),y.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${p}`)))})}))}function i(u){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=u,window.dispatchEvent(m),!m.defaultPrevented)throw u}return s.then(u=>{for(const m of u||[])m.status==="rejected"&&i(m.reason);return t().catch(i)})};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qh={exports:{}},rc={};var _C;function lT(){if(_C)return rc;_C=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,s,i){var u=null;if(i!==void 0&&(u=""+i),s.key!==void 0&&(u=""+s.key),"key"in s){i={};for(var m in s)m!=="key"&&(i[m]=s[m])}else i=s;return s=i.ref,{$$typeof:e,type:o,key:u,ref:s!==void 0?s:null,props:i}}return rc.Fragment=t,rc.jsx=n,rc.jsxs=n,rc}var BC;function cT(){return BC||(BC=1,Qh.exports=lT()),Qh.exports}var f=cT(),Zh={exports:{}},Nt={};var DC;function uT(){if(DC)return Nt;DC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function S(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,j={};function w(I,D,Y){this.props=I,this.context=D,this.refs=j,this.updater=Y||$}w.prototype.isReactComponent={},w.prototype.setState=function(I,D){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,D,"setState")},w.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function R(){}R.prototype=w.prototype;function E(I,D,Y){this.props=I,this.context=D,this.refs=j,this.updater=Y||$}var N=E.prototype=new R;N.constructor=E,C(N,w.prototype),N.isPureReactComponent=!0;var M=Array.isArray;function T(){}var O={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function _(I,D,Y){var G=Y.ref;return{$$typeof:e,type:I,key:D,ref:G!==void 0?G:null,props:Y}}function L(I,D){return _(I.type,D,I.props)}function A(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function B(I){var D={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(Y){return D[Y]})}var V=/\/+/g;function Z(I,D){return typeof I=="object"&&I!==null&&I.key!=null?B(""+I.key):D.toString(36)}function W(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(T,T):(I.status="pending",I.then(function(D){I.status==="pending"&&(I.status="fulfilled",I.value=D)},function(D){I.status==="pending"&&(I.status="rejected",I.reason=D)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function H(I,D,Y,G,X){var ee=typeof I;(ee==="undefined"||ee==="boolean")&&(I=null);var Q=!1;if(I===null)Q=!0;else switch(ee){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(I.$$typeof){case e:case t:Q=!0;break;case g:return Q=I._init,H(Q(I._payload),D,Y,G,X)}}if(Q)return X=X(I),Q=G===""?"."+Z(I,0):G,M(X)?(Y="",Q!=null&&(Y=Q.replace(V,"$&/")+"/"),H(X,D,Y,"",function(ie){return ie})):X!=null&&(A(X)&&(X=L(X,Y+(X.key==null||I&&I.key===X.key?"":(""+X.key).replace(V,"$&/")+"/")+Q)),D.push(X)),1;Q=0;var ae=G===""?".":G+":";if(M(I))for(var se=0;se<I.length;se++)G=I[se],ee=ae+Z(G,se),Q+=H(G,D,Y,ee,X);else if(se=S(I),typeof se=="function")for(I=se.call(I),se=0;!(G=I.next()).done;)G=G.value,ee=ae+Z(G,se++),Q+=H(G,D,Y,ee,X);else if(ee==="object"){if(typeof I.then=="function")return H(W(I),D,Y,G,X);throw D=String(I),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return Q}function q(I,D,Y){if(I==null)return I;var G=[],X=0;return H(I,G,"","",function(ee){return D.call(Y,ee,X++)}),G}function U(I){if(I._status===-1){var D=I._result;D=D(),D.then(function(Y){(I._status===0||I._status===-1)&&(I._status=1,I._result=Y)},function(Y){(I._status===0||I._status===-1)&&(I._status=2,I._result=Y)}),I._status===-1&&(I._status=0,I._result=D)}if(I._status===1)return I._result.default;throw I._result}var J=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},k={map:q,forEach:function(I,D,Y){q(I,function(){D.apply(this,arguments)},Y)},count:function(I){var D=0;return q(I,function(){D++}),D},toArray:function(I){return q(I,function(D){return D})||[]},only:function(I){if(!A(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Nt.Activity=b,Nt.Children=k,Nt.Component=w,Nt.Fragment=n,Nt.Profiler=s,Nt.PureComponent=E,Nt.StrictMode=o,Nt.Suspense=h,Nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Nt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return O.H.useMemoCache(I)}},Nt.cache=function(I){return function(){return I.apply(null,arguments)}},Nt.cacheSignal=function(){return null},Nt.cloneElement=function(I,D,Y){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var G=C({},I.props),X=I.key;if(D!=null)for(ee in D.key!==void 0&&(X=""+D.key),D)!P.call(D,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&D.ref===void 0||(G[ee]=D[ee]);var ee=arguments.length-2;if(ee===1)G.children=Y;else if(1<ee){for(var Q=Array(ee),ae=0;ae<ee;ae++)Q[ae]=arguments[ae+2];G.children=Q}return _(I.type,X,G)},Nt.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:i,_context:I},I},Nt.createElement=function(I,D,Y){var G,X={},ee=null;if(D!=null)for(G in D.key!==void 0&&(ee=""+D.key),D)P.call(D,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(X[G]=D[G]);var Q=arguments.length-2;if(Q===1)X.children=Y;else if(1<Q){for(var ae=Array(Q),se=0;se<Q;se++)ae[se]=arguments[se+2];X.children=ae}if(I&&I.defaultProps)for(G in Q=I.defaultProps,Q)X[G]===void 0&&(X[G]=Q[G]);return _(I,ee,X)},Nt.createRef=function(){return{current:null}},Nt.forwardRef=function(I){return{$$typeof:m,render:I}},Nt.isValidElement=A,Nt.lazy=function(I){return{$$typeof:g,_payload:{_status:-1,_result:I},_init:U}},Nt.memo=function(I,D){return{$$typeof:p,type:I,compare:D===void 0?null:D}},Nt.startTransition=function(I){var D=O.T,Y={};O.T=Y;try{var G=I(),X=O.S;X!==null&&X(Y,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(T,J)}catch(ee){J(ee)}finally{D!==null&&Y.types!==null&&(D.types=Y.types),O.T=D}},Nt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Nt.use=function(I){return O.H.use(I)},Nt.useActionState=function(I,D,Y){return O.H.useActionState(I,D,Y)},Nt.useCallback=function(I,D){return O.H.useCallback(I,D)},Nt.useContext=function(I){return O.H.useContext(I)},Nt.useDebugValue=function(){},Nt.useDeferredValue=function(I,D){return O.H.useDeferredValue(I,D)},Nt.useEffect=function(I,D){return O.H.useEffect(I,D)},Nt.useEffectEvent=function(I){return O.H.useEffectEvent(I)},Nt.useId=function(){return O.H.useId()},Nt.useImperativeHandle=function(I,D,Y){return O.H.useImperativeHandle(I,D,Y)},Nt.useInsertionEffect=function(I,D){return O.H.useInsertionEffect(I,D)},Nt.useLayoutEffect=function(I,D){return O.H.useLayoutEffect(I,D)},Nt.useMemo=function(I,D){return O.H.useMemo(I,D)},Nt.useOptimistic=function(I,D){return O.H.useOptimistic(I,D)},Nt.useReducer=function(I,D,Y){return O.H.useReducer(I,D,Y)},Nt.useRef=function(I){return O.H.useRef(I)},Nt.useState=function(I){return O.H.useState(I)},Nt.useSyncExternalStore=function(I,D,Y){return O.H.useSyncExternalStore(I,D,Y)},Nt.useTransition=function(){return O.H.useTransition()},Nt.version="19.2.7",Nt}var HC;function L0(){return HC||(HC=1,Zh.exports=uT()),Zh.exports}var c=L0();const ue=jt(c),dT=aT({__proto__:null,default:ue},[c]),wt=e=>{const t=c.useRef(e);return t.current=e,c.useCallback((...o)=>t.current?.(...o),[])};function to(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const FC=to()?c.useLayoutEffect:c.useEffect,xn=(e,t)=>{const n=c.useRef(!0);FC(()=>e(n.current),t),FC(()=>(n.current=!1,()=>{n.current=!0}),[])},fT=(e,t)=>{xn(n=>{if(!n)return e()},t)},_0=e=>{const t=c.useRef(!1),[n,o]=c.useState(e);c.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function s(i,u){u&&t.current||o(i)}return[n,s]};function hr(e,t){const[n,o]=c.useState(e),s=t!==void 0?t:n;return xn(i=>{i||o(t)},[t]),[s,o]}let Z2=e=>+setTimeout(e,16),J2=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(Z2=e=>window.requestAnimationFrame(e),J2=e=>window.cancelAnimationFrame(e));let kC=0;const B0=new Map;function eN(e){B0.delete(e)}const nn=(e,t=1)=>{kC+=1;const n=kC;function o(s){if(s===0)eN(n),e();else{const i=Z2(()=>{o(s-1)});B0.set(n,i)}}return o(t),n};nn.cancel=e=>{const t=B0.get(e);return eN(e),J2(t)};function mT(){return{...dT}.useId}let VC=0;const qC=mT(),ya=qC?(function(t){const n=qC();return t||n}):(function(t){const[n,o]=c.useState("ssr-id");return c.useEffect(()=>{const s=VC;VC+=1,o(`rc_unique_${s}`)},[]),t||n});function Wc(e,t,n){const o=c.useRef({});return(!("value"in o.current)||n(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}function pT(e){const[,t]=c.useReducer(i=>i+1,0),n=c.useRef(e),o=wt(()=>n.current),s=wt(i=>{n.current=typeof i=="function"?i(n.current):i,t()});return[o,s]}var Jh={exports:{}},wn={};var WC;function hT(){if(WC)return wn;WC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function $(C){if(typeof C=="object"&&C!==null){var j=C.$$typeof;switch(j){case e:switch(C=C.type,C){case n:case s:case o:case h:case p:case y:return C;default:switch(C=C&&C.$$typeof,C){case u:case m:case b:case g:return C;case i:return C;default:return j}}case t:return j}}}return wn.ContextConsumer=i,wn.ContextProvider=u,wn.Element=e,wn.ForwardRef=m,wn.Fragment=n,wn.Lazy=b,wn.Memo=g,wn.Portal=t,wn.Profiler=s,wn.StrictMode=o,wn.Suspense=h,wn.SuspenseList=p,wn.isContextConsumer=function(C){return $(C)===i},wn.isContextProvider=function(C){return $(C)===u},wn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},wn.isForwardRef=function(C){return $(C)===m},wn.isFragment=function(C){return $(C)===n},wn.isLazy=function(C){return $(C)===b},wn.isMemo=function(C){return $(C)===g},wn.isPortal=function(C){return $(C)===t},wn.isProfiler=function(C){return $(C)===s},wn.isStrictMode=function(C){return $(C)===o},wn.isSuspense=function(C){return $(C)===h},wn.isSuspenseList=function(C){return $(C)===p},wn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===s||C===o||C===h||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===g||C.$$typeof===u||C.$$typeof===i||C.$$typeof===m||C.$$typeof===S||C.getModuleId!==void 0)},wn.typeOf=$,wn}var UC;function gT(){return UC||(UC=1,Jh.exports=hT()),Jh.exports}var eg=gT();const bT=Symbol.for("react.element"),vT=Symbol.for("react.transitional.element"),yT=Symbol.for("react.fragment");function tN(e){return e&&typeof e=="object"&&(e.$$typeof===bT||e.$$typeof===vT)&&e.type===yT}const xT=Number(c.version.split(".")[0]),ST=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Er=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(o=>{ST(o,n)})}},xa=(...e)=>Wc(()=>Er(...e),e,(t,n)=>t.length!==n.length||t.every((o,s)=>o!==n[s])),Gs=e=>{if(!e)return!1;if(D0(e)&&xT>=19)return!0;const t=eg.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==eg.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==eg.ForwardRef)};function D0(e){return c.isValidElement(e)&&!tN(e)}const CT=e=>D0(e)&&Gs(e),ss=e=>{if(e&&D0(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function rb(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const GC="data-rc-order",XC="data-rc-priority",$T="rc-util-key",ob=new Map;function nN({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:$T}function xm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function wT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function H0(e){return Array.from((ob.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function rN(e,t={}){if(!to())return null;const{csp:n,prepend:o,priority:s=0}=t,i=wT(o),u=i==="prependQueue",m=document.createElement("style");m.setAttribute(GC,i),u&&s&&m.setAttribute(XC,`${s}`),n?.nonce&&(m.nonce=n?.nonce),m.innerHTML=e;const h=xm(t),{firstChild:p}=h;if(o){if(u){const g=(t.styles||H0(h)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(GC)))return!1;const y=Number(b.getAttribute(XC)||0);return s>=y});if(g.length)return h.insertBefore(m,g[g.length-1].nextSibling),m}h.insertBefore(m,p)}else h.appendChild(m);return m}function oN(e,t={}){let{styles:n}=t;return n||=H0(xm(t)),n.find(o=>o.getAttribute(nN(t))===e)}function jc(e,t={}){const n=oN(e,t);n&&xm(t).removeChild(n)}function ET(e,t){const n=ob.get(e);if(!n||!rb(document,n)){const o=rN("",t),{parentNode:s}=o;ob.set(e,s),e.removeChild(o)}}function Ls(e,t,n={}){const o=xm(n),s=H0(o),i={...n,styles:s};ET(o,i);const u=oN(t,i);if(u)return i.csp?.nonce&&u.nonce!==i.csp?.nonce&&(u.nonce=i.csp?.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;const m=rN(e,i);return m.setAttribute(nN(i),t),m}function Qi(e){return e instanceof HTMLElement||e instanceof SVGElement}function ns(e){return e&&typeof e=="object"&&Qi(e.nativeElement)?e.nativeElement:Qi(e)?e:null}const Sm=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function KC(e,t=!1){if(Sm(e)){const n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),s=e.getAttribute("tabindex"),i=Number(s);let u=null;return s&&!Number.isNaN(i)?u=i:o&&u===null&&(u=0),o&&e.disabled&&(u=null),u!==null&&(u>=0||t&&u<0)}return!1}function F0(e,t=!1){const n=[...e.querySelectorAll("*")].filter(o=>KC(o,t));return KC(e,t)&&n.unshift(e),n}function aN(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}let Xi=null,Ya=[];const ab=new Map,k0=new Map;function V0(){return Ya[Ya.length-1]}function NT(e){const t=V0();if(e&&t){let n;for(const[s,i]of ab.entries())if(i===t){n=s;break}const o=k0.get(n);return!!o&&(o===e||o.contains(e))}return!1}function jT(e){const{activeElement:t}=document;return e===t||e.contains(t)}function tg(){const e=V0(),{activeElement:t}=document;if(!NT(t))if(e&&!jT(e)){const n=F0(e);(n.includes(Xi)?Xi:n[0])?.focus({preventScroll:!0})}else Xi=t}function YC(e){if(e.key==="Tab"){const{activeElement:t}=document,n=V0(),o=F0(n),s=o[o.length-1];e.shiftKey&&t===o[0]?Xi=s:!e.shiftKey&&t===s&&(Xi=o[0])}}function RT(e,t){return e&&(ab.set(t,e),Ya=Ya.filter(n=>n!==e),Ya.push(e),window.addEventListener("focusin",tg),window.addEventListener("keydown",YC,!0),tg()),()=>{Xi=null,Ya=Ya.filter(n=>n!==e),ab.delete(t),k0.delete(t),Ya.length===0&&(window.removeEventListener("focusin",tg),window.removeEventListener("keydown",YC,!0))}}function MT(e,t){const n=c.useRef(0),[o,s]=c.useState(0);c.useEffect(()=>{n.current=0},t),c.useEffect(()=>{const[i,u]=e(n.current);return u||(n.current+=1,s(m=>m+1)),i},[...t,o])}function sN(e,t){const n=ya(),o=c.useRef(t);return o.current=t,MT(u=>{if(!e)return[void 0,!0];const m=o.current();return m?[RT(m,n),!0]:[void 0,u>=1]},[n,e]),[u=>{u&&k0.set(n,u)}]}function iN(e){return e?.getRootNode?.()}function TT(e){return iN(e)instanceof ShadowRoot}function sb(e){return TT(e)?iN(e):null}const ct={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 OT(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const o=n.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";let s,i;if(e){const h=getComputedStyle(e);o.scrollbarColor=h.scrollbarColor,o.scrollbarWidth=h.scrollbarWidth;const p=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(p.width,10),b=parseInt(p.height,10);try{const y=g?`width: ${p.width};`:"",S=b?`height: ${p.height};`:"";Ls(`
|
|
3
|
-
#${t}::-webkit-scrollbar {
|
|
4
|
-
${y}
|
|
5
|
-
${S}
|
|
6
|
-
}`,t)}catch(y){console.error(y),s=g,i=b}}document.body.appendChild(n);const u=e&&s&&!Number.isNaN(s)?s:n.offsetWidth-n.clientWidth,m=e&&i&&!Number.isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),jc(t),{width:u,height:m}}function zT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:OT(e)}let ib={};const AT=e=>{};function IT(e,t){}function PT(e,t){}function LT(){ib={}}function lN(e,t,n){!t&&!ib[n]&&(e(!1,n),ib[n]=!0)}function Cr(e,t){lN(IT,e,t)}function _T(e,t){lN(PT,e,t)}Cr.preMessage=AT;Cr.resetWarned=LT;Cr.noteOnce=_T;function Rc(e,t,n=!1){const o=new Set;function s(i,u,m=1){const h=o.has(i);if(Cr(!h,"Warning: There may be circular references"),h)return!1;if(i===u)return!0;if(n&&m>1)return!1;o.add(i);const p=m+1;if(Array.isArray(i)){if(!Array.isArray(u)||i.length!==u.length)return!1;for(let g=0;g<i.length;g++)if(!s(i[g],u[g],p))return!1;return!0}if(i&&u&&typeof i=="object"&&typeof u=="object"){const g=Object.keys(i);return g.length!==Object.keys(u).length?!1:g.every(b=>s(i[b],u[b],p))}return!1}return s(e,t)}var oc={exports:{}},QC;function BT(){if(QC)return oc.exports;QC=1,oc.exports=o,oc.exports.isMobile=o,oc.exports.default=o;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/,n=/android|ipad|playbook|silk/i;function o(s){s||(s={});let i=s.ua;if(!i&&typeof navigator<"u"&&(i=navigator.userAgent),i&&i.headers&&typeof i.headers["user-agent"]=="string"&&(i=i.headers["user-agent"]),typeof i!="string")return!1;let u=e.test(i)&&!t.test(i)||!!s.tablet&&n.test(i);return!u&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&i.indexOf("Macintosh")!==-1&&i.indexOf("Safari")!==-1&&(u=!0),u}return oc.exports}var DT=BT();const HT=jt(DT);let ng;const FT=()=>(typeof ng>"u"&&(ng=HT()),ng);function Mn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(o=>{delete n[o]}),n}const kT=`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`,VT=`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`,qT=`${kT} ${VT}`.split(/[\s\n]+/),WT="aria-",UT="data-";function ZC(e,t){return e.indexOf(t)===0}function br(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const o={};return Object.keys(e).forEach(s=>{(n.aria&&(s==="role"||ZC(s,WT))||n.data&&ZC(s,UT)||n.attr&&qT.includes(s))&&(o[s]=e[s])}),o}function kr(e,t={}){let n=[];return ue.Children.forEach(e,o=>{o==null&&!t.keepEmpty||(Array.isArray(o)?n=n.concat(kr(o)):tN(o)&&o.props?n=n.concat(kr(o.props.children,t)):n.push(o))}),n}function JC(...e){const t={};for(const n of e)if(n)for(const o of Object.keys(n))n[o]!==void 0&&(t[o]=n[o]);return t}function Hr(e,t){let n=e;for(let o=0;o<t.length;o+=1){if(n==null)return;n=n[t[o]]}return n}function cN(e,t,n,o){if(!t.length)return n;const[s,...i]=t;let u;return!e&&typeof s=="number"?u=[]:Array.isArray(e)?u=[...e]:u={...e},o&&n===void 0&&i.length===1?delete u[s][i[0]]:u[s]=cN(u[s],i,n,o),u}function Br(e,t,n,o=!1){return t.length&&o&&n===void 0&&!Hr(e,t.slice(0,-1))?e:cN(e,t,n,o)}function GT(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function e$(e){return Array.isArray(e)?[]:{}}const XT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function KT(e,t={}){const{prepareArray:n}=t,o=n||(()=>[]);let s=e$(e[0]);return e.forEach(i=>{function u(m,h){const p=new Set(h),g=Hr(i,m),b=Array.isArray(g);if(b||GT(g)){if(!p.has(g)){p.add(g);const y=Hr(s,m);b?s=Br(s,m,o(y,g)):(!y||typeof y!="object")&&(s=Br(s,m,e$(g))),XT(g).forEach(S=>{Object.getOwnPropertyDescriptor(g,S).enumerable&&u([...m,S],p)})}}else s=Br(s,m,g)}u([])}),s}function Vi(...e){return KT(e)}var rg={exports:{}},ac={},og={exports:{}},ag={};var t$;function YT(){return t$||(t$=1,(function(e){function t(H,q){var U=H.length;H.push(q);e:for(;0<U;){var J=U-1>>>1,k=H[J];if(0<s(k,q))H[J]=q,H[U]=k,U=J;else break e}}function n(H){return H.length===0?null:H[0]}function o(H){if(H.length===0)return null;var q=H[0],U=H.pop();if(U!==q){H[0]=U;e:for(var J=0,k=H.length,I=k>>>1;J<I;){var D=2*(J+1)-1,Y=H[D],G=D+1,X=H[G];if(0>s(Y,U))G<k&&0>s(X,Y)?(H[J]=X,H[G]=U,J=G):(H[J]=Y,H[D]=U,J=D);else if(G<k&&0>s(X,U))H[J]=X,H[G]=U,J=G;else break e}}return q}function s(H,q){var U=H.sortIndex-q.sortIndex;return U!==0?U:H.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var h=[],p=[],g=1,b=null,y=3,S=!1,$=!1,C=!1,j=!1,w=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function N(H){for(var q=n(p);q!==null;){if(q.callback===null)o(p);else if(q.startTime<=H)o(p),q.sortIndex=q.expirationTime,t(h,q);else break;q=n(p)}}function M(H){if(C=!1,N(H),!$)if(n(h)!==null)$=!0,T||(T=!0,B());else{var q=n(p);q!==null&&W(M,q.startTime-H)}}var T=!1,O=-1,P=5,_=-1;function L(){return j?!0:!(e.unstable_now()-_<P)}function A(){if(j=!1,T){var H=e.unstable_now();_=H;var q=!0;try{e:{$=!1,C&&(C=!1,R(O),O=-1),S=!0;var U=y;try{t:{for(N(H),b=n(h);b!==null&&!(b.expirationTime>H&&L());){var J=b.callback;if(typeof J=="function"){b.callback=null,y=b.priorityLevel;var k=J(b.expirationTime<=H);if(H=e.unstable_now(),typeof k=="function"){b.callback=k,N(H),q=!0;break t}b===n(h)&&o(h),N(H)}else o(h);b=n(h)}if(b!==null)q=!0;else{var I=n(p);I!==null&&W(M,I.startTime-H),q=!1}}break e}finally{b=null,y=U,S=!1}q=void 0}}finally{q?B():T=!1}}}var B;if(typeof E=="function")B=function(){E(A)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,Z=V.port2;V.port1.onmessage=A,B=function(){Z.postMessage(null)}}else B=function(){w(A,0)};function W(H,q){O=w(function(){H(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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(H){switch(y){case 1:case 2:case 3:var q=3;break;default:q=y}var U=y;y=q;try{return H()}finally{y=U}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(H,q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var U=y;y=H;try{return q()}finally{y=U}},e.unstable_scheduleCallback=function(H,q,U){var J=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?J+U:J):U=J,H){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=U+k,H={id:g++,callback:q,priorityLevel:H,startTime:U,expirationTime:k,sortIndex:-1},U>J?(H.sortIndex=U,t(p,H),n(h)===null&&H===n(p)&&(C?(R(O),O=-1):C=!0,W(M,U-J))):(H.sortIndex=k,t(h,H),$||S||($=!0,T||(T=!0,B()))),H},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(H){var q=y;return function(){var U=y;y=q;try{return H.apply(this,arguments)}finally{y=U}}}})(ag)),ag}var n$;function QT(){return n$||(n$=1,og.exports=YT()),og.exports}var sg={exports:{}},yr={};var r$;function ZT(){if(r$)return yr;r$=1;var e=L0();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function i(h,p,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:h,containerInfo:p,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,yr.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return i(h,p,null,g)},yr.flushSync=function(h){var p=u.T,g=o.p;try{if(u.T=null,o.p=2,h)return h()}finally{u.T=p,o.p=g,o.d.f()}},yr.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(h,p))},yr.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},yr.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,b=m(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?o.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:S}):g==="script"&&o.d.X(h,{crossOrigin:b,integrity:y,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},yr.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);o.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(h)},yr.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,b=m(g,p.crossOrigin);o.d.L(h,g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},yr.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=m(p.as,p.crossOrigin);o.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(h)},yr.requestFormReset=function(h){o.d.r(h)},yr.unstable_batchedUpdates=function(h,p){return h(p)},yr.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},yr.useFormStatus=function(){return u.H.useHostTransitionStatus()},yr.version="19.2.7",yr}var o$;function uN(){if(o$)return sg.exports;o$=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(),sg.exports=ZT(),sg.exports}var a$;function JT(){if(a$)return ac;a$=1;var e=QT(),t=L0(),n=uN();function o(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function i(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function m(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(i(r)!==r)throw Error(o(188))}function p(r){var a=r.alternate;if(!a){if(a=i(r),a===null)throw Error(o(188));return a!==r?null:r}for(var l=r,d=a;;){var v=l.return;if(v===null)break;var x=v.alternate;if(x===null){if(d=v.return,d!==null){l=d;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===l)return h(v),r;if(x===d)return h(v),a;x=x.sibling}throw Error(o(188))}if(l.return!==d.return)l=v,d=x;else{for(var z=!1,F=v.child;F;){if(F===l){z=!0,l=v,d=x;break}if(F===d){z=!0,d=v,l=x;break}F=F.sibling}if(!z){for(F=x.child;F;){if(F===l){z=!0,l=x,d=v;break}if(F===d){z=!0,d=x,l=v;break}F=F.sibling}if(!z)throw Error(o(189))}}if(l.alternate!==d)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?r:a}function g(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=g(r),a!==null)return a;r=r.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),E=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function B(r){return r===null||typeof r!="object"?null:(r=A&&r[A]||r["@@iterator"],typeof r=="function"?r:null)}var V=Symbol.for("react.client.reference");function Z(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===V?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case C:return"Fragment";case w:return"Profiler";case j:return"StrictMode";case M:return"Suspense";case T:return"SuspenseList";case _:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case $:return"Portal";case E:return r.displayName||"Context";case R:return(r._context.displayName||"Context")+".Consumer";case N:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case O:return a=r.displayName||null,a!==null?a:Z(r.type)||"Memo";case P:a=r._payload,r=r._init;try{return Z(r(a))}catch{}}return null}var W=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},J=[],k=-1;function I(r){return{current:r}}function D(r){0>k||(r.current=J[k],J[k]=null,k--)}function Y(r,a){k++,J[k]=r.current,r.current=a}var G=I(null),X=I(null),ee=I(null),Q=I(null);function ae(r,a){switch(Y(ee,a),Y(X,r),Y(G,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?aC(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=aC(a),r=sC(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}D(G),Y(G,r)}function se(){D(G),D(X),D(ee)}function ie(r){r.memoizedState!==null&&Y(Q,r);var a=G.current,l=sC(a,r.type);a!==l&&(Y(X,r),Y(G,l))}function fe(r){X.current===r&&(D(G),D(X)),Q.current===r&&(D(Q),Jl._currentValue=U)}var oe,re;function pe(r){if(oe===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);oe=a&&a[1]||"",re=-1<l.stack.indexOf(`
|
|
29
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
30
|
-
`+oe+r+re}var ve=!1;function Ce(r,a){if(!r||ve)return"";ve=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch($e){var xe=$e}Reflect.construct(r,[],Ae)}else{try{Ae.call()}catch($e){xe=$e}r.call(Ae.prototype)}}else{try{throw Error()}catch($e){xe=$e}(Ae=r())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch($e){if($e&&xe&&typeof $e.stack=="string")return[$e.stack,xe.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=d.DetermineComponentFrameRoot(),z=x[0],F=x[1];if(z&&F){var ne=z.split(`
|
|
31
|
-
`),be=F.split(`
|
|
32
|
-
`);for(v=d=0;d<ne.length&&!ne[d].includes("DetermineComponentFrameRoot");)d++;for(;v<be.length&&!be[v].includes("DetermineComponentFrameRoot");)v++;if(d===ne.length||v===be.length)for(d=ne.length-1,v=be.length-1;1<=d&&0<=v&&ne[d]!==be[v];)v--;for(;1<=d&&0<=v;d--,v--)if(ne[d]!==be[v]){if(d!==1||v!==1)do if(d--,v--,0>v||ne[d]!==be[v]){var Re=`
|
|
33
|
-
`+ne[d].replace(" at new "," at ");return r.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",r.displayName)),Re}while(1<=d&&0<=v);break}}}finally{ve=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?pe(l):""}function he(r,a){switch(r.tag){case 26:case 27:case 5:return pe(r.type);case 16:return pe("Lazy");case 13:return r.child!==a&&a!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Ce(r.type,!1);case 11:return Ce(r.type.render,!1);case 1:return Ce(r.type,!0);case 31:return pe("Activity");default:return""}}function te(r){try{var a="",l=null;do a+=he(r,l),l=r,r=r.return;while(r);return a}catch(d){return`
|
|
34
|
-
Error generating stack: `+d.message+`
|
|
35
|
-
`+d.stack}}var Se=Object.prototype.hasOwnProperty,Te=e.unstable_scheduleCallback,Ee=e.unstable_cancelCallback,Le=e.unstable_shouldYield,Pe=e.unstable_requestPaint,ye=e.unstable_now,Ie=e.unstable_getCurrentPriorityLevel,De=e.unstable_ImmediatePriority,Me=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,tt=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,He=e.log,Ue=e.unstable_setDisableYieldValue,Qe=null,ke=null;function Oe(r){if(typeof He=="function"&&Ue(r),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(Qe,r)}catch{}}var Je=Math.clz32?Math.clz32:Rt,nt=Math.log,ut=Math.LN2;function Rt(r){return r>>>=0,r===0?32:31-(nt(r)/ut|0)|0}var ht=256,Ut=262144,_t=4194304;function Ct(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function kt(r,a,l){var d=r.pendingLanes;if(d===0)return 0;var v=0,x=r.suspendedLanes,z=r.pingedLanes;r=r.warmLanes;var F=d&134217727;return F!==0?(d=F&~x,d!==0?v=Ct(d):(z&=F,z!==0?v=Ct(z):l||(l=F&~r,l!==0&&(v=Ct(l))))):(F=d&~x,F!==0?v=Ct(F):z!==0?v=Ct(z):l||(l=d&~r,l!==0&&(v=Ct(l)))),v===0?0:a!==0&&a!==v&&(a&x)===0&&(x=v&-v,l=a&-a,x>=l||x===32&&(l&4194048)!==0)?a:v}function Pt(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function Vt(r,a){switch(r){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 Ze(){var r=_t;return _t<<=1,(_t&62914560)===0&&(_t=4194304),r}function $t(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function We(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function je(r,a,l,d,v,x){var z=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var F=r.entanglements,ne=r.expirationTimes,be=r.hiddenUpdates;for(l=z&~l;0<l;){var Re=31-Je(l),Ae=1<<Re;F[Re]=0,ne[Re]=-1;var xe=be[Re];if(xe!==null)for(be[Re]=null,Re=0;Re<xe.length;Re++){var $e=xe[Re];$e!==null&&($e.lane&=-536870913)}l&=~Ae}d!==0&&Be(r,d,0),x!==0&&v===0&&r.tag!==0&&(r.suspendedLanes|=x&~(z&~a))}function Be(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var d=31-Je(a);r.entangledLanes|=a,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function we(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var d=31-Je(l),v=1<<d;v&a|r[d]&a&&(r[d]|=a),l&=~v}}function Fe(r,a){var l=a&-a;return l=(l&42)!==0?1:Ve(l),(l&(r.suspendedLanes|a))!==0?0:l}function Ve(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ye(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function dt(){var r=q.p;return r!==0?r:(r=window.event,r===void 0?32:MC(r.type))}function ln(r,a){var l=q.p;try{return q.p=r,a()}finally{q.p=l}}var et=Math.random().toString(36).slice(2),gt="__reactFiber$"+et,zt="__reactProps$"+et,fn="__reactContainer$"+et,mt="__reactEvents$"+et,yt="__reactListeners$"+et,xt="__reactHandles$"+et,Ge="__reactResources$"+et,it="__reactMarker$"+et;function Bt(r){delete r[gt],delete r[zt],delete r[mt],delete r[yt],delete r[xt]}function Kt(r){var a=r[gt];if(a)return a;for(var l=r.parentNode;l;){if(a=l[fn]||l[gt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=mC(r);r!==null;){if(l=r[gt])return l;r=mC(r)}return a}r=l,l=r.parentNode}return null}function Mt(r){if(r=r[gt]||r[fn]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Yt(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(o(33))}function bn(r){var a=r[Ge];return a||(a=r[Ge]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function qt(r){r[it]=!0}var sr=new Set,So={};function Nn(r,a){ir(r,a),ir(r+"Capture",a)}function ir(r,a){for(So[r]=a,r=0;r<a.length;r++)sr.add(a[r])}var qr=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]*$"),lr={},Zn={};function St(r){return Se.call(Zn,r)?!0:Se.call(lr,r)?!1:qr.test(r)?Zn[r]=!0:(lr[r]=!0,!1)}function _n(r,a,l){if(St(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function Tn(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function nr(r,a,l,d){if(d===null)r.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+d)}}function me(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ne(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function _e(r,a,l){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,x=d.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return v.call(this)},set:function(z){l=""+z,x.call(this,z)}}),Object.defineProperty(r,a,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(z){l=""+z},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function rt(r){if(!r._valueTracker){var a=Ne(r)?"checked":"value";r._valueTracker=_e(r,a,""+r[a])}}function ot(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),d="";return r&&(d=Ne(r)?r.checked?"true":"false":r.value),r=d,r!==l?(a.setValue(r),!0):!1}function lt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Et=/[\n"\\]/g;function mn(r){return r.replace(Et,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ke(r,a,l,d,v,x,z,F){r.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?r.type=z:r.removeAttribute("type"),a!=null?z==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+me(a)):r.value!==""+me(a)&&(r.value=""+me(a)):z!=="submit"&&z!=="reset"||r.removeAttribute("value"),a!=null?vr(r,z,me(a)):l!=null?vr(r,z,me(l)):d!=null&&r.removeAttribute("value"),v==null&&x!=null&&(r.defaultChecked=!!x),v!=null&&(r.checked=v&&typeof v!="function"&&typeof v!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?r.name=""+me(F):r.removeAttribute("name")}function Lt(r,a,l,d,v,x,z,F){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.type=x),a!=null||l!=null){if(!(x!=="submit"&&x!=="reset"||a!=null)){rt(r);return}l=l!=null?""+me(l):"",a=a!=null?""+me(a):l,F||a===r.value||(r.value=a),r.defaultValue=a}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=F?r.checked:!!d,r.defaultChecked=!!d,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(r.name=z),rt(r)}function vr(r,a,l){a==="number"&<(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function oo(r,a,l,d){if(r=r.options,a){a={};for(var v=0;v<l.length;v++)a["$"+l[v]]=!0;for(l=0;l<r.length;l++)v=a.hasOwnProperty("$"+r[l].value),r[l].selected!==v&&(r[l].selected=v),v&&d&&(r[l].defaultSelected=!0)}else{for(l=""+me(l),a=null,v=0;v<r.length;v++){if(r[v].value===l){r[v].selected=!0,d&&(r[v].defaultSelected=!0);return}a!==null||r[v].disabled||(a=r[v])}a!==null&&(a.selected=!0)}}function Ao(r,a,l){if(a!=null&&(a=""+me(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+me(l):""}function cs(r,a,l,d){if(a==null){if(d!=null){if(l!=null)throw Error(o(92));if(W(d)){if(1<d.length)throw Error(o(93));d=d[0]}l=d}l==null&&(l=""),a=l}l=me(a),r.defaultValue=l,d=r.textContent,d===l&&d!==""&&d!==null&&(r.value=d),rt(r)}function ao(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var Qs=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 $a(r,a,l){var d=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":d?r.setProperty(a,l):typeof l!="number"||l===0||Qs.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function iu(r,a,l){if(a!=null&&typeof a!="object")throw Error(o(62));if(r=r.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var v in a)d=a[v],a.hasOwnProperty(v)&&l[v]!==d&&$a(r,v,d)}else for(var x in a)a.hasOwnProperty(x)&&$a(r,x,a[x])}function Zs(r){if(r.indexOf("-")===-1)return!1;switch(r){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 t6=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"]]),n6=/^[\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 lu(r){return n6.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Xo(){}var Xm=null;function Km(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Js=null,ei=null;function ox(r){var a=Mt(r);if(a&&(r=a.stateNode)){var l=r[zt]||null;e:switch(r=a.stateNode,a.type){case"input":if(Ke(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+mn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var d=l[a];if(d!==r&&d.form===r.form){var v=d[zt]||null;if(!v)throw Error(o(90));Ke(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<l.length;a++)d=l[a],d.form===r.form&&ot(d)}break e;case"textarea":Ao(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&oo(r,!!l.multiple,a,!1)}}}var Ym=!1;function ax(r,a,l){if(Ym)return r(a,l);Ym=!0;try{var d=r(a);return d}finally{if(Ym=!1,(Js!==null||ei!==null)&&(Ku(),Js&&(a=Js,r=ei,ei=Js=null,ox(a),r)))for(a=0;a<r.length;a++)ox(r[a])}}function gl(r,a){var l=r.stateNode;if(l===null)return null;var d=l[zt]||null;if(d===null)return null;l=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)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(o(231,a,typeof l));return l}var Ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qm=!1;if(Ko)try{var bl={};Object.defineProperty(bl,"passive",{get:function(){Qm=!0}}),window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{Qm=!1}var wa=null,Zm=null,cu=null;function sx(){if(cu)return cu;var r,a=Zm,l=a.length,d,v="value"in wa?wa.value:wa.textContent,x=v.length;for(r=0;r<l&&a[r]===v[r];r++);var z=l-r;for(d=1;d<=z&&a[l-d]===v[x-d];d++);return cu=v.slice(r,1<d?1-d:void 0)}function uu(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function du(){return!0}function ix(){return!1}function Or(r){function a(l,d,v,x,z){this._reactName=l,this._targetInst=v,this.type=d,this.nativeEvent=x,this.target=z,this.currentTarget=null;for(var F in r)r.hasOwnProperty(F)&&(l=r[F],this[F]=l?l(x):x[F]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?du:ix,this.isPropagationStopped=ix,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=du)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=du)},persist:function(){},isPersistent:du}),a}var us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=Or(us),vl=b({},us,{view:0,detail:0}),r6=Or(vl),Jm,ep,yl,mu=b({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:np,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==yl&&(yl&&r.type==="mousemove"?(Jm=r.screenX-yl.screenX,ep=r.screenY-yl.screenY):ep=Jm=0,yl=r),Jm)},movementY:function(r){return"movementY"in r?r.movementY:ep}}),lx=Or(mu),o6=b({},mu,{dataTransfer:0}),a6=Or(o6),s6=b({},vl,{relatedTarget:0}),tp=Or(s6),i6=b({},us,{animationName:0,elapsedTime:0,pseudoElement:0}),l6=Or(i6),c6=b({},us,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),u6=Or(c6),d6=b({},us,{data:0}),cx=Or(d6),f6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m6={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"},p6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h6(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=p6[r])?!!a[r]:!1}function np(){return h6}var g6=b({},vl,{key:function(r){if(r.key){var a=f6[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=uu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?m6[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:np,charCode:function(r){return r.type==="keypress"?uu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?uu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),b6=Or(g6),v6=b({},mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ux=Or(v6),y6=b({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:np}),x6=Or(y6),S6=b({},us,{propertyName:0,elapsedTime:0,pseudoElement:0}),C6=Or(S6),$6=b({},mu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),w6=Or($6),E6=b({},us,{newState:0,oldState:0}),N6=Or(E6),j6=[9,13,27,32],rp=Ko&&"CompositionEvent"in window,xl=null;Ko&&"documentMode"in document&&(xl=document.documentMode);var R6=Ko&&"TextEvent"in window&&!xl,dx=Ko&&(!rp||xl&&8<xl&&11>=xl),fx=" ",mx=!1;function px(r,a){switch(r){case"keyup":return j6.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hx(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ti=!1;function M6(r,a){switch(r){case"compositionend":return hx(a);case"keypress":return a.which!==32?null:(mx=!0,fx);case"textInput":return r=a.data,r===fx&&mx?null:r;default:return null}}function T6(r,a){if(ti)return r==="compositionend"||!rp&&px(r,a)?(r=sx(),cu=Zm=wa=null,ti=!1,r):null;switch(r){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 dx&&a.locale!=="ko"?null:a.data;default:return null}}var O6={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 gx(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!O6[r.type]:a==="textarea"}function bx(r,a,l,d){Js?ei?ei.push(d):ei=[d]:Js=d,a=nd(a,"onChange"),0<a.length&&(l=new fu("onChange","change",null,l,d),r.push({event:l,listeners:a}))}var Sl=null,Cl=null;function z6(r){JS(r,0)}function pu(r){var a=Yt(r);if(ot(a))return r}function vx(r,a){if(r==="change")return a}var yx=!1;if(Ko){var op;if(Ko){var ap="oninput"in document;if(!ap){var xx=document.createElement("div");xx.setAttribute("oninput","return;"),ap=typeof xx.oninput=="function"}op=ap}else op=!1;yx=op&&(!document.documentMode||9<document.documentMode)}function Sx(){Sl&&(Sl.detachEvent("onpropertychange",Cx),Cl=Sl=null)}function Cx(r){if(r.propertyName==="value"&&pu(Cl)){var a=[];bx(a,Cl,r,Km(r)),ax(z6,a)}}function A6(r,a,l){r==="focusin"?(Sx(),Sl=a,Cl=l,Sl.attachEvent("onpropertychange",Cx)):r==="focusout"&&Sx()}function I6(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return pu(Cl)}function P6(r,a){if(r==="click")return pu(a)}function L6(r,a){if(r==="input"||r==="change")return pu(a)}function _6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Wr=typeof Object.is=="function"?Object.is:_6;function $l(r,a){if(Wr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),d=Object.keys(a);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var v=l[d];if(!Se.call(a,v)||!Wr(r[v],a[v]))return!1}return!0}function $x(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wx(r,a){var l=$x(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=a&&d>=a)return{node:l,offset:a-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$x(l)}}function Ex(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Ex(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Nx(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=lt(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=lt(r.document)}return a}function sp(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var B6=Ko&&"documentMode"in document&&11>=document.documentMode,ni=null,ip=null,wl=null,lp=!1;function jx(r,a,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;lp||ni==null||ni!==lt(d)||(d=ni,"selectionStart"in d&&sp(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}),wl&&$l(wl,d)||(wl=d,d=nd(ip,"onSelect"),0<d.length&&(a=new fu("onSelect","select",null,a,l),r.push({event:a,listeners:d}),a.target=ni)))}function ds(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var ri={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionrun:ds("Transition","TransitionRun"),transitionstart:ds("Transition","TransitionStart"),transitioncancel:ds("Transition","TransitionCancel"),transitionend:ds("Transition","TransitionEnd")},cp={},Rx={};Ko&&(Rx=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function fs(r){if(cp[r])return cp[r];if(!ri[r])return r;var a=ri[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in Rx)return cp[r]=a[l];return r}var Mx=fs("animationend"),Tx=fs("animationiteration"),Ox=fs("animationstart"),D6=fs("transitionrun"),H6=fs("transitionstart"),F6=fs("transitioncancel"),zx=fs("transitionend"),Ax=new Map,up="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(" ");up.push("scrollEnd");function Co(r,a){Ax.set(r,a),Nn(a,[r])}var hu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},so=[],oi=0,dp=0;function gu(){for(var r=oi,a=dp=oi=0;a<r;){var l=so[a];so[a++]=null;var d=so[a];so[a++]=null;var v=so[a];so[a++]=null;var x=so[a];if(so[a++]=null,d!==null&&v!==null){var z=d.pending;z===null?v.next=v:(v.next=z.next,z.next=v),d.pending=v}x!==0&&Ix(l,v,x)}}function bu(r,a,l,d){so[oi++]=r,so[oi++]=a,so[oi++]=l,so[oi++]=d,dp|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function fp(r,a,l,d){return bu(r,a,l,d),vu(r)}function ms(r,a){return bu(r,null,null,a),vu(r)}function Ix(r,a,l){r.lanes|=l;var d=r.alternate;d!==null&&(d.lanes|=l);for(var v=!1,x=r.return;x!==null;)x.childLanes|=l,d=x.alternate,d!==null&&(d.childLanes|=l),x.tag===22&&(r=x.stateNode,r===null||r._visibility&1||(v=!0)),r=x,x=x.return;return r.tag===3?(x=r.stateNode,v&&a!==null&&(v=31-Je(l),r=x.hiddenUpdates,d=r[v],d===null?r[v]=[a]:d.push(a),a.lane=l|536870912),x):null}function vu(r){if(50<Ul)throw Ul=0,Sh=null,Error(o(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var ai={};function k6(r,a,l,d){this.tag=r,this.key=l,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 Ur(r,a,l,d){return new k6(r,a,l,d)}function mp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Yo(r,a){var l=r.alternate;return l===null?(l=Ur(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Px(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function yu(r,a,l,d,v,x){var z=0;if(d=r,typeof r=="function")mp(r)&&(z=1);else if(typeof r=="string")z=G3(r,l,G.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case _:return r=Ur(31,l,a,v),r.elementType=_,r.lanes=x,r;case C:return ps(l.children,v,x,a);case j:z=8,v|=24;break;case w:return r=Ur(12,l,a,v|2),r.elementType=w,r.lanes=x,r;case M:return r=Ur(13,l,a,v),r.elementType=M,r.lanes=x,r;case T:return r=Ur(19,l,a,v),r.elementType=T,r.lanes=x,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case E:z=10;break e;case R:z=9;break e;case N:z=11;break e;case O:z=14;break e;case P:z=16,d=null;break e}z=29,l=Error(o(130,r===null?"null":typeof r,"")),d=null}return a=Ur(z,l,a,v),a.elementType=r,a.type=d,a.lanes=x,a}function ps(r,a,l,d){return r=Ur(7,r,d,a),r.lanes=l,r}function pp(r,a,l){return r=Ur(6,r,null,a),r.lanes=l,r}function Lx(r){var a=Ur(18,null,null,0);return a.stateNode=r,a}function hp(r,a,l){return a=Ur(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var _x=new WeakMap;function io(r,a){if(typeof r=="object"&&r!==null){var l=_x.get(r);return l!==void 0?l:(a={value:r,source:a,stack:te(a)},_x.set(r,a),a)}return{value:r,source:a,stack:te(a)}}var si=[],ii=0,xu=null,El=0,lo=[],co=0,Ea=null,Io=1,Po="";function Qo(r,a){si[ii++]=El,si[ii++]=xu,xu=r,El=a}function Bx(r,a,l){lo[co++]=Io,lo[co++]=Po,lo[co++]=Ea,Ea=r;var d=Io;r=Po;var v=32-Je(d)-1;d&=~(1<<v),l+=1;var x=32-Je(a)+v;if(30<x){var z=v-v%5;x=(d&(1<<z)-1).toString(32),d>>=z,v-=z,Io=1<<32-Je(a)+v|l<<v|d,Po=x+r}else Io=1<<x|l<<v|d,Po=r}function gp(r){r.return!==null&&(Qo(r,1),Bx(r,1,0))}function bp(r){for(;r===xu;)xu=si[--ii],si[ii]=null,El=si[--ii],si[ii]=null;for(;r===Ea;)Ea=lo[--co],lo[co]=null,Po=lo[--co],lo[co]=null,Io=lo[--co],lo[co]=null}function Dx(r,a){lo[co++]=Io,lo[co++]=Po,lo[co++]=Ea,Io=a.id,Po=a.overflow,Ea=r}var cr=null,zn=null,tn=!1,Na=null,uo=!1,vp=Error(o(519));function ja(r){var a=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nl(io(a,r)),vp}function Hx(r){var a=r.stateNode,l=r.type,d=r.memoizedProps;switch(a[gt]=r,a[zt]=d,l){case"dialog":Xt("cancel",a),Xt("close",a);break;case"iframe":case"object":case"embed":Xt("load",a);break;case"video":case"audio":for(l=0;l<Xl.length;l++)Xt(Xl[l],a);break;case"source":Xt("error",a);break;case"img":case"image":case"link":Xt("error",a),Xt("load",a);break;case"details":Xt("toggle",a);break;case"input":Xt("invalid",a),Lt(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Xt("invalid",a);break;case"textarea":Xt("invalid",a),cs(a,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||d.suppressHydrationWarning===!0||rC(a.textContent,l)?(d.popover!=null&&(Xt("beforetoggle",a),Xt("toggle",a)),d.onScroll!=null&&Xt("scroll",a),d.onScrollEnd!=null&&Xt("scrollend",a),d.onClick!=null&&(a.onclick=Xo),a=!0):a=!1,a||ja(r,!0)}function Fx(r){for(cr=r.return;cr;)switch(cr.tag){case 5:case 31:case 13:uo=!1;return;case 27:case 3:uo=!0;return;default:cr=cr.return}}function li(r){if(r!==cr)return!1;if(!tn)return Fx(r),tn=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Lh(r.type,r.memoizedProps)),l=!l),l&&zn&&ja(r),Fx(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));zn=fC(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));zn=fC(r)}else a===27?(a=zn,Fa(r.type)?(r=Fh,Fh=null,zn=r):zn=a):zn=cr?mo(r.stateNode.nextSibling):null;return!0}function hs(){zn=cr=null,tn=!1}function yp(){var r=Na;return r!==null&&(Pr===null?Pr=r:Pr.push.apply(Pr,r),Na=null),r}function Nl(r){Na===null?Na=[r]:Na.push(r)}var xp=I(null),gs=null,Zo=null;function Ra(r,a,l){Y(xp,a._currentValue),a._currentValue=l}function Jo(r){r._currentValue=xp.current,D(xp)}function Sp(r,a,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),r===l)break;r=r.return}}function Cp(r,a,l,d){var v=r.child;for(v!==null&&(v.return=r);v!==null;){var x=v.dependencies;if(x!==null){var z=v.child;x=x.firstContext;e:for(;x!==null;){var F=x;x=v;for(var ne=0;ne<a.length;ne++)if(F.context===a[ne]){x.lanes|=l,F=x.alternate,F!==null&&(F.lanes|=l),Sp(x.return,l,r),d||(z=null);break e}x=F.next}}else if(v.tag===18){if(z=v.return,z===null)throw Error(o(341));z.lanes|=l,x=z.alternate,x!==null&&(x.lanes|=l),Sp(z,l,r),z=null}else z=v.child;if(z!==null)z.return=v;else for(z=v;z!==null;){if(z===r){z=null;break}if(v=z.sibling,v!==null){v.return=z.return,z=v;break}z=z.return}v=z}}function ci(r,a,l,d){r=null;for(var v=a,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var z=v.alternate;if(z===null)throw Error(o(387));if(z=z.memoizedProps,z!==null){var F=v.type;Wr(v.pendingProps.value,z.value)||(r!==null?r.push(F):r=[F])}}else if(v===Q.current){if(z=v.alternate,z===null)throw Error(o(387));z.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(r!==null?r.push(Jl):r=[Jl])}v=v.return}r!==null&&Cp(a,r,l,d),a.flags|=262144}function Su(r){for(r=r.firstContext;r!==null;){if(!Wr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function bs(r){gs=r,Zo=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function ur(r){return kx(gs,r)}function Cu(r,a){return gs===null&&bs(r),kx(r,a)}function kx(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Zo===null){if(r===null)throw Error(o(308));Zo=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Zo=Zo.next=a;return l}var V6=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,d){r.push(d)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},q6=e.unstable_scheduleCallback,W6=e.unstable_NormalPriority,Gn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $p(){return{controller:new V6,data:new Map,refCount:0}}function jl(r){r.refCount--,r.refCount===0&&q6(W6,function(){r.controller.abort()})}var Rl=null,wp=0,ui=0,di=null;function U6(r,a){if(Rl===null){var l=Rl=[];wp=0,ui=jh(),di={status:"pending",value:void 0,then:function(d){l.push(d)}}}return wp++,a.then(Vx,Vx),a}function Vx(){if(--wp===0&&Rl!==null){di!==null&&(di.status="fulfilled");var r=Rl;Rl=null,ui=0,di=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function G6(r,a){var l=[],d={status:"pending",value:null,reason:null,then:function(v){l.push(v)}};return r.then(function(){d.status="fulfilled",d.value=a;for(var v=0;v<l.length;v++)(0,l[v])(a)},function(v){for(d.status="rejected",d.reason=v,v=0;v<l.length;v++)(0,l[v])(void 0)}),d}var qx=H.S;H.S=function(r,a){jS=ye(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&U6(r,a),qx!==null&&qx(r,a)};var vs=I(null);function Ep(){var r=vs.current;return r!==null?r:jn.pooledCache}function $u(r,a){a===null?Y(vs,vs.current):Y(vs,a.pool)}function Wx(){var r=Ep();return r===null?null:{parent:Gn._currentValue,pool:r}}var fi=Error(o(460)),Np=Error(o(474)),wu=Error(o(542)),Eu={then:function(){}};function Ux(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Gx(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(Xo,Xo),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Kx(r),r;default:if(typeof a.status=="string")a.then(Xo,Xo);else{if(r=jn,r!==null&&100<r.shellSuspendCounter)throw Error(o(482));r=a,r.status="pending",r.then(function(d){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=d}},function(d){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Kx(r),r}throw xs=a,fi}}function ys(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(xs=l,fi):l}}var xs=null;function Xx(){if(xs===null)throw Error(o(459));var r=xs;return xs=null,r}function Kx(r){if(r===fi||r===wu)throw Error(o(483))}var mi=null,Ml=0;function Nu(r){var a=Ml;return Ml+=1,mi===null&&(mi=[]),Gx(mi,r,a)}function Tl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function ju(r,a){throw a.$$typeof===y?Error(o(525)):(r=Object.prototype.toString.call(a),Error(o(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Yx(r){function a(de,ce){if(r){var ge=de.deletions;ge===null?(de.deletions=[ce],de.flags|=16):ge.push(ce)}}function l(de,ce){if(!r)return null;for(;ce!==null;)a(de,ce),ce=ce.sibling;return null}function d(de){for(var ce=new Map;de!==null;)de.key!==null?ce.set(de.key,de):ce.set(de.index,de),de=de.sibling;return ce}function v(de,ce){return de=Yo(de,ce),de.index=0,de.sibling=null,de}function x(de,ce,ge){return de.index=ge,r?(ge=de.alternate,ge!==null?(ge=ge.index,ge<ce?(de.flags|=67108866,ce):ge):(de.flags|=67108866,ce)):(de.flags|=1048576,ce)}function z(de){return r&&de.alternate===null&&(de.flags|=67108866),de}function F(de,ce,ge,ze){return ce===null||ce.tag!==6?(ce=pp(ge,de.mode,ze),ce.return=de,ce):(ce=v(ce,ge),ce.return=de,ce)}function ne(de,ce,ge,ze){var ft=ge.type;return ft===C?Re(de,ce,ge.props.children,ze,ge.key):ce!==null&&(ce.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===P&&ys(ft)===ce.type)?(ce=v(ce,ge.props),Tl(ce,ge),ce.return=de,ce):(ce=yu(ge.type,ge.key,ge.props,null,de.mode,ze),Tl(ce,ge),ce.return=de,ce)}function be(de,ce,ge,ze){return ce===null||ce.tag!==4||ce.stateNode.containerInfo!==ge.containerInfo||ce.stateNode.implementation!==ge.implementation?(ce=hp(ge,de.mode,ze),ce.return=de,ce):(ce=v(ce,ge.children||[]),ce.return=de,ce)}function Re(de,ce,ge,ze,ft){return ce===null||ce.tag!==7?(ce=ps(ge,de.mode,ze,ft),ce.return=de,ce):(ce=v(ce,ge),ce.return=de,ce)}function Ae(de,ce,ge){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return ce=pp(""+ce,de.mode,ge),ce.return=de,ce;if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case S:return ge=yu(ce.type,ce.key,ce.props,null,de.mode,ge),Tl(ge,ce),ge.return=de,ge;case $:return ce=hp(ce,de.mode,ge),ce.return=de,ce;case P:return ce=ys(ce),Ae(de,ce,ge)}if(W(ce)||B(ce))return ce=ps(ce,de.mode,ge,null),ce.return=de,ce;if(typeof ce.then=="function")return Ae(de,Nu(ce),ge);if(ce.$$typeof===E)return Ae(de,Cu(de,ce),ge);ju(de,ce)}return null}function xe(de,ce,ge,ze){var ft=ce!==null?ce.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return ft!==null?null:F(de,ce,""+ge,ze);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case S:return ge.key===ft?ne(de,ce,ge,ze):null;case $:return ge.key===ft?be(de,ce,ge,ze):null;case P:return ge=ys(ge),xe(de,ce,ge,ze)}if(W(ge)||B(ge))return ft!==null?null:Re(de,ce,ge,ze,null);if(typeof ge.then=="function")return xe(de,ce,Nu(ge),ze);if(ge.$$typeof===E)return xe(de,ce,Cu(de,ge),ze);ju(de,ge)}return null}function $e(de,ce,ge,ze,ft){if(typeof ze=="string"&&ze!==""||typeof ze=="number"||typeof ze=="bigint")return de=de.get(ge)||null,F(ce,de,""+ze,ft);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case S:return de=de.get(ze.key===null?ge:ze.key)||null,ne(ce,de,ze,ft);case $:return de=de.get(ze.key===null?ge:ze.key)||null,be(ce,de,ze,ft);case P:return ze=ys(ze),$e(de,ce,ge,ze,ft)}if(W(ze)||B(ze))return de=de.get(ge)||null,Re(ce,de,ze,ft,null);if(typeof ze.then=="function")return $e(de,ce,ge,Nu(ze),ft);if(ze.$$typeof===E)return $e(de,ce,ge,Cu(ce,ze),ft);ju(ce,ze)}return null}function at(de,ce,ge,ze){for(var ft=null,cn=null,st=ce,At=ce=0,Zt=null;st!==null&&At<ge.length;At++){st.index>At?(Zt=st,st=null):Zt=st.sibling;var un=xe(de,st,ge[At],ze);if(un===null){st===null&&(st=Zt);break}r&&st&&un.alternate===null&&a(de,st),ce=x(un,ce,At),cn===null?ft=un:cn.sibling=un,cn=un,st=Zt}if(At===ge.length)return l(de,st),tn&&Qo(de,At),ft;if(st===null){for(;At<ge.length;At++)st=Ae(de,ge[At],ze),st!==null&&(ce=x(st,ce,At),cn===null?ft=st:cn.sibling=st,cn=st);return tn&&Qo(de,At),ft}for(st=d(st);At<ge.length;At++)Zt=$e(st,de,At,ge[At],ze),Zt!==null&&(r&&Zt.alternate!==null&&st.delete(Zt.key===null?At:Zt.key),ce=x(Zt,ce,At),cn===null?ft=Zt:cn.sibling=Zt,cn=Zt);return r&&st.forEach(function(Ua){return a(de,Ua)}),tn&&Qo(de,At),ft}function bt(de,ce,ge,ze){if(ge==null)throw Error(o(151));for(var ft=null,cn=null,st=ce,At=ce=0,Zt=null,un=ge.next();st!==null&&!un.done;At++,un=ge.next()){st.index>At?(Zt=st,st=null):Zt=st.sibling;var Ua=xe(de,st,un.value,ze);if(Ua===null){st===null&&(st=Zt);break}r&&st&&Ua.alternate===null&&a(de,st),ce=x(Ua,ce,At),cn===null?ft=Ua:cn.sibling=Ua,cn=Ua,st=Zt}if(un.done)return l(de,st),tn&&Qo(de,At),ft;if(st===null){for(;!un.done;At++,un=ge.next())un=Ae(de,un.value,ze),un!==null&&(ce=x(un,ce,At),cn===null?ft=un:cn.sibling=un,cn=un);return tn&&Qo(de,At),ft}for(st=d(st);!un.done;At++,un=ge.next())un=$e(st,de,At,un.value,ze),un!==null&&(r&&un.alternate!==null&&st.delete(un.key===null?At:un.key),ce=x(un,ce,At),cn===null?ft=un:cn.sibling=un,cn=un);return r&&st.forEach(function(oT){return a(de,oT)}),tn&&Qo(de,At),ft}function $n(de,ce,ge,ze){if(typeof ge=="object"&&ge!==null&&ge.type===C&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case S:e:{for(var ft=ge.key;ce!==null;){if(ce.key===ft){if(ft=ge.type,ft===C){if(ce.tag===7){l(de,ce.sibling),ze=v(ce,ge.props.children),ze.return=de,de=ze;break e}}else if(ce.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===P&&ys(ft)===ce.type){l(de,ce.sibling),ze=v(ce,ge.props),Tl(ze,ge),ze.return=de,de=ze;break e}l(de,ce);break}else a(de,ce);ce=ce.sibling}ge.type===C?(ze=ps(ge.props.children,de.mode,ze,ge.key),ze.return=de,de=ze):(ze=yu(ge.type,ge.key,ge.props,null,de.mode,ze),Tl(ze,ge),ze.return=de,de=ze)}return z(de);case $:e:{for(ft=ge.key;ce!==null;){if(ce.key===ft)if(ce.tag===4&&ce.stateNode.containerInfo===ge.containerInfo&&ce.stateNode.implementation===ge.implementation){l(de,ce.sibling),ze=v(ce,ge.children||[]),ze.return=de,de=ze;break e}else{l(de,ce);break}else a(de,ce);ce=ce.sibling}ze=hp(ge,de.mode,ze),ze.return=de,de=ze}return z(de);case P:return ge=ys(ge),$n(de,ce,ge,ze)}if(W(ge))return at(de,ce,ge,ze);if(B(ge)){if(ft=B(ge),typeof ft!="function")throw Error(o(150));return ge=ft.call(ge),bt(de,ce,ge,ze)}if(typeof ge.then=="function")return $n(de,ce,Nu(ge),ze);if(ge.$$typeof===E)return $n(de,ce,Cu(de,ge),ze);ju(de,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint"?(ge=""+ge,ce!==null&&ce.tag===6?(l(de,ce.sibling),ze=v(ce,ge),ze.return=de,de=ze):(l(de,ce),ze=pp(ge,de.mode,ze),ze.return=de,de=ze),z(de)):l(de,ce)}return function(de,ce,ge,ze){try{Ml=0;var ft=$n(de,ce,ge,ze);return mi=null,ft}catch(st){if(st===fi||st===wu)throw st;var cn=Ur(29,st,null,de.mode);return cn.lanes=ze,cn.return=de,cn}}}var Ss=Yx(!0),Qx=Yx(!1),Ma=!1;function jp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rp(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ta(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Oa(r,a,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(pn&2)!==0){var v=d.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),d.pending=a,a=vu(r),Ix(r,null,l),a}return bu(r,d,a,l),vu(r)}function Ol(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var d=a.lanes;d&=r.pendingLanes,l|=d,a.lanes=l,we(r,l)}}function Mp(r,a){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var v=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var z={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};x===null?v=x=z:x=x.next=z,l=l.next}while(l!==null);x===null?v=x=a:x=x.next=a}else v=x=a;l={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:d.shared,callbacks:d.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var Tp=!1;function zl(){if(Tp){var r=di;if(r!==null)throw r}}function Al(r,a,l,d){Tp=!1;var v=r.updateQueue;Ma=!1;var x=v.firstBaseUpdate,z=v.lastBaseUpdate,F=v.shared.pending;if(F!==null){v.shared.pending=null;var ne=F,be=ne.next;ne.next=null,z===null?x=be:z.next=be,z=ne;var Re=r.alternate;Re!==null&&(Re=Re.updateQueue,F=Re.lastBaseUpdate,F!==z&&(F===null?Re.firstBaseUpdate=be:F.next=be,Re.lastBaseUpdate=ne))}if(x!==null){var Ae=v.baseState;z=0,Re=be=ne=null,F=x;do{var xe=F.lane&-536870913,$e=xe!==F.lane;if($e?(Qt&xe)===xe:(d&xe)===xe){xe!==0&&xe===ui&&(Tp=!0),Re!==null&&(Re=Re.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var at=r,bt=F;xe=a;var $n=l;switch(bt.tag){case 1:if(at=bt.payload,typeof at=="function"){Ae=at.call($n,Ae,xe);break e}Ae=at;break e;case 3:at.flags=at.flags&-65537|128;case 0:if(at=bt.payload,xe=typeof at=="function"?at.call($n,Ae,xe):at,xe==null)break e;Ae=b({},Ae,xe);break e;case 2:Ma=!0}}xe=F.callback,xe!==null&&(r.flags|=64,$e&&(r.flags|=8192),$e=v.callbacks,$e===null?v.callbacks=[xe]:$e.push(xe))}else $e={lane:xe,tag:F.tag,payload:F.payload,callback:F.callback,next:null},Re===null?(be=Re=$e,ne=Ae):Re=Re.next=$e,z|=xe;if(F=F.next,F===null){if(F=v.shared.pending,F===null)break;$e=F,F=$e.next,$e.next=null,v.lastBaseUpdate=$e,v.shared.pending=null}}while(!0);Re===null&&(ne=Ae),v.baseState=ne,v.firstBaseUpdate=be,v.lastBaseUpdate=Re,x===null&&(v.shared.lanes=0),La|=z,r.lanes=z,r.memoizedState=Ae}}function Zx(r,a){if(typeof r!="function")throw Error(o(191,r));r.call(a)}function Jx(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Zx(l[r],a)}var pi=I(null),Ru=I(0);function e1(r,a){r=la,Y(Ru,r),Y(pi,a),la=r|a.baseLanes}function Op(){Y(Ru,la),Y(pi,pi.current)}function zp(){la=Ru.current,D(pi),D(Ru)}var Gr=I(null),fo=null;function za(r){var a=r.alternate;Y(kn,kn.current&1),Y(Gr,r),fo===null&&(a===null||pi.current!==null||a.memoizedState!==null)&&(fo=r)}function Ap(r){Y(kn,kn.current),Y(Gr,r),fo===null&&(fo=r)}function t1(r){r.tag===22?(Y(kn,kn.current),Y(Gr,r),fo===null&&(fo=r)):Aa()}function Aa(){Y(kn,kn.current),Y(Gr,Gr.current)}function Xr(r){D(Gr),fo===r&&(fo=null),D(kn)}var kn=I(0);function Mu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dh(l)||Hh(l)))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===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ea=0,Tt=null,Sn=null,Xn=null,Tu=!1,hi=!1,Cs=!1,Ou=0,Il=0,gi=null,X6=0;function Bn(){throw Error(o(321))}function Ip(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!Wr(r[l],a[l]))return!1;return!0}function Pp(r,a,l,d,v,x){return ea=x,Tt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=r===null||r.memoizedState===null?B1:Yp,Cs=!1,x=l(d,v),Cs=!1,hi&&(x=r1(a,l,d,v)),n1(r),x}function n1(r){H.H=_l;var a=Sn!==null&&Sn.next!==null;if(ea=0,Xn=Sn=Tt=null,Tu=!1,Il=0,gi=null,a)throw Error(o(300));r===null||Kn||(r=r.dependencies,r!==null&&Su(r)&&(Kn=!0))}function r1(r,a,l,d){Tt=r;var v=0;do{if(hi&&(gi=null),Il=0,hi=!1,25<=v)throw Error(o(301));if(v+=1,Xn=Sn=null,r.updateQueue!=null){var x=r.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}H.H=D1,x=a(l,d)}while(hi);return x}function K6(){var r=H.H,a=r.useState()[0];return a=typeof a.then=="function"?Pl(a):a,r=r.useState()[0],(Sn!==null?Sn.memoizedState:null)!==r&&(Tt.flags|=1024),a}function Lp(){var r=Ou!==0;return Ou=0,r}function _p(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function Bp(r){if(Tu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Tu=!1}ea=0,Xn=Sn=Tt=null,hi=!1,Il=Ou=0,gi=null}function Nr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?Tt.memoizedState=Xn=r:Xn=Xn.next=r,Xn}function Vn(){if(Sn===null){var r=Tt.alternate;r=r!==null?r.memoizedState:null}else r=Sn.next;var a=Xn===null?Tt.memoizedState:Xn.next;if(a!==null)Xn=a,Sn=r;else{if(r===null)throw Tt.alternate===null?Error(o(467)):Error(o(310));Sn=r,r={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},Xn===null?Tt.memoizedState=Xn=r:Xn=Xn.next=r}return Xn}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pl(r){var a=Il;return Il+=1,gi===null&&(gi=[]),r=Gx(gi,r,a),a=Tt,(Xn===null?a.memoizedState:Xn.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?B1:Yp),r}function Au(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Pl(r);if(r.$$typeof===E)return ur(r)}throw Error(o(438,String(r)))}function Dp(r){var a=null,l=Tt.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var d=Tt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=zu(),Tt.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),d=0;d<r;d++)l[d]=L;return a.index++,l}function ta(r,a){return typeof a=="function"?a(r):a}function Iu(r){var a=Vn();return Hp(a,Sn,r)}function Hp(r,a,l){var d=r.queue;if(d===null)throw Error(o(311));d.lastRenderedReducer=l;var v=r.baseQueue,x=d.pending;if(x!==null){if(v!==null){var z=v.next;v.next=x.next,x.next=z}a.baseQueue=v=x,d.pending=null}if(x=r.baseState,v===null)r.memoizedState=x;else{a=v.next;var F=z=null,ne=null,be=a,Re=!1;do{var Ae=be.lane&-536870913;if(Ae!==be.lane?(Qt&Ae)===Ae:(ea&Ae)===Ae){var xe=be.revertLane;if(xe===0)ne!==null&&(ne=ne.next={lane:0,revertLane:0,gesture:null,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),Ae===ui&&(Re=!0);else if((ea&xe)===xe){be=be.next,xe===ui&&(Re=!0);continue}else Ae={lane:0,revertLane:be.revertLane,gesture:null,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},ne===null?(F=ne=Ae,z=x):ne=ne.next=Ae,Tt.lanes|=xe,La|=xe;Ae=be.action,Cs&&l(x,Ae),x=be.hasEagerState?be.eagerState:l(x,Ae)}else xe={lane:Ae,revertLane:be.revertLane,gesture:be.gesture,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},ne===null?(F=ne=xe,z=x):ne=ne.next=xe,Tt.lanes|=Ae,La|=Ae;be=be.next}while(be!==null&&be!==a);if(ne===null?z=x:ne.next=F,!Wr(x,r.memoizedState)&&(Kn=!0,Re&&(l=di,l!==null)))throw l;r.memoizedState=x,r.baseState=z,r.baseQueue=ne,d.lastRenderedState=x}return v===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Fp(r){var a=Vn(),l=a.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=r;var d=l.dispatch,v=l.pending,x=a.memoizedState;if(v!==null){l.pending=null;var z=v=v.next;do x=r(x,z.action),z=z.next;while(z!==v);Wr(x,a.memoizedState)||(Kn=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),l.lastRenderedState=x}return[x,d]}function o1(r,a,l){var d=Tt,v=Vn(),x=tn;if(x){if(l===void 0)throw Error(o(407));l=l()}else l=a();var z=!Wr((Sn||v).memoizedState,l);if(z&&(v.memoizedState=l,Kn=!0),v=v.queue,qp(i1.bind(null,d,v,r),[r]),v.getSnapshot!==a||z||Xn!==null&&Xn.memoizedState.tag&1){if(d.flags|=2048,bi(9,{destroy:void 0},s1.bind(null,d,v,l,a),null),jn===null)throw Error(o(349));x||(ea&127)!==0||a1(d,a,l)}return l}function a1(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Tt.updateQueue,a===null?(a=zu(),Tt.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function s1(r,a,l,d){a.value=l,a.getSnapshot=d,l1(a)&&c1(r)}function i1(r,a,l){return l(function(){l1(a)&&c1(r)})}function l1(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!Wr(r,l)}catch{return!0}}function c1(r){var a=ms(r,2);a!==null&&Lr(a,r,2)}function kp(r){var a=Nr();if(typeof r=="function"){var l=r;if(r=l(),Cs){Oe(!0);try{l()}finally{Oe(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:r},a}function u1(r,a,l,d){return r.baseState=l,Hp(r,Sn,typeof d=="function"?d:ta)}function Y6(r,a,l,d,v){if(_u(r))throw Error(o(485));if(r=a.action,r!==null){var x={payload:v,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){x.listeners.push(z)}};H.T!==null?l(!0):x.isTransition=!1,d(x),l=a.pending,l===null?(x.next=a.pending=x,d1(a,x)):(x.next=l.next,a.pending=l.next=x)}}function d1(r,a){var l=a.action,d=a.payload,v=r.state;if(a.isTransition){var x=H.T,z={};H.T=z;try{var F=l(v,d),ne=H.S;ne!==null&&ne(z,F),f1(r,a,F)}catch(be){Vp(r,a,be)}finally{x!==null&&z.types!==null&&(x.types=z.types),H.T=x}}else try{x=l(v,d),f1(r,a,x)}catch(be){Vp(r,a,be)}}function f1(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){m1(r,a,d)},function(d){return Vp(r,a,d)}):m1(r,a,l)}function m1(r,a,l){a.status="fulfilled",a.value=l,p1(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,d1(r,l)))}function Vp(r,a,l){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=l,p1(a),a=a.next;while(a!==d)}r.action=null}function p1(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function h1(r,a){return a}function g1(r,a){if(tn){var l=jn.formState;if(l!==null){e:{var d=Tt;if(tn){if(zn){t:{for(var v=zn,x=uo;v.nodeType!==8;){if(!x){v=null;break t}if(v=mo(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){zn=mo(v.nextSibling),d=v.data==="F!";break e}}ja(d)}d=!1}d&&(a=l[0])}}return l=Nr(),l.memoizedState=l.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:a},l.queue=d,l=P1.bind(null,Tt,d),d.dispatch=l,d=kp(!1),x=Kp.bind(null,Tt,!1,d.queue),d=Nr(),v={state:a,dispatch:null,action:r,pending:null},d.queue=v,l=Y6.bind(null,Tt,v,x,l),v.dispatch=l,d.memoizedState=r,[a,l,!1]}function b1(r){var a=Vn();return v1(a,Sn,r)}function v1(r,a,l){if(a=Hp(r,a,h1)[0],r=Iu(ta)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=Pl(a)}catch(z){throw z===fi?wu:z}else d=a;a=Vn();var v=a.queue,x=v.dispatch;return l!==a.memoizedState&&(Tt.flags|=2048,bi(9,{destroy:void 0},Q6.bind(null,v,l),null)),[d,x,r]}function Q6(r,a){r.action=a}function y1(r){var a=Vn(),l=Sn;if(l!==null)return v1(a,l,r);Vn(),a=a.memoizedState,l=Vn();var d=l.queue.dispatch;return l.memoizedState=r,[a,d,!1]}function bi(r,a,l,d){return r={tag:r,create:l,deps:d,inst:a,next:null},a=Tt.updateQueue,a===null&&(a=zu(),Tt.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,a.lastEffect=r),r}function x1(){return Vn().memoizedState}function Pu(r,a,l,d){var v=Nr();Tt.flags|=r,v.memoizedState=bi(1|a,{destroy:void 0},l,d===void 0?null:d)}function Lu(r,a,l,d){var v=Vn();d=d===void 0?null:d;var x=v.memoizedState.inst;Sn!==null&&d!==null&&Ip(d,Sn.memoizedState.deps)?v.memoizedState=bi(a,x,l,d):(Tt.flags|=r,v.memoizedState=bi(1|a,x,l,d))}function S1(r,a){Pu(8390656,8,r,a)}function qp(r,a){Lu(2048,8,r,a)}function Z6(r){Tt.flags|=4;var a=Tt.updateQueue;if(a===null)a=zu(),Tt.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function C1(r){var a=Vn().memoizedState;return Z6({ref:a,nextImpl:r}),function(){if((pn&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}function $1(r,a){return Lu(4,2,r,a)}function w1(r,a){return Lu(4,4,r,a)}function E1(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function N1(r,a,l){l=l!=null?l.concat([r]):null,Lu(4,4,E1.bind(null,a,r),l)}function Wp(){}function j1(r,a){var l=Vn();a=a===void 0?null:a;var d=l.memoizedState;return a!==null&&Ip(a,d[1])?d[0]:(l.memoizedState=[r,a],r)}function R1(r,a){var l=Vn();a=a===void 0?null:a;var d=l.memoizedState;if(a!==null&&Ip(a,d[1]))return d[0];if(d=r(),Cs){Oe(!0);try{r()}finally{Oe(!1)}}return l.memoizedState=[d,a],d}function Up(r,a,l){return l===void 0||(ea&1073741824)!==0&&(Qt&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=MS(),Tt.lanes|=r,La|=r,l)}function M1(r,a,l,d){return Wr(l,a)?l:pi.current!==null?(r=Up(r,l,d),Wr(r,a)||(Kn=!0),r):(ea&42)===0||(ea&1073741824)!==0&&(Qt&261930)===0?(Kn=!0,r.memoizedState=l):(r=MS(),Tt.lanes|=r,La|=r,a)}function T1(r,a,l,d,v){var x=q.p;q.p=x!==0&&8>x?x:8;var z=H.T,F={};H.T=F,Kp(r,!1,a,l);try{var ne=v(),be=H.S;if(be!==null&&be(F,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var Re=G6(ne,d);Ll(r,a,Re,Qr(r))}else Ll(r,a,d,Qr(r))}catch(Ae){Ll(r,a,{then:function(){},status:"rejected",reason:Ae},Qr())}finally{q.p=x,z!==null&&F.types!==null&&(z.types=F.types),H.T=z}}function J6(){}function Gp(r,a,l,d){if(r.tag!==5)throw Error(o(476));var v=O1(r).queue;T1(r,v,a,U,l===null?J6:function(){return z1(r),l(d)})}function O1(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:U},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function z1(r){var a=O1(r);a.next===null&&(a=r.alternate.memoizedState),Ll(r,a.next.queue,{},Qr())}function Xp(){return ur(Jl)}function A1(){return Vn().memoizedState}function I1(){return Vn().memoizedState}function e3(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=Qr();r=Ta(l);var d=Oa(a,r,l);d!==null&&(Lr(d,a,l),Ol(d,a,l)),a={cache:$p()},r.payload=a;return}a=a.return}}function t3(r,a,l){var d=Qr();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_u(r)?L1(a,l):(l=fp(r,a,l,d),l!==null&&(Lr(l,r,d),_1(l,a,d)))}function P1(r,a,l){var d=Qr();Ll(r,a,l,d)}function Ll(r,a,l,d){var v={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_u(r))L1(a,v);else{var x=r.alternate;if(r.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var z=a.lastRenderedState,F=x(z,l);if(v.hasEagerState=!0,v.eagerState=F,Wr(F,z))return bu(r,a,v,0),jn===null&&gu(),!1}catch{}if(l=fp(r,a,v,d),l!==null)return Lr(l,r,d),_1(l,a,d),!0}return!1}function Kp(r,a,l,d){if(d={lane:2,revertLane:jh(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},_u(r)){if(a)throw Error(o(479))}else a=fp(r,l,d,2),a!==null&&Lr(a,r,2)}function _u(r){var a=r.alternate;return r===Tt||a!==null&&a===Tt}function L1(r,a){hi=Tu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function _1(r,a,l){if((l&4194048)!==0){var d=a.lanes;d&=r.pendingLanes,l|=d,a.lanes=l,we(r,l)}}var _l={readContext:ur,use:Au,useCallback:Bn,useContext:Bn,useEffect:Bn,useImperativeHandle:Bn,useLayoutEffect:Bn,useInsertionEffect:Bn,useMemo:Bn,useReducer:Bn,useRef:Bn,useState:Bn,useDebugValue:Bn,useDeferredValue:Bn,useTransition:Bn,useSyncExternalStore:Bn,useId:Bn,useHostTransitionStatus:Bn,useFormState:Bn,useActionState:Bn,useOptimistic:Bn,useMemoCache:Bn,useCacheRefresh:Bn};_l.useEffectEvent=Bn;var B1={readContext:ur,use:Au,useCallback:function(r,a){return Nr().memoizedState=[r,a===void 0?null:a],r},useContext:ur,useEffect:S1,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Pu(4194308,4,E1.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Pu(4194308,4,r,a)},useInsertionEffect:function(r,a){Pu(4,2,r,a)},useMemo:function(r,a){var l=Nr();a=a===void 0?null:a;var d=r();if(Cs){Oe(!0);try{r()}finally{Oe(!1)}}return l.memoizedState=[d,a],d},useReducer:function(r,a,l){var d=Nr();if(l!==void 0){var v=l(a);if(Cs){Oe(!0);try{l(a)}finally{Oe(!1)}}}else v=a;return d.memoizedState=d.baseState=v,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:v},d.queue=r,r=r.dispatch=t3.bind(null,Tt,r),[d.memoizedState,r]},useRef:function(r){var a=Nr();return r={current:r},a.memoizedState=r},useState:function(r){r=kp(r);var a=r.queue,l=P1.bind(null,Tt,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Wp,useDeferredValue:function(r,a){var l=Nr();return Up(l,r,a)},useTransition:function(){var r=kp(!1);return r=T1.bind(null,Tt,r.queue,!0,!1),Nr().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var d=Tt,v=Nr();if(tn){if(l===void 0)throw Error(o(407));l=l()}else{if(l=a(),jn===null)throw Error(o(349));(Qt&127)!==0||a1(d,a,l)}v.memoizedState=l;var x={value:l,getSnapshot:a};return v.queue=x,S1(i1.bind(null,d,x,r),[r]),d.flags|=2048,bi(9,{destroy:void 0},s1.bind(null,d,x,l,a),null),l},useId:function(){var r=Nr(),a=jn.identifierPrefix;if(tn){var l=Po,d=Io;l=(d&~(1<<32-Je(d)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Ou++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=X6++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Xp,useFormState:g1,useActionState:g1,useOptimistic:function(r){var a=Nr();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Kp.bind(null,Tt,!0,l),l.dispatch=a,[r,a]},useMemoCache:Dp,useCacheRefresh:function(){return Nr().memoizedState=e3.bind(null,Tt)},useEffectEvent:function(r){var a=Nr(),l={impl:r};return a.memoizedState=l,function(){if((pn&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Yp={readContext:ur,use:Au,useCallback:j1,useContext:ur,useEffect:qp,useImperativeHandle:N1,useInsertionEffect:$1,useLayoutEffect:w1,useMemo:R1,useReducer:Iu,useRef:x1,useState:function(){return Iu(ta)},useDebugValue:Wp,useDeferredValue:function(r,a){var l=Vn();return M1(l,Sn.memoizedState,r,a)},useTransition:function(){var r=Iu(ta)[0],a=Vn().memoizedState;return[typeof r=="boolean"?r:Pl(r),a]},useSyncExternalStore:o1,useId:A1,useHostTransitionStatus:Xp,useFormState:b1,useActionState:b1,useOptimistic:function(r,a){var l=Vn();return u1(l,Sn,r,a)},useMemoCache:Dp,useCacheRefresh:I1};Yp.useEffectEvent=C1;var D1={readContext:ur,use:Au,useCallback:j1,useContext:ur,useEffect:qp,useImperativeHandle:N1,useInsertionEffect:$1,useLayoutEffect:w1,useMemo:R1,useReducer:Fp,useRef:x1,useState:function(){return Fp(ta)},useDebugValue:Wp,useDeferredValue:function(r,a){var l=Vn();return Sn===null?Up(l,r,a):M1(l,Sn.memoizedState,r,a)},useTransition:function(){var r=Fp(ta)[0],a=Vn().memoizedState;return[typeof r=="boolean"?r:Pl(r),a]},useSyncExternalStore:o1,useId:A1,useHostTransitionStatus:Xp,useFormState:y1,useActionState:y1,useOptimistic:function(r,a){var l=Vn();return Sn!==null?u1(l,Sn,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Dp,useCacheRefresh:I1};D1.useEffectEvent=C1;function Qp(r,a,l,d){a=r.memoizedState,l=l(d,a),l=l==null?a:b({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Zp={enqueueSetState:function(r,a,l){r=r._reactInternals;var d=Qr(),v=Ta(d);v.payload=a,l!=null&&(v.callback=l),a=Oa(r,v,d),a!==null&&(Lr(a,r,d),Ol(a,r,d))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var d=Qr(),v=Ta(d);v.tag=1,v.payload=a,l!=null&&(v.callback=l),a=Oa(r,v,d),a!==null&&(Lr(a,r,d),Ol(a,r,d))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=Qr(),d=Ta(l);d.tag=2,a!=null&&(d.callback=a),a=Oa(r,d,l),a!==null&&(Lr(a,r,l),Ol(a,r,l))}};function H1(r,a,l,d,v,x,z){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,x,z):a.prototype&&a.prototype.isPureReactComponent?!$l(l,d)||!$l(v,x):!0}function F1(r,a,l,d){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,d),a.state!==r&&Zp.enqueueReplaceState(a,a.state,null)}function $s(r,a){var l=a;if("ref"in a){l={};for(var d in a)d!=="ref"&&(l[d]=a[d])}if(r=r.defaultProps){l===a&&(l=b({},l));for(var v in r)l[v]===void 0&&(l[v]=r[v])}return l}function k1(r){hu(r)}function V1(r){console.error(r)}function q1(r){hu(r)}function Bu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function W1(r,a,l){try{var d=r.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Jp(r,a,l){return l=Ta(l),l.tag=3,l.payload={element:null},l.callback=function(){Bu(r,a)},l}function U1(r){return r=Ta(r),r.tag=3,r}function G1(r,a,l,d){var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var x=d.value;r.payload=function(){return v(x)},r.callback=function(){W1(a,l,d)}}var z=l.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(r.callback=function(){W1(a,l,d),typeof v!="function"&&(_a===null?_a=new Set([this]):_a.add(this));var F=d.stack;this.componentDidCatch(d.value,{componentStack:F!==null?F:""})})}function n3(r,a,l,d,v){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=l.alternate,a!==null&&ci(a,l,v,!0),l=Gr.current,l!==null){switch(l.tag){case 31:case 13:return fo===null?Yu():l.alternate===null&&Dn===0&&(Dn=3),l.flags&=-257,l.flags|=65536,l.lanes=v,d===Eu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([d]):a.add(d),wh(r,d,v)),!1;case 22:return l.flags|=65536,d===Eu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([d]):l.add(d)),wh(r,d,v)),!1}throw Error(o(435,l.tag))}return wh(r,d,v),Yu(),!1}if(tn)return a=Gr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,d!==vp&&(r=Error(o(422),{cause:d}),Nl(io(r,l)))):(d!==vp&&(a=Error(o(423),{cause:d}),Nl(io(a,l))),r=r.current.alternate,r.flags|=65536,v&=-v,r.lanes|=v,d=io(d,l),v=Jp(r.stateNode,d,v),Mp(r,v),Dn!==4&&(Dn=2)),!1;var x=Error(o(520),{cause:d});if(x=io(x,l),Wl===null?Wl=[x]:Wl.push(x),Dn!==4&&(Dn=2),a===null)return!0;d=io(d,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=v&-v,l.lanes|=r,r=Jp(l.stateNode,d,r),Mp(l,r),!1;case 1:if(a=l.type,x=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(_a===null||!_a.has(x))))return l.flags|=65536,v&=-v,l.lanes|=v,v=U1(v),G1(v,r,l,d),Mp(l,v),!1}l=l.return}while(l!==null);return!1}var eh=Error(o(461)),Kn=!1;function dr(r,a,l,d){a.child=r===null?Qx(a,null,l,d):Ss(a,r.child,l,d)}function X1(r,a,l,d,v){l=l.render;var x=a.ref;if("ref"in d){var z={};for(var F in d)F!=="ref"&&(z[F]=d[F])}else z=d;return bs(a),d=Pp(r,a,l,z,x,v),F=Lp(),r!==null&&!Kn?(_p(r,a,v),na(r,a,v)):(tn&&F&&gp(a),a.flags|=1,dr(r,a,d,v),a.child)}function K1(r,a,l,d,v){if(r===null){var x=l.type;return typeof x=="function"&&!mp(x)&&x.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=x,Y1(r,a,x,d,v)):(r=yu(l.type,null,d,a,a.mode,v),r.ref=a.ref,r.return=a,a.child=r)}if(x=r.child,!lh(r,v)){var z=x.memoizedProps;if(l=l.compare,l=l!==null?l:$l,l(z,d)&&r.ref===a.ref)return na(r,a,v)}return a.flags|=1,r=Yo(x,d),r.ref=a.ref,r.return=a,a.child=r}function Y1(r,a,l,d,v){if(r!==null){var x=r.memoizedProps;if($l(x,d)&&r.ref===a.ref)if(Kn=!1,a.pendingProps=d=x,lh(r,v))(r.flags&131072)!==0&&(Kn=!0);else return a.lanes=r.lanes,na(r,a,v)}return th(r,a,l,d,v)}function Q1(r,a,l,d){var v=d.children,x=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(x=x!==null?x.baseLanes|l:l,r!==null){for(d=a.child=r.child,v=0;d!==null;)v=v|d.lanes|d.childLanes,d=d.sibling;d=v&~x}else d=0,a.child=null;return Z1(r,a,x,l,d)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&$u(a,x!==null?x.cachePool:null),x!==null?e1(a,x):Op(),t1(a);else return d=a.lanes=536870912,Z1(r,a,x!==null?x.baseLanes|l:l,l,d)}else x!==null?($u(a,x.cachePool),e1(a,x),Aa(),a.memoizedState=null):(r!==null&&$u(a,null),Op(),Aa());return dr(r,a,v,l),a.child}function Bl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Z1(r,a,l,d,v){var x=Ep();return x=x===null?null:{parent:Gn._currentValue,pool:x},a.memoizedState={baseLanes:l,cachePool:x},r!==null&&$u(a,null),Op(),t1(a),r!==null&&ci(r,a,d,!0),a.childLanes=v,null}function Du(r,a){return a=Fu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function J1(r,a,l){return Ss(a,r.child,null,l),r=Du(a,a.pendingProps),r.flags|=2,Xr(a),a.memoizedState=null,r}function r3(r,a,l){var d=a.pendingProps,v=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(tn){if(d.mode==="hidden")return r=Du(a,d),a.lanes=536870912,Bl(null,r);if(Ap(a),(r=zn)?(r=dC(r,uo),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ea!==null?{id:Io,overflow:Po}:null,retryLane:536870912,hydrationErrors:null},l=Lx(r),l.return=a,a.child=l,cr=a,zn=null)):r=null,r===null)throw ja(a);return a.lanes=536870912,null}return Du(a,d)}var x=r.memoizedState;if(x!==null){var z=x.dehydrated;if(Ap(a),v)if(a.flags&256)a.flags&=-257,a=J1(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(o(558));else if(Kn||ci(r,a,l,!1),v=(l&r.childLanes)!==0,Kn||v){if(d=jn,d!==null&&(z=Fe(d,l),z!==0&&z!==x.retryLane))throw x.retryLane=z,ms(r,z),Lr(d,r,z),eh;Yu(),a=J1(r,a,l)}else r=x.treeContext,zn=mo(z.nextSibling),cr=a,tn=!0,Na=null,uo=!1,r!==null&&Dx(a,r),a=Du(a,d),a.flags|=4096;return a}return r=Yo(r.child,{mode:d.mode,children:d.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Hu(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function th(r,a,l,d,v){return bs(a),l=Pp(r,a,l,d,void 0,v),d=Lp(),r!==null&&!Kn?(_p(r,a,v),na(r,a,v)):(tn&&d&&gp(a),a.flags|=1,dr(r,a,l,v),a.child)}function eS(r,a,l,d,v,x){return bs(a),a.updateQueue=null,l=r1(a,d,l,v),n1(r),d=Lp(),r!==null&&!Kn?(_p(r,a,x),na(r,a,x)):(tn&&d&&gp(a),a.flags|=1,dr(r,a,l,x),a.child)}function tS(r,a,l,d,v){if(bs(a),a.stateNode===null){var x=ai,z=l.contextType;typeof z=="object"&&z!==null&&(x=ur(z)),x=new l(d,x),a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Zp,a.stateNode=x,x._reactInternals=a,x=a.stateNode,x.props=d,x.state=a.memoizedState,x.refs={},jp(a),z=l.contextType,x.context=typeof z=="object"&&z!==null?ur(z):ai,x.state=a.memoizedState,z=l.getDerivedStateFromProps,typeof z=="function"&&(Qp(a,l,z,d),x.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(z=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),z!==x.state&&Zp.enqueueReplaceState(x,x.state,null),Al(a,d,x,v),zl(),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(r===null){x=a.stateNode;var F=a.memoizedProps,ne=$s(l,F);x.props=ne;var be=x.context,Re=l.contextType;z=ai,typeof Re=="object"&&Re!==null&&(z=ur(Re));var Ae=l.getDerivedStateFromProps;Re=typeof Ae=="function"||typeof x.getSnapshotBeforeUpdate=="function",F=a.pendingProps!==F,Re||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(F||be!==z)&&F1(a,x,d,z),Ma=!1;var xe=a.memoizedState;x.state=xe,Al(a,d,x,v),zl(),be=a.memoizedState,F||xe!==be||Ma?(typeof Ae=="function"&&(Qp(a,l,Ae,d),be=a.memoizedState),(ne=Ma||H1(a,l,ne,d,xe,be,z))?(Re||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(a.flags|=4194308)):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=be),x.props=d,x.state=be,x.context=z,d=ne):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{x=a.stateNode,Rp(r,a),z=a.memoizedProps,Re=$s(l,z),x.props=Re,Ae=a.pendingProps,xe=x.context,be=l.contextType,ne=ai,typeof be=="object"&&be!==null&&(ne=ur(be)),F=l.getDerivedStateFromProps,(be=typeof F=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(z!==Ae||xe!==ne)&&F1(a,x,d,ne),Ma=!1,xe=a.memoizedState,x.state=xe,Al(a,d,x,v),zl();var $e=a.memoizedState;z!==Ae||xe!==$e||Ma||r!==null&&r.dependencies!==null&&Su(r.dependencies)?(typeof F=="function"&&(Qp(a,l,F,d),$e=a.memoizedState),(Re=Ma||H1(a,l,Re,d,xe,$e,ne)||r!==null&&r.dependencies!==null&&Su(r.dependencies))?(be||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(d,$e,ne),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(d,$e,ne)),typeof x.componentDidUpdate=="function"&&(a.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof x.componentDidUpdate!="function"||z===r.memoizedProps&&xe===r.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||z===r.memoizedProps&&xe===r.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=$e),x.props=d,x.state=$e,x.context=ne,d=Re):(typeof x.componentDidUpdate!="function"||z===r.memoizedProps&&xe===r.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||z===r.memoizedProps&&xe===r.memoizedState||(a.flags|=1024),d=!1)}return x=d,Hu(r,a),d=(a.flags&128)!==0,x||d?(x=a.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:x.render(),a.flags|=1,r!==null&&d?(a.child=Ss(a,r.child,null,v),a.child=Ss(a,null,l,v)):dr(r,a,l,v),a.memoizedState=x.state,r=a.child):r=na(r,a,v),r}function nS(r,a,l,d){return hs(),a.flags|=256,dr(r,a,l,d),a.child}var nh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rh(r){return{baseLanes:r,cachePool:Wx()}}function oh(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=Yr),r}function rS(r,a,l){var d=a.pendingProps,v=!1,x=(a.flags&128)!==0,z;if((z=x)||(z=r!==null&&r.memoizedState===null?!1:(kn.current&2)!==0),z&&(v=!0,a.flags&=-129),z=(a.flags&32)!==0,a.flags&=-33,r===null){if(tn){if(v?za(a):Aa(),(r=zn)?(r=dC(r,uo),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ea!==null?{id:Io,overflow:Po}:null,retryLane:536870912,hydrationErrors:null},l=Lx(r),l.return=a,a.child=l,cr=a,zn=null)):r=null,r===null)throw ja(a);return Hh(r)?a.lanes=32:a.lanes=536870912,null}var F=d.children;return d=d.fallback,v?(Aa(),v=a.mode,F=Fu({mode:"hidden",children:F},v),d=ps(d,v,l,null),F.return=a,d.return=a,F.sibling=d,a.child=F,d=a.child,d.memoizedState=rh(l),d.childLanes=oh(r,z,l),a.memoizedState=nh,Bl(null,d)):(za(a),ah(a,F))}var ne=r.memoizedState;if(ne!==null&&(F=ne.dehydrated,F!==null)){if(x)a.flags&256?(za(a),a.flags&=-257,a=sh(r,a,l)):a.memoizedState!==null?(Aa(),a.child=r.child,a.flags|=128,a=null):(Aa(),F=d.fallback,v=a.mode,d=Fu({mode:"visible",children:d.children},v),F=ps(F,v,l,null),F.flags|=2,d.return=a,F.return=a,d.sibling=F,a.child=d,Ss(a,r.child,null,l),d=a.child,d.memoizedState=rh(l),d.childLanes=oh(r,z,l),a.memoizedState=nh,a=Bl(null,d));else if(za(a),Hh(F)){if(z=F.nextSibling&&F.nextSibling.dataset,z)var be=z.dgst;z=be,d=Error(o(419)),d.stack="",d.digest=z,Nl({value:d,source:null,stack:null}),a=sh(r,a,l)}else if(Kn||ci(r,a,l,!1),z=(l&r.childLanes)!==0,Kn||z){if(z=jn,z!==null&&(d=Fe(z,l),d!==0&&d!==ne.retryLane))throw ne.retryLane=d,ms(r,d),Lr(z,r,d),eh;Dh(F)||Yu(),a=sh(r,a,l)}else Dh(F)?(a.flags|=192,a.child=r.child,a=null):(r=ne.treeContext,zn=mo(F.nextSibling),cr=a,tn=!0,Na=null,uo=!1,r!==null&&Dx(a,r),a=ah(a,d.children),a.flags|=4096);return a}return v?(Aa(),F=d.fallback,v=a.mode,ne=r.child,be=ne.sibling,d=Yo(ne,{mode:"hidden",children:d.children}),d.subtreeFlags=ne.subtreeFlags&65011712,be!==null?F=Yo(be,F):(F=ps(F,v,l,null),F.flags|=2),F.return=a,d.return=a,d.sibling=F,a.child=d,Bl(null,d),d=a.child,F=r.child.memoizedState,F===null?F=rh(l):(v=F.cachePool,v!==null?(ne=Gn._currentValue,v=v.parent!==ne?{parent:ne,pool:ne}:v):v=Wx(),F={baseLanes:F.baseLanes|l,cachePool:v}),d.memoizedState=F,d.childLanes=oh(r,z,l),a.memoizedState=nh,Bl(r.child,d)):(za(a),l=r.child,r=l.sibling,l=Yo(l,{mode:"visible",children:d.children}),l.return=a,l.sibling=null,r!==null&&(z=a.deletions,z===null?(a.deletions=[r],a.flags|=16):z.push(r)),a.child=l,a.memoizedState=null,l)}function ah(r,a){return a=Fu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Fu(r,a){return r=Ur(22,r,null,a),r.lanes=0,r}function sh(r,a,l){return Ss(a,r.child,null,l),r=ah(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function oS(r,a,l){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a),Sp(r.return,a,l)}function ih(r,a,l,d,v,x){var z=r.memoizedState;z===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:v,treeForkCount:x}:(z.isBackwards=a,z.rendering=null,z.renderingStartTime=0,z.last=d,z.tail=l,z.tailMode=v,z.treeForkCount=x)}function aS(r,a,l){var d=a.pendingProps,v=d.revealOrder,x=d.tail;d=d.children;var z=kn.current,F=(z&2)!==0;if(F?(z=z&1|2,a.flags|=128):z&=1,Y(kn,z),dr(r,a,d,l),d=tn?El:0,!F&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&oS(r,l,a);else if(r.tag===19)oS(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(v){case"forwards":for(l=a.child,v=null;l!==null;)r=l.alternate,r!==null&&Mu(r)===null&&(v=l),l=l.sibling;l=v,l===null?(v=a.child,a.child=null):(v=l.sibling,l.sibling=null),ih(a,!1,v,l,x,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,v=a.child,a.child=null;v!==null;){if(r=v.alternate,r!==null&&Mu(r)===null){a.child=v;break}r=v.sibling,v.sibling=l,l=v,v=r}ih(a,!0,l,null,x,d);break;case"together":ih(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function na(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),La|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(ci(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(o(153));if(a.child!==null){for(r=a.child,l=Yo(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=Yo(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function lh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Su(r)))}function o3(r,a,l){switch(a.tag){case 3:ae(a,a.stateNode.containerInfo),Ra(a,Gn,r.memoizedState.cache),hs();break;case 27:case 5:ie(a);break;case 4:ae(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,Ap(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(za(a),a.flags|=128,null):(l&a.child.childLanes)!==0?rS(r,a,l):(za(a),r=na(r,a,l),r!==null?r.sibling:null);za(a);break;case 19:var v=(r.flags&128)!==0;if(d=(l&a.childLanes)!==0,d||(ci(r,a,l,!1),d=(l&a.childLanes)!==0),v){if(d)return aS(r,a,l);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Y(kn,kn.current),d)break;return null;case 22:return a.lanes=0,Q1(r,a,l,a.pendingProps);case 24:Ra(a,Gn,r.memoizedState.cache)}return na(r,a,l)}function sS(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)Kn=!0;else{if(!lh(r,l)&&(a.flags&128)===0)return Kn=!1,o3(r,a,l);Kn=(r.flags&131072)!==0}else Kn=!1,tn&&(a.flags&1048576)!==0&&Bx(a,El,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(r=ys(a.elementType),a.type=r,typeof r=="function")mp(r)?(d=$s(r,d),a.tag=1,a=tS(null,a,r,d,l)):(a.tag=0,a=th(null,a,r,d,l));else{if(r!=null){var v=r.$$typeof;if(v===N){a.tag=11,a=X1(null,a,r,d,l);break e}else if(v===O){a.tag=14,a=K1(null,a,r,d,l);break e}}throw a=Z(r)||r,Error(o(306,a,""))}}return a;case 0:return th(r,a,a.type,a.pendingProps,l);case 1:return d=a.type,v=$s(d,a.pendingProps),tS(r,a,d,v,l);case 3:e:{if(ae(a,a.stateNode.containerInfo),r===null)throw Error(o(387));d=a.pendingProps;var x=a.memoizedState;v=x.element,Rp(r,a),Al(a,d,null,l);var z=a.memoizedState;if(d=z.cache,Ra(a,Gn,d),d!==x.cache&&Cp(a,[Gn],l,!0),zl(),d=z.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:z.cache},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){a=nS(r,a,d,l);break e}else if(d!==v){v=io(Error(o(424)),a),Nl(v),a=nS(r,a,d,l);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,zn=mo(r.firstChild),cr=a,tn=!0,Na=null,uo=!0,l=Qx(a,null,d,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(hs(),d===v){a=na(r,a,l);break e}dr(r,a,d,l)}a=a.child}return a;case 26:return Hu(r,a),r===null?(l=bC(a.type,null,a.pendingProps,null))?a.memoizedState=l:tn||(l=a.type,r=a.pendingProps,d=rd(ee.current).createElement(l),d[gt]=a,d[zt]=r,fr(d,l,r),qt(d),a.stateNode=d):a.memoizedState=bC(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ie(a),r===null&&tn&&(d=a.stateNode=pC(a.type,a.pendingProps,ee.current),cr=a,uo=!0,v=zn,Fa(a.type)?(Fh=v,zn=mo(d.firstChild)):zn=v),dr(r,a,a.pendingProps.children,l),Hu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&tn&&((v=d=zn)&&(d=I3(d,a.type,a.pendingProps,uo),d!==null?(a.stateNode=d,cr=a,zn=mo(d.firstChild),uo=!1,v=!0):v=!1),v||ja(a)),ie(a),v=a.type,x=a.pendingProps,z=r!==null?r.memoizedProps:null,d=x.children,Lh(v,x)?d=null:z!==null&&Lh(v,z)&&(a.flags|=32),a.memoizedState!==null&&(v=Pp(r,a,K6,null,null,l),Jl._currentValue=v),Hu(r,a),dr(r,a,d,l),a.child;case 6:return r===null&&tn&&((r=l=zn)&&(l=P3(l,a.pendingProps,uo),l!==null?(a.stateNode=l,cr=a,zn=null,r=!0):r=!1),r||ja(a)),null;case 13:return rS(r,a,l);case 4:return ae(a,a.stateNode.containerInfo),d=a.pendingProps,r===null?a.child=Ss(a,null,d,l):dr(r,a,d,l),a.child;case 11:return X1(r,a,a.type,a.pendingProps,l);case 7:return dr(r,a,a.pendingProps,l),a.child;case 8:return dr(r,a,a.pendingProps.children,l),a.child;case 12:return dr(r,a,a.pendingProps.children,l),a.child;case 10:return d=a.pendingProps,Ra(a,a.type,d.value),dr(r,a,d.children,l),a.child;case 9:return v=a.type._context,d=a.pendingProps.children,bs(a),v=ur(v),d=d(v),a.flags|=1,dr(r,a,d,l),a.child;case 14:return K1(r,a,a.type,a.pendingProps,l);case 15:return Y1(r,a,a.type,a.pendingProps,l);case 19:return aS(r,a,l);case 31:return r3(r,a,l);case 22:return Q1(r,a,l,a.pendingProps);case 24:return bs(a),d=ur(Gn),r===null?(v=Ep(),v===null&&(v=jn,x=$p(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=l),v=x),a.memoizedState={parent:d,cache:v},jp(a),Ra(a,Gn,v)):((r.lanes&l)!==0&&(Rp(r,a),Al(a,null,null,l),zl()),v=r.memoizedState,x=a.memoizedState,v.parent!==d?(v={parent:d,cache:d},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),Ra(a,Gn,d)):(d=x.cache,Ra(a,Gn,d),d!==v.cache&&Cp(a,[Gn],l,!0))),dr(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function ra(r){r.flags|=4}function ch(r,a,l,d,v){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(v&335544128)===v)if(r.stateNode.complete)r.flags|=8192;else if(AS())r.flags|=8192;else throw xs=Eu,Np}else r.flags&=-16777217}function iS(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!CC(a))if(AS())r.flags|=8192;else throw xs=Eu,Np}function ku(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Ze():536870912,r.lanes|=a,Si|=a)}function Dl(r,a){if(!tn)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function An(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(a)for(var v=r.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=r,v=v.sibling;else for(v=r.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=r,v=v.sibling;return r.subtreeFlags|=d,r.childLanes=l,a}function a3(r,a,l){var d=a.pendingProps;switch(bp(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(a),null;case 1:return An(a),null;case 3:return l=a.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),Jo(Gn),se(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(li(a)?ra(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,yp())),An(a),null;case 26:var v=a.type,x=a.memoizedState;return r===null?(ra(a),x!==null?(An(a),iS(a,x)):(An(a),ch(a,v,null,d,l))):x?x!==r.memoizedState?(ra(a),An(a),iS(a,x)):(An(a),a.flags&=-16777217):(r=r.memoizedProps,r!==d&&ra(a),An(a),ch(a,v,r,d,l)),null;case 27:if(fe(a),l=ee.current,v=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&ra(a);else{if(!d){if(a.stateNode===null)throw Error(o(166));return An(a),null}r=G.current,li(a)?Hx(a):(r=pC(v,d,l),a.stateNode=r,ra(a))}return An(a),null;case 5:if(fe(a),v=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&ra(a);else{if(!d){if(a.stateNode===null)throw Error(o(166));return An(a),null}if(x=G.current,li(a))Hx(a);else{var z=rd(ee.current);switch(x){case 1:x=z.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=z.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=z.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof d.is=="string"?z.createElement("select",{is:d.is}):z.createElement("select"),d.multiple?x.multiple=!0:d.size&&(x.size=d.size);break;default:x=typeof d.is=="string"?z.createElement(v,{is:d.is}):z.createElement(v)}}x[gt]=a,x[zt]=d;e:for(z=a.child;z!==null;){if(z.tag===5||z.tag===6)x.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===a)break e;for(;z.sibling===null;){if(z.return===null||z.return===a)break e;z=z.return}z.sibling.return=z.return,z=z.sibling}a.stateNode=x;e:switch(fr(x,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&ra(a)}}return An(a),ch(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==d&&ra(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(o(166));if(r=ee.current,li(a)){if(r=a.stateNode,l=a.memoizedProps,d=null,v=cr,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}r[gt]=a,r=!!(r.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||rC(r.nodeValue,l)),r||ja(a,!0)}else r=rd(r).createTextNode(d),r[gt]=a,a.stateNode=r}return An(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(d=li(a),l!==null){if(r===null){if(!d)throw Error(o(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(557));r[gt]=a}else hs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;An(a),r=!1}else l=yp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(Xr(a),a):(Xr(a),null);if((a.flags&128)!==0)throw Error(o(558))}return An(a),null;case 13:if(d=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(v=li(a),d!==null&&d.dehydrated!==null){if(r===null){if(!v)throw Error(o(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(o(317));v[gt]=a}else hs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;An(a),v=!1}else v=yp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(Xr(a),a):(Xr(a),null)}return Xr(a),(a.flags&128)!==0?(a.lanes=l,a):(l=d!==null,r=r!==null&&r.memoizedState!==null,l&&(d=a.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),x=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),x!==v&&(d.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),ku(a,a.updateQueue),An(a),null);case 4:return se(),r===null&&Oh(a.stateNode.containerInfo),An(a),null;case 10:return Jo(a.type),An(a),null;case 19:if(D(kn),d=a.memoizedState,d===null)return An(a),null;if(v=(a.flags&128)!==0,x=d.rendering,x===null)if(v)Dl(d,!1);else{if(Dn!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(x=Mu(r),x!==null){for(a.flags|=128,Dl(d,!1),r=x.updateQueue,a.updateQueue=r,ku(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)Px(l,r),l=l.sibling;return Y(kn,kn.current&1|2),tn&&Qo(a,d.treeForkCount),a.child}r=r.sibling}d.tail!==null&&ye()>Gu&&(a.flags|=128,v=!0,Dl(d,!1),a.lanes=4194304)}else{if(!v)if(r=Mu(x),r!==null){if(a.flags|=128,v=!0,r=r.updateQueue,a.updateQueue=r,ku(a,r),Dl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!tn)return An(a),null}else 2*ye()-d.renderingStartTime>Gu&&l!==536870912&&(a.flags|=128,v=!0,Dl(d,!1),a.lanes=4194304);d.isBackwards?(x.sibling=a.child,a.child=x):(r=d.last,r!==null?r.sibling=x:a.child=x,d.last=x)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=ye(),r.sibling=null,l=kn.current,Y(kn,v?l&1|2:l&1),tn&&Qo(a,d.treeForkCount),r):(An(a),null);case 22:case 23:return Xr(a),zp(),d=a.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(l&536870912)!==0&&(a.flags&128)===0&&(An(a),a.subtreeFlags&6&&(a.flags|=8192)):An(a),l=a.updateQueue,l!==null&&ku(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==l&&(a.flags|=2048),r!==null&&D(vs),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Jo(Gn),An(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function s3(r,a){switch(bp(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Jo(Gn),se(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return fe(a),null;case 31:if(a.memoizedState!==null){if(Xr(a),a.alternate===null)throw Error(o(340));hs()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Xr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(o(340));hs()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return D(kn),null;case 4:return se(),null;case 10:return Jo(a.type),null;case 22:case 23:return Xr(a),zp(),r!==null&&D(vs),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Jo(Gn),null;case 25:return null;default:return null}}function lS(r,a){switch(bp(a),a.tag){case 3:Jo(Gn),se();break;case 26:case 27:case 5:fe(a);break;case 4:se();break;case 31:a.memoizedState!==null&&Xr(a);break;case 13:Xr(a);break;case 19:D(kn);break;case 10:Jo(a.type);break;case 22:case 23:Xr(a),zp(),r!==null&&D(vs);break;case 24:Jo(Gn)}}function Hl(r,a){try{var l=a.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var v=d.next;l=v;do{if((l.tag&r)===r){d=void 0;var x=l.create,z=l.inst;d=x(),z.destroy=d}l=l.next}while(l!==v)}}catch(F){yn(a,a.return,F)}}function Ia(r,a,l){try{var d=a.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var x=v.next;d=x;do{if((d.tag&r)===r){var z=d.inst,F=z.destroy;if(F!==void 0){z.destroy=void 0,v=a;var ne=l,be=F;try{be()}catch(Re){yn(v,ne,Re)}}}d=d.next}while(d!==x)}}catch(Re){yn(a,a.return,Re)}}function cS(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{Jx(a,l)}catch(d){yn(r,r.return,d)}}}function uS(r,a,l){l.props=$s(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(d){yn(r,a,d)}}function Fl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof l=="function"?r.refCleanup=l(d):l.current=d}}catch(v){yn(r,a,v)}}function Lo(r,a){var l=r.ref,d=r.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(v){yn(r,a,v)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(v){yn(r,a,v)}else l.current=null}function dS(r){var a=r.type,l=r.memoizedProps,d=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&d.focus();break e;case"img":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(v){yn(r,r.return,v)}}function uh(r,a,l){try{var d=r.stateNode;R3(d,r.type,l,a),d[zt]=a}catch(v){yn(r,r.return,v)}}function fS(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Fa(r.type)||r.tag===4}function dh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||fS(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Fa(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function fh(r,a,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Xo));else if(d!==4&&(d===27&&Fa(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(fh(r,a,l),r=r.sibling;r!==null;)fh(r,a,l),r=r.sibling}function Vu(r,a,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(d!==4&&(d===27&&Fa(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Vu(r,a,l),r=r.sibling;r!==null;)Vu(r,a,l),r=r.sibling}function mS(r){var a=r.stateNode,l=r.memoizedProps;try{for(var d=r.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);fr(a,d,l),a[gt]=r,a[zt]=l}catch(x){yn(r,r.return,x)}}var oa=!1,Yn=!1,mh=!1,pS=typeof WeakSet=="function"?WeakSet:Set,rr=null;function i3(r,a){if(r=r.containerInfo,Ih=ud,r=Nx(r),sp(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var v=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var z=0,F=-1,ne=-1,be=0,Re=0,Ae=r,xe=null;t:for(;;){for(var $e;Ae!==l||v!==0&&Ae.nodeType!==3||(F=z+v),Ae!==x||d!==0&&Ae.nodeType!==3||(ne=z+d),Ae.nodeType===3&&(z+=Ae.nodeValue.length),($e=Ae.firstChild)!==null;)xe=Ae,Ae=$e;for(;;){if(Ae===r)break t;if(xe===l&&++be===v&&(F=z),xe===x&&++Re===d&&(ne=z),($e=Ae.nextSibling)!==null)break;Ae=xe,xe=Ae.parentNode}Ae=$e}l=F===-1||ne===-1?null:{start:F,end:ne}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ph={focusedElem:r,selectionRange:l},ud=!1,rr=a;rr!==null;)if(a=rr,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,rr=r;else for(;rr!==null;){switch(a=rr,x=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)v=r[l],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&x!==null){r=void 0,l=a,v=x.memoizedProps,x=x.memoizedState,d=l.stateNode;try{var at=$s(l.type,v);r=d.getSnapshotBeforeUpdate(at,x),d.__reactInternalSnapshotBeforeUpdate=r}catch(bt){yn(l,l.return,bt)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)Bh(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Bh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(o(163))}if(r=a.sibling,r!==null){r.return=a.return,rr=r;break}rr=a.return}}function hS(r,a,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:sa(r,l),d&4&&Hl(5,l);break;case 1:if(sa(r,l),d&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(z){yn(l,l.return,z)}else{var v=$s(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(v,a,r.__reactInternalSnapshotBeforeUpdate)}catch(z){yn(l,l.return,z)}}d&64&&cS(l),d&512&&Fl(l,l.return);break;case 3:if(sa(r,l),d&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Jx(r,a)}catch(z){yn(l,l.return,z)}}break;case 27:a===null&&d&4&&mS(l);case 26:case 5:sa(r,l),a===null&&d&4&&dS(l),d&512&&Fl(l,l.return);break;case 12:sa(r,l);break;case 31:sa(r,l),d&4&&vS(r,l);break;case 13:sa(r,l),d&4&&yS(r,l),d&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=g3.bind(null,l),L3(r,l))));break;case 22:if(d=l.memoizedState!==null||oa,!d){a=a!==null&&a.memoizedState!==null||Yn,v=oa;var x=Yn;oa=d,(Yn=a)&&!x?ia(r,l,(l.subtreeFlags&8772)!==0):sa(r,l),oa=v,Yn=x}break;case 30:break;default:sa(r,l)}}function gS(r){var a=r.alternate;a!==null&&(r.alternate=null,gS(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Bt(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Pn=null,zr=!1;function aa(r,a,l){for(l=l.child;l!==null;)bS(r,a,l),l=l.sibling}function bS(r,a,l){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(Qe,l)}catch{}switch(l.tag){case 26:Yn||Lo(l,a),aa(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Yn||Lo(l,a);var d=Pn,v=zr;Fa(l.type)&&(Pn=l.stateNode,zr=!1),aa(r,a,l),Yl(l.stateNode),Pn=d,zr=v;break;case 5:Yn||Lo(l,a);case 6:if(d=Pn,v=zr,Pn=null,aa(r,a,l),Pn=d,zr=v,Pn!==null)if(zr)try{(Pn.nodeType===9?Pn.body:Pn.nodeName==="HTML"?Pn.ownerDocument.body:Pn).removeChild(l.stateNode)}catch(x){yn(l,a,x)}else try{Pn.removeChild(l.stateNode)}catch(x){yn(l,a,x)}break;case 18:Pn!==null&&(zr?(r=Pn,cC(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),Mi(r)):cC(Pn,l.stateNode));break;case 4:d=Pn,v=zr,Pn=l.stateNode.containerInfo,zr=!0,aa(r,a,l),Pn=d,zr=v;break;case 0:case 11:case 14:case 15:Ia(2,l,a),Yn||Ia(4,l,a),aa(r,a,l);break;case 1:Yn||(Lo(l,a),d=l.stateNode,typeof d.componentWillUnmount=="function"&&uS(l,a,d)),aa(r,a,l);break;case 21:aa(r,a,l);break;case 22:Yn=(d=Yn)||l.memoizedState!==null,aa(r,a,l),Yn=d;break;default:aa(r,a,l)}}function vS(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Mi(r)}catch(l){yn(a,a.return,l)}}}function yS(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Mi(r)}catch(l){yn(a,a.return,l)}}function l3(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new pS),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new pS),a;default:throw Error(o(435,r.tag))}}function qu(r,a){var l=l3(r);a.forEach(function(d){if(!l.has(d)){l.add(d);var v=b3.bind(null,r,d);d.then(v,v)}})}function Ar(r,a){var l=a.deletions;if(l!==null)for(var d=0;d<l.length;d++){var v=l[d],x=r,z=a,F=z;e:for(;F!==null;){switch(F.tag){case 27:if(Fa(F.type)){Pn=F.stateNode,zr=!1;break e}break;case 5:Pn=F.stateNode,zr=!1;break e;case 3:case 4:Pn=F.stateNode.containerInfo,zr=!0;break e}F=F.return}if(Pn===null)throw Error(o(160));bS(x,z,v),Pn=null,zr=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)xS(a,r),a=a.sibling}var $o=null;function xS(r,a){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Ar(a,r),Ir(r),d&4&&(Ia(3,r,r.return),Hl(3,r),Ia(5,r,r.return));break;case 1:Ar(a,r),Ir(r),d&512&&(Yn||l===null||Lo(l,l.return)),d&64&&oa&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var v=$o;if(Ar(a,r),Ir(r),d&512&&(Yn||l===null||Lo(l,l.return)),d&4){var x=l!==null?l.memoizedState:null;if(d=r.memoizedState,l===null)if(d===null)if(r.stateNode===null){e:{d=r.type,l=r.memoizedProps,v=v.ownerDocument||v;t:switch(d){case"title":x=v.getElementsByTagName("title")[0],(!x||x[it]||x[gt]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(d),v.head.insertBefore(x,v.querySelector("head > title"))),fr(x,d,l),x[gt]=r,qt(x),d=x;break e;case"link":var z=xC("link","href",v).get(d+(l.href||""));if(z){for(var F=0;F<z.length;F++)if(x=z[F],x.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&x.getAttribute("rel")===(l.rel==null?null:l.rel)&&x.getAttribute("title")===(l.title==null?null:l.title)&&x.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){z.splice(F,1);break t}}x=v.createElement(d),fr(x,d,l),v.head.appendChild(x);break;case"meta":if(z=xC("meta","content",v).get(d+(l.content||""))){for(F=0;F<z.length;F++)if(x=z[F],x.getAttribute("content")===(l.content==null?null:""+l.content)&&x.getAttribute("name")===(l.name==null?null:l.name)&&x.getAttribute("property")===(l.property==null?null:l.property)&&x.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&x.getAttribute("charset")===(l.charSet==null?null:l.charSet)){z.splice(F,1);break t}}x=v.createElement(d),fr(x,d,l),v.head.appendChild(x);break;default:throw Error(o(468,d))}x[gt]=r,qt(x),d=x}r.stateNode=d}else SC(v,r.type,r.stateNode);else r.stateNode=yC(v,d,r.memoizedProps);else x!==d?(x===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):x.count--,d===null?SC(v,r.type,r.stateNode):yC(v,d,r.memoizedProps)):d===null&&r.stateNode!==null&&uh(r,r.memoizedProps,l.memoizedProps)}break;case 27:Ar(a,r),Ir(r),d&512&&(Yn||l===null||Lo(l,l.return)),l!==null&&d&4&&uh(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Ar(a,r),Ir(r),d&512&&(Yn||l===null||Lo(l,l.return)),r.flags&32){v=r.stateNode;try{ao(v,"")}catch(at){yn(r,r.return,at)}}d&4&&r.stateNode!=null&&(v=r.memoizedProps,uh(r,v,l!==null?l.memoizedProps:v)),d&1024&&(mh=!0);break;case 6:if(Ar(a,r),Ir(r),d&4){if(r.stateNode===null)throw Error(o(162));d=r.memoizedProps,l=r.stateNode;try{l.nodeValue=d}catch(at){yn(r,r.return,at)}}break;case 3:if(sd=null,v=$o,$o=od(a.containerInfo),Ar(a,r),$o=v,Ir(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Mi(a.containerInfo)}catch(at){yn(r,r.return,at)}mh&&(mh=!1,SS(r));break;case 4:d=$o,$o=od(r.stateNode.containerInfo),Ar(a,r),Ir(r),$o=d;break;case 12:Ar(a,r),Ir(r);break;case 31:Ar(a,r),Ir(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,qu(r,d)));break;case 13:Ar(a,r),Ir(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Uu=ye()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,qu(r,d)));break;case 22:v=r.memoizedState!==null;var ne=l!==null&&l.memoizedState!==null,be=oa,Re=Yn;if(oa=be||v,Yn=Re||ne,Ar(a,r),Yn=Re,oa=be,Ir(r),d&8192)e:for(a=r.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(l===null||ne||oa||Yn||ws(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){ne=l=a;try{if(x=ne.stateNode,v)z=x.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{F=ne.stateNode;var Ae=ne.memoizedProps.style,xe=Ae!=null&&Ae.hasOwnProperty("display")?Ae.display:null;F.style.display=xe==null||typeof xe=="boolean"?"":(""+xe).trim()}}catch(at){yn(ne,ne.return,at)}}}else if(a.tag===6){if(l===null){ne=a;try{ne.stateNode.nodeValue=v?"":ne.memoizedProps}catch(at){yn(ne,ne.return,at)}}}else if(a.tag===18){if(l===null){ne=a;try{var $e=ne.stateNode;v?uC($e,!0):uC(ne.stateNode,!1)}catch(at){yn(ne,ne.return,at)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=r.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,qu(r,l))));break;case 19:Ar(a,r),Ir(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,qu(r,d)));break;case 30:break;case 21:break;default:Ar(a,r),Ir(r)}}function Ir(r){var a=r.flags;if(a&2){try{for(var l,d=r.return;d!==null;){if(fS(d)){l=d;break}d=d.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var v=l.stateNode,x=dh(r);Vu(r,x,v);break;case 5:var z=l.stateNode;l.flags&32&&(ao(z,""),l.flags&=-33);var F=dh(r);Vu(r,F,z);break;case 3:case 4:var ne=l.stateNode.containerInfo,be=dh(r);fh(r,be,ne);break;default:throw Error(o(161))}}catch(Re){yn(r,r.return,Re)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function SS(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;SS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function sa(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)hS(r,a.alternate,a),a=a.sibling}function ws(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Ia(4,a,a.return),ws(a);break;case 1:Lo(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&uS(a,a.return,l),ws(a);break;case 27:Yl(a.stateNode);case 26:case 5:Lo(a,a.return),ws(a);break;case 22:a.memoizedState===null&&ws(a);break;case 30:ws(a);break;default:ws(a)}r=r.sibling}}function ia(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,v=r,x=a,z=x.flags;switch(x.tag){case 0:case 11:case 15:ia(v,x,l),Hl(4,x);break;case 1:if(ia(v,x,l),d=x,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(be){yn(d,d.return,be)}if(d=x,v=d.updateQueue,v!==null){var F=d.stateNode;try{var ne=v.shared.hiddenCallbacks;if(ne!==null)for(v.shared.hiddenCallbacks=null,v=0;v<ne.length;v++)Zx(ne[v],F)}catch(be){yn(d,d.return,be)}}l&&z&64&&cS(x),Fl(x,x.return);break;case 27:mS(x);case 26:case 5:ia(v,x,l),l&&d===null&&z&4&&dS(x),Fl(x,x.return);break;case 12:ia(v,x,l);break;case 31:ia(v,x,l),l&&z&4&&vS(v,x);break;case 13:ia(v,x,l),l&&z&4&&yS(v,x);break;case 22:x.memoizedState===null&&ia(v,x,l),Fl(x,x.return);break;case 30:break;default:ia(v,x,l)}a=a.sibling}}function ph(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&jl(l))}function hh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&jl(r))}function wo(r,a,l,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)CS(r,a,l,d),a=a.sibling}function CS(r,a,l,d){var v=a.flags;switch(a.tag){case 0:case 11:case 15:wo(r,a,l,d),v&2048&&Hl(9,a);break;case 1:wo(r,a,l,d);break;case 3:wo(r,a,l,d),v&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&jl(r)));break;case 12:if(v&2048){wo(r,a,l,d),r=a.stateNode;try{var x=a.memoizedProps,z=x.id,F=x.onPostCommit;typeof F=="function"&&F(z,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(ne){yn(a,a.return,ne)}}else wo(r,a,l,d);break;case 31:wo(r,a,l,d);break;case 13:wo(r,a,l,d);break;case 23:break;case 22:x=a.stateNode,z=a.alternate,a.memoizedState!==null?x._visibility&2?wo(r,a,l,d):kl(r,a):x._visibility&2?wo(r,a,l,d):(x._visibility|=2,vi(r,a,l,d,(a.subtreeFlags&10256)!==0||!1)),v&2048&&ph(z,a);break;case 24:wo(r,a,l,d),v&2048&&hh(a.alternate,a);break;default:wo(r,a,l,d)}}function vi(r,a,l,d,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var x=r,z=a,F=l,ne=d,be=z.flags;switch(z.tag){case 0:case 11:case 15:vi(x,z,F,ne,v),Hl(8,z);break;case 23:break;case 22:var Re=z.stateNode;z.memoizedState!==null?Re._visibility&2?vi(x,z,F,ne,v):kl(x,z):(Re._visibility|=2,vi(x,z,F,ne,v)),v&&be&2048&&ph(z.alternate,z);break;case 24:vi(x,z,F,ne,v),v&&be&2048&&hh(z.alternate,z);break;default:vi(x,z,F,ne,v)}a=a.sibling}}function kl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,d=a,v=d.flags;switch(d.tag){case 22:kl(l,d),v&2048&&ph(d.alternate,d);break;case 24:kl(l,d),v&2048&&hh(d.alternate,d);break;default:kl(l,d)}a=a.sibling}}var Vl=8192;function yi(r,a,l){if(r.subtreeFlags&Vl)for(r=r.child;r!==null;)$S(r,a,l),r=r.sibling}function $S(r,a,l){switch(r.tag){case 26:yi(r,a,l),r.flags&Vl&&r.memoizedState!==null&&X3(l,$o,r.memoizedState,r.memoizedProps);break;case 5:yi(r,a,l);break;case 3:case 4:var d=$o;$o=od(r.stateNode.containerInfo),yi(r,a,l),$o=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=Vl,Vl=16777216,yi(r,a,l),Vl=d):yi(r,a,l));break;default:yi(r,a,l)}}function wS(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function ql(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var d=a[l];rr=d,NS(d,r)}wS(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ES(r),r=r.sibling}function ES(r){switch(r.tag){case 0:case 11:case 15:ql(r),r.flags&2048&&Ia(9,r,r.return);break;case 3:ql(r);break;case 12:ql(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Wu(r)):ql(r);break;default:ql(r)}}function Wu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var d=a[l];rr=d,NS(d,r)}wS(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Ia(8,a,a.return),Wu(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Wu(a));break;default:Wu(a)}r=r.sibling}}function NS(r,a){for(;rr!==null;){var l=rr;switch(l.tag){case 0:case 11:case 15:Ia(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:jl(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,rr=d;else e:for(l=r;rr!==null;){d=rr;var v=d.sibling,x=d.return;if(gS(d),d===l){rr=null;break e}if(v!==null){v.return=x,rr=v;break e}rr=x}}}var c3={getCacheForType:function(r){var a=ur(Gn),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return ur(Gn).controller.signal}},u3=typeof WeakMap=="function"?WeakMap:Map,pn=0,jn=null,Gt=null,Qt=0,vn=0,Kr=null,Pa=!1,xi=!1,gh=!1,la=0,Dn=0,La=0,Es=0,bh=0,Yr=0,Si=0,Wl=null,Pr=null,vh=!1,Uu=0,jS=0,Gu=1/0,Xu=null,_a=null,Jn=0,Ba=null,Ci=null,ca=0,yh=0,xh=null,RS=null,Ul=0,Sh=null;function Qr(){return(pn&2)!==0&&Qt!==0?Qt&-Qt:H.T!==null?jh():dt()}function MS(){if(Yr===0)if((Qt&536870912)===0||tn){var r=Ut;Ut<<=1,(Ut&3932160)===0&&(Ut=262144),Yr=r}else Yr=536870912;return r=Gr.current,r!==null&&(r.flags|=32),Yr}function Lr(r,a,l){(r===jn&&(vn===2||vn===9)||r.cancelPendingCommit!==null)&&($i(r,0),Da(r,Qt,Yr,!1)),We(r,l),((pn&2)===0||r!==jn)&&(r===jn&&((pn&2)===0&&(Es|=l),Dn===4&&Da(r,Qt,Yr,!1)),_o(r))}function TS(r,a,l){if((pn&6)!==0)throw Error(o(327));var d=!l&&(a&127)===0&&(a&r.expiredLanes)===0||Pt(r,a),v=d?m3(r,a):$h(r,a,!0),x=d;do{if(v===0){xi&&!d&&Da(r,a,0,!1);break}else{if(l=r.current.alternate,x&&!d3(l)){v=$h(r,a,!1),x=!1;continue}if(v===2){if(x=a,r.errorRecoveryDisabledLanes&x)var z=0;else z=r.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){a=z;e:{var F=r;v=Wl;var ne=F.current.memoizedState.isDehydrated;if(ne&&($i(F,z).flags|=256),z=$h(F,z,!1),z!==2){if(gh&&!ne){F.errorRecoveryDisabledLanes|=x,Es|=x,v=4;break e}x=Pr,Pr=v,x!==null&&(Pr===null?Pr=x:Pr.push.apply(Pr,x))}v=z}if(x=!1,v!==2)continue}}if(v===1){$i(r,0),Da(r,a,0,!0);break}e:{switch(d=r,x=v,x){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Da(d,a,Yr,!Pa);break e;case 2:Pr=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(v=Uu+300-ye(),10<v)){if(Da(d,a,Yr,!Pa),kt(d,0,!0)!==0)break e;ca=a,d.timeoutHandle=iC(OS.bind(null,d,l,Pr,Xu,vh,a,Yr,Es,Si,Pa,x,"Throttled",-0,0),v);break e}OS(d,l,Pr,Xu,vh,a,Yr,Es,Si,Pa,x,null,-0,0)}}break}while(!0);_o(r)}function OS(r,a,l,d,v,x,z,F,ne,be,Re,Ae,xe,$e){if(r.timeoutHandle=-1,Ae=a.subtreeFlags,Ae&8192||(Ae&16785408)===16785408){Ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xo},$S(a,x,Ae);var at=(x&62914560)===x?Uu-ye():(x&4194048)===x?jS-ye():0;if(at=K3(Ae,at),at!==null){ca=x,r.cancelPendingCommit=at(DS.bind(null,r,a,x,l,d,v,z,F,ne,Re,Ae,null,xe,$e)),Da(r,x,z,!be);return}}DS(r,a,x,l,d,v,z,F,ne)}function d3(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var v=l[d],x=v.getSnapshot;v=v.value;try{if(!Wr(x(),v))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Da(r,a,l,d){a&=~bh,a&=~Es,r.suspendedLanes|=a,r.pingedLanes&=~a,d&&(r.warmLanes|=a),d=r.expirationTimes;for(var v=a;0<v;){var x=31-Je(v),z=1<<x;d[x]=-1,v&=~z}l!==0&&Be(r,l,a)}function Ku(){return(pn&6)===0?(Gl(0),!1):!0}function Ch(){if(Gt!==null){if(vn===0)var r=Gt.return;else r=Gt,Zo=gs=null,Bp(r),mi=null,Ml=0,r=Gt;for(;r!==null;)lS(r.alternate,r),r=r.return;Gt=null}}function $i(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,O3(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),ca=0,Ch(),jn=r,Gt=l=Yo(r.current,null),Qt=a,vn=0,Kr=null,Pa=!1,xi=Pt(r,a),gh=!1,Si=Yr=bh=Es=La=Dn=0,Pr=Wl=null,vh=!1,(a&8)!==0&&(a|=a&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=a;0<d;){var v=31-Je(d),x=1<<v;a|=r[v],d&=~x}return la=a,gu(),l}function zS(r,a){Tt=null,H.H=_l,a===fi||a===wu?(a=Xx(),vn=3):a===Np?(a=Xx(),vn=4):vn=a===eh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Kr=a,Gt===null&&(Dn=1,Bu(r,io(a,r.current)))}function AS(){var r=Gr.current;return r===null?!0:(Qt&4194048)===Qt?fo===null:(Qt&62914560)===Qt||(Qt&536870912)!==0?r===fo:!1}function IS(){var r=H.H;return H.H=_l,r===null?_l:r}function PS(){var r=H.A;return H.A=c3,r}function Yu(){Dn=4,Pa||(Qt&4194048)!==Qt&&Gr.current!==null||(xi=!0),(La&134217727)===0&&(Es&134217727)===0||jn===null||Da(jn,Qt,Yr,!1)}function $h(r,a,l){var d=pn;pn|=2;var v=IS(),x=PS();(jn!==r||Qt!==a)&&(Xu=null,$i(r,a)),a=!1;var z=Dn;e:do try{if(vn!==0&&Gt!==null){var F=Gt,ne=Kr;switch(vn){case 8:Ch(),z=6;break e;case 3:case 2:case 9:case 6:Gr.current===null&&(a=!0);var be=vn;if(vn=0,Kr=null,wi(r,F,ne,be),l&&xi){z=0;break e}break;default:be=vn,vn=0,Kr=null,wi(r,F,ne,be)}}f3(),z=Dn;break}catch(Re){zS(r,Re)}while(!0);return a&&r.shellSuspendCounter++,Zo=gs=null,pn=d,H.H=v,H.A=x,Gt===null&&(jn=null,Qt=0,gu()),z}function f3(){for(;Gt!==null;)LS(Gt)}function m3(r,a){var l=pn;pn|=2;var d=IS(),v=PS();jn!==r||Qt!==a?(Xu=null,Gu=ye()+500,$i(r,a)):xi=Pt(r,a);e:do try{if(vn!==0&&Gt!==null){a=Gt;var x=Kr;t:switch(vn){case 1:vn=0,Kr=null,wi(r,a,x,1);break;case 2:case 9:if(Ux(x)){vn=0,Kr=null,_S(a);break}a=function(){vn!==2&&vn!==9||jn!==r||(vn=7),_o(r)},x.then(a,a);break e;case 3:vn=7;break e;case 4:vn=5;break e;case 7:Ux(x)?(vn=0,Kr=null,_S(a)):(vn=0,Kr=null,wi(r,a,x,7));break;case 5:var z=null;switch(Gt.tag){case 26:z=Gt.memoizedState;case 5:case 27:var F=Gt;if(z?CC(z):F.stateNode.complete){vn=0,Kr=null;var ne=F.sibling;if(ne!==null)Gt=ne;else{var be=F.return;be!==null?(Gt=be,Qu(be)):Gt=null}break t}}vn=0,Kr=null,wi(r,a,x,5);break;case 6:vn=0,Kr=null,wi(r,a,x,6);break;case 8:Ch(),Dn=6;break e;default:throw Error(o(462))}}p3();break}catch(Re){zS(r,Re)}while(!0);return Zo=gs=null,H.H=d,H.A=v,pn=l,Gt!==null?0:(jn=null,Qt=0,gu(),Dn)}function p3(){for(;Gt!==null&&!Le();)LS(Gt)}function LS(r){var a=sS(r.alternate,r,la);r.memoizedProps=r.pendingProps,a===null?Qu(r):Gt=a}function _S(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=eS(l,a,a.pendingProps,a.type,void 0,Qt);break;case 11:a=eS(l,a,a.pendingProps,a.type.render,a.ref,Qt);break;case 5:Bp(a);default:lS(l,a),a=Gt=Px(a,la),a=sS(l,a,la)}r.memoizedProps=r.pendingProps,a===null?Qu(r):Gt=a}function wi(r,a,l,d){Zo=gs=null,Bp(a),mi=null,Ml=0;var v=a.return;try{if(n3(r,v,a,l,Qt)){Dn=1,Bu(r,io(l,r.current)),Gt=null;return}}catch(x){if(v!==null)throw Gt=v,x;Dn=1,Bu(r,io(l,r.current)),Gt=null;return}a.flags&32768?(tn||d===1?r=!0:xi||(Qt&536870912)!==0?r=!1:(Pa=r=!0,(d===2||d===9||d===3||d===6)&&(d=Gr.current,d!==null&&d.tag===13&&(d.flags|=16384))),BS(a,r)):Qu(a)}function Qu(r){var a=r;do{if((a.flags&32768)!==0){BS(a,Pa);return}r=a.return;var l=a3(a.alternate,a,la);if(l!==null){Gt=l;return}if(a=a.sibling,a!==null){Gt=a;return}Gt=a=r}while(a!==null);Dn===0&&(Dn=5)}function BS(r,a){do{var l=s3(r.alternate,r);if(l!==null){l.flags&=32767,Gt=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){Gt=r;return}Gt=r=l}while(r!==null);Dn=6,Gt=null}function DS(r,a,l,d,v,x,z,F,ne){r.cancelPendingCommit=null;do Zu();while(Jn!==0);if((pn&6)!==0)throw Error(o(327));if(a!==null){if(a===r.current)throw Error(o(177));if(x=a.lanes|a.childLanes,x|=dp,je(r,l,x,z,F,ne),r===jn&&(Gt=jn=null,Qt=0),Ci=a,Ba=r,ca=l,yh=x,xh=v,RS=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,v3(qe,function(){return qS(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=H.T,H.T=null,v=q.p,q.p=2,z=pn,pn|=4;try{i3(r,a,l)}finally{pn=z,q.p=v,H.T=d}}Jn=1,HS(),FS(),kS()}}function HS(){if(Jn===1){Jn=0;var r=Ba,a=Ci,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var d=q.p;q.p=2;var v=pn;pn|=4;try{xS(a,r);var x=Ph,z=Nx(r.containerInfo),F=x.focusedElem,ne=x.selectionRange;if(z!==F&&F&&F.ownerDocument&&Ex(F.ownerDocument.documentElement,F)){if(ne!==null&&sp(F)){var be=ne.start,Re=ne.end;if(Re===void 0&&(Re=be),"selectionStart"in F)F.selectionStart=be,F.selectionEnd=Math.min(Re,F.value.length);else{var Ae=F.ownerDocument||document,xe=Ae&&Ae.defaultView||window;if(xe.getSelection){var $e=xe.getSelection(),at=F.textContent.length,bt=Math.min(ne.start,at),$n=ne.end===void 0?bt:Math.min(ne.end,at);!$e.extend&&bt>$n&&(z=$n,$n=bt,bt=z);var de=wx(F,bt),ce=wx(F,$n);if(de&&ce&&($e.rangeCount!==1||$e.anchorNode!==de.node||$e.anchorOffset!==de.offset||$e.focusNode!==ce.node||$e.focusOffset!==ce.offset)){var ge=Ae.createRange();ge.setStart(de.node,de.offset),$e.removeAllRanges(),bt>$n?($e.addRange(ge),$e.extend(ce.node,ce.offset)):(ge.setEnd(ce.node,ce.offset),$e.addRange(ge))}}}}for(Ae=[],$e=F;$e=$e.parentNode;)$e.nodeType===1&&Ae.push({element:$e,left:$e.scrollLeft,top:$e.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<Ae.length;F++){var ze=Ae[F];ze.element.scrollLeft=ze.left,ze.element.scrollTop=ze.top}}ud=!!Ih,Ph=Ih=null}finally{pn=v,q.p=d,H.T=l}}r.current=a,Jn=2}}function FS(){if(Jn===2){Jn=0;var r=Ba,a=Ci,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var d=q.p;q.p=2;var v=pn;pn|=4;try{hS(r,a.alternate,a)}finally{pn=v,q.p=d,H.T=l}}Jn=3}}function kS(){if(Jn===4||Jn===3){Jn=0,Pe();var r=Ba,a=Ci,l=ca,d=RS;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Jn=5:(Jn=0,Ci=Ba=null,VS(r,r.pendingLanes));var v=r.pendingLanes;if(v===0&&(_a=null),Ye(l),a=a.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(Qe,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=H.T,v=q.p,q.p=2,H.T=null;try{for(var x=r.onRecoverableError,z=0;z<d.length;z++){var F=d[z];x(F.value,{componentStack:F.stack})}}finally{H.T=a,q.p=v}}(ca&3)!==0&&Zu(),_o(r),v=r.pendingLanes,(l&261930)!==0&&(v&42)!==0?r===Sh?Ul++:(Ul=0,Sh=r):Ul=0,Gl(0)}}function VS(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,jl(a)))}function Zu(){return HS(),FS(),kS(),qS()}function qS(){if(Jn!==5)return!1;var r=Ba,a=yh;yh=0;var l=Ye(ca),d=H.T,v=q.p;try{q.p=32>l?32:l,H.T=null,l=xh,xh=null;var x=Ba,z=ca;if(Jn=0,Ci=Ba=null,ca=0,(pn&6)!==0)throw Error(o(331));var F=pn;if(pn|=4,ES(x.current),CS(x,x.current,z,l),pn=F,Gl(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(Qe,x)}catch{}return!0}finally{q.p=v,H.T=d,VS(r,a)}}function WS(r,a,l){a=io(l,a),a=Jp(r.stateNode,a,2),r=Oa(r,a,2),r!==null&&(We(r,2),_o(r))}function yn(r,a,l){if(r.tag===3)WS(r,r,l);else for(;a!==null;){if(a.tag===3){WS(a,r,l);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(_a===null||!_a.has(d))){r=io(l,r),l=U1(2),d=Oa(a,l,2),d!==null&&(G1(l,d,a,r),We(d,2),_o(d));break}}a=a.return}}function wh(r,a,l){var d=r.pingCache;if(d===null){d=r.pingCache=new u3;var v=new Set;d.set(a,v)}else v=d.get(a),v===void 0&&(v=new Set,d.set(a,v));v.has(l)||(gh=!0,v.add(l),r=h3.bind(null,r,a,l),a.then(r,r))}function h3(r,a,l){var d=r.pingCache;d!==null&&d.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,jn===r&&(Qt&l)===l&&(Dn===4||Dn===3&&(Qt&62914560)===Qt&&300>ye()-Uu?(pn&2)===0&&$i(r,0):bh|=l,Si===Qt&&(Si=0)),_o(r)}function US(r,a){a===0&&(a=Ze()),r=ms(r,a),r!==null&&(We(r,a),_o(r))}function g3(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),US(r,l)}function b3(r,a){var l=0;switch(r.tag){case 31:case 13:var d=r.stateNode,v=r.memoizedState;v!==null&&(l=v.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(o(314))}d!==null&&d.delete(a),US(r,l)}function v3(r,a){return Te(r,a)}var Ju=null,Ei=null,Eh=!1,ed=!1,Nh=!1,Ha=0;function _o(r){r!==Ei&&r.next===null&&(Ei===null?Ju=Ei=r:Ei=Ei.next=r),ed=!0,Eh||(Eh=!0,x3())}function Gl(r,a){if(!Nh&&ed){Nh=!0;do for(var l=!1,d=Ju;d!==null;){if(r!==0){var v=d.pendingLanes;if(v===0)var x=0;else{var z=d.suspendedLanes,F=d.pingedLanes;x=(1<<31-Je(42|r)+1)-1,x&=v&~(z&~F),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(l=!0,YS(d,x))}else x=Qt,x=kt(d,d===jn?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(x&3)===0||Pt(d,x)||(l=!0,YS(d,x));d=d.next}while(l);Nh=!1}}function y3(){GS()}function GS(){ed=Eh=!1;var r=0;Ha!==0&&T3()&&(r=Ha);for(var a=ye(),l=null,d=Ju;d!==null;){var v=d.next,x=XS(d,a);x===0?(d.next=null,l===null?Ju=v:l.next=v,v===null&&(Ei=l)):(l=d,(r!==0||(x&3)!==0)&&(ed=!0)),d=v}Jn!==0&&Jn!==5||Gl(r),Ha!==0&&(Ha=0)}function XS(r,a){for(var l=r.suspendedLanes,d=r.pingedLanes,v=r.expirationTimes,x=r.pendingLanes&-62914561;0<x;){var z=31-Je(x),F=1<<z,ne=v[z];ne===-1?((F&l)===0||(F&d)!==0)&&(v[z]=Vt(F,a)):ne<=a&&(r.expiredLanes|=F),x&=~F}if(a=jn,l=Qt,l=kt(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,l===0||r===a&&(vn===2||vn===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&Ee(d),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Pt(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(d!==null&&Ee(d),Ye(l)){case 2:case 8:l=Me;break;case 32:l=qe;break;case 268435456:l=Xe;break;default:l=qe}return d=KS.bind(null,r),l=Te(l,d),r.callbackPriority=a,r.callbackNode=l,a}return d!==null&&d!==null&&Ee(d),r.callbackPriority=2,r.callbackNode=null,2}function KS(r,a){if(Jn!==0&&Jn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(Zu()&&r.callbackNode!==l)return null;var d=Qt;return d=kt(r,r===jn?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(TS(r,d,a),XS(r,ye()),r.callbackNode!=null&&r.callbackNode===l?KS.bind(null,r):null)}function YS(r,a){if(Zu())return null;TS(r,a,!0)}function x3(){z3(function(){(pn&6)!==0?Te(De,y3):GS()})}function jh(){if(Ha===0){var r=ui;r===0&&(r=ht,ht<<=1,(ht&261888)===0&&(ht=256)),Ha=r}return Ha}function QS(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:lu(""+r)}function ZS(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function S3(r,a,l,d,v){if(a==="submit"&&l&&l.stateNode===v){var x=QS((v[zt]||null).action),z=d.submitter;z&&(a=(a=z[zt]||null)?QS(a.formAction):z.getAttribute("formAction"),a!==null&&(x=a,z=null));var F=new fu("action","action",null,d,v);r.push({event:F,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ha!==0){var ne=z?ZS(v,z):new FormData(v);Gp(l,{pending:!0,data:ne,method:v.method,action:x},null,ne)}}else typeof x=="function"&&(F.preventDefault(),ne=z?ZS(v,z):new FormData(v),Gp(l,{pending:!0,data:ne,method:v.method,action:x},x,ne))},currentTarget:v}]})}}for(var Rh=0;Rh<up.length;Rh++){var Mh=up[Rh],C3=Mh.toLowerCase(),$3=Mh[0].toUpperCase()+Mh.slice(1);Co(C3,"on"+$3)}Co(Mx,"onAnimationEnd"),Co(Tx,"onAnimationIteration"),Co(Ox,"onAnimationStart"),Co("dblclick","onDoubleClick"),Co("focusin","onFocus"),Co("focusout","onBlur"),Co(D6,"onTransitionRun"),Co(H6,"onTransitionStart"),Co(F6,"onTransitionCancel"),Co(zx,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),Nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nn("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(" "),w3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function JS(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],v=d.event;d=d.listeners;e:{var x=void 0;if(a)for(var z=d.length-1;0<=z;z--){var F=d[z],ne=F.instance,be=F.currentTarget;if(F=F.listener,ne!==x&&v.isPropagationStopped())break e;x=F,v.currentTarget=be;try{x(v)}catch(Re){hu(Re)}v.currentTarget=null,x=ne}else for(z=0;z<d.length;z++){if(F=d[z],ne=F.instance,be=F.currentTarget,F=F.listener,ne!==x&&v.isPropagationStopped())break e;x=F,v.currentTarget=be;try{x(v)}catch(Re){hu(Re)}v.currentTarget=null,x=ne}}}}function Xt(r,a){var l=a[mt];l===void 0&&(l=a[mt]=new Set);var d=r+"__bubble";l.has(d)||(eC(a,r,2,!1),l.add(d))}function Th(r,a,l){var d=0;a&&(d|=4),eC(l,r,d,a)}var td="_reactListening"+Math.random().toString(36).slice(2);function Oh(r){if(!r[td]){r[td]=!0,sr.forEach(function(l){l!=="selectionchange"&&(w3.has(l)||Th(l,!1,r),Th(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[td]||(a[td]=!0,Th("selectionchange",!1,a))}}function eC(r,a,l,d){switch(MC(a)){case 2:var v=Z3;break;case 8:v=J3;break;default:v=Uh}l=v.bind(null,a,l,r),v=void 0,!Qm||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),d?v!==void 0?r.addEventListener(a,l,{capture:!0,passive:v}):r.addEventListener(a,l,!0):v!==void 0?r.addEventListener(a,l,{passive:v}):r.addEventListener(a,l,!1)}function zh(r,a,l,d,v){var x=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var z=d.tag;if(z===3||z===4){var F=d.stateNode.containerInfo;if(F===v)break;if(z===4)for(z=d.return;z!==null;){var ne=z.tag;if((ne===3||ne===4)&&z.stateNode.containerInfo===v)return;z=z.return}for(;F!==null;){if(z=Kt(F),z===null)return;if(ne=z.tag,ne===5||ne===6||ne===26||ne===27){d=x=z;continue e}F=F.parentNode}}d=d.return}ax(function(){var be=x,Re=Km(l),Ae=[];e:{var xe=Ax.get(r);if(xe!==void 0){var $e=fu,at=r;switch(r){case"keypress":if(uu(l)===0)break e;case"keydown":case"keyup":$e=b6;break;case"focusin":at="focus",$e=tp;break;case"focusout":at="blur",$e=tp;break;case"beforeblur":case"afterblur":$e=tp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$e=lx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$e=a6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$e=x6;break;case Mx:case Tx:case Ox:$e=l6;break;case zx:$e=C6;break;case"scroll":case"scrollend":$e=r6;break;case"wheel":$e=w6;break;case"copy":case"cut":case"paste":$e=u6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$e=ux;break;case"toggle":case"beforetoggle":$e=N6}var bt=(a&4)!==0,$n=!bt&&(r==="scroll"||r==="scrollend"),de=bt?xe!==null?xe+"Capture":null:xe;bt=[];for(var ce=be,ge;ce!==null;){var ze=ce;if(ge=ze.stateNode,ze=ze.tag,ze!==5&&ze!==26&&ze!==27||ge===null||de===null||(ze=gl(ce,de),ze!=null&&bt.push(Kl(ce,ze,ge))),$n)break;ce=ce.return}0<bt.length&&(xe=new $e(xe,at,null,l,Re),Ae.push({event:xe,listeners:bt}))}}if((a&7)===0){e:{if(xe=r==="mouseover"||r==="pointerover",$e=r==="mouseout"||r==="pointerout",xe&&l!==Xm&&(at=l.relatedTarget||l.fromElement)&&(Kt(at)||at[fn]))break e;if(($e||xe)&&(xe=Re.window===Re?Re:(xe=Re.ownerDocument)?xe.defaultView||xe.parentWindow:window,$e?(at=l.relatedTarget||l.toElement,$e=be,at=at?Kt(at):null,at!==null&&($n=i(at),bt=at.tag,at!==$n||bt!==5&&bt!==27&&bt!==6)&&(at=null)):($e=null,at=be),$e!==at)){if(bt=lx,ze="onMouseLeave",de="onMouseEnter",ce="mouse",(r==="pointerout"||r==="pointerover")&&(bt=ux,ze="onPointerLeave",de="onPointerEnter",ce="pointer"),$n=$e==null?xe:Yt($e),ge=at==null?xe:Yt(at),xe=new bt(ze,ce+"leave",$e,l,Re),xe.target=$n,xe.relatedTarget=ge,ze=null,Kt(Re)===be&&(bt=new bt(de,ce+"enter",at,l,Re),bt.target=ge,bt.relatedTarget=$n,ze=bt),$n=ze,$e&&at)t:{for(bt=E3,de=$e,ce=at,ge=0,ze=de;ze;ze=bt(ze))ge++;ze=0;for(var ft=ce;ft;ft=bt(ft))ze++;for(;0<ge-ze;)de=bt(de),ge--;for(;0<ze-ge;)ce=bt(ce),ze--;for(;ge--;){if(de===ce||ce!==null&&de===ce.alternate){bt=de;break t}de=bt(de),ce=bt(ce)}bt=null}else bt=null;$e!==null&&tC(Ae,xe,$e,bt,!1),at!==null&&$n!==null&&tC(Ae,$n,at,bt,!0)}}e:{if(xe=be?Yt(be):window,$e=xe.nodeName&&xe.nodeName.toLowerCase(),$e==="select"||$e==="input"&&xe.type==="file")var cn=vx;else if(gx(xe))if(yx)cn=L6;else{cn=I6;var st=A6}else $e=xe.nodeName,!$e||$e.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?be&&Zs(be.elementType)&&(cn=vx):cn=P6;if(cn&&(cn=cn(r,be))){bx(Ae,cn,l,Re);break e}st&&st(r,xe,be),r==="focusout"&&be&&xe.type==="number"&&be.memoizedProps.value!=null&&vr(xe,"number",xe.value)}switch(st=be?Yt(be):window,r){case"focusin":(gx(st)||st.contentEditable==="true")&&(ni=st,ip=be,wl=null);break;case"focusout":wl=ip=ni=null;break;case"mousedown":lp=!0;break;case"contextmenu":case"mouseup":case"dragend":lp=!1,jx(Ae,l,Re);break;case"selectionchange":if(B6)break;case"keydown":case"keyup":jx(Ae,l,Re)}var At;if(rp)e:{switch(r){case"compositionstart":var Zt="onCompositionStart";break e;case"compositionend":Zt="onCompositionEnd";break e;case"compositionupdate":Zt="onCompositionUpdate";break e}Zt=void 0}else ti?px(r,l)&&(Zt="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Zt="onCompositionStart");Zt&&(dx&&l.locale!=="ko"&&(ti||Zt!=="onCompositionStart"?Zt==="onCompositionEnd"&&ti&&(At=sx()):(wa=Re,Zm="value"in wa?wa.value:wa.textContent,ti=!0)),st=nd(be,Zt),0<st.length&&(Zt=new cx(Zt,r,null,l,Re),Ae.push({event:Zt,listeners:st}),At?Zt.data=At:(At=hx(l),At!==null&&(Zt.data=At)))),(At=R6?M6(r,l):T6(r,l))&&(Zt=nd(be,"onBeforeInput"),0<Zt.length&&(st=new cx("onBeforeInput","beforeinput",null,l,Re),Ae.push({event:st,listeners:Zt}),st.data=At)),S3(Ae,r,be,l,Re)}JS(Ae,a)})}function Kl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function nd(r,a){for(var l=a+"Capture",d=[];r!==null;){var v=r,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=gl(r,l),v!=null&&d.unshift(Kl(r,v,x)),v=gl(r,a),v!=null&&d.push(Kl(r,v,x))),r.tag===3)return d;r=r.return}return[]}function E3(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function tC(r,a,l,d,v){for(var x=a._reactName,z=[];l!==null&&l!==d;){var F=l,ne=F.alternate,be=F.stateNode;if(F=F.tag,ne!==null&&ne===d)break;F!==5&&F!==26&&F!==27||be===null||(ne=be,v?(be=gl(l,x),be!=null&&z.unshift(Kl(l,be,ne))):v||(be=gl(l,x),be!=null&&z.push(Kl(l,be,ne)))),l=l.return}z.length!==0&&r.push({event:a,listeners:z})}var N3=/\r\n?/g,j3=/\u0000|\uFFFD/g;function nC(r){return(typeof r=="string"?r:""+r).replace(N3,`
|
|
36
|
-
`).replace(j3,"")}function rC(r,a){return a=nC(a),nC(r)===a}function Cn(r,a,l,d,v,x){switch(l){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||ao(r,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&ao(r,""+d);break;case"className":Tn(r,"class",d);break;case"tabIndex":Tn(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Tn(r,l,d);break;case"style":iu(r,d,x);break;case"data":if(a!=="object"){Tn(r,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=lu(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"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 x=="function"&&(l==="formAction"?(a!=="input"&&Cn(r,a,"name",v.name,v,null),Cn(r,a,"formEncType",v.formEncType,v,null),Cn(r,a,"formMethod",v.formMethod,v,null),Cn(r,a,"formTarget",v.formTarget,v,null)):(Cn(r,a,"encType",v.encType,v,null),Cn(r,a,"method",v.method,v,null),Cn(r,a,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=lu(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=Xo);break;case"onScroll":d!=null&&Xt("scroll",r);break;case"onScrollEnd":d!=null&&Xt("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(o(61));if(l=d.__html,l!=null){if(v.children!=null)throw Error(o(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.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"){r.removeAttribute("xlink:href");break}l=lu(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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"?r.setAttribute(l,""+d):r.removeAttribute(l);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"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":Xt("beforetoggle",r),Xt("toggle",r),_n(r,"popover",d);break;case"xlinkActuate":nr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":nr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":nr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":nr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":nr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":nr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":nr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":nr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":nr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":_n(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=t6.get(l)||l,_n(r,l,d))}}function Ah(r,a,l,d,v,x){switch(l){case"style":iu(r,d,x);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(o(61));if(l=d.__html,l!=null){if(v.children!=null)throw Error(o(60));r.innerHTML=l}}break;case"children":typeof d=="string"?ao(r,d):(typeof d=="number"||typeof d=="bigint")&&ao(r,""+d);break;case"onScroll":d!=null&&Xt("scroll",r);break;case"onScrollEnd":d!=null&&Xt("scrollend",r);break;case"onClick":d!=null&&(r.onclick=Xo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!So.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(v=l.endsWith("Capture"),a=l.slice(2,v?l.length-7:void 0),x=r[zt]||null,x=x!=null?x[l]:null,typeof x=="function"&&r.removeEventListener(a,x,v),typeof d=="function")){typeof x!="function"&&x!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,d,v);break e}l in r?r[l]=d:d===!0?r.setAttribute(l,""):_n(r,l,d)}}}function fr(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xt("error",r),Xt("load",r);var d=!1,v=!1,x;for(x in l)if(l.hasOwnProperty(x)){var z=l[x];if(z!=null)switch(x){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:Cn(r,a,x,z,l,null)}}v&&Cn(r,a,"srcSet",l.srcSet,l,null),d&&Cn(r,a,"src",l.src,l,null);return;case"input":Xt("invalid",r);var F=x=z=v=null,ne=null,be=null;for(d in l)if(l.hasOwnProperty(d)){var Re=l[d];if(Re!=null)switch(d){case"name":v=Re;break;case"type":z=Re;break;case"checked":ne=Re;break;case"defaultChecked":be=Re;break;case"value":x=Re;break;case"defaultValue":F=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(o(137,a));break;default:Cn(r,a,d,Re,l,null)}}Lt(r,x,F,ne,be,z,v,!1);return;case"select":Xt("invalid",r),d=z=x=null;for(v in l)if(l.hasOwnProperty(v)&&(F=l[v],F!=null))switch(v){case"value":x=F;break;case"defaultValue":z=F;break;case"multiple":d=F;default:Cn(r,a,v,F,l,null)}a=x,l=z,r.multiple=!!d,a!=null?oo(r,!!d,a,!1):l!=null&&oo(r,!!d,l,!0);return;case"textarea":Xt("invalid",r),x=v=d=null;for(z in l)if(l.hasOwnProperty(z)&&(F=l[z],F!=null))switch(z){case"value":d=F;break;case"defaultValue":v=F;break;case"children":x=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(91));break;default:Cn(r,a,z,F,l,null)}cs(r,d,v,x);return;case"option":for(ne in l)l.hasOwnProperty(ne)&&(d=l[ne],d!=null)&&(ne==="selected"?r.selected=d&&typeof d!="function"&&typeof d!="symbol":Cn(r,a,ne,d,l,null));return;case"dialog":Xt("beforetoggle",r),Xt("toggle",r),Xt("cancel",r),Xt("close",r);break;case"iframe":case"object":Xt("load",r);break;case"video":case"audio":for(d=0;d<Xl.length;d++)Xt(Xl[d],r);break;case"image":Xt("error",r),Xt("load",r);break;case"details":Xt("toggle",r);break;case"embed":case"source":case"link":Xt("error",r),Xt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(be in l)if(l.hasOwnProperty(be)&&(d=l[be],d!=null))switch(be){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:Cn(r,a,be,d,l,null)}return;default:if(Zs(a)){for(Re in l)l.hasOwnProperty(Re)&&(d=l[Re],d!==void 0&&Ah(r,a,Re,d,l,void 0));return}}for(F in l)l.hasOwnProperty(F)&&(d=l[F],d!=null&&Cn(r,a,F,d,l,null))}function R3(r,a,l,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,z=null,F=null,ne=null,be=null,Re=null;for($e in l){var Ae=l[$e];if(l.hasOwnProperty($e)&&Ae!=null)switch($e){case"checked":break;case"value":break;case"defaultValue":ne=Ae;default:d.hasOwnProperty($e)||Cn(r,a,$e,null,d,Ae)}}for(var xe in d){var $e=d[xe];if(Ae=l[xe],d.hasOwnProperty(xe)&&($e!=null||Ae!=null))switch(xe){case"type":x=$e;break;case"name":v=$e;break;case"checked":be=$e;break;case"defaultChecked":Re=$e;break;case"value":z=$e;break;case"defaultValue":F=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(o(137,a));break;default:$e!==Ae&&Cn(r,a,xe,$e,d,Ae)}}Ke(r,z,F,ne,be,Re,x,v);return;case"select":$e=z=F=xe=null;for(x in l)if(ne=l[x],l.hasOwnProperty(x)&&ne!=null)switch(x){case"value":break;case"multiple":$e=ne;default:d.hasOwnProperty(x)||Cn(r,a,x,null,d,ne)}for(v in d)if(x=d[v],ne=l[v],d.hasOwnProperty(v)&&(x!=null||ne!=null))switch(v){case"value":xe=x;break;case"defaultValue":F=x;break;case"multiple":z=x;default:x!==ne&&Cn(r,a,v,x,d,ne)}a=F,l=z,d=$e,xe!=null?oo(r,!!l,xe,!1):!!d!=!!l&&(a!=null?oo(r,!!l,a,!0):oo(r,!!l,l?[]:"",!1));return;case"textarea":$e=xe=null;for(F in l)if(v=l[F],l.hasOwnProperty(F)&&v!=null&&!d.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:Cn(r,a,F,null,d,v)}for(z in d)if(v=d[z],x=l[z],d.hasOwnProperty(z)&&(v!=null||x!=null))switch(z){case"value":xe=v;break;case"defaultValue":$e=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:v!==x&&Cn(r,a,z,v,d,x)}Ao(r,xe,$e);return;case"option":for(var at in l)xe=l[at],l.hasOwnProperty(at)&&xe!=null&&!d.hasOwnProperty(at)&&(at==="selected"?r.selected=!1:Cn(r,a,at,null,d,xe));for(ne in d)xe=d[ne],$e=l[ne],d.hasOwnProperty(ne)&&xe!==$e&&(xe!=null||$e!=null)&&(ne==="selected"?r.selected=xe&&typeof xe!="function"&&typeof xe!="symbol":Cn(r,a,ne,xe,d,$e));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 bt in l)xe=l[bt],l.hasOwnProperty(bt)&&xe!=null&&!d.hasOwnProperty(bt)&&Cn(r,a,bt,null,d,xe);for(be in d)if(xe=d[be],$e=l[be],d.hasOwnProperty(be)&&xe!==$e&&(xe!=null||$e!=null))switch(be){case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(o(137,a));break;default:Cn(r,a,be,xe,d,$e)}return;default:if(Zs(a)){for(var $n in l)xe=l[$n],l.hasOwnProperty($n)&&xe!==void 0&&!d.hasOwnProperty($n)&&Ah(r,a,$n,void 0,d,xe);for(Re in d)xe=d[Re],$e=l[Re],!d.hasOwnProperty(Re)||xe===$e||xe===void 0&&$e===void 0||Ah(r,a,Re,xe,d,$e);return}}for(var de in l)xe=l[de],l.hasOwnProperty(de)&&xe!=null&&!d.hasOwnProperty(de)&&Cn(r,a,de,null,d,xe);for(Ae in d)xe=d[Ae],$e=l[Ae],!d.hasOwnProperty(Ae)||xe===$e||xe==null&&$e==null||Cn(r,a,Ae,xe,d,$e)}function oC(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function M3(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var v=l[d],x=v.transferSize,z=v.initiatorType,F=v.duration;if(x&&F&&oC(z)){for(z=0,F=v.responseEnd,d+=1;d<l.length;d++){var ne=l[d],be=ne.startTime;if(be>F)break;var Re=ne.transferSize,Ae=ne.initiatorType;Re&&oC(Ae)&&(ne=ne.responseEnd,z+=Re*(ne<F?1:(F-be)/(ne-be)))}if(--d,a+=8*(x+z)/(v.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ih=null,Ph=null;function rd(r){return r.nodeType===9?r:r.ownerDocument}function aC(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sC(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Lh(r,a){return r==="textarea"||r==="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 _h=null;function T3(){var r=window.event;return r&&r.type==="popstate"?r===_h?!1:(_h=r,!0):(_h=null,!1)}var iC=typeof setTimeout=="function"?setTimeout:void 0,O3=typeof clearTimeout=="function"?clearTimeout:void 0,lC=typeof Promise=="function"?Promise:void 0,z3=typeof queueMicrotask=="function"?queueMicrotask:typeof lC<"u"?function(r){return lC.resolve(null).then(r).catch(A3)}:iC;function A3(r){setTimeout(function(){throw r})}function Fa(r){return r==="head"}function cC(r,a){var l=a,d=0;do{var v=l.nextSibling;if(r.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"||l==="/&"){if(d===0){r.removeChild(v),Mi(a);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")Yl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Yl(l);for(var x=l.firstChild;x;){var z=x.nextSibling,F=x.nodeName;x[it]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&x.rel.toLowerCase()==="stylesheet"||l.removeChild(x),x=z}}else l==="body"&&Yl(r.ownerDocument.body);l=v}while(l);Mi(a)}function uC(r,a){var l=r;r=0;do{var d=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=d}while(l)}function Bh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Bh(l),Bt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function I3(r,a,l,d){for(;r.nodeType===1;){var v=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[it])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(x=r.getAttribute("rel"),x==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(x!==v.rel||r.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||r.getAttribute("title")!==(v.title==null?null:v.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(x=r.getAttribute("src"),(x!==(v.src==null?null:v.src)||r.getAttribute("type")!==(v.type==null?null:v.type)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&r.getAttribute("name")===x)return r}else return r;if(r=mo(r.nextSibling),r===null)break}return null}function P3(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=mo(r.nextSibling),r===null))return null;return r}function dC(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=mo(r.nextSibling),r===null))return null;return r}function Dh(r){return r.data==="$?"||r.data==="$~"}function Hh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function L3(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var d=function(){a(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function mo(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Fh=null;function fC(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return mo(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function mC(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function pC(r,a,l){switch(a=rd(l),r){case"html":if(r=a.documentElement,!r)throw Error(o(452));return r;case"head":if(r=a.head,!r)throw Error(o(453));return r;case"body":if(r=a.body,!r)throw Error(o(454));return r;default:throw Error(o(451))}}function Yl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Bt(r)}var po=new Map,hC=new Set;function od(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ua=q.d;q.d={f:_3,r:B3,D:D3,C:H3,L:F3,m:k3,X:q3,S:V3,M:W3};function _3(){var r=ua.f(),a=Ku();return r||a}function B3(r){var a=Mt(r);a!==null&&a.tag===5&&a.type==="form"?z1(a):ua.r(r)}var Ni=typeof document>"u"?null:document;function gC(r,a,l){var d=Ni;if(d&&typeof a=="string"&&a){var v=mn(a);v='link[rel="'+r+'"][href="'+v+'"]',typeof l=="string"&&(v+='[crossorigin="'+l+'"]'),hC.has(v)||(hC.add(v),r={rel:r,crossOrigin:l,href:a},d.querySelector(v)===null&&(a=d.createElement("link"),fr(a,"link",r),qt(a),d.head.appendChild(a)))}}function D3(r){ua.D(r),gC("dns-prefetch",r,null)}function H3(r,a){ua.C(r,a),gC("preconnect",r,a)}function F3(r,a,l){ua.L(r,a,l);var d=Ni;if(d&&r&&a){var v='link[rel="preload"][as="'+mn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(v+='[imagesrcset="'+mn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(v+='[imagesizes="'+mn(l.imageSizes)+'"]')):v+='[href="'+mn(r)+'"]';var x=v;switch(a){case"style":x=ji(r);break;case"script":x=Ri(r)}po.has(x)||(r=b({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),po.set(x,r),d.querySelector(v)!==null||a==="style"&&d.querySelector(Ql(x))||a==="script"&&d.querySelector(Zl(x))||(a=d.createElement("link"),fr(a,"link",r),qt(a),d.head.appendChild(a)))}}function k3(r,a){ua.m(r,a);var l=Ni;if(l&&r){var d=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+mn(d)+'"][href="'+mn(r)+'"]',x=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Ri(r)}if(!po.has(x)&&(r=b({rel:"modulepreload",href:r},a),po.set(x,r),l.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Zl(x)))return}d=l.createElement("link"),fr(d,"link",r),qt(d),l.head.appendChild(d)}}}function V3(r,a,l){ua.S(r,a,l);var d=Ni;if(d&&r){var v=bn(d).hoistableStyles,x=ji(r);a=a||"default";var z=v.get(x);if(!z){var F={loading:0,preload:null};if(z=d.querySelector(Ql(x)))F.loading=5;else{r=b({rel:"stylesheet",href:r,"data-precedence":a},l),(l=po.get(x))&&kh(r,l);var ne=z=d.createElement("link");qt(ne),fr(ne,"link",r),ne._p=new Promise(function(be,Re){ne.onload=be,ne.onerror=Re}),ne.addEventListener("load",function(){F.loading|=1}),ne.addEventListener("error",function(){F.loading|=2}),F.loading|=4,ad(z,a,d)}z={type:"stylesheet",instance:z,count:1,state:F},v.set(x,z)}}}function q3(r,a){ua.X(r,a);var l=Ni;if(l&&r){var d=bn(l).hoistableScripts,v=Ri(r),x=d.get(v);x||(x=l.querySelector(Zl(v)),x||(r=b({src:r,async:!0},a),(a=po.get(v))&&Vh(r,a),x=l.createElement("script"),qt(x),fr(x,"link",r),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function W3(r,a){ua.M(r,a);var l=Ni;if(l&&r){var d=bn(l).hoistableScripts,v=Ri(r),x=d.get(v);x||(x=l.querySelector(Zl(v)),x||(r=b({src:r,async:!0,type:"module"},a),(a=po.get(v))&&Vh(r,a),x=l.createElement("script"),qt(x),fr(x,"link",r),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function bC(r,a,l,d){var v=(v=ee.current)?od(v):null;if(!v)throw Error(o(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ji(l.href),l=bn(v).hoistableStyles,d=l.get(a),d||(d={type:"style",instance:null,count:0,state:null},l.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ji(l.href);var x=bn(v).hoistableStyles,z=x.get(r);if(z||(v=v.ownerDocument||v,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(r,z),(x=v.querySelector(Ql(r)))&&!x._p&&(z.instance=x,z.state.loading=5),po.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},po.set(r,l),x||U3(v,r,l,z.state))),a&&d===null)throw Error(o(528,""));return z}if(a&&d!==null)throw Error(o(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ri(l),l=bn(v).hoistableScripts,d=l.get(a),d||(d={type:"script",instance:null,count:0,state:null},l.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,r))}}function ji(r){return'href="'+mn(r)+'"'}function Ql(r){return'link[rel="stylesheet"]['+r+"]"}function vC(r){return b({},r,{"data-precedence":r.precedence,precedence:null})}function U3(r,a,l,d){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=r.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),fr(a,"link",l),qt(a),r.head.appendChild(a))}function Ri(r){return'[src="'+mn(r)+'"]'}function Zl(r){return"script[async]"+r}function yC(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var d=r.querySelector('style[data-href~="'+mn(l.href)+'"]');if(d)return a.instance=d,qt(d),d;var v=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),qt(d),fr(d,"style",v),ad(d,l.precedence,r),a.instance=d;case"stylesheet":v=ji(l.href);var x=r.querySelector(Ql(v));if(x)return a.state.loading|=4,a.instance=x,qt(x),x;d=vC(l),(v=po.get(v))&&kh(d,v),x=(r.ownerDocument||r).createElement("link"),qt(x);var z=x;return z._p=new Promise(function(F,ne){z.onload=F,z.onerror=ne}),fr(x,"link",d),a.state.loading|=4,ad(x,l.precedence,r),a.instance=x;case"script":return x=Ri(l.src),(v=r.querySelector(Zl(x)))?(a.instance=v,qt(v),v):(d=l,(v=po.get(x))&&(d=b({},l),Vh(d,v)),r=r.ownerDocument||r,v=r.createElement("script"),qt(v),fr(v,"link",d),r.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,ad(d,l.precedence,r));return a.instance}function ad(r,a,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,x=v,z=0;z<d.length;z++){var F=d[z];if(F.dataset.precedence===a)x=F;else if(x!==v)break}x?x.parentNode.insertBefore(r,x.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function kh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Vh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var sd=null;function xC(r,a,l){if(sd===null){var d=new Map,v=sd=new Map;v.set(l,d)}else v=sd,d=v.get(l),d||(d=new Map,v.set(l,d));if(d.has(r))return d;for(d.set(r,null),l=l.getElementsByTagName(r),v=0;v<l.length;v++){var x=l[v];if(!(x[it]||x[gt]||r==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var z=x.getAttribute(a)||"";z=r+z;var F=d.get(z);F?F.push(x):d.set(z,[x])}}return d}function SC(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function G3(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){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"?(r=a.disabled,typeof a.precedence=="string"&&r==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 CC(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function X3(r,a,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=ji(d.href),x=a.querySelector(Ql(v));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=id.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=x,qt(x);return}x=a.ownerDocument||a,d=vC(d),(v=po.get(v))&&kh(d,v),x=x.createElement("link"),qt(x);var z=x;z._p=new Promise(function(F,ne){z.onload=F,z.onerror=ne}),fr(x,"link",d),l.instance=x}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=id.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var qh=0;function K3(r,a){return r.stylesheets&&r.count===0&&cd(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var d=setTimeout(function(){if(r.stylesheets&&cd(r,r.stylesheets),r.unsuspend){var x=r.unsuspend;r.unsuspend=null,x()}},6e4+a);0<r.imgBytes&&qh===0&&(qh=62500*M3());var v=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&cd(r,r.stylesheets),r.unsuspend)){var x=r.unsuspend;r.unsuspend=null,x()}},(r.imgBytes>qh?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(v)}}:null}function id(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cd(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var ld=null;function cd(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,ld=new Map,a.forEach(Y3,r),ld=null,id.call(r))}function Y3(r,a){if(!(a.state.loading&4)){var l=ld.get(r);if(l)var d=l.get(null);else{l=new Map,ld.set(r,l);for(var v=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var z=v[x];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(l.set(z.dataset.precedence,z),d=z)}d&&l.set(null,d)}v=a.instance,z=v.getAttribute("data-precedence"),x=l.get(z)||d,x===d&&l.set(null,v),l.set(z,v),this.count++,d=id.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),x?x.parentNode.insertBefore(v,x.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(v,r.firstChild)),a.state.loading|=4}}var Jl={$$typeof:E,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function Q3(r,a,l,d,v,x,z,F,ne){this.tag=1,this.containerInfo=r,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=$t(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$t(0),this.hiddenUpdates=$t(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function $C(r,a,l,d,v,x,z,F,ne,be,Re,Ae){return r=new Q3(r,a,l,z,ne,be,Re,Ae,F),a=1,x===!0&&(a|=24),x=Ur(3,null,null,a),r.current=x,x.stateNode=r,a=$p(),a.refCount++,r.pooledCache=a,a.refCount++,x.memoizedState={element:d,isDehydrated:l,cache:a},jp(x),r}function wC(r){return r?(r=ai,r):ai}function EC(r,a,l,d,v,x){v=wC(v),d.context===null?d.context=v:d.pendingContext=v,d=Ta(a),d.payload={element:l},x=x===void 0?null:x,x!==null&&(d.callback=x),l=Oa(r,d,a),l!==null&&(Lr(l,r,a),Ol(l,r,a))}function NC(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Wh(r,a){NC(r,a),(r=r.alternate)&&NC(r,a)}function jC(r){if(r.tag===13||r.tag===31){var a=ms(r,67108864);a!==null&&Lr(a,r,67108864),Wh(r,67108864)}}function RC(r){if(r.tag===13||r.tag===31){var a=Qr();a=Ve(a);var l=ms(r,a);l!==null&&Lr(l,r,a),Wh(r,a)}}var ud=!0;function Z3(r,a,l,d){var v=H.T;H.T=null;var x=q.p;try{q.p=2,Uh(r,a,l,d)}finally{q.p=x,H.T=v}}function J3(r,a,l,d){var v=H.T;H.T=null;var x=q.p;try{q.p=8,Uh(r,a,l,d)}finally{q.p=x,H.T=v}}function Uh(r,a,l,d){if(ud){var v=Gh(d);if(v===null)zh(r,a,d,dd,l),TC(r,d);else if(tT(v,r,a,l,d))d.stopPropagation();else if(TC(r,d),a&4&&-1<eT.indexOf(r)){for(;v!==null;){var x=Mt(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var z=Ct(x.pendingLanes);if(z!==0){var F=x;for(F.pendingLanes|=2,F.entangledLanes|=2;z;){var ne=1<<31-Je(z);F.entanglements[1]|=ne,z&=~ne}_o(x),(pn&6)===0&&(Gu=ye()+500,Gl(0))}}break;case 31:case 13:F=ms(x,2),F!==null&&Lr(F,x,2),Ku(),Wh(x,2)}if(x=Gh(d),x===null&&zh(r,a,d,dd,l),x===v)break;v=x}v!==null&&d.stopPropagation()}else zh(r,a,d,null,l)}}function Gh(r){return r=Km(r),Xh(r)}var dd=null;function Xh(r){if(dd=null,r=Kt(r),r!==null){var a=i(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=u(a),r!==null)return r;r=null}else if(l===31){if(r=m(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return dd=r,null}function MC(r){switch(r){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(Ie()){case De:return 2;case Me:return 8;case qe:case tt:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var Kh=!1,ka=null,Va=null,qa=null,ec=new Map,tc=new Map,Wa=[],eT="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 TC(r,a){switch(r){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":qa=null;break;case"pointerover":case"pointerout":ec.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":tc.delete(a.pointerId)}}function nc(r,a,l,d,v,x){return r===null||r.nativeEvent!==x?(r={blockedOn:a,domEventName:l,eventSystemFlags:d,nativeEvent:x,targetContainers:[v]},a!==null&&(a=Mt(a),a!==null&&jC(a)),r):(r.eventSystemFlags|=d,a=r.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),r)}function tT(r,a,l,d,v){switch(a){case"focusin":return ka=nc(ka,r,a,l,d,v),!0;case"dragenter":return Va=nc(Va,r,a,l,d,v),!0;case"mouseover":return qa=nc(qa,r,a,l,d,v),!0;case"pointerover":var x=v.pointerId;return ec.set(x,nc(ec.get(x)||null,r,a,l,d,v)),!0;case"gotpointercapture":return x=v.pointerId,tc.set(x,nc(tc.get(x)||null,r,a,l,d,v)),!0}return!1}function OC(r){var a=Kt(r.target);if(a!==null){var l=i(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){r.blockedOn=a,ln(r.priority,function(){RC(l)});return}}else if(a===31){if(a=m(l),a!==null){r.blockedOn=a,ln(r.priority,function(){RC(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function fd(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Gh(r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);Xm=d,l.target.dispatchEvent(d),Xm=null}else return a=Mt(l),a!==null&&jC(a),r.blockedOn=l,!1;a.shift()}return!0}function zC(r,a,l){fd(r)&&l.delete(a)}function nT(){Kh=!1,ka!==null&&fd(ka)&&(ka=null),Va!==null&&fd(Va)&&(Va=null),qa!==null&&fd(qa)&&(qa=null),ec.forEach(zC),tc.forEach(zC)}function md(r,a){r.blockedOn===a&&(r.blockedOn=null,Kh||(Kh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,nT)))}var pd=null;function AC(r){pd!==r&&(pd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pd===r&&(pd=null);for(var a=0;a<r.length;a+=3){var l=r[a],d=r[a+1],v=r[a+2];if(typeof d!="function"){if(Xh(d||l)===null)continue;break}var x=Mt(l);x!==null&&(r.splice(a,3),a-=3,Gp(x,{pending:!0,data:v,method:l.method,action:d},d,v))}}))}function Mi(r){function a(ne){return md(ne,r)}ka!==null&&md(ka,r),Va!==null&&md(Va,r),qa!==null&&md(qa,r),ec.forEach(a),tc.forEach(a);for(var l=0;l<Wa.length;l++){var d=Wa[l];d.blockedOn===r&&(d.blockedOn=null)}for(;0<Wa.length&&(l=Wa[0],l.blockedOn===null);)OC(l),l.blockedOn===null&&Wa.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var v=l[d],x=l[d+1],z=v[zt]||null;if(typeof x=="function")z||AC(l);else if(z){var F=null;if(x&&x.hasAttribute("formAction")){if(v=x,z=x[zt]||null)F=z.formAction;else if(Xh(v)!==null)continue}else F=z.action;typeof F=="function"?l[d+1]=F:(l.splice(d,3),d-=3),AC(l)}}}function IC(){function r(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(z){return v=z})},focusReset:"manual",scroll:"manual"})}function a(){v!==null&&(v(),v=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,v=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),v!==null&&(v(),v=null)}}}function Yh(r){this._internalRoot=r}hd.prototype.render=Yh.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(o(409));var l=a.current,d=Qr();EC(l,d,r,a,null,null)},hd.prototype.unmount=Yh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;EC(r.current,2,null,r,null,null),Ku(),a[fn]=null}};function hd(r){this._internalRoot=r}hd.prototype.unstable_scheduleHydration=function(r){if(r){var a=dt();r={blockedOn:null,target:r,priority:a};for(var l=0;l<Wa.length&&a!==0&&a<Wa[l].priority;l++);Wa.splice(l,0,r),l===0&&OC(r)}};var PC=t.version;if(PC!=="19.2.7")throw Error(o(527,PC,"19.2.7"));q.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=p(a),r=r!==null?g(r):null,r=r===null?null:r.stateNode,r};var rT={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gd.isDisabled&&gd.supportsFiber)try{Qe=gd.inject(rT),ke=gd}catch{}}return ac.createRoot=function(r,a){if(!s(r))throw Error(o(299));var l=!1,d="",v=k1,x=V1,z=q1;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(z=a.onRecoverableError)),a=$C(r,1,!1,null,null,l,d,null,v,x,z,IC),r[fn]=a.current,Oh(r),new Yh(a)},ac.hydrateRoot=function(r,a,l){if(!s(r))throw Error(o(299));var d=!1,v="",x=k1,z=V1,F=q1,ne=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(z=l.onCaughtError),l.onRecoverableError!==void 0&&(F=l.onRecoverableError),l.formState!==void 0&&(ne=l.formState)),a=$C(r,1,!0,a,l??null,d,v,ne,x,z,F,IC),a.context=wC(null),l=a.current,d=Qr(),d=Ve(d),v=Ta(d),v.callback=null,Oa(l,v,d),l=d,a.current.lanes=l,We(a,l),_o(a),r[fn]=a.current,Oh(r),new hd(a)},ac.version="19.2.7",ac}var s$;function eO(){if(s$)return rg.exports;s$=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(),rg.exports=JT(),rg.exports}var dN=eO();const Wf="__rc_react_root__";function fN(e,t){const n=t[Wf]||dN.createRoot(t);n.render(e),t[Wf]=n}async function mN(e){return Promise.resolve().then(()=>{e[Wf]?.unmount(),delete e[Wf]})}var rs=uN();const tO=c.createContext({}),lb=c.createContext(null);function nO({children:e,onBatchResize:t}){const n=c.useRef(0),o=c.useRef([]),s=c.useContext(lb),i=c.useCallback((u,m,h)=>{n.current+=1;const p=n.current;o.current.push({size:u,element:m,data:h}),Promise.resolve().then(()=>{p===n.current&&(t?.(o.current),o.current=[])}),s?.(u,m,h)},[t,s]);return c.createElement(lb.Provider,{value:i},e)}const Za=new Map;function rO(e){e.forEach(t=>{const{target:n}=t;Za.get(n)?.forEach(o=>o(n))})}let ig;function pN(){return ig||(ig=new ResizeObserver(rO)),ig}function oO(e,t){Za.has(e)||(Za.set(e,new Set),pN().observe(e)),Za.get(e).add(t)}function aO(e,t){Za.has(e)&&(Za.get(e).delete(t),Za.get(e).size||(pN().unobserve(e),Za.delete(e)))}function hN(e,t,n,o){const s=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=wt(h=>{const{width:p,height:g}=h.getBoundingClientRect(),{offsetWidth:b,offsetHeight:y}=h,S=Math.floor(p),$=Math.floor(g);if(s.current.width!==S||s.current.height!==$||s.current.offsetWidth!==b||s.current.offsetHeight!==y){const C={width:S,height:$,offsetWidth:b,offsetHeight:y};s.current=C;const j=b===Math.round(p)?p:b,w=y===Math.round(g)?g:y,R={...C,offsetWidth:j,offsetHeight:w};o?.(R,h),Promise.resolve().then(()=>{n?.(R,h)})}}),u=typeof t=="function",m=c.useRef(0);c.useEffect(()=>{const h=u?t():t;return h&&e?oO(h,i):e&&u&&(m.current+=1),()=>{h&&aO(h,i)}},[e,u?m.current:t])}function sO(e,t){const{children:n,disabled:o,onResize:s,data:i}=e,u=c.useRef(null),m=c.useContext(lb),h=typeof n=="function",p=h?n(u):n,g=!h&&c.isValidElement(p)&&Gs(p),b=g?ss(p):null,y=xa(b,u),S=()=>ns(u.current);return c.useImperativeHandle(t,()=>S()),hN(!o,S,s,($,C)=>{m?.($,C,i)}),g?c.cloneElement(p,{ref:y}):p}const iO=c.forwardRef(sO);function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cb.apply(this,arguments)}const lO="rc-observer-key";function cO(e,t){const{children:n}=e;return(typeof n=="function"?[n]:kr(n)).map((s,i)=>{const u=s?.key||`${lO}-${i}`;return c.createElement(iO,cb({},e,{key:u,ref:i===0?t:void 0}),s)})}const ko=c.forwardRef(cO);ko.Collection=nO;function gN(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=gN(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function K(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=gN(e))&&(o&&(o+=" "),o+=t);return o}function ub(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function uO(e){if(Array.isArray(e))return ub(e)}function dO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bN(e,t){if(e){if(typeof e=="string")return ub(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ub(e,t):void 0}}function fO(){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 Rn(e){return uO(e)||dO(e)||bN(e)||fO()}const Mc="ant",Cm="anticon",mO=["outlined","borderless","filled","underlined"],pO=(e,t)=>t||(e?`${Mc}-${e}`:Mc),vt=c.createContext({getPrefixCls:pO,iconPrefixCls:Cm}),{Consumer:cG}=vt,i$={};function en(e){const t=c.useContext(vt),{getPrefixCls:n,direction:o,getPopupContainer:s,renderEmpty:i}=t,u=t[e];return{classNames:i$,styles:i$,...u,getPrefixCls:n,direction:o,getPopupContainer:s,renderEmpty:i}}function Tc(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const hO="%";function db(e){return e.join(hO)}let l$=0;class gO{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(db(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(db(t),n)}opUpdate(t,n){const o=this.cache.get(t),s=n(o);s===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,s),this.updateTimes.set(t,l$),l$+=1)}}const q0="data-token-hash",ma="data-css-hash",_s="__cssinjs_instance__";function bO(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ma}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(s=>{s[_s]||=e,s[_s]===e&&document.head.insertBefore(s,n)});const o={};Array.from(document.querySelectorAll(`style[${ma}]`)).forEach(s=>{const i=s.getAttribute(ma);o[i]?s[_s]===e&&s.parentNode?.removeChild(s):o[i]=!0})}return new gO(e)}const Uc=c.createContext({hashPriority:"low",cache:bO(),defaultCache:!0,autoPrefix:!1});function vO(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class Uf{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,n=!1){let o={map:this.cache};return t.forEach(s=>{o?o=o?.map?.get(s):o=void 0}),o?.value&&n&&(o.value[1]=this.cacheCallTimes++),o?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Uf.MAX_CACHE_SIZE+Uf.MAX_CACHE_OFFSET){const[s]=this.keys.reduce((i,u)=>{const[,m]=i;return this.internalGet(u)[1]<m?[u,this.internalGet(u)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(s)}this.keys.push(t)}let o=this.cache;t.forEach((s,i)=>{if(i===t.length-1)o.set(s,{value:[n,this.cacheCallTimes++]});else{const u=o.get(s);u?u.map||(u.map=new Map):o.set(s,{map:new Map}),o=o.get(s).map}})}deleteByPath(t,n){const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),o.value?.[0];const s=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),s}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!vO(n,t)),this.deleteByPath(this.cache,t)}}let c$=0;class vN{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=c$,t.length===0&&(t.length>0,void 0),c$+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const lg=new Uf;function fb(e){const t=Array.isArray(e)?e:[e];return lg.has(t)||lg.set(t,new vN(t)),lg.get(t)}const yO=new WeakMap,cg={};function xO(e,t){let n=yO;for(let o=0;o<t.length;o+=1){const s=t[o];n.has(s)||n.set(s,new WeakMap),n=n.get(s)}return n.has(cg)||n.set(cg,e()),n.get(cg)}const u$=new WeakMap;function yc(e){let t=u$.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof vN?t+=o.id:o&&typeof o=="object"?t+=yc(o):t+=o}),t=Tc(t),u$.set(e,t)),t}function SO(e,t){return Tc(`${t}_${yc(e)}`)}const mb=to();function le(e){return typeof e=="number"?`${e}px`:e}function yN(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const o=`.${t}`;return n==="low"?`:where(${o})`:o}const CO=e=>e!=null;function W0(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const Tf=(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(),$O=(e,t,n)=>{const{hashCls:o,hashPriority:s="low",scope:i}=n||{};if(!Object.keys(e).length)return"";const u=`${yN({hashCls:o,hashPriority:s})}.${t}`,m=[i].flat().filter(Boolean);return`${m.length?m.map(p=>`${u}.${p}`).join(", "):u}{${Object.entries(e).map(([p,g])=>`${p}:${g};`).join("")}}`},xN=(e,t,n)=>{const{hashCls:o,hashPriority:s="low",prefix:i,unitless:u,ignore:m,preserve:h}=n||{},p={},g={};return Object.entries(e).forEach(([b,y])=>{if(h?.[b])g[b]=y;else if((typeof y=="string"||typeof y=="number")&&!m?.[b]){const S=Tf(b,i);p[S]=typeof y=="number"&&!u?.[b]?`${y}px`:String(y),g[b]=`var(${S})`}}),[g,$O(p,t,{scope:n?.scope,hashCls:o,hashPriority:s})]},bd=new Map;function U0(e,t,n,o,s){const{cache:i}=c.useContext(Uc),u=[e,...t],m=db(u),h=b=>{i.opUpdate(m,y=>{const[S=0,$]=y||[void 0,void 0],j=$||n(),w=[S,j];return b?b(w):w})};c.useMemo(()=>{h()},[m]);const g=i.opGet(m)[1];return c.useInsertionEffect(()=>(h(([b,y])=>[b+1,y]),bd.has(m)||(s?.(g),bd.set(m,!0),Promise.resolve().then(()=>{bd.delete(m)})),()=>{i.opUpdate(m,b=>{const[y=0,S]=b||[];return y-1===0?(o?.(S,!1),bd.delete(m),null):[y-1,S]})}),[m]),g}const wO={},EO="css",Rs=new Map;function NO(e){Rs.set(e,(Rs.get(e)||0)+1)}function jO(e,t){typeof document<"u"&&document.querySelectorAll(`style[${q0}="${e}"]`).forEach(o=>{o[_s]===t&&o.parentNode?.removeChild(o)})}const RO=-1;function MO(e,t){Rs.set(e,(Rs.get(e)||0)-1);const n=new Set;Rs.forEach((o,s)=>{o<=0&&n.add(s)}),Rs.size-n.size>RO&&n.forEach(o=>{jO(o,t),Rs.delete(o)})}const TO=(e,t,n,o)=>{let i={...n.getDerivativeToken(e),...t};return o&&(i=o(i)),i},OO="token";function zO(e,t,n){const{cache:{instanceId:o},container:s,hashPriority:i}=c.useContext(Uc),{salt:u="",override:m=wO,formatToken:h,getComputedToken:p,cssVar:g,nonce:b}=n,y=xO(()=>Object.assign({},...t),t),S=yc(y),$=yc(m),C=yc(g);return U0(OO,[u,e.id,S,$,C],()=>{const w=p?p(y,m,e):TO(y,m,e,h),R={...w},E=`${u}_${g.prefix}`,N=Tc(E),M=`${EO}-${N}`;R._tokenKey=SO(R,E);const[T,O]=xN(w,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:i,hashCls:g.hashed?M:void 0});return T._hashId=N,NO(g.key),[T,M,R,O,g.key]},([,,,,w])=>{MO(w,o)},([,,,w,R])=>{if(!w)return;let E={mark:ma,prepend:"queue",attachTo:s,priority:-999};E=W0(E,b);const N=Ls(w,Tc(`css-var-${R}`),E);N[_s]=o,N.setAttribute(q0,R)})}var AO={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},In="-ms-",xc="-moz-",hn="-webkit-",SN="comm",G0="rule",X0="decl",uG="@media",IO="@import",dG="@supports",PO="@namespace",CN="@keyframes",LO="@layer",fG="@scope",_O=Math.abs,Sc=String.fromCharCode,pb=Object.assign;function BO(e,t){return er(e,0)^45?(((t<<2^er(e,0))<<2^er(e,1))<<2^er(e,2))<<2^er(e,3):0}function $N(e){return e.trim()}function da(e,t){return(e=t.exec(e))?e[0]:e}function Dt(e,t,n){return e.replace(t,n)}function ug(e,t){return e.indexOf(t)}function er(e,t){return e.charCodeAt(t)|0}function Fs(e,t,n){return e.slice(t,n)}function Eo(e){return e.length}function wN(e){return e.length}function mc(e,t){return t.push(e),e}function DO(e,t){return e.map(t).join("")}function d$(e,t){return e.filter(function(n){return!da(n,t)})}var $m=1,Zi=1,EN=0,yo=0,Qn=0,al="";function wm(e,t,n,o,s,i,u,m){return{value:e,root:t,parent:n,type:o,props:s,children:i,line:$m,column:Zi,length:u,return:"",siblings:m}}function Xa(e,t){return pb(wm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ti(e){for(;e.root;)e=Xa(e.root,{children:[e]});mc(e,e.siblings)}function HO(){return Qn}function FO(){return Qn=yo>0?er(al,--yo):0,Zi--,Qn===10&&(Zi=1,$m--),Qn}function jo(){return Qn=yo<EN?er(al,yo++):0,Zi++,Qn===10&&(Zi=1,$m++),Qn}function Ja(){return er(al,yo)}function Of(){return yo}function Em(e,t){return Fs(al,e,t)}function Oc(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 kO(e){return $m=Zi=1,EN=Eo(al=e),yo=0,[]}function VO(e){return al="",e}function dg(e){return $N(Em(yo-1,hb(e===91?e+2:e===40?e+1:e)))}function qO(e){for(;(Qn=Ja())&&Qn<33;)jo();return Oc(e)>2||Oc(Qn)>3?"":" "}function WO(e,t){for(;--t&&jo()&&!(Qn<48||Qn>102||Qn>57&&Qn<65||Qn>70&&Qn<97););return Em(e,Of()+(t<6&&Ja()==32&&jo()==32))}function hb(e){for(;jo();)switch(Qn){case e:return yo;case 34:case 39:e!==34&&e!==39&&hb(Qn);break;case 40:e===41&&hb(e);break;case 92:jo();break}return yo}function UO(e,t){for(;jo()&&e+Qn!==57;)if(e+Qn===84&&Ja()===47)break;return"/*"+Em(t,yo-1)+"*"+Sc(e===47?e:jo())}function GO(e){for(;!Oc(Ja());)jo();return Em(e,yo)}function f$(e){return VO(zf("",null,null,null,[""],e=kO(e),0,[0],e))}function zf(e,t,n,o,s,i,u,m,h){for(var p=0,g=0,b=u,y=0,S=0,$=0,C=1,j=1,w=1,R=0,E=0,N="",M=s,T=i,O=o,P=N;j;)switch($=E,E=jo()){case 40:$!=108&&er(P,b-1)==58?(R++,P+="("):P+=dg(E);break;case 41:R--,P+=")";break;case 34:case 39:case 91:P+=dg(E);break;case 9:case 10:case 13:case 32:if(R>0){P+=Sc(E);break}P+=qO($);break;case 92:P+=WO(Of()-1,7);continue;case 47:switch(Ja()){case 42:case 47:mc(XO(UO(jo(),Of()),t,n,h),h),(Oc($||1)==5||Oc(Ja()||1)==5)&&Eo(P)&&Fs(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*C:m[p++]=Eo(P)*w;case 125*C:case 59:case 0:if(R>0&&E){P+=Sc(E);break}switch(E){case 0:case 125:j=0;case 59+g:w==-1&&(P=Dt(P,/\f/g,"")),S>0&&(Eo(P)-b||C===0)&&mc(S>32?p$(P+";",o,n,b-1,h):p$(Dt(P," ","")+";",o,n,b-2,h),h);break;case 59:P+=";";default:if(mc(O=m$(P,t,n,p,g,s,m,N,M=[],T=[],b,i),i),E===123)if(g===0)zf(P,t,O,O,M,i,b,m,T);else{switch(y){case 99:if(er(P,3)===110)break;case 108:if(er(P,2)===97)break;default:g=0;case 100:case 109:case 115:}g?zf(e,O,O,o&&mc(m$(e,O,O,0,0,s,m,N,s,M=[],b,T),T),s,T,b,m,o?M:T):zf(P,O,O,O,[""],T,0,m,T)}}p=g=S=0,C=w=1,N=P="",b=u;break;case 58:b=1+Eo(P),S=$;default:if(C<1){if(E==123)--C;else if(E==125&&C++==0&&FO()==125)continue}switch(P+=Sc(E),E*C){case 38:w=g>0?1:(P+="\f",-1);break;case 44:if(R>0)break;m[p++]=(Eo(P)-1)*w,w=1;break;case 64:Ja()===45&&(P+=dg(jo())),y=Ja(),g=b=Eo(N=P+=GO(Of())),E++;break;case 45:$===45&&Eo(P)==2&&(C=0)}}return i}function m$(e,t,n,o,s,i,u,m,h,p,g,b){for(var y=s-1,S=s===0?i:[""],$=wN(S),C=0,j=0,w=0;C<o;++C)for(var R=0,E=Fs(e,y+1,y=_O(j=u[C])),N=e;R<$;++R)(N=$N(j>0?S[R]+" "+E:Dt(E,/&\f/g,S[R])))&&(h[w++]=N);return wm(e,t,n,s===0?G0:m,h,p,g,b)}function XO(e,t,n,o){return wm(e,t,n,SN,Sc(HO()),Fs(e,2,-2),0,o)}function p$(e,t,n,o,s){return wm(e,t,n,X0,Fs(e,0,o),Fs(e,o+1,-1),o,s)}function NN(e,t,n){switch(BO(e,t)){case 5103:return hn+"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 hn+e+e;case 4855:return hn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return xc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hn+e+xc+e+In+e+e;case 5936:switch(er(e,t+11)){case 114:return hn+e+In+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+In+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+In+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return hn+e+In+e+e;case 6165:return hn+e+In+"flex-"+e+e;case 5187:return hn+e+Dt(e,/(\w+).+(:[^]+)/,hn+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return hn+e+In+"flex-item-"+Dt(e,/flex-|-self/g,"")+(da(e,/flex-|baseline/)?"":In+"grid-row-"+Dt(e,/flex-|-self/g,""))+e;case 4675:return hn+e+In+"flex-line-pack"+Dt(e,/align-content|flex-|-self/g,"")+e;case 5548:return hn+e+In+Dt(e,"shrink","negative")+e;case 5292:return hn+e+In+Dt(e,"basis","preferred-size")+e;case 6060:return hn+"box-"+Dt(e,"-grow","")+hn+e+In+Dt(e,"grow","positive")+e;case 4554:return hn+Dt(e,/([^-])(transform)/g,"$1"+hn+"$2")+e;case 6187:return Dt(Dt(Dt(e,/(zoom-|grab)/,hn+"$1"),/(image-set)/,hn+"$1"),e,"")+e;case 5495:case 3959:return Dt(e,/(image-set\([^]*)/,hn+"$1$`$1");case 4968:return Dt(Dt(e,/(.+:)(flex-)?(.*)/,hn+"box-pack:$3"+In+"flex-pack:$3"),/space-between/,"justify")+hn+e+e;case 4200:if(!da(e,/flex-|baseline/))return In+"grid-column-align"+Fs(e,t)+e;break;case 2592:case 3360:return In+Dt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(o,s){return t=s,da(o.props,/grid-\w+-end/)})?~ug(e+(n=n[t].value),"span")?e:In+Dt(e,"-start","")+e+In+"grid-row-span:"+(~ug(n,"span")?da(n,/\d+/):+da(n,/\d+/)-+da(e,/\d+/))+";":In+Dt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(o){return da(o.props,/grid-\w+-start/)})?e:In+Dt(Dt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Dt(e,/(.+)-inline(.+)/,hn+"$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(Eo(e)-1-t>6)switch(er(e,t+1)){case 109:if(er(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+xc+(er(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ug(e,"stretch")?NN(Dt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Dt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,i,u,m,h,p){return In+s+":"+i+p+(u?In+s+"-span:"+(m?h:+h-+i)+p:"")+e});case 4949:if(er(e,t+6)===121)return Dt(e,":",":"+hn)+e;break;case 6444:switch(er(e,er(e,14)===45?18:11)){case 120:return Dt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+hn+(er(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+In+"$2box$3")+e;case 100:return Dt(e,":",":"+In)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Dt(e,"scroll-","scroll-snap-")+e}return e}function zc(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function h$(e,t,n,o){switch(e.type){case LO:if(e.children.length)break;case IO:case PO:case X0:return e.return=e.return||e.value;case SN:return"";case CN:return e.return=e.value+"{"+zc(e.children,o)+"}";case G0:if(!Eo(e.value=e.props.join(",")))return""}return Eo(n=zc(e.children,o))?e.return=e.value+"{"+n+"}":""}function KO(e){var t=wN(e);return function(n,o,s,i){for(var u="",m=0;m<t;m++)u+=e[m](n,o,s,i)||"";return u}}function YO(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case X0:e.return=NN(e.value,e.length,n);return;case CN:return zc([Xa(e,{value:Dt(e.value,"@","@"+hn)})],o);case G0:if(e.length)return DO(n=e.props,function(s){switch(da(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ti(Xa(e,{props:[Dt(s,/:(read-\w+)/,":"+xc+"$1")]})),Ti(Xa(e,{props:[s]})),pb(e,{props:d$(n,o)});break;case"::placeholder":Ti(Xa(e,{props:[Dt(s,/:(plac\w+)/,":"+hn+"input-$1")]})),Ti(Xa(e,{props:[Dt(s,/:(plac\w+)/,":"+xc+"$1")]})),Ti(Xa(e,{props:[Dt(s,/:(plac\w+)/,In+"input-$1")]})),Ti(Xa(e,{props:[s]})),pb(e,{props:d$(n,o)});break}return""})}}const g$="data-ant-cssinjs-cache-path",jN="_FILE_STYLE__";let Bs,RN=!0;function QO(){if(!Bs&&(Bs={},to())){const e=document.createElement("div");e.className=g$,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(o=>{const[s,i]=o.split(":");Bs[s]=i});const n=document.querySelector(`style[${g$}]`);n&&(RN=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function ZO(e){return QO(),!!Bs[e]}function JO(e){const t=Bs[e];let n=null;if(t&&to())if(RN)n=jN;else{const o=document.querySelector(`style[${ma}="${Bs[e]}"]`);o?n=o.innerHTML:delete Bs[e]}return[n,t]}const e8="_skip_check_",MN="_multi_value_";function fg(e,t){return(t?zc(f$(e),KO([YO,h$])):zc(f$(e),h$)).replace(/\{%%%\:[^;];}/g,";")}function t8(e){return typeof e=="object"&&e&&(e8 in e||MN in e)}function b$(e,t,n="high"){if(!t)return e;const o=yN({hashCls:t,hashPriority:n});return e.split(",").map(i=>{const u=i.trim().split(/\s+/);let m=u[0]||"";const h=m.match(/^\w+/)?.[0]||"";return m=`${h}${o}${m.slice(h.length)}`,[m,...u.slice(1)].join(" ")}).join(",")}const gb=(e,t={},{root:n,injectHash:o,parentSelectors:s}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:u,path:m,hashPriority:h,transformers:p=[],linters:g=[]}=t;let b="",y={};function S(j){const w=j.getName(i);if(!y[w]){const[R]=gb(j.style,t,{root:!1,parentSelectors:s});y[w]=`@keyframes ${j.getName(i)}${R}`}}function $(j,w=[]){return j.forEach(R=>{Array.isArray(R)?$(R,w):R&&w.push(R)}),w}return $(Array.isArray(e)?e:[e]).forEach(j=>{const w=typeof j=="string"&&!n?{}:j;if(typeof w=="string")b+=`${w}
|
|
38
|
-
`;else if(w._keyframe)S(w);else{const R=p.reduce((E,N)=>N?.visit?.(E)||E,w);Object.keys(R).forEach(E=>{const N=R[E];if(typeof N=="object"&&N&&(E!=="animationName"||!N._keyframe)&&!t8(N)){let M=!1,T=E.trim(),O=!1;(n||o)&&i?T.startsWith("@")?M=!0:T==="&"?T=b$("",i,h):T=b$(E,i,h):n&&!i&&(T==="&"||T==="")&&(T="",O=!0);const[P,_]=gb(N,t,{root:O,injectHash:M,parentSelectors:[...s,T]});y={...y,..._},b+=`${T}${P}`}else{let M=function(O,P){const _=O.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let L=P;!AO[O]&&typeof L=="number"&&L!==0&&(L=`${L}px`),O==="animationName"&&P?._keyframe&&(S(P),L=P.getName(i)),b+=`${_}:${L};`};const T=N?.value??N;typeof N=="object"&&N?.[MN]&&Array.isArray(T)?T.forEach(O=>{M(E,O)}):CO(T)&&M(E,T)}})}}),n?u&&(b&&(b=`@layer ${u.name} {${b}}`),u.dependencies&&(y[`@layer ${u.name}`]=u.dependencies.map(j=>`@layer ${j}, ${u.name};`).join(`
|
|
39
|
-
`))):b=`{${b}}`,[b,y]};function TN(e,t){return Tc(`${e.join("%")}${t}`)}const n8="style";function bb(e,t){const{path:n,hashId:o,layer:s,nonce:i,clientOnly:u,order:m=0}=e,{mock:h,hashPriority:p,container:g,transformers:b,linters:y,cache:S,layer:$,autoPrefix:C}=c.useContext(Uc),j=[o||""];$&&j.push("layer"),j.push(...n);let w=mb;U0(n8,j,()=>{const R=j.join("|");if(ZO(R)){const[P,_]=JO(R);if(P)return[P,_,{},u,m]}const E=t(),[N,M]=gb(E,{hashId:o,hashPriority:p,layer:$?s:void 0,path:n.join("-"),transformers:b,linters:y}),T=fg(N,C||!1),O=TN(j,T);return[T,O,M,u,m]},(R,E)=>{const[,N]=R;E&&mb&&jc(N,{mark:ma,attachTo:g})},R=>{const[E,N,M,,T]=R;if(w&&E!==jN){let O={mark:ma,prepend:$?!1:"queue",attachTo:g,priority:T};O=W0(O,i);const P=[],_=[];Object.keys(M).forEach(A=>{A.startsWith("@layer")?P.push(A):_.push(A)}),P.forEach(A=>{Ls(fg(M[A],C||!1),`_layer-${A}`,{...O,prepend:!0})});const L=Ls(E,N,O);L[_s]=S.instanceId,_.forEach(A=>{Ls(fg(M[A],C||!1),`_effect-${A}`,O)})}})}const r8="cssVar",o8=(e,t)=>{const{key:n,prefix:o,unitless:s,ignore:i,token:u,hashId:m,scope:h,nonce:p}=e,{cache:{instanceId:g},container:b,hashPriority:y}=c.useContext(Uc),{_tokenKey:S}=u,$=Array.isArray(h)?h.join("@@"):h,C=[...e.path,n,$,S];return U0(r8,C,()=>{const w=t(),[R,E]=xN(w,n,{prefix:o,unitless:s,ignore:i,scope:h,hashPriority:y,hashCls:m}),N=TN(C,E);return[R,E,N,n]},([,,w])=>{mb&&jc(w,{mark:ma,attachTo:b})},([,w,R])=>{if(!w)return;let E={mark:ma,prepend:"queue",attachTo:b,priority:-999};E=W0(E,p);const N=Ls(w,R,E);N[_s]=g,N.setAttribute(q0,n)})};class Ft{name;style;constructor(t,n){this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Oi(e){return e.notSplit=!0,e}Oi(["borderTop","borderBottom"]),Oi(["borderTop"]),Oi(["borderBottom"]),Oi(["borderLeft","borderRight"]),Oi(["borderLeft"]),Oi(["borderRight"]);function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}function a8(e){if(Array.isArray(e))return e}function s8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,s,i,u,m=[],h=!0,p=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(o=i.call(n)).done)&&(m.push(o.value),m.length!==t);h=!0);}catch(g){p=!0,s=g}finally{try{if(!h&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(p)throw s}}return m}}function i8(){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 ON(e,t){return a8(e)||s8(e,t)||bN(e,t)||i8()}function l8(e,t){if(Ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(Ro(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zN(e){var t=l8(e,"string");return Ro(t)=="symbol"?t:t+""}function Do(e,t,n){return(t=zN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v$(Object(n),!0).forEach(function(o){Do(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v$(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c8(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,zN(o.key),o)}}function Xc(e,t,n){return t&&c8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Af(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},vb(e,t)}function AN(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&&vb(e,t)}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ji(e)}function K0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K0=function(){return!!e})()}function IN(e,t){if(t&&(Ro(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Af(e)}function u8(e){var t=K0();return function(){var n,o=Ji(e);if(t){var s=Ji(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return IN(this,n)}}var d8=Xc(function e(){Gc(this,e)}),PN="CALC_UNIT",f8=new RegExp(PN,"g");function mg(e){return typeof e=="number"?"".concat(e).concat(PN):e}var m8=(function(e){AN(n,e);var t=u8(n);function n(o,s){var i;Gc(this,n),i=t.call(this),Do(Af(i),"result",""),Do(Af(i),"unitlessCssVar",void 0),Do(Af(i),"lowPriority",void 0);var u=Ro(o);return i.unitlessCssVar=s,o instanceof n?i.result="(".concat(o.result,")"):u==="number"?i.result=mg(o):u==="string"&&(i.result=o),i}return Xc(n,[{key:"add",value:function(s){return s instanceof n?this.result="".concat(this.result," + ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," + ").concat(mg(s))),this.lowPriority=!0,this}},{key:"sub",value:function(s){return s instanceof n?this.result="".concat(this.result," - ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," - ").concat(mg(s))),this.lowPriority=!0,this}},{key:"mul",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof n?this.result="".concat(this.result," * ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," * ").concat(s)),this.lowPriority=!1,this}},{key:"div",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof n?this.result="".concat(this.result," / ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," / ").concat(s)),this.lowPriority=!1,this}},{key:"getResult",value:function(s){return this.lowPriority||s?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(s){var i=this,u=s||{},m=u.unit,h=!0;return typeof m=="boolean"?h=m:Array.from(this.unitlessCssVar).some(function(p){return i.result.includes(p)})&&(h=!1),this.result=this.result.replace(f8,h?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(d8),p8=function(t,n){var o=m8;return function(s){return new o(s,n)}},y$=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function x$(e,t,n,o){var s=Dr({},t[e]);if(o!=null&&o.deprecatedTokens){var i=o.deprecatedTokens;i.forEach(function(m){var h=ON(m,2),p=h[0],g=h[1];if(s!=null&&s[p]||s!=null&&s[g]){var b;(b=s[g])!==null&&b!==void 0||(s[g]=s?.[p])}})}var u=Dr(Dr({},n),s);return Object.keys(u).forEach(function(m){u[m]===t[m]&&delete u[m]}),u}var LN=typeof CSSINJS_STATISTIC<"u",yb=!0;function rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!LN)return Object.assign.apply(Object,[{}].concat(t));yb=!1;var o={};return t.forEach(function(s){if(Ro(s)==="object"){var i=Object.keys(s);i.forEach(function(u){Object.defineProperty(o,u,{configurable:!0,enumerable:!0,get:function(){return s[u]}})})}}),yb=!0,o}var S$={};function h8(){}var g8=function(t){var n,o=t,s=h8;return LN&&typeof Proxy<"u"&&(n=new Set,o=new Proxy(t,{get:function(u,m){if(yb){var h;(h=n)===null||h===void 0||h.add(m)}return u[m]}}),s=function(u,m){var h;S$[u]={global:Array.from(n),component:Dr(Dr({},(h=S$[u])===null||h===void 0?void 0:h.component),m)}}),{token:o,keys:n,flush:s}};function C$(e,t,n){if(typeof n=="function"){var o;return n(rn(t,(o=t[e])!==null&&o!==void 0?o:{}))}return n??{}}function b8(e){return{max:function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return"max(".concat(o.map(function(i){return le(i)}).join(","),")")},min:function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return"min(".concat(o.map(function(i){return le(i)}).join(","),")")}}}var v8=1e3*60*10,y8=(function(){function e(){Gc(this,e),Do(this,"map",new Map),Do(this,"objectIDMap",new WeakMap),Do(this,"nextID",0),Do(this,"lastAccessBeat",new Map),Do(this,"accessBeat",0)}return Xc(e,[{key:"set",value:function(n,o){this.clear();var s=this.getCompositeKey(n);this.map.set(s,o),this.lastAccessBeat.set(s,Date.now())}},{key:"get",value:function(n){var o=this.getCompositeKey(n),s=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,s}},{key:"getCompositeKey",value:function(n){var o=this,s=n.map(function(i){return i&&Ro(i)==="object"?"obj_".concat(o.getObjectID(i)):"".concat(Ro(i),"_").concat(i)});return s.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var o=this.nextID;return this.objectIDMap.set(n,o),this.nextID+=1,o}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(s,i){o-s>v8&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),$$=new y8;function x8(e,t){return ue.useMemo(function(){var n=$$.get(t);if(n)return n;var o=e();return $$.set(t,o),o},t)}var S8=function(){return{}};function C8(e){var t=e.useCSP,n=t===void 0?S8:t,o=e.useToken,s=e.usePrefix,i=e.getResetStyles,u=e.getCommonStyle,m=e.getCompUnitless;function h(y,S,$,C){var j=Array.isArray(y)?y[0]:y;function w(P){return"".concat(String(j)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var R=C?.unitless||{},E=typeof m=="function"?m(y):{},N=Dr(Dr({},E),{},Do({},w("zIndexPopup"),!0));Object.keys(R).forEach(function(P){N[w(P)]=R[P]});var M=Dr(Dr({},C),{},{unitless:N,prefixToken:w}),T=g(y,S,$,M),O=p(j,$,M);return function(P){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,L=T(P,_),A=C?.extraCssVarPrefixCls,B=typeof A=="function"?A({prefixCls:P,rootCls:_}):A,V=O(B!=null&&B.length?[_].concat(Rn(B)):_);return[L,V]}}function p(y,S,$){var C=$.unitless,j=$.prefixToken,w=$.ignore;return function(R){var E=o(),N=E.cssVar,M=E.realToken,T=n();return o8({path:[y],prefix:N.prefix,key:N.key,unitless:C,ignore:w,token:M,scope:R,nonce:function(){return T.nonce}},function(){var O=C$(y,M,S),P=x$(y,M,O,{deprecatedTokens:$?.deprecatedTokens});return O&&Object.keys(O).forEach(function(_){P[j(_)]=P[_],delete P[_]}),P}),N?.key}}function g(y,S,$){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=Array.isArray(y)?y:[y,y],w=ON(j,1),R=w[0],E=j.join("-"),N=e.layer||{name:"antd"};return function(M){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,O=o(),P=O.theme,_=O.realToken,L=O.hashId,A=O.token,B=O.cssVar,V=O.zeroRuntime,Z=c.useMemo(function(){return V},[]);if(Z)return L;var W=s(),H=W.rootPrefixCls,q=W.iconPrefixCls,U=n(),J="css",k=x8(function(){var X=new Set;return Object.keys(C.unitless||{}).forEach(function(ee){X.add(Tf(ee,B.prefix)),X.add(Tf(ee,y$(R,B.prefix)))}),p8(J,X)},[J,R,B?.prefix]),I=b8(),D=I.max,Y=I.min,G={theme:P,token:A,hashId:L,nonce:function(){return U.nonce},clientOnly:C.clientOnly,layer:N,order:C.order||-999};return typeof i=="function"&&bb(Dr(Dr({},G),{},{clientOnly:!1,path:["Shared",H]}),function(){return i(A,{prefix:{rootPrefixCls:H,iconPrefixCls:q},csp:U})}),bb(Dr(Dr({},G),{},{path:[E,M,q]}),function(){if(C.injectStyle===!1)return[];var X=g8(A),ee=X.token,Q=X.flush,ae=C$(R,_,$),se=".".concat(M),ie=x$(R,_,ae,{deprecatedTokens:C.deprecatedTokens});ae&&Ro(ae)==="object"&&Object.keys(ae).forEach(function(pe){ae[pe]="var(".concat(Tf(pe,y$(R,B.prefix)),")")});var fe=rn(ee,{componentCls:se,prefixCls:M,iconCls:".".concat(q),antCls:".".concat(H),calc:k,max:D,min:Y},ae),oe=S(fe,{hashId:L,prefixCls:M,rootPrefixCls:H,iconPrefixCls:q});Q(R,ie);var re=typeof u=="function"?u(fe,M,T,C.resetFont):null;return[C.resetStyle===!1?null:re,oe]}),L}}function b(y,S,$){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=g(y,S,$,Dr({resetStyle:!1,order:-998},C)),w=function(E){var N=E.prefixCls,M=E.rootCls,T=M===void 0?N:M;return j(N,T),null};return w}return{genStyleHooks:h,genSubStyleComponent:b,genComponentStyleHook:g}}const ba=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function If(e){return(e+8)/e}function $8(e){const t=Array.from({length:10}).map((n,o)=>{const s=o-1,i=e*Math.E**(s/5),u=o>1?Math.floor(i):Math.ceil(i);return Math.floor(u/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:If(n)}))}const w8="6.5.2",_N={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"},Ac={..._N,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},E8={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"},or=Math.round;function pg(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=t(o[s]||0,n[s]||"",s);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const w$=(e,t,n)=>n===0?e:e/100;function sc(e,t){const n=t||255;return e>n?n:e<0?0:e}class On{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};const o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(s("rgb"))this.fromRgbString(o);else if(s("hsl"))this.fromHslString(o);else if(s("hsv")||s("hsb"))this.fromHsvString(o);else{const i=E8[o.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof On)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=sc(t.r),this.g=sc(t.g),this.b=sc(t.b),this.a=typeof t.a=="number"?sc(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const u=i/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const n=t(this.r),o=t(this.g),s=t(this.b);return .2126*n+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=or(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 n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),o=this.getSaturation();let s=this.getLightness()-t/100;return s<0&&(s=0),this._c({h:n,s:o,l:s,a:this.a})}lighten(t=10){const n=this.getHue(),o=this.getSaturation();let s=this.getLightness()+t/100;return s>1&&(s=1),this._c({h:n,s:o,l:s,a:this.a})}mix(t,n=50){const o=this._c(t),s=n/100,i=m=>(o[m]-this[m])*s+this[m],u={r:or(i("r")),g:or(i("g")),b:or(i("b")),a:or(i("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 n=this._c(t),o=this.a+n.a*(1-this.a),s=i=>or((this[i]*this.a+n[i]*n.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(t+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=or(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=or(this.getHSLSaturation()*100),o=or(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${o}%,${this.a})`:`hsl(${t},${n}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,o){const s=this.clone();return s[t]=sc(n,o),s}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function o(s,i){return parseInt(n[s]+n[i||s],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:t,s:n,l:o,a:s}){const i=(t%360+360)%360;if(this._h=i,this._hsl_s=n,this._l=o,this.a=typeof s=="number"?s:1,n<=0){const S=or(o*255);this.r=S,this.g=S,this.b=S;return}let u=0,m=0,h=0;const p=i/60,g=(1-Math.abs(2*o-1))*n,b=g*(1-Math.abs(p%2-1));p>=0&&p<1?(u=g,m=b):p>=1&&p<2?(u=b,m=g):p>=2&&p<3?(m=g,h=b):p>=3&&p<4?(m=b,h=g):p>=4&&p<5?(u=b,h=g):p>=5&&p<6&&(u=g,h=b);const y=o-g/2;this.r=or((u+y)*255),this.g=or((m+y)*255),this.b=or((h+y)*255)}fromHsv({h:t,s:n,v:o,a:s}){const i=(t%360+360)%360;this._h=i,this._hsv_s=n,this._v=o,this.a=typeof s=="number"?s:1;const u=or(o*255);if(this.r=u,this.g=u,this.b=u,n<=0)return;const m=i/60,h=Math.floor(m),p=m-h,g=or(o*(1-n)*255),b=or(o*(1-n*p)*255),y=or(o*(1-n*(1-p))*255);switch(h){case 0:this.g=y,this.b=g;break;case 1:this.r=b,this.b=g;break;case 2:this.r=g,this.b=y;break;case 3:this.r=g,this.g=b;break;case 4:this.r=y,this.g=g;break;default:this.g=g,this.b=b;break}}fromHsvString(t){const n=pg(t,w$);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=pg(t,w$);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=pg(t,(o,s)=>s.includes("%")?or(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const vd=2,E$=.16,N8=.05,j8=.05,R8=.15,BN=5,DN=4,M8=[{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 N$(e,t,n){let o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-vd*t:Math.round(e.h)+vd*t:o=n?Math.round(e.h)+vd*t:Math.round(e.h)-vd*t,o<0?o+=360:o>=360&&(o-=360),o}function j$(e,t,n){if(e.h===0&&e.s===0)return e.s;let o;return n?o=e.s-E$*t:t===DN?o=e.s+E$:o=e.s+N8*t,o>1&&(o=1),n&&t===BN&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function R$(e,t,n){let o;return n?o=e.v+j8*t:o=e.v-R8*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function HN(e,t={}){const n=[],o=new On(e),s=o.toHsv();for(let i=BN;i>0;i-=1){const u=new On({h:N$(s,i,!0),s:j$(s,i,!0),v:R$(s,i,!0)});n.push(u)}n.push(o);for(let i=1;i<=DN;i+=1){const u=new On({h:N$(s,i),s:j$(s,i),v:R$(s,i)});n.push(u)}return t.theme==="dark"?M8.map(({index:i,amount:u})=>new On(t.backgroundColor||"#141414").mix(n[i],u).toHexString()):n.map(i=>i.toHexString())}const Ki={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"},xb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];xb.primary=xb[5];const Sb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sb.primary=Sb[5];const Cb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cb.primary=Cb[5];const $b=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$b.primary=$b[5];const wb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];wb.primary=wb[5];const Eb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Eb.primary=Eb[5];const Nb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Nb.primary=Nb[5];const jb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];jb.primary=jb[5];const Rb=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Rb.primary=Rb[5];const Mb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Mb.primary=Mb[5];const Tb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Tb.primary=Tb[5];const Ob=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ob.primary=Ob[5];const zb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];zb.primary=zb[5];const hg={red:xb,volcano:Sb,orange:Cb,gold:$b,yellow:wb,lime:Eb,green:Nb,cyan:jb,blue:Rb,geekblue:Mb,purple:Tb,magenta:Ob,grey:zb};function T8(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:s,colorError:i,colorInfo:u,colorPrimary:m,colorBgBase:h,colorTextBase:p}=e,g=t(m),b=t(o),y=t(s),S=t(i),$=t(u),C=n(h,p),j=e.colorLink||e.colorInfo,w=t(j),R=new On(S[1]).mix(new On(S[3]),50).toHexString(),E={};return ba.forEach(N=>{const M=e[N];if(M){const T=t(M);E[`${N}Hover`]=T[5],E[`${N}Active`]=T[7]}}),{...C,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:S[1],colorErrorBgHover:S[2],colorErrorBgFilledHover:R,colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:$[1],colorInfoBgHover:$[2],colorInfoBorder:$[3],colorInfoBorderHover:$[4],colorInfoHover:$[4],colorInfo:$[6],colorInfoActive:$[7],colorInfoTextHover:$[8],colorInfoText:$[9],colorInfoTextActive:$[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],...E,colorBgMask:new On("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const O8=e=>{let t=e,n=e,o=e,s=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?s=4:e>=8&&(s=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:s}};function z8(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:s}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:s+1,...O8(o)}}const A8=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},I8=e=>{const t=$8(e),n=t.map(g=>g.size),o=t.map(g=>g.lineHeight),s=n[1],i=n[0],u=n[2],m=o[1],h=o[0],p=o[2];return{fontSizeSM:i,fontSize:s,fontSizeLG:u,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:m,lineHeightLG:p,lineHeightSM:h,fontHeight:Math.round(m*s),fontHeightLG:Math.round(p*u),fontHeightSM:Math.round(h*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function P8(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ho=(e,t)=>new On(e).setA(t).toRgbString(),zi=(e,t)=>new On(e).darken(t).toHexString(),L8=e=>{const t=HN(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]}},_8=(e,t,n)=>{const o=e||"#fff",s=t||"#000";return{colorBgBase:o,colorTextBase:s,colorShadow:n||"#000",colorText:ho(s,.88),colorTextSecondary:ho(s,.65),colorTextTertiary:ho(s,.45),colorTextQuaternary:ho(s,.25),colorFill:ho(s,.15),colorFillSecondary:ho(s,.06),colorFillTertiary:ho(s,.04),colorFillQuaternary:ho(s,.02),colorBgSolid:ho(s,1),colorBgSolidHover:ho(s,.75),colorBgSolidActive:ho(s,.95),colorBgLayout:zi(o,4),colorBgContainer:zi(o,0),colorBgElevated:zi(o,0),colorBgSpotlight:ho(s,.85),colorBgBlur:"transparent",colorBorder:zi(o,15),colorBorderDisabled:zi(o,15),colorBorderSecondary:zi(o,6)}};function B8(e){Ki.pink=Ki.magenta,hg.pink=hg.magenta;const t=Object.keys(_N).map(n=>{const o=e[n]===Ki[n]?hg[n]:HN(e[n]);return Array.from({length:10},()=>1).reduce((s,i,u)=>(s[`${n}-${u+1}`]=o[u],s[`${n}${u+1}`]=o[u],s),{})}).reduce((n,o)=>(n={...n,...o},n),{});return{...e,...t,...T8(e,{generateColorPalettes:L8,generateNeutralColorPalettes:_8}),...I8(e.fontSize),...P8(e),...A8(e),...z8(e)}}const FN=fb(B8),Ab={token:Ac,override:{override:Ac},hashed:!0},kN=ue.createContext(Ab);function gg(e){return e>=0&&e<=255}function pc(e,t){const{r:n,g:o,b:s,a:i}=new On(e).toRgb();if(i<1)return e;const{r:u,g:m,b:h}=new On(t).toRgb();for(let p=.01;p<=1;p+=.01){const g=Math.round((n-u*(1-p))/p),b=Math.round((o-m*(1-p))/p),y=Math.round((s-h*(1-p))/p);if(gg(g)&&gg(b)&&gg(y))return new On({r:g,g:b,b:y,a:Math.round(p*100)/100}).toRgbString()}return new On({r:n,g:o,b:s,a:1}).toRgbString()}function D8(e){const{override:t,...n}=e,o={...t};Object.keys(Ac).forEach(j=>{delete o[j]});const s={...n,...o},i=new On(s.colorShadow),u=i.a,m=j=>i.clone().setA(u*j).toRgbString(),h=480,p=576,g=768,b=992,y=1200,S=1600,$=1920;return s.motion===!1&&(s.motionDurationFast="0s",s.motionDurationMid="0s",s.motionDurationSlow="0s"),{...s,colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:pc(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:pc(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:pc(s.colorWarningBg,s.colorBgContainer),colorErrorAffix:s.colorError,colorWarningAffix:s.colorWarning,fontSizeIcon:s.fontSizeSM,lineWidthFocus:s.lineWidth*3,lineWidth:s.lineWidth,controlOutlineWidth:s.lineWidth*2,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:pc(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:`
|
|
43
|
-
0 6px 16px 0 ${m(.08)},
|
|
44
|
-
0 3px 6px -4px ${m(.12)},
|
|
45
|
-
0 9px 28px 8px ${m(.05)}
|
|
46
|
-
`,boxShadowSecondary:`
|
|
47
|
-
0 6px 16px 0 ${m(.08)},
|
|
48
|
-
0 3px 6px -4px ${m(.12)},
|
|
49
|
-
0 9px 28px 8px ${m(.05)}
|
|
50
|
-
`,boxShadowTertiary:`
|
|
51
|
-
0 1px 2px 0 ${m(.05)},
|
|
52
|
-
0 1px 6px -1px ${m(.03)},
|
|
53
|
-
0 2px 4px 0 ${m(.03)}
|
|
54
|
-
`,screenXS:h,screenXSMin:h,screenXSMax:p-1,screenSM:p,screenSMMin:p,screenSMMax:g-1,screenMD:g,screenMDMin:g,screenMDMax:b-1,screenLG:b,screenLGMin:b,screenLGMax:y-1,screenXL:y,screenXLMin:y,screenXLMax:S-1,screenXXL:S,screenXXLMin:S,screenXXLMax:$-1,screenXXXL:$,screenXXXLMin:$,boxShadowPopoverArrow:`2px 2px 5px ${m(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${m(.08)}) drop-shadow(0 3px 6px ${m(.12)}) drop-shadow(0 9px 28px ${m(.05)})`,boxShadowCard:`
|
|
55
|
-
0 1px 2px -2px ${m(.16)},
|
|
56
|
-
0 3px 6px 0 ${m(.12)},
|
|
57
|
-
0 5px 12px 4px ${m(.09)}
|
|
58
|
-
`,boxShadowDrawerRight:`
|
|
59
|
-
-6px 0 16px 0 ${m(.08)},
|
|
60
|
-
-3px 0 6px -4px ${m(.12)},
|
|
61
|
-
-9px 0 28px 8px ${m(.05)}
|
|
62
|
-
`,boxShadowDrawerLeft:`
|
|
63
|
-
6px 0 16px 0 ${m(.08)},
|
|
64
|
-
3px 0 6px -4px ${m(.12)},
|
|
65
|
-
9px 0 28px 8px ${m(.05)}
|
|
66
|
-
`,boxShadowDrawerUp:`
|
|
67
|
-
0 6px 16px 0 ${m(.08)},
|
|
68
|
-
0 3px 6px -4px ${m(.12)},
|
|
69
|
-
0 9px 28px 8px ${m(.05)}
|
|
70
|
-
`,boxShadowDrawerDown:`
|
|
71
|
-
0 -6px 16px 0 ${m(.08)},
|
|
72
|
-
0 -3px 6px -4px ${m(.12)},
|
|
73
|
-
0 -9px 28px 8px ${m(.05)}
|
|
74
|
-
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${m(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${m(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${m(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${m(.08)}`,...o}}const VN={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},H8={motionBase:!0,motionUnit:!0},F8={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},qN=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:s,...i}=t;let u={...o,override:s};return u=D8(u),i&&Object.entries(i).forEach(([m,h])=>{const{theme:p,...g}=h;let b=g;p&&(b=qN({...u,...g},{override:g},p)),u[m]=b}),u};function xo(){const{token:e,hashed:t,theme:n,override:o,cssVar:s,zeroRuntime:i}=ue.useContext(kN),{csp:u,getPrefixCls:m}=ue.useContext(vt),h={prefix:s?.prefix??m(),key:s?.key??"css-var-root"},p=`${w8}-${t||""}`,g=n||FN,[b,y,S]=zO(g,[Ac,e],{salt:p,override:o,getComputedToken:qN,cssVar:{...h,unitless:VN,ignore:H8,preserve:F8},nonce:u?.nonce});return[g,S,t?y:"",b,h,!!i]}const Mo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ln=(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}),Nm=()=>({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"}}),k8=new Ft("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),ks=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sl=(e,t)=>({outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),qo=(e,t)=>({"&:focus-visible":sl(e,t)}),V8=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},...qo(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),q8=(e,t,n,o)=>{const s=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:s,u={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let m={};return o!==!1&&(m={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...m,...u,[s]:u}}},WN=e=>({[`.${e}`]:{...Nm(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:k8,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),{genStyleHooks:an,genComponentStyleHook:W8,genSubStyleComponent:Xs}=C8({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(vt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,s,i]=xo();return{theme:e,realToken:t,hashId:n,token:o,cssVar:s,zeroRuntime:i}},useCSP:()=>{const{csp:e}=c.useContext(vt);return e??{}},getResetStyles:(e,t)=>{const n=V8(e);return[n,{"&":n},WN(t?.prefix.iconPrefixCls??Cm)]},getCommonStyle:q8,getCompUnitless:()=>VN}),on=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[i=>`${n}${i}`,(i,u)=>u?`var(${n}${i}, ${u})`:`var(${n}${i})`]};function jm(e,t){return ba.reduce((n,o)=>{const s=e[`${o}1`],i=e[`${o}3`],u=e[`${o}6`],m=e[`${o}7`];return{...n,...t(o,{lightColor:s,lightBorderColor:i,darkColor:u,textColor:m})}},{})}const U8=(e,t)=>(xo(),bb({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>WN(e)));var yd={},M$;function G8(){if(M$)return yd;M$=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:"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 yd.default=e,yd}var X8=G8();const K8=jt(X8),Y0=c.createContext({}),T$="data-rc-order",O$="data-rc-priority",Y8="rc-util-key",Ib=new Map;function UN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Q8(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function GN({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Y8}function Q0(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Z8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Z0(e){return Array.from((Ib.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function XN(e,t={}){if(!UN())return null;const{csp:n,prepend:o,priority:s=0}=t,i=Z8(o),u=i==="prependQueue",m=document.createElement("style");m.setAttribute(T$,i),u&&s&&m.setAttribute(O$,`${s}`),n?.nonce&&(m.nonce=n.nonce),m.innerHTML=e;const h=Q0(t),{firstChild:p}=h;if(o){if(u){const g=(t.styles||Z0(h)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(T$)))return!1;const y=Number(b.getAttribute(O$)||0);return s>=y});if(g.length)return h.insertBefore(m,g[g.length-1].nextSibling),m}h.insertBefore(m,p)}else h.appendChild(m);return m}function J8(e,t={}){let{styles:n}=t;return n||=Z0(Q0(t)),n.find(o=>o.getAttribute(GN(t))===e)}function e5(e,t){const n=Ib.get(e);if(!n||!Q8(document,n)){const o=XN("",t);if(!o)return;const{parentNode:s}=o;Ib.set(e,s),e.removeChild(o)}}function t5(e,t,n={}){if(!UN())return null;const o=Q0(n),s=Z0(o),i={...n,styles:s};e5(o,i);const u=J8(t,i);if(u)return i.csp?.nonce&&u.nonce!==i.csp.nonce&&(u.nonce=i.csp.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;const m=XN(e,i);return m?.setAttribute(GN(i),t),m}function n5(e){return e?.getRootNode?.()}function r5(e){const t=n5(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const z$={};function o5(e,t){e||z$[t]||(z$[t]=!0)}function a5(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function s5(e,t){o5(e,`[@ant-design/icons] ${t}`)}function A$(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function I$(e={}){return Object.keys(e).reduce((t,n)=>{const o=e[n];return n==="class"?(t.className=o,delete t.class):(delete t[n],t[a5(n)]=o),t},{})}function Pb(e,t,n){return n?ue.createElement(e.tag,{key:t,...I$(e.attrs),...n},(e.children||[]).map((o,s)=>Pb(o,`${t}-${e.tag}-${s}`))):ue.createElement(e.tag,{key:t,...I$(e.attrs)},(e.children||[]).map((o,s)=>Pb(o,`${t}-${e.tag}-${s}`)))}const i5=`
|
|
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
|
-
`,l5=e=>{const{csp:t,prefixCls:n,layer:o,zeroRuntime:s}=c.useContext(Y0);let i=i5;n&&(i=i.replace(/anticon/g,n)),o&&(i=`@layer ${o} {
|
|
129
|
-
${i}
|
|
130
|
-
}`),c.useEffect(()=>{if(s)return;const u=e.current,m=r5(u);t5(i,"@ant-design-icons",{prepend:!o,csp:t,attachTo:m})},[])},KN=e=>{const{icon:t,className:n,onClick:o,style:s,primaryColor:i,secondaryColor:u,...m}=e,h=c.useRef(null);if(l5(h),s5(A$(t),`icon should be icon definiton, but got ${t}`),!A$(t))return null;const p=t;return Pb(p.icon,`svg-${p.name}`,{className:n,onClick:o,style:s,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...m,ref:h})};KN.displayName="IconReact";function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Lb.apply(this,arguments)}const It=c.forwardRef((e,t)=>{const{className:n,icon:o,spin:s,rotate:i,tabIndex:u,onClick:m,twoToneColor:h,...p}=e,{prefixCls:g="anticon",rootClassName:b}=c.useContext(Y0),y=K(b,g,{[`${g}-${o.name}`]:!!o.name,[`${g}-spin`]:!!s||o.name==="loading"},n);let S=u;S===void 0&&m&&(S=-1);const $=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0;return c.createElement("span",Lb({role:"img","aria-label":o.name},p,{ref:t,tabIndex:S,onClick:m,className:y}),c.createElement(KN,{icon:o,style:$}))});function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_b.apply(this,arguments)}const c5=(e,t)=>c.createElement(It,_b({},e,{ref:t,icon:K8})),il=c.forwardRef(c5);var xd={},P$;function u5(){if(P$)return xd;P$=1,Object.defineProperty(xd,"__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 xd.default=e,xd}var d5=u5();const f5=jt(d5);function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Bb.apply(this,arguments)}const m5=(e,t)=>c.createElement(It,Bb({},e,{ref:t,icon:f5})),is=c.forwardRef(m5);var Sd={},L$;function p5(){if(L$)return Sd;L$=1,Object.defineProperty(Sd,"__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 Sd.default=e,Sd}var h5=p5();const g5=jt(h5);function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Db.apply(this,arguments)}const b5=(e,t)=>c.createElement(It,Db({},e,{ref:t,icon:g5})),zo=c.forwardRef(b5);var Cd={},_$;function v5(){if(_$)return Cd;_$=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:"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 Cd.default=e,Cd}var y5=v5();const x5=jt(y5);function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Hb.apply(this,arguments)}const S5=(e,t)=>c.createElement(It,Hb({},e,{ref:t,icon:x5})),Kc=c.forwardRef(S5);var $d={},B$;function C5(){if(B$)return $d;B$=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:"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 $d.default=e,$d}var $5=C5();const w5=jt($5);function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fb.apply(this,arguments)}const E5=(e,t)=>c.createElement(It,Fb({},e,{ref:t,icon:w5})),Rm=c.forwardRef(E5),YN=c.createContext({}),N5=e=>{const{children:t,...n}=e,o=c.useMemo(()=>({motion:n.motion}),[n.motion]);return c.createElement(YN.Provider,{value:o},t)},Bo="none",wd="appear",Ed="enter",Nd="leave",D$="none",No="prepare",Ms="start",Ts="active",J0="end",QN="prepared";function H$(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function j5(e,t){const n={animationend:H$("Animation","AnimationEnd"),transitionend:H$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const R5=j5(to(),typeof window<"u"?window:{});let ZN={};to()&&({style:ZN}=document.createElement("div"));const jd={};function JN(e){if(jd[e])return jd[e];const t=R5[e];if(t){const n=Object.keys(t),o=n.length;for(let s=0;s<o;s+=1){const i=n[s];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ZN)return jd[e]=t[i],jd[e]}}return""}const ej=JN("animationend"),tj=JN("transitionend"),M5=!!(ej&&tj),F$=ej||"animationend",k$=tj||"transitionend";function V$(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,o=>o[1].toUpperCase());return e[n]}return`${e}-${t}`}const T5=(e=>{const t=c.useRef();function n(s){s&&(s.removeEventListener(k$,e),s.removeEventListener(F$,e))}function o(s){t.current&&t.current!==s&&n(t.current),s&&s!==t.current&&(s.addEventListener(k$,e),s.addEventListener(F$,e),t.current=s)}return c.useEffect(()=>()=>{n(t.current),t.current=null},[]),[o,n]}),nj=to()?c.useLayoutEffect:c.useEffect,O5=(()=>{const e=c.useRef(null);function t(){nn.cancel(e.current)}function n(o,s=2){t();const i=nn(()=>{s<=1?o({isCanceled:()=>i!==e.current}):n(o,s-1)});e.current=i}return c.useEffect(()=>()=>{t()},[]),[n,t]}),z5=[No,Ms,Ts,J0],A5=[No,QN],rj=!1,I5=!0;function oj(e){return e===Ts||e===J0}const P5=((e,t,n)=>{const[o,s]=_0(D$),[i,u]=O5();function m(){s(No,!0)}const h=t?A5:z5;return nj(()=>{if(o!==D$&&o!==J0){const p=h.indexOf(o),g=h[p+1],b=n(o);b===rj?s(g,!0):g&&i(y=>{function S(){y.isCanceled()||s(g,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),c.useEffect(()=>()=>{u()},[]),[m,o]});function L5(e,t,n,{motionEnter:o=!0,motionAppear:s=!0,motionLeave:i=!0,motionDeadline:u,motionLeaveImmediately:m,onAppearPrepare:h,onEnterPrepare:p,onLeavePrepare:g,onAppearStart:b,onEnterStart:y,onLeaveStart:S,onAppearActive:$,onEnterActive:C,onLeaveActive:j,onAppearEnd:w,onEnterEnd:R,onLeaveEnd:E,onVisibleChanged:N}){const[M,T]=c.useState(),[O,P]=pT(Bo),[_,L]=c.useState([null,null]),A=O(),B=c.useRef(!1),V=c.useRef(null);function Z(){return n()}const W=c.useRef(!1);function H(){P(Bo),L([null,null])}const q=wt(ae=>{const se=O();if(se===Bo)return;const ie=Z();if(ae&&!ae.deadline&&ae.target!==ie)return;const fe=W.current;let oe;se===wd&&fe?oe=w?.(ie,ae):se===Ed&&fe?oe=R?.(ie,ae):se===Nd&&fe&&(oe=E?.(ie,ae)),fe&&oe!==!1&&H()}),[U]=T5(q),J=ae=>{switch(ae){case wd:return{[No]:h,[Ms]:b,[Ts]:$};case Ed:return{[No]:p,[Ms]:y,[Ts]:C};case Nd:return{[No]:g,[Ms]:S,[Ts]:j};default:return{}}},k=c.useMemo(()=>J(A),[A]),[I,D]=P5(A,!e,ae=>{if(ae===No){const se=k[No];return se?se(Z()):rj}return ae in k&&L([k[ae]?.(Z(),null)||null,ae]),ae===Ts&&A!==Bo&&(U(Z()),u>0&&(clearTimeout(V.current),V.current=setTimeout(()=>{q({deadline:!0})},u))),ae===QN&&H(),I5}),Y=oj(D);W.current=Y;const G=c.useRef(null);nj(()=>{if(B.current&&G.current===t)return;T(t);const ae=B.current;B.current=!0;let se;!ae&&t&&s&&(se=wd),ae&&t&&o&&(se=Ed),(ae&&!t&&i||!ae&&m&&!t&&i)&&(se=Nd);const ie=J(se);se&&(e||ie[No])?(P(se),I()):P(Bo),G.current=t},[t]),c.useEffect(()=>{(A===wd&&!s||A===Ed&&!o||A===Nd&&!i)&&P(Bo)},[s,o,i]),c.useEffect(()=>()=>{B.current=!1,clearTimeout(V.current)},[]);const X=c.useRef(!1);c.useEffect(()=>{M&&(X.current=!0),M!==void 0&&A===Bo&&((X.current||M)&&N?.(M),X.current=!0)},[M,A]);let ee=_[0];k[No]&&D===Ms&&(ee={transition:"none",...ee});const Q=_[1];return[O,D,ee,M??t,!B.current&&A===Bo&&e&&s?"NONE":D===Ms||D===Ts?Q===D:!0]}function aj(e){return e?.length<2}function _5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(s,i){return!!(s.motionName&&t&&i!==!1)}const o=c.forwardRef((s,i)=>{const{visible:u=!0,removeOnLeave:m=!0,forceRender:h,children:p,motionName:g,leavedClassName:b,eventProps:y}=s,{motion:S}=c.useContext(YN),$=n(s,S),C=c.useRef();function j(){return ns(C.current)}const[w,R,E,N,M]=L5($,u,j,s),T=w(),O=c.useRef(N);N&&(O.current=!0);const P=c.useMemo(()=>{const A={};return Object.defineProperties(A,{nativeElement:{enumerable:!0,get:j},inMotion:{enumerable:!0,get:()=>()=>w()!==Bo},enableMotion:{enumerable:!0,get:()=>()=>$}}),A},[]);c.useImperativeHandle(i,()=>P,[]);const _=c.useRef(0);M&&(_.current+=1);const L=c.useMemo(()=>{if(M==="NONE")return null;let A;const B={...y,visible:u};if(!p)A=null;else if(T===Bo)N?A=p({...B},C):!m&&O.current&&b?A=p({...B,className:b},C):h||!m&&!b?A=p({...B,style:{display:"none"}},C):A=null;else{let V;R===No?V="prepare":oj(R)?V="active":R===Ms&&(V="start");const Z=V$(g,`${T}-${V}`);A=p({...B,className:K(V$(g,T),{[Z]:Z&&V,[g]:typeof g=="string"}),style:E},C)}return A},[_.current]);if(aj(p)&&CT(L)){const A=ss(L);if(A!==C)return c.cloneElement(L,{ref:Er(A,C)})}return L});return o.displayName="CSSMotion",o}const wr=_5(M5),kb="add",Vb="keep",qb="remove",bg="removed";function B5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Wb(e=[]){return e.map(B5)}function D5(e=[],t=[]){let n=[],o=0;const s=t.length,i=Wb(e),u=Wb(t);i.forEach(p=>{let g=!1;for(let b=o;b<s;b+=1){const y=u[b];if(y.key===p.key){o<b&&(n=n.concat(u.slice(o,b).map(S=>({...S,status:kb}))),o=b),n.push({...y,status:Vb}),o+=1,g=!0;break}}g||n.push({...p,status:qb})}),o<s&&(n=n.concat(u.slice(o).map(p=>({...p,status:kb}))));const m={};return n.forEach(({key:p})=>{m[p]=(m[p]||0)+1}),Object.keys(m).filter(p=>m[p]>1).forEach(p=>{n=n.filter(({key:g,status:b})=>g!==p||b!==qb),n.forEach(g=>{g.key===p&&(g.status=Vb)})}),n}function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ub.apply(this,arguments)}const H5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function F5(e,t=wr){class n extends c.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:s},{keyEntities:i}){const u=Wb(s);return{keyEntities:D5(i,u).filter(h=>{const p=i.find(({key:g})=>h.key===g);return!(p&&p.status===bg&&h.status===qb)})}}removeKey=s=>{this.setState(i=>({keyEntities:i.keyEntities.map(m=>m.key!==s?m:{...m,status:bg})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:m})=>m!==bg).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:s}=this.state,{component:i,children:u,onVisibleChanged:m,onAllRemoved:h,...p}=this.props,g=i||c.Fragment,b={};return H5.forEach(y=>{b[y]=p[y],delete p[y]}),delete p.keys,c.createElement(g,p,s.map(({status:y,...S},$)=>{const C=y===kb||y===Vb;return c.createElement(t,Ub({},b,{key:S.key,visible:C,eventProps:S,onVisibleChanged:j=>{m?.(j,{key:S.key}),j||this.removeKey(S.key)}}),aj(u)?j=>u({...j,index:$}):(j,w)=>u({...j,index:$},w))}))}}return n}const sj=F5(),Un=e=>e!=null,ar=e=>Un(e)&&e!==!1&&e!=="",$r=e=>typeof e=="number"&&!Number.isNaN(e),Vo=e=>typeof e=="string",Ot=e=>e!==null&&typeof e=="object",Ht=e=>typeof e=="function",vg=e=>Un(e)&&Ht(e.then),ij=e=>Ot(e)&&"propertyName"in e&&Vo(e.propertyName),Gb=(e,t)=>{const n={...e};return Object.keys(t).forEach(o=>{t[o]._default?n[o]||(n[o]={}):n[o]=Gb(n[o],t[o])}),n},lj=(e={},...t)=>t.filter(n=>!!n).reduce((n,o)=>(Object.keys(o).forEach(s=>{const i=e[s],u=o[s];if(i)if(Ot(u))n[s]=lj(i,n[s],u);else{const{_default:m}=i;m&&(n[s]=n[s]||{},n[s][m]=K(n[s][m],u))}else n[s]=K(n[s],u)}),n),{}),k5=(e,...t)=>c.useMemo(()=>lj.apply(void 0,[e].concat(t)),[e].concat(t)),V5=(...e)=>e.filter(t=>!!t).reduce((t,n={})=>(Object.keys(n).forEach(o=>{t[o]={...t[o],...n[o]}}),t),{}),q5=(...e)=>c.useMemo(()=>V5.apply(void 0,e),[].concat(e)),dn=e=>c.useMemo(()=>e?{root:e}:void 0,[e]),el=(e,t)=>Ht(e)?e(t):e,sn=(e,t,n,o)=>{const s=e.map(h=>h?el(h,n):void 0),i=t.map(h=>h?el(h,n):void 0),u=k5.apply(void 0,[o].concat(Rn(s))),m=q5.apply(void 0,Rn(i));return c.useMemo(()=>o?[Gb(u,o),Gb(m,o)]:[u,m],[u,m,o])},Rd=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),W5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:s,fontSize:i,fontSizeLG:u,lineHeight:m,borderRadiusLG:h,motionEaseInOutCirc:p,withDescriptionIconSize:g,colorText:b,colorTextHeading:y,withDescriptionPadding:S,defaultPadding:$,lineWidth:C,lineType:j,colorSuccessBorder:w,colorWarningBorder:R,colorErrorBorder:E,colorInfoBorder:N}=e;return{[t]:{...Ln(e),position:"relative",display:"flex",alignItems:"center",padding:$,wordWrap:"break-word",borderRadius:h,borderWidth:le(C),borderStyle:j,[`&${t}-success`]:{borderColor:w},[`&${t}-info`]:{borderColor:N},[`&${t}-warning`]:{borderColor:R},[`&${t}-error`]:{borderColor:E},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:m},"&-title":{color:y},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(M=>`${M} ${n} ${p}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:S,[`${t}-icon`]:{marginInlineEnd:s,fontSize:g,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:o,color:y,fontSize:u},[`${t}-description`]:{display:"block",color:b}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},U5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBg:o,colorWarning:s,colorWarningBg:i,colorError:u,colorErrorBg:m,colorInfo:h,colorInfoBg:p}=e;return{[t]:{"&-success":Rd(o,n,t),"&-info":Rd(p,h,t),"&-warning":Rd(i,s,t),"&-error":{...Rd(m,u,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},G5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:s,fontSizeIcon:i,colorIcon:u,colorIconHover:m}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:s},[`${t}-close-icon`]:{marginInlineStart:s,padding:0,overflow:"hidden",fontSize:i,lineHeight:le(i),backgroundColor:"transparent",border:"none",cursor:"pointer",...qo(e),[`${n}-close`]:{color:u,transition:`color ${o}`,"&:hover":{color:m}}},"&-close-text":{color:u,transition:`color ${o}`,"&:hover":{color:m}}}}},X5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),K5=an("Alert",e=>[W5(e),U5(e),G5(e)],X5),Y5=e=>{const{icon:t,type:n,className:o,style:s,successIcon:i,infoIcon:u,warningIcon:m,errorIcon:h}=e,p={success:i??c.createElement(il,null),info:u??c.createElement(Rm,null),error:h??c.createElement(is,null),warning:m??c.createElement(Kc,null)};return c.createElement("span",{className:o,style:s},t??p[n])},Q5=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:s,ariaProps:i,className:u,style:m}=e,h=o===!0||o===void 0?c.createElement(zo,null):o;return t?c.createElement("button",{type:"button",onClick:s,className:K(`${n}-close-icon`,u),tabIndex:0,style:m,...i},h):null},cj=c.forwardRef((e,t)=>{const{description:n,prefixCls:o,message:s,title:i,banner:u,className:m,rootClassName:h,style:p,onMouseEnter:g,onMouseLeave:b,onClick:y,afterClose:S,showIcon:$,closable:C,closeText:j,closeIcon:w,action:R,id:E,styles:N,classNames:M,...T}=e,O=i??s,[P,_]=c.useState(!1),L=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:L.current}));const{getPrefixCls:A,direction:B,variant:V,closable:Z,closeIcon:W,className:H,style:q,classNames:U,styles:J,successIcon:k,infoIcon:I,warningIcon:D,errorIcon:Y}=en("alert"),G=A("alert",o),[X,ee]=K5(G),{onClose:Q,afterClose:ae}=Ot(C)?C:{},se=Pe=>{_(!0),(Q??e.onClose)?.(Pe)},ie=c.useMemo(()=>e.type!==void 0?e.type:u?"warning":"info",[e.type,u]),fe=e.variant??V??"outlined",oe=c.useMemo(()=>Ot(C)&&C.closeIcon||j?!0:typeof C=="boolean"?C:w!==!1&&Un(w)?!0:!!Z,[j,w,C,Z]),re=u&&$===void 0?!0:$,pe={...e,prefixCls:G,variant:fe,type:ie,showIcon:re,closable:oe},ve=dn(q),Ce=dn(p),[he,te]=sn([U,M],[J,ve,N,Ce],{props:pe}),Se=K(G,`${G}-${ie}`,`${G}-${fe}`,{[`${G}-with-description`]:!!n,[`${G}-no-icon`]:!re,[`${G}-banner`]:!!u,[`${G}-rtl`]:B==="rtl"},H,m,h,he.root,ee,X),Te=br(T,{aria:!0,data:!0}),Ee=c.useMemo(()=>Ot(C)&&C.closeIcon?C.closeIcon:j||(w!==void 0?w:Ot(Z)&&Z.closeIcon?Z.closeIcon:W),[w,C,Z,j,W]),Le=c.useMemo(()=>{const Pe=C??Z;return Ot(Pe)?br(Pe,{data:!0,aria:!0}):{}},[C,Z]);return c.createElement(wr,{visible:!P,motionName:`${G}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Pe=>({maxHeight:Pe.offsetHeight}),onLeaveEnd:ae??S},({className:Pe,style:ye},Ie)=>c.createElement("div",{id:E,ref:Er(L,Ie),"data-show":!P,className:K(Se,Pe),style:{...te.root,...ye},onMouseEnter:g,onMouseLeave:b,onClick:y,role:"alert",...Te},re?c.createElement(Y5,{className:K(`${G}-icon`,he.icon),style:te.icon,description:n,icon:e.icon,prefixCls:G,type:ie,successIcon:k,infoIcon:I,warningIcon:D,errorIcon:Y}):null,c.createElement("div",{className:K(`${G}-section`,he.section),style:te.section},O?c.createElement("div",{className:K(`${G}-title`,he.title),style:te.title},O):null,n?c.createElement("div",{className:K(`${G}-description`,he.description),style:te.description},n):null),R?c.createElement("div",{className:K(`${G}-actions`,he.actions),style:te.actions},R):null,c.createElement(Q5,{className:he.close,style:te.close,isClosable:oe,prefixCls:G,closeIcon:Ee,handleClose:se,ariaProps:Le})))});function Z5(e,t,n){return t=Ji(t),IN(e,K0()?Reflect.construct(t,n||[],Ji(e).constructor):t.apply(e,n))}let J5=(function(e){function t(){var n;return Gc(this,t),n=Z5(this,t,arguments),n.state={error:void 0,info:{}},n}return AN(t,e),Xc(t,[{key:"componentDidCatch",value:function(o,s){this.setState({error:o,info:s})}},{key:"render",value:function(){const{message:o,title:s,description:i,id:u,children:m}=this.props,{error:h,info:p}=this.state,g=s??o,b=p?.componentStack||null,y=Un(g)?g:h?.toString(),S=Un(i)?i:b;return h?c.createElement(cj,{id:u,type:"error",title:y,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},S)}):m}}])})(c.PureComponent);const To=cj;To.ErrorBoundary=J5;const q$=e=>typeof e=="object"&&e!=null&&e.nodeType===1,W$=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Md=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return W$(n.overflowY,t)||W$(n.overflowX,t)||(o=>{const s=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(o);return!!s&&(s.clientHeight<o.scrollHeight||s.clientWidth<o.scrollWidth)})(e)}return!1},Td=(e,t,n,o,s,i,u,m)=>i<e&&u>t||i>e&&u<t?0:i<=e&&m<=n||u>=t&&m>=n?i-e-o:u>t&&m<n||i<e&&m>n?u-t+s:0,ez=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},U$=(e,t)=>{var n,o,s,i;if(typeof document>"u")return[];const{scrollMode:u,block:m,inline:h,boundary:p,skipOverflowHiddenElements:g}=t,b=typeof p=="function"?p:H=>H!==p;if(!q$(e))throw new TypeError("Invalid target");const y=document.scrollingElement||document.documentElement,S=[];let $=e;for(;q$($)&&b($);){if($=ez($),$===y){S.push($);break}$!=null&&$===document.body&&Md($)&&!Md(document.documentElement)||$!=null&&Md($,g)&&S.push($)}const C=(o=(n=window.visualViewport)==null?void 0:n.width)!=null?o:innerWidth,j=(i=(s=window.visualViewport)==null?void 0:s.height)!=null?i:innerHeight,{scrollX:w,scrollY:R}=window,{height:E,width:N,top:M,right:T,bottom:O,left:P}=e.getBoundingClientRect(),{top:_,right:L,bottom:A,left:B}=(H=>{const q=window.getComputedStyle(H);return{top:parseFloat(q.scrollMarginTop)||0,right:parseFloat(q.scrollMarginRight)||0,bottom:parseFloat(q.scrollMarginBottom)||0,left:parseFloat(q.scrollMarginLeft)||0}})(e);let V=m==="start"||m==="nearest"?M-_:m==="end"?O+A:M+E/2-_+A,Z=h==="center"?P+N/2-B+L:h==="end"?T+L:P-B;const W=[];for(let H=0;H<S.length;H++){const q=S[H],{height:U,width:J,top:k,right:I,bottom:D,left:Y}=q.getBoundingClientRect();if(u==="if-needed"&&M>=0&&P>=0&&O<=j&&T<=C&&(q===y&&!Md(q)||M>=k&&O<=D&&P>=Y&&T<=I))return W;const G=getComputedStyle(q),X=parseInt(G.borderLeftWidth,10),ee=parseInt(G.borderTopWidth,10),Q=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10);let se=0,ie=0;const fe="offsetWidth"in q?q.offsetWidth-q.clientWidth-X-Q:0,oe="offsetHeight"in q?q.offsetHeight-q.clientHeight-ee-ae:0,re="offsetWidth"in q?q.offsetWidth===0?0:J/q.offsetWidth:0,pe="offsetHeight"in q?q.offsetHeight===0?0:U/q.offsetHeight:0;if(y===q)se=m==="start"?V:m==="end"?V-j:m==="nearest"?Td(R,R+j,j,ee,ae,R+V,R+V+E,E):V-j/2,ie=h==="start"?Z:h==="center"?Z-C/2:h==="end"?Z-C:Td(w,w+C,C,X,Q,w+Z,w+Z+N,N),se=Math.max(0,se+R),ie=Math.max(0,ie+w);else{se=m==="start"?V-k-ee:m==="end"?V-D+ae+oe:m==="nearest"?Td(k,D,U,ee,ae+oe,V,V+E,E):V-(k+U/2)+oe/2,ie=h==="start"?Z-Y-X:h==="center"?Z-(Y+J/2)+fe/2:h==="end"?Z-I+Q+fe:Td(Y,I,J,X,Q+fe,Z,Z+N,N);const{scrollLeft:ve,scrollTop:Ce}=q;se=pe===0?0:Math.max(0,Math.min(Ce+se/pe,q.scrollHeight-U/pe+oe)),ie=re===0?0:Math.max(0,Math.min(ve+ie/re,q.scrollWidth-J/re+fe)),V+=Ce-se,Z+=ve-ie}W.push({el:q,top:se,left:ie})}return W},tz=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function nz(e,t){if(!e.isConnected||!(s=>{let i=s;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(s=>{const i=window.getComputedStyle(s);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((s=>typeof s=="object"&&typeof s.behavior=="function")(t))return t.behavior(U$(e,t));const o=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:s,top:i,left:u}of U$(e,tz(t))){const m=i-n.top+n.bottom,h=u-n.left+n.right;s.scroll({top:m,left:h,behavior:o})}}const Rr=e=>`${e}-css-var`,uj=c.createContext(void 0),rz={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"},oz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},az={...oz,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"},dj={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},G$={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"],...az},timePickerLocale:{...dj}},Zr="${label} is not a valid ${type}",va={locale:"en",Pagination:rz,DatePicker:G$,TimePicker:dj,Calendar:G$,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:Zr,method:Zr,array:Zr,object:Zr,number:Zr,date:Zr,boolean:Zr,integer:Zr,float:Zr,regexp:Zr,email:Zr,url:Zr,hex:Zr},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 Pf={...va.Modal},Lf=[];const X$=()=>Lf.reduce((e,t)=>({...e,...t}),va.Modal);function sz(e){if(e){const t={...e};return Lf.push(t),Pf=X$(),()=>{Lf=Lf.filter(n=>n!==t),Pf=X$()}}Pf={...va.Modal}}function fj(){return Pf}const ey=c.createContext(void 0),Sa=(e,t)=>{const n=c.useContext(ey),o=c.useMemo(()=>{const i=t||va[e],u=n?.[e]??{};return{...Ht(i)?i():i,...u||{}}},[e,t,n]),s=c.useMemo(()=>{const i=n?.locale;return n?.exist&&!i?va.locale:i},[n]);return[o,s]},iz="internalMark",lz=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;c.useEffect(()=>sz(t?.Modal),[t]);const s=c.useMemo(()=>({...t,exist:!0}),[t]);return c.createElement(ey.Provider,{value:s},n)},mj=c.createContext(null);let cz=!1;function uz(e){return cz}const K$=[];function dz(e,t){const[n]=c.useState(()=>to()?document.createElement("div"):null),o=c.useRef(!1),s=c.useContext(mj),[i,u]=c.useState(K$),m=s||(o.current?void 0:g=>{u(b=>[g,...b])});function h(){n.parentElement||document.body.appendChild(n),o.current=!0}function p(){n.parentElement?.removeChild(n),o.current=!1}return xn(()=>(e?s?s(h):h():p(),p),[e]),xn(()=>{i.length&&(i.forEach(g=>g()),u(K$))},[i]),[n,m]}function fz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const mz=`rc-util-locker-${Date.now()}`;let Y$=0;function pz(e){const t=!!e,[n]=c.useState(()=>(Y$+=1,`${mz}_${Y$}`));xn(()=>{if(t){const o=zT(document.body).width,s=fz();Ls(`
|
|
131
|
-
html body {
|
|
132
|
-
overflow-y: hidden;
|
|
133
|
-
${s?`width: calc(100% - ${o}px);`:""}
|
|
134
|
-
}`,n)}else jc(n);return()=>{jc(n)}},[t,n])}let zs=[];const hz=200;let pj=0;const hj=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-pj<hz)return;const n=zs.length;for(let o=n-1;o>=0;o-=1)zs[o].onEsc({top:o===n-1,event:e})}},gj=()=>{pj=Date.now()};function gz(){window.addEventListener("keydown",hj),window.addEventListener("compositionend",gj)}function bz(){zs.length===0&&(window.removeEventListener("keydown",hj),window.removeEventListener("compositionend",gj))}function vz(e,t){const n=ya(),o=wt(t),s=()=>{zs.find(u=>u.id===n)||zs.push({id:n,onEsc:o})},i=()=>{zs=zs.filter(u=>u.id!==n)};c.useMemo(()=>{e?s():e||i()},[e]),c.useEffect(()=>{if(e)return s(),gz(),()=>{i(),bz()}},[e])}const Q$=e=>e===!1?!1:!to()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Yc=c.forwardRef((e,t)=>{const{open:n,autoLock:o,getContainer:s,debug:i,autoDestroy:u=!0,children:m,onEsc:h}=e,[p,g]=c.useState(n),b=p||n;c.useEffect(()=>{(u||n)&&g(n)},[n,u]);const[y,S]=c.useState(()=>Q$(s));c.useEffect(()=>{const M=Q$(s);S(()=>M??null)});const[$,C]=dz(b&&!y),j=y??$;pz(o&&n&&to()&&(j===$||j===document.body)),vz(n,h);let w=null;m&&Gs(m)&&t&&(w=ss(m));const R=xa(w,t);if(!b||!to()||y===void 0)return null;const E=j===!1||uz();let N=m;return t&&(N=c.cloneElement(m,{ref:R})),c.createElement(mj.Provider,{value:C},E?N:rs.createPortal(N,j))});function yz(e){const{prefixCls:t,align:n,arrow:o,arrowPos:s}=e,{className:i,content:u,style:m}=o||{},{x:h=0,y:p=0}=s,g=c.useRef(null);if(!n||!n.points)return null;const b={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],S=n.points[1],$=y[0],C=y[1],j=S[0],w=S[1];$===j||!["t","b"].includes($)?b.top=p:$==="t"?b.top=0:b.bottom=0,C===w||!["l","r"].includes(C)?b.left=h:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:g,className:K(`${t}-arrow`,i),style:{...b,...m}},u)}function Xb(){return Xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xb.apply(this,arguments)}function xz(e){const{prefixCls:t,open:n,zIndex:o,mask:s,motion:i,mobile:u}=e;return s?c.createElement(wr,Xb({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:m})=>c.createElement("div",{style:{zIndex:o},className:K(`${t}-mask`,u&&`${t}-mobile-mask`,m)})):null}const Sz=c.memo(({children:e})=>e,(e,t)=>t.cache);function bj(e,t,n,o,s,i,u,m){const h="auto",p=e?{}:{left:"-1000vw",top:"-1000vh",right:h,bottom:h};if(!e&&(t||!n)){const{points:g}=o,b=o.dynamicInset||o._experimental?.dynamicInset,y=b&&g[0][1]==="r",S=b&&g[0][0]==="b";y?(p.right=s,p.left=h):(p.left=u,p.right=h),S?(p.bottom=i,p.top=h):(p.top=m,p.bottom=h)}return p}function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kb.apply(this,arguments)}const vj=c.forwardRef((e,t)=>{const{onEsc:n,popup:o,className:s,prefixCls:i,style:u,target:m,onVisibleChanged:h,open:p,keepDom:g,fresh:b,onClick:y,mask:S,arrow:$,arrowPos:C,align:j,motion:w,maskMotion:R,mobile:E,forceRender:N,getPopupContainer:M,autoDestroy:T,portal:O,children:P,zIndex:_,onMouseEnter:L,onMouseLeave:A,onPointerEnter:B,onPointerDownCapture:V,ready:Z,offsetX:W,offsetY:H,offsetR:q,offsetB:U,onAlign:J,onPrepare:k,onResize:I,stretch:D,targetWidth:Y,targetHeight:G}=e,X=typeof o=="function"?o():o,ee=p||g,Q=!!E,[ae,se,ie]=c.useMemo(()=>E?[E.mask,E.maskMotion,E.motion]:[S,R,w],[E,S,R,w]),fe=M?.length>0,[oe,re]=c.useState(!M||!fe);xn(()=>{!oe&&fe&&m&&re(!0)},[oe,fe,m]);const pe=wt((he,te)=>{I?.(he,te),J()}),ve=bj(Q,Z,p,j,q,U,W,H);if(!oe)return null;const Ce={};return D&&(D.includes("height")&&G?Ce.height=G:D.includes("minHeight")&&G&&(Ce.minHeight=G),D.includes("width")&&Y?Ce.width=Y:D.includes("minWidth")&&Y&&(Ce.minWidth=Y)),p||(Ce.pointerEvents="none"),c.createElement(O,{open:N||ee,getContainer:M&&(()=>M(m)),autoDestroy:T,onEsc:n},c.createElement(xz,{prefixCls:i,open:p,zIndex:_,mask:ae,motion:se,mobile:Q}),c.createElement(ko,{onResize:pe,disabled:!p},he=>c.createElement(wr,Kb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:`${i}-hidden`},ie,{onAppearPrepare:k,onEnterPrepare:k,visible:p,onVisibleChanged:te=>{w?.onVisibleChanged?.(te),h(te)}}),({className:te,style:Se},Te)=>{const Ee=K(i,te,s,{[`${i}-mobile`]:Q});return c.createElement("div",{ref:Er(he,t,Te),className:Ee,style:{"--arrow-x":`${C.x||0}px`,"--arrow-y":`${C.y||0}px`,...ve,...Ce,...Se,boxSizing:"border-box",zIndex:_,...u},onMouseEnter:L,onMouseLeave:A,onPointerEnter:B,onClick:y,onPointerDownCapture:V},$&&c.createElement(yz,{prefixCls:i,arrow:$,arrowPos:C,align:j}),c.createElement(Sz,{cache:!p&&!b},X))})),P)}),Gf=c.createContext(null),yj=c.createContext(null);function Z$(e){return e?Array.isArray(e)?e:[e]:[]}function Cz(e,t,n){return c.useMemo(()=>{const o=Z$(t??e),s=Z$(n??e),i=new Set(o),u=new Set(s);return i.has("hover")&&!i.has("click")&&i.add("touch"),u.has("hover")&&!u.has("click")&&u.add("touch"),[i,u]},[e,t,n])}function $z(e=[],t=[],n){const o=(s,i)=>s[i]||"";return n?o(e,0)===o(t,0):o(e,0)===o(t,0)&&o(e,1)===o(t,1)}function xj(e,t,n,o){const{points:s}=n,i=Object.keys(e);for(let u=0;u<i.length;u+=1){const m=i[u];if($z(e[m]?.points,s,o))return`${t}-placement-${m}`}return""}function Qc(e){return e.ownerDocument.defaultView}function Yb(e){const t=[];let n=e?.parentElement;const o=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:s,overflowY:i,overflow:u}=Qc(n).getComputedStyle(n);[s,i,u].some(m=>o.includes(m))&&t.push(n),n=n.parentElement}return t}function Ic(e,t=1){return Number.isNaN(e)?t:e}function ic(e){return Ic(parseFloat(e),0)}function J$(e,t){const n={...e};return(t||[]).forEach(o=>{if(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)return;const{overflow:s,overflowClipMargin:i,borderTopWidth:u,borderBottomWidth:m,borderLeftWidth:h,borderRightWidth:p}=Qc(o).getComputedStyle(o),g=o.getBoundingClientRect(),{offsetHeight:b,clientHeight:y,offsetWidth:S,clientWidth:$}=o,C=ic(u),j=ic(m),w=ic(h),R=ic(p),E=Ic(Math.round(g.width/S*1e3)/1e3),N=Ic(Math.round(g.height/b*1e3)/1e3),M=(S-$-w-R)*E,T=(b-y-C-j)*N,O=C*N,P=j*N,_=w*E,L=R*E;let A=0,B=0;if(s==="clip"){const q=ic(i);A=q*E,B=q*N}const V=g.x+_-A,Z=g.y+O-B,W=V+g.width+2*A-_-L-M,H=Z+g.height+2*B-O-P-T;n.left=Math.max(n.left,V),n.top=Math.max(n.top,Z),n.right=Math.min(n.right,W),n.bottom=Math.min(n.bottom,H)}),n}function ew(e,t=0){const n=`${t}`,o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function tw(e,t){const[n,o]=t||[];return[ew(e.width,n),ew(e.height,o)]}function nw(e=""){return[e[0],e[1]]}function Ai(e,t){const n=t[0],o=t[1];let s,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,o==="l"?s=e.x:o==="r"?s=e.x+e.width:s=e.x+e.width/2,{x:s,y:i}}function Ga(e,t){const n={t:"b",b:"t",l:"r",r:"l"},o=[...e];return o[t]=n[e[t]]||"c",o}function rw(e){return e.join("")}function Sj(e,t,n,o,s,i,u,m){const[h,p]=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[o]||{}}),g=c.useRef(0),b=c.useMemo(()=>!t||m?[]:Yb(t),[t]),y=c.useRef({});e||(y.current={});const $=wt(()=>{if(t&&n&&e&&!m){let nt=function(St,_n,Tn=Ce){const nr=W.x+St,me=W.y+_n,Ne=nr+X,_e=me+G,rt=Math.max(nr,Tn.left),ot=Math.max(me,Tn.top),lt=Math.min(Ne,Tn.right),Et=Math.min(_e,Tn.bottom);return Math.max(0,(lt-rt)*(Et-ot))},Ve=function(){je=W.y+Je,Be=je+G,we=W.x+Oe,Fe=we+X};const w=t,R=w.ownerDocument,E=Qc(w),{position:N}=E.getComputedStyle(w),M=w.style.left,T=w.style.top,O=w.style.right,P=w.style.bottom,_=w.style.overflow,L=w.style.overflowX,A=w.style.overflowY,B={...s[o],...i},V=R.createElement("div");w.parentElement?.appendChild(V),V.style.left=`${w.offsetLeft}px`,V.style.top=`${w.offsetTop}px`,V.style.position=N,V.style.height=`${w.offsetHeight}px`,V.style.width=`${w.offsetWidth}px`,w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";let Z;if(Array.isArray(n))Z={x:n[0],y:n[1],width:0,height:0};else{const St=n.getBoundingClientRect();St.x=St.x??St.left,St.y=St.y??St.top,Z={x:St.x,y:St.y,width:St.width,height:St.height}}const W=w.getBoundingClientRect(),{height:H,width:q}=E.getComputedStyle(w);W.x=W.x??W.left,W.y=W.y??W.top;const{clientWidth:U,clientHeight:J,scrollWidth:k,scrollHeight:I,scrollTop:D,scrollLeft:Y}=R.documentElement,G=W.height,X=W.width,ee=Z.height,Q=Z.width,ae={left:0,top:0,right:U,bottom:J},se={left:-Y,top:-D,right:k-Y,bottom:I-D};let{htmlRegion:ie}=B;const fe="visible",oe="visibleFirst";ie!=="scroll"&&ie!==oe&&(ie=fe);const re=ie===oe,pe=J$(se,b),ve=J$(ae,b),Ce=ie===fe?ve:pe,he=re?ve:Ce;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";const te=w.getBoundingClientRect();w.style.left=M,w.style.top=T,w.style.right=O,w.style.bottom=P,w.style.overflow=_,w.style.overflowX=L,w.style.overflowY=A,w.parentElement?.removeChild(V);const Se=Ic(Math.round(X/parseFloat(q)*1e3)/1e3),Te=Ic(Math.round(G/parseFloat(H)*1e3)/1e3);if(Se===0||Te===0||Qi(n)&&!Sm(n))return;const{offset:Ee,targetOffset:Le}=B;let[Pe,ye]=tw(W,Ee);const[Ie,De]=tw(Z,Le);Z.x-=Ie,Z.y-=De;const[Me,qe]=B.points||[],tt=nw(qe),Xe=nw(Me),He=Ai(Z,tt),Ue=Ai(W,Xe),Qe={...B};let ke=[Xe,tt],Oe=He.x-Ue.x+Pe,Je=He.y-Ue.y+ye;const ut=nt(Oe,Je),Rt=nt(Oe,Je,ve),ht=Ai(Z,["t","l"]),Ut=Ai(W,["t","l"]),_t=Ai(Z,["b","r"]),Ct=Ai(W,["b","r"]),kt=B.overflow||{},{adjustX:Pt,adjustY:Vt,shiftX:Ze,shiftY:$t}=kt,We=St=>typeof St=="boolean"?St:St>=0;let je,Be,we,Fe;Ve();const Ye=We(Vt),dt=Xe[0]===tt[0];if(Ye&&Xe[0]==="t"&&(Be>he.bottom||y.current.bt)){let St=Je;dt?St-=G-ee:St=ht.y-Ct.y-ye;const _n=nt(Oe,St),Tn=nt(Oe,St,ve);_n>ut||_n===ut&&(!re||Tn>=Rt)?(y.current.bt=!0,Je=St,ye=-ye,ke=[Ga(ke[0],0),Ga(ke[1],0)]):y.current.bt=!1}if(Ye&&Xe[0]==="b"&&(je<he.top||y.current.tb)){let St=Je;dt?St+=G-ee:St=_t.y-Ut.y-ye;const _n=nt(Oe,St),Tn=nt(Oe,St,ve);_n>ut||_n===ut&&(!re||Tn>=Rt)?(y.current.tb=!0,Je=St,ye=-ye,ke=[Ga(ke[0],0),Ga(ke[1],0)]):y.current.tb=!1}const ln=We(Pt),et=Xe[1]===tt[1];if(ln&&Xe[1]==="l"&&(Fe>he.right||y.current.rl)){let St=Oe;et?St-=X-Q:St=ht.x-Ct.x-Pe;const _n=nt(St,Je),Tn=nt(St,Je,ve);_n>ut||_n===ut&&(!re||Tn>=Rt)?(y.current.rl=!0,Oe=St,Pe=-Pe,ke=[Ga(ke[0],1),Ga(ke[1],1)]):y.current.rl=!1}if(ln&&Xe[1]==="r"&&(we<he.left||y.current.lr)){let St=Oe;et?St+=X-Q:St=_t.x-Ut.x-Pe;const _n=nt(St,Je),Tn=nt(St,Je,ve);_n>ut||_n===ut&&(!re||Tn>=Rt)?(y.current.lr=!0,Oe=St,Pe=-Pe,ke=[Ga(ke[0],1),Ga(ke[1],1)]):y.current.lr=!1}Qe.points=[rw(ke[0]),rw(ke[1])],Ve();const gt=Ze===!0?0:Ze;typeof gt=="number"&&(we<ve.left&&(Oe-=we-ve.left-Pe,Z.x+Q<ve.left+gt&&(Oe+=Z.x-ve.left+Q-gt)),Fe>ve.right&&(Oe-=Fe-ve.right-Pe,Z.x>ve.right-gt&&(Oe+=Z.x-ve.right+gt)));const zt=$t===!0?0:$t;typeof zt=="number"&&(je<ve.top&&(Je-=je-ve.top-ye,Z.y+ee<ve.top+zt&&(Je+=Z.y-ve.top+ee-zt)),Be>ve.bottom&&(Je-=Be-ve.bottom-ye,Z.y>ve.bottom-zt&&(Je+=Z.y-ve.bottom+zt)));const fn=W.x+Oe,mt=fn+X,yt=W.y+Je,xt=yt+G,Ge=Z.x,it=Ge+Q,Bt=Z.y,Kt=Bt+ee,Mt=Math.max(fn,Ge),Yt=Math.min(mt,it),qt=(Mt+Yt)/2-fn,sr=Math.max(yt,Bt),So=Math.min(xt,Kt),ir=(sr+So)/2-yt;u?.(t,Qe);let qr=te.right-W.x-(Oe+W.width),lr=te.bottom-W.y-(Je+W.height);Se===1&&(Oe=Math.floor(Oe),qr=Math.floor(qr)),Te===1&&(Je=Math.floor(Je),lr=Math.floor(lr));const Zn={ready:!0,offsetX:Oe/Se,offsetY:Je/Te,offsetR:qr/Se,offsetB:lr/Te,arrowX:qt/Se,arrowY:ir/Te,scaleX:Se,scaleY:Te,align:Qe};p(Zn)}}),C=()=>{g.current+=1;const w=g.current;Promise.resolve().then(()=>{g.current===w&&$()})},j=()=>{p(w=>({...w,ready:!1}))};return xn(j,[o]),xn(()=>{e||j()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,C]}function Cj(){const e=c.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(o,s)=>{t(),s===0?o():e.current=setTimeout(()=>{o()},s*1e3)};return c.useEffect(()=>()=>{t()},[]),n}function wz(e,t,n,o,s){xn(()=>{if(e&&t&&n){let b=function(){o(),s()};const i=t,u=n,m=Yb(i),h=Yb(u),p=Qc(u),g=new Set([p,...m,...h]);return g.forEach(y=>{y.addEventListener("scroll",b,{passive:!0})}),p.addEventListener("resize",b,{passive:!0}),o(),()=>{g.forEach(y=>{y.removeEventListener("scroll",b),p.removeEventListener("resize",b)})}}},[e,t,n])}function Ez(e,t,n,o,s,i,u,m){const h=c.useRef(e);h.current=e;const p=c.useRef(!1);c.useEffect(()=>{if(t&&o&&(!s||i)){const b=()=>{p.current=!1},y=C=>{h.current&&!u(C.composedPath?.()?.[0]||C.target)&&!p.current&&m(!1)},S=Qc(o);S.addEventListener("pointerdown",b,!0),S.addEventListener("mousedown",y,!0),S.addEventListener("contextmenu",y,!0);const $=sb(n);return $&&($.addEventListener("mousedown",y,!0),$.addEventListener("contextmenu",y,!0)),()=>{S.removeEventListener("pointerdown",b,!0),S.removeEventListener("mousedown",y,!0),S.removeEventListener("contextmenu",y,!0),$&&($.removeEventListener("mousedown",y,!0),$.removeEventListener("contextmenu",y,!0))}}},[t,n,o,s,i]);function g(){p.current=!0}return g}function Nz(){const[e,t]=ue.useState(null),[n,o]=ue.useState(!1),[s,i]=ue.useState(!1),u=ue.useRef(null),m=wt(p=>{p===!1?(u.current=null,o(!1)):s&&n?u.current=p:(o(!0),t(p),u.current=null,n||i(!0))}),h=wt(p=>{p?(i(!1),u.current&&(t(u.current),u.current=null)):(i(!1),u.current=null)});return[m,n,e,h]}function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qb.apply(this,arguments)}const jz=e=>{const{prefixCls:t,isMobile:n,ready:o,open:s,align:i,offsetR:u,offsetB:m,offsetX:h,offsetY:p,arrowPos:g,popupSize:b,motion:y,uniqueContainerClassName:S,uniqueContainerStyle:$}=e,C=`${t}-unique-container`,[j,w]=ue.useState(!1),R=bj(n,o,s,i,u,m,h,p),E=ue.useRef(R);o&&(E.current=R);const N={};return b&&(N.width=b.width,N.height=b.height),ue.createElement(wr,Qb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${C}-hidden`},y,{visible:s,onVisibleChanged:M=>{w(M)}}),({className:M,style:T})=>{const O=K(C,M,S,{[`${C}-visible`]:j});return ue.createElement("div",{className:O,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...E.current,...N,...T,...$}})})},Rz=({children:e,postTriggerProps:t})=>{const[n,o,s,i]=Nz(),u=c.useMemo(()=>!s||!t?s:t(s),[s,t]),[m,h]=c.useState(null),[p,g]=c.useState(null),b=c.useRef(null),y=wt(U=>{b.current=U,Qi(U)&&m!==U&&h(U)}),S=c.useRef(null),$=Cj(),C=wt((U,J)=>{S.current=J,$(()=>{n(U)},U.delay)}),j=U=>{$(()=>{S.current?.()||n(!1)},U)},w=wt(U=>{i(U)}),[R,E,N,M,T,O,P,,,_,L]=Sj(o,m,u?.target,u?.popupPlacement,u?.builtinPlacements||{},u?.popupAlign,void 0,!1),A=c.useMemo(()=>{if(!u)return"";const U=xj(u.builtinPlacements||{},u.prefixCls||"",_,!1);return K(U,u.getPopupClassNameFromAlign?.(_))},[_,u?.getPopupClassNameFromAlign,u?.builtinPlacements,u?.prefixCls]),B=c.useMemo(()=>({show:C,hide:j}),[]);c.useEffect(()=>{L()},[u?.target]);const V=wt(()=>(L(),Promise.resolve())),Z=c.useRef({}),W=c.useContext(Gf),H=c.useMemo(()=>({registerSubPopup:(U,J)=>{Z.current[U]=J,W?.registerSubPopup(U,J)}}),[W]),q=u?.prefixCls;return c.createElement(yj.Provider,{value:B},e,u&&c.createElement(Gf.Provider,{value:H},c.createElement(vj,{ref:y,portal:Yc,onEsc:u.onEsc,prefixCls:q,popup:u.popup,className:K(u.popupClassName,A,`${q}-unique-controlled`),style:u.popupStyle,target:u.target,open:o,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:w,ready:R,offsetX:E,offsetY:N,offsetR:M,offsetB:T,onAlign:L,onPrepare:V,onResize:U=>g({width:U.offsetWidth,height:U.offsetHeight}),arrowPos:{x:O,y:P},align:_,zIndex:u.zIndex,mask:u.mask,arrow:u.arrow,motion:u.popupMotion,maskMotion:u.maskMotion,getPopupContainer:u.getPopupContainer},c.createElement(jz,{prefixCls:q,isMobile:!1,ready:R,open:o,align:_,offsetR:M,offsetB:T,offsetX:E,offsetY:N,arrowPos:{x:O,y:P},popupSize:p,motion:u.popupMotion,uniqueContainerClassName:K(u.uniqueContainerClassName,A),uniqueContainerStyle:u.uniqueContainerStyle}))))};function Mz(e=Yc){return c.forwardRef((n,o)=>{const{prefixCls:s="rc-trigger-popup",children:i,action:u="hover",showAction:m,hideAction:h,disabled:p=!1,popupVisible:g,defaultPopupVisible:b,onOpenChange:y,afterOpenChange:S,onPopupVisibleChange:$,afterPopupVisibleChange:C,mouseEnterDelay:j,mouseLeaveDelay:w=.1,focusDelay:R,blurDelay:E,mask:N,maskClosable:M=!0,getPopupContainer:T,forceRender:O,autoDestroy:P,popup:_,popupClassName:L,uniqueContainerClassName:A,uniqueContainerStyle:B,popupStyle:V,popupPlacement:Z,builtinPlacements:W={},popupAlign:H,zIndex:q,stretch:U,getPopupClassNameFromAlign:J,fresh:k,unique:I,alignPoint:D,onPopupClick:Y,onPopupAlign:G,arrow:X,popupMotion:ee,maskMotion:Q,mobile:ae,...se}=n,ie=P||!1,fe=g===void 0,oe=!!ae,re=c.useRef({}),pe=c.useContext(Gf),ve=c.useMemo(()=>({registerSubPopup:(Ke,Lt)=>{re.current[Ke]=Lt,pe?.registerSubPopup(Ke,Lt)}}),[pe]),Ce=c.useContext(yj),he=ya(),[te,Se]=c.useState(null),Te=c.useRef(null),Ee=wt(Ke=>{Te.current=Ke,Qi(Ke)&&te!==Ke&&Se(Ke),pe?.registerSubPopup(he,Ke)}),[Le,Pe]=c.useState(null),ye=c.useRef(null),Ie=wt(Ke=>{const Lt=ns(Ke);Qi(Lt)&&Le!==Lt&&(Pe(Lt),ye.current=Lt)}),De={},Me=wt(Ke=>{const Lt=Le;return Lt?.contains(Ke)||sb(Lt)?.host===Ke||Ke===Lt||te?.contains(Ke)||sb(te)?.host===Ke||Ke===te||Object.values(re.current).some(vr=>vr?.contains(Ke)||Ke===vr)}),qe=X?{...X!==!0?X:{}}:null,[tt,Xe]=hr(b||!1,g),He=tt||!1,Ue=He&&!p,Qe=c.useMemo(()=>{const Ke=typeof i=="function"?i({open:Ue}):i;return c.Children.only(Ke)},[i,Ue]),ke=Qe?.props||{},Oe=wt(()=>Ue),Je=wt((Ke=0)=>({popup:_,target:Le,delay:Ke,prefixCls:s,popupClassName:L,uniqueContainerClassName:A,uniqueContainerStyle:B,popupStyle:V,popupPlacement:Z,builtinPlacements:W,popupAlign:H,zIndex:q,mask:N,maskClosable:M,popupMotion:ee,maskMotion:Q,arrow:qe,getPopupContainer:T,getPopupClassNameFromAlign:J,id:he,onEsc:Ut}));xn(()=>{Ce&&I&&Le&&!fe&&!pe&&(Ue?Ce.show(Je(j),Oe):Ce.hide(w))},[Ue,Le]);const nt=c.useRef(Ue);nt.current=Ue;const ut=wt(Ke=>{rs.flushSync(()=>{He!==Ke&&(Xe(Ke),y?.(Ke),$?.(Ke))})}),Rt=Cj(),ht=(Ke,Lt=0)=>{if(g!==void 0){Rt(()=>{ut(Ke)},Lt);return}if(Ce&&I&&fe&&!pe){Ke?Ce.show(Je(Lt),Oe):Ce.hide(Lt);return}Rt(()=>{ut(Ke)},Lt)};function Ut({top:Ke}){Ke&&ht(!1)}const[_t,Ct]=c.useState(!1);xn(Ke=>{(!Ke||Ue)&&Ct(!0)},[Ue]);const[kt,Pt]=c.useState(null),[Vt,Ze]=c.useState(null),$t=Ke=>{Ze([Ke.clientX,Ke.clientY])},[We,je,Be,we,Fe,Ve,Ye,dt,ln,et,gt]=Sj(Ue,te,D&&Vt!==null?Vt:Le,Z,W,H,G,oe),[zt,fn]=Cz(u,m,h),mt=zt.has("click"),yt=fn.has("click")||fn.has("contextMenu"),xt=wt(()=>{_t||gt()});wz(Ue,Le,te,xt,()=>{nt.current&&D&&yt&&ht(!1)}),xn(()=>{xt()},[Vt,Z]),xn(()=>{Ue&&!W?.[Z]&&xt()},[JSON.stringify(H)]);const it=c.useMemo(()=>{const Ke=xj(W,s,et,D);return K(Ke,J?.(et))},[et,J,W,s,D]);c.useImperativeHandle(o,()=>({nativeElement:ye.current,popupElement:Te.current,forceAlign:xt}));const[Bt,Kt]=c.useState(0),[Mt,Yt]=c.useState(0),bn=()=>{if(U&&Le){const Ke=Le.getBoundingClientRect();Kt(Ke.width),Yt(Ke.height)}},qt=()=>{bn(),xt()},sr=Ke=>{Ct(!1),gt(),S?.(Ke),C?.(Ke)},So=()=>new Promise(Ke=>{bn(),Pt(()=>Ke)});xn(()=>{kt&&(gt(),kt(),Pt(null))},[kt]);function Nn(Ke,Lt,vr,oo,Ao){De[Ke]=(cs,...ao)=>{(!Ao||!Ao())&&(oo?.(cs),ht(Lt,vr)),ke[Ke]?.(cs,...ao)}}const ir=zt.has("touch"),qr=fn.has("touch"),lr=c.useRef(!1);(ir||qr)&&(De.onTouchStart=(...Ke)=>{lr.current=!0,nt.current&&qr?ht(!1):!nt.current&&ir&&ht(!0),ke.onTouchStart?.(...Ke)}),(mt||yt)&&(De.onClick=(Ke,...Lt)=>{nt.current&&yt?ht(!1):!nt.current&&mt&&($t(Ke),ht(!0)),ke.onClick?.(Ke,...Lt),lr.current=!1});const Zn=Ez(Ue,yt||qr,Le,te,N,M,Me,ht),St=zt.has("hover"),_n=fn.has("hover");let Tn,nr;const me=()=>lr.current;if(St){const Ke=Lt=>{$t(Lt)};Nn("onMouseEnter",!0,j,Ke,me),Nn("onPointerEnter",!0,j,Ke,me),Tn=Lt=>{(Ue||_t)&&te?.contains(Lt.target)&&ht(!0,j)},D&&(De.onMouseMove=Lt=>{ke.onMouseMove?.(Lt)})}_n&&(Nn("onMouseLeave",!1,w,void 0,me),Nn("onPointerLeave",!1,w,void 0,me),nr=()=>{ht(!1,w)}),zt.has("focus")&&Nn("onFocus",!0,R),fn.has("focus")&&Nn("onBlur",!1,E),zt.has("contextMenu")&&(De.onContextMenu=(Ke,...Lt)=>{nt.current&&fn.has("contextMenu")?ht(!1):($t(Ke),ht(!0)),Ke.preventDefault(),ke.onContextMenu?.(Ke,...Lt)});const Ne=c.useRef(!1);Ne.current||=O||Ue||_t;const _e={...ke,...De},rt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Ke=>{se[Ke]&&(rt[Ke]=(...Lt)=>{_e[Ke]?.(...Lt),se[Ke](...Lt)})});const lt={x:Ve,y:Ye};hN(Ue,Le,qt);const Et=xa(Ie,ss(Qe)),mn=c.cloneElement(Qe,{..._e,...rt,ref:Et});return c.createElement(c.Fragment,null,mn,Ne.current&&(!Ce||!I)&&c.createElement(Gf.Provider,{value:ve},c.createElement(vj,{portal:e,ref:Ee,prefixCls:s,popup:_,className:K(L,!oe&&it),style:V,target:Le,onMouseEnter:Tn,onMouseLeave:nr,onPointerEnter:Tn,zIndex:q,open:Ue,keepDom:_t,fresh:k,onClick:Y,onPointerDownCapture:Zn,mask:N,motion:ee,maskMotion:Q,onVisibleChanged:sr,onPrepare:So,forceRender:O,autoDestroy:ie,getPopupContainer:T,onEsc:Ut,align:et,arrow:qe,arrowPos:lt,ready:We,offsetX:je,offsetY:Be,offsetR:we,offsetB:Fe,onAlign:xt,stretch:U,targetWidth:Bt/dt,targetHeight:Mt/ln,mobile:ae})))})}const Mm=Mz(Yc);function $j(e){return e&&ue.isValidElement(e)&&e.type===ue.Fragment}const wj=(e,t,n)=>ue.isValidElement(e)?ue.cloneElement(e,Ht(n)?n(e.props||{}):n):t;function Vr(e,t){return wj(e,e,t)}const Tz=({children:e})=>{const{getPrefixCls:t}=ue.useContext(vt),n=t();return ue.isValidElement(e)?ue.createElement(wr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:o,className:s})=>Vr(e,i=>({className:K(i.className,s),style:{...i.style,...o}}))):e},Od=[null,null];function Oz(e){if(Od[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Od[0]=e,Od[1]=t}return Od[1]}const Ej=({children:e})=>{const t=n=>{const{id:o,builtinPlacements:s,popup:i}=n,u=Ht(i)?i():i,m=Oz(s);return{...n,getPopupContainer:null,arrow:!1,popup:ue.createElement(Tz,{key:o},u),builtinPlacements:m}};return ue.createElement(Rz,{postTriggerProps:t},e)},no=c.createContext(!1),ty=({children:e,disabled:t})=>{const n=c.useContext(no);return c.createElement(no.Provider,{value:t??n},e)},Vs=c.createContext(void 0),zz=({children:e,size:t})=>{const n=c.useContext(Vs);return c.createElement(Vs.Provider,{value:t||n},e)};function Az(){const e=c.useContext(no),t=c.useContext(Vs);return{componentDisabled:e,componentSize:t}}function Iz(e,t,n){const o=e||{},s=o.inherit===!1||!t?{...Ab,hashed:t?.hashed??Ab.hashed,cssVar:t?.cssVar}:t,i=c.useId();return Wc(()=>{if(!e)return t;const u={...s.components};Object.keys(e.components||{}).forEach(p=>{u[p]={...u[p],...e.components[p]}});const m=`css-var-${i.replace(/:/g,"")}`,h={prefix:n?.prefixCls,...s.cssVar,...o.cssVar,key:o.cssVar?.key||m};return{...s,...o,token:{...s.token,...o.token},components:u,cssVar:h}},[o,s,n?.prefixCls,i],(u,m)=>u.some((h,p)=>{const g=m[p];return!Rc(h,g,!0)}))}const ow=c.createContext(!0);function Pz(e){const t=c.useContext(ow),{children:n}=e,[,o]=xo(),{motion:s}=o,i=c.useRef(!1);return i.current||(i.current=t!==s),i.current?c.createElement(ow.Provider,{value:s},c.createElement(N5,{motion:s},n)):n}const Lz=()=>null,_z=({iconPrefixCls:e,csp:t})=>(U8(e,t),null),Bz=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Xf,Nj,jj,Rj;function yg(){return Xf||Mc}function Dz(){return Nj||Cm}const Hz=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:s}=e;t!==void 0&&(Xf=t),n!==void 0&&(Nj=n),"holderRender"in e&&(Rj=s),o&&(jj=o)},Fz=()=>({getPrefixCls:(e,t)=>t||(e?`${yg()}-${e}`:yg()),getIconPrefixCls:Dz,getRootPrefixCls:()=>Xf||yg(),getTheme:()=>jj,holderRender:Rj}),kz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:s,affix:i,anchor:u,app:m,form:h,locale:p,componentSize:g,direction:b,space:y,splitter:S,virtual:$,dropdownMatchSelectWidth:C,popupMatchSelectWidth:j,popupOverflow:w,legacyLocale:R,parentContext:E,iconPrefixCls:N,theme:M,componentDisabled:T,segmented:O,statistic:P,spin:_,calendar:L,carousel:A,cascader:B,collapse:V,typography:Z,checkbox:W,descriptions:H,divider:q,drawer:U,skeleton:J,steps:k,image:I,layout:D,list:Y,mentions:G,modal:X,progress:ee,result:Q,slider:ae,breadcrumb:se,masonry:ie,menu:fe,pagination:oe,input:re,inputPassword:pe,inputSearch:ve,textArea:Ce,otp:he,empty:te,badge:Se,borderBeam:Te,radio:Ee,rate:Le,ribbon:Pe,switch:ye,transfer:Ie,avatar:De,message:Me,tag:qe,table:tt,card:Xe,cardMeta:He,tabs:Ue,timeline:Qe,timePicker:ke,upload:Oe,notification:Je,tree:nt,colorPicker:ut,datePicker:Rt,rangePicker:ht,flex:Ut,wave:_t,dropdown:Ct,warning:kt,tour:Pt,tooltip:Vt,popover:Ze,popconfirm:$t,qrcode:We,floatButton:je,floatButtonGroup:Be,variant:we,inputNumber:Fe,treeSelect:Ve,watermark:Ye}=e,dt=c.useMemo(()=>Ot(p)&&Object.prototype.hasOwnProperty.call(p,"default")&&p.default?.locale?p.default:p,[p]),ln=c.useCallback((Mt,Yt)=>{const{prefixCls:bn}=e;if(Yt)return Yt;const qt=bn||E.getPrefixCls("");return Mt?`${qt}-${Mt}`:qt},[E.getPrefixCls,e.prefixCls]),et=N||E.iconPrefixCls||Cm,gt=n||E.csp,zt=Iz(M,E.theme,{prefixCls:ln("")}),fn={csp:gt,autoInsertSpaceInButton:o,alert:s,affix:i,anchor:u,app:m,locale:dt||R,direction:b,space:y,splitter:S,virtual:$,popupMatchSelectWidth:j??C,popupOverflow:w,getPrefixCls:ln,iconPrefixCls:et,theme:zt,segmented:O,statistic:P,spin:_,calendar:L,carousel:A,cascader:B,collapse:V,typography:Z,checkbox:W,descriptions:H,divider:q,drawer:U,skeleton:J,steps:k,image:I,input:re,inputPassword:pe,inputSearch:ve,textArea:Ce,otp:he,layout:D,list:Y,mentions:G,modal:X,progress:ee,result:Q,slider:ae,breadcrumb:se,masonry:ie,menu:fe,pagination:oe,empty:te,badge:Se,borderBeam:Te,radio:Ee,rate:Le,ribbon:Pe,switch:ye,transfer:Ie,avatar:De,message:Me,tag:qe,table:tt,card:Xe,cardMeta:He,tabs:Ue,timeline:Qe,timePicker:ke,upload:Oe,notification:Je,tree:nt,colorPicker:ut,datePicker:Rt,rangePicker:ht,flex:Ut,wave:_t,dropdown:Ct,warning:kt,tour:Pt,tooltip:Vt,popover:Ze,popconfirm:$t,qrcode:We,floatButton:je,floatButtonGroup:Be,variant:we,inputNumber:Fe,treeSelect:Ve,watermark:Ye},mt={...E};Object.keys(fn).forEach(Mt=>{fn[Mt]!==void 0&&(mt[Mt]=fn[Mt])}),Bz.forEach(Mt=>{const Yt=e[Mt];Yt&&(mt[Mt]=Yt)}),typeof o<"u"&&(mt.button={autoInsertSpace:o,...mt.button});const yt=Wc(()=>mt,mt,(Mt,Yt)=>{const bn=Object.keys(Mt),qt=Object.keys(Yt);return bn.length!==qt.length||bn.some(sr=>Mt[sr]!==Yt[sr])}),{layer:xt}=c.useContext(Uc),Ge=c.useMemo(()=>({prefixCls:et,csp:gt,layer:xt?"antd":void 0,zeroRuntime:!!xt||zt?.zeroRuntime}),[et,gt,xt,zt?.zeroRuntime]);let it=c.createElement(c.Fragment,null,c.createElement(_z,{iconPrefixCls:et,csp:gt}),c.createElement(Lz,{dropdownMatchSelectWidth:C}),t);const Bt=c.useMemo(()=>Vi(va.Form?.defaultValidateMessages||{},yt.locale?.Form?.defaultValidateMessages||{},yt.form?.validateMessages||{},h?.validateMessages||{}),[yt,h?.validateMessages]);Object.keys(Bt).length>0&&(it=c.createElement(uj.Provider,{value:Bt},it)),dt&&(it=c.createElement(lz,{locale:dt,_ANT_MARK__:iz},it)),it=c.createElement(Y0.Provider,{value:Ge},it),g&&(it=c.createElement(zz,{size:g},it)),it=c.createElement(Pz,null,it),Vt?.unique&&(it=c.createElement(Ej,null,it));const Kt=c.useMemo(()=>{const{algorithm:Mt,token:Yt,components:bn,cssVar:qt,...sr}=zt||{},So=Mt&&(!Array.isArray(Mt)||Mt.length>0)?fb(Mt):FN,Nn={};Object.entries(bn||{}).forEach(([qr,lr])=>{const Zn={...lr};"algorithm"in Zn&&(Zn.algorithm===!0?Zn.theme=So:(Array.isArray(Zn.algorithm)||Ht(Zn.algorithm))&&(Zn.theme=fb(Zn.algorithm)),delete Zn.algorithm),Nn[qr]=Zn});const ir={...Ac,...Yt};return{...sr,theme:So,token:ir,components:Nn,override:{override:ir,...Nn},cssVar:qt}},[zt]);return M&&(it=c.createElement(kN.Provider,{value:Kt},it)),yt.warning&&(it=c.createElement(tO.Provider,{value:yt.warning},it)),T!==void 0&&(it=c.createElement(ty,{disabled:T},it)),c.createElement(vt.Provider,{value:yt},it)},Ca=e=>{const t=c.useContext(vt),n=c.useContext(ey);return c.createElement(kz,{parentContext:t,legacyLocale:n,...e})};Ca.ConfigContext=vt;Ca.SizeContext=Vs;Ca.config=Hz;Ca.useConfig=Az;Object.defineProperty(Ca,"SizeContext",{get:()=>Vs});function Vz(){const[e,t]=c.useState({}),n=c.useCallback((o,s)=>{if(!s){t(u=>{if(!(o in u))return u;const m={...u};return delete m[o],m});return}const i={width:s.offsetWidth,height:s.offsetHeight};t(u=>{const m=u[o];return m&&m.width===i.width&&m.height===i.height?u:{...u,[o]:i}})},[]);return[e,n]}function qz(e,t,n=0){const[o,s]=Vz(),[i,u,m,h]=c.useMemo(()=>{let p=0,g=0;const b=t?.threshold??0,y=new Map;let S,$;return e.slice().reverse().forEach((C,j)=>{const w=String(C.key),R=o[w]?.height??0,E=t&&j>0?p+(t.offset??0)-R:p;y.set(w,E),j===0&&(S=R,$=o[w]?.width??0),(!t||j<b)&&(g=Math.max(g,E+R)),t?p=E+R:p+=R+n}),[y,g,S,$]},[e,n,o,t]);return[i,s,u,m,h]}const aw=8,sw=3,Wz=e=>{const t={offset:aw,threshold:sw};return e&&typeof e=="object"&&(t.offset=e.offset??aw,t.threshold=e.threshold??sw),[!!e,t]};function Uz(e,t,n){const s=Math.max(typeof e=="number"?e:0,0)*1e3,i=wt(t),u=wt(n),[m,h]=c.useState(s>0),p=c.useRef(0),g=c.useRef(null);function b(){const $=Date.now(),C=g.current;C!==null&&(p.current+=$-C),g.current=$}const y=c.useCallback(()=>{b(),h(!1)},[]),S=c.useCallback(()=>{s>0?(g.current=Date.now(),h(!0)):u(0)},[s]);return c.useEffect(()=>{p.current=0,h(s>0)},[s]),c.useEffect(()=>{if(!m)return;let $=null;function C(){b(),p.current>=s?(u(1),i()):(u(Math.min(p.current/s,1)),$=nn(C))}return C(),()=>{nn.cancel($)}},[s,m]),[S,y]}function Gz(e){const t=c.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),n=c.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),o=c.useMemo(()=>br(n,!0),[n]);return[!!e,n,o]}const Xz=({className:e,style:t,percent:n})=>c.createElement("progress",{className:e,max:"100",value:n,style:t});function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kf.apply(this,arguments)}const Kz=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:s,classNames:i,styles:u,components:m,title:h,description:p,icon:g,actions:b,role:y,closable:S,offset:$,notificationIndex:C,stackInThreshold:j,props:w,duration:R=4.5,showProgress:E,hovering:N,pauseOnHover:M=!0,onClick:T,onMouseEnter:O,onMouseLeave:P,onClose:_}=e,[L,A]=c.useState(0),B=`${n}-notice`,[V,Z,W]=Gz(S),H=wt(()=>{Z.onClose?.(),_?.()}),[q,U]=c.useState(!1),[J,k]=Uz(R,H,A),I=100-Math.min(Math.max(L*100,0),100),D=m?.progress||Xz;c.useEffect(()=>{M&&(N?k():q||J())},[N,q,k,J,M]);function Y(te){U(!0),M&&k(),O?.(te)}function G(te){U(!1),M&&!N&&J(),P?.(te)}function X(te){te.preventDefault(),te.stopPropagation(),H()}const ee=c.useRef($);$!==void 0&&(ee.current=$);const Q=c.useRef(C);C!==void 0&&(Q.current=C);const ae=$??ee.current,se=C??Q.current??0,ie=h!=null?c.createElement("div",{className:K(`${B}-title`,i?.title),style:u?.title},h):null,fe=p!=null?c.createElement("div",{className:K(`${B}-description`,i?.description),style:u?.description},p):null,oe=ie!==null,re=fe!==null;let pe=null;oe&&re?pe=c.createElement("div",{className:K(`${B}-section`,i?.section),style:u?.section},ie,fe):pe=ie||fe,g!=null&&(pe=c.createElement("div",{className:K(`${B}-wrapper`,i?.wrapper),style:u?.wrapper},c.createElement("div",{className:K(`${B}-icon`,i?.icon),style:u?.icon},g),pe));const ve=b?c.createElement("div",{className:K(`${B}-actions`,i?.actions),style:u?.actions},b):null,Ce={"--notification-index":se,...u?.root,...s};ae!==void 0&&(Ce["--notification-y"]=`${ae}px`);const he=y??w?.role??"alert";return c.createElement("div",Kf({},w,{ref:t,role:he,"data-notification-index":se,className:K(B,o,i?.root,{[`${B}-closable`]:V,[`${B}-stack-in-threshold`]:j}),style:Ce,onClick:T,onMouseEnter:Y,onMouseLeave:G}),pe,ve,V&&c.createElement("button",Kf({className:K(`${B}-close`,i?.close),"aria-label":"Close"},W,{style:u?.close,onClick:X}),Z.closeIcon),E&&typeof R=="number"&&R>0&&c.createElement(D,{className:K(`${B}-progress`,i?.progress),percent:I,style:u?.progress}))}),Mj=c.createContext({}),Tj=({children:e,classNames:t})=>{const n=c.useMemo(()=>({classNames:t}),[t]);return c.createElement(Mj.Provider,{value:n},e)};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zb.apply(this,arguments)}const Yz=c.forwardRef((e,t)=>{const{listPrefixCls:n,height:o,topNoticeHeight:s=0,topNoticeWidth:i=0,className:u,style:m,...h}=e,p=`${n}-content`,g=c.useRef(o),b=g.current,y=o<b?"decrease":"increase";g.current=o;const S={...m,height:o,"--top-notificiation-height":`${s}px`,"--top-notificiation-width":`${i}px`};return c.createElement("div",Zb({},h,{className:K(p,`${p}-${y}`,u),style:S,ref:t}))});function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yf.apply(this,arguments)}const Oj=["wrapper","root","icon","section","title","description","actions","close","progress"];function Qz(e){return Oj.reduce((t,n)=>(t[n]=K(...e.map(o=>o?.[n])),t),{})}function Zz(e){return Oj.reduce((t,n)=>(t[n]=Object.assign({},...e.map(o=>o?.[n])),t),{})}function Jz(e,t){const n=String(t),o=e.findIndex(s=>s.key===n);if(o!==-1)return e.length-o-1}const eA=e=>{const{config:t,components:n,contextClassNames:o,classNames:s,styles:i,className:u,style:m,nodeRef:h,listHovering:p,stackEnabled:g,pauseOnHover:b,setNodeSize:y,onNoticeClose:S,...$}=e,{key:C,placement:j,...w}=t,R=String(C),E=c.useCallback(M=>{y(R,M)},[y,R]),N=xa(h,E);return c.createElement(Kz,Yf({},w,$,{ref:N,className:K(o?.notice,t.className,u),style:{...m,...t.style},classNames:Qz([s,t.classNames]),styles:Zz([i,t.styles]),components:{...n,...t.components},hovering:g&&p,pauseOnHover:t.pauseOnHover??b,onClose:()=>{t.onClose?.(),S?.(C)}}))},tA=e=>{const{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:o,classNames:s,styles:i,components:u,stack:m,motion:h,placement:p,className:g,style:b,onNoticeClose:y,onAllRemoved:S}=e,{classNames:$}=c.useContext(Mj),C=c.useMemo(()=>t.map(U=>({config:U,key:String(U.key)})),[t]),j=typeof h=="function"?h(p):h,[w,{offset:R,threshold:E}]=Wz(m),[N,M]=c.useState(!1),T=w&&(N||C.length<=E),O=c.useMemo(()=>{if(!(!w||T))return{offset:R,threshold:E}},[T,R,w,E]),[P,_]=c.useState(0),L=c.useRef(null),[A,B,V,Z,W]=qz(t,O,P),H=!!t.length;c.useEffect(()=>{const U=L.current;if(!U)return;const{gap:J,rowGap:k}=window.getComputedStyle(U),I=parseFloat(k||J)||0;_(D=>D===I?D:I)},[H]);const q=`${n}-list`;return c.createElement("div",{className:K(n,q,`${n}-${p}`,$?.list,g,s?.list,{[`${n}-stack`]:w,[`${n}-stack-expanded`]:T,[`${q}-hovered`]:N}),onMouseEnter:()=>{M(!0)},onMouseLeave:()=>{M(!1)},style:{...i?.list,...b}},c.createElement(Yz,{listPrefixCls:q,height:V,topNoticeHeight:Z,topNoticeWidth:W,className:s?.listContent,style:i?.listContent,ref:L},c.createElement(sj,Yf({component:!1,keys:C,motionAppear:!0},j,{onAllRemoved:()=>{p&&S?.(p)}}),({config:U,className:J,style:k},I)=>{const{key:D}=U,Y=String(D),G=Jz(C,D),X=w&&G!==void 0&&G<E;return c.createElement(eA,{key:D,config:U,components:u,contextClassNames:$,classNames:s,styles:i,className:J,style:k,nodeRef:I,prefixCls:n,offset:A.get(Y),notificationIndex:G,stackInThreshold:X,listHovering:N,stackEnabled:w,pauseOnHover:o,setNodeSize:B,onNoticeClose:y})})))},nA=c.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:o,motion:s,maxCount:i,pauseOnHover:u,classNames:m,styles:h,components:p,className:g,style:b,onAllRemoved:y,stack:S,renderNotifications:$}=e,[C,j]=c.useState([]),[w,R]=c.useState({}),E=c.useRef(!1);c.useImperativeHandle(t,()=>({open:T=>{j(O=>{let P=[...O];const _=P.findIndex(A=>A.key===T.key),L={...T};return _>=0?(L.times=(O[_]?.times??0)+1,P[_]=L):(L.times=0,P.push(L)),i&&i>0&&P.length>i&&(P=P.slice(-i)),P})},close:T=>{j(O=>O.filter(P=>P.key!==T))},destroy:()=>{j([])}})),c.useEffect(()=>{const T={};C.forEach(O=>{const P=O.placement??"topRight";T[P]=T[P]||[],T[P].push(O)}),Object.keys(w).forEach(O=>{T[O]=T[O]||[]}),R(T)},[C]);const N=wt(T=>{R(O=>{const P={...O};return(P[T]||[]).length||delete P[T],P})});if(c.useEffect(()=>{Object.keys(w).length>0?E.current=!0:E.current&&(y?.(),E.current=!1)},[w,y]),!o)return null;const M=Object.keys(w);return rs.createPortal(c.createElement(c.Fragment,null,M.map(T=>{const O=c.createElement(tA,{key:T,configList:w[T],placement:T,prefixCls:n,pauseOnHover:u,classNames:m,styles:h,components:p,className:g?.(T),style:b?.(T),motion:s,stack:S,onNoticeClose:P=>{j(_=>_.filter(L=>L.key!==P))},onAllRemoved:N});return $?c.cloneElement($(O,{prefixCls:n,key:T}),{key:T}):O})),o)}),rA=()=>document.body;let iw=0;function oA(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{const s=n[o];s!==void 0&&(t[o]=s)})}),t}function zj(e={}){const{getContainer:t=rA,motion:n,prefixCls:o,placement:s,closable:i,duration:u,showProgress:m,pauseOnHover:h,classNames:p,styles:g,components:b,maxCount:y,className:S,style:$,onAllRemoved:C,stack:j,renderNotifications:w}=e,R={placement:s,closable:i,duration:u,showProgress:m},[E,N]=c.useState(),M=c.useRef(null),[T,O]=c.useState([]),P=c.createElement(nA,{container:E,ref:M,prefixCls:o,motion:n,maxCount:y,pauseOnHover:h,classNames:p,styles:g,components:b,className:S,style:$,onAllRemoved:C,stack:j,renderNotifications:w}),_=wt(A=>{const B=oA(R,A);(B.key===null||B.key===void 0)&&(B.key=`rc-notification-${iw}`,iw+=1),O(V=>[...V,{type:"open",config:B}])}),L=c.useMemo(()=>({open:_,close:A=>{O(B=>[...B,{type:"close",key:A}])},destroy:()=>{O(A=>[...A,{type:"destroy"}])}}),[]);return c.useEffect(()=>{N(t())}),c.useEffect(()=>{M.current&&T.length&&(T.forEach(A=>{switch(A.type){case"open":M.current?.open(A.config);break;case"close":M.current?.close(A.key);break;case"destroy":M.current?.destroy();break}}),O(A=>{const B=A.filter(V=>!T.includes(V));return B.length===A.length?A:B}))},[T]),[L,P]}const Aj=(e,t)=>c.useMemo(()=>{const n=e??t;return n?{...Ot(t)?t:{},...Ot(n)?n:{}}:!1},[e,t]);function Ij(e,t){return{...Un(e)&&{"--notification-top":le(e)},...Un(t)&&{"--notification-bottom":le(t)}}}function aA(e){return{motionName:`${e}-fade`}}function sA(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}var zd={},lw;function iA(){if(lw)return zd;lw=1,Object.defineProperty(zd,"__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 zd.default=e,zd}var lA=iA();const cA=jt(lA);function Jb(){return Jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jb.apply(this,arguments)}const uA=(e,t)=>c.createElement(It,Jb({},e,{ref:t,icon:cA})),ll=c.forwardRef(uA);function vo(...e){return e.find(t=>t!==void 0)}const Pj=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:o,contextClearIcon:s,defaultAllowClear:i,componentName:u}=e;return c.useMemo(()=>t??o??i?{clearIcon:vo(Ot(t)?t?.clearIcon:n,Ot(o)?o?.clearIcon:s,ue.createElement(is,null)),disabled:(Ot(t)?t?.disabled:void 0)??(Ot(o)?o?.disabled:void 0)}:!1,[t,n,o,s,i])},os=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Lj={},cw=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Un(e)&&!Un(t))return null;let n={closeIcon:typeof t!="boolean"&&Un(t)?t:void 0};return Ot(e)&&(n={...n,...e}),n},dA=(e,t,n)=>e===!1?!1:e?JC(n,t,e):t===!1?!1:t?JC(n,t):n.closable?n:!1,fA=(e,t,n)=>{const{closeIconRender:o}=t,{closeIcon:s,...i}=e;let u=s;const m=br(i,!0);return Un(u)&&(o&&(u=o(u)),u=ue.isValidElement(u)?ue.cloneElement(u,{"aria-label":n,...u.props,...m}):ue.createElement("span",{"aria-label":n,...m},u)),[u,m]},_j=(e,t,n=Lj,o="Close")=>{const s=cw(e?.closable,e?.closeIcon),i=cw(t?.closable,t?.closeIcon),u={closeIcon:ue.createElement(zo,null),...n},m=dA(s,i,u),h=typeof m!="boolean"?!!m?.disabled:!1;if(m===!1)return[!1,null,h,{}];const[p,g]=fA(m,u,o);return[!0,p,h,g]},ny=(e,t,n=Lj)=>{const[o]=Sa("global",va.global);return ue.useMemo(()=>_j(e,t,{closeIcon:ue.createElement(zo,null),...n},o.close),[e,t,n,o.close])},mA=()=>ue.useReducer(e=>e+1,0),ev=(e,t)=>{let n={};return Ot(e)&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},Bj=(e,t,n,o)=>c.useMemo(()=>{const s=ev(e,o),i=ev(t),u={blur:!1,...i,...s,closable:s.closable??o??i.closable??!0},m=u.blur?`${n}-mask-blur`:void 0;return[u.enabled!==!1,{mask:m},!!u.closable]},[e,t,n,o]),uw=e=>e==="horizontal"||e==="vertical",Dj=(e,t,n)=>c.useMemo(()=>{const o=uw(e);let s;return o?s=e:typeof t=="boolean"?s=t?"vertical":"horizontal":s=uw(n)?n:"horizontal",[s,s==="vertical"]},[n,e,t]),pA=()=>{const[e,t]=c.useState([]),n=c.useCallback(o=>(t(s=>[].concat(Rn(s),[o])),()=>{t(s=>s.filter(i=>i!==o))}),[]);return[e,n]},Tm=ue.createContext(void 0),Ka=100,hA=10,ry=Ka*hA,Hj={Modal:Ka,Drawer:Ka,Popover:Ka,Popconfirm:Ka,Tooltip:Ka,Tour:Ka,FloatButton:Ka},gA={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},bA=e=>e in Hj,Zc=(e,t)=>{const[,n]=xo(),o=ue.useContext(Tm),s=bA(e);let i;if(t!==void 0)i=[t,t];else{let u=o??0;s?u+=(o?0:n.zIndexPopupBase)+Hj[e]:u+=gA[e],i=[o===void 0?t:u,u]}return i},vA=e=>{const{motionDurationMid:t,motionEaseInOut:n}=e,o=`${t} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(s=>`${s} ${o}`).join(", ")}},Fj=(e,t)=>{const{componentCls:n,antCls:o,colorSuccess:s,colorInfo:i,colorWarning:u,colorError:m,colorTextHeading:h,colorText:p,boxShadow:g,borderRadiusLG:b,fontSize:y,lineHeight:S,notificationBg:$,notificationPadding:C,notificationMarginEdge:j,margin:w,calc:R}=e,E=`${n}-notice`,[N,M]=on(o,"notification");return{[E]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${le(R(j).mul(2).equal())})`,padding:C,pointerEvents:"auto",[N("icon-font-size")]:t.iconFontSize,[N("title-font-size")]:t.titleFontSize,[N("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:p,background:$,borderRadius:b,boxShadow:g,fontSize:y,lineHeight:S,wordWrap:"break-word",overflow:"visible",...vA(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:R(w).mul(-1).equal(),height:w,content:'""'},...t.typeStyle&&{"&-success":{background:M("color-success-bg",$)},"&-error":{background:M("color-error-bg",$)},"&-info":{background:M("color-info-bg",$)},"&-warning":{background:M("color-warning-bg",$)}}},[`${E}-wrapper`]:{display:"flex",...t.contentStyle},[`${E}-title`]:{color:h,fontSize:M("title-font-size"),lineHeight:M("title-line-height")},[`${E}-icon`]:{flex:"none",fontSize:M("icon-font-size"),lineHeight:1,[`&${E}-icon-success`]:{color:s},[`&${E}-icon-info, &${E}-icon-loading`]:{color:i},[`&${E}-icon-warning`]:{color:u},[`&${E}-icon-error`]:{color:m}}}},kj=e=>{const{componentCls:t,progressBg:n,notificationProgressHeight:o,fontSize:s,borderRadiusLG:i,width:u,notificationIconSize:m,colorText:h,motionDurationMid:p,fontSizeLG:g,lineHeightLG:b,marginSM:y,marginXS:S,paddingLG:$,notificationPaddingVertical:C,notificationPaddingHorizontal:j,notificationCloseButtonSize:w,colorIcon:R,borderRadiusSM:E,colorIconHover:N,colorBgTextHover:M,colorBgTextActive:T}=e,O=`${t}-notice`;return{...Fj(e,{width:u,iconFontSize:m,titleFontSize:g,titleLineHeight:b,contentStyle:{alignItems:"flex-start",gap:y},typeStyle:!0}),[`${O}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:S,minWidth:0},[`${O}-description`]:{color:h,fontSize:s},[`${O}-closable`]:{[`${O}-title, ${O}-description`]:{paddingInlineEnd:$},[`${O}-title + ${O}-description`]:{paddingInlineEnd:0}},[`${O}-close`]:{position:"absolute",top:C,insetInlineEnd:j,display:"flex",alignItems:"center",justifyContent:"center",width:w,height:w,color:R,background:"none",border:"none",borderRadius:E,outline:"none",transition:["color","background-color"].map(P=>`${P} ${p}`).join(", "),"&:hover":{color:N,backgroundColor:M},"&:active":{backgroundColor:T},...qo(e)},[`${O}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${le(i)} * 2)`,blockSize:o,border:0,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:i,background:n}},[`${O}-actions`]:{float:"right",marginTop:y}}},yA=e=>{const{componentCls:t,width:n}=e,o=`${t}-notice`,s=`${o}-actions`,i=kj(e);return{[`${o}-pure-panel`]:{width:n,maxWidth:"100%",...i,[o]:{...i[o],position:"relative",width:"100%",maxWidth:"100%"},[s]:{...i[s],float:"none",textAlign:"end"}}}},xA=e=>{const{componentCls:t}=e;return{[t]:kj(e)}},SA=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],CA="--notification-margin-edge",$A=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),dw=e=>{const t=e?.x??"0",n=e?.y??"0";return`translate3d(${t}, ${n}, 0) scale(var(--notification-scale, 1))`},wA=(e,t)=>{const n=e.startsWith("bottom")?"bottom":"top",o=e.endsWith("Right")?"right":"left",{blockEnd:s,inlineEnd:i}=$A(n,o),u=e==="top"||e==="bottom",m=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:s,horizontal:o,inlineEnd:i,motionOffset:u?{x:"-50%",y:m}:{x:m},baseMotionOffset:u?{x:"-50%"}:void 0,isCenterPlacement:u}},EA=e=>e==="bottom"?"column-reverse":"column",NA=e=>{const t=`var(${CA}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},jA=e=>e==="bottom"?"center top":"center bottom",Vj=e=>le(e.calc(e.marginXXL).mul(-1).equal()),RA=e=>{const t=Vj(e);return`inset(${t} ${t} ${t} ${t})`},MA=(e,t)=>{const n=Vj(e);return t==="bottom"?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},TA=(e,t)=>{const{componentCls:n}=e,{placement:o,vertical:s,blockEnd:i,horizontal:u,inlineEnd:m,isCenterPlacement:h}=t,p=`${n}-notice`,g=`${p}${n}-fade`,b=dw(t.motionOffset),y=dw(t.baseMotionOffset),S=jA(s);return{[`&${n}-${o}`]:{[s]:NA(s),[i]:"auto",display:"flex",flexDirection:EA(s),...h?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[u]:0,[m]:"auto"},[p]:{[s]:"var(--notification-y, 0)",...h?{left:"50%",transform:y}:{[u]:"var(--notification-x, 0)"},transformOrigin:S},[`${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:y},[`${g}-leave-start`]:{opacity:1,transform:y},[`${g}-leave-active`]:{opacity:0,transform:b},[`&${n}-stack:not(${n}-stack-expanded)`]:{[p]:{clipPath:MA(e,s)},[`${p}[data-notification-index='0']`]:{clipPath:RA(e)}}}}},OA=(e,t=SA)=>{const{notificationMotionOffset:n}=e,o=le(n);return{...t.reduce((s,i)=>({...s,...TA(e,wA(i,o))}),{})}},zA=e=>{const{componentCls:t}=e;return{[t]:OA(e)}},AA=3,qj=e=>({zIndexPopup:e.zIndexPopupBase+ry+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),oy=e=>{const t=e.paddingMD,n=e.paddingLG;return rn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${le(e.paddingMD)} ${le(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},IA=e=>`inset(${e} ${e} ${e} ${e})`,PA=e=>{const{componentCls:t,motionDurationMid:n,motionDurationSlow:o,motionEaseInOut:s}=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(${o} * 2) ${s} ${n}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},LA=(e,t)=>{const{componentCls:n,notificationMarginEdge:o}=e,s="--notification-margin-edge",i=`${n}-notice`,u=`${n}-list`,m=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(o).mul(2)).equal():"100%",h=t.stackVisibleCount??AA,p=`${i}:nth-last-child(n + ${h+1})`,g=le(e.calc(e.marginXXL).mul(-1).equal()),b=IA(g);return{[n]:{...Ln(e),[s]:le(o),position:"fixed",zIndex:e.zIndexPopup,width:m,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${u}`]:{maxHeight:"100vh",padding:`var(${s})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...PA(e),[`&${n}-stack`]:{[i]:{clipPath:b},[`&:not(${n}-stack-expanded)`]:{[i]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${i}:not(${i}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[p]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}}}};Xs(["Notification","PurePanel"],e=>yA(oy(e)),qj);const Wj=(e,t)=>{const n=t.itemStyle??xA;return[LA(e,t),n(e),zA(e)]},_A=an("Notification",e=>{const t=oy(e);return Wj(t,{listWidthKey:"width"})},qj),Uj=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return rn(oy(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},Gj=e=>({zIndexPopup:e.zIndexPopupBase+ry+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ay=e=>{const{fontSize:t,fontSizeLG:n,lineHeight:o}=e;return Fj(e,{width:"max-content",iconFontSize:n,titleFontSize:t,titleLineHeight:o,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},BA=e=>{const{componentCls:t}=e,n=`${t}-notice`,o=`${t}-list-content`,s=ay(e),{"&::after":i,...u}=s[n],m={...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`]:{[o]:{isolation:"isolate","&::before":{...m,top:`calc(var(--top-notificiation-height) - ${le(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${le(e.margin)})`},"&::after":{...m,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${le(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[o]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},DA=e=>{const{componentCls:t}=e,n=`${t}-notice`,o=ay(e);return{[`${n}-pure-panel`]:{width:"max-content",maxWidth:"100%",...o,[n]:{...o[n],position:"relative",width:"max-content",maxWidth:"100%"}}}};Xs(["Message","PurePanel"],e=>DA(Uj(e)),Gj);const HA=e=>({[e.componentCls]:ay(e)}),FA=an("Message",e=>{const t=Uj(e);return[Wj(t,{stackVisibleCount:1,itemStyle:HA}),BA(t)]},Gj),kA={info:c.createElement(Rm,null),success:c.createElement(il,null),error:c.createElement(is,null),warning:c.createElement(Kc,null),loading:c.createElement(ll,null)},VA=(e,t)=>t||e&&kA[e]||null;function qA(e,t){return{motionName:t??`${e}-fade`}}function WA(e){let t;const n=new Promise(s=>{t=e(()=>{s(!0)})}),o=()=>{t?.()};return o.then=(s,i)=>n.then(s,i),o.promise=n,o}const UA=8,GA=3,XA=!1,KA=({children:e,prefixCls:t})=>{const n=Rr(t),[o,s]=FA(t,n);return c.createElement(Tj,{classNames:{list:K(o,s,n)}},e)},YA=(e,{prefixCls:t,key:n})=>c.createElement(KA,{prefixCls:t,key:n},e),QA=c.forwardRef((e,t)=>{const{top:n,prefixCls:o,getContainer:s,maxCount:i,duration:u=GA,rtl:m,classNames:h,styles:p,transitionName:g,pauseOnHover:b=!0,stack:y,onAllRemoved:S}=e,{getPrefixCls:$,direction:C,getPopupContainer:j}=en("message"),{message:w}=c.useContext(vt),R=o||$("message"),[E,N]=sn([w?.classNames,h],[w?.styles,p],{props:e}),M=()=>Ij(n??UA),T=()=>K({[`${R}-rtl`]:m??C==="rtl"}),O=()=>qA(R,g),P=Aj(y,XA),[_,L]=zj({prefixCls:R,style:M,className:T,motion:O,closable:!1,duration:u,getContainer:()=>s?.()||j?.()||document.body,maxCount:i,onAllRemoved:S,classNames:E,styles:N,renderNotifications:YA,pauseOnHover:b,stack:P});return c.useImperativeHandle(t,()=>({..._,prefixCls:R,message:w})),L});let fw=0;function ZA(e){const t=c.useRef(null);return[c.useMemo(()=>{const o=h=>{t.current?.close(h)},s=h=>{if(!t.current){const W=()=>{};return W.then=()=>{},W}const{open:p,prefixCls:g,message:b}=t.current,y=b?.className||{},S=b?.style||{},$=`${g}-notice`,{content:C,icon:j,type:w,key:R,className:E,style:N,onClose:M,classNames:T={},styles:O={},...P}=h;let _=R;Un(_)||(fw+=1,_=`antd-message-${fw}`);const L={...e,...h},A=el(T,{props:L}),B=el(O,{props:L}),V=VA(w,j),Z=w?`${$}-icon-${w}`:void 0;return WA(W=>(p({...P,key:_,icon:V,title:C,classNames:{...A,wrapper:K(w&&`${g}-${w}`,A?.wrapper),icon:K(Z,A?.icon)},styles:B,placement:"top",className:K({[`${$}-${w}`]:w},E,y),style:{...S,...N},onClose:()=>{M?.(),W()}}),()=>{o(_)}))},u={open:s,destroy:h=>{h!==void 0?o(h):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(h=>{const p=(g,b,y)=>{let S;Ot(g)&&"content"in g?S=g:S={content:g};let $,C;Ht(b)?C=b:($=b,C=y);const j={onClose:C,duration:$,...S,type:h};return s(j)};u[h]=p}),u},[]),c.createElement(QA,{key:"message-holder",...e,ref:t})]}function JA(e){return ZA(e)}const xg=()=>({height:0,opacity:0}),mw=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),eI=e=>({height:e?.offsetHeight??0}),Sg=(e,t)=>t?.deadline===!0||ij(t)&&t.propertyName==="height",tv=(e=Mc)=>({motionName:`${e}-motion-collapse`,onAppearStart:xg,onEnterStart:xg,onAppearActive:mw,onEnterActive:mw,onLeaveStart:eI,onLeaveActive:xg,onAppearEnd:Sg,onEnterEnd:Sg,onLeaveEnd:Sg,motionDeadline:500}),Wo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,tI=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:o,motionEaseInOut:s,motionEaseOutCirc:i,antCls:u}=e,[,m]=on(u,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:m("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(h=>`${h} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(h=>`${h} ${o} ${s}`).join(",")}}}}},nI=W8("Wave",tI),sy=`${Mc}-wave-target`,pw=e=>e?Vo(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 rI(e,t=null){const n=getComputedStyle(e),{borderTopColor:o,borderColor:s,backgroundColor:i}=n;return t&&pw(n[t])?n[t]:[o,s,i].find(pw)??null}function Cg(e){return Number.isNaN(e)?0:e}const oI=e=>{const{className:t,target:n,component:o,colorSource:s}=e,i=c.useRef(null),{getPrefixCls:u}=c.useContext(vt),m=u(),[h]=on(m,"wave"),[p,g]=c.useState(null),[b,y]=c.useState([]),[S,$]=c.useState(0),[C,j]=c.useState(0),[w,R]=c.useState(0),[E,N]=c.useState(0),[M,T]=c.useState(!1),O={left:S,top:C,width:w,height:E,borderRadius:b.map(L=>`${L}px`).join(" ")};p&&(O[h("color")]=p);function P(){const L=getComputedStyle(n);g(rI(n,s));const A=L.position==="static",{borderLeftWidth:B,borderTopWidth:V}=L;$(A?n.offsetLeft:Cg(-Number.parseFloat(B))),j(A?n.offsetTop:Cg(-Number.parseFloat(V))),R(n.offsetWidth),N(n.offsetHeight);const{borderTopLeftRadius:Z,borderTopRightRadius:W,borderBottomLeftRadius:H,borderBottomRightRadius:q}=L;y([Z,W,q,H].map(U=>Cg(Number.parseFloat(U))))}if(c.useEffect(()=>{if(n){const L=nn(()=>{P(),T(!0)});let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(P),A.observe(n)),()=>{nn.cancel(L),A?.disconnect()}}},[n]),!M)return null;const _=(o==="Checkbox"||o==="Radio")&&n?.classList.contains(sy);return c.createElement(wr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(L,A)=>{if(A.deadline||ij(A)&&A.propertyName==="opacity"){const B=i.current?.parentElement;mN(B).then(()=>{B?.remove()})}return!1}},({className:L},A)=>c.createElement("div",{ref:Er(i,A),className:K(t,L,{"wave-quick":_}),style:O}))},aI=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!e.querySelector("input")?.checked)return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild),fN(c.createElement(oI,{...t,target:e}),o)},sI=(e,t,n,o)=>{const{wave:s}=c.useContext(vt),[,i,u]=xo(),m=wt(g=>{const b=e.current;if(s?.disabled||!b)return;const y=b.querySelector(`.${sy}`)||b,{showEffect:S}=s||{};(S||aI)(y,{className:t,token:i,component:n,event:g,hashId:u,colorSource:o})}),h=c.useRef(null);return c.useEffect(()=>()=>{nn.cancel(h.current)},[]),g=>{nn.cancel(h.current),h.current=nn(()=>{m(g)})}},hw={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Om=e=>{const{children:t,disabled:n,component:o,colorSource:s}=e,{getPrefixCls:i,wave:u}=c.useContext(vt),m=c.useRef(null),h=i("wave"),p=nI(h),g=sI(m,K(h,p),o,s);if(ue.useEffect(()=>{const y=m.current;if(!y||y.nodeType!==window.Node.ELEMENT_NODE||n)return;const S=j=>{!Sm(j.target)||!y.getAttribute||y.getAttribute("disabled")||y.disabled||y.className.includes("disabled")&&!y.className.includes("disabled:")||y.getAttribute("aria-disabled")==="true"||y.className.includes("-leave")||g(j)},$=u?.triggerType,C=$&&$ in hw?hw[$]:"click";return y.addEventListener(C,S,!0),()=>{y.removeEventListener(C,S,!0)}},[n,u?.triggerType]),!ue.isValidElement(t))return t??null;const b=Gs(t)?Er(ss(t),m):m;return Vr(t,{ref:b})},Mr=e=>{const t=ue.useContext(Vs);return ue.useMemo(()=>e?Vo(e)?e??t:Ht(e)?e(t):t:t,[e,t])},iI=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},lI=an(["Space","Compact"],iI,()=>({}),{resetStyle:!1}),zm=c.createContext(null),cl=(e,t)=>{const n=c.useContext(zm),o=c.useMemo(()=>{if(!n)return"";const{compactDirection:s,isFirstItem:i,isLastItem:u}=n,m=s==="vertical"?"-vertical-":"-";return K(`${e}-compact${m}item`,{[`${e}-compact${m}first-item`]:i,[`${e}-compact${m}last-item`]:u,[`${e}-compact${m}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:o}},cI=e=>{const{children:t}=e;return c.createElement(zm.Provider,{value:null},t)},uI=e=>{const{children:t,...n}=e;return c.createElement(zm.Provider,{value:c.useMemo(()=>n,[n])},t)},Xj=e=>{const{getPrefixCls:t,direction:n}=c.useContext(vt),{size:o,direction:s,orientation:i,block:u,prefixCls:m,className:h,rootClassName:p,children:g,vertical:b,...y}=e,[S,$]=Dj(i,b,s),C=Mr(T=>o??T),j=t("space-compact",m),[w]=lI(j),R=K(j,w,{[`${j}-rtl`]:n==="rtl",[`${j}-block`]:u,[`${j}-vertical`]:$},h,p),E=c.useContext(zm),N=kr(g),M=c.useMemo(()=>N.map((T,O)=>{const P=T?.key||`${j}-item-${O}`;return c.createElement(uI,{key:P,compactSize:C,compactDirection:S,isFirstItem:O===0&&(!E||E?.isFirstItem),isLastItem:O===N.length-1&&(!E||E?.isLastItem)},T)}),[N,E,S,C,j]);return N.length===0?null:c.createElement("div",{className:R,...y},M)},Kj=c.createContext(void 0),dI=e=>{const{getPrefixCls:t,direction:n}=c.useContext(vt),{prefixCls:o,size:s,className:i,...u}=e,m=t("btn-group",o),[,,h]=xo(),p=c.useMemo(()=>{switch(s){case"large":return"lg";case"small":return"sm";default:return""}},[s]),g=K(m,{[`${m}-${p}`]:p,[`${m}-rtl`]:n==="rtl"},i,h);return c.createElement(Kj.Provider,{value:s},c.createElement("div",{...u,className:g}))},gw=/^[\u4E00-\u9FA5]{2}$/,nv=gw.test.bind(gw);function Yj(e){return e==="danger"?{danger:!0}:{type:e}}function $g(e){return e==="text"||e==="link"}function fI(e,t,n,o){if(!ar(e))return;const s=t?" ":"";return!Vo(e)&&!$r(e)&&Vo(e.type)&&nv(e.props.children)?Vr(e,i=>{const u=K(i.className,o)||void 0,m={...n,...i.style};return{...i,children:i.children.split("").join(s),className:u,style:m}}):Vo(e)?ue.createElement("span",{className:o,style:n},nv(e)?e.split("").join(s):e):$j(e)?ue.createElement("span",{className:o,style:n},e):Vr(e,i=>({...i,className:K(i.className,o)||void 0,style:{...i.style,...n}}))}function mI(e,t,n,o){let s=!1;const i=[];return ue.Children.forEach(e,u=>{const m=Vo(u)||$r(u);if(s&&m){const h=i.length-1,p=i[h];i[h]=`${p}${u}`}else i.push(u);s=m}),ue.Children.map(i,u=>fI(u,t,n,o))}["default","primary","danger"].concat(Rn(ba));const Qj=c.forwardRef((e,t)=>{const{className:n,style:o,children:s,prefixCls:i}=e,u=K(`${i}-icon`,n);return ue.createElement("span",{ref:t,className:u,style:o},s)}),bw=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:s,iconClassName:i}=e,u=K(`${n}-loading-icon`,o);return ue.createElement(Qj,{prefixCls:n,className:u,style:s,ref:t},ue.createElement(ll,{className:i}))}),wg=()=>({width:0,opacity:0,transform:"scale(0)"}),Eg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),pI=e=>{const{prefixCls:t,loading:n,existIcon:o,className:s,style:i,mount:u}=e,m=!!n;return o?ue.createElement(bw,{prefixCls:t,className:s,style:i}):ue.createElement(wr,{visible:m,motionName:`${t}-loading-icon-motion`,motionAppear:!u,motionEnter:!u,motionLeave:!u,removeOnLeave:!0,onAppearStart:wg,onAppearActive:Eg,onEnterStart:wg,onEnterActive:Eg,onLeaveStart:Eg,onLeaveActive:wg},({className:h,style:p},g)=>{const b={...i,...p};return ue.createElement(bw,{prefixCls:t,className:K(s,h),style:b,ref:g})})},Zj=e=>{const{componentCls:t,antCls:n,motionDurationMid:o,motionEaseInOut:s}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(i=>`${i} ${o} ${s}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(i=>`${i} ${o} ${s}`).join(", ")} !important`}}}},vw=e=>({animationDuration:e,animationFillMode:"both"}),Am=(e,t,n,o,s=!1)=>{const i=s?"&":"";return{[`
|
|
135
|
-
${i}${e}-enter,
|
|
136
|
-
${i}${e}-appear
|
|
137
|
-
`]:{...vw(o),animationPlayState:"paused"},[`${i}${e}-leave`]:{...vw(o),animationPlayState:"paused"},[`
|
|
138
|
-
${i}${e}-enter${e}-enter-active,
|
|
139
|
-
${i}${e}-appear${e}-appear-active
|
|
140
|
-
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},hI=new Ft("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),gI=new Ft("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Jj=(e,t=!1)=>{const{antCls:n}=e,o=`${n}-fade`,s=t?"&":"";return[Am(o,hI,gI,e.motionDurationMid,t),{[`
|
|
141
|
-
${s}${o}-enter,
|
|
142
|
-
${s}${o}-appear
|
|
143
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${s}${o}-leave`]:{animationTimingFunction:"linear"}}]},bI=new Ft("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vI=new Ft("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),yI=new Ft("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xI=new Ft("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SI=new Ft("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CI=new Ft("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$I=new Ft("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wI=new Ft("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),EI={"move-up":{inKeyframes:$I,outKeyframes:wI},"move-down":{inKeyframes:bI,outKeyframes:vI},"move-left":{inKeyframes:yI,outKeyframes:xI},"move-right":{inKeyframes:SI,outKeyframes:CI}},yw=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:s,outKeyframes:i}=EI[t];return[Am(o,s,i,e.motionDurationMid),{[`
|
|
144
|
-
${o}-enter,
|
|
145
|
-
${o}-appear
|
|
146
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},iy=new Ft("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ly=new Ft("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),cy=new Ft("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),uy=new Ft("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),NI=new Ft("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),jI=new Ft("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),RI=new Ft("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),MI=new Ft("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),TI={"slide-up":{inKeyframes:iy,outKeyframes:ly},"slide-down":{inKeyframes:cy,outKeyframes:uy},"slide-left":{inKeyframes:NI,outKeyframes:jI},"slide-right":{inKeyframes:RI,outKeyframes:MI}},tl=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:s,outKeyframes:i}=TI[t];return[Am(o,s,i,e.motionDurationMid),{[`
|
|
147
|
-
${o}-enter,
|
|
148
|
-
${o}-appear
|
|
149
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Pc=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),OI=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),dy=new Ft("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zI=new Ft("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),xw=new Ft("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sw=new Ft("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),AI=new Ft("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),II=new Ft("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),PI=new Ft("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),LI=new Ft("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_I=new Ft("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),BI=new Ft("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),DI=new Ft("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),HI=new Ft("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),FI={zoom:{inKeyframes:dy,outKeyframes:zI},"zoom-big":{inKeyframes:xw,outKeyframes:Sw},"zoom-big-fast":{inKeyframes:xw,outKeyframes:Sw},"zoom-left":{inKeyframes:PI,outKeyframes:LI},"zoom-right":{inKeyframes:_I,outKeyframes:BI},"zoom-up":{inKeyframes:AI,outKeyframes:II},"zoom-down":{inKeyframes:DI,outKeyframes:HI}},Im=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:s,outKeyframes:i}=FI[t];return[Am(o,s,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
150
|
-
${o}-enter,
|
|
151
|
-
${o}-appear
|
|
152
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Cw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),kI=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:s,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Cw(`${t}-primary`,s),Cw(`${t}-danger`,i)]}},Ng=e=>Math.round(Number(e||0)),VI=e=>{if(e instanceof On)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Lc extends On{constructor(t){super(VI(t))}toHsbString(){const t=this.toHsb(),n=Ng(t.s*100),o=Ng(t.b*100),s=Ng(t.h),i=t.a,u=`hsb(${s}, ${n}%, ${o}%)`,m=`hsba(${s}, ${n}%, ${o}%, ${i.toFixed(i===0?0:2)})`;return i===1?u:m}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const qI=e=>e instanceof Lc?e:new Lc(e);qI("#1677ff");const WI=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",UI=(e,t)=>e?WI(e,t):"";let Qf=(function(){function e(t){if(Gc(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:s})=>({color:new e(o),percent:s})),this.metaColor=new Lc(this.colors[0].color.metaColor)):this.metaColor=new Lc(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Xc(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return UI(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(s=>`${s.color.toRgbString()} ${s.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((o,s)=>{const i=n.colors[s];return o.percent===i.percent&&o.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var Ad={},$w;function GI(){if($w)return Ad;$w=1,Object.defineProperty(Ad,"__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 Ad.default=e,Ad}var XI=GI();const KI=jt(XI);function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},rv.apply(this,arguments)}const YI=(e,t)=>c.createElement(It,rv({},e,{ref:t,icon:KI})),ov=c.forwardRef(YI);function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ho.apply(null,arguments)}const QI=e=>e instanceof Qf?e:new Qf(e),e4=(e,t)=>{const{r:n,g:o,b:s,a:i}=e.toRgb(),u=new Lc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?u.v>.5:n*.299+o*.587+s*.114>192},t4=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:o}=e;return rn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:o})},n4=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,s=e.contentLineHeight??If(t),i=e.contentLineHeightSM??If(n),u=e.contentLineHeightLG??If(o),m=e4(new Qf(e.colorBgSolid),"#fff")?"#000":"#fff",h=ba.reduce((b,y)=>({...b,[`${y}ShadowColor`]:`0 ${le(e.controlOutlineWidth)} 0 ${pc(e[`${y}1`],e.colorBgContainer)}`}),{}),p=e.colorBgContainerDisabled,g=e.colorBgContainerDisabled;return{...h,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.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:m,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:o,contentLineHeight:s,contentLineHeightSM:i,contentLineHeightLG:u,paddingBlock:Math.max((e.controlHeight-t*s)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*u)/2-e.lineWidth,0),defaultBgDisabled:p,dashedBgDisabled:g}},ZI=e=>{const{componentCls:t,antCls:n,lineWidth:o,lineType:s}=e,[i,u]=on(n,"btn");return{[t]:[{[i("border-width")]:o,[i("border-color")]:"#000",[i("border-color-hover")]:u("border-color"),[i("border-color-active")]:u("border-color"),[i("border-color-disabled")]:u("border-color"),[i("border-style")]:s,[i("text-color")]:"#000",[i("text-color-hover")]:u("text-color"),[i("text-color-active")]:u("text-color"),[i("text-color-disabled")]:u("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:u("bg-color"),[i("bg-color-active")]:u("bg-color"),[i("bg-color-disabled")]:e.colorBgContainerDisabled,[i("bg-color-container")]:e.colorBgContainer,[i("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`]:{[i("solid-bg-color")]:u("color-base"),[i("solid-bg-color-hover")]:u("color-hover"),[i("solid-bg-color-active")]:u("color-active"),[i("border-color")]:"transparent",[i("text-color")]:e.colorTextLightSolid,[i("bg-color")]:u("solid-bg-color"),[i("bg-color-hover")]:u("solid-bg-color-hover"),[i("bg-color-active")]:u("solid-bg-color-active"),boxShadow:u("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("border-color")]:u("color-base"),[i("border-color-hover")]:u("color-hover"),[i("border-color-active")]:u("color-active"),[i("bg-color")]:u("bg-color-container"),[i("text-color")]:u("color-base"),[i("text-color-hover")]:u("color-hover"),[i("text-color-active")]:u("color-active"),boxShadow:u("shadow")},[`&${t}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:u("color-base"),[i("bg-color")]:u("color-light"),[i("bg-color-hover")]:u("color-light-hover"),[i("bg-color-active")]:u("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:u("color-base"),[i("text-color-hover")]:u("color-hover"),[i("text-color-active")]:u("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[i("bg-color-hover")]:u("color-light"),[i("bg-color-active")]:u("color-light-active")}},{[`&${t}-variant-link`]:{[i("color-base")]:e.colorLink,[i("color-hover")]:e.colorLinkHover,[i("color-active")]:e.colorLinkActive,[i("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[i("color-base")]:e.colorPrimary,[i("color-hover")]:e.colorPrimaryHover,[i("color-active")]:e.colorPrimaryActive,[i("color-light")]:e.colorPrimaryBg,[i("color-light-hover")]:e.colorPrimaryBgHover,[i("color-light-active")]:e.colorPrimaryBorder,[i("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.primaryColor,[i("text-color-hover")]:u("text-color"),[i("text-color-active")]:u("text-color")}},[`&${t}-color-dangerous`]:{[i("color-base")]:e.colorError,[i("color-hover")]:e.colorErrorHover,[i("color-active")]:e.colorErrorActive,[i("color-light")]:e.colorErrorBg,[i("color-light-hover")]:e.colorErrorBgFilledHover,[i("color-light-active")]:e.colorErrorBgActive,[i("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.dangerColor,[i("text-color-hover")]:u("text-color"),[i("text-color-active")]:u("text-color")}},[`&${t}-color-default`]:{[i("solid-bg-color")]:e.colorBgSolid,[i("solid-bg-color-hover")]:e.colorBgSolidHover,[i("solid-bg-color-active")]:e.colorBgSolidActive,[i("color-base")]:e.defaultBorderColor,[i("color-hover")]:e.defaultHoverBorderColor,[i("color-active")]:e.defaultActiveBorderColor,[i("color-light")]:e.colorFillTertiary,[i("color-light-hover")]:e.colorFillSecondary,[i("color-light-active")]:e.colorFill,[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i("text-color")]:e.solidTextColor,[i("text-color-hover")]:u("text-color"),[i("text-color-active")]:u("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[i("text-color-hover")]:u("text-color"),[i("text-color-active")]:u("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("bg-color-container")]:e.defaultBg,[i("bg-color-hover")]:e.defaultHoverBg,[i("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i("text-color")]:e.textTextColor,[i("text-color-hover")]:e.textTextHoverColor,[i("text-color-active")]:e.textTextActiveColor,[i("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultGhostColor,[i("border-color")]:e.defaultGhostBorderColor}}}},ba.map(m=>{const h=e[`${m}6`],p=e[`${m}1`],g=e[`${m}Hover`],b=e[`${m}2`],y=e[`${m}3`],S=e[`${m}Active`],$=e[`${m}ShadowColor`];return{[`&${t}-color-${m}`]:{[i("color-base")]:h,[i("color-hover")]:g,[i("color-active")]:S,[i("color-light")]:p,[i("color-light-hover")]:b,[i("color-light-active")]:y,[i("shadow")]:$}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:u("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[i("bg-color")]:e.ghostBg,[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg,[i("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg}}}]}},JI=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:s,motionDurationSlow:i,motionEaseInOut:u,iconGap:m,calc:h}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:m,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Pc(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Nm(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[n]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":qo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:s,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${i} ${u}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:h(m).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:h(m).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:h(m).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:h(m).mul(-1).equal()}}}}}},eP=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),fy=(e,t="")=>{const{componentCls:n,controlHeight:o,fontSize:s,borderRadius:i,buttonPaddingHorizontal:u,iconCls:m,buttonPaddingVertical:h,buttonIconOnlyFontSize:p}=e;return[{[t]:{fontSize:s,height:o,padding:`${le(h)} ${le(u)}`,borderRadius:i,[`&${n}-icon-only`]:{width:o,[m]:{fontSize:p}}}},{[`${n}${n}-circle${t}`]:eP(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},tP=e=>{const t=rn(e,{fontSize:e.contentFontSize});return fy(t,e.componentCls)},nP=e=>{const t=rn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return fy(t,`${e.componentCls}-sm`)},rP=e=>{const t=rn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return fy(t,`${e.componentCls}-lg`)},oP=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aP=an("Button",e=>{const t=t4(e);return[JI(t),tP(t),nP(t),rP(t),oP(t),ZI(t),kI(t)]},n4,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function sP(e,t,n,o){const{focusElCls:s,focus:i,borderElCls:u}=n,m=u?"> *":"",h=m?` ${m}`:"",p=y=>y.filter(Boolean).map(S=>`&:${S}${h}`).join(","),g=p(["hover",s?`hover${s}`:null]),b=p([i?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[b]:{zIndex:3},[g]:{zIndex:4},...s?{[`&${s}`]:{zIndex:3}}:{},[`&[disabled] ${m}`]:{zIndex:0}}}}function iP(e,t,n){const{borderElCls:o}=n,s=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${s}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Pm(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:o}=t,s=o||n,i=`${s}-compact`;return{[i]:{...sP(e,i,t,s),...iP(s,i,t)}}}function lP(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function cP(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 uP(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...lP(e,t,e.componentCls),...cP(e.componentCls,t)}}}const dP=e=>{const{antCls:t,componentCls:n,lineWidth:o,calc:s,colorBgContainer:i}=e,u=`${n}-variant-solid:not([disabled])`,m=s(o).mul(-1).equal(),[h,p]=on(t,"btn"),g=b=>({[`${n}-compact${b?"-vertical":""}-item`]:{[h("compact-connect-border-color")]:p("bg-color-hover"),[`&${u}`]:{transition:"none",[`& + ${u}:before`]:[{position:"absolute",backgroundColor:p("compact-connect-border-color"),content:'""'},b?{top:m,insetInline:m,height:o}:{insetBlock:m,insetInlineStart:m,width:o}],"&:hover:before":{display:"none"}}}});return[g(),g(!0),{[`${u}${n}-color-default`]:{[h("compact-connect-border-color")]:`color-mix(in srgb, ${p("bg-color-hover")} 75%, ${i})`}}]},fP=Xs(["Button","compact"],e=>{const t=t4(e);return[Pm(t),uP(t),dP(t)]},n4);function mP(e){if(Ot(e)){let t=e?.delay;return t=$r(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const pP={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},hP=ue.forwardRef((e,t)=>{const{_skipSemantic:n,loading:o=!1,prefixCls:s,color:i,variant:u,type:m,danger:h=!1,shape:p,size:g,disabled:b,className:y,rootClassName:S,children:$,icon:C,iconPosition:j,iconPlacement:w,ghost:R=!1,block:E=!1,htmlType:N="button",classNames:M,styles:T,style:O,autoInsertSpace:P,autoFocus:_,...L}=e,A=kr($),B=m||"default",{getPrefixCls:V,direction:Z,autoInsertSpace:W,className:H,style:q,classNames:U,styles:J,loadingIcon:k,shape:I,color:D,variant:Y}=en("button"),G=p||I||"default",[X,ee]=c.useMemo(()=>{if(i&&u)return[i,u];if(m||h){const Ze=pP[B]||[];return h?["danger",Ze[1]]:Ze}return u==="solid"?["primary",u]:D&&Y?[D,Y]:Y==="solid"?["primary",Y]:["default","outlined"]},[i,u,m,h,D,Y,B]),[Q,ae]=c.useMemo(()=>R&&ee==="solid"?[X,"outlined"]:[X,ee],[X,ee,R]),se=Q==="danger",ie=se?"dangerous":Q,fe=P??W??!0,oe=V("btn",s),[re,pe]=aP(oe),ve=c.useContext(no),Ce=b??ve,he=c.useContext(Kj),te=c.useMemo(()=>mP(o),[o]),[Se,Te]=c.useState(te.loading),[Ee,Le]=c.useState(!1),Pe=c.useRef(null),ye=xa(t,Pe),Ie=A.length===1&&!C&&!$g(ae),De=c.useRef(!0);ue.useEffect(()=>(De.current=!1,()=>{De.current=!0}),[]),xn(()=>{let Ze=null;te.delay>0?Ze=setTimeout(()=>{Ze=null,Te(!0)},te.delay):Te(te.loading);function $t(){Ze&&(clearTimeout(Ze),Ze=null)}return $t},[te.delay,te.loading]),c.useEffect(()=>{if(!Pe.current||!fe)return;const Ze=Pe.current.textContent||"";Ie&&nv(Ze)?Ee||Le(!0):Ee&&Le(!1)}),c.useEffect(()=>{_&&Pe.current?.focus()},[]);const Me=ue.useCallback(Ze=>{if(Se||Ce){Ze.preventDefault();return}e.onClick?.(("href"in e,Ze))},[e.onClick,Se,Ce]),{compactSize:qe,compactItemClassnames:tt}=cl(oe,Z),Xe=Mr(Ze=>g??qe??he??Ze),He=Se?"loading":C,Ue=w??j??"start",Qe=Mn(L,["navigate"]),ke={...e,type:B,color:Q,variant:ae,danger:se,shape:G,size:Xe,disabled:Ce,loading:Se,iconPlacement:Ue},Oe=dn(q),Je=dn(O),[nt,ut]=sn([n?void 0:U,M],[n?void 0:J,Oe,T,Je],{props:ke}),Rt=K(oe,re,pe,{[`${oe}-${G}`]:G!=="default"&&G!=="square"&&G,[`${oe}-${B}`]:B,[`${oe}-dangerous`]:h,[`${oe}-color-${ie}`]:ie,[`${oe}-variant-${ae}`]:ae,[`${oe}-lg`]:Xe==="large",[`${oe}-sm`]:Xe==="small",[`${oe}-icon-only`]:!$&&$!==0&&!!He,[`${oe}-background-ghost`]:R&&!$g(ae),[`${oe}-loading`]:Se,[`${oe}-two-chinese-chars`]:Ee&&fe&&!Se,[`${oe}-block`]:E,[`${oe}-rtl`]:Z==="rtl",[`${oe}-icon-end`]:Ue==="end"},tt,y,S,H,nt.root),ht={className:nt.icon,style:ut.icon},Ut=Ze=>ue.createElement(Qj,{prefixCls:oe,...ht},Ze),_t=ue.createElement(pI,{existIcon:!!C,prefixCls:oe,loading:Se,mount:De.current,...ht}),Ct=Ot(o)&&o.icon||k;let kt;C&&!Se?kt=Ut(C):o&&Ct?kt=Ut(Ct):kt=_t;const Pt=ar($)?mI($,Ie&&fe,ut.content,nt.content):null;if(Qe.href!==void 0)return ue.createElement("a",{...Qe,className:K(Rt,{[`${oe}-disabled`]:Ce}),href:Ce?void 0:Qe.href,style:ut.root,onClick:Me,ref:ye,tabIndex:Ce?-1:0,"aria-disabled":Ce},kt,Pt);let Vt=ue.createElement("button",{...L,type:N,className:Rt,style:ut.root,onClick:Me,disabled:Ce,ref:ye},kt,Pt,tt&&ue.createElement(fP,{prefixCls:oe}));return $g(ae)||(Vt=ue.createElement(Om,{component:"Button",disabled:Se},Vt)),Vt}),pt=hP;pt.Group=dI;pt.__ANT_BUTTON=!0;const r4=e=>{const{type:t,children:n,prefixCls:o,buttonProps:s,close:i,autoFocus:u,emitEvent:m,isSilent:h,quitOnNullishReturnValue:p,actionFn:g}=e,b=c.useRef(!1),y=c.useRef(null),[S,$]=_0(!1),C=(...R)=>{i?.(...R)};c.useEffect(()=>{let R=null;return u&&(R=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{R&&clearTimeout(R)}},[u]);const j=R=>{vg(R)&&($(!0),R.then((...E)=>{$(!1,!0),C.apply(void 0,E),b.current=!1},E=>{if($(!1,!0),b.current=!1,!h?.())return Promise.reject(E)}))},w=R=>{if(b.current)return;if(b.current=!0,!g){C();return}let E;if(m){if(E=g(R),p&&!vg(E)){b.current=!1,C(R);return}}else if(g.length)E=g(i),b.current=!1;else if(E=g(),!vg(E)){C();return}j(E)};return c.createElement(pt,{...Yj(t),onClick:w,loading:S,prefixCls:o,...s,ref:y},n)},Jc=ue.createContext({}),{Provider:o4}=Jc,ww=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:s,rootPrefixCls:i,close:u,onCancel:m,onConfirm:h,onClose:p}=c.useContext(Jc);return s?ue.createElement(r4,{isSilent:o,actionFn:m,close:(...g)=>{u?.(...g),h?.(!1),p?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Ew=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:s,okTextLocale:i,okType:u,onConfirm:m,onOk:h,onClose:p}=c.useContext(Jc);return ue.createElement(r4,{isSilent:n,type:u||"primary",actionFn:h,close:(...g)=>{t?.(...g),m?.(!0),p?.()},autoFocus:e==="ok",buttonProps:o,prefixCls:`${s}-btn`},i)},a4=c.createContext({});function Nw(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}function jw(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const s=e.document;n=s.documentElement[o],typeof n!="number"&&(n=s.body[o])}return n}function gP(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,s=o.defaultView||o.parentWindow;return n.left+=jw(s),n.top+=jw(s,!0),n}const bP=c.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zf.apply(this,arguments)}const s4=ue.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:s,title:i,ariaId:u,footer:m,closable:h,closeIcon:p,onClose:g,children:b,bodyStyle:y,bodyProps:S,modalRender:$,onMouseDown:C,onMouseUp:j,holderRef:w,visible:R,forceRender:E,width:N,height:M,classNames:T,styles:O,isFixedPos:P,focusTrap:_}=e,{panel:L}=ue.useContext(a4),A=c.useRef(null),B=xa(w,L,A),[V]=sN(R&&P&&_!==!1,()=>A.current);ue.useImperativeHandle(t,()=>({focus:()=>{A.current?.focus({preventScroll:!0})}}));const Z={};N!==void 0&&(Z.width=N),M!==void 0&&(Z.height=M);const W=m?ue.createElement("div",{className:K(`${n}-footer`,T?.footer),style:{...O?.footer}},m):null,H=i?ue.createElement("div",{className:K(`${n}-header`,T?.header),style:{...O?.header}},ue.createElement("div",{className:K(`${n}-title`,T?.title),id:u,style:{...O?.title}},i)):null,q=c.useMemo(()=>typeof h=="object"&&h!==null?h:h?{closeIcon:p??ue.createElement("span",{className:`${n}-close-x`})}:{},[h,p,n]),U=br(q,!0),J=typeof h=="object"&&h.disabled,k=h?ue.createElement("button",Zf({type:"button",onClick:g,"aria-label":"Close"},U,{className:K(`${n}-close`,T?.close),disabled:J,style:O?.close}),q.closeIcon):null,I=ue.createElement("div",{className:K(`${n}-container`,T?.container),style:O?.container},k,H,ue.createElement("div",Zf({className:K(`${n}-body`,T?.body),style:{...y,...O?.body}},S),b),W);return ue.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?u:null,"aria-modal":"true",ref:B,style:{...s,...Z},className:K(n,o),onMouseDown:C,onMouseUp:j,tabIndex:-1,onFocus:D=>{V(D.target)}},ue.createElement(bP,{shouldUpdate:R||E},$?$(I):I))});function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},av.apply(this,arguments)}const vP=c.forwardRef((e,t)=>{const{prefixCls:n,title:o,style:s,className:i,visible:u,forceRender:m,destroyOnHidden:h,motionName:p,ariaId:g,onVisibleChanged:b,mousePosition:y}=e,S=c.useRef(null),$=c.useRef(null);c.useImperativeHandle(t,()=>({...$.current,inMotion:S.current.inMotion,enableMotion:S.current.enableMotion}));const[C,j]=c.useState(),w={};C&&(w.transformOrigin=C);function R(){if(!S.current?.nativeElement)return;const E=gP(S.current.nativeElement);j(y&&(y.x||y.y)?`${y.x-E.left}px ${y.y-E.top}px`:"")}return c.createElement(wr,{visible:u,onVisibleChanged:b,onAppearPrepare:R,onEnterPrepare:R,forceRender:m,motionName:p,removeOnLeave:h,ref:S},({className:E,style:N},M)=>c.createElement(s4,av({},e,{ref:$,title:o,ariaId:g,prefixCls:n,holderRef:M,style:{...N,...s,...w},className:K(i,E)})))});function sv(){return sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sv.apply(this,arguments)}const yP=e=>{const{prefixCls:t,style:n,visible:o,maskProps:s,motionName:i,className:u}=e;return c.createElement(wr,{key:"mask",visible:o,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:m,style:h},p)=>c.createElement("div",sv({ref:p,style:{...h,...n},className:K(`${t}-mask`,m,u)},s)))};function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cc.apply(this,arguments)}const xP=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:o=!1,focusTriggerAfterClose:s=!0,wrapStyle:i,wrapClassName:u,wrapProps:m,onClose:h,afterOpenChange:p,afterClose:g,transitionName:b,animation:y,closable:S=!0,mask:$=!0,maskTransitionName:C,maskAnimation:j,maskClosable:w=!0,maskStyle:R,maskProps:E,rootClassName:N,rootStyle:M,classNames:T,styles:O}=e,P=c.useRef(null),_=c.useRef(null),L=c.useRef(null),[A,B]=c.useState(o),[V,Z]=c.useState(!1),W=ya();function H(){rb(_.current,document.activeElement)||(P.current=document.activeElement)}function q(){rb(_.current,document.activeElement)||L.current?.focus()}function U(){if(B(!1),$&&P.current&&s){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}A&&g?.()}function J(X){X?q():U(),p?.(X)}function k(X){h?.(X)}const I=c.useRef(!1);let D=null;w&&(D=X=>{_.current===X.target&&I.current&&k(X)});function Y(X){I.current=X.target===_.current}c.useEffect(()=>{if(o){if(I.current=!1,B(!0),H(),_.current){const X=getComputedStyle(_.current);Z(X.position==="fixed")}}else A&&L.current.enableMotion()&&!L.current.inMotion()&&U()},[o]);const G={zIndex:n,...i,...O?.wrapper,display:A?null:"none"};return c.createElement("div",Cc({className:K(`${t}-root`,N),style:M},br(e,{data:!0})),c.createElement(yP,{prefixCls:t,visible:$&&o,motionName:Nw(t,C,j),style:{zIndex:n,...R,...O?.mask},maskProps:E,className:T?.mask}),c.createElement("div",Cc({className:K(`${t}-wrap`,u,T?.wrapper),ref:_,onClick:D,onMouseDown:Y,style:G},m),c.createElement(vP,Cc({},e,{isFixedPos:V,ref:L,closable:S,ariaId:W,prefixCls:t,visible:o&&A,onClose:k,onVisibleChanged:J,motionName:Nw(t,b,y)}))))};function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},iv.apply(this,arguments)}const SP=e=>{const{visible:t,getContainer:n,forceRender:o,destroyOnHidden:s=!1,afterClose:i,closable:u,panelRef:m,keyboard:h=!0,scrollLock:p=!0,onClose:g}=e,{scrollLock:b,...y}=e,[S,$]=c.useState(t),C=c.useMemo(()=>({panel:m}),[m]),j=({top:w,event:R})=>{if(w&&h){R.stopPropagation(),g?.(R);return}};return c.useEffect(()=>{t&&$(!0)},[t]),!o&&s&&!S?null:c.createElement(a4.Provider,{value:C},c.createElement(Yc,{open:t||o||S,onEsc:j,autoDestroy:!1,getContainer:n,autoLock:p&&(t||S)},c.createElement(xP,iv({},y,{destroyOnHidden:s,afterClose:()=>{const w=u&&typeof u=="object"?u:{},{afterClose:R}=w||{};R?.(),i?.(),$(!1)}}))))},As="RC_FORM_INTERNAL_HOOKS",En=()=>{Cr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},qs=c.createContext({getFieldValue:En,getFieldsValue:En,getFieldError:En,getFieldWarning:En,getFieldsError:En,isFieldsTouched:En,isFieldTouched:En,isFieldValidating:En,isFieldsValidating:En,resetFields:En,setFields:En,setFieldValue:En,setFieldsValue:En,validateFields:En,submit:En,getInternalHooks:()=>(En(),{dispatch:En,initEntityValue:En,registerField:En,useSubscribe:En,setInitialValues:En,destroyForm:En,setCallbacks:En,registerWatch:En,getFields:En,setValidateMessages:En,setPreserve:En,getInitialValue:En})}),_c=c.createContext(null);function lv(e){return e==null?[]:Array.isArray(e)?e:[e]}function CP(e){return e&&!!e._init}function cv(){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 jg=cv(),$P=/%[sdj%]/g;let wP=()=>{};function uv(e){if(!e||!e.length)return null;const t={};return e.forEach(n=>{const o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function eo(e,...t){let n=0;const o=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace($P,i=>{if(i==="%%")return"%";if(n>=o)return i;switch(i){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return i}}):e}function EP(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function tr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||EP(t)&&typeof e=="string"&&!e)}function NP(e,t,n){const o=[];let s=0;const i=e.length;function u(m){o.push(...m||[]),s++,s===i&&n(o)}e.forEach(m=>{t(m,u)})}function Rw(e,t,n){let o=0;const s=e.length;function i(u){if(u&&u.length){n(u);return}const m=o;o=o+1,m<s?t(e[m],i):n([])}i([])}function jP(e){const t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}class Mw extends Error{errors;fields;constructor(t,n){super("Async Validation Error"),this.errors=t,this.fields=n}}function RP(e,t,n,o,s){if(t.first){const b=new Promise((y,S)=>{const $=j=>(o(j),j.length?S(new Mw(j,uv(j))):y(s)),C=jP(e);Rw(C,n,$)});return b.catch(y=>y),b}const i=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),m=u.length;let h=0;const p=[],g=new Promise((b,y)=>{const S=$=>{if(p.push.apply(p,$),h++,h===m)return o(p),p.length?y(new Mw(p,uv(p))):b(s)};u.length||(o(p),b(s)),u.forEach($=>{const C=e[$];i.indexOf($)!==-1?Rw(C,n,S):NP(C,n,S)})});return g.catch(b=>b),g}function MP(e){return!!(e&&e.message!==void 0)}function TP(e,t){let n=e;for(let o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function Tw(e,t){return n=>{let o;return e.fullFields?o=TP(t,e.fullFields):o=t[n.field||e.fullField],MP(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function Ow(e,t){if(t){for(const n in t)if(t.hasOwnProperty(n)){const o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]={...e[n],...o}:e[n]=o}}return e}const Ii="enum",OP=(e,t,n,o,s)=>{e[Ii]=Array.isArray(e[Ii])?e[Ii]:[],e[Ii].indexOf(t)===-1&&o.push(eo(s.messages[Ii],e.fullField,e[Ii].join(", ")))},zP=(e,t,n,o,s)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(eo(s.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||o.push(eo(s.messages.pattern.mismatch,e.fullField,t,e.pattern))))},AP=(e,t,n,o,s)=>{const i=typeof e.len=="number",u=typeof e.min=="number",m=typeof e.max=="number",h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let p=t,g=null;const b=typeof t=="number",y=typeof t=="string",S=Array.isArray(t);if(b?g="number":y?g="string":S&&(g="array"),!g)return!1;S&&(p=t.length),y&&(p=t.replace(h,"_").length),i?p!==e.len&&o.push(eo(s.messages[g].len,e.fullField,e.len)):u&&!m&&p<e.min?o.push(eo(s.messages[g].min,e.fullField,e.min)):m&&!u&&p>e.max?o.push(eo(s.messages[g].max,e.fullField,e.max)):u&&m&&(p<e.min||p>e.max)&&o.push(eo(s.messages[g].range,e.fullField,e.min,e.max))},i4=(e,t,n,o,s,i)=>{e.required&&(!n.hasOwnProperty(e.field)||tr(t,i||e.type))&&o.push(eo(s.messages.required,e.fullField))};let Id;const IP=(()=>{if(Id)return Id;const e="[a-fA-F\\d:]",t=M=>M&&M.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",u=`(?:${[`(?:${o}:){7}(?:${o}|:)`,`(?:${o}:){6}(?:${n}|:${o}|:)`,`(?:${o}:){5}(?::${n}|(?::${o}){1,2}|:)`,`(?:${o}:){4}(?:(?::${o}){0,1}:${n}|(?::${o}){1,3}|:)`,`(?:${o}:){3}(?:(?::${o}){0,2}:${n}|(?::${o}){1,4}|:)`,`(?:${o}:){2}(?:(?::${o}){0,3}:${n}|(?::${o}){1,5}|:)`,`(?:${o}:){1}(?:(?::${o}){0,4}:${n}|(?::${o}){1,6}|:)`,`(?::(?:(?::${o}){0,5}:${n}|(?::${o}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,m=new RegExp(`(?:^${n}$)|(?:^${u}$)`),h=new RegExp(`^${n}$`),p=new RegExp(`^${u}$`),g=M=>M&&M.exact?m:new RegExp(`(?:${t(M)}${n}${t(M)})|(?:${t(M)}${u}${t(M)})`,"g");g.v4=M=>M&&M.exact?h:new RegExp(`${t(M)}${n}${t(M)}`,"g"),g.v6=M=>M&&M.exact?p:new RegExp(`${t(M)}${u}${t(M)}`,"g");const b="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",S=g.v4().source,$=g.v6().source,N=`(?:${b}|www\\.)${y}(?:localhost|${S}|${$}|(?:(?:[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 Id=new RegExp(`(?:^${N}$)`,"i"),Id}),Rg={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},hc={integer(e){return hc.number(e)&&parseInt(e,10)===e},float(e){return hc.number(e)&&!hc.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"&&!hc.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(Rg.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(Rg.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(IP())},hex(e){return typeof e=="string"&&!!e.match(Rg.hex)}},PP=(e,t,n,o,s)=>{if(e.required&&t===void 0){i4(e,t,n,o,s);return}const i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=e.type;i.indexOf(u)>-1?hc[u](t)||o.push(eo(s.messages.types[u],e.fullField,e.type)):u&&typeof t!==e.type&&o.push(eo(s.messages.types[u],e.fullField,e.type))},LP=(e,t,n,o,s)=>{(/^\s+$/.test(t)||t==="")&&o.push(eo(s.messages.whitespace,e.fullField))},Jt={required:i4,whitespace:LP,type:PP,range:AP,enum:OP,pattern:zP},_P=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s)}n(i)},BP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Jt.required(e,t,o,i,s,"array"),t!=null&&(Jt.type(e,t,o,i,s),Jt.range(e,t,o,i,s))}n(i)},DP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&Jt.type(e,t,o,i,s)}n(i)},HP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t,"date")&&!e.required)return n();if(Jt.required(e,t,o,i,s),!tr(t,"date")){let m;t instanceof Date?m=t:m=new Date(t),Jt.type(e,m,o,i,s),m&&Jt.range(e,m.getTime(),o,i,s)}}n(i)},FP="enum",kP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&Jt[FP](e,t,o,i,s)}n(i)},VP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&(Jt.type(e,t,o,i,s),Jt.range(e,t,o,i,s))}n(i)},qP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&(Jt.type(e,t,o,i,s),Jt.range(e,t,o,i,s))}n(i)},WP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&Jt.type(e,t,o,i,s)}n(i)},UP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(t===""&&(t=void 0),tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&(Jt.type(e,t,o,i,s),Jt.range(e,t,o,i,s))}n(i)},GP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),t!==void 0&&Jt.type(e,t,o,i,s)}n(i)},XP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t,"string")&&!e.required)return n();Jt.required(e,t,o,i,s),tr(t,"string")||Jt.pattern(e,t,o,i,s)}n(i)},KP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t)&&!e.required)return n();Jt.required(e,t,o,i,s),tr(t)||Jt.type(e,t,o,i,s)}n(i)},YP=(e,t,n,o,s)=>{const i=[],u=Array.isArray(t)?"array":typeof t;Jt.required(e,t,o,i,s,u),n(i)},QP=(e,t,n,o,s)=>{const i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t,"string")&&!e.required)return n();Jt.required(e,t,o,i,s,"string"),tr(t,"string")||(Jt.type(e,t,o,i,s),Jt.range(e,t,o,i,s),Jt.pattern(e,t,o,i,s),e.whitespace===!0&&Jt.whitespace(e,t,o,i,s))}n(i)},Pd=(e,t,n,o,s)=>{const i=e.type,u=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(tr(t,i)&&!e.required)return n();Jt.required(e,t,o,u,s,i),tr(t,i)||Jt.type(e,t,o,u,s)}n(u)},lc={string:QP,method:WP,number:UP,boolean:DP,regexp:KP,integer:qP,float:VP,array:BP,object:GP,enum:kP,pattern:XP,date:HP,url:Pd,hex:Pd,email:Pd,tel:Pd,required:YP,any:_P};class Jf{static register=function(n,o){if(typeof o!="function")throw new Error("Cannot register a validator by type, validator is not a function");lc[n]=o};static warning=wP;static messages=jg;static validators=lc;rules=null;_messages=jg;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(n=>{const o=t[n];this.rules[n]=Array.isArray(o)?o:[o]})}messages(t){return t&&(this._messages=Ow(cv(),t)),this._messages}validate(t,n={},o=()=>{}){let s=t,i=n,u=o;if(typeof i=="function"&&(u=i,i={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function m(b){let y=[],S={};function $(C){Array.isArray(C)?y=y.concat(...C):y.push(C)}for(let C=0;C<b.length;C++)$(b[C]);y.length?(S=uv(y),u(y,S)):u(null,s)}if(i.messages){let b=this.messages();b===jg&&(b=cv()),Ow(b,i.messages),i.messages=b}else i.messages=this.messages();const h={};(i.keys||Object.keys(this.rules)).forEach(b=>{const y=this.rules[b];let S=s[b];y.forEach($=>{let C=$;typeof C.transform=="function"&&(s===t&&(s={...s}),S=s[b]=C.transform(S),S!=null&&(C.type=C.type||(Array.isArray(S)?"array":typeof S))),typeof C=="function"?C={validator:C}:C={...C},C.validator=this.getValidationMethod(C),C.validator&&(C.field=b,C.fullField=C.fullField||b,C.type=this.getType(C),h[b]=h[b]||[],h[b].push({rule:C,value:S,source:s,field:b}))})});const g={};return RP(h,i,(b,y)=>{const S=b.rule;let $=(S.type==="object"||S.type==="array")&&(typeof S.fields=="object"||typeof S.defaultField=="object");$=$&&(S.required||!S.required&&b.value),S.field=b.field;function C(R,E){return{...E,fullField:`${S.fullField}.${R}`,fullFields:S.fullFields?[...S.fullFields,R]:[R]}}function j(R=[]){let E=Array.isArray(R)?R:[R];!i.suppressWarning&&E.length&&Jf.warning("async-validator:",E),E.length&&S.message!==void 0&&S.message!==null&&(E=[].concat(S.message));let N=E.map(Tw(S,s));if(i.first&&N.length)return g[S.field]=1,y(N);if(!$)y(N);else{if(S.required&&!b.value)return S.message!==void 0?N=[].concat(S.message).map(Tw(S,s)):i.error&&(N=[i.error(S,eo(i.messages.required,S.field))]),y(N);let M={};S.defaultField&&Object.keys(b.value).map(P=>{M[P]=S.defaultField}),M={...M,...b.rule.fields};const T={};Object.keys(M).forEach(P=>{const _=M[P],L=Array.isArray(_)?_:[_];T[P]=L.map(C.bind(null,P))});const O=new Jf(T);O.messages(i.messages),b.rule.options&&(b.rule.options.messages=i.messages,b.rule.options.error=i.error),O.validate(b.value,b.rule.options||i,P=>{const _=[];N&&N.length&&_.push(...N),P&&P.length&&_.push(...P),y(_.length?_:null)})}}let w;if(S.asyncValidator)w=S.asyncValidator(S,b.value,j,b.source,i);else if(S.validator){try{w=S.validator(S,b.value,j,b.source,i)}catch(R){console.error?.(R),i.suppressValidatorError||setTimeout(()=>{throw R},0),j(R.message)}w===!0?j():w===!1?j(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||`${S.fullField||S.field} fails`):w instanceof Array?j(w):w instanceof Error&&j(w.message)}w&&w.then&&w.then(()=>j(),R=>j(R))},b=>{m(b)},s)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!lc.hasOwnProperty(t.type))throw new Error(eo("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const n=Object.keys(t),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?lc.required:lc[this.getType(t)]||void 0}}const _r="'${name}' is not a valid ${type}",l4={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:_r,method:_r,array:_r,object:_r,number:_r,date:_r,boolean:_r,integer:_r,float:_r,regexp:_r,email:_r,tel:_r,url:_r,hex:_r},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}"}},zw=Jf;function ZP(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const o=n.slice(2,-1);return t[o]})}const Aw="CODE_LOGIC_ERROR";async function dv(e,t,n,o,s){const i={...n};if(delete i.ruleIndex,zw.warning=()=>{},i.validator){const y=i.validator;i.validator=(...S)=>{try{return y(...S)}catch($){return console.error($),Promise.reject(Aw)}}}let u=null;i&&i.type==="array"&&i.defaultField&&(u=i.defaultField,delete i.defaultField);const m=new zw({[e]:[i]}),h=Vi(l4,o.validateMessages);m.messages(h);let p=[];try{await Promise.resolve(m.validate({[e]:t},{...o}))}catch(y){y.errors&&(p=y.errors.map(({message:S},$)=>{const C=S===Aw?h.default:S;return c.isValidElement(C)?c.cloneElement(C,{key:`error_${$}`}):C}))}if(!p.length&&u&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((S,$)=>dv(`${e}.${$}`,S,u,o,s)))).reduce((S,$)=>[...S,...$],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...s};return p.map(y=>typeof y=="string"?ZP(y,g):y)}function JP(e,t,n,o,s,i){const u=e.join("."),m=n.map((p,g)=>{const b=p.validator,y={...p,ruleIndex:g};return b&&(y.validator=(S,$,C)=>{let j=!1;const R=b(S,$,(...E)=>{Promise.resolve().then(()=>{Cr(!j,"Your validator function has already return a promise. `callback` will be ignored."),j||C(...E)})});j=R&&typeof R.then=="function"&&typeof R.catch=="function",Cr(j,"`callback` is deprecated. Please return a promise instead."),j&&R.then(()=>{C()}).catch(E=>{C(E||" ")})}),y}).sort(({warningOnly:p,ruleIndex:g},{warningOnly:b,ruleIndex:y})=>!!p==!!b?g-y:p?1:-1);let h;if(s===!0)h=new Promise(async(p,g)=>{for(let b=0;b<m.length;b+=1){const y=m[b],S=await dv(u,t,y,o,i);if(S.length){g([{errors:S,rule:y}]);return}}p([])});else{const p=m.map(g=>dv(u,t,g,o,i).then(b=>({errors:b,rule:g})));h=(s?tL(p):eL(p)).then(g=>Promise.reject(g))}return h.catch(p=>p),h}async function eL(e){return Promise.all(e).then(t=>[].concat(...t))}async function tL(e){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(s=>{s.errors.length&&n([s]),t+=1,t===e.length&&n([])})})})}function Hn(e){return lv(e)}function Iw(e,t){let n={};return t.forEach(o=>{const s=Hr(e,o);n=Br(n,o,s)}),n}function Yi(e,t,n=!1){return e&&e.some(o=>em(t,o,n))}function em(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((o,s)=>e[s]===o)}function nL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),o=Object.keys(t);return[...new Set([...n,...o])].every(i=>{const u=e[i],m=t[i];return typeof u=="function"&&typeof m=="function"?!0:u===m})}function rL(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function Pw(e,t,n){const{length:o}=e;if(t<0||t>=o||n<0||n>=o)return e;const s=e[t],i=t-n;return i>0?[...e.slice(0,n),s,...e.slice(n,t),...e.slice(t+1,o)]:i<0?[...e.slice(0,t),...e.slice(t+1,n+1),s,...e.slice(n+1,o)]:e}const c4=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class oL{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(n=>{this.namePathList.every(o=>!em(o,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;c4(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),o=n.getFieldsValue(),s=n.getFieldsValue(!0);this.watcherList.forEach(i=>{i(o,s,this.namePathList)}),this.namePathList=[]}})}}async function aL(){return new Promise(e=>{c4(()=>{nn(()=>{e()})})})}function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fv.apply(this,arguments)}const Ns=[],cc=[];function Mg(e,t,n,o,s,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):o!==s}class sL extends c.PureComponent{static contextType=qs;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Ns;warnings=cc;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:o}=n(As);o(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:o}=n,{registerField:s}=o(As);this.cancelRegisterFunc=s(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:n,name:o}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,t,Hn(o)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:n}=this.props,{prefixName:o=[]}=n;return t!==void 0?[...o,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:n}=this.props;return t.map(o=>typeof o=="function"?o(n):o)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:n}=this.props;if(n){const o={...this.getMeta(),destroy:t};Rc(this.metaCache,o)||n(o),this.metaCache=o}else this.metaCache=null};onStoreChange=(t,n,o)=>{const{shouldUpdate:s,dependencies:i=[],onReset:u}=this.props,{store:m}=o,h=this.getNamePath(),p=this.getValue(t),g=this.getValue(m),b=n&&Yi(n,h);switch(o.type==="valueUpdate"&&o.source==="external"&&!Rc(p,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ns,this.warnings=cc,this.triggerMetaEvent()),o.type){case"reset":if(!n||b){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ns,this.warnings=cc,this.triggerMetaEvent(),u?.(),this.refresh();return}break;case"remove":{if(s&&Mg(s,t,m,p,g,o)){this.reRender();return}break}case"setField":{const{data:y}=o;if(b){"touched"in y&&(this.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(this.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(this.errors=y.errors||Ns),"warnings"in y&&(this.warnings=y.warnings||cc),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&Yi(n,h,!0)){this.reRender();return}if(s&&!h.length&&Mg(s,t,m,p,g,o)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(Hn).some(S=>Yi(o.relatedFields,S))){this.reRender();return}break}default:if(b||(!i.length||h.length||s)&&Mg(s,t,m,p,g,o)){this.reRender();return}break}s===!0&&this.reRender()};validateRules=t=>{const n=this.getNamePath(),o=this.getValue(),{triggerName:s,validateOnly:i=!1,delayFrame:u}=t||{},m=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:h=!1,messageVariables:p,validateDebounce:g}=this.props;u&&await aL();let b=this.getRules();if(s&&(b=b.filter(S=>S).filter(S=>{const{validateTrigger:$}=S;return $?lv($).includes(s):!0})),g&&s&&(await new Promise(S=>{setTimeout(S,g)}),this.validatePromise!==m))return[];const y=JP(n,o,b,t,h,p);return y.catch(S=>S).then((S=Ns)=>{if(this.validatePromise===m){this.validatePromise=null;const $=[],C=[];S.forEach?.(({rule:{warningOnly:j},errors:w=Ns})=>{j?C.push(...w):$.push(...w)}),this.errors=$,this.warnings=C,this.triggerMetaEvent(),this.reRender()}}),y});return i||(this.validatePromise=m,this.dirty=!0,this.errors=Ns,this.warnings=cc,this.triggerMetaEvent(),this.reRender()),m};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:n}=t.getInternalHooks(As);return n(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 o=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),o,this.props.fieldContext)),isFunction:!0}}const n=kr(t);return n.length!==1||!c.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:n}=this.props.fieldContext,o=this.getNamePath();return Hr(t||n(!0),o)};getControlled=(t={})=>{const{name:n,trigger:o="onChange",validateTrigger:s,getValueFromEvent:i,normalize:u,valuePropName:m="value",getValueProps:h,fieldContext:p}=this.props,g=s!==void 0?s:p.validateTrigger,b=this.getNamePath(),{getInternalHooks:y,getFieldsValue:S}=p,{dispatch:$}=y(As),C=this.getValue(),j=h||(M=>({[m]:M})),w=t[o],R=n!==void 0?j(C):{},E={...t,...R};return E[o]=(...M)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();const T=this.getValue();let O;i?O=i(...M):O=rL(m,...M),u&&(O=u(O,T,S(!0))),O!==T&&$({type:"updateValue",namePath:b,value:O}),w&&w(...M)},lv(g||[]).forEach(M=>{const T=E[M];E[M]=(...O)=>{T&&T(...O);const{rules:P}=this.props;P&&P.length&&$({type:"validateField",namePath:b,triggerName:M})}}),E};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:o,isFunction:s}=this.getOnlyChild(n);let i;return s?i=o:c.isValidElement(o)?i=c.cloneElement(o,this.getControlled(o.props)):(Cr(!o,"`children` of Field is not validate ReactElement."),i=o),c.createElement(c.Fragment,{key:t},i)}}function my({name:e,...t}){const n=c.useContext(qs),o=c.useContext(_c),s=e!==void 0?Hn(e):void 0,i=t.isListField??!!o;let u="keep";return i||(u=`_${(s||[]).join("_")}`),c.createElement(sL,fv({key:u,name:s,isListField:i},t,{fieldContext:n}))}function u4({name:e,initialValue:t,children:n,rules:o,validateTrigger:s,isListField:i}){const u=c.useContext(qs),m=c.useContext(_c),p=c.useRef({keys:[],id:0}).current,g=c.useMemo(()=>[...Hn(u.prefixName)||[],...Hn(e)],[u.prefixName,e]),b=c.useMemo(()=>({...u,prefixName:g}),[u,g]),y=c.useMemo(()=>({getKey:$=>{const C=g.length,j=$[C];return[p.keys[j],$.slice(C+1)]}}),[p,g]);if(typeof n!="function")return Cr(!1,"Form.List only accepts function as children."),null;const S=($,C,{source:j})=>j==="internal"?!1:$!==C;return c.createElement(_c.Provider,{value:y},c.createElement(qs.Provider,{value:b},c.createElement(my,{name:[],shouldUpdate:S,rules:o,validateTrigger:s,initialValue:t,isList:!0,isListField:i??!!m},({value:$=[],onChange:C},j)=>{const{getFieldValue:w}=u,R=()=>w(g||[])||[],E={add:(M,T)=>{const O=R();T>=0&&T<=O.length?(p.keys=[...p.keys.slice(0,T),p.id,...p.keys.slice(T)],C([...O.slice(0,T),M,...O.slice(T)])):(p.keys=[...p.keys,p.id],C([...O,M])),p.id+=1},remove:M=>{const T=R(),O=new Set(Array.isArray(M)?M:[M]);O.size<=0||(p.keys=p.keys.filter((P,_)=>!O.has(_)),C(T.filter((P,_)=>!O.has(_))))},move(M,T){if(M===T)return;const O=R();M<0||M>=O.length||T<0||T>=O.length||(p.keys=Pw(p.keys,M,T),C(Pw(O,M,T)))}};let N=$||[];return Array.isArray(N)||(N=[]),n(N.map((M,T)=>{let O=p.keys[T];return O===void 0&&(p.keys[T]=p.id,O=p.keys[T],p.id+=1),{name:T,key:O,isListField:!0}}),E,j)})))}function iL(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((s,i)=>{e.forEach((u,m)=>{u.catch(h=>(t=!0,h)).then(h=>{n-=1,o[m]=h,!(n>0)&&(t&&i(o),s(o))})})}):Promise.resolve([])}const mv="__@field_split__";function Ld(e){return e.map(t=>`${typeof t}:${t}`).join(mv)}class Pi{kvs=new Map;set(t,n){this.kvs.set(Ld(t),n)}get(t){return this.kvs.get(Ld(t))}getAsPrefix(t){const n=Ld(t),o=n+mv,s=[],i=this.kvs.get(n);return i!==void 0&&s.push(i),this.kvs.forEach((u,m)=>{m.startsWith(o)&&s.push(u)}),s}update(t,n){const o=this.get(t),s=n(o);s?this.set(t,s):this.delete(t)}delete(t){this.kvs.delete(Ld(t))}map(t){return[...this.kvs.entries()].map(([n,o])=>{const s=n.split(mv);return t({key:s.map(i=>{const[,u,m]=i.match(/^([^:]*):(.*)$/);return u==="number"?Number(m):m}),value:o})})}toJSON(){const t={};return this.map(({key:n,value:o})=>(t[n.join(".")]=o,null)),t}}class lL{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new oL(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===As?(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}):(Cr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,n)=>{if(this.initialValues=t||{},n){let o=Vi(t,this.store);this.prevWithoutPreserves?.map(({key:s})=>{o=Br(o,s,Hr(t,s))}),this.prevWithoutPreserves=null,this.updateStore(o)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new Pi;this.getFieldEntities(!0).forEach(o=>{this.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=Hr(this.initialValues,t);return t.length?Vi(n):n};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(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const n=new Pi;return this.getFieldEntities(t).forEach(o=>{const s=o.getNamePath();n.set(s,o)}),n};getFieldEntitiesForNamePathList=(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const o=this.getFieldsMap(!0);return n?t.flatMap(s=>{const i=Hn(s),u=o.getAsPrefix(i);return u.length?u:[{INVALIDATE_NAME_PATH:i}]}):t.map(s=>{const i=Hn(s);return o.get(i)||{INVALIDATE_NAME_PATH:Hn(s)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let o,s;if(t===!0||Array.isArray(t)?(o=t,s=n):t&&typeof t=="object"&&(s=t.filter),o===!0&&!s)return this.store;const i=this.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null,!0),u=[],m=[];i.forEach(p=>{const g=p.INVALIDATE_NAME_PATH||p.getNamePath();if(p.isList?.()){m.push(g);return}if(!s)u.push(g);else{const b="getMeta"in p?p.getMeta():null;s(b)&&u.push(g)}});let h=Iw(this.store,u.map(Hn));return m.forEach(p=>{Hr(h,p)||(h=Br(h,p,[]))}),h};getFieldValue=t=>{this.warningUnhooked();const n=Hn(t);return Hr(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((o,s)=>o&&!o.INVALIDATE_NAME_PATH?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Hn(t[s]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=Hn(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=Hn(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,o]=t;let s,i=!1;t.length===0?s=null:t.length===1?Array.isArray(n)?(s=n.map(Hn),i=!1):(s=null,i=n):(s=n.map(Hn),i=o);const u=this.getFieldEntities(!0),m=b=>b.isFieldTouched();if(!s)return i?u.every(b=>m(b)||b.isList()):u.some(m);const h=new Pi;s.forEach(b=>{h.set(b,[])}),u.forEach(b=>{const y=b.getNamePath();s.forEach(S=>{S.every(($,C)=>y[C]===$)&&h.update(S,$=>[...$,b])})});const p=b=>b.some(m),g=h.map(({value:b})=>b);return i?g.every(p):g.some(p)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(s=>s.isFieldValidating());const o=t.map(Hn);return n.some(s=>{const i=s.getNamePath();return Yi(o,i)&&s.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Pi,o=this.getFieldEntities(!0);o.forEach(u=>{const{initialValue:m}=u.props,h=u.getNamePath();if(m!==void 0){const p=n.get(h)||new Set;p.add({entity:u,value:m}),n.set(h,p)}});const s=u=>{u.forEach(m=>{const{initialValue:h}=m.props;if(h!==void 0){const p=m.getNamePath();if(this.getInitialValue(p)!==void 0)Cr(!1,`Form already set 'initialValues' with path '${p.join(".")}'. Field can not overwrite it.`);else{const b=n.get(p);if(b&&b.size>1)Cr(!1,`Multiple Field with path '${p.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(b){const y=this.getFieldValue(p);!m.isListField()&&(!t.skipExist||y===void 0)&&this.updateStore(Br(this.store,p,[...b][0].value))}}}})};let i;t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach(u=>{const m=n.get(u);m&&i.push(...[...m].map(h=>h.entity))})):i=o,s(i)};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(Vi(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const o=t.map(Hn);o.forEach(s=>{const i=this.getInitialValue(s);this.updateStore(Br(this.store,s,i))}),this.resetWithFieldInitialValue({namePathList:o}),this.notifyObservers(n,o,{type:"reset"}),this.notifyWatch(o)};setFields=t=>{this.warningUnhooked();const n=this.store,o=[];t.forEach(s=>{const{name:i,...u}=s,m=Hn(i);o.push(m),"value"in u&&this.updateStore(Br(this.store,m,u.value)),this.notifyObservers(n,[m],{type:"setField",data:s})}),this.notifyWatch(o)};getFields=()=>this.getFieldEntities(!0).map(o=>{const s=o.getNamePath(),u={...o.getMeta(),name:s,value:this.getFieldValue(s)};return Object.defineProperty(u,"originRCField",{value:!0}),u});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const o=t.getNamePath();Hr(this.store,o)===void 0&&this.updateStore(Br(this.store,o,n))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const o=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(o,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(o,s,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(u=>u!==t),!this.isMergedPreserve(s)&&(!o||i.length>1)){const u=o?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==u&&this.fieldEntities.every(m=>!em(m.getNamePath(),n))){const m=this.store;this.updateStore(Br(m,n,u,!0)),this.notifyObservers(m,[n],{type:"remove"}),this.triggerDependenciesUpdate(m,n)}}this.notifyWatch([n])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:n,value:o}=t;this.updateValue(n,o);break}case"validateField":{const{namePath:n,triggerName:o}=t;this.validateFields([n],{triggerName:o});break}}};notifyObservers=(t,n,o)=>{if(this.subscribable){const s={...o,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:i})=>{i(t,n,s)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,n)=>{const o=this.getDependencyChildrenFields(n);return o.length&&this.validateFields(o,{delayFrame:!0}),this.notifyObservers(t,o,{type:"dependenciesUpdate",relatedFields:[n,...o]}),o};updateValue=(t,n)=>{const o=Hn(t),s=this.store;this.updateStore(Br(this.store,o,n)),this.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),this.notifyWatch([o]);const i=this.triggerDependenciesUpdate(s,o),{onValuesChange:u}=this.callbacks;if(u){const m=Iw(this.store,[o]),h=this.getFieldsValue(),p=Br(h,o,Hr(m,o));u(m,p)}this.triggerOnFieldsChange([o,...i])};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const o=Vi(this.store,t);this.updateStore(o)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const n=new Set,o=[],s=new Pi;this.getFieldEntities().forEach(u=>{const{dependencies:m}=u.props;(m||[]).forEach(h=>{const p=Hn(h);s.update(p,(g=new Set)=>(g.add(u),g))})});const i=u=>{(s.get(u)||new Set).forEach(h=>{if(!n.has(h)){n.add(h);const p=h.getNamePath();h.isFieldDirty()&&p.length&&(o.push(p),i(p))}})};return i(t),o};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:o}=this.callbacks;if(o){const s=this.getFields();if(n){const u=new Pi;n.forEach(({name:m,errors:h})=>{u.set(m,h)}),s.forEach(m=>{m.errors=u.get(m.name)||m.errors})}const i=s.filter(({name:u})=>Yi(t,u));i.length&&o(i,s)}};validateFields=(t,n)=>{this.warningUnhooked();let o,s;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(o=t,s=n):s=t;const i=!!o,u=i?o.map(Hn):[],m=[...u],h=[],p=String(Date.now()),g=new Set,{recursive:b,dirty:y}=s||{};this.getFieldEntities(!0).forEach(j=>{const w=j.getNamePath();if(i||((!j.isList()||!u.some(R=>em(R,w,!0)))&&m.push(w),u.push(w)),!(!j.props.rules||!j.props.rules.length)&&!(y&&!j.isFieldDirty())&&(g.add(w.join(p)),!i||Yi(u,w,b))){const R=j.validateRules({validateMessages:{...l4,...this.validateMessages},...s});h.push(R.then(()=>({name:w,errors:[],warnings:[]})).catch(E=>{const N=[],M=[];return E.forEach?.(({rule:{warningOnly:T},errors:O})=>{T?M.push(...O):N.push(...O)}),N.length?Promise.reject({name:w,errors:N,warnings:M}):{name:w,errors:N,warnings:M}}))}});const S=iL(h);this.lastValidatePromise=S,S.catch(j=>j).then(j=>{const w=j.map(({name:R})=>R);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,j)});const $=S.then(()=>this.lastValidatePromise===S?Promise.resolve(this.getFieldsValue(m)):Promise.reject([])).catch(j=>{const w=j.filter(E=>E&&E.errors.length),R=w[0]?.errors?.[0];return Promise.reject({message:R,values:this.getFieldsValue(u),errorFields:w,outOfDate:this.lastValidatePromise!==S})});$.catch(j=>j);const C=u.filter(j=>g.has(j.join(p)));return this.triggerOnFieldsChange(C),$};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(o){console.error(o)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})}}function py(e){const t=c.useRef(null),[,n]=c.useState({});if(!t.current)if(e)t.current=e;else{const o=()=>{n({})},s=new lL(o);t.current=s.getForm()}return[t.current]}const pv=c.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),d4=({validateMessages:e,onFormChange:t,onFormFinish:n,children:o})=>{const s=c.useContext(pv),i=c.useRef({});return c.createElement(pv.Provider,{value:{...s,validateMessages:{...s.validateMessages,...e},triggerFormChange:(u,m)=>{t&&t(u,{changedFields:m,forms:i.current}),s.triggerFormChange(u,m)},triggerFormFinish:(u,m)=>{n&&n(u,{values:m,forms:i.current}),s.triggerFormFinish(u,m)},registerForm:(u,m)=>{u&&(i.current={...i.current,[u]:m}),s.registerForm(u,m)},unregisterForm:u=>{const m={...i.current};delete m[u],i.current=m,s.unregisterForm(u)}}},o)};function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hv.apply(this,arguments)}const cL=(e,t)=>{const{name:n,initialValues:o,fields:s,form:i,preserve:u,children:m,component:h="form",validateMessages:p,validateTrigger:g="onChange",onValuesChange:b,onFieldsChange:y,onFinish:S,onFinishFailed:$,clearOnDestroy:C,...j}=e,w=c.useRef(null),R=c.useContext(pv),[E]=py(i),{useSubscribe:N,setInitialValues:M,setCallbacks:T,setValidateMessages:O,setPreserve:P,destroyForm:_}=E.getInternalHooks(As);c.useImperativeHandle(t,()=>({...E,nativeElement:w.current})),c.useEffect(()=>(R.registerForm(n,E),()=>{R.unregisterForm(n)}),[R,E,n]),O({...R.validateMessages,...p}),T({onValuesChange:b,onFieldsChange:(H,...q)=>{R.triggerFormChange(n,H),y&&y(H,...q)},onFinish:H=>{R.triggerFormFinish(n,H),S&&S(H)},onFinishFailed:$}),P(u);const L=c.useRef(null);M(o,!L.current),L.current||(L.current=!0),c.useEffect(()=>()=>_(C),[]);let A;const B=typeof m=="function";if(B){const H=E.getFieldsValue(!0);A=m(H,E)}else A=m;N(!B);const V=c.useRef(null);c.useEffect(()=>{nL(V.current||[],s||[])||E.setFields(s||[]),V.current=s},[s,E]);const Z=c.useMemo(()=>({...E,validateTrigger:g}),[E,g]),W=c.createElement(_c.Provider,{value:null},c.createElement(qs.Provider,{value:Z},A));return h===!1?W:c.createElement(h,hv({},j,{ref:w,onSubmit:H=>{H.preventDefault(),H.stopPropagation(),E.submit()},onReset:H=>{H.preventDefault(),E.resetFields(),j.onReset?.(H)}}),W)};function Tg(e){try{return JSON.stringify(e)}catch{return Math.random()}}function f4(...e){const[t,n={}]=e,o=CP(n)?{form:n}:n,s=o.form,[i,u]=c.useState(()=>typeof t=="function"?t({}):void 0),m=c.useMemo(()=>Tg(i),[i]),h=c.useRef(m);h.current=m;const p=c.useContext(qs),g=s||p,b=g&&g._init,{getFieldsValue:y,getInternalHooks:S}=g,{registerWatch:$}=S(As),C=wt((w,R)=>{const E=o.preserve?R??y(!0):w??y(),N=typeof t=="function"?t(E):Hr(E,Hn(t));Tg(i)!==Tg(N)&&u(N)}),j=typeof t=="function"?t:JSON.stringify(t);return c.useEffect(()=>{b&&C()},[b,j]),c.useEffect(()=>b?$((R,E)=>{C(R,E)}):void 0,[b]),i}const uL=c.forwardRef(cL),ul=uL;ul.FormProvider=d4;ul.Field=my;ul.List=u4;ul.useForm=py;ul.useWatch=f4;const Uo=c.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),m4=c.createContext(null),p4=e=>{const t=Mn(e,["prefixCls"]);return c.createElement(d4,{...t})},hy=c.createContext({prefixCls:""}),ro=c.createContext({}),h4=({children:e,status:t,override:n})=>{const o=c.useContext(ro),s=c.useMemo(()=>{const i={...o};return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,o]);return c.createElement(ro.Provider,{value:s},e)},g4=c.createContext(void 0),nl=e=>{const{space:t,form:n,children:o}=e;if(!ar(o))return null;let s=o;return n&&(s=ue.createElement(h4,{override:!0,status:!0},s)),t&&(s=ue.createElement(cI,null,s)),s},dL=()=>to()&&window.document.documentElement;function b4(e,t,n){return c.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const Lm=e=>{const{prefixCls:t,className:n,style:o,size:s,shape:i}=e,u=K({[`${t}-lg`]:s==="large",[`${t}-sm`]:s==="small"}),m=K({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),h=c.useMemo(()=>$r(s)?{width:s,height:s,lineHeight:`${s}px`}:{},[s]);return c.createElement("span",{className:K(t,u,m,n),style:{...h,...o}})},fL=new Ft("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),gy=e=>({height:e,lineHeight:le(e)}),ts=e=>({width:e,...gy(e)}),mL=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:fL,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Og=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...gy(e)}),pL=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:s,controlHeightSM:i}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...ts(o)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...ts(s)},[`${t}${t}-sm`]:{...ts(i)}}},hL=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:s,controlHeightSM:i,gradientFromColor:u,calc:m}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:u,borderRadius:n,...Og(t,m)},[`${o}-lg`]:{...Og(s,m)},[`${o}-sm`]:{...Og(i,m)}}},v4=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:o,calc:s}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...ts(s(o).mul(2).equal())}},gL=e=>({[e.skeletonNodeCls]:{...v4(e)}}),bL=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:o}=e;return{[t]:{...v4(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...ts(n),maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},zg=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},Ag=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...gy(e)}),vL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:s,controlHeightSM:i,gradientFromColor:u,calc:m}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:u,borderRadius:t,width:m(o).mul(2).equal(),minWidth:m(o).mul(2).equal(),...Ag(o,m)},...zg(e,o,n),[`${n}-lg`]:{...Ag(s,m)},...zg(e,s,`${n}-lg`),[`${n}-sm`]:{...Ag(i,m)},...zg(e,i,`${n}-sm`)}},yL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:s,skeletonButtonCls:i,skeletonInputCls:u,skeletonNodeCls:m,skeletonImageCls:h,controlHeight:p,controlHeightLG:g,controlHeightSM:b,gradientFromColor:y,padding:S,marginSM:$,borderRadius:C,titleHeight:j,blockRadius:w,paragraphLiHeight:R,controlHeightXS:E,paragraphMarginTop:N}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:S,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...ts(p)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...ts(g)},[`${n}-sm`]:{...ts(b)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:j,background:y,borderRadius:w,[`+ ${s}`]:{marginBlockStart:b}},[s]:{padding:0,"> li":{width:"100%",height:R,listStyle:"none",background:y,borderRadius:w,"+ li":{marginBlockStart:E}}},[`${s}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${o}, ${s} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-section`]:{[o]:{marginBlockStart:$,[`+ ${s}`]:{marginBlockStart:N}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...vL(e),...pL(e),...hL(e),...gL(e),...bL(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[u]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
153
|
-
${o},
|
|
154
|
-
${s} > li,
|
|
155
|
-
${n},
|
|
156
|
-
${i},
|
|
157
|
-
${u},
|
|
158
|
-
${m},
|
|
159
|
-
${h}
|
|
160
|
-
`]:{...mL(e)}}}},xL=e=>{const{colorFillContent:t,colorFill:n}=e,o=t,s=n;return{color:o,colorGradientEnd:s,gradientFromColor:o,gradientToColor:s,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},eu=an("Skeleton",e=>{const{componentCls:t,calc:n}=e,o=rn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return yL(o)},xL,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),SL=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:s,active:i,style:u,styles:m,shape:h="circle",size:p,...g}=e,{getPrefixCls:b}=c.useContext(vt),y=b("skeleton",t),[S,$]=eu(y),C=Mr(w=>p??w),j=K(y,`${y}-element`,{[`${y}-active`]:i},o?.root,n,s,S,$);return c.createElement("div",{className:j,style:m?.root},c.createElement(Lm,{prefixCls:`${y}-avatar`,className:o?.content,style:{...m?.content,...u},shape:h,size:C,...g}))},CL=e=>{const{prefixCls:t,className:n,rootClassName:o,classNames:s,active:i,style:u,styles:m,block:h=!1,size:p,...g}=e,{getPrefixCls:b}=c.useContext(vt),y=b("skeleton",t),[S,$]=eu(y),C=Mr(w=>p??w),j=K(y,`${y}-element`,{[`${y}-active`]:i,[`${y}-block`]:h},s?.root,n,o,S,$);return c.createElement("div",{className:j,style:m?.root},c.createElement(Lm,{prefixCls:`${y}-button`,className:s?.content,style:{...m?.content,...u},size:C,...g}))},y4=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:s,internalClassName:i,style:u,styles:m,active:h,children:p}=e,{getPrefixCls:g}=c.useContext(vt),b=g("skeleton",t),[y,S]=eu(b),$=K(b,`${b}-element`,{[`${b}-active`]:h},y,o?.root,n,s,S);return c.createElement("div",{className:$,style:m?.root},c.createElement("div",{className:K(o?.content,i||`${b}-node`),style:{...m?.content,...u}},p))},$L=e=>{const{getPrefixCls:t}=c.useContext(vt),n=t("skeleton",e.prefixCls);return c.createElement(y4,{...e,internalClassName:`${n}-image`},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-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:`${n}-image-path`})))},wL=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:s,active:i,block:u,style:m,styles:h,size:p,...g}=e,{getPrefixCls:b}=c.useContext(vt),y=b("skeleton",t),[S,$]=eu(y),C=Mr(w=>p??w),j=K(y,`${y}-element`,{[`${y}-active`]:i,[`${y}-block`]:u},o?.root,n,s,S,$);return c.createElement("div",{className:j,style:h?.root},c.createElement(Lm,{prefixCls:`${y}-input`,className:o?.content,style:{...h?.content,...m},size:C,...g}))},EL=(e,t)=>{const{width:n,rows:o=2}=t;if(Array.isArray(n))return n[e];if(o-1===e)return n},NL=e=>{const{prefixCls:t,className:n,style:o,rows:s=0}=e,i=Array.from({length:s}).map((u,m)=>c.createElement("li",{key:m,style:{width:EL(m,e)}}));return c.createElement("ul",{className:K(t,n),style:o},i)},jL=({prefixCls:e,className:t,width:n,style:o})=>c.createElement("h3",{className:K(e,t),style:{width:n,...o}});function Ig(e){return Ot(e)?e:{}}function RL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ML(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function TL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Sr=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:s,classNames:i,style:u,styles:m,children:h,avatar:p=!1,title:g=!0,paragraph:b=!0,active:y,round:S}=e,{getPrefixCls:$,direction:C,className:j,style:w,classNames:R,styles:E}=en("skeleton"),N=$("skeleton",t),[M,T]=eu(N),O={...e,avatar:p,title:g,paragraph:b},P=dn(w),_=dn(u),[L,A]=sn([R,i],[E,P,m,_],{props:O});if(n||!("loading"in e)){const B=!!p,V=!!g,Z=!!b;let W;if(B){const U={className:L.avatar,prefixCls:`${N}-avatar`,...RL(V,Z),...Ig(p),style:A.avatar};W=c.createElement("div",{className:K(L.header,`${N}-header`),style:A.header},c.createElement(Lm,{...U}))}let H;if(V||Z){let U;if(V){const k={className:L.title,prefixCls:`${N}-title`,...ML(B,Z),...Ig(g),style:A.title};U=c.createElement(jL,{...k})}let J;if(Z){const k={className:L.paragraph,prefixCls:`${N}-paragraph`,...TL(B,V),...Ig(b),style:A.paragraph};J=c.createElement(NL,{...k})}H=c.createElement("div",{className:K(L.section,`${N}-section`),style:A.section},U,J)}const q=K(N,{[`${N}-with-avatar`]:B,[`${N}-active`]:y,[`${N}-rtl`]:C==="rtl",[`${N}-round`]:S},L.root,j,o,s,M,T);return c.createElement("div",{className:q,style:A.root},W,H)}return h??null};Sr.Button=CL;Sr.Avatar=SL;Sr.Input=wL;Sr.Image=$L;Sr.Node=y4;function Lw(){}const OL=c.createContext({add:Lw,remove:Lw});function x4(e){const t=c.useContext(OL),n=c.useRef(null);return wt(s=>{if(s){const i=e?s.querySelector(e):s;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}const _w=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(Jc);return ue.createElement(pt,{onClick:n,...e},t)},Bw=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:s}=c.useContext(Jc);return ue.createElement(pt,{...Yj(n),loading:e,onClick:s,...t},o)};function S4(e,t){return ue.createElement("span",{className:`${e}-close-x`},t||ue.createElement(zo,{className:`${e}-close-icon`}))}const C4=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:s,onOk:i,onCancel:u,okButtonProps:m,cancelButtonProps:h,footer:p}=e,[g]=Sa("Modal",fj()),b=t||g?.okText,y=o||g?.cancelText,S=ue.useMemo(()=>({confirmLoading:s,okButtonProps:m,cancelButtonProps:h,okTextLocale:b,cancelTextLocale:y,okType:n,onOk:i,onCancel:u}),[s,m,h,b,y,n,i,u]);let $;return Ht(p)||typeof p>"u"?($=ue.createElement(ue.Fragment,null,ue.createElement(_w,null),ue.createElement(Bw,null)),Ht(p)&&($=p($,{OkBtn:Bw,CancelBtn:_w})),$=ue.createElement(o4,{value:S},$)):$=p,ue.createElement(ty,{disabled:!1},$)},zL=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"}}}},AL=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},IL=(e,t)=>{const{componentCls:n,gridColumns:o,antCls:s}=e,[i,u]=on(s,"grid"),[,m]=on(s,"col"),h={};for(let p=o;p>=0;p--)p===0?(h[`${n}${t}-${p}`]={display:"none"},h[`${n}-push-${p}`]={insetInlineStart:"auto"},h[`${n}-pull-${p}`]={insetInlineEnd:"auto"},h[`${n}${t}-push-${p}`]={insetInlineStart:"auto"},h[`${n}${t}-pull-${p}`]={insetInlineEnd:"auto"},h[`${n}${t}-offset-${p}`]={marginInlineStart:0},h[`${n}${t}-order-${p}`]={order:0}):(h[`${n}${t}-${p}`]=[{[i("display")]:"block",display:"block"},{display:u("display"),flex:`0 0 ${p/o*100}%`,maxWidth:`${p/o*100}%`}],h[`${n}${t}-push-${p}`]={insetInlineStart:`${p/o*100}%`},h[`${n}${t}-pull-${p}`]={insetInlineEnd:`${p/o*100}%`},h[`${n}${t}-offset-${p}`]={marginInlineStart:`${p/o*100}%`},h[`${n}${t}-order-${p}`]={order:p});return h[`${n}${t}-flex`]={flex:m(`${t.replace(/-/,"")}-flex`)},h},gv=(e,t)=>IL(e,t),PL=(e,t,n)=>({[`@media (min-width: ${le(t)})`]:{...gv(e,n)}}),LL=()=>({}),_L=()=>({}),BL=an("Grid",zL,LL),$4=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),DL=an("Grid",e=>{const t=rn(e,{gridColumns:24}),n=$4(t);return delete n.xs,[AL(t),gv(t,""),gv(t,"-xs"),Object.keys(n).map(o=>PL(t,n[o],`-${o}`)).reduce((o,s)=>({...o,...s}),{})]},_L);function Dw(e){return{position:e,inset:0}}const HL=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...Dw("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...Dw("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Jj(e)}]},FL=e=>{const{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${le(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Ln(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${le(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...sl(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(o=>`${o} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:le(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...qo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${le(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
161
|
-
${t}-body,
|
|
162
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},kL=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},VL=e=>{const{componentCls:t}=e,n=$4(e),o={...n};delete o.xs;const s=`--${t.replace(".","")}-`,i=Object.keys(o).map(u=>({[`@media (min-width: ${le(o[u])})`]:{width:`var(${s}${u}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Rn(Object.keys(n).map((u,m)=>{const h=Object.keys(n)[m-1];return h?{[`${s}${u}-width`]:`var(${s}${h}-width)`}:null})),[{width:`var(${s}xs-width)`}],Rn(i))}}},w4=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return rn(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},E4=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${le(e.paddingMD)} ${le(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${le(e.padding)} ${le(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${le(e.paddingXS)} ${le(e.padding)}`:0,footerBorderTop:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${le(e.padding*2)} ${le(e.padding*2)} ${le(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),N4=an("Modal",e=>{const t=w4(e);return[FL(t),kL(t),HL(t),Im(t,"zoom"),VL(t)]},E4,{unitless:{titleLineHeight:!0}});let bv;const qL=e=>{bv={x:e.pageX,y:e.pageY},setTimeout(()=>{bv=null},100)};dL()&&document.documentElement.addEventListener("click",qL,!0);const j4=e=>{const{prefixCls:t,className:n,rootClassName:o,open:s,wrapClassName:i,centered:u,getContainer:m,style:h,width:p=520,footer:g,classNames:b,styles:y,children:S,loading:$,confirmLoading:C,zIndex:j,mousePosition:w,onOk:R,onCancel:E,okButtonProps:N,cancelButtonProps:M,destroyOnHidden:T,destroyOnClose:O,panelRef:P=null,closable:_,mask:L,modalRender:A,maskClosable:B,_semanticOmit:V,scrollLock:Z,focusTriggerAfterClose:W,focusable:H,_renderSemanticContent:q,...U}=e,{getPopupContainer:J,getPrefixCls:k,direction:I,className:D,style:Y,classNames:G,styles:X,centered:ee,cancelButtonProps:Q,okButtonProps:ae,mask:se,focusable:ie}=en("modal"),{modal:fe}=c.useContext(vt),[oe,re]=c.useMemo(()=>typeof _=="boolean"?[void 0,void 0]:[_?.afterClose,_?.onClose],[_]),pe=k("modal",t),ve=k(),[Ce,he,te]=Bj(L,se,pe,B),Se=b4({...ie,...H},Ce,W),Te=Ze=>{C||(E?.(Ze),re?.())},Ee=Ze=>{R?.(Ze),re?.()},Le=Rr(pe),[Pe,ye]=N4(pe,Le),Ie=K(i,{[`${pe}-centered`]:u??ee,[`${pe}-wrap-rtl`]:I==="rtl"}),De=g!==null&&!$?c.createElement(C4,{...e,okButtonProps:{...ae,...N},onOk:Ee,cancelButtonProps:{...Q,...M},onCancel:Te}):null,[Me,qe,tt,Xe]=ny(os(e),os(fe),{closable:!0,closeIcon:c.createElement(zo,{className:`${pe}-close-icon`}),closeIconRender:Ze=>S4(pe,Ze)}),He=Me?{disabled:tt,closeIcon:qe,afterClose:oe,...Xe}:!1,Ue=A?Ze=>c.createElement("div",{className:`${pe}-render`},A(Ze)):void 0,Qe=`.${pe}-${A?"render":"container"}`,ke=x4(Qe),Oe=Er(P,ke),[Je,nt]=Zc("Modal",j),ut={...e,width:p,panelRef:P,focusTriggerAfterClose:Se.focusTriggerAfterClose,focusable:Se,mask:Ce,maskClosable:te,zIndex:Je},[Rt,ht]=sn([G,b,he],[X,y],{props:ut}),Ut=V?Mn(Rt,V):Rt,_t=V?Mn(ht,V):ht,Ct=q?q({classNames:Rt,styles:ht}):S,[kt,Pt]=c.useMemo(()=>Ot(p)?[void 0,p]:[p,void 0],[p]),Vt=c.useMemo(()=>{const Ze={};return Pt&&Object.keys(Pt).forEach($t=>{const We=Pt[$t];Un(We)&&(Ze[`--${pe}-${$t}-width`]=$r(We)?`${We}px`:We)}),Ze},[pe,Pt]);return c.createElement(nl,{form:!0,space:!0},c.createElement(Tm.Provider,{value:nt},c.createElement(SP,{width:kt,...U,zIndex:Je,getContainer:m===void 0?J:m,prefixCls:pe,rootClassName:K(Pe,o,ye,Le,Ut.root),rootStyle:_t.root,footer:De,visible:s,mousePosition:w??bv,onClose:Te,closable:He,closeIcon:qe,transitionName:Wo(ve,"zoom",e.transitionName),maskTransitionName:Wo(ve,"fade",e.maskTransitionName),mask:Ce,maskClosable:te,scrollLock:Z,className:K(Pe,n,D),style:{...Y,...h,...Vt},classNames:{...Ut,wrapper:K(Ut.wrapper,Ie)},styles:_t,panelRef:Oe,destroyOnHidden:T??O,modalRender:Ue,focusTriggerAfterClose:Se.focusTriggerAfterClose,focusTrap:Se.trap},$?c.createElement(Sr,{active:!0,title:!1,paragraph:{rows:4},className:`${pe}-body-skeleton`}):Ct)))},WL=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:s,fontSize:i,lineHeight:u,modalTitleHeight:m,fontHeight:h,confirmBodyPadding:p}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...ks()},[`&${t} ${t}-body`]:{padding:p},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:s,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(h).sub(s).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(m).sub(s).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${le(e.marginSM)})`},[`${g}-body-no-icon ${g}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${le(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${g}-container`]:{color:e.colorText,fontSize:i,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}}},UL=Xs(["Modal","confirm"],e=>{const t=w4(e);return WL(t)},E4,{order:-1e3}),GL=["body"],R4=e=>{const{prefixCls:t,icon:n,okText:o,cancelText:s,confirmPrefixCls:i,type:u,okCancel:m,footer:h,locale:p,autoFocusButton:g,focusable:b,contentClassName:y,contentStyle:S,...$}=e,{infoIcon:C,successIcon:j,errorIcon:w,warningIcon:R}=en("modal");let E=n;if(n===void 0)switch(u){case"info":E=vo(C,c.createElement(Rm,null));break;case"success":E=vo(j,c.createElement(il,null));break;case"error":E=vo(w,c.createElement(is,null));break;default:E=vo(R,c.createElement(Kc,null))}const N=m??u==="confirm",M=c.useMemo(()=>{const q=b?.autoFocusButton||g;return q||q===null?q:"ok"},[g,b?.autoFocusButton]),[T]=Sa("Modal"),O=p||T,P=o||(N?O?.okText:O?.justOkText),_=s||O?.cancelText,{closable:L}=$,{onClose:A}=Ot(L)?L:{},B=c.useMemo(()=>({autoFocusButton:M,cancelTextLocale:_,okTextLocale:P,mergedOkCancel:N,onClose:A,...$}),[M,_,P,N,A,$]),V=c.createElement(c.Fragment,null,c.createElement(ww,null),c.createElement(Ew,null)),Z=ar(e.title),W=ar(E),H=`${i}-body`;return c.createElement("div",{className:`${i}-body-wrapper`},c.createElement("div",{className:K(H,{[`${H}-has-title`]:Z,[`${H}-no-icon`]:!W})},E,c.createElement("div",{className:`${i}-paragraph`},Z&&c.createElement("span",{className:`${i}-title`},e.title),c.createElement("div",{className:K(`${i}-content`,y),style:S},e.content))),h===void 0||Ht(h)?c.createElement(o4,{value:B},c.createElement("div",{className:`${i}-btns`},Ht(h)?h(V,{OkBtn:Ew,CancelBtn:ww}):V)):h,c.createElement(UL,{prefixCls:t}))},XL=e=>{const{close:t,zIndex:n,maskStyle:o,direction:s,prefixCls:i,wrapClassName:u,rootPrefixCls:m,bodyStyle:h,closable:p=!1,onConfirm:g,styles:b,title:y,mask:S,maskClosable:$,okButtonProps:C,cancelButtonProps:j}=e,{cancelButtonProps:w,okButtonProps:R}=en("modal"),E=`${i}-confirm`,N=e.width||416,M=e.style||{},T=Ht(b)?B=>({body:h,mask:o,...b(B)}):{body:h,mask:o,...b},O=Mn(e,["bodyStyle","maskStyle"]),P=K(E,`${E}-${e.type}`,{[`${E}-rtl`]:s==="rtl"},e.className),_=c.useMemo(()=>{const B=ev(S,$);return B.closable??(B.closable=!1),B},[S,$]),[,L]=xo(),A=c.useMemo(()=>n!==void 0?n:L.zIndexPopupBase+ry,[n,L]);return c.createElement(j4,{...O,className:P,wrapClassName:K({[`${E}-centered`]:!!e.centered},u),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Wo(m||"","zoom",e.transitionName),maskTransitionName:Wo(m||"","fade",e.maskTransitionName),mask:_,style:M,styles:T,width:N,zIndex:A,closable:p,_semanticOmit:GL,_renderSemanticContent:({classNames:B,styles:V})=>c.createElement(R4,{...e,confirmPrefixCls:E,okButtonProps:{...R,...C},cancelButtonProps:{...w,...j},contentClassName:B.body,contentStyle:V.body})})},M4=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:s}=e;return c.createElement(Ca,{prefixCls:t,iconPrefixCls:n,direction:o,theme:s},c.createElement(XL,{...e}))},Is=[];let T4="";function O4(){return T4}const KL=e=>{const{prefixCls:t,getContainer:n,direction:o}=e,s=fj(),i=c.useContext(vt),u=O4()||i.getPrefixCls(),m=t||`${u}-modal`;let h=n;return h===!1&&(h=void 0),ue.createElement(M4,{...e,rootPrefixCls:u,prefixCls:m,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:o??i.direction,locale:i.locale?.Modal??s,getContainer:h})};function tu(e){const t=Fz(),n=document.createDocumentFragment();let o={...e,close:m,open:!0},s;function i(...p){p.some(b=>b?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let b=0;b<Is.length;b++)if(Is[b]===m){Is.splice(b,1);break}mN(n).then(()=>{})}const u=p=>{clearTimeout(s),s=setTimeout(()=>{const g=t.getPrefixCls(void 0,O4()),b=t.getIconPrefixCls(),y=t.getTheme(),S=ue.createElement(KL,{...p});fN(ue.createElement(Ca,{prefixCls:g,iconPrefixCls:b,theme:y},Ht(t.holderRender)?t.holderRender(S):S),n)})};function m(...p){o={...o,open:!1,afterClose:()=>{Ht(e.afterClose)&&e.afterClose(),i.apply(this,p)}},u(o)}function h(p){Ht(p)?o=p(o):o={...o,...p},u(o)}return u(o),Is.push(m),{destroy:m,update:h}}function z4(e){return{...e,type:"warning"}}function A4(e){return{...e,type:"info"}}function I4(e){return{...e,type:"success"}}function P4(e){return{...e,type:"error"}}function L4(e){return{...e,type:"confirm"}}function YL({rootPrefixCls:e}){T4=e}const QL=c.forwardRef((e,t)=>{const{afterClose:n,config:o,...s}=e,[i,u]=c.useState(!0),[m,h]=c.useState(o),{direction:p,getPrefixCls:g}=c.useContext(vt),b=g("modal"),y=g(),S=()=>{n(),m.afterClose?.()},$=(...w)=>{u(!1),w.some(E=>E?.triggerCancel)&&m.onCancel?.(()=>{},...w.slice(1))};c.useImperativeHandle(t,()=>({destroy:$,update:w=>{h(R=>{const E=Ht(w)?w(R):w;return{...R,...E}})}}));const C=m.okCancel??m.type==="confirm",[j]=Sa("Modal",va.Modal);return c.createElement(M4,{prefixCls:b,rootPrefixCls:y,...m,close:$,open:i,afterClose:S,okText:m.okText||(C?j?.okText:j?.justOkText),direction:m.direction||p,cancelText:m.cancelText||j?.cancelText,...s})});let Hw=0;const ZL=c.memo(c.forwardRef((e,t)=>{const[n,o]=pA();return c.useImperativeHandle(t,()=>({patchElement:o}),[o]),c.createElement(c.Fragment,null,n)}));function _4(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Rn(t).forEach(u=>{u()}),n([]))},[t]);const o=c.useCallback(i=>function(m){Hw+=1;const h=c.createRef();let p;const g=new Promise(C=>{p=C});let b=!1,y;const S=c.createElement(QL,{key:`modal-${Hw}`,config:i(m),ref:h,afterClose:()=>{y?.()},isSilent:()=>b,onConfirm:C=>{p(C)}});return y=e.current?.patchElement(S),y&&Is.push(y),{destroy:()=>{function C(){h.current?.destroy()}h.current?C():n(j=>[].concat(Rn(j),[C]))},update:C=>{function j(){h.current?.update(C)}h.current?j():n(w=>[].concat(Rn(w),[j]))},then:C=>(b=!0,g.then(C))}},[]);return[c.useMemo(()=>({info:o(A4),success:o(I4),error:o(P4),warning:o(z4),confirm:o(L4)}),[o]),c.createElement(ZL,{key:"modal-holder",ref:e})]}const JL={info:c.createElement(Rm,null),success:c.createElement(il,null),error:c.createElement(is,null),warning:c.createElement(Kc,null),loading:c.createElement(ll,null)};function B4(e,t){return t===null||t===!1?null:t||c.createElement(zo,{className:`${e}-close-icon`})}const e_=4.5,t_="topRight",n_={offset:8},r_=({children:e,prefixCls:t})=>{const n=Rr(t),[o,s]=_A(t,n);return ue.createElement(Tj,{classNames:{list:K(o,s,n)}},e)},o_=(e,{prefixCls:t,key:n})=>ue.createElement(r_,{prefixCls:t,key:n},e),a_=ue.forwardRef((e,t)=>{const{top:n,bottom:o,prefixCls:s,getContainer:i,maxCount:u,rtl:m,onAllRemoved:h,stack:p,duration:g=e_,pauseOnHover:b=!0,showProgress:y}=e,{getPrefixCls:S,getPopupContainer:$,direction:C}=en("notification"),{notification:j}=c.useContext(vt),w=s||S("notification"),R=c.useMemo(()=>$r(g)&&g>0?g:!1,[g]),[E,N]=sn([j?.classNames,e?.classNames],[j?.styles,e?.styles],{props:e}),M=()=>Ij(n,o),T=()=>K({[`${w}-rtl`]:m??C==="rtl"}),O=()=>aA(w),P=Aj(p,n_),[_,L]=zj({prefixCls:w,style:M,className:T,motion:O,closable:{closeIcon:B4(w)},duration:R,getContainer:()=>i?.()||$?.()||document.body,maxCount:u,pauseOnHover:b,showProgress:y,classNames:E,styles:N,onAllRemoved:h,renderNotifications:o_,stack:P});return ue.useImperativeHandle(t,()=>({..._,prefixCls:w,notification:j})),L});function s_(e){const t=ue.useRef(null),{notification:n}=ue.useContext(vt);return[ue.useMemo(()=>{const s=h=>{if(!t.current)return;const{open:p,prefixCls:g,notification:b}=t.current,y=b?.className||{},S=b?.style||{},$=`${g}-notice`,{title:C,message:j,description:w,icon:R,type:E,btn:N,actions:M,className:T,style:O,role:P="alert",closeIcon:_,closable:L,classNames:A={},styles:B={},...V}=h,Z=C??j,W=ar(Z),H=M??N,q=B4($,sA(_,e,b)),[U,J,,k]=_j(os({...e||{},...h}),os(n),{closable:!0,closeIcon:q}),I=U?{onClose:Ot(L)?L.onClose:void 0,closeIcon:J,...k}:!1,D=el(A,{props:h}),Y=el(B,{props:h}),G=R||(E?JL[E]:null),X=!R&&E?`${$}-icon-${E}`:void 0;return p({placement:e?.placement??t_,...V,title:W?Z:null,description:w,icon:G,actions:H,role:P,classNames:{...D,icon:K(X,D?.icon)},styles:{...Y,root:{...S,...Y?.root}},className:K({[`${$}-${E}`]:E},T,y),style:O,closable:I})},u={open:s,destroy:h=>{h!==void 0?t.current?.close(h):t.current?.destroy()}};return["success","info","warning","error"].forEach(h=>{u[h]=p=>s({...p,type:h})}),u},[e,n]),ue.createElement(a_,{key:"notification-holder",...e,ref:t})]}function i_(e){return s_(e)}const Fw=ue.createContext({}),D4=ue.createContext({message:{},notification:{},modal:{}}),l_=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:s,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:s,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},c_=()=>({}),u_=an("App",l_,c_),d_=ue.forwardRef((e,t)=>{const{prefixCls:n,children:o,className:s,rootClassName:i,message:u,notification:m,style:h,component:p="div"}=e,{direction:g,getPrefixCls:b,className:y,style:S}=en("app"),$=b("app",n),[C,j]=u_($),w=K(C,$,s,i,j,{[`${$}-rtl`]:g==="rtl"}),R=c.useContext(Fw),E=ue.useMemo(()=>({message:{...R.message,...u},notification:{...R.notification,...m}}),[u,m,R.message,R.notification]),[N,M]=JA(E.message),[T,O]=i_(E.notification),[P,_]=_4(),L=ue.useMemo(()=>({message:N,notification:T,modal:P}),[N,T,P]),A=p===!1?ue.Fragment:p,B={className:K(y,w),style:{...S,...h}};return ue.createElement(D4.Provider,{value:L},ue.createElement(Fw.Provider,{value:E},ue.createElement(A,{...p===!1?void 0:{...B,ref:t}},_,M,O,o)))}),f_=()=>ue.useContext(D4),by=d_;by.useApp=f_;function H4(e){return t=>c.createElement(Ca,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,{...t}))}const m_=(e,t,n,o,s)=>H4(u=>{const{prefixCls:m,style:h}=u,p=c.useRef(null),[g,b]=c.useState(0),[y,S]=c.useState(0),[$,C]=hr(!1,u.open),{getPrefixCls:j}=c.useContext(vt),w=j("select",m);c.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const N=new ResizeObserver(T=>{const O=T[0].target;b(O.offsetHeight+8),S(O.offsetWidth)}),M=setInterval(()=>{const T=`.${w}-dropdown`,O=p.current?.querySelector(T);O&&(clearInterval(M),N.observe(O))},10);return()=>{clearInterval(M),N.disconnect()}}},[w]);let R={...u,style:{...h,margin:0},open:$,getPopupContainer:()=>p.current};R={...R,[t]:{overflow:{adjustX:!1,adjustY:!1}}};const E={paddingBottom:g,position:"relative",minWidth:y};return c.createElement("div",{ref:p,style:E},c.createElement(e,{...R}))}),p_=(e,t,n,o,s=!1,i,u)=>{const m=c.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return c.useMemo(()=>{const h=!s&&m.allowClear!==!1&&(t.length||i)&&!(u==="combobox"&&i==="");return{allowClear:h,clearIcon:h?m.clearIcon||o||"×":null}},[m,o,s,t.length,i,u])},F4=c.createContext(null);function Ks(){return c.useContext(F4)}function h_(e=250){const t=c.useRef(null),n=c.useRef(null);c.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function o(s){(s||t.current===null)&&(t.current=s),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,o]}function k4(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function g_(e,t,n,o){const s=wt(i=>{if(o)return;let u=i.target;u.shadowRoot&&i.composed&&(u=i.composedPath()[0]||u),i._ori_target&&(u=i._ori_target),t&&!k4(e(),u)&&n(!1)});c.useEffect(()=>(window.addEventListener("mousedown",s),()=>window.removeEventListener("mousedown",s)),[s])}function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vv.apply(this,arguments)}const b_=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"}}},v_=(e,t)=>{const{prefixCls:n,disabled:o,visible:s,children:i,popupElement:u,animation:m,transitionName:h,popupStyle:p,popupClassName:g,direction:b="ltr",placement:y,builtinPlacements:S,popupMatchSelectWidth:$,popupRender:C,popupAlign:j,getPopupContainer:w,empty:R,onPopupVisibleChange:E,onPopupMouseEnter:N,onPopupMouseDown:M,onPopupBlur:T,...O}=e,P=`${n}-dropdown`;let _=u;C&&(_=C(u));const L=c.useMemo(()=>S||b_($),[S,$]),A=m?`${P}-${m}`:h,B=typeof $=="number",V=c.useMemo(()=>$===!1||B?"minWidth":"width",[$,B]);let Z=p;B&&(Z={...p,width:$});const W=c.useRef(null);return c.useImperativeHandle(t,()=>({getPopupElement:()=>W.current?.popupElement})),c.createElement(Mm,vv({},O,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:P,popupMotion:{motionName:A},popup:c.createElement("div",{onMouseEnter:N,onMouseDown:M,onBlur:T},_),ref:W,stretch:V,popupAlign:j,popupVisible:s,getPopupContainer:w,popupClassName:K(g,{[`${P}-empty`]:R}),popupStyle:Z,onPopupVisibleChange:E}),i)},y_=c.forwardRef(v_);function kw(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function yv(e){return typeof e<"u"&&!Number.isNaN(e)}function V4(e,t){const{label:n,value:o,options:s,groupLabel:i}=e||{},u=n||(t?"children":"label");return{label:u,value:o||"value",options:s||"options",groupLabel:i||u}}function x_(e,{fieldNames:t,childrenAsData:n}={}){const o=[],{label:s,value:i,options:u,groupLabel:m}=V4(t,!1);function h(p,g){Array.isArray(p)&&p.forEach(b=>{if(g||!(u in b)){const y=b[i];o.push({key:kw(b,o.length),groupOption:g,data:b,label:b[s],value:y})}else{let y=b[m];y===void 0&&n&&(y=b.label),o.push({key:kw(b,o.length),group:!0,data:b,label:y}),h(b[u],!0)}})}return h(e,!1),o}function xv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Cr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const S_=(e,t,n)=>{if(!t||!t.length)return null;let o=!1;const s=(u,[m,...h])=>{if(!m)return[u];const p=u.split(m);return o=o||p.length>1,p.reduce((g,b)=>[...g,...s(b,h)],[]).filter(Boolean)},i=s(e,t);return o?typeof n<"u"?i.slice(0,n):i:null};function C_(e){const{visible:t,values:n}=e;if(!t)return null;const o=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,o).map(({label:s,value:i})=>["number","string"].includes(typeof s)?s:i).join(", ")}`,n.length>o?", ...":null)}const $_=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},vy=(e,t=1)=>{if(t<=0){e();return}$_(()=>{vy(e,t-1)})};function w_(e,t,n,o){const[s,i]=c.useState(!1);c.useEffect(()=>{i(!0)},[]);const[u,m]=hr(e,t),[h,p]=c.useState(!1),g=s?u:!1,b=o(g),y=c.useRef(0),S=wt(C=>{n&&b!==C&&n(C),m(C)}),$=wt((C,j={})=>{const{cancelFun:w}=j;y.current+=1;const R=y.current,E=typeof C=="boolean"?C:!b;p(!E);function N(){R===y.current&&!w?.()&&(S(E),p(!1))}E?N():vy(()=>{N()})});return[g,b,$,h]}function Pg(e){const{children:t,...n}=e;return t?c.createElement("div",n,t):null}const q4=c.createContext(null);function nu(){return c.useContext(q4)}const W4=c.forwardRef((e,t)=>{const{onChange:n,onKeyDown:o,onBlur:s,style:i,syncWidth:u,value:m,className:h,autoComplete:p,...g}=e,{prefixCls:b,mode:y,onSearch:S,onSearchSubmit:$,onInputBlur:C,autoFocus:j,tokenWithEnter:w,placeholder:R,components:{input:E="input"}}=nu(),{id:N,classNames:M,styles:T,open:O,activeDescendantId:P,role:_,disabled:L}=Ks()||{},A=K(`${b}-input`,M?.input,h),B=c.useRef(!1),V=c.useRef(null),Z=c.useRef(null);c.useImperativeHandle(t,()=>Z.current);const W=X=>{let{value:ee}=X.target;if(w&&V.current&&/[\r\n]/.test(V.current)){const Q=V.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ee=ee.replace(Q,V.current)}V.current=null,S&&S(ee,!0,B.current),n?.(X)},H=X=>{const{key:ee}=X,{value:Q}=X.currentTarget;ee==="Enter"&&y==="tags"&&!O&&!B.current&&$&&$(Q),o?.(X)},q=X=>{C?.(),s?.(X)},U=()=>{B.current=!0},J=X=>{if(B.current=!1,y!=="combobox"){const{value:ee}=X.currentTarget;S?.(ee,!0,!1)}},k=X=>{const{clipboardData:ee}=X,Q=ee?.getData("text");V.current=Q||""},[I,D]=c.useState(void 0);xn(()=>{const X=Z.current;if(u&&X){X.style.width="0px";const ee=X.scrollWidth;D(ee),X.style.width=""}},[u,m]);const Y={id:N,type:"text",...g,ref:Z,style:{...T?.input,...i,"--select-input-width":I},autoFocus:j,autoComplete:p||"new-password",className:A,disabled:L,value:m||"",onChange:W,onKeyDown:H,onBlur:q,onPaste:k,onCompositionStart:U,onCompositionEnd:J,role:_||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${N}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${N}_list`:void 0,"aria-activedescendant":O?P:void 0};if(c.isValidElement(E)){const X=E.props||{},ee={placeholder:e.placeholder||R,...Y,...X};return Object.keys(X).forEach(Q=>{const ae=X[Q];typeof ae=="function"&&(ee[Q]=(...se)=>{ae(...se),Y[Q]?.(...se)})}),ee.ref=Er(E.ref,Y.ref),c.cloneElement(E,ee)}const G=E;return c.createElement(G,Y)});function U4(e){const{prefixCls:t,placeholder:n,displayValues:o}=nu(),{classNames:s,styles:i}=Ks(),{show:u=!0}=e;return o.length?null:c.createElement("div",{className:K(`${t}-placeholder`,s?.placeholder),style:{visibility:u?"visible":"hidden",...i?.placeholder}},n)}const yy=c.createContext(null);function G4(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function E_(e){return e!=null}function N_(e){return!e&&e!==0}function Vw(e){return["string","number"].includes(typeof e)}function Sv(e){let t;return e&&(Vw(e.title)?t=e.title.toString():Vw(e.label)&&(t=e.label.toString())),t}function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cv.apply(this,arguments)}const j_=c.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:o,activeValue:s,displayValues:i,maxLength:u,mode:m,components:h}=nu(),{triggerOpen:p,title:g,showSearch:b,classNames:y,styles:S}=Ks(),$=c.useContext(yy),[C,j]=c.useState(!1),w=m==="combobox",R=i[0],E=c.useMemo(()=>w&&s&&!C&&p?s:b?o:"",[w,s,C,p,o,b]),[N,M,T,O]=c.useMemo(()=>{let A,B,V;if(R&&$?.flattenOptions){const W=$.flattenOptions.find(H=>H.value===R.value);W?.data&&(A=W.data.className,B=W.data.style,V=Sv(W.data))}return R&&!V&&(V=Sv(R)),g!==void 0&&(V=g),[A,B,V,!!A||!!B]},[R,$?.flattenOptions,g]);c.useEffect(()=>{w&&j(!1)},[w,s]);const P=R&&R.label!==null&&R.label!==void 0&&String(R.label).trim()!=="",L=!(w&&h?.input)?R?O?c.createElement("div",{className:K(`${n}-content-value`,N),style:{...E?{visibility:"hidden"}:{},...M},title:T},R.label):R.label:c.createElement(U4,{show:!E}):null;return c.createElement("div",{className:K(`${n}-content`,P&&`${n}-content-has-value`,E&&`${n}-content-has-search-value`,O&&`${n}-content-has-option-style`,y?.content),style:S?.content,title:O?void 0:T},L,c.createElement(W4,Cv({ref:t},e,{value:E,maxLength:m==="combobox"?u:void 0,onChange:A=>{j(!0),e.onChange?.(A)}})))}),Li=void 0;function R_(e,t){const{prefixCls:n,invalidate:o,item:s,renderItem:i,responsive:u,responsiveDisabled:m,registerSize:h,itemKey:p,className:g,style:b,children:y,display:S,order:$,component:C="div",...j}=e,w=u&&!S;function R(O){h(p,O)}c.useEffect(()=>()=>{R(null)},[]);const E=i&&s!==Li?i(s,{index:$}):y;let N;o||(N={opacity:w?0:1,height:w?0:Li,overflowY:w?"hidden":Li,order:u?$:Li,pointerEvents:w?"none":Li,position:w?"absolute":Li});const M={};w&&(M["aria-hidden"]=!0);let T=c.createElement(C,Ho({className:K(!o&&n,g),style:{...N,...b}},M,j,{ref:t}),E);return u&&(T=c.createElement(ko,{onResize:({offsetWidth:O})=>{R(O)},disabled:m},T)),T}const gc=c.forwardRef(R_);function M_(e){if(typeof MessageChannel>"u")nn(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function T_(){const e=c.useRef(null);return n=>{e.current||(e.current=[],M_(()=>{rs.unstable_batchedUpdates(()=>{e.current.forEach(o=>{o()}),e.current=null})})),e.current.push(n)}}function _i(e,t){const[n,o]=c.useState(t),s=wt(i=>{e(()=>{o(i)})});return[n,s]}const tm=ue.createContext(null),O_=(e,t)=>{const n=c.useContext(tm);if(!n){const{component:m="div",...h}=e;return c.createElement(m,Ho({},h,{ref:t}))}const{className:o,...s}=n,{className:i,...u}=e;return c.createElement(tm.Provider,{value:null},c.createElement(gc,Ho({ref:t,className:K(o,i)},s,u)))},z_=c.forwardRef(O_),X4="responsive",K4="invalidate";function A_(e){return`+ ${e.length} ...`}function I_(e,t){const{prefixCls:n="rc-overflow",data:o=[],renderItem:s,renderRawItem:i,itemKey:u,itemWidth:m=10,ssr:h,style:p,className:g,maxCount:b,renderRest:y,renderRawRest:S,prefix:$,suffix:C,component:j="div",itemComponent:w,onVisibleChange:R,...E}=e,N=h==="full",M=T_(),[T,O]=_i(M,null),P=T||0,[_,L]=_i(M,new Map),[A,B]=_i(M,0),[V,Z]=_i(M,0),[W,H]=_i(M,0),[q,U]=_i(M,0),[J,k]=c.useState(null),[I,D]=c.useState(null),Y=c.useMemo(()=>I===null&&N?Number.MAX_SAFE_INTEGER:I||0,[I,T]),[G,X]=c.useState(!1),ee=`${n}-item`,Q=Math.max(A,V),ae=b===X4,se=o.length&&ae,ie=b===K4,fe=se||typeof b=="number"&&o.length>b,oe=c.useMemo(()=>{let He=o;return se?T===null&&N?He=o:He=o.slice(0,Math.min(o.length,P/m)):typeof b=="number"&&(He=o.slice(0,b)),He},[o,m,T,b,se]),re=c.useMemo(()=>se?o.slice(Y+1):o.slice(oe.length),[o,oe,se,Y]),pe=c.useCallback((He,Ue)=>typeof u=="function"?u(He):(u&&He?.[u])??Ue,[u]),ve=c.useCallback(s||(He=>He),[s]);function Ce(He,Ue,Qe){I===He&&(Ue===void 0||Ue===J)||(D(He),Qe||(X(He<o.length-1),R?.(He)),Ue!==void 0&&k(Ue))}function he(He,Ue){O(Ue.clientWidth)}function te(He,Ue){L(Qe=>{const ke=new Map(Qe);return Ue===null?ke.delete(He):ke.set(He,Ue),ke})}function Se(He,Ue){Z(Ue),B(V)}function Te(He,Ue){H(Ue)}function Ee(He,Ue){U(Ue)}function Le(He){return _.get(pe(oe[He],He))}xn(()=>{if(P&&typeof Q=="number"&&oe){let He=W+q;const Ue=oe.length,Qe=Ue-1;if(!Ue){Ce(0,null);return}for(let ke=0;ke<Ue;ke+=1){let Oe=Le(ke);if(N&&(Oe=Oe||0),Oe===void 0){Ce(ke-1,void 0,!0);break}if(He+=Oe,Qe===0&&He<=P||ke===Qe-1&&He+Le(Qe)<=P){Ce(Qe,null);break}else if(He+Q>P){Ce(ke-1,He-Oe-q+V);break}}C&&Le(0)+q>P&&k(null)}},[P,_,V,W,q,pe,oe]);const Pe=G&&!!re.length;let ye={};J!==null&&se&&(ye={position:"absolute",top:0,insetInlineStart:J});const Ie={prefixCls:ee,responsive:se,component:w,invalidate:ie},De=i?(He,Ue)=>{const Qe=pe(He,Ue);return c.createElement(tm.Provider,{key:Qe,value:{...Ie,order:Ue,item:He,itemKey:Qe,registerSize:te,display:Ue<=Y}},i(He,Ue))}:(He,Ue)=>{const Qe=pe(He,Ue);return c.createElement(gc,Ho({},Ie,{order:Ue,key:Qe,item:He,renderItem:ve,itemKey:Qe,registerSize:te,display:Ue<=Y}))},Me={order:Pe?Y:Number.MAX_SAFE_INTEGER,className:`${ee}-rest`,registerSize:Se,display:Pe},qe=y||A_,tt=S?c.createElement(tm.Provider,{value:{...Ie,...Me}},S(re)):c.createElement(gc,Ho({},Ie,Me),typeof qe=="function"?qe(re):qe),Xe=c.createElement(j,Ho({className:K(!ie&&n,g),style:p,ref:t},E),$&&c.createElement(gc,Ho({},Ie,{responsive:ae,responsiveDisabled:!se,order:-1,className:`${ee}-prefix`,registerSize:Te,display:!0}),$),oe.map(De),fe?tt:null,C&&c.createElement(gc,Ho({},Ie,{responsive:ae,responsiveDisabled:!se,order:Y,className:`${ee}-suffix`,registerSize:Ee,display:!0,style:ye}),C));return ae?c.createElement(ko,{onResize:he,disabled:!se},Xe):Xe}const pa=c.forwardRef(I_);pa.Item=z_;pa.RESPONSIVE=X4;pa.INVALIDATE=K4;const Y4=e=>{const{className:t,style:n,customizeIcon:o,customizeIconProps:s,children:i,onMouseDown:u,onClick:m}=e,h=typeof o=="function"?o(s):o;return c.createElement("span",{className:t,onMouseDown:p=>{p.preventDefault(),u?.(p)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:m,"aria-hidden":!0},h!==void 0?h:c.createElement("span",{className:K(t.split(/\s+/).map(p=>`${p}-icon`))},i))};function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$v.apply(this,arguments)}function P_(e){return e.key??e.value}const qw=e=>{e.preventDefault(),e.stopPropagation()},L_=c.forwardRef(function({inputProps:t},n){const{prefixCls:o,displayValues:s,searchValue:i,mode:u,onSelectorRemove:m,removeIcon:h}=nu(),{disabled:p,showSearch:g,triggerOpen:b,rawOpen:y,toggleOpen:S,autoClearSearchValue:$,tagRender:C,maxTagPlaceholder:j,maxTagTextLength:w,maxTagCount:R,classNames:E,styles:N}=Ks(),M=`${o}-selection-item`;let T=i;!y&&u==="multiple"&&$!==!1&&(T="");const O=g&&T||"",P=g&&!p,_=h??"×",L=j??(U=>`+ ${U.length} ...`),A=C,B=U=>{S(U)},V=U=>{m?.(U)},Z=(U,J,k,I,D)=>c.createElement("span",{title:Sv(U),className:K(M,{[`${M}-disabled`]:k},E?.item),style:N?.item},c.createElement("span",{className:K(`${M}-content`,E?.itemContent),style:N?.itemContent},J),I&&c.createElement(Y4,{className:K(`${M}-remove`,E?.itemRemove),style:N?.itemRemove,onMouseDown:qw,onClick:D,customizeIcon:_},"×")),W=(U,J,k,I,D,Y,G)=>{const X=ee=>{qw(ee),B(!b)};return c.createElement("span",{onMouseDown:X},A({label:J,value:U,index:G?.index,disabled:k,closable:I,onClose:D,isMaxTag:!!Y}))},H=(U,J)=>{const{disabled:k,label:I,value:D}=U,Y=!p&&!k;let G=I;if(typeof w=="number"&&(typeof I=="string"||typeof I=="number")){const ee=String(G);ee.length>w&&(G=`${ee.slice(0,w)}...`)}const X=ee=>{ee&&ee.stopPropagation(),V(U)};return typeof A=="function"?W(D,G,k,Y,X,void 0,J):Z(U,G,k,Y,X)},q=U=>{if(!s.length)return null;const J=typeof L=="function"?L(U):L;return typeof A=="function"?W(void 0,J,!1,!1,void 0,!0):Z({title:J},J,!1)};return c.createElement(pa,{prefixCls:`${o}-content`,className:E?.content,style:N?.content,prefix:!s.length&&!O&&c.createElement(U4,null),data:s,renderItem:H,renderRest:q,suffix:c.createElement(W4,$v({ref:n,disabled:p,readOnly:!P},t,{value:O||"",syncWidth:!0})),itemKey:P_,maxCount:R})}),__=c.forwardRef(function(t,n){const{multiple:o,onInputKeyDown:s,tabIndex:i}=nu(),u=Ks(),{showSearch:m}=u,p={...br(u,{aria:!0}),onKeyDown:s,readOnly:!m,tabIndex:i};return o?c.createElement(L_,{ref:n,inputProps:p}):c.createElement(j_,{ref:n,inputProps:p})});function B_(e){return e&&![ct.ESC,ct.SHIFT,ct.BACKSPACE,ct.TAB,ct.WIN_KEY,ct.ALT,ct.META,ct.WIN_KEY_RIGHT,ct.CTRL,ct.SEMICOLON,ct.EQUALS,ct.CAPS_LOCK,ct.CONTEXT_MENU,ct.UP,ct.LEFT,ct.RIGHT,ct.F1,ct.F2,ct.F3,ct.F4,ct.F5,ct.F6,ct.F7,ct.F8,ct.F9,ct.F10,ct.F11,ct.F12].includes(e)}function nm(){return nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nm.apply(this,arguments)}const D_=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],H_=c.forwardRef(function(t,n){const{prefixCls:o,className:s,style:i,prefix:u,suffix:m,clearIcon:h,children:p,multiple:g,displayValues:b,placeholder:y,mode:S,searchValue:$,onSearch:C,onSearchSubmit:j,onInputBlur:w,maxLength:R,autoFocus:E,onMouseDown:N,onClearMouseDown:M,onInputKeyDown:T,onSelectorRemove:O,tokenWithEnter:P,components:_,...L}=t,{triggerOpen:A,toggleOpen:B,showSearch:V,disabled:Z,loading:W,classNames:H,styles:q}=Ks(),U=c.useRef(null),J=c.useRef(null),k=wt(Q=>{const{which:ae}=Q,se=J.current instanceof HTMLTextAreaElement;if(!se&&A&&(ae===ct.UP||ae===ct.DOWN)&&Q.preventDefault(),T&&T(Q),se&&!A&&~[ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT].indexOf(ae))return;!(Q.ctrlKey||Q.altKey||Q.metaKey)&&B_(ae)&&B(!0)});c.useImperativeHandle(n,()=>({focus:Q=>{(J.current||U.current).focus?.(Q)},blur:()=>{(J.current||U.current).blur?.()},nativeElement:ns(U.current)}));const I=wt(Q=>{if(!Z){const ae=ns(J.current);Q.nativeEvent._ori_target=ae;const se=ae===Q.target||ae?.contains(Q.target);ae&&!se&&Q.preventDefault();const oe=A&&!g&&(S==="combobox"||V)||A&&g&&se;Q.nativeEvent._select_lazy?A&&!g&&B(!1):(J.current?.focus(),oe||B())}N?.(Q)}),{root:D}=_,Y=Mn(L,D_),G=br(Y,{aria:!0}),X=Object.keys(G),ee={...t,onInputKeyDown:k};if(D){const Q=D.props||{},ae={...Q,...Y};return Object.keys(Q).forEach(se=>{const ie=Q[se],fe=Y[se];typeof ie=="function"&&typeof fe=="function"&&(ae[se]=(...oe)=>{fe(...oe),ie(...oe)})}),c.isValidElement(D)?c.cloneElement(D,{...ae,ref:Er(D.ref,U)}):c.createElement(D,nm({},ae,{ref:U}))}return c.createElement(q4.Provider,{value:ee},c.createElement("div",nm({},Mn(Y,X),{ref:U,className:s,style:i,onMouseDown:I}),c.createElement(Pg,{className:K(`${o}-prefix`,H?.prefix),style:q?.prefix},u),c.createElement(__,{ref:J}),c.createElement(Pg,{className:K(`${o}-suffix`,{[`${o}-suffix-loading`]:W},H?.suffix),style:q?.suffix},m),h&&c.createElement(Pg,{className:K(`${o}-clear`,H?.clear),style:q?.clear,onMouseDown:Q=>{Q.nativeEvent._select_lazy=!0,M?.(Q)}},h),p))});function F_(e,t,n){return c.useMemo(()=>{let{root:o,input:s}=e||{};return n&&(o=n()),t&&(s=t()),{root:o,input:s}},[e,t,n])}function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wv.apply(this,arguments)}const Ev=e=>e==="tags"||e==="multiple",k_=c.forwardRef((e,t)=>{const{id:n,prefixCls:o,className:s,styles:i,classNames:u,showSearch:m,tagRender:h,showScrollBar:p="optional",direction:g,omitDomProps:b,displayValues:y,onDisplayValuesChange:S,emptyOptions:$,notFoundContent:C="Not Found",onClear:j,maxCount:w,placeholder:R,mode:E,disabled:N,loading:M,getInputElement:T,getRawInputElement:O,open:P,defaultOpen:_,onPopupVisibleChange:L,activeValue:A,onActiveValueChange:B,activeDescendantId:V,searchValue:Z,autoClearSearchValue:W,onSearch:H,onSearchSplit:q,tokenSeparators:U,allowClear:J,prefix:k,suffix:I,suffixIcon:D,clearIcon:Y,OptionList:G,animation:X,transitionName:ee,popupStyle:Q,popupClassName:ae,popupMatchSelectWidth:se,popupRender:ie,popupAlign:fe,placement:oe,builtinPlacements:re,getPopupContainer:pe,showAction:ve=[],onFocus:Ce,onBlur:he,onKeyUp:te,onKeyDown:Se,onMouseDown:Te,components:Ee,...Le}=e,Pe=Ev(E),ye=c.useRef(null),Ie=c.useRef(null),De=c.useRef(null),[Me,qe]=c.useState(!1);c.useImperativeHandle(t,()=>({focus:ye.current?.focus,blur:ye.current?.blur,scrollTo:Ge=>De.current?.scrollTo(Ge),nativeElement:ns(ye.current)}));const tt=F_(Ee,T,O),Xe=c.useMemo(()=>{if(E!=="combobox")return Z;const Ge=y[0]?.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[Z,E,y]),He=E==="combobox"&&typeof T=="function"&&T()||null,Ue=!C&&$,[Qe,ke,Oe,Je]=w_(_||!1,P,L,Ge=>N||Ue?!1:Ge),nt=c.useMemo(()=>typeof U=="function"||(U||[]).some(Ge=>[`
|
|
164
|
-
`,`\r
|
|
165
|
-
`].includes(Ge)),[U]),ut=c.useMemo(()=>typeof U=="function"?(Ge,it)=>{const Bt=U(Ge),Kt=Array.isArray(Bt)&&Bt.length===1&&Bt[0]===Ge;return!Array.isArray(Bt)||!Bt.length||Kt?null:typeof it<"u"?Bt.slice(0,it):Bt}:(Ge,it)=>S_(Ge,U,it),[U]),Rt=(Ge,it,Bt)=>{if(Pe&&yv(w)&&y.length>=w)return;let Kt=!0,Mt=Ge;B?.(null);const Yt=yv(w)?w-y.length:void 0,bn=Bt?null:ut(Ge,Yt);return E!=="combobox"&&bn&&(Mt="",q?.(bn),Oe(!1),Kt=!1),H&&Xe!==Mt&&H(Mt,{source:it?"typing":"effect"}),Ge&&it&&Kt&&Oe(!0),Kt},ht=Ge=>{!Ge||!Ge.trim()||H(Ge,{source:"submit"})};c.useEffect(()=>{!Qe&&!Pe&&E!=="combobox"&&Rt("",!1,!1)},[Qe]),c.useEffect(()=>{N&&(Oe(!1),qe(!1))},[N,ke]);const[Ut,_t]=h_(),Ct=c.useRef(!1),kt=Ge=>{const it=Ut(),{key:Bt}=Ge,Kt=Bt==="Enter",Mt=Bt===" ";if(Kt||Mt){const Yt=E==="combobox";(Mt&&!(Yt||m)||Kt&&!Yt)&&Ge.preventDefault(),ke||Oe(!0)}if(_t(!!Xe),Bt==="Backspace"&&!it&&Pe&&!Xe&&y.length){const Yt=[...y];let bn=null;for(let qt=Yt.length-1;qt>=0;qt-=1){const sr=Yt[qt];if(!sr.disabled){Yt.splice(qt,1),bn=sr;break}}bn&&S(Yt,{type:"remove",values:[bn]})}ke&&(!Kt||!Ct.current)&&!Mt&&(Kt&&(Ct.current=!0),De.current?.onKeyDown(Ge)),Se?.(Ge)},Pt=(Ge,...it)=>{ke&&De.current?.onKeyUp(Ge,...it),Ge.key==="Enter"&&(Ct.current=!1),te?.(Ge,...it)},Vt=wt(Ge=>{const it=y.filter(Bt=>Bt!==Ge);S(it,{type:"remove",values:[Ge]})}),Ze=()=>{Ct.current=!1},$t=()=>[ns(ye.current),Ie.current?.getPopupElement()];g_($t,ke,Oe,!!tt.root);const We=c.useRef(!1),je=Ge=>{qe(!0),N||(ve.includes("focus")&&Oe(!0),Ce?.(Ge))},Be=()=>{ke&&!We.current&&Oe(!1,{cancelFun:()=>k4($t(),document.activeElement)})},we=Ge=>{qe(!1),Xe&&(E==="tags"?H(Xe,{source:"submit"}):E==="multiple"&&H("",{source:"blur"})),Be(),N||he?.(Ge)},Fe=(Ge,...it)=>{const{target:Bt}=Ge;Ie.current?.getPopupElement()?.contains(Bt)&&Oe&&Oe(!0),Te?.(Ge,...it),We.current=!0,vy(()=>{We.current=!1})},[,Ve]=c.useState({});function Ye(){Ve({})}let dt;tt.root&&(dt=Ge=>{Oe(Ge)});const ln=c.useMemo(()=>({...e,notFoundContent:C,open:ke,triggerOpen:ke,rawOpen:Qe,id:n,showSearch:m,multiple:Pe,toggleOpen:Oe,showScrollBar:p,styles:i,classNames:u,lockOptions:Je}),[e,C,Oe,n,m,Pe,ke,Qe,p,i,u,Je]),et=c.useMemo(()=>{const Ge=I??D;return typeof Ge=="function"?Ge({searchValue:Xe,open:ke,focused:Me,showSearch:m,loading:M}):Ge},[I,D,Xe,ke,Me,m,M]),gt=()=>{j?.(),ye.current?.focus(),S([],{type:"clear",values:y}),Rt("",!1,!1)},{allowClear:zt,clearIcon:fn}=p_(o,y,J,Y,N,Xe,E),mt=c.createElement(G,{ref:De}),yt=K(o,s,{[`${o}-focused`]:Me,[`${o}-multiple`]:Pe,[`${o}-single`]:!Pe,[`${o}-allow-clear`]:zt,[`${o}-show-arrow`]:et!=null,[`${o}-disabled`]:N,[`${o}-loading`]:M,[`${o}-open`]:ke,[`${o}-customize-input`]:He,[`${o}-show-search`]:m});let xt=c.createElement(H_,wv({},Le,{ref:ye,prefixCls:o,className:yt,focused:Me,prefix:k,suffix:et,clearIcon:fn,multiple:Pe,mode:E,displayValues:y,placeholder:R,searchValue:Xe,activeValue:A,onSearch:Rt,onSearchSubmit:ht,onInputBlur:Ze,onFocus:je,onBlur:we,onClearMouseDown:gt,onKeyDown:kt,onKeyUp:Pt,onSelectorRemove:Vt,tokenWithEnter:nt,onMouseDown:Fe,components:tt}));return xt=c.createElement(y_,{ref:Ie,disabled:N,prefixCls:o,visible:ke,popupElement:mt,animation:X,transitionName:ee,popupStyle:Q,popupClassName:ae,direction:g,popupMatchSelectWidth:se,popupRender:ie,popupAlign:fe,placement:oe,builtinPlacements:re,getPopupContainer:pe,empty:$,onPopupVisibleChange:dt,onPopupMouseEnter:Ye,onPopupMouseDown:Fe,onPopupBlur:Be},xt),c.createElement(F4.Provider,{value:ln},c.createElement(C_,{visible:Me&&!ke,values:y}),xt)}),xy=()=>null;xy.isSelectOptGroup=!0;const Sy=()=>null;Sy.isSelectOption=!0;function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nv.apply(this,arguments)}const Q4=c.forwardRef(({height:e,offsetY:t,offsetX:n,children:o,prefixCls:s,onInnerResize:i,innerProps:u,rtl:m,extra:h},p)=>{let g={},b={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},b={...b,transform:`translateY(${t}px)`,[m?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),c.createElement("div",{style:g},c.createElement(ko,{onResize:({offsetHeight:y})=>{y&&i&&i()}},c.createElement("div",Nv({style:b,className:K({[`${s}-holder-inner`]:s}),ref:p},u),o,h)))});Q4.displayName="Filler";function V_({children:e,setRef:t}){const n=c.useCallback(o=>{t(o)},[t]);return c.cloneElement(e,{ref:n})}function q_(e,t,n,o,s,i,u,{getKey:m}){return e.slice(t,n+1).map((h,p)=>{const g=t+p,b=u(h,g,{style:{width:o},offsetX:s}),y=m(h);return c.createElement(V_,{key:y,setRef:S=>i(h,S)},b)})}function W_(e,t,n){const o=e.length,s=t.length;let i,u;if(o===0&&s===0)return null;o<s?(i=e,u=t):(i=t,u=e);const m={__EMPTY_ITEM__:!0};function h(b){return b!==void 0?n(b):m}let p=null,g=Math.abs(o-s)!==1;for(let b=0;b<u.length;b+=1){const y=h(i[b]),S=h(u[b]);if(y!==S){p=b,g=g||y!==h(u[b+1]);break}}return p===null?null:{index:p,multiple:g}}function U_(e,t,n){const[o,s]=c.useState(e),[i,u]=c.useState(null);return c.useEffect(()=>{const m=W_(o||[],e||[],t);m?.index!==void 0&&u(e[m.index]),s(e)},[e]),[i]}const Ww=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Z4=((e,t,n,o)=>{const s=c.useRef(!1),i=c.useRef(null);function u(){clearTimeout(i.current),s.current=!0,i.current=setTimeout(()=>{s.current=!1},50)}const m=c.useRef({top:e,bottom:t,left:n,right:o});return m.current.top=e,m.current.bottom=t,m.current.left=n,m.current.right=o,(h,p,g=!1)=>{const b=h?p<0&&m.current.left||p>0&&m.current.right:p<0&&m.current.top||p>0&&m.current.bottom;return g&&b?(clearTimeout(i.current),s.current=!1):(!b||s.current)&&u(),!s.current&&b}});function G_(e,t,n,o,s,i,u){const m=c.useRef(0),h=c.useRef(null),p=c.useRef(null),g=c.useRef(!1),b=Z4(t,n,o,s);function y(R,E){if(nn.cancel(h.current),b(!1,E))return;const N=R;if(!N._virtualHandled)N._virtualHandled=!0;else return;m.current+=E,p.current=E,Ww||N.preventDefault(),h.current=nn(()=>{const M=g.current?10:1;u(m.current*M,!1),m.current=0})}function S(R,E){u(E,!0),Ww||R.preventDefault()}const $=c.useRef(null),C=c.useRef(null);function j(R){if(!e)return;nn.cancel(C.current),C.current=nn(()=>{$.current=null},2);const{deltaX:E,deltaY:N,shiftKey:M}=R;let T=E,O=N;($.current==="sx"||!$.current&&M&&N&&!E)&&(T=N,O=0,$.current="sx");const P=Math.abs(T),_=Math.abs(O);$.current===null&&($.current=i&&P>_?"x":"y"),$.current==="y"?y(R,O):S(R,T)}function w(R){e&&(g.current=R.detail===p.current)}return[j,w]}function X_(e,t,n,o){const[s,i]=c.useMemo(()=>[new Map,[]],[e,n.id,o]);return(m,h=m)=>{let p=s.get(m),g=s.get(h);if(p===void 0||g===void 0){const b=e.length;for(let y=i.length;y<b;y+=1){const S=e[y],$=t(S);s.set($,y);const C=n.get($)??o;if(i[y]=(i[y-1]||0)+C,$===m&&(p=y),$===h&&(g=y),p!==void 0&&g!==void 0)break}}return{top:i[p-1]||0,bottom:i[g]}}}class K_{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function Uw(e){const t=parseFloat(e);return isNaN(t)?0:t}function Y_(e,t,n){const[o,s]=c.useState(0),i=c.useRef(new Map),u=c.useRef(new K_),m=c.useRef(0);function h(){m.current+=1}function p(b=!1){h();const y=()=>{let S=!1;i.current.forEach(($,C)=>{if($&&$.offsetParent){const{offsetHeight:j}=$,{marginTop:w,marginBottom:R}=getComputedStyle($),E=Uw(w),N=Uw(R),M=j+E+N;u.current.get(C)!==M&&(u.current.set(C,M),S=!0)}}),S&&s($=>$+1)};if(b)y();else{m.current+=1;const S=m.current;Promise.resolve().then(()=>{S===m.current&&y()})}}function g(b,y){const S=e(b);i.current.get(S),y?(i.current.set(S,y),p()):i.current.delete(S)}return c.useEffect(()=>h,[]),[g,p,u.current,o]}const Gw=14/15;function Q_(e,t,n){const o=c.useRef(!1),s=c.useRef(0),i=c.useRef(0),u=c.useRef(null),m=c.useRef(null);let h;const p=y=>{if(o.current){const S=Math.ceil(y.touches[0].pageX),$=Math.ceil(y.touches[0].pageY);let C=s.current-S,j=i.current-$;const w=Math.abs(C)>Math.abs(j);w?s.current=S:i.current=$;const R=n(w,w?C:j,!1,y);R&&y.preventDefault(),clearInterval(m.current),R&&(m.current=setInterval(()=>{w?C*=Gw:j*=Gw;const E=Math.floor(w?C:j);(!n(w,E,!0)||Math.abs(E)<=.1)&&clearInterval(m.current)},16))}},g=()=>{o.current=!1,h()},b=y=>{h(),y.touches.length===1&&!o.current&&(o.current=!0,s.current=Math.ceil(y.touches[0].pageX),i.current=Math.ceil(y.touches[0].pageY),u.current=y.target,u.current.addEventListener("touchmove",p,{passive:!1}),u.current.addEventListener("touchend",g,{passive:!0}))};h=()=>{u.current&&(u.current.removeEventListener("touchmove",p),u.current.removeEventListener("touchend",g))},xn(()=>(e&&t.current.addEventListener("touchstart",b,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",b),h(),clearInterval(m.current)}),[e])}function Xw(e){return Math.floor(e**.5)}function _f(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Z_(e,t,n){c.useEffect(()=>{const o=t.current;if(e&&o){let s=!1,i,u;const m=()=>{nn.cancel(i)},h=()=>{m(),i=nn(()=>{n(u),h()})},p=()=>{s=!1,m()},g=y=>{if(y.target.draggable||y.button!==0)return;const S=y;S._virtualHandled||(S._virtualHandled=!0,s=!0)},b=y=>{if(s){const S=_f(y,!1),{top:$,bottom:C}=o.getBoundingClientRect();if(S<=$){const j=$-S;u=-Xw(j),h()}else if(S>=C){const j=S-C;u=Xw(j),h()}else m()}};return o.addEventListener("mousedown",g),o.ownerDocument.addEventListener("mouseup",p),o.ownerDocument.addEventListener("mousemove",b),o.ownerDocument.addEventListener("dragend",p),()=>{o.removeEventListener("mousedown",g),o.ownerDocument.removeEventListener("mouseup",p),o.ownerDocument.removeEventListener("mousemove",b),o.ownerDocument.removeEventListener("dragend",p),m()}}},[e])}const J_=10;function e9(e,t){const n=typeof e=="function"?e(t):e;return Number.isFinite(n)?n:0}function t9(e,t,n,o,s,i,u,m,h){const p=c.useRef(void 0),[g,b]=c.useState(null);return xn(()=>{if(g&&g.times<J_){if(!e.current){b(T=>({...T}));return}u();const{targetAlign:y,originAlign:S,offset:$}=g,C=g.index>=0?g.index:t.findIndex(T=>s(T)===g.key),j=y||S,w=e9($,{getSize:i,align:j}),R=e.current.clientHeight;let E=!1,N=y,M=null;if(R&&C>=0){let T=0,O=0,P=0;const _=Math.min(t.length-1,C);for(let A=0;A<=_;A+=1){const B=s(t[A]);O=T;const V=n.get(B);P=O+(V===void 0?o:V),T=P}let L=j==="top"?w:R-w;for(let A=_;A>=0;A-=1){const B=s(t[A]),V=n.get(B);if(V===void 0){E=!0;break}if(L-=V,L<=0)break}switch(j){case"top":M=O-w;break;case"bottom":M=P-R+w;break;default:{const{scrollTop:A}=e.current,B=A+R;O<A?N="top":P>B&&(N="bottom")}}M!==null&&m(M),M!==g.lastTop&&(E=!0)}E&&b(T=>({...T,times:T.times+1,index:C,targetAlign:N,lastTop:M}))}},[g,e.current]),y=>{if(y==null){h();return}if(nn.cancel(p.current),typeof y=="number")m(y);else if(y&&typeof y=="object"){let S,$;const{align:C}=y;"index"in y?{index:S}=y:($=y.key,S=t.findIndex(w=>s(w)===$));const{offset:j=0}=y;b({times:0,index:S,key:$,offset:j,originAlign:C})}}}function Kw(e,t,n){if(t<=0||n<=0)return 0;const s=Math.max(Math.min(e,n),0)/n;let i=Math.ceil(s*t);return i=Math.max(i,0),i=Math.min(i,t),i}const Yw=c.forwardRef((e,t)=>{const{prefixCls:n,rtl:o,scrollOffset:s,scrollRange:i,onStartMove:u,onStopMove:m,onScroll:h,horizontal:p,spinSize:g,containerSize:b,style:y,thumbStyle:S,showScrollBar:$}=e,[C,j]=c.useState(!1),[w,R]=c.useState(null),[E,N]=c.useState(null),M=!o,T=c.useRef(null),O=c.useRef(null),[P,_]=c.useState($),L=c.useRef(void 0),A=()=>{$===!0||$===!1||(clearTimeout(L.current),_(!0),L.current=setTimeout(()=>{_(!1)},3e3))},B=i-b||0,V=b-g||0,Z=c.useMemo(()=>s===0||B===0?0:s/B*V,[s,B,V]),W=X=>!!X&&O.current?.contains(X),H=X=>{const ee=T.current;if(!ee)return;const Q=ee.getBoundingClientRect(),ae=_f(X,p);let se;if(Number.isFinite(ae)){if(p){const ie=M?Q.left:Q.right;if(!Number.isFinite(ie))return;se=(M?ae-ie:ie-ae)-g/2}else{if(!Number.isFinite(Q.top))return;se=ae-Q.top-g/2}h(Kw(se,B,V),p)}},q=X=>{X.stopPropagation(),X.preventDefault(),!(X.button!==0||W(X.target))&&H(X)},U=c.useRef({top:Z,dragging:C,pageY:w,startTop:E});U.current={top:Z,dragging:C,pageY:w,startTop:E};const J=wt(X=>{j(!0),R(_f(X,p)),N(U.current.top),u(),X.stopPropagation(),X.preventDefault()});c.useEffect(()=>{const X=ae=>{ae.preventDefault()},ee=T.current,Q=O.current;return ee.addEventListener("touchstart",X,{passive:!1}),Q.addEventListener("touchstart",J,{passive:!1}),()=>{ee.removeEventListener("touchstart",X),Q.removeEventListener("touchstart",J)}},[J]);const k=c.useRef(void 0);k.current=B;const I=c.useRef(void 0);I.current=V,c.useEffect(()=>{if(C){let X;const ee=ae=>{const{dragging:se,pageY:ie,startTop:fe}=U.current;nn.cancel(X);const oe=T.current.getBoundingClientRect(),re=b/(p?oe.width:oe.height);if(se){const pe=(_f(ae,p)-ie)*re;let ve=fe;!M&&p?ve-=pe:ve+=pe;const Ce=k.current,he=I.current,te=Kw(ve,Ce,he);X=nn(()=>{h(te,p)})}},Q=()=>{j(!1),m()};return window.addEventListener("mousemove",ee,{passive:!0}),window.addEventListener("touchmove",ee,{passive:!0}),window.addEventListener("mouseup",Q,{passive:!0}),window.addEventListener("touchend",Q,{passive:!0}),()=>{window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),nn.cancel(X)}}},[C]),c.useEffect(()=>(A(),()=>{clearTimeout(L.current)}),[s]),c.useImperativeHandle(t,()=>({delayHidden:A}));const D=`${n}-scrollbar`,Y={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 p?(Object.assign(Y,{height:8,left:0,right:0,bottom:0}),Object.assign(G,{height:"100%",width:g,[M?"left":"right"]:Z})):(Object.assign(Y,{width:8,top:0,bottom:0,[M?"right":"left"]:0}),Object.assign(G,{width:"100%",height:g,top:Z})),c.createElement("div",{ref:T,className:K(D,{[`${D}-horizontal`]:p,[`${D}-vertical`]:!p,[`${D}-visible`]:P}),style:{...Y,...y},onMouseDown:q,onMouseMove:A},c.createElement("div",{ref:O,className:K(`${D}-thumb`,{[`${D}-thumb-moving`]:C}),style:{...G,...S},onMouseDown:J}))}),n9=20;function Qw(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,n9),Math.floor(n)}function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jv.apply(this,arguments)}const r9=[],o9={overflowY:"auto",overflowAnchor:"none"};function J4(e,t){const{prefixCls:n="rc-virtual-list",className:o,height:s,itemHeight:i,fullHeight:u=!0,style:m,data:h,children:p,itemKey:g,virtual:b,direction:y,scrollWidth:S,component:$="div",onScroll:C,onVirtualScroll:j,onVisibleChange:w,innerProps:R,extraRender:E,styles:N,showScrollBar:M="optional",...T}=e,O=c.useCallback(We=>typeof g=="function"?g(We):We?.[g],[g]),[P,_,L,A]=Y_(O),B=!!(b!==!1&&s&&i),V=c.useMemo(()=>Object.values(L.maps).reduce((We,je)=>We+je,0),[L.id,L.maps]),Z=B&&h&&(Math.max(i*h.length,V)>s||!!S),W=y==="rtl",H=K(n,{[`${n}-rtl`]:W},o),q=h||r9,U=c.useRef(null),J=c.useRef(null),k=c.useRef(null),[I,D]=c.useState(0),[Y,G]=c.useState(0),[X,ee]=c.useState(!1),Q=()=>{ee(!0)},ae=()=>{ee(!1)},se={getKey:O};function ie(We){D(je=>{let Be;typeof We=="function"?Be=We(je):Be=We;const we=Me(Be);return U.current.scrollTop=we,we})}const fe=c.useRef({start:0,end:q.length}),oe=c.useRef(void 0),[re]=U_(q,O);oe.current=re;const{scrollHeight:pe,start:ve,end:Ce,offset:he}=c.useMemo(()=>{if(!B)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 We=0,je,Be,we;const Fe=q.length;for(let Ve=0;Ve<Fe;Ve+=1){const Ye=q[Ve],dt=O(Ye),ln=L.get(dt),et=We+(ln===void 0?i:ln);et>=I&&je===void 0&&(je=Ve,Be=We),et>I+s&&we===void 0&&(we=Ve),We=et}return je===void 0&&(je=0,Be=0,we=Math.ceil(s/i)),we===void 0&&(we=q.length-1),we=Math.min(we+1,q.length-1),{scrollHeight:We,start:je,end:we,offset:Be}},[Z,B,I,q,A,s]);fe.current.start=ve,fe.current.end=Ce,c.useLayoutEffect(()=>{const We=L.getRecord();if(We.size===1){const je=Array.from(We.keys())[0],Be=We.get(je),we=q[ve];if(we&&Be===void 0&&O(we)===je){const Ye=L.get(je)-i;ie(dt=>dt+Ye)}}L.resetRecord()},[pe]);const[te,Se]=c.useState({width:0,height:s}),Te=We=>{Se({width:We.offsetWidth,height:We.offsetHeight})},Ee=c.useRef(null),Le=c.useRef(null),Pe=c.useMemo(()=>Qw(te.width,S),[te.width,S]),ye=c.useMemo(()=>Qw(te.height,pe),[te.height,pe]),Ie=pe-s,De=c.useRef(Ie);De.current=Ie;function Me(We){let je=We;return Number.isNaN(De.current)||(je=Math.min(je,De.current)),je=Math.max(je,0),je}const qe=I<=0,tt=I>=Ie,Xe=Y<=0,He=Y>=S,Ue=Z4(qe,tt,Xe,He),Qe=()=>({x:W?-Y:Y,y:I}),ke=c.useRef(Qe()),Oe=wt(We=>{if(j){const je={...Qe(),...We};(ke.current.x!==je.x||ke.current.y!==je.y)&&(j(je),ke.current=je)}});function Je(We,je){const Be=We;je?(rs.flushSync(()=>{G(Be)}),Oe()):ie(Be)}function nt(We){const{scrollTop:je}=We.currentTarget;je!==I&&ie(je),C?.(We),Oe()}const ut=We=>{let je=We;const Be=S?S-te.width:0;return je=Math.max(je,0),je=Math.min(je,Be),je},Rt=wt((We,je)=>{je?(rs.flushSync(()=>{G(Be=>{const we=Be+(W?-We:We);return ut(we)})}),Oe()):ie(Be=>Be+We)}),[ht,Ut]=G_(B,qe,tt,Xe,He,!!S,Rt);Q_(B,U,(We,je,Be,we)=>{const Fe=we;return Ue(We,je,Be)?!1:!Fe||!Fe._virtualHandled?(Fe&&(Fe._virtualHandled=!0),ht({preventDefault(){},deltaX:We?je:0,deltaY:We?0:je}),!0):!1}),Z_(Z,U,We=>{ie(je=>je+We)}),xn(()=>{function We(Be){const we=qe&&Be.detail<0,Fe=tt&&Be.detail>0;B&&!we&&!Fe&&Be.preventDefault()}const je=U.current;return je.addEventListener("wheel",ht,{passive:!1}),je.addEventListener("DOMMouseScroll",Ut,{passive:!0}),je.addEventListener("MozMousePixelScroll",We,{passive:!1}),()=>{je.removeEventListener("wheel",ht),je.removeEventListener("DOMMouseScroll",Ut),je.removeEventListener("MozMousePixelScroll",We)}},[B,qe,tt]),xn(()=>{if(S){const We=ut(Y);G(We),Oe({x:We})}},[te.width,S]);const _t=()=>{Ee.current?.delayHidden(),Le.current?.delayHidden()},Ct=X_(q,O,L,i),kt=t9(U,q,L,i,O,Ct,()=>_(!0),ie,_t);c.useImperativeHandle(t,()=>({nativeElement:k.current,getScrollInfo:Qe,scrollTo:We=>{function je(Be){return Be&&typeof Be=="object"&&("left"in Be||"top"in Be)}je(We)?(We.left!==void 0&&G(ut(We.left)),kt(We.top)):kt(We)}})),xn(()=>{if(w){const We=q.slice(ve,Ce+1);w(We,q)}},[ve,Ce,q]);const Pt=E?.({start:ve,end:Ce,virtual:Z,offsetX:Y,scrollTop:I,offsetY:he,rtl:W,getSize:Ct}),Vt=q_(q,ve,Ce,S,Y,P,p,se);let Ze=null;s&&(Ze={[u?"height":"maxHeight"]:s,...o9},B&&(Ze.overflowY="hidden",S&&(Ze.overflowX="hidden"),X&&(Ze.pointerEvents="none")));const $t={};return W&&($t.dir="rtl"),c.createElement("div",jv({ref:k,style:{...m,position:"relative"},className:H},$t,T),c.createElement(ko,{onResize:Te},c.createElement($,{className:`${n}-holder`,style:Ze,ref:U,onScroll:nt,onMouseEnter:_t},c.createElement(Q4,{prefixCls:n,height:pe,offsetX:Y,offsetY:he,scrollWidth:S,onInnerResize:_,ref:J,innerProps:R,rtl:W,extra:Pt},Vt))),Z&&pe>s&&c.createElement(Yw,{ref:Ee,prefixCls:n,scrollOffset:I,scrollRange:pe,rtl:W,onScroll:Je,onStartMove:Q,onStopMove:ae,spinSize:ye,containerSize:te.height,style:N?.verticalScrollBar,thumbStyle:N?.verticalScrollBarThumb,showScrollBar:M}),Z&&S>te.width&&c.createElement(Yw,{ref:Le,prefixCls:n,scrollOffset:Y,scrollRange:S,rtl:W,onScroll:Je,onStartMove:Q,onStopMove:ae,spinSize:Pe,containerSize:te.width,horizontal:!0,style:N?.horizontalScrollBar,thumbStyle:N?.horizontalScrollBarThumb,showScrollBar:M}))}const eR=c.forwardRef(J4);eR.displayName="List";const a9=c.forwardRef((e,t)=>J4({...e,virtual:!1},t));a9.displayName="List";function s9(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function $c(){return $c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$c.apply(this,arguments)}function Zw(e){return typeof e=="string"||typeof e=="number"}const i9=(e,t)=>{const{prefixCls:n,id:o,open:s,multiple:i,mode:u,searchValue:m,toggleOpen:h,notFoundContent:p,onPopupScroll:g,showScrollBar:b,lockOptions:y}=Ks(),{maxCount:S,flattenOptions:$,onActiveValue:C,defaultActiveFirstOption:j,onSelect:w,menuItemSelectedIcon:R,rawValues:E,fieldNames:N,virtual:M,direction:T,listHeight:O,listItemHeight:P,optionRender:_,classNames:L,styles:A}=c.useContext(yy),B=`${n}-item`,V=Wc(()=>$,[s,y],(ie,fe)=>fe[0]&&!fe[1]),Z=c.useRef(null),W=c.useMemo(()=>i&&yv(S)&&E?.size>=S,[i,S,E?.size]),H=ie=>{ie.preventDefault()},q=ie=>{Z.current?.scrollTo(typeof ie=="number"?{index:ie}:ie)},U=c.useCallback(ie=>u==="combobox"?!1:E.has(ie),[u,[...E].toString(),E.size]),J=(ie,fe=1)=>{const oe=V.length;for(let re=0;re<oe;re+=1){const pe=(ie+re*fe+oe)%oe,{group:ve,data:Ce}=V[pe]||{};if(!ve&&!Ce?.disabled&&(U(Ce.value)||!W))return pe}return-1},[k,I]=c.useState(()=>J(0)),D=(ie,fe=!1)=>{I(ie);const oe={source:fe?"keyboard":"mouse"},re=V[ie];if(!re){C(null,-1,oe);return}C(re.value,ie,oe)};c.useEffect(()=>{D(j!==!1?J(0):-1)},[V.length,m]);const Y=c.useCallback(ie=>u==="combobox"?String(ie).toLowerCase()===m.toLowerCase():E.has(ie),[u,m,[...E].toString(),E.size]);c.useEffect(()=>{let ie;if(!i&&s&&E.size===1){const fe=Array.from(E)[0],oe=V.findIndex(({data:re})=>m?String(re.value).startsWith(m):re.value===fe);oe!==-1&&(D(oe),ie=setTimeout(()=>{q(oe)}))}return s&&Z.current?.scrollTo(void 0),()=>clearTimeout(ie)},[s,m]);const G=ie=>{ie!==void 0&&w(ie,{selected:!E.has(ie)}),i||h(!1)};if(c.useImperativeHandle(t,()=>({onKeyDown:ie=>{const{which:fe,ctrlKey:oe}=ie;switch(fe){case ct.N:case ct.P:case ct.UP:case ct.DOWN:{let re=0;if(fe===ct.UP?re=-1:fe===ct.DOWN?re=1:s9()&&oe&&(fe===ct.N?re=1:fe===ct.P&&(re=-1)),re!==0){const pe=J(k+re,re);q(pe),D(pe,!0)}break}case ct.TAB:case ct.ENTER:{const re=V[k];if(!re||re.data.disabled)return G(void 0);!W||E.has(re.value)?G(re.value):G(void 0),s&&ie.preventDefault();break}case ct.ESC:h(!1),s&&ie.stopPropagation()}},onKeyUp:()=>{},scrollTo:ie=>{q(ie)}})),V.length===0)return c.createElement("div",{role:"listbox",id:`${o}_list`,className:`${B}-empty`,onMouseDown:H},p);const X=Object.keys(N).map(ie=>N[ie]),ee=ie=>ie.label;function Q(ie,fe){const{group:oe}=ie;return{role:oe?"presentation":"option",id:`${o}_list_${fe}`}}const ae=ie=>{const fe=V[ie];if(!fe)return null;const oe=fe.data||{},{value:re,disabled:pe}=oe,{group:ve}=fe,Ce=br(oe,!0),he=ee(fe);return fe?c.createElement("div",$c({"aria-label":typeof he=="string"&&!ve?he:null},Ce,{key:ie},Q(fe,ie),{"aria-selected":Y(re),"aria-disabled":pe}),re):null},se={role:"listbox",id:`${o}_list`};return c.createElement(c.Fragment,null,M&&c.createElement("div",$c({},se,{style:{height:0,width:0,overflow:"hidden"}}),ae(k-1),ae(k),ae(k+1)),c.createElement(eR,{itemKey:"key",ref:Z,data:V,height:O,itemHeight:P,fullHeight:!1,onMouseDown:H,onScroll:g,virtual:M,direction:T,innerProps:M?null:se,showScrollBar:b,className:L?.popup?.list,style:A?.popup?.list},(ie,fe)=>{const{group:oe,groupOption:re,data:pe,label:ve,value:Ce}=ie,{key:he}=pe;if(oe){const Qe=pe.title??(Zw(ve)?ve.toString():void 0);return c.createElement("div",{className:K(B,`${B}-group`,pe.className),title:Qe},ve!==void 0?ve:he)}const{disabled:te,title:Se,children:Te,style:Ee,className:Le,...Pe}=pe,ye=Mn(Pe,X),Ie=U(Ce),De=te||!Ie&&W,Me=`${B}-option`,qe=K(B,Me,Le,L?.popup?.listItem,{[`${Me}-grouped`]:re,[`${Me}-active`]:k===fe&&!De,[`${Me}-disabled`]:De,[`${Me}-selected`]:Ie}),tt=ee(ie),Xe=!R||typeof R=="function"||Ie,He=typeof tt=="number"?tt:tt||Ce;let Ue=Zw(He)?He.toString():void 0;return Se!==void 0&&(Ue=Se),c.createElement("div",$c({},br(ye),M?{}:Q(ie,fe),{"aria-selected":M?void 0:Y(Ce),"aria-disabled":De,className:qe,title:Ue,onMouseMove:()=>{k===fe||De||D(fe)},onClick:()=>{De||G(Ce)},style:{...A?.popup?.listItem,...Ee}}),c.createElement("div",{className:`${Me}-content`},typeof _=="function"?_(ie,{index:fe}):He),c.isValidElement(R)||Ie,Xe&&c.createElement(Y4,{className:`${B}-option-state`,customizeIcon:R,customizeIconProps:{value:Ce,disabled:De,isSelected:Ie}},Ie?"✓":null))}))},l9=c.forwardRef(i9),c9=((e,t)=>{const n=c.useRef({values:new Map,options:new Map}),o=c.useMemo(()=>{const{values:i,options:u}=n.current,m=e.map(g=>g.label===void 0?{...g,label:i.get(g.value)?.label}:g),h=new Map,p=new Map;return m.forEach(g=>{h.set(g.value,g),p.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=h,n.current.options=p,m},[e,t]),s=c.useCallback(i=>t.get(i)||n.current.options.get(i),[t]);return[o,s]});function Lg(e,t){return G4(e).join("").toUpperCase().includes(t)}const u9=((e,t,n,o,s)=>c.useMemo(()=>{if(!n||o===!1)return e;const{options:i,label:u,value:m}=t,h=[],p=typeof o=="function",g=n.toUpperCase(),b=p?o:(S,$)=>s&&s.length?s.some(C=>Lg($[C],g)):$[i]?Lg($[u!=="children"?u:"label"],g):Lg($[m],g),y=p?S=>xv(S):S=>S;return e.forEach(S=>{if(S[i]){if(b(n,y(S)))h.push(S);else{const C=S[i].filter(j=>b(n,y(j)));C.length&&h.push({...S,[i]:C})}return}b(n,y(S))&&h.push(S)}),h},[e,o,s,n,t]));function d9(e){const{key:t,props:{children:n,value:o,...s}}=e;return{key:t,value:o!==void 0?o:t,children:n,...s}}function tR(e,t=!1){return kr(e).map((n,o)=>{if(!c.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:s},key:i,props:{children:u,...m}}=n;return t||!s?d9(n):{key:`__RC_SELECT_GRP__${i===null?o:i}__`,label:i,...m,options:tR(u)}}).filter(n=>n)}const f9=(e,t,n,o,s)=>c.useMemo(()=>{let i=e;!e&&(i=tR(t));const m=new Map,h=new Map,p=(b,y,S)=>{S&&typeof S=="string"&&b.set(y[S],y)},g=(b,y=!1)=>{for(let S=0;S<b.length;S+=1){const $=b[S];!$[n.options]||y?(m.set($[n.value],$),p(h,$,n.label),o.forEach(C=>{p(h,$,C)}),p(h,$,s)):g($[n.options],!0)}};return g(i),{options:i,valueOptions:m,labelOptions:h}},[e,t,n,o,s]);function Jw(e){const t=c.useRef();return t.current=e,c.useCallback((...o)=>t.current(...o),[])}function m9(e,t,n){const{filterOption:o,searchValue:s,optionFilterProp:i,filterSort:u,onSearch:m,autoClearSearchValue:h}=t;return c.useMemo(()=>{const p=typeof e=="object",g={filterOption:o,searchValue:s,optionFilterProp:i,filterSort:u,onSearch:m,autoClearSearchValue:h,...p?e:{}};return[p||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,o,s,i,u,m,h])}function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rv.apply(this,arguments)}const p9=["inputValue"];function h9(e){return!e||typeof e!="object"}const g9=c.forwardRef((e,t)=>{const{id:n,mode:o,prefixCls:s="rc-select",backfill:i,fieldNames:u,showSearch:m,searchValue:h,onSearch:p,autoClearSearchValue:g,filterOption:b,optionFilterProp:y,filterSort:S,onSelect:$,onDeselect:C,onActive:j,popupMatchSelectWidth:w=!0,optionLabelProp:R,options:E,optionRender:N,children:M,defaultActiveFirstOption:T,menuItemSelectedIcon:O,virtual:P,direction:_,listHeight:L=200,listItemHeight:A=20,labelRender:B,value:V,defaultValue:Z,labelInValue:W,onChange:H,maxCount:q,classNames:U,styles:J,...k}=e,I={searchValue:h,onSearch:p,autoClearSearchValue:g,filterOption:b,optionFilterProp:y,filterSort:S},[D,Y]=m9(m,I,o),{filterOption:G,searchValue:X,optionFilterProp:ee,filterSort:Q,onSearch:ae,autoClearSearchValue:se=!0}=Y,ie=c.useMemo(()=>ee?Array.isArray(ee)?ee:[ee]:[],[ee]),fe=ya(n),oe=Ev(o),re=!!(!E&&M),pe=c.useMemo(()=>G===void 0&&o==="combobox"?!1:G,[G,o]),ve=c.useMemo(()=>V4(u,re),[JSON.stringify(u),re]),[Ce,he]=hr("",X),te=Ce||"",Se=f9(E,M,ve,ie,R),{valueOptions:Te,labelOptions:Ee,options:Le}=Se,Pe=c.useCallback(we=>G4(we).map(Ve=>{let Ye,dt,ln,et;h9(Ve)?Ye=Ve:(dt=Ve.label,Ye=Ve.value);const gt=Te.get(Ye);return gt&&(dt===void 0&&(dt=gt?.[R||ve.label]),ln=gt?.disabled,et=gt?.title),{label:dt,value:Ye,key:Ye,disabled:ln,title:et}}),[ve,R,Te]),[ye,Ie]=hr(Z,V),De=c.useMemo(()=>{const Fe=Pe(oe&&ye===null?[]:ye);return o==="combobox"&&N_(Fe[0]?.value)?[]:Fe},[ye,Pe,o,oe]),[Me,qe]=c9(De,Te),tt=c.useMemo(()=>{if(!o&&Me.length===1){const we=Me[0];if(we.value===null&&(we.label===null||we.label===void 0))return[]}return Me.map(we=>({...we,label:(typeof B=="function"?B(we):we.label)??we.value}))},[o,Me,B]),Xe=c.useMemo(()=>new Set(Me.map(we=>we.value)),[Me]);c.useEffect(()=>{if(o==="combobox"){const we=Me[0]?.value;he(E_(we)?String(we):"")}},[Me]);const He=Jw((we,Fe)=>{const Ve=Fe??we;return{[ve.value]:we,[ve.label]:Ve}}),Ue=c.useMemo(()=>{if(o!=="tags")return Le;const we=[...Le],Fe=Ve=>Te.has(Ve);return[...Me].sort((Ve,Ye)=>Ve.value<Ye.value?-1:1).forEach(Ve=>{const Ye=Ve.value;Fe(Ye)||we.push(He(Ye,Ve.label))}),we},[He,Le,Te,Me,o]),Qe=u9(Ue,ve,te,pe,ie),ke=c.useMemo(()=>{const we=Fe=>ie.length?ie.some(Ve=>Fe?.[Ve]===te):Fe?.value===te;return o!=="tags"||!te||Qe.some(Fe=>we(Fe))||Qe.some(Fe=>Fe[ve.value]===te)||Te.get(te)?.disabled?Qe:[He(te),...Qe]},[He,ie,o,Qe,te,ve,Te]),Oe=we=>[...we].sort((Ve,Ye)=>Q(Ve,Ye,{searchValue:te})).map(Ve=>Array.isArray(Ve.options)?{...Ve,options:Ve.options.length>0?Oe(Ve.options):Ve.options}:Ve),Je=c.useMemo(()=>Q?Oe(ke):ke,[ke,Q,te]),nt=c.useMemo(()=>x_(Je,{fieldNames:ve,childrenAsData:re}),[Je,ve,re]),ut=we=>{const Fe=Pe(we);if(Ie(Fe),H&&(Fe.length!==Me.length||Fe.some((Ve,Ye)=>Me[Ye]?.value!==Ve?.value))){const Ve=W?Fe.map(({label:dt,value:ln})=>({label:dt,value:ln})):Fe.map(dt=>dt.value),Ye=Fe.map(dt=>xv(qe(dt.value)));H(oe?Ve:Ve[0],oe?Ye:Ye[0])}},[Rt,ht]=c.useState(null),[Ut,_t]=c.useState(0),Ct=T!==void 0?T:o!=="combobox",kt=c.useRef(),Pt=c.useCallback((we,Fe,{source:Ve="keyboard"}={})=>{_t(Fe),i&&o==="combobox"&&we!==null&&Ve==="keyboard"&&ht(String(we));const Ye=Promise.resolve().then(()=>{kt.current===Ye&&j?.(we)});kt.current=Ye},[i,o,j]),Vt=(we,Fe,Ve)=>{const Ye=()=>{const dt=qe(we);return[W?{label:dt?.[ve.label],value:we}:we,xv(dt)]};if(Fe&&$){const[dt,ln]=Ye();$(dt,ln)}else if(!Fe&&C&&Ve!=="clear"){const[dt,ln]=Ye();C(dt,ln)}},Ze=Jw((we,Fe)=>{let Ve;const Ye=oe?Fe.selected:!0;Ye?Ve=oe?[...Me,we]:[we]:Ve=Me.filter(dt=>dt.value!==we),ut(Ve),Vt(we,Ye),o==="combobox"?ht(""):(!Ev||se)&&(he(""),ht(""))}),$t=(we,Fe)=>{ut(we);const{type:Ve,values:Ye}=Fe;(Ve==="remove"||Ve==="clear")&&Ye.forEach(dt=>{Vt(dt.value,!1,Ve)})},We=(we,Fe)=>{if(he(we),ht(null),Fe.source==="submit"){const Ve=(we||"").trim();if(Ve){if(Te.get(Ve)?.disabled){he("");return}const Ye=Array.from(new Set([...Xe,Ve]));ut(Ye),Vt(Ve,!0),he("")}return}Fe.source!=="blur"&&(o==="combobox"&&ut(we),ae?.(we))},je=we=>{let Fe=we;o!=="tags"&&(Fe=we.map(Ye=>Ee.get(Ye)?.value).filter(Ye=>Ye!==void 0)),o==="tags"&&(Fe=Fe.filter(Ye=>!Te.get(Ye)?.disabled));const Ve=Array.from(new Set([...Xe,...Fe]));ut(Ve),Ve.forEach(Ye=>{Vt(Ye,!0)})},Be=c.useMemo(()=>({...Se,flattenOptions:nt,onActiveValue:Pt,defaultActiveFirstOption:Ct,onSelect:Ze,menuItemSelectedIcon:O,rawValues:Xe,fieldNames:ve,virtual:P!==!1&&w!==!1,direction:_,listHeight:L,listItemHeight:A,childrenAsData:re,maxCount:q,optionRender:N,classNames:U,styles:J}),[q,Se,nt,Pt,Ct,Ze,O,Xe,ve,P,w,_,L,A,re,N,U,J]);return c.createElement(yy.Provider,{value:Be},c.createElement(k_,Rv({},k,{id:fe,prefixCls:s,ref:t,omitDomProps:p9,mode:o,classNames:U,styles:J,displayValues:tt,onDisplayValuesChange:$t,maxCount:q,direction:_,showSearch:D,searchValue:te,onSearch:We,autoClearSearchValue:se,onSearchSplit:je,popupMatchSelectWidth:w,OptionList:l9,emptyOptions:!nt.length,activeValue:Rt,activeDescendantId:`${fe}_list_${Ut}`})))}),Cy=g9;Cy.Option=Sy;Cy.OptGroup=xy;function eE(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}const Bc=(e,t,n)=>K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),_m=(e,t)=>t||e,Ps=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new On(e).onBackground(t).toHexString(),b9=()=>{const[,e]=xo(),[t]=Sa("Empty"),{colorBgContainer:n,colorFill:o,colorFillSecondary:s,colorFillTertiary:i,colorTextQuaternary:u}=e,{panelBgColor:m,borderColor:h,detailColor:p,shadowColor:g,iconColor:b}=c.useMemo(()=>({panelBgColor:Ps(i,n),borderColor:Ps(u,n),detailColor:Ps(o,n),shadowColor:Ps(s,n),iconColor:n}),[n,o,s,i,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:h,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:m,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:p,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:p,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"}))))},v9=()=>{const[,e]=xo(),[t]=Sa("Empty"),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:s,colorBgContainer:i}=e,{borderColor:u,shadowColor:m,contentColor:h}=c.useMemo(()=>({borderColor:Ps(n,i),shadowColor:Ps(o,i),contentColor:Ps(s,i)}),[n,o,s,i]);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:m,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:h}))))},y9=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:s,fontSize:i,lineHeight:u}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:u,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:s,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},x9=an("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,s=rn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return y9(s)}),nR=c.createElement(b9,null),rR=c.createElement(v9,null),gn=e=>{const{className:t,rootClassName:n,prefixCls:o,image:s,description:i,children:u,imageStyle:m,style:h,classNames:p,styles:g,...b}=e,{getPrefixCls:y,direction:S,className:$,style:C,classNames:j,styles:w,image:R}=en("empty"),E=y("empty",o),[N,M]=x9(E),T=dn(C),O=dn(h),[P,_]=sn([j,p],[w,T,g,O],{props:e}),[L]=Sa("Empty"),A=typeof i<"u"?i:L?.description,B=typeof A=="string"?A:"empty",V=s??R??nR;let Z=null;return typeof V=="string"?Z=c.createElement("img",{draggable:!1,alt:B,src:V}):Z=V,c.createElement("div",{className:K(N,M,E,$,{[`${E}-normal`]:V===rR,[`${E}-rtl`]:S==="rtl"},t,n,P.root),style:_.root,...b},c.createElement("div",{className:K(`${E}-image`,P.image),style:{...m,..._.image}},Z),A&&c.createElement("div",{className:K(`${E}-description`,P.description),style:_.description},A),u&&c.createElement("div",{className:K(`${E}-footer`,P.footer),style:_.footer},u))};gn.PRESENTED_IMAGE_DEFAULT=nR;gn.PRESENTED_IMAGE_SIMPLE=rR;const S9=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(vt),o=n("empty");switch(t){case"Table":case"List":return ue.createElement(gn,{image:gn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ue.createElement(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return ue.createElement(gn,null)}},Bm=(e,t,n)=>{const{variant:o,[e]:s}=c.useContext(vt),i=c.useContext(g4),u=s?.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=i??u??o??"outlined";const h=mO.includes(m);return[m,h]},C9=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function $9(e,t){return e||C9(t)}const tE=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:s}=e;return{position:"relative",display:"block",minHeight:t,padding:s,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},w9=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,s=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,u=`&${t}-slide-up-leave${t}-slide-up-leave-active`,m=`${n}-dropdown-placement-`,h=`${o}-option-selected`;return[{[`${n}-dropdown`]:{...Ln(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
|
-
${s}${m}bottomLeft,
|
|
167
|
-
${i}${m}bottomLeft
|
|
168
|
-
`]:{animationName:iy},[`
|
|
169
|
-
${s}${m}topLeft,
|
|
170
|
-
${i}${m}topLeft,
|
|
171
|
-
${s}${m}topRight,
|
|
172
|
-
${i}${m}topRight
|
|
173
|
-
`]:{animationName:cy},[`${u}${m}bottomLeft`]:{animationName:ly},[`
|
|
174
|
-
${u}${m}topLeft,
|
|
175
|
-
${u}${m}topRight
|
|
176
|
-
`]:{animationName:uy},"&-hidden":{display:"none"},[o]:{...tE(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",...Mo},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${o}-option-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...tE(e),color:e.colorTextDisabled}},[`${h}:has(+ ${h})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${h}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},tl(e,"slide-up"),tl(e,"slide-down"),yw(e,"move-up"),yw(e,"move-down")]},E9=e=>{const{antCls:t,componentCls:n}=e,o={background:"transparent"},s=["> input[disabled]","> textarea[disabled]",`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${n}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${n}-placeholder`]:{display:"none"},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${n}-filled ${n}-content`]:{[`${t}-input-filled`]:o},[`&${n}-disabled ${n}-content`]:{[s]:o,"input[disabled], textarea[disabled]":o}}}},nE=4,N9=e=>{const{componentCls:t,calc:n,iconCls:o,paddingXS:s,paddingXXS:i,INTERNAL_FIXED_ITEM_MARGIN:u,lineWidth:m,lineType:h,colorIcon:p,colorIconHover:g,inputPaddingHorizontalBase:b,antCls:y}=e,[S,$]=on(y,"select");return{"&-multiple":{[S("multi-item-background")]:e.multipleItemBg,[S("multi-item-border-color")]:"transparent",[S("multi-item-border-radius")]:e.borderRadiusSM,[S("multi-item-height")]:e.multipleItemHeight,[S("multi-padding-base")]:`calc((${$("height")} - ${$("multi-item-height")}) / 2)`,[S("multi-padding-vertical")]:`calc(${$("multi-padding-base")} - ${u} - ${m})`,[S("multi-item-padding-horizontal")]:`calc(${b} - ${$("multi-padding-vertical")} - ${m} * 2)`,paddingBlock:$("multi-padding-vertical"),paddingInlineStart:`calc(${$("multi-padding-base")} - ${m})`,[`${t}-prefix`]:{marginInlineStart:$("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:$("line-height"),insetInlineStart:$("multi-item-padding-horizontal"),width:`calc(100% - ${$("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:$("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${nE}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
177
|
-
${t}-content-item-suffix:first-child`]:{marginInlineStart:$("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${$("multi-item-height")} - ${m} * 2)`,border:`${m} ${h} ${$("multi-item-border-color")}`,display:"flex",marginBlock:u,marginInlineEnd:n(u).mul(2).equal(),background:$("multi-item-background"),borderRadius:$("multi-item-border-radius"),paddingInlineStart:s,paddingInlineEnd:i,transition:["height","line-height","padding"].map(C=>`${C} ${e.motionDurationSlow}`).join(","),"&-content":{...Mo,marginInlineEnd:i},"&-remove":{...Nm(),display:"inline-flex",alignItems:"center",color:p,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:g}}},[`${t}-input`]:{lineHeight:n(u).mul(2).add($("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:nE,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[S("multi-item-height")]:e.multipleItemHeightSM,[S("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[S("multi-item-height")]:e.multipleItemHeightLG,[S("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[S("multi-item-border-color")]:e.colorSplit,[S("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[S("multi-item-border-color")]:"transparent"}}}}},_g=(e,t)=>{const{componentCls:n,antCls:o}=e,[s]=on(o,"select"),{border:i,borderHover:u,borderActive:m,borderOutline:h}=t,p=t.background||e.selectorBg||e.colorBgContainer;return{[s("border-color")]:i,[s("background-color")]:p,[s("affix-color")]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[s("border-color")]:u,[s("background-color")]:t.backgroundHover||p},[`&${n}-focused`]:{[s("border-color")]:m,[s("background-color")]:t.backgroundActive||p,boxShadow:`0 0 0 ${le(e.controlOutlineWidth)} ${h}`}},[`&${n}-disabled`]:{[s("border-color")]:t.borderDisabled||t.border,[s("background-color")]:t.backgroundDisabled||t.background}}},_d=(e,t,n,o,s,i)=>{const{componentCls:u}=e;return{[`&${u}-${t}`]:[_g(e,n),{[`&${u}-status-error`]:_g(e,{...n,...o}),[`&${u}-status-warning`]:_g(e,{...n,...s})},i]}},Bg=(e,t)=>({outline:`${le(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:le(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),j9=e=>{const{componentCls:t,fontHeight:n,controlHeight:o,fontSizeIcon:s,showArrowPaddingInlineEnd:i,iconCls:u,antCls:m,max:h,calc:p}=e,[g,b]=on(m,"select"),y=h(p(i).sub(s).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")]:n,[g("color")]:e.colorText,[g("affix-color")]:e.colorText,[g("height")]:o,[g("padding-horizontal")]:p(e.paddingSM).sub(e.lineWidth).equal(),[g("padding-vertical")]:`calc((${b("height")} - ${b("font-height")}) / 2 - ${b("border-size")})`,...Ln(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`]:{...Mo,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:y,"&: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")]:p(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`]:{...Mo,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"}},N9(e),_d(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}),_d(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}),_d(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)`]:Bg(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:Bg(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:Bg(e,e.colorWarning)}),_d(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"}),E9(e)]}},R9=e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:s,controlHeightSM:i,controlHeightLG:u,paddingXXS:m,controlPaddingHorizontal:h,zIndexPopupBase:p,colorText:g,fontWeightStrong:b,controlItemBgActive:y,controlItemBgHover:S,colorBgContainer:$,colorFillSecondary:C,colorBgContainerDisabled:j,colorTextDisabled:w,colorPrimaryHover:R,colorPrimary:E,controlOutline:N}=e,M=m*2,T=o*2,O=Math.min(s-M,s-T),P=Math.min(i-M,i-T),_=Math.min(u-M,u-T);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(m/2),zIndexPopup:p+50,optionSelectedColor:g,optionSelectedFontWeight:b,optionSelectedBg:y,optionActiveBg:S,optionPadding:`${(s-t*n)/2}px ${h}px`,optionFontSize:t,optionLineHeight:n,optionHeight:s,selectorBg:$,clearBg:$,singleItemHeightLG:u,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:P,multipleItemHeightLG:_,multipleSelectorBgDisabled:j,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:R,activeBorderColor:E,activeOutlineColor:N,selectAffixPadding:m}},M9=e=>{const{antCls:t,componentCls:n,motionDurationMid:o,inputPaddingHorizontalBase:s}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Ln(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Mo,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:s,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} ${o} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(s).add(e.fontSize).add(e.paddingXS).equal()}}}}}},T9=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},M9(e),w9(e),{[`${t}-rtl`]:{direction:"rtl"}},Pm(e,{focusElCls:`${t}-focused`})]},O9=an("Select",(e,{rootPrefixCls:t})=>{const n=rn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[T9(n),j9(n)]},R9,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Bd={},rE;function z9(){if(rE)return Bd;rE=1,Object.defineProperty(Bd,"__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 Bd.default=e,Bd}var A9=z9();const I9=jt(A9);function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mv.apply(this,arguments)}const P9=(e,t)=>c.createElement(It,Mv({},e,{ref:t,icon:I9})),dl=c.forwardRef(P9);var Dd={},oE;function L9(){if(oE)return Dd;oE=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:"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 Dd.default=e,Dd}var _9=L9();const B9=jt(_9);function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tv.apply(this,arguments)}const D9=(e,t)=>c.createElement(It,Tv({},e,{ref:t,icon:B9})),oR=c.forwardRef(D9);var Hd={},aE;function H9(){if(aE)return Hd;aE=1,Object.defineProperty(Hd,"__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 Hd.default=e,Hd}var F9=H9();const k9=jt(F9);function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ov.apply(this,arguments)}const V9=(e,t)=>c.createElement(It,Ov({},e,{ref:t,icon:k9})),Ys=c.forwardRef(V9);function q9({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:o,menuItemSelectedIcon:s,contextMenuItemSelectedIcon:i,removeIcon:u,contextRemoveIcon:m,loading:h,loadingIcon:p,contextLoadingIcon:g,searchIcon:b,contextSearchIcon:y,multiple:S,hasFeedback:$,showSuffixIcon:C,feedbackIcon:j,showArrow:w,componentName:R}){return c.useMemo(()=>{const E=vo(n,o,c.createElement(is,null)),N=P=>e===null&&!$&&!w?null:c.createElement(c.Fragment,null,C!==!1&&P,$&&j);let M=null;e!==void 0?M=N(e):h?M=N(vo(p,g,c.createElement(ll,{spin:!0}))):M=({open:P,showSearch:_})=>N(P&&_?vo(b,y,c.createElement(Ys,null)):vo(t,c.createElement(oR,null)));const T=vo(s,i,S?c.createElement(dl,null):null),O=vo(u,m,c.createElement(zo,null));return{clearIcon:E,suffixIcon:M,itemIcon:T,removeIcon:O}},[e,t,n,o,s,i,u,m,h,p,g,b,y,S,$,C,j,w])}function W9(e){return ue.useMemo(()=>{if(e)return(...t)=>ue.createElement(nl,{space:!0},e.apply(void 0,t))},[e])}function U9(e,t){return t!==void 0?t:e!==null}const aR="SECRET_COMBOBOX_MODE_DO_NOT_USE",G9=(e,t)=>{const{prefixCls:n,bordered:o,className:s,rootClassName:i,getPopupContainer:u,popupClassName:m,dropdownClassName:h,listHeight:p=256,placement:g,listItemHeight:b,size:y,disabled:S,notFoundContent:$,status:C,builtinPlacements:j,dropdownMatchSelectWidth:w,popupMatchSelectWidth:R,direction:E,style:N,allowClear:M,variant:T,popupStyle:O,dropdownStyle:P,transitionName:_,tagRender:L,maxCount:A,prefix:B,dropdownRender:V,popupRender:Z,onDropdownVisibleChange:W,onOpenChange:H,styles:q,classNames:U,clearIcon:J,showSearch:k,...I}=e,{getPopupContainer:D,getPrefixCls:Y,renderEmpty:G,direction:X,virtual:ee,popupMatchSelectWidth:Q,popupOverflow:ae}=c.useContext(vt),{showSearch:se,allowClear:ie,style:fe,styles:oe,className:re,classNames:pe,clearIcon:ve,loadingIcon:Ce,menuItemSelectedIcon:he,removeIcon:te,suffixIcon:Se}=en("select"),[,Te]=xo(),Ee=b??Te?.controlHeight,Le=Y("select",n),Pe=Y(),ye=E??X,{compactSize:Ie,compactItemClassnames:De}=cl(Le,ye),[Me,qe]=Bm("select",T,o),tt=Rr(Le),[Xe,He]=O9(Le,tt),Ue=c.useMemo(()=>{const{mode:Ge}=e;if(Ge!=="combobox")return Ge===aR?"combobox":Ge},[e.mode]),Qe=Ue==="multiple"||Ue==="tags",ke=U9(e.suffixIcon,e.showArrow),Oe=R??w??Q,Je=W9(Z||V),nt=H||W,{status:ut,hasFeedback:Rt,isFormItemInput:ht,feedbackIcon:Ut}=c.useContext(ro),_t=_m(ut,C);let Ct;$!==void 0?Ct=$:Ue==="combobox"?Ct=null:Ct=G?.("Select")||c.createElement(S9,{componentName:"Select"});const{suffixIcon:kt,itemIcon:Pt,removeIcon:Vt,clearIcon:Ze}=q9({...I,multiple:Qe,hasFeedback:Rt,feedbackIcon:Ut,showSuffixIcon:ke,componentName:"Select",clearIcon:J,searchIcon:eE(k,"searchIcon"),contextClearIcon:ve,contextLoadingIcon:Ce,contextMenuItemSelectedIcon:he,contextRemoveIcon:te,contextSearchIcon:eE(se,"searchIcon"),contextSuffixIcon:Se}),$t=M??ie,We=$t===!0?{clearIcon:Ze}:$t,je=k??se,Be=Mn(I,["suffixIcon","itemIcon"]),we=Mr(Ge=>y??Ie??Ge),Fe=c.useContext(no),Ve=S??Fe,Ye={...e,variant:Me,status:_t,disabled:Ve,size:we},dt=dn(fe),ln=dn(N),[et,gt]=sn([pe,U],[oe,dt,q,ln],{props:Ye},{popup:{_default:"root"}}),zt=K(et.popup.root,m,h,{[`${Le}-dropdown-${ye}`]:ye==="rtl"},i,He,tt,Xe),fn={...gt.popup?.root,...O??P},mt=K({[`${Le}-lg`]:we==="large",[`${Le}-sm`]:we==="small",[`${Le}-rtl`]:ye==="rtl",[`${Le}-${Me}`]:qe,[`${Le}-in-form-item`]:ht},Bc(Le,_t,Rt),De,re,s,et.root,i,He,tt,Xe),yt=c.useMemo(()=>g!==void 0?g:ye==="rtl"?"bottomRight":"bottomLeft",[g,ye]),[xt]=Zc("SelectLike",gt.popup.root?.zIndex??fn.zIndex);return c.createElement(Cy,{ref:t,virtual:ee,classNames:et,styles:gt,showSearch:je,...Be,style:gt.root,popupMatchSelectWidth:Oe,transitionName:Wo(Pe,"slide-up",_),builtinPlacements:$9(j,ae),listHeight:p,listItemHeight:Ee,mode:Ue,prefixCls:Le,placement:yt,direction:ye,prefix:B,suffixIcon:kt,menuItemSelectedIcon:Pt,removeIcon:Vt,allowClear:We,notFoundContent:Ct,className:mt,getPopupContainer:u||D,popupClassName:zt,disabled:Ve,popupStyle:{...gt.popup.root,...fn,zIndex:xt},maxCount:Qe?A:void 0,tagRender:Qe?L:void 0,popupRender:Je,onPopupVisibleChange:nt})},qn=c.forwardRef(G9),X9=m_(qn,"popupAlign");qn.SECRET_COMBOBOX_MODE_DO_NOT_USE=aR;qn.Option=Sy;qn.OptGroup=xy;qn._InternalPanelDoNotUseOrYouWillBeFired=X9;const rl=["xxxl","xxl","xl","lg","md","sm","xs"],sR=[].concat(rl).reverse(),K9=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)`}),Y9=e=>{const t=e,n=[].concat(rl).reverse();return n.forEach((o,s)=>{const i=o.toUpperCase(),u=`screen${i}Min`,m=`screen${i}`;if(!(t[u]<=t[m]))throw new Error(`${u}<=${m} fails : !(${t[u]}<=${t[m]})`);if(s<n.length-1){const h=`screen${i}Max`;if(!(t[m]<=t[h]))throw new Error(`${m}<=${h} fails : !(${t[m]}<=${t[h]})`);const g=`screen${n[s+1].toUpperCase()}Min`;if(!(t[h]<=t[g]))throw new Error(`${h}<=${g} fails : !(${t[h]}<=${t[g]})`)}}),e},Q9=()=>{const[,e]=xo(),t=K9(Y9(e));return ue.useMemo(()=>{const n=new Map;let o=-1,s={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return s=i,n.forEach(u=>{u(s)}),n.size>=1},subscribe(i){return n.size||this.register(),o+=1,n.set(o,i),i(s),o},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,u])=>{const m=({matches:p})=>{this.dispatch({...s,[i]:p})},h=window.matchMedia(u);Ht(h.addEventListener)&&h.addEventListener("change",m),this.matchHandlers[u]={mql:h,listener:m},m(h)})},unregister(){Object.values(t).forEach(i=>{const u=this.matchHandlers[i];Ht(u?.mql.removeEventListener)&&u.mql.removeEventListener("change",u?.listener)}),n.clear()}}},[t])};function iR(e=!0,t={}){const n=c.useRef(t),[,o]=mA(),s=Q9();return xn(()=>{const i=s.subscribe(u=>{n.current=u,e&&o()});return()=>s.unsubscribe(i)},[e]),n.current}const rm=e=>ar(e)?Ht(e)?e():e:null,$y=e=>{const{children:t,prefixCls:n,id:o,classNames:s,styles:i,className:u,style:m}=e;return c.createElement("div",{id:o,className:K(`${n}-container`,s?.container,u),style:{...i?.container,...m},role:"tooltip"},typeof t=="function"?t():t)},Bi={shiftX:64,adjustY:1},Di={adjustX:1,shiftY:!0},go=[0,0],Z9={left:{points:["cr","cl"],overflow:Di,offset:[-4,0],targetOffset:go},right:{points:["cl","cr"],overflow:Di,offset:[4,0],targetOffset:go},top:{points:["bc","tc"],overflow:Bi,offset:[0,-4],targetOffset:go},bottom:{points:["tc","bc"],overflow:Bi,offset:[0,4],targetOffset:go},topLeft:{points:["bl","tl"],overflow:Bi,offset:[0,-4],targetOffset:go},leftTop:{points:["tr","tl"],overflow:Di,offset:[-4,0],targetOffset:go},topRight:{points:["br","tr"],overflow:Bi,offset:[0,-4],targetOffset:go},rightTop:{points:["tl","tr"],overflow:Di,offset:[4,0],targetOffset:go},bottomRight:{points:["tr","br"],overflow:Bi,offset:[0,4],targetOffset:go},rightBottom:{points:["bl","br"],overflow:Di,offset:[4,0],targetOffset:go},bottomLeft:{points:["tl","bl"],overflow:Bi,offset:[0,4],targetOffset:go},leftBottom:{points:["br","bl"],overflow:Di,offset:[-4,0],targetOffset:go}};function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zv.apply(this,arguments)}const J9=c.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:o=0,mouseLeaveDelay:s=.1,prefixCls:i="rc-tooltip",children:u,onVisibleChange:m,afterVisibleChange:h,motion:p,placement:g="right",align:b={},destroyOnHidden:y=!1,defaultVisible:S,getTooltipContainer:$,arrowContent:C,overlay:j,id:w,showArrow:R=!0,classNames:E,styles:N,...M}=e,T=ya(w),O=c.useRef(null);c.useImperativeHandle(t,()=>O.current);const P={...M};"visible"in e&&(P.popupVisible=e.visible);const _=c.useMemo(()=>{if(!R)return!1;const A=R===!0?{}:R;return{...A,className:K(A.className,E?.arrow),style:{...A.style,...N?.arrow},content:A.content??C}},[R,E?.arrow,N?.arrow,C]),L=({open:A})=>{const B=c.Children.only(u),V={"aria-describedby":j&&A?T:void 0};return c.cloneElement(B,V)};return c.createElement(Mm,zv({popupClassName:E?.root,prefixCls:i,popup:c.createElement($y,{key:"content",prefixCls:i,id:T,classNames:E,styles:N},j),action:n,builtinPlacements:Z9,popupPlacement:g,ref:O,popupAlign:b,getPopupContainer:$,onOpenChange:m,afterOpenChange:h,popupMotion:p,defaultPopupVisible:S,autoDestroy:y,mouseLeaveDelay:s,popupStyle:N?.root,mouseEnterDelay:o,arrow:_,uniqueContainerClassName:E?.uniqueContainer,uniqueContainerStyle:N?.uniqueContainer},P),L)});function lR(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,s=t/2,i=0,u=s,m=o*1/Math.sqrt(2),h=s-o*(1-1/Math.sqrt(2)),p=s-n*(1/Math.sqrt(2)),g=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),b=2*s-p,y=g,S=2*s-m,$=h,C=2*s-i,j=u,w=s*Math.sqrt(2)+o*(Math.sqrt(2)-2),R=o*(Math.sqrt(2)-1),E=`polygon(${R}px 100%, 50% ${R}px, ${2*s-R}px 100%, ${R}px 100%)`,N=`path('M ${i} ${u} A ${o} ${o} 0 0 0 ${m} ${h} L ${p} ${g} A ${n} ${n} 0 0 1 ${b} ${y} L ${S} ${$} A ${o} ${o} 0 0 0 ${C} ${j} Z')`;return{arrowShadowWidth:w,arrowPath:N,arrowPolygon:E}}const eB=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:s,arrowPath:i,arrowShadowWidth:u,borderRadiusXS:m,calc:h}=e,p={content:'""',position:"absolute",width:u,height:u,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${le(m)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return n&&(p.boxShadow=n),{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:h(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[s,i]},content:'""'},"&::after":p}},cR=8;function wy(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?cR:o}}const uR=(e,t,n)=>{const{componentCls:o,boxShadowPopoverArrow:s,arrowOffsetVertical:i,arrowOffsetHorizontal:u,antCls:m}=e,[h]=on(m,"tooltip"),{arrowDistance:p=0,arrowShadow:g=!0}=n||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...eB(e,t,g?s:!1),"&:before":{background:t}}],[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:p,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[h("arrow-offset-x")]:u,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-topRight":{[h("arrow-offset-x")]:`calc(100% - ${le(u)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:u}}},[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:p,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[h("arrow-offset-x")]:u,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-bottomRight":{[h("arrow-offset-x")]:`calc(100% - ${le(u)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:u}}},[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:p},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i},[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:p},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}}};function tB(e,t,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const s=Ot(o)?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const u={...i,...s};return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const sE={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"]}},nB={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"]}},rB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function oB(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:s,borderRadius:i}=e,u=t/2,m={},h=wy({contentRadius:i,limitVerticalRadius:!0});return Object.keys(sE).forEach(p=>{const b={...o&&nB[p]||sE[p],offset:[0,0],dynamicInset:!0};switch(m[p]=b,rB.has(p)&&(b.autoArrow=!1),p){case"top":case"topLeft":case"topRight":b.offset[1]=-u-s;break;case"bottom":case"bottomLeft":case"bottomRight":b.offset[1]=u+s;break;case"left":case"leftTop":case"leftBottom":b.offset[0]=-u-s;break;case"right":case"rightTop":case"rightBottom":b.offset[0]=u+s;break}if(o)switch(p){case"topLeft":case"bottomLeft":b.offset[0]=-h.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":b.offset[0]=h.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":b.offset[1]=-h.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":b.offset[1]=h.arrowOffsetHorizontal*2-u;break}b.overflow=tB(p,h,t,n),b.htmlRegion="visibleFirst"}),m}const aB=ue.createContext(!1),dR=(e,t)=>{const n=o=>typeof o=="boolean"?{show:o}:o||{};return ue.useMemo(()=>{const o=n(e),s=n(t);return{...s,...o,show:o.show??s.show??!0}},[e,t])},iE="50%",sB=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:s,tooltipBg:i,tooltipBorderRadius:u,zIndexPopup:m,controlHeight:h,dropShadowPopover:p,paddingSM:g,paddingXS:b,arrowOffsetHorizontal:y,sizePopupArrow:S,antCls:$}=e,[C,j]=on($,"tooltip"),w=t(u).add(S).add(y).equal(),E={minWidth:t(u).mul(2).add(S).equal(),minHeight:h,padding:`${le(e.calc(g).div(2).equal())} ${le(b)}`,color:j("overlay-color",s),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:u,boxSizing:"border-box"},N={[C("valid-offset-x")]:j("arrow-offset-x","var(--arrow-x)"),transformOrigin:[j("valid-offset-x",iE),`var(--arrow-y, ${iE})`].join(" ")};return[{[n]:{...Ln(e),position:"absolute",zIndex:m,display:"block",width:"max-content",maxWidth:o,visibility:"visible",filter:p,...N,"&-hidden":{display:"none"},[C("arrow-background-color")]:i,[`${n}-container`]:[E,Jj(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:w},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(u,cR)}},[`${n}-content`]:{position:"relative"},...jm(e,(M,{darkColor:T})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:T},[`${n}-arrow`]:{[C("arrow-background-color")]:T}}})),"&-rtl":{direction:"rtl"}}},uR(e,j("arrow-background-color"),{arrowShadow:!1}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...E,...N,position:"absolute",zIndex:t(m).sub(1).equal(),filter:p,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},iB=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...wy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...lR(rn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),fR=(e,t,n=!0)=>an("Tooltip",s=>{const{borderRadius:i,colorTextLightSolid:u,colorBgSpotlight:m,maxWidth:h}=s,p=rn(s,{tooltipMaxWidth:h,tooltipColor:u,tooltipBorderRadius:i,tooltipBg:m});return[sB(p),Im(s,"zoom-big-fast")]},iB,{resetStyle:!1,injectStyle:n})(e,t),lB=ba.map(e=>`${e}-inverse`),cB=["success","processing","error","default","warning"];function Dm(e,t=!0){return t?[].concat(Rn(lB),Rn(ba)).includes(e):ba.includes(e)}function uB(e){return cB.includes(e)}const mR=(e,t,n)=>{const o=Dm(n),[s]=on(e,"tooltip"),i=K({[`${t}-${n}`]:n&&o}),u={},m={},h=QI(n).toRgb(),g=(.299*h.r+.587*h.g+.114*h.b)/255<.5?"#FFF":"#000";return n&&!o&&(u.background=n,u[s("overlay-color")]=g,m[s("arrow-background-color")]=n),{className:i,overlayStyle:u,arrowStyle:m}},dB=e=>{const{prefixCls:t,className:n,placement:o="top",title:s,color:i,overlayInnerStyle:u,classNames:m,styles:h}=e,{getPrefixCls:p}=c.useContext(vt),g=p("tooltip",t),b=p(),y=Rr(g),[S,$]=fR(g,y),C=mR(b,g,i),j=C.arrowStyle,w=c.useMemo(()=>({container:{...u,...C.overlayStyle}}),[u,C.overlayStyle]),R={...e,placement:o},[E,N]=sn([m],[w,h],{props:R}),M=K(y,S,$,g,`${g}-pure`,`${g}-placement-${o}`,n,C.className);return c.createElement("div",{className:M,style:j},c.createElement("div",{className:`${g}-arrow`}),c.createElement($y,{...e,className:S,prefixCls:g,classNames:E,styles:N},s))},fB=c.forwardRef((e,t)=>{const{prefixCls:n,openClassName:o,getTooltipContainer:s,color:i,children:u,afterOpenChange:m,arrow:h,destroyTooltipOnHide:p,destroyOnHidden:g,title:b,overlay:y,trigger:S,builtinPlacements:$,autoAdjustOverflow:C=!0,motion:j,getPopupContainer:w,placement:R="top",mouseEnterDelay:E=.1,mouseLeaveDelay:N=.1,rootClassName:M,styles:T,classNames:O,onOpenChange:P,overlayInnerStyle:_,overlayStyle:L,overlayClassName:A,...B}=e,[,V]=xo(),Z=e["data-popover-inject"],{getPopupContainer:W,getPrefixCls:H,direction:q,...U}=en("tooltip"),{className:J,style:k,classNames:I,styles:D,arrow:Y,trigger:G}=Z?{}:U,X=dR(h,Y),ee=X.show,Q=S||G||"hover",ae=w||W,se=g??!!p,ie=c.useContext(aB),fe=c.useRef(null),oe=()=>{fe.current?.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:oe,nativeElement:fe.current?.nativeElement,popupElement:fe.current?.popupElement}));const[re,pe]=hr(e.defaultOpen??!1,e.open),ve=!b&&!y&&b!==0,Ce=ht=>{pe(ve?!1:ht),!ve&&P&&P(ht)},he=c.useMemo(()=>$||oB({arrowPointAtCenter:X?.pointAtCenter??!1,autoAdjustOverflow:C,arrowWidth:ee?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS}),[X,$,V,ee,C]),te=c.useMemo(()=>b===0?b:y||b||"",[y,b]),Se=c.createElement(nl,{space:!0,form:!0},Ht(te)?te():te),Te={...e,trigger:Q,builtinPlacements:he,getPopupContainer:ae,destroyOnHidden:se},[Ee,Le]=sn([I,O],[D,T],{props:Te}),Pe=H("tooltip",n),ye=H();let Ie=re;(!("open"in e)&&ve||ie)&&(Ie=!1);const De=c.isValidElement(u)&&!$j(u)?u:c.createElement("span",null,u),Me=De.props,qe=!Me.className||typeof Me.className=="string"?K(Me.className,o||`${Pe}-open`):Me.className,tt=Rr(Pe),[Xe,He]=fR(Pe,tt,!Z),Ue=mR(ye,Pe,i),Qe=Ue.arrowStyle,ke=K(tt,Xe,He),Oe=K(A,{[`${Pe}-rtl`]:q==="rtl"},Ue.className,M,ke,J,Ee.root),[Je,nt]=Zc("Tooltip",B.zIndex),ut={...Le.container,..._,...Ue.overlayStyle},Rt=c.createElement(J9,{unique:!0,...B,zIndex:Je,showArrow:ee,placement:R,mouseEnterDelay:E,mouseLeaveDelay:N,prefixCls:Pe,classNames:{root:Oe,container:Ee.container,arrow:Ee.arrow,uniqueContainer:K(ke,Ee.container)},styles:{root:{...Qe,...Le.root,...k,...L},container:ut,uniqueContainer:ut,arrow:Le.arrow},ref:fe,overlay:Se,visible:Ie,onVisibleChange:Ce,afterVisibleChange:m,arrowContent:c.createElement("span",{className:`${Pe}-arrow-content`}),motion:{motionName:Wo(ye,"zoom-big-fast",typeof j?.motionName=="string"?j?.motionName:void 0),motionDeadline:1e3},trigger:Q,builtinPlacements:he,getTooltipContainer:ae,destroyOnHidden:se},Ie?Vr(De,{className:qe}):De);return c.createElement(Tm.Provider,{value:nt},Rt)}),Wn=fB;Wn._InternalPanelDoNotUseOrYouWillBeFired=dB;Wn.UniqueProvider=Ej;const lE="50%",mB=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:s,innerPadding:i,dropShadowPopover:u,colorTextHeading:m,borderRadiusLG:h,zIndexPopup:p,titleMarginBottom:g,colorBgElevated:b,popoverBg:y,titleBorderBottom:S,innerContentPadding:$,titlePadding:C,antCls:j}=e,[w,R]=on(j,"tooltip");return[{[t]:{...Ln(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:u,[w("valid-offset-x")]:R("arrow-offset-x","var(--arrow-x)"),transformOrigin:[R("valid-offset-x",lE),`var(--arrow-y, ${lE})`].join(" "),[w("arrow-background-color")]:b,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:h,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:g,color:m,fontWeight:s,borderBottom:S,padding:C},[`${t}-content`]:{color:n,padding:$}}},uR(e,R("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},pB=e=>{const{componentCls:t,antCls:n}=e,[o]=on(n,"tooltip");return{[t]:ba.map(s=>{const i=e[`${s}6`];return{[`&${t}-${s}`]:{[o("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},hB=e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:s,wireframe:i,zIndexPopupBase:u,borderRadiusLG:m,marginXS:h,lineType:p,colorSplit:g,paddingSM:b}=e,y=n-o,S=y/2,$=y/2-t,C=s;return{titleMinWidth:177,zIndexPopup:u+30,...lR(e),...wy({contentRadius:m,limitVerticalRadius:!0}),innerPadding:i?0:12,titleMarginBottom:i?0:h,titlePadding:i?`${S}px ${C}px ${$}px`:0,titleBorderBottom:i?`${t}px ${p} ${g}`:"none",innerContentPadding:i?`${b}px ${C}px`:0}},pR=an("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,o=rn(e,{popoverBg:t,popoverColor:n});return[mB(o),pB(o),Im(o,"zoom-big")]},hB,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),hR=e=>{const{title:t,content:n,prefixCls:o,classNames:s,styles:i}=e;return!ar(t)&&!ar(n)?null:c.createElement(c.Fragment,null,ar(t)&&c.createElement("div",{className:K(`${o}-title`,s?.title),style:i?.title},t),ar(n)&&c.createElement("div",{className:K(`${o}-content`,s?.content),style:i?.content},n))},gB=e=>{const{hashId:t,prefixCls:n,className:o,style:s,placement:i="top",title:u,content:m,children:h,classNames:p,styles:g}=e,b=rm(u),y=rm(m),S={...e,placement:i},[$,C]=sn([p],[g],{props:S}),j=K(t,n,`${n}-pure`,`${n}-placement-${i}`,o);return c.createElement("div",{className:j,style:s},c.createElement("div",{className:`${n}-arrow`}),c.createElement($y,{...e,className:t,prefixCls:n,classNames:$,styles:C},h||c.createElement(hR,{prefixCls:n,title:b,content:y,classNames:$,styles:C})))},bB=e=>{const{prefixCls:t,className:n,...o}=e,{getPrefixCls:s}=c.useContext(vt),i=s("popover",t),[u,m]=pR(i);return c.createElement(gB,{...o,prefixCls:i,hashId:u,className:K(n,m)})},vB=c.forwardRef((e,t)=>{const{prefixCls:n,title:o,content:s,overlayClassName:i,placement:u="top",trigger:m,children:h,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:b,overlayStyle:y={},styles:S,classNames:$,motion:C,arrow:j,...w}=e,{getPrefixCls:R,className:E,style:N,classNames:M,styles:T,arrow:O,trigger:P}=en("popover"),_=R("popover",n),[L,A]=pR(_),B=R(),V=dR(j,O),Z=m||P||"hover",W={...e,placement:u,trigger:Z,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:S,classNames:$},[H,q]=sn([M,$],[T,S],{props:W}),U=K(i,L,A,E,H.root),[J,k]=hr(e.defaultOpen??!1,e.open),I=G=>{k(G),b?.(G)},D=rm(o),Y=rm(s);return c.createElement(Wn,{unique:!1,arrow:V,placement:u,trigger:Z,mouseEnterDelay:p,mouseLeaveDelay:g,...w,prefixCls:_,classNames:{root:U,container:H.container,arrow:H.arrow},styles:{root:{...q.root,...N,...y},container:q.container,arrow:q.arrow},ref:t,open:J,onOpenChange:I,overlay:ar(D)||ar(Y)?c.createElement(hR,{prefixCls:_,title:D,content:Y,classNames:H,styles:q}):null,motion:{motionName:Wo(B,"zoom-big",typeof C?.motionName=="string"?C?.motionName:void 0)},"data-popover-inject":!0},h)}),gR=vB;gR._InternalPanelDoNotUseOrYouWillBeFired=bB;const cE=e=>{const{prefixCls:t,value:n,current:o,offset:s=0}=e;let i;return s&&(i={position:"absolute",top:`${s}00%`,left:0}),c.createElement("span",{style:i,className:K(`${t}-only-unit`,{current:o})},n)};function yB(e,t,n){let o=e,s=0;for(;(o+10)%10!==t;)o+=n,s+=n;return s}const xB=e=>{const{prefixCls:t,count:n,value:o}=e,s=Number(o),i=Math.abs(n),[u,m]=c.useState(s),[h,p]=c.useState(i),g=()=>{m(s),p(i)};c.useEffect(()=>{const S=setTimeout(g,1e3);return()=>clearTimeout(S)},[s]);let b,y;if(u===s||Number.isNaN(s)||Number.isNaN(u))b=[c.createElement(cE,{...e,key:s,current:!0})],y={transition:"none"};else{b=[];const S=s+10,$=[];for(let R=s;R<=S;R+=1)$.push(R);const C=h<i?1:-1,j=$.findIndex(R=>R%10===u);b=(C<0?$.slice(0,j+1):$.slice(j)).map((R,E)=>{const N=R%10;return c.createElement(cE,{...e,key:R,value:N,offset:C<0?E-j:E,current:E===j})}),y={transform:`translateY(${-yB(u,s,C)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},b)},SB=c.forwardRef((e,t)=>{const{prefixCls:n,count:o,className:s,motionClassName:i,style:u,title:m,show:h,component:p="sup",children:g,...b}=e,{getPrefixCls:y}=c.useContext(vt),S=y("scroll-number",n),$={...b,"data-show":h,style:u,className:K(S,s,i),title:m};let C=o;if(o&&Number(o)%1===0){const j=String(o).split("");C=c.createElement("bdi",null,j.map((w,R)=>c.createElement(xB,{prefixCls:S,count:Number(o),value:w,key:j.length-R})))}return u?.borderColor&&($.style={...u,boxShadow:`0 0 0 1px ${u.borderColor} inset`}),g?Vr(g,j=>({className:K(`${S}-custom-component`,j?.className,i)})):c.createElement(p,{...$,ref:t},C)}),CB=new Ft("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),$B=new Ft("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),wB=new Ft("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),EB=new Ft("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),NB=new Ft("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),jB=new Ft("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),RB=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:s,textFontSize:i,textFontSizeSM:u,statusSize:m,dotSize:h,textFontWeight:p,indicatorHeight:g,indicatorHeightSM:b,marginXS:y,calc:S}=e,$=`${o}-scroll-number`,C=jm(e,(j,{darkColor:w})=>({[`&${t} ${t}-color-${j}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Ln(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:p,fontSize:i,lineHeight:le(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:S(g).div(2).equal(),boxShadow:`0 0 0 ${le(s)} ${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:le(b),borderRadius:S(b).div(2).equal()},[`${t}-multiple-words`]:{paddingInline:e.paddingInline,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:h,minWidth:h,height:h,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${le(s)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${$}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:jB,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:m,height:m,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:s,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:y,color:e.colorText,fontSize:e.fontSize}},...C,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:$B,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:wB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:EB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:NB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${$}-custom-component, ${t}-count`]:{transform:"none"},[`${$}-custom-component, ${$}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[$]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${$}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${$}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${$}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${$}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},bR=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:s}=e,i=t,u=n,m=e.colorTextLightSolid,h=e.colorError,p=e.colorErrorHover;return rn(e,{badgeFontHeight:i,badgeShadowSize:u,badgeTextColor:m,badgeColor:h,badgeColorHover:p,badgeShadowColor:s,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},vR=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:s,paddingXS:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*s,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2,paddingInline:i}},MB=an("Badge",e=>{const t=bR(e);return RB(t)},vR),TB=c.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:o,children:s,status:i,text:u,color:m,count:h=null,overflowCount:p=99,dot:g=!1,size:b="medium",title:y,offset:S,style:$,className:C,rootClassName:j,classNames:w,styles:R,showZero:E=!1,...N}=e,{getPrefixCls:M,direction:T,className:O,style:P,classNames:_,styles:L}=en("badge"),A=M("badge",n),[B,V]=MB(A),Z={...e,overflowCount:p,size:b,dot:g,showZero:E},[W,H]=sn([_,w],[L,R],{props:Z}),q=h>p?`${p}+`:h,U=q==="0"||q===0||u==="0"||u===0,J=h===null||U&&!E,k=(Un(i)||Un(m))&&J,I=Un(i)||!U,D=g&&!U,Y=D?"":q,G=c.useMemo(()=>(!ar(Y)&&!ar(u)||U&&!E)&&!D,[Y,U,E,D,u]),X=c.useRef(h);G||(X.current=h);const ee=X.current,Q=c.useRef(Y);G||(Q.current=Y);const ae=Q.current,se=c.useRef(D);G||(se.current=D);const ie=c.useMemo(()=>{if(!S)return{...P,...$};const Te=Number.parseInt(S[0],10);return{...{marginTop:S[1],insetInlineEnd:-Te},...P,...$}},[S,$,P]),fe=Vo(ee)||$r(ee)?ee:void 0,oe=y===null||y===!1?void 0:y??fe,re=!G&&(u===0?E:!!u&&u!==!0),pe=re?c.createElement("span",{className:`${A}-status-text`},u):null,ve=Ot(ee)?Vr(ee,Te=>({style:{...ie,...Te.style}})):void 0,Ce=Dm(m,!1),he=K(W.indicator,{[`${A}-status-dot`]:k,[`${A}-status-${i}`]:!!i,[`${A}-color-${m}`]:Ce}),te={};m&&!Ce&&(te.color=m,te.background=m);const Se=K(A,{[`${A}-status`]:k,[`${A}-not-a-wrapper`]:!s,[`${A}-rtl`]:T==="rtl"},C,j,O,W.root,B,V);if(!s&&k&&(u||I||!J)){const Te=ie.color;return c.createElement("span",{ref:t,...N,className:Se,style:{...H.root,...ie}},c.createElement("span",{className:he,style:{...H.indicator,...te}}),re&&c.createElement("span",{style:{color:Te},className:`${A}-status-text`},u))}return c.createElement("span",{ref:t,...N,className:Se,style:H.root},s,c.createElement(wr,{visible:!G,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Te})=>{const Ee=M("scroll-number",o),Le=se.current,Pe=K(W.indicator,{[`${A}-dot`]:Le,[`${A}-count`]:!Le,[`${A}-count-sm`]:b==="small",[`${A}-multiple-words`]:!Le&&ae&&ae.toString().length>1,[`${A}-status-${i}`]:!!i,[`${A}-color-${m}`]:Ce});let ye={...H.indicator,...ie};return m&&!Ce&&(ye=ye||{},ye.background=m),c.createElement(SB,{prefixCls:Ee,show:!G,motionClassName:Te,className:Pe,count:ae,title:oe,style:ye,key:"scrollNumber"},ve)}),pe)}),OB=e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:s,calc:i}=e,u=`${t}-ribbon`,m=`${t}-ribbon-wrapper`,h=jm(e,(p,{darkColor:g})=>({[`&${u}-color-${p}`]:{background:g,color:g}}));return{[m]:{position:"relative"},[u]:{...Ln(e),position:"absolute",top:o,padding:`0 ${le(e.paddingXS)}`,color:e.colorPrimary,lineHeight:le(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${u}-content`]:{color:e.badgeTextColor},[`${u}-corner`]:{position:"absolute",top:"100%",width:s,height:s,color:"currentcolor",border:`${le(i(s).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...h,[`&${u}-placement-end`]:{insetInlineEnd:i(s).mul(-1).equal(),borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:i(s).mul(-1).equal(),borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},zB=an(["Badge","Ribbon"],e=>{const t=bR(e);return OB(t)},vR),AB=e=>{const{className:t,prefixCls:n,style:o,color:s,children:i,text:u,placement:m="end",rootClassName:h,styles:p,classNames:g}=e,{getPrefixCls:b,direction:y,className:S,style:$,classNames:C,styles:j}=en("ribbon"),w=b("ribbon",n),R=`${w}-wrapper`,[E,N]=zB(w,R),M={...e,placement:m},[T,O]=sn([C,g],[j,p],{props:M}),P=Dm(s,!1),_=K(w,`${w}-placement-${m}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${s}`]:P},t,S,T.indicator),L={},A={};return s&&!P&&(L.background=s,A.color=s),c.createElement("div",{className:K(R,h,E,N,T.root),style:O.root},i,c.createElement("div",{className:K(_,E),style:{...L,...O.indicator,...$,...o}},c.createElement("span",{className:K(`${w}-content`,T.content),style:O.content},u),c.createElement("div",{className:`${w}-corner`,style:A})))},Ey=TB;Ey.Ribbon=AB;var Fd={},uE;function IB(){if(uE)return Fd;uE=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:"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 Fd.default=e,Fd}var PB=IB();const LB=jt(PB);function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Av.apply(this,arguments)}const _B=(e,t)=>c.createElement(It,Av({},e,{ref:t,icon:LB})),dE=c.forwardRef(_B),{ESC:BB,TAB:DB}=ct;function HB({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:o,overlayRef:s}){const i=c.useRef(!1),u=()=>{e&&(t.current?.focus?.(),n?.(!1))},m=()=>s.current?.focus?(s.current.focus(),i.current=!0,!0):!1,h=p=>{switch(p.keyCode){case BB:u();break;case DB:{let g=!1;i.current||(g=m()),g?p.preventDefault():u();break}}};c.useEffect(()=>e?(window.addEventListener("keydown",h),o&&nn(m,3),()=>{window.removeEventListener("keydown",h),i.current=!1}):()=>{i.current=!1},[e])}const FB=c.forwardRef((e,t)=>{const{overlay:n,arrow:o,prefixCls:s}=e,i=c.useMemo(()=>{let m;return typeof n=="function"?m=n():m=n,m},[n]),u=Er(t,ss(i));return ue.createElement(ue.Fragment,null,o&&ue.createElement("div",{className:`${s}-arrow`}),ue.cloneElement(i,{ref:Gs(i)?u:void 0}))}),Hi={adjustX:1,adjustY:1},Fi=[0,0],kB={topLeft:{points:["bl","tl"],overflow:Hi,offset:[0,-4],targetOffset:Fi},top:{points:["bc","tc"],overflow:Hi,offset:[0,-4],targetOffset:Fi},topRight:{points:["br","tr"],overflow:Hi,offset:[0,-4],targetOffset:Fi},bottomLeft:{points:["tl","bl"],overflow:Hi,offset:[0,4],targetOffset:Fi},bottom:{points:["tc","bc"],overflow:Hi,offset:[0,4],targetOffset:Fi},bottomRight:{points:["tr","br"],overflow:Hi,offset:[0,4],targetOffset:Fi}};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Iv.apply(this,arguments)}const VB=ue.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:o="rc-dropdown",transitionName:s,animation:i,align:u,placement:m="bottomLeft",placements:h=kB,getPopupContainer:p,showAction:g,hideAction:b,overlayClassName:y,overlayStyle:S,visible:$,trigger:C=["hover"],autoFocus:j,overlay:w,children:R,onVisibleChange:E,disabled:N,...M}=e,[T,O]=ue.useState(),P="visible"in e?$:T,_=i?`${o}-${i}`:s,L=ue.useRef(null),A=ue.useRef(null),B=ue.useRef(null);ue.useImperativeHandle(t,()=>L.current);const V=G=>{O(G),E?.(G)};HB({visible:P,triggerRef:B,onVisibleChange:V,autoFocus:j,overlayRef:A});const Z=G=>{const{onOverlayClick:X}=e;O(!1),X&&X(G)},W=()=>ue.createElement(FB,{ref:A,overlay:w,prefixCls:o,arrow:n}),H=()=>typeof w=="function"?W:W(),q=()=>{const{minOverlayWidthMatchTrigger:G,alignPoint:X}=e;return"minOverlayWidthMatchTrigger"in e?G:!X},U=()=>{const{openClassName:G}=e;return G!==void 0?G:`${o}-open`},J=R,k=K(J.props?.className,P&&U()),I={className:k,ref:Er(B,ss(J))},D=Gs(J)?ue.cloneElement(J,I):ue.createElement("span",{className:k,ref:B},ue.cloneElement(J,{className:k}));let Y=b;return!Y&&C.indexOf("contextMenu")!==-1&&(Y=["click"]),ue.createElement(Mm,Iv({builtinPlacements:h},M,{prefixCls:o,ref:L,popupClassName:K(y,{[`${o}-show-arrow`]:n}),popupStyle:S,action:C,showAction:g,hideAction:Y,popupPlacement:m,popupAlign:u,popupMotion:{motionName:_},popupVisible:P,stretch:q()?"minWidth":"",popup:H(),onOpenChange:V,onPopupClick:Z,getPopupContainer:p}),D)}),yR=c.createContext(null);function xR(e,t){return`${e}-${t}`}function SR(e){const t=c.useContext(yR);return xR(t,e)}const Oo=c.createContext(null);function qB(e,t){const n={...e};return Object.keys(t).forEach(o=>{const s=t[o];s!==void 0&&(n[o]=s)}),n}function Dc({children:e,locked:t,...n}){const o=c.useContext(Oo),s=Wc(()=>qB(o,n),[o,n],(i,u)=>!t&&(i[0]!==u[0]||!Rc(i[1],u[1],!0)));return c.createElement(Oo.Provider,{value:s},e)}const WB=[],CR=c.createContext(null);function Hm(){return c.useContext(CR)}const $R=c.createContext(WB);function fl(e){const t=c.useContext($R);return c.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const wR=c.createContext(null),Ny=c.createContext({}),{LEFT:Pv,RIGHT:Lv,UP:_v,DOWN:Bf,ENTER:Df,ESC:ER,HOME:uc,END:dc}=ct,fE=[_v,Bf,Pv,Lv];function UB(e,t,n,o){const s="prev",i="next",u="children",m="parent";if(e==="inline"&&o===Df)return{inlineTrigger:!0};const h={[_v]:s,[Bf]:i},p={[Pv]:n?i:s,[Lv]:n?s:i,[Bf]:u,[Df]:u},g={[_v]:s,[Bf]:i,[Df]:u,[ER]:m,[Pv]:n?u:m,[Lv]:n?m:u};switch({inline:h,horizontal:p,vertical:g,inlineSub:h,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[o]){case s:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function GB(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function XB(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function jy(e,t){return F0(e,!0).filter(o=>t.has(o))}function mE(e,t,n,o=1){if(!e)return null;const s=jy(e,t),i=s.length;let u=s.findIndex(m=>n===m);return o<0?u===-1?u=i-1:u-=1:o>0&&(u+=1),u=(u+i)%i,s[u]}const om=(e,t)=>{const n=new Set,o=new Map,s=new Map;return e.forEach(i=>{const u=document.querySelector(`[data-menu-id='${xR(t,i)}']`);u&&(n.add(u),s.set(u,i),o.set(i,u))}),{elements:n,key2element:o,element2key:s}};function KB(e,t,n,o,s,i,u,m,h,p){const g=c.useRef(),b=c.useRef();b.current=t;const y=()=>{nn.cancel(g.current)};return c.useEffect(()=>()=>{y()},[]),S=>{const{which:$}=S;if([...fE,Df,ER,uc,dc].includes($)){const C=i();let j=om(C,o);const{elements:w,key2element:R,element2key:E}=j,N=R.get(t),M=XB(N,w),T=E.get(M),O=UB(e,u(T,!0).length===1,n,$);if(!O&&$!==uc&&$!==dc)return;(fE.includes($)||[uc,dc].includes($))&&S.preventDefault();const P=_=>{if(_){let L=_;const A=_.querySelector("a");A?.getAttribute("href")&&(L=A);const B=E.get(_);m(B),y(),g.current=nn(()=>{b.current===B&&L.focus()})}};if([uc,dc].includes($)||O.sibling||!M){let _;!M||e==="inline"?_=s.current:_=GB(M);let L;const A=jy(_,w);$===uc?L=A[0]:$===dc?L=A[A.length-1]:L=mE(_,w,M,O.offset),P(L)}else if(O.inlineTrigger)h(T);else if(O.offset>0)h(T,!0),y(),g.current=nn(()=>{j=om(C,o);const _=M.getAttribute("aria-controls"),L=document.getElementById(_),A=mE(L,j.elements);P(A)},5);else if(O.offset<0){const _=u(T,!0),L=_[_.length-2],A=R.get(L);h(L,!1),P(A)}}p?.(S)}}function YB(e){Promise.resolve().then(e)}const Ry="__RC_UTIL_PATH_SPLIT__",pE=e=>e.join(Ry),QB=e=>e.split(Ry),Bv="rc-menu-more";function ZB(){const[,e]=c.useState({}),t=c.useRef(new Map),n=c.useRef(new Map),[o,s]=c.useState([]),i=c.useRef(0),u=c.useRef(!1),m=()=>{u.current||e({})},h=c.useCallback((C,j)=>{const w=pE(j);n.current.set(w,C),t.current.set(C,w),i.current+=1;const R=i.current;YB(()=>{R===i.current&&m()})},[]),p=c.useCallback((C,j)=>{const w=pE(j);n.current.delete(w),t.current.delete(C)},[]),g=c.useCallback(C=>{s(C)},[]),b=c.useCallback((C,j)=>{const w=t.current.get(C)||"",R=QB(w);return j&&o.includes(R[0])&&R.unshift(Bv),R},[o]),y=c.useCallback((C,j)=>C.filter(w=>w!==void 0).some(w=>b(w,!0).includes(j)),[b]),S=()=>{const C=[...t.current.keys()];return o.length&&C.push(Bv),C},$=c.useCallback(C=>{const j=`${t.current.get(C)}${Ry}`,w=new Set;return[...n.current.keys()].forEach(R=>{R.startsWith(j)&&w.add(n.current.get(R))}),w},[]);return c.useEffect(()=>()=>{u.current=!0},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:b,getKeys:S,getSubPathKeys:$}}function bc(e){const t=c.useRef(e);t.current=e;const n=c.useCallback((...o)=>t.current?.(...o),[]);return e?n:void 0}function NR(e,t,n,o){const{activeKey:s,onActive:i,onInactive:u}=c.useContext(Oo),m={active:s===e};return t||(m.onMouseEnter=h=>{n?.({key:e,domEvent:h}),i(e)},m.onMouseLeave=h=>{o?.({key:e,domEvent:h}),u(e)}),m}function jR(e){const{mode:t,rtl:n,inlineIndent:o}=c.useContext(Oo);if(t!=="inline")return null;const s=e;return n?{paddingRight:s*o}:{paddingLeft:s*o}}function RR({icon:e,props:t,children:n}){let o;return e===null||e===!1?null:(typeof e=="function"?o=c.createElement(e,{...t}):typeof e!="boolean"&&(o=e),o||n||null)}function am({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Cr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Hc.apply(this,arguments)}class JB extends c.Component{render(){const{title:t,attribute:n,elementRef:o,...s}=this.props,i=Mn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Cr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(pa.Item,Hc({},n,{title:typeof t=="string"?t:void 0},i,{ref:o}))}}const e7=c.forwardRef((e,t)=>{const{style:n,className:o,eventKey:s,warnKey:i,disabled:u,itemIcon:m,children:h,itemData:p,role:g,onMouseEnter:b,onMouseLeave:y,onClick:S,onKeyDown:$,onFocus:C,...j}=e,w=SR(s),{prefixCls:R,onItemClick:E,disabled:N,overflowDisabled:M,itemIcon:T,selectedKeys:O,onActive:P}=c.useContext(Oo),{_internalRenderMenuItem:_}=c.useContext(Ny),L=`${R}-item`,A=c.useRef(),B=c.useRef(),V=N||u,Z=xa(t,B),W=fl(s),H=Q=>{const ae=p||{key:s||"",label:h,itemIcon:m,extra:e.extra,title:e.title};return{key:s,keyPath:[...W].reverse(),item:A.current,domEvent:Q,itemData:p||ae}},q=m||T,{active:U,...J}=NR(s,V,b,y),k=O.includes(s),I=jR(W.length),D=Q=>{if(V)return;const ae=H(Q);S?.(am(ae)),E(ae)},Y=Q=>{if($?.(Q),Q.which===ct.ENTER){const ae=H(Q);S?.(am(ae)),E(ae)}},G=Q=>{P(s),C?.(Q)},X={};e.role==="option"&&(X["aria-selected"]=k);let ee=c.createElement(JB,Hc({ref:A,elementRef:Z,role:g===null?"none":g||"menuitem",tabIndex:u?null:-1,"data-menu-id":M&&w?null:w},Mn(j,["extra"]),J,X,{component:"li","aria-disabled":u,style:{...I,...n},className:K(L,{[`${L}-active`]:U,[`${L}-selected`]:k,[`${L}-disabled`]:V},o),onClick:D,onKeyDown:Y,onFocus:G}),h,c.createElement(RR,{props:{...e,isSelected:k},icon:q}));return _&&(ee=_(ee,e,{selected:k})),ee});function t7(e,t){const{eventKey:n}=e,o=Hm(),s=fl(n);return c.useEffect(()=>{if(o)return o.registerPath(n,s),()=>{o.unregisterPath(n,s)}},[s]),o?null:c.createElement(e7,Hc({},e,{ref:t}))}const ru=c.forwardRef(t7);function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Dv.apply(this,arguments)}const n7=({className:e,children:t,...n},o)=>{const{prefixCls:s,mode:i,rtl:u}=c.useContext(Oo);return c.createElement("ul",Dv({className:K(s,u&&`${s}-rtl`,`${s}-sub`,`${s}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:o}),t)},MR=c.forwardRef(n7);function My(e,t){return kr(e).map((n,o)=>{if(c.isValidElement(n)){const{key:s}=n;let i=n.props?.eventKey??s;i==null&&(i=`tmp_key-${[...t,o].join("-")}`);const m={key:i,eventKey:i};return c.cloneElement(n,m)}return n})}const xr={adjustX:1,adjustY:1},r7={topLeft:{points:["bl","tl"],overflow:xr},topRight:{points:["br","tr"],overflow:xr},bottomLeft:{points:["tl","bl"],overflow:xr},bottomRight:{points:["tr","br"],overflow:xr},leftTop:{points:["tr","tl"],overflow:xr},leftBottom:{points:["br","bl"],overflow:xr},rightTop:{points:["tl","tr"],overflow:xr},rightBottom:{points:["bl","br"],overflow:xr}},o7={topLeft:{points:["bl","tl"],overflow:xr},topRight:{points:["br","tr"],overflow:xr},bottomLeft:{points:["tl","bl"],overflow:xr},bottomRight:{points:["tr","br"],overflow:xr},rightTop:{points:["tr","tl"],overflow:xr},rightBottom:{points:["br","bl"],overflow:xr},leftTop:{points:["tl","tr"],overflow:xr},leftBottom:{points:["bl","br"],overflow:xr}};function TR(e,t,n){if(t)return t;if(n)return n[e]||n.other}const a7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function s7({prefixCls:e,visible:t,children:n,popup:o,popupStyle:s,popupClassName:i,popupOffset:u,disabled:m,mode:h,onVisibleChange:p}){const{getPopupContainer:g,rtl:b,subMenuOpenDelay:y,subMenuCloseDelay:S,builtinPlacements:$,triggerSubMenuAction:C,forceSubMenuRender:j,rootClassName:w,motion:R,defaultMotions:E}=c.useContext(Oo),[N,M]=c.useState(!1),T=b?{...o7,...$}:{...r7,...$},O=a7[h],P=TR(h,R,E),_=c.useRef(P);h!=="inline"&&(_.current=P);const L={..._.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},A=c.useRef();return c.useEffect(()=>(A.current=nn(()=>{M(t)}),()=>{nn.cancel(A.current)}),[t]),c.createElement(Mm,{prefixCls:e,popupClassName:K(`${e}-popup`,{[`${e}-rtl`]:b},i,w),stretch:h==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:T,popupPlacement:O,popupVisible:N,popup:o,popupStyle:s,popupAlign:u&&{offset:u},action:m?[]:[C],mouseEnterDelay:y,mouseLeaveDelay:S,onPopupVisibleChange:p,forceRender:j,popupMotion:L,fresh:!0},n)}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Hv.apply(this,arguments)}function i7({id:e,open:t,keyPath:n,children:o}){const s="inline",{prefixCls:i,forceSubMenuRender:u,motion:m,defaultMotions:h,mode:p}=c.useContext(Oo),g=c.useRef(!1);g.current=p===s;const[b,y]=c.useState(!g.current),S=g.current?t:!1;c.useEffect(()=>{g.current&&y(!1)},[p]);const $={...TR(s,m,h)};n.length>1&&($.motionAppear=!1);const C=$.onVisibleChanged;return $.onVisibleChanged=j=>(!g.current&&!j&&y(!0),C?.(j)),b?null:c.createElement(Dc,{mode:s,locked:!g.current},c.createElement(wr,Hv({visible:S},$,{forceRender:u,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:j,style:w})=>c.createElement(MR,{id:e,className:j,style:w},o)))}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fc.apply(this,arguments)}const l7=c.forwardRef((e,t)=>{const{style:n,className:o,styles:s,classNames:i,title:u,eventKey:m,warnKey:h,disabled:p,internalPopupClose:g,children:b,itemIcon:y,expandIcon:S,popupClassName:$,popupOffset:C,popupStyle:j,onClick:w,onMouseEnter:R,onMouseLeave:E,onTitleClick:N,onTitleMouseEnter:M,onTitleMouseLeave:T,popupRender:O,...P}=e,_=SR(m),{prefixCls:L,mode:A,openKeys:B,disabled:V,overflowDisabled:Z,activeKey:W,selectedKeys:H,itemIcon:q,expandIcon:U,onItemClick:J,onOpenChange:k,onActive:I,popupRender:D}=c.useContext(Oo),{_internalRenderSubMenuItem:Y}=c.useContext(Ny),{isSubPathKey:G}=c.useContext(wR),X=fl(),ee=`${L}-submenu`,Q=V||p,ae=c.useRef(),se=c.useRef(),ie=y??q,fe=S??U,oe=B.includes(m),re=!Z&&oe,pe=G(H,m),{active:ve,...Ce}=NR(m,Q,M,T),[he,te]=c.useState(!1),Se=Oe=>{Q||te(Oe)},Te=Oe=>{Se(!0),R?.({key:m,domEvent:Oe})},Ee=Oe=>{Se(!1),E?.({key:m,domEvent:Oe})},Le=c.useMemo(()=>ve||(A!=="inline"?he||G([W],m):!1),[A,ve,W,he,m,G]),Pe=jR(X.length),ye=Oe=>{Q||(N?.({key:m,domEvent:Oe}),A==="inline"&&k(m,!oe))},Ie=bc(Oe=>{w?.(am(Oe)),J(Oe)}),De=Oe=>{A!=="inline"&&k(m,Oe)},Me=()=>{I(m)},qe=_&&`${_}-popup`,tt=c.useMemo(()=>c.createElement(RR,{icon:A!=="horizontal"?fe:void 0,props:{...e,isOpen:re,isSubMenu:!0}},c.createElement("i",{className:`${ee}-arrow`})),[A,fe,e,re,ee]);let Xe=c.createElement("div",Fc({role:"menuitem",style:Pe,className:`${ee}-title`,tabIndex:Q?null:-1,ref:ae,title:typeof u=="string"?u:null,"data-menu-id":Z&&_?null:_,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":qe,"aria-disabled":Q,onClick:ye,onFocus:Me},Ce),u,tt);const He=c.useRef(A);A!=="inline"&&X.length>1?He.current="vertical":He.current=A;const Ue=He.current,Qe=c.useMemo(()=>{const Oe=c.createElement(Dc,{classNames:i,styles:s,mode:Ue==="horizontal"?"vertical":Ue},c.createElement(MR,{id:qe,ref:se},b)),Je=O||D;return Je?Je(Oe,{item:e,keys:X}):Oe},[O,D,X,qe,b,e,Ue]);if(!Z){const Oe=He.current;Xe=c.createElement(s7,{mode:Oe,prefixCls:ee,visible:!g&&re&&A!=="inline",popupClassName:$,popupOffset:C,popupStyle:j,popup:Qe,disabled:Q,onVisibleChange:De},Xe)}let ke=c.createElement(pa.Item,Fc({ref:t,role:"none"},P,{component:"li",style:n,className:K(ee,`${ee}-${A}`,o,{[`${ee}-open`]:re,[`${ee}-active`]:Le,[`${ee}-selected`]:pe,[`${ee}-disabled`]:Q}),onMouseEnter:Te,onMouseLeave:Ee}),Xe,!Z&&c.createElement(i7,{id:qe,open:re,keyPath:X},b));return Y&&(ke=Y(ke,e,{selected:pe,active:Le,open:re,disabled:Q})),c.createElement(Dc,{classNames:i,styles:s,onItemClick:Ie,mode:A==="horizontal"?"vertical":A,itemIcon:ie,expandIcon:fe},ke)}),Fm=c.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,s=fl(n),i=My(o,s),u=Hm();c.useEffect(()=>{if(u)return u.registerPath(n,s),()=>{u.unregisterPath(n,s)}},[s]);let m;return u?m=i:m=c.createElement(l7,Fc({ref:t},e),i),c.createElement($R.Provider,{value:s},m)});function Ty({className:e,style:t}){const{prefixCls:n}=c.useContext(Oo);return Hm()?null:c.createElement("li",{role:"separator",className:K(`${n}-item-divider`,e),style:t})}function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sm.apply(this,arguments)}const c7=c.forwardRef((e,t)=>{const{className:n,title:o,eventKey:s,children:i,...u}=e,{prefixCls:m,classNames:h,styles:p}=c.useContext(Oo),g=`${m}-item-group`;return c.createElement("li",sm({ref:t,role:"presentation"},u,{onClick:b=>b.stopPropagation(),className:K(g,n)}),c.createElement("div",{role:"presentation",className:K(`${g}-title`,h?.listTitle),style:p?.listTitle,title:typeof o=="string"?o:void 0},o),c.createElement("ul",{role:"group",className:K(`${g}-list`,h?.list),style:p?.list},i))}),Oy=c.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,s=fl(n),i=My(o,s);return Hm()?i:c.createElement(c7,sm({ref:t},Mn(e,["warnKey"])),i)});function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qi.apply(this,arguments)}function Fv(e,t,n){const{item:o,group:s,submenu:i,divider:u}=t;return(e||[]).map((m,h)=>{if(m&&typeof m=="object"){const{label:p,children:g,key:b,type:y,extra:S,...$}=m,C=b??`tmp-${h}`;if(g||y==="group")return y==="group"?c.createElement(s,qi({key:C},$,{title:p}),Fv(g,t,n)):c.createElement(i,qi({key:C},$,{title:p}),Fv(g,t,n));if(y==="divider")return c.createElement(u,qi({key:C},$));const j=!!S||S===0;return c.createElement(o,qi({key:C},$,{extra:S,itemData:{...m,key:C}}),j?c.createElement(c.Fragment,null,c.createElement("span",{className:`${n}-item-label`},p),c.createElement("span",{className:`${n}-item-extra`},S)):p)}return null}).filter(m=>m)}function hE(e,t,n,o,s){let i=e;const u={divider:Ty,item:ru,group:Oy,submenu:Fm,...o};return t&&(i=Fv(t,u,s)),My(i,n)}function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},kv.apply(this,arguments)}const js=[],u7=c.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:o,style:s,className:i,styles:u,classNames:m,tabIndex:h=0,items:p,children:g,direction:b,id:y,mode:S="vertical",inlineCollapsed:$,disabled:C,disabledOverflow:j,subMenuOpenDelay:w=.1,subMenuCloseDelay:R=.1,forceSubMenuRender:E,defaultOpenKeys:N,openKeys:M,activeKey:T,defaultActiveFirst:O,selectable:P=!0,multiple:_=!1,defaultSelectedKeys:L,selectedKeys:A,onSelect:B,onDeselect:V,inlineIndent:Z=24,motion:W,defaultMotions:H,triggerSubMenuAction:q="hover",builtinPlacements:U,itemIcon:J,expandIcon:k,overflowedIndicator:I="...",overflowedIndicatorPopupClassName:D,getPopupContainer:Y,onClick:G,onOpenChange:X,onKeyDown:ee,openAnimation:Q,openTransitionName:ae,_internalRenderMenuItem:se,_internalRenderSubMenuItem:ie,_internalComponents:fe,popupRender:oe,...re}=e,[pe,ve]=c.useMemo(()=>[hE(g,p,js,fe,n),hE(g,p,js,{},n)],[g,p,fe]),[Ce,he]=c.useState(!1),te=c.useRef(),Se=ya(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Te=b==="rtl",[Ee,Le]=hr(N,M),Pe=Ee||js,ye=(mt,yt=!1)=>{function xt(){Le(mt),X?.(mt)}yt?rs.flushSync(xt):xt()},[Ie,De]=c.useState(Pe),Me=c.useRef(!1),[qe,tt]=c.useMemo(()=>(S==="inline"||S==="vertical")&&$?["vertical",$]:[S,!1],[S,$]),Xe=qe==="inline",[He,Ue]=c.useState(qe),[Qe,ke]=c.useState(tt);c.useEffect(()=>{Ue(qe),ke(tt),Me.current&&(Xe?Le(Ie):ye(js))},[qe,tt]);const[Oe,Je]=c.useState(0),nt=Oe>=pe.length-1||He!=="horizontal"||j;c.useEffect(()=>{Xe&&De(Pe)},[Pe]),c.useEffect(()=>(Me.current=!0,()=>{Me.current=!1}),[]);const{registerPath:ut,unregisterPath:Rt,refreshOverflowKeys:ht,isSubPathKey:Ut,getKeyPath:_t,getKeys:Ct,getSubPathKeys:kt}=ZB(),Pt=c.useMemo(()=>({registerPath:ut,unregisterPath:Rt}),[ut,Rt]),Vt=c.useMemo(()=>({isSubPathKey:Ut}),[Ut]);c.useEffect(()=>{ht(nt?js:pe.slice(Oe+1).map(mt=>mt.key))},[Oe,nt]);const[Ze,$t]=hr(T||O&&pe[0]?.key,T),We=bc(mt=>{$t(mt)}),je=bc(()=>{$t(void 0)});c.useImperativeHandle(t,()=>({list:te.current,focus:mt=>{const yt=Ct(),{elements:xt,key2element:Ge,element2key:it}=om(yt,Se),Bt=jy(te.current,xt);let Kt;Ze&&yt.includes(Ze)?Kt=Ze:Kt=Bt[0]?it.get(Bt[0]):pe.find(Yt=>!Yt.props.disabled)?.key;const Mt=Ge.get(Kt);Kt&&Mt&&Mt?.focus?.(mt)},findItem:({key:mt})=>{const yt=Ct(),{key2element:xt}=om(yt,Se);return xt.get(mt)||null}}));const[Be,we]=hr(L||[],A),Fe=c.useMemo(()=>Array.isArray(Be)?Be:Be==null?js:[Be],[Be]),Ve=mt=>{if(P){const{key:yt}=mt,xt=Fe.includes(yt);let Ge;_?xt?Ge=Fe.filter(Bt=>Bt!==yt):Ge=[...Fe,yt]:Ge=[yt],we(Ge);const it={...mt,selectedKeys:Ge};xt?V?.(it):B?.(it)}!_&&Pe.length&&He!=="inline"&&ye(js)},Ye=bc(mt=>{G?.(am(mt)),Ve(mt)}),dt=bc((mt,yt)=>{let xt=Pe.filter(Ge=>Ge!==mt);if(yt)xt.push(mt);else if(He!=="inline"){const Ge=kt(mt);xt=xt.filter(it=>!Ge.has(it))}Rc(Pe,xt,!0)||ye(xt,!0)}),et=KB(He,Ze,Te,Se,te,Ct,_t,$t,(mt,yt)=>{const xt=yt??!Pe.includes(mt);dt(mt,xt)},ee);c.useEffect(()=>{he(!0)},[]);const gt=c.useMemo(()=>({_internalRenderMenuItem:se,_internalRenderSubMenuItem:ie}),[se,ie]),zt=He!=="horizontal"||j?pe:pe.map((mt,yt)=>c.createElement(Dc,{key:mt.key,overflowDisabled:yt>Oe,classNames:m,styles:u},mt)),fn=c.createElement(pa,kv({id:y,ref:te,prefixCls:`${n}-overflow`,component:"ul",itemComponent:ru,className:K(n,`${n}-root`,`${n}-${He}`,i,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:Te},o),dir:b,style:s,role:"menu",tabIndex:h,data:zt,renderRawItem:mt=>mt,renderRawRest:mt=>{const yt=mt.length,xt=yt?pe.slice(-yt):null;return c.createElement(Fm,{eventKey:Bv,title:I,disabled:nt,internalPopupClose:yt===0,popupClassName:D},xt)},maxCount:He!=="horizontal"||j?pa.INVALIDATE:pa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:mt=>{Je(mt)},onKeyDown:et},re));return c.createElement(Ny.Provider,{value:gt},c.createElement(yR.Provider,{value:Se},c.createElement(Dc,{prefixCls:n,rootClassName:o,classNames:m,styles:u,mode:He,openKeys:Pe,rtl:Te,disabled:C,motion:Ce?W:null,defaultMotions:Ce?H:null,activeKey:Ze,onActive:We,onInactive:je,selectedKeys:Fe,inlineIndent:Z,subMenuOpenDelay:w,subMenuCloseDelay:R,forceSubMenuRender:E,builtinPlacements:U,triggerSubMenuAction:q,getPopupContainer:Y,itemIcon:J,expandIcon:k,onItemClick:Ye,onOpenChange:dt,popupRender:oe},c.createElement(wR.Provider,{value:Vt},fn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(CR.Provider,{value:Pt},ve)))))}),ml=u7;ml.Item=ru;ml.SubMenu=Fm;ml.ItemGroup=Oy;ml.Divider=Ty;var kd={},gE;function d7(){if(gE)return kd;gE=1,Object.defineProperty(kd,"__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 kd.default=e,kd}var f7=d7();const m7=jt(f7);function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Vv.apply(this,arguments)}const p7=(e,t)=>c.createElement(It,Vv({},e,{ref:t,icon:m7})),h7=c.forwardRef(p7),OR=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),g7=e=>{const{antCls:t,componentCls:n,colorText:o,footerBg:s,headerHeight:i,headerPadding:u,headerColor:m,footerPadding:h,fontSize:p,bodyBg:g,headerBg:b}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:u,color:m,lineHeight:le(i),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:h,color:o,fontSize:p,background:s},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}},zR=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:s,controlHeightSM:i,marginXXS:u,colorTextLightSolid:m,colorBgContainer:h}=e,p=o*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:s,footerPadding:`${i}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+u*2,triggerBg:"#002140",triggerColor:m,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:h,lightTriggerBg:h,lightTriggerColor:s}},AR=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],IR=an("Layout",g7,zR,{deprecatedTokens:AR}),b7=e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:s,antCls:i,triggerHeight:u,triggerColor:m,triggerBg:h,headerHeight:p,zeroTriggerWidth:g,zeroTriggerHeight:b,borderRadiusLG:y,lightSiderBg:S,lightTriggerColor:$,lightTriggerBg:C,bodyBg:j}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:u},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:u,color:m,lineHeight:le(u),textAlign:"center",background:h,cursor:"pointer",transition:`all ${o}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:p,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:b,color:m,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${le(y)} ${le(y)} 0`,cursor:"pointer",transition:`background-color ${s} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${s}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${le(y)} 0 0 ${le(y)}`}},"&-light":{background:S,[`${t}-trigger`]:{color:$,background:C},[`${t}-zero-width-trigger`]:{color:$,background:C,border:`${le(e.lineWidth)} ${e.lineType} ${j}`,borderInlineStart:0}}}}},v7=an(["Layout","Sider"],b7,zR,{deprecatedTokens:AR}),bE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},y7=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),km=c.createContext({}),x7=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),PR=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,trigger:s,children:i,defaultCollapsed:u=!1,theme:m="dark",style:h={},collapsible:p=!1,reverseArrow:g=!1,width:b=200,collapsedWidth:y=80,zeroWidthTriggerStyle:S,breakpoint:$,onCollapse:C,onBreakpoint:j,classNames:w,styles:R,...E}=e,{siderHook:N}=c.useContext(OR),[M,T]=c.useState("collapsed"in e?e.collapsed:u),[O,P]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&T(e.collapsed)},[e.collapsed]);const _=(oe,re)=>{"collapsed"in e||T(oe),C?.(oe,re)},L={...e,collapsed:M,defaultCollapsed:u,theme:m,style:h,collapsible:p,reverseArrow:g,width:b,collapsedWidth:y,zeroWidthTriggerStyle:S,breakpoint:$,onCollapse:C,onBreakpoint:j},[A,B]=sn([w],[R],{props:L}),{getPrefixCls:V,direction:Z}=c.useContext(vt),W=V("layout-sider",n),[H,q]=v7(W),U=c.useRef(null);U.current=oe=>{P(oe.matches),j?.(oe.matches),M!==oe.matches&&_(oe.matches,"responsive")},c.useEffect(()=>{function oe(pe){return U.current?.(pe)}let re;return typeof window?.matchMedia<"u"&&$&&$ in bE&&(re=window.matchMedia(`screen and (max-width: ${bE[$]})`),Ht(re?.addEventListener)&&re.addEventListener("change",oe),oe(re)),()=>{Ht(re?.removeEventListener)&&re.removeEventListener("change",oe)}},[$]),c.useEffect(()=>{const oe=x7("ant-sider-");return N.addSider(oe),()=>N.removeSider(oe)},[]);const J=()=>{_(!M,"clickTrigger")},k=Mn(E,["collapsed"]),I=M?y:b,D=y7(I)?`${I}px`:String(I),Y=Number.parseFloat(String(y||0))===0?c.createElement("span",{onClick:J,className:K(`${W}-zero-width-trigger`,`${W}-zero-width-trigger-${g?"right":"left"}`),style:S},s||c.createElement(h7,null)):null,G=Z==="rtl"==!g,Q={expanded:G?c.createElement(ov,null):c.createElement(dE,null),collapsed:G?c.createElement(dE,null):c.createElement(ov,null)}[M?"collapsed":"expanded"],ae=s!==null?Y||c.createElement("div",{className:`${W}-trigger`,onClick:J,style:{width:D}},s||Q):null,se={...h,flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D},ie=K(W,`${W}-${m}`,{[`${W}-collapsed`]:!!M,[`${W}-has-trigger`]:p&&s!==null&&!Y,[`${W}-below`]:!!O,[`${W}-zero-width`]:Number.parseFloat(D)===0},o,A.root,H,q),fe=c.useMemo(()=>({siderCollapsed:M}),[M]);return c.createElement(km.Provider,{value:fe},c.createElement("aside",{className:ie,...k,style:{...B.root,...se},ref:t},c.createElement("div",{className:K(`${W}-children`,A.body),style:B.body},i),p||O&&Y?ae:null))});var Vd={},vE;function S7(){if(vE)return Vd;vE=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:"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 Vd.default=e,Vd}var C7=S7();const $7=jt(C7);function qv(){return qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qv.apply(this,arguments)}const w7=(e,t)=>c.createElement(It,qv({},e,{ref:t,icon:$7})),zy=c.forwardRef(w7),im=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),LR=e=>{const{prefixCls:t,className:n,dashed:o,...s}=e,{getPrefixCls:i}=c.useContext(vt),u=i("menu",t),m=K({[`${u}-item-divider-dashed`]:!!o},n);return c.createElement(Ty,{className:m,...s})},_R=e=>{const{className:t,children:n,icon:o,title:s,danger:i,extra:u}=e,{prefixCls:m,firstLevel:h,direction:p,disableMenuItemTitleTooltip:g,tooltip:b,inlineCollapsed:y,styles:S,classNames:$}=c.useContext(im),C=O=>{const P=n?.[0],_=c.createElement("span",{className:K(`${m}-title-content`,h?$?.itemContent:$?.subMenu?.itemContent,{[`${m}-title-content-with-extra`]:!!u||u===0}),style:h?S?.itemContent:S?.subMenu?.itemContent},n);return(!o||c.isValidElement(n)&&n.type==="span")&&n&&O&&h&&typeof P=="string"?c.createElement("div",{className:`${m}-inline-collapsed-noicon`},P.charAt(0)):_},{siderCollapsed:j}=c.useContext(km);let w=s;typeof s>"u"?w=h?n:"":s===!1&&(w="");const R=b===!1?void 0:b,E=R&&R.title!==void 0?R.title:w,N={...R??null,title:E};!j&&!y&&(N.title=null,N.open=!1);const M=kr(n).length;let T=c.createElement(ru,{...Mn(e,["title","icon","danger"]),className:K(h?$?.item:$?.subMenu?.item,{[`${m}-item-danger`]:i,[`${m}-item-only-child`]:(o?M+1:M)===1},t),style:{...h?S?.item:S?.subMenu?.item,...e.style},title:typeof s=="string"?s:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Vr(o,O=>({className:K(`${m}-item-icon`,h?$?.itemIcon:$?.subMenu?.itemIcon,O.className),style:{...h?S?.itemIcon:S?.subMenu?.itemIcon,...O.style}})),C(y));if(!g&&b!==!1){const O=R&&R.placement?R.placement:p==="rtl"?"left":"right",P=`${m}-inline-collapsed-tooltip`,_=A=>({...A,root:K(P,A?.root)}),L=Ht(R?.classNames)?A=>{const B=R.classNames(A);return _(B)}:_(R?.classNames);T=c.createElement(Wn,{...N,placement:O,classNames:L},T)}return T},yE=c.createContext(null),E7=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:s,lineWidth:i,lineType:u,itemPaddingInline:m}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${le(i)} ${u} ${s}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:m},[`> ${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(h=>`${h} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},N7=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${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(${le(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${le(t)})`}}}}),xE=e=>sl(e),SE=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:s,subMenuItemSelectedColor:i,groupTitleColor:u,itemBg:m,subMenuItemBg:h,itemSelectedBg:p,activeBarHeight:g,activeBarWidth:b,activeBarBorderWidth:y,motionDurationSlow:S,motionEaseInOut:$,motionEaseOut:C,itemPaddingInline:j,motionDurationMid:w,itemHoverColor:R,lineType:E,colorSplit:N,itemDisabledColor:M,dangerItemColor:T,dangerItemHoverColor:O,dangerItemSelectedColor:P,dangerItemActiveBg:_,dangerItemSelectedBg:L,popupBg:A,itemHoverBg:B,itemActiveBg:V,menuSubMenuBg:Z,horizontalItemSelectedColor:W,horizontalItemSelectedBg:H,horizontalItemBorderRadius:q,horizontalItemHoverBg:U}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:m,[`&${n}-root:focus-visible`]:{...xE(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:u}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:{...xE(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${M} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:R}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:R}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:V}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:V}}},[`${n}-item-danger`]:{color:T,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:_}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:s,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:p,[`&${n}-item-danger`]:{backgroundColor:L}},[`&${n}-submenu > ${n}`]:{backgroundColor:Z},[`&${n}-popup > ${n}`]:{backgroundColor:A},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:A},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:q,"&::after":{position:"absolute",insetInline:j,bottom:0,borderBottom:`${le(g)} solid transparent`,transition:`border-color ${S} ${$}`,content:'""'},"&:hover, &-active, &-open":{background:U,"&::after":{borderBottomWidth:g,borderBottomColor:W}},"&-selected":{color:W,backgroundColor:H,"&:hover":{backgroundColor:H},"&::after":{borderBottomWidth:g,borderBottomColor:W}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${le(y)} ${E} ${N}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:h},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${le(b)} solid ${s}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(J=>`${J} ${w} ${C}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(J=>`${J} ${w} ${$}`).join(",")}}}}}},CE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:s,menuArrowSize:i,marginXS:u,itemMarginBlock:m,itemWidth:h,itemPaddingInline:p}=e,g=e.calc(i).add(s).add(u).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:le(n),paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:m,width:h},[`> ${t}-item,
|
|
181
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:le(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
182
|
-
${t}-submenu-title`]:{paddingInlineEnd:g}}},j7=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:s,dropdownWidth:i,controlHeightLG:u,motionEaseOut:m,padding:h,paddingXL:p,itemMarginInline:g,fontSizeLG:b,motionDurationFast:y,motionDurationSlow:S,paddingXS:$,boxShadowSecondary:C,collapsedWidth:j,collapsedIconSize:w}=e,R={height:o,lineHeight:le(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...CE(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...CE(e),boxShadow:C}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${le(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 ${S}`,`background-color ${S}`,`padding ${y} ${m}`].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`]:R,[`& ${t}-item-group-title`]:{paddingInlineStart:p}},[`${t}-item`]:R}},{[`${t}-inline-collapsed`]:{width:j,[`&${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% - ${le(e.calc(w).div(2).equal())} - ${le(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, ${n}`]:{margin:0,fontSize:w,lineHeight:le(o),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:h},"a, a:hover":{color:s}},[`${t}-item-group-title`]:{...Mo,paddingInline:$}}}]},$E=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:s,motionEaseOut:i,iconCls:u,iconSize:m,iconMarginInlineEnd:h}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${s}`].join(","),[`${t}-item-icon, ${u}`]:{minWidth:m,fontSize:m,transition:[`font-size ${o} ${i}`,`margin ${n} ${s}`,`color ${n}`].join(","),"+ span":{marginInlineStart:h,opacity:1,transition:[`opacity ${n} ${s}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Nm()},[`&${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"}}}},wE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:s,menuArrowSize:i,menuArrowOffset:u}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(m=>`${m} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:s,transition:["background-color","transform","top","color"].map(m=>`${m} ${n} ${o}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${le(e.calc(u).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${le(u)})`}}}}},R7=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:s,motionDurationMid:i,motionEaseInOut:u,paddingXS:m,padding:h,colorSplit:p,lineWidth:g,zIndexPopup:b,borderRadiusLG:y,subMenuItemBorderRadius:S,menuArrowSize:$,menuArrowOffset:C,lineType:j,groupTitleLineHeight:w,groupTitleFontSize:R,iconSize:E,iconMarginInlineEnd:N}=e,M=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[n]:{...ks(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Ln(e),...ks(),marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${s} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${le(m)} ${le(h)}`,fontSize:R,lineHeight:w,transition:`all ${s}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(T=>`${T} ${s} ${u}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${s}`,`background-color ${s}`,`padding ${i}`].map(T=>`${T} ${u}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(T=>`${T} ${s} ${u}`).join(",")},[`${n}-title-content`]:{transition:`color ${s}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${n}-item-label`]:{flex:"auto",minWidth:0,...Mo},[M]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${le(e.calc(E).add(N??0).equal())})`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:p,borderStyle:j,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...$E(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${le(e.calc(o).mul(2).equal())} ${le(h)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:y,...$E(e),...wE(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:S},[`${n}-submenu-title::after`]:{transition:`transform ${s} ${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}},...wE(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
|
189
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le(C)})`},"&::after":{transform:`rotate(45deg) translateX(${le(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${le(e.calc($).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${le(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${le(C)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},M7=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:s,colorText:i,colorTextDescription:u,colorBgContainer:m,colorFillAlter:h,colorFillContent:p,lineWidth:g,lineWidthBold:b,controlItemBgActive:y,colorBgTextHover:S,controlHeightLG:$,lineHeight:C,colorBgElevated:j,marginXXS:w,padding:R,fontSize:E,controlHeightSM:N,fontSizeLG:M,colorTextLightSolid:T,colorErrorHover:O}=e,P=e.activeBarWidth??0,_=e.activeBarBorderWidth??g,L=e.itemMarginInline??e.marginXXS,A=new On(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:m,itemBg:m,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:g,activeBarBorderWidth:_,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$,groupTitleLineHeight:C,collapsedWidth:$*2,popupBg:j,itemMarginBlock:w,itemPaddingInline:R,horizontalLineHeight:`${$*1.15}px`,iconSize:E,iconMarginInlineEnd:N-E,collapsedIconSize:M,groupTitleFontSize:E,darkItemDisabledColor:new On(T).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${_}px)`:`calc(100% - ${L*2}px)`}},T7=(e,t=e,n=!0)=>an("Menu",s=>{const{colorBgElevated:i,controlHeightLG:u,fontSize:m,darkItemColor:h,darkDangerItemColor:p,darkItemBg:g,darkSubMenuItemBg:b,darkItemSelectedColor:y,darkItemSelectedBg:S,darkDangerItemSelectedBg:$,darkItemHoverBg:C,darkGroupTitleColor:j,darkItemHoverColor:w,darkItemDisabledColor:R,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:M,popupBg:T,darkPopupBg:O}=s,P=s.calc(m).div(7).mul(5).equal(),_=rn(s,{menuArrowSize:P,menuHorizontalHeight:s.calc(u).mul(1.15).equal(),menuArrowOffset:s.calc(P).mul(.25).equal(),menuSubMenuBg:i,calc:s.calc,popupBg:T}),L=rn(_,{itemColor:h,itemHoverColor:w,groupTitleColor:j,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:O,subMenuItemBg:b,itemActiveBg:"transparent",itemSelectedBg:S,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:R,dangerItemColor:p,dangerItemHoverColor:E,dangerItemSelectedColor:N,dangerItemActiveBg:M,dangerItemSelectedBg:$,menuSubMenuBg:b,horizontalItemSelectedColor:y,horizontalItemSelectedBg:S});return[R7(_),E7(_),j7(_),SE(_,"light"),SE(L,"dark"),N7(_),Zj(_),tl(_,"slide-up"),tl(_,"slide-down"),Im(_,"zoom-big")]},M7,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),BR=e=>{const{popupClassName:t,icon:n,title:o,theme:s}=e,i=c.useContext(im),{prefixCls:u,inlineCollapsed:m,theme:h,classNames:p,styles:g}=i,b=fl();let y;if(!n)y=m&&!b.length&&o&&typeof o=="string"?c.createElement("div",{className:`${u}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${u}-title-content`},o);else{const C=c.isValidElement(o)&&o.type==="span";y=c.createElement(c.Fragment,null,Vr(n,j=>({className:K(j.className,`${u}-item-icon`,p?.itemIcon),style:{...j.style,...g?.itemIcon}})),C?o:c.createElement("span",{className:`${u}-title-content`},o))}const S=c.useMemo(()=>({...i,firstLevel:!1}),[i]),[$]=Zc("Menu");return c.createElement(im.Provider,{value:S},c.createElement(Fm,{...Mn(e,["icon"]),title:y,classNames:{list:p?.subMenu?.list,listTitle:p?.subMenu?.itemTitle},styles:{list:g?.subMenu?.list,listTitle:g?.subMenu?.itemTitle},popupClassName:K(u,t,p?.popup?.root,`${u}-${s||h}`),popupStyle:{zIndex:$,...e.popupStyle,...g?.popup?.root}}))};function Dg(e){return e===null||e===!1}const O7={item:_R,submenu:BR,divider:LR},z7=c.forwardRef((e,t)=>{const n=c.useContext(yE),o=n||{},{prefixCls:s,className:i,style:u,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:p,tooltip:g,inlineCollapsed:b,siderCollapsed:y,rootClassName:S,mode:$,selectable:C,onClick:j,overflowedIndicatorPopupClassName:w,classNames:R,styles:E,...N}=e,{menu:M}=c.useContext(vt),{getPrefixCls:T,getPopupContainer:O,direction:P,className:_,style:L,classNames:A,styles:B}=en("menu"),V=T(),Z=Mn(N,["collapsedWidth"]);o.validator?.({mode:$});const W=wt((...oe)=>{j?.(...oe),o.onClick?.()}),H=o.mode||$,q=C??o.selectable,U=b??y,J={...e,mode:H,inlineCollapsed:U,selectable:q,theme:m},k=dn(L),I=dn(u),[D,Y]=sn([A,R],[B,k,E,I],{props:J},{popup:{_default:"root"},subMenu:{_default:"item"}}),G={horizontal:{motionName:`${V}-slide-up`},inline:tv(V),other:{motionName:`${V}-zoom-big`}},X=T("menu",s||o.prefixCls),ee=Rr(X),[Q,ae]=T7(X,ee,!n),se=K(`${X}-${m}`,_,i),ie=c.useMemo(()=>{if(Ht(h)||Dg(h))return h||null;if(Ht(o.expandIcon)||Dg(o.expandIcon))return o.expandIcon||null;if(Ht(M?.expandIcon)||Dg(M?.expandIcon))return M?.expandIcon||null;const oe=h??o?.expandIcon??M?.expandIcon;return Vr(oe,{className:K(`${X}-submenu-expand-icon`,c.isValidElement(oe)?oe.props?.className:void 0)})},[h,o?.expandIcon,M?.expandIcon,X]),fe=c.useMemo(()=>({prefixCls:X,inlineCollapsed:U||!1,direction:P,firstLevel:!0,theme:m,mode:H,disableMenuItemTitleTooltip:p,tooltip:g,classNames:D,styles:Y}),[X,U,P,p,m,H,D,Y,g]);return c.createElement(yE.Provider,{value:null},c.createElement(im.Provider,{value:fe},c.createElement(ml,{getPopupContainer:O,overflowedIndicator:c.createElement(zy,null),overflowedIndicatorPopupClassName:K(X,`${X}-${m}`,w),classNames:{list:D.list,listTitle:D.itemTitle},styles:{list:Y.list,listTitle:Y.itemTitle},mode:H,selectable:q,onClick:W,...Z,inlineCollapsed:U,style:Y.root,className:se,prefixCls:X,direction:P,defaultMotions:G,expandIcon:ie,ref:t,rootClassName:K(S,Q,o.rootClassName,ae,ee,D.root),_internalComponents:O7})))}),Ws=c.forwardRef((e,t)=>{const n=c.useRef(null),o=c.useContext(km);return c.useImperativeHandle(t,()=>({menu:n.current,focus:s=>{n.current?.focus(s)}})),c.createElement(z7,{ref:n,...e,...o})});Ws.Item=_R;Ws.SubMenu=BR;Ws.Divider=LR;Ws.ItemGroup=Oy;const A7=["parentNode"],I7="form_item";function wc(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function DR(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:A7.includes(n)?`${I7}_${n}`:n}function HR(e,t,n,o,s,i){let u=o;return i!==void 0?u=i:n.validating?u="validating":e.length?u="error":t.length?u="warning":(n.touched||s&&n.validated)&&(u="success"),u}function EE(e){return wc(e).join("_")}function NE(e,t){const n=t.getFieldInstance(e),o=ns(n);if(o)return o;const s=DR(wc(e),t.__INTERNAL__.name);if(s)return document.getElementById(s)}function FR(e){const[t]=py(),n=c.useRef({}),o=c.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:s=>i=>{const u=EE(s);i?n.current[u]=i:delete n.current[u]}},scrollToField:(s,i={})=>{const{focus:u,...m}=i,h=NE(s,o);h&&(nz(h,{scrollMode:"if-needed",block:"nearest",...m}),u&&o.focusField(s))},focusField:s=>{const i=o.getFieldInstance(s);Ht(i?.focus)?i.focus():NE(s,o)?.focus?.()},getFieldInstance:s=>{const i=EE(s);return n.current[i]}},[e,t]);return[o]}function ou(e){return rn(e,{inputAffixPadding:e.paddingXXS})}const au=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:s,controlHeightSM:i,controlHeightLG:u,fontSizeLG:m,lineHeightLG:h,paddingSM:p,controlPaddingHorizontalSM:g,controlPaddingHorizontal:b,colorFillAlter:y,colorPrimaryHover:S,colorPrimary:$,controlOutlineWidth:C,controlOutline:j,colorErrorOutline:w,colorWarningOutline:R,colorBgContainer:E,inputFontSize:N,inputFontSizeLG:M,inputFontSizeSM:T}=e,O=N||n,P=T||O,_=M||m,L=Math.round((t-O*o)/2*10)/10-s,A=Math.round((i-P*o)/2*10)/10-s,B=Math.ceil((u-_*h)/2*10)/10-s;return{paddingBlock:Math.max(L,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(B,0),paddingInline:p-s,paddingInlineSM:g-s,paddingInlineLG:b-s,addonBg:y,activeBorderColor:$,hoverBorderColor:S,activeShadow:`0 0 0 ${C}px ${j}`,errorActiveShadow:`0 0 0 ${C}px ${w}`,warningActiveShadow:`0 0 0 ${C}px ${R}`,hoverBg:E,activeBg:E,inputFontSize:O,inputFontSizeLG:_,inputFontSizeSM:P}},P7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ay=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])":{...P7(rn(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),kR=(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}}),jE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...kR(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),L7=(e,t)=>({"&-outlined":{...kR(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ay(e)},...jE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...jE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),RE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_7=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...RE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...RE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Ay(e)}}}}),VR="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",qR=(e,t)=>({outline:`${le(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:le(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),ME=(e,t)=>({"&, & input, & textarea":{color:t.color},[VR]:qR(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),B7=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[VR]:qR(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:ME(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:ME(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},WR=(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}}),TE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...WR(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),D7=(e,t)=>({"&-filled":{...WR(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ay(e)},...TE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...TE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),OE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),H7=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...OE(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...OE(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),UR=(e,t)=>({background:e.colorBgContainer,borderWidth:`${le(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),zE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...UR(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`}}),F7=(e,t)=>({"&-underlined":{...UR(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"},...zE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...zE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),k7=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),GR=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:s}=e;return{padding:`${le(t)} ${le(s)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},XR=e=>({padding:`${le(e.paddingBlockSM)} ${le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),KR=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${le(e.paddingBlock)} ${le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...k7(e.colorTextPlaceholder),"&-lg":{...GR(e),...t.largeStyle},"&-sm":{...XR(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),V7=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...GR(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...XR(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-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 ${le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${le(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${le(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-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,[`${n}-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",...ks(),[`${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
|
-
& > ${n}-picker-range
|
|
193
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
|
|
194
|
-
& > ${n}-select-auto-complete ${t},
|
|
195
|
-
& > ${n}-cascader-picker ${t},
|
|
196
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
197
|
-
& > ${n}-select:first-child,
|
|
198
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
199
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
200
|
-
& > ${n}-select:last-child,
|
|
201
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
202
|
-
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},q7=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:s}=e,u=s(n).sub(s(o).mul(2)).sub(16).div(2).equal();return{[t]:{...Ln(e),...KR(e),...L7(e),...D7(e),...B7(e),...F7(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:u,paddingBottom:u}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},W7=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,...sl(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${le(e.inputAffixPadding)}`}}}},U7=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:s,colorIcon:i,colorIconHover:u}=e,m=`${t}-affix-wrapper`,h=`${t}-affix-wrapper-disabled`;return{[m]:{...KR(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:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:"inline-flex",color:i,cursor:"pointer",transition:`all ${s}`,"&:hover":{color:u}}},...W7(e)},[`${t}-underlined`]:{borderRadius:0},[h]:{[`${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},G7=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:{...Ln(e),...V7(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}},..._7(e),...H7(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}}}}}},X7=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},YR=an(["Input","Shared"],e=>{const t=rn(e,ou(e));return[q7(t),U7(t)]},au,{resetFont:!1}),QR=an(["Input","Component"],e=>{const t=rn(e,ou(e));return[G7(t),X7(t),Pm(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},au,{resetFont:!1});var qd={},AE;function K7(){if(AE)return qd;AE=1,Object.defineProperty(qd,"__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 qd.default=e,qd}var Y7=K7();const Q7=jt(Y7);function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wv.apply(this,arguments)}const Z7=(e,t)=>c.createElement(It,Wv({},e,{ref:t,icon:Q7})),kc=c.forwardRef(Z7),Iy=c.createContext(null),J7=e=>{const{activeTabOffset:t,horizontal:n,rtl:o,indicator:s={}}=e,{size:i,align:u="center"}=s,[m,h]=c.useState(),p=c.useRef(),g=ue.useCallback(y=>typeof i=="function"?i(y):typeof i=="number"?i:y,[i]);function b(){nn.cancel(p.current)}return c.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const S=o?"right":"left";u==="start"&&(y[S]=t[S]),u==="center"&&(y[S]=t[S]+t.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[S]=t[S]+t.width,y.transform="translateX(-100%)")}else y.height=g(t.height),u==="start"&&(y.top=t.top),u==="center"&&(y.top=t.top+t.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=t.top+t.height,y.transform="translateY(-100%)");return b(),p.current=nn(()=>{m&&y&&Object.keys(y).every($=>{const C=y[$],j=m[$];return typeof C=="number"&&typeof j=="number"?Math.round(C)===Math.round(j):C===j})||h(y)}),b},[JSON.stringify(t),n,o,u,g]),{style:m}},IE={width:0,height:0,left:0,top:0};function eD(e,t,n){return c.useMemo(()=>{const o=new Map,s=t.get(e[0]?.key)||IE,i=s.left+s.width;for(let u=0;u<e.length;u+=1){const{key:m}=e[u];let h=t.get(m);h||(h=t.get(e[u-1]?.key)||IE);const p=o.get(m)||{...h};p.right=i-p.left-p.width,o.set(m,p)}return o},[e.map(o=>o.key).join("_"),t,n])}function PE(e,t){const n=c.useRef(e),[,o]=c.useState({});function s(i){const u=typeof i=="function"?i(n.current):i;u!==n.current&&t(u,n.current),n.current=u,o({})}return[n.current,s]}const tD=.1,LE=.01,Hf=20,_E=.995**Hf;function nD(e,t){const[n,o]=c.useState(),[s,i]=c.useState(0),[u,m]=c.useState(0),[h,p]=c.useState(),g=c.useRef();function b(w){const{screenX:R,screenY:E}=w.touches[0];o({x:R,y:E}),window.clearInterval(g.current)}function y(w){if(!n)return;const{screenX:R,screenY:E}=w.touches[0];o({x:R,y:E});const N=R-n.x,M=E-n.y;t(N,M);const T=Date.now();i(T),m(T-s),p({x:N,y:M})}function S(){if(n&&(o(null),p(null),h)){const w=h.x/u,R=h.y/u,E=Math.abs(w),N=Math.abs(R);if(Math.max(E,N)<tD)return;let M=w,T=R;g.current=window.setInterval(()=>{if(Math.abs(M)<LE&&Math.abs(T)<LE){window.clearInterval(g.current);return}M*=_E,T*=_E,t(M*Hf,T*Hf)},Hf)}}const $=c.useRef();function C(w){const{deltaX:R,deltaY:E}=w;let N=0;const M=Math.abs(R),T=Math.abs(E);M===T?N=$.current==="x"?R:E:M>T?(N=R,$.current="x"):(N=E,$.current="y"),t(-N,-N)&&w.preventDefault()}const j=c.useRef(null);j.current={onTouchStart:b,onTouchMove:y,onTouchEnd:S,onWheel:C},c.useEffect(()=>{function w(M){j.current.onTouchStart(M)}function R(M){j.current.onTouchMove(M)}function E(M){j.current.onTouchEnd(M)}function N(M){j.current.onWheel(M)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",E,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),()=>{document.removeEventListener("touchmove",R),document.removeEventListener("touchend",E)}},[])}function ZR(e){const[t,n]=c.useState(0),o=c.useRef(0),s=c.useRef();return s.current=e,fT(()=>{s.current?.()},[t]),()=>{o.current===t&&(o.current+=1,n(o.current))}}function rD(e){const t=c.useRef([]),[,n]=c.useState({}),o=c.useRef(typeof e=="function"?e():e),s=ZR(()=>{let u=o.current;t.current.forEach(m=>{u=m(u)}),t.current=[],o.current=u,n({})});function i(u){t.current.push(u),s()}return[o.current,i]}const BE={width:0,height:0,left:0,top:0,right:0};function oD(e,t,n,o,s,i,{tabs:u,tabPosition:m,rtl:h}){let p,g,b;return["top","bottom"].includes(m)?(p="width",g=h?"right":"left",b=Math.abs(n)):(p="height",g="top",b=-n),c.useMemo(()=>{if(!u.length)return[0,0];const y=u.length;let S=y;for(let C=0;C<y;C+=1){const j=e.get(u[C].key)||BE;if(Math.floor(j[g]+j[p])>Math.floor(b+t)){S=C-1;break}}let $=0;for(let C=y-1;C>=0;C-=1)if((e.get(u[C].key)||BE)[g]<b){$=C+1;break}return $>S?[0,-1]:[$,S]},[e,t,o,s,i,b,m,u.map(y=>y.key).join("_"),h])}function DE(e){let t;return e instanceof Map?(t={},e.forEach((n,o)=>{t[o]=n})):t=e,JSON.stringify(t)}const aD="TABS_DQ";function JR(e){return String(e).replace(/"/g,aD)}function Py(e,t,n,o){return!(!n||o||e===!1||e===void 0&&(t===!1||t===null))}const eM=c.forwardRef((e,t)=>{const{prefixCls:n,editable:o,locale:s,style:i}=e;return!o||o.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:i,"aria-label":s?.addAriaLabel||"Add tab",onClick:u=>{o.onEdit("add",{event:u})}},o.addIcon||"+")}),HE=c.forwardRef((e,t)=>{const{position:n,prefixCls:o,extra:s}=e;if(!s)return null;let i,u={};return typeof s=="object"&&!c.isValidElement(s)?u=s:u.right=s,n==="right"&&(i=u.right),n==="left"&&(i=u.left),i?c.createElement("div",{className:`${o}-extra-content`,ref:t},i):null});function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Uv.apply(this,arguments)}const sD=c.forwardRef((e,t)=>{const{prefixCls:n,id:o,tabs:s,locale:i,mobile:u,more:m={},style:h,className:p,editable:g,tabBarGutter:b,rtl:y,removeAriaLabel:S,onTabClick:$,getPopupContainer:C,popupClassName:j,popupStyle:w,classNames:R,styles:E}=e,[N,M]=c.useState(!1),[T,O]=c.useState(null),{icon:P="More"}=m,_=`${o}-more-popup`,L=`${n}-dropdown`,A=T!==null?`${_}-${T}`:null,B=i?.dropdownAriaLabel;function V(k,I){k.preventDefault(),k.stopPropagation(),g.onEdit("remove",{key:I,event:k})}const Z=c.createElement(ml,{onClick:({key:k,domEvent:I})=>{$(k,I),M(!1)},prefixCls:`${L}-menu`,id:_,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[T],"aria-label":B!==void 0?B:"expanded dropdown"},s.map(k=>{const{closable:I,disabled:D,closeIcon:Y,key:G,label:X}=k,ee=Py(I,Y,g,D);return c.createElement(ru,{key:G,id:`${_}-${G}`,role:"option","aria-controls":o&&`${o}-panel-${G}`,disabled:D},c.createElement("span",null,X),ee&&c.createElement("button",{type:"button","aria-label":S||"remove",tabIndex:0,className:K(`${L}-menu-item-remove`,R?.remove),style:E?.remove,onClick:Q=>{Q.stopPropagation(),V(Q,G)}},Y||g.removeIcon||"×"))}));function W(k){const I=s.filter(G=>!G.disabled);let D=I.findIndex(G=>G.key===T)||0;const Y=I.length;for(let G=0;G<Y;G+=1){D=(D+k+Y)%Y;const X=I[D];if(!X.disabled){O(X.key);return}}}function H(k){const{which:I}=k;if(!N){[ct.DOWN,ct.SPACE,ct.ENTER].includes(I)&&(M(!0),k.preventDefault());return}switch(I){case ct.UP:W(-1),k.preventDefault();break;case ct.DOWN:W(1),k.preventDefault();break;case ct.ESC:M(!1);break;case ct.SPACE:case ct.ENTER:T!==null&&$(T,k);break}}c.useEffect(()=>{const k=document.getElementById(A);k?.scrollIntoView&&k.scrollIntoView(!1)},[A,T]),c.useEffect(()=>{N||O(null)},[N]);const q={marginInlineStart:b};s.length||(q.visibility="hidden",q.order=1);const U=K(j,{[`${L}-rtl`]:y}),J=u?null:c.createElement(VB,Uv({prefixCls:L,overlay:Z,visible:s.length?N:!1,onVisibleChange:M,overlayClassName:U,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:C},m),c.createElement("button",{type:"button",className:`${n}-nav-more`,style:q,"aria-haspopup":"listbox","aria-controls":_,id:`${o}-more`,"aria-expanded":N,onKeyDown:H},P));return c.createElement("div",{className:K(`${n}-nav-operations`,p),style:h,ref:t},J,c.createElement(eM,{prefixCls:n,locale:i,editable:g}))}),iD=c.memo(sD,(e,t)=>t.tabMoving),lD=e=>{const{prefixCls:t,id:n,active:o,focus:s,tab:{key:i,label:u,disabled:m,closeIcon:h,icon:p},closable:g,renderWrapper:b,removeAriaLabel:y,editable:S,onClick:$,onFocus:C,onBlur:j,onKeyDown:w,onMouseDown:R,onMouseUp:E,styles:N,classNames:M,tabCount:T,currentPosition:O}=e,P=`${t}-tab`,_=Py(g,h,S,m);function L(W){m||$(W)}function A(W){W.preventDefault(),W.stopPropagation(),S.onEdit("remove",{key:i,event:W})}const B=c.useMemo(()=>p&&typeof u=="string"?c.createElement("span",null,u):u,[u,p]),V=c.useRef(null);c.useEffect(()=>{s&&V.current&&V.current.focus()},[s]);const Z=c.createElement("div",{key:i,"data-node-key":JR(i),className:K(P,M?.item,{[`${P}-with-remove`]:_,[`${P}-active`]:o,[`${P}-disabled`]:m,[`${P}-focus`]:s}),style:N?.item,onClick:L},c.createElement("div",{ref:V,role:"tab","aria-selected":o,id:n&&`${n}-tab-${i}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:W=>{W.stopPropagation(),L(W)},onKeyDown:w,onMouseDown:R,onMouseUp:E,onFocus:C,onBlur:j},s&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${O} of ${T}`),p&&c.createElement("span",{className:`${P}-icon`},p),u&&B),_&&c.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:o?0:-1,className:K(`${P}-remove`,M?.remove),style:N?.remove,onClick:W=>{W.stopPropagation(),A(W)}},h||S.removeIcon||"×"));return b?b(Z):Z};function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Gv.apply(this,arguments)}const cD=(e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:s,offsetLeft:i}=e,{width:u,height:m,left:h,top:p}=e.getBoundingClientRect();return Math.abs(u-n)<1?[u,m,h-t.left,p-t.top]:[n,o,i,s]},ki=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:o,height:s}=e.current.getBoundingClientRect();if(Math.abs(o-t)<1)return[o,s]}return[t,n]},Wd=(e,t)=>e[t?0:1],FE=c.forwardRef((e,t)=>{const{className:n,style:o,id:s,animated:i,activeKey:u,rtl:m,extra:h,editable:p,locale:g,tabPosition:b,tabBarGutter:y,children:S,onTabClick:$,onTabScroll:C,indicator:j,classNames:w,styles:R}=e,{prefixCls:E,tabs:N}=c.useContext(Iy),M=c.useRef(null),T=c.useRef(null),O=c.useRef(null),P=c.useRef(null),_=c.useRef(null),L=c.useRef(null),A=c.useRef(null),B=b==="top"||b==="bottom",[V,Z]=PE(0,(je,Be)=>{B&&C&&C({direction:je>Be?"left":"right"})}),[W,H]=PE(0,(je,Be)=>{!B&&C&&C({direction:je>Be?"top":"bottom"})}),[q,U]=c.useState([0,0]),[J,k]=c.useState([0,0]),[I,D]=c.useState([0,0]),[Y,G]=c.useState([0,0]),[X,ee]=rD(new Map),Q=eD(N,X,J[0]),ae=Wd(q,B),se=Wd(J,B),ie=Wd(I,B),fe=Wd(Y,B),oe=Math.floor(ae)<Math.floor(se+ie),re=oe?ae-fe:ae-ie,pe=`${E}-nav-operations-hidden`;let ve=0,Ce=0;B&&m?(ve=0,Ce=Math.max(0,se-re)):(ve=Math.min(0,re-se),Ce=0);function he(je){return je<ve?ve:je>Ce?Ce:je}const te=c.useRef(null),[Se,Te]=c.useState();function Ee(){Te(Date.now())}function Le(){te.current&&clearTimeout(te.current)}nD(P,(je,Be)=>{function we(Fe,Ve){Fe(Ye=>he(Ye+Ve))}return oe?(B?we(Z,je):we(H,Be),Le(),Ee(),!0):!1}),c.useEffect(()=>(Le(),Se&&(te.current=setTimeout(()=>{Te(0)},100)),Le),[Se]);const[Pe,ye]=oD(Q,re,B?V:W,se,ie,fe,{...e,tabs:N}),Ie=wt((je=u)=>{const Be=Q.get(je)||{width:0,height:0,left:0,right:0,top:0};if(B){let we=V;m?Be.right<V?we=Be.right:Be.right+Be.width>V+re&&(we=Be.right+Be.width-re):Be.left<-V?we=-Be.left:Be.left+Be.width>-V+re&&(we=-(Be.left+Be.width-re)),H(0),Z(he(we))}else{let we=W;Be.top<-W?we=-Be.top:Be.top+Be.height>-W+re&&(we=-(Be.top+Be.height-re)),Z(0),H(he(we))}}),[De,Me]=c.useState(),[qe,tt]=c.useState(!1),Xe=N.filter(je=>!je.disabled).map(je=>je.key),He=je=>{const Be=Xe.indexOf(De||u),we=Xe.length,Fe=(Be+je+we)%we,Ve=Xe[Fe];Me(Ve)},Ue=(je,Be)=>{const we=Xe.indexOf(je),Fe=N.find(Ye=>Ye.key===je);Py(Fe?.closable,Fe?.closeIcon,p,Fe?.disabled)&&(Be.preventDefault(),Be.stopPropagation(),p.onEdit("remove",{key:je,event:Be}),we===Xe.length-1?He(-1):He(1))},Qe=(je,Be)=>{tt(!0),Be.button===1&&Ue(je,Be)},ke=je=>{const{code:Be}=je,we=m&&B,Fe=Xe[0],Ve=Xe[Xe.length-1];switch(Be){case"ArrowLeft":{B&&He(we?1:-1);break}case"ArrowRight":{B&&He(we?-1:1);break}case"ArrowUp":{je.preventDefault(),B||He(-1);break}case"ArrowDown":{je.preventDefault(),B||He(1);break}case"Home":{je.preventDefault(),Me(Fe);break}case"End":{je.preventDefault(),Me(Ve);break}case"Enter":case"Space":{je.preventDefault(),$(De??u,je);break}case"Backspace":case"Delete":{Ue(De,je);break}}},Oe={};B?Oe.marginInlineStart=y:Oe.marginTop=y;const Je=N.map((je,Be)=>{const{key:we}=je;return c.createElement(lD,{id:s,prefixCls:E,key:we,tab:je,classNames:{item:w?.item,remove:w?.remove},styles:{item:Be===0?R?.item:{...Oe,...R?.item},remove:R?.remove},closable:je.closable,editable:p,active:we===u,focus:we===De,renderWrapper:S,removeAriaLabel:g?.removeAriaLabel,tabCount:Xe.length,currentPosition:Be+1,onClick:Fe=>{$(we,Fe)},onKeyDown:ke,onFocus:()=>{qe||Me(we),Ie(we),Ee(),P.current&&(m||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{Me(void 0)},onMouseDown:Fe=>Qe(we,Fe),onMouseUp:()=>{tt(!1)}})}),nt=()=>ee(()=>{const je=new Map,Be=_.current?.getBoundingClientRect();return N.forEach(({key:we})=>{const Fe=_.current?.querySelector(`[data-node-key="${JR(we)}"]`);if(Fe){const[Ve,Ye,dt,ln]=cD(Fe,Be);je.set(we,{width:Ve,height:Ye,left:dt,top:ln})}}),je});c.useEffect(()=>{nt()},[N.map(je=>je.key).join("_")]);const ut=ZR(()=>{const je=ki(M),Be=ki(T),we=ki(O);U([je[0]-Be[0]-we[0],je[1]-Be[1]-we[1]]);const Fe=ki(A);D(Fe);const Ve=ki(L);G(Ve);const Ye=ki(_);k([Ye[0]-Fe[0],Ye[1]-Fe[1]]),nt()}),Rt=N.slice(0,Pe),ht=N.slice(ye+1),Ut=[...Rt,...ht],_t=Q.get(u),{style:Ct}=J7({activeTabOffset:_t,horizontal:B,indicator:j,rtl:m});c.useEffect(()=>{Ie()},[u,ve,Ce,DE(_t),DE(Q),B]),c.useEffect(()=>{ut()},[m]);const kt=!!Ut.length,Pt=`${E}-nav-wrap`;let Vt,Ze,$t,We;return B?m?(Ze=V>0,Vt=V!==Ce):(Vt=V<0,Ze=V!==ve):($t=W<0,We=W!==ve),c.createElement(ko,{onResize:ut},c.createElement("div",{ref:xa(t,M),role:"tablist","aria-orientation":B?"horizontal":"vertical",className:K(`${E}-nav`,n,w?.header),style:{...R?.header,...o},onKeyDown:()=>{Ee()}},c.createElement(HE,{ref:T,position:"left",extra:h,prefixCls:E}),c.createElement(ko,{onResize:ut},c.createElement("div",{className:K(Pt,{[`${Pt}-ping-left`]:Vt,[`${Pt}-ping-right`]:Ze,[`${Pt}-ping-top`]:$t,[`${Pt}-ping-bottom`]:We}),ref:P},c.createElement(ko,{onResize:ut},c.createElement("div",{ref:_,className:`${E}-nav-list`,style:{transform:`translate(${V}px, ${W}px)`,transition:Se?"none":void 0}},Je,c.createElement(eM,{ref:A,prefixCls:E,locale:g,editable:p,style:{...Je.length===0?void 0:Oe,visibility:kt?"hidden":null}}),c.createElement("div",{className:K(`${E}-ink-bar`,w?.indicator,{[`${E}-ink-bar-animated`]:i.inkBar}),style:{...Ct,...R?.indicator}}))))),c.createElement(iD,Gv({},e,{removeAriaLabel:g?.removeAriaLabel,ref:L,prefixCls:E,tabs:Ut,className:!kt&&pe,popupStyle:R?.popup,tabMoving:!!Se})),c.createElement(HE,{ref:O,position:"right",extra:h,prefixCls:E})))}),uD=({renderTabBar:e,...t})=>e?e(t,FE):c.createElement(FE,t),dD=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:s,id:i,active:u,tabKey:m,children:h}=e,p=c.Children.count(h)>0;return c.createElement("div",{id:i&&`${i}-panel-${m}`,role:"tabpanel",tabIndex:u&&p?0:-1,"aria-labelledby":i&&`${i}-tab-${m}`,"aria-hidden":!u,style:s,className:K(n,u&&`${n}-active`,o),ref:t},h)});function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lm.apply(this,arguments)}const fD=e=>{const{id:t,activeKey:n,animated:o,tabPosition:s,destroyOnHidden:i,bodyStyle:u,bodyClassName:m,contentStyle:h,contentClassName:p}=e,{prefixCls:g,tabs:b}=c.useContext(Iy),y=o.tabPane,S=`${g}-body`,$=`${g}-content`;return c.createElement("div",{className:K(`${S}-holder`)},c.createElement("div",{className:K(S,`${S}-${s}`,{[`${S}-animated`]:y},m),style:u},b.map(C=>{const{key:j,forceRender:w,style:R,className:E,destroyOnHidden:N,...M}=C,T=j===n;return c.createElement(wr,lm({key:j,visible:T,forceRender:w,removeOnLeave:!!(i??N),leavedClassName:`${$}-hidden`},o.tabPaneMotion),({style:O,className:P},_)=>c.createElement(dD,lm({},M,{prefixCls:$,id:t,tabKey:j,animated:y,active:T,style:{...h,...R,...O},className:K(p,E,P),ref:_})))})))};function mD(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 Ec(){return Ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ec.apply(this,arguments)}let kE=0;const pD=c.forwardRef((e,t)=>{const{id:n,prefixCls:o="rc-tabs",className:s,items:i,direction:u,activeKey:m,defaultActiveKey:h,editable:p,animated:g,tabPosition:b="top",tabBarGutter:y,tabBarStyle:S,tabBarExtraContent:$,locale:C,more:j,destroyOnHidden:w,renderTabBar:R,onChange:E,onTabClick:N,onTabScroll:M,getPopupContainer:T,popupClassName:O,indicator:P,classNames:_,styles:L,...A}=e,B=c.useMemo(()=>(i||[]).filter(Q=>Q&&typeof Q=="object"&&"key"in Q),[i]),V=u==="rtl",Z=mD(g),[W,H]=c.useState(!1);c.useEffect(()=>{H(FT())},[]);const[q,U]=hr(h??B[0]?.key,m),[J,k]=c.useState(()=>B.findIndex(Q=>Q.key===q));c.useEffect(()=>{let Q=B.findIndex(ae=>ae.key===q);Q===-1&&(Q=Math.max(0,Math.min(J,B.length-1)),U(B[Q]?.key)),k(Q)},[B.map(Q=>Q.key).join("_"),q,J]);const[I,D]=hr(null,n);c.useEffect(()=>{n||(D(`rc-tabs-${kE}`),kE+=1)},[]);function Y(Q,ae){N?.(Q,ae);const se=Q!==q;U(Q),se&&E?.(Q)}const G={id:I,activeKey:q,animated:Z,tabPosition:b,rtl:V,mobile:W},X={...G,editable:p,locale:C,more:j,tabBarGutter:y,onTabClick:Y,onTabScroll:M,extra:$,style:S,getPopupContainer:T,popupClassName:K(O,_?.popup),indicator:P,styles:L,classNames:_},ee=c.useMemo(()=>({tabs:B,prefixCls:o}),[B,o]);return c.createElement(Iy.Provider,{value:ee},c.createElement("div",Ec({ref:t,id:n,className:K(o,`${o}-${b}`,{[`${o}-mobile`]:W,[`${o}-editable`]:p,[`${o}-rtl`]:V},s)},A),c.createElement(uD,Ec({},X,{renderTabBar:R})),c.createElement(fD,Ec({destroyOnHidden:w},G,{bodyStyle:L?.body,bodyClassName:_?.body,contentStyle:L?.content,contentClassName:_?.content,animated:Z}))))}),hD={motionAppear:!1,motionEnter:!0,motionLeave:!0};function gD(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...Ot(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...hD,motionName:Wo(e,"switch")}),n}function bD(e){return e.filter(t=>t)}function vD(e,t){if(e)return e.map(o=>({...o,destroyOnHidden:o.destroyOnHidden??o.destroyInactiveTabPane}));const n=kr(t).map(o=>{if(c.isValidElement(o)){const{key:s,props:i}=o,{tab:u,...m}=i||{};return{key:String(s),...m,label:u}}return null});return bD(n)}const yD=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[tl(e,"slide-up"),tl(e,"slide-down")]]},xD=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:s,colorBorderSecondary:i,itemSelectedColor:u}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${le(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:u,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:sl(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:le(s)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:le(s)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadiusLG)} 0 0 ${le(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},SD=e=>{const{antCls:t,componentCls:n,itemHoverColor:o,dropdownEdgeChildVerticalPadding:s}=e;return{[`${n}-dropdown`]:{...Ln(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${n}-dropdown-placement-bottomLeft,
|
|
203
|
-
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
|
|
204
|
-
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
|
|
205
|
-
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
|
|
206
|
-
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
|
|
207
|
-
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:iy},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
208
|
-
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
209
|
-
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
|
|
210
|
-
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
|
|
211
|
-
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
212
|
-
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:cy},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
|
|
213
|
-
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
|
|
214
|
-
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:ly},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
215
|
-
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
|
|
216
|
-
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:uy},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${le(s)} 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":{...Mo,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${le(e.paddingXXS)} ${le(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},CD=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:s,verticalItemPadding:i,verticalItemMargin:u,motionDurationSlow:m,calc:h}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:s,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${le(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(p=>`${p} ${m}`).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:n,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:h(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,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(p=>`${p} ${m}`).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:le(h(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${le(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:h(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},$D=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,cardHeightSM:s,cardHeightLG:i,horizontalItemPaddingSM:u,horizontalItemPaddingLG:m}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:m,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:s,minHeight:s}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadius)} ${le(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${le(e.borderRadius)} ${le(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${le(e.borderRadius)} ${le(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadius)} 0 0 ${le(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},wD=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:s,tabsHorizontalItemMargin:i,horizontalItemPadding:u,itemSelectedColor:m,itemColor:h}=e,p=`${t}-tab`;return{[p]:{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:h,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${p}-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},...qo(e)},"&:hover":{color:o},[`&${p}-active ${p}-btn`]:{color:m},[`&${p}-focus ${p}-btn:focus-visible`]:sl(e),[`&${p}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${p}-disabled ${p}-btn, &${p}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${p}-remove ${s}`]:{margin:0,verticalAlign:"middle"},[`${s}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${p} + ${p}`]:{margin:{_skip_check_:!0,value:i}}}},ED=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:s,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{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:i(e.marginXXS).mul(-1).equal()},[o]:{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:s},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ND=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:s,itemHoverColor:i,itemActiveColor:u,colorBorderSecondary:m}=e;return{[t]:{...Ln(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:s},background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} ${m}`,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:u},...qo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...wD(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...qo(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"}}}}}},jD=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:o,controlHeight:s,controlHeightLG:i}=e,u=t||i,m=n||s,h=o||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:u,cardHeightSM:m,cardHeightLG:h,cardPadding:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(m-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(h-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}},RD=an("Tabs",e=>{const t=rn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${le(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${le(e.horizontalItemGutter)}`});return[$D(t),ED(t),CD(t),SD(t),xD(t),ND(t),yD(t)]},jD),MD=()=>null,TD=c.forwardRef((e,t)=>{const{type:n,className:o,rootClassName:s,size:i,onEdit:u,hideAdd:m,centered:h,addIcon:p,removeIcon:g,moreIcon:b,more:y,popupClassName:S,children:$,items:C,animated:j,style:w,indicatorSize:R,indicator:E,classNames:N,styles:M,destroyInactiveTabPane:T,destroyOnHidden:O,tabPlacement:P,tabPosition:_,...L}=e,{prefixCls:A}=L,{getPrefixCls:B,direction:V,getPopupContainer:Z,className:W,style:H,classNames:q,styles:U}=en("tabs"),{tabs:J}=c.useContext(vt),k=B("tabs",A),I=Rr(k),[D,Y]=RD(k,I),G=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:G.current}));let X;n==="editable-card"&&(X={onEdit:(he,{key:te,event:Se})=>{u?.(he==="add"?Se:te,he)},removeIcon:g??J?.removeIcon??c.createElement(zo,null),addIcon:(p??J?.addIcon)||c.createElement(kc,null),showAdd:m!==!0});const ee=B(),Q=Mr(i),ae=vD(C,$),se=gD(k,j),ie={align:E?.align??J?.indicator?.align,size:E?.size??R??J?.indicator?.size??J?.indicatorSize},fe=c.useMemo(()=>{const he=P??_??void 0,te=V==="rtl";switch(he){case"start":return te?"right":"left";case"end":return te?"left":"right";default:return he}},[P,_,V]),oe={...e,size:Q,tabPlacement:fe,items:ae},re=dn(H),pe=dn(w),[ve,Ce]=sn([q,N],[U,re,M,pe],{props:oe},{popup:{_default:"root"}});return c.createElement(pD,{ref:G,direction:V,getPopupContainer:Z,...L,items:ae,className:K({[`${k}-large`]:Q==="large",[`${k}-small`]:Q==="small",[`${k}-card`]:["card","editable-card"].includes(n),[`${k}-editable-card`]:n==="editable-card",[`${k}-centered`]:h},W,o,s,ve.root,D,Y,I),classNames:{...ve,popup:K(S,D,Y,I,ve.popup?.root)},styles:Ce,style:Ce.root,editable:X,more:{icon:J?.more?.icon??J?.moreIcon??b??c.createElement(zy,null),transitionName:`${ee}-slide-up`,...y},prefixCls:k,animated:se,indicator:ie,destroyOnHidden:O??T,tabPosition:fe})}),Ly=TD;Ly.TabPane=MD;const tM=({prefixCls:e,className:t,hoverable:n=!0,...o})=>{const{getPrefixCls:s}=c.useContext(vt),i=s("card",e),u=K(`${i}-grid`,t,{[`${i}-grid-hoverable`]:n});return c.createElement("div",{...o,className:u})},OD=e=>{const{antCls:t,componentCls:n,headerHeight:o,headerPadding:s,tabsMarginBottom:i}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${le(s)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`,...ks(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...Mo,[`
|
|
218
|
-
> ${n}-typography,
|
|
219
|
-
> ${n}-typography-edit-content
|
|
220
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},zD=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:s}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
221
|
-
${le(s)} 0 0 0 ${n},
|
|
222
|
-
0 ${le(s)} 0 0 ${n},
|
|
223
|
-
${le(s)} ${le(s)} 0 0 ${n},
|
|
224
|
-
${le(s)} 0 0 0 ${n} inset,
|
|
225
|
-
0 ${le(s)} 0 0 ${n} inset;
|
|
226
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},AD=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:s,colorBorderSecondary:i,actionsBg:u}=e;return{margin:0,padding:0,listStyle:"none",background:u,borderTop:`${le(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`,...ks(),"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:le(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:s,lineHeight:le(e.calc(s).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${i}`}}}},ID=e=>({margin:`${le(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...ks(),"&-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,...Mo},"&-description":{color:e.colorTextDescription}}),PD=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:o,bodyPadding:s}=e;return{[`${t}-head`]:{padding:`0 ${le(o)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${le(e.padding)} ${le(s)}`}}},LD=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},_D=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:s,boxShadowTertiary:i,bodyPadding:u,extraColor:m,motionDurationMid:h}=e;return{[t]:{...Ln(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:OD(e),[`${t}-extra`]:{marginInlineStart:"auto",color:m,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:u,borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:zD(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:AD(e),[`${t}-meta`]:ID(e)},[`${t}-bordered`]:{border:`${le(e.lineWidth)} ${e.lineType} ${s}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(p=>`${p} ${h}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${le(e.borderRadiusLG)} ${le(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:o}}},[`${t}-type-inner`]:PD(e),[`${t}-loading`]:LD(e),[`${t}-rtl`]:{direction:"rtl"}}},BD=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:o,headerHeightSM:s,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:s,padding:`0 ${le(o)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},DD=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}),HD=an("Card",e=>{const t=rn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[_D(t),BD(t)]},DD),FD=e=>{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return c.createElement("ul",{className:t,style:o},n.map((s,i)=>{const u=`action-${i}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:u},c.createElement("span",null,s))}))},kD=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:s,style:i,extra:u,headStyle:m={},bodyStyle:h={},title:p,loading:g,bordered:b,variant:y,size:S,type:$,cover:C,actions:j,tabList:w,children:R,activeTabKey:E,defaultActiveTabKey:N,tabBarExtraContent:M,hoverable:T,tabProps:O={},classNames:P,styles:_,...L}=e,{getPrefixCls:A,direction:B,className:V,style:Z,classNames:W,styles:H}=en("card"),[q]=Bm("card",y,b),U=Mr(S),J={...e,size:U,variant:q},k=dn(Z),I=dn(i),[D,Y]=sn([W,P],[H,k,_,I],{props:J}),G=De=>{e.onTabChange?.(De)},X=c.useMemo(()=>kr(R),[R]),ee=c.useMemo(()=>X.some(De=>c.isValidElement(De)&&De.type===tM),[X]),Q=A("card",n),[ae,se]=HD(Q),ie=c.createElement(Sr,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),fe=E!==void 0,oe={...O,[fe?"activeKey":"defaultActiveKey"]:fe?E:N,tabBarExtraContent:M};let re;const pe=U!=="small"?"large":U,ve=w?c.createElement(Ly,{size:pe,...oe,className:`${Q}-head-tabs`,onChange:G,items:w.map(({tab:De,...Me})=>({label:De,...Me}))}):null;if(p||u||ve){const De=K(`${Q}-head`,D.header),Me=K(`${Q}-head-title`,D.title),qe=K(`${Q}-extra`,D.extra),tt={...m,...Y.header};re=c.createElement("div",{className:De,style:tt},c.createElement("div",{className:`${Q}-head-wrapper`},p&&c.createElement("div",{className:Me,style:Y.title},p),u&&c.createElement("div",{className:qe,style:Y.extra},u)),ve)}const Ce=K(`${Q}-cover`,D.cover),he=C?c.createElement("div",{className:Ce,style:Y.cover},C):null,te=K(`${Q}-body`,D.body),Se={...h,...Y.body},Te=g||X.length?c.createElement("div",{className:te,style:Se},g?ie:R):null,Ee=K(`${Q}-actions`,D.actions),Le=j?.length?c.createElement(FD,{actionClasses:Ee,actionStyle:Y.actions,actions:j}):null,Pe=Mn(L,["onTabChange"]),ye=K(Q,V,{[`${Q}-loading`]:g,[`${Q}-bordered`]:q!=="borderless",[`${Q}-hoverable`]:T,[`${Q}-contain-grid`]:ee,[`${Q}-contain-tabs`]:w?.length,[`${Q}-small`]:U==="small",[`${Q}-type-${$}`]:!!$,[`${Q}-rtl`]:B==="rtl"},o,s,ae,se,D.root),Ie={...Y.root};return c.createElement("div",{ref:t,...Pe,className:ye,style:Ie},re,he,Te,Le)}),VD=e=>{const{prefixCls:t,className:n,avatar:o,title:s,description:i,style:u,classNames:m,styles:h,...p}=e,{getPrefixCls:g,className:b,style:y,classNames:S,styles:$}=en("cardMeta"),j=`${g("card",t)}-meta`,w=dn(y),R=dn(u),[E,N]=sn([S,m],[$,w,h,R],{props:e}),M=K(j,n,b,E.root),T={...N.root},O=K(`${j}-avatar`,E.avatar),P=K(`${j}-title`,E.title),_=K(`${j}-description`,E.description),L=K(`${j}-section`,E.section),A=o?c.createElement("div",{className:O,style:N.avatar},o):null,B=s?c.createElement("div",{className:P,style:N.title},s):null,V=i?c.createElement("div",{className:_,style:N.description},i):null,Z=B||V?c.createElement("div",{className:L,style:N.section},B,V):null;return c.createElement("div",{...p,className:M,style:T},A,Z)},Us=kD;Us.Grid=tM;Us.Meta=VD;const nM=c.createContext({});function VE(e){return e==="auto"?"1 1 auto":$r(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const rM=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=c.useContext(vt),{gutter:s,wrap:i}=c.useContext(nM),{prefixCls:u,span:m,order:h,offset:p,push:g,pull:b,className:y,children:S,flex:$,style:C,...j}=e,w=n("col",u),R=n(),[E,N]=DL(w),[M]=on(R,"col"),T={};let O={};sR.forEach(L=>{let A={};const B=e[L];$r(B)?A.span=B:Ot(B)&&(A=B||{}),delete j[L],O={...O,[`${w}-${L}-${A.span}`]:Un(A.span),[`${w}-${L}-order-${A.order}`]:A.order||A.order===0,[`${w}-${L}-offset-${A.offset}`]:A.offset||A.offset===0,[`${w}-${L}-push-${A.push}`]:A.push||A.push===0,[`${w}-${L}-pull-${A.pull}`]:A.pull||A.pull===0,[`${w}-rtl`]:o==="rtl"},(A.flex||A.flex===0)&&(O[`${w}-${L}-flex`]=!0,T[M(`${L}-flex`)]=VE(A.flex))});const P=K(w,{[`${w}-${m}`]:m!==void 0,[`${w}-order-${h}`]:h,[`${w}-offset-${p}`]:p,[`${w}-push-${g}`]:g,[`${w}-pull-${b}`]:b},y,O,E,N),_={};if(s?.[0]){const L=$r(s[0])?`${s[0]/2}px`:`calc(${s[0]} / 2)`;_.paddingInline=L}return($||$===0)&&(_.flex=VE($),i===!1&&!_.minWidth&&(_.minWidth=0)),c.createElement("div",{...j,style:{..._,...C,...T},className:P,ref:t},S)});function qD(e,t){const n=[void 0,void 0],o=Array.isArray(e)?e:[e,void 0],s=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return o.forEach((i,u)=>{if(Ot(i))for(let m=0;m<rl.length;m++){const h=rl[m];if(s[h]&&i[h]!==void 0){n[u]=i[h];break}}else n[u]=i}),n}const qE=(e,t)=>{const[n,o]=c.useState(()=>Vo(e)?e:""),s=()=>{if(Vo(e)&&o(e),!!Ot(e))for(let i=0;i<rl.length;i++){const u=rl[i];if(!t||!t[u])continue;const m=e[u];if(m!==void 0){o(m);return}}};return c.useEffect(()=>{s()},[JSON.stringify(e),t]),n},WD=c.forwardRef((e,t)=>{const{prefixCls:n,justify:o,align:s,className:i,style:u,children:m,gutter:h=0,wrap:p,...g}=e,{getPrefixCls:b,direction:y}=c.useContext(vt),S=iR(!0,null),$=qE(s,S),C=qE(o,S),j=b("row",n),[w,R]=BL(j),E=qD(h,S),N=K(j,{[`${j}-no-wrap`]:p===!1,[`${j}-${C}`]:C,[`${j}-${$}`]:$,[`${j}-rtl`]:y==="rtl"},i,w,R),M={};if(E?.[0]){const _=$r(E[0])?`${E[0]/-2}px`:`calc(${E[0]} / -2)`;M.marginInline=_}const[T,O]=E;M.rowGap=O;const P=c.useMemo(()=>({gutter:[T,O],wrap:p}),[T,O,p]);return c.createElement(nM.Provider,{value:P},c.createElement("div",{...g,className:N,style:{...M,...u},ref:t},m))}),UD=e=>{const{componentCls:t,borderRadius:n,paddingSM:o,colorBorder:s,paddingXS:i,fontSizeLG:u,fontSizeSM:m,borderRadiusLG:h,borderRadiusSM:p,colorBgContainerDisabled:g,lineWidth:b,lineType:y,antCls:S}=e,[$,C]=on(S,"space-addon");return{[t]:[{...Ln(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:o,margin:0,borderWidth:b,borderStyle:y,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:u,borderRadius:h},"&-small":{paddingInline:i,borderRadius:p,fontSize:m},"&-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}},{[$("addon-border-color")]:s,[$("addon-background")]:g,[$("addon-border-color-outlined")]:s,[$("addon-background-filled")]:g,borderColor:C("addon-border-color"),background:C("addon-background"),"&-variant-outlined":{[$("addon-border-color")]:C("addon-border-color-outlined")},"&-variant-filled":{[$("addon-border-color")]:"transparent",[$("addon-background")]:C("addon-background-filled"),[`&${t}-disabled`]:{[$("addon-border-color")]:s,[$("addon-background")]:g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[$("addon-border-color-outlined")]:e.colorError,[$("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[$("addon-border-color-outlined")]:e.colorWarning,[$("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},GD=an("Addon",e=>[UD(e),Pm(e,{focus:!1})]),XD=ue.forwardRef((e,t)=>{const{className:n,children:o,style:s,prefixCls:i,variant:u="outlined",disabled:m,status:h,...p}=e,{getPrefixCls:g,direction:b}=ue.useContext(vt),y=g("space-addon",i),[S,$]=GD(y),{compactItemClassnames:C,compactSize:j}=cl(y,b),w=Bc(y,h),R=K(y,S,C,$,`${y}-variant-${u}`,w,{[`${y}-${j}`]:j,[`${y}-disabled`]:m},n);return ue.createElement("div",{ref:t,className:R,style:s,...p},o)});function KD(e){return!!(e.addonBefore||e.addonAfter)}function YD(e){return!!(e.prefix||e.suffix||e.allowClear)}function WE(e,t,n){const o=t.cloneNode(!0),s=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=(...i)=>{t.setSelectionRange(...i)},s}function cm(e,t,n,o){if(!n)return;let s=t;if(t.type==="click"){s=WE(t,e,""),n(s);return}if(e.type!=="file"&&o!==void 0){s=WE(t,e,o),n(s);return}n(s)}function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xv.apply(this,arguments)}const oM=ue.forwardRef((e,t)=>{const{inputElement:n,children:o,prefixCls:s,prefix:i,suffix:u,addonBefore:m,addonAfter:h,className:p,style:g,disabled:b,readOnly:y,focused:S,triggerFocus:$,allowClear:C,value:j,handleReset:w,hidden:R,classes:E,classNames:N,dataAttrs:M,styles:T,components:O,onClear:P}=e,_=o??n,L=O?.affixWrapper||"span",A=O?.groupWrapper||"span",B=O?.wrapper||"span",V=O?.groupAddon||"span",Z=c.useRef(null),W=J=>{Z.current?.contains(J.target)&&$?.()},H=YD(e);let q=c.cloneElement(_,{value:j,className:K(_.props?.className,!H&&N?.variant)||null});const U=c.useRef(null);if(ue.useImperativeHandle(t,()=>({nativeElement:U.current||Z.current})),H){let J=null;if(C){const Y=!b&&!y&&j&&!(typeof C=="object"&&C.disabled),G=`${s}-clear-icon`,X=typeof C=="object"&&C?.clearIcon?C.clearIcon:"✖";J=ue.createElement("button",{type:"button",onClick:ee=>{w?.(ee),P?.()},onMouseDown:ee=>ee.preventDefault(),className:K(G,{[`${G}-hidden`]:!Y,[`${G}-has-suffix`]:!!u},N?.clear),style:T?.clear},X)}const k=`${s}-affix-wrapper`,I=K(k,{[`${s}-disabled`]:b,[`${k}-disabled`]:b,[`${k}-focused`]:S,[`${k}-readonly`]:y,[`${k}-input-with-clear-btn`]:u&&C&&j},E?.affixWrapper,N?.affixWrapper,N?.variant),D=(u||C)&&ue.createElement("span",{className:K(`${s}-suffix`,N?.suffix),style:T?.suffix},J,u);q=ue.createElement(L,Xv({className:I,style:T?.affixWrapper,onClick:W},M?.affixWrapper,{ref:Z}),i&&ue.createElement("span",{className:K(`${s}-prefix`,N?.prefix),style:T?.prefix},i),q,D)}if(KD(e)){const J=`${s}-group`,k=`${J}-addon`,I=`${J}-wrapper`,D=K(`${s}-wrapper`,J,E?.wrapper,N?.wrapper),Y=K(I,{[`${I}-disabled`]:b},E?.group,N?.groupWrapper);q=ue.createElement(A,{className:Y,ref:U},ue.createElement(B,{className:D},m&&ue.createElement(V,{className:k},m),q,h&&ue.createElement(V,{className:k},h)))}return ue.cloneElement(q,{className:K(q.props?.className,p)||null,style:{...q.props?.style,...g},hidden:R})});function aM(e,t){return c.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:o,...s}=n;return{...s,show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:s.strategy||(i=>i.length)}},[e,t])}function sM({countConfig:e,value:t,maxLength:n}){return c.useMemo(()=>{const o=e.max??n,s=e.strategy(t),i=!!o&&s>o,u=Number(o)>0,m=e.show?e.showFormatter?e.showFormatter({value:t,count:s,maxLength:o}):`${s}${u?` / ${o}`:""}`:void 0;return{mergedMax:o,isOutOfRange:i,dataCount:m}},[e,n,t])}function iM({countConfig:e,getTarget:t}){const[n,o]=c.useState(null),s=c.useRef(t);return c.useEffect(()=>{s.current=t},[t]),c.useEffect(()=>{n&&(s.current()?.setSelectionRange(...n),o(null))},[n]),c.useCallback((u,m)=>{let h=u;return!m&&e.exceedFormatter&&e.max&&e.strategy(u)>e.max&&(h=e.exceedFormatter(u,{max:e.max}),u!==h&&o([s.current()?.selectionStart||0,s.current()?.selectionEnd||0])),h},[e])}function lM(e,t){const[n,o]=hr(e,t),s=n==null?"":String(n);return{value:n,setValue:o,formatValue:s}}function um(){return um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},um.apply(this,arguments)}const QD=c.forwardRef((e,t)=>{const{autoComplete:n,onChange:o,onFocus:s,onBlur:i,onPressEnter:u,onKeyDown:m,onKeyUp:h,prefixCls:p="rc-input",disabled:g,htmlSize:b,className:y,maxLength:S,suffix:$,showCount:C,count:j,type:w="text",classes:R,classNames:E,styles:N,onCompositionStart:M,onCompositionEnd:T,...O}=e,[P,_]=c.useState(!1),L=c.useRef(!1),A=c.useRef(!1),B=c.useRef(null),V=c.useRef(null),Z=oe=>{B.current&&aN(B.current,oe)},{setValue:W,formatValue:H}=lM(e.defaultValue,e.value),q=aM(j,C),{isOutOfRange:U,dataCount:J}=sM({countConfig:q,value:H,maxLength:S}),k=iM({countConfig:q,getTarget:()=>B.current});c.useImperativeHandle(t,()=>({focus:Z,blur:()=>{B.current?.blur()},setSelectionRange:(oe,re,pe)=>{B.current?.setSelectionRange(oe,re,pe)},select:()=>{B.current?.select()},input:B.current,nativeElement:V.current?.nativeElement||B.current})),c.useEffect(()=>{A.current&&(A.current=!1),_(oe=>oe&&g?!1:oe)},[g]);const I=(oe,re,pe)=>{const ve=k(re,L.current);pe.source==="compositionEnd"&&re===ve||(W(ve),B.current&&cm(B.current,oe,o,ve))},D=oe=>{I(oe,oe.target.value,{source:"change"})},Y=oe=>{L.current=!1,I(oe,oe.currentTarget.value,{source:"compositionEnd"}),T?.(oe)},G=oe=>{u&&oe.key==="Enter"&&!A.current&&!oe.nativeEvent.isComposing&&(A.current=!0,u(oe)),m?.(oe)},X=oe=>{oe.key==="Enter"&&(A.current=!1),h?.(oe)},ee=oe=>{_(!0),s?.(oe)},Q=oe=>{A.current&&(A.current=!1),_(!1),i?.(oe)},ae=oe=>{W(""),Z(),B.current&&cm(B.current,oe,o)},se=U&&`${p}-out-of-range`,ie=()=>{const oe=Mn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ue.createElement("input",um({autoComplete:n},oe,{onChange:D,onFocus:ee,onBlur:Q,onKeyDown:G,onKeyUp:X,className:K(p,{[`${p}-disabled`]:g},E?.input),style:N?.input,ref:B,size:b,type:w,onCompositionStart:re=>{L.current=!0,M?.(re)},onCompositionEnd:Y}))},fe=()=>$||q.show?ue.createElement(ue.Fragment,null,q.show&&ue.createElement("span",{className:K(`${p}-show-count-suffix`,{[`${p}-show-count-has-suffix`]:!!$},E?.count),style:{...N?.count}},J),$):null;return ue.createElement(oM,um({},O,{prefixCls:p,className:K(y,se),handleReset:ae,value:H,focused:P,triggerFocus:Z,suffix:fe(),disabled:g,classes:R,classNames:E,styles:N,ref:V}),ie())}),ZD=`
|
|
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
|
-
`,JD=["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"],Hg={};let Jr;function eH(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Hg[n])return Hg[n];const o=window.getComputedStyle(e),s=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),u=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),h={sizingStyle:JD.map(p=>`${p}:${o.getPropertyValue(p)}`).join(";"),paddingSize:i,borderSize:u,boxSizing:s};return t&&n&&(Hg[n]=h),h}function tH(e,t=!1,n=null,o=null){Jr||(Jr=document.createElement("textarea"),Jr.setAttribute("tab-index","-1"),Jr.setAttribute("aria-hidden","true"),Jr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Jr)),e.getAttribute("wrap")?Jr.setAttribute("wrap",e.getAttribute("wrap")):Jr.removeAttribute("wrap");const{paddingSize:s,borderSize:i,boxSizing:u,sizingStyle:m}=eH(e,t);Jr.setAttribute("style",`${m};${ZD}`),Jr.value=e.value||e.placeholder||"";let h,p,g,b=Jr.scrollHeight;if(u==="border-box"?b+=i:u==="content-box"&&(b-=s),n!==null||o!==null){Jr.value=" ";const S=Jr.scrollHeight-s;n!==null&&(h=S*n,u==="border-box"&&(h=h+s+i),b=Math.max(h,b)),o!==null&&(p=S*o,u==="border-box"&&(p=p+s+i),g=b>p?void 0:"hidden",b=Math.min(p,b))}const y={height:b,overflowY:g,resize:"none"};return h&&(y.minHeight=h),p&&(y.maxHeight=p),y}function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kv.apply(this,arguments)}const Fg=0,kg=1,Vg=2,nH=c.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:o,value:s,autoSize:i,onResize:u,className:m,style:h,disabled:p,onChange:g,onInternalAutoSize:b,...y}=e,[S,$]=hr(o,s),C=S??"",j=W=>{$(W.target.value),g?.(W)},w=c.useRef(null);c.useImperativeHandle(t,()=>({textArea:w.current}));const[R,E]=c.useMemo(()=>i&&typeof i=="object"?[i.minRows,i.maxRows]:[],[i]),N=!!i,[M,T]=c.useState(Vg),[O,P]=c.useState(),_=()=>{T(Fg)};xn(()=>{N&&_()},[s,R,E,N]),xn(()=>{if(M===Fg)T(kg);else if(M===kg){const W=tH(w.current,!1,R,E);T(Vg),P(W)}},[M]);const L=c.useRef(void 0),A=()=>{L.current!==void 0&&nn.cancel(L.current)},B=W=>{M===Vg&&(u?.(W),i&&(A(),L.current=nn(()=>{_()})))};c.useEffect(()=>A,[]);const Z={...h,...N?O:null};return(M===Fg||M===kg)&&(Z.overflowY="hidden",Z.overflowX="hidden"),c.createElement(ko,{onResize:B,disabled:!(i||u)},c.createElement("textarea",Kv({},y,{ref:w,style:Z,className:K(n,m,{[`${n}-disabled`]:p}),disabled:p,value:C,onChange:j})))});function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yv.apply(this,arguments)}const rH=ue.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:o,onChange:s,allowClear:i,maxLength:u,onCompositionStart:m,onCompositionEnd:h,suffix:p,prefixCls:g="rc-textarea",showCount:b,count:y,className:S,style:$,disabled:C,hidden:j,classNames:w,styles:R,onResize:E,onClear:N,onPressEnter:M,readOnly:T,autoSize:O,onKeyDown:P,..._},L)=>{const[A,B]=ue.useState(!1),V=ue.useRef(!1),[Z,W]=ue.useState(null),H=c.useRef(null),q=c.useRef(null),U=()=>q.current?.textArea||null,{setValue:J,formatValue:k}=lM(e,t),I=aM(y,b),{isOutOfRange:D,dataCount:Y}=sM({countConfig:I,value:k,maxLength:u}),G=iM({countConfig:I,getTarget:()=>q.current?.textArea||null}),X=()=>{U()?.focus()};c.useImperativeHandle(L,()=>({resizableTextArea:q.current,focus:X,blur:()=>{U()?.blur()},nativeElement:H.current?.nativeElement||U()})),c.useEffect(()=>{B(he=>!C&&he)},[C]);const ee=(he,te)=>{const Se=G(te,V.current);J(Se),cm(he.currentTarget,he,s,Se)},Q=he=>{V.current=!0,m?.(he)},ae=he=>{V.current=!1,ee(he,he.currentTarget.value),h?.(he)},se=he=>{ee(he,he.target.value)},ie=he=>{he.key==="Enter"&&M&&!he.nativeEvent.isComposing&&M(he),P?.(he)},fe=he=>{B(!0),n?.(he)},oe=he=>{B(!1),o?.(he)},re=he=>{J(""),X();const te=U();te&&cm(te,he,s)};let pe=p;I.show&&(pe=ue.createElement(ue.Fragment,null,pe,ue.createElement("span",{className:K(`${g}-data-count`,w?.count),style:R?.count},Y)));const ve=he=>{E?.(he),U()?.style.height&&W(!0)},Ce=!O&&!b&&!i;return ue.createElement(oM,{ref:H,value:k,allowClear:i,handleReset:re,suffix:pe,prefixCls:g,classNames:{...w,affixWrapper:K(w?.affixWrapper,{[`${g}-show-count`]:b,[`${g}-textarea-allow-clear`]:i})},disabled:C,focused:A,className:K(S,D&&`${g}-out-of-range`),style:{...$,...Z&&!Ce?{height:"auto"}:{}},dataAttrs:typeof Y=="string"?{affixWrapper:{"data-count":Y}}:void 0,styles:R,hidden:j,readOnly:T,onClear:N},ue.createElement(nH,Yv({},_,{autoSize:O,maxLength:u,onKeyDown:ie,onChange:se,onFocus:fe,onBlur:oe,onCompositionStart:Q,onCompositionEnd:ae,className:K(w?.textarea),style:{resize:$?.resize,...R?.textarea},disabled:C,prefixCls:g,onResize:ve,ref:q,readOnly:T})))});function cM(e,t){const n=c.useRef([]),o=()=>{n.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&&o(),()=>n.current.forEach(s=>{s&&clearTimeout(s)})),[t]),o}function oH(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Vm=c.forwardRef((e,t)=>{const{prefixCls:n,bordered:o=!0,status:s,size:i,disabled:u,onBlur:m,onFocus:h,suffix:p,allowClear:g,addonAfter:b,addonBefore:y,className:S,style:$,styles:C,rootClassName:j,onChange:w,classNames:R,variant:E,...N}=e,{getPrefixCls:M,direction:T,allowClear:O,autoComplete:P,className:_,style:L,classNames:A,styles:B}=en("input"),V=M("input",n),Z=c.useRef(null),W=Rr(V),[H,q]=YR(V,j);QR(V,W);const{compactSize:U,compactItemClassnames:J}=cl(V,T),k=Mr(Ee=>i??U??Ee),I=ue.useContext(no),D=u??I,Y={...e,size:k,disabled:D},G=dn(L),X=dn($),[ee,Q]=sn([A,R],[B,G,C,X],{props:Y}),{status:ae,hasFeedback:se,feedbackIcon:ie}=c.useContext(ro),fe=_m(ae,s),oe=oH(e)||!!se;c.useRef(oe);const re=cM(Z,!0),pe=Ee=>{re(),m?.(Ee)},ve=Ee=>{re(),h?.(Ee)},Ce=Ee=>{re(),w?.(Ee)},he=(se||p)&&ue.createElement(ue.Fragment,null,p,se&&ie),te=Pj({allowClear:g,contextAllowClear:O,componentName:"Input"}),[Se,Te]=Bm("input",E,o);return ue.createElement(QD,{ref:Er(t,Z),prefixCls:V,autoComplete:P,...N,disabled:D,onBlur:pe,onFocus:ve,style:Q.root,styles:Q,suffix:he,allowClear:te,className:K(S,j,q,W,J,_,ee.root),onChange:Ce,addonBefore:y&&ue.createElement(nl,{form:!0,space:!0},y),addonAfter:b&&ue.createElement(nl,{form:!0,space:!0},b),classNames:{...ee,input:K({[`${V}-sm`]:k==="small",[`${V}-lg`]:k==="large",[`${V}-rtl`]:T==="rtl"},ee.input,H),variant:K({[`${V}-${Se}`]:Te},Bc(V,fe)),affixWrapper:K({[`${V}-affix-wrapper-sm`]:k==="small",[`${V}-affix-wrapper-lg`]:k==="large",[`${V}-affix-wrapper-rtl`]:T==="rtl"},H),wrapper:K({[`${V}-group-rtl`]:T==="rtl"},H),groupWrapper:K({[`${V}-group-wrapper-sm`]:k==="small",[`${V}-group-wrapper-lg`]:k==="large",[`${V}-group-wrapper-rtl`]:T==="rtl",[`${V}-group-wrapper-${Se}`]:Te},Bc(`${V}-group-wrapper`,fe,se),H)}})}),UE=c.createContext(null),uM=c.createContext({});function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qv.apply(this,arguments)}const aH=e=>{const{prefixCls:t,className:n,containerRef:o,...s}=e,{panel:i}=c.useContext(uM),u=xa(i,o);return c.createElement("div",Qv({className:K(`${t}-section`,n),role:"dialog",ref:u},br(e,{aria:!0}),{"aria-modal":"true"},s))};function sH(e){const{prefixCls:t,direction:n,className:o,style:s,maxSize:i,containerRef:u,currentSize:m,onResize:h,onResizeEnd:p,onResizeStart:g}=e,[b,y]=c.useState(!1),[S,$]=c.useState(0),[C,j]=c.useState(0),w=n==="left"||n==="right",R=wt(T=>{T.preventDefault(),T.stopPropagation(),y(!0),$(w?T.clientX:T.clientY);let O;if(typeof m=="number")O=m;else if(u?.current){const P=u.current.getBoundingClientRect();O=w?P.width:P.height}j(O),g?.(O)}),E=wt(T=>{if(!b)return;let P=(w?T.clientX:T.clientY)-S;(n==="right"||n==="bottom")&&(P=-P);let _=C+P;_<0&&(_=0),i&&_>i&&(_=i),h?.(_)}),N=c.useCallback(()=>{if(b&&(y(!1),u?.current)){const T=u.current.getBoundingClientRect(),O=w?T.width:T.height;p?.(O)}},[b,u,p,w]);return c.useEffect(()=>{if(b)return document.addEventListener("mousemove",E),document.addEventListener("mouseup",N),()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",N)}},[b,E,N]),{dragElementProps:{className:K(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:b,[`${t}-dragger-horizontal`]:w,[`${t}-dragger-vertical`]:!w},o),style:s,onMouseDown:R},isDragging:b}}function qg(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&Cr(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function iH(e,t,n,o,s){const i=o??s!==!1,[u]=sN(t&&i,e);return ue.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t]),u}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wi.apply(this,arguments)}const lH=(e,t)=>{const{prefixCls:n,open:o,placement:s,inline:i,push:u,forceRender:m,autoFocus:h,focusTrap:p,classNames:g,rootClassName:b,rootStyle:y,zIndex:S,className:$,id:C,style:j,motion:w,width:R,height:E,size:N,maxSize:M,children:T,mask:O,maskClosable:P,maskMotion:_,maskClassName:L,maskStyle:A,afterOpenChange:B,onClose:V,onMouseEnter:Z,onMouseOver:W,onMouseLeave:H,onClick:q,onKeyDown:U,onKeyUp:J,styles:k,drawerRender:I,resizable:D,defaultSize:Y}=e,G=c.useRef(null);c.useImperativeHandle(t,()=>G.current);const X=iH(()=>G.current,o,h,p,O),[ee,Q]=c.useState(!1),ae=c.useContext(UE);let se;typeof u=="boolean"?se=u?{}:{distance:0}:se=u||{};const ie=se?.distance??ae?.pushDistance??180,fe=c.useMemo(()=>({pushDistance:ie,push:()=>{Q(!0)},pull:()=>{Q(!1)}}),[ie]);c.useEffect(()=>{o?ae?.push?.():ae?.pull?.()},[o]),c.useEffect(()=>()=>{ae?.pull?.()},[]);const oe=c.createElement(wr,Wi({key:"mask"},_,{visible:O&&o}),({className:qe,style:tt},Xe)=>c.createElement("div",{className:K(`${n}-mask`,qe,g?.mask,L),style:{...tt,...A,...k?.mask},onClick:P&&o?V:void 0,ref:Xe})),re=typeof w=="function"?w(s):w,[pe,ve]=c.useState(),Ce=s==="left"||s==="right",he=c.useMemo(()=>qg(N??(Ce?R:E)??pe??Y??(Ce?378:void 0)),[N,R,E,Y,Ce,pe]),te=c.useMemo(()=>{const qe={};if(ee&&ie)switch(s){case"top":qe.transform=`translateY(${ie}px)`;break;case"bottom":qe.transform=`translateY(${-ie}px)`;break;case"left":qe.transform=`translateX(${ie}px)`;break;default:qe.transform=`translateX(${-ie}px)`;break}return Ce?qe.width=qg(he):qe.height=qg(he),qe},[ee,ie,s,Ce,he]),Se=c.useRef(null),Te=!!D,Ee=typeof D=="object"&&D||{},Le=wt(qe=>{ve(qe),Ee.onResize?.(qe)}),{dragElementProps:Pe,isDragging:ye}=sH({prefixCls:`${n}-resizable`,direction:s,className:g?.dragger,style:k?.dragger,maxSize:M,containerRef:Se,currentSize:he,onResize:Le,onResizeStart:Ee.onResizeStart,onResizeEnd:Ee.onResizeEnd}),Ie={onMouseEnter:Z,onMouseOver:W,onMouseLeave:H,onClick:q,onKeyDown:U,onKeyUp:J,onFocus:qe=>{X(qe.target)}},De=c.createElement(wr,Wi({key:"panel"},re,{visible:o,forceRender:m,onVisibleChanged:B,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:qe,style:tt},Xe)=>{const He=c.createElement(aH,Wi({id:C,containerRef:Xe,prefixCls:n,className:K($,g?.section),style:{...j,...k?.section}},br(e,{aria:!0}),Ie),T);return c.createElement("div",Wi({ref:Se,className:K(`${n}-content-wrapper`,ye&&`${n}-content-wrapper-dragging`,g?.wrapper,!ye&&qe),style:{...tt,...te,...k?.wrapper}},br(e,{data:!0})),Te&&c.createElement("div",Pe),I?I(He):He)}),Me={...y};return S&&(Me.zIndex=S),c.createElement(UE.Provider,{value:fe},c.createElement("div",{className:K(n,`${n}-${s}`,b,{[`${n}-open`]:o,[`${n}-inline`]:i}),style:Me,tabIndex:-1,ref:G},oe,De))},cH=c.forwardRef(lH),uH=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:o="right",autoFocus:s=!0,keyboard:i=!0,width:u,height:m,size:h,maxSize:p,mask:g=!0,maskClosable:b=!0,getContainer:y,forceRender:S,afterOpenChange:$,destroyOnHidden:C,onMouseEnter:j,onMouseOver:w,onMouseLeave:R,onClick:E,onKeyDown:N,onKeyUp:M,onClose:T,resizable:O,defaultSize:P,focusTriggerAfterClose:_,panelRef:L}=e,[A,B]=c.useState(!1),[V,Z]=c.useState(!1);xn(()=>{Z(!0)},[]);const W=V?t:!1,H=c.useRef(null),q=c.useRef(null);xn(()=>{W&&(q.current=document.activeElement)},[W]);const U=Y=>{B(Y),$?.(Y),!Y&&_!==!1&&q.current&&!H.current?.contains(q.current)&&q.current?.focus({preventScroll:!0})},J=c.useMemo(()=>({panel:L}),[L]);if(!S&&!A&&!W&&C)return null;const I={...e,open:W,prefixCls:n,placement:o,autoFocus:s,keyboard:i,width:u,height:m,size:h,maxSize:p,defaultSize:P,mask:g,maskClosable:b,inline:y===!1,afterOpenChange:U,ref:H,resizable:O,...{onMouseEnter:j,onMouseOver:w,onMouseLeave:R,onClick:E,onKeyDown:N,onKeyUp:M}},D=({top:Y,event:G})=>{Y&&i&&(G.stopPropagation(),T?.(G))};return c.createElement(uM.Provider,{value:J},c.createElement(Yc,{open:W||S||A,autoDestroy:!1,getContainer:y,autoLock:g&&(W||A),onEsc:D},c.createElement(cH,I)))},dM=e=>{const{prefixCls:t,ariaId:n,title:o,footer:s,extra:i,closable:u,loading:m,onClose:h,headerStyle:p,bodyStyle:g,footerStyle:b,children:y,classNames:S,styles:$}=e,C=en("drawer"),{classNames:j,styles:w,closable:R}=C,[E,N]=sn([j,S],[w,$],{props:{...e,closable:u??R}}),M=c.useMemo(()=>{const A=u??R;if(A!==!1)return Ot(A)&&A?.placement==="end"?"end":"start"},[u,R]),T=c.useCallback(A=>c.createElement("button",{type:"button",onClick:h,className:K(`${t}-close`,{[`${t}-close-${M}`]:M==="end"},E.close),style:N.close},A),[h,t,M,E.close,N.close]),[O,P]=ny(os(e),os(C),{closable:!0,closeIconRender:T}),_=()=>!o&&!O?null:c.createElement("div",{style:{...N.header,...p},className:K(`${t}-header`,E.header,{[`${t}-header-close-only`]:O&&!o&&!i})},c.createElement("div",{className:`${t}-header-title`},M==="start"&&P,o&&c.createElement("div",{className:K(`${t}-title`,E.title),style:N.title,id:n},o)),i&&c.createElement("div",{className:K(`${t}-extra`,E.extra),style:N.extra},i),M==="end"&&P),L=()=>s?c.createElement("div",{className:K(`${t}-footer`,E.footer),style:{...N.footer,...b}},s):null;return c.createElement(c.Fragment,null,_(),c.createElement("div",{className:K(`${t}-body`,E.body),style:{...N.body,...g}},m?c.createElement(Sr,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),L())},dH=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},fM=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),mM=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...fM({opacity:e},{opacity:1})}),fH=(e,t)=>[mM(.7,t),fM({transform:dH(e)},{transform:"none"})],mH=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:mM(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((o,s)=>({...o,[`&-${s}`]:fH(s,n)}),{})}}},pH=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:o,colorBgMask:s,colorBgElevated:i,motionDurationSlow:u,motionDurationMid:m,paddingXS:h,padding:p,paddingLG:g,fontSizeLG:b,lineHeightLG:y,lineWidth:S,lineType:$,colorSplit:C,marginXS:j,colorIcon:w,colorIconHover:R,colorBgTextHover:E,colorBgTextActive:N,colorText:M,fontWeightStrong:T,footerPaddingBlock:O,footerPaddingInline:P,draggerSize:_,calc:L}=e,A=`${n}-content-wrapper`,B=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:o,pointerEvents:"none",color:M,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:o,background:s,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[A]:{position:"absolute",zIndex:o,maxWidth:"100vw",transition:`all ${u}`,"&-hidden":{display:"none"}},[`&-left > ${A}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${A}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${A}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${A}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${le(p)} ${le(g)}`,fontSize:b,lineHeight:y,borderBottom:`${le(S)} ${$} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:L(b).add(h).equal(),height:L(b).add(h).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:w,fontWeight:T,fontSize:b,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${m}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:j},[`&:not(${n}-close-end)`]:{marginInlineEnd:j},"&:hover":{color:R,backgroundColor:E,textDecoration:"none"},"&:active":{backgroundColor:N},...qo(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:b,lineHeight:y},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${le(O)} ${le(P)}`,borderTop:`${le(S)} ${$} ${C}`},[B]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${B}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:_,cursor:"col-resize"},[`${B}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:_,cursor:"col-resize"},[`${B}-top`]:{insetInline:0,bottom:0,height:_,cursor:"row-resize"},[`${B}-bottom`]:{insetInline:0,top:0,height:_,cursor:"row-resize"},[`${A}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},hH=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),pM=an("Drawer",e=>{const t=rn(e,{});return[pH(t),mH(t)]},hH),gH={distance:180},GE=378,XE={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},hM=e=>{const{rootClassName:t,size:n,defaultSize:o=GE,height:s,width:i,mask:u,push:m=gH,open:h,afterOpenChange:p,onClose:g,prefixCls:b,getContainer:y,panelRef:S=null,style:$,className:C,resizable:j,"aria-labelledby":w,focusable:R,maskClosable:E,maskStyle:N,drawerStyle:M,contentWrapperStyle:T,destroyOnClose:O,destroyOnHidden:P,..._}=e,{placement:L}=_,A=ya(),B=_.title?A:void 0,{getPopupContainer:V,getPrefixCls:Z,direction:W,className:H,style:q,classNames:U,styles:J,mask:k,focusable:I}=en("drawer"),D=Z("drawer",b),[Y,G]=pM(D),X=y===void 0&&V?()=>V(document.body):y,ee=c.useMemo(()=>$r(n)?n:n==="large"?736:n==="default"?GE:typeof n=="string"?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!L||L==="left"||L==="right"?i:s,[n,L,i,s]),Q={motionName:Wo(D,"mask-motion"),...XE},ae=ye=>({motionName:Wo(D,`panel-motion-${ye}`),...XE}),se=x4(),ie=Er(S,se),[fe,oe]=Zc("Drawer",_.zIndex),[re,pe,ve]=Bj(u,k,D,E),Ce=b4({...I,...R},X!==!1&&re),{classNames:he,styles:te,rootStyle:Se}=_,Te={...e,zIndex:fe,panelRef:S,mask:re,maskClosable:ve,defaultSize:o,push:m,focusable:Ce},[Ee,Le]=sn([U,he],[J,te],{props:Te}),Pe=K({"no-mask":!re,[`${D}-rtl`]:W==="rtl"},t,Y,G,Ee.root);return c.createElement(nl,{form:!0,space:!0},c.createElement(Tm.Provider,{value:oe},c.createElement(uH,{prefixCls:D,onClose:g,maskMotion:Q,motion:ae,..._,classNames:{mask:K(Ee.mask,pe.mask),section:Ee.section,wrapper:Ee.wrapper,dragger:Ee.dragger},styles:{mask:{...Le.mask,...N},section:{...Le.section,...M},wrapper:{...Le.wrapper,...T},dragger:Le.dragger},open:h,mask:re,maskClosable:ve,push:m,size:ee,defaultSize:o,style:{...q,...$},rootStyle:{...Se,...Le.root},className:K(H,C),rootClassName:Pe,getContainer:X,afterOpenChange:p,panelRef:ie,zIndex:fe,...j?{resizable:j}:{},"aria-labelledby":w??B,destroyOnHidden:P??O,focusTriggerAfterClose:Ce.focusTriggerAfterClose,focusTrap:Ce.trap},c.createElement(dM,{prefixCls:D,size:n,..._,ariaId:B,onClose:g}))))},bH=e=>{const{prefixCls:t,style:n,className:o,placement:s="right",...i}=e,{getPrefixCls:u}=c.useContext(vt),m=u("drawer",t),[h,p]=pM(m),g=K(m,`${m}-pure`,`${m}-${s}`,h,p,o);return c.createElement("div",{className:g,style:n},c.createElement(dM,{prefixCls:m,...i}))};hM._InternalPanelDoNotUseOrYouWillBeFired=bH;function KE(e){return["small","middle","medium","large"].includes(e)}function YE(e){return e?$r(e):!1}const gM=ue.createContext({latestIndex:0}),vH=gM.Provider,yH=e=>{const{className:t,prefix:n,index:o,children:s,separator:i,style:u,classNames:m,styles:h}=e,{latestIndex:p}=c.useContext(gM);return ar(s)?c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:u},s),o<p&&i&&c.createElement("span",{className:K(`${n}-item-separator`,m?.separator),style:h?.separator},i)):null},xH=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},SH=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}}}},CH=an("Space",e=>{const t=rn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[xH(t),SH(t)]},()=>({}),{resetStyle:!1}),$H=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,size:s,className:i,style:u,classNames:m,styles:h}=en("space"),{size:p=s??"small",align:g,className:b,rootClassName:y,children:S,direction:$,orientation:C,prefixCls:j,split:w,separator:R,style:E,vertical:N,wrap:M=!1,classNames:T,styles:O,...P}=e,[_,L]=Array.isArray(p)?p:[p,p],A=KE(L),B=KE(_),V=YE(L),Z=YE(_),W=kr(S,{keepEmpty:!0}),[H,q]=Dj(C,N,$),U=g===void 0&&!q?"center":g,J=R??w,k=n("space",j),[I,D]=CH(k),Y={...e,size:p,orientation:H,align:U},[G,X]=sn([m,T],[h,O],{props:Y}),ee=K(k,i,I,`${k}-${H}`,{[`${k}-rtl`]:o==="rtl",[`${k}-align-${U}`]:U,[`${k}-gap-row-${L}`]:A,[`${k}-gap-col-${_}`]:B},b,y,D,G.root),Q=K(`${k}-item`,G.item),ae=W.map((fe,oe)=>{const re=fe?.key||`${Q}-${oe}`;return c.createElement(yH,{prefix:k,classNames:G,styles:X,className:Q,key:re,index:oe,separator:J,style:X.item},fe)}),se=c.useMemo(()=>({latestIndex:W.reduce((oe,re,pe)=>ar(re)?pe:oe,0)}),[W]);if(W.length===0)return null;const ie={};return M&&(ie.flexWrap="wrap"),!B&&Z&&(ie.columnGap=_),!A&&V&&(ie.rowGap=L),c.createElement("div",{ref:t,className:ee,style:{...ie,...X.root,...u,...E},...P},c.createElement(vH,{value:se},ae))}),_y=$H;_y.Compact=Xj;_y.Addon=XD;var Ud={},QE;function wH(){if(QE)return Ud;QE=1,Object.defineProperty(Ud,"__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 Ud.default=e,Ud}var EH=wH();const NH=jt(EH);function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zv.apply(this,arguments)}const jH=(e,t)=>c.createElement(It,Zv({},e,{ref:t,icon:NH})),By=c.forwardRef(jH),RH=(e,t)=>ar(e)?Ot(e)&&!c.isValidElement(e)?{...t,...e}:{...t,title:e}:null;function dm(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const o=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(o)}},[e]),t}const MH=e=>{const{componentCls:t,motionDurationFast:n,motionEaseInOut:o}=e,s=`${t}-show-help`,i=`${t}-show-help-item`;return{[s]:{transition:`opacity ${n} ${o}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[i]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(u=>`${u} ${n} ${o}`).join(", ")} !important`,[`&${i}-appear, &${i}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${i}-leave-active`]:{transform:"translateY(-5px)"}}}}},TH=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ZE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},OH=e=>{const{componentCls:t}=e;return{[t]:{...Ln(e),...TH(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...ZE(e,e.controlHeightSM)},"&-large":{...ZE(e,e.controlHeightLG)}}}},zH=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:o,antCls:s,labelRequiredMarkColor:i,labelColor:u,labelFontSize:m,labelHeight:h,labelColonMarginInlineStart:p,labelColonMarginInlineEnd:g,itemMarginBottom:b}=e,[y]=on(s,"grid");return{[t]:{...Ln(e),marginBottom:b,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
238
|
-
&-hidden${s}-row`]:{display:"none"},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:h,color:u,fontSize:m,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:p,marginInlineEnd:g},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[y("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${s}-switch:only-child, > ${s}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:dy,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Os=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),AH=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
239
|
-
${t}-col-xl-24${n}-label`]:Os(e)}}},IH=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:o}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:o,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
240
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},PH=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:Os(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},LH=e=>{const{componentCls:t,formItemCls:n,antCls:o,verticalLabelHeight:s}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:s},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
241
|
-
${o}-col-24${n}-label,
|
|
242
|
-
${o}-col-xl-24${n}-label`]:Os(e)},[`@media (max-width: ${le(e.screenXSMax)})`]:[PH(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-xs-24${n}-label`]:Os(e)}}}],[`@media (max-width: ${le(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-sm-24${n}-label`]:Os(e)}}},[`@media (max-width: ${le(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-md-24${n}-label`]:Os(e)}}},[`@media (max-width: ${le(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-lg-24${n}-label`]:Os(e)}}}}},_H=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),bM=(e,t)=>rn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Dy=an("Form",(e,{rootPrefixCls:t})=>{const n=bM(e,t);return[OH(n),zH(n),MH(n),AH(n),IH(n),LH(n),Zj(n),dy]},_H,{order:-1e3}),JE=[];function Wg(e,t,n,o=0){return{key:typeof e=="string"?e:`${t}-${o}`,error:e,errorStatus:n}}const vM=({help:e,helpStatus:t,errors:n=JE,warnings:o=JE,className:s,fieldId:i,onVisibleChanged:u})=>{const{prefixCls:m}=c.useContext(hy),{classNames:h,styles:p}=c.useContext(Uo),g=`${m}-item-explain`,b=Rr(m),[y,S]=Dy(m,b),$=c.useMemo(()=>tv(m),[m]),C=dm(n),j=dm(o),w=Un(e),R=c.useMemo(()=>w?[Wg(e,"help",t)]:[].concat(Rn(C.map((M,T)=>Wg(M,"error","error",T))),Rn(j.map((M,T)=>Wg(M,"warning","warning",T)))),[e,t,w,C,j]),E=c.useMemo(()=>{const M={};return R.forEach(({key:T})=>{M[T]=(M[T]||0)+1}),R.map((T,O)=>({...T,key:M[T.key]>1?`${T.key}-fallback-${O}`:T.key}))},[R]),N={};return i&&(N.id=`${i}_help`),c.createElement(wr,{motionDeadline:$.motionDeadline,motionName:`${m}-show-help`,visible:!!E.length,onVisibleChanged:u},M=>{const{className:T,style:O}=M;return c.createElement("div",{...N,className:K(g,T,h?.help,S,b,s,y),style:{...p?.help,...O}},c.createElement(sj,{keys:E,...tv(m),motionName:`${m}-show-help-item`,component:!1},P=>{const{key:_,error:L,errorStatus:A,className:B,style:V}=P;return c.createElement("div",{key:_,className:K(B,h?.helpItem,{[`${g}-${A}`]:A}),style:{...p?.helpItem,...V}},L)}))})},BH=(e,t)=>{const n=c.useContext(no),{getPrefixCls:o,direction:s,requiredMark:i,colon:u,scrollToFirstError:m,className:h,style:p,styles:g,classNames:b,tooltip:y,labelAlign:S,labelWrap:$}=en("form"),{prefixCls:C,className:j,rootClassName:w,size:R,disabled:E=n,form:N,colon:M,labelAlign:T,labelWrap:O,labelCol:P,wrapperCol:_,layout:L="horizontal",scrollToFirstError:A,requiredMark:B,onFinishFailed:V,name:Z,style:W,feedbackIcons:H,variant:q,classNames:U,styles:J,tooltip:k,...I}=e,D=Mr(R),Y=c.useContext(uj),G=c.useMemo(()=>B!==void 0?B:i!==void 0?i:!0,[B,i]),X=M??u,ee=T??S,Q=O??$,ae={...y,...k},se=o("form",C),ie=Rr(se),[fe,oe]=Dy(se,ie),re={...e,size:D,disabled:E,layout:L,colon:X,requiredMark:G,labelAlign:ee,labelWrap:Q},pe=dn(p),ve=dn(W),[Ce,he]=sn([b,U],[g,pe,J,ve],{props:re}),te=K(se,`${se}-${L}`,{[`${se}-hide-required-mark`]:G===!1,[`${se}-rtl`]:s==="rtl",[`${se}-large`]:D==="large",[`${se}-small`]:D==="small"},oe,ie,fe,h,j,w,Ce.root),[Se]=FR(N),{__INTERNAL__:Te}=Se;Te.name=Z;const Ee=c.useMemo(()=>({name:Z,labelAlign:ee,labelCol:P,labelWrap:Q,wrapperCol:_,layout:L,colon:X,requiredMark:G,itemRef:Te.itemRef,form:Se,feedbackIcons:H,tooltip:ae,classNames:Ce,styles:he}),[Z,ee,Q,P,_,L,X,G,Se,H,Ce,he,ae]),Le=c.useRef(null);c.useImperativeHandle(t,()=>({...Se,nativeElement:Le.current?.nativeElement}));const Pe=(Ie,De)=>{if(Ie){let Me={block:"nearest"};Ot(Ie)&&(Me={...Me,...Ie}),Se.scrollToField(De,Me)}},ye=Ie=>{if(V?.(Ie),Ie.errorFields.length){const De=Ie.errorFields[0].name;if(A!==void 0){Pe(A,De);return}m!==void 0&&Pe(m,De)}};return c.createElement(g4.Provider,{value:q},c.createElement(ty,{disabled:E},c.createElement(Vs.Provider,{value:D},c.createElement(p4,{validateMessages:Y},c.createElement(Uo.Provider,{value:Ee},c.createElement(h4,{status:!0},c.createElement(ul,{id:Z,...I,name:Z,onFinishFailed:ye,form:Se,ref:Le,style:he?.root,className:te})))))))},DH=c.forwardRef(BH),HH=e=>{if(Ht(e))return e;const t=kr(e);return t.length<=1?t[0]:t},yM=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(ro);return{status:e,errors:t,warnings:n}};yM.Context=ro;function FH(e){const[t,n]=c.useState(e),o=c.useRef(null),s=c.useRef([]),i=c.useRef(!1);c.useEffect(()=>(i.current=!1,()=>{i.current=!0,nn.cancel(o.current),o.current=null}),[]);function u(m){i.current||(o.current===null&&(s.current=[],o.current=nn(()=>{o.current=null,n(h=>{let p=h;return s.current.forEach(g=>{p=g(p)}),p})})),s.current.push(m))}return[t,u]}const kH=()=>{const{itemRef:e}=c.useContext(Uo),t=c.useRef({});return(o,s)=>{const i=s&&Ot(s)&&ss(s),u=o.join("_");return(t.current.name!==u||t.current.originRef!==i)&&(t.current.name=u,t.current.originRef=i,t.current.ref=Er(e(o),i)),t.current.ref}},VH=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},qH=Xs(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=bM(e,t);return VH(n)}),WH=24,UH=e=>{const{prefixCls:t,status:n,labelCol:o,wrapperCol:s,children:i,errors:u,warnings:m,_internalItemRender:h,extra:p,help:g,fieldId:b,marginBottom:y,onErrorVisibleChanged:S,label:$}=e,C=`${t}-item`,j=c.useContext(Uo),{classNames:w,styles:R}=j,E=c.useMemo(()=>{let H={...s||j.wrapperCol||{}};return $===null&&!o&&!s&&j.labelCol&&[void 0].concat(Rn(sR)).forEach(U=>{const J=U?[U]:[],k=Hr(j.labelCol,J),I=Ot(k)?k:{},D=Hr(H,J),Y=Ot(D)?D:{};"span"in I&&!("offset"in Y)&&I.span<WH&&(H=Br(H,[].concat(J,["offset"]),I.span))}),H},[s,j.wrapperCol,j.labelCol,$,o]),N=K(`${C}-control`,E.className),M=c.useMemo(()=>{const{labelCol:H,wrapperCol:q,...U}=j;return U},[j]),T=c.useRef(null),[O,P]=c.useState(0);xn(()=>{p&&T.current?P(T.current.clientHeight):P(0)},[p]);const _=c.createElement("div",{className:`${C}-control-input`},c.createElement("div",{className:K(`${C}-control-input-content`,w?.content),style:R?.content},i)),L=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),A=y!==null||u.length||m.length?c.createElement(hy.Provider,{value:L},c.createElement(vM,{fieldId:b,errors:u,warnings:m,help:g,helpStatus:n,className:`${C}-explain-connected`,onVisibleChanged:S})):null,B={};b&&(B.id=`${b}_extra`);const V=p?c.createElement("div",{...B,className:K(`${C}-extra`,w?.extra),style:R?.extra,ref:T},p):null,Z=A||V?c.createElement("div",{className:`${C}-additional`,style:y?{minHeight:y+O}:{}},A,V):null,W=h&&h.mark==="pro_table_render"&&h.render?h.render(e,{input:_,errorList:A,extra:V}):c.createElement(c.Fragment,null,_,Z);return c.createElement(Uo.Provider,{value:M},c.createElement(rM,{...E,className:N},W),c.createElement(qH,{prefixCls:t}))};var Gd={},e2;function GH(){if(e2)return Gd;e2=1,Object.defineProperty(Gd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};return Gd.default=e,Gd}var XH=GH();const KH=jt(XH);function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jv.apply(this,arguments)}const YH=(e,t)=>c.createElement(It,Jv({},e,{ref:t,icon:KH})),QH=c.forwardRef(YH),ZH=({prefixCls:e,label:t,htmlFor:n,labelCol:o,labelAlign:s,colon:i,required:u,requiredMark:m,tooltip:h,vertical:p})=>{const[g]=Sa("Form"),{labelAlign:b,labelCol:y,labelWrap:S,colon:$,classNames:C,styles:j,tooltip:w}=c.useContext(Uo);if(!t)return null;const R=o||y||{},E=s||b,N=`${e}-item-label`,M=K(N,E==="left"&&`${N}-left`,R.className,{[`${N}-wrap`]:!!S});let T=t;const O=i===!0||$!==!1&&i!==!1;O&&!p&&typeof t=="string"&&t.trim()&&(T=t.replace(/[:|:]\s*$/,""));const _=RH(h,w);if(_){const W=c.createElement(Wn,{..._},c.createElement("span",{className:`${e}-item-tooltip`,onClick:H=>{H.preventDefault()},tabIndex:-1},_.icon||_.children||c.createElement(QH,null)));T=c.createElement(c.Fragment,null,T,W)}const L=m==="optional",A=Ht(m),B=m===!1;A?T=m(T,{required:!!u}):L&&!u&&(T=c.createElement(c.Fragment,null,T,c.createElement("span",{className:`${e}-item-optional`},g?.optional||va.Form?.optional)));let V;B?V="hidden":(L||A)&&(V="optional");const Z=K(C?.label,{[`${e}-item-required`]:u,[`${e}-item-required-mark-${V}`]:V,[`${e}-item-no-colon`]:!O});return c.createElement(rM,{...R,className:M},c.createElement("label",{htmlFor:n,className:Z,style:j?.label,title:typeof t=="string"?t:void 0},T))},JH={success:il,warning:Kc,error:is,validating:ll};function xM({children:e,errors:t,warnings:n,hasFeedback:o,validateStatus:s,prefixCls:i,meta:u,noStyle:m,name:h}){const p=`${i}-item`,{feedbackIcons:g}=c.useContext(Uo),b=HR(t,n,u,null,!!o,s),{isFormItemInput:y,status:S,hasFeedback:$,feedbackIcon:C,name:j}=c.useContext(ro),w=c.useMemo(()=>{let R;if(o){const N=o!==!0&&o.icons||g,M=b&&N?.({status:b,errors:t,warnings:n})?.[b],T=b?JH[b]:null;R=M!==!1&&T?c.createElement("span",{className:K(`${p}-feedback-icon`,`${p}-feedback-icon-${b}`)},M||c.createElement(T,null)):null}const E={status:b||"",errors:t,warnings:n,hasFeedback:!!o,feedbackIcon:R,isFormItemInput:!0,name:h};return m&&(E.status=(b??S)||"",E.isFormItemInput=y,E.hasFeedback=!!(o??$),E.feedbackIcon=o!==void 0?E.feedbackIcon:C,E.name=h??j),E},[b,o,m,y,S,p,$]);return c.createElement(ro.Provider,{value:w},e)}function eF(e){const{prefixCls:t,className:n,rootClassName:o,style:s,help:i,errors:u,warnings:m,validateStatus:h,meta:p,hasFeedback:g,hidden:b,children:y,fieldId:S,required:$,isRequired:C,onSubItemMetaChange:j,layout:w,name:R,...E}=e,N=`${t}-item`,{requiredMark:M,layout:T}=c.useContext(Uo),O=w||T,P=O==="vertical",_=c.useRef(null),L=dm(u),A=dm(m),B=Un(i),V=!!(B||u.length||m.length),Z=!!_.current&&Sm(_.current),[W,H]=c.useState(null);xn(()=>{if(V&&_.current){const I=getComputedStyle(_.current);H(Number.parseInt(I.marginBottom,10))}},[V,Z]);const q=I=>{I||H(null)},J=((I=!1)=>{const D=I?L:p.errors,Y=I?A:p.warnings;return HR(D,Y,p,"",!!g,h)})(),k=K(N,n,o,{[`${N}-with-help`]:B||L.length||A.length,[`${N}-has-feedback`]:J&&g,[`${N}-has-success`]:J==="success",[`${N}-has-warning`]:J==="warning",[`${N}-has-error`]:J==="error",[`${N}-is-validating`]:J==="validating",[`${N}-hidden`]:b,[`${N}-${O}`]:O});return c.createElement("div",{className:k,style:s,ref:_},c.createElement(WD,{className:`${N}-row`,...Mn(E,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},c.createElement(ZH,{htmlFor:S,...e,requiredMark:M,required:$??C,prefixCls:t,vertical:P}),c.createElement(UH,{...e,...p,errors:L,warnings:A,prefixCls:t,status:J,help:i,marginBottom:W,onErrorVisibleChanged:q},c.createElement(m4.Provider,{value:j},c.createElement(xM,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:g,validateStatus:J,name:R},y)))),!!W&&c.createElement("div",{className:`${N}-margin-offset`,style:{marginBottom:-W}}))}const tF="__SPLIT__";function nF(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(s=>{const i=e[s],u=t[s];return i===u||Ht(i)||Ht(u)})}const rF=c.memo(e=>e.children,(e,t)=>nF(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,o)=>n===t.childProps[o]));function t2(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function oF(e){const{name:t,noStyle:n,className:o,dependencies:s,prefixCls:i,shouldUpdate:u,rules:m,children:h,required:p,label:g,messageVariables:b,trigger:y="onChange",validateTrigger:S,hidden:$,help:C,layout:j}=e,{getPrefixCls:w}=c.useContext(vt),{name:R}=c.useContext(Uo),E=HH(h),N=Ht(E),M=c.useContext(m4),{validateTrigger:T}=c.useContext(qs),O=Un(S)?S:T,P=Un(t),_=w("form",i),L=Rr(_),[A,B]=Dy(_,L),V=c.useContext(_c),Z=c.useRef(null),[W,H]=FH({}),[q,U]=_0(()=>t2()),J=ee=>{const Q=V?.getKey(ee.name);if(U(ee.destroy?t2():ee,!0),n&&C!==!1&&M){let ae=ee.name;if(ee.destroy)ae=Z.current||ae;else if(Q!==void 0){const[se,ie]=Q;ae=[se].concat(Rn(ie)),Z.current=ae}M(ee,ae)}},k=(ee,Q)=>{H(ae=>{const se={...ae},fe=[].concat(Rn(ee.name.slice(0,-1)),Rn(Q)).join(tF);return ee.destroy?delete se[fe]:se[fe]=ee,se})},[I,D]=c.useMemo(()=>{const ee=Rn(q.errors),Q=Rn(q.warnings);return Object.values(W).forEach(ae=>{ee.push.apply(ee,Rn(ae.errors||[])),Q.push.apply(Q,Rn(ae.warnings||[]))}),[ee,Q]},[W,q.errors,q.warnings]),Y=kH();function G(ee,Q,ae){return n&&!$?c.createElement(xM,{prefixCls:_,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:q,errors:I,warnings:D,noStyle:!0,name:t},ee):c.createElement(eF,{key:"row",...e,className:K(o,B,L,A),prefixCls:_,fieldId:Q,isRequired:ae,errors:I,warnings:D,meta:q,onSubItemMetaChange:k,layout:j,name:t},ee)}if(!P&&!N&&!s)return G(E);let X={};return typeof g=="string"?X.label=g:t&&(X.label=String(t)),b&&(X={...X,...b}),c.createElement(my,{...e,messageVariables:X,trigger:y,validateTrigger:O,onMetaChange:J},(ee,Q,ae)=>{const se=wc(t).length&&Q?Q.name:[],ie=DR(se,R),fe=p!==void 0?p:m?.some(pe=>{if(Ot(pe)&&pe.required&&!pe.warningOnly)return!0;if(Ht(pe)){const ve=pe(ae);return ve?.required&&!ve?.warningOnly}return!1}),oe={...ee};let re=null;if(Array.isArray(E)&&P)re=E;else if(!(N&&(!(u||s)||P))){if(!(s&&!N&&!P))if(c.isValidElement(E)){const pe={...E.props,...oe};if(pe.id||(pe.id=ie),C||I.length>0||D.length>0||e.extra){const he=[];(C||I.length>0)&&he.push(`${ie}_help`),e.extra&&he.push(`${ie}_extra`),pe["aria-describedby"]=he.join(" ")}I.length>0&&(pe["aria-invalid"]="true"),fe&&(pe["aria-required"]="true"),Gs(E)&&(pe.ref=Y(se,E)),new Set([].concat(Rn(wc(y)),Rn(wc(O)))).forEach(he=>{pe[he]=(...te)=>{oe[he]?.(...te),E.props[he]?.(...te)}});const Ce=[pe["aria-required"],pe["aria-invalid"],pe["aria-describedby"]];re=c.createElement(rF,{control:oe,update:E,childProps:Ce},Vr(E,pe))}else N&&(u||s)&&!P?re=E(ae):re=E}return G(re,ie,fe)})}const SM=oF;SM.useStatus=yM;const aF=({prefixCls:e,children:t,...n})=>{const{getPrefixCls:o}=c.useContext(vt),s=o("form",e),i=c.useMemo(()=>({prefixCls:s,status:"error"}),[s]);return c.createElement(u4,{...n},(u,m,h)=>c.createElement(hy.Provider,{value:i},t(u.map(p=>({...p,fieldKey:p.key})),m,{errors:h.errors,warnings:h.warnings})))};function sF(){const{form:e}=c.useContext(Uo);return e}const Fn=DH;Fn.Item=SM;Fn.List=aF;Fn.ErrorList=vM;Fn.useForm=FR;Fn.useFormInstance=sF;Fn.useWatch=f4;Fn.Provider=p4;const iF=e=>{const{getPrefixCls:t,direction:n}=c.useContext(vt),{prefixCls:o,className:s}=e,i=t("input-group",o),u=t("input"),[m,h]=QR(u),p=K(i,h,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},m,s),g=c.useContext(ro),b=c.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return c.createElement(ro.Provider,{value:b},c.createElement(_y.Compact,{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},lF=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::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}}}},cF=an(["Input","OTP"],e=>{const t=rn(e,ou(e));return lF(t)},au),uF=c.forwardRef((e,t)=>{const{className:n,value:o,onChange:s,onActiveChange:i,index:u,mask:m,onFocus:h,...p}=e,{getPrefixCls:g}=c.useContext(vt),b=g("otp"),y=typeof m=="string"?m:o,S=c.useRef(null);c.useImperativeHandle(t,()=>S.current);const $=R=>{s(u,R.target.value)},C=()=>{nn(()=>{const R=S.current?.input;document.activeElement===R&&R&&R.select()})},j=R=>{h?.(R),C()},w=R=>{const{key:E,ctrlKey:N,metaKey:M}=R;E==="ArrowLeft"?i(u-1):E==="ArrowRight"?i(u+1):E==="z"&&(N||M)?R.preventDefault():E==="Backspace"&&!o&&i(u-1),C()};return c.createElement("span",{className:`${b}-input-wrapper`,role:"presentation"},m&&o!==""&&o!==void 0&&c.createElement("span",{className:`${b}-mask-icon`,"aria-hidden":"true"},y),c.createElement(Vm,{"aria-label":`OTP Input ${u+1}`,type:m===!0?"password":"text",...p,ref:S,value:o,onInput:$,onFocus:j,onKeyDown:w,onMouseDown:C,onMouseUp:C,className:K(n,{[`${b}-mask-input`]:m})}))});function Xd(e){return(e||"").split("")}const dF=e=>{const{index:t,prefixCls:n,separator:o,className:s,style:i}=e,u=Ht(o)?o(t):o;return u?c.createElement("span",{className:K(`${n}-separator`,s),style:i},u):null},fF=c.forwardRef((e,t)=>{const{prefixCls:n,length:o=6,size:s,defaultValue:i,value:u,onChange:m,formatter:h,separator:p,variant:g,disabled:b,status:y,autoFocus:S,mask:$,type:C,autoComplete:j,onInput:w,onFocus:R,inputMode:E,classNames:N,styles:M,className:T,style:O,...P}=e,{classNames:_,styles:L,getPrefixCls:A,direction:B,style:V,className:Z}=en("otp"),W=A("otp",n),H={...e,length:o},q=dn(V),U=dn(O),[J,k]=sn([_,N],[L,q,M,U],{props:H}),I=br(P,{aria:!0,data:!0,attr:!0}),[D,Y]=cF(W),G=Mr(Se=>s??Se),X=c.useContext(ro),ee=_m(X.status,y),Q=c.useMemo(()=>({...X,status:ee,hasFeedback:!1,feedbackIcon:null}),[X,ee]),ae=c.useRef(null),se=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{se.current[0]?.focus()},blur:()=>{for(let Se=0;Se<o;Se+=1)se.current[Se]?.blur()},nativeElement:ae.current}));const ie=Se=>h?h(Se):Se,[fe,oe]=c.useState(()=>Xd(ie(i||"")));c.useEffect(()=>{u!==void 0&&oe(Xd(u))},[u]);const re=wt(Se=>{oe(Se),w&&w(Se),m&&Se.length===o&&Se.every(Te=>Te)&&Se.some((Te,Ee)=>fe[Ee]!==Te)&&m(Se.join(""))}),pe=wt((Se,Te)=>{let Ee=Rn(fe);for(let Pe=0;Pe<Se;Pe+=1)Ee[Pe]||(Ee[Pe]="");Te.length<=1?Ee[Se]=Te:Ee=Ee.slice(0,Se).concat(Xd(Te)),Ee=Ee.slice(0,o);for(let Pe=Ee.length-1;Pe>=0&&!Ee[Pe];Pe-=1)Ee.pop();const Le=ie(Ee.map(Pe=>Pe||" ").join(""));return Ee=Xd(Le).map((Pe,ye)=>Pe===" "&&!Ee[ye]?Ee[ye]:Pe),Ee}),ve=(Se,Te)=>{const Ee=pe(Se,Te),Le=Math.min(Se+Te.length,o-1);Le!==Se&&Ee[Se]!==void 0&&se.current[Le]?.focus(),re(Ee)},Ce=Se=>{se.current[Se]?.focus()},he=(Se,Te)=>{for(let Ee=0;Ee<Te;Ee+=1)if(!se.current[Ee]?.input?.value){se.current[Ee]?.focus();break}R?.(Se)},te={variant:g,disabled:b,status:ee,mask:$,type:C,inputMode:E,autoComplete:j};return c.createElement("div",{...I,ref:ae,className:K(T,W,{[`${W}-sm`]:G==="small",[`${W}-lg`]:G==="large",[`${W}-rtl`]:B==="rtl"},Y,D,Z,J.root),style:k.root,role:"group"},c.createElement(ro.Provider,{value:Q},Array.from({length:o}).map((Se,Te)=>{const Ee=`otp-${Te}`,Le=fe[Te]||"";return c.createElement(c.Fragment,{key:Ee},c.createElement(uF,{ref:Pe=>{se.current[Te]=Pe},index:Te,size:G,htmlSize:1,className:K(J.input,`${W}-input`),style:k.input,onChange:ve,value:Le,onActiveChange:Ce,autoFocus:Te===0&&S,onFocus:Pe=>he(Pe,Te),...te}),Te<o-1&&c.createElement(dF,{separator:p,index:Te,prefixCls:W,className:K(J.separator),style:k.separator}))})))});var Kd={},n2;function mF(){if(n2)return Kd;n2=1,Object.defineProperty(Kd,"__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 Kd.default=e,Kd}var pF=mF();const hF=jt(pF);function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e0.apply(this,arguments)}const gF=(e,t)=>c.createElement(It,e0({},e,{ref:t,icon:hF})),bF=c.forwardRef(gF);var Yd={},r2;function vF(){if(r2)return Yd;r2=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:"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 Yd.default=e,Yd}var yF=vF();const xF=jt(yF);function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t0.apply(this,arguments)}const SF=(e,t)=>c.createElement(It,t0({},e,{ref:t,icon:xF})),CF=c.forwardRef(SF),$F=e=>e?c.createElement(CF,null):c.createElement(bF,null),wF={click:"onClick",hover:"onMouseOver"},EF=c.forwardRef((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:s=!0,iconRender:i,prefixCls:u,inputPrefixCls:m,suffix:h,className:p,style:g,classNames:b,styles:y,...S}=e,{getPrefixCls:$,className:C,style:j,classNames:w,styles:R,iconRender:E}=en("inputPassword"),[N]=Sa("global"),M=c.useContext(no),T=n??M,O={...e,disabled:T},[P,_]=sn([w,b],[R,y],{props:O}),L=Ot(s)&&s.visible!==void 0,[A,B]=c.useState(()=>L?s.visible:!1),V=c.useRef(null);c.useEffect(()=>{L&&B(s.visible)},[L,s]);const Z=cM(V),W=()=>{if(T)return;A&&Z();const D=!A;B(D),Ot(s)&&s.onVisibleChange?.(D)},H=D=>{const Y=wF[o]||"",X=(i||E||$F)(A),ee=Ot(s)?s.tabIndex:void 0;return c.createElement("span",{key:"passwordIcon",role:"button",tabIndex:T?-1:ee??0,className:`${D}-icon`,"aria-disabled":T,"aria-pressed":A,"aria-label":A?N.hide:N.show,onMouseDown:Q=>{Q.preventDefault()},onMouseUp:Q=>{Q.preventDefault()},onKeyDown:Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),W())},[Y]:W},X)},q=$("input",m),U=$("input-password",u),J=s&&H(U),k=K(U,C,p,{[`${U}-${e.size}`]:!!e.size}),I={...S,type:A?"text":"password",prefixCls:q,suffix:c.createElement(c.Fragment,null,J,h),disabled:T,className:k,style:{...j,...g},classNames:P,styles:_};return c.createElement(Vm,{ref:Er(t,V),...I})}),NF=e=>{const{componentCls:t,antCls:n,calc:o,max:s}=e,i=`${t}-btn`,[u,m]=on(n,"input-search"),h=e.inputFontSizeSM??e.fontSize,p=s(e.controlHeightSM,o(h).mul(e.lineHeight).add(o(e.paddingBlockSM).mul(2)).add(o(e.lineWidth).mul(2)).equal());return{[t]:{[u("btn-height")]:le(e.controlHeight),width:"100%",[i]:{height:m("btn-height"),"&:focus-visible":{zIndex:5},[`&${n}-btn-icon-only`]:{width:m("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[u("btn-height")]:le(e.controlHeightLG)},[`&${t}-small`]:{[u("btn-height")]:le(e.controlHeightSM)},[`&${t}-small ${i}`]:{minHeight:p,[`&${e.antCls}-btn-icon-only`]:{minWidth:p}}}}},jF=an(["Input","Search"],e=>{const t=rn(e,ou(e));return NF(t)},au),RF=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:s,size:i,style:u,enterButton:m=!1,searchIcon:h,addonAfter:p,loading:g,disabled:b,onSearch:y,onChange:S,onCompositionStart:$,onCompositionEnd:C,variant:j,onPressEnter:w,classNames:R,styles:E,hidden:N,...M}=e,{direction:T,getPrefixCls:O,className:P,style:_,classNames:L,styles:A,searchIcon:B}=en("inputSearch"),V=c.useContext(no),Z=b??V,W={...e,enterButton:m},[H,q]=sn([L,R],[A,E],{props:W},{button:{_default:"root"}}),U=c.useRef(!1),J=O("input-search",n),k=O("input",o),[I,D]=jF(J),{compactSize:Y}=cl(J,T),G=Mr(Ee=>i??Y??Ee),X=c.useRef(null),ee=Ee=>{Ee?.target&&Ee.type==="click"&&y&&y(Ee.target.value,Ee,{source:"clear"}),S?.(Ee)},Q=Ee=>{document.activeElement===X.current?.input&&Ee.preventDefault()},ae=Ee=>{y&&y(X.current?.input?.value,Ee,{source:"input"})},se=Ee=>{U.current||g||(w?.(Ee),ae(Ee))},ie=typeof m=="boolean"?vo(h,B,c.createElement(Ys,null)):null,fe=`${J}-btn`,oe=K(fe,{[`${fe}-${j}`]:j});let re;const pe=m||{},ve=pe.type&&pe.type.__ANT_BUTTON===!0;if(ve||pe.type==="button"){const Ee=pe.props;re=Vr(pe,{disabled:Z||Ee.disabled||!ve&&g,onMouseDown:Q,onClick:Le=>{pe?.props?.onClick?.(Le),ae(Le)},key:"enterButton",...ve?{className:K(oe,Ee.className),loading:g||Ee.loading,size:G}:{}})}else re=c.createElement(pt,{classNames:H.button,styles:q.button,className:oe,color:m?"primary":"default",size:G,disabled:b,key:"enterButton",onMouseDown:Q,onClick:ae,loading:g,icon:ie,variant:j==="borderless"||j==="filled"||j==="underlined"?"text":m?"solid":void 0},m);p&&(re=[re,Vr(p,{key:"addonAfter"})]);const Ce=K(J,D,{[`${J}-rtl`]:T==="rtl",[`${J}-${G}`]:!!G,[`${J}-with-button`]:!!m},s,P,I,H.root),he=Ee=>{U.current=!0,$?.(Ee)},te=Ee=>{U.current=!1,C?.(Ee)},Se=br(M,{data:!0}),Te=Mn({...M,classNames:Mn(H,["button","root"]),styles:Mn(q,["button","root"]),prefixCls:k,type:"search",size:G,variant:j,onPressEnter:se,onCompositionStart:he,onCompositionEnd:te,onChange:ee,disabled:b},Object.keys(Se));return c.createElement(Xj,{className:Ce,style:{...q.root,..._,...u},...Se,hidden:N},c.createElement(Vm,{ref:Er(X,t),...Te}),re)}),MF=e=>{const{componentCls:t,paddingLG:n}=e,o=`${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"},[o]:{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"}},[`
|
|
243
|
-
&-allow-clear > ${t},
|
|
244
|
-
&-affix-wrapper${o}-has-feedback ${t}
|
|
245
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-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}}}}}},TF=an(["Input","TextArea"],e=>{const t=rn(e,ou(e));return MF(t)},au,{resetFont:!1}),OF=c.forwardRef((e,t)=>{const{prefixCls:n,bordered:o=!0,size:s,disabled:i,status:u,allowClear:m,classNames:h,rootClassName:p,className:g,style:b,styles:y,variant:S,showCount:$,onMouseDown:C,onResize:j,...w}=e,{getPrefixCls:R,direction:E,allowClear:N,autoComplete:M,className:T,style:O,classNames:P,styles:_}=en("textArea"),L=c.useContext(no),A=i??L,{status:B,hasFeedback:V,feedbackIcon:Z}=c.useContext(ro),W=_m(B,u),H=dn(O),q=dn(b),[U,J]=sn([P,h],[_,H,y,q],{props:e}),k=c.useRef(null);c.useImperativeHandle(t,()=>({resizableTextArea:k.current?.resizableTextArea,focus:he=>{aN(k.current?.resizableTextArea?.textArea,he)},blur:()=>k.current?.blur(),nativeElement:k.current?.nativeElement||null}));const I=R("input",n),D=Rr(I),[Y,G]=YR(I,p);TF(I,D);const{compactSize:X,compactItemClassnames:ee}=cl(I,E),Q=Mr(he=>s??X??he),[ae,se]=Bm("textArea",S,o),ie=Pj({allowClear:m,contextAllowClear:N,componentName:"TextArea"}),[fe,oe]=c.useState(!1),[re,pe]=c.useState(!1),ve=he=>{oe(!0),C?.(he);const te=()=>{oe(!1),document.removeEventListener("mouseup",te)};document.addEventListener("mouseup",te)},Ce=he=>{if(j?.(he),fe&&Ht(getComputedStyle)){const te=k.current?.nativeElement?.querySelector("textarea");te&&getComputedStyle(te).resize==="both"&&pe(!0)}};return c.createElement(rH,{autoComplete:M,...w,style:J.root,styles:J,disabled:A,allowClear:ie,className:K(G,D,g,p,ee,T,U.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...U,textarea:K({[`${I}-sm`]:Q==="small",[`${I}-lg`]:Q==="large"},Y,U.textarea,fe&&`${I}-mouse-active`),variant:K({[`${I}-${ae}`]:se},Bc(I,W)),affixWrapper:K(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:E==="rtl",[`${I}-affix-wrapper-sm`]:Q==="small",[`${I}-affix-wrapper-lg`]:Q==="large",[`${I}-textarea-show-count`]:$||e.count?.show},Y)},prefixCls:I,suffix:V&&c.createElement("span",{className:`${I}-textarea-suffix`},Z),showCount:$,ref:k,onResize:Ce,onMouseDown:ve})}),Wt=Vm;Wt.Group=iF;Wt.Search=RF;Wt.TextArea=OF;Wt.Password=EF;Wt.OTP=fF;function zF(e,t,n){return typeof n=="boolean"?n:e.length?!0:kr(t).some(s=>s.type===PR)}const qm=({suffixCls:e,tagName:t,displayName:n})=>o=>c.forwardRef((i,u)=>c.createElement(o,{ref:u,suffixCls:e,tagName:t,...i})),Hy=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:o,className:s,tagName:i,...u}=e,{getPrefixCls:m}=c.useContext(vt),h=m("layout",n),[p,g]=IR(h),b=o?`${h}-${o}`:h;return c.createElement(i,{className:K(n||b,s,p,g),ref:t,...u})}),AF=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(vt),[o,s]=c.useState([]),{prefixCls:i,className:u,rootClassName:m,children:h,hasSider:p,tagName:g,style:b,...y}=e,S=Mn(y,["suffixCls"]),{getPrefixCls:$,className:C,style:j}=en("layout"),w=$("layout",i),R=zF(o,h,p),[E,N]=IR(w),M=K(w,{[`${w}-has-sider`]:R,[`${w}-rtl`]:n==="rtl"},C,u,m,E,N),T=c.useMemo(()=>({siderHook:{addSider:O=>{s(P=>[].concat(Rn(P),[O]))},removeSider:O=>{s(P=>P.filter(_=>_!==O))}}}),[]);return c.createElement(OR.Provider,{value:T},c.createElement(g,{ref:t,className:M,style:{...j,...b},...S},h))}),IF=qm({tagName:"div",displayName:"Layout"})(AF),PF=qm({suffixCls:"header",tagName:"header",displayName:"Header"})(Hy),LF=qm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Hy),_F=qm({suffixCls:"content",tagName:"main",displayName:"Content"})(Hy),pl=IF;pl.Header=PF;pl.Footer=LF;pl.Content=_F;pl.Sider=PR;pl._InternalSiderContext=km;const BF=e=>{const{prefixCls:t,className:n,closeIcon:o,closable:s,type:i,title:u,children:m,footer:h,classNames:p,styles:g,...b}=e,{getPrefixCls:y}=c.useContext(vt),{className:S,style:$,classNames:C,styles:j}=en("modal"),w=y(),R=t||y("modal"),E=Rr(w),[N,M]=N4(R,E),[T,O]=sn([C,p],[j,g],{props:e}),P=`${R}-confirm`;let _={};return i?_={closable:s??!1,title:"",footer:"",children:c.createElement(R4,{...e,prefixCls:R,confirmPrefixCls:P,rootPrefixCls:w,content:m})}:_={closable:s??!0,title:u,footer:h!==null&&c.createElement(C4,{...e}),children:m},c.createElement(s4,{prefixCls:R,className:K(N,`${R}-pure-panel`,i&&P,i&&`${P}-${i}`,n,S,M,E,T.root),style:{...$,...O.root},...b,closeIcon:S4(R,o),closable:s,classNames:T,styles:O,..._})},DF=H4(BF);function CM(e){return tu(z4(e))}const Tr=j4;Tr.useModal=_4;Tr.info=function(t){return tu(A4(t))};Tr.success=function(t){return tu(I4(t))};Tr.error=function(t){return tu(P4(t))};Tr.warning=CM;Tr.warn=CM;Tr.confirm=function(t){return tu(L4(t))};Tr.destroyAll=function(){for(;Is.length;){const t=Is.pop();t&&t()}};Tr.config=YL;Tr._InternalPanelDoNotUseOrYouWillBeFired=DF;const HF={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},FF=()=>{const e=c.useRef([]),t=c.useRef(null);return c.useEffect(()=>{const n=Date.now();let o=!1;e.current.forEach(s=>{if(!s)return;o=!0;const i=s.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(i.transitionDuration="0s, 0s")}),o&&(t.current=Date.now())}),e.current},o2=({bg:e,children:t})=>c.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function a2(e,t){return Object.keys(e).map(n=>{const o=parseFloat(n),s=`${Math.floor(o*t)}%`;return`${e[n]} ${s}`})}const kF=c.forwardRef((e,t)=>{const{prefixCls:n,color:o,gradientId:s,radius:i,className:u,style:m,ptg:h,strokeLinecap:p,strokeWidth:g,size:b,gapDegree:y}=e,S=o&&typeof o=="object",$=S?"#FFF":void 0,C=b/2,j=c.createElement("circle",{className:K(`${n}-circle-path`,u),r:i,cx:C,cy:C,stroke:$,strokeLinecap:p,strokeWidth:g,opacity:h===0?0:1,style:m,ref:t});if(!S)return j;const w=`${s}-conic`,R=y?`${180+y/2}deg`:"0deg",E=a2(o,(360-y)/360),N=a2(o,1),M=`conic-gradient(from ${R}, ${E.join(", ")})`,T=`linear-gradient(to ${y?"bottom":"top"}, ${N.join(", ")})`;return c.createElement(c.Fragment,null,c.createElement("mask",{id:w},j),c.createElement("foreignObject",{x:0,y:0,width:b,height:b,mask:`url(#${w})`},c.createElement(o2,{bg:T},c.createElement(o2,{bg:M}))))}),vc=100,Ug=(e,t,n,o,s,i,u,m,h,p,g=0)=>{const b=n/100*360*((360-i)/360),y=i===0?0:{bottom:0,top:180,left:90,right:-90}[u];let S=(100-o)/100*t;h==="round"&&o!==100&&(S+=p/2,S>=t&&(S=t-.01));const $=vc/2;return{stroke:typeof m=="string"?m:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:S+g,transform:`rotate(${s+b+y}deg)`,transformOrigin:`${$}px ${$}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}},VF=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:ue.createElement("style",null,`@keyframes ${n} {
|
|
246
|
-
0% { transform: rotate(0deg); }
|
|
247
|
-
100% { transform: rotate(360deg); }
|
|
248
|
-
}`)}});function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n0.apply(this,arguments)}function s2(e){const t=e??[];return Array.isArray(t)?t:[t]}const qF=e=>{const{id:t,prefixCls:n,classNames:o={},styles:s={},steps:i,strokeWidth:u,railWidth:m,gapDegree:h=0,gapPosition:p,railColor:g,strokeLinecap:b,style:y,className:S,strokeColor:$,percent:C,loading:j,...w}={...HF,...e},R=vc/2,E=ya(t),N=`${E}-gradient`,M=R-u/2,T=Math.PI*2*M,O=h>0?90+h/2:-90,P=T*((360-h)/360),{count:_,gap:L}=typeof i=="object"?i:{count:i,gap:2},A=s2(C),B=s2($),V=B.find(D=>D&&typeof D=="object"),W=V&&typeof V=="object"?"butt":b,{indeterminateStyleProps:H,indeterminateStyleAnimation:q}=VF({id:E,loading:j}),U=Ug(T,P,0,100,O,h,p,g,W,u),J=FF(),k=()=>{let D=0;return A.map((Y,G)=>{const X=B[G]||B[B.length-1],ee=Ug(T,P,D,Y,O,h,p,X,W,u);return D+=Y,c.createElement(kF,{key:G,color:X,ptg:Y,radius:M,prefixCls:n,gradientId:N,className:o.track,style:{...ee,...H,...s.track},strokeLinecap:W,strokeWidth:u,gapDegree:h,ref:Q=>{J[G]=Q},size:vc})}).reverse()},I=()=>{const D=Math.round(_*(A[0]/100)),Y=100/_;let G=0;return new Array(_).fill(null).map((X,ee)=>{const Q=ee<=D-1?B[0]:g,ae=Q&&typeof Q=="object"?`url(#${N})`:void 0,se=Ug(T,P,G,Y,O,h,p,Q,"butt",u,L);return G+=(P-se.strokeDashoffset+L)*100/P,c.createElement("circle",{key:ee,className:K(`${n}-circle-path`,o.track),r:M,cx:R,cy:R,stroke:ae,strokeWidth:u,opacity:1,style:{...se,...s.track},ref:ie=>{J[ee]=ie}})})};return c.createElement("svg",n0({className:K(`${n}-circle`,o.root,S),viewBox:`0 0 ${vc} ${vc}`,style:{...s.root,...y},id:t,role:"presentation"},w),!_&&c.createElement("circle",{className:K(`${n}-circle-rail`,o.rail),r:M,cx:R,cy:R,stroke:g,strokeLinecap:W,strokeWidth:m||u,style:{...U,...s.rail}}),_?I():k(),q)};function Ds(e){return!e||e<0?0:e>100?100:e}function fm({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const WF=({percent:e,success:t})=>{const n=Ds(fm({success:t}));return[n,Ds(Ds(e)-n)]},UF=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Ki.green,t||null]},Wm=(e,t,n)=>{let o=-1,s=-1;if(t==="step"){const i=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(o=e==="small"?2:14,s=u??8):$r(e)?[o,s]=[e,e]:[o=14,s=8]=Array.isArray(e)?e:[e.width,e.height],o*=i}else if(t==="line"){const i=n?.strokeWidth;typeof e=="string"||typeof e>"u"?s=i||(e==="small"?6:8):$r(e)?[o,s]=[e,e]:[o=-1,s=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[o,s]=e==="small"?[60,60]:[120,120]:$r(e)?[o,s]=[e,e]:Array.isArray(e)&&(o=e[0]??e[1]??120,s=e[0]??e[1]??120));return[o,s]},GF=3,XF=e=>GF/e*100,i2=["root","body","indicator"],KF=e=>{const{prefixCls:t,classNames:n,styles:o,railColor:s,trailColor:i,strokeLinecap:u="round",gapPosition:m,gapPlacement:h,gapDegree:p,width:g=120,type:b,children:y,success:S,size:$=g,steps:C}=e,{direction:j}=en("progress"),w=s??i,[R,E]=Wm($,"circle");let{strokeWidth:N}=e;N===void 0&&(N=Math.max(XF(R),6));const M={width:R,height:E,fontSize:R*.15+6},T=c.useMemo(()=>{if(p||p===0)return p;if(b==="dashboard")return 75},[p,b]),O=WF(e),P=c.useMemo(()=>{const W=(h??m)||b==="dashboard"&&"bottom"||void 0,H=j==="rtl";switch(W){case"start":return H?"right":"left";case"end":return H?"left":"right";default:return W}},[j,h,m,b]),_=Ot(e.strokeColor),L=UF({success:S,strokeColor:e.strokeColor}),A=K(`${t}-body`,{[`${t}-circle-gradient`]:_},n.body),B=c.createElement(qF,{steps:C,percent:C?O[1]:O,strokeWidth:N,railWidth:N,strokeColor:C?L[1]:L,strokeLinecap:u,railColor:w,prefixCls:t,gapDegree:T,gapPosition:P,classNames:Mn(n,i2),styles:Mn(o,i2)}),V=R<=20,Z=c.createElement("div",{className:A,style:{...M,...o.body}},B,!V&&y);return V?c.createElement(Wn,{title:y},Z):Z},r0="--progress-line-stroke-color",YF=e=>{const t="-100%";return new Ft("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}})},QF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Ln(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},ZF=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:YF(),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)"}}}}},JF=e=>{const{componentCls:t,iconCls:n}=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%)",[n]:{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"}}}},ek=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}}}}}},tk=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},nk=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),rk=an("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=rn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[QF(n),ZF(n),JF(n),ek(n),tk(n)]},nk),ok=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(({key:n,value:o})=>`${o} ${n}%`).join(", ")},ak=(e,t)=>{const{from:n=Ki.blue,to:o=Ki.blue,direction:s=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){const m=ok(i),h=`linear-gradient(${s}, ${m})`;return{background:h,[r0]:h}}const u=`linear-gradient(${s}, ${n}, ${o})`;return{background:u,[r0]:u}},sk=e=>{const{prefixCls:t,classNames:n,styles:o,direction:s,percent:i,size:u,strokeWidth:m,strokeColor:h,strokeLinecap:p="round",children:g,railColor:b,trailColor:y,percentPosition:S,success:$}=e,{align:C,type:j}=S,w=b??y,R=p==="square"||p==="butt"?0:void 0,E=u??[-1,m||(u==="small"?6:8)],[N,M]=Wm(E,"line",{strokeWidth:m}),T={backgroundColor:w||void 0,borderRadius:R,height:M},O=`${t}-track`,P=h&&typeof h!="string"?ak(h,s):{[r0]:h,background:h},_={width:`${Ds(i)}%`,height:M,borderRadius:R,...P},L=fm(e),A={width:`${Ds(L)}%`,height:M,borderRadius:R,backgroundColor:$?.strokeColor};return c.createElement("div",{className:K(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:C==="center"&&j==="outer"}),style:{width:N>0?N:"100%",...o.body}},c.createElement("div",{className:K(`${t}-rail`,n.rail),style:{...T,...o.rail}},c.createElement("div",{className:K(O,n.track),style:{..._,...o.track}},j==="inner"&&g),L!==void 0&&c.createElement("div",{className:K(O,`${O}-success`,n.track),style:{...A,...o.track}})),j==="outer"&&g)},ik=e=>{const{classNames:t,styles:n,size:o,steps:s,rounding:i=Math.round,percent:u=0,strokeWidth:m=8,strokeColor:h,railColor:p,trailColor:g,prefixCls:b,children:y}=e,S=i(s*(u/100)),C=o??[o==="small"?2:14,m],[j,w]=Wm(C,"step",{steps:s,strokeWidth:m}),R=j/s,E=Array.from({length:s}),N=p??g;for(let M=0;M<s;M++){const T=Array.isArray(h)?h[M]:h;E[M]=c.createElement("div",{key:M,className:K(`${b}-steps-item`,{[`${b}-steps-item-active`]:M<=S-1},t.track),style:{backgroundColor:M<=S-1?T:N,width:R,height:w,...n.track}})}return c.createElement("div",{className:K(`${b}-steps-body`,t.body),style:n.body},E,y)},lk=["normal","exception","active","success"],ck=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:s,classNames:i,styles:u,steps:m,strokeColor:h,percent:p=0,size:g="medium",showInfo:b=!0,type:y="line",status:S,format:$,style:C,percentPosition:j={},...w}=e,{align:R="end",type:E="outer"}=j,N=Array.isArray(h)?h[0]:h,M=typeof h=="string"||Array.isArray(h)?h:void 0,T=c.useMemo(()=>{if(N){const se=typeof N=="string"?N:Object.values(N)[0];return new On(se).isLight()}return!1},[h]),O=c.useMemo(()=>{const se=fm(e);return Number.parseInt(se!==void 0?(se??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),P=c.useMemo(()=>!lk.includes(S)&&O>=100?"success":S||"normal",[S,O]),{getPrefixCls:_,direction:L,className:A,style:B,classNames:V,styles:Z}=en("progress"),W=_("progress",n),[H,q]=rk(W),U={...e,percent:p,type:y,size:g,showInfo:b,percentPosition:j},J=dn(B),k=dn(C),[I,D]=sn([V,i],[Z,J,u,k],{props:U}),Y=y==="line",G=Y&&!m,X=c.useMemo(()=>{if(!b)return null;const se=fm(e);let ie;const fe=$||(re=>`${re}%`),oe=Y&&T&&E==="inner";return E==="inner"||$||P!=="exception"&&P!=="success"?ie=fe(Ds(p),Ds(se)):P==="exception"?ie=Y?c.createElement(is,null):c.createElement(zo,null):P==="success"&&(ie=Y?c.createElement(il,null):c.createElement(dl,null)),c.createElement("span",{className:K(`${W}-indicator`,{[`${W}-indicator-bright`]:oe,[`${W}-indicator-${R}`]:G,[`${W}-indicator-${E}`]:G},I.indicator),style:D.indicator,title:typeof ie=="string"?ie:void 0},ie)},[b,p,O,P,y,W,$,Y,T,E,R,G,I.indicator,D.indicator]),ee={...e,classNames:I,styles:D};let Q;y==="line"?Q=m?c.createElement(ik,{...ee,strokeColor:M,prefixCls:W,steps:Ot(m)?m.count:m},X):c.createElement(sk,{...ee,strokeColor:N,prefixCls:W,direction:L,percentPosition:{align:R,type:E}},X):(y==="circle"||y==="dashboard")&&(Q=c.createElement(KF,{...ee,strokeColor:N,prefixCls:W,progressStatus:P},X));const ae=K(W,`${W}-status-${P}`,{[`${W}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${W}-inline-circle`]:y==="circle"&&Wm(g,"circle")[0]<=20,[`${W}-line`]:G,[`${W}-line-align-${R}`]:G,[`${W}-line-position-${E}`]:G,[`${W}-steps`]:m,[`${W}-show-info`]:b,[`${W}-small`]:g==="small",[`${W}-rtl`]:L==="rtl"},A,o,s,I.root,H,q);return c.createElement("div",{ref:t,style:D.root,className:ae,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...Mn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},Q)});var Qd={},l2;function uk(){if(l2)return Qd;l2=1,Object.defineProperty(Qd,"__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 Qd.default=e,Qd}var dk=uk();const fk=jt(dk);function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o0.apply(this,arguments)}const mk=(e,t)=>c.createElement(It,o0({},e,{ref:t,icon:fk})),mm=c.forwardRef(mk);function pk(e){const{prefixCls:t,className:n,style:o,status:s}=e,i=`${t}-rail`;return c.createElement("div",{className:K(i,`${i}-${s}`,n),style:o})}const hk=c.createContext({}),Fy=c.createContext(null);function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a0.apply(this,arguments)}const $M=c.createContext({}),c2=c.forwardRef((e,t)=>{const{className:n,style:o,children:s,...i}=e,{prefixCls:u,classNames:m,styles:h}=c.useContext(Fy),{className:p,style:g}=c.useContext($M),b=`${u}-item`;return c.createElement("div",a0({},br(i,!1),{ref:t,className:K(`${b}-icon`,m.itemIcon,p,n),style:{...h.itemIcon,...g,...o}}),s)});function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s0.apply(this,arguments)}function Gg(e){return e!=null}function gk(e){const{prefixCls:t,classNames:n,styles:o,data:s,last:i,nextStatus:u,active:m,index:h,itemRender:p,iconRender:g,itemWrapperRender:b,onClick:y}=e,S=`${t}-item`,{railFollowPrevStatus:$}=c.useContext(hk),{ItemComponent:C}=c.useContext(Fy),{onClick:j,title:w,subTitle:R,content:E,description:N,disabled:M,icon:T,status:O,className:P,style:_,classNames:L={},styles:A={},...B}=s,V=E??N,Z={item:{...s,content:V},index:h,active:m},W=!!(y||j)&&!M,H={};W&&(H.role="button",H.tabIndex=0,H.onClick=G=>{j?.(G),y(h)},H.onKeyDown=G=>{const{which:X}=G;(X===ct.ENTER||X===ct.SPACE)&&y(h)});const q=O||"wait",U=Gg(w),J=Gg(R),k=K(S,`${S}-${q}`,{[`${S}-custom`]:T,[`${S}-active`]:m,[`${S}-disabled`]:M===!0,[`${S}-empty-header`]:!U&&!J},P,n.item,L.root);let I=c.createElement(c2,null);g&&(I=g(I,{...Z,components:{Icon:c2}}));const D=c.createElement("div",{className:K(`${S}-wrapper`,n.itemWrapper,L.wrapper),style:{...o.itemWrapper,...A.wrapper}},c.createElement($M.Provider,{value:{className:L.icon,style:A.icon}},I),c.createElement("div",{className:K(`${S}-section`,n.itemSection,L.section),style:{...o.itemSection,...A.section}},c.createElement("div",{className:K(`${S}-header`,n.itemHeader,L.header),style:{...o.itemHeader,...A.header}},U&&c.createElement("div",{className:K(`${S}-title`,n.itemTitle,L.title),style:{...o.itemTitle,...A.title}},w),J&&c.createElement("div",{title:typeof R=="string"?R:void 0,className:K(`${S}-subtitle`,n.itemSubtitle,L.subtitle),style:{...o.itemSubtitle,...A.subtitle}},R),!i&&c.createElement(pk,{prefixCls:S,className:K(n.itemRail,L.rail),style:{...o.itemRail,...A.rail},status:$?O:u})),Gg(V)&&c.createElement("div",{className:K(`${S}-content`,n.itemContent,L.content),style:{...o.itemContent,...A.content}},V)));let Y=c.createElement(C,s0({},B,H,{className:k,style:{...o.item,...A.root,..._}}),b?b(D):D);return p&&(Y=p(Y,Z)||null),Y}function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i0.apply(this,arguments)}const u2={};function bk(e){const{prefixCls:t="rc-steps",style:n,className:o,classNames:s=u2,styles:i=u2,rootClassName:u,orientation:m,titlePlacement:h,components:p,status:g="process",current:b=0,initial:y=0,onChange:S,items:$,iconRender:C,itemRender:j,itemWrapperRender:w,...R}=e,E=m==="vertical",N=E?"vertical":"horizontal",M=!E&&h==="vertical"?"vertical":"horizontal",T=K(t,`${t}-${N}`,`${t}-title-${M}`,u,o,s.root),O=ue.useMemo(()=>($||[]).filter(Boolean),[$]),P=ue.useMemo(()=>O.map(({status:Z},W)=>{const H=y+W;return Z||(H===b?g:H<b?"finish":"wait")}),[O,g,b,y]),_=Z=>{S&&b!==Z&&S(Z)},{root:L="div",item:A="div"}=p||{},B=ue.useMemo(()=>({prefixCls:t,classNames:s,styles:i,ItemComponent:A}),[t,s,i,A]),V=(Z,W)=>{const H=y+W,q=P[W],U=P[W+1],J={...Z,status:q};return ue.createElement(gk,{key:H,prefixCls:t,classNames:s,styles:i,data:J,nextStatus:U,active:H===b,index:H,last:O.length-1===W,iconRender:C,itemRender:j,itemWrapperRender:w,onClick:S&&_})};return ue.createElement(L,i0({className:T,style:{...n,...i?.root}},R),ue.createElement(Fy.Provider,{value:B},O.map(V)))}const vk=c.createContext(null),yk=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"}))},xk=e=>{const{prefixCls:t,rootPrefixCls:n,children:o,percent:s}=e,i=`${t}-item-progress-icon`,u=`${i}-circle`,[,m]=on(n,"cmp-steps"),h=`calc(${m("progress-radius")} * 2 * ${Math.PI*s/100}) 9999`;return c.createElement(c.Fragment,null,c.createElement("svg",{className:`${i}-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":s},c.createElement("title",null,"Progress"),c.createElement("circle",{className:K(u,`${u}-rail`)}),c.createElement("circle",{className:K(u,`${u}-ptg`),strokeDasharray:h,transform:"rotate(-90 50 50)"})),o)},Sk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-item`,[s,i]=on(n,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${o}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${o}-rail`]:{[s("horizontal-rail-margin")]:`calc(${i("icon-size-max")} / 2 - ${i("rail-size")} / 2 + ${i("item-wrapper-padding-top")})`,position:"static",marginTop:i("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:i("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},Ck=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:o,iconSize:s,lineWidth:i,lineType:u,antCls:m}=e,h=`${t}-item`,[p,g]=on(m,"cmp-steps");return{[t]:{[p("icon-size")]:s,[p("icon-border-width")]:i,[`${h}-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} ${o}`).join(", "),zIndex:1},[`${h}-custom ${h}-icon`]:{background:"none",border:0,fontSize:n}}}},$k=e=>{const{componentCls:t,inlineDotSize:n,paddingXS:o,lineWidth:s,antCls:i,calc:u}=e,m=u(o).add(s).equal(),h=`${t}-item`,[p,g]=on(i,"cmp-steps");return{[`${t}-inline`]:{[p("items-offset")]:"0",[p("item-wrapper-padding-top")]:m,display:"inline-flex","&:before":{content:'""',flex:g("items-offset")},[h]:{[p("title-vertical-row-gap")]:o,[p("icon-size")]:n,[p("icon-size-active")]:n,[p("title-font-size")]:e.fontSizeSM,[p("title-line-height")]:e.lineHeightSM,[p("item-title-color")]:e.colorTextSecondary,[p("subtitle-font-size")]:e.fontSizeSM,[p("subtitle-line-height")]:e.lineHeightSM,[p("item-subtitle-color")]:e.colorTextQuaternary,[p("rail-size")]:e.lineWidth,[p("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":{[`${h}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function wk(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const ky=(e,t,n)=>{const{calc:o,componentCls:s,descriptionMaxWidth:i,antCls:u}=e,m=`${s}-item`,[,h]=on(u,"cmp-steps");return{[`@container style(${wk(i)})`]:[{[`${m}-icon`]:{marginInlineStart:o(i).sub(h("icon-size")).div(2).equal()},[`${m}-rail`]:{width:"auto",insetInlineStart:o(i).add(h("icon-size")).div(2).add(t).equal(),insetInlineEnd:o(i).sub(h("icon-size")).div(2).sub(t).mul(-1).equal()}},n]}},Ek=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:o,fontHeightLG:s,margin:i,paddingSM:u,marginXXS:m,antCls:h,calc:p}=e,g=`${t}-item`,[b,y]=on(h,"cmp-steps");return{[t]:{[b("icon-size-max")]:`max(${y("icon-size")}, ${y("icon-size-active",y("icon-size"))})`,[`${g}-icon`]:{marginBlockStart:`calc((${y("heading-height")} - ${y("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[b("title-horizontal-item-margin")]:i,[b("title-horizontal-rail-margin")]:i,[b("title-horizontal-title-height")]:s,[b("heading-height")]:`max(${y("icon-size")}, ${y("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${g}:not(:first-child)`]:{marginInlineStart:y("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:p(y("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${g}-section`]:{flex:1,minWidth:0},[`${g}-header`]:{minHeight:y("heading-height")},[`${g}-title`]:{flex:"0 1 auto"},[`${g}-content`]:{maxWidth:n},[`${g}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${g}-rail`]:{[b("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:y("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[b("title-vertical-row-gap")]:u,[b("title-horizontal-rail-gap")]:m,[b("heading-height")]:y("icon-size-max"),[`> ${g}`]:{flex:"1 1 0%",[`${g}-wrapper`]:{flexDirection:"column",rowGap:y("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% - ${y("icon-size")} - ${y("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${y("icon-size")} / 2 + ${y("title-horizontal-rail-gap")})`}},...ky(e,o,{[`${g}:last-child`]:{flex:"none"},[`${g}-icon`]:{alignSelf:"flex-start"},[`${g}-section`]:{width:n}})}}},Nk=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-max-count`]:{[`${n}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:{color:e.colorTextDescription}}}}},jk=e=>{const{componentCls:t,fontSizeIcon:n,navContentMaxWidth:o,navArrowColor:s,colorPrimary:i,motionDurationSlow:u,antCls:m,calc:h}=e,p=`${t}-item`,g=i,[b,y]=on(m,"cmp-steps");return{[`${t}${t}-navigation`]:{[p.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${p}-wrapper`]:{paddingBlock:e.paddingSM},[`${p}-section`]:{maxWidth:o},[`${p}-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:`${le(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${p}-active`]:{[b("item-content-active-color")]:y("item-content-color"),[b("item-icon-active-bg-color")]:y("item-icon-bg-color"),[b("item-icon-active-border-color")]:y("item-icon-border-color"),[b("item-icon-active-text-color")]:y("item-icon-text-color")}},[`&${t}-horizontal`]:{[p]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${p}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:h(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[p.repeat(4)]:{[`${p}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${p}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:h(n).div(3).mul(2).equal(),height:h(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},Rk=e=>{const{componentCls:t,lineWidthBold:n,borderRadius:o,borderRadiusSM:s,motionDurationMid:i,paddingXS:u,lineType:m,paddingSM:h,antCls:p,calc:g}=e,b=`${t}-item`,[y,S]=on(p,"cmp-steps"),$=`${le(n)} ${m} ${S("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${b}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[b]:{flex:1,margin:0}}},{"&":{[y("panel-padding")]:h,[y("item-border-radius")]:o,[b]:{[y("panel-bg-color")]:S("item-icon-bg-color"),[y("panel-border-color")]:S("item-icon-border-color"),[y("panel-active-bg-color")]:S("item-icon-active-bg-color"),[y("panel-active-border-color")]:S("item-icon-active-border-color"),[y("panel-title-height")]:`calc(${S("title-font-size")} * ${S("title-line-height")})`,[y("item-base-height")]:g(S("panel-padding")).mul(2).add(S("icon-size")).add(S("panel-title-height")).equal(),[y("item-base-width")]:`calc(${S("item-base-height")} * 0.7071)`,transition:`background-color ${i}`}},[`${b}-icon`]:{display:"none"},[`${b}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:g(n).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:g(n).mul(2).add("100%").equal(),width:S("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:S("panel-bg-color"),stroke:S("panel-border-color"),strokeWidth:n,vectorEffect:"non-scaling-stroke",transition:`fill ${i}`}},[`${b}:last-child ${t}-panel-arrow`]:{display:"none"},[b]:{padding:S("panel-padding"),background:S("panel-bg-color"),position:"relative",borderBlock:$,"&:not(:first-child)":{paddingInlineStart:`calc(${S("panel-padding")} + ${S("item-base-width")})`},"&:first-child":{borderInlineStart:$,borderStartStartRadius:S("item-border-radius"),borderEndStartRadius:S("item-border-radius")},"&:last-child":{borderInlineEnd:$,borderStartEndRadius:S("item-border-radius"),borderEndEndRadius:S("item-border-radius")},"&-active":{background:S("panel-active-bg-color"),borderColor:S("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:S("panel-active-bg-color"),stroke:S("panel-active-border-color")}},[`${b}-title, ${b}-subtitle, ${b}-content`]:{color:S("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[y("panel-padding")]:u,[y("item-border-radius")]:s}},{[`&${t}-filled`]:{[b]:{"&:not(:first-child)":{clipPath:`polygon(${[`${le(n)} 0`,`calc(100% + ${S("item-base-width")}) 0`,`calc(100% + ${S("item-base-width")}) 100%`,`${le(n)} 100%`,`calc(${S("item-base-width")} + ${le(n)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:g(n).div(2).mul(-1).equal(),height:g(n).add("100%").equal()}}}]}},Mk=e=>{const{calc:t,antCls:n,componentCls:o,lineWidthBold:s,motionDurationSlow:i}=e,u=`${o}-item`,[m,h]=on(n,"cmp-steps"),p=t(s).add(s).equal();return{[`${o}${o}-with-progress`]:{[m("item-wrapper-padding-top")]:p,[`${u}${u}-process`]:{[`${u}-icon`]:{position:"relative"}},[`${u}-progress-icon`]:{"&-svg":{[m("svg-size")]:t(p).mul(2).add(h("icon-size")).equal(),[m("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${h("svg-size")}, 1px)))`,fontSize:h("svg-size"),lineHeight:h("icon-size-ptg-unitless"),position:"absolute",inset:t(p).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:h("icon-size-ptg-unitless"),strokeWidth:t(h("icon-size-ptg-unitless")).mul(s).equal(),[m("progress-radius")]:t(h("svg-size")).sub(s).mul(h("icon-size-ptg-unitless")).div(2).equal(),r:h("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${i} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},Tk=e=>{const{componentCls:t,iconSize:n,dotSize:o,dotCurrentSize:s,marginXXS:i,lineWidthBold:u,fontSizeSM:m,antCls:h}=e,p=`${t}-item`,[g,b]=on(h,"cmp-steps");return{[`${t}${t}-dot`]:{[g("icon-size-active")]:s,[g("icon-size")]:o,[g("dot-icon-size")]:o,[g("dot-icon-border-width")]:u,[g("rail-size")]:u,[g("icon-border-width")]:u,[`${p}-custom ${p}-icon`]:{fontSize:m},[`${p}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${p}-active ${p}-icon`]:{[g("icon-size")]:b("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:ky(e,i)}}}},Ok=e=>{const{componentCls:t,lineWidthBold:n,antCls:o}=e,s=`${t}-item`,[,i]=on(o,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${s}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[s]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${i("item-base-width")}) 0px`,`calc(100% - ${le(n)}) 0px`,`calc(100% - ${i("item-base-width")} - ${le(n)}) 50%`,`calc(100% - ${le(n)}) 100%`,`calc(0px - ${i("item-base-width")}) 100%`].join(",")})`}}}}}}},zk=e=>{const{componentCls:t,iconSizeSM:n,fontSize:o,lineHeight:s,marginXS:i,fontHeight:u,marginSM:m,paddingXS:h,antCls:p}=e,[g]=on(p,"cmp-steps");return{[`${t}${t}-small`]:{[g("icon-size")]:n,[g("title-horizontal-item-margin")]:m,[g("title-vertical-row-gap")]:h,[g("title-font-size")]:o,[g("title-line-height")]:s,[g("title-horizontal-rail-margin")]:i,[g("title-horizontal-title-height")]:u,[`&${t}-horizontal${t}-title-vertical`]:ky(e,i)}}},Zd="wait",Jd="process",ef="finish",tf="error",Ak=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:o,colorPrimary:s,colorTextLabel:i,colorError:u,colorErrorHover:m,colorErrorBgFilledHover:h,colorFillTertiary:p,colorErrorBg:g,colorPrimaryBgHover:b,colorPrimaryBg:y,colorText:S,colorTextDescription:$,colorBgContainer:C,colorPrimaryHover:j,lineType:w,antCls:R}=e,E=`${t}-item`,[N,M]=on(R,"cmp-steps");return{[t]:[{[E]:{[N("item-solid-line-color")]:"#000",[N("item-title-color")]:"#000",[N("item-content-color")]:"#000",[N("item-subtitle-color")]:M("item-content-color"),[N("item-icon-custom-color")]:"#000",[N("item-icon-bg-color")]:"#000",[N("item-icon-border-color")]:"#000",[N("item-icon-text-color")]:"#fff",[N("item-icon-dot-color")]:"#000",[N("item-icon-dot-bg-color")]:M("item-icon-dot-color"),[N("item-icon-dot-border-color")]:M("item-icon-dot-color"),[N("item-text-hover-color")]:"#000",[N("item-icon-bg-hover-color")]:M("item-icon-bg-color"),[N("item-icon-border-hover-color")]:M("item-icon-border-color"),[N("item-icon-text-hover-color")]:M("item-icon-text-color"),[N("item-content-active-color")]:M("item-content-color"),[N("item-icon-active-bg-color")]:M("item-icon-bg-color"),[N("item-icon-active-border-color")]:M("item-icon-border-color"),[N("item-icon-active-text-color")]:M("item-icon-text-color"),[N("item-process-rail-line-style")]:w},[`${E}-rail`]:{borderColor:M("item-solid-line-color")},[`${E}-custom ${E}-icon`]:{color:M("item-icon-custom-color")},[`${E}-title`]:{color:M("item-title-color")},[`${E}-subtitle`]:{color:M("item-subtitle-color")},[`${E}-content`]:{color:M("item-content-color")},[`${E}-active ${E}-icon`]:{},[`${E}-active ${E}-content`]:{color:M("item-content-active-color")},[`${E}[role='button']:not(${E}-active):hover`]:{[`${E}-title, ${E}-content`]:{color:M("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${E}:not(${E}-custom)`]:{[`${E}-icon`]:{background:M("item-icon-bg-color"),borderColor:M("item-icon-border-color"),color:M("item-icon-text-color")},[`&[role='button']:not(${E}-active):hover`]:{[`${E}-icon`]:{background:M("item-icon-bg-hover-color"),borderColor:M("item-icon-border-hover-color"),color:M("item-icon-text-hover-color")}},[`&${E}-active`]:{[`${E}-icon`]:{background:M("item-icon-active-bg-color"),borderColor:M("item-icon-active-border-color"),color:M("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${E}-icon`]:{background:M("item-icon-dot-bg-color"),borderColor:M("item-icon-dot-border-color"),color:M("item-icon-dot-color"),[`&${E}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${E}-${Zd}`]:{[N("item-icon-custom-color")]:n,[N("item-title-color")]:$,[N("item-content-color")]:$,[N("item-content-active-color")]:S,[N("item-text-hover-color")]:j},[`${E}-rail-${Zd}`]:{[N("item-solid-line-color")]:n},[`${E}-${Jd}`]:{[N("item-icon-custom-color")]:s,[N("item-title-color")]:S,[N("item-content-color")]:$,[N("item-content-active-color")]:S,[N("item-text-hover-color")]:j},[`${E}-rail-${Jd}`]:{[N("item-solid-line-color")]:s,[N("rail-line-style")]:M("item-process-rail-line-style")},[`${E}-${ef}`]:{[N("item-icon-custom-color")]:s,[N("item-title-color")]:S,[N("item-content-color")]:$,[N("item-content-active-color")]:S,[N("item-text-hover-color")]:j},[`${E}-rail-${ef}`]:{[N("item-solid-line-color")]:s},[`${E}-${tf}`]:{[N("item-icon-custom-color")]:u,[N("item-title-color")]:u,[N("item-content-color")]:u,[N("item-content-active-color")]:u,[N("item-text-hover-color")]:m},[`${E}-rail-${tf}`]:{[N("item-solid-line-color")]:u}},{[`&${t}-filled`]:{[E]:{[N("item-icon-dot-border-color")]:"transparent"},[`${E}-${Zd}`]:{[N("item-icon-bg-color")]:p,[N("item-icon-border-color")]:"transparent",[N("item-icon-text-color")]:i,[N("item-icon-dot-bg-color")]:n,[N("item-icon-bg-hover-color")]:b,[N("item-icon-border-hover-color")]:"transparent",[N("item-icon-text-hover-color")]:s,[N("item-icon-active-bg-color")]:s,[N("item-icon-active-border-color")]:"transparent",[N("item-icon-active-text-color")]:o},[`${E}-${Jd}, ${E}-${ef}`]:{[N("item-icon-bg-color")]:y,[N("item-icon-border-color")]:"transparent",[N("item-icon-text-color")]:s,[N("item-icon-dot-bg-color")]:s,[N("item-icon-bg-hover-color")]:b,[N("item-icon-border-hover-color")]:"transparent",[N("item-icon-text-hover-color")]:s,[N("item-icon-active-bg-color")]:s,[N("item-icon-active-border-color")]:"transparent",[N("item-icon-active-text-color")]:o},[`${E}-${tf}`]:{[N("item-icon-bg-color")]:g,[N("item-icon-border-color")]:"transparent",[N("item-icon-text-color")]:u,[N("item-icon-dot-bg-color")]:u,[N("item-icon-bg-hover-color")]:h,[N("item-icon-border-hover-color")]:"transparent",[N("item-icon-text-hover-color")]:u,[N("item-icon-active-bg-color")]:u,[N("item-icon-active-border-color")]:"transparent",[N("item-icon-active-text-color")]:o}}},{[`&${t}-outlined`]:{[E]:{[N("item-icon-dot-bg-color")]:"transparent"},[`${E}-${Zd}`]:{[N("item-icon-bg-color")]:C,[N("item-icon-border-color")]:n,[N("item-icon-text-color")]:n,[N("item-icon-dot-color")]:n,[N("item-icon-bg-hover-color")]:"transparent",[N("item-icon-border-hover-color")]:j,[N("item-icon-text-hover-color")]:j,[N("item-icon-active-bg-color")]:p},[`${E}-${Jd}, ${E}-${ef}`]:{[N("item-icon-bg-color")]:C,[N("item-icon-border-color")]:s,[N("item-icon-text-color")]:s,[N("item-icon-dot-color")]:s,[N("item-icon-bg-hover-color")]:"transparent",[N("item-icon-border-hover-color")]:j,[N("item-icon-text-hover-color")]:j,[N("item-icon-active-bg-color")]:y},[`${E}-${tf}`]:{[N("item-icon-bg-color")]:C,[N("item-icon-border-color")]:u,[N("item-icon-text-color")]:u,[N("item-icon-dot-color")]:u,[N("item-icon-bg-hover-color")]:"transparent",[N("item-icon-border-hover-color")]:m,[N("item-icon-text-hover-color")]:m,[N("item-icon-active-bg-color")]:g}}}]}},Ik=e=>{const{componentCls:t,marginXXS:n,paddingSM:o,controlHeight:s,antCls:i,calc:u}=e,m=`${t}-item`,[h,p]=on(i,"cmp-steps");return{[`${t}-vertical`]:{[h("vertical-rail-margin")]:u(n).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${m}`]:{minHeight:u(s).mul(1.5).equal(),paddingBottom:o,"&:last-child":{paddingBottom:0},[`${m}-icon`]:{marginInlineStart:`calc((${p("icon-size-max")} - ${p("icon-size")}) / 2)`},[`${m}-rail`]:{[h("rail-offset")]:u(p("heading-height")).sub(p("icon-size")).div(2).equal(),borderInlineStartWidth:p("rail-size"),position:"absolute",top:u(p("icon-size")).add(p("item-wrapper-padding-top")).add(p("rail-offset")).add(p("vertical-rail-margin")).equal(),insetInlineStart:u(p("icon-size-max")).div(2).equal(),bottom:u(p("vertical-rail-margin")).sub(p("rail-offset")).equal(),marginInlineStart:`calc(${p("rail-size")} / -2)`}}}}},Pk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-item`,[s,i]=on(n,"cmp-steps");return{[t]:{[s("title-font-size")]:e.fontSizeLG,[s("title-line-height")]:e.lineHeightLG,[s("subtitle-font-size")]:e.fontSize,[s("subtitle-line-height")]:e.lineHeight,[s("item-wrapper-padding-top")]:"0px",[s("rail-size")]:e.lineWidth,[s("rail-line-style")]:e.lineType,...Ln(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[o]:{flex:"none",position:"relative"},[`${o}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:i("item-wrapper-padding-top")},[`${o}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${o}-title`]:{color:e.colorText,fontSize:i("title-font-size"),lineHeight:i("title-line-height"),wordBreak:"break-word"},[`${o}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:i("subtitle-font-size"),lineHeight:i("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${o}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${o}-rail`]:{borderStyle:i("rail-line-style"),borderWidth:0},[`${o}-title, ${o}-subtitle, ${o}-content, ${o}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:Mo},[`${o}[role='button']:not(${o}-active):hover`]:{cursor:"pointer"}}}},Lk=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}),_k=an("Steps",e=>{const t=rn(e,{inlineDotSize:6});return[Pk(t),Ck(t),Ik(t),Sk(t),Ek(t),zk(t),Tk(t),Ak(t),jk(t),Rk(t),$k(t),Nk(t),Mk(t),Ok(t)]},Lk);function Bk(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function Dk(e,t,n,o,s){const i=e[n].key??n,u=e[o].key??o,h=e.slice(n+1,o).some(p=>p.status==="error")?"error":o-1<t?"finish":"wait";return{item:{key:`ellipsis-${i}-${u}`,title:"",icon:c.createElement(zy),status:h,disabled:!0,className:`${s}-item-ellipsis`},originIndex:-1}}function Hk(e,t,n){const o=Math.min(Math.max(t,0),e-1),s=Math.min(n,e),i=new Set([0,o,e-1]);for(let u=1;i.size<s&&u<e;u+=1){const m=[o-u,o+u,u,e-1-u];for(const h of m){if(i.size>=s)break;h>=0&&h<e&&i.add(h)}}return Array.from(i).sort((u,m)=>u-m).flatMap((u,m,h)=>m>0&&u-h[m-1]>1?[null,u]:[u])}function Fk(e,t,n,o,s){const i=o!==void 0&&o>=3&&e.length>o,u=t-n,m=c.useMemo(()=>{if(!i)return e.map((g,b)=>({item:g,originIndex:b}));const p=Hk(e.length,u,o);return p.map((g,b)=>g===null?Dk(e,u,p[b-1],p[b+1],s):Bk(e[g],g))},[i,u,e,o,s]),h=m.findIndex(p=>p.originIndex===u);return{canApplyMaxCount:i,displaySteps:m,mappedDisplayCurrent:h>=0?h:u,displayItems:m.map(p=>p.item)}}const kk={itemIcon:sy},Vk=e=>{const{size:t,className:n,rootClassName:o,style:s,variant:i="filled",type:u,classNames:m,styles:h,direction:p,orientation:g,responsive:b=!0,progressDot:y,labelPlacement:S,titlePlacement:$,ellipsis:C,maxCount:j,offset:w=0,items:R,percent:E,current:N=0,initial:M=0,onChange:T,iconRender:O,...P}=e,_=c.useContext(vk),L=en("steps"),{getPrefixCls:A,direction:B,className:V,style:Z}=L;let W,H,q={};_?q={root:_.rootComponent,item:_.itemComponent}:{classNames:W,styles:H}=L;const U=A(),J=A("steps",e.prefixCls),k=`${J}-item-icon`,[I,D]=_k(J),[Y]=on(U,"cmp-steps"),G=Mr(t),X=c.useMemo(()=>(R||[]).filter(Boolean),[R]),{xs:ee}=iR(b),Q=c.useMemo(()=>u&&u!=="default"?u:y?"dot":u,[y,u]),ae=Q==="inline",se=Q==="dot"||Q==="inline",ie=c.useMemo(()=>Q==="dot"&&Ht(y)?y:void 0,[Q,y]),fe=c.useMemo(()=>{const Me=g||p;return Q==="panel"?"horizontal":b&&ee||Me==="vertical"?"vertical":"horizontal"},[g,p,Q,b,ee]),oe=c.useMemo(()=>se||fe==="vertical"?fe==="vertical"?"horizontal":"vertical":u==="navigation"?"horizontal":$||S||"horizontal",[se,S,fe,$,u]),re=ae?void 0:E,{canApplyMaxCount:pe,displaySteps:ve,mappedDisplayCurrent:Ce,displayItems:he}=Fk(X,N,M,j,J),te={...e,variant:i,size:G,type:Q,orientation:fe,titlePlacement:oe,current:N,initial:M,percent:re,responsive:b,offset:w,ellipsis:C,maxCount:j},[Se,Te]=sn([kk,W,m],[H,h],{props:te}),Ee=(Me,qe)=>{const{item:tt,index:Xe,active:He,components:{Icon:Ue}}=qe,Qe=ve[Xe]?.originIndex,ke=Qe!==void 0&&Qe>=0?M+Qe:Xe,{status:Oe,icon:Je}=tt;let nt=null;if(se||Je)nt=Je;else switch(Oe){case"finish":nt=c.createElement(dl,{className:`${k}-finish`});break;case"error":nt=c.createElement(zo,{className:`${k}-error`});break;default:{let Rt=c.createElement("span",{className:`${k}-number`},ke+1);Oe==="process"&&re!==void 0&&(Rt=c.createElement(xk,{prefixCls:J,rootPrefixCls:U,percent:re},Rt)),nt=Rt}}let ut=c.createElement(Ue,null,nt);return O?ut=O(ut,{index:ke,active:He,item:tt,components:{Icon:Ue}}):Ht(ie)&&(ut=ie(ut,{index:ke,...tt})),ut},Le=(Me,qe)=>{let tt=Me;return ae&&qe.item.content&&(tt=c.createElement(Wn,{destroyOnHidden:!0,title:qe.item.content},Me)),c.createElement(Om,{component:"Steps",disabled:qe.item.disabled||!T,colorSource:i==="filled"?"color":null},tt)},Pe=Q==="panel"?Me=>c.createElement(c.Fragment,null,Me,c.createElement(yk,{prefixCls:J})):void 0,ye={[Y("items-offset")]:`${w}`,...Z,...s},Ie=K(V,`${J}-${i}`,{[`${J}-${Q}`]:Q!=="dot"?Q:!1,[`${J}-rtl`]:B==="rtl",[`${J}-dot`]:se,[`${J}-ellipsis`]:C,[`${J}-max-count`]:pe,[`${J}-with-progress`]:re!==void 0,[`${J}-small`]:G==="small"},n,o,I,D),De=Me=>{const qe=ve[Me];T&&qe&&qe.originIndex>=0&&T(M+qe.originIndex)};return c.createElement(bk,{...P,prefixCls:J,className:Ie,style:ye,classNames:Se,styles:Te,orientation:fe,titlePlacement:oe,components:q,initial:0,current:Ce,items:he,onChange:T?De:void 0,iconRender:Ee,itemRender:Le,itemWrapperRender:Pe})};function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l0.apply(this,arguments)}const wM=c.forwardRef(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:o,disabled:s,loadingIcon:i,checkedChildren:u,unCheckedChildren:m,onClick:h,onChange:p,onKeyDown:g,styles:b,classNames:y,...S},$)=>{const[C,j]=hr(o??!1,n);function w(M,T){let O=C;return s||(O=M,j(O),p?.(O,T)),O}function R(M){M.which===ct.LEFT?w(!1,M):M.which===ct.RIGHT&&w(!0,M),g?.(M)}function E(M){const T=w(!C,M);h?.(T,M)}const N=K(e,t,{[`${e}-checked`]:C,[`${e}-disabled`]:s});return c.createElement("button",l0({},S,{type:"button",role:"switch","aria-checked":C,disabled:s,className:N,ref:$,onKeyDown:R,onClick:E}),i,c.createElement("span",{className:`${e}-inner`},c.createElement("span",{className:K(`${e}-inner-checked`,y?.content),style:b?.content},u),c.createElement("span",{className:K(`${e}-inner-unchecked`,y?.content),style:b?.content},m)))});wM.displayName="Switch";const qk=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:s,innerMinMarginSM:i,innerMaxMarginSM:u,handleSizeSM:m,calc:h}=e,p=`${t}-inner`,g=le(h(m).add(h(o).mul(2)).equal()),b=le(h(u).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:s,height:n,lineHeight:le(n),[`${t}-inner`]:{paddingInlineStart:u,paddingInlineEnd:i,[`${p}-checked, ${p}-unchecked`]:{minHeight:n},[`${p}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${b})`,marginInlineEnd:`calc(100% - ${g} + ${b})`},[`${p}-unchecked`]:{marginTop:h(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:m,height:m},[`${t}-loading-icon`]:{top:h(h(m).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:u,[`${p}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${p}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${b})`,marginInlineEnd:`calc(-100% + ${g} - ${b})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${le(h(m).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${p}`]:{[`${p}-unchecked`]:{marginInlineStart:h(e.marginXXS).div(2).equal(),marginInlineEnd:h(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${p}`]:{[`${p}-checked`]:{marginInlineStart:h(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:h(e.marginXXS).div(2).equal()}}}}}}},Wk=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Uk=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:s,handleSize:i,calc:u}=e,m=`${t}-handle`;return{[t]:{[m]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,...Pc(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:u(i).div(2).equal(),boxShadow:s,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...OI()}},[`&${t}-checked ${m}`]:{insetInlineStart:`calc(100% - ${le(u(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${m}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${m}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Gk=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:s,innerMaxMargin:i,handleSize:u,switchDuration:m,calc:h}=e,p=`${t}-inner`,g=le(h(u).add(h(o).mul(2)).equal()),b=le(h(i).mul(2).equal());return{[t]:{[p]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:s,transition:["padding-inline-start","padding-inline-end"].map(y=>`${y} ${m} ease-in-out`).join(", "),...Pc(),[`${p}-checked, ${p}-unchecked`]:{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(y=>`${y} ${m} ease-in-out`).join(", "),...Pc()},[`${p}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${b})`,marginInlineEnd:`calc(100% - ${g} + ${b})`},[`${p}-unchecked`]:{marginTop:h(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${p}`]:{paddingInlineStart:s,paddingInlineEnd:i,[`${p}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${p}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${b})`,marginInlineEnd:`calc(-100% + ${g} - ${b})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${p}`]:{[`${p}-unchecked`]:{marginInlineStart:h(o).mul(2).equal(),marginInlineEnd:h(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${p}`]:{[`${p}-checked`]:{marginInlineStart:h(o).mul(-1).mul(2).equal(),marginInlineEnd:h(o).mul(2).equal()}}}}}},Xk=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:{...Ln(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:le(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...Pc(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...qo(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},Kk=e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:s}=e,i=t*n,u=o/2,m=2,h=i-m*2,p=u-m*2;return{trackHeight:i,trackHeightSM:u,trackMinWidth:h*2+m*4,trackMinWidthSM:p*2+m*2,trackPadding:m,handleBg:s,handleSize:h,handleSizeSM:p,handleShadow:`0 2px 4px 0 ${new On("#00230b").setA(.2).toRgbString()}`,innerMinMargin:h/2,innerMaxMargin:h+m+m*2,innerMinMarginSM:p/2,innerMaxMarginSM:p+m+m*2}},Yk=an("Switch",e=>{const t=rn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xk(t),Gk(t),Uk(t),Wk(t),qk(t)]},Kk),Qk=c.forwardRef((e,t)=>{const{prefixCls:n,size:o,disabled:s,loading:i,className:u,rootClassName:m,style:h,checked:p,value:g,defaultChecked:b,defaultValue:y,onChange:S,styles:$,classNames:C,...j}=e,[w,R]=hr(b??y??!1,p??g),{getPrefixCls:E,direction:N,className:M,style:T,classNames:O,styles:P}=en("switch"),_=c.useContext(no),L=(s??_)||i,A=E("switch",n),[B,V]=Yk(A),Z=Mr(o),W={...e,size:Z,disabled:L},H=dn(T),q=dn(h),[U,J]=sn([O,C],[P,H,$,q],{props:W}),k=c.createElement("div",{className:K(`${A}-handle`,U.indicator),style:J.indicator},i&&c.createElement(ll,{className:`${A}-loading-icon`})),I=K(M,{[`${A}-small`]:Z==="small",[`${A}-loading`]:i,[`${A}-rtl`]:N==="rtl"},u,m,U.root,B,V),D=(...Y)=>{R(Y[0]),S?.(...Y)};return c.createElement(Om,{component:"Switch",disabled:L},c.createElement(wM,{...j,classNames:U,styles:J,checked:w,onChange:D,prefixCls:A,className:I,style:J.root,disabled:L,ref:t,loadingIcon:k}))}),es=Qk;es.__ANT_SWITCH=!0;const Zk=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:s,calc:i}=e,u=i(o).sub(n).equal(),m=i(t).sub(n).equal();return{[s]:{...Ln(e),display:"inline-block",height:"auto",paddingInline:u,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${s}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${s}-close-icon`]:{marginInlineStart:m,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${s}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${s}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${s}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${s}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},"> svg":{verticalAlign:"middle",marginBlockEnd:"0.2em"},[`> ${e.iconCls} + span, > span + ${e.iconCls}, > svg + span, > span + svg`]:{marginInlineStart:u}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${s}-default`]:{color:e.solidTextColor}},[`${s}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${s}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${s}-solid, &${s}-filled`]:{color:e.colorTextDisabled,[`${s}-close-icon`]:{color:e.colorTextDisabled}},[`${s}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},Vy=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,s=e.fontSizeSM;return rn(e,{tagFontSize:s,tagLineHeight:le(o(e.lineHeightSM).mul(s).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},qy=e=>{const t=e4(new Qf(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new On(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},Wy=an("Tag",e=>{const t=Vy(e);return Zk(t)},qy),EM=c.forwardRef((e,t)=>{const{prefixCls:n,style:o,className:s,checked:i,children:u,icon:m,onChange:h,onClick:p,onKeyDown:g,disabled:b,...y}=e,{getPrefixCls:S,tag:$}=c.useContext(vt),C=c.useContext(no),j=b??C,w=O=>{j||(h?.(!i),p?.(O))},R=O=>{g?.(O),!(O.defaultPrevented||j)&&O.key===" "&&(O.preventDefault(),h?.(!i))},E=S("tag",n),[N,M]=Wy(E),T=K(E,`${E}-checkable`,{[`${E}-checkable-checked`]:i,[`${E}-checkable-disabled`]:j},$?.className,s,N,M);return c.createElement("span",{...y,ref:t,role:"checkbox","aria-checked":i,"aria-disabled":j||void 0,tabIndex:j?-1:0,style:{...o,...$?.style},className:T,onClick:w,onKeyDown:R},m,c.createElement("span",null,u))}),Jk=ue.forwardRef((e,t)=>{const{id:n,prefixCls:o,rootClassName:s,className:i,style:u,classNames:m,styles:h,disabled:p,options:g,value:b,defaultValue:y,onChange:S,multiple:$,...C}=e,{getPrefixCls:j,direction:w,className:R,style:E,classNames:N,styles:M}=en("tag"),T=j("tag",o),O=`${T}-checkable-group`,P=Rr(T),[_,L]=Wy(T,P),A=dn(E),B=dn(u),[V,Z]=sn([N,m],[M,A,h,B],{props:e}),W=c.useMemo(()=>Array.isArray(g)?g.map(I=>Ot(I)?I:{value:I,label:I}):[],[g]),[H,q]=hr(y,b),U=(I,D)=>{let Y=null;if($){const G=H||[];Y=I?[].concat(Rn(G),[D.value]):G.filter(X=>X!==D.value)}else Y=I?D.value:null;q(Y),S?.(Y)},J=ue.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:J.current}));const k=br(C,{aria:!0,data:!0});return ue.createElement("div",{...k,className:K(O,R,s,{[`${O}-disabled`]:p,[`${O}-rtl`]:w==="rtl"},_,L,i,V.root),style:Z.root,id:n,ref:J},W.map(I=>ue.createElement(EM,{key:I.value,className:K(`${O}-item`,V.item,I.className),style:{...Z.item,...I.style},checked:$?(H||[]).includes(I.value):H===I.value,onChange:D=>U(D,I),disabled:p},I.label)))});function eV(e,t){const{color:n,variant:o,bordered:s}=e;return c.useMemo(()=>{const i=n?.endsWith("-inverse");let u;o?u=o:i?u="solid":s===!1?u="filled":u=t||"filled";let m=i?n?.replace("-inverse",""):n;m===void 0&&u==="solid"&&(m="default");const h=Dm(m),p=uB(m),g={};if(!h&&!p&&m)if(u==="solid")g.backgroundColor=n;else{const b=new On(m).toHsl();b.l=.95,g.backgroundColor=new On(b).toHexString(),g.color=n,u==="outlined"&&(g.borderColor=n)}return[u,m,h,p,g]},[n,o,s,t])}const tV=e=>jm(e,(t,{textColor:n,lightBorderColor:o,lightColor:s,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:s,borderColor:o,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:i,borderColor:i,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:s,color:n}}})),nV=Xs(["Tag","preset"],e=>{const t=Vy(e);return tV(t)},qy);function rV(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const nf=(e,t,n)=>{const o=rV(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${o}Bg`],borderColor:e[`color${o}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${o}Bg`],color:e[`color${n}`]}}}},oV=Xs(["Tag","status"],e=>{const t=Vy(e);return[nf(t,"success","Success"),nf(t,"processing","Info"),nf(t,"error","Error"),nf(t,"warning","Warning")]},qy),aV=c.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:s,style:i,children:u,icon:m,color:h,variant:p,onClose:g,bordered:b,disabled:y,href:S,target:$,styles:C,classNames:j,...w}=e,{getPrefixCls:R,direction:E,className:N,variant:M,style:T,classNames:O,styles:P}=en("tag"),[_,L,A,B,V]=eV(e,M),Z=A||B,W=c.useContext(no),H=y??W,{tag:q}=c.useContext(vt),[U,J]=c.useState(!0),k=Mn(w,["closeIcon","closable"]),I={...e,color:L,variant:_,disabled:H},[D,Y]=sn([O,j],[P,C],{props:I}),G=c.useMemo(()=>{let he={...Y.root,...T,...i};return H||(he={...V,...he}),he},[Y.root,T,i,V,H]),X=R("tag",n),[ee,Q]=Wy(X),ae=K(X,N,D.root,`${X}-${_}`,{[`${X}-${L}`]:Z,[`${X}-hidden`]:!U,[`${X}-rtl`]:E==="rtl",[`${X}-disabled`]:H},o,s,ee,Q),se=he=>{H||(he.stopPropagation(),g?.(he),!he.defaultPrevented&&(S&&he.preventDefault(),J(!1)))},ie=he=>{(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),he.currentTarget.click())},[,fe]=ny(os(e),os(q),{closable:!1,closeIconRender:he=>{const te=c.createElement("span",{role:"button",tabIndex:H?-1:0,"aria-disabled":H||void 0,className:K(`${X}-close-icon`,D.close),onClick:se,onKeyDown:ie,style:Y.close},he);return wj(he,te,Se=>({onClick:Te=>{Se?.onClick?.(Te),se(Te)},onKeyDown:Te=>{Se?.onKeyDown?.(Te),Te.defaultPrevented||ie(Te)},role:"button",tabIndex:H?-1:0,"aria-disabled":H||void 0,className:K(Se?.className,`${X}-close-icon`,D.close),style:{...Y.close,...Se?.style}}))}}),oe=Ht(w.onClick)||u&&u.type==="a",re=Vr(m,{className:K(c.isValidElement(m)?m.props?.className:void 0,D.icon),style:Y.icon}),pe=re?c.createElement(c.Fragment,null,re,u&&c.createElement("span",{className:D.content,style:Y.content},u)):u,ve=S?"a":"span",Ce=c.createElement(ve,{...k,ref:t,className:ae,style:G,href:H?void 0:S,target:$,onClick:H?void 0:k.onClick,...S&&H?{"aria-disabled":!0}:{}},pe,fe,A&&c.createElement(nV,{key:"preset",prefixCls:X}),B&&c.createElement(oV,{key:"status",prefixCls:X}));return oe?c.createElement(Om,{component:"Tag"},Ce):Ce}),ha=aV;ha.CheckableTag=EM;ha.CheckableTagGroup=Jk;var rf={},d2;function sV(){if(d2)return rf;d2=1,Object.defineProperty(rf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};return rf.default=e,rf}var iV=sV();const lV=jt(iV);function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c0.apply(this,arguments)}const cV=(e,t)=>c.createElement(It,c0({},e,{ref:t,icon:lV})),Uy=c.forwardRef(cV);var of={},f2;function uV(){if(f2)return of;f2=1,Object.defineProperty(of,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};return of.default=e,of}var dV=uV();const fV=jt(dV);function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u0.apply(this,arguments)}const mV=(e,t)=>c.createElement(It,u0({},e,{ref:t,icon:fV})),NM=c.forwardRef(mV);var af={},m2;function pV(){if(m2)return af;m2=1,Object.defineProperty(af,"__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 af.default=e,af}var hV=pV();const gV=jt(hV);function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d0.apply(this,arguments)}const bV=(e,t)=>c.createElement(It,d0({},e,{ref:t,icon:gV})),jM=c.forwardRef(bV);var sf={},p2;function vV(){if(p2)return sf;p2=1,Object.defineProperty(sf,"__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 sf.default=e,sf}var yV=vV();const xV=jt(yV);function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},f0.apply(this,arguments)}const SV=(e,t)=>c.createElement(It,f0({},e,{ref:t,icon:xV})),CV=c.forwardRef(SV);var lf={},h2;function $V(){if(h2)return lf;h2=1,Object.defineProperty(lf,"__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 lf.default=e,lf}var wV=$V();const EV=jt(wV);function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m0.apply(this,arguments)}const NV=(e,t)=>c.createElement(It,m0({},e,{ref:t,icon:EV})),RM=c.forwardRef(NV);var cf={},g2;function jV(){if(g2)return cf;g2=1,Object.defineProperty(cf,"__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 cf.default=e,cf}var RV=jV();const MV=jt(RV);function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p0.apply(this,arguments)}const TV=(e,t)=>c.createElement(It,p0({},e,{ref:t,icon:MV})),Gy=c.forwardRef(TV);var uf={},b2;function OV(){if(b2)return uf;b2=1,Object.defineProperty(uf,"__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 uf.default=e,uf}var zV=OV();const AV=jt(zV);function h0(){return h0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h0.apply(this,arguments)}const IV=(e,t)=>c.createElement(It,h0({},e,{ref:t,icon:AV})),Xy=c.forwardRef(IV);var df={},v2;function PV(){if(v2)return df;v2=1,Object.defineProperty(df,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};return df.default=e,df}var LV=PV();const _V=jt(LV);function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},g0.apply(this,arguments)}const BV=(e,t)=>c.createElement(It,g0({},e,{ref:t,icon:_V})),Ky=c.forwardRef(BV);var ff={},y2;function DV(){if(y2)return ff;y2=1,Object.defineProperty(ff,"__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 ff.default=e,ff}var HV=DV();const FV=jt(HV);function b0(){return b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},b0.apply(this,arguments)}const kV=(e,t)=>c.createElement(It,b0({},e,{ref:t,icon:FV})),hl=c.forwardRef(kV);var mf={},x2;function VV(){if(x2)return mf;x2=1,Object.defineProperty(mf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};return mf.default=e,mf}var qV=VV();const WV=jt(qV);function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v0.apply(this,arguments)}const UV=(e,t)=>c.createElement(It,v0({},e,{ref:t,icon:WV})),GV=c.forwardRef(UV);var pf={},S2;function XV(){if(S2)return pf;S2=1,Object.defineProperty(pf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};return pf.default=e,pf}var KV=XV();const YV=jt(KV);function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y0.apply(this,arguments)}const QV=(e,t)=>c.createElement(It,y0({},e,{ref:t,icon:YV})),ZV=c.forwardRef(QV);var hf={},C2;function JV(){if(C2)return hf;C2=1,Object.defineProperty(hf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return hf.default=e,hf}var eq=JV();const tq=jt(eq);function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},x0.apply(this,arguments)}const nq=(e,t)=>c.createElement(It,x0({},e,{ref:t,icon:tq})),rq=c.forwardRef(nq);var gf={},$2;function oq(){if($2)return gf;$2=1,Object.defineProperty(gf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};return gf.default=e,gf}var aq=oq();const sq=jt(aq);function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S0.apply(this,arguments)}const iq=(e,t)=>c.createElement(It,S0({},e,{ref:t,icon:sq})),lq=c.forwardRef(iq);var bf={},w2;function cq(){if(w2)return bf;w2=1,Object.defineProperty(bf,"__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 bf.default=e,bf}var uq=cq();const dq=jt(uq);function C0(){return C0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C0.apply(this,arguments)}const fq=(e,t)=>c.createElement(It,C0({},e,{ref:t,icon:dq})),mq=c.forwardRef(fq);var vf={},E2;function pq(){if(E2)return vf;E2=1,Object.defineProperty(vf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};return vf.default=e,vf}var hq=pq();const gq=jt(hq);function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$0.apply(this,arguments)}const bq=(e,t)=>c.createElement(It,$0({},e,{ref:t,icon:gq})),vq=c.forwardRef(bq);var yf={},N2;function yq(){if(N2)return yf;N2=1,Object.defineProperty(yf,"__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 yf.default=e,yf}var xq=yq();const Sq=jt(xq);function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},w0.apply(this,arguments)}const Cq=(e,t)=>c.createElement(It,w0({},e,{ref:t,icon:Sq})),$q=c.forwardRef(Cq);var xf={},j2;function wq(){if(j2)return xf;j2=1,Object.defineProperty(xf,"__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 xf.default=e,xf}var Eq=wq();const Nq=jt(Eq);function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},E0.apply(this,arguments)}const jq=(e,t)=>c.createElement(It,E0({},e,{ref:t,icon:Nq})),su=c.forwardRef(jq);var Sf={},R2;function Rq(){if(R2)return Sf;R2=1,Object.defineProperty(Sf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};return Sf.default=e,Sf}var Mq=Rq();const Tq=jt(Mq);function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},N0.apply(this,arguments)}const Oq=(e,t)=>c.createElement(It,N0({},e,{ref:t,icon:Tq})),Yy=c.forwardRef(Oq);var Cf={},M2;function zq(){if(M2)return Cf;M2=1,Object.defineProperty(Cf,"__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 Cf.default=e,Cf}var Aq=zq();const Iq=jt(Aq);function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},j0.apply(this,arguments)}const Pq=(e,t)=>c.createElement(It,j0({},e,{ref:t,icon:Iq})),Lq=c.forwardRef(Pq);var $f={},T2;function _q(){if(T2)return $f;T2=1,Object.defineProperty($f,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};return $f.default=e,$f}var Bq=_q();const Dq=jt(Bq);function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},R0.apply(this,arguments)}const Hq=(e,t)=>c.createElement(It,R0({},e,{ref:t,icon:Dq})),Fq=c.forwardRef(Hq);var wf={},O2;function kq(){if(O2)return wf;O2=1,Object.defineProperty(wf,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"};return wf.default=e,wf}var Vq=kq();const qq=jt(Vq);function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},M0.apply(this,arguments)}const Wq=(e,t)=>c.createElement(It,M0({},e,{ref:t,icon:qq})),Uq=c.forwardRef(Wq);var Ef={},z2;function Gq(){if(z2)return Ef;z2=1,Object.defineProperty(Ef,"__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 Ef.default=e,Ef}var Xq=Gq();const Kq=jt(Xq);function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},T0.apply(this,arguments)}const Yq=(e,t)=>c.createElement(It,T0({},e,{ref:t,icon:Kq})),Qy=c.forwardRef(Yq),Qq=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,Zq={USE_PROFILES:{html:!0},FORBID_TAGS:["style","iframe","object","embed","form","input","button"],FORBID_ATTR:["style"],ALLOWED_URI_REGEXP:Qq},Jq=/<!--\s*comet-native:acceptance-evidence:start\s*-->\s*([\s\S]*?)\s*<!--\s*comet-native:acceptance-evidence:end\s*-->/gu;function jr(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function eW(){const e=new Map;return{slug(t){let n=String(t??"").toLowerCase().replace(/[^\w\u4e00-\u9fa5\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");n||(n="heading");const o=e.get(n)??0;return e.set(n,o+1),o===0?n:`${n}-${o}`}}}async function fa(e){const t=(await ga(async()=>{const{default:o}=await import("./purify.es-Cz4mVeUR.js");return{default:o}},[])).default;let n=t;if(typeof window>"u"||!window.document){const{JSDOM:o}=await ga(async()=>{const{JSDOM:s}=await import("jsdom");return{JSDOM:s}},[]);n=t(new o("").window)}return n.sanitize(String(e??""),Zq)}function Zy(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Jy(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function MM(e){return e==null?"":String(e)}function TM(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function tW(e){return e.includes("/check-receipts/")?"自动化检查回执":e.includes("/manual-evidence/")?"人工验证回执":"证据文件"}function nW(e){if(!Array.isArray(e)||!e.every(Zy))return null;const t=e.length,n=e.filter(({status:m})=>m==="passed").length,o=e.filter(({status:m})=>m==="failed").length,s=new Set(e.flatMap(({evidence_refs:m})=>Array.isArray(m)?m.filter(h=>typeof h=="string"&&h.trim()):[])),i=o>0?"有未通过的验收项,需要继续处理。":"全部验收项已通过。",u=[...s].map(m=>`<li><span>${tW(m)}</span><code>${jr(m)}</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>${n}</strong><span>已通过</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-failed"><strong>${o}</strong><span>需关注</span></div>`,`<div class="acceptance-evidence-stat"><strong>${s.size}</strong><span>证据引用</span></div>`,"</section>",`<p class="acceptance-evidence-note">${i} 原始证据已保留在验证文件中。</p>`,u?`<section class="acceptance-evidence-references"><h3>引用证据</h3><ul>${u}</ul></section>`:""].join("")}function rW(e){return String(e??"").replace(Jq,(t,n)=>{try{return nW(JSON.parse(n))??t}catch{return t}})}function oW(e,{className:t="yaml-kv-table"}={}){const n=e.map(([o,s])=>{const i=Jy(s)?MM(s):TM(s);return`<tr><th scope="row">${jr(o)}</th><td>${jr(i)}</td></tr>`}).join("");return[`<table class="${jr(t)}">`,'<thead><tr><th scope="col">字段</th><th scope="col">值</th></tr></thead>',`<tbody>${n}</tbody>`,"</table>"].join("")}function OM(e){if(!Array.isArray(e)||e.length===0||!e.every(Zy))return!1;const t=Object.keys(e[0]).sort().join("\0");return e.every(n=>Object.keys(n).sort().join("\0")===t)}function zM(e,{className:t="json-array-table"}={}){const n=Object.keys(e[0]),o=n.map(i=>`<th scope="col">${jr(i)}</th>`).join(""),s=e.map(i=>`<tr>${n.map(m=>{const h=i[m],p=Jy(h)?MM(h):TM(h);return`<td>${jr(p)}</td>`}).join("")}</tr>`).join("");return[`<table class="${jr(t)}">`,`<thead><tr>${o}</tr></thead>`,`<tbody>${s}</tbody>`,"</table>"].join("")}function AM(e){const t=[],n=[];for(const[s,i]of Object.entries(e)){if(Jy(i)){t.push([s,i]);continue}if(OM(i)){n.push(`<h3 id="${jr(s)}">${jr(s)}</h3>${zM(i)}`);continue}t.push([s,i])}const o=[];return t.length>0&&o.push(oW(t)),o.push(...n),o.join(`
|
|
249
|
-
`)||"<p>这个产物是空文件。</p>"}async function O0(e){const t=String(e??"");if(!t.trim())return fa("<p>这个产物是空文件。</p>");try{const{parse:n}=await ga(async()=>{const{parse:s}=await import("./index-DlSYK56b.js");return{parse:s}},[]),o=n(t);return o==null?fa("<p>这个产物是空文件。</p>"):typeof o!="object"||Array.isArray(o)?as(["```yaml",t.replace(/\n$/,""),"```"].join(`
|
|
250
|
-
`)):fa(AM(o))}catch{return as(["```yaml",t.replace(/\n$/,""),"```"].join(`
|
|
251
|
-
`))}}async function z0(e){const t=String(e??"");if(!t.trim())return fa("<p>这个产物是空文件。</p>");try{const n=JSON.parse(t);return n===null?fa("<p>这个产物是空文件。</p>"):OM(n)?fa(zM(n)):Zy(n)?fa(AM(n)):as(["```json",JSON.stringify(n,null,2),"```"].join(`
|
|
252
|
-
`))}catch{return as(["```json",t.replace(/\n$/,""),"```"].join(`
|
|
253
|
-
`))}}async function as(e){try{const{Marked:t}=await ga(async()=>{const{Marked:m}=await import("./marked.esm-DECB3bxB.js");return{Marked:m}},[]);let n=null;try{n=(await ga(async()=>{const{default:m}=await import("./index-CCKHH_A9.js");return{default:m}},[])).default}catch{}const o=eW(),s=new t;s.use({renderer:{heading({text:m,depth:h,tokens:p}){const g=o.slug(m),b=p&&this.parser?.parseInline?this.parser.parseInline(p):jr(m);return`<h${h} id="${jr(g)}">${b}</h${h}>`},code({text:m,lang:h}){if(h==="mermaid")return`<div class="mermaid">${jr(m)}</div>`;if(n){const p=h&&n.getLanguage(h)?h:"plaintext",g=n.highlight(m,{language:p}).value;return`<pre><code class="hljs language-${jr(p)}">${g}</code></pre>`}return`<pre><code>${jr(m)}</code></pre>`}}});const i=s.parse(rW(e)),u=typeof i=="string"?i:String(i);return fa(u)}catch{return fa(`<pre>${jr(e)}</pre>`)}}function IM(e){const t=e.querySelectorAll("h1, h2, h3"),n=[];return t.forEach(o=>{const s=o.id,i=o.textContent??"",u=parseInt(o.tagName[1],10);s&&i&&n.push({id:s,text:i,depth:u})}),n}async function PM(e){const t=e.querySelectorAll("div.mermaid");if(t.length!==0)try{const n=(await ga(async()=>{const{default:o}=await import("./mermaid.core-B0EPSHs2.js").then(s=>s.bo);return{default:o}},__vite__mapDeps([0,1]))).default;n.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif'}),await n.run({nodes:Array.from(t)})}catch{}}function Ui(e,t=800,n=e){const[o,s]=c.useState(0);return c.useEffect(()=>{if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){s(e);return}const u=0,m=e,h=performance.now();let p=0;s(0);const g=b=>{const y=Math.min(1,(b-h)/t),S=1-Math.pow(1-y,3);s(u+m*S),y<1&&(p=requestAnimationFrame(g))};return p=requestAnimationFrame(g),()=>{cancelAnimationFrame(p)}},[t,n,e]),o}const aW="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 LM({left:e,center:t,right:n,leftClassName:o="",stableFrame:s=!1}){const i=c.useRef(null),[u,m]=c.useState(0);c.useLayoutEffect(()=>{if(s){m(0);return}const p=i.current;if(!p)return;const g=()=>{const y=Math.ceil(p.getBoundingClientRect().height);m(S=>S===y?S:y)};if(g(),typeof ResizeObserver>"u")return;const b=new ResizeObserver(g);return b.observe(p),()=>b.disconnect()},[s]);const h=u>0?{"--dashboard-center-height":`${u}px`}:void 0;return f.jsxs("div",{className:`${aW} ${s?"dashboard-workspace-region-stable":""}`.trim(),style:h,children:[f.jsx("div",{className:`dashboard-workspace-side dashboard-workspace-left ${o}`.trim(),children:e}),f.jsx("div",{ref:i,className:"dashboard-workspace-center min-w-0",children:t}),f.jsx("div",{className:"dashboard-workspace-side dashboard-workspace-right xl:col-start-2 2xl:col-start-auto",children:n})]})}const Ff=[["shape","Shape"],["build","Build"],["verify","Verify"],["archive","Archive"]],pm=Object.fromEntries(Ff),Vc={shape:"需求澄清",building:"构建中","verify-ready":"等待验证",repairing:"修复中","archive-ready":"可归档","await-user":"等待用户",blocked:"已阻塞",done:"已完成"},Um={builder:"Builder",runtime:"Runtime",verifier:"Verifier"},sW={building:"构建",checking:"执行检查",verifying:"独立验证",archiving:"归档"},_M={pending:"待验证",pass:"验收通过",fail:"验证失败",blocked:"验证阻塞"},iW={"host-attested":{label:"已完成独立验证",description:"可信运行环境已经完成独立验证。",tone:"ok"},"skill-coordinated":{label:"已完成检查,但需要你确认验证结果",description:"检查已完成,但系统无法确认验证者是否独立,需要你确认。",tone:"warn"},"semantic-verification-unavailable":{label:"无法完成完整验证,只完成了自动检查",description:"没有可用的语义验证,当前只有 Runtime 自动检查结果。",tone:"danger"},"user-confirmed-degraded":{label:"你已确认接受不完整验证结果",description:"你已明确接受只有自动检查、缺少语义验证的结果。",tone:"warn"}};function lW(e){const t=e.verification?.assurance,n=iW[t]??null;return t==="skill-coordinated"&&(e.status==="archived"||e.phase==="archive"&&e.loop?.nextAction==="archive")?{...n,label:"已完成检查,验证结果已确认",description:"检查已完成,你已经确认接受这次验证结果。"}:n}const cW={passed:"通过",failed:"失败",blocked:"阻塞",pending:"待验证"},uW={pass:"通过",fail:"失败",blocked:"阻塞","execution-error":"执行异常",recovery:"恢复"},A0={current:"与当前 YAML 一致",idle:"当前无执行任务",missing:"可从 YAML 恢复","version-mismatch":"本机状态已过期,可从 YAML 恢复",invalid:"本机状态不可读,可从 YAML 恢复",archived:"归档只读"},dW={none:"当前格式",required:"需要迁移",failed:"迁移失败","legacy-read-only":"旧归档只读",invalid:"状态无效"},fW={pending:"等待依赖",ready:"可开始",active:"进行中",done:"已完成",blocked:"已阻塞"},mW={pending:"neutral",ready:"info",active:"warn",done:"ok",blocked:"danger"},Xg=5;function Fo(e,t="—"){return e?.text||t}function Qa(e){return e.locator??`${e.status}:${e.archiveName??""}:${e.name}`}function BM(e){return!e.locator||!e.changeStatus?null:{...e,workflow:"native",locator:e.locator,name:e.name,status:e.changeStatus,...e.archiveName?{archiveName:e.archiveName}:{},workspace:e.workspace,children:[]}}function DM(e){const t=e.acceptance;if(!t?.total)return null;const n=t.total-t.pending;return{resolved:n,total:t.total,percent:Math.round(n/t.total*100),complete:t.pending===0}}function pW({native:e,git:t,query:n,tab:o="active",onTab:s,pagedChanges:i=null,total:u,hasMore:m=!1,pageLoading:h=!1,onLoadMore:p,selectedDetail:g=null,detailLoading:b=!1,detailError:y=null,onSelect:S,onRetryDetail:$,onPreview:C,onCopyChangeName:j}){const w=Array.isArray(i),R=c.useRef(null),E=c.useRef(null),[N,M]=c.useState(Xg),T=n.trim().toLowerCase(),O=c.useMemo(()=>{const I=w?i:e?.changes??[];return w?I:I.filter(D=>{const Y=o==="all"||D.status===o,G=!T||[D.name,D.workspace?.label,D.workspace?.branch,...(D.children??[]).flatMap(X=>[X.name,X.workspace?.label,X.workspace?.branch,X.message])].filter(Boolean).join(" ").toLowerCase().includes(T);return Y&&G})},[e,T,i,w,o]),[P,_]=c.useState(null);c.useEffect(()=>M(Xg),[T,w,o]);const L=c.useCallback(()=>{if(w){!h&&m&&p?.();return}M(I=>Math.min(I+Xg,O.length))},[m,p,h,w,O.length]),A=c.useMemo(()=>w?O:O.slice(0,N),[w,O,N]),B=w?m:A.length<O.length,V=c.useMemo(()=>A.flatMap(I=>[I,...(I.children??[]).map(BM).filter(Boolean)]),[A]);c.useEffect(()=>{if(!w||!B)return;const I=E.current;if(!I)return;const D=R.current?.closest(".dashboard-content-shell"),Y=D&&D.scrollHeight>D.clientHeight?D:null,G=new IntersectionObserver(([ee])=>{ee.isIntersecting&&!h&&L()},{root:Y,rootMargin:"0px 0px 32px"});G.observe(I);const X=window.requestAnimationFrame(()=>{const ee=I.getBoundingClientRect(),Q=Y?.getBoundingClientRect(),ae=Q?.top??0,se=Q?.bottom??window.innerHeight;ee.top<=se+32&&ee.bottom>=ae&&!h&&L()});return()=>{window.cancelAnimationFrame(X),G.disconnect()}},[B,L,h,w]),c.useEffect(()=>{const I=R.current;if(!I||!B)return;const D=window.requestAnimationFrame(()=>{const Y=I.scrollHeight<=I.clientHeight+1,X=I.getBoundingClientRect().bottom<=window.innerHeight+32;Y&&(window.innerWidth>=1024||X)&&L()});return()=>window.cancelAnimationFrame(D)},[B,L,N]),c.useEffect(()=>{if(!B||window.innerWidth>=1024)return;const I=()=>{const D=R.current;!D||h||D.getBoundingClientRect().bottom<=window.innerHeight+32&&L()};return window.addEventListener("scroll",I,{passive:!0}),()=>window.removeEventListener("scroll",I)},[B,L,h]);const Z=c.useCallback(I=>{if(!B||h)return;const{scrollTop:D,clientHeight:Y,scrollHeight:G}=I.currentTarget;D+Y>=G-32&&L()},[B,L,h]);c.useEffect(()=>{_(I=>V.some(D=>Qa(D)===I)?I:V[0]?Qa(V[0]):null)},[V]);const W=V.find(I=>Qa(I)===P)??V[0]??null;c.useEffect(()=>{W&&S?.(W)},[S,W]);const H=w?g:W,q=!!(W&&!H&&(b||!y)),U=!!(e&&e.totalChangeCount>0),J=!h&&A.length===0,k=h&&A.length===0;return f.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[f.jsx(I2,{title:"项目概览",hint:e?`Native 状态生成于 ${kf(e.generatedAt)}`:"当前项目尚无 Native 状态"}),f.jsx(bW,{change:H??W}),f.jsx(vW,{native:e,loadedChanges:A}),f.jsx(I2,{title:"Native 变更工作区",hint:"查看循环、验收、阻塞与恢复状态"}),f.jsx(LM,{stableFrame:!0,leftClassName:"native-workspace-left",left:f.jsx(xW,{changes:A,total:w?u??O.length:O.length,selectedKey:W?Qa(W):null,query:n,tab:o,onTab:s,onSelect:I=>_(Qa(I)),listRef:R,loadMoreRef:E,hasMore:B,pageLoading:h,onScroll:Z}),center:J?f.jsx(A2,{native:e,tab:o,query:n,onTab:s,emptyProject:!U}):k||q?f.jsx(CW,{}):H?f.jsx(SW,{change:H,onPreview:C,onCopyChangeName:j}):y?f.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:[f.jsxs("p",{role:"alert",children:["Native 变更详情加载失败:",y.reason]}),f.jsx(pt,{className:"mt-4",onClick:$,children:"重新加载"})]}):f.jsx(A2,{native:e,tab:o,query:n,onTab:s}),right:J?f.jsx(hW,{}):k||q?f.jsx(zW,{}):H?f.jsx(OW,{change:H,git:t}):null})]})}function A2({native:e,tab:t,query:n="",onTab:o,emptyProject:s=!1}){const i=(e?.archivedChangeCount??0)>0,u=(e?.activeChangeCount??0)>0,m=t==="active"&&!n.trim()&&i,h=t==="archived"&&!n.trim()&&u,p=s?"还没有 Native change":m?"当前没有活跃的 Native change":h?"还没有已归档的 Native change":"没有匹配的 Native change",g=s?"启动 Native 工作流后,变更进度、验收结果和恢复状态会集中显示在这里。":m?"当前工作区没有进行中的变更,你可以继续查看已归档的历史记录。":h?"当前还没有归档记录,你可以返回查看正在进行的变更。":"调整顶部搜索条件,或切换变更范围后再试。";return f.jsx("section",{className:"native-change-detail native-change-detail-empty min-w-0 rounded-lg border border-border bg-bg shadow-raised",children:f.jsxs("div",{className:"dashboard-workspace-empty-detail text-center",children:[f.jsx("span",{className:"native-workspace-empty-icon","aria-hidden":"true",children:f.jsx(hl,{})}),f.jsx("h3",{className:"mt-5 text-lg font-semibold tracking-tight",children:p}),f.jsx("p",{className:"mt-2 max-w-md text-sm leading-relaxed text-muted",children:g}),m?f.jsx(pt,{className:"mt-5",type:"primary",onClick:()=>o?.("archived"),children:"查看已归档变更"}):h?f.jsx(pt,{className:"mt-5",type:"primary",onClick:()=>o?.("active"),children:"查看活跃变更"}):null]})})}function hW(){return f.jsx("aside",{className:"dashboard-workspace-side-empty","aria-label":"Native 变更状态",children:f.jsxs("div",{children:[f.jsx("span",{className:"native-workspace-empty-icon","aria-hidden":"true",children:f.jsx(hl,{})}),f.jsx("h3",{children:"暂无变更数据"}),f.jsx("p",{children:"选择或创建 Native change 后,这里会显示恢复状态、阻塞信息和 Git 摘要。"})]})})}function gW(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?Fo(e.blockers[0].reason,"当前变更已阻塞。"):e.status==="archived"?"当前变更已经归档,可查看验收与循环历史。":e.loop?.nextAction??"Runtime 将根据当前 YAML 状态继续执行。":"当前没有可展示的 Native change。"}function bW({change:e}){return f.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[f.jsxs("div",{className:"dashboard-priority-title",children:[f.jsx(Gy,{"aria-hidden":"true"}),f.jsx("span",{children:"下一步建议"})]}),f.jsx("p",{children:gW(e)})]})}function I2({title:e,hint:t}){return f.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[f.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),f.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function vW({native:e,loadedChanges:t=[]}){const[n,o]=c.useState(0),s=e?.activeChangeCount??t.filter(g=>g.status==="active").length,i=t.filter(g=>g.loop?.stage==="archive-ready").length,u=t.filter(g=>g.localExecution?.status==="running").length,m=t.filter(g=>["fail","blocked"].includes(g.verificationResult)||(g.acceptance?.failed??0)>0||(g.acceptance?.blocked??0)>0).length,h=t.reduce((g,b)=>g+(b.acceptance?.pending??0),0),p=[["活跃变更",s,"当前 Native workflow",s?"进行中":"清零",hl],["可归档",i,"已加载的循环状态",i?"就绪":"暂无",Xy],["正在执行",u,"匹配当前 YAML 的本机任务",u?"运行中":"空闲",Qy],["失败或阻塞",m,"已加载的验收与验证",m?"需处理":"健康",su],["待验收项",h,"已加载的验收条目",h?"待验证":"已处理",CV]];return f.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:p.map(([g,b,y,S,$],C)=>f.jsx(yW,{label:g,value:b,note:y,tag:S,icon:$,tone:`dashboard-summary-tone-${C+1}`,selected:n===C,onClick:()=>o(C)},g))})}function yW({label:e,value:t,note:n,tag:o,icon:s,tone:i,selected:u,onClick:m}){const h=Ui(t,850,t);return f.jsxs("button",{type:"button","aria-pressed":u,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${i} ${u?"dashboard-summary-primary":""}`,onClick:m,children:[f.jsxs("div",{className:"dashboard-summary-card-top",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),f.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(h)})]}),f.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:f.jsx(s,{})})]}),f.jsx("span",{className:"dashboard-summary-status",children:o}),f.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:n})]})}function xW({changes:e,total:t,selectedKey:n,query:o,tab:s,onTab:i,onSelect:u,listRef:m,loadMoreRef:h,hasMore:p,pageLoading:g,onScroll:b}){const[y,S]=c.useState(()=>new Set),$=c.useRef(new Set),C=o.trim().toLowerCase();c.useEffect(()=>{const w=new Set(e.filter(R=>R.children?.length).map(R=>Qa(R)));S(R=>{const E=new Set([...R].filter(N=>w.has(N)));for(const N of e){const M=N.children??[];if(M.length===0)continue;const T=Qa(N),O=!$.current.has(T),P=M.some(L=>L.locator===n),_=C&&M.some(L=>[L.name,L.workspace?.label,L.workspace?.branch,L.message].filter(Boolean).join(" ").toLowerCase().includes(C));(P||_||O&&N.status==="active"&&M.some(({status:L})=>L!=="done"))&&E.add(T)}return E}),$.current=w},[e,C,n]);const j=c.useCallback(w=>{S(R=>{const E=new Set(R);return E.has(w)?E.delete(w):E.add(w),E})},[]);return f.jsxs("aside",{className:"native-changes-explorer flex min-h-0 flex-col rounded-lg border border-border bg-bg shadow-raised",children:[f.jsx("div",{className:"native-changes-explorer-header flex flex-none items-center border-b border-border-soft",children:f.jsxs("h3",{className:"font-semibold",children:["Changes Explorer ",f.jsx("span",{className:"native-changes-count",children:t})]})}),f.jsxs("div",{className:"native-changes-explorer-body flex min-h-0 flex-1 flex-col",children:[f.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(([w,R])=>f.jsx("button",{type:"button",role:"tab","aria-selected":s===w,className:`native-change-tab ${s===w?"active":""}`,onClick:()=>i(w),children:R},w))}),f.jsxs("div",{ref:m,className:"native-change-list min-h-0 flex-1 space-y-2 overflow-y-auto",onScroll:b,children:[e.length===0?g?f.jsx(P2,{}):f.jsx("div",{className:"py-8 text-center text-sm text-muted",children:s==="active"?"暂无活跃变更":s==="archived"?"暂无已归档变更":"没有匹配的 Native change"}):e.map(w=>{const R=w.children??[],E=R.length>0,N=Qa(w),M=E&&y.has(N),T=DW(w)??DM(w),O=`native-children-${w.workspace?.id??"local"}-${w.name.replace(/[^a-z0-9_-]/giu,"-")}`,P=R.some(_=>_.locator===n);return f.jsxs("div",{className:`native-change-list-item ${N===n?"selected":""} ${P?"has-selected-child":""}`,children:[f.jsxs("div",{className:"native-change-row-shell",children:[E?f.jsx("button",{type:"button",className:"native-change-disclosure","aria-label":`${M?"收起":"展开"} ${w.name} 的子变更`,"aria-expanded":M,"aria-controls":O,onClick:()=>j(N),children:M?f.jsx(oR,{}):f.jsx(ov,{})}):f.jsx("span",{className:"native-change-disclosure-spacer","aria-hidden":"true"}),f.jsx("button",{type:"button",className:"native-change-row",onClick:()=>u(w),children:f.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:"truncate font-semibold",children:w.name}),f.jsxs("div",{className:"mt-1 text-xs text-meta",children:[pm[w.phase]??"状态异常",E?` · ${T.resolved}/${T.total} 子变更`:w.loop?` · ${Vc[w.loop.stage]} · 第${w.loop.iteration}轮/第${w.loop.attempt}次`:""]}),w.workspace&&!w.workspace.current?f.jsx("span",{className:"dashboard-workspace-label mt-1 inline-flex max-w-full truncate",children:w.workspace.label}):null,T&&f.jsx("div",{className:`native-change-progress mt-1 ${T.complete?"complete":""}`,role:"progressbar","aria-valuenow":T.percent,"aria-valuemin":"0","aria-valuemax":"100",children:f.jsx("span",{style:{width:`${T.percent}%`}})})]}),f.jsx(Fr,{tone:HM(w.verificationResult),children:_M[w.verificationResult]??"状态未知"})]})})]}),M?f.jsx("div",{id:O,className:"native-child-change-list",role:"group",children:R.map(_=>{const L=BM(_),A=_.locator===n;return f.jsxs("button",{type:"button",className:`native-child-change-row ${A?"selected":""}`,disabled:!L,title:_.message??void 0,onClick:()=>L&&u(L),children:[f.jsx("span",{className:`native-child-status-dot native-child-status-${_.status}`,"aria-hidden":"true"}),f.jsxs("span",{className:"min-w-0 flex-1 text-left",children:[f.jsx("strong",{className:"block truncate font-medium",children:_.name}),f.jsxs("span",{className:"mt-0.5 block truncate text-[11px] text-meta",children:[_.phase?pm[_.phase]??_.phase:"尚未创建",_.workspace?.label?` · ${_.workspace.label}`:""]})]}),f.jsx(Fr,{tone:mW[_.status]??"neutral",children:fW[_.status]??_.status})]},_.name)})}):null]},N)}),p&&e.length>0&&f.jsx("div",{ref:h,className:"py-2 text-center text-xs text-meta","aria-live":"polite",children:g?f.jsx(P2,{compact:!0}):"继续下滑加载更多"})]})]})]})}function P2({compact:e=!1}){return f.jsx("div",{className:`native-change-list-skeleton ${e?"is-compact":""}`,"aria-label":e?"正在加载更多 Native 变更":"正在加载 Native 变更列表","aria-busy":"true",children:f.jsx(Sr,{active:!0,title:{width:e?"36%":"48%"},paragraph:{rows:e?1:6,width:e?"72%":["76%","58%","88%","66%","82%","54%"]}})})}function SW({change:e,onPreview:t,onCopyChangeName:n}){const[o,s]=c.useState(!1);return c.useEffect(()=>s(!1),[e.name]),f.jsxs("section",{className:"native-change-detail min-w-0 rounded-lg border border-border bg-bg shadow-raised",children:[f.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[f.jsx("h3",{className:"truncate text-base font-semibold",children:e.name}),f.jsx(Wn,{title:"复制 Change 名称",children:f.jsx(pt,{type:"text",size:"small",icon:o?f.jsx(dl,{}):f.jsx(jM,{}),"aria-label":o?"已复制 Change 名称":"复制 Change 名称",onClick:()=>n?.(e.name)?.then(()=>{s(!0),window.setTimeout(()=>s(!1),1600)})})})]}),f.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[f.jsx("span",{children:"native"}),f.jsx("span",{children:e.status==="archived"?`归档于 ${e.archivedAt??"未知时间"}`:`state v${e.stateVersion??"—"}`}),f.jsx("span",{children:dW[e.migration?.status]??"状态未知"}),e.loop?.actor&&f.jsxs("span",{children:["当前执行者 ",Um[e.loop.actor]]})]})]}),f.jsx(Fr,{tone:AW(e.phase),children:pm[e.phase]??"状态异常"})]}),f.jsxs("div",{className:"space-y-5 p-5",children:[f.jsx(TW,{change:e}),f.jsx(MW,{artifacts:e.artifacts,onPreview:t}),f.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f.jsx($W,{change:e}),f.jsx(wW,{change:e})]}),f.jsx(EW,{change:e}),f.jsx(NW,{change:e}),f.jsx(jW,{blockers:e.blockers??[]}),f.jsx(RW,{history:e.history??[],overflow:e.historyOverflow})]})]})}function CW(){return f.jsxs("section",{className:"native-change-detail native-change-detail-skeleton min-w-0 rounded-lg border border-border bg-bg shadow-raised","aria-label":"正在加载 Native 变更详情","aria-busy":"true",children:[f.jsx("div",{className:"border-b border-border-soft px-5 py-5",children:f.jsx(Sr,{active:!0,title:{width:"38%"},paragraph:{rows:1,width:"58%"}})}),f.jsxs("div",{className:"space-y-6 p-5",children:[f.jsx(Sr,{active:!0,title:{width:"24%"},paragraph:{rows:3}}),f.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f.jsx(Sr,{active:!0,title:{width:"42%"},paragraph:{rows:4}}),f.jsx(Sr,{active:!0,title:{width:"42%"},paragraph:{rows:4}})]}),f.jsx(Sr,{active:!0,title:{width:"28%"},paragraph:{rows:4}})]})]})}function $W({change:e}){const t=e.loop,n=e.localExecution;return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"循环与恢复"}),f.jsx(Fr,{tone:n?.status==="running"?"info":n?.reason==="invalid"?"danger":"neutral",children:n?.status==="running"?"正在执行":A0[n?.reason]??"状态未知"})]}),t?f.jsxs("dl",{className:"space-y-3 text-sm",children:[f.jsx(bo,{label:"循环阶段",value:Vc[t.stage]??t.stage}),f.jsx(bo,{label:"Goal cycle",value:`${t.goalCycle}`}),f.jsx(bo,{label:"轮次 / 尝试",value:`${t.iteration} / ${t.attempt}`}),f.jsx(bo,{label:"执行者",value:Um[t.actor]??"当前无执行者"}),f.jsx(bo,{label:"检查请求轮次",value:`${n?.requestCheckRounds??0}`})]}):f.jsx("p",{className:"text-sm leading-relaxed text-muted",children:"旧版归档不包含可移植 Loop 状态。"}),f.jsxs("div",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3",children:[f.jsx("div",{className:"text-[11px] font-medium text-meta",children:"恢复依据与下一步"}),f.jsx("div",{className:"mt-1 text-xs font-medium leading-relaxed text-fg-2",children:n?.recoverableFromStage?`可从 YAML 的 ${Vc[n.recoverableFromStage]??n.recoverableFromStage} 阶段恢复。`:t?.nextAction??A0[n?.reason]??"无后续动作。"})]}),e.builderHandoff&&f.jsxs("div",{className:"mt-3 border-t border-border-soft pt-3 text-xs",children:[f.jsxs("div",{className:"font-medium text-meta",children:["Builder handoff · 第 ",e.builderHandoff.iteration," 轮"]}),f.jsx("p",{className:"mt-1 leading-relaxed text-fg-2",children:Fo(e.builderHandoff.summary)})]}),(n?.checks??[]).length>0&&f.jsxs("div",{className:"mt-3 text-xs text-meta",children:["本机检查摘要:",n.checks.filter(o=>o.status==="passed").length," 通过 /"," ",n.checks.filter(o=>o.status==="failed").length," 失败 /"," ",n.checks.filter(o=>["planned","running"].includes(o.status)).length," ","进行中"]})]})}function wW({change:e}){const t=e.specs,n=t?.capabilities??[];return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"变更范围"}),f.jsxs("span",{className:"rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:[t?.total??0," 个 capability"]})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[f.jsx(Kg,{label:"新增",value:t?.create??0,tone:"info"}),f.jsx(Kg,{label:"修改",value:t?.modify??0,tone:"warn"}),f.jsx(Kg,{label:"删除",value:t?.remove??0,tone:"danger"})]}),f.jsx("div",{className:"mt-4 space-y-2",children:n.length===0?f.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚未声明 Spec 变更。"}):n.map(o=>f.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border-soft px-3 py-2",children:[f.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-2",children:o.capability}),f.jsx("span",{className:"text-[11px] text-meta",children:_W(o.operation)})]},`${o.capability}-${o.operation}`))})]})}function Kg({label:e,value:t,tone:n}){const o={info:"bg-info-soft text-info",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger"}[n];return f.jsxs("div",{className:"rounded-lg bg-surface-warm px-2 py-3",children:[f.jsx("div",{className:`text-lg font-bold tabular-nums ${t?o:"text-fg-2"}`,children:t}),f.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function EW({change:e}){const t=e.acceptance,n=DM(e);return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"验收状态"}),f.jsx(Fr,{tone:IW(t),children:n?`${n.percent}% 已处理`:"无可移植验收数据"})]}),n&&f.jsx("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface",children:f.jsx("span",{className:`block h-full rounded-full transition-[width] ${n.complete?"bg-success":"bg-accent"}`,style:{width:`${n.percent}%`}})}),f.jsxs("div",{className:"mt-4 grid grid-cols-4 gap-3 text-center",children:[f.jsx(Nf,{label:"通过",value:t?.passed??0}),f.jsx(Nf,{label:"失败",value:t?.failed??0}),f.jsx(Nf,{label:"阻塞",value:t?.blocked??0}),f.jsx(Nf,{label:"待验证",value:t?.pending??0})]}),(e.acceptanceItems??[]).length>0&&f.jsx("ul",{className:"mt-4 space-y-2 border-t border-border-soft pt-4",children:e.acceptanceItems.map(o=>f.jsxs("li",{className:"rounded-lg bg-surface px-3 py-3 text-xs",children:[f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("span",{className:"font-mono text-meta",children:o.id}),f.jsx("span",{className:"min-w-0 flex-1 text-fg-2",children:o.text}),f.jsx(Fr,{tone:PW(o.result),children:cW[o.result]})]}),o.reason&&f.jsx("p",{className:"mt-2 pl-8 text-muted",children:Fo(o.reason)})]},o.id))})]})}function Nf({label:e,value:t}){return f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold tabular-nums",children:t}),f.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function NW({change:e}){const t=e.checks??[],n=lW(e);return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"检查结果"}),f.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[n&&f.jsx(Wn,{title:n.description,children:f.jsx("span",{children:f.jsx(Fr,{tone:n.tone,children:n.label})})}),f.jsx(Fr,{tone:HM(e.verificationResult),children:_M[e.verificationResult]??"状态未知"})]})]}),f.jsx("p",{className:"mt-3 text-sm leading-relaxed text-fg-2",children:Fo(e.verification?.summary,"尚无 Verifier 结论。")}),(e.verification?.risks??[]).length>0&&f.jsx("ul",{className:"mt-3 list-disc space-y-1 pl-5 text-xs text-muted",children:e.verification.risks.map((o,s)=>f.jsx("li",{children:Fo(o)},`${Fo(o)}-${s}`))}),f.jsx("div",{className:"mt-4 space-y-2",children:t.length===0?f.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚无持久化检查摘要。"}):t.map(o=>f.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:[f.jsx("span",{className:"min-w-0 flex-1 text-fg-2",children:Fo(o.name,o.id)}),f.jsx(Fr,{tone:o.status==="passed"?"ok":o.status==="failed"?"danger":"warn",children:o.status}),f.jsx("span",{className:"text-meta",children:BW(o.durationMs)}),o.exitCode!==null&&f.jsxs("span",{className:"font-mono text-meta",children:["exit ",o.exitCode]})]},o.id))})]})}function jW({blockers:e}){return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"阻塞项"}),f.jsx(Fr,{tone:e.length?"danger":"ok",children:e.length?`${e.length} 项`:"无阻塞"})]}),e.length===0?f.jsx("p",{className:"mt-3 text-xs text-muted",children:"当前没有持久化阻塞项。"}):f.jsx("ul",{className:"mt-4 space-y-2",children:e.map((t,n)=>f.jsxs("li",{className:"rounded-lg bg-surface px-3 py-3 text-xs",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx(Fr,{tone:"warn",children:Um[t.owner]??t.owner}),f.jsx("span",{className:"text-fg-2",children:Fo(t.reason)})]}),f.jsxs("div",{className:"mt-2 text-meta",children:["验收:",t.acceptanceIds.join(", ")||"—"," · 处理:",t.resolutionAction]})]},`${t.owner}-${n}`))})]})}function RW({history:e,overflow:t}){return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"执行历史"}),f.jsxs("span",{className:"font-mono text-xs text-meta",children:["保留 ",e.length," 条"]})]}),t?.droppedEntries>0&&f.jsxs("p",{className:"mt-3 rounded-lg bg-warn-soft px-3 py-2 text-xs text-warn",children:["更早的 ",t.droppedEntries," 条历史已汇总,时间范围"," ",kf(t.firstDroppedAt)," 至 ",kf(t.lastDroppedAt),"。"]}),e.length===0?f.jsx("p",{className:"mt-3 text-xs text-muted",children:"尚无完成的循环记录。"}):f.jsx("ol",{className:"mt-4 space-y-2",children:e.map((n,o)=>f.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border-soft px-3 py-3 text-xs",children:[f.jsxs("span",{className:"font-mono text-meta",children:["#",n.iteration,".",n.attempt]}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:"text-fg-2",children:Fo(n.summary)}),f.jsx("div",{className:"mt-1 text-meta",children:kf(n.completedAt)})]}),f.jsx(Fr,{tone:LW(n.outcome),children:uW[n.outcome]??n.outcome})]},`${n.goalCycle}-${n.iteration}-${n.attempt}-${o}`))})]})}function MW({artifacts:e,onPreview:t}){const n=e??[],o=n.filter(s=>s.exists).length;return f.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),f.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[o,"/",n.length]})]}),f.jsxs("div",{children:[f.jsx("div",{className:"mb-1.5 flex items-center gap-2",children:f.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:"Comet Native"})}),f.jsxs("div",{className:"space-y-0.5",children:[n.map(s=>f.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 ${s.exists?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!s.exists,onClick:()=>t({key:s.key,name:s.label,preview:s}),children:[f.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:f.jsx("span",{className:`h-2 w-2 rounded-full ${s.exists?"bg-accent":"border border-border"}`})}),f.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:s.key}),f.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:s.exists?s.label:"未生成"})]},s.key)),n.length===0&&f.jsx("div",{className:"py-6 text-center text-sm text-muted",children:"暂无可预览产物"})]})]})]})}function TW({change:e}){const t=Math.max(0,Ff.findIndex(([o])=>o===e.phase)),n=e.status==="archived";return f.jsxs("article",{children:[f.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[f.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),f.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:n?"已归档":`当前 ${pm[e.phase]??"状态异常"}`})]}),f.jsx("div",{className:"flex",children:Ff.map(([o,s],i)=>{const u=n||i<t?"done":i===t?"current":"pending";return f.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[i>0&&f.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${i<=t?"bg-accent":"bg-border"}`}),i<Ff.length-1&&f.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${i<t?"bg-accent":"bg-border"}`}),f.jsx("span",{"aria-label":`${s} ${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"?"✓":i+1}),f.jsx("span",{className:`text-[13px] font-semibold ${u==="pending"?"text-fg-2":"text-accent"}`,children:s})]},o)})}),e.loop&&f.jsxs("p",{className:"mt-4 text-center text-xs text-meta",children:["Build ↔ Verify Loop · ",Vc[e.loop.stage]," · 第 ",e.loop.iteration," ","轮 / 第 ",e.loop.attempt," 次"]})]})}function OW({change:e,git:t}){const n=e.localExecution,o=e.blockers??[];return f.jsxs("aside",{className:"space-y-5",children:[f.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsx("h3",{className:"text-sm font-semibold",children:"恢复状态"}),f.jsx(Fr,{tone:n?.status==="running"?"info":"neutral",children:n?.status==="running"?"执行中":"YAML 稳定边界"})]}),f.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[f.jsx(bo,{label:"本机状态",value:A0[n?.reason]??"状态未知"}),f.jsx(bo,{label:"执行阶段",value:n?.stage?sW[n.stage]??n.stage:"—"}),f.jsx(bo,{label:"执行者",value:Um[n?.actor]??"—"}),f.jsx(bo,{label:"可恢复阶段",value:n?.recoverableFromStage?Vc[n.recoverableFromStage]??n.recoverableFromStage:"—"})]})]}),f.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsx("h3",{className:"text-sm font-semibold",children:"当前阻塞"}),f.jsx(Fr,{tone:o.length?"danger":"ok",children:o.length?`${o.length} 项`:"无"})]}),f.jsx("p",{className:"mt-3 text-xs leading-relaxed text-muted",children:o.length?Fo(o[0].reason):"当前没有阻止 Loop 前进的事项。"})]}),t&&f.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[f.jsx("h3",{className:"text-sm font-semibold",children:"Git 摘要"}),f.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[f.jsx(bo,{label:"分支",value:t.branch??"—"}),f.jsx(bo,{label:"HEAD",value:t.head??"—"}),f.jsx(bo,{label:"未提交文件",value:`${t.dirtyFiles??0} 个`})]})]})]})}function zW(){return f.jsx("aside",{className:"native-side-panel-skeleton space-y-5","aria-label":"正在加载 Native 变更侧栏","aria-busy":"true",children:[3,2,3].map((e,t)=>f.jsx("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:f.jsx(Sr,{active:!0,title:{width:"42%"},paragraph:{rows:e}})},t))})}function bo({label:e,value:t}){return f.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border-soft pb-3 last:border-0 last:pb-0",children:[f.jsx("dt",{className:"text-muted",children:e}),f.jsx("dd",{className:"text-right font-medium text-fg-2",children:t})]})}function Fr({tone:e="neutral",children:t}){const n={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 f.jsx("span",{className:`inline-flex max-w-full items-center rounded-full px-2.5 py-1 text-xs font-semibold leading-tight ${n}`,children:f.jsx("span",{className:"break-words",children:t})})}function AW(e){return e==="archive"?"ok":e==="invalid"?"danger":e==="verify"?"warn":"info"}function HM(e){return e==="pass"?"ok":e==="fail"?"danger":e==="blocked"?"warn":"neutral"}function IW(e){return e?e.failed>0?"danger":e.blocked>0||e.pending>0?"warn":"ok":"neutral"}function PW(e){return e==="passed"?"ok":e==="failed"?"danger":e==="blocked"?"warn":"neutral"}function LW(e){return e==="pass"||e==="recovery"?"ok":e==="fail"||e==="execution-error"?"danger":"warn"}function _W(e){return e==="create"?"新增":e==="modify"?"修改":e==="remove"?"删除":"未知操作"}function BW(e){return Number.isFinite(e)?e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`:"—"}function kf(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 DW(e){const t=e.children??[];if(t.length===0)return null;const n=t.filter(({status:o})=>o==="done").length;return{resolved:n,total:t.length,percent:Math.round(n/t.length*100),complete:n===t.length}}const FM=c.createContext(null);function HW({container:e,children:t}){return f.jsx(FM.Provider,{value:e,children:t})}function kM(e){const[t,n]=c.useState(!1),o=c.useRef(!1);c.useEffect(()=>{e||(o.current=!1,n(!1))},[e]);const s=c.useCallback(()=>{n(u=>{const m=!u;return o.current=m,m})},[]),i=c.useCallback(u=>{if(o.current){o.current=!1,n(!1);return}u()},[]);return{fullscreen:t,toggleFullscreen:s,requestClose:i}}function FW({title:e,subtitle:t,description:n,fullscreen:o,onToggleFullscreen:s}){return f.jsxs("div",{className:"dashboard-modal-title dashboard-settings-modal-title",children:[f.jsx("div",{className:"dashboard-modal-title-copy dashboard-settings-modal-title-copy",children:f.jsxs("div",{children:[f.jsxs("div",{className:"dashboard-settings-modal-title-row",children:[f.jsx("strong",{children:e}),t&&f.jsx("span",{className:"dashboard-tool-counter",children:t})]}),n&&f.jsx("p",{children:n})]})}),f.jsx(Wn,{title:o?"退出全屏":"全屏展示",placement:"bottom",children:f.jsx(pt,{className:"dashboard-modal-expand dashboard-settings-modal-expand",type:"text",icon:o?f.jsx(GV,{}):f.jsx(ZV,{}),"aria-label":o?"退出全屏":"全屏展示","aria-pressed":o,onClick:s})})]})}function Hs({open:e,title:t,subtitle:n,description:o,ariaLabel:s,width:i=720,className:u="",rootClassName:m="",footer:h,onClose:p,children:g,...b}){const y=c.useContext(FM),{fullscreen:S,toggleFullscreen:$,requestClose:C}=kM(e),j=["dashboard-modal",u,S?"is-fullscreen":""].filter(Boolean).join(" "),w=["dashboard-modal-root",m,S?"is-fullscreen":""].filter(Boolean).join(" ");return f.jsx(Tr,{...b,getContainer:b.getContainer??y??void 0,rootClassName:w,className:j,centered:!0,width:S?"100vw":i,open:e,keyboard:!0,mask:{closable:!0},destroyOnHidden:!0,closeIcon:null,"aria-label":s,onCancel:()=>C(p),title:f.jsx(FW,{title:t,subtitle:n,description:o,fullscreen:S,onToggleFullscreen:$}),footer:h,children:typeof g=="function"?g({fullscreen:S}):g})}function pr(e){return e.locator??e.id}function kW(e,t){if(!e)return t;const n=e.items.slice(0,t.items.length).map(pr),o=t.items.map(pr);if(e.total!==t.total||n.length!==o.length||!n.every((i,u)=>i===o[u]))return t;const s=new Map(t.items.map(i=>[pr(i),i]));return{...e,items:e.items.map(i=>s.get(pr(i))??i)}}function Gi(e){return e.locator??`${e.status}:${e.archiveName??""}:${e.name}`}function VW(e,t){if(!e)return t;const n=e.items.slice(0,t.items.length).map(Gi),o=t.items.map(Gi);if(e.total!==t.total||n.length!==o.length||!n.every((i,u)=>i===o[u]))return t;const s=new Map(t.items.map(i=>[Gi(i),i]));return{...e,items:e.items.map(i=>s.get(Gi(i))??i)}}function qW(e){return e instanceof Error&&e.message==="Stale Native Dashboard change cursor"}async function ls(e){try{const t=await e.json();if(typeof t?.error=="string"&&t.error.trim()){const n=typeof t.pluginId=="string"?t.pluginId.trim():"",o=n?`插件 ${n}:${t.error}`:t.error,s=new Error(o);return n&&(s.pluginId=n),s}}catch{}return new Error(`HTTP ${e.status}`)}function WW({detailLoading:e,selectedId:t,selectedDetailId:n,visibleIds:o,failedDetailId:s}){return e||!t||s===t?!1:!(n===t&&o.includes(t))}function UW({detailLoading:e,selectedId:t,selectedDetailId:n,failedDetailId:o}){return o&&o===t?!1:e||!!(t&&!n)}const GW=3e4,L2=240,XW="'Segoe UI Variable', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif",KW="Bahnschrift, 'Cascadia Mono', Consolas, monospace",Vf=Object.freeze([{pluginId:"comet.personal-memory",label:"个人记忆",route:"/plugins/personal-memory",status:"loading",pending:!0,globallyDisabled:!1,projectPaused:!1,diagnostics:[]},{pluginId:"comet.project-knowledge",label:"项目知识",route:"/plugins/project-knowledge",status:"loading",pending:!0,globallyDisabled:!1,projectPaused:!1,diagnostics:[]}]),YW=Object.freeze(Vf.map(e=>({...e,status:"enabled",pending:!1}))),VM=1;function Yg(e){try{const t=JSON.parse(localStorage.getItem(e)??"null");return t?.version===VM?t.value:null}catch{return null}}function jf(e,t){try{localStorage.setItem(e,JSON.stringify({version:VM,value:t}))}catch{}}function Rf(e,t){return`comet-dashboard-plugin:${e}:${t}`}function Qg(e){return`comet-dashboard-config:${e}`}function QW({embedded:e=!1,themeRoot:t=null}={}){const[n,o]=c.useState(()=>{if(e)return"light";const i=localStorage.getItem("comet-theme"),u=i==="dark"||i==="light"?i:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return document.documentElement.setAttribute("data-theme",u),u});c.useLayoutEffect(()=>{const i=e?t:document.documentElement;if(!i)return;i.classList.add("theme-switching"),i.setAttribute("data-theme",n),e||localStorage.setItem("comet-theme",n);const u=window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>i.classList.remove("theme-switching"))});return()=>window.cancelAnimationFrame(u)},[e,n,t]);const s=c.useCallback(()=>o(i=>i==="dark"?"light":"dark"),[]);return{theme:n,toggle:s}}const I0=[["open","启动"],["design","设计"],["build","构建"],["verify","验证"],["archive","归档"]],ex={pass:"通过",fail:"验证失败",pending:"待验证",unknown:"未知"},qM={pass:"ok",fail:"danger",pending:"warn",unknown:"neutral"},tx=[{value:"topology",label:"项目结构",description:"项目由哪些目录、模块和入口组成",example:"例如:入口目录、模块边界和运行入口。"},{value:"fact",label:"项目事实",description:"已确认的项目属性、技术信息和运行条件",example:"例如:支持的平台、配置位置和运行前提。"},{value:"dependency",label:"模块依赖",description:"模块之间的调用、注册和生成关系",example:"例如:模块调用方向、注册入口和生成物来源。"},{value:"decision",label:"技术决策",description:"项目选择某种技术方案的结论和原因",example:"例如:选择本地索引而不是远程检索的原因。"},{value:"pattern",label:"工程惯例",description:"项目中反复采用的代码组织和实现方式",example:"例如:模块分层、命名方式和复用边界。"},{value:"procedure",label:"操作流程",description:"完成某类项目任务时应遵循的步骤",example:"例如:构建、验证和发布的执行顺序。"},{value:"constraint",label:"强制约束",description:"修改项目时必须满足并可验证的要求",example:"例如:提交前必须运行的检查。"},{value:"failure-resolution",label:"故障处理",description:"已知问题的症状、原因和验证过的处理方法",example:"例如:构建失败的原因和恢复步骤。"}],qf=[{key:"model",label:"项目概况",description:"项目概况回答“项目是什么”",example:"包括项目结构、已确认事实和模块依赖。",types:["topology","fact","dependency"]},{key:"policy",label:"项目规范",description:"项目规范回答“在项目中应该怎么做”",example:"包括技术决策、工程惯例、流程、约束和故障处理。",types:["decision","pattern","procedure","constraint","failure-resolution"]}],hm=[{key:"all",label:"全部记忆",description:"个人记忆保存未来任务仍然有用的信息",example:"包括个人偏好与事实、协作约定和任务经验。"},{key:"profile",label:"个人偏好与事实",description:"个人偏好与事实保存长期稳定的信息",example:"例如:语言、角色和表达方式。"},{key:"policy",label:"协作约定",description:"希望 Agent 持续采用的沟通和工作方式",example:"例如:先确认范围或只运行相关测试。"},{key:"episode",label:"任务经验",description:"任务经验只在相似场景中参考",example:"例如:一次故障处理中验证有效的经验。"},{key:"history",label:"历史记录",description:"已替代、冲突或已忘记的记忆,默认不再提供给 Agent",example:"可用于回顾和判断旧记忆为何不再生效。"}],ZW={trial:"试用中",proven:"已验证",enforced:"强制执行",superseded:"已替代"},Zg=new Set(["topology","fact","dependency"]);function P0(e){return tx.find(t=>t.value===e)?.label??"其他"}function WM(e){return tx.find(t=>t.value===e)??{value:e,label:"其他",description:"尚未归入内置类型的项目知识",example:"请在记录详情中核对来源和适用范围。"}}function Mf(e){return hm.find(t=>t.key===e)??hm[0]}function UM(e){return ZW[e]??"待确认"}function _2(e){return e?.kind==="verification"?"项目验证命令约束":e?.kind==="skill-candidate"?"Skill 候选(仅建议)":e?.kind==="context"?"上下文指导":null}function GM(e){return(e?.verification??[]).map(t=>typeof t=="string"?t:t?.command??t?.description??t?.status??"").filter(Boolean)}function JW(e){const t=typeof e=="string"?"":e?.code,n=typeof e=="string"?e:e?.message;if(t==="index-source"){const o=n?.match(/source:\s*(.+)$/u)?.[1];return{label:"来源需要检查",message:o?`无法读取来源:${o}`:"发现无法读取或正在变化的知识来源。"}}return{label:t?"运行诊断":"需要关注",message:n??"项目知识状态需要检查。"}}function fc(e){return e.split(/\r?\n/u).map(t=>t.trim()).filter(Boolean)}function eU({forceDemo:e=!1,demoPluginPages:t=null,embedded:n=!1,themeRoot:o=null,portalContainer:s=null}){const{theme:i,toggle:u}=QW({embedded:n,themeRoot:o});return f.jsx(Ca,{getPopupContainer:s?()=>s:void 0,theme:{token:{colorPrimary:i==="dark"?"#7fa8ff":"#255ed8",colorBgContainer:i==="dark"?"#151923":"#ffffff",colorBgElevated:i==="dark"?"#1a202b":"#ffffff",colorBgLayout:i==="dark"?"#0e1420":"#eef1f5",colorText:i==="dark"?"#edf2fb":"#101827",colorTextSecondary:i==="dark"?"#aab5c8":"#5f6979",colorBorder:i==="dark"?"#293345":"#e3e8ef",colorSplit:i==="dark"?"#293345":"#edf0f4",colorFillAlter:i==="dark"?"#182131":"#f6f8fb",colorInfoBg:i==="dark"?"#1a202b":"#e6f4ff",colorInfoBorder:i==="dark"?"#34597f":"#91caff",borderRadius:12,fontFamily:XW,fontFamilyCode:KW,fontSize:14,fontSizeHeading2:26,fontSizeHeading3:18,fontSizeHeading4:15}},children:f.jsx(HW,{container:s,children:f.jsx(by,{children:f.jsx(tU,{theme:i,onToggleTheme:u,forceDemo:e,demoPluginPages:t,embedded:n,portalContainer:s})})})})}function tU({theme:e,onToggleTheme:t,forceDemo:n=!1,demoPluginPages:o=null,embedded:s=!1,portalContainer:i=null}){const u=n||new URLSearchParams(window.location.search).has("demo"),[m,h]=c.useState(null),[p,g]=c.useState(null),[b,y]=c.useState("classic"),[S,$]=c.useState(null),[C,j]=c.useState(!1),[w,R]=c.useState("comet.personal-memory"),[E,N]=c.useState(null),[M,T]=c.useState(null),[O,P]=c.useState(!1),[_,L]=c.useState(null),[A,B]=c.useState(()=>u?o??YW:Vf),[V,Z]=c.useState(null),[W,H]=c.useState(!1),[q,U]=c.useState(null),[J,k]=c.useState(0),I=c.useRef(null),D=c.useRef(w),Y=c.useRef(C),G=c.useRef(null),X=c.useRef(new Map),ee=c.useRef(new Map),Q=c.useRef(new Map),ae=c.useRef(new Map),[se,ie]=c.useState([]),[fe,oe]=c.useState(!1),[re,pe]=c.useState({active:null,archived:null,all:null}),[ve,Ce]=c.useState({active:null,archived:null,all:null}),[he,te]=c.useState(null),[Se,Te]=c.useState(null),[Ee,Le]=c.useState(null),[Pe,ye]=c.useState(!1),[Ie,De]=c.useState(null),[Me,qe]=c.useState(null),[tt,Xe]=c.useState(null),[He,Ue]=c.useState(!1),[Qe,ke]=c.useState(null),[Oe,Je]=c.useState("active"),[nt,ut]=c.useState(""),[Rt,ht]=c.useState(!1),[Ut,_t]=c.useState(!1),[Ct,kt]=c.useState(!1),[Pt,Vt]=c.useState(null),Ze=c.useRef(null),$t=c.useRef(null),We=c.useRef(null),je=c.useRef(null),Be=c.useRef(null),we=c.useRef(null),Fe=c.useRef({active:null,archived:null,all:null}),Ve=c.useRef({active:null,archived:null,all:null}),Ye=c.useRef(null),dt=c.useRef(""),{message:ln}=by.useApp(),et=c.useCallback((me,Ne="success")=>ln[Ne](me),[ln]),gt=c.useRef(nt),zt=c.useRef(Oe),fn=c.useRef(b),mt=S;gt.current=nt,zt.current=Oe,fn.current=b,Ye.current=Ee,I.current=S,D.current=w,Y.current=C,G.current=p,c.useEffect(()=>{we.current=Me},[Me]),c.useEffect(()=>{Fe.current=re},[re]);const yt=c.useCallback(async(me=!1)=>{if(!u&&!p)return;Ze.current?.abort();const Ne=new AbortController;Ze.current=Ne,me&&ht(!0);try{const _e=u?await zU():await MU(p,Ne.signal,gt.current);if(Ze.current!==Ne||Ne.signal.aborted)return;if(u){h(_e);const rt=PU(_e,we.current);qe(rt),Xe(U2(_e,rt)),dt.current=nt}else{const rt=_e.initialChanges,ot=zt.current,lt=gt.current,Et=lt!==dt.current,mn=Et?{active:rt,archived:null,all:null}:{...Fe.current,active:kW(Fe.current.active,rt)},Ke=ot==="active"?mn.active:mn[ot];h(aG(_e,rt)),Fe.current=mn,pe(mn);const Lt=Et?{active:null,archived:null,all:null}:Ve.current;if(Ve.current=Lt,Ce(Lt),!Et&&fn.current==="native"&&_e.native){const Ao=Ye.current,cs=Ao?Gi(Ao):null,ao=[];Lt[ot]&&ao.push(V2(p,ot,{query:lt,signal:Ne.signal}).then(Qs=>{if(Ze.current!==Ne||Ne.signal.aborted)return;const $a=Ve.current,iu=VW($a[ot],Qs),Zs={...$a,[ot]:iu};Ve.current=Zs,Ce(Zs)})),Ao&&ao.push(q2(p,Ao,Ne.signal).then(Qs=>{if(Ze.current!==Ne||Ne.signal.aborted)return;const $a=Ye.current;$a&&cs===Gi($a)&&(Ye.current=Qs,Le(Qs))})),await Promise.allSettled(ao)}const vr=oG(Et&&ot!=="active"?mn[ot]:Ke,we.current),oo=we.current;qe(vr),we.current=vr,vr!==oo&&(Xe(null),ke(null),Ue(!1)),dt.current=lt}me&&et("状态已刷新")}catch(_e){if(Ne.signal.aborted)return;et(`刷新失败:${_e.message}`,"error")}finally{Ze.current===Ne&&(Ze.current=null,me&&ht(!1))}},[p,et,u]);c.useEffect(()=>{if(!u&&(!fe||!p))return;yt(!1);const me=window.setInterval(()=>{yt(!1)},GW);return()=>window.clearInterval(me)},[p,fe,yt,u]),c.useEffect(()=>()=>{Ze.current?.abort(),$t.current?.abort(),We.current?.abort(),je.current?.abort(),je.current?.abort(),Be.current?.abort()},[]),c.useEffect(()=>{if(u)return;let me=!1;return $U().then(Ne=>{if(me)return;ie(Ne.projects??[]);const _e=(Ne.projects??[]).filter(lt=>lt.availability==="available"),rt=localStorage.getItem("comet-dashboard-project"),ot=_e.find(lt=>lt.id===rt)?.id??Ne.currentProjectId;g(lt=>lt??ot),oe(!0)}).catch(Ne=>{me||(oe(!0),et(`项目列表加载失败:${Ne.message}`,"error"))}),()=>{me=!0}},[u]);const xt=c.useCallback(async(me,Ne,_e=!1)=>{const rt=`${me}:${Ne}`;let ot=X.current.get(rt);if(ot||(ot=Yg(Rf(me,Ne)),ot&&X.current.set(rt,ot)),!_e&&ot)return ot;const lt=ee.current.get(rt);if(lt)return lt;const Et=wU(me,Ne).then(mn=>(X.current.set(rt,mn),jf(Rf(me,Ne),mn),mn)).finally(()=>{ee.current.get(rt)===Et&&ee.current.delete(rt)});return ee.current.set(rt,Et),Et},[]),Ge=c.useCallback((me,Ne)=>{const _e=`${me}:${Ne}`,rt=X.current.get(_e);if(rt)return rt;const ot=Yg(Rf(me,Ne));return ot&&X.current.set(_e,ot),ot},[]),it=c.useCallback(async(me,Ne=!1)=>{let _e=Q.current.get(me);if(_e||(_e=Yg(Qg(me)),_e&&Q.current.set(me,_e)),!Ne&&_e)return _e;const rt=ae.current.get(me);if(rt)return rt;const ot=EU(me).then(lt=>(Q.current.set(me,lt),jf(Qg(me),lt),lt)).finally(()=>{ae.current.get(me)===ot&&ae.current.delete(me)});return ae.current.set(me,ot),ot},[]),Bt=c.useCallback((me,Ne)=>{const _e=Ne.filter(rt=>!rt.pending).map(rt=>xt(me,rt.pluginId));return _e.push(it(me)),Promise.allSettled(_e)},[xt,it]),Kt=c.useCallback(async()=>{if(u||!p)return;const me=p;try{const Ne=await k2(me);if(G.current!==me)return;const _e=Ne.pages??[];return B(_e),Bt(me,_e),_e}catch(Ne){et(`插件页面加载失败:${Ne.message}`,"error");return}},[p,Bt,et,u]);c.useEffect(()=>{u||!p||it(p).catch(()=>{})},[p,it,u]),c.useEffect(()=>{if(u||!p)return;let me=!1;return $(null),j(!1),N(null),L(null),B(Vf),Z(null),U(null),k2(p).then(async Ne=>{if(me)return;const _e=Ne.pages??[];B(_e),Bt(p,_e)}).catch(Ne=>{me||et(`插件页面加载失败:${Ne.message}`,"error")}),()=>{me=!0}},[p,Bt,et,u]),c.useEffect(()=>{if(u||!p||!S)return;let me=!1;const Ne=Ge(p,S);return Ne&&Z(Ne),H(!Ne),U(null),xt(p,S,!!Ne).then(_e=>{me||Z(_e)}).catch(_e=>{me||(Z(null),U(_e instanceof Error?_e.message:String(_e)))}).finally(()=>{me||H(!1)}),()=>{me=!0}},[p,xt,J,S,Ge,u]),c.useEffect(()=>{if(!u)return;if(o){if(B(o),U(null),!S){Z(null);return}const Ne=o.find(_e=>_e.pluginId===S)??null;Z(Ne),Ne||U("未找到对应的插件页面");return}let me=!1;return U(null),W2().then(Ne=>{if(me)return;if(B(Ne),!S){Z(null);return}const _e=Ne.find(rt=>rt.pluginId===S)??null;Z(_e),_e||U("未找到对应的插件页面")}).catch(Ne=>{me||(Z(null),U(Ne instanceof Error?Ne.message:String(Ne)))}),()=>{me=!0}},[o,S,u]),c.useEffect(()=>{if(!u||!C||!w)return;let me=!1;return P(!0),L(null),(w==="comet.config"?AU():W2().then(_e=>_e.find(rt=>rt.pluginId===w)??null)).then(_e=>{me||(w==="comet.config"?T(_e):(N(_e),_e||L("未找到对应的设置页面")))}).catch(_e=>{me||(w==="comet.config"?T(null):N(null),L(_e instanceof Error?_e.message:String(_e)))}).finally(()=>{me||P(!1)}),()=>{me=!0}},[J,C,w,u]),c.useEffect(()=>{if(u||!p||!C||!w)return;let me=!1;const Ne=w==="comet.config"?Q.current.get(p)??null:Ge(p,w);return w==="comet.config"?Ne&&T(Ne):Ne&&N(Ne),P(!Ne),L(null),(w==="comet.config"?it(p,!!Ne):xt(p,w,!!Ne)).then(rt=>{me||(w==="comet.config"?T(rt):N(rt))}).catch(rt=>{me||(w==="comet.config"?T(null):N(null),L(rt instanceof Error?rt.message:String(rt)))}).finally(()=>{me||P(!1)}),()=>{me=!0}},[p,xt,it,J,Ge,C,w,u]);const Mt=c.useCallback(async(me,Ne,_e,rt="page")=>{if(!p)return;const ot=p,lt=me,Et=await jU(ot,me,Ne,_e),mn=()=>G.current===ot&&(rt==="settings"?Y.current&&D.current===lt:I.current===lt),Ke=rt==="settings"?N:Z;if(mn()&&Ke(oo=>eb(oo,lt,Ne,Et,_e)),lt==="comet.project-knowledge"&&Ne==="read-source")return Et;const[Lt]=await Promise.all([xt(ot,me,!0),Kt()]);if(!mn())return Et;const vr=eb(Lt,lt,Ne,Et,_e);return X.current.set(`${ot}:${lt}`,vr),jf(Rf(ot,lt),vr),Ke(vr),Et},[p,xt,Kt]),Yt=c.useCallback(async(me,Ne,_e,rt="page")=>{try{if(u){if(me==="comet.project-knowledge"&&Ne==="read-source"){const lt=mr(_e)?_e.source:null,Et=Array.isArray(V?.data?.sourcePreviews)?V.data.sourcePreviews.find(mn=>mn?.source===lt):null;if(Et)return{kind:"source",source:Et.source,content:Et.content,format:Et.format,size:Et.size??String(Et.content??"").length,modifiedAt:Et.modifiedAt,truncated:!1}}if(me==="comet.project-knowledge"&&Ne==="query"){const lt={kind:"search",results:Array.isArray(V?.data?.demoQueryResults)?V.data.demoQueryResults:[]};return Z(Et=>eb(Et,me,Ne,lt,_e)),lt}et("当前为只读预览,不会写入本地项目","info");return}let ot;if(Ne==="lifecycle")if(await RU(p,me,_e.action),_e.action==="uninstall"){const lt=await Kt()??[];if(rt==="settings"){N(null),L(null),I.current===me&&(Z(null),U(null),$(null));const Et=lt.find(mn=>mn.pluginId!==me)?.pluginId;Et?R(Et):j(!1)}else Z(null),U(null),$(null)}else k(lt=>lt+1),await Kt();else ot=await Mt(me,Ne,_e,rt);if(me==="comet.project-knowledge"&&Ne==="query"){const lt=Array.isArray(ot?.results)?ot.results.length:0;et(lt>0?`检索完成,找到 ${lt} 条项目知识`:"检索完成,未找到匹配的项目知识")}else if(me==="comet.project-knowledge"&&Ne==="create")et("项目知识已新增");else if(me==="comet.project-knowledge"&&Ne==="correct")et(_e?.restore?"项目知识已更新并恢复使用":"项目知识已更新");else if(me==="comet.project-knowledge"&&Ne==="forget")et("项目知识已标记为已替代,不再提供给 Agent");else if(me==="comet.project-knowledge"&&Ne==="refresh"){const lt=Array.isArray(ot?.records)?ot.records.find(Et=>Et?.id===_e?.id):null;et(lt?.state==="proven"||lt?.state==="enforced"?"来源检查完成,记录已验证":lt?.state==="trial"?"来源仍需核对,记录继续保持试用状态":lt?.state==="superseded"?"来源或验证入口已变化,记录已替代并停止应用":"项目知识已刷新")}else Ne!=="read-source"&&et(Ne==="lifecycle"?"插件状态已更新":"操作已完成");return ot}catch(ot){et(`插件操作失败:${ot.message}`,"error");return}},[p,Mt,V,Kt,et,u]),bn=c.useCallback(async(me,Ne=!1)=>{if(u||!p||Ne&&$t.current)return;const _e=Fe.current[me];if(Ne&&!_e?.nextCursor)return;$t.current?.abort();const rt=new AbortController;$t.current=rt,te(me);try{const ot=await TU(p,me,{cursor:Ne?_e?.nextCursor:void 0,query:nt,signal:rt.signal});if($t.current!==rt||rt.signal.aborted)return;const lt=Ne&&_e?{...ot,items:[..._e.items,...ot.items]}:ot;pe(Et=>({...Et,[me]:lt})),h(Et=>Et&&sG(Et,me,lt.items)),dt.current=nt}catch(ot){if(rt.signal.aborted)return;et(`变更列表加载失败:${ot.message}`,"error")}finally{$t.current===rt&&($t.current=null,te(null))}},[p,nt,et,u]);c.useEffect(()=>{if(u||!m||!p||nt===dt.current)return;const me=window.setTimeout(()=>{Ze.current?.abort(),$t.current?.abort(),We.current?.abort(),pe({active:null,archived:null,all:null}),Fe.current={active:null,archived:null,all:null},Ce({active:null,archived:null,all:null}),Ve.current={active:null,archived:null,all:null},Le(null),Ye.current=null,De(null)},250);return()=>window.clearTimeout(me)},[p,nt,m,u]),c.useEffect(()=>{u||!m||!p||re[Oe]||bn(Oe)},[p,bn,re,m,Oe,u]);const qt=c.useCallback(async(me,Ne=!1)=>{if(u||b!=="native"||!p||!m?.native||Ne&&We.current)return;const _e=Ve.current[me];if(Ne&&!_e?.nextCursor)return;We.current?.abort();const rt=new AbortController;We.current=rt,Te(me);try{const ot=await V2(p,me,{cursor:Ne?_e?.nextCursor:void 0,query:nt,signal:rt.signal});if(We.current!==rt||rt.signal.aborted)return;const lt=Ne&&_e?{...ot,items:[..._e.items,...ot.items]}:ot,Et={...Ve.current,[me]:lt};Ve.current=Et,Ce(Et)}catch(ot){if(rt.signal.aborted)return;if(Ne&&qW(ot)){const lt={...Ve.current,[me]:null};Ve.current=lt,Ce(lt),et("Native 变更列表已更新,正在重新加载第一页。","info");return}et(`Native 变更列表加载失败:${ot.message}`,"error")}finally{We.current===rt&&(We.current=null,Te(null))}},[p,nt,m,et,u,b]),sr=c.useCallback(async me=>{if(!me)return;if(De(null),u){Le(me),Ye.current=me;return}if(!p)return;je.current?.abort();const Ne=new AbortController;je.current=Ne,ye(!0);try{const _e=await q2(p,me,Ne.signal);if(je.current!==Ne||Ne.signal.aborted)return;Le(_e),Ye.current=_e}catch(_e){if(Ne.signal.aborted)return;De({change:me,reason:_e instanceof Error?_e.message:String(_e)}),et(`Native 变更详情加载失败:${_e.message}`,"error")}finally{je.current===Ne&&(je.current=null,ye(!1))}},[p,et,u]),So=tt,Nn=c.useMemo(()=>u?LU(m,Oe,nt):re[Oe]?.items??[],[re,nt,m,Oe,u]),ir=re[Oe],qr=u?Nn.length:ir?.total??Nn.length,lr=ve[Oe],Zn=Oe==="active"?m?.native?.activeChangeCount??0:Oe==="archived"?m?.native?.archivedChangeCount??0:m?.native?.totalChangeCount??0,St=!u&&!!m?.native&&Zn===0,_n=u?m?.native?.changes?.length??0:lr?.total??Zn;c.useEffect(()=>{u||b!=="native"||!m?.native||ve[Oe]||St||qt(Oe)},[qt,ve,St,m,Oe,u,b]);const Tn=c.useCallback(async me=>{if(we.current=me,qe(me),ke(null),u){Xe(U2(m,me));return}if(!p)return;Be.current?.abort();const Ne=new AbortController;Be.current=Ne,Ue(!0);try{const _e=await OU(p,me,Ne.signal);if(Be.current!==Ne||Ne.signal.aborted)return;Xe(_e)}catch(_e){if(Ne.signal.aborted)return;ke({id:me,message:_e instanceof Error?_e.message:String(_e)}),et(`变更详情加载失败:${_e.message}`,"error")}finally{Be.current===Ne&&(Be.current=null,Ue(!1))}},[p,m,et,u]);c.useEffect(()=>{if(u||!m||!p||!WW({detailLoading:He,selectedId:Me,selectedDetailId:tt?pr(tt):null,visibleIds:Nn.map(pr),failedDetailId:Qe?.id??null}))return;const me=Nn[0]?pr(Nn[0]):null;if(Be.current?.abort(),!me){we.current=null,qe(null),Xe(null),Ue(!1);return}Tn(me)},[p,He,Qe,Tn,tt,Me,m,u,Nn]);const nr=c.useCallback(me=>Je(me),[]);return f.jsxs("main",{className:`dashboard-workbench min-h-screen bg-surface text-fg antialiased lg:grid lg:grid-cols-[var(--rail-w)_1fr]${Ct?" is-sidebar-collapsed":""}${s?" is-embedded":""}`,children:[f.jsx(FU,{embedded:s,open:Ut,collapsed:Ct,workflow:b,onWorkflow:me=>{j(!1),me!==b&&Je("active"),y(me)},pluginPages:A,pluginSelection:S,settingsOpen:C,onSettings:()=>{const me=S??A.find(_e=>_e.pluginId==="comet.personal-memory"&&!_e.pending)?.pluginId??A.find(_e=>!_e.pending)?.pluginId??"comet.config",Ne=u?A.find(_e=>_e.pluginId===me)??null:p&&me&&me!=="comet.config"?Ge(p,me):null;R(me),j(!0),N(Ne),T(u?M:p?Q.current.get(p)??null:null),L(null)},onPluginSelect:me=>{j(!1),$(me),Z(u?A.find(Ne=>Ne.pluginId===me)??null:p&&me?Ge(p,me):null),U(null)},onCollapse:()=>kt(!0),onExpand:()=>kt(!1),onClose:()=>_t(!1)}),Ut&&f.jsx("button",{className:"fixed inset-0 z-40 bg-black/30 lg:hidden","aria-label":"关闭导航",onClick:()=>_t(!1)}),f.jsxs("section",{className:`min-w-0${S?" dashboard-main-section-plugin-center":""}`,children:[f.jsx(nU,{project:m?.project,projects:se,activeProjectId:p,onProjectSelect:me=>{localStorage.setItem("comet-dashboard-project",me),Ze.current?.abort(),$t.current?.abort(),We.current?.abort(),je.current?.abort(),Be.current?.abort(),g(me),h(null),pe({active:null,archived:null,all:null}),Fe.current={active:null,archived:null,all:null},Ce({active:null,archived:null,all:null}),Ve.current={active:null,archived:null,all:null},Le(null),Ye.current=null,De(null),qe(null),we.current=null,Xe(null),ke(null),ut(""),j(!1),$(null),B(Vf),Z(null),U(null),T(null),_t(!1)},loading:Rt,query:nt,onQuery:ut,onMenu:()=>_t(!0),onRefresh:async()=>{await yt(!0),await Kt(),mt&&k(me=>me+1)},theme:e,onToggleTheme:t,themeToggleDisabled:s}),f.jsx("div",{className:`dashboard-content-shell${S?" dashboard-content-shell-plugin-center":""}`,children:f.jsx("div",{className:`dashboard-content-inner${S?" dashboard-content-inner-plugin-center":""}${S==="comet.project-knowledge"?" dashboard-content-inner-project-knowledge":""}`,children:m?S?f.jsx(kU,{page:V,loading:W,error:q,readOnly:s,onRetry:()=>{Z(null),U(null),k(me=>me+1)},onInvoke:(me,Ne)=>Yt(S,me,Ne)}):b==="native"?f.jsx(pW,{native:m.native,git:m.git,query:nt,tab:Oe,onTab:nr,pagedChanges:u?null:lr?.items??[],total:_n,hasMore:!!lr?.nextCursor,pageLoading:!St&&(Se===Oe||!u&&!lr),onLoadMore:()=>qt(Oe,!0),selectedDetail:Ee,detailLoading:Pe,detailError:Ie,onSelect:sr,onRetryDetail:()=>Ie?.change&&sr(Ie.change),onPreview:Vt,onCopyChangeName:me=>ZM(me).then(()=>et("Change 名称已复制")).catch(()=>et("复制 Change 名称失败","error"))}):f.jsx(rU,{snapshot:m,visible:Nn,visibleTotal:qr,selected:So,selectedId:Me,tab:Oe,onTab:nr,onSelect:Tn,hasMore:!!ir?.nextCursor,pageLoading:he===Oe,onLoadMore:()=>bn(Oe,!0),detailLoading:He,detailError:Qe,onRetryDetail:()=>Me&&Tn(Me),onPreview:Vt}):f.jsx(bm,{})})}),f.jsx(VU,{open:C,readOnly:s,section:w,pages:A,page:E,config:M,loading:O,error:_,onClose:()=>j(!1),onSection:me=>{R(me),N(u&&me!=="comet.config"?A.find(Ne=>Ne.pluginId===me)??null:p&&me!=="comet.config"?Ge(p,me):null),T(u&&me==="comet.config"?M:p&&me==="comet.config"?Q.current.get(p)??null:null),L(null)},onRetry:()=>{p&&(w==="comet.config"?Q.current.delete(p):w&&X.current.delete(`${p}:${w}`)),N(null),T(null),L(null),k(me=>me+1)},onSaveConfig:async me=>{if(s)return;if(u){if(!M)return;T({...M,...me,revision:`demo-${Date.now()}`}),et("预览配置已保存,仅在当前页面生效");return}if(!p||!M)return;const Ne=M.knowledge??{provider:"local",localInclude:[]},_e=me.knowledge??Ne,rt=_e.provider==="local"&&(Ne.provider!=="local"||JSON.stringify(_e.localInclude??[])!==JSON.stringify(Ne.localInclude??[]));try{const ot=await NU(p,{expectedRevision:M.revision,config:me});Q.current.set(p,ot),jf(Qg(p),ot),T(ot),rt&&(await Yt("comet.project-knowledge","refresh",{},"settings"),I.current==="comet.project-knowledge"&&k(lt=>lt+1)),et("Comet 配置已保存"),await yt(!1)}catch(ot){throw et(ot instanceof Error?ot.message:String(ot),"error"),ot}},onInvoke:s?async()=>{}:(me,Ne)=>Yt(w,me,Ne,"settings")})]}),i?rs.createPortal(f.jsx(D2,{artifact:Pt,embedded:s,onClose:()=>Vt(null)}),i):f.jsx(D2,{artifact:Pt,embedded:s,onClose:()=>Vt(null)})]})}function nU({project:e,loading:t,query:n,onQuery:o,projects:s,activeProjectId:i,onProjectSelect:u,onMenu:m,onRefresh:h,theme:p,onToggleTheme:g,themeToggleDisabled:b=!1}){return f.jsxs("header",{className:"comet-workbench-header sticky top-0 z-30 border-b border-border-soft bg-surface/90 backdrop-blur-xl",children:[f.jsx(pt,{className:"comet-header-menu lg:hidden",type:"text",icon:f.jsx(mq,{}),onClick:m,"aria-label":"打开导航"}),f.jsx("div",{className:"comet-header-context",children:f.jsx(qn,{className:"comet-project-select",value:i??void 0,placeholder:e?.name?f.jsx("span",{className:"comet-project-selected-label",title:e.name,children:e.name}):"选择项目",showSearch:!0,optionFilterProp:"searchText",optionLabelProp:"selectedLabel",classNames:{popup:{root:"comet-project-select-dropdown"}},onChange:u,options:s.map(y=>({value:y.id,disabled:y.availability!=="available",searchText:`${y.name} ${y.path}`,selectedLabel:f.jsx("span",{className:"comet-project-selected-label",title:y.name,children:y.name}),label:f.jsxs("span",{className:"comet-project-option",children:[f.jsx("strong",{className:"comet-project-option-name",title:y.name,children:y.name}),f.jsx("small",{className:"comet-project-option-path",title:y.path,children:y.path})]})}))})}),f.jsx("div",{className:"comet-header-search",children:f.jsx(Wt,{value:n,onChange:y=>o(y.target.value),prefix:f.jsx(Ys,{className:"text-meta"}),placeholder:"搜索变更、产物或文件…",allowClear:!0})}),f.jsxs("div",{className:"comet-header-actions",children:[f.jsx(Wn,{title:"立即刷新",children:f.jsx(pt,{className:"comet-refresh-button",icon:f.jsx(mm,{}),loading:t,onClick:h,"aria-label":"立即刷新"})}),f.jsx(Wn,{title:b?"官网预览固定为亮色模式":p==="dark"?"切换到亮色模式":"切换到暗色模式",children:f.jsx(pt,{className:"hidden sm:inline-flex",type:"text",icon:p==="dark"?f.jsx(Lq,{}):f.jsx($q,{}),disabled:b,onClick:g,"aria-label":p==="dark"?"切换到亮色模式":"切换到暗色模式"})})]})]})}function rU({snapshot:e,visible:t,visibleTotal:n,selected:o,selectedId:s,tab:i,onTab:u,onSelect:m,hasMore:h,pageLoading:p,onLoadMore:g,detailLoading:b,detailError:y,onRetryDetail:S,onPreview:$}){const C=e.summary.activeChanges+e.summary.archivedChanges>0,j=e.classicError&&C,w=UW({detailLoading:b,selectedId:s,selectedDetailId:o?.id??null,failedDetailId:y?.id??null}),R=!p&&t.length===0,E=p&&t.length===0;return f.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[f.jsx(Nc,{title:"项目概览",hint:`生成于 ${gr(e.project.generatedAt)}`}),f.jsx(oU,{command:o?.next?.command,description:o?.next?.description}),f.jsx(tG,{snapshot:e}),f.jsx(Nc,{title:"变更工作区",hint:"查看文件产物与项目进度"}),e.classicError&&!C?f.jsx(yU,{error:e.classicError}):f.jsxs(f.Fragment,{children:[j?f.jsx(vU,{error:e.classicError}):null,f.jsx(LM,{leftClassName:"dashboard-workspace-left-inner-scroll",stableFrame:!0,left:f.jsx(rG,{visible:t,total:n,selectedId:s,tab:i,onTab:u,onSelect:m,hasMore:h,pageLoading:p,onLoadMore:g}),center:R?f.jsx(xU,{snapshot:e,tab:i,onTab:u}):E?f.jsx(H2,{}):o?f.jsx(lG,{change:o,onPreview:$}):w?f.jsx(H2,{}):y?f.jsxs("div",{className:"change-detail min-w-0 rounded-lg bg-bg p-10 text-center text-sm text-danger shadow-raised",children:[f.jsxs("p",{role:"alert",children:["变更详情加载失败:",y.message]}),f.jsx(pt,{className:"mt-4",onClick:S,children:"重试"})]}):null,right:R?f.jsx(SU,{}):E?f.jsx(CU,{}):o?f.jsx(cU,{change:o,git:e.git,onPreview:$}):null})]})]})}function oU({command:e,description:t}){return f.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[f.jsxs("div",{className:"dashboard-priority-title",children:[f.jsx(Gy,{"aria-hidden":"true"}),f.jsx("span",{children:"下一步建议"})]}),f.jsx("p",{children:e?f.jsxs(f.Fragment,{children:["优先执行 ",f.jsx("code",{children:e}),t?`,${t}`:",完成当前工作流阶段。"]}):"当前变更没有待执行动作,可以继续检查产物与验证结果。"})]})}function Nc({title:e,hint:t}){return f.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[f.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),f.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function gm({ariaLabel:e,title:t,description:n,example:o,items:s=[]}){const i=f.jsxs("div",{className:"dashboard-compact-help-content",children:[n&&f.jsx("p",{children:n}),o&&f.jsx("p",{className:"dashboard-compact-help-example",children:o}),s.length>0&&f.jsx("dl",{children:s.map(u=>f.jsxs("div",{children:[f.jsx("dt",{children:u.label}),f.jsx("dd",{children:u.description})]},u.label))})]});return f.jsx(Wn,{title:n,placement:"bottom",children:f.jsx(gR,{title:t,content:i,trigger:"click",placement:"bottomLeft",children:f.jsx(pt,{className:"dashboard-compact-help-button",type:"text",size:"small",icon:f.jsx(rq,{}),"aria-label":e})})})}function aU({meta:e=[],actions:t=null,help:n=null}){return f.jsxs("header",{className:"dashboard-plugin-context-bar","aria-label":"个人记忆状态与操作",children:[f.jsxs("div",{className:"dashboard-plugin-context-meta",children:[e.map(o=>f.jsx("span",{className:`dashboard-plugin-context-item is-${o.tone??"neutral"}`,"aria-label":`${o.label}:${o.value}`,children:o.value},`${o.label}-${o.value}`)),n]}),t&&f.jsx("div",{className:"dashboard-tool-actions",children:t})]})}function sU({change:e,onPreview:t}){const n=new Map((e.artifactPreviews??[]).map(p=>[p.key,p])),o=e.artifacts?.grouped??[],s=o.length,i=o.filter(p=>p.exists).length,u=o.filter(p=>p.source==="openspec"),m=o.filter(p=>p.source==="superpowers"),h=o.filter(p=>p.source==="comet");return f.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),f.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[i,"/",s]})]}),f.jsxs("div",{className:"space-y-3",children:[f.jsx(Jg,{title:"OpenSpec",artifacts:u,previewByKey:n,onPreview:t}),f.jsx(Jg,{title:"Superpowers",artifacts:m,previewByKey:n,onPreview:t}),f.jsx(Jg,{title:"Comet",artifacts:h,previewByKey:n,onPreview:t})]})]})}function Jg({title:e,artifacts:t,previewByKey:n,onPreview:o}){return t.length===0?null:f.jsxs("div",{children:[f.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[f.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:e}),f.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),f.jsx("div",{className:"space-y-px",children:t.map(s=>{const i=n.get(s.key);return f.jsx(iU,{artifact:s,preview:i,onPreview:o},s.key)})})]})}function iU({artifact:e,preview:t,onPreview:n}){const o=e.exists,s=e.notApplicable,i=o?e.label:s?"无需生成":"未生成";return f.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 ${o?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!o,onClick:()=>n({key:e.key,name:e.label,preview:t}),children:[f.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:o?f.jsx("span",{className:"h-2 w-2 rounded-full bg-accent"}):s?f.jsx("span",{className:"h-2 w-2 rounded-full border border-border bg-surface"}):f.jsx("span",{className:"h-2 w-2 rounded-full border border-border"})}),f.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:e.key}),f.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:i})]})}function lU({change:e}){const t=e.tasks.total,n=e.tasks.completed,o=Math.max(0,t-n),s=e.status==="archived",i=e.tasks.sections.filter(N=>N.status==="done").length,u=e.tasks.sections.length,m=t?Math.round(n/t*100):0,h=pr(e),p=Ui(m,900,h),g=Ui(n,900,h),b=Ui(o,900,h),y=Ui(i,900,h),S=Math.round(b),$=2*Math.PI*54,C=$*(1-p/100),j=o===0&&t>0,w=s||j?"bg-ok-soft text-success":"bg-accent-softer text-fg-2",R=s||j?"bg-success":"bg-accent",E=s?"已归档完成,流程已结束":j?`所有任务已完成,可以进入 ${e.phase==="verify"?"归档":"Verify"}`:`剩余 ${S} 项未完成,完成后进入 ${e.phase==="verify"?"归档":"Verify"}`;return f.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[f.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[f.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"任务进度"}),f.jsx("span",{className:`rounded-full px-2 py-0.5 text-[11px] font-medium ${j?"bg-ok-soft text-success":"bg-accent-soft text-accent"}`,children:j?"全部完成":`${S} 项待办`})]}),f.jsx("div",{className:"flex justify-center",children:f.jsxs("div",{className:"relative h-[110px] w-[110px]",children:[f.jsxs("svg",{className:"block size-full -rotate-90",viewBox:"0 0 120 120",role:"img","aria-label":`任务完成度 ${m}%`,children:[f.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"var(--color-border-soft)",strokeWidth:"7"}),f.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:j?"var(--color-success)":"var(--color-accent)",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:$,strokeDashoffset:C})]}),f.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[f.jsxs("span",{className:"text-[26px] font-bold leading-none tabular-nums",children:[Math.round(p),"%"]}),f.jsx("span",{className:"mt-0.5 text-[10px] text-muted",children:"完成度"})]})]})}),f.jsxs("div",{className:"mt-4 flex items-center justify-center gap-6 text-center",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:Math.round(g)}),f.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"已完成"})]}),f.jsx("div",{className:"h-6 w-px bg-border-soft"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:S}),f.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"剩余"})]}),f.jsx("div",{className:"h-6 w-px bg-border-soft"}),f.jsxs("div",{children:[f.jsxs("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:[Math.round(y),"/",u]}),f.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"分组"})]})]}),e.tasks.sections.length>0&&f.jsx("div",{className:"mt-4 space-y-2.5 border-t border-border-soft pt-4",children:e.tasks.sections.map(N=>{const M=N.total?Math.round(N.completed/N.total*100):0,T=N.status==="done";return f.jsxs("div",{children:[f.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[f.jsx("span",{className:"truncate text-[11px] text-fg-2",children:N.title}),f.jsxs("span",{className:"shrink-0 pl-2 font-mono text-[10px] text-muted",children:[N.completed,"/",N.total]})]}),f.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-surface",children:f.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${T?"bg-success":"bg-accent"}`,style:{width:`${M}%`}})})]},N.title)})}),f.jsxs("div",{className:`mt-4 flex items-center gap-2 rounded-lg px-3 py-2 text-[11px] ${w}`,children:[f.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${R}`}),f.jsx("span",{children:E})]})]})}function cU({change:e,git:t,onPreview:n}){return f.jsxs("aside",{className:"min-h-[480px] space-y-4",children:[e.status==="archived"?f.jsx(dU,{change:e}):f.jsx(uU,{change:e}),f.jsx(fU,{change:e}),f.jsx(mU,{git:t})]})}function uU({change:e}){return f.jsxs(Gm,{title:"下一步建议",tag:nx(e.phase),children:[f.jsxs("div",{className:"rounded-xl bg-fg px-4 py-3 font-mono text-[13px] text-bg",children:[f.jsx("span",{className:"text-success",children:"$ "}),e.next?.command??"—"]}),f.jsx("p",{className:"text-sm text-fg-2",children:e.next?.reason??"暂无建议"}),f.jsx("p",{className:"text-[13px] leading-relaxed text-muted",children:e.next?.description??""})]})}function dU({change:e}){return f.jsxs(Gm,{title:"归档摘要",tag:"已归档",children:[f.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}),f.jsxs("p",{className:"break-words text-sm text-fg-2",children:["原名:",e.archive?.originalName??e.name," · 归档于:",e.archive?.archivedAt??"—"]}),f.jsxs("p",{className:"break-words text-[13px] leading-relaxed text-muted",children:["归档路径:",e.archive?.archivePath??e.path," · 任务:",e.tasks.completed," /"," ",e.tasks.total]})]})}function fU({change:e}){const t=e.risks??[];return f.jsx(Gm,{title:"风险提示",tag:`${t.length} 项`,children:t.length===0?f.jsx("div",{className:"rounded-xl bg-surface-warm p-3 text-sm text-muted",children:"当前未发现阻塞风险。"}):f.jsx("div",{className:"space-y-2",children:t.map(n=>f.jsxs("div",{className:"rounded-xl border border-border-soft p-3",children:[f.jsxs("div",{className:"flex gap-2 text-sm font-semibold",children:[f.jsx("span",{className:n.level==="error"?"text-danger":n.level==="warning"?"text-warn":"text-meta",children:"●"}),f.jsx("span",{children:n.message})]}),f.jsx("div",{className:"mt-1 font-mono text-xs text-meta",children:n.code})]},`${n.code}-${n.message}`))})})}function mU({git:e}){return f.jsxs(Gm,{title:"Git 快照",tag:`${e.dirtyFiles} 个未提交`,children:[f.jsx(B2,{k:"分支",v:e.branch??"—"}),f.jsx(B2,{k:"HEAD",v:e.head??"—"}),f.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"最近提交"}),f.jsx("ul",{className:"space-y-1",children:e.recentCommits.map(t=>f.jsx("li",{className:"truncate text-sm text-fg-2",children:t},t))}),f.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"未提交文件"}),f.jsx("ul",{className:"space-y-1",children:e.dirtyFileList.slice(0,5).map(t=>f.jsx("li",{className:"break-all font-mono text-xs text-warn",children:t},t))})]})}function Gm({title:e,tag:t,children:n}){return f.jsxs("article",{className:"rounded-lg bg-bg p-5 shadow-card",children:[f.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[f.jsx("h4",{className:"font-semibold",children:e}),t&&f.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:t})]}),f.jsx("div",{className:"space-y-3",children:n})]})}function B2({k:e,v:t}){return f.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[f.jsx("span",{className:"w-16 shrink-0 text-muted",children:e}),f.jsx("span",{className:"min-w-0 truncate font-mono text-[13px]",children:t})]})}function D2({artifact:e,embedded:t=!1,onClose:n}){const[o,s]=c.useState({status:"idle"}),{fullscreen:i,toggleFullscreen:u,requestClose:m}=kM(!!e),h=!t&&i,[p,g]=c.useState([]),[b,y]=c.useState(""),S=c.useRef(null),$=c.useRef(null);if(c.useEffect(()=>{if(!e||t)return;const j=window.scrollY,w={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=`-${j}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{document.body.style.position=w.position,document.body.style.top=w.top,document.body.style.left=w.left,document.body.style.right=w.right,document.body.style.width=w.width,window.scrollTo(0,j)}},[e,t]),c.useEffect(()=>{if(!e){s({status:"idle"});return}let j=!1;s({status:"loading"});const w=e.preview,R=w?.path??"",E=e.key==="cometYaml"||/\.ya?ml$/i.test(R),N=e.key==="handoff"||e.key==="checkpoint"||/\.json$/i.test(R),M=E||N,T=w?.exists?M?w.content?.trimEnd()||"":`${w.content?.trimEnd()||"这个产物是空文件。"}${w.truncated?`
|
|
254
|
-
|
|
255
|
-
> 内容过长,已截取前 256KB。`:""}`:w?`尚未生成 ${e.name}。`:"这个产物文件存在,但当前 dashboard 服务返回的数据里没有全文内容。请重启 dashboard 服务后再刷新页面。";return(async()=>{try{let O;if(w?.exists&&M?T.trim()?(O=N?await z0(T):await O0(T),w.truncated&&(O+="<p><em>内容过长,已截取前 256KB。</em></p>")):O=N?await z0(""):await O0(""):O=await as(T),j)return;if(!O.trim()){s({status:"empty"});return}s({status:"success",html:O})}catch(O){if(j)return;s({status:"error",message:O instanceof Error?O.message:"产物预览渲染失败,请重试"})}})(),()=>{j=!0}},[e]),c.useEffect(()=>{if(o.status==="success"&&S.current){PM(S.current);const j=IM(S.current);g(j),j.length>0&&y(j[0].id)}else g([]),y("")},[o]),c.useEffect(()=>{if(!h)return;const j=$.current,w=S.current;if(!j||!w||p.length===0)return;const R=()=>{const E=p.map(({id:M})=>document.getElementById(M)).filter(Boolean);let N=E[0]?.id??"";for(const M of E){const T=M.getBoundingClientRect(),O=j.getBoundingClientRect();T.top-O.top<=80&&(N=M.id)}y(N)};return j.addEventListener("scroll",R,{passive:!0}),()=>j.removeEventListener("scroll",R)},[p,h]),c.useEffect(()=>{if(!h)return;const j=w=>{w.key==="Escape"&&m(n)};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[h,n,m]),!e)return null;const C=e.preview;return f.jsxs("div",{className:h?"dashboard-artifact-preview-overlay is-fullscreen fixed inset-0 z-[90] flex":`dashboard-artifact-preview-overlay ${t?"absolute":"fixed"} inset-0 z-[90] grid grid-cols-[minmax(0,1fr)_minmax(360px,760px)] max-sm:grid-cols-1`,children:[!h&&f.jsx("button",{"aria-label":"产物预览背景",className:"dashboard-artifact-preview-backdrop bg-black/30 max-sm:hidden",onClick:()=>m(n)}),f.jsxs("section",{className:["dashboard-artifact-preview-panel flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-bg",h?"is-fullscreen h-full w-full":"border-l border-border shadow-[-20px_0_44px_rgba(0,0,0,0.12)]"].join(" "),children:[f.jsxs("header",{className:"flex items-start gap-3 border-b border-border-soft p-5",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:"flex min-w-0 items-center gap-2",children:f.jsx("h2",{className:"min-w-0 truncate text-xl font-bold",children:e.name})}),f.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[C?.path&&f.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(C.path),toast("路径已复制")}catch{toast("复制失败","error")}},children:f.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:f.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"})})}),f.jsx("p",{className:"artifact-preview-path min-w-0 flex-1 break-all font-mono text-xs text-meta",children:C?.path??"当前服务未返回全文内容"})]}),(C?.size!=null||C?.updatedAt)&&f.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-3 text-[11px] text-muted",children:[C?.size!=null&&f.jsx("span",{children:YM(C.size)}),C?.updatedAt&&f.jsxs("span",{children:["更新于 ",gr(C.updatedAt)]})]})]}),!t&&f.jsx("button",{type:"button",className:"dashboard-artifact-preview-expand grid size-8 shrink-0 place-items-center rounded-lg text-fg-2 hover:bg-surface",onClick:u,"aria-label":h?"退出全屏":"全屏展示","aria-pressed":h,children:h?f.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:f.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"})}):f.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:f.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.5m-4.5 0L15 9m5.25 11.25h-4.5m4.5 0v-4.5m4.5 4.5L15 15"})})}),t&&f.jsx("button",{type:"button",className:"dashboard-artifact-preview-expand grid size-8 shrink-0 place-items-center rounded-lg text-fg-2 hover:bg-surface",onClick:()=>m(n),"aria-label":"关闭产物预览",children:f.jsx(zo,{"aria-hidden":"true"})})]}),f.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[h&&p.length>0&&f.jsxs("nav",{"aria-label":"文档目录",className:"hidden w-[250px] shrink-0 overflow-y-auto border-r border-border-soft bg-surface px-3 py-4 sm:block",children:[f.jsx("p",{className:"mb-2 px-2 text-sm font-semibold uppercase tracking-wider text-muted",children:"目录"}),f.jsx("ul",{className:"space-y-0.5",children:p.map(j=>f.jsx("li",{children:f.jsx("a",{href:`#${j.id}`,onClick:w=>{w.preventDefault();const R=document.getElementById(j.id),E=$.current;if(!R||!E)return;const N=R.getBoundingClientRect().top-E.getBoundingClientRect().top+E.scrollTop-16;E.scrollTo({top:N,behavior:"smooth"}),y(j.id)},className:["block rounded-md px-2 py-1.5 leading-snug transition-colors",j.depth===1?"text-base font-medium":"",j.depth===2?"pl-4 text-base":"",j.depth===3?"pl-7 text-base":"",b===j.id?"bg-accent-soft font-medium text-accent":"text-fg-2 hover:bg-surface-warm hover:text-fg"].join(" "),children:j.text})},j.id))})]}),f.jsxs("div",{ref:$,className:["min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",h?"px-12 py-6":"p-5"].join(" "),children:[o.status==="loading"&&f.jsx(Go,{className:"dashboard-artifact-loading",label:"正在加载产物文件",rows:8,titleWidth:"34%"}),o.status==="empty"&&f.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"该产物文件尚未生成"}),o.status==="error"&&f.jsx("p",{role:"alert",className:"py-10 text-center text-sm text-danger",children:o.message}),o.status==="success"&&f.jsx("article",{ref:S,className:"md-github",dangerouslySetInnerHTML:{__html:o.html}})]})]})]})]})}function XM({open:e,title:t,subtitle:n,description:o,ariaLabel:s,onClose:i,children:u}){return f.jsx(Hs,{rootClassName:"dashboard-settings-modal-root dashboard-knowledge-preview-modal-root",className:"dashboard-settings-modal dashboard-knowledge-preview-modal",width:900,open:e,ariaLabel:s,title:t,subtitle:n,description:o,onClose:i,footer:null,children:({fullscreen:m})=>u({fullscreen:m})})}function pU({item:e,items:t=[],open:n,onClose:o,onSelectItem:s,labels:i={}}){const[u,m]=c.useState({status:"idle"}),h=t.length>0?t:e?[e]:[],p=i.detailLabel??"记忆详情",g=i.contentLabel??"记忆内容",b=i.typeLabel??"记忆类型",y=i.deliveryLabel??"提供给 Agent 的内容",S=i.outcomeLabel??"应用结果",$=i.navigationLabel??"本次使用的记忆";return c.useEffect(()=>{if(!e){m({status:"idle"});return}let C=!1;return m({status:"loading"}),as(e.summary||"").then(j=>{C||m(j.trim()?{status:"success",html:j}:{status:"empty"})}).catch(j=>{C||m({status:"error",message:j instanceof Error?j.message:`${g}渲染失败,请重试`})}),()=>{C=!0}},[e]),e?f.jsx(XM,{open:n,title:e.title,ariaLabel:`${p}:${e.title}`,onClose:o,children:()=>f.jsxs("div",{className:"dashboard-knowledge-preview-content",children:[h.length>1&&f.jsxs("nav",{className:"dashboard-project-knowledge-detail-nav","aria-label":$,children:[f.jsxs("div",{className:"dashboard-project-knowledge-detail-nav-head",children:[f.jsx("strong",{children:$}),f.jsxs("span",{children:[h.length," 条"]})]}),f.jsx("div",{className:"dashboard-project-knowledge-detail-nav-items",children:h.map(C=>{const j=C.id===e.id;return f.jsxs("button",{type:"button",className:j?"is-active":void 0,"aria-current":j?"true":void 0,"aria-label":`查看${p}:${C.title}`,onClick:()=>s?.(C),children:[f.jsx("strong",{children:C.title}),f.jsx("span",{children:ym(C.memoryType)})]},C.id)})})]}),f.jsx("div",{className:"dashboard-knowledge-preview-scroll",children:f.jsxs("div",{className:"dashboard-project-knowledge-detail",children:[f.jsxs("section",{children:[f.jsx("h3",{children:g}),u.status==="loading"&&f.jsx(Go,{className:"dashboard-project-knowledge-detail-loading",label:`正在渲染${g}`,rows:6}),u.status==="empty"&&f.jsx("p",{className:"dashboard-project-knowledge-detail-state",children:"暂无可展示内容"}),u.status==="error"&&f.jsx("p",{role:"alert",className:"dashboard-project-knowledge-detail-state is-error",children:u.message}),u.status==="success"&&f.jsx("article",{className:"md-github dashboard-project-knowledge-detail-content",dangerouslySetInnerHTML:{__html:u.html}})]}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:b}),f.jsx("dd",{children:ym(e.memoryType)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"为什么使用"}),f.jsx("dd",{children:e.whyApplied||"未记录应用原因"})]}),f.jsxs("div",{children:[f.jsx("dt",{children:y}),f.jsx("dd",{children:qc(e.lastApplication??e)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:S}),f.jsx("dd",{children:ol(e.outcome??e.lastApplication?.outcome)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"最近应用"}),f.jsx("dd",{children:gr(e.lastApplication?.appliedAt??e.appliedAt)})]})]})]})})]})}):null}function hU(e,t){return t==="markdown"?"markdown":/\.json$/i.test(e??"")?"json":/\.ya?ml$/i.test(e??"")?"yaml":/\.mdx?$/i.test(e??"")?"markdown":"text"}async function gU(e,t){const n=String(e??"");return n.trim()?t==="json"?z0(n):t==="yaml"?O0(n):as(t==="text"?["```text",n.replace(/\n$/,""),"```"].join(`
|
|
256
|
-
`):n):""}function bU({selectedSource:e,sourceContent:t,sourceReadPending:n,sourceReadError:o,onClose:s,onSelectRecord:i}){const[u,m]=c.useState({status:"idle"}),[h,p]=c.useState([]),[g,b]=c.useState(""),y=c.useRef(null),S=c.useRef(null),$=e?.source??"",C=hU($,t?.format);if(c.useEffect(()=>{if(!e||n||o||!t){m({status:"idle"});return}let w=!1;const R=String(t.content??"");if(!R.trim()){m({status:"empty"});return}return m({status:"loading"}),gU(R,C).then(E=>{if(!w){if(!E.trim()){m({status:"empty"});return}m({status:"success",html:t.truncated?`${E}<p><em>内容过长,已截取前 256KB。</em></p>`:E})}}).catch(E=>{w||m({status:"error",message:E instanceof Error?E.message:"来源文件预览渲染失败,请重试"})}),()=>{w=!0}},[C,e,t,o,n]),c.useEffect(()=>{if(u.status==="success"&&y.current){PM(y.current);const w=IM(y.current);p(w),b(w[0]?.id??"")}else p([]),b("")},[u]),c.useEffect(()=>{const w=S.current,R=y.current;if(!w||!R||h.length===0)return;const E=()=>{const N=h.map(({id:T})=>document.getElementById(T)).filter(Boolean);let M=N[0]?.id??"";for(const T of N){const O=T.getBoundingClientRect(),P=w.getBoundingClientRect();O.top-P.top<=80&&(M=T.id)}b(M)};return w.addEventListener("scroll",E,{passive:!0}),()=>w.removeEventListener("scroll",E)},[h]),!e)return null;const j=t?.modifiedAt??e.latestUpdatedAt;return f.jsx(XM,{open:!0,title:"项目知识来源详情",description:"查看项目知识关联文件的渲染结果和来源上下文",ariaLabel:"项目知识来源详情",onClose:s,children:({fullscreen:w})=>f.jsxs("div",{className:"dashboard-knowledge-preview-content",children:[w&&h.length>0&&f.jsxs("nav",{"aria-label":"文档目录",className:"dashboard-knowledge-preview-toc",children:[f.jsx("p",{children:"目录"}),f.jsx("ul",{children:h.map(R=>f.jsx("li",{children:f.jsx("a",{href:`#${R.id}`,onClick:E=>{E.preventDefault();const N=document.getElementById(R.id),M=S.current;if(!N||!M)return;const T=N.getBoundingClientRect().top-M.getBoundingClientRect().top+M.scrollTop-16;M.scrollTo({top:T,behavior:"smooth"}),b(R.id)},className:g===R.id?"is-active":"",children:R.text})},R.id))})]}),f.jsx("div",{ref:S,className:`dashboard-knowledge-preview-scroll${w?" is-fullscreen":""}`,children:f.jsxs("div",{className:"dashboard-knowledge-source-detail",children:[f.jsxs("header",{children:[f.jsx("code",{children:e.source}),f.jsx("span",{children:e.kind??"项目知识来源"})]}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"关联记录"}),f.jsxs("dd",{children:[e.records.length," 条"]})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"最近更新"}),f.jsx("dd",{children:j?gr(j):"—"})]})]}),e.records.length>0&&f.jsxs("section",{children:[f.jsx("h4",{children:"关联项目知识"}),f.jsx("div",{className:"dashboard-knowledge-source-related",children:e.records.map(R=>f.jsxs("button",{type:"button",onClick:()=>i(R),children:[f.jsx("strong",{children:R.title}),f.jsx("span",{children:R.summary})]},R.id))})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"文件原文"}),n?f.jsx(Go,{className:"dashboard-knowledge-source-loading",label:"正在读取来源文件",rows:6}):o?f.jsx(To,{type:"warning",showIcon:!0,message:o}):u.status==="loading"?f.jsx(Go,{className:"dashboard-knowledge-source-loading",label:"正在渲染来源文件",rows:6}):u.status==="error"?f.jsx("p",{role:"alert",className:"text-danger",children:u.message}):u.status==="empty"?f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"来源文件为空"}):u.status==="success"?f.jsx("article",{ref:y,className:"md-github dashboard-knowledge-source-rendered-content",dangerouslySetInnerHTML:{__html:u.html}}):f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"尚未读取来源文件"}),t&&f.jsxs("div",{className:"dashboard-knowledge-source-detail-meta",children:[f.jsx("span",{children:YM(t.size)}),f.jsx("span",{children:gr(t.modifiedAt)}),t.truncated&&f.jsx("span",{children:"内容已截断"})]})]})]})})]})})}function KM({tone:e="neutral",children:t}){const n={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 f.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${n}`,children:t})}function vU({error:e}){return f.jsxs("div",{role:"status",className:"mb-4 rounded-lg border border-warn/30 bg-warn-soft p-4 shadow-card",children:[f.jsx("h3",{className:"font-semibold text-warn",children:"Classic 数据部分读取失败"}),f.jsxs("p",{className:"mt-1 break-words text-sm text-fg-2",children:["已展示可读取的变更;请检查其余 Classic 产物目录后刷新。",e.message]})]})}function yU({error:e}){return f.jsxs("div",{role:"alert",className:"rounded-lg border border-danger/30 bg-danger-soft p-6 shadow-card",children:[f.jsx("h3",{className:"font-semibold text-danger",children:"Classic 数据读取失败"}),f.jsx("p",{className:"mt-2 break-words text-sm text-fg-2",children:e.message}),f.jsx("p",{className:"mt-3 text-sm text-muted",children:"请检查 .comet/config.yaml 与 Classic 产物目录,然后刷新 Dashboard。"})]})}function xU({snapshot:e,tab:t,onTab:n}){const o=e.summary.activeChanges+e.summary.archivedChanges>0,s=e.summary.archivedChanges>0,i=e.summary.activeChanges>0,u=t==="active"&&s,m=t==="archived"&&i,h=o?u?"当前没有活跃的 Classic change":m?"还没有已归档的 Classic change":"当前范围没有可展示的 Classic change":"当前没有 Classic change",p=o?u?"当前工作区没有进行中的变更,你可以继续查看已归档的历史记录。":m?"当前还没有归档记录,你可以返回查看正在进行的变更。":"调整顶部搜索条件,或切换变更范围后再试。":"Classic 变更出现后会在这里展示。";return f.jsx(Us,{className:"change-detail classic-change-detail-empty min-w-0",title:f.jsx("h3",{className:"m-0 text-sm font-semibold",children:h}),children:f.jsxs("div",{className:"dashboard-workspace-empty-detail text-center",children:[f.jsx("span",{className:"native-workspace-empty-icon","aria-hidden":"true",children:f.jsx(hl,{})}),f.jsx("p",{children:p}),u?f.jsx(pt,{className:"mt-5",type:"primary",onClick:()=>n("archived"),children:"查看已归档变更"}):m?f.jsx(pt,{className:"mt-5",type:"primary",onClick:()=>n("active"),children:"查看活跃变更"}):null]})})}function SU(){return f.jsx("aside",{className:"dashboard-workspace-side-empty","aria-label":"Classic 变更状态",children:f.jsxs("div",{children:[f.jsx("span",{className:"native-workspace-empty-icon","aria-hidden":"true",children:f.jsx(hl,{})}),f.jsx("h3",{children:"暂无变更数据"}),f.jsx("p",{children:"选择或创建 Classic change 后,这里会显示执行状态、验证结果和 Git 摘要。"})]})})}function H2(){return f.jsxs("section",{className:"change-detail classic-change-detail-skeleton min-w-0 rounded-lg border border-border bg-bg shadow-raised","aria-label":"正在加载 Classic 变更详情","aria-busy":"true",children:[f.jsx("div",{className:"border-b border-border-soft px-5 py-5",children:f.jsx(Go,{label:"正在加载 Classic 变更标题",rows:2,titleWidth:"38%"})}),f.jsx("div",{className:"space-y-6 p-5",children:f.jsx(Go,{label:"正在加载 Classic 变更内容",rows:7,titleWidth:"24%"})})]})}function CU(){return f.jsx("aside",{className:"classic-side-panel-skeleton space-y-5","aria-label":"正在加载 Classic 变更状态","aria-busy":"true",children:[3,2,3].map((e,t)=>f.jsx("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:f.jsx(Go,{label:`正在加载 Classic 侧栏第 ${t+1} 组`,rows:e,titleWidth:"42%"})},t))})}function Go({className:e="",label:t,rows:n=4,titleWidth:o=null}){const s=["52%","78%","66%","92%","72%","58%","84%","64%"].slice(0,n);return f.jsx("div",{className:`dashboard-line-skeleton ${e}`.trim(),"aria-label":t,"aria-busy":"true",children:f.jsx(Sr,{active:!0,title:o?{width:o}:!1,paragraph:{rows:n,width:s}})})}function bm(){return f.jsx("div",{className:"dashboard-loading-state mx-auto max-w-dashboard rounded-lg bg-bg p-8 shadow-raised",children:f.jsx(Go,{label:"正在加载 Dashboard",rows:6,titleWidth:"28%"})})}function eb(e,t,n,o,s){if(t==="comet.personal-memory"&&n==="remove"&&e?.pluginId===t&&mr(e.data)&&mr(s)&&typeof s.id=="string"&&Array.isArray(e.data.manifestPreview))return{...e,data:{...e.data,manifestPreview:e.data.manifestPreview.filter(m=>m?.id!==s.id)}};if(t==="comet.project-knowledge"&&e?.pluginId===t){if(n==="query"&&mr(e.data)&&mr(o)&&o.kind==="search")return{...e,data:{...e.data,queryPreview:{...o,task:mr(s)&&typeof s.task=="string"?s.task:""}}};if((n==="create"||n==="correct"||n==="forget")&&mr(e.data)&&mr(o)&&mr(o.record)&&typeof o.record.id=="string"){const m=Array.isArray(e.data.records)?e.data.records:[],h=m.findIndex(g=>g?.id===o.record.id),p=h===-1?[o.record,...m]:m.map((g,b)=>b===h?o.record:g);return{...e,data:{...e.data,records:p,counts:{trial:p.filter(g=>g?.state==="trial").length,proven:p.filter(g=>g?.state==="proven").length,enforced:p.filter(g=>g?.state==="enforced").length,superseded:p.filter(g=>g?.state==="superseded").length}}}}if(n==="refresh"&&mr(e.data)&&mr(o)&&Array.isArray(o.records)){const m=o.records.filter(y=>mr(y)&&typeof y.id=="string"),h=new Map(m.map(y=>[y.id,y])),p=Array.isArray(e.data.records)?e.data.records:[],g=new Set(p.map(y=>y?.id)),b=[...p.map(y=>h.get(y?.id)??y),...m.filter(y=>!g.has(y.id))];return{...e,data:{...e.data,records:b,counts:{trial:b.filter(y=>y?.state==="trial").length,proven:b.filter(y=>y?.state==="proven").length,enforced:b.filter(y=>y?.state==="enforced").length,superseded:b.filter(y=>y?.state==="superseded").length}}}}}if(t!=="comet.personal-memory"||n!=="correct"||e?.pluginId!==t||!mr(e.data)||!mr(o)||typeof o.id!="string")return e;const i=F2(e.data.retrieval,o),u=F2(e.data.management,o);return i===e.data.retrieval&&u===e.data.management?e:{...e,data:{...e.data,retrieval:i,management:u}}}function F2(e,t){if(!mr(e))return e;const n={};let o=!1;for(const s of["records","profileRecords","taskRecords"]){const i=e[s];if(!Array.isArray(i))continue;let u=!1;const m=i.map(h=>!mr(h)||h.id!==t.id?h:(u=!0,{...h,...t}));u&&(n[s]=m,o=!0)}return o?{...e,...n}:e}function mr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}async function $U(){const e=await fetch("/api/dashboard/projects",{cache:"no-store"});if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.json()}async function k2(e){const t=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/plugins`,{cache:"no-store"});if(!t.ok)throw await ls(t);return t.json()}async function wU(e,t){const n=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/plugins/${encodeURIComponent(t)}`,{cache:"no-store"});if(!n.ok)throw await ls(n);return n.json()}async function EU(e){const t=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/config`,{cache:"no-store"});if(!t.ok)throw await ls(t);return t.json()}async function NU(e,t){const n=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/config`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw await ls(n);return n.json()}async function jU(e,t,n,o){const s=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/plugins/${encodeURIComponent(t)}/invoke`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({capability:n,input:o})});if(!s.ok)throw await ls(s);return(await s.json())?.result}async function RU(e,t,n){const o=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/plugins/${encodeURIComponent(t)}/lifecycle`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:n})});if(!o.ok)throw await ls(o);return o.json()}async function MU(e,t,n=""){const o=new URLSearchParams;n.trim()&&o.set("q",n.trim());const s=o.toString()?`?${o.toString()}`:"",i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/overview${s}`,{cache:"no-store",signal:t});if(!i.ok)throw new Error(`HTTP ${i.status}`);return i.json()}async function TU(e,t,n={}){const o=new URLSearchParams({status:t,limit:"5"});n.cursor&&o.set("cursor",n.cursor),n.query?.trim()&&o.set("q",n.query.trim());const s=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/changes?${o.toString()}`,{cache:"no-store",signal:n.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.json()}async function V2(e,t,n={}){const o=new URLSearchParams({status:t,limit:"5"});n.cursor&&o.set("cursor",n.cursor),n.query?.trim()&&o.set("q",n.query.trim());const s=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/native-changes?${o.toString()}`,{cache:"no-store",signal:n.signal});if(!s.ok)throw await ls(s);return s.json()}async function q2(e,t,n){const o=new URLSearchParams({status:t.status,changeName:t.name});t.locator&&o.set("changeLocator",t.locator),t.archiveName&&o.set("archiveName",t.archiveName);const s=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/native-change?${o.toString()}`,{cache:"no-store",signal:n});if(!s.ok)throw await ls(s);return s.json()}async function OU(e,t,n){const o=new URLSearchParams({changeLocator:t}),s=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/change?${o.toString()}`,{cache:"no-store",signal:n});if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.json()}async function zU(){const e=await ga(()=>import("./demo-lxXhgJ9-.js"),[]);return IU(e.DEMO_SNAPSHOT)}async function W2(){return(await ga(()=>import("./demo-lxXhgJ9-.js"),[])).DEMO_PLUGIN_PAGES}async function AU(){const e=await ga(()=>import("./demo-lxXhgJ9-.js"),[]);return structuredClone(e.DEMO_PROJECT_CONFIG)}function IU(e){const t=n=>{const s=(n.artifacts?.grouped??[]).map(i=>{const u=i.exists?i.content??`# ${i.label}
|
|
257
|
-
|
|
258
|
-
${i.label}:${n.displayName}
|
|
259
|
-
|
|
260
|
-
- 当前阶段:${nx(n.phase)}
|
|
261
|
-
- 任务进度:${n.tasks.completed}/${n.tasks.total}
|
|
262
|
-
- Verify:${ex[n.verify.result]??"未知"}
|
|
263
|
-
`:void 0;return{key:i.key,label:i.label,path:i.path,exists:i.exists,size:i.exists?i.size??u?.length:void 0,updatedAt:i.exists?i.updatedAt??"2026-08-29T12:30:00.000Z":void 0,content:u}});return{...n,artifactPreviews:s}};return{...e,changes:{active:(e.changes.active??[]).map(t),archived:(e.changes.archived??[]).map(t)}}}function PU(e,t){const n=[...e.changes.active??[],...e.changes.archived??[]];if(t&&n.some(s=>pr(s)===t))return t;const o=e.changes.active?.[0]??e.changes.archived?.[0];return o?pr(o):null}function U2(e,t){return!e||!t?null:[...e.changes.active??[],...e.changes.archived??[]].find(n=>pr(n)===t)??null}function LU(e,t,n){if(!e)return[];const o=t==="archived"?e.changes.archived??[]:t==="all"?[...e.changes.active??[],...e.changes.archived??[]]:e.changes.active??[],s=n.trim().toLowerCase();return s?o.filter(i=>[i.name,i.displayName,i.workflow,i.phase,i.workspace?.label,i.workspace?.branch].filter(Boolean).join(" ").toLowerCase().includes(s)):o}function _U(e){return e.relativePath||e.name}function nx(e){return I0.find(([t])=>t===e)?.[1]??e??"未知"}function gr(e){if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=o=>String(o).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function vm(e){const t=[...(e.conclusions??[]).flatMap(n=>n.sources??[]),...(e.relations??[]).flatMap(n=>n.sources??[])];return[...new Set(t.map(n=>n.anchor?`${n.source}#${n.anchor}`:n.lineStart?`${n.source}#L${n.lineStart}${n.lineEnd?`-L${n.lineEnd}`:""}`:n.source))]}function G2(e){const t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function YM(e){return e==null?null:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function tb(e){const t=e.status??e.state;return t==="trial"||t==="proven"}function X2(e){const t=e.status??e.state;return t==="trial"?"试用中":t==="proven"?"已验证":t==="conflict"?"存在冲突":t==="tombstoned"?"已忘记":"已替代"}function nb(e){return e.memoryType==="core-profile"?"个人偏好与事实":e.memoryType==="collaboration-policy"?"协作约定":"任务经验"}function BU(e){return e.authority==="explicit"||e.kind==="explicit"||e.memoryType==="core-profile"?"用户确认":"经验推断"}function QM(e){return e.authority==="user"?"用户确认":e.authority==="repository"?"仓库生成":"自动整理"}function K2(e){return e.lastApplication?.whyApplied??"尚未应用"}function ym(e){return e==="core-profile"?"个人偏好与事实":e==="collaboration-policy"?"协作约定":e==="personal-episode"?"任务经验":e==="project-model"?"项目概况":e==="project-policy"?"项目规范":"相关记忆"}function DU(e){return String(e??"").replace(/```[\s\S]*?```/g,t=>t.replace(/^```[^\n]*\n?|\n?```$/g,"")).replace(/^\s{0,3}#{1,6}\s*/gm,"").replace(/^\s*\|?[\s:-]+(?:\|[\s:-]+)+\|?\s*$/gm,"").replace(/^\s*[-*+]\s+/gm,"").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[`*_~]/g,"").replace(/\|/g," · ").replace(/\s+/g," ").trim()}function qc(e){return e?e.delivery==="full"?"完整内容":"摘要提示":"尚未应用"}function ol(e){return e?e==="used-successfully"?"应用成功":e==="ignored"?"未使用":e==="overridden"?"已被覆盖":e==="corrected"?"已纠正":"导致失败":"尚未反馈结果"}async function ZM(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 n=document.execCommand("copy");if(t.remove(),!n)throw new Error("当前浏览器不支持复制")}const Y2=document.getElementById("root"),HU=globalThis.__COMET_DASHBOARD_EMBED__===!0;Y2&&!HU&&dN.createRoot(Y2).render(f.jsx(eU,{}));function FU({embedded:e=!1,open:t,collapsed:n,workflow:o,onWorkflow:s,pluginPages:i,pluginSelection:u,settingsOpen:m,onSettings:h,onPluginSelect:p,onCollapse:g,onExpand:b,onClose:y}){const S=f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"dashboard-sidebar-group",children:[f.jsx("div",{className:"dashboard-sidebar-label",children:"工作流"}),f.jsx(Ws,{className:"dashboard-sidebar-menu dashboard-workflow-menu",mode:"inline",inlineCollapsed:n,inlineIndent:12,selectedKeys:u?[]:[o],items:[{key:"classic",icon:f.jsx(RM,{}),label:"Classic 工作流"},{key:"native",icon:f.jsx(By,{}),label:"Native 工作流"}],onClick:({key:C})=>{p(null),s(C),y()}})]}),f.jsxs("div",{className:"dashboard-sidebar-group",children:[f.jsx("div",{className:"dashboard-sidebar-label",children:"插件中心"}),f.jsx(Ws,{className:"dashboard-sidebar-menu dashboard-plugin-menu",mode:"inline",inlineCollapsed:n,inlineIndent:12,selectedKeys:u?[u]:[],items:i.map(C=>{const j=C.globallyDisabled?"停用":C.projectPaused?"暂停":C.status==="disabled"?"停用":null;return{key:C.pluginId,disabled:!!C.pending,icon:C.pluginId==="comet.personal-memory"?f.jsx(Gy,{}):C.pluginId==="comet.project-knowledge"?f.jsx(Ky,{}):f.jsx(su,{}),label:f.jsxs("span",{className:`dashboard-plugin-menu-item${C.pending?" is-loading":""}`,children:[f.jsx("span",{children:C.label}),j?f.jsx(Ey,{status:"default",text:j}):null]})}}),onClick:({key:C})=>{p(C),y()}})]})]}),$=f.jsxs("button",{type:"button",className:`dashboard-sidebar-settings${m?" is-active":""}`,"aria-pressed":m,"aria-label":"设置",title:"设置",onClick:()=>{h(),y()},children:[f.jsx(Yy,{"aria-hidden":"true"}),f.jsx("span",{className:"dashboard-sidebar-settings-label",children:"设置"})]});return f.jsxs(f.Fragment,{children:[f.jsx(pl.Sider,{className:"dashboard-sidebar !hidden !bg-bg lg:!block",width:228,collapsed:n,collapsedWidth:64,collapsible:!0,trigger:null,theme:"light",children:f.jsxs("div",{className:"dashboard-sidebar-content flex h-full flex-col",children:[f.jsxs("div",{className:"dashboard-sidebar-brand flex items-center gap-2",children:[f.jsx("img",{src:e?"/assets/dashboard-website-demo/favicon.png":"/favicon.png",alt:"Comet",className:"size-7 rounded-[7px]"}),f.jsxs("div",{className:"dashboard-sidebar-brand-copy","aria-hidden":n,children:[f.jsx("strong",{children:"Comet Dashboard"}),f.jsx("div",{className:"text-xs text-meta",children:"Agent 工作台"})]}),f.jsx(Wn,{title:n?"展开侧边栏":"收起侧边栏",placement:"right",children:f.jsx(pt,{className:"dashboard-sidebar-collapse",type:"text",icon:n?f.jsx(vq,{}):f.jsx(lq,{}),onClick:n?b:g,"aria-label":n?"展开侧边栏":"收起侧边栏"})})]}),f.jsx("div",{className:"dashboard-sidebar-navigation",children:S}),f.jsxs("div",{className:"dashboard-sidebar-footer",children:[f.jsx("div",{className:"dashboard-sidebar-label dashboard-sidebar-footer-label","aria-hidden":n,children:"系统"}),$]})]})}),f.jsx(hM,{title:"Comet 工作台",placement:"left",open:t,onClose:y,size:280,children:f.jsxs("div",{className:"dashboard-mobile-navigation",children:[S,f.jsxs("div",{className:"dashboard-mobile-settings",children:[f.jsx("div",{className:"dashboard-sidebar-label",children:"系统"}),$]})]})})]})}function kU({page:e,loading:t,error:n,readOnly:o=!1,onRetry:s,onInvoke:i}){return t&&!e?f.jsx(bm,{}):n&&!e?f.jsxs("div",{className:"mx-auto max-w-dashboard",children:[f.jsx(Nc,{title:"插件中心",hint:"页面暂时不可用"}),f.jsx(To,{type:"error",showIcon:!0,message:"插件页面加载失败",description:n,action:f.jsx(pt,{onClick:s,children:"重试"})})]}):e?e.pluginId==="comet.project-knowledge"?f.jsx(JU,{page:e,data:e.data,readOnly:o,onInvoke:i}):e.status==="disabled"?f.jsxs("div",{className:"mx-auto max-w-dashboard",children:[f.jsx(Nc,{title:e.label,hint:"插件中心"}),f.jsx(To,{type:"info",showIcon:!0,message:"插件已停用",description:"页面数据和项目文件仍然保留,重新启用后即可继续使用。",action:f.jsx(pt,{onClick:()=>i("lifecycle",{action:"enable"}),children:"重新启用"})})]}):e.pluginId==="comet.personal-memory"?f.jsx(eG,{data:e.data,readOnly:o,onInvoke:i}):f.jsxs("div",{className:"mx-auto max-w-dashboard",children:[f.jsx(Nc,{title:e.label,hint:"插件中心"}),f.jsx(Us,{size:"small",children:"该插件暂未提供可视化中心页。"})]}):f.jsx(bm,{})}function VU({open:e,readOnly:t=!1,section:n,pages:o,page:s,config:i,loading:u,error:m,onClose:h,onSection:p,onRetry:g,onSaveConfig:b,onInvoke:y}){return f.jsx(Hs,{rootClassName:"dashboard-settings-modal-root",className:"dashboard-settings-modal",width:920,open:e,title:"Comet 设置",subtitle:t?"只读预览":"当前项目",description:"统一管理个人记忆、项目规则与工作流配置",onClose:h,footer:f.jsxs("div",{className:"dashboard-settings-modal-footer",children:[f.jsx("span",{children:"点击背景可关闭或还原设置"}),f.jsx("div",{children:f.jsx(pt,{type:"primary",onClick:h,children:"完成"})})]}),children:f.jsx(qU,{section:n,pages:o,page:s,config:i,loading:u,error:m,onSection:p,onRetry:g,onSaveConfig:b,onInvoke:y,readOnly:t})})}function qU({section:e,pages:t,page:n,config:o,loading:s,error:i,onSection:u,onRetry:m,onSaveConfig:h,onInvoke:p,readOnly:g=!1}){const b=new Set(t.filter($=>!$.pending).map($=>$.pluginId)),y=[{key:"comet.personal-memory",icon:f.jsx(Qy,{}),label:"个人记忆",disabled:!b.has("comet.personal-memory")},{key:"comet.project-knowledge",icon:f.jsx(Ky,{}),label:"项目规则",disabled:!b.has("comet.project-knowledge")},{key:"comet.config",icon:f.jsx(Yy,{}),label:"Comet 配置"}],S=e==="comet.config"?o:n;return f.jsx("div",{className:"dashboard-tool-page dashboard-settings-page min-w-0",children:f.jsxs("div",{className:"dashboard-settings-shell",children:[f.jsxs("aside",{className:"dashboard-settings-navigation","aria-label":"设置分类",children:[f.jsx("div",{className:"dashboard-settings-navigation-label",children:"设置中心"}),f.jsx(Ws,{mode:"inline",selectedKeys:e?[e]:[],items:y,onClick:({key:$})=>u($)})]}),f.jsx("section",{className:`dashboard-settings-main${g?" is-read-only":""}`,"aria-live":"polite","aria-disabled":g||void 0,children:f.jsx("div",{className:"dashboard-settings-content",children:s&&!S?f.jsx(bm,{}):i&&!S?f.jsx(To,{type:"error",showIcon:!0,message:"设置加载失败",description:i,action:f.jsx(pt,{onClick:m,children:"重试"})}):e==="comet.config"&&o?f.jsx(WU,{data:o,readOnly:g,onSave:h}):n?n.pluginId==="comet.personal-memory"?f.jsx(UU,{page:n,data:n.data,readOnly:g,onInvoke:p}):n.pluginId==="comet.project-knowledge"?f.jsx(GU,{page:n,data:n.data,readOnly:g,onInvoke:p}):f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"该插件暂未提供设置页"}):f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"当前设置不可用"})})})]})})}function rx({icon:e,title:t,description:n,status:o}){return f.jsxs("div",{className:"dashboard-settings-section-head","aria-label":t,children:[f.jsx("span",{className:"dashboard-tool-panel-icon","aria-hidden":"true",children:f.jsx(e,{})}),f.jsx("p",{children:n}),o&&f.jsx("span",{className:"dashboard-tool-counter",children:o})]})}function Q2(e){return{defaultWorkflow:e.defaultWorkflow,workflows:[...e.workflows],ambientResume:e.ambientResume,hookAllowPaths:e.hookAllowPaths.join(`
|
|
264
|
-
`),knowledge:{provider:e.knowledge?.provider??"local",localInclude:[...e.knowledge?.localInclude??[]]},native:{...e.native,maxVerifyFailures:String(e.native.maxVerifyFailures)},classic:{...e.classic}}}function WU({data:e,readOnly:t=!1,onSave:n}){const[o,s]=c.useState(()=>Q2(e)),[i,u]=c.useState(!1),[m,h]=c.useState(null);c.useEffect(()=>{s(Q2(e)),h(null)},[e.revision]);const p=($,C)=>{s(j=>({...j,native:{...j.native,[$]:C}}))},g=($,C)=>{s(j=>({...j,classic:{...j.classic,[$]:C}}))},b=$=>{s(C=>({...C,knowledge:{...C.knowledge,localInclude:$}}))},y=async()=>{if(o.workflows.length===0){h("至少需要启用一个工作流。");return}const $=Number(o.native.maxVerifyFailures);if(!Number.isSafeInteger($)||$<=0){h("Verify 失败上限必须是正整数。");return}u(!0),h(null);try{await n({defaultWorkflow:o.defaultWorkflow,workflows:o.workflows,ambientResume:o.ambientResume,hookAllowPaths:o.hookAllowPaths.split(/\r?\n/u).map(C=>C.trim()).filter(Boolean),knowledge:{provider:o.knowledge.provider,localInclude:o.knowledge.localInclude.filter(C=>C.trim())},native:{...o.native,maxVerifyFailures:$},classic:o.classic})}catch(C){h(C instanceof Error?C.message:String(C))}finally{u(!1)}},S=[{value:"native",label:"Native"},{value:"classic",label:"Classic"}];return f.jsxs("div",{className:"dashboard-settings-stack",children:[f.jsx(rx,{icon:Yy,title:"Comet 配置",description:"编辑当前项目的工作流、恢复策略与产物设置",status:e.schema}),m&&f.jsx(To,{type:"error",showIcon:!0,message:"配置保存失败",description:m}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"comet-workflow-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"comet-workflow-settings",children:"工作流与恢复"}),f.jsx("p",{children:"控制 `/comet` 的默认入口、可用工作流和自动恢复行为"})]})}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"默认工作流"}),f.jsx("span",{children:"运行 `/comet` 且没有明确指定模式时使用"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.defaultWorkflow,"aria-label":"Comet 默认工作流",options:S.filter($=>o.workflows.includes($.value)),onChange:$=>s(C=>({...C,defaultWorkflow:$}))})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"启用的工作流"}),f.jsx("span",{children:"可以同时保留 Native 与 Classic"})]}),f.jsx(qn,{mode:"multiple",className:"dashboard-config-control dashboard-config-control-wide",value:o.workflows,"aria-label":"Comet 启用的工作流",options:S,onChange:$=>s(C=>({...C,workflows:$,defaultWorkflow:$.includes(C.defaultWorkflow)?C.defaultWorkflow:$[0]??C.defaultWorkflow}))})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"环境感知恢复"}),f.jsx("span",{children:"在任务开始前运行只读探针,发现可恢复的 Native 或 Classic change"})]}),f.jsx(es,{size:"small",checked:o.ambientResume,"aria-label":"切换环境感知恢复",onChange:$=>s(C=>({...C,ambientResume:$}))})]}),f.jsxs("div",{className:"dashboard-memory-setting dashboard-memory-setting-stack",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"Hook 允许写入路径"}),f.jsx("span",{children:"每行一个项目相对目录;留空时继续遵循工作流阶段保护"})]}),f.jsx(Wt.TextArea,{rows:3,value:o.hookAllowPaths,"aria-label":"Hook 允许写入路径",placeholder:`例如:
|
|
265
|
-
docs/generated
|
|
266
|
-
reports`,onChange:$=>s(C=>({...C,hookAllowPaths:$.target.value}))})]})]}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"comet-knowledge-settings",children:[f.jsxs("div",{className:"dashboard-settings-panel-head",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"comet-knowledge-settings",children:"项目知识文档"}),f.jsx("p",{children:"在内置 Spec 与 Archive 之外,追加当前项目要参与 Local 检索的 Markdown 文档"})]}),f.jsx(ha,{color:o.knowledge.provider==="local"?"success":"default",children:o.knowledge.provider==="local"?"Local 生效":"Remote 使用中"})]}),f.jsxs("div",{className:"dashboard-memory-setting dashboard-memory-setting-stack",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"额外知识文档路径"}),f.jsx("span",{children:"每项填写一个项目相对 glob,例如 docs/architecture/**/*.md;只读取 Markdown 文件"})]}),f.jsxs("div",{className:"dashboard-knowledge-config-patterns",children:[o.knowledge.localInclude.map(($,C)=>f.jsxs("div",{className:"dashboard-knowledge-config-pattern-row",children:[f.jsx(Wt,{value:$,disabled:o.knowledge.provider!=="local","aria-label":`额外知识文档路径 ${C+1}`,placeholder:"例如:docs/architecture/**/*.md",onChange:j=>{const w=[...o.knowledge.localInclude];w[C]=j.target.value,b(w)}}),f.jsx(pt,{type:"text",danger:!0,icon:f.jsx(Uy,{}),disabled:o.knowledge.provider!=="local","aria-label":`删除额外知识文档路径 ${C+1}`,onClick:()=>b(o.knowledge.localInclude.filter((j,w)=>w!==C))})]},`${C}-${$}`)),f.jsx(pt,{type:"dashed",icon:f.jsx(kc,{}),disabled:o.knowledge.provider!=="local",onClick:()=>b([...o.knowledge.localInclude,""]),children:"添加文档路径"})]}),f.jsx("span",{className:"dashboard-settings-help-text",children:o.knowledge.provider==="local"?"保存后会刷新本地语料;没有匹配文件的合法路径会保留并显示为暂无来源。":"当前使用 Remote Provider;这些本地路径会保留,但不会被读取或上传。"})]})]}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"comet-native-settings",children:[f.jsxs("div",{className:"dashboard-settings-panel-head",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"comet-native-settings",children:"Native 工作流"}),f.jsx("p",{children:"控制 Native 产物位置、语言、澄清与归档策略"})]}),f.jsx(ha,{color:o.workflows.includes("native")?"success":"default",children:o.workflows.includes("native")?"已启用":"未启用"})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"产物根目录"}),f.jsx("span",{children:"修改后会改变 Native specs 与 changes 的发现位置"})]}),f.jsx(Wt,{className:"dashboard-config-control dashboard-config-control-wide",value:o.native.artifactRoot,"aria-label":"Native 产物根目录",onChange:$=>p("artifactRoot",$.target.value)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"产物语言"}),f.jsx("span",{children:"Native 生成的需求、规格与验证文档语言"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.native.language,"aria-label":"Native 产物语言",options:[{value:"zh-CN",label:"简体中文"},{value:"en",label:"English"}],onChange:$=>p("language",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"澄清方式"}),f.jsx("span",{children:"批量收集问题,或每轮只处理一个问题"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.native.clarificationMode,"aria-label":"Native 澄清方式",options:[{value:"batch",label:"批量询问"},{value:"sequential",label:"逐个询问"}],onChange:$=>p("clarificationMode",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"归档确认"}),f.jsx("span",{children:"验证通过后自动归档,或等待用户明确确认"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.native.archiveConfirmation,"aria-label":"Native 归档确认",options:[{value:"automatic",label:"自动归档"},{value:"required",label:"需要确认"}],onChange:$=>p("archiveConfirmation",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"Verify 失败上限"}),f.jsx("span",{children:"同一验收目标达到上限后停止完成循环"})]}),f.jsx(Wt,{className:"dashboard-config-control",inputMode:"numeric",value:o.native.maxVerifyFailures,"aria-label":"Native Verify 失败上限",onChange:$=>p("maxVerifyFailures",$.target.value)})]})]}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"comet-classic-settings",children:[f.jsxs("div",{className:"dashboard-settings-panel-head",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"comet-classic-settings",children:"Classic 工作流"}),f.jsx("p",{children:"控制 Classic 产物布局、语言、压缩与审查深度"})]}),f.jsx(ha,{color:o.workflows.includes("classic")?"success":"default",children:o.workflows.includes("classic")?"已启用":"未启用"})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"产物布局"}),f.jsx("span",{children:"选择根目录兼容布局或 docs 标准布局"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.classic.artifactLayout,"aria-label":"Classic 产物布局",options:[{value:"docs",label:"docs"},{value:"legacy",label:"legacy"}],onChange:$=>g("artifactLayout",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"产物语言"}),f.jsx("span",{children:"Classic change 文档使用的语言"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.classic.language,"aria-label":"Classic 产物语言",options:[{value:"zh-CN",label:"简体中文"},{value:"en",label:"English"}],onChange:$=>g("language",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"上下文压缩"}),f.jsx("span",{children:"为新建 Classic change 启用 beta 压缩能力"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.classic.contextCompression,"aria-label":"Classic 上下文压缩",options:[{value:"off",label:"关闭"},{value:"beta",label:"Beta"}],onChange:$=>g("contextCompression",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"审查深度"}),f.jsx("span",{children:"控制新建 Classic change 的默认审查强度"})]}),f.jsx(qn,{className:"dashboard-config-control",value:o.classic.reviewMode,"aria-label":"Classic 审查深度",options:[{value:"off",label:"关闭"},{value:"standard",label:"标准"},{value:"thorough",label:"深入"}],onChange:$=>g("reviewMode",$)})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"自动进入下一阶段"}),f.jsx("span",{children:"当前阶段通过后自动进入 Classic 的下一阶段"})]}),f.jsx(es,{size:"small",checked:o.classic.autoTransition,"aria-label":"切换 Classic 自动进入下一阶段",onChange:$=>g("autoTransition",$)})]})]}),f.jsx("section",{className:"dashboard-settings-panel","aria-labelledby":"comet-config-file",children:f.jsxs("div",{className:"dashboard-settings-panel-head dashboard-config-save-row",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"comet-config-file",children:"配置文件"}),f.jsxs("p",{children:["保存到 ",f.jsx("code",{children:e.path}),";未知扩展字段会原样保留"]})]}),f.jsx(pt,{type:"primary",loading:i,disabled:t,onClick:y,children:"保存 Comet 配置"})]})})]})}function UU({page:e,data:t,readOnly:n=!1,onInvoke:o}){const[s,i]=c.useState(""),[u,m]=c.useState("local"),[h,p]=c.useState("2000"),[g,b]=c.useState("6000"),[y,S]=c.useState(""),[$,C]=c.useState(""),[j,w]=c.useState("default"),[R,E]=c.useState("5000"),[N,M]=c.useState(!1),T=t?.status??{},O=t?.retrieval??{},P=t?.management??{},_=t?.policy??{},A=(P.records??O.records??[]).filter(k=>k.status==="conflict"||k.kind==="inferred"&&k.status==="trial"),B=t?.projectKey,V=_.learning!==!1,Z=_.retrieval!==!1,W=B&&(T.pausedLearningProjects??[]).includes(B),H=B&&(T.pausedRetrievalProjects??[]).includes(B),q=T.sync?.message??"本地记忆仓库已连接",U=T.provider?.provider??"local";c.useEffect(()=>{const k=t?.providerConfig;k&&(m(k.provider??"local"),p(String(k.profileCharLimit??2e3)),b(String(k.taskContextCharLimit??6e3)),S(k.remote?.endpoint??""),C(k.remote?.tokenEnv??""),w(k.remote?.profile??"default"),E(String(k.remote?.timeoutMs??5e3)))},[t?.providerConfig]);const J=()=>{const k=Number(h),I=Number(g),D=Number(R);!Number.isFinite(k)||k<=0||!Number.isFinite(I)||I<=0||u==="remote"&&(!Number.isFinite(D)||D<=0)||o("configure-provider",{provider:u,profileCharLimit:Math.round(k),taskContextCharLimit:Math.round(I),...u==="remote"?{remote:{endpoint:y.trim(),...$.trim()?{tokenEnv:$.trim()}:{},...j.trim()?{profile:j.trim()}:{},timeoutMs:Math.round(D)}}:{}})};return f.jsxs("div",{className:"dashboard-settings-stack",children:[f.jsx(rx,{icon:Qy,title:"个人记忆设置",description:"控制当前项目的学习、注入、Provider 与同步",status:e.status==="disabled"?"已停用":U==="remote"?"Remote":"Local"}),e.status==="disabled"&&f.jsx(To,{type:"info",showIcon:!0,message:"个人记忆插件已停用",description:"记忆文件和历史仍然保留,重新启用后即可继续使用。",action:f.jsx(pt,{disabled:n,onClick:()=>o("lifecycle",{action:"enable"}),children:"重新启用"})}),e.status!=="disabled"&&f.jsxs(f.Fragment,{children:[f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"memory-global-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"memory-global-settings",children:"全局能力"}),f.jsx("p",{children:"控制个人记忆是否学习新偏好并写入任务上下文"})]})}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"自动学习"}),f.jsx("span",{children:T.learningEnabled?"会沉淀稳定偏好":"已暂停自动沉淀"})]}),f.jsx(es,{size:"small",checked:!!T.learningEnabled,"aria-label":"切换自动学习",onChange:k=>o("set-learning",{enabled:k})})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"记忆注入"}),f.jsx("span",{children:T.retrievalEnabled?"任务中可使用已保存内容":"已暂停任务注入"})]}),f.jsx(es,{size:"small",checked:!!T.retrievalEnabled,"aria-label":"切换记忆注入",onChange:k=>o("set-retrieval",{enabled:k})})]})]}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"memory-project-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"memory-project-settings",children:"当前项目"}),f.jsx("p",{children:"单独暂停这个项目的学习或任务注入"})]})}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"项目学习"}),f.jsx("span",{children:V?W?"当前项目暂停自动学习":"允许当前项目沉淀新偏好":"项目配置已禁止自动学习"})]}),f.jsx(es,{size:"small",checked:!!(B&&V&&!W),disabled:n||!B||!V,"aria-label":"切换当前项目学习",onChange:k=>o("pause-project-learning",{projectKey:B,paused:!k})})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"项目注入"}),f.jsx("span",{children:Z?H?"当前项目不注入记忆":"任务中可以使用已保存记忆":"项目配置已禁止自动注入"})]}),f.jsx(es,{size:"small",checked:!!(B&&Z&&!H),disabled:n||!B||!Z,"aria-label":"切换当前项目记忆注入",onChange:k=>o("pause-project-retrieval",{projectKey:B,paused:!k})})]})]}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"memory-provider-settings",children:[f.jsxs("div",{className:"dashboard-settings-panel-head",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"memory-provider-settings",children:"记忆注入"}),f.jsx("p",{children:"控制哪些个人记忆会提供给 Agent,以及一次最多提供多少文字"})]}),A.length>0&&f.jsxs(pt,{size:"small",onClick:()=>M(!0),children:[A.length," 条待确认"]})]}),f.jsxs("div",{className:"dashboard-memory-setting dashboard-memory-setting-stack",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"存储方式"}),f.jsx("span",{children:U==="remote"?"使用外部记忆服务":"使用本地个人记忆存储"})]}),f.jsx(qn,{value:u,"aria-label":"个人记忆存储方式",options:[{value:"local",label:"本地存储"},{value:"remote",label:"远程存储"}],onChange:m}),f.jsxs("div",{className:"dashboard-memory-remote-form",children:[f.jsxs("div",{className:"dashboard-memory-budget-field",children:[f.jsx("label",{htmlFor:"dashboard-memory-profile-budget",children:"稳定偏好最多带入"}),f.jsx(Wt,{id:"dashboard-memory-profile-budget",value:h,addonAfter:"字符",onChange:k=>p(k.target.value),"aria-label":"稳定偏好最多带入字符数"}),f.jsx("span",{children:"例如:你偏好的语言、协作习惯和长期要求。"})]}),f.jsxs("div",{className:"dashboard-memory-budget-field",children:[f.jsx("label",{htmlFor:"dashboard-memory-task-budget",children:"当前任务相关记忆最多带入"}),f.jsx(Wt,{id:"dashboard-memory-task-budget",value:g,addonAfter:"字符",onChange:k=>b(k.target.value),"aria-label":"当前任务相关记忆最多带入字符数"}),f.jsx("span",{children:"例如:与当前项目、路径和操作有关的记忆。"})]})]}),f.jsx("p",{className:"dashboard-memory-budget-note",children:"这是注入上限,不是记忆条数或存储容量。"}),u==="remote"&&f.jsxs(f.Fragment,{children:[f.jsx(Wt,{value:y,onChange:k=>S(k.target.value),placeholder:"Remote Provider endpoint","aria-label":"Remote Provider endpoint"}),f.jsxs("div",{className:"dashboard-memory-remote-form",children:[f.jsx(Wt,{value:$,onChange:k=>C(k.target.value),placeholder:"Token 环境变量(可选)","aria-label":"Remote Provider token 环境变量"}),f.jsx(Wt,{value:j,onChange:k=>w(k.target.value),placeholder:"Profile","aria-label":"Remote Provider profile"})]}),f.jsx(Wt,{value:R,onChange:k=>E(k.target.value),placeholder:"请求超时(毫秒)","aria-label":"Remote Provider 请求超时"})]}),f.jsxs("div",{className:"dashboard-memory-sync-row",children:[f.jsx("span",{children:"Provider 切换不会迁移或删除已有数据;保存后重新加载页面即可生效"}),f.jsxs("div",{className:"dashboard-memory-remote-form",children:[f.jsx(pt,{disabled:n,onClick:()=>o("test-provider",{}),children:"测试连接"}),f.jsx(pt,{type:"primary",disabled:n,onClick:J,children:"保存配置"})]})]})]})]}),U==="local"&&f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"memory-sync-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"memory-sync-settings",children:"本地同步"}),f.jsx("p",{children:"把本地记忆仓库连接到你控制的 Git remote"})]})}),f.jsxs("div",{className:"dashboard-memory-setting dashboard-memory-setting-stack",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"同步仓库"}),f.jsx("span",{children:T.remote??"尚未配置 Git remote"})]}),f.jsxs("div",{className:"dashboard-memory-remote-form",children:[f.jsx(Wt,{value:s,onChange:k=>i(k.target.value),placeholder:"输入记忆仓库 remote","aria-label":"记忆仓库 Git remote"}),f.jsx(pt,{disabled:n||!s.trim(),onClick:()=>{o("configure-remote",{url:s.trim()}),i("")},children:"保存"})]}),f.jsxs("div",{className:"dashboard-memory-sync-row",children:[f.jsx("span",{children:q}),f.jsx(pt,{icon:f.jsx(Fq,{}),disabled:n,onClick:()=>o("sync",{}),children:"立即同步"})]})]})]})]}),f.jsx("section",{className:"dashboard-settings-panel dashboard-settings-danger","aria-labelledby":"memory-plugin-settings",children:f.jsxs("div",{className:"dashboard-settings-panel-head",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"memory-plugin-settings",children:"插件管理"}),f.jsx("p",{children:"卸载后记忆文件和历史仍会保留"})]}),f.jsx(pt,{danger:!0,disabled:n,onClick:()=>Tr.confirm({title:"卸载个人记忆插件?",content:"记忆文件和历史会保留,之后可以重新安装。",okText:"卸载",cancelText:"取消",onOk:()=>o("lifecycle",{action:"uninstall"})}),children:"卸载插件"})]})}),f.jsx(Hs,{open:N,title:"待确认记忆",footer:null,onClose:()=>M(!1),children:A.length===0?f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"没有待确认内容"}):f.jsx("div",{className:"dashboard-memory-records",children:A.map(k=>f.jsxs("div",{className:"dashboard-memory-record",children:[f.jsxs("div",{className:"dashboard-memory-record-content",children:[f.jsxs("div",{className:"dashboard-memory-record-kicker",children:[f.jsx(ha,{color:"warning",children:k.status??"candidate"}),f.jsx("span",{children:k.category})]}),f.jsx("p",{className:"dashboard-memory-record-text",children:k.text})]}),k.kind==="inferred"&&k.status==="trial"&&f.jsx(pt,{size:"small",disabled:n,onClick:()=>o("remember",{scope:k.scope,...k.projectKey===void 0?{}:{projectKey:k.projectKey},memoryClass:k.memoryClass,category:k.category,text:k.text}),children:"确认保存"})]},k.id))})})]})}function GU({page:e,data:t,readOnly:n=!1,onInvoke:o}){const s=t&&typeof t=="object"?t:{},[i,u]=c.useState(s.provider??"local"),[m,h]=c.useState(s.remote?.endpoint??""),[p,g]=c.useState(s.remote?.tokenEnv??""),[b,y]=c.useState(s.remote?.scope??""),[S,$]=c.useState(String(s.remote?.timeoutMs??5e3));c.useEffect(()=>{u(s.provider??"local"),h(s.remote?.endpoint??""),g(s.remote?.tokenEnv??""),y(s.remote?.scope??""),$(String(s.remote?.timeoutMs??5e3))},[s.provider,s.remote?.endpoint,s.remote?.tokenEnv,s.remote?.scope,s.remote?.timeoutMs]);const C=async()=>{await o("configure-provider",{provider:i,...i==="remote"?{remote:{endpoint:m,tokenEnv:p,scope:b,timeoutMs:Number(S)}}:{}})},j=s.provider==="remote"?"Remote":s.provider==="local"?"Local":"—",w=typeof s.configured=="boolean"?s.configured?"配置有效":"需要检查":"—",R=s.remote,E=s.local,N=e.status==="disabled";return f.jsxs("div",{className:"dashboard-settings-stack",children:[f.jsx(rx,{icon:Ky,title:"项目规则设置",description:"管理当前项目的知识检索、Provider 与插件生命周期",status:N?"已暂停":j}),N&&f.jsx(To,{type:"info",showIcon:!0,message:e.projectPaused?"当前项目已暂停项目知识":"项目知识插件已停用",description:"项目文件和插件配置仍然保留。",action:f.jsx(pt,{disabled:n,onClick:()=>o("lifecycle",{action:"enable"}),children:"重新启用"})}),!N&&f.jsxs(f.Fragment,{children:[f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"knowledge-provider-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"knowledge-provider-settings",children:"Provider 与检索"}),f.jsx("p",{children:"选择项目知识来源,并控制 Agent 使用的检索服务"})]})}),f.jsxs("div",{className:"dashboard-memory-setting dashboard-memory-setting-stack",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"Provider"}),f.jsx("span",{children:i==="remote"?"使用团队或外部 Remote Provider":"使用当前设备上的本地项目知识索引"})]}),f.jsx(qn,{value:i,"aria-label":"项目知识 Provider",onChange:u,options:[{value:"local",label:"Local Provider"},{value:"remote",label:"Remote Provider"}]}),i==="remote"&&f.jsxs("div",{className:"dashboard-knowledge-settings-fields",children:[f.jsx(Wt,{value:m,onChange:M=>h(M.target.value),placeholder:"Remote endpoint","aria-label":"项目知识 Remote endpoint"}),f.jsxs("div",{className:"dashboard-memory-remote-form",children:[f.jsx(Wt,{value:p,onChange:M=>g(M.target.value),placeholder:"Token 环境变量名","aria-label":"项目知识 Token 环境变量名"}),f.jsx(Wt,{value:b,onChange:M=>y(M.target.value),placeholder:"Scope(可选)","aria-label":"项目知识 scope"})]}),f.jsx(Wt,{value:S,onChange:M=>$(M.target.value),placeholder:"请求超时(毫秒)","aria-label":"项目知识超时"})]}),f.jsxs("div",{className:"dashboard-memory-sync-row",children:[f.jsx("span",{children:i===s.provider&&s.retrieval?s.retrieval:"Provider 切换不会删除现有项目知识;保存后重新加载配置即可生效"}),f.jsx(pt,{type:"primary",disabled:n,onClick:()=>{C()},children:"保存配置"})]})]})]}),i==="local"&&E&&f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"knowledge-index-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"knowledge-index-settings",children:"本地索引"}),f.jsx("p",{children:"查看当前项目隔离的知识索引和最近检索状态"})]})}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"索引状态"}),f.jsxs("span",{children:[E.sourceCount," 个来源 · ",E.sectionCount," 个知识片段"]})]}),f.jsx(ha,{color:E.available?"success":"warning",children:E.available?"可用":"需要建立"})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"项目身份"}),f.jsx("span",{children:E.repositoryId})]}),f.jsx("span",{className:"dashboard-settings-value",children:E.workspaceId})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"最近查询"}),f.jsx("span",{children:typeof E.lastQueryMs=="number"?`${E.lastQueryMs} ms · ${E.lastCandidateCount??0} 个候选`:"尚无查询统计"})]}),f.jsx("span",{className:"dashboard-settings-value",children:E.channels?.length?E.channels.join(" + "):"尚无候选通道"})]})]}),i==="remote"&&R&&f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"knowledge-remote-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"knowledge-remote-settings",children:"Remote 连接"}),f.jsx("p",{children:"只保存连接信息和 token 环境变量名,不保存 token 内容"})]})}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"Endpoint"}),f.jsx("span",{children:R.endpoint||"未提供"})]}),f.jsx(ha,{children:R.scope||"默认 Scope"})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"鉴权与超时"}),f.jsx("span",{children:R.tokenEnv?`${R.tokenEnv} · ${R.tokenConfigured?"已提供":"未提供"}`:"无需 token"})]}),f.jsxs("span",{className:"dashboard-settings-value",children:[R.timeoutMs," ms"]})]})]})]}),f.jsxs("section",{className:"dashboard-settings-panel","aria-labelledby":"knowledge-project-settings",children:[f.jsx("div",{className:"dashboard-settings-panel-head",children:f.jsxs("div",{children:[f.jsx("h4",{id:"knowledge-project-settings",children:"当前项目"}),f.jsx("p",{children:"单独控制这个项目是否为 Agent 提供项目知识"})]})}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"项目知识检索"}),f.jsx("span",{children:e.globallyDisabled?"插件已全局停用":e.projectPaused||N?"当前项目已暂停向 Agent 提供知识":"Agent 可以检索当前项目的知识记录"})]}),f.jsx(es,{size:"small",checked:!N,disabled:n,"aria-label":"切换当前项目知识检索",onChange:M=>o("lifecycle",{action:M?"enable":"disable"})})]}),f.jsxs("div",{className:"dashboard-memory-setting",children:[f.jsxs("div",{className:"dashboard-memory-setting-copy",children:[f.jsx("strong",{children:"配置状态"}),f.jsx("span",{children:"Provider 和索引配置是否满足当前检索要求"})]}),f.jsx(ha,{color:w==="配置有效"?"success":"warning",children:w})]})]}),f.jsx("section",{className:"dashboard-settings-panel dashboard-settings-danger","aria-labelledby":"knowledge-plugin-settings",children:f.jsxs("div",{className:"dashboard-settings-panel-head",children:[f.jsxs("div",{children:[f.jsx("h4",{id:"knowledge-plugin-settings",children:"插件管理"}),f.jsx("p",{children:"卸载只停止插件,不会删除项目文档或配置"})]}),f.jsx(pt,{danger:!0,disabled:n,onClick:()=>Tr.confirm({title:"卸载项目知识插件?",content:"卸载只停止当前插件,不会删除项目文档或配置。",okText:"卸载",cancelText:"取消",onOk:()=>o("lifecycle",{action:"uninstall"})}),children:"卸载插件"})]})})]})}function XU(e,t){const n=e.state==="superseded";Tr.confirm({title:n?"纠正并恢复项目知识":"纠正项目知识记录",content:f.jsx(Wt.TextArea,{id:"project-knowledge-correction",defaultValue:e.summary,placeholder:"说明需要如何修正这条项目知识",autoSize:{minRows:4,maxRows:8}}),okText:n?"保存并恢复":"保存纠正",cancelText:"取消",onOk:()=>{const o=document.getElementById("project-knowledge-correction");return t("correct",{id:e.id,text:o?.value??e.summary,...n?{restore:!0}:{}})}})}function KU({records:e,visibleRecords:t,selectedRecord:n,selectedRecordId:o,workspaceLabel:s,workspaceHelp:i,onSelectRecord:u,recordSearchText:m,onRecordSearchTextChange:h,categoryFilter:p,onCategoryFilterChange:g,stateFilter:b,onStateFilterChange:y,sortOrder:S,onSortOrderChange:$,diagnostics:C,provider:j,readOnly:w=!1,onInvoke:R}){const E=C[0],N=E?JW(E):{label:"",message:""},M=b==="all"?e:e.filter(T=>T.state===b);return f.jsxs("div",{className:"dashboard-knowledge-registry",children:[f.jsxs("aside",{className:"dashboard-knowledge-explorer","aria-label":"知识分类",children:[f.jsx("div",{className:"dashboard-knowledge-explorer-search",children:f.jsx(Wt,{value:m,prefix:f.jsx(Ys,{}),placeholder:"搜索分类或知识标题","aria-label":"搜索项目知识记录",onChange:T=>h(T.target.value)})}),f.jsxs("button",{type:"button",className:`dashboard-knowledge-category ${p==="all"?"is-active":""}`,onClick:()=>g("all"),children:[f.jsx("span",{children:"全部知识"}),f.jsx("span",{children:M.length})]}),f.jsx("div",{className:"dashboard-knowledge-category-groups",children:qf.map(T=>f.jsxs("section",{"aria-labelledby":`knowledge-category-${T.key}`,children:[f.jsxs("h3",{id:`knowledge-category-${T.key}`,children:[f.jsx("span",{children:T.label}),f.jsx("small",{children:"内置"})]}),T.types.map(O=>{const P=M.filter(L=>L.type===O).length,_=WM(O);return f.jsx(Wn,{title:_.description,placement:"right",children:f.jsxs("button",{type:"button",className:`dashboard-knowledge-category ${p===O?"is-active":""}`,onClick:()=>g(O),children:[f.jsx("span",{children:_.label}),f.jsx("span",{children:P})]})},O)})]},T.key))}),f.jsxs("div",{className:"dashboard-knowledge-explorer-foot",children:[f.jsx("span",{children:"知识提供方式"}),f.jsx("strong",{children:j})]})]}),f.jsxs("section",{className:"dashboard-knowledge-ledger","aria-labelledby":"knowledge-ledger-title",children:[f.jsxs("header",{className:"dashboard-knowledge-ledger-toolbar",children:[f.jsxs("div",{children:[f.jsxs("span",{className:"dashboard-contextual-title",children:[f.jsx("strong",{id:"knowledge-ledger-title",children:s}),f.jsx(gm,{ariaLabel:`了解${s}`,title:s,description:i.description,example:i.example})]}),f.jsxs("span",{className:"dashboard-knowledge-ledger-toolbar-meta",children:[t.length," 条"]}),f.jsx(Wn,{title:"刷新项目知识",children:f.jsx(pt,{type:"text",icon:f.jsx(mm,{}),"aria-label":"刷新项目知识",onClick:()=>R("refresh",{})})})]}),f.jsxs("div",{children:[f.jsx(qn,{value:S,"aria-label":"项目知识排序",onChange:$,options:[{value:"newest",label:"更新时间:最新"},{value:"oldest",label:"更新时间:最早"}]}),f.jsx(qn,{value:b,"aria-label":"项目知识记录状态",onChange:y,options:[{value:"trial",label:"试用中"},{value:"proven",label:"已验证"},{value:"enforced",label:"强制执行"},{value:"superseded",label:"已替代"},{value:"all",label:"全部记录"}]})]})]}),N.message&&f.jsxs("div",{className:"dashboard-knowledge-inline-warning",role:"status",children:[f.jsx(su,{"aria-hidden":"true"}),f.jsxs("span",{children:[f.jsx("strong",{children:N.label}),N.message]})]}),f.jsxs("div",{className:"dashboard-knowledge-ledger-head","aria-hidden":"true",children:[f.jsx("span",{children:"知识标题与摘要"}),f.jsx("span",{children:"来源路径"}),f.jsx("span",{children:"验证状态"}),f.jsx("span",{children:"更新时间"})]}),t.length===0?f.jsx(gn,{className:"dashboard-knowledge-empty",image:gn.PRESENTED_IMAGE_SIMPLE,description:m.trim()?"没有符合当前条件的项目知识":i.description}):f.jsx("div",{className:"dashboard-knowledge-ledger-rows","aria-label":"项目知识记录列表",children:t.slice(0,100).map(T=>{const O=vm(T),P=GM(T),_=T.authority==="user"&&(O.length===0||P.length===0);return f.jsxs("button",{type:"button",className:`dashboard-knowledge-ledger-row ${o===T.id?"is-selected":""}`,"aria-pressed":o===T.id,onClick:()=>u(T.id),children:[f.jsxs("span",{className:"dashboard-knowledge-record-copy",children:[f.jsxs("span",{className:"dashboard-record-title-line",children:[f.jsx("strong",{children:T.title}),f.jsx("span",{className:"dashboard-record-origin",children:QM(T)})]}),f.jsx("span",{children:T.summary}),_&&f.jsx("span",{className:"dashboard-knowledge-row-warning",children:"缺少来源或验证记录"})]}),f.jsx("span",{className:"dashboard-knowledge-record-source",children:O[0]??"无来源"}),f.jsxs("span",{className:`dashboard-knowledge-record-state is-${T.state}`,children:[f.jsx("span",{"aria-hidden":"true"}),UM(T.state)]}),f.jsx("time",{dateTime:T.updatedAt,children:gr(T.updatedAt)})]},T.id)})})]}),f.jsx(YU,{record:n,readOnly:w,onInvoke:R})]})}function JM({applications:e=[],recordId:t}){const[n,o]=c.useState(!1);if(c.useEffect(()=>o(!1),[t]),e.length===0)return null;const s=n?e:e.slice(0,6);return f.jsxs("section",{children:[f.jsxs("div",{className:"dashboard-context-application-history-head",children:[f.jsx("h4",{children:"应用历史"}),e.length>6&&f.jsx(pt,{type:"text",size:"small","aria-expanded":n,onClick:()=>o(i=>!i),children:n?"收起":`查看全部 ${e.length} 条`})]}),f.jsx("div",{className:"dashboard-context-application-history",children:s.map(i=>f.jsxs("article",{children:[f.jsx("div",{className:"dashboard-context-application-history-title",children:f.jsx("strong",{children:i.task||"未命名任务"})}),f.jsx("p",{className:"dashboard-context-application-history-reason",children:i.whyApplied}),f.jsxs("footer",{className:"dashboard-context-application-history-meta",children:[f.jsx("time",{dateTime:i.appliedAt,children:gr(i.appliedAt)}),f.jsx("span",{className:`is-${i.outcome??"unknown"}`,children:ol(i.outcome)})]})]},i.applicationId))})]})}function YU({record:e,readOnly:t=!1,onInvoke:n}){if(!e)return f.jsx("aside",{className:"dashboard-knowledge-inspector is-empty","aria-label":"记录详情",children:f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"选择一条记录查看详情"})});const o=vm(e),s=GM(e),i=e.applicablePaths??[],u=e.operations??[],m=e.authority==="user"&&(o.length===0||s.length===0);return f.jsxs("aside",{className:"dashboard-knowledge-inspector","aria-label":"记录详情",children:[f.jsxs("header",{children:[f.jsxs("div",{children:[f.jsx("h3",{children:e.title}),f.jsxs("span",{className:`dashboard-knowledge-record-state is-${e.state}`,children:[f.jsx("span",{"aria-hidden":"true"}),UM(e.state)]})]}),f.jsx("p",{children:e.summary})]}),m&&f.jsxs("div",{className:"dashboard-knowledge-inspector-warning",role:"status",children:[f.jsx(su,{"aria-hidden":"true"}),f.jsx("span",{children:"这条知识由用户手动确认,当前缺少来源或验证记录;建议补充证据,方便后续维护。"})]}),e.state==="trial"&&f.jsxs("div",{className:"dashboard-knowledge-inspector-warning",role:"status",children:[f.jsx(mm,{"aria-hidden":"true"}),f.jsx("span",{children:"这条知识正在试用,Agent 会按相关性谨慎召回;成功应用后会提升为已验证。"})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"最近一次应用"}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"为什么匹配"}),f.jsx("dd",{children:e.lastApplication?.whyApplied??"尚未应用"})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"加载方式"}),f.jsx("dd",{children:qc(e.lastApplication)})]}),e.lastApplication&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"最近应用"}),f.jsx("dd",{children:gr(e.lastApplication.appliedAt)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"应用结果"}),f.jsx("dd",{children:ol(e.lastApplication.outcome)})]})]}),_2(e.activation)&&f.jsxs("div",{children:[f.jsx("dt",{children:"策略激活"}),f.jsx("dd",{children:_2(e.activation)})]})]})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"应用条件"}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"知识类型"}),f.jsx("dd",{children:P0(e.type)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"适用路径"}),f.jsx("dd",{children:i.length>0?i.join("、"):"当前项目"})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"适用操作"}),f.jsx("dd",{children:u.length>0?u.join("、"):"全部任务"})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"适用阶段"}),f.jsx("dd",{children:(e.phases??[]).length>0?e.phases.join("、"):"全部阶段"})]})]})]}),f.jsx(JM,{applications:e.applicationHistory??[],recordId:e.id}),f.jsxs("section",{children:[f.jsx("h4",{children:"来源与证据"}),o.length===0?f.jsx("p",{className:"dashboard-knowledge-inspector-muted",children:"尚未关联来源文件"}):f.jsx("ul",{className:"dashboard-knowledge-source-list",children:o.map(h=>f.jsxs("li",{children:[f.jsx(By,{"aria-hidden":"true"}),f.jsx("code",{children:h})]},h))})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"验证记录"}),s.length===0?f.jsx("p",{className:"dashboard-knowledge-inspector-muted",children:"尚未提供验证命令"}):f.jsx("ul",{className:"dashboard-knowledge-verification-list",children:s.map(h=>f.jsxs("li",{children:[f.jsx(Xy,{"aria-hidden":"true"}),f.jsx("code",{children:h})]},h))})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"活动记录"}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"记录来源"}),f.jsx("dd",{children:QM(e)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"最近更新"}),f.jsx("dd",{children:gr(e.updatedAt)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"应用效果"}),f.jsxs("dd",{children:["已应用 ",e.applicationCount??0," 次 · 成功 ",e.successCount??0," 次 · 需修正"," ",e.failureCount??0," 次"]})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"记录标识"}),f.jsx("dd",{className:"dashboard-knowledge-record-id",children:e.id})]})]})]}),f.jsx("footer",{children:f.jsxs("div",{className:"dashboard-knowledge-inspector-actions",children:[f.jsx(pt,{icon:f.jsx(NM,{}),disabled:t,onClick:()=>XU(e,n),children:e.state==="superseded"?"纠正并恢复":"纠正记录"}),e.state==="trial"&&f.jsx(pt,{icon:f.jsx(mm,{}),disabled:t,onClick:()=>n("refresh",{id:e.id}),children:"重新检查来源"}),e.state!=="superseded"&&f.jsx(pt,{type:"text",danger:!0,icon:f.jsx(Uy,{}),disabled:t,onClick:()=>Tr.confirm({title:"将这条项目知识标记为已替代?",content:"标记后不再向 Agent 提供,但仍会保留在历史记录中。",okText:"标记已替代",cancelText:"取消",okButtonProps:{danger:!0},onOk:()=>n("forget",{id:e.id})}),children:"标记已替代"})]})})]})}function QU({sourceEntries:e,totalSourceCount:t,provider:n,searchText:o,onSearchTextChange:s,selectedSource:i,sourceContent:u,sourceReadPending:m,sourceReadError:h,onSelectSource:p,onCloseSource:g,onSelectRecord:b}){return f.jsxs("section",{className:"dashboard-knowledge-single-view dashboard-knowledge-source-view","aria-label":"数据来源",children:[f.jsxs("div",{className:"dashboard-knowledge-source-toolbar",children:[f.jsx(Wt,{value:o,prefix:f.jsx(Ys,{}),allowClear:!0,placeholder:"搜索来源路径、类型或关联知识…","aria-label":"搜索项目知识来源",onChange:y=>s(y.target.value)}),f.jsxs("div",{className:"dashboard-knowledge-source-toolbar-meta",children:[f.jsx("span",{children:n}),f.jsxs("span",{children:["共 ",t," 个来源",o.trim()?` · 匹配 ${e.length} 个`:""]})]})]}),e.length===0?f.jsx(gn,{className:"dashboard-knowledge-empty",image:gn.PRESENTED_IMAGE_SIMPLE,description:"尚未发现项目知识来源"}):f.jsxs("div",{className:"dashboard-knowledge-source-rows","aria-label":"项目知识数据来源列表",role:"region",tabIndex:0,children:[f.jsxs("div",{className:"dashboard-knowledge-source-head","aria-hidden":"true",children:[f.jsx("span",{children:"来源路径"}),f.jsx("span",{children:"关联记录"}),f.jsx("span",{children:"收录状态"}),f.jsx("span",{children:"最近更新"})]}),e.map(y=>{const S=y.records.some($=>$.state==="trial");return f.jsxs("button",{type:"button",className:"dashboard-knowledge-source-row","aria-label":`查看来源:${y.source}`,onClick:()=>{p(y)},children:[f.jsxs("span",{children:[f.jsx(By,{"aria-hidden":"true"}),f.jsx("code",{children:y.source})]}),f.jsxs("strong",{children:[y.records.length," 条"]}),f.jsxs("span",{className:`dashboard-knowledge-record-state ${S?"is-trial":"is-proven"}`,children:[f.jsx("span",{"aria-hidden":"true"}),S?"试用中":"已收录"]}),f.jsx("time",{dateTime:y.latestUpdatedAt,children:gr(y.latestUpdatedAt)})]},y.source)})]}),f.jsx(bU,{selectedSource:i,sourceContent:u,sourceReadPending:m,sourceReadError:h,onClose:g,onSelectRecord:b})]})}function ZU({queryText:e,onQueryTextChange:t,queryResults:n,queryCompleted:o,queryPending:s,onPreviewQuery:i,retrieval:u}){return f.jsxs("section",{className:"dashboard-knowledge-query-view","aria-label":"检索测试",children:[f.jsxs("div",{className:"dashboard-knowledge-query-form",children:[f.jsx(Wt.TextArea,{value:e,"aria-label":"查询项目知识",placeholder:"例如:修改项目知识模块后应该运行哪些测试?",disabled:s,autoSize:{minRows:4,maxRows:8},onChange:m=>t(m.target.value),onPressEnter:m=>{m.shiftKey||(m.preventDefault(),i())}}),f.jsxs("div",{className:"dashboard-knowledge-query-action",children:[f.jsx("span",{className:"dashboard-knowledge-query-hint",children:"输入任务描述,预览匹配的项目知识"}),f.jsx(pt,{type:"primary",icon:f.jsx(Ys,{}),disabled:e.trim().length===0||s,loading:s,onClick:()=>{i()},children:"测试检索"})]})]}),u&&f.jsx("p",{className:"dashboard-knowledge-query-note",children:u}),f.jsx("div",{className:"dashboard-knowledge-query-results","aria-label":"项目知识查询结果",children:n.length===0?f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:s?"正在检索当前项目知识…":o?"检索已完成,没有找到与当前任务匹配的项目知识":"运行检索后在这里查看结果"}):n.slice(0,8).map((m,h)=>f.jsxs("article",{children:[f.jsxs("header",{children:[f.jsx("strong",{children:m.title??"项目知识结果"}),f.jsx("code",{children:m.source})]}),f.jsx("p",{children:m.content})]},`${m.source}-${h}`))})]})}function e6({items:e,emptyLabel:t,onSelectItem:n,detailMode:o="inline",title:s="最近一次任务使用的记忆",description:i="这里只展示真正提供给 Agent 的内容,不是全部已保存记忆",presentation:u="list",labels:m={}}){const h=Array.isArray(e)?e:[],p=u==="summary",[g,b]=c.useState(null),[y,S]=c.useState(null),$=h[0]?.lastApplication??h[0],C=$?.appliedAt,j=$?.task,w=m.detailLabel??"记忆详情",R=m.contentLabel??"记忆内容",E=m.typeLabel??"记忆类型",N=m.deliveryLabel??"提供内容",M=m.outcomeLabel??"结果",T=m.summaryCountLabel??"条记忆",O=m.toggleLabel??(()=>`查看${w}`),P=L=>{if(o==="modal"){S(L),n?.(L);return}b(A=>A===L.id?null:L.id),n?.(L)},_=()=>{const L=h[0];!L||o!=="modal"||(S(L),n?.(L))};return f.jsxs("section",{className:`dashboard-context-manifest${p?" is-summary":""}`,"aria-label":s,children:[p?h.length===0?f.jsx("p",{children:t}):f.jsxs("div",{className:"dashboard-context-manifest-summary",children:[f.jsxs("div",{className:"dashboard-context-manifest-summary-copy",children:[f.jsx("strong",{children:"最近使用"}),f.jsx("span",{children:j?`任务:${j}`:i})]}),f.jsxs("div",{className:"dashboard-context-manifest-summary-meta",children:[f.jsxs("span",{children:[h.length," ",T]}),C&&f.jsx("time",{dateTime:C,children:gr(C)}),o==="modal"&&f.jsx("button",{type:"button",className:"dashboard-context-manifest-summary-action",onClick:_,children:"查看使用明细"})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("header",{children:[f.jsxs("div",{children:[f.jsx("strong",{children:s}),f.jsx("span",{children:i})]}),f.jsxs("span",{children:[j?`任务:${j} · `:"",h.length," 条",C?` · ${gr(C)}`:""]})]}),h.length===0?f.jsx("p",{children:t}):f.jsx("div",{className:"dashboard-context-manifest-items",children:h.slice(0,8).map(L=>{const A=g===L.id,B=`context-manifest-detail-${L.id}`;return f.jsxs("article",{className:o==="inline"&&A?"is-expanded":"",children:[f.jsxs("button",{type:"button",className:"dashboard-context-manifest-item-toggle","aria-expanded":o==="inline"?A:void 0,"aria-controls":o==="inline"?B:void 0,"aria-label":`${O(A)}:${L.title}`,onClick:()=>P(L),children:[f.jsxs("span",{children:[f.jsx("strong",{children:L.title}),f.jsx("span",{children:ym(L.memoryType)})]}),f.jsx("span",{children:o==="modal"?"查看详情":A?"收起详情":"展开详情"})]}),f.jsx("p",{className:"dashboard-context-manifest-item-preview",children:DU(L.summary)}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"为什么使用"}),f.jsx("dd",{children:L.whyApplied||"未记录应用原因"})]}),f.jsxs("div",{children:[f.jsx("dt",{children:N}),f.jsx("dd",{children:qc(L.lastApplication??L)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:M}),f.jsx("dd",{children:ol(L.outcome??L.lastApplication?.outcome)})]})]}),o==="inline"&&A&&f.jsxs("section",{id:B,className:"dashboard-context-manifest-item-detail","aria-label":`${w}:${L.title}`,children:[f.jsxs("div",{children:[f.jsx("span",{children:E}),f.jsx("p",{children:ym(L.memoryType)})]}),f.jsxs("div",{children:[f.jsx("span",{children:R}),f.jsx("p",{children:L.summary||"暂无可展示内容"})]}),f.jsxs("dl",{children:[f.jsxs("div",{children:[f.jsx("dt",{children:"为什么使用"}),f.jsx("dd",{children:L.whyApplied||"未记录应用原因"})]}),f.jsxs("div",{children:[f.jsx("dt",{children:N}),f.jsx("dd",{children:qc(L.lastApplication??L)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:M}),f.jsx("dd",{children:ol(L.outcome??L.lastApplication?.outcome)})]}),f.jsxs("div",{children:[f.jsx("dt",{children:"最近应用"}),f.jsx("dd",{children:gr(L.lastApplication?.appliedAt??L.appliedAt)})]})]})]})]},L.id)})})]}),o==="modal"&&f.jsx(pU,{item:y,items:p?h:void 0,open:y!==null,labels:m,onClose:()=>S(null),onSelectItem:L=>{S(L),n?.(L)}})]})}function JU({page:e,data:t,readOnly:n=!1,onInvoke:o}){const s=t&&typeof t=="object"?t:{},[i,u]=c.useState("model"),[m,h]=c.useState(""),[p,g]=c.useState(""),[b,y]=c.useState(null),[S,$]=c.useState(null),[C,j]=c.useState(!1),[w,R]=c.useState(null),E=c.useRef(new Map),[N,M]=c.useState(""),[T,O]=c.useState(!1),[P,_]=c.useState("proven"),[L,A]=c.useState("all"),[B,V]=c.useState("newest"),[Z,W]=c.useState(null),[H,q]=c.useState(!1),[U,J]=c.useState(!1),[k,I]=c.useState({type:"constraint",title:"",summary:"",applicablePaths:"",operations:"",phases:"",sources:"",verification:""}),D=c.useMemo(()=>Array.isArray(s.records)?s.records:[],[s.records]),Y=c.useMemo(()=>i==="model"?D.filter(ye=>Zg.has(ye.type)):i==="policy"?D.filter(ye=>!Zg.has(ye.type)):D,[D,i]),G=c.useMemo(()=>{const ye=m.trim().toLocaleLowerCase("zh-CN");return Y.filter(De=>P!=="all"&&De.state!==P||L!=="all"&&De.type!==L?!1:ye?[De.title,De.summary,De.id,P0(De.type),...vm(De)].filter(Boolean).join(" ").toLocaleLowerCase("zh-CN").includes(ye):!0).toSorted((De,Me)=>{const qe=new Date(Me.updatedAt??0).getTime()-new Date(De.updatedAt??0).getTime();return B==="oldest"?-qe:qe})},[L,m,B,P,Y]),X=G.find(ye=>ye.id===Z)??G[0]??null,ee=c.useMemo(()=>{const ye=new Map;for(const Ie of D)for(const De of vm(Ie)){const Me=G2(De),qe=ye.get(Me)??{source:Me,records:[],latestUpdatedAt:null};qe.records.some(tt=>tt.id===Ie.id)||qe.records.push(Ie),(!qe.latestUpdatedAt||new Date(Ie.updatedAt??0).getTime()>new Date(qe.latestUpdatedAt??0).getTime())&&(qe.latestUpdatedAt=Ie.updatedAt),ye.set(Me,qe)}for(const Ie of Array.isArray(s.local?.sources)?s.local.sources:[]){const De=G2(Ie.source),Me=ye.get(De)??{source:De,records:[],latestUpdatedAt:null};(!Me.latestUpdatedAt||new Date(Ie.updatedAt??0).getTime()>new Date(Me.latestUpdatedAt??0).getTime())&&(Me.latestUpdatedAt=Ie.updatedAt),ye.set(De,{...Me,kind:Ie.kind})}return Array.from(ye.values()).toSorted((Ie,De)=>Ie.source.localeCompare(De.source,"zh-CN"))},[D,s.local?.sources]),Q=c.useMemo(()=>{const ye=p.trim().toLocaleLowerCase("zh-CN");return ye?ee.filter(Ie=>[Ie.source,Ie.kind,...Ie.records.flatMap(Me=>[Me.title,Me.summary])].filter(Boolean).join(" ").toLocaleLowerCase("zh-CN").includes(ye)):ee},[ee,p]);c.useEffect(()=>{X?.id&&X.id!==Z&&W(X.id)},[X,Z]),c.useEffect(()=>{A("all"),W(null)},[i]);const ae=mr(s.queryPreview)?s.queryPreview:null,se=!T&&ae?.kind==="search"&&ae.task===N.trim(),ie=se&&Array.isArray(ae.results)?ae.results:[],fe=async()=>{if(!(!N.trim()||T)){O(!0);try{await o("query",{task:N.trim()})}finally{O(!1)}}},oe=ye=>{M(ye)},re=()=>{y(null),$(null),R(null),j(!1)},pe=async ye=>{const Ie=E.current.get(ye.source);if(y(ye),R(null),Ie){$(Ie),j(!1);return}$(null),j(!0);try{const De=await o("read-source",{source:ye.source});De?.kind!=="source"?R("来源文件无法读取"):(E.current.set(ye.source,De),$(De))}catch(De){R(De instanceof Error?De.message:"来源文件无法读取")}finally{j(!1)}},ve=ye=>{re(),u(Zg.has(ye.type)?"model":"policy"),W(ye.id)},Ce=s.provider==="remote"?"远程提供器":s.provider==="local"?"本地提供器":"未读取",he=typeof s.configured=="boolean"?s.configured?"配置有效":"需要检查":"—",te=Array.isArray(s.diagnostics)&&s.diagnostics.length>0?s.diagnostics:e.diagnostics??[],Se=e.status==="disabled",Te=!Se&&he!=="需要检查",Ee=qf.find(ye=>ye.key===i)??qf[0],Le=L==="all"?Ee:WM(L),Pe=L==="all"?Ee.label:P0(L);return f.jsxs("div",{className:"dashboard-tool-page dashboard-tool-page-knowledge min-w-0",children:[f.jsxs("header",{className:"dashboard-knowledge-workspace-head","aria-label":"项目规则状态与操作",children:[f.jsxs("div",{className:"dashboard-contextual-title",children:[f.jsxs("span",{className:`dashboard-knowledge-service-state ${Te?"is-healthy":"is-warning"}`,children:[f.jsx("span",{className:"dashboard-tool-state-dot","aria-hidden":"true"}),Se?"服务已暂停":he==="需要检查"?"需要检查":"服务正常"]}),f.jsx(gm,{ariaLabel:"了解项目知识分类",title:"项目知识分类",description:"项目知识帮助 Agent 理解项目并遵守已有约定",items:qf})]}),f.jsx(pt,{className:"dashboard-knowledge-create-button dashboard-plugin-primary-action",type:"primary",icon:f.jsx(kc,{}),disabled:n,onClick:()=>q(!0),children:"新增项目知识"})]}),Se&&f.jsx(To,{className:"dashboard-knowledge-paused-alert",type:"info",showIcon:!0,message:e.projectPaused?"当前项目已暂停项目知识":"项目知识插件已停用",description:e.projectPaused?"只影响当前项目,项目文件和插件配置仍然保留。":"插件状态和项目文件仍然保留,重新启用后即可继续使用。",action:f.jsx(pt,{onClick:()=>o("lifecycle",{action:"enable"}),children:"重新启用"})}),f.jsx(e6,{items:s.manifestPreview,emptyLabel:"最近还没有向 Agent 提供项目知识",detailMode:"modal",presentation:"summary",title:"最近一次任务使用的项目知识",description:"这里只展示本次任务实际提供给 Agent 的项目知识,不是全部已保存项目知识",labels:{detailLabel:"项目知识详情",contentLabel:"项目知识内容",typeLabel:"项目知识类型",deliveryLabel:"提供给 Agent 的内容",outcomeLabel:"应用结果",summaryCountLabel:"条项目知识",navigationLabel:"本次使用的项目知识",toggleLabel:()=>"查看项目知识详情"},onSelectItem:ye=>{D.some(Ie=>Ie.id===ye.id)&&W(ye.id)}}),f.jsx("nav",{className:"dashboard-knowledge-tabs",role:"tablist","aria-label":"项目知识视图",children:[["model","项目概况"],["policy","项目规范"],["sources","数据来源"],["query","检索测试"]].map(([ye,Ie])=>f.jsx("button",{type:"button",role:"tab","aria-selected":i===ye,tabIndex:i===ye?0:-1,className:i===ye?"is-active":"",onClick:()=>u(ye),children:Ie},ye))}),i==="model"||i==="policy"?f.jsx(KU,{records:Y,visibleRecords:G,selectedRecord:X,selectedRecordId:Z,workspaceLabel:Pe,workspaceHelp:Le,onSelectRecord:W,recordSearchText:m,onRecordSearchTextChange:h,categoryFilter:L,onCategoryFilterChange:A,stateFilter:P,onStateFilterChange:_,sortOrder:B,onSortOrderChange:V,diagnostics:te,provider:Ce,readOnly:n,onInvoke:o}):i==="sources"?f.jsx(QU,{sourceEntries:Q,totalSourceCount:ee.length,provider:Ce,searchText:p,onSearchTextChange:g,selectedSource:b,sourceContent:S,sourceReadPending:C,sourceReadError:w,onSelectSource:pe,onCloseSource:re,onSelectRecord:ve}):f.jsx(ZU,{queryText:N,onQueryTextChange:oe,queryResults:ie,queryCompleted:se,queryPending:T,onPreviewQuery:fe,retrieval:s.retrieval}),f.jsx(Hs,{rootClassName:"dashboard-create-modal-root dashboard-project-knowledge-modal-root",classNames:{mask:"dashboard-create-modal-mask",container:"dashboard-create-modal-content"},open:H,title:"新增项目知识",okText:"保存",cancelText:"取消",width:720,okButtonProps:{disabled:k.title.trim().length===0||k.summary.trim().length===0,loading:U},onClose:()=>{U||q(!1)},onOk:async()=>{if(!(k.title.trim().length===0||k.summary.trim().length===0)){J(!0);try{await o("create",{type:k.type,title:k.title.trim(),summary:k.summary.trim(),applicablePaths:fc(k.applicablePaths),operations:fc(k.operations),phases:fc(k.phases),sources:fc(k.sources),verification:fc(k.verification)})!==void 0&&(q(!1),I({type:"constraint",title:"",summary:"",applicablePaths:"",operations:"",phases:"",sources:"",verification:""}))}finally{J(!1)}}},children:f.jsxs(Fn,{className:"dashboard-project-knowledge-create-form",layout:"vertical",component:"div",children:[f.jsx(Fn.Item,{label:"知识类型",required:!0,children:f.jsx(qn,{value:k.type,options:tx,onChange:ye=>I(Ie=>({...Ie,type:ye})),"aria-label":"知识类型"})}),f.jsx(Fn.Item,{label:"标题",required:!0,htmlFor:"dashboard-new-project-knowledge-title",children:f.jsx(Wt,{id:"dashboard-new-project-knowledge-title",value:k.title,onChange:ye=>I(Ie=>({...Ie,title:ye.target.value})),placeholder:"例如:构建与测试约定","aria-label":"项目知识标题",autoFocus:!0})}),f.jsx(Fn.Item,{className:"dashboard-create-form-span",label:"摘要",required:!0,htmlFor:"dashboard-new-project-knowledge-summary",extra:"这段内容会作为项目知识提供给当前项目的 Agent。",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-knowledge-summary",value:k.summary,onChange:ye=>I(Ie=>({...Ie,summary:ye.target.value})),placeholder:"例如:修改 domains/ 后先运行对应的定向测试。","aria-label":"项目知识摘要",autoSize:{minRows:3,maxRows:6}})}),f.jsx(Fn.Item,{label:"适用路径(可选)",htmlFor:"dashboard-new-project-knowledge-paths",extra:"每行一个项目相对路径。",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-knowledge-paths",value:k.applicablePaths,onChange:ye=>I(Ie=>({...Ie,applicablePaths:ye.target.value})),placeholder:`例如:
|
|
267
|
-
domains/project-knowledge/`,"aria-label":"项目知识适用路径",autoSize:{minRows:2,maxRows:4}})}),f.jsx(Fn.Item,{label:"适用操作(可选)",htmlFor:"dashboard-new-project-knowledge-operations",extra:"每行一个操作,例如 build、verify。",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-knowledge-operations",value:k.operations,onChange:ye=>I(Ie=>({...Ie,operations:ye.target.value})),placeholder:`例如:
|
|
268
|
-
verify`,"aria-label":"项目知识适用操作",autoSize:{minRows:2,maxRows:4}})}),f.jsx(Fn.Item,{label:"适用阶段(可选)",htmlFor:"dashboard-new-project-knowledge-phases",extra:"每行一个阶段,例如 build、verify。",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-knowledge-phases",value:k.phases,onChange:ye=>I(Ie=>({...Ie,phases:ye.target.value})),placeholder:`例如:
|
|
269
|
-
verify`,"aria-label":"项目知识适用阶段",autoSize:{minRows:2,maxRows:4}})}),f.jsx(Fn.Item,{label:"来源(可选)",htmlFor:"dashboard-new-project-knowledge-sources",extra:"每行一个项目相对文件路径;没有来源的记录会标记为未验证。",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-knowledge-sources",value:k.sources,onChange:ye=>I(Ie=>({...Ie,sources:ye.target.value})),placeholder:`例如:
|
|
270
|
-
docs/project-rules.md`,"aria-label":"项目知识来源",autoSize:{minRows:2,maxRows:4}})}),f.jsx(Fn.Item,{className:"mb-0",label:"验证命令(可选)",htmlFor:"dashboard-new-project-knowledge-verification",extra:"每行一个命令,用来说明如何验证这条知识。",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-knowledge-verification",value:k.verification,onChange:ye=>I(Ie=>({...Ie,verification:ye.target.value})),placeholder:`例如:
|
|
271
|
-
pnpm test --filter project-knowledge`,"aria-label":"项目知识验证命令",autoSize:{minRows:2,maxRows:4}})})]})})]})}function eG({data:e,readOnly:t=!1,onInvoke:n}){const[o,s]=c.useState(null),[i,u]=c.useState(""),[m,h]=c.useState(!1),[p,g]=c.useState(!1),[b,y]=c.useState(""),[S,$]=c.useState("沟通偏好"),[C,j]=c.useState(!1),[w,R]=c.useState(""),[E,N]=c.useState("项目约定"),[M,T]=c.useState(()=>new Set),[O,P]=c.useState(""),[_,L]=c.useState("all"),[A,B]=c.useState(null),V=e?.status??{},Z=e?.retrieval??{},H=(e?.management??{}).records??Z.records??[],q=H.filter(tb),U=q.filter(te=>te.memoryType==="core-profile"),J=q.filter(te=>te.memoryType==="collaboration-policy"),k=q.filter(te=>te.memoryType==="personal-episode"),I=H.filter(te=>!tb(te)),D=H.length,Y=e?.notifications??[],G=e?.projectKey,X=V.files?.length??0,ee=V.provider?.provider??"local",Q=V.profile?`个人偏好与事实 ${V.profile.usedChars} 字符 · 单次注入预算 ${V.profile.maxChars}`:ee==="remote"?"由 Remote Provider 管理":"0 / 2000 字符",ae=O.trim().toLocaleLowerCase(),se=te=>ae.length===0||[te.text,te.category,te.memoryClass,te.reason].filter(Boolean).some(Se=>String(Se).toLocaleLowerCase().includes(ae)),ie=[{key:"profile",title:Mf("profile").label,records:U.filter(se)},{key:"policy",title:Mf("policy").label,records:J.filter(se)},{key:"episode",title:Mf("episode").label,records:k.filter(se)},{key:"history",title:"历史记录",records:I.filter(se)}].filter(te=>te.records.length>0&&(_==="all"||_===te.key)),fe=ie.flatMap(te=>te.records),oe=Mf(_),re=fe.find(te=>te.id===A)??fe[0]??null,pe=fe.map(te=>te.id).join("|");c.useEffect(()=>{re?.id!==A&&B(re?.id??null)},[A,re?.id,pe]);const ve=te=>B(te.id),Ce=te=>{T(Se=>{const Te=new Set(Se);return Te.has(te)?Te.delete(te):Te.add(te),Te})},he=(te,Se)=>{const Te=typeof te.text=="string"?te.text:"",Ee=Te.length>L2,Le=M.has(te.id),Pe=Ee&&!Le?`${Te.slice(0,L2)}…`:Te,ye=re?.id===te.id,Ie=tb(te),De=X2(te);return f.jsxs("div",{className:`dashboard-memory-table-row${ye?" is-selected":""}`,role:"button",tabIndex:0,"aria-pressed":ye,onClick:()=>ve(te),onKeyDown:Me=>{(Me.key==="Enter"||Me.key===" ")&&(Me.preventDefault(),ve(te))},children:[f.jsxs("div",{className:"dashboard-memory-table-copy",children:[f.jsxs("div",{className:"dashboard-memory-table-title-row",children:[f.jsx("strong",{children:te.category||nb(te)}),f.jsx("span",{children:nb(te)}),f.jsx("span",{className:"dashboard-record-origin",children:BU(te)})]}),f.jsx("p",{className:Ee&&!Le?"is-collapsed":"",children:Pe}),f.jsxs("button",{type:"button",className:"dashboard-memory-why",onClick:Me=>{Me.stopPropagation(),ve(te)},children:["为什么应用:",K2(te)]}),Ee&&f.jsx(pt,{className:"dashboard-memory-record-text-toggle",size:"small",type:"link","aria-expanded":Le,onClick:Me=>{Me.stopPropagation(),Ce(te.id)},children:Le?"收起完整记忆":"展开完整记忆"})]}),f.jsx("div",{className:"dashboard-memory-table-scope",children:te.scope==="project"?"当前项目":"全局"}),f.jsxs("div",{className:`dashboard-memory-table-status is-${te.status??te.state??"superseded"}`,children:[f.jsx("span",{"aria-hidden":"true"}),De]}),f.jsx("div",{className:"dashboard-memory-table-time",children:gr(te.updatedAt)}),f.jsxs("div",{className:"dashboard-memory-record-actions",children:[f.jsx(Wn,{title:"纠正记忆",children:f.jsx(pt,{size:"small",type:"text",icon:f.jsx(NM,{}),"aria-label":"纠正记忆",disabled:t,onClick:Me=>{Me.stopPropagation(),s(te),u(te.text)}})}),Se!=="profile"&&Ie&&f.jsx(Wn,{title:"回滚记忆",children:f.jsx(pt,{size:"small",type:"text",icon:f.jsx(Uq,{}),"aria-label":"回滚记忆",disabled:t,onClick:Me=>{Me.stopPropagation(),n("rollback",{id:te.id})}})}),Ie&&f.jsx(Wn,{title:"删除记忆",children:f.jsx(pt,{size:"small",type:"text",danger:!0,icon:f.jsx(Uy,{}),"aria-label":"删除记忆",disabled:t,onClick:Me=>{Me.stopPropagation(),n("remove",{id:te.id,permanent:!0})}})})]})]},te.id)};return f.jsxs("div",{className:"dashboard-tool-page dashboard-tool-page-memory min-w-0",children:[f.jsx(aU,{meta:[{label:"Provider",value:ee==="remote"?"远程提供器":"本地提供器",tone:"accent"},{label:"范围",value:G?"当前项目":"全局",tone:"neutral"},{label:"记录",value:`${D} 条记忆`,tone:"success"}],help:f.jsx(gm,{ariaLabel:"了解个人记忆分类",title:"个人记忆分类",description:"个人记忆按用途和形成方式自动归类",items:hm.filter(te=>te.key!=="all")}),actions:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(pt,{className:"dashboard-plugin-secondary-action",icon:f.jsx(kc,{}),disabled:t||!G,onClick:()=>j(!0),children:"新增项目记忆"}),f.jsx(pt,{className:"dashboard-plugin-primary-action",type:"primary",icon:f.jsx(kc,{}),disabled:t,onClick:()=>g(!0),children:"新增偏好"})]})}),Y.length>0&&f.jsx("div",{className:"mb-3 space-y-2",children:Y.map((te,Se)=>f.jsx(To,{type:"info",showIcon:!0,message:te},`${te}-${Se}`))}),f.jsx(e6,{items:e?.manifestPreview,emptyLabel:"最近还没有向 Agent 提供个人记忆",detailMode:"modal",presentation:"summary",labels:{detailLabel:"个人记忆详情",contentLabel:"记忆内容",typeLabel:"记忆类型",deliveryLabel:"提供给 Agent 的内容",outcomeLabel:"应用结果",summaryCountLabel:"条记忆",navigationLabel:"本次使用的个人记忆"},onSelectItem:te=>{H.some(Se=>Se.id===te.id)&&B(te.id)}}),f.jsxs("div",{className:"dashboard-memory-workspace",children:[f.jsxs("aside",{className:"dashboard-memory-filter-rail","aria-label":"记忆筛选",children:[f.jsx("div",{className:"dashboard-memory-filter-search",children:f.jsx(Wt,{value:O,prefix:f.jsx(Ys,{}),allowClear:!0,placeholder:"搜索记忆…","aria-label":"搜索个人记忆",onChange:te=>P(te.target.value)})}),f.jsx("nav",{children:hm.map(te=>{const Se=te.key==="all"?D:te.key==="profile"?U.length:te.key==="policy"?J.length:te.key==="episode"?k.length:I.length;return f.jsx(Wn,{title:te.description,placement:"right",children:f.jsxs("button",{type:"button",className:_===te.key?"is-active":"","aria-pressed":_===te.key,onClick:()=>L(te.key),children:[f.jsx("span",{children:te.label}),f.jsx("strong",{children:Se})]})},te.key)})}),f.jsxs("div",{className:"dashboard-memory-filter-summary",children:[f.jsxs("div",{children:[f.jsx("span",{className:`dashboard-tool-state-dot ${V.learningEnabled?"is-success":"is-muted"}`}),"自动学习",V.learningEnabled?"已开启":"已暂停"]}),f.jsxs("div",{children:[f.jsx("span",{className:`dashboard-tool-state-dot ${V.retrievalEnabled?"is-accent":"is-muted"}`}),"任务注入",V.retrievalEnabled?"已开启":"已暂停"]}),f.jsx("span",{children:Q}),f.jsxs("span",{children:[X," 个记忆文件"]})]})]}),f.jsxs("section",{className:"dashboard-memory-registry","aria-label":"个人记忆列表",children:[f.jsxs("div",{className:"dashboard-memory-registry-toolbar",children:[f.jsxs("div",{children:[f.jsxs("span",{className:"dashboard-contextual-title",children:[f.jsx("strong",{children:oe.label}),f.jsx(gm,{ariaLabel:`了解${oe.label}`,title:oe.label,description:oe.description,example:oe.example})]}),f.jsxs("span",{children:[fe.length," 条"]})]}),f.jsx(qn,{value:"updated","aria-label":"记忆排序方式",options:[{value:"updated",label:"最近更新"}]})]}),f.jsxs("div",{className:"dashboard-memory-table-head","aria-hidden":"true",children:[f.jsx("span",{children:"记忆内容"}),f.jsx("span",{children:"作用范围"}),f.jsx("span",{children:"状态"}),f.jsx("span",{children:"更新时间"}),f.jsx("span",{})]}),f.jsx("div",{className:"dashboard-memory-table-body",children:fe.length===0?f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:O.trim()?"没有匹配的个人记忆":oe.description}):ie.map(te=>f.jsxs("section",{className:"dashboard-memory-group",children:[f.jsxs("div",{className:"dashboard-memory-group-title",children:[f.jsx("strong",{children:te.title}),f.jsx("span",{children:te.records.length})]}),te.records.map(Se=>he(Se,te.key))]},te.key))})]}),f.jsx("aside",{className:"dashboard-memory-inspector","aria-label":"记忆应用详情",children:re?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"dashboard-memory-inspector-head",children:[f.jsx("span",{children:nb(re)}),f.jsx("strong",{children:re.category||re.title||"个人记忆"}),f.jsx("p",{children:re.text})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"适用条件"}),f.jsxs("div",{className:"dashboard-memory-inspector-list",children:[f.jsxs("div",{children:[f.jsx("span",{children:"匹配规则"}),f.jsx("strong",{children:K2(re)})]}),(re.taskTypes??[]).length>0&&f.jsxs("div",{children:[f.jsx("span",{children:"任务类型"}),f.jsx("strong",{children:re.taskTypes.join("、")})]}),(re.pathPatterns??[]).length>0&&f.jsxs("div",{children:[f.jsx("span",{children:"路径范围"}),f.jsx("strong",{children:re.pathPatterns.join("、")})]}),(re.operations??[]).length>0&&f.jsxs("div",{children:[f.jsx("span",{children:"适用操作"}),f.jsx("strong",{children:re.operations.join("、")})]}),(re.phases??[]).length>0&&f.jsxs("div",{children:[f.jsx("span",{children:"适用阶段"}),f.jsx("strong",{children:re.phases.join("、")})]})]})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"最近一次应用"}),f.jsxs("div",{className:"dashboard-memory-inspector-list",children:[f.jsxs("div",{children:[f.jsx("span",{children:"记忆标识"}),f.jsx("strong",{children:re.id})]}),f.jsxs("div",{children:[f.jsx("span",{children:"加载方式"}),f.jsx("strong",{children:qc(re.lastApplication)})]}),re.lastApplication&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("span",{children:"最近应用"}),f.jsx("strong",{children:gr(re.lastApplication.appliedAt)})]}),f.jsxs("div",{children:[f.jsx("span",{children:"应用结果"}),f.jsx("strong",{children:ol(re.lastApplication.outcome)})]})]})]})]}),re.memoryType==="personal-episode"&&re.episode&&f.jsxs("section",{children:[f.jsx("h4",{children:"任务经验摘要"}),f.jsxs("div",{className:"dashboard-memory-inspector-list",children:[f.jsxs("div",{children:[f.jsx("span",{children:"发生情境"}),f.jsx("strong",{children:re.episode.situation})]}),f.jsxs("div",{children:[f.jsx("span",{children:"采取动作"}),f.jsx("strong",{children:re.episode.actionSummary})]}),f.jsxs("div",{children:[f.jsx("span",{children:"实际结果"}),f.jsx("strong",{children:re.episode.outcome})]}),f.jsxs("div",{children:[f.jsx("span",{children:"可复用经验"}),f.jsx("strong",{children:re.episode.lesson})]})]})]}),f.jsx(JM,{applications:re.applicationHistory??[],recordId:re.id}),f.jsxs("section",{children:[f.jsx("h4",{children:"作用范围"}),f.jsxs("div",{className:"dashboard-memory-inspector-list",children:[f.jsxs("div",{children:[f.jsx("span",{children:"范围类型"}),f.jsx("strong",{children:re.scope==="project"?"当前项目":"所有项目与对话"})]}),f.jsxs("div",{children:[f.jsx("span",{children:"状态"}),f.jsx("strong",{children:X2(re)})]}),f.jsxs("div",{children:[f.jsx("span",{children:"形成方式"}),f.jsx("strong",{children:re.authority==="explicit"?"用户明确确认":"任务经验推断"})]})]})]}),f.jsxs("section",{children:[f.jsx("h4",{children:"证据来源"}),f.jsxs("div",{className:"dashboard-memory-inspector-list",children:[f.jsxs("div",{children:[f.jsx("span",{children:"证据数量"}),f.jsxs("strong",{children:[re.evidenceCount??0," 条"]})]}),f.jsxs("div",{children:[f.jsx("span",{children:"最近更新"}),f.jsx("strong",{children:gr(re.updatedAt)})]}),f.jsxs("div",{children:[f.jsx("span",{children:"应用效果"}),f.jsxs("strong",{children:[re.applicationCount??0," 次 · 成功"," ",re.successCount??0," 次 · 需修正"," ",re.failureCount??0," 次"]})]})]}),re.reason&&f.jsx("p",{children:re.reason})]})]}):f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"选择一条记忆查看应用原因"})})]}),f.jsx(Hs,{rootClassName:"dashboard-create-modal-root",classNames:{mask:"dashboard-create-modal-mask",container:"dashboard-create-modal-content"},width:560,open:p,title:"新增偏好",okText:"保存",cancelText:"取消",okButtonProps:{disabled:b.trim().length===0},onClose:()=>g(!1),onOk:()=>{b.trim().length!==0&&(n("remember",{scope:"global",memoryClass:"user-preference",category:S.trim()||"沟通偏好",text:b.trim()}),y(""),g(!1))},children:f.jsxs(Fn,{layout:"vertical",component:"div",children:[f.jsx(Fn.Item,{label:"偏好内容",required:!0,htmlFor:"dashboard-new-profile-content",extra:"记录可在后续任务中复用的稳定偏好",children:f.jsx(Wt.TextArea,{id:"dashboard-new-profile-content",value:b,onChange:te=>y(te.target.value),placeholder:"例如:以后都用中文回答","aria-label":"偏好内容",autoFocus:!0,autoSize:{minRows:3,maxRows:6}})}),f.jsx(Fn.Item,{className:"mb-0",label:"主题(可选)",htmlFor:"dashboard-new-profile-category",extra:"用于描述记忆关注的内容,不会创建新的系统分组。",children:f.jsx(Wt,{id:"dashboard-new-profile-category",value:S,onChange:te=>$(te.target.value),placeholder:"例如:沟通偏好","aria-label":"主题(可选)"})})]})}),f.jsx(Hs,{rootClassName:"dashboard-create-modal-root",classNames:{mask:"dashboard-create-modal-mask",container:"dashboard-create-modal-content"},width:560,open:C,title:"新增项目记忆",okText:"保存",cancelText:"取消",okButtonProps:{disabled:w.trim().length===0},onClose:()=>j(!1),onOk:()=>{!G||w.trim().length===0||(n("remember",{scope:"project",projectKey:G,memoryClass:"project-convention",category:E.trim()||"项目约定",text:w.trim()}),R(""),N("项目约定"),j(!1))},children:f.jsxs(Fn,{layout:"vertical",component:"div",children:[f.jsx(Fn.Item,{label:"记忆内容",required:!0,htmlFor:"dashboard-new-project-memory-content",extra:"只记录以后在当前项目中仍然有用的个人经验或项目协作偏好",children:f.jsx(Wt.TextArea,{id:"dashboard-new-project-memory-content",value:w,onChange:te=>R(te.target.value),placeholder:"例如:这个项目优先使用最小相关测试","aria-label":"记忆内容",autoFocus:!0,autoSize:{minRows:3,maxRows:6}})}),f.jsx(Fn.Item,{className:"mb-0",label:"主题(可选)",htmlFor:"dashboard-new-project-memory-category",extra:"用于描述记忆关注的内容,不会创建新的系统分组。",children:f.jsx(Wt,{id:"dashboard-new-project-memory-category",value:E,onChange:te=>N(te.target.value),placeholder:"例如:项目约定","aria-label":"主题(可选)"})})]})}),f.jsx(Hs,{open:o!==null,title:"纠正这条记忆",okText:"保存",cancelText:"取消",okButtonProps:{disabled:i.trim().length===0,loading:m},onClose:()=>s(null),onOk:async()=>{if(!(!o||i.trim().length===0)){h(!0);try{await n("correct",{id:o.id,correction:{text:i.trim()}})!==void 0&&s(null)}finally{h(!1)}}},children:f.jsx(Wt.TextArea,{autoFocus:!0,value:i,onChange:te=>u(te.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"输入新的记忆内容"})})]})}function tG({snapshot:e}){const[t,n]=c.useState(0),o=[["活跃变更",e.summary.activeChanges,"当前 Classic workflow","进行中",hl],["已归档变更",e.summary.archivedChanges,"历史变更已归档","已完成",Xy],["Verify 失败",e.summary.verifyFailed,"验证结果",e.summary.verifyFailed?"阻塞":"健康",su],["未完成任务",e.summary.tasksIncomplete,"任务推进情况",e.summary.tasksIncomplete?"待办":"清零",dl],["Git 未提交",e.summary.dirtyFiles,"工作区状态",e.summary.dirtyFiles?"未提交":"干净",RM]];return f.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:o.map(([s,i,u,m,h],p)=>f.jsx(nG,{title:s,value:i,note:u,status:m,icon:h,tone:`dashboard-summary-tone-${p+1}`,selected:t===p,onClick:()=>n(p)},s))})}function nG({title:e,value:t,note:n,status:o,icon:s,tone:i,selected:u,onClick:m}){const h=Ui(t,850,t);return f.jsxs("button",{type:"button","aria-pressed":u,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${i} ${u?"dashboard-summary-primary":""}`,onClick:m,children:[f.jsxs("div",{className:"dashboard-summary-card-top",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),f.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(h)})]}),f.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:f.jsx(s,{})})]}),f.jsx("span",{className:"dashboard-summary-status",children:o}),f.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:n})]})}function rG({visible:e,total:t,selectedId:n,tab:o,onTab:s,onSelect:i,hasMore:u,pageLoading:m,onLoadMore:h}){const p=[["active","活跃"],["archived","已归档"],["all","全部"]].map(([g,b])=>({key:g,label:b}));return f.jsx(Us,{className:"classic-changes-explorer min-w-0",title:f.jsxs("span",{children:["Changes Explorer ",f.jsx(Ey,{count:t,showZero:!0,className:"ml-2"})]}),children:f.jsx(Ly,{activeKey:o,onChange:s,items:p.map(g=>({...g,children:f.jsx(iG,{visible:e,selectedId:n,onSelect:i,hasMore:u,pageLoading:m,onLoadMore:h})}))})})}function oG(e,t){const n=e?.items??[];return t&&n.some(o=>pr(o)===t)?t:n[0]?pr(n[0]):null}function aG(e,t){return{...e,changes:{active:t?.items??[],archived:[]}}}function sG(e,t,n){return t==="active"?{...e,changes:{...e.changes,active:n}}:t==="archived"?{...e,changes:{...e.changes,archived:n}}:{...e,changes:{active:n.filter(o=>o.status==="active"),archived:n.filter(o=>o.status==="archived")}}}function iG({visible:e,selectedId:t,onSelect:n,hasMore:o,pageLoading:s,onLoadMore:i}){const u=c.useRef(null),m=c.useRef(null);c.useEffect(()=>{const p=u.current,g=m.current;if(!p||!g||!o||!i)return;const b=new IntersectionObserver(([y])=>{y.isIntersecting&&!s&&i()},{root:p});return b.observe(g),()=>b.disconnect()},[o,i,s]);const h=c.useCallback(p=>{if(!o||s||!i)return;const{scrollTop:g,clientHeight:b,scrollHeight:y}=p.currentTarget;g>0&&g+b>=y-24&&i()},[o,i,s]);return f.jsxs("div",{ref:u,className:"dashboard-change-list",onScroll:h,children:[e.length===0?s?f.jsx(Go,{className:"dashboard-change-list-skeleton",label:"正在加载 Classic 变更列表",rows:6,titleWidth:"48%"}):f.jsx(gn,{image:gn.PRESENTED_IMAGE_SIMPLE,description:"暂无变更"}):e.map(p=>f.jsx("div",{className:`dashboard-change-list-item ${pr(p)===t?"selected":""} px-2`,children:f.jsx(pt,{className:`dashboard-change-row ${pr(p)===t?"dashboard-change-row-selected":""}`,type:"text",block:!0,onClick:()=>n(pr(p)),children:f.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("strong",{className:"block truncate",children:p.displayName}),f.jsxs("span",{className:"mt-0.5 block text-xs text-meta",children:[nx(p.phase)," · ",p.tasks.completed,"/",p.tasks.total]}),p.workspace&&!p.workspace.current?f.jsx("span",{className:"dashboard-workspace-label mt-1 inline-flex max-w-full truncate",children:p.workspace.label}):null,f.jsx(ck,{percent:p.tasks.total?Math.round(p.tasks.completed/p.tasks.total*100):0,className:"mt-1",size:"small",showInfo:!1})]}),f.jsx(KM,{tone:qM[p.verify.result]??"neutral",children:ex[p.verify.result]??"未知"})]})})},pr(p))),f.jsx("div",{ref:m,className:"py-2 text-center text-xs text-meta","aria-live":"polite",children:s&&e.length>0?f.jsx(Go,{className:"dashboard-change-list-more-skeleton",label:"正在加载更多 Classic 变更",rows:1}):o?"继续下滑加载更多":null})]})}function lG({change:e,onPreview:t}){const[n,o]=c.useState(!1),s=e.status==="archived"?"archive":e.phase,i=Math.max(0,I0.findIndex(([u])=>u===s));return f.jsxs(Us,{className:"change-detail min-w-0",title:f.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[f.jsx("span",{className:"truncate",children:e.displayName}),f.jsx(Wn,{title:"复制 Change 名称",children:f.jsx(pt,{type:"text",size:"small",icon:n?f.jsx(dl,{}):f.jsx(jM,{}),"aria-label":n?"已复制 Change 名称":"复制 Change 名称",onClick:()=>ZM(e.name).then(()=>{o(!0),toast("Change 名称已复制"),window.setTimeout(()=>o(!1),1600)}).catch(()=>toast("复制 Change 名称失败","error"))})})]}),extra:f.jsx(KM,{tone:e.status==="archived"?"neutral":qM[e.verify.result],children:e.status==="archived"?"已归档":ex[e.verify.result]}),children:[f.jsxs("div",{className:"mb-4 text-xs text-meta",children:[e.workflow??"—"," · 更新于 ",gr(e.updatedAt)," ·"," ",_U(e)]}),f.jsx(Vk,{size:"small",current:i,items:I0.map(([,u])=>({title:u}))}),f.jsx(To,{className:"dashboard-next-step-alert",type:"info",showIcon:!0,title:e.next?.command?`下一步:${e.next.command}`:"该变更没有待执行的下一步",description:e.next?.description}),f.jsxs("div",{className:"change-detail-panels grid min-w-0 gap-4",children:[f.jsx(Us,{size:"small",title:"关键产物",children:f.jsx(sU,{change:e,onPreview:t})}),f.jsx(lU,{change:e})]})]})}export{SN as C,CN as K,LO as L,uG as M,dG as S,ga as _,h$ as a,fG as b,f$ as c,jt as g,KO as m,zc as s};
|