@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.
Files changed (575) hide show
  1. package/README.md +26 -0
  2. package/bin/scoutd +0 -0
  3. package/dist/build-manifest.json +3 -3
  4. package/dist/chat.mjs +23 -1
  5. package/dist/client/assets/ActivityScreen-CZmGwQ2U.js +1 -0
  6. package/dist/client/assets/{AddProjectForm-CHNJ4NnS.js → AddProjectForm-CusDRiVO.js} +1 -1
  7. package/dist/client/assets/{AdventureEvidence-B4mEvXeD.js → AdventureEvidence-CyegKk1V.js} +1 -1
  8. package/dist/client/assets/{AdventureReader-ZsBDQITY.js → AdventureReader-X-hbTOi0.js} +1 -1
  9. package/dist/client/assets/{AdventureScenery-DSxDlqG1.js → AdventureScenery-LPXSVP67.js} +1 -1
  10. package/dist/client/assets/AgentAdventures-BAgxdOF8.js +1 -0
  11. package/dist/client/assets/AgentAvatar-CrP1eXxk.js +1 -0
  12. package/dist/client/assets/AgentConfigurationScreen-1L0IQm2w.js +1 -0
  13. package/dist/client/assets/AgentDefinitionsWorkspace-DguGs7jZ.js +1 -0
  14. package/dist/client/assets/{AgentDetailCard-MIEBKw_S.js → AgentDetailCard-DtHT3sCo.js} +1 -1
  15. package/dist/client/assets/AgentFloorView-DH4jiDgw.js +1 -0
  16. package/dist/client/assets/{AgentFloorWorld-BTqwmK5G.js → AgentFloorWorld-CjoIa6jA.js} +1 -1
  17. package/dist/client/assets/AgentInfoScreen-DYtmKkeE.js +1 -0
  18. package/dist/client/assets/{AgentLaneCard-C4rKLLdT.js → AgentLaneCard-BaZ2g-f8.js} +1 -1
  19. package/dist/client/assets/{AgentLaneChrome-fGC-ZrJS.js → AgentLaneChrome-TF1SlJSc.js} +1 -1
  20. package/dist/client/assets/{AgentLaneDetailSheet-BTF4_th9.js → AgentLaneDetailSheet-EzEPsn3g.js} +1 -1
  21. package/dist/client/assets/{AgentLaneSummaryResize-DgSeA_vS.js → AgentLaneSummaryResize-dpp7YvrX.js} +1 -1
  22. package/dist/client/assets/AgentLanesEmbedScreen-BlSof_6S.js +1 -0
  23. package/dist/client/assets/{AgentLanesPreflight-CcS23wij.js → AgentLanesPreflight-Ry-aqDTr.js} +1 -1
  24. package/dist/client/assets/AgentLanesView-BJi9xXz6.js +2 -0
  25. package/dist/client/assets/{AgentLiveActions-6Kfr1uOT.js → AgentLiveActions-CfTupTEl.js} +1 -1
  26. package/dist/client/assets/AgentMasterScreen-EJhmuKgl.js +1 -0
  27. package/dist/client/assets/AgentSessions-B1gOhDBf.js +6 -0
  28. package/dist/client/assets/AgentsConsole-RXGqRvcb.js +1 -0
  29. package/dist/client/assets/AgentsScreen-ChwMBs11.js +1 -0
  30. package/dist/client/assets/AgentsSubnav-DwNX4yy0.js +1 -0
  31. package/dist/client/assets/{AstronautSuit-D67fIBdR.js → AstronautSuit-Cchnc4Ug.js} +1 -1
  32. package/dist/client/assets/{AtopView-Ck30FbzG.js → AtopView-gkEp4y__.js} +1 -1
  33. package/dist/client/assets/{BackToPicker-CkBhGRlD.js → BackToPicker-CUkjnoVk.js} +1 -1
  34. package/dist/client/assets/BriefingDetailScreen-DrlC3qkm.js +1 -0
  35. package/dist/client/assets/{BriefingsScreen-DTxYMr3a.js → BriefingsScreen-B1HlBMGZ.js} +1 -1
  36. package/dist/client/assets/{BrokerMetadataPanel-crirZCdo.js → BrokerMetadataPanel-Dk242Yh_.js} +1 -1
  37. package/dist/client/assets/BrokerScreen-DwOF6bMA.js +8 -0
  38. package/dist/client/assets/{Canvas-CRP0KjKb.js → Canvas-X9pVSkw3.js} +1 -1
  39. package/dist/client/assets/{CastPicker-ZPomvOf-.js → CastPicker-BXUtPAGC.js} +1 -1
  40. package/dist/client/assets/ChannelComposer-DoK7IDGa.js +1 -0
  41. package/dist/client/assets/ChannelSidebar-e9DOPulb.js +1 -0
  42. package/dist/client/assets/{CharacterFamilyPreview-ckVkecDO.js → CharacterFamilyPreview-DMfw7UM_.js} +1 -1
  43. package/dist/client/assets/{ChatAvatar-DKBsbOqk.js → ChatAvatar-C3a_o5Hj.js} +1 -1
  44. package/dist/client/assets/ChatBits-CsvxbToF.js +1 -0
  45. package/dist/client/assets/{ChatCollapsedStrip-Co0NmqOO.js → ChatCollapsedStrip-FEmQ_G9J.js} +1 -1
  46. package/dist/client/assets/ChatRichInput-DhtwFxQE.js +31 -0
  47. package/dist/client/assets/ChatRightPanel-C1h_aIkn.js +1 -0
  48. package/dist/client/assets/ChatSpaceSurface-BXyLYKHn.js +1 -0
  49. package/dist/client/assets/ChatSpaceTheme-3wLZGsvT.css +1 -0
  50. package/dist/client/assets/ChatSpaceTheme-CUH8bTZc.js +1 -0
  51. package/dist/client/assets/{CodeDiffPane-D-iv28LJ.js → CodeDiffPane-DuQRwpgK.js} +1 -1
  52. package/dist/client/assets/{CodeProjectPicker-CZ3gDdiT.js → CodeProjectPicker-ZQ6gSBpg.js} +1 -1
  53. package/dist/client/assets/{CodeScreen-CSC-zbP9.js → CodeScreen-BXyKeL5T.js} +1 -1
  54. package/dist/client/assets/{CommsCanvas-DdNAwjGW.js → CommsCanvas-THp0r_U8.js} +1 -1
  55. package/dist/client/assets/{CommsDeck-mGWY7Ivi.js → CommsDeck-BVmSMV2V.js} +1 -1
  56. package/dist/client/assets/{CommsFlowGraph-voDD9M5R.js → CommsFlowGraph-DxoOaLF_.js} +1 -1
  57. package/dist/client/assets/{CommsFlowMap-C33sgD48.js → CommsFlowMap-Vi8ziCPg.js} +1 -1
  58. package/dist/client/assets/{CommsSelection-BL8aYD7z.js → CommsSelection-BUoRbu9o.js} +1 -1
  59. package/dist/client/assets/ComposerAttachments-DW0AIb8k.js +1 -0
  60. package/dist/client/assets/ConversationComposer-CUQyArlk.js +1 -0
  61. package/dist/client/assets/ConversationFeedRows-DWiOfT-y.js +1 -0
  62. package/dist/client/assets/ConversationHeader-C-ZWscKj.js +1 -0
  63. package/dist/client/assets/{ConversationPanels-6pprBpmq.js → ConversationPanels-D9oC0xG5.js} +2 -2
  64. package/dist/client/assets/ConversationScreen-9MlMnEo4.css +1 -0
  65. package/dist/client/assets/ConversationScreen-CUfsQ4MR.js +2 -0
  66. package/dist/client/assets/ConversationStatus--IPm2nGh.js +1 -0
  67. package/dist/client/assets/{CrewAvatar-D0c9z5Qr.css → CrewAvatar-BnIPIn_Z.css} +1 -1
  68. package/dist/client/assets/CrewAvatar-kTznzqcO.js +1 -0
  69. package/dist/client/assets/{CrewSprite-Dp9KBBGY.js → CrewSprite-Dhryjx2c.js} +1 -1
  70. package/dist/client/assets/CrewStage-vdO0qm3D.js +1 -0
  71. package/dist/client/assets/CrewWorkspaces-DCBzAAS4.js +1 -0
  72. package/dist/client/assets/{DataTable-av71ehJV.js → DataTable-aH-jCyDq.js} +1 -1
  73. package/dist/client/assets/{DispatchAftermath-CcYGUB10.js → DispatchAftermath-66uQAorV.js} +1 -1
  74. package/dist/client/assets/{DocumentFocusViewer-DlMiEALb.js → DocumentFocusViewer-DJr0v0D_.js} +1 -1
  75. package/dist/client/assets/{EmbeddableSurfacesLab-CTkO_tQR.js → EmbeddableSurfacesLab-BBa70EhJ.js} +1 -1
  76. package/dist/client/assets/{EmptyState-CYUwYyAW.js → EmptyState-CZlrHXy-.js} +1 -1
  77. package/dist/client/assets/{FileViewerPane-Cxhixtks.js → FileViewerPane-BAO6mtjD.js} +1 -1
  78. package/dist/client/assets/FleetRollCallHud-C5q2567n.js +1 -0
  79. package/dist/client/assets/FlightObserveScreen-DZ2mrw91.js +1 -0
  80. package/dist/client/assets/{FloorContextSheet-Vj_wVZq1.js → FloorContextSheet-2_NVPQor.js} +1 -1
  81. package/dist/client/assets/{FloorExchangePanel-CjHSDXad.js → FloorExchangePanel-BU1pPu8K.js} +1 -1
  82. package/dist/client/assets/{FloorMessagePasses-BG4ebnX5.js → FloorMessagePasses-cLW2UGNP.js} +1 -1
  83. package/dist/client/assets/{FloorReplay-BoYaGY9t.js → FloorReplay-VFzA6Kxc.js} +1 -1
  84. package/dist/client/assets/FloorResourcesSheet-C-kQ6Ren.js +1 -0
  85. package/dist/client/assets/{FloorSavedWork-jbtRs-YE.js → FloorSavedWork-BeHDejWz.js} +1 -1
  86. package/dist/client/assets/FloorTacticalHUD-CO-iiFpb.js +1 -0
  87. package/dist/client/assets/{FollowScreen-CupyOgt4.js → FollowScreen-CFfkIbc6.js} +1 -1
  88. package/dist/client/assets/HarnessMark-C4naWc16.js +1 -0
  89. package/dist/client/assets/HarnessesScreen-DX3NLcDG.js +1 -0
  90. package/dist/client/assets/{HerdrSession-Dcm3vf9U.js → HerdrSession-_t7yM8vX.js} +2 -2
  91. package/dist/client/assets/{HomeHero-pIZtE1cC.js → HomeHero-DouPyNmz.js} +1 -1
  92. package/dist/client/assets/{HostAdvisorView-Dv5meXo2.js → HostAdvisorView-CnM1i8hW.js} +1 -1
  93. package/dist/client/assets/InviteLandingScreen-CEjG2E34.js +1 -0
  94. package/dist/client/assets/InviteSheet-CwxZtWCl.js +1 -0
  95. package/dist/client/assets/{JumpPalette-BmiSOEmp.js → JumpPalette-O1aJE9gR.js} +1 -1
  96. package/dist/client/assets/{KnowledgeSearchInspector-B8yiM524.js → KnowledgeSearchInspector-32n9baT-.js} +1 -1
  97. package/dist/client/assets/KnowledgeSearchScreen-Dd6jrQ0A.js +1 -0
  98. package/dist/client/assets/{LaneToolHoverCard-D2cnTeUd.js → LaneToolHoverCard-CJa110yk.js} +1 -1
  99. package/dist/client/assets/LaneTraceDetailSheet-DYrd0BIf.js +1 -0
  100. package/dist/client/assets/{LaneTraceEventFocus-BLhVHwff.js → LaneTraceEventFocus-TbrNHRj_.js} +1 -1
  101. package/dist/client/assets/{MeshCanvas-BR25OBTJ.js → MeshCanvas-DWZHYh1A.js} +2 -2
  102. package/dist/client/assets/{MeshCanvasMinimap-ClVolr4-.js → MeshCanvasMinimap-iswYFpIb.js} +1 -1
  103. package/dist/client/assets/MeshScreen-8nAzQVbm.js +1 -0
  104. package/dist/client/assets/{MeshTopologyView-BT3ke2D1.js → MeshTopologyView-BVvtqI8q.js} +2 -2
  105. package/dist/client/assets/MessageEmbeds-ksPazAKH.js +1 -0
  106. package/dist/client/assets/MessagesScreen-C3WB4T21.js +1 -0
  107. package/dist/client/assets/{MissionContextRail-CafjuseK.js → MissionContextRail-D62-Wis8.js} +1 -1
  108. package/dist/client/assets/MissionControlView-B9cNPXvl.js +1 -0
  109. package/dist/client/assets/{MissionFocusOverlay-nhy3hkxQ.js → MissionFocusOverlay-C1zys3Jv.js} +1 -1
  110. package/dist/client/assets/MissionLeftAgentRow-vycMV77n.js +1 -0
  111. package/dist/client/assets/{MissionLogPane-DiUf3vWW.js → MissionLogPane-B19lYSY9.js} +1 -1
  112. package/dist/client/assets/NativeAreaScreen-B1RLa85C.js +1 -0
  113. package/dist/client/assets/NativeAreaScreen-CV0OhGra.js +1 -0
  114. package/dist/client/assets/NativeAreaScreen-CzuZt6o1.js +1 -0
  115. package/dist/client/assets/{NewAgentModal-BQ2wQ5gp.js → NewAgentModal-Bh-L-emz.js} +1 -1
  116. package/dist/client/assets/NewChatComposer-C97-iTMK.js +19 -0
  117. package/dist/client/assets/{NewChatOrigin-C8ROO4ps.js → NewChatOrigin-DFbF_XvR.js} +1 -1
  118. package/dist/client/assets/{NodeDetailPanel-BNTqYC7m.js → NodeDetailPanel-CElOEpCh.js} +1 -1
  119. package/dist/client/assets/{NodeMenu-CcOeFRCB.js → NodeMenu-B-jjHf1c.js} +1 -1
  120. package/dist/client/assets/ObserveEmbedScreen-B7Qt69Ms.js +2 -0
  121. package/dist/client/assets/{ObserveTextFlow-CC5mnngm.js → ObserveTextFlow-PFnG_10h.js} +2 -2
  122. package/dist/client/assets/{ObservedTopologyPanel-DF6tRZL_.js → ObservedTopologyPanel-CUTIoLZJ.js} +1 -1
  123. package/dist/client/assets/OpenScoutAppShell-37PDFfA4.js +31 -0
  124. package/dist/client/assets/OpsAgentsView-DajlX8LO.js +1 -0
  125. package/dist/client/assets/OpsScreen-jVcaBKGi.js +1 -0
  126. package/dist/client/assets/OpsSubnav-BOOYShHE.js +1 -0
  127. package/dist/client/assets/ProjectAgentProfile-D_wlW4sQ.js +1 -0
  128. package/dist/client/assets/{ProjectAgentProfileBar-C8z22pJ2.js → ProjectAgentProfileBar-DHuMKJj-.js} +1 -1
  129. package/dist/client/assets/ProjectAgentProfileHero-Dbebtug1.js +1 -0
  130. package/dist/client/assets/ProjectsInbox-B8zYE4vP.css +1 -0
  131. package/dist/client/assets/ProjectsInbox-Cgu7B4--.js +2 -0
  132. package/dist/client/assets/ProjectsRail-CDWocin_.js +1 -0
  133. package/dist/client/assets/ProjectsScreen-B_CJycqW.js +1 -0
  134. package/dist/client/assets/ProjectsThreadAside-1MMl_qUD.js +1 -0
  135. package/dist/client/assets/Provider-C35yu29I.js +5 -0
  136. package/dist/client/assets/{RailRow-DUPqXMZh.js → RailRow-BjmWK420.js} +1 -1
  137. package/dist/client/assets/RawSessionsTable-DzT90hWu.js +1 -0
  138. package/dist/client/assets/RealtimeVoiceScreen-B6ylX3WQ.js +16 -0
  139. package/dist/client/assets/{RenderedWorkerSprite-C8fxndAh.js → RenderedWorkerSprite-Dhlyg89J.js} +1 -1
  140. package/dist/client/assets/{ReplayClock-DUVJjrIu.js → ReplayClock-348f17bW.js} +1 -1
  141. package/dist/client/assets/{ReplayLog-Bek1Vc4W.js → ReplayLog-CBnAM3ui.js} +1 -1
  142. package/dist/client/assets/{ReplayOutpost-DlRg3172.js → ReplayOutpost-DyRPfNFx.js} +1 -1
  143. package/dist/client/assets/{RepoDiffEmbedScreen-CVUMnt6A.js → RepoDiffEmbedScreen-BWxvRDrS.js} +1 -1
  144. package/dist/client/assets/{RepoDiffPageScreen-D9-s5PyB.js → RepoDiffPageScreen-DN94irmY.js} +1 -1
  145. package/dist/client/assets/{RepoDiffViewer-D7FN-oyY.js → RepoDiffViewer-_4JVXBIW.js} +1 -1
  146. package/dist/client/assets/RepoDiffViewerLazy-XGVC3WXv.js +2 -0
  147. package/dist/client/assets/{ReposScreen-BQ7HO1om.js → ReposScreen-uMCpt0e9.js} +2 -2
  148. package/dist/client/assets/{RiggedWorkerCharacter-CJMWlvV-.js → RiggedWorkerCharacter-q6QRc7_o.js} +1 -1
  149. package/dist/client/assets/{SageModelStudio-B526NSnw.js → SageModelStudio-CNDhZhgD.js} +1 -1
  150. package/dist/client/assets/{ScoutDeckSurface-ChkvGyEW.js → ScoutDeckSurface-CUaU4R6T.js} +1 -1
  151. package/dist/client/assets/{ScoutSurface-6g1f5chk.js → ScoutSurface-3_25USO_.js} +1 -1
  152. package/dist/client/assets/{ScoutbotFxLab-BuwBdnPf.js → ScoutbotFxLab-CRqhYe0a.js} +1 -1
  153. package/dist/client/assets/{SecondaryNav-Bs-_VwTC.js → SecondaryNav-D7dbV2qo.js} +1 -1
  154. package/dist/client/assets/SessionContextStrip-CXfs9hUD.js +1 -0
  155. package/dist/client/assets/SessionContextStrip-DAIXwtHd.css +1 -0
  156. package/dist/client/assets/{SessionEmbedScreen-C2wf35-P.js → SessionEmbedScreen-D0zFmou-.js} +1 -1
  157. package/dist/client/assets/SessionHopMenu-E6VJZrE0.js +1 -0
  158. package/dist/client/assets/{SessionObserve-B64YsYhy.js → SessionObserve-DXxBvejJ.js} +9 -9
  159. package/dist/client/assets/SessionObserveEvidence-Cuj_KHxR.js +1 -0
  160. package/dist/client/assets/SessionRefScreen-DqLSUlCE.js +1 -0
  161. package/dist/client/assets/SessionsScreen-BLIRkohT.js +1 -0
  162. package/dist/client/assets/SettingsDrawer-juCpnbH6.js +3 -0
  163. package/dist/client/assets/SettingsScreen-BtGzE2-O.js +1 -0
  164. package/dist/client/assets/{SharedFloorCharacter-V04kD5T9.js → SharedFloorCharacter-DNEiaOUh.js} +1 -1
  165. package/dist/client/assets/SharedWorkFloor-0rqtdF-n.css +1 -0
  166. package/dist/client/assets/SharedWorkFloor-D9mf9KSg.js +2 -0
  167. package/dist/client/assets/{ShikiPane-XwFI-pCp.js → ShikiPane-CRtTYkMj.js} +1 -1
  168. package/dist/client/assets/{SlidePanel-BMpkXai_.js → SlidePanel-_CHAQdOa.js} +1 -1
  169. package/dist/client/assets/SpaceSwitcher-BLgSCf_T.js +1 -0
  170. package/dist/client/assets/{SpriteAvatar-aHeF4ZQZ.js → SpriteAvatar-CpZWf54-.js} +1 -1
  171. package/dist/client/assets/{SproutActionSprite-DI5N3gOj.js → SproutActionSprite-BSiTS4en.js} +1 -1
  172. package/dist/client/assets/{StatusPill-Dw4LP7wu.js → StatusPill-2gCP6H7A.js} +1 -1
  173. package/dist/client/assets/{TailView-BofjmUMJ.js → TailView-CYSijNTy.js} +2 -2
  174. package/dist/client/assets/Terminal-Bi97yb5s.js +4 -0
  175. package/dist/client/assets/TerminalEmbedScreen-Bqop67Bq.js +1 -0
  176. package/dist/client/assets/{TerminalHeaderMount-CwbQhXcI.js → TerminalHeaderMount-Cq4OD_xN.js} +1 -1
  177. package/dist/client/assets/{TerminalRelay--qOBwnbR.js → TerminalRelay-DrikpUSJ.js} +3 -3
  178. package/dist/client/assets/{TextDocumentSurface-BK6Qy41F.js → TextDocumentSurface-D52m7Vd8.js} +1 -1
  179. package/dist/client/assets/{TmuxPeek-DpUT9Tpc.js → TmuxPeek-CXFeweMg.js} +1 -1
  180. package/dist/client/assets/VoiceControlWell-DF3bjcYA.js +1 -0
  181. package/dist/client/assets/VoicePathDiagram-CmpHWfO-.js +1 -0
  182. package/dist/client/assets/{VoicePermissionsPanel-D35fOnQj.js → VoicePermissionsPanel-Ok2nfxHw.js} +1 -1
  183. package/dist/client/assets/VoiceTurnDetails-wAByRaNB.js +8 -0
  184. package/dist/client/assets/VoiceTurnStage-edoJalLV.js +1 -0
  185. package/dist/client/assets/VoiceTurnView-D-8g5E4r.js +1 -0
  186. package/dist/client/assets/WorkDetailScreen-zQkNVy2F.js +5 -0
  187. package/dist/client/assets/{WorkFilesViewer-t8AEyx3Q.js → WorkFilesViewer-vNt01sDd.js} +1 -1
  188. package/dist/client/assets/{WorkRunView-_mhG_FR2.js → WorkRunView-BDkR7Edq.js} +1 -1
  189. package/dist/client/assets/WorldActorTalk-BvSg_b1y.js +1 -0
  190. package/dist/client/assets/{WorldCharacter-BRrj3MQN.js → WorldCharacter-CIIlutQq.js} +1 -1
  191. package/dist/client/assets/WorldMinimap-B6HNgcDe.js +1 -0
  192. package/dist/client/assets/{WorldSky-D-RJzSa6.js → WorldSky-Jm2Z6dfW.js} +1 -1
  193. package/dist/client/assets/{activity-BJqFrZyB.js → activity-CIlFrfPJ.js} +1 -1
  194. package/dist/client/assets/{addon-fit-CHohcvS3.js → addon-fit-dFpj9Kfq.js} +1 -1
  195. package/dist/client/assets/{addon-webgl-CaRy2x2b.js → addon-webgl-BFCGRtGh.js} +1 -1
  196. package/dist/client/assets/{agent-essentials-bKWYOZaH.js → agent-essentials-BGGvT5G6.js} +1 -1
  197. package/dist/client/assets/{agent-master-model-C-KdOFDK.js → agent-master-model-Bk_yuUXJ.js} +1 -1
  198. package/dist/client/assets/{agent-specialization-BplZUa_0.js → agent-specialization-DDc7mLCW.js} +1 -1
  199. package/dist/client/assets/agents-screen-BYakbO50.css +1 -0
  200. package/dist/client/assets/{arc.es-CubLvQ4W.js → arc.es-C1SQHJ3k.js} +1 -1
  201. package/dist/client/assets/{arrow-left-DFfKAq0d.js → arrow-left-MVUKauwQ.js} +1 -1
  202. package/dist/client/assets/{arrow-right-DmAWnyAH.js → arrow-right-Bp-FpE5V.js} +1 -1
  203. package/dist/client/assets/{arrow-up-right-B0aLKiyF.js → arrow-up-right-BPedAgxO.js} +1 -1
  204. package/dist/client/assets/{book-open-BL9qvhEI.js → book-open-CV98WMSp.js} +1 -1
  205. package/dist/client/assets/{bot-BhAVbcCA.js → bot-B4zLQ4IN.js} +1 -1
  206. package/dist/client/assets/chat-api-DSJMBYoT.js +2 -0
  207. package/dist/client/assets/chat-message-markup-91DIry6R.js +1 -0
  208. package/dist/client/assets/chat-space-model-aW3Fd8_U.js +4 -0
  209. package/dist/client/assets/chat-transport-DNS5CB2I.js +1 -0
  210. package/dist/client/assets/{check-g7D7-c1J.js → check-lrJ3a73a.js} +1 -1
  211. package/dist/client/assets/{chevron-down-CDzRQQGl.js → chevron-down-l1mrh5S9.js} +1 -1
  212. package/dist/client/assets/{chevron-right-DKGTLiqc.js → chevron-right-DrfqcerI.js} +1 -1
  213. package/dist/client/assets/{chevron-up-DX7R6KY2.js → chevron-up-CETZJzjV.js} +1 -1
  214. package/dist/client/assets/{chunk-HRAB3GC3-Dvk_QpRq.js → chunk-HRAB3GC3-DbVLgbWX.js} +1 -1
  215. package/dist/client/assets/{clock-CQb4FeMf.js → clock-BV1aqPkK.js} +1 -1
  216. package/dist/client/assets/{code-xml-Cmadr3pQ.js → code-xml-BhcNbLWU.js} +1 -1
  217. package/dist/client/assets/{coffee-ljG1_krY.js → coffee-D7EAOdCk.js} +1 -1
  218. package/dist/client/assets/{compass-CvzkzkIh.js → compass-63TUaz5_.js} +1 -1
  219. package/dist/client/assets/content-B1lgE8qr.js +1 -0
  220. package/dist/client/assets/content-B5l11YyQ.js +1 -0
  221. package/dist/client/assets/content-BNZOZEpX.js +1 -0
  222. package/dist/client/assets/content-BRIxP155.js +1 -0
  223. package/dist/client/assets/content-BWd8gt8L.js +1 -0
  224. package/dist/client/assets/content-BfwS2jAK.js +1 -0
  225. package/dist/client/assets/content-C4p43_eT.js +1 -0
  226. package/dist/client/assets/content-CdYfaoDV.js +1 -0
  227. package/dist/client/assets/content-CzldLxw0.js +1 -0
  228. package/dist/client/assets/content-D-olnc4U.js +1 -0
  229. package/dist/client/assets/content-DTioimq4.js +1 -0
  230. package/dist/client/assets/content-LOebm3_d.js +1 -0
  231. package/dist/client/assets/{content-CKJ9zb7Z.js → content-nGlEZhUI.js} +1 -1
  232. package/dist/client/assets/{content-D1Ze_FG9.js → content-oyzDM-LK.js} +1 -1
  233. package/dist/client/assets/content-x1PHxED7.js +1 -0
  234. package/dist/client/assets/content-zX3ZY3T9.js +1 -0
  235. package/dist/client/assets/{conversation-icons-CIRaxmid.js → conversation-icons-Tqba2d56.js} +1 -1
  236. package/dist/client/assets/conversation-model-FxDeWlle.js +1 -0
  237. package/dist/client/assets/conversation-motion-features-C5zjuNwE.js +1 -0
  238. package/dist/client/assets/conversations-DoAAO6kA.js +1 -0
  239. package/dist/client/assets/{copy-BGOC1tJB.js → copy-xKeM5ZtU.js} +1 -1
  240. package/dist/client/assets/{cpu-Q6nrHFTN.js → cpu-BOTa_WLr.js} +1 -1
  241. package/dist/client/assets/{createLucideIcon-ChvMq-zl.js → createLucideIcon-zZ8Hx7er.js} +1 -1
  242. package/dist/client/assets/ctx-panel-BC8fpcWJ.css +1 -0
  243. package/dist/client/assets/direct-voice-BbLPuJ04.js +2 -0
  244. package/dist/client/assets/direct-voice-DbO7CSv_.css +1 -0
  245. package/dist/client/assets/discover-DJFxyV1k.js +2 -0
  246. package/dist/client/assets/embed-entry-Lyvu0Kfc.js +2 -0
  247. package/dist/client/assets/{external-link-BVccgH0n.js → external-link-CUObqmgX.js} +1 -1
  248. package/dist/client/assets/{eye-CsGfEVR6.js → eye-LrO-cXQt.js} +1 -1
  249. package/dist/client/assets/{file-code-corner-Be6da5l3.js → file-code-corner-CsU7jJpu.js} +1 -1
  250. package/dist/client/assets/{file-text-DP6txVW-.js → file-text-CnISiiw6.js} +1 -1
  251. package/dist/client/assets/{flag-DAFE2wZ5.js → flag-C4wl8z2-.js} +1 -1
  252. package/dist/client/assets/fleet-roll-call-BUgf7w-V.css +1 -0
  253. package/dist/client/assets/{folder-B_S7gBVr.js → folder-D5prSkzz.js} +1 -1
  254. package/dist/client/assets/{gauge-DQCGlE3o.js → gauge-D9_5iJEm.js} +1 -1
  255. package/dist/client/assets/{gestures-CofqY4Km.js → gestures-QZub3Ot9.js} +1 -1
  256. package/dist/client/assets/{git-branch-DcUCsWdJ.js → git-branch-B0_fPLO7.js} +1 -1
  257. package/dist/client/assets/{go-shortcuts-KQy-ZOpV.js → go-shortcuts-DicR7sUf.js} +1 -1
  258. package/dist/client/assets/home-moving-signal-rpMhsOJB.js +1 -0
  259. package/dist/client/assets/home-now-card-ByE6Umcx.js +1 -0
  260. package/dist/client/assets/{home-now-card-nano-CvU8B61b.js → home-now-card-nano-B5Dv3-pb.js} +1 -1
  261. package/dist/client/assets/hooks-_eCZZPsR.js +2 -0
  262. package/dist/client/assets/index-724SdE6r.js +1 -0
  263. package/dist/client/assets/{index-kkXUq-zf.js → index-CHD0qcfL.js} +1 -1
  264. package/dist/client/assets/index-CN4rBB_s.css +1 -0
  265. package/dist/client/assets/index-D1d98iYf.js +1 -0
  266. package/dist/client/assets/{index-DReVb7jZ.js → index-EsrkGBcv.js} +8 -8
  267. package/dist/client/assets/index-gGHPA-By.js +1 -0
  268. package/dist/client/assets/{inspector-panel-CLU7wjnT.js → inspector-panel-BkgUDn6G.js} +2 -2
  269. package/dist/client/assets/{keyboard-nav-CJXPaHXj.js → keyboard-nav-DDHegDbx.js} +1 -1
  270. package/dist/client/assets/{lane-roster-store-Ch9t6lb0.js → lane-roster-store-D-RSWjb-.js} +1 -1
  271. package/dist/client/assets/{layers-BOwyWodP.js → layers-C8PDiMul.js} +1 -1
  272. package/dist/client/assets/{layout-grid-B36Qsh0y.js → layout-grid-Cor2frzj.js} +1 -1
  273. package/dist/client/assets/left-Bn5X7x2o.js +2 -0
  274. package/dist/client/assets/left-BqS0fYX1.js +1 -0
  275. package/dist/client/assets/left-CTCeeeD3.js +1 -0
  276. package/dist/client/assets/left-DhtVPVux.js +1 -0
  277. package/dist/client/assets/left-K39b-Wvx.js +2 -0
  278. package/dist/client/assets/left-KGmueNPt.js +1 -0
  279. package/dist/client/assets/left-P_GOYB-s.js +1 -0
  280. package/dist/client/assets/left-advisor-B0N47De2.js +1 -0
  281. package/dist/client/assets/left-agents-CsSNc51Y.js +1 -0
  282. package/dist/client/assets/left-default-BlO5LP2T.js +1 -0
  283. package/dist/client/assets/left-lanes-C4PhaJE6.js +1 -0
  284. package/dist/client/assets/left-mission-BjTE5vPa.js +1 -0
  285. package/dist/client/assets/library-CkWNPHRp.js +1 -0
  286. package/dist/client/assets/{loader-circle-DNUsuPWz.js → loader-circle-OvccU82H.js} +1 -1
  287. package/dist/client/assets/{local-agents-I40PawYA.js → local-agents-BqnoxJrq.js} +1 -1
  288. package/dist/client/assets/log-in-7SnYqW5w.js +1 -0
  289. package/dist/client/assets/{machine-children-CdhNzDF0.js → machine-children-DxcqCLmd.js} +1 -1
  290. package/dist/client/assets/media-blobs-Bi8pxr1u.js +1 -0
  291. package/dist/client/assets/{mentions-Ck_Vjnyp.js → mentions-ByUvhS-v.js} +1 -1
  292. package/dist/client/assets/{mesh-ops-DSlvHp-D.js → mesh-ops-CiZ8xSAx.js} +1 -1
  293. package/dist/client/assets/{mesh-view-store-C1-mdP3P.js → mesh-view-store-DZvJC4KU.js} +1 -1
  294. package/dist/client/assets/{message-circle-cI5_A5mj.js → message-circle-CxRVKNE-.js} +1 -1
  295. package/dist/client/assets/message-markup-BQW5jdJw.js +15 -0
  296. package/dist/client/assets/message-markup-Zwo3t4cI.js +1 -0
  297. package/dist/client/assets/{message-square-CJW4WRlo.js → message-square-BxesYglW.js} +1 -1
  298. package/dist/client/assets/mission-control-model-BpJHDV5D.js +1 -0
  299. package/dist/client/assets/{mission-control-store-p_cboAm4.js → mission-control-store-elEEsIvb.js} +1 -1
  300. package/dist/client/assets/{mission-wall-DOuGOxQy.js → mission-wall-CAo4BKfa.js} +1 -1
  301. package/dist/client/assets/{monitor-C7_cHlkC.js → monitor-DTTYEb73.js} +1 -1
  302. package/dist/client/assets/{nav-destinations-CU_euC-Q.js → nav-destinations-uorRqFxf.js} +1 -1
  303. package/dist/client/assets/{observe-CtS0l3zu.js → observe-BJqERJVj.js} +1 -1
  304. package/dist/client/assets/{page-status-DwFR4wSw.js → page-status-BswZLqvA.js} +1 -1
  305. package/dist/client/assets/{panel-right-qP17MwMl.js → panel-right-Bv7sP_fc.js} +1 -1
  306. package/dist/client/assets/paperclip-BjcuP_Hx.js +1 -0
  307. package/dist/client/assets/{pause-B_hliKuR.js → pause-C2XTlkjs.js} +1 -1
  308. package/dist/client/assets/{persistent-state-BUsTTZFE.js → persistent-state-KRk_yb0q.js} +1 -1
  309. package/dist/client/assets/{pin-Oi4qHR6M.js → pin-C2mFOV1l.js} +1 -1
  310. package/dist/client/assets/{play-CVeRmqLH.js → play-FT6K3It1.js} +1 -1
  311. package/dist/client/assets/{plus-D5NLH_fM.js → plus-DFDDeGKu.js} +1 -1
  312. package/dist/client/assets/profile-DTmzN16I.js +1 -0
  313. package/dist/client/assets/{projects-inbox-CfwxCTdN.js → projects-inbox-C0FUCv_p.js} +1 -1
  314. package/dist/client/assets/projects-inbox-ColX6lpx.css +1 -0
  315. package/dist/client/assets/{provider-DwmCoSlc.js → provider-Dojd8quC.js} +1 -1
  316. package/dist/client/assets/{proxy-DgzP27W8.js → proxy-AJsmwA6h.js} +1 -1
  317. package/dist/client/assets/{radio-Cas2qg1D.js → radio-DRoOZsws.js} +1 -1
  318. package/dist/client/assets/{refresh-cw-IcD2lPoT.js → refresh-cw-BmVr7sCD.js} +1 -1
  319. package/dist/client/assets/resolve-panes-pbY1fCWi.js +1 -0
  320. package/dist/client/assets/resolve-sidebar-context-YWkZTq1t.js +1 -0
  321. package/dist/client/assets/right-49kO-6nD.js +1 -0
  322. package/dist/client/assets/right-APtItA8A.js +1 -0
  323. package/dist/client/assets/right-BJwhPqtn.js +1 -0
  324. package/dist/client/assets/right-BPqrf4ek.js +1 -0
  325. package/dist/client/assets/right-D7djOy6K.js +1 -0
  326. package/dist/client/assets/right-DKOUCRob.js +1 -0
  327. package/dist/client/assets/right-DMNrVzg7.js +1 -0
  328. package/dist/client/assets/{right-cjPTwPXS.js → right-DWPVB-nK.js} +1 -1
  329. package/dist/client/assets/right-DppeMCy4.js +1 -0
  330. package/dist/client/assets/right-GAL5Mw1v.js +1 -0
  331. package/dist/client/assets/{rocket-DAqYvu8I.js → rocket-CGl4RTV7.js} +1 -1
  332. package/dist/client/assets/router-DCtl8wqb.js +1 -0
  333. package/dist/client/assets/runtime-picker-DXu2bOTh.js +1 -0
  334. package/dist/client/assets/{scope-views-Dl3ml9OZ.js → scope-views-RUWwCVAr.js} +1 -1
  335. package/dist/client/assets/scout-voice-CZx60X6E.js +1 -0
  336. package/dist/client/assets/{scoutbot-markdown-DwvGQOWo.js → scoutbot-markdown-BKEBSbG0.js} +1 -1
  337. package/dist/client/assets/{scroll-text-B0tKI9Sg.js → scroll-text-DNjxhyO2.js} +1 -1
  338. package/dist/client/assets/{search-UsM-9-_W.js → search-DT42oyRW.js} +1 -1
  339. package/dist/client/assets/secondaryNavConfig-CS1svh6n.js +1 -0
  340. package/dist/client/assets/{selection-bridge-OTS2iFkt.js → selection-bridge-x3wFUjxj.js} +1 -1
  341. package/dist/client/assets/{send-horizontal-BlQsRK6C.js → send-horizontal-CH0-fbZE.js} +1 -1
  342. package/dist/client/assets/{send-to-agent-session-C1mgqdow.js → send-to-agent-session-DoKCDBJ4.js} +1 -1
  343. package/dist/client/assets/{server-DBlPW0Mp.js → server-QfsgMLk1.js} +1 -1
  344. package/dist/client/assets/{session-catalog-CnpZMB7C.js → session-catalog-CvSdPHPe.js} +1 -1
  345. package/dist/client/assets/session-recap-lanes-D-eVJnpY.js +1 -0
  346. package/dist/client/assets/session-recap-queue-41l2XVkI.js +1 -0
  347. package/dist/client/assets/{session-table-CGkfG5Yd.js → session-table-L-pns6Zl.js} +1 -1
  348. package/dist/client/assets/{sessions-view-Bge4XZ4I.js → sessions-view-Dc-QAa7O.js} +1 -1
  349. package/dist/client/assets/{settings-C69Zjrpq.js → settings-BVh7kldq.js} +1 -1
  350. package/dist/client/assets/{sliders-horizontal-6bzeod7c.js → sliders-horizontal-782VC_yy.js} +1 -1
  351. package/dist/client/assets/{sparkles-Cc5lPZRv.js → sparkles-BjHq_DNK.js} +1 -1
  352. package/dist/client/assets/{sse-A8AyLH0g.js → sse-BCPRocpq.js} +1 -1
  353. package/dist/client/assets/system-surfaces-redesign-q2BmCB7e.css +1 -0
  354. package/dist/client/assets/{tail-events-C4WdhVeK.js → tail-events-d0yAYxR0.js} +1 -1
  355. package/dist/client/assets/{terminal-DMZjX1es.js → terminal-hQKQygcf.js} +1 -1
  356. package/dist/client/assets/{terminal-relay-mO89dX-Y.js → terminal-relay-Bxs1hp-j.js} +1 -1
  357. package/dist/client/assets/{terminal-takeover-CZZsnPzj.js → terminal-takeover-Ay5C2c-M.js} +1 -1
  358. package/dist/client/assets/theme-vars-DNK0nn3k.js +1 -0
  359. package/dist/client/assets/triangle-alert-CHoRGdVO.js +1 -0
  360. package/dist/client/assets/{use-beside-D3cJpA5p.js → use-beside-DoRC1nt0.js} +1 -1
  361. package/dist/client/assets/{use-conversation-list-D5EnpVba.js → use-conversation-list-CY4JciOV.js} +1 -1
  362. package/dist/client/assets/{use-fleet-active-asks-D_QOmjg5.js → use-fleet-active-asks-CymmXWH4.js} +1 -1
  363. package/dist/client/assets/{use-mesh-node-state-3V3ADQ-G.js → use-mesh-node-state-BvaqtODo.js} +1 -1
  364. package/dist/client/assets/{use-mesh-ops-items-DI9GKWlF.js → use-mesh-ops-items-BSYaqH_0.js} +1 -1
  365. package/dist/client/assets/{use-reduced-motion-CiaZHMnk.js → use-reduced-motion-3gMYZNIp.js} +1 -1
  366. package/dist/client/assets/{use-scout-dev-flags-CkdAHlDR.js → use-scout-dev-flags-DS_pYYQd.js} +1 -1
  367. package/dist/client/assets/{useAgentHoverCard-A3QGXqIy.js → useAgentHoverCard-BANmpjMh.js} +1 -1
  368. package/dist/client/assets/useContentSecondaryNav-C6OBu-3_.js +1 -0
  369. package/dist/client/assets/{useEmbedHeadline-atkQVfGw.js → useEmbedHeadline-D6pJRxUg.js} +1 -1
  370. package/dist/client/assets/usePersistentState-B8lP7TRb.js +1 -0
  371. package/dist/client/assets/{usePierreRuntime-DTvcwISe.js → usePierreRuntime-BAQdiN0L.js} +1 -1
  372. package/dist/client/assets/useSidebarCollapse-OL_8J5cL.js +1 -0
  373. package/dist/client/assets/{users-RLK3P5U4.js → users-BUjx36gx.js} +1 -1
  374. package/dist/client/assets/voice-paths-CJUuBPh3.css +1 -0
  375. package/dist/client/assets/voice-turn-DftA0iIb.css +1 -0
  376. package/dist/client/assets/voice-turn-ledger-BMZxlSjg.js +1 -0
  377. package/dist/client/assets/{wrench-B4maQJai.js → wrench-DR0i5BU7.js} +1 -1
  378. package/dist/client/assets/{x-rlMdRqJF.js → x-DAehov0E.js} +1 -1
  379. package/dist/client/assets/{xterm-B1zHHOLQ.js → xterm-BXQiLVnI.js} +1 -1
  380. package/dist/client/assets/{zap-B4X0OrEw.js → zap-CEjZNZbI.js} +1 -1
  381. package/dist/client/crew/sheets/eye-plate-v1/look-down-left.webp +0 -0
  382. package/dist/client/crew/sheets/eye-plate-v1/look-down-right.webp +0 -0
  383. package/dist/client/crew/sheets/eye-plate-v1/look-down.webp +0 -0
  384. package/dist/client/crew/sheets/eye-plate-v1/look-up-left.webp +0 -0
  385. package/dist/client/crew/sheets/eye-plate-v1/look-up-right.webp +0 -0
  386. package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
  387. package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
  388. package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
  389. package/dist/client/crew/sheets/sprout/look-down-left.webp +0 -0
  390. package/dist/client/crew/sheets/sprout/look-down-right.webp +0 -0
  391. package/dist/client/crew/sheets/sprout/look-down.webp +0 -0
  392. package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
  393. package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
  394. package/dist/client/crew/sheets/sprout/look-up-left.webp +0 -0
  395. package/dist/client/crew/sheets/sprout/look-up-right.webp +0 -0
  396. package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
  397. package/dist/client/index.html +2 -2
  398. package/dist/drizzle/0020_message_reactions.sql +11 -0
  399. package/dist/drizzle/meta/_journal.json +7 -0
  400. package/dist/main.mjs +542 -150
  401. package/dist/node/main.mjs +131 -17
  402. package/dist/pairing-runtime-controller.mjs +375 -78
  403. package/dist/runtime/base-daemon.mjs +98 -5
  404. package/dist/runtime/broker-daemon.mjs +1879 -1198
  405. package/dist/runtime/broker-process-manager.mjs +96 -3
  406. package/dist/runtime/mesh-discover.mjs +96 -3
  407. package/dist/scout-control-plane-web.mjs +4817 -1616
  408. package/dist/update-helper.mjs +211 -39
  409. package/package.json +5 -3
  410. package/server.json +31 -0
  411. package/dist/client/assets/ActivityScreen-CcDdQTBK.js +0 -1
  412. package/dist/client/assets/AgentAdventures-BxrYq_2v.js +0 -1
  413. package/dist/client/assets/AgentAvatar-NZOqcsB2.js +0 -1
  414. package/dist/client/assets/AgentConfigurationScreen-BhD1PEAM.js +0 -1
  415. package/dist/client/assets/AgentDefinitionsWorkspace-BqS6MXqF.js +0 -1
  416. package/dist/client/assets/AgentFloorView-A0dDRlRV.js +0 -1
  417. package/dist/client/assets/AgentInfoScreen-DuaN0sgE.js +0 -1
  418. package/dist/client/assets/AgentLanesEmbedScreen-CeNiaZ9_.js +0 -1
  419. package/dist/client/assets/AgentLanesView-WZhEDBFE.js +0 -2
  420. package/dist/client/assets/AgentMasterScreen-DUDUTAnU.js +0 -1
  421. package/dist/client/assets/AgentSessions-CO1WGa8Z.js +0 -6
  422. package/dist/client/assets/AgentsConsole-BQOWkj35.js +0 -1
  423. package/dist/client/assets/AgentsScreen-BMNAj1PH.js +0 -1
  424. package/dist/client/assets/AgentsSubnav-CeHhuzyM.js +0 -1
  425. package/dist/client/assets/BriefingDetailScreen-yZG8_m4h.js +0 -1
  426. package/dist/client/assets/BrokerScreen-CT37VQiL.js +0 -8
  427. package/dist/client/assets/ChannelComposer-BVItWlEz.js +0 -1
  428. package/dist/client/assets/ChannelSidebar-B-2spawY.js +0 -1
  429. package/dist/client/assets/ChatBits-CLJ71hTY.js +0 -1
  430. package/dist/client/assets/ChatRightPanel-pKQtkAgl.js +0 -1
  431. package/dist/client/assets/ChatSpaceSurface-NrLwdPkE.js +0 -1
  432. package/dist/client/assets/ChatSpaceTheme-BPMgPdVK.css +0 -1
  433. package/dist/client/assets/ChatSpaceTheme-D37Jk7bl.js +0 -1
  434. package/dist/client/assets/ConversationComposer-DNcn5U6D.js +0 -1
  435. package/dist/client/assets/ConversationFeedRows-RnYSa7Io.js +0 -1
  436. package/dist/client/assets/ConversationHeader-Y9TEJxP_.js +0 -1
  437. package/dist/client/assets/ConversationScreen-Brfas2y0.css +0 -1
  438. package/dist/client/assets/ConversationScreen-tpj4cqWs.js +0 -2
  439. package/dist/client/assets/ConversationStatus-Cv-7hErW.js +0 -1
  440. package/dist/client/assets/CrewAvatar-zgzC3cbU.js +0 -1
  441. package/dist/client/assets/CrewWorkspaces-K2jcyLec.js +0 -1
  442. package/dist/client/assets/FlightObserveScreen-CvzhzuWc.js +0 -1
  443. package/dist/client/assets/FloorResourcesSheet-_Iy5UqgY.js +0 -1
  444. package/dist/client/assets/FloorTacticalHUD-BhyOqlL5.js +0 -1
  445. package/dist/client/assets/HarnessMark-DSvM_H7H.js +0 -1
  446. package/dist/client/assets/HarnessesScreen-DyjqbZ4k.js +0 -1
  447. package/dist/client/assets/InviteLandingScreen-xZQ2na1z.js +0 -1
  448. package/dist/client/assets/InviteSheet--5Zjct25.js +0 -1
  449. package/dist/client/assets/KnowledgeSearchScreen-BPqAjHnH.js +0 -1
  450. package/dist/client/assets/LaneTraceDetailSheet-jl4XQmEx.js +0 -1
  451. package/dist/client/assets/MeshScreen-BW1dMFWF.js +0 -1
  452. package/dist/client/assets/MessagesScreen-CtNMfIvC.js +0 -1
  453. package/dist/client/assets/MissionControlView-BjPOViGY.js +0 -1
  454. package/dist/client/assets/MissionLeftAgentRow-Dms0DBjO.js +0 -1
  455. package/dist/client/assets/NativeAreaScreen-BQSTo8As.js +0 -1
  456. package/dist/client/assets/NativeAreaScreen-Brix6xDB.js +0 -1
  457. package/dist/client/assets/NativeAreaScreen-D7HyQNlM.js +0 -1
  458. package/dist/client/assets/NewChatComposer-BEXS8vV6.js +0 -19
  459. package/dist/client/assets/ObserveEmbedScreen-Dh30EjAQ.js +0 -2
  460. package/dist/client/assets/OpenScoutAppShell-D9pgw36i.js +0 -31
  461. package/dist/client/assets/OpsAgentsView-D3rM0udq.js +0 -1
  462. package/dist/client/assets/OpsScreen-DySeNQ1V.js +0 -1
  463. package/dist/client/assets/OpsSubnav-C9E0r3GZ.js +0 -1
  464. package/dist/client/assets/ProjectAgentProfile-FUav75j2.js +0 -1
  465. package/dist/client/assets/ProjectAgentProfileHero-BLK0EwMg.js +0 -1
  466. package/dist/client/assets/ProjectsInbox-DfCXReZK.js +0 -2
  467. package/dist/client/assets/ProjectsRail-CELVubfJ.js +0 -1
  468. package/dist/client/assets/ProjectsScreen-DMw4TLKy.js +0 -1
  469. package/dist/client/assets/ProjectsThreadAside-D1Sh4fnX.js +0 -1
  470. package/dist/client/assets/Provider-CNZluAZb.js +0 -5
  471. package/dist/client/assets/RailToggle-BwmY70B8.js +0 -1
  472. package/dist/client/assets/RawSessionsTable-6OVJq0JZ.js +0 -1
  473. package/dist/client/assets/RealtimeVoiceScreen-D41TYY0x.js +0 -9
  474. package/dist/client/assets/RepoDiffViewerLazy-BpMR7tlx.js +0 -2
  475. package/dist/client/assets/SessionObserveEvidence-CS1aQBpQ.js +0 -1
  476. package/dist/client/assets/SessionRefScreen-DURV0MpF.js +0 -1
  477. package/dist/client/assets/SessionsScreen-D71ZR-8t.js +0 -1
  478. package/dist/client/assets/SettingsDrawer-Nz98oBVl.js +0 -3
  479. package/dist/client/assets/SettingsScreen-CYBHal6y.js +0 -1
  480. package/dist/client/assets/SharedWorkFloor-BCmdeb3Q.css +0 -1
  481. package/dist/client/assets/SharedWorkFloor-C0xxW4SN.js +0 -2
  482. package/dist/client/assets/SpaceSwitcher-BfeIf-ad.js +0 -1
  483. package/dist/client/assets/Terminal-jIqnIZZ6.js +0 -4
  484. package/dist/client/assets/TerminalEmbedScreen-3XsjuySR.js +0 -1
  485. package/dist/client/assets/WorkDetailScreen-Bcf_yHhU.js +0 -5
  486. package/dist/client/assets/WorldActorTalk-CKerDikx.js +0 -1
  487. package/dist/client/assets/WorldMinimap-DOptgrc4.js +0 -1
  488. package/dist/client/assets/agent-autocomplete-C7xwIcwd.css +0 -1
  489. package/dist/client/assets/agent-autocomplete-_u9o5EZu.js +0 -2
  490. package/dist/client/assets/agents-screen-BMu6PpRY.css +0 -1
  491. package/dist/client/assets/at-sign-DM7xeppo.js +0 -1
  492. package/dist/client/assets/chat-api-BPVC0asu.js +0 -1
  493. package/dist/client/assets/chat-space-model-B6Jg2CY4.js +0 -4
  494. package/dist/client/assets/content-0AXa0klu.js +0 -1
  495. package/dist/client/assets/content-BEyJ19Lx.js +0 -1
  496. package/dist/client/assets/content-BN5weWKW.js +0 -1
  497. package/dist/client/assets/content-BNokkm7C.js +0 -1
  498. package/dist/client/assets/content-BV4PUM9q.js +0 -1
  499. package/dist/client/assets/content-BxUPlcx5.js +0 -1
  500. package/dist/client/assets/content-CIC5sku8.js +0 -1
  501. package/dist/client/assets/content-CdkTyxqk.js +0 -1
  502. package/dist/client/assets/content-CnhhSCZq.js +0 -1
  503. package/dist/client/assets/content-DY3F9Vfr.js +0 -1
  504. package/dist/client/assets/content-DrKBYpcb.js +0 -1
  505. package/dist/client/assets/content-LSStQYj5.js +0 -1
  506. package/dist/client/assets/content-YvU-D0hF.js +0 -1
  507. package/dist/client/assets/content-oKQMyVnH.js +0 -1
  508. package/dist/client/assets/conversation-model-m8HhzroS.js +0 -1
  509. package/dist/client/assets/conversation-motion-features-D9PxLoDt.js +0 -1
  510. package/dist/client/assets/conversations-Cbg9h_Af.js +0 -1
  511. package/dist/client/assets/ctx-panel-F05jXK4Q.css +0 -1
  512. package/dist/client/assets/discover-DlwbftpC.js +0 -2
  513. package/dist/client/assets/embed-entry-c0lwtjBG.js +0 -2
  514. package/dist/client/assets/home-moving-signal-BIHUGNfI.js +0 -1
  515. package/dist/client/assets/home-now-card-CaLgZze2.js +0 -1
  516. package/dist/client/assets/hooks-DaUOREpP.js +0 -2
  517. package/dist/client/assets/index-CGbs0SBm.css +0 -1
  518. package/dist/client/assets/index-CbqBwfIW.js +0 -1
  519. package/dist/client/assets/index-CyPMl7Up.js +0 -1
  520. package/dist/client/assets/index-PQpJveGO.js +0 -1
  521. package/dist/client/assets/left-0vBrvrBG.js +0 -2
  522. package/dist/client/assets/left-C6SyaqlJ.js +0 -1
  523. package/dist/client/assets/left-CTuXysZR.js +0 -2
  524. package/dist/client/assets/left-Cc6s4DT2.js +0 -1
  525. package/dist/client/assets/left-DF5caiyh.js +0 -1
  526. package/dist/client/assets/left-DgT4tWCx.js +0 -1
  527. package/dist/client/assets/left-R0wppTTr.js +0 -1
  528. package/dist/client/assets/left-advisor-C-kt8V28.js +0 -1
  529. package/dist/client/assets/left-agents-thnBO156.js +0 -1
  530. package/dist/client/assets/left-default-CT42fnpF.js +0 -1
  531. package/dist/client/assets/left-lanes-CSmZgciK.js +0 -1
  532. package/dist/client/assets/left-mission-C86x6i9h.js +0 -1
  533. package/dist/client/assets/library-DdhYL_9v.js +0 -1
  534. package/dist/client/assets/message-markup-6Tgo4qFJ.js +0 -15
  535. package/dist/client/assets/mission-control-model-C30vU1Fe.js +0 -1
  536. package/dist/client/assets/profile-BegEUmB7.js +0 -1
  537. package/dist/client/assets/projects-inbox-CKPLZN8s.css +0 -1
  538. package/dist/client/assets/resolve-panes-pfZTezKo.js +0 -1
  539. package/dist/client/assets/resolve-sidebar-context-D5ksvrb_.js +0 -1
  540. package/dist/client/assets/right-BDaCJ0CF.js +0 -1
  541. package/dist/client/assets/right-BP6lXRFS.js +0 -1
  542. package/dist/client/assets/right-Cb1VCrdj.js +0 -1
  543. package/dist/client/assets/right-CeFaxfBo.js +0 -1
  544. package/dist/client/assets/right-Ck2SrYCj.js +0 -1
  545. package/dist/client/assets/right-D-uv5YfF.js +0 -1
  546. package/dist/client/assets/right-DJMSICky.js +0 -1
  547. package/dist/client/assets/right-Dnljs8ah.js +0 -1
  548. package/dist/client/assets/right-SdCSF8PP.js +0 -1
  549. package/dist/client/assets/router-C-MF5-mb.js +0 -1
  550. package/dist/client/assets/runtime-picker-C_AVYF63.js +0 -1
  551. package/dist/client/assets/scout-voice-CqAyfblr.js +0 -1
  552. package/dist/client/assets/secondaryNavConfig-DzNHk6IH.js +0 -1
  553. package/dist/client/assets/system-surfaces-redesign-DKFg4GB5.css +0 -1
  554. package/dist/client/assets/useContentSecondaryNav-DrL_nkCZ.js +0 -1
  555. package/dist/client/assets/usePersistentState-Y8XwSTg-.js +0 -1
  556. package/dist/drizzle/meta/0000_snapshot.json +0 -4575
  557. package/dist/drizzle/meta/0001_snapshot.json +0 -4624
  558. package/dist/drizzle/meta/0002_snapshot.json +0 -4631
  559. package/dist/drizzle/meta/0003_snapshot.json +0 -4952
  560. package/dist/drizzle/meta/0004_snapshot.json +0 -5235
  561. package/dist/drizzle/meta/0005_snapshot.json +0 -5599
  562. package/dist/drizzle/meta/0006_snapshot.json +0 -5606
  563. package/dist/drizzle/meta/0007_snapshot.json +0 -5767
  564. package/dist/drizzle/meta/0008_snapshot.json +0 -5774
  565. package/dist/drizzle/meta/0009_snapshot.json +0 -6262
  566. package/dist/drizzle/meta/0010_snapshot.json +0 -6286
  567. package/dist/drizzle/meta/0011_snapshot.json +0 -6337
  568. package/dist/drizzle/meta/0012_snapshot.json +0 -6458
  569. package/dist/drizzle/meta/0013_snapshot.json +0 -6465
  570. package/dist/drizzle/meta/0014_snapshot.json +0 -6503
  571. package/dist/drizzle/meta/0015_snapshot.json +0 -6596
  572. package/dist/drizzle/meta/0016_snapshot.json +0 -6611
  573. package/dist/drizzle/meta/0017_snapshot.json +0 -6785
  574. package/dist/drizzle/meta/0018_snapshot.json +0 -6804
  575. package/dist/drizzle/meta/0019_snapshot.json +0 -6804
@@ -1 +1 @@
1
- import{r as jt}from"./index-DReVb7jZ.js";import{n as se,D as Wt,E as et,m as X,F as tt,G as nt,H as Ut,I as xe,J as Pe,K as st,N as he,g as ke,t as L,e as qt,f as H,A as K,h as W,O as zt,z as R,Q as Xt,R as U,W as it,T as Ae,U as Yt,V as $t,X as Zt,Y as Jt,Z as Qt,_ as rt,$ as en,a0 as we,a1 as tn,a2 as nn,a3 as sn,b as rn,i as ot,a4 as on,a5 as an,a6 as cn,a7 as Ie,a8 as Oe,a9 as $,aa as Ee,ab as ln,ac as un,ad as fn,ae as hn,af as dn,ag as pn,ah as at,o as mn,ai as gn,aj as yn,ak as vn,al as Tn,am as ct,an as lt,ao as ut,ap as ft,aq as bn}from"./use-reduced-motion-CiaZHMnk.js";const xn=e=>typeof e=="object"&&e!==null,ie=(...e)=>e.reduce((t,n)=>s=>n(t(s))),ht=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1},dt=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,An=1e-7,wn=12;function Vn(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=dt(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>An&&++a<wn);return o}function Y(e,t,n,s){if(e===t&&n===s)return se;const i=r=>Vn(r,0,1,e,n);return r=>r===0||r===1?r:dt(i(r),t,s)}const pt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mt=e=>t=>1-e(1-t),gt=Y(.33,1.53,.69,.99),Ve=mt(gt),yt=pt(Ve),vt=e=>e>=1?1:(e*=2)<1?.5*Ve(e):.5*(2-Math.pow(2,-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Sn=mt(Se),Tt=pt(Se),Cn=Y(.42,0,1,1),Mn=Y(0,0,.58,1),bt=Y(.42,0,.58,1),Dn=e=>Array.isArray(e)&&typeof e[0]!="number",Pn={linear:se,easeIn:Cn,easeInOut:bt,easeOut:Mn,circIn:Se,circInOut:Tt,circOut:Sn,backIn:Ve,backInOut:yt,backOut:gt,anticipate:vt},kn=e=>typeof e=="string",Fe=e=>{if(Wt(e)){et(e.length===4);const[t,n,s,i]=e;return Y(t,n,s,i)}else if(kn(e))return Pn[e];return e};function re(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 In({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=re(u,a,e+1/3),r=re(u,a,e),o=re(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function J(e,t){return n=>n>0?t:e}const oe=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},On=[Ut,tt,nt],En=e=>On.find(t=>t.test(e));function Re(e){const t=En(e);if(!t)return!1;let n=t.parse(e);return t===nt&&(n=In(n)),n}const Le=(e,t)=>{const n=Re(e),s=Re(t);if(!n||!s)return J(e,t);const i={...n};return r=>(i.red=oe(n.red,s.red,r),i.green=oe(n.green,s.green,r),i.blue=oe(n.blue,s.blue,r),i.alpha=X(n.alpha,s.alpha,r),tt.transform(i))},de=new Set(["none","hidden"]);function Fn(e,t){return de.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rn(e,t){return n=>X(e,t,n)}function Ce(e){return typeof e=="number"?Rn:typeof e=="string"?xe(e)?J:Pe.test(e)?Le:Bn:Array.isArray(e)?xt:typeof e=="object"?Pe.test(e)?Le:Ln:J}function xt(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Ce(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ln(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Ce(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Kn(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Bn=(e,t)=>{const n=st.createTransformer(t),s=he(e),i=he(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?de.has(e)&&!i.values.length||de.has(t)&&!s.values.length?Fn(e,t):ie(xt(Kn(s,i),i.values),n):J(e,t)};function At(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?X(e,t,n):Ce(e)(e,t)}const Gn=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>qt(t),now:()=>ke.isProcessing?ke.timestamp:L.now()}},Q=2e4;function Me(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Q;)t+=n,s=e.next(t);return t>=Q?1/0:t}function Nn(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Me(s),Q);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:K(i)}}const V={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};function pe(e,t){return e*Math.sqrt(1-t*t)}const Hn=12;function _n(e,t,n){let s=n;for(let i=1;i<Hn;i++)s=s-e(s)/t(s);return s}const ae=.001;function jn({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:s=V.mass}){let i,r,o=1-t;o=W(V.minDamping,V.maxDamping,o),e=W(V.minDuration,V.maxDuration,K(e)),o<1?(i=l=>{const c=l*o,f=c*e,h=c-n,v=pe(l,o),m=Math.exp(-f);return ae-h/v*m},r=l=>{const f=l*o*e,h=f*n+n,v=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-f),g=pe(Math.pow(l,2),o);return(-i(l)+ae>0?-1:1)*((h-v)*m)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-ae+c*f},r=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=_n(i,r,a);if(e=R(e),isNaN(u))return{stiffness:V.stiffness,damping:V.damping,duration:e};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Wn=["duration","bounce"],Un=["stiffness","damping","mass"];function Ke(e,t){return t.some(n=>e[n]!==void 0)}function qn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Ke(e,Un)&&Ke(e,Wn))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*W(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:r}}else{const n=jn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function ee(e=V.visualDuration,t=V.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:h,isResolvedFromDuration:v}=qn({...n,velocity:-K(n.velocity||0)}),m=h||0,g=l/(2*Math.sqrt(u*c)),d=o-r,p=K(Math.sqrt(u/c)),b=Math.abs(d)<5;s||(s=b?V.restSpeed.granular:V.restSpeed.default),i||(i=b?V.restDelta.granular:V.restDelta.default);let A,w,x,S,M,T;if(g<1)x=pe(p,g),S=(m+g*p*d)/x,A=y=>{const C=Math.exp(-g*p*y);return o-C*(S*Math.sin(x*y)+d*Math.cos(x*y))},M=g*p*S+d*x,T=g*p*d-S*x,w=y=>Math.exp(-g*p*y)*(M*Math.sin(x*y)+T*Math.cos(x*y));else if(g===1){A=C=>o-Math.exp(-p*C)*(d+(m+p*d)*C);const y=m+p*d;w=C=>Math.exp(-p*C)*(p*y*C-m)}else{const y=p*Math.sqrt(g*g-1);A=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return o-F*((m+g*p*d)*Math.sinh(E)+y*d*Math.cosh(E))/y};const C=(m+g*p*d)/y,k=g*p*C-d*y,B=g*p*d-C*y;w=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return F*(k*Math.sinh(E)+B*Math.cosh(E))}}const D={calculatedDuration:v&&f||null,velocity:y=>R(w(y)),next:y=>{if(!v&&g<1){const k=Math.exp(-g*p*y),B=Math.sin(x*y),O=Math.cos(x*y),F=o-k*(S*B+d*O),E=R(k*(M*B+T*O));return a.done=Math.abs(E)<=s&&Math.abs(o-F)<=i,a.value=a.done?o:F,a}const C=A(y);if(v)a.done=y>=f;else{const k=R(w(y));a.done=Math.abs(k)<=s&&Math.abs(o-C)<=i}return a.value=a.done?o:C,a},toString:()=>{const y=Math.min(Me(D),Q),C=zt(k=>D.next(y*k).value,y,30);return y+"ms "+C},toTransition:()=>{}};return D}ee.applyToOptions=e=>{const t=Nn(e,100,ee);return e.ease=t.ease,e.duration=R(t.duration),e.type="keyframes",e};const zn=5;function wt(e,t,n){const s=Math.max(t-zn,0);return Xt(n-e(s),t-s)}function me({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},v=T=>a!==void 0&&T<a||u!==void 0&&T>u,m=T=>a===void 0?u:u===void 0||Math.abs(a-T)<Math.abs(u-T)?a:u;let g=n*t;const d=f+g,p=o===void 0?d:o(d);p!==d&&(g=p-f);const b=T=>-g*Math.exp(-T/s),A=T=>p+b(T),w=T=>{const D=b(T),y=A(T);h.done=Math.abs(D)<=l,h.value=h.done?p:y};let x,S;const M=T=>{v(h.value)&&(x=T,S=ee({keyframes:[h.value,m(h.value)],velocity:wt(A,T,h.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return M(0),{calculatedDuration:null,next:T=>{let D=!1;return!S&&x===void 0&&(D=!0,w(T),M(T)),x!==void 0&&T>=x?S.next(T-x):(!D&&w(T),h)}}}function Xn(e,t,n){const s=[],i=n||U.mix||At,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||se:t;a=ie(u,a)}s.push(a)}return s}function Yn(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(et(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Xn(t,s,i),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=ht(e[f],e[f+1],c);return a[f](h)};return n?c=>l(W(e[0],e[r-1],c)):l}function $n(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=ht(0,t,s);e.push(X(n,1,i))}}function Zn(e){const t=[0];return $n(t,e.length-1),t}function Jn(e,t){return e.map(n=>n*t)}function Qn(e,t){return e.map(()=>t||bt).splice(0,e.length-1)}function z({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Dn(s)?s.map(Fe):Fe(s),r={done:!1,value:t[0]},o=Jn(n&&n.length===t.length?n:Zn(t),e),a=Yn(o,t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:u=>(r.value=a(u),r.done=u>=e,r)}}const es={decay:me,inertia:me,tween:z,keyframes:z,spring:ee};function Vt(e){typeof e.type=="string"&&(e.type=es[e.type])}const ts=e=>e/100;class te extends it{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.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;Vt(t);const{type:n=z,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=n||z;u!==z&&typeof a[0]!="number"&&(this.mixKeyframes=ie(ts,At(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Me(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,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:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:v,type:m,onUpdate:g,finalKeyframe:d}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,w=s;if(f){const T=Math.min(this.currentTime,i)/a;let D=Math.floor(T),y=T%1;!y&&T>=1&&(y=1),y===1&&D--,D=Math.min(D,f+1),D%2&&(h==="reverse"?(y=1-y,v&&(y-=v/a)):h==="mirror"&&(w=o)),A=W(0,1,y)*a}let x;b?(this.delayState.value=c[0],x=this.delayState):x=w.next(A),r&&!b&&(x.value=r(x.value));let{done:S}=x;!b&&u!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&m!==me&&(x.value=Ae(c,this.options,d,this.speed)),g&&g(x.value),M&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+K(t)}get time(){return K(this.currentTime)}set time(t){t=R(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return wt(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=K(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Gn,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(L.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)}}const St={anticipate:vt,backInOut:yt,circInOut:Tt};function ns(e){return e in St}function ss(e){typeof e.ease=="string"&&ns(e.ease)&&(e.ease=St[e.ease])}const ce=10;class is extends Yt{constructor(t){ss(t),Vt(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new te({...o,autoplay:!1}),u=Math.max(ce,L.now()-this.startTime),l=W(0,ce,u-ce),c=a.sample(u).value,{name:f}=this.options;r&&f&&$t(r,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Be=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function rs(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 os(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Be(i,t),a=Be(r,t);return!o||!a?!1:rs(e)||(n==="spring"||Zt(n))&&s}function ge(e){e.duration=0,e.type="keyframes"}const as=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function cs(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&as.test(e[t]))return!0;return!1}const ls=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),us=Qt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fs(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return us()&&n&&(Jt.has(n)||ls.has(n)&&cs(a))&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const hs=40;class ds extends it{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();const h={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},v=c?.KeyframeResolver||rt;this.keyframeResolver=new v(a,(m,g,d)=>this.onKeyframesResolved(m,g,h,!d),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=L.now();let f=!0;os(t,r,o,a)||(f=!1,(U.instantAnimations||!u)&&c?.(Ae(t,s,n)),t[0]=t[t.length-1],ge(s),s.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>hs?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=f&&!l&&fs(v),g=v.motionValue?.owner?.current;let d;if(m)try{d=new is({...v,element:g})}catch{d=new te(v)}else d=new te(v);d.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),en()),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 Ct(e,t,n,s=0,i=1){const r=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}function Mt(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Dt(e,t){const n=e?.[t]??e?.default??e;return n!==e?Mt(n,e):n}const ps={type:"spring",stiffness:500,damping:25,restSpeed:10},ms=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gs={type:"keyframes",duration:.8},ys={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vs=(e,{keyframes:t})=>t.length>2?gs:we.has(e)?e.startsWith("scale")?ms(t[1]):ps:ys,Ts=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function bs(e){for(const t in e)if(!Ts.has(t))return!0;return!1}const xs=(e,t,n,s={},i,r)=>o=>{const a=Dt(s,e)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-R(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};bs(a)||Object.assign(c,vs(e,c)),c.duration&&(c.duration=R(c.duration)),c.repeatDelay&&(c.repeatDelay=R(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ge(c),c.delay===0&&(f=!0)),(U.instantAnimations||U.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,ge(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const h=Ae(c.keyframes,a);if(h!==void 0){H.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new te(c):new ds(c)},As=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ws(e){const t=As.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function Pt(e,t,n=1){const[s,i]=ws(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return tn(o)?parseFloat(o):o}return xe(i)?Pt(i,t,n+1):i}function _(e,t,n){const s=e.getProps();return nn(s,t,n!==void 0?n:s.custom,e)}const kt=new Set(["width","height","top","left","right","bottom",...sn]),ye=e=>Array.isArray(e);function Vs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rn(n))}function Ss(e){return ye(e)?e[e.length-1]||0:e}function Cs(e,t){const n=_(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ss(r[o]);Vs(e,o,a)}}function Ms(e){return!!(ot(e)&&e.add)}function Ds(e,t){const n=e.getValue("willChange");if(Ms(n))return n.add(t);if(!n&&U.WillChange){const s=new U.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Ps(e){return e.props[on]}function ks({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function It(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();r=r?Mt(r,u):u;const l=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);const f=[],h=i&&e.animationState&&e.animationState.getState()[i],v=r?.path;v&&v.animateVisualElement(e,a,r,n,f);for(const m in a){const g=e.getValue(m,e.latestValues[m]??null),d=a[m];if(d===void 0||h&&ks(h,m))continue;const p={delay:n,...Dt(r||{},m)};c&&(p.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(d)&&d===b&&!p.velocity){H.update(()=>g.set(d));continue}let A=!1;if(window.MotionHandoffAnimation){const S=Ps(e);if(S){const M=window.MotionHandoffAnimation(S,m,H);M!==null&&(p.startTime=M,A=!0)}}Ds(e,m);const w=l??e.shouldReduceMotion;g.start(xs(m,g,d,w&&kt.has(m)?{type:!1}:p,e,A));const x=g.animation;x&&f.push(x)}if(o){const m=()=>H.update(()=>{o&&Cs(e,o)});f.length?Promise.all(f).then(m):m()}return f}function ve(e,t,n={}){const s=_(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(It(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Is(e,t,u,l,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function Is(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(ve(u,t,{...o,delay:n+(typeof s=="function"?0:s)+Ct(e.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function Os(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>ve(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=ve(e,t,n);else{const i=typeof t=="function"?_(e,t,n.custom):t;s=Promise.all(It(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Es(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||an(e):!0}const Fs=new Set(["auto","none","0"]);function Rs(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Fs.has(r)&&he(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=cn(n,i)}class Ls extends rt{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),xe(f))){const h=Pt(f,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!kt.has(s)||t.length!==2)return;const[i,r]=t,o=Ie(i),a=Ie(r),u=Oe(i),l=Oe(r);if(u!==l&&$[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ee(o)&&Ee(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else $[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Es(t[i]))&&s.push(i);s.length&&Rs(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=$[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function Ks(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}function Bs(e){return xn(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const Ge={x:!1,y:!1};function Ot(){return Ge.x||Ge.y}function Et(e,t){const n=Ks(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Gs(e){return!(e.pointerType==="touch"||Ot())}function Ns(e,t,n={}){const[s,i,r]=Et(e,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",m)},f=d=>{l&&(l(d),l=void 0),c()},h=d=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(d))},v=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=d=>{if(d.pointerType!=="touch"){if(a){u=!0;return}f(d)}},g=d=>{if(!Gs(d))return;u=!1;const p=t(o,d);typeof p=="function"&&(l=p,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",v,i)}),r}const Ft=(e,t)=>t?e===t?!0:Ft(e,t.parentElement):!1,Rt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _s(e){return Hs.has(e.tagName)||e.isContentEditable===!0}const js=new Set(["INPUT","SELECT","TEXTAREA"]);function Si(e){return js.has(e.tagName)||e.isContentEditable===!0}const Z=new WeakSet;function Ne(e){return t=>{t.key==="Enter"&&e(t)}}function le(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ws=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Ne(()=>{if(Z.has(n))return;le(n,"down");const i=Ne(()=>{le(n,"up")}),r=()=>le(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function He(e){return Rt(e)&&!Ot()}const _e=new WeakSet;function Us(e,t,n={}){const[s,i,r]=Et(e,n),o=a=>{const u=a.currentTarget;if(!He(a)||_e.has(a))return;Z.add(u),n.stopPropagation&&_e.add(a);const l=t(u,a),c=(v,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Z.has(u)&&Z.delete(u),He(v)&&typeof l=="function"&&l(v,{success:m})},f=v=>{c(v,u===window||u===document||n.useGlobalTarget||Ft(u,v.target))},h=v=>{c(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Bs(a)&&(a.addEventListener("focus",l=>Ws(l,i)),!_s(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}class Lt extends ln{constructor(){super(...arguments),this.KeyframeResolver=Ls}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class q{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qs({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Ci({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zs(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ue(e){return e===void 0||e===1}function Xs({scale:e,scaleX:t,scaleY:n}){return!ue(e)||!ue(t)||!ue(n)}function Ys(e){return Xs(e)||$s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $s(e){return je(e.x)||je(e.y)}function je(e){return e&&e!=="0%"}function We(e,t,n){const s=e-n,i=t*s;return n+i}function Ue(e,t,n,s,i){return i!==void 0&&(e=We(e,i,s)),We(e,n,s)+t}function Te(e,t=0,n=1,s,i){e.min=Ue(e.min,t,n,s,i),e.max=Ue(e.max,t,n,s,i)}function Zs(e,{x:t,y:n}){Te(e.x,t.translate,t.scale,t.originPoint),Te(e.y,n.translate,n.scale,n.originPoint)}const qe=.999999999999,ze=1.0000000000001;function Mi(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ne(e.x,-r.scroll.offset.x),ne(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Zs(e,o)),s&&Ys(r.latestValues)&&Js(e,r.latestValues,r.layout?.layoutBox))}t.x<ze&&t.x>qe&&(t.x=1),t.y<ze&&t.y>qe&&(t.y=1)}function ne(e,t){e.min+=t,e.max+=t}function Xe(e,t,n,s,i=.5){const r=X(e.min,e.max,i);Te(e,t,n,r,s)}function Ye(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Js(e,t,n){const s=n??e;Xe(e.x,Ye(t.x,s.x),t.scaleX,t.scale,t.originX),Xe(e.y,Ye(t.y,s.y),t.scaleY,t.scale,t.originY)}function Kt(e,t){return qs(zs(e.getBoundingClientRect(),t))}function Di(e,t,n){const s=Kt(e,n),{scroll:i}=t;return i&&(ne(s.x,i.offset.x),ne(s.y,i.offset.y)),s}function Bt(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Qs(e){return window.getComputedStyle(e)}class ei extends Lt{constructor(){super(...arguments),this.type="html",this.renderInstance=Bt}readValueFromInstance(t,n){if(we.has(n))return this.projection?.isProjecting?un(n):fn(t,n);{const s=Qs(t),i=(hn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kt(t,n)}build(t,n,s){dn(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return pn(t,n,s)}}const Gt=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"]);function ti(e,t,n,s){Bt(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Gt.has(i)?i:at(i),t.attrs[i])}class ni extends Lt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(we.has(n)){const s=Tn(n);return s&&s.default||0}return n=Gt.has(n)?n:at(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return gn(t,n,s)}build(t,n,s){yn(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){ti(t,n,s,i)}mount(t){this.isSVGTag=vn(t.tagName),super.mount(t)}}const si=lt.length;function Nt(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Nt(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<si;n++){const s=lt[n],i=e.props[s];(ct(i)||i===!1)&&(t[s]=i)}return t}function Ht(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const ii=[...ft].reverse(),ri=ft.length;function oi(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Os(e,n,s)))}function ai(e){let t=oi(e),n=$e(),s=!0,i=!1;const r=l=>(c,f)=>{const h=_(e,f,l==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:v,transitionEnd:m,...g}=h;c={...c,...g,...m}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Nt(e.parent)||{},h=[],v=new Set;let m={},g=1/0;for(let p=0;p<ri;p++){const b=ii[p],A=n[b],w=c[b]!==void 0?c[b]:f[b],x=ct(w),S=b===l?A.isActive:null;S===!1&&(g=p);let M=w===f[b]&&w!==c[b]&&x;if(M&&(s||i)&&e.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...m},!A.isActive&&S===null||!w&&!A.prevProp||ut(w)||typeof w=="boolean")continue;if(b==="exit"&&A.isActive&&S!==!0){A.prevResolvedValues&&(m={...m,...A.prevResolvedValues});continue}const T=ci(A.prevProp,w);let D=T||b===l&&A.isActive&&!M&&x||p>g&&x,y=!1;const C=Array.isArray(w)?w:[w];let k=C.reduce(r(b),{});S===!1&&(k={});const{prevResolvedValues:B={}}=A,O={...B,...k},F=P=>{D=!0,v.has(P)&&(y=!0,v.delete(P)),A.needsAnimating[P]=!0;const I=e.getValue(P);I&&(I.liveStyle=!1)};for(const P in O){const I=k[P],G=B[P];if(m.hasOwnProperty(P))continue;let j=!1;ye(I)&&ye(G)?j=!Ht(I,G)||T:j=I!==G,j?I!=null?F(P):v.add(P):I!==void 0&&v.has(P)?F(P):A.protectedKeys[P]=!0}A.prevProp=w,A.prevResolvedValues=k,A.isActive&&(m={...m,...k}),(s||i)&&e.blockInitialAnimation&&(D=!1);const E=M&&T;D&&(!E||y)&&h.push(...C.map(P=>{const I={type:b};if(typeof P=="string"&&(s||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,j=_(G,P);if(G.enteringChildren&&j){const{delayChildren:_t}=j.transition||{};I.delay=Ct(G.enteringChildren,e,_t)}}return{animation:P,options:I}}))}if(v.size){const p={};if(typeof c.initial!="boolean"){const b=_(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(p.transition=b.transition)}v.forEach(b=>{const A=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),p[b]=A??null}),h.push({animation:p})}let d=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(d=!1),s=!1,i=!1,d?t(h):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$e(),i=!0}}}function ci(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ht(t,e):!1}function N(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $e(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}function Ze(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Pi=(e,t)=>t.isSVG??bn(e)?new ni(t):new ei(t,{allowProjection:e!==jt.Fragment});class li extends q{constructor(t){super(t),t.animationState||(t.animationState=ai(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ut(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 ui=0;class fi extends q{constructor(){super(...arguments),this.id=ui++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=_(this.node,r,o);if(a){const{transition:u,transitionEnd:l,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ki={animation:{Feature:li},exit:{Feature:fi}};function De(e){return{point:{x:e.pageX,y:e.pageY}}}const Ii=e=>t=>Rt(t)&&e(t,De(t));function Je(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&H.postRender(()=>r(t,De(t)))}class hi extends q{mount(){const{current:t}=this.node;t&&(this.unmount=Ns(t,(n,s)=>(Je(this.node,s,"Start"),i=>Je(this.node,i,"End"))))}unmount(){}}class di extends q{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=ie(Ze(this.node.current,"focus",()=>this.onFocus()),Ze(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qe(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&H.postRender(()=>r(t,De(t)))}class pi extends q{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Us(t,(i,r)=>(Qe(this.node,r,"Start"),(o,{success:a})=>Qe(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const be=new WeakMap,fe=new WeakMap,mi=e=>{const t=be.get(e.target);t&&t(e)},gi=e=>{e.forEach(mi)};function yi({root:e,...t}){const n=e||document;fe.has(n)||fe.set(n,{});const s=fe.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(gi,{root:e,...t})),s[i]}function vi(e,t,n){const s=yi(t);return be.set(e,n),s.observe(e),()=>{be.delete(e),s.unobserve(e)}}const Ti={some:0,all:1};class bi extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ti[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=l?c:f;h&&h(u)};this.stopObserver=vi(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xi(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function xi({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oi={inView:{Feature:bi},tap:{Feature:pi},focus:{Feature:di},hover:{Feature:hi}};export{Ci as A,qs as B,Ds as C,Si as D,q as F,ki as a,xn as b,Pi as c,Sn as d,xs as e,Dt as f,Oi as g,Ys as h,Ge as i,Js as j,Xs as k,Zs as l,$s as m,Mi as n,Ps as o,ht as p,Ze as q,Ks as r,We as s,ne as t,Bs as u,Ii as v,Rt as w,De as x,ie as y,Di as z};
1
+ import{r as jt}from"./index-EsrkGBcv.js";import{n as se,D as Wt,E as et,m as X,F as tt,G as nt,H as Ut,I as xe,J as Pe,K as st,N as he,g as ke,t as L,e as qt,f as H,A as K,h as W,O as zt,z as R,Q as Xt,R as U,W as it,T as Ae,U as Yt,V as $t,X as Zt,Y as Jt,Z as Qt,_ as rt,$ as en,a0 as we,a1 as tn,a2 as nn,a3 as sn,b as rn,i as ot,a4 as on,a5 as an,a6 as cn,a7 as Ie,a8 as Oe,a9 as $,aa as Ee,ab as ln,ac as un,ad as fn,ae as hn,af as dn,ag as pn,ah as at,o as mn,ai as gn,aj as yn,ak as vn,al as Tn,am as ct,an as lt,ao as ut,ap as ft,aq as bn}from"./use-reduced-motion-3gMYZNIp.js";const xn=e=>typeof e=="object"&&e!==null,ie=(...e)=>e.reduce((t,n)=>s=>n(t(s))),ht=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1},dt=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,An=1e-7,wn=12;function Vn(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=dt(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>An&&++a<wn);return o}function Y(e,t,n,s){if(e===t&&n===s)return se;const i=r=>Vn(r,0,1,e,n);return r=>r===0||r===1?r:dt(i(r),t,s)}const pt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mt=e=>t=>1-e(1-t),gt=Y(.33,1.53,.69,.99),Ve=mt(gt),yt=pt(Ve),vt=e=>e>=1?1:(e*=2)<1?.5*Ve(e):.5*(2-Math.pow(2,-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Sn=mt(Se),Tt=pt(Se),Cn=Y(.42,0,1,1),Mn=Y(0,0,.58,1),bt=Y(.42,0,.58,1),Dn=e=>Array.isArray(e)&&typeof e[0]!="number",Pn={linear:se,easeIn:Cn,easeInOut:bt,easeOut:Mn,circIn:Se,circInOut:Tt,circOut:Sn,backIn:Ve,backInOut:yt,backOut:gt,anticipate:vt},kn=e=>typeof e=="string",Fe=e=>{if(Wt(e)){et(e.length===4);const[t,n,s,i]=e;return Y(t,n,s,i)}else if(kn(e))return Pn[e];return e};function re(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 In({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=re(u,a,e+1/3),r=re(u,a,e),o=re(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function J(e,t){return n=>n>0?t:e}const oe=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},On=[Ut,tt,nt],En=e=>On.find(t=>t.test(e));function Re(e){const t=En(e);if(!t)return!1;let n=t.parse(e);return t===nt&&(n=In(n)),n}const Le=(e,t)=>{const n=Re(e),s=Re(t);if(!n||!s)return J(e,t);const i={...n};return r=>(i.red=oe(n.red,s.red,r),i.green=oe(n.green,s.green,r),i.blue=oe(n.blue,s.blue,r),i.alpha=X(n.alpha,s.alpha,r),tt.transform(i))},de=new Set(["none","hidden"]);function Fn(e,t){return de.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rn(e,t){return n=>X(e,t,n)}function Ce(e){return typeof e=="number"?Rn:typeof e=="string"?xe(e)?J:Pe.test(e)?Le:Bn:Array.isArray(e)?xt:typeof e=="object"?Pe.test(e)?Le:Ln:J}function xt(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Ce(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ln(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Ce(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Kn(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Bn=(e,t)=>{const n=st.createTransformer(t),s=he(e),i=he(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?de.has(e)&&!i.values.length||de.has(t)&&!s.values.length?Fn(e,t):ie(xt(Kn(s,i),i.values),n):J(e,t)};function At(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?X(e,t,n):Ce(e)(e,t)}const Gn=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>qt(t),now:()=>ke.isProcessing?ke.timestamp:L.now()}},Q=2e4;function Me(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Q;)t+=n,s=e.next(t);return t>=Q?1/0:t}function Nn(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Me(s),Q);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:K(i)}}const V={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};function pe(e,t){return e*Math.sqrt(1-t*t)}const Hn=12;function _n(e,t,n){let s=n;for(let i=1;i<Hn;i++)s=s-e(s)/t(s);return s}const ae=.001;function jn({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:s=V.mass}){let i,r,o=1-t;o=W(V.minDamping,V.maxDamping,o),e=W(V.minDuration,V.maxDuration,K(e)),o<1?(i=l=>{const c=l*o,f=c*e,h=c-n,v=pe(l,o),m=Math.exp(-f);return ae-h/v*m},r=l=>{const f=l*o*e,h=f*n+n,v=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-f),g=pe(Math.pow(l,2),o);return(-i(l)+ae>0?-1:1)*((h-v)*m)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-ae+c*f},r=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=_n(i,r,a);if(e=R(e),isNaN(u))return{stiffness:V.stiffness,damping:V.damping,duration:e};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Wn=["duration","bounce"],Un=["stiffness","damping","mass"];function Ke(e,t){return t.some(n=>e[n]!==void 0)}function qn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Ke(e,Un)&&Ke(e,Wn))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*W(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:r}}else{const n=jn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function ee(e=V.visualDuration,t=V.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:h,isResolvedFromDuration:v}=qn({...n,velocity:-K(n.velocity||0)}),m=h||0,g=l/(2*Math.sqrt(u*c)),d=o-r,p=K(Math.sqrt(u/c)),b=Math.abs(d)<5;s||(s=b?V.restSpeed.granular:V.restSpeed.default),i||(i=b?V.restDelta.granular:V.restDelta.default);let A,w,x,S,M,T;if(g<1)x=pe(p,g),S=(m+g*p*d)/x,A=y=>{const C=Math.exp(-g*p*y);return o-C*(S*Math.sin(x*y)+d*Math.cos(x*y))},M=g*p*S+d*x,T=g*p*d-S*x,w=y=>Math.exp(-g*p*y)*(M*Math.sin(x*y)+T*Math.cos(x*y));else if(g===1){A=C=>o-Math.exp(-p*C)*(d+(m+p*d)*C);const y=m+p*d;w=C=>Math.exp(-p*C)*(p*y*C-m)}else{const y=p*Math.sqrt(g*g-1);A=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return o-F*((m+g*p*d)*Math.sinh(E)+y*d*Math.cosh(E))/y};const C=(m+g*p*d)/y,k=g*p*C-d*y,B=g*p*d-C*y;w=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return F*(k*Math.sinh(E)+B*Math.cosh(E))}}const D={calculatedDuration:v&&f||null,velocity:y=>R(w(y)),next:y=>{if(!v&&g<1){const k=Math.exp(-g*p*y),B=Math.sin(x*y),O=Math.cos(x*y),F=o-k*(S*B+d*O),E=R(k*(M*B+T*O));return a.done=Math.abs(E)<=s&&Math.abs(o-F)<=i,a.value=a.done?o:F,a}const C=A(y);if(v)a.done=y>=f;else{const k=R(w(y));a.done=Math.abs(k)<=s&&Math.abs(o-C)<=i}return a.value=a.done?o:C,a},toString:()=>{const y=Math.min(Me(D),Q),C=zt(k=>D.next(y*k).value,y,30);return y+"ms "+C},toTransition:()=>{}};return D}ee.applyToOptions=e=>{const t=Nn(e,100,ee);return e.ease=t.ease,e.duration=R(t.duration),e.type="keyframes",e};const zn=5;function wt(e,t,n){const s=Math.max(t-zn,0);return Xt(n-e(s),t-s)}function me({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},v=T=>a!==void 0&&T<a||u!==void 0&&T>u,m=T=>a===void 0?u:u===void 0||Math.abs(a-T)<Math.abs(u-T)?a:u;let g=n*t;const d=f+g,p=o===void 0?d:o(d);p!==d&&(g=p-f);const b=T=>-g*Math.exp(-T/s),A=T=>p+b(T),w=T=>{const D=b(T),y=A(T);h.done=Math.abs(D)<=l,h.value=h.done?p:y};let x,S;const M=T=>{v(h.value)&&(x=T,S=ee({keyframes:[h.value,m(h.value)],velocity:wt(A,T,h.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return M(0),{calculatedDuration:null,next:T=>{let D=!1;return!S&&x===void 0&&(D=!0,w(T),M(T)),x!==void 0&&T>=x?S.next(T-x):(!D&&w(T),h)}}}function Xn(e,t,n){const s=[],i=n||U.mix||At,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||se:t;a=ie(u,a)}s.push(a)}return s}function Yn(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(et(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Xn(t,s,i),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=ht(e[f],e[f+1],c);return a[f](h)};return n?c=>l(W(e[0],e[r-1],c)):l}function $n(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=ht(0,t,s);e.push(X(n,1,i))}}function Zn(e){const t=[0];return $n(t,e.length-1),t}function Jn(e,t){return e.map(n=>n*t)}function Qn(e,t){return e.map(()=>t||bt).splice(0,e.length-1)}function z({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Dn(s)?s.map(Fe):Fe(s),r={done:!1,value:t[0]},o=Jn(n&&n.length===t.length?n:Zn(t),e),a=Yn(o,t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:u=>(r.value=a(u),r.done=u>=e,r)}}const es={decay:me,inertia:me,tween:z,keyframes:z,spring:ee};function Vt(e){typeof e.type=="string"&&(e.type=es[e.type])}const ts=e=>e/100;class te extends it{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.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;Vt(t);const{type:n=z,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=n||z;u!==z&&typeof a[0]!="number"&&(this.mixKeyframes=ie(ts,At(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Me(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,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:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:v,type:m,onUpdate:g,finalKeyframe:d}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,w=s;if(f){const T=Math.min(this.currentTime,i)/a;let D=Math.floor(T),y=T%1;!y&&T>=1&&(y=1),y===1&&D--,D=Math.min(D,f+1),D%2&&(h==="reverse"?(y=1-y,v&&(y-=v/a)):h==="mirror"&&(w=o)),A=W(0,1,y)*a}let x;b?(this.delayState.value=c[0],x=this.delayState):x=w.next(A),r&&!b&&(x.value=r(x.value));let{done:S}=x;!b&&u!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&m!==me&&(x.value=Ae(c,this.options,d,this.speed)),g&&g(x.value),M&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+K(t)}get time(){return K(this.currentTime)}set time(t){t=R(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return wt(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=K(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Gn,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(L.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)}}const St={anticipate:vt,backInOut:yt,circInOut:Tt};function ns(e){return e in St}function ss(e){typeof e.ease=="string"&&ns(e.ease)&&(e.ease=St[e.ease])}const ce=10;class is extends Yt{constructor(t){ss(t),Vt(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new te({...o,autoplay:!1}),u=Math.max(ce,L.now()-this.startTime),l=W(0,ce,u-ce),c=a.sample(u).value,{name:f}=this.options;r&&f&&$t(r,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Be=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function rs(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 os(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Be(i,t),a=Be(r,t);return!o||!a?!1:rs(e)||(n==="spring"||Zt(n))&&s}function ge(e){e.duration=0,e.type="keyframes"}const as=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function cs(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&as.test(e[t]))return!0;return!1}const ls=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),us=Qt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fs(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return us()&&n&&(Jt.has(n)||ls.has(n)&&cs(a))&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const hs=40;class ds extends it{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();const h={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},v=c?.KeyframeResolver||rt;this.keyframeResolver=new v(a,(m,g,d)=>this.onKeyframesResolved(m,g,h,!d),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=L.now();let f=!0;os(t,r,o,a)||(f=!1,(U.instantAnimations||!u)&&c?.(Ae(t,s,n)),t[0]=t[t.length-1],ge(s),s.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>hs?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=f&&!l&&fs(v),g=v.motionValue?.owner?.current;let d;if(m)try{d=new is({...v,element:g})}catch{d=new te(v)}else d=new te(v);d.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),en()),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 Ct(e,t,n,s=0,i=1){const r=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}function Mt(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Dt(e,t){const n=e?.[t]??e?.default??e;return n!==e?Mt(n,e):n}const ps={type:"spring",stiffness:500,damping:25,restSpeed:10},ms=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gs={type:"keyframes",duration:.8},ys={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vs=(e,{keyframes:t})=>t.length>2?gs:we.has(e)?e.startsWith("scale")?ms(t[1]):ps:ys,Ts=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function bs(e){for(const t in e)if(!Ts.has(t))return!0;return!1}const xs=(e,t,n,s={},i,r)=>o=>{const a=Dt(s,e)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-R(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};bs(a)||Object.assign(c,vs(e,c)),c.duration&&(c.duration=R(c.duration)),c.repeatDelay&&(c.repeatDelay=R(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ge(c),c.delay===0&&(f=!0)),(U.instantAnimations||U.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,ge(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const h=Ae(c.keyframes,a);if(h!==void 0){H.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new te(c):new ds(c)},As=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ws(e){const t=As.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function Pt(e,t,n=1){const[s,i]=ws(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return tn(o)?parseFloat(o):o}return xe(i)?Pt(i,t,n+1):i}function _(e,t,n){const s=e.getProps();return nn(s,t,n!==void 0?n:s.custom,e)}const kt=new Set(["width","height","top","left","right","bottom",...sn]),ye=e=>Array.isArray(e);function Vs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rn(n))}function Ss(e){return ye(e)?e[e.length-1]||0:e}function Cs(e,t){const n=_(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ss(r[o]);Vs(e,o,a)}}function Ms(e){return!!(ot(e)&&e.add)}function Ds(e,t){const n=e.getValue("willChange");if(Ms(n))return n.add(t);if(!n&&U.WillChange){const s=new U.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Ps(e){return e.props[on]}function ks({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function It(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();r=r?Mt(r,u):u;const l=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);const f=[],h=i&&e.animationState&&e.animationState.getState()[i],v=r?.path;v&&v.animateVisualElement(e,a,r,n,f);for(const m in a){const g=e.getValue(m,e.latestValues[m]??null),d=a[m];if(d===void 0||h&&ks(h,m))continue;const p={delay:n,...Dt(r||{},m)};c&&(p.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(d)&&d===b&&!p.velocity){H.update(()=>g.set(d));continue}let A=!1;if(window.MotionHandoffAnimation){const S=Ps(e);if(S){const M=window.MotionHandoffAnimation(S,m,H);M!==null&&(p.startTime=M,A=!0)}}Ds(e,m);const w=l??e.shouldReduceMotion;g.start(xs(m,g,d,w&&kt.has(m)?{type:!1}:p,e,A));const x=g.animation;x&&f.push(x)}if(o){const m=()=>H.update(()=>{o&&Cs(e,o)});f.length?Promise.all(f).then(m):m()}return f}function ve(e,t,n={}){const s=_(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(It(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Is(e,t,u,l,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function Is(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(ve(u,t,{...o,delay:n+(typeof s=="function"?0:s)+Ct(e.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function Os(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>ve(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=ve(e,t,n);else{const i=typeof t=="function"?_(e,t,n.custom):t;s=Promise.all(It(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Es(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||an(e):!0}const Fs=new Set(["auto","none","0"]);function Rs(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Fs.has(r)&&he(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=cn(n,i)}class Ls extends rt{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),xe(f))){const h=Pt(f,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!kt.has(s)||t.length!==2)return;const[i,r]=t,o=Ie(i),a=Ie(r),u=Oe(i),l=Oe(r);if(u!==l&&$[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ee(o)&&Ee(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else $[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Es(t[i]))&&s.push(i);s.length&&Rs(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=$[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function Ks(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}function Bs(e){return xn(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const Ge={x:!1,y:!1};function Ot(){return Ge.x||Ge.y}function Et(e,t){const n=Ks(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Gs(e){return!(e.pointerType==="touch"||Ot())}function Ns(e,t,n={}){const[s,i,r]=Et(e,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",m)},f=d=>{l&&(l(d),l=void 0),c()},h=d=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(d))},v=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=d=>{if(d.pointerType!=="touch"){if(a){u=!0;return}f(d)}},g=d=>{if(!Gs(d))return;u=!1;const p=t(o,d);typeof p=="function"&&(l=p,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",v,i)}),r}const Ft=(e,t)=>t?e===t?!0:Ft(e,t.parentElement):!1,Rt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _s(e){return Hs.has(e.tagName)||e.isContentEditable===!0}const js=new Set(["INPUT","SELECT","TEXTAREA"]);function Si(e){return js.has(e.tagName)||e.isContentEditable===!0}const Z=new WeakSet;function Ne(e){return t=>{t.key==="Enter"&&e(t)}}function le(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ws=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Ne(()=>{if(Z.has(n))return;le(n,"down");const i=Ne(()=>{le(n,"up")}),r=()=>le(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function He(e){return Rt(e)&&!Ot()}const _e=new WeakSet;function Us(e,t,n={}){const[s,i,r]=Et(e,n),o=a=>{const u=a.currentTarget;if(!He(a)||_e.has(a))return;Z.add(u),n.stopPropagation&&_e.add(a);const l=t(u,a),c=(v,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Z.has(u)&&Z.delete(u),He(v)&&typeof l=="function"&&l(v,{success:m})},f=v=>{c(v,u===window||u===document||n.useGlobalTarget||Ft(u,v.target))},h=v=>{c(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Bs(a)&&(a.addEventListener("focus",l=>Ws(l,i)),!_s(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}class Lt extends ln{constructor(){super(...arguments),this.KeyframeResolver=Ls}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class q{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qs({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Ci({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zs(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ue(e){return e===void 0||e===1}function Xs({scale:e,scaleX:t,scaleY:n}){return!ue(e)||!ue(t)||!ue(n)}function Ys(e){return Xs(e)||$s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $s(e){return je(e.x)||je(e.y)}function je(e){return e&&e!=="0%"}function We(e,t,n){const s=e-n,i=t*s;return n+i}function Ue(e,t,n,s,i){return i!==void 0&&(e=We(e,i,s)),We(e,n,s)+t}function Te(e,t=0,n=1,s,i){e.min=Ue(e.min,t,n,s,i),e.max=Ue(e.max,t,n,s,i)}function Zs(e,{x:t,y:n}){Te(e.x,t.translate,t.scale,t.originPoint),Te(e.y,n.translate,n.scale,n.originPoint)}const qe=.999999999999,ze=1.0000000000001;function Mi(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ne(e.x,-r.scroll.offset.x),ne(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Zs(e,o)),s&&Ys(r.latestValues)&&Js(e,r.latestValues,r.layout?.layoutBox))}t.x<ze&&t.x>qe&&(t.x=1),t.y<ze&&t.y>qe&&(t.y=1)}function ne(e,t){e.min+=t,e.max+=t}function Xe(e,t,n,s,i=.5){const r=X(e.min,e.max,i);Te(e,t,n,r,s)}function Ye(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Js(e,t,n){const s=n??e;Xe(e.x,Ye(t.x,s.x),t.scaleX,t.scale,t.originX),Xe(e.y,Ye(t.y,s.y),t.scaleY,t.scale,t.originY)}function Kt(e,t){return qs(zs(e.getBoundingClientRect(),t))}function Di(e,t,n){const s=Kt(e,n),{scroll:i}=t;return i&&(ne(s.x,i.offset.x),ne(s.y,i.offset.y)),s}function Bt(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Qs(e){return window.getComputedStyle(e)}class ei extends Lt{constructor(){super(...arguments),this.type="html",this.renderInstance=Bt}readValueFromInstance(t,n){if(we.has(n))return this.projection?.isProjecting?un(n):fn(t,n);{const s=Qs(t),i=(hn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kt(t,n)}build(t,n,s){dn(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return pn(t,n,s)}}const Gt=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"]);function ti(e,t,n,s){Bt(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Gt.has(i)?i:at(i),t.attrs[i])}class ni extends Lt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(we.has(n)){const s=Tn(n);return s&&s.default||0}return n=Gt.has(n)?n:at(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return gn(t,n,s)}build(t,n,s){yn(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){ti(t,n,s,i)}mount(t){this.isSVGTag=vn(t.tagName),super.mount(t)}}const si=lt.length;function Nt(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Nt(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<si;n++){const s=lt[n],i=e.props[s];(ct(i)||i===!1)&&(t[s]=i)}return t}function Ht(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const ii=[...ft].reverse(),ri=ft.length;function oi(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Os(e,n,s)))}function ai(e){let t=oi(e),n=$e(),s=!0,i=!1;const r=l=>(c,f)=>{const h=_(e,f,l==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:v,transitionEnd:m,...g}=h;c={...c,...g,...m}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Nt(e.parent)||{},h=[],v=new Set;let m={},g=1/0;for(let p=0;p<ri;p++){const b=ii[p],A=n[b],w=c[b]!==void 0?c[b]:f[b],x=ct(w),S=b===l?A.isActive:null;S===!1&&(g=p);let M=w===f[b]&&w!==c[b]&&x;if(M&&(s||i)&&e.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...m},!A.isActive&&S===null||!w&&!A.prevProp||ut(w)||typeof w=="boolean")continue;if(b==="exit"&&A.isActive&&S!==!0){A.prevResolvedValues&&(m={...m,...A.prevResolvedValues});continue}const T=ci(A.prevProp,w);let D=T||b===l&&A.isActive&&!M&&x||p>g&&x,y=!1;const C=Array.isArray(w)?w:[w];let k=C.reduce(r(b),{});S===!1&&(k={});const{prevResolvedValues:B={}}=A,O={...B,...k},F=P=>{D=!0,v.has(P)&&(y=!0,v.delete(P)),A.needsAnimating[P]=!0;const I=e.getValue(P);I&&(I.liveStyle=!1)};for(const P in O){const I=k[P],G=B[P];if(m.hasOwnProperty(P))continue;let j=!1;ye(I)&&ye(G)?j=!Ht(I,G)||T:j=I!==G,j?I!=null?F(P):v.add(P):I!==void 0&&v.has(P)?F(P):A.protectedKeys[P]=!0}A.prevProp=w,A.prevResolvedValues=k,A.isActive&&(m={...m,...k}),(s||i)&&e.blockInitialAnimation&&(D=!1);const E=M&&T;D&&(!E||y)&&h.push(...C.map(P=>{const I={type:b};if(typeof P=="string"&&(s||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,j=_(G,P);if(G.enteringChildren&&j){const{delayChildren:_t}=j.transition||{};I.delay=Ct(G.enteringChildren,e,_t)}}return{animation:P,options:I}}))}if(v.size){const p={};if(typeof c.initial!="boolean"){const b=_(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(p.transition=b.transition)}v.forEach(b=>{const A=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),p[b]=A??null}),h.push({animation:p})}let d=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(d=!1),s=!1,i=!1,d?t(h):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$e(),i=!0}}}function ci(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ht(t,e):!1}function N(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $e(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}function Ze(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Pi=(e,t)=>t.isSVG??bn(e)?new ni(t):new ei(t,{allowProjection:e!==jt.Fragment});class li extends q{constructor(t){super(t),t.animationState||(t.animationState=ai(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ut(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 ui=0;class fi extends q{constructor(){super(...arguments),this.id=ui++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=_(this.node,r,o);if(a){const{transition:u,transitionEnd:l,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ki={animation:{Feature:li},exit:{Feature:fi}};function De(e){return{point:{x:e.pageX,y:e.pageY}}}const Ii=e=>t=>Rt(t)&&e(t,De(t));function Je(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&H.postRender(()=>r(t,De(t)))}class hi extends q{mount(){const{current:t}=this.node;t&&(this.unmount=Ns(t,(n,s)=>(Je(this.node,s,"Start"),i=>Je(this.node,i,"End"))))}unmount(){}}class di extends q{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=ie(Ze(this.node.current,"focus",()=>this.onFocus()),Ze(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qe(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&H.postRender(()=>r(t,De(t)))}class pi extends q{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Us(t,(i,r)=>(Qe(this.node,r,"Start"),(o,{success:a})=>Qe(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const be=new WeakMap,fe=new WeakMap,mi=e=>{const t=be.get(e.target);t&&t(e)},gi=e=>{e.forEach(mi)};function yi({root:e,...t}){const n=e||document;fe.has(n)||fe.set(n,{});const s=fe.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(gi,{root:e,...t})),s[i]}function vi(e,t,n){const s=yi(t);return be.set(e,n),s.observe(e),()=>{be.delete(e),s.unobserve(e)}}const Ti={some:0,all:1};class bi extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ti[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=l?c:f;h&&h(u)};this.stopObserver=vi(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xi(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function xi({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oi={inView:{Feature:bi},tap:{Feature:pi},focus:{Feature:di},hover:{Feature:hi}};export{Ci as A,qs as B,Ds as C,Si as D,q as F,ki as a,xn as b,Pi as c,Sn as d,xs as e,Dt as f,Oi as g,Ys as h,Ge as i,Js as j,Xs as k,Zs as l,$s as m,Mi as n,Ps as o,ht as p,Ze as q,Ks as r,We as s,ne as t,Bs as u,Ii as v,Rt as w,De as x,ie as y,Di as z};
@@ -1 +1 @@
1
- import{c}from"./createLucideIcon-ChvMq-zl.js";const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
1
+ import{c}from"./createLucideIcon-zZ8Hx7er.js";const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
@@ -1 +1 @@
1
- import{p as e}from"./nav-destinations-CU_euC-Q.js";const n=e();function c(o){const t=o.toLowerCase();return n.find(r=>r.key===t)??null}export{n as G,c as g};
1
+ import{p as e}from"./nav-destinations-uorRqFxf.js";const n=e();function c(o){const t=o.toLowerCase();return n.find(r=>r.key===t)??null}export{n as G,c as g};
@@ -0,0 +1 @@
1
+ import{r as v,j as s}from"./index-EsrkGBcv.js";import{H as I}from"./HarnessMark-C4naWc16.js";import{n as S}from"./time-Dhsh_2EG.js";import{i as $}from"./agent-lanes-model-DMAdqCmK.js";import{u as x,l as P,a as H,c as z,h as F,b as W,d as b}from"./home-live-action-BkqGLVRY.js";import{C as D}from"./cpu-BOTa_WLr.js";import{G as K}from"./git-branch-B0_fPLO7.js";import{X as q}from"./x-DAehov0E.js";import{F as X}from"./file-code-corner-CsU7jJpu.js";import{A as _}from"./arrow-right-Bp-FpE5V.js";import{T as J}from"./terminal-hQKQygcf.js";import"./lane-ask-display-BTVSakyo.js";import"./context-budget-8qFKqM-j.js";import"./terminal-sessions-3RfJpen8.js";import"./api-DSqpVKC7.js";import"./lane-observe-CteDwdD-.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./createLucideIcon-zZ8Hx7er.js";function Q(e){const i=e?.task?.trim();return!i||/^(working|idle|queued)$/i.test(i)?null:x(i)}function Y(e,i){const n=e?.replace(/\s+/g," ").trim().toLowerCase()??"",t=i?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(n&&t&&n!==t)}function y(e,i){const n=S(e);if(n===null)return"—";const t=Math.max(0,Math.floor((i-n)/1e3));if(t<60)return`${t}s`;const o=Math.floor(t/60);if(o<60)return`${o}m`;const a=Math.floor(o/60);return a<48?`${a}h`:`${Math.floor(a/24)}d`}function C(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function M(e){const i=C(e);if(!i)return"other";const n=i.replace(/\/+$/u,"").split("/").filter(Boolean);return n[n.length-1]??i}function U(e){if(!C(e))return"other";const n=M(e);return n==="other"?"other":`~/${n}`}function B(e,i=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>i?`${n.slice(0,i-1)}…`:n:""}function G(e){const i=e?.metadata?.usage,n=i?.contextInputTokens,t=i?.contextWindowTokens;return typeof n=="number"&&typeof t=="number"&&t>0?{contextPct:Math.min(100,Math.round(n/t*100)),tokensUsed:n,tokensMax:t}:{contextPct:null,tokensUsed:null,tokensMax:null}}function Z(e,i,n,t,o,a){const c=e.projectRoot??e.cwd??null,u=M(c),m=Q(i),g=x(P({observeData:n,checkpoint:null,fallbackTask:null,observeLive:t,skipLifecycleTokens:!0})),p=x(H(n)),N=!m&&!g&&!p,r=z({harness:e.harness,project:u==="other"?null:u,branch:e.branch,live:t,attachedOnly:N&&!t}),f=m||g||x(i?.summary)||p||r||"Working",j=m&&g&&Y(m,g)?g:null,h=S(n?.metadata?.session?.sessionStart),{contextPct:R,tokensUsed:k,tokensMax:L}=G(n);return{id:e.id,action:x(f)||B(f,160)||"Working",nowLine:j,name:e.name,harness:e.harness?.trim()||null,projectKey:u,projectLabel:U(c),projectRoot:c,branch:e.branch?.trim()||null,lastAge:y(o,a),sessionAge:h!==null?y(h,a):null,live:t||!!(i&&(i.status==="working"||i.agentState==="working"||i.agentState==="in_flight")),contextPct:R,tokensUsed:k,tokensMax:L,touchedFiles:n?.files??[],recentEvents:(n?.events??[]).slice(-6),observeData:n??null,agent:e,observeRoute:b(e,"observe"),profileRoute:b(e,"profile"),terminalRoute:b(e,"terminal"),peekRoute:b(e,"peek"),terminalEnabled:W(e),peekEnabled:F(e)}}function w(e,i,n){const t=e.agent,o=$(e.observe),a=t.projectRoot??t.cwd??null,c=M(a),u=x(P({observeData:e.observe,fallbackTask:null,observeLive:o,skipLifecycleTokens:!0})),m=x(H(e.observe)),g=u||m||z({harness:t.harness,project:c==="other"?null:c,branch:t.branch,live:o,attachedOnly:!u&&!m}),p=S(e.observe?.metadata?.session?.sessionStart),{contextPct:N,tokensUsed:r,tokensMax:f}=G(e.observe);return{id:e.id,action:x(g)||B(g,160)||"Active",nowLine:null,name:t.name,harness:t.harness?.trim()||null,projectKey:c,projectLabel:U(a),projectRoot:a,branch:t.branch?.trim()||null,lastAge:y(i,n),sessionAge:p!==null?y(p,n):null,live:o,contextPct:N,tokensUsed:r,tokensMax:f,touchedFiles:e.observe?.files??[],recentEvents:(e.observe?.events??[]).slice(-6),observeData:e.observe??null,agent:t,observeRoute:b(t,"observe"),profileRoute:b(t,"profile"),terminalRoute:b(t,"terminal"),peekRoute:b(t,"peek"),terminalEnabled:W(t),peekEnabled:F(t)}}function ee(e,i,n){const t=e.actorName??e.agentName??e.agentId??"Observed",o=x(e.title)||x(e.summary)||"Observed activity",a=e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null;return{id:e.id,action:o,nowLine:null,name:t,harness:null,projectKey:"observed",projectLabel:"observed",projectRoot:null,branch:null,lastAge:y(i,n),sessionAge:null,live:!1,contextPct:null,tokensUsed:null,tokensMax:null,touchedFiles:[],recentEvents:[],observeData:null,agent:null,observeRoute:a,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function se(e){const i=new Map;for(const n of e){const t=i.get(n.projectKey)??[];t.push(n),i.set(n.projectKey,t)}return[...i.entries()]}function Le({cards:e,sort:i,nowMs:n,movingAskByAgent:t,observeCache:o,navigate:a}){const[c,u]=v.useState(null),[m,g]=v.useState(null),p=v.useRef(null),N=v.useRef(null),r=v.useMemo(()=>e.map(l=>l.bucket==="working"?Z(l.agent,t.get(l.agent.id),o[l.agent.id]?.data??null,$(o[l.agent.id]?.data),l.lastActivityAt,n):l.bucket==="native"?w(l.lane,l.lastActivityAt,n):ee(l.actor,l.lastActivityAt,n)),[e,t,n,o]),f=v.useMemo(()=>se(r),[r]),j=r.findIndex(l=>l.id===c),h=j>=0?r[j]:null,R=v.useCallback((l,d)=>{c||(p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{const V=Math.max(16,Math.min(d.left+96,window.innerWidth-360-16)),E=d.bottom+8+220>window.innerHeight&&d.top>220;g({id:l,left:V,top:E?null:d.bottom+8,bottom:E?window.innerHeight-(d.top-8):null})},180))},[c]),k=v.useCallback(()=>{p.current!==null&&window.clearTimeout(p.current),p.current=null,g(null)},[]),L=v.useCallback(l=>{k(),u(d=>d===l?null:l)},[k]),O=v.useCallback(l=>{if(r.length!==0)if(l.key==="ArrowDown"){l.preventDefault();const d=j<0?0:Math.min(r.length-1,j+1);u(r[d]?.id??null)}else if(l.key==="ArrowUp"){l.preventDefault();const d=j<0?r.length-1:Math.max(0,j-1);u(r[d]?.id??null)}else l.key==="Escape"?(l.preventDefault(),u(null)):l.key==="Enter"&&h&&h.observeRoute&&(l.preventDefault(),a(h.observeRoute))},[a,h,j,r]);return v.useEffect(()=>{c&&!r.some(l=>l.id===c)&&u(null)},[c,r]),s.jsxs("div",{ref:N,className:`s-moving-signal-stage ${h?"s-moving-signal-stage--split":""}`,onKeyDown:O,tabIndex:0,role:"region","aria-label":"What's moving signal stream and inspector",children:[s.jsx("div",{className:"s-moving-stream-pane",children:i==="grouped"?s.jsx("div",{className:"s-moving-signal-grouped",children:f.map(([l,d])=>s.jsxs("section",{className:"s-moving-signal-group",children:[s.jsxs("header",{className:"s-moving-signal-band",children:[s.jsx("span",{className:"s-moving-signal-band-title",children:d[0]?.projectLabel??l}),s.jsxs("span",{className:"label-xs s-moving-signal-band-count",children:[d.length," ",d.length===1?"Signal":"Signals",d[0]?.branch?` · ${d[0].branch}`:""]})]}),s.jsx("div",{className:"s-moving-signal-list",children:d.map(A=>s.jsx(T,{row:A,grouped:!0,selected:c===A.id,onSelect:L,onHoverStart:R,onHoverEnd:k},A.id))})]},l))}):s.jsx("div",{className:"s-moving-signal-list",children:r.map(l=>s.jsx(T,{row:l,selected:c===l.id,onSelect:L,onHoverStart:R,onHoverEnd:k},l.id))})}),h&&s.jsx("aside",{className:"s-moving-inspector-pane","aria-label":`Live Inspector · ${h.name}`,children:s.jsx(ne,{row:h,onClose:()=>u(null),navigate:a})}),!h&&m&&s.jsx(te,{row:r.find(l=>l.id===m.id)??null,top:m.top,bottom:m.bottom,left:m.left})]})}function T({row:e,grouped:i,selected:n,onSelect:t,onHoverStart:o,onHoverEnd:a}){const c=e.projectKey!=="other"&&e.projectKey!=="observed",u=i||!c?e.name:e.projectKey;return s.jsx("div",{className:"s-moving-signal-item",children:s.jsxs("button",{type:"button",className:`s-moving-signal-row ${n?"is-selected":""}`,"aria-pressed":n,onClick:()=>t(e.id),onMouseEnter:m=>o(e.id,m.currentTarget.getBoundingClientRect()),onMouseLeave:a,onFocus:m=>o(e.id,m.currentTarget.getBoundingClientRect()),onBlur:a,children:[s.jsxs("span",{className:`s-moving-signal-age ${e.live?"is-live":""}`,children:[s.jsx("span",{className:`dot ${e.live?"dot--working dot--pulse dot--glow":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs",children:e.lastAge})]}),s.jsx("span",{className:"s-moving-signal-mark",children:e.harness?s.jsx(I,{harness:e.harness,size:12}):s.jsx(D,{size:12})}),s.jsxs("span",{className:"s-moving-signal-where",children:[s.jsx("span",{className:"s-moving-signal-project",children:u}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--neutral s-moving-signal-branch-chip",children:[s.jsx(K,{size:9,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action}),e.contextPct!==null&&s.jsxs("span",{className:"s-moving-signal-ctx-badge",title:`Context window: ${e.contextPct}%`,children:[s.jsx("span",{className:"s-moving-signal-ctx-mini-bar",children:s.jsx("span",{className:"s-moving-signal-ctx-mini-fill",style:{width:`${e.contextPct}%`}})}),s.jsxs("span",{className:"label-xs",children:[e.contextPct,"%"]})]})]})})}function ne({row:e,onClose:i,navigate:n}){return s.jsxs("div",{className:"s-moving-inspector",children:[s.jsxs("header",{className:"s-moving-inspector-head",children:[s.jsxs("div",{className:"s-moving-inspector-head-left",children:[s.jsx("span",{className:`dot dot--sm ${e.live?"dot--working dot--glow dot--pulse":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs s-moving-inspector-live-status",children:e.live?"LIVE ACTIVE":"IDLE / LOGGED"}),s.jsxs("span",{className:"label-xs s-moving-inspector-age",children:[e.lastAge," ago"]})]}),s.jsx("div",{className:"s-moving-inspector-head-right",children:s.jsx("button",{type:"button",className:"s-moving-inspector-close-btn",title:"Close inspector (Esc)","aria-label":"Close inspector",onClick:i,children:s.jsx(q,{size:13,"aria-hidden":"true"})})})]}),s.jsxs("div",{className:"s-moving-inspector-agent-strip",children:[s.jsxs("div",{className:"s-moving-inspector-agent-ident",children:[s.jsx("span",{className:"s-moving-inspector-harness-icon",children:e.harness?s.jsx(I,{harness:e.harness,size:16}):s.jsx(D,{size:16})}),s.jsxs("div",{className:"s-moving-inspector-agent-meta",children:[s.jsx("span",{className:"s-moving-inspector-name",children:e.name}),s.jsx("span",{className:"label-xs s-moving-inspector-harness-tag",children:e.harness||"native agent"})]})]}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--working",children:[s.jsx(K,{size:10,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsxs("div",{className:"s-moving-inspector-body",children:[s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Active Task"}),s.jsx("p",{className:"s-moving-inspector-action-text",children:e.action})]}),e.nowLine&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-section--now",children:[s.jsx("span",{className:"label-xs s-moving-inspector-now-badge",children:"Latest Step"}),s.jsx("p",{className:"s-moving-inspector-now-text",children:e.nowLine})]}),e.contextPct!==null&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-token-sec",children:[s.jsxs("div",{className:"s-moving-inspector-token-header",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Context Window"}),s.jsxs("span",{className:"label-xs s-moving-inspector-token-pct",children:[e.contextPct,"%"]})]}),s.jsx("div",{className:"s-moving-inspector-token-bar",children:s.jsx("div",{className:`s-moving-inspector-token-fill ${e.contextPct>80?"s-moving-inspector-token-fill--warn":""}`,style:{width:`${e.contextPct}%`}})}),e.tokensUsed!==null&&e.tokensMax!==null&&s.jsxs("span",{className:"label-xs s-moving-inspector-token-counts",children:[Math.round(e.tokensUsed/1e3),"k / ",Math.round(e.tokensMax/1e3),"k tokens"]})]}),s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Session Metadata"}),s.jsxs("dl",{className:"s-moving-inspector-meta-grid",children:[e.projectRoot&&s.jsxs("div",{children:[s.jsx("dt",{children:"Root"}),s.jsx("dd",{title:e.projectRoot,children:C(e.projectRoot)})]}),e.sessionAge&&s.jsxs("div",{children:[s.jsx("dt",{children:"Session"}),s.jsxs("dd",{children:[e.sessionAge," uptime"]})]}),s.jsxs("div",{children:[s.jsx("dt",{children:"Status"}),s.jsx("dd",{children:e.live?"streaming":"ready"})]})]})]}),e.touchedFiles.length>0&&s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsxs("span",{className:"label-xs s-moving-inspector-sec-label",children:["Active Files (",e.touchedFiles.length,")"]}),s.jsx("ul",{className:"s-moving-inspector-files-list",children:e.touchedFiles.slice(0,4).map((t,o)=>s.jsxs("li",{className:"s-moving-inspector-file-item",children:[s.jsx(X,{size:11,"aria-hidden":"true"}),s.jsx("span",{className:"s-moving-inspector-file-path",title:t.path,children:t.path.split("/").slice(-2).join("/")})]},o))})]})]}),s.jsxs("footer",{className:"s-moving-inspector-footer",children:[e.observeRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--accent s-moving-inspector-primary-action",onClick:()=>n(e.observeRoute),children:[s.jsx("span",{children:"Observe Live"}),s.jsx(_,{size:11,"aria-hidden":"true"})]}),e.profileRoute&&s.jsx("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.profileRoute),children:s.jsx("span",{children:"Profile"})}),e.terminalEnabled&&e.terminalRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.terminalRoute),children:[s.jsx(J,{size:11,"aria-hidden":"true"}),s.jsx("span",{children:"Terminal"})]})]})]})}function te({row:e,top:i,bottom:n,left:t}){return e?s.jsxs("div",{className:"s-moving-signal-hovercard",style:i===null?{bottom:n??16,left:t}:{top:i,left:t},role:"tooltip","aria-hidden":"true",children:[s.jsxs("div",{className:"s-moving-signal-hover-kicker",children:[e.live&&s.jsx("span",{className:"chip chip--working chip--sm chip--caps",children:"Live"}),s.jsxs("span",{className:"label-xs",children:[e.lastAge," ago"]}),e.harness&&s.jsx(I,{harness:e.harness,size:11}),s.jsx("span",{className:"s-moving-signal-hover-name",children:e.name})]}),s.jsx("p",{className:"s-moving-signal-hover-action",children:e.action}),e.nowLine&&s.jsxs("p",{className:"s-moving-signal-hover-now",children:[s.jsx("span",{className:"label-xs s-moving-signal-hover-now-tag",children:"Now"}),s.jsx("span",{children:e.nowLine})]})]}):null}export{Le as HomeMovingSignalList};
@@ -0,0 +1 @@
1
+ import{r as _,j as t}from"./index-EsrkGBcv.js";import{A as ee}from"./AgentAvatar-CrP1eXxk.js";import{H as te}from"./HarnessMark-C4naWc16.js";import{a as se}from"./agent-state-DDhnFEEP.js";import{f as ne}from"./runtime-picker-DXu2bOTh.js";import{n as x}from"./time-Dhsh_2EG.js";import{l as re,h as ie,b as oe,d as G}from"./home-live-action-BkqGLVRY.js";import{a as ae}from"./agent-lane-card-model-CeqQGp-8.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as le}from"./home-now-card-nano-B5Dv3-pb.js";import"./Provider-C35yu29I.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./router-DCtl8wqb.js";import"./api-DSqpVKC7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BCPRocpq.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-C97-iTMK.js";import"./createLucideIcon-zZ8Hx7er.js";import"./media-blobs-Bi8pxr1u.js";import"./index-724SdE6r.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./x-DAehov0E.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";import"./loader-circle-OvccU82H.js";import"./file-text-CnISiiw6.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./index-CHD0qcfL.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./SpriteAvatar-CpZWf54-.js";import"./CrewAvatar-kTznzqcO.js";import"./voice-levels-Dcr3jglk.js";import"./context-budget-8qFKqM-j.js";import"./lane-observe-CteDwdD-.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./bash-format-BRV5C6Gv.js";import"./agent-lane-preview-Dpa3DuOn.js";import"./lane-ask-display-BTVSakyo.js";import"./agent-lanes-model-DMAdqCmK.js";function ce(e,s,r,n){const i={id:e.id,agent:e,source:e.id.startsWith("native:")?"native":"scout",observe:s??null,lastActiveAt:n};return ae(i,{isLive:r,nowMs:n})}function de(e){return e.stats.tools>0||e.stats.files>0||e.context!==null||e.pops.edits.rows.length>0||e.pops.files.rows.length>0}function me(e,s=140){const r=(e??"").replace(/\s+/g," ").trim();return r?r.length>s?`${r.slice(0,s-1)}…`:r:""}function ue(e,s=118){if(e.length<=s)return e;const r=Math.ceil((s-1)*.58),n=Math.floor((s-1)*.42);return`${e.slice(0,r).trimEnd()}…${e.slice(e.length-n).trimStart()}`}function Q(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function pe(e){const s=e?.trim();if(!s)return null;const r=s.endsWith(".jsonl")?s.slice(0,-6):s,n=r.split(/[/:]/u).filter(Boolean).pop()??r;return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(n)?`${n.slice(0,8)}…${n.slice(-6)}`:ue(n,22)}function he(e){const s=e?.trim();return s?s.replace(/^claude-/iu,"").replace(/^gpt-/iu,"gpt ").replace(/\s*\([^)]*\)\s*/u," ").replace(/\s+/g," ").trim():null}function fe(e){const s=e?.trim();return s?s.replace(/\.local$/iu,"").replace(/-local$/iu,""):null}function W(e,s){const r=x(e);if(r===null)return"—";const n=Math.max(0,Math.floor((s-r)/1e3));if(n<60)return`${n}s`;const i=Math.floor(n/60);if(i<60)return`${i}m`;const d=Math.floor(i/60);return d<48?`${d}h`:`${Math.floor(d/24)}d`}function xe(e,s){const r=e?.summary?.trim();if(!r)return null;const n=r.replace(/\s+/g," ");return!n||n===s||/acknowledged via|queued for local execution|received the message/i.test(n)?null:{line:me(n,120)}}function we(e,s,r=!1){const n=x(s?.startedAt)??x(s?.acknowledgedAt)??x(s?.updatedAt)??null,i=x(e.updatedAt),d=s?.task?.trim()||e.project||Q(e.cwd)||`Working in ${e.project??"workspace"}`,c=s?.status??"working",m=se(e.state)||r,u=c==="queued"?"queued":m?"working":"idle";return{agentId:e.id,agentName:e.name,harness:s?.harness??e.harness,model:e.model,branch:e.branch??"main",task:{title:d,openedAt:n},execution:{state:u,lastEventAt:i},checkpoint:xe(s,d)}}function je(e){return e.execution.state==="queued"?"queued":e.execution.state==="idle"?"idle":"live"}function ke(e,s){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),s())}function B(e){e.stopPropagation()}function be(e){switch(e){case"spotlight":return 40;case"duo":return 32;case"strip":return 28;case"dense":return 24}}function Ne(e){switch(e){case"spotlight":return 22;case"duo":return 20;case"strip":return 18;case"dense":return 16}}function ve(e,s){return s?e==="spotlight"||e==="duo":!1}function ge(e){switch(e){case"spotlight":return{w:96,h:20};case"duo":return{w:88,h:20};case"strip":return{w:72,h:18};case"dense":return{w:64,h:16}}}function ye(e,s){if(e.length<=s)return e;const r=new Array(s).fill(0);for(let n=0;n<e.length;n+=1){const i=Math.min(s-1,Math.floor(n/e.length*s));r[i]+=e[n]}return r}function z({pulse:e,layout:s}){const{w:r,h:n}=ge(s),i=ye(e.counts,Math.max(5,Math.round(r/8))),d=i.length>0?Math.max(...i):0;if(d<=0||i.length<2)return null;const c=2,m=r/i.length,u=Math.max(1.5,m-c),N=2,v=n-1,l=i.length-1;return t.jsx("span",{className:"s-now-card-pulse",style:{width:r,height:n},title:"activity · last 30m","aria-hidden":"true",children:t.jsx("svg",{viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"none",children:i.map((o,j)=>{if(o<=0)return null;const g=Math.min(v,Math.max(N,o/d*v)),k=j*m+(m-u)/2;return t.jsx("rect",{x:k.toFixed(2),y:(n-g).toFixed(2),width:u.toFixed(2),height:g.toFixed(2),fill:"var(--accent)",fillOpacity:j===l?"0.95":"0.62"},j)})})})}function Et({agent:e,ask:s,context:r,observeData:n,observeLive:i=!1,lastActivityAt:d,layout:c,nowMs:m,navigate:u,enter:N=!1,enterIndex:v=0}){const l=we(e,s,i),o=_.useMemo(()=>ce(e,n,i,m),[e,n,i,m]),j=de(o),g=ve(c,j),k=je(l),H=e.projectRoot??e.cwd??void 0,R=Q(H)??"no workspace",M=l.branch??"no branch",b=o.harness??l.harness??null,y=o.model??he(r?.model??l.model),q=pe(r?.sessionId??e.harnessSessionId),h=o.context??r?.contextPct??null,I=fe(e.homeNodeName??e.nodeQualifier),D=x(n?.metadata?.session?.sessionStart),K=D!==null?W(D,m):null,p=n?.pulse??null,L=!!(p&&p.counts.some(a=>a>0)),U=l.task.openedAt?W(l.task.openedAt,m):"new",P=x(d)??l.execution.lastEventAt,S=W(P,m),E=re({observeData:n,checkpoint:l.checkpoint?.line??null,fallbackTask:l.task.title,observeLive:i,skipLifecycleTokens:!0}),J=ie(e),X=oe(e),w=c==="dense",T=c==="strip",Y=o.pops.edits.rows.length>0?o.pops.edits:o.pops.files,Z=o.pops.edits.rows.length>0?"Files modified":"Files touched",O=[{key:"root",text:R,title:H,mono:!0},{key:"branch",text:M,title:M,mono:!0}];e.role&&O.push({key:"role",text:ne(e.role)??e.role});const f=[{key:"last",label:"last activity",value:S,inlineValue:`last ${S}`,title:P!==null?`Last activity ${S} ago`:"Last activity unknown",tone:P!==null?"work":"dim"},{key:"turn",label:"turn",value:U,tone:l.task.openedAt?"work":"dim"}];h!==null&&f.push({key:"context",label:"context",value:`${h}%`,tone:h>=80?"warn":"work"}),K&&f.push({key:"uptime",label:"uptime",value:K,tone:"work"}),q&&!w&&f.push({key:"session",label:"session",value:q}),I&&!w&&f.push({key:"machine",label:"machine",value:I});const V=G(e,"observe"),$=a=>F=>{B(F),u(G(e,a))};return t.jsxs("article",{className:`s-now-card s-now-card--${k} s-now-card--layout-${c}${N?" s-now-card--enter":""}`,style:N?{"--enter-delay":`${v*45}ms`}:void 0,onClick:()=>u(V),onKeyDown:a=>ke(a,()=>u(V)),role:"button",tabIndex:0,children:[t.jsxs("div",{className:"s-now-card-top",children:[t.jsx(ee,{agent:e,placement:"row",size:be(c),className:"s-now-card-avatar"}),t.jsxs("div",{className:"s-now-card-ident",children:[t.jsx("span",{className:"s-now-card-name",title:l.agentName,children:l.agentName}),!w&&!T?t.jsxs("span",{className:`s-now-card-live s-now-card-live--${k}`,children:[t.jsx("span",{className:"s-now-card-live-dot","aria-hidden":"true"}),k]}):null]}),b||y?t.jsxs("div",{className:"s-now-card-runtime",title:y??b??void 0,children:[b?t.jsx(te,{harness:b,size:Ne(c),className:"s-now-card-hmark"}):null,y?t.jsx("span",{className:"s-now-card-model",children:y}):null]}):null]}),w?t.jsx("div",{className:"s-now-card-idline s-now-card-idline--dense",children:[b,R,M].filter(Boolean).join(" · ")}):t.jsx("div",{className:"s-now-card-idline",children:O.map((a,F)=>t.jsxs("span",{className:"s-now-card-idgroup",children:[F>0?t.jsx("span",{className:"s-now-card-idsep","aria-hidden":"true",children:"·"}):null,t.jsx("span",{className:`s-now-card-idpart${a.mono?" s-now-card-idpart--mono":""}`,title:a.title,children:a.text})]},a.key))}),E?t.jsxs("div",{className:`s-now-card-action${i?" s-now-card-action--live":""}`,children:[t.jsx("span",{className:"s-now-card-action-caret","aria-hidden":"true",children:"›"}),t.jsx("span",{className:"s-now-card-action-text",title:E,children:E}),i?t.jsx("span",{className:"s-now-card-action-cursor","aria-hidden":"true"}):null]}):null,w&&L&&p?t.jsx("div",{className:"s-now-card-pulse-cell",children:t.jsx(z,{pulse:p,layout:c})}):null,g?t.jsxs("div",{className:"s-now-card-detail",onClick:B,children:[t.jsxs("div",{className:"s-now-card-nanos",children:[o.stats.tools>0?t.jsxs(t.Fragment,{children:[t.jsx(A,{value:o.stats.tools,label:"tools",group:o.pops.tools}),o.stats.edits>0?t.jsx(A,{value:o.stats.edits,label:"edits",group:o.pops.edits}):null,o.stats.reads>0?t.jsx(A,{value:o.stats.reads,label:"reads",group:o.pops.reads}):null,o.stats.files>0?t.jsx(A,{value:o.stats.files,label:"files",group:o.pops.files}):null]}):t.jsx("span",{className:"s-now-card-nanos-empty",children:"no tool activity yet"}),L&&p?t.jsx(z,{pulse:p,layout:c}):null,h!==null?t.jsxs("span",{className:"s-now-card-ctx",title:`Context window ${h}% used`,children:[t.jsx("span",{className:"s-now-card-ctx-gauge","aria-hidden":"true",children:t.jsx("span",{className:"s-now-card-ctx-fill",style:{width:`${h}%`}})}),t.jsxs("span",{className:"s-now-card-ctx-val",children:[h,"%"]}),t.jsx("span",{className:"s-now-card-ctx-label",children:"ctx"})]}):null]}),t.jsx(le,{label:Z,group:Y})]}):null,!w&&!T?t.jsx("div",{className:"s-now-card-metrics",style:{gridTemplateColumns:`repeat(${f.length}, minmax(0, 1fr))`},"aria-label":`${l.agentName} signals`,children:f.map(a=>t.jsx($e,{label:a.label,value:a.value,tone:a.tone,title:a.title},a.key))}):t.jsxs("div",{className:"s-now-card-metrics s-now-card-metrics--inline","aria-label":`${l.agentName} signals`,children:[T&&L&&p?t.jsx(z,{pulse:p,layout:c}):null,f.map(a=>t.jsx("span",{className:`s-now-card-metric-inline s-now-card-metric-inline--${a.tone??"dim"}`,title:a.title,children:a.inlineValue??a.value},a.key))]}),t.jsxs("div",{className:"s-now-card-actions",onClick:B,children:[t.jsx(C,{label:"Profile",onClick:$("profile")}),t.jsx(C,{label:"Observe",onClick:$("observe"),primary:!0}),t.jsx(C,{label:"Terminal",onClick:$("terminal"),disabled:!X}),t.jsx(C,{label:"Peek",onClick:$("peek"),disabled:!J})]})]})}function C({label:e,onClick:s,primary:r=!1,disabled:n=!1}){return t.jsx("button",{type:"button",className:`s-now-card-action-btn${r?" s-now-card-action-btn--primary":""}`,onClick:s,disabled:n,"aria-label":e,children:e})}function $e({label:e,value:s,tone:r="dim",title:n}){return t.jsxs("span",{className:`s-metric-tile s-metric-tile--${r}`,title:n,children:[t.jsx("strong",{children:s}),t.jsx("span",{children:e})]})}export{Et as NowCard};
@@ -1 +1 @@
1
- import{j as s}from"./index-DReVb7jZ.js";function d({value:l,label:a,group:n}){const c=!!(n&&n.rows.length>0);return s.jsxs("span",{className:`s-now-card-nano${c?" s-now-card-nano--pop":""}`,children:[s.jsx("span",{className:"s-now-card-nano-val",children:l}),s.jsx("span",{className:"s-now-card-nano-label",children:a}),c?s.jsxs("span",{className:"s-now-card-nano-pop",role:"tooltip",children:[s.jsxs("span",{className:"s-now-card-nano-pop-h",children:[s.jsx("span",{className:"s-now-card-nano-pop-title",children:a}),s.jsx("span",{className:"s-now-card-nano-pop-count",children:n.more>0?`top ${n.rows.length} · ${l}`:l})]}),s.jsxs("span",{className:"s-now-card-nano-pop-list",children:[n.rows.map((e,o)=>s.jsxs("span",{className:"s-now-card-nano-pop-row",title:e.full??e.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${e.tone}`,children:e.mark}),s.jsx("span",{className:"s-now-card-nano-pop-text",children:e.text})]},`${o}:${e.full||e.text}`)),n.more>0?s.jsxs("span",{className:"s-now-card-nano-pop-more",children:["+",n.more," more"]}):null]})]}):null]})}function t({label:l,group:a}){return a.rows.length===0?null:s.jsxs("div",{className:"s-now-card-files","aria-label":l,children:[s.jsxs("div",{className:"s-now-card-files-head",children:[s.jsx("span",{className:"s-now-card-files-title",children:l}),s.jsx("span",{className:"s-now-card-files-count",children:a.rows.length+a.more})]}),s.jsxs("div",{className:"s-now-card-files-list",children:[a.rows.map((n,c)=>s.jsxs("span",{className:"s-now-card-files-row",title:n.full??n.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${n.tone}`,children:n.mark}),s.jsx("span",{className:"s-now-card-files-text",children:n.text})]},`${c}:${n.full||n.text}`)),a.more>0?s.jsxs("span",{className:"s-now-card-files-row s-now-card-files-row--more",children:["+",a.more," more"]}):null]})]})}export{t as HomeNowFilesPanel,d as HomeNowNanoStat};
1
+ import{j as s}from"./index-EsrkGBcv.js";function d({value:l,label:a,group:n}){const c=!!(n&&n.rows.length>0);return s.jsxs("span",{className:`s-now-card-nano${c?" s-now-card-nano--pop":""}`,children:[s.jsx("span",{className:"s-now-card-nano-val",children:l}),s.jsx("span",{className:"s-now-card-nano-label",children:a}),c?s.jsxs("span",{className:"s-now-card-nano-pop",role:"tooltip",children:[s.jsxs("span",{className:"s-now-card-nano-pop-h",children:[s.jsx("span",{className:"s-now-card-nano-pop-title",children:a}),s.jsx("span",{className:"s-now-card-nano-pop-count",children:n.more>0?`top ${n.rows.length} · ${l}`:l})]}),s.jsxs("span",{className:"s-now-card-nano-pop-list",children:[n.rows.map((e,o)=>s.jsxs("span",{className:"s-now-card-nano-pop-row",title:e.full??e.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${e.tone}`,children:e.mark}),s.jsx("span",{className:"s-now-card-nano-pop-text",children:e.text})]},`${o}:${e.full||e.text}`)),n.more>0?s.jsxs("span",{className:"s-now-card-nano-pop-more",children:["+",n.more," more"]}):null]})]}):null]})}function t({label:l,group:a}){return a.rows.length===0?null:s.jsxs("div",{className:"s-now-card-files","aria-label":l,children:[s.jsxs("div",{className:"s-now-card-files-head",children:[s.jsx("span",{className:"s-now-card-files-title",children:l}),s.jsx("span",{className:"s-now-card-files-count",children:a.rows.length+a.more})]}),s.jsxs("div",{className:"s-now-card-files-list",children:[a.rows.map((n,c)=>s.jsxs("span",{className:"s-now-card-files-row",title:n.full??n.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${n.tone}`,children:n.mark}),s.jsx("span",{className:"s-now-card-files-text",children:n.text})]},`${c}:${n.full||n.text}`)),a.more>0?s.jsxs("span",{className:"s-now-card-files-row s-now-card-files-row--more",children:["+",a.more," more"]}):null]})]})}export{t as HomeNowFilesPanel,d as HomeNowNanoStat};
@@ -0,0 +1,2 @@
1
+ import{r as a,j as f}from"./index-EsrkGBcv.js";import{a as N}from"./provider-Dojd8quC.js";import{a as S}from"./api-DSqpVKC7.js";import{o as A,i as L}from"./surface-activity-B1rgWB1i.js";import{h as R}from"./NewChatComposer-C97-iTMK.js";import{u as v}from"./Provider-C35yu29I.js";import{l as O}from"./machine-children-DxcqCLmd.js";import{d as T,W as y,s as M,e as _}from"./router-DCtl8wqb.js";import{S as x}from"./server-QfsgMLk1.js";import{i as B}from"./keyboard-nav-DDHegDbx.js";import{S as j}from"./scoutbot-Bk3nyrkj.js";import{c as I,d as $}from"./nav-destinations-uorRqFxf.js";import{a as E,s as K}from"./session-recap-lanes-D-eVJnpY.js";import{t as F,b as W,a as H}from"./session-recap-queue-41l2XVkI.js";import{S as V}from"./settings-BVh7kldq.js";function D(e){return e?e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0].split(".")[0]||e:""}function k(e){return D(e?.hostName)||e?.name||"machine"}function b(e,o,n,r){const t=o?.trim();!t||e.has(t)||e.set(t,{id:t,label:n?.trim()||t,group:r})}function P(e,o,n){const r=new Map;e?.localNode?.id&&b(r,e.localNode.id,k(e.localNode),"local");for(const t of Object.values(e?.nodes??{}))b(r,t.id,k(t),t.id===e?.localNode?.id?"local":"mesh");for(const t of o)b(r,t.authorityNodeId,t.authorityNodeName??t.authorityNodeId,"agent"),b(r,t.homeNodeId,t.homeNodeName??t.homeNodeId,"agent");return n&&b(r,n,n,"selected"),Array.from(r.values()).sort((t,l)=>{const i=t.group==="local"?0:t.group==="mesh"?1:t.group==="agent"?2:3,u=l.group==="local"?0:l.group==="mesh"?1:l.group==="agent"?2:3;return i!==u?i-u:t.label.localeCompare(l.label)})}function U({variant:e="bar"}){const{route:o,navigate:n,agents:r}=v(),[t,l]=a.useState(null),[i,u]=a.useState(!1),p=a.useRef(null),s=T(o);a.useEffect(()=>{if(!y(o))return;let d=!1;return S("/api/mesh").then(h=>{d||l(h)}).catch(()=>{d||l(null)}),()=>{d=!0}},[o.view]),a.useEffect(()=>{if(!i)return;const d=w=>{p.current?.contains(w.target)||u(!1)},h=w=>{w.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",h)}},[i]);const m=a.useMemo(()=>P(t,r,s),[r,t,s]);if(!y(o))return null;const c=s?m.find(d=>d.id===s)?.label??s:"All machines",g=f.jsxs("select",{id:"machine-scope-select",className:"machine-scope-select",value:s??"",onChange:d=>{const h=d.currentTarget.value;n(h?M(o,h):_(o)),u(!1)},title:c,children:[f.jsx("option",{value:"",children:"All machines"}),m.map(d=>f.jsx("option",{value:d.id,children:d.group==="local"?`${d.label} (this machine)`:d.label},d.id))]});return e==="rail"?f.jsxs("div",{className:"machine-scope machine-scope--rail",ref:p,children:[f.jsx("button",{type:"button",className:"machine-scope-rail-trigger","aria-label":`Machine scope: ${c}`,title:`Machine scope: ${c}`,"aria-expanded":i,onClick:()=>u(d=>!d),children:f.jsx(x,{size:16,strokeWidth:1.6,"aria-hidden":!0})}),i?f.jsxs("div",{className:"machine-scope-rail-popover",role:"dialog","aria-label":"Machine scope",children:[f.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),g]}):null]}):f.jsxs("div",{className:`machine-scope machine-scope--${e}`,children:[f.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),g]})}const G="C",Ne=["C"],we=["⌘","⌥","N"],Y="New task";function q(e){return e.key.toLowerCase()==="n"||e.code==="KeyN"}function z(e){return e.key.toLowerCase()==="c"||e.code==="KeyC"}function Ce(e){return B(e.target??null)?!1:z(e)&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey||q(e)&&!!(e.metaKey||e.ctrlKey)&&!!e.altKey&&!e.shiftKey}const C={inbox:"Home",conversation:"Conversation","agent-info":"Agent","agents-v2":"Agents",messages:"Chat",sessions:"Sessions",terminal:"Terminals",repos:"Repositories","repo-diff":"Diff",harnesses:"Agent Providers",search:"Search",activity:"Activity Log",briefings:"Briefings",mesh:"Network","mesh-ops":"Mesh Ops",broker:"Broker",settings:"Settings",work:"Work",follow:"Follow",code:"Code Browser",ops:"Ops",voice:"Live Voice"};function ye(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"repo-diff":case"harnesses":case"mesh":case"mesh-ops":case"work":case"code":case"briefings":case"activity":case"follow":case"voice":case"sessions":return C[e.view]??e.view;case"ops":return e.mode==="tail"?"Live Activity":e.mode==="lanes"?"Agent Lanes":e.mode==="world"?"World":e.mode==="atop"?"Runtime Monitor":e.mode==="advisor"?"Host Advisor":e.mode==="mission"||e.mode==="issues"||e.mode===void 0?"Mission Control":C.ops;case"settings":return"Settings";default:return null}}const J=I(),Q={...C};function X(){return J}function Z(e){if(e.view==="settings"&&e.section==="agents")return"agents";switch(e.view){case"agents-v2":case"agent-info":case"repos":case"repo-diff":case"code":return"agents";case"sessions":case"terminal":return"terminals";case"conversation":case"messages":return"chat";case"broker":case"work":case"follow":return"broker";case"search":return"search";case"ops":case"harnesses":case"mesh":case"mesh-ops":return"ops";case"settings":case"voice":return"system";default:return"home"}}function ee(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"harnesses":case"mesh":case"mesh-ops":case"work":return Q[e.view]??e.view;default:return null}}function te({className:e="scout-nav-tabs",brandTag:o,items:n,activeKey:r,breadcrumb:t,navigate:l}){return a.createElement("div",{className:e},o&&a.createElement("span",{className:"scout-nav-scope-tag"},o),n.map(({key:i,label:u,route:p})=>a.createElement("button",{key:i,className:`scout-nav-tab${r===i?" active":""}`,onClick:()=>l(p)},u)),t&&a.createElement("span",{className:"scout-nav-slash"},"/"),t&&a.createElement("span",{className:"scout-nav-crumb"},t))}function se(e){return[{id:"fleet:roll-call",label:"Fleet roll call",action:e.toggleFleetRollCall},{id:"fleet:speak-latest",label:"Speak latest turn",action:e.speakLatestVisibleTurn},{id:"fleet:stop-recaps",label:"Stop spoken summaries",action:e.stopSessionRecaps}]}function Ee(){const{navigate:e,agents:o,reload:n,applyScoutbotUiAction:r,openContextCapture:t}=v(),l=N("ops.control",!0),i=N("surface.scoutbot",!0),[u,p]=a.useState(()=>E().length);a.useEffect(()=>K(()=>p(E().length)),[]);const s=a.useCallback(()=>{r({type:"open-scoutbot",mode:"ask"}),window.dispatchEvent(new CustomEvent(j,{detail:{body:"What's the state of things? Give me a terse ops summary, the biggest risk, and the next action you recommend."}}))},[r]);return a.useMemo(()=>{const m=[{id:"session:new",label:Y,action:()=>t(),shortcut:G},...$(e,{opsEnabled:l}),{id:"nav:settings",label:"Open Settings",action:()=>e({view:"settings",section:"appearance"}),shortcut:"Cmd+,"},...u>0?se({toggleFleetRollCall:F,speakLatestVisibleTurn:W,stopSessionRecaps:H}):[],...i?[{id:"scoutbot:open",label:"Open Scout",action:()=>r({type:"open-scoutbot",mode:"ask"})},{id:"scoutbot:state",label:"Message Scout for State",action:()=>s()},{id:"scoutbot:ops-tail",label:"Scout: Open Ops Tail",action:()=>r({type:"navigate",route:{view:"ops",mode:"tail"}})}]:[],{id:"nav:pair",label:"Pair Device",action:()=>e({view:"settings",section:"devices"})},{id:"scout:reload",label:"Reload Agents",action:()=>{n()}}];for(const c of o)m.push({id:`scout:open:${c.id}`,label:`Open ${c.name}`,action:()=>e({view:"agents-v2",agentId:c.id})}),m.push({id:`scout:message:${c.id}`,label:`Message ${c.name}`,action:()=>{R(c).then(g=>{e({view:"conversation",conversationId:g})}).catch(()=>e({view:"agents-v2",agentId:c.id,tab:"message"}))}});return m},[o,r,s,e,t,l,u,i,n])}function ae(){const{onlineCount:e,apiConnection:o}=v(),[n,r]=a.useState(null),[t,l]=a.useState(null),i=a.useRef(0),u=a.useCallback(async()=>{const s=++i.current;try{const m=await S("/api/mesh");if(s!==i.current)return;r(m)}catch{if(s!==i.current)return;r(null)}},[]);a.useEffect(()=>{u();const s=()=>{L()&&u()},m=setInterval(s,15e3),c=A(s);return()=>{clearInterval(m),c()}},[u]),a.useEffect(()=>{let s=!1;return(async()=>{try{const m=await S("/api/build");if(s)return;if(!m.branch&&!m.commit){const c=await S("/api/build?refresh=1");s||l(c);return}l(m)}catch{s||l(null)}})(),()=>{s=!0}},[]);const p=(()=>{if(!t)return{label:"dev",title:"Build information unavailable"};const s=t.mode==="production"?"prod":"dev",m=t.branch??"unknown",c=t.commit?` @ ${t.commit}${t.dirty?"*":""}`:"";return{label:`${s} ${m}${c}`,title:[`Mode: ${t.mode}`,`Version: ${t.version??"unknown"}`,`Branch: ${t.branch??"unknown"}`,`Commit: ${t.commit??"unknown"}`,`Dirty: ${t.dirty===null?"unknown":t.dirty?"yes":"no"}`].join(`
2
+ `)}})();return{status:o.status==="offline"?{label:"Scout: OFFLINE",color:"red"}:o.status==="degraded"?{label:"Scout: DEGRADED",color:"amber"}:n===null?{label:"Broker: …",color:"neutral"}:n.health.reachable?{label:"Broker: UP",color:"emerald"}:{label:"Broker: DOWN",color:"red"},mesh:(()=>{const s=O(n);return o.status==="offline"?{label:s,value:"offline",color:"red"}:n===null?{label:s,value:"checking",color:"neutral"}:n.health.reachable?Object.values(n.nodes).filter(c=>c.id!==n.localNode?.id).length>0?{label:s,value:"connected",color:"neutral"}:n.identity.discoverable?{label:s,value:"discoverable",color:"neutral"}:{label:s,value:"local",color:"amber"}:{label:s,value:"offline",color:"neutral"}})(),build:p}}function ke(){return ae().status}function Ae(){const{route:e,navigate:o}=v();return N("nav.sidebar",!1)?null:te({items:X(),activeKey:Z(e),breadcrumb:ee(e),navigate:o})}function Le(){const{openSettings:e}=v();return N("nav.sidebar",!1)?null:a.createElement("div",{className:"scout-nav-actions"},a.createElement(U,{variant:"nav"}),a.createElement("button",{onClick:()=>e(),className:"scout-nav-action scout-nav-action--settings",title:"Settings"},a.createElement(V,{size:12,strokeWidth:1.6,"aria-hidden":!0}),a.createElement("span",null,"Settings")))}function Re(){return"panel"}function oe(e){return e.view==="ops"&&e.mode==="lanes"}function Oe(){const{onboarding:e,onboardingSkipped:o,skipOnboarding:n,route:r}=v();if(oe(r))return{active:!1,dismissible:!0};if(!e)return null;if(o||e.needed===!1||e.skippedAt||e.completedAt)return{active:!1,dismissible:!0};const t=!e.hasLocalConfig,l=!e.hasProjectConfig,i=!e.hasOperatorName,u=!e.brokerReachable||!e.hasReadyRuntime;return{active:t||i||l||u,dismissible:!0,onDismiss:n}}export{Y as N,Re as a,Le as b,Ae as c,ke as d,Ee as e,Ne as f,we as g,G as h,ye as i,ae as j,Ce as k,te as r,Oe as u};
@@ -0,0 +1 @@
1
+ import{e as r}from"./index-EsrkGBcv.js";var o=r();export{o as r};
@@ -1 +1 @@
1
- import{j as i}from"./index-DReVb7jZ.js";import{c as m,T as p}from"./TextDocumentSurface-BK6Qy41F.js";import{C as f}from"./chevron-right-DKGTLiqc.js";import{F as v}from"./folder-B_S7gBVr.js";import{F as h}from"./file-text-DP6txVW-.js";const x={id:"audio",canHandle:e=>e.kind==="file"&&e.mediaType.startsWith("audio/"),render:({resource:e})=>{const a=e;return i.jsx("div",{className:"s-file-preview-media-wrap",children:i.jsx("div",{className:"s-file-preview-audio-stage",children:i.jsx("audio",{className:"s-file-preview-audio",src:a.rawUrl,controls:!0})})})}},w={id:"binary",canHandle:()=>!0,render:({resource:e})=>{const a=e;return i.jsxs("div",{className:"s-file-preview-callout",children:[i.jsxs("div",{className:"s-file-preview-callout-title",children:[a.previewReason," — open in OS"]}),i.jsxs("div",{className:"s-file-preview-callout-copy",children:["Scout can resolve this file, but it does not have an inline preview for ",a.mediaType," yet."]})]})}},u=new Set(["text/typescript","text/javascript","text/css","text/html","application/json","text/yaml","text/toml","text/x-shellscript","text/plain"]),j={id:"code",canHandle:e=>e.kind==="file"&&e.previewable&&u.has(e.mediaType),render:({resource:e})=>{const a=e,r=m({id:a.realPath,title:a.title,uri:a.realPath,mediaType:a.mediaType,value:a.content,filename:a.title,kind:"code",readOnly:!0});return i.jsx(p,{document:r,mode:"read",className:"s-doc-focus-document"})}},y={id:"directory",canHandle:e=>e.kind==="directory",render:({resource:e,openFilePreview:a})=>{const r=e,l=b(r.realPath,r.rootPath);return i.jsxs("div",{className:"s-file-preview-directory",children:[i.jsx("div",{className:"s-file-preview-breadcrumb","aria-label":"Directory breadcrumb",children:l.map((t,s)=>{const n=s===l.length-1;return i.jsxs("div",{className:"s-file-preview-breadcrumb-item",children:[s>0&&i.jsx(f,{size:12,"aria-hidden":"true"}),n?i.jsx("span",{className:"s-file-preview-breadcrumb-current",children:t.label}):i.jsx("button",{type:"button",className:"s-file-preview-breadcrumb-link",onClick:()=>a(t.path),children:t.label})]},t.path)})}),i.jsxs("div",{className:"s-file-preview-directory-list",role:"list",children:[r.entries.map(t=>i.jsxs("button",{type:"button",className:"s-file-preview-entry",onClick:()=>a(t.path),children:[i.jsx("span",{className:"s-file-preview-entry-icon","aria-hidden":"true",children:t.kind==="directory"?i.jsx(v,{size:14}):i.jsx(h,{size:14})}),i.jsx("span",{className:"s-file-preview-entry-name",children:t.name}),i.jsx("span",{className:"s-file-preview-entry-kind",children:t.kind==="directory"?"dir":"file"})]},t.realPath)),r.entries.length===0&&i.jsx("div",{className:"s-file-preview-directory-empty",children:"This directory is empty."})]})]})}};function b(e,a){const r=a==="/"?"/":a.replace(/\/+$/u,""),l=e==="/"?"/":e.replace(/\/+$/u,""),t=r.split("/").filter(Boolean),s=l.split("/").filter(Boolean),n=[{label:t[t.length-1]??"/",path:r||"/"}];let d=r||"/";for(let o=t.length;o<s.length;o+=1){const c=s[o];c&&(d=d==="/"?`/${c}`:`${d}/${c}`,n.push({label:c,path:d}))}return n}const N={id:"html",canHandle:e=>e.kind==="file"&&e.previewable&&e.mediaType==="text/html",render:({resource:e})=>i.jsx("div",{className:"s-file-preview-html-wrap",children:i.jsx("iframe",{className:"s-file-preview-html-frame",src:e.kind==="file"?e.rawUrl:"",title:e.title,sandbox:"allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts",referrerPolicy:"no-referrer"})})},k={id:"image",canHandle:e=>e.kind==="file"&&e.mediaType.startsWith("image/"),render:({resource:e})=>i.jsx("div",{className:"s-file-preview-image-wrap",children:i.jsx("div",{className:"s-file-preview-image-stage",children:i.jsx("img",{className:"s-file-preview-image",src:e.kind==="file"?e.rawUrl:"",alt:e.title})})})},T={id:"markdown",canHandle:e=>e.kind==="file"&&e.previewable&&e.mediaType==="text/markdown",render:({resource:e})=>{const a=e,r=m({id:a.realPath,title:a.title,uri:a.realPath,mediaType:a.mediaType,value:a.content,filename:a.title,kind:"markdown",readOnly:!0});return i.jsx(p,{document:r,mode:"preview",className:"s-doc-focus-document"})}},g={id:"video",canHandle:e=>e.kind==="file"&&e.mediaType.startsWith("video/"),render:({resource:e})=>{const a=e;return i.jsx("div",{className:"s-file-preview-media-wrap",children:i.jsx("div",{className:"s-file-preview-media-stage",children:i.jsx("video",{className:"s-file-preview-video",src:a.rawUrl,controls:!0})})})}},z=[y,T,N,j,k,g,x,w];export{z as f};
1
+ import{j as i}from"./index-EsrkGBcv.js";import{c as m,T as p}from"./TextDocumentSurface-D52m7Vd8.js";import{C as f}from"./chevron-right-DrfqcerI.js";import{F as v}from"./folder-D5prSkzz.js";import{F as h}from"./file-text-CnISiiw6.js";const x={id:"audio",canHandle:e=>e.kind==="file"&&e.mediaType.startsWith("audio/"),render:({resource:e})=>{const a=e;return i.jsx("div",{className:"s-file-preview-media-wrap",children:i.jsx("div",{className:"s-file-preview-audio-stage",children:i.jsx("audio",{className:"s-file-preview-audio",src:a.rawUrl,controls:!0})})})}},w={id:"binary",canHandle:()=>!0,render:({resource:e})=>{const a=e;return i.jsxs("div",{className:"s-file-preview-callout",children:[i.jsxs("div",{className:"s-file-preview-callout-title",children:[a.previewReason," — open in OS"]}),i.jsxs("div",{className:"s-file-preview-callout-copy",children:["Scout can resolve this file, but it does not have an inline preview for ",a.mediaType," yet."]})]})}},u=new Set(["text/typescript","text/javascript","text/css","text/html","application/json","text/yaml","text/toml","text/x-shellscript","text/plain"]),j={id:"code",canHandle:e=>e.kind==="file"&&e.previewable&&u.has(e.mediaType),render:({resource:e})=>{const a=e,r=m({id:a.realPath,title:a.title,uri:a.realPath,mediaType:a.mediaType,value:a.content,filename:a.title,kind:"code",readOnly:!0});return i.jsx(p,{document:r,mode:"read",className:"s-doc-focus-document"})}},y={id:"directory",canHandle:e=>e.kind==="directory",render:({resource:e,openFilePreview:a})=>{const r=e,l=b(r.realPath,r.rootPath);return i.jsxs("div",{className:"s-file-preview-directory",children:[i.jsx("div",{className:"s-file-preview-breadcrumb","aria-label":"Directory breadcrumb",children:l.map((t,s)=>{const n=s===l.length-1;return i.jsxs("div",{className:"s-file-preview-breadcrumb-item",children:[s>0&&i.jsx(f,{size:12,"aria-hidden":"true"}),n?i.jsx("span",{className:"s-file-preview-breadcrumb-current",children:t.label}):i.jsx("button",{type:"button",className:"s-file-preview-breadcrumb-link",onClick:()=>a(t.path),children:t.label})]},t.path)})}),i.jsxs("div",{className:"s-file-preview-directory-list",role:"list",children:[r.entries.map(t=>i.jsxs("button",{type:"button",className:"s-file-preview-entry",onClick:()=>a(t.path),children:[i.jsx("span",{className:"s-file-preview-entry-icon","aria-hidden":"true",children:t.kind==="directory"?i.jsx(v,{size:14}):i.jsx(h,{size:14})}),i.jsx("span",{className:"s-file-preview-entry-name",children:t.name}),i.jsx("span",{className:"s-file-preview-entry-kind",children:t.kind==="directory"?"dir":"file"})]},t.realPath)),r.entries.length===0&&i.jsx("div",{className:"s-file-preview-directory-empty",children:"This directory is empty."})]})]})}};function b(e,a){const r=a==="/"?"/":a.replace(/\/+$/u,""),l=e==="/"?"/":e.replace(/\/+$/u,""),t=r.split("/").filter(Boolean),s=l.split("/").filter(Boolean),n=[{label:t[t.length-1]??"/",path:r||"/"}];let d=r||"/";for(let o=t.length;o<s.length;o+=1){const c=s[o];c&&(d=d==="/"?`/${c}`:`${d}/${c}`,n.push({label:c,path:d}))}return n}const N={id:"html",canHandle:e=>e.kind==="file"&&e.previewable&&e.mediaType==="text/html",render:({resource:e})=>i.jsx("div",{className:"s-file-preview-html-wrap",children:i.jsx("iframe",{className:"s-file-preview-html-frame",src:e.kind==="file"?e.rawUrl:"",title:e.title,sandbox:"allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts",referrerPolicy:"no-referrer"})})},k={id:"image",canHandle:e=>e.kind==="file"&&e.mediaType.startsWith("image/"),render:({resource:e})=>i.jsx("div",{className:"s-file-preview-image-wrap",children:i.jsx("div",{className:"s-file-preview-image-stage",children:i.jsx("img",{className:"s-file-preview-image",src:e.kind==="file"?e.rawUrl:"",alt:e.title})})})},T={id:"markdown",canHandle:e=>e.kind==="file"&&e.previewable&&e.mediaType==="text/markdown",render:({resource:e})=>{const a=e,r=m({id:a.realPath,title:a.title,uri:a.realPath,mediaType:a.mediaType,value:a.content,filename:a.title,kind:"markdown",readOnly:!0});return i.jsx(p,{document:r,mode:"preview",className:"s-doc-focus-document"})}},g={id:"video",canHandle:e=>e.kind==="file"&&e.mediaType.startsWith("video/"),render:({resource:e})=>{const a=e;return i.jsx("div",{className:"s-file-preview-media-wrap",children:i.jsx("div",{className:"s-file-preview-media-stage",children:i.jsx("video",{className:"s-file-preview-video",src:a.rawUrl,controls:!0})})})}},z=[y,T,N,j,k,g,x,w];export{z as f};