decocms 3.112.2 → 3.112.3

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 (218) hide show
  1. package/dist/client/assets/{AlertCircle-CzIdrsPe.js → AlertCircle-BhSO5Twf.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-d-McfeTp.js → ArrowUpRight-DdpAwwxM.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-CGWBWaF4.js → CheckCircle-Xk-HyAZE.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-BSMOH4GN.js → ChevronDown-DjI9Ah6n.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-sTx1d03w.js → ChevronLeft-BFb1BrOh.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-C5PSQAe8.js → ChevronRight-BAc41q_Y.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-Cv3UG4VC.js → ChevronUp-UIn_3dHA.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-QQbESzVQ.js → DotsVertical-Bvp1DFrg.js} +1 -1
  9. package/dist/client/assets/{Eye-BKfEBTR6.js → Eye-BcHeo8OC.js} +1 -1
  10. package/dist/client/assets/{FilterLines-jO13dYdi.js → FilterLines-YkqgITmY.js} +1 -1
  11. package/dist/client/assets/{Globe01-D-5I09_1.js → Globe01-D2j8m26P.js} +1 -1
  12. package/dist/client/assets/{Globe04-CxdBUmsy.js → Globe04-C2SZSHBy.js} +1 -1
  13. package/dist/client/assets/{HardDrive-BVAgx0xq.js → HardDrive-BSN492Hp.js} +1 -1
  14. package/dist/client/assets/{Key01-Duu4Kv4L.js → Key01-CvSwoCFY.js} +1 -1
  15. package/dist/client/assets/{LayoutLeft-DCkN0cQJ.js → LayoutLeft-B9LtoNr5.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-BvKrBHVq.js → LinkExternal01-DuDM-dnL.js} +1 -1
  17. package/dist/client/assets/{Monitor01-Dgw5JUxQ.js → Monitor01-Qw5xJyG2.js} +1 -1
  18. package/dist/client/assets/{Palette-BUMNen50.js → Palette-ChkPBary.js} +1 -1
  19. package/dist/client/assets/{Play-eeHi-AX7.js → Play-IlsQDEUP.js} +1 -1
  20. package/dist/client/assets/{Plus-NToHlEg2.js → Plus-DVlEi_3L.js} +1 -1
  21. package/dist/client/assets/{SearchLg-CgBplEiw.js → SearchLg-BIORAwuK.js} +1 -1
  22. package/dist/client/assets/{SearchMd-6O6GiFiF.js → SearchMd-CTp_yTnU.js} +1 -1
  23. package/dist/client/assets/{Settings02-DbJL_Tra.js → Settings02-hQL04X7-.js} +1 -1
  24. package/dist/client/assets/{Shield01-Bmld8xSM.js → Shield01-D4MVNzZ5.js} +1 -1
  25. package/dist/client/assets/{Star01-DFQYfscL.js → Star01-DOH6S4RS.js} +1 -1
  26. package/dist/client/assets/{Stars01-BoU6NAMR.js → Stars01-D6kYyOXX.js} +1 -1
  27. package/dist/client/assets/{Stars02-Cr_Es7Gy.js → Stars02-Dg0VuXKP.js} +1 -1
  28. package/dist/client/assets/{Sun-C8ejLyiC.js → Sun-Bvs8Be4l.js} +1 -1
  29. package/dist/client/assets/{SwitchHorizontal01-CtKf5tEe.js → SwitchHorizontal01-dHIjRjs4.js} +1 -1
  30. package/dist/client/assets/{Tool01-CQy-Zc7d.js → Tool01-C2Wy9ddS.js} +1 -1
  31. package/dist/client/assets/{Trash01-CuZl7D3Y.js → Trash01-ioK8wGcX.js} +1 -1
  32. package/dist/client/assets/{Upload01-Bu2c0ULj.js → Upload01-y8AitCX_.js} +1 -1
  33. package/dist/client/assets/{User01-B1FwGbIY.js → User01-CxvFJWlw.js} +1 -1
  34. package/dist/client/assets/{Users01-1DHq38re.js → Users01-DUhNk4D1.js} +1 -1
  35. package/dist/client/assets/{Users03-D27-2joB.js → Users03-B7IMqo7U.js} +1 -1
  36. package/dist/client/assets/{X-krPcwbrq.js → X-BJkEaciD.js} +1 -1
  37. package/dist/client/assets/{XCircle-D7jPFiCg.js → XCircle-DXiqmV8m.js} +1 -1
  38. package/dist/client/assets/{XClose-DOOshGb0.js → XClose-C-z27vFA.js} +1 -1
  39. package/dist/client/assets/{Zap-_qvpS23v.js → Zap-KSy73DcB.js} +1 -1
  40. package/dist/client/assets/{ZapSquare-duAEQmzm.js → ZapSquare-A7DF2PWn.js} +1 -1
  41. package/dist/client/assets/{ZoomOut-DxQk7sae.js → ZoomOut-Ci9Q3RHZ.js} +1 -1
  42. package/dist/client/assets/{access-gate-DQ-5adb6.js → access-gate-D-y_Un36.js} +1 -1
  43. package/dist/client/assets/{add-section-modal-DscBIlVV.js → add-section-modal-C28o5DHb.js} +1 -1
  44. package/dist/client/assets/{agent-icon-DtAe4QA2.js → agent-icon-1Cwh4hkP.js} +1 -1
  45. package/dist/client/assets/{agents-list-BufrhIEF.js → agents-list-BDxvVPHR.js} +1 -1
  46. package/dist/client/assets/{ai-providers-wBZ3SLkA.js → ai-providers-Bw8qaxG3.js} +1 -1
  47. package/dist/client/assets/{alert-Bqb0BjJT.js → alert-C0wZgcSN.js} +1 -1
  48. package/dist/client/assets/{alert-dialog-kSFMmJXm.js → alert-dialog-CwkyXqH2.js} +1 -1
  49. package/dist/client/assets/{app-editor-S0A3fVO6.js → app-editor-CpzykCGY.js} +1 -1
  50. package/dist/client/assets/{auth-gjnhTvi5.js → auth-DT4EIgFs.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-CpuZPnRK.js → auth-catchall-xAKLrX26.js} +1 -1
  52. package/dist/client/assets/{auth-entry-DNxpDwip.js → auth-entry-sWJP_TqI.js} +1 -1
  53. package/dist/client/assets/{auth-split-layout-B0zk7ss2.js → auth-split-layout-Dy6_0L_d.js} +1 -1
  54. package/dist/client/assets/{authenticate-and-persist-oauth-B65Ekq8w.js → authenticate-and-persist-oauth-DtrjZzTS.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-DBKSr9eM.js → automation-list-row-P--kLagS.js} +1 -1
  56. package/dist/client/assets/{automation-runs-Cnk8OYai.js → automation-runs-BpvA3NrO.js} +1 -1
  57. package/dist/client/assets/{automations-CCyN0FKF.js → automations-BGT2yM66.js} +1 -1
  58. package/dist/client/assets/{avatar-BUuVB0OM.js → avatar-W_lUBW2r.js} +1 -1
  59. package/dist/client/assets/{badge-CABvv7j-.js → badge-BDbhVtEB.js} +1 -1
  60. package/dist/client/assets/{block-document-CYVoCNLt.js → block-document-CJmNAwMu.js} +1 -1
  61. package/dist/client/assets/{brand-context-D8J7F3t6.js → brand-context-DYl2rk_W.js} +1 -1
  62. package/dist/client/assets/{buckets-GBgG4MM1.js → buckets-C8Wa8Wv3.js} +1 -1
  63. package/dist/client/assets/{bulk-category-panel-DjLwsAYE.js → bulk-category-panel-DcIwXwO5.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-CnsyVE7o.js → capability-load-error-XerfE3R8.js} +1 -1
  65. package/dist/client/assets/{card-yO9ahfyg.js → card-BJrMnoeO.js} +1 -1
  66. package/dist/client/assets/{category-editor-DZP_5nLU.js → category-editor-Cd95Vg43.js} +1 -1
  67. package/dist/client/assets/{chat-context-C2fQ7A44.js → chat-context-C5Dv0tTg.js} +1 -1
  68. package/dist/client/assets/{checkbox-BILJodYH.js → checkbox-367KGph9.js} +1 -1
  69. package/dist/client/assets/{cli-auth-success-BYzmXc5w.js → cli-auth-success-BpcbH0O5.js} +1 -1
  70. package/dist/client/assets/{collection-detail-lL9iMr3S.js → collection-detail-OCKyst3E.js} +1 -1
  71. package/dist/client/assets/{collection-display-button-C9f33xU-.js → collection-display-button-DCiLrK74.js} +1 -1
  72. package/dist/client/assets/{collection-search-DVOdXXKt.js → collection-search-DzlllM3V.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-DrndLmnC.js → collection-tabs-BfUAY8z2.js} +1 -1
  74. package/dist/client/assets/{command-BofTZ1F3.js → command-CFE9B-sb.js} +1 -1
  75. package/dist/client/assets/{commerce-onboarding-CIxOUzUM.js → commerce-onboarding-BSv7Ort3.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-DngfqiIJ.js → connect-desktop-dialog-B3FevdKG.js} +1 -1
  77. package/dist/client/assets/{connection-card-BDPLTIDM.js → connection-card-KOVkCaek.js} +1 -1
  78. package/dist/client/assets/{connection-detail-DdAAeESC.js → connection-detail-DMbJ1DTC.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-x5xuSAeR.js → connection-form-helpers-BEonMIwB.js} +1 -1
  80. package/dist/client/assets/{connections-wV2CJcDC.js → connections-GE9zibTJ.js} +1 -1
  81. package/dist/client/assets/{context-menu-BLm9Y433.js → context-menu-DGDyOrdt.js} +1 -1
  82. package/dist/client/assets/{decopilot-DSvGNCSl.js → decopilot-DbXK2c3g.js} +1 -1
  83. package/dist/client/assets/{decopilot-sse-pool-BuXpbrkf.js → decopilot-sse-pool-CfHubug8.js} +1 -1
  84. package/dist/client/assets/{dialog-CauQU0Ef.js → dialog-CymwL5lO.js} +1 -1
  85. package/dist/client/assets/{domain-settings-CntnBgst.js → domain-settings-DjD_IFbk.js} +1 -1
  86. package/dist/client/assets/{drawer-MJc90PUb.js → drawer-Cb9A4OVK.js} +1 -1
  87. package/dist/client/assets/{dropdown-menu-BO9nmkr0.js → dropdown-menu-DE9I1deT.js} +1 -1
  88. package/dist/client/assets/{empty-state-DBQumgnx.js → empty-state-B-swTT-U.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-DG-sAs8O.js → extract-connection-data-CIPj3tI0.js} +1 -1
  90. package/dist/client/assets/{file-explorer-DoJnoTKv.js → file-explorer-LWyCCj95.js} +1 -1
  91. package/dist/client/assets/{file-type-icon-DqM6AfOQ.js → file-type-icon-B2EgQ19E.js} +1 -1
  92. package/dist/client/assets/{files-pghQFWOW.js → files-6gxhhsbh.js} +1 -1
  93. package/dist/client/assets/{form-DCj2JfvE.js → form-CoZSZB1f.js} +1 -1
  94. package/dist/client/assets/{general-BcbkZBjA.js → general-CYnw3h5_.js} +1 -1
  95. package/dist/client/assets/{github-repo-picker-Cd3Pws2k.js → github-repo-picker-BBmy0ULl.js} +1 -1
  96. package/dist/client/assets/{hooks-B7-Sd1fa.js → hooks-lMbMn8Le.js} +1 -1
  97. package/dist/client/assets/{import-from-deco-dialog-DbIXkbY1.js → import-from-deco-dialog-X4L-3jNA.js} +1 -1
  98. package/dist/client/assets/{index--SasJUOp.js → index-BA1AFQeU.js} +1 -1
  99. package/dist/client/assets/{index-ChiAKgjP.js → index-BZc7xOAR.js} +1 -1
  100. package/dist/client/assets/{index-C0JR5_r6.js → index-Bq4DOwVe.js} +1 -1
  101. package/dist/client/assets/{index-Dq9YczfU.js → index-C7QerrAO.js} +1 -1
  102. package/dist/client/assets/{index-CP3QgKcT.js → index-CGtb2pr4.js} +1 -1
  103. package/dist/client/assets/{index-DOhgMQFz.js → index-CJs3lrz9.js} +1 -1
  104. package/dist/client/assets/{index-Dv9eD-aO.js → index-CLlAg9w2.js} +1 -1
  105. package/dist/client/assets/{index-DhoK-2ai.js → index-DX3jDFqO.js} +5 -5
  106. package/dist/client/assets/{index-Ce-NoXEp.js → index-D_UOP9mB.js} +3 -3
  107. package/dist/client/assets/{index-C6yeaOeV.js → index-Dh95wcQ-.js} +1 -1
  108. package/dist/client/assets/{index-Cuhw77u5.js → index-Dx6qXiIS.js} +1 -1
  109. package/dist/client/assets/{index-Dzd1H2zJ.js → index-deKJ9XUA.js} +1 -1
  110. package/dist/client/assets/{index-Ca2K5P2-.js → index-h2SiQ3aq.js} +1 -1
  111. package/dist/client/assets/{index-redirect-BnYKyihs.js → index-redirect-BToJCL7P.js} +1 -1
  112. package/dist/client/assets/{index-MOTjCtsp.js → index-z7ZyGnDz.js} +1 -1
  113. package/dist/client/assets/{input-BKRZkXBz.js → input-IN5HhQsQ.js} +1 -1
  114. package/dist/client/assets/{integration-icon-DYuoyOIy.js → integration-icon-Db4EBrGH.js} +1 -1
  115. package/dist/client/assets/{label-C0YeL6wH.js → label-BZIeDc6a.js} +1 -1
  116. package/dist/client/assets/{login-D9p80dck.js → login-DdD3jsKi.js} +1 -1
  117. package/dist/client/assets/{mcp-oauth-S-U-rwND.js → mcp-oauth-gzDzaR6G.js} +1 -1
  118. package/dist/client/assets/{members-DszpPi1H.js → members-D0uiwhCd.js} +1 -1
  119. package/dist/client/assets/{monaco-editor-DQY1vfLZ.js → monaco-editor-DqH1LGBG.js} +1 -1
  120. package/dist/client/assets/{monitoring-stats-row-dql-TpC9.js → monitoring-stats-row-C9GbdyOQ.js} +1 -1
  121. package/dist/client/assets/{oauth-callback-BfNdq5r1.js → oauth-callback-BxfGu7ZM.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-ai-provider-kAgnmyGz.js → oauth-callback-ai-provider-BpJvLn6m.js} +1 -1
  123. package/dist/client/assets/{onboarding-BGLkKtLC.js → onboarding-CIAHEUbt.js} +1 -1
  124. package/dist/client/assets/{org-install-D3-LsuMX.js → org-install-O69xRwHO.js} +1 -1
  125. package/dist/client/assets/{org-layout-DpwOyQmn.js → org-layout-QbuxyKYH.js} +1 -1
  126. package/dist/client/assets/{organization-choice-9oMWEkQK.js → organization-choice-lY7p5sF9.js} +1 -1
  127. package/dist/client/assets/{page-seo-form-j0YNQpjq.js → page-seo-form-BqB24Fq8.js} +1 -1
  128. package/dist/client/assets/page-seo-sheet-BVFZokRs.js +1 -0
  129. package/dist/client/assets/{popover-C5AnURrR.js → popover-BvQdvb3c.js} +1 -1
  130. package/dist/client/assets/{post-editor-oYbaNsAb.js → post-editor-C9-2-bmH.js} +1 -1
  131. package/dist/client/assets/{preview-dialog-pWz0CIeI.js → preview-dialog-D1BhMrVf.js} +1 -1
  132. package/dist/client/assets/{primitives-5RDDEPG8.js → primitives-F9M8Ipkb.js} +1 -1
  133. package/dist/client/assets/{profile-pxcuuKGt.js → profile-C2xswEnM.js} +1 -1
  134. package/dist/client/assets/project-app-view-PiMJBUWz.js +1 -0
  135. package/dist/client/assets/record-editor-BaLGETo0.js +1 -0
  136. package/dist/client/assets/registry-c3wnyfdK.js +2 -0
  137. package/dist/client/assets/{registry-layout-LspFswn9.js → registry-layout-Bnb9-rCG.js} +1 -1
  138. package/dist/client/assets/{require-capability-BtcCyvp2.js → require-capability-Dk3T3zYa.js} +1 -1
  139. package/dist/client/assets/{required-auth-layout-D9BQ_bkS.js → required-auth-layout-CUTn0kys.js} +1 -1
  140. package/dist/client/assets/{reset-password-JJRHjizg.js → reset-password-CBb5abSk.js} +1 -1
  141. package/dist/client/assets/{roles-BNXIauC5.js → roles-CiZrsv50.js} +1 -1
  142. package/dist/client/assets/{scroll-area-B1dVuptd.js → scroll-area-Dxw-E5II.js} +1 -1
  143. package/dist/client/assets/{search-input-CKyPfOaX.js → search-input-DkSLPibf.js} +1 -1
  144. package/dist/client/assets/{secrets-CuZqGbU_.js → secrets-Ddul9WIZ.js} +1 -1
  145. package/dist/client/assets/{sections-editor-BK1lVZRX.js → sections-editor-CW5bA2RP.js} +1 -1
  146. package/dist/client/assets/{select-DbTrJaBo.js → select-D6WRoyEz.js} +1 -1
  147. package/dist/client/assets/{select-model-CSFAIVDV.js → select-model-BeBUe7ya.js} +1 -1
  148. package/dist/client/assets/{seo-editor-IyNR_t_8.js → seo-editor-Cz4IeoUQ.js} +1 -1
  149. package/dist/client/assets/{settings-layout-C7XeWt4F.js → settings-layout-BvQvLYuh.js} +1 -1
  150. package/dist/client/assets/{settings-section-D4bBHif-.js → settings-section-CgcU6xm_.js} +1 -1
  151. package/dist/client/assets/{sheet-6SkVbWmm.js → sheet-JAvCyso3.js} +1 -1
  152. package/dist/client/assets/{shell-controls-CNdRw4ys.js → shell-controls-B2fE8psz.js} +1 -1
  153. package/dist/client/assets/{shell-layout-BElQaqKc.js → shell-layout-klpGsxrf.js} +1 -1
  154. package/dist/client/assets/{shell-route-loading-D4skwJ91.js → shell-route-loading-cmXdamAW.js} +1 -1
  155. package/dist/client/assets/{sidebar-DGRwDJha.js → sidebar-DdgOh6Z9.js} +1 -1
  156. package/dist/client/assets/{skeleton-DHhMjkBh.js → skeleton-DdzpHjCD.js} +1 -1
  157. package/dist/client/assets/{sortable.esm-CGtCzcgO.js → sortable.esm-DYJqg3G6.js} +1 -1
  158. package/dist/client/assets/{sso-ByvSA1mS.js → sso-BatvxI5G.js} +1 -1
  159. package/dist/client/assets/{store-BCYui8sK.js → store-Deoe0yK9.js} +1 -1
  160. package/dist/client/assets/store-registry-LMmG1Wms.js +2 -0
  161. package/dist/client/assets/{studio-tools-DxnrxOKS.js → studio-tools-CAjgBW6i.js} +1 -1
  162. package/dist/client/assets/{switch-BnwD-Vul.js → switch-C6POgRTK.js} +1 -1
  163. package/dist/client/assets/{table-JdBIMuie.js → table-BRFlo438.js} +1 -1
  164. package/dist/client/assets/{tabs-CVrrWuOo.js → tabs-86zaQtr4.js} +1 -1
  165. package/dist/client/assets/{task-status-DRnjxr-S.js → task-status-DhrCE0Pg.js} +1 -1
  166. package/dist/client/assets/{textarea-L85Stm8m.js → textarea-BXtqsNU_.js} +1 -1
  167. package/dist/client/assets/{toggle-group-CKJLwQaG.js → toggle-group-CjaKzFll.js} +1 -1
  168. package/dist/client/assets/{toolbar-Bd7T7QUb.js → toolbar-DGAhaLmi.js} +1 -1
  169. package/dist/client/assets/{tools-list-lOdvLoOI.js → tools-list-8hgiGZV6.js} +1 -1
  170. package/dist/client/assets/{tooltip-CA-iJjQ9.js → tooltip-BR6syT2S.js} +1 -1
  171. package/dist/client/assets/{types-BdkD4Vt1.js → types-DcxX5vjQ.js} +1 -1
  172. package/dist/client/assets/{use-ai-providers-B7gFggHS.js → use-ai-providers-BiVw9Yom.js} +1 -1
  173. package/dist/client/assets/{use-automations-DWMz324L.js → use-automations-Cg8Eoo8I.js} +1 -1
  174. package/dist/client/assets/{use-capability-j-lfCCNr.js → use-capability-C8IPuVtH.js} +1 -1
  175. package/dist/client/assets/{use-clock-tick-btodX9Hz.js → use-clock-tick-BnysYYmn.js} +1 -1
  176. package/dist/client/assets/{use-collections-O10oaKyl.js → use-collections-BrwR970o.js} +1 -1
  177. package/dist/client/assets/{use-connection-C9Oo2tfi.js → use-connection-B2ptAtQ1.js} +1 -1
  178. package/dist/client/assets/{use-copy-CqVa9v2d.js → use-copy-CyLGNLn_.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-BrVJit7X.js → use-create-virtual-mcp-DurQg2m_.js} +1 -1
  180. package/dist/client/assets/{use-debounced-autosave-kUOeL1Jg.js → use-debounced-autosave-DEyHd5s5.js} +1 -1
  181. package/dist/client/assets/{use-debounced-value-C0aocxQX.js → use-debounced-value-CG92tvCS.js} +1 -1
  182. package/dist/client/assets/{use-decopilot-events-CNKr7yO4.js → use-decopilot-events-Bg1nIm5P.js} +1 -1
  183. package/dist/client/assets/{use-delete-connection-CcscTt90.js → use-delete-connection-COfumQMV.js} +1 -1
  184. package/dist/client/assets/{use-file-configs-D0F3KULW.js → use-file-configs-C5skVIUC.js} +1 -1
  185. package/dist/client/assets/{use-infinite-scroll-D7j-2mjA.js → use-infinite-scroll-CbmbBOhb.js} +1 -1
  186. package/dist/client/assets/{use-join-requests-DqD_eeW0.js → use-join-requests-DiNJOaXg.js} +1 -1
  187. package/dist/client/assets/{use-mcp-client-BZ22ytXH.js → use-mcp-client-DlyZEA3A.js} +1 -1
  188. package/dist/client/assets/{use-mcp-prompts-DyUPPXRK.js → use-mcp-prompts-pcmTb2GI.js} +1 -1
  189. package/dist/client/assets/{use-mcp-tools-VtgecmTO.js → use-mcp-tools-DGxNZBda.js} +1 -1
  190. package/dist/client/assets/{use-members-BaYsXyZv.js → use-members-AyHbqHNZ.js} +1 -1
  191. package/dist/client/assets/{use-mobile-DTm06RLc.js → use-mobile-BZo7lvaH.js} +1 -1
  192. package/dist/client/assets/{use-navigate-to-agent-Bn0KdHLf.js → use-navigate-to-agent-in-j_28j.js} +1 -1
  193. package/dist/client/assets/{use-org-auth-client-WIl6LS5U.js → use-org-auth-client-JM5TXzj8.js} +1 -1
  194. package/dist/client/assets/{use-org-fs-CUQD3qsK.js → use-org-fs-DMkyivR7.js} +1 -1
  195. package/dist/client/assets/{use-org-sso-CnqlrZZr.js → use-org-sso-B3J5z-pj.js} +1 -1
  196. package/dist/client/assets/{use-organization-roles-BFiv0b61.js → use-organization-roles-YS5TrsWV.js} +1 -1
  197. package/dist/client/assets/{use-organization-settings-BytjQVXP.js → use-organization-settings-CBu4ORjn.js} +1 -1
  198. package/dist/client/assets/{use-registry-connections-BbGinNTu.js → use-registry-connections-yFLwMSbr.js} +1 -1
  199. package/dist/client/assets/{use-secrets-CzI490qJ.js → use-secrets-CONYfnRB.js} +1 -1
  200. package/dist/client/assets/{use-status-sounds-CPkCcPZ0.js → use-status-sounds-CNvb3BK4.js} +1 -1
  201. package/dist/client/assets/{use-view-mode-Dyg-Wdla.js → use-view-mode-DPuZdDbm.js} +1 -1
  202. package/dist/client/assets/{use-virtual-mcp-LcXDAtF2.js → use-virtual-mcp-BeJfWraj.js} +1 -1
  203. package/dist/client/assets/useInfiniteQuery-BafAnv-q.js +1 -0
  204. package/dist/client/assets/useSuspenseInfiniteQuery-Cc6HzBdO.js +1 -0
  205. package/dist/client/assets/{useSuspenseQueries-BB0b4DLG.js → useSuspenseQueries-DcwQR2IM.js} +1 -1
  206. package/dist/client/assets/{variant-calendar-D0H5SdJZ.js → variant-calendar-Dh2N1MTd.js} +1 -1
  207. package/dist/client/assets/{view-mode-toggle-ZMapCEcm.js → view-mode-toggle-Y9k5agR3.js} +1 -1
  208. package/dist/client/index.html +1 -1
  209. package/dist/server/cli.js +422 -422
  210. package/dist/server/server.js +289 -289
  211. package/package.json +1 -1
  212. package/dist/client/assets/page-seo-sheet-DT8ezixQ.js +0 -1
  213. package/dist/client/assets/project-app-view-CtOp7U5d.js +0 -1
  214. package/dist/client/assets/record-editor-Dpmj_Qj3.js +0 -1
  215. package/dist/client/assets/registry-Dzzrs-kB.js +0 -2
  216. package/dist/client/assets/store-registry-B0TnpYie.js +0 -2
  217. package/dist/client/assets/useInfiniteQuery-DdrjKh-2.js +0 -1
  218. package/dist/client/assets/useSuspenseInfiniteQuery-CXyQS01C.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as h,aM as tn,c as J,l as xe,j as a,J as nn,i as rn,B as Z,K as Ke,k as sn,ae as on,D as ln,m as an,t as Pe,ag as cn,G as un,e as dn}from"./index-Ce-NoXEp.js";import{c as fn,d as mn,g as pn,b as hn,e as xn,a as gn,h as vn}from"./ZoomOut-DxQk7sae.js";import{c as wn,a as Ve,d as yt,e as bt}from"./dialog-CauQU0Ef.js";import{T as oe,a as le,b as ae}from"./tooltip-CA-iJjQ9.js";import{n as Re,i as St}from"./Globe01-D-5I09_1.js";import{n as zt}from"./LinkExternal01-BvKrBHVq.js";import{s as yn}from"./XClose-DOOshGb0.js";import{S as $e}from"./skeleton-DHhMjkBh.js";import{l as bn,F as Sn}from"./index-Dv9eD-aO.js";import{F as Xe,M as zn}from"./file-type-icon-DqM6AfOQ.js";import{D as jn,a as kn,b as Pn,c as it}from"./dropdown-menu-BO9nmkr0.js";import{i as Cn}from"./LayoutLeft-DCkN0cQJ.js";import{i as En,f as jt,n as Nn,d as kt,e as $n}from"./use-org-fs-CUQD3qsK.js";import{I as Mn}from"./input-BKRZkXBz.js";import{a as In,P as Rn,b as Dn}from"./popover-C5AnURrR.js";import{i as Ln}from"./ChevronUp-Cv3UG4VC.js";import{a as _n}from"./Eye-BKfEBTR6.js";import{i as An}from"./Key01-Duu4Kv4L.js";const Ae=h.createContext(null);Ae.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"},Qe=10,pe=h.useLayoutEffect,ot=tn.useId,Tn=typeof ot=="function"?ot:()=>null;let Hn=0;function Ze(t=null){const e=Tn(),n=h.useRef(t||e||null);return n.current===null&&(n.current=""+Hn++),t??n.current}function Pt({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:s,forwardedRef:i,id:o,maxSize:l,minSize:c,onCollapse:d,onExpand:m,onResize:u,order:f,style:v,tagName:x="div",...k}){const b=h.useContext(Ae);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:C,getPanelSize:I,getPanelStyle:j,groupId:F,isPanelCollapsed:$,reevaluatePanelConstraints:g,registerPanel:G,resizePanel:W,unregisterPanel:O}=b,A=Ze(o),D=h.useRef({callbacks:{onCollapse:d,onExpand:m,onResize:u},constraints:{collapsedSize:n,collapsible:r,defaultSize:s,maxSize:l,minSize:c},id:A,idIsFromProps:o!==void 0,order:f});h.useRef({didLogMissingDefaultSizeWarning:!1}),pe(()=>{const{callbacks:_,constraints:L}=D.current,T={...L};D.current.id=A,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=d,_.onExpand=m,_.onResize=u,L.collapsedSize=n,L.collapsible=r,L.defaultSize=s,L.maxSize=l,L.minSize=c,(T.collapsedSize!==L.collapsedSize||T.collapsible!==L.collapsible||T.maxSize!==L.maxSize||T.minSize!==L.minSize)&&g(D.current,T)}),pe(()=>{const _=D.current;return G(_),()=>{O(_)}},[f,A,G,O]),h.useImperativeHandle(i,()=>({collapse:()=>{w(D.current)},expand:_=>{C(D.current,_)},getId(){return A},getSize(){return I(D.current)},isCollapsed(){return $(D.current)},isExpanded(){return!$(D.current)},resize:_=>{W(D.current,_)}}),[w,C,I,$,A,W]);const V=j(D.current,s);return h.createElement(x,{...k,children:t,className:e,id:A,style:{...V,...v},[K.groupId]:F,[K.panel]:"",[K.panelCollapsible]:r||void 0,[K.panelId]:A,[K.panelSize]:parseFloat(""+V.flexGrow).toFixed(1)})}const Ct=h.forwardRef((t,e)=>h.createElement(Pt,{...t,forwardedRef:e}));Pt.displayName="Panel";Ct.displayName="forwardRef(Panel)";let Ye=null,Ie=-1,de=null;function On(t,e){if(e){const n=(e&It)!==0,r=(e&Rt)!==0,s=(e&Dt)!==0,i=(e&Lt)!==0;if(n)return s?"se-resize":i?"ne-resize":"e-resize";if(r)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Un(){de!==null&&(document.head.removeChild(de),Ye=null,de=null,Ie=-1)}function Fe(t,e){var n,r;const s=On(t,e);if(Ye!==s){if(Ye=s,de===null&&(de=document.createElement("style"),document.head.appendChild(de)),Ie>=0){var i;(i=de.sheet)===null||i===void 0||i.removeRule(Ie)}Ie=(n=(r=de.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${s} !important;}`))!==null&&n!==void 0?n:-1}}function Et(t){return t.type==="keydown"}function Nt(t){return t.type.startsWith("pointer")}function $t(t){return t.type.startsWith("mouse")}function Te(t){if(Nt(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if($t(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Fn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Wn(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Bn(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ct(t),b:ct(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;N(r,"Stacking order can only be calculated for elements with a common ancestor");const s={a:at(lt(n.a)),b:at(lt(n.b))};if(s.a===s.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const c=i[l];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(s.a-s.b)}const Gn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function qn(t){var e;const n=getComputedStyle((e=Mt(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Kn(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||qn(t))||+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"||Gn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function lt(t){let e=t.length;for(;e--;){const n=t[e];if(N(n,"Missing node"),Kn(n))return n}return null}function at(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ct(t){const e=[];for(;t;)e.push(t),t=Mt(t);return e}function Mt(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const It=1,Rt=2,Dt=4,Lt=8,Vn=Fn()==="coarse";let re=[],be=!1,me=new Map,He=new Map;const Ce=new Set;function Xn(t,e,n,r,s){var i;const{ownerDocument:o}=e,l={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:s},c=(i=me.get(o))!==null&&i!==void 0?i:0;return me.set(o,c+1),Ce.add(l),De(),function(){var m;He.delete(t),Ce.delete(l);const u=(m=me.get(o))!==null&&m!==void 0?m:1;if(me.set(o,u-1),De(),u===1&&me.delete(o),re.includes(l)){const f=re.indexOf(l);f>=0&&re.splice(f,1),tt(),s("up",!0,null)}}}function Yn(t){const{target:e}=t,{x:n,y:r}=Te(t);be=!0,et({target:e,x:n,y:r}),De(),re.length>0&&(Le("down",t),t.preventDefault(),_t(e)||t.stopImmediatePropagation())}function We(t){const{x:e,y:n}=Te(t);if(be&&t.buttons===0&&(be=!1,Le("up",t)),!be){const{target:r}=t;et({target:r,x:e,y:n})}Le("move",t),tt(),re.length>0&&t.preventDefault()}function Be(t){const{target:e}=t,{x:n,y:r}=Te(t);He.clear(),be=!1,re.length>0&&(t.preventDefault(),_t(e)||t.stopImmediatePropagation()),Le("up",t),et({target:e,x:n,y:r}),tt(),De()}function _t(t){let e=t;for(;e;){if(e.hasAttribute(K.resizeHandle))return!0;e=e.parentElement}return!1}function et({target:t,x:e,y:n}){re.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Ce.forEach(s=>{const{element:i,hitAreaMargins:o}=s,l=i.getBoundingClientRect(),{bottom:c,left:d,right:m,top:u}=l,f=Vn?o.coarse:o.fine;if(e>=d-f&&e<=m+f&&n>=u-f&&n<=c+f){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&Bn(r,i)>0){let x=r,k=!1;for(;x&&!x.contains(i);){if(Wn(x.getBoundingClientRect(),l)){k=!0;break}x=x.parentElement}if(k)return}re.push(s)}})}function Ge(t,e){He.set(t,e)}function tt(){let t=!1,e=!1;re.forEach(r=>{const{direction:s}=r;s==="horizontal"?t=!0:e=!0});let n=0;He.forEach(r=>{n|=r}),t&&e?Fe("intersection",n):t?Fe("horizontal",n):e?Fe("vertical",n):Un()}let qe=new AbortController;function De(){qe.abort(),qe=new AbortController;const t={capture:!0,signal:qe.signal};Ce.size&&(be?(re.length>0&&me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",Be,t),r.addEventListener("pointerleave",We,t),r.addEventListener("pointermove",We,t))}),window.addEventListener("pointerup",Be,t),window.addEventListener("pointercancel",Be,t)):me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",Yn,t),r.addEventListener("pointermove",We,t))}))}function Le(t,e){Ce.forEach(n=>{const{setResizeHandlerState:r}=n,s=re.includes(n);r(t,s,e)})}function Jn(){const[t,e]=h.useState(0);return h.useCallback(()=>e(n=>n+1),[])}function N(t,e){if(!t)throw console.error(e),Error(e)}function he(t,e,n=Qe){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ce(t,e,n=Qe){return he(t,e,n)===0}function ee(t,e,n){return he(t,e,n)===0}function Qn(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const s=t[r],i=e[r];if(!ee(s,i,n))return!1}return!0}function ye({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];N(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:s=0,collapsible:i,maxSize:o=100,minSize:l=0}=r;if(he(n,l)<0)if(i){const c=(s+l)/2;he(n,c)<0?n=s:n=l}else n=l;return n=Math.min(o,n),n=parseFloat(n.toFixed(Qe)),n}function je({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:s,trigger:i}){if(ee(t,0))return e;const o=[...e],[l,c]=r;N(l!=null,"Invalid first pivot index"),N(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:l,f=n[u];N(f,`Panel constraints not found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,v)){const w=k-b;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}{const u=t<0?l:c,f=n[u];N(f,`No panel constraints found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,k)){const w=b-v;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}}{const u=t<0?1:-1;let f=t<0?c:l,v=0;for(;;){const k=e[f];N(k!=null,`Previous layout not found for panel index ${f}`);const w=ye({panelConstraints:n,panelIndex:f,size:100})-k;if(v+=w,f+=u,f<0||f>=n.length)break}const x=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-x:x}{let f=t<0?l:c;for(;f>=0&&f<n.length;){const v=Math.abs(t)-Math.abs(d),x=e[f];N(x!=null,`Previous layout not found for panel index ${f}`);const k=x-v,b=ye({panelConstraints:n,panelIndex:f,size:k});if(!ee(x,b)&&(d+=x-b,o[f]=b,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?f--:f++}}if(Qn(s,o))return s;{const u=t<0?c:l,f=e[u];N(f!=null,`Previous layout not found for panel index ${u}`);const v=f+d,x=ye({panelConstraints:n,panelIndex:u,size:v});if(o[u]=x,!ee(x,v)){let k=v-x,w=t<0?c:l;for(;w>=0&&w<n.length;){const C=o[w];N(C!=null,`Previous layout not found for panel index ${w}`);const I=C+k,j=ye({panelConstraints:n,panelIndex:w,size:I});if(ee(C,j)||(k-=j-C,o[w]=j),ee(k,0))break;t>0?w--:w++}}}const m=o.reduce((u,f)=>f+u,0);return ee(m,100)?o:s}function Zn({layout:t,panelsArray:e,pivotIndices:n}){let r=0,s=100,i=0,o=0;const l=n[0];N(l!=null,"No pivot index found"),e.forEach((u,f)=>{const{constraints:v}=u,{maxSize:x=100,minSize:k=0}=v;f===l?(r=k,s=x):(i+=k,o+=x)});const c=Math.min(s,100-i),d=Math.max(r,100-o),m=t[l];return{valueMax:c,valueMin:d,valueNow:m}}function Ee(t,e=document){return Array.from(e.querySelectorAll(`[${K.resizeHandleId}][data-panel-group-id="${t}"]`))}function At(t,e,n=document){const s=Ee(t,n).findIndex(i=>i.getAttribute(K.resizeHandleId)===e);return s??null}function Tt(t,e,n){const r=At(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Ht(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Oe(t,e=document){const n=e.querySelector(`[${K.resizeHandleId}="${t}"]`);return n||null}function er(t,e,n,r=document){var s,i,o,l;const c=Oe(e,r),d=Ee(t,r),m=c?d.indexOf(c):-1,u=(s=(i=n[m])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null,f=(o=(l=n[m+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[u,f]}function tr({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:s,panelGroupElement:i,setLayout:o}){h.useRef({didWarnAboutMissingResizeHandle:!1}),pe(()=>{if(!i)return;const l=Ee(n,i);for(let c=0;c<s.length-1;c++){const{valueMax:d,valueMin:m,valueNow:u}=Zn({layout:r,panelsArray:s,pivotIndices:[c,c+1]}),f=l[c];if(f!=null){const v=s[c];N(v,`No panel data found for index "${c}"`),f.setAttribute("aria-controls",v.id),f.setAttribute("aria-valuemax",""+Math.round(d)),f.setAttribute("aria-valuemin",""+Math.round(m)),f.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{l.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,s,i]),h.useEffect(()=>{if(!i)return;const l=e.current;N(l,"Eager values not found");const{panelDataArray:c}=l,d=Ht(n,i);N(d!=null,`No group found for id "${n}"`);const m=Ee(n,i);N(m,`No resize handles found for group id "${n}"`);const u=m.map(f=>{const v=f.getAttribute(K.resizeHandleId);N(v,"Resize handle element has no handle id attribute");const[x,k]=er(n,v,c,i);if(x==null||k==null)return()=>{};const b=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const C=c.findIndex(I=>I.id===x);if(C>=0){const I=c[C];N(I,`No panel data found for index ${C}`);const j=r[C],{collapsedSize:F=0,collapsible:$,minSize:g=0}=I.constraints;if(j!=null&&$){const G=je({delta:ee(j,F)?g-F:F-j,initialLayout:r,panelConstraints:c.map(W=>W.constraints),pivotIndices:Tt(n,v,i),prevLayout:r,trigger:"keyboard"});r!==G&&o(G)}}break}}};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}});return()=>{u.forEach(f=>f())}},[i,t,e,n,r,s,o])}function ut(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ot(t,e){const n=t==="horizontal",{x:r,y:s}=Te(e);return n?r:s}function nr(t,e,n,r,s){const i=n==="horizontal",o=Oe(e,s);N(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(K.groupId);N(l,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const d=Ot(n,t),m=Ht(l,s);N(m,`No group element found for id "${l}"`);const u=m.getBoundingClientRect(),f=i?u.width:u.height;return(d-c)/f*100}function rr(t,e,n,r,s,i){if(Et(t)){const o=n==="horizontal";let l=0;t.shiftKey?l=100:s!=null?l=s:l=10;let c=0;switch(t.key){case"ArrowDown":c=o?0:l;break;case"ArrowLeft":c=o?-l:0;break;case"ArrowRight":c=o?l:0;break;case"ArrowUp":c=o?0:-l;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:nr(t,e,n,r,i)}function sr({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let r=0,s=100;for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(r++,e[i]=l,s-=l)}for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const c=t.length-r,d=s/c;r++,e[i]=d,s-=d}return e}function ge(t,e,n){e.forEach((r,s)=>{const i=t[s];N(i,`Panel data not found for index ${s}`);const{callbacks:o,constraints:l,id:c}=i,{collapsedSize:d=0,collapsible:m}=l,u=n[c];if(u==null||r!==u){n[c]=r;const{onCollapse:f,onExpand:v,onResize:x}=o;x&&x(r,u),m&&(f||v)&&(v&&(u==null||ce(u,d))&&!ce(r,d)&&v(),f&&(u==null||!ce(u,d))&&ce(r,d)&&f())}})}function Me(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function ir({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:s,precision:i=3}){const o=n[s];let l;return o==null?l=t!=null?t.toPrecision(i):"1":r.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function or(t,e=10){let n=null;return(...s)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}}function dt(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Ut(t){return`react-resizable-panels:${t}`}function Ft(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:s,order:i}=e;return s?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Wt(t,e){try{const n=Ut(t),r=e.getItem(n);if(r){const s=JSON.parse(r);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function lr(t,e,n){var r,s;const i=(r=Wt(t,n))!==null&&r!==void 0?r:{},o=Ft(e);return(s=i[o])!==null&&s!==void 0?s:null}function ar(t,e,n,r,s){var i;const o=Ut(t),l=Ft(e),c=(i=Wt(t,s))!==null&&i!==void 0?i:{};c[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{s.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function ft({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ee(r,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=100/r*o;n[i]=l}let s=0;for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=ye({panelConstraints:e,panelIndex:i,size:o});o!=l&&(s+=o-l,n[i]=l)}if(!ee(s,0))for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=o+s,c=ye({panelConstraints:e,panelIndex:i,size:l});if(o!==c&&(s-=c-o,n[i]=c,ee(s,0)))break}return n}const cr=100,ke={getItem:t=>(dt(ke),ke.getItem(t)),setItem:(t,e)=>{dt(ke),ke.setItem(t,e)}},mt={};function Bt({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:s,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:c=ke,style:d,tagName:m="div",...u}){const f=Ze(i),v=h.useRef(null),[x,k]=h.useState(null),[b,w]=h.useState([]),C=Jn(),I=h.useRef({}),j=h.useRef(new Map),F=h.useRef(0),$=h.useRef({autoSaveId:t,direction:r,dragState:x,id:f,keyboardResizeBy:l,onLayout:o,storage:c}),g=h.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});h.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),h.useImperativeHandle(s,()=>({getId:()=>$.current.id,getLayout:()=>{const{layout:p}=g.current;return p},setLayout:p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current,y=ft({layout:p,panelConstraints:P.map(E=>E.constraints)});ut(M,y)||(w(y),g.current.layout=y,z&&z(y),ge(P,y,I.current))}}),[]),pe(()=>{$.current.autoSaveId=t,$.current.direction=r,$.current.dragState=x,$.current.id=f,$.current.onLayout=o,$.current.storage=c}),tr({committedValuesRef:$,eagerValuesRef:g,groupId:f,layout:b,panelDataArray:g.current.panelDataArray,setLayout:w,panelGroupElement:v.current}),h.useEffect(()=>{const{panelDataArray:p}=g.current;if(t){if(b.length===0||b.length!==p.length)return;let z=mt[t];z==null&&(z=or(ar,cr),mt[t]=z);const M=[...p],P=new Map(j.current);z(t,M,P,b,c)}},[t,b,c]),h.useEffect(()=>{});const G=h.useCallback(p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current;if(p.constraints.collapsible){const y=P.map(se=>se.constraints),{collapsedSize:E=0,panelSize:U,pivotIndices:X}=fe(P,p,M);if(N(U!=null,`Panel size not found for panel "${p.id}"`),!ce(U,E)){j.current.set(p.id,U);const ie=ve(P,p)===P.length-1?U-E:E-U,q=je({delta:ie,initialLayout:M,panelConstraints:y,pivotIndices:X,prevLayout:M,trigger:"imperative-api"});Me(M,q)||(w(q),g.current.layout=q,z&&z(q),ge(P,q,I.current))}}},[]),W=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current;if(p.constraints.collapsible){const E=y.map(ne=>ne.constraints),{collapsedSize:U=0,panelSize:X=0,minSize:se=0,pivotIndices:ie}=fe(y,p,P),q=z??se;if(ce(X,U)){const ne=j.current.get(p.id),Se=ne!=null&&ne>=q?ne:q,Ue=ve(y,p)===y.length-1?X-Se:Se-X,Q=je({delta:Ue,initialLayout:P,panelConstraints:E,pivotIndices:ie,prevLayout:P,trigger:"imperative-api"});Me(P,Q)||(w(Q),g.current.layout=Q,M&&M(Q),ge(y,Q,I.current))}}},[]),O=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{panelSize:P}=fe(M,p,z);return N(P!=null,`Panel size not found for panel "${p.id}"`),P},[]),A=h.useCallback((p,z)=>{const{panelDataArray:M}=g.current,P=ve(M,p);return ir({defaultSize:z,dragState:x,layout:b,panelData:M,panelIndex:P})},[x,b]),D=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),y===!0&&ce(E,P)},[]),V=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),!y||he(E,P)>0},[]),_=h.useCallback(p=>{const{panelDataArray:z}=g.current;z.push(p),z.sort((M,P)=>{const y=M.order,E=P.order;return y==null&&E==null?0:y==null?-1:E==null?1:y-E}),g.current.panelDataArrayChanged=!0,C()},[C]);pe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:p,onLayout:z,storage:M}=$.current,{layout:P,panelDataArray:y}=g.current;let E=null;if(p){const X=lr(p,y,M);X&&(j.current=new Map(Object.entries(X.expandToSizes)),E=X.layout)}E==null&&(E=sr({panelDataArray:y}));const U=ft({layout:E,panelConstraints:y.map(X=>X.constraints)});ut(P,U)||(w(U),g.current.layout=U,z&&z(U),ge(y,U,I.current))}}),pe(()=>{const p=g.current;return()=>{p.layout=[]}},[]);const L=h.useCallback(p=>{let z=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(y){y.preventDefault();const E=v.current;if(!E)return()=>null;const{direction:U,dragState:X,id:se,keyboardResizeBy:ie,onLayout:q}=$.current,{layout:ne,panelDataArray:Se}=g.current,{initialLayout:Ne}=X??{},Ue=Tt(se,p,E);let Q=rr(y,p,U,X,ie,E);const rt=U==="horizontal";rt&&z&&(Q=-Q);const Zt=Se.map(en=>en.constraints),ze=je({delta:Q,initialLayout:Ne??ne,panelConstraints:Zt,pivotIndices:Ue,prevLayout:ne,trigger:Et(y)?"keyboard":"mouse-or-touch"}),st=!Me(ne,ze);(Nt(y)||$t(y))&&F.current!=Q&&(F.current=Q,!st&&Q!==0?rt?Ge(p,Q<0?It:Rt):Ge(p,Q<0?Dt:Lt):Ge(p,0)),st&&(w(ze),g.current.layout=ze,q&&q(ze),ge(Se,ze,I.current))}},[]),T=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current,E=y.map(ne=>ne.constraints),{panelSize:U,pivotIndices:X}=fe(y,p,P);N(U!=null,`Panel size not found for panel "${p.id}"`);const ie=ve(y,p)===y.length-1?U-z:z-U,q=je({delta:ie,initialLayout:P,panelConstraints:E,pivotIndices:X,prevLayout:P,trigger:"imperative-api"});Me(P,q)||(w(q),g.current.layout=q,M&&M(q),ge(y,q,I.current))},[]),H=h.useCallback((p,z)=>{const{layout:M,panelDataArray:P}=g.current,{collapsedSize:y=0,collapsible:E}=z,{collapsedSize:U=0,collapsible:X,maxSize:se=100,minSize:ie=0}=p.constraints,{panelSize:q}=fe(P,p,M);q!=null&&(E&&X&&ce(q,y)?ce(y,U)||T(p,U):q<ie?T(p,ie):q>se&&T(p,se))},[T]),Y=h.useCallback((p,z)=>{const{direction:M}=$.current,{layout:P}=g.current;if(!v.current)return;const y=Oe(p,v.current);N(y,`Drag handle element not found for id "${p}"`);const E=Ot(M,z);k({dragHandleId:p,dragHandleRect:y.getBoundingClientRect(),initialCursorPosition:E,initialLayout:P})},[]),te=h.useCallback(()=>{k(null)},[]),B=h.useCallback(p=>{const{panelDataArray:z}=g.current,M=ve(z,p);M>=0&&(z.splice(M,1),delete I.current[p.id],g.current.panelDataArrayChanged=!0,C())},[C]),S=h.useMemo(()=>({collapsePanel:G,direction:r,dragState:x,expandPanel:W,getPanelSize:O,getPanelStyle:A,groupId:f,isPanelCollapsed:D,isPanelExpanded:V,reevaluatePanelConstraints:H,registerPanel:_,registerResizeHandle:L,resizePanel:T,startDragging:Y,stopDragging:te,unregisterPanel:B,panelGroupElement:v.current}),[G,x,r,W,O,A,f,D,V,H,_,L,T,Y,te,B]),R={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return h.createElement(Ae.Provider,{value:S},h.createElement(m,{...u,children:e,className:n,id:i,ref:v,style:{...R,...d},[K.group]:"",[K.groupDirection]:r,[K.groupId]:f}))}const Gt=h.forwardRef((t,e)=>h.createElement(Bt,{...t,forwardedRef:e}));Bt.displayName="PanelGroup";Gt.displayName="forwardRef(PanelGroup)";function ve(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function fe(t,e,n){const r=ve(t,e),i=r===t.length-1?[r-1,r]:[r,r+1],o=n[r];return{...e.constraints,panelSize:o,pivotIndices:i}}function ur({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){h.useEffect(()=>{if(t||n==null||r==null)return;const s=Oe(e,r);if(s==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=s.getAttribute(K.groupId);N(l,`No group element found for id "${l}"`);const c=Ee(l,r),d=At(l,e,r);N(d!==null,`No resize element found for id "${e}"`);const m=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[m].focus();break}}};return s.addEventListener("keydown",i),()=>{s.removeEventListener("keydown",i)}},[r,t,e,n])}function qt({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:s,onBlur:i,onClick:o,onDragging:l,onFocus:c,onPointerDown:d,onPointerUp:m,style:u={},tabIndex:f=0,tagName:v="div",...x}){var k,b;const w=h.useRef(null),C=h.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:m});h.useEffect(()=>{C.current.onClick=o,C.current.onDragging=l,C.current.onPointerDown=d,C.current.onPointerUp=m});const I=h.useContext(Ae);if(I===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:j,groupId:F,registerResizeHandle:$,startDragging:g,stopDragging:G,panelGroupElement:W}=I,O=Ze(s),[A,D]=h.useState("inactive"),[V,_]=h.useState(!1),[L,T]=h.useState(null),H=h.useRef({state:A});pe(()=>{H.current.state=A}),h.useEffect(()=>{if(n)T(null);else{const S=$(O);T(()=>S)}},[n,O,$]);const Y=(k=r?.coarse)!==null&&k!==void 0?k:15,te=(b=r?.fine)!==null&&b!==void 0?b:5;h.useEffect(()=>{if(n||L==null)return;const S=w.current;N(S,"Element ref not attached");let R=!1;return Xn(O,S,j,{coarse:Y,fine:te},(z,M,P)=>{if(!M){D("inactive");return}switch(z){case"down":{D("drag"),R=!1,N(P,'Expected event to be defined for "down" action'),g(O,P);const{onDragging:y,onPointerDown:E}=C.current;y?.(!0),E?.();break}case"move":{const{state:y}=H.current;R=!0,y!=="drag"&&D("hover"),N(P,'Expected event to be defined for "move" action'),L(P);break}case"up":{D("hover"),G();const{onClick:y,onDragging:E,onPointerUp:U}=C.current;E?.(!1),U?.(),R||y?.();break}}})},[Y,j,n,te,$,O,L,g,G]),ur({disabled:n,handleId:O,resizeHandler:L,panelGroupElement:W});const B={touchAction:"none",userSelect:"none"};return h.createElement(v,{...x,children:t,className:e,id:s,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),c?.()},ref:w,role:"separator",style:{...B,...u},tabIndex:f,[K.groupDirection]:j,[K.groupId]:F,[K.resizeHandle]:"",[K.resizeHandleActive]:A==="drag"?"pointer":V?"keyboard":void 0,[K.resizeHandleEnabled]:!n,[K.resizeHandleId]:O,[K.resizeHandleState]:A})}qt.displayName="PanelResizeHandle";function ls(t){const e=J.c(10);let n,r,s;e[0]!==t?({className:n,ref:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==s||e[8]!==i?(o=a.jsx(Gt,{ref:s,"data-slot":"resizable-panel-group",className:i,...r}),e[6]=r,e[7]=s,e[8]=i,e[9]=o):o=e[9],o}function as(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=a.jsx(Ct,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=r):r=e[3],r}function cs(t){const e=J.c(12);let n,r,s;e[0]!==t?({withHandle:s,className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("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",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==s?(o=s&&a.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsx(fn,{className:"size-2.5"})}),e[6]=s,e[7]=o):o=e[7];let l;return e[8]!==r||e[9]!==i||e[10]!==o?(l=a.jsx(qt,{"data-slot":"resizable-handle",className:i,...r,children:o}),e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function dr(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function fr(t){if(dr(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function mr(t){try{return decodeURIComponent(t)}catch{return t}}function pr(t){return fr(t),encodeURIComponent(t)}function hr(t){return`.deco/blocks/${pr(t)}.json`}function us(t){return`/${hr(t)}`}const ds=1e4,xr=3;function Je(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function nt(t){return t.startsWith("/")?t.slice(1):t}function _e(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function gr(t){const e=_e(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function fs(t,e){const n=e.replace(/^\/+|\/+$/g,"");return _e(n?`${t==="/"?"":t}/${n}`:t)}function ms(t,e){return e==="directory"?t:gr(t)}function ps(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function vr(t){const e=nt(t);return e?e.split("/").filter(Boolean).length:0}function hs(t,e,n,r=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:r||!!n.truncated}}function xs(t,e){return vr(t)>=xr&&!e.has(t)}function gs(t,e,n=[]){const r=nt(t);if(e.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return e.some(i=>i.startsWith(s))||n.some(i=>i.startsWith(s))}function vs(t){const e=nt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const r=e.slice(n.length,-5);return mr(r)}function wr(t){if(!t)return"plaintext";const e=t.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function ws(t){const e=Je(t).split("/").filter(Boolean),n=["/"];let r="";for(const s of e.slice(0,-1))r+=`/${s}`,n.push(r);return n}function ys(t,e=[]){const n={children:[]},r=i=>{const l=Je(i).split("/").filter(Boolean);let c=n,d="";for(const m of l){d+=`/${m}`;let u=c.children.find(f=>f.name===m);u?u.kind==="file"&&(u.kind="directory"):(u={name:m,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of t){const l=Je(i).split("/").filter(Boolean);let c=n,d="";l.forEach((m,u)=>{d+=`/${m}`;const f=u===l.length-1;let v=c.children.find(x=>x.name===m);v||(v={name:m,path:d,kind:f?"file":"directory",children:[]},c.children.push(v)),c=v})}for(const i of e)r(_e(i));const s=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&s(o.children)};return s(n.children),n.children}function yr(t,e,n=0){const r=[];for(const s of t)s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&e.has(s.path)&&r.push(...yr(s.children,e,n+1)));return r}function bs(t){return t.split(`
1
+ import{r as h,aM as tn,c as J,l as xe,j as a,J as nn,i as rn,B as Z,K as Ke,k as sn,ae as on,D as ln,m as an,t as Pe,ag as cn,G as un,e as dn}from"./index-D_UOP9mB.js";import{c as fn,d as mn,g as pn,b as hn,e as xn,a as gn,h as vn}from"./ZoomOut-Ci9Q3RHZ.js";import{c as wn,a as Ve,d as yt,e as bt}from"./dialog-CymwL5lO.js";import{T as oe,a as le,b as ae}from"./tooltip-BR6syT2S.js";import{n as Re,i as St}from"./Globe01-D2j8m26P.js";import{n as zt}from"./LinkExternal01-DuDM-dnL.js";import{s as yn}from"./XClose-C-z27vFA.js";import{S as $e}from"./skeleton-DdzpHjCD.js";import{l as bn,F as Sn}from"./index-CLlAg9w2.js";import{F as Xe,M as zn}from"./file-type-icon-B2EgQ19E.js";import{D as jn,a as kn,b as Pn,c as it}from"./dropdown-menu-DE9I1deT.js";import{i as Cn}from"./LayoutLeft-B9LtoNr5.js";import{i as En,f as jt,n as Nn,d as kt,e as $n}from"./use-org-fs-DMkyivR7.js";import{I as Mn}from"./input-IN5HhQsQ.js";import{a as In,P as Rn,b as Dn}from"./popover-BvQdvb3c.js";import{i as Ln}from"./ChevronUp-UIn_3dHA.js";import{a as _n}from"./Eye-BcHeo8OC.js";import{i as An}from"./Key01-CvSwoCFY.js";const Ae=h.createContext(null);Ae.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"},Qe=10,pe=h.useLayoutEffect,ot=tn.useId,Tn=typeof ot=="function"?ot:()=>null;let Hn=0;function Ze(t=null){const e=Tn(),n=h.useRef(t||e||null);return n.current===null&&(n.current=""+Hn++),t??n.current}function Pt({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:s,forwardedRef:i,id:o,maxSize:l,minSize:c,onCollapse:d,onExpand:m,onResize:u,order:f,style:v,tagName:x="div",...k}){const b=h.useContext(Ae);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:C,getPanelSize:I,getPanelStyle:j,groupId:F,isPanelCollapsed:$,reevaluatePanelConstraints:g,registerPanel:G,resizePanel:W,unregisterPanel:O}=b,A=Ze(o),D=h.useRef({callbacks:{onCollapse:d,onExpand:m,onResize:u},constraints:{collapsedSize:n,collapsible:r,defaultSize:s,maxSize:l,minSize:c},id:A,idIsFromProps:o!==void 0,order:f});h.useRef({didLogMissingDefaultSizeWarning:!1}),pe(()=>{const{callbacks:_,constraints:L}=D.current,T={...L};D.current.id=A,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=d,_.onExpand=m,_.onResize=u,L.collapsedSize=n,L.collapsible=r,L.defaultSize=s,L.maxSize=l,L.minSize=c,(T.collapsedSize!==L.collapsedSize||T.collapsible!==L.collapsible||T.maxSize!==L.maxSize||T.minSize!==L.minSize)&&g(D.current,T)}),pe(()=>{const _=D.current;return G(_),()=>{O(_)}},[f,A,G,O]),h.useImperativeHandle(i,()=>({collapse:()=>{w(D.current)},expand:_=>{C(D.current,_)},getId(){return A},getSize(){return I(D.current)},isCollapsed(){return $(D.current)},isExpanded(){return!$(D.current)},resize:_=>{W(D.current,_)}}),[w,C,I,$,A,W]);const V=j(D.current,s);return h.createElement(x,{...k,children:t,className:e,id:A,style:{...V,...v},[K.groupId]:F,[K.panel]:"",[K.panelCollapsible]:r||void 0,[K.panelId]:A,[K.panelSize]:parseFloat(""+V.flexGrow).toFixed(1)})}const Ct=h.forwardRef((t,e)=>h.createElement(Pt,{...t,forwardedRef:e}));Pt.displayName="Panel";Ct.displayName="forwardRef(Panel)";let Ye=null,Ie=-1,de=null;function On(t,e){if(e){const n=(e&It)!==0,r=(e&Rt)!==0,s=(e&Dt)!==0,i=(e&Lt)!==0;if(n)return s?"se-resize":i?"ne-resize":"e-resize";if(r)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Un(){de!==null&&(document.head.removeChild(de),Ye=null,de=null,Ie=-1)}function Fe(t,e){var n,r;const s=On(t,e);if(Ye!==s){if(Ye=s,de===null&&(de=document.createElement("style"),document.head.appendChild(de)),Ie>=0){var i;(i=de.sheet)===null||i===void 0||i.removeRule(Ie)}Ie=(n=(r=de.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${s} !important;}`))!==null&&n!==void 0?n:-1}}function Et(t){return t.type==="keydown"}function Nt(t){return t.type.startsWith("pointer")}function $t(t){return t.type.startsWith("mouse")}function Te(t){if(Nt(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if($t(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Fn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Wn(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Bn(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ct(t),b:ct(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;N(r,"Stacking order can only be calculated for elements with a common ancestor");const s={a:at(lt(n.a)),b:at(lt(n.b))};if(s.a===s.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const c=i[l];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(s.a-s.b)}const Gn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function qn(t){var e;const n=getComputedStyle((e=Mt(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Kn(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||qn(t))||+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"||Gn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function lt(t){let e=t.length;for(;e--;){const n=t[e];if(N(n,"Missing node"),Kn(n))return n}return null}function at(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ct(t){const e=[];for(;t;)e.push(t),t=Mt(t);return e}function Mt(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const It=1,Rt=2,Dt=4,Lt=8,Vn=Fn()==="coarse";let re=[],be=!1,me=new Map,He=new Map;const Ce=new Set;function Xn(t,e,n,r,s){var i;const{ownerDocument:o}=e,l={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:s},c=(i=me.get(o))!==null&&i!==void 0?i:0;return me.set(o,c+1),Ce.add(l),De(),function(){var m;He.delete(t),Ce.delete(l);const u=(m=me.get(o))!==null&&m!==void 0?m:1;if(me.set(o,u-1),De(),u===1&&me.delete(o),re.includes(l)){const f=re.indexOf(l);f>=0&&re.splice(f,1),tt(),s("up",!0,null)}}}function Yn(t){const{target:e}=t,{x:n,y:r}=Te(t);be=!0,et({target:e,x:n,y:r}),De(),re.length>0&&(Le("down",t),t.preventDefault(),_t(e)||t.stopImmediatePropagation())}function We(t){const{x:e,y:n}=Te(t);if(be&&t.buttons===0&&(be=!1,Le("up",t)),!be){const{target:r}=t;et({target:r,x:e,y:n})}Le("move",t),tt(),re.length>0&&t.preventDefault()}function Be(t){const{target:e}=t,{x:n,y:r}=Te(t);He.clear(),be=!1,re.length>0&&(t.preventDefault(),_t(e)||t.stopImmediatePropagation()),Le("up",t),et({target:e,x:n,y:r}),tt(),De()}function _t(t){let e=t;for(;e;){if(e.hasAttribute(K.resizeHandle))return!0;e=e.parentElement}return!1}function et({target:t,x:e,y:n}){re.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Ce.forEach(s=>{const{element:i,hitAreaMargins:o}=s,l=i.getBoundingClientRect(),{bottom:c,left:d,right:m,top:u}=l,f=Vn?o.coarse:o.fine;if(e>=d-f&&e<=m+f&&n>=u-f&&n<=c+f){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&Bn(r,i)>0){let x=r,k=!1;for(;x&&!x.contains(i);){if(Wn(x.getBoundingClientRect(),l)){k=!0;break}x=x.parentElement}if(k)return}re.push(s)}})}function Ge(t,e){He.set(t,e)}function tt(){let t=!1,e=!1;re.forEach(r=>{const{direction:s}=r;s==="horizontal"?t=!0:e=!0});let n=0;He.forEach(r=>{n|=r}),t&&e?Fe("intersection",n):t?Fe("horizontal",n):e?Fe("vertical",n):Un()}let qe=new AbortController;function De(){qe.abort(),qe=new AbortController;const t={capture:!0,signal:qe.signal};Ce.size&&(be?(re.length>0&&me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",Be,t),r.addEventListener("pointerleave",We,t),r.addEventListener("pointermove",We,t))}),window.addEventListener("pointerup",Be,t),window.addEventListener("pointercancel",Be,t)):me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",Yn,t),r.addEventListener("pointermove",We,t))}))}function Le(t,e){Ce.forEach(n=>{const{setResizeHandlerState:r}=n,s=re.includes(n);r(t,s,e)})}function Jn(){const[t,e]=h.useState(0);return h.useCallback(()=>e(n=>n+1),[])}function N(t,e){if(!t)throw console.error(e),Error(e)}function he(t,e,n=Qe){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ce(t,e,n=Qe){return he(t,e,n)===0}function ee(t,e,n){return he(t,e,n)===0}function Qn(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const s=t[r],i=e[r];if(!ee(s,i,n))return!1}return!0}function ye({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];N(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:s=0,collapsible:i,maxSize:o=100,minSize:l=0}=r;if(he(n,l)<0)if(i){const c=(s+l)/2;he(n,c)<0?n=s:n=l}else n=l;return n=Math.min(o,n),n=parseFloat(n.toFixed(Qe)),n}function je({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:s,trigger:i}){if(ee(t,0))return e;const o=[...e],[l,c]=r;N(l!=null,"Invalid first pivot index"),N(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:l,f=n[u];N(f,`Panel constraints not found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,v)){const w=k-b;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}{const u=t<0?l:c,f=n[u];N(f,`No panel constraints found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,k)){const w=b-v;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}}{const u=t<0?1:-1;let f=t<0?c:l,v=0;for(;;){const k=e[f];N(k!=null,`Previous layout not found for panel index ${f}`);const w=ye({panelConstraints:n,panelIndex:f,size:100})-k;if(v+=w,f+=u,f<0||f>=n.length)break}const x=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-x:x}{let f=t<0?l:c;for(;f>=0&&f<n.length;){const v=Math.abs(t)-Math.abs(d),x=e[f];N(x!=null,`Previous layout not found for panel index ${f}`);const k=x-v,b=ye({panelConstraints:n,panelIndex:f,size:k});if(!ee(x,b)&&(d+=x-b,o[f]=b,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?f--:f++}}if(Qn(s,o))return s;{const u=t<0?c:l,f=e[u];N(f!=null,`Previous layout not found for panel index ${u}`);const v=f+d,x=ye({panelConstraints:n,panelIndex:u,size:v});if(o[u]=x,!ee(x,v)){let k=v-x,w=t<0?c:l;for(;w>=0&&w<n.length;){const C=o[w];N(C!=null,`Previous layout not found for panel index ${w}`);const I=C+k,j=ye({panelConstraints:n,panelIndex:w,size:I});if(ee(C,j)||(k-=j-C,o[w]=j),ee(k,0))break;t>0?w--:w++}}}const m=o.reduce((u,f)=>f+u,0);return ee(m,100)?o:s}function Zn({layout:t,panelsArray:e,pivotIndices:n}){let r=0,s=100,i=0,o=0;const l=n[0];N(l!=null,"No pivot index found"),e.forEach((u,f)=>{const{constraints:v}=u,{maxSize:x=100,minSize:k=0}=v;f===l?(r=k,s=x):(i+=k,o+=x)});const c=Math.min(s,100-i),d=Math.max(r,100-o),m=t[l];return{valueMax:c,valueMin:d,valueNow:m}}function Ee(t,e=document){return Array.from(e.querySelectorAll(`[${K.resizeHandleId}][data-panel-group-id="${t}"]`))}function At(t,e,n=document){const s=Ee(t,n).findIndex(i=>i.getAttribute(K.resizeHandleId)===e);return s??null}function Tt(t,e,n){const r=At(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Ht(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Oe(t,e=document){const n=e.querySelector(`[${K.resizeHandleId}="${t}"]`);return n||null}function er(t,e,n,r=document){var s,i,o,l;const c=Oe(e,r),d=Ee(t,r),m=c?d.indexOf(c):-1,u=(s=(i=n[m])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null,f=(o=(l=n[m+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[u,f]}function tr({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:s,panelGroupElement:i,setLayout:o}){h.useRef({didWarnAboutMissingResizeHandle:!1}),pe(()=>{if(!i)return;const l=Ee(n,i);for(let c=0;c<s.length-1;c++){const{valueMax:d,valueMin:m,valueNow:u}=Zn({layout:r,panelsArray:s,pivotIndices:[c,c+1]}),f=l[c];if(f!=null){const v=s[c];N(v,`No panel data found for index "${c}"`),f.setAttribute("aria-controls",v.id),f.setAttribute("aria-valuemax",""+Math.round(d)),f.setAttribute("aria-valuemin",""+Math.round(m)),f.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{l.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,s,i]),h.useEffect(()=>{if(!i)return;const l=e.current;N(l,"Eager values not found");const{panelDataArray:c}=l,d=Ht(n,i);N(d!=null,`No group found for id "${n}"`);const m=Ee(n,i);N(m,`No resize handles found for group id "${n}"`);const u=m.map(f=>{const v=f.getAttribute(K.resizeHandleId);N(v,"Resize handle element has no handle id attribute");const[x,k]=er(n,v,c,i);if(x==null||k==null)return()=>{};const b=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const C=c.findIndex(I=>I.id===x);if(C>=0){const I=c[C];N(I,`No panel data found for index ${C}`);const j=r[C],{collapsedSize:F=0,collapsible:$,minSize:g=0}=I.constraints;if(j!=null&&$){const G=je({delta:ee(j,F)?g-F:F-j,initialLayout:r,panelConstraints:c.map(W=>W.constraints),pivotIndices:Tt(n,v,i),prevLayout:r,trigger:"keyboard"});r!==G&&o(G)}}break}}};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}});return()=>{u.forEach(f=>f())}},[i,t,e,n,r,s,o])}function ut(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ot(t,e){const n=t==="horizontal",{x:r,y:s}=Te(e);return n?r:s}function nr(t,e,n,r,s){const i=n==="horizontal",o=Oe(e,s);N(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(K.groupId);N(l,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const d=Ot(n,t),m=Ht(l,s);N(m,`No group element found for id "${l}"`);const u=m.getBoundingClientRect(),f=i?u.width:u.height;return(d-c)/f*100}function rr(t,e,n,r,s,i){if(Et(t)){const o=n==="horizontal";let l=0;t.shiftKey?l=100:s!=null?l=s:l=10;let c=0;switch(t.key){case"ArrowDown":c=o?0:l;break;case"ArrowLeft":c=o?-l:0;break;case"ArrowRight":c=o?l:0;break;case"ArrowUp":c=o?0:-l;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:nr(t,e,n,r,i)}function sr({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let r=0,s=100;for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(r++,e[i]=l,s-=l)}for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const c=t.length-r,d=s/c;r++,e[i]=d,s-=d}return e}function ge(t,e,n){e.forEach((r,s)=>{const i=t[s];N(i,`Panel data not found for index ${s}`);const{callbacks:o,constraints:l,id:c}=i,{collapsedSize:d=0,collapsible:m}=l,u=n[c];if(u==null||r!==u){n[c]=r;const{onCollapse:f,onExpand:v,onResize:x}=o;x&&x(r,u),m&&(f||v)&&(v&&(u==null||ce(u,d))&&!ce(r,d)&&v(),f&&(u==null||!ce(u,d))&&ce(r,d)&&f())}})}function Me(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function ir({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:s,precision:i=3}){const o=n[s];let l;return o==null?l=t!=null?t.toPrecision(i):"1":r.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function or(t,e=10){let n=null;return(...s)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}}function dt(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Ut(t){return`react-resizable-panels:${t}`}function Ft(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:s,order:i}=e;return s?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Wt(t,e){try{const n=Ut(t),r=e.getItem(n);if(r){const s=JSON.parse(r);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function lr(t,e,n){var r,s;const i=(r=Wt(t,n))!==null&&r!==void 0?r:{},o=Ft(e);return(s=i[o])!==null&&s!==void 0?s:null}function ar(t,e,n,r,s){var i;const o=Ut(t),l=Ft(e),c=(i=Wt(t,s))!==null&&i!==void 0?i:{};c[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{s.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function ft({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ee(r,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=100/r*o;n[i]=l}let s=0;for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=ye({panelConstraints:e,panelIndex:i,size:o});o!=l&&(s+=o-l,n[i]=l)}if(!ee(s,0))for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=o+s,c=ye({panelConstraints:e,panelIndex:i,size:l});if(o!==c&&(s-=c-o,n[i]=c,ee(s,0)))break}return n}const cr=100,ke={getItem:t=>(dt(ke),ke.getItem(t)),setItem:(t,e)=>{dt(ke),ke.setItem(t,e)}},mt={};function Bt({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:s,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:c=ke,style:d,tagName:m="div",...u}){const f=Ze(i),v=h.useRef(null),[x,k]=h.useState(null),[b,w]=h.useState([]),C=Jn(),I=h.useRef({}),j=h.useRef(new Map),F=h.useRef(0),$=h.useRef({autoSaveId:t,direction:r,dragState:x,id:f,keyboardResizeBy:l,onLayout:o,storage:c}),g=h.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});h.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),h.useImperativeHandle(s,()=>({getId:()=>$.current.id,getLayout:()=>{const{layout:p}=g.current;return p},setLayout:p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current,y=ft({layout:p,panelConstraints:P.map(E=>E.constraints)});ut(M,y)||(w(y),g.current.layout=y,z&&z(y),ge(P,y,I.current))}}),[]),pe(()=>{$.current.autoSaveId=t,$.current.direction=r,$.current.dragState=x,$.current.id=f,$.current.onLayout=o,$.current.storage=c}),tr({committedValuesRef:$,eagerValuesRef:g,groupId:f,layout:b,panelDataArray:g.current.panelDataArray,setLayout:w,panelGroupElement:v.current}),h.useEffect(()=>{const{panelDataArray:p}=g.current;if(t){if(b.length===0||b.length!==p.length)return;let z=mt[t];z==null&&(z=or(ar,cr),mt[t]=z);const M=[...p],P=new Map(j.current);z(t,M,P,b,c)}},[t,b,c]),h.useEffect(()=>{});const G=h.useCallback(p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current;if(p.constraints.collapsible){const y=P.map(se=>se.constraints),{collapsedSize:E=0,panelSize:U,pivotIndices:X}=fe(P,p,M);if(N(U!=null,`Panel size not found for panel "${p.id}"`),!ce(U,E)){j.current.set(p.id,U);const ie=ve(P,p)===P.length-1?U-E:E-U,q=je({delta:ie,initialLayout:M,panelConstraints:y,pivotIndices:X,prevLayout:M,trigger:"imperative-api"});Me(M,q)||(w(q),g.current.layout=q,z&&z(q),ge(P,q,I.current))}}},[]),W=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current;if(p.constraints.collapsible){const E=y.map(ne=>ne.constraints),{collapsedSize:U=0,panelSize:X=0,minSize:se=0,pivotIndices:ie}=fe(y,p,P),q=z??se;if(ce(X,U)){const ne=j.current.get(p.id),Se=ne!=null&&ne>=q?ne:q,Ue=ve(y,p)===y.length-1?X-Se:Se-X,Q=je({delta:Ue,initialLayout:P,panelConstraints:E,pivotIndices:ie,prevLayout:P,trigger:"imperative-api"});Me(P,Q)||(w(Q),g.current.layout=Q,M&&M(Q),ge(y,Q,I.current))}}},[]),O=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{panelSize:P}=fe(M,p,z);return N(P!=null,`Panel size not found for panel "${p.id}"`),P},[]),A=h.useCallback((p,z)=>{const{panelDataArray:M}=g.current,P=ve(M,p);return ir({defaultSize:z,dragState:x,layout:b,panelData:M,panelIndex:P})},[x,b]),D=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),y===!0&&ce(E,P)},[]),V=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),!y||he(E,P)>0},[]),_=h.useCallback(p=>{const{panelDataArray:z}=g.current;z.push(p),z.sort((M,P)=>{const y=M.order,E=P.order;return y==null&&E==null?0:y==null?-1:E==null?1:y-E}),g.current.panelDataArrayChanged=!0,C()},[C]);pe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:p,onLayout:z,storage:M}=$.current,{layout:P,panelDataArray:y}=g.current;let E=null;if(p){const X=lr(p,y,M);X&&(j.current=new Map(Object.entries(X.expandToSizes)),E=X.layout)}E==null&&(E=sr({panelDataArray:y}));const U=ft({layout:E,panelConstraints:y.map(X=>X.constraints)});ut(P,U)||(w(U),g.current.layout=U,z&&z(U),ge(y,U,I.current))}}),pe(()=>{const p=g.current;return()=>{p.layout=[]}},[]);const L=h.useCallback(p=>{let z=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(y){y.preventDefault();const E=v.current;if(!E)return()=>null;const{direction:U,dragState:X,id:se,keyboardResizeBy:ie,onLayout:q}=$.current,{layout:ne,panelDataArray:Se}=g.current,{initialLayout:Ne}=X??{},Ue=Tt(se,p,E);let Q=rr(y,p,U,X,ie,E);const rt=U==="horizontal";rt&&z&&(Q=-Q);const Zt=Se.map(en=>en.constraints),ze=je({delta:Q,initialLayout:Ne??ne,panelConstraints:Zt,pivotIndices:Ue,prevLayout:ne,trigger:Et(y)?"keyboard":"mouse-or-touch"}),st=!Me(ne,ze);(Nt(y)||$t(y))&&F.current!=Q&&(F.current=Q,!st&&Q!==0?rt?Ge(p,Q<0?It:Rt):Ge(p,Q<0?Dt:Lt):Ge(p,0)),st&&(w(ze),g.current.layout=ze,q&&q(ze),ge(Se,ze,I.current))}},[]),T=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current,E=y.map(ne=>ne.constraints),{panelSize:U,pivotIndices:X}=fe(y,p,P);N(U!=null,`Panel size not found for panel "${p.id}"`);const ie=ve(y,p)===y.length-1?U-z:z-U,q=je({delta:ie,initialLayout:P,panelConstraints:E,pivotIndices:X,prevLayout:P,trigger:"imperative-api"});Me(P,q)||(w(q),g.current.layout=q,M&&M(q),ge(y,q,I.current))},[]),H=h.useCallback((p,z)=>{const{layout:M,panelDataArray:P}=g.current,{collapsedSize:y=0,collapsible:E}=z,{collapsedSize:U=0,collapsible:X,maxSize:se=100,minSize:ie=0}=p.constraints,{panelSize:q}=fe(P,p,M);q!=null&&(E&&X&&ce(q,y)?ce(y,U)||T(p,U):q<ie?T(p,ie):q>se&&T(p,se))},[T]),Y=h.useCallback((p,z)=>{const{direction:M}=$.current,{layout:P}=g.current;if(!v.current)return;const y=Oe(p,v.current);N(y,`Drag handle element not found for id "${p}"`);const E=Ot(M,z);k({dragHandleId:p,dragHandleRect:y.getBoundingClientRect(),initialCursorPosition:E,initialLayout:P})},[]),te=h.useCallback(()=>{k(null)},[]),B=h.useCallback(p=>{const{panelDataArray:z}=g.current,M=ve(z,p);M>=0&&(z.splice(M,1),delete I.current[p.id],g.current.panelDataArrayChanged=!0,C())},[C]),S=h.useMemo(()=>({collapsePanel:G,direction:r,dragState:x,expandPanel:W,getPanelSize:O,getPanelStyle:A,groupId:f,isPanelCollapsed:D,isPanelExpanded:V,reevaluatePanelConstraints:H,registerPanel:_,registerResizeHandle:L,resizePanel:T,startDragging:Y,stopDragging:te,unregisterPanel:B,panelGroupElement:v.current}),[G,x,r,W,O,A,f,D,V,H,_,L,T,Y,te,B]),R={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return h.createElement(Ae.Provider,{value:S},h.createElement(m,{...u,children:e,className:n,id:i,ref:v,style:{...R,...d},[K.group]:"",[K.groupDirection]:r,[K.groupId]:f}))}const Gt=h.forwardRef((t,e)=>h.createElement(Bt,{...t,forwardedRef:e}));Bt.displayName="PanelGroup";Gt.displayName="forwardRef(PanelGroup)";function ve(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function fe(t,e,n){const r=ve(t,e),i=r===t.length-1?[r-1,r]:[r,r+1],o=n[r];return{...e.constraints,panelSize:o,pivotIndices:i}}function ur({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){h.useEffect(()=>{if(t||n==null||r==null)return;const s=Oe(e,r);if(s==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=s.getAttribute(K.groupId);N(l,`No group element found for id "${l}"`);const c=Ee(l,r),d=At(l,e,r);N(d!==null,`No resize element found for id "${e}"`);const m=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[m].focus();break}}};return s.addEventListener("keydown",i),()=>{s.removeEventListener("keydown",i)}},[r,t,e,n])}function qt({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:s,onBlur:i,onClick:o,onDragging:l,onFocus:c,onPointerDown:d,onPointerUp:m,style:u={},tabIndex:f=0,tagName:v="div",...x}){var k,b;const w=h.useRef(null),C=h.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:m});h.useEffect(()=>{C.current.onClick=o,C.current.onDragging=l,C.current.onPointerDown=d,C.current.onPointerUp=m});const I=h.useContext(Ae);if(I===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:j,groupId:F,registerResizeHandle:$,startDragging:g,stopDragging:G,panelGroupElement:W}=I,O=Ze(s),[A,D]=h.useState("inactive"),[V,_]=h.useState(!1),[L,T]=h.useState(null),H=h.useRef({state:A});pe(()=>{H.current.state=A}),h.useEffect(()=>{if(n)T(null);else{const S=$(O);T(()=>S)}},[n,O,$]);const Y=(k=r?.coarse)!==null&&k!==void 0?k:15,te=(b=r?.fine)!==null&&b!==void 0?b:5;h.useEffect(()=>{if(n||L==null)return;const S=w.current;N(S,"Element ref not attached");let R=!1;return Xn(O,S,j,{coarse:Y,fine:te},(z,M,P)=>{if(!M){D("inactive");return}switch(z){case"down":{D("drag"),R=!1,N(P,'Expected event to be defined for "down" action'),g(O,P);const{onDragging:y,onPointerDown:E}=C.current;y?.(!0),E?.();break}case"move":{const{state:y}=H.current;R=!0,y!=="drag"&&D("hover"),N(P,'Expected event to be defined for "move" action'),L(P);break}case"up":{D("hover"),G();const{onClick:y,onDragging:E,onPointerUp:U}=C.current;E?.(!1),U?.(),R||y?.();break}}})},[Y,j,n,te,$,O,L,g,G]),ur({disabled:n,handleId:O,resizeHandler:L,panelGroupElement:W});const B={touchAction:"none",userSelect:"none"};return h.createElement(v,{...x,children:t,className:e,id:s,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),c?.()},ref:w,role:"separator",style:{...B,...u},tabIndex:f,[K.groupDirection]:j,[K.groupId]:F,[K.resizeHandle]:"",[K.resizeHandleActive]:A==="drag"?"pointer":V?"keyboard":void 0,[K.resizeHandleEnabled]:!n,[K.resizeHandleId]:O,[K.resizeHandleState]:A})}qt.displayName="PanelResizeHandle";function ls(t){const e=J.c(10);let n,r,s;e[0]!==t?({className:n,ref:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==s||e[8]!==i?(o=a.jsx(Gt,{ref:s,"data-slot":"resizable-panel-group",className:i,...r}),e[6]=r,e[7]=s,e[8]=i,e[9]=o):o=e[9],o}function as(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=a.jsx(Ct,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=r):r=e[3],r}function cs(t){const e=J.c(12);let n,r,s;e[0]!==t?({withHandle:s,className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("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",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==s?(o=s&&a.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsx(fn,{className:"size-2.5"})}),e[6]=s,e[7]=o):o=e[7];let l;return e[8]!==r||e[9]!==i||e[10]!==o?(l=a.jsx(qt,{"data-slot":"resizable-handle",className:i,...r,children:o}),e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function dr(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function fr(t){if(dr(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function mr(t){try{return decodeURIComponent(t)}catch{return t}}function pr(t){return fr(t),encodeURIComponent(t)}function hr(t){return`.deco/blocks/${pr(t)}.json`}function us(t){return`/${hr(t)}`}const ds=1e4,xr=3;function Je(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function nt(t){return t.startsWith("/")?t.slice(1):t}function _e(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function gr(t){const e=_e(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function fs(t,e){const n=e.replace(/^\/+|\/+$/g,"");return _e(n?`${t==="/"?"":t}/${n}`:t)}function ms(t,e){return e==="directory"?t:gr(t)}function ps(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function vr(t){const e=nt(t);return e?e.split("/").filter(Boolean).length:0}function hs(t,e,n,r=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:r||!!n.truncated}}function xs(t,e){return vr(t)>=xr&&!e.has(t)}function gs(t,e,n=[]){const r=nt(t);if(e.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return e.some(i=>i.startsWith(s))||n.some(i=>i.startsWith(s))}function vs(t){const e=nt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const r=e.slice(n.length,-5);return mr(r)}function wr(t){if(!t)return"plaintext";const e=t.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function ws(t){const e=Je(t).split("/").filter(Boolean),n=["/"];let r="";for(const s of e.slice(0,-1))r+=`/${s}`,n.push(r);return n}function ys(t,e=[]){const n={children:[]},r=i=>{const l=Je(i).split("/").filter(Boolean);let c=n,d="";for(const m of l){d+=`/${m}`;let u=c.children.find(f=>f.name===m);u?u.kind==="file"&&(u.kind="directory"):(u={name:m,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of t){const l=Je(i).split("/").filter(Boolean);let c=n,d="";l.forEach((m,u)=>{d+=`/${m}`;const f=u===l.length-1;let v=c.children.find(x=>x.name===m);v||(v={name:m,path:d,kind:f?"file":"directory",children:[]},c.children.push(v)),c=v})}for(const i of e)r(_e(i));const s=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&s(o.children)};return s(n.children),n.children}function yr(t,e,n=0){const r=[];for(const s of t)s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&e.has(s.path)&&r.push(...yr(s.children,e,n+1)));return r}function bs(t){return t.split(`
2
2
  `).map(e=>{const n=e.match(/^\d+\t(.*)/);return n?n[1]:e}).join(`
3
3
  `)}bn.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function br(t){const e=J.c(11),{value:n,filename:r}=t,[s]=nn(),i=s.theme==="dark"||s.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==r?(o=wr(r),e[0]=r,e[1]=o):o=e[1];const l=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx(rn,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=e[2];let d,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},m={top:12,bottom:12},e[3]=d,e[4]=m):(d=e[3],m=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:d,padding:m,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let f;return e[6]!==r||e[7]!==o||e[8]!==l||e[9]!==n?(f=a.jsx(Sn,{path:r,language:o,value:n,theme:l,loading:c,options:u},r),e[6]=r,e[7]=o,e[8]=l,e[9]=n,e[10]=f):f=e[10],f}function Kt(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Sr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),zr=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),pt=2*1024*1024;function jr(t,e){const n=t.split(".").pop()?.toLowerCase()??"";return Sr.has(n)?"image":n==="pdf"?"pdf":n==="html"||n==="htm"?"html":n==="md"||n==="markdown"?e<=pt?"markdown":"download":zr.has(n)&&e<=pt?"text":"download"}function Vt(){const t=J.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx($e,{className:"h-6 w-2/3"}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx($e,{className:"h-3 w-full"}),a.jsx($e,{className:"h-3 w-5/6"}),a.jsx($e,{className:"h-3 w-2/3"})]})]})}),t[1]=n):n=t[1],n}function Xt(t){const e=J.c(20),{file:n,note:r}=t;let s;e[0]!==n.filename?(s=a.jsx(Xe,{filename:n.filename,className:"h-12 w-10"}),e[0]=n.filename,e[1]=s):s=e[1];let i;e[2]!==n.filename?(i=a.jsx("span",{className:"text-sm font-medium text-foreground",children:n.filename}),e[2]=n.filename,e[3]=i):i=e[3];let o;e[4]!==n.size?(o=Kt(n.size),e[4]=n.size,e[5]=o):o=e[5];const l=r?` · ${r}`:"";let c;e[6]!==o||e[7]!==l?(c=a.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,l]}),e[6]=o,e[7]=l,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=a.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,c]}),e[9]=i,e[10]=c,e[11]=d):d=e[11];let m;e[12]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Re,{size:14}),e[12]=m):m=e[12];let u;e[13]!==n.downloadUrl||e[14]!==n.filename?(u=a.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:a.jsxs("a",{href:n.downloadUrl,download:n.filename,children:[m,"Download"]})}),e[13]=n.downloadUrl,e[14]=n.filename,e[15]=u):u=e[15];let f;return e[16]!==s||e[17]!==d||e[18]!==u?(f=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[s,d,u]})}),e[16]=s,e[17]=d,e[18]=u,e[19]=f):f=e[19],f}function ht(t){const e=J.c(16),{file:n,markdown:r}=t;let s;e[0]!==n.downloadUrl?(s=Ke.fileText(n.downloadUrl),e[0]=n.downloadUrl,e[1]=s):s=e[1];let i;e[2]!==n.downloadUrl?(i=async()=>{const u=await fetch(n.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=n.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==s||e[5]!==i?(o={queryKey:s,queryFn:i,staleTime:6e4,retry:!1},e[4]=s,e[5]=i,e[6]=o):o=e[6];const{data:l,isPending:c,isError:d}=sn(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(Vt,{}),e[7]=u):u=e[7],u}if(d||l===void 0){let u;return e[8]!==n?(u=a.jsx(Xt,{file:n,note:"preview unavailable"}),e[8]=n,e[9]=u):u=e[9],u}if(r){const u=`file-preview-${n.key}`;let f;return e[10]!==l||e[11]!==u?(f=a.jsx("div",{className:"h-full overflow-y-auto",children:a.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:a.jsx(zn,{id:u,text:l})})}),e[10]=l,e[11]=u,e[12]=f):f=e[12],f}let m;return e[13]!==l||e[14]!==n.filename?(m=a.jsx(br,{value:l,filename:n.filename}),e[13]=l,e[14]=n.filename,e[15]=m):m=e[15],m}function kr(t){const e=J.c(15),{file:n}=t;switch(jr(n.filename,n.size)){case"image":{let s;return e[0]!==n.downloadUrl||e[1]!==n.filename?(s=a.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:a.jsx("img",{src:n.downloadUrl,alt:n.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=n.downloadUrl,e[1]=n.filename,e[2]=s):s=e[2],s}case"pdf":{let s;return e[3]!==n.downloadUrl||e[4]!==n.filename?(s=a.jsx("iframe",{src:n.downloadUrl,title:n.filename,className:"block h-full w-full bg-white"}),e[3]=n.downloadUrl,e[4]=n.filename,e[5]=s):s=e[5],s}case"html":{let s;return e[6]!==n.downloadUrl||e[7]!==n.filename?(s=a.jsx("iframe",{src:n.downloadUrl,title:n.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=n.downloadUrl,e[7]=n.filename,e[8]=s):s=e[8],s}case"markdown":{let s;return e[9]!==n?(s=a.jsx(ht,{file:n,markdown:!0}),e[9]=n,e[10]=s):s=e[10],s}case"text":{let s;return e[11]!==n?(s=a.jsx(ht,{file:n,markdown:!1}),e[11]=n,e[12]=s):s=e[12],s}default:{let s;return e[13]!==n?(s=a.jsx(Xt,{file:n}),e[13]=n,e[14]=s):s=e[14],s}}}function Pr(t){const e=J.c(40),{readUrl:n,editor:r,downloadName:s,trailing:i}=t;let o;e[0]!==n?(o=new URL(n,window.location.origin).toString(),e[0]=n,e[1]=o):o=e[1];const l=o;let c;e[2]!==r?(c=r.deckDetected&&a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:r.railOpen?"secondary":"ghost",size:"icon","aria-label":r.railOpen?"Hide slide list":"Show slide list",onClick:()=>r.setRailOpen(!r.railOpen),children:a.jsx(Cn,{size:14})})}),a.jsx(ae,{side:"bottom",children:r.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=r,e[3]=c):c=e[3];let d;e[4]!==l?(d=()=>window.open(l,"_blank","noopener"),e[4]=l,e[5]=d):d=e[5];let m;e[6]!==l?(m=a.jsx("span",{className:"truncate",children:l}),e[6]=l,e[7]=m):m=e[7];let u;e[8]!==l||e[9]!==d||e[10]!==m?(u=a.jsx("button",{type:"button",onClick:d,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:l,children:m}),e[8]=l,e[9]=d,e[10]=m,e[11]=u):u=e[11];let f;e[12]!==r.agentUpdated||e[13]!==r.reload?(f=r.agentUpdated&&a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:r.reload,children:[a.jsx(on,{size:12}),"Agent updated — reload"]})}),a.jsx(ae,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=r.agentUpdated,e[13]=r.reload,e[14]=f):f=e[14];let v;e[15]!==r.saving?(v=r.saving&&a.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=r.saving,e[16]=v):v=e[16];let x;e[17]!==r?(x=r.deckDetected&&r.writable&&a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:r.editMode?"secondary":"ghost",size:"icon","aria-label":r.editMode?"Done editing":"Edit inline",className:xe(r.editMode&&"text-primary"),onClick:()=>r.setEditMode(!r.editMode),children:a.jsx(mn,{size:14})})}),a.jsx(ae,{side:"bottom",children:r.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=r,e[18]=x):x=e[18];let k;e[19]!==l||e[20]!==s||e[21]!==r.deckDetected?(k=r.deckDetected?a.jsxs(jn,{children:[a.jsx(kn,{asChild:!0,children:a.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",children:a.jsx(Re,{size:14})})}),a.jsxs(Pn,{align:"end",children:[a.jsxs(it,{onClick:()=>window.open(`${l}#print`,"_blank","noopener"),children:[a.jsx(pn,{size:14}),"Export as PDF"]}),a.jsx(it,{asChild:!0,children:a.jsxs("a",{href:l,download:s,children:[a.jsx(hn,{size:14}),"Download HTML"]})})]})]}):a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:a.jsx("a",{href:l,download:s,children:a.jsx(Re,{size:14})})})}),a.jsx(ae,{side:"bottom",children:"Download"})]}),e[19]=l,e[20]=s,e[21]=r.deckDetected,e[22]=k):k=e[22];let b;e[23]!==l?(b=()=>window.open(l,"_blank","noopener"),e[23]=l,e[24]=b):b=e[24];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(zt,{size:14}),e[25]=w):w=e[25];let C;e[26]!==b?(C=a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:w})}),e[26]=b,e[27]=C):C=e[27];let I;e[28]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsx(ae,{side:"bottom",children:"Open in new tab"}),e[28]=I):I=e[28];let j;e[29]!==C?(j=a.jsxs(oe,{children:[C,I]}),e[29]=C,e[30]=j):j=e[30];let F;return e[31]!==j||e[32]!==c||e[33]!==u||e[34]!==f||e[35]!==v||e[36]!==x||e[37]!==k||e[38]!==i?(F=a.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,f,v,x,k,j,i]}),e[31]=j,e[32]=c,e[33]=u,e[34]=f,e[35]=v,e[36]=x,e[37]=k,e[38]=i,e[39]=F):F=e[39],F}const we=1;function Cr(t){if(typeof t!="object"||t===null||t.v!==we||t.source!=="deck-viewer")return null;const e=t;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class ue extends Error{constructor(e,n){super(e),this.code=n,this.name="DeckOpError"}code}function Yt(t){return[...t.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Er(t){const n=new DOMParser().parseFromString(t,"text/html").querySelector("deck-viewer");return n?Yt(n).length:null}function Nr(t,e){const n=new DOMParser().parseFromString(t,"text/html"),r=n.querySelector("deck-viewer");if(!r)throw new ue("no <deck-viewer> element in source","no-viewer");const s=Yt(r),i=e.kind==="move"?e.from:e.at,o=s[i];if(!o)throw new ue(`slide index ${i} out of range (${s.length})`,"stale-index");switch(e.kind){case"remove":{if(s.length<=1)throw new ue("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const c=o.cloneNode(!0);c.removeAttribute("id");for(const d of c.querySelectorAll("[id]"))d.removeAttribute("id");o.after(c);break}case"move":{if(e.to<0||e.to>=s.length)throw new ue(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?s[e.to]:s[e.to].nextSibling;r.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ue(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new ue("replace html has no root element","bad-op");o.replaceWith(n.importNode(d,!0));break}default:throw new ue(`unknown op kind: ${e.kind}`,"bad-op")}return`${t.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
4
4
  `:""}${n.documentElement.outerHTML}
@@ -1 +1 @@
1
- import{c as h,r as y,l as j,j as f}from"./index-Ce-NoXEp.js";import{a5 as A}from"./agent-icon-DtAe4QA2.js";import{s as N}from"./Plus-NToHlEg2.js";import{s as _}from"./Trash01-CuZl7D3Y.js";const S=700;function R(r,e,o){const t=h.c(7),s=S,[n,c]=y.useState(r),[l,u]=y.useState(r),[x,p]=y.useState(!1),i=y.useRef(null);r!==l&&(u(r),x||c(r));let a;t[0]!==s||t[1]!==e?(a=g=>{c(g),p(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,p(!1),e(g)},s)},t[0]=s,t[1]=e,t[2]=a):a=t[2];const d=a;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{c(g),i.current&&clearTimeout(i.current),i.current=null,p(!1)},t[3]=m):m=t[3];const v=m;let b;return t[4]!==n||t[5]!==d?(b=[n,d,v],t[4]=n,t[5]=d,t[6]=b):b=t[6],b}function T(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:l,onKeyDown:u,spellCheck:x,inputRef:p}=r,i=x===void 0?!0:x;let a;e[0]!==t?(a=v=>t(v.target.value),e[0]=t,e[1]=a):a=e[1];let d;e[2]!==n?(d=j("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==c||e[7]!==u||e[8]!==s||e[9]!==i||e[10]!==a||e[11]!==d||e[12]!==o?(m=f.jsx("textarea",{ref:p,value:o,onChange:a,onInput:w,onFocus:c,onBlur:l,onKeyDown:u,placeholder:s,spellCheck:i,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=c,e[7]=u,e[8]=s,e[9]=i,e[10]=a,e[11]=d,e[12]=o,e[13]=m):m=e[13],m}function w(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function D(r){return typeof r=="string"?r:""}function B(r){const e=h.c(11);let o,t;e[0]!==r?({className:o,...t}=r,e[0]=r,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=j(o,"pr-9"),e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t||e[6]!==s?(n=f.jsx(T,{...t,className:s}),e[5]=t,e[6]=s,e[7]=n):n=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(A,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=c):c=e[8];let l;return e[9]!==n?(l=f.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,c]}),e[9]=n,e[10]=l):l=e[10],l}function F(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(N,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=f.jsxs("button",{type:"button",onClick:t,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function I(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(_,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=f.jsx("button",{type:"button","aria-label":o,onClick:t,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=o,e[2]=t,e[3]=n):n=e[3],n}function J(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=f.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:o}),e[0]=o,e[1]=t):t=e[1],t}function O(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==c?(l=j("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=l):l=e[1];let u;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==l?(u=f.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:l,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=l,e[7]=u):u=e[7],u}function $(r){return r.preventDefault()}function H(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{F as A,B as E,J as F,T as I,I as R,O as T,H as p,D as s,R as u};
1
+ import{c as h,r as y,l as j,j as f}from"./index-D_UOP9mB.js";import{a5 as A}from"./agent-icon-1Cwh4hkP.js";import{s as N}from"./Plus-DVlEi_3L.js";import{s as _}from"./Trash01-ioK8wGcX.js";const S=700;function R(r,e,o){const t=h.c(7),s=S,[n,c]=y.useState(r),[l,u]=y.useState(r),[x,p]=y.useState(!1),i=y.useRef(null);r!==l&&(u(r),x||c(r));let a;t[0]!==s||t[1]!==e?(a=g=>{c(g),p(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,p(!1),e(g)},s)},t[0]=s,t[1]=e,t[2]=a):a=t[2];const d=a;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{c(g),i.current&&clearTimeout(i.current),i.current=null,p(!1)},t[3]=m):m=t[3];const v=m;let b;return t[4]!==n||t[5]!==d?(b=[n,d,v],t[4]=n,t[5]=d,t[6]=b):b=t[6],b}function T(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:l,onKeyDown:u,spellCheck:x,inputRef:p}=r,i=x===void 0?!0:x;let a;e[0]!==t?(a=v=>t(v.target.value),e[0]=t,e[1]=a):a=e[1];let d;e[2]!==n?(d=j("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==c||e[7]!==u||e[8]!==s||e[9]!==i||e[10]!==a||e[11]!==d||e[12]!==o?(m=f.jsx("textarea",{ref:p,value:o,onChange:a,onInput:w,onFocus:c,onBlur:l,onKeyDown:u,placeholder:s,spellCheck:i,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=c,e[7]=u,e[8]=s,e[9]=i,e[10]=a,e[11]=d,e[12]=o,e[13]=m):m=e[13],m}function w(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function D(r){return typeof r=="string"?r:""}function B(r){const e=h.c(11);let o,t;e[0]!==r?({className:o,...t}=r,e[0]=r,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=j(o,"pr-9"),e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t||e[6]!==s?(n=f.jsx(T,{...t,className:s}),e[5]=t,e[6]=s,e[7]=n):n=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(A,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=c):c=e[8];let l;return e[9]!==n?(l=f.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,c]}),e[9]=n,e[10]=l):l=e[10],l}function F(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(N,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=f.jsxs("button",{type:"button",onClick:t,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function I(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(_,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=f.jsx("button",{type:"button","aria-label":o,onClick:t,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=o,e[2]=t,e[3]=n):n=e[3],n}function J(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=f.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:o}),e[0]=o,e[1]=t):t=e[1],t}function O(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==c?(l=j("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=l):l=e[1];let u;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==l?(u=f.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:l,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=l,e[7]=u):u=e[7],u}function $(r){return r.preventDefault()}function H(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{F as A,B as E,J as F,T as I,I as R,O as T,H as p,D as s,R as u};
@@ -1 +1 @@
1
- import{c as V,j as t,a as D,p as R,af as q,J as B,v as N,t as T}from"./index-Ce-NoXEp.js";import{P as L}from"./index-Ca2K5P2-.js";import{A as U}from"./avatar-BUuVB0OM.js";import{S as I}from"./switch-BnwD-Vul.js";import{d as G,b as Y,a as $,S as J}from"./select-DbTrJaBo.js";import{T as K,a as z}from"./toggle-group-CKJLwQaG.js";import{I as O}from"./input-BKRZkXBz.js";import{i as H}from"./Monitor01-Dgw5JUxQ.js";import{n as M,a as Q}from"./Sun-C8ejLyiC.js";import{i as W}from"./Play-eeHi-AX7.js";import{u as X}from"./use-debounced-autosave-kUOeL1Jg.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index--SasJUOp.js";import{c as te,b as A,S as E,a as F}from"./settings-section-D4bBHif-.js";import"./sidebar-DGRwDJha.js";import"./LayoutLeft-DCkN0cQJ.js";import"./use-mobile-DTm06RLc.js";import"./sheet-6SkVbWmm.js";import"./X-krPcwbrq.js";import"./tooltip-CA-iJjQ9.js";import"./User01-B1FwGbIY.js";import"./ChevronUp-Cv3UG4VC.js";import"./ChevronDown-BSMOH4GN.js";import"./card-yO9ahfyg.js";import"./ArrowUpRight-d-McfeTp.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),g=s?.user,p=g?.image,h=g?.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 v=n.control._formState.dirtyFields;if(Object.keys(v).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=g?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=v=>{const{field:a}=v;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 b=g?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,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 g;e[0]!==o?(g=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.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]=g):g=e[1];const p=g;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(H,{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 j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,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 b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,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 v;e[31]!==o?(v=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=v):v=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(J,{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]!==v||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:v,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=v,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 De(){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{De as default};
1
+ import{c as V,j as t,a as D,p as R,af as q,J as B,v as N,t as T}from"./index-D_UOP9mB.js";import{P as L}from"./index-h2SiQ3aq.js";import{A as U}from"./avatar-W_lUBW2r.js";import{S as I}from"./switch-C6POgRTK.js";import{d as G,b as Y,a as $,S as J}from"./select-D6WRoyEz.js";import{T as K,a as z}from"./toggle-group-CjaKzFll.js";import{I as O}from"./input-IN5HhQsQ.js";import{i as H}from"./Monitor01-Qw5xJyG2.js";import{n as M,a as Q}from"./Sun-Bvs8Be4l.js";import{i as W}from"./Play-IlsQDEUP.js";import{u as X}from"./use-debounced-autosave-DEyHd5s5.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-BA1AFQeU.js";import{c as te,b as A,S as E,a as F}from"./settings-section-CgcU6xm_.js";import"./sidebar-DdgOh6Z9.js";import"./LayoutLeft-B9LtoNr5.js";import"./use-mobile-BZo7lvaH.js";import"./sheet-JAvCyso3.js";import"./X-BJkEaciD.js";import"./tooltip-BR6syT2S.js";import"./User01-CxvFJWlw.js";import"./ChevronUp-UIn_3dHA.js";import"./ChevronDown-DjI9Ah6n.js";import"./card-BJrMnoeO.js";import"./ArrowUpRight-DdpAwwxM.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),g=s?.user,p=g?.image,h=g?.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 v=n.control._formState.dirtyFields;if(Object.keys(v).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=g?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=v=>{const{field:a}=v;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 b=g?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,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 g;e[0]!==o?(g=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.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]=g):g=e[1];const p=g;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(H,{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 j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,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 b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,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 v;e[31]!==o?(v=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=v):v=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(J,{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]!==v||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:v,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=v,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 De(){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{De as default};
@@ -0,0 +1 @@
1
+ import{c as $,D as H,j as A}from"./index-D_UOP9mB.js";import{l as L,g as E,s as y}from"./scroll-area-Dxw-E5II.js";import{p as O,u as k}from"./use-mcp-client-DlyZEA3A.js";import{b as q,c as B}from"./use-mcp-tools-DGxNZBda.js";import{u as Y}from"./index-DX3jDFqO.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-DcxX5vjQ.js";import{u as z,b as F}from"./chat-context-C5Dv0tTg.js";import{b as J}from"./shell-layout-klpGsxrf.js";import"./agent-icon-1Cwh4hkP.js";import"./AlertCircle-BhSO5Twf.js";import"./Tool01-C2Wy9ddS.js";import"./SwitchHorizontal01-dHIjRjs4.js";import"./Settings02-hQL04X7-.js";import"./XCircle-DXiqmV8m.js";import"./ArrowUpRight-DdpAwwxM.js";import"./ZapSquare-A7DF2PWn.js";import"./Users03-B7IMqo7U.js";import"./CheckCircle-Xk-HyAZE.js";import"./ChevronUp-UIn_3dHA.js";import"./ChevronDown-DjI9Ah6n.js";import"./ChevronLeft-BFb1BrOh.js";import"./ChevronRight-BAc41q_Y.js";import"./DotsVertical-Bvp1DFrg.js";import"./Stars02-Dg0VuXKP.js";import"./Eye-BcHeo8OC.js";import"./ZoomOut-Ci9Q3RHZ.js";import"./Globe01-D2j8m26P.js";import"./FilterLines-YkqgITmY.js";import"./Star01-DOH6S4RS.js";import"./Globe04-C2SZSHBy.js";import"./HardDrive-BSN492Hp.js";import"./Key01-CvSwoCFY.js";import"./LayoutLeft-B9LtoNr5.js";import"./LinkExternal01-DuDM-dnL.js";import"./Monitor01-Qw5xJyG2.js";import"./Sun-Bvs8Be4l.js";import"./Palette-ChkPBary.js";import"./Play-IlsQDEUP.js";import"./Plus-DVlEi_3L.js";import"./SearchLg-BIORAwuK.js";import"./SearchMd-CTp_yTnU.js";import"./Shield01-D4MVNzZ5.js";import"./Stars01-D6kYyOXX.js";import"./Trash01-ioK8wGcX.js";import"./Upload01-y8AitCX_.js";import"./User01-CxvFJWlw.js";import"./Users01-DUhNk4D1.js";import"./XClose-C-z27vFA.js";import"./X-BJkEaciD.js";import"./Zap-KSy73DcB.js";import"./use-clock-tick-BnysYYmn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CyLGNLn_.js";import"./tooltip-BR6syT2S.js";import"./file-type-icon-B2EgQ19E.js";import"./dialog-CymwL5lO.js";import"./use-mobile-BZo7lvaH.js";import"./tab-id-BptcWVWa.js";import"./hooks-lMbMn8Le.js";import"./decopilot-sse-pool-CfHubug8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-CAjgBW6i.js";import"./sheet-JAvCyso3.js";import"./integration-icon-Db4EBrGH.js";import"./use-virtual-mcp-BeJfWraj.js";import"./use-collections-BrwR970o.js";import"./use-navigate-to-agent-in-j_28j.js";import"./use-connection-B2ptAtQ1.js";import"./use-mcp-prompts-pcmTb2GI.js";import"./form-CoZSZB1f.js";import"./label-BZIeDc6a.js";import"./input-IN5HhQsQ.js";import"./select-D6WRoyEz.js";import"./auth-DT4EIgFs.js";import"./index-CJs3lrz9.js";import"./drawer-Cb9A4OVK.js";import"./collection-search-DzlllM3V.js";import"./tabs-86zaQtr4.js";import"./toggle-group-CjaKzFll.js";import"./sortable.esm-DYJqg3G6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-KOVkCaek.js";import"./use-registry-connections-yFLwMSbr.js";import"./use-organization-settings-CBu4ORjn.js";import"./useInfiniteQuery-BafAnv-q.js";import"./use-infinite-scroll-CbmbBOhb.js";import"./extract-connection-data-CIPj3tI0.js";import"./card-BJrMnoeO.js";import"./collection-tabs-BfUAY8z2.js";import"./badge-BDbhVtEB.js";import"./textarea-BXtqsNU_.js";import"./connection-form-helpers-BEonMIwB.js";import"./authenticate-and-persist-oauth-DtrjZzTS.js";import"./mcp-oauth-gzDzaR6G.js";import"./useSuspenseInfiniteQuery-Cc6HzBdO.js";import"./use-ai-providers-BiVw9Yom.js";import"./connect-desktop-dialog-B3FevdKG.js";import"./decopilot-DbXK2c3g.js";import"./checkbox-367KGph9.js";import"./skeleton-DdzpHjCD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-W_lUBW2r.js";import"./settings-section-CgcU6xm_.js";import"./popover-BvQdvb3c.js";import"./command-CFE9B-sb.js";import"./index-BZc7xOAR.js";import"./use-org-fs-DMkyivR7.js";import"./dropdown-menu-DE9I1deT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CNvb3BK4.js";import"./use-decopilot-events-Bg1nIm5P.js";import"./empty-state-B-swTT-U.js";import"./toolbar-DGAhaLmi.js";import"./preview-dialog-D1BhMrVf.js";import"./index-CLlAg9w2.js";import"./use-capability-C8IPuVtH.js";import"./shell-route-loading-cmXdamAW.js";import"./tools-list-8hgiGZV6.js";import"./alert-dialog-CwkyXqH2.js";import"./switch-C6POgRTK.js";import"./use-debounced-autosave-DEyHd5s5.js";import"./index-h2SiQ3aq.js";import"./sidebar-DdgOh6Z9.js";import"./search-input-DkSLPibf.js";import"./github-repo-picker-BBmy0ULl.js";import"./use-debounced-value-CG92tvCS.js";import"./use-secrets-CONYfnRB.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-Y9k5agR3.js";import"./automation-runs-BpvA3NrO.js";import"./table-BRFlo438.js";import"./use-members-AyHbqHNZ.js";import"./use-org-auth-client-JM5TXzj8.js";import"./task-status-DhrCE0Pg.js";import"./use-automations-Cg8Eoo8I.js";import"./use-file-configs-C5skVIUC.js";import"./monaco-editor-DqH1LGBG.js";import"./select-model-BeBUe7ya.js";import"./automation-list-row-P--kLagS.js";import"./required-auth-layout-CUTn0kys.js";import"./use-org-sso-B3J5z-pj.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function we(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{we as AppViewContent};
@@ -0,0 +1 @@
1
+ import{c as S,j as r}from"./index-D_UOP9mB.js";import{I as T}from"./input-IN5HhQsQ.js";import{L as C}from"./label-BZIeDc6a.js";import{T as L}from"./textarea-BXtqsNU_.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-DX3jDFqO.js";import{u as M,s as P}from"./primitives-F9M8Ipkb.js";import"./index-CJs3lrz9.js";import"./SwitchHorizontal01-dHIjRjs4.js";import"./chat-context-C5Dv0tTg.js";import"./hooks-lMbMn8Le.js";import"./use-mcp-client-DlyZEA3A.js";import"./auth-DT4EIgFs.js";import"./decopilot-sse-pool-CfHubug8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BeJfWraj.js";import"./use-collections-BrwR970o.js";import"./use-ai-providers-BiVw9Yom.js";import"./studio-tools-CAjgBW6i.js";import"./use-decopilot-events-Bg1nIm5P.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-CBu4ORjn.js";import"./scroll-area-Dxw-E5II.js";import"./agent-icon-1Cwh4hkP.js";import"./AlertCircle-BhSO5Twf.js";import"./Tool01-C2Wy9ddS.js";import"./Settings02-hQL04X7-.js";import"./XCircle-DXiqmV8m.js";import"./ArrowUpRight-DdpAwwxM.js";import"./ZapSquare-A7DF2PWn.js";import"./Users03-B7IMqo7U.js";import"./CheckCircle-Xk-HyAZE.js";import"./ChevronUp-UIn_3dHA.js";import"./ChevronDown-DjI9Ah6n.js";import"./ChevronLeft-BFb1BrOh.js";import"./ChevronRight-BAc41q_Y.js";import"./DotsVertical-Bvp1DFrg.js";import"./Stars02-Dg0VuXKP.js";import"./Eye-BcHeo8OC.js";import"./ZoomOut-Ci9Q3RHZ.js";import"./Globe01-D2j8m26P.js";import"./FilterLines-YkqgITmY.js";import"./Star01-DOH6S4RS.js";import"./Globe04-C2SZSHBy.js";import"./HardDrive-BSN492Hp.js";import"./Key01-CvSwoCFY.js";import"./LayoutLeft-B9LtoNr5.js";import"./LinkExternal01-DuDM-dnL.js";import"./Monitor01-Qw5xJyG2.js";import"./Sun-Bvs8Be4l.js";import"./Palette-ChkPBary.js";import"./Play-IlsQDEUP.js";import"./Plus-DVlEi_3L.js";import"./SearchLg-BIORAwuK.js";import"./SearchMd-CTp_yTnU.js";import"./Shield01-D4MVNzZ5.js";import"./Stars01-D6kYyOXX.js";import"./Trash01-ioK8wGcX.js";import"./Upload01-y8AitCX_.js";import"./User01-CxvFJWlw.js";import"./Users01-DUhNk4D1.js";import"./XClose-C-z27vFA.js";import"./X-BJkEaciD.js";import"./Zap-KSy73DcB.js";import"./use-clock-tick-BnysYYmn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CyLGNLn_.js";import"./tooltip-BR6syT2S.js";import"./file-type-icon-B2EgQ19E.js";import"./dialog-CymwL5lO.js";import"./use-mobile-BZo7lvaH.js";import"./content-blocks-o63cs2vh.js";import"./types-DcxX5vjQ.js";import"./shell-layout-klpGsxrf.js";import"./avatar-W_lUBW2r.js";import"./required-auth-layout-CUTn0kys.js";import"./use-org-sso-B3J5z-pj.js";import"./sheet-JAvCyso3.js";import"./integration-icon-Db4EBrGH.js";import"./use-navigate-to-agent-in-j_28j.js";import"./use-connection-B2ptAtQ1.js";import"./use-mcp-prompts-pcmTb2GI.js";import"./form-CoZSZB1f.js";import"./select-D6WRoyEz.js";import"./drawer-Cb9A4OVK.js";import"./collection-search-DzlllM3V.js";import"./tabs-86zaQtr4.js";import"./toggle-group-CjaKzFll.js";import"./sortable.esm-DYJqg3G6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-KOVkCaek.js";import"./use-registry-connections-yFLwMSbr.js";import"./useInfiniteQuery-BafAnv-q.js";import"./use-infinite-scroll-CbmbBOhb.js";import"./extract-connection-data-CIPj3tI0.js";import"./card-BJrMnoeO.js";import"./collection-tabs-BfUAY8z2.js";import"./badge-BDbhVtEB.js";import"./connection-form-helpers-BEonMIwB.js";import"./authenticate-and-persist-oauth-DtrjZzTS.js";import"./mcp-oauth-gzDzaR6G.js";import"./useSuspenseInfiniteQuery-Cc6HzBdO.js";import"./connect-desktop-dialog-B3FevdKG.js";import"./decopilot-DbXK2c3g.js";import"./checkbox-367KGph9.js";import"./skeleton-DdzpHjCD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CgcU6xm_.js";import"./popover-BvQdvb3c.js";import"./command-CFE9B-sb.js";import"./index-BZc7xOAR.js";import"./use-org-fs-DMkyivR7.js";import"./dropdown-menu-DE9I1deT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CNvb3BK4.js";import"./empty-state-B-swTT-U.js";import"./toolbar-DGAhaLmi.js";import"./preview-dialog-D1BhMrVf.js";import"./index-CLlAg9w2.js";import"./use-mcp-tools-DGxNZBda.js";import"./use-capability-C8IPuVtH.js";import"./shell-route-loading-cmXdamAW.js";import"./tools-list-8hgiGZV6.js";import"./alert-dialog-CwkyXqH2.js";import"./switch-C6POgRTK.js";import"./use-debounced-autosave-DEyHd5s5.js";import"./index-h2SiQ3aq.js";import"./sidebar-DdgOh6Z9.js";import"./search-input-DkSLPibf.js";import"./github-repo-picker-BBmy0ULl.js";import"./use-debounced-value-CG92tvCS.js";import"./use-secrets-CONYfnRB.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-Y9k5agR3.js";import"./automation-runs-BpvA3NrO.js";import"./table-BRFlo438.js";import"./use-members-AyHbqHNZ.js";import"./use-org-auth-client-JM5TXzj8.js";import"./task-status-DhrCE0Pg.js";import"./use-automations-Cg8Eoo8I.js";import"./use-file-configs-C5skVIUC.js";import"./monaco-editor-DqH1LGBG.js";import"./select-model-BeBUe7ya.js";import"./automation-list-row-P--kLagS.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"}]},q={authors:"Author"};function Nr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(F,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(D,{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(K,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.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 x;t[29]!==c?(x=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]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Nr as RecordEditor};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Bnb9-rCG.js","assets/index-D_UOP9mB.js","assets/index-1MQY-aKx.css","assets/XCircle-DXiqmV8m.js","assets/CheckCircle-Xk-HyAZE.js","assets/Settings02-hQL04X7-.js","assets/use-mcp-client-DlyZEA3A.js","assets/auth-DT4EIgFs.js","assets/useInfiniteQuery-BafAnv-q.js","assets/use-infinite-scroll-CbmbBOhb.js","assets/studio-tools-CAjgBW6i.js","assets/badge-BDbhVtEB.js","assets/input-IN5HhQsQ.js","assets/dropdown-menu-DE9I1deT.js","assets/ChevronUp-UIn_3dHA.js","assets/ChevronRight-BAc41q_Y.js","assets/DotsVertical-Bvp1DFrg.js","assets/table-BRFlo438.js","assets/toggle-group-CjaKzFll.js","assets/use-view-mode-DPuZdDbm.js","assets/use-mobile-BZo7lvaH.js","assets/FilterLines-YkqgITmY.js","assets/Globe01-D2j8m26P.js","assets/SearchMd-CTp_yTnU.js","assets/dialog-CymwL5lO.js","assets/X-BJkEaciD.js","assets/AlertCircle-BhSO5Twf.js","assets/Upload01-y8AitCX_.js","assets/alert-dialog-CwkyXqH2.js","assets/card-BJrMnoeO.js","assets/Trash01-ioK8wGcX.js","assets/label-BZIeDc6a.js","assets/select-D6WRoyEz.js","assets/tooltip-BR6syT2S.js","assets/ChevronDown-DjI9Ah6n.js","assets/switch-C6POgRTK.js","assets/textarea-BXtqsNU_.js","assets/checkbox-367KGph9.js","assets/Eye-BcHeo8OC.js","assets/LinkExternal01-DuDM-dnL.js","assets/use-copy-CyLGNLn_.js","assets/Key01-CvSwoCFY.js","assets/Plus-DVlEi_3L.js","assets/mcp-oauth-gzDzaR6G.js","assets/Play-IlsQDEUP.js"])))=>i.map(i=>d[i]);
2
+ import{c as s,j as e,r as i,i as a,am as o}from"./index-D_UOP9mB.js";import{R as m}from"./require-capability-Dk3T3zYa.js";import"./use-capability-C8IPuVtH.js";import"./access-gate-D-y_Un36.js";import"./capability-load-error-XerfE3R8.js";const n=i.lazy(()=>o(()=>import("./registry-layout-Bnb9-rCG.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,44])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.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(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
@@ -1,4 +1,4 @@
1
- import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,be as qs,bf as Bs}from"./index-Ce-NoXEp.js";import{c as Jt,b as Qs,d as ds,i as Vs,a as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-D7jPFiCg.js";import{i as qe}from"./CheckCircle-CGWBWaF4.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-DbJL_Tra.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-BZ22ytXH.js";import{u as us}from"./useInfiniteQuery-DdrjKh-2.js";import{u as _e}from"./studio-tools-DxnrxOKS.js";import{B as F}from"./badge-CABvv7j-.js";import{I as ue}from"./input-BKRZkXBz.js";import{a as dt,c as Ne,D as ut,b as mt,h as Zt,k as Xt,g as sr}from"./dropdown-menu-BO9nmkr0.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-JdBIMuie.js";import{T as rr,a as es}from"./toggle-group-CKJLwQaG.js";import{u as nr}from"./use-view-mode-Dyg-Wdla.js";import{i as $t}from"./DotsVertical-QQbESzVQ.js";import{i as ir}from"./FilterLines-jO13dYdi.js";import{n as lr,i as ms}from"./Globe01-D-5I09_1.js";import{i as ar}from"./SearchMd-6O6GiFiF.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-CauQU0Ef.js";import{i as Ye}from"./AlertCircle-CzIdrsPe.js";import{i as ts}from"./Upload01-Bu2c0ULj.js";import{c as He,b as We,d as Je,A as Ze,g as Xe,e as et,a as tt,f as st}from"./alert-dialog-kSFMmJXm.js";import{C as ne}from"./card-yO9ahfyg.js";import{s as rt}from"./Trash01-CuZl7D3Y.js";import{L as te}from"./label-C0YeL6wH.js";import{d as or,b as cr,c as dr,S as ur,a as St}from"./select-DbTrJaBo.js";import{S as ze}from"./switch-BnwD-Vul.js";import{T as vt}from"./textarea-L85Stm8m.js";import{i as mr}from"./X-krPcwbrq.js";import{t as xr}from"./ChevronDown-BSMOH4GN.js";import{n as pr,i as Rt}from"./ChevronUp-Cv3UG4VC.js";import{C as ss}from"./checkbox-BILJodYH.js";import{s as xs,a as Tt}from"./Eye-BKfEBTR6.js";import{n as hr}from"./LinkExternal01-BvKrBHVq.js";import{u as fr}from"./use-infinite-scroll-D7j-2mjA.js";import{u as It}from"./use-copy-CqVa9v2d.js";import{i as gr}from"./Key01-Duu4Kv4L.js";import{s as jr}from"./Plus-NToHlEg2.js";import{a as vr,b as br,T as yr}from"./tooltip-CA-iJjQ9.js";import{i as Nr,a as wr}from"./mcp-oauth-S-U-rwND.js";import{i as _r}from"./Play-eeHi-AX7.js";import"./auth-gjnhTvi5.js";import"./ChevronRight-C5PSQAe8.js";import"./use-mobile-DTm06RLc.js";const Ue="private-registry",Cr=`
1
+ import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,be as qs,bf as Bs}from"./index-D_UOP9mB.js";import{c as Jt,b as Qs,d as ds,i as Vs,a as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-DXiqmV8m.js";import{i as qe}from"./CheckCircle-Xk-HyAZE.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-hQL04X7-.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-DlyZEA3A.js";import{u as us}from"./useInfiniteQuery-BafAnv-q.js";import{u as _e}from"./studio-tools-CAjgBW6i.js";import{B as F}from"./badge-BDbhVtEB.js";import{I as ue}from"./input-IN5HhQsQ.js";import{a as dt,c as Ne,D as ut,b as mt,h as Zt,k as Xt,g as sr}from"./dropdown-menu-DE9I1deT.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-BRFlo438.js";import{T as rr,a as es}from"./toggle-group-CjaKzFll.js";import{u as nr}from"./use-view-mode-DPuZdDbm.js";import{i as $t}from"./DotsVertical-Bvp1DFrg.js";import{i as ir}from"./FilterLines-YkqgITmY.js";import{n as lr,i as ms}from"./Globe01-D2j8m26P.js";import{i as ar}from"./SearchMd-CTp_yTnU.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-CymwL5lO.js";import{i as Ye}from"./AlertCircle-BhSO5Twf.js";import{i as ts}from"./Upload01-y8AitCX_.js";import{c as He,b as We,d as Je,A as Ze,g as Xe,e as et,a as tt,f as st}from"./alert-dialog-CwkyXqH2.js";import{C as ne}from"./card-BJrMnoeO.js";import{s as rt}from"./Trash01-ioK8wGcX.js";import{L as te}from"./label-BZIeDc6a.js";import{d as or,b as cr,c as dr,S as ur,a as St}from"./select-D6WRoyEz.js";import{S as ze}from"./switch-C6POgRTK.js";import{T as vt}from"./textarea-BXtqsNU_.js";import{i as mr}from"./X-BJkEaciD.js";import{t as xr}from"./ChevronDown-DjI9Ah6n.js";import{n as pr,i as Rt}from"./ChevronUp-UIn_3dHA.js";import{C as ss}from"./checkbox-367KGph9.js";import{s as xs,a as Tt}from"./Eye-BcHeo8OC.js";import{n as hr}from"./LinkExternal01-DuDM-dnL.js";import{u as fr}from"./use-infinite-scroll-CbmbBOhb.js";import{u as It}from"./use-copy-CyLGNLn_.js";import{i as gr}from"./Key01-CvSwoCFY.js";import{s as jr}from"./Plus-DVlEi_3L.js";import{a as vr,b as br,T as yr}from"./tooltip-BR6syT2S.js";import{i as Nr,a as wr}from"./mcp-oauth-gzDzaR6G.js";import{i as _r}from"./Play-IlsQDEUP.js";import"./auth-DT4EIgFs.js";import"./ChevronRight-BAc41q_Y.js";import"./use-mobile-BZo7lvaH.js";const Ue="private-registry",Cr=`
2
2
  You are an MCP tool tester running automated integration checks.
3
3
 
4
4
  Goal:
@@ -1 +1 @@
1
- import{c as p,j as m}from"./index-Ce-NoXEp.js";import{u as l}from"./use-capability-j-lfCCNr.js";import{A as u}from"./access-gate-DQ-5adb6.js";function b(c){const t=p.c(6),{capability:n,area:e,children:i}=c,{granted:a,loading:o,error:s}=l(n);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{c as p,j as m}from"./index-D_UOP9mB.js";import{u as l}from"./use-capability-C8IPuVtH.js";import{A as u}from"./access-gate-D-y_Un36.js";function b(c){const t=p.c(6),{capability:n,area:e,children:i}=c,{granted:a,loading:o,error:s}=l(n);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{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-Ce-NoXEp.js";function x(){const o=l.c(1),e=window.location.pathname+window.location.search;let t;if(o[0]===Symbol.for("react.memo_cache_sentinel")){const n=e==="/login"||e.startsWith("/login?")?{}:{next:e};t=s.jsx(f,{to:"/login",search:n,replace:!0}),o[0]=t}else t=o[0];return t}function g(o){const e=l.c(6),{children:t}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(a,{children:s.jsx(m,{})}),e[0]=i):i=e[0];let n;e[1]!==t?(n=s.jsx(h,{children:t}),e[1]=t,e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(u,{children:s.jsx(x,{})}),e[3]=r):r=e[3];let c;return e[4]!==n?(c=s.jsxs(s.Fragment,{children:[i,n,r]}),e[4]=n,e[5]=c):c=e[5],c}export{g as R};
1
+ import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-D_UOP9mB.js";function x(){const o=l.c(1),e=window.location.pathname+window.location.search;let t;if(o[0]===Symbol.for("react.memo_cache_sentinel")){const n=e==="/login"||e.startsWith("/login?")?{}:{next:e};t=s.jsx(f,{to:"/login",search:n,replace:!0}),o[0]=t}else t=o[0];return t}function g(o){const e=l.c(6),{children:t}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(a,{children:s.jsx(m,{})}),e[0]=i):i=e[0];let n;e[1]!==t?(n=s.jsx(h,{children:t}),e[1]=t,e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(u,{children:s.jsx(x,{})}),e[3]=r):r=e[3];let c;return e[4]!==n?(c=s.jsxs(s.Fragment,{children:[i,n,r]}),e[4]=n,e[5]=c):c=e[5],c}export{g as R};
@@ -1 +1 @@
1
- import{c as q,u as Y,b as A,r as B,d as G,j as s,B as z,a as K}from"./index-Ce-NoXEp.js";import{I as L}from"./input-BKRZkXBz.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 g;e[22]!==a||e[23]!==t?(g=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]=g):g=e[24];let f;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?(f=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]=f):f=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]!==g||e[42]!==f||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,g,f,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=g,e[42]=f,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{c as q,u as Y,b as A,r as B,d as G,j as s,B as z,a as K}from"./index-D_UOP9mB.js";import{I as L}from"./input-IN5HhQsQ.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 g;e[22]!==a||e[23]!==t?(g=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]=g):g=e[24];let f;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?(f=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]=f):f=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]!==g||e[42]!==f||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,g,f,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=g,e[42]=f,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};