ryco-cli 0.1.23 → 0.1.25

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 (305) hide show
  1. package/dist/{AcpNativeLogging-COepku4a.cjs → AcpNativeLogging-CA6XYzIS.cjs} +1 -1
  2. package/dist/{AcpNativeLogging-D7e1dn7s.mjs → AcpNativeLogging-D4-VoHrq.mjs} +1 -1
  3. package/dist/{AzureDevOpsSourceControlProvider-BNGEg1R8.mjs → AzureDevOpsSourceControlProvider-B_E0XXfD.mjs} +2 -2
  4. package/dist/{AzureDevOpsSourceControlProvider-CrvgKNf2.cjs → AzureDevOpsSourceControlProvider-COmd21c-.cjs} +2 -2
  5. package/dist/{BitbucketSourceControlProvider-BzhsQwH-.cjs → BitbucketSourceControlProvider-CD8IvXQK.cjs} +2 -2
  6. package/dist/{BitbucketSourceControlProvider-Bt21jw68.mjs → BitbucketSourceControlProvider-pUKsNXcg.mjs} +2 -2
  7. package/dist/{ClaudeDriver-C4yu7Jit.mjs → ClaudeDriver-CGifBixr.mjs} +2 -2
  8. package/dist/{ClaudeDriver-B7mbf51W.cjs → ClaudeDriver-Dry5uJfX.cjs} +2 -2
  9. package/dist/{CodexDriver-CR0S17Lb.cjs → CodexDriver-BzR8gA8w.cjs} +3 -3
  10. package/dist/{CodexDriver-DnnqkGoY.mjs → CodexDriver-V4CL9APE.mjs} +3 -3
  11. package/dist/{CodexTextGeneration-tlfe1S5W.cjs → CodexTextGeneration-DTrSzY-I.cjs} +1 -1
  12. package/dist/{CodexTextGeneration-Cw-FZbSS.mjs → CodexTextGeneration-DoCidwvI.mjs} +1 -1
  13. package/dist/{CopilotDriver-GxKLX5pL.mjs → CopilotDriver-Dt13X60f.mjs} +3 -3
  14. package/dist/{CopilotDriver-IBd27Ji2.cjs → CopilotDriver-rLcA8PSN.cjs} +3 -3
  15. package/dist/{CursorDriver-C4Enoe9N.cjs → CursorDriver-C3s-8s9F.cjs} +3 -3
  16. package/dist/{CursorDriver-CNo9Uzo8.mjs → CursorDriver-HIPUs7cz.mjs} +3 -3
  17. package/dist/{ForgejoSourceControlProvider-BGXysSX6.mjs → ForgejoSourceControlProvider-CmvOAzEG.mjs} +2 -2
  18. package/dist/{ForgejoSourceControlProvider-Dh6DOoc8.cjs → ForgejoSourceControlProvider-JgiyrMqp.cjs} +2 -2
  19. package/dist/{GitHubSourceControlProvider-CPCYV8Xo.mjs → GitHubSourceControlProvider-BYuvbcBf.mjs} +2 -2
  20. package/dist/{GitHubSourceControlProvider-8hsv_kCE.cjs → GitHubSourceControlProvider-CItCpOcC.cjs} +2 -2
  21. package/dist/{GitLabSourceControlProvider-B0ZbF9Zx.cjs → GitLabSourceControlProvider-CMce22nU.cjs} +2 -2
  22. package/dist/{GitLabSourceControlProvider-Bvknpaon.mjs → GitLabSourceControlProvider-DZzEaVSi.mjs} +2 -2
  23. package/dist/{GrokDriver-DSPEmiwq.mjs → GrokDriver-CduUwiOH.mjs} +3 -3
  24. package/dist/{GrokDriver-RyyFeh_q.cjs → GrokDriver-D0jraOC_.cjs} +3 -3
  25. package/dist/{OpenCodeDriver-0q44rSQX.mjs → OpenCodeDriver-Bz_uJdMA.mjs} +2 -2
  26. package/dist/{OpenCodeDriver-CDcvPT9v.cjs → OpenCodeDriver-DxGpgtDS.cjs} +2 -2
  27. package/dist/{SourceControlProviderDiscoveryCatalog-DreaAH1H.cjs → SourceControlProviderDiscoveryCatalog-Dm_lhrhv.cjs} +1 -1
  28. package/dist/{SourceControlProviderDiscoveryCatalog-B37RHe2u.mjs → SourceControlProviderDiscoveryCatalog-ZtwPWoxE.mjs} +1 -1
  29. package/dist/bin.cjs +518 -263
  30. package/dist/bin.mjs +519 -264
  31. package/dist/client/assets/AccountSettings-Bv57-JYy.js +1 -0
  32. package/dist/client/assets/AiFocusSettings-DCPHmJpA.js +1 -0
  33. package/dist/client/assets/{AnimatedHeight-D9bpLPqe.js → AnimatedHeight-DPqb09B0.js} +1 -1
  34. package/dist/client/assets/AppearanceSettings-EmTrtb_U.js +1 -0
  35. package/dist/client/assets/BranchToolbar.logic-CHRK3hDt.js +1 -0
  36. package/dist/client/assets/BrowserPanel-2Xu08il5.js +1 -0
  37. package/dist/client/assets/ChatRightPanel-C1VD6GCV.js +194 -0
  38. package/dist/client/assets/ChatThreadRouteView-CNww3i2J.js +1 -0
  39. package/dist/client/assets/CommandPaletteDialog-B_f3fKp7.js +1 -0
  40. package/dist/client/assets/CompositeRoot-B40iitmH.js +1 -0
  41. package/dist/client/assets/ComputerUseSettings-BJs7jqR0.js +1 -0
  42. package/dist/client/assets/ConnectionsSettings-B9nfvgLG.js +7 -0
  43. package/dist/client/assets/ContextHandoffEndpointLabel-BSQOArMR.js +4 -0
  44. package/dist/client/assets/DiagnosticsSettings-BmrqOKMe.js +2 -0
  45. package/dist/client/assets/DialogHandle-pelzaaiH.js +1 -0
  46. package/dist/client/assets/DialogPopup-BLM0vN4N.js +1 -0
  47. package/dist/client/assets/DialogRoot-CY6ZzEUS.js +1 -0
  48. package/dist/client/assets/DialogTitle-BvIjMtMm.js +1 -0
  49. package/dist/client/assets/DialogTrigger-CIeVAA-a.js +1 -0
  50. package/dist/client/assets/DialogViewport-Cz0OadGI.js +1 -0
  51. package/dist/client/assets/DraftChatThreadRouteView-DMIGMESb.js +1 -0
  52. package/dist/client/assets/{ExternalIdentityWeb.logic-pjD4pCDd.js → ExternalIdentityWeb.logic-3rlDV7lT.js} +1 -1
  53. package/dist/client/assets/GlassSurface-CEVIdyfP.js +1 -0
  54. package/dist/client/assets/HostedConnectionControls-r9cyZPyF.js +1 -0
  55. package/dist/client/assets/HostedHubRoot-BkfafJ5x.js +2 -0
  56. package/dist/client/assets/HostedNativeAuthorizationRoute-CqHuW853.js +2 -0
  57. package/dist/client/assets/HostedNodeRenameDialog-C7m-nvTj.js +1 -0
  58. package/dist/client/assets/HostedRelayTrustNotice-DNZQyAX0.js +1 -0
  59. package/dist/client/assets/IntegrationsSettingsPanel-hul3ysgL.js +2 -0
  60. package/dist/client/assets/KeybindingsSettings-Cme6omBM.js +7 -0
  61. package/dist/client/assets/LazyBrowserPanel-COJFwNK7.js +2 -0
  62. package/dist/client/assets/McpServersSettings-CPeNF8_u.js +6 -0
  63. package/dist/client/assets/MobileSheet-BZo-RAfm.js +1 -0
  64. package/dist/client/assets/NodeSecuritySettings-CwT5nEW9.js +1 -0
  65. package/dist/client/assets/OpinionatedPluginsSettings-D8A1CbMG.js +1 -0
  66. package/dist/client/assets/PhoneGetAppInterstitial-BBnGXVkR.js +1 -0
  67. package/dist/client/assets/PhoneHome-BTKOPVjw.js +1 -0
  68. package/dist/client/assets/PhoneSettingsSurface-DdVCndyt.js +2 -0
  69. package/dist/client/assets/ProviderModelPicker-DoYEUZrn.js +1 -0
  70. package/dist/client/assets/ProvidersSettingsPanel-ldDCPVIY.js +1 -0
  71. package/dist/client/assets/QuitShortcutFeedback-mF7X0WMD.js +1 -0
  72. package/dist/client/assets/RedactedSensitiveText-DovqFcmM.js +1 -0
  73. package/dist/client/assets/RootAppShell-CzmEWO9w.js +7 -0
  74. package/dist/client/assets/Separator-BhAVTIOc.js +1 -0
  75. package/dist/client/assets/SettingsDialog-ByXgBN0U.js +2 -0
  76. package/dist/client/assets/SettingsPanels-Bgf4vkrJ.js +3 -0
  77. package/dist/client/assets/SettingsPanels.editor-d-rVlbeN.js +1 -0
  78. package/dist/client/assets/SourceControlSettings-dKw0FaN1.js +1 -0
  79. package/dist/client/assets/StatisticsPage-C2RuqDIK.js +1 -0
  80. package/dist/client/assets/StatisticsPanel-DqoXnrhQ.js +1 -0
  81. package/dist/client/assets/StatisticsSettingsLink-C_f31sb4.js +1 -0
  82. package/dist/client/assets/{ThreadTerminalDrawer-DcZk76Y9.js → ThreadTerminalDrawer-DaLrSTn9.js} +11 -11
  83. package/dist/client/assets/ThreadWorkspacePanel-BvRZIxZQ.js +2073 -0
  84. package/dist/client/assets/activity-bn_fBQGf.js +1 -0
  85. package/dist/client/assets/alert-BmLJh6DH.js +1 -0
  86. package/dist/client/assets/{appChrome-CiOQzE1d.js → appChrome-Dy57Ve9N.js} +1 -1
  87. package/dist/client/assets/arrow-left-pzj1cbX3.js +1 -0
  88. package/dist/client/assets/arrow-right-BW5jU-vo.js +1 -0
  89. package/dist/client/assets/arrow-up-right-AfC5AaSO.js +1 -0
  90. package/dist/client/assets/authorization-7xVVtCBu.js +1 -0
  91. package/dist/client/assets/badge-DnBuGHGL.js +1 -0
  92. package/dist/client/assets/bot-CsKkSRlb.js +1 -0
  93. package/dist/client/assets/{capabilities-BTd0MRtv.js → capabilities-DskyVNd2.js} +1 -1
  94. package/dist/client/assets/chart-column-DhvWXIiH.js +1 -0
  95. package/dist/client/assets/chevron-right-CITtTwME.js +1 -0
  96. package/dist/client/assets/clipboard-copy-fJnfdl4H.js +1 -0
  97. package/dist/client/assets/data-list-_E-Al1sf.js +1 -0
  98. package/dist/client/assets/desktopWorkspace-DycXKuMm.js +1 -0
  99. package/dist/client/assets/download-CLQzE1di.js +1 -0
  100. package/dist/client/assets/editorPreferences-Bg624RVT.js +1 -0
  101. package/dist/client/assets/empty-YXFtCUDN.js +1 -0
  102. package/dist/client/assets/group-DOCkUmuY.js +1 -0
  103. package/dist/client/assets/hostedConnectionCoordinator-JZ1dLx4v.js +1 -0
  104. package/dist/client/assets/{hostedPairing-PogXRAb7.js → hostedPairing-B_ylEEDa.js} +1 -1
  105. package/dist/client/assets/hubRoutes-C2S5of9_.js +1 -0
  106. package/dist/client/assets/{index-D5j6WG7w.js → index-CvRFRkBK.js} +2 -2
  107. package/dist/client/assets/input-C2xv8mMt.js +1 -0
  108. package/dist/client/assets/kbd-4-4mGdIa.js +1 -0
  109. package/dist/client/assets/key-round-CYcb9lAa.js +1 -0
  110. package/dist/client/assets/layers-CGlOWYxu.js +1 -0
  111. package/dist/client/assets/log-out-CZW2EpNJ.js +1 -0
  112. package/dist/client/assets/{logging-DfaR8ACp.js → logging-BpmZOfmu.js} +1 -1
  113. package/dist/client/assets/main-CC-U8LrA.css +2 -0
  114. package/dist/client/assets/main-CzDOnLFw.js +9 -0
  115. package/dist/client/assets/palette-CQOuNfSO.js +1 -0
  116. package/dist/client/assets/play-CPVy9wwV.js +1 -0
  117. package/dist/client/assets/primary-CjhRI8fe.js +2 -0
  118. package/dist/client/assets/providerDriverMeta-BVHpFupf.js +1 -0
  119. package/dist/client/assets/providerModels-BsybzP4P.js +1 -0
  120. package/dist/client/assets/{qr-code-Bun4dpvz.js → qr-code-BPqDlVMn.js} +1 -1
  121. package/dist/client/assets/qr-code-C6BVTc4V.js +1 -0
  122. package/dist/client/assets/radio-group-C8qudOQH.js +2 -0
  123. package/dist/client/assets/refresh-cw-B5Cz1z3e.js +1 -0
  124. package/dist/client/assets/runtime-Bxg7k81u.js +17 -0
  125. package/dist/client/assets/save-C7zM6ey6.js +1 -0
  126. package/dist/client/assets/scroll-area-5OU_pvTW.js +1 -0
  127. package/dist/client/assets/scrollEdges-qnEXfIOg.js +1 -0
  128. package/dist/client/assets/separator-B5HfRiaO.js +1 -0
  129. package/dist/client/assets/settingsLayout-CfKq88KD.js +1 -0
  130. package/dist/client/assets/sheet-B9gQDy_I.js +1 -0
  131. package/dist/client/assets/shield-alert-7yBlEyOs.js +1 -0
  132. package/dist/client/assets/shield-check-CnKgVJ0F.js +1 -0
  133. package/dist/client/assets/shield-rdjnBE2Q.js +1 -0
  134. package/dist/client/assets/sidebar-BdvL1Pbj.js +1 -0
  135. package/dist/client/assets/sidebarProjectFolders-BH8XBqNe.js +4 -0
  136. package/dist/client/assets/sidebarStatusText-CZKsUFBD.js +1 -0
  137. package/dist/client/assets/skeleton-CoyLqyaB.js +1 -0
  138. package/dist/client/assets/smartphone-CBgpMHXR.js +1 -0
  139. package/dist/client/assets/sparkles-w-UZXQx1.js +1 -0
  140. package/dist/client/assets/src-Bi-5Nw9C.js +14 -0
  141. package/dist/client/assets/star-BZ-RtSFD.js +1 -0
  142. package/dist/client/assets/switch-CEJEmLe7.js +48 -0
  143. package/dist/client/assets/toastHelpers-CSQRKo4F.js +1 -0
  144. package/dist/client/assets/toggle-DVGrNHjq.js +1 -0
  145. package/dist/client/assets/toggle-group-CNDOfNhH.js +1 -0
  146. package/dist/client/assets/tokenModePresentation-CQNdC9CW.js +1 -0
  147. package/dist/client/assets/tooltip-B7Z4qomY.js +1 -0
  148. package/dist/client/assets/unplug-CRUwFNFw.js +1 -0
  149. package/dist/client/assets/useAppSidebarCollapsed-wq6czkNJ.js +1 -0
  150. package/dist/client/assets/useBaseUiId-OYaGjnkh.js +1 -0
  151. package/dist/client/assets/useLabelableId-VMc-yITe.js +1 -0
  152. package/dist/client/assets/useNavigate-DVi0rBlf.js +1 -0
  153. package/dist/client/assets/usePhoneThreadActions-CwwHikjB.js +1 -0
  154. package/dist/client/assets/usePopupViewport-BcSIK_ph.js +1 -0
  155. package/dist/client/assets/useScrollLock-BQf9VYJT.js +1 -0
  156. package/dist/client/assets/{useStatistics-DfLU9_Qu.js → useStatistics-DczKdEfy.js} +15 -15
  157. package/dist/client/assets/useTriggerFocusGuards-DjP-D0_a.js +1 -0
  158. package/dist/client/assets/useValueChanged-CRwCkFdy.js +1 -0
  159. package/dist/client/assets/user-round-DStbWN3z.js +1 -0
  160. package/dist/client/assets/{vscode-icons-Dgo7Sslf.js → vscode-icons-BihBo3tb.js} +1 -1
  161. package/dist/client/assets/{workspaceMetadataProjection-UiprkDbH.js → workspaceMetadataProjection-j3BGlVOB.js} +1 -1
  162. package/dist/client/assets/wrench-BBIgGxy9.js +1 -0
  163. package/dist/client/index.html +1 -1
  164. package/dist/{collectUint8StreamText-C_VNyArd.mjs → collectUint8StreamText-CE1Re5Ij.mjs} +41 -3
  165. package/dist/{collectUint8StreamText-DStwNTTK.cjs → collectUint8StreamText-whblCEfg.cjs} +52 -2
  166. package/dist/{makeManagedServerProvider-GZcpSLrW.mjs → makeManagedServerProvider-CwYhl_P-.mjs} +1 -1
  167. package/dist/{makeManagedServerProvider-VzxWN-04.cjs → makeManagedServerProvider-Dy2Ny9tk.cjs} +1 -1
  168. package/dist/resource-monitor/ryco-resource-monitor +0 -0
  169. package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
  170. package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
  171. package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
  172. package/package.json +1 -1
  173. package/dist/client/assets/AccountSettings-DGvZzAqN.js +0 -1
  174. package/dist/client/assets/AiFocusSettings-D8wZfNES.js +0 -1
  175. package/dist/client/assets/AppearanceSettings-BFo6g6_s.js +0 -1
  176. package/dist/client/assets/BranchToolbar.logic-CmO2U1U7.js +0 -1
  177. package/dist/client/assets/BrowserPanel-r6is5C3e.js +0 -1
  178. package/dist/client/assets/ChatRightPanel-BewXBRFZ.js +0 -194
  179. package/dist/client/assets/ChatThreadRouteView-CC_6FmHd.js +0 -1
  180. package/dist/client/assets/CommandPaletteDialog-ftA_Xg2G.js +0 -1
  181. package/dist/client/assets/CompositeRoot-arlgwzfX.js +0 -1
  182. package/dist/client/assets/ComputerUseSettings-V-oMtddy.js +0 -1
  183. package/dist/client/assets/ConnectionsSettings-BrFvrRjz.js +0 -7
  184. package/dist/client/assets/ContextHandoffEndpointLabel-CPeU4K5A.js +0 -4
  185. package/dist/client/assets/DiagnosticsSettings-Dk3JaIOU.js +0 -2
  186. package/dist/client/assets/DialogHandle-00ZXxxpz.js +0 -1
  187. package/dist/client/assets/DialogPopup-mazVJKyB.js +0 -1
  188. package/dist/client/assets/DialogRoot-CWlzx19Z.js +0 -1
  189. package/dist/client/assets/DialogTitle-CKaEtTky.js +0 -1
  190. package/dist/client/assets/DialogTrigger-CiElTNmo.js +0 -1
  191. package/dist/client/assets/DialogViewport-a5beR5bY.js +0 -1
  192. package/dist/client/assets/DraftChatThreadRouteView-DMwnSfgh.js +0 -1
  193. package/dist/client/assets/FloatingPortalLite-DWdtHKob.js +0 -1
  194. package/dist/client/assets/GlassSurface-BqfxDYiR.js +0 -1
  195. package/dist/client/assets/HostedConnectionControls-BmJd89CC.js +0 -1
  196. package/dist/client/assets/HostedHubRoot-CRIiJ67A.js +0 -2
  197. package/dist/client/assets/HostedNativeAuthorizationRoute-DcksCt9n.js +0 -2
  198. package/dist/client/assets/HostedRelayTrustNotice-C9pl5h2a.js +0 -1
  199. package/dist/client/assets/IntegrationsSettingsPanel-BnfjyLrM.js +0 -2
  200. package/dist/client/assets/KeybindingsSettings-CkW7lzvz.js +0 -7
  201. package/dist/client/assets/LazyBrowserPanel-C6uMUmoV.js +0 -2
  202. package/dist/client/assets/McpServersSettings-BdXgS-Pm.js +0 -6
  203. package/dist/client/assets/MobileSheet-D19YdeQ9.js +0 -1
  204. package/dist/client/assets/NodeSecuritySettings-BfcBgtEg.js +0 -1
  205. package/dist/client/assets/OpinionatedPluginsSettings-YY54IT7P.js +0 -1
  206. package/dist/client/assets/PhoneGetAppInterstitial-9r6NwJP8.js +0 -1
  207. package/dist/client/assets/PhoneHome-DnEJp0bU.js +0 -1
  208. package/dist/client/assets/PhoneSettingsSurface-NKJrLCxU.js +0 -2
  209. package/dist/client/assets/ProviderModelPicker-CYGv-4fE.js +0 -1
  210. package/dist/client/assets/ProvidersSettingsPanel-DsXHij4h.js +0 -1
  211. package/dist/client/assets/QuitShortcutFeedback-BVyYaNtd.js +0 -1
  212. package/dist/client/assets/RedactedSensitiveText-D8j7kpow.js +0 -1
  213. package/dist/client/assets/RootAppShell-D7c8sbA0.js +0 -7
  214. package/dist/client/assets/Separator-Bn8l1oSK.js +0 -1
  215. package/dist/client/assets/SettingsDialog-BlPX1mT8.js +0 -2
  216. package/dist/client/assets/SettingsPanels-CeuvwIV_.js +0 -3
  217. package/dist/client/assets/SettingsPanels.editor-CLJJeKLI.js +0 -1
  218. package/dist/client/assets/SourceControlSettings-D-GeZ6PW.js +0 -1
  219. package/dist/client/assets/StatisticsPage-poomFDoQ.js +0 -1
  220. package/dist/client/assets/StatisticsPanel-DbGgCCpZ.js +0 -1
  221. package/dist/client/assets/StatisticsSettingsLink-Brc9--O7.js +0 -1
  222. package/dist/client/assets/ThreadWorkspacePanel-Shhau2BD.js +0 -2073
  223. package/dist/client/assets/activity-Dy-wOS-S.js +0 -1
  224. package/dist/client/assets/alert-4WZo8oMe.js +0 -1
  225. package/dist/client/assets/arrow-left-gLRAasih.js +0 -1
  226. package/dist/client/assets/arrow-right-CAK2t4QL.js +0 -1
  227. package/dist/client/assets/arrow-up-right-DP0hmMEB.js +0 -1
  228. package/dist/client/assets/authorization-K_UCP_xh.js +0 -1
  229. package/dist/client/assets/badge-CYDyJZRJ.js +0 -1
  230. package/dist/client/assets/bot-CCrx5oCt.js +0 -1
  231. package/dist/client/assets/button-QrCU0tNP.js +0 -1
  232. package/dist/client/assets/chart-column-BvK6lSzG.js +0 -1
  233. package/dist/client/assets/chevron-down-yka18-iP.js +0 -1
  234. package/dist/client/assets/chevron-right-CHyIXx5W.js +0 -1
  235. package/dist/client/assets/clamp-D0kAXd-u.js +0 -1
  236. package/dist/client/assets/clipboard-copy-DfdkWOiT.js +0 -1
  237. package/dist/client/assets/copy-riIPLkKV.js +0 -1
  238. package/dist/client/assets/data-list-CsiYTho5.js +0 -1
  239. package/dist/client/assets/download-B0lbSdq5.js +0 -1
  240. package/dist/client/assets/editorPreferences-Cf2Smgu1.js +0 -1
  241. package/dist/client/assets/empty-CHk0OiOB.js +0 -1
  242. package/dist/client/assets/group-DfFZdj79.js +0 -1
  243. package/dist/client/assets/hostedConnectionCoordinator-DZh1yVqz.js +0 -1
  244. package/dist/client/assets/input-BAC5Cd3b.js +0 -1
  245. package/dist/client/assets/kbd-CMUW8K7b.js +0 -1
  246. package/dist/client/assets/key-round-Cm6itp2V.js +0 -1
  247. package/dist/client/assets/layers-DoDpJao_.js +0 -1
  248. package/dist/client/assets/loader-circle-D0CNb5GI.js +0 -1
  249. package/dist/client/assets/log-out-BuoOiS45.js +0 -1
  250. package/dist/client/assets/main-CRk9p9SC.css +0 -2
  251. package/dist/client/assets/main-DaXSCt8g.js +0 -9
  252. package/dist/client/assets/monitor-Dyigmrl2.js +0 -1
  253. package/dist/client/assets/palette-kIM_geXk.js +0 -1
  254. package/dist/client/assets/play-Dh8XDMnw.js +0 -1
  255. package/dist/client/assets/primary-DjXNHNGV.js +0 -2
  256. package/dist/client/assets/providerDriverMeta-Cl-ADdmZ.js +0 -1
  257. package/dist/client/assets/providerModels-dpugJUmV.js +0 -1
  258. package/dist/client/assets/qr-code-CkI1p05P.js +0 -1
  259. package/dist/client/assets/radio-group-Hh0oQGyf.js +0 -2
  260. package/dist/client/assets/react-dom-x9LNwWQc.js +0 -1
  261. package/dist/client/assets/refresh-cw-MqmsC7V0.js +0 -1
  262. package/dist/client/assets/runtime-L56puJDA.js +0 -17
  263. package/dist/client/assets/save-BSB81i-r.js +0 -1
  264. package/dist/client/assets/scroll-area-DCGCzd6v.js +0 -1
  265. package/dist/client/assets/scrollEdges-DIzjkUJG.js +0 -1
  266. package/dist/client/assets/separator-YeH3P39x.js +0 -1
  267. package/dist/client/assets/settingsLayout-CmNqO2kB.js +0 -1
  268. package/dist/client/assets/settingsSections.logic-Bg960p_I.js +0 -1
  269. package/dist/client/assets/sheet-CTbjQ5Bv.js +0 -1
  270. package/dist/client/assets/shield-DlqCO-0N.js +0 -1
  271. package/dist/client/assets/shield-alert-BrZ-Rb8N.js +0 -1
  272. package/dist/client/assets/shield-check-DHxdM6te.js +0 -1
  273. package/dist/client/assets/sidebar-4cwEndEB.js +0 -1
  274. package/dist/client/assets/sidebarProjectFolders-C7WDwUYJ.js +0 -4
  275. package/dist/client/assets/sidebarStatusText-Cq_MMykN.js +0 -1
  276. package/dist/client/assets/skeleton-BlostfCS.js +0 -1
  277. package/dist/client/assets/smartphone-OaA-Xj_d.js +0 -1
  278. package/dist/client/assets/sparkles-BXwkPX2M.js +0 -1
  279. package/dist/client/assets/src-gDjuIvMO.js +0 -14
  280. package/dist/client/assets/star-BjaAYD-x.js +0 -1
  281. package/dist/client/assets/switch-COrEGDkz.js +0 -48
  282. package/dist/client/assets/toast-C_F1LeME.js +0 -1
  283. package/dist/client/assets/toggle-BPNEBXg_.js +0 -1
  284. package/dist/client/assets/toggle-group-BC1zJ9xi.js +0 -1
  285. package/dist/client/assets/tokenModePresentation-DUJ8DMTy.js +0 -1
  286. package/dist/client/assets/tooltip-iy3_osu5.js +0 -1
  287. package/dist/client/assets/triangle-alert-YXqtFxD6.js +0 -1
  288. package/dist/client/assets/unplug-e3z4rXgY.js +0 -1
  289. package/dist/client/assets/useAppSidebarCollapsed-mtvJ7qbW.js +0 -1
  290. package/dist/client/assets/useLabelableId-NJQsKdL6.js +0 -1
  291. package/dist/client/assets/useNavigate-2tVq4iZ2.js +0 -1
  292. package/dist/client/assets/usePhoneThreadActions-97AsVVIR.js +0 -1
  293. package/dist/client/assets/usePopupViewport-8OM2irPK.js +0 -1
  294. package/dist/client/assets/usePositioner-0Kb-C4al.js +0 -1
  295. package/dist/client/assets/useRenderElement-D0HVF5g_.js +0 -1
  296. package/dist/client/assets/useRouter-CcIDS3PN.js +0 -1
  297. package/dist/client/assets/useScrollLock-AUqaSAkf.js +0 -1
  298. package/dist/client/assets/useSwipeDismiss-CcW-GPO_.js +0 -1
  299. package/dist/client/assets/useTriggerFocusGuards-ChBvppef.js +0 -1
  300. package/dist/client/assets/useValueChanged-CThCTn4h.js +0 -1
  301. package/dist/client/assets/user-round-evbX_eto.js +0 -1
  302. package/dist/client/assets/utils-5-6TOrS1.js +0 -1
  303. package/dist/client/assets/visuallyHidden-BRaogTVF.js +0 -1
  304. package/dist/client/assets/wrench-mA--bcId.js +0 -1
  305. package/dist/client/assets/x-_SjFRYll.js +0 -1
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./react-SIfiwpqq.js";import{$c as n,$s as r,Aa as i,Ac as a,Bc as o,Bo as s,Br as c,Cc as l,Eo as u,Fs as d,Gc as f,Hs as p,Jo as m,Kc as h,Lo as g,Ls as _,Mc as v,Mo as y,Ms as b,Ns as x,Oc as S,Ps as C,Qc as w,Rc as T,Tc as E,Us as D,Vr as O,Vs as k,Ws as ee,Xs as A,Yo as j,Ys as te,Zc as M,_c as N,_l as P,_o as F,_s as I,as as L,bc as R,bs as z,co as B,cs as V,eo as H,fc as U,fo as W,go as G,hc as ne,hs as re,ja as K,jc as ie,js as ae,ks as oe,lc as se,lo as q,mc as ce,ms as J,nc as Y,nl as le,no as ue,pc as de,ps as fe,qo as pe,rl as me,tc as he,tl as ge,to as _e,us as ve,vc as ye,wo as X,xa as be,xo as xe,yc as Se,yo as Ce,ys as we,zo as Z,zs as Te}from"./runtime-Bxg7k81u.js";import{t as Ee}from"./compiler-runtime-qmuS0Svy.js";import{O as De,T as Oe,f as ke,r as Ae}from"./usePopupViewport-BcSIK_ph.js";import{m as je,n as Me,p as Ne,s as Pe,t as Fe}from"./useScrollLock-BQf9VYJT.js";import{t as Ie}from"./useBaseUiId-OYaGjnkh.js";import{t as Le}from"./useValueChanged-CRwCkFdy.js";import{t as Re}from"./useControlled-DQwgzrEC.js";import{i as ze,n as Be,r as Ve,s as He,t as Ue,u as We}from"./useLabelableId-VMc-yITe.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./scrollEdges-qnEXfIOg.js";var Q=e(t(),1);function Ye(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=pe}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Q.useRef(void 0),m=a(),h=S(),g=Q.useMemo(()=>{function e(e,t,n,r){let i=X(l,t,n);e&&r===`touch`&&c>0?h.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,a=u.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=Te(e.pointerType,!0)&&p(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||Te(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=Se(a);if(A(l)){e(c,a,l,i);return}let d=n.currentTarget;m.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}Te(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,i,m,h,c]);return Q.useMemo(()=>n?{reference:g}:le,[n,g])}var Xe=`Escape`;function Ze(e){return l&&e.movementX===0&&e.movementY===0}function Qe(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function $e(e,t){return Qe(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function et(e,t,n){return Qe(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function tt(e,t,n){return Qe(t,n?e===de:e===ce,e===U)}function nt(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Xe:Qe(t,n?e===ce:e===de,e===ne)}function rt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:s=!0,selectedIndex:c=null,allowEscape:l=!1,loopFocus:u=!1,nested:d=!1,rtl:f=!1,virtual:m=!1,focusItemOnOpen:g=`auto`,focusItemOnHover:_=!0,openOnArrowKeyDown:x=!0,disabledIndices:S=void 0,orientation:T=`vertical`,parentOrientation:E,id:O,resetOnPointerLeave:A=!0,externalTree:j,grid:M}=t,P=M!=null,I=`rootStore`in e?e.rootStore:e,L=I.useState(`open`),R=I.useState(`floatingElement`),z=I.useState(`domReferenceElement`),B=I.context.dataRef,V=ee(R),H=te(z),U=Ce(V),W=G(),ne=F(j),re=Q.useRef(g),K=Q.useRef(c??-1),ie=Q.useRef(null),se=Q.useRef(!0),q=h(e=>{i(K.current===-1?null:K.current,e)}),ce=Q.useRef(!!R),J=Q.useRef(L),Y=Q.useRef(!1),le=Q.useRef(!1),ue=Q.useRef(null),de=Ce(S),fe=Ce(L),pe=Ce(c),me=Ce(A),he=a(),ge=a(),_e=h(()=>{function e(e){m?ne?.events.emit(`virtualfocus`,e):ue.current=je(e,{sync:Y.current,preventScroll:!0})}let t=n.current[K.current],r=le.current;t&&e(t),(Y.current?e=>e():e=>he.request(e))(()=>{let i=n.current[K.current]||t;i&&(t||e(i),Ee&&(r||!se.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});w(()=>{B.current.orientation=T},[B,T]),w(()=>{s&&(L&&R?(K.current=c??-1,re.current&&c!=null&&(le.current=!0,q())):ce.current&&(K.current=-1,q()))},[s,L,R,c,q]),w(()=>{if(s){if(!L){Y.current=!1;return}if(R){if(r==null){if(Y.current=!1,pe.current!=null)return;if(ce.current&&(K.current=-1,_e()),(!J.current||!ce.current)&&re.current&&(ie.current!=null||re.current===!0&&ie.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ge.request(e):queueMicrotask)(t),e+=1):(K.current=ie.current==null||et(ie.current,T,f)||d?b(n):ae(n),ie.current=null,q())};t()}}else C(n.current,r)||(K.current=r,_e(),le.current=!1)}}},[s,L,R,r,pe,d,n,T,f,q,_e,ge]),w(()=>{if(!s||R||!ne||m||!ce.current)return;let e=ne.nodesRef.current,t=e.find(e=>e.id===W)?.context?.elements.floating,n=N(v(z??t??null)),r=e.some(e=>e.context&&ye(e.context.elements.floating,n));t&&!r&&se.current&&t.focus({preventScroll:!0})},[s,R,z,ne,W,m]),w(()=>{J.current=L,ce.current=!!R}),w(()=>{L||(ie.current=null,re.current=g)},[L,g]);let ve=r!=null,be=h(e=>{if(!fe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(K.current!==t||r!==t)&&(K.current=t,q(e))}),xe=h(()=>E??ne?.nodesRef.current.find(e=>e.id===W)?.context?.dataRef?.current.orientation),we=h(()=>b(n,de.current)),Te=h(e=>{if(se.current=!1,Y.current=!0,e.which===229||!fe.current&&e.currentTarget===U.current)return;if(d&&nt(e.key,T,f,P)){$e(e.key,xe())||D(e),I.setOpen(!1,X(Z,e.nativeEvent)),o(z)&&(m?ne?.events.emit(`virtualfocus`,z):z.focus());return}let t=K.current,r=b(n,S),i=ae(n,S);if(H||(e.key===`Home`&&(D(e),K.current=r,q(e)),e.key===`End`&&(D(e),K.current=i,q(e))),M!=null){let t=M(e,K.current,n,T,u,f,S,r,i);if(t!=null&&(K.current=t,q(e)),T===`both`)return}if($e(e.key,T)){if(D(e),L&&!m&&N(e.currentTarget.ownerDocument)===e.currentTarget){K.current=et(e.key,T,f)?r:i,q(e);return}et(e.key,T,f)?u?t>=i?l&&t!==n.current.length?K.current=-1:(Y.current=!1,K.current=r):K.current=oe(n.current,{startingIndex:t,disabledIndices:S}):K.current=Math.min(i,oe(n.current,{startingIndex:t,disabledIndices:S})):u?t<=r?l&&t!==-1?K.current=n.current.length:(Y.current=!1,K.current=i):K.current=oe(n.current,{startingIndex:t,decrement:!0,disabledIndices:S}):K.current=Math.max(r,oe(n.current,{startingIndex:t,decrement:!0,disabledIndices:S})),C(n.current,K.current)&&(K.current=-1),q(e)}}),Ee=Q.useMemo(()=>({onFocus(e){Y.current=!0,be(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){Ze(e)||(Y.current=!0,le.current=!1,_&&be(e))},onPointerLeave(e){if(!fe.current||!se.current||e.pointerType===`touch`)return;Y.current=!0;let t=e.relatedTarget;if(_&&!n.current.includes(t)&&me.current&&(ue.current?.(),ue.current=null,K.current=-1,q(e),!m)){let e=U.current,t=N(v(e));e&&ye(e,t)&&e.focus({preventScroll:!0})}}}),[be,fe,U,_,n,q,me,m]),De=Q.useMemo(()=>m&&L&&ve&&{"aria-activedescendant":`${O}-${r}`},[m,L,ve,O,r]),Oe=Q.useMemo(()=>({...H?{}:De,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&L&&!m){let t=Se(e.nativeEvent);if(t&&!ye(U.current,t))return;D(e),I.setOpen(!1,X(y,e.nativeEvent)),o(z)&&z.focus();return}Te(e)},onPointerMove(e){Ze(e)||(se.current=!0)}}),[De,Te,U,H,I,L,m,z]),ke=Q.useMemo(()=>{function e(e){I.setOpen(!0,X(Z,e.nativeEvent,e.currentTarget))}function t(e){g===`auto`&&k(e.nativeEvent)&&(re.current=!m)}function n(e){re.current=g,g===`auto`&&p(e.nativeEvent)&&(re.current=!0)}return{onKeyDown(t){let n=I.select(`open`);se.current=!1;let r=t.key.startsWith(`Arrow`),i=tt(t.key,xe(),f),a=$e(t.key,T),o=(d?i:a)||t.key===`Enter`||t.key.trim()===``;if(m&&n)return Te(t);if(n||x||!r){if(o){let e=$e(t.key,xe());ie.current=d&&e?null:t.key}if(d){i&&(D(t),n?(K.current=we(),q(t)):e(t));return}a&&(pe.current!=null&&(K.current=pe.current),D(t),!n&&x?e(t):Te(t),n&&q(t))}},onFocus(e){I.select(`open`)&&!m&&(K.current=-1,q(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Te,g,we,d,q,I,x,T,xe,f,pe,m]),Ae=Q.useMemo(()=>({...De,...ke}),[De,ke]);return Q.useMemo(()=>s?{reference:Ae,floating:Oe,item:Ee,trigger:ke}:{},[s,Ae,Oe,ke,Ee])}function it(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,f=`rootStore`in e?e.rootStore:e,p=f.useState(`open`),m=S(),g=Q.useRef(``),_=Q.useRef(u??i??-1),v=Q.useRef(null),y=h(e=>{function t(e){return r?.current[e]}function c(e){let n=t(e);return n&&!x(n)||n?.matches(`:disabled`)?!1:o==null||!d(ge,e,o)}function f(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&c(n))return n}return-1}let h=n.current;if(g.current.length>0&&e.key===` `&&(D(e),s?.(!0)),g.current.length>0&&g.current[0]!==` `&&f(h,g.current)===-1&&e.key!==` `&&s?.(!1),h==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;p&&e.key!==` `&&(D(e),s?.(!0));let y=g.current===``;y&&(_.current=u??i??-1),h.every((e,t)=>e&&c(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&g.current===e.key&&(g.current=``,_.current=v.current),g.current+=e.key,m.start(l,()=>{g.current=``,_.current=v.current,s?.(!1)});let b=((y?u??i??-1:_.current)??0)+1,S=f(h,g.current,b);S===-1?e.key!==` `&&(g.current=``,s?.(!1)):(a?.(S),v.current=S)}),b=h(e=>{let t=e.relatedTarget,n=f.select(`domReferenceElement`),r=f.select(`floatingElement`);ye(n,t)||ye(r,t)||(m.clear(),g.current=``,_.current=v.current,s?.(!1))});w(()=>{(p||u===null)&&(m.clear(),v.current=null,g.current!==``&&(g.current=``))},[p,u,m]);let C=Q.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return Q.useMemo(()=>c?{reference:C,floating:C}:{},[c,C])}var $=P();function at(e){let t=Q.useRef(``),n=Q.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Q.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ot(e,t){let{onClick:n,onPointerDown:r}=at(h((n,r)=>{(typeof e==`function`?e():e)||t(r||(E?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function st(e){let[t,n]=Q.useState(null),r=ot(e,n);return Le(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function ct(e){let t=Q.useRef(!0);t.current&&(t.current=!1,e())}function lt(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var ut=(e,t)=>Object.is(e,t);function dt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ft(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!lt(e,t,(e,t)=>dt(e,t,n)):e!==t}function pt(e,t,n){return e?e.some(e=>e!==void 0&&dt(t,e,n)):!1}function mt(e,t,n){return e?e.findIndex(e=>e!==void 0&&dt(e,t,n)):-1}function ht(e,t){if(t!==ut)return n=>pt(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function gt(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(ht(t,n)):mt(e,t,n);return i===-1?null:i}function _t(e,t,n,r,i,a){return pt(r,t,i)?a!=null&&e>a&&pt(r,n[a],i)?a:e:e===a?gt(n,r,i,!0):a}function vt(e,t,n){return e.filter(e=>!dt(t,e,n))}function yt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function bt(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function xt(e){return bt(e?.[0])}function St(e){return xt(e)?e.flatMap(e=>e.items):e}function Ct(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(xt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function wt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return yt(e)}function Tt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?yt(e.value):yt(e)}function Et(e,t,n){function r(){return wt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=St(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Dt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,$.jsx)(Q.Fragment,{children:Et(r,t,n)},i)),e),[])}var Ot=5;function kt(e,t){let n=At(t);return e.clientX>=n.left-Ot&&e.clientX<=n.right+Ot&&e.clientY>=n.top-Ot&&e.clientY<=n.bottom+Ot}function At(e){let t=e.getBoundingClientRect(),n=T(e);if(R)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function jt(e,t){return e??t}var Mt=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Nt(){return Q.useContext(Mt)}function Pt(e){let{children:t,elementsRef:r,labelsRef:i,onMapChange:a}=e,o=h(a),[,s]=Q.useState(!1),c=n(It).current,l=n(Ft).current,u=Q.useRef(0),d=Q.useRef(!0),f=Q.useRef(null),p=Q.useRef(null),m=h(()=>{d.current||(d.current=!0,s(e=>!e))}),g=h((e,t)=>{l.set(e,t),m()}),_=h(e=>{l.delete(e),m()}),v=h(e=>{let t=new Map;return r.current.length=0,i&&(i.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),r.current[e.index]=e.element,i&&(i.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),u.current=r.current.length,t});function y(e){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!zt(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Bt(r,n)>0){t.disconnect(),m();return}r=n}});p.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Rt(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let b=h(()=>{let[e,t]=Lt(l),n=v(e),r=f.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});y(t),f.current=e,d.current=!1,i&&(c.forEach(e=>e(n)),o(n))});w(()=>(!d.current&&f.current&&v(f.current),()=>{r.current=[],i&&(i.current=[])}),[r,i,v]),w(()=>{d.current&&b()}),w(()=>()=>{p.current?.disconnect(),d.current=!0},[]);let x=h(e=>(c.add(e),()=>{c.delete(e)})),S=Q.useMemo(()=>({register:g,unregister:_,subscribeMapChange:x,nextIndexRef:u}),[g,_,x,u]);return(0,$.jsx)(Mt.Provider,{value:S,children:t})}function Ft(){return new Map}function It(){return new Set}function Lt(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Bt(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Rt(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function zt(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Bt(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var Vt=20;function Ht(e,t,n,r){let[i,a]=Q.useState(!1);w(()=>{if(!e||!t||n==null){a(!1);return}let r=v(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Vt)},[e,t,n]),Fe(e&&(!t||i),r)}function Ut(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Nt(),u=Q.useRef(-1),[d,f]=Q.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=Q.useRef(null),h=Q.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return w(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Wt=Q.createContext(void 0);function Gt(e){let t=Q.useContext(Wt);if(t===void 0&&!e)throw Error(M(69));return t}function Kt(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var qt=Q.createContext(void 0),Jt=Q.createContext(void 0),Yt=Q.createContext(void 0);function Xt(){let e=Q.useContext(qt);if(e===void 0)throw Error(M(60));return e}function Zt(){let e=Q.useContext(Jt);if(e===void 0)throw Error(M(101));return e}function Qt(){let e=Q.useContext(Yt);if(e===void 0)throw Error(M(61));return e}var $t={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Tt(t,r)!==``},hasNullItemLabel:(e,t)=>t?Ct(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>dt(t,e,n)):dt(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function en(e){let{id:t,value:r,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:c=!1,onOpenChange:l,name:u,form:d,autoComplete:p,disabled:m=!1,readOnly:g=!1,required:_=!1,modal:v=!0,actionsRef:y,inputRef:b,onOpenChangeComplete:x,items:S,multiple:C=!1,itemToStringLabel:T,itemToStringValue:E,isItemEqualToValue:D=ut,highlightItemOnHover:O=!0,children:k}=e,{clearErrors:ee}=Ve(),{setDirty:A,setTouched:j,setFocused:te,validityData:M,setFilled:N,name:P,disabled:F,validation:L,validationMode:R}=He(),B=Ue({id:t}),V=F||m,H=P??u,[U,W]=Re({controlled:r,default:C?i??ge:i,name:`Select`,state:`value`}),[G,ne]=Re({controlled:o,default:c,name:`Select`,state:`open`}),K=Q.useRef([]),ie=Q.useRef([]),ae=Q.useRef(null),oe=Q.useRef(null),se=Q.useRef(0),ce=Q.useRef(null),J=Q.useRef([]),Y=Q.useRef(!1),ue=Q.useRef(null),de=Q.useRef(null),fe=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=Q.useRef(!1),he=Q.useRef(U),{mounted:_e,setMounted:ye,transitionStatus:be}=Oe(G),{openMethod:xe,triggerProps:Se}=st(G),Z=n(()=>new f({id:B,labelId:void 0,modal:v,multiple:C,itemToStringLabel:T,itemToStringValue:E,isItemEqualToValue:D,value:U,open:G,mounted:_e,transitionStatus:be,items:S,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:le,triggerProps:le,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:me,setOpen:me,handleScrollArrowVisibility:me,onOpenChangeComplete:me,listRef:K,popupRef:ae,scrollHandlerRef:oe,scrollArrowsMountedCountRef:se,valueRef:ce,valuesRef:J,labelsRef:ie,typingRef:Y,selectionRef:fe,firstItemTextRef:ue,selectedItemTextRef:de,alignItemWithTriggerActiveRef:pe,initialValueRef:he},$t)).current,Te=Z.useState(`activeIndex`),Ee=Z.useState(`selectedIndex`),je=Z.useState(`triggerElement`),Me=Z.useState(`positionerElement`),Ne=Ae(xe),Pe=xe??Ne,Fe=Q.useMemo(()=>C?``:Tt(U,E),[C,U,E]),Ie=Q.useMemo(()=>C&&Array.isArray(U)?U.map(e=>Tt(e,E)):Tt(U,E),[C,U,E]),Be=Ce(je),We=h(()=>Ie);ze(Be,B,U,We,!V,u);let Ge=C?Array.isArray(U)&&U.length>0:U!=null&&Fe!==``;w(()=>{N(Ge)},[Ge,N]),w(function(){let e=gt(J.current,U,D,C);e===null&&(de.current=null),!G&&Z.set(`selectedIndex`,e)},[C,G,U,D,Z]),Le(U,()=>{ee(H),A(ft(U,M.initialValue,D)),L.change(U)});let qe=h((e,t)=>{l?.(e,t),!t.isCanceled&&(ne(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(j(!0),te(!1),R===`onBlur`&&L.commit(U)))}),Xe=h(()=>{ye(!1),Z.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),x?.(!1)});ve({enabled:!y,open:G,ref:ae,onComplete(){G||Xe()}}),Q.useImperativeHandle(y,()=>({unmount:Xe}),[Xe]);let Ze=h((e,t)=>{a?.(e,t),!t.isCanceled&&W(e)}),Qe=h(e=>{let t=Je(e.scrollHeight,e.clientHeight),n=Ke(e.scrollTop,t),r=n>0,i=n<t;Z.set(`scrollUpArrowVisible`,r),Z.set(`scrollDownArrowVisible`,i)}),$e=q({open:G,onOpenChange:qe,elements:{reference:je,floating:Me}}),et=Ye($e,{enabled:!V,event:`mousedown`}),tt=De($e),nt=rt($e,{enabled:!V,listRef:K,activeIndex:Te,selectedIndex:Ee,disabledIndices:ge,onNavigate(e){(e!==null||G)&&Z.set(`activeIndex`,e)},focusItemOnHover:O}),at=it($e,{enabled:!V&&(G||!g&&!C),listRef:ie,activeIndex:Te,selectedIndex:Ee,disabledIndices:e=>Kt(K.current[e]),onMatch(e){G?Z.set(`activeIndex`,e):Ze(J.current[e],X(s))},onTyping(e){Y.current=e}}),ot=Q.useMemo(()=>re(at.reference,nt.reference,tt.reference,et.reference,Se),[et.reference,at.reference,nt.reference,tt.reference,Se]),lt=Q.useMemo(()=>re(ke,at.floating,nt.floating,tt.floating),[at.floating,nt.floating,tt.floating]),dt=nt.item??le;Z.useContextCallback(`setValue`,Ze),Z.useContextCallback(`setOpen`,qe),Z.useContextCallback(`handleScrollArrowVisibility`,Qe),Z.useContextCallback(`onOpenChangeComplete`,x),ct(()=>{Z.update({popupProps:lt,triggerProps:ot})}),Z.useSyncedValues({id:B,modal:v,multiple:C,value:U,open:G,mounted:_e,transitionStatus:be,popupProps:lt,triggerProps:ot,items:S,itemToStringLabel:T,itemToStringValue:E,isItemEqualToValue:D,openMethod:Pe});let pt=Q.useMemo(()=>({disabled:V,readOnly:g,required:_,multiple:C,highlightItemOnHover:O,itemProps:dt}),[V,g,_,C,O,dt]),mt=I(b,L.inputRef),ht=C?void 0:H,_t=Q.useMemo(()=>!C||!Array.isArray(U)||!H?null:U.map(e=>{let t=Tt(e,E);return(0,$.jsx)(`input`,{type:`hidden`,form:d,name:H,value:t,disabled:V},t)}),[C,U,d,H,E,V]);return(0,$.jsxs)(qt.Provider,{value:Z,children:[(0,$.jsx)(Jt.Provider,{value:pt,children:(0,$.jsx)(Yt.Provider,{value:$e,children:k})}),(0,$.jsx)(`input`,{...L.getValidationProps(V,{onFocus(){Z.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||V||g)return;let t=e.currentTarget.value,n=X(s,e.nativeEvent);function r(){if(C)return;let e=t.toLowerCase(),r=J.current.findIndex(t=>Tt(t,E).toLowerCase()===e||wt(t,T).toLowerCase()===e);r===-1&&(r=J.current.findIndex((t,n)=>{let r=ie.current[n];return r!=null&&r.toLowerCase()===e}));let i=J.current[r];i!=null&&Ze(i,n)}Z.set(`forceMount`,!0),queueMicrotask(r)}}),id:B&&ht==null?`${B}-hidden-input`:void 0,form:d,name:ht,autoComplete:p,value:Fe,disabled:V,required:_&&!(C&&Ge),readOnly:g,ref:mt,style:H?z:we,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),_t]})}var tn=`data-popup-side`,nn=400,rn={...he,...We,popupSide:e=>e?{[tn]:e}:null,value:()=>null},an=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:c,...l}=e,{setTouched:d,setFocused:f,validationMode:p,validation:m,state:h,disabled:g}=He(),{labelId:_}=Be(),y=Xt(),{readOnly:b,required:x,disabled:C}=Zt(),w=g||C||a,T=y.useState(`open`),E=y.useState(`mounted`),D=y.useState(`value`),O=y.useState(`triggerProps`),k=y.useState(`positionerElement`),A=y.useState(`listElement`),te=y.useState(`popupSide`),M=y.useState(`id`),N=y.useState(`labelId`),P=y.useState(`hasSelectedValue`),F=E&&k?te:null,I=i??M,L=jt(_,N);Ue({id:i});let R=Ce(k),z=Q.useRef(null),{getButtonProps:B,buttonRef:V}=j({disabled:w,native:o}),H=y.useStateSetter(`triggerElement`),U=S(),W=S(),G=S();Q.useEffect(()=>{if(T)return G.start(nn,()=>{y.context.selectionRef.current.allowUnselectedMouseUp=!0,y.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{G.clear()};y.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},W.clear()},[T,y,W,G]);let ne=re(O,{id:I,role:`combobox`,"aria-expanded":T,"aria-haspopup":`listbox`,"aria-controls":T?A?.id??ee(k)?.id:void 0,"aria-labelledby":L,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:w?-1:0,onFocus(e){f(!0),T&&y.context.alignItemWithTriggerActiveRef.current&&y.context.setOpen(!1,X(s,e.nativeEvent)),U.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){ye(k,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&m.commit(D))},onMouseDown(e){if(T)return;let t=v(e.currentTarget);function n(e){if(!z.current)return;let t=e.target;ye(z.current,t)||ye(R.current,t)||kt(e,z.current)||y.context.setOpen(!1,X(u,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},l,B),K=m.getValidationProps(w,ne);K.role=`combobox`;let ie={...h,open:T,disabled:w,value:D,readOnly:b,popupSide:F,placeholder:!P};return J(`button`,e,{ref:[t,z,V,H],state:ie,stateAttributesMapping:rn,props:K})}),on={value:()=>null},sn=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=Xt(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?Dt(l,u,d):Et(l,u,d)),J(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:on})}),cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o={open:Xt().useState(`open`)};return J(`span`,e,{state:o,ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Y})}),ln=Q.forwardRef(function(e,t){let n=Xt(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,$.jsx)(xe,{ref:t,...e}):null}),un=Q.createContext(void 0);function dn(){let e=Q.useContext(un);if(!e)throw Error(M(59));return e}function fn(e,t){e&&Object.assign(e.style,t)}var pn={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},mn={position:`fixed`},hn=Q.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:g,alignItemWithTrigger:_=!0,collisionAvoidance:v=V,style:y,...b}=e,x=Xt(),S=Qt(),C=x.useState(`open`),T=x.useState(`mounted`),E=x.useState(`modal`),D=x.useState(`value`),O=x.useState(`openMethod`),k=x.useState(`positionerElement`),ee=x.useState(`triggerElement`),A=x.useState(`isItemEqualToValue`),j=x.useState(`transitionStatus`),te=Q.useRef(null),M=Q.useRef(null),[N,P]=Q.useState(_),F=T&&N&&O!==`touch`;!T&&N!==_&&P(_),Q.useImperativeHandle(x.context.alignItemWithTriggerActiveRef,()=>F),Ht((F||E)&&C,O===`touch`,k,ee);let I=ue({anchor:n,floatingRootContext:S,positionMethod:a,mounted:T,side:o,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:g??F,collisionAvoidance:v,keepMounted:!0}),L=F?`none`:I.side,R=F?mn:I.positionerStyles,z={open:C,side:L,align:I.align,anchorHidden:I.anchorHidden};w(()=>{x.set(`popupSide`,I.side)},[x,I.side]);let B=x.useStateSetter(`positionerElement`),U=H(e,z,{styles:R,transitionStatus:j,props:b,refs:[t,B],hidden:!T,inert:!C}),W=Q.useRef(0),G=h(e=>{if(x.context.valuesRef.current.length===0)return;let t=W.current;W.current=e.size;let n=X(s);if(t!==0&&!x.state.multiple&&D!==null&&mt(x.context.valuesRef.current,D,A)===-1){let e=x.context.initialValueRef.current,t=e!=null&&mt(x.context.valuesRef.current,e,A)!==-1?e:null;x.context.setValue(t,n),t===null&&(x.set(`selectedIndex`,null),x.context.selectedItemTextRef.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(D)){let e=D.filter(e=>mt(x.context.valuesRef.current,e,A)!==-1);e.length!==D.length&&(x.context.setValue(e,n),e.length===0&&(x.set(`selectedIndex`,null),x.context.selectedItemTextRef.current=null))}if(C&&F){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};fn(k,e),fn(x.context.popupRef.current,e)}}),ne=Q.useMemo(()=>({...I,side:L,alignItemWithTriggerActive:F,setControlledAlignItemWithTrigger:P,scrollUpArrowRef:te,scrollDownArrowRef:M}),[I,L,F,P]);return(0,$.jsx)(Pt,{elementsRef:x.context.listRef,labelsRef:x.context.labelsRef,onMapChange:G,children:(0,$.jsxs)(un.Provider,{value:ne,children:[T&&E&&(0,$.jsx)(Me,{inert:fe(!C),cutout:ee}),U]})})}),gn=`--transform-origin`,_n={...r,...se},vn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:o,...s}=e,c=Xt(),{multiple:u,readOnly:d,highlightItemOnHover:f}=Zt(),p=Qt(),{side:g,align:_,alignItemWithTriggerActive:y,isPositioned:b,setControlledAlignItemWithTrigger:x}=dn(),S=Gt(!0)!=null,C=B(),{nonce:E,disableStyleElements:D}=qe(),O=c.useState(`id`),k=c.useState(`open`),ee=c.useState(`openMethod`),A=c.useState(`mounted`),j=c.useState(`popupProps`),te=c.useState(`transitionStatus`),M=c.useState(`triggerElement`),N=c.useState(`positionerElement`),P=c.useState(`listElement`),F=Q.useRef(!1),I=Q.useRef(!1),R=Q.useRef({}),z=a(),V=h(e=>{if(!N||!c.context.popupRef.current||!I.current)return;let t=N.style.top===`0px`,n=N.style.bottom===`0px`;if(F.current||!y||!t&&!n){c.context.handleScrollArrowVisibility(e);return}let r=xn(N),i=Sn(N.getBoundingClientRect().height,`y`,r),a=v(N),o=T(N),s=o.getComputedStyle(N),l=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=yn(o.getComputedStyle(c.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,m=bn(e),h=null,g=e=>{N.style.height=`${e}px`},_=t?m-p:p,b=Math.min(i+_,f);if(_<=1){let n=L(_,0,f-i);n>0&&g(i+n),e.scrollTop=t?m:0,f-(i+n)<=1&&(F.current=!0),c.context.handleScrollArrowVisibility(e);return}f-b>1?h=t?1/0:0:n&&p<m&&(h=p-(_-(i+_-f)));let x=Math.ceil(b);if(x!==0&&g(x),h!=null){let t=L(h,0,bn(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}x>=f-1&&(F.current=!0),c.context.handleScrollArrowVisibility(e)});Q.useImperativeHandle(c.context.scrollHandlerRef,()=>V,[V]),ve({open:k,ref:c.context.popupRef,onComplete(){k&&c.context.onOpenChangeComplete(!0)}});let H={open:k,transitionStatus:te,side:g,align:_};w(()=>{N&&c.context.popupRef.current&&!Object.keys(R.current).length&&(R.current={top:N.style.top||`0`,left:N.style.left||`0`,right:N.style.right,height:N.style.height,bottom:N.style.bottom,minHeight:N.style.minHeight,maxHeight:N.style.maxHeight,marginTop:N.style.marginTop,marginBottom:N.style.marginBottom})},[c,N]),w(()=>{k||y||(I.current=!1,F.current=!1,fn(N,R.current))},[k,y,N]),w(()=>{let e=c.context.popupRef.current;if(!k||!M||!N||!e||y&&!b||c.state.transitionStatus===`ending`)return;if(I.current=!0,e.style.removeProperty(gn),!y){z.request(()=>c.context.handleScrollArrowVisibility(P||e));return}let t=Tn(e);try{let t=c.context.selectedItemTextRef.current;t?.isConnected||(t=!c.select(`hasSelectedValue`)&&c.context.firstItemTextRef.current?.isConnected?c.context.firstItemTextRef.current:null);let n=c.context.valueRef.current,r=T(N),i=r.getComputedStyle(N),a=r.getComputedStyle(e),o=v(M),s=xn(M),u=Cn(M.getBoundingClientRect(),s),d=Cn(N.getBoundingClientRect(),s),p=u.height,m=P||e,h=m.scrollHeight,g=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,y=parseFloat(i.marginBottom)||10,b=parseFloat(i.minHeight)||100,S=yn(a),w=o.documentElement.clientHeight-_-y,E=o.documentElement.clientWidth,D=w-u.bottom+p,O,k=C===`rtl`?u.right-d.width:u.left,ee=0;if(t&&n){let e=Cn(n.getBoundingClientRect(),s);O=Cn(t.getBoundingClientRect(),s),k=d.left+(C===`rtl`?e.right-O.right:e.left-O.left);let r=e.top-u.top+e.height/2;ee=O.top-d.top+O.height/2-r}let A=D+ee+y+g,j=Math.min(w,A),te=w-_-y,I=A-j,z=E-5;N.style.left=`${L(k,5,z-d.width)}px`,N.style.height=`${j}px`,N.style.maxHeight=`none`,N.style.marginTop=`${_}px`,N.style.marginBottom=`${y}px`,e.style.height=`100%`;let B=bn(m),V=I>=B-1;V&&(j=Math.min(w,d.height)-(I-B));let H=u.top<20||u.bottom>w-20||Math.ceil(j)+1<Math.min(h,b),U=(r.visualViewport?.scale??1)!==1&&l;if(H||U){fn(N,R.current),x(!1);return}let W=Math.max(b,j);if(V){let e=Math.max(0,w-A);N.style.top=d.height>=te?`0`:`${e}px`,N.style.height=`${j}px`,m.scrollTop=bn(m)}else N.style.bottom=`0`,m.scrollTop=I;if(O){let t=d.top,n=d.height,r=O.top+O.height/2,i=L(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(gn,`50% ${i}%`)}(W===w||j>=S)&&(F.current=!0),c.context.handleScrollArrowVisibility(m),f&&c.state.selectedIndex===null&&c.state.activeIndex===null&&c.context.listRef.current[0]!=null&&c.set(`activeIndex`,0)}finally{t()}},[c,k,N,M,y,x,z,P,f,C,b]),Q.useEffect(()=>{if(!y||!N||!k)return;let e=T(N);function t(e){c.context.setOpen(!1,X(m,e))}return ie(e,`resize`,t)},[c,y,N,k]);let U={...P?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":u||void 0,"aria-readonly":d||void 0,id:`${O}-list`},onKeyDown(e){S&&Pe.has(e.key)&&e.stopPropagation()},onScroll(e){P||V(e.currentTarget)},...y&&{style:P?{height:`100%`}:pn},className:!P&&y?Ge.className:void 0},W=J(`div`,e,{ref:[t,c.context.popupRef],state:H,stateAttributesMapping:_n,props:[j,U,_e(te),s]});return(0,$.jsxs)(Q.Fragment,{children:[!D&&Ge.getElement(E),(0,$.jsx)(Ne,{context:p,modal:!1,disabled:!A,openInteractionType:ee,returnFocus:o,restoreFocus:!0,children:W})]})});function yn(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function bn(e){return Je(e.scrollHeight,e.clientHeight)}function xn(e){return W.getScale(e)}function Sn(e,t,n){return e/n[t]}function Cn(e,t){return _({x:Sn(e.x,`x`,t),y:Sn(e.y,`y`,t),width:Sn(e.width,`x`,t),height:Sn(e.height,`y`,t)})}var wn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Tn(e){let{style:t}=e,n={};for(let[e,r]of wn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of wn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var En=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Xt(),{multiple:s,readOnly:c}=Zt(),{alignItemWithTriggerActive:l}=dn(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:pn},className:u&&d!==`touch`?Ge.className:void 0},p=o.useStateSetter(`listElement`);return J(`div`,e,{ref:[t,p],props:[f,a]})}),Dn=Q.createContext(void 0);function On(){let e=Q.useContext(Dn);if(!e)throw Error(M(57));return e}var kn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=Q.useRef(null),d=Ut({guess:!0,label:o,textRef:u}),f=Xt(),{itemProps:p,multiple:m,disabled:h,readOnly:_}=Zt(),v=h||s,y=f.useState(`isActive`,d.index),b=f.useState(`open`),x=f.useState(`isSelected`,a),S=f.useState(`isSelectedByFocus`,d.index),C=f.useState(`isItemEqualToValue`),T=d.index,E=Q.useRef(null);w(()=>{let e=f.context.valuesRef.current;return e[T]=a,()=>{delete e[T]}},[T,a,f]),w(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=_t(T,a,f.context.valuesRef.current,e,C,t),r=n===T,T===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&dt(a,e,C),r&&(n=T)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[T,m,C,f,a]);let D=Q.useRef(`mouse`),O=Q.useRef(!1),{getButtonProps:ee,buttonRef:A}=j({disabled:v,focusableWhenDisabled:!0,native:c,composite:!0}),te={disabled:v,selected:x,highlighted:y};function M(e){if(h||_)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=x?vt(n,a,C):[...n,a];f.context.setValue(r,X(g,e))}else f.context.setValue(a,X(g,e)),f.context.setOpen(!1,X(g,e))}function N(){f.context.selectionRef.current.dragY=0}let P={role:`option`,"aria-selected":x,tabIndex:b&&y?0:-1,onKeyDown(e){f.set(`activeIndex`,T),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=D.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&k(e.nativeEvent)&&(n!==void 0||y),i=t&&!r&&!O.current;O.current=!1,!(v||i)&&M(e.nativeEvent)},onPointerEnter(e){D.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){D.current=e.pointerType,O.current=!0,N()},onMouseUp(){if(N(),v||D.current===`touch`||O.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&x,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!x;e||t||(O.current=!0,E.current?.click(),O.current=!1)}},F=J(`div`,e,{ref:[A,t,d.ref,E],state:te,props:[p,P,l,ee]}),I=Q.useMemo(()=>({selected:x,index:T,textRef:u,selectedByFocus:S}),[x,T,u,S]);return(0,$.jsx)(Dn.Provider,{value:I,children:F})})),An=Q.forwardRef(function(e,t){let{selected:n}=On();return e.keepMounted||n?(0,$.jsx)(jn,{...e,ref:t}):null}),jn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=On(),c=Q.useRef(null),{transitionStatus:l,setMounted:u}=Oe(s),d=J(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:se});return ve({batch:!0,enabled:!s,open:s,ref:c,onComplete(){s||u(!1)}}),d})),Mn=Q.memo(Q.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=On(),a=Xt(),{render:o,className:s,style:c,...l}=e,u=Q.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]);return J(`div`,e,{ref:[u,t,r],props:l})})),Nn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o,...s}=e,c=a===`up`,l=Xt(),{side:u,scrollDownArrowRef:d,scrollUpArrowRef:f}=dn(),p=c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,m=l.useState(p),h=l.useState(`openMethod`),g=m&&h!==`touch`,_=S(),v=c?f:d,{mounted:y,transitionStatus:b,setMounted:x}=Oe(g);w(()=>(l.context.scrollArrowsMountedCountRef.current+=1,l.set(`hasScrollArrows`,!0),()=>{l.context.scrollArrowsMountedCountRef.current=Math.max(0,l.context.scrollArrowsMountedCountRef.current-1),l.context.scrollArrowsMountedCountRef.current===0&&l.set(`hasScrollArrows`,!1)}),[l]),ve({open:g,ref:v,onComplete(){g||x(!1)}});let C=J(`div`,e,{ref:[t,v],state:{direction:a,visible:g,side:u,transitionStatus:b},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||_.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??l.context.popupRef.current;if(!e)return;l.set(`activeIndex`,null),l.context.handleScrollArrowVisibility(e);let n=Je(e.scrollHeight,e.clientHeight),r=Ke(e.scrollTop,n),i=r===(c?0:n),a=l.context.listRef.current;if(r!==e.scrollTop&&(e.scrollTop=r),i){_.clear();return}if(a.length>0){let t=v.current?.offsetHeight||0;e.scrollTop=Pn(a,c,r,e.clientHeight,t,n)}_.start(40,t)}_.start(40,t)},onMouseLeave(){_.clear()}},s],stateAttributesMapping:se});return y||o?C:null});function Pn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?Ke(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Ke(l.offsetTop+l.offsetHeight-r+i,a):a}var Fn=Q.forwardRef(function(e,t){return(0,$.jsx)(Nn,{...e,ref:t,direction:`down`})}),In=Q.forwardRef(function(e,t){return(0,$.jsx)(Nn,{...e,ref:t,direction:`up`})}),Ln=Q.createContext(void 0);function Rn(){let e=Q.useContext(Ln);if(e===void 0)throw Error(M(56));return e}var zn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Q.useState(),c=Q.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=J(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,$.jsx)(Ln.Provider,{value:c,children:l})}),Bn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Rn(),c=Ie(a);return w(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),J(`div`,e,{ref:t,props:[{id:c,"aria-hidden":!0},o]})}),Vn=Ee(),Hn=en,Un=be(`relative inline-flex cursor-pointer select-none items-center justify-between gap-2 border rounded-lg text-left text-base outline-none transition-[color,box-shadow,background-color] data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,{defaultVariants:{size:`default`,variant:`default`},variants:{variant:{default:`w-full min-w-36 border-input bg-background not-dark:bg-clip-padding text-foreground shadow-xs/5 ring-ring/24 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-data-disabled:not-focus-visible:not-aria-invalid:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 focus-visible:border-ring focus-visible:ring-[3px] aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/16 dark:bg-input/32 dark:aria-invalid:ring-destructive/24 dark:not-data-disabled:not-focus-visible:not-aria-invalid:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='opacity-'])]:opacity-80 [[data-disabled],:focus-visible,[aria-invalid],[data-pressed]]:shadow-none`,ghost:`border-transparent text-muted-foreground/70 focus-visible:ring-2 focus-visible:ring-ring data-pressed:bg-accent [:hover,[data-pressed]]:bg-accent [:hover,[data-pressed]]:text-foreground/80`},size:{default:`min-h-9 px-[calc(--spacing(3)-1px)] sm:min-h-8`,lg:`min-h-10 px-[calc(--spacing(3)-1px)] sm:min-h-9`,sm:`min-h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:min-h-7`,xs:`h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5`}}});function Wn(e){let t=(0,Vn.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:a,variant:o,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`default`:a,c=o===void 0?`default`:o,l;t[6]!==r||t[7]!==s||t[8]!==c?(l=O(Un({size:s,variant:c}),r),t[6]=r,t[7]=s,t[8]=c,t[9]=l):l=t[9];let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(cn,{"data-slot":`select-icon`,children:(0,$.jsx)(K,{className:`size-3 opacity-50`})}),t[10]=u):u=t[10];let d;return t[11]!==n||t[12]!==i||t[13]!==l?(d=(0,$.jsxs)(an,{className:l,"data-slot":`select-trigger`,...i,children:[n,u]}),t[11]=n,t[12]=i,t[13]=l,t[14]=d):d=t[14],d}function Gn(e){let t=(0,Vn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=O(`flex-1 truncate data-placeholder:text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(sn,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Kn(e){let t=(0,Vn.c)(28),n,r,a,o,s,c,l,u,d;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9]):({className:a,children:r,side:s,sideOffset:c,align:l,alignOffset:u,alignItemWithTrigger:d,anchor:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d);let f=s===void 0?`bottom`:s,p=c===void 0?4:c,m=l===void 0?`start`:l,h=u===void 0?0:u,g=d===void 0||d,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(In,{className:`top-0 z-50 flex h-6 w-full cursor-default items-center justify-center before:pointer-events-none before:absolute before:inset-x-px before:top-px before:h-[200%] before:rounded-t-[calc(var(--radius-lg)-1px)] before:bg-linear-to-b before:from-50% before:from-popover/85`,"data-slot":`select-scroll-up-arrow`,children:(0,$.jsx)(i,{className:`relative size-4.5 sm:size-4`})}),t[10]=_):_=t[10];let v;t[11]===a?v=t[12]:(v=O(`max-h-(--available-height) overflow-y-auto p-1`,a),t[11]=a,t[12]=v);let y;t[13]!==r||t[14]!==v?(y=(0,$.jsx)(`div`,{className:`selection-glass-surface relative h-full min-w-(--anchor-width) origin-(--transform-origin) rounded-lg border text-popover-foreground transition-[scale,opacity] duration-(--app-motion-duration-pop) ease-(--app-motion-spring-gentle) in-data-starting-style:scale-98 in-data-starting-style:opacity-0 in-data-ending-style:scale-98 in-data-ending-style:opacity-0`,children:(0,$.jsx)(En,{className:v,"data-slot":`select-list`,children:r})}),t[13]=r,t[14]=v,t[15]=y):y=t[15];let b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Fn,{className:`bottom-0 z-50 flex h-6 w-full cursor-default items-center justify-center before:pointer-events-none before:absolute before:inset-x-px before:bottom-px before:h-[200%] before:rounded-b-[calc(var(--radius-lg)-1px)] before:bg-linear-to-t before:from-50% before:from-popover/85`,"data-slot":`select-scroll-down-arrow`,children:(0,$.jsx)(K,{className:`relative size-4.5 sm:size-4`})}),t[16]=b):b=t[16];let x;t[17]!==o||t[18]!==y?(x=(0,$.jsxs)(vn,{className:`text-foreground transition-opacity duration-(--app-motion-duration-pop) ease-(--app-motion-spring-gentle) data-ending-style:opacity-0`,"data-slot":`select-popup`,...o,children:[_,y,b]}),t[17]=o,t[18]=y,t[19]=x):x=t[19];let S;return t[20]!==m||t[21]!==g||t[22]!==h||t[23]!==n||t[24]!==f||t[25]!==p||t[26]!==x?(S=(0,$.jsx)(ln,{children:(0,$.jsx)(hn,{align:m,alignItemWithTrigger:g,alignOffset:h,anchor:n,className:`z-50 select-none`,"data-slot":`select-positioner`,side:f,sideOffset:p,children:x})}),t[20]=m,t[21]=g,t[22]=h,t[23]=n,t[24]=f,t[25]=p,t[26]=x,t[27]=S):S=t[27],S}function qn(e){let t=(0,Vn.c)(20),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,hideIndicator:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a!==void 0&&a,s=o?`grid-cols-[1fr] ps-3 pe-3`:`grid-cols-[1rem_1fr] ps-2 pe-4`,c;t[5]!==r||t[6]!==s?(c=O(`grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center gap-2 rounded-sm py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent/80 data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,s,r),t[5]=r,t[6]=s,t[7]=c):c=t[7];let l;t[8]===o?l=t[9]:(l=o?null:(0,$.jsx)(An,{className:`col-start-1`,"data-slot":`select-item-indicator`,children:(0,$.jsx)(`svg`,{fill:`none`,height:`24`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/1500/svg`,children:(0,$.jsx)(`path`,{d:`M5.252 12.7 10.2 18.63 18.748 5.37`})})}),t[8]=o,t[9]=l);let u=o?`col-start-1`:`col-start-2`,d;t[10]===u?d=t[11]:(d=O(`min-w-0`,u),t[10]=u,t[11]=d);let f;t[12]!==n||t[13]!==d?(f=(0,$.jsx)(Mn,{className:d,"data-slot":`select-item-text`,children:n}),t[12]=n,t[13]=d,t[14]=f):f=t[14];let p;return t[15]!==i||t[16]!==c||t[17]!==l||t[18]!==f?(p=(0,$.jsxs)(kn,{className:c,"data-slot":`select-item`,...i,children:[l,f]}),t[15]=i,t[16]=c,t[17]=l,t[18]=f,t[19]=p):p=t[19],p}function Jn(e){let t=(0,Vn.c)(2),n;return t[0]===e?n=t[1]:(n=(0,$.jsx)(zn,{"data-slot":`select-group`,...e}),t[0]=e,t[1]=n),n}function Yn(e){let t=(0,Vn.c)(2),n;return t[0]===e?n=t[1]:(n=(0,$.jsx)(Bn,{className:`px-2 py-1.5 font-medium text-muted-foreground text-xs`,"data-slot":`select-group-label`,...e}),t[0]=e,t[1]=n),n}var Xn=be(`relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button&,a&]:cursor-pointer [button&,a&]:pointer-coarse:after:absolute [button&,a&]:pointer-coarse:after:size-full [button&,a&]:pointer-coarse:after:min-h-11 [button&,a&]:pointer-coarse:after:min-w-11`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{default:`h-5.5 min-w-5.5 px-[calc(--spacing(1)-1px)] text-sm sm:h-4.5 sm:min-w-4.5 sm:text-xs`,lg:`h-6.5 min-w-6.5 px-[calc(--spacing(1.5)-1px)] text-base sm:h-5.5 sm:min-w-5.5 sm:text-sm`,sm:`h-5 min-w-5 rounded-sm px-[calc(--spacing(1)-1px)] text-xs sm:h-4 sm:min-w-4 sm:text-[.625rem]`},variant:{default:`bg-primary text-primary-foreground [button&,a&]:hover:bg-primary/90`,destructive:`bg-destructive text-white [button&,a&]:hover:bg-destructive/90`,error:`bg-destructive/8 text-destructive-foreground dark:bg-destructive/16`,info:`bg-info/8 text-info-foreground dark:bg-info/16`,outline:`border-input bg-background text-foreground dark:bg-input/32 [button&,a&]:hover:bg-accent/50 dark:[button&,a&]:hover:bg-input/48`,secondary:`bg-secondary text-secondary-foreground [button&,a&]:hover:bg-secondary/90`,success:`bg-success/8 text-success-foreground dark:bg-success/16`,warning:`bg-warning/8 text-warning-foreground dark:bg-warning/16`}}});function Zn(e){let t=(0,Vn.c)(9),n,r,i,a;if(t[0]!==e){let{className:o,variant:s,size:l,render:u,...d}=e;n=u;let f={className:O(Xn({className:o,size:l,variant:s})),"data-slot":`badge`};a=c,r=`span`,i=re(f,d),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;return t[5]!==n||t[6]!==r||t[7]!==i?(o={defaultTagName:r,props:i,render:n},t[5]=n,t[6]=r,t[7]=i,t[8]=o):o=t[8],a(o)}export{ct as A,ut as C,vt as D,ft as E,Ye as F,ot as M,it as N,_t as O,rt as P,dt as S,gt as T,Ct as _,qn as a,Tt as b,Gn as c,Ut as d,Ht as f,St as g,kt as h,Yn as i,st as j,pt as k,Kt as l,jt as m,Hn as n,Kn as o,Pt as p,Jn as r,Wn as s,Zn as t,Gt as u,xt as v,mt as w,yt as x,wt as y};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{K as e}from"./primary-DjXNHNGV.js";import{P as t}from"./runtime-L56puJDA.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{t as r}from"./authorization-K_UCP_xh.js";var i=n();function a(n){let a=(0,i.c)(7),s=t(o),c;return a[0]!==n||a[1]!==s.browserStatus||a[2]!==s.directoryStatus||a[3]!==s.effectiveRole||a[4]!==s.sessionStatus||a[5]!==s.transportStatus?(c=r({hosted:e(),role:s.effectiveRole,fresh:s.directoryStatus===`ready`&&s.transportStatus===`online`,browserCurrent:s.browserStatus===`current`,sessionReady:s.sessionStatus===`ready`,method:n}),a[0]=n,a[1]=s.browserStatus,a[2]=s.directoryStatus,a[3]=s.effectiveRole,a[4]=s.sessionStatus,a[5]=s.transportStatus,a[6]=c):c=a[6],c}function o(e){return e}export{a as t};
1
+ import{K as e}from"./primary-CjhRI8fe.js";import{P as t}from"./runtime-Bxg7k81u.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{t as r}from"./authorization-7xVVtCBu.js";var i=n();function a(n){let a=(0,i.c)(7),s=t(o),c;return a[0]!==n||a[1]!==s.browserStatus||a[2]!==s.directoryStatus||a[3]!==s.effectiveRole||a[4]!==s.sessionStatus||a[5]!==s.transportStatus?(c=r({hosted:e(),role:s.effectiveRole,fresh:s.directoryStatus===`ready`&&s.transportStatus===`online`,browserCurrent:s.browserStatus===`current`,sessionReady:s.sessionStatus===`ready`,method:n}),a[0]=n,a[1]=s.browserStatus,a[2]=s.directoryStatus,a[3]=s.effectiveRole,a[4]=s.sessionStatus,a[5]=s.transportStatus,a[6]=c):c=a[6],c}function o(e){return e}export{a as t};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`clipboard-copy`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{Vr as e,_l as t}from"./runtime-Bxg7k81u.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";var r=n(),i=t();function a(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`grid grid-cols-[auto_1fr] gap-x-4 gap-y-2`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`dl`,{className:s,"data-slot":`data-list`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function o(t){let n=(0,r.c)(16),{term:a,children:o,mono:s,action:c,className:l}=t,u=s!==void 0&&s,d;n[0]===a?d=n[1]:(d=(0,i.jsx)(`dt`,{className:`text-xs text-muted-foreground`,"data-slot":`data-list-term`,children:a}),n[0]=a,n[1]=d);let f=u&&`font-mono text-xs break-all`,p;n[2]!==l||n[3]!==f?(p=e(`flex min-w-0 items-start gap-2 text-sm`,f,l),n[2]=l,n[3]=f,n[4]=p):p=n[4];let m;n[5]===o?m=n[6]:(m=(0,i.jsx)(`span`,{className:`min-w-0`,children:o}),n[5]=o,n[6]=m);let h;n[7]===c?h=n[8]:(h=c?(0,i.jsx)(`span`,{className:`shrink-0 font-sans text-sm`,children:c}):null,n[7]=c,n[8]=h);let g;n[9]!==p||n[10]!==m||n[11]!==h?(g=(0,i.jsxs)(`dd`,{className:p,"data-slot":`data-list-detail`,children:[m,h]}),n[9]=p,n[10]=m,n[11]=h,n[12]=g):g=n[12];let _;return n[13]!==d||n[14]!==g?(_=(0,i.jsxs)(i.Fragment,{children:[d,g]}),n[13]=d,n[14]=g,n[15]=_):_=n[15],_}export{o as n,a as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./react-SIfiwpqq.js";import{r as n}from"./primary-CjhRI8fe.js";import{Nn as r,a as i,i as a,o,p as s,s as c}from"./runtime-Bxg7k81u.js";import{i as l,n as u,r as d,t as f}from"./workspaceMetadataProjection-j3BGlVOB.js";var p=e(t(),1);function m(e){let t=new Set;for(let n of e.snapshots)l(n)&&(e.excludedEnvironmentIds?.has(n.environmentId)||(t.add(n.environmentId),e.port.hydrate(n)));for(let n of e.previouslyHydratedEnvironmentIds)t.has(n)||e.port.isCacheHydrated(n)&&e.port.remove(n);return t}var h={status:`signed-out`,accountId:null,localEnvironmentId:null,machines:[],snapshots:[],queuedEnvironmentIds:[],activeConnectionCount:0},g=new Set,_=new Set;function v(){return h}function y(e){return g.add(e),()=>g.delete(e)}function b(){return(0,p.useSyncExternalStore)(y,v,v)}function x(e,t){let n=globalThis.window?.desktopBridge,r=n?.retainDesktopWorkspaceScope;if(!n||!r)return()=>void 0;let i=!1,a=!1,o=null,s=null,c=()=>h.status===`ready`&&h.machines.some(t=>t.environmentId===e&&t.canConnect),l=()=>{s&&globalThis.clearInterval(s),s=null;let e=o;o=null,e&&n.releaseDesktopWorkspaceScope?.(e).catch(()=>void 0)},u=()=>{if(!i){if(!c()){l();return}a||o!==null||(a=!0,r({environmentId:e,scope:t}).then(e=>{if(a=!1,i||!c()){n.releaseDesktopWorkspaceScope?.(e.leaseId).catch(()=>void 0);return}o=e.leaseId,s=globalThis.setInterval(()=>{n.renewDesktopWorkspaceScope?.(e.leaseId).catch(()=>void 0)},15e3)}).catch(()=>{a=!1}))}},d=y(u);return u(),()=>{i=!0,d(),l()}}function S(e,t){return x(e,{type:`thread-detail`,threadId:t})}function C(e){return x(e,{type:`interactive`})}function w(e,t){return x(e,{type:`vcs-status`,cwd:t})}function T(e,t){return x(e,{type:`provider-status`,...t?{instanceId:t}:{}})}function E(e){let t=n()?.environmentId??null,i=t!==null&&e.localEnvironmentId!==null&&e.localEnvironmentId!==t?e.localEnvironmentId:null;_=new Set(m({snapshots:e.snapshots,previouslyHydratedEnvironmentIds:_,...i===null?{}:{excludedEnvironmentIds:new Set([i])},port:{hydrate:e=>r.getState().hydrateEnvironmentStateFromCache(d(e),e.environmentId),isCacheHydrated:e=>r.getState().environmentStateById[e]?.hydratedFromCacheAt!==void 0,remove:e=>r.getState().removeEnvironmentState(e)}})),h=e;for(let e of g)e()}async function D(e){let t=n()?.environmentId??null;if(t!==null&&h.localEnvironmentId===e.environmentId&&t!==e.environmentId){if(e.action===`connect`){e.delayMs>0&&await new Promise(t=>globalThis.setTimeout(t,e.delayMs));try{let t=i();if(!t)throw Error(`Primary environment is unavailable.`);await t.ensureBootstrapped(),await globalThis.window?.desktopBridge?.reportDesktopWorkspaceConnection?.({environmentId:e.environmentId,connected:!0}).catch(()=>void 0)}catch(t){throw await globalThis.window?.desktopBridge?.reportDesktopWorkspaceConnection?.({environmentId:e.environmentId,connected:!1}).catch(()=>void 0),t}return}await globalThis.window?.desktopBridge?.reportDesktopWorkspaceConnection?.({environmentId:e.environmentId,connected:!1}).catch(()=>void 0);return}let r=s(e.environmentId);if(e.action===`connect`){e.delayMs>0&&await new Promise(t=>globalThis.setTimeout(t,e.delayMs));try{if(r)await r.reconnect(),await r.ensureBootstrapped();else{let t=h.machines.find(t=>t.environmentId===e.environmentId);if(!t?.canConnect)throw Error(`Desktop workspace machine is unavailable.`);r=await a({environmentId:t.environmentId,label:t.label})}await globalThis.window?.desktopBridge?.reportDesktopWorkspaceConnection?.({environmentId:e.environmentId,connected:!0}).catch(()=>void 0)}catch(t){throw await globalThis.window?.desktopBridge?.reportDesktopWorkspaceConnection?.({environmentId:e.environmentId,connected:!1}).catch(()=>void 0),t}return}r&&(r.kind===`primary`?await o():await c(e.environmentId),await globalThis.window?.desktopBridge?.reportDesktopWorkspaceConnection?.({environmentId:e.environmentId,connected:!1}).catch(()=>void 0))}function O(){let e=globalThis.window?.desktopBridge;if(!e?.getDesktopWorkspaceState)return()=>void 0;let t=!1,i=null,a=h.accountId,o=new Map,s=e=>{a!==e.accountId&&(o.clear(),a=e.accountId);for(let t of o.keys())e.machines.some(e=>e.environmentId===t&&e.canReadMetadata)||o.delete(t);E(e)},c=()=>{i&&globalThis.clearTimeout(i),i=globalThis.setTimeout(()=>{i=null;let a=e.publishDesktopWorkspaceSnapshot;if(!a||t)return;let s=n()?.environmentId??null;for(let e of h.machines){if(!e.canReadMetadata)continue;let n=s!==null&&e.environmentId===h.localEnvironmentId?s:e.environmentId;if(r.getState().environmentStateById[n]?.hydratedFromCacheAt!==void 0)continue;let i=f(n,0);if(!i)continue;let l=u(i,e.environmentId),d=JSON.stringify(l),p=o.get(e.environmentId);if(p?.pending||p?.fingerprint===d)continue;let m={fingerprint:d,pending:!0};o.set(e.environmentId,m),a({...l,capturedAt:Date.now()}).then(()=>{t||o.get(e.environmentId)!==m||(m.pending=!1,c())}).catch(()=>{o.get(e.environmentId)===m&&o.delete(e.environmentId)})}},100)},l=e.onDesktopWorkspaceState?.(e=>{t||(s(e),c())}),d=e.onDesktopWorkspaceConnectionCommand?.(e=>{D(e).catch(()=>void 0)}),p=r.subscribe(c);return e.getDesktopWorkspaceState().then(e=>{t||(s(e),c())}).catch(()=>void 0),()=>{t=!0,i&&globalThis.clearTimeout(i),l?.(),d?.(),p()}}export{O as a,w as i,T as n,b as o,S as r,C as t};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{lt as e,ut as t}from"./src-Bi-5Nw9C.js";import{Dr as n,Na as r,Or as i,ai as a,oi as o,si as s}from"./runtime-Bxg7k81u.js";import{t as c}from"./compiler-runtime-qmuS0Svy.js";var l={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};l.node;var u=r(l),d=c(),f=`ryco:last-editor`;function p(t){let n=e.find(e=>e.id===t);return!(!n||`workspaceOnly`in n&&n.workspaceOnly)}function m(n){let r=(0,d.c)(5),[a,o]=s(f,null,t),c=i(h),l;bb0:{if(c&&n.includes(c)&&p(c)){l=c;break bb0}if(a&&n.includes(a)&&p(a)){l=a;break bb0}let t;r[0]===n?t=r[1]:(t=e.find(e=>n.includes(e.id)&&p(e.id))?.id??null,r[0]=n,r[1]=t),l=t}let u=l,m;return r[2]!==u||r[3]!==o?(m=[u,o],r[2]=u,r[3]=o,r[4]=m):m=r[4],m}function h(e){return e.preferredEditor}function g(r){let i=new Set(r),s=n().preferredEditor;if(s&&i.has(s)&&p(s))return s;let c=a(f,t);if(c&&i.has(c)&&p(c))return c;let l=e.find(e=>i.has(e.id)&&p(e.id))?.id??null;return l&&o(f,l,t),l??null}async function _(e,t){let{availableEditors:n}=await e.server.getConfig(),r=g(n);if(!r)throw Error(`No available editors found.`);return await e.shell.openInEditor(t,r),r}export{u as a,m as i,_ as n,g as r,p as t};
@@ -0,0 +1 @@
1
+ import{Vr as e,_l as t,xa as n}from"./runtime-Bxg7k81u.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";var i=r(),a=t();function o(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance p-6 text-center md:p-12`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex max-w-sm flex-col items-center text-center`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-header`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}var c=n(`flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{variant:`default`},variants:{variant:{default:`bg-transparent`,icon:`relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card not-dark:bg-clip-padding text-foreground shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5`}}});function l(t){let n=(0,i.c)(21),r,o,s;n[0]===t?(r=n[1],o=n[2],s=n[3]):({className:r,variant:s,...o}=t,n[0]=t,n[1]=r,n[2]=o,n[3]=s);let l=s===void 0?`default`:s,u;n[4]===r?u=n[5]:(u=e(`relative mb-6`,r),n[4]=r,n[5]=u);let d;n[6]!==r||n[7]!==l?(d=l===`icon`&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`div`,{"aria-hidden":`true`,className:e(c({className:r,variant:l}),`-translate-x-0.5 -rotate-10 pointer-events-none absolute bottom-px origin-bottom-left scale-84 shadow-none`)}),(0,a.jsx)(`div`,{"aria-hidden":`true`,className:e(c({className:r,variant:l}),`pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none`)})]}),n[6]=r,n[7]=l,n[8]=d):d=n[8];let f;n[9]!==r||n[10]!==l?(f=e(c({className:r,variant:l})),n[9]=r,n[10]=l,n[11]=f):f=n[11];let p;n[12]!==o||n[13]!==f?(p=(0,a.jsx)(`div`,{className:f,...o}),n[12]=o,n[13]=f,n[14]=p):p=n[14];let m;return n[15]!==o||n[16]!==u||n[17]!==d||n[18]!==p||n[19]!==l?(m=(0,a.jsxs)(`div`,{className:u,"data-slot":`empty-media`,"data-variant":l,...o,children:[d,p]}),n[15]=o,n[16]=u,n[17]=d,n[18]=p,n[19]=l,n[20]=m):m=n[20],m}function u(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`font-heading font-semibold text-xl`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-title`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function d(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`text-muted-foreground text-sm [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-description`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function f(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-content`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{l as a,s as i,f as n,u as o,d as r,o as t};
@@ -0,0 +1 @@
1
+ import{Vr as e,_l as t,xa as n}from"./runtime-Bxg7k81u.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";import{t as i}from"./separator-B5HfRiaO.js";var a=r(),o=t(),s=n(`flex w-fit *:focus-visible:z-1 has-[>[data-slot=group]]:gap-2 *:has-focus-visible:z-1 dark:*:[[data-slot=button]:hover~[data-slot=separator]:not([data-slot]:hover~[data-slot=separator]~[data-slot=separator]),[data-slot][data-pressed]~[data-slot=separator]:not([data-slot][data-pressed]~[data-slot=separator]~[data-slot=separator])]:before:bg-input/64 dark:*:[[data-slot=separator]:has(~[data-slot=button]:hover):not(:has(~[data-slot=separator]~[data-slot]:hover)),[data-slot=separator]:has(~[data-slot][data-pressed]):not(:has(~[data-slot=separator]~[data-slot][data-pressed]))]:before:bg-input/64`,{defaultVariants:{orientation:`horizontal`},variants:{orientation:{horizontal:`*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-start-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-end-[0.5px] *:pointer-coarse:after:min-w-auto *:data-slot:has-[~[data-slot]]:rounded-e-none *:data-slot:has-[~[data-slot]]:border-e-0 *:data-slot:has-[~[data-slot]]:before:rounded-e-none *:[[data-slot]~[data-slot]]:rounded-s-none *:[[data-slot]~[data-slot]]:border-s-0 *:[[data-slot]~[data-slot]]:before:rounded-s-none`,vertical:`*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-top-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-bottom-[0.5px] flex-col *:pointer-coarse:after:min-h-auto *:data-slot:has-[~[data-slot]]:rounded-b-none *:data-slot:has-[~[data-slot]]:border-b-0 *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:hidden *:data-slot:has-[~[data-slot]]:before:rounded-b-none dark:*:last:before:hidden dark:*:first:before:block *:[[data-slot]~[data-slot]]:rounded-t-none *:[[data-slot]~[data-slot]]:border-t-0 *:[[data-slot]~[data-slot]]:before:rounded-t-none`}}});function c(t){let n=(0,a.c)(13),r,i,c,l;n[0]===t?(r=n[1],i=n[2],c=n[3],l=n[4]):({className:i,orientation:c,children:r,...l}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=c,n[4]=l);let u;n[5]!==i||n[6]!==c?(u=e(s({orientation:c}),i),n[5]=i,n[6]=c,n[7]=u):u=n[7];let d;return n[8]!==r||n[9]!==c||n[10]!==l||n[11]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":c,"data-slot":`group`,role:`group`,...l,children:r}),n[8]=r,n[9]=c,n[10]=l,n[11]=u,n[12]=d):d=n[12],d}function l(t){let n=(0,a.c)(10),r,s,c;n[0]===t?(r=n[1],s=n[2],c=n[3]):({className:r,orientation:c,...s}=t,n[0]=t,n[1]=r,n[2]=s,n[3]=c);let l=c===void 0?`vertical`:c,u;n[4]===r?u=n[5]:(u=e(`[[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+input+&]:-translate-x-px pointer-events-none relative z-2 bg-input before:absolute before:inset-0 has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:translate-x-px has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:bg-ring dark:before:bg-input/32 [[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+&,[data-slot=number-field]:focus-within+input+&]:bg-ring`,r),n[4]=r,n[5]=u);let d;return n[6]!==l||n[7]!==s||n[8]!==u?(d=(0,o.jsx)(i,{className:u,orientation:l,...s}),n[6]=l,n[7]=s,n[8]=u,n[9]=d):d=n[9],d}export{l as n,c as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./react-SIfiwpqq.js";import{D as n,L as r,Nn as i,w as a}from"./runtime-Bxg7k81u.js";import{o,s}from"./authorization-7xVVtCBu.js";import{a as c,i as l,o as u,r as d,s as f,t as p}from"./workspaceMetadataProjection-j3BGlVOB.js";var m=`__TSR_index`,h=`popstate`,g=`beforeunload`;function _(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=S(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[m];i=v(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[m];i=v(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[m]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function v(e,t){t||={};let n=C();return{...t,key:n,__TSR_key:n,[m]:e}}function y(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>S(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=C();t.history.replaceState({[m]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,v=!1,y=()=>l,b,x=()=>{b&&(O._ignoreSubscribers=!0,(b[2]?t.history.pushState:t.history.replaceState)(b[1],``,b[0]),O._ignoreSubscribers=!1,b=void 0,u=void 0)},w=(e,t,n)=>{let r=s(t),i=!!b;i||(u=l),l=S(t,n),b=[r,n,b?.[2]||e],i||queueMicrotask(()=>x())},T=e=>{l=c(),O.notify({type:e})},E=async()=>{if(v=!1,f){f=!1;return}let e=c(),n=e.state[m]-l.state[m],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),O.notify(u);return}}}l=c(),O.notify(u)},D=e=>{if(v){v=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},O=_({getLocation:y,getLength:()=>t.history.length,pushState:(e,t)=>w(!0,e,t),replaceState:(e,t)=>w(!1,e,t),back:e=>(e&&(p=!0,v=!0),t.history.back()),forward:e=>{e&&(p=!0,v=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,v=!0),t.history.go(e)},createHref:e=>s(e),flush:x,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(g,D,{capture:!0}),t.removeEventListener(h,E)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(g,D,{capture:!0}),t.addEventListener(h,E),t.history.pushState=function(...e){let r=n.apply(t.history,e);return O._ignoreSubscribers||T(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return O._ignoreSubscribers||T(`REPLACE`),n},O}function b(e){let t=e?.window??(typeof document<`u`?window:void 0);return y({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return S(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function x(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function S(e,t){let n=x(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=C();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[m]:0,key:a,__TSR_key:a}}}function C(){return(Math.random()+1).toString(36).substring(7)}function w(e){return Number.isSafeInteger(e)&&e>=0}function T(e){return e.environmentId===null||!w(e.selectionGeneration)||!w(e.snapshotGeneration)||e.effectiveRole!==`owner`||!e.directoryReady||!e.relayReady||!e.shellReady?null:{environmentId:e.environmentId,selectionGeneration:e.selectionGeneration,snapshotGeneration:e.snapshotGeneration,effectiveRole:e.effectiveRole,directoryReady:!0,relayReady:!0,shellReady:!0}}function E(e,t,n){let r=T(n);return r!==null&&e.environmentId===t&&r.environmentId===t&&e.selectionGeneration===r.selectionGeneration&&e.snapshotGeneration===r.snapshotGeneration&&e.effectiveRole===r.effectiveRole}function D(){let e=new Set,t={environmentId:null,selectionGeneration:0,snapshotGeneration:0,effectiveRole:null,directoryReady:!1,relayReady:!1,shellReady:!1};return{update(n){let r=t.environmentId!==n.environmentId||t.effectiveRole!==n.effectiveRole||t.directoryReady!==n.directoryReady||t.relayReady!==n.relayReady||t.shellReady!==n.shellReady;t={...n,selectionGeneration:r?t.selectionGeneration+1:t.selectionGeneration};for(let t of Array.from(e))t()},read:()=>t,lease(e){let n=T(t);return n?.environmentId===e?n:null},validate:(e,n)=>E(e,n,t),subscribe(t){return e.add(t),()=>e.delete(t)}}}var O=45e3;function k(e){if(!Number.isInteger(e)||e<1||e>3)throw RangeError(`platformMaxConnections must be between 1 and 3`);return{platformMaxConnections:e,backgrounded:!1,leases:[],connections:[]}}function ee(e,t,n){let r=e.connections.find(e=>e.environmentId===t)??{environmentId:t,connected:!1,lastAccessedAt:0};return{...e,connections:[...e.connections.filter(e=>e.environmentId!==t),n(r)]}}function te(e,t,n){return ee(e,t,e=>({...e,lastAccessedAt:Math.max(e.lastAccessedAt,n)}))}function A(e,t,n,r){return ee(e,t,e=>({...e,connected:n,lastAccessedAt:Math.max(e.lastAccessedAt,r)}))}function ne(e,t){if(t.leaseId.length===0)throw TypeError(`leaseId must not be empty`);if(e.leases.some(e=>e.leaseId===t.leaseId))throw Error(`Duplicate workspace connection lease: ${t.leaseId}`);let n=t.ttlMs??45e3;if(!Number.isFinite(n)||n<=0)throw RangeError(`ttlMs must be positive`);return te({...e,leases:[...e.leases,{leaseId:t.leaseId,environmentId:t.environmentId,scope:t.scope,retainedAt:t.now,expiresAt:t.now+n}]},t.environmentId,t.now)}function re(e,t,n,r=O){if(!Number.isFinite(r)||r<=0)throw RangeError(`ttlMs must be positive`);return{...e,leases:e.leases.map(e=>e.leaseId===t?{...e,expiresAt:n+r}:e)}}function ie(e,t){return{...e,leases:e.leases.filter(e=>e.leaseId!==t)}}function ae(e,t){return e.backgrounded===t?e:{...e,backgrounded:t}}function oe(e,t){let n=e.leases.filter(e=>e.expiresAt>t);return n.length===e.leases.length?e:{...e,leases:n}}function se(e,t){let n=oe(e,t.now),r=new Map;for(let e of n.leases)r.set(e.environmentId,Math.max(r.get(e.environmentId)??0,e.retainedAt));let i=Array.from(r.keys()),a=new Set(i),o=n.connections.filter(e=>e.connected),s=new Set(o.map(e=>e.environmentId)),c=o.filter(e=>!a.has(e.environmentId)).toSorted((e,t)=>e.lastAccessedAt-t.lastAccessedAt||String(e.environmentId).localeCompare(String(t.environmentId))),l=i.filter(e=>!s.has(e)).toSorted((e,t)=>(r.get(t)??0)-(r.get(e)??0)||String(e).localeCompare(String(t))),u=[];if(n.backgrounded)return u.push(...c.map(e=>e.environmentId)),{state:n,retain:i.filter(e=>s.has(e)),release:u,connect:[],queued:l};let d=o.length,f=[...c];for(;f.length>0&&(d>n.platformMaxConnections||d+l.length>n.platformMaxConnections);){let e=f.shift();u.push(e.environmentId),--d}let p=Math.max(0,n.platformMaxConnections-d),m=l.slice(0,p),h=Math.max(0,t.wakeStaggerMs??0);return{state:n,retain:i.filter(e=>s.has(e)),release:u,connect:m.map((e,t)=>({environmentId:e,delayMs:t*h})),queued:l.slice(m.length)}}var ce={os:`unknown`,arch:`other`};function le(e){return Array.from(new Set(e.filter(e=>e!==null)))}function ue(e){let t=e.revokedAt!=null,n=e.removed===!0,r=e.clientTier===`hosted-web`&&e.capabilities?.nativeClientRequired===!0,i=e.clientTier===`native`&&e.requiresNativeVerification&&e.nativeTrust===`unknown`,a=e.clientTier===`native`&&e.requiresNativeVerification&&e.nativeTrust===`unverified`,o=e.nativeTrust===`identity-conflict`,s=e.clientTier===`hosted-web`?!r:!e.requiresNativeVerification||e.nativeTrust===`verified`||e.nativeTrust===`account-trusted`,c=!t&&!n&&s&&!o,l=c&&e.online,u=l&&e.effectiveRole!==null&&e.effectiveRole!==`viewer`,d=le([t?`revoked`:null,n?`removed`:null,r?`native-client-required`:null,i?`trust-unknown`:null,a?`not-verified`:null,o?`identity-conflict`:null,e.online?null:`offline`,e.effectiveRole===null?`role-unknown`:null,e.effectiveRole===`viewer`?`viewer`:null]);return{environmentId:e.environmentId,nodeId:e.nodeId??null,label:e.label,platform:e.platform??ce,serverVersion:e.serverVersion??null,capabilities:{repositoryIdentity:e.capabilities?.repositoryIdentity??!1,nativeClientRequired:e.capabilities?.nativeClientRequired??!1,threadSettlement:e.capabilities?.threadSettlement??!1,...e.capabilities?.threadSnooze===void 0?{}:{threadSnooze:e.capabilities.threadSnooze}},clientTier:e.clientTier,nativeTrust:e.nativeTrust,effectiveRole:e.effectiveRole,presence:{online:e.online,lastSeenAt:e.lastSeenAt,observedAt:e.observedAt},connectionState:e.connectionState??`disconnected`,deliveryUnknown:e.deliveryUnknown??!1,revokedAt:e.revokedAt??null,removed:n,canReadMetadata:c,canConnect:l,canMutate:u,cacheDisposition:t||n||r||i||a?`purge`:o?`locked-stale`:`available`,accessReasons:d}}function de(e){let t=new Map;for(let n of e)t.set(n.environmentId,ue(n));return Array.from(t.values()).toSorted((e,t)=>e.label.localeCompare(t.label)||String(e.environmentId).localeCompare(String(t.environmentId)))}function fe(e){if(e===null)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function pe(e){let t=new Map(e.machines.map(e=>[e.environmentId,e])),r=new Map;for(let t of e.snapshots){let e=r.get(t.environmentId);(!e||t.capturedAt>e.capturedAt)&&r.set(t.environmentId,t)}let i=[],o=[];for(let[e,n]of r){let r=t.get(e);if(r&&r.cacheDisposition!==`purge`){if(r.cacheDisposition===`locked-stale`){o.push({status:`locked-stale`,environmentId:e,capturedAt:n.capturedAt});continue}r.canReadMetadata&&(o.push({status:`available`,snapshot:n}),i.push(n))}}let s=i.flatMap(e=>e.projects),c=i.flatMap(e=>e.worktrees),l=i.flatMap(e=>{let n=t.get(e.environmentId);return e.threads.map(e=>({...e,deliveryUnknown:e.deliveryUnknown||n?.deliveryUnknown===!0}))}),u=s.flatMap(n=>{let r=t.get(n.environmentId);if(!r)return[];let i=a(n);return[{environmentId:n.environmentId,projectId:n.id,physicalKey:i,name:n.name,cwd:n.cwd,repositoryIdentity:n.repositoryIdentity,machineLabel:r.label,online:r.presence.online,canMutate:r.canMutate,nativeTrust:r.nativeTrust,effectiveRole:r.effectiveRole,lastUsedAt:e.lastUsedAtByPhysicalProjectKey?.[i]??null,lastLiveAt:fe(n.updatedAt)??r.presence.lastSeenAt,localDesktop:e.localDesktopEnvironmentId===n.environmentId}]});return{machines:e.machines,snapshots:o.toSorted((e,t)=>{let n=e.status===`available`?e.snapshot.environmentId:e.environmentId,r=t.status===`available`?t.snapshot.environmentId:t.environmentId;return String(n).localeCompare(String(r))}),projects:s,worktrees:c,threads:l,logicalProjects:n(u)}}var me=e(t(),1),j=`ryco:hosted-workspace-metadata:v1`,M=1;function N(e){try{return new URL(e).origin.toLowerCase()}catch{return e.replace(/\/+$/gu,``).toLowerCase()}}function P(e){return{...e,hubOrigin:N(e.hubOrigin)}}function he(e){return{...e,namespace:P(e.namespace)}}function ge(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return typeof t.hubOrigin==`string`&&t.hubOrigin.length>0&&t.hubOrigin.length<=2048&&typeof t.accountId==`string`&&t.accountId.length>0&&t.accountId.length<=2048&&typeof t.environmentId==`string`&&t.environmentId.length>0&&t.environmentId.length<=2048}function _e(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return ge(t.namespace)&&l(t.snapshot,t.namespace.environmentId)&&Number.isSafeInteger(t.payloadBytes)&&t.payloadBytes===f(t.snapshot)&&Number.isSafeInteger(t.updatedAt)&&Number(t.updatedAt)>=0}function F(e){try{let t=e.getItem(j);if(!t)return{version:M,records:[]};let n=JSON.parse(t);if(typeof n!=`object`||!n||Array.isArray(n))return{version:M,records:[]};let r=n;if(r.version!==M||!Array.isArray(r.records))return{version:M,records:[]};let i=new Map;for(let e of r.records){if(!_e(e))continue;let t=he(e),n=u(t.namespace),r=i.get(n);(!r||t.updatedAt>r.updatedAt)&&i.set(n,t)}return{version:M,records:Array.from(i.values())}}catch{return{version:M,records:[]}}}function I(e,t){if(t.length===0){e.removeItem(j);return}e.setItem(j,JSON.stringify({version:M,records:t}))}function ve(e){let t=Promise.resolve(),n=e=>{let n=t.then(e,e);return t=n.then(()=>void 0,()=>void 0),n};return{load:async t=>{let n=u(P(t));return F(e).records.find(e=>u(e.namespace)===n)??null},list:async({hubOrigin:t,accountId:n})=>F(e).records.filter(e=>N(e.namespace.hubOrigin)===N(t)&&e.namespace.accountId===n),replace:t=>n(async()=>{if(!_e(t))throw TypeError(`Invalid hosted workspace metadata record.`);let n=he(t),r=F(e),i=c({existing:r.records,incoming:n});if(!i.accepted)return;let a=u(n.namespace),o=new Set(i.evict.map(u));I(e,[...r.records.filter(e=>{let t=u(e.namespace);return t!==a&&!o.has(t)}),n])}),purgeEnvironment:t=>n(async()=>{let n=u(P(t));I(e,F(e).records.filter(e=>u(e.namespace)!==n))}),purgeAccount:({hubOrigin:t,accountId:r})=>n(async()=>{I(e,F(e).records.filter(e=>N(e.namespace.hubOrigin)!==N(t)||e.namespace.accountId!==r))})}}var ye=null;function be(){return ye||=ve(window.localStorage),ye}var L=`/node`,xe=/^[A-Za-z0-9_-]{1,128}$/,Se={nodeId:null,malformed:!1,logicalPathname:`/`},Ce={nodeId:null,malformed:!0},we={nodeId:null,malformed:!1};function R(e){return xe.test(e)}function z(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=n.indexOf(`?`),i=r===-1?n:n.slice(0,r);return{pathname:i,suffix:e.slice(i.length)}}function Te(e){let{pathname:t,suffix:n}=z(e);if(t!==L&&!t.startsWith(`${L}/`))return{routed:we,logicalHref:e};let r=t.slice(6),i=r.indexOf(`/`),a=i===-1?r:r.slice(0,i);if(!R(a))return{routed:Ce,logicalHref:`/`};let o=i===-1?`/`:r.slice(i)||`/`;return{routed:{nodeId:a,malformed:!1},logicalHref:`${o}${n}`}}var Ee=new Set([`sign-in`,`sign-up`,`public-signup`,`password-reset`,`invitation`,`setup`,`email-verification`,`nodes`,`account`]),B=()=>null;function De(e){return B=e,()=>{B===e&&(B=()=>null)}}function Oe(e){let t=/^\/([^/]+)\/[^/]+\/?$/u.exec(e)?.[1];if(!t||Ee.has(t)||t===`draft`||t===`node`)return null;try{return decodeURIComponent(t)}catch{return t}}function ke(e){if(!e.startsWith(`/`))return!1;let t=e.slice(1).split(`/`,1)[0]??``;return Ee.has(t)}function Ae(e,t){let{pathname:n,suffix:r}=z(e);if(ke(n))return e;let i=Oe(n),a=i?B(i)??t:t;return a===null||!R(a)?e:`${n===``||n===`/`?`${L}/${a}`:`${L}/${a}${n}`}${r}`}var V=Se,H=new Set,U=null;function W(e){if(e.nodeId!==V.nodeId||e.malformed!==V.malformed||e.logicalPathname!==V.logicalPathname){V=e;for(let e of Array.from(H))e()}}function je(e){let{pathname:t}=z(e);return t===``?`/`:t}function Me(){return V}function Ne(e){return H.add(e),()=>{H.delete(e)}}function Pe(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=r.indexOf(`?`);return{href:e,pathname:i===-1?r:r.slice(0,i),search:i===-1?``:r.slice(i),hash:n===-1?``:e.slice(n),state:t??{__TSR_index:0}}}function Fe(e=window){let t=y({window:e,parseLocation:()=>{let t=Te(`${e.location.pathname}${e.location.search}${e.location.hash}`);return W({...t.routed,logicalPathname:je(t.logicalHref)}),Pe(t.logicalHref,e.history.state)},createHref:e=>Ae(e,V.nodeId)}),n=t.subscribe(({location:e,action:t})=>{if(t.type!==`PUSH`&&t.type!==`REPLACE`)return;let n=Te(Ae(e.href,V.nodeId));W({...n.routed,logicalPathname:je(n.logicalHref)})}),r=t.destroy.bind(t);return t.destroy=()=>{n(),r()},U=t,t}function Ie(){return U}function Le(e){let t=U;return!t||!R(e)?!1:(W({nodeId:e,malformed:!1,logicalPathname:`/`}),t.push(`/`),!0)}function Re(e){let t=U;return!t||!R(e)?!1:(W({nodeId:e,malformed:!1,logicalPathname:V.logicalPathname}),t.replace(t.location.href),!0)}function ze(){let e=U;return e?(W({nodeId:null,malformed:!1,logicalPathname:`/nodes`}),e.push(`/nodes`),!0):!1}function Be(){let e=U;e&&(W(Se),e.replace(`/`))}var Ve=25e3,He=O;function Ue(e,t){switch(t.type){case`interactive`:return JSON.stringify([e,t.type]);case`thread-detail`:return JSON.stringify([e,t.type,t.threadId]);case`vcs-status`:return JSON.stringify([e,t.type,t.cwd]);case`provider-status`:return JSON.stringify([e,t.type,t.instanceId??null])}}function We(){let e=new Map,t=new Set,n=()=>{for(let e of Array.from(t))e()};return{retain(t,r){let i=Ue(t,r),a=e.get(i);e.set(i,{key:i,environmentId:t,scope:r,refCount:(a?.refCount??0)+1}),a||n();let o=!1;return()=>{if(o)return;o=!0;let t=e.get(i);if(t){if(t.refCount>1){e.set(i,{...t,refCount:t.refCount-1});return}e.delete(i),n()}}},list:()=>Array.from(e.values()),subscribe(e){return t.add(e),()=>t.delete(e)},reset(){e.size!==0&&(e.clear(),n())}}}var G=We();function Ge(e,t){return G.retain(e,{type:`thread-detail`,threadId:t})}function Ke(e,t){return G.retain(e,{type:`vcs-status`,cwd:t})}function qe(e,t){return G.retain(e,{type:`provider-status`,...t?{instanceId:t}:{}})}function Je(e){let t=k(1),n=[],r=Promise.resolve(),i=!1,a=0,o=new Map,s=new Set,c=()=>{for(let e of Array.from(s))e()},l=()=>{let n=new Map(e.scopes.list().map(e=>[e.key,e]));for(let[e,r]of Array.from(o))n.has(e)||(o.delete(e),t=ie(t,r));for(let[r,i]of n){let n=o.get(r);if(n){t=re(t,n,e.now(),He);continue}let s=`hosted-web-${++a}`;o.set(r,s),t=ne(t,{leaseId:s,environmentId:i.environmentId,scope:i.scope,now:e.now(),ttlMs:He})}},u=async()=>{if(i)return;l();let r=se(t,{now:e.now(),wakeStaggerMs:750});t=r.state,n=r.queued,c();for(let n of r.release)await e.release(n).catch(()=>void 0),t=A(t,n,!1,e.now());for(let n of r.connect)try{await e.connect(n.environmentId,n.delayMs),t=A(t,n.environmentId,!0,e.now())}catch{t=A(t,n.environmentId,!1,e.now())}n=se(t,{now:e.now(),wakeStaggerMs:750}).queued,c()},d=()=>{let e=r.catch(()=>void 0).then(u);return r=e.catch(()=>void 0),e},f=e.scopes.subscribe(()=>void d()),p=e.setInterval(()=>void d(),Ve);return{snapshot:()=>({demand:t,queuedEnvironmentIds:n,activeConnectionCount:t.connections.filter(e=>e.connected).length}),subscribe(e){return s.add(e),()=>s.delete(e)},reportConnected(n,r){t=A(t,n,r,e.now()),c()},setBackgrounded(e){return t=ae(t,e),d()},reconcile:d,dispose(){i||(i=!0,f(),e.clearInterval(p),s.clear())}}}var Ye={machines:[],snapshots:[],projects:[],worktrees:[],threads:[],logicalProjects:[]},K={status:`signed-out`,accountId:null,machines:[],workspace:Ye,demand:{demand:k(1),queuedEnvironmentIds:[],activeConnectionCount:0}},q=new Set,J=null,Y=D();function X(e){return Y.lease(e)}function Xe(e,t=3e4){let n=X(e);return n?Promise.resolve(n):new Promise(n=>{let r=!1,i=e=>{r||(r=!0,globalThis.clearTimeout(o),a(),n(e))},a=Y.subscribe(()=>{let t=X(e);t&&i(t)}),o=globalThis.setTimeout(()=>i(null),t)})}function Z(e){K=e;for(let e of Array.from(q))e()}function Ze(){return K}function Qe(){return(0,me.useSyncExternalStore)($e,Ze,Ze)}function $e(e){return q.add(e),()=>q.delete(e)}function Q(e){return e.capabilities?.nativeClientRequired===!0}function et(e,t,n,r,i){return de(e.map(e=>({environmentId:e.environmentId,nodeId:e.id,label:e.label,platform:{os:e.platformOs,arch:e.platformArch},serverVersion:e.clientVersion,capabilities:{repositoryIdentity:e.capabilities?.repositoryIdentity??!0,threadSettlement:e.capabilities?.threadSettlement??!1,nativeClientRequired:e.capabilities?.nativeClientRequired??!1},clientTier:`hosted-web`,nativeTrust:`not-required`,requiresNativeVerification:!1,effectiveRole:e.effectiveRole,online:e.presence.online,lastSeenAt:e.presence.lastHeartbeatAt,observedAt:i,connectionState:e.environmentId===t&&n?`connected`:`disconnected`,deliveryUnknown:e.environmentId===t&&r,revokedAt:e.revokedAt})))}function tt(e){let t=e?.cache??be(),n=e?.now??Date.now,a=e?.setTimeout??((e,t)=>globalThis.setTimeout(e,t)),c=e?.clearTimeout??(e=>globalThis.clearTimeout(e)),l=e?.setInterval??((e,t)=>globalThis.setInterval(e,t)),u=e?.clearInterval??(e=>globalThis.clearInterval(e)),m=e?.hubOrigin??window.location.origin,h=new Map,g=null,_=null,v=null,y=!1,b=0,x=null,S=Je({scopes:G,now:n,setInterval:l,clearInterval:u,connect:async(e,t)=>{t>0&&await new Promise(e=>a(e,t));let n=s.getState();if(n.directoryStatus!==`ready`||n.browserStatus!==`current`)throw Error(`Hosted Web directory is not current.`);let r=n.nodes.find(t=>t.environmentId===e&&t.revokedAt===null&&t.presence.online&&!Q(t));if(!r)throw Error(`Hosted Web environment is not eligible.`);await o.selectNode(r.id)},release:async e=>{s.getState().selectedNode?.environmentId===e&&await o.returnToDirectory()}});J=S;let C=e=>{let t=s.getState(),n=t.accountStatus===`authenticated`?t.directoryStatus===`ready`?`ready`:t.directoryStatus===`stale`?`stale`:`loading`:`signed-out`,r=t.selectedNode?.environmentId??null,i=r===null?void 0:h.get(r);Y.update({environmentId:r,snapshotGeneration:i?.capturedAt??0,effectiveRole:t.effectiveRole,directoryReady:t.directoryStatus===`ready`&&t.browserStatus===`current`,relayReady:t.transportStatus===`online`&&t.sessionEstablished&&r!==null,shellReady:i!==void 0&&e.some(e=>e.environmentId===r&&e.connectionState===`connected`&&e.canMutate)}),Z({status:n,accountId:t.account?.id??null,machines:e,workspace:pe({machines:e,snapshots:Array.from(h.values())}),demand:S.snapshot()})},w=async()=>{let e=++b,a=s.getState(),o=a.accountStatus===`authenticated`?a.account?.id??null:null,c=o?JSON.stringify([m,o]):null,l=_;if(_=o,l&&o!==l&&(await t.purgeAccount({hubOrigin:m,accountId:l}).catch(()=>void 0),h.clear(),G.reset(),r()),!o){g=null,C([]);return}if(c!==g&&a.directoryStatus===`ready`){g=c;let n=await t.list({hubOrigin:m,accountId:o});if(y||e!==b)return;let r=new Set(a.nodes.filter(e=>e.revokedAt===null&&!Q(e)).map(e=>e.environmentId));for(let e of n){if(!r.has(e.namespace.environmentId)){await t.purgeEnvironment(e.namespace).catch(()=>void 0);continue}h.set(e.namespace.environmentId,e.snapshot),i.getState().hydrateEnvironmentStateFromCache(d(e.snapshot),e.namespace.environmentId)}}let u=a.selectedNode?.environmentId??null,f=u!==null&&a.transportStatus!==`idle`&&a.transportStatus!==`terminal-failure`,p=a.transportStatus===`online`&&a.sessionEstablished;x&&x!==u&&S.reportConnected(x,!1),u&&S.reportConnected(u,f),x=u;let v=et(a.nodes,u,p,a.sessionStatus===`delivery-unknown`,n()),w=new Map(v.map(e=>[e.environmentId,e]));if(a.directoryStatus===`ready`)for(let[e]of Array.from(h))w.get(e)?.cacheDisposition!==`available`&&(h.delete(e),i.getState().removeEnvironmentState(e),await t.purgeEnvironment({hubOrigin:m,accountId:o,environmentId:e}).catch(()=>void 0));y||e!==b||C(v)},T=()=>{v!==null&&c(v),v=a(()=>{if(v=null,y||!_)return;let e=K.machines;for(let r of e){if(!r.canReadMetadata)continue;let e=p(r.environmentId,n(),r.deliveryUnknown);e&&(h.set(r.environmentId,e),t.replace({namespace:{hubOrigin:m,accountId:_,environmentId:r.environmentId},snapshot:e,payloadBytes:f(e),updatedAt:n()}).catch(()=>void 0))}C(e)},100)},E=s.subscribe(()=>void w()),D=i.subscribe(T),O=S.subscribe(()=>C(K.machines)),k=De($);return S.reconcile(),w(),()=>{y=!0,b+=1,v!==null&&c(v),E(),D(),O(),k(),S.dispose(),J===S&&(J=null,Y.update({environmentId:null,snapshotGeneration:0,effectiveRole:null,directoryReady:!1,relayReady:!1,shellReady:!1}),Z({status:`signed-out`,accountId:null,machines:[],workspace:Ye,demand:S.snapshot()}))}}function nt(e){return J?.setBackgrounded(e)??Promise.resolve()}function rt(){return J!==null}function $(e){return s.getState().nodes.find(t=>t.environmentId===e&&t.revokedAt===null&&!Q(t))?.id??null}export{S,Fe as _,nt as a,y as b,Xe as c,Ke as d,Re as f,Me as g,Ie as h,X as i,qe as l,Le as m,Q as n,tt as o,Be as p,$ as r,Qe as s,rt as t,Ge as u,ze as v,b as x,Ne as y};
@@ -1 +1 @@
1
- import{r as e}from"./react-SIfiwpqq.js";import{n as t,t as n}from"./pairingUrl-rQM9kSGT.js";var r=e({buildHostedPairingUrl:()=>d,hasHostedPairingRequest:()=>u,isHostedStaticApp:()=>c,readHostedPairingRequest:()=>l}),i=`https://app.ryco.space`;function a(){return i}function o(){return``}function s(e){try{return new URL(e).origin}catch{return null}}function c(e=new URL(window.location.href)){if(o())return!1;let t=s(a());return t!==null&&e.origin===t}function l(e=new URL(window.location.href)){let t=e.searchParams.get(`host`)?.trim()??``,r=n(e)?.trim()??``,i=e.searchParams.get(`label`)?.trim()??``;return!t||!r?null:{host:t,token:r,label:i}}function u(e=new URL(window.location.href)){return l(e)!==null}function d(e){let n=new URL(`/pair`,a());n.searchParams.set(`host`,e.host);let r=e.label?.trim();return r&&n.searchParams.set(`label`,r),t(n,e.token).toString()}export{r as n,l as r,d as t};
1
+ import{r as e}from"./react-SIfiwpqq.js";import{n as t,t as n}from"./pairingUrl-rQM9kSGT.js";var r=`https://app.ryco.space`,i=e({buildHostedPairingUrl:()=>d,hasHostedPairingRequest:()=>u,isHostedStaticApp:()=>c,readHostedPairingRequest:()=>l});function a(){return r}function o(){return``}function s(e){try{return new URL(e).origin}catch{return null}}function c(e=new URL(window.location.href)){if(o())return!1;let t=s(a());return t!==null&&e.origin===t}function l(e=new URL(window.location.href)){let t=e.searchParams.get(`host`)?.trim()??``,r=n(e)?.trim()??``,i=e.searchParams.get(`label`)?.trim()??``;return!t||!r?null:{host:t,token:r,label:i}}function u(e=new URL(window.location.href)){return l(e)!==null}function d(e){let n=new URL(`/pair`,a());n.searchParams.set(`host`,e.host);let r=e.label?.trim();return r&&n.searchParams.set(`label`,r),t(n,e.token).toString()}export{i as n,l as r,d as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{g as r,h as i,y as a}from"./hostedConnectionCoordinator-JZ1dLx4v.js";var o=n(),s=e(t(),1),c=Object.freeze({"":`overview`,security:`security`,appearance:`appearance`}),l=Object.freeze({"sign-in":`/sign-in`,"sign-in-password":`/sign-in/password`,"sign-in-recovery-code":`/sign-in/recovery-code`,"sign-up":`/sign-up`,"sign-up-verify":`/public-signup/verify`,"reset-password":`/password-reset`,invitation:`/invitation`,setup:`/setup`,"email-verification":`/email-verification`,nodes:`/nodes`,"nodes-enroll":`/nodes/enroll`}),u=Object.freeze([`sign-in`,`sign-up`,`public-signup`,`password-reset`,`invitation`,`setup`,`email-verification`,`nodes`,`account`]);function d(e){return e.length>1&&e.endsWith(`/`)?e.slice(0,-1):e===``?`/`:e}function f(e){let t=d(e);if(t.startsWith(`/account`))return{kind:`account`,section:c[t.slice(8).replace(/^\//,``)]??`overview`};for(let[e,n]of Object.entries(l))if(t===n)return{kind:e};return null}function p(e){return e.kind===`account`?e.section===`overview`?`/account`:`/account/${e.section}`:l[e.kind]}function m(e){switch(e.kind){case`sign-in`:return`Sign in`;case`sign-in-password`:return`Sign in with a password`;case`sign-in-recovery-code`:return`Use a recovery code`;case`sign-up`:return`Create your account`;case`sign-up-verify`:return`Verify your email`;case`reset-password`:return`Reset your password`;case`invitation`:return`Redeem your invitation`;case`setup`:return`Claim this Hub`;case`email-verification`:return`Email verification`;case`nodes`:return`Your nodes`;case`nodes-enroll`:return`Enroll a node`;case`account`:return e.section===`overview`?`Account`:e.section===`security`?`Security`:`Appearance`}}var h=typeof window>`u`?`/`:d(window.location.pathname),g=new Set;function _(){for(let e of Array.from(g))e()}function v(e){let t=d(e);t!==h&&(h=t,_())}var y=!1;function b(){y||(y=!0,a(()=>{v(r().logicalPathname)}))}function x(){return i()===null?typeof window>`u`?h:d(window.location.pathname):h}var S=!1;function C(){S||typeof window>`u`||(S=!0,window.addEventListener(`popstate`,()=>{i()===null&&_()}))}function w(e){return b(),C(),g.add(e),()=>{g.delete(e)}}function T(e,t){E(p(e),t)}function E(e,t){let n=d(e),r=i();if(r){t?.replace===!0?r.replace(n):r.push(n),v(n);return}typeof window<`u`&&(t?.replace===!0?window.history.replaceState(window.history.state,``,n):window.history.pushState(window.history.state,``,n)),h=n,_()}function D(){let e=(0,o.c)(2),t=(0,s.useSyncExternalStore)(w,x),n;return e[0]===t?n=e[1]:(n=f(t),e[0]=t,e[1]=n),n}export{E as a,T as i,p as n,D as o,m as r,u as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-CRk9p9SC.css"])))=>i.map(i=>d[i]);
2
- var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}o=l(i.map(i=>{if(i=t(i,a),i=u(i),i in n)return;n[i]=!0;let o=i.endsWith(`.css`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}let s=document.createElement(`link`);if(s.rel=o?`stylesheet`:e,o||(s.as=`script`),s.crossOrigin=``,s.href=i,c&&s.setAttribute(`nonce`,c),document.head.appendChild(s),o)return new Promise((e,t)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})},i=e=>{let t=document.createElement(`link`);for(let[n,r]of Object.entries(e))t.setAttribute(n,r);document.head.append(t)};window.addEventListener(`load`,()=>{i({rel:`icon`,type:`image/png`,href:`/favicon-96x96.png`,sizes:`96x96`}),i({rel:`shortcut icon`,href:`/favicon.ico`}),i({rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`})},{once:!0}),performance.mark(`ryco:startup:web-entry.import-start`),r(()=>import(`./main-DaXSCt8g.js`).then(e=>e.t),__vite__mapDeps([0])).finally(()=>{performance.mark(`ryco:startup:web-entry.import-end`)});export{r as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-CC-U8LrA.css"])))=>i.map(i=>d[i]);
2
+ var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}o=l(i.map(i=>{if(i=t(i,a),i=u(i),i in n)return;n[i]=!0;let o=i.endsWith(`.css`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}let s=document.createElement(`link`);if(s.rel=o?`stylesheet`:e,o||(s.as=`script`),s.crossOrigin=``,s.href=i,c&&s.setAttribute(`nonce`,c),document.head.appendChild(s),o)return new Promise((e,t)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})},i=e=>{let t=document.createElement(`link`);for(let[n,r]of Object.entries(e))t.setAttribute(n,r);document.head.append(t)};window.addEventListener(`load`,()=>{i({rel:`icon`,type:`image/png`,href:`/favicon-96x96.png`,sizes:`96x96`}),i({rel:`shortcut icon`,href:`/favicon.ico`}),i({rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`})},{once:!0}),performance.mark(`ryco:startup:web-entry.import-start`),r(()=>import(`./main-CzDOnLFw.js`).then(e=>e.t),__vite__mapDeps([0])).finally(()=>{performance.mark(`ryco:startup:web-entry.import-end`)});export{r as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./react-SIfiwpqq.js";import{Bo as n,Kc as r,Mc as i,Oc as a,Qc as o,Vr as s,_c as c,_l as l,ms as u,wo as d}from"./runtime-Bxg7k81u.js";import{t as f}from"./compiler-runtime-qmuS0Svy.js";import{t as p}from"./useValueChanged-CRwCkFdy.js";import{t as m}from"./useControlled-DQwgzrEC.js";import{i as h,n as g,r as _,s as v,t as y,u as b}from"./useLabelableId-VMc-yITe.js";var x=e(t(),1),S=x.forwardRef(function(e,t){let{render:s,className:l,id:f,name:S,value:C,disabled:w=!1,onValueChange:T,defaultValue:E,autoFocus:D=!1,style:ee,...O}=e,{state:k,name:A,disabled:j,setTouched:M,setDirty:N,validityData:P,setFocused:F,setFilled:I,validationMode:L,validation:R}=v(),{clearErrors:z,elementRef:B,submitCountRef:V}=_(),H=j||w,U=A??S,W={...k,disabled:H},{labelId:G}=g(),K=y({id:f}),[q]=m({controlled:C,default:E,name:`FieldControl`,state:`value`}),J=C!==void 0,Y=J?q:void 0,X=Y==null?void 0:String(Y),Z=r(()=>R.inputRef.current?.value);h(R.inputRef,K,X,Z,!H,S),o(()=>{let e=X??R.inputRef.current?.value;e!==void 0&&I(e!==``)},[X,R.inputRef,I]),p(X,()=>{X!==void 0&&(z(U),N(X!==(P.initialValue??``)),R.change(X))});let Q=x.useRef(null),$=a();return o(()=>{D&&Q.current===c(i(Q.current))&&F(!0)},[D,F]),u(`input`,e,{ref:[t,Q],state:W,props:[{id:K,disabled:H,name:U,ref:R.inputRef,"aria-labelledby":G,autoFocus:D,...J?{value:Y}:{defaultValue:E},onChange(e){let t=e.currentTarget.value,r=d(n,e.nativeEvent);T?.(t,r),!J&&(N(t!==(P.initialValue??``)),I(t!==``),!e.nativeEvent.defaultPrevented&&!r.isCanceled&&(z(U),R.change(t)))},onFocus(){F(!0)},onBlur(e){if(M(!0),F(!1),L===`onBlur`){let t=e.currentTarget.value;R.commit(t),J&&queueMicrotask(()=>{let e=R.inputRef.current?.value;e!==void 0&&e!==t&&e!==(P.initialValue??``)&&R.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){M(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===B.current&&!e.defaultPrevented){let t=e.currentTarget,n=V.current;$.start(0,()=>{V.current===n&&R.commit(t.value)})}else R.commit(t)}}},O,e=>R.getValidationProps(H,e)],stateAttributesMapping:b})}),C=l(),w=x.forwardRef(function(e,t){return(0,C.jsx)(S,{ref:t,...e})}),T=f(),E=`phone:h-11 phone:[&_[data-slot=input]]:h-11 phone:[&_[data-slot=input]]:leading-11`;function D(e){let t=(0,T.c)(25),n,r,i,a,o,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6]):({className:n,size:a,unstyled:o,nativeInput:c,style:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c);let l=a===void 0?`default`:a,u=o!==void 0&&o,d=c!==void 0&&c,f=l===`sm`&&`h-7.5 px-[calc(--spacing(2.5)-1px)] leading-7.5 sm:h-6.5 sm:leading-6.5`,p=l===`lg`&&`h-9.5 leading-9.5 sm:h-8.5 sm:leading-8.5`,m=r.type===`search`&&`[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none`,h=r.type===`file`&&`text-muted-foreground file:me-3 file:bg-transparent file:font-medium file:text-foreground file:text-sm`,g;t[7]!==f||t[8]!==p||t[9]!==m||t[10]!==h?(g=s(`h-8.5 w-full min-w-0 rounded-[inherit] px-[calc(--spacing(3)-1px)] leading-8.5 outline-none placeholder:text-muted-foreground/72 sm:h-7.5 sm:leading-7.5 [transition:background-color_5000000s_ease-in-out_0s]`,f,p,m,h),t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g):g=t[11];let _=g,v;t[12]!==n||t[13]!==u?(v=s(!u&&`relative inline-flex w-full rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 has-aria-invalid:border-destructive/36 has-focus-visible:border-ring has-autofill:bg-foreground/4 has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none has-focus-visible:ring-[3px] sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]`,n)||void 0,t[12]=n,t[13]=u,t[14]=v):v=t[14];let y;t[15]!==_||t[16]!==d||t[17]!==r||t[18]!==l||t[19]!==i?(y=d?(0,C.jsx)(`input`,{...r,className:_,"data-slot":`input`,size:typeof l==`number`?l:void 0,style:typeof i==`function`?void 0:i}):(0,C.jsx)(w,{...r,className:_,"data-slot":`input`,size:typeof l==`number`?l:void 0,style:i}),t[15]=_,t[16]=d,t[17]=r,t[18]=l,t[19]=i,t[20]=y):y=t[20];let b;return t[21]!==l||t[22]!==y||t[23]!==v?(b=(0,C.jsx)(`span`,{className:v,"data-size":l,"data-slot":`input-control`,children:y}),t[21]=l,t[22]=y,t[23]=v,t[24]=b):b=t[24],b}export{E as n,S as r,D as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./react-SIfiwpqq.js";import{$c as n,As as r,Bc as i,Bo as a,Do as o,Eo as ee,Fo as s,Gc as c,Ho as te,Ic as ne,Io as l,Kc as u,Lo as re,Mc as d,Na as ie,Oc as f,Oo as ae,Po as oe,Ps as p,Qc as m,Ro as h,Sc as g,To as _,Us as v,Vr as y,Wc as b,Yo as se,Zc as x,_l as S,_s as ce,bs as C,co as le,hs as w,is as ue,jo as de,lc as fe,lo as pe,ms as T,nc as E,nl as me,rl as D,tc as O,tl as k,us as he,vc as A,wc as ge,wo as j,yc as _e,yo as ve,ys as ye,zo as be}from"./runtime-Bxg7k81u.js";import{t as xe}from"./compiler-runtime-qmuS0Svy.js";import{O as Se,T as Ce,f as we}from"./usePopupViewport-BcSIK_ph.js";import{A as Te,C as Ee,D as De,E as Oe,F as ke,N as Ae,O as je,P as Me,S as Ne,T as Pe,_ as Fe,b as Ie,d as Le,g as Re,h as ze,j as Be,k as Ve,m as He,p as M,v as Ue,w as We,y as Ge}from"./badge-DnBuGHGL.js";import{t as Ke}from"./useBaseUiId-OYaGjnkh.js";import{t as qe}from"./useValueChanged-CRwCkFdy.js";import{t as Je}from"./useControlled-DQwgzrEC.js";import{a as Ye,c as Xe,i as Ze,n as Qe,o as N,r as $e,s as et,t as tt,u as nt}from"./useLabelableId-VMc-yITe.js";var rt={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};rt.node;var it=ie(rt),P=e(t(),1);function at(e,t,n,i,a,o,ee,s,c,te=2){let ne=r(n.current,{event:e,orientation:i,loopFocus:a,rtl:o,cols:te,disabledIndices:ee,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return p(n.current,ne)?void 0:ne}var ot=P.createContext(void 0),st=P.createContext(void 0),ct=P.createContext(void 0),lt=P.createContext(!1),ut=P.createContext(``);function F(){let e=P.useContext(ot);if(!e)throw Error(x(22));return e}function dt(){let e=P.useContext(st);if(!e)throw Error(x(23));return e}function ft(){let e=P.useContext(ct);if(!e)throw Error(x(24));return e}function pt(){return P.useContext(ut)}function mt(){return P.useContext(lt)}var ht={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?Fe(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Ne(t,e,n)):Ne(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};function gt(e){return e==null?void 0:`${e}-popup`}function _t(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}function vt(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=t?.selected??t,o=n==null?``:Ge(n,a);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(r,i,t)}}function yt(e){return Array.isArray(e)?e.map(e=>yt(e)).join(`,`):e==null?``:String(e)}var bt=new Map;function xt(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${yt(e.locale)}|${JSON.stringify(t)}`,r=bt.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=Ge(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Ge(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Ge(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return bt.set(n,a),a}var St=xt;function Ct(e={}){let{multiple:t=!1,value:n,...r}=e,i=xt(r),a=P.useCallback((e,r,a)=>t?_t(i,a)(e,r):vt(i,a,n)(e,r),[i,n,t]);return P.useMemo(()=>({...i,contains:a}),[a,i])}var wt=Symbol(`none`),Tt={value:wt,index:-1};function Et(e,t,n){let r=e.get(t);if(r!==void 0||n===Ee)return r;for(let[r,i]of e)if(Ne(r,t,n))return i}var I=S();function Dt(e){let{id:t,onOpenChangeComplete:r,defaultSelectedValue:o=null,selectedValue:ee,onSelectedValueChange:d,defaultInputValue:ie,inputValue:f,open:ae,defaultOpen:p=!1,selectionMode:g,onItemHighlighted:v,name:y,form:b,disabled:se=!1,readOnly:S=!1,required:de=!1,inputRef:fe,grid:T=!1,items:E,filteredItems:O,filter:ge,filterQuery:be,openOnInputClick:xe=!0,autoHighlight:Ae=!1,keepHighlight:je=!1,highlightItemOnHover:Fe=!0,loopFocus:Le=!0,itemToStringLabel:ze,itemToStringValue:He,isItemEqualToValue:M=Ee,virtualized:Ke=!1,inline:Ye=!1,fillInputOnItemPress:Xe=!0,modal:Qe=!1,limit:N=-1,autoComplete:nt=`list`,formAutoComplete:rt,locale:it,submitOnItemClick:F=!1}=e,{clearErrors:dt}=$e(),{setDirty:ft,validityData:pt,setFilled:mt,name:gt,disabled:vt,setTouched:yt,setFocused:bt,validationMode:xt,validation:Ct}=et(),Dt=le(),Ot=tt({id:t}),kt=St({locale:it}),L=Array.isArray(E)?null:E;if(L&&typeof L.label!=`function`)throw Error(x(100));let R=L?L.data:E,At=L?.value,jt=At?void 0:R,Mt=P.useMemo(()=>{if(!O||!At)return;let e=Re(O),t=e.map(At),n;return{values:t,findItem(r,i){if(!n){n=new Map;for(let r=0;r<t.length;r+=1)n.has(t[r])||n.set(t[r],e[r])}return Et(n,r,i)}}},[O,At]),Nt=P.useMemo(()=>L?e=>L.label(e,M,e=>{let t=Mt?.findItem(e,M);return t==null?Ge(e,ze):L.itemLabel(t)}):ze,[L,ze,Mt,M]),Pt=P.useMemo(()=>L?Object.assign(e=>L.itemLabel(e),{selected:e=>Ge(e,Nt)}):ze,[L,Nt,ze]);function Ft(e){return Ge(e,Nt)}let[It,Lt]=P.useState(!1),[z,Rt]=P.useState(null),zt=P.useRef(z),Bt=P.useRef([]),Vt=P.useRef([]),Ht=P.useRef(null),B=P.useRef(null),Ut=P.useRef(null),Wt=P.useRef(null),Gt=P.useRef(null),Kt=P.useRef(!0),qt=P.useRef(!1),Jt=P.useRef(null),Yt=P.useRef(null),Xt=P.useRef(null),Zt=P.useRef(Tt),Qt=P.useRef(null),$t=P.useRef([]),en=P.useRef(null),V=vt||se,tn=gt??y,H=g===`multiple`,U=g===`single`,nn=f!==void 0||ie!==void 0,W=R!==void 0,rn=O!==void 0,G;G=Ae===`always`?`always`:Ae?`input-change`:!1;let[K,an]=Je({controlled:ee,default:H?o??k:o,name:`Combobox`,state:`selectedValue`}),on=P.useMemo(()=>ge===null?()=>!0:ge===void 0?_t(kt,Pt):ge,[ge,kt,Pt]),sn=n(()=>nn?ie??``:U?Ft(K):``).current,[q,cn]=Je({controlled:f,default:sn,name:`Combobox`,state:`inputValue`}),[J,ln]=Je({controlled:ae,default:p,name:`Combobox`,state:`open`}),un=Ue(R),Y=!J&&z!==null?z:String(q).trim(),dn=U?Ft(K):``,fn=U&&!It&&Y!==``&&dn.length===Y.length&&kt.contains(dn,Y),pn=fn?``:be??Y,mn=W&&rn&&fn&&(!L||L.hasValue(K,M)),hn=P.useMemo(()=>R?Re(R):k,[R]),gn=P.useMemo(()=>{if(O&&!mn)return O;if(!R)return k;if(un){let e=R,t=[],n=0;for(let r of e){if(N>-1&&n>=N)break;let e=N>-1?N-n:1/0,i=pn===``?r.items.slice(0,e):[];if(pn!==``)for(let t of r.items){if(i.length>=e)break;on(t,pn,Pt)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(pn===``)return N>-1?hn.slice(0,N):hn;let e=[];for(let t of hn){if(N>-1&&e.length>=N)break;on(t,pn,Pt)&&e.push(t)}return e},[O,mn,R,un,pn,N,on,Pt,hn]),X=P.useMemo(()=>{if(Mt&&gn===O)return Mt.values;let e=Re(gn);return At?e.map(e=>At(e)):e},[gn,O,Mt,At]),Z=n(()=>{let e=null;return Ye&&J&&W&&g!==`none`&&(e=Pe(X,K,M,H)),new c({id:Ot,labelId:void 0,selectedValue:K,open:J,items:jt,selectionMode:g,name:tn,form:b,disabled:V,readOnly:S,required:de,grid:T,virtualized:Ke,openOnInputClick:xe,itemToStringLabel:Nt,isItemEqualToValue:M,modal:Qe,autoHighlight:G,submitOnItemClick:F,hasInputValue:nn,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:Ye,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:me,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:g===`none`},{onOpenChangeComplete:D,setOpen:D,setInputValue:D,setSelectedValue:D,setIndices:D,handleSelection:D,forceMount:D,requestSubmit:D,listRef:Bt,labelsRef:Vt,popupRef:Ht,emptyRef:Gt,inputRef:B,startDismissRef:Ut,endDismissRef:Wt,keyboardActiveRef:Kt,chipsContainerRef:Jt,clearRef:Yt,valuesRef:$t,pointerDownItemRef:en,selectionEventRef:Xt},ht)}).current,_n=g===`none`?q:K,vn=P.useMemo(()=>g===`none`?_n:Array.isArray(K)?K.map(e=>Ie(e,He)):Ie(K,He),[_n,He,g,K]),yn=u(v),bn=u(r),xn=Z.useState(`activeIndex`),Sn=Z.useState(`selectedIndex`),Cn=Z.useState(`positionerElement`),wn=Z.useState(`listElement`),Tn=Z.useState(`triggerElement`),En=Z.useState(`inputElement`),Dn=Z.useState(`inputGroupElement`),Q=Z.useState(`inline`),$=Z.useState(`inputInsidePopup`),On=Z.useState(`inputOwnsFormValue`),kn=U&&!$&&q===dn,An=ve(Tn),{mounted:jn,setMounted:Mn,transitionStatus:Nn}=Ce(J),{openMethod:Pn,triggerProps:Fn}=Be(J),In=u(()=>vn);Ze($?An:B,Ot,_n,In,!V,y);let Ln=u(()=>{R?Vt.current=X.map(Ft):Z.set(`forceMounted`,!0)}),Rn=u((e,t,n)=>{if(t===-1){if(Zt.current===Tt)return;Zt.current=Tt}else Zt.current={value:e,index:t};yn(e,_(n,void 0,{index:t}))}),zn=u(e=>{let t={};e.activeIndex!==void 0&&(t.activeIndex=e.activeIndex),e.selectedIndex!==void 0&&(t.selectedIndex=e.selectedIndex),Z.update(t);let n=e.activeIndex;if(n===void 0)return;let r=e.type||`none`;n===null?Rn(void 0,-1,r):Rn($t.current[n],n,r)}),Bn=u((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(qt.current=n.reason===s,n.reason===`input-change`){J&&z!==null&&Rt(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&Lt(!0),Qt.current={hasQuery:e};let n=Z.state.listElement;if(!Z.state.virtualized&&n){let e=Ht.current;for(let t of ne(n.firstElementChild??n)){if(!i(t)||(e?!A(e,t):t.getAttribute(`role`)===`dialog`))break;if(ue(t)){t.scrollTop=0;break}}}e&&G&&Z.state.activeIndex==null&&(J||Q)&&Z.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&Z.state.inputInsidePopup&&(Qt.current={hasQuery:!1,selection:!0});cn(t)}}),Vn=u(e=>{let t=!e&&$&&!Q&&q!==``&&(String(q).trim()===z||q===dn);!e&&(t||q===``||kn)&&Lt(!1),Rt(null),t&&Bn(``,j(s))}),Hn=u((t,n)=>{if(J!==t&&(n.reason===`escape-key`&&W&&X.length===0&&!Gt.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&z!==null&&Vn(n.reason===oe),!t&&It&&(U?(Q||Rt(Y),Y===``&&Lt(!1)):H&&(Q||Rt(Y),$&&zn({activeIndex:null}),(!$||Q)&&Bn(``,j(s,n.event,void 0,{isItemPress:n.reason===re})))),ln(t),!t&&$&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(yt(!0),bt(!1),xt===`onBlur`)))){let e=g===`none`?q:K;Ct.commit(e)}}),Un=u((e,t)=>{d?.(e,t),!t.isCanceled&&(an(e),(g===`none`&&Ht.current&&Xe||U&&!Z.state.inputInsidePopup)&&Bn(Ft(e),j(t.reason,t.event)))}),Wn=u((e,t)=>{let n=_e(e),r=Xt.current??e;Xt.current=null;let i=j(re,r),a=n?.closest(`a`)?.getAttribute(`href`);if(a){a.startsWith(`#`)&&Hn(!1,i);return}if(H){let e=Array.isArray(K)?K:[],n=Ve(e,t,M),r=n?De(e,t,M):[...e,t];if(Un(r,i),i.isCanceled||!(B.current&&B.current.value.trim()!==``))return;if(Z.state.inputInsidePopup){Bn(``,j(s,i.event,void 0,{isItemPress:!0}));let e=Qt.current;e&&!n&&(e.toggledValue=t)}else Hn(!1,i)}else{if(Un(t,i),i.isCanceled)return;Hn(!1,i)}}),Gn=u(()=>{let e=Ct.inputRef.current?.form??Z.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Kn=u(()=>{if(Mn(!1),bn?.(!1),Lt(!1),Rt(null),zn(g===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),H&&B.current&&B.current.value!==``&&!qt.current&&Bn(``,j(s)),U){if(Z.state.inputInsidePopup)B.current&&B.current.value!==``&&Bn(``,j(s));else{let e=Ft(K);B.current&&B.current.value!==e&&Bn(e,j(e===``?s:a))}}}),qn=P.useMemo(()=>Q&&Cn?{current:Cn.closest(`[role="dialog"]`)}:Ht,[Q,Cn]);he({enabled:!e.actionsRef,open:J,ref:qn,onComplete(){J||Kn()}}),P.useImperativeHandle(e.actionsRef,()=>({unmount:Kn}),[Kn]),m(function(){let e=zt.current!==null&&z===null;if(zt.current=z,J&&(!e||!W)||(J||(en.current=null),g===`none`))return;let t=W?X:$t.current;zn({selectedIndex:Pe(t,K,M,H)})},[J,z,K,g,H,W,X,M,zn]),m(()=>{R&&($t.current=X,Bt.current.length=X.length)},[R,X]),m(()=>{let e=Qt.current;if(e){let t=J||Q||Z.state.positionerElement?.hidden===!1;if(e.hasQuery)G&&t&&Z.set(`activeIndex`,0),Qt.current=null;else if(String(q).trim()===``&&(Qt.current=null,t)){let t=e.selection;G===`always`&&!t&&Z.state.selectionMode===`none`&&Z.set(`activeIndex`,0),queueMicrotask(()=>{if(!Z.state.open&&!Z.state.inline||B.current&&B.current.value.trim()!==``)return;let n=Z.state.selectedValue,r=Z.state.selectionMode===`multiple`;if(r&&Array.isArray(n)?n.length>0:Z.state.selectionMode!==`none`&&n!=null){let t=W||rn?X:$t.current,i=We(t,e.toggledValue,Z.state.isItemEqualToValue);Z.set(`activeIndex`,i===-1?Pe(t,n,Z.state.isItemEqualToValue,r):i)}else t?Z.set(`activeIndex`,null):G===`always`&&Z.set(`activeIndex`,0)})}}if(!J&&!Q)return;let t=W||rn?X:$t.current,n=Z.state.activeIndex;if(n==null){if(G===`always`&&t.length>0){Z.set(`activeIndex`,0);return}Rn(void 0,-1,a);return}if(n>=t.length){Rn(void 0,-1,a),Z.set(`activeIndex`,null);return}let r=t[n],i=Zt.current.value,o=i!==wt&&Ne(r,i,Z.state.isItemEqualToValue);(Zt.current.index!==n||!o)&&Rn(r,n,a)},[xn,G,Rn,rn,W,X,Q,J,Z,q]),m(()=>{if(g===`none`){mt(String(q)!==``);return}mt(H?Array.isArray(K)&&K.length>0:K!=null)},[mt,g,q,K,H]),P.useEffect(()=>{W&&G&&X.length===0&&zn({activeIndex:null})},[W,G,X.length,zn]);function Jn(){J&&Y!==``&&Y!==String(sn)&&!kn&&Lt(!0)}function Yn(){J&&z!==null&&Vn(!1)}let Xn=!1;function Zn(){!Xn&&q!==dn&&(Xn=!0,Bn(dn,j(a)))}function Qn(){g!==`none`&&(dt(tn),ft(Oe(K,pt.initialValue,M)),Ct.change(K),U&&!nn&&!$&&Zn())}function $n(){U&&!nn&&!$&&!It&&Zn()}function er(){g===`none`&&(dt(tn),ft(q!==pt.initialValue),Ct.change(q))}qe(Y,Jn),qe(J,Yn),qe(K,Qn),qe(dn,$n),qe(R,$n),qe(q,er);let tr=pe({open:Q?!0:J,onOpenChange:Hn,elements:{reference:$?Tn:En,floating:Cn}}),nr=T?`grid`:`listbox`,rr=J||Q,ir=rr?`true`:`false`,ar=P.useMemo(()=>{let e=En?.tagName===`INPUT`,t=En==null||e,n=t||rr,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=ir,r[`aria-haspopup`]=nr,r[`aria-controls`]=rr?wn?.id:void 0,r[`aria-autocomplete`]=S?`none`:nt),{reference:r,floating:{role:`presentation`}}},[En,rr,ir,nr,wn?.id,nt,S]),or=ke(tr,{enabled:!V&&xe,event:`mousedown-only`,toggle:!1,touchOpenDelay:$?0:100,reason:l}),sr=Se(tr,{enabled:!V&&!Q,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:Q?!0:void 0,outsidePress(e){let t=_e(e);return!A(Tn,t)&&!A(Yt.current,t)&&!A(Jt.current,t)&&!A(Dn,t)}}),cr=Me(tr,{enabled:!V,id:Ot,listRef:Bt,activeIndex:xn,selectedIndex:Sn,virtual:!0,loopFocus:Le,allowEscape:Le&&!G,focusItemOnOpen:It||g===`none`&&!G?!1:`auto`,focusItemOnHover:Fe,resetOnPointerLeave:!je,orientation:T?`horizontal`:void 0,rtl:Dt===`rtl`,disabledIndices:k,grid:T?at:void 0,onNavigate(e,t){(t||J)&&Nn!==`ending`&&zn(t?{activeIndex:e,type:Kt.current?h:te}:{activeIndex:e})}}),lr=P.useMemo(()=>w(cr.reference,{onKeyDown(e){T&&Z.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},sr.reference,or.reference,ar.reference),[cr.reference,sr.reference,or.reference,ar.reference,T,Z]),ur=P.useMemo(()=>w(we,sr.floating),[sr.floating]),dr=P.useMemo(()=>w(cr.floating,ar.floating),[cr.floating,ar.floating]),fr=P.useMemo(()=>{let e=cr.item;return e?{...e,onFocus:void 0}:me},[cr.item]);Z.useContextCallback(`setOpen`,Hn),Z.useContextCallback(`setInputValue`,Bn),Z.useContextCallback(`setSelectedValue`,Un),Z.useContextCallback(`setIndices`,zn),Z.useContextCallback(`handleSelection`,Wn),Z.useContextCallback(`forceMount`,Ln),Z.useContextCallback(`requestSubmit`,Gn),Z.useContextCallback(`onOpenChangeComplete`,r),Te(()=>{Z.update({inline:Ye,popupProps:ur,listProps:dr,inputProps:lr,triggerProps:Fn,itemProps:fr})});let pr={id:Ot,selectedValue:K,open:J,mounted:jn,transitionStatus:Nn,items:jt,inline:Ye,popupProps:ur,listProps:dr,inputProps:lr,triggerProps:Fn,itemProps:fr,openMethod:Pn,selectionMode:g,name:tn,form:b,disabled:V,readOnly:S,required:de,grid:T,virtualized:Ke,openOnInputClick:xe,itemToStringLabel:Nt,modal:Qe,autoHighlight:G,isItemEqualToValue:M,submitOnItemClick:F,hasInputValue:nn};m(()=>{Z.update({...pr,inputOwnsFormValue:g===`none`&&(Ye||!Z.state.inputInsidePopup)})},[Z,...Object.values(pr)]);let mr=ce(fe,Ct.inputRef),hr=P.useMemo(()=>({query:Y,hasItems:W,filteredItems:gn,flatFilteredValues:X}),[Y,W,gn,X]),gr=P.useMemo(()=>Array.isArray(_n)?``:Ie(_n,He),[_n,He]),_r=H&&Array.isArray(K)&&K.length>0,vr=H||g===`none`&&On?void 0:tn,yr=P.useMemo(()=>!H||!Array.isArray(K)||!tn?null:K.map(e=>{let t=Ie(e,He);return(0,I.jsx)(`input`,{type:`hidden`,form:b,name:tn,value:t,disabled:V},t)}),[H,K,b,tn,He,V]),br=(0,I.jsxs)(P.Fragment,{children:[e.children,(0,I.jsx)(`input`,{...Ct.getValidationProps(V,{onFocus(){if($){Tn?.focus();return}(B.current||Tn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||V||S)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=j(a,e.nativeEvent),i=()=>$t.current.findIndex(e=>Ie(e,He).toLowerCase()===n||Ft(e).toLowerCase()===n);function o(){if(H)return;if(g===`none`){Bn(t,r);return}let e=i();e===-1&&(e=$t.current.findIndex((e,t)=>{let r=Vt.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:$t.current[e];a!=null&&Un?.(a,r)}U&&(Ln(),R&&i()===-1&&Z.set(`forceMounted`,!0)),queueMicrotask(o)}}),id:Ot&&vr==null?`${Ot}-hidden-input`:void 0,form:b,name:vr,autoComplete:rt,disabled:V,required:de&&!_r,readOnly:S,value:gr,ref:mr,style:vr?C:ye,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),yr]});return(0,I.jsx)(ot.Provider,{value:Z,children:(0,I.jsx)(st.Provider,{value:tr,children:(0,I.jsx)(lt.Provider,{value:W,children:(0,I.jsx)(ct.Provider,{value:hr,children:(0,I.jsx)(ut.Provider,{value:q,children:br})})})})})}var Ot=`data-popup-side`,kt=`data-list-empty`,L={...O,...nt,popupSide:e=>e?{[Ot]:e}:null,listEmpty:e=>e?{[kt]:``}:null};function R(e){let t=e.useState(`mounted`),n=e.useState(`popupSide`),r=e.useState(`positionerElement`);return t&&r?n:null}function At(){return ft().filteredItems.length===0}function jt(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Mt(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0}function Nt(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}var Pt=P.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:o=!1,id:s,style:c,...te}=e,{state:ne,disabled:l,setTouched:re,setFocused:ie,validationMode:ae,validation:oe}=et(),{labelId:p}=Qe(),m=F(),h=m.useState(`selectionMode`),g=m.useState(`disabled`),_=m.useState(`readOnly`),y=m.useState(`required`),b=m.useState(`positionerElement`),x=m.useState(`listElement`),S=m.useState(`popupId`),ce=m.useState(`triggerProps`),C=m.useState(`inputInsidePopup`),le=m.useState(`id`),w=m.useState(`labelId`),ue=m.useState(`open`),de=m.useState(`selectedValue`),fe=m.useState(`activeIndex`),pe=m.useState(`selectedIndex`),E=m.useState(`hasSelectedValue`),me=dt(),D=pt(),O=f(),k=l||g||o,he=At(),ge=R(m);tt({id:C?s:void 0});let ve=C?s??le:s,ye=He(p,w),xe;ue&&C?xe=S??gt(le):ue&&(xe=x?.id);let Se=P.useRef(``);function Ce(e){Se.current=e.pointerType}let{reference:we}=Ae(me,{enabled:!ue&&!_&&!g&&h===`single`,listRef:m.context.labelsRef,activeIndex:fe,selectedIndex:pe,onMatch(e){let t=m.context.valuesRef.current[e];t!==void 0&&m.context.setSelectedValue(t,j(a))}}),{reference:Te}=ke(me,{enabled:!g,event:`mousedown`}),{buttonRef:Ee,getButtonProps:De}=se({native:i,disabled:k}),Oe={...ne,readOnly:_,open:ue,disabled:k,popupSide:ge,listEmpty:he,placeholder:h!==`none`&&!E},je=u(e=>{m.set(`triggerElement`,e)});return T(`button`,e,{ref:[t,Ee,je],state:Oe,props:[ce,Te,we,{id:ve,tabIndex:C?0:-1,role:C?`combobox`:void 0,"aria-expanded":ue,"aria-haspopup":C?`dialog`:`listbox`,"aria-controls":xe,"aria-required":C&&y||void 0,"aria-readonly":C&&_||void 0,"aria-labelledby":ye,onPointerDown:Ce,onPointerEnter:Ce,onFocus(){ie(!0),!k&&O.start(0,m.context.forceMount)},onBlur(e){if(!A(b,e.relatedTarget)&&(re(!0),ie(!1),ae===`onBlur`)){let e=h===`none`?D:de;oe.commit(e)}},onMouseDown(e){if(k||(C||me.set(`domReferenceElement`,e.currentTarget),m.context.forceMount(),Se.current!==`touch`&&(m.context.inputRef.current?.focus(),C||e.preventDefault()),ue))return;let t=d(e.currentTarget);function n(e){let t=m.state.triggerElement;if(!t)return;let n=_e(e),r=m.state.positionerElement,i=m.state.listElement;A(t,n)||A(r,n)||A(i,n)||ze(e,t)||m.context.setOpen(!1,j(ee,e))}C&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(v(e),m.context.setOpen(!0,j(be,e.nativeEvent)),m.context.inputRef.current?.focus())}},oe.getValidationProps(k,te),De],stateAttributesMapping:L})}),Ft=P.createContext(void 0);function It(){return P.useContext(Ft)}var Lt=P.createContext(void 0);function z(e){let t=P.useContext(Lt);if(t===void 0&&!e)throw Error(x(21));return t}var Rt=P.forwardRef(function(e,t){let n=F(),{buttonRef:r,getButtonProps:i}=se({native:!1}),a=ce(t,r);function o(e){n.context.setOpen(!1,j(ae,e.nativeEvent,e.currentTarget))}let ee=i({onClick:o});return(0,I.jsx)(`span`,{ref:a,...ee,"aria-label":`Dismiss`,tabIndex:void 0,style:C})}),zt=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:o,style:ee,...c}=e,{state:ne,disabled:l,setTouched:re,setFocused:d,validationMode:ie,validation:f}=et(),{labelId:ae}=Qe(),p=It(),m=!!z(!0),_=F(),y=pt(),b=le(),se=_.useState(`required`),x=_.useState(`disabled`),S=_.useState(`readOnly`),ce=_.useState(`name`),C=_.useState(`form`),w=_.useState(`selectionMode`),ue=_.useState(`autoHighlight`),fe=_.useState(`inputProps`),pe=_.useState(`triggerProps`),E=_.useState(`open`),me=_.useState(`mounted`),D=_.useState(`selectedValue`),O=_.useState(`id`),k=_.useState(`inline`),he=_.useState(`modal`),A=!!ue,_e=R(_),ve=l||x||i,ye=At(),be=m||k,xe=!be||he,Se=Ke(o??(be?void 0:O)),Ce=m?Xe:ne,[we,Te]=P.useState(null),Ee=P.useRef(!1),De=P.useRef(null),Oe=P.useRef(!1),ke=w===`none`&&!m,Ae=u(e=>{let t=m||_.state.inline;t&&!_.state.hasInputValue&&_.context.setInputValue(``,j(a)),_.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ke})}),je=m?c:f.getValidationProps(ve,c);function Me(){_.context.setIndices({activeIndex:null,selectedIndex:null,type:_.context.keyboardActiveRef.current?h:te})}function Ne(){_.context.keyboardActiveRef.current=!1}let Pe={...Ce,open:E,disabled:ve,readOnly:S,popupSide:_e,listEmpty:ye};function Fe(e){if(!p)return;let t,{highlightedChipIndex:n}=p,r=p.chipsRef.current.length,[i,a]=jt(b);return n===void 0?(e.key===i&&(e.currentTarget.selectionStart??0)===0&&D.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t):(e.key===i?(e.preventDefault(),t=n>0?n-1:void 0):e.key===a?(e.preventDefault(),t=n<r-1?n+1:void 0):(e.key===`Backspace`||e.key===`Delete`)&&(e.preventDefault(),t=Mt(n,D.length),Me()),t)}let Ie=T(`input`,e,{state:Pe,ref:[t,_.context.inputRef,Ae],props:[fe,pe,{value:we??y,"aria-readonly":S||void 0,"aria-required":se||void 0,"aria-labelledby":ae,disabled:ve,readOnly:S,required:w===`none`?se:void 0,form:C,...ke&&ce&&{name:ce},id:Se,onFocus(){if(d(!0),!k||!Oe.current)return;Oe.current=!1;let e=De.current;e!=null&&Object.hasOwn(_.context.valuesRef.current,e)&&_.context.setIndices({activeIndex:e})},onBlur(){re(!0),d(!1);let e=_.state.activeIndex;if(k&&e!==null&&ue!==`always`&&(De.current=e,Oe.current=!0,_.context.setIndices({activeIndex:null})),ie===`onBlur`){let e=w===`none`?y:D;f.commit(e)}},onCompositionStart(e){ge||(Ee.current=!0,Te(e.currentTarget.value))},onCompositionEnd(e){Ee.current=!1;let t=e.currentTarget.value;Te(null),_.context.setInputValue(t,j(oe,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=Ee.current||!r;function a(e){!S&&!ve&&e&&i&&(_.context.setOpen(!0,j(oe,t)),A||Me())}if(Ee.current){let n=e.currentTarget.value;Te(n),n===``&&!_.state.openOnInputClick&&!_.state.inputInsidePopup&&_.context.setOpen(!1,j(s,t));let r=n.trim(),i=A&&r!==``;a(r),E&&_.state.activeIndex!==null&&!i&&Me();return}let o=j(oe,t);if(_.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let ee=e.currentTarget.value===``,c=j(s,t);ee&&!_.state.inputInsidePopup&&(w===`single`&&_.context.setSelectedValue(null,c),_.state.openOnInputClick||_.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),E&&_.state.activeIndex!==null&&!A&&Me()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(_.context.keyboardActiveRef.current=!0,ve||S){S&&e.key===`Enter`&&E&&_.state.activeIndex!==null&&v(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){v(e);let n=g&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){v(e);let i=g&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!me&&e.key===`Escape`){let t=w===`multiple`&&Array.isArray(D)?D.length===0:D===null,n=j(de,e.nativeEvent),r=w===`multiple`?[]:null;_.context.setInputValue(``,n),_.context.setSelectedValue(r,n),!t&&!_.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(p&&e.key===`Backspace`&&t.value===``&&p.highlightedChipIndex===void 0&&Array.isArray(D)&&D.length>0){let t=p.chipsRef.current.length,n=t>0?t-1:D.length-1,r=D.filter((e,t)=>t!==n);Me(),_.context.setSelectedValue(r,j(a,e.nativeEvent));return}let i=p?.highlightedChipIndex!==void 0,o=Fe(e);if(p?.setHighlightedChipIndex(o),o===void 0?i&&_.context.inputRef.current?.focus():p?.chipsRef.current[o]?.focus(),e.which!==229&&e.key===`Enter`&&E){let t=_.state.activeIndex,n=e.nativeEvent;if(t===null){if(k)return;_.context.setOpen(!1,j(a,n));return}v(e),Nt(_,t,n)}},onPointerMove:Ne,onPointerDown:Ne},je],stateAttributesMapping:L}),Le=m?(0,I.jsx)(N.Provider,{value:Ye,children:Ie}):Ie;return(0,I.jsxs)(P.Fragment,{children:[E&&xe&&(0,I.jsx)(Rt,{ref:_.context.startDismissRef}),Le]})}),Bt=P.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return T(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:`▼`},a]})}),Vt={...fe,...E},Ht=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:ee=!1,style:s,...c}=e,{disabled:ne}=et(),l=F(),u=l.useState(`selectionMode`),re=l.useState(`disabled`),d=l.useState(`readOnly`),ie=l.useState(`open`),f=l.useState(`selectedValue`),ae=l.useState(`hasSelectionChips`),oe=pt(),p=!1;p=u===`none`?oe!==``:u===`single`?f!=null:ae;let m=ne||re||i,{buttonRef:g,getButtonProps:_}=se({native:a,disabled:m}),{mounted:v,transitionStatus:y,setMounted:b}=Ce(p),x={disabled:m,visible:p,open:ie,transitionStatus:y};he({open:p,ref:l.context.clearRef,onComplete(){p||b(!1)}});let S=T(`button`,e,{state:x,ref:[t,g,l.context.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(m||d)return;let t=l.context.keyboardActiveRef.current?h:te;l.context.setInputValue(``,j(o,e.nativeEvent)),u===`none`?l.context.setIndices({activeIndex:null,type:t}):(l.context.setSelectedValue(Array.isArray(f)?[]:null,j(o,e.nativeEvent)),l.context.setIndices({activeIndex:null,selectedIndex:null,type:t})),l.context.inputRef.current?.focus()}},c,_],stateAttributesMapping:Vt});return ee||v?S:null}),B=P.createContext(null);function Ut(){return P.useContext(B)}function Wt(e){let{children:t,items:n}=e,r=P.useMemo(()=>({items:n}),[n]);return(0,I.jsx)(B.Provider,{value:r,children:t})}function Gt(e){let{children:t}=e,{filteredItems:n}=ft(),r=Ut(),i=r?r.items:n;return(0,I.jsx)(P.Fragment,{children:i.map(t)})}var Kt=P.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...ee}=e,s=F(),c=dt(),te=!!z(!0),{filteredItems:ne,hasItems:l}=ft(),re=s.useState(`selectionMode`),d=s.useState(`grid`),ie=s.useState(`readOnly`),f=s.useState(`listProps`),ae=s.useState(`virtualized`),oe=s.useState(`forceMounted`),p=re===`multiple`,m=ne.length===0,h=u(e=>{s.set(`positionerElement`,e)}),g=u(e=>{s.set(`listElement`,e)}),_=P.useMemo(()=>typeof o==`function`?n||=(0,I.jsx)(Gt,{children:o}):o,[o]),y={empty:m},b=c.useState(`floatingId`),se=T(`div`,e,{state:y,ref:[t,g,te?null:h],props:[f,{children:_,tabIndex:-1,id:b,role:d?`grid`:`listbox`,"aria-multiselectable":p?`true`:void 0,"aria-readonly":!d&&ie?!0:void 0,onKeyDown(e){if(!(s.state.disabled||s.state.readOnly)&&e.key===`Enter`){let t=s.state.activeIndex;if(t==null)return;v(e),Nt(s,t,e.nativeEvent)}},onKeyDownCapture(){s.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){s.context.keyboardActiveRef.current=!1}},ee]});if(ae)return se;let x=l&&!oe?void 0:s.context.labelsRef;return(0,I.jsx)(M,{elementsRef:s.context.listRef,labelsRef:x,children:se})}),qt=e(b(),1),Jt=P.createContext(void 0);function Yt(){let e=P.useContext(Jt);if(!e)throw Error(x(19));return e}var Xt=P.createContext(!1);function Zt(){return P.useContext(Xt)}function Qt(e){let{componentProps:t,forwardedRef:n,virtualized:r,indexFromFilter:i}=e,{render:a,className:o,style:ee,value:s=null,index:c,disabled:te=!1,nativeButton:ne=!1,...l}=t,u=P.useRef(null),re=Le({guess:!0,index:c,textRef:u}),d=F(),ie=Zt(),f=mt(),ae=d.useState(`selectionMode`),oe=d.useState(`disabled`),p=d.useState(`readOnly`),h=d.useState(`isItemEqualToValue`),g=oe||te,_=ae!==`none`,v=c??i??re.index,y=v!==-1,b=d.useState(`id`),x=d.useState(`isActive`,v),S=d.useState(`isSelected`,s),ce=d.useState(`itemProps`),C=P.useRef(null),le=b!=null&&y?`${b}-${v}`:void 0,w=S&&_;m(()=>{if(!y||!r&&c==null)return;let e=d.context.listRef.current;return e[v]=C.current,()=>{delete e[v]}},[y,r,v,c,d]),m(()=>{if(!y||f)return;let e=d.context.valuesRef.current;return e[v]=s,()=>{delete e[v]}},[y,f,v,s,d]),m(()=>{if(!y||f)return;let e=d.state.selectedValue,t=d.state.selectedIndex;d.state.selectionMode===`multiple`&&Array.isArray(e)?t=je(v,s,d.context.valuesRef.current,e,h,t):Ne(s,e,h)&&(t=v),d.set(`selectedIndex`,t)},[y,f,d,v,s,h]);let{getButtonProps:ue,buttonRef:de}=se({disabled:g,focusableWhenDisabled:!0,native:ne,composite:!0}),fe={disabled:g,selected:w,highlighted:x};function pe(e){function t(){d.context.handleSelection(e,s)}d.state.submitOnItemClick?(qt.flushSync(t),d.context.requestSubmit()):t()}let E={id:le,role:ie?`gridcell`:`option`,"aria-selected":_?w:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(d.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){g||p||pe(e.nativeEvent)},onMouseUp(e){let t=d.context.pointerDownItemRef.current===e.currentTarget;d.context.pointerDownItemRef.current=null,!(g||p||e.button!==0||t||!x)&&pe(e.nativeEvent)}},me=T(`div`,t,{ref:[de,n,re.ref,C],state:fe,props:[ce,E,l,ue]}),D=P.useMemo(()=>({selected:w,textRef:u}),[w,u]);return(0,I.jsx)(Jt.Provider,{value:D,children:me})}function $t(e){let{componentProps:t,forwardedRef:n}=e,r=F().useState(`isItemEqualToValue`),{flatFilteredValues:i}=ft(),a=t.value??null,o=We(i,a,r);return(0,I.jsx)(Qt,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:o})}var en=P.memo(P.forwardRef(function(e,t){let n=F().useState(`virtualized`);return n&&e.index==null?(0,I.jsx)($t,{componentProps:e,forwardedRef:t}):(0,I.jsx)(Qt,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})})),V=xe();function tn(e){let t=(0,V.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=y(`pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded bg-muted px-1 font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(`kbd`,{className:i,"data-slot":`kbd`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function H(e){let t=(0,V.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=y(`inline-flex items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(`kbd`,{className:i,"data-slot":`kbd-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{it as C,F as S,Ct as _,Kt as a,ft as b,Ht as c,Rt as d,Lt as f,Dt as g,At as h,Yt as i,Bt as l,Pt as m,H as n,Gt as o,z as p,en as r,Wt as s,tn as t,zt as u,St as v,dt as x,gt as y};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};t.node;var n=e(t),r={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};r.node;var i=e(r);export{n,i as t};
@@ -0,0 +1 @@
1
+ import{Na as e}from"./runtime-Bxg7k81u.js";var t={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import"./authorization-K_UCP_xh.js";var e=!1;function t(){if(e||typeof console>`u`)return;e=!0;let t=[`debug`,`error`,`info`,`log`,`warn`],n=console;Object.fromEntries(t.map(e=>[e,n[e]]));for(let e of t)n[e]=()=>void 0}export{t as installHostedConsoleBoundary};
1
+ import"./authorization-7xVVtCBu.js";var e=!1;function t(){if(e||typeof console>`u`)return;e=!0;let t=[`debug`,`error`,`info`,`log`,`warn`],n=console;Object.fromEntries(t.map(e=>[e,n[e]]));for(let e of t)n[e]=()=>void 0}export{t as installHostedConsoleBoundary};