@shepai/cli 1.85.0 → 1.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packages/core/src/application/ports/output/services/worktree-service.interface.d.ts +2 -1
- package/dist/packages/core/src/application/ports/output/services/worktree-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/cleanup-feature-worktree.use-case.d.ts +22 -0
- package/dist/packages/core/src/application/use-cases/features/cleanup-feature-worktree.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/cleanup-feature-worktree.use-case.js +76 -0
- package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.d.ts +7 -2
- 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 +29 -15
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +5 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +3 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.d.ts +2 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.js +3 -0
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts +1 -1
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.js +6 -2
- package/dist/src/presentation/cli/commands/feat/del.command.d.ts +3 -1
- package/dist/src/presentation/cli/commands/feat/del.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/del.command.js +19 -2
- package/dist/src/presentation/web/app/actions/delete-feature.d.ts +1 -1
- package/dist/src/presentation/web/app/actions/delete-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/delete-feature.js +4 -2
- 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 +5 -4
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog-config.d.ts +9 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog-config.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog-config.js +1 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.d.ts +3 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.js +16 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.stories.d.ts +8 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.stories.js +25 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/index.d.ts +3 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/index.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/delete-feature-dialog/index.js +1 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +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 +5 -7
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -1
- 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 +2 -2
- package/dist/src/presentation/web/lib/derive-graph.d.ts +1 -1
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- 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/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 +18 -18
- 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 +21 -21
- 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 +14 -14
- 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 +18 -18
- 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 +21 -21
- 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 +14 -14
- 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 +14 -14
- 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.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/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.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/tools/page.js.nft.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.js.nft.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_da7eef33.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_da7eef33.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_0a9251aa.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_0a9251aa.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__17143953._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__17143953._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4be9a9bb._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4be9a9bb._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9de266fa._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9de266fa._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3a4cef4._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3a4cef4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f0d8d054._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js +3 -0
- package/web/.next/server/chunks/ssr/{_63868199._.js.map → _135edb9c._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_5860e4e2._.js +3 -0
- package/web/.next/server/chunks/ssr/_5860e4e2._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_752e01fd._.js +3 -0
- package/web/.next/server/chunks/ssr/_752e01fd._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_6bffa94a._.js → _a2ec151c._.js} +2 -2
- package/web/.next/server/chunks/ssr/_a2ec151c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a68d7e1c._.js +1 -1
- package/web/.next/server/chunks/ssr/_a68d7e1c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js +3 -0
- package/web/.next/server/chunks/ssr/{_1e3cf73b._.js.map → _cc77a143._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_e6f2da4f._.js +7 -0
- package/web/.next/server/chunks/ssr/{_34fbed18._.js.map → _e6f2da4f._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_021a05f2.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_021a05f2.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c4348b8a._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_c4348b8a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js.map +1 -0
- 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/chunks/ssr/src_presentation_web_e4510d10._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_e4510d10._.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 +28 -28
- package/web/.next/static/chunks/{31c1e96c4cfeb16b.js → 20e5c07abd2699c2.js} +2 -2
- package/web/.next/static/chunks/673af06602f590f0.js +1 -0
- package/web/.next/static/chunks/8b59757e9f52e364.js +1 -0
- package/web/.next/static/chunks/{26f58bbf4766e1c4.js → 98b1c6b413aeb539.js} +1 -1
- package/web/.next/static/chunks/ba99f8c298491782.js +1 -0
- package/web/.next/static/chunks/c267885c32e4091c.js +1 -0
- package/web/.next/static/chunks/c2e2e1720b4f9a1a.js +1 -0
- package/web/.next/static/chunks/c481a0ab2ddddbf4.js +1 -0
- package/web/.next/static/chunks/{5b707c839eafb404.js → e49abd7c0c1cdef2.js} +2 -2
- package/web/.next/static/chunks/eafcdd214c540495.js +1 -0
- package/web/.next/server/chunks/ssr/_1e3cf73b._.js +0 -3
- package/web/.next/server/chunks/ssr/_34fbed18._.js +0 -7
- package/web/.next/server/chunks/ssr/_63868199._.js +0 -3
- package/web/.next/server/chunks/ssr/_6bffa94a._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_d42594dd._.js +0 -3
- package/web/.next/server/chunks/ssr/_d42594dd._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_d80c1060._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_d80c1060._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_80b5b4bc._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_components_80b5b4bc._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_82416b8f._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_components_82416b8f._.js.map +0 -1
- package/web/.next/static/chunks/79f610312f57dc66.js +0 -1
- package/web/.next/static/chunks/8fa4bf83842a3389.js +0 -1
- package/web/.next/static/chunks/c9333b53106c0ca9.js +0 -1
- package/web/.next/static/chunks/ce7a578a83924232.js +0 -1
- package/web/.next/static/chunks/d8e93250744112df.js +0 -1
- package/web/.next/static/chunks/da7d7608abd1032f.js +0 -1
- package/web/.next/static/chunks/df38705b7992b33f.js +0 -1
- /package/web/.next/static/{Lf0zFNsMS4qCNRm_LSgya → VCU_mY2u0y_7bLsvmLjyS}/_buildManifest.js +0 -0
- /package/web/.next/static/{Lf0zFNsMS4qCNRm_LSgya → VCU_mY2u0y_7bLsvmLjyS}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{Lf0zFNsMS4qCNRm_LSgya → VCU_mY2u0y_7bLsvmLjyS}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
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*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\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(a);if(t){if(y(),!g(o))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=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(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(o,u):e.replace(a,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,a=Object.getOwnPropertyDescriptor,o=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(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,l,i,a,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=o(l)))?(i?(i=!1,a=r&&o(r)?r:[]):a=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,a,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),a=e.i(67669),o=e.i(24042),s=e.i(64970),u=e.i(33548),c=e.i(23925),d=e.i(8986),p=e.i(30702),f=e.i(21023);let h=(0,f.createServerReference)("60da26e09d58faebc0366c0b960fae1afb640e5881",f.callServer,void 0,f.findSourceMapURL,"approveFeature"),m=(0,f.createServerReference)("60761a04d6718da6ed7249c2793072ee4c7d7888cb",f.callServer,void 0,f.findSourceMapURL,"rejectFeature"),g=(0,f.createServerReference)("40514de19f9a02de7553024416cb2abac2acea2a20",f.callServer,void 0,f.findSourceMapURL,"getFeatureArtifact"),x=(0,f.createServerReference)("400f21e6a57d13c2a0dd2a5a58c0dc0f62dd5eb360",f.callServer,void 0,f.findSourceMapURL,"getResearchArtifact"),y=(0,f.createServerReference)("4019804eb7250c2874ec95b53f04d53603e5d426e8",f.callServer,void 0,f.findSourceMapURL,"getMergeReviewData");var v=e.i(74969),b=e.i(75921),k=e.i(8361),w=e.i(30153),j=e.i(8537),N=e.i(39443);e.i(1650);var C=e.i(11495);e.i(99348);var S=e.i(17466),E=e.i(45811),I=e.i(35364),P=e.i(2828),M=e.i(71326);e.i(81803);var T=e.i(72714),R=e.i(38573),D=e.i(19933),A=e.i(99105),L=e.i(51251),z=e.i(91967),O=e.i(5978),F=e.i(22528),_=e.i(36589),B=e.i(87620),H=e.i(87342),U=e.i(66033),q=e.i(53532),V=e.i(41687),$=e.i(56720),K=e.i(13123),W=e.i(52740),G=e.i(39979),Q=e.i(85995),X=e.i(51080),J=e.i(86874),Y=e.i(29297),Z=e.i(73772),ee=e.i(13044),et=["Enter"," "],en=["ArrowUp","PageDown","End"],er=["ArrowDown","PageUp","Home",...en],el={ltr:[...et,"ArrowRight"],rtl:[...et,"ArrowLeft"]},ei={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[eo,es,eu]=(0,H.createCollection)(ea),[ec,ed]=(0,F.createContextScope)(ea,[eu,W.createPopperScope,X.createRovingFocusGroupScope]),ep=(0,W.createPopperScope)(),ef=(0,X.createRovingFocusGroupScope)(),[eh,em]=ec(ea),[eg,ex]=ec(ea),ey=e=>{let{__scopeMenu:r,open:l=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=e,u=ep(r),[c,d]=n.useState(null),p=n.useRef(!1),f=(0,Y.useCallbackRef)(o),h=(0,U.useDirection)(a);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)(W.Root,{...u,children:(0,t.jsx)(eh,{scope:r,open:l,onOpenChange:f,content:c,onContentChange:d,children:(0,t.jsx)(eg,{scope:r,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};ey.displayName=ea;var ev=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=ep(r);return(0,t.jsx)(W.Anchor,{...i,...l,ref:n})});ev.displayName="MenuAnchor";var eb="MenuPortal",[ek,ew]=ec(eb,{forceMount:void 0}),ej=e=>{let{__scopeMenu:n,forceMount:r,children:l,container:i}=e,a=em(eb,n);return(0,t.jsx)(ek,{scope:n,forceMount:r,children:(0,t.jsx)(Q.Presence,{present:r||a.open,children:(0,t.jsx)(G.Portal,{asChild:!0,container:i,children:l})})})};ej.displayName=eb;var eN="MenuContent",[eC,eS]=ec(eN),eE=n.forwardRef((e,n)=>{let r=ew(eN,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,a=em(eN,e.__scopeMenu),o=ex(eN,e.__scopeMenu);return(0,t.jsx)(eo.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(Q.Presence,{present:l||a.open,children:(0,t.jsx)(eo.Slot,{scope:e.__scopeMenu,children:o.modal?(0,t.jsx)(eI,{...i,ref:n}):(0,t.jsx)(eP,{...i,ref:n})})})})}),eI=n.forwardRef((e,r)=>{let l=em(eN,e.__scopeMenu),i=n.useRef(null),a=(0,O.useComposedRefs)(r,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,Z.hideOthers)(e)},[]),(0,t.jsx)(eT,{...e,ref:a,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:(0,z.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),eP=n.forwardRef((e,n)=>{let r=em(eN,e.__scopeMenu);return(0,t.jsx)(eT,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eM=(0,J.createSlot)("MenuContent.ScrollLock"),eT=n.forwardRef((e,r)=>{let{__scopeMenu:l,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...x}=e,y=em(eN,l),v=ex(eN,l),b=ep(l),k=ef(l),w=es(l),[j,N]=n.useState(null),C=n.useRef(null),S=(0,O.useComposedRefs)(r,C,y.onContentChange),E=n.useRef(0),I=n.useRef(""),P=n.useRef(0),M=n.useRef(null),T=n.useRef("right"),R=n.useRef(0),D=g?ee.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(E.current),[]),(0,V.useFocusGuards)();let A=n.useCallback(e=>{var t,n;return T.current===M.current?.side&&(t=e,!!(n=M.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 a=t[e],o=t[i],s=a.x,u=a.y,c=o.x,d=o.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)(eC,{scope:l,searchRef:I,onItemEnter:n.useCallback(e=>{A(e)&&e.preventDefault()},[A]),onItemLeave:n.useCallback(e=>{A(e)||(C.current?.focus(),N(null))},[A]),onTriggerLeave:n.useCallback(e=>{A(e)&&e.preventDefault()},[A]),pointerGraceTimerRef:P,onPointerGraceIntentChange:n.useCallback(e=>{M.current=e},[]),children:(0,t.jsx)(D,{...g?{as:eM,allowPinchZoom:!0}:void 0,children:(0,t.jsx)($.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:(0,z.composeEventHandlers)(o,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,t.jsx)(q.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:(0,t.jsx)(X.Root,{asChild:!0,...k,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:(0,z.composeEventHandlers)(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(W.Content,{role:"menu","aria-orientation":"vertical","data-state":e3(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...x,ref:S,style:{outline:"none",...x.style},onKeyDown:(0,z.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,a,o,s,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(l=e.key,t=I.current+l,i=w().filter(e=>!e.disabled),a=document.activeElement,o=i.find(e=>e.ref.current===a)?.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,a=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===l.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(l.toLowerCase()));return o!==n?o:void 0}(i.map(e=>e.textValue),t,o),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){I.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||!er.includes(e.key))return;e.preventDefault();let a=w().filter(e=>!e.disabled).map(e=>e.ref.current);en.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,z.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),I.current="")}),onPointerMove:(0,z.composeEventHandlers)(e.onPointerMove,e8(e=>{let t=e.target,n=R.current!==e.clientX;e.currentTarget.contains(t)&&n&&(T.current=e.clientX>R.current?"right":"left",R.current=e.clientX)}))})})})})})})});eE.displayName=eN;var eR=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(B.Primitive.div,{role:"group",...l,ref:n})});eR.displayName="MenuGroup";var eD=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(B.Primitive.div,{...l,ref:n})});eD.displayName="MenuLabel";var eA="MenuItem",eL="menu.itemSelect",ez=n.forwardRef((e,r)=>{let{disabled:l=!1,onSelect:i,...a}=e,o=n.useRef(null),s=ex(eA,e.__scopeMenu),u=eS(eA,e.__scopeMenu),c=(0,O.useComposedRefs)(r,o),d=n.useRef(!1);return(0,t.jsx)(eO,{...a,ref:c,disabled:l,onClick:(0,z.composeEventHandlers)(e.onClick,()=>{let e=o.current;if(!l&&e){let t=new CustomEvent(eL,{bubbles:!0,cancelable:!0});e.addEventListener(eL,e=>i?.(e),{once:!0}),(0,B.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,z.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;l||t&&" "===e.key||et.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ez.displayName=eA;var eO=n.forwardRef((e,r)=>{let{__scopeMenu:l,disabled:i=!1,textValue:a,...o}=e,s=eS(eA,l),u=ef(l),c=n.useRef(null),d=(0,O.useComposedRefs)(r,c),[p,f]=n.useState(!1),[h,m]=n.useState("");return n.useEffect(()=>{let e=c.current;e&&m((e.textContent??"").trim())},[o.children]),(0,t.jsx)(eo.ItemSlot,{scope:l,disabled:i,textValue:a??h,children:(0,t.jsx)(X.Item,{asChild:!0,...u,focusable:!i,children:(0,t.jsx)(B.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:d,onPointerMove:(0,z.composeEventHandlers)(e.onPointerMove,e8(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,z.composeEventHandlers)(e.onPointerLeave,e8(e=>s.onItemLeave(e))),onFocus:(0,z.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,z.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eF=n.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:l,...i}=e;return(0,t.jsx)(eK,{scope:e.__scopeMenu,checked:r,children:(0,t.jsx)(ez,{role:"menuitemcheckbox","aria-checked":e6(r)?"mixed":r,...i,ref:n,"data-state":e9(r),onSelect:(0,z.composeEventHandlers)(i.onSelect,()=>l?.(!!e6(r)||!r),{checkForDefaultPrevented:!1})})})});eF.displayName="MenuCheckboxItem";var e_="MenuRadioGroup",[eB,eH]=ec(e_,{value:void 0,onValueChange:()=>{}}),eU=n.forwardRef((e,n)=>{let{value:r,onValueChange:l,...i}=e,a=(0,Y.useCallbackRef)(l);return(0,t.jsx)(eB,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,t.jsx)(eR,{...i,ref:n})})});eU.displayName=e_;var eq="MenuRadioItem",eV=n.forwardRef((e,n)=>{let{value:r,...l}=e,i=eH(eq,e.__scopeMenu),a=r===i.value;return(0,t.jsx)(eK,{scope:e.__scopeMenu,checked:a,children:(0,t.jsx)(ez,{role:"menuitemradio","aria-checked":a,...l,ref:n,"data-state":e9(a),onSelect:(0,z.composeEventHandlers)(l.onSelect,()=>i.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});eV.displayName=eq;var e$="MenuItemIndicator",[eK,eW]=ec(e$,{checked:!1}),eG=n.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:l,...i}=e,a=eW(e$,r);return(0,t.jsx)(Q.Presence,{present:l||e6(a.checked)||!0===a.checked,children:(0,t.jsx)(B.Primitive.span,{...i,ref:n,"data-state":e9(a.checked)})})});eG.displayName=e$;var eQ=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e;return(0,t.jsx)(B.Primitive.div,{role:"separator","aria-orientation":"horizontal",...l,ref:n})});eQ.displayName="MenuSeparator";var eX=n.forwardRef((e,n)=>{let{__scopeMenu:r,...l}=e,i=ep(r);return(0,t.jsx)(W.Arrow,{...i,...l,ref:n})});eX.displayName="MenuArrow";var eJ="MenuSub",[eY,eZ]=ec(eJ),e0=e=>{let{__scopeMenu:r,children:l,open:i=!1,onOpenChange:a}=e,o=em(eJ,r),s=ep(r),[u,c]=n.useState(null),[d,p]=n.useState(null),f=(0,Y.useCallbackRef)(a);return n.useEffect(()=>(!1===o.open&&f(!1),()=>f(!1)),[o.open,f]),(0,t.jsx)(W.Root,{...s,children:(0,t.jsx)(eh,{scope:r,open:i,onOpenChange:f,content:d,onContentChange:p,children:(0,t.jsx)(eY,{scope:r,contentId:(0,K.useId)(),triggerId:(0,K.useId)(),trigger:u,onTriggerChange:c,children:l})})})};e0.displayName=eJ;var e1="MenuSubTrigger",e2=n.forwardRef((e,r)=>{let l=em(e1,e.__scopeMenu),i=ex(e1,e.__scopeMenu),a=eZ(e1,e.__scopeMenu),o=eS(e1,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=o,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)(ev,{asChild:!0,...d,children:(0,t.jsx)(eO,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":a.contentId,"data-state":e3(l.open),...e,ref:(0,O.composeRefs)(r,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:(0,z.composeEventHandlers)(e.onPointerMove,e8(t=>{o.onItemEnter(t),!t.defaultPrevented&&(e.disabled||l.open||s.current||(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{l.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,z.composeEventHandlers)(e.onPointerLeave,e8(e=>{p();let t=l.content?.getBoundingClientRect();if(t){let n=l.content?.dataset.side,r="right"===n,i=t[r?"left":"right"],a=t[r?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(r?-5:5),y:e.clientY},{x:i,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==o.searchRef.current;e.disabled||n&&" "===t.key||el[i.dir].includes(t.key)&&(l.onOpenChange(!0),l.content?.focus(),t.preventDefault())})})})});e2.displayName=e1;var e5="MenuSubContent",e4=n.forwardRef((e,r)=>{let l=ew(eN,e.__scopeMenu),{forceMount:i=l.forceMount,...a}=e,o=em(eN,e.__scopeMenu),s=ex(eN,e.__scopeMenu),u=eZ(e5,e.__scopeMenu),c=n.useRef(null),d=(0,O.useComposedRefs)(r,c);return(0,t.jsx)(eo.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(Q.Presence,{present:i||o.open,children:(0,t.jsx)(eo.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(eT,{id:u.contentId,"aria-labelledby":u.triggerId,...a,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,z.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,z.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ei[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function e3(e){return e?"open":"closed"}function e6(e){return"indeterminate"===e}function e9(e){return e6(e)?"indeterminate":e?"checked":"unchecked"}function e8(e){return t=>"mouse"===t.pointerType?e(t):void 0}e4.displayName=e5;var e7="DropdownMenu",[te,tt]=(0,F.createContextScope)(e7,[ed]),tn=ed(),[tr,tl]=te(e7),ti=e=>{let{__scopeDropdownMenu:r,children:l,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,c=tn(r),d=n.useRef(null),[p,f]=(0,_.useControllableState)({prop:a,defaultProp:o??!1,onChange:s,caller:e7});return(0,t.jsx)(tr,{scope:r,triggerId:(0,K.useId)(),triggerRef:d,contentId:(0,K.useId)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,t.jsx)(ey,{...c,open:p,onOpenChange:f,dir:i,modal:u,children:l})})};ti.displayName=e7;var ta="DropdownMenuTrigger",to=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:l=!1,...i}=e,a=tl(ta,r),o=tn(r);return(0,t.jsx)(ev,{asChild:!0,...o,children:(0,t.jsx)(B.Primitive.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:(0,O.composeRefs)(n,a.triggerRef),onPointerDown:(0,z.composeEventHandlers)(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});to.displayName=ta;var ts=e=>{let{__scopeDropdownMenu:n,...r}=e,l=tn(n);return(0,t.jsx)(ej,{...l,...r})};ts.displayName="DropdownMenuPortal";var tu="DropdownMenuContent",tc=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:l,...i}=e,a=tl(tu,l),o=tn(l),s=n.useRef(!1);return(0,t.jsx)(eE,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:r,onCloseAutoFocus:(0,z.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,z.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.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)"}})});tc.displayName=tu;var td=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eR,{...i,...l,ref:n})});td.displayName="DropdownMenuGroup";var tp=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eD,{...i,...l,ref:n})});tp.displayName="DropdownMenuLabel";var tf=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(ez,{...i,...l,ref:n})});tf.displayName="DropdownMenuItem";var th=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eF,{...i,...l,ref:n})});th.displayName="DropdownMenuCheckboxItem";var tm=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eU,{...i,...l,ref:n})});tm.displayName="DropdownMenuRadioGroup";var tg=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eV,{...i,...l,ref:n})});tg.displayName="DropdownMenuRadioItem";var tx=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eG,{...i,...l,ref:n})});tx.displayName="DropdownMenuItemIndicator";var ty=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eQ,{...i,...l,ref:n})});ty.displayName="DropdownMenuSeparator";var tv=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(eX,{...i,...l,ref:n})});tv.displayName="DropdownMenuArrow";var tb=e=>{let{__scopeDropdownMenu:n,children:r,open:l,onOpenChange:i,defaultOpen:a}=e,o=tn(n),[s,u]=(0,_.useControllableState)({prop:l,defaultProp:a??!1,onChange:i,caller:"DropdownMenuSub"});return(0,t.jsx)(e0,{...o,open:s,onOpenChange:u,children:r})},tk=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(e2,{...i,...l,ref:n})});tk.displayName="DropdownMenuSubTrigger";var tw=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...l}=e,i=tn(r);return(0,t.jsx)(e4,{...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)"}})});tw.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>tv,"CheckboxItem",()=>th,"Content",()=>tc,"DropdownMenu",()=>ti,"DropdownMenuArrow",()=>tv,"DropdownMenuCheckboxItem",()=>th,"DropdownMenuContent",()=>tc,"DropdownMenuGroup",()=>td,"DropdownMenuItem",()=>tf,"DropdownMenuItemIndicator",()=>tx,"DropdownMenuLabel",()=>tp,"DropdownMenuPortal",()=>ts,"DropdownMenuRadioGroup",()=>tm,"DropdownMenuRadioItem",()=>tg,"DropdownMenuSeparator",()=>ty,"DropdownMenuSub",()=>tb,"DropdownMenuSubContent",()=>tw,"DropdownMenuSubTrigger",()=>tk,"DropdownMenuTrigger",()=>to,"Group",()=>td,"Item",()=>tf,"ItemIndicator",()=>tx,"Label",()=>tp,"Portal",()=>ts,"RadioGroup",()=>tm,"RadioItem",()=>tg,"Root",()=>ti,"Separator",()=>ty,"Sub",()=>tb,"SubContent",()=>tw,"SubTrigger",()=>tk,"Trigger",()=>to,"createDropdownMenuScope",()=>tt],61920);var tj=e.i(61920),tj=tj,tN=e.i(76016),tC=e.i(95812),tS=e.i(31777);let tE=tj.Root,tI=tj.Trigger;tj.Group,tj.Portal,tj.Sub,tj.RadioGroup,n.forwardRef(({className:e,inset:n,children:r,...l},i)=>(0,t.jsxs)(tj.SubTrigger,{ref:i,className:(0,tS.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)(tN.ChevronRight,{className:"ml-auto"})]})).displayName=tj.SubTrigger.displayName,n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tj.SubContent,{ref:r,className:(0,tS.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=tj.SubContent.displayName;let tP=n.forwardRef(({className:e,sideOffset:n=4,...r},l)=>(0,t.jsx)(tj.Portal,{children:(0,t.jsx)(tj.Content,{ref:l,sideOffset:n,className:(0,tS.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})}));tP.displayName=tj.Content.displayName;let tM=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tj.Item,{ref:l,className:(0,tS.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}));tM.displayName=tj.Item.displayName,n.forwardRef(({className:e,children:n,checked:r,...l},i)=>(0,t.jsxs)(tj.CheckboxItem,{ref:i,className:(0,tS.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)(tj.ItemIndicator,{children:(0,t.jsx)(c.Check,{className:"h-4 w-4"})})}),n]})).displayName=tj.CheckboxItem.displayName,n.forwardRef(({className:e,children:n,...r},l)=>(0,t.jsxs)(tj.RadioItem,{ref:l,className:(0,tS.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)(tj.ItemIndicator,{children:(0,t.jsx)(tC.Circle,{className:"h-2 w-2 fill-current"})})}),n]})).displayName=tj.RadioItem.displayName;let tT=n.forwardRef(({className:e,inset:n,...r},l)=>(0,t.jsx)(tj.Label,{ref:l,className:(0,tS.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));tT.displayName=tj.Label.displayName;let tR=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(tj.Separator,{ref:r,className:(0,tS.cn)("bg-muted -mx-1 my-1 h-px",e),...n}));function tD({actions:e,repositoryPath:r,showSpecs:l}){let[a,o]=(0,n.useState)(!1),s=e.ideLoading||e.shellLoading||e.specsLoading,p=e.ideError??e.shellError??e.specsError;return(0,t.jsxs)(tE,{modal:!1,children:[(0,t.jsx)(tI,{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"}):p?(0,t.jsx)(L.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(D.FolderOpen,{className:"size-4"}),"Open",(0,t.jsx)(A.ChevronDown,{className:"size-3 opacity-60"})]})}),(0,t.jsxs)(tP,{align:"start",className:"w-48",children:[(0,t.jsx)(tT,{children:"Open in"}),(0,t.jsxs)(tM,{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)(L.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(d.Code2,{className:"size-4"}),"IDE"]}),(0,t.jsxs)(tM,{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)(L.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(R.Terminal,{className:"size-4"}),"Terminal"]}),(0,t.jsxs)(tM,{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)(L.CircleAlert,{className:"text-destructive size-4"}):(0,t.jsx)(D.FolderOpen,{className:"size-4"}),"Specs Folder"]}),(0,t.jsx)(tR,{}),(0,t.jsxs)(tM,{onClick:()=>{navigator.clipboard.writeText(r),o(!0),setTimeout(()=>o(!1),2e3)},className:"gap-2",children:[a?(0,t.jsx)(c.Check,{className:"size-4 text-green-600"}):(0,t.jsx)(u.Copy,{className:"size-4"}),a?"Copied!":"Copy path"]})]})]})}tR.displayName=tj.Separator.displayName;var tA=e.i(68304);let tL=(0,f.createServerReference)("4000868eaef41631ebeaeae306711c194c957e7e8f",f.callServer,void 0,f.findSourceMapURL,"getFeaturePhaseTimings"),tz=(0,f.createServerReference)("40b95e28c181cd055d07a163951bde4ff611202315",f.callServer,void 0,f.findSourceMapURL,"getFeaturePlan");var tO=e.i(11345),tF=e.i(81846),t_=e.i(3645);let tB=(0,t_.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 tH=e.i(98127);function tU({onReject:e,onApprove:r,approveLabel:l,approveIcon:i,revisionPlaceholder:a,isProcessing:o=!1,isRejecting:s=!1,children:u,chatInput:c,onChatInputChange:d}){let[p,f]=(0,n.useState)(""),h=c??p,m=d??f,g=(0,k.useSoundAction)("approve"),x=o||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)(tH.Input,{type:"text",placeholder:a??"Ask AI to revise...","aria-label":a??"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)(tB,{})}),(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 tq({data:e,selections:r,onSelect:l,onApprove:i,onReject:a,isProcessing:o=!1,isRejecting:s=!1,showHeader:u=!1,chatInput:d,onChatInputChange:p}){let{question:f,context:h,questions:m,finalAction:g}=e,[x,y]=(0,n.useState)(0),v=(0,k.useSoundAction)("select"),b=(0,k.useSoundAction)("navigate"),w=m.length,j=x===w-1,N=m[x],C=(0,n.useMemo)(()=>Object.keys(r).length,[r]),S=(0,n.useCallback)((e,t)=>{v.play(),l(e,t),j||setTimeout(()=>y(e=>e+1),250)},[l,j,v]);return 0===w?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:f}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed",children:h})]})]}):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:N.question}),(0,t.jsx)("div",{className:"mt-1.5 flex shrink-0 gap-1",children:m.map((e,n)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to question ${n+1}`,className:(0,tS.cn)("h-1.5 rounded-full transition-all duration-200",n===x?"bg-primary w-4":"w-1.5",n!==x&&r[e.id]?"bg-primary/50":"",n===x||r[e.id]?"":"bg-muted-foreground/25"),onClick:()=>{b.play(),y(n)}},e.id))})]}),(0,t.jsx)("div",{className:"space-y-2",children:N.options.map((e,n)=>{let l=r[N.id]===e.id,i=String.fromCharCode(65+n);return(0,t.jsx)("button",{type:"button",className:(0,tS.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:o,onClick:()=>S(N.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)(tF.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null,e.isNew?(0,t.jsx)(tF.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===x||o,onClick:()=>{b.play(),y(e=>e-1)},children:[(0,t.jsx)(tO.ChevronLeft,{className:"mr-1 h-4 w-4"}),"Previous"]}),j?null:(0,t.jsxs)(I.Button,{type:"button",variant:"ghost",size:"sm",disabled:o,onClick:()=>{b.play(),y(e=>e+1)},children:[r[N.id]?"Next":"Skip",(0,t.jsx)(tN.ChevronRight,{className:"ml-1 h-4 w-4"})]})]})]}),(0,t.jsx)(tU,{onReject:a,onApprove:()=>i(g.id),approveLabel:g.label,approveIcon:(0,t.jsx)(c.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to refine requirements...",isProcessing:o,isRejecting:s,chatInput:d,onChatInputChange:p,children:(0,t.jsx)("div",{className:(0,tS.cn)("bg-muted h-1.5 overflow-hidden",C>0&&C<w||o?"opacity-100":"opacity-0","transition-opacity duration-200"),"data-testid":"progress-bar-container",children:o?(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:`${w>0?C/w*100:0}%`},"data-testid":"progress-bar"})})})]})}function tV(){}function t$(){}let tK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tG={};function tQ(e,t){return((t||tG).jsx?tW:tK).test(e)}let tX=/[ \t\n\f\r]/g;function tJ(e){return""===e.replace(tX,"")}class tY{constructor(e,t){this.attribute=t,this.property=e}}tY.prototype.attribute="",tY.prototype.booleanish=!1,tY.prototype.boolean=!1,tY.prototype.commaOrSpaceSeparated=!1,tY.prototype.commaSeparated=!1,tY.prototype.defined=!1,tY.prototype.mustUseProperty=!1,tY.prototype.number=!1,tY.prototype.overloadedBoolean=!1,tY.prototype.property="",tY.prototype.spaceSeparated=!1,tY.prototype.space=void 0;let tZ=0,t0=t9(),t1=t9(),t2=t9(),t5=t9(),t4=t9(),t3=t9(),t6=t9();function t9(){return 2**++tZ}e.s(["boolean",0,t0,"booleanish",0,t1,"commaOrSpaceSeparated",0,t6,"commaSeparated",0,t3,"number",0,t5,"overloadedBoolean",0,t2,"spaceSeparated",0,t4],83954);var t8=e.i(83954);let t7=Object.keys(t8);class ne extends tY{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<t7.length;){const e=t7[l];!function(e,t,n){n&&(e[t]=n)}(this,t7[l],(n&t8[e])===t8[e])}}}function nt(e){return e.toLowerCase()}ne.prototype.defined=!0;let nn=/[A-Z]/g,nr=/-[a-z]/g,nl=/^data[-\w.:]+$/i;function ni(e){return"-"+e.toLowerCase()}function na(e){return e.charAt(1).toUpperCase()}let no={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 ns{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function nu(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ns(n,r,t)}function nc(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new ne(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nt(r)]=r,n[nt(i.attribute)]=r}return new ns(t,n,e.space)}ns.prototype.normal={},ns.prototype.property={},ns.prototype.space=void 0;let nd=nc({properties:{ariaActiveDescendant:null,ariaAtomic:t1,ariaAutoComplete:null,ariaBusy:t1,ariaChecked:t1,ariaColCount:t5,ariaColIndex:t5,ariaColSpan:t5,ariaControls:t4,ariaCurrent:null,ariaDescribedBy:t4,ariaDetails:null,ariaDisabled:t1,ariaDropEffect:t4,ariaErrorMessage:null,ariaExpanded:t1,ariaFlowTo:t4,ariaGrabbed:t1,ariaHasPopup:null,ariaHidden:t1,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:t4,ariaLevel:t5,ariaLive:null,ariaModal:t1,ariaMultiLine:t1,ariaMultiSelectable:t1,ariaOrientation:null,ariaOwns:t4,ariaPlaceholder:null,ariaPosInSet:t5,ariaPressed:t1,ariaReadOnly:t1,ariaRelevant:null,ariaRequired:t1,ariaRoleDescription:t4,ariaRowCount:t5,ariaRowIndex:t5,ariaRowSpan:t5,ariaSelected:t1,ariaSetSize:t5,ariaSort:null,ariaValueMax:t5,ariaValueMin:t5,ariaValueNow:t5,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function np(e,t){return t in e?e[t]:t}function nf(e,t){return np(e,t.toLowerCase())}let nh=nc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:t3,acceptCharset:t4,accessKey:t4,action:null,allow:null,allowFullScreen:t0,allowPaymentRequest:t0,allowUserMedia:t0,alt:null,as:null,async:t0,autoCapitalize:null,autoComplete:t4,autoFocus:t0,autoPlay:t0,blocking:t4,capture:null,charSet:null,checked:t0,cite:null,className:t4,cols:t5,colSpan:null,content:null,contentEditable:t1,controls:t0,controlsList:t4,coords:t5|t3,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t0,defer:t0,dir:null,dirName:null,disabled:t0,download:t2,draggable:t1,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t0,formTarget:null,headers:t4,height:t5,hidden:t2,high:t5,href:null,hrefLang:null,htmlFor:t4,httpEquiv:t4,id:null,imageSizes:null,imageSrcSet:null,inert:t0,inputMode:null,integrity:null,is:null,isMap:t0,itemId:null,itemProp:t4,itemRef:t4,itemScope:t0,itemType:t4,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t0,low:t5,manifest:null,max:null,maxLength:t5,media:null,method:null,min:null,minLength:t5,multiple:t0,muted:t0,name:null,nonce:null,noModule:t0,noValidate:t0,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:t0,optimum:t5,pattern:null,ping:t4,placeholder:null,playsInline:t0,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:t0,referrerPolicy:null,rel:t4,required:t0,reversed:t0,rows:t5,rowSpan:t5,sandbox:t4,scope:null,scoped:t0,seamless:t0,selected:t0,shadowRootClonable:t0,shadowRootDelegatesFocus:t0,shadowRootMode:null,shape:null,size:t5,sizes:null,slot:null,span:t5,spellCheck:t1,src:null,srcDoc:null,srcLang:null,srcSet:null,start:t5,step:null,style:null,tabIndex:t5,target:null,title:null,translate:null,type:null,typeMustMatch:t0,useMap:null,value:t1,width:t5,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:t4,axis:null,background:null,bgColor:null,border:t5,borderColor:null,bottomMargin:t5,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t0,declare:t0,event:null,face:null,frame:null,frameBorder:null,hSpace:t5,leftMargin:t5,link:null,longDesc:null,lowSrc:null,marginHeight:t5,marginWidth:t5,noResize:t0,noHref:t0,noShade:t0,noWrap:t0,object:null,profile:null,prompt:null,rev:null,rightMargin:t5,rules:null,scheme:null,scrolling:t1,standby:null,summary:null,text:null,topMargin:t5,valueType:null,version:null,vAlign:null,vLink:null,vSpace:t5,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t0,disableRemotePlayback:t0,prefix:null,property:null,results:t5,security:null,unselectable:null},space:"html",transform:nf}),nm=nc({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:t6,accentHeight:t5,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:t5,amplitude:t5,arabicForm:null,ascent:t5,attributeName:null,attributeType:null,azimuth:t5,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:t5,by:null,calcMode:null,capHeight:t5,className:t4,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:t5,diffuseConstant:t5,direction:null,display:null,dur:null,divisor:t5,dominantBaseline:null,download:t0,dx:null,dy:null,edgeMode:null,editable:null,elevation:t5,enableBackground:null,end:null,event:null,exponent:t5,externalResourcesRequired:null,fill:null,fillOpacity:t5,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:t3,g2:t3,glyphName:t3,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:t5,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:t5,horizOriginX:t5,horizOriginY:t5,id:null,ideographic:t5,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:t5,k:t5,k1:t5,k2:t5,k3:t5,k4:t5,kernelMatrix:t6,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:t5,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:t5,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:t5,overlineThickness:t5,paintOrder:null,panose1:null,path:null,pathLength:t5,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:t4,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:t5,pointsAtY:t5,pointsAtZ:t5,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:t6,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:t6,rev:t6,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:t6,requiredFeatures:t6,requiredFonts:t6,requiredFormats:t6,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:t5,specularExponent:t5,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:t5,strikethroughThickness:t5,string:null,stroke:null,strokeDashArray:t6,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:t5,strokeOpacity:t5,strokeWidth:null,style:null,surfaceScale:t5,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:t6,tabIndex:t5,tableValues:null,target:null,targetX:t5,targetY:t5,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:t6,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:t5,underlineThickness:t5,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:t5,values:null,vAlphabetic:t5,vMathematical:t5,vectorEffect:null,vHanging:t5,vIdeographic:t5,version:null,vertAdvY:t5,vertOriginX:t5,vertOriginY:t5,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:t5,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:np}),ng=nc({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()}),nx=nc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nf}),ny=nc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),nv=nu([nd,nh,ng,nx,ny],"html"),nb=nu([nd,nm,ng,nx,ny],"svg");var nk=e.i(63185);let nw=nN("end"),nj=nN("start");function nN(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 nC(e){return e&&"object"==typeof e?"position"in e||"type"in e?nE(e.position):"start"in e||"end"in e?nE(e):"line"in e||"column"in e?nS(e):"":""}function nS(e){return nI(e&&e.line)+":"+nI(e&&e.column)}function nE(e){return nS(e&&e.start)+"-"+nS(e&&e.end)}function nI(e){return e&&"number"==typeof e?e:1}class nP 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 a=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=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=nC(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}}nP.prototype.file="",nP.prototype.name="",nP.prototype.reason="",nP.prototype.message="",nP.prototype.stack="",nP.prototype.column=void 0,nP.prototype.line=void 0,nP.prototype.ancestors=void 0,nP.prototype.cause=void 0,nP.prototype.fatal=void 0,nP.prototype.place=void 0,nP.prototype.ruleId=void 0,nP.prototype.source=void 0;let nM={}.hasOwnProperty,nT=new Map,nR=/[A-Z]/g,nD=new Set(["table","tbody","thead","tfoot","tr"]),nA=new Set(["td","th"]),nL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nz(e,t,n){var r,l,i,a,o,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=nb),r.ancestors.push(l),h=nB(r,l.tagName,!1),m=function(e,t){let n,r,l={};for(r in t.properties)if("children"!==r&&nM.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=nt(t),r=t,l=tY;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nl.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nr,na);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nr.test(e)){let n=e.replace(nn,ni);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=ne}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,nk.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new nP("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=nL+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)nM.call(e,t)&&(n[function(e){let t=e.replace(nR,nU);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?no[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,a]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&nA.has(t.tagName)?n=a:l[r]=a}}return n&&((l.style||(l.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),l}(r,l),g=n_(r,l),nD.has(l.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&tJ(e.value):tJ(e))})),nO(r,m,h,l),nF(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 tV("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}nH(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,o=t,s=n,y=x=a.schema,"svg"===o.name&&"html"===x.space&&(a.schema=nb),a.ancestors.push(o),v=null===o.name?a.Fragment:nB(a,o.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];tV("ExpressionStatement"===t.type);let l=t.expression;tV("ObjectExpression"===l.type);let i=l.properties[0];tV("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else nH(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];tV("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else nH(e,t.position);else l=null===r.value||r.value;n[i]=l}return n}(a,o),k=n_(a,o),nO(a,b,v,o),nF(b,k),a.ancestors.pop(),a.schema=x,a.create(o,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nH(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,nF(w={},n_(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function nO(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nF(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function n_(e,t){let n=[],r=-1,l=e.passKeys?new Map:nT;for(;++r<t.children.length;){let i,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=l.get(e)||0;i=e+"-"+t,l.set(e,t+1)}}let o=nz(e,a,i);void 0!==o&&n.push(o)}return n}function nB(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),l=-1;for(;++l<n.length;){let t=tQ(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}tV(e,"always a result"),r=e}else r=tQ(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 nM.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);nH(e)}function nH(e,t){let n=new nP("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=nL+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nU(e){return"-"+e.toLowerCase()}let nq={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"]},nV={};function n$(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 nK(e.children,t,n)}return Array.isArray(e)?nK(e,t,n):""}function nK(e,t,n){let r=[],l=-1;for(;++l<e.length;)r[l]=n$(e[l],t,n);return r.join("")}function nW(e,t,n,r){let l,i=e.length,a=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);a<r.length;)(l=r.slice(a,a+1e4)).unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function nG(e,t){return e.length>0?(nW(e,e.length,0,t),e):t}let nQ={}.hasOwnProperty,nX=n8(/[A-Za-z]/),nJ=n8(/[\dA-Za-z]/),nY=n8(/[#-'*+\--9=?A-Z^-~]/);function nZ(e){return null!==e&&(e<32||127===e)}let n0=n8(/\d/),n1=n8(/[\dA-Fa-f]/),n2=n8(/[!-/:-@[-`{-~]/);function n5(e){return null!==e&&e<-2}function n4(e){return null!==e&&(e<0||32===e)}function n3(e){return -2===e||-1===e||32===e}let n6=n8(/\p{P}|\p{S}/u),n9=n8(/\s/);function n8(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function n7(e,t,n,r){let l=r?r-1:1/0,i=0;return function(r){return n3(r)?(e.enter(n),function r(a){return n3(a)&&i++<l?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let re={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"),n7(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 n5(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},rt={tokenize:function(e){let t,n,r,l=this,i=[],a=0;return o;function o(t){if(a<i.length){let n=i[a];return l.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(a++,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(a);let o=r;for(;o<l.events.length;)l.events[o][1].end={...n},o++;return nW(l.events,i+1,0,l.events.slice(r)),l.events.length=o,u(e)}return o(e)}function u(n){if(a===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(rn,c,d)(n)}function c(e){return t&&x(),g(a),p(e)}function d(e){return l.parser.lazy[l.now().line]=a!==i.length,r=l.now().offset,h(e)}function p(t){return l.containerState={},e.attempt(rn,f,h)(t)}function f(e){return a++,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 n5(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,l.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,i){let o=l.sliceStream(e);if(i&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),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 o=l.events.length,s=o;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(a),i=o;i<l.events.length;)l.events[i][1].end={...n},i++;nW(l.events,s+1,0,l.events.slice(o)),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}}},rn={tokenize:function(e,t,n){return n7(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},rr={partial:!0,tokenize:function(e,t,n){return function(t){return n3(t)?n7(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||n5(e)?t(e):n(e)}}};class rl{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&&ri(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),ri(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ri(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);ri(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ri(this.left,t.reverse())}}}function ri(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 ra(e){let t,n,r,l,i,a,o,s={},u=-1,c=new rl(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)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[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],a=t-1,o=[],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(++a)[1]!==f;);o.push(a),!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=o.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],o=!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 nW(e,0,1/0,c.slice(0)),!o}let ro={resolve:function(e){return ra(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):n5(t)?e.check(rs,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}}},rs={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"),n7(e,l,"linePrefix")};function l(l){if(null===l||n5(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)}}},ru={tokenize:function(e){let t=this,n=e.attempt(rr,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,n7(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ro,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)}}},rc={resolveAll:rh()},rd=rf("string"),rp=rf("text");function rf(e){return{resolveAll:rh("text"===e?rm:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,a);return i;function i(e){return s(e)?l(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return s(e)?(t.exit("data"),l(e)):(t.consume(e),o)}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 rh(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 rm(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),a=i.length,o=-1,s=0;for(;a--;){let e=i[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)s++,o--;if(o)break;o=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:l.start._bufferIndex+o,_index:l.start._index+a,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 rg(e){return null===e||n4(e)||n9(e)?1:n6(e)?2:void 0}function rx(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 ry={name:"attention",resolveAll:function(e,t){let n,r,l,i,a,o,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;o=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};rv(d,-o),rv(p,o),i={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},l={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[c][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=nG(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=nG(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),s=nG(s,rx(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=nG(s,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=nG(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,nW(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=rg(l);return function(a){return n=a,e.enter("attentionSequence"),function a(o){if(o===n)return e.consume(o),a;let s=e.exit("attentionSequence"),u=rg(o),c=!u||2===u&&i||r.includes(o),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(o)}(a)}}};function rv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let rb={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return n3(t)?n7(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(rb,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 n3(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},rk={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 n2(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},rw=document.createElement("i");function rj(e){let t="&"+e+";";rw.innerHTML=t;let n=rw.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let rN={name:"characterReference",tokenize:function(e,t,n){let r,l,i=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,l=nJ,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=n1,u):(e.enter("characterReferenceValue"),r=7,l=n0,u(t))}function u(o){if(59===o&&a){let r=e.exit("characterReferenceValue");return l!==nJ||rj(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return l(o)&&a++<r?(e.consume(o),u):n(o)}}},rC={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)}}},rS={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"),a};function a(t){return e.enter("codeFencedFence"),n3(t)?n7(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>=o?(e.exit("codeFencedFenceSequence"),n3(l)?n7(e,u,"whitespace")(l):u(l)):n(l)}(t)):n(t)}function u(r){return null===r||n5(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,o=0;return function(t){var i;let u;return i=t,a=(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?(o++,e.consume(l),t):o<3?n(l):(e.exit("codeFencedFenceSequence"),n3(l)?n7(e,s,"whitespace")(l):s(l))}(i)};function s(i){return null===i||n5(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(rC,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||n5(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(l)):n3(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),n7(e,u,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function u(t){return null===t||n5(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||n5(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 a>0&&n3(t)?n7(e,f,"linePrefix",a+1)(t):f(t)}function f(t){return null===t||n5(t)?e.check(rC,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||n5(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},rE={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),n7(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):n5(n)?e.attempt(rI,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||n5(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},rI={partial:!0,tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):n5(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n7(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):n5(e)?l(e):n(e)}}};function rP(e,t,n,r,l,i,a,o,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||nZ(t)?n(t):(e.enter(r),e.enter(a),e.enter(o),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(o),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||n5(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||n4(l))?(e.exit("chunkString"),e.exit(o),e.exit(a),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||nZ(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 rM(e,t,n,r,l,i){let a,o=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&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(i),e.enter(l),e.consume(d),e.exit(l),e.exit(r),t):n5(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||n5(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!n3(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function rT(e,t,n,r,l,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),o(a)):null===t?n(t):n5(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n7(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||n5(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function rR(e,t){let n;return function r(l){return n5(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):n3(l)?n7(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function rD(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rA={partial:!0,tokenize:function(e,t,n){return function(t){return n4(t)?rR(e,r)(t):n(t)};function r(t){return rT(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return n3(t)?n7(e,i,"whitespace")(t):i(t)}function i(e){return null===e||n5(e)?t(e):n(e)}}},rL=["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"],rz=["pre","script","style","textarea"],rO={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rr,t,n)}}},rF={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return n5(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)}}},r_={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&&nW(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,l,i,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(l){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(l=a);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+o+2][1].end},end:{...e[l-2][1].start}};return i=nG(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+o+3)),i=nG(i,[["enter",c,t]]),i=nG(i,rx(t.parser.constructs.insideSpan.null,e.slice(r+o+4,l-3),t)),i=nG(i,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),i=nG(i,e.slice(l+1)),i=nG(i,[["exit",s,t]]),nW(e,r,e.length,i),e},tokenize:function(e,t,n){let r,l,i=this,a=i.events.length;for(;a--;)if(("labelImage"===i.events[a][1].type||"labelLink"===i.events[a][1].type)&&!i.events[a][1]._balanced){r=i.events[a][1];break}return function(t){return r?r._inactive?c(t):(l=i.parser.defined.includes(rD(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(rB,u,l?u:c)(t):91===t?e.attempt(rH,u,l?s:c)(t):l?u(t):c(t)}function s(t){return e.attempt(rU,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},rB={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 n4(t)?rR(e,l)(t):l(t)}function l(t){return 41===t?u(t):rP(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return n4(t)?rR(e,o)(t):u(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?rT(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return n4(t)?rR(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)}}},rH={tokenize:function(e,t,n){let r=this;return function(t){return rM.call(r,e,l,i,"reference","referenceMarker","referenceString")(t)};function l(e){return r.parser.defined.includes(rD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},rU={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)}}},rq={name:"labelStartImage",resolveAll:r_.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)}}},rV={name:"labelStartLink",resolveAll:r_.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)}}},r$={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),n7(e,t,"linePrefix")}}},rK={name:"thematicBreak",tokenize:function(e,t,n){let r,l=0;return function(i){var a;return e.enter("thematicBreak"),r=a=i,function i(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),l++,t):(e.exit("thematicBreakSequence"),n3(n)?n7(e,i,"whitespace")(n):i(n))}(a)):l>=3&&(null===a||n5(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},rW={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(rr,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,n7(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!n3(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(rQ,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,n7(e,e.attempt(rW,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,a=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:n0(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(rK,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return n0(l)&&++a<10?(e.consume(l),t):(!r.interrupt||a<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),o(l)):n(l)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rr,r.interrupt?n:s,e.attempt(rG,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return n3(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)}}},rG={partial:!0,tokenize:function(e,t,n){let r=this;return n7(e,function(e){let l=r.events[r.events.length-1];return!n3(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},rQ={partial:!0,tokenize:function(e,t,n){let r=this;return n7(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)}},rX={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 a={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",a,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end={...e[l][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,l=this;return function(t){var a;let o,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){o="paragraph"===l.events[s][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||o)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),n3(n)?n7(e,i,"lineSuffix")(n):i(n))}(a)):n(t)};function i(r){return null===r||n5(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,rM.call(l,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=rD(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return n4(t)?rR(e,o)(t):o(t)}function o(t){return rP(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(rA,u,u)(t)}function u(t){return n3(t)?n7(e,c,"whitespace")(t):c(t)}function c(i){return null===i||n5(i)?(e.exit("definition"),l.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:rW,43:rW,45:rW,48:rW,49:rW,50:rW,51:rW,52:rW,53:rW,54:rW,55:rW,56:rW,57:rW,62:rb},"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"},nW(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||n4(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||n5(r)?(e.exit("atxHeading"),t(r)):n3(r)?n7(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||n4(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:rK,45:[rX,rK],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,a,o,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),l=!0,f):63===a?(e.consume(a),r=3,s.interrupt?t:R):nX(a)?(e.consume(a),i=String.fromCharCode(a),h):n(a)}function c(l){return 45===l?(e.consume(l),r=2,d):91===l?(e.consume(l),r=5,a=0,p):nX(l)?(e.consume(l),r=4,s.interrupt?t:R):n(l)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:R):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(a++)?(e.consume(r),a===l.length)?s.interrupt?t:N:p:n(r)}function f(t){return nX(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||n4(a)){let o=47===a,u=i.toLowerCase();return!o&&!l&&rz.includes(u)?(r=1,s.interrupt?t(a):N(a)):rL.includes(i.toLowerCase())?(r=6,o)?(e.consume(a),m):s.interrupt?t(a):N(a):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):l?function t(n){return n3(n)?(e.consume(n),t):w(n)}(a):g(a))}return 45===a||nJ(a)?(e.consume(a),i+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:N):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||nX(t)?(e.consume(t),x):n3(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||nJ(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):n3(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),o=t,b):n3(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||n4(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===o?(e.consume(t),o=null,k):null===t||n5(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||n3(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||n5(t)?N(t):n3(t)?(e.consume(t),j):n(t)}function N(t){return 45===t&&2===r?(e.consume(t),I):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),T):n5(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(rO,A,C)(t)):null===t||n5(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),N)}function C(t){return e.check(rF,S,A)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||n5(t)?C(t):(e.enter("htmlFlowData"),N(t))}function I(t){return 45===t?(e.consume(t),R):N(t)}function P(t){return 47===t?(e.consume(t),i="",M):N(t)}function M(t){if(62===t){let n=i.toLowerCase();return rz.includes(n)?(e.consume(t),D):N(t)}return nX(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),M):N(t)}function T(t){return 93===t?(e.consume(t),R):N(t)}function R(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),R):N(t)}function D(t){return null===t||n5(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),D)}function A(n){return e.exit("htmlFlow"),t(n)}}},61:rX,95:rK,96:rS,126:rS},"flowInitial",0,{[-2]:rE,[-1]:rE,32:rE},"insideSpan",0,{null:[ry,rc]},"string",0,{38:rN,92:rk},"text",0,{[-5]:r$,[-4]:r$,[-3]:r$,33:rq,38:rN,42:ry,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 nX(t)?(e.consume(t),i):64===t?n(t):o(t)}function i(t){return 43===t||45===t||46===t||nJ(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||nJ(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function a(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||nZ(r)?n(r):(e.consume(r),a)}function o(t){return 64===t?(e.consume(t),s):nY(t)?(e.consume(t),o):n(t)}function s(l){return nJ(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||nJ(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,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):nX(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):nX(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):n5(t)?(i=c,M(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?P(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):n5(t)?(i=h,M(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?P(t):n5(t)?(i=x,M(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):n5(t)?(i=y,M(t)):(e.consume(t),y)}function v(e){return 62===e?P(e):y(e)}function b(t){return nX(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||nJ(t)?(e.consume(t),k):function t(n){return n5(n)?(i=t,M(n)):n3(n)?(e.consume(n),t):P(n)}(t)}function w(t){return 45===t||nJ(t)?(e.consume(t),w):47===t||62===t||n4(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),P):58===t||95===t||nX(t)?(e.consume(t),N):n5(t)?(i=j,M(t)):n3(t)?(e.consume(t),j):P(t)}function N(t){return 45===t||46===t||58===t||95===t||nJ(t)?(e.consume(t),N):function t(n){return 61===n?(e.consume(n),C):n5(n)?(i=t,M(n)):n3(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,S):n5(t)?(i=C,M(t)):n3(t)?(e.consume(t),C):(e.consume(t),E)}function S(t){return t===r?(e.consume(t),r=void 0,I):null===t?n(t):n5(t)?(i=S,M(t)):(e.consume(t),S)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||n4(t)?j(t):(e.consume(t),E)}function I(e){return 47===e||62===e||n4(e)?j(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return n3(t)?n7(e,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),i(t)}}}],91:rV,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return n5(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},rk],93:r_,95:ry,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"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(l=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(l.type="codeTextData",o(a))}(s)):n5(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),o(s))}function o(t){return null===t||32===t||96===t||n5(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}}],19210);var rJ=e.i(19210);let rY=/[\0\t\n\r]/g;function rZ(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 r0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r1(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return rZ(n.slice(t?2:1),t?16:10)}return rj(n)||e}let r2={}.hasOwnProperty;function r5(e){return{line:e.line,column:e.column,offset:e.offset}}function r4(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+nC({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nC({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+nC({start:t.start,end:t.end})+") is still open")}function r3(e){let t=this;t.parser=function(n){var r,l;let i,a,o,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:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),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:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=rZ(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=rj(n);let l=this.stack[this.stack.length-1];l.value+=t},characterReference:function(e){this.stack.pop().position.end=r5(e.end)},codeFenced:a(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:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),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=rD(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(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(r0,r1),n.identifier=rD(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=r5(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:a(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:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rD(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:a(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:a(),thematicBreak:a()}};!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(r2.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:[]},a={stack:[r],tokenStack:[],config:t,enter:i,exit:o,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,a,o=t-1,s=-1,u=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=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 a=o;for(l=void 0;a--;){let t=e[a];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=a}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||o,0,["exit",r,t[2]]),o++,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(o,0,["enter",l,t[2]]),o++,n++,i=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];r2.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||r4).call(a,void 0,e[0])}for(r.position={start:r5(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:r5(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:r5(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(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]||r4).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nC({start:e.start,end:e.end})+"): it’s not open");n.position.end=r5(e.end)}function s(){var e;return e=this.stack.pop(),n$(e,"boolean"!=typeof nV.includeImageAlt||nV.includeImageAlt,"boolean"!=typeof nV.includeHtml||nV.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:r5(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=r5(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(;!ra(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=(nQ.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){nQ.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]);nW(e,0,0,r)}(l[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([rJ,...(e||{}).extensions||[]]),content:n(re),defined:[],document:n(rt),flow:n(ru),lazy:{},string:n(rd),text:n(rp)};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=[],a=[],o=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){n5(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===a[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]),o.push(n),n},exit:function(e){let t=o.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,a=e[r];if("string"==typeof a)i=a;else switch(a){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(a)}n=-2===a,l.push(i)}return l.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=nG(a,e),function(){let e;for(;r._index<a.length;){let n=a[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!==a[a.length-1])?[]:(m(t,0),u.events=rx(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,a=t.end._bufferIndex;if(r===i)n=[e[r].slice(l,a)];else{if(n=e.slice(r,i),l>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}a>0&&n.push(e[i].slice(0,a))}return n}(a,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 a;let c,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.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,a,c,d;return(l=p(),i=u.previous,a=u.currentConstruct,c=u.events.length,d=Array.from(o),h={from:c,restore:function(){r=l,u.previous=i,u.currentConstruct=a,u.events.length=c,o=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&&nW(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((a=1,o="",s=!0,function(e,t,n){let r,l,u,c,d,p=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,o="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(rY.lastIndex=u,c=(r=rY.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){o=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)),a+=c-u),d){case 0:p.push(65533),a++;break;case 9:for(l=4*Math.ceil(a/4),p.push(-2);a++<l;)p.push(-1);break;case 10:p.push(-4),a=1;break;default:i=!0,a=1}u=c+1}return n&&(i&&p.push(-5),o&&p.push(o),p.push(null)),p})(n,r,!0))))}}let r6="object"==typeof self?self:globalThis,r9=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,a]=e[l];switch(i){case 0:case -1:return n(a,l);case 1:{let e=n([],l);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},l);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),l);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),l)}case 5:{let e=n(new Map,l);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,l);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new r6[e](t),l)}case 8:return n(BigInt(a),l);case"BigInt":return n(Object(BigInt(a)),l);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new r6[i](a),l)})(0)},{toString:r8}={},{keys:r7}=Object,le=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=r8.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]},lt=([e,t])=>0===e&&("function"===t||"symbol"===t),ln=(e,{json:t,lossy:n}={})=>{var r,l,i;let a,o,s=[];return(r=!(t||n),l=!!t,i=new Map,a=(e,t)=>{let n=s.push(e)-1;return i.set(t,n),n},o=e=>{if(i.has(e))return i.get(e);let[t,n]=le(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 a([-1],e)}return a([t,l],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),a([n,[...t]],e)}let r=[],l=a([t,r],e);for(let t of e)r.push(o(t));return l}case 2:{if(n)switch(n){case"BigInt":return a([n,e.toString()],e);case"Boolean":case"Number":case"String":return a([n,e.valueOf()],e)}if(l&&"toJSON"in e)return o(e.toJSON());let i=[],s=a([t,i],e);for(let t of r7(e))(r||!lt(le(e[t])))&&i.push([o(t),o(e[t])]);return s}case 3:return a([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return a([t,{source:n,flags:r}],e)}case 5:{let n=[],l=a([t,n],e);for(let[t,l]of e)(r||!(lt(le(t))||lt(le(l))))&&n.push([o(t),o(l)]);return l}case 6:{let n=[],l=a([t,n],e);for(let t of e)(r||!lt(le(t)))&&n.push(o(t));return l}}let{message:s}=e;return a([t,{name:n,message:s}],e)})(e),s},lr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?r9(ln(e,t)):structuredClone(e):(e,t)=>r9(ln(e,t));function ll(e){let t=[],n=-1,r=0,l=0;for(;++n<e.length;){let i=e.charCodeAt(n),a="";if(37===i&&nJ(e.charCodeAt(n+1))&&nJ(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),l=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+l+1,a=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function li(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 la(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lo=function(e){var t,n;if(null==e)return lu;if("function"==typeof e)return ls(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lo(e[n]);return ls(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ls(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ls(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ls(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 lu(){return!0}let lc=[];function ld(e,t,n,r){var l,i,a;let o,s,u,c,d,p;"function"==typeof t&&"function"!=typeof n?(s=void 0,u=t,o=n):(s=t,u=n,o=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)},a=o,"function"==typeof l&&"function"!=typeof i?(a=i,i=l):c=l,d=lo(c),p=a?-1:1,(function e(t,n,r){let o=t&&"object"==typeof t?t:{};if("string"==typeof o.type){let e="string"==typeof o.tagName?o.tagName:"string"==typeof o.name?o.name:void 0;Object.defineProperty(s,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return s;function s(){var o;let s,u,c,f=lc;if((!l||d(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(o=i(t,r))?o:"number"==typeof o?[!0,o]:null==o?lc:[o])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(u=(a?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 lp(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 a=l[l.length-1];return a&&"text"===a.type?a.value+=r:l.push({type:"text",value:r}),l}function lf(e){let t=e.spread;return null==t?e.children.length>1:t}function lh(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 lm={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=ll(l.toLowerCase()),a=e.footnoteOrder.indexOf(l),o=e.footnoteCounts.get(l);void 0===o?(o=0,e.footnoteOrder.push(l),n=e.footnoteOrder.length):n=a+1,o+=1,e.footnoteCounts.set(l,o);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),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 lp(e,t);let l={src:ll(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:ll(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 lp(e,t);let l={href:ll(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:ll(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=lf(n[r])}return t}(n):lf(t),i={},a=[];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 o=-1;for(;++o<r.length;){let e=r[o];(l||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||l?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(l||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:a};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=nj(t.children[1]),a=nw(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),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,a=i?i.length:t.children.length,o=-1,s=[];for(;++o<a;){let n=t.children[o],r={},a=i?i[o]:void 0;a&&(r.align=a);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(lh(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(lh(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:lg,yaml:lg,definition:lg,footnoteDefinition:lg};function lg(){}let lx={}.hasOwnProperty,ly={};function lv(e,t){e.position&&(t.position=function(e){let t=nj(e),n=nw(e);if(t&&n)return{start:t,end:n}}(e))}function lb(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,lr(l)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lk(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 lw(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function lj(e,t){let n,r,l,i,a=(n=t||ly,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=lw(l.value)),!Array.isArray(l)&&"element"===l.type)){let e=l.children[0];e&&"text"===e.type&&(e.value=lw(e.value))}Array.isArray(l)?t.push(...l):t.push(l)}}}return t},applyData:lb,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lm,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(lx.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=lr(n);return r.children=i.all(e),r}return lr(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lx.call(n,"hProperties")||lx.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:lv,wrap:lk},ld(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),o=a.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||li,r=e.options.footnoteBackLabel||la,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],s=-1;for(;++s<e.footnoteOrder.length;){let l=e.footnoteById.get(e.footnoteOrder[s]);if(!l)continue;let i=e.all(l),a=String(l.identifier).toUpperCase(),u=ll(a.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(a);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),o.push(h)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...lr(a),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(a),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&(tV("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function lN(e,t){return e&&"run"in e?async function(n,r){let l=lj(n,{file:r,...t});await e.run(l,r)}:function(n,r){return lj(n,{file:r,...e||t})}}function lC(e){if(e)throw e}var lS=e.i(75609);function lE(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 lI=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');lR(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 a=-1,o=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(l=i):(o=-1,l=a));return r===l?l=a:l<0&&(l=e.length),e.slice(r,l)},lP=function(e){let t;if(lR(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)},lM=function(e){let t;lR(e);let n=e.length,r=-1,l=0,i=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1)}return i<0||r<0||0===a||1===a&&i===r-1&&i===l+1?"":e.slice(i,r)},lT=function(...e){var t;let n,r,l,i=-1;for(;++i<e.length;)lR(e[i]),e[i]&&(l=void 0===l?e[i]:l+"/"+e[i]);return void 0===l?".":(lR(t=l),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,l="",i=0,a=-1,o=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(a===s-1||1===o);else if(a!==s-1&&2===o){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("/"),a=s,o=0;continue}}else if(l.length>0){l="",i=0,a=s,o=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(a+1,s):l=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&o>-1?o++:o=-1}return l}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function lR(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function lD(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let lA=["history","path","basename","stem","extname","dirname"];class lL{constructor(e){let t,n;t=e?lD(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<lA.length;){const e=lA[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)lA.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?lI(this.path):void 0}set basename(e){lO(e,"basename"),lz(e,"basename"),this.path=lT(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?lP(this.path):void 0}set dirname(e){lF(this.basename,"dirname"),this.path=lT(e||"",this.basename)}get extname(){return"string"==typeof this.path?lM(this.path):void 0}set extname(e){if(lz(e,"extname"),lF(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=lT(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lD(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!lD(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)),lO(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?lI(this.path,this.extname):void 0}set stem(e){lO(e,"stem"),lz(e,"stem"),this.path=lT(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 nP(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 lz(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function lO(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function lF(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let l_=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},lB={}.hasOwnProperty;class lH extends l_{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,...a){let o=e[++n],s=-1;if(i)return void r(i);for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,o?(function(e,t){let n;return function(...t){let i,a=e.length>t.length;a&&t.push(r);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(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)}})(o,l)(...a):r(null,...a)}(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 lH,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,lS.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(l$("data",this.frozen),this.namespace[e]=t,this):lB.call(this.namespace,e)&&this.namespace[e]||void 0:e?(l$("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=lG(e),n=this.parser||this.Parser;return lq("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lq("process",this.parser||this.Parser),lV("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,l){let i=lG(e),a=n.parse(i);function o(e,n){e||!n?l(e):r?r(n):(tV(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(a,i,function(e,t,r){var l,i;if(e||!t||!r)return o(e);let a=n.stringify(t,r);"string"==typeof(l=a)||(i=l)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=a:r.result=a,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),lq("processSync",this.parser||this.Parser),lV("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,lC(e),t=r}),lW("processSync","process",n),tV(t,"we either bailed on an error or have a tree"),t}run(e,t,n){lK(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){tV("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let a=lG(t);r.run(e,a,function(t,r,a){let o=r||e;t?i(t):l?l(o):(tV(n,"`done` is defined if `resolve` is not"),n(void 0,o,a))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){lC(e),n=t,r=!0}),lW("runSync","run",r),tV(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=lG(t),r=this.compiler||this.Compiler;return lV("stringify",r),lK(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(l$("use",this.frozen),null==e);else if("function"==typeof e)a(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,lS.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)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;a(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 a(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,a=n[l][1];lE(a)&&lE(r)&&(r=(0,lS.default)(!0,a,r)),n[l]=[e,r,...i]}}}}let lU=new lH().freeze();function lq(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function lV(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function l$(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 lK(e){if(!lE(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function lW(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function lG(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new lL(e)}let lQ=[],lX={allowDangerousHtml:!0},lJ=/^(https?|ircs?|mailto|xmpp)$/i,lY=[{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 lZ(e){var n;let r,l,i,a,o,s=(r=(n=e).rehypePlugins||lQ,l=n.remarkPlugins||lQ,i=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...lX}:lX,lU().use(r3).use(l).use(lN,i).use(r)),u=(a=e.children||"",o=new lL,"string"==typeof a?o.value=a:t$("Unexpected value `"+a+"` for `children` prop, expected `string`"),o);return function(e,n){let r=n.allowedElements,l=n.allowElement,i=n.components,a=n.disallowedElements,o=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||l0;for(let e of lY)Object.hasOwn(n,e.from)&&t$("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&&a&&t$("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),ld(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return o?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nq)if(Object.hasOwn(nq,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nq[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):!!a&&a.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 a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,a=function(e,t,l,i){let a=Array.isArray(l.children),o=nj(e);return r(t,l,i,a,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.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,a=function(e,t,n,r){let a=Array.isArray(n.children)?i:l;return r?a(t,n,r):a(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?nb:nv,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=nz(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 l0(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||lJ.test(e.slice(0,t))?e:""}let l1=(0,t_.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"}]]),l2=(0,t_.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"}]]),l5={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 l4({decision:e,index:r}){let[l,i]=(0,n.useState)(!1),a=(0,k.useSoundAction)("expand"),o=(0,k.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)(tF.Badge,{variant:"secondary",className:"bg-primary/10 text-primary shrink-0",children:e.decisionName}):null]}),e.rationale?(0,t.jsx)(lZ,{components:l5,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?o.play():a.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)(tN.ChevronRight,{className:`h-3.5 w-3.5 transition-transform ${l?"rotate-90":""}`}),(0,t.jsx)(l2,{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 l3({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)(l1,{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)(l4,{decision:e,index:n},e.title))]})}let l6=(0,t_.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 l9({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)(tF.Badge,{className:"px-1.5 py-0 text-[10px]",children:"AI Recommended"}):null]})]})]})})})}function l8({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)(l6,{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)(l9,{item:e,index:n},e.question))]})}var l7=e.i(28201);let ie=(0,t_.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"}]]),it=(0,t_.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"}]]),ir=(0,t_.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 il=e.i(49228);let ii=(0,t_.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var ia=e.i(35e3),io=e.i(30090),io=io,is=e.i(17406);function iu({status:e}){switch(e){case is.CiStatus.Success:return(0,t.jsxs)(tF.Badge,{className:"border-transparent bg-green-50 text-green-700 hover:bg-green-50",children:[(0,t.jsx)(ia.CheckCircle2,{className:"mr-1 h-3.5 w-3.5"}),"Passing"]});case is.CiStatus.Pending:return(0,t.jsxs)(tF.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 is.CiStatus.Failure:return(0,t.jsxs)(tF.Badge,{className:"border-transparent bg-red-50 text-red-700 hover:bg-red-50",children:[(0,t.jsx)(io.default,{className:"mr-1 h-3.5 w-3.5"}),"Failing"]})}}function ic({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)(l2,{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 id({data:e,onApprove:n,onReject:r,isProcessing:l=!1,isRejecting:a=!1,chatInput:o,onChatInputChange:s}){let{pr:u,diffSummary:c,phases:d,branch:f,warning:h}=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:u?"Review the pull request details and approve to merge.":"Review the changes and approve to merge."})]})]}),f?(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)(il.GitBranch,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)(tF.Badge,{variant:"secondary",className:"font-mono text-[11px]",children:f.source}),(0,t.jsx)(ii,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,t.jsx)(tF.Badge,{variant:"outline",className:"font-mono text-[11px]",children:f.target})]})}):null,u?(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:u.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 #",u.number,(0,t.jsx)(p.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(tF.Badge,{variant:"outline",className:"text-xs",children:u.status})]}),u.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)(iu,{status:u.ciStatus})]}):null,u.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)(ir,{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:u.commitHash.slice(0,7)})]})]}):null]})}):null,c?(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)(it,{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:c.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:["+",c.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:["-",c.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:c.commitCount}),(0,t.jsx)("div",{className:"text-muted-foreground text-[10px]",children:"commits"})]})]})]})}):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)(ie,{className:"text-muted-foreground h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:h})]})}):null,d&&d.length>0?(0,t.jsx)(ic,{phases:d}):null]}),(0,t.jsx)(tU,{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)(l7.GitMerge,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise before merging...",isProcessing:l,isRejecting:a,chatInput:o,onChatInputChange:s})]})}var ip=e.i(53360),ih=e.i(25235);let im=(0,e.i(94237).cva)("inline-block shrink-0",{variants:{size:{sm:"size-5",md:"size-8",lg:"size-12"}},defaultVariants:{size:"md"}}),ig=[{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 ix({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,tS.cn)(im({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"}),ig.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"})]})]})]})}e.i(47506);var iy=e.i(2929),iv=e.i(86782);function ib({data:e}){return(0,t.jsxs)(t.Fragment,{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:iy.lifecycleDisplayLabels[e.lifecycle]}),(0,t.jsx)(ik,{data:e}),e.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:[e.progress,"%"]})]}),(0,t.jsx)("div",{className:"bg-muted h-2 w-full overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:(0,tS.cn)("h-full rounded-full transition-all",iy.featureNodeStateConfig[e.state].progressClass),style:{width:`${e.progress}%`}})})]}):null]}),(0,t.jsx)(iw,{data:e}),e.pr?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ih.Separator,{}),(0,t.jsx)(iN,{pr:e.pr})]}):null,(0,t.jsx)(iC,{data:e})]})}function ik({data:e}){let n=iy.featureNodeStateConfig[e.state],r=n.icon;return(0,t.jsxs)("div",{className:(0,tS.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)(ix,{size:"sm",className:"shrink-0"}):(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:n.label})]})}function iw({data:e}){var n;let r,l,i,a,o;return e.branch||e.oneLiner||e.summary||e.userQuery||e.createdAt?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ih.Separator,{}),(0,t.jsxs)("div",{"data-testid":"feature-drawer-info",className:"flex flex-col gap-3 p-4",children:[e.branch?(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:"Branch"}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-sm",children:[(0,t.jsx)(il.GitBranch,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("code",{className:"bg-muted rounded px-1 py-0.5 font-mono text-xs",children:e.branch}),e.baseBranch?(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:["from ",e.baseBranch]}):null]})]}):null,e.oneLiner?(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:"One-Liner"}),(0,t.jsx)("span",{className:"text-sm leading-relaxed",children:e.oneLiner})]}):null,e.userQuery?(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:"User Query"}),(0,t.jsx)("span",{className:"text-sm leading-relaxed",children:e.userQuery})]}):null,e.summary?(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:"Summary"}),(0,t.jsx)("span",{className:"text-sm leading-relaxed",children:e.summary})]}):null,e.createdAt?(0,t.jsx)(iE,{label:"Created",value:(n=e.createdAt,r=Date.now(),(o=Math.floor((a=Math.floor((i=Math.floor(Math.floor((r-(l="string"==typeof n?new Date(n).getTime():n))/1e3)/60))/60))/24))>30?new Date(l).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):o>0?`${o} day${1===o?"":"s"} ago`:a>0?`${a} hour${1===a?"":"s"} ago`:i>0?`${i} minute${1===i?"":"s"} ago`:"just now")}):null]})]}):null}let ij={[is.PrStatus.Open]:"border-transparent bg-blue-50 text-blue-700 hover:bg-blue-50",[is.PrStatus.Merged]:"border-transparent bg-purple-50 text-purple-700 hover:bg-purple-50",[is.PrStatus.Closed]:"border-transparent bg-red-50 text-red-700 hover:bg-red-50"};function iN({pr:e}){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)(p.ExternalLink,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)(tF.Badge,{className:ij[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)(iu,{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)(ir,{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 iC({data:e}){return e.fastMode??e.agentType??e.runtime??e.blockedBy??e.errorMessage?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ih.Separator,{}),(0,t.jsxs)("div",{"data-testid":"feature-drawer-details",className:"flex flex-col gap-3 p-4",children:[e.fastMode?(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:"Mode"}),(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(ip.Zap,{className:"h-4 w-4 shrink-0 text-amber-500"}),"Fast Mode"]})]}):null,e.agentType?(0,t.jsx)(iS,{agentType:e.agentType}):null,e.runtime?(0,t.jsx)(iE,{label:"Runtime",value:e.runtime}):null,e.blockedBy?(0,t.jsx)(iE,{label:"Blocked by",value:e.blockedBy}):null,e.errorMessage?(0,t.jsx)(iE,{label:"Error",value:e.errorMessage}):null]})]}):null}function iS({agentType:e}){let n=(0,iv.getAgentTypeIcon)(e),r=iv.agentTypeLabels[e]??e;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:"Agent"}),(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(n,{className:"h-4 w-4 shrink-0"}),r]})]})}function iE({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})]})}var iI=e.i(14748),iI=iI;let iP=(0,t_.default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),iM={analyze:"Analyzing",requirements:"Requirements",research:"Researching",plan:"Planning",implement:"Implementing",merge:"Merging"},iT={"run:started":{label:"started",colorClass:"text-blue-600"},"run:resumed":{label:"resumed",colorClass:"text-blue-600"},"run:completed":{label:"completed",colorClass:"text-emerald-600"},"run:failed":{label:"failed",colorClass:"text-red-600"},"run:stopped":{label:"stopped",colorClass:"text-amber-600"},"run:crashed":{label:"crashed",colorClass:"text-red-600"},"run:rejected":{label:"rejected",colorClass:"text-orange-600"}};function iR(e){return e.startsWith("run:")}function iD(e){return`${(e/1e3).toFixed(1)}s`}function iA({timings:e,loading:n,error:r,rejectionFeedback:l}){if(n)return(0,t.jsx)("div",{"data-testid":"activity-tab-loading",className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})});if(r)return(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4 text-sm text-red-600",children:[(0,t.jsx)(iI.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:r})]});if(!e||0===e.length)return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 p-8",children:[(0,t.jsx)(iP,{className:"text-muted-foreground h-8 w-8"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No activity recorded yet"})]});let a=e.filter(e=>!iR(e.phase)),o=Math.max(...a.map(e=>e.durationMs??0),...a.map(e=>e.approvalWaitMs??0),0),s=function(e,t){let n=new Map;if(!t?.length)return n;let r=0;for(let l of e)if("run:rejected"===l.phase&&r<t.length){let e=`${l.agentRunId}-${l.phase}-${l.startedAt}`;n.set(e,t[r].message),r++}return n}(e,l),u=function(e){let t=[];for(let n of e){let e=t[t.length-1];e?.runId===n.agentRunId?e.timings.push(n):t.push({runId:n.agentRunId,timings:[n]})}return t}(e),c=u.length>1,d=a.reduce((e,t)=>e+(t.durationMs??0),0),p=a.reduce((e,t)=>e+(t.approvalWaitMs??0),0);return(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[(0,t.jsx)("div",{"data-testid":"activity-timings",className:"flex flex-col gap-3",children:u.map((e,n)=>(0,t.jsx)(iL,{group:e,groupIdx:n,multiRun:c,maxDurationMs:o,rejectionMessages:s},e.runId))}),d>0?(0,t.jsx)(i_,{totalExecMs:d,totalWaitMs:p}):null]})}function iL({group:e,groupIdx:n,multiRun:r,maxDurationMs:l,rejectionMessages:i}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[r?(0,t.jsxs)("div",{className:"text-muted-foreground text-xs font-medium",children:["Run #",n+1]}):null,e.timings.map(e=>{if(iR(e.phase)){let n=`${e.agentRunId}-${e.phase}-${e.startedAt}`,r="run:rejected"===e.phase?i.get(n):void 0;return(0,t.jsx)(iz,{timing:e,message:r},n)}return(0,t.jsx)(iO,{timing:e,maxDurationMs:l},`${e.agentRunId}-${e.phase}-${e.startedAt}`)})]})}function iz({timing:e,message:n}){let r=iT[e.phase];return r?(0,t.jsxs)("div",{className:`text-xs ${r.colorClass}`,children:[(0,t.jsx)("span",{children:r.label}),n?(0,t.jsxs)("span",{"data-testid":"rejection-feedback-text",className:"text-muted-foreground ml-2 font-normal italic",children:["— ",n]}):null]}):null}function iO({timing:e,maxDurationMs:n}){let r=e.phase.includes(":")?`rev ${e.phase.split(":")[1]}`:iM[e.phase]??e.phase,l=e.durationMs??0,i=n>0?Math.max(2,l/n*100):2,a=e.completedAt?"bg-emerald-500":"bg-blue-500";return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{"data-testid":`timing-bar-${e.phase}`,className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-24 shrink-0 text-xs",children:r}),(0,t.jsx)("div",{className:"bg-muted h-3 flex-1 overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:`h-full rounded-full ${a}`,style:{width:`${Math.min(i,100)}%`}})}),(0,t.jsx)("span",{className:"text-muted-foreground w-14 shrink-0 text-right text-xs",children:iD(l)})]}),null!=e.approvalWaitMs&&e.approvalWaitMs>0?(0,t.jsx)(iF,{timing:e,maxDurationMs:n}):null]})}function iF({timing:e,maxDurationMs:n}){let r=e.approvalWaitMs??0,l=n>0?Math.max(2,r/n*100):2;return(0,t.jsxs)("div",{"data-testid":`approval-wait-${e.phase}`,className:"flex items-center gap-3 pl-4",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-20 shrink-0 text-xs",children:"approval"}),(0,t.jsx)("div",{className:"bg-muted h-2.5 flex-1 overflow-hidden rounded-full",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-amber-500",style:{width:`${Math.min(l,100)}%`}})}),(0,t.jsx)("span",{className:"text-muted-foreground w-14 shrink-0 text-right text-xs",children:iD(r)})]})}function i_({totalExecMs:e,totalWaitMs:n}){return(0,t.jsxs)("div",{"data-testid":"activity-summary",className:"border-border flex flex-col gap-1.5 border-t pt-3",children:[(0,t.jsx)(iB,{label:"Total execution",value:iD(e)}),n>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(iB,{label:"Total wait",value:iD(n)}),(0,t.jsx)(iB,{label:"Total wall-clock",value:iD(e+n)})]}):null]})}function iB({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:e}),(0,t.jsx)("span",{className:"text-xs font-medium",children:n})]})}var iI=iI;let iH=(0,t_.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);function iU({content:e,isConnected:r,error:l}){let i=(0,n.useRef)(null),[a,o]=(0,n.useState)(!0),s=(0,n.useCallback)(()=>{let e=i.current;e&&o(e.scrollHeight-e.scrollTop-e.clientHeight<40)},[]),u=(0,n.useCallback)(()=>{let e=i.current;e&&(e.scrollTop=e.scrollHeight,o(!0))},[]);return((0,n.useEffect)(()=>{a&&i.current&&(i.current.scrollTop=i.current.scrollHeight)},[e,a]),l)?(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4 text-sm text-red-600",children:[(0,t.jsx)(iI.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:l})]}):e?(0,t.jsxs)("div",{className:"flex h-full flex-col","data-testid":"log-tab",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b px-3 py-1.5",children:[(0,t.jsx)("span",{className:`h-2 w-2 rounded-full ${r?"bg-emerald-500":"bg-zinc-400"}`}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:r?"Live":"Disconnected"}),a?null:(0,t.jsxs)("button",{type:"button",onClick:u,className:"text-muted-foreground hover:text-foreground ml-auto flex items-center gap-1 text-xs",children:[(0,t.jsx)(iH,{className:"h-3 w-3"}),"Jump to bottom"]})]}),(0,t.jsx)("div",{ref:i,onScroll:s,className:"flex-1 overflow-y-auto bg-zinc-950 p-3 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap text-zinc-300",children:e})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 p-8",children:[(0,t.jsx)(R.Terminal,{className:"text-muted-foreground h-8 w-8"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No log output yet"}),r?(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:"Waiting for log data..."}):null]})}var iq=e.i(87889),iI=iI;let iV=(0,t_.default)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]),i$={Requirements:"border-transparent bg-blue-50 text-blue-700 hover:bg-blue-50",ClarificationRequired:"border-transparent bg-amber-50 text-amber-700 hover:bg-amber-50",Ready:"border-transparent bg-green-50 text-green-700 hover:bg-green-50"},iK={Todo:{icon:tC.Circle,colorClass:"text-muted-foreground"},"Work in Progress":{icon:i.Loader2,colorClass:"text-blue-600",spinning:!0},Done:{icon:c.Check,colorClass:"text-emerald-600"},Review:{icon:iq.Eye,colorClass:"text-amber-600"}},iW={icon:tC.Circle,colorClass:"text-muted-foreground"};function iG({plan:e,loading:n,error:r}){return n?(0,t.jsx)("div",{"data-testid":"plan-tab-loading",className:"flex items-center justify-center p-8",children:(0,t.jsx)(i.Loader2,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):r?(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4 text-sm text-red-600",children:[(0,t.jsx)(iI.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:r})]}):e?(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Plan State"}),(0,t.jsx)(tF.Badge,{className:i$[e.state]??"border-transparent bg-gray-50 text-gray-700",children:e.state})]}),e.overview?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Overview"}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:e.overview})]}):null,(0,t.jsx)(iQ,{tasks:e.tasks})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 p-8",children:[(0,t.jsx)(iV,{className:"text-muted-foreground h-8 w-8"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No plan created yet"})]})}function iQ({tasks:e}){return 0===e.length?(0,t.jsx)("div",{className:"flex flex-col items-center justify-center gap-2 py-4",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No tasks defined yet"})}):(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-medium",children:"Tasks"}),(0,t.jsx)("div",{"data-testid":"plan-task-list",className:"flex flex-col gap-2",children:e.map((e,n)=>(0,t.jsx)(iX,{task:e,index:n},e.title||`task-${n}`))})]})}function iX({task:e,index:n}){let r=iK[e.state]??iW,l=r.icon;return(0,t.jsxs)("div",{"data-testid":`plan-task-${n}`,className:`flex items-start gap-2 rounded-md border px-3 py-2 ${r.colorClass}`,children:[(0,t.jsx)(l,{className:`mt-0.5 h-4 w-4 shrink-0 ${r.spinning?"animate-spin":""}`}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.title}),e.description?(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:e.description}):null]})]})}function iJ(){return{data:null,loading:!1,error:null}}let iY=[{key:"overview",label:"Overview"},{key:"activity",label:"Activity"},{key:"log",label:"Log"},{key:"plan",label:"Plan"},{key:"prd-review",label:"PRD Review"},{key:"tech-decisions",label:"Tech Decisions"},{key:"product-decisions",label:"Product"},{key:"merge-review",label:"Merge Review"}],iZ=new Set(["implementation","review","deploy","maintain"]),i0={activity:async function(e){let t=await tL(e);if("error"in t)throw Error(t.error);return{timings:t.timings,rejectionFeedback:t.rejectionFeedback}},plan:async function(e){let t=await tz(e);if("error"in t)throw Error(t.error);return t.plan}};function i1({featureNode:e,featureId:r,initialTab:l,prdData:a,prdSelections:o,onPrdSelect:s,onPrdApprove:u,onPrdReject:c,isPrdLoading:d,techData:p,onTechApprove:f,onTechReject:h,isTechLoading:m,productData:g,mergeData:x,onMergeApprove:y,onMergeReject:v,isMergeLoading:b,isRejecting:k,chatInput:w,onChatInputChange:j}){let N=function(e){let[t,r]=(0,n.useState)(""),[l,i]=(0,n.useState)(!1),[a,o]=(0,n.useState)(null),s=(0,n.useRef)(null),u=(0,n.useCallback)(()=>{s.current&&(s.current.close(),s.current=null),i(!1)},[]);return(0,n.useEffect)(()=>{if(!e){r(""),i(!1),o(null);return}r(""),o(null);let t=new EventSource(`/api/feature-logs?featureId=${e}`);return s.current=t,t.onopen=()=>{i(!0)},t.addEventListener("initial",e=>{r(JSON.parse(e.data).content)}),t.addEventListener("log",e=>{let t=JSON.parse(e.data);r(e=>e+t.content)}),t.addEventListener("error",e=>{o(JSON.parse(e.data).error)}),t.onerror=()=>{i(!1)},()=>{t.close(),s.current=null}},[e,u]),{content:t,isConnected:l,error:a}}(r),C=(0,n.useMemo)(()=>{let t;return t=["overview","activity","log"],iZ.has(e.lifecycle)&&("implementation"!==e.lifecycle||"action-required"!==e.state)&&t.push("plan"),"requirements"===e.lifecycle&&"action-required"===e.state&&t.push("prd-review"),"implementation"===e.lifecycle&&"action-required"===e.state&&t.push("tech-decisions","product-decisions"),"review"===e.lifecycle&&("action-required"===e.state||"error"===e.state)&&t.push("merge-review"),t},[e]),S=(0,n.useMemo)(()=>iY.filter(e=>C.includes(e.key)),[C]),E=l&&C.includes(l)?l:"overview",[I,P]=(0,n.useState)(E),{tabs:M,fetchTab:T,refreshTab:R}=function(e,t){let r=Object.keys(t),[l,i]=(0,n.useState)(()=>{let e={};for(let t of r)e[t]=iJ();return e}),a=(0,n.useRef)(t);a.current=t;let o=(0,n.useRef)(e);o.current=e;let s=(0,n.useRef)(!0);(0,n.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);let u=(0,n.useRef)(e);(0,n.useEffect)(()=>{u.current!==e&&(u.current=e,i(e=>{let t={};for(let n of Object.keys(e))t[n]=iJ();return t}))},[e]);let c=(0,n.useCallback)(async e=>{let t=a.current[e],n=o.current;if(t){s.current&&i(t=>({...t,[e]:{...t[e],loading:!0,error:null}}));try{let r=await t(n);s.current&&i(t=>({...t,[e]:{data:r,loading:!1,error:null}}))}catch(t){if(s.current){let n=t instanceof Error?t.message:"Failed to fetch tab data";i(t=>({...t,[e]:{data:null,loading:!1,error:n}}))}}}},[]),d=(0,n.useCallback)(async e=>{let t=l[e];t&&null!==t.data||t&&t.loading||await c(e)},[l,c]);return{tabs:l,fetchTab:d,refreshTab:(0,n.useCallback)(async e=>{await c(e)},[c])}}(r,i0),D=(0,n.useRef)(r);(0,n.useEffect)(()=>{D.current!==r&&(D.current=r,P("overview"))},[r]);let A=(0,n.useRef)(l);(0,n.useEffect)(()=>{A.current!==l&&l&&C.includes(l)&&(A.current=l,P(l))},[l,C]),(0,n.useEffect)(()=>{C.includes(I)||P("overview")},[C,I]);let L=(0,n.useRef)(e),z=(0,n.useRef)(I);z.current=I,(0,n.useEffect)(()=>{if(L.current!==e){L.current=e;let t=z.current;("activity"===t||"plan"===t)&&R(t)}},[e,R]);let O=(0,n.useCallback)(e=>{P(e),("activity"===e||"plan"===e)&&T(e)},[T]);return(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:(0,t.jsxs)(tA.Tabs,{value:I,onValueChange:O,className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"shrink-0 overflow-x-auto px-4 pt-4",children:(0,t.jsx)(tA.TabsList,{className:"flex w-full",children:S.map(e=>(0,t.jsx)(tA.TabsTrigger,{value:e.key,className:"flex-1",children:e.label},e.key))})}),(0,t.jsx)(tA.TabsContent,{value:"overview",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(ib,{data:e})}),(0,t.jsx)(tA.TabsContent,{value:"activity",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(iA,{timings:M.activity.data?.timings??null,loading:M.activity.loading,error:M.activity.error,rejectionFeedback:M.activity.data?.rejectionFeedback})}),(0,t.jsx)(tA.TabsContent,{value:"log",className:"mt-0 flex-1 overflow-hidden",children:(0,t.jsx)(iU,{content:N.content,isConnected:N.isConnected,error:N.error})}),(0,t.jsx)(tA.TabsContent,{value:"plan",className:"mt-0 flex-1 overflow-y-auto",children:(0,t.jsx)(iG,{plan:M.plan.data,loading:M.plan.loading,error:M.plan.error})}),C.includes("prd-review")?(0,t.jsx)(tA.TabsContent,{value:"prd-review",className:"mt-0 flex min-h-0 flex-1 flex-col",children:a?(0,t.jsx)(tq,{data:a,selections:o??{},onSelect:s??(()=>void 0),onApprove:u??(()=>void 0),onReject:c,isProcessing:d,isRejecting:k,chatInput:w,onChatInputChange:j}):(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"})})}):null,C.includes("tech-decisions")?(0,t.jsx)(tA.TabsContent,{value:"tech-decisions",className:"mt-0 flex min-h-0 flex-1 flex-col",children:p?(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,t.jsx)(l3,{data:p})}),(0,t.jsx)(i2,{onApprove:f??(()=>void 0),onReject:h,isProcessing:m,isRejecting:k,chatInput:w,onChatInputChange:j})]}):(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"})})}):null,C.includes("product-decisions")?(0,t.jsx)(tA.TabsContent,{value:"product-decisions",className:"mt-0 flex-1 overflow-y-auto",children:null===g?(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"})}):g?(0,t.jsx)(l8,{data:g}):(0,t.jsx)("p",{className:"text-muted-foreground p-4 text-center text-sm",children:"No product decisions available."})}):null,C.includes("merge-review")?(0,t.jsx)(tA.TabsContent,{value:"merge-review",className:"mt-0 flex min-h-0 flex-1 flex-col",children:x?(0,t.jsx)(id,{data:x,onApprove:y??(()=>void 0),onReject:v,isProcessing:b,isRejecting:k,chatInput:w,onChatInputChange:j}):(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"})})}):null]})})}function i2({onApprove:e,onReject:n,isProcessing:r,isRejecting:l,chatInput:i,onChatInputChange:a}){return(0,t.jsx)(tU,{onReject:n,onApprove:e,approveLabel:"Approve Plan",approveIcon:(0,t.jsx)(c.Check,{className:"mr-1.5 h-4 w-4"}),revisionPlaceholder:"Ask AI to revise the plan...",isProcessing:r,isRejecting:l,chatInput:i,onChatInputChange:a})}var i5=e.i(9712),i4=e.i(93265),i3=e.i(31981),i6=e.i(99045);function i9(e,t,r,i,a){let[o,s]=(0,n.useState)(!1),u=(0,n.useRef)(r),c=(0,n.useRef)(i);return u.current=r,c.current=i,(0,n.useEffect)(()=>{if(c.current(),!e)return;let n=!1;return s(!0),t(e).then(e=>{n||u.current(e)}).catch(()=>{!n&&a&&l.toast.error(a)}).finally(()=>{n||s(!1)}),()=>{n=!0}},[e,t,a]),o}function i8({view:e}){let f,R=(0,b.useFeatureFlags)(),D=(0,r.useRouter)(),A=(0,k.useSoundAction)("delete"),L=(0,k.useSoundAction)("reject"),[z,O]=(0,n.useState)(e);(0,n.useEffect)(()=>{O(e)},[e]);let F="feature"===z.type?z.node:null,{events:_}=(0,N.useAgentEventsContext)(),B=(0,n.useRef)(0);(0,n.useEffect)(()=>{if(B.current>_.length&&(B.current=0),!F||_.length<=B.current)return;let e=_.slice(B.current);for(let t of(B.current=_.length,(0,i6.resolveSseEventUpdates)(e)))t.featureId===F.featureId&&(!U.current||ev.current||eu.current||D.refresh(),(void 0!==t.state||void 0!==t.lifecycle)&&O(e=>{if("feature"!==e.type)return e;let n={...e.node,...void 0!==t.state&&{state:t.state},...void 0!==t.lifecycle&&{lifecycle:t.lifecycle}};return{...e,node:n,initialTab:"requirements"===n.lifecycle&&"action-required"===n.state?"prd-review":"implementation"===n.lifecycle&&"action-required"===n.state?"tech-decisions":"review"===n.lifecycle&&("action-required"===n.state||"error"===n.state)?"merge-review":"overview"}}))},[_,F,D]);let H=(0,r.usePathname)().startsWith("/feature/"),U=(0,n.useRef)(H),q=(0,n.useRef)(H);(0,n.useEffect)(()=>{H&&!q.current&&D.refresh(),q.current=H},[H,D]),U.current=H;let V=(0,n.useCallback)(()=>{D.push("/")},[D]),[$,K]=(0,n.useState)(""),[W,G]=(0,n.useState)(null),[Q,X]=(0,n.useState)({}),[J,Y]=(0,n.useState)({}),[Z,ee]=(0,n.useState)(null),[et,en]=(0,n.useState)(void 0),[er,el]=(0,n.useState)(null),[ei,ea]=(0,n.useState)(!1),[eo,es]=(0,n.useState)(!1),eu=(0,n.useRef)(!1),ec="feature"===z.type?z.initialTab:void 0;(0,n.useEffect)(()=>{K("")},[ec]);let ed=i9(F?.lifecycle==="requirements"&&F?.state==="action-required"?F.featureId:null,g,e=>{if(e.error)return void l.toast.error(e.error);if(e.questionnaire){G(e.questionnaire);let t={};for(let n of e.questionnaire.questions){let e=n.options.find(e=>e.recommended);e&&(t[n.id]=e.id)}X(t),Y(t)}},()=>{X({}),Y({}),G(null)},"Failed to load questionnaire"),ep=F?.lifecycle==="implementation"&&F?.state==="action-required"?F.featureId:null,ef=i9(ep,x,e=>{e.error?l.toast.error(e.error):e.techDecisions&&ee(e.techDecisions)},()=>ee(null),"Failed to load tech decisions"),eh=i9(ep,g,e=>{e.productDecisions&&en(e.productDecisions)},()=>en(void 0)),em=i9(F?.lifecycle==="review"&&(F?.state==="action-required"||F?.state==="error")?F.featureId:null,y,e=>{"error"in e?l.toast.error(e.error):el(e)},()=>el(null),"Failed to load merge review data"),eg=$.trim().length>0,ex=F?.lifecycle==="requirements"&&F?.state==="action-required"&&Object.keys(J).some(e=>J[e]!==Q[e]),ey=eg||ex,ev=(0,n.useRef)(ey);ev.current=ey;let eb=(0,n.useCallback)(()=>{K(""),X({...J})},[J]),{attemptClose:ek}=(0,w.useGuardedDrawerClose)({open:H,isDirty:ey,onClose:V,onReset:eb}),ew=(0,n.useCallback)(async(e,t,n)=>{if(F?.featureId){eu.current=!0,es(!0);try{let r=await m(F.featureId,e);if(!r.rejected)return void l.toast.error(r.error??`Failed to reject ${t.toLowerCase()}`);L.play(),K(""),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`),V(),n?.()}finally{eu.current=!1,es(!1)}}},[F,V,L]),ej=(0,n.useCallback)(e=>ew(e,"Requirements",()=>X({})),[ew]),eN=(0,n.useCallback)(e=>ew(e,"Plan"),[ew]),eC=(0,n.useCallback)(e=>ew(e,"Merge"),[ew]),eS=(0,n.useCallback)(async e=>{if(!F?.featureId)return;let t=await h(F.featureId);t.approved?(K(""),l.toast.success(`${e} approved — agent resuming`),window.dispatchEvent(new CustomEvent("shep:feature-approved",{detail:{featureId:F.featureId}})),V()):l.toast.error(t.error??`Failed to approve ${e.toLowerCase()}`)},[F,V]),eE=(0,n.useCallback)(async e=>{let t;if("feature"!==z.type||!F)return;if(W){let e=[];for(let[t,n]of Object.entries(Q)){let r=W.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.featureId,t);n.approved?(K(""),l.toast.success("Requirements approved — agent resuming"),window.dispatchEvent(new CustomEvent("shep:feature-approved",{detail:{featureId:F.featureId}})),X({}),V()):l.toast.error(n.error??"Failed to approve requirements")},[z,F,W,Q,V]),eI=(0,n.useCallback)(()=>eS("Plan"),[eS]),eP=(0,n.useCallback)(()=>eS("Merge"),[eS]),eM=(0,n.useCallback)(async e=>{ea(!0);try{let t=await (0,v.deleteFeature)(e);if(t.error)return void l.toast.error(t.error);A.play(),l.toast.success("Feature deleted successfully"),D.push("/"),D.refresh()}catch{l.toast.error("Failed to delete feature")}finally{ea(!1)}},[D,A]),eT=F?.repositoryPath&&F?.branch?{repositoryPath:F.repositoryPath,branch:F.branch,specPath:F.specPath}:null,eR=function(e){let[t,r]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),[a,o]=(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,m,g];return()=>{for(let t of e)t.current&&clearTimeout(t.current)}},[]);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(i5.openIde,r,u,h,t),[x,t]),openInShell:(0,n.useCallback)(()=>x(i4.openShell,i,d,m,l),[x,l]),openSpecsFolder:(0,n.useCallback)(async()=>{if(e?.specPath&&!a){g.current&&clearTimeout(g.current),o(!0),f(null);try{let t=await (0,i3.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{o(!1)}}},[e,a]),ideLoading:t,shellLoading:l,specsLoading:a,ideError:s,shellError:c,specsError:p}}(eT),eD=F?.repositoryPath&&F.branch?{targetId:F.featureId,targetType:"feature",repositoryPath:F.repositoryPath,branch:F.branch}:null,eA=(0,j.useDeployAction)(eD),eL="Booting"===eA.status||"Ready"===eA.status,[ez,eO]=(0,n.useState)(!1),eF=(0,n.useCallback)(()=>{F?.featureId&&(navigator.clipboard.writeText(F.featureId),eO(!0),setTimeout(()=>eO(!1),2e3))},[F?.featureId]);if(F){let e=F.featureId.slice(0,8),n=F.repositoryName??F.repositoryPath.split("/").filter(Boolean).at(-1)??"";f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-testid":"feature-drawer-header",children:[(0,t.jsx)(E.DrawerTitle,{children:F.name}),n?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 pt-0.5",children:[(0,t.jsx)(d.Code2,{className:"text-muted-foreground size-3.5 shrink-0"}),F.remoteUrl?(0,t.jsxs)("a",{href:F.remoteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-xs transition-colors","data-testid":"feature-drawer-repo-link",children:[n,(0,t.jsx)(p.ExternalLink,{className:"size-3"})]}):(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:n})]}):null,(0,t.jsx)(E.DrawerDescription,{className:"sr-only",children:F.name})]}),eT?(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2","data-testid":"feature-drawer-actions",children:[(0,t.jsx)(tD,{actions:eR,repositoryPath:eT.repositoryPath,showSpecs:!!eT.specPath}),R.envDeploy&&eD?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.TooltipProvider,{children:(0,t.jsxs)(P.Tooltip,{children:[(0,t.jsx)(P.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsx)(T.ActionButton,{label:eL?"Stop Dev Server":"Start Dev Server",onClick:eL?eA.stop:eA.deploy,loading:eA.deployLoading||eA.stopLoading,error:!!eA.deployError,icon:eL?s.Square:o.Play,iconOnly:!0,variant:"outline",size:"icon-sm"})})}),(0,t.jsx)(P.TooltipContent,{children:eL?"Stop Dev Server":"Start Dev Server"})]})}),eL?(0,t.jsx)(S.DeploymentStatusBadge,{status:eA.status,url:eA.url,targetId:eD?.targetId}):null]}):null,(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[(0,t.jsx)("code",{className:"bg-muted text-muted-foreground rounded px-1.5 py-0.5 font-mono text-xs",children:e}),(0,t.jsx)("button",{type:"button",onClick:eF,className:"text-muted-foreground hover:text-foreground inline-flex items-center rounded p-0.5 transition-colors","aria-label":"Copy feature ID","data-testid":"feature-drawer-copy-id",children:ez?(0,t.jsx)(c.Check,{className:"size-3.5 text-green-600"}):(0,t.jsx)(u.Copy,{className:"size-3.5"})})]}),F.featureId?(0,t.jsxs)(M.AlertDialog,{children:[(0,t.jsx)(M.AlertDialogTrigger,{asChild:!0,children:(0,t.jsx)(I.Button,{variant:"ghost",size:"icon-sm","aria-label":"Delete feature",disabled:ei,className:"text-muted-foreground hover:text-destructive","data-testid":"feature-drawer-delete",children:ei?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):(0,t.jsx)(a.Trash2,{className:"size-4"})})}),(0,t.jsxs)(M.AlertDialogContent,{children:[(0,t.jsxs)(M.AlertDialogHeader,{children:[(0,t.jsx)(M.AlertDialogTitle,{children:"Delete feature?"}),(0,t.jsxs)(M.AlertDialogDescription,{children:["This will permanently delete ",(0,t.jsx)("strong",{children:F.name})," (",F.featureId,"). This action cannot be undone.","running"===F.state?(0,t.jsx)(t.Fragment,{children:" This feature has a running agent that will be stopped."}):null]})]}),(0,t.jsxs)(M.AlertDialogFooter,{children:[(0,t.jsx)(M.AlertDialogCancel,{disabled:ei,children:"Cancel"}),(0,t.jsx)(M.AlertDialogAction,{variant:"destructive",disabled:ei,onClick:()=>eM(F.featureId),children:ei?(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 e_=null;return"feature"===z.type&&F&&(e_=(0,t.jsx)(i1,{featureNode:F,featureId:F.featureId,initialTab:z.initialTab,prdData:W,prdSelections:Q,onPrdSelect:(e,t)=>X(n=>({...n,[e]:t})),onPrdApprove:eE,onPrdReject:ej,isPrdLoading:ed,techData:Z,onTechApprove:eI,onTechReject:eN,isTechLoading:ef,productData:eh?null:et,mergeData:er,onMergeApprove:eP,onMergeReject:eC,isMergeLoading:em,isRejecting:eo,chatInput:$,onChatInputChange:K})),(0,t.jsx)(C.BaseDrawer,{open:H,onClose:ek,size:"md",modal:!1,header:f,"data-testid":"feature"===z.type?"feature-drawer":"repository-drawer",children:e_})}e.s(["FeatureDrawerClient",()=>i8],36986)}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|