@shepai/cli 1.194.3-pr586.23e3597 → 1.194.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/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +2 -2
- package/web/.next/required-server-files.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +36 -36
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +34 -34
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +37 -37
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +34 -34
- package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/control-center/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/control-center/page/server-reference-manifest.json +34 -34
- package/web/.next/server/app/(dashboard)/control-center/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/control-center/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +37 -37
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/application/[id]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +17 -17
- package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
- package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/applications/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/applications/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/applications/page.js.nft.json +1 -1
- package/web/.next/server/app/applications/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/features/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/features/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/features/page.js.nft.json +1 -1
- package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/items/[itemId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/items/[itemId]/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/projects/[slug]/items/[itemId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/pages/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/pages/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/projects/[slug]/pages/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/settings/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/settings/page/server-reference-manifest.json +17 -17
- package/web/.next/server/app/projects/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/settings/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/skills/page/server-reference-manifest.json +16 -16
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/tools/page/server-reference-manifest.json +14 -14
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/version/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__10e976f3._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_99cb41a4.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_99cb41a4.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_3bcbcc2f.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_3bcbcc2f.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_059f6735.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_059f6735.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_control-center_page_actions_86edeb51.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_control-center_page_actions_86edeb51.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_items_[itemId]_work-item-detail-client_tsx_d2e02407._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_items_[itemId]_work-item-detail-client_tsx_d2e02407._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_settings_project-settings-client_tsx_e8b85ddc._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_settings_project-settings-client_tsx_e8b85ddc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__012a0e7d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__012a0e7d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0462fa34._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0462fa34._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1973d644._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a86d5fe._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a86d5fe._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__30326387._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__30326387._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3438c354._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3438c354._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__361129f0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__361129f0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4adb4a94._.js +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4adb4a94._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c25ef9b._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c25ef9b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5f9704._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5f9704._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__638955bc._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__78e1366f._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__78e1366f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__0d04b8e2._.js → [root-of-the-server]__8ccbc357._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__0d04b8e2._.js.map → [root-of-the-server]__8ccbc357._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__97b6831c._.js +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9b16348d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9b16348d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1e902e32._.js → [root-of-the-server]__b2926b69._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1e902e32._.js.map → [root-of-the-server]__b2926b69._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3bc9689._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3bc9689._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba8cbee2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba8cbee2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dbde193f._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dbde193f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f6adb460._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f6adb460._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_101de7c3._.js +1 -1
- package/web/.next/server/chunks/ssr/_101de7c3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_12ba4a07._.js +1 -1
- package/web/.next/server/chunks/ssr/_12ba4a07._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_15634d5b._.js +1 -1
- package/web/.next/server/chunks/ssr/_15634d5b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_27c2f774._.js +1 -1
- package/web/.next/server/chunks/ssr/_27c2f774._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_30787024._.js +1 -1
- package/web/.next/server/chunks/ssr/_30787024._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_3bd60fa3._.js +1 -1
- package/web/.next/server/chunks/ssr/_402d53bf._.js +1 -1
- package/web/.next/server/chunks/ssr/_402d53bf._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_6868b4b1._.js +1 -1
- package/web/.next/server/chunks/ssr/{_3906be1d._.js → _759e7aaa._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_3906be1d._.js.map → _759e7aaa._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_12f37a55._.js → _7cd98562._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_12f37a55._.js.map → _7cd98562._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_805ae1aa._.js +1 -1
- package/web/.next/server/chunks/ssr/_805ae1aa._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_8a700ff4._.js +1 -1
- package/web/.next/server/chunks/ssr/_8a700ff4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_8f4f8aa1._.js +1 -1
- package/web/.next/server/chunks/ssr/_8f4f8aa1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_fe68c1e2._.js → _9df39bfe._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_fe68c1e2._.js.map → _9df39bfe._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_1055ec32._.js → _a31c3a42._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_1055ec32._.js.map → _a31c3a42._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_b40a4fc3._.js +1 -1
- package/web/.next/server/chunks/ssr/_b40a4fc3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_c44ec376._.js +1 -1
- package/web/.next/server/chunks/ssr/_c44ec376._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_cd641c61._.js +1 -1
- package/web/.next/server/chunks/ssr/_cd641c61._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d53224a9._.js +1 -1
- package/web/.next/server/chunks/ssr/_d53224a9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_60246ee2._.js → _de93c45c._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_60246ee2._.js.map → _de93c45c._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_8ee3123d._.js → _e0e86221._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_8ee3123d._.js.map → _e0e86221._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_e6271303._.js +1 -1
- package/web/.next/server/chunks/ssr/_e6271303._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_ed8fd56c._.js +1 -1
- package/web/.next/server/chunks/ssr/_ed8fd56c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f602cc9f._.js +1 -1
- package/web/.next/server/chunks/ssr/_f602cc9f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_05bba4dc._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_05bba4dc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_43451480._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_43451480._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_4b306bb3._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_4b306bb3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{src_presentation_web_1f525bd4._.js → src_presentation_web_5c844690._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_1f525bd4._.js.map → src_presentation_web_5c844690._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_81dd84ae._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_81dd84ae._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_7ab26c98._.js +3 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_adopt-local-directory_ts_75f1f28c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_adopt-local-directory_ts_75f1f28c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_approve-feature_ts_9453ce8b._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-directory_ts_1209d917._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-directory_ts_1209d917._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_features_feature-tree-page-client_tsx_34c5cbbf._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b504e3e2._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b504e3e2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b5838705._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b5838705._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b6b4baa1._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b6b4baa1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c3d0de23._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c3d0de23._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_66643378._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_66643378._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{src_presentation_web_dc5ba3cf._.js → src_presentation_web_e596fda8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_dc5ba3cf._.js.map → src_presentation_web_e596fda8._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_fc29283f._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_fc29283f._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +98 -98
- package/web/.next/static/chunks/{1d72f699758c6d3a.js → 089bd320dc4b1575.js} +1 -1
- package/web/.next/static/chunks/{913f8613ffba3e5c.js → 0fc17b433aa79b46.js} +1 -1
- package/web/.next/static/chunks/105bb00cb34ccd38.js +1 -0
- package/web/.next/static/chunks/{d5b120471ecd81c3.js → 18be29465f4a1def.js} +1 -1
- package/web/.next/static/chunks/1f42ad4a0931acd3.js +1 -0
- package/web/.next/static/chunks/{dddb3a86ceab0299.js → 298594ed8c886cbf.js} +1 -1
- package/web/.next/static/chunks/{6d5150e080c53d51.js → 33317caa5c5abd6b.js} +1 -1
- package/web/.next/static/chunks/{6ac3de2ae9fd6923.js → 34593f30cd188c4a.js} +1 -1
- package/web/.next/static/chunks/{3be081e466e5c38f.js → 37ea114b14bec27f.js} +1 -1
- package/web/.next/static/chunks/{5d7f74c25dacc25c.js → 3c250fbfb60ee24f.js} +1 -1
- package/web/.next/static/chunks/{79865a986c6f7b78.js → 3c98769f57d9cab5.js} +1 -1
- package/web/.next/static/chunks/{88de900956cc7c59.js → 3d2af4aff402ec27.js} +1 -1
- package/web/.next/static/chunks/{60fd7ec231b71fe6.js → 424eadec8be0f312.js} +1 -1
- package/web/.next/static/chunks/{600304d205fb6d78.js → 4936903aae95a25f.js} +1 -1
- package/web/.next/static/chunks/4d47b81085b62d87.js +1 -0
- package/web/.next/static/chunks/{127b0c5b93da3ad5.js → 4e2de41996b256eb.js} +1 -1
- package/web/.next/static/chunks/{e09a852e65d50ea9.js → 512f87d97c19d83c.js} +1 -1
- package/web/.next/static/chunks/{d8a8d0ea290869a7.js → 51de8a6b0bdc70c9.js} +1 -1
- package/web/.next/static/chunks/57a7139e142ed273.js +1 -0
- package/web/.next/static/chunks/{31eb52265493ef76.js → 61757ff9dcbbd032.js} +1 -1
- package/web/.next/static/chunks/674e4d59f39b85e2.js +1 -0
- package/web/.next/static/chunks/93ea366bd74183ac.js +1 -0
- package/web/.next/static/chunks/{b0658275cec08831.js → ae7430dbb2e98782.js} +1 -1
- package/web/.next/static/chunks/{07361c8c12a5843e.js → b2abfb9855755aa4.js} +1 -1
- package/web/.next/static/chunks/{eb53dfcd51b8c265.js → c3d369f4301955a1.js} +1 -1
- package/web/.next/static/chunks/{07c57742ecdf243e.js → cd057f6e3acdf607.js} +1 -1
- package/web/.next/static/chunks/{afc90b9d319294e0.js → d5563287e193adaa.js} +1 -1
- package/web/.next/static/chunks/{c777b5c3be68f05b.js → d861a3318a70ff49.js} +1 -1
- package/web/.next/static/chunks/{88cebfaa6dd82cc7.js → da7737afc53217ed.js} +3 -3
- package/web/.next/static/chunks/{4cecc66a490b21f7.js → e115c6778a53c0b0.js} +1 -1
- package/web/.next/static/chunks/{39b106ba3f6b82ea.js → ea904b744cea3776.js} +1 -1
- package/web/.next/static/chunks/{6ae0cf4dd1f41683.js → f0c7b0a956112e63.js} +1 -1
- package/web/.next/static/chunks/{a59dfab21ca0ba91.js → f31db8ecfc2d481e.js} +1 -1
- package/web/.next/static/chunks/{a98de0590c6ebab9.js → f8a21f4841d519ff.js} +1 -1
- package/web/.next/static/chunks/00f78bad91244b81.js +0 -1
- package/web/.next/static/chunks/55b11c087456741a.js +0 -1
- package/web/.next/static/chunks/64b32c7716c3cde3.js +0 -1
- package/web/.next/static/chunks/83b6dc76bfe00b00.js +0 -1
- package/web/.next/static/chunks/a29ef3fcc3085a7d.js +0 -1
- package/web/.next/static/chunks/b6f72b83e6cf64bc.js +0 -1
- /package/web/.next/static/{VT3SIc3eQMRpCzfl2igIb → wfZhz3kojQGb8pd6OW9Lk}/_buildManifest.js +0 -0
- /package/web/.next/static/{VT3SIc3eQMRpCzfl2igIb → wfZhz3kojQGb8pd6OW9Lk}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{VT3SIc3eQMRpCzfl2igIb → wfZhz3kojQGb8pd6OW9Lk}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,917840,e=>{"use strict";var t=e.i(152155),r=e.i(711434),n=e.i(360112),a=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),o=a((e,t)=>{var r=Object.defineProperty,n=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a=(e,t,n)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?r(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n},o=n((e,t)=>{function r(e,t){e[t]?e[t]++:e[t]=1}function n(e,t){--e[t]||delete e[t]}function o(e,t,r,n){var a=""+t,o=""+r;if(!e&&a>o){var s=a;a=o,o=s}return a+"\x01"+o+"\x01"+(void 0===n?"\0":n)}function s(e,t){return o(e,t.v,t.w,t.name)}t.exports=class{constructor(e){a(this,"_isDirected",!0),a(this,"_isMultigraph",!1),a(this,"_isCompound",!1),a(this,"_label"),a(this,"_defaultNodeLabelFn",()=>{}),a(this,"_defaultEdgeLabelFn",()=>{}),a(this,"_nodes",{}),a(this,"_in",{}),a(this,"_preds",{}),a(this,"_out",{}),a(this,"_sucs",{}),a(this,"_edgeObjs",{}),a(this,"_edgeLabels",{}),a(this,"_nodeCount",0),a(this,"_edgeCount",0),a(this,"_parent"),a(this,"_children"),e&&(this._isDirected=!Object.hasOwn(e,"directed")||e.directed,this._isMultigraph=!!Object.hasOwn(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.hasOwn(e,"compound")&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,"function"!=typeof e&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._in[t]).length)}sinks(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._out[t]).length)}setNodes(e,t){var r=arguments,n=this;return e.forEach(function(e){r.length>1?n.setNode(e,t):n.setNode(e)}),this}setNode(e,t){return Object.hasOwn(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return Object.hasOwn(this._nodes,e)}removeNode(e){var t=this;if(Object.hasOwn(this._nodes,e)){var r=e=>t.removeEdge(t._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(e){t.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(r),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(void 0===t)t="\0";else{t+="";for(var r=t;void 0!==r;r=this.parent(r))if(r===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}}children(e="\0"){if(this._isCompound){var t=this._children[e];if(t)return Object.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return Object.keys(t)}successors(e){var t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){var t=this.predecessors(e);if(t){let n=new Set(t);for(var r of this.successors(e))n.add(r);return Array.from(n.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;Object.entries(this._nodes).forEach(function([r,n]){e(r)&&t.setNode(r,n)}),Object.values(this._edgeObjs).forEach(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var n={};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,function e(a){var o=r.parent(a);return void 0===o||t.hasNode(o)?(n[a]=o,o):o in n?n[o]:e(o)}(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,"function"!=typeof e&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){var r=this,n=arguments;return e.reduce(function(e,a){return n.length>1?r.setEdge(e,a,t):r.setEdge(e,a),a}),this}setEdge(){var e,t,n,a,s=!1,i=arguments[0];"object"==typeof i&&null!==i&&"v"in i?(e=i.v,t=i.w,n=i.name,2==arguments.length&&(a=arguments[1],s=!0)):(e=i,t=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],s=!0)),e=""+e,t=""+t,void 0!==n&&(n=""+n);var l=o(this._isDirected,e,t,n);if(Object.hasOwn(this._edgeLabels,l))return s&&(this._edgeLabels[l]=a),this;if(void 0!==n&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=s?a:this._defaultEdgeLabelFn(e,t,n);var d=function(e,t,r,n){var a=""+t,o=""+r;if(!e&&a>o){var s=a;a=o,o=s}var i={v:a,w:o};return n&&(i.name=n),i}(this._isDirected,e,t,n);return e=d.v,t=d.w,Object.freeze(d),this._edgeObjs[l]=d,r(this._preds[t],e),r(this._sucs[e],t),this._in[t][l]=d,this._out[e][l]=d,this._edgeCount++,this}edge(e,t,r){var n=1==arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,t,r);return this._edgeLabels[n]}edgeAsObj(){let e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,t,r){var n=1==arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,t,r);return Object.hasOwn(this._edgeLabels,n)}removeEdge(e,t,r){var a=1==arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,t,r),i=this._edgeObjs[a];return i&&(e=i.v,t=i.w,delete this._edgeLabels[a],delete this._edgeObjs[a],n(this._preds[t],e),n(this._sucs[e],t),delete this._in[t][a],delete this._out[e][a],this._edgeCount--),this}inEdges(e,t){return this.isDirected()?this.filterEdges(this._in[e],e,t):this.nodeEdges(e,t)}outEdges(e,t){return this.isDirected()?this.filterEdges(this._out[e],e,t):this.nodeEdges(e,t)}nodeEdges(e,t){if(e in this._nodes)return this.filterEdges({...this._in[e],...this._out[e]},e,t)}filterEdges(e,t,r){if(e){var n=Object.values(e);return r?n.filter(function(e){return e.v===t&&e.w===r||e.v===r&&e.w===t}):n}}}}),s=n((e,t)=>{t.exports="3.0.2"}),i=n((e,t)=>{t.exports={Graph:o(),version:s()}}),l=n((e,t)=>{var r=o();t.exports={write:function(e){var t,r,n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e).nodes().map(function(e){var r=t.node(e),n=t.parent(e),a={v:e};return void 0!==r&&(a.value=r),void 0!==n&&(a.parent=n),a}),edges:(r=e).edges().map(function(e){var t=r.edge(e),n={v:e.v,w:e.w};return void 0!==e.name&&(n.name=e.name),void 0!==t&&(n.value=t),n})};return void 0!==e.graph()&&(n.value=structuredClone(e.graph())),n},read:function(e){var t=new r(e.options).setGraph(e.value);return e.nodes.forEach(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}}),d=n((e,t)=>{t.exports=function(e,t,n,a){return function(e,t,r,n){var a={},o=!0,s=0,i=e.nodes(),l=function(e){var t=r(e);a[e.v].distance+t<a[e.w].distance&&(a[e.w]={distance:a[e.v].distance+t,predecessor:e.v},o=!0)},d=function(){i.forEach(function(e){n(e).forEach(function(t){var r=t.v===e?t.v:t.w,n=r===t.v?t.w:t.v;l({v:r,w:n})})})};i.forEach(function(e){a[e]={distance:e===t?0:1/0}});for(var c=i.length,u=1;u<c&&(o=!1,s++,d(),o);u++);if(s===c-1&&(o=!1,d(),o))throw Error("The graph contains a negative weight cycle");return a}(e,String(t),n||r,a||function(t){return e.outEdges(t)})};var r=()=>1}),c=n((e,t)=>{t.exports=function(e){var t,r={},n=[];return e.nodes().forEach(function(a){t=[],function n(a){Object.hasOwn(r,a)||(r[a]=!0,t.push(a),e.successors(a).forEach(n),e.predecessors(a).forEach(n))}(a),t.length&&n.push(t)}),n}}),u=n((e,t)=>{t.exports=class{constructor(){a(this,"_arr",[]),a(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return Object.hasOwn(this._keyIndices,e)}priority(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key}add(e,t){var r=this._keyIndices;if(!Object.hasOwn(r,e=String(e))){var n=this._arr,a=n.length;return r[e]=a,n.push({key:e,priority:t}),this._decrease(a),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){var r=this._keyIndices[e];if(t>this._arr[r].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[r].priority+" New: "+t);this._arr[r].priority=t,this._decrease(r)}_heapify(e){var t=this._arr,r=2*e,n=r+1,a=e;r<t.length&&(a=t[r].priority<t[a].priority?r:a,n<t.length&&(a=t[n].priority<t[a].priority?n:a),a!==e&&(this._swap(e,a),this._heapify(a)))}_decrease(e){for(var t,r=this._arr,n=r[e].priority;0!==e&&!(r[t=e>>1].priority<n);)this._swap(e,t),e=t}_swap(e,t){var r=this._arr,n=this._keyIndices,a=r[e],o=r[t];r[e]=o,r[t]=a,n[o.key]=e,n[a.key]=t}}}),h=n((e,t)=>{var r=u();t.exports=function(e,t,a,o){return function(e,t,n,a){var o,s,i={},l=new r,d=function(e){var t=e.v!==o?e.v:e.w,r=i[t],a=n(e),d=s.distance+a;if(a<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+a);d<r.distance&&(r.distance=d,r.predecessor=o,l.decrease(t,d))};for(e.nodes().forEach(function(e){var r=e===t?0:1/0;i[e]={distance:r},l.add(e,r)});l.size()>0&&(s=i[o=l.removeMin()]).distance!==1/0;)a(o).forEach(d);return i}(e,String(t),a||n,o||function(t){return e.outEdges(t)})};var n=()=>1}),p=n((e,t)=>{var r=h();t.exports=function(e,t,n){return e.nodes().reduce(function(a,o){return a[o]=r(e,o,t,n),a},{})}}),f=n((e,t)=>{t.exports=function(e,t,r){if(void 0!==e[t].predecessor)throw Error("Invalid source vertex");if(void 0===e[r].predecessor&&r!==t)throw Error("Invalid destination vertex");return{weight:e[r].distance,path:function(e,t,r){for(var n=[],a=r;a!==t;)n.push(a),a=e[a].predecessor;return n.push(t),n.reverse()}(e,t,r)}}}),m=n((e,t)=>{t.exports=function(e){var t=0,r=[],n={},a=[];return e.nodes().forEach(function(o){Object.hasOwn(n,o)||function o(s){var i=n[s]={onStack:!0,lowlink:t,index:t++};if(r.push(s),e.successors(s).forEach(function(e){Object.hasOwn(n,e)?n[e].onStack&&(i.lowlink=Math.min(i.lowlink,n[e].index)):(o(e),i.lowlink=Math.min(i.lowlink,n[e].lowlink))}),i.lowlink===i.index){var l,d=[];do n[l=r.pop()].onStack=!1,d.push(l);while(s!==l)a.push(d)}}(o)}),a}}),g=n((e,t)=>{var r=m();t.exports=function(e){return r(e).filter(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}}),x=n((e,t)=>{t.exports=function(e,t,n){var a,o,s,i,l;return a=e,o=t||r,s=n||function(t){return e.outEdges(t)},i={},(l=a.nodes()).forEach(function(e){i[e]={},i[e][e]={distance:0},l.forEach(function(t){e!==t&&(i[e][t]={distance:1/0})}),s(e).forEach(function(t){var r=t.v===e?t.w:t.v,n=o(t);i[e][r]={distance:n,predecessor:e}})}),l.forEach(function(e){var t=i[e];l.forEach(function(r){var n=i[r];l.forEach(function(r){var a=n[e],o=t[r],s=n[r],i=a.distance+o.distance;i<s.distance&&(s.distance=i,s.predecessor=o.predecessor)})})}),i};var r=()=>1}),v=n((e,t)=>{function r(e){var t={},r={},a=[];if(e.sinks().forEach(function o(s){if(Object.hasOwn(r,s))throw new n;Object.hasOwn(t,s)||(r[s]=!0,t[s]=!0,e.predecessors(s).forEach(o),delete r[s],a.push(s))}),Object.keys(t).length!==e.nodeCount())throw new n;return a}var n=class extends Error{constructor(){super(...arguments)}};t.exports=r,r.CycleException=n}),b=n((e,t)=>{var r=v();t.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}}),y=n((e,t)=>{t.exports=function(e,t,r,n,a){Array.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),s={};return t.forEach(function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);a=function e(t,r,n,a,o,s,i){return Object.hasOwn(a,r)||(a[r]=!0,n||(i=s(i,r)),o(r).forEach(function(r){i=e(t,r,n,a,o,s,i)}),n&&(i=s(i,r))),i}(e,t,"post"===r,s,o,n,a)}),a}}),w=n((e,t)=>{var r=y();t.exports=function(e,t,n){return r(e,t,n,function(e,t){return e.push(t),e},[])}}),j=n((e,t)=>{var r=w();t.exports=function(e,t){return r(e,t,"post")}}),k=n((e,t)=>{var r=w();t.exports=function(e,t){return r(e,t,"pre")}}),N=n((e,t)=>{var r=o(),n=u();t.exports=function(e,t){var a,o=new r,s={},i=new n;function l(e){var r=e.v===a?e.w:e.v,n=i.priority(r);if(void 0!==n){var o=t(e);o<n&&(s[r]=a,i.decrease(r,o))}}if(0===e.nodeCount())return o;e.nodes().forEach(function(e){i.add(e,1/0),o.setNode(e)}),i.decrease(e.nodes()[0],0);for(var d=!1;i.size()>0;){if(Object.hasOwn(s,a=i.removeMin()))o.setEdge(a,s[a]);else{if(d)throw Error("Input graph is not connected: "+e);d=!0}e.nodeEdges(a).forEach(l)}return o}}),C=n((e,t)=>{var r=h(),n=d();t.exports=function(e,t,a,o){return function(e,t,a,o){if(void 0===a)return r(e,t,a,o);for(var s=!1,i=e.nodes(),l=0;l<i.length;l++){for(var d=o(i[l]),c=0;c<d.length;c++){var u=d[c],h=u.v===i[l]?u.v:u.w,p=h===u.v?u.w:u.v;0>a({v:h,w:p})&&(s=!0)}if(s)return n(e,t,a,o)}return r(e,t,a,o)}(e,t,a,o||function(t){return e.outEdges(t)})}}),E=n((e,t)=>{t.exports={bellmanFord:d(),components:c(),dijkstra:h(),dijkstraAll:p(),extractPath:f(),findCycles:g(),floydWarshall:x(),isAcyclic:b(),postorder:j(),preorder:k(),prim:N(),shortestPaths:C(),reduce:y(),tarjan:m(),topsort:v()}}),S=i();t.exports={Graph:S.Graph,json:l(),alg:E(),version:S.version}}),s=a((e,t)=>{function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function n(e,t){if("_next"!==e&&"_prev"!==e)return t}t.exports=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return r(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,r=t._prev;for(;r!==t;)e.push(JSON.stringify(r,n)),r=r._prev;return"["+e.join(", ")+"]"}}}),i=a((e,t)=>{var r=o().Graph,n=s();t.exports=function(e,t){var o,s;let d,c,u,h,p;if(1>=e.nodeCount())return[];let f=(o=e,s=t||a,d=new r,c=0,u=0,o.nodes().forEach(e=>{d.setNode(e,{v:e,in:0,out:0})}),o.edges().forEach(e=>{let t=d.edge(e.v,e.w)||0,r=s(e);d.setEdge(e.v,e.w,t+r),u=Math.max(u,d.node(e.v).out+=r),c=Math.max(c,d.node(e.w).in+=r)}),h=(function(e){let t=[];for(let r=0;r<e;r++)t.push(r);return t})(u+c+3).map(()=>new n),p=c+1,d.nodes().forEach(e=>{l(h,p,d.node(e))}),{graph:d,buckets:h,zeroIdx:p});return(function(e,t,r){let n=[],a=t[t.length-1],o=t[0],s;for(;e.nodeCount();){for(;s=o.dequeue();)i(e,t,r,s);for(;s=a.dequeue();)i(e,t,r,s);if(e.nodeCount()){for(let a=t.length-2;a>0;--a)if(s=t[a].dequeue()){n=n.concat(i(e,t,r,s,!0));break}}}return n})(f.graph,f.buckets,f.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w))};var a=()=>1;function i(e,t,r,n,a){let o=a?[]:void 0;return e.inEdges(n.v).forEach(n=>{let s=e.edge(n),i=e.node(n.v);a&&o.push({v:n.v,w:n.w}),i.out-=s,l(t,r,i)}),e.outEdges(n.v).forEach(n=>{let a=e.edge(n),o=n.w,s=e.node(o);s.in-=a,l(t,r,s)}),e.removeNode(n.v),o}function l(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}}),l=a((e,t)=>{var r=o().Graph;function n(e,t,r,n){for(var a=n;e.hasNode(a);)a=l(n);return r.dummy=t,e.setNode(a,r),a}t.exports={addBorderNode:function(e,t,r,a){let o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=a),n(e,"border",o,t)},addDummyNode:n,applyWithChunking:a,asNonCompoundGraph:function(e){let t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||t.setNode(r,e.node(r))}),e.edges().forEach(r=>{t.setEdge(r,e.edge(r))}),t},buildLayerMatrix:function(e){let t=d(s(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let n=e.node(r),a=n.rank;void 0!==a&&(t[a][n.order]=r)}),t},intersectRect:function(e,t){let r,n,a=e.x,o=e.y,s=t.x-a,i=t.y-o,l=e.width/2,d=e.height/2;if(!s&&!i)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(i)*l>Math.abs(s)*d?(i<0&&(d=-d),r=d*s/i,n=d):(s<0&&(l=-l),r=l,n=l*i/s),{x:a+r,y:o+n}},mapValues:function(e,t){let r=t;return"string"==typeof t&&(r=e=>e[t]),Object.entries(e).reduce((e,[t,n])=>(e[t]=r(n,t),e),{})},maxRank:s,normalizeRanks:function(e){let t=a(Math.min,e.nodes().map(t=>{let r=e.node(t).rank;return void 0===r?Number.MAX_VALUE:r}));e.nodes().forEach(r=>{let n=e.node(r);Object.hasOwn(n,"rank")&&(n.rank-=t)})},notime:function(e,t){return t()},partition:function(e,t){let r={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?r.lhs.push(e):r.rhs.push(e)}),r},pick:function(e,t){let r={};for(let n of t)void 0!==e[n]&&(r[n]=e[n]);return r},predecessorWeights:function(e){let t=e.nodes().map(t=>{let r={};return e.inEdges(t).forEach(t=>{r[t.v]=(r[t.v]||0)+e.edge(t).weight}),r});return c(e.nodes(),t)},range:d,removeEmptyRanks:function(e){let t=a(Math.min,e.nodes().map(t=>e.node(t).rank).filter(e=>void 0!==e)),r=[];e.nodes().forEach(n=>{let a=e.node(n).rank-t;r[a]||(r[a]=[]),r[a].push(n)});let n=0,o=e.graph().nodeRankFactor;Array.from(r).forEach((t,r)=>{void 0===t&&r%o!=0?--n:void 0!==t&&n&&t.forEach(t=>e.node(t).rank+=n)})},simplify:function(e){let t=new r().setGraph(e.graph());return e.nodes().forEach(r=>t.setNode(r,e.node(r))),e.edges().forEach(r=>{let n=t.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),t},successorWeights:function(e){let t=e.nodes().map(t=>{let r={};return e.outEdges(t).forEach(t=>{r[t.w]=(r[t.w]||0)+e.edge(t).weight}),r});return c(e.nodes(),t)},time:function(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}},uniqueId:l,zipObject:c};function a(e,t){if(!(t.length>65535))return e.apply(null,t);{let r=function(e,t=65535){let r=[];for(let n=0;n<e.length;n+=t){let a=e.slice(n,n+t);r.push(a)}return r}(t);return e.apply(null,r.map(t=>e.apply(null,t)))}}function s(e){return a(Math.max,e.nodes().map(t=>{let r=e.node(t).rank;return void 0===r?5e-324:r}))}var i=0;function l(e){return e+""+ ++i}function d(e,t,r=1){null==t&&(t=e,e=0);let n=e=>e<t;r<0&&(n=e=>t<e);let a=[];for(let t=e;n(t);t+=r)a.push(t);return a}function c(e,t){return e.reduce((e,r,n)=>(e[r]=t[n],e),{})}}),d=a((e,t)=>{var r=i(),n=l().uniqueId;t.exports={run:function(e){var t,a;let o,s,i;("greedy"===e.graph().acyclicer?r(e,(t=e,e=>t.edge(e).weight)):(o=[],s={},i={},(a=e).nodes().forEach(function e(t){Object.hasOwn(i,t)||(i[t]=!0,s[t]=!0,a.outEdges(t).forEach(t=>{Object.hasOwn(s,t.w)?o.push(t):e(t.w)}),delete s[t])}),o)).forEach(t=>{let r=e.edge(t);e.removeEdge(t),r.forwardName=t.name,r.reversed=!0,e.setEdge(t.w,t.v,r,n("rev"))})},undo:function(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.reversed){e.removeEdge(t);let n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}}}),c=a((e,t)=>{var r=l();t.exports={run:function(e){e.graph().dummyChains=[],e.edges().forEach(t=>(function(e,t){let n,a,o,s=t.v,i=e.node(s).rank,l=t.w,d=e.node(l).rank,c=t.name,u=e.edge(t),h=u.labelRank;if(d!==i+1){for(e.removeEdge(t),o=0,++i;i<d;++o,++i)u.points=[],a={width:0,height:0,edgeLabel:u,edgeObj:t,rank:i},n=r.addDummyNode(e,"edge",a,"_d"),i===h&&(a.width=u.width,a.height=u.height,a.dummy="edge-label",a.labelpos=u.labelpos),e.setEdge(s,n,{weight:u.weight},c),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,l,{weight:u.weight},c)}})(e,t))},undo:function(e){e.graph().dummyChains.forEach(t=>{let r=e.node(t),n=r.edgeLabel,a;for(e.setEdge(r.edgeObj,n);r.dummy;)a=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=a,r=e.node(t)})}}}),u=a((e,t)=>{var{applyWithChunking:r}=l();t.exports={longestPath:function(e){var t={};e.sources().forEach(function n(a){var o=e.node(a);if(Object.hasOwn(t,a))return o.rank;t[a]=!0;var s=r(Math.min,e.outEdges(a).map(t=>null==t?1/0:n(t.w)-e.edge(t).minlen));return s===1/0&&(s=0),o.rank=s})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}}),h=a((e,t)=>{var r=o().Graph,n=u().slack;t.exports=function(e){var t,a,o,s,i=new r({directed:!1}),l=e.nodes()[0],d=e.nodeCount();for(i.setNode(l,{});t=i,a=e,t.nodes().forEach(function e(r){a.nodeEdges(r).forEach(o=>{var s=o.v,i=r===s?o.w:s;t.hasNode(i)||n(a,o)||(t.setNode(i,{}),t.setEdge(r,i,{}),e(i))})}),t.nodeCount()<d;)o=function(e,t){return t.edges().reduce((r,a)=>{let o=1/0;return e.hasNode(a.v)!==e.hasNode(a.w)&&(o=n(t,a)),o<r[0]?[o,a]:r},[1/0,null])[1]}(i,e),s=i.hasNode(o.v)?n(e,o):-n(e,o),function(e,t,r){e.nodes().forEach(e=>t.node(e).rank+=r)}(i,e,s);return i}}),p=a((e,t)=>{var r=h(),n=u().slack,a=u().longestPath,s=o().alg.preorder,i=o().alg.postorder,d=l().simplify;function c(e){a(e=d(e));var t,n,o=r(e);for(m(o),p(o,e);t=g(o);)n=x(o,e,t),v(o,e,t,n)}function p(e,t){var r=i(e,e.nodes());(r=r.slice(0,r.length-1)).forEach(r=>{var n,a,o,s;return n=e,a=t,o=r,s=n.node(o).parent,void(n.edge(o,s).cutvalue=f(n,a,o))})}function f(e,t,r){var n=e.node(r).parent,a=!0,o=t.edge(r,n),s=0;return o||(a=!1,o=t.edge(n,r)),s=o.weight,t.nodeEdges(r).forEach(o=>{var i=o.v===r,l=i?o.w:o.v;if(l!==n){var d,c,u,h=i===a,p=t.edge(o).weight;if(s+=h?p:-p,d=e,c=r,u=l,d.hasEdge(c,u)){var f=e.edge(r,l).cutvalue;s+=h?-f:f}}}),s}function m(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,r,n,a,o){var s=n,i=t.node(a);return r[a]=!0,t.neighbors(a).forEach(o=>{Object.hasOwn(r,o)||(n=e(t,r,n,o,a))}),i.low=s,i.lim=n++,o?i.parent=o:delete i.parent,n}(e,{},1,t)}function g(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function x(e,t,r){var a=r.v,o=r.w;t.hasEdge(a,o)||(a=r.w,o=r.v);var s=e.node(a),i=e.node(o),l=s,d=!1;return s.lim>i.lim&&(l=i,d=!0),t.edges().filter(t=>d===b(e,e.node(t.v),l)&&d!==b(e,e.node(t.w),l)).reduce((e,r)=>n(t,r)<n(t,e)?r:e)}function v(e,t,r,n){var a,o,i,l,d=r.v,c=r.w;e.removeEdge(d,c),e.setEdge(n.v,n.w,{}),m(e),p(e,t),a=e,o=t,i=a.nodes().find(e=>!o.node(e).parent),(l=(l=s(a,i)).slice(1)).forEach(e=>{var t=a.node(e).parent,r=o.edge(e,t),n=!1;r||(r=o.edge(t,e),n=!0),o.node(e).rank=o.node(t).rank+(n?r.minlen:-r.minlen)})}function b(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}t.exports=c,c.initLowLimValues=m,c.initCutValues=p,c.calcCutValue=f,c.leaveEdge=g,c.enterEdge=x,c.exchangeEdges=v}),f=a((e,t)=>{var r=u().longestPath,n=h(),a=p();t.exports=function(e){var t,s=e.graph().ranker;if(s instanceof Function)return s(e);switch(e.graph().ranker){case"network-simplex":default:a(e);break;case"tight-tree":r(t=e),n(t);break;case"longest-path":o(e);case"none":}};var o=r}),m=a((e,t)=>{t.exports=function(e){var t;let r,n,a=(r={},n=0,(t=e).children().forEach(function e(a){let o=n;t.children(a).forEach(e),r[a]={low:o,lim:n++}}),r);e.graph().dummyChains.forEach(t=>{let r=e.node(t),n=r.edgeObj,o=function(e,t,r,n){let a=[],o=[],s=Math.min(t[r].low,t[n].low),i=Math.max(t[r].lim,t[n].lim),l,d;l=r;do a.push(l=e.parent(l));while(l&&(t[l].low>s||i>t[l].lim))for(d=l,l=n;(l=e.parent(l))!==d;)o.push(l);return{path:a.concat(o.reverse()),lca:d}}(e,a,n.v,n.w),s=o.path,i=o.lca,l=0,d=s[0],c=!0;for(;t!==n.w;){if(r=e.node(t),c){for(;(d=s[l])!==i&&e.node(d).maxRank<r.rank;)l++;d===i&&(c=!1)}if(!c){for(;l<s.length-1&&e.node(d=s[l+1]).minRank<=r.rank;)l++;d=s[l]}e.setParent(t,d),t=e.successors(t)[0]}})}}),g=a((e,t)=>{var r=l();t.exports={run:function(e){var t,n,a;let o=r.addDummyNode(e,"root",{},"_root"),s=(n={},(t=e).children().forEach(e=>(function e(r,a){var o=t.children(r);o&&o.length&&o.forEach(t=>e(t,a+1)),n[r]=a})(e,1)),n),i=Object.values(s),l=r.applyWithChunking(Math.max,i)-1,d=2*l+1;e.graph().nestingRoot=o,e.edges().forEach(t=>e.edge(t).minlen*=d);let c=(a=e).edges().reduce((e,t)=>e+a.edge(t).weight,0)+1;e.children().forEach(t=>(function e(t,n,a,o,s,i,l){let d=t.children(l);if(!d.length){l!==n&&t.setEdge(n,l,{weight:0,minlen:a});return}let c=r.addBorderNode(t,"_bt"),u=r.addBorderNode(t,"_bb"),h=t.node(l);t.setParent(c,l),h.borderTop=c,t.setParent(u,l),h.borderBottom=u,d.forEach(r=>{e(t,n,a,o,s,i,r);let d=t.node(r),h=d.borderTop?d.borderTop:r,p=d.borderBottom?d.borderBottom:r,f=d.borderTop?o:2*o,m=h!==p?1:s-i[l]+1;t.setEdge(c,h,{weight:f,minlen:m,nestingEdge:!0}),t.setEdge(p,u,{weight:f,minlen:m,nestingEdge:!0})}),t.parent(l)||t.setEdge(n,c,{weight:0,minlen:s+i[l]})})(e,o,d,c,l,s,t)),e.graph().nodeRankFactor=d},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}}}),x=a((e,t)=>{var r=l();function n(e,t,n,a,o,s){let i=o[t][s-1],l=r.addDummyNode(e,"border",{width:0,height:0,rank:s,borderType:t},n);o[t][s]=l,e.setParent(l,a),i&&e.setEdge(i,l,{weight:1})}t.exports=function(e){e.children().forEach(function t(r){let a=e.children(r),o=e.node(r);if(a.length&&a.forEach(t),Object.hasOwn(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(let t=o.minRank,a=o.maxRank+1;t<a;++t)n(e,"borderLeft","_bl",r,o,t),n(e,"borderRight","_br",r,o,t)}})}}),v=a((e,t)=>{function r(e){e.nodes().forEach(t=>n(e.node(t))),e.edges().forEach(t=>n(e.edge(t)))}function n(e){let t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function o(e){let t=e.x;e.x=e.y,e.y=t}t.exports={adjust:function(e){let t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&r(e)},undo:function(e){var t,n;let s=e.graph().rankdir.toLowerCase();("bt"===s||"rl"===s)&&((t=e).nodes().forEach(e=>a(t.node(e))),t.edges().forEach(e=>{let r=t.edge(e);r.points.forEach(a),Object.hasOwn(r,"y")&&a(r)})),("lr"===s||"rl"===s)&&((n=e).nodes().forEach(e=>o(n.node(e))),n.edges().forEach(e=>{let t=n.edge(e);t.points.forEach(o),Object.hasOwn(t,"x")&&o(t)}),r(e))}}}),b=a((e,t)=>{var r=l();t.exports=function(e){let t={},n=e.nodes().filter(t=>!e.children(t).length),a=n.map(t=>e.node(t).rank),o=r.applyWithChunking(Math.max,a),s=r.range(o+1).map(()=>[]);return n.sort((t,r)=>e.node(t).rank-e.node(r).rank).forEach(function r(n){t[n]||(t[n]=!0,s[e.node(n).rank].push(n),e.successors(n).forEach(r))}),s}}),y=a((e,t)=>{var r=l().zipObject;t.exports=function(e,t){let n=0;for(let a=1;a<t.length;++a)n+=function(e,t,n){let a=r(n,n.map((e,t)=>t)),o=t.flatMap(t=>e.outEdges(t).map(t=>({pos:a[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos)),s=1;for(;s<n.length;)s<<=1;let i=2*s-1;s-=1;let l=Array(i).fill(0),d=0;return o.forEach(e=>{let t=e.pos+s;l[t]+=e.weight;let r=0;for(;t>0;)t%2&&(r+=l[t+1]),t=t-1>>1,l[t]+=e.weight;d+=e.weight*r}),d}(e,t[a-1],t[a]);return n}}),w=a((e,t)=>{t.exports=function(e,t=[]){return t.map(t=>{let r=e.inEdges(t);if(!r.length)return{v:t};{let n=r.reduce((t,r)=>{let n=e.edge(r),a=e.node(r.v);return{sum:t.sum+n.weight*a.order,weight:t.weight+n.weight}},{sum:0,weight:0});return{v:t,barycenter:n.sum/n.weight,weight:n.weight}}})}}),j=a((e,t)=>{var r=l();t.exports=function(e,t){let n={};return e.forEach((e,t)=>{let r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(r.barycenter=e.barycenter,r.weight=e.weight)}),t.edges().forEach(e=>{let t=n[e.v],r=n[e.w];void 0!==t&&void 0!==r&&(r.indegree++,t.out.push(n[e.w]))}),function(e){let t=[];for(;e.length;){let r=e.pop();t.push(r),r.in.reverse().forEach(function(e){return t=>{t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(r)),r.out.forEach(function(t){return r=>{r.in.push(t),0==--r.indegree&&e.push(r)}}(r))}return t.filter(e=>!e.merged).map(e=>r.pick(e,["vs","i","barycenter","weight"]))}(Object.values(n).filter(e=>!e.indegree))}}),k=a((e,t)=>{var r=l();function n(e,t,r){let n;for(;t.length&&(n=t[t.length-1]).i<=r;)t.pop(),e.push(n.vs),r++;return r}t.exports=function(e,t){var a;let o=r.partition(e,e=>Object.hasOwn(e,"barycenter")),s=o.lhs,i=o.rhs.sort((e,t)=>t.i-e.i),l=[],d=0,c=0,u=0;s.sort((a=!!t,(e,t)=>e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:a?t.i-e.i:e.i-t.i)),u=n(l,i,u),s.forEach(e=>{u+=e.vs.length,l.push(e.vs),d+=e.barycenter*e.weight,c+=e.weight,u=n(l,i,u)});let h={vs:l.flat(!0)};return c&&(h.barycenter=d/c,h.weight=c),h}}),N=a((e,t)=>{var r=w(),n=j(),a=k();t.exports=function e(t,o,s,i){var l,d;let c=t.children(o),u=t.node(o),h=u?u.borderLeft:void 0,p=u?u.borderRight:void 0,f={};h&&(c=c.filter(e=>e!==h&&e!==p));let m=r(t,c);m.forEach(r=>{if(t.children(r.v).length){var n,a;let o=e(t,r.v,s,i);f[r.v]=o,Object.hasOwn(o,"barycenter")&&(n=r,a=o,void 0!==n.barycenter?(n.barycenter=(n.barycenter*n.weight+a.barycenter*a.weight)/(n.weight+a.weight),n.weight+=a.weight):(n.barycenter=a.barycenter,n.weight=a.weight))}});let g=n(m,s);l=g,d=f,l.forEach(e=>{e.vs=e.vs.flatMap(e=>d[e]?d[e].vs:e)});let x=a(g,i);if(h&&(x.vs=[h,x.vs,p].flat(!0),t.predecessors(h).length)){let e=t.node(t.predecessors(h)[0]),r=t.node(t.predecessors(p)[0]);Object.hasOwn(x,"barycenter")||(x.barycenter=0,x.weight=0),x.barycenter=(x.barycenter*x.weight+e.order+r.order)/(x.weight+2),x.weight+=2}return x}}),C=a((e,t)=>{var r=o().Graph,n=l();t.exports=function(e,t,a,o){o||(o=e.nodes());let s=function(e){for(var t;e.hasNode(t=n.uniqueId("_root")););return t}(e),i=new r({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(t=>e.node(t));return o.forEach(r=>{let n=e.node(r),o=e.parent(r);(n.rank===t||n.minRank<=t&&t<=n.maxRank)&&(i.setNode(r),i.setParent(r,o||s),e[a](r).forEach(t=>{let n=t.v===r?t.w:t.v,a=i.edge(n,r),o=void 0!==a?a.weight:0;i.setEdge(n,r,{weight:e.edge(t).weight+o})}),Object.hasOwn(n,"minRank")&&i.setNode(r,{borderLeft:n.borderLeft[t],borderRight:n.borderRight[t]}))}),i}}),E=a((e,t)=>{t.exports=function(e,t,r){let n={},a;r.forEach(r=>{let o=e.parent(r),s,i;for(;o;){if((s=e.parent(o))?(i=n[s],n[s]=o):(i=a,a=o),i&&i!==o)return void t.setEdge(i,o);o=s}})}}),S=a((e,t)=>{var r=b(),n=y(),a=N(),s=C(),i=E(),d=o().Graph,c=l();function u(e,t,r){let n=new Map,a=(e,t)=>{n.has(e)||n.set(e,[]),n.get(e).push(t)};for(let t of e.nodes()){let r=e.node(t);if("number"==typeof r.rank&&a(r.rank,t),"number"==typeof r.minRank&&"number"==typeof r.maxRank)for(let e=r.minRank;e<=r.maxRank;e++)e!==r.rank&&a(e,t)}return t.map(function(t){return s(e,t,r,n.get(t)||[])})}function h(e,t){Object.values(t).forEach(t=>t.forEach((t,r)=>e.node(t).order=r))}t.exports=function e(t,o={}){if("function"==typeof o.customOrder)return void o.customOrder(t,e);let s=c.maxRank(t),l=u(t,c.range(1,s+1),"inEdges"),p=u(t,c.range(s-1,-1,-1),"outEdges"),f=r(t);if(h(t,f),o.disableOptimalOrderHeuristic)return;let m=1/0,g,x=o.constraints||[];for(let e=0,r=0;r<4;++e,++r){(function(e,t,r){let n=new d;e.forEach(function(e){r.forEach(e=>n.setEdge(e.left,e.right));let o=e.graph().root,s=a(e,o,n,t);s.vs.forEach((t,r)=>e.node(t).order=r),i(e,n,s.vs)})})(e%2?l:p,e%4>=2,x),f=c.buildLayerMatrix(t);let o=n(t,f);o<m?(r=0,g=Object.assign({},f),m=o):o===m&&(g=structuredClone(f))}h(t,g)}}),_=a((e,t)=>{var r=o().Graph,n=l();function a(e,t){let r={};return t.length&&t.reduce(function(t,n){let a=0,o=0,s=t.length,l=n[n.length-1];return n.forEach((t,d)=>{let c=function(e,t){if(e.node(t).dummy)return e.predecessors(t).find(t=>e.node(t).dummy)}(e,t),u=c?e.node(c).order:s;(c||t===l)&&(n.slice(o,d+1).forEach(t=>{e.predecessors(t).forEach(n=>{let o=e.node(n),s=o.order;(s<a||u<s)&&!(o.dummy&&e.node(t).dummy)&&i(r,n,t)})}),o=d+1,a=u)}),n}),r}function s(e,t){let r={};function a(t,a,o,s,l){let d;n.range(a,o).forEach(n=>{d=t[n],e.node(d).dummy&&e.predecessors(d).forEach(t=>{let n=e.node(t);n.dummy&&(n.order<s||n.order>l)&&i(r,t,d)})})}return t.length&&t.reduce(function(t,r){let n=-1,o,s=0;return r.forEach((i,l)=>{if("border"===e.node(i).dummy){let t=e.predecessors(i);t.length&&(o=e.node(t[0]).order,a(r,s,l,n,o),s=l,n=o)}a(r,s,r.length,o,t.length)}),r}),r}function i(e,t,r){if(t>r){let e=t;t=r,r=e}let n=e[t];n||(e[t]=n={}),n[r]=!0}function d(e,t,r){if(t>r){let e=t;t=r,r=e}return!!e[t]&&Object.hasOwn(e[t],r)}function c(e,t,r,n){let a={},o={},s={};return t.forEach(e=>{e.forEach((e,t)=>{a[e]=e,o[e]=e,s[e]=t})}),t.forEach(e=>{let t=-1;e.forEach(e=>{let i=n(e);if(i.length){let n=((i=i.sort((e,t)=>s[e]-s[t])).length-1)/2;for(let l=Math.floor(n),c=Math.ceil(n);l<=c;++l){let n=i[l];o[e]===e&&t<s[n]&&!d(r,e,n)&&(o[n]=e,o[e]=a[e]=a[n],t=s[n])}}})}),{root:a,align:o}}function u(e,t,n,a,o){var s,i,l,d,c,u,h;let p,f,m,g={},x=(s=e,i=t,l=n,d=o,p=new r,m=(c=(f=s.graph()).nodesep,u=f.edgesep,h=d,(e,t,r)=>{let n=e.node(t),a=e.node(r),o,s;if(o=0+n.width/2,Object.hasOwn(n,"labelpos"))switch(n.labelpos.toLowerCase()){case"l":s=-n.width/2;break;case"r":s=n.width/2}if(s&&(o+=h?s:-s),s=0,o+=(n.dummy?u:c)/2,o+=(a.dummy?u:c)/2,o+=a.width/2,Object.hasOwn(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":s=a.width/2;break;case"r":s=-a.width/2}return s&&(o+=h?s:-s),s=0,o}),i.forEach(e=>{let t;e.forEach(e=>{let r=l[e];if(p.setNode(r),t){var n=l[t],a=p.edge(n,r);p.setEdge(n,r,Math.max(m(s,e,t),a||0))}t=e})}),p),v=o?"borderLeft":"borderRight";function b(e,t){let r=x.nodes().slice(),n={},a=r.pop();for(;a;){if(n[a])e(a);else for(let e of(n[a]=!0,r.push(a),t(a)))r.push(e);a=r.pop()}}return b(function(e){g[e]=x.inEdges(e).reduce((e,t)=>Math.max(e,g[t.v]+x.edge(t)),0)},x.predecessors.bind(x)),b(function(t){let r=x.outEdges(t).reduce((e,t)=>Math.min(e,g[t.w]-x.edge(t)),1/0),n=e.node(t);r!==1/0&&n.borderType!==v&&(g[t]=Math.max(g[t],r))},x.successors.bind(x)),Object.keys(a).forEach(e=>g[e]=g[n[e]]),g}function h(e,t){return Object.values(t).reduce((t,r)=>{let n=-1/0,a=1/0;Object.entries(r).forEach(([t,r])=>{var o,s;let i=(o=e,s=t,o.node(s).width/2);n=Math.max(r+i,n),a=Math.min(r-i,a)});let o=n-a;return o<t[0]&&(t=[o,r]),t},[1/0,null])[1]}function p(e,t){let r=Object.values(t),a=n.applyWithChunking(Math.min,r),o=n.applyWithChunking(Math.max,r);["u","d"].forEach(r=>{["l","r"].forEach(s=>{let i=r+s,l=e[i];if(l===t)return;let d=Object.values(l),c=a-n.applyWithChunking(Math.min,d);"l"!==s&&(c=o-n.applyWithChunking(Math.max,d)),c&&(e[i]=n.mapValues(l,e=>e+c))})})}function f(e,t){return n.mapValues(e.ul,(r,n)=>{if(t)return e[t.toLowerCase()][n];{let t=Object.values(e).map(e=>e[n]).sort((e,t)=>e-t);return(t[1]+t[2])/2}})}t.exports={positionX:function(e){let t=n.buildLayerMatrix(e),r=Object.assign(a(e,t),s(e,t)),o={},i;["u","d"].forEach(a=>{i="u"===a?t:Object.values(t).reverse(),["l","r"].forEach(t=>{"r"===t&&(i=i.map(e=>Object.values(e).reverse()));let s=("u"===a?e.predecessors:e.successors).bind(e),l=c(e,i,r,s),d=u(e,i,l.root,l.align,"r"===t);"r"===t&&(d=n.mapValues(d,e=>-e)),o[a+t]=d})});let l=h(e,o);return p(o,l),f(o,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:i,hasConflict:d,verticalAlignment:c,horizontalCompaction:u,alignCoordinates:p,findSmallestWidthAlignment:h,balance:f}}),M=a((e,t)=>{var r=l(),n=_().positionX;t.exports=function(e){var t;let a,o,s,i;t=e=r.asNonCompoundGraph(e),a=r.buildLayerMatrix(t),o=t.graph().ranksep,s=t.graph().rankalign,i=0,a.forEach(e=>{let r=e.reduce((e,r)=>{let n=t.node(r).height;return e>n?e:n},0);e.forEach(e=>{let n=t.node(e);"top"===s?n.y=i+n.height/2:"bottom"===s?n.y=i+r-n.height/2:n.y=i+r/2}),i+=r+o}),Object.entries(n(e)).forEach(([t,r])=>e.node(t).x=r)}}),D=a((e,t)=>{var r=d(),n=c(),a=f(),s=l().normalizeRanks,i=m(),u=l().removeEmptyRanks,h=g(),p=x(),b=v(),y=S(),w=M(),j=l(),k=o().Graph;t.exports=function(e,t={}){let o=t.debugTiming?j.time:j.notime;return o("layout",()=>{let l=o(" buildLayoutGraph",()=>{var t;let r,n;return t=e,r=new k({multigraph:!0,compound:!0}),n=T(t.graph()),r.setGraph(Object.assign({},C,I(n,N),j.pick(n,E))),t.nodes().forEach(e=>{let n=I(T(t.node(e)),_);Object.keys(D).forEach(e=>{void 0===n[e]&&(n[e]=D[e])}),r.setNode(e,n),r.setParent(e,t.parent(e))}),t.edges().forEach(e=>{let n=T(t.edge(e));r.setEdge(e,Object.assign({},P,I(n,O),j.pick(n,R)))}),r});return o(" runLayout",()=>{var e,d,c;return e=l,d=o,c=t,void(d(" makeSpaceForEdgeLabels",()=>{var t;let r;return r=(t=e).graph(),void(r.ranksep/=2,t.edges().forEach(e=>{let n=t.edge(e);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}),d(" removeSelfEdges",()=>{var t;(t=e).edges().forEach(e=>{if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),d(" acyclic",()=>r.run(e)),d(" nestingGraph.run",()=>h.run(e)),d(" rank",()=>a(j.asNonCompoundGraph(e))),d(" injectEdgeLabelProxies",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e);if(r.width&&r.height){let r=t.node(e.v),n={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};j.addDummyNode(t,"edge-proxy",n,"_ep")}})}),d(" removeEmptyRanks",()=>u(e)),d(" nestingGraph.cleanup",()=>h.cleanup(e)),d(" normalizeRanks",()=>s(e)),d(" assignRankMinMax",()=>{var t;let r;return r=0,void((t=e).nodes().forEach(e=>{let n=t.node(e);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,r=Math.max(r,n.maxRank))}),t.graph().maxRank=r)}),d(" removeEdgeLabelProxies",()=>{var t;(t=e).nodes().forEach(e=>{let r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}),d(" normalize.run",()=>n.run(e)),d(" parentDummyChains",()=>i(e)),d(" addBorderSegments",()=>p(e)),d(" order",()=>y(e,c)),d(" insertSelfEdges",()=>{var t;return t=e,void j.buildLayerMatrix(t).forEach(e=>{var r=0;e.forEach((e,n)=>{var a=t.node(e);a.order=n+r,(a.selfEdges||[]).forEach(e=>{j.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:n+ ++r,e:e.e,label:e.label},"_se")}),delete a.selfEdges})})}),d(" adjustCoordinateSystem",()=>b.adjust(e)),d(" position",()=>w(e)),d(" positionSelfEdges",()=>{var t;(t=e).nodes().forEach(e=>{var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),a=n.x+n.width/2,o=n.y,s=r.x-a,i=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:a+2*s/3,y:o-i},{x:a+5*s/6,y:o-i},{x:a+s,y:o},{x:a+5*s/6,y:o+i},{x:a+2*s/3,y:o+i}],r.label.x=r.x,r.label.y=r.y}})}),d(" removeBorderNodes",()=>{var t;(t=e).nodes().forEach(e=>{if(t.children(e).length){let r=t.node(e),n=t.node(r.borderTop),a=t.node(r.borderBottom),o=t.node(r.borderLeft[r.borderLeft.length-1]),s=t.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(s.x-o.x),r.height=Math.abs(a.y-n.y),r.x=o.x+r.width/2,r.y=n.y+r.height/2}}),t.nodes().forEach(e=>{"border"===t.node(e).dummy&&t.removeNode(e)})}),d(" normalize.undo",()=>n.undo(e)),d(" fixupEdgeLabelCoords",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e);if(Object.hasOwn(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),d(" undoCoordinateSystem",()=>b.undo(e)),d(" translateGraph",()=>(function(e){let t=1/0,r=0,n=1/0,a=0,o=e.graph(),s=o.marginx||0,i=o.marginy||0;function l(e){let o=e.x,s=e.y,i=e.width,l=e.height;t=Math.min(t,o-i/2),r=Math.max(r,o+i/2),n=Math.min(n,s-l/2),a=Math.max(a,s+l/2)}e.nodes().forEach(t=>l(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);Object.hasOwn(r,"x")&&l(r)}),t-=s,n-=i,e.nodes().forEach(r=>{let a=e.node(r);a.x-=t,a.y-=n}),e.edges().forEach(r=>{let a=e.edge(r);a.points.forEach(e=>{e.x-=t,e.y-=n}),Object.hasOwn(a,"x")&&(a.x-=t),Object.hasOwn(a,"y")&&(a.y-=n)}),o.width=r-t+s,o.height=a-n+i})(e)),d(" assignNodeIntersects",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e),n=t.node(e.v),a=t.node(e.w),o,s;r.points?(o=r.points[0],s=r.points[r.points.length-1]):(r.points=[],o=a,s=n),r.points.unshift(j.intersectRect(n,o)),r.points.push(j.intersectRect(a,s))})}),d(" reversePoints",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e);r.reversed&&r.points.reverse()})}),d(" acyclic.undo",()=>r.undo(e)))}),o(" updateInputGraph",()=>{var t,r;return t=e,r=l,void(t.nodes().forEach(e=>{let n=t.node(e),a=r.node(e);n&&(n.x=a.x,n.y=a.y,n.order=a.order,n.rank=a.rank,r.children(e).length&&(n.width=a.width,n.height=a.height))}),t.edges().forEach(e=>{let n=t.edge(e),a=r.edge(e);n.points=a.points,Object.hasOwn(a,"x")&&(n.x=a.x,n.y=a.y)}),t.graph().width=r.graph().width,t.graph().height=r.graph().height)}),l})};var N=["nodesep","edgesep","ranksep","marginx","marginy"],C={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},E=["acyclicer","ranker","rankdir","align","rankalign"],_=["width","height","rank"],D={width:0,height:0},O=["minlen","weight","width","height","labeloffset"],P={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},R=["labelpos"];function I(e,t){return j.mapValues(j.pick(e,t),Number)}function T(e){var t={};return e&&Object.entries(e).forEach(([e,r])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=r}),t}}),O=a((e,t)=>{var r=l(),n=o().Graph;t.exports={debugOrdering:function(e){let t=r.buildLayerMatrix(e),a=new n({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{a.setNode(t,{label:t}),a.setParent(t,"layer"+e.node(t).rank)}),e.edges().forEach(e=>a.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{a.setNode("layer"+t,{rank:"same"}),e.reduce((e,t)=>(a.setEdge(e,t,{style:"invis"}),t))}),a}}}),P=a((e,t)=>{t.exports="2.0.4"});let R=a((e,t)=>{t.exports={graphlib:o(),layout:D(),debug:O(),util:{time:l().time,notime:l().notime},version:P()}})(),I={direction:"LR",ranksep:200,nodesep:48};function T(e="ltr"){return{...I,direction:"rtl"===e?"RL":"LR"}}let F={featureNode:{width:388,height:140},repositoryNode:{width:400,height:140},applicationNode:{width:416,height:300}};function A(e,t){let r=e.data;return r&&"number"==typeof r.width&&"number"==typeof r.height?{width:r.width,height:r.height}:F[e.type??""]??t}function L(e,t,r={}){let{direction:n="TB",nodeSize:a={width:172,height:36},ranksep:o=80,nodesep:s=30}=r;if(0===e.length)return{nodes:[],edges:[]};let i=new R.graphlib.Graph({multigraph:!0});i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:n,ranksep:o,nodesep:s});let l=new Set;for(let e of t)l.add(e.source),l.add(e.target);let d=e.filter(e=>l.has(e.id)),c=e.filter(e=>!l.has(e.id));for(let e of d){let t=A(e,a);i.setNode(e.id,{width:t.width,height:t.height})}for(let e of t)i.hasNode(e.source)&&i.hasNode(e.target)&&i.setEdge(e.source,e.target,{},e.id);R.layout(i);let{targetPosition:u,sourcePosition:h}=function(e){switch(e){case"LR":return{targetPosition:"left",sourcePosition:"right"};case"RL":return{targetPosition:"right",sourcePosition:"left"};case"BT":return{targetPosition:"bottom",sourcePosition:"top"};default:return{targetPosition:"top",sourcePosition:"bottom"}}}(n),p="LR"===n||"RL"===n,f=new Map;for(let e of d){let t=i.node(e.id),r=A(e,a);f.set(e.id,{cx:t.x,cy:t.y,w:r.width,h:r.height})}let m=0;for(let e of f.values()){m=p?e.cx:e.cy;break}for(let e of c){let t=A(e,a);f.set(e.id,{cx:p?m:0,cy:p?0:m,w:t.width,h:t.height})}let g=new Map;for(let e of t)f.has(e.source)&&f.has(e.target)&&(g.has(e.source)||g.set(e.source,[]),g.get(e.source).push(e.target));let x=new Map;for(let t=0;t<e.length;t++)x.set(e[t].id,t);for(let[,e]of g)e.sort((e,t)=>(x.get(e)??0)-(x.get(t)??0));let v=new Set;for(let e of g.values())for(let t of e)v.add(t);let b=[...[...l].filter(e=>f.has(e)&&!v.has(e)),...c.map(e=>e.id)];b.sort((e,t)=>(x.get(e)??0)-(x.get(t)??0));let y=new Map;for(let e of b)!function e(t){if(y.has(t))return y.get(t);let r=f.get(t),n=p?r.h:r.w,a=g.get(t);if(!a||0===a.length)return y.set(t,n),n;let o=0;for(let t of a)o+=e(t);let i=Math.max(n,o+=(a.length-1)*s);return y.set(t,i),i}(e);let w=0;for(let e of b){let t=y.get(e)??0;!function e(t,r){let n=f.get(t);p?n.cy=r:n.cx=r;let a=g.get(t);if(!a||0===a.length)return;let o=0;for(let e of a)o+=y.get(e)??0;let i=r-(o+=(a.length-1)*s)/2;for(let t of a){let r=y.get(t)??0;e(t,i+r/2),i+=r+s}}(e,w+t/2),w+=t+s}let j=[];for(let t of e){let e=f.get(t.id);e&&j.push({...t,targetPosition:u,sourcePosition:h,position:{x:e.cx-e.w/2,y:e.cy-e.h/2}})}return{nodes:j,edges:[...t]}}var $=e.i(94934),z=e.i(459666),B=e.i(605560),G=e.i(124591),W=e.i(236339),q=e.i(2090),U=e.i(507987),H=e.i(508893);let V=(0,H.createServerReference)("60e64a211e5cc81020444ccfe855d0d4acd780b94b",H.callServer,void 0,H.findSourceMapURL,"deleteRepository");var Y=e.i(813790);let J=(0,H.createServerReference)("4050c03379687a94bf21bb69aafd46c49032cfee6c",H.callServer,void 0,H.findSourceMapURL,"getFeatureMetadata");var K=e.i(648034),X=e.i(873504),Z=e.i(808361),Q=e.i(118354),ee=e.i(672971),et=e.i(799045);e.i(541001);var er=e.i(64780);function en(e,t){let r=new Map;for(let e of t)"dependencyEdge"===e.type&&r.set(e.target,e.source);let n=new Map,a=new Map,o=new Map;for(let t of e)"featureNode"===t.type?n.set(t.id,{nodeId:t.id,data:t.data,parentNodeId:r.get(t.id)}):"repositoryNode"===t.type?a.set(t.id,{nodeId:t.id,data:t.data}):"applicationNode"===t.type&&o.set(t.id,{nodeId:t.id,data:t.data});return{featureMap:n,repoMap:a,applicationMap:o}}function ea(e,t){return(void 0===t.state||t.state===e.state)&&(void 0===t.lifecycle||t.lifecycle===e.lifecycle)&&(void 0===t.name||t.name===e.name)&&(void 0===t.description||t.description===e.description)}function eo(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(!e||n.parentNodeId!==e.parentNodeId||n.data!==e.data&&JSON.stringify(n.data)!==JSON.stringify(e.data))return!1}return!0}let es=(0,Q.createLogger)("[Polling]"),ei=0,el=0;function ed(e,a){let o=(0,r.useRouter)(),s=(0,Z.useSoundAction)("delete"),i=(0,Z.useSoundAction)("create"),[l,d]=(0,t.useState)(!1),{nodes:c,edges:u,reconcile:h,updateFeature:p,addPendingFeature:f,removeFeature:m,restoreFeature:g,addRepository:x,removeRepository:v,replaceRepository:b,getFeatureRepositoryPath:y,getRepositoryData:w,getRepoMapSize:j,addApplication:k,removeApplication:N,setCallbacks:C,beginMutation:E,endMutation:S,isMutating:_}=function(e,r,n=!1){let{i18n:a}=(0,er.useTranslation)(),o=(0,t.useMemo)(()=>T(a.dir()),[a]),s=(0,t.useMemo)(()=>en(e,r),[]),[i,l]=(0,t.useState)(s.featureMap),[d,c]=(0,t.useState)(s.repoMap),[u,h]=(0,t.useState)(s.applicationMap),[p,f]=(0,t.useState)(new Map),m=(0,t.useRef)(new Map),g=(0,t.useRef)(new Set),x=(0,t.useRef)(0),v=(0,t.useRef)(new Set),b=(0,t.useRef)(new Set),y=(0,t.useRef)(new Set),w=(0,t.useRef)({}),j=(0,t.useMemo)(()=>({onNodeAction:e=>w.current.onNodeAction?.(e),onNodeSettings:e=>w.current.onNodeSettings?.(e),onFeatureDelete:(e,t,r,n)=>w.current.onFeatureDelete?.(e,t,r,n),onRepositoryAdd:e=>w.current.onRepositoryAdd?.(e),onRepositoryClick:e=>w.current.onRepositoryClick?.(e),onRepositoryDelete:e=>w.current.onRepositoryDelete?.(e),onRetryFeature:e=>w.current.onRetryFeature?.(e),onStartFeature:e=>w.current.onStartFeature?.(e),onArchiveFeature:e=>w.current.onArchiveFeature?.(e),onUnarchiveFeature:e=>w.current.onUnarchiveFeature?.(e),onApplicationClick:e=>w.current.onApplicationClick?.(e),onApplicationDelete:e=>w.current.onApplicationDelete?.(e)}),[]),k=(0,t.useRef)(i);k.current=i;let N=(0,t.useRef)(d);N.current=d;let C=(0,t.useMemo)(()=>{if(n)return i;let e=new Map;for(let[t,r]of i)"archived"!==r.data.state&&e.set(t,r);return e.size===i.size?i:e},[i,n]),E=(0,t.useMemo)(()=>(function(e,t,r,n,a){let o=[],s=[],i=e=>e.replace(/\\/g,"/"),l=new Map;for(let[e,r]of t)r.data.repositoryPath&&l.set(i(r.data.repositoryPath),e);let d=new Map;for(let[e,r]of[...t.entries()].sort((e,t)=>{let r=e[1].data.createdAt,n=t[1].data.createdAt;return("number"!=typeof r||Number.isNaN(r)?1/0:r)-("number"!=typeof n||Number.isNaN(n)?1/0:n)})){let t={...r.data,...n?.onRepositoryAdd&&{onAdd:()=>n.onRepositoryAdd(e)},...n?.onRepositoryClick&&{onClick:()=>n.onRepositoryClick(e)},...n?.onRepositoryDelete&&{onDelete:n.onRepositoryDelete}};o.push({id:e,type:"repositoryNode",position:{x:0,y:0},data:t})}for(let[t,a,c]of[...[...e.entries()].map(([e,t])=>[e,t,!1]),...[...r.entries()].filter(([t])=>!e.has(t)).map(([e,t])=>[e,t,!0])]){let u="creating"===a.data.state||c,h={...a.data,...!u&&n?.onNodeAction&&{onAction:()=>n.onNodeAction(t)},...!u&&n?.onNodeSettings&&{onSettings:()=>n.onNodeSettings(t)},...!u&&n?.onFeatureDelete&&{onDelete:n.onFeatureDelete},...!u&&"error"===a.data.state&&n?.onRetryFeature&&{onRetry:n.onRetryFeature},...!u&&"pending"===a.data.state&&n?.onStartFeature&&{onStart:n.onStartFeature},...!u&&("running"===a.data.state||"action-required"===a.data.state)&&n?.onStopFeature&&{onStop:n.onStopFeature},...!u&&"archived"!==a.data.state&&"deleting"!==a.data.state&&n?.onArchiveFeature&&{onArchive:n.onArchiveFeature},...!u&&"archived"===a.data.state&&n?.onUnarchiveFeature&&{onUnarchive:n.onUnarchiveFeature}};if(o.push({id:t,type:"featureNode",position:{x:0,y:0},data:h}),a.parentNodeId&&(e.has(a.parentNodeId)||r.has(a.parentNodeId)))s.push({id:`dep-${a.parentNodeId}-${t}`,source:a.parentNodeId,target:t,type:"dependencyEdge"});else{let e=i(a.data.repositoryPath),r=l.get(e)??function(e){if(d.has(e))return d.get(e);let t=`virtual-repo-${e}`,r=e.split("/").filter(Boolean).at(-1)??e;return o.push({id:t,type:"repositoryNode",position:{x:0,y:0},data:{name:r,repositoryPath:e}}),d.set(e,t),t}(e);s.push({id:`edge-${r}-${t}`,source:r,target:t,style:{strokeDasharray:"5 5"}})}}let c=new Set;for(let e of s)"dependencyEdge"===e.type&&c.add(e.source);let u=s.length>0;for(let e of o){let t=e.data;t.showHandles=u,"featureNode"===e.type&&(t.hasChildren=c.has(e.id))}return{nodes:o,edges:s}})(C,d,p,j,0),[C,d,p,j,u]),S=(0,t.useRef)({key:"",positions:new Map}),{nodes:_,edges:M}=(0,t.useMemo)(()=>{let e=E.nodes.map(e=>e.id).sort().join(","),t=E.edges.map(e=>`${e.source}-${e.target}`).sort().join(","),r=`${e}|${t}|${o.direction}`;if(r!==S.current.key){let e=L(E.nodes,E.edges,o),t=new Map;for(let r of e.nodes)t.set(r.id,{position:r.position,targetPosition:r.targetPosition,sourcePosition:r.sourcePosition});let n=S.current.positions;if(n.size>0){let r=0,a=0;for(let[e,o]of t){let t=n.get(e);if(t){r=t.position.x-o.position.x,a=t.position.y-o.position.y;break}}if(0!==r||0!==a){for(let e of t.values())e.position={x:e.position.x+r,y:e.position.y+a};for(let t of e.nodes)t.position={x:t.position.x+r,y:t.position.y+a}}}return S.current={key:r,positions:t},e}let{positions:n}=S.current;return{nodes:E.nodes.map(e=>{let t=n.get(e.id);return t?{...e,...t}:e}),edges:E.edges}},[E,o]),D=(0,t.useCallback)((e,t)=>{if(x.current>0)return;let{featureMap:r,repoMap:n}=en(e,t),a=new Set([...r.values()].map(e=>`${e.data.name}\0${e.data.repositoryPath}`));l(e=>{let t=[...e.entries()].filter(([,e])=>"creating"===e.data.state),n=new Map(r);for(let[e,r]of t){let t=`${r.data.name}\0${r.data.repositoryPath}`;a.has(t)||n.set(e,r)}let o=new Set;for(let[t,r]of e)"deleting"===r.data.state&&(n.has(t)?n.set(t,{...n.get(t),data:{...n.get(t).data,state:"deleting"}}):b.current.has(t)||(n.set(t,r),o.add(t)));for(let[e,t]of(b.current=o,m.current)){let r=n.get(e);r&&(n.set(e,{...r,data:{...r.data,...t}}),m.current.delete(e))}return eo(e,n)?e:n}),f(e=>{if(0===e.size)return e;let t=!1,r=new Map(e);for(let[n,o]of e){let e=`${o.data.name}\0${o.data.repositoryPath}`;a.has(e)&&(r.delete(n),t=!0)}return t?r:e}),c(e=>{let t=new Map(n);for(let e of y.current)t.has(e)?t.delete(e):y.current.delete(e);let r=new Set([...n.values()].map(e=>e.data.repositoryPath));for(let[n,a]of e){if(t.has(n)||r.has(a.data.repositoryPath)){g.current.delete(n);continue}(n.startsWith("repo-temp-")||g.current.has(n))&&t.set(n,a)}return eo(e,t)?e:t});let{applicationMap:o}=en(e,t);h(e=>eo(e,o)?e:o)},[]),O=(0,t.useCallback)((e,t)=>{l(r=>{let n=r.get(e);if(!n)return m.current.set(e,{...m.current.get(e),...t}),r;if(m.current.delete(e),ea(n.data,t))return r;let a=new Map(r);return a.set(e,{...n,data:{...n.data,...t}}),a}),f(r=>{let n=r.get(e);if(!n||ea(n.data,t))return r;let a=new Map(r);return a.set(e,{...n,data:{...n.data,...t}}),a})},[]),P=(0,t.useCallback)((e,t,r)=>{f(n=>{let a=new Map(n);return a.set(e,{nodeId:e,data:t,parentNodeId:r}),a})},[]),R=(0,t.useCallback)(e=>{f(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})},[]),I=(0,t.useCallback)(e=>{l(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})},[]),F=(0,t.useCallback)((e,t)=>{l(r=>{let n=new Map(r);return n.set(e,t),n})},[]),A=(0,t.useCallback)((e,t)=>{g.current.add(e),y.current.delete(e),c(r=>{let n=new Map(r);return n.set(e,{nodeId:e,data:t}),n})},[]),$=(0,t.useCallback)(e=>{g.current.delete(e),y.current.add(e),c(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})},[]),z=(0,t.useCallback)((e,t,r)=>{g.current.delete(e),g.current.add(t),c(n=>{if(!n.has(e))return n;let a=new Map(n);return a.delete(e),a.set(t,{nodeId:t,data:r}),a})},[]),B=(0,t.useCallback)((e,t)=>{h(r=>{let n=new Map(r);return n.set(e,{nodeId:e,data:t}),n})},[]),G=(0,t.useCallback)(e=>{h(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})},[]),W=(0,t.useCallback)(e=>k.current.get(e)?.data.repositoryPath,[]),q=(0,t.useCallback)(e=>N.current.get(e)?.data,[]),U=(0,t.useCallback)(()=>N.current.size,[]),H=(0,t.useCallback)(e=>{w.current=e},[]),V=(0,t.useCallback)(()=>{x.current++},[]),Y=(0,t.useCallback)((e=3e3)=>{let t=setTimeout(()=>{x.current=Math.max(0,x.current-1),v.current.delete(t)},e);v.current.add(t)},[]),J=(0,t.useCallback)(()=>x.current>0,[]);return(0,t.useEffect)(()=>{let e=v.current;return()=>{for(let t of e)clearTimeout(t);e.clear()}},[]),{nodes:_,edges:M,reconcile:D,updateFeature:O,addPendingFeature:P,removePendingFeature:R,removeFeature:I,restoreFeature:F,addRepository:A,removeRepository:$,replaceRepository:z,getFeatureRepositoryPath:W,getRepositoryData:q,getRepoMapSize:U,addApplication:B,removeApplication:G,setCallbacks:H,beginMutation:V,endMutation:Y,isMutating:J}}(e,a,l),M=(0,t.useRef)(c),D=(0,t.useRef)(u);(0,t.useEffect)(()=>{M.current=c,D.current=u},[c,u]);let O=(0,t.useMemo)(()=>e.map(e=>e.id).sort().join(","),[e]),P=(0,t.useMemo)(()=>e.filter(e=>"featureNode"===e.type).map(e=>{let t=e.data;return`${e.id}:${t.state}:${t.lifecycle}`}).sort().join(","),[e]),R=(0,t.useRef)("");(0,t.useEffect)(()=>{let t=`${O}|${P}`;t!==R.current&&(R.current=t,h(e,a))},[O,P,e,a,h]);let I=(0,t.useRef)(new Map),{events:F,connectionStatus:A}=(0,K.useAgentEventsContext)(),{store:H}=(0,X.useDeploymentStatusContext)();(0,t.useEffect)(()=>{let t=I.current;for(let r of e){if("featureNode"!==r.type)continue;let e=r.data,a=t.get(r.id);void 0!==a&&a!==e.state&&(F.some(t=>t.featureId===e.featureId&&(0,et.mapEventTypeToState)(t.eventType)===e.state)||("done"===e.state?n.toast.success(e.name,{description:"Feature completed!"}):"action-required"===e.state?n.toast.warning(e.name,{description:"Waiting for your approval",action:{label:"Review",onClick:()=>o.push(`/feature/${e.featureId}`)}}):"error"===e.state&&n.toast.error(e.name,{description:e.errorMessage??"Agent failed"}))),t.set(r.id,e.state)}},[P,e,F,o]);let Q=(0,t.useRef)(0);(0,t.useEffect)(()=>{if(Q.current>F.length&&(Q.current=0),F.length<=Q.current)return;let e=F.slice(Q.current);for(let{featureId:t,state:r,lifecycle:n}of(Q.current=F.length,(0,et.resolveSseEventUpdates)(e)))if(void 0!==r||void 0!==n){let e=`feat-${t}`,a=M.current.find(t=>t.id===e),o=a?a.data.state:void 0;if("deleting"===o||"error"===r&&_()&&"running"===o)continue;p(e,{...void 0!==r&&{state:r},...void 0!==n&&{lifecycle:n}})}},[F,p,_]),(0,t.useEffect)(()=>{let e=e=>{let{featureId:t}=e.detail;E(),p(`feat-${t}`,{state:"running"}),S()};return window.addEventListener("shep:feature-approved",e),()=>window.removeEventListener("shep:feature-approved",e)},[p,E,S]);let ed=(0,t.useRef)(new Set),ec=(0,t.useRef)(0);(0,t.useEffect)(()=>{if(ec.current>F.length&&(ec.current=0),F.length<=ec.current)return;let e=F.slice(ec.current);for(let t of(ec.current=F.length,e)){if("Feature metadata updated"!==t.message||ed.current.has(t.featureId))continue;ed.current.add(t.featureId);let e=`feat-${t.featureId}`;J(t.featureId).then(t=>{t&&p(e,{name:t.name,description:t.description})}).catch(()=>{})}},[F,p]);let eu=(0,t.useRef)("connected"===A);eu.current="connected"===A,(0,t.useEffect)(()=>{es.debug("polling enabled (15000ms recovery interval)");let e=setInterval(async()=>{if(!document.hidden&&!eu.current&&!_())try{let e=await fetch("/api/graph-data");if(!e.ok)throw Error(`status ${e.status}`);let{nodes:t,edges:r,deployments:n}=await e.json();h(t,r),Array.isArray(n)&&H.hydrate(n)}catch{es.warn("recovery poll failed — will retry next interval")}},15e3);return()=>{es.debug("polling disabled"),clearInterval(e)}},[h,_,H]);let eh=(0,t.useCallback)(e=>{},[]),ep=(0,t.useCallback)(e=>{},[]),ef=(0,t.useCallback)((e,t,r)=>{let n=t?.featureId?`feat-${t.featureId}`:`feature-${Date.now()}-${ei++}`,a={name:t?.name??"New Feature",description:t?.description??"Describe what this feature does",featureId:t?.featureId??`#${n.slice(-4)}`,lifecycle:"requirements",state:t?.state??"running",progress:0,repositoryPath:t?.repositoryPath??"",branch:t?.branch??""};return f(n,a,"dependencyEdge"===r&&e?e:void 0),n},[f]),em=(0,t.useCallback)(e=>{let t=`feat-${e}`;E(),p(t,{state:"running"}),(0,B.resumeFeature)(e).then(e=>{e.error?(p(t,{state:"error"}),n.toast.error(e.error)):n.toast.success("Feature resumed")}).catch(()=>{p(t,{state:"error"}),n.toast.error("Failed to resume feature")}).finally(()=>S())},[p,E,S]),eg=(0,t.useCallback)(e=>{let t=`feat-${e}`;E(),p(t,{state:"running"}),(0,G.startFeature)(e).then(e=>{e.error?(p(t,{state:"pending"}),n.toast.error(e.error)):n.toast.success("Feature started")}).catch(()=>{p(t,{state:"pending"}),n.toast.error("Failed to start feature")}).finally(()=>S())},[p,E,S]),ex=(0,t.useCallback)(e=>{E(),(0,W.stopFeature)(e).then(e=>{e.error?n.toast.error(e.error):n.toast.success("Agent stopped")}).catch(()=>{n.toast.error("Failed to stop agent")}).finally(()=>S())},[E,S]),ev=(0,t.useCallback)(e=>{let t=`feat-${e}`;E(),p(t,{state:"archived"}),(0,$.archiveFeature)(e).then(e=>{e.error?(p(t,{state:"done"}),n.toast.error(e.error)):n.toast.success("Feature archived")}).catch(()=>{p(t,{state:"done"}),n.toast.error("Failed to archive feature")}).finally(()=>S())},[p,E,S]),eb=(0,t.useCallback)(e=>{let t=`feat-${e}`;E(),p(t,{state:"done"}),(0,q.unarchiveFeature)(e).then(e=>{e.error?(p(t,{state:"archived"}),n.toast.error(e.error)):n.toast.success("Feature unarchived")}).catch(()=>{p(t,{state:"archived"}),n.toast.error("Failed to unarchive feature")}).finally(()=>S())},[p,E,S]),ey=(0,t.useCallback)((e,t,r,a)=>{let i=`feat-${e}`,l=[];if(!0===r){let e=[i];for(;e.length>0;){let t=e.shift();for(let r of D.current)"dependencyEdge"===r.type&&r.source===t&&(l.push(r.target),e.push(r.target))}}let d=new Map;for(let e of[i,...l]){let t=M.current.find(t=>t.id===e);t&&d.set(e,t.data.state)}for(let e of(E(),p(i,{state:"deleting"}),l))p(e,{state:"deleting"});s.play(),o.push("/control-center"),(0,z.deleteFeature)(e,t,r,a).then(e=>{if(e.error){for(let[e,t]of d)t&&p(e,{state:t});n.toast.error(e.error)}else for(let e of(m(i),l))m(e)}).catch(()=>{for(let[e,t]of d)t&&p(e,{state:t});n.toast.error("Failed to delete feature")}).finally(()=>S())},[o,s,p,m,E,S]),ew=(0,t.useCallback)(async(e,t)=>{let r=`repo-${e}`,a=new Set(D.current.filter(e=>e.source===r).map(e=>e.target)),o=w(r),i=new Map;for(let e of a){let t=M.current.find(t=>t.id===e);t&&i.set(e,{nodeId:e,data:t.data})}let l=()=>{for(let[e,t]of(o&&x(r,o),i))g(e,t)};for(let e of(E(),v(r),a))m(e);try{let r=await V(e,{deleteFromDisk:t?.deleteFromDisk===!0});if(!r.success){n.toast.error(r.error??"Failed to remove repository"),l();return}s.play()}catch{n.toast.error("Failed to remove repository"),l()}finally{S()}},[s,v,m,x,g,w,E,S]),ej=(0,t.useCallback)(async e=>{let t=(0,ee.featureIdForApplication)(e);E(),N(t),s.play();try{let t=await (0,Y.deleteApplication)(e);t.error&&n.toast.error(t.error)}catch{n.toast.error("Failed to delete application")}finally{S()}},[s,N,E,S]),ek=(0,t.useCallback)(e=>{let t=L(M.current,D.current,{...T(),direction:e});h(t.nodes,t.edges)},[h]);return{nodes:c,edges:u,onNodesChange:eh,handleConnect:ep,handleAddRepository:(0,t.useCallback)(e=>{let t=0===j(),r=`repo-temp-${++el}`,a=e.replace(/[\\/]+$/,"").split(/[\\/]/).pop()??e;return E(),x(r,{name:a,repositoryPath:e,id:r,createdAt:Date.now(),gitInfoStatus:"loading"}),(0,U.addRepository)({path:e,name:a}).then(e=>{if(e.error){v(r),n.toast.error(e.error);return}let t=e.repository;b(r,`repo-${t.id}`,{name:t.name,repositoryPath:t.path,id:t.id,createdAt:t.createdAt instanceof Date?t.createdAt.getTime():Number(t.createdAt)}),i.play()}).catch(()=>{v(r),n.toast.error("Failed to add repository")}).finally(()=>S()),{wasEmpty:t,repoPath:e,tempNodeId:r}},[x,v,b,i,j,E,S]),handleArchiveFeature:ev,handleLayout:ek,handleDeleteFeature:ey,handleRetryFeature:em,handleStartFeature:eg,handleStopFeature:ex,handleUnarchiveFeature:eb,handleDeleteRepository:ew,handleDeleteApplication:ej,createFeatureNode:ef,addApplication:k,showArchived:l,setShowArchived:d,getFeatureRepositoryPath:y,getRepositoryData:w,setCallbacks:C}}e.s(["useControlCenterState",()=>ed],917840)},948246,e=>{"use strict";var t=e.i(679606),r=e.i(120942),n=e.i(992786),a=e.i(152155),o=e.i(711434),s=e.i(591925),i=e.i(3214);e.i(541001);var l=e.i(64780),d=e.i(131777),c=e.i(735364);e.i(454793);var u=e.i(207729);e.i(547506);var h=e.i(189313),p=e.i(292002),f=e.i(382569),m=e.i(208986),g=e.i(338573),x=e.i(619933),v=e.i(267669),b=e.i(724042),y=e.i(64970),w=e.i(949228),j=e.i(565530),k=e.i(907311),N=e.i(194365),C=e.i(438227),E=e.i(248109),S=e.i(626960);e.i(81803);var _=e.i(872714),M=e.i(602287),D=e.i(474363),O=e.i(141957),P=e.i(102828),R=e.i(8537),I=e.i(175921),T=e.i(676852),F=e.i(457779),A=e.i(680554),L=e.i(780519);function $({data:e,selected:n}){let{t:s,i18n:u}=(0,l.useTranslation)("web"),h=(0,o.useRouter)(),$="rtl"===u.dir(),z=$?p.Position.Right:p.Position.Left,B=$?p.Position.Left:p.Position.Right,G=(0,I.useFeatureFlags)(),[W,q]=(0,a.useState)(!1),[U,H]=(0,a.useState)(!1);(0,a.useEffect)(()=>{W&&H(!1)},[W]);let V=e.id?`repo-${e.id}`:`repo-${e.name}`,Y=(0,A.useTurnStatus)(V),J=(0,T.useRepositoryActions)(e.repositoryPath?{repositoryId:e.id,repositoryPath:e.repositoryPath}:null),K=(0,R.useDeployAction)(e.repositoryPath?{targetId:e.repositoryPath,targetType:"repository",repositoryPath:e.repositoryPath}:null),X="Booting"===K.status||"Ready"===K.status,Z=(0,a.useCallback)((t,r)=>{if(!e.repositoryPath)return;let n=t.preview?t.preview.slice(0,200):"Unknown conversation",a=["Continue work from a previous agent session.","","## Session Context",`- Session ID: ${t.id}`,`- Messages: ${t.messageCount}`,t.lastMessageAt?`- Last active: ${t.lastMessageAt}`:"",`- Conversation file: ${r}`,"","## Session Preview",`> ${n}`,"","## Instructions","1. Read the full conversation history from the file above",`2. Analyze the current state of the repository — what was done, what remains`,"3. Create or update spec files to accurately reflect the current state and remaining work","4. Continue implementing any unfinished work from the conversation"].filter(Boolean).join("\n"),o=new URLSearchParams({repo:e.repositoryPath,prompt:a});h.push(`/create?${o.toString()}`)},[e.repositoryPath,h]);return(0,t.jsxs)("div",{className:(0,d.cn)("group relative",e.onDelete&&e.id&&"ps-10"),style:{direction:$?"rtl":"ltr"},children:[e.showHandles?(0,t.jsx)(r.Handle,{type:"target",position:z,isConnectable:!1,className:"opacity-0!",style:{top:70}}):null,e.onDelete&&e.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute -start-3 top-1/2 -translate-y-1/2 opacity-0 transition-opacity group-hover:opacity-100",children:(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{"aria-label":s("repositoryNode.removeRepository"),"data-testid":"repository-node-delete-button",onClick:e=>{e.stopPropagation(),q(!0)},className:"bg-card text-muted-foreground hover:border-destructive hover:text-destructive flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border shadow-sm transition-colors",children:(0,t.jsx)(v.Trash2,{className:"h-3.5 w-3.5"})})}),(0,t.jsx)(P.TooltipContent,{children:s("repositoryNode.removeRepository")})]})})}),(0,t.jsx)(M.Dialog,{open:W,onOpenChange:q,children:(0,t.jsxs)(M.DialogContent,{className:"max-w-sm",children:[(0,t.jsxs)(M.DialogHeader,{children:[(0,t.jsx)(M.DialogTitle,{children:s("repositoryNode.removeConfirmTitle")}),(0,t.jsxs)(M.DialogDescription,{children:[(0,t.jsx)(S.Trans,{t:s,i18nKey:"repositoryNode.removeConfirmDescription",values:{name:e.name},components:{strong:(0,t.jsx)("strong",{})}})," ",s(U?"repositoryNode.removeConfirmDescriptionDeleteFiles":"repositoryNode.removeConfirmDescriptionKeepFiles")]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(D.Checkbox,{id:"repository-delete-from-disk",checked:U,onCheckedChange:e=>H(!0===e),"data-testid":"repository-node-delete-from-disk-checkbox","aria-label":s("repositoryNode.deleteFromDiskLabel")}),(0,t.jsx)(O.Label,{htmlFor:"repository-delete-from-disk",className:"cursor-pointer text-sm font-normal",children:s("repositoryNode.deleteFromDiskLabel")})]}),(0,t.jsxs)(M.DialogFooter,{className:"grid grid-cols-2 gap-2 sm:flex-none",children:[(0,t.jsx)(M.DialogClose,{asChild:!0,children:(0,t.jsx)(c.Button,{variant:"outline",children:s("repositoryNode.cancel")})}),(0,t.jsx)(c.Button,{variant:"destructive","data-testid":"repository-node-delete-confirm-button",onClick:()=>{q(!1),e.onDelete?.(e.id,{deleteFromDisk:U})},children:s("repositoryNode.remove")})]})]})})]}):null,(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-testid":"repository-node-card","data-repo-name":e.name,onClick:t=>{t.stopPropagation(),e.onClick?.()},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),t.stopPropagation(),e.onClick?.())},className:(0,d.cn)("nodrag bg-card flex w-[26rem] cursor-pointer flex-col overflow-hidden rounded-xl border shadow-sm transition-[border-color,box-shadow] duration-200 dark:bg-neutral-800/80",n&&"border-blue-400 dark:border-amber-500/60"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3",children:[(0,t.jsx)(f.Github,{className:"text-muted-foreground h-5 w-5 shrink-0"}),(0,t.jsx)("span",{"data-testid":"repository-node-name",className:"min-w-0 truncate text-sm font-medium",children:e.name}),(0,t.jsxs)("div",{className:(0,d.cn)("flex shrink-0 items-center gap-2",(e.repositoryPath??e.onAdd)&&"ms-auto"),onClick:e=>e.stopPropagation(),children:[e.repositoryPath?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(_.ActionButton,{label:s("repositoryNode.openInIde"),onClick:J.openInIde,loading:J.ideLoading,error:!!J.ideError,icon:m.Code2,iconOnly:!0,variant:"ghost",size:"icon-xs"})})}),(0,t.jsx)(P.TooltipContent,{children:s("repositoryNode.openInIde")})]})}),(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(_.ActionButton,{label:s("repositoryNode.openInShell"),onClick:J.openInShell,loading:J.shellLoading,error:!!J.shellError,icon:g.Terminal,iconOnly:!0,variant:"ghost",size:"icon-xs"})})}),(0,t.jsx)(P.TooltipContent,{children:s("repositoryNode.openInShell")})]})}),(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(_.ActionButton,{label:s("repositoryNode.openFolder"),onClick:J.openFolder,loading:J.folderLoading,error:!!J.folderError,icon:x.FolderOpen,iconOnly:!0,variant:"ghost",size:"icon-xs"})})}),(0,t.jsx)(P.TooltipContent,{children:s("repositoryNode.openFolder")})]})}),(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)(c.Button,{variant:"ghost",size:"icon-xs","aria-label":s("repositoryNode.chatWithAgent"),onClick:t=>{t.stopPropagation(),e.id&&h.push(`/repository/${e.id}/chat`)},className:"nodrag relative cursor-pointer text-violet-500 hover:text-violet-600 dark:text-violet-400 dark:hover:text-violet-300",children:[(0,t.jsx)(E.MessageSquare,{className:"h-3 w-3"}),(0,t.jsx)(F.ChatDotIndicator,{status:Y})]})}),(0,t.jsx)(P.TooltipContent,{children:s("repositoryNode.chatWithAgent")})]})}),(0,t.jsx)(L.FeatureSessionsDropdown,{repositoryPath:e.repositoryPath,includeWorktrees:!0,onCreateFromSession:Z})]}):null,e.onAdd?(0,t.jsx)("div",{className:"ms-1.5"}):null,e.onAdd?(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{"aria-label":s("repositoryNode.newFeature"),"data-testid":"repository-node-add-button",onClick:t=>{t.stopPropagation(),e.onAdd?.()},className:(0,d.cn)("flex h-6 shrink-0 cursor-pointer items-center gap-0.5 rounded bg-blue-500 px-1.5 text-[11px] font-bold text-white transition-colors hover:bg-blue-600 dark:bg-amber-500 dark:hover:bg-amber-400",e.pulseAdd&&"animate-pulse-cta"),children:[(0,t.jsx)(i.Plus,{className:"h-3 w-3"}),(0,t.jsx)("span",{className:"translate-y-px",children:s("repositoryNode.new")})]})}),(0,t.jsx)(P.TooltipContent,{side:"top",children:s("repositoryNode.newFeature")})]})}):null]})]}),e.branch?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-testid":"repository-node-git-info",className:"text-muted-foreground border-border/50 border-t px-4 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-xs",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 truncate","data-testid":"repository-node-branch",children:[(0,t.jsx)(w.GitBranch,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.branch})]}),null!=e.behindCount&&e.behindCount>0?(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1 whitespace-nowrap text-amber-500","data-testid":"repository-node-behind",children:[(0,t.jsx)(k.ArrowDown,{className:"h-3 w-3 shrink-0"}),s("repositoryNode.behind",{count:e.behindCount})]}):null]})}),e.commitMessage?(0,t.jsx)("div",{"data-testid":"repository-node-commit-info",className:"text-muted-foreground border-border/50 border-t px-4 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,t.jsx)(j.GitCommitHorizontal,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate","data-testid":"repository-node-commit-message",children:e.commitMessage}),e.committer?(0,t.jsxs)("span",{className:"text-muted-foreground/70 ms-auto flex shrink-0 items-center gap-1","data-testid":"repository-node-committer",children:[(0,t.jsx)(N.User,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{children:e.committer})]}):null]})}):null]}):"not-a-repo"===e.gitInfoStatus?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-testid":"repository-node-not-repo",className:"text-muted-foreground border-border/50 border-t px-4 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,t.jsx)(x.FolderOpen,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate opacity-60",children:e.repositoryPath??"Unknown path"})]})}),(0,t.jsx)("div",{className:"text-muted-foreground border-border/50 border-t px-4 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs opacity-40",children:[(0,t.jsx)(w.GitBranch,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{children:s("repositoryNode.notAGitRepository")})]})})]}):"ready"!==e.gitInfoStatus?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-testid":"repository-node-git-loading",className:"border-border/50 border-t px-4 py-2",children:(0,t.jsxs)("div",{className:"flex h-4 items-center gap-2 text-xs",children:[(0,t.jsx)(w.GitBranch,{className:"text-muted-foreground h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"bg-muted h-3 w-20 animate-pulse rounded"})]})}),(0,t.jsx)("div",{className:"border-border/50 border-t px-4 py-2",children:(0,t.jsxs)("div",{className:"flex h-4 items-center gap-2 text-xs",children:[(0,t.jsx)(j.GitCommitHorizontal,{className:"text-muted-foreground h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"bg-muted h-3 w-36 animate-pulse rounded"})]})})]}):null,G.envDeploy&&e.repositoryPath?(0,t.jsx)("div",{"data-testid":"repository-node-dev-preview",className:"border-border/50 border-t px-4 py-2",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[K.deployError?(0,t.jsx)("span",{className:"truncate text-xs text-red-500",children:K.deployError}):X?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"me-0.5 inline-block h-2 w-2 shrink-0 rounded-full bg-green-500"}),K.url?(0,t.jsx)("a",{href:K.url,target:"_blank",rel:"noopener noreferrer",className:"truncate text-green-700 hover:underline dark:text-green-400",children:K.url}):(0,t.jsx)("span",{className:"text-muted-foreground",children:s("repositoryNode.starting")})]}):(0,t.jsxs)("span",{className:"text-muted-foreground inline-flex items-baseline gap-2",children:[(0,t.jsx)("span",{children:s("repositoryNode.run")}),(0,t.jsx)("span",{className:"text-muted-foreground/50 text-[10px]",children:s("repositoryNode.startLocalEnvironment")})]}),(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:(0,d.cn)("ms-auto flex items-center",!X&&!K.deployError&&"[&_button]:text-green-600 [&_button]:hover:text-green-700 dark:[&_button]:text-green-400 dark:[&_button]:hover:text-green-300"),children:(0,t.jsx)(_.ActionButton,{label:s(K.deployError?"repositoryNode.retry":X?"repositoryNode.stopDevServer":"repositoryNode.startDevServer"),onClick:X?K.stop:K.deploy,loading:K.deployLoading||K.stopLoading,error:!1,icon:K.deployError?C.RotateCcw:X?y.Square:b.Play,iconOnly:!0,variant:"ghost",size:"icon-xs"})})}),(0,t.jsx)(P.TooltipContent,{children:s(X?"repositoryNode.stopDevServer":"repositoryNode.startDevServer")})]})})]})}):null]}),e.onAdd||e.showHandles?(0,t.jsx)(r.Handle,{type:"source",position:B,isConnectable:!e.showHandles,className:"opacity-0!",style:{top:70}}):null]})}e.i(1650),e.i(845811),e.i(425235);var z=e.i(730702),B=e.i(542049),G=e.i(83428),W=e.i(370002),q=e.i(317406),U=e.i(672971),H=e.i(942616);function V({data:e,selected:n}){let{i18n:o}=(0,l.useTranslation)("web"),s="rtl"===o.dir(),i=s?p.Position.Right:p.Position.Left,u=s?p.Position.Left:p.Position.Right,[h,f]=(0,a.useState)(!1),m=1+e.additionalPathCount,g=1===m?"1 repository":`${m} repositories`,x=(0,A.useTurnStatus)((0,U.featureIdForApplication)(e.id)),w=(0,R.useDeployAction)({targetId:e.id,targetType:"application",repositoryPath:e.repositoryPath}),j=w.url,k=(0,H.deriveAppLiveStatus)(e.status,x,!!j),N=(0,a.useCallback)(e=>{e.stopPropagation()},[]),C=(0,a.useCallback)(e=>{e.stopPropagation(),j&&window.open(j,"_blank","noopener,noreferrer")},[j]);return(0,t.jsxs)("div",{className:"group relative",style:{direction:s?"rtl":"ltr"},children:[(0,t.jsx)(r.Handle,{type:"target",position:i,isConnectable:!1,className:"opacity-0!",style:{top:70}}),e.onDelete&&e.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute -start-14 top-0 bottom-0 flex items-center justify-center ps-4 pe-3 opacity-0 transition-opacity group-hover:opacity-100",onPointerDown:e=>e.stopPropagation(),children:(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{"aria-label":"Remove application","data-testid":"application-node-delete-button",onClick:e=>{e.stopPropagation(),f(!0)},className:"bg-card text-muted-foreground hover:border-destructive hover:text-destructive flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border shadow-sm transition-colors",children:(0,t.jsx)(v.Trash2,{className:"h-3.5 w-3.5"})})}),(0,t.jsx)(P.TooltipContent,{children:"Remove application"})]})})}),(0,t.jsx)(M.Dialog,{open:h,onOpenChange:f,children:(0,t.jsxs)(M.DialogContent,{className:"max-w-xs",children:[(0,t.jsxs)(M.DialogHeader,{children:[(0,t.jsx)(M.DialogTitle,{children:"Remove application?"}),(0,t.jsxs)(M.DialogDescription,{children:["This will remove ",(0,t.jsx)("strong",{children:e.name})," from your workspace."]})]}),(0,t.jsxs)(M.DialogFooter,{className:"grid grid-cols-2 gap-2 sm:flex-none",children:[(0,t.jsx)(M.DialogClose,{asChild:!0,children:(0,t.jsx)(c.Button,{variant:"outline",children:"Cancel"})}),(0,t.jsx)(c.Button,{variant:"destructive",onClick:()=>{f(!1),e.onDelete?.(e.id)},children:"Remove"})]})]})})]}):null,(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-testid":"application-node-card","data-app-name":e.name,onClick:t=>{t.stopPropagation(),e.onClick?.()},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),t.stopPropagation(),e.onClick?.())},className:(0,d.cn)("nodrag bg-card flex w-[26rem] cursor-pointer flex-col overflow-hidden rounded-xl border shadow-sm transition-[border-color,box-shadow] duration-200 dark:bg-neutral-800/80",n&&"border-blue-400 dark:border-amber-500/60",!n&&k.borderClass),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-4",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-gradient-to-br from-indigo-500 to-violet-500",children:(0,t.jsx)(B.LayoutGrid,{className:"h-4 w-4 text-white"})}),(0,t.jsx)("span",{"data-testid":"application-node-name",className:"min-w-0 truncate text-sm font-medium",children:e.name}),(0,t.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)("span",{"data-testid":"application-node-status-dot",className:(0,d.cn)("relative flex h-2 w-2 items-center justify-center rounded-full",k.dotClass),children:k.pulse?(0,t.jsx)("span",{className:(0,d.cn)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",k.dotClass)}):null}),(0,t.jsx)("span",{"data-testid":"application-node-status-text",className:"text-muted-foreground text-xs",children:k.label})]})]}),(0,t.jsx)("div",{className:"px-4 pb-4",children:(0,t.jsxs)("div",{className:"bg-muted group/preview relative overflow-hidden rounded-lg",style:{height:180},children:[j?(0,t.jsx)("iframe",{src:j,title:`${e.name} live preview`,className:"pointer-events-none absolute top-0 left-0 origin-top-left border-0 bg-white",style:{width:"250%",height:"250%",transform:"scale(0.4)"},sandbox:"allow-same-origin allow-scripts",loading:"lazy"}):(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-0 opacity-50 grayscale",children:[(0,t.jsxs)("div",{className:"flex h-6 items-center gap-2 px-2",style:{background:"var(--muted)"},children:[(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-2 rounded-full"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-2 rounded-full"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-2 rounded-full"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 ms-2 h-2 w-16 rounded"})]}),(0,t.jsxs)("div",{className:"flex h-[calc(100%-1.5rem)]",children:[(0,t.jsxs)("div",{className:"border-muted-foreground/5 flex w-[50px] flex-col gap-2 border-e p-2",children:[(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-full rounded"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-3/4 rounded"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-full rounded"})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2 p-3",children:[(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2.5 w-2/3 rounded"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-full rounded"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-5/6 rounded"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-3/4 rounded"}),(0,t.jsx)("div",{className:"bg-muted-foreground/10 h-2 w-2/3 rounded"})]})]})]}),w.status===q.DeploymentState.Ready&&j?(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center gap-2 bg-neutral-900/75 opacity-0 transition-opacity duration-150 group-hover/preview:pointer-events-auto group-hover/preview:opacity-100 dark:bg-neutral-950/80",onPointerDown:N,onClick:N,children:[(0,t.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),w.stop()},disabled:w.stopLoading,"aria-label":"Stop dev server",title:"Stop dev server",className:"inline-flex h-9 cursor-pointer items-center gap-1.5 rounded-md border border-neutral-300 bg-white px-3 text-xs font-semibold text-neutral-900 shadow-md transition-colors hover:border-red-500 hover:bg-red-50 hover:text-red-600 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:hover:border-red-500 dark:hover:bg-red-950 dark:hover:text-red-400",children:[w.stopLoading?(0,t.jsx)(G.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(y.Square,{className:"h-3.5 w-3.5 fill-current"}),(0,t.jsx)("span",{children:"Stop"})]}),(0,t.jsxs)("button",{type:"button",onClick:C,"aria-label":`Open ${e.name} in a new tab`,title:j,className:"inline-flex h-9 cursor-pointer items-center gap-1.5 rounded-md border border-neutral-300 bg-white px-3 text-xs font-semibold text-neutral-900 shadow-md transition-colors hover:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:hover:bg-neutral-800",children:[(0,t.jsx)(z.ExternalLink,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:"Open"})]})]}):null,w.status===q.DeploymentState.Booting||w.deployLoading?(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-neutral-100 dark:bg-neutral-900",children:[(0,t.jsx)(G.Loader2,{className:"h-8 w-8 animate-spin text-amber-500"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-medium",children:"Starting…"})]}):null,w.stopLoading&&w.status===q.DeploymentState.Ready?(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-neutral-900/75 dark:bg-neutral-950/80",children:[(0,t.jsx)(G.Loader2,{className:"h-8 w-8 animate-spin text-neutral-100"}),(0,t.jsx)("span",{className:"text-xs font-medium text-neutral-100",children:"Stopping…"})]}):null,w.deployLoading||w.stopLoading||w.status===q.DeploymentState.Booting||w.status===q.DeploymentState.Ready||!w.deployError?null:(0,t.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),w.deploy()},onPointerDown:N,className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-neutral-100 transition-colors hover:bg-neutral-200 dark:bg-neutral-900 dark:hover:bg-neutral-800",children:[(0,t.jsx)(W.TriangleAlert,{className:"h-8 w-8 text-red-500"}),(0,t.jsx)("span",{className:"text-xs font-medium text-red-600 dark:text-red-400",children:"Failed — click to retry"})]}),!j&&!w.deployLoading&&w.status!==q.DeploymentState.Booting&&!w.deployError&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-neutral-900/75 opacity-0 transition-opacity duration-150 group-hover/preview:pointer-events-auto group-hover/preview:opacity-100 dark:bg-neutral-950/80",children:(0,t.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),w.deploy()},onPointerDown:N,className:"inline-flex h-9 items-center gap-2 rounded-md border border-violet-400 bg-gradient-to-br from-indigo-500 to-violet-600 px-4 text-xs font-semibold text-white shadow-md transition-[filter] hover:brightness-110","aria-label":"Start dev server preview",children:[(0,t.jsx)(b.Play,{className:"h-3.5 w-3.5 fill-current"}),(0,t.jsx)("span",{children:"Start Preview"})]})})]})}),(0,t.jsx)("div",{className:"px-4 pb-4",children:(0,t.jsx)("span",{"data-testid":"application-node-repo-count",className:"text-muted-foreground text-xs",children:g})})]}),(0,t.jsx)(r.Handle,{type:"source",position:u,isConnectable:!1,className:"opacity-0!",style:{top:70}})]})}function Y(e){let[n]=(0,p.getBezierPath)({sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition});return(0,t.jsx)(r.BaseEdge,{id:e.id,path:n,style:{strokeDasharray:"5 5"}})}let J={x:30,y:30,zoom:.85};function K({nodes:e,edges:n,selectedFeatureId:o,selectedRepository:s,defaultViewport:p,onNodesChange:f,onAddFeature:m,onConnect:g,onNodeClick:x,onPaneClick:v,onCanvasDrag:b,onMoveEnd:y,toolbar:w,showToolbarOnEmpty:j=!0,emptyState:k}){let{t:N}=(0,l.useTranslation)("web"),C=(0,a.useMemo)(()=>({featureNode:h.FeatureNode,repositoryNode:$,applicationNode:V}),[]),E=(0,a.useMemo)(()=>({dependencyEdge:Y}),[]),S=(0,a.useMemo)(()=>{let t=null!=o,r=null!=s&&(null!=s.id||null!=s.path);return t||r?e.map(e=>{if(t&&"featureNode"===e.type&&e.data.featureId===o)return{...e,selected:!0};if(r&&"repositoryNode"===e.type){let t=e.data,r=null!=s.id&&(e.id===s.id||t.id===s.id),n=null!=s.path&&t.repositoryPath===s.path;if(r||n)return{...e,selected:!0}}return e}):e},[e,o,s]),_=0===e.length,[M,D]=(0,a.useState)(_),[O,P]=(0,a.useState)(!1),R=(0,a.useRef)(_);(0,a.useEffect)(()=>{if(R.current&&!_){P(!0);let e=setTimeout(()=>{D(!1),P(!1)},300);return R.current=_,()=>clearTimeout(e)}!R.current&&_&&D(!0),R.current=_},[_]);let I=_&&!k?(0,t.jsx)(u.EmptyState,{title:N("canvas.noFeatures"),description:N("canvas.noFeaturesDescription"),action:(0,t.jsxs)(c.Button,{onClick:m,children:[(0,t.jsx)(i.Plus,{className:"me-2 h-4 w-4"}),N("canvas.newFeature")]})}):null,T=k??I;return(0,t.jsxs)("div",{"data-testid":_?"features-canvas-empty":"features-canvas","data-no-drawer-close":!0,className:"dark:bg-background pointer-events-auto relative h-full w-full bg-[#f6f7f8]",children:[(0,t.jsxs)(r.ReactFlow,{nodes:S,edges:n,nodeTypes:C,edgeTypes:E,onConnect:g,onNodesChange:f,onNodeClick:x,onPaneClick:v,onMoveStart:b,onMoveEnd:y,defaultViewport:p??J,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,proOptions:{hideAttribution:!0},className:"[&_.react-flow__pane]:!cursor-default",children:[(0,t.jsx)(r.Background,{variant:r.BackgroundVariant.Dots,gap:24,size:1,color:"#b8bcc4",className:"dark:[&_circle]:!fill-white/[0.1]"}),w&&!_?(0,t.jsx)(r.Panel,{position:"top-right",className:"!me-3 !mt-3",children:w}):null]}),M&&T?(0,t.jsx)("div",{className:(0,d.cn)("pointer-events-none absolute inset-0 z-10 flex items-center justify-center transition-opacity duration-300",O?"opacity-0":"animate-in fade-in opacity-100 duration-200"),children:(0,t.jsx)("div",{className:"pointer-events-auto h-full w-full",children:T})}):null,w&&_&&j?(0,t.jsx)("div",{className:"pointer-events-auto absolute end-3 top-3 z-20",children:w}):null]})}var X=e.i(987889),Z=e.i(806288),Q=e.i(903645);let ee=(0,Q.default)("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),et=(0,Q.default)("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),er=(0,Q.default)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);function en({showArchived:e,onToggleArchived:n,onResetViewport:o,startSlot:s}){let{t:i}=(0,l.useTranslation)("web"),{zoomIn:d,zoomOut:c,fitView:u,setViewport:h}=(0,r.useReactFlow)(),p=(0,a.useCallback)(()=>{d({duration:200})},[d]),f=(0,a.useCallback)(()=>{c({duration:200})},[c]),m=(0,a.useCallback)(()=>{u({duration:400,padding:.3})},[u]),g=(0,a.useCallback)(()=>{o&&h(o(),{duration:400})},[o,h]);return(0,t.jsxs)("div",{className:"bg-background flex items-center gap-1 rounded-xl border px-2 py-1.5 shadow-md dark:bg-neutral-900",children:[s?(0,t.jsxs)(t.Fragment,{children:[s,(0,t.jsx)("div",{className:"bg-border mx-1 h-5 w-px"})]}):null,(0,t.jsx)(ea,{onClick:n,title:i(e?"canvas.hideArchived":"canvas.showArchived"),active:e,label:i(e?"canvas.hideArchivedLabel":"canvas.showArchivedLabel"),children:e?(0,t.jsx)(X.Eye,{className:"h-4 w-4"}):(0,t.jsx)(Z.EyeOff,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"bg-border mx-1 h-5 w-px"}),(0,t.jsx)(ea,{onClick:f,title:i("canvas.zoomOut"),children:(0,t.jsx)(et,{className:"h-4 w-4"})}),(0,t.jsx)(ea,{onClick:p,title:i("canvas.zoomIn"),children:(0,t.jsx)(ee,{className:"h-4 w-4"})}),(0,t.jsx)(ea,{onClick:m,title:i("canvas.fitView"),children:(0,t.jsx)(er,{className:"h-4 w-4"})}),o?(0,t.jsx)(ea,{onClick:g,title:i("canvas.resetView"),children:(0,t.jsx)(C.RotateCcw,{className:"h-4 w-4"})}):null]})}function ea({children:e,onClick:r,title:n,label:a,active:o}){return(0,t.jsxs)("button",{type:"button",onClick:r,title:n,className:(0,d.cn)("inline-flex items-center gap-1.5 rounded-lg px-2 py-1.5 text-xs font-medium transition-colors","hover:bg-accent hover:text-accent-foreground",o?"text-primary bg-primary/10":"text-muted-foreground"),children:[e,a?(0,t.jsx)("span",{children:a}):null]})}var eo=e.i(976874),es=e.i(723925),ei=e.i(998798),el=e.i(713005),ed=e.i(470646);let ec="shep:workspaces:v1",eu="default",eh={workspaces:[{id:eu,name:"Default",repoIds:[],featureIds:[]}],activeWorkspaceId:eu};function ep({workspaces:e,activeWorkspace:r,onSelect:n,onRequestCreate:o,onRequestRename:s,onRequestDelete:l,onManage:c}){let[u,h]=(0,a.useState)(!1),p=r.id===eu;return(0,t.jsxs)(ed.DropdownMenu,{open:u,onOpenChange:h,children:[(0,t.jsx)(ed.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","data-testid":"workspace-selector-trigger",className:(0,d.cn)("inline-flex items-center gap-1.5 rounded-lg px-2 py-1.5 text-xs font-medium transition-colors","hover:bg-accent hover:text-accent-foreground",p?"text-muted-foreground":"text-primary bg-primary/10"),title:"Workspace",children:[(0,t.jsx)(eo.Layers,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"max-w-[120px] truncate",children:r.name})]})}),(0,t.jsxs)(ed.DropdownMenuContent,{align:"start",className:"min-w-[220px]",children:[(0,t.jsx)(ed.DropdownMenuLabel,{children:"Workspaces"}),(0,t.jsx)(ed.DropdownMenuSeparator,{}),e.map(e=>{let a=e.id===r.id,o=e.id!==eu;return(0,t.jsxs)(ed.DropdownMenuItem,{onSelect:()=>n(e.id),className:"group/ws-row flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1",children:[a?(0,t.jsx)(es.Check,{className:"h-3.5 w-3.5"}):null,o?(0,t.jsx)("button",{type:"button","aria-label":`Delete workspace ${e.name}`,title:`Delete workspace ${e.name}`,onClick:t=>{t.preventDefault(),t.stopPropagation(),h(!1),l(e.id)},className:"text-muted-foreground hover:bg-destructive/10 hover:text-destructive rounded p-0.5 opacity-0 transition-opacity group-hover/ws-row:opacity-100 focus-visible:opacity-100",children:(0,t.jsx)(v.Trash2,{className:"h-3.5 w-3.5"})}):null]})]},e.id)}),(0,t.jsx)(ed.DropdownMenuSeparator,{}),(0,t.jsxs)(ed.DropdownMenuItem,{onSelect:o,children:[(0,t.jsx)(i.Plus,{className:"mr-2 h-3.5 w-3.5"}),"New workspace…"]}),(0,t.jsxs)(ed.DropdownMenuItem,{onSelect:c,disabled:p,children:[(0,t.jsx)(el.SlidersHorizontal,{className:"mr-2 h-3.5 w-3.5"}),"Manage items…"]}),(0,t.jsxs)(ed.DropdownMenuItem,{onSelect:s,disabled:p,children:[(0,t.jsx)(ei.Pencil,{className:"mr-2 h-3.5 w-3.5"}),"Rename"]})]})]})}var ef=e.i(853756);function em({open:e,onOpenChange:r,workspace:n,allNodes:o,onSave:s}){let[i,l]=(0,a.useState)(new Set),[d,u]=(0,a.useState)(new Set);(0,a.useEffect)(()=>{e&&(l(new Set(n.repoIds)),u(new Set(n.featureIds)))},[e,n]);let h=(0,a.useMemo)(()=>{let e=[],t=new Map;for(let r of o){if("repositoryNode"!==r.type)continue;let n=r.data,a=n.repositoryPath??"",o={nodeId:r.id,name:n.name??a.split("/").filter(Boolean).pop()??a,features:[]};e.push(o),t.set(a,o)}for(let e of o){if("featureNode"!==e.type)continue;let r=e.data,n=t.get(r.repositoryPath??"");n&&n.features.push({nodeId:e.id,name:r.name})}return e},[o]);return(0,t.jsx)(M.Dialog,{open:e,onOpenChange:r,children:(0,t.jsxs)(M.DialogContent,{className:"max-h-[80vh] max-w-lg overflow-hidden",children:[(0,t.jsxs)(M.DialogHeader,{children:[(0,t.jsxs)(M.DialogTitle,{children:["Manage workspace: ",n.name]}),(0,t.jsx)(M.DialogDescription,{children:"Select the repositories and features that should appear on this workspace's canvas."})]}),(0,t.jsx)("div",{className:"-mx-6 max-h-[50vh] overflow-y-auto px-6",children:0===h.length?(0,t.jsx)("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"No repositories on the canvas yet."}):(0,t.jsx)("ul",{className:"space-y-3 py-2",children:h.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("label",{className:"hover:bg-accent/30 flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5",children:[(0,t.jsx)(D.Checkbox,{checked:i.has(e.nodeId),onCheckedChange:()=>{var t;return t=e.nodeId,void l(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r})}}),(0,t.jsx)(w.GitBranch,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:e.name})]}),e.features.length>0?(0,t.jsx)("ul",{className:"mt-1 ml-7 space-y-0.5",children:e.features.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("label",{className:"hover:bg-accent/30 flex cursor-pointer items-center gap-2 rounded-md px-2 py-1",children:[(0,t.jsx)(D.Checkbox,{checked:d.has(e.nodeId),onCheckedChange:()=>{var t;return t=e.nodeId,void u(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r})}}),(0,t.jsx)(ef.Sparkles,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:e.name})]})},e.nodeId))}):null]},e.nodeId))})}),(0,t.jsxs)(M.DialogFooter,{children:[(0,t.jsx)(c.Button,{variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),(0,t.jsx)(c.Button,{onClick:()=>{s({repoIds:Array.from(i),featureIds:Array.from(d)}),r(!1)},children:"Save"})]})]})})}var eg=e.i(698127);function ex({open:e,onOpenChange:r,title:n,description:o,initialValue:s="",confirmLabel:i,onConfirm:l}){let[d,u]=(0,a.useState)(s);return(0,a.useEffect)(()=>{e&&u(s)},[e,s]),(0,t.jsx)(M.Dialog,{open:e,onOpenChange:r,children:(0,t.jsx)(M.DialogContent,{className:"max-w-sm",children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=d.trim();t&&(l(t),r(!1))},children:[(0,t.jsxs)(M.DialogHeader,{children:[(0,t.jsx)(M.DialogTitle,{children:n}),o?(0,t.jsx)(M.DialogDescription,{children:o}):null]}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)(eg.Input,{autoFocus:!0,value:d,onChange:e=>u(e.target.value),placeholder:"Workspace name","data-testid":"workspace-name-input"})}),(0,t.jsxs)(M.DialogFooter,{children:[(0,t.jsx)(c.Button,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),(0,t.jsx)(c.Button,{type:"submit",disabled:!d.trim(),children:i})]})]})})})}var ev=e.i(271326);e.i(744263);var eb=e.i(371127),ey=e.i(805147),ew=e.i(808361),ej=e.i(930153);let ek="shep-canvas-viewport",eN={x:30,y:30,zoom:.85};var eC=e.i(957638),eE=e.i(655827),eS=e.i(440106),e_=e.i(433548),eM=e.i(435e3),eD=e.i(579687),eO=e.i(99105),eP=e.i(478521);e.i(13322);var eR=e.i(961201),eI=e.i(508893);let eT=(0,eI.createServerReference)("00f092d9c0ae177dc66c5408c8e248c87a8ce5e6ba",eI.callServer,void 0,eI.findSourceMapURL,"isAgentSetupComplete"),eF=(0,eI.createServerReference)("00a52be6500113cf376228b9de1238bf26a39db4e7",eI.callServer,void 0,eI.findSourceMapURL,"checkAgentAuth"),eA=(0,eI.createServerReference)("0086fd44433d62356b466112bcd42ba09ccbd64a9e",eI.callServer,void 0,eI.findSourceMapURL,"checkToolStatus");var eL=e.i(611345),e$=e.i(801165),ez=e.i(371308),eB=e.i(286782),eG=e.i(229847);let eW=["select-agent","select-model"];function eq({onComplete:e,className:r}){let{t:n}=(0,l.useTranslation)("web"),[o,s]=(0,a.useState)([]),[i,c]=(0,a.useState)(!0),[u,h]=(0,a.useState)("select-agent"),[p,f]=(0,a.useState)(null),[m,g]=(0,a.useState)(!1),[x,v]=(0,a.useState)(!1),[b,y]=(0,a.useState)(!0),w=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{(0,e$.getAllAgentModels)().then(s).finally(()=>c(!1))},[]);let j=p?o.find(e=>e.agentType===p):null,k=(0,a.useCallback)((e,t)=>{v(!0),y(!1),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{t?.(),h(e),requestAnimationFrame(()=>{y(!0),v(!1)})},150)},[]);(0,a.useEffect)(()=>()=>{w.current&&clearTimeout(w.current)},[]);let N=(0,a.useCallback)(async(t,r)=>{g(!0);try{await (0,ez.updateAgentAndModel)(t,r),y(!1),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{e()},200)}catch{g(!1)}},[e]),C=(0,a.useCallback)(e=>{let t=o.find(t=>t.agentType===e);t&&t.models.length>0?k("select-model",()=>{f(e)}):N(e,null)},[o,k,N]),E=(0,a.useCallback)(e=>{p&&N(p,e)},[p,N]),S=(0,a.useCallback)(()=>{"select-model"===u&&k("select-agent",()=>{f(null)})},[u,k]);if(i)return(0,t.jsxs)("div",{"data-testid":"welcome-agent-setup",className:(0,d.cn)("flex flex-col items-center justify-center gap-4",r),children:[(0,t.jsx)(G.Loader2,{className:"text-muted-foreground h-5 w-5 animate-spin"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:n("welcome.loadingAgents")})]});let _=eW.indexOf(u),M=n("select-agent"===u?"welcome.chooseAgent":"welcome.pickModel"),D="select-agent"===u?n("welcome.selectAgentSubtitle"):j?n("welcome.chooseModelSubtitle",{label:j.label}):"";return(0,t.jsxs)("div",{"data-testid":"welcome-agent-setup",className:(0,d.cn)("flex w-full flex-col items-center",r),children:[(0,t.jsx)("div",{className:"mb-8 flex w-full max-w-xs items-center gap-1.5",children:eW.map((e,r)=>(0,t.jsx)("div",{className:(0,d.cn)("h-[3px] flex-1 rounded-full transition-colors duration-300",r<=_?"bg-foreground/60":"bg-muted")},e))}),(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center transition-opacity duration-200",b&&!x?"opacity-100":"opacity-0"),children:[(0,t.jsx)("h1",{className:"text-foreground/90 text-center text-5xl font-extralight tracking-tight",children:M}),(0,t.jsx)("p",{className:"text-muted-foreground mt-3 text-center text-lg leading-relaxed font-light",children:D}),(0,t.jsxs)("div",{className:"mt-8 flex w-full flex-col items-center",children:["select-agent"===u&&(0,t.jsx)("div",{"data-testid":"agent-list",className:"grid w-full max-w-lg gap-3",style:{gridTemplateColumns:`repeat(${Math.min(o.length,4)}, minmax(0, 1fr))`},children:o.map(e=>{let r=(0,eB.getAgentTypeIcon)(e.agentType);return(0,t.jsxs)("button",{type:"button",disabled:m,"data-testid":`agent-option-${e.agentType}`,className:"border-border hover:bg-accent hover:border-foreground/20 flex cursor-pointer flex-col items-center gap-3 rounded-2xl border px-4 py-5 transition-all duration-150 active:scale-[0.97] disabled:opacity-50",onClick:()=>C(e.agentType),children:[(0,t.jsx)(r,{className:"text-foreground/70 h-7 w-7"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:e.label})]},e.agentType)})}),"select-model"===u&&j?(0,t.jsxs)("div",{"data-testid":"model-list",className:"flex w-full max-w-lg flex-col items-center gap-4",children:[(0,t.jsxs)("button",{type:"button",disabled:m,className:"text-muted-foreground hover:text-foreground flex cursor-pointer items-center gap-1.5 self-start text-sm transition-colors",onClick:S,children:[(0,t.jsx)(eL.ChevronLeft,{className:"h-4 w-4"}),n("welcome.back")]}),(0,t.jsx)("div",{className:"grid w-full gap-3",style:{gridTemplateColumns:`repeat(${Math.min(j.models.length,3)}, minmax(0, 1fr))`},children:j.models.map(e=>{let r=(0,eG.getModelMeta)(e.id);return(0,t.jsxs)("button",{type:"button",disabled:m,"data-testid":`model-option-${e.id}`,className:"border-border hover:bg-accent hover:border-foreground/20 flex cursor-pointer flex-col items-center gap-2 rounded-2xl border px-4 py-5 text-center transition-all duration-150 active:scale-[0.97] disabled:opacity-50",onClick:()=>E(e.id),children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:r.displayName||e.displayName}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs leading-tight",children:r.description||e.description})]},e.id)})})]}):null]})]})]})}var eU=e.i(327810);let eH=["cd ~/my-repo",'shep feat new "sleek dashboard"'];function eV({onRepositorySelect:e,className:r}){let{t:n}=(0,l.useTranslation)("web"),[o,i]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[h,p]=(0,a.useState)(!1),[m,v]=(0,a.useState)(null),[b,y]=(0,a.useState)(null),[w,j]=(0,a.useState)(!1),[k,N]=(0,a.useState)(null),[C,E]=(0,a.useState)(!1),{reactFileManager:S}=(0,I.useFeatureFlags)();async function _(){if(!c){if(S)return void p(!0);u(!0);try{let t=await (0,eP.pickFolder)();t&&e?.(t)}catch{p(!0)}finally{u(!1)}}}(0,a.useEffect)(()=>{eT().then(e=>v(e)).catch(()=>v(!1))},[]),(0,a.useEffect)(()=>{m&&(eF().then(y).catch(()=>y({agentType:"unknown",installed:!1,authenticated:!1,label:"Agent",binaryName:null,installCommand:null,authCommand:null})),eA().then(N).catch(()=>N({git:{installed:!1,version:null,installCommand:null,installUrl:null},gh:{installed:!1,version:null,installCommand:null,installUrl:null}})))},[m]);let M=(0,a.useCallback)(async()=>{await navigator.clipboard.writeText(eH.join("\n")),i(!0),setTimeout(()=>i(!1),2e3)},[]),D=(0,a.useCallback)(()=>{v(!0)},[]),O=(0,a.useCallback)(()=>{y(null),eF().then(y)},[]);return null===m?null:(0,t.jsxs)("div",{"data-testid":"control-center-onboarding",className:(0,d.cn)("relative flex h-full w-full flex-col items-center justify-center px-8",r),children:[m?(0,t.jsxs)("div",{className:"animate-in fade-in flex w-full max-w-md flex-col items-center duration-300",children:[(0,t.jsx)("h1",{className:"text-foreground/90 text-center text-5xl font-extralight tracking-tight",children:n("emptyState.addProject")}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-3 text-center text-lg leading-relaxed font-light",children:[n("emptyState.addProjectDescription"),(0,t.jsx)("br",{}),n("emptyState.addProjectDescriptionLine2")]}),(0,t.jsxs)("div",{className:"mt-8 flex w-full flex-col gap-3",children:[(0,t.jsx)(eY,{status:b,onRetry:O}),(0,t.jsx)(eJ,{label:n("emptyState.git"),status:k?.git??null,missingHint:n("emptyState.gitRequired")}),(0,t.jsx)(eJ,{label:n("emptyState.githubCli"),status:k?.gh??null,missingHint:n("emptyState.githubCliRequired")})]}),(0,t.jsxs)("button",{type:"button","data-testid":"empty-state-add-repository",onClick:_,disabled:c,className:"bg-foreground text-background hover:bg-foreground/90 mt-10 flex w-full cursor-pointer items-center justify-center gap-2.5 rounded-xl px-6 py-4 text-base font-medium shadow-lg transition-all duration-200 hover:shadow-xl active:scale-[0.98] disabled:cursor-wait disabled:opacity-50",children:[c?(0,t.jsx)(G.Loader2,{className:"h-5 w-5 animate-spin"}):(0,t.jsx)(x.FolderOpen,{className:"h-5 w-5"}),n(c?"emptyState.opening":"emptyState.chooseFolder")]}),(0,t.jsxs)("button",{type:"button","data-testid":"empty-state-new-project",onClick:()=>E(!0),disabled:c,className:"border-foreground/15 text-foreground/80 hover:bg-foreground/5 hover:border-foreground/25 mt-3 flex w-full cursor-pointer items-center justify-center gap-2.5 rounded-xl border px-6 py-3.5 text-sm font-medium transition-all duration-200 active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,t.jsx)(s.FolderPlus,{className:"h-4 w-4"}),"New Project"]}),(0,t.jsxs)("button",{type:"button","data-testid":"empty-state-import-github",onClick:()=>window.dispatchEvent(new CustomEvent("shep:open-github-import")),disabled:c,className:"border-foreground/15 text-foreground/80 hover:bg-foreground/5 hover:border-foreground/25 mt-3 flex w-full cursor-pointer items-center justify-center gap-2.5 rounded-xl border px-6 py-3.5 text-sm font-medium transition-all duration-200 active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,t.jsx)(f.Github,{className:"h-4 w-4"}),"Import from GitHub"]}),(0,t.jsx)("p",{className:"text-muted-foreground/60 mt-3 text-center text-sm",children:n("emptyState.folderHint")})]}):(0,t.jsx)(eq,{onComplete:D}),m?(0,t.jsxs)("div",{className:"absolute bottom-8 flex flex-col items-center",style:{animationDelay:"400ms",animationDuration:"600ms",animationFillMode:"both"},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>j(!w),className:"text-muted-foreground hover:text-foreground flex cursor-pointer items-center gap-1.5 transition-colors duration-200",children:[(0,t.jsx)(g.Terminal,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"text-sm",children:n("emptyState.orUseCli")}),(0,t.jsx)(eO.ChevronDown,{className:(0,d.cn)("h-3.5 w-3.5 transition-transform duration-200",w?"":"rotate-180")})]}),w?(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-top-1 mt-3 w-80 duration-200",children:(0,t.jsxs)("div",{"data-testid":"cli-code-block",className:"relative rounded-xl bg-zinc-900 px-5 py-4 font-mono text-[13px] leading-relaxed text-zinc-400",children:[(0,t.jsx)("button",{type:"button","data-testid":"cli-code-block-copy",onClick:M,className:"absolute top-3 right-3 cursor-pointer rounded-md p-1.5 text-zinc-600 transition-colors hover:bg-zinc-800 hover:text-zinc-300","aria-label":n("emptyState.copyCommands"),children:o?(0,t.jsx)(es.Check,{className:"h-3.5 w-3.5 text-emerald-400"}):(0,t.jsx)(e_.Copy,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("div",{className:"space-y-1",children:eH.map(e=>(0,t.jsxs)("div",{className:"whitespace-nowrap",children:[(0,t.jsx)("span",{className:"text-zinc-600 select-none",children:"$ "}),(0,t.jsx)("span",{className:"text-zinc-300",children:e})]},e))})]})}):null]}):null,(0,t.jsx)(eR.ReactFileManagerDialog,{open:h,onOpenChange:e=>{e||p(!1)},onSelect:function(t){t&&e?.(t),p(!1)}}),(0,t.jsx)(eU.NewProjectDialog,{open:C,onOpenChange:E,onCreated:t=>e?.(t)})]})}function eY({status:e,onRetry:r}){let{t:n}=(0,l.useTranslation)("web");return e?e.installed&&e.authenticated?(0,t.jsx)(eK,{icon:(0,t.jsx)(eM.CheckCircle2,{className:"h-4 w-4 text-emerald-500"}),children:(0,t.jsx)("span",{className:"text-sm text-emerald-600 dark:text-emerald-400",children:n("emptyState.ready",{label:e.label})})}):e.installed?(0,t.jsxs)(eK,{icon:(0,t.jsx)(eD.AlertCircle,{className:"h-4 w-4 text-amber-500"}),children:[(0,t.jsx)("span",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:n("emptyState.needsAuth",{label:e.label})}),e.authCommand?(0,t.jsx)(eX,{command:e.authCommand}):null,(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e.binaryName?(0,t.jsxs)("button",{type:"button","data-testid":"auth-banner-open-terminal",onClick:async()=>{try{let t="claude-code"===e.agentType?"claude-code":e.agentType;await fetch(`/api/tools/${t}/launch`,{method:"POST"})}catch{}},className:"flex items-center gap-1 text-xs font-medium text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400",children:[(0,t.jsx)(g.Terminal,{className:"h-3 w-3"}),n("emptyState.open",{label:e.label})]}):null,(0,t.jsx)("button",{type:"button",onClick:r,className:"text-xs text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400",children:n("emptyState.reCheck")})]})]}):(0,t.jsxs)(eK,{icon:(0,t.jsx)(eD.AlertCircle,{className:"h-4 w-4 text-amber-500"}),children:[(0,t.jsx)("span",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:n("emptyState.notInstalled",{label:e.label})}),e.installCommand?(0,t.jsx)(eX,{command:e.installCommand}):null,(0,t.jsx)("button",{type:"button",onClick:r,className:"text-xs text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400",children:n("emptyState.reCheck")})]}):(0,t.jsx)(eK,{icon:(0,t.jsx)(G.Loader2,{className:"text-muted-foreground/50 h-4 w-4 animate-spin"}),children:(0,t.jsx)("span",{className:"text-muted-foreground/50 text-sm",children:n("emptyState.checkingSetup")})})}function eJ({label:e,status:r,missingHint:n}){let{t:a}=(0,l.useTranslation)("web");return r?r.installed?(0,t.jsx)(eK,{icon:(0,t.jsx)(eM.CheckCircle2,{className:"h-4 w-4 text-emerald-500"}),children:(0,t.jsxs)("span",{className:"flex items-baseline gap-2",children:[(0,t.jsx)("span",{className:"text-sm text-emerald-600 dark:text-emerald-400",children:a("emptyState.ready",{label:e})}),r.version?(0,t.jsxs)("span",{className:"text-muted-foreground/40 text-xs",children:["v",r.version]}):null]})}):(0,t.jsxs)(eK,{icon:(0,t.jsx)(eD.AlertCircle,{className:"h-4 w-4 text-amber-500"}),children:[(0,t.jsx)("span",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:a("emptyState.notFound",{label:e})}),(0,t.jsx)("span",{className:"text-muted-foreground/50 text-xs",children:n}),r.installCommand?(0,t.jsx)(eX,{command:r.installCommand}):null,r.installUrl?(0,t.jsxs)("a",{href:r.installUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400",children:[a("emptyState.docs")," ",(0,t.jsx)(z.ExternalLink,{className:"h-3 w-3"})]}):null]}):(0,t.jsx)(eK,{icon:(0,t.jsx)(G.Loader2,{className:"text-muted-foreground/50 h-4 w-4 animate-spin"}),children:(0,t.jsx)("span",{className:"text-muted-foreground/50 text-sm",children:a("emptyState.checking",{label:e})})})}function eK({icon:e,children:r}){return(0,t.jsxs)("div",{className:"animate-in fade-in flex items-start gap-2.5",children:[(0,t.jsx)("div",{className:"mt-0.5 shrink-0",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:r})]})}function eX({command:e}){let[r,n]=(0,a.useState)(!1);return(0,t.jsxs)("button",{type:"button",onClick:async()=>{await navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},className:"group/cmd flex cursor-pointer items-center justify-between gap-2 rounded-md bg-zinc-100 py-1 ps-2.5 pe-2 text-start transition-colors hover:bg-zinc-200 dark:bg-zinc-800 dark:hover:bg-zinc-700",children:[(0,t.jsx)("code",{className:"min-w-0 truncate text-[11px] leading-relaxed text-zinc-600 dark:text-zinc-300",children:e}),r?(0,t.jsx)(es.Check,{className:"h-3 w-3 shrink-0 text-emerald-500"}):(0,t.jsx)(e_.Copy,{className:"h-3 w-3 shrink-0 text-zinc-400 opacity-0 transition-opacity group-hover/cmd:opacity-100"})]})}var eZ=e.i(917840);let eQ={maxZoom:1,padding:.5,duration:500},e0={maxZoom:1,padding:.5,duration:500};function e1({initialNodes:e,initialEdges:n}){let d,u,h,p,m,g,v=(0,o.useRouter)(),b=(0,o.usePathname)(),y=(d=(0,o.usePathname)().match(/^\/feature\/([^/]+)/),d?.[1]??null),j=(u=(0,o.usePathname)(),h=(0,o.useSearchParams)(),p=u.match(/^\/repository\/([^/]+)/),{id:p?.[1]??null,path:u.startsWith("/create")?h.get("repo"):null}),k=(0,ew.useSoundAction)("click"),{guardedNavigate:N}=(0,ej.useDrawerCloseGuard)(),{fitView:C}=(0,r.useReactFlow)(),E=(0,a.useRef)(null),{defaultViewport:S,onMoveEnd:_,resetViewport:M}=(m=(0,a.useRef)(function(){try{let e=localStorage.getItem(ek);if(null==e)return eN;let t=JSON.parse(e);return!(null==t||"object"!=typeof t||Array.isArray(t))&&"number"==typeof t.x&&"number"==typeof t.y&&"number"==typeof t.zoom&&Number.isFinite(t.x)&&Number.isFinite(t.y)&&Number.isFinite(t.zoom)&&t.zoom>0?t:eN}catch{return eN}}()).current,g=(0,a.useRef)(null),(0,a.useEffect)(()=>()=>{null!=g.current&&clearTimeout(g.current)},[]),{defaultViewport:m,onMoveEnd:(0,a.useCallback)(e=>{null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{try{localStorage.setItem(ek,JSON.stringify(e))}catch{}},500)},[]),resetViewport:(0,a.useCallback)(()=>{try{localStorage.removeItem(ek)}catch{}return eN},[])}),{nodes:D,edges:O,onNodesChange:P,handleConnect:R,handleAddRepository:T,handleArchiveFeature:F,handleDeleteFeature:A,handleRetryFeature:L,handleStartFeature:$,handleStopFeature:z,handleUnarchiveFeature:G,handleDeleteRepository:W,handleDeleteApplication:q,createFeatureNode:U,showArchived:H,setShowArchived:V,setCallbacks:Y}=(0,eZ.useControlCenterState)(e,n),{workspaces:J,activeWorkspace:X,isDefaultActive:Z,setActiveWorkspace:Q,createWorkspace:ee,renameWorkspace:et,deleteWorkspace:er,setWorkspaceMembers:ea,addToActiveWorkspace:es}=function(){let[e,t]=(0,a.useState)(eh);(0,a.useEffect)(()=>{t(function(){try{let e=window.localStorage.getItem(ec);if(!e)return eh;let t=JSON.parse(e);if(!t.workspaces||!Array.isArray(t.workspaces))return eh;return{workspaces:t.workspaces.some(e=>e.id===eu)?t.workspaces:[eh.workspaces[0],...t.workspaces],activeWorkspaceId:t.activeWorkspaceId??eu}}catch{return eh}}())},[]),(0,a.useEffect)(()=>{try{window.localStorage.setItem(ec,JSON.stringify(e))}catch{}},[e]);let r=(0,a.useCallback)(e=>{t(t=>t.workspaces.some(t=>t.id===e)?{...t,activeWorkspaceId:e}:t)},[]),n=(0,a.useCallback)(e=>{let r=e.trim()||"Untitled workspace",n={id:`ws-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,name:r,repoIds:[],featureIds:[]};return t(e=>({workspaces:[...e.workspaces,n],activeWorkspaceId:n.id})),n},[]),o=(0,a.useCallback)((e,r)=>{if(e===eu)return;let n=r.trim();n&&t(t=>({...t,workspaces:t.workspaces.map(t=>t.id===e?{...t,name:n}:t)}))},[]),s=(0,a.useCallback)(e=>{e!==eu&&t(t=>({workspaces:t.workspaces.filter(t=>t.id!==e),activeWorkspaceId:t.activeWorkspaceId===e?eu:t.activeWorkspaceId}))},[]),i=(0,a.useCallback)((e,r)=>{e!==eu&&t(t=>({...t,workspaces:t.workspaces.map(t=>t.id===e?{...t,repoIds:[...r.repoIds],featureIds:[...r.featureIds]}:t)}))},[]),l=(0,a.useCallback)((e,r)=>{t(t=>t.activeWorkspaceId===eu?t:{...t,workspaces:t.workspaces.map(n=>{if(n.id!==t.activeWorkspaceId)return n;let a="repo"===e?n.repoIds:n.featureIds,o=a.includes(r)?a.filter(e=>e!==r):[...a,r];return"repo"===e?{...n,repoIds:o}:{...n,featureIds:o}})})},[]),d=(0,a.useCallback)(e=>l("repo",e),[l]),c=(0,a.useCallback)(e=>l("feature",e),[l]),u=(0,a.useCallback)(e=>{let r=e.repoIds??[],n=e.featureIds??[];(0!==r.length||0!==n.length)&&t(e=>e.activeWorkspaceId===eu?e:{...e,workspaces:e.workspaces.map(t=>{if(t.id!==e.activeWorkspaceId)return t;let a=new Set(t.repoIds);for(let e of r)a.add(e);let o=new Set(t.featureIds);for(let e of n)o.add(e);return a.size===t.repoIds.length&&o.size===t.featureIds.length?t:{...t,repoIds:Array.from(a),featureIds:Array.from(o)}})})},[]),h=e.workspaces.find(t=>t.id===e.activeWorkspaceId)??e.workspaces[0];return{workspaces:e.workspaces,activeWorkspace:h,activeWorkspaceId:e.activeWorkspaceId,isDefaultActive:e.activeWorkspaceId===eu,setActiveWorkspace:r,createWorkspace:n,renameWorkspace:o,deleteWorkspace:s,setWorkspaceMembers:i,toggleRepoInActive:d,toggleFeatureInActive:c,addToActiveWorkspace:u}}(),ei=(0,a.useRef)(new Set),[el,ed]=(0,a.useState)(!1),[eg,eb]=(0,a.useState)(!1),[eC,eE]=(0,a.useState)(!1),[e_,eM]=(0,a.useState)(!1),[eD,eO]=(0,a.useState)(null),[eP,eR]=(0,a.useState)(!1),{setFeatures:eI,setHasRepositories:eT}=(0,ey.useSidebarFeaturesContext)(),eF=(0,a.useMemo)(()=>D.filter(e=>"featureNode"===e.type),[D]),eA=(0,a.useMemo)(()=>eF.map(e=>{let t=e.data;return`${t.featureId}:${t.state}:${t.name}:${t.repositoryPath}`}).sort().join(","),[eF]);(0,a.useEffect)(()=>{eI(eF.map(e=>{let t=e.data,r=(0,ey.mapNodeStateToSidebarStatus)(t.state);if(!r)return null;let n=t.repositoryPath??"";return{featureId:t.featureId,name:t.name,status:r,repositoryPath:n,repositoryName:t.repositoryName??n.split("/").filter(Boolean).pop()??n,...null!=t.startedAt&&{startedAt:t.startedAt},...null!=t.runtime&&{duration:t.runtime},...t.agentType&&{agentType:t.agentType},...t.modelId&&{modelId:t.modelId}}}).filter(Boolean))},[eA,eF,eI]);let eL=(0,a.useCallback)(e=>{N(()=>v.push(`/application/${e}`))},[v,N]),e$=(0,a.useCallback)((e,t)=>{if("featureNode"===t.type){let r=t.data;"creating"!==r.state&&"deleting"!==r.state&&e.target.closest('[data-testid="feature-node-card"]')&&N(()=>{k.play(),v.push(`/feature/${r.featureId}`)})}},[v,k,N]),ez=(0,a.useCallback)(()=>{k.play(),v.push("/create")},[v,k]),eB=(0,a.useCallback)(e=>{k.play();let t=D.find(t=>t.id===e),r=t?.data?.repositoryPath;r?v.push(`/create?repo=${encodeURIComponent(r)}`):v.push("/create")},[D,v,k]),eG=(0,a.useCallback)(e=>{let t=e.startsWith("feat-")?e.slice(5):e,r=O.find(t=>t.target===e),n=r?D.find(e=>e.id===r.source):null,a=n?.data?.repositoryPath;k.play();let o=new URLSearchParams;a&&o.set("repo",a),o.set("parent",t),v.push(`/create?${o.toString()}`)},[D,O,v,k]),eW=(0,a.useCallback)(e=>{let t=D.find(t=>t.id===e);if(t?.type==="repositoryNode"){let e=t.data;e.id&&N(()=>v.push(`/repository/${e.id}`))}},[D,v,N]),eq=(0,a.useCallback)(()=>{"/control-center"!==b&&N(()=>v.push("/control-center"))},[v,b,N]),eH=(0,a.useCallback)(e=>{setTimeout(()=>{C(e0),E.current=setTimeout(()=>{N(()=>v.push(`/create?repo=${encodeURIComponent(e)}`))},600)},0)},[C,N,v]),eY=(0,a.useCallback)(e=>{setTimeout(()=>{C({nodes:[{id:e}],maxZoom:1,padding:.4,duration:600})},0)},[C]),eJ=(0,a.useCallback)(e=>{let{wasEmpty:t,repoPath:r,tempNodeId:n}=T(e);t?eH(r):eY(n)},[T,eH,eY]);!function(e){let{addRepoAndFocus:t,createFeatureNode:r,nodes:n,handleDeleteFeature:o,handleArchiveFeature:s,handleUnarchiveFeature:i}=e;(0,a.useEffect)(()=>{let e=e=>{t(e.detail.path)};return window.addEventListener("shep:add-repository",e),()=>window.removeEventListener("shep:add-repository",e)},[t]),(0,a.useEffect)(()=>{let e=e=>{let t=e.detail;if(t.parentId)return void r(`feat-${t.parentId}`,{state:"creating",featureId:t.featureId,name:t.name,description:t.description,repositoryPath:t.repositoryPath},"dependencyEdge");let a=n.find(e=>"repositoryNode"===e.type&&e.data.repositoryPath===t.repositoryPath);r(a?.id??null,{state:"running",featureId:t.featureId,name:t.name,description:t.description,repositoryPath:t.repositoryPath})};return window.addEventListener("shep:feature-created",e),()=>window.removeEventListener("shep:feature-created",e)},[n,r]),(0,a.useEffect)(()=>{let e=e=>{let{featureId:t,cleanup:r,cascadeDelete:n,closePr:a}=e.detail;o(t,r,n,a)};return window.addEventListener("shep:feature-delete-requested",e),()=>window.removeEventListener("shep:feature-delete-requested",e)},[o]),(0,a.useEffect)(()=>{let e=e=>{let{featureId:t}=e.detail;s(t)};return window.addEventListener("shep:feature-archive-requested",e),()=>window.removeEventListener("shep:feature-archive-requested",e)},[s]),(0,a.useEffect)(()=>{let e=e=>{let{featureId:t}=e.detail;i(t)};return window.addEventListener("shep:feature-unarchive-requested",e),()=>window.removeEventListener("shep:feature-unarchive-requested",e)},[i])}({addRepoAndFocus:eJ,createFeatureNode:U,nodes:D,handleDeleteFeature:A,handleArchiveFeature:F,handleUnarchiveFeature:G}),(0,a.useEffect)(()=>()=>{null!=E.current&&clearTimeout(E.current)},[]),(0,a.useEffect)(()=>{Y({onNodeAction:eG,onFeatureDelete:A,onRetryFeature:L,onStartFeature:$,onStopFeature:z,onArchiveFeature:F,onUnarchiveFeature:G,onRepositoryAdd:eB,onRepositoryClick:eW,onRepositoryDelete:W,onApplicationClick:eL,onApplicationDelete:q})},[Y,eG,F,A,L,$,z,G,eB,eW,W,eL,q]);let eK=(0,a.useCallback)((e,t)=>{_(t)},[_]),eX=D.some(e=>"repositoryNode"===e.type),e1=eX||D.some(e=>"applicationNode"===e.type);(0,a.useEffect)(()=>{eT(eX)},[eX,eT]);let[e5,e3]=(0,a.useState)(e1),e4=(0,a.useRef)(null);(0,a.useEffect)(()=>(e1?(e4.current&&(clearTimeout(e4.current),e4.current=null),e3(!0)):e5&&(M(),e4.current=setTimeout(()=>{e3(!1),e4.current=null},500)),()=>{e4.current&&clearTimeout(e4.current)}),[e1,e5,M]),(0,a.useEffect)(()=>{let e=ei.current,t=[],r=[];for(let n of D)e.has(n.id)||(e.add(n.id),"repositoryNode"===n.type?t.push(n.id):"featureNode"===n.type&&r.push(n.id));Z||(0!==t.length||0!==r.length)&&es({repoIds:t,featureIds:r})},[D,Z,es]);let e6=(0,a.useMemo)(()=>{if(Z)return D;let e=new Set(X.repoIds),t=new Set(X.featureIds);return D.filter(r=>"repositoryNode"===r.type?e.has(r.id):"featureNode"!==r.type||t.has(r.id))},[D,Z,X]),e8=(0,a.useMemo)(()=>{if(Z)return O;let e=new Set(e6.map(e=>e.id));return O.filter(t=>e.has(t.source)&&e.has(t.target))},[O,Z,e6]),e7=b.startsWith("/create"),e9=(0,a.useMemo)(()=>{let e=e6.filter(e=>"repositoryNode"===e.type),t=e6.some(e=>"featureNode"===e.type);return 1!==e.length||t||e7?e6:e6.map(e=>"repositoryNode"===e.type?{...e,data:{...e.data,pulseAdd:!0}}:e)},[e6,e7]),te=(0,a.useCallback)(()=>{window.dispatchEvent(new CustomEvent("shep:pick-folder"))},[]);!function(e){let{activeWorkspace:t,isDefaultActive:r,workspaceFilteredNodes:n,fitView:o}=e,s=(0,a.useMemo)(()=>{if(r)return"default";let e=n.map(e=>e.id).sort().join(",");return`${t.id}:${e}`},[r,t.id,n]),i=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=i.current;if(i.current=s,null===e||e===s||r||0===n.length)return;let t=setTimeout(()=>{o(eQ)},0);return()=>clearTimeout(t)},[s,r,n.length,o])}({activeWorkspace:X,isDefaultActive:Z,workspaceFilteredNodes:e6,fitView:C});let tt=e1&&!Z&&0===e6.length,tr=tt?(0,t.jsxs)("div",{className:"pointer-events-auto flex h-full w-full flex-col items-center justify-center px-8",children:[(0,t.jsx)("div",{className:"bg-primary/10 text-primary mb-5 flex h-12 w-12 items-center justify-center rounded-2xl",children:(0,t.jsx)(eo.Layers,{className:"h-6 w-6"})}),(0,t.jsx)("h2",{className:"text-foreground/90 text-center text-2xl font-light tracking-tight",children:"This workspace is empty"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-2 max-w-sm text-center text-sm leading-relaxed",children:"Add repositories or features from the canvas, or switch back to the default workspace to see everything."}),(0,t.jsxs)("div",{className:"mt-6 flex items-center gap-2",children:[(0,t.jsxs)(c.Button,{size:"sm",onClick:()=>eR(!0),className:"bg-blue-500 text-white hover:bg-blue-600",children:[(0,t.jsx)(s.FolderPlus,{className:"me-1.5 h-3.5 w-3.5"}),"New project"]}),(0,t.jsxs)(c.Button,{variant:"outline",size:"sm",onClick:()=>ed(!0),children:[(0,t.jsx)(i.Plus,{className:"me-1.5 h-3.5 w-3.5"}),"Manage items"]}),(0,t.jsx)(c.Button,{variant:"ghost",size:"sm",onClick:()=>Q(eu),children:"Switch to Default"})]})]}):(0,t.jsx)(eV,{onRepositorySelect:eJ}),[tn,ta]=(0,a.useState)(!1),to=function({router:e,clickSound:r,guardedNavigate:n,handlePickFolder:o,onNewProject:i,onNewApplication:d,featureFlags:c}){let{t:u}=(0,l.useTranslation)("web");return(0,a.useMemo)(()=>{let a=[{id:"new-project",label:"New project",icon:(0,t.jsx)(s.FolderPlus,{className:"h-4 w-4"}),onClick:()=>{r.play(),i()}},{id:"new-feature",label:u("fab.newFeature"),icon:(0,t.jsx)(ef.Sparkles,{className:"h-4 w-4"}),onClick:()=>{r.play(),n(()=>e.push("/create"))}},{id:"add-local-repo",label:u("fab.localFolder"),icon:(0,t.jsx)(x.FolderOpen,{className:"h-4 w-4"}),onClick:o},{id:"new-application",label:u("fab.newApplication"),icon:(0,t.jsx)(B.LayoutGrid,{className:"h-4 w-4"}),onClick:d}];return c.adoptBranch&&a.push({id:"adopt-branch",label:u("fab.adoptBranch"),icon:(0,t.jsx)(w.GitBranch,{className:"h-4 w-4"}),onClick:()=>{n(()=>e.push("/adopt"))}}),c.githubImport&&a.push({id:"add-github-repo",label:u("fab.fromGithub"),icon:(0,t.jsx)(f.Github,{className:"h-4 w-4"}),onClick:()=>{window.dispatchEvent(new CustomEvent("shep:open-github-import"))}}),a},[u,r,n,e,o,i,d,c.adoptBranch,c.githubImport])}({router:v,clickSound:k,guardedNavigate:N,handlePickFolder:te,onNewProject:()=>eR(!0),onNewApplication:()=>ta(!0),featureFlags:(0,I.useFeatureFlags)()}),ts=(0,t.jsx)(en,{showArchived:H,onToggleArchived:()=>V(!H),onResetViewport:M,startSlot:(0,t.jsx)(ep,{workspaces:J,activeWorkspace:X,onSelect:Q,onRequestCreate:()=>eb(!0),onRequestRename:()=>eE(!0),onRequestDelete:e=>{eO(e),eM(!0)},onManage:()=>ed(!0)})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(K,{nodes:e5?e9:[],edges:e5?e8:[],selectedFeatureId:y,selectedRepository:j,defaultViewport:S,onNodesChange:P,onConnect:R,onAddFeature:ez,onNodeClick:e$,onPaneClick:eq,onMoveEnd:eK,toolbar:ts,showToolbarOnEmpty:tt,emptyState:tr}),e5?(0,t.jsx)(e2,{actions:to}):null,(0,t.jsx)(eU.NewProjectDialog,{open:eP,onOpenChange:eR,onCreated:e=>eJ(e)}),(0,t.jsx)(em,{open:el,onOpenChange:ed,workspace:X,allNodes:D,onSave:e=>ea(X.id,e)}),(0,t.jsx)(ex,{open:eg,onOpenChange:eb,title:"New workspace",description:"Create a workspace to filter the canvas to a specific set of repositories and features.",confirmLabel:"Create",onConfirm:e=>{ee(e),ed(!0)}}),(0,t.jsx)(ex,{open:eC,onOpenChange:eE,title:"Rename workspace",initialValue:X.name,confirmLabel:"Rename",onConfirm:e=>et(X.id,e)}),(0,t.jsx)(ev.AlertDialog,{open:e_,onOpenChange:e=>{eM(e),e||eO(null)},children:(0,t.jsxs)(ev.AlertDialogContent,{children:[(0,t.jsxs)(ev.AlertDialogHeader,{children:[(0,t.jsx)(ev.AlertDialogTitle,{children:"Delete workspace?"}),(0,t.jsxs)(ev.AlertDialogDescription,{children:["This will permanently remove the workspace “",J.find(e=>e.id===eD)?.name??X.name,"”. The repositories and features themselves are not affected."]})]}),(0,t.jsxs)(ev.AlertDialogFooter,{children:[(0,t.jsx)(ev.AlertDialogCancel,{children:"Cancel"}),(0,t.jsx)(ev.AlertDialogAction,{variant:"destructive",onClick:()=>{eD&&(er(eD),eO(null))},children:"Delete"})]})]})}),tn?(0,t.jsx)("div",{className:"absolute inset-0 z-50",children:(0,t.jsx)(eS.ControlCenterEmptyState,{onRepositorySelect:e=>{ta(!1),eJ(e)},onApplicationCreated:e=>{v.push(`/application/${e}`)},onClose:()=>ta(!1),className:"bg-background"})}):null]})}function e2({actions:e}){let{state:r}=(0,eC.useSidebar)(),{i18n:n}=(0,l.useTranslation)("web"),{swapPosition:a}=(0,eE.useFabLayout)(),o="rtl"===n.dir();if(a)return(0,t.jsx)(eb.FloatingActionButton,{actions:e,className:"!fixed bottom-6",style:o?{left:"calc(var(--sidebar-width-icon) + 32px)",transition:"left 200ms ease-in-out"}:{right:"32px",transition:"right 200ms ease-in-out"}});let s="expanded"===r?"calc(var(--sidebar-width) + 32px)":"calc(var(--sidebar-width-icon) + 32px)";return(0,t.jsx)(eb.FloatingActionButton,{actions:e,className:"!fixed bottom-6",style:o?{right:s,transition:"right 200ms ease-in-out"}:{left:s,transition:"left 200ms ease-in-out"}})}function e5({initialNodes:e,initialEdges:a,drawer:o}){return(0,t.jsxs)("div",{"data-testid":"control-center",className:"h-full w-full",children:[(0,t.jsx)(n.SessionsProvider,{children:(0,t.jsx)(r.ReactFlowProvider,{children:(0,t.jsx)(e1,{initialNodes:e,initialEdges:a})})}),(0,t.jsx)("div",{children:o},"drawer")]})}e.s(["ControlCenter",()=>e5],948246)},22173,e=>{"use strict";var t=e.i(873504),r=e.i(481605);e.s(["DeploymentStatusProvider",()=>t.DeploymentStatusProvider,"EMPTY_ENTRY",()=>r.EMPTY_ENTRY,"useDeploymentStatusContext",()=>t.useDeploymentStatusContext,"useDeploymentStatusContextOptional",()=>t.useDeploymentStatusContextOptional])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,868662,e=>{"use strict";e.s([],153556),e.i(153556);var c=e.i(508893);let r=(0,c.createServerReference)("40bf80e5fe8db9bc38a48cbe3280e97aeed3b7adeb",c.callServer,void 0,c.findSourceMapURL,"adoptLocalDirectory");e.s(["adoptLocalDirectory",()=>r],868662)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),a=e.i(205978),s=e.i(786874),i=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,d]=l(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:a}=e,s=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,i.jsx)(u,{scope:r,itemMap:n,collectionRef:s,children:a})};c.displayName=n;let f=e+"CollectionSlot",p=(0,s.createSlot)(f),y=t.default.forwardRef((e,t)=>{let{scope:r,children:s}=e,n=d(f,r),l=(0,a.useComposedRefs)(t,n.collectionRef);return(0,i.jsx)(p,{ref:l,children:s})});y.displayName=f;let h=e+"CollectionItemSlot",g="data-radix-collection-item",m=(0,s.createSlot)(h),v=t.default.forwardRef((e,r)=>{let{scope:s,children:n,...l}=e,o=t.default.useRef(null),u=(0,a.useComposedRefs)(r,o),c=d(h,s);return t.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...l}),()=>void c.itemMap.delete(o))),(0,i.jsx)(m,{...{[g]:""},ref:u,children:n})});return v.displayName=h,[{Provider:c,Slot:y,ItemSlot:v},function(r){let a=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=a.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(a.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[a.collectionRef,a.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,a;let s,i,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,a=t,s=r.length,(n=(i=u(a))>=0?i:s+i)<0||n>=s?-1:n);return -1===l?void 0:e[l]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let a,s=this.has(t),i=this.#e.length,n=u(e),l=n>=0?n:i+n,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let d=this.size+ +!s;n<0&&l++;let c=[...this.#e],f=!1;for(let e=l;e<d;e++)if(l===e){let i=c[e];c[e]===t&&(i=c[e+1]),s&&this.delete(t),a=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],s=a;a=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,a){let s=new e(this);return s.insert(t,r,a),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return a;r++}}findIndex(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return r;r++}return -1}filter(t,r){let a=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&a.push(e),s++;return new e(a)}map(t,r){let a=[],s=0;for(let e of this)a.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(a)}reduce(...e){let[t,r]=e,a=0,s=r??this.at(0);for(let r of this)s=0===a&&1===e.length?r:Reflect.apply(t,this,[s,r,a,this]),a++;return s}reduceRight(...e){let[t,r]=e,a=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);a=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[a,s,r,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),a=this.get(r);t.set(r,a)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let a=new e,s=this.size-1;if(void 0===t)return a;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);a.set(t,r)}return a}every(e,t){let r=0;for(let a of this){if(!Reflect.apply(e,t,[a,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),a=e.i(787342),s=e.i(205978),i=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),d=e.i(566033),c=e.i(679606),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[h,g,m]=(0,a.createCollection)(y),[v,b]=(0,i.createContextScope)(y,[m]),[x,w]=v(y),R=t.forwardRef((e,t)=>(0,c.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(k,{...e,ref:t})})}));R.displayName=y;var k=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:i,orientation:n,loop:h=!1,dir:m,currentTabStopId:v,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:R,preventScrollOnEntryFocus:k=!1,...S}=e,C=t.useRef(null),D=(0,s.useComposedRefs)(a,C),E=(0,d.useDirection)(m),[A,I]=(0,u.useControllableState)({prop:v,defaultProp:b??null,onChange:w,caller:y}),[N,j]=t.useState(!1),L=(0,o.useCallbackRef)(R),M=g(i),F=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,L),()=>e.removeEventListener(f,L)},[L]),(0,c.jsx)(x,{scope:i,orientation:n,dir:E,loop:h,currentTabStopId:A,onItemFocus:t.useCallback(e=>I(e),[I]),onItemShiftTab:t.useCallback(()=>j(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,c.jsx)(l.Primitive.div,{tabIndex:N||0===P?-1:0,"data-orientation":n,...S,ref:D,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!N){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),k)}}F.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>j(!1))})})}),S="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,focusable:i=!0,active:o=!1,tabStopId:u,children:d,...f}=e,p=(0,n.useId)(),y=u||p,m=w(S,s),v=m.currentTabStopId===y,b=g(s),{onFocusableItemAdd:x,onFocusableItemRemove:R,currentTabStopId:k}=m;return t.useEffect(()=>{if(i)return x(),()=>R()},[i,x,R]),(0,c.jsx)(h.ItemSlot,{scope:s,id:y,focusable:i,active:o,children:(0,c.jsx)(l.Primitive.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...f,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?m.onItemFocus(y):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(y)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var a;let s=(a=e.key,"rtl"!==r?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return D[s]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,a;"prev"===t&&s.reverse();let i=s.indexOf(e.currentTarget);s=m.loop?(r=s,a=i+1,r.map((e,t)=>r[(a+t)%r.length])):s.slice(i+1)}setTimeout(()=>T(s))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=k}):d})})});C.displayName=S;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>R,"createRovingFocusGroupScope",()=>b])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),s=e.i(922528),i=e.i(151080),n=e.i(685995),l=e.i(287620),o=e.i(566033),u=e.i(936589),d=e.i(713123),c="Tabs",[f,p]=(0,s.createContextScope)(c,[i.createRovingFocusGroupScope]),y=(0,i.createRovingFocusGroupScope)(),[h,g]=f(c),m=r.forwardRef((e,r)=>{let{__scopeTabs:a,value:s,onValueChange:i,defaultValue:n,orientation:f="horizontal",dir:p,activationMode:y="automatic",...g}=e,m=(0,o.useDirection)(p),[v,b]=(0,u.useControllableState)({prop:s,onChange:i,defaultProp:n??"",caller:c});return(0,t.jsx)(h,{scope:a,baseId:(0,d.useId)(),value:v,onValueChange:b,orientation:f,dir:m,activationMode:y,children:(0,t.jsx)(l.Primitive.div,{dir:m,"data-orientation":f,...g,ref:r})})});m.displayName=c;var v="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:a,loop:s=!0,...n}=e,o=g(v,a),u=y(a);return(0,t.jsx)(i.Root,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:s,children:(0,t.jsx)(l.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:r})})});b.displayName=v;var x="TabsTrigger",w=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:n,disabled:o=!1,...u}=e,d=g(x,s),c=y(s),f=S(d.baseId,n),p=C(d.baseId,n),h=n===d.value;return(0,t.jsx)(i.Item,{asChild:!0,...c,focusable:!o,active:h,children:(0,t.jsx)(l.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...u,ref:r,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(n)}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(n)}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;h||o||!e||d.onValueChange(n)})})})});w.displayName=x;var R="TabsContent",k=r.forwardRef((e,a)=>{let{__scopeTabs:s,value:i,forceMount:o,children:u,...d}=e,c=g(R,s),f=S(c.baseId,i),p=C(c.baseId,i),y=i===c.value,h=r.useRef(y);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(n.Presence,{present:o||y,children:({present:r})=>(0,t.jsx)(l.Primitive.div,{"data-state":y?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:p,tabIndex:0,...d,ref:a,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&u})})});function S(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}k.displayName=R,e.s(["Content",()=>k,"List",()=>b,"Root",()=>m,"Tabs",()=>m,"TabsContent",()=>k,"TabsList",()=>b,"TabsTrigger",()=>w,"Trigger",()=>w,"createTabsScope",()=>p],743133);var D=e.i(743133),D=D,T=e.i(131777);let E=D.Root,A=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D.List,{ref:a,className:(0,T.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));A.displayName=D.List.displayName;let I=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D.Trigger,{ref:a,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",e),...r}));I.displayName=D.Trigger.displayName;let N=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D.Content,{ref:a,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));N.displayName=D.Content.displayName,e.s(["Tabs",()=>E,"TabsContent",()=>N,"TabsList",()=>A,"TabsTrigger",()=>I],468304)},602287,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(90033),s=e.i(860253),i=e.i(131777);let n=a.Dialog.Root,l=a.Dialog.Trigger,o=a.Dialog.Portal,u=a.Dialog.Close,d=r.forwardRef(({className:e,onClick:r,...s},n)=>(0,t.jsx)(a.Dialog.Overlay,{ref:n,className:(0,i.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80 duration-150",e),onClick:e=>{e.stopPropagation(),r?.(e)},...s}));d.displayName=a.Dialog.Overlay.displayName;let c=r.forwardRef(({className:e,children:r,...n},l)=>(0,t.jsxs)(o,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(a.Dialog.Content,{ref:l,className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-150 sm:rounded-lg",e),...n,children:[r,(0,t.jsxs)(a.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(s.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=a.Dialog.Content.displayName;let f=({className:e,...r})=>(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...r});f.displayName="DialogHeader";let p=({className:e,...r})=>(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});p.displayName="DialogFooter";let y=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(a.Dialog.Title,{ref:s,className:(0,i.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));y.displayName=a.Dialog.Title.displayName;let h=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(a.Dialog.Description,{ref:s,className:(0,i.cn)("text-muted-foreground text-sm",e),...r}));h.displayName=a.Dialog.Description.displayName,e.s(["Dialog",()=>n,"DialogClose",()=>u,"DialogContent",()=>c,"DialogDescription",()=>h,"DialogFooter",()=>p,"DialogHeader",()=>f,"DialogTitle",()=>y,"DialogTrigger",()=>l])},723925,301012,e=>{"use strict";let t=(0,e.i(903645).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t],301012),e.s(["Check",()=>t],723925)},295230,e=>{"use strict";let t=(0,e.i(903645).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},435e3,e=>{"use strict";var t=e.i(980986);e.s(["CheckCircle2",()=>t.default])},338573,e=>{"use strict";let t=(0,e.i(903645).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],338573)},724042,e=>{"use strict";let t=(0,e.i(903645).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],724042)},730702,e=>{"use strict";let t=(0,e.i(903645).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],730702)},873504,399108,143620,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(317406),s=e.i(508893);let i=(0,s.createServerReference)("40380eb0a867264153f92eb0befd51c6b57f60c9ce",s.callServer,void 0,s.findSourceMapURL,"deployFeature"),n=(0,s.createServerReference)("407b3082f8aa0308989b442f49820085256f25e5dc",s.callServer,void 0,s.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],399108);let l=(0,s.createServerReference)("40a9e7a9c3e1b77e7c9fa85b9f7d5a523b9d2f51c4",s.callServer,void 0,s.findSourceMapURL,"deployApplication"),o=(0,s.createServerReference)("4054d12a818d20b3295a47380239e047421be5e3db",s.callServer,void 0,s.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],143620);let u=(0,s.createServerReference)("40354d622fd4841e21d4e5394473f74e7fbffaabab",s.callServer,void 0,s.findSourceMapURL,"getDeploymentStatus");var d=e.i(118354);let c={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class f{entries=new Map;listeners=new Map;globalListeners=new Set;fullyHydrated=!1;isFullyHydrated(){return this.fullyHydrated}hydrate(e){let t=new Set;for(let r of e)t.add(r.targetId),this.update(r.targetId,{status:r.state,url:r.url,targetType:r.targetType,hydrated:!0});for(let[e,r]of this.entries)!t.has(e)&&r.hydrated&&null!==r.status?this.update(e,{status:null,url:null}):t.has(e)||r.hydrated||this.update(e,{hydrated:!0});this.fullyHydrated=!0}getEntry(e){return this.entries.get(e)??c}update(e,t){let r={...this.entries.get(e)??c,...t};this.entries.set(e,r),this.notify(e)}setStatus(e,t){null===t?this.update(e,{status:null,url:null,hydrated:!0}):this.update(e,{status:t.state,url:t.url,hydrated:!0})}subscribe(e,t){let r=this.listeners.get(e);return r||(r=new Set,this.listeners.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this.listeners.delete(e)}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}notify(e){let t=this.listeners.get(e);if(t)for(let e of t)e();for(let e of this.globalListeners)e()}}e.s(["DeploymentStatusStore",()=>f,"EMPTY_ENTRY",0,c],481605);let p=(0,d.createLogger)("[DeploymentStatusProvider]"),y=new Set([a.DeploymentState.Booting,a.DeploymentState.Ready]),h=(0,r.createContext)(null);function g({initialDeployments:e,children:s}){let d=(0,r.useRef)(null);d.current||(d.current=new f,d.current.hydrate(e));let c=d.current;(0,r.useEffect)(()=>{c.hydrate(e)},[e,c]);let g=(0,r.useRef)(new Map),m=(0,r.useCallback)(e=>{let t=g.current.get(e);t&&(clearInterval(t),g.current.delete(e))},[]),v=(0,r.useCallback)(e=>{if(g.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){p.warn(`poll failed for "${e}"`,t),c.setStatus(e,null),m(e);return}if(!t||t.state===a.DeploymentState.Stopped){c.setStatus(e,null),m(e);return}c.setStatus(e,t)},3e3);g.current.set(e,t)},[c,m]);(0,r.useEffect)(()=>{let e=g.current,t=c.subscribeAll(()=>{for(let[t]of e){let e=c.getEntry(t);e.status&&y.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[c,m]);let b=(0,r.useCallback)(e=>{if(e&&!c.getEntry(e).hydrated){if(c.isFullyHydrated())return void c.update(e,{hydrated:!0});c.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);c.setStatus(e,t),t&&y.has(t.state)&&v(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[c,v]),x=(0,r.useCallback)(async e=>{c.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await i(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void c.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});c.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),v(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";c.update(e.targetId,{deployLoading:!1,deployError:t})}},[c,v]),w=(0,r.useCallback)(async e=>{if(e){c.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),c.update(e,{stopLoading:!1,status:null,url:null})):c.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),c.update(e,{stopLoading:!1})}}},[c,m]),R=(0,r.useMemo)(()=>({store:c,deploy:x,stop:w,ensureHydrated:b}),[c,x,w,b]);return(0,t.jsx)(h.Provider,{value:R,children:s})}function m(){let e=(0,r.useContext)(h);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function v(){let e=(0,r.useContext)(h);return e||b}let b={store:new f,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>g,"useDeploymentStatusContext",()=>m,"useDeploymentStatusContextOptional",()=>v],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function a(){}function s(e){let{store:s,deploy:i,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?s.subscribe(o,e):a,[s,o]),d=(0,t.useCallback)(()=>o?s.getEntry(o):s.getEntry(""),[s,o]),c=(0,t.useSyncExternalStore)(u,d,d);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await i(e)},[i,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:c.deployLoading,stopLoading:c.stopLoading,deployError:c.deployError,status:c.status,url:c.url}}e.s(["useDeployAction",()=>s])},949228,e=>{"use strict";let t=(0,e.i(903645).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",()=>t],949228)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),a=e.i(205978),s=e.i(786874),i=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,d]=l(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:a}=e,s=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,i.jsx)(u,{scope:r,itemMap:n,collectionRef:s,children:a})};c.displayName=n;let f=e+"CollectionSlot",p=(0,s.createSlot)(f),y=t.default.forwardRef((e,t)=>{let{scope:r,children:s}=e,n=d(f,r),l=(0,a.useComposedRefs)(t,n.collectionRef);return(0,i.jsx)(p,{ref:l,children:s})});y.displayName=f;let h=e+"CollectionItemSlot",g="data-radix-collection-item",m=(0,s.createSlot)(h),v=t.default.forwardRef((e,r)=>{let{scope:s,children:n,...l}=e,o=t.default.useRef(null),u=(0,a.useComposedRefs)(r,o),c=d(h,s);return t.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...l}),()=>void c.itemMap.delete(o))),(0,i.jsx)(m,{...{[g]:""},ref:u,children:n})});return v.displayName=h,[{Provider:c,Slot:y,ItemSlot:v},function(r){let a=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=a.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(a.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[a.collectionRef,a.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,a;let s,i,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,a=t,s=r.length,(n=(i=u(a))>=0?i:s+i)<0||n>=s?-1:n);return -1===l?void 0:e[l]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let a,s=this.has(t),i=this.#e.length,n=u(e),l=n>=0?n:i+n,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let d=this.size+ +!s;n<0&&l++;let c=[...this.#e],f=!1;for(let e=l;e<d;e++)if(l===e){let i=c[e];c[e]===t&&(i=c[e+1]),s&&this.delete(t),a=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],s=a;a=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,a){let s=new e(this);return s.insert(t,r,a),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return a;r++}}findIndex(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return r;r++}return -1}filter(t,r){let a=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&a.push(e),s++;return new e(a)}map(t,r){let a=[],s=0;for(let e of this)a.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(a)}reduce(...e){let[t,r]=e,a=0,s=r??this.at(0);for(let r of this)s=0===a&&1===e.length?r:Reflect.apply(t,this,[s,r,a,this]),a++;return s}reduceRight(...e){let[t,r]=e,a=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);a=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[a,s,r,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),a=this.get(r);t.set(r,a)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let a=new e,s=this.size-1;if(void 0===t)return a;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);a.set(t,r)}return a}every(e,t){let r=0;for(let a of this){if(!Reflect.apply(e,t,[a,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),a=e.i(787342),s=e.i(205978),i=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),d=e.i(566033),c=e.i(679606),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[h,g,m]=(0,a.createCollection)(y),[v,b]=(0,i.createContextScope)(y,[m]),[x,w]=v(y),R=t.forwardRef((e,t)=>(0,c.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(k,{...e,ref:t})})}));R.displayName=y;var k=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:i,orientation:n,loop:h=!1,dir:m,currentTabStopId:v,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:R,preventScrollOnEntryFocus:k=!1,...S}=e,C=t.useRef(null),D=(0,s.useComposedRefs)(a,C),E=(0,d.useDirection)(m),[A,I]=(0,u.useControllableState)({prop:v,defaultProp:b??null,onChange:w,caller:y}),[N,j]=t.useState(!1),L=(0,o.useCallbackRef)(R),M=g(i),F=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,L),()=>e.removeEventListener(f,L)},[L]),(0,c.jsx)(x,{scope:i,orientation:n,dir:E,loop:h,currentTabStopId:A,onItemFocus:t.useCallback(e=>I(e),[I]),onItemShiftTab:t.useCallback(()=>j(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,c.jsx)(l.Primitive.div,{tabIndex:N||0===P?-1:0,"data-orientation":n,...S,ref:D,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!N){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),k)}}F.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>j(!1))})})}),S="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,focusable:i=!0,active:o=!1,tabStopId:u,children:d,...f}=e,p=(0,n.useId)(),y=u||p,m=w(S,s),v=m.currentTabStopId===y,b=g(s),{onFocusableItemAdd:x,onFocusableItemRemove:R,currentTabStopId:k}=m;return t.useEffect(()=>{if(i)return x(),()=>R()},[i,x,R]),(0,c.jsx)(h.ItemSlot,{scope:s,id:y,focusable:i,active:o,children:(0,c.jsx)(l.Primitive.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...f,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?m.onItemFocus(y):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(y)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var a;let s=(a=e.key,"rtl"!==r?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return D[s]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,a;"prev"===t&&s.reverse();let i=s.indexOf(e.currentTarget);s=m.loop?(r=s,a=i+1,r.map((e,t)=>r[(a+t)%r.length])):s.slice(i+1)}setTimeout(()=>T(s))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=k}):d})})});C.displayName=S;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>R,"createRovingFocusGroupScope",()=>b])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),s=e.i(922528),i=e.i(151080),n=e.i(685995),l=e.i(287620),o=e.i(566033),u=e.i(936589),d=e.i(713123),c="Tabs",[f,p]=(0,s.createContextScope)(c,[i.createRovingFocusGroupScope]),y=(0,i.createRovingFocusGroupScope)(),[h,g]=f(c),m=r.forwardRef((e,r)=>{let{__scopeTabs:a,value:s,onValueChange:i,defaultValue:n,orientation:f="horizontal",dir:p,activationMode:y="automatic",...g}=e,m=(0,o.useDirection)(p),[v,b]=(0,u.useControllableState)({prop:s,onChange:i,defaultProp:n??"",caller:c});return(0,t.jsx)(h,{scope:a,baseId:(0,d.useId)(),value:v,onValueChange:b,orientation:f,dir:m,activationMode:y,children:(0,t.jsx)(l.Primitive.div,{dir:m,"data-orientation":f,...g,ref:r})})});m.displayName=c;var v="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:a,loop:s=!0,...n}=e,o=g(v,a),u=y(a);return(0,t.jsx)(i.Root,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:s,children:(0,t.jsx)(l.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:r})})});b.displayName=v;var x="TabsTrigger",w=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:n,disabled:o=!1,...u}=e,d=g(x,s),c=y(s),f=S(d.baseId,n),p=C(d.baseId,n),h=n===d.value;return(0,t.jsx)(i.Item,{asChild:!0,...c,focusable:!o,active:h,children:(0,t.jsx)(l.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...u,ref:r,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(n)}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(n)}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;h||o||!e||d.onValueChange(n)})})})});w.displayName=x;var R="TabsContent",k=r.forwardRef((e,a)=>{let{__scopeTabs:s,value:i,forceMount:o,children:u,...d}=e,c=g(R,s),f=S(c.baseId,i),p=C(c.baseId,i),y=i===c.value,h=r.useRef(y);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(n.Presence,{present:o||y,children:({present:r})=>(0,t.jsx)(l.Primitive.div,{"data-state":y?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:p,tabIndex:0,...d,ref:a,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&u})})});function S(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}k.displayName=R,e.s(["Content",()=>k,"List",()=>b,"Root",()=>m,"Tabs",()=>m,"TabsContent",()=>k,"TabsList",()=>b,"TabsTrigger",()=>w,"Trigger",()=>w,"createTabsScope",()=>p],743133);var D=e.i(743133),D=D,T=e.i(131777);let E=D.Root,A=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D.List,{ref:a,className:(0,T.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));A.displayName=D.List.displayName;let I=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D.Trigger,{ref:a,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",e),...r}));I.displayName=D.Trigger.displayName;let N=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D.Content,{ref:a,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));N.displayName=D.Content.displayName,e.s(["Tabs",()=>E,"TabsContent",()=>N,"TabsList",()=>A,"TabsTrigger",()=>I],468304)},602287,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(90033),s=e.i(860253),i=e.i(131777);let n=a.Dialog.Root,l=a.Dialog.Trigger,o=a.Dialog.Portal,u=a.Dialog.Close,d=r.forwardRef(({className:e,onClick:r,...s},n)=>(0,t.jsx)(a.Dialog.Overlay,{ref:n,className:(0,i.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80 duration-150",e),onClick:e=>{e.stopPropagation(),r?.(e)},...s}));d.displayName=a.Dialog.Overlay.displayName;let c=r.forwardRef(({className:e,children:r,...n},l)=>(0,t.jsxs)(o,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(a.Dialog.Content,{ref:l,className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-150 sm:rounded-lg",e),...n,children:[r,(0,t.jsxs)(a.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(s.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=a.Dialog.Content.displayName;let f=({className:e,...r})=>(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...r});f.displayName="DialogHeader";let p=({className:e,...r})=>(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});p.displayName="DialogFooter";let y=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(a.Dialog.Title,{ref:s,className:(0,i.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));y.displayName=a.Dialog.Title.displayName;let h=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(a.Dialog.Description,{ref:s,className:(0,i.cn)("text-muted-foreground text-sm",e),...r}));h.displayName=a.Dialog.Description.displayName,e.s(["Dialog",()=>n,"DialogClose",()=>u,"DialogContent",()=>c,"DialogDescription",()=>h,"DialogFooter",()=>p,"DialogHeader",()=>f,"DialogTitle",()=>y,"DialogTrigger",()=>l])},723925,301012,e=>{"use strict";let t=(0,e.i(903645).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t],301012),e.s(["Check",()=>t],723925)},295230,e=>{"use strict";let t=(0,e.i(903645).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},435e3,e=>{"use strict";var t=e.i(980986);e.s(["CheckCircle2",()=>t.default])},338573,e=>{"use strict";let t=(0,e.i(903645).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],338573)},724042,e=>{"use strict";let t=(0,e.i(903645).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],724042)},730702,e=>{"use strict";let t=(0,e.i(903645).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],730702)},873504,259289,450838,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(317406),s=e.i(508893);let i=(0,s.createServerReference)("40439b078896772e272d73cff5c9e76f12d2ad4fff",s.callServer,void 0,s.findSourceMapURL,"deployFeature"),n=(0,s.createServerReference)("40e1761c0b43e73601f7fcd9dce8acd5bd268ef35f",s.callServer,void 0,s.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],259289);let l=(0,s.createServerReference)("40e171d0c1bb54653072e2fa70eb1f9107de77cd77",s.callServer,void 0,s.findSourceMapURL,"deployApplication"),o=(0,s.createServerReference)("405b78d3f646f2c9b1433c26864d9f6ab5f562bdf5",s.callServer,void 0,s.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],450838);let u=(0,s.createServerReference)("40198f1fcab162e3ff7b2b293c1c1f8dc5ccba5116",s.callServer,void 0,s.findSourceMapURL,"getDeploymentStatus");var d=e.i(118354);let c={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class f{entries=new Map;listeners=new Map;globalListeners=new Set;fullyHydrated=!1;isFullyHydrated(){return this.fullyHydrated}hydrate(e){let t=new Set;for(let r of e)t.add(r.targetId),this.update(r.targetId,{status:r.state,url:r.url,targetType:r.targetType,hydrated:!0});for(let[e,r]of this.entries)!t.has(e)&&r.hydrated&&null!==r.status?this.update(e,{status:null,url:null}):t.has(e)||r.hydrated||this.update(e,{hydrated:!0});this.fullyHydrated=!0}getEntry(e){return this.entries.get(e)??c}update(e,t){let r={...this.entries.get(e)??c,...t};this.entries.set(e,r),this.notify(e)}setStatus(e,t){null===t?this.update(e,{status:null,url:null,hydrated:!0}):this.update(e,{status:t.state,url:t.url,hydrated:!0})}subscribe(e,t){let r=this.listeners.get(e);return r||(r=new Set,this.listeners.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this.listeners.delete(e)}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}notify(e){let t=this.listeners.get(e);if(t)for(let e of t)e();for(let e of this.globalListeners)e()}}e.s(["DeploymentStatusStore",()=>f,"EMPTY_ENTRY",0,c],481605);let p=(0,d.createLogger)("[DeploymentStatusProvider]"),y=new Set([a.DeploymentState.Booting,a.DeploymentState.Ready]),h=(0,r.createContext)(null);function g({initialDeployments:e,children:s}){let d=(0,r.useRef)(null);d.current||(d.current=new f,d.current.hydrate(e));let c=d.current;(0,r.useEffect)(()=>{c.hydrate(e)},[e,c]);let g=(0,r.useRef)(new Map),m=(0,r.useCallback)(e=>{let t=g.current.get(e);t&&(clearInterval(t),g.current.delete(e))},[]),v=(0,r.useCallback)(e=>{if(g.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){p.warn(`poll failed for "${e}"`,t),c.setStatus(e,null),m(e);return}if(!t||t.state===a.DeploymentState.Stopped){c.setStatus(e,null),m(e);return}c.setStatus(e,t)},3e3);g.current.set(e,t)},[c,m]);(0,r.useEffect)(()=>{let e=g.current,t=c.subscribeAll(()=>{for(let[t]of e){let e=c.getEntry(t);e.status&&y.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[c,m]);let b=(0,r.useCallback)(e=>{if(e&&!c.getEntry(e).hydrated){if(c.isFullyHydrated())return void c.update(e,{hydrated:!0});c.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);c.setStatus(e,t),t&&y.has(t.state)&&v(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[c,v]),x=(0,r.useCallback)(async e=>{c.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await i(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void c.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});c.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),v(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";c.update(e.targetId,{deployLoading:!1,deployError:t})}},[c,v]),w=(0,r.useCallback)(async e=>{if(e){c.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),c.update(e,{stopLoading:!1,status:null,url:null})):c.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),c.update(e,{stopLoading:!1})}}},[c,m]),R=(0,r.useMemo)(()=>({store:c,deploy:x,stop:w,ensureHydrated:b}),[c,x,w,b]);return(0,t.jsx)(h.Provider,{value:R,children:s})}function m(){let e=(0,r.useContext)(h);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function v(){let e=(0,r.useContext)(h);return e||b}let b={store:new f,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>g,"useDeploymentStatusContext",()=>m,"useDeploymentStatusContextOptional",()=>v],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function a(){}function s(e){let{store:s,deploy:i,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?s.subscribe(o,e):a,[s,o]),d=(0,t.useCallback)(()=>o?s.getEntry(o):s.getEntry(""),[s,o]),c=(0,t.useSyncExternalStore)(u,d,d);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await i(e)},[i,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:c.deployLoading,stopLoading:c.stopLoading,deployError:c.deployError,status:c.status,url:c.url}}e.s(["useDeployAction",()=>s])},949228,e=>{"use strict";let t=(0,e.i(903645).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",()=>t],949228)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,998798,e=>{"use strict";let t=(0,e.i(903645).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],998798)},951911,e=>{"use strict";var t=e.i(679606),r=e.i(152155),l=e.i(291967),o=e.i(205978),i=e.i(922528),a=e.i(936589),s=e.i(23405),n=e.i(277624),c=e.i(287620),d="Switch",[u,p]=(0,i.createContextScope)(d),[f,h]=u(d),y=r.forwardRef((e,i)=>{let{__scopeSwitch:s,name:n,checked:u,defaultChecked:p,required:h,disabled:y,value:b="on",onCheckedChange:v,form:w,...g}=e,[C,x]=r.useState(null),E=(0,o.useComposedRefs)(i,e=>x(e)),P=r.useRef(!1),M=!C||w||!!C.closest("form"),[j,R]=(0,a.useControllableState)({prop:u,defaultProp:p??!1,onChange:v,caller:d});return(0,t.jsxs)(f,{scope:s,checked:j,disabled:y,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":j,"aria-required":h,"data-state":k(j),"data-disabled":y?"":void 0,disabled:y,value:b,...g,ref:E,onClick:(0,l.composeEventHandlers)(e.onClick,e=>{R(e=>!e),M&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),M&&(0,t.jsx)(m,{control:C,bubbles:!P.current,name:n,value:b,checked:j,required:h,disabled:y,form:w,style:{transform:"translateX(-100%)"}})]})});y.displayName=d;var b="SwitchThumb",v=r.forwardRef((e,r)=>{let{__scopeSwitch:l,...o}=e,i=h(b,l);return(0,t.jsx)(c.Primitive.span,{"data-state":k(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:r})});v.displayName=b;var m=r.forwardRef(({__scopeSwitch:e,control:l,checked:i,bubbles:a=!0,...c},d)=>{let u=r.useRef(null),p=(0,o.useComposedRefs)(u,d),f=(0,s.usePrevious)(i),h=(0,n.useSize)(l);return r.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==i&&t){let r=new Event("click",{bubbles:a});t.call(e,i),e.dispatchEvent(r)}},[f,i,a]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...c,tabIndex:-1,ref:p,style:{...c.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function k(e){return e?"checked":"unchecked"}m.displayName="SwitchBubbleInput",e.s(["Root",()=>y,"Switch",()=>y,"SwitchThumb",()=>v,"Thumb",()=>v,"createSwitchScope",()=>p],595291);var w=e.i(595291),w=w,g=e.i(131777);function C({className:e,size:r="default",...l}){return(0,t.jsx)(w.Root,{"data-slot":"switch","data-size":r,className:(0,g.cn)("peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",e),...l,children:(0,t.jsx)(w.Thumb,{"data-slot":"switch-thumb",className:(0,g.cn)("bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]")})})}e.s(["Switch",()=>C],951911)},844343,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("60a903865239d51962620c9382b535fbfa7ef0ba66",t.callServer,void 0,t.findSourceMapURL,"getGitRepoInfo");e.s(["getGitRepoInfo",()=>r])},681181,e=>{"use strict";var t=e.i(295230);e.s(["Download",()=>t.default])},993192,e=>{"use strict";let t=(0,e.i(903645).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["Package",()=>t],993192)},44069,433441,86076,e=>{"use strict";var t=e.i(903645);let r=(0,t.default)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);e.s(["ScrollText",()=>r],44069);let l=(0,t.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",()=>l],433441);let o=(0,t.default)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);e.s(["FileCode",()=>o],86076)},612997,e=>{"use strict";let t=(0,e.i(903645).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],612997)},864779,e=>{"use strict";let t=(0,e.i(903645).default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["Link",()=>t],864779)},483902,e=>{"use strict";let t=(0,e.i(903645).default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);e.s(["Rocket",()=>t],483902)},909388,e=>{"use strict";let t=(0,e.i(903645).default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);e.s(["Monitor",()=>t],909388)},672971,e=>{"use strict";function t(e){return`app-${e}`}e.s(["featureIdForApplication",()=>t])},532077,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("405a6777132c43c4e7b43cd50863a8f5d3428800c5",t.callServer,void 0,t.findSourceMapURL,"deleteApplication");e.s(["deleteApplication",()=>r])},370002,942616,e=>{"use strict";var t=e.i(215131);function r(e,t,r,l){return"processing"===t?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:"awaiting_input"===t?{label:"Action Required",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!0,previewDisabled:!0}:"interrupted"===l?{label:"Interrupted",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!1,previewDisabled:!0}:"failed"===l?{label:"Failed",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:"building"===l?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:r?{label:"Live",dotClass:"bg-emerald-500",borderClass:"",pulse:!0,previewDisabled:!1}:"Error"===e?{label:"Error",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:{label:"Ready",dotClass:"bg-sky-500",borderClass:"",pulse:!1,previewDisabled:!1}}e.s(["TriangleAlert",()=>t.default],370002),e.s(["deriveAppLiveStatus",()=>r],942616)},731463,e=>{"use strict";let t=(0,e.i(903645).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",()=>t],731463)},74573,e=>{"use strict";var t=e.i(679606),r=e.i(317406);function l({d:e,...r}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...r,"aria-hidden":"true",children:(0,t.jsx)("path",{d:e})})}function o(e){return(0,t.jsx)(l,{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",...e})}let i={[r.CloudDeploymentProvider.CloudflarePages]:function(e){return(0,t.jsx)(l,{d:"M10.715 14.32H5.442l-.64-1.203L13.673 0l1.397.579-1.752 9.112h5.24l.648 1.192L10.719 24l-1.412-.54ZM4.091 5.448a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.543 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.544 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm8.657-2.7h5.424l.772.771v16.975l-.772.772h-7.392l.374-.579h6.779l.432-.432V3.758l-.432-.432h-4.676l-.552 2.85h-.59l.529-2.877.108-.552ZM2.74 21.265l-.772-.772V3.518l.772-.771h7.677l-.386.579H2.98l-.432.432v16.496l.432.432h5.586l-.092.579zm1.157-1.93h3.28l-.116.58h-3.55l-.192-.193v-3.473l.578 1.158zm13.117 0 .579.58H14.7l.385-.58z",...e})},[r.CloudDeploymentProvider.Vercel]:function(e){return(0,t.jsx)(l,{d:"m12 1.608 12 20.784H0Z",...e})},[r.CloudDeploymentProvider.Netlify]:function(e){return(0,t.jsx)(l,{d:"M6.49 19.04h-.23L5.13 17.9v-.23l1.73-1.71h1.2l.15.15v1.2L6.5 19.04ZM5.13 6.31V6.1l1.13-1.13h.23L8.2 6.68v1.2l-.15.15h-1.2L5.13 6.31Zm9.96 9.09h-1.65l-.14-.13v-3.83c0-.68-.27-1.2-1.1-1.23-.42 0-.9 0-1.43.02l-.07.08v4.96l-.14.14H8.9l-.13-.14V8.73l.13-.14h3.7a2.6 2.6 0 0 1 2.61 2.6v4.08l-.13.14Zm-8.37-2.44H.14L0 12.82v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14Zm17.14 0h-6.58l-.14-.14v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14ZM11.05 6.55V1.64l.14-.14h1.65l.14.14v4.9l-.14.14h-1.65l-.14-.13Zm0 15.81v-4.9l.14-.14h1.65l.14.13v4.91l-.14.14h-1.65l-.14-.14Z",...e})},[r.CloudDeploymentProvider.AwsAmplify]:function(e){return(0,t.jsx)(l,{d:"M11.58 2.1 1.15 20.87h4.33l1.9-3.5h9.24l1.9 3.5h4.33L12.42 2.1h-.84Zm.42 5.6 3.12 5.73H8.88L12 7.7Z",...e})},[r.CloudDeploymentProvider.GcpCloudRun]:function(e){return(0,t.jsx)(l,{d:"M12.19 2.38a9.344 9.344 0 0 0-9.234 6.893c.053-.02-.055.013 0 0-3.875 2.551-3.922 8.11-.247 10.941l.006-.007-.007.03a6.717 6.717 0 0 0 4.077 1.356h5.173l.03.03h5.192c6.687.053 9.376-8.605 3.835-12.35a9.365 9.365 0 0 0-2.821-4.552l-.043.043.006-.05A9.344 9.344 0 0 0 12.19 2.38zm-.358 4.146c1.244-.04 2.518.368 3.486 1.15a5.186 5.186 0 0 1 1.862 4.078v.518c3.53-.07 3.53 5.262 0 5.193h-5.193l-.008.009v-.04H6.785a2.59 2.59 0 0 1-1.067-.23h.001a2.597 2.597 0 1 1 3.437-3.437l3.013-3.012A6.747 6.747 0 0 0 8.11 8.24c.018-.01.04-.026.054-.023a5.186 5.186 0 0 1 3.67-1.69z",...e})}},a={[r.CloudDeploymentProvider.CloudflarePages]:"#F38020",[r.CloudDeploymentProvider.Vercel]:"#000000",[r.CloudDeploymentProvider.Netlify]:"#00C7B7",[r.CloudDeploymentProvider.AwsAmplify]:"#FF9900",[r.CloudDeploymentProvider.GcpCloudRun]:"#4285F4"};e.s(["CLOUD_PROVIDER_BRAND_HEX",0,a,"CLOUD_PROVIDER_ICONS",0,i,"GitHubIcon",()=>o])},606581,e=>{"use strict";function t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",l=()=>Math.random().toString(36).substring(7).split("").join("."),o={INIT:`@@redux/INIT${l()}`,REPLACE:`@@redux/REPLACE${l()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${l()}`};function i(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function a(e,l,s){if("function"!=typeof e)throw Error(t(2));if("function"==typeof l&&"function"==typeof s||"function"==typeof s&&"function"==typeof arguments[3])throw Error(t(0));if("function"==typeof l&&void 0===s&&(s=l,l=void 0),void 0!==s){if("function"!=typeof s)throw Error(t(1));return s(a)(e,l)}let n=e,c=l,d=new Map,u=d,p=0,f=!1;function h(){u===d&&(u=new Map,d.forEach((e,t)=>{u.set(t,e)}))}function y(){if(f)throw Error(t(3));return c}function b(e){if("function"!=typeof e)throw Error(t(4));if(f)throw Error(t(5));let r=!0;h();let l=p++;return u.set(l,e),function(){if(r){if(f)throw Error(t(6));r=!1,h(),u.delete(l),d=null}}}function v(e){if(!i(e))throw Error(t(7));if(void 0===e.type)throw Error(t(8));if("string"!=typeof e.type)throw Error(t(17));if(f)throw Error(t(9));try{f=!0,c=n(c,e)}finally{f=!1}return(d=u).forEach(e=>{e()}),e}return v({type:o.INIT}),{dispatch:v,subscribe:b,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw Error(t(10));n=e,v({type:o.REPLACE})},[r]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(t(11));function r(){e.next&&e.next(y())}return r(),{unsubscribe:b(r)}},[r](){return this}}}}}function s(e){let r,l=Object.keys(e),i={};for(let t=0;t<l.length;t++){let r=l[t];"function"==typeof e[r]&&(i[r]=e[r])}let a=Object.keys(i);try{Object.keys(i).forEach(e=>{let r=i[e];if(void 0===r(void 0,{type:o.INIT}))throw Error(t(12));if(void 0===r(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw Error(t(13))})}catch(e){r=e}return function(e={},l){if(r)throw r;let o=!1,s={};for(let r=0;r<a.length;r++){let n=a[r],c=i[n],d=e[n],u=c(d,l);if(void 0===u)throw l&&l.type,Error(t(14));s[n]=u,o=o||u!==d}return(o=o||a.length!==Object.keys(e).length)?s:e}}function n(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function c(...e){return r=>(l,o)=>{let i=r(l,o),a=()=>{throw Error(t(15))},s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=n(...e.map(e=>e(s)))(i.dispatch),{...i,dispatch:a}}}function d(e){return i(e)&&"type"in e&&"string"==typeof e.type}e.s(["applyMiddleware",()=>c,"combineReducers",()=>s,"compose",()=>n,"createStore",()=>a,"isAction",()=>d,"isPlainObject",()=>i])},654699,e=>{e.v(t=>Promise.all(["static/chunks/b7b85a15f387ab7c.css","static/chunks/636e55c1b5c56493.js"].map(t=>e.l(t))).then(()=>t(401699)))},863812,e=>{e.v(t=>Promise.all(["static/chunks/7535e8e6543a82e4.js"].map(t=>e.l(t))).then(()=>t(158480)))}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,998798,e=>{"use strict";let t=(0,e.i(903645).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],998798)},951911,e=>{"use strict";var t=e.i(679606),r=e.i(152155),l=e.i(291967),o=e.i(205978),i=e.i(922528),a=e.i(936589),s=e.i(23405),n=e.i(277624),c=e.i(287620),d="Switch",[u,p]=(0,i.createContextScope)(d),[f,h]=u(d),y=r.forwardRef((e,i)=>{let{__scopeSwitch:s,name:n,checked:u,defaultChecked:p,required:h,disabled:y,value:b="on",onCheckedChange:v,form:w,...g}=e,[C,x]=r.useState(null),E=(0,o.useComposedRefs)(i,e=>x(e)),P=r.useRef(!1),M=!C||w||!!C.closest("form"),[j,R]=(0,a.useControllableState)({prop:u,defaultProp:p??!1,onChange:v,caller:d});return(0,t.jsxs)(f,{scope:s,checked:j,disabled:y,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":j,"aria-required":h,"data-state":k(j),"data-disabled":y?"":void 0,disabled:y,value:b,...g,ref:E,onClick:(0,l.composeEventHandlers)(e.onClick,e=>{R(e=>!e),M&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),M&&(0,t.jsx)(m,{control:C,bubbles:!P.current,name:n,value:b,checked:j,required:h,disabled:y,form:w,style:{transform:"translateX(-100%)"}})]})});y.displayName=d;var b="SwitchThumb",v=r.forwardRef((e,r)=>{let{__scopeSwitch:l,...o}=e,i=h(b,l);return(0,t.jsx)(c.Primitive.span,{"data-state":k(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:r})});v.displayName=b;var m=r.forwardRef(({__scopeSwitch:e,control:l,checked:i,bubbles:a=!0,...c},d)=>{let u=r.useRef(null),p=(0,o.useComposedRefs)(u,d),f=(0,s.usePrevious)(i),h=(0,n.useSize)(l);return r.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==i&&t){let r=new Event("click",{bubbles:a});t.call(e,i),e.dispatchEvent(r)}},[f,i,a]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...c,tabIndex:-1,ref:p,style:{...c.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function k(e){return e?"checked":"unchecked"}m.displayName="SwitchBubbleInput",e.s(["Root",()=>y,"Switch",()=>y,"SwitchThumb",()=>v,"Thumb",()=>v,"createSwitchScope",()=>p],595291);var w=e.i(595291),w=w,g=e.i(131777);function C({className:e,size:r="default",...l}){return(0,t.jsx)(w.Root,{"data-slot":"switch","data-size":r,className:(0,g.cn)("peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",e),...l,children:(0,t.jsx)(w.Thumb,{"data-slot":"switch-thumb",className:(0,g.cn)("bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]")})})}e.s(["Switch",()=>C],951911)},832392,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("604689f5df3a212dee51785b0c8454b3971f4de0ba",t.callServer,void 0,t.findSourceMapURL,"getGitRepoInfo");e.s(["getGitRepoInfo",()=>r])},681181,e=>{"use strict";var t=e.i(295230);e.s(["Download",()=>t.default])},993192,e=>{"use strict";let t=(0,e.i(903645).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["Package",()=>t],993192)},44069,433441,86076,e=>{"use strict";var t=e.i(903645);let r=(0,t.default)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);e.s(["ScrollText",()=>r],44069);let l=(0,t.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",()=>l],433441);let o=(0,t.default)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);e.s(["FileCode",()=>o],86076)},612997,e=>{"use strict";let t=(0,e.i(903645).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],612997)},864779,e=>{"use strict";let t=(0,e.i(903645).default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["Link",()=>t],864779)},483902,e=>{"use strict";let t=(0,e.i(903645).default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);e.s(["Rocket",()=>t],483902)},909388,e=>{"use strict";let t=(0,e.i(903645).default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);e.s(["Monitor",()=>t],909388)},672971,e=>{"use strict";function t(e){return`app-${e}`}e.s(["featureIdForApplication",()=>t])},813790,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("4035905dfb9dc202ed0650338aba71886ec1152615",t.callServer,void 0,t.findSourceMapURL,"deleteApplication");e.s(["deleteApplication",()=>r])},370002,942616,e=>{"use strict";var t=e.i(215131);function r(e,t,r,l){return"processing"===t?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:"awaiting_input"===t?{label:"Action Required",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!0,previewDisabled:!0}:"interrupted"===l?{label:"Interrupted",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!1,previewDisabled:!0}:"failed"===l?{label:"Failed",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:"building"===l?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:r?{label:"Live",dotClass:"bg-emerald-500",borderClass:"",pulse:!0,previewDisabled:!1}:"Error"===e?{label:"Error",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:{label:"Ready",dotClass:"bg-sky-500",borderClass:"",pulse:!1,previewDisabled:!1}}e.s(["TriangleAlert",()=>t.default],370002),e.s(["deriveAppLiveStatus",()=>r],942616)},731463,e=>{"use strict";let t=(0,e.i(903645).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",()=>t],731463)},74573,e=>{"use strict";var t=e.i(679606),r=e.i(317406);function l({d:e,...r}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...r,"aria-hidden":"true",children:(0,t.jsx)("path",{d:e})})}function o(e){return(0,t.jsx)(l,{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",...e})}let i={[r.CloudDeploymentProvider.CloudflarePages]:function(e){return(0,t.jsx)(l,{d:"M10.715 14.32H5.442l-.64-1.203L13.673 0l1.397.579-1.752 9.112h5.24l.648 1.192L10.719 24l-1.412-.54ZM4.091 5.448a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.543 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.544 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm8.657-2.7h5.424l.772.771v16.975l-.772.772h-7.392l.374-.579h6.779l.432-.432V3.758l-.432-.432h-4.676l-.552 2.85h-.59l.529-2.877.108-.552ZM2.74 21.265l-.772-.772V3.518l.772-.771h7.677l-.386.579H2.98l-.432.432v16.496l.432.432h5.586l-.092.579zm1.157-1.93h3.28l-.116.58h-3.55l-.192-.193v-3.473l.578 1.158zm13.117 0 .579.58H14.7l.385-.58z",...e})},[r.CloudDeploymentProvider.Vercel]:function(e){return(0,t.jsx)(l,{d:"m12 1.608 12 20.784H0Z",...e})},[r.CloudDeploymentProvider.Netlify]:function(e){return(0,t.jsx)(l,{d:"M6.49 19.04h-.23L5.13 17.9v-.23l1.73-1.71h1.2l.15.15v1.2L6.5 19.04ZM5.13 6.31V6.1l1.13-1.13h.23L8.2 6.68v1.2l-.15.15h-1.2L5.13 6.31Zm9.96 9.09h-1.65l-.14-.13v-3.83c0-.68-.27-1.2-1.1-1.23-.42 0-.9 0-1.43.02l-.07.08v4.96l-.14.14H8.9l-.13-.14V8.73l.13-.14h3.7a2.6 2.6 0 0 1 2.61 2.6v4.08l-.13.14Zm-8.37-2.44H.14L0 12.82v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14Zm17.14 0h-6.58l-.14-.14v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14ZM11.05 6.55V1.64l.14-.14h1.65l.14.14v4.9l-.14.14h-1.65l-.14-.13Zm0 15.81v-4.9l.14-.14h1.65l.14.13v4.91l-.14.14h-1.65l-.14-.14Z",...e})},[r.CloudDeploymentProvider.AwsAmplify]:function(e){return(0,t.jsx)(l,{d:"M11.58 2.1 1.15 20.87h4.33l1.9-3.5h9.24l1.9 3.5h4.33L12.42 2.1h-.84Zm.42 5.6 3.12 5.73H8.88L12 7.7Z",...e})},[r.CloudDeploymentProvider.GcpCloudRun]:function(e){return(0,t.jsx)(l,{d:"M12.19 2.38a9.344 9.344 0 0 0-9.234 6.893c.053-.02-.055.013 0 0-3.875 2.551-3.922 8.11-.247 10.941l.006-.007-.007.03a6.717 6.717 0 0 0 4.077 1.356h5.173l.03.03h5.192c6.687.053 9.376-8.605 3.835-12.35a9.365 9.365 0 0 0-2.821-4.552l-.043.043.006-.05A9.344 9.344 0 0 0 12.19 2.38zm-.358 4.146c1.244-.04 2.518.368 3.486 1.15a5.186 5.186 0 0 1 1.862 4.078v.518c3.53-.07 3.53 5.262 0 5.193h-5.193l-.008.009v-.04H6.785a2.59 2.59 0 0 1-1.067-.23h.001a2.597 2.597 0 1 1 3.437-3.437l3.013-3.012A6.747 6.747 0 0 0 8.11 8.24c.018-.01.04-.026.054-.023a5.186 5.186 0 0 1 3.67-1.69z",...e})}},a={[r.CloudDeploymentProvider.CloudflarePages]:"#F38020",[r.CloudDeploymentProvider.Vercel]:"#000000",[r.CloudDeploymentProvider.Netlify]:"#00C7B7",[r.CloudDeploymentProvider.AwsAmplify]:"#FF9900",[r.CloudDeploymentProvider.GcpCloudRun]:"#4285F4"};e.s(["CLOUD_PROVIDER_BRAND_HEX",0,a,"CLOUD_PROVIDER_ICONS",0,i,"GitHubIcon",()=>o])},606581,e=>{"use strict";function t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",l=()=>Math.random().toString(36).substring(7).split("").join("."),o={INIT:`@@redux/INIT${l()}`,REPLACE:`@@redux/REPLACE${l()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${l()}`};function i(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function a(e,l,s){if("function"!=typeof e)throw Error(t(2));if("function"==typeof l&&"function"==typeof s||"function"==typeof s&&"function"==typeof arguments[3])throw Error(t(0));if("function"==typeof l&&void 0===s&&(s=l,l=void 0),void 0!==s){if("function"!=typeof s)throw Error(t(1));return s(a)(e,l)}let n=e,c=l,d=new Map,u=d,p=0,f=!1;function h(){u===d&&(u=new Map,d.forEach((e,t)=>{u.set(t,e)}))}function y(){if(f)throw Error(t(3));return c}function b(e){if("function"!=typeof e)throw Error(t(4));if(f)throw Error(t(5));let r=!0;h();let l=p++;return u.set(l,e),function(){if(r){if(f)throw Error(t(6));r=!1,h(),u.delete(l),d=null}}}function v(e){if(!i(e))throw Error(t(7));if(void 0===e.type)throw Error(t(8));if("string"!=typeof e.type)throw Error(t(17));if(f)throw Error(t(9));try{f=!0,c=n(c,e)}finally{f=!1}return(d=u).forEach(e=>{e()}),e}return v({type:o.INIT}),{dispatch:v,subscribe:b,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw Error(t(10));n=e,v({type:o.REPLACE})},[r]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(t(11));function r(){e.next&&e.next(y())}return r(),{unsubscribe:b(r)}},[r](){return this}}}}}function s(e){let r,l=Object.keys(e),i={};for(let t=0;t<l.length;t++){let r=l[t];"function"==typeof e[r]&&(i[r]=e[r])}let a=Object.keys(i);try{Object.keys(i).forEach(e=>{let r=i[e];if(void 0===r(void 0,{type:o.INIT}))throw Error(t(12));if(void 0===r(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw Error(t(13))})}catch(e){r=e}return function(e={},l){if(r)throw r;let o=!1,s={};for(let r=0;r<a.length;r++){let n=a[r],c=i[n],d=e[n],u=c(d,l);if(void 0===u)throw l&&l.type,Error(t(14));s[n]=u,o=o||u!==d}return(o=o||a.length!==Object.keys(e).length)?s:e}}function n(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function c(...e){return r=>(l,o)=>{let i=r(l,o),a=()=>{throw Error(t(15))},s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=n(...e.map(e=>e(s)))(i.dispatch),{...i,dispatch:a}}}function d(e){return i(e)&&"type"in e&&"string"==typeof e.type}e.s(["applyMiddleware",()=>c,"combineReducers",()=>s,"compose",()=>n,"createStore",()=>a,"isAction",()=>d,"isPlainObject",()=>i])},654699,e=>{e.v(t=>Promise.all(["static/chunks/b7b85a15f387ab7c.css","static/chunks/636e55c1b5c56493.js"].map(t=>e.l(t))).then(()=>t(401699)))},863812,e=>{e.v(t=>Promise.all(["static/chunks/7535e8e6543a82e4.js"].map(t=>e.l(t))).then(()=>t(158480)))}]);
|