decocms 4.67.0 → 4.68.0

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 (237) hide show
  1. package/dist/client/assets/{AlertCircle-DnRcSv6p.js → AlertCircle-CNh8Y2gA.js} +1 -1
  2. package/dist/client/assets/{AreaChart-h8yBv98B.js → AreaChart-BO4t3gkW.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-ByTERdoM.js → ArrowUp-DXroVtAg.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-BTMmvfoo.js → ArrowUpRight-D1OO7CRV.js} +1 -1
  5. package/dist/client/assets/{Check-DDBne1xZ.js → Check-ViJHHV5b.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-BvJH54xU.js → CheckCircle-DW8MZ-zs.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-9GTwqZoD.js → ChevronDown-2T9NLLct.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-Cau3pB5r.js → ChevronRight-EVA2m03x.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-B7wXLfu8.js → ChevronUp-oFldj9t-.js} +1 -1
  10. package/dist/client/assets/{Circle-09PwbLmO.js → Circle-D3F0UCNC.js} +1 -1
  11. package/dist/client/assets/{Copy01-ChqrH-GK.js → Copy01-X-5ArGYX.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-BytlZLrR.js → DotsVertical-CG59EanJ.js} +1 -1
  13. package/dist/client/assets/{Eye-B7kpCJa5.js → Eye-B930MDWC.js} +1 -1
  14. package/dist/client/assets/{FilterLines-PLZHMYwz.js → FilterLines-CUgANE2m.js} +1 -1
  15. package/dist/client/assets/{Flag01-lXxSAw34.js → Flag01-IClmXDXP.js} +1 -1
  16. package/dist/client/assets/{Globe01-DdWuDrh6.js → Globe01-bPLFeC2D.js} +1 -1
  17. package/dist/client/assets/{Globe04-BLVgxcia.js → Globe04-DyQ3qiDx.js} +1 -1
  18. package/dist/client/assets/{HardDrive-bdhC3LPR.js → HardDrive-Ck18BGl-.js} +1 -1
  19. package/dist/client/assets/{Key01-CnIVKr2P.js → Key01-BvT3zNsr.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-OEpR1xv9.js → LayoutLeft-DKNdCPN2.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-NHIUOyLy.js → LinkExternal01-CelmDpah.js} +1 -1
  22. package/dist/client/assets/{List-DxwSA2IV.js → List-oOG_bTMr.js} +1 -1
  23. package/dist/client/assets/{Monitor01-3Kuts_fF.js → Monitor01-CPSAV7CH.js} +1 -1
  24. package/dist/client/assets/{Package-DauC5mmW.js → Package-BjCGp9Ef.js} +1 -1
  25. package/dist/client/assets/{Palette-CcsVjKON.js → Palette-CGemj5Yo.js} +1 -1
  26. package/dist/client/assets/{Play-B6KAQ4Bn.js → Play-CpCxQ7Hp.js} +1 -1
  27. package/dist/client/assets/{Plus-Bx48hlpO.js → Plus-CEccEcjc.js} +1 -1
  28. package/dist/client/assets/{SearchLg-DkIXXk3g.js → SearchLg-Cevt_mi8.js} +1 -1
  29. package/dist/client/assets/{SearchMd-DgR2gdr4.js → SearchMd-CtPGxQE2.js} +1 -1
  30. package/dist/client/assets/{Settings02-BjGT373c.js → Settings02-DTZdTeHB.js} +1 -1
  31. package/dist/client/assets/{Shield01-B6-2Wn71.js → Shield01-Deanj_pp.js} +1 -1
  32. package/dist/client/assets/{Star01-CUuUO1kz.js → Star01-DGJ33QfV.js} +1 -1
  33. package/dist/client/assets/{Stars01-CVrFHL0D.js → Stars01-BuQv9Nru.js} +1 -1
  34. package/dist/client/assets/{Stars02-CH9ynjT6.js → Stars02-DSNpbVlo.js} +1 -1
  35. package/dist/client/assets/{Sun-CtxJR6ER.js → Sun-Ci6vBuLI.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-DfJPygIe.js → SwitchHorizontal01-CXH58TUI.js} +1 -1
  37. package/dist/client/assets/{Tool01-DKguR5sj.js → Tool01-CxYKUutN.js} +1 -1
  38. package/dist/client/assets/{Tool02-Py0eGr0C.js → Tool02-Byv70oB8.js} +1 -1
  39. package/dist/client/assets/{Trash01-KUfQJhkh.js → Trash01-BWrHYSuv.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-C2W7p9ZS.js → TrendUp01-CG5p18Ol.js} +1 -1
  41. package/dist/client/assets/{Upload01-BwpwGSqz.js → Upload01-pevnFhia.js} +1 -1
  42. package/dist/client/assets/{User01-DX_dTyon.js → User01-BAF92Yr8.js} +1 -1
  43. package/dist/client/assets/UserPlus01-H86haTAg.js +1 -0
  44. package/dist/client/assets/{Users01-CjEOdQ9m.js → Users01-JpsfyEwx.js} +1 -1
  45. package/dist/client/assets/{Users03-BiMLHgaD.js → Users03-BbdstC-h.js} +1 -1
  46. package/dist/client/assets/{X-D5nmPiow.js → X-CHXaqXsc.js} +1 -1
  47. package/dist/client/assets/{XCircle-P7D407ak.js → XCircle-Ccn8YDua.js} +1 -1
  48. package/dist/client/assets/{XClose-BVJdSioY.js → XClose-Dpys7n5b.js} +1 -1
  49. package/dist/client/assets/{Zap-CDl92LnD.js → Zap-Ddgm0cuS.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-B4lqWrHO.js → ZapSquare-CN_MaJ_P.js} +1 -1
  51. package/dist/client/assets/{ZoomOut-03Q0PW_C.js → ZoomOut-DfPc2tWh.js} +1 -1
  52. package/dist/client/assets/{access-gate-CxdEZG4D.js → access-gate-_KWZhuY1.js} +1 -1
  53. package/dist/client/assets/{add-section-modal-NPD23oal.js → add-section-modal-C6dmzAIW.js} +1 -1
  54. package/dist/client/assets/agent-icon-nmBGlUc6.js +1 -0
  55. package/dist/client/assets/{agents-list-BIlZYNXW.js → agents-list-BMwJreUf.js} +1 -1
  56. package/dist/client/assets/{ai-providers-MTFiKBMR.js → ai-providers-CKq4uDJd.js} +1 -1
  57. package/dist/client/assets/{alert-dialog-CChVAHtE.js → alert-dialog-DZluuzF8.js} +1 -1
  58. package/dist/client/assets/{alert-DmUHZjhZ.js → alert-raXYcBbM.js} +1 -1
  59. package/dist/client/assets/{app-editor-DfOdEeu2.js → app-editor-CFF71BWn.js} +1 -1
  60. package/dist/client/assets/{auth-CrjpM3FO.js → auth-BycXMDKl.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-DIG0PVgF.js → auth-catchall-DlhDR3Qf.js} +1 -1
  62. package/dist/client/assets/{auth-entry-ChgLdv8a.js → auth-entry-hGn7eWW0.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-ChTQ-LLY.js → auth-split-layout-nQxFtnpf.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-BI0h2Hl_.js → authenticate-and-persist-oauth-DU6hZEpI.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-BNdfGSvR.js → automation-list-row-B7HItKQw.js} +1 -1
  66. package/dist/client/assets/{automation-runs-2IIHuuRr.js → automation-runs-D7zbPds3.js} +1 -1
  67. package/dist/client/assets/automations-BqqKeUUa.js +1 -0
  68. package/dist/client/assets/{autosend-A6cORgtO.js → autosend-rEtdyPJl.js} +1 -1
  69. package/dist/client/assets/{avatar-BNTembhj.js → avatar-C7zJcORn.js} +1 -1
  70. package/dist/client/assets/{badge-DcTH81b6.js → badge-K0mAu7uF.js} +1 -1
  71. package/dist/client/assets/{block-document-B40O_UjF.js → block-document-DeCPB_Bg.js} +1 -1
  72. package/dist/client/assets/{brand-context-BeOx5Kdb.js → brand-context-Cavr1FEo.js} +1 -1
  73. package/dist/client/assets/{buckets-CgDd--L0.js → buckets-BtQioIZz.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-rPdfHVt7.js → bulk-category-panel-C7h-kZAY.js} +1 -1
  75. package/dist/client/assets/{calendar-DoerJX6O.js → calendar-DMnBAz-d.js} +1 -1
  76. package/dist/client/assets/{capability-load-error-BEbzmLNV.js → capability-load-error-CQLW0ngV.js} +1 -1
  77. package/dist/client/assets/{card-ncnB1RH-.js → card-wf-UHTad.js} +1 -1
  78. package/dist/client/assets/{category-editor-y5CyRkBP.js → category-editor-B4ByatEN.js} +1 -1
  79. package/dist/client/assets/{chat-context-2y5c1n6r.js → chat-context-BqiO_ud6.js} +1 -1
  80. package/dist/client/assets/{checkbox-B16gWtDe.js → checkbox-DeFGudwa.js} +1 -1
  81. package/dist/client/assets/{cli-auth-success-DVyMFZXy.js → cli-auth-success-C7MXFI0z.js} +1 -1
  82. package/dist/client/assets/{collection-detail-Dz1R1Oia.js → collection-detail-bZ3Q5168.js} +1 -1
  83. package/dist/client/assets/{collection-display-button-Cg18NXso.js → collection-display-button-DpZ5rZNW.js} +1 -1
  84. package/dist/client/assets/{collection-search-CdOIEJ6y.js → collection-search-BHgCLnDP.js} +1 -1
  85. package/dist/client/assets/{collection-table-wrapper-ChhKWWZI.js → collection-table-wrapper-5E9XB9Dr.js} +1 -1
  86. package/dist/client/assets/{collection-tabs-CjEH-Ivg.js → collection-tabs-BQUepQoJ.js} +1 -1
  87. package/dist/client/assets/{command-ORa_LER7.js → command-D---hRfb.js} +1 -1
  88. package/dist/client/assets/{commerce-onboarding-B_KZYjc_.js → commerce-onboarding-DglYrpyS.js} +1 -1
  89. package/dist/client/assets/{companions-core-vGjqnTh4.js → companions-core-GsK_0FA5.js} +1 -1
  90. package/dist/client/assets/{connect-desktop-dialog-LKHTIjh7.js → connect-desktop-dialog-egpvY9_G.js} +1 -1
  91. package/dist/client/assets/{connection-card-xbX6Q6Am.js → connection-card-Ge7rfugC.js} +1 -1
  92. package/dist/client/assets/{connection-detail-6xXX2TWI.js → connection-detail-EPyl8cFd.js} +1 -1
  93. package/dist/client/assets/{connection-form-helpers-Cwm0TVQw.js → connection-form-helpers-CxG5VsMa.js} +1 -1
  94. package/dist/client/assets/{connections-OKuSHyiL.js → connections-DJJUxQrv.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-DEohvxsN.js → decopilot-sse-pool-CnBfws5s.js} +1 -1
  96. package/dist/client/assets/{dialog-BqwjfMqR.js → dialog-laQ2oCMx.js} +1 -1
  97. package/dist/client/assets/{domain-settings-BpI5lCSI.js → domain-settings-CYnAWt2K.js} +1 -1
  98. package/dist/client/assets/{drawer-CElVEAjY.js → drawer-DTtHmBzX.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-DRIlPMMO.js → dropdown-menu-CQd3xkCq.js} +1 -1
  100. package/dist/client/assets/{empty-state-DOcIPIsW.js → empty-state-DjU_mD89.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-Dv_aqePW.js → extract-connection-data-CtoIcIIT.js} +1 -1
  102. package/dist/client/assets/{file-explorer-BqASE9Of.js → file-explorer-CKTdXOlY.js} +1 -1
  103. package/dist/client/assets/{file-type-icon-DOdLQKK_.js → file-type-icon-CkXs3ZeU.js} +1 -1
  104. package/dist/client/assets/{files-CKKnR3xw.js → files-BZ3_laO3.js} +1 -1
  105. package/dist/client/assets/{form-DSaAM98Q.js → form-CefOye_J.js} +1 -1
  106. package/dist/client/assets/{general-CnNELmtU.js → general-CGuJQuix.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-I5CnY-wO.js → github-repo-picker-BnDDC8oU.js} +1 -1
  108. package/dist/client/assets/{hooks-Dhyw86WQ.js → hooks-B_rAYDFL.js} +1 -1
  109. package/dist/client/assets/{index-Dpv3-rA9.js → index-3NcqjP1f.js} +1 -1
  110. package/dist/client/assets/index-7TDdNLfx.css +1 -0
  111. package/dist/client/assets/{index-BiOisDfN.js → index-BBT4aKZb.js} +1 -1
  112. package/dist/client/assets/{index-BhOr9nVl.js → index-BX_Zq0im.js} +1 -1
  113. package/dist/client/assets/{index-jWMhMFIa.js → index-BhIirjqg.js} +5 -5
  114. package/dist/client/assets/{index-JWNz8e11.js → index-C2QK8X8n.js} +1 -1
  115. package/dist/client/assets/{index-qbIIGFgE.js → index-CInHYTTe.js} +1 -1
  116. package/dist/client/assets/{index-DLvFprGS.js → index-Clp7yP00.js} +1 -1
  117. package/dist/client/assets/{index-C4rWe-S2.js → index-DKdl__m2.js} +1 -1
  118. package/dist/client/assets/{index-DFAW167H.js → index-De4QvuR-.js} +1 -1
  119. package/dist/client/assets/{index-CjjnUPcy.js → index-Dl07YVcW.js} +1 -1
  120. package/dist/client/assets/index-Dxd-Yw2M.js +2 -0
  121. package/dist/client/assets/{index-B7kSY61k.js → index-Ik6zkERJ.js} +4 -4
  122. package/dist/client/assets/{index-DWGUy0Sg.js → index-M8E-9qWa.js} +1 -1
  123. package/dist/client/assets/{index-Dv0ix2Md.js → index-eEAkDwPh.js} +1 -1
  124. package/dist/client/assets/{index-redirect-DGJV3Odj.js → index-redirect-CX9rsZLI.js} +1 -1
  125. package/dist/client/assets/{input-CYFSanYY.js → input-CiHDP3FJ.js} +1 -1
  126. package/dist/client/assets/{integration-icon-Dkf1KbKC.js → integration-icon-C7SxM0gi.js} +1 -1
  127. package/dist/client/assets/{invite-member-dialog-5Fi53KOU.js → invite-member-dialog-lUGvGokT.js} +1 -1
  128. package/dist/client/assets/{label-C_v3VFYj.js → label-D674p2Id.js} +1 -1
  129. package/dist/client/assets/{layout-aH9zKKW0.js → layout-Doj70DKE.js} +1 -1
  130. package/dist/client/assets/{login-DL7AAmYj.js → login-D_-tubeR.js} +1 -1
  131. package/dist/client/assets/{mcp-oauth-CCmNqhCK.js → mcp-oauth-CvwOlMGS.js} +1 -1
  132. package/dist/client/assets/{members-C1U4cGei.js → members-BAp7VQpN.js} +1 -1
  133. package/dist/client/assets/{monaco-editor-DEutAteR.js → monaco-editor-DwQspoTG.js} +1 -1
  134. package/dist/client/assets/{monitoring-stats-row-Db6Iz9jU.js → monitoring-stats-row-D9YnXCZE.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-BbYI9dhn.js → oauth-callback-DplKbDVp.js} +1 -1
  136. package/dist/client/assets/{oauth-callback-ai-provider-BJWW55pV.js → oauth-callback-ai-provider-Pcpv4VbE.js} +1 -1
  137. package/dist/client/assets/{onboarding-C1xY9-AQ.js → onboarding-Y9_Zt9oL.js} +1 -1
  138. package/dist/client/assets/{org-install-2MxPuAM3.js → org-install-CwJOrADP.js} +1 -1
  139. package/dist/client/assets/{org-layout-mnsuelI5.js → org-layout-oEcY9023.js} +1 -1
  140. package/dist/client/assets/{organization-choice-jbDZcrO9.js → organization-choice-BEJirHR9.js} +1 -1
  141. package/dist/client/assets/{orgs-sYHhJGTI.js → orgs-ChhEWByg.js} +1 -1
  142. package/dist/client/assets/{page-seo-form-BIi5bA3o.js → page-seo-form-cG1cmVQd.js} +1 -1
  143. package/dist/client/assets/page-seo-sheet-CGwtpIzD.js +1 -0
  144. package/dist/client/assets/{popover-CpbxnJfL.js → popover-BebmVziF.js} +1 -1
  145. package/dist/client/assets/{post-editor-Ct6_gWk0.js → post-editor-D3PhebME.js} +1 -1
  146. package/dist/client/assets/{primitives-BHmaoFvd.js → primitives-Dp7S0Lnx.js} +1 -1
  147. package/dist/client/assets/{profile-DR4g2Myo.js → profile-CG8N12N4.js} +1 -1
  148. package/dist/client/assets/project-app-view-BqcFf3a_.js +1 -0
  149. package/dist/client/assets/record-editor-BILIf9-W.js +1 -0
  150. package/dist/client/assets/registry-D5phUOvS.js +2 -0
  151. package/dist/client/assets/{registry-layout-C64k-eTa.js → registry-layout-clHq-zu9.js} +1 -1
  152. package/dist/client/assets/{reports-CVlvpOK4.js → reports-BWSZMXjR.js} +1 -1
  153. package/dist/client/assets/{require-capability-DlIsn2PD.js → require-capability-B---C4hE.js} +1 -1
  154. package/dist/client/assets/{required-auth-layout-CmT-4qdz.js → required-auth-layout-BdWCW2sl.js} +1 -1
  155. package/dist/client/assets/{reset-password-BjXYAMG4.js → reset-password-CSaJSSuX.js} +1 -1
  156. package/dist/client/assets/roles-DG6S15ZM.js +1 -0
  157. package/dist/client/assets/{search-input-9yLf5rv4.js → search-input-Bg3P5wrN.js} +1 -1
  158. package/dist/client/assets/{secrets-BewYZ9X0.js → secrets-B761XLHn.js} +1 -1
  159. package/dist/client/assets/{sections-editor-CajCM4e4.js → sections-editor-BAIi7Tpt.js} +1 -1
  160. package/dist/client/assets/{select-BltGGUAC.js → select-DLw9Bbw2.js} +1 -1
  161. package/dist/client/assets/{select-model-Bhwudt2i.js → select-model-BDMEm9YL.js} +1 -1
  162. package/dist/client/assets/{self-tool-result-ZTyiQs9N.js → self-tool-result-DIuywEbI.js} +1 -1
  163. package/dist/client/assets/{seo-editor-CKyEvqQu.js → seo-editor-CwsJUbWW.js} +1 -1
  164. package/dist/client/assets/{settings-layout-DafWitIP.js → settings-layout-FaxZOJ12.js} +1 -1
  165. package/dist/client/assets/{settings-section-Cg3JGE0U.js → settings-section-AU2G2ZXx.js} +1 -1
  166. package/dist/client/assets/{shell-controls-BkdzpuRQ.js → shell-controls-BqVahDKz.js} +1 -1
  167. package/dist/client/assets/{shell-layout-BXz1QR45.js → shell-layout-DyDhWfiQ.js} +1 -1
  168. package/dist/client/assets/{sidebar-BxidMjmD.js → sidebar-o-9qTA9g.js} +1 -1
  169. package/dist/client/assets/{skeleton-e8B73gWz.js → skeleton-DNGEAqud.js} +1 -1
  170. package/dist/client/assets/{sso-HWvdD0t6.js → sso-B8oWNgUj.js} +1 -1
  171. package/dist/client/assets/{store-Cuf4GlBh.js → store-Bl0IdcZu.js} +1 -1
  172. package/dist/client/assets/store-registry-Bxvl5b_Y.js +2 -0
  173. package/dist/client/assets/{studio-tools-D9WUfXp1.js → studio-tools-CJ1qXLRQ.js} +1 -1
  174. package/dist/client/assets/{switch-Cs9dzpE8.js → switch-DsheLfyl.js} +1 -1
  175. package/dist/client/assets/{table-BeOLlek2.js → table-8KFU6cRt.js} +1 -1
  176. package/dist/client/assets/{tabs-CMPGqYdL.js → tabs-Dv_rxt-A.js} +1 -1
  177. package/dist/client/assets/{textarea-BLSgS6jG.js → textarea-COstjKKv.js} +1 -1
  178. package/dist/client/assets/{toggle-group-C-rXrcTO.js → toggle-group-b4Ow5LmQ.js} +1 -1
  179. package/dist/client/assets/{toolbar-B2Kkr9G0.js → toolbar-C52yl4YA.js} +1 -1
  180. package/dist/client/assets/{toolbar-icon-button-XYgdCbOI.js → toolbar-icon-button-CKWJfFt2.js} +1 -1
  181. package/dist/client/assets/{tools-list-CZeKwc-b.js → tools-list-Vt46amfU.js} +1 -1
  182. package/dist/client/assets/{tooltip-DCI9Obou.js → tooltip-DdhJMVoN.js} +1 -1
  183. package/dist/client/assets/{use-ai-providers-X7jji_e2.js → use-ai-providers-Dnmk-lO7.js} +1 -1
  184. package/dist/client/assets/{use-automations-BiIyDV0J.js → use-automations-JVzsyC2f.js} +1 -1
  185. package/dist/client/assets/{use-capability-D3BkNAeK.js → use-capability-B9-VwtvV.js} +1 -1
  186. package/dist/client/assets/{use-clock-tick-BAfvTI2-.js → use-clock-tick-BhHNoUG2.js} +1 -1
  187. package/dist/client/assets/{use-collections-BllDqcGX.js → use-collections-sw5Xt8dE.js} +1 -1
  188. package/dist/client/assets/{use-connection-CIlIS9yr.js → use-connection-CfmOoRLh.js} +1 -1
  189. package/dist/client/assets/{use-copy-Bzd4s2Je.js → use-copy-kiWkIfMK.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-Cc3Ueppy.js → use-create-virtual-mcp-totm1MDz.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-DYePb-Ih.js → use-debounced-autosave-BcL2zLvT.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-CgLkXgs1.js → use-debounced-value-CuWehg24.js} +1 -1
  193. package/dist/client/assets/{use-deco-credits-CVJQqlUB.js → use-deco-credits-CA383Hd-.js} +1 -1
  194. package/dist/client/assets/{use-decopilot-events-Ch8Xm6s_.js → use-decopilot-events-BdKPw4QR.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-CDGOP8l-.js → use-delete-connection-BE5Whywc.js} +1 -1
  196. package/dist/client/assets/{use-deployment-admin-CvAosfoL.js → use-deployment-admin-BU2bnxD1.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-reAfVHRl.js → use-file-configs-C8D8fPdC.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-BzNKXcaM.js → use-infinite-scroll-QNOZWN_N.js} +1 -1
  199. package/dist/client/assets/{use-join-requests-Dxlx1o4m.js → use-join-requests-rVB2WFUt.js} +1 -1
  200. package/dist/client/assets/{use-mcp-client-fcQM5kum.js → use-mcp-client-CP7qMg-g.js} +1 -1
  201. package/dist/client/assets/{use-mcp-tools-fnErHnKf.js → use-mcp-tools-X_tD2E-s.js} +1 -1
  202. package/dist/client/assets/{use-members-B9t7cyTB.js → use-members-CfYBHF4H.js} +1 -1
  203. package/dist/client/assets/{use-mobile-DUlqDn_9.js → use-mobile-DT7Qd1-H.js} +1 -1
  204. package/dist/client/assets/{use-navigate-to-agent-aaTd7syT.js → use-navigate-to-agent-dMeVnEPo.js} +1 -1
  205. package/dist/client/assets/{use-org-auth-client-CZ9-kda-.js → use-org-auth-client-iiNYt7Ex.js} +1 -1
  206. package/dist/client/assets/{use-org-sso-DsMvasu2.js → use-org-sso-keIGVJCM.js} +1 -1
  207. package/dist/client/assets/{use-organization-roles-DDmxr2eK.js → use-organization-roles-xXxh_zte.js} +1 -1
  208. package/dist/client/assets/{use-organization-settings-CjxixQSU.js → use-organization-settings-BRyaPx6m.js} +1 -1
  209. package/dist/client/assets/{use-registry-connections-D5VH03gS.js → use-registry-connections-HNV6UD8e.js} +1 -1
  210. package/dist/client/assets/{use-secrets-Da-6q3t3.js → use-secrets-BgBJa15E.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-CUbY33VJ.js → use-status-sounds-DOx53m9f.js} +1 -1
  212. package/dist/client/assets/{use-view-mode-BckXovPv.js → use-view-mode-ChrgG168.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-Xzr7Ugp7.js → use-virtual-mcp-GzQ6w5B1.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-R3kdoktJ.js +1 -0
  215. package/dist/client/assets/{useRouterState-BJH2N88r.js → useRouterState-B7GLWEX_.js} +1 -1
  216. package/dist/client/assets/useSuspenseInfiniteQuery-EWKAsREn.js +1 -0
  217. package/dist/client/assets/{users-CEglOF7f.js → users-B_zDajkT.js} +1 -1
  218. package/dist/client/assets/{variant-calendar-B7GcqzQR.js → variant-calendar-BNGXXHuM.js} +1 -1
  219. package/dist/client/assets/{view-mode-toggle-CwnKAyzp.js → view-mode-toggle-CNBEeK7l.js} +1 -1
  220. package/dist/client/index.html +2 -2
  221. package/dist/server/cli.js +483 -483
  222. package/dist/server/migrate.js +74 -74
  223. package/dist/server/server.js +329 -329
  224. package/package.json +1 -1
  225. package/dist/client/assets/UserPlus01-DND761ob.js +0 -1
  226. package/dist/client/assets/agent-icon-CYaFMw10.js +0 -1
  227. package/dist/client/assets/automations-OnQpCm0Q.js +0 -1
  228. package/dist/client/assets/index-BNpA9-Df.js +0 -2
  229. package/dist/client/assets/index-D4T-PPFj.css +0 -1
  230. package/dist/client/assets/page-seo-sheet-DK6y7U5U.js +0 -1
  231. package/dist/client/assets/project-app-view-DGoM68m5.js +0 -1
  232. package/dist/client/assets/record-editor-BSfmsYFK.js +0 -1
  233. package/dist/client/assets/registry-CtpzfHhx.js +0 -2
  234. package/dist/client/assets/roles-C0mdhmm9.js +0 -1
  235. package/dist/client/assets/store-registry-iSr0DpRv.js +0 -2
  236. package/dist/client/assets/useInfiniteQuery-CobJtCjL.js +0 -1
  237. package/dist/client/assets/useSuspenseInfiniteQuery-fIHqewRj.js +0 -1
@@ -1 +1 @@
1
- import{c as h,C as x,a as S,u as j,r as C,j as u,Y as I,N as _}from"./index-B7kSY61k.js";import{a as R}from"./constants-D_FQAPnt.js";import{a as b}from"./hooks-Dhyw86WQ.js";import{f as k}from"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-client-fcQM5kum.js";import"./auth-CrjpM3FO.js";import"./decopilot-sse-pool-DEohvxsN.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";function L(){const t=h.c(12),{org:o}=x(),r=R(o.id).id,{data:p}=S.useSession(),{threads:d,status:f}=b();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[0]=a):a=t[0];const{connect:l,siteUrl:c}=j(a),[g]=C.useState(y);if(f.kind==="loading"){let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(I,{}),t[1]=n):n=t[1],n}const m=k(d,r,p?.user?.id)?.id??g;let e;t[2]!==o.slug||t[3]!==m?(e={org:o.slug,taskId:m},t[2]=o.slug,t[3]=m,t[4]=e):e=t[4];let s;t[5]!==l||t[6]!==r||t[7]!==c?(s={virtualmcpid:r,connect:l,siteUrl:c},t[5]=l,t[6]=r,t[7]=c,t[8]=s):s=t[8];let i;return t[9]!==e||t[10]!==s?(i=u.jsx(_,{to:"/$org/$taskId",params:e,search:s,replace:!0}),t[9]=e,t[10]=s,t[11]=i):i=t[11],i}function y(){return crypto.randomUUID()}export{L as default};
1
+ import{c as h,C as x,a as S,u as j,r as C,j as u,Y as I,N as _}from"./index-Ik6zkERJ.js";import{a as R}from"./constants-D_FQAPnt.js";import{a as b}from"./hooks-B_rAYDFL.js";import{f as k}from"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-client-CP7qMg-g.js";import"./auth-BycXMDKl.js";import"./decopilot-sse-pool-CnBfws5s.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";function L(){const t=h.c(12),{org:o}=x(),r=R(o.id).id,{data:p}=S.useSession(),{threads:d,status:f}=b();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[0]=a):a=t[0];const{connect:l,siteUrl:c}=j(a),[g]=C.useState(y);if(f.kind==="loading"){let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(I,{}),t[1]=n):n=t[1],n}const m=k(d,r,p?.user?.id)?.id??g;let e;t[2]!==o.slug||t[3]!==m?(e={org:o.slug,taskId:m},t[2]=o.slug,t[3]=m,t[4]=e):e=t[4];let s;t[5]!==l||t[6]!==r||t[7]!==c?(s={virtualmcpid:r,connect:l,siteUrl:c},t[5]=l,t[6]=r,t[7]=c,t[8]=s):s=t[8];let i;return t[9]!==e||t[10]!==s?(i=u.jsx(_,{to:"/$org/$taskId",params:e,search:s,replace:!0}),t[9]=e,t[10]=s,t[11]=i):i=t[11],i}function y(){return crypto.randomUUID()}export{L as default};
@@ -1 +1 @@
1
- import{r as h}from"./index-B7kSY61k.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
1
+ import{r as h}from"./index-Ik6zkERJ.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
@@ -1,4 +1,4 @@
1
- import{r as a,aM as R}from"./index-B7kSY61k.js";function re(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function me(e){if(Array.isArray(e))return e}function be(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as a,aM as R}from"./index-Ik6zkERJ.js";function re(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function me(e){if(Array.isArray(e))return e}function be(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ne(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oe(e,t){if(e==null)return{};var r,n,o=je(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function je(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Me(e,t){return me(e)||ye(e,t)||Ee(e,t)||we()}function Pe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Pe(e,"string");return typeof t=="symbol"?t:t+""}function Ee(e,t){if(e){if(typeof e=="string")return re(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?re(e,t):void 0}}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function A(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function F(e){return{}.toString.call(e).includes("Object")}function Te(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ce(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return F(t)||P("changeType"),Object.keys(t).some(function(r){return!Ce(e,r)})&&P("changeField"),t}function Ae(e){D(e)||P("selectorType")}function $e(e){D(e)||F(e)||P("handlerType"),F(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function De(e){e||P("initialIsRequired"),F(e)||P("initialType"),Te(e)&&P("initialContent")}function Ve(e,t){throw new Error(e[t]||e.default)}var xe={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=A(Ve)(xe),q={changes:Le,selector:Ae,handler:$e,initial:De};function Ne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q.initial(e),q.handler(t);var r={current:e},n=A(Fe)(r,t),o=A(ze)(r),i=A(q.changes)(e),c=A(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return q.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ae(ae({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Ue={create:Ne},He={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function We(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function Be(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ue("configIsRequired"),Be(e)||ue("configType"),e.urls?(Ge(),{paths:{vs:e.urls.monacoBase}}):e}function Ge(){console.warn(ce.deprecation)}function Ye(e,t){throw new Error(e[t]||e.default)}var ce={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
@@ -1 +1 @@
1
- import{c as f,l as d,r as p,j as r}from"./index-B7kSY61k.js";import{r as w}from"./sidebar-BxidMjmD.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
1
+ import{c as f,l as d,r as p,j as r}from"./index-Ik6zkERJ.js";import{r as w}from"./sidebar-o-9qTA9g.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
@@ -1,4 +1,4 @@
1
- import{c as $,C as de,n as Ze,d as We,K as Q,m as ie,aY as kn,r as k,ap as Ss,l as ce,j as l,U as Ns,i as zs,B as Z,aL as Sn,t as ue,w as Cs,L as $s,e as Ps,b as Nn,u as zn,E as Tt}from"./index-B7kSY61k.js";import{i as Es}from"./ChevronRight-Cau3pB5r.js";import{s as Cn}from"./Eye-B7kpCJa5.js";import{n as Ve,i as yt}from"./Globe01-DdWuDrh6.js";import{b as Ds,c as Ts,e as Fs,i as Ms,f as $n,a as Ht,g as Is,d as Ls}from"./ZoomOut-03Q0PW_C.js";import{a as ht}from"./Palette-CcsVjKON.js";import{s as Os}from"./Plus-Bx48hlpO.js";import{i as Rs}from"./SearchLg-DkIXXk3g.js";import{t as As}from"./Stars01-CVrFHL0D.js";import{i as mt}from"./Upload01-BwpwGSqz.js";import{s as Pn}from"./XClose-BVJdSioY.js";import{i as qt}from"./Zap-CDl92LnD.js";import{u as En}from"./use-mobile-DUlqDn_9.js";import{f as _s,a as Us,b as Bs,c as Hs,d as qs,e as Ks,A as Ws,g as Gs}from"./alert-dialog-CChVAHtE.js";import{D as Dn,a as Ue,d as Je,e as et,i as Tn,h as Vs,c as Xs}from"./dialog-BqwjfMqR.js";import{I as Xe}from"./input-CYFSanYY.js";import{S as ae}from"./skeleton-e8B73gWz.js";import{F as Se,M as Kt,d as Fn}from"./file-type-icon-DOdLQKK_.js";import{T as Qs}from"./toolbar-B2Kkr9G0.js";import{a as Ys}from"./Package-DauC5mmW.js";import{u as Zs}from"./use-debounced-value-CgLkXgs1.js";import{i as vt}from"./DotsVertical-BytlZLrR.js";import{i as Mn}from"./Key01-CnIVKr2P.js";import{s as wt}from"./Trash01-KUfQJhkh.js";import{D as tt,a as nt,c as st,d as be}from"./dropdown-menu-DRIlPMMO.js";import{T as Js}from"./textarea-BLSgS6jG.js";import{t as el}from"./ChevronDown-9GTwqZoD.js";import{n as tl}from"./ChevronUp-B7wXLfu8.js";import{i as pt}from"./X-D5nmPiow.js";import{P as nl,b as sl,a as ll}from"./popover-CpbxnJfL.js";import{b as ye,T as ve,a as we}from"./tooltip-DCI9Obou.js";import{i as rl}from"./Check-DDBne1xZ.js";import{a as il}from"./Copy01-ChqrH-GK.js";import{n as In}from"./LinkExternal01-NHIUOyLy.js";import{l as ol,F as al}from"./index-DLvFprGS.js";import{i as cl}from"./LayoutLeft-OEpR1xv9.js";function Ln(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function Wt(n,e){const t=$.c(11),{org:s}=de();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Q.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(dl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],ie(o)}function dl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function On(n,e,t){const s=$.c(15),{org:r}=de();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Q.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==r.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fetch(pe(r.slug,n??"","stat",{path:e}));if(f.status===404)return null;if(!f.ok)throw new Error(`HTTP ${f.status}`);return(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function ul(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=Q.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],ie(i)}function fl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:r}=de();let i;t[0]!==r.id?(i=Q.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==r.slug?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function hl(n,e){const t=$.c(11),s=50,{org:r}=de();let i;t[0]!==r.id||t[1]!==n?(i=Q.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==r.slug||t[5]!==n?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:kn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Fo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=Q.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(ml)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],ie(o)}function ml(n){return{volume:n.volume,path:n.path}}async function Mo(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function pl(n,e,t){return(await he(pe(n,e,"read",{path:t}))).text()}const xl=new Set(["md","mdx","markdown","txt","text"]),gl=25,bl=64*1024,yl=256*1024,vl=4;function wl(n){const e=n.lastIndexOf(".");return e===-1?!1:xl.has(n.slice(e+1).toLowerCase())}async function Io(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await he(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<vl&&a.push({path:m.path,depth:u.depth+1});continue}wl(m.path)&&m.size<=bl&&i.length<gl?i.push(m.path):o.push(r(m.path))}}const c=await Promise.all(i.map(u=>pl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>yl){o.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function Rn(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=Q.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],ie(r)}function jl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>pe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function lt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,r)=>pe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function An(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(pe(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],We(s)}function kl(n){const e=$.c(18),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(pe(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=Q.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:Q.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:r,onMutate:i,onError:o,onSettled:a},e[13]=r,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function At(n){const e=$.c(26),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await he(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(pe(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(pe(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const jt=k.createContext(null);jt.displayName="PanelGroupContext";const se={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"},Gt=10,Fe=k.useLayoutEffect,sn=Ss.useId,Sl=typeof sn=="function"?sn:()=>null;let Nl=0;function Vt(n=null){const e=Sl(),t=k.useRef(n||e||null);return t.current===null&&(t.current=""+Nl++),n??t.current}function _n({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=k.useContext(jt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:z,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:I,unregisterPanel:F}=b,v=Vt(o),P=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});k.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:A,constraints:_}=P.current,B={..._};P.current.id=v,P.current.idIsFromProps=o!==void 0,P.current.order=h,A.onCollapse=d,A.onExpand=f,A.onResize=u,_.collapsedSize=t,_.collapsible=s,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w(P.current,B)}),Fe(()=>{const A=P.current;return M(A),()=>{F(A)}},[h,v,M,F]),k.useImperativeHandle(i,()=>({collapse:()=>{x(P.current)},expand:A=>{y(P.current,A)},getId(){return v},getSize(){return j(P.current)},isCollapsed(){return C(P.current)},isExpanded(){return!C(P.current)},resize:A=>{I(P.current,A)}}),[x,y,j,C,v,I]);const W=N(P.current,r);return k.createElement(p,{...g,children:n,className:e,id:v,style:{...W,...m},[se.groupId]:z,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+W.flexGrow).toFixed(1)})}const Un=k.forwardRef((n,e)=>k.createElement(_n,{...n,forwardedRef:e}));_n.displayName="Panel";Un.displayName="forwardRef(Panel)";let _t=null,ft=-1,Ce=null;function zl(n,e){if(e){const t=(e&Wn)!==0,s=(e&Gn)!==0,r=(e&Vn)!==0,i=(e&Xn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Cl(){Ce!==null&&(document.head.removeChild(Ce),_t=null,Ce=null,ft=-1)}function Ft(n,e){var t,s;const r=zl(n,e);if(_t!==r){if(_t=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Bn(n){return n.type==="keydown"}function Hn(n){return n.type.startsWith("pointer")}function qn(n){return n.type.startsWith("mouse")}function kt(n){if(Hn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(qn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function $l(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Pl(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function El(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:on(n),b:on(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:rn(ln(t.a)),b:rn(ln(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const Dl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tl(n){var e;const t=getComputedStyle((e=Kn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Fl(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Tl(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Dl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ln(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Fl(t))return t}return null}function rn(n){return n&&Number(getComputedStyle(n).zIndex)||0}function on(n){const e=[];for(;n;)e.push(n),n=Kn(n);return e}function Kn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Wn=1,Gn=2,Vn=4,Xn=8,Ml=$l()==="coarse";let xe=[],_e=!1,Te=new Map,St=new Map;const Qe=new Set;function Il(n,e,t,s,r){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},c=(i=Te.get(o))!==null&&i!==void 0?i:0;return Te.set(o,c+1),Qe.add(a),xt(),function(){var f;St.delete(n),Qe.delete(a);const u=(f=Te.get(o))!==null&&f!==void 0?f:1;if(Te.set(o,u-1),xt(),u===1&&Te.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),r("up",!0,null)}}}function Ll(n){const{target:e}=n,{x:t,y:s}=kt(n);_e=!0,Xt({target:e,x:t,y:s}),xt(),xe.length>0&&(gt("down",n),n.preventDefault(),Qn(e)||n.stopImmediatePropagation())}function Mt(n){const{x:e,y:t}=kt(n);if(_e&&n.buttons===0&&(_e=!1,gt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}gt("move",n),Qt(),xe.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=kt(n);St.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Qn(e)||n.stopImmediatePropagation()),gt("up",n),Xt({target:e,x:t,y:s}),Qt(),xt()}function Qn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Ml?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&El(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(Pl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(r)}})}function Lt(n,e){St.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;St.forEach(s=>{t|=s}),n&&e?Ft("intersection",t):n?Ft("horizontal",t):e?Ft("vertical",t):Cl()}let Ot=new AbortController;function xt(){Ot.abort(),Ot=new AbortController;const n={capture:!0,signal:Ot.signal};Qe.size&&(_e?(xe.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Mt,n),s.addEventListener("pointermove",Mt,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Ll,n),s.addEventListener("pointermove",Mt,n))}))}function gt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,r=xe.includes(t);s(n,r,e)})}function Ol(){const[n,e]=k.useState(0);return k.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Me(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function je(n,e,t=Gt){return Me(n,e,t)===0}function me(n,e,t){return Me(n,e,t)===0}function Rl(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!me(r,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Me(t,a)<0)if(i){const c=(r+a)/2;Me(t,c)<0?t=r:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];V(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Rl(r,o))return r;{const u=n<0?c:a,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];V(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:r}function Al({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const a=t[0];V(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Yn(n,e,t=document){const r=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return r??null}function Zn(n,e,t){const s=Yn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Jn(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function Nt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function _l(n,e,t,s=document){var r,i,o,a;const c=Nt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Ul({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Al({layout:s,panelsArray:r,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=r[c];V(m,`No panel data found for index "${c}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Jn(t,i);V(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,g]=_l(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];V(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:z=0,collapsible:C,minSize:w=0}=j.constraints;if(N!=null&&C){const M=He({delta:me(N,z)?w-z:z-N,initialLayout:s,panelConstraints:c.map(I=>I.constraints),pivotIndices:Zn(t,m,i),prevLayout:s,trigger:"keyboard"});s!==M&&o(M)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,o])}function an(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function es(n,e){const t=n==="horizontal",{x:s,y:r}=kt(e);return t?s:r}function Bl(n,e,t,s,r){const i=t==="horizontal",o=Nt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=es(t,n),f=Jn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Hl(n,e,t,s,r,i){if(Bn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Bl(n,e,t,s,i)}function ql({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,r-=a)}for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=r/c;s++,e[i]=d,r-=d}return e}function Ie(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||je(u,d))&&!je(s,d)&&m(),h&&(u==null||!je(u,d))&&je(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Kl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Wl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function cn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ts(n){return`react-resizable-panels:${n}`}function ns(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ss(n,e){try{const t=ts(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Gl(n,e,t){var s,r;const i=(s=ss(n,t))!==null&&s!==void 0?s:{},o=ns(e);return(r=i[o])!==null&&r!==void 0?r:null}function Vl(n,e,t,s,r){var i;const o=ts(n),a=ns(e),c=(i=ss(n,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,t[i]=a)}if(!me(r,0))for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,t[i]=c,me(r,0)))break}return t}const Xl=100,qe={getItem:n=>(cn(qe),qe.getItem(n)),setItem:(n,e)=>{cn(qe),qe.setItem(n,e)}},un={};function ls({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Vt(i),m=k.useRef(null),[p,g]=k.useState(null),[b,x]=k.useState([]),y=Ol(),j=k.useRef({}),N=k.useRef(new Map),z=k.useRef(0),C=k.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current,T=dn({layout:S,panelConstraints:U.map(H=>H.constraints)});an(R,T)||(x(T),w.current.layout=T,O&&O(T),Ie(U,T,j.current))}}),[]),Fe(()=>{C.current.autoSaveId=n,C.current.direction=s,C.current.dragState=p,C.current.id=h,C.current.onLayout=o,C.current.storage=c}),Ul({committedValuesRef:C,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(n){if(b.length===0||b.length!==S.length)return;let O=un[n];O==null&&(O=Wl(Vl,Xl),un[n]=O);const R=[...S],U=new Map(N.current);O(n,R,U,b,c)}},[n,b,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current;if(S.constraints.collapsible){const T=U.map(fe=>fe.constraints),{collapsedSize:H=0,panelSize:Y,pivotIndices:te}=De(U,S,R);if(V(Y!=null,`Panel size not found for panel "${S.id}"`),!je(Y,H)){N.current.set(S.id,Y);const E=Oe(U,S)===U.length-1?Y-H:H-Y,X=He({delta:E,initialLayout:R,panelConstraints:T,pivotIndices:te,prevLayout:R,trigger:"imperative-api"});ut(R,X)||(x(X),w.current.layout=X,O&&O(X),Ie(U,X,j.current))}}},[]),I=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current;if(S.constraints.collapsible){const H=T.map(ne=>ne.constraints),{collapsedSize:Y=0,panelSize:te=0,minSize:fe=0,pivotIndices:E}=De(T,S,U),X=O??fe;if(je(te,Y)){const ne=N.current.get(S.id),ge=ne!=null&&ne>=X?ne:X,Pe=Oe(T,S)===T.length-1?te-ge:ge-te,oe=He({delta:Pe,initialLayout:U,panelConstraints:H,pivotIndices:E,prevLayout:U,trigger:"imperative-api"});ut(U,oe)||(x(oe),w.current.layout=oe,R&&R(oe),Ie(T,oe,j.current))}}},[]),F=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{panelSize:U}=De(R,S,O);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,O)=>{const{panelDataArray:R}=w.current,U=Oe(R,S);return Kl({defaultSize:O,dragState:p,layout:b,panelData:R,panelIndex:U})},[p,b]),P=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),T===!0&&je(H,U)},[]),W=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),!T||Me(H,U)>0},[]),A=k.useCallback(S=>{const{panelDataArray:O}=w.current;O.push(S),O.sort((R,U)=>{const T=R.order,H=U.order;return T==null&&H==null?0:T==null?-1:H==null?1:T-H}),w.current.panelDataArrayChanged=!0,y()},[y]);Fe(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:O,storage:R}=C.current,{layout:U,panelDataArray:T}=w.current;let H=null;if(S){const te=Gl(S,T,R);te&&(N.current=new Map(Object.entries(te.expandToSizes)),H=te.layout)}H==null&&(H=ql({panelDataArray:T}));const Y=dn({layout:H,panelConstraints:T.map(te=>te.constraints)});an(U,Y)||(x(Y),w.current.layout=Y,O&&O(Y),Ie(T,Y,j.current))}}),Fe(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let O=!1;const R=m.current;return R&&window.getComputedStyle(R,null).getPropertyValue("direction")==="rtl"&&(O=!0),function(T){T.preventDefault();const H=m.current;if(!H)return()=>null;const{direction:Y,dragState:te,id:fe,keyboardResizeBy:E,onLayout:X}=C.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Ne}=te??{},Pe=Zn(fe,S,H);let oe=Hl(T,S,Y,te,E,H);const at=Y==="horizontal";at&&O&&(oe=-oe);const Et=ge.map(Dt=>Dt.constraints),Ee=He({delta:oe,initialLayout:Ne??ne,panelConstraints:Et,pivotIndices:Pe,prevLayout:ne,trigger:Bn(T)?"keyboard":"mouse-or-touch"}),ct=!ut(ne,Ee);(Hn(T)||qn(T))&&z.current!=oe&&(z.current=oe,!ct&&oe!==0?at?Lt(S,oe<0?Wn:Gn):Lt(S,oe<0?Vn:Xn):Lt(S,0)),ct&&(x(Ee),w.current.layout=Ee,X&&X(Ee),Ie(ge,Ee,j.current))}},[]),B=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current,H=T.map(ne=>ne.constraints),{panelSize:Y,pivotIndices:te}=De(T,S,U);V(Y!=null,`Panel size not found for panel "${S.id}"`);const E=Oe(T,S)===T.length-1?Y-O:O-Y,X=He({delta:E,initialLayout:U,panelConstraints:H,pivotIndices:te,prevLayout:U,trigger:"imperative-api"});ut(U,X)||(x(X),w.current.layout=X,R&&R(X),Ie(T,X,j.current))},[]),G=k.useCallback((S,O)=>{const{layout:R,panelDataArray:U}=w.current,{collapsedSize:T=0,collapsible:H}=O,{collapsedSize:Y=0,collapsible:te,maxSize:fe=100,minSize:E=0}=S.constraints,{panelSize:X}=De(U,S,R);X!=null&&(H&&te&&je(X,T)?je(T,Y)||B(S,Y):X<E?B(S,E):X>fe&&B(S,fe))},[B]),q=k.useCallback((S,O)=>{const{direction:R}=C.current,{layout:U}=w.current;if(!m.current)return;const T=Nt(S,m.current);V(T,`Drag handle element not found for id "${S}"`);const H=es(R,O);g({dragHandleId:S,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),ee=k.useCallback(()=>{g(null)},[]),J=k.useCallback(S=>{const{panelDataArray:O}=w.current,R=Oe(O,S);R>=0&&(O.splice(R,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,y())},[y]),L=k.useMemo(()=>({collapsePanel:M,direction:s,dragState:p,expandPanel:I,getPanelSize:F,getPanelStyle:v,groupId:h,isPanelCollapsed:P,isPanelExpanded:W,reevaluatePanelConstraints:G,registerPanel:A,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:ee,unregisterPanel:J,panelGroupElement:m.current}),[M,p,s,I,F,v,h,P,W,G,A,_,B,q,ee,J]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(jt.Provider,{value:L},k.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const rs=k.forwardRef((n,e)=>k.createElement(ls,{...n,forwardedRef:e}));ls.displayName="PanelGroup";rs.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function Ql({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){k.useEffect(()=>{if(n||t==null||s==null)return;const r=Nt(e,s);if(r==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(),t(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(se.groupId);V(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Yn(a,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function is({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=k.useRef(null),y=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=k.useContext(jt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:z,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:I}=j,F=Vt(r),[v,P]=k.useState("inactive"),[W,A]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Fe(()=>{G.current.state=v}),k.useEffect(()=>{if(t)B(null);else{const L=C(F);B(()=>L)}},[t,F,C]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;k.useEffect(()=>{if(t||_==null)return;const L=x.current;V(L,"Element ref not attached");let K=!1;return Il(F,L,N,{coarse:q,fine:ee},(O,R,U)=>{if(!R){P("inactive");return}switch(O){case"down":{P("drag"),K=!1,V(U,'Expected event to be defined for "down" action'),w(F,U);const{onDragging:T,onPointerDown:H}=y.current;T?.(!0),H?.();break}case"move":{const{state:T}=G.current;K=!0,T!=="drag"&&P("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{P("hover"),M();const{onClick:T,onDragging:H,onPointerUp:Y}=y.current;H?.(!1),Y?.(),K||T?.();break}}})},[q,N,t,ee,C,F,_,w,M]),Ql({disabled:t,handleId:F,resizeHandler:_,panelGroupElement:I});const J={touchAction:"none",userSelect:"none"};return k.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{A(!1),i?.()},onFocus:()=>{A(!0),c?.()},ref:x,role:"separator",style:{...J,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:z,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":W?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:F,[se.resizeHandleState]:v})}is.displayName="PanelResizeHandle";function Yl(n){const e=$.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=l.jsx(rs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function fn(n){const e=$.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(Un,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function Zl(n){const e=$.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ce("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Ds,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=l.jsx(is,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function Jl(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function er(n){if(Jl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function tr(n){try{return decodeURIComponent(n)}catch{return n}}function nr(n){return er(n),encodeURIComponent(n)}function sr(n){return`.deco/blocks/${nr(n)}.json`}function Lo(n){return`/${sr(n)}`}const Oo=1e4,lr=3;function Ut(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function Yt(n){return n.startsWith("/")?n.slice(1):n}function bt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function rr(n){const e=bt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ro(n,e){const t=e.replace(/^\/+|\/+$/g,"");return bt(t?`${n==="/"?"":n}/${t}`:n)}function Ao(n,e){return e==="directory"?n:rr(n)}function _o(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function ir(n){const e=Yt(n);return e?e.split("/").filter(Boolean).length:0}function Uo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Bo(n,e){return ir(n)>=lr&&!e.has(n)}function Ho(n,e,t=[]){const s=Yt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function qo(n){const e=Yt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return tr(s)}function or(n){if(!n)return"plaintext";const e=n.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 Ko(n){const e=Ut(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Wo(n,e=[]){const t={children:[]},s=i=>{const a=Ut(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of n){const a=Ut(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(bt(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function ar(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...ar(r.children,e,t+1)));return s}function Go(n){return n.split(`
1
+ import{c as $,C as de,n as Ze,d as We,K as Q,m as ie,aY as kn,r as k,ap as Ss,l as ce,j as l,U as Ns,i as zs,B as Z,aL as Sn,t as ue,w as Cs,L as $s,e as Ps,b as Nn,u as zn,E as Tt}from"./index-Ik6zkERJ.js";import{i as Es}from"./ChevronRight-EVA2m03x.js";import{s as Cn}from"./Eye-B930MDWC.js";import{n as Ve,i as yt}from"./Globe01-bPLFeC2D.js";import{b as Ds,c as Ts,e as Fs,i as Ms,f as $n,a as Ht,g as Is,d as Ls}from"./ZoomOut-DfPc2tWh.js";import{a as ht}from"./Palette-CGemj5Yo.js";import{s as Os}from"./Plus-CEccEcjc.js";import{i as Rs}from"./SearchLg-Cevt_mi8.js";import{t as As}from"./Stars01-BuQv9Nru.js";import{i as mt}from"./Upload01-pevnFhia.js";import{s as Pn}from"./XClose-Dpys7n5b.js";import{i as qt}from"./Zap-Ddgm0cuS.js";import{u as En}from"./use-mobile-DT7Qd1-H.js";import{f as _s,a as Us,b as Bs,c as Hs,d as qs,e as Ks,A as Ws,g as Gs}from"./alert-dialog-DZluuzF8.js";import{D as Dn,a as Ue,d as Je,e as et,i as Tn,h as Vs,c as Xs}from"./dialog-laQ2oCMx.js";import{I as Xe}from"./input-CiHDP3FJ.js";import{S as ae}from"./skeleton-DNGEAqud.js";import{F as Se,M as Kt,d as Fn}from"./file-type-icon-CkXs3ZeU.js";import{T as Qs}from"./toolbar-C52yl4YA.js";import{a as Ys}from"./Package-BjCGp9Ef.js";import{u as Zs}from"./use-debounced-value-CuWehg24.js";import{i as vt}from"./DotsVertical-CG59EanJ.js";import{i as Mn}from"./Key01-BvT3zNsr.js";import{s as wt}from"./Trash01-BWrHYSuv.js";import{D as tt,a as nt,c as st,d as be}from"./dropdown-menu-CQd3xkCq.js";import{T as Js}from"./textarea-COstjKKv.js";import{t as el}from"./ChevronDown-2T9NLLct.js";import{n as tl}from"./ChevronUp-oFldj9t-.js";import{i as pt}from"./X-CHXaqXsc.js";import{P as nl,b as sl,a as ll}from"./popover-BebmVziF.js";import{b as ye,T as ve,a as we}from"./tooltip-DdhJMVoN.js";import{i as rl}from"./Check-ViJHHV5b.js";import{a as il}from"./Copy01-X-5ArGYX.js";import{n as In}from"./LinkExternal01-CelmDpah.js";import{l as ol,F as al}from"./index-Clp7yP00.js";import{i as cl}from"./LayoutLeft-DKNdCPN2.js";function Ln(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function Wt(n,e){const t=$.c(11),{org:s}=de();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Q.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(dl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],ie(o)}function dl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function On(n,e,t){const s=$.c(15),{org:r}=de();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Q.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==r.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fetch(pe(r.slug,n??"","stat",{path:e}));if(f.status===404)return null;if(!f.ok)throw new Error(`HTTP ${f.status}`);return(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function ul(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=Q.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],ie(i)}function fl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:r}=de();let i;t[0]!==r.id?(i=Q.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==r.slug?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function hl(n,e){const t=$.c(11),s=50,{org:r}=de();let i;t[0]!==r.id||t[1]!==n?(i=Q.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==r.slug||t[5]!==n?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:kn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Fo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=Q.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(ml)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],ie(o)}function ml(n){return{volume:n.volume,path:n.path}}async function Mo(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function pl(n,e,t){return(await he(pe(n,e,"read",{path:t}))).text()}const xl=new Set(["md","mdx","markdown","txt","text"]),gl=25,bl=64*1024,yl=256*1024,vl=4;function wl(n){const e=n.lastIndexOf(".");return e===-1?!1:xl.has(n.slice(e+1).toLowerCase())}async function Io(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await he(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<vl&&a.push({path:m.path,depth:u.depth+1});continue}wl(m.path)&&m.size<=bl&&i.length<gl?i.push(m.path):o.push(r(m.path))}}const c=await Promise.all(i.map(u=>pl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>yl){o.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function Rn(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=Q.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],ie(r)}function jl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>pe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function lt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,r)=>pe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function An(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(pe(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],We(s)}function kl(n){const e=$.c(18),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(pe(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=Q.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:Q.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:r,onMutate:i,onError:o,onSettled:a},e[13]=r,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function At(n){const e=$.c(26),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await he(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(pe(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(pe(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const jt=k.createContext(null);jt.displayName="PanelGroupContext";const se={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"},Gt=10,Fe=k.useLayoutEffect,sn=Ss.useId,Sl=typeof sn=="function"?sn:()=>null;let Nl=0;function Vt(n=null){const e=Sl(),t=k.useRef(n||e||null);return t.current===null&&(t.current=""+Nl++),n??t.current}function _n({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=k.useContext(jt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:z,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:I,unregisterPanel:F}=b,v=Vt(o),P=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});k.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:A,constraints:_}=P.current,B={..._};P.current.id=v,P.current.idIsFromProps=o!==void 0,P.current.order=h,A.onCollapse=d,A.onExpand=f,A.onResize=u,_.collapsedSize=t,_.collapsible=s,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w(P.current,B)}),Fe(()=>{const A=P.current;return M(A),()=>{F(A)}},[h,v,M,F]),k.useImperativeHandle(i,()=>({collapse:()=>{x(P.current)},expand:A=>{y(P.current,A)},getId(){return v},getSize(){return j(P.current)},isCollapsed(){return C(P.current)},isExpanded(){return!C(P.current)},resize:A=>{I(P.current,A)}}),[x,y,j,C,v,I]);const W=N(P.current,r);return k.createElement(p,{...g,children:n,className:e,id:v,style:{...W,...m},[se.groupId]:z,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+W.flexGrow).toFixed(1)})}const Un=k.forwardRef((n,e)=>k.createElement(_n,{...n,forwardedRef:e}));_n.displayName="Panel";Un.displayName="forwardRef(Panel)";let _t=null,ft=-1,Ce=null;function zl(n,e){if(e){const t=(e&Wn)!==0,s=(e&Gn)!==0,r=(e&Vn)!==0,i=(e&Xn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Cl(){Ce!==null&&(document.head.removeChild(Ce),_t=null,Ce=null,ft=-1)}function Ft(n,e){var t,s;const r=zl(n,e);if(_t!==r){if(_t=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Bn(n){return n.type==="keydown"}function Hn(n){return n.type.startsWith("pointer")}function qn(n){return n.type.startsWith("mouse")}function kt(n){if(Hn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(qn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function $l(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Pl(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function El(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:on(n),b:on(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:rn(ln(t.a)),b:rn(ln(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const Dl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tl(n){var e;const t=getComputedStyle((e=Kn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Fl(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Tl(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Dl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ln(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Fl(t))return t}return null}function rn(n){return n&&Number(getComputedStyle(n).zIndex)||0}function on(n){const e=[];for(;n;)e.push(n),n=Kn(n);return e}function Kn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Wn=1,Gn=2,Vn=4,Xn=8,Ml=$l()==="coarse";let xe=[],_e=!1,Te=new Map,St=new Map;const Qe=new Set;function Il(n,e,t,s,r){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},c=(i=Te.get(o))!==null&&i!==void 0?i:0;return Te.set(o,c+1),Qe.add(a),xt(),function(){var f;St.delete(n),Qe.delete(a);const u=(f=Te.get(o))!==null&&f!==void 0?f:1;if(Te.set(o,u-1),xt(),u===1&&Te.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),r("up",!0,null)}}}function Ll(n){const{target:e}=n,{x:t,y:s}=kt(n);_e=!0,Xt({target:e,x:t,y:s}),xt(),xe.length>0&&(gt("down",n),n.preventDefault(),Qn(e)||n.stopImmediatePropagation())}function Mt(n){const{x:e,y:t}=kt(n);if(_e&&n.buttons===0&&(_e=!1,gt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}gt("move",n),Qt(),xe.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=kt(n);St.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Qn(e)||n.stopImmediatePropagation()),gt("up",n),Xt({target:e,x:t,y:s}),Qt(),xt()}function Qn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Ml?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&El(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(Pl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(r)}})}function Lt(n,e){St.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;St.forEach(s=>{t|=s}),n&&e?Ft("intersection",t):n?Ft("horizontal",t):e?Ft("vertical",t):Cl()}let Ot=new AbortController;function xt(){Ot.abort(),Ot=new AbortController;const n={capture:!0,signal:Ot.signal};Qe.size&&(_e?(xe.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Mt,n),s.addEventListener("pointermove",Mt,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Ll,n),s.addEventListener("pointermove",Mt,n))}))}function gt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,r=xe.includes(t);s(n,r,e)})}function Ol(){const[n,e]=k.useState(0);return k.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Me(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function je(n,e,t=Gt){return Me(n,e,t)===0}function me(n,e,t){return Me(n,e,t)===0}function Rl(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!me(r,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Me(t,a)<0)if(i){const c=(r+a)/2;Me(t,c)<0?t=r:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];V(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Rl(r,o))return r;{const u=n<0?c:a,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];V(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:r}function Al({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const a=t[0];V(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Yn(n,e,t=document){const r=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return r??null}function Zn(n,e,t){const s=Yn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Jn(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function Nt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function _l(n,e,t,s=document){var r,i,o,a;const c=Nt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Ul({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Al({layout:s,panelsArray:r,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=r[c];V(m,`No panel data found for index "${c}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Jn(t,i);V(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,g]=_l(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];V(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:z=0,collapsible:C,minSize:w=0}=j.constraints;if(N!=null&&C){const M=He({delta:me(N,z)?w-z:z-N,initialLayout:s,panelConstraints:c.map(I=>I.constraints),pivotIndices:Zn(t,m,i),prevLayout:s,trigger:"keyboard"});s!==M&&o(M)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,o])}function an(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function es(n,e){const t=n==="horizontal",{x:s,y:r}=kt(e);return t?s:r}function Bl(n,e,t,s,r){const i=t==="horizontal",o=Nt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=es(t,n),f=Jn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Hl(n,e,t,s,r,i){if(Bn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Bl(n,e,t,s,i)}function ql({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,r-=a)}for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=r/c;s++,e[i]=d,r-=d}return e}function Ie(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||je(u,d))&&!je(s,d)&&m(),h&&(u==null||!je(u,d))&&je(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Kl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Wl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function cn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ts(n){return`react-resizable-panels:${n}`}function ns(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ss(n,e){try{const t=ts(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Gl(n,e,t){var s,r;const i=(s=ss(n,t))!==null&&s!==void 0?s:{},o=ns(e);return(r=i[o])!==null&&r!==void 0?r:null}function Vl(n,e,t,s,r){var i;const o=ts(n),a=ns(e),c=(i=ss(n,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,t[i]=a)}if(!me(r,0))for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,t[i]=c,me(r,0)))break}return t}const Xl=100,qe={getItem:n=>(cn(qe),qe.getItem(n)),setItem:(n,e)=>{cn(qe),qe.setItem(n,e)}},un={};function ls({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Vt(i),m=k.useRef(null),[p,g]=k.useState(null),[b,x]=k.useState([]),y=Ol(),j=k.useRef({}),N=k.useRef(new Map),z=k.useRef(0),C=k.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current,T=dn({layout:S,panelConstraints:U.map(H=>H.constraints)});an(R,T)||(x(T),w.current.layout=T,O&&O(T),Ie(U,T,j.current))}}),[]),Fe(()=>{C.current.autoSaveId=n,C.current.direction=s,C.current.dragState=p,C.current.id=h,C.current.onLayout=o,C.current.storage=c}),Ul({committedValuesRef:C,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(n){if(b.length===0||b.length!==S.length)return;let O=un[n];O==null&&(O=Wl(Vl,Xl),un[n]=O);const R=[...S],U=new Map(N.current);O(n,R,U,b,c)}},[n,b,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current;if(S.constraints.collapsible){const T=U.map(fe=>fe.constraints),{collapsedSize:H=0,panelSize:Y,pivotIndices:te}=De(U,S,R);if(V(Y!=null,`Panel size not found for panel "${S.id}"`),!je(Y,H)){N.current.set(S.id,Y);const E=Oe(U,S)===U.length-1?Y-H:H-Y,X=He({delta:E,initialLayout:R,panelConstraints:T,pivotIndices:te,prevLayout:R,trigger:"imperative-api"});ut(R,X)||(x(X),w.current.layout=X,O&&O(X),Ie(U,X,j.current))}}},[]),I=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current;if(S.constraints.collapsible){const H=T.map(ne=>ne.constraints),{collapsedSize:Y=0,panelSize:te=0,minSize:fe=0,pivotIndices:E}=De(T,S,U),X=O??fe;if(je(te,Y)){const ne=N.current.get(S.id),ge=ne!=null&&ne>=X?ne:X,Pe=Oe(T,S)===T.length-1?te-ge:ge-te,oe=He({delta:Pe,initialLayout:U,panelConstraints:H,pivotIndices:E,prevLayout:U,trigger:"imperative-api"});ut(U,oe)||(x(oe),w.current.layout=oe,R&&R(oe),Ie(T,oe,j.current))}}},[]),F=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{panelSize:U}=De(R,S,O);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,O)=>{const{panelDataArray:R}=w.current,U=Oe(R,S);return Kl({defaultSize:O,dragState:p,layout:b,panelData:R,panelIndex:U})},[p,b]),P=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),T===!0&&je(H,U)},[]),W=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:H}=De(R,S,O);return V(H!=null,`Panel size not found for panel "${S.id}"`),!T||Me(H,U)>0},[]),A=k.useCallback(S=>{const{panelDataArray:O}=w.current;O.push(S),O.sort((R,U)=>{const T=R.order,H=U.order;return T==null&&H==null?0:T==null?-1:H==null?1:T-H}),w.current.panelDataArrayChanged=!0,y()},[y]);Fe(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:O,storage:R}=C.current,{layout:U,panelDataArray:T}=w.current;let H=null;if(S){const te=Gl(S,T,R);te&&(N.current=new Map(Object.entries(te.expandToSizes)),H=te.layout)}H==null&&(H=ql({panelDataArray:T}));const Y=dn({layout:H,panelConstraints:T.map(te=>te.constraints)});an(U,Y)||(x(Y),w.current.layout=Y,O&&O(Y),Ie(T,Y,j.current))}}),Fe(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let O=!1;const R=m.current;return R&&window.getComputedStyle(R,null).getPropertyValue("direction")==="rtl"&&(O=!0),function(T){T.preventDefault();const H=m.current;if(!H)return()=>null;const{direction:Y,dragState:te,id:fe,keyboardResizeBy:E,onLayout:X}=C.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Ne}=te??{},Pe=Zn(fe,S,H);let oe=Hl(T,S,Y,te,E,H);const at=Y==="horizontal";at&&O&&(oe=-oe);const Et=ge.map(Dt=>Dt.constraints),Ee=He({delta:oe,initialLayout:Ne??ne,panelConstraints:Et,pivotIndices:Pe,prevLayout:ne,trigger:Bn(T)?"keyboard":"mouse-or-touch"}),ct=!ut(ne,Ee);(Hn(T)||qn(T))&&z.current!=oe&&(z.current=oe,!ct&&oe!==0?at?Lt(S,oe<0?Wn:Gn):Lt(S,oe<0?Vn:Xn):Lt(S,0)),ct&&(x(Ee),w.current.layout=Ee,X&&X(Ee),Ie(ge,Ee,j.current))}},[]),B=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current,H=T.map(ne=>ne.constraints),{panelSize:Y,pivotIndices:te}=De(T,S,U);V(Y!=null,`Panel size not found for panel "${S.id}"`);const E=Oe(T,S)===T.length-1?Y-O:O-Y,X=He({delta:E,initialLayout:U,panelConstraints:H,pivotIndices:te,prevLayout:U,trigger:"imperative-api"});ut(U,X)||(x(X),w.current.layout=X,R&&R(X),Ie(T,X,j.current))},[]),G=k.useCallback((S,O)=>{const{layout:R,panelDataArray:U}=w.current,{collapsedSize:T=0,collapsible:H}=O,{collapsedSize:Y=0,collapsible:te,maxSize:fe=100,minSize:E=0}=S.constraints,{panelSize:X}=De(U,S,R);X!=null&&(H&&te&&je(X,T)?je(T,Y)||B(S,Y):X<E?B(S,E):X>fe&&B(S,fe))},[B]),q=k.useCallback((S,O)=>{const{direction:R}=C.current,{layout:U}=w.current;if(!m.current)return;const T=Nt(S,m.current);V(T,`Drag handle element not found for id "${S}"`);const H=es(R,O);g({dragHandleId:S,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),ee=k.useCallback(()=>{g(null)},[]),J=k.useCallback(S=>{const{panelDataArray:O}=w.current,R=Oe(O,S);R>=0&&(O.splice(R,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,y())},[y]),L=k.useMemo(()=>({collapsePanel:M,direction:s,dragState:p,expandPanel:I,getPanelSize:F,getPanelStyle:v,groupId:h,isPanelCollapsed:P,isPanelExpanded:W,reevaluatePanelConstraints:G,registerPanel:A,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:ee,unregisterPanel:J,panelGroupElement:m.current}),[M,p,s,I,F,v,h,P,W,G,A,_,B,q,ee,J]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(jt.Provider,{value:L},k.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const rs=k.forwardRef((n,e)=>k.createElement(ls,{...n,forwardedRef:e}));ls.displayName="PanelGroup";rs.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function Ql({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){k.useEffect(()=>{if(n||t==null||s==null)return;const r=Nt(e,s);if(r==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(),t(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(se.groupId);V(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Yn(a,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function is({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=k.useRef(null),y=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=k.useContext(jt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:z,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:I}=j,F=Vt(r),[v,P]=k.useState("inactive"),[W,A]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Fe(()=>{G.current.state=v}),k.useEffect(()=>{if(t)B(null);else{const L=C(F);B(()=>L)}},[t,F,C]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;k.useEffect(()=>{if(t||_==null)return;const L=x.current;V(L,"Element ref not attached");let K=!1;return Il(F,L,N,{coarse:q,fine:ee},(O,R,U)=>{if(!R){P("inactive");return}switch(O){case"down":{P("drag"),K=!1,V(U,'Expected event to be defined for "down" action'),w(F,U);const{onDragging:T,onPointerDown:H}=y.current;T?.(!0),H?.();break}case"move":{const{state:T}=G.current;K=!0,T!=="drag"&&P("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{P("hover"),M();const{onClick:T,onDragging:H,onPointerUp:Y}=y.current;H?.(!1),Y?.(),K||T?.();break}}})},[q,N,t,ee,C,F,_,w,M]),Ql({disabled:t,handleId:F,resizeHandler:_,panelGroupElement:I});const J={touchAction:"none",userSelect:"none"};return k.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{A(!1),i?.()},onFocus:()=>{A(!0),c?.()},ref:x,role:"separator",style:{...J,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:z,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":W?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:F,[se.resizeHandleState]:v})}is.displayName="PanelResizeHandle";function Yl(n){const e=$.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=l.jsx(rs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function fn(n){const e=$.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(Un,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function Zl(n){const e=$.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ce("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Ds,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=l.jsx(is,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function Jl(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function er(n){if(Jl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function tr(n){try{return decodeURIComponent(n)}catch{return n}}function nr(n){return er(n),encodeURIComponent(n)}function sr(n){return`.deco/blocks/${nr(n)}.json`}function Lo(n){return`/${sr(n)}`}const Oo=1e4,lr=3;function Ut(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function Yt(n){return n.startsWith("/")?n.slice(1):n}function bt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function rr(n){const e=bt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ro(n,e){const t=e.replace(/^\/+|\/+$/g,"");return bt(t?`${n==="/"?"":n}/${t}`:n)}function Ao(n,e){return e==="directory"?n:rr(n)}function _o(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function ir(n){const e=Yt(n);return e?e.split("/").filter(Boolean).length:0}function Uo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Bo(n,e){return ir(n)>=lr&&!e.has(n)}function Ho(n,e,t=[]){const s=Yt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function qo(n){const e=Yt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return tr(s)}function or(n){if(!n)return"plaintext";const e=n.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 Ko(n){const e=Ut(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Wo(n,e=[]){const t={children:[]},s=i=>{const a=Ut(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of n){const a=Ut(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(bt(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function ar(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...ar(r.children,e,t+1)));return s}function Go(n){return n.split(`
2
2
  `).map(e=>{const t=e.match(/^\d+\t(.*)/);return t?t[1]:e}).join(`
3
3
  `)}ol.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function cr(n){const e=$.c(11),{value:t,filename:s}=n,[r]=Ns(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=or(s),e[0]=s,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(zs,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=e[2];let d,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},f={top:12,bottom:12},e[3]=d,e[4]=f):(d=e[3],f=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:f,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let h;return e[6]!==s||e[7]!==o||e[8]!==a||e[9]!==t?(h=l.jsx(al,{path:s,language:o,value:t,theme:a,loading:c,options:u},s),e[6]=s,e[7]=o,e[8]=a,e[9]=t,e[10]=h):h=e[10],h}function os(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const dr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),ur=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),hn=2*1024*1024;function fr(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return dr.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=hn?"markdown":"download":ur.has(t)&&e<=hn?"text":"download"}function as(){const n=$.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(ae,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(ae,{className:"h-3 w-full"}),l.jsx(ae,{className:"h-3 w-5/6"}),l.jsx(ae,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function cs(n){const e=$.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=l.jsx(Se,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=r):r=e[1];let i;e[2]!==t.filename?(i=l.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let o;e[4]!==t.size?(o=os(t.size),e[4]=t.size,e[5]=o):o=e[5];const a=s?` · ${s}`:"";let c;e[6]!==o||e[7]!==a?(c=l.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,a]}),e[6]=o,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=l.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 f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Ve,{size:14}),e[12]=f):f=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=l.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:l.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[f,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let h;return e[16]!==r||e[17]!==d||e[18]!==u?(h=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,d,u]})}),e[16]=r,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function mn(n){const e=$.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=Q.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const u=await fetch(t.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:a,isPending:c,isError:d}=ie(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(as,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==t?(u=l.jsx(cs,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=u):u=e[9],u}if(s){const u=`file-preview-${t.key}`;let h;return e[10]!==a||e[11]!==u?(h=l.jsx("div",{className:"h-full overflow-y-auto",children:l.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:l.jsx(Kt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==a||e[14]!==t.filename?(f=l.jsx(cr,{value:a,filename:t.filename}),e[13]=a,e[14]=t.filename,e[15]=f):f=e[15],f}function ds(n){const e=$.c(15),{file:t}=n;switch(fr(t.filename,t.size)){case"image":{let r;return e[0]!==t.downloadUrl||e[1]!==t.filename?(r=l.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:l.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==t.downloadUrl||e[4]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==t.downloadUrl||e[7]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==t?(r=l.jsx(mn,{file:t,markdown:!0}),e[9]=t,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==t?(r=l.jsx(mn,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=l.jsx(cs,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function hr(n){const e=$.c(40),{readUrl:t,editor:s,downloadName:r,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const a=o;let c;e[2]!==s?(c=s.deckDetected&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:l.jsx(cl,{size:14})})}),l.jsx(we,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==a?(d=()=>window.open(a,"_blank","noopener"),e[4]=a,e[5]=d):d=e[5];let f;e[6]!==a?(f=l.jsx("span",{className:"truncate",children:a}),e[6]=a,e[7]=f):f=e[7];let u;e[8]!==a||e[9]!==d||e[10]!==f?(u=l.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:a,children:f}),e[8]=a,e[9]=d,e[10]=f,e[11]=u):u=e[11];let h;e[12]!==s.agentUpdated||e[13]!==s.reload?(h=s.agentUpdated&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[l.jsx(Sn,{size:12}),"Agent updated — reload"]})}),l.jsx(we,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=h):h=e[14];let m;e[15]!==s.saving?(m=s.saving&&l.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=m):m=e[16];let p;e[17]!==s?(p=s.deckDetected&&s.writable&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ce(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:l.jsx(Ts,{size:14})})}),l.jsx(we,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=p):p=e[18];let g;e[19]!==a||e[20]!==r||e[21]!==s.deckDetected?(g=s.deckDetected?l.jsxs(tt,{children:[l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",children:l.jsx(Ve,{size:14})})}),l.jsxs(st,{align:"end",children:[l.jsxs(be,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[l.jsx(Fs,{size:14}),"Export as PDF"]}),l.jsx(be,{asChild:!0,children:l.jsxs("a",{href:a,download:r,children:[l.jsx(Ms,{size:14}),"Download HTML"]})})]})]}):l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:l.jsx("a",{href:a,download:r,children:l.jsx(Ve,{size:14})})})}),l.jsx(we,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=r,e[21]=s.deckDetected,e[22]=g):g=e[22];let b;e[23]!==a?(b=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=b):b=e[24];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(In,{size:14}),e[25]=x):x=e[25];let y;e[26]!==b?(y=l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:x})}),e[26]=b,e[27]=y):y=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=l.jsx(we,{side:"bottom",children:"Open in new tab"}),e[28]=j):j=e[28];let N;e[29]!==y?(N=l.jsxs(ye,{children:[y,j]}),e[29]=y,e[30]=N):N=e[30];let z;return e[31]!==N||e[32]!==c||e[33]!==u||e[34]!==h||e[35]!==m||e[36]!==p||e[37]!==g||e[38]!==i?(z=l.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,h,m,p,g,N,i]}),e[31]=N,e[32]=c,e[33]=u,e[34]=h,e[35]=m,e[36]=p,e[37]=g,e[38]=i,e[39]=z):z=e[39],z}const Re=1;function mr(n){if(typeof n!="object"||n===null||n.v!==Re||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class ze extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function us(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function pr(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?us(t).length:null}function xr(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new ze("no <deck-viewer> element in source","no-viewer");const r=us(s),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new ze(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new ze("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>=r.length)throw new ze(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ze(`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 ze("replace html has no root element","bad-op");o.replaceWith(t.importNode(d,!0));break}default:throw new ze(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
4
4
  `:""}${t.documentElement.outerHTML}
@@ -1 +1 @@
1
- import{r as n,aV as V,dL as R,cM as Ee,cO as ke,cQ as Se,F as xe,dM as P}from"./index-B7kSY61k.js";var de=1,Ie=.9,Ce=.8,Re=.17,Y=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Y&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Y>h&&(h=x*Y)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var L='[cmdk-group=""]',_='[cmdk-group-items=""]',Ve='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),j=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=V(),ne=V(),N=V(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${L}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(L))==null?void 0:o.querySelector(Ve))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function Q(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function X(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(L),a;for(;s&&!a;)s=e>0?Ne(s,L):Te(s,L),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):X(e)}let ie=()=>Q(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):X(1)},ce=e=>{e.preventDefault(),e.metaKey?Q(0):e.altKey?ue(-1):X(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),Q(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Le=n.forwardRef((t,l)=>{var r,f;let u=V(),c=n.useRef(null),d=n.useContext(ge),v=j(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:P(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),Pe=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=V(),v=n.useRef(null),b=n.useRef(null),i=V(),p=j(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:P(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:P(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:P(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:P(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Xe=Object.assign(be,{List:Be,Item:Le,Input:Oe,Group:Pe,Separator:je,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=j();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Xe as _};
1
+ import{r as n,aV as V,dL as R,cM as Ee,cO as ke,cQ as Se,F as xe,dM as P}from"./index-Ik6zkERJ.js";var de=1,Ie=.9,Ce=.8,Re=.17,Y=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Y&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Y>h&&(h=x*Y)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var L='[cmdk-group=""]',_='[cmdk-group-items=""]',Ve='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),j=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=V(),ne=V(),N=V(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${L}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(L))==null?void 0:o.querySelector(Ve))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function Q(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function X(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(L),a;for(;s&&!a;)s=e>0?Ne(s,L):Te(s,L),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):X(e)}let ie=()=>Q(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):X(1)},ce=e=>{e.preventDefault(),e.metaKey?Q(0):e.altKey?ue(-1):X(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),Q(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Le=n.forwardRef((t,l)=>{var r,f;let u=V(),c=n.useRef(null),d=n.useContext(ge),v=j(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:P(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),Pe=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=V(),v=n.useRef(null),b=n.useRef(null),i=V(),p=j(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:P(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:P(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:P(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:P(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Xe=Object.assign(be,{List:Be,Item:Le,Input:Oe,Group:Pe,Separator:je,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=j();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Xe as _};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BhIirjqg.js","assets/index-Ik6zkERJ.js","assets/index-7TDdNLfx.css","assets/ArrowUp-DXroVtAg.js","assets/chat-context-BqiO_ud6.js","assets/autosend-rEtdyPJl.js","assets/hooks-B_rAYDFL.js","assets/use-mcp-client-CP7qMg-g.js","assets/constants-D_FQAPnt.js","assets/auth-BycXMDKl.js","assets/decopilot-sse-pool-CnBfws5s.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/studio-tools-CJ1qXLRQ.js","assets/use-virtual-mcp-GzQ6w5B1.js","assets/use-collections-sw5Xt8dE.js","assets/use-ai-providers-Dnmk-lO7.js","assets/use-decopilot-events-BdKPw4QR.js","assets/tab-id-bb-jjgGv.js","assets/use-organization-settings-BRyaPx6m.js","assets/automation-runs-D7zbPds3.js","assets/select-DLw9Bbw2.js","assets/tooltip-DdhJMVoN.js","assets/Check-ViJHHV5b.js","assets/ChevronDown-2T9NLLct.js","assets/ChevronUp-oFldj9t-.js","assets/useInfiniteQuery-R3kdoktJ.js","assets/use-infinite-scroll-QNOZWN_N.js","assets/use-connection-CfmOoRLh.js","assets/card-wf-UHTad.js","assets/sidebar-o-9qTA9g.js","assets/LayoutLeft-DKNdCPN2.js","assets/use-mobile-DT7Qd1-H.js","assets/X-CHXaqXsc.js","assets/table-8KFU6cRt.js","assets/empty-state-DjU_mD89.js","assets/use-members-CfYBHF4H.js","assets/use-org-auth-client-iiNYt7Ex.js","assets/use-clock-tick-BhHNoUG2.js","assets/AlertCircle-CNh8Y2gA.js","assets/CheckCircle-DW8MZ-zs.js","assets/Circle-D3F0UCNC.js","assets/agent-icon-nmBGlUc6.js","assets/UserPlus01-H86haTAg.js","assets/Tool01-CxYKUutN.js","assets/Settings02-DTZdTeHB.js","assets/Tool02-Byv70oB8.js","assets/XCircle-Ccn8YDua.js","assets/ArrowUpRight-D1OO7CRV.js","assets/TrendUp01-CG5p18Ol.js","assets/ZapSquare-CN_MaJ_P.js","assets/Users03-BbdstC-h.js","assets/ChevronRight-EVA2m03x.js","assets/Stars02-DSNpbVlo.js","assets/Copy01-X-5ArGYX.js","assets/ZoomOut-DfPc2tWh.js","assets/DotsVertical-CG59EanJ.js","assets/Globe01-bPLFeC2D.js","assets/Eye-B930MDWC.js","assets/FilterLines-CUgANE2m.js","assets/Flag01-IClmXDXP.js","assets/Star01-DGJ33QfV.js","assets/Globe04-DyQ3qiDx.js","assets/SwitchHorizontal01-CXH58TUI.js","assets/HardDrive-Ck18BGl-.js","assets/Key01-BvT3zNsr.js","assets/LinkExternal01-CelmDpah.js","assets/List-oOG_bTMr.js","assets/Monitor01-CPSAV7CH.js","assets/Sun-Ci6vBuLI.js","assets/Package-BjCGp9Ef.js","assets/Palette-CGemj5Yo.js","assets/Play-CpCxQ7Hp.js","assets/Plus-CEccEcjc.js","assets/SearchLg-Cevt_mi8.js","assets/SearchMd-CtPGxQE2.js","assets/Shield01-Deanj_pp.js","assets/Stars01-BuQv9Nru.js","assets/Trash01-BWrHYSuv.js","assets/Upload01-pevnFhia.js","assets/User01-BAF92Yr8.js","assets/Users01-JpsfyEwx.js","assets/XClose-Dpys7n5b.js","assets/Zap-Ddgm0cuS.js","assets/use-automations-JVzsyC2f.js","assets/useSuspenseInfiniteQuery-EWKAsREn.js","assets/badge-K0mAu7uF.js","assets/checkbox-DeFGudwa.js","assets/command-D---hRfb.js","assets/index-Dl07YVcW.js","assets/dialog-laQ2oCMx.js","assets/popover-BebmVziF.js","assets/avatar-C7zJcORn.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/use-copy-kiWkIfMK.js","assets/file-type-icon-CkXs3ZeU.js","assets/monaco-editor-DwQspoTG.js","assets/index-Clp7yP00.js","assets/index-3NcqjP1f.js","assets/shell-layout-DyDhWfiQ.js","assets/alert-dialog-DZluuzF8.js","assets/required-auth-layout-BdWCW2sl.js","assets/use-org-sso-keIGVJCM.js","assets/integration-icon-C7SxM0gi.js","assets/use-navigate-to-agent-dMeVnEPo.js","assets/reusable-new-chat-CouMjkYR.js","assets/AreaChart-BO4t3gkW.js","assets/form-CefOye_J.js","assets/label-D674p2Id.js","assets/input-CiHDP3FJ.js","assets/drawer-DTtHmBzX.js","assets/collection-search-BHgCLnDP.js","assets/tabs-Dv_rxt-A.js","assets/toggle-group-b4Ow5LmQ.js","assets/use-deco-credits-CA383Hd-.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-Ge7rfugC.js","assets/use-registry-connections-HNV6UD8e.js","assets/extract-connection-data-CtoIcIIT.js","assets/collection-tabs-BQUepQoJ.js","assets/textarea-COstjKKv.js","assets/connection-form-helpers-CxG5VsMa.js","assets/authenticate-and-persist-oauth-DU6hZEpI.js","assets/mcp-oauth-CvwOlMGS.js","assets/connect-desktop-dialog-egpvY9_G.js","assets/select-model-BDMEm9YL.js","assets/skeleton-DNGEAqud.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-AU2G2ZXx.js","assets/dropdown-menu-CQd3xkCq.js","assets/index-De4QvuR-.js","assets/toolbar-C52yl4YA.js","assets/use-debounced-value-CuWehg24.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-DOx53m9f.js","assets/use-mcp-tools-X_tD2E-s.js","assets/use-capability-B9-VwtvV.js","assets/tools-list-Vt46amfU.js","assets/switch-DsheLfyl.js","assets/use-debounced-autosave-BcL2zLvT.js","assets/index-DKdl__m2.js","assets/search-input-Bg3P5wrN.js","assets/github-repo-picker-BnDDC8oU.js","assets/github-installations-ChFezl8I.js","assets/use-secrets-BgBJa15E.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/companions-core-GsK_0FA5.js","assets/toolbar-icon-button-CKWJfFt2.js","assets/calendar-DMnBAz-d.js","assets/use-file-configs-C8D8fPdC.js","assets/automation-list-row-B7HItKQw.js","assets/index-DDGTF8rc.css"])))=>i.map(i=>d[i]);
2
+ import{c as A,l as D,j as s,r as z,C as kt,n as Ut,m as qt,d as yt,K as It,B as qe,aX as os,i as cs}from"./index-Ik6zkERJ.js";import{g as re}from"./get-initials-D-f_fDFw.js";import{A as ie}from"./avatar-C7zJcORn.js";import{d as Tt,i as ds,t as ms,e as us,f as it,a as Qe,s as fs,b as Gt,g as xs,c as ps}from"./UserPlus01-H86haTAg.js";import{i as gs}from"./List-oOG_bTMr.js";import{s as zt}from"./Plus-CEccEcjc.js";import{e as hs}from"./constants-D_FQAPnt.js";import{u as Kt}from"./use-members-CfYBHF4H.js";import{u as At}from"./studio-tools-CJ1qXLRQ.js";import{t as bs,S as Ye}from"./decopilot-sse-pool-CnBfws5s.js";import{u as js}from"./use-decopilot-events-BdKPw4QR.js";import{a as Ns}from"./format-time-BnbuEtat.js";import{i as Qt}from"./AlertCircle-CNh8Y2gA.js";import{i as Yt}from"./CheckCircle-DW8MZ-zs.js";import{i as ys}from"./Circle-D3F0UCNC.js";import{s as vs}from"./Eye-B930MDWC.js";import{a as Ss,d as Cs,e as _s}from"./dialog-laQ2oCMx.js";import{a as ot,c as ct,d as Ge,D as dt}from"./dropdown-menu-CQd3xkCq.js";import{P as vt,a as St,b as Ct}from"./popover-BebmVziF.js";import{b as Ht,C as Vt,a as ue,e as mt,d as Xt,c as Jt}from"./command-D---hRfb.js";import{C as ws}from"./calendar-DMnBAz-d.js";import{i as Ds}from"./ChevronRight-EVA2m03x.js";import{n as ks}from"./LinkExternal01-CelmDpah.js";import{s as _t}from"./User01-BAF92Yr8.js";import{i as Ot}from"./X-CHXaqXsc.js";import{g as Is,b as Ts,e as zs,f as As,a as $s,D as Es}from"./drawer-DTtHmBzX.js";import{t as $t}from"./ChevronDown-2T9NLLct.js";import{i as Wt}from"./FilterLines-CUgANE2m.js";import{s as Os}from"./Flag01-IClmXDXP.js";import{u as Bs}from"./shell-layout-DyDhWfiQ.js";function me(t){const e=A.c(8),{size:l,className:a}=t,n=l===void 0?16:l;let r;e[0]!==n?(r={width:n,height:n},e[0]=n,e[1]=r):r=e[1];let i;e[2]!==a?(i=D("shrink-0 rounded-full object-cover",a),e[2]=a,e[3]=i):i=e[3];let o;return e[4]!==n||e[5]!==r||e[6]!==i?(o=s.jsx("img",{src:hs,alt:"Super Agent",width:n,height:n,style:r,className:i}),e[4]=n,e[5]=r,e[6]=i,e[7]=o):o=e[7],o}const Bt=()=>0;function Fs(t){const{orgSlug:e,enabled:l=!0,onUpdate:a}=t,n=z.useRef(a);n.current=a;const r=z.useRef(null),i=z.useRef(l),o=z.useRef(e);(!r.current||i.current!==l||o.current!==e)&&(i.current=l,o.current=e,r.current=f=>{if(!l||!e)return()=>{};const m=x=>{let c;try{c=JSON.parse(x.data)}catch{return}c.data&&n.current(c.data),f()};return bs.subscribe(e,m)}),z.useSyncExternalStore(r.current,Bt,Bt)}function Rs(){const t=A.c(25),{org:e,locator:l}=kt(),a=At(),n=Ut();let r;t[0]!==l?(r=It.taskBoardItems(l),t[0]=l,t[1]=r):r=t[1];const i=r;let o;t[2]!==a?(o=async()=>(await a.call("TASK_BOARD_ITEM_LIST",{})).items,t[2]=a,t[3]=o):o=t[3];let d;t[4]!==i||t[5]!==o?(d={queryKey:i,queryFn:o},t[4]=i,t[5]=o,t[6]=d):d=t[6];const f=qt(d);let m;t[7]!==n||t[8]!==i?(m=g=>{n.setQueryData(i,N=>{const b=N??[],j=g;return b.some(y=>y.id===j.id)?b.map(y=>y.id===j.id?j:y):[j,...b]})},t[7]=n,t[8]=i,t[9]=m):m=t[9];let x;t[10]!==e.slug||t[11]!==m?(x={orgSlug:e.slug,onUpdate:m},t[10]=e.slug,t[11]=m,t[12]=x):x=t[12],Fs(x);let c;t[13]!==n||t[14]!==i?(c=g=>{const N=g.subject,b=g.data.status;n.setQueryData(i,j=>j?.map(y=>y.threads.some(v=>v.threadId===N)?{...y,threads:y.threads.map(v=>v.threadId===N?{...v,status:b}:v)}:y))},t[13]=n,t[14]=i,t[15]=c):c=t[15];let u;t[16]!==e.slug||t[17]!==c?(u={orgSlug:e.slug,onTaskStatus:c},t[16]=e.slug,t[17]=c,t[18]=u):u=t[18],js(u);let p;t[19]!==f.data?(p=f.data??[],t[19]=f.data,t[20]=p):p=t[20];let h;return t[21]!==f.error||t[22]!==f.isLoading||t[23]!==p?(h={items:p,isLoading:f.isLoading,error:f.error},t[21]=f.error,t[22]=f.isLoading,t[23]=p,t[24]=h):h=t[24],h}function Ps(){const t=A.c(30),{locator:e}=kt(),l=At(),a=Ut();let n;t[0]!==e?(n=It.taskBoardItems(e),t[0]=e,t[1]=n):n=t[1];const r=n;let i;t[2]!==a||t[3]!==r?(i=()=>a.invalidateQueries({queryKey:r}),t[2]=a,t[3]=r,t[4]=i):i=t[4];const o=i;let d;t[5]!==l?(d=y=>l.call("TASK_BOARD_ITEM_CREATE",y),t[5]=l,t[6]=d):d=t[6];let f;t[7]!==o||t[8]!==d?(f={mutationFn:d,onSuccess:o},t[7]=o,t[8]=d,t[9]=f):f=t[9];const m=yt(f);let x;t[10]!==l?(x=y=>l.call("TASK_BOARD_ITEM_UPDATE",y),t[10]=l,t[11]=x):x=t[11];let c,u;t[12]!==a||t[13]!==r?(c=async y=>{await a.cancelQueries({queryKey:r});const v=a.getQueryData(r);return a.setQueryData(r,w=>w?.map($=>$.id===y.id?{...$,...y}:$)),{previous:v}},u=(y,v,w)=>{w?.previous&&a.setQueryData(r,w.previous)},t[12]=a,t[13]=r,t[14]=c,t[15]=u):(c=t[14],u=t[15]);let p;t[16]!==o||t[17]!==x||t[18]!==c||t[19]!==u?(p={mutationFn:x,onMutate:c,onError:u,onSettled:o},t[16]=o,t[17]=x,t[18]=c,t[19]=u,t[20]=p):p=t[20];const h=yt(p);let g;t[21]!==l?(g=y=>l.call("TASK_BOARD_ITEM_DELETE",{id:y}),t[21]=l,t[22]=g):g=t[22];let N;t[23]!==o||t[24]!==g?(N={mutationFn:g,onSuccess:o},t[23]=o,t[24]=g,t[25]=N):N=t[25];const b=yt(N);let j;return t[26]!==m||t[27]!==b||t[28]!==h?(j={create:m,update:h,remove:b},t[26]=m,t[27]=b,t[28]=h,t[29]=j):j=t[29],j}function wt(t){return t.threads.some(e=>e.status==="requires_action")}function Zt(t){return t.threads[0]}const es=["triage","todo","in_progress","in_review","done"],ae={triage:{label:"Backlog",icon:Qt,iconClassName:"text-muted-foreground"},todo:{label:"To Do",icon:ys,iconClassName:"text-muted-foreground"},in_progress:{label:"In Progress",icon:Tt,iconClassName:"text-blue-500"},in_review:{label:"In Review",icon:vs,iconClassName:"text-amber-500"},done:{label:"Done",icon:Yt,iconClassName:"text-green-600"}},ts=["none","low","medium","high","urgent"],oe={none:{label:"No priority",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50"},low:{label:"Low",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40"},medium:{label:"Medium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500"},high:{label:"High",flagClassName:"text-orange-500",dotClassName:"bg-orange-500"},urgent:{label:"Urgent",flagClassName:"text-red-500",dotClassName:"bg-red-500"}};function Ms(t){const e=A.c(10),{locator:l}=kt(),a=At();let n;e[0]!==t||e[1]!==l?(n=It.taskBoardItemPrs(l,t??""),e[0]=t,e[1]=l,e[2]=n):n=e[2];const r=!!t;let i;e[3]!==t||e[4]!==a?(i=async()=>(await a.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:t})).prs,e[3]=t,e[4]=a,e[5]=i):i=e[5];let o;return e[6]!==n||e[7]!==r||e[8]!==i?(o={queryKey:n,enabled:r,queryFn:i},e[6]=n,e[7]=r,e[8]=i,e[9]=o):o=e[9],qt(o)}function Ls(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59).toISOString()}function Ft(t){if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e}const Us=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),Ke="inline-flex h-9 items-center gap-2 rounded-lg border border-border px-3 text-sm font-medium text-foreground transition-colors hover:bg-muted sm:border-transparent",qs={failed:{label:"Error",className:"text-red-600",icon:xs},requires_action:{label:"Needs input",className:"text-amber-600",icon:Gt},in_progress:{label:"Running",className:"text-blue-600",icon:Tt,spin:!0},completed:{label:"Completed",className:"text-green-600",icon:Yt},expired:{label:"Expired",className:"text-muted-foreground",icon:Qt}};function Gs(t){const e=A.c(157),{open:l,onClose:a,item:n,defaultStatus:r,onSubmit:i,onDelete:o,onOpenThread:d,isSaving:f}=t,{data:m}=Kt();let x;e[0]!==m?.data?.members?(x=m?.data?.members??[],e[0]=m?.data?.members,e[1]=x):x=e[1];const c=x,[u,p]=z.useState(n?.title??""),[h,g]=z.useState(n?.description??""),[N,b]=z.useState(n?.status??r??"triage"),[j,y]=z.useState(n?.priority??"medium"),[v,w]=z.useState(n?.assigneeId??null),$=n?.dueDate;let B;e[2]!==$?(B=Ft($),e[2]=$,e[3]=B):B=e[3];const[k,K]=z.useState(B),[q,M]=z.useState(!1),[L,F]=z.useState(!1);let R;e[4]!==r||e[5]!==n?.assigneeId||e[6]!==n?.description||e[7]!==n?.dueDate||e[8]!==n?.priority||e[9]!==n?.status||e[10]!==n?.title?(R=()=>{p(n?.title??""),g(n?.description??""),b(n?.status??r??"triage"),y(n?.priority??"medium"),w(n?.assigneeId??null),K(Ft(n?.dueDate))},e[4]=r,e[5]=n?.assigneeId,e[6]=n?.description,e[7]=n?.dueDate,e[8]=n?.priority,e[9]=n?.status,e[10]=n?.title,e[11]=R):R=e[11];const U=R;let I;e[12]!==a||e[13]!==U?(I=()=>{a(),U()},e[12]=a,e[13]=U,e[14]=I):I=e[14];const P=I;let G;e[15]!==v||e[16]!==h||e[17]!==k||e[18]!==i||e[19]!==j||e[20]!==N||e[21]!==u?(G=()=>{const S=u.trim();S&&i({title:S,description:h.trim()||null,status:N,priority:j,assigneeId:v,dueDate:k?Ls(k):null})},e[15]=v,e[16]=h,e[17]=k,e[18]=i,e[19]=j,e[20]=N,e[21]=u,e[22]=G):G=e[22];const T=G,C=v===Ye;let Q;if(e[23]!==v||e[24]!==c){let S;e[26]!==v?(S=H=>H.userId===v,e[26]=v,e[27]=S):S=e[27],Q=c.find(S),e[23]=v,e[24]=c,e[25]=Q}else Q=e[25];const O=Q;let ee;e[28]!==n||e[29]!==c?(ee=n?.assignedBy?c.find(S=>S.userId===n.assignedBy):void 0,e[28]=n,e[29]=c,e[30]=ee):ee=e[30];const E=ee,te=ae[N].icon;let V;e[31]!==n?(V=n?Zt(n):void 0,e[31]=n,e[32]=V):V=e[32];const ce=V;let X;e[33]!==P?(X=S=>!S&&P(),e[33]=P,e[34]=X):X=e[34];const se=n?"Edit task":"New task";let le;e[35]!==se?(le=s.jsx(Ss,{className:"sr-only",children:se}),e[35]=se,e[36]=le):le=e[36];let ne;e[37]===Symbol.for("react.memo_cache_sentinel")?(ne=s.jsx(Ot,{size:16}),e[37]=ne):ne=e[37];let Y;e[38]!==P?(Y=s.jsx("button",{type:"button","aria-label":"Close",onClick:P,className:"absolute right-2.5 top-2.5 z-10 flex size-10 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:ne}),e[38]=P,e[39]=Y):Y=e[39];let J;e[40]===Symbol.for("react.memo_cache_sentinel")?(J=S=>p(S.target.value),e[40]=J):J=e[40];let W;e[41]!==u?(W=s.jsx("input",{value:u,onChange:J,placeholder:"Task title...",autoFocus:!0,className:"w-full border-0 bg-transparent text-xl font-medium text-foreground outline-none placeholder:text-foreground/30"}),e[41]=u,e[42]=W):W=e[42];let Z;e[43]===Symbol.for("react.memo_cache_sentinel")?(Z=S=>g(S.target.value),e[43]=Z):Z=e[43];let _;e[44]!==h?(_=s.jsx("textarea",{value:h,onChange:Z,placeholder:"Describe a task for an agent...",className:"min-h-[96px] w-full flex-1 resize-none border-0 bg-transparent text-[15px] leading-relaxed text-foreground outline-none placeholder:text-muted-foreground/50 sm:min-h-[120px]"}),e[44]=h,e[45]=_):_=e[45];let de;e[46]!==E||e[47]!==O||e[48]!==d||e[49]!==ce?(de=ce&&s.jsx(Ks,{thread:ce,startedBy:E??O,onOpen:d}),e[46]=E,e[47]=O,e[48]=d,e[49]=ce,e[50]=de):de=e[50];let fe;e[51]!==n?(fe=n?.id&&s.jsx(Hs,{itemId:n.id}),e[51]=n,e[52]=fe):fe=e[52];let xe;e[53]!==W||e[54]!==_||e[55]!==de||e[56]!==fe?(xe=s.jsxs("div",{className:"flex min-w-0 flex-col gap-6 p-6 sm:flex-1 sm:overflow-y-auto sm:p-8",children:[W,_,de,fe]}),e[53]=W,e[54]=_,e[55]=de,e[56]=fe,e[57]=xe):xe=e[57];let He;e[58]===Symbol.for("react.memo_cache_sentinel")?(He=s.jsx("span",{className:"hidden px-3 text-sm text-muted-foreground sm:block",children:"Properties"}),e[58]=He):He=e[58];const xt=ae[N];let pe;e[59]!==te||e[60]!==xt.iconClassName?(pe=s.jsx(te,{size:16,className:xt.iconClassName}),e[59]=te,e[60]=xt.iconClassName,e[61]=pe):pe=e[61];const pt=ae[N];let ge;e[62]!==pe||e[63]!==pt.label?(ge=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",className:Ke,children:[pe,pt.label]})}),e[62]=pe,e[63]=pt.label,e[64]=ge):ge=e[64];let Ve;e[65]===Symbol.for("react.memo_cache_sentinel")?(Ve=s.jsx(ct,{align:"start",className:"w-44",children:es.map(S=>{const H=ae[S].icon;return s.jsxs(Ge,{onSelect:()=>b(S),className:"gap-2",children:[s.jsx(H,{size:16,className:ae[S].iconClassName}),ae[S].label]},S)})}),e[65]=Ve):Ve=e[65];let he;e[66]!==ge?(he=s.jsxs(dt,{children:[ge,Ve]}),e[66]=ge,e[67]=he):he=e[67];const gt=j==="none"&&"text-muted-foreground";let be;e[68]!==gt?(be=D(Ke,gt),e[68]=gt,e[69]=be):be=e[69];let je;e[70]!==j?(je=j==="none"?s.jsxs(s.Fragment,{children:[s.jsx(ds,{size:16}),"Set priority"]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:D("size-2 rounded-full",oe[j].dotClassName)}),oe[j].label]}),e[70]=j,e[71]=je):je=e[71];let Ne;e[72]!==be||e[73]!==je?(Ne=s.jsx(ot,{asChild:!0,children:s.jsx("button",{type:"button",className:be,children:je})}),e[72]=be,e[73]=je,e[74]=Ne):Ne=e[74];let Xe;e[75]===Symbol.for("react.memo_cache_sentinel")?(Xe=s.jsx(ct,{align:"start",className:"w-40",children:ts.map(S=>s.jsxs(Ge,{onSelect:()=>y(S),children:[s.jsx("span",{className:D("size-2 rounded-full",oe[S].dotClassName)}),oe[S].label]},S))}),e[75]=Xe):Xe=e[75];let ye;e[76]!==Ne?(ye=s.jsxs(dt,{children:[Ne,Xe]}),e[76]=Ne,e[77]=ye):ye=e[77];const ht=!v&&"text-muted-foreground";let ve;e[78]!==ht?(ve=D(Ke,ht),e[78]=ht,e[79]=ve):ve=e[79];let Se;e[80]!==E||e[81]!==O||e[82]!==C?(Se=C&&E?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"hidden items-center gap-2 sm:flex",children:[s.jsx(ie,{url:E.user?.image??void 0,fallback:re(E.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:E.user?.name??"Super Agent"})]}),s.jsxs("span",{className:"flex items-center gap-2 sm:hidden",children:[s.jsxs("span",{className:"inline-flex items-center",children:[s.jsx(ie,{url:E.user?.image??void 0,fallback:re(E.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),s.jsx(me,{size:16,className:"ring-2 ring-background"})]}),"Super Agent"]})]}):C?s.jsxs(s.Fragment,{children:[s.jsx(me,{size:16}),"Super Agent"]}):O?s.jsxs(s.Fragment,{children:[s.jsx(ie,{url:O.user?.image??void 0,fallback:re(O.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:O.user?.name??"Unassigned"})]}):s.jsxs(s.Fragment,{children:[s.jsx(ms,{size:16,className:"text-muted-foreground"}),"Assign"]}),e[80]=E,e[81]=O,e[82]=C,e[83]=Se):Se=e[83];let Ce;e[84]!==ve||e[85]!==Se?(Ce=s.jsx(vt,{asChild:!0,children:s.jsx("button",{type:"button",className:ve,children:Se})}),e[84]=ve,e[85]=Se,e[86]=Ce):Ce=e[86];let Je;e[87]===Symbol.for("react.memo_cache_sentinel")?(Je=s.jsx(Ht,{placeholder:"Assign to…",className:"h-9"}),e[87]=Je):Je=e[87];let We;e[88]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(Vt,{children:"No members found."}),e[88]=We):We=e[88];let Ze;e[89]===Symbol.for("react.memo_cache_sentinel")?(Ze=()=>{w(Ye),F(!1)},e[89]=Ze):Ze=e[89];let et;e[90]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsxs(ue,{value:"Super Agent",onSelect:Ze,className:"gap-2",children:[s.jsx(me,{size:16}),s.jsx("span",{className:"truncate",children:"Super Agent"})]}),e[90]=et):et=e[90];let tt;e[91]===Symbol.for("react.memo_cache_sentinel")?(tt=()=>{w(null),F(!1)},e[91]=tt):tt=e[91];let st;e[92]===Symbol.for("react.memo_cache_sentinel")?(st=s.jsxs(mt,{children:[et,s.jsxs(ue,{value:"Unassigned",onSelect:tt,className:"gap-2",children:[s.jsx(_t,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"truncate",children:"Unassigned"})]})]}),e[92]=st):st=e[92];let _e;if(e[93]!==c){let S;e[95]===Symbol.for("react.memo_cache_sentinel")?(S=H=>s.jsxs(ue,{value:H.user?.name??H.userId,onSelect:()=>{w(H.userId),F(!1)},className:"gap-2",children:[s.jsx(ie,{url:H.user?.image??void 0,fallback:re(H.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:H.user?.name??H.userId})]},H.userId),e[95]=S):S=e[95],_e=c.map(S),e[93]=c,e[94]=_e}else _e=e[94];let we;e[96]!==_e?(we=s.jsx(St,{align:"start",className:"w-56 p-0",children:s.jsxs(Xt,{children:[Je,s.jsxs(Jt,{children:[We,st,s.jsx(mt,{heading:"Members",children:_e})]})]})}),e[96]=_e,e[97]=we):we=e[97];let De;e[98]!==L||e[99]!==Ce||e[100]!==we?(De=s.jsxs(Ct,{open:L,onOpenChange:F,children:[Ce,we]}),e[98]=L,e[99]=Ce,e[100]=we,e[101]=De):De=e[101];let ke;e[102]!==E||e[103]!==C?(ke=C&&E&&s.jsxs("div",{className:"relative mt-1.5 hidden items-center pl-5 sm:flex",children:[s.jsx("span",{className:"absolute -top-1.5 left-5 h-[calc(50%+0.375rem)] w-2.5 rounded-bl-md border-b border-l border-border"}),s.jsxs("span",{className:D(Ke,"pointer-events-none"),children:[s.jsx(me,{size:16}),"Super Agent"]})]}),e[102]=E,e[103]=C,e[104]=ke):ke=e[104];let Ie;e[105]!==De||e[106]!==ke?(Ie=s.jsxs("div",{className:"flex flex-col",children:[De,ke]}),e[105]=De,e[106]=ke,e[107]=Ie):Ie=e[107];const bt=!k&&"text-muted-foreground";let Te;e[108]!==bt?(Te=D(Ke,bt),e[108]=bt,e[109]=Te):Te=e[109];let lt;e[110]===Symbol.for("react.memo_cache_sentinel")?(lt=s.jsx(Qe,{size:16,className:"text-muted-foreground"}),e[110]=lt):lt=e[110];let ze;e[111]!==k?(ze=k?Us.format(k):"Due date",e[111]=k,e[112]=ze):ze=e[112];let Ae;e[113]!==k?(Ae=k&&s.jsx("span",{role:"button",tabIndex:0,"aria-label":"Clear due date",className:"-mr-1 ml-0.5 flex size-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground",onClick:S=>{S.stopPropagation(),K(null)},onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),S.stopPropagation(),K(null))},children:s.jsx(Ot,{size:12})}),e[113]=k,e[114]=Ae):Ae=e[114];let $e;e[115]!==Te||e[116]!==ze||e[117]!==Ae?($e=s.jsx(vt,{asChild:!0,children:s.jsxs("button",{type:"button",className:Te,children:[lt,ze,Ae]})}),e[115]=Te,e[116]=ze,e[117]=Ae,e[118]=$e):$e=e[118];const jt=k??void 0;let nt;e[119]===Symbol.for("react.memo_cache_sentinel")?(nt=S=>{K(S??null),S&&M(!1)},e[119]=nt):nt=e[119];let Ee;e[120]!==jt?(Ee=s.jsx(St,{className:"w-auto p-0",align:"start",children:s.jsx(ws,{mode:"single",selected:jt,onSelect:nt,initialFocus:!0})}),e[120]=jt,e[121]=Ee):Ee=e[121];let Oe;e[122]!==q||e[123]!==$e||e[124]!==Ee?(Oe=s.jsxs(Ct,{open:q,onOpenChange:M,children:[$e,Ee]}),e[122]=q,e[123]=$e,e[124]=Ee,e[125]=Oe):Oe=e[125];let Be;e[126]!==he||e[127]!==ye||e[128]!==Ie||e[129]!==Oe?(Be=s.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-4 border-t border-border p-6 sm:w-[220px] sm:border-t-0 sm:border-l sm:px-6 sm:py-10",children:[He,s.jsxs("div",{className:"flex flex-wrap gap-2 sm:flex-col",children:[he,ye,Ie,Oe]})]}),e[126]=he,e[127]=ye,e[128]=Ie,e[129]=Oe,e[130]=Be):Be=e[130];let Fe;e[131]!==xe||e[132]!==Be?(Fe=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto sm:flex-row sm:overflow-hidden",children:[xe,Be]}),e[131]=xe,e[132]=Be,e[133]=Fe):Fe=e[133];let Re;e[134]!==n||e[135]!==o?(Re=n&&o?s.jsx(qe,{variant:"ghost",size:"icon","aria-label":"Delete task",className:"size-10 text-muted-foreground hover:text-destructive",onClick:o,children:s.jsx(fs,{size:16})}):s.jsx("span",{}),e[134]=n,e[135]=o,e[136]=Re):Re=e[136];let Pe;e[137]!==f||e[138]!==u?(Pe=!u.trim()||f,e[137]=f,e[138]=u,e[139]=Pe):Pe=e[139];let at;e[140]===Symbol.for("react.memo_cache_sentinel")?(at=s.jsx(zt,{size:16}),e[140]=at):at=e[140];const Nt=n?"Save":"Create task";let Me;e[141]!==T||e[142]!==Pe||e[143]!==Nt?(Me=s.jsxs(qe,{size:"sm",disabled:Pe,onClick:T,children:[at,Nt]}),e[141]=T,e[142]=Pe,e[143]=Nt,e[144]=Me):Me=e[144];let Le;e[145]!==Re||e[146]!==Me?(Le=s.jsxs("div",{className:"flex h-16 items-center justify-between border-t border-border px-4",children:[Re,Me]}),e[145]=Re,e[146]=Me,e[147]=Le):Le=e[147];let Ue;e[148]!==le||e[149]!==Y||e[150]!==Fe||e[151]!==Le?(Ue=s.jsxs(Cs,{className:"flex max-h-[90vh] flex-col gap-0 overflow-hidden rounded-2xl p-0 sm:h-[85vh] sm:max-h-[640px] sm:max-w-[850px]",closeButtonClassName:"hidden",children:[le,Y,Fe,Le]}),e[148]=le,e[149]=Y,e[150]=Fe,e[151]=Le,e[152]=Ue):Ue=e[152];let rt;return e[153]!==l||e[154]!==X||e[155]!==Ue?(rt=s.jsx(_s,{open:l,onOpenChange:X,children:Ue}),e[153]=l,e[154]=X,e[155]=Ue,e[156]=rt):rt=e[156],rt}function Ks(t){const e=A.c(14),{thread:l,startedBy:a,onOpen:n}=t,r=l.status?qs[l.status]:null,i=l.lastMessage??l.title;let o,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(me,{size:16}),d=s.jsx("span",{className:"text-sm text-foreground",children:"Super Agent"}),e[0]=o,e[1]=d):(o=e[0],d=e[1]);let f;e[2]!==a?(f=a&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-sm text-muted-foreground/50",children:"started by"}),s.jsx(ie,{url:a.user?.image??void 0,fallback:re(a.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate text-sm text-foreground",children:a.user?.name??"someone"})]}),e[2]=a,e[3]=f):f=e[3];let m;e[4]!==f?(m=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[o,d,f]}),e[4]=f,e[5]=m):m=e[5];let x;e[6]!==i||e[7]!==n||e[8]!==r||e[9]!==l?(x=r&&s.jsxs("button",{type:"button",disabled:!n,onClick:()=>n?.(l),className:"flex items-center gap-2 border-t border-border px-4 py-2 text-left transition-colors enabled:hover:bg-muted disabled:cursor-default",children:[s.jsxs("span",{className:D("flex items-center gap-1.5",r.className),children:[s.jsx(r.icon,{size:16,className:D(r.spin&&"animate-spin")}),s.jsx("span",{className:"text-sm",children:r.label})]}),i&&s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:i}),n&&s.jsx(Ds,{size:16,className:"ml-auto shrink-0 text-muted-foreground"})]}),e[6]=i,e[7]=n,e[8]=r,e[9]=l,e[10]=x):x=e[10];let c;return e[11]!==m||e[12]!==x?(c=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[m,x]}),e[11]=m,e[12]=x,e[13]=c):c=e[13],c}function Qs(t){return t.merged?{label:"Merged",className:"text-purple-600",icon:us}:t.state==="closed"?{label:"Closed",className:"text-red-600",icon:it}:t.draft?{label:"Draft",className:"text-muted-foreground",icon:it}:{label:"Open",className:"text-green-600",icon:it}}function Ys(t){const e=A.c(38),{pr:l}=t;let a,n,r,i,o,d,f,m;if(e[0]!==l){n=Qs(l);let v;e[9]!==l.body?(v=l.body?.trim(),e[9]=l.body,e[10]=v):v=e[10],a=v,o=l.url,d="_blank",f="noreferrer",m="flex flex-col gap-1 border-t border-border px-4 py-2 transition-colors hover:bg-muted",i="flex items-center gap-2",r=D("flex items-center gap-1.5",n.className),e[0]=l,e[1]=a,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=d,e[7]=f,e[8]=m}else a=e[1],n=e[2],r=e[3],i=e[4],o=e[5],d=e[6],f=e[7],m=e[8];let x;e[11]!==n.icon?(x=s.jsx(n.icon,{size:16}),e[11]=n.icon,e[12]=x):x=e[12];let c;e[13]!==n.label?(c=s.jsx("span",{className:"text-sm",children:n.label}),e[13]=n.label,e[14]=c):c=e[14];let u;e[15]!==r||e[16]!==x||e[17]!==c?(u=s.jsxs("span",{className:r,children:[x,c]}),e[15]=r,e[16]=x,e[17]=c,e[18]=u):u=e[18];const p=l.title??`${l.repoOwner}/${l.repoName}`;let h;e[19]!==p?(h=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:p}),e[19]=p,e[20]=h):h=e[20];let g;e[21]!==l.number?(g=s.jsxs("span",{className:"shrink-0 text-sm text-muted-foreground",children:["#",l.number]}),e[21]=l.number,e[22]=g):g=e[22];let N;e[23]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ks,{size:16,className:"shrink-0 text-muted-foreground"}),e[23]=N):N=e[23];let b;e[24]!==h||e[25]!==g||e[26]!==i||e[27]!==u?(b=s.jsxs("span",{className:i,children:[u,h,g,N]}),e[24]=h,e[25]=g,e[26]=i,e[27]=u,e[28]=b):b=e[28];let j;e[29]!==a?(j=a?s.jsx("span",{className:"line-clamp-3 whitespace-pre-line text-xs text-muted-foreground",children:a}):null,e[29]=a,e[30]=j):j=e[30];let y;return e[31]!==b||e[32]!==j||e[33]!==o||e[34]!==d||e[35]!==f||e[36]!==m?(y=s.jsxs("a",{href:o,target:d,rel:f,className:m,children:[b,j]}),e[31]=b,e[32]=j,e[33]=o,e[34]=d,e[35]=f,e[36]=m,e[37]=y):y=e[37],y}function Hs(t){const e=A.c(5),{itemId:l}=t,{data:a,isLoading:n}=Ms(l);if(!n&&(!a||a.length===0))return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[s.jsx(it,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm text-foreground",children:"Pull requests"})]}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a?a.map(Vs):s.jsxs("div",{className:"flex items-center gap-2 border-t border-border px-4 py-2 text-sm text-muted-foreground",children:[s.jsx(Tt,{size:16,className:"animate-spin"}),s.jsx("span",{children:"Loading…"})]}),e[1]=a,e[2]=i):i=e[2];let o;return e[3]!==i?(o=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[r,i]}),e[3]=i,e[4]=o):o=e[4],o}function Vs(t){return s.jsx(Ys,{pr:t},t.url)}const Dt="__unassigned__",ut={assignee:null,priority:null,due:null};function Xs(t){return t.assignee!==null||t.priority!==null||t.due!==null}function Js(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const Ws=864e5;function Zs(t,e){const l=new Date(t),a=new Date(e);return l.getFullYear()===a.getFullYear()&&l.getMonth()===a.getMonth()&&l.getDate()===a.getDate()}function el(t,e){if(e.assignee!==null){if(e.assignee===Dt){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const l=new Date(t.dueDate).getTime(),a=Date.now();if(e.due==="overdue"&&l>=a||e.due==="today"&&!Zs(l,a)||e.due==="week"&&(l<a||l>a+7*Ws))return!1}return!0}const Rt=[{value:"overdue",label:"Overdue"},{value:"today",label:"Due today"},{value:"week",label:"Due this week"},{value:"none",label:"No due date"}];function ft(t,e=!1){return D("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function tl(t){const e=A.c(62),{value:l,members:a,onChange:n,block:r}=t,[i,o]=z.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(_t,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let f=d,m="Assignee";if(l===Dt)m="Unassigned";else if(l===Ye){let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(me,{size:14}),e[1]=T):T=e[1],f=T,m="Super Agent"}else if(l){let T,C,Q,O;if(e[2]!==a||e[3]!==l){let E;e[8]!==l?(E=te=>te.userId===l,e[8]=l,e[9]=E):E=e[9],C=a.find(E),T=ie,Q=C?.user?.image??void 0,O=re(C?.user?.name),e[2]=a,e[3]=l,e[4]=T,e[5]=C,e[6]=Q,e[7]=O}else T=e[4],C=e[5],Q=e[6],O=e[7];let ee;e[10]!==T||e[11]!==Q||e[12]!==O?(ee=s.jsx(T,{url:Q,fallback:O,shape:"circle",size:"2xs"}),e[10]=T,e[11]=Q,e[12]=O,e[13]=ee):ee=e[13],f=ee,m=C?.user?.name??"Member"}let x;e[14]!==n?(x=T=>{n(T),o(!1)},e[14]=n,e[15]=x):x=e[15];const c=x,u=l!==null;let p;e[16]!==r||e[17]!==u?(p=ft(u,r),e[16]=r,e[17]=u,e[18]=p):p=e[18];const h=p,g=r&&"ml-auto";let N;e[19]!==g?(N=D("shrink-0 opacity-60",g),e[19]=g,e[20]=N):N=e[20];const b=N;let j;e[21]!==m?(j=s.jsx("span",{className:"max-w-[10rem] truncate",children:m}),e[21]=m,e[22]=j):j=e[22];let y;e[23]!==b?(y=s.jsx($t,{size:12,className:b}),e[23]=b,e[24]=y):y=e[24];let v;e[25]!==f||e[26]!==j||e[27]!==y||e[28]!==h?(v=s.jsx(vt,{asChild:!0,children:s.jsxs("button",{type:"button",className:h,children:[f,j,y]})}),e[25]=f,e[26]=j,e[27]=y,e[28]=h,e[29]=v):v=e[29];let w;e[30]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ht,{placeholder:"Filter by assignee…",className:"h-9"}),e[30]=w):w=e[30];let $;e[31]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Vt,{children:"No members found."}),e[31]=$):$=e[31];let B;e[32]!==c?(B=s.jsx(ue,{value:"Anyone",onSelect:()=>c(null),children:"Anyone"}),e[32]=c,e[33]=B):B=e[33];let k;e[34]!==c?(k=()=>c(Dt),e[34]=c,e[35]=k):k=e[35];let K;e[36]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(_t,{size:16,className:"text-muted-foreground"}),e[36]=K):K=e[36];let q;e[37]!==k?(q=s.jsxs(ue,{value:"Unassigned",onSelect:k,className:"gap-2",children:[K,"Unassigned"]}),e[37]=k,e[38]=q):q=e[38];let M;e[39]!==c?(M=()=>c(Ye),e[39]=c,e[40]=M):M=e[40];let L;e[41]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(me,{size:16}),e[41]=L):L=e[41];let F;e[42]!==M?(F=s.jsxs(ue,{value:"Super Agent",onSelect:M,className:"gap-2",children:[L,"Super Agent"]}),e[42]=M,e[43]=F):F=e[43];let R;e[44]!==B||e[45]!==q||e[46]!==F?(R=s.jsxs(mt,{children:[B,q,F]}),e[44]=B,e[45]=q,e[46]=F,e[47]=R):R=e[47];let U;if(e[48]!==a||e[49]!==c){let T;e[51]!==c?(T=C=>s.jsxs(ue,{value:C.user?.name??C.userId,onSelect:()=>c(C.userId),className:"gap-2",children:[s.jsx(ie,{url:C.user?.image??void 0,fallback:re(C.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:C.user?.name??C.userId})]},C.userId),e[51]=c,e[52]=T):T=e[52],U=a.map(T),e[48]=a,e[49]=c,e[50]=U}else U=e[50];let I;e[53]!==U?(I=s.jsx(mt,{heading:"Members",children:U}),e[53]=U,e[54]=I):I=e[54];let P;e[55]!==R||e[56]!==I?(P=s.jsx(St,{align:"start",className:"w-56 p-0",children:s.jsxs(Xt,{children:[w,s.jsxs(Jt,{children:[$,R,I]})]})}),e[55]=R,e[56]=I,e[57]=P):P=e[57];let G;return e[58]!==i||e[59]!==P||e[60]!==v?(G=s.jsxs(Ct,{open:i,onOpenChange:o,children:[v,P]}),e[58]=i,e[59]=P,e[60]=v,e[61]=G):G=e[61],G}function sl(t){const e=A.c(23),{value:l,onChange:a,block:n}=t,r=l!==null;let i;e[0]!==n||e[1]!==r?(i=ft(r,n),e[0]=n,e[1]=r,e[2]=i):i=e[2];const o=i,d=n&&"ml-auto";let f;e[3]!==d?(f=D("shrink-0 opacity-60",d),e[3]=d,e[4]=f):f=e[4];const m=f;let x;e[5]!==l?(x=l?s.jsx("span",{className:D("size-2 shrink-0 rounded-full",oe[l].dotClassName)}):s.jsx(Os,{size:14,className:"shrink-0"}),e[5]=l,e[6]=x):x=e[6];const c=l?oe[l].label:"Priority";let u;e[7]!==m?(u=s.jsx($t,{size:12,className:m}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==x||e[10]!==c||e[11]!==u||e[12]!==o?(p=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",className:o,children:[x,c,u]})}),e[9]=x,e[10]=c,e[11]=u,e[12]=o,e[13]=p):p=e[13];let h,g;e[14]!==a?(g=s.jsx(Ge,{onSelect:()=>a(null),children:"Any priority"}),h=ts.map(j=>s.jsxs(Ge,{onSelect:()=>a(j),className:"gap-2",children:[s.jsx("span",{className:D("size-2 rounded-full",oe[j].dotClassName)}),oe[j].label]},j)),e[14]=a,e[15]=h,e[16]=g):(h=e[15],g=e[16]);let N;e[17]!==h||e[18]!==g?(N=s.jsxs(ct,{align:"start",className:"w-40",children:[g,h]}),e[17]=h,e[18]=g,e[19]=N):N=e[19];let b;return e[20]!==N||e[21]!==p?(b=s.jsxs(dt,{children:[p,N]}),e[20]=N,e[21]=p,e[22]=b):b=e[22],b}function ll(t){const e=A.c(27),{value:l,onChange:a,block:n}=t;let r;e[0]!==l?(r=Rt.find($=>$.value===l)?.label,e[0]=l,e[1]=r):r=e[1];const i=r,o=l!==null;let d;e[2]!==n||e[3]!==o?(d=ft(o,n),e[2]=n,e[3]=o,e[4]=d):d=e[4];const f=d,m=n&&"ml-auto";let x;e[5]!==m?(x=D("shrink-0 opacity-60",m),e[5]=m,e[6]=x):x=e[6];const c=x;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Qe,{size:14,className:"shrink-0"}),e[7]=u):u=e[7];const p=i??"Due date";let h;e[8]!==c?(h=s.jsx($t,{size:12,className:c}),e[8]=c,e[9]=h):h=e[9];let g;e[10]!==p||e[11]!==h||e[12]!==f?(g=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,children:[u,p,h]})}),e[10]=p,e[11]=h,e[12]=f,e[13]=g):g=e[13];let N;e[14]!==a?(N=()=>a(null),e[14]=a,e[15]=N):N=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Qe,{size:16,className:"text-muted-foreground"}),e[16]=b):b=e[16];let j;e[17]!==N?(j=s.jsxs(Ge,{onSelect:N,className:"gap-2",children:[b,"Any time"]}),e[17]=N,e[18]=j):j=e[18];let y;e[19]!==a?(y=Rt.map($=>{const B=$.value==="overdue";return s.jsxs(Ge,{onSelect:()=>a($.value),className:D("gap-2",B&&"text-destructive"),children:[s.jsx(Qe,{size:16,className:D("shrink-0",B?"text-destructive":"text-muted-foreground")}),$.label]},$.value)}),e[19]=a,e[20]=y):y=e[20];let v;e[21]!==j||e[22]!==y?(v=s.jsxs(ct,{align:"start",className:"w-44",children:[j,y]}),e[21]=j,e[22]=y,e[23]=v):v=e[23];let w;return e[24]!==v||e[25]!==g?(w=s.jsxs(dt,{children:[g,v]}),e[24]=v,e[25]=g,e[26]=w):w=e[26],w}function ss(t){const e=A.c(26),{filters:l,members:a,onChange:n,block:r}=t;let i;e[0]!==l||e[1]!==n?(i=u=>n({...l,assignee:u}),e[0]=l,e[1]=n,e[2]=i):i=e[2];let o;e[3]!==r||e[4]!==l.assignee||e[5]!==a||e[6]!==i?(o=s.jsx(tl,{block:r,value:l.assignee,members:a,onChange:i}),e[3]=r,e[4]=l.assignee,e[5]=a,e[6]=i,e[7]=o):o=e[7];let d;e[8]!==l||e[9]!==n?(d=u=>n({...l,priority:u}),e[8]=l,e[9]=n,e[10]=d):d=e[10];let f;e[11]!==r||e[12]!==l.priority||e[13]!==d?(f=s.jsx(sl,{block:r,value:l.priority,onChange:d}),e[11]=r,e[12]=l.priority,e[13]=d,e[14]=f):f=e[14];let m;e[15]!==l||e[16]!==n?(m=u=>n({...l,due:u}),e[15]=l,e[16]=n,e[17]=m):m=e[17];let x;e[18]!==r||e[19]!==l.due||e[20]!==m?(x=s.jsx(ll,{block:r,value:l.due,onChange:m}),e[18]=r,e[19]=l.due,e[20]=m,e[21]=x):x=e[21];let c;return e[22]!==o||e[23]!==f||e[24]!==x?(c=s.jsxs(s.Fragment,{children:[o,f,x]}),e[22]=o,e[23]=f,e[24]=x,e[25]=c):c=e[25],c}function nl(t){const e=A.c(11),{filters:l,members:a,onChange:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Wt,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==l||e[2]!==a||e[3]!==n?(i=s.jsx(ss,{filters:l,members:a,onChange:n}),e[1]=l,e[2]=a,e[3]=n,e[4]=i):i=e[4];let o;e[5]!==l||e[6]!==n?(o=Xs(l)&&s.jsx("button",{type:"button",onClick:()=>n(ut),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:"Clear"}),e[5]=l,e[6]=n,e[7]=o):o=e[7];let d;return e[8]!==i||e[9]!==o?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r,i,o]}),e[8]=i,e[9]=o,e[10]=d):d=e[10],d}function al(t){const e=A.c(26),{filters:l,members:a,onChange:n}=t,[r,i]=z.useState(!1),o=Js(l),d=o>0;let f;e[0]!==d?(f=ft(d),e[0]=d,e[1]=f):f=e[1];const m=f;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Wt,{size:14,className:"shrink-0"}),e[2]=x):x=e[2];let c;e[3]!==o?(c=o>0&&s.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:o}),e[3]=o,e[4]=c):c=e[4];let u;e[5]!==c||e[6]!==m?(u=s.jsx(Is,{asChild:!0,children:s.jsxs("button",{type:"button",className:m,children:[x,"Filters",c]})}),e[5]=c,e[6]=m,e[7]=u):u=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ts,{className:"px-4 pt-4 text-base font-medium text-foreground",children:"Filters"}),e[8]=p):p=e[8];let h;e[9]!==l||e[10]!==a||e[11]!==n?(h=s.jsx("div",{className:"flex flex-col gap-2 p-4",children:s.jsx(ss,{block:!0,filters:l,members:a,onChange:n})}),e[9]=l,e[10]=a,e[11]=n,e[12]=h):h=e[12];let g;e[13]!==o||e[14]!==n?(g=o>0&&s.jsx(qe,{variant:"outline",className:"flex-1",onClick:()=>n(ut),children:"Clear all"}),e[13]=o,e[14]=n,e[15]=g):g=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(zs,{asChild:!0,children:s.jsx(qe,{className:"flex-1",children:"Done"})}),e[16]=N):N=e[16];let b;e[17]!==g?(b=s.jsxs(As,{className:"flex-row gap-2",children:[g,N]}),e[17]=g,e[18]=b):b=e[18];let j;e[19]!==b||e[20]!==h?(j=s.jsxs($s,{className:"p-0",children:[p,h,b]}),e[19]=b,e[20]=h,e[21]=j):j=e[21];let y;return e[22]!==r||e[23]!==j||e[24]!==u?(y=s.jsxs(Es,{open:r,onOpenChange:i,direction:"bottom",children:[u,j]}),e[22]=r,e[23]=j,e[24]=u,e[25]=y):y=e[25],y}const Pt=380,rl=90,Mt=5,il="cubic-bezier(0.22, 0.61, 0.36, 1)",ol=8;function cl(t,e){const l=z.useRef(new Map);z.useLayoutEffect(()=>{const a=t.current;if(!a)return;const n=a.querySelectorAll("[data-flip-id]"),r=l.current,i=new Map,o=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,d=[];for(const c of n){const u=c.dataset.flipId;if(!u)continue;const p=c.getBoundingClientRect();i.set(u,p);const h=r.get(u);if(!h)continue;const g=h.left-p.left,N=h.top-p.top;(g||N)&&d.push({el:c,dx:g,dy:N,lane:Math.abs(g)>ol})}if(l.current=i,o||d.length===0)return;for(const c of d){const u=c.lane?` rotate(${c.dx>0?Mt:-Mt}deg)`:"";c.el.style.transition="none",c.el.style.transform=`translate(${c.dx}px, ${c.dy}px)${u}`,c.lane&&(c.el.style.zIndex="10")}let f=0;const m=[],x=requestAnimationFrame(()=>{for(const c of d){const u=c.lane?f++*rl:0;c.el.style.transition=`transform ${Pt}ms ${il} ${u}ms`,c.el.style.transform="",m.push(window.setTimeout(()=>{c.el.style.transition="",c.el.style.transform="",c.el.style.zIndex=""},Pt+u+30))}});return()=>{cancelAnimationFrame(x);for(const c of m)clearTimeout(c)}},[e,t])}os(()=>import("./index-BhIirjqg.js").then(t=>t.aV),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152])).catch(()=>{});function dl(){const t=A.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:s.jsx("div",{className:"h-full p-0.5 pt-0.25",children:s.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:s.jsx(is,{})})})}),t[0]=e):e=t[0],e}const ml=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function ul(t){const e=new Date(t),l=e.getTime()<Date.now();return{label:ml.format(e),overdue:l}}const Et="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function ls(){const t=A.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=D(Et,"border-amber-500/30 text-amber-600"),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("span",{className:e,title:"The agent is waiting for your input",children:[s.jsx(Gt,{size:14}),"Needs input"]}),t[1]=l):l=t[1],l}function ns(t){const e=A.c(7),{priority:l}=t,a=oe[l];let n;e[0]!==a.dotClassName?(n=D("size-2 rounded-full",a.dotClassName),e[0]=a.dotClassName,e[1]=n):n=e[1];let r;e[2]!==n?(r=s.jsx("span",{className:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a.label||e[5]!==r?(i=s.jsxs("span",{className:Et,children:[r,a.label]}),e[4]=a.label,e[5]=r,e[6]=i):i=e[6],i}function as(t){const e=A.c(7),{iso:l}=t;let a,n;if(e[0]!==l){const{label:o,overdue:d}=ul(l);a=o,n=D(Et,d&&"border-destructive/30 text-destructive"),e[0]=l,e[1]=a,e[2]=n}else a=e[1],n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Qe,{size:14}),e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==n?(i=s.jsxs("span",{className:n,children:[r,a]}),e[4]=a,e[5]=n,e[6]=i):i=e[6],i}function rs(t){const e=A.c(11),{item:l,assignee:a,assignedBy:n}=t;if(l.assigneeId===Ye){const r=n?.user?.name?`Assigned to Super Agent by ${n.user.name}`:"Assigned to Super Agent";let i;e[0]!==n?(i=n&&s.jsx(ie,{url:n.user?.image??void 0,fallback:re(n.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),e[0]=n,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(me,{size:16,className:"ring-2 ring-background"}),e[2]=o):o=e[2];let d;return e[3]!==r||e[4]!==i?(d=s.jsxs("span",{className:"inline-flex items-center",title:r,children:[i,o]}),e[3]=r,e[4]=i,e[5]=d):d=e[5],d}if(a){const r=a.user?.image??void 0,i=a.user?.name;let o;e[6]!==i?(o=re(i),e[6]=i,e[7]=o):o=e[7];let d;return e[8]!==r||e[9]!==o?(d=s.jsx(ie,{url:r,fallback:o,shape:"circle",size:"2xs"}),e[8]=r,e[9]=o,e[10]=d):d=e[10],d}return null}function is(){const t=A.c(64),{items:e,isLoading:l}=Rs(),a=Ps(),{data:n}=Kt();let r,i;t[0]!==n?.data?.members?(r=n?.data?.members??[],i=new Map(r.map(fl)),t[0]=n?.data?.members,t[1]=r,t[2]=i):(r=t[1],i=t[2]);const o=i,[d,f]=z.useState("board"),[m,x]=z.useState(ut),[c,u]=z.useState(!1),[p,h]=z.useState(null),[g,N]=z.useState(null),{setTaskId:b}=Bs();let j,y,v,w;if(t[3]!==a||t[4]!==m||t[5]!==l||t[6]!==e||t[7]!==d||t[8]!==o||t[9]!==r){w=Symbol.for("react.early_return_sentinel");e:{let I;t[14]!==m?(I=_=>el(_,m),t[14]=m,t[15]=I):I=t[15];const P=e.filter(I);let G;t[16]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{h(null),N(null),u(!0)},t[16]=G):G=t[16];const T=G;let C;t[17]===Symbol.for("react.memo_cache_sentinel")?(C=_=>{h(null),N(_),u(!0)},t[17]=C):C=t[17];const Q=C;let O;t[18]===Symbol.for("react.memo_cache_sentinel")?(O=_=>{h(_),u(!0)},t[18]=O):O=t[18];const E=O;if(l&&e.length===0){let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"flex flex-1 items-center justify-center",children:s.jsx(cs,{size:20,className:"animate-spin text-muted-foreground"})}),t[19]=_):_=t[19],w=_;break e}j="mx-auto flex min-h-0 w-full max-w-[1680px] flex-1 flex-col";let te;t[20]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:"Tasks"}),t[20]=te):te=t[20];let V;t[21]!==m||t[22]!==e.length||t[23]!==r?(V=e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sm:hidden",children:s.jsx(al,{filters:m,members:r,onChange:x})}),s.jsx("div",{className:"hidden sm:block",children:s.jsx(nl,{filters:m,members:r,onChange:x})})]}),t[21]=m,t[22]=e.length,t[23]=r,t[24]=V):V=t[24];const ce=d==="list";let X;t[25]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f("list"),t[25]=X):X=t[25];let se;t[26]!==ce?(se=s.jsx(Lt,{active:ce,onClick:X,icon:gs,label:"List"}),t[26]=ce,t[27]=se):se=t[27];const le=d==="board";let ne;t[28]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f("board"),t[28]=ne):ne=t[28];let Y;t[29]!==le?(Y=s.jsx(Lt,{active:le,onClick:ne,icon:ps,label:"Board"}),t[29]=le,t[30]=Y):Y=t[30];let J;t[31]!==se||t[32]!==Y?(J=s.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[se,Y]}),t[31]=se,t[32]=Y,t[33]=J):J=t[33];let W;t[34]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsxs(qe,{size:"sm",onClick:T,children:[s.jsx(zt,{size:16}),"New task"]}),t[34]=W):W=t[34];let Z;t[35]!==J?(Z=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[J,W]}),t[35]=J,t[36]=Z):Z=t[36],t[37]!==V||t[38]!==Z?(y=s.jsxs("div",{className:"flex flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[te,s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[V,Z]})]}),t[37]=V,t[38]=Z,t[39]=y):y=t[39],v=e.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:"No tasks yet. Start one with New task."})}):P.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:["No tasks match these filters.",s.jsx(qe,{variant:"outline",size:"sm",onClick:()=>x(ut),children:"Clear filters"})]})}):d==="board"?s.jsx(xl,{items:P,memberByUserId:o,onOpen:E,onCreate:Q,onMove:(_,de)=>a.update.mutate({id:_,status:de})}):s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:s.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:P.map(_=>s.jsx(hl,{item:_,assignee:_.assigneeId?o.get(_.assigneeId):void 0,assignedBy:_.assignedBy?o.get(_.assignedBy):void 0,onOpen:()=>E(_)},_.id))})})}t[3]=a,t[4]=m,t[5]=l,t[6]=e,t[7]=d,t[8]=o,t[9]=r,t[10]=j,t[11]=y,t[12]=v,t[13]=w}else j=t[10],y=t[11],v=t[12],w=t[13];if(w!==Symbol.for("react.early_return_sentinel"))return w;const $=c?p?.id??`new-${g??"default"}`:"closed";let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=()=>u(!1),t[40]=B):B=t[40];const k=p??void 0,K=g??void 0,q=a.create.isPending||a.update.isPending;let M;t[41]!==a.create||t[42]!==a.update||t[43]!==p?(M=I=>{p?a.update.mutate({id:p.id,...I}):a.create.mutate(I),u(!1)},t[41]=a.create,t[42]=a.update,t[43]=p,t[44]=M):M=t[44];let L;t[45]!==a.remove||t[46]!==p?(L=p?()=>{a.remove.mutate(p.id),u(!1)}:void 0,t[45]=a.remove,t[46]=p,t[47]=L):L=t[47];let F;t[48]!==b?(F=I=>{I.virtualMcpId&&(u(!1),b(I.threadId,I.virtualMcpId,{main:I.hasPreview?"preview":"board"}))},t[48]=b,t[49]=F):F=t[49];let R;t[50]!==c||t[51]!==M||t[52]!==L||t[53]!==F||t[54]!==$||t[55]!==k||t[56]!==K||t[57]!==q?(R=s.jsx(Gs,{open:c,onClose:B,item:k,defaultStatus:K,isSaving:q,onSubmit:M,onDelete:L,onOpenThread:F},$),t[50]=c,t[51]=M,t[52]=L,t[53]=F,t[54]=$,t[55]=k,t[56]=K,t[57]=q,t[58]=R):R=t[58];let U;return t[59]!==j||t[60]!==R||t[61]!==y||t[62]!==v?(U=s.jsxs("div",{className:j,children:[y,v,R]}),t[59]=j,t[60]=R,t[61]=y,t[62]=v,t[63]=U):U=t[63],U}function fl(t){return[t.userId,t]}function Lt(t){const e=A.c(11),{active:l,onClick:a,icon:n,label:r}=t,i=`${r} view`,o=l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[0]!==o?(d=D("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",o),e[0]=o,e[1]=d):d=e[1];let f;e[2]!==n?(f=s.jsx(n,{size:14}),e[2]=n,e[3]=f):f=e[3];let m;return e[4]!==l||e[5]!==r||e[6]!==a||e[7]!==i||e[8]!==d||e[9]!==f?(m=s.jsxs("button",{type:"button",onClick:a,"aria-label":i,"aria-pressed":l,className:d,children:[f,r]}),e[4]=l,e[5]=r,e[6]=a,e[7]=i,e[8]=d,e[9]=f,e[10]=m):m=e[10],m}function xl(t){const e=A.c(11),{items:l,memberByUserId:a,onOpen:n,onCreate:r,onMove:i}=t,[o,d]=z.useState(null),f=z.useRef(null);let m;e[0]!==l?(m=l.map(pl).join(","),e[0]=l,e[1]=m):m=e[1],cl(f,m);let c;e[2]!==l||e[3]!==a||e[4]!==r||e[5]!==i||e[6]!==n||e[7]!==o?(c=es.map(p=>{const h=l.filter(b=>b.status===p),g=ae[p],N=g.icon;return s.jsxs("div",{onDragOver:b=>{b.preventDefault(),d(p)},onDragLeave:b=>{b.currentTarget.contains(b.relatedTarget)||d(null)},onDrop:b=>{b.preventDefault();const j=b.dataTransfer.getData("text/plain");j&&i(j,p),d(null)},className:D("flex w-[300px] shrink-0 flex-col rounded-xl p-1 transition-colors",o===p&&"bg-muted/50"),children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(N,{size:15,className:D("shrink-0",g.iconClassName)}),s.jsx("span",{className:"text-sm font-medium text-foreground",children:g.label}),s.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:h.length}),s.jsx("button",{type:"button","aria-label":`New task in ${g.label}`,title:`New task in ${g.label}`,onClick:()=>r(p),className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:s.jsx(zt,{size:15})})]}),s.jsx("div",{className:"flex min-h-12 flex-col gap-2 pt-1",children:h.map(b=>s.jsx(gl,{item:b,assignee:b.assigneeId?a.get(b.assigneeId):void 0,assignedBy:b.assignedBy?a.get(b.assignedBy):void 0,onOpen:()=>n(b)},b.id))})]},p)}),e[2]=l,e[3]=a,e[4]=r,e[5]=i,e[6]=n,e[7]=o,e[8]=c):c=e[8];let u;return e[9]!==c?(u=s.jsx("div",{ref:f,className:"flex min-h-0 flex-1 gap-3 overflow-x-auto overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:c}),e[9]=c,e[10]=u):u=e[10],u}function pl(t){return`${t.id}:${t.status}`}function gl(t){const e=A.c(29),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,i=ae[l.status],o=i.icon,d=Zt(l)?.lastMessage,f=l.id;let m;e[0]!==l.id?(m=y=>{y.dataTransfer.setData("text/plain",l.id),y.dataTransfer.effectAllowed="move"},e[0]=l.id,e[1]=m):m=e[1];const x=l.title;let c;e[2]!==i.iconClassName?(c=D("mt-px shrink-0",i.iconClassName),e[2]=i.iconClassName,e[3]=c):c=e[3];let u;e[4]!==o||e[5]!==c?(u=s.jsx(o,{size:16,className:c}),e[4]=o,e[5]=c,e[6]=u):u=e[6];let p;e[7]!==l.title?(p=s.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:l.title}),e[7]=l.title,e[8]=p):p=e[8];let h;e[9]!==n||e[10]!==a||e[11]!==l?(h=s.jsx(rs,{item:l,assignee:a,assignedBy:n}),e[9]=n,e[10]=a,e[11]=l,e[12]=h):h=e[12];let g;e[13]!==u||e[14]!==p||e[15]!==h?(g=s.jsxs("div",{className:"flex items-start gap-2",children:[u,p,h]}),e[13]=u,e[14]=p,e[15]=h,e[16]=g):g=e[16];let N;e[17]!==d?(N=d&&s.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:d}),e[17]=d,e[18]=N):N=e[18];let b;e[19]!==l?(b=(wt(l)||l.priority!=="none"||!!l.dueDate)&&s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[wt(l)&&s.jsx(ls,{}),l.priority!=="none"&&s.jsx(ns,{priority:l.priority}),l.dueDate&&s.jsx(as,{iso:l.dueDate})]}),e[19]=l,e[20]=b):b=e[20];let j;return e[21]!==l.id||e[22]!==l.title||e[23]!==r||e[24]!==b||e[25]!==m||e[26]!==g||e[27]!==N?(j=s.jsxs("button",{type:"button",draggable:!0,"data-flip-id":f,onDragStart:m,onClick:r,className:"group flex cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow transition-colors will-change-transform hover:bg-accent/60 active:cursor-grabbing",title:x,children:[g,N,b]}),e[21]=l.id,e[22]=l.title,e[23]=r,e[24]=b,e[25]=m,e[26]=g,e[27]=N,e[28]=j):j=e[28],j}function hl(t){const e=A.c(30),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,i=ae[l.status],o=i.icon;let d;e[0]!==i.iconClassName?(d=D("shrink-0",i.iconClassName),e[0]=i.iconClassName,e[1]=d):d=e[1];let f;e[2]!==o||e[3]!==d?(f=s.jsx(o,{size:16,className:d}),e[2]=o,e[3]=d,e[4]=f):f=e[4];let m;e[5]!==l.title?(m=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:l.title}),e[5]=l.title,e[6]=m):m=e[6];let x;e[7]!==l?(x=wt(l)&&s.jsx(ls,{}),e[7]=l,e[8]=x):x=e[8];let c;e[9]!==l.priority?(c=l.priority!=="none"&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(ns,{priority:l.priority})}),e[9]=l.priority,e[10]=c):c=e[10];let u;e[11]!==l.dueDate?(u=l.dueDate&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(as,{iso:l.dueDate})}),e[11]=l.dueDate,e[12]=u):u=e[12];let p;e[13]!==n||e[14]!==a||e[15]!==l?(p=s.jsx(rs,{item:l,assignee:a,assignedBy:n}),e[13]=n,e[14]=a,e[15]=l,e[16]=p):p=e[16];let h;e[17]!==l.createdAt?(h=Ns(new Date(l.createdAt)),e[17]=l.createdAt,e[18]=h):h=e[18];let g;e[19]!==h?(g=s.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:h}),e[19]=h,e[20]=g):g=e[20];let N;return e[21]!==r||e[22]!==f||e[23]!==m||e[24]!==x||e[25]!==c||e[26]!==u||e[27]!==p||e[28]!==g?(N=s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[f,m,x,c,u,p,g]}),e[21]=r,e[22]=f,e[23]=m,e[24]=x,e[25]=c,e[26]=u,e[27]=p,e[28]=g,e[29]=N):N=e[29],N}const Hl=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:is,default:dl},Symbol.toStringTag,{value:"Module"}));export{oe as P,ae as S,Gs as T,Ps as a,me as b,is as c,Hl as i,Rs as u};