@openscout/scout 0.2.105 → 0.2.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/bin/scoutd +0 -0
- package/dist/build-manifest.json +3 -3
- package/dist/chat.mjs +23 -1
- package/dist/client/assets/ActivityScreen-CZmGwQ2U.js +1 -0
- package/dist/client/assets/{AddProjectForm-CHNJ4NnS.js → AddProjectForm-CusDRiVO.js} +1 -1
- package/dist/client/assets/{AdventureEvidence-B4mEvXeD.js → AdventureEvidence-CyegKk1V.js} +1 -1
- package/dist/client/assets/{AdventureReader-ZsBDQITY.js → AdventureReader-X-hbTOi0.js} +1 -1
- package/dist/client/assets/{AdventureScenery-DSxDlqG1.js → AdventureScenery-LPXSVP67.js} +1 -1
- package/dist/client/assets/AgentAdventures-BAgxdOF8.js +1 -0
- package/dist/client/assets/AgentAvatar-CrP1eXxk.js +1 -0
- package/dist/client/assets/AgentConfigurationScreen-1L0IQm2w.js +1 -0
- package/dist/client/assets/AgentDefinitionsWorkspace-DguGs7jZ.js +1 -0
- package/dist/client/assets/{AgentDetailCard-MIEBKw_S.js → AgentDetailCard-DtHT3sCo.js} +1 -1
- package/dist/client/assets/AgentFloorView-DH4jiDgw.js +1 -0
- package/dist/client/assets/{AgentFloorWorld-BTqwmK5G.js → AgentFloorWorld-CjoIa6jA.js} +1 -1
- package/dist/client/assets/AgentInfoScreen-DYtmKkeE.js +1 -0
- package/dist/client/assets/{AgentLaneCard-C4rKLLdT.js → AgentLaneCard-BaZ2g-f8.js} +1 -1
- package/dist/client/assets/{AgentLaneChrome-fGC-ZrJS.js → AgentLaneChrome-TF1SlJSc.js} +1 -1
- package/dist/client/assets/{AgentLaneDetailSheet-BTF4_th9.js → AgentLaneDetailSheet-EzEPsn3g.js} +1 -1
- package/dist/client/assets/{AgentLaneSummaryResize-DgSeA_vS.js → AgentLaneSummaryResize-dpp7YvrX.js} +1 -1
- package/dist/client/assets/AgentLanesEmbedScreen-BlSof_6S.js +1 -0
- package/dist/client/assets/{AgentLanesPreflight-CcS23wij.js → AgentLanesPreflight-Ry-aqDTr.js} +1 -1
- package/dist/client/assets/AgentLanesView-BJi9xXz6.js +2 -0
- package/dist/client/assets/{AgentLiveActions-6Kfr1uOT.js → AgentLiveActions-CfTupTEl.js} +1 -1
- package/dist/client/assets/AgentMasterScreen-EJhmuKgl.js +1 -0
- package/dist/client/assets/AgentSessions-B1gOhDBf.js +6 -0
- package/dist/client/assets/AgentsConsole-RXGqRvcb.js +1 -0
- package/dist/client/assets/AgentsScreen-ChwMBs11.js +1 -0
- package/dist/client/assets/AgentsSubnav-DwNX4yy0.js +1 -0
- package/dist/client/assets/{AstronautSuit-D67fIBdR.js → AstronautSuit-Cchnc4Ug.js} +1 -1
- package/dist/client/assets/{AtopView-Ck30FbzG.js → AtopView-gkEp4y__.js} +1 -1
- package/dist/client/assets/{BackToPicker-CkBhGRlD.js → BackToPicker-CUkjnoVk.js} +1 -1
- package/dist/client/assets/BriefingDetailScreen-DrlC3qkm.js +1 -0
- package/dist/client/assets/{BriefingsScreen-DTxYMr3a.js → BriefingsScreen-B1HlBMGZ.js} +1 -1
- package/dist/client/assets/{BrokerMetadataPanel-crirZCdo.js → BrokerMetadataPanel-Dk242Yh_.js} +1 -1
- package/dist/client/assets/BrokerScreen-DwOF6bMA.js +8 -0
- package/dist/client/assets/{Canvas-CRP0KjKb.js → Canvas-X9pVSkw3.js} +1 -1
- package/dist/client/assets/{CastPicker-ZPomvOf-.js → CastPicker-BXUtPAGC.js} +1 -1
- package/dist/client/assets/ChannelComposer-DoK7IDGa.js +1 -0
- package/dist/client/assets/ChannelSidebar-e9DOPulb.js +1 -0
- package/dist/client/assets/{CharacterFamilyPreview-ckVkecDO.js → CharacterFamilyPreview-DMfw7UM_.js} +1 -1
- package/dist/client/assets/{ChatAvatar-DKBsbOqk.js → ChatAvatar-C3a_o5Hj.js} +1 -1
- package/dist/client/assets/ChatBits-CsvxbToF.js +1 -0
- package/dist/client/assets/{ChatCollapsedStrip-Co0NmqOO.js → ChatCollapsedStrip-FEmQ_G9J.js} +1 -1
- package/dist/client/assets/ChatRichInput-DhtwFxQE.js +31 -0
- package/dist/client/assets/ChatRightPanel-C1h_aIkn.js +1 -0
- package/dist/client/assets/ChatSpaceSurface-BXyLYKHn.js +1 -0
- package/dist/client/assets/ChatSpaceTheme-3wLZGsvT.css +1 -0
- package/dist/client/assets/ChatSpaceTheme-CUH8bTZc.js +1 -0
- package/dist/client/assets/{CodeDiffPane-D-iv28LJ.js → CodeDiffPane-DuQRwpgK.js} +1 -1
- package/dist/client/assets/{CodeProjectPicker-CZ3gDdiT.js → CodeProjectPicker-ZQ6gSBpg.js} +1 -1
- package/dist/client/assets/{CodeScreen-CSC-zbP9.js → CodeScreen-BXyKeL5T.js} +1 -1
- package/dist/client/assets/{CommsCanvas-DdNAwjGW.js → CommsCanvas-THp0r_U8.js} +1 -1
- package/dist/client/assets/{CommsDeck-mGWY7Ivi.js → CommsDeck-BVmSMV2V.js} +1 -1
- package/dist/client/assets/{CommsFlowGraph-voDD9M5R.js → CommsFlowGraph-DxoOaLF_.js} +1 -1
- package/dist/client/assets/{CommsFlowMap-C33sgD48.js → CommsFlowMap-Vi8ziCPg.js} +1 -1
- package/dist/client/assets/{CommsSelection-BL8aYD7z.js → CommsSelection-BUoRbu9o.js} +1 -1
- package/dist/client/assets/ComposerAttachments-DW0AIb8k.js +1 -0
- package/dist/client/assets/ConversationComposer-CUQyArlk.js +1 -0
- package/dist/client/assets/ConversationFeedRows-DWiOfT-y.js +1 -0
- package/dist/client/assets/ConversationHeader-C-ZWscKj.js +1 -0
- package/dist/client/assets/{ConversationPanels-6pprBpmq.js → ConversationPanels-D9oC0xG5.js} +2 -2
- package/dist/client/assets/ConversationScreen-9MlMnEo4.css +1 -0
- package/dist/client/assets/ConversationScreen-CUfsQ4MR.js +2 -0
- package/dist/client/assets/ConversationStatus--IPm2nGh.js +1 -0
- package/dist/client/assets/{CrewAvatar-D0c9z5Qr.css → CrewAvatar-BnIPIn_Z.css} +1 -1
- package/dist/client/assets/CrewAvatar-kTznzqcO.js +1 -0
- package/dist/client/assets/{CrewSprite-Dp9KBBGY.js → CrewSprite-Dhryjx2c.js} +1 -1
- package/dist/client/assets/CrewStage-vdO0qm3D.js +1 -0
- package/dist/client/assets/CrewWorkspaces-DCBzAAS4.js +1 -0
- package/dist/client/assets/{DataTable-av71ehJV.js → DataTable-aH-jCyDq.js} +1 -1
- package/dist/client/assets/{DispatchAftermath-CcYGUB10.js → DispatchAftermath-66uQAorV.js} +1 -1
- package/dist/client/assets/{DocumentFocusViewer-DlMiEALb.js → DocumentFocusViewer-DJr0v0D_.js} +1 -1
- package/dist/client/assets/{EmbeddableSurfacesLab-CTkO_tQR.js → EmbeddableSurfacesLab-BBa70EhJ.js} +1 -1
- package/dist/client/assets/{EmptyState-CYUwYyAW.js → EmptyState-CZlrHXy-.js} +1 -1
- package/dist/client/assets/{FileViewerPane-Cxhixtks.js → FileViewerPane-BAO6mtjD.js} +1 -1
- package/dist/client/assets/FleetRollCallHud-C5q2567n.js +1 -0
- package/dist/client/assets/FlightObserveScreen-DZ2mrw91.js +1 -0
- package/dist/client/assets/{FloorContextSheet-Vj_wVZq1.js → FloorContextSheet-2_NVPQor.js} +1 -1
- package/dist/client/assets/{FloorExchangePanel-CjHSDXad.js → FloorExchangePanel-BU1pPu8K.js} +1 -1
- package/dist/client/assets/{FloorMessagePasses-BG4ebnX5.js → FloorMessagePasses-cLW2UGNP.js} +1 -1
- package/dist/client/assets/{FloorReplay-BoYaGY9t.js → FloorReplay-VFzA6Kxc.js} +1 -1
- package/dist/client/assets/FloorResourcesSheet-C-kQ6Ren.js +1 -0
- package/dist/client/assets/{FloorSavedWork-jbtRs-YE.js → FloorSavedWork-BeHDejWz.js} +1 -1
- package/dist/client/assets/FloorTacticalHUD-CO-iiFpb.js +1 -0
- package/dist/client/assets/{FollowScreen-CupyOgt4.js → FollowScreen-CFfkIbc6.js} +1 -1
- package/dist/client/assets/HarnessMark-C4naWc16.js +1 -0
- package/dist/client/assets/HarnessesScreen-DX3NLcDG.js +1 -0
- package/dist/client/assets/{HerdrSession-Dcm3vf9U.js → HerdrSession-_t7yM8vX.js} +2 -2
- package/dist/client/assets/{HomeHero-pIZtE1cC.js → HomeHero-DouPyNmz.js} +1 -1
- package/dist/client/assets/{HostAdvisorView-Dv5meXo2.js → HostAdvisorView-CnM1i8hW.js} +1 -1
- package/dist/client/assets/InviteLandingScreen-CEjG2E34.js +1 -0
- package/dist/client/assets/InviteSheet-CwxZtWCl.js +1 -0
- package/dist/client/assets/{JumpPalette-BmiSOEmp.js → JumpPalette-O1aJE9gR.js} +1 -1
- package/dist/client/assets/{KnowledgeSearchInspector-B8yiM524.js → KnowledgeSearchInspector-32n9baT-.js} +1 -1
- package/dist/client/assets/KnowledgeSearchScreen-Dd6jrQ0A.js +1 -0
- package/dist/client/assets/{LaneToolHoverCard-D2cnTeUd.js → LaneToolHoverCard-CJa110yk.js} +1 -1
- package/dist/client/assets/LaneTraceDetailSheet-DYrd0BIf.js +1 -0
- package/dist/client/assets/{LaneTraceEventFocus-BLhVHwff.js → LaneTraceEventFocus-TbrNHRj_.js} +1 -1
- package/dist/client/assets/{MeshCanvas-BR25OBTJ.js → MeshCanvas-DWZHYh1A.js} +2 -2
- package/dist/client/assets/{MeshCanvasMinimap-ClVolr4-.js → MeshCanvasMinimap-iswYFpIb.js} +1 -1
- package/dist/client/assets/MeshScreen-8nAzQVbm.js +1 -0
- package/dist/client/assets/{MeshTopologyView-BT3ke2D1.js → MeshTopologyView-BVvtqI8q.js} +2 -2
- package/dist/client/assets/MessageEmbeds-ksPazAKH.js +1 -0
- package/dist/client/assets/MessagesScreen-C3WB4T21.js +1 -0
- package/dist/client/assets/{MissionContextRail-CafjuseK.js → MissionContextRail-D62-Wis8.js} +1 -1
- package/dist/client/assets/MissionControlView-B9cNPXvl.js +1 -0
- package/dist/client/assets/{MissionFocusOverlay-nhy3hkxQ.js → MissionFocusOverlay-C1zys3Jv.js} +1 -1
- package/dist/client/assets/MissionLeftAgentRow-vycMV77n.js +1 -0
- package/dist/client/assets/{MissionLogPane-DiUf3vWW.js → MissionLogPane-B19lYSY9.js} +1 -1
- package/dist/client/assets/NativeAreaScreen-B1RLa85C.js +1 -0
- package/dist/client/assets/NativeAreaScreen-CV0OhGra.js +1 -0
- package/dist/client/assets/NativeAreaScreen-CzuZt6o1.js +1 -0
- package/dist/client/assets/{NewAgentModal-BQ2wQ5gp.js → NewAgentModal-Bh-L-emz.js} +1 -1
- package/dist/client/assets/NewChatComposer-C97-iTMK.js +19 -0
- package/dist/client/assets/{NewChatOrigin-C8ROO4ps.js → NewChatOrigin-DFbF_XvR.js} +1 -1
- package/dist/client/assets/{NodeDetailPanel-BNTqYC7m.js → NodeDetailPanel-CElOEpCh.js} +1 -1
- package/dist/client/assets/{NodeMenu-CcOeFRCB.js → NodeMenu-B-jjHf1c.js} +1 -1
- package/dist/client/assets/ObserveEmbedScreen-B7Qt69Ms.js +2 -0
- package/dist/client/assets/{ObserveTextFlow-CC5mnngm.js → ObserveTextFlow-PFnG_10h.js} +2 -2
- package/dist/client/assets/{ObservedTopologyPanel-DF6tRZL_.js → ObservedTopologyPanel-CUTIoLZJ.js} +1 -1
- package/dist/client/assets/OpenScoutAppShell-37PDFfA4.js +31 -0
- package/dist/client/assets/OpsAgentsView-DajlX8LO.js +1 -0
- package/dist/client/assets/OpsScreen-jVcaBKGi.js +1 -0
- package/dist/client/assets/OpsSubnav-BOOYShHE.js +1 -0
- package/dist/client/assets/ProjectAgentProfile-D_wlW4sQ.js +1 -0
- package/dist/client/assets/{ProjectAgentProfileBar-C8z22pJ2.js → ProjectAgentProfileBar-DHuMKJj-.js} +1 -1
- package/dist/client/assets/ProjectAgentProfileHero-Dbebtug1.js +1 -0
- package/dist/client/assets/ProjectsInbox-B8zYE4vP.css +1 -0
- package/dist/client/assets/ProjectsInbox-Cgu7B4--.js +2 -0
- package/dist/client/assets/ProjectsRail-CDWocin_.js +1 -0
- package/dist/client/assets/ProjectsScreen-B_CJycqW.js +1 -0
- package/dist/client/assets/ProjectsThreadAside-1MMl_qUD.js +1 -0
- package/dist/client/assets/Provider-C35yu29I.js +5 -0
- package/dist/client/assets/{RailRow-DUPqXMZh.js → RailRow-BjmWK420.js} +1 -1
- package/dist/client/assets/RawSessionsTable-DzT90hWu.js +1 -0
- package/dist/client/assets/RealtimeVoiceScreen-B6ylX3WQ.js +16 -0
- package/dist/client/assets/{RenderedWorkerSprite-C8fxndAh.js → RenderedWorkerSprite-Dhlyg89J.js} +1 -1
- package/dist/client/assets/{ReplayClock-DUVJjrIu.js → ReplayClock-348f17bW.js} +1 -1
- package/dist/client/assets/{ReplayLog-Bek1Vc4W.js → ReplayLog-CBnAM3ui.js} +1 -1
- package/dist/client/assets/{ReplayOutpost-DlRg3172.js → ReplayOutpost-DyRPfNFx.js} +1 -1
- package/dist/client/assets/{RepoDiffEmbedScreen-CVUMnt6A.js → RepoDiffEmbedScreen-BWxvRDrS.js} +1 -1
- package/dist/client/assets/{RepoDiffPageScreen-D9-s5PyB.js → RepoDiffPageScreen-DN94irmY.js} +1 -1
- package/dist/client/assets/{RepoDiffViewer-D7FN-oyY.js → RepoDiffViewer-_4JVXBIW.js} +1 -1
- package/dist/client/assets/RepoDiffViewerLazy-XGVC3WXv.js +2 -0
- package/dist/client/assets/{ReposScreen-BQ7HO1om.js → ReposScreen-uMCpt0e9.js} +2 -2
- package/dist/client/assets/{RiggedWorkerCharacter-CJMWlvV-.js → RiggedWorkerCharacter-q6QRc7_o.js} +1 -1
- package/dist/client/assets/{SageModelStudio-B526NSnw.js → SageModelStudio-CNDhZhgD.js} +1 -1
- package/dist/client/assets/{ScoutDeckSurface-ChkvGyEW.js → ScoutDeckSurface-CUaU4R6T.js} +1 -1
- package/dist/client/assets/{ScoutSurface-6g1f5chk.js → ScoutSurface-3_25USO_.js} +1 -1
- package/dist/client/assets/{ScoutbotFxLab-BuwBdnPf.js → ScoutbotFxLab-CRqhYe0a.js} +1 -1
- package/dist/client/assets/{SecondaryNav-Bs-_VwTC.js → SecondaryNav-D7dbV2qo.js} +1 -1
- package/dist/client/assets/SessionContextStrip-CXfs9hUD.js +1 -0
- package/dist/client/assets/SessionContextStrip-DAIXwtHd.css +1 -0
- package/dist/client/assets/{SessionEmbedScreen-C2wf35-P.js → SessionEmbedScreen-D0zFmou-.js} +1 -1
- package/dist/client/assets/SessionHopMenu-E6VJZrE0.js +1 -0
- package/dist/client/assets/{SessionObserve-B64YsYhy.js → SessionObserve-DXxBvejJ.js} +9 -9
- package/dist/client/assets/SessionObserveEvidence-Cuj_KHxR.js +1 -0
- package/dist/client/assets/SessionRefScreen-DqLSUlCE.js +1 -0
- package/dist/client/assets/SessionsScreen-BLIRkohT.js +1 -0
- package/dist/client/assets/SettingsDrawer-juCpnbH6.js +3 -0
- package/dist/client/assets/SettingsScreen-BtGzE2-O.js +1 -0
- package/dist/client/assets/{SharedFloorCharacter-V04kD5T9.js → SharedFloorCharacter-DNEiaOUh.js} +1 -1
- package/dist/client/assets/SharedWorkFloor-0rqtdF-n.css +1 -0
- package/dist/client/assets/SharedWorkFloor-D9mf9KSg.js +2 -0
- package/dist/client/assets/{ShikiPane-XwFI-pCp.js → ShikiPane-CRtTYkMj.js} +1 -1
- package/dist/client/assets/{SlidePanel-BMpkXai_.js → SlidePanel-_CHAQdOa.js} +1 -1
- package/dist/client/assets/SpaceSwitcher-BLgSCf_T.js +1 -0
- package/dist/client/assets/{SpriteAvatar-aHeF4ZQZ.js → SpriteAvatar-CpZWf54-.js} +1 -1
- package/dist/client/assets/{SproutActionSprite-DI5N3gOj.js → SproutActionSprite-BSiTS4en.js} +1 -1
- package/dist/client/assets/{StatusPill-Dw4LP7wu.js → StatusPill-2gCP6H7A.js} +1 -1
- package/dist/client/assets/{TailView-BofjmUMJ.js → TailView-CYSijNTy.js} +2 -2
- package/dist/client/assets/Terminal-Bi97yb5s.js +4 -0
- package/dist/client/assets/TerminalEmbedScreen-Bqop67Bq.js +1 -0
- package/dist/client/assets/{TerminalHeaderMount-CwbQhXcI.js → TerminalHeaderMount-Cq4OD_xN.js} +1 -1
- package/dist/client/assets/{TerminalRelay--qOBwnbR.js → TerminalRelay-DrikpUSJ.js} +3 -3
- package/dist/client/assets/{TextDocumentSurface-BK6Qy41F.js → TextDocumentSurface-D52m7Vd8.js} +1 -1
- package/dist/client/assets/{TmuxPeek-DpUT9Tpc.js → TmuxPeek-CXFeweMg.js} +1 -1
- package/dist/client/assets/VoiceControlWell-DF3bjcYA.js +1 -0
- package/dist/client/assets/VoicePathDiagram-CmpHWfO-.js +1 -0
- package/dist/client/assets/{VoicePermissionsPanel-D35fOnQj.js → VoicePermissionsPanel-Ok2nfxHw.js} +1 -1
- package/dist/client/assets/VoiceTurnDetails-wAByRaNB.js +8 -0
- package/dist/client/assets/VoiceTurnStage-edoJalLV.js +1 -0
- package/dist/client/assets/VoiceTurnView-D-8g5E4r.js +1 -0
- package/dist/client/assets/WorkDetailScreen-zQkNVy2F.js +5 -0
- package/dist/client/assets/{WorkFilesViewer-t8AEyx3Q.js → WorkFilesViewer-vNt01sDd.js} +1 -1
- package/dist/client/assets/{WorkRunView-_mhG_FR2.js → WorkRunView-BDkR7Edq.js} +1 -1
- package/dist/client/assets/WorldActorTalk-BvSg_b1y.js +1 -0
- package/dist/client/assets/{WorldCharacter-BRrj3MQN.js → WorldCharacter-CIIlutQq.js} +1 -1
- package/dist/client/assets/WorldMinimap-B6HNgcDe.js +1 -0
- package/dist/client/assets/{WorldSky-D-RJzSa6.js → WorldSky-Jm2Z6dfW.js} +1 -1
- package/dist/client/assets/{activity-BJqFrZyB.js → activity-CIlFrfPJ.js} +1 -1
- package/dist/client/assets/{addon-fit-CHohcvS3.js → addon-fit-dFpj9Kfq.js} +1 -1
- package/dist/client/assets/{addon-webgl-CaRy2x2b.js → addon-webgl-BFCGRtGh.js} +1 -1
- package/dist/client/assets/{agent-essentials-bKWYOZaH.js → agent-essentials-BGGvT5G6.js} +1 -1
- package/dist/client/assets/{agent-master-model-C-KdOFDK.js → agent-master-model-Bk_yuUXJ.js} +1 -1
- package/dist/client/assets/{agent-specialization-BplZUa_0.js → agent-specialization-DDc7mLCW.js} +1 -1
- package/dist/client/assets/agents-screen-BYakbO50.css +1 -0
- package/dist/client/assets/{arc.es-CubLvQ4W.js → arc.es-C1SQHJ3k.js} +1 -1
- package/dist/client/assets/{arrow-left-DFfKAq0d.js → arrow-left-MVUKauwQ.js} +1 -1
- package/dist/client/assets/{arrow-right-DmAWnyAH.js → arrow-right-Bp-FpE5V.js} +1 -1
- package/dist/client/assets/{arrow-up-right-B0aLKiyF.js → arrow-up-right-BPedAgxO.js} +1 -1
- package/dist/client/assets/{book-open-BL9qvhEI.js → book-open-CV98WMSp.js} +1 -1
- package/dist/client/assets/{bot-BhAVbcCA.js → bot-B4zLQ4IN.js} +1 -1
- package/dist/client/assets/chat-api-DSJMBYoT.js +2 -0
- package/dist/client/assets/chat-message-markup-91DIry6R.js +1 -0
- package/dist/client/assets/chat-space-model-aW3Fd8_U.js +4 -0
- package/dist/client/assets/chat-transport-DNS5CB2I.js +1 -0
- package/dist/client/assets/{check-g7D7-c1J.js → check-lrJ3a73a.js} +1 -1
- package/dist/client/assets/{chevron-down-CDzRQQGl.js → chevron-down-l1mrh5S9.js} +1 -1
- package/dist/client/assets/{chevron-right-DKGTLiqc.js → chevron-right-DrfqcerI.js} +1 -1
- package/dist/client/assets/{chevron-up-DX7R6KY2.js → chevron-up-CETZJzjV.js} +1 -1
- package/dist/client/assets/{chunk-HRAB3GC3-Dvk_QpRq.js → chunk-HRAB3GC3-DbVLgbWX.js} +1 -1
- package/dist/client/assets/{clock-CQb4FeMf.js → clock-BV1aqPkK.js} +1 -1
- package/dist/client/assets/{code-xml-Cmadr3pQ.js → code-xml-BhcNbLWU.js} +1 -1
- package/dist/client/assets/{coffee-ljG1_krY.js → coffee-D7EAOdCk.js} +1 -1
- package/dist/client/assets/{compass-CvzkzkIh.js → compass-63TUaz5_.js} +1 -1
- package/dist/client/assets/content-B1lgE8qr.js +1 -0
- package/dist/client/assets/content-B5l11YyQ.js +1 -0
- package/dist/client/assets/content-BNZOZEpX.js +1 -0
- package/dist/client/assets/content-BRIxP155.js +1 -0
- package/dist/client/assets/content-BWd8gt8L.js +1 -0
- package/dist/client/assets/content-BfwS2jAK.js +1 -0
- package/dist/client/assets/content-C4p43_eT.js +1 -0
- package/dist/client/assets/content-CdYfaoDV.js +1 -0
- package/dist/client/assets/content-CzldLxw0.js +1 -0
- package/dist/client/assets/content-D-olnc4U.js +1 -0
- package/dist/client/assets/content-DTioimq4.js +1 -0
- package/dist/client/assets/content-LOebm3_d.js +1 -0
- package/dist/client/assets/{content-CKJ9zb7Z.js → content-nGlEZhUI.js} +1 -1
- package/dist/client/assets/{content-D1Ze_FG9.js → content-oyzDM-LK.js} +1 -1
- package/dist/client/assets/content-x1PHxED7.js +1 -0
- package/dist/client/assets/content-zX3ZY3T9.js +1 -0
- package/dist/client/assets/{conversation-icons-CIRaxmid.js → conversation-icons-Tqba2d56.js} +1 -1
- package/dist/client/assets/conversation-model-FxDeWlle.js +1 -0
- package/dist/client/assets/conversation-motion-features-C5zjuNwE.js +1 -0
- package/dist/client/assets/conversations-DoAAO6kA.js +1 -0
- package/dist/client/assets/{copy-BGOC1tJB.js → copy-xKeM5ZtU.js} +1 -1
- package/dist/client/assets/{cpu-Q6nrHFTN.js → cpu-BOTa_WLr.js} +1 -1
- package/dist/client/assets/{createLucideIcon-ChvMq-zl.js → createLucideIcon-zZ8Hx7er.js} +1 -1
- package/dist/client/assets/ctx-panel-BC8fpcWJ.css +1 -0
- package/dist/client/assets/direct-voice-BbLPuJ04.js +2 -0
- package/dist/client/assets/direct-voice-DbO7CSv_.css +1 -0
- package/dist/client/assets/discover-DJFxyV1k.js +2 -0
- package/dist/client/assets/embed-entry-Lyvu0Kfc.js +2 -0
- package/dist/client/assets/{external-link-BVccgH0n.js → external-link-CUObqmgX.js} +1 -1
- package/dist/client/assets/{eye-CsGfEVR6.js → eye-LrO-cXQt.js} +1 -1
- package/dist/client/assets/{file-code-corner-Be6da5l3.js → file-code-corner-CsU7jJpu.js} +1 -1
- package/dist/client/assets/{file-text-DP6txVW-.js → file-text-CnISiiw6.js} +1 -1
- package/dist/client/assets/{flag-DAFE2wZ5.js → flag-C4wl8z2-.js} +1 -1
- package/dist/client/assets/fleet-roll-call-BUgf7w-V.css +1 -0
- package/dist/client/assets/{folder-B_S7gBVr.js → folder-D5prSkzz.js} +1 -1
- package/dist/client/assets/{gauge-DQCGlE3o.js → gauge-D9_5iJEm.js} +1 -1
- package/dist/client/assets/{gestures-CofqY4Km.js → gestures-QZub3Ot9.js} +1 -1
- package/dist/client/assets/{git-branch-DcUCsWdJ.js → git-branch-B0_fPLO7.js} +1 -1
- package/dist/client/assets/{go-shortcuts-KQy-ZOpV.js → go-shortcuts-DicR7sUf.js} +1 -1
- package/dist/client/assets/home-moving-signal-rpMhsOJB.js +1 -0
- package/dist/client/assets/home-now-card-ByE6Umcx.js +1 -0
- package/dist/client/assets/{home-now-card-nano-CvU8B61b.js → home-now-card-nano-B5Dv3-pb.js} +1 -1
- package/dist/client/assets/hooks-_eCZZPsR.js +2 -0
- package/dist/client/assets/index-724SdE6r.js +1 -0
- package/dist/client/assets/{index-kkXUq-zf.js → index-CHD0qcfL.js} +1 -1
- package/dist/client/assets/index-CN4rBB_s.css +1 -0
- package/dist/client/assets/index-D1d98iYf.js +1 -0
- package/dist/client/assets/{index-DReVb7jZ.js → index-EsrkGBcv.js} +8 -8
- package/dist/client/assets/index-gGHPA-By.js +1 -0
- package/dist/client/assets/{inspector-panel-CLU7wjnT.js → inspector-panel-BkgUDn6G.js} +2 -2
- package/dist/client/assets/{keyboard-nav-CJXPaHXj.js → keyboard-nav-DDHegDbx.js} +1 -1
- package/dist/client/assets/{lane-roster-store-Ch9t6lb0.js → lane-roster-store-D-RSWjb-.js} +1 -1
- package/dist/client/assets/{layers-BOwyWodP.js → layers-C8PDiMul.js} +1 -1
- package/dist/client/assets/{layout-grid-B36Qsh0y.js → layout-grid-Cor2frzj.js} +1 -1
- package/dist/client/assets/left-Bn5X7x2o.js +2 -0
- package/dist/client/assets/left-BqS0fYX1.js +1 -0
- package/dist/client/assets/left-CTCeeeD3.js +1 -0
- package/dist/client/assets/left-DhtVPVux.js +1 -0
- package/dist/client/assets/left-K39b-Wvx.js +2 -0
- package/dist/client/assets/left-KGmueNPt.js +1 -0
- package/dist/client/assets/left-P_GOYB-s.js +1 -0
- package/dist/client/assets/left-advisor-B0N47De2.js +1 -0
- package/dist/client/assets/left-agents-CsSNc51Y.js +1 -0
- package/dist/client/assets/left-default-BlO5LP2T.js +1 -0
- package/dist/client/assets/left-lanes-C4PhaJE6.js +1 -0
- package/dist/client/assets/left-mission-BjTE5vPa.js +1 -0
- package/dist/client/assets/library-CkWNPHRp.js +1 -0
- package/dist/client/assets/{loader-circle-DNUsuPWz.js → loader-circle-OvccU82H.js} +1 -1
- package/dist/client/assets/{local-agents-I40PawYA.js → local-agents-BqnoxJrq.js} +1 -1
- package/dist/client/assets/log-in-7SnYqW5w.js +1 -0
- package/dist/client/assets/{machine-children-CdhNzDF0.js → machine-children-DxcqCLmd.js} +1 -1
- package/dist/client/assets/media-blobs-Bi8pxr1u.js +1 -0
- package/dist/client/assets/{mentions-Ck_Vjnyp.js → mentions-ByUvhS-v.js} +1 -1
- package/dist/client/assets/{mesh-ops-DSlvHp-D.js → mesh-ops-CiZ8xSAx.js} +1 -1
- package/dist/client/assets/{mesh-view-store-C1-mdP3P.js → mesh-view-store-DZvJC4KU.js} +1 -1
- package/dist/client/assets/{message-circle-cI5_A5mj.js → message-circle-CxRVKNE-.js} +1 -1
- package/dist/client/assets/message-markup-BQW5jdJw.js +15 -0
- package/dist/client/assets/message-markup-Zwo3t4cI.js +1 -0
- package/dist/client/assets/{message-square-CJW4WRlo.js → message-square-BxesYglW.js} +1 -1
- package/dist/client/assets/mission-control-model-BpJHDV5D.js +1 -0
- package/dist/client/assets/{mission-control-store-p_cboAm4.js → mission-control-store-elEEsIvb.js} +1 -1
- package/dist/client/assets/{mission-wall-DOuGOxQy.js → mission-wall-CAo4BKfa.js} +1 -1
- package/dist/client/assets/{monitor-C7_cHlkC.js → monitor-DTTYEb73.js} +1 -1
- package/dist/client/assets/{nav-destinations-CU_euC-Q.js → nav-destinations-uorRqFxf.js} +1 -1
- package/dist/client/assets/{observe-CtS0l3zu.js → observe-BJqERJVj.js} +1 -1
- package/dist/client/assets/{page-status-DwFR4wSw.js → page-status-BswZLqvA.js} +1 -1
- package/dist/client/assets/{panel-right-qP17MwMl.js → panel-right-Bv7sP_fc.js} +1 -1
- package/dist/client/assets/paperclip-BjcuP_Hx.js +1 -0
- package/dist/client/assets/{pause-B_hliKuR.js → pause-C2XTlkjs.js} +1 -1
- package/dist/client/assets/{persistent-state-BUsTTZFE.js → persistent-state-KRk_yb0q.js} +1 -1
- package/dist/client/assets/{pin-Oi4qHR6M.js → pin-C2mFOV1l.js} +1 -1
- package/dist/client/assets/{play-CVeRmqLH.js → play-FT6K3It1.js} +1 -1
- package/dist/client/assets/{plus-D5NLH_fM.js → plus-DFDDeGKu.js} +1 -1
- package/dist/client/assets/profile-DTmzN16I.js +1 -0
- package/dist/client/assets/{projects-inbox-CfwxCTdN.js → projects-inbox-C0FUCv_p.js} +1 -1
- package/dist/client/assets/projects-inbox-ColX6lpx.css +1 -0
- package/dist/client/assets/{provider-DwmCoSlc.js → provider-Dojd8quC.js} +1 -1
- package/dist/client/assets/{proxy-DgzP27W8.js → proxy-AJsmwA6h.js} +1 -1
- package/dist/client/assets/{radio-Cas2qg1D.js → radio-DRoOZsws.js} +1 -1
- package/dist/client/assets/{refresh-cw-IcD2lPoT.js → refresh-cw-BmVr7sCD.js} +1 -1
- package/dist/client/assets/resolve-panes-pbY1fCWi.js +1 -0
- package/dist/client/assets/resolve-sidebar-context-YWkZTq1t.js +1 -0
- package/dist/client/assets/right-49kO-6nD.js +1 -0
- package/dist/client/assets/right-APtItA8A.js +1 -0
- package/dist/client/assets/right-BJwhPqtn.js +1 -0
- package/dist/client/assets/right-BPqrf4ek.js +1 -0
- package/dist/client/assets/right-D7djOy6K.js +1 -0
- package/dist/client/assets/right-DKOUCRob.js +1 -0
- package/dist/client/assets/right-DMNrVzg7.js +1 -0
- package/dist/client/assets/{right-cjPTwPXS.js → right-DWPVB-nK.js} +1 -1
- package/dist/client/assets/right-DppeMCy4.js +1 -0
- package/dist/client/assets/right-GAL5Mw1v.js +1 -0
- package/dist/client/assets/{rocket-DAqYvu8I.js → rocket-CGl4RTV7.js} +1 -1
- package/dist/client/assets/router-DCtl8wqb.js +1 -0
- package/dist/client/assets/runtime-picker-DXu2bOTh.js +1 -0
- package/dist/client/assets/{scope-views-Dl3ml9OZ.js → scope-views-RUWwCVAr.js} +1 -1
- package/dist/client/assets/scout-voice-CZx60X6E.js +1 -0
- package/dist/client/assets/{scoutbot-markdown-DwvGQOWo.js → scoutbot-markdown-BKEBSbG0.js} +1 -1
- package/dist/client/assets/{scroll-text-B0tKI9Sg.js → scroll-text-DNjxhyO2.js} +1 -1
- package/dist/client/assets/{search-UsM-9-_W.js → search-DT42oyRW.js} +1 -1
- package/dist/client/assets/secondaryNavConfig-CS1svh6n.js +1 -0
- package/dist/client/assets/{selection-bridge-OTS2iFkt.js → selection-bridge-x3wFUjxj.js} +1 -1
- package/dist/client/assets/{send-horizontal-BlQsRK6C.js → send-horizontal-CH0-fbZE.js} +1 -1
- package/dist/client/assets/{send-to-agent-session-C1mgqdow.js → send-to-agent-session-DoKCDBJ4.js} +1 -1
- package/dist/client/assets/{server-DBlPW0Mp.js → server-QfsgMLk1.js} +1 -1
- package/dist/client/assets/{session-catalog-CnpZMB7C.js → session-catalog-CvSdPHPe.js} +1 -1
- package/dist/client/assets/session-recap-lanes-D-eVJnpY.js +1 -0
- package/dist/client/assets/session-recap-queue-41l2XVkI.js +1 -0
- package/dist/client/assets/{session-table-CGkfG5Yd.js → session-table-L-pns6Zl.js} +1 -1
- package/dist/client/assets/{sessions-view-Bge4XZ4I.js → sessions-view-Dc-QAa7O.js} +1 -1
- package/dist/client/assets/{settings-C69Zjrpq.js → settings-BVh7kldq.js} +1 -1
- package/dist/client/assets/{sliders-horizontal-6bzeod7c.js → sliders-horizontal-782VC_yy.js} +1 -1
- package/dist/client/assets/{sparkles-Cc5lPZRv.js → sparkles-BjHq_DNK.js} +1 -1
- package/dist/client/assets/{sse-A8AyLH0g.js → sse-BCPRocpq.js} +1 -1
- package/dist/client/assets/system-surfaces-redesign-q2BmCB7e.css +1 -0
- package/dist/client/assets/{tail-events-C4WdhVeK.js → tail-events-d0yAYxR0.js} +1 -1
- package/dist/client/assets/{terminal-DMZjX1es.js → terminal-hQKQygcf.js} +1 -1
- package/dist/client/assets/{terminal-relay-mO89dX-Y.js → terminal-relay-Bxs1hp-j.js} +1 -1
- package/dist/client/assets/{terminal-takeover-CZZsnPzj.js → terminal-takeover-Ay5C2c-M.js} +1 -1
- package/dist/client/assets/theme-vars-DNK0nn3k.js +1 -0
- package/dist/client/assets/triangle-alert-CHoRGdVO.js +1 -0
- package/dist/client/assets/{use-beside-D3cJpA5p.js → use-beside-DoRC1nt0.js} +1 -1
- package/dist/client/assets/{use-conversation-list-D5EnpVba.js → use-conversation-list-CY4JciOV.js} +1 -1
- package/dist/client/assets/{use-fleet-active-asks-D_QOmjg5.js → use-fleet-active-asks-CymmXWH4.js} +1 -1
- package/dist/client/assets/{use-mesh-node-state-3V3ADQ-G.js → use-mesh-node-state-BvaqtODo.js} +1 -1
- package/dist/client/assets/{use-mesh-ops-items-DI9GKWlF.js → use-mesh-ops-items-BSYaqH_0.js} +1 -1
- package/dist/client/assets/{use-reduced-motion-CiaZHMnk.js → use-reduced-motion-3gMYZNIp.js} +1 -1
- package/dist/client/assets/{use-scout-dev-flags-CkdAHlDR.js → use-scout-dev-flags-DS_pYYQd.js} +1 -1
- package/dist/client/assets/{useAgentHoverCard-A3QGXqIy.js → useAgentHoverCard-BANmpjMh.js} +1 -1
- package/dist/client/assets/useContentSecondaryNav-C6OBu-3_.js +1 -0
- package/dist/client/assets/{useEmbedHeadline-atkQVfGw.js → useEmbedHeadline-D6pJRxUg.js} +1 -1
- package/dist/client/assets/usePersistentState-B8lP7TRb.js +1 -0
- package/dist/client/assets/{usePierreRuntime-DTvcwISe.js → usePierreRuntime-BAQdiN0L.js} +1 -1
- package/dist/client/assets/useSidebarCollapse-OL_8J5cL.js +1 -0
- package/dist/client/assets/{users-RLK3P5U4.js → users-BUjx36gx.js} +1 -1
- package/dist/client/assets/voice-paths-CJUuBPh3.css +1 -0
- package/dist/client/assets/voice-turn-DftA0iIb.css +1 -0
- package/dist/client/assets/voice-turn-ledger-BMZxlSjg.js +1 -0
- package/dist/client/assets/{wrench-B4maQJai.js → wrench-DR0i5BU7.js} +1 -1
- package/dist/client/assets/{x-rlMdRqJF.js → x-DAehov0E.js} +1 -1
- package/dist/client/assets/{xterm-B1zHHOLQ.js → xterm-BXQiLVnI.js} +1 -1
- package/dist/client/assets/{zap-B4X0OrEw.js → zap-CEjZNZbI.js} +1 -1
- package/dist/client/crew/sheets/eye-plate-v1/look-down-left.webp +0 -0
- package/dist/client/crew/sheets/eye-plate-v1/look-down-right.webp +0 -0
- package/dist/client/crew/sheets/eye-plate-v1/look-down.webp +0 -0
- package/dist/client/crew/sheets/eye-plate-v1/look-up-left.webp +0 -0
- package/dist/client/crew/sheets/eye-plate-v1/look-up-right.webp +0 -0
- package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
- package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
- package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-down-left.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-down-right.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-down.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-up-left.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-up-right.webp +0 -0
- package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
- package/dist/client/index.html +2 -2
- package/dist/drizzle/0020_message_reactions.sql +11 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/main.mjs +542 -150
- package/dist/node/main.mjs +131 -17
- package/dist/pairing-runtime-controller.mjs +375 -78
- package/dist/runtime/base-daemon.mjs +98 -5
- package/dist/runtime/broker-daemon.mjs +1879 -1198
- package/dist/runtime/broker-process-manager.mjs +96 -3
- package/dist/runtime/mesh-discover.mjs +96 -3
- package/dist/scout-control-plane-web.mjs +4817 -1616
- package/dist/update-helper.mjs +211 -39
- package/package.json +5 -3
- package/server.json +31 -0
- package/dist/client/assets/ActivityScreen-CcDdQTBK.js +0 -1
- package/dist/client/assets/AgentAdventures-BxrYq_2v.js +0 -1
- package/dist/client/assets/AgentAvatar-NZOqcsB2.js +0 -1
- package/dist/client/assets/AgentConfigurationScreen-BhD1PEAM.js +0 -1
- package/dist/client/assets/AgentDefinitionsWorkspace-BqS6MXqF.js +0 -1
- package/dist/client/assets/AgentFloorView-A0dDRlRV.js +0 -1
- package/dist/client/assets/AgentInfoScreen-DuaN0sgE.js +0 -1
- package/dist/client/assets/AgentLanesEmbedScreen-CeNiaZ9_.js +0 -1
- package/dist/client/assets/AgentLanesView-WZhEDBFE.js +0 -2
- package/dist/client/assets/AgentMasterScreen-DUDUTAnU.js +0 -1
- package/dist/client/assets/AgentSessions-CO1WGa8Z.js +0 -6
- package/dist/client/assets/AgentsConsole-BQOWkj35.js +0 -1
- package/dist/client/assets/AgentsScreen-BMNAj1PH.js +0 -1
- package/dist/client/assets/AgentsSubnav-CeHhuzyM.js +0 -1
- package/dist/client/assets/BriefingDetailScreen-yZG8_m4h.js +0 -1
- package/dist/client/assets/BrokerScreen-CT37VQiL.js +0 -8
- package/dist/client/assets/ChannelComposer-BVItWlEz.js +0 -1
- package/dist/client/assets/ChannelSidebar-B-2spawY.js +0 -1
- package/dist/client/assets/ChatBits-CLJ71hTY.js +0 -1
- package/dist/client/assets/ChatRightPanel-pKQtkAgl.js +0 -1
- package/dist/client/assets/ChatSpaceSurface-NrLwdPkE.js +0 -1
- package/dist/client/assets/ChatSpaceTheme-BPMgPdVK.css +0 -1
- package/dist/client/assets/ChatSpaceTheme-D37Jk7bl.js +0 -1
- package/dist/client/assets/ConversationComposer-DNcn5U6D.js +0 -1
- package/dist/client/assets/ConversationFeedRows-RnYSa7Io.js +0 -1
- package/dist/client/assets/ConversationHeader-Y9TEJxP_.js +0 -1
- package/dist/client/assets/ConversationScreen-Brfas2y0.css +0 -1
- package/dist/client/assets/ConversationScreen-tpj4cqWs.js +0 -2
- package/dist/client/assets/ConversationStatus-Cv-7hErW.js +0 -1
- package/dist/client/assets/CrewAvatar-zgzC3cbU.js +0 -1
- package/dist/client/assets/CrewWorkspaces-K2jcyLec.js +0 -1
- package/dist/client/assets/FlightObserveScreen-CvzhzuWc.js +0 -1
- package/dist/client/assets/FloorResourcesSheet-_Iy5UqgY.js +0 -1
- package/dist/client/assets/FloorTacticalHUD-BhyOqlL5.js +0 -1
- package/dist/client/assets/HarnessMark-DSvM_H7H.js +0 -1
- package/dist/client/assets/HarnessesScreen-DyjqbZ4k.js +0 -1
- package/dist/client/assets/InviteLandingScreen-xZQ2na1z.js +0 -1
- package/dist/client/assets/InviteSheet--5Zjct25.js +0 -1
- package/dist/client/assets/KnowledgeSearchScreen-BPqAjHnH.js +0 -1
- package/dist/client/assets/LaneTraceDetailSheet-jl4XQmEx.js +0 -1
- package/dist/client/assets/MeshScreen-BW1dMFWF.js +0 -1
- package/dist/client/assets/MessagesScreen-CtNMfIvC.js +0 -1
- package/dist/client/assets/MissionControlView-BjPOViGY.js +0 -1
- package/dist/client/assets/MissionLeftAgentRow-Dms0DBjO.js +0 -1
- package/dist/client/assets/NativeAreaScreen-BQSTo8As.js +0 -1
- package/dist/client/assets/NativeAreaScreen-Brix6xDB.js +0 -1
- package/dist/client/assets/NativeAreaScreen-D7HyQNlM.js +0 -1
- package/dist/client/assets/NewChatComposer-BEXS8vV6.js +0 -19
- package/dist/client/assets/ObserveEmbedScreen-Dh30EjAQ.js +0 -2
- package/dist/client/assets/OpenScoutAppShell-D9pgw36i.js +0 -31
- package/dist/client/assets/OpsAgentsView-D3rM0udq.js +0 -1
- package/dist/client/assets/OpsScreen-DySeNQ1V.js +0 -1
- package/dist/client/assets/OpsSubnav-C9E0r3GZ.js +0 -1
- package/dist/client/assets/ProjectAgentProfile-FUav75j2.js +0 -1
- package/dist/client/assets/ProjectAgentProfileHero-BLK0EwMg.js +0 -1
- package/dist/client/assets/ProjectsInbox-DfCXReZK.js +0 -2
- package/dist/client/assets/ProjectsRail-CELVubfJ.js +0 -1
- package/dist/client/assets/ProjectsScreen-DMw4TLKy.js +0 -1
- package/dist/client/assets/ProjectsThreadAside-D1Sh4fnX.js +0 -1
- package/dist/client/assets/Provider-CNZluAZb.js +0 -5
- package/dist/client/assets/RailToggle-BwmY70B8.js +0 -1
- package/dist/client/assets/RawSessionsTable-6OVJq0JZ.js +0 -1
- package/dist/client/assets/RealtimeVoiceScreen-D41TYY0x.js +0 -9
- package/dist/client/assets/RepoDiffViewerLazy-BpMR7tlx.js +0 -2
- package/dist/client/assets/SessionObserveEvidence-CS1aQBpQ.js +0 -1
- package/dist/client/assets/SessionRefScreen-DURV0MpF.js +0 -1
- package/dist/client/assets/SessionsScreen-D71ZR-8t.js +0 -1
- package/dist/client/assets/SettingsDrawer-Nz98oBVl.js +0 -3
- package/dist/client/assets/SettingsScreen-CYBHal6y.js +0 -1
- package/dist/client/assets/SharedWorkFloor-BCmdeb3Q.css +0 -1
- package/dist/client/assets/SharedWorkFloor-C0xxW4SN.js +0 -2
- package/dist/client/assets/SpaceSwitcher-BfeIf-ad.js +0 -1
- package/dist/client/assets/Terminal-jIqnIZZ6.js +0 -4
- package/dist/client/assets/TerminalEmbedScreen-3XsjuySR.js +0 -1
- package/dist/client/assets/WorkDetailScreen-Bcf_yHhU.js +0 -5
- package/dist/client/assets/WorldActorTalk-CKerDikx.js +0 -1
- package/dist/client/assets/WorldMinimap-DOptgrc4.js +0 -1
- package/dist/client/assets/agent-autocomplete-C7xwIcwd.css +0 -1
- package/dist/client/assets/agent-autocomplete-_u9o5EZu.js +0 -2
- package/dist/client/assets/agents-screen-BMu6PpRY.css +0 -1
- package/dist/client/assets/at-sign-DM7xeppo.js +0 -1
- package/dist/client/assets/chat-api-BPVC0asu.js +0 -1
- package/dist/client/assets/chat-space-model-B6Jg2CY4.js +0 -4
- package/dist/client/assets/content-0AXa0klu.js +0 -1
- package/dist/client/assets/content-BEyJ19Lx.js +0 -1
- package/dist/client/assets/content-BN5weWKW.js +0 -1
- package/dist/client/assets/content-BNokkm7C.js +0 -1
- package/dist/client/assets/content-BV4PUM9q.js +0 -1
- package/dist/client/assets/content-BxUPlcx5.js +0 -1
- package/dist/client/assets/content-CIC5sku8.js +0 -1
- package/dist/client/assets/content-CdkTyxqk.js +0 -1
- package/dist/client/assets/content-CnhhSCZq.js +0 -1
- package/dist/client/assets/content-DY3F9Vfr.js +0 -1
- package/dist/client/assets/content-DrKBYpcb.js +0 -1
- package/dist/client/assets/content-LSStQYj5.js +0 -1
- package/dist/client/assets/content-YvU-D0hF.js +0 -1
- package/dist/client/assets/content-oKQMyVnH.js +0 -1
- package/dist/client/assets/conversation-model-m8HhzroS.js +0 -1
- package/dist/client/assets/conversation-motion-features-D9PxLoDt.js +0 -1
- package/dist/client/assets/conversations-Cbg9h_Af.js +0 -1
- package/dist/client/assets/ctx-panel-F05jXK4Q.css +0 -1
- package/dist/client/assets/discover-DlwbftpC.js +0 -2
- package/dist/client/assets/embed-entry-c0lwtjBG.js +0 -2
- package/dist/client/assets/home-moving-signal-BIHUGNfI.js +0 -1
- package/dist/client/assets/home-now-card-CaLgZze2.js +0 -1
- package/dist/client/assets/hooks-DaUOREpP.js +0 -2
- package/dist/client/assets/index-CGbs0SBm.css +0 -1
- package/dist/client/assets/index-CbqBwfIW.js +0 -1
- package/dist/client/assets/index-CyPMl7Up.js +0 -1
- package/dist/client/assets/index-PQpJveGO.js +0 -1
- package/dist/client/assets/left-0vBrvrBG.js +0 -2
- package/dist/client/assets/left-C6SyaqlJ.js +0 -1
- package/dist/client/assets/left-CTuXysZR.js +0 -2
- package/dist/client/assets/left-Cc6s4DT2.js +0 -1
- package/dist/client/assets/left-DF5caiyh.js +0 -1
- package/dist/client/assets/left-DgT4tWCx.js +0 -1
- package/dist/client/assets/left-R0wppTTr.js +0 -1
- package/dist/client/assets/left-advisor-C-kt8V28.js +0 -1
- package/dist/client/assets/left-agents-thnBO156.js +0 -1
- package/dist/client/assets/left-default-CT42fnpF.js +0 -1
- package/dist/client/assets/left-lanes-CSmZgciK.js +0 -1
- package/dist/client/assets/left-mission-C86x6i9h.js +0 -1
- package/dist/client/assets/library-DdhYL_9v.js +0 -1
- package/dist/client/assets/message-markup-6Tgo4qFJ.js +0 -15
- package/dist/client/assets/mission-control-model-C30vU1Fe.js +0 -1
- package/dist/client/assets/profile-BegEUmB7.js +0 -1
- package/dist/client/assets/projects-inbox-CKPLZN8s.css +0 -1
- package/dist/client/assets/resolve-panes-pfZTezKo.js +0 -1
- package/dist/client/assets/resolve-sidebar-context-D5ksvrb_.js +0 -1
- package/dist/client/assets/right-BDaCJ0CF.js +0 -1
- package/dist/client/assets/right-BP6lXRFS.js +0 -1
- package/dist/client/assets/right-Cb1VCrdj.js +0 -1
- package/dist/client/assets/right-CeFaxfBo.js +0 -1
- package/dist/client/assets/right-Ck2SrYCj.js +0 -1
- package/dist/client/assets/right-D-uv5YfF.js +0 -1
- package/dist/client/assets/right-DJMSICky.js +0 -1
- package/dist/client/assets/right-Dnljs8ah.js +0 -1
- package/dist/client/assets/right-SdCSF8PP.js +0 -1
- package/dist/client/assets/router-C-MF5-mb.js +0 -1
- package/dist/client/assets/runtime-picker-C_AVYF63.js +0 -1
- package/dist/client/assets/scout-voice-CqAyfblr.js +0 -1
- package/dist/client/assets/secondaryNavConfig-DzNHk6IH.js +0 -1
- package/dist/client/assets/system-surfaces-redesign-DKFg4GB5.css +0 -1
- package/dist/client/assets/useContentSecondaryNav-DrL_nkCZ.js +0 -1
- package/dist/client/assets/usePersistentState-Y8XwSTg-.js +0 -1
- package/dist/drizzle/meta/0000_snapshot.json +0 -4575
- package/dist/drizzle/meta/0001_snapshot.json +0 -4624
- package/dist/drizzle/meta/0002_snapshot.json +0 -4631
- package/dist/drizzle/meta/0003_snapshot.json +0 -4952
- package/dist/drizzle/meta/0004_snapshot.json +0 -5235
- package/dist/drizzle/meta/0005_snapshot.json +0 -5599
- package/dist/drizzle/meta/0006_snapshot.json +0 -5606
- package/dist/drizzle/meta/0007_snapshot.json +0 -5767
- package/dist/drizzle/meta/0008_snapshot.json +0 -5774
- package/dist/drizzle/meta/0009_snapshot.json +0 -6262
- package/dist/drizzle/meta/0010_snapshot.json +0 -6286
- package/dist/drizzle/meta/0011_snapshot.json +0 -6337
- package/dist/drizzle/meta/0012_snapshot.json +0 -6458
- package/dist/drizzle/meta/0013_snapshot.json +0 -6465
- package/dist/drizzle/meta/0014_snapshot.json +0 -6503
- package/dist/drizzle/meta/0015_snapshot.json +0 -6596
- package/dist/drizzle/meta/0016_snapshot.json +0 -6611
- package/dist/drizzle/meta/0017_snapshot.json +0 -6785
- package/dist/drizzle/meta/0018_snapshot.json +0 -6804
- package/dist/drizzle/meta/0019_snapshot.json +0 -6804
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{a8 as Li,k as hy,r as s,j as p,F as Si}from"./index-DReVb7jZ.js";import{u as Gt}from"./usePersistentState-Y8XwSTg-.js";import{C as O5}from"./Canvas-CRP0KjKb.js";import{r as pt}from"./index-CbqBwfIW.js";import{u as $i,a as R5,H as M5}from"./TerminalRelay--qOBwnbR.js";import{b as P5,a as Pr,F as T5}from"./provider-DwmCoSlc.js";import{av as A5,u as gy,U as I5,d as by,S as N5,p as vy,q as D5,t as V5,v as F5}from"./router-C-MF5-mb.js";import{u as yy,i as wy,e as B5,f as H5,c as W5,d as z5}from"./keyboard-nav-CJXPaHXj.js";import{i as Gs,u as xy}from"./use-scout-dev-flags-CkdAHlDR.js";import{X as Fd}from"./x-rlMdRqJF.js";import{F as _5}from"./flag-DAFE2wZ5.js";import{s as U5,S as K5,d as G5}from"./scope-views-Dl3ml9OZ.js";import{F as Cy,A as Y5,u as Zt,B as X5}from"./Provider-CNZluAZb.js";import{a as Au}from"./api-DSqpVKC7.js";import"./index-BWHgHrtv.js";import"./AgentDetailCard-MIEBKw_S.js";/* empty css *//* empty css */import"./NewChatComposer-BEXS8vV6.js";import"./CrewAvatar-zgzC3cbU.js";/* empty css */import"./BackToPicker-CkBhGRlD.js";import"./AgentLiveActions-6Kfr1uOT.js";import"./ObservedTopologyPanel-DF6tRZL_.js";/* empty css */import"./secondaryNavConfig-DzNHk6IH.js";/* empty css */import"./runtime-picker-C_AVYF63.js";import"./ConversationScreen-tpj4cqWs.js";/* empty css */import"./CommsFlowGraph-voDD9M5R.js";import"./CommsCanvas-DdNAwjGW.js";/* empty css */import"./SessionObserve-B64YsYhy.js";/* empty css *//* empty css *//* empty css */import"./projects-inbox-CfwxCTdN.js";import"./ProjectsInbox-DfCXReZK.js";/* empty css */import"./left-0vBrvrBG.js";/* empty css *//* empty css */import"./cache-DGBo3vIf.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./left-CTuXysZR.js";import"./RailRow-DUPqXMZh.js";import"./content-DrKBYpcb.js";import{u as q5}from"./mesh-view-store-C1-mdP3P.js";import"./NodeMenu-CcOeFRCB.js";import"./left-Cc6s4DT2.js";/* empty css */import"./mesh-ops-DSlvHp-D.js";import"./left-mission-C86x6i9h.js";import"./mission-control-store-p_cboAm4.js";/* empty css *//* empty css *//* empty css */import"./CrewSprite-Dp9KBBGY.js";/* empty css *//* empty css *//* empty css */import"./SharedWorkFloor-C0xxW4SN.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./SlidePanel-BMpkXai_.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./TailView-BofjmUMJ.js";import"./RepoDiffViewerLazy-BpMR7tlx.js";/* empty css *//* empty css *//* empty css */import"./CastPicker-ZPomvOf-.js";import"./SettingsDrawer-Nz98oBVl.js";import"./left-DF5caiyh.js";/* empty css */import{F as Z5}from"./DocumentFocusViewer-DlMiEALb.js";import{b as J5,c as Q5,a as ek}from"./agent-autocomplete-_u9o5EZu.js";import"./credentials-OeoF-VKJ.js";import{N as xo,f as tk,g as nk,h as js,i as rk,j as ok,k as sk}from"./hooks-DaUOREpP.js";import{G as ik,g as ak}from"./go-shortcuts-KQy-ZOpV.js";import{o as ck,i as lk}from"./surface-activity-B1rgWB1i.js";import{L as uk}from"./loader-circle-DNUsuPWz.js";import{P as dk}from"./play-CVeRmqLH.js";import{f as Nn,P as Ys,g as ky,h as Ey,s as fk,i as pk}from"./nav-destinations-CU_euC-Q.js";import{P as mk}from"./plus-D5NLH_fM.js";import{c as ji}from"./createLucideIcon-ChvMq-zl.js";import{R as Os}from"./RailToggle-BwmY70B8.js";import{resolveSidebarContext as hk}from"./resolve-sidebar-context-D5ksvrb_.js";import{a as Bd}from"./colors-CFlbwC25.js";import{n as gk,i as Ly}from"./agent-state-DDhnFEEP.js";import{b as Sy,m as bk,d as vk}from"./machine-scope-DJt9RZ2w.js";import{a as yk}from"./machine-children-CdhNzDF0.js";import{u as wk}from"./sse-A8AyLH0g.js";import{f as xk,a as Ck,d as kk}from"./terminal-sessions-3RfJpen8.js";import{o as Cp}from"./openAgent-Dbv5wfuL.js";import{A as $y}from"./AgentAvatar-NZOqcsB2.js";import{C as Hn,a as Ek,b as rn,c as Hd,d as Lk}from"./ChatCollapsedStrip-Co0NmqOO.js";import{U as jy,C as Sk}from"./users-RLK3P5U4.js";import{L as $k}from"./layout-grid-B36Qsh0y.js";import{A as Oy}from"./activity-BJqFrZyB.js";import{OpsSubnav as jk}from"./OpsSubnav-C9E0r3GZ.js";import{A as kp}from"./arrow-left-DFfKAq0d.js";import{A as Ok}from"./arrow-right-DmAWnyAH.js";import{S as Ry}from"./search-UsM-9-_W.js";import{M as Ep}from"./message-square-CJW4WRlo.js";import{C as Rk}from"./chevron-down-CDzRQQGl.js";import{C as Mk}from"./chevron-right-DKGTLiqc.js";import{P as Pk}from"./panel-right-qP17MwMl.js";import{P as Tk}from"./pin-Oi4qHR6M.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./time-Dhsh_2EG.js";import"./index-kkXUq-zf.js";import"./TextDocumentSurface-BK6Qy41F.js";import"./folder-B_S7gBVr.js";import"./file-text-DP6txVW-.js";import"./chevron-up-DX7R6KY2.js";import"./code-xml-Cmadr3pQ.js";import"./scout-voice-CqAyfblr.js";import"./fx-z37u1o2z.js";import"./chunk-HRAB3GC3-Dvk_QpRq.js";import"./conversation-model-m8HhzroS.js";import"./conversations-Cbg9h_Af.js";import"./HarnessMark-DSvM_H7H.js";import"./NewChatOrigin-C8ROO4ps.js";import"./terminal-takeover-CZZsnPzj.js";import"./openContent-C6XO6kr5.js";import"./eye-CsGfEVR6.js";import"./terminal-DMZjX1es.js";import"./voice-levels-Dcr3jglk.js";import"./ConversationComposer-DNcn5U6D.js";import"./zap-B4X0OrEw.js";import"./message-markup-6Tgo4qFJ.js";import"./mentions-Ck_Vjnyp.js";import"./message-visibility-DwxgcgYK.js";import"./operator-attention-DBaRg5ep.js";import"./sessionRead-CvFz2RHv.js";import"./clipboard-e3fSpeo7.js";import"./types-B0PlfpKc.js";import"./ConversationHeader-Y9TEJxP_.js";import"./AstronautSuit-D67fIBdR.js";import"./SpriteAvatar-aHeF4ZQZ.js";import"./use-beside-D3cJpA5p.js";import"./use-conversation-list-D5EnpVba.js";import"./agent-master-model-C-KdOFDK.js";import"./comms-deck-CBhsXnY-.js";import"./ConversationFeedRows-RnYSa7Io.js";import"./ConversationPanels-6pprBpmq.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./use-reduced-motion-CiaZHMnk.js";import"./proxy-DgzP27W8.js";import"./message-circle-cI5_A5mj.js";import"./tail-events-C4WdhVeK.js";import"./ConversationStatus-Cv-7hErW.js";import"./check-g7D7-c1J.js";import"./sparkles-Cc5lPZRv.js";import"./comms-gesture-_aGFo6g3.js";import"./CommsFlowMap-C33sgD48.js";import"./CommsSelection-BL8aYD7z.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-Czggx8oM.js";import"./LaneToolHoverCard-D2cnTeUd.js";import"./lane-observe-CteDwdD-.js";import"./lane-ask-display-BTVSakyo.js";import"./ObserveTextFlow-CC5mnngm.js";import"./SessionObserveEvidence-CS1aQBpQ.js";import"./wrench-B4maQJai.js";import"./external-link-BVccgH0n.js";import"./ui-LM8pS8qE.js";import"./SessionRefScreen-DURV0MpF.js";import"./session-ref-lookup-state-SATH_jAP.js";import"./CrewWorkspaces-K2jcyLec.js";import"./AddProjectForm-CHNJ4NnS.js";import"./agent-specialization-BplZUa_0.js";import"./project-overview-helpers-BQTc_Ous.js";import"./useEmbedHeadline-atkQVfGw.js";import"./api-BQYTwoz6.js";import"./arrow-up-right-B0aLKiyF.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-fleet-active-asks-D_QOmjg5.js";import"./sessions-view-Bge4XZ4I.js";import"./HomeHero-pIZtE1cC.js";import"./refresh-cw-IcD2lPoT.js";import"./observe-CtS0l3zu.js";import"./persistent-state-BUsTTZFE.js";import"./agent-lanes-model-DMAdqCmK.js";import"./context-budget-8qFKqM-j.js";import"./home-moving-signal-BIHUGNfI.js";import"./home-live-action-BkqGLVRY.js";import"./cpu-Q6nrHFTN.js";import"./git-branch-DcUCsWdJ.js";import"./file-code-corner-Be6da5l3.js";import"./use-mesh-node-state-3V3ADQ-G.js";import"./MissionLeftAgentRow-Dms0DBjO.js";import"./page-status-DwFR4wSw.js";import"./WorldMinimap-DOptgrc4.js";import"./WorldSky-D-RJzSa6.js";import"./WorldActorTalk-CKerDikx.js";import"./send-to-agent-session-C1mgqdow.js";import"./FloorExchangePanel-CjHSDXad.js";import"./floor-character-name-CqJPOlXb.js";import"./floor-message-passes-CO3Ix_wR.js";import"./floor-preview-text-HrORUJ7D.js";import"./shared-work-artifacts-DfNl9KTo.js";import"./agent-lane-detail-Ti3trpfH.js";import"./floor-memory-YMM8AlLY.js";import"./CharacterFamilyPreview-ckVkecDO.js";import"./RenderedWorkerSprite-C8fxndAh.js";import"./FloorMessagePasses-BG4ebnX5.js";import"./WorkRunView-_mhG_FR2.js";import"./floor-context-model-rWKqaKmV.js";import"./agent-floor-actor-DW8zLht0.js";import"./SharedFloorCharacter-V04kD5T9.js";import"./WorldCharacter-BRrj3MQN.js";import"./RiggedWorkerCharacter-CJMWlvV-.js";import"./VoicePermissionsPanel-D35fOnQj.js";import"./monitor-C7_cHlkC.js";import"./copy-BGOC1tJB.js";import"./terminal-relay-mO89dX-Y.js";import"./session-table-CGkfG5Yd.js";import"./clock-CQb4FeMf.js";import"./layers-BOwyWodP.js";import"./radio-Cas2qg1D.js";import"./bot-BhAVbcCA.js";import"./server-DBlPW0Mp.js";import"./settings-C69Zjrpq.js";import"./compass-CvzkzkIh.js";import"./scroll-text-B0tKI9Sg.js";import"./left-C6SyaqlJ.js";import"./ProjectsRail-CELVubfJ.js";import"./left-DgT4tWCx.js";import"./use-mesh-ops-items-DI9GKWlF.js";import"./left-R0wppTTr.js";import"./left-agents-thnBO156.js";import"./left-default-CT42fnpF.js";import"./left-lanes-CSmZgciK.js";import"./lane-roster-store-Ch9t6lb0.js";import"./left-advisor-C-kt8V28.js";import"./gauge-DQCGlE3o.js";import"./MeshCanvasMinimap-ClVolr4-.js";import"./SecondaryNav-Bs-_VwTC.js";const Ak=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ik=ji("bell",Ak);const Nk=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Dk=ji("list-todo",Nk);const Vk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]],Fk=ji("panel-bottom",Vk);const Bk=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],Hk=ji("pin-off",Bk);var pa={exports:{}},ma={};var Lp;function Wk(){if(Lp)return ma;Lp=1;var e=Li();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function c(f,m){var h=m(),g=r({inst:{value:h,getSnapshot:m}}),v=g[0].inst,w=g[1];return i(function(){v.value=h,v.getSnapshot=m,u(v)&&w({inst:v})},[f,h,m]),o(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),a(h),h}function u(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function l(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:c;return ma.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ma}var Sp;function My(){return Sp||(Sp=1,pa.exports=Wk()),pa.exports}var zk=My();function _k(e="h",t=12){const n=globalThis.crypto;if(n&&typeof n.randomUUID=="function"){const o=n.randomUUID().replace(/-/g,"").slice(0,t);return e?`${e}_${o}`:o}if(n&&typeof n.getRandomValues=="function"){const o=new Uint8Array(Math.ceil(t/2));n.getRandomValues(o);const i=Array.from(o,a=>a.toString(16).padStart(2,"0")).join("").slice(0,t);return e?`${e}_${i}`:i}const r=Math.random().toString(36).slice(2,2+t);return e?`${e}_${r}`:r}const Uk=200,Kk=()=>Date.now(),Gk=()=>_k("h",12),Yk=e=>e instanceof Error?{name:e.name,message:e.message}:{message:String(e)},Xk=()=>{const e=globalThis;return e.H_OBSERVABILITY===!0||e.H_DEBUG===!0};class qk{sinks=new Map;get size(){return this.sinks.size}add(t,n={}){const r=n.kinds?new Set(n.kinds):null;return this.sinks.set(t,{kinds:r}),()=>{this.sinks.delete(t)}}emit(t){for(const[n,r]of this.sinks)if(!(r.kinds&&!r.kinds.has(t.kind)))try{n(t)}catch{}}}class Zk{constructor(t){this.owner=t}owner;log(t,n,r={}){const o={id:this.owner.createId(),kind:"log",timestamp:this.owner.now(),level:t,message:n,category:r.category,data:r.data};return this.owner.emit(o),o}debug(t,n){return this.log("debug",t,n)}info(t,n){return this.log("info",t,n)}warn(t,n){return this.log("warn",t,n)}error(t,n){return this.log("error",t,n)}}class Jk{constructor(t){this.owner=t}owner;counter(t,n=1,r={}){return this.record("counter",t,n,r)}gauge(t,n,r={}){return this.record("gauge",t,n,r)}timing(t,n,r={}){return this.record("timing",t,n,{...r,unit:r.unit??"ms"})}record(t,n,r,o){const i={id:this.owner.createId(),kind:"metric",timestamp:this.owner.now(),metricType:t,name:n,value:r,category:o.category,unit:o.unit,tags:o.tags,data:o.data};return this.owner.emit(i),i}}class Qk{constructor(t,n){this.owner=t,this.event=n,this.owner.emit({...n})}owner;event;ended=!1;end(t){if(this.ended)return this.event;const n=this.owner.now();return this.ended=!0,this.event.endTime=n,this.event.durationMs=Math.max(0,n-this.event.startTime),this.event.status="ok",t&&(this.event.data={...this.event.data,...t}),this.owner.emit({...this.event}),this.event}error(t,n){if(this.ended)return this.event;const r=this.owner.now();return this.ended=!0,this.event.endTime=r,this.event.durationMs=Math.max(0,r-this.event.startTime),this.event.status="error",this.event.error=Yk(t),n&&(this.event.data={...this.event.data,...n}),this.owner.emit({...this.event}),this.event}}class eE{constructor(t){this.owner=t}owner;start(t,n={}){const r=this.owner.createId(),o=this.owner.now(),i={id:r,kind:"span",timestamp:o,name:t,traceId:n.traceId??r,parentId:n.parentId,startTime:o,status:"active",category:n.category,data:n.data};return new Qk(this.owner,i)}}class Wd{logger=new Zk(this);metrics=new Jk(this);trace=new eE(this);sinks=new qk;buffer=[];maxBufferSize;enabled;nowFn;createIdFn;constructor(t={}){this.enabled=t.enabled??!0,this.maxBufferSize=Math.max(0,t.maxBufferSize??Uk),this.nowFn=t.now??Kk,this.createIdFn=t.createId??Gk}static global(t={}){return new Wd({...t,enabled:t.enabled??Xk()})}get isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}subscribe(t,n={}){const r=this.sinks.add(t,n);if(n.replay)for(const o of this.buffer)n.kinds&&!n.kinds.includes(o.kind)||t(o);return r}flush(){const t=this.buffer.slice();return this.buffer.length=0,t}snapshot(){return this.buffer.slice()}emit(t){return this.enabled&&(this.remember(t),this.sinks.size>0&&this.sinks.emit(t)),t}now(){return this.nowFn()}createId(){return this.createIdFn()}remember(t){this.maxBufferSize!==0&&(this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.splice(0,this.buffer.length-this.maxBufferSize))}}const Dt=Wd.global(),Tr={panels:{statusBar:"bg-card/95 backdrop-blur-xl border-t border-[var(--hud-chrome-border-subtle)] shadow-[var(--hud-shadow-bar)] fixed bottom-0 left-0 right-0 z-[60]"},zIndex:{navigationStack:50,drawer:70},layout:{navHeight:48,statusBarHeight:28}},tE=Tr.panels,B=hy.createContext({});var nE=Object.defineProperty,$p=Object.getOwnPropertySymbols,rE=Object.prototype.hasOwnProperty,oE=Object.prototype.propertyIsEnumerable,jp=(e,t,n)=>t in e?nE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ha=(e,t)=>{for(var n in t||(t={}))rE.call(t,n)&&jp(e,n,t[n]);if($p)for(var n of $p(t))oE.call(t,n)&&jp(e,n,t[n]);return e};const sE=(e,t)=>{const n=s.useContext(B),r=ha(ha({},n),e);return s.createElement("svg",ha({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 12H6L9 3L15 21L18 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},iE=s.forwardRef(sE);var aE=iE,cE=Object.defineProperty,Op=Object.getOwnPropertySymbols,lE=Object.prototype.hasOwnProperty,uE=Object.prototype.propertyIsEnumerable,Rp=(e,t,n)=>t in e?cE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ga=(e,t)=>{for(var n in t||(t={}))lE.call(t,n)&&Rp(e,n,t[n]);if(Op)for(var n of Op(t))uE.call(t,n)&&Rp(e,n,t[n]);return e};const dE=(e,t)=>{const n=s.useContext(B),r=ga(ga({},n),e);return s.createElement("svg",ga({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17.5 8C17.5 8 19 9.5 19 12C19 14.5 17.5 16 17.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5 5C20.5 5 23 7.5 23 12C23 16.5 20.5 19 20.5 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 8C6.5 8 5 9.5 5 12C5 14.5 6.5 16 6.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 5C3.5 5 1 7.5 1 12C1 16.5 3.5 19 3.5 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},fE=s.forwardRef(dE);var pE=fE,mE=Object.defineProperty,Mp=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,gE=Object.prototype.propertyIsEnumerable,Pp=(e,t,n)=>t in e?mE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ba=(e,t)=>{for(var n in t||(t={}))hE.call(t,n)&&Pp(e,n,t[n]);if(Mp)for(var n of Mp(t))gE.call(t,n)&&Pp(e,n,t[n]);return e};const bE=(e,t)=>{const n=s.useContext(B),r=ba(ba({},n),e);return s.createElement("svg",ba({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 19V5C2 3.89543 2.89543 3 4 3H20C21.1046 3 22 3.89543 22 5V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19Z",stroke:"currentColor"}),s.createElement("path",{d:"M2 7L22 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5 5.01L5.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 5.01L8.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11 5.01L11.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},vE=s.forwardRef(bE);var yE=vE,wE=Object.defineProperty,Tp=Object.getOwnPropertySymbols,xE=Object.prototype.hasOwnProperty,CE=Object.prototype.propertyIsEnumerable,Ap=(e,t,n)=>t in e?wE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,va=(e,t)=>{for(var n in t||(t={}))xE.call(t,n)&&Ap(e,n,t[n]);if(Tp)for(var n of Tp(t))CE.call(t,n)&&Ap(e,n,t[n]);return e};const kE=(e,t)=>{const n=s.useContext(B),r=va(va({},n),e);return s.createElement("svg",va({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},EE=s.forwardRef(kE);var LE=EE,SE=Object.defineProperty,Ip=Object.getOwnPropertySymbols,$E=Object.prototype.hasOwnProperty,jE=Object.prototype.propertyIsEnumerable,Np=(e,t,n)=>t in e?SE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ya=(e,t)=>{for(var n in t||(t={}))$E.call(t,n)&&Np(e,n,t[n]);if(Ip)for(var n of Ip(t))jE.call(t,n)&&Np(e,n,t[n]);return e};const OE=(e,t)=>{const n=s.useContext(B),r=ya(ya({},n),e);return s.createElement("svg",ya({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},RE=s.forwardRef(OE);var ME=RE,PE=Object.defineProperty,Dp=Object.getOwnPropertySymbols,TE=Object.prototype.hasOwnProperty,AE=Object.prototype.propertyIsEnumerable,Vp=(e,t,n)=>t in e?PE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wa=(e,t)=>{for(var n in t||(t={}))TE.call(t,n)&&Vp(e,n,t[n]);if(Dp)for(var n of Dp(t))AE.call(t,n)&&Vp(e,n,t[n]);return e};const IE=(e,t)=>{const n=s.useContext(B),r=wa(wa({},n),e);return s.createElement("svg",wa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 16L12 21L7 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},NE=s.forwardRef(IE);var DE=NE,VE=Object.defineProperty,Fp=Object.getOwnPropertySymbols,FE=Object.prototype.hasOwnProperty,BE=Object.prototype.propertyIsEnumerable,Bp=(e,t,n)=>t in e?VE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xa=(e,t)=>{for(var n in t||(t={}))FE.call(t,n)&&Bp(e,n,t[n]);if(Fp)for(var n of Fp(t))BE.call(t,n)&&Bp(e,n,t[n]);return e};const HE=(e,t)=>{const n=s.useContext(B),r=xa(xa({},n),e);return s.createElement("svg",xa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 4L12 9L7 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 20L12 15L7 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},WE=s.forwardRef(HE);var zE=WE,_E=Object.defineProperty,Hp=Object.getOwnPropertySymbols,UE=Object.prototype.hasOwnProperty,KE=Object.prototype.propertyIsEnumerable,Wp=(e,t,n)=>t in e?_E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ca=(e,t)=>{for(var n in t||(t={}))UE.call(t,n)&&Wp(e,n,t[n]);if(Hp)for(var n of Hp(t))KE.call(t,n)&&Wp(e,n,t[n]);return e};const GE=(e,t)=>{const n=s.useContext(B),r=Ca(Ca({},n),e);return s.createElement("svg",Ca({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},YE=s.forwardRef(GE);var XE=YE,qE=Object.defineProperty,zp=Object.getOwnPropertySymbols,ZE=Object.prototype.hasOwnProperty,JE=Object.prototype.propertyIsEnumerable,_p=(e,t,n)=>t in e?qE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ka=(e,t)=>{for(var n in t||(t={}))ZE.call(t,n)&&_p(e,n,t[n]);if(zp)for(var n of zp(t))JE.call(t,n)&&_p(e,n,t[n]);return e};const QE=(e,t)=>{const n=s.useContext(B),r=ka(ka({},n),e);return s.createElement("svg",ka({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21.4383 11.6622L12.2483 20.8522C11.1225 21.9781 9.59552 22.6106 8.00334 22.6106C6.41115 22.6106 4.88418 21.9781 3.75834 20.8522C2.63249 19.7264 2 18.1994 2 16.6072C2 15.015 2.63249 13.4881 3.75834 12.3622L12.9483 3.17222C13.6989 2.42166 14.7169 2 15.7783 2C16.8398 2 17.8578 2.42166 18.6083 3.17222C19.3589 3.92279 19.7806 4.94077 19.7806 6.00222C19.7806 7.06368 19.3589 8.08166 18.6083 8.83222L9.40834 18.0222C9.03306 18.3975 8.52406 18.6083 7.99334 18.6083C7.46261 18.6083 6.95362 18.3975 6.57834 18.0222C6.20306 17.6469 5.99222 17.138 5.99222 16.6072C5.99222 16.0765 6.20306 15.5675 6.57834 15.1922L15.0683 6.71222",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},e4=s.forwardRef(QE);var t4=e4,n4=Object.defineProperty,Up=Object.getOwnPropertySymbols,r4=Object.prototype.hasOwnProperty,o4=Object.prototype.propertyIsEnumerable,Kp=(e,t,n)=>t in e?n4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ea=(e,t)=>{for(var n in t||(t={}))r4.call(t,n)&&Kp(e,n,t[n]);if(Up)for(var n of Up(t))o4.call(t,n)&&Kp(e,n,t[n]);return e};const s4=(e,t)=>{const n=s.useContext(B),r=Ea(Ea({},n),e);return s.createElement("svg",Ea({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M5 19.5V5C5 3.89543 5.89543 3 7 3H18.4C18.7314 3 19 3.26863 19 3.6V21",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M9 7L15 7",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 15L19 15",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 18L19 18",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 21L19 21",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 18C5.5 18 5 17.3284 5 16.5C5 15.6716 5.5 15 6.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 21C5.5 21 5 20.3284 5 19.5C5 18.6716 5.5 18 6.5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},i4=s.forwardRef(s4);var a4=i4,c4=Object.defineProperty,Gp=Object.getOwnPropertySymbols,l4=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable,Yp=(e,t,n)=>t in e?c4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,La=(e,t)=>{for(var n in t||(t={}))l4.call(t,n)&&Yp(e,n,t[n]);if(Gp)for(var n of Gp(t))u4.call(t,n)&&Yp(e,n,t[n]);return e};const d4=(e,t)=>{const n=s.useContext(B),r=La(La({},n),e);return s.createElement("svg",La({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2.6954 7.18536L11.6954 11.1854L12.3046 9.81464L3.3046 5.81464L2.6954 7.18536ZM12.75 21.5V10.5H11.25V21.5H12.75ZM12.3046 11.1854L21.3046 7.18536L20.6954 5.81464L11.6954 9.81464L12.3046 11.1854Z",fill:"currentColor"}),s.createElement("path",{d:"M3 17.1101V6.88992C3 6.65281 3.13964 6.43794 3.35632 6.34164L11.7563 2.6083C11.9115 2.53935 12.0885 2.53935 12.2437 2.6083L20.6437 6.34164C20.8604 6.43794 21 6.65281 21 6.88992V17.1101C21 17.3472 20.8604 17.5621 20.6437 17.6584L12.2437 21.3917C12.0885 21.4606 11.9115 21.4606 11.7563 21.3917L3.35632 17.6584C3.13964 17.5621 3 17.3472 3 17.1101Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.5 4.5L16.1437 8.34164C16.3604 8.43794 16.5 8.65281 16.5 8.88992V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},f4=s.forwardRef(d4);var p4=f4,m4=Object.defineProperty,Xp=Object.getOwnPropertySymbols,h4=Object.prototype.hasOwnProperty,g4=Object.prototype.propertyIsEnumerable,qp=(e,t,n)=>t in e?m4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sa=(e,t)=>{for(var n in t||(t={}))h4.call(t,n)&&qp(e,n,t[n]);if(Xp)for(var n of Xp(t))g4.call(t,n)&&qp(e,n,t[n]);return e};const b4=(e,t)=>{const n=s.useContext(B),r=Sa(Sa({},n),e);return s.createElement("svg",Sa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 14C5.34315 14 4 15.3431 4 17C4 18.6569 5.34315 20 7 20C7.35064 20 7.68722 19.9398 8 19.8293",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.26392 15.6046C2.9243 14.9582 2.00004 13.587 2.00004 12C2.00004 10.7883 2.53877 9.70251 3.38978 8.96898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.42053 8.8882C3.1549 8.49109 3 8.01363 3 7.5C3 6.11929 4.11929 5 5.5 5C6.06291 5 6.58237 5.18604 7.00024 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.23769 5.56533C7.08524 5.24215 7 4.88103 7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 20C8 21.1046 8.89543 22 10 22C11.1046 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 7C12 8.65685 13.3431 10 15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.6102 8.96898C21.4612 9.70251 22 10.7883 22 12C22 12.7031 21.8186 13.3638 21.5 13.9379",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5795 8.8882C20.8451 8.49109 21 8.01363 21 7.5C21 6.11929 19.8807 5 18.5 5C17.9371 5 17.4176 5.18604 16.9998 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 4.5C12 3.11929 13.1193 2 14.5 2C15.8807 2 17 3.11929 17 4.5C17 4.88103 16.9148 5.24215 16.7623 5.56533",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 22C12.8954 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18.6667 16L17 19H21L19.3333 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v4=s.forwardRef(b4);var y4=v4,w4=Object.defineProperty,Zp=Object.getOwnPropertySymbols,x4=Object.prototype.hasOwnProperty,C4=Object.prototype.propertyIsEnumerable,Jp=(e,t,n)=>t in e?w4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$a=(e,t)=>{for(var n in t||(t={}))x4.call(t,n)&&Jp(e,n,t[n]);if(Zp)for(var n of Zp(t))C4.call(t,n)&&Jp(e,n,t[n]);return e};const k4=(e,t)=>{const n=s.useContext(B),r=$a($a({},n),e);return s.createElement("svg",$a({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 14C5.34315 14 4 15.3431 4 17C4 18.6569 5.34315 20 7 20C7.35064 20 7.68722 19.9398 8 19.8293",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.26392 15.6046C2.9243 14.9582 2.00004 13.587 2.00004 12C2.00004 10.7883 2.53877 9.70251 3.38978 8.96898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.42053 8.8882C3.1549 8.49109 3 8.01363 3 7.5C3 6.11929 4.11929 5 5.5 5C6.06291 5 6.58237 5.18604 7.00024 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.23769 5.56533C7.08524 5.24215 7 4.88103 7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 20C8 21.1046 8.89543 22 10 22C11.1046 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 7C12 8.65685 13.3431 10 15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 14C18.6569 14 20 15.3431 20 17C20 18.6569 18.6569 20 17 20C16.6494 20 16.3128 19.9398 16 19.8293",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19.7361 15.6046C21.0757 14.9582 22 13.587 22 12C22 10.7883 21.4612 9.70251 20.6102 8.96898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5795 8.8882C20.8451 8.49109 21 8.01363 21 7.5C21 6.11929 19.8807 5 18.5 5C17.9371 5 17.4176 5.18604 16.9998 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 4.5C12 3.11929 13.1193 2 14.5 2C15.8807 2 17 3.11929 17 4.5C17 4.88103 16.9148 5.24215 16.7623 5.56533",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 20C16 21.1046 15.1046 22 14 22C12.8954 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},E4=s.forwardRef(k4);var L4=E4,S4=Object.defineProperty,Qp=Object.getOwnPropertySymbols,$4=Object.prototype.hasOwnProperty,j4=Object.prototype.propertyIsEnumerable,em=(e,t,n)=>t in e?S4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ja=(e,t)=>{for(var n in t||(t={}))$4.call(t,n)&&em(e,n,t[n]);if(Qp)for(var n of Qp(t))j4.call(t,n)&&em(e,n,t[n]);return e};const O4=(e,t)=>{const n=s.useContext(B),r=ja(ja({},n),e);return s.createElement("svg",ja({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 15V9C2 5.68629 4.68629 3 8 3H16C19.3137 3 22 5.68629 22 9V15C22 18.3137 19.3137 21 16 21H8C4.68629 21 2 18.3137 2 15Z",stroke:"currentColor"}),s.createElement("path",{d:"M11.6667 8L10 12H14L12.3333 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R4=s.forwardRef(O4);var M4=R4,P4=Object.defineProperty,tm=Object.getOwnPropertySymbols,T4=Object.prototype.hasOwnProperty,A4=Object.prototype.propertyIsEnumerable,nm=(e,t,n)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oa=(e,t)=>{for(var n in t||(t={}))T4.call(t,n)&&nm(e,n,t[n]);if(tm)for(var n of tm(t))A4.call(t,n)&&nm(e,n,t[n]);return e};const I4=(e,t)=>{const n=s.useContext(B),r=Oa(Oa({},n),e);return s.createElement("svg",Oa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 19V9C2 7.89543 2.89543 7 4 7H4.5C5.12951 7 5.72229 6.70361 6.1 6.2L8.32 3.24C8.43331 3.08892 8.61115 3 8.8 3H15.2C15.3889 3 15.5667 3.08892 15.68 3.24L17.9 6.2C18.2777 6.70361 18.8705 7 19.5 7H20C21.1046 7 22 7.89543 22 9V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17C14.2091 17 16 15.2091 16 13C16 10.7909 14.2091 9 12 9C9.79086 9 8 10.7909 8 13C8 15.2091 9.79086 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},N4=s.forwardRef(I4);var D4=N4,V4=Object.defineProperty,rm=Object.getOwnPropertySymbols,F4=Object.prototype.hasOwnProperty,B4=Object.prototype.propertyIsEnumerable,om=(e,t,n)=>t in e?V4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ra=(e,t)=>{for(var n in t||(t={}))F4.call(t,n)&&om(e,n,t[n]);if(rm)for(var n of rm(t))B4.call(t,n)&&om(e,n,t[n]);return e};const H4=(e,t)=>{const n=s.useContext(B),r=Ra(Ra({},n),e);return s.createElement("svg",Ra({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 12.5C17.2761 12.5 17.5 12.2761 17.5 12C17.5 11.7239 17.2761 11.5 17 11.5C16.7239 11.5 16.5 11.7239 16.5 12C16.5 12.2761 16.7239 12.5 17 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 12.5C7.27614 12.5 7.5 12.2761 7.5 12C7.5 11.7239 7.27614 11.5 7 11.5C6.72386 11.5 6.5 11.7239 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W4=s.forwardRef(H4);var z4=W4,_4=Object.defineProperty,sm=Object.getOwnPropertySymbols,U4=Object.prototype.hasOwnProperty,K4=Object.prototype.propertyIsEnumerable,im=(e,t,n)=>t in e?_4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ma=(e,t)=>{for(var n in t||(t={}))U4.call(t,n)&&im(e,n,t[n]);if(sm)for(var n of sm(t))K4.call(t,n)&&im(e,n,t[n]);return e};const G4=(e,t)=>{const n=s.useContext(B),r=Ma(Ma({},n),e);return s.createElement("svg",Ma({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 12.5L10 15.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Y4=s.forwardRef(G4);var X4=Y4,q4=Object.defineProperty,am=Object.getOwnPropertySymbols,Z4=Object.prototype.hasOwnProperty,J4=Object.prototype.propertyIsEnumerable,cm=(e,t,n)=>t in e?q4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pa=(e,t)=>{for(var n in t||(t={}))Z4.call(t,n)&&cm(e,n,t[n]);if(am)for(var n of am(t))J4.call(t,n)&&cm(e,n,t[n]);return e};const Q4=(e,t)=>{const n=s.useContext(B),r=Pa(Pa({},n),e);return s.createElement("svg",Pa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M5 13L9 17L19 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},e6=s.forwardRef(Q4);var t6=e6,n6=Object.defineProperty,lm=Object.getOwnPropertySymbols,r6=Object.prototype.hasOwnProperty,o6=Object.prototype.propertyIsEnumerable,um=(e,t,n)=>t in e?n6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ta=(e,t)=>{for(var n in t||(t={}))r6.call(t,n)&&um(e,n,t[n]);if(lm)for(var n of lm(t))o6.call(t,n)&&um(e,n,t[n]);return e};const s6=(e,t)=>{const n=s.useContext(B),r=Ta(Ta({},n),e);return s.createElement("svg",Ta({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},i6=s.forwardRef(s6);var a6=i6,c6=Object.defineProperty,dm=Object.getOwnPropertySymbols,l6=Object.prototype.hasOwnProperty,u6=Object.prototype.propertyIsEnumerable,fm=(e,t,n)=>t in e?c6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Aa=(e,t)=>{for(var n in t||(t={}))l6.call(t,n)&&fm(e,n,t[n]);if(dm)for(var n of dm(t))u6.call(t,n)&&fm(e,n,t[n]);return e};const d6=(e,t)=>{const n=s.useContext(B),r=Aa(Aa({},n),e);return s.createElement("svg",Aa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.8883 10.5C21.1645 5.68874 17.013 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C16.1006 22 19.6248 19.5318 21.1679 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 16H21.4C21.7314 16 22 16.2686 22 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},f6=s.forwardRef(d6);var p6=f6,m6=Object.defineProperty,pm=Object.getOwnPropertySymbols,h6=Object.prototype.hasOwnProperty,g6=Object.prototype.propertyIsEnumerable,mm=(e,t,n)=>t in e?m6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ia=(e,t)=>{for(var n in t||(t={}))h6.call(t,n)&&mm(e,n,t[n]);if(pm)for(var n of pm(t))g6.call(t,n)&&mm(e,n,t[n]);return e};const b6=(e,t)=>{const n=s.useContext(B),r=Ia(Ia({},n),e);return s.createElement("svg",Ia({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v6=s.forwardRef(b6);var y6=v6,w6=Object.defineProperty,hm=Object.getOwnPropertySymbols,x6=Object.prototype.hasOwnProperty,C6=Object.prototype.propertyIsEnumerable,gm=(e,t,n)=>t in e?w6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Na=(e,t)=>{for(var n in t||(t={}))x6.call(t,n)&&gm(e,n,t[n]);if(hm)for(var n of hm(t))C6.call(t,n)&&gm(e,n,t[n]);return e};const k6=(e,t)=>{const n=s.useContext(B),r=Na(Na({},n),e);return s.createElement("svg",Na({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 4C6 4 6 8 6 10C4.33333 10 1 11 1 15C1 19 4.33333 20 6 20H18C19.6667 20 23 19 23 15C23 11 19.6667 10 18 10C18 8 18 4 12 4Z",stroke:"currentColor",strokeLinejoin:"round"}))},E6=s.forwardRef(k6);var L6=E6,S6=Object.defineProperty,bm=Object.getOwnPropertySymbols,$6=Object.prototype.hasOwnProperty,j6=Object.prototype.propertyIsEnumerable,vm=(e,t,n)=>t in e?S6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Da=(e,t)=>{for(var n in t||(t={}))$6.call(t,n)&&vm(e,n,t[n]);if(bm)for(var n of bm(t))j6.call(t,n)&&vm(e,n,t[n]);return e};const O6=(e,t)=>{const n=s.useContext(B),r=Da(Da({},n),e);return s.createElement("svg",Da({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10 17L9.33334 17C8.22877 17 7.33334 16.1047 7.33334 15.0002C7.33334 14.3284 7.33334 13.6211 7.33333 13.1111C7.33333 12.5556 6 12 6 12C6 12 7.33333 11.4444 7.33334 10.8889C7.33334 10.4359 7.33334 9.70586 7.33334 8.99998C7.33334 7.89541 8.22877 7 9.33334 7L10 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 17L14.6667 17C15.7712 17 16.6667 16.1047 16.6667 15.0002C16.6667 14.3284 16.6667 13.6211 16.6667 13.1111C16.6667 12.5556 18 12 18 12C18 12 16.6667 11.4444 16.6667 10.8889C16.6667 10.4359 16.6667 9.70586 16.6667 8.99998C16.6667 7.89541 15.7712 7 14.6667 7L14 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R6=s.forwardRef(O6);var Py=R6,M6=Object.defineProperty,ym=Object.getOwnPropertySymbols,P6=Object.prototype.hasOwnProperty,T6=Object.prototype.propertyIsEnumerable,wm=(e,t,n)=>t in e?M6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t)=>{for(var n in t||(t={}))P6.call(t,n)&&wm(e,n,t[n]);if(ym)for(var n of ym(t))T6.call(t,n)&&wm(e,n,t[n]);return e};const A6=(e,t)=>{const n=s.useContext(B),r=Va(Va({},n),e);return s.createElement("svg",Va({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.00001 21L8.00001 21C6.89544 21 6.00001 20.1057 6.00001 19.0011C6.00001 17.4501 6.00001 15.3443 6 14C6 13 4.5 12 4.5 12C4.5 12 6.00001 11 6.00001 10C6.00001 8.827 6.00001 6.62207 6.00001 4.99914C6.00001 3.89457 6.89544 3 8.00001 3L9.00001 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 21L16 21C17.1046 21 18 20.1057 18 19.0011C18 17.4501 18 15.3443 18 14C18 13 19.5 12 19.5 12C19.5 12 18 11 18 10C18 8.827 18 6.62207 18 4.99914C18 3.89457 17.1046 3 16 3L15 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},I6=s.forwardRef(A6);var N6=I6,D6=Object.defineProperty,xm=Object.getOwnPropertySymbols,V6=Object.prototype.hasOwnProperty,F6=Object.prototype.propertyIsEnumerable,Cm=(e,t,n)=>t in e?D6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fa=(e,t)=>{for(var n in t||(t={}))V6.call(t,n)&&Cm(e,n,t[n]);if(xm)for(var n of xm(t))F6.call(t,n)&&Cm(e,n,t[n]);return e};const B6=(e,t)=>{const n=s.useContext(B),r=Fa(Fa({},n),e);return s.createElement("svg",Fa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13.5 6L10 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 8.5L3 12L6.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.5 8.5L21 12L17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H6=s.forwardRef(B6);var W6=H6,z6=Object.defineProperty,km=Object.getOwnPropertySymbols,_6=Object.prototype.hasOwnProperty,U6=Object.prototype.propertyIsEnumerable,Em=(e,t,n)=>t in e?z6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ba=(e,t)=>{for(var n in t||(t={}))_6.call(t,n)&&Em(e,n,t[n]);if(km)for(var n of km(t))U6.call(t,n)&&Em(e,n,t[n]);return e};const K6=(e,t)=>{const n=s.useContext(B),r=Ba(Ba({},n),e);return s.createElement("svg",Ba({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10.5857 10.5857L16.9496 7.0502L13.4141 13.4142L7.05012 16.9497L10.5857 10.5857Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},G6=s.forwardRef(K6);var Y6=G6,X6=Object.defineProperty,Lm=Object.getOwnPropertySymbols,q6=Object.prototype.hasOwnProperty,Z6=Object.prototype.propertyIsEnumerable,Sm=(e,t,n)=>t in e?X6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ha=(e,t)=>{for(var n in t||(t={}))q6.call(t,n)&&Sm(e,n,t[n]);if(Lm)for(var n of Lm(t))Z6.call(t,n)&&Sm(e,n,t[n]);return e};const J6=(e,t)=>{const n=s.useContext(B),r=Ha(Ha({},n),e);return s.createElement("svg",Ha({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 21L17 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 21L22 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 16.4V3.6C2 3.26863 2.26863 3 2.6 3H21.4C21.7314 3 22 3.26863 22 3.6V16.4C22 16.7314 21.7314 17 21.4 17H2.6C2.26863 17 2 16.7314 2 16.4Z",stroke:"currentColor"}))},Q6=s.forwardRef(J6);var e3=Q6,t3=Object.defineProperty,$m=Object.getOwnPropertySymbols,n3=Object.prototype.hasOwnProperty,r3=Object.prototype.propertyIsEnumerable,jm=(e,t,n)=>t in e?t3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>{for(var n in t||(t={}))n3.call(t,n)&&jm(e,n,t[n]);if($m)for(var n of $m(t))r3.call(t,n)&&jm(e,n,t[n]);return e};const o3=(e,t)=>{const n=s.useContext(B),r=Wa(Wa({},n),e);return s.createElement("svg",Wa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6.75469 17.2828L5.32612 7.28284C5.154 6.07798 6.08892 5 7.30602 5H10.694C11.9111 5 12.846 6.07797 12.6739 7.28284L11.2453 17.2828C11.1046 18.2681 10.2607 19 9.26541 19H8.73459C7.73929 19 6.89545 18.2681 6.75469 17.2828Z",stroke:"currentColor"}),s.createElement("path",{d:"M2 12L6 12M22 12L12 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s3=s.forwardRef(o3);var Ty=s3,i3=Object.defineProperty,Om=Object.getOwnPropertySymbols,a3=Object.prototype.hasOwnProperty,c3=Object.prototype.propertyIsEnumerable,Rm=(e,t,n)=>t in e?i3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,za=(e,t)=>{for(var n in t||(t={}))a3.call(t,n)&&Rm(e,n,t[n]);if(Om)for(var n of Om(t))c3.call(t,n)&&Rm(e,n,t[n]);return e};const l3=(e,t)=>{const n=s.useContext(B),r=za(za({},n),e);return s.createElement("svg",za({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19.4 20H9.6C9.26863 20 9 19.7314 9 19.4V9.6C9 9.26863 9.26863 9 9.6 9H19.4C19.7314 9 20 9.26863 20 9.6V19.4C20 19.7314 19.7314 20 19.4 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 9V4.6C15 4.26863 14.7314 4 14.4 4H4.6C4.26863 4 4 4.26863 4 4.6V14.4C4 14.7314 4.26863 15 4.6 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u3=s.forwardRef(l3);var d3=u3,f3=Object.defineProperty,Mm=Object.getOwnPropertySymbols,p3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,Pm=(e,t,n)=>t in e?f3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t)=>{for(var n in t||(t={}))p3.call(t,n)&&Pm(e,n,t[n]);if(Mm)for(var n of Mm(t))m3.call(t,n)&&Pm(e,n,t[n]);return e};const h3=(e,t)=>{const n=s.useContext(B),r=_a(_a({},n),e);return s.createElement("svg",_a({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.00047 8.00001L4.01047 8.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.00047 4.00001L4.01047 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8.00047 4.00001L8.01047 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12.0005 4.00001L12.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16.0005 4.00001L16.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 4.00001L20.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 8.00001L20.0105 8.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 12L20.0105 12.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 16L20.0105 16.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 20L20.0105 20.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16.0005 20L16.0105 20.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.00047 12.01V20.01H12.0005V12.01H4.00047Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g3=s.forwardRef(h3);var b3=g3,v3=Object.defineProperty,Tm=Object.getOwnPropertySymbols,y3=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable,Am=(e,t,n)=>t in e?v3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ua=(e,t)=>{for(var n in t||(t={}))y3.call(t,n)&&Am(e,n,t[n]);if(Tm)for(var n of Tm(t))w3.call(t,n)&&Am(e,n,t[n]);return e};const x3=(e,t)=>{const n=s.useContext(B),r=Ua(Ua({},n),e);return s.createElement("svg",Ua({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5027 9.96958C20.7073 10.4588 20.6154 12.1941 19.3658 12.5533L13.0605 14.3658L10.1807 20.2606C9.60996 21.4288 7.88499 21.218 7.6124 19.9468L4.67677 6.25646C4.44638 5.18204 5.5121 4.2878 6.53019 4.70126L19.5027 9.96958Z",stroke:"currentColor"}))},C3=s.forwardRef(x3);var k3=C3,E3=Object.defineProperty,Im=Object.getOwnPropertySymbols,L3=Object.prototype.hasOwnProperty,S3=Object.prototype.propertyIsEnumerable,Nm=(e,t,n)=>t in e?E3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ka=(e,t)=>{for(var n in t||(t={}))L3.call(t,n)&&Nm(e,n,t[n]);if(Im)for(var n of Im(t))S3.call(t,n)&&Nm(e,n,t[n]);return e};const $3=(e,t)=>{const n=s.useContext(B),r=Ka(Ka({},n),e);return s.createElement("svg",Ka({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 20V4M17 4L20 7M17 4L14 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 4V20M7 20L10 17M7 20L4 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},j3=s.forwardRef($3);var O3=j3,R3=Object.defineProperty,Dm=Object.getOwnPropertySymbols,M3=Object.prototype.hasOwnProperty,P3=Object.prototype.propertyIsEnumerable,Vm=(e,t,n)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ga=(e,t)=>{for(var n in t||(t={}))M3.call(t,n)&&Vm(e,n,t[n]);if(Dm)for(var n of Dm(t))P3.call(t,n)&&Vm(e,n,t[n]);return e};const T3=(e,t)=>{const n=s.useContext(B),r=Ga(Ga({},n),e);return s.createElement("svg",Ga({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M5 12V18C5 18 5 21 12 21C19 21 19 18 19 18V12",stroke:"currentColor"}),s.createElement("path",{d:"M5 6V12C5 12 5 15 12 15C19 15 19 12 19 12V6",stroke:"currentColor"}),s.createElement("path",{d:"M12 3C19 3 19 6 19 6C19 6 19 9 12 9C5 9 5 6 5 6C5 6 5 3 12 3Z",stroke:"currentColor"}))},A3=s.forwardRef(T3);var I3=A3,N3=Object.defineProperty,Fm=Object.getOwnPropertySymbols,D3=Object.prototype.hasOwnProperty,V3=Object.prototype.propertyIsEnumerable,Bm=(e,t,n)=>t in e?N3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ya=(e,t)=>{for(var n in t||(t={}))D3.call(t,n)&&Bm(e,n,t[n]);if(Fm)for(var n of Fm(t))V3.call(t,n)&&Bm(e,n,t[n]);return e};const F3=(e,t)=>{const n=s.useContext(B),r=Ya(Ya({},n),e);return s.createElement("svg",Ya({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17.6744 11.4075L15.7691 17.1233C15.7072 17.309 15.5586 17.4529 15.3709 17.5087L3.69348 20.9803C3.22819 21.1186 2.79978 20.676 2.95328 20.2155L6.74467 8.84131C6.79981 8.67588 6.92419 8.54263 7.08543 8.47624L12.472 6.25822C12.696 6.166 12.9535 6.21749 13.1248 6.38876L17.5294 10.7935C17.6901 10.9542 17.7463 11.1919 17.6744 11.4075Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.2959 20.6016L9.65986 14.2376",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.7917 11.0557L20.6202 8.22724C21.4012 7.44619 21.4012 6.17986 20.6202 5.39881L18.4989 3.27749C17.7178 2.49645 16.4515 2.49645 15.6704 3.27749L12.842 6.10592",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11.7814 12.1163C11.1956 11.5305 10.2458 11.5305 9.66004 12.1163C9.07426 12.7021 9.07426 13.6519 9.66004 14.2376C10.2458 14.8234 11.1956 14.8234 11.7814 14.2376C12.3671 13.6519 12.3671 12.7021 11.7814 12.1163Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},B3=s.forwardRef(F3);var H3=B3,W3=Object.defineProperty,Hm=Object.getOwnPropertySymbols,z3=Object.prototype.hasOwnProperty,_3=Object.prototype.propertyIsEnumerable,Wm=(e,t,n)=>t in e?W3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t)=>{for(var n in t||(t={}))z3.call(t,n)&&Wm(e,n,t[n]);if(Hm)for(var n of Hm(t))_3.call(t,n)&&Wm(e,n,t[n]);return e};const U3=(e,t)=>{const n=s.useContext(B),r=Xa(Xa({},n),e);return s.createElement("svg",Xa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20.5 20.5L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 18C15 19.6569 16.3431 21 18 21C18.8299 21 19.581 20.663 20.1241 20.1185C20.6654 19.5758 21 18.827 21 18C21 16.3431 19.6569 15 18 15C16.3431 15 15 16.3431 15 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 12V5.74853C20 5.5894 19.9368 5.43679 19.8243 5.32426L16.6757 2.17574C16.5632 2.06321 16.4106 2 16.2515 2H4.6C4.26863 2 4 2.26863 4 2.6V21.4C4 21.7314 4.26863 22 4.6 22H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},K3=s.forwardRef(U3);var G3=K3,Y3=Object.defineProperty,zm=Object.getOwnPropertySymbols,X3=Object.prototype.hasOwnProperty,q3=Object.prototype.propertyIsEnumerable,_m=(e,t,n)=>t in e?Y3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qa=(e,t)=>{for(var n in t||(t={}))X3.call(t,n)&&_m(e,n,t[n]);if(zm)for(var n of zm(t))q3.call(t,n)&&_m(e,n,t[n]);return e};const Z3=(e,t)=>{const n=s.useContext(B),r=qa(qa({},n),e);return s.createElement("svg",qa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 18L18 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 6V14M12 14L15.5 10.5M12 14L8.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z",stroke:"currentColor"}))},J3=s.forwardRef(Z3);var Q3=J3,eL=Object.defineProperty,Um=Object.getOwnPropertySymbols,tL=Object.prototype.hasOwnProperty,nL=Object.prototype.propertyIsEnumerable,Km=(e,t,n)=>t in e?eL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Za=(e,t)=>{for(var n in t||(t={}))tL.call(t,n)&&Km(e,n,t[n]);if(Um)for(var n of Um(t))nL.call(t,n)&&Km(e,n,t[n]);return e};const rL=(e,t)=>{const n=s.useContext(B),r=Za(Za({},n),e);return s.createElement("svg",Za({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 4V16M12 16L15.5 12.5M12 16L8.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},oL=s.forwardRef(rL);var sL=oL,iL=Object.defineProperty,Gm=Object.getOwnPropertySymbols,aL=Object.prototype.hasOwnProperty,cL=Object.prototype.propertyIsEnumerable,Ym=(e,t,n)=>t in e?iL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ja=(e,t)=>{for(var n in t||(t={}))aL.call(t,n)&&Ym(e,n,t[n]);if(Gm)for(var n of Gm(t))cL.call(t,n)&&Ym(e,n,t[n]);return e};const lL=(e,t)=>{const n=s.useContext(B),r=Ja(Ja({},n),e);return s.createElement("svg",Ja({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 10.5L4.99591 13.1721C4.41845 13.9421 4.47127 15.0141 5.1216 15.7236L8.9055 19.8515C9.28432 20.2647 9.81826 20.5 10.3789 20.5C11.4651 20.5 13.2415 20.5 15 20.5C17.4 20.5 19 19 19 16.5C19 16.5 19 16.5 19 16.5C19 16.5 19 9.64287 19 7.92859",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 8.49995C16 8.49995 16 8.37483 16 7.92852C16 5.6428 19 5.6428 19 7.92852",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13 8.50008C13 8.50008 13 7.91978 13 7.02715M13 6.50008C13 6.50008 13 6.804 13 7.02715M16 8.50008C16 8.50008 16 8.37496 16 7.92865C16 7.70549 16 7.25031 16 7.02715C16 4.74144 13 4.74144 13 7.02715",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13 8.50008C13 8.50008 13 7.91978 13 7.02715C13 4.74144 16 4.74144 16 7.02715C16 7.25031 16 7.70549 16 7.92865C16 8.37496 16 8.50008 16 8.50008",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10 8.50005C10 8.50005 10 7.85719 10 6.50005C10 4.21434 13 4.21434 13 6.50005C13 6.50005 13 6.50005 13 6.50005C13 6.50005 13 6.80397 13 7.02713C13 7.91975 13 8.50005 13 8.50005",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 13.5001V6.50006C7 5.67164 7.67157 5.00006 8.5 5.00006V5.00006C9.32843 5.00006 10 5.55527 10 6.38369C10 6.42151 10 6.4603 10 6.50006C10 7.85721 10 8.50006 10 8.50006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},uL=s.forwardRef(lL);var dL=uL,fL=Object.defineProperty,Xm=Object.getOwnPropertySymbols,pL=Object.prototype.hasOwnProperty,mL=Object.prototype.propertyIsEnumerable,qm=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qa=(e,t)=>{for(var n in t||(t={}))pL.call(t,n)&&qm(e,n,t[n]);if(Xm)for(var n of Xm(t))mL.call(t,n)&&qm(e,n,t[n]);return e};const hL=(e,t)=>{const n=s.useContext(B),r=Qa(Qa({},n),e);return s.createElement("svg",Qa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 12L4 4M4 4V8M4 4H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12L20 20M20 20V16M20 20H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},gL=s.forwardRef(hL);var zd=gL,bL=Object.defineProperty,Zm=Object.getOwnPropertySymbols,vL=Object.prototype.hasOwnProperty,yL=Object.prototype.propertyIsEnumerable,Jm=(e,t,n)=>t in e?bL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ec=(e,t)=>{for(var n in t||(t={}))vL.call(t,n)&&Jm(e,n,t[n]);if(Zm)for(var n of Zm(t))yL.call(t,n)&&Jm(e,n,t[n]);return e};const wL=(e,t)=>{const n=s.useContext(B),r=ec(ec({},n),e);return s.createElement("svg",ec({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M14.3632 5.65156L15.8431 4.17157C16.6242 3.39052 17.8905 3.39052 18.6716 4.17157L20.0858 5.58579C20.8668 6.36683 20.8668 7.63316 20.0858 8.41421L18.6058 9.8942M14.3632 5.65156L4.74749 15.2672C4.41542 15.5993 4.21079 16.0376 4.16947 16.5054L3.92738 19.2459C3.87261 19.8659 4.39148 20.3848 5.0115 20.33L7.75191 20.0879C8.21972 20.0466 8.65806 19.8419 8.99013 19.5099L18.6058 9.8942M14.3632 5.65156L18.6058 9.8942",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xL=s.forwardRef(wL);var CL=xL,kL=Object.defineProperty,Qm=Object.getOwnPropertySymbols,EL=Object.prototype.hasOwnProperty,LL=Object.prototype.propertyIsEnumerable,eh=(e,t,n)=>t in e?kL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tc=(e,t)=>{for(var n in t||(t={}))EL.call(t,n)&&eh(e,n,t[n]);if(Qm)for(var n of Qm(t))LL.call(t,n)&&eh(e,n,t[n]);return e};const SL=(e,t)=>{const n=s.useContext(B),r=tc(tc({},n),e);return s.createElement("svg",tc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M15 9L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9 15L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},$L=s.forwardRef(SL);var jL=$L,OL=Object.defineProperty,th=Object.getOwnPropertySymbols,RL=Object.prototype.hasOwnProperty,ML=Object.prototype.propertyIsEnumerable,nh=(e,t,n)=>t in e?OL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nc=(e,t)=>{for(var n in t||(t={}))RL.call(t,n)&&nh(e,n,t[n]);if(th)for(var n of th(t))ML.call(t,n)&&nh(e,n,t[n]);return e};const PL=(e,t)=>{const n=s.useContext(B),r=nc(nc({},n),e);return s.createElement("svg",nc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19.5 16L17.0248 12.6038",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17.5V14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.5 16L6.96895 12.6124",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 8C6.6 16 17.4 16 21 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},TL=s.forwardRef(PL);var AL=TL,IL=Object.defineProperty,rh=Object.getOwnPropertySymbols,NL=Object.prototype.hasOwnProperty,DL=Object.prototype.propertyIsEnumerable,oh=(e,t,n)=>t in e?IL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rc=(e,t)=>{for(var n in t||(t={}))NL.call(t,n)&&oh(e,n,t[n]);if(rh)for(var n of rh(t))DL.call(t,n)&&oh(e,n,t[n]);return e};const VL=(e,t)=>{const n=s.useContext(B),r=rc(rc({},n),e);return s.createElement("svg",rc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 13C6.6 5 17.4 5 21 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17C10.3431 17 9 15.6569 9 14C9 12.3431 10.3431 11 12 11C13.6569 11 15 12.3431 15 14C15 15.6569 13.6569 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},FL=s.forwardRef(VL);var BL=FL,HL=Object.defineProperty,sh=Object.getOwnPropertySymbols,WL=Object.prototype.hasOwnProperty,zL=Object.prototype.propertyIsEnumerable,ih=(e,t,n)=>t in e?HL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oc=(e,t)=>{for(var n in t||(t={}))WL.call(t,n)&&ih(e,n,t[n]);if(sh)for(var n of sh(t))zL.call(t,n)&&ih(e,n,t[n]);return e};const _L=(e,t)=>{const n=s.useContext(B),r=oc(oc({},n),e);return s.createElement("svg",oc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13 10V3L5 14H11V21L19 10H13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},UL=s.forwardRef(_L);var KL=UL,GL=Object.defineProperty,ah=Object.getOwnPropertySymbols,YL=Object.prototype.hasOwnProperty,XL=Object.prototype.propertyIsEnumerable,ch=(e,t,n)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t)=>{for(var n in t||(t={}))YL.call(t,n)&&ch(e,n,t[n]);if(ah)for(var n of ah(t))XL.call(t,n)&&ch(e,n,t[n]);return e};const qL=(e,t)=>{const n=s.useContext(B),r=sc(sc({},n),e);return s.createElement("svg",sc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 19V5C3 3.89543 3.89543 3 5 3H16.1716C16.702 3 17.2107 3.21071 17.5858 3.58579L20.4142 6.41421C20.7893 6.78929 21 7.29799 21 7.82843V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19Z",stroke:"currentColor"}),s.createElement("path",{d:"M8.6 9H15.4C15.7314 9 16 8.73137 16 8.4V3.6C16 3.26863 15.7314 3 15.4 3H8.6C8.26863 3 8 3.26863 8 3.6V8.4C8 8.73137 8.26863 9 8.6 9Z",stroke:"currentColor"}),s.createElement("path",{d:"M6 13.6V21H18V13.6C18 13.2686 17.7314 13 17.4 13H6.6C6.26863 13 6 13.2686 6 13.6Z",stroke:"currentColor"}))},ZL=s.forwardRef(qL);var JL=ZL,QL=Object.defineProperty,lh=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,tS=Object.prototype.propertyIsEnumerable,uh=(e,t,n)=>t in e?QL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ic=(e,t)=>{for(var n in t||(t={}))eS.call(t,n)&&uh(e,n,t[n]);if(lh)for(var n of lh(t))tS.call(t,n)&&uh(e,n,t[n]);return e};const nS=(e,t)=>{const n=s.useContext(B),r=ic(ic({},n),e);return s.createElement("svg",ic({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H21.4C21.7314 7 22 7.26863 22 7.6V11M2 11V19.4C2 19.7314 2.26863 20 2.6 20H21.4C21.7314 20 22 19.7314 22 19.4V11M2 11H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rS=s.forwardRef(nS);var oS=rS,sS=Object.defineProperty,dh=Object.getOwnPropertySymbols,iS=Object.prototype.hasOwnProperty,aS=Object.prototype.propertyIsEnumerable,fh=(e,t,n)=>t in e?sS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ac=(e,t)=>{for(var n in t||(t={}))iS.call(t,n)&&fh(e,n,t[n]);if(dh)for(var n of dh(t))aS.call(t,n)&&fh(e,n,t[n]);return e};const cS=(e,t)=>{const n=s.useContext(B),r=ac(ac({},n),e);return s.createElement("svg",ac({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.9984 2H2V4.9984H4.9984V2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99854 3.50098H18.9987",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 4.99854V19.0005",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.4978 5V19.002",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99854 20.501H18.9987",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.9984 19H2V21.9984H4.9984V19Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 2.00195H18.999V5.00035H21.9974V2.00195Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 19.002H18.999V22.0004H21.9974V19.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9966 15.002L7.99658 8.00195L14.9966 11.002L11.9986 12.0009L10.9966 15.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.999 12.002L14.997 15.002L11.999 12.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},lS=s.forwardRef(cS);var uS=lS,dS=Object.defineProperty,ph=Object.getOwnPropertySymbols,fS=Object.prototype.hasOwnProperty,pS=Object.prototype.propertyIsEnumerable,mh=(e,t,n)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cc=(e,t)=>{for(var n in t||(t={}))fS.call(t,n)&&mh(e,n,t[n]);if(ph)for(var n of ph(t))pS.call(t,n)&&mh(e,n,t[n]);return e};const mS=(e,t)=>{const n=s.useContext(B),r=cc(cc({},n),e);return s.createElement("svg",cc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.9984 2.00098H2V4.99938H4.9984V2.00098Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.9984 10.502H2V13.5004H4.9984V10.502Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.4978 5.00049V10.503",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 5.00049V10.503",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.4978 13.5015V19.004",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 13.5015V19.004",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99902 20.5015H10.4999",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99902 3.50342H10.4999",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.498 20.499H18.9989",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.498 3.50098H18.9989",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.9984 19.001H2V21.9994H4.9984V19.001Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 2.00195H18.999V5.00035H21.9974V2.00195Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.4974 2H10.499V4.9984H13.4974V2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 10.5029H18.999V13.5013H21.9974V10.5029Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 19.002H18.999V22.0004H21.9974V19.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.4974 19H10.499V21.9984H13.4974V19Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},hS=s.forwardRef(mS);var gS=hS,bS=Object.defineProperty,hh=Object.getOwnPropertySymbols,vS=Object.prototype.hasOwnProperty,yS=Object.prototype.propertyIsEnumerable,gh=(e,t,n)=>t in e?bS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lc=(e,t)=>{for(var n in t||(t={}))vS.call(t,n)&&gh(e,n,t[n]);if(hh)for(var n of hh(t))yS.call(t,n)&&gh(e,n,t[n]);return e};const wS=(e,t)=>{const n=s.useContext(B),r=lc(lc({},n),e);return s.createElement("svg",lc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 16V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 18H9C12.5 18 18 15.9 18 9.5V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xS=s.forwardRef(wS);var CS=xS,kS=Object.defineProperty,bh=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,vh=(e,t,n)=>t in e?kS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uc=(e,t)=>{for(var n in t||(t={}))ES.call(t,n)&&vh(e,n,t[n]);if(bh)for(var n of bh(t))LS.call(t,n)&&vh(e,n,t[n]);return e};const SS=(e,t)=>{const n=s.useContext(B),r=uc(uc({},n),e);return s.createElement("svg",uc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 21C19.1046 21 20 20.1046 20 19C20 17.8954 19.1046 17 18 17C16.8954 17 16 17.8954 16 19C16 20.1046 16.8954 21 18 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 7C7.10457 7 8 6.10457 8 5C8 3.89543 7.10457 3 6 3C4.89543 3 4 3.89543 4 5C4 6.10457 4.89543 7 6 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 17V7C18 7 18 5 16 5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 7V17C6 17 6 19 8 19H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.0005 7.50012L12.5005 5.00012L15.0005 2.50012",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8.5 16.5L11 19L8.5 21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},$S=s.forwardRef(SS);var jS=$S,OS=Object.defineProperty,yh=Object.getOwnPropertySymbols,RS=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,wh=(e,t,n)=>t in e?OS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dc=(e,t)=>{for(var n in t||(t={}))RS.call(t,n)&&wh(e,n,t[n]);if(yh)for(var n of yh(t))MS.call(t,n)&&wh(e,n,t[n]);return e};const PS=(e,t)=>{const n=s.useContext(B),r=dc(dc({},n),e);return s.createElement("svg",dc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2.5 12.5L8 14.5L7 18L8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 20.5L16.5 18L14 17V13.5L17 12.5L21.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19 5.5L18.5 7L15 7.5V10.5L17.5 9.5H19.5L21.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2.5 10.5L5 8.5L7.5 8L9.5 5L8.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},TS=s.forwardRef(PS);var AS=TS,IS=Object.defineProperty,xh=Object.getOwnPropertySymbols,NS=Object.prototype.hasOwnProperty,DS=Object.prototype.propertyIsEnumerable,Ch=(e,t,n)=>t in e?IS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fc=(e,t)=>{for(var n in t||(t={}))NS.call(t,n)&&Ch(e,n,t[n]);if(xh)for(var n of xh(t))DS.call(t,n)&&Ch(e,n,t[n]);return e};const VS=(e,t)=>{const n=s.useContext(B),r=fc(fc({},n),e);return s.createElement("svg",fc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10 3L6 21",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M20.5 16H2.5",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M22 7H4",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M18 3L14 21",stroke:"currentColor",strokeLinecap:"round"}))},FS=s.forwardRef(VS);var BS=FS,HS=Object.defineProperty,kh=Object.getOwnPropertySymbols,WS=Object.prototype.hasOwnProperty,zS=Object.prototype.propertyIsEnumerable,Eh=(e,t,n)=>t in e?HS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pc=(e,t)=>{for(var n in t||(t={}))WS.call(t,n)&&Eh(e,n,t[n]);if(kh)for(var n of kh(t))zS.call(t,n)&&Eh(e,n,t[n]);return e};const _S=(e,t)=>{const n=s.useContext(B),r=pc(pc({},n),e);return s.createElement("svg",pc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 8L11.7317 3.13416C11.9006 3.04971 12.0994 3.0497 12.2683 3.13416L22 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 11V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},US=s.forwardRef(_S);var KS=US,GS=Object.defineProperty,Lh=Object.getOwnPropertySymbols,YS=Object.prototype.hasOwnProperty,XS=Object.prototype.propertyIsEnumerable,Sh=(e,t,n)=>t in e?GS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mc=(e,t)=>{for(var n in t||(t={}))YS.call(t,n)&&Sh(e,n,t[n]);if(Lh)for(var n of Lh(t))XS.call(t,n)&&Sh(e,n,t[n]);return e};const qS=(e,t)=>{const n=s.useContext(B),r=mc(mc({},n),e);return s.createElement("svg",mc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 11.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 7.51L12.01 7.49889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZS=s.forwardRef(qS);var JS=ZS,QS=Object.defineProperty,$h=Object.getOwnPropertySymbols,e7=Object.prototype.hasOwnProperty,t7=Object.prototype.propertyIsEnumerable,jh=(e,t,n)=>t in e?QS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hc=(e,t)=>{for(var n in t||(t={}))e7.call(t,n)&&jh(e,n,t[n]);if($h)for(var n of $h(t))t7.call(t,n)&&jh(e,n,t[n]);return e};const n7=(e,t)=>{const n=s.useContext(B),r=hc(hc({},n),e);return s.createElement("svg",hc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9 6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9 6C9 4.34315 7.65685 3 6 3C4.34315 3 3 4.34315 3 6C3 7.65685 4.34315 9 6 9H18C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.3431 4.34315 15 6 15H18C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},r7=s.forwardRef(n7);var o7=r7,s7=Object.defineProperty,Oh=Object.getOwnPropertySymbols,i7=Object.prototype.hasOwnProperty,a7=Object.prototype.propertyIsEnumerable,Rh=(e,t,n)=>t in e?s7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gc=(e,t)=>{for(var n in t||(t={}))i7.call(t,n)&&Rh(e,n,t[n]);if(Oh)for(var n of Oh(t))a7.call(t,n)&&Rh(e,n,t[n]);return e};const c7=(e,t)=>{const n=s.useContext(B),r=gc(gc({},n),e);return s.createElement("svg",gc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7.14286 16.9953C6.75006 16.9953 6.36756 16.9525 6 16.8715C3.70973 16.3665 2 14.3761 2 11.9977C2 9.284 4.22573 7.07548 7 7.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.3184 9.63429C12.7858 8.73635 11.9737 7.96977 11 7.4989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16.8571 6.99999C17.2499 6.99999 17.6324 7.04278 18 7.12383C20.2903 7.62884 22 9.6192 22 11.9976C22 14.7577 19.6975 16.9952 16.8571 16.9952C16.581 16.9952 15.4776 16.9952 15.1429 16.9952C12.317 16.9952 10 14.4893 10 11.9976C10 11.9976 10 11 10.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},l7=s.forwardRef(c7);var u7=l7,d7=Object.defineProperty,Mh=Object.getOwnPropertySymbols,f7=Object.prototype.hasOwnProperty,p7=Object.prototype.propertyIsEnumerable,Ph=(e,t,n)=>t in e?d7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bc=(e,t)=>{for(var n in t||(t={}))f7.call(t,n)&&Ph(e,n,t[n]);if(Mh)for(var n of Mh(t))p7.call(t,n)&&Ph(e,n,t[n]);return e};const m7=(e,t)=>{const n=s.useContext(B),r=bc(bc({},n),e);return s.createElement("svg",bc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M14 11.9976C14 9.5059 11.683 7 8.85714 7C8.52241 7 7.41904 7.00001 7.14286 7.00001C4.30254 7.00001 2 9.23752 2 11.9976C2 14.376 3.70973 16.3664 6 16.8714C6.36756 16.9525 6.75006 16.9952 7.14286 16.9952",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10 11.9976C10 14.4893 12.317 16.9952 15.1429 16.9952C15.4776 16.9952 16.581 16.9952 16.8571 16.9952C19.6975 16.9952 22 14.7577 22 11.9976C22 9.6192 20.2903 7.62884 18 7.12383C17.6324 7.04278 17.2499 6.99999 16.8571 6.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},h7=s.forwardRef(m7);var g7=h7,b7=Object.defineProperty,Th=Object.getOwnPropertySymbols,v7=Object.prototype.hasOwnProperty,y7=Object.prototype.propertyIsEnumerable,Ah=(e,t,n)=>t in e?b7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vc=(e,t)=>{for(var n in t||(t={}))v7.call(t,n)&&Ah(e,n,t[n]);if(Th)for(var n of Th(t))y7.call(t,n)&&Ah(e,n,t[n]);return e};const w7=(e,t)=>{const n=s.useContext(B),r=vc(vc({},n),e);return s.createElement("svg",vc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8 6L20 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 6.01L4.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 12.01L4.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 18.01L4.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 18L20 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},x7=s.forwardRef(w7);var Ay=x7,C7=Object.defineProperty,Ih=Object.getOwnPropertySymbols,k7=Object.prototype.hasOwnProperty,E7=Object.prototype.propertyIsEnumerable,Nh=(e,t,n)=>t in e?C7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yc=(e,t)=>{for(var n in t||(t={}))k7.call(t,n)&&Nh(e,n,t[n]);if(Ih)for(var n of Ih(t))E7.call(t,n)&&Nh(e,n,t[n]);return e};const L7=(e,t)=>{const n=s.useContext(B),r=yc(yc({},n),e);return s.createElement("svg",yc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M16 12H17.4C17.7314 12 18 12.2686 18 12.6V19.4C18 19.7314 17.7314 20 17.4 20H6.6C6.26863 20 6 19.7314 6 19.4V12.6C6 12.2686 6.26863 12 6.6 12H8M16 12V8C16 6.66667 15.2 4 12 4C8.8 4 8 6.66667 8 8V12M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},S7=s.forwardRef(L7);var Iy=S7,$7=Object.defineProperty,Dh=Object.getOwnPropertySymbols,j7=Object.prototype.hasOwnProperty,O7=Object.prototype.propertyIsEnumerable,Vh=(e,t,n)=>t in e?$7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wc=(e,t)=>{for(var n in t||(t={}))j7.call(t,n)&&Vh(e,n,t[n]);if(Dh)for(var n of Dh(t))O7.call(t,n)&&Vh(e,n,t[n]);return e};const R7=(e,t)=>{const n=s.useContext(B),r=wc(wc({},n),e);return s.createElement("svg",wc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 21L13 11M18 6L15.5 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9.5 2L10.4453 4.55468L13 5.5L10.4453 6.44532L9.5 9L8.55468 6.44532L6 5.5L8.55468 4.55468L9.5 2Z",stroke:"currentColor",strokeLinejoin:"round"}),s.createElement("path",{d:"M19 10L19.5402 11.4598L21 12L19.5402 12.5402L19 14L18.4598 12.5402L17 12L18.4598 11.4598L19 10Z",stroke:"currentColor",strokeLinejoin:"round"}))},M7=s.forwardRef(R7);var P7=M7,T7=Object.defineProperty,Fh=Object.getOwnPropertySymbols,A7=Object.prototype.hasOwnProperty,I7=Object.prototype.propertyIsEnumerable,Bh=(e,t,n)=>t in e?T7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xc=(e,t)=>{for(var n in t||(t={}))A7.call(t,n)&&Bh(e,n,t[n]);if(Fh)for(var n of Fh(t))I7.call(t,n)&&Bh(e,n,t[n]);return e};const N7=(e,t)=>{const n=s.useContext(B),r=xc(xc({},n),e);return s.createElement("svg",xc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9 19L3.78974 20.7368C3.40122 20.8663 3 20.5771 3 20.1675L3 5.43246C3 5.1742 3.16526 4.94491 3.41026 4.86325L9 3M9 19L15 21M9 19L9 3M15 21L20.5897 19.1368C20.8347 19.0551 21 18.8258 21 18.5675L21 3.83246C21 3.42292 20.5988 3.13374 20.2103 3.26325L15 5M15 21L15 5M15 5L9 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},D7=s.forwardRef(N7);var V7=D7,F7=Object.defineProperty,Hh=Object.getOwnPropertySymbols,B7=Object.prototype.hasOwnProperty,H7=Object.prototype.propertyIsEnumerable,Wh=(e,t,n)=>t in e?F7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cc=(e,t)=>{for(var n in t||(t={}))B7.call(t,n)&&Wh(e,n,t[n]);if(Hh)for(var n of Hh(t))H7.call(t,n)&&Wh(e,n,t[n]);return e};const W7=(e,t)=>{const n=s.useContext(B),r=Cc(Cc({},n),e);return s.createElement("svg",Cc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 4H4V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 4H20V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 20H4V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 20H20V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},z7=s.forwardRef(W7);var _7=z7,U7=Object.defineProperty,zh=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,G7=Object.prototype.propertyIsEnumerable,_h=(e,t,n)=>t in e?U7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kc=(e,t)=>{for(var n in t||(t={}))K7.call(t,n)&&_h(e,n,t[n]);if(zh)for(var n of zh(t))G7.call(t,n)&&_h(e,n,t[n]);return e};const Y7=(e,t)=>{const n=s.useContext(B),r=kc(kc({},n),e);return s.createElement("svg",kc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 16L10 13L21 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8C18 9.10457 17.1046 10 16 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},X7=s.forwardRef(Y7);var Ny=X7,q7=Object.defineProperty,Uh=Object.getOwnPropertySymbols,Z7=Object.prototype.hasOwnProperty,J7=Object.prototype.propertyIsEnumerable,Kh=(e,t,n)=>t in e?q7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ec=(e,t)=>{for(var n in t||(t={}))Z7.call(t,n)&&Kh(e,n,t[n]);if(Uh)for(var n of Uh(t))J7.call(t,n)&&Kh(e,n,t[n]);return e};const Q7=(e,t)=>{const n=s.useContext(B),r=Ec(Ec({},n),e);return s.createElement("svg",Ec({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 7.6V20.4C21 20.7314 20.7314 21 20.4 21H7.6C7.26863 21 7 20.7314 7 20.4V7.6C7 7.26863 7.26863 7 7.6 7H20.4C20.7314 7 21 7.26863 21 7.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 4H4.6C4.26863 4 4 4.26863 4 4.6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12.9087 11.5452C12.5088 11.3053 12 11.5933 12 12.0597V15.9403C12 16.4067 12.5088 16.6947 12.9087 16.4548L16.1425 14.5145C16.5309 14.2815 16.5309 13.7185 16.1425 13.4855L12.9087 11.5452Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},e9=s.forwardRef(Q7);var t9=e9,n9=Object.defineProperty,Gh=Object.getOwnPropertySymbols,r9=Object.prototype.hasOwnProperty,o9=Object.prototype.propertyIsEnumerable,Yh=(e,t,n)=>t in e?n9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lc=(e,t)=>{for(var n in t||(t={}))r9.call(t,n)&&Yh(e,n,t[n]);if(Gh)for(var n of Gh(t))o9.call(t,n)&&Yh(e,n,t[n]);return e};const s9=(e,t)=>{const n=s.useContext(B),r=Lc(Lc({},n),e);return s.createElement("svg",Lc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("rect",{x:9,y:2,width:6,height:12,rx:3,stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M5 10V11C5 14.866 8.13401 18 12 18V18V18C15.866 18 19 14.866 19 11V10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 18V22M12 22H9M12 22H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},i9=s.forwardRef(s9);var a9=i9,c9=Object.defineProperty,Xh=Object.getOwnPropertySymbols,l9=Object.prototype.hasOwnProperty,u9=Object.prototype.propertyIsEnumerable,qh=(e,t,n)=>t in e?c9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sc=(e,t)=>{for(var n in t||(t={}))l9.call(t,n)&&qh(e,n,t[n]);if(Xh)for(var n of Xh(t))u9.call(t,n)&&qh(e,n,t[n]);return e};const d9=(e,t)=>{const n=s.useContext(B),r=Sc(Sc({},n),e);return s.createElement("svg",Sc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},f9=s.forwardRef(d9);var p9=f9,m9=Object.defineProperty,Zh=Object.getOwnPropertySymbols,h9=Object.prototype.hasOwnProperty,g9=Object.prototype.propertyIsEnumerable,Jh=(e,t,n)=>t in e?m9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$c=(e,t)=>{for(var n in t||(t={}))h9.call(t,n)&&Jh(e,n,t[n]);if(Zh)for(var n of Zh(t))g9.call(t,n)&&Jh(e,n,t[n]);return e};const b9=(e,t)=>{const n=s.useContext(B),r=$c($c({},n),e);return s.createElement("svg",$c({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20 12.5C20.2761 12.5 20.5 12.2761 20.5 12C20.5 11.7239 20.2761 11.5 20 11.5C19.7239 11.5 19.5 11.7239 19.5 12C19.5 12.2761 19.7239 12.5 20 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 12.5C4.27614 12.5 4.5 12.2761 4.5 12C4.5 11.7239 4.27614 11.5 4 11.5C3.72386 11.5 3.5 11.7239 3.5 12C3.5 12.2761 3.72386 12.5 4 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v9=s.forwardRef(b9);var y9=v9,w9=Object.defineProperty,Qh=Object.getOwnPropertySymbols,x9=Object.prototype.hasOwnProperty,C9=Object.prototype.propertyIsEnumerable,e1=(e,t,n)=>t in e?w9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jc=(e,t)=>{for(var n in t||(t={}))x9.call(t,n)&&e1(e,n,t[n]);if(Qh)for(var n of Qh(t))C9.call(t,n)&&e1(e,n,t[n]);return e};const k9=(e,t)=>{const n=s.useContext(B),r=jc(jc({},n),e);return s.createElement("svg",jc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 8.01L7.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 8.01L17.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 12.01L7.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 12.01L17.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 16.01L7.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 16.01L17.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 2H3.6C3.26863 2 3 2.26863 3 2.6V21.4C3 21.7314 3.26863 22 3.6 22H7M7 2V4M7 2H17M17 2H20.4C20.7314 2 21 2.26863 21 2.6V21.4C21 21.7314 20.7314 22 20.4 22H17M17 2V4M17 22V20M17 22H7M7 22V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},E9=s.forwardRef(k9);var L9=E9,S9=Object.defineProperty,t1=Object.getOwnPropertySymbols,$9=Object.prototype.hasOwnProperty,j9=Object.prototype.propertyIsEnumerable,n1=(e,t,n)=>t in e?S9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oc=(e,t)=>{for(var n in t||(t={}))$9.call(t,n)&&n1(e,n,t[n]);if(t1)for(var n of t1(t))j9.call(t,n)&&n1(e,n,t[n]);return e};const O9=(e,t)=>{const n=s.useContext(B),r=Oc(Oc({},n),e);return s.createElement("svg",Oc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M1.99219 19H4.99219M7.99219 19H4.99219M4.99219 19V16M4.99219 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 2L16.5 2L21 6.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11 22H16.5C17.3284 22 18 21.3284 18 20.5V8.74853C18 8.5894 17.9368 8.43679 17.8243 8.32426L14.6757 5.17574C14.5632 5.06321 14.4106 5 14.2515 5H4.5C3.67157 5 3 5.67157 3 6.5V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 5V8.4C14 8.73137 14.2686 9 14.6 9H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R9=s.forwardRef(O9);var M9=R9,P9=Object.defineProperty,r1=Object.getOwnPropertySymbols,T9=Object.prototype.hasOwnProperty,A9=Object.prototype.propertyIsEnumerable,o1=(e,t,n)=>t in e?P9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rc=(e,t)=>{for(var n in t||(t={}))T9.call(t,n)&&o1(e,n,t[n]);if(r1)for(var n of r1(t))A9.call(t,n)&&o1(e,n,t[n]);return e};const I9=(e,t)=>{const n=s.useContext(B),r=Rc(Rc({},n),e);return s.createElement("svg",Rc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 18H10.5H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 14H7.5H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 10H8.5H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 2L16.5 2L21 6.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 20.5V6.5C3 5.67157 3.67157 5 4.5 5H14.2515C14.4106 5 14.5632 5.06321 14.6757 5.17574L17.8243 8.32426C17.9368 8.43679 18 8.5894 18 8.74853V20.5C18 21.3284 17.3284 22 16.5 22H4.5C3.67157 22 3 21.3284 3 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 5V8.4C14 8.73137 14.2686 9 14.6 9H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},N9=s.forwardRef(I9);var Dy=N9,D9=Object.defineProperty,s1=Object.getOwnPropertySymbols,V9=Object.prototype.hasOwnProperty,F9=Object.prototype.propertyIsEnumerable,i1=(e,t,n)=>t in e?D9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mc=(e,t)=>{for(var n in t||(t={}))V9.call(t,n)&&i1(e,n,t[n]);if(s1)for(var n of s1(t))F9.call(t,n)&&i1(e,n,t[n]);return e};const B9=(e,t)=>{const n=s.useContext(B),r=Mc(Mc({},n),e);return s.createElement("svg",Mc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20 14V3L9 5V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 19H18C19.1046 19 20 18.1046 20 17V14H17C15.8954 14 15 14.8954 15 16V17C15 18.1046 15.8954 19 17 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 21H7C8.10457 21 9 20.1046 9 19V16H6C4.89543 16 4 16.8954 4 18V19C4 20.1046 4.89543 21 6 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H9=s.forwardRef(B9);var W9=H9,z9=Object.defineProperty,a1=Object.getOwnPropertySymbols,_9=Object.prototype.hasOwnProperty,U9=Object.prototype.propertyIsEnumerable,c1=(e,t,n)=>t in e?z9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pc=(e,t)=>{for(var n in t||(t={}))_9.call(t,n)&&c1(e,n,t[n]);if(a1)for(var n of a1(t))U9.call(t,n)&&c1(e,n,t[n]);return e};const K9=(e,t)=>{const n=s.useContext(B),r=Pc(Pc({},n),e);return s.createElement("svg",Pc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},G9=s.forwardRef(K9);var Y9=G9,X9=Object.defineProperty,l1=Object.getOwnPropertySymbols,q9=Object.prototype.hasOwnProperty,Z9=Object.prototype.propertyIsEnumerable,u1=(e,t,n)=>t in e?X9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tc=(e,t)=>{for(var n in t||(t={}))q9.call(t,n)&&u1(e,n,t[n]);if(l1)for(var n of l1(t))Z9.call(t,n)&&u1(e,n,t[n]);return e};const J9=(e,t)=>{const n=s.useContext(B),r=Tc(Tc({},n),e);return s.createElement("svg",Tc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Q9=s.forwardRef(J9);var e$=Q9,t$=Object.defineProperty,d1=Object.getOwnPropertySymbols,n$=Object.prototype.hasOwnProperty,r$=Object.prototype.propertyIsEnumerable,f1=(e,t,n)=>t in e?t$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ac=(e,t)=>{for(var n in t||(t={}))n$.call(t,n)&&f1(e,n,t[n]);if(d1)for(var n of d1(t))r$.call(t,n)&&f1(e,n,t[n]);return e};const o$=(e,t)=>{const n=s.useContext(B),r=Ac(Ac({},n),e);return s.createElement("svg",Ac({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 15L12 9L18 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s$=s.forwardRef(o$);var i$=s$,a$=Object.defineProperty,p1=Object.getOwnPropertySymbols,c$=Object.prototype.hasOwnProperty,l$=Object.prototype.propertyIsEnumerable,m1=(e,t,n)=>t in e?a$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ic=(e,t)=>{for(var n in t||(t={}))c$.call(t,n)&&m1(e,n,t[n]);if(p1)for(var n of p1(t))l$.call(t,n)&&m1(e,n,t[n]);return e};const u$=(e,t)=>{const n=s.useContext(B),r=Ic(Ic({},n),e);return s.createElement("svg",Ic({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("rect",{x:3,y:2,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),s.createElement("rect",{x:8.5,y:17,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),s.createElement("rect",{x:14,y:2,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M6.5 7V10.5C6.5 11.6046 7.39543 12.5 8.5 12.5H15.5C16.6046 12.5 17.5 11.6046 17.5 10.5V7",stroke:"currentColor"}),s.createElement("path",{d:"M12 12.5V17",stroke:"currentColor"}))},d$=s.forwardRef(u$);var Vy=d$,f$=Object.defineProperty,h1=Object.getOwnPropertySymbols,p$=Object.prototype.hasOwnProperty,m$=Object.prototype.propertyIsEnumerable,g1=(e,t,n)=>t in e?f$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nc=(e,t)=>{for(var n in t||(t={}))p$.call(t,n)&&g1(e,n,t[n]);if(h1)for(var n of h1(t))m$.call(t,n)&&g1(e,n,t[n]);return e};const h$=(e,t)=>{const n=s.useContext(B),r=Nc(Nc({},n),e);return s.createElement("svg",Nc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19 19L17.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.5 15.5L14.5 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g$=s.forwardRef(h$);var b$=g$,v$=Object.defineProperty,b1=Object.getOwnPropertySymbols,y$=Object.prototype.hasOwnProperty,w$=Object.prototype.propertyIsEnumerable,v1=(e,t,n)=>t in e?v$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dc=(e,t)=>{for(var n in t||(t={}))y$.call(t,n)&&v1(e,n,t[n]);if(b1)for(var n of b1(t))w$.call(t,n)&&v1(e,n,t[n]);return e};const x$=(e,t)=>{const n=s.useContext(B),r=Dc(Dc({},n),e);return s.createElement("svg",Dc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 21V7C12 5.89543 12.8954 5 14 5H21.4C21.7314 5 22 5.26863 22 5.6V18.7143",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 21V7C12 5.89543 11.1046 5 10 5H2.6C2.26863 5 2 5.26863 2 5.6V18.7143",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M14 19L22 19",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M10 19L2 19",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 21C12 19.8954 12.8954 19 14 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 21C12 19.8954 11.1046 19 10 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},C$=s.forwardRef(x$);var Fy=C$,k$=Object.defineProperty,y1=Object.getOwnPropertySymbols,E$=Object.prototype.hasOwnProperty,L$=Object.prototype.propertyIsEnumerable,w1=(e,t,n)=>t in e?k$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vc=(e,t)=>{for(var n in t||(t={}))E$.call(t,n)&&w1(e,n,t[n]);if(y1)for(var n of y1(t))L$.call(t,n)&&w1(e,n,t[n]);return e};const S$=(e,t)=>{const n=s.useContext(B),r=Vc(Vc({},n),e);return s.createElement("svg",Vc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 3L15 3M21 3L12 12M21 3V9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3H11",stroke:"currentColor",strokeLinecap:"round"}))},$$=s.forwardRef(S$);var j$=$$,O$=Object.defineProperty,x1=Object.getOwnPropertySymbols,R$=Object.prototype.hasOwnProperty,M$=Object.prototype.propertyIsEnumerable,C1=(e,t,n)=>t in e?O$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fc=(e,t)=>{for(var n in t||(t={}))R$.call(t,n)&&C1(e,n,t[n]);if(x1)for(var n of x1(t))M$.call(t,n)&&C1(e,n,t[n]);return e};const P$=(e,t)=>{const n=s.useContext(B),r=Fc(Fc({},n),e);return s.createElement("svg",Fc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 11L12 14.5L15.5 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},T$=s.forwardRef(P$);var A$=T$,I$=Object.defineProperty,k1=Object.getOwnPropertySymbols,N$=Object.prototype.hasOwnProperty,D$=Object.prototype.propertyIsEnumerable,E1=(e,t,n)=>t in e?I$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bc=(e,t)=>{for(var n in t||(t={}))N$.call(t,n)&&E1(e,n,t[n]);if(k1)for(var n of k1(t))D$.call(t,n)&&E1(e,n,t[n]);return e};const V$=(e,t)=>{const n=s.useContext(B),r=Bc(Bc({},n),e);return s.createElement("svg",Bc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 13L12 9.5L15.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},F$=s.forwardRef(V$);var B$=F$,H$=Object.defineProperty,L1=Object.getOwnPropertySymbols,W$=Object.prototype.hasOwnProperty,z$=Object.prototype.propertyIsEnumerable,S1=(e,t,n)=>t in e?H$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hc=(e,t)=>{for(var n in t||(t={}))W$.call(t,n)&&S1(e,n,t[n]);if(L1)for(var n of L1(t))z$.call(t,n)&&S1(e,n,t[n]);return e};const _$=(e,t)=>{const n=s.useContext(B),r=Hc(Hc({},n),e);return s.createElement("svg",Hc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4 21.4V2.6C4 2.26863 4.26863 2 4.6 2H16.2515C16.4106 2 16.5632 2.06321 16.6757 2.17574L19.8243 5.32426C19.9368 5.43679 20 5.5894 20 5.74853V21.4C20 21.7314 19.7314 22 19.4 22H4.6C4.26863 22 4 21.7314 4 21.4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 10L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 18L16 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 14L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},U$=s.forwardRef(_$);var K$=U$,G$=Object.defineProperty,$1=Object.getOwnPropertySymbols,Y$=Object.prototype.hasOwnProperty,X$=Object.prototype.propertyIsEnumerable,j1=(e,t,n)=>t in e?G$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wc=(e,t)=>{for(var n in t||(t={}))Y$.call(t,n)&&j1(e,n,t[n]);if($1)for(var n of $1(t))X$.call(t,n)&&j1(e,n,t[n]);return e};const q$=(e,t)=>{const n=s.useContext(B),r=Wc(Wc({},n),e);return s.createElement("svg",Wc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20.5096 9.54C20.4243 9.77932 20.2918 9.99909 20.12 10.1863C19.9483 10.3735 19.7407 10.5244 19.5096 10.63C18.2796 11.1806 17.2346 12.0745 16.5002 13.2045C15.7659 14.3345 15.3733 15.6524 15.3696 17C15.3711 17.4701 15.418 17.9389 15.5096 18.4C15.5707 18.6818 15.5747 18.973 15.5215 19.2564C15.4682 19.5397 15.3588 19.8096 15.1996 20.05C15.0649 20.2604 14.8877 20.4403 14.6793 20.5781C14.4709 20.7158 14.2359 20.8085 13.9896 20.85C13.4554 20.9504 12.9131 21.0006 12.3696 21C11.1638 21.0006 9.97011 20.7588 8.85952 20.2891C7.74893 19.8194 6.74405 19.1314 5.90455 18.2657C5.06506 17.4001 4.40807 16.3747 3.97261 15.2502C3.53714 14.1257 3.33208 12.9252 3.36959 11.72C3.4472 9.47279 4.3586 7.33495 5.92622 5.72296C7.49385 4.11097 9.60542 3.14028 11.8496 3H12.3596C14.0353 3.00042 15.6777 3.46869 17.1017 4.35207C18.5257 5.23544 19.6748 6.49885 20.4196 8C20.6488 8.47498 20.6812 9.02129 20.5096 9.52V9.54Z",stroke:"currentColor"}),s.createElement("path",{d:"M8 16.01L8.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 12.01L6.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 8.01L8.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 6.01L12.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 8.01L16.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Z$=s.forwardRef(q$);var By=Z$,J$=Object.defineProperty,O1=Object.getOwnPropertySymbols,Q$=Object.prototype.hasOwnProperty,ej=Object.prototype.propertyIsEnumerable,R1=(e,t,n)=>t in e?J$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zc=(e,t)=>{for(var n in t||(t={}))Q$.call(t,n)&&R1(e,n,t[n]);if(O1)for(var n of O1(t))ej.call(t,n)&&R1(e,n,t[n]);return e};const tj=(e,t)=>{const n=s.useContext(B),r=zc(zc({},n),e);return s.createElement("svg",zc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 4H6C4.89543 4 4 4.89543 4 6V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V6C20 4.89543 19.1046 4 18 4H15.5",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M8 6.4V4.5C8 4.22386 8.22386 4 8.5 4C8.77614 4 9.00422 3.77604 9.05152 3.50398C9.19968 2.65171 9.77399 1 12 1C14.226 1 14.8003 2.65171 14.9485 3.50398C14.9958 3.77604 15.2239 4 15.5 4C15.7761 4 16 4.22386 16 4.5V6.4C16 6.73137 15.7314 7 15.4 7H8.6C8.26863 7 8 6.73137 8 6.4Z",stroke:"currentColor",strokeLinecap:"round"}))},nj=s.forwardRef(tj);var rj=nj,oj=Object.defineProperty,M1=Object.getOwnPropertySymbols,sj=Object.prototype.hasOwnProperty,ij=Object.prototype.propertyIsEnumerable,P1=(e,t,n)=>t in e?oj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_c=(e,t)=>{for(var n in t||(t={}))sj.call(t,n)&&P1(e,n,t[n]);if(M1)for(var n of M1(t))ij.call(t,n)&&P1(e,n,t[n]);return e};const aj=(e,t)=>{const n=s.useContext(B),r=_c(_c({},n),e);return s.createElement("svg",_c({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 16.5V3M18 3L21.5 6.5M18 3L14.5 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 16.5C18 18.433 16.433 20 14.5 20C12.567 20 11 18.433 11 16.5V7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11 7.5C11 5.567 9.433 4 7.5 4C5.567 4 4 5.567 4 7.5V19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},cj=s.forwardRef(aj);var lj=cj,uj=Object.defineProperty,T1=Object.getOwnPropertySymbols,dj=Object.prototype.hasOwnProperty,fj=Object.prototype.propertyIsEnumerable,A1=(e,t,n)=>t in e?uj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uc=(e,t)=>{for(var n in t||(t={}))dj.call(t,n)&&A1(e,n,t[n]);if(T1)for(var n of T1(t))fj.call(t,n)&&A1(e,n,t[n]);return e};const pj=(e,t)=>{const n=s.useContext(B),r=Uc(Uc({},n),e);return s.createElement("svg",Uc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 18.4V5.6C6 5.26863 6.26863 5 6.6 5H9.4C9.73137 5 10 5.26863 10 5.6V18.4C10 18.7314 9.73137 19 9.4 19H6.6C6.26863 19 6 18.7314 6 18.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M14 18.4V5.6C14 5.26863 14.2686 5 14.6 5H17.4C17.7314 5 18 5.26863 18 5.6V18.4C18 18.7314 17.7314 19 17.4 19H14.6C14.2686 19 14 18.7314 14 18.4Z",stroke:"currentColor"}))},mj=s.forwardRef(pj);var hj=mj,gj=Object.defineProperty,I1=Object.getOwnPropertySymbols,bj=Object.prototype.hasOwnProperty,vj=Object.prototype.propertyIsEnumerable,N1=(e,t,n)=>t in e?gj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kc=(e,t)=>{for(var n in t||(t={}))bj.call(t,n)&&N1(e,n,t[n]);if(I1)for(var n of I1(t))vj.call(t,n)&&N1(e,n,t[n]);return e};const yj=(e,t)=>{const n=s.useContext(B),r=Kc(Kc({},n),e);return s.createElement("svg",Kc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.67602 7.8896L6.69713 7.78823L5.00007 9.48528L14.1925 18.6777L15.8895 16.9806L15.7879 16M11.4847 7L15.1568 2.67141L21.0065 8.5211L16.6991 12.175",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},wj=s.forwardRef(yj);var xj=wj,Cj=Object.defineProperty,D1=Object.getOwnPropertySymbols,kj=Object.prototype.hasOwnProperty,Ej=Object.prototype.propertyIsEnumerable,V1=(e,t,n)=>t in e?Cj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t)=>{for(var n in t||(t={}))kj.call(t,n)&&V1(e,n,t[n]);if(D1)for(var n of D1(t))Ej.call(t,n)&&V1(e,n,t[n]);return e};const Lj=(e,t)=>{const n=s.useContext(B),r=Gc(Gc({},n),e);return s.createElement("svg",Gc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5.00007 9.48528L14.1925 18.6777L15.8895 16.9806L15.4974 13.1944L21.0065 8.5211L15.1568 2.67141L10.4834 8.18034L6.69713 7.78823L5.00007 9.48528Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Sj=s.forwardRef(Lj);var $j=Sj,jj=Object.defineProperty,F1=Object.getOwnPropertySymbols,Oj=Object.prototype.hasOwnProperty,Rj=Object.prototype.propertyIsEnumerable,B1=(e,t,n)=>t in e?jj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yc=(e,t)=>{for(var n in t||(t={}))Oj.call(t,n)&&B1(e,n,t[n]);if(F1)for(var n of F1(t))Rj.call(t,n)&&B1(e,n,t[n]);return e};const Mj=(e,t)=>{const n=s.useContext(B),r=Yc(Yc({},n),e);return s.createElement("svg",Yc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6.90588 4.53682C6.50592 4.2998 6 4.58808 6 5.05299V18.947C6 19.4119 6.50592 19.7002 6.90588 19.4632L18.629 12.5162C19.0211 12.2838 19.0211 11.7162 18.629 11.4838L6.90588 4.53682Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Pj=s.forwardRef(Mj);var Tj=Pj,Aj=Object.defineProperty,H1=Object.getOwnPropertySymbols,Ij=Object.prototype.hasOwnProperty,Nj=Object.prototype.propertyIsEnumerable,W1=(e,t,n)=>t in e?Aj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xc=(e,t)=>{for(var n in t||(t={}))Ij.call(t,n)&&W1(e,n,t[n]);if(H1)for(var n of H1(t))Nj.call(t,n)&&W1(e,n,t[n]);return e};const Dj=(e,t)=>{const n=s.useContext(B),r=Xc(Xc({},n),e);return s.createElement("svg",Xc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 11L16 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 17L13 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 5L20 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5C17 17.6716 17.6716 17 18.5 17C19.3284 17 20 17.6716 20 18.5ZM20 18.5V10.6C20 10.2686 20.2686 10 20.6 10H22",stroke:"currentColor",strokeLinecap:"round"}))},Vj=s.forwardRef(Dj);var Fj=Vj,Bj=Object.defineProperty,z1=Object.getOwnPropertySymbols,Hj=Object.prototype.hasOwnProperty,Wj=Object.prototype.propertyIsEnumerable,_1=(e,t,n)=>t in e?Bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qc=(e,t)=>{for(var n in t||(t={}))Hj.call(t,n)&&_1(e,n,t[n]);if(z1)for(var n of z1(t))Wj.call(t,n)&&_1(e,n,t[n]);return e};const zj=(e,t)=>{const n=s.useContext(B),r=qc(qc({},n),e);return s.createElement("svg",qc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 12H12M18 12H12M12 12V6M12 12V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_j=s.forwardRef(zj);var Uj=_j,Kj=Object.defineProperty,U1=Object.getOwnPropertySymbols,Gj=Object.prototype.hasOwnProperty,Yj=Object.prototype.propertyIsEnumerable,K1=(e,t,n)=>t in e?Kj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zc=(e,t)=>{for(var n in t||(t={}))Gj.call(t,n)&&K1(e,n,t[n]);if(U1)for(var n of U1(t))Yj.call(t,n)&&K1(e,n,t[n]);return e};const Xj=(e,t)=>{const n=s.useContext(B),r=Zc(Zc({},n),e);return s.createElement("svg",Zc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 19.0007C3.57111 17.1763 2 14.2716 2 11C2 5.47715 6.47715 1 12 1C17.5228 1 22 5.47715 22 11C22 14.2716 20.4289 17.1763 18 19.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 19.0007C3.57111 17.1763 2 14.2716 2 11C2 5.47715 6.47715 1 12 1C17.5228 1 22 5.47715 22 11C22 14.2716 20.4289 17.1763 18 19.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.52779 15C6.57771 13.9385 6 12.5367 6 11C6 7.68629 8.68629 5 12 5C15.3137 5 18 7.68629 18 11C18 12.5367 17.4223 13.9385 16.4722 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.076 16.2827L10.8906 15.7396C11.5624 15.2917 12.4376 15.2917 13.1094 15.7396L13.924 16.2827C14.5789 16.7192 14.9168 17.4993 14.7874 18.2756L14.2785 21.3288C14.1178 22.2932 13.2834 23 12.3057 23H11.6943C10.7166 23 9.8822 22.2932 9.72147 21.3288L9.2126 18.2756C9.08321 17.4993 9.42114 16.7192 10.076 16.2827Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qj=s.forwardRef(Xj);var Zj=qj,Jj=Object.defineProperty,G1=Object.getOwnPropertySymbols,Qj=Object.prototype.hasOwnProperty,e8=Object.prototype.propertyIsEnumerable,Y1=(e,t,n)=>t in e?Jj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jc=(e,t)=>{for(var n in t||(t={}))Qj.call(t,n)&&Y1(e,n,t[n]);if(G1)for(var n of G1(t))e8.call(t,n)&&Y1(e,n,t[n]);return e};const t8=(e,t)=>{const n=s.useContext(B),r=Jc(Jc({},n),e);return s.createElement("svg",Jc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 6L12 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 16L12 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 12H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 12H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},n8=s.forwardRef(t8);var r8=n8,o8=Object.defineProperty,X1=Object.getOwnPropertySymbols,s8=Object.prototype.hasOwnProperty,i8=Object.prototype.propertyIsEnumerable,q1=(e,t,n)=>t in e?o8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qc=(e,t)=>{for(var n in t||(t={}))s8.call(t,n)&&q1(e,n,t[n]);if(X1)for(var n of X1(t))i8.call(t,n)&&q1(e,n,t[n]);return e};const a8=(e,t)=>{const n=s.useContext(B),r=Qc(Qc({},n),e);return s.createElement("svg",Qc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4 20L9 15M9 15V19M9 15H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 4L15 9M15 9V5M15 9H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},c8=s.forwardRef(a8);var l8=c8,u8=Object.defineProperty,Z1=Object.getOwnPropertySymbols,d8=Object.prototype.hasOwnProperty,f8=Object.prototype.propertyIsEnumerable,J1=(e,t,n)=>t in e?u8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,el=(e,t)=>{for(var n in t||(t={}))d8.call(t,n)&&J1(e,n,t[n]);if(Z1)for(var n of Z1(t))f8.call(t,n)&&J1(e,n,t[n]);return e};const p8=(e,t)=>{const n=s.useContext(B),r=el(el({},n),e);return s.createElement("svg",el({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21.1679 8C19.6247 4.46819 16.1006 2 11.9999 2C6.81459 2 2.55104 5.94668 2.04932 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2.88146 16C4.42458 19.5318 7.94874 22 12.0494 22C17.2347 22 21.4983 18.0533 22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.04932 16H2.64932C2.31795 16 2.04932 16.2686 2.04932 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},m8=s.forwardRef(p8);var Hy=m8,h8=Object.defineProperty,Q1=Object.getOwnPropertySymbols,g8=Object.prototype.hasOwnProperty,b8=Object.prototype.propertyIsEnumerable,eg=(e,t,n)=>t in e?h8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tl=(e,t)=>{for(var n in t||(t={}))g8.call(t,n)&&eg(e,n,t[n]);if(Q1)for(var n of Q1(t))b8.call(t,n)&&eg(e,n,t[n]);return e};const v8=(e,t)=>{const n=s.useContext(B),r=tl(tl({},n),e);return s.createElement("svg",tl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 17H8C6.33333 17 3 16 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 7H16C17.6667 7 21 8 21 12C21 13.4943 20.5348 14.57 19.865 15.3312",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14.5 14.5L17 17L14.5 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 8V5V3L2 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},y8=s.forwardRef(v8);var w8=y8,x8=Object.defineProperty,tg=Object.getOwnPropertySymbols,C8=Object.prototype.hasOwnProperty,k8=Object.prototype.propertyIsEnumerable,ng=(e,t,n)=>t in e?x8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nl=(e,t)=>{for(var n in t||(t={}))C8.call(t,n)&&ng(e,n,t[n]);if(tg)for(var n of tg(t))k8.call(t,n)&&ng(e,n,t[n]);return e};const E8=(e,t)=>{const n=s.useContext(B),r=nl(nl({},n),e);return s.createElement("svg",nl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 17H8C6.33333 17 3 16 3 12C3 8 6.33333 7 8 7H16C17.6667 7 21 8 21 12C21 13.4943 20.5348 14.57 19.865 15.3312",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14.5 14.5L17 17L14.5 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L8=s.forwardRef(E8);var S8=L8,$8=Object.defineProperty,rg=Object.getOwnPropertySymbols,j8=Object.prototype.hasOwnProperty,O8=Object.prototype.propertyIsEnumerable,og=(e,t,n)=>t in e?$8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rl=(e,t)=>{for(var n in t||(t={}))j8.call(t,n)&&og(e,n,t[n]);if(rg)for(var n of rg(t))O8.call(t,n)&&og(e,n,t[n]);return e};const R8=(e,t)=>{const n=s.useContext(B),r=rl(rl({},n),e);return s.createElement("svg",rl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},M8=s.forwardRef(R8);var P8=M8,T8=Object.defineProperty,sg=Object.getOwnPropertySymbols,A8=Object.prototype.hasOwnProperty,I8=Object.prototype.propertyIsEnumerable,ig=(e,t,n)=>t in e?T8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ol=(e,t)=>{for(var n in t||(t={}))A8.call(t,n)&&ig(e,n,t[n]);if(sg)for(var n of sg(t))I8.call(t,n)&&ig(e,n,t[n]);return e};const N8=(e,t)=>{const n=s.useContext(B),r=ol(ol({},n),e);return s.createElement("svg",ol({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M22 12L3 20L6.5625 12L3 4L22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 12L22 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},D8=s.forwardRef(N8);var V8=D8,F8=Object.defineProperty,ag=Object.getOwnPropertySymbols,B8=Object.prototype.hasOwnProperty,H8=Object.prototype.propertyIsEnumerable,cg=(e,t,n)=>t in e?F8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sl=(e,t)=>{for(var n in t||(t={}))B8.call(t,n)&&cg(e,n,t[n]);if(ag)for(var n of ag(t))H8.call(t,n)&&cg(e,n,t[n]);return e};const W8=(e,t)=>{const n=s.useContext(B),r=sl(sl({},n),e);return s.createElement("svg",sl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 18.01L6.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 6.01L6.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 9.4V2.6C2 2.26863 2.26863 2 2.6 2H21.4C21.7314 2 22 2.26863 22 2.6V9.4C22 9.73137 21.7314 10 21.4 10H2.6C2.26863 10 2 9.73137 2 9.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M2 21.4V14.6C2 14.2686 2.26863 14 2.6 14H21.4C21.7314 14 22 14.2686 22 14.6V21.4C22 21.7314 21.7314 22 21.4 22H2.6C2.26863 22 2 21.7314 2 21.4Z",stroke:"currentColor"}))},z8=s.forwardRef(W8);var _8=z8,U8=Object.defineProperty,lg=Object.getOwnPropertySymbols,K8=Object.prototype.hasOwnProperty,G8=Object.prototype.propertyIsEnumerable,ug=(e,t,n)=>t in e?U8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,il=(e,t)=>{for(var n in t||(t={}))K8.call(t,n)&&ug(e,n,t[n]);if(lg)for(var n of lg(t))G8.call(t,n)&&ug(e,n,t[n]);return e};const Y8=(e,t)=>{const n=s.useContext(B),r=il(il({},n),e);return s.createElement("svg",il({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M11.6065 2.34184C11.8322 2.14578 12.1678 2.14578 12.3935 2.34184L14.3418 4.03445C14.4646 4.14111 14.6254 4.19336 14.7874 4.17924L17.3586 3.9551C17.6564 3.92913 17.9279 4.1264 17.9953 4.41768L18.5766 6.93224C18.6133 7.09069 18.7126 7.22748 18.852 7.31129L21.0639 8.64123C21.3201 8.79529 21.4238 9.11447 21.307 9.3897L20.2994 11.7657C20.2359 11.9155 20.2359 12.0845 20.2994 12.2343L21.307 14.6103C21.4238 14.8855 21.3201 15.2047 21.0639 15.3588L18.852 16.6887C18.7126 16.7725 18.6133 16.9093 18.5766 17.0678L17.9953 19.5823C17.9279 19.8736 17.6564 20.0709 17.3586 20.0449L14.7874 19.8208C14.6254 19.8066 14.4646 19.8589 14.3418 19.9655L12.3935 21.6582C12.1678 21.8542 11.8322 21.8542 11.6065 21.6582L9.65816 19.9655C9.53539 19.8589 9.37458 19.8066 9.21256 19.8208L6.64142 20.0449C6.34359 20.0709 6.07208 19.8736 6.00474 19.5823L5.42338 17.0678C5.38675 16.9093 5.28736 16.7725 5.14798 16.6887L2.93615 15.3588C2.67993 15.2047 2.57622 14.8855 2.69295 14.6103L3.70065 12.2343C3.76414 12.0845 3.76414 11.9155 3.70065 11.7657L2.69295 9.3897C2.57622 9.11447 2.67993 8.79529 2.93615 8.64123L5.14798 7.31129C5.28736 7.22748 5.38675 7.09069 5.42338 6.93224L6.00474 4.41768C6.07208 4.1264 6.34359 3.92913 6.64142 3.9551L9.21256 4.17924C9.37458 4.19336 9.53539 4.14111 9.65816 4.03445L11.6065 2.34184Z",stroke:"currentColor"}),s.createElement("path",{d:"M9 13L11 15L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},X8=s.forwardRef(Y8);var q8=X8,Z8=Object.defineProperty,dg=Object.getOwnPropertySymbols,J8=Object.prototype.hasOwnProperty,Q8=Object.prototype.propertyIsEnumerable,fg=(e,t,n)=>t in e?Z8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,al=(e,t)=>{for(var n in t||(t={}))J8.call(t,n)&&fg(e,n,t[n]);if(dg)for(var n of dg(t))Q8.call(t,n)&&fg(e,n,t[n]);return e};const eO=(e,t)=>{const n=s.useContext(B),r=al(al({},n),e);return s.createElement("svg",al({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19.6224 10.3954L18.5247 7.7448L20 6L18 4L16.2647 5.48295L13.5578 4.36974L12.9353 2H10.981L10.3491 4.40113L7.70441 5.51596L6 4L4 6L5.45337 7.78885L4.3725 10.4463L2 11V13L4.40111 13.6555L5.51575 16.2997L4 18L6 20L7.79116 18.5403L10.397 19.6123L11 22H13L13.6045 19.6132L16.2551 18.5155C16.6969 18.8313 18 20 18 20L20 18L18.5159 16.2494L19.6139 13.598L21.9999 12.9772L22 11L19.6224 10.3954Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},tO=s.forwardRef(eO);var nO=tO,rO=Object.defineProperty,pg=Object.getOwnPropertySymbols,oO=Object.prototype.hasOwnProperty,sO=Object.prototype.propertyIsEnumerable,mg=(e,t,n)=>t in e?rO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cl=(e,t)=>{for(var n in t||(t={}))oO.call(t,n)&&mg(e,n,t[n]);if(pg)for(var n of pg(t))sO.call(t,n)&&mg(e,n,t[n]);return e};const iO=(e,t)=>{const n=s.useContext(B),r=cl(cl({},n),e);return s.createElement("svg",cl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569 16.3431 22 18 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.5 6.5L8.5 10.5",stroke:"currentColor"}),s.createElement("path",{d:"M8.5 13.5L15.5 17.5",stroke:"currentColor"}))},aO=s.forwardRef(iO);var cO=aO,lO=Object.defineProperty,hg=Object.getOwnPropertySymbols,uO=Object.prototype.hasOwnProperty,dO=Object.prototype.propertyIsEnumerable,gg=(e,t,n)=>t in e?lO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ll=(e,t)=>{for(var n in t||(t={}))uO.call(t,n)&&gg(e,n,t[n]);if(hg)for(var n of hg(t))dO.call(t,n)&&gg(e,n,t[n]);return e};const fO=(e,t)=>{const n=s.useContext(B),r=ll(ll({},n),e);return s.createElement("svg",ll({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 11.5L11.5 14.5L16.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5 18L3.13036 4.91253C3.05646 4.39524 3.39389 3.91247 3.90398 3.79912L11.5661 2.09641C11.8519 2.03291 12.1481 2.03291 12.4339 2.09641L20.096 3.79912C20.6061 3.91247 20.9435 4.39524 20.8696 4.91252L19 18C18.9293 18.495 18.5 21.5 12 21.5C5.5 21.5 5.07071 18.495 5 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},pO=s.forwardRef(fO);var mO=pO,hO=Object.defineProperty,bg=Object.getOwnPropertySymbols,gO=Object.prototype.hasOwnProperty,bO=Object.prototype.propertyIsEnumerable,vg=(e,t,n)=>t in e?hO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ul=(e,t)=>{for(var n in t||(t={}))gO.call(t,n)&&vg(e,n,t[n]);if(bg)for(var n of bg(t))bO.call(t,n)&&vg(e,n,t[n]);return e};const vO=(e,t)=>{const n=s.useContext(B),r=ul(ul({},n),e);return s.createElement("svg",ul({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M22 6.99999C19 6.99999 13.5 6.99999 11.5 12.5C9.5 18 5 18 2 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 5C20 5 21.219 6.21895 22 7C21.219 7.78105 20 9 20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M22 18C19 18 13.5 18 11.5 12.5C9.5 6.99999 5 7.00001 2 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 20C20 20 21.219 18.781 22 18C21.219 17.219 20 16 20 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},yO=s.forwardRef(vO);var wO=yO,xO=Object.defineProperty,yg=Object.getOwnPropertySymbols,CO=Object.prototype.hasOwnProperty,kO=Object.prototype.propertyIsEnumerable,wg=(e,t,n)=>t in e?xO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dl=(e,t)=>{for(var n in t||(t={}))CO.call(t,n)&&wg(e,n,t[n]);if(yg)for(var n of yg(t))kO.call(t,n)&&wg(e,n,t[n]);return e};const EO=(e,t)=>{const n=s.useContext(B),r=dl(dl({},n),e);return s.createElement("svg",dl({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.25 10L5.5 12L7.25 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},LO=s.forwardRef(EO);var Wy=LO,SO=Object.defineProperty,xg=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,jO=Object.prototype.propertyIsEnumerable,Cg=(e,t,n)=>t in e?SO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t)=>{for(var n in t||(t={}))$O.call(t,n)&&Cg(e,n,t[n]);if(xg)for(var n of xg(t))jO.call(t,n)&&Cg(e,n,t[n]);return e};const OO=(e,t)=>{const n=s.useContext(B),r=fl(fl({},n),e);return s.createElement("svg",fl({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5.5 10L7.25 12L5.5 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},RO=s.forwardRef(OO);var _d=RO,MO=Object.defineProperty,kg=Object.getOwnPropertySymbols,PO=Object.prototype.hasOwnProperty,TO=Object.prototype.propertyIsEnumerable,Eg=(e,t,n)=>t in e?MO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pl=(e,t)=>{for(var n in t||(t={}))PO.call(t,n)&&Eg(e,n,t[n]);if(kg)for(var n of kg(t))TO.call(t,n)&&Eg(e,n,t[n]);return e};const AO=(e,t)=>{const n=s.useContext(B),r=pl(pl({},n),e);return s.createElement("svg",pl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.97179 5.2672C6.57832 4.95657 6 5.23682 6 5.73813V18.2619C6 18.7632 6.57832 19.0434 6.97179 18.7328L14.9035 12.4709C15.2078 12.2307 15.2078 11.7693 14.9035 11.5291L6.97179 5.2672Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},IO=s.forwardRef(AO);var NO=IO,DO=Object.defineProperty,Lg=Object.getOwnPropertySymbols,VO=Object.prototype.hasOwnProperty,FO=Object.prototype.propertyIsEnumerable,Sg=(e,t,n)=>t in e?DO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ml=(e,t)=>{for(var n in t||(t={}))VO.call(t,n)&&Sg(e,n,t[n]);if(Lg)for(var n of Lg(t))FO.call(t,n)&&Sg(e,n,t[n]);return e};const BO=(e,t)=>{const n=s.useContext(B),r=ml(ml({},n),e);return s.createElement("svg",ml({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.0282 5.2672C17.4217 4.95657 18 5.23682 18 5.73813V18.2619C18 18.7632 17.4217 19.0434 17.0282 18.7328L9.09651 12.4709C8.79223 12.2307 8.79223 11.7693 9.09651 11.5291L17.0282 5.2672Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},HO=s.forwardRef(BO);var WO=HO,zO=Object.defineProperty,$g=Object.getOwnPropertySymbols,_O=Object.prototype.hasOwnProperty,UO=Object.prototype.propertyIsEnumerable,jg=(e,t,n)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t)=>{for(var n in t||(t={}))_O.call(t,n)&&jg(e,n,t[n]);if($g)for(var n of $g(t))UO.call(t,n)&&jg(e,n,t[n]);return e};const KO=(e,t)=>{const n=s.useContext(B),r=hl(hl({},n),e);return s.createElement("svg",hl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M1 13.8571V10.1429C1 9.03829 1.89543 8.14286 3 8.14286H5.9C6.09569 8.14286 6.28708 8.08544 6.45046 7.97772L12.4495 4.02228C13.1144 3.5839 14 4.06075 14 4.85714V19.1429C14 19.9392 13.1144 20.4161 12.4495 19.9777L6.45046 16.0223C6.28708 15.9146 6.09569 15.8571 5.9 15.8571H3C1.89543 15.8571 1 14.9617 1 13.8571Z",stroke:"currentColor"}),s.createElement("path",{d:"M17.5 7.5C17.5 7.5 19 9 19 11.5C19 14 17.5 15.5 17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5 4.5C20.5 4.5 23 7 23 11.5C23 16 20.5 18.5 20.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},GO=s.forwardRef(KO);var zy=GO,YO=Object.defineProperty,Og=Object.getOwnPropertySymbols,XO=Object.prototype.hasOwnProperty,qO=Object.prototype.propertyIsEnumerable,Rg=(e,t,n)=>t in e?YO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gl=(e,t)=>{for(var n in t||(t={}))XO.call(t,n)&&Rg(e,n,t[n]);if(Og)for(var n of Og(t))qO.call(t,n)&&Rg(e,n,t[n]);return e};const ZO=(e,t)=>{const n=s.useContext(B),r=gl(gl({},n),e);return s.createElement("svg",gl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19.5 7.5C19.5 7.5 21 9 21 11.5C21 14 19.5 15.5 19.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 13.8571V10.1429C2 9.03829 2.89543 8.14286 4 8.14286H6.9C7.09569 8.14286 7.28708 8.08544 7.45046 7.97772L13.4495 4.02228C14.1144 3.5839 15 4.06075 15 4.85714V19.1429C15 19.9392 14.1144 20.4161 13.4495 19.9777L7.45046 16.0223C7.28708 15.9146 7.09569 15.8571 6.9 15.8571H4C2.89543 15.8571 2 14.9617 2 13.8571Z",stroke:"currentColor"}))},JO=s.forwardRef(ZO);var QO=JO,eR=Object.defineProperty,Mg=Object.getOwnPropertySymbols,tR=Object.prototype.hasOwnProperty,nR=Object.prototype.propertyIsEnumerable,Pg=(e,t,n)=>t in e?eR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t)=>{for(var n in t||(t={}))tR.call(t,n)&&Pg(e,n,t[n]);if(Mg)for(var n of Mg(t))nR.call(t,n)&&Pg(e,n,t[n]);return e};const rR=(e,t)=>{const n=s.useContext(B),r=bl(bl({},n),e);return s.createElement("svg",bl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 14L20.0005 12M22 10L20.0005 12M20.0005 12L18 10M20.0005 12L22 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 13.8571V10.1429C2 9.03829 2.89543 8.14286 4 8.14286H6.9C7.09569 8.14286 7.28708 8.08544 7.45046 7.97772L13.4495 4.02228C14.1144 3.5839 15 4.06075 15 4.85714V19.1429C15 19.9392 14.1144 20.4161 13.4495 19.9777L7.45046 16.0223C7.28708 15.9146 7.09569 15.8571 6.9 15.8571H4C2.89543 15.8571 2 14.9617 2 13.8571Z",stroke:"currentColor"}))},oR=s.forwardRef(rR);var sR=oR,iR=Object.defineProperty,Tg=Object.getOwnPropertySymbols,aR=Object.prototype.hasOwnProperty,cR=Object.prototype.propertyIsEnumerable,Ag=(e,t,n)=>t in e?iR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vl=(e,t)=>{for(var n in t||(t={}))aR.call(t,n)&&Ag(e,n,t[n]);if(Tg)for(var n of Tg(t))cR.call(t,n)&&Ag(e,n,t[n]);return e};const lR=(e,t)=>{const n=s.useContext(B),r=vl(vl({},n),e);return s.createElement("svg",vl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8 15C12.8747 15 15 12.949 15 8C15 12.949 17.1104 15 22 15C17.1104 15 15 17.1104 15 22C15 17.1104 12.8747 15 8 15Z",stroke:"currentColor",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 6.5C5.13376 6.5 6.5 5.18153 6.5 2C6.5 5.18153 7.85669 6.5 11 6.5C7.85669 6.5 6.5 7.85669 6.5 11C6.5 7.85669 5.13376 6.5 2 6.5Z",stroke:"currentColor",strokeLinejoin:"round"}))},uR=s.forwardRef(lR);var dR=uR,fR=Object.defineProperty,Ig=Object.getOwnPropertySymbols,pR=Object.prototype.hasOwnProperty,mR=Object.prototype.propertyIsEnumerable,Ng=(e,t,n)=>t in e?fR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yl=(e,t)=>{for(var n in t||(t={}))pR.call(t,n)&&Ng(e,n,t[n]);if(Ig)for(var n of Ig(t))mR.call(t,n)&&Ng(e,n,t[n]);return e};const hR=(e,t)=>{const n=s.useContext(B),r=yl(yl({},n),e);return s.createElement("svg",yl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},gR=s.forwardRef(hR);var bR=gR,vR=Object.defineProperty,Dg=Object.getOwnPropertySymbols,yR=Object.prototype.hasOwnProperty,wR=Object.prototype.propertyIsEnumerable,Vg=(e,t,n)=>t in e?vR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wl=(e,t)=>{for(var n in t||(t={}))yR.call(t,n)&&Vg(e,n,t[n]);if(Dg)for(var n of Dg(t))wR.call(t,n)&&Vg(e,n,t[n]);return e};const xR=(e,t)=>{const n=s.useContext(B),r=wl(wl({},n),e);return s.createElement("svg",wl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 13C7.55228 13 8 12.5523 8 12C8 11.4477 7.55228 11 7 11C6.44772 11 6 11.4477 6 12C6 12.5523 6.44772 13 7 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H17C19.7614 7 22 9.23858 22 12C22 14.7614 19.7614 17 17 17Z",stroke:"currentColor"}))},CR=s.forwardRef(xR);var kR=CR,ER=Object.defineProperty,Fg=Object.getOwnPropertySymbols,LR=Object.prototype.hasOwnProperty,SR=Object.prototype.propertyIsEnumerable,Bg=(e,t,n)=>t in e?ER(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xl=(e,t)=>{for(var n in t||(t={}))LR.call(t,n)&&Bg(e,n,t[n]);if(Fg)for(var n of Fg(t))SR.call(t,n)&&Bg(e,n,t[n]);return e};const $R=(e,t)=>{const n=s.useContext(B),r=xl(xl({},n),e);return s.createElement("svg",xl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 13C17.5523 13 18 12.5523 18 12C18 11.4477 17.5523 11 17 11C16.4477 11 16 11.4477 16 12C16 12.5523 16.4477 13 17 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H17C19.7614 7 22 9.23858 22 12C22 14.7614 19.7614 17 17 17Z",stroke:"currentColor"}))},jR=s.forwardRef($R);var OR=jR,RR=Object.defineProperty,Hg=Object.getOwnPropertySymbols,MR=Object.prototype.hasOwnProperty,PR=Object.prototype.propertyIsEnumerable,Wg=(e,t,n)=>t in e?RR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cl=(e,t)=>{for(var n in t||(t={}))MR.call(t,n)&&Wg(e,n,t[n]);if(Hg)for(var n of Hg(t))PR.call(t,n)&&Wg(e,n,t[n]);return e};const TR=(e,t)=>{const n=s.useContext(B),r=Cl(Cl({},n),e);return s.createElement("svg",Cl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},AR=s.forwardRef(TR);var IR=AR,NR=Object.defineProperty,zg=Object.getOwnPropertySymbols,DR=Object.prototype.hasOwnProperty,VR=Object.prototype.propertyIsEnumerable,_g=(e,t,n)=>t in e?NR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kl=(e,t)=>{for(var n in t||(t={}))DR.call(t,n)&&_g(e,n,t[n]);if(zg)for(var n of zg(t))VR.call(t,n)&&_g(e,n,t[n]);return e};const FR=(e,t)=>{const n=s.useContext(B),r=kl(kl({},n),e);return s.createElement("svg",kl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 12H7.5H12H16.5H21M3 12V16.5M3 12V7.5M21 12V16.5M21 12V7.5M3 16.5V20.4C3 20.7314 3.26863 21 3.6 21H7.5H12H16.5H20.4C20.7314 21 21 20.7314 21 20.4V16.5M3 16.5H7.5H12H16.5H21M21 7.5V3.6C21 3.26863 20.7314 3 20.4 3H16.5H12H7.5H3.6C3.26863 3 3 3.26863 3 3.6V7.5M21 7.5H16.5H12H7.5H3",stroke:"currentColor"}))},BR=s.forwardRef(FR);var HR=BR,WR=Object.defineProperty,Ug=Object.getOwnPropertySymbols,zR=Object.prototype.hasOwnProperty,_R=Object.prototype.propertyIsEnumerable,Kg=(e,t,n)=>t in e?WR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,El=(e,t)=>{for(var n in t||(t={}))zR.call(t,n)&&Kg(e,n,t[n]);if(Ug)for(var n of Ug(t))_R.call(t,n)&&Kg(e,n,t[n]);return e};const UR=(e,t)=>{const n=s.useContext(B),r=El(El({},n),e);return s.createElement("svg",El({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13 16H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 8L10 12L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 18V6C2 4.89543 2.89543 4 4 4H20C21.1046 4 22 4.89543 22 6V18C22 19.1046 21.1046 20 20 20H4C2.89543 20 2 19.1046 2 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},KR=s.forwardRef(UR);var GR=KR,YR=Object.defineProperty,Gg=Object.getOwnPropertySymbols,XR=Object.prototype.hasOwnProperty,qR=Object.prototype.propertyIsEnumerable,Yg=(e,t,n)=>t in e?YR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ll=(e,t)=>{for(var n in t||(t={}))XR.call(t,n)&&Yg(e,n,t[n]);if(Gg)for(var n of Gg(t))qR.call(t,n)&&Yg(e,n,t[n]);return e};const ZR=(e,t)=>{const n=s.useContext(B),r=Ll(Ll({},n),e);return s.createElement("svg",Ll({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13 17H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5 7L10 12L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},JR=s.forwardRef(ZR);var QR=JR,eM=Object.defineProperty,Xg=Object.getOwnPropertySymbols,tM=Object.prototype.hasOwnProperty,nM=Object.prototype.propertyIsEnumerable,qg=(e,t,n)=>t in e?eM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sl=(e,t)=>{for(var n in t||(t={}))tM.call(t,n)&&qg(e,n,t[n]);if(Xg)for(var n of Xg(t))nM.call(t,n)&&qg(e,n,t[n]);return e};const rM=(e,t)=>{const n=s.useContext(B),r=Sl(Sl({},n),e);return s.createElement("svg",Sl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19 7V5L5 5V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 5L12 19M12 19H10M12 19H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},oM=s.forwardRef(rM);var sM=oM,iM=Object.defineProperty,Zg=Object.getOwnPropertySymbols,aM=Object.prototype.hasOwnProperty,cM=Object.prototype.propertyIsEnumerable,Jg=(e,t,n)=>t in e?iM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$l=(e,t)=>{for(var n in t||(t={}))aM.call(t,n)&&Jg(e,n,t[n]);if(Zg)for(var n of Zg(t))cM.call(t,n)&&Jg(e,n,t[n]);return e};const lM=(e,t)=>{const n=s.useContext(B),r=$l($l({},n),e);return s.createElement("svg",$l({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20 9L18.005 20.3463C17.8369 21.3026 17.0062 22 16.0353 22H7.96474C6.99379 22 6.1631 21.3026 5.99496 20.3463L4 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 6L15.375 6M3 6L8.625 6M8.625 6V4C8.625 2.89543 9.52043 2 10.625 2H13.375C14.4796 2 15.375 2.89543 15.375 4V6M8.625 6L15.375 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},uM=s.forwardRef(lM);var dM=uM,fM=Object.defineProperty,Qg=Object.getOwnPropertySymbols,pM=Object.prototype.hasOwnProperty,mM=Object.prototype.propertyIsEnumerable,eb=(e,t,n)=>t in e?fM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jl=(e,t)=>{for(var n in t||(t={}))pM.call(t,n)&&eb(e,n,t[n]);if(Qg)for(var n of Qg(t))mM.call(t,n)&&eb(e,n,t[n]);return e};const hM=(e,t)=>{const n=s.useContext(B),r=jl(jl({},n),e);return s.createElement("svg",jl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 16.2485C7 16.0894 6.93679 15.9368 6.82426 15.8243L3.17574 12.1757C3.06321 12.0632 3 11.9106 3 11.7515V4C3 2.89543 3.89543 2 5 2H12H19C20.1046 2 21 2.89543 21 4V11.7515C21 11.9106 20.9368 12.0632 20.8243 12.1757L17.1757 15.8243C17.0632 15.9368 17 16.0894 17 16.2485V20C17 21.1046 16.1046 22 15 22H9C7.89543 22 7 21.1046 7 20V16.2485Z",stroke:"currentColor"}),s.createElement("path",{d:"M9.5 11.5L10 10.4M14.5 11.5L14 10.4M14 10.4L12 6L10 10.4M14 10.4H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},gM=s.forwardRef(hM);var _y=gM,bM=Object.defineProperty,tb=Object.getOwnPropertySymbols,vM=Object.prototype.hasOwnProperty,yM=Object.prototype.propertyIsEnumerable,nb=(e,t,n)=>t in e?bM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ol=(e,t)=>{for(var n in t||(t={}))vM.call(t,n)&&nb(e,n,t[n]);if(tb)for(var n of tb(t))yM.call(t,n)&&nb(e,n,t[n]);return e};const wM=(e,t)=>{const n=s.useContext(B),r=Ol(Ol({},n),e);return s.createElement("svg",Ol({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.5 8C8.5 8 11 8 15 8C15 8 15 8 15 8C15 8 20 8 20 12.7059C20 18 15 18 15 18C11.5714 18 9.71429 18 6.28571 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.5 11.5C6.13317 10.1332 5.36683 9.36683 4 8C5.36683 6.63317 6.13317 5.86683 7.5 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xM=s.forwardRef(wM);var CM=xM,kM=Object.defineProperty,rb=Object.getOwnPropertySymbols,EM=Object.prototype.hasOwnProperty,LM=Object.prototype.propertyIsEnumerable,ob=(e,t,n)=>t in e?kM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rl=(e,t)=>{for(var n in t||(t={}))EM.call(t,n)&&ob(e,n,t[n]);if(rb)for(var n of rb(t))LM.call(t,n)&&ob(e,n,t[n]);return e};const SM=(e,t)=>{const n=s.useContext(B),r=Rl(Rl({},n),e);return s.createElement("svg",Rl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 16V4M12 4L15.5 7.5M12 4L8.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},$M=s.forwardRef(SM);var jM=$M,OM=Object.defineProperty,sb=Object.getOwnPropertySymbols,RM=Object.prototype.hasOwnProperty,MM=Object.prototype.propertyIsEnumerable,ib=(e,t,n)=>t in e?OM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ml=(e,t)=>{for(var n in t||(t={}))RM.call(t,n)&&ib(e,n,t[n]);if(sb)for(var n of sb(t))MM.call(t,n)&&ib(e,n,t[n]);return e};const PM=(e,t)=>{const n=s.useContext(B),r=Ml(Ml({},n),e);return s.createElement("svg",Ml({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 3H20.4C20.7314 3 21 3.26863 21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H12M12 3H3.6C3.26863 3 3 3.26863 3 3.6V20.4C3 20.7314 3.26863 21 3.6 21H12M12 3V21",stroke:"currentColor"}))},TM=s.forwardRef(PM);var AM=TM,IM=Object.defineProperty,ab=Object.getOwnPropertySymbols,NM=Object.prototype.hasOwnProperty,DM=Object.prototype.propertyIsEnumerable,cb=(e,t,n)=>t in e?IM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pl=(e,t)=>{for(var n in t||(t={}))NM.call(t,n)&&cb(e,n,t[n]);if(ab)for(var n of ab(t))DM.call(t,n)&&cb(e,n,t[n]);return e};const VM=(e,t)=>{const n=s.useContext(B),r=Pl(Pl({},n),e);return s.createElement("svg",Pl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M14 20.4V14.6C14 14.2686 14.2686 14 14.6 14H20.4C20.7314 14 21 14.2686 21 14.6V20.4C21 20.7314 20.7314 21 20.4 21H14.6C14.2686 21 14 20.7314 14 20.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M3 20.4V14.6C3 14.2686 3.26863 14 3.6 14H9.4C9.73137 14 10 14.2686 10 14.6V20.4C10 20.7314 9.73137 21 9.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M14 9.4V3.6C14 3.26863 14.2686 3 14.6 3H20.4C20.7314 3 21 3.26863 21 3.6V9.4C21 9.73137 20.7314 10 20.4 10H14.6C14.2686 10 14 9.73137 14 9.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M3 9.4V3.6C3 3.26863 3.26863 3 3.6 3H9.4C9.73137 3 10 3.26863 10 3.6V9.4C10 9.73137 9.73137 10 9.4 10H3.6C3.26863 10 3 9.73137 3 9.4Z",stroke:"currentColor"}))},FM=s.forwardRef(VM);var Oi=FM,BM=Object.defineProperty,lb=Object.getOwnPropertySymbols,HM=Object.prototype.hasOwnProperty,WM=Object.prototype.propertyIsEnumerable,ub=(e,t,n)=>t in e?BM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tl=(e,t)=>{for(var n in t||(t={}))HM.call(t,n)&&ub(e,n,t[n]);if(lb)for(var n of lb(t))WM.call(t,n)&&ub(e,n,t[n]);return e};const zM=(e,t)=>{const n=s.useContext(B),r=Tl(Tl({},n),e);return s.createElement("svg",Tl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 7L12 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_M=s.forwardRef(zM);var UM=_M,KM=Object.defineProperty,db=Object.getOwnPropertySymbols,GM=Object.prototype.hasOwnProperty,YM=Object.prototype.propertyIsEnumerable,fb=(e,t,n)=>t in e?KM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Al=(e,t)=>{for(var n in t||(t={}))GM.call(t,n)&&fb(e,n,t[n]);if(db)for(var n of db(t))YM.call(t,n)&&fb(e,n,t[n]);return e};const XM=(e,t)=>{const n=s.useContext(B),r=Al(Al({},n),e);return s.createElement("svg",Al({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20.0429 21H3.95705C2.41902 21 1.45658 19.3364 2.22324 18.0031L10.2662 4.01533C11.0352 2.67792 12.9648 2.67791 13.7338 4.01532L21.7768 18.0031C22.5434 19.3364 21.581 21 20.0429 21Z",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qM=s.forwardRef(XM);var ZM=qM,JM=Object.defineProperty,pb=Object.getOwnPropertySymbols,QM=Object.prototype.hasOwnProperty,eP=Object.prototype.propertyIsEnumerable,mb=(e,t,n)=>t in e?JM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Il=(e,t)=>{for(var n in t||(t={}))QM.call(t,n)&&mb(e,n,t[n]);if(pb)for(var n of pb(t))eP.call(t,n)&&mb(e,n,t[n]);return e};const tP=(e,t)=>{const n=s.useContext(B),r=Il(Il({},n),e);return s.createElement("svg",Il({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10.0503 10.6066L2.97923 17.6777C2.19818 18.4587 2.19818 19.725 2.97923 20.5061V20.5061C3.76027 21.2871 5.0266 21.2871 5.80765 20.5061L12.8787 13.435",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.0502 10.6066C9.20638 8.45358 9.37134 5.6286 11.1109 3.88909C12.8504 2.14957 16.0606 1.76777 17.8284 2.82843L14.7877 5.8691L14.5051 8.98014L17.6161 8.69753L20.6568 5.65685C21.7175 7.42462 21.3357 10.6349 19.5961 12.3744C17.8566 14.1139 15.0316 14.2789 12.8786 13.435",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},nP=s.forwardRef(tP);var rP=nP,oP=Object.defineProperty,hb=Object.getOwnPropertySymbols,sP=Object.prototype.hasOwnProperty,iP=Object.prototype.propertyIsEnumerable,gb=(e,t,n)=>t in e?oP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nl=(e,t)=>{for(var n in t||(t={}))sP.call(t,n)&&gb(e,n,t[n]);if(hb)for(var n of hb(t))iP.call(t,n)&&gb(e,n,t[n]);return e};const aP=(e,t)=>{const n=s.useContext(B),r=Nl(Nl({},n),e);return s.createElement("svg",Nl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.17218 14.8284L12.0006 12M14.829 9.17157L12.0006 12M12.0006 12L9.17218 9.17157M12.0006 12L14.829 14.8284",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},cP=s.forwardRef(aP);var lP=cP,uP=Object.defineProperty,bb=Object.getOwnPropertySymbols,dP=Object.prototype.hasOwnProperty,fP=Object.prototype.propertyIsEnumerable,vb=(e,t,n)=>t in e?uP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dl=(e,t)=>{for(var n in t||(t={}))dP.call(t,n)&&vb(e,n,t[n]);if(bb)for(var n of bb(t))fP.call(t,n)&&vb(e,n,t[n]);return e};const pP=(e,t)=>{const n=s.useContext(B),r=Dl(Dl({},n),e);return s.createElement("svg",Dl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mP=s.forwardRef(pP);var hP=mP;function N(e,t,n={}){const r=s.forwardRef(function({size:i=24,width:a,height:c,strokeWidth:u=1.5,absoluteStrokeWidth:l=!1,style:d,...f},m){const h=l&&typeof i=="number"&&typeof u=="number"?u*24/i:u,g=n.mirror?{...d,transform:`scaleX(-1) ${d?.transform??""}`.trim()}:d;return p.jsx(e,{...f,ref:m,width:a??i,height:c??i,strokeWidth:h,style:g})});return r.displayName=t,r}N(aE,"Activity");N(UM,"AlertCircle");N(ZM,"AlertTriangle");N(yE,"AppWindow");const gP=N(LE,"ArrowDown");N(ME,"ArrowRight");const bP=N(XE,"ArrowUp"),vP=N(O3,"ArrowUpDown");N(zy,"AudioLines");N(Fy,"BookOpen");N(Fy,"BookOpenText");N(y4,"Bot");N(p4,"Boxes");N(N6,"Braces");N(Py,"Brackets");N(L4,"Brain");N(D4,"Camera");N(M4,"Cable");N(t6,"Check");N(X4,"CheckCircle2");N(Y9,"ChevronDown");N(e$,"ChevronRight");N(zE,"ChevronsDownUp");N(DE,"ChevronsUpDown");N(i$,"ChevronUp");N(a6,"Circle");N(b$,"CircleDot");N(rj,"Clipboard");const yP=N(y6,"Clock");N(L6,"Cloud");N(W6,"Code2");N(AM,"Columns2");N(o7,"Command");N(Y6,"Compass");N(d3,"Copy");N(M9,"CopyPlus");const wP=N(b3,"CornerDownLeft");N(r8,"Crosshair");N(I3,"Database");N(sL,"Download");N(j$,"ExternalLink");N(BL,"Eye");N(AL,"EyeOff");N(Py,"FileCode2");N(jS,"FileDiff");N(K$,"FileText");N(L9,"Film");N(uS,"Focus");N(oS,"Folder");N(gS,"FrameIcon");N(CS,"GitBranchPlus");N(zd,"GripVertical");N(zd,"GripHorizontal");N(AS,"Globe");N(dL,"Hand");N(BS,"Hash");N(p6,"History");N(KS,"Home");N(Ny,"ImageIcon");N(Ny,"Image");N(Q3,"Inbox");N(JS,"Info");N(_y,"Keyboard");N(Dy,"Layers");N(Dy,"Layers3");N(Oi,"LayoutGrid");N(Oi,"Grid3X3");N(Ay,"LayoutList");N(Oi,"LayoutTemplate");N(a4,"Library");N(g7,"Link2");N(Ay,"List");N(Fj,"ListMusic");N(Hy,"Loader2");N(Hy,"LoaderCircle");N(Iy,"Lock");N(Iy,"LockKeyhole");const xP=N(V7,"Map");N(_7,"Maximize");const CP=N(jL,"Maximize2");N(z4,"MessageSquare");N(a9,"Mic");const kP=N(l8,"Minimize2"),EP=N(p9,"Minus");N(k3,"MousePointer2");N(e3,"Monitor");N(y9,"MoreHorizontal");N(zd,"Move");N(W9,"Music2");N(Vy,"Network");N(_d,"PanelLeft");const LP=N(Wy,"PanelLeftClose"),SP=N(_d,"PanelLeftOpen");N(A$,"PanelBottom");const $P=N(Wy,"PanelRightClose",{mirror:!0}),jP=N(_d,"PanelRightOpen",{mirror:!0});N(B$,"PanelTop");N(Oi,"PanelsTopLeft");N(H3,"Paintbrush");N(By,"Palette");N(t4,"Paperclip");N(hj,"Pause");N(CL,"Pencil");N(t9,"PictureInPicture2");N($j,"Pin");N(xj,"PinOff");N(Tj,"Play");const OP=N(Uj,"Plus");N(IR,"Power");N(pE,"Radar");N(Zj,"Radio");N(S8,"Repeat");N(w8,"Repeat1");N(CM,"RotateCcw");N(HR,"Rows3");N(JL,"Save");N(G3,"ScanSearch");const Uy=N(P8,"Search");N(V8,"Send");N(_8,"Server");N(nO,"Settings");N(q8,"Settings2");N(cO,"Share2");N(mO,"ShieldCheck");N(wO,"Shuffle");N(WO,"SkipBack");N(NO,"SkipForward");N(Ty,"Sliders");N(Ty,"SlidersHorizontal");N(dR,"Sparkles");N(bR,"Square");const RP=N(QR,"Terminal");N(GR,"TerminalSquare");N(sM,"Text");N(kR,"ToggleLeft");N(OR,"ToggleRight");N(dM,"Trash2");N(_y,"Type");N(u7,"Unlink");N(jM,"Upload");N(QO,"Volume1");N(zy,"Volume2");N(sR,"VolumeX");N(rP,"Wrench");N(By,"SwatchBook");N(P7,"Wand2");N(lj,"Waypoints");N(Vy,"Workflow");const MP=N(hP,"X");N(lP,"XCircle");N(KL,"Zap");const Ky="hudsonTrace",PP=new Set(["cat","find","fd","grep","head","ls","pwd","rg","sed","tail","wc","which"]),TP=new Set(["branch","diff","ls-files","log","rev-parse","show","status"]),Gy=new Set(["","agent.task"]);function AP(e,t){const n=e.filter(Ar),r=DP(n);if(t==="raw")return{events:n,hiddenDetailEvents:0,collapsedEvents:0,relatedEventsByTrace:r};const o=NP(n),i=[];let a=0;for(const c of o.values())(t==="details"||FP(c))&&(a+=c.length,i.push(VP(c)));return{events:i,hiddenDetailEvents:Math.max(0,n.length-a),collapsedEvents:Math.max(0,a-i.length),relatedEventsByTrace:r}}function Ar(e){const t=yt(e);return e.category==="agent-action"||t.triggeredBy==="agent"||t.source==="workspace-ai"}function yt(e){return e.data&&typeof e.data=="object"&&!Array.isArray(e.data)?e.data:{}}function Pe(e,t){const n=e[t];return typeof n=="string"&&n.trim()?n:null}function Ir(e){return e.kind==="span"?e.traceId:Pe(yt(e),"traceId")}function Ud(e){return Pe(yt(e),"parentTraceId")}function Ri(e){const t=yt(e).metadata;if(!Gd(t))return null;const n=t.command;return Array.isArray(n)&&n.every(r=>typeof r=="string")?n:typeof n=="string"&&n.trim()?n.trim().split(/\s+/):null}function Iu(e){if(!e||e.length===0)return!1;const t=qy(e[0]);if(PP.has(t))return!0;if(t==="git"){const n=e.find((r,o)=>o>0&&!r.startsWith("-"));return n?TP.has(n):!1}return!1}function Kd(e){const t=yt(e),n=Pe(t,"appId")??Pe(t,"targetAppId");if(n)return n;const r=Pe(t,"action")??Pe(t,"playbook")??Pe(t,"commandId"),o=r&&!Gy.has(r)?HP(r):null;if(o)return o;const i=Ri(e);for(const a of i??[]){const c=Xy(a);if(c)return c}return null}function IP(e){const t=yt(e)[Ky];if(!Gd(t))return null;const n=Pe(t,"traceId"),r=co(t,"eventCount"),o=co(t,"startedAt"),i=co(t,"endedAt"),a=co(t,"durationMs"),c=co(t,"hiddenDetailEvents")??0;return!n||r===void 0||o===void 0||i===void 0||a===void 0?null:{traceId:n,eventCount:r,startedAt:o,endedAt:i,durationMs:a,hiddenDetailEvents:c}}function Yy(e){if(!e||e.length===0)return null;const t=qy(e[0]),n=e.map(WP).find(Boolean);return Iu(e)?n?`Read ${n} with ${t}`:`Read with ${t}`:t==="bun"&&e[1]==="run"&&e[2]?`Run bun ${e[2]}`:e.slice(0,4).join(" ")}function yb(e){return!e||e==="agent.task"?"Agent task":e.replace(/^hudson\./,"").replace(/[._:-]+/g," ").replace(/\s+/g," ").trim().split(" ").map((n,r)=>r===0?zP(n):n).join(" ")}function NP(e){const t=new Map;for(const n of e){const r=Ir(n)??n.id,o=t.get(r);o?o.push(n):t.set(r,[n])}return t}function DP(e){const t=new Map,n=(r,o)=>{if(!r)return;const i=t.get(r);i?i.some(a=>a.id===o.id)||i.push(o):t.set(r,[o])};for(const r of e)n(Ir(r)??r.id,r),n(Ud(r),r),n(r.kind==="span"?r.parentId??null:null,r);for(const r of t.values())r.sort((o,i)=>o.timestamp-i.timestamp);return t}function VP(e){const t=[...e].sort((a,c)=>a.timestamp-c.timestamp),n=Fl(t,a=>Vl(a)===3)??Fl(t,a=>Vl(a)===2)??Fl(t,a=>Vl(a)===1)??t[t.length-1],r=Ir(n)??n.id,o=t[0]?.timestamp??n.timestamp,i=t[t.length-1]?.timestamp??n.timestamp;return{...n,data:{...yt(n),[Ky]:{traceId:r,eventCount:t.length,startedAt:o,endedAt:i,durationMs:Math.max(0,i-o),hiddenDetailEvents:Math.max(0,t.length-1)}}}}function FP(e){return e.every(t=>Ud(t))?!1:e.some(t=>{if(t.kind==="span")return!0;const n=yt(t),r=Pe(n,"action")??Pe(n,"playbook")??"",o=!Gy.has(r),i=Ri(t);return o||Pe(n,"commandId")||Kd(t)&&!i||BP(n)&&!Iu(i)?!0:!!(i&&!Iu(i))})}function BP(e){const t=e.args;return Gd(t)&&typeof t.prompt=="string"&&t.prompt.trim().length>0}function Vl(e){if(e.kind==="span")return e.status==="error"?3:e.status==="ok"?2:e.status==="active"?1:0;const t=Pe(yt(e),"status")??(e.kind==="log"?e.level:void 0);return t==="failed"||t==="error"?3:t==="completed"||t==="ok"?2:t==="started"||t==="active"?1:0}function Fl(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]}function HP(e){if(!e)return null;const[t]=e.split(/[.:_-]/);return t||null}function Xy(e){const t=e.match(/(?:^|\/)app\/apps\/([^/\s]+)/);return t?t[1]:null}function WP(e){const t=Xy(e);return t||null}function qy(e){return e.split("/").pop()??e}function Gd(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function co(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function zP(e){return e&&`${e[0].toUpperCase()}${e.slice(1)}`}const _P=["debug","info","warn","error"],UP=["log","metric","span"],KP="hudson:open-app",Bl=340,Xs=440,wb=900,GP=420,YP="hudson.hud-logger.inspector-width",XP=1,xb={key:"time",direction:"desc"},Cb="grid-cols-[62px_64px_76px_58px_72px_112px_128px_minmax(260px,1fr)_92px]";function qP(e){return typeof e!="number"||e===380?Xs:e}function Zy(e=Dt,t={}){const n=t.maxEvents??200,[r,o]=s.useState(()=>e.snapshot().slice(-n).reverse());return s.useEffect(()=>{const i=()=>{o(e.snapshot().slice(-n).reverse())},a=e.subscribe(i);return i(),a},[n,e]),r}function Jy(e){const t=new Map;for(const n of e){if(n.kind!=="span")continue;(!t.get(n.id)||n.status!=="active")&&t.set(n.id,n.status)}return{total:e.length,errors:e.filter(n=>n.kind==="log"&&n.level==="error").length,warnings:e.filter(n=>n.kind==="log"&&n.level==="warn").length,agentActions:e.filter(Ar).length,activeSpans:Array.from(t.values()).filter(n=>n==="active").length,lastEvent:e[0]??null}}function ZP(e=Dt,t={}){const n=Zy(e,t);return s.useMemo(()=>Jy(n),[n])}function JP({observability:e=Dt,maxEvents:t=200,label:n="Logs",className:r="",showCounts:o=!1}){const i=ZP(e,{maxEvents:t}),a=i.errors>0?"red":i.warnings>0||i.activeSpans>0?"amber":"emerald";return p.jsxs("span",{className:`inline-flex min-w-0 items-center gap-2 font-mono text-[9px] font-light uppercase tracking-[0.18em] ${wT(a)} ${r}`,title:`${i.total} events, ${i.errors} errors, ${i.activeSpans} active spans`,children:[p.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${xT(a)}`}),p.jsx("span",{children:n}),o&&i.errors>0?p.jsxs("span",{className:"tabular-nums font-semibold",children:[i.errors," err"]}):o&&i.warnings>0?p.jsxs("span",{className:"tabular-nums",children:[i.warnings," warn"]}):null]})}function QP({observability:e=Dt,events:t,replayEvents:n,maxEvents:r=200,title:o="HudLogger",className:i="",emptyMessage:a="No events match the current filters.",showHeader:c=!0,showInspector:u=!0,initialTail:l=!0,initialScope:d="all"}){const f=Zy(e,{maxEvents:r}),m=s.useMemo(()=>t?t.slice(0,r):!n||n.length===0?f:yT(n,f,r),[t,n,f,r]),[h,g]=s.useState(null),[v,w]=s.useState("all"),[b,y]=s.useState("all"),[k,C]=s.useState(d),[x,L]=s.useState(d==="agent-actions"?"actions":"raw"),[S,E]=s.useState(""),[R,T]=s.useState(l),[D,I]=s.useState(xb),[j,H]=s.useState(null),[P,A]=Gt(YP,Xs,{version:XP,migrate:qP}),V=s.useRef(null),$=s.useRef(null),[z,M]=s.useState(!1),q=s.useMemo(()=>AP(m,k==="agent-actions"?x:"raw"),[x,m,k]),ee=k==="agent-actions"?q.events:m,te=s.useMemo(()=>ee.filter(W=>{if(b!=="all"&&W.kind!==b||v!=="all"&&(W.kind!=="log"||W.level!==v))return!1;if(!S.trim())return!0;const _=Ir(W)??W.id,ce=q.relatedEventsByTrace.get(_)??[];return dT(W,ce).includes(S.trim().toLowerCase())}),[q.relatedEventsByTrace,b,v,S,ee]),ae=s.useMemo(()=>gT(te,D),[te,D]),ne=R&&D.key==="time"&&D.direction==="desc"?ae[0]?On(ae[0]):null:h,re=ae.find(W=>On(W)===ne)??ae[0]??null,se=re?Ir(re)??re.id:null,ie=se?q.relatedEventsByTrace.get(se)??[]:[],ue=s.useMemo(()=>Jy(m),[m]),O=s.useCallback(async(W,_)=>{await vT(W)&&(H(_),window.setTimeout(()=>{H(Y=>Y===_?null:Y)},1200))},[]),X=s.useCallback(W=>{T(!1),g(On(W))},[]),F=s.useCallback(W=>{T(!1),I(_=>_.key!==W?{key:W,direction:hT(W)}:{key:W,direction:_.direction==="asc"?"desc":"asc"})},[]),ge=s.useCallback(()=>{R||I(xb),T(W=>!W)},[R]),J=s.useCallback(W=>{const _=Nu(W);!_||typeof window>"u"||window.dispatchEvent(new CustomEvent(KP,{detail:{appId:_,workspaceId:iT(W),source:"hud-logger"}}))},[]),G=s.useCallback((W,_)=>{const ce=Math.min(wb,Math.max(Bl,_-GP));return Math.max(Bl,Math.min(ce,W))},[]),Z=s.useCallback(W=>{if(W.button!==0)return;const _=V.current,ce=$.current;if(!_||!ce)return;W.preventDefault();const Y=W.clientX,K=ce.getBoundingClientRect().width;M(!0),document.body.style.cursor="col-resize",document.body.style.userSelect="none";const oe=Ee=>{const xe=_.getBoundingClientRect().width,Ae=G(K+(Y-Ee.clientX),xe);ce.style.setProperty("--inspector-width",`${Ae}px`)},ye=Ee=>{const xe=_.getBoundingClientRect().width,Ae=G(K+(Y-Ee.clientX),xe);A(Ae),M(!1),document.body.style.cursor="",document.body.style.userSelect="",window.removeEventListener("pointermove",oe),window.removeEventListener("pointerup",ye),window.removeEventListener("pointercancel",ye)};window.addEventListener("pointermove",oe),window.addEventListener("pointerup",ye),window.addEventListener("pointercancel",ye)},[G,A]),be=s.useCallback(()=>{A(Xs)},[A]);s.useEffect(()=>{if(typeof window>"u")return;const W=V.current;if(!W)return;const _=new ResizeObserver(()=>{const ce=W.getBoundingClientRect().width;A(Y=>{const K=G(Y,ce);return K===Y?Y:K})});return _.observe(W),()=>_.disconnect()},[G,A]);const ve=s.useMemo(()=>({"--inspector-width":`${P}px`}),[P]);return p.jsxs("section",{ref:V,className:`flex min-h-[520px] flex-col overflow-hidden rounded-md border border-border bg-background text-foreground lg:flex-row ${i}`,children:[p.jsxs("main",{className:"flex min-h-0 min-w-0 flex-col border-b border-border/70 lg:flex-1 lg:border-b-0",children:[c&&p.jsxs("div",{className:"shrink-0 border-b border-border/70 bg-card/80 px-3 py-2.5",children:[p.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p.jsx(tT,{ariaLabel:"copy filtered table",copied:j==="table",disabled:ae.length===0,label:"copy all",onClick:()=>{O(pT(ae),"table")}}),p.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground",children:[p.jsx("span",{children:o}),p.jsxs("span",{className:"text-accent",children:[ae.length," shown"]}),p.jsxs("span",{children:[ue.total," buffered"]}),p.jsxs("span",{children:[ue.agentActions," agent"]}),p.jsxs("span",{children:[ue.errors," errors"]}),ue.activeSpans>0&&p.jsxs("span",{className:"text-warning",children:[ue.activeSpans," active"]}),k==="agent-actions"&&x!=="raw"&&q.hiddenDetailEvents>0&&p.jsxs("span",{children:[q.hiddenDetailEvents," detail hidden"]}),k==="agent-actions"&&q.collapsedEvents>0&&p.jsxs("span",{children:[q.collapsedEvents," collapsed"]})]})]}),p.jsxs("label",{className:"mt-2 flex min-w-0 items-center gap-2 rounded-md border border-border/70 bg-muted/20 px-2.5 py-2 font-mono text-[13px] font-normal text-accent transition-colors focus-within:border-accent/40 focus-within:bg-muted/30",children:[p.jsx("span",{className:"shrink-0 text-success",children:"$"}),p.jsx("input",{value:S,onChange:W=>E(W.target.value),placeholder:"grep message, category, payload",className:"min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground"})]}),p.jsxs("details",{className:"mt-2 text-left",children:[p.jsx("summary",{className:"cursor-pointer font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground hover:text-foreground",children:"filters / controls"}),p.jsxs("div",{className:"mt-3 grid gap-3 border-t border-border/60 pt-3 md:grid-cols-[1fr_1fr_1fr_1fr_auto]",children:[p.jsxs(is,{label:"Scope",children:[p.jsx(gn,{active:k==="all",onClick:()=>C("all"),children:"all"}),p.jsx(gn,{active:k==="agent-actions",onClick:()=>C("agent-actions"),children:"agent actions"})]}),k==="agent-actions"?p.jsxs(is,{label:"Rows",children:[p.jsx(gn,{active:x==="actions",onClick:()=>L("actions"),children:"actions"}),p.jsx(gn,{active:x==="details",onClick:()=>L("details"),children:"details"}),p.jsx(gn,{active:x==="raw",onClick:()=>L("raw"),children:"raw"})]}):p.jsx("div",{}),p.jsxs(is,{label:"Kind",children:[p.jsx(gn,{active:b==="all",onClick:()=>y("all"),children:"all"}),UP.map(W=>p.jsx(gn,{active:b===W,onClick:()=>y(W),children:W},W))]}),p.jsxs(is,{label:"Level",children:[p.jsx(gn,{active:v==="all",onClick:()=>w("all"),children:"all"}),_P.map(W=>p.jsx(gn,{active:v===W,onClick:()=>w(W),children:W},W))]}),p.jsx("div",{className:"flex flex-wrap items-end gap-2",children:p.jsxs("button",{type:"button",onClick:ge,className:`rounded-md border px-2.5 py-1.5 font-mono text-[11px] font-normal uppercase tracking-[0.12em] transition-colors ${R?"border-accent/30 bg-accent/10 text-accent":"border-border/70 bg-muted/20 text-muted-foreground hover:border-border hover:text-foreground"}`,children:["tail ",R?"on":"off"]})})]})]})]}),p.jsx("div",{className:"max-h-[650px] overflow-auto lg:max-h-none lg:flex-1 lg:min-h-0",children:p.jsxs("div",{className:"min-w-[980px] font-mono text-[11px] font-normal",children:[p.jsxs("div",{className:`sticky top-0 z-10 grid min-h-8 ${Cb} items-center border-b border-border/70 bg-card px-3 py-1.5 font-medium uppercase tracking-[0.12em] text-muted-foreground`,children:[p.jsx("span",{className:"sticky left-0 bg-card pr-2",children:"Copy"}),p.jsx("span",{children:"Open"}),p.jsx(er,{column:"time",label:"Time",sort:D,onSort:F}),p.jsx(er,{column:"kind",label:"Kind",sort:D,onSort:F}),p.jsx(er,{column:"level",label:"Level",sort:D,onSort:F}),p.jsx(er,{column:"category",label:"Category",sort:D,onSort:F}),p.jsx(er,{column:"target",label:"Target",sort:D,onSort:F}),p.jsx(er,{column:"message",label:"Message",sort:D,onSort:F}),p.jsx(er,{column:"id",label:"Id",sort:D,onSort:F})]}),ae.map(W=>{const _=Nu(W),ce=On(W);return p.jsxs("div",{role:"button",tabIndex:0,onClick:()=>X(W),onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),X(W))},className:`grid min-h-[34px] w-full ${Cb} items-center border-b border-l-2 px-3 py-2 text-left transition-colors ${re&&On(re)===ce?"border-b-border/40 border-l-accent bg-accent/[0.08]":"border-b-border/40 border-l-transparent hover:bg-muted/30"}`,children:[p.jsx("button",{type:"button","aria-label":`copy row ${Du(W.id)}`,onClick:Y=>{Y.stopPropagation(),O(Vu(W).join(" "),`row:${ce}`)},className:`sticky left-0 z-[1] justify-self-start rounded border border-border/70 px-1.5 py-0.5 font-mono text-[10px] font-normal uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:border-accent/30 hover:text-accent ${re&&On(re)===ce?"bg-accent/[0.08]":"bg-background"}`,children:j===`row:${ce}`?"copied":"copy"}),_?p.jsx("button",{type:"button","aria-label":`open ${To(W)}`,onClick:Y=>{Y.stopPropagation(),J(W)},className:"justify-self-start rounded border border-border/70 bg-muted/20 px-1.5 py-0.5 font-mono text-[10px] font-normal uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:border-accent/30 hover:text-accent",children:"open"}):p.jsx("span",{className:"text-muted-foreground/45",children:"-"}),p.jsx("span",{className:"tabular-nums text-muted-foreground",children:Xd(W)}),p.jsx("span",{className:"uppercase tracking-[0.13em] text-muted-foreground",children:W.kind}),p.jsx("span",{className:`uppercase tracking-[0.13em] ${Yd(W)}`,children:ln(W)}),p.jsx("span",{className:"truncate uppercase tracking-[0.13em] text-muted-foreground",children:W.category??"-"}),p.jsx("span",{className:"truncate font-sans text-[12px] font-normal normal-case tracking-normal text-muted-foreground",children:To(W)}),p.jsx("span",{className:"truncate font-sans text-[13px] font-normal normal-case tracking-normal text-foreground",children:Wn(W)}),p.jsx("span",{className:"truncate text-muted-foreground",children:Du(W.id)})]},ce)}),ae.length===0&&p.jsx("div",{className:"border-b border-border/40 px-3 py-5 font-sans text-[13px] text-muted-foreground",children:a})]})})]}),u&&p.jsxs(p.Fragment,{children:[p.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize payload inspector","aria-valuenow":P,"aria-valuemin":Bl,"aria-valuemax":wb,title:"Drag to resize · Double-click to reset",onPointerDown:Z,onDoubleClick:be,className:`group hidden shrink-0 cursor-col-resize items-stretch justify-center transition-colors lg:flex lg:w-[5px] ${z?"bg-accent/15":"hover:bg-accent/10"}`,children:p.jsx("div",{className:`w-px transition-colors ${z?"bg-accent/80":"bg-border group-hover:bg-accent/60"}`})}),p.jsx("aside",{ref:$,style:ve,className:"flex w-full shrink-0 flex-col bg-background lg:w-[var(--inspector-width)]",children:p.jsx(eT,{copied:re?j===`inspector:${On(re)}`:!1,event:re,relatedEvents:ie,onCopyRow:W=>{O(Vu(W).join(" "),`inspector:${On(W)}`)},onOpenTarget:J})})]})]})}function eT({copied:e,event:t,relatedEvents:n,onCopyRow:r,onOpenTarget:o}){const i=t?Nu(t):null;return p.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[p.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border/70 bg-card/40 px-3 py-2.5 lg:px-4",children:[p.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.15em] text-foreground/80",children:"Payload inspector"}),t?p.jsxs("div",{className:"flex items-center gap-2",children:[i?p.jsx("button",{type:"button",onClick:()=>o(t),className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent",children:"open app"}):null,p.jsx("button",{type:"button",onClick:()=>r(t),className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent",children:e?"copied":"copy row"}),p.jsx("div",{className:`font-mono text-[11px] uppercase tracking-[0.12em] ${Yd(t)}`,children:ln(t)})]}):null]}),p.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-3 lg:px-4 lg:py-4",children:t?p.jsxs("div",{className:"grid gap-3",children:[p.jsxs("div",{className:"overflow-hidden rounded-md border border-accent/25 bg-accent/[0.07]",children:[p.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-accent/15 px-3 py-2",children:[p.jsx(nT,{event:t}),p.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground",children:t.kind})]}),p.jsxs("div",{className:"px-3 py-2",children:[p.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.13em] text-accent",children:"selected event"}),p.jsx("div",{className:"mt-1 break-words text-[14px] font-normal leading-5 text-foreground",children:Wn(t)})]})]}),aT(t).map(a=>p.jsx(rT,{section:a},a.title)),p.jsx(oT,{events:n,selectedId:t.id}),p.jsx(Hl,{label:"payload.data",value:t.data??{}}),t.kind==="metric"&&t.tags?p.jsx(Hl,{label:"metric.tags",value:t.tags}):null,t.kind==="span"&&t.error?p.jsx(Hl,{label:"span.error",value:t.error}):null]}):p.jsx("div",{className:"rounded-md border border-border/60 bg-muted/20 p-4 text-[13px] leading-6 text-muted-foreground",children:"No event selected."})})]})}function is({label:e,children:t}){return p.jsxs("div",{children:[p.jsx("div",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground",children:e}),p.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t})]})}function gn({active:e,onClick:t,children:n}){return p.jsx("button",{type:"button",onClick:t,className:`rounded-md border px-2 py-1 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors ${e?"border-accent/30 bg-accent/10 text-accent":"border-border/70 bg-muted/20 text-muted-foreground hover:border-border hover:text-foreground"}`,children:n})}function er({column:e,label:t,sort:n,onSort:r}){const o=n.key===e,i=o?n.direction==="asc"?bP:gP:vP,a=n.direction==="asc"?"ascending":"descending";return p.jsxs("button",{type:"button","aria-label":`Sort by ${t}${o?`, currently ${a}`:""}`,"aria-pressed":o,onClick:()=>r(e),className:`flex min-w-0 items-center gap-1.5 text-left uppercase tracking-[0.14em] transition ${o?"text-accent":"text-muted-foreground hover:text-foreground"}`,children:[p.jsx("span",{className:"min-w-0 truncate",children:t}),p.jsx(i,{size:10,strokeWidth:1.75,"aria-hidden":"true",className:"shrink-0"})]})}function tT({ariaLabel:e,copied:t,disabled:n=!1,label:r,onClick:o}){return p.jsx("button",{type:"button","aria-label":e,disabled:n,onClick:o,className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent disabled:cursor-not-allowed disabled:opacity-40",children:t?"copied":r})}function nT({event:e}){const t=ln(e),n=go(e),r=n==="red"?"border-destructive/30 bg-destructive/10 text-destructive":n==="amber"?"border-warning/30 bg-warning/10 text-warning":n==="emerald"?"border-success/30 bg-success/10 text-success":"border-accent/30 bg-accent/10 text-accent";return p.jsx("span",{className:`rounded-full border px-2 py-0.5 font-mono text-[10px] uppercase tracking-[0.11em] ${r}`,children:t})}function rT({section:e}){return p.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[p.jsx("div",{className:"border-b border-border/50 bg-muted/30 px-3 py-2 font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:e.title}),p.jsx("div",{className:"divide-y divide-border/40",children:e.rows.map(t=>p.jsx(sT,{row:t},`${e.title}-${t.label}`))})]})}function oT({events:e,selectedId:t}){return e.length<=1?null:p.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[p.jsxs("div",{className:"flex items-center justify-between border-b border-border/50 bg-muted/30 px-3 py-2",children:[p.jsx("div",{className:"font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:"Trace lines"}),p.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.length})]}),p.jsx("div",{className:"divide-y divide-border/40",children:e.map(n=>{const r=Yy(Ri(n));return p.jsxs("div",{className:`grid grid-cols-[74px_82px_minmax(0,1fr)] gap-2 px-3 py-1.5 ${n.id===t?"bg-accent/10":""}`,children:[p.jsx("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:Xd(n)}),p.jsx("span",{className:`font-mono text-[10px] uppercase tracking-[0.11em] ${Yd(n)}`,children:ln(n)}),p.jsx("span",{className:"min-w-0 truncate text-[12px] text-foreground/80",children:r??Wn(n)})]},`${n.id}-${n.timestamp}`)})})]})}function sT({row:e}){return p.jsxs("div",{className:"grid grid-cols-[96px_minmax(0,1fr)] items-start gap-3 px-3 py-2",children:[p.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.label}),p.jsx("div",{className:`min-w-0 break-words text-[12px] leading-5 ${e.mono?"font-mono tabular-nums":"font-sans"} ${cT(e.tone)}`,children:e.value})]})}function Hl({label:e,value:t}){return p.jsxs("div",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[p.jsx("div",{className:"border-b border-border/50 bg-muted/30 px-3 py-2 font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:e}),p.jsx("pre",{className:"max-h-[360px] overflow-auto whitespace-pre-wrap break-words p-3 font-mono text-[12px] font-light leading-5 text-foreground/80 lg:max-h-none lg:overflow-x-auto",children:JSON.stringify(t,null,2)})]})}function Nu(e){return Kd(e)}function iT(e){const t=yt(e);return Pe(t,"workspaceId")??Pe(t,"targetWorkspaceId")}function To(e){const t=yt(e),n=Kd(e);return Pe(t,"appName")??Pe(t,"appId")??n??Pe(t,"workspaceName")??Pe(t,"workspaceId")??Pe(t,"serviceId")??Pe(t,"target")??"-"}function aT(e){const t=[{title:"Identity",rows:[{label:"id",value:e.id,mono:!0},{label:"kind",value:e.kind,tone:"cyan",mono:!0},{label:"category",value:e.category??"none",mono:!0}]},{title:"Signal",rows:[{label:lT(e),value:ln(e),tone:go(e),mono:!0},{label:"timestamp",value:Wl(e.timestamp),mono:!0}]}];if(Ar(e)){const n=yt(e),r=Ir(e),o=Ud(e);t.push({title:"Agent Action",rows:[{label:"source",value:Pe(n,"source")??"agent",mono:!0},{label:"status",value:Pe(n,"status")??ln(e),tone:go(e),mono:!0},{label:"action",value:Pe(n,"action")??Wn(e),mono:!0},{label:"target",value:To(e),mono:!0},{label:"workspace",value:Pe(n,"workspaceName")??Pe(n,"workspaceId")??"unknown",mono:!0},...r?[{label:"trace",value:r,mono:!0}]:[],...o?[{label:"parent",value:o,mono:!0}]:[]]});const i=fT(e),a=IP(e);(i||a)&&t.push({title:"Request",rows:[...i?[{label:"prompt",value:i}]:[],...a?[{label:"lines",value:String(a.eventCount),mono:!0},{label:"duration",value:`${a.durationMs}ms`,mono:!0}]:[]]})}return e.kind==="log"&&t.push({title:"Log",rows:[{label:"message",value:e.message},{label:"level",value:e.level,tone:go(e),mono:!0}]}),e.kind==="metric"&&t.push({title:"Metric",rows:[{label:"name",value:e.name},{label:"type",value:e.metricType,tone:"emerald",mono:!0},{label:"value",value:uT(e),tone:"emerald",mono:!0},{label:"unit",value:e.unit??"none",mono:!0}]}),e.kind==="span"&&t.push({title:"Trace",rows:[{label:"name",value:e.name},{label:"trace id",value:e.traceId,mono:!0},{label:"parent id",value:e.parentId??"none",mono:!0},{label:"status",value:e.status,tone:go(e),mono:!0},{label:"duration",value:e.durationMs===void 0?"active":`${e.durationMs}ms`,mono:!0},{label:"started",value:Wl(e.startTime),mono:!0},{label:"ended",value:e.endTime===void 0?"pending":Wl(e.endTime),mono:!0}]}),t}function Wn(e){if(e.kind==="log"){if(Ar(e)){const t=yt(e),n=Yy(Ri(e));if(n){const a=Pe(t,"status");return a?`${n} ${a}`:n}const r=Pe(t,"action")??Pe(t,"commandId")??e.message,o=Pe(t,"status"),i=yb(r);return o?`${i} ${o}`:i}return e.message}return Ar(e)?yb(e.name):e.name}function ln(e){return e.kind==="log"?Ar(e)?Pe(yt(e),"status")??e.level:e.level:e.kind==="metric"?e.metricType:e.status}function Yd(e){const t=ln(e);return t==="error"||t==="failed"?"text-destructive":t==="warn"||t==="active"||t==="started"?"text-warning":e.kind==="metric"||t==="ok"||t==="completed"?"text-success":"text-accent"}function go(e){const t=ln(e);return t==="error"||t==="failed"?"red":t==="warn"||t==="active"||t==="started"?"amber":e.kind==="metric"||t==="ok"||t==="completed"?"emerald":"cyan"}function cT(e="neutral"){return e==="red"?"text-destructive":e==="amber"?"text-warning":e==="emerald"?"text-success":e==="cyan"?"text-accent":"text-foreground"}function lT(e){return e.kind==="log"?"level":e.kind==="metric"?"type":"status"}function uT(e){return`${e.value}${e.unit?` ${e.unit}`:""}`}function Wl(e){const t=new Date(e);return`${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}.${String(t.getMilliseconds()).padStart(3,"0")}`}function Du(e){return e.length>10?e.slice(-10):e}function On(e){return e.kind==="span"?`${e.kind}:${e.id}:${e.status}:${e.endTime??"active"}`:`${e.kind}:${e.id}:${e.timestamp}`}function Xd(e){return new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Vu(e){return[Xd(e),e.kind,ln(e),e.category??"",To(e),Wn(e),e.id,JSON.stringify(e.data??{})].map(mT)}function dT(e,t){return[Wn(e),e.category??"",JSON.stringify(e.data??{}),...t.map(r=>`${Wn(r)} ${JSON.stringify(r.data??{})}`)].join(" ").toLowerCase()}function fT(e){const n=yt(e).args,r=n&&typeof n=="object"&&!Array.isArray(n)?n.prompt:void 0;return typeof r!="string"||!r.trim()?null:r.replace(/\s+/g," ").trim().slice(0,360)}function pT(e){return[["time","kind","signal","category","target","message","id","payload"].join(" "),...e.map(t=>Vu(t).join(" "))].join(`
|
|
2
|
-
`)}function mT(e){return e.replace(/\s+/g," ").trim()}function hT(e){return e==="time"?"desc":"asc"}function gT(e,t){const n=t.direction==="asc"?1:-1;return e.map((r,o)=>({event:r,index:o})).sort((r,o)=>{const i=bT(kb(r.event,t.key),kb(o.event,t.key));return i===0?r.index-o.index:i*n}).map(({event:r})=>r)}function kb(e,t){switch(t){case"time":return e.timestamp;case"kind":return e.kind;case"level":return ln(e);case"category":return e.category??"";case"target":return To(e);case"message":return Wn(e);case"id":return Du(e.id)}}function bT(e,t){return typeof e=="number"&&typeof t=="number"?e-t:String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"})}async function vT(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy")}finally{document.body.removeChild(t)}}function yT(e,t,n){const r=new Set,o=[];for(const i of t)r.has(i.id)||(r.add(i.id),o.push(i));for(let i=e.length-1;i>=0;i--){const a=e[i];r.has(a.id)||(r.add(a.id),o.push(a))}return o.sort((i,a)=>a.timestamp-i.timestamp),o.slice(0,n)}function wT(e){return e==="red"?"text-destructive":e==="amber"?"text-warning":"text-success"}function xT(e){return e==="red"?"bg-destructive":e==="amber"?"bg-warning":"bg-success"}function qd(){const{titleBarInset:e}=$i();return s.useMemo(()=>{const t=Tr.layout.navHeight+e;return{navTotalHeight:t,panelTopOffset:t}},[e])}const Eb={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},CT=({scale:e,onZoom:t,min:n=.2,max:r=3,step:o=.1})=>{const[i,a]=s.useState(!1),[c,u]=s.useState(""),l=s.useRef(null),d=s.useCallback(w=>Math.min(r,Math.max(n,w)),[n,r]),f=s.useCallback(()=>{t(d(e+o))},[e,o,t,d]),m=s.useCallback(()=>{t(d(e-o))},[e,o,t,d]),h=s.useCallback(()=>{u(Math.round(e*100).toString()),a(!0)},[e]),g=s.useCallback(()=>{a(!1);const w=parseInt(c,10);!isNaN(w)&&w>0&&t(d(w/100))},[c,t,d]),v=s.useCallback(w=>{w.key==="Enter"?g():w.key==="Escape"&&a(!1)},[g]);return s.useEffect(()=>{i&&l.current&&(l.current.focus(),l.current.select())},[i]),p.jsxs("div",{className:"pointer-events-auto flex flex-col items-center bg-card/95 border rounded-none shadow-[var(--hud-shadow-panel)] overflow-hidden",style:Eb,children:[p.jsx("button",{onClick:f,className:"w-9 h-8 flex items-center justify-center hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:"Zoom in",children:p.jsx(OP,{size:14})}),p.jsx("div",{className:"w-full border-t border-b",style:Eb,children:i?p.jsx("input",{ref:l,type:"text",value:c,onChange:w=>u(w.target.value.replace(/[^0-9]/g,"")),onBlur:g,onKeyDown:v,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground bg-background/60 outline-none tabular-nums"}):p.jsxs("button",{onClick:h,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground hover:bg-accent/10 transition-colors cursor-text tabular-nums",title:"Click to set zoom",children:[Math.round(e*100),"%"]})}),p.jsx("button",{onClick:m,className:"w-9 h-8 flex items-center justify-center hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:"Zoom out",children:p.jsx(EP,{size:14})})]})},kT={...Si};let Lb=0;function ET(e,t="mui"){const[n,r]=s.useState(e),o=e||n;return s.useEffect(()=>{n==null&&(Lb+=1,r(`${t}-${Lb}`))},[n,t]),o}const Sb=kT.useId;function _n(e,t){if(Sb!==void 0){const n=Sb();return e??(t?`${t}-${n}`:n)}return ET(e,t)}function hr(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const Qy=s.createContext(void 0);function Mi(e=!0){const t=s.useContext(Qy);if(t===void 0&&!e)throw new Error(hr(25));return t}const e2=s.createContext(void 0);function t2(e){const t=s.useContext(e2);if(t===void 0&&!e)throw new Error(hr(33));return t}const Zd=s.createContext(void 0);function Wr(e){const t=s.useContext(Zd);if(t===void 0&&!e)throw new Error(hr(36));return t}const $b={};function Ft(e,t){const n=s.useRef($b);return n.current===$b&&(n.current=e(t)),n}function Ao(e,t,n,r){const o=Ft(n2).current;return ST(o,e,t,n,r)&&r2(o,[e,t,n,r]),o.callback}function LT(e){const t=Ft(n2).current;return $T(t,e)&&r2(t,e),t.callback}function n2(){return{callback:null,cleanup:null,refs:[]}}function ST(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function $T(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function r2(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(r[o]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=r[o];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}const jT=parseInt(s.version,10);function Jd(e){return jT>=e}function jb(e){if(!s.isValidElement(e))return null;const t=e,n=t.props;return(Jd(19)?n?.ref:t.ref)??null}function Fu(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function OT(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function RT(e,t){return typeof e=="function"?e(t):e}function MT(e,t){return typeof e=="function"?e(t):e}const Co={};function Pi(e,t,n,r,o){let i={...Bu(e,Co)};return t&&(i=Rs(i,t)),n&&(i=Rs(i,n)),r&&(i=Rs(i,r)),i}function PT(e){if(e.length===0)return Co;if(e.length===1)return Bu(e[0],Co);let t={...Bu(e[0],Co)};for(let n=1;n<e.length;n+=1)t=Rs(t,e[n]);return t}function Rs(e,t){return o2(t)?t(e):TT(e,t)}function TT(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Fu(e.style,r);break}case"className":{e[n]=s2(e.className,r);break}default:AT(n,r)?e[n]=IT(e[n],r):e[n]=r}}return e}function AT(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function o2(e){return typeof e=="function"}function Bu(e,t){return o2(e)?e(t):e??Co}function IT(e,t){return t?e?n=>{if(NT(n)){const o=n;Hu(o);const i=t(o);return o.baseUIHandlerPrevented||e?.(o),i}const r=t(n);return e?.(n),r}:t:e}function Hu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function s2(e,t){return t?e?t+" "+e:t:e}function NT(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function i2(){}const a2=Object.freeze([]),kt=Object.freeze({}),DT=500,VT={style:{transition:"none"}},FT="data-base-ui-click-trigger",BT={fallbackAxisSide:"none"},HT={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Un(e,t,n={}){const r=t.render,o=WT(t,n);if(n.enabled===!1)return null;const i=n.state??kt;return zT(e,r,o,i)}function WT(e,t={}){const{className:n,style:r,render:o}=e,{state:i=kt,ref:a,props:c,stateAttributesMapping:u,enabled:l=!0}=t,d=l?RT(n,i):void 0,f=l?MT(r,i):void 0,m=l?OT(i,u):kt,h=l?Fu(m,Array.isArray(c)?PT(c):c)??kt:kt;return typeof document<"u"&&(l?Array.isArray(a)?h.ref=LT([h.ref,jb(o),...a]):h.ref=Ao(h.ref,jb(o),a):Ao(null,null)),l?(d!==void 0&&(h.className=s2(h.className,d)),f!==void 0&&(h.style=Fu(h.style,f)),h):kt}function zT(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Pi(n,t.props);return o.ref=n.ref,s.cloneElement(t,o)}return _T(e,n)}function _T(e,t){return s.createElement(e,t)}let qs=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const UT={[qs.startingStyle]:""},KT={[qs.endingStyle]:""},GT={transitionStatus(e){return e==="starting"?UT:e==="ending"?KT:null}};let Qd=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=qs.startingStyle]="startingStyle",e[e.endingStyle=qs.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),Ob=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const YT={[Ob.popupOpen]:"",[Ob.pressed]:""},XT={[Qd.open]:""},qT={[Qd.closed]:""},ZT={[Qd.anchorHidden]:""},JT={open(e){return e?YT:null}},c2={open(e){return e?XT:qT},anchorHidden(e){return e?ZT:null}},QT="none",Zs="trigger-press",cr="trigger-hover",Rb="trigger-focus",ef="outside-press",l2="item-press",Ti="focus-out",u2="escape-key",Ms="list-navigation",eA="cancel-open",bo="sibling-open",tA="imperative-action",zl=Si[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],nA=zl&&zl!==s.useLayoutEffect?zl:e=>e();function ke(e){const t=Ft(rA).current;return t.next=e,nA(t.effect),t.trampoline}function rA(){const e={next:void 0,callback:oA,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function oA(){}function Ai(){return typeof window<"u"}function Kn(e){return tf(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(tf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tf(e){return Ai()?e instanceof Node||e instanceof at(e).Node:!1}function We(e){return Ai()?e instanceof Element||e instanceof at(e).Element:!1}function Xe(e){return Ai()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function Wu(e){return!Ai()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}const sA=new Set(["inline","contents"]);function gr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!sA.has(o)}const iA=new Set(["table","td","th"]);function aA(e){return iA.has(Kn(e))}const cA=[":popover-open",":modal"];function Ii(e){return cA.some(t=>{try{return e.matches(t)}catch{return!1}})}const lA=["transform","translate","scale","rotate","perspective"],uA=["transform","translate","scale","rotate","perspective","filter"],dA=["paint","layout","strict","content"];function nf(e){const t=Ni(),n=We(e)?Mt(e):e;return lA.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uA.some(r=>(n.willChange||"").includes(r))||dA.some(r=>(n.contain||"").includes(r))}function fA(e){let t=un(e);for(;Xe(t)&&!on(t);){if(nf(t))return t;if(Ii(t))return null;t=un(t)}return null}function Ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pA=new Set(["html","body","#document"]);function on(e){return pA.has(Kn(e))}function Mt(e){return at(e).getComputedStyle(e)}function Di(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function un(e){if(Kn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wu(e)&&e.host||fn(e);return Wu(t)?t.host:t}function d2(e){const t=un(e);return on(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xe(t)&&gr(t)?t:d2(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=d2(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=at(o);if(i){const c=zu(a);return t.concat(a,a.visualViewport||[],gr(o)?o:[],c&&n?Dn(c):[])}return t.concat(o,Dn(o,[],n))}function zu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const mA=()=>{},we=typeof document<"u"?s.useLayoutEffect:mA,hA=s.createContext(void 0);function gA(e=!1){const t=s.useContext(hA);if(t===void 0&&!e)throw new Error(hr(16));return t}function bA(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,a=r&&t!==!1,c=r&&t===!1;return{props:s.useMemo(()=>{const l={onKeyDown(d){n&&t&&d.key!=="Tab"&&d.preventDefault()}};return r||(l.tabIndex=o,!i&&n&&(l.tabIndex=t?o:-1)),(i&&(t||a)||!i&&n)&&(l["aria-disabled"]=n),i&&(!t||c)&&(l.disabled=n),l},[r,n,t,a,c,i,o])}}function vA(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,i=s.useRef(null),a=gA(!0)!==void 0,c=ke(()=>{const m=i.current;return!!(m?.tagName==="A"&&m?.href)}),{props:u}=bA({focusableWhenDisabled:n,disabled:t,composite:a,tabIndex:r,isNativeButton:o}),l=s.useCallback(()=>{const m=i.current;yA(m)&&a&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,a]);we(l,[l]);const d=s.useCallback((m={})=>{const{onClick:h,onMouseDown:g,onKeyUp:v,onKeyDown:w,onPointerDown:b,...y}=m;return Pi({type:o?"button":void 0,onClick(C){if(t){C.preventDefault();return}h?.(C)},onMouseDown(C){t||g?.(C)},onKeyDown(C){if(t||(Hu(C),w?.(C)),C.baseUIHandlerPrevented)return;const x=C.target===C.currentTarget&&!o&&!c()&&!t,L=C.key==="Enter",S=C.key===" ";x&&((S||L)&&C.preventDefault(),L&&h?.(C))},onKeyUp(C){t||(Hu(C),v?.(C)),!C.baseUIHandlerPrevented&&C.target===C.currentTarget&&!o&&!t&&C.key===" "&&h?.(C)},onPointerDown(C){if(t){C.preventDefault();return}b?.(C)}},o?void 0:{role:"button"},u,y)},[t,u,o,c]),f=ke(m=>{i.current=m,l()});return{getButtonProps:d,buttonRef:f}}function yA(e){return Xe(e)&&e.tagName==="BUTTON"}const wA={type:"regular-item"};function xA(e){const{closeOnClick:t,disabled:n=!1,highlighted:r,id:o,store:i,nativeButton:a,itemMetadata:c,nodeId:u}=e,l=s.useRef(null),d=Mi(!0),f=d!==void 0,{events:m}=i.useState("floatingTreeRoot"),{getButtonProps:h,buttonRef:g}=vA({disabled:n,focusableWhenDisabled:!0,native:a}),v=s.useCallback(b=>Pi({id:o,role:"menuitem",tabIndex:r?0:-1,onMouseMove(y){u&&m.emit("itemhover",{nodeId:u,target:y.currentTarget})},onMouseEnter(){c.type==="submenu-trigger"&&c.setActive()},onKeyUp(y){y.key===" "&&i.context.typingRef.current&&y.preventBaseUIHandler()},onClick(y){t&&m.emit("close",{domEvent:y,reason:l2})},onMouseUp(y){if(d){const k=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&k&&Math.abs(y.clientX-k.x)<=1&&Math.abs(y.clientY-k.y)<=1)return}l.current&&i.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&c.type==="regular-item"&&l.current.click()}},b,h),[o,r,h,t,m,i,f,d,c,u]),w=Ao(l,g);return s.useMemo(()=>({getItemProps:v,itemRef:w}),[v,w])}const f2=s.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function CA(){return s.useContext(f2)}let kA=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function EA(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:i}=e,{register:a,unregister:c,subscribeMapChange:u,elementsRef:l,labelsRef:d,nextIndexRef:f}=CA(),m=s.useRef(-1),[h,g]=s.useState(i??(o===kA.GuessFromOrder?()=>{if(m.current===-1){const b=f.current;f.current+=1,m.current=b}return m.current}:-1)),v=s.useRef(null),w=s.useCallback(b=>{if(v.current=b,h!==-1&&b!==null&&(l.current[h]=b,d)){const y=t!==void 0;d.current[h]=y?t:r?.current?.textContent??b.textContent}},[h,l,d,t,r]);return we(()=>{if(i!=null)return;const b=v.current;if(b)return a(b,n),()=>{c(b)}},[i,a,c,n]),we(()=>{if(i==null)return u(b=>{const y=v.current?b.get(v.current)?.index:null;y!=null&&g(y)})},[i,u,g]),s.useMemo(()=>({ref:w,index:h}),[h,w])}function p2(e){return _n(e,"base-ui")}function Je(e,t,n,r){let o=!1,i=!1;const a=kt;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...a}}const LA=[];function m2(e){s.useEffect(e,LA)}const as=null;let SA=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}};const cs=new SA;let Pn=class h2{static create(){return new h2}static request(t){return cs.request(t)}static cancel(t){return cs.cancel(t)}currentId=as;request(t){this.cancel(),this.currentId=cs.request(()=>{this.currentId=as,t()})}cancel=()=>{this.currentId!==as&&(cs.cancel(this.currentId),this.currentId=as)};disposeEffect=()=>this.cancel};function rf(){const e=Ft(Pn.create).current;return m2(e.disposeEffect),e}function $A(e,t=!1,n=!1){const[r,o]=s.useState(e&&t?"idle":void 0),[i,a]=s.useState(e);return e&&!i&&(a(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),we(()=>{if(!e&&i&&r!=="ending"&&n){const c=Pn.request(()=>{o("ending")});return()=>{Pn.cancel(c)}}},[e,i,r,n]),we(()=>{if(!e||t)return;const c=Pn.request(()=>{pt.flushSync(()=>{o(void 0)})});return()=>{Pn.cancel(c)}},[t,e]),we(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const c=Pn.request(()=>{o("idle")});return()=>{Pn.cancel(c)}},[t,e,i,o,r]),s.useMemo(()=>({mounted:i,setMounted:a,transitionStatus:r}),[i,r])}function xt(e){const t=Ft(jA,e).current;return t.next=e,we(t.effect),t}function jA(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function or(e){return e==null?e:"current"in e?e.current:e}function OA(e,t=!1,n=!0){const r=rf();return ke((o,i=null)=>{r.cancel();const a=or(e);a!=null&&(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function c(){a&&Promise.all(a.getAnimations().map(u=>u.finished)).then(()=>{i!=null&&i.aborted||pt.flushSync(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;pt.flushSync(o)}else a.getAnimations().length>0&&a.getAnimations().some(u=>u.pending||u.playState!=="finished")&&c()})}t?r.request(c):c()}))})}function g2(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=xt(n),a=ke(o),c=OA(r,n);s.useEffect(()=>{t&&c(()=>{n===i.current&&a()})},[t,n,a,c,i])}const b2=s.createContext(void 0);function RA(){const e=s.useContext(b2);if(e===void 0)throw new Error(hr(31));return e}const MA=s.forwardRef(function(t,n){const{render:r,className:o,...i}=t,[a,c]=s.useState(void 0),u=s.useMemo(()=>({setLabelId:c}),[c]),l=Un("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return p.jsx(b2.Provider,{value:u,children:l})}),PA=s.forwardRef(function(t,n){const{className:r,render:o,id:i,...a}=t,c=p2(i),{setLabelId:u}=RA();return we(()=>(u(c),()=>{u(void 0)}),[u,c]),Un("div",t,{ref:n,props:{id:c,role:"presentation",...a}})}),TA=s.forwardRef(function(t,n){const{render:r,className:o,id:i,label:a,nativeButton:c=!1,disabled:u=!1,closeOnClick:l=!0,...d}=t,f=EA({label:a}),m=t2(!0),h=p2(i),{store:g}=Wr(),v=g.useState("isActive",f.index),w=g.useState("itemProps"),{getItemProps:b,itemRef:y}=xA({closeOnClick:l,disabled:u,highlighted:v,id:h,store:g,nativeButton:c,nodeId:m?.nodeId,itemMetadata:wA}),k=s.useMemo(()=>({disabled:u,highlighted:v}),[u,v]);return Un("div",t,{state:k,props:[w,d,b],ref:[y,n,f.ref]})}),lo=0;let Js=class v2{static create(){return new v2}currentId=lo;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=lo,n()},t)}isStarted(){return this.currentId!==lo}clear=()=>{this.currentId!==lo&&(clearTimeout(this.currentId),this.currentId=lo)};disposeEffect=()=>this.clear};function qt(){const e=Ft(Js.create).current;return m2(e.disposeEffect),e}const zr=typeof navigator<"u",_l=VA(),y2=BA(),w2=FA(),AA=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),IA=_l.platform==="MacIntel"&&_l.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(_l.platform),NA=zr&&/apple/i.test(navigator.vendor),_u=zr&&/android/i.test(y2)||/android/i.test(w2);zr&&y2.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const DA=w2.includes("jsdom/");function VA(){if(!zr)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function FA(){if(!zr)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function BA(){if(!zr)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const Uu="data-base-ui-focusable",x2="active",C2="selected",k2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Vn="ArrowLeft",Fn="ArrowRight",of="ArrowUp",zo="ArrowDown";function Tn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function He(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Wu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ct(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function HA(e){return e.matches("html,body")}function ot(e){return e?.ownerDocument||document}function WA(e){return Xe(e)&&e.matches(k2)}function Ku(e){return e?e.getAttribute("role")==="combobox"&&WA(e):!1}function Qs(e){return e?e.hasAttribute(Uu)?e:e.querySelector(`[${Uu}]`)||e:null}function $r(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...$r(e,o.id,n)])}function Mb(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(i=>i.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function st(e){e.preventDefault(),e.stopPropagation()}function zA(e){return"nativeEvent"in e}function E2(e){return e.mozInputSource===0&&e.isTrusted?!0:_u&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function L2(e){return DA?!1:!_u&&e.width===0&&e.height===0||_u&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function _A(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function UA(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const KA=["top","right","bottom","left"],Nr=Math.min,$t=Math.max,ei=Math.round,xr=Math.floor,sn=e=>({x:e,y:e}),GA={left:"right",right:"left",bottom:"top",top:"bottom"},YA={start:"end",end:"start"};function Gu(e,t,n){return $t(e,Nr(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function Gn(e){return e.split("-")[1]}function sf(e){return e==="x"?"y":"x"}function af(e){return e==="y"?"height":"width"}const XA=new Set(["top","bottom"]);function At(e){return XA.has(Rt(e))?"y":"x"}function cf(e){return sf(At(e))}function qA(e,t,n){n===void 0&&(n=!1);const r=Gn(e),o=cf(e),i=af(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ti(a)),[a,ti(a)]}function ZA(e){const t=ti(e);return[Yu(e),t,Yu(t)]}function Yu(e){return e.replace(/start|end/g,t=>YA[t])}const Pb=["left","right"],Tb=["right","left"],JA=["top","bottom"],QA=["bottom","top"];function eI(e,t,n){switch(e){case"top":case"bottom":return n?t?Tb:Pb:t?Pb:Tb;case"left":case"right":return t?JA:QA;default:return[]}}function tI(e,t,n,r){const o=Gn(e);let i=eI(Rt(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Yu)))),i}function ti(e){return e.replace(/left|right|bottom|top/g,t=>GA[t])}function nI(e){return{top:0,right:0,bottom:0,left:0,...e}}function S2(e){return typeof e!="number"?nI(e):{top:e,right:e,bottom:e,left:e}}function ni(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ls(e,t,n){return Math.floor(e/t)!==n}function ko(e,t){return t<0||t>=e.current.length}function Ul(e,t){return lt(e,{disabledIndices:t})}function Ab(e,t){return lt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function lt(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do i+=n?-o:o;while(i>=0&&i<=e.current.length-1&&Eo(e,i,r));return i}function rI(e,{event:t,orientation:n,loopFocus:r,rtl:o,cols:i,disabledIndices:a,minIndex:c,maxIndex:u,prevIndex:l,stopEvent:d=!1}){let f=l;const m=[],h={};let g=!1;{let b=null,y=-1;e.current.forEach((k,C)=>{if(k==null)return;const x=k.closest('[role="row"]');x&&(g=!0),(x!==b||y===-1)&&(b=x,y+=1,m[y]=[]),m[y].push(C),h[C]=y})}const v=g&&m.length>0&&m.some(b=>b.length!==i);function w(b){if(!v||l===-1)return;const y=h[l];if(y==null)return;const k=m[y].indexOf(l);let C=b==="up"?y-1:y+1;r&&(C<0?C=m.length-1:C>=m.length&&(C=0));const x=new Set;for(;C>=0&&C<m.length&&!x.has(C);){x.add(C);const L=m[C];if(L.length===0){C=b==="up"?C-1:C+1;continue}const S=Math.min(k,L.length-1);for(let E=S;E>=0;E-=1){const R=L[E];if(!Eo(e,R,a))return R}C=b==="up"?C-1:C+1,r&&(C<0?C=m.length-1:C>=m.length&&(C=0))}}if(t.key===of){const b=w("up");if(b!==void 0)d&&st(t),f=b;else{if(d&&st(t),l===-1)f=u;else if(f=lt(e,{startingIndex:f,amount:i,decrement:!0,disabledIndices:a}),r&&(l-i<c||f<0)){const y=l%i,k=u%i,C=u-(k-y);k===y?f=u:f=k>y?C:C-i}ko(e,f)&&(f=l)}}if(t.key===zo){const b=w("down");b!==void 0?(d&&st(t),f=b):(d&&st(t),l===-1?f=c:(f=lt(e,{startingIndex:l,amount:i,disabledIndices:a}),r&&l+i>u&&(f=lt(e,{startingIndex:l%i-i,amount:i,disabledIndices:a}))),ko(e,f)&&(f=l))}if(n==="both"){const b=xr(l/i);t.key===(o?Vn:Fn)&&(d&&st(t),l%i!==i-1?(f=lt(e,{startingIndex:l,disabledIndices:a}),r&&ls(f,i,b)&&(f=lt(e,{startingIndex:l-l%i-1,disabledIndices:a}))):r&&(f=lt(e,{startingIndex:l-l%i-1,disabledIndices:a})),ls(f,i,b)&&(f=l)),t.key===(o?Fn:Vn)&&(d&&st(t),l%i!==0?(f=lt(e,{startingIndex:l,decrement:!0,disabledIndices:a}),r&&ls(f,i,b)&&(f=lt(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:a}))):r&&(f=lt(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:a})),ls(f,i,b)&&(f=l));const y=xr(u/i)===b;ko(e,f)&&(r&&y?f=t.key===(o?Fn:Vn)?u:lt(e,{startingIndex:l-l%i-1,disabledIndices:a}):f=l)}return f}function oI(e,t,n){const r=[];let o=0;return e.forEach(({width:i,height:a},c)=>{let u=!1;for(n&&(o=0);!u;){const l=[];for(let d=0;d<i;d+=1)for(let f=0;f<a;f+=1)l.push(o+d+f*t);o%t+i<=t&&l.every(d=>r[d]==null)?(l.forEach(d=>{r[d]=c}),u=!0):o+=1}}),[...r]}function sI(e,t,n,r,o){if(e===-1)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e);default:return-1}}function iI(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function Eo(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}var aI=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ri=aI.join(","),$2=typeof Element>"u",Dr=$2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,oi=!$2&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},si=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):si(t.parentNode));return a},cI=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},j2=function(t,n,r){if(si(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ri));return n&&Dr.call(t,ri)&&o.unshift(t),o=o.filter(r),o},ii=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!si(a,!1))if(a.tagName==="SLOT"){var c=a.assignedElements(),u=c.length?c:a.children,l=ii(u,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{var d=Dr.call(a,ri);d&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),m=!si(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(f&&m){var h=ii(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:a,candidates:h})}else i.unshift.apply(i,a.children)}}return o},O2=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},R2=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||cI(t))&&!O2(t)?0:t.tabIndex},lI=function(t,n){var r=R2(t);return r<0&&n&&!O2(t)?0:r},uI=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},M2=function(t){return t.tagName==="INPUT"},dI=function(t){return M2(t)&&t.type==="hidden"},fI=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},pI=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},mI=function(t){if(!t.name)return!0;var n=t.form||oi(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=pI(o,t.form);return!i||i===t},hI=function(t){return M2(t)&&t.type==="radio"},gI=function(t){return hI(t)&&!mI(t)},bI=function(t){var n,r=t&&oi(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var a,c,u;for(i=!!((a=o)!==null&&a!==void 0&&(c=a.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var l,d,f;r=oi(o),o=(l=r)===null||l===void 0?void 0:l.host,i=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Ib=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},vI=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var a=Dr.call(t,"details>summary:first-of-type"),c=a?t.parentElement:t;if(Dr.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var l=t.parentElement,d=oi(t);if(l&&!l.shadowRoot&&o(l)===!0)return Ib(t);t.assignedSlot?t=t.assignedSlot:!l&&d!==t.ownerDocument?t=d.host:t=l}t=u}if(bI(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ib(t);return!1},yI=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Dr.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Xu=function(t,n){return!(n.disabled||dI(n)||vI(n,t)||fI(n)||yI(n))},qu=function(t,n){return!(gI(n)||R2(n)<0||!Xu(t,n))},wI=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},P2=function(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,c=a?o.scopeParent:o,u=lI(c,a),l=a?P2(o.candidates):c;u===0?a?n.push.apply(n,l):n.push(c):r.push({documentOrder:i,tabIndex:u,item:o,isScope:a,content:l})}),r.sort(uI).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Vi=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ii([t],n.includeContainer,{filter:qu.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:wI}):r=j2(t,n.includeContainer,qu.bind(null,n)),P2(r)},xI=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ii([t],n.includeContainer,{filter:Xu.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=j2(t,n.includeContainer,Xu.bind(null,n)),r},T2=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Dr.call(t,ri)===!1?!1:qu(n,t)};const _o=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function A2(e,t){const n=Vi(e,_o()),r=n.length;if(r===0)return;const o=Tn(ot(e)),i=n.indexOf(o),a=i===-1?t===1?0:r-1:i+t;return n[a]}function I2(e){return A2(ot(e).body,1)||e}function N2(e){return A2(ot(e).body,-1)||e}function Lo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!He(n,r)}function CI(e){Vi(e,_o()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Nb(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function D2(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class V2{nodesRef={current:[]};events=D2();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const F2=s.createContext(null),B2=s.createContext(null),Yn=()=>s.useContext(F2)?.id||null,_r=e=>{const t=s.useContext(B2);return e??t};function kI(e){const t=_n(),n=_r(e),r=Yn();return we(()=>{if(!t)return;const o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function EI(e){const{children:t,id:n}=e,r=Yn();return p.jsx(F2.Provider,{value:s.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function LI(e){const{children:t,externalTree:n}=e,r=Ft(()=>n??new V2).current;return p.jsx(B2.Provider,{value:r,children:t})}function Io(e){return`data-base-ui-${e}`}const H2={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};function dr(e){return e?.ownerDocument||document}const ai=s.forwardRef(function(t,n){const[r,o]=s.useState();we(()=>{NA&&o("button")},[]);const i={tabIndex:0,role:r};return p.jsx("span",{...t,ref:n,style:H2,"aria-hidden":r?void 0:!0,...i,"data-base-ui-focus-guard":""})});let Db=0;function Ps(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Db);const i=()=>e?.focus({preventScroll:n});o?i():Db=requestAnimationFrame(i)}const jr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Vb(e){return e==="inert"?jr.inert:e==="aria-hidden"?jr["aria-hidden"]:jr.none}let us=new WeakSet,ds={},Kl=0;const W2=e=>e&&(e.host||W2(e.parentNode)),SI=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=W2(n);return e.contains(r)?r:null}).filter(n=>n!=null);function $I(e,t,n,r){const o="data-base-ui-inert",i=r?"inert":n?"aria-hidden":null,a=SI(t,e),c=new Set,u=new Set(a),l=[];ds[o]||(ds[o]=new WeakMap);const d=ds[o];a.forEach(f),m(t),c.clear();function f(h){!h||c.has(h)||(c.add(h),h.parentNode&&f(h.parentNode))}function m(h){!h||u.has(h)||[].forEach.call(h.children,g=>{if(Kn(g)!=="script")if(c.has(g))m(g);else{const v=i?g.getAttribute(i):null,w=v!==null&&v!=="false",b=Vb(i),y=(b.get(g)||0)+1,k=(d.get(g)||0)+1;b.set(g,y),d.set(g,k),l.push(g),y===1&&w&&us.add(g),k===1&&g.setAttribute(o,""),!w&&i&&g.setAttribute(i,i==="inert"?"":"true")}})}return Kl+=1,()=>{l.forEach(h=>{const g=Vb(i),w=(g.get(h)||0)-1,b=(d.get(h)||0)-1;g.set(h,w),d.set(h,b),w||(!us.has(h)&&i&&h.removeAttribute(i),us.delete(h)),b||h.removeAttribute(o)}),Kl-=1,Kl||(jr.inert=new WeakMap,jr["aria-hidden"]=new WeakMap,jr.none=new WeakMap,us=new WeakSet,ds={})}}function jI(e,t=!1,n=!1){const r=ot(e[0]).body;return $I(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const z2=s.createContext(null),_2=()=>s.useContext(z2),OI=Io("portal");function RI(e={}){const{ref:t,container:n,componentProps:r=kt,elementProps:o,elementState:i}=e,a=_n(),u=_2()?.portalNode,[l,d]=s.useState(null),[f,m]=s.useState(null),h=s.useRef(null);we(()=>{if(n===null){h.current&&(h.current=null,m(null),d(null));return}if(a==null)return;const w=(n&&(tf(n)?n:n.current))??u??document.body;if(w==null){h.current&&(h.current=null,m(null),d(null));return}h.current!==w&&(h.current=w,m(null),d(w))},[n,u,a]);const g=Un("div",r,{ref:[t,m],state:i,props:[{id:a,[OI]:""},o]});return{portalNode:f,portalSubtree:l&&g?pt.createPortal(g,l):null}}const MI=s.forwardRef(function(t,n){const{children:r,container:o,className:i,render:a,renderGuards:c,...u}=t,{portalNode:l,portalSubtree:d}=RI({container:o,ref:n,componentProps:t,elementProps:u}),f=s.useRef(null),m=s.useRef(null),h=s.useRef(null),g=s.useRef(null),[v,w]=s.useState(null),b=v?.modal,y=v?.open,k=typeof c=="boolean"?c:!!v&&!v.modal&&v.open&&!!l;s.useEffect(()=>{if(!l||b)return;function x(L){l&&Lo(L)&&(L.type==="focusin"?Nb:CI)(l)}return l.addEventListener("focusin",x,!0),l.addEventListener("focusout",x,!0),()=>{l.removeEventListener("focusin",x,!0),l.removeEventListener("focusout",x,!0)}},[l,b]),s.useEffect(()=>{!l||y||Nb(l)},[y,l]);const C=s.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:w}),[l]);return p.jsxs(s.Fragment,{children:[d,p.jsxs(z2.Provider,{value:C,children:[k&&l&&p.jsx(ai,{"data-type":"outside",ref:f,onFocus:x=>{if(Lo(x,l))h.current?.focus();else{const L=v?v.domReference:null;N2(L)?.focus()}}}),k&&l&&p.jsx("span",{"aria-owns":l.id,style:HT}),l&&pt.createPortal(r,l),k&&l&&p.jsx(ai,{"data-type":"outside",ref:m,onFocus:x=>{if(Lo(x,l))g.current?.focus();else{const L=v?v.domReference:null;I2(L)?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,Je(Ti,x.nativeEvent))}}})]})]})});function PI(e,t){const n=at(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Fb=20;let An=[];function lf(){An=An.filter(e=>e.isConnected)}function TI(e){lf(),e&&Kn(e)!=="body"&&(An.push(e),An.length>Fb&&(An=An.slice(-Fb)))}function Gl(){return lf(),An[An.length-1]}function AI(e){if(!e)return null;const t=_o();return T2(e,t)?e:Vi(e,t)[0]||e}function II(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Mt(e).display!=="none"}function Bb(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=_o(),o=xI(e,n).filter(a=>{const c=a.getAttribute("data-tabindex")||"";return T2(a,n)||a.hasAttribute("data-tabindex")&&!c.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?i!=="0"&&e.setAttribute("tabindex","0"):(i!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function NI(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:i=!0,returnFocus:a=!0,restoreFocus:c=!1,modal:u=!0,closeOnFocusOut:l=!0,openInteractionType:d="",getInsideElements:f=()=>[],nextFocusableElement:m,previousFocusableElement:h,beforeContentFocusGuardRef:g,externalTree:v}=e,w="rootStore"in t?t.rootStore:t,b=w.useState("open"),y=w.useState("domReferenceElement"),k=w.useState("floatingElement"),{events:C,dataRef:x}=w.context,L=ke(()=>x.current.floatingContext?.nodeId),S=ke(f),E=i===!1,R=Ku(y)&&E,T=xt(o),D=xt(i),I=xt(a),j=xt(d),H=_r(v),P=_2(),A=s.useRef(null),V=s.useRef(null),$=s.useRef(!1),z=s.useRef(!1),M=s.useRef(!1),q=s.useRef(-1),ee=s.useRef(""),te=s.useRef(""),ae=qt(),le=qt(),ne=rf(),re=P!=null,se=Qs(k),ie=ke((G=se)=>G?Vi(G,_o()):[]),ue=ke(G=>{const Z=ie(G);return T.current.map(()=>Z).filter(Boolean).flat()});s.useEffect(()=>{if(r||!u)return;function G(be){be.key==="Tab"&&He(se,Tn(ot(se)))&&ie().length===0&&!R&&st(be)}const Z=ot(se);return Z.addEventListener("keydown",G),()=>{Z.removeEventListener("keydown",G)}},[r,y,se,u,T,R,ie,ue]),s.useEffect(()=>{if(r||!k)return;function G(Z){const be=Ct(Z),W=ie().indexOf(be);W!==-1&&(q.current=W)}return k.addEventListener("focusin",G),()=>{k.removeEventListener("focusin",G)}},[r,k,ie]),s.useEffect(()=>{if(r||!b)return;const G=ot(se);function Z(){M.current=!1}function be(W){const _=Ct(W),ce=He(k,_)||He(y,_)||He(P?.portalNode,_);M.current=!ce,te.current=W.pointerType||"keyboard"}function ve(){te.current="keyboard"}return G.addEventListener("pointerdown",be,!0),G.addEventListener("pointerup",Z,!0),G.addEventListener("pointercancel",Z,!0),G.addEventListener("keydown",ve,!0),()=>{G.removeEventListener("pointerdown",be,!0),G.removeEventListener("pointerup",Z,!0),G.removeEventListener("pointercancel",Z,!0),G.removeEventListener("keydown",ve,!0)}},[r,k,y,se,b,P]),s.useEffect(()=>{if(r||!l)return;function G(){z.current=!0,le.start(0,()=>{z.current=!1})}function Z(_){const ce=_.relatedTarget,Y=_.currentTarget,K=Ct(_);queueMicrotask(()=>{const oe=L(),ye=w.context.triggerElements,Ee=!(He(y,ce)||He(k,ce)||He(ce,k)||He(P?.portalNode,ce)||ce!=null&&ye.hasElement(ce)||ye.hasMatchingElement(xe=>He(xe,ce))||ce?.hasAttribute(Io("focus-guard"))||H&&($r(H.nodesRef.current,oe).find(xe=>He(xe.context?.elements.floating,ce)||He(xe.context?.elements.domReference,ce))||Mb(H.nodesRef.current,oe).find(xe=>[xe.context?.elements.floating,Qs(xe.context?.elements.floating)].includes(ce)||xe.context?.elements.domReference===ce)));if(Y===y&&se&&Bb(se,T),c&&Y!==y&&!II(K)&&Tn(ot(se))===ot(se).body){if(Xe(se)&&(se.focus(),c==="popup")){ne.request(()=>{se.focus()});return}const xe=q.current,Ae=ie(),Ie=Ae[xe]||Ae[Ae.length-1]||se;Xe(Ie)&&Ie.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(R||!u)&&ce&&Ee&&!z.current&&(R||ce!==Gl())&&($.current=!0,w.setOpen(!1,Je(Ti,_)))})}function be(){M.current||(x.current.insideReactTree=!0,ae.start(0,()=>{x.current.insideReactTree=!1}))}const ve=Xe(y)?y:null,W=[];if(!(!k&&!ve))return ve&&(ve.addEventListener("focusout",Z),ve.addEventListener("pointerdown",G),W.push(()=>{ve.removeEventListener("focusout",Z),ve.removeEventListener("pointerdown",G)})),k&&(k.addEventListener("focusout",Z),P&&(k.addEventListener("focusout",be,!0),W.push(()=>{k.removeEventListener("focusout",be,!0)})),W.push(()=>{k.removeEventListener("focusout",Z)})),()=>{W.forEach(_=>{_()})}},[r,y,k,se,u,H,P,w,l,c,ie,R,L,T,x,ae,le,ne]);const O=s.useRef(null),X=s.useRef(null),F=Ao(O,g,P?.beforeInsideRef),ge=Ao(X,P?.afterInsideRef);s.useEffect(()=>{if(r||!k||!b)return;const G=Array.from(P?.portalNode?.querySelectorAll(`[${Io("portal")}]`)||[]),be=(H?Mb(H.nodesRef.current,L()):[]).find(_=>Ku(_.context?.elements.domReference||null))?.context?.elements.domReference,ve=[k,be,...G,...S(),A.current,V.current,O.current,X.current,P?.beforeOutsideRef.current,P?.afterOutsideRef.current,or(h),or(m),R?y:null].filter(_=>_!=null),W=jI(ve,u||R);return()=>{W()}},[b,r,y,k,u,T,P,R,H,L,S,m,h]),we(()=>{if(!b||r||!Xe(se))return;const G=ot(se),Z=Tn(G);queueMicrotask(()=>{const be=ue(se),ve=D.current,W=typeof ve=="function"?ve(j.current||""):ve;if(W===void 0||W===!1)return;let _;W===!0||W===null?_=be[0]||se:_=or(W),_=_||be[0]||se,!He(se,Z)&&Ps(_,{preventScroll:_===se})})},[r,b,se,E,ue,D,j]),we(()=>{if(r||!se)return;const G=ot(se),Z=Tn(G);TI(Z);function be(_){if(_.open||(ee.current=PI(_.nativeEvent,te.current)),_.reason===cr&&_.nativeEvent.type==="mouseleave"&&($.current=!0),_.reason===ef)if(_.nested)$.current=!1;else if(E2(_.nativeEvent)||L2(_.nativeEvent))$.current=!1;else{let ce=!1;document.createElement("div").focus({get preventScroll(){return ce=!0,!1}}),ce?$.current=!1:$.current=!0}}C.on("openchange",be);const ve=G.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,H2),re&&y&&y.insertAdjacentElement("afterend",ve);function W(){const _=I.current;let ce=typeof _=="function"?_(ee.current):_;if(ce===void 0||ce===!1)return null;if(ce===null&&(ce=!0),typeof ce=="boolean"){const K=y||Gl();return K&&K.isConnected?K:ve}const Y=y||Gl()||ve;return or(ce)||Y}return()=>{C.off("openchange",be);const _=Tn(G),ce=He(k,_)||H&&$r(H.nodesRef.current,L(),!1).some(K=>He(K.context?.elements.floating,_)),Y=W();queueMicrotask(()=>{const K=AI(Y),oe=typeof I.current!="boolean";I.current&&!$.current&&Xe(K)&&(!(!oe&&K!==_&&_!==G.body)||ce)&&K.focus({preventScroll:!0}),ve.remove()})}},[r,k,se,I,x,C,H,re,y,L]),s.useEffect(()=>{queueMicrotask(()=>{$.current=!1})},[r]),s.useEffect(()=>{if(r||!b)return;function G(be){Ct(be)?.closest(`[${FT}]`)&&(z.current=!0)}const Z=ot(se);return Z.addEventListener("pointerdown",G,!0),()=>{Z.removeEventListener("pointerdown",G,!0)}},[r,b,se]),we(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:l,open:b,onOpenChange:w.setOpen,domReference:y}),()=>{P.setFocusManagerState(null)}},[r,P,u,b,w,l,y]),we(()=>{if(!(r||!se))return Bb(se,T),()=>{queueMicrotask(lf)}},[r,se,T]);const J=!r&&(u?!R:!0)&&(re||u);return p.jsxs(s.Fragment,{children:[J&&p.jsx(ai,{"data-type":"inside",ref:F,onFocus:G=>{if(u){const Z=ue();Ps(Z[Z.length-1])}else P?.portalNode&&($.current=!1,Lo(G,P.portalNode)?I2(y)?.focus():or(h??P.beforeOutsideRef)?.focus())}}),n,J&&p.jsx(ai,{"data-type":"inside",ref:ge,onFocus:G=>{u?Ps(ue()[0]):P?.portalNode&&(l&&($.current=!0),Lo(G,P.portalNode)?N2(y)?.focus():or(m??P.afterOutsideRef)?.focus())}})]})}function Hb(e,t,n){let{reference:r,floating:o}=e;const i=At(t),a=cf(t),c=af(a),u=Rt(t),l=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(u){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Gn(t)){case"start":h[a]-=m*(n&&l?-1:1);break;case"end":h[a]+=m*(n&&l?-1:1);break}return h}async function DI(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=xn(t,e),g=S2(h),w=c[m?f==="floating"?"reference":"floating":f],b=ni(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),C=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},x=ni(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:k,strategy:u}):y);return{top:(b.top-x.top+g.top)/C.y,bottom:(x.bottom-b.bottom+g.bottom)/C.y,left:(b.left-x.left+g.left)/C.x,right:(x.right-b.right+g.right)/C.x}}const VI=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Hb(l,r,u),m=r,h={},g=0;for(let w=0;w<c.length;w++){var v;const{name:b,fn:y}=c[w],{x:k,y:C,data:x,reset:L}=await y({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:l,platform:{...a,detectOverflow:(v=a.detectOverflow)!=null?v:DI},elements:{reference:e,floating:t}});d=k??d,f=C??f,h={...h,[b]:{...h[b],...x}},L&&g<=50&&(g++,typeof L=="object"&&(L.placement&&(m=L.placement),L.rects&&(l=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),{x:d,y:f}=Hb(l,m,u)),w=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}},FI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=xn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Rt(o),y=At(c),k=Rt(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),x=m||(k||!v?[ti(c)]:ZA(c)),L=g!=="none";!m&&L&&x.push(...tI(c,v,g,C));const S=[c,...x],E=await u.detectOverflow(t,w),R=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(E[b]),f){const H=qA(o,a,C);R.push(E[H[0]],E[H[1]])}if(T=[...T,{placement:o,overflows:R}],!R.every(H=>H<=0)){var D,I;const H=(((D=i.flip)==null?void 0:D.index)||0)+1,P=S[H];if(P&&(!(f==="alignment"?y!==At(P):!1)||T.every($=>At($.placement)===y?$.overflows[0]>0:!0)))return{data:{index:H,overflows:T},reset:{placement:P}};let A=(I=T.filter(V=>V.overflows[0]<=0).sort((V,$)=>V.overflows[1]-$.overflows[1])[0])==null?void 0:I.placement;if(!A)switch(h){case"bestFit":{var j;const V=(j=T.filter($=>{if(L){const z=At($.placement);return z===y||z==="y"}return!0}).map($=>[$.placement,$.overflows.filter(z=>z>0).reduce((z,M)=>z+M,0)]).sort(($,z)=>$[1]-z[1])[0])==null?void 0:j[0];V&&(A=V);break}case"initialPlacement":A=c;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Wb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zb(e){return KA.some(t=>e[t]>=0)}const BI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=xn(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=Wb(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:zb(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),c=Wb(a,n.floating);return{data:{escapedOffsets:c,escaped:zb(c)}}}default:return{}}}}},U2=new Set(["left","top"]);async function HI(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Rt(n),c=Gn(n),u=At(n)==="y",l=U2.has(a)?-1:1,d=i&&u?-1:1,f=xn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),u?{x:h*d,y:m*l}:{x:m*l,y:h*d}}const WI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,u=await HI(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},zI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:b=>{let{x:y,y:k}=b;return{x:y,y:k}}},...l}=xn(e,t),d={x:n,y:r},f=await i.detectOverflow(t,l),m=At(Rt(o)),h=sf(m);let g=d[h],v=d[m];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",k=g+f[b],C=g-f[y];g=Gu(k,g,C)}if(c){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",k=v+f[b],C=v-f[y];v=Gu(k,v,C)}const w=u.fn({...t,[h]:g,[m]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:a,[m]:c}}}}}},_I=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=xn(e,t),d={x:n,y:r},f=At(o),m=sf(f);let h=d[m],g=d[f];const v=xn(c,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const k=m==="y"?"height":"width",C=i.reference[m]-i.floating[k]+w.mainAxis,x=i.reference[m]+i.reference[k]-w.mainAxis;h<C?h=C:h>x&&(h=x)}if(l){var b,y;const k=m==="y"?"width":"height",C=U2.has(Rt(o)),x=i.reference[f]-i.floating[k]+(C&&((b=a.offset)==null?void 0:b[f])||0)+(C?0:w.crossAxis),L=i.reference[f]+i.reference[k]+(C?0:((y=a.offset)==null?void 0:y[f])||0)-(C?w.crossAxis:0);g<x?g=x:g>L&&(g=L)}return{[m]:h,[f]:g}}}},UI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:c}=t,{apply:u=()=>{},...l}=xn(e,t),d=await a.detectOverflow(t,l),f=Rt(o),m=Gn(o),h=At(o)==="y",{width:g,height:v}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=f,w=m==="end"?"top":"bottom");const y=v-d.top-d.bottom,k=g-d.left-d.right,C=Nr(v-d[w],y),x=Nr(g-d[b],k),L=!t.middlewareData.shift;let S=C,E=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=y),L&&!m){const T=$t(d.left,0),D=$t(d.right,0),I=$t(d.top,0),j=$t(d.bottom,0);h?E=g-2*(T!==0||D!==0?T+D:$t(d.left,d.right)):S=v-2*(I!==0||j!==0?I+j:$t(d.top,d.bottom))}await u({...t,availableWidth:E,availableHeight:S});const R=await a.getDimensions(c.floating);return g!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function K2(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=ei(n)!==i||ei(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function uf(e){return We(e)?e:e.contextElement}function Or(e){const t=uf(e);if(!Xe(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=K2(t);let a=(i?ei(n.width):n.width)/r,c=(i?ei(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const KI=sn(0);function G2(e){const t=at(e);return!Ni()||!t.visualViewport?KI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function GI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=uf(e);let a=sn(1);t&&(r?We(r)&&(a=Or(r)):a=Or(e));const c=GI(i,n,r)?G2(i):sn(0);let u=(o.left+c.x)/a.x,l=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const m=at(i),h=r&&We(r)?at(r):r;let g=m,v=zu(g);for(;v&&r&&h!==g;){const w=Or(v),b=v.getBoundingClientRect(),y=Mt(v),k=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,C=b.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;u*=w.x,l*=w.y,d*=w.x,f*=w.y,u+=k,l+=C,g=at(v),v=zu(g)}}return ni({width:d,height:f,x:u,y:l})}function Fi(e,t){const n=Di(e).scrollLeft;return t?t.left+n:fr(fn(e)).left+n}function Y2(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function YI(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=fn(r),c=t?Ii(t.floating):!1;if(r===a||c&&i)return n;let u={scrollLeft:0,scrollTop:0},l=sn(1);const d=sn(0),f=Xe(r);if((f||!f&&!i)&&((Kn(r)!=="body"||gr(a))&&(u=Di(r)),Xe(r))){const h=fr(r);l=Or(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=a&&!f&&!i?Y2(a,u):sn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-u.scrollTop*l.y+d.y+m.y}}function XI(e){return Array.from(e.getClientRects())}function qI(e){const t=fn(e),n=Di(e),r=e.ownerDocument.body,o=$t(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=$t(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Fi(e);const c=-n.scrollTop;return Mt(r).direction==="rtl"&&(a+=$t(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}const _b=25;function ZI(e,t){const n=at(e),r=fn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;const d=Ni();(!d||d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const l=Fi(r);if(l<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-h);g<=_b&&(i-=g)}else l<=_b&&(i+=l);return{width:i,height:a,x:c,y:u}}const JI=new Set(["absolute","fixed"]);function QI(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Xe(e)?Or(e):sn(1),a=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:a,height:c,x:u,y:l}}function Ub(e,t,n){let r;if(t==="viewport")r=ZI(e,n);else if(t==="document")r=qI(fn(e));else if(We(t))r=QI(t,n);else{const o=G2(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ni(r)}function X2(e,t){const n=un(e);return n===t||!We(n)||on(n)?!1:Mt(n).position==="fixed"||X2(n,t)}function eN(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(c=>We(c)&&Kn(c)!=="body"),o=null;const i=Mt(e).position==="fixed";let a=i?un(e):e;for(;We(a)&&!on(a);){const c=Mt(a),u=nf(a);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&JI.has(o.position)||gr(a)&&!u&&X2(e,a))?r=r.filter(d=>d!==a):o=c,a=un(a)}return t.set(e,r),r}function tN(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Ii(t)?[]:eN(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((l,d)=>{const f=Ub(t,d,o);return l.top=$t(f.top,l.top),l.right=Nr(f.right,l.right),l.bottom=Nr(f.bottom,l.bottom),l.left=$t(f.left,l.left),l},Ub(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function nN(e){const{width:t,height:n}=K2(e);return{width:t,height:n}}function rN(e,t,n){const r=Xe(t),o=fn(t),i=n==="fixed",a=fr(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=sn(0);function l(){u.x=Fi(o)}if(r||!r&&!i)if((Kn(t)!=="body"||gr(o))&&(c=Di(t)),r){const h=fr(t,!0,i,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?Y2(o,c):sn(0),f=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Yl(e){return Mt(e).position==="static"}function Kb(e,t){if(!Xe(e)||Mt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function q2(e,t){const n=at(e);if(Ii(e))return n;if(!Xe(e)){let o=un(e);for(;o&&!on(o);){if(We(o)&&!Yl(o))return o;o=un(o)}return n}let r=Kb(e,t);for(;r&&aA(r)&&Yl(r);)r=Kb(r,t);return r&&on(r)&&Yl(r)&&!nf(r)?n:r||fA(e)||n}const oN=async function(e){const t=this.getOffsetParent||q2,n=this.getDimensions,r=await n(e.floating);return{reference:rN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sN(e){return Mt(e).direction==="rtl"}const iN={convertOffsetParentRelativeRectToViewportRelativeRect:YI,getDocumentElement:fn,getClippingRect:tN,getOffsetParent:q2,getElementRects:oN,getClientRects:XI,getDimensions:nN,getScale:Or,isElement:We,isRTL:sN};function Z2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aN(e,t){let n=null,r;const o=fn(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=l;if(c||t(),!m||!h)return;const g=xr(f),v=xr(o.clientWidth-(d+m)),w=xr(o.clientHeight-(f+h)),b=xr(d),k={rootMargin:-g+"px "+-v+"px "+-w+"px "+-b+"px",threshold:$t(0,Nr(1,u))||1};let C=!0;function x(L){const S=L[0].intersectionRatio;if(S!==u){if(!C)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!Z2(l,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(x,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,k)}n.observe(e)}return a(!0),i}function Gb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=uf(e),d=o||i?[...l?Dn(l):[],...Dn(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=l&&c?aN(l,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),l&&!u&&h.observe(l),h.observe(t));let g,v=u?fr(e):null;u&&w();function w(){const b=fr(e);v&&!Z2(v,b)&&n(),v=b,g=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(g)}}const cN=WI,lN=zI,uN=FI,dN=UI,fN=BI,pN=_I,mN=(e,t,n)=>{const r=new Map,o={platform:iN,...n},i={...o.platform,_c:r};return VI(e,t,{...o,platform:i})};var hN=typeof document<"u",gN=function(){},Ts=hN?s.useLayoutEffect:gN;function ci(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ci(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ci(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function J2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yb(e,t){const n=J2(e);return Math.round(t*n)/n}function Xl(e){const t=s.useRef(e);return Ts(()=>{t.current=e}),t}function bN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);ci(m,r)||h(r);const[g,v]=s.useState(null),[w,b]=s.useState(null),y=s.useCallback($=>{$!==L.current&&(L.current=$,v($))},[]),k=s.useCallback($=>{$!==S.current&&(S.current=$,b($))},[]),C=i||g,x=a||w,L=s.useRef(null),S=s.useRef(null),E=s.useRef(d),R=u!=null,T=Xl(u),D=Xl(o),I=Xl(l),j=s.useCallback(()=>{if(!L.current||!S.current)return;const $={placement:t,strategy:n,middleware:m};D.current&&($.platform=D.current),mN(L.current,S.current,$).then(z=>{const M={...z,isPositioned:I.current!==!1};H.current&&!ci(E.current,M)&&(E.current=M,pt.flushSync(()=>{f(M)}))})},[m,t,n,D,I]);Ts(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[l]);const H=s.useRef(!1);Ts(()=>(H.current=!0,()=>{H.current=!1}),[]),Ts(()=>{if(C&&(L.current=C),x&&(S.current=x),C&&x){if(T.current)return T.current(C,x,j);j()}},[C,x,j,T,R]);const P=s.useMemo(()=>({reference:L,floating:S,setReference:y,setFloating:k}),[y,k]),A=s.useMemo(()=>({reference:C,floating:x}),[C,x]),V=s.useMemo(()=>{const $={position:n,left:0,top:0};if(!A.floating)return $;const z=Yb(A.floating,d.x),M=Yb(A.floating,d.y);return c?{...$,transform:"translate("+z+"px, "+M+"px)",...J2(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:M}},[n,c,A.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:j,refs:P,elements:A,floatingStyles:V}),[d,j,P,A,V])}const vN=(e,t)=>({...cN(e),options:[e,t]}),yN=(e,t)=>({...lN(e),options:[e,t]}),wN=(e,t)=>({...pN(e),options:[e,t]}),xN=(e,t)=>({...uN(e),options:[e,t]}),CN=(e,t)=>({...dN(e),options:[e,t]}),kN=(e,t)=>({...fN(e),options:[e,t]}),EN={intentional:"onClick",sloppy:"onPointerDown"};function LN(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function SN(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("referenceElement"),a=n.useState("domReferenceElement"),{onOpenChange:c,dataRef:u}=n.context,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:m="sloppy",referencePress:h=!1,referencePressEvent:g="sloppy",ancestorScroll:v=!1,bubbles:w,externalTree:b}=t,y=_r(b),k=ke(typeof f=="function"?f:()=>!1),C=typeof f=="function"?k:f,x=s.useRef(!1),{escapeKey:L,outsidePress:S}=LN(w),E=s.useRef(null),R=qt(),T=qt(),D=ke(()=>{T.clear(),u.current.insideReactTree=!1}),I=s.useRef(!1),j=s.useRef(""),H=ke(O=>{j.current=O.pointerType}),P=ke(()=>{const O=j.current,X=O==="pen"||!O?"mouse":O,F=typeof m=="function"?m():m;return typeof F=="string"?F:F[X]}),A=ke(O=>{if(!r||!l||!d||O.key!=="Escape"||I.current)return;const X=u.current.floatingContext?.nodeId,F=y?$r(y.nodesRef.current,X):[];if(!L&&F.length>0){let G=!0;if(F.forEach(Z=>{Z.context?.open&&!Z.context.dataRef.current.__escapeKeyBubbles&&(G=!1)}),!G)return}const ge=zA(O)?O.nativeEvent:O,J=Je(u2,ge);n.setOpen(!1,J),!L&&!J.isPropagationAllowed&&O.stopPropagation()}),V=ke(O=>{const X=P();return X==="intentional"&&O.type!=="click"||X==="sloppy"&&O.type==="click"}),$=ke(()=>{u.current.insideReactTree=!0,T.start(0,D)}),z=ke((O,X=!1)=>{if(V(O)){D();return}if(u.current.insideReactTree){D();return}if(P()==="intentional"&&X||typeof C=="function"&&!C(O))return;const F=Ct(O),ge=`[${Io("inert")}]`,J=ot(n.select("floatingElement")).querySelectorAll(ge),G=n.context.triggerElements;if(F&&(G.hasElement(F)||G.hasMatchingElement(_=>He(_,F))))return;let Z=We(F)?F:null;for(;Z&&!on(Z);){const _=un(Z);if(on(_)||!We(_))break;Z=_}if(J.length&&We(F)&&!HA(F)&&!He(F,n.select("floatingElement"))&&Array.from(J).every(_=>!He(Z,_)))return;if(Xe(F)&&!("touches"in O)){const _=on(F),ce=Mt(F),Y=/auto|scroll/,K=_||Y.test(ce.overflowX),oe=_||Y.test(ce.overflowY),ye=K&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,Ee=oe&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,xe=ce.direction==="rtl",Ae=Ee&&(xe?O.offsetX<=F.offsetWidth-F.clientWidth:O.offsetX>F.clientWidth),Ie=ye&&O.offsetY>F.clientHeight;if(Ae||Ie)return}const be=u.current.floatingContext?.nodeId,ve=y&&$r(y.nodesRef.current,be).some(_=>zt(O,_.context?.elements.floating));if(zt(O,n.select("floatingElement"))||zt(O,n.select("domReferenceElement"))||ve)return;const W=y?$r(y.nodesRef.current,be):[];if(W.length>0){let _=!0;if(W.forEach(ce=>{ce.context?.open&&!ce.context.dataRef.current.__outsidePressBubbles&&(_=!1)}),!_)return}n.setOpen(!1,Je(ef,O)),D()}),M=ke(O=>{P()!=="sloppy"||O.pointerType==="touch"||!n.select("open")||!l||zt(O,n.select("floatingElement"))||zt(O,n.select("domReferenceElement"))||z(O)}),q=ke(O=>{if(P()!=="sloppy"||!n.select("open")||!l||zt(O,n.select("floatingElement"))||zt(O,n.select("domReferenceElement")))return;const X=O.touches[0];X&&(E.current={startTime:Date.now(),startX:X.clientX,startY:X.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},R.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}),ee=ke(O=>{const X=Ct(O);function F(){q(O),X?.removeEventListener(O.type,F)}X?.addEventListener(O.type,F)}),te=ke(O=>{const X=x.current;if(x.current=!1,R.clear(),O.type==="mousedown"&&E.current&&!E.current.dismissOnMouseDown)return;const F=Ct(O);function ge(){O.type==="pointerdown"?M(O):z(O,X),F?.removeEventListener(O.type,ge)}F?.addEventListener(O.type,ge)}),ae=ke(O=>{if(P()!=="sloppy"||!E.current||zt(O,n.select("floatingElement"))||zt(O,n.select("domReferenceElement")))return;const X=O.touches[0];if(!X)return;const F=Math.abs(X.clientX-E.current.startX),ge=Math.abs(X.clientY-E.current.startY),J=Math.sqrt(F*F+ge*ge);J>5&&(E.current.dismissOnTouchEnd=!0),J>10&&(z(O),R.clear(),E.current=null)}),le=ke(O=>{const X=Ct(O);function F(){ae(O),X?.removeEventListener(O.type,F)}X?.addEventListener(O.type,F)}),ne=ke(O=>{P()!=="sloppy"||!E.current||zt(O,n.select("floatingElement"))||zt(O,n.select("domReferenceElement"))||(E.current.dismissOnTouchEnd&&z(O),R.clear(),E.current=null)}),re=ke(O=>{const X=Ct(O);function F(){ne(O),X?.removeEventListener(O.type,F)}X?.addEventListener(O.type,F)});s.useEffect(()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=L,u.current.__outsidePressBubbles=S;const O=new Js;function X(Z){n.setOpen(!1,Je(QT,Z))}function F(){O.clear(),I.current=!0}function ge(){O.start(Ni()?5:0,()=>{I.current=!1})}const J=ot(o);J.addEventListener("pointerdown",H,!0),d&&(J.addEventListener("keydown",A),J.addEventListener("compositionstart",F),J.addEventListener("compositionend",ge)),C&&(J.addEventListener("click",te,!0),J.addEventListener("pointerdown",te,!0),J.addEventListener("touchstart",ee,!0),J.addEventListener("touchmove",le,!0),J.addEventListener("touchend",re,!0),J.addEventListener("mousedown",te,!0));let G=[];return v&&(We(a)&&(G=Dn(a)),We(o)&&(G=G.concat(Dn(o))),!We(i)&&i&&i.contextElement&&(G=G.concat(Dn(i.contextElement)))),G=G.filter(Z=>Z!==J.defaultView?.visualViewport),G.forEach(Z=>{Z.addEventListener("scroll",X,{passive:!0})}),()=>{J.removeEventListener("pointerdown",H,!0),d&&(J.removeEventListener("keydown",A),J.removeEventListener("compositionstart",F),J.removeEventListener("compositionend",ge)),C&&(J.removeEventListener("click",te,!0),J.removeEventListener("pointerdown",te,!0),J.removeEventListener("touchstart",ee,!0),J.removeEventListener("touchmove",le,!0),J.removeEventListener("touchend",re,!0),J.removeEventListener("mousedown",te,!0)),G.forEach(Z=>{Z.removeEventListener("scroll",X)}),O.clear()}},[u,o,i,a,d,C,r,c,v,l,L,S,A,z,te,M,ee,le,re,H,n]),s.useEffect(D,[C,D]);const se=s.useMemo(()=>({onKeyDown:A,...h&&{[EN[g]]:O=>{n.setOpen(!1,Je(Zs,O.nativeEvent))},...g!=="intentional"&&{onClick(O){n.setOpen(!1,Je(Zs,O.nativeEvent))}}}}),[A,n,h,g]),ie=ke(O=>{const X=Ct(O.nativeEvent);!He(n.select("floatingElement"),X)||O.button!==0||(x.current=!0)}),ue=s.useMemo(()=>({onKeyDown:A,onPointerDown:ie,onMouseDown:ie,onMouseUp:ie,onClickCapture:$,onMouseDownCapture:$,onPointerDownCapture:$,onMouseUpCapture:$,onTouchEndCapture:$,onTouchMoveCapture:$}),[A,ie,$]);return s.useMemo(()=>l?{reference:se,floating:ue,trigger:se}:{},[l,se,ue])}var li=Symbol("NOT_FOUND");function $N(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function jN(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function ON(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Xb=e=>Array.isArray(e)?e:[e];function RN(e){const t=Array.isArray(e[0])?e[0]:e;return ON(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function MN(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function PN(e){let t;return{get(n){return t&&e(t.key,n)?t.value:li},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function TN(e,t){let n=[];function r(c){const u=n.findIndex(l=>t(c,l.key));if(u>-1){const l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return li}function o(c,u){r(c)===li&&(n.unshift({key:c,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var AN=(e,t)=>e===t;function IN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function NN(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=AN,maxSize:o=1,resultEqualityCheck:i}=n,a=IN(r);let c=0;const u=o<=1?PN(a):TN(o,a);function l(){let d=u.get(arguments);if(d===li){if(d=e.apply(null,arguments),c++,i){const m=u.getEntries().find(h=>i(h.value,d));m&&(d=m.value,c!==0&&c--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}var DN=class{constructor(t){this.value=t}deref(){return this.value}},VN=typeof WeakRef<"u"?WeakRef:DN,FN=0,qb=1;function fs(){return{s:FN,v:void 0,o:null,p:null}}function Q2(e,t={}){let n=fs();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let c=n;const{length:u}=arguments;for(let f=0,m=u;f<m;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const v=g.get(h);v===void 0?(c=fs(),g.set(h,c)):c=v}else{let g=c.p;g===null&&(c.p=g=new Map);const v=g.get(h);v===void 0?(c=fs(),g.set(h,c)):c=v}}const l=c;let d;if(c.s===qb)d=c.v;else if(d=e.apply(null,arguments),i++,r){const f=o?.deref?.()??o;f!=null&&r(f,d)&&(d=f,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new VN(d):d}return l.s=qb,l.v=d,d}return a.clearCache=()=>{n=fs(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function ew(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,c,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),$N(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:m=[],argsMemoize:h=Q2,argsMemoizeOptions:g=[]}=d,v=Xb(m),w=Xb(g),b=RN(o),y=f(function(){return i++,l.apply(null,arguments)},...v),k=h(function(){a++;const x=MN(b,arguments);return c=y.apply(null,x),c},...w);return Object.assign(k,{resultFunc:l,memoizedResultFunc:y,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var BN=ew(Q2),HN=Object.assign((e,t=BN)=>{jN(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,c,u)=>(a[n[u]]=c,a),{}))},{withTypes:()=>HN});ew({memoize:NN,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Se=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error(hr(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var ql={exports:{}},Zl={};var Zb;function WN(){if(Zb)return Zl;Zb=1;var e=Li();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function c(f,m){var h=m(),g=r({inst:{value:h,getSnapshot:m}}),v=g[0].inst,w=g[1];return i(function(){v.value=h,v.getSnapshot=m,u(v)&&w({inst:v})},[f,h,m]),o(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),a(h),h}function u(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function l(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:c;return Zl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Zl}var Jb;function tw(){return Jb||(Jb=1,ql.exports=WN()),ql.exports}var zN=tw(),Jl={exports:{}},Ql={};var Qb;function _N(){if(Qb)return Ql;Qb=1;var e=Li(),t=tw();function n(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,u=e.useDebugValue;return Ql.useSyncExternalStoreWithSelector=function(l,d,f,m,h){var g=i(null);if(g.current===null){var v={hasValue:!1,value:null};g.current=v}else v=g.current;g=c(function(){function b(L){if(!y){if(y=!0,k=L,L=m(L),h!==void 0&&v.hasValue){var S=v.value;if(h(S,L))return C=S}return C=L}if(S=C,r(k,L))return S;var E=m(L);return h!==void 0&&h(S,E)?(k=L,S):(k=L,C=E)}var y=!1,k,C,x=f===void 0?null:f;return[function(){return b(d())},x===null?void 0:function(){return b(x())}]},[d,f,m,h]);var w=o(l,g[0],g[1]);return a(function(){v.hasValue=!0,v.value=w},[w]),u(w),w},Ql}var e0;function UN(){return e0||(e0=1,Jl.exports=_N()),Jl.exports}var KN=UN();const GN=Jd(19),YN=GN?qN:ZN;function XN(e,t,n,r,o){return YN(e,t,n,r,o)}function qN(e,t,n,r,o){const i=s.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return zN.useSyncExternalStore(e.subscribe,i,i)}function ZN(e,t,n,r,o){return KN.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}let JN=class As{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){As.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||As.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};As.prototype.setState.call(this,t)}},nw=class extends JN{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){s.useDebugValue(t),we(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){we(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){const n=Object.values(t);we(()=>{this.update(t)},n)}useControlledProp(t,n,r){s.useDebugValue(t);const o=n!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,o),!o&&!Object.is(this.state[t],r)&&super.setState({...this.state,[t]:r})),we(()=>{o&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r,o])}set(t,n){this.controlledValues.get(t)!==!0&&super.set(t,n)}update(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.update(n)}setState(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.setState({...this.state,...n})}select=(t,n,r,o)=>{const i=this.selectors[t];return i(this.state,n,r,o)};useState=(t,n,r,o)=>{s.useDebugValue(t);const i=this.selectors[t];return XN(this,i,n,r,o)};useContextCallback(t,n){s.useDebugValue(t);const r=ke(n??i2);this.context[t]=r}useStateSetter(t){const n=s.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(i=>{const a=r(i);if(!Object.is(o,a)){const c=o;o=a,n(a,c,this)}})}};const QN={open:Se(e=>e.open),domReferenceElement:Se(e=>e.domReferenceElement),referenceElement:Se(e=>e.positionReference??e.referenceElement),floatingElement:Se(e=>e.floatingElement),floatingId:Se(e=>e.floatingId)};let df=class extends nw{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:i,...a}=t;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:D2(),nested:n,noEmit:r,triggerElements:i},QN)}setOpen=(t,n)=>{if((!t||!this.state.open||UA(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}};function eD(e){const t=e.useState("open");we(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function tD(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=$A(e);t.useSyncedValues({mounted:r,transitionStatus:i});const a=ke(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return g2({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:i}}let ff=class{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}};function nD(){return new df({open:!1,floatingElement:null,referenceElement:null,triggerElements:new ff,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function rD(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:nD(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:kt,inactiveTriggerProps:kt,popupProps:kt}}const oD={open:Se(e=>e.open),mounted:Se(e=>e.mounted),transitionStatus:Se(e=>e.transitionStatus),floatingRootContext:Se(e=>e.floatingRootContext),preventUnmountingOnClose:Se(e=>e.preventUnmountingOnClose),payload:Se(e=>e.payload),activeTriggerId:Se(e=>e.activeTriggerId),activeTriggerElement:Se(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Se((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Se((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Se((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Se((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Se(e=>e.popupProps),popupElement:Se(e=>e.popupElement),positionerElement:Se(e=>e.positionerElement)};function sD(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=_n(),i=Yn()!=null,a=Ft(()=>new df({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new ff,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return we(()=>{const c={open:t,floatingId:o};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=We(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),a.update(c)},[t,o,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=i,a.context.noEmit=e.noEmit||!1,a}function iD(e={}){const{nodeId:t,externalTree:n}=e,r=sD(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[a,c]=s.useState(null),u=s.useRef(null),l=_r(n);we(()=>{i.domReference&&(u.current=i.domReference)},[i.domReference]);const d=bN({...e,elements:{...i,...a&&{reference:a}}}),f=s.useCallback(S=>{const E=We(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;c(E),d.refs.setReference(E)},[d.refs]),[m,h]=s.useState(null),[g,v]=s.useState(null);o.useSyncedValue("referenceElement",m),o.useSyncedValue("domReferenceElement",We(m)?m:null),o.useSyncedValue("floatingElement",g);const w=s.useCallback(S=>{(We(S)||S===null)&&(u.current=S,h(S)),(We(d.refs.reference.current)||d.refs.reference.current===null||S!==null&&!We(S))&&d.refs.setReference(S)},[d.refs,h]),b=s.useCallback(S=>{v(S),d.refs.setFloating(S)},[d.refs]),y=s.useMemo(()=>({...d.refs,setReference:w,setFloating:b,setPositionReference:f,domReference:u}),[d.refs,w,b,f]),k=s.useMemo(()=>({...d.elements,domReference:i.domReference}),[d.elements,i.domReference]),C=o.useState("open"),x=o.useState("floatingId"),L=s.useMemo(()=>({...d,dataRef:o.context.dataRef,open:C,onOpenChange:o.setOpen,events:o.context.events,floatingId:x,refs:y,elements:k,nodeId:t,rootStore:o}),[d,y,k,t,o,C,x]);return we(()=>{o.context.dataRef.current.floatingContext=L;const S=l?.nodesRef.current.find(E=>E.id===t);S&&(S.context=L)}),s.useMemo(()=>({...d,context:L,refs:y,elements:k,rootStore:o}),[d,y,k,L,o])}function aD(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=_n(),a=Yn()!=null,c=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),d=t.context.triggerElements,f=Ft(()=>new df({open:c,referenceElement:u,floatingElement:l,triggerElements:d,onOpenChange:o,floatingId:i,nested:a,noEmit:n})).current;return we(()=>{const m={open:c,floatingId:i,referenceElement:u,floatingElement:l};We(u)&&(m.domReferenceElement=u),f.update(m)},[c,i,u,l,f]),f.context.onOpenChange=o,f.context.nested=a,f.context.noEmit=n,f}const t0=Io("safe-polygon"),cD=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${k2}`;function lD(e){return e?!!e.closest(cD):!1}function uD(e){const t=s.useRef(void 0),n=s.useRef(!1),r=s.useRef(void 0),o=s.useRef(!0),i=s.useRef(!1),a=s.useRef(()=>{}),c=s.useRef(!1),u=qt(),l=qt(),d=s.useRef(void 0);return s.useMemo(()=>{const f=e.context.dataRef.current;return f.hoverInteractionState||(f.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:i,unbindMouseMoveRef:a,restTimeoutPendingRef:c,openChangeTimeout:u,restTimeout:l,handleCloseOptionsRef:d}),f.hoverInteractionState},[e,t,n,r,o,i,a,c,u,l,d])}const dD=new Set(["click","mousedown"]);function fD(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:a}=n.context,{enabled:c=!0,closeDelay:u=0,externalTree:l}=t,{pointerTypeRef:d,interactedInsideRef:f,handlerRef:m,performedPointerEventsMutationRef:h,unbindMouseMoveRef:g,restTimeoutPendingRef:v,openChangeTimeout:w,handleCloseOptionsRef:b}=uD(n),y=_r(l),k=Yn(),C=ke(()=>f.current?!0:a.current.openEvent?dD.has(a.current.openEvent.type):!1),x=ke(()=>{const T=a.current.openEvent?.type;return T?.includes("mouse")&&T!=="mousedown"}),L=s.useCallback((T,D=!0)=>{const I=pD(u,d.current);I&&!m.current?w.start(I,()=>n.setOpen(!1,Je(cr,T))):D&&(w.clear(),n.setOpen(!1,Je(cr,T)))},[u,m,n,d,w]),S=ke(()=>{g.current(),m.current=void 0}),E=ke(()=>{if(h.current){const T=ot(o).body;T.style.pointerEvents="",T.removeAttribute(t0),h.current=!1}}),R=ke(T=>{const D=Ct(T);if(!lD(D)){f.current=!1;return}f.current=!0});we(()=>{r||(d.current=void 0,v.current=!1,f.current=!1,S(),E())},[r,d,v,f,S,E]),s.useEffect(()=>()=>{S()},[S]),s.useEffect(()=>E,[E]),we(()=>{if(c&&r&&b.current?.blockPointerEvents&&x()&&We(i)&&o){h.current=!0;const T=ot(o).body;T.setAttribute(t0,"");const D=i,I=o,j=y?.nodesRef.current.find(H=>H.id===k)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),T.style.pointerEvents="none",D.style.pointerEvents="auto",I.style.pointerEvents="auto",()=>{T.style.pointerEvents="",D.style.pointerEvents="",I.style.pointerEvents=""}}},[c,r,i,o,b,x,y,k,h]),s.useEffect(()=>{if(!c)return;function T(H){if(C()||!a.current.floatingContext)return;const P=n.context.triggerElements;H.relatedTarget&&P.hasElement(H.relatedTarget)||(E(),S(),C()||L(H))}function D(H){w.clear(),E(),m.current?.(H),S()}function I(H){C()||L(H,!1)}const j=o;return j&&(j.addEventListener("mouseleave",T),j.addEventListener("mouseenter",D),j.addEventListener("mouseleave",I),j.addEventListener("pointerdown",R,!0)),()=>{j&&(j.removeEventListener("mouseleave",T),j.removeEventListener("mouseenter",D),j.removeEventListener("mouseleave",I),j.removeEventListener("pointerdown",R,!0))}})}function pD(e,t){return t&&!_A(t)?0:typeof e=="function"?e():e}function mD(e=[]){const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),o=e.map(l=>l?.trigger),i=s.useCallback(l=>ps(l,e,"reference"),t),a=s.useCallback(l=>ps(l,e,"floating"),n),c=s.useCallback(l=>ps(l,e,"item"),r),u=s.useCallback(l=>ps(l,e,"trigger"),o);return s.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:c,getTriggerProps:u}),[i,a,c,u])}function ps(e,t,n){const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[Uu]="");for(const a in e)o&&e&&(a===x2||a===C2)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let c;const u=t[a]?.[n];typeof u=="function"?c=e?u(e):null:c=u,c&&n0(i,c,o,r)}return n0(i,e,o,r),i}function n0(e,t,n,r){for(const o in t){const i=t[o];n&&(o===x2||o===C2)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof i=="function"&&(r.get(o)?.push(i),e[o]=(...a)=>r.get(o)?.map(c=>c(...a)).find(c=>c!==void 0))):e[o]=i)}}const hD="Escape";function Bi(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function ms(e,t){return Bi(t,e===of||e===zo,e===Vn||e===Fn)}function eu(e,t,n){return Bi(t,e===zo,n?e===Vn:e===Fn)||e==="Enter"||e===" "||e===""}function gD(e,t,n){return Bi(t,n?e===Vn:e===Fn,e===zo)}function bD(e,t,n,r){const o=n?e===Fn:e===Vn,i=e===of;return t==="both"||t==="horizontal"&&r&&r>1?e===hD:Bi(t,o,i)}function vD(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),a=n.context.dataRef,{listRef:c,activeIndex:u,onNavigate:l=()=>{},enabled:d=!0,selectedIndex:f=null,allowEscape:m=!1,loopFocus:h=!1,nested:g=!1,rtl:v=!1,virtual:w=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:k=!0,disabledIndices:C=void 0,orientation:x="vertical",parentOrientation:L,cols:S=1,scrollItemIntoView:E=!0,itemSizes:R,dense:T=!1,id:D,resetOnPointerLeave:I=!0,externalTree:j}=t,H=Qs(o),P=xt(H),A=Yn(),V=_r(j);we(()=>{a.current.orientation=x},[a,x]);const $=Ku(i),z=s.useRef(b),M=s.useRef(f??-1),q=s.useRef(null),ee=s.useRef(!0),te=ke(Y=>{l(M.current===-1?null:M.current,Y)}),ae=s.useRef(te),le=s.useRef(!!o),ne=s.useRef(r),re=s.useRef(!1),se=s.useRef(!1),ie=xt(C),ue=xt(r),O=xt(E),X=xt(f),F=xt(I),ge=ke(()=>{function Y(Ee){w?V?.events.emit("virtualfocus",Ee):Ps(Ee,{sync:re.current,preventScroll:!0})}const K=c.current[M.current],oe=se.current;K&&Y(K),(re.current?Ee=>Ee():requestAnimationFrame)(()=>{const Ee=c.current[M.current]||K;if(!Ee)return;K||Y(Ee);const xe=O.current;xe&&G&&(oe||!ee.current)&&Ee.scrollIntoView?.(typeof xe=="boolean"?{block:"nearest",inline:"nearest"}:xe)})});we(()=>{d&&(r&&o?(M.current=f??-1,z.current&&f!=null&&(se.current=!0,te())):le.current&&(M.current=-1,ae.current()))},[d,r,o,f,te]),we(()=>{if(d){if(!r){re.current=!1;return}if(o)if(u==null){if(re.current=!1,X.current!=null)return;if(le.current&&(M.current=-1,ge()),(!ne.current||!le.current)&&z.current&&(q.current!=null||z.current===!0&&q.current==null)){let Y=0;const K=()=>{c.current[0]==null?(Y<2&&(Y?requestAnimationFrame:queueMicrotask)(K),Y+=1):(M.current=q.current==null||eu(q.current,x,v)||g?Ul(c):Ab(c),q.current=null,te())};K()}}else ko(c,u)||(M.current=u,ge(),se.current=!1)}},[d,r,o,u,X,g,c,x,v,te,ge,ie]),we(()=>{if(!d||o||!V||w||!le.current)return;const Y=V.nodesRef.current,K=Y.find(Ee=>Ee.id===A)?.context?.elements.floating,oe=Tn(ot(o)),ye=Y.some(Ee=>Ee.context&&He(Ee.context.elements.floating,oe));K&&!ye&&ee.current&&K.focus({preventScroll:!0})},[d,o,V,A,w]),we(()=>{ae.current=te,ne.current=r,le.current=!!o}),we(()=>{r||(q.current=null,z.current=b)},[r,b]);const J=u!=null,G=s.useMemo(()=>{function Y(oe){if(!ue.current)return;const ye=c.current.indexOf(oe.currentTarget);ye!==-1&&M.current!==ye&&(M.current=ye,te(oe))}return{onFocus(oe){re.current=!0,Y(oe)},onClick:({currentTarget:oe})=>oe.focus({preventScroll:!0}),onMouseMove(oe){re.current=!0,se.current=!1,y&&Y(oe)},onPointerLeave(oe){if(!ue.current||!ee.current||oe.pointerType==="touch")return;re.current=!0;const ye=oe.relatedTarget;!y||c.current.includes(ye)||F.current&&(M.current=-1,te(oe),w||P.current?.focus({preventScroll:!0}))}}},[ue,P,y,c,te,F,w]),Z=s.useCallback(()=>L??V?.nodesRef.current.find(Y=>Y.id===A)?.context?.dataRef?.current.orientation,[A,V,L]),be=ke(Y=>{if(ee.current=!1,re.current=!0,Y.which===229||!ue.current&&Y.currentTarget===P.current)return;if(g&&bD(Y.key,x,v,S)){ms(Y.key,Z())||st(Y),n.setOpen(!1,Je(Ms,Y.nativeEvent)),Xe(i)&&(w?V?.events.emit("virtualfocus",i):i.focus());return}const K=M.current,oe=Ul(c,C),ye=Ab(c,C);if($||(Y.key==="Home"&&(st(Y),M.current=oe,te(Y)),Y.key==="End"&&(st(Y),M.current=ye,te(Y))),S>1){const Ee=R||Array.from({length:c.current.length},()=>({width:1,height:1})),xe=oI(Ee,S,T),Ae=xe.findIndex(tt=>tt!=null&&!Eo(c,tt,C)),Ie=xe.reduce((tt,nt,Ce)=>nt!=null&&!Eo(c,nt,C)?Ce:tt,-1),Ue=xe[rI({current:xe.map(tt=>tt!=null?c.current[tt]:null)},{event:Y,orientation:x,loopFocus:h,rtl:v,cols:S,disabledIndices:iI([...(typeof C!="function"?C:null)||c.current.map((tt,nt)=>Eo(c,nt,C)?nt:void 0),void 0],xe),minIndex:Ae,maxIndex:Ie,prevIndex:sI(M.current>ye?oe:M.current,Ee,xe,S,Y.key===zo?"bl":Y.key===(v?Vn:Fn)?"tr":"tl"),stopEvent:!0})];if(Ue!=null&&(M.current=Ue,te(Y)),x==="both")return}if(ms(Y.key,x)){if(st(Y),r&&!w&&Tn(Y.currentTarget.ownerDocument)===Y.currentTarget){M.current=eu(Y.key,x,v)?oe:ye,te(Y);return}eu(Y.key,x,v)?h?K>=ye?m&&K!==c.current.length?M.current=-1:(re.current=!1,M.current=oe):M.current=lt(c,{startingIndex:K,disabledIndices:C}):M.current=Math.min(ye,lt(c,{startingIndex:K,disabledIndices:C})):h?K<=oe?m&&K!==-1?M.current=c.current.length:(re.current=!1,M.current=ye):M.current=lt(c,{startingIndex:K,decrement:!0,disabledIndices:C}):M.current=Math.max(oe,lt(c,{startingIndex:K,decrement:!0,disabledIndices:C})),ko(c,M.current)&&(M.current=-1),te(Y)}}),ve=s.useMemo(()=>w&&r&&J&&{"aria-activedescendant":`${D}-${u}`},[w,r,J,D,u]),W=s.useMemo(()=>({"aria-orientation":x==="both"?void 0:x,...$?{}:ve,onKeyDown(Y){if(Y.key==="Tab"&&Y.shiftKey&&r&&!w){const K=Ct(Y.nativeEvent);if(K&&!He(P.current,K))return;st(Y),n.setOpen(!1,Je(Ti,Y.nativeEvent)),Xe(i)&&i.focus();return}be(Y)},onPointerMove(){ee.current=!0}}),[ve,be,P,x,$,n,r,w,i]),_=s.useMemo(()=>{function Y(oe){b==="auto"&&E2(oe.nativeEvent)&&(z.current=!w)}function K(oe){z.current=b,b==="auto"&&L2(oe.nativeEvent)&&(z.current=!0)}return{onKeyDown(oe){const ye=n.select("open");ee.current=!1;const Ee=oe.key.startsWith("Arrow"),xe=gD(oe.key,Z(),v),Ae=ms(oe.key,x),Ie=(g?xe:Ae)||oe.key==="Enter"||oe.key.trim()==="";if(w&&ye)return be(oe);if(!(!ye&&!k&&Ee)){if(Ie){const Ue=ms(oe.key,Z());q.current=g&&Ue?null:oe.key}if(g){xe&&(st(oe),ye?(M.current=Ul(c,ie.current),te(oe)):n.setOpen(!0,Je(Ms,oe.nativeEvent,oe.currentTarget)));return}Ae&&(X.current!=null&&(M.current=X.current),st(oe),!ye&&k?n.setOpen(!0,Je(Ms,oe.nativeEvent,oe.currentTarget)):be(oe),ye&&te(oe))}},onFocus(oe){n.select("open")&&!w&&(M.current=-1,te(oe))},onPointerDown:K,onPointerEnter:K,onMouseDown:Y,onClick:Y}},[be,ie,b,c,g,te,n,k,x,Z,v,X,w]),ce=s.useMemo(()=>({...ve,..._}),[ve,_]);return s.useMemo(()=>d?{reference:ce,floating:W,item:G,trigger:_}:{},[d,ce,W,_,G])}const yD=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function wD(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),i=n.useState("domReferenceElement"),a=n.useState("floatingElement"),{enabled:c=!0,role:u="dialog"}=t,l=_n(),d=i?.id||l,f=s.useMemo(()=>Qs(a)?.id||o,[a,o]),m=yD.get(u)??u,g=Yn()!=null,v=s.useMemo(()=>m==="tooltip"||u==="label"?kt:{"aria-haspopup":m==="alertdialog"?"dialog":m,"aria-expanded":"false",...m==="listbox"&&{role:"combobox"},...m==="menu"&&g&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[m,g,u]),w=s.useMemo(()=>m==="tooltip"||u==="label"?{[`aria-${u==="label"?"labelledby":"describedby"}`]:r?f:void 0}:{...v,"aria-expanded":r?"true":"false","aria-controls":r?f:void 0,...m==="menu"&&{id:d}},[m,f,r,d,u,v]),b=s.useMemo(()=>{const k={id:f,...m&&{role:m}};return m==="tooltip"||u==="label"?k:{...k,...m==="menu"&&{"aria-labelledby":d}}},[m,f,d,u]),y=s.useCallback(({active:k,selected:C})=>{const x={role:"option",...k&&{id:`${f}-fui-option`}};switch(u){case"select":case"combobox":return{...x,"aria-selected":C}}return{}},[f,u]);return s.useMemo(()=>c?{reference:w,floating:b,item:y,trigger:v}:{},[c,w,b,v,y])}function xD(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.context.dataRef,{listRef:i,activeIndex:a,onMatch:c,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:m=a2,selectedIndex:h=null}=t,g=qt(),v=s.useRef(""),w=s.useRef(h??a??-1),b=s.useRef(null);we(()=>{r&&(g.clear(),b.current=null,v.current="")},[r,g]),we(()=>{r&&v.current===""&&(w.current=h??a??-1)},[r,h,a]);const y=ke(L=>{L?o.current.typing||(o.current.typing=L,u?.(L)):o.current.typing&&(o.current.typing=L,u?.(L))}),k=ke(L=>{function S(I,j,H){const P=d?d(j,H):j.find(A=>A?.toLocaleLowerCase().indexOf(H.toLocaleLowerCase())===0);return P?I.indexOf(P):-1}const E=i.current;if(v.current.length>0&&v.current[0]!==" "&&(S(E,E,v.current)===-1?y(!1):L.key===" "&&st(L)),E==null||m.includes(L.key)||L.key.length!==1||L.ctrlKey||L.metaKey||L.altKey)return;r&&L.key!==" "&&(st(L),y(!0)),E.every(I=>I?I[0]?.toLocaleLowerCase()!==I[1]?.toLocaleLowerCase():!0)&&v.current===L.key&&(v.current="",w.current=b.current),v.current+=L.key,g.start(f,()=>{v.current="",w.current=b.current,y(!1)});const T=w.current,D=S(E,[...E.slice((T||0)+1),...E.slice(0,(T||0)+1)],v.current);D!==-1?(c?.(D),b.current=D):L.key!==" "&&(v.current="",y(!1))}),C=s.useMemo(()=>({onKeyDown:k}),[k]),x=s.useMemo(()=>({onKeyDown:k,onKeyUp(L){L.key===" "&&y(!1)}}),[k,y]);return s.useMemo(()=>l?{reference:C,floating:x}:{},[l,C,x])}const CD=s.createContext(void 0);function kD(e){return s.useContext(CD)}const rw="ArrowUp",ow="ArrowDown",sw="ArrowLeft",iw="ArrowRight",aw="Home",cw="End",ED=new Set([sw,iw]),LD=new Set([rw,ow]),SD=new Set([...ED,...LD]);[...SD];const $D=new Set([rw,ow,sw,iw,aw,cw]);function jD(e){return e==="starting"?VT:kt}const OD={...c2,...GT},RD=s.forwardRef(function(t,n){const{render:r,className:o,finalFocus:i,...a}=t,{store:c}=Wr(),{side:u,align:l}=t2(),d=kD()!=null,f=c.useState("open"),m=c.useState("transitionStatus"),h=c.useState("popupProps"),g=c.useState("mounted"),v=c.useState("instantType"),w=c.useState("activeTriggerElement"),b=c.useState("parent"),y=c.useState("lastOpenChangeReason"),k=c.useState("rootId"),C=c.useState("floatingRootContext"),x=c.useState("floatingTreeRoot"),L=c.useState("closeDelay"),S=c.useState("activeTriggerElement");g2({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),s.useEffect(()=>{function j(H){c.setOpen(!1,Je(H.reason,H.domEvent))}return x.events.on("close",j),()=>{x.events.off("close",j)}},[x.events,c]);const E=c.useState("hoverEnabled"),R=c.useState("disabled");fD(C,{enabled:E&&!R&&b.type!=="context-menu"&&b.type!=="menubar",closeDelay:L});const T=s.useMemo(()=>({transitionStatus:m,side:u,align:l,open:f,nested:b.type==="menu",instant:v}),[m,u,l,f,b.type,v]),D=Un("div",t,{state:T,ref:[n,c.context.popupRef],stateAttributesMapping:OD,props:[h,{onKeyDown(j){d&&$D.has(j.key)&&j.stopPropagation()}},jD(m),a,{"data-rootownerid":k}]});let I=b.type===void 0||b.type==="context-menu";return(w||b.type==="menubar"&&y!==ef)&&(I=!0),p.jsx(NI,{context:C,modal:!1,disabled:!g,returnFocus:i===void 0?I:i,initialFocus:b.type!=="menu",restoreFocus:!0,externalTree:b.type!=="menubar"?x:void 0,previousFocusableElement:S,nextFocusableElement:b.type===void 0?c.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:b.type===void 0?c.context.beforeContentFocusGuardRef:void 0,children:D})}),lw=s.createContext(void 0);function MD(){const e=s.useContext(lw);if(e===void 0)throw new Error(hr(32));return e}const PD=s.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t,{store:i}=Wr();return i.useState("mounted")||r?p.jsx(lw.Provider,{value:r,children:p.jsx(MI,{ref:n,...o})}):null});function TD(e){return Jd(19)?e:e?"true":void 0}const AD=s.createContext(void 0);function uw(){return s.useContext(AD)?.direction??"ltr"}const ID=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:u}=t,{element:l,padding:d=0,offsetParent:f="real"}=xn(e,t)||{};if(l==null)return{};const m=S2(d),h={x:n,y:r},g=cf(o),v=af(g),w=await a.getDimensions(l),b=g==="y",y=b?"top":"left",k=b?"bottom":"right",C=b?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[g]-h[g]-i.floating[v],L=h[g]-i.reference[g],S=f==="real"?await a.getOffsetParent?.(l):c.floating;let E=c.floating[C]||i.floating[v];(!E||!await a.isElement?.(S))&&(E=c.floating[C]||i.floating[v]);const R=x/2-L/2,T=E/2-w[v]/2-1,D=Math.min(m[y],T),I=Math.min(m[k],T),j=D,H=E-w[v]-I,P=E/2-w[v]/2+R,A=Gu(j,P,H),V=!u.arrow&&Gn(o)!=null&&P!==A&&i.reference[v]/2-(P<j?D:I)-w[v]/2<0,$=V?P<j?P-j:P-H:0;return{[g]:h[g]+$,data:{[g]:A,centerOffset:P-A-$,...V&&{alignmentOffset:$}},reset:V}}}),ND=(e,t)=>({...ID(e),options:[e,t]}),DD={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await kN().fn(e)).data?.referenceHidden||i}}}},VD={sideX:"left",sideY:"top"};function dw(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function r0(e,t,n){const{rects:r,placement:o}=e;return{side:dw(t,Rt(o),n),align:Gn(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function FD(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,collisionBoundary:c,collisionPadding:u=5,sticky:l=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:v,shiftCrossAxis:w=!1,nodeId:b,adaptiveOrigin:y,lazyFlip:k=!1,externalTree:C}=e,[x,L]=s.useState(null);!g&&x!==null&&L(null);const S=v.side||"flip",E=v.align||"flip",R=v.fallbackAxisSide||"end",T=typeof t=="function"?t:void 0,D=ke(T),I=T?D:t,j=xt(t),P=uw()==="rtl",A=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":P?"left":"right","inline-start":P?"right":"left"}[r],V=i==="center"?A:`${A}-${i}`;let $=u;const z=1,M=r==="bottom"?z:0,q=r==="top"?z:0,ee=r==="right"?z:0,te=r==="left"?z:0;typeof $=="number"?$={top:$+M,right:$+te,bottom:$+q,left:$+ee}:$&&($={top:($.top||0)+M,right:($.right||0)+te,bottom:($.bottom||0)+q,left:($.left||0)+ee});const ae={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:$},le=s.useRef(null),ne=xt(o),re=xt(a),ue=[vN(he=>{const $e=r0(he,r,P),Be=typeof ne.current=="function"?ne.current($e):ne.current,Re=typeof re.current=="function"?re.current($e):re.current;return{mainAxis:Be,crossAxis:Re,alignmentAxis:Re}},[typeof o!="function"?o:0,typeof a!="function"?a:0,P,r])],O=E==="none"&&S!=="shift",X=!O&&(l||w||S==="shift"),F=S==="none"?null:xN({...ae,padding:{top:$.top+z,right:$.right+z,bottom:$.bottom+z,left:$.left+z},mainAxis:!w&&S==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:R}),ge=O?null:yN(he=>{const $e=dr(he.elements.floating).documentElement;return{...ae,rootBoundary:w?{x:0,y:0,width:$e.clientWidth,height:$e.clientHeight}:void 0,mainAxis:E!=="none",crossAxis:X,limiter:l||w?void 0:wN(Be=>{if(!le.current)return{};const{width:Re,height:ze}=le.current.getBoundingClientRect(),Ye=At(Rt(Be.placement)),wt=Ye==="y"?Re:ze,mn=Ye==="y"?$.left+$.right:$.top+$.bottom;return{offset:wt/2+mn/2}})}},[ae,l,w,$,E]);S==="shift"||E==="shift"||i==="center"?ue.push(ge,F):ue.push(F,ge),ue.push(CN({...ae,apply({elements:{floating:he},rects:{reference:$e},availableWidth:Be,availableHeight:Re}){Object.entries({"--available-width":`${Be}px`,"--available-height":`${Re}px`,"--anchor-width":`${$e.width}px`,"--anchor-height":`${$e.height}px`}).forEach(([ze,Ye])=>{he.style.setProperty(ze,Ye)})}}),ND(()=>({element:le.current||document.createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(he){const{elements:$e,middlewareData:Be,placement:Re,rects:ze,y:Ye}=he,wt=Rt(Re),mn=At(wt),Jn=le.current,Zr=Be.arrow?.x||0,Jr=Be.arrow?.y||0,Bt=Jn?.clientWidth||0,Jt=Jn?.clientHeight||0,hn=Zr+Bt/2,Qn=Jr+Jt/2,Qr=Math.abs(Be.shift?.y||0),eo=ze.reference.height/2,mt=typeof o=="function"?o(r0(he,r,P)):o,to=Qr>mt,Sn={top:`${hn}px calc(100% + ${mt}px)`,bottom:`${hn}px ${-mt}px`,left:`calc(100% + ${mt}px) ${Qn}px`,right:`${-mt}px ${Qn}px`}[wt],no=`${hn}px ${ze.reference.y+eo-Ye}px`;return $e.floating.style.setProperty("--transform-origin",X&&mn==="y"&&to?no:Sn),{}}},DD,y),we(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,h]);const J=s.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:G,elements:Z,x:be,y:ve,middlewareData:W,update:_,placement:ce,context:Y,isPositioned:K,floatingStyles:oe}=iD({rootContext:h,placement:V,middleware:ue,strategy:n,whileElementsMounted:m?void 0:(...he)=>Gb(...he,J),nodeId:b,externalTree:C}),{sideX:ye,sideY:Ee}=W.adaptiveOrigin||VD,xe=K?n:"fixed",Ae=s.useMemo(()=>y?{position:xe,[ye]:be,[Ee]:ve}:{position:xe,...oe},[y,xe,ye,be,Ee,ve,oe]),Ie=s.useRef(null);we(()=>{if(!g)return;const he=j.current,$e=typeof he=="function"?he():he,Re=(o0($e)?$e.current:$e)||null||null;Re!==Ie.current&&(G.setPositionReference(Re),Ie.current=Re)},[g,G,I,j]),s.useEffect(()=>{if(!g)return;const he=j.current;typeof he!="function"&&o0(he)&&he.current!==Ie.current&&(G.setPositionReference(he.current),Ie.current=he.current)},[g,G,I,j]),s.useEffect(()=>{if(m&&g&&Z.domReference&&Z.floating)return Gb(Z.domReference,Z.floating,_,J)},[m,g,Z,_,J]);const Ue=Rt(ce),tt=dw(r,Ue,P),nt=Gn(ce)||"center",Ce=!!W.hide?.referenceHidden;we(()=>{k&&g&&K&&L(Ue)},[k,g,K,Ue]);const Oe=s.useMemo(()=>({position:"absolute",top:W.arrow?.y,left:W.arrow?.x}),[W.arrow]),Ne=W.arrow?.centerOffset!==0;return s.useMemo(()=>({positionerStyles:Ae,arrowStyles:Oe,arrowRef:le,arrowUncentered:Ne,side:tt,align:nt,physicalSide:Ue,anchorHidden:Ce,refs:G,context:Y,isPositioned:K,update:_}),[Ae,Oe,le,Ne,tt,nt,Ue,Ce,G,Y,K,_])}function o0(e){return e!=null&&"current"in e}function BD(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,i=ke(o),a=s.useRef(0),c=Ft(WD).current,u=Ft(HD).current,[l,d]=s.useState(0),f=s.useRef(l),m=ke((b,y)=>{u.set(b,y??null),f.current+=1,d(f.current)}),h=ke(b=>{u.delete(b),f.current+=1,d(f.current)}),g=s.useMemo(()=>{const b=new Map;return Array.from(u.keys()).filter(k=>k.isConnected).sort(zD).forEach((k,C)=>{const x=u.get(k)??{};b.set(k,{...x,index:C})}),b},[u,l]);we(()=>{if(typeof MutationObserver!="function"||g.size===0)return;const b=new MutationObserver(y=>{const k=new Set,C=x=>k.has(x)?k.delete(x):k.add(x);y.forEach(x=>{x.removedNodes.forEach(C),x.addedNodes.forEach(C)}),k.size===0&&(f.current+=1,d(f.current))});return g.forEach((y,k)=>{k.parentElement&&b.observe(k.parentElement,{childList:!0})}),()=>{b.disconnect()}},[g]),we(()=>{f.current===l&&(n.current.length!==g.size&&(n.current.length=g.size),r&&r.current.length!==g.size&&(r.current.length=g.size),a.current=g.size),i(g)},[i,g,n,r,l]),we(()=>()=>{n.current=[]},[n]),we(()=>()=>{r&&(r.current=[])},[r]);const v=ke(b=>(c.add(b),()=>{c.delete(b)}));we(()=>{c.forEach(b=>b(g))},[c,g]);const w=s.useMemo(()=>({register:m,unregister:h,subscribeMapChange:v,elementsRef:n,labelsRef:r,nextIndexRef:a}),[m,h,v,n,r,a]);return p.jsx(f2.Provider,{value:w,children:t})}function HD(){return new Map}function WD(){return new Set}function zD(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const _D=s.forwardRef(function(t,n){const{cutout:r,...o}=t;let i;if(r){const a=r?.getBoundingClientRect();i=`polygon(
|
|
3
|
-
0% 0%,
|
|
4
|
-
100% 0%,
|
|
5
|
-
100% 100%,
|
|
6
|
-
0% 100%,
|
|
7
|
-
0% 0%,
|
|
8
|
-
${a.left}px ${a.top}px,
|
|
9
|
-
${a.left}px ${a.bottom}px,
|
|
10
|
-
${a.right}px ${a.bottom}px,
|
|
11
|
-
${a.right}px ${a.top}px,
|
|
12
|
-
${a.left}px ${a.top}px
|
|
13
|
-
)`}return p.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})}),UD=s.forwardRef(function(t,n){const{anchor:r,positionMethod:o="absolute",className:i,render:a,side:c,align:u,sideOffset:l=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:v=!1,collisionAvoidance:w=BT,...b}=t,{store:y}=Wr(),k=MD(),C=Mi(!0),x=y.useState("parent"),L=y.useState("floatingRootContext"),S=y.useState("floatingTreeRoot"),E=y.useState("mounted"),R=y.useState("open"),T=y.useState("modal"),D=y.useState("activeTriggerElement"),I=y.useState("lastOpenChangeReason"),j=y.useState("floatingNodeId"),H=y.useState("floatingParentNodeId");let P=r,A=l,V=d,$=u;x.type==="context-menu"&&(P=r??x.context?.anchor,$=$??"start",!c&&$!=="center"&&(V=t.alignOffset??2,A=t.sideOffset??-5));let z=c,M=$;x.type==="menu"?(z=z??"inline-end",M=M??"start"):x.type==="menubar"&&(z=z??"bottom",M=M??"start");const q=x.type==="context-menu",ee=FD({anchor:P,floatingRootContext:L,positionMethod:C?"fixed":o,mounted:E,side:z,sideOffset:A,align:M,alignOffset:V,arrowPadding:q?0:h,collisionBoundary:f,collisionPadding:m,sticky:g,nodeId:j,keepMounted:k,disableAnchorTracking:v,collisionAvoidance:w,shiftCrossAxis:q,externalTree:S}),te=s.useMemo(()=>{const ie={};return R||(ie.pointerEvents="none"),{role:"presentation",hidden:!E,style:{...ee.positionerStyles,...ie}}},[R,E,ee.positionerStyles]);s.useEffect(()=>{function ie(ue){ue.open?(ue.parentNodeId===j&&y.set("hoverEnabled",!1),ue.nodeId!==j&&ue.parentNodeId===y.select("floatingParentNodeId")&&y.setOpen(!1,Je(bo))):ue.parentNodeId===j&&ue.reason!==bo&&y.set("hoverEnabled",!0)}return S.events.on("menuopenchange",ie),()=>{S.events.off("menuopenchange",ie)}},[y,S.events,j]),s.useEffect(()=>{if(y.select("floatingParentNodeId")==null)return;function ie(ue){if(ue.open||ue.nodeId!==y.select("floatingParentNodeId"))return;const O=ue.reason??bo;y.setOpen(!1,Je(O))}return S.events.on("menuopenchange",ie),()=>{S.events.off("menuopenchange",ie)}},[S.events,y]),s.useEffect(()=>{function ie(ue){!R||ue.nodeId!==y.select("floatingParentNodeId")||ue.target&&D&&D!==ue.target&&y.setOpen(!1,Je(bo))}return S.events.on("itemhover",ie),()=>{S.events.off("itemhover",ie)}},[S.events,R,D,y]),s.useEffect(()=>{const ie={open:R,nodeId:j,parentNodeId:H,reason:y.select("lastOpenChangeReason")};S.events.emit("menuopenchange",ie)},[S.events,R,y,j,H]);const ae=s.useMemo(()=>({open:R,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,nested:x.type==="menu"}),[R,ee.side,ee.align,ee.anchorHidden,x.type]),le=s.useMemo(()=>({side:ee.side,align:ee.align,arrowRef:ee.arrowRef,arrowUncentered:ee.arrowUncentered,arrowStyles:ee.arrowStyles,nodeId:ee.context.nodeId}),[ee.side,ee.align,ee.arrowRef,ee.arrowUncentered,ee.arrowStyles,ee.context.nodeId]),ne=Un("div",t,{state:ae,stateAttributesMapping:c2,ref:[n,y.useStateSetter("positionerElement")],props:[te,b]}),re=E&&x.type!=="menu"&&(x.type!=="menubar"&&T&&I!==cr||x.type==="menubar"&&x.context.modal);let se=null;return x.type==="menubar"?se=x.context.contentElement:x.type===void 0&&(se=D),p.jsxs(e2.Provider,{value:le,children:[re&&p.jsx(_D,{ref:x.type==="context-menu"||x.type==="nested-context-menu"?x.context.internalBackdropRef:null,inert:TD(!R),cutout:se}),p.jsx(EI,{id:j,children:p.jsx(BD,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:ne})})]})});let s0={},i0={},a0="";function KD(e){if(typeof document>"u")return!1;const t=dr(e);return at(t).innerWidth-t.documentElement.clientWidth>0}function GD(e){const t=dr(e),n=t.documentElement,r=t.body,o=gr(n)?n:r,i=o.style.overflow;return o.style.overflow="hidden",()=>{o.style.overflow=i}}function YD(e){const t=dr(e),n=t.documentElement,r=t.body,o=at(n);let i=0,a=0;const c=Pn.create(),u=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(AA&&(o.visualViewport?.scale??1)!==1)return()=>{};function l(){const m=o.getComputedStyle(n),h=o.getComputedStyle(r),w=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,a=n.scrollLeft,s0={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},a0=n.style.scrollBehavior,i0={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const b=n.scrollHeight>n.clientHeight,y=n.scrollWidth>n.clientWidth,k=m.overflowY==="scroll"||h.overflowY==="scroll",C=m.overflowX==="scroll"||h.overflowX==="scroll",x=Math.max(0,o.innerWidth-n.clientWidth),L=Math.max(0,o.innerHeight-n.clientHeight),S=parseFloat(h.marginTop)+parseFloat(h.marginBottom),E=parseFloat(h.marginLeft)+parseFloat(h.marginRight),R=gr(n)?n:r;if(u){n.style.scrollbarGutter=w,R.style.overflowY="hidden",R.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:w,overflowY:"hidden",overflowX:"hidden"}),(b||k)&&(n.style.overflowY="scroll"),(y||C)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:S||L?`calc(100dvh - ${S+L}px)`:"100dvh",width:E||x?`calc(100vw - ${E+x}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,s0),Object.assign(r.style,i0),u||(n.scrollTop=i,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=a0)}function f(){d(),c.request(l)}return l(),o.addEventListener("resize",f),()=>{c.cancel(),d(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",f)}}class XD{lockCount=0;restore=null;timeoutLock=Js.create();timeoutUnlock=Js.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=dr(t).documentElement,o=at(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=i2;return}const i=IA||!KD(t);this.restore=i?GD(t):YD(t)}}const qD=new XD;function ZD(e=!0,t=null){we(()=>{if(e)return qD.acquire(t)},[e,t])}const JD=s.createContext(null);function QD(e){return s.useContext(JD)}function eV(e){const t=s.useRef(""),n=s.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:s.useCallback(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o&&e(o,o.pointerType),e(o,t.current),t.current=""},[e]),onPointerDown:n}}function tV(e){const[t,n]=s.useState(null),r=ke((c,u)=>{e||n(u)}),o=s.useCallback(()=>{n(null)},[]),{onClick:i,onPointerDown:a}=eV(r);return s.useMemo(()=>({openMethod:t,reset:o,triggerProps:{onClick:i,onPointerDown:a}}),[t,o,i,a])}const nV={...oD,disabled:Se(e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled),modal:Se(e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0)),allowMouseEnter:Se(e=>e.parent.type==="menu"?e.parent.store.select("allowMouseEnter"):e.allowMouseEnter),stickIfOpen:Se(e=>e.stickIfOpen),parent:Se(e=>e.parent),rootId:Se(e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId),activeIndex:Se(e=>e.activeIndex),isActive:Se((e,t)=>e.activeIndex===t),hoverEnabled:Se(e=>e.hoverEnabled),instantType:Se(e=>e.instantType),lastOpenChangeReason:Se(e=>e.openChangeReason),floatingTreeRoot:Se(e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot),floatingNodeId:Se(e=>e.floatingNodeId),floatingParentNodeId:Se(e=>e.floatingParentNodeId),itemProps:Se(e=>e.itemProps),closeDelay:Se(e=>e.closeDelay),keyboardEventRelay:Se(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")})};class pf extends nw{constructor(t){super({...rV(),...t},{positionerRef:s.createRef(),popupRef:s.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:s.createRef(),beforeContentFocusGuardRef:s.createRef(),onOpenChangeComplete:void 0,triggerElements:new ff},nV),this.observe(Se(n=>n.allowMouseEnter),(n,r)=>{this.state.parent.type==="menu"&&n!==r&&this.state.parent.store.set("allowMouseEnter",n)}),this.unsubscribeParentListener=this.observe("parent",n=>{if(this.unsubscribeParentListener?.(),n.type==="menu"){this.unsubscribeParentListener=n.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=n.store.context.allowMouseUpTriggerRef;return}n.type!==void 0&&(this.context.allowMouseUpTriggerRef=n.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(t,n){this.state.floatingRootContext.context.events.emit("setOpen",{open:t,eventDetails:n})}static useStore(t,n){return Ft(()=>t??new pf(n)).current}unsubscribeParentListener=null}function rV(){return{...rD(),disabled:!1,modal:!0,allowMouseEnter:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new V2,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:kt,keyboardEventRelay:void 0,closeDelay:0}}const oV=s.createContext(void 0);function sV(){return s.useContext(oV)}function iV(e){const{children:t,open:n,onOpenChange:r,onOpenChangeComplete:o,defaultOpen:i=!1,disabled:a=!1,modal:c,loopFocus:u=!0,orientation:l="vertical",actionsRef:d,closeParentOnEsc:f=!0,handle:m,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:v=!0}=e,w=Mi(!0),b=Wr(!0),y=QD(),k=sV(),C=s.useMemo(()=>k&&b?{type:"menu",store:b.store}:y?{type:"menubar",context:y}:w&&!b?{type:"context-menu",context:w}:{type:void 0},[w,b,y,k]),x=pf.useStore(m?.store,{parent:C}),L=x.useState("floatingTreeRoot"),S=kI(L),E=Yn();we(()=>{w&&!b?x.update({parent:{type:"context-menu",context:w},floatingNodeId:S,floatingParentNodeId:E}):b&&x.update({floatingNodeId:S,floatingParentNodeId:E})},[w,b,S,E,x]),x.useControlledProp("open",n,i),x.useControlledProp("activeTriggerId",h,g),x.useContextCallback("onOpenChangeComplete",o);const R=x.useState("open"),T=x.useState("activeTriggerElement"),D=x.useState("positionerElement"),I=x.useState("hoverEnabled"),j=x.useState("modal"),H=x.useState("disabled"),P=x.useState("lastOpenChangeReason"),A=x.useState("parent"),V=x.useState("activeIndex"),$=x.useState("payload"),z=x.useState("floatingParentNodeId"),M=s.useRef(null),q=z!=null;let ee;x.useSyncedValues({disabled:a,modal:A.type===void 0?c:void 0,rootId:_n()});const{openMethod:te,triggerProps:ae,reset:le}=tV(R);eD(x);const{forceUnmount:ne}=tD(R,x,()=>{x.update({allowMouseEnter:!1,stickIfOpen:!0}),le()}),re=s.useRef(A.type!=="context-menu"),se=qt();s.useEffect(()=>{if(R||(M.current=null),A.type==="context-menu"){if(!R){se.clear(),re.current=!1;return}se.start(500,()=>{re.current=!0})}},[se,R,A.type]),ZD(R&&j&&P!==cr&&te!=="touch",D),we(()=>{!R&&!I&&x.set("hoverEnabled",!0)},[R,I,x]);const ie=s.useRef(!0),ue=qt(),O=ke((Ce,Oe)=>{const Ne=Oe.reason;if(R===Ce&&Oe.trigger===T||(Oe.preventUnmountOnClose=()=>{x.set("preventUnmountingOnClose",!0)},!Ce&&Oe.trigger==null&&(Oe.trigger=T??void 0),r?.(Ce,Oe),Oe.isCanceled))return;const he={open:Ce,nativeEvent:Oe.event,reason:Oe.reason,nested:q};ee?.emit("openchange",he);const $e=Oe.event;if(Ce===!1&&$e?.type==="click"&&$e.pointerType==="touch"&&!ie.current)return;if(!Ce&&V!==null){const Ye=x.context.itemDomElements.current[V];queueMicrotask(()=>{Ye?.setAttribute("tabindex","-1")})}Ce&&Ne===Rb?(ie.current=!1,ue.start(300,()=>{ie.current=!0})):(ie.current=!0,ue.clear());const Be=(Ne===Zs||Ne===l2)&&$e.detail===0&&$e?.isTrusted,Re=!Ce&&(Ne===u2||Ne==null);function ze(){const Ye={open:Ce,openChangeReason:Ne};M.current=Oe.event??null;const wt=Oe.trigger?.id??null;(wt||Ce)&&(Ye.activeTriggerId=wt,Ye.activeTriggerElement=Oe.trigger??null),x.update(Ye)}Ne===cr?pt.flushSync(ze):ze(),A.type==="menubar"&&(Ne===Rb||Ne===Ti||Ne===cr||Ne===Ms||Ne===bo)?x.set("instantType","group"):Be||Re?x.set("instantType",Be?"click":"dismiss"):x.set("instantType",void 0)}),X=s.useCallback(Ce=>{const Oe=Je(Ce);return Oe.preventUnmountOnClose=()=>{x.set("preventUnmountingOnClose",!0)},Oe},[x]),F=s.useCallback(()=>{x.setOpen(!1,X(tA))},[x,X]);s.useImperativeHandle(d,()=>({unmount:ne,close:F}),[ne,F]);let ge;A.type==="context-menu"&&(ge=A.context),s.useImperativeHandle(ge?.positionerRef,()=>D,[D]),s.useImperativeHandle(ge?.actionsRef,()=>({setOpen:O}),[O]);const J=aD({popupStore:x,onOpenChange:O});ee=J.context.events,s.useEffect(()=>{const Ce=({open:Oe,eventDetails:Ne})=>O(Oe,Ne);return ee.on("setOpen",Ce),()=>{ee?.off("setOpen",Ce)}},[ee,O]);const G=SN(J,{enabled:!H,bubbles:f&&A.type==="menu",outsidePress(){return A.type!=="context-menu"||M.current?.type==="contextmenu"?!0:re.current},externalTree:q?L:void 0}),Z=wD(J,{role:"menu"}),be=uw(),ve=s.useCallback(Ce=>{x.select("activeIndex")!==Ce&&x.set("activeIndex",Ce)},[x]),W=vD(J,{enabled:!H,listRef:x.context.itemDomElements,activeIndex:V,nested:A.type!==void 0,loopFocus:u,orientation:l,parentOrientation:A.type==="menubar"?A.context.orientation:void 0,rtl:be==="rtl",disabledIndices:a2,onNavigate:ve,openOnArrowKeyDown:A.type!=="context-menu",externalTree:q?L:void 0,focusItemOnHover:v}),_=s.useCallback(Ce=>{x.context.typingRef.current=Ce},[x]),ce=xD(J,{listRef:x.context.itemLabels,activeIndex:V,resetMs:DT,onMatch:Ce=>{R&&Ce!==V&&x.set("activeIndex",Ce)},onTypingChange:_}),{getReferenceProps:Y,getFloatingProps:K,getItemProps:oe,getTriggerProps:ye}=mD([G,Z,W,ce]),Ee=s.useMemo(()=>{const Ce=Pi(Y(),{onMouseEnter(){x.set("hoverEnabled",!0)},onMouseMove(){x.set("allowMouseEnter",!0)}},ae);return delete Ce.role,Ce},[Y,x,ae]),xe=s.useMemo(()=>{const Ce=ye();if(!Ce)return Ce;const{role:Oe,["aria-controls"]:Ne,...he}=Ce;return he},[ye]),Ae=rf(),Ie=s.useMemo(()=>K({onMouseEnter(){A.type==="menu"&&Ae.request(()=>x.set("hoverEnabled",!1))},onMouseMove(){x.set("allowMouseEnter",!0)},onClick(){x.select("hoverEnabled")&&x.set("hoverEnabled",!1)},onKeyDown(Ce){const Oe=x.select("keyboardEventRelay");Oe&&!Ce.isPropagationStopped()&&Oe(Ce)}}),[K,A.type,Ae,x]),Ue=s.useMemo(()=>oe(),[oe]);x.useSyncedValues({floatingRootContext:J,activeTriggerProps:Ee,inactiveTriggerProps:xe,popupProps:Ie,itemProps:Ue});const tt=s.useMemo(()=>({store:x,parent:C}),[x,C]),nt=p.jsx(Zd.Provider,{value:tt,children:typeof t=="function"?t({payload:$}):t});return A.type===void 0||A.type==="context-menu"?p.jsx(LI,{externalTree:L,children:nt}):nt}function fw(e){if(Xe(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid")??void 0;if(!on(e))return fw(un(e))}const aV=s.forwardRef(function(t,n){const{className:r,render:o,orientation:i="horizontal",...a}=t,c=s.useMemo(()=>({orientation:i}),[i]);return Un("div",t,{state:c,ref:n,props:[{role:"separator","aria-orientation":i},a]})});function cV(e){const[t,n]=s.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=s.useRef(null),o=s.useRef(null),i=s.useRef(null),a=s.useRef(null),c=s.useRef(!0),u=s.useRef(null),l=_n(),d=s.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:i,backdropRef:r,internalBackdropRef:o,positionerRef:a,allowMouseUpTriggerRef:c,initialCursorPointRef:u,rootId:l}),[t,l]);return p.jsx(Qy.Provider,{value:d,children:p.jsx(Zd.Provider,{value:void 0,children:p.jsx(iV,{...e})})})}const c0=500,lV=s.forwardRef(function(t,n){const{render:r,className:o,...i}=t,{setAnchor:a,actionsRef:c,internalBackdropRef:u,backdropRef:l,positionerRef:d,allowMouseUpTriggerRef:f,initialCursorPointRef:m,rootId:h}=Mi(!1),{store:g}=Wr(!1),v=g.useState("open"),w=s.useRef(null),b=s.useRef(null),y=qt(),k=qt(),C=s.useRef(!1);function x(I,j,H){const P=H.type.startsWith("touch");m.current={x:I,y:j},a({getBoundingClientRect(){return DOMRect.fromRect({width:P?10:0,height:P?10:0,x:I,y:j})}}),C.current=!1,c.current?.setOpen(!0,Je(Zs,H)),k.start(c0,()=>{C.current=!0})}function L(I){f.current=!0,st(I),x(I.clientX,I.clientY,I.nativeEvent),dr(w.current).addEventListener("mouseup",H=>{if(f.current=!1,!C.current)return;k.clear(),C.current=!1;const P=Ct(H);He(d.current,P)||h&&P&&fw(P)===h||c.current?.setOpen(!1,Je(eA,H))},{once:!0})}function S(I){if(f.current=!1,I.touches.length===1){I.stopPropagation();const j=I.touches[0];b.current={x:j.clientX,y:j.clientY},y.start(c0,()=>{b.current&&x(b.current.x,b.current.y,I.nativeEvent)})}}function E(I){if(y.isStarted()&&b.current&&I.touches.length===1){const j=I.touches[0],H=10,P=Math.abs(j.clientX-b.current.x),A=Math.abs(j.clientY-b.current.y);(P>H||A>H)&&y.clear()}}function R(){y.clear(),b.current=null}s.useEffect(()=>{function I(H){const A=Ct(H);(He(w.current,A)||He(u.current,A)||He(l.current,A))&&H.preventDefault()}const j=dr(w.current);return j.addEventListener("contextmenu",I),()=>{j.removeEventListener("contextmenu",I)}},[l,u]);const T=s.useMemo(()=>({open:v}),[v]);return Un("div",t,{state:T,ref:[w,n],props:[{onContextMenu:L,onTouchStart:S,onTouchMove:E,onTouchEnd:R,onTouchCancel:R,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:JT})}),mf=s.createContext({});function hf(e){const t=s.useRef(null);return t.current===null&&(t.current=e()),t.current}const pw=typeof window<"u",mw=pw?s.useLayoutEffect:s.useEffect,Hi=s.createContext(null);function gf(e,t){e.indexOf(t)===-1&&e.push(t)}function ui(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const dn=(e,t,n)=>n>t?t:n<e?e:n;let bf=()=>{};const Cn={},hw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gw(e){return typeof e=="object"&&e!==null}const bw=e=>/^0[^.\s]+$/u.test(e);function vw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Vt=e=>e,uV=(e,t)=>n=>t(e(n)),Uo=(...e)=>e.reduce(uV),No=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vf{constructor(){this.subscriptions=[]}add(t){return gf(this.subscriptions,t),()=>ui(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Yt=e=>e*1e3,It=e=>e/1e3;function yw(e,t){return t?e*(1e3/t):0}const ww=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dV=1e-7,fV=12;function pV(e,t,n,r,o){let i,a,c=0;do a=t+(n-t)/2,i=ww(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>dV&&++c<fV);return a}function Ko(e,t,n,r){if(e===t&&n===r)return Vt;const o=i=>pV(i,0,1,e,n);return i=>i===0||i===1?i:ww(o(i),t,r)}const xw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cw=e=>t=>1-e(1-t),kw=Ko(.33,1.53,.69,.99),yf=Cw(kw),Ew=xw(yf),Lw=e=>(e*=2)<1?.5*yf(e):.5*(2-Math.pow(2,-10*(e-1))),wf=e=>1-Math.sin(Math.acos(e)),Sw=Cw(wf),$w=xw(wf),mV=Ko(.42,0,1,1),hV=Ko(0,0,.58,1),jw=Ko(.42,0,.58,1),gV=e=>Array.isArray(e)&&typeof e[0]!="number",Ow=e=>Array.isArray(e)&&typeof e[0]=="number",bV={linear:Vt,easeIn:mV,easeInOut:jw,easeOut:hV,circIn:wf,circInOut:$w,circOut:Sw,backIn:yf,backInOut:Ew,backOut:kw,anticipate:Lw},vV=e=>typeof e=="string",l0=e=>{if(Ow(e)){bf(e.length===4);const[t,n,r,o]=e;return Ko(t,n,r,o)}else if(vV(e))return bV[e];return e},hs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yV(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function u(d){a.has(d)&&(l.schedule(d),e()),d(c)}const l={schedule:(d,f=!1,m=!1)=>{const g=m&&o?n:r;return f&&a.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(c=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),n.clear(),o=!1,i&&(i=!1,l.process(d))}};return l}const wV=40;function Rw(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=hs.reduce((k,C)=>(k[C]=yV(i),k),{}),{setup:c,read:u,resolveKeyframes:l,preUpdate:d,update:f,preRender:m,render:h,postRender:g}=a,v=()=>{const k=Cn.useManualTiming?o.timestamp:performance.now();n=!1,Cn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(k-o.timestamp,wV),1)),o.timestamp=k,o.isProcessing=!0,c.process(o),u.process(o),l.process(o),d.process(o),f.process(o),m.process(o),h.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},w=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:hs.reduce((k,C)=>{const x=a[C];return k[C]=(L,S=!1,E=!1)=>(n||w(),x.schedule(L,S,E)),k},{}),cancel:k=>{for(let C=0;C<hs.length;C++)a[hs[C]].cancel(k)},state:o,steps:a}}const{schedule:Fe,cancel:zn,state:rt,steps:tu}=Rw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vt,!0);let Is;function xV(){Is=void 0}const bt={now:()=>(Is===void 0&&bt.set(rt.isProcessing||Cn.useManualTiming?rt.timestamp:performance.now()),Is),set:e=>{Is=e,queueMicrotask(xV)}},Mw=e=>t=>typeof t=="string"&&t.startsWith(e),Pw=Mw("--"),CV=Mw("var(--"),xf=e=>CV(e)?kV.test(e.split("/*")[0].trim()):!1,kV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function u0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ur={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Do={...Ur,transform:e=>dn(0,1,e)},gs={...Ur,default:1},So=e=>Math.round(e*1e5)/1e5,Cf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function EV(e){return e==null}const LV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kf=(e,t)=>n=>!!(typeof n=="string"&&LV.test(n)&&n.startsWith(e)||t&&!EV(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tw=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,c]=r.match(Cf);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},SV=e=>dn(0,255,e),nu={...Ur,transform:e=>Math.round(SV(e))},ir={test:kf("rgb","red"),parse:Tw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nu.transform(e)+", "+nu.transform(t)+", "+nu.transform(n)+", "+So(Do.transform(r))+")"};function $V(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Zu={test:kf("#"),parse:$V,transform:ir.transform},Go=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mn=Go("deg"),an=Go("%"),me=Go("px"),jV=Go("vh"),OV=Go("vw"),d0={...an,parse:e=>an.parse(e)/100,transform:e=>an.transform(e*100)},Cr={test:kf("hsl","hue"),parse:Tw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+an.transform(So(t))+", "+an.transform(So(n))+", "+So(Do.transform(r))+")"},Ze={test:e=>ir.test(e)||Zu.test(e)||Cr.test(e),parse:e=>ir.test(e)?ir.parse(e):Cr.test(e)?Cr.parse(e):Zu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ir.transform(e):Cr.transform(e),getAnimatableNone:e=>{const t=Ze.parse(e);return t.alpha=0,Ze.transform(t)}},RV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MV(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cf)?.length||0)+(e.match(RV)?.length||0)>0}const Aw="number",Iw="color",PV="var",TV="var(",f0="${}",AV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const c=t.replace(AV,u=>(Ze.test(u)?(r.color.push(i),o.push(Iw),n.push(Ze.parse(u))):u.startsWith(TV)?(r.var.push(i),o.push(PV),n.push(u)):(r.number.push(i),o.push(Aw),n.push(parseFloat(u))),++i,f0)).split(f0);return{values:n,split:c,indexes:r,types:o}}function Nw(e){return Vo(e).values}function Dw(e){const{split:t,types:n}=Vo(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const c=n[a];c===Aw?i+=So(o[a]):c===Iw?i+=Ze.transform(o[a]):i+=o[a]}return i}}const IV=e=>typeof e=="number"?0:Ze.test(e)?Ze.getAnimatableNone(e):e;function NV(e){const t=Nw(e);return Dw(e)(t.map(IV))}const Xt={test:MV,parse:Nw,createTransformer:Dw,getAnimatableNone:NV};function ru(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function DV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=ru(u,c,e+1/3),i=ru(u,c,e),a=ru(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function di(e,t){return n=>n>0?t:e}const _e=(e,t,n)=>e+(t-e)*n,ou=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},VV=[Zu,ir,Cr],FV=e=>VV.find(t=>t.test(e));function p0(e){const t=FV(e);if(!t)return!1;let n=t.parse(e);return t===Cr&&(n=DV(n)),n}const m0=(e,t)=>{const n=p0(e),r=p0(t);if(!n||!r)return di(e,t);const o={...n};return i=>(o.red=ou(n.red,r.red,i),o.green=ou(n.green,r.green,i),o.blue=ou(n.blue,r.blue,i),o.alpha=_e(n.alpha,r.alpha,i),ir.transform(o))},Ju=new Set(["none","hidden"]);function BV(e,t){return Ju.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function HV(e,t){return n=>_e(e,t,n)}function Ef(e){return typeof e=="number"?HV:typeof e=="string"?xf(e)?di:Ze.test(e)?m0:_V:Array.isArray(e)?Vw:typeof e=="object"?Ze.test(e)?m0:WV:di}function Vw(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Ef(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function WV(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ef(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function zV(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],c=e.values[a]??0;n[o]=c,r[i]++}return n}const _V=(e,t)=>{const n=Xt.createTransformer(t),r=Vo(e),o=Vo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ju.has(e)&&!o.values.length||Ju.has(t)&&!r.values.length?BV(e,t):Uo(Vw(zV(r,o),o.values),n):di(e,t)};function Fw(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?_e(e,t,n):Ef(e)(e,t)}const UV=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Fe.update(t,n),stop:()=>zn(t),now:()=>rt.isProcessing?rt.timestamp:bt.now()}},Bw=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},fi=2e4;function Lf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fi;)t+=n,r=e.next(t);return t>=fi?1/0:t}function KV(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Lf(r),fi);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:It(o)}}const GV=5;function Hw(e,t,n){const r=Math.max(t-GV,0);return yw(n-e(r),t-r)}const Ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},su=.001;function YV({duration:e=Ke.duration,bounce:t=Ke.bounce,velocity:n=Ke.velocity,mass:r=Ke.mass}){let o,i,a=1-t;a=dn(Ke.minDamping,Ke.maxDamping,a),e=dn(Ke.minDuration,Ke.maxDuration,It(e)),a<1?(o=l=>{const d=l*a,f=d*e,m=d-n,h=Qu(l,a),g=Math.exp(-f);return su-m/h*g},i=l=>{const f=l*a*e,m=f*n+n,h=Math.pow(a,2)*Math.pow(l,2)*e,g=Math.exp(-f),v=Qu(Math.pow(l,2),a);return(-o(l)+su>0?-1:1)*((m-h)*g)/v}):(o=l=>{const d=Math.exp(-l*e),f=(l-n)*e+1;return-su+d*f},i=l=>{const d=Math.exp(-l*e),f=(n-l)*(e*e);return d*f});const c=5/e,u=qV(o,i,c);if(e=Yt(e),isNaN(u))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const XV=12;function qV(e,t,n){let r=n;for(let o=1;o<XV;o++)r=r-e(r)/t(r);return r}function Qu(e,t){return e*Math.sqrt(1-t*t)}const ZV=["duration","bounce"],JV=["stiffness","damping","mass"];function h0(e,t){return t.some(n=>e[n]!==void 0)}function QV(e){let t={velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1,...e};if(!h0(e,JV)&&h0(e,ZV))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ke.mass,stiffness:o,damping:i}}else{const n=YV({...e,velocity:0});t={...t,...n,mass:Ke.mass},t.isResolvedFromDuration=!0}return t}function pi(e=Ke.visualDuration,t=Ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:u,damping:l,mass:d,duration:f,velocity:m,isResolvedFromDuration:h}=QV({...n,velocity:-It(n.velocity||0)}),g=m||0,v=l/(2*Math.sqrt(u*d)),w=a-i,b=It(Math.sqrt(u/d)),y=Math.abs(w)<5;r||(r=y?Ke.restSpeed.granular:Ke.restSpeed.default),o||(o=y?Ke.restDelta.granular:Ke.restDelta.default);let k;if(v<1){const x=Qu(b,v);k=L=>{const S=Math.exp(-v*b*L);return a-S*((g+v*b*w)/x*Math.sin(x*L)+w*Math.cos(x*L))}}else if(v===1)k=x=>a-Math.exp(-b*x)*(w+(g+b*w)*x);else{const x=b*Math.sqrt(v*v-1);k=L=>{const S=Math.exp(-v*b*L),E=Math.min(x*L,300);return a-S*((g+v*b*w)*Math.sinh(E)+x*w*Math.cosh(E))/x}}const C={calculatedDuration:h&&f||null,next:x=>{const L=k(x);if(h)c.done=x>=f;else{let S=x===0?g:0;v<1&&(S=x===0?Yt(g):Hw(k,x,L));const E=Math.abs(S)<=r,R=Math.abs(a-L)<=o;c.done=E&&R}return c.value=c.done?a:L,c},toString:()=>{const x=Math.min(Lf(C),fi),L=Bw(S=>C.next(x*S).value,x,30);return x+"ms "+L},toTransition:()=>{}};return C}pi.applyToOptions=e=>{const t=KV(e,100,pi);return e.ease=t.ease,e.duration=Yt(t.duration),e.type="keyframes",e};function ed({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:c,max:u,restDelta:l=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},h=E=>c!==void 0&&E<c||u!==void 0&&E>u,g=E=>c===void 0?u:u===void 0||Math.abs(c-E)<Math.abs(u-E)?c:u;let v=n*t;const w=f+v,b=a===void 0?w:a(w);b!==w&&(v=b-f);const y=E=>-v*Math.exp(-E/r),k=E=>b+y(E),C=E=>{const R=y(E),T=k(E);m.done=Math.abs(R)<=l,m.value=m.done?b:T};let x,L;const S=E=>{h(m.value)&&(x=E,L=pi({keyframes:[m.value,g(m.value)],velocity:Hw(k,E,m.value),damping:o,stiffness:i,restDelta:l,restSpeed:d}))};return S(0),{calculatedDuration:null,next:E=>{let R=!1;return!L&&x===void 0&&(R=!0,C(E),S(E)),x!==void 0&&E>=x?L.next(E-x):(!R&&C(E),m)}}}function eF(e,t,n){const r=[],o=n||Cn.mix||Fw,i=e.length-1;for(let a=0;a<i;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Vt:t;c=Uo(u,c)}r.push(c)}return r}function tF(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(bf(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=eF(t,r,o),u=c.length,l=d=>{if(a&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const m=No(e[f],e[f+1],d);return c[f](m)};return n?d=>l(dn(e[0],e[i-1],d)):l}function nF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=No(0,t,r);e.push(_e(n,1,o))}}function rF(e){const t=[0];return nF(t,e.length-1),t}function oF(e,t){return e.map(n=>n*t)}function sF(e,t){return e.map(()=>t||jw).splice(0,e.length-1)}function $o({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=gV(r)?r.map(l0):l0(r),i={done:!1,value:t[0]},a=oF(n&&n.length===t.length?n:rF(t),e),c=tF(a,t,{ease:Array.isArray(o)?o:sF(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}const iF=e=>e!==null;function Sf(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(iF),c=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!c||r===void 0?i[c]:r}const aF={decay:ed,inertia:ed,tween:$o,keyframes:$o,spring:pi};function Ww(e){typeof e.type=="string"&&(e.type=aF[e.type])}class $f{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const cF=e=>e/100;class jf extends $f{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==bt.now()&&this.tick(bt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ww(t);const{type:n=$o,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=t;let{keyframes:c}=t;const u=n||$o;u!==$o&&typeof c[0]!="number"&&(this.mixKeyframes=Uo(cF,Fw(c[0],c[1])),c=[0,100]);const l=u({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=Lf(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:d,repeat:f,repeatType:m,repeatDelay:h,type:g,onUpdate:v,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let k=this.currentTime,C=r;if(f){const E=Math.min(this.currentTime,o)/c;let R=Math.floor(E),T=E%1;!T&&E>=1&&(T=1),T===1&&R--,R=Math.min(R,f+1),R%2&&(m==="reverse"?(T=1-T,h&&(T-=h/c)):m==="mirror"&&(C=a)),k=dn(0,1,T)*c}const x=y?{done:!1,value:d[0]}:C.next(k);i&&(x.value=i(x.value));let{done:L}=x;!y&&u!==null&&(L=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return S&&g!==ed&&(x.value=Sf(d,this.options,w,this.speed)),v&&v(x.value),S&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return It(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+It(t)}get time(){return It(this.currentTime)}set time(t){t=Yt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(bt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=It(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=UV,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(bt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function lF(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ar=e=>e*180/Math.PI,td=e=>{const t=ar(Math.atan2(e[1],e[0]));return nd(t)},uF={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,skewX:e=>ar(Math.atan(e[1])),skewY:e=>ar(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nd=e=>(e=e%360,e<0&&(e+=360),e),g0=td,b0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),v0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),dF={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:b0,scaleY:v0,scale:e=>(b0(e)+v0(e))/2,rotateX:e=>nd(ar(Math.atan2(e[6],e[5]))),rotateY:e=>nd(ar(Math.atan2(-e[2],e[0]))),rotateZ:g0,rotate:g0,skewX:e=>ar(Math.atan(e[4])),skewY:e=>ar(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function rd(e){return e.includes("scale")?1:0}function od(e,t){if(!e||e==="none")return rd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=dF,o=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uF,o=c}if(!o)return rd(t);const i=r[t],a=o[1].split(",").map(pF);return typeof i=="function"?i(a):a[i]}const fF=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return od(n,t)};function pF(e){return parseFloat(e.trim())}const Kr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gr=new Set(Kr),y0=e=>e===Ur||e===me,mF=new Set(["x","y","z"]),hF=Kr.filter(e=>!mF.has(e));function gF(e){const t=[];return hF.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const In={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>od(t,"x"),y:(e,{transform:t})=>od(t,"y")};In.translateX=In.x;In.translateY=In.y;const lr=new Set;let sd=!1,id=!1,ad=!1;function zw(){if(id){const e=Array.from(lr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=gF(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{r.getValue(i)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,sd=!1,lr.forEach(e=>e.complete(ad)),lr.clear()}function _w(){lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function bF(){ad=!0,_w(),zw(),ad=!1}class Of{constructor(t,n,r,o,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(lr.add(this),sd||(sd=!0,Fe.read(_w),Fe.resolveKeyframes(zw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const c=r.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}lF(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lr.delete(this)}cancel(){this.state==="scheduled"&&(lr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vF=e=>e.startsWith("--");function yF(e,t,n){vF(t)?e.style.setProperty(t,n):e.style[t]=n}const wF={};function Uw(e,t){const n=vw(e);return()=>wF[t]??n()}const xF=Uw(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Kw=Uw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,w0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vo([0,.65,.55,1]),circOut:vo([.55,0,1,.45]),backIn:vo([.31,.01,.66,-.59]),backOut:vo([.33,1.53,.69,.99])};function Gw(e,t){if(e)return typeof e=="function"?Kw()?Bw(e,t):"ease-out":Ow(e)?vo(e):Array.isArray(e)?e.map(n=>Gw(n,t)||w0.easeOut):w0[e]}function CF(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:c="easeOut",times:u}={},l=void 0){const d={[t]:n};u&&(d.offset=u);const f=Gw(c,o);Array.isArray(f)&&(d.easing=f);const m={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(d,m)}function Yw(e){return typeof e=="function"&&"applyToOptions"in e}function kF({type:e,...t}){return Yw(e)&&Kw()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Xw extends $f{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,bf(typeof t.type!="string");const l=kF(t);this.animation=CF(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Sf(o,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(d):yF(n,r,d),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return It(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+It(t)}get time(){return It(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Yt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&xF()?(this.animation.timeline=t,Vt):n(this)}}const qw={anticipate:Lw,backInOut:Ew,circInOut:$w};function EF(e){return e in qw}function LF(e){typeof e.ease=="string"&&EF(e.ease)&&(e.ease=qw[e.ease])}const iu=10;class SF extends Xw{constructor(t){LF(t),Ww(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new jf({...a,autoplay:!1}),u=Math.max(iu,bt.now()-this.startTime),l=dn(0,iu,u-iu);n.setWithVelocity(c.sample(Math.max(0,u-l)).value,c.sample(u).value,l),c.stop()}}const x0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xt.test(e)||e==="0")&&!e.startsWith("url("));function $F(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function jF(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=x0(o,t),c=x0(i,t);return!a||!c?!1:$F(e)||(n==="spring"||Yw(n))&&r}function cd(e){e.duration=0,e.type="keyframes"}const OF=new Set(["opacity","clipPath","filter","transform"]),RF=vw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function MF(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return RF()&&n&&OF.has(n)&&(n!=="transform"||!l)&&!u&&!r&&o!=="mirror"&&i!==0&&a!=="inertia"}const PF=40;class TF extends $f{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:c,name:u,motionValue:l,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=bt.now();const m={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,name:u,motionValue:l,element:d,...f},h=d?.KeyframeResolver||Of;this.keyframeResolver=new h(c,(g,v,w)=>this.onKeyframesResolved(g,v,m,!w),u,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:a,velocity:c,delay:u,isHandoff:l,onUpdate:d}=r;this.resolvedAt=bt.now(),jF(t,i,a,c)||((Cn.instantAnimations||!u)&&d?.(Sf(t,r,n)),t[0]=t[t.length-1],cd(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>PF?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!l&&MF(m),g=m.motionValue?.owner?.current,v=h?new SF({...m,element:g}):new jf(m);v.finished.then(()=>{this.notifyFinished()}).catch(Vt),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),bF()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Zw(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,d)=>l.sortNodePosition(d)).indexOf(t),a=e.size,c=(a-1)*r;return typeof n=="function"?n(i,a):o===1?i*r:c-i*r}const AF=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function IF(e){const t=AF.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Jw(e,t,n=1){const[r,o]=IF(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return hw(a)?parseFloat(a):a}return xf(o)?Jw(o,t,n+1):o}const NF={type:"spring",stiffness:500,damping:25,restSpeed:10},DF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),VF={type:"keyframes",duration:.8},FF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BF=(e,{keyframes:t})=>t.length>2?VF:Gr.has(e)?e.startsWith("scale")?DF(t[1]):NF:FF,HF=e=>e!==null;function WF(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(HF),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Qw(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Rf(e,t){const n=e?.[t]??e?.default??e;return n!==e?Qw(n,e):n}function zF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:c,from:u,elapsed:l,...d}){return!!Object.keys(d).length}const Mf=(e,t,n,r={},o,i)=>a=>{const c=Rf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Yt(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-l,onUpdate:m=>{t.set(m),c.onUpdate&&c.onUpdate(m)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:o};zF(c)||Object.assign(d,BF(e,d)),d.duration&&(d.duration=Yt(d.duration)),d.repeatDelay&&(d.repeatDelay=Yt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(cd(d),d.delay===0&&(f=!0)),(Cn.instantAnimations||Cn.skipAnimations||o?.shouldSkipAnimations)&&(f=!0,cd(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!i&&t.get()!==void 0){const m=WF(d.keyframes,c);if(m!==void 0){Fe.update(()=>{d.onUpdate(m),d.onComplete()});return}}return c.isSync?new jf(d):new TF(d)};function C0(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pf(e,t,n,r){if(typeof t=="function"){const[o,i]=C0(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=C0(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Rr(e,t,n){const r=e.getProps();return Pf(r,t,n!==void 0?n:r.custom,e)}const ex=new Set(["width","height","top","left","right","bottom",...Kr]),k0=30,_F=e=>!isNaN(parseFloat(e));class UF{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=bt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=bt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_F(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new vf);const r=this.events[t].add(n);return t==="change"?()=>{r(),Fe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>k0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,k0);return yw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vr(e,t){return new UF(e,t)}const ld=e=>Array.isArray(e);function KF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vr(n))}function GF(e){return ld(e)?e[e.length-1]||0:e}function YF(e,t){const n=Rr(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const c=GF(i[a]);KF(e,a,c)}}const dt=e=>!!(e&&e.getVelocity);function XF(e){return!!(dt(e)&&e.add)}function ud(e,t){const n=e.getValue("willChange");if(XF(n))return n.add(t);if(!n&&Cn.WillChange){const r=new Cn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Tf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const qF="framerAppearId",tx="data-"+Tf(qF);function nx(e){return e.props[tx]}function ZF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rx(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:a,...c}=t;const u=e.getDefaultTransition();i=i?Qw(i,u):u;const l=i?.reduceMotion;r&&(i=r);const d=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const m in c){const h=e.getValue(m,e.latestValues[m]??null),g=c[m];if(g===void 0||f&&ZF(f,m))continue;const v={delay:n,...Rf(i||{},m)},w=h.get();if(w!==void 0&&!h.isAnimating&&!Array.isArray(g)&&g===w&&!v.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const C=nx(e);if(C){const x=window.MotionHandoffAnimation(C,m,Fe);x!==null&&(v.startTime=x,b=!0)}}ud(e,m);const y=l??e.shouldReduceMotion;h.start(Mf(m,h,g,y&&ex.has(m)?{type:!1}:v,e,b));const k=h.animation;k&&d.push(k)}if(a){const m=()=>Fe.update(()=>{a&&YF(e,a)});d.length?Promise.all(d).then(m):m()}return d}function dd(e,t,n={}){const r=Rr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(rx(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:f}=o;return JF(e,t,u,l,d,f,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,l]=c==="beforeChildren"?[i,a]:[a,i];return u().then(()=>l())}else return Promise.all([i(),a(n.delay)])}function JF(e,t,n=0,r=0,o=0,i=1,a){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(dd(u,t,{...a,delay:n+(typeof r=="function"?0:r)+Zw(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function QF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>dd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=dd(e,t,n);else{const o=typeof t=="function"?Rr(e,t,n.custom):t;r=Promise.all(rx(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const eB={test:e=>e==="auto",parse:e=>e},ox=e=>t=>t.test(e),sx=[Ur,me,an,Mn,OV,jV,eB],E0=e=>sx.find(ox(e));function tB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bw(e):!0}const nB=new Set(["brightness","contrast","saturate","opacity"]);function rB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cf)||[];if(!r)return e;const o=n.replace(r,"");let i=nB.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const oB=/\b([a-z-]*)\(.*?\)/gu,fd={...Xt,getAnimatableNone:e=>{const t=e.match(oB);return t?t.map(rB).join(" "):e}},pd={...Xt,getAnimatableNone:e=>{const t=Xt.parse(e);return Xt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},L0={...Ur,transform:Math.round},sB={rotate:Mn,rotateX:Mn,rotateY:Mn,rotateZ:Mn,scale:gs,scaleX:gs,scaleY:gs,scaleZ:gs,skew:Mn,skewX:Mn,skewY:Mn,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Do,originX:d0,originY:d0,originZ:me},Af={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,fontSize:me,backgroundPositionX:me,backgroundPositionY:me,...sB,zIndex:L0,fillOpacity:Do,strokeOpacity:Do,numOctaves:L0},iB={...Af,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:fd,WebkitFilter:fd,mask:pd,WebkitMask:pd},ix=e=>iB[e],aB=new Set([fd,pd]);function ax(e,t){let n=ix(e);return aB.has(n)||(n=Xt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cB=new Set(["auto","none","0"]);function lB(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!cB.has(i)&&Vo(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=ax(n,o)}class uB extends Of{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),xf(f))){const m=Jw(f,n.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ex.has(r)||t.length!==2)return;const[o,i]=t,a=E0(o),c=E0(i),u=u0(o),l=u0(i);if(u!==l&&In[r]){this.needsMeasurement=!0;return}if(a!==c)if(y0(a)&&y0(c))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else In[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||tB(t[o]))&&r.push(o);r.length&&lB(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=In[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=In[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const dB=new Set(["opacity","clipPath","filter","transform"]);function cx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const lx=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function md(e){return gw(e)&&"offsetHeight"in e}const{schedule:If}=Rw(queueMicrotask,!1),Kt={x:!1,y:!1};function ux(){return Kt.x||Kt.y}function fB(e){return e==="x"||e==="y"?Kt[e]?null:(Kt[e]=!0,()=>{Kt[e]=!1}):Kt.x||Kt.y?null:(Kt.x=Kt.y=!0,()=>{Kt.x=Kt.y=!1})}function dx(e,t){const n=cx(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function pB(e){return!(e.pointerType==="touch"||ux())}function mB(e,t,n={}){const[r,o,i]=dx(e,n);return r.forEach(a=>{let c=!1,u=!1,l;const d=()=>{a.removeEventListener("pointerleave",g)},f=w=>{l&&(l(w),l=void 0),d()},m=w=>{c=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),u&&(u=!1,f(w))},h=()=>{c=!0,window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",m,o)},g=w=>{if(w.pointerType!=="touch"){if(c){u=!0;return}f(w)}},v=w=>{if(!pB(w))return;u=!1;const b=t(a,w);typeof b=="function"&&(l=b,a.addEventListener("pointerleave",g,o))};a.addEventListener("pointerenter",v,o),a.addEventListener("pointerdown",h,o)}),i}const fx=(e,t)=>t?e===t?!0:fx(e,t.parentElement):!1,Nf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gB(e){return hB.has(e.tagName)||e.isContentEditable===!0}const bB=new Set(["INPUT","SELECT","TEXTAREA"]);function vB(e){return bB.has(e.tagName)||e.isContentEditable===!0}const Ns=new WeakSet;function S0(e){return t=>{t.key==="Enter"&&e(t)}}function au(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const yB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=S0(()=>{if(Ns.has(n))return;au(n,"down");const o=S0(()=>{au(n,"up")}),i=()=>au(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function $0(e){return Nf(e)&&!ux()}const j0=new WeakSet;function wB(e,t,n={}){const[r,o,i]=dx(e,n),a=c=>{const u=c.currentTarget;if(!$0(c)||j0.has(c))return;Ns.add(u),n.stopPropagation&&j0.add(c);const l=t(u,c),d=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),Ns.has(u)&&Ns.delete(u),$0(h)&&typeof l=="function"&&l(h,{success:g})},f=h=>{d(h,u===window||u===document||n.useGlobalTarget||fx(u,h.target))},m=h=>{d(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",m,o)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,o),md(c)&&(c.addEventListener("focus",l=>yB(l,o)),!gB(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function Df(e){return gw(e)&&"ownerSVGElement"in e}const Ds=new WeakMap;let Vs;const px=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Df(r)&&"getBBox"in r?r.getBBox()[t]:r[n],xB=px("inline","width","offsetWidth"),CB=px("block","height","offsetHeight");function kB({target:e,borderBoxSize:t}){Ds.get(e)?.forEach(n=>{n(e,{get width(){return xB(e,t)},get height(){return CB(e,t)}})})}function EB(e){e.forEach(kB)}function LB(){typeof ResizeObserver>"u"||(Vs=new ResizeObserver(EB))}function SB(e,t){Vs||LB();const n=cx(e);return n.forEach(r=>{let o=Ds.get(r);o||(o=new Set,Ds.set(r,o)),o.add(t),Vs?.observe(r)}),()=>{n.forEach(r=>{const o=Ds.get(r);o?.delete(t),o?.size||Vs?.unobserve(r)})}}const Fs=new Set;let kr;function $B(){kr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fs.forEach(t=>t(e))},window.addEventListener("resize",kr)}function jB(e){return Fs.add(e),kr||$B(),()=>{Fs.delete(e),!Fs.size&&typeof kr=="function"&&(window.removeEventListener("resize",kr),kr=void 0)}}function O0(e,t){return typeof e=="function"?jB(e):SB(e,t)}function OB(e){return Df(e)&&e.tagName==="svg"}const RB=[...sx,Ze,Xt],MB=e=>RB.find(ox(e)),R0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Er=()=>({x:R0(),y:R0()}),M0=()=>({min:0,max:0}),et=()=>({x:M0(),y:M0()}),PB=new WeakMap;function Wi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fo(e){return typeof e=="string"||Array.isArray(e)}const Vf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ff=["initial",...Vf];function zi(e){return Wi(e.animate)||Ff.some(t=>Fo(e[t]))}function mx(e){return!!(zi(e)||e.variants)}function TB(e,t,n){for(const r in t){const o=t[r],i=n[r];if(dt(o))e.addValue(r,o);else if(dt(i))e.addValue(r,Vr(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,Vr(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hd={current:null},hx={current:!1},AB=typeof window<"u";function IB(){if(hx.current=!0,!!AB)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hd.current=e.matches;e.addEventListener("change",t),t()}else hd.current=!1}const P0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let mi={};function gx(e){mi=e}function NB(){return mi}class DB{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:a,visualState:c},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Of,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=bt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Fe.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=c;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=zi(n),this.isVariantNode=mx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in m){const g=m[h];l[h]!==void 0&&dt(g)&&g.set(l[h])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,PB.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hx.current||IB(),this.shouldReduceMotion=hd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),zn(this.notifyUpdate),zn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&dB.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:c,times:u,ease:l,duration:d}=n.accelerate,f=new Xw({element:this.current,name:t,keyframes:c,times:u,ease:l,duration:Yt(d)}),m=a(f);this.valueSubscriptions.set(t,()=>{m(),f.cancel()});return}const r=Gr.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Fe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in mi){const n=mi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<P0.length;r++){const o=P0[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=TB(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Vr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(hw(r)||bw(r))?r=parseFloat(r):!MB(r)&&Xt.test(n)&&(r=ax(t,n)),this.setBaseTarget(t,dt(r)?r.get():r)),dt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=Pf(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!dt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new vf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){If.render(this.render)}}class bx extends DB{constructor(){super(...arguments),this.KeyframeResolver=uB}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function VB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function FB(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function cu(e){return e===void 0||e===1}function gd({scale:e,scaleX:t,scaleY:n}){return!cu(e)||!cu(t)||!cu(n)}function sr(e){return gd(e)||yx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yx(e){return T0(e.x)||T0(e.y)}function T0(e){return e&&e!=="0%"}function hi(e,t,n){const r=e-n,o=t*r;return n+o}function A0(e,t,n,r,o){return o!==void 0&&(e=hi(e,o,r)),hi(e,n,r)+t}function bd(e,t=0,n=1,r,o){e.min=A0(e.min,t,n,r,o),e.max=A0(e.max,t,n,r,o)}function wx(e,{x:t,y:n}){bd(e.x,t.translate,t.scale,t.originPoint),bd(e.y,n.translate,n.scale,n.originPoint)}const I0=.999999999999,N0=1.0000000000001;function BB(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let c=0;c<o;c++){i=n[c],a=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Sr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wx(e,a)),r&&sr(i.latestValues)&&Sr(e,i.latestValues))}t.x<N0&&t.x>I0&&(t.x=1),t.y<N0&&t.y>I0&&(t.y=1)}function Lr(e,t){e.min=e.min+t,e.max=e.max+t}function D0(e,t,n,r,o=.5){const i=_e(e.min,e.max,o);bd(e,t,n,i,r)}function Sr(e,t){D0(e.x,t.x,t.scaleX,t.scale,t.originX),D0(e.y,t.y,t.scaleY,t.scale,t.originY)}function xx(e,t){return vx(FB(e.getBoundingClientRect(),t))}function HB(e,t,n){const r=xx(e,n),{scroll:o}=t;return o&&(Lr(r.x,o.offset.x),Lr(r.y,o.offset.y)),r}const WB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zB=Kr.length;function _B(e,t,n){let r="",o=!0;for(let i=0;i<zB;i++){const a=Kr[i],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||n){const l=lx(c,Af[a]);if(!u){o=!1;const d=WB[a]||a;r+=`${d}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Bf(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,c=!1;for(const u in t){const l=t[u];if(Gr.has(u)){a=!0;continue}else if(Pw(u)){o[u]=l;continue}else{const d=lx(l,Af[u]);u.startsWith("origin")?(c=!0,i[u]=d):r[u]=d}}if(t.transform||(a||n?r.transform=_B(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:l="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${l} ${d}`}}function Cx(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];o?.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function V0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const uo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=V0(e,t.target.x),r=V0(e,t.target.y);return`${n}% ${r}%`}},UB={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Xt.parse(e);if(o.length>5)return r;const i=Xt.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const l=_e(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=l),typeof o[3+a]=="number"&&(o[3+a]/=l),i(o)}},vd={borderRadius:{...uo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uo,borderTopRightRadius:uo,borderBottomLeftRadius:uo,borderBottomRightRadius:uo,boxShadow:UB};function kx(e,{layout:t,layoutId:n}){return Gr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}function Hf(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const a in r)(dt(r[a])||o&&dt(o[a])||kx(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function KB(e){return window.getComputedStyle(e)}class GB extends bx{constructor(){super(...arguments),this.type="html",this.renderInstance=Cx}readValueFromInstance(t,n){if(Gr.has(n))return this.projection?.isProjecting?rd(n):fF(t,n);{const r=KB(t),o=(Pw(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xx(t,n)}build(t,n,r){Bf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hf(t,n,r)}}const YB={offset:"stroke-dashoffset",array:"stroke-dasharray"},XB={offset:"strokeDashoffset",array:"strokeDasharray"};function qB(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?YB:XB;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const ZB=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ex(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...c},u,l,d){if(Bf(e,c,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=d?.transformBox??"fill-box",delete f.transformBox);for(const h of ZB)f[h]!==void 0&&(m[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&qB(f,o,i,a,!1)}const Lx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Sx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JB(e,t,n,r){Cx(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Lx.has(o)?o:Tf(o),t.attrs[o])}function $x(e,t,n){const r=Hf(e,t,n);for(const o in e)if(dt(e[o])||dt(t[o])){const i=Kr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class QB extends bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gr.has(n)){const r=ix(n);return r&&r.default||0}return n=Lx.has(n)?n:Tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $x(t,n,r)}build(t,n,r){Ex(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){JB(t,n,r,o)}mount(t){this.isSVGTag=Sx(t.tagName),super.mount(t)}}const eH=Ff.length;function jx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<eH;n++){const r=Ff[n],o=e.props[r];(Fo(o)||o===!1)&&(t[r]=o)}return t}function Ox(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const tH=[...Vf].reverse(),nH=Vf.length;function rH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>QF(e,n,r)))}function oH(e){let t=rH(e),n=F0(),r=!0;const o=u=>(l,d)=>{const f=Rr(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:h,...g}=f;l={...l,...g,...h}}return l};function i(u){t=u(e)}function a(u){const{props:l}=e,d=jx(e.parent)||{},f=[],m=new Set;let h={},g=1/0;for(let w=0;w<nH;w++){const b=tH[w],y=n[b],k=l[b]!==void 0?l[b]:d[b],C=Fo(k),x=b===u?y.isActive:null;x===!1&&(g=w);let L=k===d[b]&&k!==l[b]&&C;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),y.protectedKeys={...h},!y.isActive&&x===null||!k&&!y.prevProp||Wi(k)||typeof k=="boolean")continue;if(b==="exit"&&y.isActive&&x!==!0){y.prevResolvedValues&&(h={...h,...y.prevResolvedValues});continue}const S=sH(y.prevProp,k);let E=S||b===u&&y.isActive&&!L&&C||w>g&&C,R=!1;const T=Array.isArray(k)?k:[k];let D=T.reduce(o(b),{});x===!1&&(D={});const{prevResolvedValues:I={}}=y,j={...I,...D},H=V=>{E=!0,m.has(V)&&(R=!0,m.delete(V)),y.needsAnimating[V]=!0;const $=e.getValue(V);$&&($.liveStyle=!1)};for(const V in j){const $=D[V],z=I[V];if(h.hasOwnProperty(V))continue;let M=!1;ld($)&&ld(z)?M=!Ox($,z):M=$!==z,M?$!=null?H(V):m.add(V):$!==void 0&&m.has(V)?H(V):y.protectedKeys[V]=!0}y.prevProp=k,y.prevResolvedValues=D,y.isActive&&(h={...h,...D}),r&&e.blockInitialAnimation&&(E=!1);const P=L&&S;E&&(!P||R)&&f.push(...T.map(V=>{const $={type:b};if(typeof V=="string"&&r&&!P&&e.manuallyAnimateOnMount&&e.parent){const{parent:z}=e,M=Rr(z,V);if(z.enteringChildren&&M){const{delayChildren:q}=M.transition||{};$.delay=Zw(z.enteringChildren,e,q)}}return{animation:V,options:$}}))}if(m.size){const w={};if(typeof l.initial!="boolean"){const b=Rr(e,Array.isArray(l.initial)?l.initial[0]:l.initial);b&&b.transition&&(w.transition=b.transition)}m.forEach(b=>{const y=e.getBaseTarget(b),k=e.getValue(b);k&&(k.liveStyle=!0),w[b]=y??null}),f.push({animation:w})}let v=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),n[u].isActive=l;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=F0()}}}function sH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ox(t,e):!1}function tr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function F0(){return{animate:tr(!0),whileInView:tr(),whileHover:tr(),whileTap:tr(),whileDrag:tr(),whileFocus:tr(),exit:tr()}}function B0(e,t){e.min=t.min,e.max=t.max}function _t(e,t){B0(e.x,t.x),B0(e.y,t.y)}function H0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Rx=1e-4,iH=1-Rx,aH=1+Rx,Mx=.01,cH=0-Mx,lH=0+Mx;function vt(e){return e.max-e.min}function uH(e,t,n){return Math.abs(e-t)<=n}function W0(e,t,n,r=.5){e.origin=r,e.originPoint=_e(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=_e(n.min,n.max,e.origin)-e.originPoint,(e.scale>=iH&&e.scale<=aH||isNaN(e.scale))&&(e.scale=1),(e.translate>=cH&&e.translate<=lH||isNaN(e.translate))&&(e.translate=0)}function jo(e,t,n,r){W0(e.x,t.x,n.x,r?r.originX:void 0),W0(e.y,t.y,n.y,r?r.originY:void 0)}function z0(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function dH(e,t,n){z0(e.x,t.x,n.x),z0(e.y,t.y,n.y)}function _0(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function gi(e,t,n){_0(e.x,t.x,n.x),_0(e.y,t.y,n.y)}function U0(e,t,n,r,o){return e-=t,e=hi(e,1/n,r),o!==void 0&&(e=hi(e,1/o,r)),e}function fH(e,t=0,n=1,r=.5,o,i=e,a=e){if(an.test(t)&&(t=parseFloat(t),t=_e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=_e(i.min,i.max,r);e===i&&(c-=t),e.min=U0(e.min,t,n,c,o),e.max=U0(e.max,t,n,c,o)}function K0(e,t,[n,r,o],i,a){fH(e,t[n],t[r],t[o],t.scale,i,a)}const pH=["x","scaleX","originX"],mH=["y","scaleY","originY"];function G0(e,t,n,r){K0(e.x,t,pH,n?n.x:void 0,r?r.x:void 0),K0(e.y,t,mH,n?n.y:void 0,r?r.y:void 0)}function Y0(e){return e.translate===0&&e.scale===1}function Px(e){return Y0(e.x)&&Y0(e.y)}function X0(e,t){return e.min===t.min&&e.max===t.max}function hH(e,t){return X0(e.x,t.x)&&X0(e.y,t.y)}function q0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tx(e,t){return q0(e.x,t.x)&&q0(e.y,t.y)}function Z0(e){return vt(e.x)/vt(e.y)}function J0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function tn(e){return[e("x"),e("y")]}function gH(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=n?.z||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:d,rotateX:f,rotateY:m,skewX:h,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),m&&(r+=`rotateY(${m}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Ax=["TopLeft","TopRight","BottomLeft","BottomRight"],bH=Ax.length,Q0=e=>typeof e=="string"?parseFloat(e):e,ev=e=>typeof e=="number"||me.test(e);function vH(e,t,n,r,o,i){o?(e.opacity=_e(0,n.opacity??1,yH(r)),e.opacityExit=_e(t.opacity??1,0,wH(r))):i&&(e.opacity=_e(t.opacity??1,n.opacity??1,r));for(let a=0;a<bH;a++){const c=`border${Ax[a]}Radius`;let u=tv(t,c),l=tv(n,c);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||ev(u)===ev(l)?(e[c]=Math.max(_e(Q0(u),Q0(l),r),0),(an.test(l)||an.test(u))&&(e[c]+="%")):e[c]=l}(t.rotate||n.rotate)&&(e.rotate=_e(t.rotate||0,n.rotate||0,r))}function tv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yH=Ix(0,.5,Sw),wH=Ix(.5,.95,Vt);function Ix(e,t,n){return r=>r<e?0:r>t?1:n(No(e,t,r))}function xH(e,t,n){const r=dt(e)?e:Vr(e);return r.start(Mf("",r,t,n)),r.animation}function Bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const CH=(e,t)=>e.depth-t.depth;class kH{constructor(){this.children=[],this.isDirty=!1}add(t){gf(this.children,t),this.isDirty=!0}remove(t){ui(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CH),this.isDirty=!1,this.children.forEach(t)}}function EH(e,t){const n=bt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(zn(r),e(i-t))};return Fe.setup(r,!0),()=>zn(r)}function Bs(e){return dt(e)?e.get():e}class LH{constructor(){this.members=[]}add(t){gf(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;o&&o.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&ui(this.members,r)}t.scheduleRender()}remove(t){if(ui(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o],a=i.instance;if(i.isPresent!==!1&&(!a||a.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,i=t.options.layoutDependency;if(!(o!==void 0&&i!==void 0&&o===i)){const u=r.instance;u&&u.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:c}=t.options;c===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},lu=["","X","Y","Z"],SH=1e3;let $H=0;function uu(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Nx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Fe,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Nx(r)}function Dx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t?.()){this.id=$H++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(RH),this.nodes.forEach(AH),this.nodes.forEach(IH),this.nodes.forEach(MH)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new kH)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new vf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Df(a)&&!OB(a),this.instance=a;const{layoutId:c,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||c)&&(this.isLayoutDirty=!0),e){let d,f=0;const m=()=>this.root.updateBlockedByResize=!1;Fe.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=EH(m,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(ov)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&l&&(c||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||l.getDefaultTransition()||BH,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=l.getProps(),b=!this.targetLayout||!Tx(this.targetLayout,h),y=!f&&m;if(this.options.layoutRoot||this.resumeFrom||y||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...Rf(g,"layout"),onPlay:v,onComplete:w};(l.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(d,y)}else f||ov(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),zn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(NH),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(TH),this.nodes.forEach(jH),this.nodes.forEach(OH)):this.nodes.forEach(rv),this.clearAllSnapshots();const c=bt.now();rt.delta=dn(0,1e3/60,c-rt.timestamp),rt.timestamp=c,rt.isProcessing=!0,tu.update.process(rt),tu.preRender.process(rt),tu.render.process(rt),rt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,If.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(PH),this.sharedNodes.forEach(DH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Px(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,d=l!==this.prevTransformTemplateValue;a&&this.instance&&(c||sr(this.latestValues)||d)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),HH(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return et();const c=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(WH))){const{scroll:l}=this.root;l&&(Lr(c.x,l.offset.x),Lr(c.y,l.offset.y))}return c}removeElementScroll(a){const c=et();if(_t(c,a),this.scroll?.wasRoot)return c;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:d,options:f}=l;l!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&_t(c,a),Lr(c.x,d.offset.x),Lr(c.y,d.offset.y))}return c}applyTransform(a,c=!1){const u=et();_t(u,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Sr(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),sr(d.latestValues)&&Sr(u,d.latestValues)}return sr(this.latestValues)&&Sr(u,this.latestValues),u}removeTransform(a){const c=et();_t(c,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!sr(l.latestValues))continue;gd(l.latestValues)&&l.updateSnapshot();const d=et(),f=l.measurePageBox();_t(d,f),G0(c,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,d)}return sr(this.latestValues)&&G0(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==rt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=rt.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dH(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_t(this.target,this.layout.layoutBox),wx(this.target,this.targetDelta)):_t(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||gd(this.parent.latestValues)||yx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,c,u){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),gi(this.relativeTargetOrigin,c,u),_t(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),c=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===rt.timestamp&&(u=!1),u)return;const{layout:l,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||d))return;_t(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;BB(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=et());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(H0(this.prevProjectionDelta.x,this.projectionDelta.x),H0(this.prevProjectionDelta.y,this.projectionDelta.y)),jo(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!J0(this.projectionDelta.x,this.prevProjectionDelta.x)||!J0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Er(),this.projectionDelta=Er(),this.projectionDeltaWithTransform=Er()}setAnimationOrigin(a,c=!1){const u=this.snapshot,l=u?u.latestValues:{},d={...this.latestValues},f=Er();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const m=et(),h=u?u.source:void 0,g=this.layout?this.layout.source:void 0,v=h!==g,w=this.getStack(),b=!w||w.members.length<=1,y=!!(v&&!b&&this.options.crossfade===!0&&!this.path.some(FH));this.animationProgress=0;let k;this.mixTargetDelta=C=>{const x=C/1e3;sv(f.x,a.x,x),sv(f.y,a.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gi(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),VH(this.relativeTarget,this.relativeTargetOrigin,m,x),k&&hH(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=et()),_t(k,this.relativeTarget)),v&&(this.animationValues=d,vH(d,l,this.latestValues,x,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fe.update(()=>{Hs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vr(0)),this.motionValue.jump(0,!1),this.currentAnimation=xH(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(SH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:l,latestValues:d}=a;if(!(!c||!u||!l)){if(this!==a&&this.layout&&l&&Vx(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||et();const f=vt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const m=vt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+m}_t(c,u),Sr(c,d),jo(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new LH),this.sharedNodes.get(a).add(c);const l=c.options.initialPromotionConfig;c.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const l={};u.z&&uu("z",a,l,this.animationValues);for(let d=0;d<lu.length;d++)uu(`rotate${lu[d]}`,a,l,this.animationValues),uu(`skew${lu[d]}`,a,l,this.animationValues);a.render();for(const d in l)a.setStaticValue(d,l[d]),this.animationValues&&(this.animationValues[d]=l[d]);a.scheduleRender()}applyProjectionStyles(a,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Bs(c?.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Bs(c?.pointerEvents)||""),this.hasProjected&&!sr(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=gH(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),a.transform=f;const{x:m,y:h}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${h.origin*100}% 0`,l.animationValues?a.opacity=l===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=l===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in vd){if(d[g]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:b}=vd[g],y=f==="none"?d[g]:v(d[g],l);if(w){const k=w.length;for(let C=0;C<k;C++)a[w[C]]=y}else b?this.options.visualElement.renderState.vars[g]=y:a[g]=y}this.options.layoutId&&(a.pointerEvents=l===this?Bs(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(nv),this.root.sharedNodes.clear()}}}function jH(e){e.updateLayout()}function OH(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?tn(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],m=vt(f);f.min=n[d].min,f.max=f.min+m}):Vx(o,t.layoutBox,n)&&tn(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],m=vt(n[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Er();jo(a,n,t.layoutBox);const c=Er();i?jo(c,e.applyTransform(r,!0),t.measuredBox):jo(c,n,t.layoutBox);const u=!Px(a);let l=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const h=et();gi(h,t.layoutBox,f.layoutBox);const g=et();gi(g,n,m.layoutBox),Tx(h,g)||(l=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function RH(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function MH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function PH(e){e.clearSnapshot()}function nv(e){e.clearMeasurements()}function rv(e){e.isLayoutDirty=!1}function TH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ov(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AH(e){e.resolveTargetDelta()}function IH(e){e.calcProjection()}function NH(e){e.resetSkewAndRotation()}function DH(e){e.removeLeadSnapshot()}function sv(e,t,n){e.translate=_e(t.translate,0,n),e.scale=_e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iv(e,t,n,r){e.min=_e(t.min,n.min,r),e.max=_e(t.max,n.max,r)}function VH(e,t,n,r){iv(e.x,t.x,n.x,r),iv(e.y,t.y,n.y,r)}function FH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BH={duration:.45,ease:[.4,0,.1,1]},av=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cv=av("applewebkit/")&&!av("chrome/")?Math.round:Vt;function lv(e){e.min=cv(e.min),e.max=cv(e.max)}function HH(e){lv(e.x),lv(e.y)}function Vx(e,t,n){return e==="position"||e==="preserve-aspect"&&!uH(Z0(t),Z0(n),.2)}function WH(e){return e!==e.root&&e.scroll?.wasRoot}const zH=Dx({attachResizeListener:(e,t)=>Bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),du={current:void 0},Fx=Dx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!du.current){const e=new zH({});e.mount(window),e.setOptions({layoutScroll:!0}),du.current=e}return du.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Wf=s.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function uv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _H(...e){return t=>{let n=!1;const r=e.map(o=>{const i=uv(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():uv(e[o],null)}}}}function UH(...e){return s.useCallback(_H(...e),e)}class KH extends s.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,o=md(r)&&r.offsetWidth||0,i=md(r)&&r.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=o-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function GH({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:i}){const a=s.useId(),c=s.useRef(null),u=s.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=s.useContext(Wf),d=e.props?.ref??e?.ref,f=UH(c,d);return s.useInsertionEffect(()=>{const{width:m,height:h,top:g,left:v,right:w,bottom:b}=u.current;if(t||i===!1||!c.current||!m||!h)return;const y=n==="left"?`left: ${v}`:`right: ${w}`,k=r==="bottom"?`bottom: ${b}`:`top: ${g}`;c.current.dataset.motionPopId=a;const C=document.createElement("style");l&&(C.nonce=l);const x=o??document.head;return x.appendChild(C),C.sheet&&C.sheet.insertRule(`
|
|
14
|
-
[data-motion-pop-id="${a}"] {
|
|
15
|
-
position: absolute !important;
|
|
16
|
-
width: ${m}px !important;
|
|
17
|
-
height: ${h}px !important;
|
|
18
|
-
${y}px !important;
|
|
19
|
-
${k}px !important;
|
|
20
|
-
}
|
|
21
|
-
`),()=>{x.contains(C)&&x.removeChild(C)}},[t]),p.jsx(KH,{isPresent:t,childRef:c,sizeRef:u,pop:i,children:i===!1?e:s.cloneElement(e,{ref:f})})}const YH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:c,anchorY:u,root:l})=>{const d=hf(XH),f=s.useId();let m=!0,h=s.useMemo(()=>(m=!1,{id:f,initial:t,isPresent:n,custom:o,onExitComplete:g=>{d.set(g,!0);for(const v of d.values())if(!v)return;r&&r()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,r]);return i&&m&&(h={...h}),s.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),s.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=p.jsx(GH,{pop:a==="popLayout",isPresent:n,anchorX:c,anchorY:u,root:l,children:e}),p.jsx(Hi.Provider,{value:h,children:e})};function XH(){return new Map}function Bx(e=!0){const t=s.useContext(Hi);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=s.useId();s.useEffect(()=>{if(e)return o(i)},[e]);const a=s.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const bs=e=>e.key||"";function dv(e){const t=[];return s.Children.forEach(e,n=>{s.isValidElement(n)&&t.push(n)}),t}const qH=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:c="left",anchorY:u="top",root:l})=>{const[d,f]=Bx(a),m=s.useMemo(()=>dv(e),[e]),h=a&&!d?[]:m.map(bs),g=s.useRef(!0),v=s.useRef(m),w=hf(()=>new Map),b=s.useRef(new Set),[y,k]=s.useState(m),[C,x]=s.useState(m);mw(()=>{g.current=!1,v.current=m;for(let E=0;E<C.length;E++){const R=bs(C[E]);h.includes(R)?(w.delete(R),b.current.delete(R)):w.get(R)!==!0&&w.set(R,!1)}},[C,h.length,h.join("-")]);const L=[];if(m!==y){let E=[...m];for(let R=0;R<C.length;R++){const T=C[R],D=bs(T);h.includes(D)||(E.splice(R,0,T),L.push(T))}return i==="wait"&&L.length&&(E=L),x(dv(E)),k(m),null}const{forceRender:S}=s.useContext(mf);return p.jsx(p.Fragment,{children:C.map(E=>{const R=bs(E),T=a&&!d?!1:m===C||h.includes(R),D=()=>{if(b.current.has(R))return;if(b.current.add(R),w.has(R))w.set(R,!0);else return;let I=!0;w.forEach(j=>{j||(I=!1)}),I&&(S?.(),x(v.current),a&&f?.(),r&&r())};return p.jsx(YH,{isPresent:T,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:T?void 0:D,anchorX:c,anchorY:u,children:E},R)})})},Hx=s.createContext({strict:!1}),fv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let pv=!1;function ZH(){if(pv)return;const e={};for(const t in fv)e[t]={isEnabled:n=>fv[t].some(r=>!!n[r])};gx(e),pv=!0}function Wx(){return ZH(),NB()}function JH(e){const t=Wx();for(const n in e)t[n]={...t[n],...e[n]};gx(t)}const QH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function bi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||QH.has(e)}let zx=e=>!bi(e);function eW(e){typeof e=="function"&&(zx=t=>t.startsWith("on")?!bi(t):e(t))}try{eW(require("@emotion/is-prop-valid").default)}catch{}function tW(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(zx(o)||n===!0&&bi(o)||!t&&!bi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const _i=s.createContext({});function nW(e,t){if(zi(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fo(n)?n:void 0,animate:Fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function rW(e){const{initial:t,animate:n}=nW(e,s.useContext(_i));return s.useMemo(()=>({initial:t,animate:n}),[mv(t),mv(n)])}function mv(e){return Array.isArray(e)?e.join(" "):e}const zf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _x(e,t,n){for(const r in t)!dt(t[r])&&!kx(r,n)&&(e[r]=t[r])}function oW({transformTemplate:e},t){return s.useMemo(()=>{const n=zf();return Bf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function sW(e,t){const n=e.style||{},r={};return _x(r,n,e),Object.assign(r,oW(e,t)),r}function iW(e,t){const n={},r=sW(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ux=()=>({...zf(),attrs:{}});function aW(e,t,n,r){const o=s.useMemo(()=>{const i=Ux();return Ex(i,t,Sx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};_x(i,e.style,e),o.style={...i,...o.style}}return o}const cW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _f(e){return typeof e!="string"||e.includes("-")?!1:!!(cW.indexOf(e)>-1||/[A-Z]/u.test(e))}function lW(e,t,n,{latestValues:r},o,i=!1,a){const u=(a??_f(e)?aW:iW)(t,r,o,e),l=tW(t,typeof e=="string",i),d=e!==s.Fragment?{...l,...u,ref:n}:{},{children:f}=t,m=s.useMemo(()=>dt(f)?f.get():f,[f]);return s.createElement(e,{...d,children:m})}function uW({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:dW(n,r,o,e),renderState:t()}}function dW(e,t,n,r){const o={},i=r(e,{});for(const m in i)o[m]=Bs(i[m]);let{initial:a,animate:c}=e;const u=zi(e),l=mx(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?c:a;if(f&&typeof f!="boolean"&&!Wi(f)){const m=Array.isArray(f)?f:[f];for(let h=0;h<m.length;h++){const g=Pf(e,m[h]);if(g){const{transitionEnd:v,transition:w,...b}=g;for(const y in b){let k=b[y];if(Array.isArray(k)){const C=d?k.length-1:0;k=k[C]}k!==null&&(o[y]=k)}for(const y in v)o[y]=v[y]}}}return o}const Kx=e=>(t,n)=>{const r=s.useContext(_i),o=s.useContext(Hi),i=()=>uW(e,t,r,o);return n?i():hf(i)},fW=Kx({scrapeMotionValuesFromProps:Hf,createRenderState:zf}),pW=Kx({scrapeMotionValuesFromProps:$x,createRenderState:Ux}),mW=Symbol.for("motionComponentSymbol");function hW(e,t,n){const r=s.useRef(n);s.useInsertionEffect(()=>{r.current=n});const o=s.useRef(null);return s.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const a=r.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(o.current=c)}else o.current?(o.current(),o.current=null):a(i);else a&&(a.current=i)},[t])}const Gx=s.createContext({});function wr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gW(e,t,n,r,o,i){const{visualElement:a}=s.useContext(_i),c=s.useContext(Hx),u=s.useContext(Hi),l=s.useContext(Wf),d=l.reducedMotion,f=l.skipAnimations,m=s.useRef(null),h=s.useRef(!1);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),h.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const g=m.current,v=s.useContext(Gx);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&bW(m.current,n,o,v);const w=s.useRef(!1);s.useInsertionEffect(()=>{g&&w.current&&g.update(n,u)});const b=n[tx],y=s.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return mw(()=>{h.current=!0,g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),y.current&&g.animationState&&g.animationState.animateChanges())}),s.useEffect(()=>{g&&(!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),y.current=!1),g.enteringChildren=void 0)}),g}function bW(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:l,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Yx(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||c&&wr(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:l})}function Yx(e){if(e)return e.options.allowProjection!==!1?e.projection:Yx(e.parent)}function fu(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&JH(r);const i=n?n==="svg":_f(e),a=i?pW:fW;function c(l,d){let f;const m={...s.useContext(Wf),...l,layoutId:vW(l)},{isStatic:h}=m,g=rW(l),v=a(l,h);if(!h&&pw){yW();const w=wW(m);f=w.MeasureLayout,g.visualElement=gW(e,v,m,o,w.ProjectionNode,i)}return p.jsxs(_i.Provider,{value:g,children:[f&&g.visualElement?p.jsx(f,{visualElement:g.visualElement,...m}):null,lW(e,l,hW(v,g.visualElement,d),v,h,t,i)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=s.forwardRef(c);return u[mW]=e,u}function vW({layoutId:e}){const t=s.useContext(mf).id;return t&&e!==void 0?t+"-"+e:e}function yW(e,t){s.useContext(Hx).strict}function wW(e){const t=Wx(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function xW(e,t){if(typeof Proxy>"u")return fu;const n=new Map,r=(i,a)=>fu(i,a,e,t),o=(i,a)=>r(i,a);return new Proxy(o,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,fu(a,void 0,e,t)),n.get(a))})}const CW=(e,t)=>t.isSVG??_f(e)?new QB(t):new GB(t,{allowProjection:e!==s.Fragment});class kW extends Xn{constructor(t){super(t),t.animationState||(t.animationState=oH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let EW=0;class LW extends Xn{constructor(){super(...arguments),this.id=EW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const SW={animation:{Feature:kW},exit:{Feature:LW}};function Yo(e){return{point:{x:e.pageX,y:e.pageY}}}const $W=e=>t=>Nf(t)&&e(t,Yo(t));function Oo(e,t,n,r){return Bo(e,t,$W(n),r)}const Xx=({current:e})=>e?e.ownerDocument.defaultView:null,hv=(e,t)=>Math.abs(e-t);function jW(e,t){const n=hv(e.x,t.x),r=hv(e.y,t.y);return Math.sqrt(n**2+r**2)}const gv=new Set(["auto","scroll"]);class qx{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=mu(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=jW(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:w}=h,{timestamp:b}=rt;this.history.push({...w,timestamp:b});const{onStart:y,onMove:k}=this.handlers;g||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,h)},this.handlePointerMove=(h,g)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=pu(g,this.transformPagePoint),Fe.update(this.updatePoint,!0)},this.handlePointerUp=(h,g)=>{this.end();const{onEnd:v,onSessionEnd:w,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=mu(h.type==="pointercancel"?this.lastMoveEventInfo:pu(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,y),w&&w(h,y)},!Nf(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const u=Yo(t),l=pu(u,this.transformPagePoint),{point:d}=l,{timestamp:f}=rt;this.history=[{...d,timestamp:f}];const{onSessionStart:m}=n;m&&m(t,mu(l,this.history)),this.removeListeners=Uo(Oo(this.contextWindow,"pointermove",this.handlePointerMove),Oo(this.contextWindow,"pointerup",this.handlePointerUp),Oo(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(gv.has(r.overflowX)||gv.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),Fe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),zn(this.updatePoint)}}function pu(e,t){return t?{point:t(e.point)}:e}function bv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mu({point:e},t){return{point:e,delta:bv(e,Zx(t)),offset:bv(e,OW(t)),velocity:RW(t,.1)}}function OW(e){return e[0]}function Zx(e){return e[e.length-1]}function RW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Zx(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Yt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Yt(t)*2&&(r=e[1]);const i=It(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function MW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?_e(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?_e(n,e,r.max):Math.min(e,n)),e}function vv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function PW(e,{top:t,left:n,bottom:r,right:o}){return{x:vv(e.x,n,o),y:vv(e.y,t,r)}}function yv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function TW(e,t){return{x:yv(e.x,t.x),y:yv(e.y,t.y)}}function AW(e,t){let n=.5;const r=vt(e),o=vt(t);return o>r?n=No(t.min,t.max-r,e.min):r>o&&(n=No(e.min,e.max-o,t.min)),dn(0,1,n)}function IW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yd=.35;function NW(e=yd){return e===!1?e=0:e===!0&&(e=yd),{x:wv(e,"left","right"),y:wv(e,"top","bottom")}}function wv(e,t,n){return{min:xv(e,t),max:xv(e,n)}}function xv(e,t){return typeof e=="number"?e:e[t]||0}const DW=new WeakMap;class VW{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=f=>{n&&this.snapToCursor(Yo(f).point),this.stopAnimation()},a=(f,m)=>{const{drag:h,dragPropagation:g,onDragStart:v}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fB(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(b=>{let y=this.getAxisMotionValue(b).get()||0;if(an.test(y)){const{projection:k}=this.visualElement;if(k&&k.layout){const C=k.layout.layoutBox[b];C&&(y=vt(C)*(parseFloat(y)/100))}}this.originPoint[b]=y}),v&&Fe.update(()=>v(f,m),!1,!0),ud(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:v,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=m;if(g&&this.currentDirection===null){this.currentDirection=BW(b),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",m.point,b),this.updateAxis("y",m.point,b),this.visualElement.render(),w&&Fe.update(()=>w(f,m),!1,!0)},u=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new qx(t,{onSessionStart:i,onStart:a,onMove:c,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Xx(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:c}=this.getProps();c&&Fe.postRender(()=>c(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!vs(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=MW(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&wr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=PW(r.layoutBox,t):this.constraints=!1,this.elastic=NW(n),o!==this.constraints&&!wr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&tn(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=IW(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=HB(r,o.root,this.visualElement.getTransformPagePoint());let a=TW(o.layout.layoutBox,i);if(n){const c=n(VB(a));this.hasMutatedConstraints=!!c,c&&(a=vx(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},l=tn(d=>{if(!vs(d,n,this.currentDirection))return;let f=u&&u[d]||{};a&&(f={min:0,max:0});const m=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(l).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ud(this.visualElement,t),r.start(Mf(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!vs(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-_e(a,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();o[a]=AW({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),tn(a=>{if(!vs(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];c.set(_e(u,l,o[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;DW.set(this.visualElement,this);const t=this.visualElement.current,n=Oo(t,"pointerdown",l=>{const{drag:d,dragListener:f=!0}=this.getProps(),m=l.target,h=m!==t&&vB(m);d&&f&&!h&&this.start(l)});let r;const o=()=>{const{dragConstraints:l}=this.getProps();wr(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),r||(r=FW(t,l.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fe.read(o);const c=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=l[f].translate,m.set(m.get()+l[f].translate))}),this.visualElement.render())}));return()=>{c(),n(),a(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=yd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:c}}}function Cv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function FW(e,t,n){const r=O0(e,Cv(n)),o=O0(t,Cv(n));return()=>{r(),o()}}function vs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HW extends Xn{constructor(t){super(t),this.removeGroupControls=Vt,this.removeListeners=Vt,this.controls=new VW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const hu=e=>(t,n)=>{e&&Fe.update(()=>e(t,n),!1,!0)};class WW extends Xn{constructor(){super(...arguments),this.removePointerDownListener=Vt}onPointerDown(t){this.session=new qx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hu(t),onStart:hu(n),onMove:hu(r),onEnd:(i,a)=>{delete this.session,o&&Fe.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Oo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let gu=!1;class zW extends s.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),gu&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),gu=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Fe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),If.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;gu=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jx(e){const[t,n]=Bx(),r=s.useContext(mf);return p.jsx(zW,{...e,layoutGroup:r,switchLayoutGroup:s.useContext(Gx),isPresent:t,safeToRemove:n})}const _W={pan:{Feature:WW},drag:{Feature:HW,ProjectionNode:Fx,MeasureLayout:Jx}};function kv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Fe.postRender(()=>i(t,Yo(t)))}class UW extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=mB(t,(n,r)=>(kv(this.node,r,"Start"),o=>kv(this.node,o,"End"))))}unmount(){}}class KW extends Xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Uo(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ev(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Fe.postRender(()=>i(t,Yo(t)))}class GW extends Xn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=wB(t,(o,i)=>(Ev(this.node,i,"Start"),(a,{success:c})=>Ev(this.node,a,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const wd=new WeakMap,bu=new WeakMap,YW=e=>{const t=wd.get(e.target);t&&t(e)},XW=e=>{e.forEach(YW)};function qW({root:e,...t}){const n=e||document;bu.has(n)||bu.set(n,{});const r=bu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(XW,{root:e,...t})),r[o]}function ZW(e,t,n){const r=qW(t);return wd.set(e,n),r.observe(e),()=>{wd.delete(e),r.unobserve(e)}}const JW={some:0,all:1};class QW extends Xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:JW[o]},c=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=l?d:f;m&&m(u)};return ZW(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ez(t,n))&&this.startObserver()}unmount(){}}function ez({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tz={inView:{Feature:QW},tap:{Feature:GW},focus:{Feature:KW},hover:{Feature:UW}},nz={layout:{ProjectionNode:Fx,MeasureLayout:Jx}},rz={...SW,...tz,..._W,...nz},oz=xW(rz,CW),sz={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},iz={backgroundColor:"var(--hud-chrome-border, oklch(var(--border)))"},az="bg-popover/95 backdrop-blur-xl border rounded-lg shadow-2xl py-1 min-w-[180px] z-[200] outline-none",cz="flex items-center gap-3 w-full px-3 py-1.5 text-[12px] font-mono text-popover-foreground outline-none select-none data-[highlighted]:bg-accent/10 data-[highlighted]:text-accent data-[selected]:bg-accent/10 data-[selected]:text-accent data-[disabled]:opacity-40 data-[disabled]:pointer-events-none cursor-default text-left border-0 bg-transparent box-border",lz="w-4 h-4 flex items-center justify-center shrink-0 text-muted-foreground",uz="flex-1 min-w-0 truncate",dz="text-muted-foreground text-[10px] ml-4 tracking-wider",fz="px-3 py-1 text-[10px] font-mono uppercase tracking-widest text-muted-foreground",pz="h-px my-1 border-0",mz="z-[200]";function hz(e){return"type"in e&&e.type==="separator"}function gz(e){return"type"in e&&e.type==="group"}function Lv({item:e}){return p.jsxs(TA,{disabled:e.disabled,onClick:e.action,label:e.label,className:cz,children:[e.icon&&p.jsx("span",{className:lz,children:e.icon}),p.jsx("span",{className:uz,children:e.label}),e.shortcut&&p.jsx("span",{className:dz,children:e.shortcut})]})}const Qx=hy.forwardRef(({items:e},t)=>p.jsx(oz.div,{ref:t,initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.1,ease:"easeOut"},children:p.jsx(RD,{className:az,style:sz,"aria-label":"Context menu",children:e.map((n,r)=>hz(n)?p.jsx(aV,{className:pz,style:iz},`sep-${r}`):gz(n)?p.jsxs(MA,{children:[p.jsx(PA,{className:fz,children:n.label}),n.items.map(o=>p.jsx(Lv,{item:o},o.id))]},`grp-${r}`):p.jsx(Lv,{item:n},n.id))})}));Qx.displayName="PopupContent";function bz(e,t){switch(t){case"alt":return e.altKey;case"meta":return e.metaKey;case"ctrl":return e.ctrlKey;default:return e.shiftKey}}function vz({items:e,children:t,nativeMenuModifier:n="alt",activationMode:r="default"}){const o=s.useRef(!1);return e.length===0?p.jsx(p.Fragment,{children:t}):p.jsxs(cV,{children:[p.jsx(lV,{render:p.jsx("div",{style:{display:"contents"},"aria-haspopup":"menu",onKeyDownCapture:i=>{if(i.defaultPrevented||!(i.key==="ContextMenu"||i.shiftKey&&i.key==="F10"))return;i.preventDefault(),i.stopPropagation();const u=(i.target instanceof HTMLElement?i.target:i.currentTarget).getBoundingClientRect(),l=u.left+Math.min(24,Math.max(0,u.width/2)),d=u.top+Math.min(24,Math.max(0,u.height/2));o.current=!0;try{i.currentTarget.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window,clientX:l,clientY:d,button:2}))}finally{o.current=!1}},onContextMenuCapture:i=>{if(o.current)return;const a=bz(i,n);(r==="modifier"?!a:a)&&i.stopPropagation()}}),children:t}),p.jsx(PD,{children:p.jsx(UD,{className:mz,sideOffset:4,children:p.jsx(qH,{children:p.jsx(Qx,{items:e})})})})]})}const Sv=()=>{},yz={x:0,y:0},wz=({children:e,hud:t,mode:n="canvas",panOffset:r=yz,scale:o=1,onPan:i=Sv,onZoom:a=Sv,onPanStart:c,onPanEnd:u,isTransitioning:l=!1,onViewportChange:d,onCanvasClick:f,canvasProps:m,zoomSensitivity:h,zoomControlsRightOffset:g,zoomControlsBottomOffset:v,showZoomControls:w=!0,viewportShiftX:b=0,canvasContextMenuItems:y,canvasContextMenuActivationMode:k})=>{const C=s.useRef(null),x=s.useRef(o);x.current=o;const L=s.useRef(a);L.current=a;const S=s.useRef(i);S.current=i;const E=s.useRef(c);E.current=c;const R=s.useRef(u);R.current=u;const T=s.useRef(h);T.current=h;const[D,I]=s.useState(!1),j=s.useRef(!1),[H,P]=s.useState(!1),A=s.useRef(!1),V=s.useRef({x:0,y:0}),$=s.useRef(M=>{const q=M.target||document.activeElement;if(!q)return!1;const ee=q.tagName;return!!(ee==="INPUT"||ee==="TEXTAREA"||q.isContentEditable||q.closest?.(".xterm"))});s.useEffect(()=>{if(n!=="canvas")return;const M=te=>{te.key!==" "||te.repeat||$.current(te)||l||(te.preventDefault(),j.current=!0,I(!0))},q=te=>{te.key===" "&&j.current&&(j.current=!1,I(!1),A.current&&(A.current=!1,P(!1),R.current?.()))},ee=()=>{j.current&&(j.current=!1,I(!1),A.current&&(A.current=!1,P(!1),R.current?.()))};return window.addEventListener("keydown",M),window.addEventListener("keyup",q),window.addEventListener("blur",ee),()=>{window.removeEventListener("keydown",M),window.removeEventListener("keyup",q),window.removeEventListener("blur",ee)}},[n,l]);const z=s.useCallback(M=>{M.button===0&&(M.preventDefault(),A.current=!0,P(!0),V.current={x:M.clientX,y:M.clientY},E.current?.())},[]);return s.useEffect(()=>{if(!D)return;const M=ee=>{if(!A.current)return;const te=(ee.clientX-V.current.x)/x.current,ae=(ee.clientY-V.current.y)/x.current;V.current={x:ee.clientX,y:ee.clientY},S.current({x:te,y:ae})},q=()=>{A.current&&(A.current=!1,P(!1),R.current?.())};return window.addEventListener("mousemove",M),window.addEventListener("mouseup",q),()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",q)}},[D]),s.useEffect(()=>{if(n!=="canvas")return;const M=q=>{if(q.ctrlKey||q.metaKey){q.preventDefault();const ee=x.current,te=-q.deltaY*.001*(T.current??1),ae=Math.min(Math.max(.2,ee+te),3);x.current=ae,L.current(ae)}};return window.addEventListener("wheel",M,{passive:!1}),()=>window.removeEventListener("wheel",M)},[n]),s.useEffect(()=>{if(!d)return;let M=null;const q=()=>{M&&cancelAnimationFrame(M),M=requestAnimationFrame(()=>{d({width:window.innerWidth,height:window.innerHeight})})};return q(),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q),M&&cancelAnimationFrame(M)}},[d]),n==="panel"?p.jsxs("div",{ref:C,className:"fixed inset-0 bg-background text-foreground overflow-hidden font-sans select-none z-0",children:[p.jsx("div",{className:"absolute inset-0 z-10 overflow-auto frame-scrollbar",children:e}),p.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",style:{zIndex:Tr.zIndex.navigationStack},children:t})]}):p.jsxs("div",{ref:C,className:"fixed inset-0 bg-background text-foreground overflow-hidden font-sans select-none z-0",children:[p.jsx(vz,{items:y??[],activationMode:k,children:p.jsx(O5,{panOffset:r,scale:o,onPan:i,onPanStart:c,onPanEnd:u,isPanLocked:l,onClick:f,showGuides:m?.showGuides,onGuidesChange:m?.onGuidesChange,gridOpacity:m?.gridOpacity})}),p.jsx("div",{className:"absolute z-10 pointer-events-none",style:{left:"50%",top:"50%",zoom:o,transform:b?`translateX(${b}px)`:void 0,transition:"transform 240ms cubic-bezier(0.34, 1.7, 0.64, 1)"},children:p.jsx("div",{style:{position:"absolute",left:r.x,top:r.y},children:e})}),D&&p.jsx("div",{className:`fixed inset-0 z-20 ${H?"cursor-grabbing":"cursor-grab"}`,onMouseDown:z}),w&&p.jsx("div",{className:"absolute z-30 transition-[bottom,right] duration-200",style:{bottom:`calc(${44+(v??0)}px + var(--hud-player-panel-offset, 0px))`,right:16+(g??0)},children:p.jsx(CT,{scale:o,onZoom:M=>a(M)})}),p.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",style:{zIndex:Tr.zIndex.navigationStack},children:t})]})},xd=({side:e,title:t,icon:n,isCollapsed:r=!1,onToggleCollapse:o,headerActions:i,footer:a,style:c,width:u,onResizeStart:l,floating:d=!1,children:f})=>{const m="var(--hud-chrome-border, oklch(var(--border) / 0.8))",{panelTopOffset:h}=qd();if(r){const C=e==="left"?SP:jP;return p.jsx("button",{onClick:o,className:`fixed top-1/2 -translate-y-1/2 z-40 ${e==="left"?"left-3":"right-3"} p-2.5 rounded bg-card/95 border hover:border-accent/60 shadow-[var(--hud-shadow-panel)] hover:shadow-[var(--hud-shadow-panel-hover,var(--hud-shadow-panel))] transition-all duration-200 group pointer-events-auto focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background focus-visible:outline-none`,style:{borderColor:"var(--hud-chrome-border, oklch(var(--border) / 0.8))"},title:`Expand ${t||"panel"}`,children:p.jsx(C,{size:14,className:"text-muted-foreground group-hover:text-accent transition-colors",strokeWidth:1.5})})}const g=e==="left"?LP:$P,b=`bg-card/95 border shadow-[var(--hud-shadow-panel)] fixed z-40 rounded-none border-t-0 overflow-hidden ${e==="left"?"border-l-0 border-r-0":"border-r-0 border-l-0"}`,y=d?{boxShadow:`var(--hud-shadow-panel-float, 0 0 0 1px ${m}, ${e==="left"?"18px":"-18px"} 0 48px -12px rgba(0, 0, 0, 0.55))`,backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)"}:{},k={position:"fixed",top:h,bottom:28,left:e==="left"?0:void 0,right:e==="right"?0:void 0,width:`${u||280}px`,borderColor:m,...y,...c};return p.jsxs("div",{"data-frame-panel":e==="left"?"manifest":"inspector","data-floating":d?"true":void 0,className:`${b} pointer-events-none select-none font-mono text-[11px] flex flex-col`,style:k,children:[l&&p.jsxs("div",{className:`absolute top-0 ${e==="left"?"right-0":"left-0"} bottom-0 w-[7px] cursor-ew-resize z-50 pointer-events-auto group flex items-center justify-center`,onMouseDown:l,children:[p.jsx("div",{className:`absolute top-0 bottom-0 ${e==="left"?"right-0":"left-0"} w-px transition-colors group-hover:bg-accent/30`,style:{backgroundColor:m}}),p.jsxs("div",{className:"flex flex-col gap-[3px] opacity-0 group-hover:opacity-100 transition-opacity",children:[p.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"}),p.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"}),p.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"})]})]}),!l&&p.jsx("div",{className:`absolute top-0 ${e==="left"?"right-0":"left-0"} bottom-0 w-px`,style:{backgroundColor:m}}),p.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-foreground/4 to-transparent z-10"}),p.jsxs("div",{className:"pointer-events-auto flex-1 flex flex-col overflow-hidden",children:[t&&p.jsx("div",{className:"shrink-0 p-4",style:{borderBottom:`1px dashed ${m}`},children:p.jsxs("div",{className:"flex items-center justify-between text-foreground text-[10px]",children:[p.jsxs("div",{className:"flex items-center gap-1.5",children:[n&&p.jsx("span",{className:"text-muted-foreground",children:n}),p.jsx("span",{className:"tracking-[0.18em] font-normal uppercase text-muted-foreground",children:t})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[i,o&&p.jsx("button",{onClick:o,className:"p-1 hover:bg-accent/10 rounded transition-colors text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",title:"Collapse panel",children:p.jsx(g,{size:12})})]})]})}),p.jsx("div",{className:"flex-1 overflow-y-auto frame-scrollbar",children:f}),a&&p.jsx("div",{className:"shrink-0",children:a})]})]})},xz={emerald:{dot:"bg-success",ping:"bg-success",text:"text-success"},amber:{dot:"bg-warning",ping:"bg-warning",text:"text-warning"},red:{dot:"bg-destructive",ping:"bg-destructive",text:"text-destructive"},neutral:{dot:"bg-muted-foreground",ping:"bg-muted-foreground",text:"text-muted-foreground"}},Cz={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},kz=({left:e,viewport:t,right:n,isMinimapCollapsed:r=!1,onExpandMinimap:o,status:i={label:"READY",color:"emerald"},onStatusClick:a,onToggleTerminal:c,isTerminalOpen:u=!1,terminalLabel:l="Console",embedded:d=!1})=>{const[f,m]=s.useState(new Date),[h,g]=s.useState(!1),[v,w]=s.useState(!1);s.useEffect(()=>{w(!0);const S=setInterval(()=>m(new Date),1e3);return()=>clearInterval(S)},[]);const b=xz[i.color],y=i.title??i.label,k=`shrink-0 flex items-center gap-2 ${b.text}`,C=p.jsxs(p.Fragment,{children:[p.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${b.dot}`}),p.jsx("span",{className:"font-light tracking-[0.18em] uppercase text-[9px]",children:i.label})]}),x=async()=>{if(!t)return;const S=`PAN: ${t.pan.x.toFixed(0)},${t.pan.y.toFixed(0)} | SIZE: ${t.canvasSize?.w??1024}x${t.canvasSize?.h??1024} | ZOOM: ${(t.zoom*100).toFixed(0)}%`;try{await navigator.clipboard.writeText(S),g(!0),setTimeout(()=>g(!1),1500)}catch{}},L=d?"relative h-full w-full bg-card/95 backdrop-blur-xl":tE.statusBar;return p.jsxs("div",{"data-frame-panel":"status-bar",className:`${L} h-7 flex items-center justify-between gap-3 px-3 select-none font-mono text-[9px] md:text-[10px] text-foreground pointer-events-auto overflow-hidden`,style:Cz,children:[p.jsxs("div",{className:"min-w-0 flex items-center gap-3 md:gap-4 overflow-hidden",children:[r&&o&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:o,className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded",title:"Expand minimap",children:[p.jsx(xP,{size:10}),p.jsx("span",{className:"text-[9px] font-light tracking-[0.18em] uppercase",children:"Map"})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"})]}),a?p.jsx("button",{type:"button",onClick:a,className:`${k} rounded transition-opacity hover:opacity-85 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,title:y,"aria-label":y,children:C}):p.jsx("div",{className:k,title:i.title,children:C}),e&&p.jsxs(p.Fragment,{children:[p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),e]})]}),t&&p.jsx("div",{className:"hidden lg:flex absolute -translate-x-1/2 items-center gap-3 opacity-70 hover:opacity-100 transition-[left,opacity] duration-200",style:{left:"calc(50% - var(--hud-player-status-inline-offset, 0px))"},children:p.jsxs("button",{onClick:x,className:"flex items-center gap-3 hover:text-foreground transition-colors cursor-pointer focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded",title:"Copy viewport data",children:[p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Pan"}),p.jsxs("span",{className:`tabular-nums ${h?"text-accent":""}`,children:[t.pan.x.toFixed(0),",",t.pan.y.toFixed(0)]})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Size"}),p.jsxs("span",{className:`tabular-nums ${h?"text-accent":""}`,children:[t.canvasSize?.w??1024,"x",t.canvasSize?.h??1024]})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Zoom"}),p.jsxs("span",{className:`tabular-nums ${h?"text-accent":""}`,children:[(t.zoom*100).toFixed(0),"%"]})]})]})}),p.jsxs("div",{className:"shrink-0 flex items-center gap-3 md:gap-4",children:[c&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:c,className:`flex items-center gap-1.5 transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded ${u?"text-accent":"text-muted-foreground hover:text-foreground"}`,title:`Toggle ${l} (Ctrl+\`)`,children:[p.jsxs("span",{className:"text-[10px]",children:[">","_"]}),p.jsx("span",{className:"uppercase text-[9px] font-light tracking-[0.18em]",children:l})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"})]}),n,n&&p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1.5 text-foreground min-w-[60px] justify-end",children:[p.jsx(yP,{size:11,className:"text-muted-foreground"}),p.jsx("span",{children:v?f.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"--:--"})]})]})]})},Ez=({onOpenCommandPalette:e,extraControls:t})=>p.jsx("div",{className:"select-none font-mono text-[11px]",style:{borderTop:"1px dashed var(--hud-chrome-border, oklch(var(--border) / 0.6))"},children:p.jsxs("div",{className:"px-3 py-2 flex items-center justify-between",children:[p.jsxs("button",{onClick:e,className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded",children:[p.jsx(Uy,{size:10}),p.jsx("span",{className:"tracking-[0.18em] font-normal uppercase text-[10px]",children:"Command Palette"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[t,p.jsx("kbd",{className:"text-[10px] text-muted-foreground font-mono",children:"⌘K"})]})]})}),$v={"light-prod":"Lean launch","max-pro":"Max pro","scope-instrument":"Scope"};function Lz(e){const t=A5(e);return t===!0?"on":t===!1?"off":"default"}function Sz(e,t){const n=new Set([t]);for(const r of e)r.requiredTier&&n.add(String(r.requiredTier));return[...n]}function $z({isOpen:e,onClose:t,audienceOptions:n}){const r=P5(),{ref:o,onKeyDown:i}=yy(e),a=Gs(),{activeBundle:c,applyBundle:u,resetBundle:l}=xy(),d=s.useMemo(()=>r?.all()??[],[r]);if(s.useEffect(()=>{if(!e)return;const g=v=>{v.key==="Escape"&&(v.preventDefault(),t())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[e,t]),!e||!r)return null;const f=r.audience(),m=r.layers.local?.audience??"",h=n??Sz(d,f.tier);return p.jsx("div",{className:"scout-flag-backdrop",onClick:t,children:p.jsxs("div",{...o,className:"scout-flag-panel",role:"dialog","aria-modal":"true","aria-labelledby":"scout-flag-title",onKeyDown:i,onClick:g=>g.stopPropagation(),children:[p.jsxs("header",{className:"scout-flag-head",children:[p.jsxs("div",{className:"scout-flag-head-copy",children:[p.jsx("h2",{id:"scout-flag-title",className:"scout-flag-title",children:"Feature flags"}),p.jsxs("p",{className:"scout-flag-subtitle",children:["Audience ",p.jsx("strong",{children:f.tier})," · local overrides apply instantly"]})]}),p.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--icon","aria-label":"Close feature flags",onClick:t,children:p.jsx(Fd,{size:14,strokeWidth:1.8})})]}),p.jsxs("div",{className:"scout-flag-toolbar",children:[p.jsx("label",{className:"scout-flag-toolbar-label",htmlFor:"scout-flag-audience",children:"Local audience"}),p.jsxs("select",{id:"scout-flag-audience",className:"scout-flag-select",value:m,onChange:g=>r.setLocalAudienceOverride(g.target.value||null),children:[p.jsxs("option",{value:"",children:["Default (",f.tier,")"]}),h.map(g=>p.jsx("option",{value:g,children:g},g))]}),a&&p.jsx("div",{className:"scout-flag-bundles",children:Object.keys($v).map(g=>p.jsx("button",{type:"button",className:`chip chip--mono chip--caps chip--sm${c===g?" chip--working":" chip--ghost"}`,onClick:()=>u(g),children:$v[g]},g))})]}),p.jsx("div",{className:"scout-flag-list",children:d.map(g=>{const v=r.layers.local?.flags?.[g.key];return p.jsxs("div",{className:"scout-flag-row",children:[p.jsxs("div",{className:"scout-flag-key",children:[p.jsx("div",{className:"scout-flag-key-name",children:g.key}),p.jsx("div",{className:"scout-flag-key-desc",children:g.definition?.description??g.definition?.label??g.reason})]}),p.jsx("span",{className:`chip chip--mono chip--caps chip--sm ${g.enabled?"chip--success":"chip--neutral"}`,children:g.enabled?"on":"off"}),p.jsx("span",{className:"scout-flag-meta",title:`${g.layer} · ${g.reason}`,children:g.layer}),p.jsxs("select",{className:"scout-flag-select","aria-label":`Override ${g.key}`,value:Lz(v),onChange:w=>{const b=w.target.value;r.setLocalOverride(g.key,b==="default"?null:b==="on")},children:[p.jsx("option",{value:"default",children:"default"}),p.jsx("option",{value:"on",children:"on"}),p.jsx("option",{value:"off",children:"off"})]})]},g.key)})}),p.jsxs("footer",{className:"scout-flag-foot",children:[p.jsxs("span",{className:"scout-flag-count",children:[d.length," flags"]}),p.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--mono",onClick:l,children:"Reset flags"})]})]})})}const jz="3.35 3.35 13.3 13.3";function eC({className:e=""}){return p.jsxs("svg",{viewBox:jz,"aria-hidden":"true",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("polygon",{points:"10,4.3 14.8,7.1 14.8,12.9 10,15.7 5.2,12.9 5.2,7.1",strokeWidth:"1.9",fill:"currentColor",fillOpacity:"0.12"}),p.jsx("polygon",{points:"10,7 12.4,8.4 12.4,10.6 10,12 7.6,10.6 7.6,8.4",strokeWidth:"0.9",fill:"currentColor",fillOpacity:"0.9"})]})}const Oz={"light-prod":"lean","max-pro":"max","scope-instrument":"scope"};function Rz({onOpenPanel:e}){const{activeBundle:t,toggleBundle:n}=xy();return Gs()?p.jsxs("div",{className:"scout-dev-flag",children:[p.jsx("button",{type:"button",className:"chip chip--mono chip--caps chip--sm chip--warning",title:`Experience bundle: ${t}. Click to flip lean/max.`,onClick:n,children:Oz[t]}),p.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--icon",title:"Open feature flags","aria-label":"Open feature flags",onClick:e,children:p.jsx(_5,{size:11,strokeWidth:1.8})})]}):null}const{statusBarHeight:ys}=Tr.layout,jv=120,Ov={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},Mz={backgroundColor:"var(--hud-chrome-border, oklch(var(--border)))"},Pz=({isOpen:e,onClose:t,closeLabel:n="Close console",onToggleMaximize:r,isMaximized:o=!1,height:i=320,onHeightChange:a,title:c,headerActions:u,contentOverlay:l,children:d})=>{const f=s.useRef(!1),m=s.useRef(null),h=s.useCallback(v=>{if(!a)return;v.preventDefault(),f.current=!0;const w=v.clientY,b=i;m.current&&(m.current.style.transition="none");const y=C=>{const x=w-C.clientY,L=window.innerHeight-ys,S=Math.max(jv,Math.min(L,b+x));m.current&&(m.current.style.height=`${S}px`)},k=C=>{f.current=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k),m.current&&(m.current.style.transition="");const x=w-C.clientY,L=window.innerHeight-ys;a(Math.max(jv,Math.min(L,b+x)))};document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},[i,a]),g=o?`calc(100vh - ${ys}px)`:`${i}px`;return p.jsxs("div",{ref:m,"data-hudson-terminal-drawer":"true",className:`
|
|
22
|
-
fixed left-0 right-0 shadow-[0_-2px_12px_rgba(0,0,0,0.16)] flex flex-col border-t text-card-foreground
|
|
23
|
-
bg-card
|
|
24
|
-
${e?"translate-y-0 opacity-100 pointer-events-auto":"translate-y-full opacity-0 pointer-events-none"}
|
|
25
|
-
transition-all duration-300 ease-in-out
|
|
26
|
-
`,style:{bottom:ys,height:g,zIndex:Tr.zIndex.drawer,...Ov},children:[p.jsxs("div",{className:"h-9 bg-card/80 border-b flex items-center justify-between px-3 shrink-0 select-none backdrop-blur-sm",style:Ov,children:[p.jsxs("div",{className:"flex items-center gap-3",children:[c||p.jsxs("div",{className:"flex items-center gap-2 text-accent",children:[p.jsx(RP,{size:14}),p.jsx("span",{className:"text-[10px] font-light tracking-[0.18em] font-mono uppercase",children:"TERMINAL"})]}),u]}),p.jsx("div",{className:"flex-1 flex items-center justify-center h-full cursor-ns-resize text-muted-foreground hover:text-foreground transition-colors group",title:"Drag to Resize",onMouseDown:h,children:p.jsx("div",{className:"w-16 h-1 rounded-full group-hover:bg-muted-foreground transition-colors",style:Mz})}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{onClick:r,className:"p-1.5 rounded hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:o?"Restore":"Maximize",children:o?p.jsx(kP,{size:14}):p.jsx(CP,{size:14})}),p.jsx("button",{onClick:t,className:"p-1.5 rounded hover:bg-destructive/10 text-muted-foreground hover:text-destructive transition-colors",title:n,"aria-label":n,children:p.jsx(MP,{size:14})})]})]}),p.jsx(R5.Provider,{value:M5,children:p.jsxs("div",{"data-hudson-terminal-drawer-content":"true",className:"flex-1 relative overflow-hidden flex flex-col bg-transparent",children:[d,l&&p.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-3 z-30 flex justify-center px-4",children:p.jsx("div",{className:"pointer-events-auto",children:l})})]})})]})},fo={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},Tz={"--tw-ring-color":"color-mix(in srgb, var(--hud-accent, currentColor) 34%, transparent)"},Az=({isOpen:e,onClose:t,commands:n})=>{const[r,o]=s.useState(""),[i,a]=s.useState(0),c=s.useId(),u=`${c}-listbox`,l=s.useRef(null),d=s.useRef(null),f=s.useRef(null),m=n.filter(b=>b.label.toLowerCase().includes(r.toLowerCase()));s.useEffect(()=>{e&&(Dt.logger.info("hudson.command_palette.open",{category:"command",data:{commandCount:n.length}}),l.current?.focus({preventScroll:!0}),o(""),a(0))},[n.length,e]),s.useEffect(()=>{a(0)},[r]),s.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[i]);const h=(b,y)=>{const k=Dt.trace.start("hudson.command.execute",{category:"command",data:{commandId:b.id,surface:"command_palette",source:y,queryLength:r.length,resultCount:m.length}});try{b.action(),k.end(),t()}catch(C){throw k.error(C),C}},g=b=>{if((b.key==="ArrowDown"||b.key==="ArrowUp")&&m.length===0){b.preventDefault();return}b.key==="ArrowDown"?(b.preventDefault(),a(y=>(y+1)%m.length)):b.key==="ArrowUp"?(b.preventDefault(),a(y=>(y-1+m.length)%m.length)):b.key==="Enter"?(b.preventDefault(),m[i]&&h(m[i],"keyboard")):b.key==="Escape"&&t()},v=b=>{if(b.key!=="Tab")return;const y=d.current;if(!y)return;const k=Array.from(y.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(S=>!S.hasAttribute("disabled")&&S.getAttribute("aria-hidden")!=="true");if(k.length===0){b.preventDefault();return}const C=k[0],x=k[k.length-1],L=document.activeElement;b.shiftKey?(L===C||!y.contains(L))&&(b.preventDefault(),x.focus()):L===x&&(b.preventDefault(),C.focus())},w=m[i]?`${c}-option-${i}`:void 0;return e?p.jsx("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-[15vh] bg-background/45 backdrop-blur-[2px] pointer-events-auto",onClick:t,children:p.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":"Command palette",className:"w-[640px] max-w-[90vw] bg-popover border shadow-2xl rounded-lg overflow-hidden flex flex-col animate-in fade-in zoom-in-95 duration-100",style:fo,onClick:b=>b.stopPropagation(),onKeyDown:v,children:[p.jsxs("div",{className:"flex items-center px-4 py-3 border-b gap-3 focus-within:ring-2 focus-within:outline-none",style:{...fo,...Tz},children:[p.jsx(Uy,{className:"text-muted-foreground",size:16,strokeWidth:1.5,"aria-hidden":"true"}),p.jsx("input",{ref:l,className:"flex-1 bg-transparent border-none outline-none text-popover-foreground placeholder:text-muted-foreground font-mono text-[12px] font-normal",style:{boxShadow:"none"},placeholder:"Type a command or search",value:r,onChange:b=>o(b.target.value),onKeyDown:g,role:"combobox","aria-expanded":"true","aria-haspopup":"listbox","aria-controls":u,"aria-activedescendant":w,"aria-autocomplete":"list"}),p.jsx("div",{className:"px-1.5 py-0.5 rounded bg-muted border text-[10px] text-muted-foreground font-mono tracking-[0.12em]",style:fo,"aria-hidden":"true",children:"ESC"})]}),p.jsxs("div",{className:"max-h-[300px] overflow-y-auto py-2 relative",children:[p.jsx("div",{id:u,role:"listbox","aria-label":"Command results",className:"pb-2",children:m.length===0?p.jsx("div",{className:"px-4 py-8 text-center text-muted-foreground text-[11px] font-mono",role:"status",children:"No matching commands"}):m.map((b,y)=>p.jsxs("div",{id:`${c}-option-${y}`,ref:y===i?f:null,role:"option","aria-selected":y===i,className:`px-4 py-2.5 flex items-center gap-3 cursor-pointer transition-colors ${y===i?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-muted/70"}`,onClick:()=>h(b,"pointer"),onMouseEnter:()=>a(y),children:[b.icon&&p.jsx("div",{className:`${y===i?"text-accent":"text-muted-foreground"}`,children:b.icon}),p.jsx("div",{className:"flex-1",children:p.jsx("div",{className:`text-[12px] ${y===i?"text-accent font-medium":"text-foreground/80 font-normal"}`,children:b.label})}),b.shortcut&&p.jsx("div",{className:"text-[10px] font-mono text-muted-foreground bg-muted px-1.5 py-0.5 rounded border tracking-[0.04em]",style:fo,children:b.shortcut}),y===i&&p.jsx(wP,{size:14,className:"text-accent ml-2","aria-hidden":"true"})]},b.id))}),m.length>6&&p.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-popover to-transparent pointer-events-none"})]}),p.jsxs("div",{className:"px-4 py-1.5 bg-card/90 backdrop-blur-sm border-t flex justify-between items-center text-[10px] text-muted-foreground font-mono relative z-10 tracking-[0.18em] uppercase",style:fo,children:[p.jsx("span",{children:"Command Palette"}),p.jsxs("span",{className:"tracking-[0.04em] normal-case",children:[m.length," matches"]})]})]})}):null},tC=s.createContext(null),Iz=s.createContext(null);function Nz({children:e}){const[t,n]=s.useState(null);return p.jsx(tC.Provider,{value:t,children:p.jsx(Iz.Provider,{value:n,children:e})})}function Dz(){return s.useContext(tC)}const de=(...e)=>e,Vz=[{title:"App shell",bindings:[{chords:[tk,nk],label:xo},{chords:[de("⌘","K")],label:"Command palette"},{chords:[de("⌘","["),de("⌘","B")],label:"Toggle sidebar / left panel"},{chords:[de("⌘","]")],label:"Toggle right panel"},{chords:[de("⌘","⇧","]")],label:"Toggle inspector overlay"},{chords:[de("Ctrl","`")],label:"Toggle terminal drawer"},{chords:[de("⌘","J")],label:"Toggle terminal"}]},{title:"Navigation",bindings:ik.map(e=>({chords:[de("g",e.key)],label:e.label}))},{title:"Global",bindings:[{chords:[de("?")],label:"Toggle this help"},{chords:[de("Esc")],label:"Close dialog / clear search"},{chords:[de("Tab"),de("⇧","Tab")],label:"Move focus"},{chords:[de("[")],label:"Focus previous pane"},{chords:[de("]")],label:"Focus next pane"}]},{title:"Lists",bindings:[{chords:[de("↓"),de("j")],label:"Next item"},{chords:[de("↑"),de("k")],label:"Previous item"},{chords:[de("g"),de("Home")],label:"First item"},{chords:[de("G"),de("End")],label:"Last item"},{chords:[de("Enter")],label:"Open / activate"}]},{title:"Search",bindings:[{chords:[de("/")],label:"Focus filter input"},{chords:[de("↓")],label:"From filter → first match"},{chords:[de("Esc")],label:"Clear filter (while focused)"}]},{title:"Composers",bindings:[{chords:[de("Enter"),de("⇧","Enter")],label:"Insert line break"},{chords:[de("⌘","Enter"),de("Ctrl","Enter")],label:"Send message"}]},{title:"Capture routing",bindings:[{chords:[de("Drop")],label:"Drop screenshot/video anywhere"},{chords:[de("⌘","V")],label:"Paste image into route composer"},{chords:[de("Existing chat"),de("New session")],label:"Choose delivery in composer"}]},{title:"Dispatch",bindings:[{chords:[de("↓"),de("j")],label:"Next ledger row"},{chords:[de("↑"),de("k")],label:"Previous ledger row"},{chords:[de("Enter")],label:"Inspect row / open dialogue thread"},{chords:[de("←"),de("→")],label:"Switch dispatch tabs"},{chords:[de("Esc")],label:"Clear inspector selection"}]},{title:"Agent lanes",bindings:[{chords:[de("↓"),de("j")],label:"Next lane"},{chords:[de("↑"),de("k")],label:"Previous lane"},{chords:[de("g"),de("Home")],label:"First lane"},{chords:[de("G"),de("End")],label:"Last lane"},{chords:[de("Enter"),de("i")],label:"Inspect lane"},{chords:[de("p")],label:"Pin / unpin lane"},{chords:[de("1","…","4")],label:"Switch trace window (5m → 24h)"},{chords:[de("o")],label:"Open session (detail sheet)"},{chords:[de("t")],label:"Open traces (detail sheet)"},{chords:[de("Esc")],label:"Close detail sheet"}]},{title:"Tail · Atop",bindings:[{chords:[de("/")],label:"Open filter (Tail)"},{chords:[de("G")],label:"Jump to live (Tail)"},{chords:[de("j"),de("k")],label:"Walk rows (Atop)"}]},{title:"Session scrubber",bindings:[{chords:[de("←"),de("→")],label:"Seek ±1%"},{chords:[de("⇧","←"),de("⇧","→")],label:"Seek ±5%"},{chords:[de("Home"),de("End")],label:"Jump to start / end"}]}];function Fz({open:e,onClose:t}){const{ref:n,onKeyDown:r}=yy(e);return e?p.jsx("div",{className:"kb-help-backdrop",onClick:t,role:"presentation",children:p.jsxs("div",{ref:n,className:"kb-help-panel",role:"dialog","aria-modal":"true","aria-labelledby":"kb-help-title",onClick:o=>o.stopPropagation(),onKeyDown:r,tabIndex:-1,children:[p.jsxs("header",{className:"kb-help-head",children:[p.jsx("h2",{id:"kb-help-title",className:"kb-help-title",children:"Keyboard shortcuts"}),p.jsx("button",{type:"button",className:"kb-help-close",onClick:t,"aria-label":"Close (Esc)",children:"✕"})]}),p.jsx("div",{className:"kb-help-grid",children:Vz.map(o=>p.jsxs("section",{className:"kb-help-group",children:[p.jsx("h3",{className:"kb-help-group-title",children:o.title}),p.jsx("dl",{className:"kb-help-list",children:o.bindings.map((i,a)=>p.jsxs("div",{className:"kb-help-row",children:[p.jsx("dt",{className:"kb-help-keys",children:i.chords.map((c,u)=>p.jsxs("span",{className:"kb-help-chord-wrap",children:[u>0&&p.jsx("span",{className:"kb-help-or",children:"or"}),p.jsx("span",{className:"kb-help-chord",children:c.map((l,d)=>p.jsx("kbd",{className:"kb-help-kbd",children:l},`${l}-${d}`))})]},`${u}-${c.join("+")}`))}),p.jsx("dd",{className:"kb-help-label",children:i.label})]},`${o.title}-${a}`))})]},o.title))}),p.jsxs("footer",{className:"kb-help-foot",children:["Press ",p.jsx("kbd",{className:"kb-help-kbd",children:"?"})," to toggle · ",p.jsx("kbd",{className:"kb-help-kbd",children:"Esc"})," to close"]})]})}):null}function Bz(){const[e,t]=s.useState(!1);return s.useEffect(()=>{const n=r=>{if(r.key==="Escape"&&e){r.preventDefault(),t(!1);return}r.key==="?"&&(wy(r.target)||(r.preventDefault(),t(o=>!o)))};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e]),{open:e,setOpen:t}}const Hz=15e3,Wz=3e4;function zz(){const[e,t]=s.useState([]),[n,r]=s.useState(null),[o,i]=s.useState(null),a=s.useRef(!0),c=s.useRef(null),u=s.useCallback(async()=>{try{const h=await Au("/api/notifications?type=pairing_request");if(!a.current)return!0;const g=h.notifications.map(v=>v.data?.request).filter(v=>v?.status==="pending");return t(g),!0}catch{return!1}},[]);s.useEffect(()=>{a.current=!0;let h=!1;const g=()=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null)},v=y=>{g(),c.current=window.setTimeout(()=>{w()},y)},w=async()=>{if(g(),!lk())return;const y=await u();h||!a.current||v(y?Hz:Wz)};w();const b=ck(()=>{w()});return()=>{h=!0,a.current=!1,g(),b()}},[u]);const l=s.useCallback(async(h,g)=>{r(h),i(null);try{await Au(`/api/pairing/requests/${encodeURIComponent(h)}/decide`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({decision:g})}),t(v=>v.filter(w=>w.token!==h)),u()}catch(v){i(v instanceof Error?v.message:String(v))}finally{r(null)}},[u]);if(e.length===0)return null;const d=e[0],f=d.requesterLabel?.trim()||"A device",m=n===d.token;return p.jsx("div",{className:"scout-pair-prompt",role:"alertdialog","aria-label":"Pairing request",children:p.jsxs("div",{className:"scout-pair-prompt-card",children:[p.jsx("div",{className:"scout-pair-prompt-eyebrow",children:"Pairing request"}),p.jsxs("div",{className:"scout-pair-prompt-title",children:[f," wants to pair"]}),p.jsxs("div",{className:"scout-pair-prompt-detail",children:["On your network",d.requesterIp?` · ${d.requesterIp}`:"",". Allowing trusts this device and starts pair mode."]}),o?p.jsx("div",{className:"scout-pair-prompt-error",children:o}):null,p.jsxs("div",{className:"scout-pair-prompt-actions",children:[p.jsx("button",{type:"button",className:"scout-pair-prompt-btn scout-pair-prompt-deny",disabled:m,onClick:()=>{l(d.token,"deny")},children:"Deny"}),p.jsx("button",{type:"button",className:"scout-pair-prompt-btn scout-pair-prompt-allow",disabled:m,onClick:()=>{l(d.token,"approve")},children:m?"Allowing…":"Allow"})]}),e.length>1?p.jsxs("div",{className:"scout-pair-prompt-more",children:["+",e.length-1," more waiting"]}):null]})})}const nC=200;function _z({onOpen:e}){return p.jsx("button",{type:"button",onClick:e,className:"flex min-w-0 items-center rounded px-1 py-0.5 transition-colors hover:bg-muted/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:"Open activity log","aria-label":"Open activity log",children:p.jsx(JP,{maxEvents:nC,showCounts:!0})})}function Uz({open:e,onClose:t}){return s.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&t()};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t,e]),e?p.jsx("div",{className:"fixed inset-0 z-[70] flex bg-background/88 p-3 text-foreground backdrop-blur-md md:p-5",role:"dialog","aria-modal":"true","aria-label":"Activity log",children:p.jsxs("div",{className:"flex min-h-0 w-full flex-col",children:[p.jsxs("div",{className:"flex h-10 shrink-0 items-center justify-between border border-border border-b-0 bg-card/95 px-3 shadow-[var(--hud-shadow-nav)]",children:[p.jsx("div",{className:"min-w-0 font-mono text-sm font-semibold uppercase tracking-[0.18em] text-foreground",children:"Activity Log"}),p.jsx("button",{type:"button",onClick:t,className:"rounded p-1 text-muted-foreground transition-colors hover:bg-muted/70 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:"Close activity log","aria-label":"Close activity log",children:p.jsx(Fd,{size:14})})]}),p.jsx(QP,{observability:Dt,maxEvents:nC,title:"activity",className:"min-h-0 flex-1 rounded-t-none",emptyMessage:"No activity yet. Connection and status events will appear here."})]})}):null}function Kz({dictationActive:e}){const t=Pr(Cy,!0),{open:n,setOpen:r,state:o}=Y5(),{navigate:i}=Zt(),a=s.useRef(null),[c,u]=s.useState({left:12,bottom:36});if(s.useEffect(()=>()=>r(!1),[r]),s.useEffect(()=>{if(!n)return;const m=h=>{h.key==="Escape"&&(h.preventDefault(),r(!1),a.current?.focus())};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[n,r]),s.useLayoutEffect(()=>{if(!n)return;const m=()=>{const h=a.current;if(!h)return;const g=h.getBoundingClientRect(),v=Math.min(384,window.innerWidth-16);u({left:Math.max(8,Math.min(g.left,window.innerWidth-v-8)),bottom:Math.max(36,window.innerHeight-g.top+8)})};return m(),window.addEventListener("resize",m),window.addEventListener("scroll",m,!0),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m,!0)}},[n]),!t)return null;const d=o==="connecting"||o==="live"?o==="connecting"?"Scoutbot voice is connecting":"Scoutbot voice is live":n?"Hide Scoutbot voice":"Open Scoutbot voice controls",f=typeof document>"u"?null:document.querySelector("[data-scout-theme]")??document.body;return p.jsxs("div",{className:"flex items-center",children:[p.jsxs("button",{ref:a,type:"button",onClick:()=>r(m=>!m),title:d,"aria-label":d,"aria-expanded":n,"aria-controls":"scoutbot-realtime-voice-menu",className:`flex h-[18px] items-center gap-1.5 rounded border px-1.5 font-mono text-2xs uppercase tracking-[0.1em] transition-colors ${o==="live"?"border-lime-300/35 bg-lime-300/[0.08] text-lime-100":o==="connecting"?"border-amber-300/30 bg-amber-300/[0.07] text-amber-100/90":o==="error"?"border-red-400/30 bg-red-400/[0.07] text-red-100":n?"border-[var(--scout-chrome-border-soft)] bg-[var(--scout-chrome-hover)] text-[var(--scout-chrome-ink)]":"border-transparent text-[var(--scout-chrome-ink-faint)] hover:text-[var(--scout-chrome-ink)]"}`,children:[o==="connecting"?p.jsx(uk,{size:10,className:"animate-spin","aria-hidden":"true"}):o==="live"?p.jsxs("span",{className:"relative flex size-1.5 shrink-0","aria-hidden":"true",children:[p.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-lime-300/30"}),p.jsx("span",{className:"relative inline-flex size-1.5 rounded-full bg-lime-300/90"})]}):p.jsx(dk,{size:10,fill:"currentColor","aria-hidden":"true"}),p.jsx("span",{children:o==="live"?"Voice live":o==="connecting"?"Voice connecting":"Voice"})]}),n&&f&&pt.createPortal(p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-[80]","aria-hidden":"true",onMouseDown:()=>r(!1)}),p.jsxs("div",{id:"scoutbot-realtime-voice-menu",className:"fixed z-[81] flex h-[min(31rem,calc(100vh-3rem))] min-h-80 w-[min(24rem,calc(100vw-1rem))] min-w-80 resize flex-col overflow-hidden rounded-xl border border-[color-mix(in_srgb,var(--hud-ink)_13%,transparent)] bg-[color-mix(in_srgb,var(--scout-chrome-bg)_96%,black)] shadow-[0_18px_44px_rgba(0,0,0,0.46)] backdrop-blur-md",style:{left:c.left,bottom:c.bottom},role:"dialog","aria-label":"Scoutbot live voice",onMouseDown:m=>m.stopPropagation(),children:[p.jsx(J5,{state:o,onExpand:()=>{r(!1),i({view:"voice"})}}),p.jsx(Q5,{dictationActive:e})]})]}),f)]})}let Rv=!1;function Gz(){Rv||(Rv=!0,Dt.setEnabled(!0),Dt.logger.info("Scout web shell booted",{category:"shell"}))}function Yz(e,t){const n=s.useRef(null),r=s.useRef(null),o=s.useRef(null);s.useEffect(()=>{if(Gz(),t.status==="offline"||t.status==="degraded"){const i=t.message?.trim()||"Scout web API unreachable";i!==n.current&&(n.current=i,Dt.logger.log(t.status==="offline"?"error":"warn",i,{category:"connection"}))}else n.current=null;if(e.status.color==="red"){const i=e.status.label.trim();i&&i!==r.current&&(r.current=i,Dt.logger.error(i,{category:"status"}))}else r.current=null;if(e.mesh.color==="amber"||e.mesh.color==="red"){const i=`${e.mesh.label}: ${e.mesh.value}`;if(i!==o.current){o.current=i;const a=e.mesh.color==="red"?"error":"warn";Dt.logger.log(a,i,{category:"mesh"})}}else o.current=null},[t.message,t.status,e.mesh,e.status])}function Cd(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Ro={};function Ui(e,t,n,r,o){let i={...kd(e,Ro)};return t&&(i=rC(i,t)),i}function Xz(e){if(e.length===0)return Ro;if(e.length===1)return kd(e[0],Ro);let t={...kd(e[0],Ro)};for(let n=1;n<e.length;n+=1)t=rC(t,e[n]);return t}function rC(e,t){return oC(t)?t(e):qz(e,t)}function qz(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Cd(e.style,r);break}case"className":{e[n]=sC(e.className,r);break}default:Zz(n,r)?e[n]=Jz(e[n],r):e[n]=r}}return e}function Zz(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function oC(e){return typeof e=="function"}function kd(e,t){return oC(e)?e(t):e??Ro}function Jz(e,t){return t?e?n=>{if(e_(n)){const o=n;Qz(o);const i=t(o);return o.baseUIHandlerPrevented||e?.(o),i}const r=t(n);return e?.(n),r}:t:e}function Qz(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function sC(e,t){return t?e?t+" "+e:t:e}function e_(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Yr(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const Mv={};function Ln(e,t){const n=s.useRef(Mv);return n.current===Mv&&(n.current=e(t)),n}function Pv(e,t,n,r){const o=Ln(iC).current;return n_(o,e,t,n,r)&&aC(o,[e,t,n,r]),o.callback}function t_(e){const t=Ln(iC).current;return r_(t,e)&&aC(t,e),t.callback}function iC(){return{callback:null,cleanup:null,refs:[]}}function n_(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function r_(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function aC(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(r[o]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=r[o];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}const o_=parseInt(s.version,10);function cC(e){return o_>=e}function Tv(e){if(!s.isValidElement(e))return null;const t=e,n=t.props;return(cC(19)?n?.ref:t.ref)??null}function s_(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function i_(e,t){return typeof e=="function"?e(t):e}function a_(e,t){return typeof e=="function"?e(t):e}function c_(){}const Ot=Object.freeze({}),l_={style:{transition:"none"}},u_={fallbackAxisSide:"end"};function Xo(e,t,n={}){const r=t.render,o=d_(t,n);if(n.enabled===!1)return null;const i=n.state??Ot;return f_(e,r,o,i)}function d_(e,t={}){const{className:n,style:r,render:o}=e,{state:i=Ot,ref:a,props:c,stateAttributesMapping:u,enabled:l=!0}=t,d=l?i_(n,i):void 0,f=l?a_(r,i):void 0,m=l?s_(i,u):Ot,h=l?Cd(m,Array.isArray(c)?Xz(c):c)??Ot:Ot;return typeof document<"u"&&(l?Array.isArray(a)?h.ref=t_([h.ref,Tv(o),...a]):h.ref=Pv(h.ref,Tv(o),a):Pv(null,null)),l?(d!==void 0&&(h.className=sC(h.className,d)),f!==void 0&&(h.style=Cd(h.style,f)),h):Ot}function f_(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Ui(n,t.props);return o.ref=n.ref,s.cloneElement(t,o)}if(e&&typeof e=="string")return p_(e,n);throw new Error(Yr(8))}function p_(e,t){return e==="button"?s.createElement("button",{type:"button",...t,key:t.key}):e==="img"?s.createElement("img",{alt:"",...t,key:t.key}):s.createElement(e,t)}function Uf(e){return Xo(e.defaultTagName??"div",e,e)}function lC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=lC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function uC(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lC(e))&&(r&&(r+=" "),r+=t);return r}const Av=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Iv=uC,m_=(e,t)=>n=>{var r;if(t?.variants==null)return Iv(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(l=>{const d=n?.[l],f=i?.[l];if(d===null)return null;const m=Av(d)||Av(f);return o[l][m]}),c=n&&Object.entries(n).reduce((l,d)=>{let[f,m]=d;return m===void 0||(l[f]=m),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(g=>{let[v,w]=g;return Array.isArray(w)?w.includes({...i,...c}[v]):{...i,...c}[v]===w})?[...l,f,m]:l},[]);return Iv(e,a,u,n?.class,n?.className)},h_=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},g_=(e,t)=>({classGroupId:e,validator:t}),dC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vi="-",Nv=[],b_="arbitrary..",v_=e=>{const t=w_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return y_(a);const c=a.split(vi),u=c[0]===""&&c.length>1?1:0;return fC(c,u,t)},getConflictingClassGroupIds:(a,c)=>{if(c){const u=r[a],l=n[a];return u?l?h_(l,u):u:l||Nv}return n[a]||Nv}}},fC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const l=fC(e,t+1,i);if(l)return l}const a=n.validators;if(a===null)return;const c=t===0?e.join(vi):e.slice(t).join(vi),u=a.length;for(let l=0;l<u;l++){const d=a[l];if(d.validator(c))return d.classGroupId}},y_=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?b_+r:void 0})(),w_=e=>{const{theme:t,classGroups:n}=e;return x_(n,t)},x_=(e,t)=>{const n=dC();for(const r in e){const o=e[r];Kf(o,n,r,t)}return n},Kf=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];C_(a,t,n,r)}},C_=(e,t,n,r)=>{if(typeof e=="string"){k_(e,t,n);return}if(typeof e=="function"){E_(e,t,n,r);return}L_(e,t,n,r)},k_=(e,t,n)=>{const r=e===""?t:pC(t,e);r.classGroupId=n},E_=(e,t,n,r)=>{if(S_(e)){Kf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(g_(n,e))},L_=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[c,u]=o[a];Kf(u,pC(t,c),n,r)}},pC=(e,t)=>{let n=e;const r=t.split(vi),o=r.length;for(let i=0;i<o;i++){const a=r[i];let c=n.nextPart.get(a);c||(c=dC(),n.nextPart.set(a,c)),n=c}return n},S_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,$_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},Ed="!",Dv=":",j_=[],Vv=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),O_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,c=0,u=0,l;const d=o.length;for(let v=0;v<d;v++){const w=o[v];if(a===0&&c===0){if(w===Dv){i.push(o.slice(u,v)),u=v+1;continue}if(w==="/"){l=v;continue}}w==="["?a++:w==="]"?a--:w==="("?c++:w===")"&&c--}const f=i.length===0?o:o.slice(u);let m=f,h=!1;f.endsWith(Ed)?(m=f.slice(0,-1),h=!0):f.startsWith(Ed)&&(m=f.slice(1),h=!0);const g=l&&l>u?l-u:void 0;return Vv(i,h,m,g)};if(t){const o=t+Dv,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):Vv(j_,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},R_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],c=a[0]==="[",u=t.has(a);c||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},M_=e=>({cache:$_(e.cacheSize),parseClassName:O_(e),sortModifiers:R_(e),postfixLookupClassGroupIds:P_(e),...v_(e)}),P_=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},T_=/\s+/,A_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,c=[],u=e.trim().split(T_);let l="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:m,modifiers:h,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:w}=n(f);if(m){l=f+(l.length>0?" "+l:l);continue}let b=!!w,y;if(b){const S=v.substring(0,w);y=r(S);const E=y&&a[y]?r(v):void 0;E&&E!==y&&(y=E,b=!1)}else y=r(v);if(!y){if(!b){l=f+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=f+(l.length>0?" "+l:l);continue}b=!1}const k=h.length===0?"":h.length===1?h[0]:i(h).join(":"),C=g?k+Ed:k,x=C+y;if(c.indexOf(x)>-1)continue;c.push(x);const L=o(y,b);for(let S=0;S<L.length;++S){const E=L[S];c.push(C+E)}l=f+(l.length>0?" "+l:l)}return l},I_=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=mC(n))&&(o&&(o+=" "),o+=r);return o},mC=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=mC(e[r]))&&(n&&(n+=" "),n+=t);return n},N_=(e,...t)=>{let n,r,o,i;const a=u=>{const l=t.reduce((d,f)=>f(d),e());return n=M_(l),r=n.cache.get,o=n.cache.set,i=c,c(u)},c=u=>{const l=r(u);if(l)return l;const d=A_(u,n);return o(u,d),d};return i=a,(...u)=>i(I_(...u))},D_=[],Qe=e=>{const t=n=>n[e]||D_;return t.isThemeGetter=!0,t},hC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,V_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,F_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,H_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,W_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>V_.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),en=e=>!!e&&Number.isInteger(Number(e)),vu=e=>e.endsWith("%")&&Le(e.slice(0,-1)),bn=e=>F_.test(e),bC=()=>!0,__=e=>B_.test(e)&&!H_.test(e),Gf=()=>!1,U_=e=>W_.test(e),K_=e=>z_.test(e),G_=e=>!fe(e)&&!pe(e),Y_=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),X_=e=>qn(e,wC,Gf),fe=e=>hC.test(e),nr=e=>qn(e,xC,__),Fv=e=>qn(e,rU,Le),q_=e=>qn(e,kC,bC),Z_=e=>qn(e,CC,Gf),Bv=e=>qn(e,vC,Gf),J_=e=>qn(e,yC,K_),ws=e=>qn(e,EC,U_),pe=e=>gC.test(e),po=e=>br(e,xC),Q_=e=>br(e,CC),Hv=e=>br(e,vC),eU=e=>br(e,wC),tU=e=>br(e,yC),xs=e=>br(e,EC,!0),nU=e=>br(e,kC,!0),qn=(e,t,n)=>{const r=hC.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},br=(e,t,n=!1)=>{const r=gC.exec(e);return r?r[1]?t(r[1]):n:!1},vC=e=>e==="position"||e==="percentage",yC=e=>e==="image"||e==="url",wC=e=>e==="length"||e==="size"||e==="bg-size",xC=e=>e==="length",rU=e=>e==="number",CC=e=>e==="family-name",kC=e=>e==="number"||e==="weight",EC=e=>e==="shadow",oU=()=>{const e=Qe("color"),t=Qe("font"),n=Qe("text"),r=Qe("font-weight"),o=Qe("tracking"),i=Qe("leading"),a=Qe("breakpoint"),c=Qe("container"),u=Qe("spacing"),l=Qe("radius"),d=Qe("shadow"),f=Qe("inset-shadow"),m=Qe("text-shadow"),h=Qe("drop-shadow"),g=Qe("blur"),v=Qe("perspective"),w=Qe("aspect"),b=Qe("ease"),y=Qe("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...C(),pe,fe],L=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],E=()=>[pe,fe,u],R=()=>[Rn,"full","auto",...E()],T=()=>[en,"none","subgrid",pe,fe],D=()=>["auto",{span:["full",en,pe,fe]},en,pe,fe],I=()=>[en,"auto",pe,fe],j=()=>["auto","min","max","fr",pe,fe],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...E()],V=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],$=()=>[Rn,"screen","full","dvw","lvw","svw","min","max","fit",...E()],z=()=>[Rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],M=()=>[e,pe,fe],q=()=>[...C(),Hv,Bv,{position:[pe,fe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",eU,X_,{size:[pe,fe]}],ae=()=>[vu,po,nr],le=()=>["","none","full",l,pe,fe],ne=()=>["",Le,po,nr],re=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Le,vu,Hv,Bv],ue=()=>["","none",g,pe,fe],O=()=>["none",Le,pe,fe],X=()=>["none",Le,pe,fe],F=()=>[Le,pe,fe],ge=()=>[Rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bn],breakpoint:[bn],color:[bC],container:[bn],"drop-shadow":[bn],ease:["in","out","in-out"],font:[G_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bn],shadow:[bn],spacing:["px",Le],text:[bn],"text-shadow":[bn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,fe,pe,w]}],container:["container"],"container-type":[{"@container":["","normal","size",pe,fe]}],"container-named":[Y_],columns:[{columns:[Le,fe,pe,c]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[en,"auto",pe,fe]}],basis:[{basis:[Rn,"full","auto",c,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Rn,"auto","initial","none",fe]}],grow:[{grow:["",Le,pe,fe]}],shrink:[{shrink:["",Le,pe,fe]}],order:[{order:[en,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[c,"screen",...V()]}],"min-w":[{"min-w":[c,"screen","none",...V()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,po,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,nU,q_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vu,fe]}],"font-family":[{font:[Q_,Z_,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,fe]}],"line-clamp":[{"line-clamp":[Le,"none",pe,Fv]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",pe,nr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Le,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[en,pe,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},en,pe,fe],radial:["",pe,fe],conic:[en,pe,fe]},tU,J_]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,pe,fe]}],"outline-w":[{outline:["",Le,po,nr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,xs,ws]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,xs,ws]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Le,nr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",m,xs,ws]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Le,pe,fe]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:ue()}],brightness:[{brightness:[Le,pe,fe]}],contrast:[{contrast:[Le,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",h,xs,ws]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Le,pe,fe]}],"hue-rotate":[{"hue-rotate":[Le,pe,fe]}],invert:[{invert:["",Le,pe,fe]}],saturate:[{saturate:[Le,pe,fe]}],sepia:[{sepia:["",Le,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Le,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Le,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",pe,fe]}],ease:[{ease:["linear","initial",b,pe,fe]}],delay:[{delay:[Le,pe,fe]}],animate:[{animate:["none",y,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,pe,fe]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:O()}],"rotate-x":[{"rotate-x":O()}],"rotate-y":[{"rotate-y":O()}],"rotate-z":[{"rotate-z":O()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],zoom:[{zoom:[en,pe,fe]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,fe]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Le,po,nr,Fv]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sU=N_(oU);function Ge(...e){return sU(uC(e))}function Ki(){return typeof window<"u"}function Xr(e){return Yf(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pn(e){var t;return(t=(Yf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yf(e){return Ki()?e instanceof Node||e instanceof ft(e).Node:!1}function Te(e){return Ki()?e instanceof Element||e instanceof ft(e).Element:!1}function Tt(e){return Ki()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function Ld(e){return!Ki()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function qo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function iU(e){return/^(table|td|th)$/.test(Xr(e))}function Gi(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const aU=/transform|translate|scale|rotate|perspective|filter/,cU=/paint|layout|strict|content/,rr=e=>!!e&&e!=="none";let yu;function Xf(e){const t=Te(e)?Pt(e):e;return rr(t.transform)||rr(t.translate)||rr(t.scale)||rr(t.rotate)||rr(t.perspective)||!Yi()&&(rr(t.backdropFilter)||rr(t.filter))||aU.test(t.willChange||"")||cU.test(t.contain||"")}function lU(e){let t=kn(e);for(;Tt(t)&&!wn(t);){if(Xf(t))return t;if(Gi(t))return null;t=kn(t)}return null}function Yi(){return yu==null&&(yu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yu}function wn(e){return/^(html|body|#document)$/.test(Xr(e))}function Pt(e){return ft(e).getComputedStyle(e)}function Xi(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kn(e){if(Xr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ld(e)&&e.host||pn(e);return Ld(t)?t.host:t}function LC(e){const t=kn(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&qo(t)?t:LC(t)}function Bn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=LC(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ft(o);if(i){const c=Sd(a);return t.concat(a,a.visualViewport||[],qo(o)?o:[],c&&n?Bn(c):[])}else return t.concat(o,Bn(o,[],n))}function Sd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const wu=Si[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],uU=wu&&wu!==s.useLayoutEffect?wu:e=>e();function je(e){const t=Ln(dU).current;return t.next=e,uU(t.effect),t.trampoline}function dU(){const e={next:void 0,callback:fU,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function fU(){}const pU=()=>{},De=typeof document<"u"?s.useLayoutEffect:pU,SC=s.createContext(void 0);function qi(e){const t=s.useContext(SC);if(t===void 0&&!e)throw new Error(Yr(72));return t}const mU=[];function $C(e){s.useEffect(e,mU)}const mo=0;class qr{static create(){return new qr}currentId=mo;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=mo,n()},t)}isStarted(){return this.currentId!==mo}clear=()=>{this.currentId!==mo&&(clearTimeout(this.currentId),this.currentId=mo)};disposeEffect=()=>this.clear}function Fr(){const e=Ln(qr.create).current;return $C(e.disposeEffect),e}function ur(e){const t=Ln(hU,e).current;return t.next=e,De(t.effect),t}function hU(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Zo=typeof navigator<"u",xu=xU(),gU=kU(),bU=CU();typeof CSS>"u"||!CSS.supports||CSS.supports("-webkit-backdrop-filter:none");xu.platform==="MacIntel"&&xu.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(xu.platform);const vU=Zo&&/apple/i.test(navigator.vendor),yU=Zo&&gU.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,wU=bU.includes("jsdom/");function xU(){if(!Zo)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function CU(){if(!Zo)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function kU(){if(!Zo)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const EU="data-base-ui-focusable",jC="active",OC="selected",RC="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Wv(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function gt(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ld(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function nn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ut(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function LU(e){return e.matches("html,body")}function pr(e){return e?.ownerDocument||document}function SU(e){return Tt(e)&&e.matches(RC)}function $U(e){if(!e||wU)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Mo(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...Mo(e,o.id,n)])}function jU(e){return"nativeEvent"in e}function Ho(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function OU(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const RU=["top","right","bottom","left"],Br=Math.min,jt=Math.max,Hr=Math.round,Cs=Math.floor,cn=e=>({x:e,y:e}),MU={left:"right",right:"left",bottom:"top",top:"bottom"};function $d(e,t,n){return jt(e,Br(t,n))}function En(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function Zn(e){return e.split("-")[1]}function qf(e){return e==="x"?"y":"x"}function Zf(e){return e==="y"?"height":"width"}function Nt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Jf(e){return qf(Nt(e))}function PU(e,t,n){n===void 0&&(n=!1);const r=Zn(e),o=Jf(e),i=Zf(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=yi(a)),[a,yi(a)]}function TU(e){const t=yi(e);return[jd(e),t,jd(t)]}function jd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zv=["left","right"],_v=["right","left"],AU=["top","bottom"],IU=["bottom","top"];function NU(e,t,n){switch(e){case"top":case"bottom":return n?t?_v:zv:t?zv:_v;case"left":case"right":return t?AU:IU;default:return[]}}function DU(e,t,n,r){const o=Zn(e);let i=NU(Et(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(jd)))),i}function yi(e){const t=Et(e);return MU[t]+e.slice(t.length)}function VU(e){return{top:0,right:0,bottom:0,left:0,...e}}function MC(e){return typeof e!="number"?VU(e):{top:e,right:e,bottom:e,left:e}}function wi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const FU={...Si};let Uv=0;function BU(e,t="mui"){const[n,r]=s.useState(e),o=e||n;return s.useEffect(()=>{n==null&&(Uv+=1,r(`${t}-${Uv}`))},[n,t]),o}const Kv=FU.useId;function Zi(e,t){if(Kv!==void 0){const n=Kv();return e??(t?`${t}-${n}`:n)}return BU(e,t)}function HU(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const WU=s.createContext(null),zU=s.createContext(null),Qf=()=>s.useContext(WU)?.id||null,Ji=e=>{const t=s.useContext(zU);return e??t},ep="none",xi="trigger-press",yn="trigger-hover",Od="trigger-focus",_U="outside-press",tp="escape-key",UU="disabled",KU="imperative-action";function it(e,t,n,r){let o=!1,i=!1;const a=Ot;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...a}}function Qi(e){return`data-base-ui-${e}`}function Ws(e,t,n){if(n&&!Ho(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const PC=s.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qr,currentIdRef:{current:null},currentContextRef:{current:null}});function GU(e){const{children:t,delay:n,timeoutMs:r=0}=e,o=s.useRef(n),i=s.useRef(n),a=s.useRef(null),c=s.useRef(null),u=Fr();return p.jsx(PC.Provider,{value:s.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:i,currentIdRef:a,timeoutMs:r,currentContextRef:c,timeout:u}),[r,u]),children:t})}function YU(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:o=!0,open:i}=t,a=s.useContext(PC),{currentIdRef:c,delayRef:u,timeoutMs:l,initialDelayRef:d,currentContextRef:f,hasProvider:m,timeout:h}=a,[g,v]=s.useState(!1);return De(()=>{function w(){v(!1),f.current?.setIsInstantPhase(!1),c.current=null,f.current=null,u.current=d.current}if(o&&c.current&&!i&&c.current===r){if(v(!1),l)return h.start(l,w),()=>{h.clear()};w()}},[o,i,r,c,u,l,d,f,h]),De(()=>{if(!o||!i)return;const w=f.current,b=c.current;f.current={onOpenChange:n.setOpen,setIsInstantPhase:v},c.current=r,u.current={open:0,close:Ws(d.current,"close")},b!==null&&b!==r?(h.clear(),v(!0),w?.setIsInstantPhase(!0),w?.onOpenChange(!1,it(ep))):(v(!1),w?.setIsInstantPhase(!1))},[o,i,r,n,c,u,l,d,f,h]),De(()=>()=>{f.current=null},[f]),s.useMemo(()=>({hasProvider:m,delayRef:u,isInstantPhase:g}),[m,u,g])}const ks=null;class XU{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Es=new XU;class vn{static create(){return new vn}static request(t){return Es.request(t)}static cancel(t){return Es.cancel(t)}currentId=ks;request(t){this.cancel(),this.currentId=Es.request(()=>{this.currentId=ks,t()})}cancel=()=>{this.currentId!==ks&&(Es.cancel(this.currentId),this.currentId=ks)};disposeEffect=()=>this.cancel}function TC(){const e=Ln(vn.create).current;return $C(e.disposeEffect),e}function AC(e){return e?.ownerDocument||document}const qU=s.createContext(null),ZU=()=>s.useContext(qU),JU=Qi("portal");function QU(e={}){const{ref:t,container:n,componentProps:r=Ot,elementProps:o,elementState:i}=e,a=Zi(),u=ZU()?.portalNode,[l,d]=s.useState(null),[f,m]=s.useState(null),h=s.useRef(null);De(()=>{if(n===null){h.current&&(h.current=null,m(null),d(null));return}if(a==null)return;const w=(n&&(Yf(n)?n:n.current))??u??document.body;if(w==null){h.current&&(h.current=null,m(null),d(null));return}h.current!==w&&(h.current=w,m(null),d(w))},[n,u,a]);const g=Xo("div",r,{ref:[t,m],state:i,props:[{id:a,[JU]:""},o]});return{portalNode:f,portalSubtree:l&&g?pt.createPortal(g,l):null}}function eK(e){return e==null?e:"current"in e?e.current:e}function tK(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){const i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},a=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let l=i.width,d=i.height,f=i.x,m=i.y;return n==null&&t.x&&a&&(n=i.x-t.x),r==null&&t.y&&c&&(r=i.y-t.y),f-=n||0,m-=r||0,l=0,d=0,!o||u?(l=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,f=a&&t.x!=null?t.x:f,m=c&&t.y!=null?t.y:m):o&&!u&&(d=t.axis==="x"?i.height:d,l=t.axis==="y"?i.width:l),o=!0,{width:l,height:d,x:f,y:m,top:m,right:f+l,bottom:m+d,left:f}}}}function Gv(e){return e!=null&&e.clientX!=null}function nK(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),a=n.context.dataRef,{enabled:c=!0,axis:u="both",x:l=null,y:d=null}=t,f=s.useRef(!1),m=s.useRef(null),[h,g]=s.useState(),[v,w]=s.useState([]),b=je((L,S)=>{f.current||a.current.openEvent&&!Gv(a.current.openEvent)||n.set("positionReference",tK(i,{x:L,y:S,axis:u,dataRef:a,pointerType:h}))}),y=je(L=>{l!=null||d!=null||(r?m.current||w([]):b(L.clientX,L.clientY))}),k=Ho(h)?o:r,C=s.useCallback(()=>{if(!k||!c||l!=null||d!=null)return;const L=ft(o);function S(E){const R=nn(E);gt(o,R)?(L.removeEventListener("mousemove",S),m.current=null):b(E.clientX,E.clientY)}if(!a.current.openEvent||Gv(a.current.openEvent)){L.addEventListener("mousemove",S);const E=()=>{L.removeEventListener("mousemove",S),m.current=null};return m.current=E,E}n.set("positionReference",i)},[k,c,l,d,o,a,i,n,b]);s.useEffect(()=>C(),[C,v]),s.useEffect(()=>{c&&!o&&(f.current=!1)},[c,o]),s.useEffect(()=>{!c&&r&&(f.current=!0)},[c,r]),De(()=>{c&&(l!=null||d!=null)&&(f.current=!1,b(l,d))},[c,l,d,b]);const x=s.useMemo(()=>{function L(S){g(S.pointerType)}return{onPointerDown:L,onPointerEnter:L,onMouseMove:y,onMouseEnter:y}},[y]);return s.useMemo(()=>c?{reference:x}:{},[c,x])}function Yv(e,t,n){let{reference:r,floating:o}=e;const i=Nt(t),a=Jf(t),c=Zf(a),u=Et(t),l=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(u){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Zn(t)){case"start":h[a]-=m*(n&&l?-1:1);break;case"end":h[a]+=m*(n&&l?-1:1);break}return h}async function rK(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=En(t,e),g=MC(h),w=c[m?f==="floating"?"reference":"floating":f],b=wi(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),C=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},x=wi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:k,strategy:u}):y);return{top:(b.top-x.top+g.top)/C.y,bottom:(x.bottom-b.bottom+g.bottom)/C.y,left:(b.left-x.left+g.left)/C.x,right:(x.right-b.right+g.right)/C.x}}const oK=50,sK=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=a.detectOverflow?a:{...a,detectOverflow:rK},u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Yv(l,r,u),m=r,h=0;const g={};for(let v=0;v<i.length;v++){const w=i[v];if(!w)continue;const{name:b,fn:y}=w,{x:k,y:C,data:x,reset:L}=await y({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:l,platform:c,elements:{reference:e,floating:t}});d=k??d,f=C??f,g[b]={...g[b],...x},L&&h<oK&&(h++,typeof L=="object"&&(L.placement&&(m=L.placement),L.rects&&(l=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),{x:d,y:f}=Yv(l,m,u)),v=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:g}},iK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=En(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Et(o),y=Nt(c),k=Et(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),x=m||(k||!v?[yi(c)]:TU(c)),L=g!=="none";!m&&L&&x.push(...DU(c,v,g,C));const S=[c,...x],E=await u.detectOverflow(t,w),R=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(E[b]),f){const H=PU(o,a,C);R.push(E[H[0]],E[H[1]])}if(T=[...T,{placement:o,overflows:R}],!R.every(H=>H<=0)){var D,I;const H=(((D=i.flip)==null?void 0:D.index)||0)+1,P=S[H];if(P&&(!(f==="alignment"?y!==Nt(P):!1)||T.every($=>Nt($.placement)===y?$.overflows[0]>0:!0)))return{data:{index:H,overflows:T},reset:{placement:P}};let A=(I=T.filter(V=>V.overflows[0]<=0).sort((V,$)=>V.overflows[1]-$.overflows[1])[0])==null?void 0:I.placement;if(!A)switch(h){case"bestFit":{var j;const V=(j=T.filter($=>{if(L){const z=Nt($.placement);return z===y||z==="y"}return!0}).map($=>[$.placement,$.overflows.filter(z=>z>0).reduce((z,M)=>z+M,0)]).sort(($,z)=>$[1]-z[1])[0])==null?void 0:j[0];V&&(A=V);break}case"initialPlacement":A=c;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Xv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qv(e){return RU.some(t=>e[t]>=0)}const aK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=En(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=Xv(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:qv(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),c=Xv(a,n.floating);return{data:{escapedOffsets:c,escaped:qv(c)}}}default:return{}}}}},IC=new Set(["left","top"]);async function cK(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Et(n),c=Zn(n),u=Nt(n)==="y",l=IC.has(a)?-1:1,d=i&&u?-1:1,f=En(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),u?{x:h*d,y:m*l}:{x:m*l,y:h*d}}const lK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,u=await cK(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},uK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:b=>{let{x:y,y:k}=b;return{x:y,y:k}}},...l}=En(e,t),d={x:n,y:r},f=await i.detectOverflow(t,l),m=Nt(Et(o)),h=qf(m);let g=d[h],v=d[m];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",k=g+f[b],C=g-f[y];g=$d(k,g,C)}if(c){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",k=v+f[b],C=v-f[y];v=$d(k,v,C)}const w=u.fn({...t,[h]:g,[m]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:a,[m]:c}}}}}},dK=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=En(e,t),d={x:n,y:r},f=Nt(o),m=qf(f);let h=d[m],g=d[f];const v=En(c,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const k=m==="y"?"height":"width",C=i.reference[m]-i.floating[k]+w.mainAxis,x=i.reference[m]+i.reference[k]-w.mainAxis;h<C?h=C:h>x&&(h=x)}if(l){var b,y;const k=m==="y"?"width":"height",C=IC.has(Et(o)),x=i.reference[f]-i.floating[k]+(C&&((b=a.offset)==null?void 0:b[f])||0)+(C?0:w.crossAxis),L=i.reference[f]+i.reference[k]+(C?0:((y=a.offset)==null?void 0:y[f])||0)-(C?w.crossAxis:0);g<x?g=x:g>L&&(g=L)}return{[m]:h,[f]:g}}}},fK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:c}=t,{apply:u=()=>{},...l}=En(e,t),d=await a.detectOverflow(t,l),f=Et(o),m=Zn(o),h=Nt(o)==="y",{width:g,height:v}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=f,w=m==="end"?"top":"bottom");const y=v-d.top-d.bottom,k=g-d.left-d.right,C=Br(v-d[w],y),x=Br(g-d[b],k),L=!t.middlewareData.shift;let S=C,E=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=y),L&&!m){const T=jt(d.left,0),D=jt(d.right,0),I=jt(d.top,0),j=jt(d.bottom,0);h?E=g-2*(T!==0||D!==0?T+D:jt(d.left,d.right)):S=v-2*(I!==0||j!==0?I+j:jt(d.top,d.bottom))}await u({...t,availableWidth:E,availableHeight:S});const R=await a.getDimensions(c.floating);return g!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function NC(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Tt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Hr(n)!==i||Hr(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function np(e){return Te(e)?e:e.contextElement}function Mr(e){const t=np(e);if(!Tt(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=NC(t);let a=(i?Hr(n.width):n.width)/r,c=(i?Hr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const pK=cn(0);function DC(e){const t=ft(e);return!Yi()||!t.visualViewport?pK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ft(e)?!1:t}function mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=np(e);let a=cn(1);t&&(r?Te(r)&&(a=Mr(r)):a=Mr(e));const c=mK(i,n,r)?DC(i):cn(0);let u=(o.left+c.x)/a.x,l=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const m=ft(i),h=r&&Te(r)?ft(r):r;let g=m,v=Sd(g);for(;v&&r&&h!==g;){const w=Mr(v),b=v.getBoundingClientRect(),y=Pt(v),k=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,C=b.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;u*=w.x,l*=w.y,d*=w.x,f*=w.y,u+=k,l+=C,g=ft(v),v=Sd(g)}}return wi({width:d,height:f,x:u,y:l})}function ea(e,t){const n=Xi(e).scrollLeft;return t?t.left+n:mr(pn(e)).left+n}function VC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ea(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function hK(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=pn(r),c=t?Gi(t.floating):!1;if(r===a||c&&i)return n;let u={scrollLeft:0,scrollTop:0},l=cn(1);const d=cn(0),f=Tt(r);if((f||!f&&!i)&&((Xr(r)!=="body"||qo(a))&&(u=Xi(r)),f)){const h=mr(r);l=Mr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=a&&!f&&!i?VC(a,u):cn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-u.scrollTop*l.y+d.y+m.y}}function gK(e){return Array.from(e.getClientRects())}function bK(e){const t=pn(e),n=Xi(e),r=e.ownerDocument.body,o=jt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ea(e);const c=-n.scrollTop;return Pt(r).direction==="rtl"&&(a+=jt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}const Zv=25;function vK(e,t){const n=ft(e),r=pn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;const d=Yi();(!d||d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const l=ea(r);if(l<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-h);g<=Zv&&(i-=g)}else l<=Zv&&(i+=l);return{width:i,height:a,x:c,y:u}}function yK(e,t){const n=mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Tt(e)?Mr(e):cn(1),a=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:a,height:c,x:u,y:l}}function Jv(e,t,n){let r;if(t==="viewport")r=vK(e,n);else if(t==="document")r=bK(pn(e));else if(Te(t))r=yK(t,n);else{const o=DC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wi(r)}function FC(e,t){const n=kn(e);return n===t||!Te(n)||wn(n)?!1:Pt(n).position==="fixed"||FC(n,t)}function wK(e,t){const n=t.get(e);if(n)return n;let r=Bn(e,[],!1).filter(c=>Te(c)&&Xr(c)!=="body"),o=null;const i=Pt(e).position==="fixed";let a=i?kn(e):e;for(;Te(a)&&!wn(a);){const c=Pt(a),u=Xf(a);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||qo(a)&&!u&&FC(e,a))?r=r.filter(d=>d!==a):o=c,a=kn(a)}return t.set(e,r),r}function xK(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Gi(t)?[]:wK(t,this._c):[].concat(n),r],c=Jv(t,a[0],o);let u=c.top,l=c.right,d=c.bottom,f=c.left;for(let m=1;m<a.length;m++){const h=Jv(t,a[m],o);u=jt(h.top,u),l=Br(h.right,l),d=Br(h.bottom,d),f=jt(h.left,f)}return{width:l-f,height:d-u,x:f,y:u}}function CK(e){const{width:t,height:n}=NC(e);return{width:t,height:n}}function kK(e,t,n){const r=Tt(t),o=pn(t),i=n==="fixed",a=mr(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=cn(0);function l(){u.x=ea(o)}if(r||!r&&!i)if((Xr(t)!=="body"||qo(o))&&(c=Xi(t)),r){const h=mr(t,!0,i,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?VC(o,c):cn(0),f=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Cu(e){return Pt(e).position==="static"}function Qv(e,t){if(!Tt(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pn(e)===n&&(n=n.ownerDocument.body),n}function BC(e,t){const n=ft(e);if(Gi(e))return n;if(!Tt(e)){let o=kn(e);for(;o&&!wn(o);){if(Te(o)&&!Cu(o))return o;o=kn(o)}return n}let r=Qv(e,t);for(;r&&iU(r)&&Cu(r);)r=Qv(r,t);return r&&wn(r)&&Cu(r)&&!Xf(r)?n:r||lU(e)||n}const EK=async function(e){const t=this.getOffsetParent||BC,n=this.getDimensions,r=await n(e.floating);return{reference:kK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LK(e){return Pt(e).direction==="rtl"}const SK={convertOffsetParentRelativeRectToViewportRelativeRect:hK,getDocumentElement:pn,getClippingRect:xK,getOffsetParent:BC,getElementRects:EK,getClientRects:gK,getDimensions:CK,getScale:Mr,isElement:Te,isRTL:LK};function HC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $K(e,t){let n=null,r;const o=pn(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=l;if(c||t(),!m||!h)return;const g=Cs(f),v=Cs(o.clientWidth-(d+m)),w=Cs(o.clientHeight-(f+h)),b=Cs(d),k={rootMargin:-g+"px "+-v+"px "+-w+"px "+-b+"px",threshold:jt(0,Br(1,u))||1};let C=!0;function x(L){const S=L[0].intersectionRatio;if(S!==u){if(!C)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!HC(l,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(x,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,k)}n.observe(e)}return a(!0),i}function ey(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=np(e),d=o||i?[...l?Bn(l):[],...t?Bn(t):[]]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=l&&c?$K(l,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),l&&!u&&h.observe(l),t&&h.observe(t));let g,v=u?mr(e):null;u&&w();function w(){const b=mr(e);v&&!HC(v,b)&&n(),v=b,g=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(g)}}const jK=lK,OK=uK,RK=iK,MK=fK,PK=aK,TK=dK,AK=(e,t,n)=>{const r=new Map,o={platform:SK,...n},i={...o.platform,_c:r};return sK(e,t,{...o,platform:i})};var IK=typeof document<"u",NK=function(){},zs=IK?s.useLayoutEffect:NK;function Ci(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ci(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ci(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function WC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ty(e,t){const n=WC(e);return Math.round(t*n)/n}function ku(e){const t=s.useRef(e);return zs(()=>{t.current=e}),t}function DK(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);Ci(m,r)||h(r);const[g,v]=s.useState(null),[w,b]=s.useState(null),y=s.useCallback($=>{$!==L.current&&(L.current=$,v($))},[]),k=s.useCallback($=>{$!==S.current&&(S.current=$,b($))},[]),C=i||g,x=a||w,L=s.useRef(null),S=s.useRef(null),E=s.useRef(d),R=u!=null,T=ku(u),D=ku(o),I=ku(l),j=s.useCallback(()=>{if(!L.current||!S.current)return;const $={placement:t,strategy:n,middleware:m};D.current&&($.platform=D.current),AK(L.current,S.current,$).then(z=>{const M={...z,isPositioned:I.current!==!1};H.current&&!Ci(E.current,M)&&(E.current=M,pt.flushSync(()=>{f(M)}))})},[m,t,n,D,I]);zs(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[l]);const H=s.useRef(!1);zs(()=>(H.current=!0,()=>{H.current=!1}),[]),zs(()=>{if(C&&(L.current=C),x&&(S.current=x),C&&x){if(T.current)return T.current(C,x,j);j()}},[C,x,j,T,R]);const P=s.useMemo(()=>({reference:L,floating:S,setReference:y,setFloating:k}),[y,k]),A=s.useMemo(()=>({reference:C,floating:x}),[C,x]),V=s.useMemo(()=>{const $={position:n,left:0,top:0};if(!A.floating)return $;const z=ty(A.floating,d.x),M=ty(A.floating,d.y);return c?{...$,transform:"translate("+z+"px, "+M+"px)",...WC(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:M}},[n,c,A.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:j,refs:P,elements:A,floatingStyles:V}),[d,j,P,A,V])}const VK=(e,t)=>{const n=jK(e);return{name:n.name,fn:n.fn,options:[e,t]}},FK=(e,t)=>{const n=OK(e);return{name:n.name,fn:n.fn,options:[e,t]}},BK=(e,t)=>({fn:TK(e).fn,options:[e,t]}),HK=(e,t)=>{const n=RK(e);return{name:n.name,fn:n.fn,options:[e,t]}},WK=(e,t)=>{const n=MK(e);return{name:n.name,fn:n.fn,options:[e,t]}},zK=(e,t)=>{const n=PK(e);return{name:n.name,fn:n.fn,options:[e,t]}},_K={intentional:"onClick",sloppy:"onPointerDown"};function UK(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function KK(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("referenceElement"),a=n.useState("domReferenceElement"),{onOpenChange:c,dataRef:u}=n.context,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:m="sloppy",referencePress:h=!1,referencePressEvent:g="sloppy",ancestorScroll:v=!1,bubbles:w,externalTree:b}=t,y=Ji(b),k=je(typeof f=="function"?f:()=>!1),C=typeof f=="function"?k:f,x=s.useRef(!1),{escapeKey:L,outsidePress:S}=UK(w),E=s.useRef(null),R=Fr(),T=Fr(),D=je(()=>{T.clear(),u.current.insideReactTree=!1}),I=s.useRef(!1),j=s.useRef(""),H=je(O=>{j.current=O.pointerType}),P=je(()=>{const O=j.current,X=O==="pen"||!O?"mouse":O,F=typeof m=="function"?m():m;return typeof F=="string"?F:F[X]}),A=je(O=>{if(!r||!l||!d||O.key!=="Escape"||I.current)return;const X=u.current.floatingContext?.nodeId,F=y?Mo(y.nodesRef.current,X):[];if(!L&&F.length>0){let G=!0;if(F.forEach(Z=>{Z.context?.open&&!Z.context.dataRef.current.__escapeKeyBubbles&&(G=!1)}),!G)return}const ge=jU(O)?O.nativeEvent:O,J=it(tp,ge);n.setOpen(!1,J),!L&&!J.isPropagationAllowed&&O.stopPropagation()}),V=je(O=>{const X=P();return X==="intentional"&&O.type!=="click"||X==="sloppy"&&O.type==="click"}),$=je(()=>{u.current.insideReactTree=!0,T.start(0,D)}),z=je((O,X=!1)=>{if(V(O)){D();return}if(u.current.insideReactTree){D();return}if(P()==="intentional"&&X||typeof C=="function"&&!C(O))return;const F=nn(O),ge=`[${Qi("inert")}]`,J=pr(n.select("floatingElement")).querySelectorAll(ge),G=n.context.triggerElements;if(F&&(G.hasElement(F)||G.hasMatchingElement(_=>gt(_,F))))return;let Z=Te(F)?F:null;for(;Z&&!wn(Z);){const _=kn(Z);if(wn(_)||!Te(_))break;Z=_}if(J.length&&Te(F)&&!LU(F)&&!gt(F,n.select("floatingElement"))&&Array.from(J).every(_=>!gt(Z,_)))return;if(Tt(F)&&!("touches"in O)){const _=wn(F),ce=Pt(F),Y=/auto|scroll/,K=_||Y.test(ce.overflowX),oe=_||Y.test(ce.overflowY),ye=K&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,Ee=oe&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,xe=ce.direction==="rtl",Ae=Ee&&(xe?O.offsetX<=F.offsetWidth-F.clientWidth:O.offsetX>F.clientWidth),Ie=ye&&O.offsetY>F.clientHeight;if(Ae||Ie)return}const be=u.current.floatingContext?.nodeId,ve=y&&Mo(y.nodesRef.current,be).some(_=>Ut(O,_.context?.elements.floating));if(Ut(O,n.select("floatingElement"))||Ut(O,n.select("domReferenceElement"))||ve)return;const W=y?Mo(y.nodesRef.current,be):[];if(W.length>0){let _=!0;if(W.forEach(ce=>{ce.context?.open&&!ce.context.dataRef.current.__outsidePressBubbles&&(_=!1)}),!_)return}n.setOpen(!1,it(_U,O)),D()}),M=je(O=>{P()!=="sloppy"||O.pointerType==="touch"||!n.select("open")||!l||Ut(O,n.select("floatingElement"))||Ut(O,n.select("domReferenceElement"))||z(O)}),q=je(O=>{if(P()!=="sloppy"||!n.select("open")||!l||Ut(O,n.select("floatingElement"))||Ut(O,n.select("domReferenceElement")))return;const X=O.touches[0];X&&(E.current={startTime:Date.now(),startX:X.clientX,startY:X.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},R.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}),ee=je(O=>{const X=nn(O);function F(){q(O),X?.removeEventListener(O.type,F)}X?.addEventListener(O.type,F)}),te=je(O=>{const X=x.current;if(x.current=!1,R.clear(),O.type==="mousedown"&&E.current&&!E.current.dismissOnMouseDown)return;const F=nn(O);function ge(){O.type==="pointerdown"?M(O):z(O,X),F?.removeEventListener(O.type,ge)}F?.addEventListener(O.type,ge)}),ae=je(O=>{if(P()!=="sloppy"||!E.current||Ut(O,n.select("floatingElement"))||Ut(O,n.select("domReferenceElement")))return;const X=O.touches[0];if(!X)return;const F=Math.abs(X.clientX-E.current.startX),ge=Math.abs(X.clientY-E.current.startY),J=Math.sqrt(F*F+ge*ge);J>5&&(E.current.dismissOnTouchEnd=!0),J>10&&(z(O),R.clear(),E.current=null)}),le=je(O=>{const X=nn(O);function F(){ae(O),X?.removeEventListener(O.type,F)}X?.addEventListener(O.type,F)}),ne=je(O=>{P()!=="sloppy"||!E.current||Ut(O,n.select("floatingElement"))||Ut(O,n.select("domReferenceElement"))||(E.current.dismissOnTouchEnd&&z(O),R.clear(),E.current=null)}),re=je(O=>{const X=nn(O);function F(){ne(O),X?.removeEventListener(O.type,F)}X?.addEventListener(O.type,F)});s.useEffect(()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=L,u.current.__outsidePressBubbles=S;const O=new qr;function X(Z){n.setOpen(!1,it(ep,Z))}function F(){O.clear(),I.current=!0}function ge(){O.start(Yi()?5:0,()=>{I.current=!1})}const J=pr(o);J.addEventListener("pointerdown",H,!0),d&&(J.addEventListener("keydown",A),J.addEventListener("compositionstart",F),J.addEventListener("compositionend",ge)),C&&(J.addEventListener("click",te,!0),J.addEventListener("pointerdown",te,!0),J.addEventListener("touchstart",ee,!0),J.addEventListener("touchmove",le,!0),J.addEventListener("touchend",re,!0),J.addEventListener("mousedown",te,!0));let G=[];return v&&(Te(a)&&(G=Bn(a)),Te(o)&&(G=G.concat(Bn(o))),!Te(i)&&i&&i.contextElement&&(G=G.concat(Bn(i.contextElement)))),G=G.filter(Z=>Z!==J.defaultView?.visualViewport),G.forEach(Z=>{Z.addEventListener("scroll",X,{passive:!0})}),()=>{J.removeEventListener("pointerdown",H,!0),d&&(J.removeEventListener("keydown",A),J.removeEventListener("compositionstart",F),J.removeEventListener("compositionend",ge)),C&&(J.removeEventListener("click",te,!0),J.removeEventListener("pointerdown",te,!0),J.removeEventListener("touchstart",ee,!0),J.removeEventListener("touchmove",le,!0),J.removeEventListener("touchend",re,!0),J.removeEventListener("mousedown",te,!0)),G.forEach(Z=>{Z.removeEventListener("scroll",X)}),O.clear()}},[u,o,i,a,d,C,r,c,v,l,L,S,A,z,te,M,ee,le,re,H,n]),s.useEffect(D,[C,D]);const se=s.useMemo(()=>({onKeyDown:A,...h&&{[_K[g]]:O=>{n.setOpen(!1,it(xi,O.nativeEvent))},...g!=="intentional"&&{onClick(O){n.setOpen(!1,it(xi,O.nativeEvent))}}}}),[A,n,h,g]),ie=je(O=>{const X=nn(O.nativeEvent);!gt(n.select("floatingElement"),X)||O.button!==0||(x.current=!0)}),ue=s.useMemo(()=>({onKeyDown:A,onPointerDown:ie,onMouseDown:ie,onMouseUp:ie,onClickCapture:$,onMouseDownCapture:$,onPointerDownCapture:$,onMouseUpCapture:$,onTouchEndCapture:$,onTouchMoveCapture:$}),[A,ie,$]);return s.useMemo(()=>l?{reference:se,floating:ue,trigger:se}:{},[l,se,ue])}var ki=Symbol("NOT_FOUND");function GK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function YK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function XK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var ny=e=>Array.isArray(e)?e:[e];function qK(e){const t=Array.isArray(e[0])?e[0]:e;return XK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ZK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function JK(e){let t;return{get(n){return t&&e(t.key,n)?t.value:ki},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function QK(e,t){let n=[];function r(c){const u=n.findIndex(l=>t(c,l.key));if(u>-1){const l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return ki}function o(c,u){r(c)===ki&&(n.unshift({key:c,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var eG=(e,t)=>e===t;function tG(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function nG(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=eG,maxSize:o=1,resultEqualityCheck:i}=n,a=tG(r);let c=0;const u=o<=1?JK(a):QK(o,a);function l(){let d=u.get(arguments);if(d===ki){if(d=e.apply(null,arguments),c++,i){const m=u.getEntries().find(h=>i(h.value,d));m&&(d=m.value,c!==0&&c--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}var rG=class{constructor(e){this.value=e}deref(){return this.value}},oG=typeof WeakRef<"u"?WeakRef:rG,sG=0,ry=1;function Ls(){return{s:sG,v:void 0,o:null,p:null}}function zC(e,t={}){let n=Ls();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let c=n;const{length:u}=arguments;for(let f=0,m=u;f<m;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const v=g.get(h);v===void 0?(c=Ls(),g.set(h,c)):c=v}else{let g=c.p;g===null&&(c.p=g=new Map);const v=g.get(h);v===void 0?(c=Ls(),g.set(h,c)):c=v}}const l=c;let d;if(c.s===ry)d=c.v;else if(d=e.apply(null,arguments),i++,r){const f=o?.deref?.()??o;f!=null&&r(f,d)&&(d=f,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new oG(d):d}return l.s=ry,l.v=d,d}return a.clearCache=()=>{n=Ls(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function _C(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,c,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),GK(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:m=[],argsMemoize:h=zC,argsMemoizeOptions:g=[]}=d,v=ny(m),w=ny(g),b=qK(o),y=f(function(){return i++,l.apply(null,arguments)},...v),k=h(function(){a++;const x=ZK(b,arguments);return c=y.apply(null,x),c},...w);return Object.assign(k,{resultFunc:l,memoizedResultFunc:y,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var iG=_C(zC),aG=Object.assign((e,t=iG)=>{YK(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,c,u)=>(a[n[u]]=c,a),{}))},{withTypes:()=>aG});_C({memoize:nG,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ve=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error(Yr(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var Eu={exports:{}},Lu={};var oy;function cG(){if(oy)return Lu;oy=1;var e=Li(),t=My();function n(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,u=e.useDebugValue;return Lu.useSyncExternalStoreWithSelector=function(l,d,f,m,h){var g=i(null);if(g.current===null){var v={hasValue:!1,value:null};g.current=v}else v=g.current;g=c(function(){function b(L){if(!y){if(y=!0,k=L,L=m(L),h!==void 0&&v.hasValue){var S=v.value;if(h(S,L))return C=S}return C=L}if(S=C,r(k,L))return S;var E=m(L);return h!==void 0&&h(S,E)?(k=L,S):(k=L,C=E)}var y=!1,k,C,x=f===void 0?null:f;return[function(){return b(d())},x===null?void 0:function(){return b(x())}]},[d,f,m,h]);var w=o(l,g[0],g[1]);return a(function(){v.hasValue=!0,v.value=w},[w]),u(w),w},Lu}var sy;function lG(){return sy||(sy=1,Eu.exports=cG()),Eu.exports}var uG=lG();const dG=cC(19),fG=dG?mG:hG;function pG(e,t,n,r,o){return fG(e,t,n,r,o)}function mG(e,t,n,r,o){const i=s.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return zk.useSyncExternalStore(e.subscribe,i,i)}function hG(e,t,n,r,o){return uG.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}class Po{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){Po.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Po.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Po.prototype.setState.call(this,t)}}class UC extends Po{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){s.useDebugValue(t),De(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){De(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){const n=Object.values(t);De(()=>{this.update(t)},n)}useControlledProp(t,n,r){s.useDebugValue(t);const o=n!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,o),!o&&!Object.is(this.state[t],r)&&super.setState({...this.state,[t]:r})),De(()=>{o&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r,o])}set(t,n){this.controlledValues.get(t)!==!0&&super.set(t,n)}update(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.update(n)}setState(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.setState({...this.state,...n})}select=(t,n,r,o)=>{const i=this.selectors[t];return i(this.state,n,r,o)};useState=(t,n,r,o)=>{s.useDebugValue(t);const i=this.selectors[t];return pG(this,i,n,r,o)};useContextCallback(t,n){s.useDebugValue(t);const r=je(n??c_);this.context[t]=r}useStateSetter(t){const n=s.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(i=>{const a=r(i);if(!Object.is(o,a)){const c=o;o=a,n(a,c,this)}})}}const gG={open:Ve(e=>e.open),domReferenceElement:Ve(e=>e.domReferenceElement),referenceElement:Ve(e=>e.positionReference??e.referenceElement),floatingElement:Ve(e=>e.floatingElement),floatingId:Ve(e=>e.floatingId)};class rp extends UC{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:i,...a}=t;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:HU(),nested:n,noEmit:r,triggerElements:i},gG)}setOpen=(t,n)=>{if((!t||!this.state.open||OU(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function bG(e,t=!1,n=!1){const[r,o]=s.useState(e&&t?"idle":void 0),[i,a]=s.useState(e);return e&&!i&&(a(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),De(()=>{if(!e&&i&&r!=="ending"&&n){const c=vn.request(()=>{o("ending")});return()=>{vn.cancel(c)}}},[e,i,r,n]),De(()=>{if(!e||t)return;const c=vn.request(()=>{pt.flushSync(()=>{o(void 0)})});return()=>{vn.cancel(c)}},[t,e]),De(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const c=vn.request(()=>{o("idle")});return()=>{vn.cancel(c)}},[t,e,i,o,r]),s.useMemo(()=>({mounted:i,setMounted:a,transitionStatus:r}),[i,r])}function KC(e,t=!1,n=!0){const r=TC();return je((o,i=null)=>{r.cancel();const a=eK(e);a!=null&&(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function c(){a&&Promise.all(a.getAnimations().map(u=>u.finished)).then(()=>{i!=null&&i.aborted||pt.flushSync(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;pt.flushSync(o)}else a.getAnimations().length>0&&a.getAnimations().some(u=>u.pending||u.playState!=="finished")&&c()})}t?r.request(c):c()}))})}function GC(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=ur(n),a=je(o),c=KC(r,n);s.useEffect(()=>{t&&c(()=>{n===i.current&&a()})},[t,n,a,c,i])}function vG(e,t){const n=s.useRef(null);return s.useCallback(r=>{if(e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null))return n.current=e,t.context.triggerElements.add(e,r),()=>{n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null)}},[t,e])}function yG(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=vG(e,n),a=je(c=>{const u=i(c);return c!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:c,...r}),u});return De(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:o}}function wG(e){const t=e.useState("open");De(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function xG(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=bG(e);t.useSyncedValues({mounted:r,transitionStatus:i});const a=je(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return GC({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:i}}class op{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function CG(){return new rp({open:!1,floatingElement:null,referenceElement:null,triggerElements:new op,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function kG(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:CG(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Ot,inactiveTriggerProps:Ot,popupProps:Ot}}const EG={open:Ve(e=>e.open),mounted:Ve(e=>e.mounted),transitionStatus:Ve(e=>e.transitionStatus),floatingRootContext:Ve(e=>e.floatingRootContext),preventUnmountingOnClose:Ve(e=>e.preventUnmountingOnClose),payload:Ve(e=>e.payload),activeTriggerId:Ve(e=>e.activeTriggerId),activeTriggerElement:Ve(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ve((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Ve((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Ve((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Ve((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ve(e=>e.popupProps),popupElement:Ve(e=>e.popupElement),positionerElement:Ve(e=>e.positionerElement)};function LG(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Zi(),i=Qf()!=null,a=Ln(()=>new rp({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new op,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return De(()=>{const c={open:t,floatingId:o};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=Te(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),a.update(c)},[t,o,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=i,a.context.noEmit=e.noEmit||!1,a}function SG(e={}){const{nodeId:t,externalTree:n}=e,r=LG(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[a,c]=s.useState(null),u=s.useRef(null),l=Ji(n);De(()=>{i.domReference&&(u.current=i.domReference)},[i.domReference]);const d=DK({...e,elements:{...i,...a&&{reference:a}}}),f=s.useCallback(S=>{const E=Te(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;c(E),d.refs.setReference(E)},[d.refs]),[m,h]=s.useState(null),[g,v]=s.useState(null);o.useSyncedValue("referenceElement",m),o.useSyncedValue("domReferenceElement",Te(m)?m:null),o.useSyncedValue("floatingElement",g);const w=s.useCallback(S=>{(Te(S)||S===null)&&(u.current=S,h(S)),(Te(d.refs.reference.current)||d.refs.reference.current===null||S!==null&&!Te(S))&&d.refs.setReference(S)},[d.refs,h]),b=s.useCallback(S=>{v(S),d.refs.setFloating(S)},[d.refs]),y=s.useMemo(()=>({...d.refs,setReference:w,setFloating:b,setPositionReference:f,domReference:u}),[d.refs,w,b,f]),k=s.useMemo(()=>({...d.elements,domReference:i.domReference}),[d.elements,i.domReference]),C=o.useState("open"),x=o.useState("floatingId"),L=s.useMemo(()=>({...d,dataRef:o.context.dataRef,open:C,onOpenChange:o.setOpen,events:o.context.events,floatingId:x,refs:y,elements:k,nodeId:t,rootStore:o}),[d,y,k,t,o,C,x]);return De(()=>{o.context.dataRef.current.floatingContext=L;const S=l?.nodesRef.current.find(E=>E.id===t);S&&(S.context=L)}),s.useMemo(()=>({...d,context:L,refs:y,elements:k,rootStore:o}),[d,y,k,L,o])}function $G(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=Zi(),a=Qf()!=null,c=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),d=t.context.triggerElements,f=Ln(()=>new rp({open:c,referenceElement:u,floatingElement:l,triggerElements:d,onOpenChange:o,floatingId:i,nested:a,noEmit:n})).current;return De(()=>{const m={open:c,floatingId:i,referenceElement:u,floatingElement:l};Te(u)&&(m.domReferenceElement=u),f.update(m)},[c,i,u,l,f]),f.context.onOpenChange=o,f.context.nested=a,f.context.noEmit=n,f}const Su=yU&&vU;function jG(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:o}=n.context,{enabled:i=!0,visibleOnly:a=!0}=t,c=s.useRef(!1),u=Fr(),l=s.useRef(!0);s.useEffect(()=>{const f=n.select("domReferenceElement");if(!i)return;const m=ft(f);function h(){!n.select("open")&&Tt(f)&&f===Wv(pr(f))&&(c.current=!0)}function g(){l.current=!0}function v(){l.current=!1}return m.addEventListener("blur",h),Su&&(m.addEventListener("keydown",g,!0),m.addEventListener("pointerdown",v,!0)),()=>{m.removeEventListener("blur",h),Su&&(m.removeEventListener("keydown",g,!0),m.removeEventListener("pointerdown",v,!0))}},[n,i]),s.useEffect(()=>{if(!i)return;function f(m){(m.reason===xi||m.reason===tp)&&(c.current=!0)}return r.on("openchange",f),()=>{r.off("openchange",f)}},[r,i]);const d=s.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const m=nn(f.nativeEvent);if(a&&Te(m)){if(Su&&!f.relatedTarget){if(!l.current&&!SU(m))return}else if(!$U(m))return}n.setOpen(!0,it(Od,f.nativeEvent,f.currentTarget))},onBlur(f){c.current=!1;const m=f.relatedTarget,h=f.nativeEvent,g=Te(m)&&m.hasAttribute(Qi("focus-guard"))&&m.getAttribute("data-type")==="outside";u.start(0,()=>{const v=n.select("domReferenceElement"),w=Wv(v?v.ownerDocument:document);!m&&w===v||gt(o.current.floatingContext?.refs.floating.current,w)||gt(v,w)||g||n.context.triggerElements.hasElement(f.relatedTarget)||n.setOpen(!1,it(Od,h))})}}),[o,n,a,u]);return s.useMemo(()=>i?{reference:d,trigger:d}:{},[i,d])}const Rd=Qi("safe-polygon"),OG=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${RC}`;function RG(e){return e?!!e.closest(OG):!1}function YC(e){const t=s.useRef(void 0),n=s.useRef(!1),r=s.useRef(void 0),o=s.useRef(!0),i=s.useRef(!1),a=s.useRef(()=>{}),c=s.useRef(!1),u=Fr(),l=Fr(),d=s.useRef(void 0);return s.useMemo(()=>{const f=e.context.dataRef.current;return f.hoverInteractionState||(f.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:i,unbindMouseMoveRef:a,restTimeoutPendingRef:c,openChangeTimeout:u,restTimeout:l,handleCloseOptionsRef:d}),f.hoverInteractionState},[e,t,n,r,o,i,a,c,u,l,d])}const MG=new Set(["click","mousedown"]);function PG(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:a}=n.context,{enabled:c=!0,closeDelay:u=0,externalTree:l}=t,{pointerTypeRef:d,interactedInsideRef:f,handlerRef:m,performedPointerEventsMutationRef:h,unbindMouseMoveRef:g,restTimeoutPendingRef:v,openChangeTimeout:w,handleCloseOptionsRef:b}=YC(n),y=Ji(l),k=Qf(),C=je(()=>f.current?!0:a.current.openEvent?MG.has(a.current.openEvent.type):!1),x=je(()=>{const T=a.current.openEvent?.type;return T?.includes("mouse")&&T!=="mousedown"}),L=s.useCallback((T,D=!0)=>{const I=TG(u,d.current);I&&!m.current?w.start(I,()=>n.setOpen(!1,it(yn,T))):D&&(w.clear(),n.setOpen(!1,it(yn,T)))},[u,m,n,d,w]),S=je(()=>{g.current(),m.current=void 0}),E=je(()=>{if(h.current){const T=pr(o).body;T.style.pointerEvents="",T.removeAttribute(Rd),h.current=!1}}),R=je(T=>{const D=nn(T);if(!RG(D)){f.current=!1;return}f.current=!0});De(()=>{r||(d.current=void 0,v.current=!1,f.current=!1,S(),E())},[r,d,v,f,S,E]),s.useEffect(()=>()=>{S()},[S]),s.useEffect(()=>E,[E]),De(()=>{if(c&&r&&b.current?.blockPointerEvents&&x()&&Te(i)&&o){h.current=!0;const T=pr(o).body;T.setAttribute(Rd,"");const D=i,I=o,j=y?.nodesRef.current.find(H=>H.id===k)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),T.style.pointerEvents="none",D.style.pointerEvents="auto",I.style.pointerEvents="auto",()=>{T.style.pointerEvents="",D.style.pointerEvents="",I.style.pointerEvents=""}}},[c,r,i,o,b,x,y,k,h]),s.useEffect(()=>{if(!c)return;function T(H){if(C()||!a.current.floatingContext)return;const P=n.context.triggerElements;H.relatedTarget&&P.hasElement(H.relatedTarget)||(E(),S(),C()||L(H))}function D(H){w.clear(),E(),m.current?.(H),S()}function I(H){C()||L(H,!1)}const j=o;return j&&(j.addEventListener("mouseleave",T),j.addEventListener("mouseenter",D),j.addEventListener("mouseleave",I),j.addEventListener("pointerdown",R,!0)),()=>{j&&(j.removeEventListener("mouseleave",T),j.removeEventListener("mouseenter",D),j.removeEventListener("mouseleave",I),j.removeEventListener("pointerdown",R,!0))}})}function TG(e,t){return t&&!Ho(t)?0:typeof e=="function"?e():e}function $u(e){return typeof e=="function"?e():e}const AG={current:null};function IG(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:i=!0,delay:a=0,handleClose:c=null,mouseOnly:u=!1,restMs:l=0,move:d=!0,triggerElementRef:f=AG,externalTree:m,isActiveTrigger:h=!0}=t,g=Ji(m),{pointerTypeRef:v,interactedInsideRef:w,handlerRef:b,blockMouseMoveRef:y,performedPointerEventsMutationRef:k,unbindMouseMoveRef:C,restTimeoutPendingRef:x,openChangeTimeout:L,restTimeout:S,handleCloseOptionsRef:E}=YC(n),R=ur(c),T=ur(a),D=ur(l);h&&(E.current=R.current?.__options);const I=je(()=>w.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),j=s.useCallback((V,$=!0)=>{const z=Ws(T.current,"close",v.current);z&&!b.current?L.start(z,()=>n.setOpen(!1,it(yn,V))):$&&(L.clear(),n.setOpen(!1,it(yn,V)))},[T,b,n,v,L]),H=je(()=>{C.current(),b.current=void 0}),P=je(()=>{if(k.current){const V=pr(n.select("domReferenceElement")).body;V.style.pointerEvents="",V.removeAttribute(Rd),k.current=!1}});s.useEffect(()=>{if(!i)return;function V($){$.open||(L.clear(),S.clear(),y.current=!0,x.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[i,o,L,S,y,x]);const A=je(V=>{if(I()||!r.current.floatingContext)return;const $=n.context.triggerElements;V.relatedTarget&&$.hasElement(V.relatedTarget)||R.current?.({...r.current.floatingContext,tree:g,x:V.clientX,y:V.clientY,onClose(){P(),H(),I()||j(V)}})(V)});return s.useEffect(()=>{if(!i)return;const V=f.current??(h?n.select("domReferenceElement"):null);if(!Te(V))return;function $(q){if(L.clear(),y.current=!1,u&&!Ho(v.current)||$u(D.current)>0&&!Ws(T.current,"open"))return;const ee=Ws(T.current,"open",v.current),te=n.select("domReferenceElement"),ae=n.context.triggerElements,le=(ae.hasElement(q.target)||ae.hasMatchingElement(re=>gt(re,q.target)))&&(!te||!gt(te,q.target)),ne=q.currentTarget??null;ee?L.start(ee,()=>{n.select("open")||n.setOpen(!0,it(yn,q,ne))}):(!n.select("open")||le)&&n.setOpen(!0,it(yn,q,ne))}function z(q){if(I()){P();return}C.current();const ee=n.select("domReferenceElement"),te=pr(ee);S.clear(),x.current=!1;const ae=n.context.triggerElements;if(q.relatedTarget&&ae.hasElement(q.relatedTarget))return;if(R.current&&r.current.floatingContext){n.select("open")||L.clear(),b.current=R.current({...r.current.floatingContext,tree:g,x:q.clientX,y:q.clientY,onClose(){P(),H(),I()||j(q,!0)}});const ne=b.current;ne(q),te.addEventListener("mousemove",ne),C.current=()=>{te.removeEventListener("mousemove",ne)};return}(v.current!=="touch"||!gt(n.select("floatingElement"),q.relatedTarget))&&j(q)}function M(q){A(q)}return n.select("open")&&V.addEventListener("mouseleave",M),d&&V.addEventListener("mousemove",$,{once:!0}),V.addEventListener("mouseenter",$),V.addEventListener("mouseleave",z),()=>{V.removeEventListener("mouseleave",M),d&&V.removeEventListener("mousemove",$),V.removeEventListener("mouseenter",$),V.removeEventListener("mouseleave",z)}},[H,P,y,r,T,j,n,i,R,A,h,I,u,d,v,D,S,x,L,f,g,C,b]),s.useMemo(()=>{function V($){v.current=$.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove($){const{nativeEvent:z}=$,M=$.currentTarget,q=n.select("domReferenceElement"),ee=n.context.triggerElements,te=n.select("open"),ae=(ee.hasElement($.target)||ee.hasMatchingElement(ne=>gt(ne,$.target)))&&(!q||!gt(q,$.target));if(u&&!Ho(v.current)||te&&!ae||$u(D.current)===0||!ae&&x.current&&$.movementX**2+$.movementY**2<2)return;S.clear();function le(){!y.current&&(!te||ae)&&n.setOpen(!0,it(yn,z,M))}v.current==="touch"?pt.flushSync(()=>{le()}):ae&&te?le():(x.current=!0,S.start($u(D.current),le))}}},[y,u,n,v,D,S,x])}function NG(e=[]){const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),o=e.map(l=>l?.trigger),i=s.useCallback(l=>Ss(l,e,"reference"),t),a=s.useCallback(l=>Ss(l,e,"floating"),n),c=s.useCallback(l=>Ss(l,e,"item"),r),u=s.useCallback(l=>Ss(l,e,"trigger"),o);return s.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:c,getTriggerProps:u}),[i,a,c,u])}function Ss(e,t,n){const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[EU]="");for(const a in e)o&&e&&(a===jC||a===OC)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let c;const u=t[a]?.[n];typeof u=="function"?c=e?u(e):null:c=u,c&&iy(i,c,o,r)}return iy(i,e,o,r),i}function iy(e,t,n,r){for(const o in t){const i=t[o];n&&(o===jC||o===OC)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof i=="function"&&(r.get(o)?.push(i),e[o]=(...a)=>r.get(o)?.map(c=>c(...a)).find(c=>c!==void 0))):e[o]=i)}}function ay(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,c=i-1;a<i;c=a++){const[u,l]=t[a]||[0,0],[d,f]=t[c]||[0,0];l>=r!=f>=r&&n<=(d-u)*(r-l)/(f-l)+u&&(o=!o)}return o}function DG(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function VG(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new qr;let i=!1,a=null,c=null,u=typeof performance<"u"?performance.now():0;function l(f,m){const h=performance.now(),g=h-u;if(a===null||c===null||g===0)return a=f,c=m,u=h,null;const v=f-a,w=m-c,y=Math.sqrt(v*v+w*w)/g;return a=f,c=m,u=h,y}const d=({x:f,y:m,placement:h,elements:g,onClose:v,nodeId:w,tree:b})=>function(k){function C(){o.clear(),v()}if(o.clear(),!g.domReference||!g.floating||h==null||f==null||m==null)return;const{clientX:x,clientY:L}=k,S=[x,L],E=nn(k),R=k.type==="mouseleave",T=gt(g.floating,E),D=gt(g.domReference,E),I=g.domReference.getBoundingClientRect(),j=g.floating.getBoundingClientRect(),H=h.split("-")[0],P=f>j.right-j.width/2,A=m>j.bottom-j.height/2,V=DG(S,I),$=j.width>I.width,z=j.height>I.height,M=($?I:j).left,q=($?I:j).right,ee=(z?I:j).top,te=(z?I:j).bottom;if(T&&(i=!0,!R))return;if(D&&(i=!1),D&&!R){i=!0;return}if(R&&Te(k.relatedTarget)&>(g.floating,k.relatedTarget)||b&&Mo(b.nodesRef.current,w).some(({context:ne})=>ne?.open))return;if(H==="top"&&m>=I.bottom-1||H==="bottom"&&m<=I.top+1||H==="left"&&f>=I.right-1||H==="right"&&f<=I.left+1)return C();let ae=[];switch(H){case"top":ae=[[M,I.top+1],[M,j.bottom-1],[q,j.bottom-1],[q,I.top+1]];break;case"bottom":ae=[[M,j.top+1],[M,I.bottom-1],[q,I.bottom-1],[q,j.top+1]];break;case"left":ae=[[j.right-1,te],[j.right-1,ee],[I.left+1,ee],[I.left+1,te]];break;case"right":ae=[[I.right-1,te],[I.right-1,ee],[j.left+1,ee],[j.left+1,te]];break}function le([ne,re]){switch(H){case"top":{const se=[$?ne+t/2:P?ne+t*4:ne-t*4,re+t+1],ie=[$?ne-t/2:P?ne+t*4:ne-t*4,re+t+1],ue=[[j.left,P||$?j.bottom-t:j.top],[j.right,P?$?j.bottom-t:j.top:j.bottom-t]];return[se,ie,...ue]}case"bottom":{const se=[$?ne+t/2:P?ne+t*4:ne-t*4,re-t],ie=[$?ne-t/2:P?ne+t*4:ne-t*4,re-t],ue=[[j.left,P||$?j.top+t:j.bottom],[j.right,P?$?j.top+t:j.bottom:j.top+t]];return[se,ie,...ue]}case"left":{const se=[ne+t+1,z?re+t/2:A?re+t*4:re-t*4],ie=[ne+t+1,z?re-t/2:A?re+t*4:re-t*4];return[...[[A||z?j.right-t:j.left,j.top],[A?z?j.right-t:j.left:j.right-t,j.bottom]],se,ie]}case"right":{const se=[ne-t,z?re+t/2:A?re+t*4:re-t*4],ie=[ne-t,z?re-t/2:A?re+t*4:re-t*4],ue=[[A||z?j.left+t:j.right,j.top],[A?z?j.left+t:j.right:j.left+t,j.bottom]];return[se,ie,...ue]}default:return[]}}if(!ay([x,L],ae)){if(i&&!V)return C();if(!R&&r){const ne=l(k.clientX,k.clientY);if(ne!==null&&ne<.1)return C()}ay([x,L],le([f,m]))?!i&&r&&o.start(40,C):C()}};return d.__options={blockPointerEvents:n},d}const FG={...EG,disabled:Ve(e=>e.disabled),instantType:Ve(e=>e.instantType),isInstantPhase:Ve(e=>e.isInstantPhase),trackCursorAxis:Ve(e=>e.trackCursorAxis),disableHoverablePopup:Ve(e=>e.disableHoverablePopup),lastOpenChangeReason:Ve(e=>e.openChangeReason),closeDelay:Ve(e=>e.closeDelay)};class sp extends UC{constructor(t){super({...BG(),...t},{popupRef:s.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new op},FG)}setOpen=(t,n)=>{const r=n.reason,o=r===yn,i=t&&r===Od,a=!t&&(r===xi||r===tp);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const c=()=>{const u={open:t,openChangeReason:r};i?u.instantType="focus":a?u.instantType="dismiss":r===yn&&(u.instantType=void 0);const l=n.trigger?.id??null;(l||t)&&(u.activeTriggerId=l,u.activeTriggerElement=n.trigger??null),this.update(u)};o?pt.flushSync(c):c()};static useStore(t,n){const r=Ln(()=>t??new sp(n)).current,o=$G({popupStore:r,onOpenChange:r.setOpen});return r.state.floatingRootContext=o,r}}function BG(){return{...kG(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function HG(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:o=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:c,onOpenChangeComplete:u,handle:l,triggerId:d,defaultTriggerId:f=null,children:m}=e,h=sp.useStore(l?.store,{open:r??n,activeTriggerId:d!==void 0?d:f});h.useControlledProp("open",r,n),h.useControlledProp("activeTriggerId",d,f),h.useContextCallback("onOpenChange",c),h.useContextCallback("onOpenChangeComplete",u);const g=h.useState("open"),v=h.useState("activeTriggerId"),w=h.useState("payload");h.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:o});const b=!t&&g;De(()=>{g&&t&&h.setOpen(!1,it(UU))},[g,t,h]),h.useSyncedValue("disabled",t),wG(h);const{forceUnmount:y,transitionStatus:k}=xG(b,h),C=h.useState("isInstantPhase"),x=h.useState("instantType"),L=h.useState("lastOpenChangeReason"),S=s.useRef(null);De(()=>{k==="ending"&&L===ep||k!=="ending"&&C?(x!=="delay"&&(S.current=x),h.set("instantType","delay")):S.current!==null&&(h.set("instantType",S.current),S.current=null)},[k,C,L,x,h]),De(()=>{b&&v==null&&h.set("payload",void 0)},[h,v,b]);const E=s.useCallback(()=>{h.setOpen(!1,WG(h,KU))},[h]);s.useImperativeHandle(a,()=>({unmount:y,close:E}),[y,E]);const R=h.useState("floatingRootContext"),T=jG(R,{enabled:!t}),D=KK(R,{enabled:!t,referencePress:!0}),I=nK(R,{enabled:!t&&i!=="none",axis:i==="none"?void 0:i}),{getReferenceProps:j,getFloatingProps:H,getTriggerProps:P}=NG([T,D,I]),A=s.useMemo(()=>j(),[j]),V=s.useMemo(()=>P(),[P]),$=s.useMemo(()=>H(),[H]);return h.useSyncedValues({floatingRootContext:R,activeTriggerProps:A,inactiveTriggerProps:V,popupProps:$}),p.jsx(SC.Provider,{value:h,children:typeof m=="function"?m({payload:w}):m})}function WG(e,t){const n=it(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}let Ei=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const zG={[Ei.startingStyle]:""},_G={[Ei.endingStyle]:""},UG={transitionStatus(e){return e==="starting"?zG:e==="ending"?_G:null}};let ip=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ei.startingStyle]="startingStyle",e[e.endingStyle=Ei.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),KG=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const GG={[KG.popupOpen]:""},YG={[ip.open]:""},XG={[ip.closed]:""},qG={[ip.anchorHidden]:""},ZG={open(e){return e?GG:null}},XC={open(e){return e?YG:XG},anchorHidden(e){return e?qG:null}};function JG(e){return Zi(e,"base-ui")}const qC=s.createContext(void 0);function QG(){return s.useContext(qC)}const eY=600,tY=s.forwardRef(function(t,n){const{className:r,render:o,handle:i,payload:a,disabled:c,delay:u,closeDelay:l,id:d,...f}=t,m=qi(!0),h=i?.store??m;if(!h)throw new Error(Yr(82));const g=JG(d),v=h.useState("isTriggerActive",g),w=h.useState("floatingRootContext"),b=h.useState("isOpenedByTrigger",g),y=s.useRef(null),k=u??eY,C=l??0,{registerTrigger:x,isMountedByThisTrigger:L}=yG(g,y,h,{payload:a,closeDelay:C}),S=QG(),{delayRef:E,isInstantPhase:R,hasProvider:T}=YU(w,{open:b});h.useSyncedValue("isInstantPhase",R);const D=h.useState("disabled"),I=c??D,j=h.useState("trackCursorAxis"),H=h.useState("disableHoverablePopup"),P=IG(w,{enabled:!I,mouseOnly:!0,move:!1,handleClose:!H&&j!=="both"?VG():null,restMs(){const z=S?.delay,M=typeof E.current=="object"?E.current.open:void 0;let q=k;return T&&(M!==0?q=u??z??k:q=0),q},delay(){const z=typeof E.current=="object"?E.current.close:void 0;let M=C;return l==null&&T&&(M=z),{close:M}},triggerElementRef:y,isActiveTrigger:v}),A=s.useMemo(()=>({open:b}),[b]),V=h.useState("triggerProps",L);return Xo("button",t,{state:A,ref:[n,x,y],props:[P,V,{id:g},f],stateAttributesMapping:ZG})}),ZC=s.createContext(void 0);function nY(){const e=s.useContext(ZC);if(e===void 0)throw new Error(Yr(70));return e}const rY=s.forwardRef(function(t,n){const{children:r,container:o,className:i,render:a,...c}=t,{portalNode:u,portalSubtree:l}=QU({container:o,ref:n,componentProps:t,elementProps:c});return!l&&!u?null:p.jsxs(s.Fragment,{children:[l,u&&pt.createPortal(r,u)]})}),oY=s.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t;return qi().useState("mounted")||r?p.jsx(ZC.Provider,{value:r,children:p.jsx(rY,{ref:n,...o})}):null}),JC=s.createContext(void 0);function sY(){const e=s.useContext(JC);if(e===void 0)throw new Error(Yr(71));return e}const iY=s.createContext(void 0);function QC(){return s.useContext(iY)?.direction??"ltr"}const aY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:u}=t,{element:l,padding:d=0,offsetParent:f="real"}=En(e,t)||{};if(l==null)return{};const m=MC(d),h={x:n,y:r},g=Jf(o),v=Zf(g),w=await a.getDimensions(l),b=g==="y",y=b?"top":"left",k=b?"bottom":"right",C=b?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[g]-h[g]-i.floating[v],L=h[g]-i.reference[g],S=f==="real"?await a.getOffsetParent?.(l):c.floating;let E=c.floating[C]||i.floating[v];(!E||!await a.isElement?.(S))&&(E=c.floating[C]||i.floating[v]);const R=x/2-L/2,T=E/2-w[v]/2-1,D=Math.min(m[y],T),I=Math.min(m[k],T),j=D,H=E-w[v]-I,P=E/2-w[v]/2+R,A=$d(j,P,H),V=!u.arrow&&Zn(o)!=null&&P!==A&&i.reference[v]/2-(P<j?D:I)-w[v]/2<0,$=V?P<j?P-j:P-H:0;return{[g]:h[g]+$,data:{[g]:A,centerOffset:P-A-$,...V&&{alignmentOffset:$}},reset:V}}}),cY=(e,t)=>({...aY(e),options:[e,t]}),lY={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await zK().fn(e)).data?.referenceHidden||i}}}},_s={sideX:"left",sideY:"top"},uY={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:a,placement:c}=e,u=ft(o),l=u.getComputedStyle(o);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:n,data:_s};const f=await i.getOffsetParent?.(o);let m={width:0,height:0};if(a==="fixed"&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(f===u){const y=AC(o);m={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(m=await i.getDimensions(f));const h=Et(c);let g=t,v=n;h==="left"&&(g=m.width-(t+r.width)),h==="top"&&(v=m.height-(n+r.height));const w=h==="left"?"right":_s.sideX,b=h==="top"?"bottom":_s.sideY;return{x:g,y:v,data:{sideX:w,sideY:b}}}};function e5(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function cy(e,t,n){const{rects:r,placement:o}=e;return{side:e5(t,Et(o),n),align:Zn(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function dY(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,collisionBoundary:c,collisionPadding:u=5,sticky:l=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:v,shiftCrossAxis:w=!1,nodeId:b,adaptiveOrigin:y,lazyFlip:k=!1,externalTree:C}=e,[x,L]=s.useState(null);!g&&x!==null&&L(null);const S=v.side||"flip",E=v.align||"flip",R=v.fallbackAxisSide||"end",T=typeof t=="function"?t:void 0,D=je(T),I=T?D:t,j=ur(t),P=QC()==="rtl",A=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":P?"left":"right","inline-start":P?"right":"left"}[r],V=i==="center"?A:`${A}-${i}`;let $=u;const z=1,M=r==="bottom"?z:0,q=r==="top"?z:0,ee=r==="right"?z:0,te=r==="left"?z:0;typeof $=="number"?$={top:$+M,right:$+te,bottom:$+q,left:$+ee}:$&&($={top:($.top||0)+M,right:($.right||0)+te,bottom:($.bottom||0)+q,left:($.left||0)+ee});const ae={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:$},le=s.useRef(null),ne=ur(o),re=ur(a),ue=[VK(he=>{const $e=cy(he,r,P),Be=typeof ne.current=="function"?ne.current($e):ne.current,Re=typeof re.current=="function"?re.current($e):re.current;return{mainAxis:Be,crossAxis:Re,alignmentAxis:Re}},[typeof o!="function"?o:0,typeof a!="function"?a:0,P,r])],O=E==="none"&&S!=="shift",X=!O&&(l||w||S==="shift"),F=S==="none"?null:HK({...ae,padding:{top:$.top+z,right:$.right+z,bottom:$.bottom+z,left:$.left+z},mainAxis:!w&&S==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:R}),ge=O?null:FK(he=>{const $e=AC(he.elements.floating).documentElement;return{...ae,rootBoundary:w?{x:0,y:0,width:$e.clientWidth,height:$e.clientHeight}:void 0,mainAxis:E!=="none",crossAxis:X,limiter:l||w?void 0:BK(Be=>{if(!le.current)return{};const{width:Re,height:ze}=le.current.getBoundingClientRect(),Ye=Nt(Et(Be.placement)),wt=Ye==="y"?Re:ze,mn=Ye==="y"?$.left+$.right:$.top+$.bottom;return{offset:wt/2+mn/2}})}},[ae,l,w,$,E]);S==="shift"||E==="shift"||i==="center"?ue.push(ge,F):ue.push(F,ge),ue.push(WK({...ae,apply({elements:{floating:he},rects:{reference:$e},availableWidth:Be,availableHeight:Re}){Object.entries({"--available-width":`${Be}px`,"--available-height":`${Re}px`,"--anchor-width":`${$e.width}px`,"--anchor-height":`${$e.height}px`}).forEach(([ze,Ye])=>{he.style.setProperty(ze,Ye)})}}),cY(()=>({element:le.current||document.createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(he){const{elements:$e,middlewareData:Be,placement:Re,rects:ze,y:Ye}=he,wt=Et(Re),mn=Nt(wt),Jn=le.current,Zr=Be.arrow?.x||0,Jr=Be.arrow?.y||0,Bt=Jn?.clientWidth||0,Jt=Jn?.clientHeight||0,hn=Zr+Bt/2,Qn=Jr+Jt/2,Qr=Math.abs(Be.shift?.y||0),eo=ze.reference.height/2,mt=typeof o=="function"?o(cy(he,r,P)):o,to=Qr>mt,Sn={top:`${hn}px calc(100% + ${mt}px)`,bottom:`${hn}px ${-mt}px`,left:`calc(100% + ${mt}px) ${Qn}px`,right:`${-mt}px ${Qn}px`}[wt],no=`${hn}px ${ze.reference.y+eo-Ye}px`;return $e.floating.style.setProperty("--transform-origin",X&&mn==="y"&&to?no:Sn),{}}},lY,y),De(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,h]);const J=s.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:G,elements:Z,x:be,y:ve,middlewareData:W,update:_,placement:ce,context:Y,isPositioned:K,floatingStyles:oe}=SG({rootContext:h,placement:V,middleware:ue,strategy:n,whileElementsMounted:m?void 0:(...he)=>ey(...he,J),nodeId:b,externalTree:C}),{sideX:ye,sideY:Ee}=W.adaptiveOrigin||_s,xe=K?n:"fixed",Ae=s.useMemo(()=>y?{position:xe,[ye]:be,[Ee]:ve}:{position:xe,...oe},[y,xe,ye,be,Ee,ve,oe]),Ie=s.useRef(null);De(()=>{if(!g)return;const he=j.current,$e=typeof he=="function"?he():he,Re=(ly($e)?$e.current:$e)||null||null;Re!==Ie.current&&(G.setPositionReference(Re),Ie.current=Re)},[g,G,I,j]),s.useEffect(()=>{if(!g)return;const he=j.current;typeof he!="function"&&ly(he)&&he.current!==Ie.current&&(G.setPositionReference(he.current),Ie.current=he.current)},[g,G,I,j]),s.useEffect(()=>{if(m&&g&&Z.domReference&&Z.floating)return ey(Z.domReference,Z.floating,_,J)},[m,g,Z,_,J]);const Ue=Et(ce),tt=e5(r,Ue,P),nt=Zn(ce)||"center",Ce=!!W.hide?.referenceHidden;De(()=>{k&&g&&K&&L(Ue)},[k,g,K,Ue]);const Oe=s.useMemo(()=>({position:"absolute",top:W.arrow?.y,left:W.arrow?.x}),[W.arrow]),Ne=W.arrow?.centerOffset!==0;return s.useMemo(()=>({positionerStyles:Ae,arrowStyles:Oe,arrowRef:le,arrowUncentered:Ne,side:tt,align:nt,physicalSide:Ue,anchorHidden:Ce,refs:G,context:Y,isPositioned:K,update:_}),[Ae,Oe,le,Ne,tt,nt,Ue,Ce,G,Y,K,_])}function ly(e){return e!=null&&"current"in e}function t5(e){return e==="starting"?l_:Ot}const fY=s.forwardRef(function(t,n){const{render:r,className:o,anchor:i,positionMethod:a="absolute",side:c="top",align:u="center",sideOffset:l=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:v=!1,collisionAvoidance:w=u_,...b}=t,y=qi(),k=nY(),C=y.useState("open"),x=y.useState("mounted"),L=y.useState("trackCursorAxis"),S=y.useState("disableHoverablePopup"),E=y.useState("floatingRootContext"),R=y.useState("instantType"),T=y.useState("transitionStatus"),D=dY({anchor:i,positionMethod:a,floatingRootContext:E,mounted:x,side:c,sideOffset:l,align:u,alignOffset:d,collisionBoundary:f,collisionPadding:m,sticky:g,arrowPadding:h,disableAnchorTracking:v,keepMounted:k,collisionAvoidance:w,adaptiveOrigin:uY}),I=s.useMemo(()=>{const A={};return(!C||L==="both"||S)&&(A.pointerEvents="none"),{role:"presentation",hidden:!x,style:{...D.positionerStyles,...A}}},[C,L,S,x,D.positionerStyles]),j=s.useMemo(()=>({open:C,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:L!=="none"?"tracking-cursor":R}),[C,D.side,D.align,D.anchorHidden,L,R]),H=s.useMemo(()=>({...j,arrowRef:D.arrowRef,arrowStyles:D.arrowStyles,arrowUncentered:D.arrowUncentered}),[j,D.arrowRef,D.arrowStyles,D.arrowUncentered]),P=Xo("div",t,{state:j,props:[I,t5(T),b],ref:[n,y.useStateSetter("positionerElement")],stateAttributesMapping:XC});return p.jsx(JC.Provider,{value:H,children:P})});function uy(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Tt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r;return(Hr(n)!==i||Hr(r)!==a)&&(n=i,r=a),{width:n,height:r}}const pY=typeof ResizeObserver<"u",mY=()=>!0;function hY(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:i=mY,onMeasureLayout:a,onMeasureLayoutComplete:c,side:u,direction:l}=e,d=s.useRef(!0),f=KC(t,!0,!1),m=TC(),h=s.useRef(null),g=je(a),v=je(c),w=s.useMemo(()=>{let b=u==="top",y=u==="left";return l==="rtl"?(b=b||u==="inline-end",y=y||u==="inline-end"):(b=b||u==="inline-start",y=y||u==="inline-start"),b?{position:"absolute",[u==="top"?"bottom":"top"]:"0",[y?"right":"left"]:"0"}:Ot},[u,l]);De(()=>{if(!o||!i()||!pY){d.current=!0,h.current=null;return}if(!t||!n)return;Object.entries(w).forEach(([R,T])=>{t.style.setProperty(R,T)});const b=new ResizeObserver(R=>{const T=R[0];T&&(h.current===null?h.current={width:Math.ceil(T.borderBoxSize[0].inlineSize),height:Math.ceil(T.borderBoxSize[0].blockSize)}:(h.current.width=Math.ceil(T.borderBoxSize[0].inlineSize),h.current.height=Math.ceil(T.borderBoxSize[0].blockSize)))});b.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const y=ho(t,"position","static"),k=ho(t,"transform","none"),C=ho(t,"scale","1"),x=ho(n,"--available-width","max-content"),L=ho(n,"--available-height","max-content");if(g?.(),d.current||h.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const R=uy(t);return n.style.setProperty("--positioner-width",`${R.width}px`),n.style.setProperty("--positioner-height",`${R.height}px`),y(),k(),C(),x(),L(),v?.(null,R),d.current=!1,()=>{b.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const S=uy(t);t.style.setProperty("--popup-width",`${h.current.width}px`),t.style.setProperty("--popup-height",`${h.current.height}px`),y(),k(),x(),L(),v?.(h.current,S),n.style.setProperty("--positioner-width",`${S.width}px`),n.style.setProperty("--positioner-height",`${S.height}px`);const E=new AbortController;return m.request(()=>{t.style.setProperty("--popup-width",`${S.width}px`),t.style.setProperty("--popup-height",`${S.height}px`),f(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},E.signal)}),()=>{b.disconnect(),E.abort(),m.cancel()}},[r,t,n,f,m,i,o,g,v,w])}function ho(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const gY={...XC,...UG},bY=s.forwardRef(function(t,n){const{className:r,render:o,...i}=t,a=qi(),{side:c,align:u}=sY(),l=a.useState("open"),d=a.useState("mounted"),f=a.useState("instantType"),m=a.useState("transitionStatus"),h=a.useState("popupProps"),g=a.useState("payload"),v=a.useState("popupElement"),w=a.useState("positionerElement"),b=a.useState("floatingRootContext"),y=QC();GC({open:l,ref:a.context.popupRef,onComplete(){l&&a.context.onOpenChangeComplete?.(!0)}});function k(){b.context.events.emit("measure-layout")}function C(T,D){b.context.events.emit("measure-layout-complete",{previousDimensions:T,nextDimensions:D})}hY({popupElement:v,positionerElement:w,mounted:d,content:g,enabled:()=>a.context.triggerElements.size>1,onMeasureLayout:k,onMeasureLayoutComplete:C,side:c,direction:y});const L=a.useState("disabled"),S=a.useState("closeDelay");PG(b,{enabled:!L,closeDelay:S});const E=s.useMemo(()=>({open:l,side:c,align:u,instant:f,transitionStatus:m}),[l,c,u,f,m]);return Xo("div",t,{state:E,ref:[n,a.context.popupRef,a.useStateSetter("popupElement")],props:[h,t5(m),i],stateAttributesMapping:gY})}),vY=function(t){const{delay:n,closeDelay:r,timeout:o=400}=t,i=s.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),a=s.useMemo(()=>({open:n,close:r}),[n,r]);return p.jsx(qC.Provider,{value:i,children:p.jsx(GU,{delay:a,timeoutMs:o,children:t.children})})};function yY({delay:e=500,...t}){return p.jsx(vY,{delay:e,...t})}function wY({...e}){return p.jsx(HG,{"data-slot":"tooltip",...e})}function xY({...e}){return p.jsx(tY,{"data-slot":"tooltip-trigger",...e})}function CY({className:e,side:t="top",sideOffset:n=8,align:r="center",alignOffset:o=0,children:i,hidden:a,...c}){return a?null:p.jsx(oY,{children:p.jsx(fY,{align:r,alignOffset:o,side:t,sideOffset:n,className:"isolate z-[80]",children:p.jsx(bY,{"data-slot":"tooltip-content",className:Ge("z-[80] w-fit max-w-xs rounded-md border border-[var(--hud-border)] bg-[var(--hud-surface)] px-2.5 py-1.5 text-sm font-medium text-sidebar-foreground shadow-md",e),...c,children:i})})})}const kY="260px",EY="48px",n5=s.createContext(null);function ap(){const e=s.useContext(n5);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function LY({defaultOpen:e=!1,open:t,onOpenChange:n,className:r,style:o,children:i,...a}){const[c,u]=s.useState(e),l=t??c,d=s.useCallback(g=>{const v=typeof g=="function"?g(l):g;n?n(v):u(v)},[n,l]),f=s.useCallback(()=>{d(g=>!g)},[d]),m=l?"expanded":"collapsed",h=s.useMemo(()=>({state:m,open:l,setOpen:d,toggleSidebar:f}),[m,l,d,f]);return p.jsx(n5.Provider,{value:h,children:p.jsx(yY,{delay:200,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":kY,"--sidebar-width-icon":EY,...o},className:Ge("group/sidebar-wrapper contents",r),...a,children:i})})})}function SY({side:e="left",variant:t="sidebar",collapsible:n="icon",className:r,children:o,...i}){const{state:a}=ap();return n==="none"?p.jsx("div",{"data-slot":"sidebar","data-sidebar":"primary",className:Ge("pointer-events-auto flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...i,children:o}):p.jsx("div",{className:"group peer text-sidebar-foreground","data-state":a,"data-collapsible":a==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:p.jsx("div",{"data-slot":"sidebar-container","data-sidebar":"primary","data-side":e,className:Ge("pointer-events-auto fixed z-40 flex w-(--sidebar-width) flex-col transition-[left,right,width] duration-200 ease-linear","top-[var(--scout-sidebar-top,0px)] bottom-[28px]","data-[side=left]:left-0 data-[side=right]:right-0",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-sidebar-border",r),...i,children:p.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full min-h-0 flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})})}function $Y({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Ge("flex flex-col gap-2 p-2",e),...t})}function jY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:Ge("flex flex-col gap-2 p-2",e),...t})}function OY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Ge("flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function ju({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Ge("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Ou({className:e,render:t,...n}){return Uf({defaultTagName:"div",props:Ui({className:Ge("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e)},n),render:t,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function Ru({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:Ge("w-full text-sm",e),...t})}function Us({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Ge("flex w-full min-w-0 flex-col gap-0",e),...t})}function yo({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Ge("group/menu-item relative",e),...t})}const RY=m_("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function wo({render:e,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a}){const{state:c}=ap(),[u,l]=s.useState(!1);s.useEffect(()=>{l(!1)},[c]);const d=Uf({defaultTagName:"button",props:Ui({className:Ge(RY({variant:n,size:r}),i)},a),render:o?p.jsx(xY,{render:e}):e,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:t}});return o?(typeof o=="string"&&(o={children:o}),p.jsxs(wY,{open:c==="collapsed"&&u,onOpenChange:f=>l(c==="collapsed"&&f),children:[d,p.jsx(CY,{side:"right",align:"center",...o})]})):d}function MY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:Ge("pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",e),...t})}function PY({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:Ge("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",e),...t})}function TY({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:Ge("group/menu-sub-item relative",e),...t})}function AY({render:e,size:t="md",isActive:n=!1,className:r,...o}){return Uf({defaultTagName:"a",props:Ui({className:Ge("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",r)},o),render:e,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:t,active:n}})}function r5(e){const{pathname:t}=gy(),n=Pr("nav.sidebar",!1),r=I5(t);return s.useMemo(()=>{if(r){const a=U5(e);return{kind:"scope",items:K5.map(c=>({id:c.key,label:c.label,route:c.route,active:c.key===a})),activeId:a,sidebarChromeEnabled:n,scopePresentation:!0}}const o=Nn(e);return{kind:"scout",items:Ys.map(a=>({id:a.id,label:a.label,route:ky(a.id),active:a.id===o})),activeId:o,sidebarChromeEnabled:n,scopePresentation:!1}},[e,r,n])}const Md="data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-active:shadow-[inset_2px_0_0_0_var(--sidebar-primary,var(--hud-accent,oklch(0.86_0.17_125)))]";function dy({areas:e,activeAreaId:t,onNavigateArea:n,route:r,navigate:o,opsControlEnabled:i,presentation:a}){const{state:c}=ap(),u=c==="expanded",l=fk(r,{opsControlEnabled:i});return p.jsx(Us,{children:e.map(d=>{const f=a==="slack"&&d.id==="home",m=a==="slack"&&d.id==="chat",h=f?"chat":m?"home":d.id,g=m?Ik:d.icon,v=m?"Activity":d.label,w=h===t,b=u&&w&&l&&l.areaId===h?l.items:null;return p.jsxs(yo,{children:[p.jsxs(wo,{type:"button",isActive:w,tooltip:v,"aria-label":v,"aria-current":w?"page":void 0,"data-area":d.id,className:Ge("font-mono text-sm font-medium tracking-[0.02em]",Md),onClick:()=>n(d.id),children:[p.jsx(g,{size:16,strokeWidth:1.6,"aria-hidden":!0}),p.jsx("span",{children:v})]}),b&&b.length>0?p.jsx(PY,{children:b.map(y=>{const k=y.active(r);return p.jsx(TY,{children:p.jsx(AY,{render:p.jsx("button",{type:"button"}),isActive:k,"aria-current":k?"page":void 0,"data-subnav":y.id,className:"font-mono text-xs",onClick:()=>o(y.route),children:p.jsx("span",{children:y.label})})},y.id)})}):null]},d.id)})})}function IY({brandLabel:e="Scout",presentation:t="scout"}){const{route:n,navigate:r,openSettings:o,openContextCapture:i}=Zt(),{titleBarInset:a,dragRegionProps:c,onInteractiveMouseDown:u}=$i(),l=Pr("ops.control",!0),d=r5(n),f=Nn(n),m=Ys.filter(C=>C.section==="navigate"),h=Ys.filter(C=>C.section==="system"&&C.id!=="settings"),g=Ey("settings"),v=g.icon,w=f==="settings",b=()=>r(t==="slack"?{view:"messages"}:{view:"inbox"}),y=()=>i(),k=C=>{if(t==="slack"&&C==="home"){if(f==="chat")return;r({view:"messages"});return}if(t==="slack"&&C==="chat"){if(f==="home")return;r({view:"activity"});return}Nn(n)!==C&&r(ky(C,{opsControlEnabled:l}))};return p.jsxs(SY,{side:"left",variant:"sidebar",collapsible:"icon","aria-label":d.kind==="scope"?"Scope navigation":"Primary navigation","data-sidebar-kind":d.kind,"data-presentation":t,children:[p.jsx($Y,{className:"border-b border-sidebar-border",style:{paddingTop:a||0,...c?.style??{}},...Object.fromEntries(Object.entries(c??{}).filter(([C])=>C!=="style")),"data-sidebar-drag-region":"",children:p.jsx("div",{className:"flex items-center gap-0.5","data-sidebar":"brand-row",children:p.jsx(Us,{className:"min-w-0 flex-1",children:p.jsx(yo,{children:p.jsxs(wo,{type:"button",size:"lg",tooltip:"Home",onClick:b,onMouseDown:u,"aria-label":"Scout Home",title:"Home",className:Ge("data-[slot=sidebar-menu-button]:!p-2",t==="slack"?"font-sans":"font-mono"),children:[p.jsx(eC,{className:"size-[22px] shrink-0"}),p.jsx("span",{className:Ge("truncate text-sm font-bold",t==="slack"?"tracking-[-0.01em]":"tracking-[0.08em] uppercase"),children:e})]})})})})}),p.jsx(OY,{className:"gap-0",children:d.kind==="scope"?p.jsxs(ju,{children:[p.jsx(Ou,{"data-sidebar-head":"",className:"font-mono uppercase",children:"Surfaces"}),p.jsx(Ru,{children:p.jsx(Us,{children:d.items.map(C=>p.jsx(yo,{children:p.jsxs(wo,{type:"button",isActive:C.active,tooltip:C.label,"aria-current":C.active?"page":void 0,"data-area":C.id,"aria-label":C.label,title:C.label,className:Ge("font-mono text-sm font-medium",Md),onClick:()=>r(C.route),children:[p.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center text-sm font-bold uppercase","aria-hidden":!0,children:C.label.slice(0,1)}),p.jsx("span",{children:C.label})]})},C.id))})})]}):p.jsxs(p.Fragment,{children:[p.jsxs(ju,{children:[p.jsx(Ou,{"data-sidebar-head":"",className:"font-mono uppercase",children:"Navigate"}),p.jsx(Ru,{children:p.jsx(dy,{areas:m,activeAreaId:f,onNavigateArea:k,route:n,navigate:r,opsControlEnabled:l,presentation:t})})]}),p.jsxs(ju,{children:[p.jsx(Ou,{className:"font-mono text-2xs tracking-[0.12em] uppercase",children:"System"}),p.jsx(Ru,{children:p.jsx(dy,{areas:h,activeAreaId:f,onNavigateArea:k,route:n,navigate:r,opsControlEnabled:l,presentation:t})})]})]})}),p.jsx(jY,{className:"border-t border-sidebar-border",children:p.jsxs(Us,{className:"gap-1",children:[p.jsxs(yo,{children:[p.jsxs(wo,{type:"button",tooltip:`${xo} (${js})`,"aria-label":xo,"aria-keyshortcuts":js,"data-action":"new-task",className:"font-mono text-sm font-semibold tracking-[0.02em] [&_svg]:text-[var(--hud-accent)]",onClick:y,children:[p.jsx(mk,{size:16,strokeWidth:1.8,"aria-hidden":!0}),p.jsx("span",{children:xo})]}),p.jsx(MY,{className:"font-mono text-2xs text-sidebar-foreground/55",children:js})]}),p.jsx(yo,{children:p.jsxs(wo,{type:"button",isActive:w,tooltip:g.label,"aria-label":g.label,"aria-current":w?"page":void 0,"data-area":"settings",className:Ge("font-mono text-sm font-medium tracking-[0.02em]",Md),onClick:()=>o(),children:[p.jsx(v,{size:16,strokeWidth:1.6,"aria-hidden":!0}),p.jsx("span",{children:g.label})]})})]})})]})}const ut=48,NY=56,Pd=44,DY=28,fy=22,o5=Math.round((Pd-DY)/2),Mu=8;function Ks(e,t,n=ut){return t?Math.round((n-fy)/2):Number.isFinite(e)?Math.max(Mu,Math.round(e)-Mu-fy):Mu}const VY=ut,Wo=260,Td=200,Ad=360,FY=880,Id=260,Nd=240,Dd=400;function Pu(e){return Number.isFinite(e)?Math.max(Nd,Math.min(Dd,Math.round(e))):Id}const s5=40,BY=24;function i5(e,{min:t,max:n,startedCollapsed:r,collapsedWidth:o=ut}){if(!Number.isFinite(e))return r?o:t;const i=Math.max(o,Math.min(n,Math.round(e)));if(r)return i;const a=t-s5;return i<a?ut:i}function a5({startedCollapsed:e,rawWidth:t},{min:n,max:r,collapsedWidth:o=ut}){const i=Number.isFinite(t)?Math.round(t):n;if(e)return i>=o+BY?{kind:"expand"}:{kind:"none"};const a=n-s5;return i<a?{kind:"collapse"}:{kind:"resize",width:Math.max(n,Math.min(r,i))}}function c5(e){return e.autoCollapsed?!e.forceExpanded:e.manualCollapsed}function Vd(e){return Number.isFinite(e)?Math.max(Td,Math.min(Ad,Math.round(e))):Wo}function HY(e,t=Wo,n=ut){return e?n:Vd(t)}function l5(e,t){return e.autoCollapsed?{manualCollapsed:e.manualCollapsed,forceExpanded:!t}:{manualCollapsed:t,forceExpanded:e.forceExpanded}}function WY(e){const t=c5(e);return l5(e,!t)}function u5({side:e,title:t,onToggle:n,edgeOffset:r=0,top:o=0,width:i=ut,glyph:a,body:c,style:u,className:l=""}){const d=!!c;return p.jsx("aside",{"data-scout-collapsed-rail":"","data-side":e,"data-pane":e==="left"?"side-rail-collapsed":"inspector-collapsed",className:["scout-collapsed-rail",d?"scout-collapsed-rail--rich":"",l].filter(Boolean).join(" "),style:{position:"fixed",top:o,bottom:28,width:i,zIndex:40,...e==="left"?{left:r}:{right:r},...u},"aria-label":`${t} (collapsed)`,onDoubleClick:f=>{f.target.closest("button, a, [role='button']")||n()},children:p.jsx("div",{className:"scout-collapsed-rail-body",children:c||(a?p.jsx("div",{className:"scout-collapsed-rail-glyph","aria-hidden":"true",children:a}):null)})})}const ta=10;function zY({route:e,onExpand:t}){switch(e.view){case"messages":case"conversation":return p.jsx(Ek,{onExpand:t});case"inbox":case"activity":case"briefings":return p.jsx(_Y,{onExpand:t});case"agents-v2":case"agent-info":return p.jsx(UY,{onExpand:t});case"terminal":return p.jsx(KY,{onExpand:t});case"ops":return p.jsx(GY,{onExpand:t});case"mesh":return p.jsx(YY,{onExpand:t});default:return p.jsx(Hn,{label:"Context",emptyMark:"·",onLabelClick:t,children:null})}}function _Y({onExpand:e}){const{agents:t,navigate:n,route:r}=Zt(),[o,i]=s.useState(null),a=by(r),c=s.useMemo(()=>Sy(t,a),[t,a]),u=s.useMemo(()=>bk(t,a),[t,a]),l=s.useMemo(()=>vk(o,u),[o,u]),d=s.useCallback(async()=>{i(await Au("/api/fleet").catch(()=>null))},[]);s.useEffect(()=>{d()},[d]),wk(g=>{(g.kind==="message.posted"||g.kind==="flight.updated"||g.kind==="presence.updated")&&d()});const f=s.useMemo(()=>{const g=new Set;for(const v of l?.needsAttention??[])v.agentId&&g.add(v.agentId);return g},[l]),m=s.useMemo(()=>c.filter(g=>f.has(g.id)).slice(0,4),[c,f]),h=s.useMemo(()=>{const g=new Set(m.map(v=>v.id));return[...c].filter(v=>!g.has(v.id)).sort((v,w)=>(w.updatedAt??w.createdAt??0)-(v.updatedAt??v.createdAt??0)).slice(0,ta-m.length)},[c,m]);return p.jsxs(Hn,{label:"Home",emptyMark:"H",labelTone:m.length>0?"attention":"default",labelCount:m.length>0?m.length:c.length||void 0,onLabelClick:e,children:[m.map(g=>p.jsx(py,{agent:g,attention:!0,onClick:()=>Cp(n,g,{returnTo:r})},`att-${g.id}`)),m.length>0&&h.length>0?p.jsx(Lk,{}):null,h.map(g=>p.jsx(py,{agent:g,onClick:()=>Cp(n,g,{returnTo:r})},g.id))]})}function UY({onExpand:e}){const{agents:t,navigate:n,route:r}=Zt(),o=by(r),i=s.useMemo(()=>Sy(t,o),[t,o]),a=s.useMemo(()=>{const u=new Map;for(const l of i){const d=(l.project??XY(l.projectRoot)??l.name??"project").trim(),f=d.toLowerCase(),m=u.get(f)??{name:d,needs:0,working:0,latest:0},h=gk(l.state);(h==="needs_attention"||h==="blocked")&&(m.needs+=1),(h==="in_turn"||h==="in_flight"||Ly(l.state))&&(m.working+=1),m.latest=Math.max(m.latest,l.updatedAt??l.createdAt??0),u.set(f,m)}return[...u.values()].sort((l,d)=>d.needs>0!=l.needs>0?d.needs>0?1:-1:d.latest-l.latest).slice(0,ta)},[i]),c=a.reduce((u,l)=>u+l.needs,0);return p.jsx(Hn,{label:"Crew",emptyMark:"C",labelTone:c>0?"attention":"default",labelCount:c>0?c:a.length||void 0,onLabelClick:e,children:a.map(u=>p.jsx(rn,{title:`${u.name}${u.needs?` · ${u.needs} need you`:""}`,tone:u.needs>0?"attention":"default",ava:Hd(u.name),avaColor:Bd(u.name),dot:u.needs>0?"attention":u.working>0?"live":null,onClick:()=>n({view:"agents-v2",...o?{machineId:o}:{}})},u.name))})}function KY({onExpand:e}){const{route:t,navigate:n}=Zt(),[r,o]=s.useState([]);s.useEffect(()=>{xk({includeDiscovered:!0}).then(o).catch(()=>{})},[]);const i=s.useMemo(()=>Ck(r).slice(0,ta),[r]),a=t.view==="terminal"?t.terminalSurfaceKey??null:null;return p.jsx(Hn,{label:"Term",emptyMark:"T",labelTone:i.length>0?"live":"default",labelCount:i.length||void 0,onLabelClick:e,children:i.map(c=>p.jsx(rn,{title:c.title,active:kk(c.key,a),tone:"neutral",ava:Hd(c.title),avaColor:Bd(c.title),onClick:()=>n({view:"terminal",terminalSurfaceKey:c.key,terminalSessionId:c.session.id})},c.key))})}function GY({onExpand:e}){const{route:t,navigate:n}=Zt(),r=t.view==="ops"?t.mode:void 0,o=[{id:"mission",title:"Mission",glyph:p.jsx(Dk,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"agents",title:"Agents",glyph:p.jsx(jy,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"lanes",title:"Agent Lanes",glyph:p.jsx($k,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"advisor",title:"Host Advisor",glyph:p.jsx(Oy,{size:13,strokeWidth:1.7,"aria-hidden":!0})}];return p.jsx(Hn,{label:"Operations",emptyMark:"O",labelTone:"default",onLabelClick:e,children:o.map(i=>p.jsx(rn,{title:i.title,active:r===i.id||!r&&i.id==="mission",tone:"neutral",glyph:i.glyph,onClick:()=>n({view:"ops",mode:i.id})},i.id))})}function YY({onExpand:e}){const{agents:t,navigate:n}=Zt(),{meshSnapshot:r}=q5(),o=s.useMemo(()=>r?yk(t,r):[],[t,r]),i=s.useMemo(()=>[...o].sort((c,u)=>u.agents.length-c.agents.length).slice(0,ta),[o]),a=i.filter(c=>c.online).length;return p.jsx(Hn,{label:"Network",emptyMark:"M",labelTone:a>0?"live":"default",labelCount:i.length||void 0,onLabelClick:e,children:i.map(c=>p.jsx(rn,{title:`${c.machineLabel} · ${c.agents.length}`,tone:c.online?"default":"neutral",ava:Hd(c.machineLabel),avaColor:Bd(c.machineLabel),dot:c.online?"live":null,onClick:()=>n({view:"mesh"})},c.machineId))})}function py({agent:e,attention:t,onClick:n}){const r=e.name??e.id,o=Ly(e.state);return p.jsx(rn,{title:t?`${r} · needs you`:r,tone:t?"attention":"default",avatarNode:p.jsx($y,{agent:e,name:r,size:28,tile:!0,presence:!1}),dot:t?"attention":o?"live":null,onClick:n})}function XY(e){if(!e)return null;const t=e.replace(/\/+$/,"").split("/");return t[t.length-1]||null}function qY(e,t){if(t)return!1;switch(e.view){case"inbox":case"activity":case"briefings":case"agents-v2":case"agent-info":case"terminal":case"messages":case"conversation":case"ops":case"mesh":case"mesh-ops":return!0;default:return!1}}function ZY({presentation:e="scout",navRailWidth:t,isCollapsed:n,onToggleCollapse:r,width:o,style:i,hideWhenEmpty:a=!0}){const{route:c,navigate:u}=Zt(),l=r5(c),d=l.kind==="scope"?{body:null,footer:null}:hk(c,u),f=!d.body&&!d.footer;if(a&&f)return null;const m=Nn(c),h=Ys.find(y=>y.id===m),g=l.kind==="scope"?"Scope":e==="slack"&&m==="chat"?"Scout":e==="slack"&&m==="home"?"Activity":h?.label??"Context",v=typeof i?.top=="number"?i.top:typeof i?.top=="string"&&Number.parseFloat(i.top)||0,b=t+Ks(n?ut:o,n);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"scout-side-rail-expanded-host","data-presentation":e,"data-collapsed":n?"true":"false",hidden:n,"aria-hidden":n,style:n?{display:"none"}:void 0,children:p.jsx(xd,{side:"left",title:g,isCollapsed:!1,width:o,style:{left:t,...i},footer:d.footer?d.footer:void 0,children:p.jsx("div",{"data-pane":"side-rail","data-scout-side-rail":"",style:{display:"contents"},children:d.body})})}),p.jsx("div",{className:"scout-side-rail-collapsed-host","data-presentation":e,"data-collapsed":n?"true":"false",hidden:!n,"aria-hidden":!n,style:n?void 0:{display:"none"},children:p.jsx(u5,{side:"left",title:g,onToggle:r,edgeOffset:t,top:v,style:i,body:p.jsx(zY,{route:c,onExpand:r})})}),p.jsx(Os,{side:"left",collapsed:n,label:g,onToggle:r,onMouseDown:y=>y.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",left:b,top:v+o5,zIndex:45}})]})}function JY(e){return Nn(e)==="ops"?"ops":null}function QY({items:e,route:t,navigate:n,className:r=""}){return e.length===0?null:p.jsx("nav",{className:`scout-area-subnav${r?` ${r}`:""}`,"aria-label":"Area sub-navigation","data-scout-area-subnav":"",children:e.map(o=>{const i=o.active(t);return p.jsx("button",{type:"button","aria-current":i?"page":void 0,className:`scout-area-subnav-item${i?" scout-area-subnav-item--active":""}`,onClick:()=>n(o.route),children:o.label},o.id)})})}function eX({rightUtility:e,centerUtility:t,crumbUtility:n,variant:r,presentation:o="scout",onOpenSearch:i,onInteractiveMouseDown:a}={}){const{route:c,navigate:u,navigateBack:l,canNavigateBack:d}=Zt(),f=rk(c),m=pk(c),h=JY(c),g=r==="top-row",v=!!m||h!==null;if(!g&&!f&&!m&&!h&&!e)return null;const w=v?p.jsxs(p.Fragment,{children:[m?p.jsx(QY,{items:m.items,route:c,navigate:u}):null,h==="ops"?p.jsx("div",{className:"scout-center-pane-secondary","data-scout-secondary-nav":"ops",children:p.jsx(jk,{activeRoute:c,navigate:u})}):null]}):null;if(g){const b=Ey(Nn(c)).label;if(o==="slack"){const y=Nn(c)==="chat"?"Home":Nn(c)==="home"?"Activity":b;return p.jsxs("div",{className:"scout-center-pane-header scout-center-pane-header--top-row scout-slack-topbar","data-scout-center-pane-header":"","data-scout-top-row":"","data-presentation":"slack",children:[p.jsxs("div",{className:"scout-slack-topbar-history",onMouseDown:a,children:[p.jsx("button",{type:"button","aria-label":"Go back",title:"Go back",onClick:()=>window.history.back(),children:p.jsx(kp,{size:16,strokeWidth:1.8,"aria-hidden":!0})}),p.jsx("button",{type:"button","aria-label":"Go forward",title:"Go forward",onClick:()=>window.history.forward(),children:p.jsx(Ok,{size:16,strokeWidth:1.8,"aria-hidden":!0})}),p.jsx("span",{children:y})]}),p.jsxs("button",{type:"button",className:"scout-slack-topbar-search","aria-label":"Search Scout",onMouseDown:a,onClick:i,children:[p.jsx(Ry,{size:15,strokeWidth:1.8,"aria-hidden":!0}),p.jsx("span",{children:"Search Scout"}),p.jsx("kbd",{children:"⌘K"})]}),e?p.jsx("div",{className:"scout-center-pane-header-utility scout-slack-topbar-utility","data-scout-header-utility":"",onMouseDown:a,children:e}):p.jsx("span",{})]})}return p.jsxs("div",{className:`scout-center-pane-header scout-center-pane-header--top-row${t?" scout-center-pane-header--centered":""}`,"data-scout-center-pane-header":"","data-scout-top-row":"","data-scout-has-secondary-row":v&&!n?"":void 0,children:[p.jsxs("div",{className:"scout-center-pane-header-main",onMouseDown:a,children:[p.jsx("button",{type:"button",className:"scout-top-row-back","aria-label":"Back","aria-keyshortcuts":"Meta+[",title:"Back (⌘[)",disabled:!d,onClick:l,children:p.jsx(kp,{size:16,strokeWidth:1.9,"aria-hidden":"true"})}),p.jsx("div",{className:"scout-center-pane-breadcrumb","data-scout-breadcrumb":"",children:p.jsx("span",{className:"scout-nav-crumb",children:b})}),n?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"scout-top-row-sep","aria-hidden":"true",children:"/"}),p.jsx("div",{className:"scout-center-pane-crumb-utility","data-scout-crumb-utility":"",children:n})]}):p.jsxs(p.Fragment,{children:[v?p.jsx("span",{className:"scout-top-row-sep","aria-hidden":"true",children:"/"}):null,w]})]}),t?p.jsx("div",{className:"scout-center-pane-header-center","data-scout-header-center":"",onMouseDown:a,children:t}):null,e?p.jsx("div",{className:"scout-center-pane-header-utility","data-scout-header-utility":"",onMouseDown:a,children:e}):null]})}return p.jsxs("div",{className:"scout-center-pane-header","data-scout-center-pane-header":"",children:[p.jsxs("div",{className:"scout-center-pane-header-main",onMouseDown:a,children:[f?p.jsx("div",{className:"scout-center-pane-breadcrumb","data-scout-breadcrumb":"",children:p.jsx("span",{className:"scout-nav-crumb",children:f})}):null,w]}),e?p.jsx("div",{className:"scout-center-pane-header-utility","data-scout-header-utility":"",onMouseDown:a,children:e}):null]})}const tX="https://openscout.app/docs";function nX({presentation:e="scout"}){const{onboarding:t,operatorName:n,refreshOnboarding:r}=Zt(),o=n||t?.operatorName?.trim()||t?.operatorNameSuggestion?.trim()||null,i=s.useRef(o==null),a=s.useRef(!1);return s.useEffect(()=>{o||!t||a.current||(a.current=!0,r())},[t,o,r]),p.jsxs("div",{className:"scout-top-row-identity","data-presentation":e,children:[p.jsx("a",{className:"scout-top-row-docs",href:tX,target:"_blank",rel:"noreferrer",title:"OpenScout documentation",children:e==="slack"?p.jsx(Sk,{size:16,strokeWidth:1.8,"aria-hidden":!0}):"docs"}),p.jsxs("span",{className:"scout-top-row-operator",title:o??void 0,"aria-label":o?`Operator ${o}`:"Operator",children:[p.jsx($y,{name:o??"operator",size:28,presence:!1,scaleWithPreference:!1}),e==="slack"?null:p.jsx("span",{className:"scout-top-row-handle","data-arriving":o==null||void 0,"data-arrived":o!=null&&i.current?"":void 0,children:o?`@${o.toLowerCase()}`:null})]})]})}function rX(e,t,n=ut){const r=`appshell.${e}.sidebar.manualCollapsed`,o=`appshell.${e}.sidebar.width`,[i,a]=Gt(r,!0),[c,u]=Gt(o,Wo),l=t<=FY,[d,f]=s.useState(!1),[m,h]=s.useState(null),[g,v]=s.useState(!1),[w,b]=s.useState(!1);s.useEffect(()=>{l||f(!1)},[l]);const k=c5({manualCollapsed:i,autoCollapsed:l,forceExpanded:d}),C=Vd(c),x=m!=null?i5(m,{min:Td,max:Ad,startedCollapsed:g,collapsedWidth:n}):null,L=HY(k,C,n),S=s.useCallback(()=>{const P=WY({manualCollapsed:i,autoCollapsed:l,forceExpanded:d});if(l){f(P.forceExpanded);return}a(P.manualCollapsed)},[l,d,i,a]),E=s.useCallback(P=>{const A=l5({manualCollapsed:i,autoCollapsed:l,forceExpanded:d},P);if(l){f(V=>V===A.forceExpanded?V:A.forceExpanded);return}a(V=>V===A.manualCollapsed?V:A.manualCollapsed)},[l,d,i,a]),R=s.useCallback(P=>{u(Vd(P))},[u]),T=s.useCallback(()=>{u(Wo),h(null)},[u]),D=s.useCallback((P,A=!1)=>{b(!0),v(A),h(P)},[]),I=s.useCallback(P=>{h(P)},[]),j=s.useCallback(()=>{h(null),b(!1)},[]),H=s.useCallback((P,A)=>{const V=a5({startedCollapsed:A,rawWidth:P},{min:Td,max:Ad,collapsedWidth:n});return V.kind==="collapse"?E(!0):V.kind==="expand"?E(!1):V.kind==="resize"&&u(V.width),h(null),b(!1),V},[n,E,u]);return{manualCollapsed:i,autoCollapsed:l,forceExpanded:d,effectiveCollapsed:k,width:L,expandedWidth:C,dragGhostWidth:x,dragStartedCollapsed:g,isSidebarResizing:w,toggleCollapsed:S,setCollapsed:E,setManualCollapsed:a,setExpandedWidth:R,resetExpandedWidth:T,beginResize:D,updateResize:I,clearDrag:j,commitDrag:H}}function oX({route:e,onExpand:t}){return e.view==="messages"||e.view==="conversation"?p.jsxs(Hn,{label:"Context",showLabel:!1,emptyMark:"·",children:[p.jsx(rn,{title:"Conversation",tone:"neutral",glyph:p.jsx(Ep,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),p.jsx(rn,{title:"Members",tone:"neutral",glyph:p.jsx(jy,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),p.jsx(rn,{title:"Workspace",tone:"neutral",glyph:p.jsx(Z5,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),p.jsx(rn,{title:"Activity",tone:"neutral",glyph:p.jsx(Oy,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t})]}):p.jsx(Hn,{label:"Context",showLabel:!1,emptyMark:"·",children:p.jsx(rn,{title:"Expand context",tone:"neutral",glyph:p.jsx(Ep,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t})})}function sX(e){return e.view==="ops"&&e.mode==="lanes"}function iX(e,t){return!sX(e)||!t||t.loading?!1:t.messageCount===0}function aX(e){return e.empty?!e.forceOpen:e.baseCollapsed}function cX(e){return(e.empty?!e.forceOpen:e.rightCollapsed)?{forceOpen:!0,rightCollapsed:e.empty?e.rightCollapsed:!1}:{forceOpen:!1,rightCollapsed:e.empty?e.rightCollapsed:!0}}function lX(e,t){switch(e.view){case"agents-v2":return!!(e.agentId||e.selectedAgentId||e.sessionId);case"agent-info":case"conversation":case"mesh":case"mesh-ops":case"repos":case"terminal":case"work":return!0;case"ops":return e.mode!=="lanes"&&e.mode!=="world";case"sessions":return!e.flightId;case"messages":return!!e.conversationId;case"search":return!!(e.hitId&&t.hasKnowledgeHit);case"broker":return!!(e.attemptId&&t.hasBrokerAttempt);case"activity":case"briefings":case"code":case"follow":case"harnesses":case"inbox":case"repo-diff":case"settings":case"voice":return!1}}function uX(e){if(!e.available)return null;if(e.terminalFocusActive)return{terminalFocusActive:!1,lanesContextForceOpen:e.lanesContextForceOpen,rightCollapsed:!1};if(e.lanesContextRoute){const t=cX({empty:e.lanesContextEmpty,forceOpen:e.lanesContextForceOpen,rightCollapsed:e.rightCollapsed});return{terminalFocusActive:!1,lanesContextForceOpen:t.forceOpen,rightCollapsed:t.rightCollapsed}}return{terminalFocusActive:!1,lanesContextForceOpen:e.lanesContextForceOpen,rightCollapsed:!e.rightCollapsed}}const $s=240,dX=900,fX=.45,pX=500,mX=420,hX=480,gX=520,Tu=560,bX=1500,vX=40;function my(e){return Math.min(dX,Math.max(pX,Math.floor(e*fX)))}function yX({title:e,center:t,actions:n,search:r}){const{dragRegionProps:o,onInteractiveMouseDown:i}=$i(),{navTotalHeight:a}=qd(),c=!!r?.value,u=s.useRef(null),l=s.useRef(null),d=s.useRef(null),f=s.useRef(null);return s.useEffect(()=>{const m=u.current;if(!m)return;const h=()=>{const w=(l.current?.offsetWidth??0)+16,b=(d.current?.offsetWidth??0)+16,y=f.current?.firstElementChild?.clientWidth??0;m.style.setProperty("--scout-nav-left-w",`${w}px`),m.style.setProperty("--scout-nav-right-w",`${b}px`),m.style.setProperty("--scout-nav-strip-w",`${y}px`)};h();const g=new ResizeObserver(h),v=f.current?.firstElementChild;for(const w of[l.current,d.current,v])w&&g.observe(w);return window.addEventListener("resize",h),()=>{g.disconnect(),window.removeEventListener("resize",h)}},[]),p.jsx("div",{ref:u,"data-frame-panel":"navigation",className:"fixed top-0 left-0 right-0 z-50 pointer-events-auto",...o,children:p.jsxs("div",{className:"bg-background/95 border-b shadow-[var(--hud-shadow-nav)] flex items-end px-4",style:{height:a,borderColor:"var(--hud-chrome-border, oklch(var(--border) / 0.8))"},children:[p.jsx("div",{ref:l,className:"absolute left-4 bottom-0 h-12 z-10 flex items-center gap-2.5 select-none",onMouseDown:i,children:p.jsxs("div",{"aria-label":e,className:"flex items-center gap-2 rounded-sm px-0.5 -mx-0.5 leading-none text-foreground/90",children:[p.jsx(eC,{className:"h-[22px] w-[22px] text-[var(--scout-chrome-ink-strong,currentColor)]"}),p.jsx("span",{className:"font-mono text-sm font-medium tracking-[0.06em] leading-none",children:e})]})}),t&&p.jsx("div",{ref:f,className:"flex-1 flex justify-center h-12 items-center",onMouseDown:i,children:t}),p.jsxs("div",{ref:d,className:"absolute right-4 bottom-0 h-12 z-10 flex items-center gap-3",onMouseDown:i,children:[n,r&&p.jsxs("div",{className:"hidden sm:block relative w-[220px] max-w-[34vw] bg-card border border-input rounded px-2.5 shadow-[inset_0_1px_0_oklch(var(--foreground)/0.02)] hover:border-ring/60 focus-within:border-ring focus-within:bg-card transition-colors duration-200",children:[p.jsx(Ry,{size:11,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),p.jsx("input",{type:"text",value:r.value,onChange:m=>r.onChange(m.target.value),placeholder:r.placeholder??"Search",className:`
|
|
27
|
-
w-full h-7 pl-5 pr-6 bg-transparent text-sm font-mono font-normal tracking-[0.02em]
|
|
28
|
-
placeholder:text-muted-foreground/80 placeholder:font-light text-foreground
|
|
29
|
-
focus:outline-none transition-all duration-200
|
|
30
|
-
${c?"text-accent":""}
|
|
31
|
-
`}),c&&p.jsx("button",{type:"button",onClick:()=>r.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded-sm",children:p.jsx(Fd,{size:12})})]})]})]})})}function hee({app:e}){return p.jsx(T5,{registry:V5,audience:D5,audienceOrder:vy,storageKey:N5,initialLayers:F5(),children:p.jsx(e.Provider,{children:p.jsx(Nz,{children:p.jsx(CX,{app:e})})})})}function wX({statusBar:e,dictationActive:t}){const n=Pr("surface.scoutbot",!0),r=Pr(Cy,!0),o=e.mesh.color==="amber"?"text-amber-400":e.mesh.color==="red"?"text-red-400":"text-foreground";return p.jsxs("div",{className:"flex items-center gap-3 font-mono leading-none",children:[p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx("span",{className:"text-2xs font-normal uppercase tracking-[0.16em] text-muted-foreground",children:e.mesh.label}),p.jsx("span",{className:`text-xs ${o}`,children:e.mesh.value})]}),(n||r)&&p.jsxs(p.Fragment,{children:[p.jsx("span",{"aria-hidden":"true",className:"select-none text-muted-foreground/40 text-xs",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1",children:[n&&p.jsx(ek,{}),r&&p.jsx(Kz,{dictationActive:t})]})]})]})}function xX({statusBar:e,onOpenFlagPanel:t,onOpenActivityLog:n}){return p.jsxs("div",{className:"flex max-w-[42vw] items-center gap-3",children:[p.jsx(_z,{onOpen:n}),p.jsx("span",{"aria-hidden":"true",className:"select-none text-muted-foreground/40 text-xs",children:"·"}),p.jsx(Rz,{onOpenPanel:t}),p.jsx("div",{className:"truncate font-mono text-xs leading-none text-muted-foreground",title:e.build.title,children:e.build.label})]})}function CX({app:e}){const{navTotalHeight:t}=qd(),{titleBarInset:n,dragRegionProps:r,onInteractiveMouseDown:o}=$i(),i=Bz();B5();const{route:a,openContextCapture:c,apiConnection:u,navigate:l,navigateBack:d,selectedBrokerAttempt:f,selectedKnowledgeHit:m,appearanceDetails:h}=Zt(),g=gy(),v=h.shell==="slack",w=Pr("nav.sidebar",!1),b=v||w,y=b?n:t,k=b,C=k?vX:0,x=y+C,L=x+o5,S=X5(),E=e.hooks.useCommands(),R=e.hooks.useSearch?.()??null,T=e.hooks.useNavCenter?.()??null,D=e.hooks.useNavActions?.()??null,I=e.hooks.useLayoutMode?.()??e.mode,j=I==="focus"?"panel":I,H=e.hooks.useActiveToolHint?.()??null,P=e.hooks.useTakeover?.()??null,A=P?.active===!0,V=A&&P?.dismissible===!0,$=P?.onDismiss,z=e.slots.Takeover,M=ok();Yz(M,u);const q=Dz(),[ee,te]=s.useState(!1),[ae,le]=Gt(`appshell.${e.id}.left`,!1),[ne,re]=Gt(`appshell.${e.id}.right`,!1),[se,ie]=Gt(`appshell.${e.id}.rightOverlay`,!1),[ue,O]=Gt(`appshell.${e.id}.leftW`,260),[X,F]=Gt(`appshell.${e.id}.rightW`,280),[ge,J]=Gt("openscout.ops.minimap.collapsed",!1),[G,Z]=Gt(`appshell.${e.id}.terminalFocus`,!1),[be,ve]=s.useState(()=>typeof window<"u"?window.innerWidth:1280),[W,_]=s.useState(()=>my(typeof window<"u"?window.innerWidth:1280)),ce=a.view==="search"||g.pathname==="/search",Y=v?NY:VY,K=rX(e.id,be,Y),oe=b&&a.view==="terminal"&&G,[ye,Ee]=s.useState(null),[xe,Ae]=s.useState(!1),Ie=s.useRef(null),Ue=s.useRef(null),tt=ye!=null,nt=ye!=null?i5(ye,{min:Nd,max:Dd,startedCollapsed:xe}):null,[Ce,Oe]=s.useState(null),Ne=s.useRef(null);s.useEffect(()=>{const U=()=>{ve(window.innerWidth),_(my(window.innerWidth))};return U(),window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]);const{active:he,brandLabel:$e}=G5({route:a});s.useEffect(()=>(document.documentElement.style.setProperty("--scout-rail-collapsed-width",`${ut}px`),b?(document.documentElement.setAttribute("data-scout-sidebar-chrome",""),document.documentElement.style.setProperty("--scout-nav-rail-width",`${K.width}px`),K.isSidebarResizing?document.documentElement.setAttribute("data-scout-sidebar-resizing",""):document.documentElement.removeAttribute("data-scout-sidebar-resizing")):(document.documentElement.removeAttribute("data-scout-sidebar-chrome"),document.documentElement.removeAttribute("data-scout-sidebar-resizing"),document.documentElement.style.removeProperty("--scout-nav-rail-width")),()=>{document.documentElement.removeAttribute("data-scout-sidebar-chrome"),document.documentElement.removeAttribute("data-scout-sidebar-resizing"),document.documentElement.style.removeProperty("--scout-nav-rail-width")}),[b,K.width,K.isSidebarResizing]),s.useEffect(()=>{O(b?U=>Pu(U):U=>Math.min(W,Math.max($s,U))),F(U=>Math.min(W,Math.max($s,U)))},[b,W,O,F]),s.useEffect(()=>{!ce||ne||se||F(U=>Math.max(U,Math.min(W,mX)))},[ce,ne,se,F,W]);const Re=a.view==="agents-v2"&&!a.agentId&&!a.sessionId&&!!a.selectedAgentId||a.view==="agents-v2"&&!!a.agentId;s.useEffect(()=>{!Re||ne||se||F(U=>Math.max(U,Math.min(W,hX)))},[Re,ne,se,F,W]);const ze=a.view==="broker"&&!!a.attemptId;s.useEffect(()=>{ze&&(re(!1),F(U=>Math.max(U,Math.min(W,gX))))},[ze,re,F,W]);const[Ye,wt]=s.useState({x:0,y:0}),[mn,Jn]=s.useState(1),Zr=s.useCallback(U=>{wt(Q=>({x:Q.x+U.x,y:Q.y+U.y}))},[]),Jr=s.useCallback(U=>{Jn(U)},[]),[Bt,Jt]=s.useState(!1),[hn,Qn]=s.useState(!1),[Qr,eo]=Gt(`appshell.${e.id}.termH`,320),mt=!!e.slots.Terminal,[to,Sn]=s.useState(!1),[no,vr]=s.useState(!1),[d5,f5]=s.useState(new Set),na=s.useRef(!1),yr=s.useRef(null),$n=s.useCallback(()=>{na.current=!1,yr.current!==null&&(window.clearTimeout(yr.current),yr.current=null)},[]),cp=s.useCallback(()=>{na.current=!0,yr.current!==null&&window.clearTimeout(yr.current),yr.current=window.setTimeout($n,bX)},[$n]);s.useEffect(()=>$n,[$n]);const p5=s.useCallback(U=>{f5(Q=>{const Me=new Set(Q);return Me.has(U)?Me.delete(U):Me.add(U),Me})},[]),lp=s.useCallback(U=>Q=>{Q.preventDefault();const Me=Q.clientX,Lt=U==="left"?ue:X,ht=U==="left"?O:F,qe=U==="left"?1:-1,jn=St=>{const ct=(St.clientX-Me)*qe;ht(Math.max($s,Math.min(W,Lt+ct)))},Ht=()=>{document.removeEventListener("mousemove",jn),document.removeEventListener("mouseup",Wt),window.removeEventListener("blur",Ht)},Wt=()=>Ht();document.addEventListener("mousemove",jn),document.addEventListener("mouseup",Wt),window.addEventListener("blur",Ht)},[ue,X,O,F,W]),[Jo,m5]=s.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);s.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const U=window.matchMedia("(prefers-reduced-motion: reduce)"),Q=()=>m5(U.matches);return Q(),U.addEventListener?.("change",Q),()=>U.removeEventListener?.("change",Q)},[]);const Qo=s.useCallback(U=>{Jo||(Oe(U),Ne.current!==null&&window.clearTimeout(Ne.current),Ne.current=window.setTimeout(()=>{Oe(null),Ne.current=null},150))},[Jo]);s.useEffect(()=>()=>{Ne.current!==null&&window.clearTimeout(Ne.current)},[]);const h5=s.useCallback(U=>{U.preventDefault(),U.stopPropagation();const Q=K.effectiveCollapsed,Me=U.clientX,Lt=Q?Y:K.expandedWidth;Ue.current=Lt,K.beginResize(Lt,Q);const ht=()=>{document.removeEventListener("pointermove",qe),document.removeEventListener("pointerup",jn),document.removeEventListener("pointercancel",Ht),window.removeEventListener("blur",Ht)},qe=Wt=>{const St=Lt+(Wt.clientX-Me);Ue.current=St,K.updateResize(St)},jn=()=>{const Wt=Ue.current??Lt,St=K.commitDrag(Wt,Q),ct=St.kind==="collapse"?Y:St.kind==="expand"?K.expandedWidth:St.kind==="resize"?St.width:null;ct!=null&&Qo(ct),ht()},Ht=()=>{K.clearDrag(),ht()};document.addEventListener("pointermove",qe),document.addEventListener("pointerup",jn),document.addEventListener("pointercancel",Ht),window.addEventListener("blur",Ht)},[K,Y,Qo]),g5=s.useCallback((U,Q)=>Me=>{Me.preventDefault(),Me.stopPropagation();const Lt=Me.clientX,ht=Q?ut:Pu(ue);Ie.current=ht,Ee(ht),Ae(Q);const qe=()=>{document.removeEventListener("pointermove",jn),document.removeEventListener("pointerup",Ht),document.removeEventListener("pointercancel",Wt),window.removeEventListener("blur",Wt)},jn=St=>{const ct=ht+(St.clientX-Lt);Ie.current=ct,Ee(ct)},Ht=()=>{const St=Ie.current??ht,ct=a5({startedCollapsed:Q,rawWidth:St},{min:Nd,max:Dd});ct.kind==="collapse"?le(!0):ct.kind==="expand"?le(!1):ct.kind==="resize"&&O(ct.width),Ee(null),Ie.current=null;const xp=ct.kind==="collapse"?U+ut:ct.kind==="expand"?U+Pu(ue):ct.kind==="resize"?U+ct.width:null;xp!=null&&Qo(xp),qe()},Wt=()=>{Ee(null),Ie.current=null,qe()};document.addEventListener("pointermove",jn),document.addEventListener("pointerup",Ht),document.addEventListener("pointercancel",Wt),window.addEventListener("blur",Wt)},[ue,le,O,Qo]),up=a.view==="agents-v2",dp=lX(a,{hasBrokerAttempt:!!f,hasKnowledgeHit:!!m}),es=a.view==="ops"&&a.mode==="lanes",[ts,ra]=s.useState(!1),b5=S.state.conversation,ro=iX(a,b5);s.useEffect(()=>{es||ra(!1)},[es]),s.useEffect(()=>{ro||ra(!1)},[ro]);const oo=aX({empty:ro,forceOpen:ts,baseCollapsed:ne||he}),oa=!oe&&!he&&dp,sa=mt,so=!he&&dp,ns=oa&&!oo,Qt=s.useCallback(()=>{const U=uX({available:so,terminalFocusActive:oe,lanesContextRoute:es,lanesContextEmpty:ro,lanesContextForceOpen:ts,rightCollapsed:ne});U&&(U.terminalFocusActive!==oe&&Z(U.terminalFocusActive),U.lanesContextForceOpen!==ts&&ra(U.lanesContextForceOpen),U.rightCollapsed!==ne&&re(U.rightCollapsed))},[ro,ts,es,ne,so,re,Z,oe]),fp=s.useMemo(()=>[{id:"nav:back",label:"Back",shortcut:"Cmd+[",action:d},{id:"shell:toggle-sidebar-b",label:"Toggle Sidebar",shortcut:"Cmd+B",action:()=>{b?K.toggleCollapsed():le(Me=>!Me)}},{id:"shell:toggle-right",label:"Toggle Right Panel",shortcut:"Cmd+]",action:Qt},{id:"shell:toggle-right-overlay",label:"Toggle Inspector Overlay",shortcut:"Cmd+Shift+]",action:()=>ie(Me=>!Me)},{id:"shell:new-session",label:xo,shortcut:js,action:()=>c()},{id:"shell:toggle-terminal",label:"Toggle Terminal",shortcut:"Ctrl+`",action:()=>Jt(Me=>!Me)},...b&&a.view==="terminal"?[{id:"shell:terminal-focus",label:G?"Exit Terminal Focus":"Focus Terminal",shortcut:"Cmd+Shift+B",action:()=>Z(Me=>!Me)}]:[],{id:"shell:feature-flags",label:"Feature Flags",shortcut:Gs()?"Cmd+Shift+F":void 0,action:()=>vr(!0)}],[c,d,a,le,ie,vr,Z,b,K,G,Qt]),v5=s.useMemo(()=>[...E,...fp],[E,fp]);s.useEffect(()=>{const U=Q=>{if(H5(Q)&&!A&&!i.open&&!W5()&&b&&a.view==="terminal"){Q.preventDefault(),Q.stopPropagation(),Z(qe=>!qe);return}if(z5(Q.target)||A||i.open)return;const Me=Q.key.toLowerCase(),Lt=Q.metaKey||Q.ctrlKey||Q.altKey,ht=wy(Q.target);if(na.current)if(Q.key==="Escape"||Lt||ht)$n();else{const qe=ak(Me);if(qe){Q.preventDefault(),Q.stopPropagation(),$n(),l(qe.route);return}else $n()}if(!Lt&&!Q.shiftKey&&Me==="g"&&!ht){Q.preventDefault(),Q.stopPropagation(),cp();return}if((Q.metaKey||Q.ctrlKey)&&Q.key==="k"&&(Q.preventDefault(),Sn(!0)),sk(Q)&&(Q.preventDefault(),c()),(Q.metaKey||Q.ctrlKey)&&Q.key==="["&&(Q.preventDefault(),d()),(Q.metaKey||Q.ctrlKey)&&Q.key.toLowerCase()==="b"){if(ht)return;Q.preventDefault(),b?K.toggleCollapsed():le(qe=>!qe)}(Q.metaKey||Q.ctrlKey)&&Q.key==="]"&&(Q.preventDefault(),Q.shiftKey?ie(qe=>!qe):Qt()),Q.ctrlKey&&Q.key==="`"&&(Q.preventDefault(),Jt(qe=>!qe)),mt&&(Q.metaKey||Q.ctrlKey)&&Q.key==="j"&&(Q.preventDefault(),Jt(qe=>!qe)),Gs()&&(Q.metaKey||Q.ctrlKey)&&Q.shiftKey&&!Q.altKey&&Q.code==="KeyF"&&(Q.preventDefault(),Q.stopPropagation(),vr(!0))};return window.addEventListener("keydown",U,!0),()=>window.removeEventListener("keydown",U,!0)},[$n,mt,i.open,d,l,c,a,le,re,ie,vr,Z,b,K,cp,A,Qt]),s.useEffect(()=>{const U=Q=>{const Me=Q.detail,Lt=typeof Me?.width=="number"?Me.width:420;re(!1),F(ht=>Math.max(ht,Math.min(W,Math.max($s,Lt))))};return window.addEventListener("scout:set-inspector-width",U),()=>window.removeEventListener("scout:set-inspector-width",U)},[re,F,W]),s.useEffect(()=>{const U=()=>Z(Q=>!Q);return window.addEventListener("scout:terminal-focus-toggle",U),()=>window.removeEventListener("scout:terminal-focus-toggle",U)},[Z]);const ia=e.slots.Inspector,pp=e.slots.RightPanel,y5=e.tools&&e.tools.length>0,w5=p.jsxs(p.Fragment,{children:[ia&&p.jsx(ia,{}),!ia&&pp&&p.jsx(pp,{}),y5&&p.jsx("div",{className:"border-t border-neutral-700/50",children:e.tools.map(U=>{const Q=d5.has(U.id);return p.jsxs("div",{children:[p.jsxs("button",{onClick:()=>p5(U.id),className:`w-full flex items-center gap-2 px-4 py-2.5 text-sm font-mono tracking-wider uppercase transition-colors hover:bg-white/5 ${H===U.id?"text-emerald-400":"text-neutral-300"}`,children:[Q?p.jsx(Rk,{size:10}):p.jsx(Mk,{size:10}),p.jsx("span",{className:"text-neutral-400",children:U.icon}),p.jsx("span",{className:"font-bold",children:U.name})]}),Q&&p.jsx("div",{className:"px-4 pb-3",children:p.jsx(U.Component,{})})]},U.id)})})]}),x5=p.jsx(Ez,{onOpenCommandPalette:()=>Sn(!0)}),mp=s.useMemo(()=>({isCollapsed:ge,onToggleCollapse:()=>J(U=>!U)}),[ge,J]),C5=q?p.jsx("div",{className:`scout-canvas-minimap-shell${ge?" scout-canvas-minimap-shell--collapsed":""}`,children:q.render(mp)}):null,k5=q?p.jsx("div",{className:`scout-canvas-minimap-shell scout-canvas-minimap-shell--floating${ge?" scout-canvas-minimap-shell--collapsed":""}`,children:q.render(mp)}):null,hp=s.useRef(null),gp=s.useRef(null);s.useEffect(()=>{const U=hp.current;U&&(A?U.setAttribute("inert",""):U.removeAttribute("inert"))},[A]),s.useEffect(()=>{if(!A)return;const U=gp.current;if(U&&(U.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])")??U).focus(),!V)return;const Q=Me=>{Me.key==="Escape"&&(Me.preventDefault(),$?.())};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[A,V,$]);const rs=he&&!b,E5=he,io=!oe&&b&&qY(a,he),aa=io?ae?ut:ue:0,bp=io&&K.effectiveCollapsed&&ae;s.useEffect(()=>(bp?document.documentElement.setAttribute("data-scout-double-rail",""):document.documentElement.removeAttribute("data-scout-double-rail"),()=>document.documentElement.removeAttribute("data-scout-double-rail")),[bp]);const ao=oe?0:b?K.width+aa:ae||rs?0:ue,os=oe||!oa||se||ze||E5?0:oo?b?ut:0:X,L5=be-ao-os,vp=I==="panel"&&L5<Tu&&(ao>0||os>0),ca=vp&&os>0,la=vp&&(b?aa>0&&be-K.width-aa<Tu:ao>0&&be-ao<Tu),ss=ze||se||ca,ua=la?b?K.width:0:ao,da=ss?0:os,S5=I==="panel"?{position:"absolute",top:x,bottom:28,left:ua,right:da,overflow:"auto"}:{},yp=b?{top:x}:{},$5=b?{top:x}:{},j5={display:"contents","--scout-shell-left-inset":`${I==="panel"?ua:0}px`,"--scout-shell-right-inset":`${I==="panel"?da:0}px`,...b?{"--scout-nav-rail-width":`${K.width}px`}:{}},wp=se?"Pin inspector (push content)":ca?"Keep inspector floating when there is room":"Float inspector (overlay content)",fa=s.useCallback((U,Q=!1)=>({backgroundColor:"rgba(13, 14, 16, 0.72)",backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)",boxShadow:U==="left"?"18px 0 48px -12px rgba(0,0,0,0.7), inset -1px 0 0 0 rgba(255,255,255,0.06)":"-18px 0 48px -12px rgba(0,0,0,0.7), inset 1px 0 0 0 rgba(255,255,255,0.06)",...Q?{right:12,bottom:40,borderWidth:1,borderStyle:"solid",borderColor:"rgba(255,255,255,0.09)",borderRadius:12,boxShadow:"-24px 18px 72px -18px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.025)"}:{}}),[]);return p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:hp,"aria-hidden":A?!0:void 0,style:j5,children:p.jsx(wz,{mode:j,panOffset:Ye,scale:mn,onPan:Zr,onZoom:Jr,hud:p.jsxs(p.Fragment,{children:[b?null:p.jsx(yX,{title:he?$e:e.name,search:he?void 0:R??void 0,center:T,actions:D}),b?oe?null:p.jsxs(p.Fragment,{children:[p.jsx(LY,{open:!K.effectiveCollapsed,onOpenChange:U=>K.setCollapsed(!U),style:{"--sidebar-width":`${K.expandedWidth}px`,"--sidebar-width-icon":`${Y}px`,"--scout-sidebar-top":"0px"},"data-sidebar-resizing":K.isSidebarResizing?"":void 0,children:p.jsx(IY,{brandLabel:e.name,presentation:v?"slack":"scout"})}),p.jsx(Os,{side:"left",collapsed:K.effectiveCollapsed,label:"Sidebar",onToggle:K.toggleCollapsed,onMouseDown:U=>U.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",left:Ks(K.width,K.effectiveCollapsed,Y),top:L,zIndex:46}}),p.jsx("div",{"data-scout-sidebar-resize-handle":"",role:"separator","aria-orientation":"vertical","aria-label":K.effectiveCollapsed?"Expand sidebar (drag out)":"Resize or collapse sidebar",title:K.effectiveCollapsed?"Drag out to expand · double-click to expand":"Drag to resize · drag in to collapse · double-click to reset",onPointerDown:h5,onDoubleClick:U=>{U.preventDefault(),K.effectiveCollapsed?(K.setExpandedWidth(Wo),K.setCollapsed(!1)):K.resetExpandedWidth()},onMouseDown:U=>{U.stopPropagation()},style:{position:"fixed",left:Math.max(0,K.width-3),top:x+Pd,bottom:28,width:6,zIndex:50,cursor:"ew-resize",pointerEvents:"auto",touchAction:"none"}}),!Jo&&K.isSidebarResizing&&K.dragGhostWidth!=null?p.jsx("div",{"data-scout-sidebar-resize-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost",style:{position:"fixed",left:K.dragGhostWidth,top:x,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null,io?p.jsx(ZY,{presentation:v?"slack":"scout",navRailWidth:K.width,isCollapsed:ae,onToggleCollapse:()=>le(!ae),width:ue,style:{...$5,...la?fa("left"):{}}}):null,io?p.jsx("div",{"data-scout-sidebar-resize-handle":"","data-scout-side-rail-resize-handle":"",role:"separator","aria-orientation":"vertical","aria-label":ae?"Expand context rail (drag out)":"Resize or collapse context rail",title:ae?"Drag out to expand · double-click to expand":"Drag to resize · drag in to collapse · double-click to reset",onPointerDown:g5(K.width,ae),onDoubleClick:U=>{U.preventDefault(),ae?(O(Id),le(!1)):O(Id)},onMouseDown:U=>{U.stopPropagation()},style:{position:"fixed",left:Math.max(0,K.width+(ae?ut:ue)-3),top:x+Pd,bottom:28,width:6,zIndex:50,cursor:"ew-resize",pointerEvents:"auto",touchAction:"none"}}):null,!Jo&&io&&tt&&nt!=null?p.jsx("div",{"data-scout-side-rail-resize-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost",style:{position:"fixed",left:K.width+nt,top:x,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null,Ce!=null?p.jsx("div",{"data-scout-rail-settle-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost scout-sidebar-resize-ghost--settle",style:{position:"fixed",left:Ce,top:x,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null]}):p.jsxs(p.Fragment,{children:[p.jsx(xd,{side:"left",title:up?"Browse":a.view==="agent-info"?"Projects":e.leftPanel?.title??"Navigation",icon:e.leftPanel?.icon,isCollapsed:ae||rs,onToggleCollapse:()=>le(!ae),width:ue,onResizeStart:lp("left"),style:la?fa("left"):void 0,footer:!ae&&!rs?C5:void 0,headerActions:e.leftPanel?.headerActions&&p.jsx(e.leftPanel.headerActions,{}),children:p.jsx("div",{"data-pane":"left",style:{display:"contents"},children:e.slots.LeftPanel&&p.jsx(e.slots.LeftPanel,{})})}),ae||rs?k5:null]}),k?p.jsx("div",{"data-scout-top-row-frame":"",className:"scout-top-row-frame",style:{position:"fixed",top:y,left:oe?0:K.width,right:0,height:C,zIndex:30,...r?.style??{}},...Object.fromEntries(Object.entries(r??{}).filter(([U])=>U!=="style")),children:p.jsx(eX,{variant:"top-row",presentation:v?"slack":"scout",onOpenSearch:()=>Sn(!0),crumbUtility:a.view==="terminal"?p.jsx("div",{id:"scout-terminal-header-crumb-slot","data-scout-terminal-header-crumb-slot":""}):void 0,centerUtility:a.view==="terminal"?p.jsx("div",{id:"scout-terminal-header-search-slot","data-scout-terminal-header-search-slot":""}):void 0,rightUtility:p.jsxs(p.Fragment,{children:[a.view!=="terminal"?p.jsx(nX,{presentation:v?"slack":"scout"}):null,a.view==="terminal"?p.jsx("div",{id:"scout-terminal-header-slot","data-scout-terminal-header-slot":""}):null,p.jsxs("span",{className:"scout-top-row-panel-toggles",role:"group","aria-label":"Layout panels",children:[a.view!=="terminal"?p.jsx("button",{type:"button","data-scout-bottom-panel-toggle":"","aria-label":sa?Bt?"Hide terminal":"Show terminal":"Terminal unavailable","aria-pressed":Bt,"aria-keyshortcuts":"Control+`",title:sa?Bt?"Hide terminal (⌃`)":"Show terminal (⌃`)":"No terminal is available in this app",className:`scout-top-row-panel-toggle${Bt?" scout-top-row-panel-toggle--active":""}`,disabled:!sa,onClick:()=>Jt(U=>!U),children:p.jsx(Fk,{size:14,strokeWidth:1.8,"aria-hidden":"true"})}):null,p.jsx("button",{type:"button","data-scout-right-panel-toggle":"","aria-label":so?ns?"Hide right panel":"Show right panel":"Right panel unavailable for this view","aria-pressed":ns,"aria-keyshortcuts":"Meta+] Control+]",title:so?ns?"Hide right panel (⌘])":"Show right panel (⌘])":"No right panel is available for this view",className:`scout-top-row-panel-toggle${ns?" scout-top-row-panel-toggle--active":""}`,disabled:!so,onClick:Qt,children:p.jsx(Pk,{size:14,strokeWidth:1.8,"aria-hidden":"true"})})]})]}),onInteractiveMouseDown:o})}):null,oa&&(()=>{const U=ze?"Dispatch detail":up?"Detail":e.rightPanel?.title??"Inspector";return b&&oo?p.jsxs(p.Fragment,{children:[p.jsx(u5,{side:"right",title:U,onToggle:Qt,edgeOffset:0,top:x,style:yp,body:p.jsx(oX,{route:a,onExpand:Qt})}),p.jsx(Os,{side:"right",collapsed:!0,label:U,onToggle:Qt,onMouseDown:Q=>Q.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",right:Ks(ut,!0),top:L,zIndex:45}})]}):p.jsxs(p.Fragment,{children:[p.jsx(xd,{side:"right",title:U,icon:e.rightPanel?.icon,isCollapsed:b?!1:oo,onToggleCollapse:b?void 0:Qt,width:X,onResizeStart:lp("right"),floating:ss,style:{...yp,...ss?fa("right",ze):{}},footer:x5,headerActions:p.jsxs(p.Fragment,{children:[!ze&&p.jsx("button",{type:"button",onClick:()=>ie(Q=>ca&&!Q?!0:!Q),title:wp,"aria-label":wp,className:"p-1 hover:bg-accent/10 rounded transition-colors text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",children:ss?p.jsx(Hk,{size:12}):p.jsx(Tk,{size:12})}),e.rightPanel?.headerActions&&p.jsx(e.rightPanel.headerActions,{})]}),children:p.jsx("div",{"data-pane":"right",style:{display:"contents"},children:w5})}),b&&!oo?p.jsx(Os,{side:"right",collapsed:!1,label:U,onToggle:Qt,onMouseDown:Q=>Q.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",right:Ks(X,!1),top:L,zIndex:45}}):null]})})(),p.jsx(kz,{status:M.status,left:p.jsx(wX,{statusBar:M,dictationActive:S.state.activity==="listening"}),right:p.jsx(xX,{statusBar:M,onOpenFlagPanel:()=>vr(!0),onOpenActivityLog:()=>te(!0)}),onToggleTerminal:()=>Jt(U=>!U),isTerminalOpen:Bt,terminalLabel:"Terminal"}),p.jsx(Uz,{open:ee,onClose:()=>te(!1)}),p.jsx("div",{className:"pointer-events-none",style:{position:"fixed",left:ua,right:da,bottom:0,top:0,zIndex:45,transform:"translateZ(0)"},children:p.jsx(Pz,{isOpen:Bt,onClose:()=>Jt(!1),onToggleMaximize:()=>Qn(U=>!U),isMaximized:hn,height:Math.min(Qr,window.innerHeight*.8),onHeightChange:U=>eo(Math.min(U,window.innerHeight*.8)),closeLabel:"Close terminal",children:Bt&&e.slots.Terminal&&p.jsx(e.slots.Terminal,{})})}),p.jsx(Az,{isOpen:to,onClose:()=>Sn(!1),commands:v5})]}),children:p.jsx("div",{style:S5,className:"frame-scrollbar","data-pane":"center",children:p.jsx(e.slots.Content,{})})})}),A&&z?p.jsxs("div",{ref:gp,tabIndex:-1,role:"dialog","aria-modal":"true",style:{position:"fixed",inset:0,zIndex:80,outline:"none"},children:[p.jsx("div",{"data-scout-takeover-drag-region":"","aria-hidden":"true",style:{position:"absolute",top:0,left:0,right:0,height:Math.max(28,n||28),zIndex:1,...r?.style??{}},...Object.fromEntries(Object.entries(r??{}).filter(([U])=>U!=="style"))}),p.jsx(z,{})]}):null,p.jsx(Fz,{open:i.open,onClose:()=>i.setOpen(!1)}),p.jsx($z,{isOpen:no,onClose:()=>vr(!1),audienceOptions:vy}),p.jsx(zz,{})]})}export{hee as OpenScoutAppShell};
|