@qredence/fleet 0.6.3 → 0.6.5

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 (314) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/web/client/assets/{DialogTitle-DiAm7YNe.js → DialogTitle-BwQ9k-MZ.js} +1 -1
  3. package/dist/web/client/assets/agent-disclosure-YgLa4c2y.js +1 -0
  4. package/dist/web/client/assets/{alert-dialog-CYE37KMM.js → alert-dialog-BfK7648p.js} +1 -1
  5. package/dist/web/client/assets/analytics-stub-BY-GADyA.js +1 -0
  6. package/dist/web/client/assets/arrow-up-DCwrqIrK.js +1 -0
  7. package/dist/web/client/assets/artifacts-panel-DDlPULVv.js +1 -0
  8. package/dist/web/client/assets/bot-DETalD3q.js +1 -0
  9. package/dist/web/client/assets/{button-Dl0ce3Y5.js → button-BrwYi6QP.js} +1 -1
  10. package/dist/web/client/assets/{card-DCEnYd2G.js → card-BScRdZNS.js} +1 -1
  11. package/dist/web/client/assets/chat-command-palette-AjGusIEp.js +1 -0
  12. package/dist/web/client/assets/chat-helpers-Bj7_hES7.js +1 -0
  13. package/dist/web/client/assets/check-BTwIaCtI.js +1 -0
  14. package/dist/web/client/assets/chevron-down-Bse1ggZM.js +1 -0
  15. package/dist/web/client/assets/chevron-right-BPCB1mOg.js +1 -0
  16. package/dist/web/client/assets/chunk-YOKDWASO-C8deEx7Z.js +143 -0
  17. package/dist/web/client/assets/circle-check-DBhaebaM.js +1 -0
  18. package/dist/web/client/assets/citations-DOkXsdCi.js +1 -0
  19. package/dist/web/client/assets/clsx-DB0hHKMi.js +1 -0
  20. package/dist/web/client/assets/{collapsible-CUxOjhDJ.js → collapsible-DsbKpD_Y.js} +1 -1
  21. package/dist/web/client/assets/{command-Cw4X8Bpk.js → command-DSxdh_1v.js} +1 -1
  22. package/dist/web/client/assets/composer-intent-C5pz72T6.js +62 -0
  23. package/dist/web/client/assets/create-project-dialog-zTSeGUup.js +1 -0
  24. package/dist/web/client/assets/{createBaseUIEventDetails-B58Jldei.js → createBaseUIEventDetails-DklXWq23.js} +1 -1
  25. package/dist/web/client/assets/createLucideIcon-CQY2ECfR.js +1 -0
  26. package/dist/web/client/assets/{dialog-BzcIOvFC.js → dialog-B9nXTto4.js} +1 -1
  27. package/dist/web/client/assets/{dist-DbHxXSgQ.js → dist-BJJVCio8.js} +1 -1
  28. package/dist/web/client/assets/dist-BogNzeK9.js +1 -0
  29. package/dist/web/client/assets/{ease-CMumuPlX.js → ease-2UPBQU5v.js} +1 -1
  30. package/dist/web/client/assets/eye-iNSvs0UA.js +1 -0
  31. package/dist/web/client/assets/file-text-cqOanUYv.js +1 -0
  32. package/dist/web/client/assets/folder-COBtkKZa.js +1 -0
  33. package/dist/web/client/assets/{fork-picker-dialog-BYRr-xTy.js → fork-picker-dialog-DEdHU89A.js} +1 -1
  34. package/dist/web/client/assets/gauge-0Nn96wfZ.js +1 -0
  35. package/dist/web/client/assets/git-branch-DZEh2mM2.js +1 -0
  36. package/dist/web/client/assets/globals-BiAbxPQ2.css +2 -0
  37. package/dist/web/client/assets/hard-drive-B3opVeEB.js +1 -0
  38. package/dist/web/client/assets/{highlighted-body-KPVGNVTW-CgT7gqvs.js → highlighted-body-KPVGNVTW-CZcNaoxi.js} +1 -1
  39. package/dist/web/client/assets/horizontal-resize-5AxYvGLA.js +1 -0
  40. package/dist/web/client/assets/index-NhnAdIsR.js +12 -0
  41. package/dist/web/client/assets/{input-CxZp56Im.js → input-BceH49B1.js} +1 -1
  42. package/dist/web/client/assets/{input-group-D7lAfKHR.js → input-group-DThl_vkS.js} +1 -1
  43. package/dist/web/client/assets/ipython-tool-CuSGRhXl.js +3 -0
  44. package/dist/web/client/assets/is-ref-object-CEXqIz6L.js +1 -0
  45. package/dist/web/client/assets/loader-circle-BmKYM_C4.js +1 -0
  46. package/dist/web/client/assets/markdown-C-Y9gskI.js +2 -0
  47. package/dist/web/client/assets/{markdown-code-CDTRq-HZ.js → markdown-code-BqFVdovL.js} +1 -1
  48. package/dist/web/client/assets/mermaid-HWGCJPDP-CVNXPao6.js +1 -0
  49. package/dist/web/client/assets/{message-queue-Dl8wbCOu.js → message-queue-BoNn57Po.js} +1 -1
  50. package/dist/web/client/assets/{model-selector-list-CHD8lMAl.js → model-selector-list-DDsuJCgB.js} +1 -1
  51. package/dist/web/client/assets/{notify-DjVixft7.js → notify-GSsGEKtR.js} +1 -1
  52. package/dist/web/client/assets/{openui-renderer-C4e9FOVR.js → openui-renderer-l1qI5JDt.js} +41 -41
  53. package/dist/web/client/assets/package-BkC-HSi-.js +1 -0
  54. package/dist/web/client/assets/pencil-Cbgq3ybX.js +1 -0
  55. package/dist/web/client/assets/plug-wCz-036u.js +1 -0
  56. package/dist/web/client/assets/prompt-input-BhVQxoyh.js +1 -0
  57. package/dist/web/client/assets/{prompt-suggestions-BNyTcyWg.js → prompt-suggestions-BRFWFm5y.js} +1 -1
  58. package/dist/web/client/assets/provider-catalog-L0c-bZv6.js +1 -0
  59. package/dist/web/client/assets/provider-label-Buq3HZrP.js +1 -0
  60. package/dist/web/client/assets/react-Cvdyeg_0.js +1 -0
  61. package/dist/web/client/assets/react-dom-B7th3XGm.js +1 -0
  62. package/dist/web/client/assets/refresh-cw-CqPE3kNY.js +1 -0
  63. package/dist/web/client/assets/{repl-panel-L9dmPqio.js → repl-panel-UQN9UFG7.js} +1 -1
  64. package/dist/web/client/assets/resource-helpers-CKbSmzpw.js +2 -0
  65. package/dist/web/client/assets/{resources-panel-mT-aMCvV.js → resources-panel-kp_UjnpX.js} +1 -1
  66. package/dist/web/client/assets/right-panel-context-DHKWoetk.js +1 -0
  67. package/dist/web/client/assets/right-panel-registry-gwgnEeUz.js +2 -0
  68. package/dist/web/client/assets/rotate-ccw-DLkfsmG9.js +1 -0
  69. package/dist/web/client/assets/routes-umGEy_Ak.js +16 -0
  70. package/dist/web/client/assets/safe-external-url-BnEhm9A0.js +1 -0
  71. package/dist/web/client/assets/search-Cb6fFWew.js +1 -0
  72. package/dist/web/client/assets/{session-reasoning-panel-8D2P7iaJ.js → session-reasoning-panel-BAtKTsjn.js} +1 -1
  73. package/dist/web/client/assets/session-tool-renderer-pGdW2MnV.js +1389 -0
  74. package/dist/web/client/assets/{session-tree-panel-CM4_wwrM.js → session-tree-panel-DF3kuF0P.js} +1 -1
  75. package/dist/web/client/assets/settings-dialog-C8YN5D1V.js +2 -0
  76. package/dist/web/client/assets/{skeleton-C3mo31Qu.js → skeleton-D5Y9nBfp.js} +1 -1
  77. package/dist/web/client/assets/{skeleton-loaders-BMa_G4yX.js → skeleton-loaders-DOKGa7CW.js} +1 -1
  78. package/dist/web/client/assets/sparkles-C4VQyMox.js +1 -0
  79. package/dist/web/client/assets/spinner-C3sPnLdu.js +1 -0
  80. package/dist/web/client/assets/square-BbTF3gLc.js +1 -0
  81. package/dist/web/client/assets/square-terminal-BLq2bQVF.js +1 -0
  82. package/dist/web/client/assets/{subagent-chat-panel-BESrXxAR.js → subagent-chat-panel-BIsmzS45.js} +1 -1
  83. package/dist/web/client/assets/subagent-transcript-CEUBL9sF.js +1 -0
  84. package/dist/web/client/assets/{subagents-panel-8aKOwWLs.js → subagents-panel-CFxWpUT0.js} +1 -1
  85. package/dist/web/client/assets/sun-C7zg8Oas.js +1 -0
  86. package/dist/web/client/assets/{surfaces-CpfsGAIA.js → surfaces-BULKVm-B.js} +1 -1
  87. package/dist/web/client/assets/switch-CoSNSJEY.js +1 -0
  88. package/dist/web/client/assets/terminal-Ceucj7us.js +1 -0
  89. package/dist/web/client/assets/toast-CS0pnDlS.js +1 -0
  90. package/dist/web/client/assets/tokens-CtP2s1Y3.js +1 -0
  91. package/dist/web/client/assets/tool-result-C-vs_tjQ.js +4 -0
  92. package/dist/web/client/assets/tool-timeline-B4ci1oJg.js +1 -0
  93. package/dist/web/client/assets/triangle-alert-BuzmrrqI.js +1 -0
  94. package/dist/web/client/assets/types-D5hZ8IyV.js +1 -0
  95. package/dist/web/client/assets/{ui-preferences-aG2U2jjW.js → ui-preferences-1YaENqef.js} +1 -1
  96. package/dist/web/client/assets/{use-presence-7I2qv4qI.js → use-presence-D2YmRKr3.js} +1 -1
  97. package/dist/web/client/assets/{use-reduced-motion-BOcG709U.js → use-reduced-motion-CaQBb3Qc.js} +2 -2
  98. package/dist/web/client/assets/{useBaseUiId-D9ZGPZ6f.js → useBaseUiId-BlzQUkVG.js} +1 -1
  99. package/dist/web/client/assets/{useControlled-CgAAWIy9.js → useControlled-CkQSkSv1.js} +1 -1
  100. package/dist/web/client/assets/utils-Dpy9ZFOr.js +1 -0
  101. package/dist/web/client/assets/virtualized-turn-list-DkJIWXFJ.js +6 -0
  102. package/dist/web/client/assets/workspace-panel-CjKMroC6.js +1 -0
  103. package/dist/web/client/assets/{workspace-path-nav-DqPbETfJ.js → workspace-path-nav-DmxBrMV6.js} +2 -2
  104. package/dist/web/client/assets/wrench-BYnD147U.js +1 -0
  105. package/dist/web/client/assets/x-DEU6H3M-.js +1 -0
  106. package/dist/web/client/bundle-budget.json +6 -6
  107. package/dist/web/server/_tanstack-start-manifest_v-B3Gb4p5p-DO2GL5VM.js +95 -0
  108. package/dist/web/server/{artifacts-panel-CwLVBqyi-CDORJY75.js → artifacts-panel-CGgpyc85-V3KXDVAX.js} +73 -66
  109. package/dist/web/server/{chat-command-palette-DUha04ia-5OV7WVJZ.js → chat-command-palette-BMR7RsuI-U5S4X44U.js} +52 -45
  110. package/dist/web/server/{chunk-ADYZWC5L.js → chunk-22XP6PHK.js} +50 -11
  111. package/dist/web/server/{chunk-XEG4JTND.js → chunk-2HOITUWV.js} +5 -5
  112. package/dist/web/server/{chunk-NZ6KQT2X.js → chunk-2XQYM4KB.js} +2 -2
  113. package/dist/web/server/{chunk-K6PTNSCW.js → chunk-36BG6OPK.js} +2 -2
  114. package/dist/web/server/chunk-3OOZPQZF.js +51 -0
  115. package/dist/web/server/{chunk-DP26GVWH.js → chunk-3YYNG52U.js} +5772 -4758
  116. package/dist/web/server/chunk-4IVORBQD.js +39 -0
  117. package/dist/web/server/{chunk-B2LF64HM.js → chunk-4LBXVBM7.js} +5 -5
  118. package/dist/web/server/{chunk-DKD32TRM.js → chunk-5FIJPXUA.js} +3343 -14
  119. package/dist/web/server/{chunk-O2IC376F.js → chunk-5TXDGMCK.js} +117 -1787
  120. package/dist/web/server/{chunk-YDDDSVNB.js → chunk-5VPNOUVY.js} +7 -5
  121. package/dist/web/server/chunk-7LUHWO5G.js +28 -0
  122. package/dist/web/server/chunk-7SZKAHLD.js +25 -0
  123. package/dist/web/server/{chunk-UE32PAV2.js → chunk-ACZS5EEZ.js} +4 -4
  124. package/dist/web/server/{chunk-CAPTFJOC.js → chunk-AWVHN432.js} +4 -4
  125. package/dist/web/server/{chunk-SDV3P3IW.js → chunk-BMXYQRMJ.js} +96 -78
  126. package/dist/web/server/chunk-BS4D5LRR.js +152 -0
  127. package/dist/web/server/{chunk-OVJYUWSQ.js → chunk-C2YGLMFE.js} +1 -1
  128. package/dist/web/server/chunk-CMOAC245.js +28 -0
  129. package/dist/web/server/{chunk-7FK6YEMA.js → chunk-CRCVWYBA.js} +2 -9
  130. package/dist/web/server/chunk-DIVIHC5K.js +100 -0
  131. package/dist/web/server/{chunk-XJ6TGSUB.js → chunk-EKVRPCBJ.js} +1 -1
  132. package/dist/web/server/{chunk-V5IFFLZQ.js → chunk-ELRLMFHT.js} +192 -142
  133. package/dist/web/server/{chunk-ZNFXBGLK.js → chunk-ERYPONRF.js} +1 -1
  134. package/dist/web/server/chunk-F3OV445J.js +25 -0
  135. package/dist/web/server/{chunk-5727TXOK.js → chunk-F5DJQ3PQ.js} +36 -36
  136. package/dist/web/server/{chunk-XSOUURPF.js → chunk-FAJILEF2.js} +142 -110
  137. package/dist/web/server/{chunk-UM3RHJNZ.js → chunk-FF2M3MLP.js} +2 -2
  138. package/dist/web/server/{chunk-IPV4GLJL.js → chunk-FHZAFF2A.js} +7 -24
  139. package/dist/web/server/chunk-FOMB2JR7.js +26 -0
  140. package/dist/web/server/{chunk-5RTGRTPD.js → chunk-FVWPODLT.js} +7 -6
  141. package/dist/web/server/chunk-G3WQTXJY.js +25 -0
  142. package/dist/web/server/{chunk-KZ35W5M7.js → chunk-G6NMFFZX.js} +41 -36
  143. package/dist/web/server/{chunk-YCCF676T.js → chunk-GLNLSEZJ.js} +7 -7
  144. package/dist/web/server/chunk-GNDXVFJY.js +28 -0
  145. package/dist/web/server/{chunk-HGVJEUV4.js → chunk-GR765UTQ.js} +4 -4
  146. package/dist/web/server/{chunk-RXUMFFUV.js → chunk-GSG3K6RA.js} +2 -2
  147. package/dist/web/server/chunk-HFN4TNR3.js +31 -0
  148. package/dist/web/server/{chunk-ETCO5KZK.js → chunk-I36LJXNY.js} +5 -5
  149. package/dist/web/server/{chunk-3Q3QKLHC.js → chunk-IIPUA4LB.js} +248 -212
  150. package/dist/web/server/{chunk-7PQTPSEE.js → chunk-INWLYZZ6.js} +1 -1
  151. package/dist/web/server/chunk-JCK6B7ZW.js +1677 -0
  152. package/dist/web/server/chunk-JEQQEY6O.js +30 -0
  153. package/dist/web/server/chunk-JVXQQYXB.js +154 -0
  154. package/dist/web/server/chunk-KABZXD6N.js +152 -0
  155. package/dist/web/server/{chunk-FTLJ66KU.js → chunk-L2SVMQWB.js} +12 -43
  156. package/dist/web/server/{chunk-TU2WNRAL.js → chunk-LBUHLBKK.js} +15 -13
  157. package/dist/web/server/chunk-LOFZS555.js +28 -0
  158. package/dist/web/server/{chunk-MJXXVQNA.js → chunk-LQRH6BP6.js} +25 -18
  159. package/dist/web/server/{chunk-WU6X3GPJ.js → chunk-MTVGA2MH.js} +72 -52
  160. package/dist/web/server/{chunk-T2UTBHJ4.js → chunk-N47UN47Y.js} +51 -39
  161. package/dist/web/server/chunk-NZ5YXXQ5.js +39 -0
  162. package/dist/web/server/{chunk-E5HALE4M.js → chunk-OYWUPJ72.js} +2 -2
  163. package/dist/web/server/{chunk-YVGCPUAW.js → chunk-PISNXFEK.js} +3 -3
  164. package/dist/web/server/{chunk-7HXCGBUP.js → chunk-PX7B5BTI.js} +5 -5
  165. package/dist/web/server/{chunk-33QA7BQJ.js → chunk-PYTU4DGR.js} +16 -10
  166. package/dist/web/server/{chunk-7E76R7MB.js → chunk-QHCQDVCQ.js} +1 -2
  167. package/dist/web/server/{chunk-FMAYMBRS.js → chunk-QN7KFCUW.js} +4318 -3649
  168. package/dist/web/server/chunk-QWWG3YC6.js +25 -0
  169. package/dist/web/server/chunk-RPGWRA2X.js +39 -0
  170. package/dist/web/server/chunk-RPWKCJHL.js +18 -0
  171. package/dist/web/server/chunk-RWYAKZCZ.js +39 -0
  172. package/dist/web/server/chunk-SGMJ5CGW.js +36 -0
  173. package/dist/web/server/chunk-SOZKLVNI.js +275 -0
  174. package/dist/web/server/{chunk-BQROC4PL.js → chunk-TNZKPEE6.js} +13 -7
  175. package/dist/web/server/chunk-TSOBRZPG.js +41 -0
  176. package/dist/web/server/{chunk-RJNGEU6C.js → chunk-UIUZ4ETR.js} +2 -2
  177. package/dist/web/server/{chunk-TLNZNR7C.js → chunk-UUDBEYKV.js} +2 -2
  178. package/dist/web/server/{chunk-HQ5TEXHT.js → chunk-UXS5E6OE.js} +4 -4
  179. package/dist/web/server/chunk-V7PDLH3T.js +73 -0
  180. package/dist/web/server/chunk-VCQ65B3G.js +28 -0
  181. package/dist/web/server/{chunk-TR2GA5OF.js → chunk-VHLBXWEN.js} +55 -40
  182. package/dist/web/server/{chunk-S2IBIJIG.js → chunk-WU6KNEGU.js} +46 -31
  183. package/dist/web/server/chunk-X37KO4BO.js +29 -0
  184. package/dist/web/server/chunk-X5AQ7KHU.js +22 -0
  185. package/dist/web/server/chunk-XZCIEF54.js +28 -0
  186. package/dist/web/server/{chunk-7NZ3FJDA.js → chunk-YBCP4V6T.js} +2 -2
  187. package/dist/web/server/{chunk-7UTDOTOU.js → chunk-YKJJDQAK.js} +28 -100
  188. package/dist/web/server/chunk-Z4OTKGMN.js +25 -0
  189. package/dist/web/server/chunk-ZJIELDZL.js +39 -0
  190. package/dist/web/server/{chunk-UDD5W4CR.js → chunk-ZMF45HAO.js} +58 -45
  191. package/dist/web/server/chunk-ZNED4KTU.js +105 -0
  192. package/dist/web/server/chunk-ZNI5AL4B.js +30 -0
  193. package/dist/web/server/create-project-dialog-xhTWmcx1-UQQU3MAT.js +295 -0
  194. package/dist/web/server/{fork-picker-dialog-DeMiLZtS-WTRTTP64.js → fork-picker-dialog-B5J-S5Nm-QOMVVHI7.js} +11 -11
  195. package/dist/web/server/{highlighted-body-KPVGNVTW-Ct6g7FVa-YZHVMLW4.js → highlighted-body-KPVGNVTW-D4Xsgab0-BZNKZ2YE.js} +3 -3
  196. package/dist/web/server/{markdown-BzNejPoZ-6ITTDAV6.js → markdown-DaTMVcnu-37DWI2JW.js} +4 -4
  197. package/dist/web/server/{markdown-code-DAwXuW6m-HHVELO6I.js → markdown-code-Cvz3a-x3-WAD4KC4A.js} +5 -5
  198. package/dist/web/server/{mermaid-HWGCJPDP-Ca26PwPZ-5EWRESLM.js → mermaid-HWGCJPDP-CDDePcVz-4BWFRGWL.js} +2 -2
  199. package/dist/web/server/{message-queue-Demph1x4-GGXJUUKO.js → message-queue-Dg2okv2L-SJTUUJS7.js} +17 -16
  200. package/dist/web/server/{model-selector-list-BeGQHwKV-UJYFO4KX.js → model-selector-list-Csw4nOra-IOMN5JMO.js} +23 -23
  201. package/dist/web/server/openui-renderer-CiWvcD3p-N6I66FOC.js +39 -0
  202. package/dist/web/server/{prompt-suggestions-yPZqX__K-3VGJC4IF.js → prompt-suggestions-h17Gu7u1-BS5SU2FY.js} +5 -5
  203. package/dist/web/server/{repl-panel-CgUF1qUw-3DFD2V53.js → repl-panel-CBwh0VGD-USDEOGGJ.js} +8 -9
  204. package/dist/web/server/{resources-panel-ChUliWV--JITAGS6Q.js → resources-panel-rn64m-sL-7QXEGRNX.js} +9 -10
  205. package/dist/web/server/{router-DfG45nTQ-3VXEUYG5.js → router-DOPFvRSC-G7G75P7U.js} +2663 -163
  206. package/dist/web/server/{routes-B9F9UfF1-UN2IVBMJ.js → routes-i2Ai-ZwX-SMSFONDQ.js} +2233 -2486
  207. package/dist/web/server/server.js +6 -6
  208. package/dist/web/server/{session-insights-panel-xgrkX1Rp-FDNURBXZ.js → session-insights-panel-DKkakWj6-ITHKDXF4.js} +1 -1
  209. package/dist/web/server/{session-reasoning-panel-m1RgcIph-NUXGXVKE.js → session-reasoning-panel-CXMCAM8C-HZMR5JCO.js} +9 -10
  210. package/dist/web/server/session-tool-renderer-jldnNioy-5ATOVAG5.js +46 -0
  211. package/dist/web/server/{session-tree-panel-rS0t1wbf-HNA6AJBY.js → session-tree-panel-WaHHv775-HRUHFSFO.js} +11 -11
  212. package/dist/web/server/{settings-dialog-CqkrDSnm-LFEKSS7Y.js → settings-dialog-C-xwPYy8-TFICZWEM.js} +554 -381
  213. package/dist/web/server/{start-DVUbMfrb-ELVIFRUY.js → start-QK6aG02q-RXFV6K5L.js} +1 -1
  214. package/dist/web/server/{subagent-chat-panel-Cf7QdDqH-DPPSVLSY.js → subagent-chat-panel-VEVu0QXU-DPWJFCYR.js} +50 -47
  215. package/dist/web/server/{subagents-panel-_JsUw-6t-MZWM5P45.js → subagents-panel-Cs3cBcsy-HTQBIYAS.js} +47 -45
  216. package/dist/web/server/tool-timeline-CfuizRid-L3Y3OSCH.js +15 -0
  217. package/dist/web/server/{workspace-panel-BHEB9nRM-Y6KGIVGP.js → workspace-panel-BU50q4Bu-JHTQPR6R.js} +109 -93
  218. package/package.json +1 -1
  219. package/dist/web/client/assets/agent-disclosure-CMrxF7L-.js +0 -1
  220. package/dist/web/client/assets/analytics-stub-C2vgmGm_.js +0 -1
  221. package/dist/web/client/assets/artifacts-panel-ClDpGWOU.js +0 -1
  222. package/dist/web/client/assets/bot-DbB9BKL0.js +0 -1
  223. package/dist/web/client/assets/bundle-mjs-cJTHqqzI.js +0 -1
  224. package/dist/web/client/assets/chat-BVMnC5Qh.js +0 -52
  225. package/dist/web/client/assets/chat-command-palette-YuyaJNbi.js +0 -1
  226. package/dist/web/client/assets/check-B3LlvM65.js +0 -1
  227. package/dist/web/client/assets/chevron-down-DUUprRP5.js +0 -1
  228. package/dist/web/client/assets/chevron-right-NVqQIoiO.js +0 -1
  229. package/dist/web/client/assets/chunk-YOKDWASO-Bte3iwlH.js +0 -143
  230. package/dist/web/client/assets/citations-DXqV2NLy.js +0 -1
  231. package/dist/web/client/assets/createLucideIcon-_dfI7Arx.js +0 -1
  232. package/dist/web/client/assets/dist-52wg4XPY.js +0 -1
  233. package/dist/web/client/assets/eye-CDHqtVoE.js +0 -1
  234. package/dist/web/client/assets/file-text-TmalmYrb.js +0 -1
  235. package/dist/web/client/assets/folder-vuNT4shY.js +0 -1
  236. package/dist/web/client/assets/gauge-BsDqNM1A.js +0 -1
  237. package/dist/web/client/assets/git-branch-CTq9aACS.js +0 -1
  238. package/dist/web/client/assets/globals-BtCXZXL_.css +0 -2
  239. package/dist/web/client/assets/hard-drive-BT7UxHQu.js +0 -1
  240. package/dist/web/client/assets/horizontal-resize-VLjLByUV.js +0 -1
  241. package/dist/web/client/assets/index-B9aXxpOv.js +0 -12
  242. package/dist/web/client/assets/ipython-tool-CkHaO3PW.js +0 -3
  243. package/dist/web/client/assets/is-ref-object-BcRWZ4l7.js +0 -1
  244. package/dist/web/client/assets/loader-circle-B5GIZGxd.js +0 -1
  245. package/dist/web/client/assets/markdown-BHkByC9K.js +0 -2
  246. package/dist/web/client/assets/mermaid-HWGCJPDP-CY3N5ECk.js +0 -1
  247. package/dist/web/client/assets/package-BKBPgwMP.js +0 -1
  248. package/dist/web/client/assets/pencil-CdO6qfv3.js +0 -1
  249. package/dist/web/client/assets/plug-BRROUIw-.js +0 -1
  250. package/dist/web/client/assets/prompt-input-WaGSKZCU.js +0 -1
  251. package/dist/web/client/assets/provider-catalog-ClVvphe0.js +0 -1
  252. package/dist/web/client/assets/provider-label-CwZ-KDxk.js +0 -1
  253. package/dist/web/client/assets/react-CwJFpaho.js +0 -1
  254. package/dist/web/client/assets/react-dom-DX3XddaT.js +0 -1
  255. package/dist/web/client/assets/refresh-cw-l9WPHRkq.js +0 -1
  256. package/dist/web/client/assets/resource-helpers-BuWybA8l.js +0 -2
  257. package/dist/web/client/assets/right-panel-context-CS8tJMzE.js +0 -1
  258. package/dist/web/client/assets/right-panel-registry-BnYCffmM.js +0 -2
  259. package/dist/web/client/assets/rotate-ccw-CfGhzOv7.js +0 -1
  260. package/dist/web/client/assets/routes-DUontXSG.js +0 -16
  261. package/dist/web/client/assets/safe-external-url-BbAom7Bm.js +0 -1
  262. package/dist/web/client/assets/search-BjcXAUrI.js +0 -1
  263. package/dist/web/client/assets/session-tool-renderer-Bd3dsE2D.js +0 -1395
  264. package/dist/web/client/assets/settings-dialog-DMTD9m6z.js +0 -2
  265. package/dist/web/client/assets/sparkles-BY5MFyk6.js +0 -1
  266. package/dist/web/client/assets/square-DQaQu9bp.js +0 -1
  267. package/dist/web/client/assets/square-terminal-BsopiuN7.js +0 -1
  268. package/dist/web/client/assets/subagent-transcript-CAqFJfMj.js +0 -1
  269. package/dist/web/client/assets/sun-D0llhiMU.js +0 -1
  270. package/dist/web/client/assets/switch-D3FhZU-S.js +0 -1
  271. package/dist/web/client/assets/terminal-BQAKkBY6.js +0 -1
  272. package/dist/web/client/assets/toast-lnCWGgSE.js +0 -1
  273. package/dist/web/client/assets/tokens-Ch5WqXC_.js +0 -1
  274. package/dist/web/client/assets/tool-result-B_yb2JoE.js +0 -4
  275. package/dist/web/client/assets/tool-timeline-VnMRQoLS.js +0 -1
  276. package/dist/web/client/assets/triangle-alert-GAYh_5d3.js +0 -1
  277. package/dist/web/client/assets/utils-Brtgag-m.js +0 -1
  278. package/dist/web/client/assets/virtualized-turn-list-mL3ONUUA.js +0 -6
  279. package/dist/web/client/assets/workspace-panel-CKF5JQl2.js +0 -1
  280. package/dist/web/client/assets/wrench-Myc12BTA.js +0 -1
  281. package/dist/web/client/assets/x-BGsDD848.js +0 -1
  282. package/dist/web/server/_tanstack-start-manifest_v-Cm8xE-Rb-TMLYN3GY.js +0 -93
  283. package/dist/web/server/chunk-2ST2ULW7.js +0 -24
  284. package/dist/web/server/chunk-3C4CFCIS.js +0 -19
  285. package/dist/web/server/chunk-3IHTZSBY.js +0 -22
  286. package/dist/web/server/chunk-4QD4PCVP.js +0 -19
  287. package/dist/web/server/chunk-4ZIEVI5O.js +0 -63
  288. package/dist/web/server/chunk-7CNGNFFK.js +0 -23
  289. package/dist/web/server/chunk-AHTO6GDS.js +0 -33
  290. package/dist/web/server/chunk-CHEC7TWB.js +0 -22
  291. package/dist/web/server/chunk-D7ELZVTI.js +0 -33
  292. package/dist/web/server/chunk-DLA5TLKX.js +0 -164
  293. package/dist/web/server/chunk-GS2IZGRC.js +0 -19
  294. package/dist/web/server/chunk-H5D5DX3K.js +0 -75
  295. package/dist/web/server/chunk-HFQZLPU2.js +0 -29
  296. package/dist/web/server/chunk-JBLHIEVG.js +0 -22
  297. package/dist/web/server/chunk-JDCCC7A7.js +0 -3382
  298. package/dist/web/server/chunk-JIULUYHT.js +0 -24
  299. package/dist/web/server/chunk-KBWUBWVJ.js +0 -60
  300. package/dist/web/server/chunk-LJ6Y7DBH.js +0 -128
  301. package/dist/web/server/chunk-M5RSPNYN.js +0 -22
  302. package/dist/web/server/chunk-O2DUZJYK.js +0 -19
  303. package/dist/web/server/chunk-OKL5ZRVB.js +0 -33
  304. package/dist/web/server/chunk-OMPXUTMX.js +0 -33
  305. package/dist/web/server/chunk-OOXWPL22.js +0 -22
  306. package/dist/web/server/chunk-SFTKGQ7H.js +0 -33
  307. package/dist/web/server/chunk-TNL4YV63.js +0 -29
  308. package/dist/web/server/chunk-UCA4WN66.js +0 -45
  309. package/dist/web/server/chunk-WWJF4RO2.js +0 -19
  310. package/dist/web/server/chunk-X7D6GFQU.js +0 -34
  311. package/dist/web/server/chunk-XA42CHF2.js +0 -22
  312. package/dist/web/server/openui-renderer-B4z18Brm-HSMKJ47D.js +0 -39
  313. package/dist/web/server/session-tool-renderer-CT65wuet-RQBMXHEZ.js +0 -46
  314. package/dist/web/server/tool-timeline-QL9k5dzA-RLU26HXT.js +0 -16
@@ -1,3 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Brtgag-m.js";import{t as i}from"./createLucideIcon-_dfI7Arx.js";var a=i(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),o=e(t(),1);function s(e,t,n){let r=(0,o.useRef)(n);(0,o.useEffect)(()=>{r.current=n},[n]),(0,o.useEffect)(()=>{if(!e)return;let n=setTimeout(()=>r.current(),t);return()=>clearTimeout(n)},[e,t])}var c=n(),l=(0,o.memo)(function({isPending:e,approveLabel:t,rejectLabel:n,onApprove:r,onReject:i}){let[a,s]=(0,o.useState)(null),l=a===`approved`?`Approved`:t??`Next`,u=a===`rejected`?`Skipped`:n??`Skip`,d=()=>{a||(s(`approved`),r?.())},f=()=>{a||(s(`rejected`),i?.())},p=(0,o.useMemo)(()=>a===`approved`?{label:`Waiting`,dots:!0}:a===`rejected`?{label:`Canceled`,dots:!1}:e?{label:`Starting`,dots:!0}:null,[a,e]);return(0,c.jsxs)(`div`,{className:`flex items-center justify-between border-t border-border bg-muted py-1 pr-2 pl-3`,children:[p?(0,c.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[p.label,p.dots&&(0,c.jsxs)(`span`,{className:`inline-flex`,"aria-hidden":`true`,children:[(0,c.jsx)(`span`,{className:`animate-[loading-dots_1.4s_infinite_0.2s] text-muted-foreground`,children:`.`}),(0,c.jsx)(`span`,{className:`animate-[loading-dots_1.4s_infinite_0.4s] text-muted-foreground`,children:`.`}),(0,c.jsx)(`span`,{className:`animate-[loading-dots_1.4s_infinite_0.6s] text-muted-foreground`,children:`.`})]})]}):(0,c.jsx)(`span`,{"aria-hidden":`true`}),(0,c.jsxs)(`div`,{className:`flex gap-1`,children:[(0,c.jsx)(`button`,{type:`button`,onClick:f,disabled:!!a,className:`h-5 rounded-[4px] px-1.5 text-xs text-muted-foreground transition-[background-color,color,transform] duration-150 hover:bg-muted/50 hover:text-foreground active:scale-[0.98] disabled:opacity-60 disabled:hover:bg-transparent disabled:active:scale-100`,children:u}),(0,c.jsx)(`button`,{type:`button`,onClick:d,disabled:!!a,className:`h-5 rounded-[4px] bg-primary px-1.5 text-xs font-medium text-primary-foreground transition-[background-color,transform] duration-150 hover:bg-primary/90 active:scale-[0.98] disabled:opacity-60 disabled:hover:bg-primary disabled:active:scale-100`,children:l})]})]})});function u({children:e,as:t=`p`,className:n,duration:i=2,spread:a=100,delay:o=0}){let s={"--chat-shimmer-duration":`${i}s`,"--chat-shimmer-spread":`${a}px`,animationDelay:o>0?`${o}s`:void 0,animationDuration:`${i}s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`};return(0,c.jsx)(t,{className:r(`an-text-shimmer`,`an-text-shimmer--active`,n),style:s,children:e})}var d=o.memo(u);function f(e){let t=0,n=0;for(let r of e)if(r.lines)for(let e of r.lines)e.startsWith(`+`)?t++:e.startsWith(`-`)&&n++;if(t===0&&n===0)return;let r=[];return t>0&&r.push(`+${t}`),n>0&&r.push(`-${n}`),r.join(` `)}function p(e){let t=[];for(let n of e)if(n.lines)for(let e of n.lines)e.startsWith(`+`)?t.push({type:`add`,content:e.slice(1)}):e.startsWith(`-`)?t.push({type:`remove`,content:e.slice(1)}):e.startsWith(` `)&&t.push({type:`context`,content:e.slice(1)});return t}function m(e){return e===`result`?`complete`:`animating`}function h(e){let t=e.toLowerCase();if(t===`thinking`||t===`reasoning`)return`thinking`;if(t===`websearch`||t===`web_search`||t===`grep`||t===`glob`||t===`webfetch`||t===`web_fetch`)return`search`}function g(e,t){switch(e){case`Bash`:return t?.command?String(t.command).slice(0,80):``;case`Edit`:case`Write`:case`Read`:return t?.file_path?String(t.file_path).split(`/`).pop()??``:``;case`Grep`:return t?.pattern?String(t.pattern):``;case`Glob`:return t?.pattern?String(t.pattern):``;case`WebSearch`:case`web_search`:return t?.query?String(t.query):``;case`WebFetch`:case`web_fetch`:return t?.url?String(t.url).slice(0,60):``;default:return``}}function _(e,t){let{toolName:n,args:r={},result:i}=t,a={id:e,type:`tool-call`,toolName:n===`PlanWrite`?`Plan`:n===`TodoWrite`?`Todo`:n,toolDetail:g(n,r),duration:2**53-1,toolVariant:h(n)};if(n===`Bash`&&(a.bashCommand=r?.command?String(r.command):void 0,t.state===`result`&&i)){if(typeof i==`string`)a.bashOutput=i,a.bashSuccess=!0;else if(typeof i==`object`){let e=typeof i?.stdout==`string`?i.stdout:typeof i?.output==`string`?i.output:``,t=typeof i?.stderr==`string`?i.stderr:``;a.bashOutput=[e,t].filter(Boolean).join(e&&t?`
2
- `:``);let n=i?.exitCode??i?.exit_code;a.bashSuccess=n===void 0||n===0}else a.bashOutput=JSON.stringify(i),a.bashSuccess=!0}if((n===`Edit`||n===`Write`||n===`Read`)&&(a.filePath=r?.file_path?String(r.file_path):void 0),n===`Write`){let e=typeof i?.content==`string`?i.content:typeof r?.content==`string`?r.content:``;if(e){let t=e.split(`
3
- `);a.diffStats=`+${t.length}`,a.diffLines=t.map(e=>({type:`add`,content:e}))}}return n===`Edit`&&Array.isArray(i?.structuredPatch)&&(a.diffStats=f(i.structuredPatch),a.diffLines=p(i.structuredPatch)),(n===`WebSearch`||n===`web_search`||n===`Grep`||n===`Glob`)&&(a.searchQuery=r?.query??r?.pattern?String(r?.query??r?.pattern):void 0,a.searchSource=n===`WebSearch`||n===`web_search`?`web`:`code`),a}function v(e){return e===`output-available`?`result`:e===`input-streaming`?`partial-call`:`call`}function y(e,t){let n=v(e.state);return{step:_(e.toolCallId??e.id??t.toLowerCase(),{toolName:t,args:e.input??e.args??{},state:n,result:e.output??e.result}),stepState:m(n)}}function b(e){let t=e.input??e.args??{};return typeof t.code==`string`?t.code:``}function x(e){let t=e.output??e.result;if(!(!t||typeof t!=`object`))return t}function S(...e){for(let t of e)if(t&&t.trim())return t;return``}function C({isPending:e,isBashCell:t,hasError:n,kernelRestarted:r}){return(0,c.jsxs)(`div`,{className:`flex h-7 items-center justify-between pr-2 pl-2.5`,children:[(0,c.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 overflow-hidden`,children:[(0,c.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-micro leading-none text-muted-foreground uppercase`,children:[(0,c.jsx)(a,{className:`h-3 w-3`}),t?`shell`:`python`]}),e?(0,c.jsx)(d,{as:`span`,duration:1.2,className:`m-0 inline-flex h-full items-center truncate text-xs leading-none`,children:`Running cell`}):(0,c.jsxs)(`span`,{className:`truncate text-xs text-muted-foreground`,children:[n?`Cell failed`:`Ran cell`,r&&` · kernel restarted`]})]}),e&&(0,c.jsx)(`svg`,{className:`h-3 w-3 shrink-0 animate-spin text-muted-foreground`,viewBox:`0 0 16 16`,fill:`none`,children:(0,c.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeDasharray:`28`,strokeDashoffset:`7`,strokeLinecap:`round`})})]})}function w({output:e}){return(0,c.jsxs)(`div`,{className:`mt-1.5 border-t border-dashed border-border/70 pt-1.5 font-mono text-caption leading-[15px]`,children:[(0,c.jsx)(`span`,{className:`text-micro font-semibold uppercase tracking-wider text-amber-600/90 dark:text-amber-400/90`,children:`Unattributed background output:`}),(0,c.jsx)(`div`,{className:`mt-0.5 max-h-[140px] overflow-auto whitespace-pre-wrap rounded bg-muted/40 p-1.5 text-muted-foreground`,children:e})]})}function T({step:e,state:t,onComplete:n,approval:r,cellIndex:i,part:a}){s(t===`animating`,e.duration,n);let o=t===`animating`,u=b(a),d=x(a),f=typeof a.backgroundOutput==`string`&&a.backgroundOutput.trim()?a.backgroundOutput:typeof d?.backgroundOutput==`string`&&d.backgroundOutput.trim()?d.backgroundOutput:void 0,p=u.trimStart().startsWith(`%%bash`),m=i===void 0?`IPython`:`In [${i}]`,h=S(d?.result,d?.stdout,d?.stderr,d?.error?.evalue),g=!!d?.error||!!d?.errorEname||d?.status===`error`;return(0,c.jsxs)(`div`,{className:`overflow-hidden rounded-chat-tool border border-border bg-muted`,children:[(0,c.jsx)(C,{isPending:o,isBashCell:p,hasError:g,kernelRestarted:d?.kernelRestarted}),(0,c.jsxs)(`div`,{className:`overflow-hidden border-t border-border bg-background px-2.5 py-1.5 font-mono text-label leading-[16px]`,children:[(0,c.jsxs)(`div`,{className:`break-all whitespace-pre-wrap`,children:[(0,c.jsxs)(`span`,{className:`mr-2 text-cyan-600 select-none dark:text-cyan-400`,children:[m,`:`]}),(0,c.jsx)(`span`,{className:`text-foreground`,children:u})]}),!o&&h&&(0,c.jsx)(`div`,{className:`mt-1 max-h-[160px] overflow-hidden whitespace-pre-line ${g?`text-red-600 dark:text-red-400`:`text-muted-foreground`}`,children:h}),f&&(0,c.jsx)(w,{output:f})]}),r&&(0,c.jsx)(l,{isPending:o,...r})]})}var E=new Map,D=0;function O(e){if(!e)return++D;let t=E.get(e);if(t)return t;let n=++D;return E.set(e,n),n}var k=(0,o.memo)(function({part:e}){let t=e.input?.approval??e.args?.approval,{step:n,stepState:r}=y(e,`IPython`),i=O(e.toolCallId);return(0,c.jsx)(T,{step:n,state:r,onComplete:()=>{},approval:t,cellIndex:i,part:e})});export{s as a,l as i,y as n,a as o,d as r,k as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";var n=e(t(),1),r=(0,n.createContext)({});function i(e){let t=(0,n.useRef)(null);return t.current===null&&(t.current=e()),t.current}var a=(0,n.createContext)(null);function o(e,t){e.indexOf(t)===-1&&e.push(t)}function s(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var c=(e,t,n)=>n>t?t:n<e?e:n,l=()=>{},u=()=>{},d={},f=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ee=e=>/^0[^.\s]+$/u.test(e);function te(e){let t;return()=>(t===void 0&&(t=e()),t)}var p=e=>e,m=class{constructor(){this.subscriptions=[]}add(e){return o(this.subscriptions,e),()=>s(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},h=e=>e*1e3,g=e=>e/1e3,ne=(e,t)=>t?1e3/t*e:0,re=e=>Array.isArray(e)&&typeof e[0]==`number`,_=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ie(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ae=40;function oe(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_.reduce((e,t)=>(e[t]=ie(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:ee,render:te,postRender:p}=o,m=()=>{let a=d.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ae),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),f.process(i),ee.process(i),te.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},h=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:_.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||h(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<_.length;t++)o[_[t]].cancel(e)},state:i,steps:o}}var{schedule:v,cancel:se,state:y,steps:ce}=oe(typeof requestAnimationFrame<`u`?requestAnimationFrame:p,!0),b;function le(){b=void 0}var x={now:()=>(b===void 0&&x.set(y.isProcessing||d.useManualTiming?y.timestamp:performance.now()),b),set:e=>{b=e,queueMicrotask(le)}},ue=e=>t=>typeof t==`string`&&t.startsWith(e),de=ue(`--`),fe=ue(`var(--`),pe=e=>fe(e)?me.test(e.split(`/*`)[0].trim()):!1,me=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function he(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var S={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},C={...S,transform:e=>c(0,1,e)},w={...S,default:1},T=e=>Math.round(e*1e5)/1e5,ge=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _e(e){return e==null}var ve=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,E=(e,t)=>n=>!!(typeof n==`string`&&ve.test(n)&&n.startsWith(e)||t&&!_e(n)&&Object.prototype.hasOwnProperty.call(n,t)),ye=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ge);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},be=e=>c(0,255,e),D={...S,transform:e=>Math.round(be(e))},O={test:E(`rgb`,`red`),parse:ye(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+D.transform(e)+`, `+D.transform(t)+`, `+D.transform(n)+`, `+T(C.transform(r))+`)`};function xe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var k={test:E(`#`),parse:xe,transform:O.transform},A=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j=A(`deg`),M=A(`%`),N=A(`px`),Se=A(`vh`),Ce=A(`vw`),we={...M,parse:e=>M.parse(e)/100,transform:e=>M.transform(e*100)},P={test:E(`hsl`,`hue`),parse:ye(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+M.transform(T(t))+`, `+M.transform(T(n))+`, `+T(C.transform(r))+`)`},F={test:e=>O.test(e)||k.test(e)||P.test(e),parse:e=>O.test(e)?O.parse(e):P.test(e)?P.parse(e):k.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?O.transform(e):P.transform(e),getAnimatableNone:e=>{let t=F.parse(e);return t.alpha=0,F.transform(t)}},Te=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ee(e){return isNaN(e)&&typeof e==`string`&&(e.match(ge)?.length||0)+(e.match(Te)?.length||0)>0}var De=`number`,Oe=`color`,ke=`var`,Ae=`var(`,je="${}",Me=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function I(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Me,e=>(F.test(e)?(r.color.push(a),i.push(Oe),n.push(F.parse(e))):e.startsWith(Ae)?(r.var.push(a),i.push(ke),n.push(e)):(r.number.push(a),i.push(De),n.push(parseFloat(e))),++a,je)).split(je),indexes:r,types:i}}function Ne(e){return I(e).values}function Pe({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===De?T(r[a]):e===Oe?F.transform(r[a]):r[a]}return i}}function Fe(e){return Pe(I(e))}var Ie=e=>typeof e==`number`?0:F.test(e)?F.getAnimatableNone(e):e,Le=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ie(e);function Re(e){let t=I(e);return Pe(t)(t.values.map((e,n)=>Le(e,t.split[n])))}var L={test:Ee,parse:Ne,createTransformer:Fe,getAnimatableNone:Re},ze=(e,t,n)=>e+(t-e)*n,Be=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ve=e=>e!==null;function He(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ve),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ue=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};function We(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var R=e=>e*180/Math.PI,Ge=e=>qe(R(Math.atan2(e[1],e[0]))),Ke={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ge,rotateZ:Ge,skewX:e=>R(Math.atan(e[1])),skewY:e=>R(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qe=e=>(e%=360,e<0&&(e+=360),e),Je=Ge,Ye=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Xe=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ze={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ye,scaleY:Xe,scale:e=>(Ye(e)+Xe(e))/2,rotateX:e=>qe(R(Math.atan2(e[6],e[5]))),rotateY:e=>qe(R(Math.atan2(-e[2],e[0]))),rotateZ:Je,rotate:Je,skewX:e=>R(Math.atan(e[4])),skewY:e=>R(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function z(e){return+!!e.includes(`scale`)}function Qe(e,t){if(!e||e===`none`)return z(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ze,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ke,i=t}if(!i)return z(t);let a=r[t],o=i[1].split(`,`).map(et);return typeof a==`function`?a(o):o[a]}var $e=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qe(n,t)};function et(e){return parseFloat(e.trim())}var B=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],V=new Set([...B,`pathRotation`]),tt=e=>e===S||e===N,nt=new Set([`x`,`y`,`z`]),rt=B.filter(e=>!nt.has(e));function it(e){let t=[];return rt.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Qe(t,`x`),y:(e,{transform:t})=>Qe(t,`y`)};H.translateX=H.x,H.translateY=H.y;var U=new Set,W=!1,G=!1,K=!1;function at(){if(G){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=it(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}G=!1,W=!1,U.forEach(e=>e.complete(K)),U.clear()}function ot(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(G=!0)})}function st(){K=!0,ot(),at(),K=!1}var ct=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(U.add(this),W||(W=!0,v.read(ot),v.resolveKeyframes(at))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}We(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),U.delete(this)}cancel(){this.state===`scheduled`&&(U.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},lt=e=>e.startsWith(`--`);function ut(e,t,n){lt(t)?e.style.setProperty(t,n):e.style[t]=n}var dt={};function ft(e,t){let n=te(e);return()=>dt[t]??n()}var pt=ft(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),mt=ft(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),q=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ht={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:q([0,.65,.55,1]),circOut:q([.55,0,1,.45]),backIn:q([.31,.01,.66,-.59]),backOut:q([.33,1.53,.69,.99])};function gt(e,t){if(e)return typeof e==`function`?mt()?Be(e,t):`ease-out`:re(e)?q(e):Array.isArray(e)?e.map(e=>gt(e,t)||ht.easeOut):ht[e]}function _t(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=gt(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function vt(e){return typeof e==`function`&&`applyToOptions`in e}function yt({type:e,...t}){return vt(e)&&mt()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var bt=class extends Ue{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=yt(e);this.animation=_t(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=He(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ut(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&pt()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),p):r(this)}},xt=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),St=30,Ct=e=>!isNaN(parseFloat(e)),wt={current:void 0},Tt=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=x.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=x.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ct(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new m);let n=this.events[e].add(t);return e===`change`?()=>{n(),v.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wt.current&&wt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=x.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>St)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,St);return ne(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function J(e,t){return new Tt(e,t)}function Et(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Dt(e,t,n,r){if(typeof t==`function`){let[i,a]=Et(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Et(r);t=t(n===void 0?e.custom:n,i,a)}return t}var Y=e=>!!(e&&e.getVelocity);function Ot(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var kt=`data-`+Ot(`framerAppearId`),At={test:e=>e===`auto`,parse:e=>e},jt=e=>t=>t.test(e),Mt=[S,N,M,j,Ce,Se,At],Nt=e=>Mt.find(jt(e)),Pt=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ft(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ge)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Pt.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var It=/\b([a-z-]*)\(.*?\)/gu,Lt={...L,getAnimatableNone:e=>{let t=e.match(It);return t?t.map(Ft).join(` `):e}},Rt={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},zt={...S,transform:Math.round},X={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,inset:N,insetBlock:N,insetBlockStart:N,insetBlockEnd:N,insetInline:N,insetInlineStart:N,insetInlineEnd:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,paddingBlock:N,paddingBlockStart:N,paddingBlockEnd:N,paddingInline:N,paddingInlineStart:N,paddingInlineEnd:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,marginBlock:N,marginBlockStart:N,marginBlockEnd:N,marginInline:N,marginInlineStart:N,marginInlineEnd:N,fontSize:N,backgroundPositionX:N,backgroundPositionY:N,rotate:j,pathRotation:j,rotateX:j,rotateY:j,rotateZ:j,scale:w,scaleX:w,scaleY:w,scaleZ:w,skew:j,skewX:j,skewY:j,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:C,originX:we,originY:we,originZ:N,zIndex:zt,fillOpacity:C,strokeOpacity:C,numOctaves:zt},Bt={...X,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Lt,WebkitFilter:Lt,mask:Rt,WebkitMask:Rt},Vt=e=>Bt[e],Ht=new Set([Lt,Rt]);function Ut(e,t){let n=Vt(e);return Ht.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Wt=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Gt=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:Kt,cancel:qt}=oe(queueMicrotask,!1),Jt=[...Mt,F,L],Yt=e=>Jt.find(jt(e)),Xt=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:Xt(),y:Xt()}),Qt=()=>({min:0,max:0}),$t=()=>({x:Qt(),y:Qt()}),en=new WeakMap;function tn(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function nn(e){return typeof e==`string`||Array.isArray(e)}var rn=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],an=[`initial`,...rn];function on(e){return tn(e.animate)||an.some(t=>nn(e[t]))}function sn(e){return!!(on(e)||e.variants)}function cn(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,J(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,J(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Z={current:null},ln={current:!1},un=typeof window<`u`;function dn(){if(ln.current=!0,un){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Z.current=e.matches;e.addEventListener(`change`,t),t()}else Z.current=!1}}var fn=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Q={};function pn(e){Q=e}function mn(){return Q}var hn=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ct,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=x.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,v.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=on(t),this.isVariantNode=sn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Y(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,en.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ln.current||dn(),this.shouldReduceMotion=Z.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),se(this.notifyUpdate),se(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&xt.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new bt({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:h(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=V.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&v.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Q){let t=Q[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<fn.length;t++){let n=fn[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cn(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=J(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(f(n)||ee(n))?n=parseFloat(n):!Yt(n)&&L.test(t)&&(n=Ut(e,t)),this.setBaseTarget(e,Y(n)?n.get():n)),Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Dt(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Y(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new m),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Kt.render(this.render)}},gn={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},_n=B.length;function vn(e,t,n){let r=``,i=!0;for(let a=0;a<_n;a++){let o=B[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Gt(s,X[o]);if(!c){i=!1;let t=gn[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Gt(a,X.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function yn(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(V.has(e)){o=!0;continue}if(de(e)){i[e]=n;continue}{let t=Gt(n,X[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=vn(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function bn(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var $={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(N.test(e))e=parseFloat(e);else return e}return`${bn(e,t.target.x)}% ${bn(e,t.target.y)}%`}},xn={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=L.parse(e);if(i.length>5)return r;let a=L.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=ze(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Sn={borderRadius:{...$,applyTo:[...Wt]},borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomLeftRadius:$,borderBottomRightRadius:$,boxShadow:xn};function Cn(e,{layout:t,layoutId:n}){return V.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Sn[e]||e===`opacity`)}function wn(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||Cn(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}var Tn={offset:`stroke-dashoffset`,array:`stroke-dasharray`},En={offset:`strokeDashoffset`,array:`strokeDasharray`};function Dn(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Tn:En;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var On=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function kn(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(yn(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of On)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Dn(d,i,a,o,!1)}var An=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function jn(e,t,n){let r=wn(e,t,n);for(let n in e)if(Y(e[n])||Y(t[n])){let t=B.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function Mn(e){return Y(e)?e.get():e}var Nn=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),Pn=(0,n.createContext)({strict:!1}),Fn={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},In=!1;function Ln(){if(In)return;let e={};for(let t in Fn)e[t]={isEnabled:e=>Fn[t].some(t=>!!e[t])};pn(e),In=!0}function Rn(){return Ln(),mn()}function zn(e){let t=Rn();for(let n in e)t[n]={...t[n],...e[n]};pn(t)}var Bn=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Vn(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Bn.indexOf(e)>-1||/[A-Z]/u.test(e))}var Hn=(0,n.createContext)({});function Un(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}export{He as $,Kt as A,c as At,xt as B,rn as C,p as Ct,en as D,d as Dt,tn as E,f as Et,kt as F,r as Ft,st as G,vt as H,Ot as I,B as J,tt as K,Y as L,Ut as M,s as Mt,Vt as N,a as Nt,$t as O,u as Ot,Nt as P,i as Pt,Ue as Q,Dt as R,sn as S,m as St,nn as T,ee as Tt,ut as U,bt as V,ct as W,z as X,V as Y,$e as Z,hn as _,ce as _t,Rn as a,P as at,Z as b,g as bt,Mn as c,k as ct,kn as d,de as dt,Be as et,On as f,pe as ft,yn as g,y as gt,Sn as h,v as ht,zn as i,F as it,Wt as j,o as jt,Zt as k,l as kt,jn as l,O as lt,Cn as m,se as mt,Hn as n,I as nt,Pn as o,M as ot,wn as p,x as pt,H as q,Vn as r,L as rt,Nn as s,N as st,Un as t,ze as tt,An as u,he as ut,dn as v,re as vt,an as w,te as wt,on as x,h as xt,ln as y,ne as yt,J as z};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]]),n=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t as n,n as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-code-CDTRq-HZ.js","assets/jsx-runtime-NZYk81nU.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-YOKDWASO-Bte3iwlH.js","assets/react-CwJFpaho.js","assets/react-dom-DX3XddaT.js","assets/bundle-mjs-cJTHqqzI.js","assets/preload-helper-Czpn1I53.js","assets/lib-ChrQ49PO.js","assets/dist-CZDnnosQ.js","assets/character-entities-legacy-Wut6vMuj.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-CwJFpaho.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{t as i}from"./utils-Brtgag-m.js";import{t as a}from"./preload-helper-Czpn1I53.js";import{i as o}from"./chunk-YOKDWASO-Bte3iwlH.js";var s=t(n(),1),c=e({Markdown:()=>y,MarkdownFrame:()=>_,fixNumberedListBreaks:()=>d,markdownComponents:()=>g,normalizeCodeFenceLanguages:()=>p}),l=r(),u=(0,s.lazy)(()=>a(async()=>{let{HighlightedMarkdown:e}=await import(`./markdown-code-CDTRq-HZ.js`);return{HighlightedMarkdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(({HighlightedMarkdown:e})=>({default:e})));function d(e){return e.replace(/^(\d+)\.\s*\n+\s*\n*/gm,`$1. `)}var f=new Set([`bash`,`diff`,`html`,`js`,`json`,`jsx`,`md`,`markdown`,`sh`,`shell`,`text`,`ts`,`tsx`,`yml`,`yaml`]);function p(e){return e.replace(/```([^\n]*)/g,(e,t)=>{let n=String(t||``).trim().toLowerCase();if(!n)return"```";let r=n.split(/\s+/)[0];return f.has(r)?`\`\`\`${r}`:"```text"})}var m=/^(https?:|mailto:)/i;function h(e,t){if(!(0,s.isValidElement)(e))return!1;let n=e.props;if(typeof n!=`object`||!n)return!1;let r=`node`in n?n.node:void 0,i=typeof r==`object`&&r&&`tagName`in r?r.tagName:void 0;return i===`img`?t:i===`code`&&`data-block`in n||`children`in n&&h(n.children,t)}var g={h1:({children:e,...t})=>(0,l.jsx)(`h1`,{className:`an-md-h1 mt-3 mb-1.5 text-base font-semibold`,...t,children:e}),h2:({children:e,...t})=>(0,l.jsx)(`h2`,{className:`an-md-h2 mt-3 mb-1.5 text-base font-semibold`,...t,children:e}),h3:({children:e,...t})=>(0,l.jsx)(`h3`,{className:`an-md-h3 mt-2 mb-1 text-sm font-semibold`,...t,children:e}),h4:({children:e,...t})=>(0,l.jsx)(`h4`,{className:`an-md-h4 mt-2 mb-1 text-sm font-medium`,...t,children:e}),p:({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);return r.some(e=>h(e,r.length===1))?(0,l.jsx)(s.Fragment,{children:e}):(0,l.jsx)(`p`,{className:`an-md-p text-sm leading-relaxed text-foreground/80`,...n,children:e})},ul:({children:e,...t})=>(0,l.jsx)(`ul`,{className:`an-md-ul mb-2 flex list-outside list-disc flex-col gap-0.5 pl-4 text-sm text-foreground/80`,...t,children:e}),ol:({children:e,...t})=>(0,l.jsx)(`ol`,{className:`an-md-ol mb-2 flex list-outside list-decimal flex-col gap-0.5 pl-5 text-sm text-foreground/80`,...t,children:e}),li:({children:e,...t})=>(0,l.jsx)(`li`,{className:`an-md-li pl-0.5 text-sm text-foreground/80`,...t,children:e}),strong:({children:e,...t})=>(0,l.jsx)(`strong`,{className:`font-medium text-foreground`,...t,children:e}),a:({href:e,children:t,...n})=>{if(typeof e!=`string`||!m.test(e))return(0,l.jsx)(`span`,{children:t});let r=e.startsWith(`http`);return(0,l.jsx)(`a`,{...n,href:e,target:r?`_blank`:void 0,rel:r?`noopener noreferrer`:void 0,className:`an-md-link text-primary underline-offset-2 hover:underline`,children:t})},blockquote:({children:e,...t})=>(0,l.jsx)(`blockquote`,{className:`an-md-blockquote mb-2 border-l-2 border-border pl-3 text-sm text-foreground/70 italic`,...t,children:e}),hr:({...e})=>(0,l.jsx)(`hr`,{className:`an-md-hr my-4 border-border`,...e}),table:({children:e,...t})=>(0,l.jsx)(`div`,{className:`my-3 overflow-x-auto rounded-chat-tool border border-border`,children:(0,l.jsx)(`table`,{className:`an-md-table w-full text-sm [&>thead]:bg-muted [&>thead>tr>th]:bg-muted`,...t,children:e})}),th:({children:e,...t})=>(0,l.jsx)(`th`,{className:`bg-secondary px-3 py-2 text-left font-medium`,...t,children:e}),td:({children:e,...t})=>(0,l.jsx)(`td`,{className:`border-t border-border px-3 py-2 text-foreground/80`,...t,children:e})};function _({children:e,className:t}){return(0,l.jsx)(`div`,{className:i(`an-markdown`,`overflow-hidden wrap-break-word`,`[&_li>p]:mb-0 [&_li>p]:inline`,t),children:e})}function v({content:e,className:t,codeControls:n}){let r=(0,s.useMemo)(()=>p(d(e)),[e]);return(0,l.jsx)(_,{className:t,children:(0,l.jsx)(o,{components:g,controls:{code:n},children:r})})}function y(e){return e.isStreaming||!e.content.includes("```")?(0,l.jsx)(v,{...e}):(0,l.jsx)(s.Suspense,{fallback:(0,l.jsx)(v,{...e}),children:(0,l.jsx)(u,{...e})})}export{c as a,g as i,_ as n,p as o,d as r,y as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./chunk-YOKDWASO-Bte3iwlH.js";export{e as Mermaid};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]);export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]);export{t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./button-Dl0ce3Y5.js";import{t as i}from"./utils-Brtgag-m.js";import{f as a,l as o}from"./ease-CMumuPlX.js";import{n as s,t as c}from"./use-reduced-motion-BOcG709U.js";import{t as l}from"./createLucideIcon-_dfI7Arx.js";import{t as u}from"./square-DQaQu9bp.js";var d=l(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),f=e(t(),1),p=n();function m({value:e,defaultValue:t=``,onValueChange:n,onSubmit:l,loading:m=!1,submitWhileLoading:h=!1,onStop:g,minRows:_=2,maxRows:v=8,leadingAction:y,className:b,disabled:x,placeholder:S=`Ask the agent to do something…`,"aria-label":C=`Prompt`,onKeyDown:w,...T}){let E=c()??!1,D=(0,f.useRef)(null),O=(0,f.useRef)(null),[k,A]=(0,f.useState)(t),j=e??k,M=!!j.trim()&&!x&&(!m||h),N=(0,f.useCallback)(()=>{let e=D.current,t=O.current;if(!e||!t||e.value!==j)return;let n=`${Math.min(Math.max(t.scrollHeight,_*24),v*24)}px`;e.style.height!==n&&(e.style.height=n)},[j,v,_]);(0,f.useLayoutEffect)(()=>{N()},[N]);let P=(0,f.useRef)(N);(0,f.useEffect)(()=>{P.current=N}),(0,f.useEffect)(()=>{let e=D.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>P.current());return t.observe(e),()=>t.disconnect()},[]);let F=t=>{e===void 0&&A(t),n?.(t)},I=t=>{t?.preventDefault();let n=j.trim();!n||x||m&&!h||(l?.(n),e===void 0&&A(``),D.current?.focus({preventScroll:!0}))},L=e=>{w?.(e),!(e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)&&(e.preventDefault(),I())};return(0,p.jsxs)(`form`,{onSubmit:I,className:i(`relative w-full rounded-chat-input border border-border/70 bg-sidebar p-2 text-[color:var(--foreground)] shadow-sm transition-[border-color,box-shadow] focus-within:border-chat-input-focus-outline/45 focus-within:ring-1 focus-within:ring-chat-input-focus-outline/25`,x&&`opacity-60`,b),children:[(0,p.jsx)(`div`,{ref:O,"aria-hidden":`true`,className:`pointer-events-none invisible absolute inset-x-2 top-0 whitespace-pre-wrap px-2 text-sm leading-6 [overflow-wrap:break-word]`,children:`${j}\u200b`}),(0,p.jsx)(`textarea`,{ref:D,value:j,disabled:x,placeholder:S,"aria-label":C,autoComplete:`off`,rows:_,...T,onChange:e=>F(e.target.value),onKeyDown:L,className:`scrollbar-hide block w-full resize-none overflow-y-auto bg-transparent px-2 pt-1.5 text-sm leading-6 text-foreground outline-none placeholder:text-foreground/55`}),(0,p.jsxs)(`div`,{className:`mt-1 flex min-h-8 items-center gap-1`,children:[y,m&&g?(0,p.jsx)(r,{type:`button`,size:`icon`,"aria-label":`Stop generating`,onClick:g,className:`ml-auto size-8 rounded-full`,children:(0,p.jsx)(u,{className:`size-3 fill-current`})}):null,!m||M?(0,p.jsx)(r,{type:`submit`,size:`icon`,disabled:!M,"aria-label":m?`Steer current run`:`Send prompt`,className:i(`size-8 rounded-full`,!m&&`ml-auto`,M&&`border-transparent bg-chat-input-accent text-white hover:bg-chat-input-accent/90 focus-visible:border-chat-input-accent focus-visible:ring-chat-input-accent/40`),children:(0,p.jsx)(s,{initial:!1,mode:`popLayout`,children:(0,p.jsx)(a.span,{initial:E?{opacity:1}:{opacity:0,y:3,scale:.8},animate:{opacity:1,y:0,scale:1},exit:E?{opacity:0}:{opacity:0,y:-3,scale:.8},transition:E?{duration:0}:o,className:`grid place-items-center`,children:(0,p.jsx)(d,{className:`size-4`})},`send`)})}):null]})]})}export{d as n,m as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./react-dom-DX3XddaT.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,O as h,T as g,U as _,V as v,Y as y,Z as b,c as x,et as S,f as C,h as w,k as T,l as E,m as D,n as O,nt as k,q as A,w as j}from"./button-Dl0ce3Y5.js";import{t as M}from"./utils-Brtgag-m.js";import{$ as N,B as P,E as F,F as I,G as L,H as R,I as z,K as B,L as V,N as H,O as ee,P as U,Q as W,R as G,S as te,T as K,U as q,V as ne,W as re,Y as J,Z as ie,_ as ae,ct as oe,et as Y,f as se,g as ce,h as le,it as ue,k as de,l as fe,n as pe,nt as me,o as he,ot as ge,q as _e,rt as X,st as ve,t as ye,u as be,x as xe,z as Se}from"./createBaseUIEventDetails-B58Jldei.js";import{$ as Z,G as Ce,H as we,I as Te,J as Ee,K as De,L as Oe,Q as ke,R as Ae,T as je,U as Me,W as Ne,X as Pe,b as Fe,c as Ie,h as Le,l as Re,q as ze,u as Be,w as Ve,x as He}from"./DialogTitle-DiAm7YNe.js";import{n as Ue,r as We}from"./useBaseUiId-D9ZGPZ6f.js";import{t as Ge}from"./check-B3LlvM65.js";import{t as Ke}from"./chevron-down-DUUprRP5.js";import{t as qe}from"./useControlled-CgAAWIy9.js";import{a as Je,c as Ye,i as Xe,n as Ze,o as Qe,r as $e,s as et}from"./input-CxZp56Im.js";var Q=e(t(),1),$=r(),tt=[`top`,`right`,`bottom`,`left`],nt=Math.min,rt=Math.max,it=Math.round,at=Math.floor,ot=e=>({x:e,y:e}),st={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ct(e,t,n){return rt(e,nt(t,n))}function lt(e,t){return typeof e==`function`?e(t):e}function ut(e){return e.split(`-`)[0]}function dt(e){return e.split(`-`)[1]}function ft(e){return e===`x`?`y`:`x`}function pt(e){return e===`y`?`height`:`width`}function mt(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ht(e){return ft(mt(e))}function gt(e,t,n){n===void 0&&(n=!1);let r=dt(e),i=ht(e),a=pt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Tt(o)),[o,Tt(o)]}function _t(e){let t=Tt(e);return[vt(e),t,vt(t)]}function vt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var yt=[`left`,`right`],bt=[`right`,`left`],xt=[`top`,`bottom`],St=[`bottom`,`top`];function Ct(e,t,n){switch(e){case`top`:case`bottom`:return n?t?bt:yt:t?yt:bt;case`left`:case`right`:return t?xt:St;default:return[]}}function wt(e,t,n,r){let i=dt(e),a=Ct(ut(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(vt)))),a}function Tt(e){let t=ut(e);return st[t]+e.slice(t.length)}function Et(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Dt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Et(e)}function Ot(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function kt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function At(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=le}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,p=Q.useRef(void 0),m=H(),h=i(),g=Q.useMemo(()=>{function e(e,t,n,r){let i=ye(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,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){p.current=Ce(e.pointerType,!0)&&ze(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=p.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||Ce(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=A(a);if(f(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=p.current;if(r===`mousedown`&&i){p.current=void 0;return}Ce(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(){p.current=void 0}}},[d,r,o,l,u,s,a,m,h,c]);return Q.useMemo(()=>n?{reference:g}:ve,[n,g])}function jt(e,t,n){let{reference:r,floating:i}=e,a=mt(t),o=ht(t),s=pt(o),c=ut(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=dt(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Mt(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=lt(t,e),p=Dt(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ot(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ot(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Nt=50,Pt=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Mt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=jt(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Nt&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=jt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ft=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=lt(e,t)||{};if(l==null)return{};let d=Dt(u),f={x:n,y:r},p=ht(i),m=pt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=nt(d[_],T),D=nt(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ct(E,k,O),j=!c.arrow&&dt(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),It=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=lt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ut(r),_=mt(o),v=ut(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Tt(o)]:_t(o)),x=p!==`none`;!d&&x&&b.push(...wt(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=gt(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===mt(t)||T.every(e=>mt(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=mt(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Lt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rt(e){return tt.some(t=>e[t]>=0)}var zt=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=lt(e,t);switch(i){case`referenceHidden`:{let e=Lt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Rt(e)}}}case`escaped`:{let e=Lt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Rt(e)}}}default:return{}}}}},Bt=new Set([`left`,`top`]);async function Vt(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ut(n),s=dt(n),c=mt(n)===`y`,l=Bt.has(o)?-1:1,u=a&&c?-1:1,d=lt(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ht=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Vt(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ut=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=lt(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=mt(i),p=ft(f),m=u[p],h=u[f],g=(e,t)=>ct(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Wt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=lt(e,t),u={x:n,y:r},d=mt(i),f=ft(d),p=u[f],m=u[d],h=lt(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Bt.has(ut(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Gt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=lt(e,t),c=await i.detectOverflow(t,s),l=ut(n),u=dt(n),d=mt(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=nt(p-c[m],g),y=nt(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*rt(c.left,c.right):S=p-2*rt(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Kt(e){let t=I(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=it(n)!==a||it(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function qt(e){return L(e)?e:e.contextElement}function Jt(e){let t=qt(e);if(!B(t))return ot(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Kt(t),o=(a?it(n.width):n.width)/r,s=(a?it(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Yt=ot(0);function Xt(e){let t=q(e);return!N()||!t.visualViewport?Yt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zt(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===q(e)}function Qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=qt(e),o=ot(1);t&&(r?L(r)&&(o=Jt(r)):o=Jt(e));let s=Zt(a,n,r)?Xt(a):ot(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=q(a),t=L(r)?q(r):r,n=e,i=G(n);for(;i&&t!==n;){let e=Jt(i),t=i.getBoundingClientRect(),r=I(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=q(i),i=G(n)}}return Ot({width:u,height:d,x:c,y:l})}function $t(e,t){let n=P(e).scrollLeft;return t?t.left+n:Qt(V(e)).left+n}function en(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-$t(e,n),y:n.top+t.scrollTop}}function tn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),s=t?W(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ot(1),u=ot(0),d=B(r);if((d||!a)&&((Se(r)!==`body`||J(o))&&(c=P(r)),d)){let e=Qt(r);l=Jt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?en(o,c):ot(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function nn(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function rn(e){let t=P(e),n=e.ownerDocument.body,r=rt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=rt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+$t(e),o=-t.scrollTop;return I(n).direction===`rtl`&&(a+=rt(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var an=25;function on(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=q(e),a=V(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!N()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if($t(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=an&&(s-=o)}return{width:s,height:c,x:l,y:u}}function sn(e,t){let n=Qt(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Jt(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function cn(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=on(e,n,t);else if(t===`document`)r=rn(V(e));else if(L(t))r=sn(t,n);else{let n=Xt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ot(r)}function ln(e,t){let n=t.get(e);if(n)return n;let r=ne(e,[],!1).filter(e=>L(e)&&Se(e)!==`body`),i=null,a=I(e).position===`fixed`,o=a?R(e):e;for(;L(o)&&!_e(o);){let e=I(o),t=re(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=R(o)}return t.set(e,r),r}function un(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?W(t)?[]:ln(t,this._c):[].concat(n),r],o=cn(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=cn(t,a[e],i);s=rt(n.top,s),c=nt(n.right,c),l=nt(n.bottom,l),u=rt(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function dn(e){let{width:t,height:n}=Kt(e);return{width:t,height:n}}function fn(e,t,n){let r=B(t),i=V(t),a=n===`fixed`,o=Qt(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ot(0);if((r||!a)&&((Se(t)!==`body`||J(i))&&(s=P(t)),r)){let e=Qt(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=$t(i));let l=i&&!r&&!a?en(i,s):ot(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function pn(e){return I(e).position===`static`}function mn(e,t){if(!B(e)||I(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function hn(e,t){let n=q(e);if(W(e))return n;if(!B(e)){let t=R(e);for(;t&&!_e(t);){if(L(t)&&!pn(t))return t;t=R(t)}return n}let r=mn(e,t);for(;r&&ie(r)&&pn(r);)r=mn(r,t);return r&&_e(r)&&pn(r)&&!re(r)?n:r||z(e)||n}var gn=async function(e){let t=this.getOffsetParent||hn,n=this.getDimensions,r=await n(e.floating);return{reference:fn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _n(e){return I(e).direction===`rtl`}var vn={convertOffsetParentRelativeRectToViewportRelativeRect:tn,getDocumentElement:V,getClippingRect:un,getOffsetParent:hn,getElementRects:gn,getClientRects:nn,getDimensions:dn,getScale:Jt,isElement:L,isRTL:_n};function yn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bn(e,t,n){let r=null,i,a=V(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=at(d),h=at(a.clientWidth-(u+f)),g=at(a.clientHeight-(d+p)),_=at(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:rt(0,nt(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!yn(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function xn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=qt(e),u=i||a?[...l?ne(l):[],...t?ne(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?bn(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Qt(e):null;c&&g();function g(){let t=Qt(e);h&&!yn(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Sn=Ht,Cn=Ut,wn=It,Tn=Gt,En=zt,Dn=Ft,On=Wt,kn=(e,t,n)=>{let r=new Map,i=n??{},a={...vn,...i.platform,_c:r};return Pt(e,t,{...i,platform:a})},An=e(n(),1),jn=typeof document<`u`?Q.useLayoutEffect:function(){};function Mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Mn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Mn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Nn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pn(e,t){let n=Nn(e);return Math.round(t*n)/n}function Fn(e){let t=Q.useRef(e);return jn(()=>{t.current=e}),t}function In(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Q.useState(r);Mn(f,r)||p(r);let[m,h]=Q.useState(null),[g,_]=Q.useState(null),v=Q.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Q.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=Q.useRef(null),C=Q.useRef(null),w=Q.useRef(u),T=c!=null,E=Fn(c),D=Fn(i),O=Fn(l),k=Q.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),kn(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Mn(w.current,t)&&(w.current=t,An.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);jn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=Q.useRef(!1);jn(()=>(A.current=!0,()=>{A.current=!1}),[]),jn(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=Q.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=Q.useMemo(()=>({reference:b,floating:x}),[b,x]),N=Q.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Pn(M.floating,u.x),r=Pn(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Nn(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return Q.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Ln=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Dn({element:r.current,padding:i}).fn(n):r?Dn({element:r,padding:i}).fn(n):{}}}},Rn=(e,t)=>{let n=Sn(e);return{name:n.name,fn:n.fn,options:[e,t]}},zn=(e,t)=>{let n=Cn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bn=(e,t)=>({fn:On(e).fn,options:[e,t]}),Vn=(e,t)=>{let n=wn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hn=(e,t)=>{let n=Tn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Un=(e,t)=>{let n=En(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wn=(e,t)=>{let n=Ln(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Gn(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=xe(),a=we()!=null,o=ue(()=>new Te({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ve,floatingId:i,syncOnly:!1,nested:a})).current;return X(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=L(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Kn(e){return qn(e,e.rootContext)}function qn(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=Q.useState(null),[d,f]=Q.useState(void 0),[p,m]=Q.useState(void 0),h=Q.useRef(null),g=Me(r),_=Q.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=In({...e,elements:{..._,...l&&{reference:l}}}),y=L(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=Q.useCallback(e=>{let t=L(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=Q.useCallback(e=>{(L(e)||e===null)&&(h.current=e,f(e)),(L(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!L(e))&&v.refs.setReference(e)},[v.refs,f]),C=Q.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=Q.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=Q.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=Q.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return X(()=>{o&&(h.current=o)},[o]),X(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),Q.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var Jn=`Escape`;function Yn(e){return y&&e.movementX===0&&e.movementY===0}function Xn(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Zn(e,t){return Xn(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Qn(e,t,n){return Xn(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function $n(e,t,n){return Xn(t,n?e===v:e===d,e===o)}function er(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Jn:Xn(t,n?e===d:e===v,e===_)}function tr(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:d=!1,loopFocus:f=!1,nested:p=!1,rtl:_=!1,virtual:v=!1,focusItemOnOpen:y=`auto`,focusItemOnHover:b=!0,openOnArrowKeyDown:x=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:T,id:E,resetOnPointerLeave:D=!0,externalTree:O,grid:k}=t,M=k!=null,N=`rootStore`in e?e.rootStore:e,P=N.useState(`open`),F=N.useState(`floatingElement`),I=N.useState(`domReferenceElement`),L=N.context.dataRef,R=a(F),z=l(I),V=We(R),ee=we(),U=Me(O),W=Q.useRef(y),G=Q.useRef(s??-1),te=Q.useRef(null),K=Q.useRef(!0),q=Y(e=>{i(G.current===-1?null:G.current,e)}),ne=Q.useRef(!!F),re=Q.useRef(P),J=Q.useRef(!1),ie=Q.useRef(!1),ae=Q.useRef(null),oe=We(C),se=We(P),ce=We(s),le=We(D),ue=H(),de=H(),fe=Y(()=>{function e(e){v?U?.events.emit(`virtualfocus`,e):ae.current=Ne(e,{sync:J.current,preventScroll:!0})}let t=n.current[G.current],r=ie.current;t&&e(t),(J.current?e=>e():e=>ue.request(e))(()=>{let i=n.current[G.current]||t;i&&(t||e(i),xe&&(r||!K.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});X(()=>{L.current.orientation=w},[L,w]),X(()=>{o&&(P&&F?(G.current=s??-1,W.current&&s!=null&&(ie.current=!0,q())):ne.current&&(G.current=-1,q()))},[o,P,F,s,q]),X(()=>{if(o){if(!P){J.current=!1;return}if(F){if(r==null){if(J.current=!1,ce.current!=null)return;if(ne.current&&(G.current=-1,fe()),(!re.current||!ne.current)&&W.current&&(te.current!=null||W.current===!0&&te.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>de.request(e):queueMicrotask)(t),e+=1):(G.current=te.current==null||Qn(te.current,w,_)||p?c(n):g(n),te.current=null,q())};t()}}else h(n.current,r)||(G.current=r,fe(),ie.current=!1)}}},[o,P,F,r,ce,p,n,w,_,q,fe,de]),X(()=>{if(!o||F||!U||v||!ne.current)return;let e=U.nodesRef.current,t=e.find(e=>e.id===ee)?.context?.elements.floating,n=u(S(I??t??null)),r=e.some(e=>e.context&&m(e.context.elements.floating,n));t&&!r&&K.current&&t.focus({preventScroll:!0})},[o,F,I,U,ee,v]),X(()=>{re.current=P,ne.current=!!F}),X(()=>{P||(te.current=null,W.current=y)},[P,y]);let pe=r!=null,me=Y(e=>{if(!se.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(G.current!==t||r!==t)&&(G.current=t,q(e))}),ge=Y(()=>T??U?.nodesRef.current.find(e=>e.id===ee)?.context?.dataRef?.current.orientation),_e=Y(()=>c(n,oe.current)),ve=Y(e=>{if(K.current=!1,J.current=!0,e.which===229||!se.current&&e.currentTarget===V.current)return;if(p&&er(e.key,w,_,M)){Zn(e.key,ge())||Ee(e),N.setOpen(!1,ye(be,e.nativeEvent)),B(I)&&(v?U?.events.emit(`virtualfocus`,I):I.focus());return}let t=G.current,r=c(n,C),i=g(n,C);if(z||(e.key===`Home`&&(Ee(e),G.current=r,q(e)),e.key===`End`&&(Ee(e),G.current=i,q(e))),k!=null){let t=k(e,G.current,n,w,f,_,C,r,i);if(t!=null&&(G.current=t,q(e)),w===`both`)return}if(Zn(e.key,w)){if(Ee(e),P&&!v&&u(e.currentTarget.ownerDocument)===e.currentTarget){G.current=Qn(e.key,w,_)?r:i,q(e);return}Qn(e.key,w,_)?f?t>=i?d&&t!==n.current.length?G.current=-1:(J.current=!1,G.current=r):G.current=j(n.current,{startingIndex:t,disabledIndices:C}):G.current=Math.min(i,j(n.current,{startingIndex:t,disabledIndices:C})):f?t<=r?d&&t!==-1?G.current=n.current.length:(J.current=!1,G.current=i):G.current=j(n.current,{startingIndex:t,decrement:!0,disabledIndices:C}):G.current=Math.max(r,j(n.current,{startingIndex:t,decrement:!0,disabledIndices:C})),h(n.current,G.current)&&(G.current=-1),q(e)}}),xe=Q.useMemo(()=>({onFocus(e){J.current=!0,me(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){Yn(e)||(J.current=!0,ie.current=!1,b&&me(e))},onPointerLeave(e){if(!se.current||!K.current||e.pointerType===`touch`)return;J.current=!0;let t=e.relatedTarget;if(!(!b||n.current.includes(t))&&le.current&&(ae.current?.(),ae.current=null,G.current=-1,q(e),!v)){let e=V.current,t=u(S(e));e&&m(e,t)&&e.focus({preventScroll:!0})}}}),[me,se,V,b,n,q,le,v]),Se=Q.useMemo(()=>v&&P&&pe&&{"aria-activedescendant":`${E}-${r}`},[v,P,pe,E,r]),Z=Q.useMemo(()=>({...z?{}:Se,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&P&&!v){let t=A(e.nativeEvent);if(t&&!m(V.current,t))return;Ee(e),N.setOpen(!1,ye(he,e.nativeEvent)),B(I)&&I.focus();return}ve(e)},onPointerMove(e){Yn(e)||(K.current=!0)}}),[Se,ve,V,z,N,P,v,I]),Ce=Q.useMemo(()=>{function e(e){N.setOpen(!0,ye(be,e.nativeEvent,e.currentTarget))}function t(e){y===`auto`&&De(e.nativeEvent)&&(W.current=!v)}function n(e){W.current=y,y===`auto`&&ze(e.nativeEvent)&&(W.current=!0)}return{onKeyDown(t){let n=N.select(`open`);K.current=!1;let r=t.key.startsWith(`Arrow`),i=$n(t.key,ge(),_),a=Zn(t.key,w),o=(p?i:a)||t.key===`Enter`||t.key.trim()===``;if(v&&n)return ve(t);if(!(!n&&!x&&r)){if(o){let e=Zn(t.key,ge());te.current=p&&e?null:t.key}if(p){i&&(Ee(t),n?(G.current=_e(),q(t)):e(t));return}a&&(ce.current!=null&&(G.current=ce.current),Ee(t),!n&&x?e(t):ve(t),n&&q(t))}},onFocus(e){N.select(`open`)&&!v&&(G.current=-1,q(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ve,y,_e,p,q,N,x,w,ge,_,ce,v]),Te=Q.useMemo(()=>({...Se,...Ce}),[Se,Ce]);return Q.useMemo(()=>o?{reference:Te,floating:Z,item:xe,trigger:Ce}:{},[o,Te,Z,Ce,xe])}function nr(e,t){let{listRef:n,elementsRef:r,activeIndex:a,onMatch:o,disabledIndices:c,onTyping:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=`rootStore`in e?e.rootStore:e,h=p.useState(`open`),g=i(),_=Q.useRef(``),v=Q.useRef(f??a??-1),y=Q.useRef(null),b=Y(e=>{function t(e){return r?.current[e]}function i(e){let n=t(e);return n&&!s(n)||n?.matches(`:disabled`)?!1:c==null||!T(ge,e,c)}function u(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,a=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(!(!e[n]?.toLowerCase().startsWith(a)||!i(n)))return n}return-1}let p=n.current;if(_.current.length>0&&e.key===` `&&(Ee(e),l?.(!0)),_.current.length>0&&_.current[0]!==` `&&u(p,_.current)===-1&&e.key!==` `&&l?.(!1),p==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;h&&e.key!==` `&&(Ee(e),l?.(!0));let m=_.current===``;m&&(v.current=f??a??-1),p.every((e,t)=>e&&i(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&_.current===e.key&&(_.current=``,v.current=y.current),_.current+=e.key,g.start(d,()=>{_.current=``,v.current=y.current,l?.(!1)});let b=((m?f??a??-1:v.current)??0)+1,x=u(p,_.current,b);x===-1?e.key!==` `&&(_.current=``,l?.(!1)):(o?.(x),y.current=x)}),x=Y(e=>{let t=e.relatedTarget,n=p.select(`domReferenceElement`),r=p.select(`floatingElement`);m(n,t)||m(r,t)||(g.clear(),_.current=``,v.current=y.current,l?.(!1))});X(()=>{!h&&f!==null||(g.clear(),y.current=null,_.current!==``&&(_.current=``))},[h,f,g]);let S=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Q.useMemo(()=>u?{reference:S,floating:S}:{},[u,S])}var rr=Q.createContext(void 0);function ir(){return Q.useContext(rr)?.direction??`ltr`}var ar=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=lt(e,t)||{};if(l==null)return{};let f=Dt(u),p={x:n,y:r},m=ht(i),h=pt(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=ct(k,j,A),N=!c.arrow&&dt(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),or=(e,t)=>{let{name:n,fn:r}=ar(e);return{name:n,fn:r,options:[e,t]}},sr={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},cr={sideX:`left`,sideY:`top`},lr=`--available-width`,ur=`--available-height`,dr=`--anchor-width`,fr=`--anchor-height`,pr=`--transform-origin`,mr=lr,hr=ur;function gr(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function _r(e,t,n){let{rects:r,placement:i}=e;return{side:gr(t,ut(i),n),align:dt(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function vr(e){return yr(e,Kn)}function yr(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:C}=e,[w,T]=Q.useState(null);!g&&w!==null&&T(null);let E=_.side||`flip`,D=_.align||`flip`,O=_.fallbackAxisSide||`end`,k=v?.crossAxis??!1,A=v?.rootBoundary,j=typeof n==`function`?n:void 0,M=Y(j),N=j?M:n,P=We(n),F=We(g),I=ir()===`rtl`,L=w||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":I?`left`:`right`,"inline-start":I?`right`:`left`}[i],R=o===`center`?L:`${L}-${o}`,z=l;typeof z==`number`?z={top:z,right:z,bottom:z,left:z}:z&&={top:z.top||0,right:z.right||0,bottom:z.bottom||0,left:z.left||0};let B=+(i===`bottom`),V=+(i===`top`),H=+(i===`right`),ee=+(i===`left`),U={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:z},W=Q.useRef(null),G=We(a),te=We(s),K=typeof a==`function`?0:a,ne=typeof s==`function`?0:s,re=[];p&&re.push(p),re.push(Rn(e=>{let t=_r(e,i,I),n=typeof G.current==`function`?G.current(t):G.current,r=typeof te.current==`function`?te.current(t):te.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[K,ne,I,i]));let J=D===`none`&&E!==`shift`,ie=!J&&(u||k||E===`shift`),ae=E===`none`?null:Vn({...U,padding:{top:z.top+1+B,right:z.right+1+ee,bottom:z.bottom+1+V,left:z.left+1+H},mainAxis:!k&&E===`flip`,crossAxis:D===`flip`&&`alignment`,fallbackAxisSideDirection:O}),oe=J?null:zn({...U,rootBoundary:A,mainAxis:D!==`none`,crossAxis:ie,limiter:u||k?void 0:Bn(e=>{if(!W.current)return{};let{width:t,height:n}=W.current.getBoundingClientRect(),r=mt(ut(e.placement)),i=r===`y`?t:n,a=r===`y`?z.left+z.right:z.top+z.bottom;return{offset:i/2+a/2}})},[U,u,k,A,z,D]);E===`shift`||D===`shift`||o===`center`?re.push(oe,ae):re.push(ae,oe),re.push(Hn({...U,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!F.current)return;let i=e.style;i.setProperty(mr,`${t}px`),i.setProperty(hr,`${n}px`);let a=q(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(dr,`${u}px`),i.setProperty(fr,`${d}px`)}}),or(e=>({element:W.current||S(e.elements.floating).createElement(`div`),padding:W.current?d:0,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=ut(r),u=dt(r),d=mt(l)===`y`,f=W.current,p=typeof a==`function`?a(_r(e,i,I)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return ie&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(pr,d?`${m} ${h}`:`${h} ${m}`),{}}},sr,b),X(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let se=Q.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:ce,elements:le,x:ue,y:de,middlewareData:fe,update:pe,placement:me,context:he,isPositioned:ge,floatingStyles:_e}=t({rootContext:h,open:m?g:void 0,placement:R,middleware:re,strategy:r,whileElementsMounted:m?void 0:(...e)=>xn(...e,se),nodeId:y,externalTree:C}),{sideX:ve,sideY:ye}=fe.adaptiveOrigin||cr,be=ge?r:`fixed`,xe=Q.useMemo(()=>{let e;return e=ge?b?{position:be,[ve]:ue,[ye]:de}:{..._e,position:be}:{position:be,top:0,left:0},e[mr]=`100vw`,e[hr]=`100vh`,ge||(e.opacity=0),e},[b,be,ve,ue,ye,de,_e,ge]),Se=Q.useRef(null);X(()=>{if(!g)return;let e=P.current,t=typeof e==`function`?e():e,n=(br(t)?t.current:t)||null;n!==Se.current&&(ce.setPositionReference(n),Se.current=n)},[g,ce,N,P]),Q.useEffect(()=>{if(!g)return;let e=P.current;typeof e!=`function`&&br(e)&&e.current!==Se.current&&(ce.setPositionReference(e.current),Se.current=e.current)},[g,ce,N,P]),Q.useEffect(()=>{if(m&&g&&le.reference&&le.floating)return xn(le.reference,le.floating,pe,se)},[m,g,le,pe,se]);let Z=ut(me),Ce=gr(i,Z,I),we=dt(me)||`center`,Te=!!fe.hide?.referenceHidden;X(()=>{x&&g&&ge&&Z!==L&&T(Z)},[x,g,ge,Z,L]);let Ee=Q.useMemo(()=>({position:`absolute`,top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),De=fe.arrow?.centerOffset!==0;return Q.useMemo(()=>({positionerStyles:xe,arrowStyles:Ee,arrowRef:W,arrowUncentered:De,side:Ce,align:we,physicalSide:Z,anchorHidden:Te,refs:ce,context:he,isPositioned:ge,update:pe}),[xe,Ee,W,De,Ce,we,Z,Te,ce,he,ge,pe])}function br(e){return e!=null&&`current`in e}function xr(e){return e===`starting`?x:ve}function Sr(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),K(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},xr(r),i],stateAttributesMapping:Pe})}function Cr(e){let t=Q.useRef(!0);t.current&&(t.current=!1,e())}function wr(e){let[t,n]=Q.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Tr(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Er=Q.createContext(void 0),Dr=Q.createContext(void 0),Or=Q.createContext(void 0);function kr(){let e=Q.useContext(Er);if(e===void 0)throw Error(me(60));return e}function Ar(){let e=Q.useContext(Dr);if(e===void 0)throw Error(me(101));return e}function jr(){let e=Q.useContext(Or);if(e===void 0)throw Error(me(61));return e}function Mr(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 Nr=(e,t)=>Object.is(e,t);function Pr(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Fr(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!Mr(e,t,(e,t)=>Pr(e,t,n)):e!==t}function Ir(e,t,n){return e?e.some(e=>e!==void 0&&Pr(t,e,n)):!1}function Lr(e,t,n){return e?e.findIndex(e=>e!==void 0&&Pr(e,t,n)):-1}function Rr(e,t){if(t!==Nr)return n=>Ir(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 zr(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(Rr(t,n)):Lr(e,t,n);return i===-1?null:i}function Br(e,t,n,r,i,a){return Ir(r,t,i)?a!=null&&e>a&&Ir(r,n[a],i)?a:e:e===a?zr(n,r,i,!0):a}function Vr(e,t,n){return e.filter(e=>!Pr(t,e,n))}function Hr(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Ur(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function Wr(e){return Ur(e?.[0])}function Gr(e){return Wr(e)?e.flatMap(e=>e.items):e}function Kr(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Wr(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 qr(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 Hr(e)}function Jr(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Hr(e.value):Hr(e)}function Yr(e,t,n){function r(){return qr(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=Gr(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 Xr(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,$.jsx)(Q.Fragment,{children:Yr(r,t,n)},i)),e),[])}var Zr={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:Jr(t,r)!==``},hasNullItemLabel:(e,t)=>t?Kr(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=>Pr(t,e,n)):Pr(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 Qr(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 $r(e,t){let{onClick:n,onPointerDown:r}=Qr(Y((n,r)=>{(typeof e==`function`?e():e)||t(r||(b?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ei(e){let[t,n]=Q.useState(null),r=$r(e,n);return Ze(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function ti(e,t){return Math.max(0,e-t)}function ni(e,t){if(t<=0)return 0;let n=kt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function ri(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:v,multiple:y=!1,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S=Nr,highlightItemOnHover:C=!0,children:T}=e,{clearErrors:E}=$e(),{setDirty:O,setTouched:A,setFocused:j,validityData:M,setFilled:N,name:P,disabled:I,validation:L,validationMode:R}=et(),z=Xe({id:t}),B=I||d,V=P??c,[H,U]=qe({controlled:n,default:y?r??ge:r,name:`Select`,state:`value`}),[W,G]=qe({controlled:a,default:o,name:`Select`,state:`open`}),K=Q.useRef([]),q=Q.useRef([]),ne=Q.useRef(null),re=Q.useRef(null),J=Q.useRef(0),ie=Q.useRef(null),ae=Q.useRef([]),ce=Q.useRef(!1),le=Q.useRef(null),de=Q.useRef(null),fe=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=Q.useRef(!1),me=Q.useRef(H),{mounted:he,setMounted:_e,transitionStatus:be}=Ue(W),{openMethod:xe,triggerProps:Se}=ei(W),Z=ue(()=>new k({id:z,labelId:void 0,modal:m,multiple:y,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,value:H,open:W,mounted:he,transitionStatus:be,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:ve,triggerProps:ve,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:oe,setOpen:oe,handleScrollArrowVisibility:oe,onOpenChangeComplete:oe,listRef:K,popupRef:ne,scrollHandlerRef:re,scrollArrowsMountedCountRef:J,valueRef:ie,valuesRef:ae,labelsRef:q,typingRef:ce,selectionRef:fe,firstItemTextRef:le,selectedItemTextRef:de,alignItemWithTriggerActiveRef:pe,initialValueRef:me},Zr)).current,Ce=Z.useState(`activeIndex`),we=Z.useState(`selectedIndex`),Te=Z.useState(`triggerElement`),Ee=Z.useState(`positionerElement`),De=wr(xe),ke=xe??De,Ae=Q.useMemo(()=>y?``:Jr(H,x),[y,H,x]),Me=Q.useMemo(()=>y&&Array.isArray(H)?H.map(e=>Jr(e,x)):Jr(H,x),[y,H,x]),Ne=We(Te),Pe=Y(()=>Me);Qe(Ne,z,H,Pe,!B,c);let Fe=y?Array.isArray(H)&&H.length>0:H!=null&&Ae!==``;X(()=>{N(Fe)},[Fe,N]),X(function(){let e=zr(ae.current,H,S,y);e===null&&(de.current=null),!W&&Z.set(`selectedIndex`,e)},[y,W,H,S,Z]),Ze(H,()=>{E(V),O(Fr(H,M.initialValue,S)),L.change(H)});let Ie=Y((e,t)=>{s?.(e,t),!t.isCanceled&&(G(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(A(!0),j(!1),R===`onBlur`&&L.commit(H)))}),Le=Y(()=>{_e(!1),Z.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)});te({enabled:!h,open:W,ref:ne,onComplete(){W||Le()}}),Q.useImperativeHandle(h,()=>({unmount:Le}),[Le]);let Re=Y((e,t)=>{i?.(e,t),!t.isCanceled&&U(e)}),ze=Y(e=>{let t=ti(e.scrollHeight,e.clientHeight),n=ni(e.scrollTop,t),r=n>0,i=n<t;Z.set(`scrollUpArrowVisible`,r),Z.set(`scrollDownArrowVisible`,i)}),Be=Gn({open:W,onOpenChange:Ie,elements:{reference:Te,floating:Ee}}),Ve=At(Be,{enabled:!B,event:`mousedown`}),He=Oe(Be),Ge=tr(Be,{enabled:!B,listRef:K,activeIndex:Ce,selectedIndex:we,disabledIndices:ge,onNavigate(e){e===null&&!W||Z.set(`activeIndex`,e)},focusItemOnHover:C}),Ke=nr(Be,{enabled:!B&&(W||!f&&!y),listRef:q,activeIndex:Ce,selectedIndex:we,disabledIndices:e=>Tr(K.current[e]),onMatch(e){W?Z.set(`activeIndex`,e):Re(ae.current[e],ye(se))},onTyping(e){ce.current=e}}),Je=Q.useMemo(()=>F(Ke.reference,Ge.reference,He.reference,Ve.reference,Se),[Ve.reference,Ke.reference,Ge.reference,He.reference,Se]),Ye=Q.useMemo(()=>F(je,Ke.floating,Ge.floating,He.floating),[Ke.floating,Ge.floating,He.floating]),tt=Ge.item??ve;Z.useContextCallback(`setValue`,Re),Z.useContextCallback(`setOpen`,Ie),Z.useContextCallback(`handleScrollArrowVisibility`,ze),Z.useContextCallback(`onOpenChangeComplete`,_),Cr(()=>{Z.update({popupProps:Ye,triggerProps:Je})}),Z.useSyncedValues({id:z,modal:m,multiple:y,value:H,open:W,mounted:he,transitionStatus:be,popupProps:Ye,triggerProps:Je,items:v,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,openMethod:ke});let nt=Q.useMemo(()=>({disabled:B,readOnly:f,required:p,multiple:y,highlightItemOnHover:C,itemProps:tt}),[B,f,p,y,C,tt]),rt=ee(g,L.inputRef),it=y?void 0:V,at=Q.useMemo(()=>!y||!Array.isArray(H)||!V?null:H.map(e=>{let t=Jr(e,x);return(0,$.jsx)(`input`,{type:`hidden`,form:l,name:V,value:t,disabled:B},t)}),[y,H,l,V,x,B]);return(0,$.jsxs)(Er.Provider,{value:Z,children:[(0,$.jsx)(Dr.Provider,{value:nt,children:(0,$.jsx)(Or.Provider,{value:Be,children:T})}),(0,$.jsx)(`input`,{...L.getValidationProps(B,{onFocus(){Z.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||B||f)return;let t=e.currentTarget.value,n=ye(se,e.nativeEvent);function r(){if(y)return;let e=t.toLowerCase(),r=ae.current.findIndex(t=>Jr(t,x).toLowerCase()===e||qr(t,b).toLowerCase()===e);r===-1&&(r=ae.current.findIndex((t,n)=>{let r=q.current[n];return r!=null&&r.toLowerCase()===e}));let i=ae.current[r];i!=null&&Re(i,n)}Z.set(`forceMount`,!0),queueMicrotask(r)}}),id:z&&it==null?`${z}-hidden-input`:void 0,form:l,name:it,autoComplete:u,value:Ae,disabled:B,required:p&&!(y&&Fe),readOnly:f,ref:rt,style:V?w:D,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),at]})}function ii(e,t){return e??t}var ai=5;function oi(e,t){let n=si(t);return e.clientX>=n.left-ai&&e.clientX<=n.right+ai&&e.clientY>=n.top-ai&&e.clientY<=n.bottom+ai}function si(e){let t=e.getBoundingClientRect(),n=q(e);if(p)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}}var ci=`data-popup-side`,li=400,ui={...ke,...Ye,popupSide:e=>e?{[ci]:e}:null,value:()=>null},di=Q.forwardRef(function(e,t){let{render:n,className:r,id:o,disabled:s=!1,nativeButton:c=!0,style:l,...u}=e,{setTouched:d,setFocused:f,validationMode:p,validation:h,state:g,disabled:_}=et(),{labelId:v}=Je(),y=kr(),{readOnly:b,required:x,disabled:C}=Ar(),w=_||C||s,T=y.useState(`open`),E=y.useState(`mounted`),D=y.useState(`value`),O=y.useState(`triggerProps`),k=y.useState(`positionerElement`),A=y.useState(`listElement`),j=y.useState(`popupSide`),M=y.useState(`id`),N=y.useState(`labelId`),P=y.useState(`hasSelectedValue`),I=E&&k?j:null,L=o??M,R=ii(v,N);Xe({id:o});let z=We(k),B=Q.useRef(null),{getButtonProps:V,buttonRef:H}=ae({disabled:w,native:c}),ee=y.useStateSetter(`triggerElement`),U=i(),W=i(),G=i();Q.useEffect(()=>{if(T)return G.start(li,()=>{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 te=F(O,{id:L,role:`combobox`,"aria-expanded":T,"aria-haspopup":`listbox`,"aria-controls":T?A?.id??a(k)?.id:void 0,"aria-labelledby":R,"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,ye(se,e.nativeEvent)),U.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){m(k,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&h.commit(D))},onMouseDown(e){if(T)return;let t=S(e.currentTarget);function n(e){if(!B.current)return;let t=e.target;m(B.current,t)||m(z.current,t)||oi(e,B.current)||y.context.setOpen(!1,ye(pe,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},u,V),q=h.getValidationProps(w,te);q.role=`combobox`;let ne={...g,open:T,disabled:w,value:D,readOnly:b,popupSide:I,placeholder:!P};return K(`button`,e,{ref:[t,B,H,ee],state:ne,stateAttributesMapping:ui,props:q})}),fi={value:()=>null},pi=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=kr(),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)?Xr(l,u,d):Yr(l,u,d)),K(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:fi})}),mi=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o={open:kr().useState(`open`)};return K(`span`,e,{state:o,ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Z})}),hi=Q.forwardRef(function(e,t){let n=kr(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,$.jsx)(O,{ref:t,...e}):null}),gi=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function _i(){return Q.useContext(gi)}function vi(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),[,o]=Q.useState(!1),s=ue(bi).current,c=ue(yi).current,l=Q.useRef(0),u=Q.useRef(!0),d=Q.useRef(null),f=Q.useRef(null),p=Y(()=>{u.current||(u.current=!0,o(e=>!e))}),m=Y((e,t)=>{c.set(e,t),p()}),h=Y(e=>{c.delete(e),p()}),g=Y(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Ci(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&wi(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Si(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=Y(()=>{let[e,t]=xi(c),n=g(e),r=d.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});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});X(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),X(()=>{u.current&&v()}),X(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=Y(e=>(s.add(e),()=>{s.delete(e)})),b=Q.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,$.jsx)(gi.Provider,{value:b,children:t})}function yi(){return new Map}function bi(){return new Set}function xi(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)=>wi(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 Si(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Ci(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 wi(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var Ti=Q.createContext(void 0);function Ei(){let e=Q.useContext(Ti);if(!e)throw Error(me(59));return e}function Di(e,t){e&&Object.assign(e.style,t)}var Oi={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},ki=20;function Ai(e,t,n,r){let[i,a]=Q.useState(!1);X(()=>{if(!e||!t||n==null){a(!1);return}let r=S(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-ki)},[e,t,n]),Fe(e&&(!t||i),r)}var ji={position:`fixed`},Mi=Q.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=E,style:_,...v}=e,y=kr(),b=jr(),x=y.useState(`open`),S=y.useState(`mounted`),w=y.useState(`modal`),T=y.useState(`value`),D=y.useState(`openMethod`),O=y.useState(`positionerElement`),k=y.useState(`triggerElement`),A=y.useState(`isItemEqualToValue`),j=y.useState(`transitionStatus`),M=Q.useRef(null),N=Q.useRef(null),[P,F]=Q.useState(h),I=S&&P&&D!==`touch`;!S&&P!==h&&F(h),Q.useImperativeHandle(y.context.alignItemWithTriggerActiveRef,()=>I),Ai((I||w)&&x,D===`touch`,O,k);let L=vr({anchor:n,floatingRootContext:b,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??I,collisionAvoidance:g,keepMounted:!0}),R=I?`none`:L.side,z=I?ji:L.positionerStyles,B={open:x,side:R,align:L.align,anchorHidden:L.anchorHidden};X(()=>{y.set(`popupSide`,L.side)},[y,L.side]);let V=Sr(e,B,{styles:z,transitionStatus:j,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x}),H=Q.useRef(0),ee=Y(e=>{if(y.context.valuesRef.current.length===0)return;let t=H.current;H.current=e.size;let n=ye(se);if(t!==0&&!y.state.multiple&&T!==null&&Lr(y.context.valuesRef.current,T,A)===-1){let e=y.context.initialValueRef.current,t=e!=null&&Lr(y.context.valuesRef.current,e,A)!==-1?e:null;y.context.setValue(t,n),t===null&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null)}if(t!==0&&y.state.multiple&&Array.isArray(T)){let e=T.filter(e=>Lr(y.context.valuesRef.current,e,A)!==-1);e.length!==T.length&&(y.context.setValue(e,n),e.length===0&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null))}if(x&&I){y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Di(O,e),Di(y.context.popupRef.current,e)}}),U=Q.useMemo(()=>({...L,side:R,alignItemWithTriggerActive:I,setControlledAlignItemWithTrigger:F,scrollUpArrowRef:M,scrollDownArrowRef:N}),[L,R,I,F]);return(0,$.jsx)(vi,{elementsRef:y.context.listRef,labelsRef:y.context.labelsRef,onMapChange:ee,children:(0,$.jsxs)(Ti.Provider,{value:U,children:[S&&w&&(0,$.jsx)(He,{inert:C(!x),cutout:k}),V]})})}),Ni=`base-ui-disable-scrollbar`,Pi={className:Ni,getElement(e){return(0,$.jsx)(`style`,{nonce:e,href:Ni,precedence:`base-ui:low`,children:`.${Ni}{scrollbar-width:none}.${Ni}::-webkit-scrollbar{display:none}`})}},Fi=Q.createContext(void 0);function Ii(e){let t=Q.useContext(Fi);if(t===void 0&&!e)throw Error(me(69));return t}var Li=Q.createContext(void 0),Ri={disableStyleElements:!1};function zi(){return Q.useContext(Li)??Ri}var Bi=`--transform-origin`,Vi={...Pe,...de},Hi=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,s=kr(),{multiple:c,readOnly:l,highlightItemOnHover:u}=Ar(),d=jr(),{side:f,align:p,alignItemWithTriggerActive:m,isPositioned:h,setControlledAlignItemWithTrigger:g}=Ei(),_=Ii(!0)!=null,v=ir(),{nonce:b,disableStyleElements:x}=zi(),C=s.useState(`id`),w=s.useState(`open`),T=s.useState(`openMethod`),E=s.useState(`mounted`),D=s.useState(`popupProps`),O=s.useState(`transitionStatus`),k=s.useState(`triggerElement`),A=s.useState(`positionerElement`),j=s.useState(`listElement`),M=Q.useRef(!1),N=Q.useRef(!1),P=Q.useRef({}),F=H(),I=Y(e=>{if(!A||!s.context.popupRef.current||!N.current)return;let t=A.style.top===`0px`,n=A.style.bottom===`0px`;if(M.current||!m||!t&&!n){s.context.handleScrollArrowVisibility(e);return}let r=Gi(A),i=Ki(A.getBoundingClientRect().height,`y`,r),a=S(A),o=q(A),c=o.getComputedStyle(A),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=Ui(o.getComputedStyle(s.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=Wi(e),g=null,_=e=>{A.style.height=`${e}px`},v=t?h-p:p,y=Math.min(i+v,f);if(v<=1){let n=kt(v,0,f-i);n>0&&_(i+n),e.scrollTop=t?h:0,f-(i+n)<=1&&(M.current=!0),s.context.handleScrollArrowVisibility(e);return}f-y>1?g=t?1/0:0:n&&p<h&&(g=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&_(b),g!=null){let t=kt(g,0,Wi(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(M.current=!0),s.context.handleScrollArrowVisibility(e)});Q.useImperativeHandle(s.context.scrollHandlerRef,()=>I,[I]),te({open:w,ref:s.context.popupRef,onComplete(){w&&s.context.onOpenChangeComplete(!0)}});let L={open:w,transitionStatus:O,side:f,align:p};X(()=>{!A||!s.context.popupRef.current||Object.keys(P.current).length||(P.current={top:A.style.top||`0`,left:A.style.left||`0`,right:A.style.right,height:A.style.height,bottom:A.style.bottom,minHeight:A.style.minHeight,maxHeight:A.style.maxHeight,marginTop:A.style.marginTop,marginBottom:A.style.marginBottom})},[s,A]),X(()=>{w||m||(N.current=!1,M.current=!1,Di(A,P.current))},[w,m,A]),X(()=>{let e=s.context.popupRef.current;if(!w||!k||!A||!e||m&&!h||s.state.transitionStatus===`ending`)return;if(N.current=!0,e.style.removeProperty(Bi),!m){F.request(()=>s.context.handleScrollArrowVisibility(j||e));return}let t=Yi(e);try{let t=s.context.selectedItemTextRef.current;t?.isConnected||(t=!s.select(`hasSelectedValue`)&&s.context.firstItemTextRef.current?.isConnected?s.context.firstItemTextRef.current:null);let n=s.context.valueRef.current,r=q(A),i=r.getComputedStyle(A),a=r.getComputedStyle(e),o=S(k),c=Gi(k),l=qi(k.getBoundingClientRect(),c),d=qi(A.getBoundingClientRect(),c),f=l.height,p=j||e,m=p.scrollHeight,h=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,b=parseFloat(i.marginBottom)||10,x=parseFloat(i.minHeight)||100,C=Ui(a),w=o.documentElement.clientHeight-_-b,T=o.documentElement.clientWidth,E=w-l.bottom+f,D,O=v===`rtl`?l.right-d.width:l.left,N=0;if(t&&n){let e=qi(n.getBoundingClientRect(),c);D=qi(t.getBoundingClientRect(),c),O=d.left+(v===`rtl`?e.right-D.right:e.left-D.left);let r=e.top-l.top+e.height/2;N=D.top-d.top+D.height/2-r}let F=E+N+b+h,I=Math.min(w,F),L=w-_-b,R=F-I,z=T-5;A.style.left=`${kt(O,5,z-d.width)}px`,A.style.height=`${I}px`,A.style.maxHeight=`none`,A.style.marginTop=`${_}px`,A.style.marginBottom=`${b}px`,e.style.height=`100%`;let B=Wi(p),V=R>=B-1;V&&(I=Math.min(w,d.height)-(R-B));let H=l.top<20||l.bottom>w-20||Math.ceil(I)+1<Math.min(m,x),ee=(r.visualViewport?.scale??1)!==1&&y;if(H||ee){Di(A,P.current),g(!1);return}let U=Math.max(x,I);if(V){let e=Math.max(0,w-F);A.style.top=d.height>=L?`0`:`${e}px`,A.style.height=`${I}px`,p.scrollTop=Wi(p)}else A.style.bottom=`0`,p.scrollTop=R;if(D){let t=d.top,n=d.height,r=D.top+D.height/2,i=kt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(Bi,`50% ${i}%`)}(U===w||I>=C)&&(M.current=!0),s.context.handleScrollArrowVisibility(p),u&&s.state.selectedIndex===null&&s.state.activeIndex===null&&s.context.listRef.current[0]!=null&&s.set(`activeIndex`,0)}finally{t()}},[s,w,A,k,m,g,F,j,u,v,h]),Q.useEffect(()=>{if(!m||!A||!w)return;let e=q(A);function t(e){s.context.setOpen(!1,ye(ce,e))}return U(e,`resize`,t)},[s,m,A,w]);let R={...j?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":c||void 0,"aria-readonly":l||void 0,id:`${C}-list`},onKeyDown(e){_&&Le.has(e.key)&&e.stopPropagation()},onScroll(e){j||I(e.currentTarget)},...m&&{style:j?{height:`100%`}:Oi},className:!j&&m?Pi.className:void 0},z=K(`div`,e,{ref:[t,s.context.popupRef],state:L,stateAttributesMapping:Vi,props:[D,R,xr(O),o]});return(0,$.jsxs)(Q.Fragment,{children:[!x&&Pi.getElement(b),(0,$.jsx)(Ae,{context:d,modal:!1,disabled:!E,openInteractionType:T,returnFocus:a,restoreFocus:!0,children:z})]})});function Ui(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Wi(e){return ti(e.scrollHeight,e.clientHeight)}function Gi(e){return vn.getScale(e)}function Ki(e,t,n){return e/n[t]}function qi(e,t){return Ot({x:Ki(e.x,`x`,t),y:Ki(e.y,`y`,t),width:Ki(e.width,`x`,t),height:Ki(e.height,`y`,t)})}var Ji=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Yi(e){let{style:t}=e,n={};for(let[e,r]of Ji)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Ji){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Xi=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kr(),{multiple:s,readOnly:c}=Ar(),{alignItemWithTriggerActive:l}=Ei(),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:Oi},className:u&&d!==`touch`?Pi.className:void 0},p=o.useStateSetter(`listElement`);return K(`div`,e,{ref:[t,p],props:[f,a]})});function Zi(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=_i(),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 X(()=>{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 Qi=Q.createContext(void 0);function $i(){let e=Q.useContext(Qi);if(!e)throw Error(me(57));return e}var ea=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=Zi({guess:!0,label:o,textRef:u}),f=kr(),{itemProps:p,multiple:m,disabled:h,readOnly:g}=Ar(),_=h||s,v=f.useState(`isActive`,d.index),y=f.useState(`open`),b=f.useState(`isSelected`,a),x=f.useState(`isSelectedByFocus`,d.index),S=f.useState(`isItemEqualToValue`),C=d.index,w=Q.useRef(null);X(()=>{let e=f.context.valuesRef.current;return e[C]=a,()=>{delete e[C]}},[C,a,f]),X(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=Br(C,a,f.context.valuesRef.current,e,S,t),r=n===C,C===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&Pr(a,e,S),r&&(n=C)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[C,m,S,f,a]);let T=Q.useRef(`mouse`),E=Q.useRef(!1),{getButtonProps:D,buttonRef:O}=ae({disabled:_,focusableWhenDisabled:!0,native:c,composite:!0}),k={disabled:_,selected:b,highlighted:v};function A(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=b?Vr(n,a,S):[...n,a];f.context.setValue(r,ye(fe,e))}else f.context.setValue(a,ye(fe,e)),f.context.setOpen(!1,ye(fe,e))}function j(){f.context.selectionRef.current.dragY=0}let M={role:`option`,"aria-selected":b,tabIndex:y&&v?0:-1,onKeyDown(e){f.set(`activeIndex`,C),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=T.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&De(e.nativeEvent)&&(n!==void 0||v),i=t&&!r&&!E.current;E.current=!1,!(_||i)&&A(e.nativeEvent)},onPointerEnter(e){T.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){T.current=e.pointerType,E.current=!0,j()},onMouseUp(){if(j(),_||T.current===`touch`||E.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&b,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!b;e||t||(E.current=!0,w.current?.click(),E.current=!1)}},N=K(`div`,e,{ref:[O,t,d.ref,w],state:k,props:[p,M,l,D]}),P=Q.useMemo(()=>({selected:b,index:C,textRef:u,selectedByFocus:x}),[b,C,u,x]);return(0,$.jsx)(Qi.Provider,{value:P,children:N})})),ta=Q.forwardRef(function(e,t){let{selected:n}=$i();return e.keepMounted||n?(0,$.jsx)(na,{...e,ref:t}):null}),na=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=$i(),c=Q.useRef(null),{transitionStatus:l,setMounted:u}=Ue(s),d=K(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:de});return te({batch:!0,enabled:!s,open:s,ref:c,onComplete(){s||u(!1)}}),d})),ra=Q.memo(Q.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=$i(),a=kr(),{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 K(`div`,e,{ref:[u,t,r],props:l})})),ia=2;function aa({className:e,onValueChange:t,options:n,placeholder:r,triggerId:i,value:a,...o}){let s=n.find(e=>e.value===a),c=s?.icon,l=Re(),u=Math.min(l+ia,8);return(0,$.jsxs)(ri,{"data-slot":`select`,items:n,onValueChange:e=>{e!==null&&t(e)},value:a,...o,children:[(0,$.jsxs)(di,{id:i,"aria-label":o[`aria-label`],className:M(`group flex h-8 w-full min-w-0 items-center justify-between gap-2 rounded-lg border border-input bg-transparent px-2.5 py-1 text-sm text-foreground transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 data-placeholder:text-muted-foreground dark:bg-input/30 dark:disabled:bg-input/80`,e),children:[(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[c?(0,$.jsx)(c,{className:`size-4 shrink-0 text-muted-foreground transition-colors group-hover:text-foreground`}):null,(0,$.jsx)(pi,{placeholder:r,children:(0,$.jsx)(`span`,{className:`truncate`,children:s?.label??r??a??``})})]}),(0,$.jsx)(mi,{className:`shrink-0 text-muted-foreground`,children:(0,$.jsx)(Ke,{className:`size-4`})})]}),(0,$.jsx)(hi,{children:(0,$.jsx)(Mi,{className:`z-[70]`,sideOffset:4,children:(0,$.jsx)(Hi,{className:M(`max-h-72 min-w-(--anchor-width) overflow-y-auto rounded-lg p-1 text-sm text-popover-foreground outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,Be(u,3)),children:(0,$.jsx)(Ie,{value:u,children:(0,$.jsx)(Xi,{children:n.map(e=>{let t=e.icon;return(0,$.jsxs)(ea,{className:`relative flex min-h-7 cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-7 text-sm outline-none select-none data-highlighted:bg-muted data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,disabled:e.disabled,value:e.value,children:[(0,$.jsx)(ta,{className:`absolute left-2 flex items-center justify-center`,children:(0,$.jsx)(Ge,{className:`size-3.5`})}),t?(0,$.jsx)(t,{className:`size-4 shrink-0 text-muted-foreground`}):null,(0,$.jsx)(ra,{children:e.label})]},e.value)})})})})})})]})}var oa=[{id:`amazon-bedrock`,name:`Amazon Bedrock`,envVarName:`AWS_ACCESS_KEY_ID`},{id:`openai`,name:`OpenAI`,envVarName:`OPENAI_API_KEY`},{id:`openai-chat-completions`,name:`OpenAI Chat Completions`,envVarName:`OPENAI_CHAT_COMPLETIONS_API_KEY`},{id:`openai-chat-completions-base-url`,name:`OpenAI Chat Completions Base URL`,envVarName:`OPENAI_CHAT_COMPLETIONS_BASE_URL`},{id:`openai-chat-completions-model`,name:`OpenAI Chat Completions Model`,envVarName:`OPENAI_CHAT_COMPLETIONS_MODEL`},{id:`anthropic`,name:`Anthropic`,envVarName:`ANTHROPIC_API_KEY`},{id:`google-vertex`,name:`Google Vertex`,envVarName:`GOOGLE_APPLICATION_CREDENTIALS`},{id:`google`,name:`Google Gemini`,envVarName:`GEMINI_API_KEY`},{id:`mistral`,name:`Mistral`,envVarName:`MISTRAL_API_KEY`},{id:`groq`,name:`Groq`,envVarName:`GROQ_API_KEY`},{id:`openrouter`,name:`OpenRouter`,envVarName:`OPENROUTER_API_KEY`},{id:`vercel-ai-gateway`,name:`Vercel AI Gateway`,envVarName:`AI_GATEWAY_API_KEY`},{id:`github-copilot`,name:`GitHub Copilot`,envVarName:`GITHUB_COPILOT_TOKEN`,authType:`oauth`},{id:`ollama`,name:`Ollama`,envVarName:`OLLAMA_BASE_URL`},{id:`daytona`,name:`Daytona`,envVarName:`DAYTONA_API_KEY`},{id:`daytona-target`,name:`Daytona Target`,envVarName:`DAYTONA_TARGET`}],sa=[`daytona`,`daytona-target`,`openai-chat-completions-base-url`,`openai-chat-completions-model`],ca=`openai-chat-completions`,la=`${ca}+`,ua=`custom+`;function da(e){return e.startsWith(ua)}function fa(e){return e===`openai-chat-completions`||e.startsWith(la)}function pa(e){return e.startsWith(la)}var ma=oa.map(({id:e,name:t,envVarName:n,authType:r})=>({id:e,name:t,envVarName:n,authType:r})),ha=ma.flatMap(e=>sa.includes(e.id)?[]:[e.id]);ma.filter(e=>!sa.includes(e.id)&&e.authType!==`oauth`),Array.from(new Set([...ma.flatMap(e=>ha.includes(e.id)||e.id===`openai-chat-completions-base-url`||e.id===`openai-chat-completions-model`?[e.envVarName]:[]),`HF_TOKEN`,`ANT_LING_API_KEY`,`AZURE_OPENAI_API_KEY`,`NVIDIA_API_KEY`,`DEEPSEEK_API_KEY`,`GOOGLE_CLOUD_API_KEY`,`CEREBRAS_API_KEY`,`XAI_API_KEY`,`RADIUS_API_KEY`,`ZAI_API_KEY`,`ZAI_CODING_CN_API_KEY`,`MINIMAX_API_KEY`,`MINIMAX_CN_API_KEY`,`MOONSHOT_API_KEY`,`FIREWORKS_API_KEY`,`TOGETHER_API_KEY`,`OPENCODE_API_KEY`,`KIMI_API_KEY`,`CLOUDFLARE_API_KEY`,`CLOUDFLARE_ACCOUNT_ID`,`CLOUDFLARE_GATEWAY_ID`,`XIAOMI_API_KEY`,`XIAOMI_TOKEN_PLAN_CN_API_KEY`,`XIAOMI_TOKEN_PLAN_AMS_API_KEY`,`XIAOMI_TOKEN_PLAN_SGP_API_KEY`,`ANTHROPIC_OAUTH_TOKEN`,`ANTHROPIC_OAUTH_KEY`,`COPILOT_GITHUB_TOKEN`,`GITHUB_COPILOT_TOKEN`,`AWS_SECRET_ACCESS_KEY`,`AWS_BEARER_TOKEN_BEDROCK`,`AWS_PROFILE`,`AWS_ACCESS_KEY_ID`,`DAYTONA_API_KEY`,`ORG_DAYTONA_API_KEY`,`DAYTONA_TARGET`]));export{kt as A,Bn as C,In as D,Hn as E,xn as O,Un as S,zn as T,xr as _,fa as a,Wn as b,zi as c,Ai as d,vi as f,Sr as g,Tr as h,pa as i,At as k,Ii as l,$r as m,ca as n,aa as o,ni as p,da as r,Zi as s,ma as t,Pi as u,vr as v,Rn as w,Vn as x,ir as y};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Brtgag-m.js";import{a as n,r,t as i}from"./provider-catalog-ClVvphe0.js";import{t as a}from"./createLucideIcon-_dfI7Arx.js";import{t as o}from"./bot-DbB9BKL0.js";import{t as s}from"./loader-circle-B5GIZGxd.js";import{n as c,r as l,t as u}from"./sparkles-BY5MFyk6.js";import{t as d}from"./git-branch-CTq9aACS.js";import{t as f}from"./plug-BRROUIw-.js";var p=a(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),m=a(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),h=a(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),g=a(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),_=a(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),v=a(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),y=a(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),b=a(`zap`,[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]),x=e();function S({className:e,...n}){return(0,x.jsx)(s,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:t(`size-4 animate-spin`,e),...n})}var C={"amazon-bedrock":{icon:g,placeholder:`AKIA... (AWS access key id)`,help:`Amazon Bedrock uses standard AWS credentials (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY) plus AWS_REGION. This field sets AWS_ACCESS_KEY_ID in .env.local.`},openai:{icon:u,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:u,placeholder:`sk-... or nvapi-...`,help:`OpenAI-compatible Chat Completions root (e.g. https://opencode.ai/zen/v1). Paste …/chat/completions if you want — it is normalized. Requires API key, base URL, and model name.`},"openai-chat-completions-model":{icon:u,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:o,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:c,placeholder:`Path to service account JSON, or credentials text...`,help:`Stored securely in your root .env.local file. Overrides the active GOOGLE_APPLICATION_CREDENTIALS environment variable.`},google:{icon:m,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:y,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:b,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:l,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:d,placeholder:`Your AI Gateway API key...`,help:`Stored securely in your root .env.local file. Overrides the active AI_GATEWAY_API_KEY environment variable.`},"github-copilot":{icon:o,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:u,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:h,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:f,placeholder:`sk-... / provider key`,help:`Register any OpenAI-, Anthropic-, or Google-compatible endpoint through Pi's native custom-provider mechanism. Requires a name, API key, https base URL, API family, and at least one model id. Deployed accounts only.`}},w=`size-4`;function T({className:e}){return(0,x.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(w,e),fill:`currentColor`,"aria-hidden":!0,children:(0,x.jsx)(`path`,{d:`M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.368v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.814 3.354-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.079.079 0 0 0-.041-.067zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zM8.306 12.683l-2.02-1.163a.08.08 0 0 1-.038-.057V6.074a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.392.681zm1.098-2.016l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z`})})}function E({className:e}){return(0,x.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(w,e),fill:`currentColor`,"aria-hidden":!0,children:(0,x.jsx)(`path`,{d:`M17.305 14.256h-3.778l-2.28-7.23h-.005l-2.32 7.23H5.145L9.93 3h4.14l4.235 11.256zm-8.48 2.37h6.37l1.16 3.374h3.465L14.18 3h-4.36L4.15 20h3.465l1.21-3.374z`})})}function D({className:e}){return(0,x.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:t(w,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,x.jsx)(`path`,{d:`M21.6 12.23c0-.71-.06-1.4-.18-2.05H12v3.87h5.38a4.6 4.6 0 0 1-2 3.02v2.5h3.24c1.89-1.74 2.98-4.3 2.98-7.34z`}),(0,x.jsx)(`path`,{d:`M12 22c2.7 0 4.96-.89 6.61-2.42l-3.24-2.5c-.9.6-2.04.96-3.37.96-2.59 0-4.78-1.75-5.56-4.1H3.1v2.58A9.99 9.99 0 0 0 12 22z`}),(0,x.jsx)(`path`,{d:`M6.44 13.94A5.99 5.99 0 0 1 6.12 12c0-.67.12-1.33.32-1.94V7.48H3.1A9.99 9.99 0 0 0 2 12c0 1.61.39 3.14 1.1 4.52l3.34-2.58z`}),(0,x.jsx)(`path`,{d:`M12 5.96c1.47 0 2.79.5 3.82 1.5l2.87-2.87C16.95 2.99 14.7 2 12 2A9.99 9.99 0 0 0 3.1 7.48l3.34 2.58C7.22 7.71 9.41 5.96 12 5.96z`})]})}function O({className:e}){return(0,x.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(w,e),fill:`currentColor`,"aria-hidden":!0,children:(0,x.jsx)(`path`,{d:`M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.9 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3z`})})}function k({provider:e,api:i,className:a}){let o=e.toLowerCase();if(r(o)||o===`custom`)return i===`anthropic-messages`?(0,x.jsx)(E,{className:a}):i===`google-genai`?(0,x.jsx)(D,{className:a}):(0,x.jsx)(T,{className:a});if(o===`openai`||o===`openai-codex`||n(o))return(0,x.jsx)(T,{className:a});if(o===`anthropic`)return(0,x.jsx)(E,{className:a});if(o===`google`||o===`google-vertex`)return(0,x.jsx)(D,{className:a});if(o===`github-copilot`||o===`github`)return(0,x.jsx)(O,{className:a});let s=e in C?C[e].icon:h;return(0,x.jsx)(s,{className:t(w,a),"aria-hidden":!0})}function A(e){return i.find(t=>t.id===e)?.name??e}export{v as a,p as c,S as i,k as n,_ as o,C as r,h as s,A as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-hePW80VL.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),n=e(((e,n)=>{n.exports=t()}));export{n as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";var n=e((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),r=e(((e,t)=>{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),t.exports=n()}));export{r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
@@ -1,2 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";import{t}from"./file-text-TmalmYrb.js";import{t as n}from"./package-BKBPgwMP.js";import{t as r}from"./plug-BRROUIw-.js";var i=e(`book-open`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]),a=e(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),o=e(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]);function s(e,s){return[{id:`skills`,label:`Skills`,icon:i,items:p(e?.skills.filter(e=>e.installedInWorkspace)??[],l(s))},{id:`prompts`,label:`Prompts`,icon:t,items:e?.prompts??[]},{id:`extensions`,label:`Extensions`,icon:r,items:e?.extensions??[]},{id:`packages`,label:`Packages`,icon:n,items:e?.packages??[]},{id:`themes`,label:`Themes`,icon:o,items:e?.themes??[]},{id:`agentsFiles`,label:`Context`,icon:a,items:e?.agentsFiles??[]}]}function c(e,t){for(let n of e){if(n.path===t)return n;let e=n.children?c(n.children,t):null;if(e)return e}return null}function l(e){if(!e)return[];let t=c(e.nodes,`agent-workspace/skills`);return t?.children?.length?t.children.flatMap(e=>{if(e.type!==`directory`)return[];let t=e.children?.find(e=>e.type===`file`&&e.name.toLowerCase()===`skill.md`)??null;return t?[{name:e.name,path:t.path,source:`workspace`}]:[]}).sort((e,t)=>e.name.localeCompare(t.name)):[]}function u(e){let t=e.indexOf(`/fleet-pi/`);return t>=0?e.slice(t+10):e}function d(e){return[e.name,e.source?`Source: ${e.source}`:null,e.activationStatus?`Status: ${e.activationStatus}`:null,e.description??null,e.workspacePath?u(e.workspacePath):null,e.path?u(e.path):null].filter(Boolean).join(`
2
- `)}function f(e){return`${e.source??`resource`}:${e.path??e.name}`}function p(e,t){let n=new Set;return[...e,...t].filter(e=>{let t=`${e.path??e.workspacePath??``}:${e.name}`;return!n.has(t)&&(n.add(t),!0)})}export{f as i,d as n,s as r,c as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-_dfI7Arx.js";var i=r(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),a=e(t(),1),o=n(),s=(0,a.createContext)(null),c=(0,a.createContext)(null),l=(0,a.createContext)(null);function u({chatPanelData:e,children:t,onOpenUIAction:n,settingsActions:r,workspaceTree:i}){let u=(0,a.useMemo)(()=>({...e,onOpenUIAction:n}),[e,n]);return(0,o.jsx)(l.Provider,{value:r,children:(0,o.jsx)(c.Provider,{value:i,children:(0,o.jsx)(s.Provider,{value:u,children:t})})})}function d(){let e=(0,a.useContext)(s);if(!e)throw Error(`useChatPanelDataContext must be used within RightPanelProvider`);return e}function f(){let e=(0,a.useContext)(c);if(!e)throw Error(`useWorkspaceTreeContext must be used within RightPanelProvider`);return e}function p(){let e=(0,a.useContext)(l);if(!e)throw Error(`useSettingsActionsContext must be used within RightPanelProvider`);return e}export{i as a,f as i,d as n,p as r,u as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-ClDpGWOU.js","assets/rolldown-runtime-hePW80VL.js","assets/react-CwJFpaho.js","assets/jsx-runtime-NZYk81nU.js","assets/button-Dl0ce3Y5.js","assets/react-dom-DX3XddaT.js","assets/utils-Brtgag-m.js","assets/bundle-mjs-cJTHqqzI.js","assets/createBaseUIEventDetails-B58Jldei.js","assets/dist-52wg4XPY.js","assets/createLucideIcon-_dfI7Arx.js","assets/tool-result-B_yb2JoE.js","assets/ease-CMumuPlX.js","assets/is-ref-object-BcRWZ4l7.js","assets/use-reduced-motion-BOcG709U.js","assets/use-presence-7I2qv4qI.js","assets/check-B3LlvM65.js","assets/chevron-down-DUUprRP5.js","assets/loader-circle-B5GIZGxd.js","assets/agent-disclosure-CMrxF7L-.js","assets/rotate-ccw-CfGhzOv7.js","assets/square-terminal-BsopiuN7.js","assets/wrench-Myc12BTA.js","assets/preload-helper-Czpn1I53.js","assets/chevron-right-NVqQIoiO.js","assets/package-BKBPgwMP.js","assets/openui-renderer-C4e9FOVR.js","assets/card-DCEnYd2G.js","assets/provider-catalog-ClVvphe0.js","assets/DialogTitle-DiAm7YNe.js","assets/useBaseUiId-D9ZGPZ6f.js","assets/useControlled-CgAAWIy9.js","assets/input-CxZp56Im.js","assets/safe-external-url-BbAom7Bm.js","assets/chunk-YOKDWASO-Bte3iwlH.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/openui-utils-DawGoQNp.js","assets/chat-BVMnC5Qh.js","assets/dialog-BzcIOvFC.js","assets/x-BGsDD848.js","assets/switch-D3FhZU-S.js","assets/markdown-BHkByC9K.js","assets/dist-DbHxXSgQ.js","assets/collapsible-CUxOjhDJ.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/resources-panel-mT-aMCvV.js","assets/resource-helpers-BuWybA8l.js","assets/file-text-TmalmYrb.js","assets/plug-BRROUIw-.js","assets/skeleton-loaders-BMa_G4yX.js","assets/skeleton-C3mo31Qu.js","assets/session-insights-panel-B0rl37lo.js","assets/repl-panel-L9dmPqio.js","assets/ipython-tool-CkHaO3PW.js","assets/triangle-alert-GAYh_5d3.js","assets/subagents-panel-8aKOwWLs.js","assets/bot-DbB9BKL0.js","assets/virtualized-turn-list-mL3ONUUA.js","assets/citations-DXqV2NLy.js","assets/sparkles-BY5MFyk6.js","assets/notify-DjVixft7.js","assets/toast-lnCWGgSE.js","assets/workspace-path-nav-DqPbETfJ.js","assets/subagent-transcript-CAqFJfMj.js","assets/session-tool-renderer-Bd3dsE2D.js","assets/eye-CDHqtVoE.js","assets/git-branch-CTq9aACS.js","assets/search-BjcXAUrI.js","assets/terminal-BQAKkBY6.js","assets/dist-CZDnnosQ.js","assets/range-BWOHiLNe.js","assets/surfaces-CpfsGAIA.js","assets/tool-timeline-VnMRQoLS.js","assets/refresh-cw-l9WPHRkq.js","assets/workspace-panel-CKF5JQl2.js","assets/horizontal-resize-VLjLByUV.js","assets/safe-storage-s25GrfpH.js","assets/folder-vuNT4shY.js","assets/hard-drive-BT7UxHQu.js","assets/session-tree-panel-CM4_wwrM.js","assets/alert-dialog-CYE37KMM.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-_dfI7Arx.js";import{t as i}from"./bot-DbB9BKL0.js";import{t as a}from"./folder-vuNT4shY.js";import{t as o}from"./git-branch-CTq9aACS.js";import{t as s}from"./package-BKBPgwMP.js";import{i as c,n as l}from"./right-panel-context-CS8tJMzE.js";import{t as u}from"./square-terminal-BsopiuN7.js";import{t as d}from"./preload-helper-Czpn1I53.js";import{t as f}from"./skeleton-C3mo31Qu.js";var p=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),m=r(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),h=e(t(),1),g=n(),_=(0,h.lazy)(()=>d(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-ClDpGWOU.js`);return{ArtifactsPanelContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45])).then(({ArtifactsPanelContent:e})=>({default:e}))),v=(0,h.lazy)(()=>d(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-mT-aMCvV.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([46,3,1,47,10,2,48,25,49,50,51,6,7])).then(({ResourcesPanelContent:e})=>({default:e}))),y=(0,h.lazy)(()=>d(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-B0rl37lo.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([52,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),b=(0,h.lazy)(()=>d(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-L9dmPqio.js`);return{ReplPanelContent:e}},__vite__mapDeps([53,1,2,3,54,6,7,10,21,55])).then(({ReplPanelContent:e})=>({default:e}))),x=(0,h.lazy)(()=>d(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-8aKOwWLs.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,57,10,58,12,13,14,15,59,17,33,19,60,16,24,48,18,40,23,61,62,55,63,37,64,65,11,20,21,22,54,66,67,68,69,70,35,36,44,30,31,71,72,73,74,45])).then(({SubagentsPanelContent:e})=>({default:e}))),S=(0,h.lazy)(()=>d(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-CKF5JQl2.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([75,1,2,3,6,7,12,13,14,15,47,10,48,25,49,24,76,77,78,79,63,23,50,51])).then(({WorkspacePanelContent:e})=>({default:e}))),C=(0,h.lazy)(()=>d(async()=>{let{SessionTreePanel:e}=await import(`./session-tree-panel-CM4_wwrM.js`);return{SessionTreePanel:e}},__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,67,10,81,29,30])).then(({SessionTreePanel:e})=>({default:e})));function w(){return(0,g.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,g.jsx)(f,{className:`h-5 w-32`}),(0,g.jsx)(f,{className:`h-20 w-full`})]})}function T(){let e=l();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(y,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,transcriptSummary:e.transcriptSummary,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function E(){let e=l(),t=c();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(v,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function D(){let e=c();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(S,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function O(){let e=l();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(_,{artifactRuns:e.artifactRuns,openUIBlocks:e.transcriptSummary.openUIBlocks,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function k(){let e=l();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(b,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function A(){let e=l();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(x,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}function j(){let e=l();return(0,g.jsx)(h.Suspense,{fallback:(0,g.jsx)(w,{}),children:(0,g.jsx)(C,{sessionId:e.sessionId,snapshot:e.sessionTreeSnapshot,loading:e.sessionTreeLoading,error:e.sessionTreeError,isStreaming:e.isSessionTreeStreaming,selectedEntryId:e.selectedSessionTreeEntryId,onSelectEntry:e.selectSessionTreeEntry,onRefresh:e.refreshSessionTree,onRewind:e.rewindSessionTree})})}var M={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:m,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:E},workspace:{id:`workspace`,order:1,title:`Workspace`,ariaLabel:`Workspace`,commandLabel:`Open Workspace`,commandKeywords:[`workspace`,`files`,`panels`],icon:a,dataTestid:`pi-workspace-canvas`,mobileDataTestid:`pi-workspace-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:`workspace`,refreshSource:`workspace`,component:D},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:s,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:O},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:u,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:k},subagents:{id:`subagents`,order:4,title:`Subagents`,ariaLabel:`Subagents`,commandLabel:`Open Subagents`,commandKeywords:[`subagents`,`agents`,`threads`,`delegation`,`panels`],icon:i,dataTestid:`pi-subagents-canvas`,mobileDataTestid:`pi-subagents-mobile-panel`,showInLauncher:!1,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:A},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:p,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:T},"session-tree":{id:`session-tree`,order:6,title:`Session tree`,ariaLabel:`Session tree`,commandLabel:`Open Session Tree`,commandKeywords:[`session`,`tree`,`branch`,`rewind`,`history`,`panels`],icon:o,dataTestid:`pi-session-tree-canvas`,mobileDataTestid:`pi-session-tree-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:j}},N=Object.values(M).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function P(e){return M[e]}export{P as n,m as r,N as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t};