decocms 3.18.3 → 3.18.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 (231) hide show
  1. package/dist/client/assets/{AlertCircle-B-r3okdw.js → AlertCircle-CslgXeHr.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-tDPH0_4m.js → ArrowUpRight-D_DImXhK.js} +1 -1
  3. package/dist/client/assets/{Check-BhYHl6b1.js → Check-C4hca_-Y.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-CVL_FX-8.js → CheckCircle-HpSNY8ij.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-CniGrT2-.js → ChevronDown-Dxt-1uCb.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-kGfXoAV-.js → ChevronLeft-B5zdF1BR.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-COCWmVlT.js → ChevronRight-CyvrXAe0.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-DzsjrX2b.js → ChevronUp-aKq1AYju.js} +1 -1
  9. package/dist/client/assets/{Container-D1PVb_TW.js → Container-DXqMOloC.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-_gNEu7zY.js → DotsVertical-Bo9Tm-x1.js} +1 -1
  11. package/dist/client/assets/{Eye-Cja82Q7U.js → Eye-CBgMpWUe.js} +1 -1
  12. package/dist/client/assets/{FilterLines-Bel4K6qN.js → FilterLines-CWMZctUn.js} +1 -1
  13. package/dist/client/assets/{Globe01-D39kUdoP.js → Globe01-BgNeS-t5.js} +1 -1
  14. package/dist/client/assets/{HardDrive-CgdcwvGL.js → HardDrive-skQdR31x.js} +1 -1
  15. package/dist/client/assets/{Key01-DYyg_tnP.js → Key01-CxukwP00.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-CoO_xxXK.js → LayoutLeft-CmXWN8pg.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-DN-lMhNz.js → LinkExternal01-l_9oMYRN.js} +1 -1
  18. package/dist/client/assets/{Monitor01-gHlWGw8m.js → Monitor01-DIoPLr7l.js} +1 -1
  19. package/dist/client/assets/{Palette-D9uHHj9p.js → Palette-BTCzP1Gm.js} +1 -1
  20. package/dist/client/assets/{Play-RXfEurLC.js → Play-DSJB4Nw2.js} +1 -1
  21. package/dist/client/assets/{Plus-7ete7Chf.js → Plus-BUBMXRTd.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-BcEdc8yb.js → RefreshCcw01-JqGzzm_-.js} +1 -1
  23. package/dist/client/assets/{SearchMd-CW4p_47C.js → SearchMd-CGISNeet.js} +1 -1
  24. package/dist/client/assets/{Settings02-BilcqWFp.js → Settings02-C4ziU-d4.js} +1 -1
  25. package/dist/client/assets/{Shield01-CWDizliI.js → Shield01-IwIv25Jp.js} +1 -1
  26. package/dist/client/assets/{Star01-Bc8W2nUe.js → Star01-J_T9yrd1.js} +1 -1
  27. package/dist/client/assets/{Stars01-H8xKRb3B.js → Stars01-BjgHV0Ah.js} +1 -1
  28. package/dist/client/assets/{Stars02-BG9BQfDN.js → Stars02-CUXVM8eC.js} +1 -1
  29. package/dist/client/assets/{Sun-2czCa7nh.js → Sun-BzriIyyb.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-X0-A3wlA.js → SwitchHorizontal01-CxiFSSn6.js} +1 -1
  31. package/dist/client/assets/{Tool01-C_efsdJ9.js → Tool01-BO2C1HmC.js} +1 -1
  32. package/dist/client/assets/{Trash01-D8gyPG4F.js → Trash01-DeyjRbcU.js} +1 -1
  33. package/dist/client/assets/{Upload01-CeZYEoZ8.js → Upload01-C4K5hWSL.js} +1 -1
  34. package/dist/client/assets/{User01-CfhPWLkj.js → User01-CyAUnciz.js} +1 -1
  35. package/dist/client/assets/{Users01-CwA0YZWL.js → Users01-CCUr4Yur.js} +1 -1
  36. package/dist/client/assets/{Users03-D_dEpKEB.js → Users03-Cwd2CyYY.js} +1 -1
  37. package/dist/client/assets/{X-Dlvmz5Lj.js → X-BoM0MLQn.js} +1 -1
  38. package/dist/client/assets/{XCircle-Q3LP6RaJ.js → XCircle-DZ20_zb3.js} +1 -1
  39. package/dist/client/assets/{XClose-CMlIOxQg.js → XClose-BLi9vIRd.js} +1 -1
  40. package/dist/client/assets/{Zap-C5hsI9kw.js → Zap-CrVhQ07E.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-OkNAvBeL.js → ZapSquare-CqyHqTSv.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-Btzzfq_K.js → ZoomOut-D1C0CDzK.js} +1 -1
  43. package/dist/client/assets/{access-gate-Uv1zLF5Y.js → access-gate-rgO__BFd.js} +1 -1
  44. package/dist/client/assets/{accordion-CoOSA6zg.js → accordion-CAJ4g4RV.js} +1 -1
  45. package/dist/client/assets/{add-section-modal-BH5ViPBB.js → add-section-modal-fGEm5qce.js} +1 -1
  46. package/dist/client/assets/agent-capabilities-Dl7XXwpG.js +3 -0
  47. package/dist/client/assets/{agent-icon-BiKNgOeT.js → agent-icon-C7paq9nL.js} +1 -1
  48. package/dist/client/assets/{agent-icons-Bt1m_ENb.js → agent-icons-hJ9xtdfo.js} +1 -1
  49. package/dist/client/assets/{agents-list-Bf5wbGTB.js → agents-list-BuXi88Zq.js} +1 -1
  50. package/dist/client/assets/{ai-providers-DRIUaAzW.js → ai-providers-C_J38hfO.js} +1 -1
  51. package/dist/client/assets/{alert-BWTI9LY5.js → alert-1jxJJFv9.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-D1sXzFR6.js → alert-dialog-DOf1CDFG.js} +1 -1
  53. package/dist/client/assets/app-editor-B9HEmwg1.js +1 -0
  54. package/dist/client/assets/{auth-catchall-p5-aZBW9.js → auth-catchall-CAKyNWmQ.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-DUM0vTfJ.js → auth-split-layout-DDzFkzzL.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-Cdl3j3R5.js → automation-list-row-D730hoTt.js} +1 -1
  57. package/dist/client/assets/{automation-runs-DjKtm8sC.js → automation-runs-BeoB4dd9.js} +1 -1
  58. package/dist/client/assets/{automations-DQdCdeIY.js → automations-3aEV0B6i.js} +1 -1
  59. package/dist/client/assets/{avatar-DcRL4WFc.js → avatar-BOZs09SE.js} +1 -1
  60. package/dist/client/assets/{badge-B2isb5t4.js → badge-Cf9p2KiH.js} +1 -1
  61. package/dist/client/assets/{brand-context-BlzqcU4f.js → brand-context-70H_l0C5.js} +1 -1
  62. package/dist/client/assets/{buckets-CNaD-KsO.js → buckets-AML8oaPV.js} +1 -1
  63. package/dist/client/assets/{calendar-DleQOR6C.js → calendar-BO9tcRYu.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-BIabmgVZ.js → capability-load-error-atGCCjOU.js} +1 -1
  65. package/dist/client/assets/{card-7rPQAdEb.js → card-wIb7H0Z4.js} +1 -1
  66. package/dist/client/assets/{chat-context-BpOhQo4D.js → chat-context-D4Cm-d6A.js} +1 -1
  67. package/dist/client/assets/{checkbox-DmtUHgAJ.js → checkbox-BwSTMmic.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-C8MYWV1f.js → cli-auth-success-CCe8_B5U.js} +1 -1
  69. package/dist/client/assets/{collection-detail-CClLQ75n.js → collection-detail-DS8OFm3e.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-CCzBk9Sy.js → collection-display-button-DUh8mQez.js} +1 -1
  71. package/dist/client/assets/{collection-search-CmhXzxiX.js → collection-search-CUV3pFhw.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-C0xQn6vd.js → collection-table-wrapper-afuL1hQ0.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-CyAZqj58.js → collection-tabs-CGllLoge.js} +1 -1
  74. package/dist/client/assets/{collections-D4J1DJ61.js → collections-D8RfaH_g.js} +1 -1
  75. package/dist/client/assets/{command-B-HknKNN.js → command-C-yJHbpu.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-wDkcQT-i.js → connect-desktop-dialog-hVZb8AY9.js} +1 -1
  77. package/dist/client/assets/{connection-card-DiU6mNhU.js → connection-card-vgtnONDT.js} +1 -1
  78. package/dist/client/assets/{connection-detail-w_f-Stjx.js → connection-detail-3pdA1O-Y.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-B5x3bKYp.js → connection-form-helpers-oCzpRzHj.js} +1 -1
  80. package/dist/client/assets/{connections-tTj2cPUZ.js → connections-kCOJLbco.js} +1 -1
  81. package/dist/client/assets/{constants-DpuEAZHq.js → constants-CnOnAK7r.js} +1 -1
  82. package/dist/client/assets/{decopilot-sse-pool-CLAzhWPC.js → decopilot-sse-pool-Bdv0H274.js} +1 -1
  83. package/dist/client/assets/{dialog-Co3xDPPR.js → dialog-CvEIov2R.js} +1 -1
  84. package/dist/client/assets/{domain-settings-C-YGglFw.js → domain-settings-DOArz2KT.js} +1 -1
  85. package/dist/client/assets/{drawer-B7pzzO8k.js → drawer-B_9l3ZhB.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-cIyq0nsy.js → dropdown-menu-BGgFPqgI.js} +1 -1
  87. package/dist/client/assets/{dynamic-plugin-layout-2hRmXntY.js → dynamic-plugin-layout-Bx-gzGnq.js} +1 -1
  88. package/dist/client/assets/{empty-state-BVd0NO3b.js → empty-state-BWGtqxUL.js} +1 -1
  89. package/dist/client/assets/{empty-state-BEKtdW4r.js → empty-state-Db1HVS3F.js} +1 -1
  90. package/dist/client/assets/{extract-connection-data-CV_04Mqr.js → extract-connection-data-CaeplLEr.js} +1 -1
  91. package/dist/client/assets/{features-MBg0vBXI.js → features-PxgwX_yM.js} +1 -1
  92. package/dist/client/assets/{file-explorer-DFh0G9AW.js → file-explorer-D4X9mNUX.js} +1 -1
  93. package/dist/client/assets/{file-type-icon-BUGLJdWu.js → file-type-icon-CUYwtPob.js} +1 -1
  94. package/dist/client/assets/{files-DrFFkAhA.js → files-BrehNRKw.js} +1 -1
  95. package/dist/client/assets/{form-ngFqzDUs.js → form-BRW-mO5v.js} +1 -1
  96. package/dist/client/assets/{general-CjaqrNa3.js → general-BZO56fxW.js} +1 -1
  97. package/dist/client/assets/{generate-id-B72e1YIz.js → generate-id-CdTqgONK.js} +1 -1
  98. package/dist/client/assets/{github-repo-picker-BYeMQGhG.js → github-repo-picker-hw4e_RVO.js} +1 -1
  99. package/dist/client/assets/{header-tab-button-CBrvR3rT.js → header-tab-button-IP2RhXhm.js} +1 -1
  100. package/dist/client/assets/{hover-card-HMEbmFNY.js → hover-card-BMrhboDz.js} +1 -1
  101. package/dist/client/assets/{image-field-BxdtQ-6B.js → image-field-BhWuARh_.js} +1 -1
  102. package/dist/client/assets/{index-Dx0tF1g4.js → index-37PxaG4U.js} +1 -1
  103. package/dist/client/assets/{index-CKvOOOxk.js → index-BHdQPz7N.js} +1 -1
  104. package/dist/client/assets/{index-B_bvlyHZ.js → index-Bn8JFywe.js} +1 -1
  105. package/dist/client/assets/{index-NBs1GdqN.js → index-BuKZbcmU.js} +1 -1
  106. package/dist/client/assets/{index-gacl_Tlu.js → index-BvZc_M4M.js} +4 -4
  107. package/dist/client/assets/{index-CgH2OhoV.js → index-C9Lj6Jk-.js} +1 -1
  108. package/dist/client/assets/{index-XIClfKQB.js → index-CLjpFTJZ.js} +1 -1
  109. package/dist/client/assets/{index-CsEESfyT.js → index-CNQY6k_W.js} +1 -1
  110. package/dist/client/assets/{index-BHx2Zpbq.js → index-CcJv2Spi.js} +1 -1
  111. package/dist/client/assets/{index-DMh_yIhm.js → index-Cueugb-e.js} +1 -1
  112. package/dist/client/assets/{index-CpmOG_Bg.js → index-D6_5HAZl.js} +3 -3
  113. package/dist/client/assets/{index-Bi91cUM-.js → index-XuzNc7bG.js} +1 -1
  114. package/dist/client/assets/{index-bE1s1gBY.js → index-b-XqjXTb.js} +1 -1
  115. package/dist/client/assets/{index-redirect-8hjLwAwq.js → index-redirect-CG43pYY_.js} +1 -1
  116. package/dist/client/assets/{index-DSTr5vNX.js → index-t0gLDn-a.js} +1 -1
  117. package/dist/client/assets/{index-d6i1w1J2.js → index-z0IJb09y.js} +1 -1
  118. package/dist/client/assets/{infiniteQueryObserver-BGllKZAR.js → infiniteQueryObserver-Bc9cuK8G.js} +1 -1
  119. package/dist/client/assets/{input-CUu-drFE.js → input-CL16zv3M.js} +1 -1
  120. package/dist/client/assets/{integration-icon-D6q3hp18.js → integration-icon-CQ-NchIr.js} +1 -1
  121. package/dist/client/assets/{label-BxSv953n.js → label-DjHnY7oD.js} +1 -1
  122. package/dist/client/assets/{layout-D9O0_n5-.js → layout-R7JZk0N_.js} +1 -1
  123. package/dist/client/assets/{login-BtinjvRm.js → login-vs48ss5Y.js} +1 -1
  124. package/dist/client/assets/{members-9bhWlLnl.js → members-CR6tIRQQ.js} +1 -1
  125. package/dist/client/assets/{monaco-editor-B1H6hrQ7.js → monaco-editor-DDa2PYLr.js} +1 -1
  126. package/dist/client/assets/{monitoring-stats-row-CJK7nT7g.js → monitoring-stats-row-B5tYqizL.js} +1 -1
  127. package/dist/client/assets/{oauth-callback-hNERmzi5.js → oauth-callback-By_kYLzt.js} +1 -1
  128. package/dist/client/assets/{oauth-callback-ai-provider-12bTV2K3.js → oauth-callback-ai-provider-rjNwAMeL.js} +1 -1
  129. package/dist/client/assets/{onboarding-DjpXCG4b.js → onboarding-Cp47PQJL.js} +1 -1
  130. package/dist/client/assets/{org-install-C84qwAhG.js → org-install-J4BxDvcP.js} +1 -1
  131. package/dist/client/assets/{org-layout-C1IF22AV.js → org-layout-Uzn1aBLq.js} +1 -1
  132. package/dist/client/assets/{org-plugin-layout-B-hCG8Uv.js → org-plugin-layout-DgjfQM0j.js} +1 -1
  133. package/dist/client/assets/{page-seo-form-Cl71A8BB.js → page-seo-form-bcXUoU_e.js} +1 -1
  134. package/dist/client/assets/page-seo-sheet-Ds2n8BSC.js +1 -0
  135. package/dist/client/assets/{pair-DN3rU5fI.js → pair-CBFiuxUB.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-osfTULg-.js → plugin-empty-state-C3zoexBS.js} +1 -1
  137. package/dist/client/assets/{plugin-header-YyMZMpGs.js → plugin-header-GIzvijnl.js} +1 -1
  138. package/dist/client/assets/{plugin-layout-BKOCCklg.js → plugin-layout-Dqb60rkf.js} +1 -1
  139. package/dist/client/assets/{popover-CH95HqFo.js → popover-CS_iXBnY.js} +1 -1
  140. package/dist/client/assets/{post-editor-caWnstD2.js → post-editor-CkT9Hn5n.js} +1 -1
  141. package/dist/client/assets/{primitives-CYYfaGAN.js → primitives-CA9Kk0m9.js} +1 -1
  142. package/dist/client/assets/{profile-C9o-RNVI.js → profile-Cl9Tf5eQ.js} +1 -1
  143. package/dist/client/assets/project-app-view-QqyHF6pe.js +1 -0
  144. package/dist/client/assets/record-editor-CuWJY7pj.js +1 -0
  145. package/dist/client/assets/registry-BfO0HF8o.js +2 -0
  146. package/dist/client/assets/{registry-layout-TnzbGAE3.js → registry-layout-DMqbdOK4.js} +1 -1
  147. package/dist/client/assets/{require-capability-BIm35L6j.js → require-capability-Ca6ka1Sn.js} +1 -1
  148. package/dist/client/assets/{required-auth-layout-DxD0Fs_0.js → required-auth-layout-aQSUe2N_.js} +1 -1
  149. package/dist/client/assets/{reset-password-BUxs2XXK.js → reset-password-BT-2N_qd.js} +1 -1
  150. package/dist/client/assets/{resizable-DELp11qo.js → resizable-B-Kg7sz_.js} +1 -1
  151. package/dist/client/assets/{roles-CqFm6K9j.js → roles-BJ71aLLv.js} +1 -1
  152. package/dist/client/assets/{save-status-XWlbhoid.js → save-status-CGb2Biez.js} +1 -1
  153. package/dist/client/assets/{schema-form-BnfXp9eD.js → schema-form-BRIUengr.js} +1 -1
  154. package/dist/client/assets/{scroll-area-B_wDwopu.js → scroll-area-CpcNn-v-.js} +1 -1
  155. package/dist/client/assets/{search-input-Dy32u4Yx.js → search-input-BmjJ0rJ1.js} +1 -1
  156. package/dist/client/assets/{secrets-CwM9vgs8.js → secrets-hp_Tfdyj.js} +1 -1
  157. package/dist/client/assets/{sections-editor-DOTPiLfV.js → sections-editor-DabUHooM.js} +1 -1
  158. package/dist/client/assets/{select-C1e50dcv.js → select-C81zuvtp.js} +1 -1
  159. package/dist/client/assets/{select-model-B7fxBb8r.js → select-model-CzLBWXoY.js} +1 -1
  160. package/dist/client/assets/{seo-editor-CywpjSiB.js → seo-editor-BU2d4emZ.js} +1 -1
  161. package/dist/client/assets/{settings-layout-Dz5plwN0.js → settings-layout-Ck0n7ap9.js} +1 -1
  162. package/dist/client/assets/{settings-section-CrtDCHpp.js → settings-section-B7fIZ_m0.js} +1 -1
  163. package/dist/client/assets/{sheet-lTSOvxho.js → sheet-D9O2scBf.js} +1 -1
  164. package/dist/client/assets/{shell-controls-BzKJJ-t7.js → shell-controls-B1uFpggl.js} +1 -1
  165. package/dist/client/assets/{shell-layout-D0i8OAWU.js → shell-layout-B5mx8HCW.js} +1 -1
  166. package/dist/client/assets/{shell-route-loading-B_ai_Hb2.js → shell-route-loading-Nvrm4NyQ.js} +1 -1
  167. package/dist/client/assets/{sidebar-Cjaut6KM.js → sidebar-DELjK07K.js} +1 -1
  168. package/dist/client/assets/{skeleton-BVkQR9ek.js → skeleton-CGcndXpH.js} +1 -1
  169. package/dist/client/assets/{sortable.esm-CgNsuB5K.js → sortable.esm-Cc5wE8Md.js} +1 -1
  170. package/dist/client/assets/{spinner-BAjOwgiW.js → spinner-DPcimsxj.js} +1 -1
  171. package/dist/client/assets/{sso-Co4mP4Ha.js → sso-CgUG1GPv.js} +1 -1
  172. package/dist/client/assets/{store-HVcQT0BU.js → store-DQ2V7yio.js} +1 -1
  173. package/dist/client/assets/store-registry-6BuBNha1.js +2 -0
  174. package/dist/client/assets/{switch-B3N-67ht.js → switch-D26GKac4.js} +1 -1
  175. package/dist/client/assets/{tab-id-QoM_GeD5.js → tab-id-B_7JAjTL.js} +1 -1
  176. package/dist/client/assets/{table-CBD1Q3-l.js → table-DP9s7KR8.js} +1 -1
  177. package/dist/client/assets/{tabs-DVFYJOQB.js → tabs-Jop0evx4.js} +1 -1
  178. package/dist/client/assets/{task-status-CG4f8Ssf.js → task-status-VzGHvxK_.js} +1 -1
  179. package/dist/client/assets/{textarea-BBLzCLOA.js → textarea-C_ciKAYv.js} +1 -1
  180. package/dist/client/assets/{toggle-group-Bpw9J7_z.js → toggle-group-CQHGgo0W.js} +1 -1
  181. package/dist/client/assets/{toolbar-CspqzRI5.js → toolbar-CO7J3Qlp.js} +1 -1
  182. package/dist/client/assets/{tools-list-xaKK1ECj.js → tools-list-CNevt541.js} +1 -1
  183. package/dist/client/assets/{tooltip-DW2J8RRA.js → tooltip-DjK_xTiM.js} +1 -1
  184. package/dist/client/assets/{types-LM2jh-lQ.js → types-BRYvxHV0.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-eErv1C43.js → use-ai-providers-CfNPOGmz.js} +1 -1
  186. package/dist/client/assets/{use-automations-HnokK13N.js → use-automations-_NxkdQLG.js} +1 -1
  187. package/dist/client/assets/{use-capability-FIcb8UxS.js → use-capability-CGr-3r92.js} +1 -1
  188. package/dist/client/assets/{use-collections-CqTjT3Mq.js → use-collections-ClKr7eLP.js} +1 -1
  189. package/dist/client/assets/{use-connection-D6Cpeajq.js → use-connection-QL9Osw0s.js} +1 -1
  190. package/dist/client/assets/{use-copy-Cw1fcUIO.js → use-copy-DR1yGhlv.js} +1 -1
  191. package/dist/client/assets/{use-create-virtual-mcp-CJC57gOy.js → use-create-virtual-mcp-B7FzzrhS.js} +1 -1
  192. package/dist/client/assets/{use-debounced-autosave-CgMlJ6Br.js → use-debounced-autosave-StOJyK5k.js} +1 -1
  193. package/dist/client/assets/{use-delete-connection-Bfeg-vSl.js → use-delete-connection-ka_zCpHH.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-P699ZQaF.js → use-file-configs-bSRypY4D.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-DiT_tcXi.js → use-infinite-scroll-D369zKBP.js} +1 -1
  196. package/dist/client/assets/{use-list-state-BNJ-tlPA.js → use-list-state-BFEd8KAZ.js} +1 -1
  197. package/dist/client/assets/{use-mcp-prompts-2--n2jev.js → use-mcp-prompts-BthLsr-5.js} +1 -1
  198. package/dist/client/assets/{use-mcp-tools-BvO9OVFB.js → use-mcp-tools-DKqH2jvx.js} +1 -1
  199. package/dist/client/assets/{use-members-B36Y5TQt.js → use-members-CARBs-BO.js} +1 -1
  200. package/dist/client/assets/{use-navigate-to-agent-dXmSFUhJ.js → use-navigate-to-agent-bL0bZjvs.js} +1 -1
  201. package/dist/client/assets/{use-org-auth-client-CAkVEUwL.js → use-org-auth-client-B-7f7gTM.js} +1 -1
  202. package/dist/client/assets/{use-org-sso-ClqqHr-X.js → use-org-sso-CQo4DX7V.js} +1 -1
  203. package/dist/client/assets/{use-organization-roles-GUTuXgpC.js → use-organization-roles-D1jilN1C.js} +1 -1
  204. package/dist/client/assets/{use-organization-settings-0_8sPkX5.js → use-organization-settings-Ba_pVlZU.js} +1 -1
  205. package/dist/client/assets/{use-registry-connections-BYyCxXS_.js → use-registry-connections-GFs4i1bK.js} +1 -1
  206. package/dist/client/assets/{use-secrets-WmW0rqmn.js → use-secrets-ChWP1SbP.js} +1 -1
  207. package/dist/client/assets/{use-status-sounds-DaqA5e9-.js → use-status-sounds-BecbYKFZ.js} +1 -1
  208. package/dist/client/assets/{use-view-mode-C3RTWiyQ.js → use-view-mode-BC-pIybW.js} +1 -1
  209. package/dist/client/assets/{use-virtual-mcp-Bpydv1NG.js → use-virtual-mcp-B_JQogr5.js} +1 -1
  210. package/dist/client/assets/useInfiniteQuery-BdAfpOZ8.js +1 -0
  211. package/dist/client/assets/{useRouterState-DK-9Hx-j.js → useRouterState-VRTDPwLh.js} +1 -1
  212. package/dist/client/assets/useSuspenseInfiniteQuery-BNJvF6Td.js +1 -0
  213. package/dist/client/assets/{user-DgFB9DGX.js → user-DFXkwuvu.js} +1 -1
  214. package/dist/client/assets/{view-mode-toggle-DwClLpGQ.js → view-mode-toggle-B2R8JuP1.js} +1 -1
  215. package/dist/client/assets/{workflow-Cfw5Ndhx.js → workflow-ChJtcD9q.js} +1 -1
  216. package/dist/client/assets/workflow-detail-soUgf3vg.js +1 -0
  217. package/dist/client/index.html +1 -1
  218. package/dist/server/cli.js +484 -478
  219. package/dist/server/migrate.js +1 -1
  220. package/dist/server/server.js +307 -307
  221. package/package.json +1 -1
  222. package/dist/client/assets/agent-capabilities-B5uA64tf.js +0 -3
  223. package/dist/client/assets/app-editor-BBElfEes.js +0 -1
  224. package/dist/client/assets/page-seo-sheet-BEHOuaNm.js +0 -1
  225. package/dist/client/assets/project-app-view-DAOiIs80.js +0 -1
  226. package/dist/client/assets/record-editor-BPzwKRSp.js +0 -1
  227. package/dist/client/assets/registry-_ZY4UYXD.js +0 -2
  228. package/dist/client/assets/store-registry-B0_EtqCG.js +0 -2
  229. package/dist/client/assets/useInfiniteQuery-8wlNRgz7.js +0 -1
  230. package/dist/client/assets/useSuspenseInfiniteQuery-Bg_jTe-C.js +0 -1
  231. package/dist/client/assets/workflow-detail-DDad04ZD.js +0 -1
@@ -1 +1 @@
1
- import{e as V,j as t,b as T,H as R,D as q,a0 as B,t as N,o as D}from"./index-CpmOG_Bg.js";import{P as L}from"./index-CsEESfyT.js";import{A as U}from"./avatar-DcRL4WFc.js";import{S as I}from"./switch-B3N-67ht.js";import{d as G,S as Y,c as $,b as H}from"./select-C1e50dcv.js";import{T as K,a as z}from"./toggle-group-Bpw9J7_z.js";import{I as O}from"./input-CUu-drFE.js";import{i as J}from"./Monitor01-gHlWGw8m.js";import{n as M,a as Q}from"./Sun-2czCa7nh.js";import{i as W}from"./Play-RXfEurLC.js";import{u as X}from"./use-debounced-autosave-CgMlJ6Br.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-d6i1w1J2.js";import{c as te,b as A,S as E,a as F}from"./settings-section-CrtDCHpp.js";import"./sidebar-Cjaut6KM.js";import"./LayoutLeft-CoO_xxXK.js";import"./tooltip-DW2J8RRA.js";import"./sheet-lTSOvxho.js";import"./X-Dlvmz5Lj.js";import"./User01-CfhPWLkj.js";import"./Check-BhYHl6b1.js";import"./ChevronDown-CniGrT2-.js";import"./ChevronUp-DzsjrX2b.js";import"./card-7rPQAdEb.js";import"./ArrowUpRight-tDPH0_4m.js";function se(){const e=V.c(19),{data:s,isPending:o}=T.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await T.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),D.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),D.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const b=v?.name??"U";let i;e[4]!==b||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:b,shape:"circle",size:"base"})}),e[4]=b,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const j=v?.email;let r;e[13]!==j?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:j})}),e[13]=j,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),D.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(J,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let b;e[13]!==p||e[14]!==s.enableNotifications?(b=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=b):b=e[15];let i;e[16]!==m||e[17]!==b?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:b}),e[16]=m,e[17]=b,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let j;e[23]!==o?(j=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=j):j=e[24];let r;e[25]!==s.enableSounds||e[26]!==j?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:j})]}),e[25]=s.enableSounds,e[26]=j,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(H,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function Te(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{Te as default};
1
+ import{e as V,j as t,b as T,H as R,D as q,a0 as B,t as N,o as D}from"./index-D6_5HAZl.js";import{P as L}from"./index-CNQY6k_W.js";import{A as U}from"./avatar-BOZs09SE.js";import{S as I}from"./switch-D26GKac4.js";import{d as G,S as Y,c as $,b as H}from"./select-C81zuvtp.js";import{T as K,a as z}from"./toggle-group-CQHGgo0W.js";import{I as O}from"./input-CL16zv3M.js";import{i as J}from"./Monitor01-DIoPLr7l.js";import{n as M,a as Q}from"./Sun-BzriIyyb.js";import{i as W}from"./Play-DSJB4Nw2.js";import{u as X}from"./use-debounced-autosave-StOJyK5k.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-z0IJb09y.js";import{c as te,b as A,S as E,a as F}from"./settings-section-B7fIZ_m0.js";import"./sidebar-DELjK07K.js";import"./LayoutLeft-CmXWN8pg.js";import"./tooltip-DjK_xTiM.js";import"./sheet-D9O2scBf.js";import"./X-BoM0MLQn.js";import"./User01-CyAUnciz.js";import"./Check-C4hca_-Y.js";import"./ChevronDown-Dxt-1uCb.js";import"./ChevronUp-aKq1AYju.js";import"./card-wIb7H0Z4.js";import"./ArrowUpRight-D_DImXhK.js";function se(){const e=V.c(19),{data:s,isPending:o}=T.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await T.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),D.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),D.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const b=v?.name??"U";let i;e[4]!==b||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:b,shape:"circle",size:"base"})}),e[4]=b,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const j=v?.email;let r;e[13]!==j?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:j})}),e[13]=j,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),D.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(J,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let b;e[13]!==p||e[14]!==s.enableNotifications?(b=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=b):b=e[15];let i;e[16]!==m||e[17]!==b?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:b}),e[16]=m,e[17]=b,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let j;e[23]!==o?(j=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=j):j=e[24];let r;e[25]!==s.enableSounds||e[26]!==j?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:j})]}),e[25]=s.enableSounds,e[26]=j,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(H,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function Te(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{Te as default};
@@ -0,0 +1 @@
1
+ import{e as H,q as $,j}from"./index-D6_5HAZl.js";import{h as q,g as O,s as b}from"./pair-CBFiuxUB.js";import{u as v}from"./constants-CnOnAK7r.js";import{a as L,c as B}from"./use-mcp-tools-DKqH2jvx.js";import{c as Y}from"./content-blocks-o63cs2vh.js";import{g as k,M as G,a as E}from"./types-BRYvxHV0.js";import{a as V,c as z}from"./chat-context-D4Cm-d6A.js";import{u as F}from"./shell-layout-B5mx8HCW.js";import"./agent-icon-C7paq9nL.js";import"./AlertCircle-CslgXeHr.js";import"./Tool01-BO2C1HmC.js";import"./SwitchHorizontal01-CxiFSSn6.js";import"./RefreshCcw01-JqGzzm_-.js";import"./XCircle-DZ20_zb3.js";import"./ArrowUpRight-D_DImXhK.js";import"./ZapSquare-CqyHqTSv.js";import"./Users03-Cwd2CyYY.js";import"./CheckCircle-HpSNY8ij.js";import"./Check-C4hca_-Y.js";import"./ChevronDown-Dxt-1uCb.js";import"./ChevronLeft-B5zdF1BR.js";import"./ChevronRight-CyvrXAe0.js";import"./ChevronUp-aKq1AYju.js";import"./DotsVertical-Bo9Tm-x1.js";import"./Container-DXqMOloC.js";import"./Eye-CBgMpWUe.js";import"./ZoomOut-D1C0CDzK.js";import"./Globe01-BgNeS-t5.js";import"./FilterLines-CWMZctUn.js";import"./Star01-J_T9yrd1.js";import"./Palette-BTCzP1Gm.js";import"./HardDrive-skQdR31x.js";import"./Stars02-CUXVM8eC.js";import"./Key01-CxukwP00.js";import"./LayoutLeft-CmXWN8pg.js";import"./LinkExternal01-l_9oMYRN.js";import"./Monitor01-DIoPLr7l.js";import"./Sun-BzriIyyb.js";import"./Play-DSJB4Nw2.js";import"./Plus-BUBMXRTd.js";import"./SearchMd-CGISNeet.js";import"./Settings02-C4ziU-d4.js";import"./Shield01-IwIv25Jp.js";import"./Stars01-BjgHV0Ah.js";import"./Trash01-DeyjRbcU.js";import"./Upload01-C4K5hWSL.js";import"./User01-CyAUnciz.js";import"./Users01-CCUr4Yur.js";import"./XClose-BLi9vIRd.js";import"./X-BoM0MLQn.js";import"./Zap-CrVhQ07E.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-CpcNn-v-.js";import"./select-C81zuvtp.js";import"./tooltip-DjK_xTiM.js";import"./use-copy-DR1yGhlv.js";import"./file-type-icon-CUYwtPob.js";import"./dialog-CvEIov2R.js";import"./tab-id-B_7JAjTL.js";import"./decopilot-sse-pool-Bdv0H274.js";import"./create-sse-subscription-BS5983N4.js";import"./integration-icon-CQ-NchIr.js";import"./use-virtual-mcp-B_JQogr5.js";import"./use-collections-ClKr7eLP.js";import"./use-navigate-to-agent-bL0bZjvs.js";import"./use-connection-QL9Osw0s.js";import"./use-mcp-prompts-BthLsr-5.js";import"./form-BRW-mO5v.js";import"./label-DjHnY7oD.js";import"./input-CL16zv3M.js";import"./spinner-DPcimsxj.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-ai-providers-CfNPOGmz.js";import"./use-organization-settings-Ba_pVlZU.js";import"./avatar-BOZs09SE.js";import"./required-auth-layout-aQSUe2N_.js";import"./useRouterState-VRTDPwLh.js";import"./use-org-sso-CQo4DX7V.js";const J={};function K(S){const t=H.c(37),{client:r,resourceURI:g,tool:e,connectionId:s,orgId:a,args:c}=S,{sendMessage:u}=V(),{setAppContext:d,clearAppContext:o}=z(),{setChatOpen:f,openTab:m}=F(),p=`${s}:${e.name}`;let l;t[0]!==m?(l=h=>h==="inline"?(m("0"),"inline"):"fullscreen",t[0]=m,t[1]=l):l=t[1];const i=l,n=c??J;let T;t[2]!==r||t[3]!==e.name||t[4]!==n?(T={client:r,toolName:e.name,toolArguments:n},t[2]=r,t[3]=e.name,t[4]=n,t[5]=T):T=t[5];const{data:x}=B(T);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=O(e._meta);R=b(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const U=R;let I;t[9]!==e.inputSchema?(I=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=I):I=t[10];let N;t[11]!==U||t[12]!==I||t[13]!==e?(N={...e,name:U,inputSchema:I},t[11]=U,t[12]=I,t[13]=e,t[14]=N):N=t[14];const y=N;let _;t[15]!==u||t[16]!==f?(_=h=>{const w=Y(h.content);w.content.length>0&&(f(!0),u({tiptapDoc:w}))},t[15]=u,t[16]=f,t[17]=_):_=t[17];const D=_;let C;t[18]!==y?(C={tool:y},t[18]=y,t[19]=C):C=t[19];let M;t[20]!==d||t[21]!==p?(M=h=>d(p,h),t[20]=d,t[21]=p,t[22]=M):M=t[22];let P;t[23]!==o||t[24]!==p?(P=()=>o(p),t[23]=o,t[24]=p,t[25]=P):P=t[25];let A;return t[26]!==r||t[27]!==D||t[28]!==i||t[29]!==a||t[30]!==g||t[31]!==C||t[32]!==M||t[33]!==P||t[34]!==n||t[35]!==x?(A=j.jsx(G,{resourceURI:g,orgId:a,toolInfo:C,toolInput:n,toolResult:x,displayMode:"fullscreen",minHeight:E.fullscreen.minHeight,maxHeight:E.fullscreen.maxHeight,client:r,onMessage:D,onUpdateModelContext:M,onTeardown:P,onRequestDisplayMode:i,className:"h-full"}),t[26]=r,t[27]=D,t[28]=i,t[29]=a,t[30]=g,t[31]=C,t[32]=M,t[33]=P,t[34]=n,t[35]=x,t[36]=A):A=t[36],A}function Pe(S){const t=H.c(20),{connectionId:r,toolName:g,args:e}=S,{org:s}=$();let a;t[0]!==r||t[1]!==s.id||t[2]!==s.slug?(a={connectionId:r,orgId:s.id,orgSlug:s.slug},t[0]=r,t[1]=s.id,t[2]=s.slug,t[3]=a):a=t[3];const c=v(a);let u;t[4]!==c?(u={client:c},t[4]=c,t[5]=u):u=t[5];const{data:d}=L(u);let o,f,m;t[6]!==g||t[7]!==d.tools?(o=q(decodeURIComponent(g)),m=d.tools.find(i=>i.name===o)??d.tools.find(i=>{const n=O(i._meta);if(!n)return!1;if(b(i.name,n)===o)return!0;const x=b(o,n);return x!==o&&i.name===x}),f=m?._meta?k(m._meta):void 0,t[6]=g,t[7]=d.tools,t[8]=o,t[9]=f,t[10]=m):(o=t[8],f=t[9],m=t[10]);const p=f;if(!m||!p){let i;return t[11]!==o?(i=j.jsx("div",{className:"flex items-center justify-center h-full w-full",children:j.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',o,'" not found or has no UI']})}),t[11]=o,t[12]=i):i=t[12],i}let l;return t[13]!==e||t[14]!==c||t[15]!==r||t[16]!==s.id||t[17]!==p||t[18]!==m?(l=j.jsx(K,{client:c,resourceURI:p,tool:m,connectionId:r,orgId:s.id,args:e}),t[13]=e,t[14]=c,t[15]=r,t[16]=s.id,t[17]=p,t[18]=m,t[19]=l):l=t[19],l}export{Pe as AppViewContent};
@@ -0,0 +1 @@
1
+ import{e as C,j as r}from"./index-D6_5HAZl.js";import{I as F}from"./input-CL16zv3M.js";import{L as T}from"./label-DjHnY7oD.js";import{T as L}from"./textarea-C_ciKAYv.js";import{I as A}from"./image-field-BhWuARh_.js";import{a7 as R,a8 as D,aa as J}from"./index-BvZc_M4M.js";import{u as K,s as S}from"./primitives-CA9Kk0m9.js";import{S as M}from"./save-status-CGb2Biez.js";import"./Tool01-BO2C1HmC.js";import"./Trash01-DeyjRbcU.js";import"./Upload01-C4K5hWSL.js";import"./AlertCircle-CslgXeHr.js";import"./Check-C4hca_-Y.js";import"./Eye-CBgMpWUe.js";import"./DotsVertical-Bo9Tm-x1.js";import"./agent-icon-C7paq9nL.js";import"./SwitchHorizontal01-CxiFSSn6.js";import"./RefreshCcw01-JqGzzm_-.js";import"./XCircle-DZ20_zb3.js";import"./ArrowUpRight-D_DImXhK.js";import"./ZapSquare-CqyHqTSv.js";import"./Users03-Cwd2CyYY.js";import"./CheckCircle-HpSNY8ij.js";import"./ChevronDown-Dxt-1uCb.js";import"./ChevronLeft-B5zdF1BR.js";import"./ChevronRight-CyvrXAe0.js";import"./ChevronUp-aKq1AYju.js";import"./Container-DXqMOloC.js";import"./ZoomOut-D1C0CDzK.js";import"./Globe01-BgNeS-t5.js";import"./FilterLines-CWMZctUn.js";import"./Star01-J_T9yrd1.js";import"./Palette-BTCzP1Gm.js";import"./HardDrive-skQdR31x.js";import"./Stars02-CUXVM8eC.js";import"./Key01-CxukwP00.js";import"./LayoutLeft-CmXWN8pg.js";import"./LinkExternal01-l_9oMYRN.js";import"./Monitor01-DIoPLr7l.js";import"./Sun-BzriIyyb.js";import"./Play-DSJB4Nw2.js";import"./Plus-BUBMXRTd.js";import"./SearchMd-CGISNeet.js";import"./Settings02-C4ziU-d4.js";import"./Shield01-IwIv25Jp.js";import"./Stars01-BjgHV0Ah.js";import"./User01-CyAUnciz.js";import"./Users01-CCUr4Yur.js";import"./XClose-BLi9vIRd.js";import"./X-BoM0MLQn.js";import"./Zap-CrVhQ07E.js";import"./dialog-CvEIov2R.js";import"./dropdown-menu-BGgFPqgI.js";import"./skeleton-CGcndXpH.js";import"./tabs-Jop0evx4.js";import"./use-file-configs-bSRypY4D.js";import"./constants-CnOnAK7r.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./useInfiniteQuery-BdAfpOZ8.js";import"./infiniteQueryObserver-Bc9cuK8G.js";import"./agent-capabilities-Dl7XXwpG.js";import"./pair-CBFiuxUB.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-CpcNn-v-.js";import"./select-C81zuvtp.js";import"./tooltip-DjK_xTiM.js";import"./use-copy-DR1yGhlv.js";import"./file-type-icon-CUYwtPob.js";import"./content-blocks-o63cs2vh.js";import"./types-BRYvxHV0.js";import"./chat-context-D4Cm-d6A.js";import"./tab-id-B_7JAjTL.js";import"./decopilot-sse-pool-Bdv0H274.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-B_JQogr5.js";import"./use-collections-ClKr7eLP.js";import"./use-ai-providers-CfNPOGmz.js";import"./use-organization-settings-Ba_pVlZU.js";import"./shell-layout-B5mx8HCW.js";import"./avatar-BOZs09SE.js";import"./required-auth-layout-aQSUe2N_.js";import"./useRouterState-VRTDPwLh.js";import"./use-org-sso-CQo4DX7V.js";import"./integration-icon-CQ-NchIr.js";import"./use-navigate-to-agent-bL0bZjvs.js";import"./use-connection-QL9Osw0s.js";import"./use-mcp-prompts-BthLsr-5.js";import"./form-BRW-mO5v.js";import"./spinner-DPcimsxj.js";import"./drawer-B_9l3ZhB.js";import"./collection-search-CUV3pFhw.js";import"./toggle-group-CQHGgo0W.js";import"./connect-desktop-dialog-hVZb8AY9.js";import"./agent-icons-hJ9xtdfo.js";import"./checkbox-BwSTMmic.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B7fIZ_m0.js";import"./card-wIb7H0Z4.js";import"./popover-CS_iXBnY.js";import"./command-C-yJHbpu.js";import"./index-XuzNc7bG.js";import"./sortable.esm-Cc5wE8Md.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-vgtnONDT.js";import"./use-registry-connections-GFs4i1bK.js";import"./extract-connection-data-CaeplLEr.js";import"./generate-id-CdTqgONK.js";import"./collections-D8RfaH_g.js";import"./collection-tabs-CGllLoge.js";import"./badge-Cf9p2KiH.js";import"./connection-form-helpers-oCzpRzHj.js";import"./use-infinite-scroll-D369zKBP.js";import"./useSuspenseInfiniteQuery-BNJvF6Td.js";import"./index-Bn8JFywe.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-Nvrm4NyQ.js";import"./sidebar-DELjK07K.js";import"./sheet-D9O2scBf.js";import"./toolbar-CO7J3Qlp.js";import"./use-create-virtual-mcp-B7FzzrhS.js";import"./github-repo-picker-hw4e_RVO.js";import"./use-mcp-tools-DKqH2jvx.js";import"./alert-dialog-DOf1CDFG.js";import"./index-z0IJb09y.js";import"./use-org-auth-client-B-7f7gTM.js";import"./hover-card-BMrhboDz.js";import"./task-status-VzGHvxK_.js";import"./use-status-sounds-BecbYKFZ.js";import"./empty-state-Db1HVS3F.js";import"./resizable-B-Kg7sz_.js";import"./use-capability-CGr-3r92.js";import"./header-tab-button-IP2RhXhm.js";import"./index-37PxaG4U.js";import"./user-DFXkwuvu.js";import"./tools-list-CNevt541.js";import"./switch-D26GKac4.js";import"./use-debounced-autosave-StOJyK5k.js";import"./index-CNQY6k_W.js";import"./search-input-BmjJ0rJ1.js";import"./use-secrets-ChWP1SbP.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-CAJ4g4RV.js";import"./view-mode-toggle-B2R8JuP1.js";import"./select-model-CzLBWXoY.js";import"./use-automations-_NxkdQLG.js";import"./monaco-editor-DDa2PYLr.js";import"./automation-runs-BeoB4dd9.js";import"./table-DP9s7KR8.js";import"./use-members-CARBs-BO.js";import"./automation-list-row-D730hoTt.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}],categories:[{key:"name",label:"Name",widget:"text"},{key:"slug",label:"Slug",widget:"text",placeholder:"my-category"}]},q={authors:"Author",categories:"Category"};function Tr(P){const t=C.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:y,block:f}=P;let u;t[0]!==w||t[1]!==v||t[2]!==j?(u={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=u):u=t[3];const m=R(u);let d;t[4]!==f||t[5]!==p?(d=D(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==y||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:y,data:J(y,p,e)})},t[7]=y,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(A,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:x=>a(o.key,x),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(T,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:S(i[o.key]),onChange:x=>a(o.key,x.target.value),rows:3}):r.jsx(F,{id:o.key,value:S(i[o.key]),placeholder:o.placeholder,onChange:x=>a(o.key,x.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let g;t[29]!==c?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=g):g=t[30];let b;return t[31]!==g||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,g]}),t[31]=g,t[32]=n,t[33]=b):b=t[33],b}export{Tr as RecordEditor};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DMqbdOK4.js","assets/index-D6_5HAZl.js","assets/index-BgFgIfs8.css","assets/XCircle-DZ20_zb3.js","assets/CheckCircle-HpSNY8ij.js","assets/Container-DXqMOloC.js","assets/Settings02-C4ziU-d4.js","assets/constants-CnOnAK7r.js","assets/useInfiniteQuery-BdAfpOZ8.js","assets/infiniteQueryObserver-Bc9cuK8G.js","assets/badge-Cf9p2KiH.js","assets/input-CL16zv3M.js","assets/dropdown-menu-BGgFPqgI.js","assets/Check-C4hca_-Y.js","assets/ChevronRight-CyvrXAe0.js","assets/DotsVertical-Bo9Tm-x1.js","assets/table-DP9s7KR8.js","assets/toggle-group-CQHGgo0W.js","assets/use-view-mode-BC-pIybW.js","assets/tooltip-DjK_xTiM.js","assets/FilterLines-CWMZctUn.js","assets/Globe01-BgNeS-t5.js","assets/SearchMd-CGISNeet.js","assets/dialog-CvEIov2R.js","assets/X-BoM0MLQn.js","assets/AlertCircle-CslgXeHr.js","assets/Upload01-C4K5hWSL.js","assets/alert-dialog-DOf1CDFG.js","assets/card-wIb7H0Z4.js","assets/Trash01-DeyjRbcU.js","assets/label-DjHnY7oD.js","assets/select-C81zuvtp.js","assets/ChevronDown-Dxt-1uCb.js","assets/ChevronUp-aKq1AYju.js","assets/switch-D26GKac4.js","assets/textarea-C_ciKAYv.js","assets/RefreshCcw01-JqGzzm_-.js","assets/checkbox-BwSTMmic.js","assets/Eye-CBgMpWUe.js","assets/LinkExternal01-l_9oMYRN.js","assets/use-copy-DR1yGhlv.js","assets/Key01-CxukwP00.js","assets/Plus-BUBMXRTd.js","assets/Play-DSJB4Nw2.js"])))=>i.map(i=>d[i]);
2
+ import{e as i,j as e,r as s,l as a,_ as o}from"./index-D6_5HAZl.js";import{R as l}from"./require-capability-Ca6ka1Sn.js";import"./use-capability-CGr-3r92.js";import"./access-gate-rgO__BFd.js";import"./capability-load-error-atGCCjOU.js";const m=s.lazy(()=>o(()=>import("./registry-layout-DMqbdOK4.js"),__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])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
@@ -1,4 +1,4 @@
1
- import{e as Y,q as ie,n as Ie,G as ke,a as je,o as V,r as M,j as t,B as G,l as ze,c as Z,M as Fs,J as Bs,bl as Qs,bm as Vs}from"./index-CpmOG_Bg.js";import{c as Jt,b as Gs,d as ds,a as Ks,i as Ys,t as Hs,f as Ws,e as Js}from"./XCircle-Q3LP6RaJ.js";import{i as Le}from"./CheckCircle-CVL_FX-8.js";import{n as Zs}from"./Container-D1PVb_TW.js";import{a as Xs}from"./Settings02-BilcqWFp.js";import{S as ce,u as oe,W as er}from"./constants-DpuEAZHq.js";import{u as us}from"./useInfiniteQuery-8wlNRgz7.js";import{B as F}from"./badge-B2isb5t4.js";import{I as ae}from"./input-CUu-drFE.js";import{a as dt,c as Ce,D as ut,b as mt,h as Zt,k as Xt,d as tr}from"./dropdown-menu-cIyq0nsy.js";import{c as Mt,d as Et,a as Fe,e as ue,b as Dt,T as me}from"./table-CBD1Q3-l.js";import{T as sr,a as es}from"./toggle-group-Bpw9J7_z.js";import{u as rr}from"./use-view-mode-C3RTWiyQ.js";import{i as At}from"./DotsVertical-_gNEu7zY.js";import{i as nr}from"./FilterLines-Bel4K6qN.js";import{n as ir,i as ms}from"./Globe01-D39kUdoP.js";import{i as lr}from"./SearchMd-CW4p_47C.js";import{b as xt,c as ht,e as pt,d as ft,a as gt,D as jt}from"./dialog-Co3xDPPR.js";import{i as Ke}from"./AlertCircle-B-r3okdw.js";import{i as ts}from"./Upload01-CeZYEoZ8.js";import{c as Ye,b as He,d as We,f as Je,g as Ze,e as Xe,a as et,A as tt}from"./alert-dialog-D1sXzFR6.js";import{C as ne}from"./card-7rPQAdEb.js";import{s as st}from"./Trash01-D8gyPG4F.js";import{L as X}from"./label-BxSv953n.js";import{d as ar,S as or,a as cr,b as dr,c as St}from"./select-C1e50dcv.js";import{S as Oe}from"./switch-B3N-67ht.js";import{T as vt}from"./textarea-BBLzCLOA.js";import{s as $t,b as ur,i as mr,a as xr}from"./RefreshCcw01-BcEdc8yb.js";import{i as hr}from"./X-Dlvmz5Lj.js";import{t as pr}from"./ChevronDown-CniGrT2-.js";import{n as fr}from"./ChevronUp-DzsjrX2b.js";import{C as ss}from"./checkbox-DmtUHgAJ.js";import{s as xs,a as Rt}from"./Eye-Cja82Q7U.js";import{n as gr}from"./LinkExternal01-DN-lMhNz.js";import{u as Tt}from"./use-copy-Cw1fcUIO.js";import{i as It}from"./Check-BhYHl6b1.js";import{i as jr}from"./Key01-DYyg_tnP.js";import{s as vr}from"./Plus-7ete7Chf.js";import{T as br,a as yr,b as Nr}from"./tooltip-DW2J8RRA.js";import{i as wr}from"./Play-RXfEurLC.js";import"./infiniteQueryObserver-BGllKZAR.js";import"./ChevronRight-COCWmVlT.js";const $e="private-registry",_r=`
1
+ import{e as Y,q as ie,n as Ie,G as ke,a as je,o as V,r as M,j as t,B as G,l as ze,c as Z,M as Fs,J as Bs,bl as Qs,bm as Vs}from"./index-D6_5HAZl.js";import{c as Jt,b as Gs,d as ds,a as Ks,i as Ys,t as Hs,f as Ws,e as Js}from"./XCircle-DZ20_zb3.js";import{i as Le}from"./CheckCircle-HpSNY8ij.js";import{n as Zs}from"./Container-DXqMOloC.js";import{a as Xs}from"./Settings02-C4ziU-d4.js";import{S as ce,u as oe,W as er}from"./constants-CnOnAK7r.js";import{u as us}from"./useInfiniteQuery-BdAfpOZ8.js";import{B as F}from"./badge-Cf9p2KiH.js";import{I as ae}from"./input-CL16zv3M.js";import{a as dt,c as Ce,D as ut,b as mt,h as Zt,k as Xt,d as tr}from"./dropdown-menu-BGgFPqgI.js";import{c as Mt,d as Et,a as Fe,e as ue,b as Dt,T as me}from"./table-DP9s7KR8.js";import{T as sr,a as es}from"./toggle-group-CQHGgo0W.js";import{u as rr}from"./use-view-mode-BC-pIybW.js";import{i as At}from"./DotsVertical-Bo9Tm-x1.js";import{i as nr}from"./FilterLines-CWMZctUn.js";import{n as ir,i as ms}from"./Globe01-BgNeS-t5.js";import{i as lr}from"./SearchMd-CGISNeet.js";import{b as xt,c as ht,e as pt,d as ft,a as gt,D as jt}from"./dialog-CvEIov2R.js";import{i as Ke}from"./AlertCircle-CslgXeHr.js";import{i as ts}from"./Upload01-C4K5hWSL.js";import{c as Ye,b as He,d as We,f as Je,g as Ze,e as Xe,a as et,A as tt}from"./alert-dialog-DOf1CDFG.js";import{C as ne}from"./card-wIb7H0Z4.js";import{s as st}from"./Trash01-DeyjRbcU.js";import{L as X}from"./label-DjHnY7oD.js";import{d as ar,S as or,a as cr,b as dr,c as St}from"./select-C81zuvtp.js";import{S as Oe}from"./switch-D26GKac4.js";import{T as vt}from"./textarea-C_ciKAYv.js";import{s as $t,b as ur,i as mr,a as xr}from"./RefreshCcw01-JqGzzm_-.js";import{i as hr}from"./X-BoM0MLQn.js";import{t as pr}from"./ChevronDown-Dxt-1uCb.js";import{n as fr}from"./ChevronUp-aKq1AYju.js";import{C as ss}from"./checkbox-BwSTMmic.js";import{s as xs,a as Rt}from"./Eye-CBgMpWUe.js";import{n as gr}from"./LinkExternal01-l_9oMYRN.js";import{u as Tt}from"./use-copy-DR1yGhlv.js";import{i as It}from"./Check-C4hca_-Y.js";import{i as jr}from"./Key01-CxukwP00.js";import{s as vr}from"./Plus-BUBMXRTd.js";import{T as br,a as yr,b as Nr}from"./tooltip-DjK_xTiM.js";import{i as wr}from"./Play-DSJB4Nw2.js";import"./infiniteQueryObserver-Bc9cuK8G.js";import"./ChevronRight-CyvrXAe0.js";const $e="private-registry",_r=`
2
2
  You are an MCP tool tester running automated integration checks.
3
3
 
4
4
  Goal:
@@ -1 +1 @@
1
- import{e as p,j as m}from"./index-CpmOG_Bg.js";import{u as l}from"./use-capability-FIcb8UxS.js";import{A as u}from"./access-gate-Uv1zLF5Y.js";function b(n){const t=p.c(6),{capability:c,area:e,children:i}=n,{granted:a,loading:o,error:s}=l(c);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
1
+ import{e as p,j as m}from"./index-D6_5HAZl.js";import{u as l}from"./use-capability-CGr-3r92.js";import{A as u}from"./access-gate-rgO__BFd.js";function b(n){const t=p.c(6),{capability:c,area:e,children:i}=n,{granted:a,loading:o,error:s}=l(c);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
@@ -1 +1 @@
1
- import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-CpmOG_Bg.js";import{u as x}from"./useRouterState-DK-9Hx-j.js";function g(){const t=c.c(5),s=x().location.href;let n;t[0]!==s?(n=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=n):n=t[1];const r=n;let o;if(t[2]!==s||t[3]!==r){const l=r?{}:{next:s};o=i.jsx(h,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=r,t[4]=o}else o=t[4];return o}function j(t){const e=c.c(6),{children:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(a,{children:i.jsx(u,{})}),e[0]=n):n=e[0];let r;e[1]!==s?(r=i.jsx(m,{children:s}),e[1]=s,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==r?(l=i.jsxs(i.Fragment,{children:[n,r,o]}),e[4]=r,e[5]=l):l=e[5],l}export{j as R};
1
+ import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-D6_5HAZl.js";import{u as x}from"./useRouterState-VRTDPwLh.js";function g(){const t=c.c(5),s=x().location.href;let n;t[0]!==s?(n=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=n):n=t[1];const r=n;let o;if(t[2]!==s||t[3]!==r){const l=r?{}:{next:s};o=i.jsx(h,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=r,t[4]=o}else o=t[4];return o}function j(t){const e=c.c(6),{children:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(a,{children:i.jsx(u,{})}),e[0]=n):n=e[0];let r;e[1]!==s?(r=i.jsx(m,{children:s}),e[1]=s,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==r?(l=i.jsxs(i.Fragment,{children:[n,r,o]}),e[4]=r,e[5]=l):l=e[5],l}export{j as R};
@@ -1 +1 @@
1
- import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-CpmOG_Bg.js";import{I as L}from"./input-CUu-drFE.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
1
+ import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-D6_5HAZl.js";import{I as L}from"./input-CL16zv3M.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
@@ -1 +1 @@
1
- import{r as f,aQ as Sn,e as Me,j as he,c as Ye}from"./index-CpmOG_Bg.js";import{d as Pn}from"./ZoomOut-Btzzfq_K.js";const Ee=f.createContext(null);Ee.displayName="PanelGroupContext";const k={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},_e=10,ne=f.useLayoutEffect,je=Sn.useId,wn=typeof je=="function"?je:()=>null;let En=0;function Ge(n=null){const e=wn(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+En++),n??t.current}function Ze({children:n,className:e="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(Ee);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:L,getPanelSize:H,getPanelStyle:D,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:j,resizePanel:X,unregisterPanel:F}=E,G=Ge(l),$=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:M}=$.current,B={...M};$.current.id=G,$.current.idIsFromProps=l!==void 0,$.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,M.collapsedSize=t,M.collapsible=r,M.defaultSize=i,M.maxSize=a,M.minSize=s,(B.collapsedSize!==M.collapsedSize||B.collapsible!==M.collapsible||B.maxSize!==M.maxSize||B.minSize!==M.minSize)&&P($.current,B)}),ne(()=>{const _=$.current;return j(_),()=>{F(_)}},[u,G,j,F]),f.useImperativeHandle(o,()=>({collapse:()=>{S($.current)},expand:_=>{L($.current,_)},getId(){return G},getSize(){return H($.current)},isCollapsed(){return R($.current)},isExpanded(){return!R($.current)},resize:_=>{X($.current,_)}}),[S,L,H,R,G,X]);const Z=D($.current,i);return f.createElement(z,{...C,children:n,className:e,id:G,style:{...Z,...v},[k.groupId]:V,[k.panel]:"",[k.panelCollapsible]:r||void 0,[k.panelId]:G,[k.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const Qe=f.forwardRef((n,e)=>f.createElement(Ze,{...n,forwardedRef:e}));Ze.displayName="Panel";Qe.displayName="forwardRef(Panel)";let De=null,Se=-1,Y=null;function Cn(n,e){if(e){const t=(e&on)!==0,r=(e&ln)!==0,i=(e&an)!==0,o=(e&sn)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function In(){Y!==null&&(document.head.removeChild(Y),De=null,Y=null,Se=-1)}function Ae(n,e){var t,r;const i=Cn(n,e);if(De!==i){if(De=i,Y===null&&(Y=document.createElement("style"),document.head.appendChild(Y)),Se>=0){var o;(o=Y.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=Y.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function en(n){return n.type==="keydown"}function nn(n){return n.type.startsWith("pointer")}function tn(n){return n.type.startsWith("mouse")}function Ce(n){if(nn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(tn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ln(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function An(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:Ve(n),b:Ve(e)};let r;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),r=n;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ue(Ke(t.a)),b:Ue(Ke(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const kn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function $n(n){var e;const t=getComputedStyle((e=rn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Hn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||$n(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||kn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ke(n){let e=n.length;for(;e--;){const t=n[e];if(x(t,"Missing node"),Hn(t))return t}return null}function Ue(n){return n&&Number(getComputedStyle(n).zIndex)||0}function Ve(n){const e=[];for(;n;)e.push(n),n=rn(n);return e}function rn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const on=1,ln=2,an=4,sn=8,Nn=Rn()==="coarse";let U=[],ae=!1,ee=new Map,Ie=new Map;const ze=new Set;function Dn(n,e,t,r,i){var o;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,s+1),ze.add(a),Pe(),function(){var w;Ie.delete(n),ze.delete(a);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),Pe(),p===1&&ee.delete(l),U.includes(a)){const u=U.indexOf(a);u>=0&&U.splice(u,1),Te(),i("up",!0,null)}}}function Mn(n){const{target:e}=n,{x:t,y:r}=Ce(n);ae=!0,Be({target:e,x:t,y:r}),Pe(),U.length>0&&(we("down",n),n.preventDefault(),un(e)||n.stopImmediatePropagation())}function ke(n){const{x:e,y:t}=Ce(n);if(ae&&n.buttons===0&&(ae=!1,we("up",n)),!ae){const{target:r}=n;Be({target:r,x:e,y:t})}we("move",n),Te(),U.length>0&&n.preventDefault()}function $e(n){const{target:e}=n,{x:t,y:r}=Ce(n);Ie.clear(),ae=!1,U.length>0&&(n.preventDefault(),un(e)||n.stopImmediatePropagation()),we("up",n),Be({target:e,x:t,y:r}),Te(),Pe()}function un(n){let e=n;for(;e;){if(e.hasAttribute(k.resizeHandle))return!0;e=e.parentElement}return!1}function Be({target:n,x:e,y:t}){U.splice(0);let r=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(r=n),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=Nn?l.coarse:l.fine;if(e>=h-u&&e<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&An(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Ln(z.getBoundingClientRect(),a)){C=!0;break}z=z.parentElement}if(C)return}U.push(i)}})}function He(n,e){Ie.set(n,e)}function Te(){let n=!1,e=!1;U.forEach(r=>{const{direction:i}=r;i==="horizontal"?n=!0:e=!0});let t=0;Ie.forEach(r=>{t|=r}),n&&e?Ae("intersection",t):n?Ae("horizontal",t):e?Ae("vertical",t):In()}let Ne=new AbortController;function Pe(){Ne.abort(),Ne=new AbortController;const n={capture:!0,signal:Ne.signal};ze.size&&(ae?(U.length>0&&ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",$e,n),r.addEventListener("pointerleave",ke,n),r.addEventListener("pointermove",ke,n))}),window.addEventListener("pointerup",$e,n),window.addEventListener("pointercancel",$e,n)):ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",Mn,n),r.addEventListener("pointermove",ke,n))}))}function we(n,e){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=U.includes(t);r(n,i,e)})}function _n(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function x(n,e){if(!n)throw console.error(e),Error(e)}function te(n,e,t=_e){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function J(n,e,t=_e){return te(n,e,t)===0}function W(n,e,t){return te(n,e,t)===0}function Gn(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){const i=n[r],o=e[r];if(!W(i,o,t))return!1}return!0}function le({panelConstraints:n,panelIndex:e,size:t}){const r=n[e];x(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(te(t,a)<0)if(o){const s=(i+a)/2;te(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(_e)),t}function ge({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(W(n,0))return e;const l=[...e],[a,s]=r;x(a!=null,"Invalid first pivot index"),x(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=n<0?s:a,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,v)){const S=C-E;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const p=n<0?a:s,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,C)){const S=E-v;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const p=n<0?1:-1;let u=n<0?s:a,v=0;for(;;){const C=e[u];x(C!=null,`Previous layout not found for panel index ${u}`);const S=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(n),Math.abs(v));n=n<0?0-z:z}{let u=n<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(n)-Math.abs(h),z=e[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!W(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?u--:u++}}if(Gn(i,l))return i;{const p=n<0?s:a,u=e[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!W(z,v)){let C=v-z,S=n<0?s:a;for(;S>=0&&S<t.length;){const L=l[S];x(L!=null,`Previous layout not found for panel index ${S}`);const H=L+C,D=le({panelConstraints:t,panelIndex:S,size:H});if(W(L,D)||(C-=D-L,l[S]=D),W(C,0))break;n>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return W(w,100)?l:i}function Bn({layout:n,panelsArray:e,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];x(a!=null,"No pivot index found"),e.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===a?(r=C,i=z):(o+=C,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=n[a];return{valueMax:s,valueMin:h,valueNow:w}}function ye(n,e=document){return Array.from(e.querySelectorAll(`[${k.resizeHandleId}][data-panel-group-id="${n}"]`))}function cn(n,e,t=document){const i=ye(n,t).findIndex(o=>o.getAttribute(k.resizeHandleId)===e);return i??null}function fn(n,e,t){const r=cn(n,e,t);return r!=null?[r,r+1]:[-1,-1]}function dn(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return r||null}function Re(n,e=document){const t=e.querySelector(`[${k.resizeHandleId}="${n}"]`);return t||null}function Tn(n,e,t,r=document){var i,o,l,a;const s=Re(e,r),h=ye(n,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Fn({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const a=ye(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Bn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];x(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const a=e.current;x(a,"Eager values not found");const{panelDataArray:s}=a,h=dn(t,o);x(h!=null,`No group found for id "${t}"`);const w=ye(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(k.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Tn(t,v,s,o);if(z==null||C==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const L=s.findIndex(H=>H.id===z);if(L>=0){const H=s[L];x(H,`No panel data found for index ${L}`);const D=r[L],{collapsedSize:V=0,collapsible:R,minSize:P=0}=H.constraints;if(D!=null&&R){const j=ge({delta:W(D,V)?P-V:V-D,initialLayout:r,panelConstraints:s.map(X=>X.constraints),pivotIndices:fn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==j&&l(j)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,n,e,t,r,i,l])}function Oe(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function pn(n,e){const t=n==="horizontal",{x:r,y:i}=Ce(e);return t?r:i}function Wn(n,e,t,r,i){const o=t==="horizontal",l=Re(e,i);x(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute(k.groupId);x(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=pn(t,n),w=dn(a,i);x(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function jn(n,e,t,r,i,o){if(en(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Wn(n,e,t,r,o)}function Kn({panelDataArray:n}){const e=Array(n.length),t=n.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-r,h=i/s;r++,e[o]=h,i-=h}return e}function oe(n,e,t){e.forEach((r,i)=>{const o=n[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||J(p,h))&&!J(r,h)&&v(),u&&(p==null||!J(p,h))&&J(r,h)&&u())}})}function be(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Un({defaultSize:n,dragState:e,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Vn(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function qe(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function gn(n){return`react-resizable-panels:${n}`}function mn(n){return n.map(e=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function hn(n,e){try{const t=gn(n),r=e.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function On(n,e,t){var r,i;const o=(r=hn(n,t))!==null&&r!==void 0?r:{},l=mn(e);return(i=o[l])!==null&&i!==void 0?i:null}function qn(n,e,t,r,i){var o;const l=gn(n),a=mn(e),s=(o=hn(n,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function Xe({layout:n,panelConstraints:e}){const t=[...n],r=t.reduce((o,l)=>o+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!W(r,100)&&t.length>0)for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=le({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!W(i,0))for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=l+i,s=le({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,W(i,0)))break}return t}const Xn=100,me={getItem:n=>(qe(me),me.getItem(n)),setItem:(n,e)=>{qe(me),me.setItem(n,e)}},Je={};function zn({autoSaveId:n=null,children:e,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=me,style:h,tagName:w="div",...p}){const u=Ge(o),v=f.useRef(null),[z,C]=f.useState(null),[E,S]=f.useState([]),L=_n(),H=f.useRef({}),D=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current,d=Xe({layout:c,panelConstraints:g.map(y=>y.constraints)});Oe(b,d)||(S(d),P.current.layout=d,m&&m(d),oe(g,d,H.current))}}),[]),ne(()=>{R.current.autoSaveId=n,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=s}),Fn({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(n){if(E.length===0||E.length!==c.length)return;let m=Je[n];m==null&&(m=Vn(qn,Xn),Je[n]=m);const b=[...c],g=new Map(D.current);m(n,b,g,E,s)}},[n,E,s]),f.useEffect(()=>{});const j=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(O=>O.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:N}=Q(g,c,b);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!J(I,y)){D.current.set(c.id,I);const q=ie(g,c)===g.length-1?I-y:y-I,A=ge({delta:q,initialLayout:b,panelConstraints:d,pivotIndices:N,prevLayout:b,trigger:"imperative-api"});be(b,A)||(S(A),P.current.layout=A,m&&m(A),oe(g,A,H.current))}}},[]),X=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(K=>K.constraints),{collapsedSize:I=0,panelSize:N=0,minSize:O=0,pivotIndices:q}=Q(d,c,g),A=m??O;if(J(N,I)){const K=D.current.get(c.id),de=K!=null&&K>=A?K:A,Le=ie(d,c)===d.length-1?N-de:de-N,T=ge({delta:Le,initialLayout:g,panelConstraints:y,pivotIndices:q,prevLayout:g,trigger:"imperative-api"});be(g,T)||(S(T),P.current.layout=T,b&&b(T),oe(d,T,H.current))}}},[]),F=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{panelSize:g}=Q(b,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:b}=P.current,g=ie(b,c);return Un({defaultSize:m,dragState:z,layout:E,panelData:b,panelIndex:g})},[z,E]),$=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&J(y,g)},[]),Z=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((b,g)=>{const d=b.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:b}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const N=On(c,d,b);N&&(D.current=new Map(Object.entries(N.expandToSizes)),y=N.layout)}y==null&&(y=Kn({panelDataArray:d}));const I=Xe({layout:y,panelConstraints:d.map(N=>N.constraints)});Oe(g,I)||(S(I),P.current.layout=I,m&&m(I),oe(d,I,H.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const M=f.useCallback(c=>{let m=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:N,id:O,keyboardResizeBy:q,onLayout:A}=R.current,{layout:K,panelDataArray:de}=P.current,{initialLayout:ve}=N??{},Le=fn(O,c,y);let T=jn(d,c,I,N,q,y);const Fe=I==="horizontal";Fe&&m&&(T=-T);const vn=de.map(bn=>bn.constraints),pe=ge({delta:T,initialLayout:ve??K,panelConstraints:vn,pivotIndices:Le,prevLayout:K,trigger:en(d)?"keyboard":"mouse-or-touch"}),We=!be(K,pe);(nn(d)||tn(d))&&V.current!=T&&(V.current=T,!We&&T!==0?Fe?He(c,T<0?on:ln):He(c,T<0?an:sn):He(c,0)),We&&(S(pe),P.current.layout=pe,A&&A(pe),oe(de,pe,H.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(K=>K.constraints),{panelSize:I,pivotIndices:N}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const q=ie(d,c)===d.length-1?I-m:m-I,A=ge({delta:q,initialLayout:g,panelConstraints:y,pivotIndices:N,prevLayout:g,trigger:"imperative-api"});be(g,A)||(S(A),P.current.layout=A,b&&b(A),oe(d,A,H.current))},[]),se=f.useCallback((c,m)=>{const{layout:b,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:N,maxSize:O=100,minSize:q=0}=c.constraints,{panelSize:A}=Q(g,c,b);A!=null&&(y&&N&&J(A,d)?J(d,I)||B(c,I):A<q?B(c,q):A>O&&B(c,O))},[B]),ue=f.useCallback((c,m)=>{const{direction:b}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Re(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=pn(b,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),xe=f.useCallback(c=>{const{panelDataArray:m}=P.current,b=ie(m,c);b>=0&&(m.splice(b,1),delete H.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:j,direction:r,dragState:z,expandPanel:X,getPanelSize:F,getPanelStyle:G,groupId:u,isPanelCollapsed:$,isPanelExpanded:Z,reevaluatePanelConstraints:se,registerPanel:_,registerResizeHandle:M,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:xe,panelGroupElement:v.current}),[j,z,r,X,F,G,u,$,Z,se,_,M,B,ue,ce,xe]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ee.Provider,{value:re},f.createElement(w,{...p,children:e,className:t,id:o,ref:v,style:{...fe,...h},[k.group]:"",[k.groupDirection]:r,[k.groupId]:u}))}const yn=f.forwardRef((n,e)=>f.createElement(zn,{...n,forwardedRef:e}));zn.displayName="PanelGroup";yn.displayName="forwardRef(PanelGroup)";function ie(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Q(n,e,t){const r=ie(n,e),o=r===n.length-1?[r-1,r]:[r,r+1],l=t[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Jn({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(n||t==null||r==null)return;const i=Re(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(k.groupId);x(a,`No group element found for id "${a}"`);const s=ye(a,r),h=cn(a,e,r);x(h!==null,`No resize element found for id "${e}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,n,e,t])}function xn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const S=f.useRef(null),L=f.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=a,L.current.onPointerDown=h,L.current.onPointerUp=w});const H=f.useContext(Ee);if(H===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:D,groupId:V,registerResizeHandle:R,startDragging:P,stopDragging:j,panelGroupElement:X}=H,F=Ge(i),[G,$]=f.useState("inactive"),[Z,_]=f.useState(!1),[M,B]=f.useState(null),se=f.useRef({state:G});ne(()=>{se.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(F);B(()=>re)}},[t,F,R]);const ue=(C=r?.coarse)!==null&&C!==void 0?C:15,ce=(E=r?.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||M==null)return;const re=S.current;x(re,"Element ref not attached");let fe=!1;return Dn(F,re,D,{coarse:ue,fine:ce},(m,b,g)=>{if(!b){$("inactive");return}switch(m){case"down":{$("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(F,g);const{onDragging:d,onPointerDown:y}=L.current;d?.(!0),y?.();break}case"move":{const{state:d}=se.current;fe=!0,d!=="drag"&&$("hover"),x(g,'Expected event to be defined for "move" action'),M(g);break}case"up":{$("hover"),j();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y?.(!1),I?.(),fe||d?.();break}}})},[ue,D,t,ce,R,F,M,P,j]),Jn({disabled:t,handleId:F,resizeHandler:M,panelGroupElement:X});const xe={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:n,className:e,id:i,onBlur:()=>{_(!1),o?.()},onFocus:()=>{_(!0),s?.()},ref:S,role:"separator",style:{...xe,...p},tabIndex:u,[k.groupDirection]:D,[k.groupId]:V,[k.resizeHandle]:"",[k.resizeHandleActive]:G==="drag"?"pointer":Z?"keyboard":void 0,[k.resizeHandleEnabled]:!t,[k.resizeHandleId]:F,[k.resizeHandleState]:G})}xn.displayName="PanelResizeHandle";function Qn(n){const e=Me.c(10);let t,r,i;e[0]!==n?({className:t,ref:i,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==i||e[8]!==o?(l=he.jsx(yn,{ref:i,"data-slot":"resizable-panel-group",className:o,...r}),e[6]=r,e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function et(n){const e=Me.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let r;return e[2]!==t?(r=he.jsx(Qe,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=r):r=e[3],r}function nt(n){const e=Me.c(12);let t,r,i;e[0]!==n?({withHandle:i,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=o):o=e[5];let l;e[6]!==i?(l=i&&he.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:he.jsx(Pn,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==o||e[10]!==l?(a=he.jsx(xn,{"data-slot":"resizable-handle",className:o,...r,children:l}),e[8]=r,e[9]=o,e[10]=l,e[11]=a):a=e[11],a}export{et as R,nt as a,Qn as b};
1
+ import{r as f,aQ as Sn,e as Me,j as he,c as Ye}from"./index-D6_5HAZl.js";import{d as Pn}from"./ZoomOut-D1C0CDzK.js";const Ee=f.createContext(null);Ee.displayName="PanelGroupContext";const k={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},_e=10,ne=f.useLayoutEffect,je=Sn.useId,wn=typeof je=="function"?je:()=>null;let En=0;function Ge(n=null){const e=wn(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+En++),n??t.current}function Ze({children:n,className:e="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(Ee);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:L,getPanelSize:H,getPanelStyle:D,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:j,resizePanel:X,unregisterPanel:F}=E,G=Ge(l),$=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:M}=$.current,B={...M};$.current.id=G,$.current.idIsFromProps=l!==void 0,$.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,M.collapsedSize=t,M.collapsible=r,M.defaultSize=i,M.maxSize=a,M.minSize=s,(B.collapsedSize!==M.collapsedSize||B.collapsible!==M.collapsible||B.maxSize!==M.maxSize||B.minSize!==M.minSize)&&P($.current,B)}),ne(()=>{const _=$.current;return j(_),()=>{F(_)}},[u,G,j,F]),f.useImperativeHandle(o,()=>({collapse:()=>{S($.current)},expand:_=>{L($.current,_)},getId(){return G},getSize(){return H($.current)},isCollapsed(){return R($.current)},isExpanded(){return!R($.current)},resize:_=>{X($.current,_)}}),[S,L,H,R,G,X]);const Z=D($.current,i);return f.createElement(z,{...C,children:n,className:e,id:G,style:{...Z,...v},[k.groupId]:V,[k.panel]:"",[k.panelCollapsible]:r||void 0,[k.panelId]:G,[k.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const Qe=f.forwardRef((n,e)=>f.createElement(Ze,{...n,forwardedRef:e}));Ze.displayName="Panel";Qe.displayName="forwardRef(Panel)";let De=null,Se=-1,Y=null;function Cn(n,e){if(e){const t=(e&on)!==0,r=(e&ln)!==0,i=(e&an)!==0,o=(e&sn)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function In(){Y!==null&&(document.head.removeChild(Y),De=null,Y=null,Se=-1)}function Ae(n,e){var t,r;const i=Cn(n,e);if(De!==i){if(De=i,Y===null&&(Y=document.createElement("style"),document.head.appendChild(Y)),Se>=0){var o;(o=Y.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=Y.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function en(n){return n.type==="keydown"}function nn(n){return n.type.startsWith("pointer")}function tn(n){return n.type.startsWith("mouse")}function Ce(n){if(nn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(tn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ln(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function An(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:Ve(n),b:Ve(e)};let r;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),r=n;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ue(Ke(t.a)),b:Ue(Ke(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const kn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function $n(n){var e;const t=getComputedStyle((e=rn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Hn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||$n(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||kn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ke(n){let e=n.length;for(;e--;){const t=n[e];if(x(t,"Missing node"),Hn(t))return t}return null}function Ue(n){return n&&Number(getComputedStyle(n).zIndex)||0}function Ve(n){const e=[];for(;n;)e.push(n),n=rn(n);return e}function rn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const on=1,ln=2,an=4,sn=8,Nn=Rn()==="coarse";let U=[],ae=!1,ee=new Map,Ie=new Map;const ze=new Set;function Dn(n,e,t,r,i){var o;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,s+1),ze.add(a),Pe(),function(){var w;Ie.delete(n),ze.delete(a);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),Pe(),p===1&&ee.delete(l),U.includes(a)){const u=U.indexOf(a);u>=0&&U.splice(u,1),Te(),i("up",!0,null)}}}function Mn(n){const{target:e}=n,{x:t,y:r}=Ce(n);ae=!0,Be({target:e,x:t,y:r}),Pe(),U.length>0&&(we("down",n),n.preventDefault(),un(e)||n.stopImmediatePropagation())}function ke(n){const{x:e,y:t}=Ce(n);if(ae&&n.buttons===0&&(ae=!1,we("up",n)),!ae){const{target:r}=n;Be({target:r,x:e,y:t})}we("move",n),Te(),U.length>0&&n.preventDefault()}function $e(n){const{target:e}=n,{x:t,y:r}=Ce(n);Ie.clear(),ae=!1,U.length>0&&(n.preventDefault(),un(e)||n.stopImmediatePropagation()),we("up",n),Be({target:e,x:t,y:r}),Te(),Pe()}function un(n){let e=n;for(;e;){if(e.hasAttribute(k.resizeHandle))return!0;e=e.parentElement}return!1}function Be({target:n,x:e,y:t}){U.splice(0);let r=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(r=n),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=Nn?l.coarse:l.fine;if(e>=h-u&&e<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&An(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Ln(z.getBoundingClientRect(),a)){C=!0;break}z=z.parentElement}if(C)return}U.push(i)}})}function He(n,e){Ie.set(n,e)}function Te(){let n=!1,e=!1;U.forEach(r=>{const{direction:i}=r;i==="horizontal"?n=!0:e=!0});let t=0;Ie.forEach(r=>{t|=r}),n&&e?Ae("intersection",t):n?Ae("horizontal",t):e?Ae("vertical",t):In()}let Ne=new AbortController;function Pe(){Ne.abort(),Ne=new AbortController;const n={capture:!0,signal:Ne.signal};ze.size&&(ae?(U.length>0&&ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",$e,n),r.addEventListener("pointerleave",ke,n),r.addEventListener("pointermove",ke,n))}),window.addEventListener("pointerup",$e,n),window.addEventListener("pointercancel",$e,n)):ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",Mn,n),r.addEventListener("pointermove",ke,n))}))}function we(n,e){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=U.includes(t);r(n,i,e)})}function _n(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function x(n,e){if(!n)throw console.error(e),Error(e)}function te(n,e,t=_e){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function J(n,e,t=_e){return te(n,e,t)===0}function W(n,e,t){return te(n,e,t)===0}function Gn(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){const i=n[r],o=e[r];if(!W(i,o,t))return!1}return!0}function le({panelConstraints:n,panelIndex:e,size:t}){const r=n[e];x(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(te(t,a)<0)if(o){const s=(i+a)/2;te(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(_e)),t}function ge({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(W(n,0))return e;const l=[...e],[a,s]=r;x(a!=null,"Invalid first pivot index"),x(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=n<0?s:a,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,v)){const S=C-E;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const p=n<0?a:s,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,C)){const S=E-v;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const p=n<0?1:-1;let u=n<0?s:a,v=0;for(;;){const C=e[u];x(C!=null,`Previous layout not found for panel index ${u}`);const S=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(n),Math.abs(v));n=n<0?0-z:z}{let u=n<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(n)-Math.abs(h),z=e[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!W(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?u--:u++}}if(Gn(i,l))return i;{const p=n<0?s:a,u=e[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!W(z,v)){let C=v-z,S=n<0?s:a;for(;S>=0&&S<t.length;){const L=l[S];x(L!=null,`Previous layout not found for panel index ${S}`);const H=L+C,D=le({panelConstraints:t,panelIndex:S,size:H});if(W(L,D)||(C-=D-L,l[S]=D),W(C,0))break;n>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return W(w,100)?l:i}function Bn({layout:n,panelsArray:e,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];x(a!=null,"No pivot index found"),e.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===a?(r=C,i=z):(o+=C,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=n[a];return{valueMax:s,valueMin:h,valueNow:w}}function ye(n,e=document){return Array.from(e.querySelectorAll(`[${k.resizeHandleId}][data-panel-group-id="${n}"]`))}function cn(n,e,t=document){const i=ye(n,t).findIndex(o=>o.getAttribute(k.resizeHandleId)===e);return i??null}function fn(n,e,t){const r=cn(n,e,t);return r!=null?[r,r+1]:[-1,-1]}function dn(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return r||null}function Re(n,e=document){const t=e.querySelector(`[${k.resizeHandleId}="${n}"]`);return t||null}function Tn(n,e,t,r=document){var i,o,l,a;const s=Re(e,r),h=ye(n,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Fn({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const a=ye(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Bn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];x(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const a=e.current;x(a,"Eager values not found");const{panelDataArray:s}=a,h=dn(t,o);x(h!=null,`No group found for id "${t}"`);const w=ye(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(k.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Tn(t,v,s,o);if(z==null||C==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const L=s.findIndex(H=>H.id===z);if(L>=0){const H=s[L];x(H,`No panel data found for index ${L}`);const D=r[L],{collapsedSize:V=0,collapsible:R,minSize:P=0}=H.constraints;if(D!=null&&R){const j=ge({delta:W(D,V)?P-V:V-D,initialLayout:r,panelConstraints:s.map(X=>X.constraints),pivotIndices:fn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==j&&l(j)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,n,e,t,r,i,l])}function Oe(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function pn(n,e){const t=n==="horizontal",{x:r,y:i}=Ce(e);return t?r:i}function Wn(n,e,t,r,i){const o=t==="horizontal",l=Re(e,i);x(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute(k.groupId);x(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=pn(t,n),w=dn(a,i);x(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function jn(n,e,t,r,i,o){if(en(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Wn(n,e,t,r,o)}function Kn({panelDataArray:n}){const e=Array(n.length),t=n.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-r,h=i/s;r++,e[o]=h,i-=h}return e}function oe(n,e,t){e.forEach((r,i)=>{const o=n[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||J(p,h))&&!J(r,h)&&v(),u&&(p==null||!J(p,h))&&J(r,h)&&u())}})}function be(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Un({defaultSize:n,dragState:e,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Vn(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function qe(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function gn(n){return`react-resizable-panels:${n}`}function mn(n){return n.map(e=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function hn(n,e){try{const t=gn(n),r=e.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function On(n,e,t){var r,i;const o=(r=hn(n,t))!==null&&r!==void 0?r:{},l=mn(e);return(i=o[l])!==null&&i!==void 0?i:null}function qn(n,e,t,r,i){var o;const l=gn(n),a=mn(e),s=(o=hn(n,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function Xe({layout:n,panelConstraints:e}){const t=[...n],r=t.reduce((o,l)=>o+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!W(r,100)&&t.length>0)for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=le({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!W(i,0))for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=l+i,s=le({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,W(i,0)))break}return t}const Xn=100,me={getItem:n=>(qe(me),me.getItem(n)),setItem:(n,e)=>{qe(me),me.setItem(n,e)}},Je={};function zn({autoSaveId:n=null,children:e,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=me,style:h,tagName:w="div",...p}){const u=Ge(o),v=f.useRef(null),[z,C]=f.useState(null),[E,S]=f.useState([]),L=_n(),H=f.useRef({}),D=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current,d=Xe({layout:c,panelConstraints:g.map(y=>y.constraints)});Oe(b,d)||(S(d),P.current.layout=d,m&&m(d),oe(g,d,H.current))}}),[]),ne(()=>{R.current.autoSaveId=n,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=s}),Fn({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(n){if(E.length===0||E.length!==c.length)return;let m=Je[n];m==null&&(m=Vn(qn,Xn),Je[n]=m);const b=[...c],g=new Map(D.current);m(n,b,g,E,s)}},[n,E,s]),f.useEffect(()=>{});const j=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(O=>O.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:N}=Q(g,c,b);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!J(I,y)){D.current.set(c.id,I);const q=ie(g,c)===g.length-1?I-y:y-I,A=ge({delta:q,initialLayout:b,panelConstraints:d,pivotIndices:N,prevLayout:b,trigger:"imperative-api"});be(b,A)||(S(A),P.current.layout=A,m&&m(A),oe(g,A,H.current))}}},[]),X=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(K=>K.constraints),{collapsedSize:I=0,panelSize:N=0,minSize:O=0,pivotIndices:q}=Q(d,c,g),A=m??O;if(J(N,I)){const K=D.current.get(c.id),de=K!=null&&K>=A?K:A,Le=ie(d,c)===d.length-1?N-de:de-N,T=ge({delta:Le,initialLayout:g,panelConstraints:y,pivotIndices:q,prevLayout:g,trigger:"imperative-api"});be(g,T)||(S(T),P.current.layout=T,b&&b(T),oe(d,T,H.current))}}},[]),F=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{panelSize:g}=Q(b,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:b}=P.current,g=ie(b,c);return Un({defaultSize:m,dragState:z,layout:E,panelData:b,panelIndex:g})},[z,E]),$=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&J(y,g)},[]),Z=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((b,g)=>{const d=b.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:b}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const N=On(c,d,b);N&&(D.current=new Map(Object.entries(N.expandToSizes)),y=N.layout)}y==null&&(y=Kn({panelDataArray:d}));const I=Xe({layout:y,panelConstraints:d.map(N=>N.constraints)});Oe(g,I)||(S(I),P.current.layout=I,m&&m(I),oe(d,I,H.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const M=f.useCallback(c=>{let m=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:N,id:O,keyboardResizeBy:q,onLayout:A}=R.current,{layout:K,panelDataArray:de}=P.current,{initialLayout:ve}=N??{},Le=fn(O,c,y);let T=jn(d,c,I,N,q,y);const Fe=I==="horizontal";Fe&&m&&(T=-T);const vn=de.map(bn=>bn.constraints),pe=ge({delta:T,initialLayout:ve??K,panelConstraints:vn,pivotIndices:Le,prevLayout:K,trigger:en(d)?"keyboard":"mouse-or-touch"}),We=!be(K,pe);(nn(d)||tn(d))&&V.current!=T&&(V.current=T,!We&&T!==0?Fe?He(c,T<0?on:ln):He(c,T<0?an:sn):He(c,0)),We&&(S(pe),P.current.layout=pe,A&&A(pe),oe(de,pe,H.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(K=>K.constraints),{panelSize:I,pivotIndices:N}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const q=ie(d,c)===d.length-1?I-m:m-I,A=ge({delta:q,initialLayout:g,panelConstraints:y,pivotIndices:N,prevLayout:g,trigger:"imperative-api"});be(g,A)||(S(A),P.current.layout=A,b&&b(A),oe(d,A,H.current))},[]),se=f.useCallback((c,m)=>{const{layout:b,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:N,maxSize:O=100,minSize:q=0}=c.constraints,{panelSize:A}=Q(g,c,b);A!=null&&(y&&N&&J(A,d)?J(d,I)||B(c,I):A<q?B(c,q):A>O&&B(c,O))},[B]),ue=f.useCallback((c,m)=>{const{direction:b}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Re(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=pn(b,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),xe=f.useCallback(c=>{const{panelDataArray:m}=P.current,b=ie(m,c);b>=0&&(m.splice(b,1),delete H.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:j,direction:r,dragState:z,expandPanel:X,getPanelSize:F,getPanelStyle:G,groupId:u,isPanelCollapsed:$,isPanelExpanded:Z,reevaluatePanelConstraints:se,registerPanel:_,registerResizeHandle:M,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:xe,panelGroupElement:v.current}),[j,z,r,X,F,G,u,$,Z,se,_,M,B,ue,ce,xe]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ee.Provider,{value:re},f.createElement(w,{...p,children:e,className:t,id:o,ref:v,style:{...fe,...h},[k.group]:"",[k.groupDirection]:r,[k.groupId]:u}))}const yn=f.forwardRef((n,e)=>f.createElement(zn,{...n,forwardedRef:e}));zn.displayName="PanelGroup";yn.displayName="forwardRef(PanelGroup)";function ie(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Q(n,e,t){const r=ie(n,e),o=r===n.length-1?[r-1,r]:[r,r+1],l=t[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Jn({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(n||t==null||r==null)return;const i=Re(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(k.groupId);x(a,`No group element found for id "${a}"`);const s=ye(a,r),h=cn(a,e,r);x(h!==null,`No resize element found for id "${e}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,n,e,t])}function xn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const S=f.useRef(null),L=f.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=a,L.current.onPointerDown=h,L.current.onPointerUp=w});const H=f.useContext(Ee);if(H===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:D,groupId:V,registerResizeHandle:R,startDragging:P,stopDragging:j,panelGroupElement:X}=H,F=Ge(i),[G,$]=f.useState("inactive"),[Z,_]=f.useState(!1),[M,B]=f.useState(null),se=f.useRef({state:G});ne(()=>{se.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(F);B(()=>re)}},[t,F,R]);const ue=(C=r?.coarse)!==null&&C!==void 0?C:15,ce=(E=r?.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||M==null)return;const re=S.current;x(re,"Element ref not attached");let fe=!1;return Dn(F,re,D,{coarse:ue,fine:ce},(m,b,g)=>{if(!b){$("inactive");return}switch(m){case"down":{$("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(F,g);const{onDragging:d,onPointerDown:y}=L.current;d?.(!0),y?.();break}case"move":{const{state:d}=se.current;fe=!0,d!=="drag"&&$("hover"),x(g,'Expected event to be defined for "move" action'),M(g);break}case"up":{$("hover"),j();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y?.(!1),I?.(),fe||d?.();break}}})},[ue,D,t,ce,R,F,M,P,j]),Jn({disabled:t,handleId:F,resizeHandler:M,panelGroupElement:X});const xe={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:n,className:e,id:i,onBlur:()=>{_(!1),o?.()},onFocus:()=>{_(!0),s?.()},ref:S,role:"separator",style:{...xe,...p},tabIndex:u,[k.groupDirection]:D,[k.groupId]:V,[k.resizeHandle]:"",[k.resizeHandleActive]:G==="drag"?"pointer":Z?"keyboard":void 0,[k.resizeHandleEnabled]:!t,[k.resizeHandleId]:F,[k.resizeHandleState]:G})}xn.displayName="PanelResizeHandle";function Qn(n){const e=Me.c(10);let t,r,i;e[0]!==n?({className:t,ref:i,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==i||e[8]!==o?(l=he.jsx(yn,{ref:i,"data-slot":"resizable-panel-group",className:o,...r}),e[6]=r,e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function et(n){const e=Me.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let r;return e[2]!==t?(r=he.jsx(Qe,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=r):r=e[3],r}function nt(n){const e=Me.c(12);let t,r,i;e[0]!==n?({withHandle:i,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=o):o=e[5];let l;e[6]!==i?(l=i&&he.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:he.jsx(Pn,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==o||e[10]!==l?(a=he.jsx(xn,{"data-slot":"resizable-handle",className:o,...r,children:l}),e[8]=r,e[9]=o,e[10]=l,e[11]=a):a=e[11],a}export{et as R,nt as a,Qn as b};