decocms 4.12.2 → 4.12.4
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.
- package/dist/client/assets/{AlertCircle-CoC6NNi4.js → AlertCircle-2NSnJTCG.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-N57ebzBw.js → ArrowUpRight-6VLZtLiB.js} +1 -1
- package/dist/client/assets/{CheckCircle-kHQ2dQaQ.js → CheckCircle-6Zj1I5oD.js} +1 -1
- package/dist/client/assets/{ChevronDown-P5eS_rdB.js → ChevronDown-WM4lml-1.js} +1 -1
- package/dist/client/assets/{ChevronRight-CTea8Vrz.js → ChevronRight-8RVkVs_P.js} +1 -1
- package/dist/client/assets/{ChevronUp-BoULmO5v.js → ChevronUp-Dfx0dVRv.js} +1 -1
- package/dist/client/assets/{DotsVertical-pUzhcHbw.js → DotsVertical-CtRNihkJ.js} +1 -1
- package/dist/client/assets/{Eye-XrixTuLa.js → Eye-BxNRNZ2h.js} +1 -1
- package/dist/client/assets/{FilterLines-JU5CW8t2.js → FilterLines-DRDawszB.js} +1 -1
- package/dist/client/assets/{Globe01-DA12A_gX.js → Globe01-Crsuia4t.js} +1 -1
- package/dist/client/assets/{Globe04-DNnzQTTy.js → Globe04-CwTMh-6d.js} +1 -1
- package/dist/client/assets/{HardDrive-A9TGjU2B.js → HardDrive-C8FjHzIC.js} +1 -1
- package/dist/client/assets/{Key01-C3y_5bqB.js → Key01-BzMxRT38.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CuSrrdEU.js → LayoutLeft-D8gpFwFH.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cwj3iuhi.js → LinkExternal01-BigKmCyN.js} +1 -1
- package/dist/client/assets/{Monitor01-Cb1N7DaM.js → Monitor01-DgBazvpB.js} +1 -1
- package/dist/client/assets/{Palette-B_aebYLe.js → Palette-DIKiYLdc.js} +1 -1
- package/dist/client/assets/{Play-DDWMuBvQ.js → Play-DckokfE8.js} +1 -1
- package/dist/client/assets/{Plus-CqV2jOMI.js → Plus-BYvoY-Jl.js} +1 -1
- package/dist/client/assets/{SearchLg-Dvo924kw.js → SearchLg-C-MkuWK6.js} +1 -1
- package/dist/client/assets/{SearchMd-5ihP7yVQ.js → SearchMd-BjkEh5wr.js} +1 -1
- package/dist/client/assets/{Settings02-iYAu_otv.js → Settings02-D5nBUlpN.js} +1 -1
- package/dist/client/assets/{Shield01-BzDwMZxQ.js → Shield01-CtS-w-IE.js} +1 -1
- package/dist/client/assets/{Star01-BkFl7Mhr.js → Star01-CxoPEIpB.js} +1 -1
- package/dist/client/assets/{Stars01-D1UrqdL4.js → Stars01-cDzx0au0.js} +1 -1
- package/dist/client/assets/{Stars02-COayjfFf.js → Stars02-B_gwpY5v.js} +1 -1
- package/dist/client/assets/{Sun-Brrmn0Wt.js → Sun-0mWoIW6k.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-dqeKRNpy.js → SwitchHorizontal01-xufKqJtC.js} +1 -1
- package/dist/client/assets/{Tool01-BWmMjNUF.js → Tool01-M0dO7AjN.js} +1 -1
- package/dist/client/assets/{Trash01-66NrnGrm.js → Trash01-Bnn1ba8w.js} +1 -1
- package/dist/client/assets/{Upload01-DZiCAA30.js → Upload01-CaD8g_ga.js} +1 -1
- package/dist/client/assets/{User01-BU4AVwNl.js → User01-DH4XNV9C.js} +1 -1
- package/dist/client/assets/{Users01-rcwVvUtr.js → Users01-BJ9WXBI0.js} +1 -1
- package/dist/client/assets/{Users03-DvCgevzn.js → Users03-CJO85vee.js} +1 -1
- package/dist/client/assets/{X-DBy4i4Lp.js → X-DdMyM35W.js} +1 -1
- package/dist/client/assets/{XCircle-IJc8zbrl.js → XCircle-DWNETFXw.js} +1 -1
- package/dist/client/assets/{XClose-CtyL8bYf.js → XClose-CDSThodT.js} +1 -1
- package/dist/client/assets/{Zap-fhgO5dDS.js → Zap-L-M7-mzK.js} +1 -1
- package/dist/client/assets/{ZapSquare-CfbyrH4x.js → ZapSquare-BbN26_6w.js} +1 -1
- package/dist/client/assets/{ZoomOut-C0N4ehtv.js → ZoomOut-DIFj9NHP.js} +1 -1
- package/dist/client/assets/{access-gate-Cp9GeAB2.js → access-gate-62aOui4M.js} +1 -1
- package/dist/client/assets/{add-section-modal-L1hZYDnC.js → add-section-modal-CI2sStNX.js} +1 -1
- package/dist/client/assets/{agent-icon-CWPBFzIp.js → agent-icon-hggbOd0W.js} +1 -1
- package/dist/client/assets/{agents-list-BSN0z_rH.js → agents-list-BhZp0jhU.js} +1 -1
- package/dist/client/assets/{ai-providers-DD1AOaea.js → ai-providers-kbQzm1J9.js} +1 -1
- package/dist/client/assets/{alert-Ddy80ofE.js → alert-CupFN5U7.js} +1 -1
- package/dist/client/assets/{alert-dialog-CNwxdflX.js → alert-dialog-rOXwpbum.js} +1 -1
- package/dist/client/assets/{app-editor-2eTZe4V8.js → app-editor-H54hpt_L.js} +1 -1
- package/dist/client/assets/{auth-DnBe9AUC.js → auth-CJqHT3yg.js} +1 -1
- package/dist/client/assets/{auth-catchall-BX9JI1QT.js → auth-catchall-C9ZD_Jdo.js} +1 -1
- package/dist/client/assets/{auth-entry-BHvc520u.js → auth-entry-BoidZAdm.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BXqARZ71.js → auth-split-layout-BtCWreQ8.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-u3Bd-L7u.js → authenticate-and-persist-oauth-D6DSppZJ.js} +1 -1
- package/dist/client/assets/{automation-list-row-B4HURQxP.js → automation-list-row-B0wPTOuf.js} +1 -1
- package/dist/client/assets/{automation-runs-CqWPoh43.js → automation-runs-BYF8KG5u.js} +1 -1
- package/dist/client/assets/{automations-f7OFHAXD.js → automations-DfxBcx9D.js} +1 -1
- package/dist/client/assets/{avatar-Dx8vsnte.js → avatar-9YLHlpEM.js} +1 -1
- package/dist/client/assets/{badge-BzEWqz_j.js → badge-BPKTmMci.js} +1 -1
- package/dist/client/assets/{block-document-DzMywRI1.js → block-document-BxBhXOlI.js} +1 -1
- package/dist/client/assets/{brand-context-CyctFpS3.js → brand-context-UIztvNN8.js} +1 -1
- package/dist/client/assets/{buckets-DNWd4v4G.js → buckets-CtBJ_4Ks.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Bj5wuN0i.js → bulk-category-panel--OxzdYJ5.js} +1 -1
- package/dist/client/assets/{capability-load-error-BehOb5ja.js → capability-load-error-DUPoxjMw.js} +1 -1
- package/dist/client/assets/{card-go8Ic7Q5.js → card-BdqzqI0N.js} +1 -1
- package/dist/client/assets/{category-editor-DApO1Yn8.js → category-editor-CVK9rd5R.js} +1 -1
- package/dist/client/assets/{chat-context-BvVy1XII.js → chat-context-Dwz2p75z.js} +1 -1
- package/dist/client/assets/{checkbox-D_sfTX5R.js → checkbox-BIYjiqNC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-PaSH5Vkc.js → cli-auth-success-CWWWZLTt.js} +1 -1
- package/dist/client/assets/{collection-detail-BJ1XKRbv.js → collection-detail-DaBIUDlN.js} +1 -1
- package/dist/client/assets/{collection-display-button-gz2ZuERS.js → collection-display-button-C4Iq3rcM.js} +1 -1
- package/dist/client/assets/{collection-search-C001GdqX.js → collection-search-CxtOA3Li.js} +1 -1
- package/dist/client/assets/{collection-tabs-B_vVgFOt.js → collection-tabs-BiodX7Ij.js} +1 -1
- package/dist/client/assets/{command-B1GcRSWc.js → command-Be6_LuEp.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DB5OC1v0.js → commerce-onboarding-BzGTQI6J.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DKo4CQJQ.js → connect-desktop-dialog-CruzENAe.js} +1 -1
- package/dist/client/assets/{connection-card-Bx0N6sI4.js → connection-card-CP3-L6I6.js} +1 -1
- package/dist/client/assets/{connection-detail-Bbou6ZUd.js → connection-detail-DrNhgWds.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B8AytMOg.js → connection-form-helpers-CgJDTkc3.js} +1 -1
- package/dist/client/assets/{connections-C-x_DlaR.js → connections-D949i82b.js} +1 -1
- package/dist/client/assets/{context-menu-DKP9RpkZ.js → context-menu-CFaXXdfC.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DCzhBR7p.js → decopilot-sse-pool-DJIZwAbJ.js} +1 -1
- package/dist/client/assets/{decopilot-DdwBW5Gf.js → decopilot-vI67-p8x.js} +1 -1
- package/dist/client/assets/{dialog-DBpjZOCu.js → dialog-P6CMGtdR.js} +1 -1
- package/dist/client/assets/{domain-settings-BknARBcV.js → domain-settings-B5C8qAi-.js} +1 -1
- package/dist/client/assets/{drawer-DPby2hn2.js → drawer-DvcEu3l1.js} +1 -1
- package/dist/client/assets/{dropdown-menu-EKQ6fenT.js → dropdown-menu-fwZOnIvt.js} +1 -1
- package/dist/client/assets/{empty-state-YIcxVemW.js → empty-state-C4j0RbQ8.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CPBy2fVV.js → extract-connection-data-DwdAagXy.js} +1 -1
- package/dist/client/assets/{file-explorer-B8ZjgRCr.js → file-explorer-Ch6Np-2X.js} +1 -1
- package/dist/client/assets/{file-type-icon-BoZkRxIi.js → file-type-icon-BiSc-ZO_.js} +1 -1
- package/dist/client/assets/{files-D-C7vNw1.js → files-D7z5LPZu.js} +1 -1
- package/dist/client/assets/{form-x1EJEVpQ.js → form-G10NyA-6.js} +1 -1
- package/dist/client/assets/{general-DQG7TPkY.js → general-D8cglZub.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DBhdsm3x.js → github-repo-picker-CWIZU3PQ.js} +1 -1
- package/dist/client/assets/{hooks-DnXDFfXX.js → hooks-CwHDIL0w.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CQrNEd18.js → import-from-deco-dialog-B4GyN4xf.js} +1 -1
- package/dist/client/assets/{index-DWzP3fZX.js → index-4jnnSAD0.js} +1 -1
- package/dist/client/assets/{index-iKSYi9v5.js → index-B-Jr5tBp.js} +1 -1
- package/dist/client/assets/{index-D2U9e4pq.js → index-BUlFGD-N.js} +1 -1
- package/dist/client/assets/{index-CNk0u5Ob.js → index-BcKroByf.js} +1 -1
- package/dist/client/assets/{index-ChoCV5RI.js → index-BkUUjL3Q.js} +3 -3
- package/dist/client/assets/{index-8q5cTvfk.js → index-D-0t5N1E.js} +21 -21
- package/dist/client/assets/{index-DjKzm_7S.js → index-D7vGJSov.js} +1 -1
- package/dist/client/assets/{index-BTv_6po3.js → index-DGqWYpLS.js} +1 -1
- package/dist/client/assets/{index-DweVBJpV.js → index-DKc0uJxa.js} +1 -1
- package/dist/client/assets/{index-Cv5o-Jym.js → index-DZj1kTmG.js} +1 -1
- package/dist/client/assets/{index-1C_mGQYK.js → index-DrrsPHB8.js} +1 -1
- package/dist/client/assets/{index-t5khoU6y.js → index-HeACeTvm.js} +1 -1
- package/dist/client/assets/{index-BZyixu4W.js → index-M7Yt6N-A.js} +1 -1
- package/dist/client/assets/{index-redirect-C4UtODiM.js → index-redirect-D2oAbGSK.js} +1 -1
- package/dist/client/assets/{index-DFKc4d3N.js → index-w4Lz4c0Z.js} +1 -1
- package/dist/client/assets/{input-BWamIMbN.js → input-b30X2gp2.js} +1 -1
- package/dist/client/assets/{integration-icon-EdsPubVt.js → integration-icon-B4bZ4YwD.js} +1 -1
- package/dist/client/assets/{label-BZcMuJ0q.js → label-CGqHgCvS.js} +1 -1
- package/dist/client/assets/{login-avUjz7eB.js → login-DGOqMO5E.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DCCT0QwD.js → mcp-oauth-CWJ7ydgJ.js} +1 -1
- package/dist/client/assets/{members-CdekeDqO.js → members-5FnWLyNE.js} +1 -1
- package/dist/client/assets/{monaco-editor-B3SQ_IFm.js → monaco-editor-BHPfw4lY.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CZoNTUjo.js → monitoring-stats-row-CqjkFzXJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-BKoLh3YW.js → oauth-callback-Dtrcr61Y.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-tPz-_25R.js → oauth-callback-ai-provider-DqH_n0f3.js} +1 -1
- package/dist/client/assets/{onboarding-DTsyZZax.js → onboarding-DBzJcPtF.js} +1 -1
- package/dist/client/assets/{org-install-CCP2NMYy.js → org-install-CyUM7DhE.js} +1 -1
- package/dist/client/assets/{org-layout-CSn0d-8X.js → org-layout-CMXD5tHG.js} +1 -1
- package/dist/client/assets/{organization-choice-CvQmoyRd.js → organization-choice-BRUBWLe_.js} +1 -1
- package/dist/client/assets/{page-seo-form-f84r-XPs.js → page-seo-form-Dw4gEaQn.js} +1 -1
- package/dist/client/assets/page-seo-sheet-D9Ir4Pa9.js +1 -0
- package/dist/client/assets/{popover-CUdzevRE.js → popover-6NhGEUF0.js} +1 -1
- package/dist/client/assets/{post-editor-MWqisYd8.js → post-editor-SiQavsWJ.js} +1 -1
- package/dist/client/assets/{primitives-BzNkeic7.js → primitives-B1PUXhZd.js} +1 -1
- package/dist/client/assets/{profile-Cvi05jzq.js → profile-0o1pqF8p.js} +1 -1
- package/dist/client/assets/project-app-view-BlxEhRII.js +1 -0
- package/dist/client/assets/record-editor-CBNWNgC7.js +1 -0
- package/dist/client/assets/registry-D8evmwnW.js +2 -0
- package/dist/client/assets/{registry-layout-CZIha2cO.js → registry-layout-hQOGpwCB.js} +1 -1
- package/dist/client/assets/{require-capability-Dr8mj9VJ.js → require-capability-Djb-fa1k.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CS_iMldS.js → required-auth-layout-BhjWg1aZ.js} +1 -1
- package/dist/client/assets/{reset-password-DxhV1tKz.js → reset-password-Dq26xkqy.js} +1 -1
- package/dist/client/assets/{roles-BKAYDZzp.js → roles-B3EH-uLa.js} +1 -1
- package/dist/client/assets/{scroll-area-C-3TY2YE.js → scroll-area-C_17m4Be.js} +1 -1
- package/dist/client/assets/{search-input-BKD3oaXK.js → search-input-DGf7zXSM.js} +1 -1
- package/dist/client/assets/{secrets-DZxFwhRj.js → secrets-BL7ON0Qs.js} +1 -1
- package/dist/client/assets/{sections-editor-Hww0_uGb.js → sections-editor-DhZVbF4X.js} +1 -1
- package/dist/client/assets/{select-C-6PWfXp.js → select-B24x0X4E.js} +1 -1
- package/dist/client/assets/{select-model-DGiOgK0q.js → select-model-BDMyZHFV.js} +1 -1
- package/dist/client/assets/{seo-editor-BThpvCjT.js → seo-editor-CIlv8LaE.js} +1 -1
- package/dist/client/assets/{settings-layout-CwGAAGlU.js → settings-layout-qovAjG4f.js} +1 -1
- package/dist/client/assets/{settings-section-CSq9f2ez.js → settings-section-_1jStb5d.js} +1 -1
- package/dist/client/assets/{sheet-B7Lez_S9.js → sheet-CBpxFKSH.js} +1 -1
- package/dist/client/assets/{shell-controls-u_iHFGU5.js → shell-controls-DKOYGHYj.js} +1 -1
- package/dist/client/assets/{shell-layout-DG441JjL.js → shell-layout-ih1tHYcc.js} +1 -1
- package/dist/client/assets/{shell-route-loading-BpdXUJEZ.js → shell-route-loading-DvzGx40X.js} +1 -1
- package/dist/client/assets/{sidebar-BXZd-GVd.js → sidebar-C-ZjZRdR.js} +1 -1
- package/dist/client/assets/{skeleton-CgP3V6Ja.js → skeleton-TjApqmnQ.js} +1 -1
- package/dist/client/assets/{sortable.esm-D9jMeHV1.js → sortable.esm-DBrKUiko.js} +1 -1
- package/dist/client/assets/{sso-Co77Yyyt.js → sso-DqbmbnCO.js} +1 -1
- package/dist/client/assets/{store-CmSf-e73.js → store-B2L2fqH8.js} +1 -1
- package/dist/client/assets/store-registry-DLa-V5IF.js +2 -0
- package/dist/client/assets/{studio-tools-C9NKrR5C.js → studio-tools-Cbx7NrLl.js} +1 -1
- package/dist/client/assets/{switch-Cu2RC5pZ.js → switch-D_UD2WNR.js} +1 -1
- package/dist/client/assets/{table-DW50z9UL.js → table-LQcAeMIc.js} +1 -1
- package/dist/client/assets/{tabs-T8F8VZUh.js → tabs-ZRw-taSE.js} +1 -1
- package/dist/client/assets/{task-status-DEWrBULH.js → task-status-DoSzPneF.js} +1 -1
- package/dist/client/assets/{textarea-BK_9gLq0.js → textarea-CAlcr600.js} +1 -1
- package/dist/client/assets/{toggle-group-e24ylmWs.js → toggle-group-D948ir_2.js} +1 -1
- package/dist/client/assets/{toolbar-BhxpIEsu.js → toolbar-hAIjmakN.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B27j_4W9.js → toolbar-icon-button-DgJP5ZTY.js} +1 -1
- package/dist/client/assets/{tools-list-DIWh8Oky.js → tools-list-B_j4gWcn.js} +1 -1
- package/dist/client/assets/{tooltip-D0ODOH5L.js → tooltip-C9lMkZf_.js} +1 -1
- package/dist/client/assets/{types-BOo0uLec.js → types-U1InXlrX.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DjRW0TN5.js → use-ai-providers-BXgPpF3h.js} +1 -1
- package/dist/client/assets/{use-automations-CS_Nu0ry.js → use-automations-BGACFUtD.js} +1 -1
- package/dist/client/assets/{use-capability-DbvoEB-N.js → use-capability-hQNBvsXa.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DicB8A5f.js → use-clock-tick-Cn4GcVPr.js} +1 -1
- package/dist/client/assets/{use-collections-CRpuCmSx.js → use-collections-e2OPchV1.js} +1 -1
- package/dist/client/assets/{use-connection-homG8xHs.js → use-connection-fdxfyRQn.js} +1 -1
- package/dist/client/assets/{use-copy-Dq7f5A4R.js → use-copy-DZcNyqbK.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CMc5HT0P.js → use-create-virtual-mcp-Cm1kYSLd.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DTd4mDNn.js → use-debounced-autosave-D1OYRXHY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-hi69DHr0.js → use-debounced-value-Z1J3SgCc.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-2XegsErL.js → use-decopilot-events-DIPsfu9F.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CP-e1UsZ.js → use-delete-connection-C3O9-MUi.js} +1 -1
- package/dist/client/assets/{use-file-configs-BM_cxwPW.js → use-file-configs-D8yU3nz-.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cj4qMXbT.js → use-infinite-scroll-DZqhT84u.js} +1 -1
- package/dist/client/assets/{use-join-requests-DGz2R0VR.js → use-join-requests-CRwCS8br.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C9rZ5q5t.js → use-mcp-client-DVe2EwxH.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bpm2lRaW.js → use-mcp-prompts-BJWzqXPu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BP-8Q6Ct.js → use-mcp-tools-D-lvUtN7.js} +1 -1
- package/dist/client/assets/{use-members-C6DHv6rG.js → use-members-uWKpV7JT.js} +1 -1
- package/dist/client/assets/{use-mobile-BzlsCeN5.js → use-mobile-BeWhAuDH.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B4oyUjLa.js → use-navigate-to-agent-BU-DXvKK.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BqLuGuER.js → use-org-auth-client-C9eiYo0i.js} +1 -1
- package/dist/client/assets/{use-org-fs-wGkM6ZHK.js → use-org-fs-DIY6enxq.js} +1 -1
- package/dist/client/assets/{use-org-sso-DNIk-jwi.js → use-org-sso-CLixQ5pz.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CE_g_E6L.js → use-organization-roles-BbvxemG5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DmBEnT-y.js → use-organization-settings-CPbhZKOu.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DLscAznw.js → use-registry-connections-DLW2JdGi.js} +1 -1
- package/dist/client/assets/{use-secrets-C8LfdaIH.js → use-secrets-IWCOpT9z.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B-cyYEUC.js → use-status-sounds-CP6eptQ_.js} +1 -1
- package/dist/client/assets/{use-view-mode-DKBazBz2.js → use-view-mode-BappAZA7.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-E-pwiiFM.js → use-virtual-mcp-hKkzsxSb.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ZI8TcYYT.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DzPV_kKI.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-CV-fvbQG.js → useSuspenseQueries-BN5efCzW.js} +1 -1
- package/dist/client/assets/{variant-calendar-ByJrzabj.js → variant-calendar-BVS0ICJ0.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-qIYOoB-v.js → view-mode-toggle-BtgBRGx2.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +65 -65
- package/dist/server/server.js +75 -75
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-BtqV4Z8p.js +0 -1
- package/dist/client/assets/project-app-view-Cwvch2dA.js +0 -1
- package/dist/client/assets/record-editor-BIJZRDg_.js +0 -1
- package/dist/client/assets/registry-CrX03JF2.js +0 -2
- package/dist/client/assets/store-registry-CWYXcSAH.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DRJEgKeg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BYH-CQed.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,ai as q,cB as R,cC as Ee,cD as ke,cE as Se,bT as xe,cF as j}from"./index-ChoCV5RI.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.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<Q&&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*Q>h&&(h=x*Q)),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 V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>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:T=!1,vimBindings:A=!0,...B}=t,U=q(),ne=q(),H=q(),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(H);y?y.focus():(a=document.getElementById(U))==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())}}),[]),N=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:U,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;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;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),O=m.getAttribute("id");return((g=e.get(O))!=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(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().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:[],O=le(S,y);r.current.filtered.items.set(g,O),O>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(V))==null?void 0:o.querySelector(qe))==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 P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),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(V),a;for(;s&&!a;)s=e>0?He(s,V):Ne(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...B,"cmdk-root":"",onKeyDown:e=>{var o;(o=B.onKeyDown)==null||o.call(B,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(),X(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:N.inputId,id:N.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:N},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),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;T(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function T(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:B,onSelect:U,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:j(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:T,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),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:j(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))))}),Le=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:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Be=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=L();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)}})}),Oe=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=L();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:j(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:j(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}))))}),Te=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ue=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)))}),Ye=Object.assign(be,{List:Oe,Item:Ve,Input:Be,Group:je,Separator:Le,Dialog:ze,Empty:Te,Loading:Ue});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ne(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=L();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{Ye as _};
|
|
1
|
+
import{r as n,ai as q,cB as R,cC as Ee,cD as ke,cE as Se,bT as xe,cF as j}from"./index-BkUUjL3Q.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.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<Q&&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*Q>h&&(h=x*Q)),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 V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>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:T=!1,vimBindings:A=!0,...B}=t,U=q(),ne=q(),H=q(),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(H);y?y.focus():(a=document.getElementById(U))==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())}}),[]),N=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:U,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;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;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),O=m.getAttribute("id");return((g=e.get(O))!=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(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().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:[],O=le(S,y);r.current.filtered.items.set(g,O),O>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(V))==null?void 0:o.querySelector(qe))==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 P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),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(V),a;for(;s&&!a;)s=e>0?He(s,V):Ne(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...B,"cmdk-root":"",onKeyDown:e=>{var o;(o=B.onKeyDown)==null||o.call(B,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(),X(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:N.inputId,id:N.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:N},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),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;T(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function T(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:B,onSelect:U,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:j(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:T,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),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:j(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))))}),Le=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:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Be=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=L();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)}})}),Oe=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=L();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:j(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:j(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}))))}),Te=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ue=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)))}),Ye=Object.assign(be,{List:Oe,Item:Ve,Input:Be,Group:je,Separator:Le,Dialog:ze,Empty:Te,Loading:Ue});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ne(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=L();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{Ye as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as le,r as K,b as yt,D as Be,j as t,B as Z,t as Se,l as de,K as it,k as wt,a6 as rs,u as ls,v as xt,E as os}from"./index-
|
|
1
|
+
import{c as le,r as K,b as yt,D as Be,j as t,B as Z,t as Se,l as de,K as it,k as wt,a6 as rs,u as ls,v as xt,E as os}from"./index-BkUUjL3Q.js";import{S as as}from"./search-input-DGf7zXSM.js";import{P as De}from"./index-DKc0uJxa.js";import{E as St}from"./empty-state-C4j0RbQ8.js";import{R as ns}from"./require-capability-Djb-fa1k.js";import{K as Tt,S as is}from"./scroll-area-C_17m4Be.js";import{u as vt}from"./use-connection-fdxfyRQn.js";import{g as Pt}from"./connection-slug-eyAPH6o3.js";import{B as rt}from"./badge-BPKTmMci.js";import{P as ct,a as dt,b as mt}from"./popover-6NhGEUF0.js";import{T as Ze,a as et,b as tt}from"./tooltip-C9lMkZf_.js";import{i as ft,n as cs}from"./ChevronUp-Dfx0dVRv.js";import{a as Xe}from"./Eye-BxNRNZ2h.js";import{n as Mt}from"./Globe01-Crsuia4t.js";import{i as At}from"./FilterLines-DRDawszB.js";import{i as ds}from"./Key01-BzMxRT38.js";import{i as ms}from"./Play-DckokfE8.js";import{aq as us,X as xs,L as fs}from"./agent-icon-hggbOd0W.js";import{M as _t}from"./monaco-editor-BHPfw4lY.js";import{u as ps}from"./use-members-uWKpV7JT.js";import{S as hs,u as gs,W as js}from"./use-mcp-client-DVe2EwxH.js";import{u as vs}from"./use-virtual-mcp-hKkzsxSb.js";import{n as Qe}from"./XCircle-DWNETFXw.js";import{c as Ns}from"./SwitchHorizontal01-xufKqJtC.js";import{s as bs}from"./Plus-BYvoY-Jl.js";import{s as ys}from"./Trash01-Bnn1ba8w.js";import{I as Ge}from"./input-b30X2gp2.js";import{C as ws,g as Ss,b as Dt,f as st,a as Vt,c as pt,d as Is,e as Lt,h as Ut,A as Cs,T as ks,i as Ts,M as ht}from"./automation-runs-BYF8KG5u.js";import{a as lt,b as ot,c as at,d as $e,S as nt}from"./select-B24x0X4E.js";import{t as Kt}from"./ChevronDown-WM4lml-1.js";import{s as Ms}from"./Stars02-B_gwpY5v.js";import{T as _s}from"./textarea-CAlcr600.js";import{C as qt}from"./collection-tabs-BiodX7Ij.js";import{S as Ds}from"./switch-D_UD2WNR.js";import{L as Ls}from"./label-CGqHgCvS.js";import{I as qe}from"./integration-icon-B4bZ4YwD.js";import{A as Bt}from"./avatar-9YLHlpEM.js";import{A as Fs,a as Rs,b as $s}from"./alert-CupFN5U7.js";import{C as Ht}from"./card-BdqzqI0N.js";import{K as Me}from"./monitoring-stats-row-CqjkFzXJ.js";import{u as Jt}from"./studio-tools-Cbx7NrLl.js";import{u as zs}from"./useSuspenseInfiniteQuery-DzPV_kKI.js";import{b as Os,S as Es,c as Ps,d as As}from"./sheet-CBpxFKSH.js";import{T as Fe,a as ut,b as Gt,c as Qt,d as Wt,e as ae}from"./table-LQcAeMIc.js";import{u as Vs}from"./use-infinite-scroll-DZqhT84u.js";import{c as Us,b as Ks}from"./use-automations-BGACFUtD.js";import"./SearchMd-BjkEh5wr.js";import"./sidebar-C-ZjZRdR.js";import"./LayoutLeft-D8gpFwFH.js";import"./use-mobile-BeWhAuDH.js";import"./use-capability-hQNBvsXa.js";import"./access-gate-62aOui4M.js";import"./capability-load-error-DUPoxjMw.js";import"./Stars01-cDzx0au0.js";import"./ChevronRight-8RVkVs_P.js";import"./use-clock-tick-Cn4GcVPr.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DZcNyqbK.js";import"./file-type-icon-BiSc-ZO_.js";import"./dialog-P6CMGtdR.js";import"./X-DdMyM35W.js";import"./ZoomOut-DIFj9NHP.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-U1InXlrX.js";import"./chat-context-Dwz2p75z.js";import"./hooks-CwHDIL0w.js";import"./decopilot-sse-pool-DJIZwAbJ.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BXgPpF3h.js";import"./use-decopilot-events-DIPsfu9F.js";import"./use-organization-settings-CPbhZKOu.js";import"./AlertCircle-2NSnJTCG.js";import"./Star01-CxoPEIpB.js";import"./XClose-CDSThodT.js";import"./ZapSquare-BbN26_6w.js";import"./Tool01-M0dO7AjN.js";import"./Monitor01-DgBazvpB.js";import"./Upload01-CaD8g_ga.js";import"./shell-layout-ih1tHYcc.js";import"./Users03-CJO85vee.js";import"./SearchLg-C-MkuWK6.js";import"./CheckCircle-6Zj1I5oD.js";import"./Zap-L-M7-mzK.js";import"./alert-dialog-rOXwpbum.js";import"./required-auth-layout-BhjWg1aZ.js";import"./use-org-sso-CLixQ5pz.js";import"./LinkExternal01-BigKmCyN.js";import"./ArrowUpRight-6VLZtLiB.js";import"./Palette-DIKiYLdc.js";import"./use-navigate-to-agent-BU-DXvKK.js";import"./use-mcp-prompts-BJWzqXPu.js";import"./form-G10NyA-6.js";import"./use-collections-e2OPchV1.js";import"./Settings02-D5nBUlpN.js";import"./DotsVertical-CtRNihkJ.js";import"./Globe04-CwTMh-6d.js";import"./HardDrive-C8FjHzIC.js";import"./Sun-0mWoIW6k.js";import"./Shield01-CtS-w-IE.js";import"./User01-DH4XNV9C.js";import"./Users01-BJ9WXBI0.js";import"./index-w4Lz4c0Z.js";import"./use-org-auth-client-C9eiYo0i.js";import"./auth-CJqHT3yg.js";import"./useInfiniteQuery-ZI8TcYYT.js";import"./task-status-DoSzPneF.js";import"./checkbox-BIYjiqNC.js";import"./command-Be6_LuEp.js";import"./index-D7vGJSov.js";import"./index-HeACeTvm.js";const Nt={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Re(s){return s.filter(e=>e.key.trim()).map(e=>{const r=encodeURIComponent(e.key.trim()),l=encodeURIComponent(e.value||"");return`${r}:${e.operator}:${l}`}).join(",")}function qs(s){return s?s.split(",").map(e=>{const[r,l,...a]=e.split(":");return{key:decodeURIComponent(r||""),operator:l||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ye(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Ft(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[r,...l]=e.split("=");return{key:r||"",operator:"eq",value:l.join("=")}}if(e.includes("~")){const[r,...l]=e.split("~");return{key:r||"",operator:"contains",value:l.join("~")}}if(e.includes("@")){const[r,...l]=e.split("@");return{key:r||"",operator:"in",value:l.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Bs(s){const e={},r={},l=[],a={};for(const o of s)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(r[o.key]=`%${o.value}%`);break;case"exists":l.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(r).length>0?r:void 0,propertyKeys:l.length>0?l:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function Rt(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};if(typeof s._decocms_truncated=="string")return{content:s._decocms_truncated,isTruncated:!0,originalSize:s._decocms_truncated.length};const e=JSON.stringify(s,null,2),r=e.length;return r<=Nt.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:r}:{content:e.slice(0,Nt.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as d,r as p,j as r}from"./index-
|
|
1
|
+
import{c as f,l as d,r as p,j as r}from"./index-BkUUjL3Q.js";import{m as w}from"./sidebar-C-ZjZRdR.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{r as k,aM as ys,c as R,l as ae,j as s,J as ws,i as js,B as Y,K as se,k as me,ac as yn,D as Ve,m as Ft,t as ce,ae as ks,G as Ss,e as zs,b as wn,u as jn,E as $t}from"./index-ChoCV5RI.js";import{i as Ns}from"./ChevronRight-CTea8Vrz.js";import{a as Cs,s as kn}from"./Eye-XrixTuLa.js";import{n as qe,i as pt}from"./Globe01-DA12A_gX.js";import{b as $s,c as Ps,e as Es,i as Ds,f as Sn,a as _t,g as Ts,h as Ms,d as Os}from"./ZoomOut-C0N4ehtv.js";import{a as ct}from"./Palette-B_aebYLe.js";import{s as As}from"./Plus-CqV2jOMI.js";import{i as Rs}from"./SearchLg-Dvo924kw.js";import{t as Is}from"./Stars01-D1UrqdL4.js";import{i as dt}from"./Upload01-DZiCAA30.js";import{s as zn}from"./XClose-CtyL8bYf.js";import{i as Ut}from"./Zap-fhgO5dDS.js";import{u as Nn}from"./use-mobile-BzlsCeN5.js";import{f as Ls,a as Fs,b as _s,c as Us,d as Bs,e as Hs,A as qs,g as Ws}from"./alert-dialog-CNwxdflX.js";import{c as Cn,a as Le,d as Xe,e as Qe,f as $n,b as Ks,D as Gs}from"./dialog-DBpjZOCu.js";import{I as We}from"./input-BWamIMbN.js";import{S as oe}from"./skeleton-CgP3V6Ja.js";import{F as we,M as Bt,d as Pn}from"./file-type-icon-BoZkRxIi.js";import{T as Vs}from"./toolbar-BhxpIEsu.js";import{u as Xs}from"./use-debounced-value-hi69DHr0.js";import{i as En,f as Dn,j as Qs,d as Tn,e as Ys,a as Ye,u as At,k as Ht,l as Zs,b as Js,m as Mn,n as el}from"./use-org-fs-wGkM6ZHK.js";import{i as xt}from"./DotsVertical-pUzhcHbw.js";import{i as On}from"./Key01-C3y_5bqB.js";import{s as gt}from"./Trash01-66NrnGrm.js";import{D as Ze,a as Je,b as et,c as pe}from"./dropdown-menu-EKQ6fenT.js";import{T as tl}from"./textarea-BK_9gLq0.js";import{t as nl}from"./ChevronDown-P5eS_rdB.js";import{i as sl,n as ll}from"./ChevronUp-BoULmO5v.js";import{i as ut}from"./X-DBy4i4Lp.js";import{a as rl,P as il,b as ol}from"./popover-CUdzevRE.js";import{T as xe,a as ge,b as be}from"./tooltip-D0ODOH5L.js";import{n as An}from"./LinkExternal01-Cwj3iuhi.js";import{l as al,F as cl}from"./index-DFKc4d3N.js";import{i as dl}from"./LayoutLeft-CuSrrdEU.js";const bt=k.createContext(null);bt.displayName="PanelGroupContext";const ne={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"},qt=10,Ee=k.useLayoutEffect,en=ys.useId,ul=typeof en=="function"?en:()=>null;let fl=0;function Wt(t=null){const e=ul(),n=k.useRef(t||e||null);return n.current===null&&(n.current=""+fl++),t??n.current}function Rn({children:t,className:e="",collapsedSize:n,collapsible:l,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:m,style:h,tagName:p="div",...g}){const y=k.useContext(bt);if(y===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:b,getPanelSize:j,getPanelStyle:z,groupId:N,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:O,unregisterPanel:T}=y,v=Wt(o),$=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:n,collapsible:l,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:m});k.useRef({didLogMissingDefaultSizeWarning:!1}),Ee(()=>{const{callbacks:F,constraints:_}=$.current,B={..._};$.current.id=v,$.current.idIsFromProps=o!==void 0,$.current.order=m,F.onCollapse=d,F.onExpand=f,F.onResize=u,_.collapsedSize=n,_.collapsible=l,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w($.current,B)}),Ee(()=>{const F=$.current;return M(F),()=>{T(F)}},[m,v,M,T]),k.useImperativeHandle(i,()=>({collapse:()=>{x($.current)},expand:F=>{b($.current,F)},getId(){return v},getSize(){return j($.current)},isCollapsed(){return C($.current)},isExpanded(){return!C($.current)},resize:F=>{O($.current,F)}}),[x,b,j,C,v,O]);const K=z($.current,r);return k.createElement(p,{...g,children:t,className:e,id:v,style:{...K,...h},[ne.groupId]:N,[ne.panel]:"",[ne.panelCollapsible]:l||void 0,[ne.panelId]:v,[ne.panelSize]:parseFloat(""+K.flexGrow).toFixed(1)})}const In=k.forwardRef((t,e)=>k.createElement(Rn,{...t,forwardedRef:e}));Rn.displayName="Panel";In.displayName="forwardRef(Panel)";let Rt=null,at=-1,Se=null;function ml(t,e){if(e){const n=(e&Bn)!==0,l=(e&Hn)!==0,r=(e&qn)!==0,i=(e&Wn)!==0;if(n)return r?"se-resize":i?"ne-resize":"e-resize";if(l)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hl(){Se!==null&&(document.head.removeChild(Se),Rt=null,Se=null,at=-1)}function Pt(t,e){var n,l;const r=ml(t,e);if(Rt!==r){if(Rt=r,Se===null&&(Se=document.createElement("style"),document.head.appendChild(Se)),at>=0){var i;(i=Se.sheet)===null||i===void 0||i.removeRule(at)}at=(n=(l=Se.sheet)===null||l===void 0?void 0:l.insertRule(`*{cursor: ${r} !important;}`))!==null&&n!==void 0?n:-1}}function Ln(t){return t.type==="keydown"}function Fn(t){return t.type.startsWith("pointer")}function _n(t){return t.type.startsWith("mouse")}function vt(t){if(Fn(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(_n(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function pl(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function xl(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function gl(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:sn(t),b:sn(e)};let l;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),l=t;V(l,"Stacking order can only be calculated for elements with a common ancestor");const r={a:nn(tn(n.a)),b:nn(tn(n.b))};if(r.a===r.b){const i=l.childNodes,o={a:n.a.at(-1),b:n.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 bl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function vl(t){var e;const n=getComputedStyle((e=Un(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function yl(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||vl(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||bl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function tn(t){let e=t.length;for(;e--;){const n=t[e];if(V(n,"Missing node"),yl(n))return n}return null}function nn(t){return t&&Number(getComputedStyle(t).zIndex)||0}function sn(t){const e=[];for(;t;)e.push(t),t=Un(t);return e}function Un(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Bn=1,Hn=2,qn=4,Wn=8,wl=pl()==="coarse";let fe=[],Ie=!1,Pe=new Map,yt=new Map;const Ke=new Set;function jl(t,e,n,l,r){var i;const{ownerDocument:o}=e,a={direction:n,element:e,hitAreaMargins:l,setResizeHandlerState:r},c=(i=Pe.get(o))!==null&&i!==void 0?i:0;return Pe.set(o,c+1),Ke.add(a),ft(),function(){var f;yt.delete(t),Ke.delete(a);const u=(f=Pe.get(o))!==null&&f!==void 0?f:1;if(Pe.set(o,u-1),ft(),u===1&&Pe.delete(o),fe.includes(a)){const m=fe.indexOf(a);m>=0&&fe.splice(m,1),Gt(),r("up",!0,null)}}}function kl(t){const{target:e}=t,{x:n,y:l}=vt(t);Ie=!0,Kt({target:e,x:n,y:l}),ft(),fe.length>0&&(mt("down",t),t.preventDefault(),Kn(e)||t.stopImmediatePropagation())}function Et(t){const{x:e,y:n}=vt(t);if(Ie&&t.buttons===0&&(Ie=!1,mt("up",t)),!Ie){const{target:l}=t;Kt({target:l,x:e,y:n})}mt("move",t),Gt(),fe.length>0&&t.preventDefault()}function Dt(t){const{target:e}=t,{x:n,y:l}=vt(t);yt.clear(),Ie=!1,fe.length>0&&(t.preventDefault(),Kn(e)||t.stopImmediatePropagation()),mt("up",t),Kt({target:e,x:n,y:l}),Gt(),ft()}function Kn(t){let e=t;for(;e;){if(e.hasAttribute(ne.resizeHandle))return!0;e=e.parentElement}return!1}function Kt({target:t,x:e,y:n}){fe.splice(0);let l=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(l=t),Ke.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,m=wl?o.coarse:o.fine;if(e>=d-m&&e<=f+m&&n>=u-m&&n<=c+m){if(l!==null&&document.contains(l)&&i!==l&&!i.contains(l)&&!l.contains(i)&&gl(l,i)>0){let p=l,g=!1;for(;p&&!p.contains(i);){if(xl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}fe.push(r)}})}function Tt(t,e){yt.set(t,e)}function Gt(){let t=!1,e=!1;fe.forEach(l=>{const{direction:r}=l;r==="horizontal"?t=!0:e=!0});let n=0;yt.forEach(l=>{n|=l}),t&&e?Pt("intersection",n):t?Pt("horizontal",n):e?Pt("vertical",n):hl()}let Mt=new AbortController;function ft(){Mt.abort(),Mt=new AbortController;const t={capture:!0,signal:Mt.signal};Ke.size&&(Ie?(fe.length>0&&Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("contextmenu",Dt,t),l.addEventListener("pointerleave",Et,t),l.addEventListener("pointermove",Et,t))}),window.addEventListener("pointerup",Dt,t),window.addEventListener("pointercancel",Dt,t)):Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("pointerdown",kl,t),l.addEventListener("pointermove",Et,t))}))}function mt(t,e){Ke.forEach(n=>{const{setResizeHandlerState:l}=n,r=fe.includes(n);l(t,r,e)})}function Sl(){const[t,e]=k.useState(0);return k.useCallback(()=>e(n=>n+1),[])}function V(t,e){if(!t)throw console.error(e),Error(e)}function De(t,e,n=qt){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ve(t,e,n=qt){return De(t,e,n)===0}function ue(t,e,n){return De(t,e,n)===0}function zl(t,e,n){if(t.length!==e.length)return!1;for(let l=0;l<t.length;l++){const r=t[l],i=e[l];if(!ue(r,i,n))return!1}return!0}function Re({panelConstraints:t,panelIndex:e,size:n}){const l=t[e];V(l!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=l;if(De(n,a)<0)if(i){const c=(r+a)/2;De(n,c)<0?n=r:n=a}else n=a;return n=Math.min(o,n),n=parseFloat(n.toFixed(qt)),n}function _e({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:l,prevLayout:r,trigger:i}){if(ue(t,0))return e;const o=[...e],[a,c]=l;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:a,m=n[u];V(m,`Panel constraints not found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,h)){const x=g-y;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}{const u=t<0?a:c,m=n[u];V(m,`No panel constraints found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,g)){const x=y-h;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}}{const u=t<0?1:-1;let m=t<0?c:a,h=0;for(;;){const g=e[m];V(g!=null,`Previous layout not found for panel index ${m}`);const x=Re({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=x,m+=u,m<0||m>=n.length)break}const p=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-p:p}{let m=t<0?a:c;for(;m>=0&&m<n.length;){const h=Math.abs(t)-Math.abs(d),p=e[m];V(p!=null,`Previous layout not found for panel index ${m}`);const g=p-h,y=Re({panelConstraints:n,panelIndex:m,size:g});if(!ue(p,y)&&(d+=p-y,o[m]=y,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?m--:m++}}if(zl(r,o))return r;{const u=t<0?c:a,m=e[u];V(m!=null,`Previous layout not found for panel index ${u}`);const h=m+d,p=Re({panelConstraints:n,panelIndex:u,size:h});if(o[u]=p,!ue(p,h)){let g=h-p,x=t<0?c:a;for(;x>=0&&x<n.length;){const b=o[x];V(b!=null,`Previous layout not found for panel index ${x}`);const j=b+g,z=Re({panelConstraints:n,panelIndex:x,size:j});if(ue(b,z)||(g-=z-b,o[x]=z),ue(g,0))break;t>0?x--:x++}}}const f=o.reduce((u,m)=>m+u,0);return ue(f,100)?o:r}function Nl({layout:t,panelsArray:e,pivotIndices:n}){let l=0,r=100,i=0,o=0;const a=n[0];V(a!=null,"No pivot index found"),e.forEach((u,m)=>{const{constraints:h}=u,{maxSize:p=100,minSize:g=0}=h;m===a?(l=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(l,100-o),f=t[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ge(t,e=document){return Array.from(e.querySelectorAll(`[${ne.resizeHandleId}][data-panel-group-id="${t}"]`))}function Gn(t,e,n=document){const r=Ge(t,n).findIndex(i=>i.getAttribute(ne.resizeHandleId)===e);return r??null}function Vn(t,e,n){const l=Gn(t,e,n);return l!=null?[l,l+1]:[-1,-1]}function Xn(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const l=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return l||null}function wt(t,e=document){const n=e.querySelector(`[${ne.resizeHandleId}="${t}"]`);return n||null}function Cl(t,e,n,l=document){var r,i,o,a;const c=wt(e,l),d=Ge(t,l),f=c?d.indexOf(c):-1,u=(r=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,m=(o=(a=n[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,m]}function $l({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:l,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Ee(()=>{if(!i)return;const a=Ge(n,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Nl({layout:l,panelsArray:r,pivotIndices:[c,c+1]}),m=a[c];if(m!=null){const h=r[c];V(h,`No panel data found for index "${c}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(d)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.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")})}},[n,l,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Xn(n,i);V(d!=null,`No group found for id "${n}"`);const f=Ge(n,i);V(f,`No resize handles found for group id "${n}"`);const u=f.map(m=>{const h=m.getAttribute(ne.resizeHandleId);V(h,"Resize handle element has no handle id attribute");const[p,g]=Cl(n,h,c,i);if(p==null||g==null)return()=>{};const y=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const b=c.findIndex(j=>j.id===p);if(b>=0){const j=c[b];V(j,`No panel data found for index ${b}`);const z=l[b],{collapsedSize:N=0,collapsible:C,minSize:w=0}=j.constraints;if(z!=null&&C){const M=_e({delta:ue(z,N)?w-N:N-z,initialLayout:l,panelConstraints:c.map(O=>O.constraints),pivotIndices:Vn(n,h,i),prevLayout:l,trigger:"keyboard"});l!==M&&o(M)}}break}}};return m.addEventListener("keydown",y),()=>{m.removeEventListener("keydown",y)}});return()=>{u.forEach(m=>m())}},[i,t,e,n,l,r,o])}function ln(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Qn(t,e){const n=t==="horizontal",{x:l,y:r}=vt(e);return n?l:r}function Pl(t,e,n,l,r){const i=n==="horizontal",o=wt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(ne.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=l;const d=Qn(n,t),f=Xn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),m=i?u.width:u.height;return(d-c)/m*100}function El(t,e,n,l,r,i){if(Ln(t)){const o=n==="horizontal";let a=0;t.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(t.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 l==null?0:Pl(t,e,n,l,i)}function Dl({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let l=0,r=100;for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(l++,e[i]=a,r-=a)}for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=t.length-l,d=r/c;l++,e[i]=d,r-=d}return e}function Te(t,e,n){e.forEach((l,r)=>{const i=t[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=n[c];if(u==null||l!==u){n[c]=l;const{onCollapse:m,onExpand:h,onResize:p}=o;p&&p(l,u),f&&(m||h)&&(h&&(u==null||ve(u,d))&&!ve(l,d)&&h(),m&&(u==null||!ve(u,d))&&ve(l,d)&&m())}})}function ot(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Tl({defaultSize:t,dragState:e,layout:n,panelData:l,panelIndex:r,precision:i=3}){const o=n[r];let a;return o==null?a=t!=null?t.toPrecision(i):"1":l.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Ml(t,e=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}}function rn(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Yn(t){return`react-resizable-panels:${t}`}function Zn(t){return t.map(e=>{const{constraints:n,id:l,idIsFromProps:r,order:i}=e;return r?l:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Jn(t,e){try{const n=Yn(t),l=e.getItem(n);if(l){const r=JSON.parse(l);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Ol(t,e,n){var l,r;const i=(l=Jn(t,n))!==null&&l!==void 0?l:{},o=Zn(e);return(r=i[o])!==null&&r!==void 0?r:null}function Al(t,e,n,l,r){var i;const o=Yn(t),a=Zn(e),c=(i=Jn(t,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(n.entries()),layout:l};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function on({layout:t,panelConstraints:e}){const n=[...t],l=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ue(l,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=100/l*o;n[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=Re({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,n[i]=a)}if(!ue(r,0))for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Re({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,n[i]=c,ue(r,0)))break}return n}const Rl=100,Ue={getItem:t=>(rn(Ue),Ue.getItem(t)),setItem:(t,e)=>{rn(Ue),Ue.setItem(t,e)}},an={};function es({autoSaveId:t=null,children:e,className:n="",direction:l,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=Ue,style:d,tagName:f="div",...u}){const m=Wt(i),h=k.useRef(null),[p,g]=k.useState(null),[y,x]=k.useState([]),b=Sl(),j=k.useRef({}),z=k.useRef(new Map),N=k.useRef(0),C=k.useRef({autoSaveId:t,direction:l,dragState:p,id:m,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:y,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:I}=C.current,{layout:L,panelDataArray:U}=w.current,D=on({layout:S,panelConstraints:U.map(H=>H.constraints)});ln(L,D)||(x(D),w.current.layout=D,I&&I(D),Te(U,D,j.current))}}),[]),Ee(()=>{C.current.autoSaveId=t,C.current.direction=l,C.current.dragState=p,C.current.id=m,C.current.onLayout=o,C.current.storage=c}),$l({committedValuesRef:C,eagerValuesRef:w,groupId:m,layout:y,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:h.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(t){if(y.length===0||y.length!==S.length)return;let I=an[t];I==null&&(I=Ml(Al,Rl),an[t]=I);const L=[...S],U=new Map(z.current);I(t,L,U,y,c)}},[t,y,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:I}=C.current,{layout:L,panelDataArray:U}=w.current;if(S.constraints.collapsible){const D=U.map(de=>de.constraints),{collapsedSize:H=0,panelSize:Q,pivotIndices:ee}=$e(U,S,L);if(V(Q!=null,`Panel size not found for panel "${S.id}"`),!ve(Q,H)){z.current.set(S.id,Q);const P=Oe(U,S)===U.length-1?Q-H:H-Q,X=_e({delta:P,initialLayout:L,panelConstraints:D,pivotIndices:ee,prevLayout:L,trigger:"imperative-api"});ot(L,X)||(x(X),w.current.layout=X,I&&I(X),Te(U,X,j.current))}}},[]),O=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current;if(S.constraints.collapsible){const H=D.map(te=>te.constraints),{collapsedSize:Q=0,panelSize:ee=0,minSize:de=0,pivotIndices:P}=$e(D,S,U),X=I??de;if(ve(ee,Q)){const te=z.current.get(S.id),he=te!=null&&te>=X?te:X,Ne=Oe(D,S)===D.length-1?ee-he:he-ee,ie=_e({delta:Ne,initialLayout:U,panelConstraints:H,pivotIndices:P,prevLayout:U,trigger:"imperative-api"});ot(U,ie)||(x(ie),w.current.layout=ie,L&&L(ie),Te(D,ie,j.current))}}},[]),T=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{panelSize:U}=$e(L,S,I);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,I)=>{const{panelDataArray:L}=w.current,U=Oe(L,S);return Tl({defaultSize:I,dragState:p,layout:y,panelData:L,panelIndex:U})},[p,y]),$=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),D===!0&&ve(H,U)},[]),K=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),!D||De(H,U)>0},[]),F=k.useCallback(S=>{const{panelDataArray:I}=w.current;I.push(S),I.sort((L,U)=>{const D=L.order,H=U.order;return D==null&&H==null?0:D==null?-1:H==null?1:D-H}),w.current.panelDataArrayChanged=!0,b()},[b]);Ee(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:I,storage:L}=C.current,{layout:U,panelDataArray:D}=w.current;let H=null;if(S){const ee=Ol(S,D,L);ee&&(z.current=new Map(Object.entries(ee.expandToSizes)),H=ee.layout)}H==null&&(H=Dl({panelDataArray:D}));const Q=on({layout:H,panelConstraints:D.map(ee=>ee.constraints)});ln(U,Q)||(x(Q),w.current.layout=Q,I&&I(Q),Te(D,Q,j.current))}}),Ee(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let I=!1;const L=h.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(D){D.preventDefault();const H=h.current;if(!H)return()=>null;const{direction:Q,dragState:ee,id:de,keyboardResizeBy:P,onLayout:X}=C.current,{layout:te,panelDataArray:he}=w.current,{initialLayout:je}=ee??{},Ne=Vn(de,S,H);let ie=El(D,S,Q,ee,P,H);const lt=Q==="horizontal";lt&&I&&(ie=-ie);const Nt=he.map(Ct=>Ct.constraints),Ce=_e({delta:ie,initialLayout:je??te,panelConstraints:Nt,pivotIndices:Ne,prevLayout:te,trigger:Ln(D)?"keyboard":"mouse-or-touch"}),rt=!ot(te,Ce);(Fn(D)||_n(D))&&N.current!=ie&&(N.current=ie,!rt&&ie!==0?lt?Tt(S,ie<0?Bn:Hn):Tt(S,ie<0?qn:Wn):Tt(S,0)),rt&&(x(Ce),w.current.layout=Ce,X&&X(Ce),Te(he,Ce,j.current))}},[]),B=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current,H=D.map(te=>te.constraints),{panelSize:Q,pivotIndices:ee}=$e(D,S,U);V(Q!=null,`Panel size not found for panel "${S.id}"`);const P=Oe(D,S)===D.length-1?Q-I:I-Q,X=_e({delta:P,initialLayout:U,panelConstraints:H,pivotIndices:ee,prevLayout:U,trigger:"imperative-api"});ot(U,X)||(x(X),w.current.layout=X,L&&L(X),Te(D,X,j.current))},[]),G=k.useCallback((S,I)=>{const{layout:L,panelDataArray:U}=w.current,{collapsedSize:D=0,collapsible:H}=I,{collapsedSize:Q=0,collapsible:ee,maxSize:de=100,minSize:P=0}=S.constraints,{panelSize:X}=$e(U,S,L);X!=null&&(H&&ee&&ve(X,D)?ve(D,Q)||B(S,Q):X<P?B(S,P):X>de&&B(S,de))},[B]),q=k.useCallback((S,I)=>{const{direction:L}=C.current,{layout:U}=w.current;if(!h.current)return;const D=wt(S,h.current);V(D,`Drag handle element not found for id "${S}"`);const H=Qn(L,I);g({dragHandleId:S,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),J=k.useCallback(()=>{g(null)},[]),Z=k.useCallback(S=>{const{panelDataArray:I}=w.current,L=Oe(I,S);L>=0&&(I.splice(L,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,b())},[b]),A=k.useMemo(()=>({collapsePanel:M,direction:l,dragState:p,expandPanel:O,getPanelSize:T,getPanelStyle:v,groupId:m,isPanelCollapsed:$,isPanelExpanded:K,reevaluatePanelConstraints:G,registerPanel:F,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:J,unregisterPanel:Z,panelGroupElement:h.current}),[M,p,l,O,T,v,m,$,K,G,F,_,B,q,J,Z]),W={display:"flex",flexDirection:l==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(bt.Provider,{value:A},k.createElement(f,{...u,children:e,className:n,id:i,ref:h,style:{...W,...d},[ne.group]:"",[ne.groupDirection]:l,[ne.groupId]:m}))}const ts=k.forwardRef((t,e)=>k.createElement(es,{...t,forwardedRef:e}));es.displayName="PanelGroup";ts.displayName="forwardRef(PanelGroup)";function Oe(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function $e(t,e,n){const l=Oe(t,e),i=l===t.length-1?[l-1,l]:[l,l+1],o=n[l];return{...e.constraints,panelSize:o,pivotIndices:i}}function Il({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:l}){k.useEffect(()=>{if(t||n==null||l==null)return;const r=wt(e,l);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(),n(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(ne.groupId);V(a,`No group element found for id "${a}"`);const c=Ge(a,l),d=Gn(a,e,l);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)}},[l,t,e,n])}function ns({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:l,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:m=0,tagName:h="div",...p}){var g,y;const x=k.useRef(null),b=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{b.current.onClick=o,b.current.onDragging=a,b.current.onPointerDown=d,b.current.onPointerUp=f});const j=k.useContext(bt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:N,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:O}=j,T=Wt(r),[v,$]=k.useState("inactive"),[K,F]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Ee(()=>{G.current.state=v}),k.useEffect(()=>{if(n)B(null);else{const A=C(T);B(()=>A)}},[n,T,C]);const q=(g=l?.coarse)!==null&&g!==void 0?g:15,J=(y=l?.fine)!==null&&y!==void 0?y:5;k.useEffect(()=>{if(n||_==null)return;const A=x.current;V(A,"Element ref not attached");let W=!1;return jl(T,A,z,{coarse:q,fine:J},(I,L,U)=>{if(!L){$("inactive");return}switch(I){case"down":{$("drag"),W=!1,V(U,'Expected event to be defined for "down" action'),w(T,U);const{onDragging:D,onPointerDown:H}=b.current;D?.(!0),H?.();break}case"move":{const{state:D}=G.current;W=!0,D!=="drag"&&$("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{$("hover"),M();const{onClick:D,onDragging:H,onPointerUp:Q}=b.current;H?.(!1),Q?.(),W||D?.();break}}})},[q,z,n,J,C,T,_,w,M]),Il({disabled:n,handleId:T,resizeHandler:_,panelGroupElement:O});const Z={touchAction:"none",userSelect:"none"};return k.createElement(h,{...p,children:t,className:e,id:r,onBlur:()=>{F(!1),i?.()},onFocus:()=>{F(!0),c?.()},ref:x,role:"separator",style:{...Z,...u},tabIndex:m,[ne.groupDirection]:z,[ne.groupId]:N,[ne.resizeHandle]:"",[ne.resizeHandleActive]:v==="drag"?"pointer":K?"keyboard":void 0,[ne.resizeHandleEnabled]:!n,[ne.resizeHandleId]:T,[ne.resizeHandleState]:v})}ns.displayName="PanelResizeHandle";function Ll(t){const e=R.c(10);let n,l,r;e[0]!==t?({className:n,ref:r,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==l||e[7]!==r||e[8]!==i?(o=s.jsx(ts,{ref:r,"data-slot":"resizable-panel-group",className:i,...l}),e[6]=l,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function cn(t){const e=R.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let l;return e[2]!==n?(l=s.jsx(In,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=l):l=e[3],l}function Fl(t){const e=R.c(12);let n,l,r;e[0]!==t?({withHandle:r,className:n,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&s.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:s.jsx($s,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==l||e[9]!==i||e[10]!==o?(a=s.jsx(ns,{"data-slot":"resizable-handle",className:i,...l,children:o}),e[8]=l,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function _l(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function Ul(t){if(_l(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function Bl(t){try{return decodeURIComponent(t)}catch{return t}}function Hl(t){return Ul(t),encodeURIComponent(t)}function ql(t){return`.deco/blocks/${Hl(t)}.json`}function bo(t){return`/${ql(t)}`}const vo=1e4,Wl=3;function It(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function Vt(t){return t.startsWith("/")?t.slice(1):t}function ht(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function Kl(t){const e=ht(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function yo(t,e){const n=e.replace(/^\/+|\/+$/g,"");return ht(n?`${t==="/"?"":t}/${n}`:t)}function wo(t,e){return e==="directory"?t:Kl(t)}function jo(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function Gl(t){const e=Vt(t);return e?e.split("/").filter(Boolean).length:0}function ko(t,e,n,l=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:l||!!n.truncated}}function So(t,e){return Gl(t)>=Wl&&!e.has(t)}function zo(t,e,n=[]){const l=Vt(t);if(e.includes(l)||n.includes(l))return!0;if(!l)return!1;const r=`${l}/`;return e.some(i=>i.startsWith(r))||n.some(i=>i.startsWith(r))}function No(t){const e=Vt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const l=e.slice(n.length,-5);return Bl(l)}function Vl(t){if(!t)return"plaintext";const e=t.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function Co(t){const e=It(t).split("/").filter(Boolean),n=["/"];let l="";for(const r of e.slice(0,-1))l+=`/${r}`,n.push(l);return n}function $o(t,e=[]){const n={children:[]},l=i=>{const a=It(i).split("/").filter(Boolean);let c=n,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(m=>m.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 t){const a=It(i).split("/").filter(Boolean);let c=n,d="";a.forEach((f,u)=>{d+=`/${f}`;const m=u===a.length-1;let h=c.children.find(p=>p.name===f);h||(h={name:f,path:d,kind:m?"file":"directory",children:[]},c.children.push(h)),c=h})}for(const i of e)l(ht(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(n.children),n.children}function Xl(t,e,n=0){const l=[];for(const r of t)r.name!==".gitkeep"&&(l.push({node:r,depth:n}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&l.push(...Xl(r.children,e,n+1)));return l}function Po(t){return t.split(`
|
|
1
|
+
import{r as k,aM as ys,c as R,l as ae,j as s,J as ws,i as js,B as Y,K as se,k as me,ac as yn,D as Ve,m as Ft,t as ce,ae as ks,G as Ss,e as zs,b as wn,u as jn,E as $t}from"./index-BkUUjL3Q.js";import{i as Ns}from"./ChevronRight-8RVkVs_P.js";import{a as Cs,s as kn}from"./Eye-BxNRNZ2h.js";import{n as qe,i as pt}from"./Globe01-Crsuia4t.js";import{b as $s,c as Ps,e as Es,i as Ds,f as Sn,a as _t,g as Ts,h as Ms,d as Os}from"./ZoomOut-DIFj9NHP.js";import{a as ct}from"./Palette-DIKiYLdc.js";import{s as As}from"./Plus-BYvoY-Jl.js";import{i as Rs}from"./SearchLg-C-MkuWK6.js";import{t as Is}from"./Stars01-cDzx0au0.js";import{i as dt}from"./Upload01-CaD8g_ga.js";import{s as zn}from"./XClose-CDSThodT.js";import{i as Ut}from"./Zap-L-M7-mzK.js";import{u as Nn}from"./use-mobile-BeWhAuDH.js";import{f as Ls,a as Fs,b as _s,c as Us,d as Bs,e as Hs,A as qs,g as Ws}from"./alert-dialog-rOXwpbum.js";import{c as Cn,a as Le,d as Xe,e as Qe,f as $n,b as Ks,D as Gs}from"./dialog-P6CMGtdR.js";import{I as We}from"./input-b30X2gp2.js";import{S as oe}from"./skeleton-TjApqmnQ.js";import{F as we,M as Bt,d as Pn}from"./file-type-icon-BiSc-ZO_.js";import{T as Vs}from"./toolbar-hAIjmakN.js";import{u as Xs}from"./use-debounced-value-Z1J3SgCc.js";import{i as En,f as Dn,j as Qs,d as Tn,e as Ys,a as Ye,u as At,k as Ht,l as Zs,b as Js,m as Mn,n as el}from"./use-org-fs-DIY6enxq.js";import{i as xt}from"./DotsVertical-CtRNihkJ.js";import{i as On}from"./Key01-BzMxRT38.js";import{s as gt}from"./Trash01-Bnn1ba8w.js";import{D as Ze,a as Je,b as et,c as pe}from"./dropdown-menu-fwZOnIvt.js";import{T as tl}from"./textarea-CAlcr600.js";import{t as nl}from"./ChevronDown-WM4lml-1.js";import{i as sl,n as ll}from"./ChevronUp-Dfx0dVRv.js";import{i as ut}from"./X-DdMyM35W.js";import{a as rl,P as il,b as ol}from"./popover-6NhGEUF0.js";import{T as xe,a as ge,b as be}from"./tooltip-C9lMkZf_.js";import{n as An}from"./LinkExternal01-BigKmCyN.js";import{l as al,F as cl}from"./index-w4Lz4c0Z.js";import{i as dl}from"./LayoutLeft-D8gpFwFH.js";const bt=k.createContext(null);bt.displayName="PanelGroupContext";const ne={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"},qt=10,Ee=k.useLayoutEffect,en=ys.useId,ul=typeof en=="function"?en:()=>null;let fl=0;function Wt(t=null){const e=ul(),n=k.useRef(t||e||null);return n.current===null&&(n.current=""+fl++),t??n.current}function Rn({children:t,className:e="",collapsedSize:n,collapsible:l,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:m,style:h,tagName:p="div",...g}){const y=k.useContext(bt);if(y===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:b,getPanelSize:j,getPanelStyle:z,groupId:N,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:O,unregisterPanel:T}=y,v=Wt(o),$=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:n,collapsible:l,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:m});k.useRef({didLogMissingDefaultSizeWarning:!1}),Ee(()=>{const{callbacks:F,constraints:_}=$.current,B={..._};$.current.id=v,$.current.idIsFromProps=o!==void 0,$.current.order=m,F.onCollapse=d,F.onExpand=f,F.onResize=u,_.collapsedSize=n,_.collapsible=l,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w($.current,B)}),Ee(()=>{const F=$.current;return M(F),()=>{T(F)}},[m,v,M,T]),k.useImperativeHandle(i,()=>({collapse:()=>{x($.current)},expand:F=>{b($.current,F)},getId(){return v},getSize(){return j($.current)},isCollapsed(){return C($.current)},isExpanded(){return!C($.current)},resize:F=>{O($.current,F)}}),[x,b,j,C,v,O]);const K=z($.current,r);return k.createElement(p,{...g,children:t,className:e,id:v,style:{...K,...h},[ne.groupId]:N,[ne.panel]:"",[ne.panelCollapsible]:l||void 0,[ne.panelId]:v,[ne.panelSize]:parseFloat(""+K.flexGrow).toFixed(1)})}const In=k.forwardRef((t,e)=>k.createElement(Rn,{...t,forwardedRef:e}));Rn.displayName="Panel";In.displayName="forwardRef(Panel)";let Rt=null,at=-1,Se=null;function ml(t,e){if(e){const n=(e&Bn)!==0,l=(e&Hn)!==0,r=(e&qn)!==0,i=(e&Wn)!==0;if(n)return r?"se-resize":i?"ne-resize":"e-resize";if(l)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hl(){Se!==null&&(document.head.removeChild(Se),Rt=null,Se=null,at=-1)}function Pt(t,e){var n,l;const r=ml(t,e);if(Rt!==r){if(Rt=r,Se===null&&(Se=document.createElement("style"),document.head.appendChild(Se)),at>=0){var i;(i=Se.sheet)===null||i===void 0||i.removeRule(at)}at=(n=(l=Se.sheet)===null||l===void 0?void 0:l.insertRule(`*{cursor: ${r} !important;}`))!==null&&n!==void 0?n:-1}}function Ln(t){return t.type==="keydown"}function Fn(t){return t.type.startsWith("pointer")}function _n(t){return t.type.startsWith("mouse")}function vt(t){if(Fn(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(_n(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function pl(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function xl(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function gl(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:sn(t),b:sn(e)};let l;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),l=t;V(l,"Stacking order can only be calculated for elements with a common ancestor");const r={a:nn(tn(n.a)),b:nn(tn(n.b))};if(r.a===r.b){const i=l.childNodes,o={a:n.a.at(-1),b:n.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 bl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function vl(t){var e;const n=getComputedStyle((e=Un(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function yl(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||vl(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||bl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function tn(t){let e=t.length;for(;e--;){const n=t[e];if(V(n,"Missing node"),yl(n))return n}return null}function nn(t){return t&&Number(getComputedStyle(t).zIndex)||0}function sn(t){const e=[];for(;t;)e.push(t),t=Un(t);return e}function Un(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Bn=1,Hn=2,qn=4,Wn=8,wl=pl()==="coarse";let fe=[],Ie=!1,Pe=new Map,yt=new Map;const Ke=new Set;function jl(t,e,n,l,r){var i;const{ownerDocument:o}=e,a={direction:n,element:e,hitAreaMargins:l,setResizeHandlerState:r},c=(i=Pe.get(o))!==null&&i!==void 0?i:0;return Pe.set(o,c+1),Ke.add(a),ft(),function(){var f;yt.delete(t),Ke.delete(a);const u=(f=Pe.get(o))!==null&&f!==void 0?f:1;if(Pe.set(o,u-1),ft(),u===1&&Pe.delete(o),fe.includes(a)){const m=fe.indexOf(a);m>=0&&fe.splice(m,1),Gt(),r("up",!0,null)}}}function kl(t){const{target:e}=t,{x:n,y:l}=vt(t);Ie=!0,Kt({target:e,x:n,y:l}),ft(),fe.length>0&&(mt("down",t),t.preventDefault(),Kn(e)||t.stopImmediatePropagation())}function Et(t){const{x:e,y:n}=vt(t);if(Ie&&t.buttons===0&&(Ie=!1,mt("up",t)),!Ie){const{target:l}=t;Kt({target:l,x:e,y:n})}mt("move",t),Gt(),fe.length>0&&t.preventDefault()}function Dt(t){const{target:e}=t,{x:n,y:l}=vt(t);yt.clear(),Ie=!1,fe.length>0&&(t.preventDefault(),Kn(e)||t.stopImmediatePropagation()),mt("up",t),Kt({target:e,x:n,y:l}),Gt(),ft()}function Kn(t){let e=t;for(;e;){if(e.hasAttribute(ne.resizeHandle))return!0;e=e.parentElement}return!1}function Kt({target:t,x:e,y:n}){fe.splice(0);let l=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(l=t),Ke.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,m=wl?o.coarse:o.fine;if(e>=d-m&&e<=f+m&&n>=u-m&&n<=c+m){if(l!==null&&document.contains(l)&&i!==l&&!i.contains(l)&&!l.contains(i)&&gl(l,i)>0){let p=l,g=!1;for(;p&&!p.contains(i);){if(xl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}fe.push(r)}})}function Tt(t,e){yt.set(t,e)}function Gt(){let t=!1,e=!1;fe.forEach(l=>{const{direction:r}=l;r==="horizontal"?t=!0:e=!0});let n=0;yt.forEach(l=>{n|=l}),t&&e?Pt("intersection",n):t?Pt("horizontal",n):e?Pt("vertical",n):hl()}let Mt=new AbortController;function ft(){Mt.abort(),Mt=new AbortController;const t={capture:!0,signal:Mt.signal};Ke.size&&(Ie?(fe.length>0&&Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("contextmenu",Dt,t),l.addEventListener("pointerleave",Et,t),l.addEventListener("pointermove",Et,t))}),window.addEventListener("pointerup",Dt,t),window.addEventListener("pointercancel",Dt,t)):Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("pointerdown",kl,t),l.addEventListener("pointermove",Et,t))}))}function mt(t,e){Ke.forEach(n=>{const{setResizeHandlerState:l}=n,r=fe.includes(n);l(t,r,e)})}function Sl(){const[t,e]=k.useState(0);return k.useCallback(()=>e(n=>n+1),[])}function V(t,e){if(!t)throw console.error(e),Error(e)}function De(t,e,n=qt){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ve(t,e,n=qt){return De(t,e,n)===0}function ue(t,e,n){return De(t,e,n)===0}function zl(t,e,n){if(t.length!==e.length)return!1;for(let l=0;l<t.length;l++){const r=t[l],i=e[l];if(!ue(r,i,n))return!1}return!0}function Re({panelConstraints:t,panelIndex:e,size:n}){const l=t[e];V(l!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=l;if(De(n,a)<0)if(i){const c=(r+a)/2;De(n,c)<0?n=r:n=a}else n=a;return n=Math.min(o,n),n=parseFloat(n.toFixed(qt)),n}function _e({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:l,prevLayout:r,trigger:i}){if(ue(t,0))return e;const o=[...e],[a,c]=l;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:a,m=n[u];V(m,`Panel constraints not found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,h)){const x=g-y;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}{const u=t<0?a:c,m=n[u];V(m,`No panel constraints found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,g)){const x=y-h;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}}{const u=t<0?1:-1;let m=t<0?c:a,h=0;for(;;){const g=e[m];V(g!=null,`Previous layout not found for panel index ${m}`);const x=Re({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=x,m+=u,m<0||m>=n.length)break}const p=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-p:p}{let m=t<0?a:c;for(;m>=0&&m<n.length;){const h=Math.abs(t)-Math.abs(d),p=e[m];V(p!=null,`Previous layout not found for panel index ${m}`);const g=p-h,y=Re({panelConstraints:n,panelIndex:m,size:g});if(!ue(p,y)&&(d+=p-y,o[m]=y,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?m--:m++}}if(zl(r,o))return r;{const u=t<0?c:a,m=e[u];V(m!=null,`Previous layout not found for panel index ${u}`);const h=m+d,p=Re({panelConstraints:n,panelIndex:u,size:h});if(o[u]=p,!ue(p,h)){let g=h-p,x=t<0?c:a;for(;x>=0&&x<n.length;){const b=o[x];V(b!=null,`Previous layout not found for panel index ${x}`);const j=b+g,z=Re({panelConstraints:n,panelIndex:x,size:j});if(ue(b,z)||(g-=z-b,o[x]=z),ue(g,0))break;t>0?x--:x++}}}const f=o.reduce((u,m)=>m+u,0);return ue(f,100)?o:r}function Nl({layout:t,panelsArray:e,pivotIndices:n}){let l=0,r=100,i=0,o=0;const a=n[0];V(a!=null,"No pivot index found"),e.forEach((u,m)=>{const{constraints:h}=u,{maxSize:p=100,minSize:g=0}=h;m===a?(l=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(l,100-o),f=t[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ge(t,e=document){return Array.from(e.querySelectorAll(`[${ne.resizeHandleId}][data-panel-group-id="${t}"]`))}function Gn(t,e,n=document){const r=Ge(t,n).findIndex(i=>i.getAttribute(ne.resizeHandleId)===e);return r??null}function Vn(t,e,n){const l=Gn(t,e,n);return l!=null?[l,l+1]:[-1,-1]}function Xn(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const l=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return l||null}function wt(t,e=document){const n=e.querySelector(`[${ne.resizeHandleId}="${t}"]`);return n||null}function Cl(t,e,n,l=document){var r,i,o,a;const c=wt(e,l),d=Ge(t,l),f=c?d.indexOf(c):-1,u=(r=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,m=(o=(a=n[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,m]}function $l({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:l,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Ee(()=>{if(!i)return;const a=Ge(n,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Nl({layout:l,panelsArray:r,pivotIndices:[c,c+1]}),m=a[c];if(m!=null){const h=r[c];V(h,`No panel data found for index "${c}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(d)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.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")})}},[n,l,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Xn(n,i);V(d!=null,`No group found for id "${n}"`);const f=Ge(n,i);V(f,`No resize handles found for group id "${n}"`);const u=f.map(m=>{const h=m.getAttribute(ne.resizeHandleId);V(h,"Resize handle element has no handle id attribute");const[p,g]=Cl(n,h,c,i);if(p==null||g==null)return()=>{};const y=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const b=c.findIndex(j=>j.id===p);if(b>=0){const j=c[b];V(j,`No panel data found for index ${b}`);const z=l[b],{collapsedSize:N=0,collapsible:C,minSize:w=0}=j.constraints;if(z!=null&&C){const M=_e({delta:ue(z,N)?w-N:N-z,initialLayout:l,panelConstraints:c.map(O=>O.constraints),pivotIndices:Vn(n,h,i),prevLayout:l,trigger:"keyboard"});l!==M&&o(M)}}break}}};return m.addEventListener("keydown",y),()=>{m.removeEventListener("keydown",y)}});return()=>{u.forEach(m=>m())}},[i,t,e,n,l,r,o])}function ln(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Qn(t,e){const n=t==="horizontal",{x:l,y:r}=vt(e);return n?l:r}function Pl(t,e,n,l,r){const i=n==="horizontal",o=wt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(ne.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=l;const d=Qn(n,t),f=Xn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),m=i?u.width:u.height;return(d-c)/m*100}function El(t,e,n,l,r,i){if(Ln(t)){const o=n==="horizontal";let a=0;t.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(t.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 l==null?0:Pl(t,e,n,l,i)}function Dl({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let l=0,r=100;for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(l++,e[i]=a,r-=a)}for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=t.length-l,d=r/c;l++,e[i]=d,r-=d}return e}function Te(t,e,n){e.forEach((l,r)=>{const i=t[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=n[c];if(u==null||l!==u){n[c]=l;const{onCollapse:m,onExpand:h,onResize:p}=o;p&&p(l,u),f&&(m||h)&&(h&&(u==null||ve(u,d))&&!ve(l,d)&&h(),m&&(u==null||!ve(u,d))&&ve(l,d)&&m())}})}function ot(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Tl({defaultSize:t,dragState:e,layout:n,panelData:l,panelIndex:r,precision:i=3}){const o=n[r];let a;return o==null?a=t!=null?t.toPrecision(i):"1":l.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Ml(t,e=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}}function rn(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Yn(t){return`react-resizable-panels:${t}`}function Zn(t){return t.map(e=>{const{constraints:n,id:l,idIsFromProps:r,order:i}=e;return r?l:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Jn(t,e){try{const n=Yn(t),l=e.getItem(n);if(l){const r=JSON.parse(l);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Ol(t,e,n){var l,r;const i=(l=Jn(t,n))!==null&&l!==void 0?l:{},o=Zn(e);return(r=i[o])!==null&&r!==void 0?r:null}function Al(t,e,n,l,r){var i;const o=Yn(t),a=Zn(e),c=(i=Jn(t,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(n.entries()),layout:l};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function on({layout:t,panelConstraints:e}){const n=[...t],l=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ue(l,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=100/l*o;n[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=Re({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,n[i]=a)}if(!ue(r,0))for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Re({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,n[i]=c,ue(r,0)))break}return n}const Rl=100,Ue={getItem:t=>(rn(Ue),Ue.getItem(t)),setItem:(t,e)=>{rn(Ue),Ue.setItem(t,e)}},an={};function es({autoSaveId:t=null,children:e,className:n="",direction:l,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=Ue,style:d,tagName:f="div",...u}){const m=Wt(i),h=k.useRef(null),[p,g]=k.useState(null),[y,x]=k.useState([]),b=Sl(),j=k.useRef({}),z=k.useRef(new Map),N=k.useRef(0),C=k.useRef({autoSaveId:t,direction:l,dragState:p,id:m,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:y,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:I}=C.current,{layout:L,panelDataArray:U}=w.current,D=on({layout:S,panelConstraints:U.map(H=>H.constraints)});ln(L,D)||(x(D),w.current.layout=D,I&&I(D),Te(U,D,j.current))}}),[]),Ee(()=>{C.current.autoSaveId=t,C.current.direction=l,C.current.dragState=p,C.current.id=m,C.current.onLayout=o,C.current.storage=c}),$l({committedValuesRef:C,eagerValuesRef:w,groupId:m,layout:y,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:h.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(t){if(y.length===0||y.length!==S.length)return;let I=an[t];I==null&&(I=Ml(Al,Rl),an[t]=I);const L=[...S],U=new Map(z.current);I(t,L,U,y,c)}},[t,y,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:I}=C.current,{layout:L,panelDataArray:U}=w.current;if(S.constraints.collapsible){const D=U.map(de=>de.constraints),{collapsedSize:H=0,panelSize:Q,pivotIndices:ee}=$e(U,S,L);if(V(Q!=null,`Panel size not found for panel "${S.id}"`),!ve(Q,H)){z.current.set(S.id,Q);const P=Oe(U,S)===U.length-1?Q-H:H-Q,X=_e({delta:P,initialLayout:L,panelConstraints:D,pivotIndices:ee,prevLayout:L,trigger:"imperative-api"});ot(L,X)||(x(X),w.current.layout=X,I&&I(X),Te(U,X,j.current))}}},[]),O=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current;if(S.constraints.collapsible){const H=D.map(te=>te.constraints),{collapsedSize:Q=0,panelSize:ee=0,minSize:de=0,pivotIndices:P}=$e(D,S,U),X=I??de;if(ve(ee,Q)){const te=z.current.get(S.id),he=te!=null&&te>=X?te:X,Ne=Oe(D,S)===D.length-1?ee-he:he-ee,ie=_e({delta:Ne,initialLayout:U,panelConstraints:H,pivotIndices:P,prevLayout:U,trigger:"imperative-api"});ot(U,ie)||(x(ie),w.current.layout=ie,L&&L(ie),Te(D,ie,j.current))}}},[]),T=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{panelSize:U}=$e(L,S,I);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,I)=>{const{panelDataArray:L}=w.current,U=Oe(L,S);return Tl({defaultSize:I,dragState:p,layout:y,panelData:L,panelIndex:U})},[p,y]),$=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),D===!0&&ve(H,U)},[]),K=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),!D||De(H,U)>0},[]),F=k.useCallback(S=>{const{panelDataArray:I}=w.current;I.push(S),I.sort((L,U)=>{const D=L.order,H=U.order;return D==null&&H==null?0:D==null?-1:H==null?1:D-H}),w.current.panelDataArrayChanged=!0,b()},[b]);Ee(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:I,storage:L}=C.current,{layout:U,panelDataArray:D}=w.current;let H=null;if(S){const ee=Ol(S,D,L);ee&&(z.current=new Map(Object.entries(ee.expandToSizes)),H=ee.layout)}H==null&&(H=Dl({panelDataArray:D}));const Q=on({layout:H,panelConstraints:D.map(ee=>ee.constraints)});ln(U,Q)||(x(Q),w.current.layout=Q,I&&I(Q),Te(D,Q,j.current))}}),Ee(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let I=!1;const L=h.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(D){D.preventDefault();const H=h.current;if(!H)return()=>null;const{direction:Q,dragState:ee,id:de,keyboardResizeBy:P,onLayout:X}=C.current,{layout:te,panelDataArray:he}=w.current,{initialLayout:je}=ee??{},Ne=Vn(de,S,H);let ie=El(D,S,Q,ee,P,H);const lt=Q==="horizontal";lt&&I&&(ie=-ie);const Nt=he.map(Ct=>Ct.constraints),Ce=_e({delta:ie,initialLayout:je??te,panelConstraints:Nt,pivotIndices:Ne,prevLayout:te,trigger:Ln(D)?"keyboard":"mouse-or-touch"}),rt=!ot(te,Ce);(Fn(D)||_n(D))&&N.current!=ie&&(N.current=ie,!rt&&ie!==0?lt?Tt(S,ie<0?Bn:Hn):Tt(S,ie<0?qn:Wn):Tt(S,0)),rt&&(x(Ce),w.current.layout=Ce,X&&X(Ce),Te(he,Ce,j.current))}},[]),B=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current,H=D.map(te=>te.constraints),{panelSize:Q,pivotIndices:ee}=$e(D,S,U);V(Q!=null,`Panel size not found for panel "${S.id}"`);const P=Oe(D,S)===D.length-1?Q-I:I-Q,X=_e({delta:P,initialLayout:U,panelConstraints:H,pivotIndices:ee,prevLayout:U,trigger:"imperative-api"});ot(U,X)||(x(X),w.current.layout=X,L&&L(X),Te(D,X,j.current))},[]),G=k.useCallback((S,I)=>{const{layout:L,panelDataArray:U}=w.current,{collapsedSize:D=0,collapsible:H}=I,{collapsedSize:Q=0,collapsible:ee,maxSize:de=100,minSize:P=0}=S.constraints,{panelSize:X}=$e(U,S,L);X!=null&&(H&&ee&&ve(X,D)?ve(D,Q)||B(S,Q):X<P?B(S,P):X>de&&B(S,de))},[B]),q=k.useCallback((S,I)=>{const{direction:L}=C.current,{layout:U}=w.current;if(!h.current)return;const D=wt(S,h.current);V(D,`Drag handle element not found for id "${S}"`);const H=Qn(L,I);g({dragHandleId:S,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),J=k.useCallback(()=>{g(null)},[]),Z=k.useCallback(S=>{const{panelDataArray:I}=w.current,L=Oe(I,S);L>=0&&(I.splice(L,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,b())},[b]),A=k.useMemo(()=>({collapsePanel:M,direction:l,dragState:p,expandPanel:O,getPanelSize:T,getPanelStyle:v,groupId:m,isPanelCollapsed:$,isPanelExpanded:K,reevaluatePanelConstraints:G,registerPanel:F,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:J,unregisterPanel:Z,panelGroupElement:h.current}),[M,p,l,O,T,v,m,$,K,G,F,_,B,q,J,Z]),W={display:"flex",flexDirection:l==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(bt.Provider,{value:A},k.createElement(f,{...u,children:e,className:n,id:i,ref:h,style:{...W,...d},[ne.group]:"",[ne.groupDirection]:l,[ne.groupId]:m}))}const ts=k.forwardRef((t,e)=>k.createElement(es,{...t,forwardedRef:e}));es.displayName="PanelGroup";ts.displayName="forwardRef(PanelGroup)";function Oe(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function $e(t,e,n){const l=Oe(t,e),i=l===t.length-1?[l-1,l]:[l,l+1],o=n[l];return{...e.constraints,panelSize:o,pivotIndices:i}}function Il({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:l}){k.useEffect(()=>{if(t||n==null||l==null)return;const r=wt(e,l);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(),n(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(ne.groupId);V(a,`No group element found for id "${a}"`);const c=Ge(a,l),d=Gn(a,e,l);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)}},[l,t,e,n])}function ns({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:l,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:m=0,tagName:h="div",...p}){var g,y;const x=k.useRef(null),b=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{b.current.onClick=o,b.current.onDragging=a,b.current.onPointerDown=d,b.current.onPointerUp=f});const j=k.useContext(bt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:N,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:O}=j,T=Wt(r),[v,$]=k.useState("inactive"),[K,F]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Ee(()=>{G.current.state=v}),k.useEffect(()=>{if(n)B(null);else{const A=C(T);B(()=>A)}},[n,T,C]);const q=(g=l?.coarse)!==null&&g!==void 0?g:15,J=(y=l?.fine)!==null&&y!==void 0?y:5;k.useEffect(()=>{if(n||_==null)return;const A=x.current;V(A,"Element ref not attached");let W=!1;return jl(T,A,z,{coarse:q,fine:J},(I,L,U)=>{if(!L){$("inactive");return}switch(I){case"down":{$("drag"),W=!1,V(U,'Expected event to be defined for "down" action'),w(T,U);const{onDragging:D,onPointerDown:H}=b.current;D?.(!0),H?.();break}case"move":{const{state:D}=G.current;W=!0,D!=="drag"&&$("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{$("hover"),M();const{onClick:D,onDragging:H,onPointerUp:Q}=b.current;H?.(!1),Q?.(),W||D?.();break}}})},[q,z,n,J,C,T,_,w,M]),Il({disabled:n,handleId:T,resizeHandler:_,panelGroupElement:O});const Z={touchAction:"none",userSelect:"none"};return k.createElement(h,{...p,children:t,className:e,id:r,onBlur:()=>{F(!1),i?.()},onFocus:()=>{F(!0),c?.()},ref:x,role:"separator",style:{...Z,...u},tabIndex:m,[ne.groupDirection]:z,[ne.groupId]:N,[ne.resizeHandle]:"",[ne.resizeHandleActive]:v==="drag"?"pointer":K?"keyboard":void 0,[ne.resizeHandleEnabled]:!n,[ne.resizeHandleId]:T,[ne.resizeHandleState]:v})}ns.displayName="PanelResizeHandle";function Ll(t){const e=R.c(10);let n,l,r;e[0]!==t?({className:n,ref:r,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==l||e[7]!==r||e[8]!==i?(o=s.jsx(ts,{ref:r,"data-slot":"resizable-panel-group",className:i,...l}),e[6]=l,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function cn(t){const e=R.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let l;return e[2]!==n?(l=s.jsx(In,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=l):l=e[3],l}function Fl(t){const e=R.c(12);let n,l,r;e[0]!==t?({withHandle:r,className:n,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&s.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:s.jsx($s,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==l||e[9]!==i||e[10]!==o?(a=s.jsx(ns,{"data-slot":"resizable-handle",className:i,...l,children:o}),e[8]=l,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function _l(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function Ul(t){if(_l(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function Bl(t){try{return decodeURIComponent(t)}catch{return t}}function Hl(t){return Ul(t),encodeURIComponent(t)}function ql(t){return`.deco/blocks/${Hl(t)}.json`}function bo(t){return`/${ql(t)}`}const vo=1e4,Wl=3;function It(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function Vt(t){return t.startsWith("/")?t.slice(1):t}function ht(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function Kl(t){const e=ht(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function yo(t,e){const n=e.replace(/^\/+|\/+$/g,"");return ht(n?`${t==="/"?"":t}/${n}`:t)}function wo(t,e){return e==="directory"?t:Kl(t)}function jo(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function Gl(t){const e=Vt(t);return e?e.split("/").filter(Boolean).length:0}function ko(t,e,n,l=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:l||!!n.truncated}}function So(t,e){return Gl(t)>=Wl&&!e.has(t)}function zo(t,e,n=[]){const l=Vt(t);if(e.includes(l)||n.includes(l))return!0;if(!l)return!1;const r=`${l}/`;return e.some(i=>i.startsWith(r))||n.some(i=>i.startsWith(r))}function No(t){const e=Vt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const l=e.slice(n.length,-5);return Bl(l)}function Vl(t){if(!t)return"plaintext";const e=t.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function Co(t){const e=It(t).split("/").filter(Boolean),n=["/"];let l="";for(const r of e.slice(0,-1))l+=`/${r}`,n.push(l);return n}function $o(t,e=[]){const n={children:[]},l=i=>{const a=It(i).split("/").filter(Boolean);let c=n,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(m=>m.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 t){const a=It(i).split("/").filter(Boolean);let c=n,d="";a.forEach((f,u)=>{d+=`/${f}`;const m=u===a.length-1;let h=c.children.find(p=>p.name===f);h||(h={name:f,path:d,kind:m?"file":"directory",children:[]},c.children.push(h)),c=h})}for(const i of e)l(ht(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(n.children),n.children}function Xl(t,e,n=0){const l=[];for(const r of t)r.name!==".gitkeep"&&(l.push({node:r,depth:n}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&l.push(...Xl(r.children,e,n+1)));return l}function Po(t){return t.split(`
|
|
2
2
|
`).map(e=>{const n=e.match(/^\d+\t(.*)/);return n?n[1]:e}).join(`
|
|
3
3
|
`)}al.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function Ql(t){const e=R.c(11),{value:n,filename:l}=t,[r]=ws(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==l?(o=Vl(l),e[0]=l,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(js,{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 m;return e[6]!==l||e[7]!==o||e[8]!==a||e[9]!==n?(m=s.jsx(cl,{path:l,language:o,value:n,theme:a,loading:c,options:u},l),e[6]=l,e[7]=o,e[8]=a,e[9]=n,e[10]=m):m=e[10],m}function ss(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Yl=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Zl=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),dn=2*1024*1024;function Jl(t,e){const n=t.split(".").pop()?.toLowerCase()??"";return Yl.has(n)?"image":n==="pdf"?"pdf":n==="html"||n==="htm"?"html":n==="md"||n==="markdown"?e<=dn?"markdown":"download":Zl.has(n)&&e<=dn?"text":"download"}function ls(){const t=R.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe,{className:"h-6 w-2/3"}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(oe,{className:"h-3 w-full"}),s.jsx(oe,{className:"h-3 w-5/6"}),s.jsx(oe,{className:"h-3 w-2/3"})]})]})}),t[1]=n):n=t[1],n}function rs(t){const e=R.c(20),{file:n,note:l}=t;let r;e[0]!==n.filename?(r=s.jsx(we,{filename:n.filename,className:"h-12 w-10"}),e[0]=n.filename,e[1]=r):r=e[1];let i;e[2]!==n.filename?(i=s.jsx("span",{className:"text-sm font-medium text-foreground",children:n.filename}),e[2]=n.filename,e[3]=i):i=e[3];let o;e[4]!==n.size?(o=ss(n.size),e[4]=n.size,e[5]=o):o=e[5];const a=l?` · ${l}`:"";let c;e[6]!==o||e[7]!==a?(c=s.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=s.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=s.jsx(qe,{size:14}),e[12]=f):f=e[12];let u;e[13]!==n.downloadUrl||e[14]!==n.filename?(u=s.jsx(Y,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:n.downloadUrl,download:n.filename,children:[f,"Download"]})}),e[13]=n.downloadUrl,e[14]=n.filename,e[15]=u):u=e[15];let m;return e[16]!==r||e[17]!==d||e[18]!==u?(m=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.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]=m):m=e[19],m}function un(t){const e=R.c(16),{file:n,markdown:l}=t;let r;e[0]!==n.downloadUrl?(r=se.fileText(n.downloadUrl),e[0]=n.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==n.downloadUrl?(i=async()=>{const u=await fetch(n.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=n.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==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}=me(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ls,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==n?(u=s.jsx(rs,{file:n,note:"preview unavailable"}),e[8]=n,e[9]=u):u=e[9],u}if(l){const u=`file-preview-${n.key}`;let m;return e[10]!==a||e[11]!==u?(m=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(Bt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=m):m=e[12],m}let f;return e[13]!==a||e[14]!==n.filename?(f=s.jsx(Ql,{value:a,filename:n.filename}),e[13]=a,e[14]=n.filename,e[15]=f):f=e[15],f}function is(t){const e=R.c(15),{file:n}=t;switch(Jl(n.filename,n.size)){case"image":{let r;return e[0]!==n.downloadUrl||e[1]!==n.filename?(r=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:n.downloadUrl,alt:n.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=n.downloadUrl,e[1]=n.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==n.downloadUrl||e[4]!==n.filename?(r=s.jsx("iframe",{src:n.downloadUrl,title:n.filename,className:"block h-full w-full bg-white"}),e[3]=n.downloadUrl,e[4]=n.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==n.downloadUrl||e[7]!==n.filename?(r=s.jsx("iframe",{src:n.downloadUrl,title:n.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=n.downloadUrl,e[7]=n.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==n?(r=s.jsx(un,{file:n,markdown:!0}),e[9]=n,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==n?(r=s.jsx(un,{file:n,markdown:!1}),e[11]=n,e[12]=r):r=e[12],r}default:{let r;return e[13]!==n?(r=s.jsx(rs,{file:n}),e[13]=n,e[14]=r):r=e[14],r}}}function er(t){const e=R.c(40),{readUrl:n,editor:l,downloadName:r,trailing:i}=t;let o;e[0]!==n?(o=new URL(n,window.location.origin).toString(),e[0]=n,e[1]=o):o=e[1];const a=o;let c;e[2]!==l?(c=l.deckDetected&&s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:l.railOpen?"secondary":"ghost",size:"icon","aria-label":l.railOpen?"Hide slide list":"Show slide list",onClick:()=>l.setRailOpen(!l.railOpen),children:s.jsx(dl,{size:14})})}),s.jsx(be,{side:"bottom",children:l.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=l,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=s.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=s.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 m;e[12]!==l.agentUpdated||e[13]!==l.reload?(m=l.agentUpdated&&s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:l.reload,children:[s.jsx(yn,{size:12}),"Agent updated — reload"]})}),s.jsx(be,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=l.agentUpdated,e[13]=l.reload,e[14]=m):m=e[14];let h;e[15]!==l.saving?(h=l.saving&&s.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=l.saving,e[16]=h):h=e[16];let p;e[17]!==l?(p=l.deckDetected&&l.writable&&s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:l.editMode?"secondary":"ghost",size:"icon","aria-label":l.editMode?"Done editing":"Edit inline",className:ae(l.editMode&&"text-primary"),onClick:()=>l.setEditMode(!l.editMode),children:s.jsx(Ps,{size:14})})}),s.jsx(be,{side:"bottom",children:l.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=l,e[18]=p):p=e[18];let g;e[19]!==a||e[20]!==r||e[21]!==l.deckDetected?(g=l.deckDetected?s.jsxs(Ze,{children:[s.jsx(Je,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon","aria-label":"Download",children:s.jsx(qe,{size:14})})}),s.jsxs(et,{align:"end",children:[s.jsxs(pe,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[s.jsx(Es,{size:14}),"Export as PDF"]}),s.jsx(pe,{asChild:!0,children:s.jsxs("a",{href:a,download:r,children:[s.jsx(Ds,{size:14}),"Download HTML"]})})]})]}):s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:s.jsx("a",{href:a,download:r,children:s.jsx(qe,{size:14})})})}),s.jsx(be,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=r,e[21]=l.deckDetected,e[22]=g):g=e[22];let y;e[23]!==a?(y=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=y):y=e[24];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(An,{size:14}),e[25]=x):x=e[25];let b;e[26]!==y?(b=s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:y,children:x})}),e[26]=y,e[27]=b):b=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(be,{side:"bottom",children:"Open in new tab"}),e[28]=j):j=e[28];let z;e[29]!==b?(z=s.jsxs(xe,{children:[b,j]}),e[29]=b,e[30]=z):z=e[30];let N;return e[31]!==z||e[32]!==c||e[33]!==u||e[34]!==m||e[35]!==h||e[36]!==p||e[37]!==g||e[38]!==i?(N=s.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,m,h,p,g,z,i]}),e[31]=z,e[32]=c,e[33]=u,e[34]=m,e[35]=h,e[36]=p,e[37]=g,e[38]=i,e[39]=N):N=e[39],N}const Ae=1;function tr(t){if(typeof t!="object"||t===null||t.v!==Ae||t.source!=="deck-viewer")return null;const e=t;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class ke extends Error{constructor(e,n){super(e),this.code=n,this.name="DeckOpError"}code}function os(t){return[...t.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function nr(t){const n=new DOMParser().parseFromString(t,"text/html").querySelector("deck-viewer");return n?os(n).length:null}function sr(t,e){const n=new DOMParser().parseFromString(t,"text/html"),l=n.querySelector("deck-viewer");if(!l)throw new ke("no <deck-viewer> element in source","no-viewer");const r=os(l),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new ke(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new ke("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 ke(`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;l.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ke(`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 ke("replace html has no root element","bad-op");o.replaceWith(n.importNode(d,!0));break}default:throw new ke(`unknown op kind: ${e.kind}`,"bad-op")}return`${t.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
4
|
`:""}${n.documentElement.outerHTML}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-BkUUjL3Q.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 +1 @@
|
|
|
1
|
-
import{bz as _}from"./index-
|
|
1
|
+
import{bz as _}from"./index-BkUUjL3Q.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
|