@shepai/cli 1.72.6 → 1.72.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.d.ts +4 -0
- package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.js +20 -12
- package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.d.ts +8 -3
- package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.js +17 -4
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.js +1 -1
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +2 -6
- package/dist/src/presentation/web/app/build-graph-nodes.js +11 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts +3 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +8 -4
- package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.js +12 -3
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +6 -2
- package/dist/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.js +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +7 -2
- package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-node.js +6 -2
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +14 -2
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +3 -5
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +131 -196
- package/dist/src/presentation/web/components/ui/alert-dialog.d.ts +1 -1
- package/dist/src/presentation/web/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/presentation/web/components/ui/alert-dialog.js +7 -2
- package/dist/src/presentation/web/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/presentation/web/components/ui/dialog.js +6 -1
- package/dist/src/presentation/web/lib/layout-with-dagre.d.ts +2 -0
- package/dist/src/presentation/web/lib/layout-with-dagre.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/layout-with-dagre.js +86 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/cache/.previewinfo +1 -1
- package/web/.next/cache/.rscinfo +1 -1
- package/web/.next/cache/.tsbuildinfo +1 -1
- package/web/.next/cache/config.json +3 -3
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +14 -14
- 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]/page/server-reference-manifest.json +17 -17
- 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]/page/server-reference-manifest.json +12 -12
- 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)/create/page/server-reference-manifest.json +14 -14
- 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]/page/server-reference-manifest.json +17 -17
- 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)/page/server-reference-manifest.json +12 -12
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- 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/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8fcb9132._.js +2 -2
- package/web/.next/server/chunks/ssr/_00e6c698._.js +1 -1
- package/web/.next/server/chunks/ssr/_00e6c698._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_07c2a32a._.js +1 -1
- package/web/.next/server/chunks/ssr/_07c2a32a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_34a58db8._.js +1 -1
- package/web/.next/server/chunks/ssr/_34a58db8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_37259405._.js +1 -1
- package/web/.next/server/chunks/ssr/_37259405._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_85d0351b._.js → _63bfa7dd._.js} +2 -2
- package/web/.next/server/chunks/ssr/_63bfa7dd._.js.map +1 -0
- package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/_e50484ec._.js → server/chunks/ssr/_7215bb0f._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_e50484ec._.js.map → _7215bb0f._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_cb5b3951._.js +1 -1
- package/web/.next/server/chunks/ssr/_cb5b3951._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_fc3a6895._.js +1 -1
- package/web/.next/server/chunks/ssr/_fc3a6895._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.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 +20 -20
- package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +14 -14
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +17 -17
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +14 -14
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +17 -17
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__8fcb9132._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_00e6c698._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_07c2a32a._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_34a58db8._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_37259405._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/{_85d0351b._.js → _63bfa7dd._.js} +2 -2
- package/web/.next/{server/chunks/ssr/_e50484ec._.js → standalone/src/presentation/web/.next/server/chunks/ssr/_7215bb0f._.js} +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_cb5b3951._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_fc3a6895._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +20 -20
- package/web/.next/standalone/src/presentation/web/app/(dashboard)/get-graph-data.ts +2 -6
- package/web/.next/standalone/src/presentation/web/app/build-graph-nodes.ts +14 -1
- package/web/.next/standalone/src/presentation/web/components/common/base-drawer/base-drawer.tsx +10 -8
- package/web/.next/standalone/src/presentation/web/components/common/control-center-drawer/create-drawer-client.tsx +13 -3
- package/web/.next/standalone/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.tsx +6 -2
- package/web/.next/standalone/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.tsx +2 -0
- package/web/.next/standalone/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx +8 -5
- package/web/.next/standalone/src/presentation/web/components/common/feature-node/feature-node.tsx +30 -24
- package/web/.next/standalone/src/presentation/web/components/common/repository-node/repository-node.tsx +33 -25
- package/web/.next/standalone/src/presentation/web/components/features/control-center/control-center-inner.tsx +25 -3
- package/web/.next/standalone/src/presentation/web/components/features/control-center/use-control-center-state.ts +184 -230
- package/web/.next/standalone/src/presentation/web/components/ui/alert-dialog.tsx +7 -0
- package/web/.next/standalone/src/presentation/web/components/ui/dialog.tsx +7 -1
- package/web/.next/standalone/src/presentation/web/lib/layout-with-dagre.ts +93 -4
- package/web/.next/standalone/src/presentation/web/server.js +1 -1
- package/web/.next/static/chunks/0c54314c8c9c9739.js +7 -0
- package/web/.next/static/chunks/{5f5c607ffae8b918.js → 304c8593d0a6525d.js} +1 -1
- package/web/.next/static/chunks/4558d1663c6f4d2c.js +1 -0
- package/web/.next/static/chunks/{32957ff277daec59.js → 4df07e765b233622.js} +1 -1
- package/web/.next/static/chunks/{fc07834e422b1caa.js → 585ae19c520e8b72.js} +1 -1
- package/web/.next/static/chunks/{ecb2130572a7fbe7.js → 6e14d8bd5c005e6e.js} +1 -1
- package/web/.next/static/chunks/{412a3ac70c529c5b.js → 8a1eb93510e54db0.js} +1 -1
- package/web/.next/static/chunks/{550bf3cb8220cbf0.js → b143c7d78a6888e9.js} +1 -1
- package/web/.next/static/chunks/{8b36e07129a1471f.js → b45344579a43cbb8.js} +1 -1
- package/web/.next/static/chunks/dec13bccb136ef7c.css +2 -0
- package/web/.next/static/chunks/e4522f7d3134eefe.js +1 -0
- package/web/.next/static/chunks/{d4ecce2ac7795bd9.js → fe83a799663fd3cc.js} +1 -1
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- package/web/.next/server/chunks/ssr/_85d0351b._.js.map +0 -1
- package/web/.next/static/chunks/06b6b02bab76aee7.js +0 -1
- package/web/.next/static/chunks/06dfd668334ffb4e.js +0 -7
- package/web/.next/static/chunks/224ed5f5dbd33154.css +0 -2
- package/web/.next/static/chunks/e44849eb58a3335f.js +0 -1
- /package/web/.next/static/{7K6dTYQIJ7__PLUYLLfZV → 9bO_bJBssG0NRxEG03iM5}/_buildManifest.js +0 -0
- /package/web/.next/static/{7K6dTYQIJ7__PLUYLLfZV → 9bO_bJBssG0NRxEG03iM5}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{7K6dTYQIJ7__PLUYLLfZV → 9bO_bJBssG0NRxEG03iM5}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function p(e){var t=e.match(l);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function f(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(i),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var l=Error(t.source+":"+n+":"+c+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=c,l.source=e,t.silent);else throw l}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,p(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(i);var v,b=[];for(x(b);v=function(){var e=f(),t=g(o);if(t){if(y(),!g(a))return m("property missing ':'");var n=g(s),l=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),l}}();)!1!==v&&(b.push(v),x(b));return b}},59596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,l.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:l}=e;i?t(r,l,e):l&&((n=n||{})[r]=l)}),n};let l=r(e.r(69090))},51521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||i.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(l,s))}},63185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(59596)),l=e.r(51521);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,l.camelCase)(e,t)]=r)}),n}i.default=i,t.exports=i},75609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===l.call(e)},s=function(e){if(!e||"[object Object]"!==l.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,l,i,o,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=c(d,n),d!==(l=c(t,n))&&(h&&l&&(s(l)||(i=a(l)))?(i?(i=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,l)})):void 0!==l&&u(d,{name:n,newValue:l}));return d}},36986,e=>{"use strict";var t=e.i(20314),n=e.i(79054),r=e.i(31406),l=e.i(60112),i=e.i(83428),o=e.i(67669),a=e.i(30702),s=e.i(3645);let u=(0,s.default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var c=e.i(24042),d=e.i(64970),p=e.i(17406),f=e.i(21023);let h=(0,f.createServerReference)("604885d48eab1d8641cb5af07bcca2ae9255557f5e",f.callServer,void 0,f.findSourceMapURL,"approveFeature"),m=(0,f.createServerReference)("606392fc4a5a2bcd34ea36d87987364377da973da5",f.callServer,void 0,f.findSourceMapURL,"rejectFeature"),g=(0,f.createServerReference)("40e20322b0c5bcc20820ae4d5913440a26e5b27557",f.callServer,void 0,f.findSourceMapURL,"getFeatureArtifact"),x=(0,f.createServerReference)("40834419e6e7f3b6c77e8b0cebe456782ff41ba622",f.callServer,void 0,f.findSourceMapURL,"getResearchArtifact"),y=(0,f.createServerReference)("40d3c758b61ceb7305366077e78478a3e237de5635",f.callServer,void 0,f.findSourceMapURL,"getMergeReviewData");var v=e.i(48638),b=e.i(31777),k=e.i(63629),w=e.i(8361),j=e.i(30153),S=e.i(8537),C=e.i(39443);e.i(1650);var N=e.i(11495);e.i(99348);var E=e.i(17466),P=e.i(45811),I=e.i(35364),T=e.i(81846),D=e.i(25235),M=e.i(2828);let A=(0,e.i(94237).cva)("inline-block shrink-0",{variants:{size:{sm:"size-5",md:"size-8",lg:"size-12"}},defaultVariants:{size:"md"}}),R=[{r:9,spline:"0.12 0 0.04 1",opacity:1},{r:8.2,spline:"0.16 0 0.08 1",opacity:.95},{r:7.4,spline:"0.20 0 0.12 1",opacity:.9},{r:6.6,spline:"0.25 0 0.16 1",opacity:.84},{r:5.8,spline:"0.30 0 0.20 1",opacity:.76},{r:5,spline:"0.36 0 0.25 1",opacity:.67},{r:4.2,spline:"0.42 0 0.31 1",opacity:.56},{r:3.4,spline:"0.48 0 0.37 1",opacity:.44},{r:2.6,spline:"0.55 0 0.44 1",opacity:.32},{r:1.8,spline:"0.62 0 0.52 1",opacity:.2},{r:1,spline:"0.70 0 0.60 1",opacity:.1}];function L({className:e,size:n="md",duration:r=5,...l}){return(0,t.jsxs)("svg",{"data-slot":"comet-spinner",role:"status","aria-label":"Loading",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:(0,b.cn)(A({size:n}),e),...l,children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:"comet-gooey",x:"-100%",y:"-100%",width:"300%",height:"300%",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2.5"}),(0,t.jsx)("feColorMatrix",{mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -30",result:"goo"})]})}),(0,t.jsxs)("g",{filter:"url(#comet-gooey)",children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:`${r}s`,repeatCount:"indefinite"}),R.map(e=>(0,t.jsxs)("g",{children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"spline",values:"0 50 50;360 50 50",keyTimes:"0;1",keySplines:e.spline,dur:"1s",repeatCount:"indefinite"}),(0,t.jsx)("circle",{cx:"50",cy:"18",r:e.r,fill:"currentColor",opacity:e.opacity})]},e.r)),(0,t.jsxs)("circle",{cx:"50",cy:"50",r:"4",fill:"currentColor",opacity:"0.15",children:[(0,t.jsx)("animate",{attributeName:"r",values:"3;5;3",dur:"2s",repeatCount:"indefinite"}),(0,t.jsx)("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"2s",repeatCount:"indefinite"})]})]})]})}var z=e.i(71326),O=e.i(80986),O=O,F=e.i(30090),F=F;function _({status:e}){switch(e){case p.CiStatus.Success:return(0,t.jsxs)(T.Badge,{className:"border-transparent bg-green-50 text-green-700 hover:bg-green-50",children:[(0,t.jsx)(O.default,{className:"mr-1 h-3.5 w-3.5"}),"Passing"]});case p.CiStatus.Pending:return(0,t.jsxs)(T.Badge,{className:"border-transparent bg-yellow-50 text-yellow-700 hover:bg-yellow-50",children:[(0,t.jsx)(i.Loader2,{className:"mr-1 h-3.5 w-3.5 animate-spin"}),"Pending"]});case p.CiStatus.Failure:return(0,t.jsxs)(T.Badge,{className:"border-transparent bg-red-50 text-red-700 hover:bg-red-50",children:[(0,t.jsx)(F.default,{className:"mr-1 h-3.5 w-3.5"}),"Failing"]})}}e.i(81803);var B=e.i(72714),H=e.i(8986),U=e.i(38573),q=e.i(19933);let V=(0,s.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var K=e.i(33548),G=e.i(23925),$=e.i(51251),W=e.i(91967),X=e.i(5978),Q=e.i(22528),Y=e.i(36589),J=e.i(87620),Z=e.i(87342),ee=e.i(66033),et=e.i(53532),en=e.i(41687),er=e.i(56720),el=e.i(13123),ei=e.i(52740),eo=e.i(39979),ea=e.i(85995),es=e.i(51080),eu=e.i(86874),ec=e.i(29297),ed=e.i(73772),ep=e.i(13044),ef=["Enter"," "],eh=["ArrowUp","PageDown","End"],em=["ArrowDown","PageUp","Home",...eh],eg={ltr:[...ef,"ArrowRight"],rtl:[...ef,"ArrowLeft"]},ex={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ey="Menu",[ev,eb,ek]=(0,Z.createCollection)(ey),[ew,ej]=(0,Q.createContextScope)(ey,[ek,ei.createPopperScope,es.createRovingFocusGroupScope]),eS=(0,ei.createPopperScope)(),eC=(0,es.createRovingFocusGroupScope)(),[eN,eE]=ew(ey),[eP,eI]=ew(ey),eT=e=>{let{__scopeMenu:r,open:l=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,u=eS(r),[c,d]=n.useState(null),p=n.useRef(!1),f=(0,ec.useCallbackRef)(a),h=(0,ee.useDirection)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(ei.Root,{...u,children:(0,t.jsx)(eN,{scope:r,open:l,onOpenChange:f,content:c,onContentChange:d,children:(0,t.jsx)(eP,{scope:r,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};eT.displayName=ey;var eD=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=eS(r);return(0,t.jsx)(ei.Anchor,{...i,...l,ref:n})});eD.displayName="MenuAnchor";var eM="MenuPortal",[eA,eR]=ew(eM,{forceMount:void 0}),eL=e=>{let{__scopeMenu:n,forceMount:r,children:l,container:i}=e,o=eE(eM,n);return(0,t.jsx)(eA,{scope:n,forceMount:r,children:(0,t.jsx)(ea.Presence,{present:r||o.open,children:(0,t.jsx)(eo.Portal,{asChild:!0,container:i,children:l})})})};eL.displayName=eM;var ez="MenuContent",[eO,eF]=ew(ez),e_=n.forwardRef((e,n)=>{let r=eR(ez,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,o=eE(ez,e.__scopeMenu),a=eI(ez,e.__scopeMenu);return(0,t.jsx)(ev.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(ea.Presence,{present:l||o.open,children:(0,t.jsx)(ev.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(eB,{...i,ref:n}):(0,t.jsx)(eH,{...i,ref:n})})})})}),eB=n.forwardRef((e,r)=>{let l=eE(ez,e.__scopeMenu),i=n.useRef(null),o=(0,X.useComposedRefs)(r,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,ed.hideOthers)(e)},[]),(0,t.jsx)(eq,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:(0,W.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),eH=n.forwardRef((e,n)=>{let r=eE(ez,e.__scopeMenu);return(0,t.jsx)(eq,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eU=(0,eu.createSlot)("MenuContent.ScrollLock"),eq=n.forwardRef((e,r)=>{let{__scopeMenu:l,loop:i=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...x}=e,y=eE(ez,l),v=eI(ez,l),b=eS(l),k=eC(l),w=eb(l),[j,S]=n.useState(null),C=n.useRef(null),N=(0,X.useComposedRefs)(r,C,y.onContentChange),E=n.useRef(0),P=n.useRef(""),I=n.useRef(0),T=n.useRef(null),D=n.useRef("right"),M=n.useRef(0),A=g?ep.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(E.current),[]),(0,en.useFocusGuards)();let R=n.useCallback(e=>{var t,n;return D.current===T.current?.side&&(t=e,!!(n=T.current?.area)&&function(e,t){let{x:n,y:r}=e,l=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],a=t[i],s=o.x,u=o.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(l=!l)}return l}({x:t.clientX,y:t.clientY},n))},[]);return(0,t.jsx)(eO,{scope:l,searchRef:P,onItemEnter:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:n.useCallback(e=>{R(e)||(C.current?.focus(),S(null))},[R]),onTriggerLeave:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:I,onPointerGraceIntentChange:n.useCallback(e=>{T.current=e},[]),children:(0,t.jsx)(A,{...g?{as:eU,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(er.FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:(0,W.composeEventHandlers)(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,t.jsx)(et.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:(0,t.jsx)(es.Root,{asChild:!0,...k,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:(0,W.composeEventHandlers)(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(ei.Content,{role:"menu","aria-orientation":"vertical","data-state":ta(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...x,ref:N,style:{outline:"none",...x.style},onKeyDown:(0,W.composeEventHandlers)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var l;let t,i,o,a,s,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(l=e.key,t=P.current+l,i=w().filter(e=>!e.disabled),o=document.activeElement,a=i.find(e=>e.ref.current===o)?.textValue,s=function(e,t,n){var r;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,o=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===l.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(l.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),t,a),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){P.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=C.current;if(e.target!==i||!em.includes(e.key))return;e.preventDefault();let o=w().filter(e=>!e.disabled).map(e=>e.ref.current);eh.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,W.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,tc(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(D.current=e.clientX>M.current?"right":"left",M.current=e.clientX)}))})})})})})})});e_.displayName=ez;var eV=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(J.Primitive.div,{role:"group",...l,ref:n})});eV.displayName="MenuGroup";var eK=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(J.Primitive.div,{...l,ref:n})});eK.displayName="MenuLabel";var eG="MenuItem",e$="menu.itemSelect",eW=n.forwardRef((e,r)=>{let{disabled:l=!1,onSelect:i,...o}=e,a=n.useRef(null),s=eI(eG,e.__scopeMenu),u=eF(eG,e.__scopeMenu),c=(0,X.useComposedRefs)(r,a),d=n.useRef(!1);return(0,t.jsx)(eX,{...o,ref:c,disabled:l,onClick:(0,W.composeEventHandlers)(e.onClick,()=>{let e=a.current;if(!l&&e){let t=new CustomEvent(e$,{bubbles:!0,cancelable:!0});e.addEventListener(e$,e=>i?.(e),{once:!0}),(0,J.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,W.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;l||t&&" "===e.key||ef.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eW.displayName=eG;var eX=n.forwardRef((e,r)=>{let{__scopeMenu:l,disabled:i=!1,textValue:o,...a}=e,s=eF(eG,l),u=eC(l),c=n.useRef(null),d=(0,X.useComposedRefs)(r,c),[p,f]=n.useState(!1),[h,m]=n.useState("");return n.useEffect(()=>{let e=c.current;e&&m((e.textContent??"").trim())},[a.children]),(0,t.jsx)(ev.ItemSlot,{scope:l,disabled:i,textValue:o??h,children:(0,t.jsx)(es.Item,{asChild:!0,...u,focusable:!i,children:(0,t.jsx)(J.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:d,onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,tc(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,tc(e=>s.onItemLeave(e))),onFocus:(0,W.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,W.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eQ=n.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:l,...i}=e;return(0,t.jsx)(e4,{scope:e.__scopeMenu,checked:r,children:(0,t.jsx)(eW,{role:"menuitemcheckbox","aria-checked":ts(r)?"mixed":r,...i,ref:n,"data-state":tu(r),onSelect:(0,W.composeEventHandlers)(i.onSelect,()=>l?.(!!ts(r)||!r),{checkForDefaultPrevented:!1})})})});eQ.displayName="MenuCheckboxItem";var eY="MenuRadioGroup",[eJ,eZ]=ew(eY,{value:void 0,onValueChange:()=>{}}),e0=n.forwardRef((e,n)=>{let{value:r,onValueChange:l,...i}=e,o=(0,ec.useCallbackRef)(l);return(0,t.jsx)(eJ,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,t.jsx)(eV,{...i,ref:n})})});e0.displayName=eY;var e1="MenuRadioItem",e2=n.forwardRef((e,n)=>{let{value:r,...l}=e,i=eZ(e1,e.__scopeMenu),o=r===i.value;return(0,t.jsx)(e4,{scope:e.__scopeMenu,checked:o,children:(0,t.jsx)(eW,{role:"menuitemradio","aria-checked":o,...l,ref:n,"data-state":tu(o),onSelect:(0,W.composeEventHandlers)(l.onSelect,()=>i.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});e2.displayName=e1;var e5="MenuItemIndicator",[e4,e3]=ew(e5,{checked:!1}),e6=n.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:l,...i}=e,o=e3(e5,r);return(0,t.jsx)(ea.Presence,{present:l||ts(o.checked)||!0===o.checked,children:(0,t.jsx)(J.Primitive.span,{...i,ref:n,"data-state":tu(o.checked)})})});e6.displayName=e5;var e9=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(J.Primitive.div,{role:"separator","aria-orientation":"horizontal",...l,ref:n})});e9.displayName="MenuSeparator";var e8=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=eS(r);return(0,t.jsx)(ei.Arrow,{...i,...l,ref:n})});e8.displayName="MenuArrow";var e7="MenuSub",[te,tt]=ew(e7),tn=e=>{let{__scopeMenu:r,children:l,open:i=!1,onOpenChange:o}=e,a=eE(e7,r),s=eS(r),[u,c]=n.useState(null),[d,p]=n.useState(null),f=(0,ec.useCallbackRef)(o);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,t.jsx)(ei.Root,{...s,children:(0,t.jsx)(eN,{scope:r,open:i,onOpenChange:f,content:d,onContentChange:p,children:(0,t.jsx)(te,{scope:r,contentId:(0,el.useId)(),triggerId:(0,el.useId)(),trigger:u,onTriggerChange:c,children:l})})})};tn.displayName=e7;var tr="MenuSubTrigger",tl=n.forwardRef((e,r)=>{let l=eE(tr,e.__scopeMenu),i=eI(tr,e.__scopeMenu),o=tt(tr,e.__scopeMenu),a=eF(tr,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),c(null)}},[u,c]),(0,t.jsx)(eD,{asChild:!0,...d,children:(0,t.jsx)(eX,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":o.contentId,"data-state":ta(l.open),...e,ref:(0,X.composeRefs)(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,tc(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||l.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{l.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,tc(e=>{p();let t=l.content?.getBoundingClientRect();if(t){let n=l.content?.dataset.side,r="right"===n,i=t[r?"left":"right"],o=t[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(r?-5:5),y:e.clientY},{x:i,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==a.searchRef.current;e.disabled||n&&" "===t.key||eg[i.dir].includes(t.key)&&(l.onOpenChange(!0),l.content?.focus(),t.preventDefault())})})})});tl.displayName=tr;var ti="MenuSubContent",to=n.forwardRef((e,r)=>{let l=eR(ez,e.__scopeMenu),{forceMount:i=l.forceMount,...o}=e,a=eE(ez,e.__scopeMenu),s=eI(ez,e.__scopeMenu),u=tt(ti,e.__scopeMenu),c=n.useRef(null),d=(0,X.useComposedRefs)(r,c);return(0,t.jsx)(ev.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(ea.Presence,{present:i||a.open,children:(0,t.jsx)(ev.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(eq,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,W.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,W.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ex[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function ta(e){return e?"open":"closed"}function ts(e){return"indeterminate"===e}function tu(e){return ts(e)?"indeterminate":e?"checked":"unchecked"}function tc(e){return t=>"mouse"===t.pointerType?e(t):void 0}to.displayName=ti;var td="DropdownMenu",[tp,tf]=(0,Q.createContextScope)(td,[ej]),th=ej(),[tm,tg]=tp(td),tx=e=>{let{__scopeDropdownMenu:r,children:l,dir:i,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,c=th(r),d=n.useRef(null),[p,f]=(0,Y.useControllableState)({prop:o,defaultProp:a??!1,onChange:s,caller:td});return(0,t.jsx)(tm,{scope:r,triggerId:(0,el.useId)(),triggerRef:d,contentId:(0,el.useId)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,t.jsx)(eT,{...c,open:p,onOpenChange:f,dir:i,modal:u,children:l})})};tx.displayName=td;var ty="DropdownMenuTrigger",tv=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:l=!1,...i}=e,o=tg(ty,r),a=th(r);return(0,t.jsx)(eD,{asChild:!0,...a,children:(0,t.jsx)(J.Primitive.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:(0,X.composeRefs)(n,o.triggerRef),onPointerDown:(0,W.composeEventHandlers)(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tv.displayName=ty;var tb=e=>{let{__scopeDropdownMenu:n,...r}=e,l=th(n);return(0,t.jsx)(eL,{...l,...r})};tb.displayName="DropdownMenuPortal";var tk="DropdownMenuContent",tw=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:l,...i}=e,o=tg(tk,l),a=th(l),s=n.useRef(!1);return(0,t.jsx)(e_,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...i,ref:r,onCloseAutoFocus:(0,W.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,W.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tw.displayName=tk;var tj=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eV,{...i,...l,ref:n})});tj.displayName="DropdownMenuGroup";var tS=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eK,{...i,...l,ref:n})});tS.displayName="DropdownMenuLabel";var tC=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eW,{...i,...l,ref:n})});tC.displayName="DropdownMenuItem";var tN=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eQ,{...i,...l,ref:n})});tN.displayName="DropdownMenuCheckboxItem";var tE=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e0,{...i,...l,ref:n})});tE.displayName="DropdownMenuRadioGroup";var tP=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e2,{...i,...l,ref:n})});tP.displayName="DropdownMenuRadioItem";var tI=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e6,{...i,...l,ref:n})});tI.displayName="DropdownMenuItemIndicator";var tT=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e9,{...i,...l,ref:n})});tT.displayName="DropdownMenuSeparator";var tD=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e8,{...i,...l,ref:n})});tD.displayName="DropdownMenuArrow";var tM=e=>{let{__scopeDropdownMenu:n,children:r,open:l,onOpenChange:i,defaultOpen:o}=e,a=th(n),[s,u]=(0,Y.useControllableState)({prop:l,defaultProp:o??!1,onChange:i,caller:"DropdownMenuSub"});return(0,t.jsx)(tn,{...a,open:s,onOpenChange:u,children:r})},tA=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(tl,{...i,...l,ref:n})});tA.displayName="DropdownMenuSubTrigger";var tR=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(to,{...i,...l,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tR.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>tD,"CheckboxItem",()=>tN,"Content",()=>tw,"DropdownMenu",()=>tx,"DropdownMenuArrow",()=>tD,"DropdownMenuCheckboxItem",()=>tN,"DropdownMenuContent",()=>tw,"DropdownMenuGroup",()=>tj,"DropdownMenuItem",()=>tC,"DropdownMenuItemIndicator",()=>tI,"DropdownMenuLabel",()=>tS,"DropdownMenuPortal",()=>tb,"DropdownMenuRadioGroup",()=>tE,"DropdownMenuRadioItem",()=>tP,"DropdownMenuSeparator",()=>tT,"DropdownMenuSub",()=>tM,"DropdownMenuSubContent",()=>tR,"DropdownMenuSubTrigger",()=>tA,"DropdownMenuTrigger",()=>tv,"Group",()=>tj,"Item",()=>tC,"ItemIndicator",()=>tI,"Label",()=>tS,"Portal",()=>tb,"RadioGroup",()=>tE,"RadioItem",()=>tP,"Root",()=>tx,"Separator",()=>tT,"Sub",()=>tM,"SubContent",()=>tR,"SubTrigger",()=>tA,"Trigger",()=>tv,"createDropdownMenuScope",()=>tf],61920);var tL=e.i(61920),tL=tL;let tz=(0,s.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),tO=(0,s.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tF=tL.Root,t_=tL.Trigger;tL.Group,tL.Portal,tL.Sub,tL.RadioGroup,n.forwardRef(({className:e,inset:n,children:r,...l},i)=>(0,t.jsxs)(tL.SubTrigger,{ref:i,className:(0,b.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...l,children:[r,(0,t.jsx)(tz,{className:"ml-auto"})]})).displayName=tL.SubTrigger.displayName,n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tL.SubContent,{ref:r,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...n})).displayName=tL.SubContent.displayName;let tB=n.forwardRef(({className:e,sideOffset:n=4,...r},l)=>(0,t.jsx)(tL.Portal,{children:(0,t.jsx)(tL.Content,{ref:l,sideOffset:n,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...r})}));tB.displayName=tL.Content.displayName;let tH=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tL.Item,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",e),...r}));tH.displayName=tL.Item.displayName,n.forwardRef(({className:e,children:n,checked:r,...l},i)=>(0,t.jsxs)(tL.CheckboxItem,{ref:i,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...l,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tL.ItemIndicator,{children:(0,t.jsx)(G.Check,{className:"h-4 w-4"})})}),n]})).displayName=tL.CheckboxItem.displayName,n.forwardRef(({className:e,children:n,...r},l)=>(0,t.jsxs)(tL.RadioItem,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tL.ItemIndicator,{children:(0,t.jsx)(tO,{className:"h-2 w-2 fill-current"})})}),n]})).displayName=tL.RadioItem.displayName;let tU=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tL.Label,{ref:l,className:(0,b.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));tU.displayName=tL.Label.displayName;let tq=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tL.Separator,{ref:r,className:(0,b.cn)("bg-muted -mx-1 my-1 h-px",e),...n}));function tV({actions:e,repositoryPath:r,showSpecs:l}){let[o,a]=(0,n.useState)(!1),s=e.ideLoading||e.shellLoading||e.specsLoading,u=e.ideError??e.shellError??e.specsError;return(0,t.jsxs)(tF,{modal:!1,children:[(0,t.jsx)(t_,{asChild:!0,children:(0,t.jsxs)(I.Button,{variant:"outline",size:"sm",className:"gap-1.5",disabled:s,children:[s?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):u?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(q.FolderOpen,{className:"size-4"}),"Open",(0,t.jsx)(V,{className:"size-3 opacity-60"})]})}),(0,t.jsxs)(tB,{align:"start",className:"w-48",children:[(0,t.jsx)(tU,{children:"Open in"}),(0,t.jsxs)(tH,{onClick:e.openInIde,disabled:e.ideLoading,className:"gap-2",children:[e.ideLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.ideError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(H.Code2,{className:"size-4"}),"IDE"]}),(0,t.jsxs)(tH,{onClick:e.openInShell,disabled:e.shellLoading,className:"gap-2",children:[e.shellLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.shellError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(U.Terminal,{className:"size-4"}),"Terminal"]}),(0,t.jsxs)(tH,{onClick:e.openSpecsFolder,disabled:e.specsLoading||!l,className:"gap-2",children:[e.specsLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.specsError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(q.FolderOpen,{className:"size-4"}),"Specs Folder"]}),(0,t.jsx)(tq,{}),(0,t.jsxs)(tH,{onClick:()=>{navigator.clipboard.writeText(r),a(!0),setTimeout(()=>a(!1),2e3)},className:"gap-2",children:[o?(0,t.jsx)(G.Check,{className:"size-4 text-green-600"}):(0,t.jsx)(K.Copy,{className:"size-4"}),o?"Copied!":"Copy path"]})]})]})}tq.displayName=tL.Separator.displayName;let tK=(0,s.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),tG=(0,s.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var t$=e.i(98127);function tW({onReject:e,onApprove:r,approveLabel:l,approveIcon:i,revisionPlaceholder:o,isProcessing:a=!1,isRejecting:s=!1,children:u,chatInput:c,onChatInputChange:d}){let[p,f]=(0,n.useState)(""),h=c??p,m=d??f,g=(0,w.useSoundAction)("approve"),x=a||s;return(0,t.jsxs)("div",{className:"border-border shrink-0 border-t",children:[u,e?(0,t.jsxs)("form",{onSubmit:function(t){t.preventDefault();let n=h.trim();n&&e&&(e(n),m(""))},className:"flex items-center gap-2 p-4",children:[(0,t.jsx)(t$.Input,{type:"text",placeholder:o??"Ask AI to revise...","aria-label":o??"Ask AI to revise...",disabled:x,value:h,onChange:e=>m(e.target.value),className:"flex-1"}),(0,t.jsx)(I.Button,{type:"submit",variant:"secondary",size:"icon","aria-label":"Send",disabled:x,children:(0,t.jsx)(tG,{})}),(0,t.jsxs)(I.Button,{type:"button",disabled:x,onClick:()=>{g.play(),r()},children:[i,l]})]}):(0,t.jsx)("div",{className:"flex items-center gap-2 px-4 pb-4",children:(0,t.jsxs)(I.Button,{type:"button",className:"flex-1",disabled:x,onClick:()=>{g.play(),r()},children:[i,l]})})]})}function tX({data:e,selections:r,onSelect:l,onApprove:i,onReject:o,isProcessing:a=!1,isRejecting:s=!1,showHeader:u=!1,chatInput:c,onChatInputChange:d}){let{question:p,context:f,questions:h,finalAction:m}=e,[g,x]=(0,n.useState)(0),y=(0,w.useSoundAction)("select"),v=(0,w.useSoundAction)("navigate"),k=h.length,j=g===k-1,S=h[g],C=(0,n.useMemo)(()=>Object.keys(r).length,[r]),N=(0,n.useCallback)((e,t)=>{y.play(),l(e,t),j||setTimeout(()=>x(e=>e+1),250)},[l,j,y]);return 0===k?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[u?(0,t.jsxs)("div",{className:"border-border flex items-start gap-3 border-b pb-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-amber-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground mb-1.5 text-sm font-bold",children:p}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed",children:f})]})]}):null,(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("label",{className:"text-foreground min-w-0 flex-1 text-sm font-semibold",children:S.question}),(0,t.jsx)("div",{className:"mt-1.5 flex shrink-0 gap-1",children:h.map((e,n)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to question ${n+1}`,className:(0,b.cn)("h-1.5 rounded-full transition-all duration-200",n===g?"bg-primary w-4":"w-1.5",n!==g&&r[e.id]?"bg-primary/50":"",n===g||r[e.id]?"":"bg-muted-foreground/25"),onClick:()=>{v.play(),x(n)}},e.id))})]}),(0,t.jsx)("div",{className:"space-y-2",children:S.options.map((e,n)=>{let l=r[S.id]===e.id,i=String.fromCharCode(65+n);return(0,t.jsx)("button",{type:"button",className:(0,b.cn)("border-border w-full rounded-md border px-3 py-3 text-left text-xs transition-all","hover:border-primary/70 hover:bg-primary/5 group",l&&"border-primary bg-primary/5",e.isNew&&"animate-option-highlight"),disabled:a,onClick:()=>N(S.id,e.id),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("span",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:[i,"."]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"mb-0.5 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:e.label}),e.recommended?(0,t.jsx)(T.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null,e.isNew?(0,t.jsx)(T.Badge,{className:"border-transparent bg-emerald-600 px-1.5 py-0 text-[10px] text-white hover:bg-emerald-600/80",children:"New"}):null]}),(0,t.jsx)("div",{className:"text-muted-foreground text-xs leading-snug",children:e.rationale})]})]})},e.id)})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,t.jsxs)(I.Button,{type:"button",variant:"ghost",size:"sm",disabled:0===g||a,onClick:()=>{v.play(),x(e=>e-1)},children:[(0,t.jsx)(tK,{className:"mr-1 h-4 w-4"}),"Previous"]}),j?null:(0,t.jsxs)(I.Button,{type:"button",variant:"ghost",size:"sm",disabled:a,onClick:()=>{v.play(),x(e=>e+1)},children:[r[S.id]?"Next":"Skip",(0,t.jsx)(tz,{className:"ml-1 h-4 w-4"})]})]})]}),(0,t.jsx)(tW,{onReject:o,onApprove:()=>i(m.id),approveLabel:m.label,approveIcon:(0,t.jsx)(G.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to refine requirements...",isProcessing:a,isRejecting:s,chatInput:c,onChatInputChange:d,children:(0,t.jsx)("div",{className:(0,b.cn)("bg-muted h-1.5 overflow-hidden",C>0&&C<k||a?"opacity-100":"opacity-0","transition-opacity duration-200"),"data-testid":"progress-bar-container",children:a?(0,t.jsx)("div",{className:"bg-primary animate-indeterminate-progress h-full w-1/3"}):(0,t.jsx)("div",{className:"bg-primary h-full transition-all duration-300",style:{width:`${k>0?C/k*100:0}%`},"data-testid":"progress-bar"})})})]})}var tQ=e.i(75693),tY=e.i(67582),tJ=e.i(50073),tZ=e.i(68304);function t0(){}function t1(){}let t2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t4={};function t3(e,t){return((t||t4).jsx?t5:t2).test(e)}let t6=/[ \t\n\f\r]/g;function t9(e){return""===e.replace(t6,"")}class t8{constructor(e,t){this.attribute=t,this.property=e}}t8.prototype.attribute="",t8.prototype.booleanish=!1,t8.prototype.boolean=!1,t8.prototype.commaOrSpaceSeparated=!1,t8.prototype.commaSeparated=!1,t8.prototype.defined=!1,t8.prototype.mustUseProperty=!1,t8.prototype.number=!1,t8.prototype.overloadedBoolean=!1,t8.prototype.property="",t8.prototype.spaceSeparated=!1,t8.prototype.space=void 0;let t7=0,ne=na(),nt=na(),nn=na(),nr=na(),nl=na(),ni=na(),no=na();function na(){return 2**++t7}e.s(["boolean",0,ne,"booleanish",0,nt,"commaOrSpaceSeparated",0,no,"commaSeparated",0,ni,"number",0,nr,"overloadedBoolean",0,nn,"spaceSeparated",0,nl],83954);var ns=e.i(83954);let nu=Object.keys(ns);class nc extends t8{constructor(e,t,n,r){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++l<nu.length;){const e=nu[l];!function(e,t,n){n&&(e[t]=n)}(this,nu[l],(n&ns[e])===ns[e])}}}function nd(e){return e.toLowerCase()}nc.prototype.defined=!0;let np=/[A-Z]/g,nf=/-[a-z]/g,nh=/^data[-\w.:]+$/i;function nm(e){return"-"+e.toLowerCase()}function ng(e){return e.charAt(1).toUpperCase()}let nx={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class ny{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function nv(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ny(n,r,t)}function nb(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new nc(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nd(r)]=r,n[nd(i.attribute)]=r}return new ny(t,n,e.space)}ny.prototype.normal={},ny.prototype.property={},ny.prototype.space=void 0;let nk=nb({properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:nr,ariaColIndex:nr,ariaColSpan:nr,ariaControls:nl,ariaCurrent:null,ariaDescribedBy:nl,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:nl,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:nl,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nl,ariaLevel:nr,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:nl,ariaPlaceholder:null,ariaPosInSet:nr,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:nl,ariaRowCount:nr,ariaRowIndex:nr,ariaRowSpan:nr,ariaSelected:nt,ariaSetSize:nr,ariaSort:null,ariaValueMax:nr,ariaValueMin:nr,ariaValueNow:nr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function nw(e,t){return t in e?e[t]:t}function nj(e,t){return nw(e,t.toLowerCase())}let nS=nb({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ni,acceptCharset:nl,accessKey:nl,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:nl,autoFocus:ne,autoPlay:ne,blocking:nl,capture:null,charSet:null,checked:ne,cite:null,className:nl,cols:nr,colSpan:null,content:null,contentEditable:nt,controls:ne,controlsList:nl,coords:nr|ni,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:nn,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:nl,height:nr,hidden:nn,high:nr,href:null,hrefLang:null,htmlFor:nl,httpEquiv:nl,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:nl,itemRef:nl,itemScope:ne,itemType:nl,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:nr,manifest:null,max:null,maxLength:nr,media:null,method:null,min:null,minLength:nr,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:nr,pattern:null,ping:nl,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:nl,required:ne,reversed:ne,rows:nr,rowSpan:nr,sandbox:nl,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:nr,sizes:null,slot:null,span:nr,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nr,step:null,style:null,tabIndex:nr,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:nt,width:nr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nl,axis:null,background:null,bgColor:null,border:nr,borderColor:null,bottomMargin:nr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:nr,leftMargin:nr,link:null,longDesc:null,lowSrc:null,marginHeight:nr,marginWidth:nr,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:nr,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:nr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:nr,security:null,unselectable:null},space:"html",transform:nj}),nC=nb({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:no,accentHeight:nr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nr,amplitude:nr,arabicForm:null,ascent:nr,attributeName:null,attributeType:null,azimuth:nr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nr,by:null,calcMode:null,capHeight:nr,className:nl,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nr,diffuseConstant:nr,direction:null,display:null,dur:null,divisor:nr,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:nr,enableBackground:null,end:null,event:null,exponent:nr,externalResourcesRequired:null,fill:null,fillOpacity:nr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ni,g2:ni,glyphName:ni,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nr,horizOriginX:nr,horizOriginY:nr,id:null,ideographic:nr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nr,k:nr,k1:nr,k2:nr,k3:nr,k4:nr,kernelMatrix:no,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nr,overlineThickness:nr,paintOrder:null,panose1:null,path:null,pathLength:nr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nl,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nr,pointsAtY:nr,pointsAtZ:nr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:no,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:no,rev:no,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:no,requiredFeatures:no,requiredFonts:no,requiredFormats:no,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nr,specularExponent:nr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nr,strikethroughThickness:nr,string:null,stroke:null,strokeDashArray:no,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nr,strokeOpacity:nr,strokeWidth:null,style:null,surfaceScale:nr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:no,tabIndex:nr,tableValues:null,target:null,targetX:nr,targetY:nr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:no,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nr,underlineThickness:nr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nr,values:null,vAlphabetic:nr,vMathematical:nr,vectorEffect:null,vHanging:nr,vIdeographic:nr,version:null,vertAdvY:nr,vertOriginX:nr,vertOriginY:nr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nw}),nN=nb({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),nE=nb({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nj}),nP=nb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),nI=nv([nk,nS,nN,nE,nP],"html"),nT=nv([nk,nC,nN,nE,nP],"svg");var nD=e.i(63185);let nM=nR("end"),nA=nR("start");function nR(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nL(e){return e&&"object"==typeof e?"position"in e||"type"in e?nO(e.position):"start"in e||"end"in e?nO(e):"line"in e||"column"in e?nz(e):"":""}function nz(e){return nF(e&&e.line)+":"+nF(e&&e.column)}function nO(e){return nz(e&&e.start)+"-"+nz(e&&e.end)}function nF(e){return e&&"number"==typeof e?e:1}class n_ extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",l={},i=!1;if(t&&(l="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!l.cause&&e&&(i=!0,r=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?l.ruleId=n:(l.source=n.slice(0,e),l.ruleId=n.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){const e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=nL(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}n_.prototype.file="",n_.prototype.name="",n_.prototype.reason="",n_.prototype.message="",n_.prototype.stack="",n_.prototype.column=void 0,n_.prototype.line=void 0,n_.prototype.ancestors=void 0,n_.prototype.cause=void 0,n_.prototype.fatal=void 0,n_.prototype.place=void 0,n_.prototype.ruleId=void 0,n_.prototype.source=void 0;let nB={}.hasOwnProperty,nH=new Map,nU=/[A-Z]/g,nq=new Set(["table","tbody","thead","tfoot","tr"]),nV=new Set(["td","th"]),nK="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nG(e,t,n){var r,l,i,o,a,s,u,c,d;let p,f,h,m,g,x,y,v,b,k,w;return"element"===t.type?(r=e,l=t,i=n,f=p=r.schema,"svg"===l.tagName.toLowerCase()&&"html"===p.space&&(r.schema=nT),r.ancestors.push(l),h=nQ(r,l.tagName,!1),m=function(e,t){let n,r,l={};for(r in t.properties)if("children"!==r&&nB.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=nd(t),r=t,l=t8;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nh.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nf,ng);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nf.test(e)){let n=e.replace(np,nm);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=nc}return new l(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var l;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(l=n)[l.length-1]?[...l,""]:l).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,nD.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new n_("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=nK+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)nB.call(e,t)&&(n[function(e){let t=e.replace(nU,nJ);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?nx[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,o]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&nV.has(t.tagName)?n=o:l[r]=o}}return n&&((l.style||(l.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),l}(r,l),g=nX(r,l),nq.has(l.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&t9(e.value):t9(e))})),n$(r,m,h,l),nW(m,g),r.ancestors.pop(),r.schema=p,r.create(l,h,m,i)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return t0("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}nY(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,y=x=o.schema,"svg"===a.name&&"html"===x.space&&(o.schema=nT),o.ancestors.push(a),v=null===a.name?o.Fragment:nQ(o,a.name,!0),b=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t0("ExpressionStatement"===t.type);let l=t.expression;t0("ObjectExpression"===l.type);let i=l.properties[0];t0("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else nY(e,t.position);else{let l,i=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t0("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else nY(e,t.position);else l=null===r.value||r.value;n[i]=l}return n}(o,a),k=nX(o,a),n$(o,b,v,a),nW(b,k),o.ancestors.pop(),o.schema=x,o.create(a,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nY(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,nW(w={},nX(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function n$(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nW(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nX(e,t){let n=[],r=-1,l=e.passKeys?new Map:nH;for(;++r<t.children.length;){let i,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=l.get(e)||0;i=e+"-"+t,l.set(e,t+1)}}let a=nG(e,o,i);void 0!==a&&n.push(a)}return n}function nQ(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),l=-1;for(;++l<n.length;){let t=t3(n[l])?{type:"Identifier",name:n[l]}:{type:"Literal",value:n[l]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(l&&"Literal"===t.type),optional:!1}:t}t0(e,"always a result"),r=e}else r=t3(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return nB.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);nY(e)}function nY(e,t){let n=new n_("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nK+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nJ(e){return"-"+e.toLowerCase()}let nZ={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},n0={};function n1(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return n2(e.children,t,n)}return Array.isArray(e)?n2(e,t,n):""}function n2(e,t,n){let r=[],l=-1;for(;++l<e.length;)r[l]=n1(e[l],t,n);return r.join("")}function n5(e,t,n,r){let l,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(l=Array.from(r)).unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)(l=r.slice(o,o+1e4)).unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function n4(e,t){return e.length>0?(n5(e,e.length,0,t),e):t}let n3={}.hasOwnProperty,n6=rs(/[A-Za-z]/),n9=rs(/[\dA-Za-z]/),n8=rs(/[#-'*+\--9=?A-Z^-~]/);function n7(e){return null!==e&&(e<32||127===e)}let re=rs(/\d/),rt=rs(/[\dA-Fa-f]/),rn=rs(/[!-/:-@[-`{-~]/);function rr(e){return null!==e&&e<-2}function rl(e){return null!==e&&(e<0||32===e)}function ri(e){return -2===e||-1===e||32===e}let ro=rs(/\p{P}|\p{S}/u),ra=rs(/\s/);function rs(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ru(e,t,n,r){let l=r?r-1:1/0,i=0;return function(r){return ri(r)?(e.enter(n),function r(o){return ri(o)&&i++<l?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let rc={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return rr(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},rd={tokenize:function(e){let t,n,r,l=this,i=[],o=0;return a;function a(t){if(o<i.length){let n=i[o];return l.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,l.containerState._closeFlow){let n;l.containerState._closeFlow=void 0,t&&x();let r=l.events.length,i=r;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}g(o);let a=r;for(;a<l.events.length;)l.events[a][1].end={...n},a++;return n5(l.events,i+1,0,l.events.slice(r)),l.events.length=a,u(e)}return a(e)}function u(n){if(o===i.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);l.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(rp,c,d)(n)}function c(e){return t&&x(),g(o),p(e)}function d(e){return l.parser.lazy[l.now().line]=o!==i.length,r=l.now().offset,h(e)}function p(t){return l.containerState={},e.attempt(rp,f,h)(t)}function f(e){return o++,i.push([l.currentConstruct,l.containerState]),p(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return rr(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,l.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,i){let a=l.sliceStream(e);if(i&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),l.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let a=l.events.length,s=a;for(;s--;)if("exit"===l.events[s][0]&&"chunkFlow"===l.events[s][1].type){if(e){n=l.events[s][1].end;break}e=!0}for(g(o),i=a;i<l.events.length;)l.events[i][1].end={...n},i++;n5(l.events,s+1,0,l.events.slice(a)),l.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];l.containerState=t[1],t[0].exit.call(l,e)}i.length=t}function x(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},rp={tokenize:function(e,t,n){return ru(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},rf={partial:!0,tokenize:function(e,t,n){return function(t){return ri(t)?ru(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||rr(e)?t(e):n(e)}}};class rh{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&rm(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),rm(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rm(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);rm(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);rm(this.left,t.reverse())}}}function rm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function rg(e){let t,n,r,l,i,o,a,s={},u=-1,c=new rh(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,l=e.get(t)[1],i=e.get(t)[2],o=t-1,a=[],s=l._tokenizer;!s&&(s=i.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},p=-1,f=l,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),!f._tokenizer&&(n=i.sliceStream(f),f.next||n.push(null),r&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=l;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(l=c.get(r))[1].type||"lineEndingBlank"===l[1].type)"enter"===l[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),l[1].type="lineEnding",n=r);else if("linePrefix"===l[1].type||"listItemIndent"===l[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(i=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,i))}}return n5(e,0,1/0,c.slice(0)),!a}let rx={resolve:function(e){return rg(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?l(t):rr(t)?e.check(ry,i,l)(t):(e.consume(t),r)}function l(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},ry={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,l,"linePrefix")};function l(l){if(null===l||rr(l))return n(l);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}},rv={tokenize:function(e){let t=this,n=e.attempt(rf,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ru(e,e.attempt(this.parser.constructs.flow,r,e.attempt(rx,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},rb={resolveAll:rS()},rk=rj("string"),rw=rj("text");function rj(e){return{resolveAll:rS("text"===e?rC:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,o);return i;function i(e){return s(e)?l(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),l(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],l=-1;if(t)for(;++l<t.length;){let e=t[l];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function rS(e){return function(t,n){let r,l=-1;for(;++l<=t.length;)void 0===r?t[l]&&"data"===t[l][1].type&&(r=l,l++):t[l]&&"data"===t[l][1].type||(l!==r+2&&(t[r][1].end=t[l-1][1].end,t.splice(r+2,l-r-2),l=r+2),r=void 0);return e?e(t,n):t}}function rC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,l=e[n-1][1],i=t.sliceStream(l),o=i.length,a=-1,s=0;for(;o--;){let e=i[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:l.start._bufferIndex+a,_index:l.start._index+o,line:l.end.line,column:l.end.column-s,offset:l.end.offset-s},end:{...l.end}};l.end={...i.start},l.start.offset===l.end.offset?Object.assign(l,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function rN(e){return null===e||rl(e)||ra(e)?1:ro(e)?2:void 0}function rE(e,t,n){let r=[],l=-1;for(;++l<e.length;){let i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let rP={name:"attention",resolveAll:function(e,t){let n,r,l,i,o,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};rI(d,-a),rI(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[c][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=n4(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=n4(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),s=n4(s,rE(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=n4(s,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=n4(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,n5(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,l=this.previous,i=rN(l);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=rN(a),c=!u||2===u&&i||r.includes(a),d=!i||2===i&&u||r.includes(l);return s._open=!!(42===n?c:c&&(i||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function rI(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let rT={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return ri(t)?ru(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(rT,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),l}return n(t)};function l(n){return ri(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},rD={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return rn(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},rM=document.createElement("i");function rA(e){let t="&"+e+";";rM.innerHTML=t;let n=rM.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let rR={name:"characterReference",tokenize:function(e,t,n){let r,l,i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,l=n9,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=rt,u):(e.enter("characterReferenceValue"),r=7,l=re,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return l!==n9||rA(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return l(a)&&o++<r?(e.consume(a),u):n(a)}}},rL={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rz={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,l=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),ri(t)?ru(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(l){return l===r?(i++,e.consume(l),t):i>=a?(e.exit("codeFencedFenceSequence"),ri(l)?ru(e,u,"whitespace")(l):u(l)):n(l)}(t)):n(t)}function u(r){return null===r||rr(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var i;let u;return i=t,o=(u=l.events[l.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(l){return l===r?(a++,e.consume(l),t):a<3?n(l):(e.exit("codeFencedFenceSequence"),ri(l)?ru(e,s,"whitespace")(l):s(l))}(i)};function s(i){return null===i||rr(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(rL,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rr(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(l)):ri(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ru(e,u,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function u(t){return null===t||rr(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rr(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(l)):96===l&&l===r?n(l):(e.consume(l),t)}(t))}function c(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&ri(t)?ru(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||rr(t)?e.check(rL,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||rr(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},rO={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),ru(e,l,"linePrefix",5)(t)};function l(t){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function t(n){return null===n?i(n):rr(n)?e.attempt(rF,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||rr(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},rF={partial:!0,tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):rr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):ru(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):rr(e)?l(e):n(e)}}};function r_(e,t,n,r,l,i,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(l),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||n7(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||rr(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(l){return!c&&(null===l||41===l||rl(l))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(l)):c<u&&40===l?(e.consume(l),c++,h):41===l?(e.consume(l),c--,h):null===l||32===l||40===l||n7(l)?n(l):(e.consume(l),92===l?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function rB(e,t,n,r,l,i){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(l),e.consume(t),e.exit(l),e.enter(i),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(l),e.consume(d),e.exit(l),e.exit(r),t):rr(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||rr(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!ri(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function rH(e,t,n,r,l,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===o?(e.exit(i),a(o)):null===t?n(t):rr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||rr(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function rU(e,t){let n;return function r(l){return rr(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):ri(l)?ru(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function rq(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rV={partial:!0,tokenize:function(e,t,n){return function(t){return rl(t)?rU(e,r)(t):n(t)};function r(t){return rH(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return ri(t)?ru(e,i,"whitespace")(t):i(t)}function i(e){return null===e||rr(e)?t(e):n(e)}}},rK=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rG=["pre","script","style","textarea"],r$={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rf,t,n)}}},rW={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return rr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n(t)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rX={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&n5(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,l,i,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(l){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(l=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[l-2][1].start}};return i=n4(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),i=n4(i,[["enter",c,t]]),i=n4(i,rE(t.parser.constructs.insideSpan.null,e.slice(r+a+4,l-3),t)),i=n4(i,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),i=n4(i,e.slice(l+1)),i=n4(i,[["exit",s,t]]),n5(e,r,e.length,i),e},tokenize:function(e,t,n){let r,l,i=this,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(t){return r?r._inactive?c(t):(l=i.parser.defined.includes(rq(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(rQ,u,l?u:c)(t):91===t?e.attempt(rY,u,l?s:c)(t):l?u(t):c(t)}function s(t){return e.attempt(rJ,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},rQ={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return rl(t)?rU(e,l)(t):l(t)}function l(t){return 41===t?u(t):r_(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return rl(t)?rU(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?rH(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return rl(t)?rU(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rY={tokenize:function(e,t,n){let r=this;return function(t){return rB.call(r,e,l,i,"reference","referenceMarker","referenceString")(t)};function l(e){return r.parser.defined.includes(rq(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},rJ={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},rZ={name:"labelStartImage",resolveAll:rX.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),l};function l(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},r0={name:"labelStartLink",resolveAll:rX.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),l};function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},r1={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ru(e,t,"linePrefix")}}},r2={name:"thematicBreak",tokenize:function(e,t,n){let r,l=0;return function(i){var o;return e.enter("thematicBreak"),r=o=i,function i(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),l++,t):(e.exit("thematicBreakSequence"),ri(n)?ru(e,i,"whitespace")(n):i(n))}(o)):l>=3&&(null===o||rr(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},r5={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(rf,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ru(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!ri(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r3,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,ru(e,e.attempt(r5,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,o=0;return function(t){let l=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===l?!r.containerState.marker||t===r.containerState.marker:re(t)){if(r.containerState.type||(r.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===t||45===t?e.check(r2,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return re(l)&&++o<10?(e.consume(l),t):(!r.interrupt||o<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):n(l)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rf,r.interrupt?n:s,e.attempt(r4,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return ri(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},r4={partial:!0,tokenize:function(e,t,n){let r=this;return ru(e,function(e){let l=r.events[r.events.length-1];return!ri(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},r3={partial:!0,tokenize:function(e,t,n){let r=this;return ru(e,function(e){let l=r.events[r.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},r6={name:"setextUnderline",resolveTo:function(e,t){let n,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end={...e[l][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,l=this;return function(t){var o;let a,s=l.events.length;for(;s--;)if("lineEnding"!==l.events[s][1].type&&"linePrefix"!==l.events[s][1].type&&"content"!==l.events[s][1].type){a="paragraph"===l.events[s][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),ri(n)?ru(e,i,"lineSuffix")(n):i(n))}(o)):n(t)};function i(r){return null===r||rr(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,l=this;return function(t){var r;return e.enter("definition"),r=t,rB.call(l,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=rq(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return rl(t)?rU(e,a)(t):a(t)}function a(t){return r_(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(rV,u,u)(t)}function u(t){return ri(t)?ru(e,c,"whitespace")(t):c(t)}function c(i){return null===i||rr(i)?(e.exit("definition"),l.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:r5,43:r5,45:r5,48:r5,49:r5,50:r5,51:r5,52:r5,53:r5,54:r5,55:r5,56:r5,57:r5,62:rT},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,l=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),l-2>i&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},n5(e,i,l-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){var i;return e.enter("atxHeading"),i=l,e.enter("atxHeadingSequence"),function l(i){return 35===i&&r++<6?(e.consume(i),l):null===i||rl(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||rr(r)?(e.exit("atxHeading"),t(r)):ri(r)?ru(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||rl(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:r2,45:[r6,r2],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,l,i,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),l=!0,f):63===o?(e.consume(o),r=3,s.interrupt?t:M):n6(o)?(e.consume(o),i=String.fromCharCode(o),h):n(o)}function c(l){return 45===l?(e.consume(l),r=2,d):91===l?(e.consume(l),r=5,o=0,p):n6(l)?(e.consume(l),r=4,s.interrupt?t:M):n(l)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:M):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(o++)?(e.consume(r),o===l.length)?s.interrupt?t:S:p:n(r)}function f(t){return n6(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||rl(o)){let a=47===o,u=i.toLowerCase();return!a&&!l&&rG.includes(u)?(r=1,s.interrupt?t(o):S(o)):rK.includes(i.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):S(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):l?function t(n){return ri(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||n9(o)?(e.consume(o),i+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||n6(t)?(e.consume(t),x):ri(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||n9(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):ri(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):ri(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||rl(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,k):null===t||rr(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||ri(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||rr(t)?S(t):ri(t)?(e.consume(t),j):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),A):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),D):rr(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(r$,R,C)(t)):null===t||rr(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),S)}function C(t){return e.check(rW,N,R)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||rr(t)?C(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),M):S(t)}function I(t){return 47===t?(e.consume(t),i="",T):S(t)}function T(t){if(62===t){let n=i.toLowerCase();return rG.includes(n)?(e.consume(t),A):S(t)}return n6(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),T):S(t)}function D(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),A):45===t&&2===r?(e.consume(t),M):S(t)}function A(t){return null===t||rr(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),A)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:r6,95:r2,96:rz,126:rz},"flowInitial",0,{[-2]:rO,[-1]:rO,32:rO},"insideSpan",0,{null:[rP,rb]},"string",0,{38:rR,92:rD},"text",0,{[-5]:r1,[-4]:r1,[-3]:r1,33:rZ,38:rR,42:rP,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return n6(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(t){return 43===t||45===t||46===t||n9(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||n9(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||n7(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):n8(t)?(e.consume(t),a):n(t)}function s(l){return n9(l)?function l(i){return 46===i?(e.consume(i),r=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||n9(i))&&r++<63){let n=45===i?t:l;return e.consume(i),n}return n(i)}(i)}(l):n(l)}}},{name:"htmlText",tokenize:function(e,t,n){let r,l,i,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):n6(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),l=0,f):n6(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):rr(t)?(i=c,T(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?I(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):rr(t)?(i=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?I(t):rr(t)?(i=x,T(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):rr(t)?(i=y,T(t)):(e.consume(t),y)}function v(e){return 62===e?I(e):y(e)}function b(t){return n6(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||n9(t)?(e.consume(t),k):function t(n){return rr(n)?(i=t,T(n)):ri(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||n9(t)?(e.consume(t),w):47===t||62===t||rl(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),I):58===t||95===t||n6(t)?(e.consume(t),S):rr(t)?(i=j,T(t)):ri(t)?(e.consume(t),j):I(t)}function S(t){return 45===t||46===t||58===t||95===t||n9(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),C):rr(n)?(i=t,T(n)):ri(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):rr(t)?(i=C,T(t)):ri(t)?(e.consume(t),C):(e.consume(t),E)}function N(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):rr(t)?(i=N,T(t)):(e.consume(t),N)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||rl(t)?j(t):(e.consume(t),E)}function P(e){return 47===e||62===e||rl(e)?j(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return ri(t)?ru(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),i(t)}}}],91:r0,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return rr(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},rD],93:rX,95:rP,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t<r;)if("codeTextData"===e[t][1].type){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(t=l-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,l,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(l=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(l.type="codeTextData",a(o))}(s)):rr(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||rr(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],19210);var r9=e.i(19210);let r8=/[\0\t\n\r]/g;function r7(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let le=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return r7(n.slice(t?2:1),t?16:10)}return rA(n)||e}let ln={}.hasOwnProperty;function lr(e){return{line:e.line,column:e.column,offset:e.offset}}function ll(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+nL({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nL({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+nL({start:t.start,end:t.end})+") is still open")}function li(e){let t=this;t.parser=function(n){var r,l;let i,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(f,l),codeText:r(function(){return{type:"inlineCode",value:""}},l),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,l),htmlFlowData:u,htmlText:r(g,l),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:l,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=r7(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=rA(n);let l=this.stack[this.stack.length-1];l.value+=t},characterReference:function(e){this.stack.pop().position.end=lr(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rq(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(le,lt),n.identifier=rq(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=lr(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rq(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let l=n[r];Array.isArray(l)?e(t,l):function(e,t){let n;for(n in t)if(ln.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,l)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:i,exit:a,buffer:l,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,l,i,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||i||(i=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(l=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",l=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!l||i<l)&&(r._spread=!0),r.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let l={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=l,e.splice(a,0,["enter",l,t[2]]),a++,n++,i=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ln.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ll).call(o,void 0,e[0])}for(r.position={start:lr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:lr(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ll).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nL({start:e.start,end:e.end})+"): it’s not open");n.position.end=lr(e.end)}function s(){var e;return e=this.stack.pop(),n1(e,"boolean"!=typeof n0.includeImageAlt||n0.includeImageAlt,"boolean"!=typeof n0.includeHtml||n0.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:lr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lr(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!rg(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,l=(n3.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){n3.call(l,r)||(l[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);n5(e,0,0,r)}(l[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r9,...(e||{}).extensions||[]]),content:n(rc),defined:[],document:n(rd),flow:n(rv),lazy:{},string:n(rk),text:n(rw)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},l={},i=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){rr(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){l[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,l=[];for(;++r<e.length;){let i,o=e[r];if("string"==typeof o)i=o;else switch(o){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(o)}n=-2===o,l.push(i)}return l.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=n4(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=rE(i,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,l=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;if(r===i)n=[e[r].slice(l,o)];else{if(n=e.slice(r,i),l>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:l,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:l,offset:i}}function f(e,t){t.restore()}function h(e,t){return function(n,l,i){var o;let c,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?i:x(e[d])}function x(e){return function(n){let l,i,o,c,d;return(l=p(),i=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=l,u.previous=i,u.currentConstruct=o,u.events.length=c,a=d,g()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(f,h),l}function v(e){return(h.restore(),++d<c.length)?x(c[d]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&n5(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}(t,e,n)}}})(l).document().write((o=1,a="",s=!0,function(e,t,n){let r,l,u,c,d,p=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(r8.lastIndex=u,c=(r=r8.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),u<c&&(p.push(e.slice(u,c)),o+=c-u),d){case 0:p.push(65533),o++;break;case 9:for(l=4*Math.ceil(o/4),p.push(-2);o++<l;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:i=!0,o=1}u=c+1}return n&&(i&&p.push(-5),a&&p.push(a),p.push(null)),p})(n,r,!0))))}}let lo="object"==typeof self?self:globalThis,la=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=l=>{if(t.has(l))return t.get(l);let[i,o]=e[l];switch(i){case 0:case -1:return n(o,l);case 1:{let e=n([],l);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},l);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),l);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),l)}case 5:{let e=n(new Map,l);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,l);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new lo[e](t),l)}case 8:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new lo[i](o),l)})(0)},{toString:ls}={},{keys:lu}=Object,lc=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=ls.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ld=([e,t])=>0===e&&("function"===t||"symbol"===t),lp=(e,{json:t,lossy:n}={})=>{var r,l,i;let o,a,s=[];return(r=!(t||n),l=!!t,i=new Map,o=(e,t)=>{let n=s.push(e)-1;return i.set(t,n),n},a=e=>{if(i.has(e))return i.get(e);let[t,n]=lc(e);switch(t){case 0:{let l=e;switch(n){case"bigint":t=8,l=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);l=null;break;case"undefined":return o([-1],e)}return o([t,l],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],l=o([t,r],e);for(let t of e)r.push(a(t));return l}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(l&&"toJSON"in e)return a(e.toJSON());let i=[],s=o([t,i],e);for(let t of lu(e))(r||!ld(lc(e[t])))&&i.push([a(t),a(e[t])]);return s}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],l=o([t,n],e);for(let[t,l]of e)(r||!(ld(lc(t))||ld(lc(l))))&&n.push([a(t),a(l)]);return l}case 6:{let n=[],l=o([t,n],e);for(let t of e)(r||!ld(lc(t)))&&n.push(a(t));return l}}let{message:s}=e;return o([t,{name:n,message:s}],e)})(e),s},lf="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?la(lp(e,t)):structuredClone(e):(e,t)=>la(lp(e,t));function lh(e){let t=[],n=-1,r=0,l=0;for(;++n<e.length;){let i=e.charCodeAt(n),o="";if(37===i&&n9(e.charCodeAt(n+1))&&n9(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function lm(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lg(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lx=function(e){var t,n;if(null==e)return lv;if("function"==typeof e)return ly(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lx(e[n]);return ly(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ly(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ly(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ly(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function lv(){return!0}let lb=[];function lk(e,t,n,r){var l,i,o;let a,s,u,c,d,p;"function"==typeof t&&"function"!=typeof n?(s=void 0,u=t,a=n):(s=t,u=n,a=r),l=s,i=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return u(e,r,n)},o=a,"function"==typeof l&&"function"!=typeof i?(o=i,i=l):c=l,d=lx(c),p=o?-1:1,(function e(t,n,r){let a=t&&"object"==typeof t?t:{};if("string"==typeof a.type){let e="string"==typeof a.tagName?a.tagName:"string"==typeof a.name?a.name:void 0;Object.defineProperty(s,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return s;function s(){var a;let s,u,c,f=lb;if((!l||d(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(a=i(t,r))?a:"number"==typeof a?[!0,a]:null==a?lb:[a])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(u=(o?t.children.length:-1)+p,c=r.concat(t);u>-1&&u<t.children.length;){if(!1===(s=e(t.children[u],u,c)())[0])return s;u="number"==typeof s[1]?s[1]:u+p}return f}})(e,void 0,[])()}function lw(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let l=e.all(t),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift({type:"text",value:"["});let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push({type:"text",value:r}),l}function lj(e){let t=e.spread;return null==t?e.children.length>1:t}function lS(e,t,n){let r=0,l=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(l-1);for(;9===t||32===t;)l--,t=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let lC={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),i=lh(l.toLowerCase()),o=e.footnoteOrder.indexOf(l),a=e.footnoteCounts.get(l);void 0===a?(a=0,e.footnoteOrder.push(l),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(l,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lw(e,t);let l={src:lh(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:lh(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lw(e,t);let l={href:lh(r.url||"")};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:lh(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),l=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lj(n[r])}return t}(n):lj(t),i={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(l||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||l?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(l||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),l=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++l<r.length;){let e=r[l];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),l=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),l.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=nA(t.children[1]),o=nM(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),l.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,l=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=i?i[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:l,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),l=0,i=[];for(;r;)i.push(lS(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(lS(t.slice(l),l>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lN,yaml:lN,definition:lN,footnoteDefinition:lN};function lN(){}let lE={}.hasOwnProperty,lP={};function lI(e,t){e.position&&(t.position=function(e){let t=nA(e),n=nM(e);if(t&&n)return{start:t,end:n}}(e))}function lT(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&l&&Object.assign(n.properties,lf(l)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lD(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function lM(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function lA(e,t){let n,r,l,i,o=(n=t||lP,r=new Map,l=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let l=i.one(n[r],e);if(l){if(r&&"break"===n[r-1].type&&(Array.isArray(l)||"text"!==l.type||(l.value=lM(l.value)),!Array.isArray(l)&&"element"===l.type)){let e=l.children[0];e&&"text"===e.type&&(e.value=lM(e.value))}Array.isArray(l)?t.push(...l):t.push(l)}}}return t},applyData:lT,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lC,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(lE.call(i.handlers,n)&&r)return r(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=lf(n);return r.children=i.all(e),r}return lf(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lE.call(n,"hProperties")||lE.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(i,e,t)},options:n,patch:lI,wrap:lD},lk(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:l,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),i),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lm,r=e.options.footnoteBackLabel||lg,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let l=e.footnoteById.get(e.footnoteOrder[s]);if(!l)continue;let i=e.all(l),o=String(l.identifier).toUpperCase(),u=lh(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(l,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...lf(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(t0("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function lR(e,t){return e&&"run"in e?async function(n,r){let l=lA(n,{file:r,...t});await e.run(l,r)}:function(n,r){return lA(n,{file:r,...e||t})}}function lL(e){if(e)throw e}var lz=e.i(75609);function lO(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let lF=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');lU(e);let r=0,l=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1);return l<0?"":e.slice(r,l)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(l=i):(a=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},l_=function(e){let t;if(lU(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},lB=function(e){let t;lU(e);let n=e.length,r=-1,l=0,i=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},lH=function(...e){var t;let n,r,l,i=-1;for(;++i<e.length;)lU(e[i]),e[i]&&(l=void 0===l?e[i]:l+"/"+e[i]);return void 0===l?".":(lU(t=l),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,l="",i=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(l.length<2||2!==i||46!==l.codePointAt(l.length-1)||46!==l.codePointAt(l.length-2)){if(l.length>2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=s,a=0;continue}}else if(l.length>0){l="",i=0,o=s,a=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,s):l=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return l}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function lU(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function lq(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let lV=["history","path","basename","stem","extname","dirname"];class lK{constructor(e){let t,n;t=e?lq(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lV.length;){const e=lV[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)lV.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?lF(this.path):void 0}set basename(e){l$(e,"basename"),lG(e,"basename"),this.path=lH(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?l_(this.path):void 0}set dirname(e){lW(this.basename,"dirname"),this.path=lH(e||"",this.basename)}get extname(){return"string"==typeof this.path?lB(this.path):void 0}set extname(e){if(lG(e,"extname"),lW(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=lH(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lq(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!lq(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),l$(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?lF(this.path,this.extname):void 0}set stem(e){l$(e,"stem"),lG(e,"stem"),this.path=lH(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new n_(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function lG(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function l$(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lW(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let lX=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},lQ={}.hasOwnProperty;class lY extends lX{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function l(i,...o){let a=e[++n],s=-1;if(i)return void r(i);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let i,o=e.length>t.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...l){n||(n=!0,t(e,...l))}function l(e){r(null,e)}})(a,l)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new lY,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,lz.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(l1("data",this.frozen),this.namespace[e]=t,this):lQ.call(this.namespace,e)&&this.namespace[e]||void 0:e?(l1("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=l4(e),n=this.parser||this.Parser;return lZ("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lZ("process",this.parser||this.Parser),l0("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,l){let i=l4(e),o=n.parse(i);function a(e,n){e||!n?l(e):r?r(n):(t0(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,i,function(e,t,r){var l,i;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(l=o)||(i=l)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),lZ("processSync",this.parser||this.Parser),l0("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,lL(e),t=r}),l5("processSync","process",n),t0(t,"we either bailed on an error or have a tree"),t}run(e,t,n){l2(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?l(void 0,n):new Promise(l);function l(l,i){t0("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=l4(t);r.run(e,o,function(t,r,o){let a=r||e;t?i(t):l?l(a):(t0(n,"`done` is defined if `resolve` is not"),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){lL(e),n=t,r=!0}),l5("runSync","run",r),t0(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=l4(t),r=this.compiler||this.Compiler;return l0("stringify",r),l2(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(l1("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?i(e):l(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function l(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=(0,lz.default)(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else l(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,l=-1;for(;++r<n.length;)if(n[r][0]===e){l=r;break}if(-1===l)n.push([e,...t]);else if(t.length>0){let[r,...i]=t,o=n[l][1];lO(o)&&lO(r)&&(r=(0,lz.default)(!0,o,r)),n[l]=[e,r,...i]}}}}let lJ=new lY().freeze();function lZ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function l0(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function l1(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l2(e){if(!lO(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function l5(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function l4(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new lK(e)}let l3=[],l6={allowDangerousHtml:!0},l9=/^(https?|ircs?|mailto|xmpp)$/i,l8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function l7(e){var n;let r,l,i,o,a,s=(r=(n=e).rehypePlugins||l3,l=n.remarkPlugins||l3,i=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...l6}:l6,lJ().use(li).use(l).use(lR,i).use(r)),u=(o=e.children||"",a=new lK,"string"==typeof o?a.value=o:t1("Unexpected value `"+o+"` for `children` prop, expected `string`"),a);return function(e,n){let r=n.allowedElements,l=n.allowElement,i=n.components,o=n.disallowedElements,a=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||ie;for(let e of l8)Object.hasOwn(n,e.from)&&t1("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return r&&o&&t1("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),lk(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nZ)if(Object.hasOwn(nZ,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nZ[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let i=r?!r.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&l&&"number"==typeof t&&(i=!l(e,t,n)),i&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,l,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,l,i){let o=Array.isArray(l.children),a=nA(e);return r(t,l,i,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");l=t.jsx,i=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?i:l;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?nT:nI,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=nG(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:i,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function ie(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==n&&t>n||-1!==r&&t>r||l9.test(e.slice(0,t))?e:""}let it=(0,s.default)("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]),ir=(0,s.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),il={p:({children:e})=>(0,t.jsx)("p",{className:"text-muted-foreground mb-2 text-xs leading-relaxed last:mb-0",children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"text-foreground font-semibold",children:e}),em:({children:e})=>(0,t.jsx)("em",{className:"italic",children:e}),code:({children:e,className:n})=>n?(0,t.jsx)("code",{className:`${n} text-[11px]`,children:e}):(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e}),pre:({children:e})=>(0,t.jsx)("pre",{className:"bg-muted my-2 overflow-x-auto rounded-lg border p-3",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"text-muted-foreground mb-2 list-disc space-y-1 pl-4 text-xs",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"text-muted-foreground mb-2 list-decimal space-y-1 pl-4 text-xs",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),a:({children:e,href:n})=>(0,t.jsx)("a",{href:n,className:"text-primary underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:e})};function ii({decision:e,index:r}){let[l,i]=(0,n.useState)(!1),o=(0,w.useSoundAction)("expand"),a=(0,w.useSoundAction)("collapse");return(0,t.jsxs)("div",{className:"border-border rounded-lg border",children:[(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:r+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-xs",children:e.chosen})]})]}),"decisionName"in e&&e.decisionName?(0,t.jsx)(T.Badge,{variant:"secondary",className:"bg-primary/10 text-primary shrink-0",children:e.decisionName}):null]}),e.rationale?(0,t.jsx)(l7,{components:il,children:e.rationale}):null]}),e.rejected.length>0?(0,t.jsxs)("div",{className:"border-border border-t",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{l?a.play():o.play(),i(e=>!e)},className:"text-muted-foreground hover:bg-muted/50 flex w-full items-center gap-1.5 px-4 py-3 text-xs font-medium transition-colors",children:[(0,t.jsx)(tz,{className:`h-3.5 w-3.5 transition-transform ${l?"rotate-90":""}`}),(0,t.jsx)(ir,{className:"h-3.5 w-3.5"}),"Other Options Considered (",e.rejected.length,")"]}),l?(0,t.jsx)("div",{className:"space-y-1.5 px-4 pb-3",children:e.rejected.map(e=>(0,t.jsx)("div",{className:"bg-primary/5 rounded-md px-3 py-2",children:(0,t.jsx)("span",{className:"text-foreground text-xs",children:e})},e))}):null]}):null]})}function io({data:e}){let{summary:n,decisions:r}=e;return 0===r.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Technical Implementation Plan Review"}),n?(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:n}):null]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)(it,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Technical Decisions"})]}),r.map((e,n)=>(0,t.jsx)(ii,{decision:e,index:n},e.title))]})}let ia=(0,s.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);function is({item:e,index:n}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsx)("div",{className:"space-y-2 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.question}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:e.selectedOption}),e.wasRecommended?(0,t.jsx)(T.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null]})]})]})})})}function iu({data:e}){let{questions:n}=e;return 0===n.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(ia,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Product Decisions"})]}),n.map((e,n)=>(0,t.jsx)(is,{item:e,index:n},e.question))]})}function ic({techData:e,productData:n,onApprove:r,onReject:l,isProcessing:o=!1,isRejecting:a=!1,chatInput:s,onChatInputChange:u}){return 0===e.decisions.length?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)(tZ.Tabs,{defaultValue:"technical",className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"shrink-0 px-4 pt-4",children:(0,t.jsxs)(tZ.TabsList,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(tZ.TabsTrigger,{value:"product",children:"Product"}),(0,t.jsx)(tZ.TabsTrigger,{value:"technical",children:"Technical"})]})}),(0,t.jsx)(tZ.TabsContent,{value:"product",className:"mt-0 flex-1 overflow-y-auto",children:null===n?(0,t.jsx)("div",{className:"flex items-center justify-center p-8","data-testid":"product-loading",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):n?(0,t.jsx)(iu,{data:n}):(0,t.jsx)("p",{className:"text-muted-foreground p-4 text-center text-sm",children:"No product decisions available."})}),(0,t.jsx)(tZ.TabsContent,{value:"technical",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(io,{data:e})})]}),(0,t.jsx)(tW,{onReject:l,onApprove:r,approveLabel:"Approve Plan",approveIcon:(0,t.jsx)(G.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise the plan...",isProcessing:o,isRejecting:a,chatInput:s,onChatInputChange:u})]})}var id=e.i(28201);let ip=(0,s.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ih=(0,s.default)("file-diff",[["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:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);var im=e.i(49228);let ig=(0,s.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ix({phases:e}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(ir,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Implementation Phases"})]}),(0,t.jsx)("ol",{className:"space-y-2",children:e.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-100 text-[10px] font-bold text-emerald-700",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-medium",children:e.name}),e.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px] leading-relaxed",children:e.description}):null]})]},e.id))})]})})}function iy({data:e,onApprove:n,onReject:r,isProcessing:l=!1,isRejecting:o=!1,chatInput:s,onChatInputChange:c}){let{pr:d,diffSummary:p,phases:f,branch:h,warning:m}=e;return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-emerald-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Merge Review"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:d?"Review the pull request details and approve to merge.":"Review the changes and approve to merge."})]})]}),h?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(im.GitBranch,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)(T.Badge,{variant:"secondary",className:"font-mono text-[11px]",children:h.source}),(0,t.jsx)(ig,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,t.jsx)(T.Badge,{variant:"outline",className:"font-mono text-[11px]",children:h.target})]})}):null,d?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:d.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",d.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(T.Badge,{variant:"outline",className:"text-xs",children:d.status})]}),d.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(_,{status:d.ciStatus})]}):null,d.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:d.commitHash.slice(0,7)})]})]}):null]})}):null,p?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(ih,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Changes"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-3",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:p.filesChanged}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"files"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-green-600",children:["+",p.additions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"additions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-red-600",children:["-",p.deletions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"deletions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:p.commitCount}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"commits"})]})]})]})}):m?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(ip,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:m})]})}):null,f&&f.length>0?(0,t.jsx)(ix,{phases:f}):null]}),(0,t.jsx)(tW,{onReject:r,onApprove:n,approveLabel:"Approve Merge",approveIcon:l?(0,t.jsx)(i.Loader2,{className:"mr-1.5 h-4 w-4 animate-spin"}):(0,t.jsx)(id.GitMerge,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise before merging...",isProcessing:l,isRejecting:o,chatInput:s,onChatInputChange:c})]})}e.i(47506);var iv=e.i(2929),ib=e.i(99045);function ik({view:e}){let a,s=(0,r.useRouter)(),u=(0,w.useSoundAction)("delete"),p=(0,w.useSoundAction)("reject"),[f,T]=(0,n.useState)(e);(0,n.useEffect)(()=>{T(e)},[e]);let A="feature"===f.type||"prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,{events:R}=(0,C.useAgentEventsContext)(),L=(0,n.useRef)(0);(0,n.useEffect)(()=>{if(!A||R.length<=L.current)return;let e=R.slice(L.current);for(let t of(L.current=R.length,e)){if(t.featureId!==A.featureId)continue;let e=(0,ib.mapEventTypeToState)(t.eventType),n=(0,ib.mapPhaseNameToLifecycle)(t.phaseName);ev.current||s.refresh(),T(t=>"feature"!==t.type&&"prd-review"!==t.type&&"tech-review"!==t.type&&"merge-review"!==t.type?t:{...t,node:{...t.node,state:e,...void 0!==n&&{lifecycle:n}}})}},[R,A,s]);let O=(0,r.usePathname)().startsWith("/feature/"),F=(0,n.useCallback)(()=>{s.push("/")},[s]),[_,H]=(0,n.useState)(""),[U,q]=(0,n.useState)(null),[V,K]=(0,n.useState)({}),[G,$]=(0,n.useState)({}),[W,X]=(0,n.useState)(!1),[Q,Y]=(0,n.useState)(null),[J,Z]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(void 0),[en,er]=(0,n.useState)(!1),[el,ei]=(0,n.useState)(null),[eo,ea]=(0,n.useState)(!1),[es,eu]=(0,n.useState)(!1),[ec,ed]=(0,n.useState)(!1),ep=f.type;(0,n.useEffect)(()=>{H("")},[ep]);let ef="prd-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(K({}),$({}),q(null),!ef)return;let e=!1;return X(!0),g(ef).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);if(t.questionnaire){q(t.questionnaire);let e={};for(let n of t.questionnaire.questions){let t=n.options.find(e=>e.recommended);t&&(e[n.id]=t.id)}K(e),$(e)}}}).catch(()=>{e||l.toast.error("Failed to load questionnaire")}).finally(()=>{e||X(!1)}),()=>{e=!0}},[ef]);let eh="tech-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(Y(null),!eh)return;let e=!1;return Z(!0),x(eh).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);t.techDecisions&&Y(t.techDecisions)}}).catch(()=>{e||l.toast.error("Failed to load tech decisions")}).finally(()=>{e||Z(!1)}),()=>{e=!0}},[eh]),(0,n.useEffect)(()=>{if(et(void 0),!eh)return;let e=!1;return er(!0),g(eh).then(t=>{!e&&t.productDecisions&&et(t.productDecisions)}).catch(()=>{}).finally(()=>{e||er(!1)}),()=>{e=!0}},[eh]);let em="merge-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(ei(null),!em)return;let e=!1;return ea(!0),y(em).then(t=>{if(!e){if("error"in t)return void l.toast.error(t.error);ei(t)}}).catch(()=>{e||l.toast.error("Failed to load merge review data")}).finally(()=>{e||ea(!1)}),()=>{e=!0}},[em]);let eg=_.trim().length>0,ex="prd-review"===f.type&&Object.keys(G).some(e=>G[e]!==V[e]),ey=eg||ex,ev=(0,n.useRef)(ey);ev.current=ey;let eb=(0,n.useCallback)(()=>{H(""),K({...G})},[G]),{attemptClose:ek}=(0,j.useGuardedDrawerClose)({open:O,isDirty:ey,onClose:F,onReset:eb}),ew="prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,ej=(0,n.useCallback)(async(e,t,n)=>{if(ew?.featureId){ed(!0);try{let r=await m(ew.featureId,e);if(!r.rejected)return void l.toast.error(r.error??`Failed to reject ${t.toLowerCase()}`);p.play(),H(""),l.toast.success(`${t} rejected — agent re-iterating (iteration ${r.iteration})`),r.iterationWarning&&l.toast.warning(`Iteration ${r.iteration} — consider approving or adjusting feedback to avoid excessive iterations`),F(),n?.()}finally{ed(!1)}}},[ew,F,p]),eS=(0,n.useCallback)(e=>ej(e,"Requirements",()=>K({})),[ej]),eC=(0,n.useCallback)(e=>ej(e,"Plan"),[ej]),eN=(0,n.useCallback)(e=>ej(e,"Merge"),[ej]),eE=(0,n.useCallback)(async e=>{if(!ew?.featureId)return;let t=await h(ew.featureId);t.approved?(H(""),l.toast.success(`${e} approved — agent resuming`),F()):l.toast.error(t.error??`Failed to approve ${e.toLowerCase()}`)},[ew,F]),eP=(0,n.useCallback)(async e=>{let t;if("prd-review"!==f.type)return;if(U){let e=[];for(let[t,n]of Object.entries(V)){let r=U.questions.find(e=>e.id===t),l=r?.options.find(e=>e.id===n);r&&l&&e.push({questionId:r.question,selectedOption:l.label})}t={approved:!0,changedSelections:e}}let n=await h(f.node.featureId,t);n.approved?(H(""),l.toast.success("Requirements approved — agent resuming"),K({}),F()):l.toast.error(n.error??"Failed to approve requirements")},[f,U,V,F]),eI=(0,n.useCallback)(()=>eE("Plan"),[eE]),eT=(0,n.useCallback)(()=>eE("Merge"),[eE]),eD=(0,n.useCallback)(async e=>{eu(!0);try{let t=await (0,v.deleteFeature)(e);if(t.error)return void l.toast.error(t.error);u.play(),l.toast.success("Feature deleted successfully"),s.push("/"),s.refresh()}catch{l.toast.error("Failed to delete feature")}finally{eu(!1)}},[s,u]),eM=A?.repositoryPath&&A?.branch?{repositoryPath:A.repositoryPath,branch:A.branch,specPath:A.specPath}:null,eA=function(e){let[t,r]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[s,u]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[p,f]=(0,n.useState)(null),h=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=h.current,t=m.current,n=g.current;return()=>{e&&clearTimeout(e),t&&clearTimeout(t),n&&clearTimeout(n)}},[]);let x=(0,n.useCallback)(async(t,n,r,l,i)=>{if(e&&!i){l.current&&clearTimeout(l.current),n(!0),r(null);try{let n=await t({repositoryPath:e.repositoryPath,branch:e.branch});if(!n.success){let e=n.error??"An unexpected error occurred";r(e),l.current=setTimeout(()=>r(null),5e3)}}catch(e){r(e instanceof Error?e.message:"An unexpected error occurred"),l.current=setTimeout(()=>r(null),5e3)}finally{n(!1)}}},[e]);return{openInIde:(0,n.useCallback)(()=>x(tQ.openIde,r,u,h,t),[x,t]),openInShell:(0,n.useCallback)(()=>x(tY.openShell,i,d,m,l),[x,l]),openSpecsFolder:(0,n.useCallback)(async()=>{if(e?.specPath&&!o){g.current&&clearTimeout(g.current),a(!0),f(null);try{let t=await (0,tJ.openFolder)(e.specPath);if(!t.success){let e=t.error??"An unexpected error occurred";f(e),g.current=setTimeout(()=>f(null),5e3)}}catch(e){f(e instanceof Error?e.message:"An unexpected error occurred"),g.current=setTimeout(()=>f(null),5e3)}finally{a(!1)}}},[e,o]),ideLoading:t,shellLoading:l,specsLoading:o,ideError:s,shellError:c,specsError:p}}(eM),eR=A?.repositoryPath&&A.branch?{targetId:A.featureId,targetType:"feature",repositoryPath:A.repositoryPath,branch:A.branch}:null,eL=(0,S.useDeployAction)(eR),ez="Booting"===eL.status||"Ready"===eL.status;A&&(a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-header",children:[(0,t.jsx)(P.DrawerTitle,{children:A.name}),A.description?(0,t.jsx)(P.DrawerDescription,{children:A.description}):A.featureId?(0,t.jsx)(P.DrawerDescription,{className:"sr-only",children:A.featureId}):null]}),eM?(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,t.jsx)(tV,{actions:eA,repositoryPath:eM.repositoryPath,showSpecs:!!eM.specPath}),k.featureFlags.envDeploy&&eR?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.TooltipProvider,{children:(0,t.jsxs)(M.Tooltip,{children:[(0,t.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(B.ActionButton,{label:ez?"Stop Dev Server":"Start Dev Server",onClick:ez?eL.stop:eL.deploy,loading:eL.deployLoading||eL.stopLoading,error:!!eL.deployError,icon:ez?d.Square:c.Play,iconOnly:!0,variant:"outline",size:"icon-sm"})})}),(0,t.jsx)(M.TooltipContent,{children:ez?"Stop Dev Server":"Start Dev Server"})]})}),ez?(0,t.jsx)(E.DeploymentStatusBadge,{status:eL.status,url:eL.url,targetId:eR?.targetId}):null]}):null,A.featureId?(0,t.jsxs)(z.AlertDialog,{children:[(0,t.jsx)(z.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(I.Button,{variant:"ghost",size:"icon-sm","aria-label":"Delete feature",disabled:es,className:"text-muted-foreground hover:text-destructive ml-auto","data-testid":"feature-drawer-delete",children:es?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(o.Trash2,{className:"size-4"})})}),(0,t.jsxs)(z.AlertDialogContent,{children:[(0,t.jsxs)(z.AlertDialogHeader,{children:[(0,t.jsx)(z.AlertDialogTitle,{children:"Delete feature?"}),(0,t.jsxs)(z.AlertDialogDescription,{children:["This will permanently delete ",(0,t.jsx)("strong",{children:A.name})," (",A.featureId,"). This action cannot be undone.","running"===A.state?(0,t.jsx)(t.Fragment,{children:" This feature has a running agent that will be stopped."}):null]})]}),(0,t.jsxs)(z.AlertDialogFooter,{children:[(0,t.jsx)(z.AlertDialogCancel,{disabled:es,children:"Cancel"}),(0,t.jsx)(z.AlertDialogAction,{variant:"destructive",disabled:es,onClick:()=>eD(A.featureId),children:es?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Deleting…"]}):"Delete"})]})]})]}):null]}):null]}));let eO=null;return"feature"===f.type&&A?eO=(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-status",className:"flex flex-col gap-3 p-4",children:[(0,t.jsx)("div",{className:"text-muted-foreground text-xs font-semibold tracking-wider",children:iv.lifecycleDisplayLabels[A.lifecycle]}),(0,t.jsx)(iw,{data:A}),A.progress>0?(0,t.jsxs)("div",{"data-testid":"feature-drawer-progress",className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"text-muted-foreground flex items-center justify-between text-xs",children:[(0,t.jsx)("span",{children:"Progress"}),(0,t.jsxs)("span",{children:[A.progress,"%"]})]}),(0,t.jsx)("div",{className:"bg-muted h-2 w-full overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:(0,b.cn)("h-full rounded-full transition-all",iv.featureNodeStateConfig[A.state].progressClass),style:{width:`${A.progress}%`}})})]}):null]}),A.pr?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Separator,{}),(0,t.jsx)(ij,{pr:A.pr})]}):null,(0,t.jsx)(iS,{data:A})]}):"prd-review"===f.type?eO=U?(0,t.jsx)(tX,{data:U,selections:V,onSelect:(e,t)=>K(n=>({...n,[e]:t})),onApprove:eP,onReject:eS,isProcessing:W,isRejecting:ec,chatInput:_,onChatInputChange:H}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"tech-review"===f.type?eO=Q?(0,t.jsx)(ic,{techData:Q,productData:en?null:ee,onApprove:eI,onReject:eC,isProcessing:J,isRejecting:ec,chatInput:_,onChatInputChange:H}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"merge-review"===f.type&&(eO=el?(0,t.jsx)(iy,{data:el,onApprove:eT,onReject:eN,isProcessing:eo,isRejecting:ec,chatInput:_,onChatInputChange:H}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})})),(0,t.jsx)(N.BaseDrawer,{open:O,onClose:ek,size:"md",modal:!1,header:a,"data-testid":"feature"===f.type?"feature-drawer":"repository"===f.type?"repository-drawer":"review-drawer",children:eO})}function iw({data:e}){let n=iv.featureNodeStateConfig[e.state],r=n.icon;return(0,t.jsxs)("div",{className:(0,b.cn)("flex items-center gap-2 rounded-full px-3 py-1.5 text-sm font-medium",n.badgeBgClass,n.badgeClass),children:["running"===e.state?(0,t.jsx)(L,{size:"sm",className:"shrink-0"}):(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:n.label})]})}function ij({pr:e}){let n={[p.PrStatus.Open]:"border-transparent bg-blue-50 text-blue-700 hover:bg-blue-50",[p.PrStatus.Merged]:"border-transparent bg-purple-50 text-purple-700 hover:bg-purple-50",[p.PrStatus.Closed]:"border-transparent bg-red-50 text-red-700 hover:bg-red-50"};return(0,t.jsx)("div",{"data-testid":"feature-drawer-pr",className:"border-border mx-4 rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",e.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(T.Badge,{className:n[e.status],children:e.status})]}),e.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(_,{status:e.ciStatus})]}):null,e.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e.commitHash.slice(0,7)})]})]}):null]})})}function iS({data:e}){return e.agentType??e.runtime??e.blockedBy??e.errorMessage?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Separator,{}),(0,t.jsxs)("div",{"data-testid":"feature-drawer-details",className:"flex flex-col gap-3 p-4",children:[e.agentType?(0,t.jsx)(iC,{label:"Agent",value:e.agentType}):null,e.runtime?(0,t.jsx)(iC,{label:"Runtime",value:e.runtime}):null,e.blockedBy?(0,t.jsx)(iC,{label:"Blocked by",value:e.blockedBy}):null,e.errorMessage?(0,t.jsx)(iC,{label:"Error",value:e.errorMessage}):null]})]}):null}function iC({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:e}),(0,t.jsx)("span",{className:"text-sm",children:n})]})}e.s(["FeatureDrawerClient",()=>ik],36986)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function p(e){var t=e.match(l);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function f(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(i),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var l=Error(t.source+":"+n+":"+c+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=c,l.source=e,t.silent);else throw l}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,p(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(i);var v,b=[];for(x(b);v=function(){var e=f(),t=g(o);if(t){if(y(),!g(a))return m("property missing ':'");var n=g(s),l=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),l}}();)!1!==v&&(b.push(v),x(b));return b}},59596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,l.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:l}=e;i?t(r,l,e):l&&((n=n||{})[r]=l)}),n};let l=r(e.r(69090))},51521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||i.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(l,s))}},63185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(59596)),l=e.r(51521);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,l.camelCase)(e,t)]=r)}),n}i.default=i,t.exports=i},75609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===l.call(e)},s=function(e){if(!e||"[object Object]"!==l.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,l,i,o,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=c(d,n),d!==(l=c(t,n))&&(h&&l&&(s(l)||(i=a(l)))?(i?(i=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,l)})):void 0!==l&&u(d,{name:n,newValue:l}));return d}},36986,e=>{"use strict";var t=e.i(20314),n=e.i(79054),r=e.i(31406),l=e.i(60112),i=e.i(83428),o=e.i(67669),a=e.i(30702),s=e.i(3645);let u=(0,s.default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var c=e.i(24042),d=e.i(64970),p=e.i(17406),f=e.i(21023);let h=(0,f.createServerReference)("60c1544db6a24763824d6e6635e96f956a27885760",f.callServer,void 0,f.findSourceMapURL,"approveFeature"),m=(0,f.createServerReference)("60dbaaa4ea82809dc2c8054a310332edb41efc56d9",f.callServer,void 0,f.findSourceMapURL,"rejectFeature"),g=(0,f.createServerReference)("402f22100a4e19d1a1cdbe4c89e87a36641a9fa8f7",f.callServer,void 0,f.findSourceMapURL,"getFeatureArtifact"),x=(0,f.createServerReference)("40532f400ff7cc11798e6472692025ed83ffdd4577",f.callServer,void 0,f.findSourceMapURL,"getResearchArtifact"),y=(0,f.createServerReference)("40eeee82ffadacec80880824975184ade92b178c9b",f.callServer,void 0,f.findSourceMapURL,"getMergeReviewData");var v=e.i(56514),b=e.i(31777),k=e.i(63629),w=e.i(8361),j=e.i(30153),S=e.i(8537),C=e.i(39443);e.i(1650);var N=e.i(11495);e.i(99348);var E=e.i(17466),P=e.i(45811),I=e.i(35364),T=e.i(81846),D=e.i(25235),M=e.i(2828);let A=(0,e.i(94237).cva)("inline-block shrink-0",{variants:{size:{sm:"size-5",md:"size-8",lg:"size-12"}},defaultVariants:{size:"md"}}),R=[{r:9,spline:"0.12 0 0.04 1",opacity:1},{r:8.2,spline:"0.16 0 0.08 1",opacity:.95},{r:7.4,spline:"0.20 0 0.12 1",opacity:.9},{r:6.6,spline:"0.25 0 0.16 1",opacity:.84},{r:5.8,spline:"0.30 0 0.20 1",opacity:.76},{r:5,spline:"0.36 0 0.25 1",opacity:.67},{r:4.2,spline:"0.42 0 0.31 1",opacity:.56},{r:3.4,spline:"0.48 0 0.37 1",opacity:.44},{r:2.6,spline:"0.55 0 0.44 1",opacity:.32},{r:1.8,spline:"0.62 0 0.52 1",opacity:.2},{r:1,spline:"0.70 0 0.60 1",opacity:.1}];function L({className:e,size:n="md",duration:r=5,...l}){return(0,t.jsxs)("svg",{"data-slot":"comet-spinner",role:"status","aria-label":"Loading",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:(0,b.cn)(A({size:n}),e),...l,children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:"comet-gooey",x:"-100%",y:"-100%",width:"300%",height:"300%",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2.5"}),(0,t.jsx)("feColorMatrix",{mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -30",result:"goo"})]})}),(0,t.jsxs)("g",{filter:"url(#comet-gooey)",children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:`${r}s`,repeatCount:"indefinite"}),R.map(e=>(0,t.jsxs)("g",{children:[(0,t.jsx)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"spline",values:"0 50 50;360 50 50",keyTimes:"0;1",keySplines:e.spline,dur:"1s",repeatCount:"indefinite"}),(0,t.jsx)("circle",{cx:"50",cy:"18",r:e.r,fill:"currentColor",opacity:e.opacity})]},e.r)),(0,t.jsxs)("circle",{cx:"50",cy:"50",r:"4",fill:"currentColor",opacity:"0.15",children:[(0,t.jsx)("animate",{attributeName:"r",values:"3;5;3",dur:"2s",repeatCount:"indefinite"}),(0,t.jsx)("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"2s",repeatCount:"indefinite"})]})]})]})}var z=e.i(71326),O=e.i(80986),O=O,F=e.i(30090),F=F;function _({status:e}){switch(e){case p.CiStatus.Success:return(0,t.jsxs)(T.Badge,{className:"border-transparent bg-green-50 text-green-700 hover:bg-green-50",children:[(0,t.jsx)(O.default,{className:"mr-1 h-3.5 w-3.5"}),"Passing"]});case p.CiStatus.Pending:return(0,t.jsxs)(T.Badge,{className:"border-transparent bg-yellow-50 text-yellow-700 hover:bg-yellow-50",children:[(0,t.jsx)(i.Loader2,{className:"mr-1 h-3.5 w-3.5 animate-spin"}),"Pending"]});case p.CiStatus.Failure:return(0,t.jsxs)(T.Badge,{className:"border-transparent bg-red-50 text-red-700 hover:bg-red-50",children:[(0,t.jsx)(F.default,{className:"mr-1 h-3.5 w-3.5"}),"Failing"]})}}e.i(81803);var B=e.i(72714),H=e.i(8986),U=e.i(38573),q=e.i(19933);let V=(0,s.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var K=e.i(33548),G=e.i(23925),$=e.i(51251),W=e.i(91967),X=e.i(5978),Q=e.i(22528),Y=e.i(36589),J=e.i(87620),Z=e.i(87342),ee=e.i(66033),et=e.i(53532),en=e.i(41687),er=e.i(56720),el=e.i(13123),ei=e.i(52740),eo=e.i(39979),ea=e.i(85995),es=e.i(51080),eu=e.i(86874),ec=e.i(29297),ed=e.i(73772),ep=e.i(13044),ef=["Enter"," "],eh=["ArrowUp","PageDown","End"],em=["ArrowDown","PageUp","Home",...eh],eg={ltr:[...ef,"ArrowRight"],rtl:[...ef,"ArrowLeft"]},ex={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ey="Menu",[ev,eb,ek]=(0,Z.createCollection)(ey),[ew,ej]=(0,Q.createContextScope)(ey,[ek,ei.createPopperScope,es.createRovingFocusGroupScope]),eS=(0,ei.createPopperScope)(),eC=(0,es.createRovingFocusGroupScope)(),[eN,eE]=ew(ey),[eP,eI]=ew(ey),eT=e=>{let{__scopeMenu:r,open:l=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,u=eS(r),[c,d]=n.useState(null),p=n.useRef(!1),f=(0,ec.useCallbackRef)(a),h=(0,ee.useDirection)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(ei.Root,{...u,children:(0,t.jsx)(eN,{scope:r,open:l,onOpenChange:f,content:c,onContentChange:d,children:(0,t.jsx)(eP,{scope:r,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};eT.displayName=ey;var eD=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=eS(r);return(0,t.jsx)(ei.Anchor,{...i,...l,ref:n})});eD.displayName="MenuAnchor";var eM="MenuPortal",[eA,eR]=ew(eM,{forceMount:void 0}),eL=e=>{let{__scopeMenu:n,forceMount:r,children:l,container:i}=e,o=eE(eM,n);return(0,t.jsx)(eA,{scope:n,forceMount:r,children:(0,t.jsx)(ea.Presence,{present:r||o.open,children:(0,t.jsx)(eo.Portal,{asChild:!0,container:i,children:l})})})};eL.displayName=eM;var ez="MenuContent",[eO,eF]=ew(ez),e_=n.forwardRef((e,n)=>{let r=eR(ez,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,o=eE(ez,e.__scopeMenu),a=eI(ez,e.__scopeMenu);return(0,t.jsx)(ev.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(ea.Presence,{present:l||o.open,children:(0,t.jsx)(ev.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(eB,{...i,ref:n}):(0,t.jsx)(eH,{...i,ref:n})})})})}),eB=n.forwardRef((e,r)=>{let l=eE(ez,e.__scopeMenu),i=n.useRef(null),o=(0,X.useComposedRefs)(r,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,ed.hideOthers)(e)},[]),(0,t.jsx)(eq,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:(0,W.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),eH=n.forwardRef((e,n)=>{let r=eE(ez,e.__scopeMenu);return(0,t.jsx)(eq,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eU=(0,eu.createSlot)("MenuContent.ScrollLock"),eq=n.forwardRef((e,r)=>{let{__scopeMenu:l,loop:i=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...x}=e,y=eE(ez,l),v=eI(ez,l),b=eS(l),k=eC(l),w=eb(l),[j,S]=n.useState(null),C=n.useRef(null),N=(0,X.useComposedRefs)(r,C,y.onContentChange),E=n.useRef(0),P=n.useRef(""),I=n.useRef(0),T=n.useRef(null),D=n.useRef("right"),M=n.useRef(0),A=g?ep.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(E.current),[]),(0,en.useFocusGuards)();let R=n.useCallback(e=>{var t,n;return D.current===T.current?.side&&(t=e,!!(n=T.current?.area)&&function(e,t){let{x:n,y:r}=e,l=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],a=t[i],s=o.x,u=o.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(l=!l)}return l}({x:t.clientX,y:t.clientY},n))},[]);return(0,t.jsx)(eO,{scope:l,searchRef:P,onItemEnter:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:n.useCallback(e=>{R(e)||(C.current?.focus(),S(null))},[R]),onTriggerLeave:n.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:I,onPointerGraceIntentChange:n.useCallback(e=>{T.current=e},[]),children:(0,t.jsx)(A,{...g?{as:eU,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(er.FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:(0,W.composeEventHandlers)(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,t.jsx)(et.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:(0,t.jsx)(es.Root,{asChild:!0,...k,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:(0,W.composeEventHandlers)(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(ei.Content,{role:"menu","aria-orientation":"vertical","data-state":ta(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...x,ref:N,style:{outline:"none",...x.style},onKeyDown:(0,W.composeEventHandlers)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var l;let t,i,o,a,s,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(l=e.key,t=P.current+l,i=w().filter(e=>!e.disabled),o=document.activeElement,a=i.find(e=>e.ref.current===o)?.textValue,s=function(e,t,n){var r;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,o=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===l.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(l.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),t,a),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){P.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=C.current;if(e.target!==i||!em.includes(e.key))return;e.preventDefault();let o=w().filter(e=>!e.disabled).map(e=>e.ref.current);eh.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,W.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,tc(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(D.current=e.clientX>M.current?"right":"left",M.current=e.clientX)}))})})})})})})});e_.displayName=ez;var eV=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(J.Primitive.div,{role:"group",...l,ref:n})});eV.displayName="MenuGroup";var eK=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(J.Primitive.div,{...l,ref:n})});eK.displayName="MenuLabel";var eG="MenuItem",e$="menu.itemSelect",eW=n.forwardRef((e,r)=>{let{disabled:l=!1,onSelect:i,...o}=e,a=n.useRef(null),s=eI(eG,e.__scopeMenu),u=eF(eG,e.__scopeMenu),c=(0,X.useComposedRefs)(r,a),d=n.useRef(!1);return(0,t.jsx)(eX,{...o,ref:c,disabled:l,onClick:(0,W.composeEventHandlers)(e.onClick,()=>{let e=a.current;if(!l&&e){let t=new CustomEvent(e$,{bubbles:!0,cancelable:!0});e.addEventListener(e$,e=>i?.(e),{once:!0}),(0,J.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,W.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;l||t&&" "===e.key||ef.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eW.displayName=eG;var eX=n.forwardRef((e,r)=>{let{__scopeMenu:l,disabled:i=!1,textValue:o,...a}=e,s=eF(eG,l),u=eC(l),c=n.useRef(null),d=(0,X.useComposedRefs)(r,c),[p,f]=n.useState(!1),[h,m]=n.useState("");return n.useEffect(()=>{let e=c.current;e&&m((e.textContent??"").trim())},[a.children]),(0,t.jsx)(ev.ItemSlot,{scope:l,disabled:i,textValue:o??h,children:(0,t.jsx)(es.Item,{asChild:!0,...u,focusable:!i,children:(0,t.jsx)(J.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:d,onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,tc(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,tc(e=>s.onItemLeave(e))),onFocus:(0,W.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,W.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eQ=n.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:l,...i}=e;return(0,t.jsx)(e5,{scope:e.__scopeMenu,checked:r,children:(0,t.jsx)(eW,{role:"menuitemcheckbox","aria-checked":ts(r)?"mixed":r,...i,ref:n,"data-state":tu(r),onSelect:(0,W.composeEventHandlers)(i.onSelect,()=>l?.(!!ts(r)||!r),{checkForDefaultPrevented:!1})})})});eQ.displayName="MenuCheckboxItem";var eY="MenuRadioGroup",[eJ,eZ]=ew(eY,{value:void 0,onValueChange:()=>{}}),e0=n.forwardRef((e,n)=>{let{value:r,onValueChange:l,...i}=e,o=(0,ec.useCallbackRef)(l);return(0,t.jsx)(eJ,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,t.jsx)(eV,{...i,ref:n})})});e0.displayName=eY;var e1="MenuRadioItem",e2=n.forwardRef((e,n)=>{let{value:r,...l}=e,i=eZ(e1,e.__scopeMenu),o=r===i.value;return(0,t.jsx)(e5,{scope:e.__scopeMenu,checked:o,children:(0,t.jsx)(eW,{role:"menuitemradio","aria-checked":o,...l,ref:n,"data-state":tu(o),onSelect:(0,W.composeEventHandlers)(l.onSelect,()=>i.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});e2.displayName=e1;var e4="MenuItemIndicator",[e5,e3]=ew(e4,{checked:!1}),e6=n.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:l,...i}=e,o=e3(e4,r);return(0,t.jsx)(ea.Presence,{present:l||ts(o.checked)||!0===o.checked,children:(0,t.jsx)(J.Primitive.span,{...i,ref:n,"data-state":tu(o.checked)})})});e6.displayName=e4;var e9=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(J.Primitive.div,{role:"separator","aria-orientation":"horizontal",...l,ref:n})});e9.displayName="MenuSeparator";var e8=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=eS(r);return(0,t.jsx)(ei.Arrow,{...i,...l,ref:n})});e8.displayName="MenuArrow";var e7="MenuSub",[te,tt]=ew(e7),tn=e=>{let{__scopeMenu:r,children:l,open:i=!1,onOpenChange:o}=e,a=eE(e7,r),s=eS(r),[u,c]=n.useState(null),[d,p]=n.useState(null),f=(0,ec.useCallbackRef)(o);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,t.jsx)(ei.Root,{...s,children:(0,t.jsx)(eN,{scope:r,open:i,onOpenChange:f,content:d,onContentChange:p,children:(0,t.jsx)(te,{scope:r,contentId:(0,el.useId)(),triggerId:(0,el.useId)(),trigger:u,onTriggerChange:c,children:l})})})};tn.displayName=e7;var tr="MenuSubTrigger",tl=n.forwardRef((e,r)=>{let l=eE(tr,e.__scopeMenu),i=eI(tr,e.__scopeMenu),o=tt(tr,e.__scopeMenu),a=eF(tr,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),c(null)}},[u,c]),(0,t.jsx)(eD,{asChild:!0,...d,children:(0,t.jsx)(eX,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":o.contentId,"data-state":ta(l.open),...e,ref:(0,X.composeRefs)(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,tc(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||l.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{l.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,tc(e=>{p();let t=l.content?.getBoundingClientRect();if(t){let n=l.content?.dataset.side,r="right"===n,i=t[r?"left":"right"],o=t[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(r?-5:5),y:e.clientY},{x:i,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==a.searchRef.current;e.disabled||n&&" "===t.key||eg[i.dir].includes(t.key)&&(l.onOpenChange(!0),l.content?.focus(),t.preventDefault())})})})});tl.displayName=tr;var ti="MenuSubContent",to=n.forwardRef((e,r)=>{let l=eR(ez,e.__scopeMenu),{forceMount:i=l.forceMount,...o}=e,a=eE(ez,e.__scopeMenu),s=eI(ez,e.__scopeMenu),u=tt(ti,e.__scopeMenu),c=n.useRef(null),d=(0,X.useComposedRefs)(r,c);return(0,t.jsx)(ev.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(ea.Presence,{present:i||a.open,children:(0,t.jsx)(ev.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(eq,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,W.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,W.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ex[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function ta(e){return e?"open":"closed"}function ts(e){return"indeterminate"===e}function tu(e){return ts(e)?"indeterminate":e?"checked":"unchecked"}function tc(e){return t=>"mouse"===t.pointerType?e(t):void 0}to.displayName=ti;var td="DropdownMenu",[tp,tf]=(0,Q.createContextScope)(td,[ej]),th=ej(),[tm,tg]=tp(td),tx=e=>{let{__scopeDropdownMenu:r,children:l,dir:i,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,c=th(r),d=n.useRef(null),[p,f]=(0,Y.useControllableState)({prop:o,defaultProp:a??!1,onChange:s,caller:td});return(0,t.jsx)(tm,{scope:r,triggerId:(0,el.useId)(),triggerRef:d,contentId:(0,el.useId)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,t.jsx)(eT,{...c,open:p,onOpenChange:f,dir:i,modal:u,children:l})})};tx.displayName=td;var ty="DropdownMenuTrigger",tv=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:l=!1,...i}=e,o=tg(ty,r),a=th(r);return(0,t.jsx)(eD,{asChild:!0,...a,children:(0,t.jsx)(J.Primitive.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:(0,X.composeRefs)(n,o.triggerRef),onPointerDown:(0,W.composeEventHandlers)(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tv.displayName=ty;var tb=e=>{let{__scopeDropdownMenu:n,...r}=e,l=th(n);return(0,t.jsx)(eL,{...l,...r})};tb.displayName="DropdownMenuPortal";var tk="DropdownMenuContent",tw=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:l,...i}=e,o=tg(tk,l),a=th(l),s=n.useRef(!1);return(0,t.jsx)(e_,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...i,ref:r,onCloseAutoFocus:(0,W.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,W.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tw.displayName=tk;var tj=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eV,{...i,...l,ref:n})});tj.displayName="DropdownMenuGroup";var tS=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eK,{...i,...l,ref:n})});tS.displayName="DropdownMenuLabel";var tC=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eW,{...i,...l,ref:n})});tC.displayName="DropdownMenuItem";var tN=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(eQ,{...i,...l,ref:n})});tN.displayName="DropdownMenuCheckboxItem";var tE=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e0,{...i,...l,ref:n})});tE.displayName="DropdownMenuRadioGroup";var tP=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e2,{...i,...l,ref:n})});tP.displayName="DropdownMenuRadioItem";var tI=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e6,{...i,...l,ref:n})});tI.displayName="DropdownMenuItemIndicator";var tT=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e9,{...i,...l,ref:n})});tT.displayName="DropdownMenuSeparator";var tD=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(e8,{...i,...l,ref:n})});tD.displayName="DropdownMenuArrow";var tM=e=>{let{__scopeDropdownMenu:n,children:r,open:l,onOpenChange:i,defaultOpen:o}=e,a=th(n),[s,u]=(0,Y.useControllableState)({prop:l,defaultProp:o??!1,onChange:i,caller:"DropdownMenuSub"});return(0,t.jsx)(tn,{...a,open:s,onOpenChange:u,children:r})},tA=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(tl,{...i,...l,ref:n})});tA.displayName="DropdownMenuSubTrigger";var tR=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=th(r);return(0,t.jsx)(to,{...i,...l,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tR.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>tD,"CheckboxItem",()=>tN,"Content",()=>tw,"DropdownMenu",()=>tx,"DropdownMenuArrow",()=>tD,"DropdownMenuCheckboxItem",()=>tN,"DropdownMenuContent",()=>tw,"DropdownMenuGroup",()=>tj,"DropdownMenuItem",()=>tC,"DropdownMenuItemIndicator",()=>tI,"DropdownMenuLabel",()=>tS,"DropdownMenuPortal",()=>tb,"DropdownMenuRadioGroup",()=>tE,"DropdownMenuRadioItem",()=>tP,"DropdownMenuSeparator",()=>tT,"DropdownMenuSub",()=>tM,"DropdownMenuSubContent",()=>tR,"DropdownMenuSubTrigger",()=>tA,"DropdownMenuTrigger",()=>tv,"Group",()=>tj,"Item",()=>tC,"ItemIndicator",()=>tI,"Label",()=>tS,"Portal",()=>tb,"RadioGroup",()=>tE,"RadioItem",()=>tP,"Root",()=>tx,"Separator",()=>tT,"Sub",()=>tM,"SubContent",()=>tR,"SubTrigger",()=>tA,"Trigger",()=>tv,"createDropdownMenuScope",()=>tf],61920);var tL=e.i(61920),tL=tL;let tz=(0,s.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),tO=(0,s.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tF=tL.Root,t_=tL.Trigger;tL.Group,tL.Portal,tL.Sub,tL.RadioGroup,n.forwardRef(({className:e,inset:n,children:r,...l},i)=>(0,t.jsxs)(tL.SubTrigger,{ref:i,className:(0,b.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...l,children:[r,(0,t.jsx)(tz,{className:"ml-auto"})]})).displayName=tL.SubTrigger.displayName,n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tL.SubContent,{ref:r,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...n})).displayName=tL.SubContent.displayName;let tB=n.forwardRef(({className:e,sideOffset:n=4,...r},l)=>(0,t.jsx)(tL.Portal,{children:(0,t.jsx)(tL.Content,{ref:l,sideOffset:n,className:(0,b.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...r})}));tB.displayName=tL.Content.displayName;let tH=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tL.Item,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",e),...r}));tH.displayName=tL.Item.displayName,n.forwardRef(({className:e,children:n,checked:r,...l},i)=>(0,t.jsxs)(tL.CheckboxItem,{ref:i,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...l,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tL.ItemIndicator,{children:(0,t.jsx)(G.Check,{className:"h-4 w-4"})})}),n]})).displayName=tL.CheckboxItem.displayName,n.forwardRef(({className:e,children:n,...r},l)=>(0,t.jsxs)(tL.RadioItem,{ref:l,className:(0,b.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tL.ItemIndicator,{children:(0,t.jsx)(tO,{className:"h-2 w-2 fill-current"})})}),n]})).displayName=tL.RadioItem.displayName;let tU=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tL.Label,{ref:l,className:(0,b.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));tU.displayName=tL.Label.displayName;let tq=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tL.Separator,{ref:r,className:(0,b.cn)("bg-muted -mx-1 my-1 h-px",e),...n}));function tV({actions:e,repositoryPath:r,showSpecs:l}){let[o,a]=(0,n.useState)(!1),s=e.ideLoading||e.shellLoading||e.specsLoading,u=e.ideError??e.shellError??e.specsError;return(0,t.jsxs)(tF,{modal:!1,children:[(0,t.jsx)(t_,{asChild:!0,children:(0,t.jsxs)(I.Button,{variant:"outline",size:"sm",className:"gap-1.5",disabled:s,children:[s?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):u?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(q.FolderOpen,{className:"size-4"}),"Open",(0,t.jsx)(V,{className:"size-3 opacity-60"})]})}),(0,t.jsxs)(tB,{align:"start",className:"w-48",children:[(0,t.jsx)(tU,{children:"Open in"}),(0,t.jsxs)(tH,{onClick:e.openInIde,disabled:e.ideLoading,className:"gap-2",children:[e.ideLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.ideError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(H.Code2,{className:"size-4"}),"IDE"]}),(0,t.jsxs)(tH,{onClick:e.openInShell,disabled:e.shellLoading,className:"gap-2",children:[e.shellLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.shellError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(U.Terminal,{className:"size-4"}),"Terminal"]}),(0,t.jsxs)(tH,{onClick:e.openSpecsFolder,disabled:e.specsLoading||!l,className:"gap-2",children:[e.specsLoading?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):e.specsError?(0,t.jsx)($.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(q.FolderOpen,{className:"size-4"}),"Specs Folder"]}),(0,t.jsx)(tq,{}),(0,t.jsxs)(tH,{onClick:()=>{navigator.clipboard.writeText(r),a(!0),setTimeout(()=>a(!1),2e3)},className:"gap-2",children:[o?(0,t.jsx)(G.Check,{className:"size-4 text-green-600"}):(0,t.jsx)(K.Copy,{className:"size-4"}),o?"Copied!":"Copy path"]})]})]})}tq.displayName=tL.Separator.displayName;let tK=(0,s.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),tG=(0,s.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var t$=e.i(98127);function tW({onReject:e,onApprove:r,approveLabel:l,approveIcon:i,revisionPlaceholder:o,isProcessing:a=!1,isRejecting:s=!1,children:u,chatInput:c,onChatInputChange:d}){let[p,f]=(0,n.useState)(""),h=c??p,m=d??f,g=(0,w.useSoundAction)("approve"),x=a||s;return(0,t.jsxs)("div",{className:"border-border shrink-0 border-t",children:[u,e?(0,t.jsxs)("form",{onSubmit:function(t){t.preventDefault();let n=h.trim();n&&e&&(e(n),m(""))},className:"flex items-center gap-2 p-4",children:[(0,t.jsx)(t$.Input,{type:"text",placeholder:o??"Ask AI to revise...","aria-label":o??"Ask AI to revise...",disabled:x,value:h,onChange:e=>m(e.target.value),className:"flex-1","data-testid":"drawer-chat-input"}),(0,t.jsx)(I.Button,{type:"submit",variant:"secondary",size:"icon","aria-label":"Send",disabled:x,"data-testid":"drawer-chat-send",children:(0,t.jsx)(tG,{})}),(0,t.jsxs)(I.Button,{type:"button",disabled:x,onClick:()=>{g.play(),r()},children:[i,l]})]}):(0,t.jsx)("div",{className:"flex items-center gap-2 px-4 pb-4",children:(0,t.jsxs)(I.Button,{type:"button",className:"flex-1",disabled:x,onClick:()=>{g.play(),r()},children:[i,l]})})]})}function tX({data:e,selections:r,onSelect:l,onApprove:i,onReject:o,isProcessing:a=!1,isRejecting:s=!1,showHeader:u=!1,chatInput:c,onChatInputChange:d}){let{question:p,context:f,questions:h,finalAction:m}=e,[g,x]=(0,n.useState)(0),y=(0,w.useSoundAction)("select"),v=(0,w.useSoundAction)("navigate"),k=h.length,j=g===k-1,S=h[g],C=(0,n.useMemo)(()=>Object.keys(r).length,[r]),N=(0,n.useCallback)((e,t)=>{y.play(),l(e,t),j||setTimeout(()=>x(e=>e+1),250)},[l,j,y]);return 0===k?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[u?(0,t.jsxs)("div",{className:"border-border flex items-start gap-3 border-b pb-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-amber-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground mb-1.5 text-sm font-bold",children:p}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed",children:f})]})]}):null,(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("label",{className:"text-foreground min-w-0 flex-1 text-sm font-semibold",children:S.question}),(0,t.jsx)("div",{className:"mt-1.5 flex shrink-0 gap-1",children:h.map((e,n)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to question ${n+1}`,className:(0,b.cn)("h-1.5 rounded-full transition-all duration-200",n===g?"bg-primary w-4":"w-1.5",n!==g&&r[e.id]?"bg-primary/50":"",n===g||r[e.id]?"":"bg-muted-foreground/25"),onClick:()=>{v.play(),x(n)}},e.id))})]}),(0,t.jsx)("div",{className:"space-y-2",children:S.options.map((e,n)=>{let l=r[S.id]===e.id,i=String.fromCharCode(65+n);return(0,t.jsx)("button",{type:"button",className:(0,b.cn)("border-border w-full rounded-md border px-3 py-3 text-left text-xs transition-all","hover:border-primary/70 hover:bg-primary/5 group",l&&"border-primary bg-primary/5",e.isNew&&"animate-option-highlight"),disabled:a,onClick:()=>N(S.id,e.id),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("span",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:[i,"."]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"mb-0.5 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:e.label}),e.recommended?(0,t.jsx)(T.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null,e.isNew?(0,t.jsx)(T.Badge,{className:"border-transparent bg-emerald-600 px-1.5 py-0 text-[10px] text-white hover:bg-emerald-600/80",children:"New"}):null]}),(0,t.jsx)("div",{className:"text-muted-foreground text-xs leading-snug",children:e.rationale})]})]})},e.id)})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,t.jsxs)(I.Button,{type:"button",variant:"ghost",size:"sm",disabled:0===g||a,onClick:()=>{v.play(),x(e=>e-1)},children:[(0,t.jsx)(tK,{className:"mr-1 h-4 w-4"}),"Previous"]}),j?null:(0,t.jsxs)(I.Button,{type:"button",variant:"ghost",size:"sm",disabled:a,onClick:()=>{v.play(),x(e=>e+1)},children:[r[S.id]?"Next":"Skip",(0,t.jsx)(tz,{className:"ml-1 h-4 w-4"})]})]})]}),(0,t.jsx)(tW,{onReject:o,onApprove:()=>i(m.id),approveLabel:m.label,approveIcon:(0,t.jsx)(G.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to refine requirements...",isProcessing:a,isRejecting:s,chatInput:c,onChatInputChange:d,children:(0,t.jsx)("div",{className:(0,b.cn)("bg-muted h-1.5 overflow-hidden",C>0&&C<k||a?"opacity-100":"opacity-0","transition-opacity duration-200"),"data-testid":"progress-bar-container",children:a?(0,t.jsx)("div",{className:"bg-primary animate-indeterminate-progress h-full w-1/3"}):(0,t.jsx)("div",{className:"bg-primary h-full transition-all duration-300",style:{width:`${k>0?C/k*100:0}%`},"data-testid":"progress-bar"})})})]})}var tQ=e.i(27431),tY=e.i(78036),tJ=e.i(92),tZ=e.i(68304);function t0(){}function t1(){}let t2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t4=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t5={};function t3(e,t){return((t||t5).jsx?t4:t2).test(e)}let t6=/[ \t\n\f\r]/g;function t9(e){return""===e.replace(t6,"")}class t8{constructor(e,t){this.attribute=t,this.property=e}}t8.prototype.attribute="",t8.prototype.booleanish=!1,t8.prototype.boolean=!1,t8.prototype.commaOrSpaceSeparated=!1,t8.prototype.commaSeparated=!1,t8.prototype.defined=!1,t8.prototype.mustUseProperty=!1,t8.prototype.number=!1,t8.prototype.overloadedBoolean=!1,t8.prototype.property="",t8.prototype.spaceSeparated=!1,t8.prototype.space=void 0;let t7=0,ne=na(),nt=na(),nn=na(),nr=na(),nl=na(),ni=na(),no=na();function na(){return 2**++t7}e.s(["boolean",0,ne,"booleanish",0,nt,"commaOrSpaceSeparated",0,no,"commaSeparated",0,ni,"number",0,nr,"overloadedBoolean",0,nn,"spaceSeparated",0,nl],83954);var ns=e.i(83954);let nu=Object.keys(ns);class nc extends t8{constructor(e,t,n,r){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++l<nu.length;){const e=nu[l];!function(e,t,n){n&&(e[t]=n)}(this,nu[l],(n&ns[e])===ns[e])}}}function nd(e){return e.toLowerCase()}nc.prototype.defined=!0;let np=/[A-Z]/g,nf=/-[a-z]/g,nh=/^data[-\w.:]+$/i;function nm(e){return"-"+e.toLowerCase()}function ng(e){return e.charAt(1).toUpperCase()}let nx={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class ny{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function nv(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ny(n,r,t)}function nb(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new nc(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nd(r)]=r,n[nd(i.attribute)]=r}return new ny(t,n,e.space)}ny.prototype.normal={},ny.prototype.property={},ny.prototype.space=void 0;let nk=nb({properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:nr,ariaColIndex:nr,ariaColSpan:nr,ariaControls:nl,ariaCurrent:null,ariaDescribedBy:nl,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:nl,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:nl,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nl,ariaLevel:nr,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:nl,ariaPlaceholder:null,ariaPosInSet:nr,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:nl,ariaRowCount:nr,ariaRowIndex:nr,ariaRowSpan:nr,ariaSelected:nt,ariaSetSize:nr,ariaSort:null,ariaValueMax:nr,ariaValueMin:nr,ariaValueNow:nr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function nw(e,t){return t in e?e[t]:t}function nj(e,t){return nw(e,t.toLowerCase())}let nS=nb({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ni,acceptCharset:nl,accessKey:nl,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:nl,autoFocus:ne,autoPlay:ne,blocking:nl,capture:null,charSet:null,checked:ne,cite:null,className:nl,cols:nr,colSpan:null,content:null,contentEditable:nt,controls:ne,controlsList:nl,coords:nr|ni,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:nn,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:nl,height:nr,hidden:nn,high:nr,href:null,hrefLang:null,htmlFor:nl,httpEquiv:nl,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:nl,itemRef:nl,itemScope:ne,itemType:nl,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:nr,manifest:null,max:null,maxLength:nr,media:null,method:null,min:null,minLength:nr,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:nr,pattern:null,ping:nl,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:nl,required:ne,reversed:ne,rows:nr,rowSpan:nr,sandbox:nl,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:nr,sizes:null,slot:null,span:nr,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nr,step:null,style:null,tabIndex:nr,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:nt,width:nr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nl,axis:null,background:null,bgColor:null,border:nr,borderColor:null,bottomMargin:nr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:nr,leftMargin:nr,link:null,longDesc:null,lowSrc:null,marginHeight:nr,marginWidth:nr,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:nr,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:nr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:nr,security:null,unselectable:null},space:"html",transform:nj}),nC=nb({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:no,accentHeight:nr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nr,amplitude:nr,arabicForm:null,ascent:nr,attributeName:null,attributeType:null,azimuth:nr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nr,by:null,calcMode:null,capHeight:nr,className:nl,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nr,diffuseConstant:nr,direction:null,display:null,dur:null,divisor:nr,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:nr,enableBackground:null,end:null,event:null,exponent:nr,externalResourcesRequired:null,fill:null,fillOpacity:nr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ni,g2:ni,glyphName:ni,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nr,horizOriginX:nr,horizOriginY:nr,id:null,ideographic:nr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nr,k:nr,k1:nr,k2:nr,k3:nr,k4:nr,kernelMatrix:no,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nr,overlineThickness:nr,paintOrder:null,panose1:null,path:null,pathLength:nr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nl,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nr,pointsAtY:nr,pointsAtZ:nr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:no,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:no,rev:no,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:no,requiredFeatures:no,requiredFonts:no,requiredFormats:no,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nr,specularExponent:nr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nr,strikethroughThickness:nr,string:null,stroke:null,strokeDashArray:no,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nr,strokeOpacity:nr,strokeWidth:null,style:null,surfaceScale:nr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:no,tabIndex:nr,tableValues:null,target:null,targetX:nr,targetY:nr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:no,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nr,underlineThickness:nr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nr,values:null,vAlphabetic:nr,vMathematical:nr,vectorEffect:null,vHanging:nr,vIdeographic:nr,version:null,vertAdvY:nr,vertOriginX:nr,vertOriginY:nr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nw}),nN=nb({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),nE=nb({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nj}),nP=nb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),nI=nv([nk,nS,nN,nE,nP],"html"),nT=nv([nk,nC,nN,nE,nP],"svg");var nD=e.i(63185);let nM=nR("end"),nA=nR("start");function nR(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nL(e){return e&&"object"==typeof e?"position"in e||"type"in e?nO(e.position):"start"in e||"end"in e?nO(e):"line"in e||"column"in e?nz(e):"":""}function nz(e){return nF(e&&e.line)+":"+nF(e&&e.column)}function nO(e){return nz(e&&e.start)+"-"+nz(e&&e.end)}function nF(e){return e&&"number"==typeof e?e:1}class n_ extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",l={},i=!1;if(t&&(l="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!l.cause&&e&&(i=!0,r=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?l.ruleId=n:(l.source=n.slice(0,e),l.ruleId=n.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){const e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=nL(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}n_.prototype.file="",n_.prototype.name="",n_.prototype.reason="",n_.prototype.message="",n_.prototype.stack="",n_.prototype.column=void 0,n_.prototype.line=void 0,n_.prototype.ancestors=void 0,n_.prototype.cause=void 0,n_.prototype.fatal=void 0,n_.prototype.place=void 0,n_.prototype.ruleId=void 0,n_.prototype.source=void 0;let nB={}.hasOwnProperty,nH=new Map,nU=/[A-Z]/g,nq=new Set(["table","tbody","thead","tfoot","tr"]),nV=new Set(["td","th"]),nK="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nG(e,t,n){var r,l,i,o,a,s,u,c,d;let p,f,h,m,g,x,y,v,b,k,w;return"element"===t.type?(r=e,l=t,i=n,f=p=r.schema,"svg"===l.tagName.toLowerCase()&&"html"===p.space&&(r.schema=nT),r.ancestors.push(l),h=nQ(r,l.tagName,!1),m=function(e,t){let n,r,l={};for(r in t.properties)if("children"!==r&&nB.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=nd(t),r=t,l=t8;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nh.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nf,ng);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nf.test(e)){let n=e.replace(np,nm);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=nc}return new l(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var l;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(l=n)[l.length-1]?[...l,""]:l).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,nD.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new n_("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=nK+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)nB.call(e,t)&&(n[function(e){let t=e.replace(nU,nJ);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?nx[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,o]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&nV.has(t.tagName)?n=o:l[r]=o}}return n&&((l.style||(l.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),l}(r,l),g=nX(r,l),nq.has(l.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&t9(e.value):t9(e))})),n$(r,m,h,l),nW(m,g),r.ancestors.pop(),r.schema=p,r.create(l,h,m,i)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return t0("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}nY(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,y=x=o.schema,"svg"===a.name&&"html"===x.space&&(o.schema=nT),o.ancestors.push(a),v=null===a.name?o.Fragment:nQ(o,a.name,!0),b=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t0("ExpressionStatement"===t.type);let l=t.expression;t0("ObjectExpression"===l.type);let i=l.properties[0];t0("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else nY(e,t.position);else{let l,i=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t0("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else nY(e,t.position);else l=null===r.value||r.value;n[i]=l}return n}(o,a),k=nX(o,a),n$(o,b,v,a),nW(b,k),o.ancestors.pop(),o.schema=x,o.create(a,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nY(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,nW(w={},nX(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function n$(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nW(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nX(e,t){let n=[],r=-1,l=e.passKeys?new Map:nH;for(;++r<t.children.length;){let i,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=l.get(e)||0;i=e+"-"+t,l.set(e,t+1)}}let a=nG(e,o,i);void 0!==a&&n.push(a)}return n}function nQ(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),l=-1;for(;++l<n.length;){let t=t3(n[l])?{type:"Identifier",name:n[l]}:{type:"Literal",value:n[l]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(l&&"Literal"===t.type),optional:!1}:t}t0(e,"always a result"),r=e}else r=t3(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return nB.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);nY(e)}function nY(e,t){let n=new n_("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nK+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nJ(e){return"-"+e.toLowerCase()}let nZ={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},n0={};function n1(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return n2(e.children,t,n)}return Array.isArray(e)?n2(e,t,n):""}function n2(e,t,n){let r=[],l=-1;for(;++l<e.length;)r[l]=n1(e[l],t,n);return r.join("")}function n4(e,t,n,r){let l,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(l=Array.from(r)).unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)(l=r.slice(o,o+1e4)).unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function n5(e,t){return e.length>0?(n4(e,e.length,0,t),e):t}let n3={}.hasOwnProperty,n6=rs(/[A-Za-z]/),n9=rs(/[\dA-Za-z]/),n8=rs(/[#-'*+\--9=?A-Z^-~]/);function n7(e){return null!==e&&(e<32||127===e)}let re=rs(/\d/),rt=rs(/[\dA-Fa-f]/),rn=rs(/[!-/:-@[-`{-~]/);function rr(e){return null!==e&&e<-2}function rl(e){return null!==e&&(e<0||32===e)}function ri(e){return -2===e||-1===e||32===e}let ro=rs(/\p{P}|\p{S}/u),ra=rs(/\s/);function rs(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ru(e,t,n,r){let l=r?r-1:1/0,i=0;return function(r){return ri(r)?(e.enter(n),function r(o){return ri(o)&&i++<l?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let rc={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return rr(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},rd={tokenize:function(e){let t,n,r,l=this,i=[],o=0;return a;function a(t){if(o<i.length){let n=i[o];return l.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,l.containerState._closeFlow){let n;l.containerState._closeFlow=void 0,t&&x();let r=l.events.length,i=r;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}g(o);let a=r;for(;a<l.events.length;)l.events[a][1].end={...n},a++;return n4(l.events,i+1,0,l.events.slice(r)),l.events.length=a,u(e)}return a(e)}function u(n){if(o===i.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);l.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(rp,c,d)(n)}function c(e){return t&&x(),g(o),p(e)}function d(e){return l.parser.lazy[l.now().line]=o!==i.length,r=l.now().offset,h(e)}function p(t){return l.containerState={},e.attempt(rp,f,h)(t)}function f(e){return o++,i.push([l.currentConstruct,l.containerState]),p(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return rr(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,l.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,i){let a=l.sliceStream(e);if(i&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),l.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let a=l.events.length,s=a;for(;s--;)if("exit"===l.events[s][0]&&"chunkFlow"===l.events[s][1].type){if(e){n=l.events[s][1].end;break}e=!0}for(g(o),i=a;i<l.events.length;)l.events[i][1].end={...n},i++;n4(l.events,s+1,0,l.events.slice(a)),l.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];l.containerState=t[1],t[0].exit.call(l,e)}i.length=t}function x(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},rp={tokenize:function(e,t,n){return ru(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},rf={partial:!0,tokenize:function(e,t,n){return function(t){return ri(t)?ru(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||rr(e)?t(e):n(e)}}};class rh{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&rm(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),rm(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rm(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);rm(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);rm(this.left,t.reverse())}}}function rm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function rg(e){let t,n,r,l,i,o,a,s={},u=-1,c=new rh(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,l=e.get(t)[1],i=e.get(t)[2],o=t-1,a=[],s=l._tokenizer;!s&&(s=i.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},p=-1,f=l,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),!f._tokenizer&&(n=i.sliceStream(f),f.next||n.push(null),r&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=l;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(l=c.get(r))[1].type||"lineEndingBlank"===l[1].type)"enter"===l[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),l[1].type="lineEnding",n=r);else if("linePrefix"===l[1].type||"listItemIndent"===l[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(i=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,i))}}return n4(e,0,1/0,c.slice(0)),!a}let rx={resolve:function(e){return rg(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?l(t):rr(t)?e.check(ry,i,l)(t):(e.consume(t),r)}function l(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},ry={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,l,"linePrefix")};function l(l){if(null===l||rr(l))return n(l);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}},rv={tokenize:function(e){let t=this,n=e.attempt(rf,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ru(e,e.attempt(this.parser.constructs.flow,r,e.attempt(rx,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},rb={resolveAll:rS()},rk=rj("string"),rw=rj("text");function rj(e){return{resolveAll:rS("text"===e?rC:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,o);return i;function i(e){return s(e)?l(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),l(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],l=-1;if(t)for(;++l<t.length;){let e=t[l];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function rS(e){return function(t,n){let r,l=-1;for(;++l<=t.length;)void 0===r?t[l]&&"data"===t[l][1].type&&(r=l,l++):t[l]&&"data"===t[l][1].type||(l!==r+2&&(t[r][1].end=t[l-1][1].end,t.splice(r+2,l-r-2),l=r+2),r=void 0);return e?e(t,n):t}}function rC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,l=e[n-1][1],i=t.sliceStream(l),o=i.length,a=-1,s=0;for(;o--;){let e=i[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:l.start._bufferIndex+a,_index:l.start._index+o,line:l.end.line,column:l.end.column-s,offset:l.end.offset-s},end:{...l.end}};l.end={...i.start},l.start.offset===l.end.offset?Object.assign(l,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function rN(e){return null===e||rl(e)||ra(e)?1:ro(e)?2:void 0}function rE(e,t,n){let r=[],l=-1;for(;++l<e.length;){let i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let rP={name:"attention",resolveAll:function(e,t){let n,r,l,i,o,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};rI(d,-a),rI(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[c][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=n5(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=n5(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),s=n5(s,rE(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=n5(s,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=n5(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,n4(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,l=this.previous,i=rN(l);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=rN(a),c=!u||2===u&&i||r.includes(a),d=!i||2===i&&u||r.includes(l);return s._open=!!(42===n?c:c&&(i||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function rI(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let rT={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return ri(t)?ru(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(rT,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),l}return n(t)};function l(n){return ri(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},rD={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return rn(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},rM=document.createElement("i");function rA(e){let t="&"+e+";";rM.innerHTML=t;let n=rM.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let rR={name:"characterReference",tokenize:function(e,t,n){let r,l,i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,l=n9,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=rt,u):(e.enter("characterReferenceValue"),r=7,l=re,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return l!==n9||rA(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return l(a)&&o++<r?(e.consume(a),u):n(a)}}},rL={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rz={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,l=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),ri(t)?ru(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(l){return l===r?(i++,e.consume(l),t):i>=a?(e.exit("codeFencedFenceSequence"),ri(l)?ru(e,u,"whitespace")(l):u(l)):n(l)}(t)):n(t)}function u(r){return null===r||rr(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var i;let u;return i=t,o=(u=l.events[l.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(l){return l===r?(a++,e.consume(l),t):a<3?n(l):(e.exit("codeFencedFenceSequence"),ri(l)?ru(e,s,"whitespace")(l):s(l))}(i)};function s(i){return null===i||rr(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(rL,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rr(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(l)):ri(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ru(e,u,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function u(t){return null===t||rr(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||rr(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(l)):96===l&&l===r?n(l):(e.consume(l),t)}(t))}function c(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&ri(t)?ru(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||rr(t)?e.check(rL,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||rr(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},rO={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),ru(e,l,"linePrefix",5)(t)};function l(t){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function t(n){return null===n?i(n):rr(n)?e.attempt(rF,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||rr(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},rF={partial:!0,tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):rr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):ru(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):rr(e)?l(e):n(e)}}};function r_(e,t,n,r,l,i,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(l),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||n7(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||rr(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(l){return!c&&(null===l||41===l||rl(l))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(l)):c<u&&40===l?(e.consume(l),c++,h):41===l?(e.consume(l),c--,h):null===l||32===l||40===l||n7(l)?n(l):(e.consume(l),92===l?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function rB(e,t,n,r,l,i){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(l),e.consume(t),e.exit(l),e.enter(i),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(l),e.consume(d),e.exit(l),e.exit(r),t):rr(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||rr(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!ri(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function rH(e,t,n,r,l,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===o?(e.exit(i),a(o)):null===t?n(t):rr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||rr(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function rU(e,t){let n;return function r(l){return rr(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):ri(l)?ru(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function rq(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rV={partial:!0,tokenize:function(e,t,n){return function(t){return rl(t)?rU(e,r)(t):n(t)};function r(t){return rH(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return ri(t)?ru(e,i,"whitespace")(t):i(t)}function i(e){return null===e||rr(e)?t(e):n(e)}}},rK=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rG=["pre","script","style","textarea"],r$={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rf,t,n)}}},rW={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return rr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n(t)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rX={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&n4(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,l,i,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(l){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(l=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[l-2][1].start}};return i=n5(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),i=n5(i,[["enter",c,t]]),i=n5(i,rE(t.parser.constructs.insideSpan.null,e.slice(r+a+4,l-3),t)),i=n5(i,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),i=n5(i,e.slice(l+1)),i=n5(i,[["exit",s,t]]),n4(e,r,e.length,i),e},tokenize:function(e,t,n){let r,l,i=this,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(t){return r?r._inactive?c(t):(l=i.parser.defined.includes(rq(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(rQ,u,l?u:c)(t):91===t?e.attempt(rY,u,l?s:c)(t):l?u(t):c(t)}function s(t){return e.attempt(rJ,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},rQ={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return rl(t)?rU(e,l)(t):l(t)}function l(t){return 41===t?u(t):r_(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return rl(t)?rU(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?rH(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return rl(t)?rU(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rY={tokenize:function(e,t,n){let r=this;return function(t){return rB.call(r,e,l,i,"reference","referenceMarker","referenceString")(t)};function l(e){return r.parser.defined.includes(rq(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},rJ={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},rZ={name:"labelStartImage",resolveAll:rX.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),l};function l(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},r0={name:"labelStartLink",resolveAll:rX.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),l};function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},r1={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ru(e,t,"linePrefix")}}},r2={name:"thematicBreak",tokenize:function(e,t,n){let r,l=0;return function(i){var o;return e.enter("thematicBreak"),r=o=i,function i(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),l++,t):(e.exit("thematicBreakSequence"),ri(n)?ru(e,i,"whitespace")(n):i(n))}(o)):l>=3&&(null===o||rr(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},r4={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(rf,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ru(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!ri(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r3,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,ru(e,e.attempt(r4,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,o=0;return function(t){let l=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===l?!r.containerState.marker||t===r.containerState.marker:re(t)){if(r.containerState.type||(r.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===t||45===t?e.check(r2,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return re(l)&&++o<10?(e.consume(l),t):(!r.interrupt||o<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):n(l)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rf,r.interrupt?n:s,e.attempt(r5,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return ri(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},r5={partial:!0,tokenize:function(e,t,n){let r=this;return ru(e,function(e){let l=r.events[r.events.length-1];return!ri(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},r3={partial:!0,tokenize:function(e,t,n){let r=this;return ru(e,function(e){let l=r.events[r.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},r6={name:"setextUnderline",resolveTo:function(e,t){let n,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end={...e[l][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,l=this;return function(t){var o;let a,s=l.events.length;for(;s--;)if("lineEnding"!==l.events[s][1].type&&"linePrefix"!==l.events[s][1].type&&"content"!==l.events[s][1].type){a="paragraph"===l.events[s][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),ri(n)?ru(e,i,"lineSuffix")(n):i(n))}(o)):n(t)};function i(r){return null===r||rr(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,l=this;return function(t){var r;return e.enter("definition"),r=t,rB.call(l,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=rq(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return rl(t)?rU(e,a)(t):a(t)}function a(t){return r_(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(rV,u,u)(t)}function u(t){return ri(t)?ru(e,c,"whitespace")(t):c(t)}function c(i){return null===i||rr(i)?(e.exit("definition"),l.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:r4,43:r4,45:r4,48:r4,49:r4,50:r4,51:r4,52:r4,53:r4,54:r4,55:r4,56:r4,57:r4,62:rT},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,l=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),l-2>i&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},n4(e,i,l-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){var i;return e.enter("atxHeading"),i=l,e.enter("atxHeadingSequence"),function l(i){return 35===i&&r++<6?(e.consume(i),l):null===i||rl(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||rr(r)?(e.exit("atxHeading"),t(r)):ri(r)?ru(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||rl(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:r2,45:[r6,r2],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,l,i,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),l=!0,f):63===o?(e.consume(o),r=3,s.interrupt?t:M):n6(o)?(e.consume(o),i=String.fromCharCode(o),h):n(o)}function c(l){return 45===l?(e.consume(l),r=2,d):91===l?(e.consume(l),r=5,o=0,p):n6(l)?(e.consume(l),r=4,s.interrupt?t:M):n(l)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:M):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(o++)?(e.consume(r),o===l.length)?s.interrupt?t:S:p:n(r)}function f(t){return n6(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||rl(o)){let a=47===o,u=i.toLowerCase();return!a&&!l&&rG.includes(u)?(r=1,s.interrupt?t(o):S(o)):rK.includes(i.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):S(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):l?function t(n){return ri(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||n9(o)?(e.consume(o),i+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||n6(t)?(e.consume(t),x):ri(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||n9(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):ri(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):ri(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||rl(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,k):null===t||rr(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||ri(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||rr(t)?S(t):ri(t)?(e.consume(t),j):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),A):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),D):rr(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(r$,R,C)(t)):null===t||rr(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),S)}function C(t){return e.check(rW,N,R)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||rr(t)?C(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),M):S(t)}function I(t){return 47===t?(e.consume(t),i="",T):S(t)}function T(t){if(62===t){let n=i.toLowerCase();return rG.includes(n)?(e.consume(t),A):S(t)}return n6(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),T):S(t)}function D(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),A):45===t&&2===r?(e.consume(t),M):S(t)}function A(t){return null===t||rr(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),A)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:r6,95:r2,96:rz,126:rz},"flowInitial",0,{[-2]:rO,[-1]:rO,32:rO},"insideSpan",0,{null:[rP,rb]},"string",0,{38:rR,92:rD},"text",0,{[-5]:r1,[-4]:r1,[-3]:r1,33:rZ,38:rR,42:rP,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return n6(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(t){return 43===t||45===t||46===t||n9(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||n9(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||n7(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):n8(t)?(e.consume(t),a):n(t)}function s(l){return n9(l)?function l(i){return 46===i?(e.consume(i),r=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||n9(i))&&r++<63){let n=45===i?t:l;return e.consume(i),n}return n(i)}(i)}(l):n(l)}}},{name:"htmlText",tokenize:function(e,t,n){let r,l,i,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):n6(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),l=0,f):n6(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):rr(t)?(i=c,T(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?I(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):rr(t)?(i=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?I(t):rr(t)?(i=x,T(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):rr(t)?(i=y,T(t)):(e.consume(t),y)}function v(e){return 62===e?I(e):y(e)}function b(t){return n6(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||n9(t)?(e.consume(t),k):function t(n){return rr(n)?(i=t,T(n)):ri(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||n9(t)?(e.consume(t),w):47===t||62===t||rl(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),I):58===t||95===t||n6(t)?(e.consume(t),S):rr(t)?(i=j,T(t)):ri(t)?(e.consume(t),j):I(t)}function S(t){return 45===t||46===t||58===t||95===t||n9(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),C):rr(n)?(i=t,T(n)):ri(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):rr(t)?(i=C,T(t)):ri(t)?(e.consume(t),C):(e.consume(t),E)}function N(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):rr(t)?(i=N,T(t)):(e.consume(t),N)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||rl(t)?j(t):(e.consume(t),E)}function P(e){return 47===e||62===e||rl(e)?j(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return ri(t)?ru(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),i(t)}}}],91:r0,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return rr(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},rD],93:rX,95:rP,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t<r;)if("codeTextData"===e[t][1].type){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(t=l-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,l,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(l=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(l.type="codeTextData",a(o))}(s)):rr(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||rr(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],19210);var r9=e.i(19210);let r8=/[\0\t\n\r]/g;function r7(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let le=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return r7(n.slice(t?2:1),t?16:10)}return rA(n)||e}let ln={}.hasOwnProperty;function lr(e){return{line:e.line,column:e.column,offset:e.offset}}function ll(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+nL({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nL({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+nL({start:t.start,end:t.end})+") is still open")}function li(e){let t=this;t.parser=function(n){var r,l;let i,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(f,l),codeText:r(function(){return{type:"inlineCode",value:""}},l),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,l),htmlFlowData:u,htmlText:r(g,l),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:l,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=r7(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=rA(n);let l=this.stack[this.stack.length-1];l.value+=t},characterReference:function(e){this.stack.pop().position.end=lr(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rq(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(le,lt),n.identifier=rq(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=lr(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rq(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let l=n[r];Array.isArray(l)?e(t,l):function(e,t){let n;for(n in t)if(ln.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,l)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:i,exit:a,buffer:l,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,l,i,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||i||(i=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(l=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",l=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!l||i<l)&&(r._spread=!0),r.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let l={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=l,e.splice(a,0,["enter",l,t[2]]),a++,n++,i=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ln.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ll).call(o,void 0,e[0])}for(r.position={start:lr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:lr(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ll).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nL({start:e.start,end:e.end})+"): it’s not open");n.position.end=lr(e.end)}function s(){var e;return e=this.stack.pop(),n1(e,"boolean"!=typeof n0.includeImageAlt||n0.includeImageAlt,"boolean"!=typeof n0.includeHtml||n0.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:lr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lr(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!rg(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,l=(n3.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){n3.call(l,r)||(l[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);n4(e,0,0,r)}(l[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r9,...(e||{}).extensions||[]]),content:n(rc),defined:[],document:n(rd),flow:n(rv),lazy:{},string:n(rk),text:n(rw)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},l={},i=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){rr(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){l[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,l=[];for(;++r<e.length;){let i,o=e[r];if("string"==typeof o)i=o;else switch(o){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(o)}n=-2===o,l.push(i)}return l.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=n5(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=rE(i,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,l=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;if(r===i)n=[e[r].slice(l,o)];else{if(n=e.slice(r,i),l>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:l,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:l,offset:i}}function f(e,t){t.restore()}function h(e,t){return function(n,l,i){var o;let c,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?i:x(e[d])}function x(e){return function(n){let l,i,o,c,d;return(l=p(),i=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=l,u.previous=i,u.currentConstruct=o,u.events.length=c,a=d,g()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(f,h),l}function v(e){return(h.restore(),++d<c.length)?x(c[d]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&n4(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}(t,e,n)}}})(l).document().write((o=1,a="",s=!0,function(e,t,n){let r,l,u,c,d,p=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(r8.lastIndex=u,c=(r=r8.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),u<c&&(p.push(e.slice(u,c)),o+=c-u),d){case 0:p.push(65533),o++;break;case 9:for(l=4*Math.ceil(o/4),p.push(-2);o++<l;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:i=!0,o=1}u=c+1}return n&&(i&&p.push(-5),a&&p.push(a),p.push(null)),p})(n,r,!0))))}}let lo="object"==typeof self?self:globalThis,la=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=l=>{if(t.has(l))return t.get(l);let[i,o]=e[l];switch(i){case 0:case -1:return n(o,l);case 1:{let e=n([],l);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},l);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),l);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),l)}case 5:{let e=n(new Map,l);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,l);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new lo[e](t),l)}case 8:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new lo[i](o),l)})(0)},{toString:ls}={},{keys:lu}=Object,lc=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=ls.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ld=([e,t])=>0===e&&("function"===t||"symbol"===t),lp=(e,{json:t,lossy:n}={})=>{var r,l,i;let o,a,s=[];return(r=!(t||n),l=!!t,i=new Map,o=(e,t)=>{let n=s.push(e)-1;return i.set(t,n),n},a=e=>{if(i.has(e))return i.get(e);let[t,n]=lc(e);switch(t){case 0:{let l=e;switch(n){case"bigint":t=8,l=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);l=null;break;case"undefined":return o([-1],e)}return o([t,l],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],l=o([t,r],e);for(let t of e)r.push(a(t));return l}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(l&&"toJSON"in e)return a(e.toJSON());let i=[],s=o([t,i],e);for(let t of lu(e))(r||!ld(lc(e[t])))&&i.push([a(t),a(e[t])]);return s}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],l=o([t,n],e);for(let[t,l]of e)(r||!(ld(lc(t))||ld(lc(l))))&&n.push([a(t),a(l)]);return l}case 6:{let n=[],l=o([t,n],e);for(let t of e)(r||!ld(lc(t)))&&n.push(a(t));return l}}let{message:s}=e;return o([t,{name:n,message:s}],e)})(e),s},lf="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?la(lp(e,t)):structuredClone(e):(e,t)=>la(lp(e,t));function lh(e){let t=[],n=-1,r=0,l=0;for(;++n<e.length;){let i=e.charCodeAt(n),o="";if(37===i&&n9(e.charCodeAt(n+1))&&n9(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function lm(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lg(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lx=function(e){var t,n;if(null==e)return lv;if("function"==typeof e)return ly(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lx(e[n]);return ly(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ly(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ly(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ly(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function lv(){return!0}let lb=[];function lk(e,t,n,r){var l,i,o;let a,s,u,c,d,p;"function"==typeof t&&"function"!=typeof n?(s=void 0,u=t,a=n):(s=t,u=n,a=r),l=s,i=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return u(e,r,n)},o=a,"function"==typeof l&&"function"!=typeof i?(o=i,i=l):c=l,d=lx(c),p=o?-1:1,(function e(t,n,r){let a=t&&"object"==typeof t?t:{};if("string"==typeof a.type){let e="string"==typeof a.tagName?a.tagName:"string"==typeof a.name?a.name:void 0;Object.defineProperty(s,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return s;function s(){var a;let s,u,c,f=lb;if((!l||d(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(a=i(t,r))?a:"number"==typeof a?[!0,a]:null==a?lb:[a])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(u=(o?t.children.length:-1)+p,c=r.concat(t);u>-1&&u<t.children.length;){if(!1===(s=e(t.children[u],u,c)())[0])return s;u="number"==typeof s[1]?s[1]:u+p}return f}})(e,void 0,[])()}function lw(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let l=e.all(t),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift({type:"text",value:"["});let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push({type:"text",value:r}),l}function lj(e){let t=e.spread;return null==t?e.children.length>1:t}function lS(e,t,n){let r=0,l=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(l-1);for(;9===t||32===t;)l--,t=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let lC={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),i=lh(l.toLowerCase()),o=e.footnoteOrder.indexOf(l),a=e.footnoteCounts.get(l);void 0===a?(a=0,e.footnoteOrder.push(l),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(l,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lw(e,t);let l={src:lh(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:lh(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lw(e,t);let l={href:lh(r.url||"")};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:lh(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),l=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lj(n[r])}return t}(n):lj(t),i={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(l||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||l?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(l||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),l=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++l<r.length;){let e=r[l];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),l=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),l.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=nA(t.children[1]),o=nM(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),l.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,l=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=i?i[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:l,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),l=0,i=[];for(;r;)i.push(lS(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(lS(t.slice(l),l>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lN,yaml:lN,definition:lN,footnoteDefinition:lN};function lN(){}let lE={}.hasOwnProperty,lP={};function lI(e,t){e.position&&(t.position=function(e){let t=nA(e),n=nM(e);if(t&&n)return{start:t,end:n}}(e))}function lT(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&l&&Object.assign(n.properties,lf(l)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lD(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function lM(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function lA(e,t){let n,r,l,i,o=(n=t||lP,r=new Map,l=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let l=i.one(n[r],e);if(l){if(r&&"break"===n[r-1].type&&(Array.isArray(l)||"text"!==l.type||(l.value=lM(l.value)),!Array.isArray(l)&&"element"===l.type)){let e=l.children[0];e&&"text"===e.type&&(e.value=lM(e.value))}Array.isArray(l)?t.push(...l):t.push(l)}}}return t},applyData:lT,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lC,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(lE.call(i.handlers,n)&&r)return r(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=lf(n);return r.children=i.all(e),r}return lf(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lE.call(n,"hProperties")||lE.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(i,e,t)},options:n,patch:lI,wrap:lD},lk(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:l,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),i),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lm,r=e.options.footnoteBackLabel||lg,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let l=e.footnoteById.get(e.footnoteOrder[s]);if(!l)continue;let i=e.all(l),o=String(l.identifier).toUpperCase(),u=lh(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(l,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...lf(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(t0("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function lR(e,t){return e&&"run"in e?async function(n,r){let l=lA(n,{file:r,...t});await e.run(l,r)}:function(n,r){return lA(n,{file:r,...e||t})}}function lL(e){if(e)throw e}var lz=e.i(75609);function lO(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let lF=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');lU(e);let r=0,l=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1);return l<0?"":e.slice(r,l)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(l=i):(a=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},l_=function(e){let t;if(lU(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},lB=function(e){let t;lU(e);let n=e.length,r=-1,l=0,i=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},lH=function(...e){var t;let n,r,l,i=-1;for(;++i<e.length;)lU(e[i]),e[i]&&(l=void 0===l?e[i]:l+"/"+e[i]);return void 0===l?".":(lU(t=l),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,l="",i=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(l.length<2||2!==i||46!==l.codePointAt(l.length-1)||46!==l.codePointAt(l.length-2)){if(l.length>2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=s,a=0;continue}}else if(l.length>0){l="",i=0,o=s,a=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,s):l=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return l}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function lU(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function lq(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let lV=["history","path","basename","stem","extname","dirname"];class lK{constructor(e){let t,n;t=e?lq(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lV.length;){const e=lV[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)lV.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?lF(this.path):void 0}set basename(e){l$(e,"basename"),lG(e,"basename"),this.path=lH(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?l_(this.path):void 0}set dirname(e){lW(this.basename,"dirname"),this.path=lH(e||"",this.basename)}get extname(){return"string"==typeof this.path?lB(this.path):void 0}set extname(e){if(lG(e,"extname"),lW(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=lH(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lq(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!lq(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),l$(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?lF(this.path,this.extname):void 0}set stem(e){l$(e,"stem"),lG(e,"stem"),this.path=lH(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new n_(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function lG(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function l$(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lW(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let lX=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},lQ={}.hasOwnProperty;class lY extends lX{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function l(i,...o){let a=e[++n],s=-1;if(i)return void r(i);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let i,o=e.length>t.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...l){n||(n=!0,t(e,...l))}function l(e){r(null,e)}})(a,l)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new lY,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,lz.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(l1("data",this.frozen),this.namespace[e]=t,this):lQ.call(this.namespace,e)&&this.namespace[e]||void 0:e?(l1("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=l5(e),n=this.parser||this.Parser;return lZ("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lZ("process",this.parser||this.Parser),l0("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,l){let i=l5(e),o=n.parse(i);function a(e,n){e||!n?l(e):r?r(n):(t0(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,i,function(e,t,r){var l,i;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(l=o)||(i=l)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),lZ("processSync",this.parser||this.Parser),l0("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,lL(e),t=r}),l4("processSync","process",n),t0(t,"we either bailed on an error or have a tree"),t}run(e,t,n){l2(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?l(void 0,n):new Promise(l);function l(l,i){t0("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=l5(t);r.run(e,o,function(t,r,o){let a=r||e;t?i(t):l?l(a):(t0(n,"`done` is defined if `resolve` is not"),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){lL(e),n=t,r=!0}),l4("runSync","run",r),t0(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=l5(t),r=this.compiler||this.Compiler;return l0("stringify",r),l2(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(l1("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?i(e):l(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function l(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=(0,lz.default)(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else l(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,l=-1;for(;++r<n.length;)if(n[r][0]===e){l=r;break}if(-1===l)n.push([e,...t]);else if(t.length>0){let[r,...i]=t,o=n[l][1];lO(o)&&lO(r)&&(r=(0,lz.default)(!0,o,r)),n[l]=[e,r,...i]}}}}let lJ=new lY().freeze();function lZ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function l0(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function l1(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l2(e){if(!lO(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function l4(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function l5(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new lK(e)}let l3=[],l6={allowDangerousHtml:!0},l9=/^(https?|ircs?|mailto|xmpp)$/i,l8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function l7(e){var n;let r,l,i,o,a,s=(r=(n=e).rehypePlugins||l3,l=n.remarkPlugins||l3,i=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...l6}:l6,lJ().use(li).use(l).use(lR,i).use(r)),u=(o=e.children||"",a=new lK,"string"==typeof o?a.value=o:t1("Unexpected value `"+o+"` for `children` prop, expected `string`"),a);return function(e,n){let r=n.allowedElements,l=n.allowElement,i=n.components,o=n.disallowedElements,a=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||ie;for(let e of l8)Object.hasOwn(n,e.from)&&t1("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return r&&o&&t1("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),lk(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nZ)if(Object.hasOwn(nZ,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nZ[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let i=r?!r.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&l&&"number"==typeof t&&(i=!l(e,t,n)),i&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,l,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,l,i){let o=Array.isArray(l.children),a=nA(e);return r(t,l,i,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");l=t.jsx,i=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?i:l;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?nT:nI,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=nG(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:i,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function ie(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==n&&t>n||-1!==r&&t>r||l9.test(e.slice(0,t))?e:""}let it=(0,s.default)("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]),ir=(0,s.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),il={p:({children:e})=>(0,t.jsx)("p",{className:"text-muted-foreground mb-2 text-xs leading-relaxed last:mb-0",children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"text-foreground font-semibold",children:e}),em:({children:e})=>(0,t.jsx)("em",{className:"italic",children:e}),code:({children:e,className:n})=>n?(0,t.jsx)("code",{className:`${n} text-[11px]`,children:e}):(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e}),pre:({children:e})=>(0,t.jsx)("pre",{className:"bg-muted my-2 overflow-x-auto rounded-lg border p-3",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"text-muted-foreground mb-2 list-disc space-y-1 pl-4 text-xs",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"text-muted-foreground mb-2 list-decimal space-y-1 pl-4 text-xs",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),a:({children:e,href:n})=>(0,t.jsx)("a",{href:n,className:"text-primary underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:e})};function ii({decision:e,index:r}){let[l,i]=(0,n.useState)(!1),o=(0,w.useSoundAction)("expand"),a=(0,w.useSoundAction)("collapse");return(0,t.jsxs)("div",{className:"border-border rounded-lg border",children:[(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:r+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-xs",children:e.chosen})]})]}),"decisionName"in e&&e.decisionName?(0,t.jsx)(T.Badge,{variant:"secondary",className:"bg-primary/10 text-primary shrink-0",children:e.decisionName}):null]}),e.rationale?(0,t.jsx)(l7,{components:il,children:e.rationale}):null]}),e.rejected.length>0?(0,t.jsxs)("div",{className:"border-border border-t",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{l?a.play():o.play(),i(e=>!e)},className:"text-muted-foreground hover:bg-muted/50 flex w-full items-center gap-1.5 px-4 py-3 text-xs font-medium transition-colors",children:[(0,t.jsx)(tz,{className:`h-3.5 w-3.5 transition-transform ${l?"rotate-90":""}`}),(0,t.jsx)(ir,{className:"h-3.5 w-3.5"}),"Other Options Considered (",e.rejected.length,")"]}),l?(0,t.jsx)("div",{className:"space-y-1.5 px-4 pb-3",children:e.rejected.map(e=>(0,t.jsx)("div",{className:"bg-primary/5 rounded-md px-3 py-2",children:(0,t.jsx)("span",{className:"text-foreground text-xs",children:e})},e))}):null]}):null]})}function io({data:e}){let{summary:n,decisions:r}=e;return 0===r.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Technical Implementation Plan Review"}),n?(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:n}):null]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)(it,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Technical Decisions"})]}),r.map((e,n)=>(0,t.jsx)(ii,{decision:e,index:n},e.title))]})}let ia=(0,s.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);function is({item:e,index:n}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsx)("div",{className:"space-y-2 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"text-foreground text-sm leading-tight font-semibold",children:e.question}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:e.selectedOption}),e.wasRecommended?(0,t.jsx)(T.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null]})]})]})})})}function iu({data:e}){let{questions:n}=e;return 0===n.length?null:(0,t.jsxs)("div",{className:"space-y-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(ia,{className:"text-primary h-4 w-4"}),(0,t.jsx)("h3",{className:"text-foreground text-sm font-bold",children:"Product Decisions"})]}),n.map((e,n)=>(0,t.jsx)(is,{item:e,index:n},e.question))]})}function ic({techData:e,productData:n,onApprove:r,onReject:l,isProcessing:o=!1,isRejecting:a=!1,chatInput:s,onChatInputChange:u}){return 0===e.decisions.length?null:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)(tZ.Tabs,{defaultValue:"technical",className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"shrink-0 px-4 pt-4",children:(0,t.jsxs)(tZ.TabsList,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(tZ.TabsTrigger,{value:"product",children:"Product"}),(0,t.jsx)(tZ.TabsTrigger,{value:"technical",children:"Technical"})]})}),(0,t.jsx)(tZ.TabsContent,{value:"product",className:"mt-0 flex-1 overflow-y-auto",children:null===n?(0,t.jsx)("div",{className:"flex items-center justify-center p-8","data-testid":"product-loading",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):n?(0,t.jsx)(iu,{data:n}):(0,t.jsx)("p",{className:"text-muted-foreground p-4 text-center text-sm",children:"No product decisions available."})}),(0,t.jsx)(tZ.TabsContent,{value:"technical",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(io,{data:e})})]}),(0,t.jsx)(tW,{onReject:l,onApprove:r,approveLabel:"Approve Plan",approveIcon:(0,t.jsx)(G.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise the plan...",isProcessing:o,isRejecting:a,chatInput:s,onChatInputChange:u})]})}var id=e.i(28201);let ip=(0,s.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ih=(0,s.default)("file-diff",[["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:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);var im=e.i(49228);let ig=(0,s.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ix({phases:e}){return(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(ir,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Implementation Phases"})]}),(0,t.jsx)("ol",{className:"space-y-2",children:e.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-100 text-[10px] font-bold text-emerald-700",children:n+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground text-xs font-medium",children:e.name}),e.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px] leading-relaxed",children:e.description}):null]})]},e.id))})]})})}function iy({data:e,onApprove:n,onReject:r,isProcessing:l=!1,isRejecting:o=!1,chatInput:s,onChatInputChange:c}){let{pr:d,diffSummary:p,phases:f,branch:h,warning:m}=e;return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-emerald-500"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-foreground text-sm font-bold",children:"Merge Review"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:d?"Review the pull request details and approve to merge.":"Review the changes and approve to merge."})]})]}),h?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(im.GitBranch,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)(T.Badge,{variant:"secondary",className:"font-mono text-[11px]",children:h.source}),(0,t.jsx)(ig,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,t.jsx)(T.Badge,{variant:"outline",className:"font-mono text-[11px]",children:h.target})]})}):null,d?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:d.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",d.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(T.Badge,{variant:"outline",className:"text-xs",children:d.status})]}),d.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(_,{status:d.ciStatus})]}):null,d.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:d.commitHash.slice(0,7)})]})]}):null]})}):null,p?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)(ih,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("span",{className:"text-foreground text-xs font-semibold",children:"Changes"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-3",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:p.filesChanged}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"files"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-green-600",children:["+",p.additions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"additions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"text-sm font-bold text-red-600",children:["-",p.deletions]}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"deletions"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-bold",children:p.commitCount}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"commits"})]})]})]})}):m?(0,t.jsx)("div",{className:"border-border rounded-lg border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,t.jsx)(ip,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:m})]})}):null,f&&f.length>0?(0,t.jsx)(ix,{phases:f}):null]}),(0,t.jsx)(tW,{onReject:r,onApprove:n,approveLabel:"Approve Merge",approveIcon:l?(0,t.jsx)(i.Loader2,{className:"mr-1.5 h-4 w-4 animate-spin"}):(0,t.jsx)(id.GitMerge,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise before merging...",isProcessing:l,isRejecting:o,chatInput:s,onChatInputChange:c})]})}e.i(47506);var iv=e.i(2929),ib=e.i(99045);function ik({view:e}){let a,s=(0,r.useRouter)(),u=(0,w.useSoundAction)("delete"),p=(0,w.useSoundAction)("reject"),[f,T]=(0,n.useState)(e);(0,n.useEffect)(()=>{T(e)},[e]);let A="feature"===f.type||"prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,{events:R}=(0,C.useAgentEventsContext)(),L=(0,n.useRef)(0);(0,n.useEffect)(()=>{if(!A||R.length<=L.current)return;let e=R.slice(L.current);for(let t of(L.current=R.length,e)){if(t.featureId!==A.featureId)continue;let e=(0,ib.mapEventTypeToState)(t.eventType),n=(0,ib.mapPhaseNameToLifecycle)(t.phaseName);eb.current||ep.current||s.refresh(),T(t=>"feature"!==t.type&&"prd-review"!==t.type&&"tech-review"!==t.type&&"merge-review"!==t.type?t:{...t,node:{...t.node,state:e,...void 0!==n&&{lifecycle:n}}})}},[R,A,s]);let O=(0,r.usePathname)().startsWith("/feature/"),F=(0,n.useCallback)(()=>{s.push("/")},[s]),[_,H]=(0,n.useState)(""),[U,q]=(0,n.useState)(null),[V,K]=(0,n.useState)({}),[G,$]=(0,n.useState)({}),[W,X]=(0,n.useState)(!1),[Q,Y]=(0,n.useState)(null),[J,Z]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(void 0),[en,er]=(0,n.useState)(!1),[el,ei]=(0,n.useState)(null),[eo,ea]=(0,n.useState)(!1),[es,eu]=(0,n.useState)(!1),[ec,ed]=(0,n.useState)(!1),ep=(0,n.useRef)(!1),ef=f.type;(0,n.useEffect)(()=>{H("")},[ef]);let eh="prd-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(K({}),$({}),q(null),!eh)return;let e=!1;return X(!0),g(eh).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);if(t.questionnaire){q(t.questionnaire);let e={};for(let n of t.questionnaire.questions){let t=n.options.find(e=>e.recommended);t&&(e[n.id]=t.id)}K(e),$(e)}}}).catch(()=>{e||l.toast.error("Failed to load questionnaire")}).finally(()=>{e||X(!1)}),()=>{e=!0}},[eh]);let em="tech-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(Y(null),!em)return;let e=!1;return Z(!0),x(em).then(t=>{if(!e){if(t.error)return void l.toast.error(t.error);t.techDecisions&&Y(t.techDecisions)}}).catch(()=>{e||l.toast.error("Failed to load tech decisions")}).finally(()=>{e||Z(!1)}),()=>{e=!0}},[em]),(0,n.useEffect)(()=>{if(et(void 0),!em)return;let e=!1;return er(!0),g(em).then(t=>{!e&&t.productDecisions&&et(t.productDecisions)}).catch(()=>{}).finally(()=>{e||er(!1)}),()=>{e=!0}},[em]);let eg="merge-review"===f.type?f.node.featureId:null;(0,n.useEffect)(()=>{if(ei(null),!eg)return;let e=!1;return ea(!0),y(eg).then(t=>{if(!e){if("error"in t)return void l.toast.error(t.error);ei(t)}}).catch(()=>{e||l.toast.error("Failed to load merge review data")}).finally(()=>{e||ea(!1)}),()=>{e=!0}},[eg]);let ex=_.trim().length>0,ey="prd-review"===f.type&&Object.keys(G).some(e=>G[e]!==V[e]),ev=ex||ey,eb=(0,n.useRef)(ev);eb.current=ev;let ek=(0,n.useCallback)(()=>{H(""),K({...G})},[G]),{attemptClose:ew}=(0,j.useGuardedDrawerClose)({open:O,isDirty:ev,onClose:F,onReset:ek}),ej="prd-review"===f.type||"tech-review"===f.type||"merge-review"===f.type?f.node:null,eS=(0,n.useCallback)(async(e,t,n)=>{if(ej?.featureId){ep.current=!0,ed(!0);try{let r=await m(ej.featureId,e);if(!r.rejected)return void l.toast.error(r.error??`Failed to reject ${t.toLowerCase()}`);p.play(),H(""),l.toast.success(`${t} rejected — agent re-iterating (iteration ${r.iteration})`),r.iterationWarning&&l.toast.warning(`Iteration ${r.iteration} — consider approving or adjusting feedback to avoid excessive iterations`),F(),n?.()}finally{ep.current=!1,ed(!1)}}},[ej,F,p]),eC=(0,n.useCallback)(e=>eS(e,"Requirements",()=>K({})),[eS]),eN=(0,n.useCallback)(e=>eS(e,"Plan"),[eS]),eE=(0,n.useCallback)(e=>eS(e,"Merge"),[eS]),eP=(0,n.useCallback)(async e=>{if(!ej?.featureId)return;let t=await h(ej.featureId);t.approved?(H(""),l.toast.success(`${e} approved — agent resuming`),F()):l.toast.error(t.error??`Failed to approve ${e.toLowerCase()}`)},[ej,F]),eI=(0,n.useCallback)(async e=>{let t;if("prd-review"!==f.type)return;if(U){let e=[];for(let[t,n]of Object.entries(V)){let r=U.questions.find(e=>e.id===t),l=r?.options.find(e=>e.id===n);r&&l&&e.push({questionId:r.question,selectedOption:l.label})}t={approved:!0,changedSelections:e}}let n=await h(f.node.featureId,t);n.approved?(H(""),l.toast.success("Requirements approved — agent resuming"),K({}),F()):l.toast.error(n.error??"Failed to approve requirements")},[f,U,V,F]),eT=(0,n.useCallback)(()=>eP("Plan"),[eP]),eD=(0,n.useCallback)(()=>eP("Merge"),[eP]),eM=(0,n.useCallback)(async e=>{eu(!0);try{let t=await (0,v.deleteFeature)(e);if(t.error)return void l.toast.error(t.error);u.play(),l.toast.success("Feature deleted successfully"),s.push("/"),s.refresh()}catch{l.toast.error("Failed to delete feature")}finally{eu(!1)}},[s,u]),eA=A?.repositoryPath&&A?.branch?{repositoryPath:A.repositoryPath,branch:A.branch,specPath:A.specPath}:null,eR=function(e){let[t,r]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[s,u]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[p,f]=(0,n.useState)(null),h=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=h.current,t=m.current,n=g.current;return()=>{e&&clearTimeout(e),t&&clearTimeout(t),n&&clearTimeout(n)}},[]);let x=(0,n.useCallback)(async(t,n,r,l,i)=>{if(e&&!i){l.current&&clearTimeout(l.current),n(!0),r(null);try{let n=await t({repositoryPath:e.repositoryPath,branch:e.branch});if(!n.success){let e=n.error??"An unexpected error occurred";r(e),l.current=setTimeout(()=>r(null),5e3)}}catch(e){r(e instanceof Error?e.message:"An unexpected error occurred"),l.current=setTimeout(()=>r(null),5e3)}finally{n(!1)}}},[e]);return{openInIde:(0,n.useCallback)(()=>x(tQ.openIde,r,u,h,t),[x,t]),openInShell:(0,n.useCallback)(()=>x(tY.openShell,i,d,m,l),[x,l]),openSpecsFolder:(0,n.useCallback)(async()=>{if(e?.specPath&&!o){g.current&&clearTimeout(g.current),a(!0),f(null);try{let t=await (0,tJ.openFolder)(e.specPath);if(!t.success){let e=t.error??"An unexpected error occurred";f(e),g.current=setTimeout(()=>f(null),5e3)}}catch(e){f(e instanceof Error?e.message:"An unexpected error occurred"),g.current=setTimeout(()=>f(null),5e3)}finally{a(!1)}}},[e,o]),ideLoading:t,shellLoading:l,specsLoading:o,ideError:s,shellError:c,specsError:p}}(eA),eL=A?.repositoryPath&&A.branch?{targetId:A.featureId,targetType:"feature",repositoryPath:A.repositoryPath,branch:A.branch}:null,ez=(0,S.useDeployAction)(eL),eO="Booting"===ez.status||"Ready"===ez.status;A&&(a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-header",children:[(0,t.jsx)(P.DrawerTitle,{children:A.name}),A.description?(0,t.jsx)(P.DrawerDescription,{children:A.description}):A.featureId?(0,t.jsx)(P.DrawerDescription,{className:"sr-only",children:A.featureId}):null]}),eA?(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,t.jsx)(tV,{actions:eR,repositoryPath:eA.repositoryPath,showSpecs:!!eA.specPath}),k.featureFlags.envDeploy&&eL?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.TooltipProvider,{children:(0,t.jsxs)(M.Tooltip,{children:[(0,t.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(B.ActionButton,{label:eO?"Stop Dev Server":"Start Dev Server",onClick:eO?ez.stop:ez.deploy,loading:ez.deployLoading||ez.stopLoading,error:!!ez.deployError,icon:eO?d.Square:c.Play,iconOnly:!0,variant:"outline",size:"icon-sm"})})}),(0,t.jsx)(M.TooltipContent,{children:eO?"Stop Dev Server":"Start Dev Server"})]})}),eO?(0,t.jsx)(E.DeploymentStatusBadge,{status:ez.status,url:ez.url,targetId:eL?.targetId}):null]}):null,A.featureId?(0,t.jsxs)(z.AlertDialog,{children:[(0,t.jsx)(z.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(I.Button,{variant:"ghost",size:"icon-sm","aria-label":"Delete feature",disabled:es,className:"text-muted-foreground hover:text-destructive ml-auto","data-testid":"feature-drawer-delete",children:es?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(o.Trash2,{className:"size-4"})})}),(0,t.jsxs)(z.AlertDialogContent,{children:[(0,t.jsxs)(z.AlertDialogHeader,{children:[(0,t.jsx)(z.AlertDialogTitle,{children:"Delete feature?"}),(0,t.jsxs)(z.AlertDialogDescription,{children:["This will permanently delete ",(0,t.jsx)("strong",{children:A.name})," (",A.featureId,"). This action cannot be undone.","running"===A.state?(0,t.jsx)(t.Fragment,{children:" This feature has a running agent that will be stopped."}):null]})]}),(0,t.jsxs)(z.AlertDialogFooter,{children:[(0,t.jsx)(z.AlertDialogCancel,{disabled:es,children:"Cancel"}),(0,t.jsx)(z.AlertDialogAction,{variant:"destructive",disabled:es,onClick:()=>eM(A.featureId),children:es?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Deleting…"]}):"Delete"})]})]})]}):null]}):null]}));let eF=null;return"feature"===f.type&&A?eF=(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-status",className:"flex flex-col gap-3 p-4",children:[(0,t.jsx)("div",{className:"text-muted-foreground text-xs font-semibold tracking-wider",children:iv.lifecycleDisplayLabels[A.lifecycle]}),(0,t.jsx)(iw,{data:A}),A.progress>0?(0,t.jsxs)("div",{"data-testid":"feature-drawer-progress",className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"text-muted-foreground flex items-center justify-between text-xs",children:[(0,t.jsx)("span",{children:"Progress"}),(0,t.jsxs)("span",{children:[A.progress,"%"]})]}),(0,t.jsx)("div",{className:"bg-muted h-2 w-full overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:(0,b.cn)("h-full rounded-full transition-all",iv.featureNodeStateConfig[A.state].progressClass),style:{width:`${A.progress}%`}})})]}):null]}),A.pr?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Separator,{}),(0,t.jsx)(ij,{pr:A.pr})]}):null,(0,t.jsx)(iS,{data:A})]}):"prd-review"===f.type?eF=U?(0,t.jsx)(tX,{data:U,selections:V,onSelect:(e,t)=>K(n=>({...n,[e]:t})),onApprove:eI,onReject:eC,isProcessing:W,isRejecting:ec,chatInput:_,onChatInputChange:H}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"tech-review"===f.type?eF=Q?(0,t.jsx)(ic,{techData:Q,productData:en?null:ee,onApprove:eT,onReject:eN,isProcessing:J,isRejecting:ec,chatInput:_,onChatInputChange:H}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):"merge-review"===f.type&&(eF=el?(0,t.jsx)(iy,{data:el,onApprove:eD,onReject:eE,isProcessing:eo,isRejecting:ec,chatInput:_,onChatInputChange:H}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})})),(0,t.jsx)(N.BaseDrawer,{open:O,onClose:ew,size:"md",modal:!1,header:a,"data-testid":"feature"===f.type?"feature-drawer":"repository"===f.type?"repository-drawer":"review-drawer",children:eF})}function iw({data:e}){let n=iv.featureNodeStateConfig[e.state],r=n.icon;return(0,t.jsxs)("div",{className:(0,b.cn)("flex items-center gap-2 rounded-full px-3 py-1.5 text-sm font-medium",n.badgeBgClass,n.badgeClass),children:["running"===e.state?(0,t.jsx)(L,{size:"sm",className:"shrink-0"}):(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:n.label})]})}function ij({pr:e}){let n={[p.PrStatus.Open]:"border-transparent bg-blue-50 text-blue-700 hover:bg-blue-50",[p.PrStatus.Merged]:"border-transparent bg-purple-50 text-purple-700 hover:bg-purple-50",[p.PrStatus.Closed]:"border-transparent bg-red-50 text-red-700 hover:bg-red-50"};return(0,t.jsx)("div",{"data-testid":"feature-drawer-pr",className:"border-border mx-4 rounded-lg border",children:(0,t.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2",children:["PR #",e.number,(0,t.jsx)(a.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(T.Badge,{className:n[e.status],children:e.status})]}),e.ciStatus?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"CI Status"}),(0,t.jsx)(_,{status:e.ciStatus})]}):null,e.commitHash?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Commit"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("code",{className:"bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]",children:e.commitHash.slice(0,7)})]})]}):null]})})}function iS({data:e}){return e.agentType??e.runtime??e.blockedBy??e.errorMessage?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Separator,{}),(0,t.jsxs)("div",{"data-testid":"feature-drawer-details",className:"flex flex-col gap-3 p-4",children:[e.agentType?(0,t.jsx)(iC,{label:"Agent",value:e.agentType}):null,e.runtime?(0,t.jsx)(iC,{label:"Runtime",value:e.runtime}):null,e.blockedBy?(0,t.jsx)(iC,{label:"Blocked by",value:e.blockedBy}):null,e.errorMessage?(0,t.jsx)(iC,{label:"Error",value:e.errorMessage}):null]})]}):null}function iC({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:e}),(0,t.jsx)("span",{className:"text-sm",children:n})]})}e.s(["FeatureDrawerClient",()=>ik],36986)}]);
|