openplanr 3.3.0 → 3.5.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/CHANGELOG.md +80 -0
- package/dist/cli/commands/artifact-design-share.d.ts +9 -0
- package/dist/cli/commands/artifact-design-share.d.ts.map +1 -0
- package/dist/cli/commands/artifact-design-share.js +200 -0
- package/dist/cli/commands/artifact-design-share.js.map +1 -0
- package/dist/cli/commands/artifact.d.ts.map +1 -1
- package/dist/cli/commands/artifact.js +5 -18
- package/dist/cli/commands/artifact.js.map +1 -1
- package/dist/cli/commands/design.d.ts +3 -0
- package/dist/cli/commands/design.d.ts.map +1 -0
- package/dist/cli/commands/design.js +137 -0
- package/dist/cli/commands/design.js.map +1 -0
- package/dist/cli/commands/groups/operations.d.ts.map +1 -1
- package/dist/cli/commands/groups/operations.js +2 -0
- package/dist/cli/commands/groups/operations.js.map +1 -1
- package/dist/cli/commands/ship.d.ts.map +1 -1
- package/dist/cli/commands/ship.js +2 -0
- package/dist/cli/commands/ship.js.map +1 -1
- package/dist/dashboard/.vite/manifest.json +2 -2
- package/dist/dashboard/assets/index-B-l_941W.js +75 -0
- package/dist/dashboard/assets/index-B-l_941W.js.map +1 -0
- package/dist/dashboard/assets/index-Cv4Vwhuw.css +2 -0
- package/dist/dashboard/dashboard-manifest.json +14 -14
- package/dist/dashboard/index.html +2 -2
- package/dist/services/design-artifact-service.d.ts +42 -1
- package/dist/services/design-artifact-service.d.ts.map +1 -1
- package/dist/services/design-artifact-service.js +198 -19
- package/dist/services/design-artifact-service.js.map +1 -1
- package/dist/services/runtime-manager/runtime-package.js +1 -1
- package/dist/services/runtime-manager/runtime-package.js.map +1 -1
- package/dist/services/ship-checks/contract.d.ts +3 -1
- package/dist/services/ship-checks/contract.d.ts.map +1 -1
- package/dist/services/ship-checks/contract.js +1 -1
- package/dist/services/ship-checks/contract.js.map +1 -1
- package/dist/services/ship-checks/discover.d.ts.map +1 -1
- package/dist/services/ship-checks/discover.js +2 -1
- package/dist/services/ship-checks/discover.js.map +1 -1
- package/dist/services/ship-checks/package-contents.d.ts +4 -0
- package/dist/services/ship-checks/package-contents.d.ts.map +1 -0
- package/dist/services/ship-checks/package-contents.js +91 -0
- package/dist/services/ship-checks/package-contents.js.map +1 -0
- package/dist/services/ship-checks/packages.d.ts +2 -0
- package/dist/services/ship-checks/packages.d.ts.map +1 -1
- package/dist/services/ship-checks/packages.js +4 -0
- package/dist/services/ship-checks/packages.js.map +1 -1
- package/dist/services/ship-checks/scope.js +2 -1
- package/dist/services/ship-checks/scope.js.map +1 -1
- package/dist/utils/splice-managed-block.js +1 -1
- package/dist/utils/splice-managed-block.js.map +1 -1
- package/docs/CLI.md +67 -1
- package/lib/host-packages/adapter-registry.json +5 -5
- package/lib/host-packages/capability-map.json +1 -1
- package/lib/host-packages/claude/.claude-plugin/marketplace.json +3 -3
- package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +6 -6
- package/lib/host-packages/claude/openplanr/.openplanr-content.json +57 -429
- package/lib/host-packages/claude/openplanr/README.md +16 -16
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/task-context-resolution.md +4 -4
- package/lib/host-packages/claude/openplanr/skills/artifact/references/design-sharing.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/delegate/SKILL.md +2 -1
- package/lib/host-packages/claude/openplanr/skills/delegate/references/integration-review.md +26 -20
- package/lib/host-packages/claude/openplanr/skills/delegate/references/operator-guide.md +25 -1
- package/lib/host-packages/claude/openplanr/skills/delegate/references/run-handoff.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/delegate/references/worktree-custody.md +17 -9
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/claude.mjs +15 -3
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/codex.mjs +38 -2
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/native.mjs +5 -0
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/custody.mjs +217 -10
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/handoff.mjs +1080 -0
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integrate.mjs +96 -201
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integration-files.mjs +3 -382
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/presentation.mjs +29 -12
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-contract.mjs +11 -0
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-execution.mjs +1 -1
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-lifecycle.mjs +14 -10
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-preparation.mjs +4 -0
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-record.mjs +2 -2
- package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +23 -12
- package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +3 -3
- package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +6 -3
- package/lib/host-packages/claude/openplanr/skills/design/references/review.md +6 -6
- package/lib/host-packages/claude/openplanr/skills/design/references/team-review.md +3 -4
- package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +78 -32
- package/lib/host-packages/claude/openplanr/skills/design-loop/SKILL.md +15 -7
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +3 -3
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +6 -6
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/team-review.md +3 -4
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +78 -32
- package/lib/host-packages/claude/openplanr/skills/design-review/SKILL.md +25 -5
- package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +3 -3
- package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +6 -6
- package/lib/host-packages/claude/openplanr/skills/design-review/references/team-review.md +3 -4
- package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +78 -32
- package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +1 -0
- package/lib/host-packages/claude/openplanr/skills/investigate/references/fail-first.md +40 -0
- package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +7 -3
- package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +22 -10
- package/lib/host-packages/claude/openplanr/skills/ship/references/fail-first.md +40 -0
- package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +7 -3
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +55 -427
- package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-artifact/references/design-sharing.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/integration-review.md +26 -20
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/operator-guide.md +25 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/run-handoff.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/worktree-custody.md +17 -9
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/claude.mjs +15 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/codex.mjs +38 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/native.mjs +5 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/custody.mjs +217 -10
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/handoff.mjs +1080 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integrate.mjs +96 -201
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integration-files.mjs +3 -382
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/presentation.mjs +29 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-contract.mjs +11 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-execution.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-lifecycle.mjs +14 -10
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-preparation.mjs +4 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-record.mjs +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate.mdc +2 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +3 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +6 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +6 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/team-review.md +3 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +78 -32
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +3 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +6 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/team-review.md +3 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +78 -32
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop.mdc +15 -7
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +3 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +6 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/team-review.md +3 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +78 -32
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review.mdc +25 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +23 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/fail-first.md +40 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +1 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +7 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/fail-first.md +40 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +7 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +22 -10
- package/lib/host-packages/openai/.claude-plugin/marketplace.json +3 -3
- package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +2 -2
- package/lib/host-packages/openai/openplanr/.openplanr-content.json +62 -434
- package/lib/host-packages/openai/openplanr/skills/artifact/references/design-sharing.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/delegate/SKILL.md +2 -1
- package/lib/host-packages/openai/openplanr/skills/delegate/openplanr.skill.json +1 -1
- package/lib/host-packages/openai/openplanr/skills/delegate/references/integration-review.md +26 -20
- package/lib/host-packages/openai/openplanr/skills/delegate/references/operator-guide.md +25 -1
- package/lib/host-packages/openai/openplanr/skills/delegate/references/run-handoff.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/delegate/references/worktree-custody.md +17 -9
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/claude.mjs +15 -3
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/codex.mjs +38 -2
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/native.mjs +5 -0
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/custody.mjs +217 -10
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/handoff.mjs +1080 -0
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integrate.mjs +96 -201
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integration-files.mjs +3 -382
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/presentation.mjs +29 -12
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-contract.mjs +11 -0
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-execution.mjs +1 -1
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-lifecycle.mjs +14 -10
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-preparation.mjs +4 -0
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-record.mjs +2 -2
- package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +23 -12
- package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +3 -3
- package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +6 -3
- package/lib/host-packages/openai/openplanr/skills/design/references/review.md +6 -6
- package/lib/host-packages/openai/openplanr/skills/design/references/team-review.md +3 -4
- package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +78 -32
- package/lib/host-packages/openai/openplanr/skills/design-loop/SKILL.md +15 -7
- package/lib/host-packages/openai/openplanr/skills/design-loop/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +3 -3
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +6 -6
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/team-review.md +3 -4
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +78 -32
- package/lib/host-packages/openai/openplanr/skills/design-review/SKILL.md +25 -5
- package/lib/host-packages/openai/openplanr/skills/design-review/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +3 -3
- package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +6 -6
- package/lib/host-packages/openai/openplanr/skills/design-review/references/team-review.md +3 -4
- package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +78 -32
- package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +1 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +12 -1
- package/lib/host-packages/openai/openplanr/skills/investigate/references/fail-first.md +40 -0
- package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +7 -3
- package/lib/host-packages/openai/openplanr/skills/plan/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +22 -10
- package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +12 -1
- package/lib/host-packages/openai/openplanr/skills/ship/references/fail-first.md +40 -0
- package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +7 -3
- package/package.json +8 -8
- package/dist/dashboard/assets/index-BU5fzjyz.css +0 -1
- package/dist/dashboard/assets/index-B_96uzCl.js +0 -572
- package/dist/dashboard/assets/index-B_96uzCl.js.map +0 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1774
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +0 -1576
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +0 -3385
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -39
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-support-25485dbf1cb2.mjs +0 -24
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +0 -1113
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +0 -505
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5907
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +0 -1430
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2050
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +0 -809
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -5693
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -124
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -133
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +0 -2261
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +0 -1595
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +0 -1467
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +0 -1860
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +0 -914
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +0 -2578
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +0 -582
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -159
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -5468
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +0 -2844
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -159
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integration-transaction.mjs +0 -958
- package/lib/host-packages/claude/openplanr/skills/design/scripts/design.mjs +0 -12
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/design.mjs +0 -12
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/design.mjs +0 -12
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integration-transaction.mjs +0 -958
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1774
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +0 -1576
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +0 -3385
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -39
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-25485dbf1cb2.mjs +0 -24
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +0 -1113
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +0 -505
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5907
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +0 -1430
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2050
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +0 -809
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -5693
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -124
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -133
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +0 -2261
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +0 -1595
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +0 -1467
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +0 -1860
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +0 -914
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +0 -2578
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +0 -582
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -159
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -5468
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +0 -2844
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -159
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1774
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +0 -1576
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +0 -3385
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -39
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-25485dbf1cb2.mjs +0 -24
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +0 -1113
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +0 -505
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5907
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +0 -1430
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2050
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +0 -809
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -5693
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -124
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -133
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +0 -2261
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +0 -1595
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +0 -1467
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +0 -1860
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +0 -914
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +0 -2578
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +0 -582
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -159
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -5468
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +0 -2844
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -159
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integration-transaction.mjs +0 -958
- package/lib/host-packages/openai/openplanr/skills/design/scripts/design.mjs +0 -12
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/design.mjs +0 -12
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/design.mjs +0 -12
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/design.mjs +0 -12
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ee(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=ee(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var te=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ne(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,te)}catch(e){te(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function re(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ne(re.bind(null,e))}var ie={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ie,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=re,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ne,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),P=Symbol.for(`react.context`),F=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.legacy_hidden`),I=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.for(`react.view_transition`),ce=Symbol.for(`react.recoverable`),le=Symbol.iterator;function ue(e){return typeof e!=`object`||!e?null:(e=le&&e[le]||e[`@@iterator`],typeof e==`function`?e:null)}var de=Symbol.for(`react.client.reference`);function L(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case te:return`Suspense`;case ne:return`SuspenseList`;case ae:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case P:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case F:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?L(e.type)||`Memo`:t;case ie:t=e._payload,e=e._init;try{return L(e(t))}catch{}}return null}var fe=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function ve(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function ye(e,t){ge++,he[ge]=e.current,e.current=t}var be=_e(null),xe=_e(null),z=_e(null),Se=_e(null);function B(e,t){switch(ye(z,t),ye(xe,e),ye(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gp(t),e=_p(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ve(be),ye(be,e)}function Ce(){ve(be),ve(xe),ve(z)}function we(e){var t=e.memoizedState;t!==null&&(dh._currentValue=t.memoizedState,ye(Se,e)),t=be.current;var n=_p(t,e.type);t!==n&&(ye(xe,e),ye(be,n))}function Te(e){xe.current===e&&(ve(be),ve(xe)),Se.current===e&&(ve(Se),dh._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+Ee+e+De}var ke=!1;function Ae(e,t){if(!e||ke)return``;ke=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ke=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Oe(n):``}function je(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe(`Lazy`);case 13:return e.child!==t&&t!==null?Oe(`Suspense Fallback`):Oe(`Suspense`);case 19:return Oe(`SuspenseList`);case 0:case 15:return Ae(e.type,!1);case 11:return Ae(e.type.render,!1);case 1:return Ae(e.type,!0);case 31:return Oe(`Activity`);case 30:return Oe(`ViewTransition`);default:return``}}function Me(e){try{var t=``,n=null;do t+=je(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var Ne=Object.prototype.hasOwnProperty,Pe=t.unstable_scheduleCallback,Fe=t.unstable_cancelCallback,Ie=t.unstable_shouldYield,Le=t.unstable_requestPaint,Re=t.unstable_now,ze=t.unstable_getCurrentPriorityLevel,Be=t.unstable_ImmediatePriority,Ve=t.unstable_UserBlockingPriority,He=t.unstable_NormalPriority,Ue=t.unstable_LowPriority,We=t.unstable_IdlePriority,Ge=t.log,Ke=t.unstable_setDisableYieldValue,qe=null,Je=null;function Ye(e){if(typeof Ge==`function`&&Ke(e),Je&&typeof Je.setStrictMode==`function`)try{Je.setStrictMode(qe,e)}catch{}}var Xe=Math.clz32?Math.clz32:$e,Ze=Math.log,Qe=Math.LN2;function $e(e){return e>>>=0,e===0?32:31-(Ze(e)/Qe|0)|0}var et=256,tt=262144,nt=4194304;function rt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function it(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=rt(n))):i=rt(o):i=rt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=rt(n))):i=rt(o)):i=rt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function at(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function V(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Xe(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var e=nt;return nt<<=1,!(nt&62914560)&&(nt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Xe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Xe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=pe.p;return e===0?(e=window.event,e===void 0?32:Dh(e.type)):e}function _t(e,t){var n=pe.p;try{return pe.p=e,t()}finally{pe.p=n}}var vt=Math.random().toString(36).slice(2),yt=`__reactFiber$`+vt,bt=`__reactProps$`+vt,xt=`__reactContainer$`+vt,St=`__reactEvents$`+vt,Ct=`__reactListeners$`+vt,wt=`__reactHandles$`+vt,Tt=`__reactResources$`+vt,Et=`__reactMarker$`+vt,Dt=`__reactLoad$`+vt;function Ot(e){delete e[yt],delete e[bt],delete e[Ct],delete e[wt]}function kt(e){var t;if(t=e[yt])return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[yt])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[yt]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[Tt];return t||=e[Tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Bt={},Vt={};function Ht(e){return Ne.call(Vt,e)?!0:Ne.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var Ut=!1;function Wt(){var e=Ut;return Ut=!1,e}function Gt(e,t,n){if(Ht(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function qt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Jt(t)):e.value!==``+Jt(t)&&(e.value=``+Jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):rn(e,Jt(n)):o===`number`&&e.value==t?rn(e,Jt(e.value)):rn(e,Jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Jt(s):e.removeAttribute(`name`)}function nn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Zt(e);return}n=n==null?``:``+Jt(n),t=t==null?n:``+Jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function on(e,t,n){t!=null&&(t=``+Jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Jt(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(fe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function un(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Ut=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),Ut=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var pn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),mn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,bn=null;function xn(e){var t=At(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[bt]||null;if(!a)throw Error(i(90));tn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var Sn=!1;function Cn(e,t,n){if(Sn)return e(t,n);Sn=!0;try{return e(t)}finally{if(Sn=!1,(yn!==null||bn!==null)&&(Ud(),yn&&(t=yn,e=bn,bn=yn=null,xn(t),e)))for(t=0;t<e.length;t++)xn(e[t])}}function wn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[bt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Tn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,En=!1;if(Tn)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){En=!0}}),window.addEventListener(`test`,Dn,Dn),window.removeEventListener(`test`,Dn,Dn)}catch{En=!1}var On=null,kn=null,An=null;function jn(){if(An)return An;var e,t=kn,n=t.length,r,i=`value`in On?On.value:On.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return An=i.slice(e,1<r?1-r:void 0)}function Mn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nn(){return!0}function Pn(){return!1}function Fn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Nn:Pn,this.isPropagationStopped=Pn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Fn(In),Rn=D({},In,{view:0,detail:0}),zn=Fn(Rn),Bn,Vn,Hn,Un=D({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=Fn(Un),Gn=Fn(D({},Un,{dataTransfer:0})),Kn=Fn(D({},Rn,{relatedTarget:0})),qn=Fn(D({},In,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=Fn(D({},In,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=Fn(D({},In,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=Fn(D({},Rn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=Fn(D({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=Fn(D({},In,{submitter:0})),ir=Fn(D({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ar=Fn(D({},In,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=Fn(D({},Un,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),sr=Fn(D({},In,{newState:0,oldState:0,source:0})),cr=[9,13,27,32],lr=Tn&&`CompositionEvent`in window,ur=null;Tn&&`documentMode`in document&&(ur=document.documentMode);var dr=Tn&&`TextEvent`in window&&!ur,fr=Tn&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=jn(),An=kn=On=null,_r=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){yn?bn?bn.push(r):bn=[r]:yn=r,t=$f(t,`onChange`),0<t.length&&(n=new Ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){Kf(e,0)}function Er(e){if(Qt(jt(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(Tn){var kr;if(Tn){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,vn(e)),Cn(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ne.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ur(e,t){var n=Hr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Hr(n)}}function Wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vr(e.document)}return t}function Kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var qr=Tn&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==Vr(r)||(r=Jr,`selectionStart`in r&&Kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xr&&Br(Xr,r)||(Xr=r,r=$f(Yr,`onSelect`),0<r.length&&(t=new Ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionrun:$r(`Transition`,`TransitionRun`),transitionstart:$r(`Transition`,`TransitionStart`),transitioncancel:$r(`Transition`,`TransitionCancel`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};Tn&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var ii=ri(`animationend`),ai=ri(`animationiteration`),oi=ri(`animationstart`),si=ri(`transitionrun`),ci=ri(`transitionstart`),li=ri(`transitioncancel`),ui=ri(`transitionend`),di=new Map,fi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);fi.push(`scrollEnd`);function pi(e,t){di.set(e,t),Lt(t,[e])}var mi=0;function hi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=wd.identifierPrefix;var n=mi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function gi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Md;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function _i(e,t){return e=gi(e),t=gi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var vi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},yi=[],bi=0,xi=0;function Si(){for(var e=bi,t=xi=bi=0;t<e;){var n=yi[t];yi[t++]=null;var r=yi[t];yi[t++]=null;var i=yi[t];yi[t++]=null;var a=yi[t];if(yi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ei(n,i,a)}}function Ci(e,t,n,r){yi[bi++]=e,yi[bi++]=t,yi[bi++]=n,yi[bi++]=r,xi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function wi(e,t,n,r){return Ci(e,t,n,r),Di(e)}function Ti(e,t){return Ci(e,null,null,t),Di(e)}function Ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Xe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Di(e){if(50<Nd)throw Nd=0,Pd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Oi={};function ki(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ai(e,t,n,r){return new ki(e,t,n,r)}function ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mi(e,t){var n=e.alternate;return n===null?(n=Ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ni(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ji(r)&&(s=1);else if(typeof r==`string`)s=Zm(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ae:return e=Ai(31,n,t,a),e.elementType=ae,e.lanes=o,e;case j:return Fi(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Ai(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case te:return e=Ai(13,n,t,a),e.elementType=te,e.lanes=o,e;case ne:return e=Ai(19,n,t,a),e.elementType=ne,e.lanes=o,e;case oe:case se:return e=a|32,e=Ai(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case P:s=10;break a;case ee:s=9;break a;case F:s=11;break a;case re:s=14;break a;case ie:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Fi(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function Ii(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function Li(e){var t=Ai(18,null,null,0);return t.stateNode=e,t}function Ri(e,t,n){return t=Ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zi=new WeakMap;function Bi(e,t){if(typeof e==`object`&&e){var n=zi.get(e);return n===void 0?(t={value:e,source:t,stack:Me(t)},zi.set(e,t),t):n}return{value:e,source:t,stack:Me(t)}}var Vi=[],Hi=0,Ui=null,Wi=0,Gi=[],Ki=0,qi=null,Ji=1,Yi=``;function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Ui,Ui=e,Wi=t}function Zi(e,t,n){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,qi=e;var r=Ji;e=Yi;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var a=32-Xe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-Xe(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null;for(;e===qi;)qi=Gi[--Ki],Gi[Ki]=null,Yi=Gi[--Ki],Gi[Ki]=null,Ji=Gi[--Ki],Gi[Ki]=null}function ea(e,t){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,Ji=t.id,Yi=t.overflow,qi=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Bi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[yt]=e,t[bt]=r,n){case`dialog`:q(`cancel`,t),q(`close`,t);break;case`iframe`:case`object`:case`embed`:q(`load`,t);break;case`video`:case`audio`:for(n=0;n<Wf.length;n++)q(Wf[n],t);break;case`source`:q(`error`,t);break;case`img`:case`image`:case`link`:q(`error`,t),q(`load`,t);break;case`details`:q(`toggle`,t);break;case`input`:q(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:q(`invalid`,t);break;case`textarea`:q(`invalid`,t),sn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ap(t.textContent,n)?(r.popover!=null&&(q(`beforetoggle`,t),q(`toggle`,t)),r.onScroll!=null&&q(`scroll`,t),r.onScrollEnd!=null&&q(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||yp(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=gm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=gm(e)}else t===27?(t=na,Op(e.type)?(e=hm,hm=null,na=e):na=t):na=ta?mm(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(gd===null?gd=e:gd.push.apply(gd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=_e(null),ma=null,ha=null;function ga(e,t,n){ye(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,ve(pa)}function va(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ya(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),va(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ba(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;zr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dh]:e.push(dh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ea=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,ka={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=zf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ha=R.S;R.S=function(e,t){if(yd=Re(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=Tf;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=Tf;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=_e(null);function Wa(){var e=Ua.current;return e===null?nd.pooledCache:e}function Ga(e,t){t===null?ye(Ua,Ua.current):ye(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=nd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e}throw eo=t,qa}}function $a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function co(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ii(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ie&&$a(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Pi(n.type,n.key,n.props,null,e.mode,r),oo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ri(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ii(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Pi(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case A:return t=Ri(t,e.mode,n),t.return=e,t;case ie:return t=$a(t),f(e,t,n)}if(fe(t)||ue(t))return t=Fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===P)return f(e,wa(e,t),n);so(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case ie:return n=$a(n),p(e,t,n,r)}if(fe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===P)return p(e,t,wa(e,n),r);so(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ie:return r=$a(r),m(e,t,n,r,i)}if(fe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===P)return m(e,t,n,wa(t,r),i);so(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),H&&Xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return H&&Xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),H&&Xi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),H&&Xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return H&&Xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ie&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Fi(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Pi(o.type,o.key,o.props,null,e.mode,c),oo(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ri(o,e.mode,c),c.return=e,e=c}return s(e);case ie:return o=$a(o),_(e,r,o,c)}if(fe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,ao(o),c);if(o.$$typeof===P)return _(e,r,wa(e,o),c);so(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=Ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Di(e),Ei(e,null,n),t}return Ci(e,r,t,n),Di(e)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function vo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var yo=!1;function bo(){if(yo){var e=Ra;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(K&f)===f:(r&f)===f){f!==0&&f===La&&(yo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:fo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ud|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=_e(null),To=_e(0);function Eo(e,t){e=cd,ye(To,e),ye(wo,t),cd=e|t.baseLanes}function Do(){ye(To,cd),ye(wo,wo.current)}function Oo(){cd=To.current,ve(wo),ve(To)}var ko=_e(null),Ao=null;function jo(e){var t=e.alternate;ye(Io,Io.current&1),ye(ko,e),Ao===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Ao=e)}function Mo(e){ye(Io,Io.current),ye(ko,e),Ao===null&&(Ao=e)}function No(e){e.tag===22?(ye(Io,Io.current),ye(ko,e),Ao===null&&(Ao=e)):Po()}function Po(){ye(Io,Io.current),ye(ko,ko.current)}function Fo(e){ve(ko),Ao===e&&(Ao=null),ve(Io)}var Io=_e(0);function Lo(e,t){ye(ko,ko.current),ye(Io,t)}function Ro(e){ve(Io),ve(ko),Ao===e&&(Ao=null)}function zo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dm(n)||fm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,U=null,Vo=null,Ho=null,Uo=!1,Wo=!1,Go=!1,Ko=0,qo=0,Jo=null,Yo=0;function Xo(){throw Error(i(321))}function Zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Qo(e,t,n,r,i,a){return Bo=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?hc:gc,Go=!1,a=n(r,i),Go=!1,Wo&&(a=es(t,n,r,i)),$o(e),a}function $o(e){R.H=mc;var t=Vo!==null&&Vo.next!==null;if(Bo=0,Ho=Vo=U=null,Uo=!1,qo=0,Jo=null,t)throw Error(i(300));e===null||Nc||(e=e.dependencies,e!==null&&xa(e)&&(Nc=!0))}function es(e,t,n,r){U=e;var a=0;do{if(Wo&&(Jo=null),qo=0,Wo=!1,25<=a)throw Error(i(301));if(a+=1,Ho=Vo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}R.H=_c,o=t(n,r)}while(Wo);return o}function ts(){var e=R.H,t=e.useState()[0];return t=typeof t.then==`function`?cs(t):t,e=e.useState()[0],(Vo===null?null:Vo.memoizedState)!==e&&(U.flags|=1024),t}function ns(){var e=Ko!==0;return Ko=0,e}function rs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function is(e){if(Uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Uo=!1}Bo=0,Ho=Vo=U=null,Wo=!1,qo=Ko=0,Jo=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ho===null?U.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function os(){if(Vo===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=Vo.next;var t=Ho===null?U.memoizedState:Ho.next;if(t!==null)Ho=t,Vo=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));Vo=e,e={memoizedState:Vo.memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},Ho===null?U.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=qo;return qo+=1,Jo===null&&(Jo=[]),e=Qa(Jo,e,t),t=U,(Ho===null?t.memoizedState:Ho.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?hc:gc),e}function ls(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return cs(e);if(e.$$typeof===ce)return;if(e.$$typeof===P)return Ca(e)}throw Error(i(438,String(e)))}function us(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ss(),U.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=I;return t.index++,n}function ds(e,t){return typeof t==`function`?t(e):t}function fs(e){return ps(os(),Vo,e)}function ps(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Bo&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===La&&(d=!0);else if((Bo&p)===p){u=u.next,p===La&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,U.lanes|=p,ud|=p;f=u.action,Go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,U.lanes|=f,ud|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(Nc=!0,d&&(n=Ra,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ms(e){var t=os(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);zr(o,t.memoizedState)||(Nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hs(e,t,n){var r=U,a=os(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((Vo||a).memoizedState,n);if(s&&(a.memoizedState=n,Nc=!0),a=a.queue,Bs(vs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ho!==null&&!!(Ho.memoizedState.tag&1),Fs(e?9:8,{destroy:void 0},_s.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Bo&127||gs(r,t,n)}return n}function gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=ss(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _s(e,t,n,r){t.value=n,t.getSnapshot=r,ys(t)&&bs(e)}function vs(e,t,n){return n(function(){ys(t)&&bs(e)})}function ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function bs(e){var t=Ti(e,2);t!==null&&Rd(t,e,2)}function xs(e){var t=as();if(typeof e==`function`){var n=e;if(e=n(),Go){Ye(!0);try{n()}finally{Ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},t}function Ss(e,t,n,r){return e.baseState=n,ps(e,Vo,typeof r==`function`?r:ds)}function Cs(e,t,n,r,a){if(dc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};R.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ws(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ws(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=R.T,o={};o.types=a===null?null:a.types,R.T=o;try{var s=n(i,r),c=R.S;c!==null&&c(o,s),Ts(e,t,s)}catch(n){Ds(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),R.T=a}}else try{a=n(i,r),Ts(e,t,a)}catch(n){Ds(e,t,n)}}function Ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Es(e,t,n)},function(n){return Ds(e,t,n)}):Es(e,t,n)}function Es(e,t,n){t.status=`fulfilled`,t.value=n,Os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ws(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Os(t),t=t.next;while(t!==r)}e.action=null}function Os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ks(e,t){return t}function As(e,t){if(H){var n=nd.formState;if(n!==null){a:{var r=U;if(H){if(na){b:{for(var i=na,a=ia;i.nodeType!==8;)if(!a||(i=mm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=mm(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=as(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},n.queue=r,n=cc.bind(null,U,r),r.dispatch=n,r=xs(!1),a=uc.bind(null,U,!1,r.queue),r=as(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Cs.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function js(e){return Ms(os(),Vo,e)}function Ms(e,t,n){if(t=ps(e,t,ks)[0],e=fs(ds)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=cs(t)}catch(e){throw e===qa?Ya:e}else r=t;t=os();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,Fs(9,{destroy:void 0},Ns.bind(null,i,n),null)),[r,a,e]}function Ns(e,t){e.action=t}function Ps(e){var t=os(),n=Vo;if(n!==null)return Ms(t,n,e);os(),t=t.memoizedState,n=os();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=ss(),U.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Is(){return os().memoizedState}function Ls(e,t,n,r){var i=as();U.flags|=e,i.memoizedState=Fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Rs(e,t,n,r){var i=os();r=r===void 0?null:r;var a=i.memoizedState.inst;Vo!==null&&r!==null&&Zo(r,Vo.memoizedState.deps)?i.memoizedState=Fs(t,a,n,r):(U.flags|=e,i.memoizedState=Fs(1|t,a,n,r))}function zs(e,t){Ls(8390656,8,e,t)}function Bs(e,t){Rs(2048,8,e,t)}function Vs(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=ss(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Hs(e){var t=os().memoizedState;return Vs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Us(e,t){return Rs(4,2,e,t)}function Ws(e,t){return Rs(4,4,e,t)}function Gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ks(e,t,n){n=n==null?null:n.concat([e]),Rs(4,4,Gs.bind(null,t,e),n)}function qs(){}function Js(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Zo(t,r[1]))return r[0];if(r=e(),Go){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return n===void 0||Bo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=Id(),U.lanes|=e,ud|=e,n)}function Zs(e,t,n,r){return zr(n,t)?n:wo.current===null?!(Bo&106)||Bo&1073741824&&!(K&261930)?(Nc=!0,e.memoizedState=n):(e=Id(),U.lanes|=e,ud|=e,t):(e=Xs(e,n,r),zr(e,t)||(Nc=!0),e)}function Qs(e,t,n,r,i){var a=pe.p;pe.p=a!==0&&8>a?a:8;var o=R.T,s={};s.types=o===null?null:o.types,R.T=s,uc(e,!1,t,n);try{var c=i(),l=R.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Va(c,r),Fd(e)):lc(e,t,r,Fd(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Fd())}finally{pe.p=a,o!==null&&s.types!==null&&(o.types=s.types),R.T=o}}function $s(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=tc(e).queue;Qs(e,a,t,me,n===null?$s:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Fd())}function rc(){return Ca(dh)}function ic(){return os().memoizedState}function ac(){return os().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fd();e=ho(n);var r=go(t,e,n);r!==null&&(Rd(r,t,n),_o(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Fd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)?fc(t,n):(n=wi(e,t,n,r),n!==null&&(Rd(n,e,r),pc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Fd())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,zr(s,o))return Ci(e,t,i,0),nd===null&&Si(),!1}catch{}if(n=wi(e,t,i,r),n!==null)return Rd(n,e,r),pc(n,t,r),!0}return!1}function uc(e,t,n,r){if(r={lane:2,revertLane:zf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(i(479))}else t=wi(e,n,r,2),t!==null&&Rd(t,e,2)}function dc(e){var t=e.alternate;return e===U||t!==null&&t===U}function fc(e,t){Wo=Uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var mc={readContext:Ca,use:ls,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo,useEffectEvent:Xo},hc={readContext:Ca,use:ls,useCallback:function(e,t){return as().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:zs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ls(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var n=as();t=t===void 0?null:t;var r=e();if(Go){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(n!==void 0){var i=n(t);if(Go){Ye(!0);try{n(t)}finally{Ye(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=sc.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=as();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=cc.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qs,useDeferredValue:function(e,t){return Xs(as(),e,t)},useTransition:function(){var e=xs(!1);return e=Qs.bind(null,U,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=as();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));K&127||gs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,zs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=as(),t=nd.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ko++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:As,useActionState:As,useOptimistic:function(e){var t=as();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uc.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:us,useCacheRefresh:function(){return as().memoizedState=oc.bind(null,U)},useEffectEvent:function(e){var t=as(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},gc={readContext:Ca,use:ls,useCallback:Js,useContext:Ca,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:fs,useRef:Is,useState:function(){return fs(ds)},useDebugValue:qs,useDeferredValue:function(e,t){return Zs(os(),Vo.memoizedState,e,t)},useTransition:function(){var e=fs(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:js,useActionState:js,useOptimistic:function(e,t){return Ss(os(),Vo,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs},_c={readContext:Ca,use:ls,useCallback:Js,useContext:Ca,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:ms,useRef:Is,useState:function(){return ms(ds)},useDebugValue:qs,useDeferredValue:function(e,t){var n=os();return Vo===null?Xs(n,e,t):Zs(n,Vo.memoizedState,e,t)},useTransition:function(){var e=ms(ds)[0],t=os().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=os();return Vo===null?(n.baseState=e,[e,n.queue.dispatch]):Ss(n,Vo,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs};function vc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Rd(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Rd(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fd(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Rd(t,e,n),_o(t,e,n))}};function bc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Br(n,r)||!Br(i,a):!0}function xc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yc.enqueueReplaceState(t,t.state,null)}function Sc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Cc(e){vi(e)}function wc(e){console.error(e)}function Tc(e){vi(e)}function Ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Oc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Ec(e,t)},n}function kc(e){return e=ho(e),e.tag=3,e}function Ac(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Dc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Dc(t,n,r),typeof i!=`function`&&(Sd===null?Sd=new Set([this]):Sd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function jc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=ko.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ao===null?Xd():n.alternate===null&&ld===0&&(ld=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,a)),!1;case 22:return n.flags|=65536,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,a)),!1}throw Error(i(435,n.tag))}return yf(e,r,a),Xd(),!1}if(H)return t=ko.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Bi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Bi(r,n),a=Oc(e.stateNode,r,a),vo(e,a),ld!==4&&(ld=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Bi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Bi(o,n),hd===null?hd=[o]:hd.push(o),ld!==4&&(ld=2),t===null)return!0;r=Bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Oc(n.stateNode,r,e),vo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Sd===null||!Sd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=kc(a),Ac(a,e,n,r),vo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Mc=Error(i(461)),Nc=!1;function Pc(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function Fc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Sa(t),r=Qo(e,t,n,o,a,i),s=ns(),e!==null&&!Nc?(rs(e,t,i),ll(e,t,i)):(H&&s&&Qi(t),t.flags|=1,Pc(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ji(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Lc(e,t,a,r,i)):(e=Pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ul(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return ll(e,t,i)}return t.flags|=1,e=Mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,ul(e,i))e.flags&131072&&(Nc=!0);else return t.lanes=e.lanes,ll(e,t,i)}}return Gc(e,t,n,r,i)}function Rc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Bc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ga(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),No(t);else return r=t.lanes=536870912,Bc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),Do(),Po()):(Ga(t,a.cachePool),Eo(t,a),Po(),t.memoizedState=null);return Pc(e,t,i,n),t.child}function zc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),Do(),No(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Vc(e,t){return t=el({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hc(e,t,n){return lo(t,e.child,null,n),e=Vc(t,t.pendingProps),e.flags|=2,Fo(t),t.memoizedState=null,e}function Uc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=Vc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},zc(null,e);if(Mo(t),(e=na)?(e=um(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Vc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Mo(t),a){if(t.flags&256)t.flags&=-257,t=Hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Nc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,Nc||a){if(wo.current===null){if(r=nd,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ti(e,s),Rd(r,e,s),Mc;Xd()}t=Hc(e,t,n)}else e=o.treeContext,na=mm(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Vc(t,r),t.flags|=134221824;return t}return e=Mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Gc(e,t,n,r,i){return Sa(t),n=Qo(e,t,n,r,void 0,i),r=ns(),e!==null&&!Nc?(rs(e,t,i),ll(e,t,i)):(H&&r&&Qi(t),t.flags|=1,Pc(e,t,n,i),t.child)}function Kc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=es(t,r,n,i),$o(e),r=ns(),e!==null&&!Nc?(rs(e,t,a),ll(e,t,a)):(H&&r&&Qi(t),t.flags|=1,Pc(e,t,n,a),t.child)}function qc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Oi,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=yc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(vc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&yc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Sc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Oi,typeof u==`object`&&u&&(o=Ca(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&xc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(vc(t,n,d,r),l=t.memoizedState),(c=fo||bc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,mo(e,t),o=t.memoizedProps,u=Sc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Oi,typeof l==`object`&&l&&(c=Ca(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&xc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(vc(t,n,s,r),p=t.memoizedState),(u=fo||bc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Wc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Pc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ll(e,t,i),e}function Jc(e,t,n,r){return ua(),t.flags|=256,Pc(e,t,n,r),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Ka()}}function Zc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=pd),e}function Qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Io.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?jo(t):Po(),(e=na)?(e=um(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=fm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Po(),i=t.mode,a=el({mode:`hidden`,children:a},i),r=Fi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Xc(n),r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(null,r)):(jo(t),$c(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return nl(e,t,a,o,r,c,s,n)}return i?(Po(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Mi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Fi(i,a,n,null),i.flags|=2):i=Mi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,zc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Xc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(e.child,r)):(jo(t),n=e.child,e=n.sibling,n=Mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function $c(e,t){return t=el({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function el(e,t){return e=Ai(22,e,null,t),e.lanes=0,e}function tl(e,t,n){return lo(t,e.child,null,n),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(jo(t),t.flags&=-257,tl(e,t,c)):t.memoizedState===null?(Po(),o=a.fallback,s=t.mode,a=el({mode:`visible`,children:a.children},s),o=Fi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Xc(c),a.childLanes=Zc(e,r,c),t.memoizedState=Yc,zc(null,a)):(Po(),t.child=e.child,t.flags|=128,null);if(jo(t),fm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),tl(e,t,c)}if(Nc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,Nc||r){if(wo.current!==null)return tl(e,t,c);if(r=nd,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ti(e,a),Rd(r,e,a),Mc;return dm(o)||Xd(),tl(e,t,c)}return dm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=mm(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=$c(t,a.children),t.flags|=134221824,t)}function rl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function il(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zo(n)===null&&(t=e),e=e.sibling}return t}function al(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ol(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function sl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Io.current;if(t.flags&128)return Lo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Lo(t,o),i===`backwards`&&e!==null?(ol(e),Pc(e,t,r,n),ol(e)):Pc(e,t,r,n),r=H?Wi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rl(e,n,t);else if(e.tag===19)rl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ol(t)),al(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,a,r);break;case`together`:al(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,a,r)}return t.child}function cl(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Pc(e,t,r.children,n),t.child}function ll(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ud|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ul(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function dl(e,t,n){switch(t.tag){case 3:B(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:we(t);break;case 4:B(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return jo(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Qc(e,t,n):(jo(t),e=ll(e,t,n),e===null?null:e.sibling)}jo(t);break;case 19:if(t.flags&128)return sl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return sl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lo(t,Io.current),r)break;return null;case 22:return t.lanes=0,Rc(e,t,n,t.pendingProps);case 24:ga(t,ka,e.memoizedState.cache)}return ll(e,t,n)}function fl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Nc=!0;else{if(!ul(e,n)&&!(t.flags&128))return Nc=!1,dl(e,t,n);Nc=!!(e.flags&131072)}}else Nc=!1,H&&t.flags&1048576&&Zi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)ji(e)?(r=Sc(e,r),t.tag=1,t=qc(null,t,e,r,n)):(t.tag=0,t=Gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===F){t.tag=11,t=Fc(null,t,e,r,n);break a}if(a===re){t.tag=14,t=Ic(null,t,e,r,n);break a}if(a===P){t.tag=10,t.type=e,t=cl(null,t,n);break a}}throw t=L(e)||e,Error(i(306,t,``))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Sc(r,t.pendingProps),qc(e,t,r,a,n);case 3:a:{if(B(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),bo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Jc(e,t,r,n);break a}if(r!==a){a=Bi(Error(i(424)),t),fa(a),t=Jc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(na=mm(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=ll(e,t,n);break a}Pc(e,t,r,n)}t=t.child}return t;case 26:return Wc(e,t),e===null?(n=Rm(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=vp(t.type,t.pendingProps,z.current,t)):t.memoizedState=Rm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&H&&(r=t.stateNode=bm(t.type,t.pendingProps,z.current),ta=t,ia=!0,a=na,Op(t.type)?(hm=a,na=mm(r.firstChild)):na=a),Pc(e,t,t.pendingProps.children,n),Wc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=cm(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=mm(r.firstChild),ia=!1,a=!0)),a||oa(t)),we(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,yp(a,o)?r=null:s!==null&&yp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Qo(e,t,ts,null,null,n),dh._currentValue=a),Wc(e,t),Pc(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=lm(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return Qc(e,t,n);case 4:return B(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Pc(e,t,r,n),t.child;case 11:return Fc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Wc(e,t),Pc(e,t,r,n),t.child;case 8:return Pc(e,t,t.pendingProps.children,n),t.child;case 12:return Pc(e,t,t.pendingProps.children,n),t.child;case 10:return cl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Sa(t),a=Ca(a),r=r(a),t.flags|=1,Pc(e,t,r,n),t.child;case 14:return Ic(e,t,t.type,t.pendingProps,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 19:return sl(e,t,n);case 31:return Uc(e,t,n);case 22:return Rc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=nd,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),ga(t,ka,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Pc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Wc(e,t),Pc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function pl(e){e.flags|=4}function ml(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Qm(t,r):Qm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw eo=Xa,Ja}}else e.flags&=-16777217}function hl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$m(t)){if(qd())e.flags|=8192;else throw eo=Xa,Ja}}function gl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,md|=t)}function _l(e,t){if(!H)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function vl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yl(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vl(t),null;case 1:return vl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(ka),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?pl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),vl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(pl(t),o===null?(vl(t),ml(t,a,null,r,n)):(vl(t),hl(t,o))):o?o===e.memoizedState?(vl(t),t.flags&=-16777217):(pl(t),vl(t),hl(t,o)):(e=e.memoizedProps,e!==r&&pl(t),vl(t),ml(t,a,e,r,n)),null;case 27:if(Te(t),n=z.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}e=be.current,la(t)?sa(t,e):(e=bm(a,r,n),t.stateNode=e,pl(t))}return vl(t),t.subtreeFlags&=-33554433,null;case 5:if(Te(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}if(o=be.current,la(t))sa(t,o);else{var s=hp(z.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[yt]=t,o[bt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(cp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&pl(t)}}return vl(t),t.subtreeFlags&=-33554433,ml(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=z.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ap(e.nodeValue,n)),e||oa(t,!0)}else e=hp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return vl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[yt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fo(t),t):(Fo(t),null);if(t.flags&128)throw Error(i(558))}return vl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[yt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Fo(t),t):(Fo(t),null)}return Fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gl(t,t.updateQueue),vl(t),null);case 4:return Ce(),e===null&&Yf(t.stateNode.containerInfo),t.flags|=67108864,vl(t),null;case 10:return _a(t.type),vl(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return vl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)_l(r,!1);else{if(ld!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ni(n,e),n=n.sibling;return Lo(t,Io.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Re()>bd&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}}else{if(!a){if(e=zo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!H)return vl(t),null}else 2*Re()-r.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Re(),e.sibling=null,o=Io.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Lo(t,o):(n=o,ye(ko,t),ye(Io,n),Ao===null&&(Ao=t)),H&&Xi(t,r.treeForkCount),e}return vl(t),null;case 22:case 23:return Fo(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),n=t.updateQueue,n!==null&&gl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ve(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),vl(t),null;case 25:return null;case 30:return t.flags|=33554432,vl(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(Fo(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ro(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ce(),null;case 10:return _a(t.type),null;case 22:case 23:return Fo(t),Oo(),e!==null&&ve(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;case 25:return null;default:return null}}function xl(e,t){switch($i(t),t.tag){case 3:_a(ka),Ce();break;case 26:case 27:case 5:Te(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&Fo(t);break;case 13:Fo(t);break;case 19:Ro(t);break;case 10:_a(t.type);break;case 22:case 23:Fo(t),Oo(),e!==null&&ve(Ua);break;case 24:_a(ka)}}function Sl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function Cl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){vf(e,e.return,t)}}}function Tl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=hi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);m(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function Ol(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)am(e.stateNode,t[n])}function kl(e){for(var t=e.return;t!==null&&(Ml(t)&&am(e.stateNode,t.stateNode),!jl(t));)t=t.return}function Al(e){for(var t=e.return;t!==null&&(Ml(t)&&om(e.stateNode,t.stateNode),!jl(t));)t=t.return}function jl(e){return e.tag===5||e.tag===3||e.tag===27}function Ml(e){return e&&e.tag===7&&e.stateNode!==null}function Nl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function Pl(e,t,n){try{var r=e.stateNode;up(r,e.type,n,t),r[bt]=t}catch(t){vf(e,e.return,t)}}function Fl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Op(e.type)||e.tag===4}function Il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Fl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Op(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn)),Ol(e,r),Ut=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Op(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ol(e,r),Ut=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Op(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);cp(t,r,n),t[yt]=e,t[bt]=n}catch(t){vf(e,e.return,t)}}var Bl=!1,Vl=null;function Hl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Bl=!0)}var Ul=null;function Wl(){var e=Ul;return Ul=null,e}var Gl=0;function Kl(e,t,n,r,i){return Gl=0,ql(e.child,t,n,r,i)}function ql(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Np(o);r.push(s),s.view&&(a=!0)}else a||Np(o).view&&(a=!0);Bl=!0,jp(o,Gl===0?t:t+`_`+Gl,n),Gl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||ql(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Jl(e,t){for(;e!==null;)e.tag===5?Mp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Jl(e.child,t)),e=e.sibling}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Yl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=_i(t.default,t.share),t!==`none`&&(Kl(e,n,t,null,!1)||Jl(e.child,!1))}e=e.sibling}}function Xl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=hi(r,n),a=_i(r.default,n.paired?r.share:r.enter);a===`none`?Yl(e):Kl(e,i,a,null,!1)?(Yl(e),n.paired||t||Ld(e,r.onEnter)):Jl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e,t),e=e.sibling;else Yl(e)}function Zl(e){if(Vl!==null&&Vl.size!==0){var t=Vl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=_i(n.default,n.share);if(a!==`none`&&(Kl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ld(e,n.onShare)):Jl(e.child,!1)),t.delete(r),t.size===0)break}}}Zl(e)}e=e.sibling}}}function Ql(e){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode),r=Vl===null?void 0:Vl.get(n),i=_i(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Kl(e,n,i,null,!1)?r===void 0?Ld(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Vl.delete(n),Ld(e,t.onShare)):Jl(e.child,!1)),Vl!==null&&Zl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Vl!==null&&Zl(e)}function $l(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode);t=_i(t.default,t.update),e.flags&=-5,t!==`none`&&Kl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&$l(e);e=e.sibling}}function eu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Jl(e.child,!1))}eu(e)}e=e.sibling}}function tu(e){if(e.tag===30)e.stateNode.paired=null,Jl(e.child,!1),eu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else eu(e)}function nu(e){for(e=e.child;e!==null;)e.tag===30?Jl(e.child,!1):e.subtreeFlags&33554432&&nu(e),e=e.sibling}function ru(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Gl<a.length){var l=a[Gl],u=Np(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&jp(c,Gl===0?n:n+`_`+Gl,i),s&&e.flags&4||(Ul===null&&(Ul=[]),Ul.push(c,Gl===0?r:r+`_`+Gl,t.memoizedProps)),Gl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ru(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function iu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=hi(n,r),a=_i(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Pp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Gl=0,i=ru(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ld(e,n.onUpdate))}else e.subtreeFlags&33554432&&iu(e,t);e=e.sibling}}var au=!1,ou=!1,su=!1,cu=!1,lu=typeof WeakSet==`function`?WeakSet:Set,uu=null,du=!1,fu=!1,pu=!1,mu=!1;function hu(e,t,n){if(e=e.containerInfo,pp=bh,e=Gr(e),Kr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(mp={focusedElem:e,selectionRange:r},bh=!1,n=(n&335544064)===n,uu=t,t=n?9270:1024;uu!==null;){if(e=uu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Hl(e),gu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Ql(r),gu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Hl(e),gu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,uu=r):(n&&$l(e),gu(n))}}Vl=null}function gu(e){for(;uu!==null;){var t=uu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Sc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)sm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:sm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=hi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=_i(a.default,a.update),a!==`none`&&Kl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,uu=r;break}uu=t.return}}function _u(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&Sl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=Sc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&wl(n),r&512&&El(n,n.return);break;case 3:if(Iu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Co(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&zl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Nl(n),r&512&&El(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Eu(e,n);break;case 13:Iu(e,n),r&4&&Du(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sf.bind(null,n),pm(e,n))));break;case 22:if(r=n.memoizedState!==null||au,!r){var a=t!==null&&t.memoizedState!==null||ou;t=au,i=ou,au=r,(ou=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),au=t,ou=i}break;case 30:Iu(e,n),r&512&&El(n,n.return);break;case 7:r&512&&El(n,n.return);default:Iu(e,n)}}function vu(e,t){for(e=e.child;e!==null;)yu(e,t),e=e.sibling}function yu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}bu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ut=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ap(s,!0):Ap(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&vu(e,t);break;default:vu(e,t)}}function bu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:yu(n,r);break a;case 22:n.memoizedState===null&&bu(n,r);break a;default:bu(n,r)}}e=e.sibling}}function xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Su=null,Cu=!1;function wu(e,t,n){for(n=n.child;n!==null;)Tu(e,t,n),n=n.sibling}function Tu(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount==`function`)try{Je.onCommitFiberUnmount(qe,n)}catch{}switch(n.tag){case 26:ou||Dl(n,t),wu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ou&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ou||Dl(n,t),Al(n);var r=Su,i=Cu;Op(n.type)&&(Su=n.stateNode,Cu=!1),wu(e,t,n),xm(n.stateNode,n.type,n.memoizedProps),Su=r,Cu=i;break;case 5:ou||Dl(n,t),Al(n);case 6:if(n.tag===6&&Al(n),r=Su,i=Cu,Su=null,wu(e,t,n),Su=r,Cu=i,Su!==null){if(Cu)try{(Su.nodeType===9?Su.body:Su.nodeName===`HTML`?Su.ownerDocument.body:Su).removeChild(n.stateNode),Ut=!0}catch(e){vf(n,t,e)}else try{Su.removeChild(n.stateNode),Ut=!0}catch(e){vf(n,t,e)}}break;case 18:Su!==null&&(Cu?(e=Su,kp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Kh(e)):kp(Su,n.stateNode));break;case 4:r=Su,i=Cu,Su=n.stateNode.containerInfo,Cu=!0,wu(e,t,n),Su=r,Cu=i;break;case 0:case 11:case 14:case 15:Cl(2,n,t),ou||Cl(4,n,t),wu(e,t,n);break;case 1:ou||(Dl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Tl(n,t,r)),wu(e,t,n);break;case 21:wu(e,t,n);break;case 22:ou=(r=ou)||n.memoizedState!==null,wu(e,t,n),ou=r;break;case 30:Dl(n,t),wu(e,t,n);break;case 7:ou||Dl(n,t),wu(e,t,n);break;default:wu(e,t,n)}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kh(e)}catch(e){vf(t,t.return,e)}}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kh(e)}catch(e){vf(t,t.return,e)}}function Ou(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lu),t;default:throw Error(i(435,e.tag))}}function ku(e,t){var n=Ou(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cf.bind(null,e,t);t.then(r,r)}})}function Au(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Op(l.type)){Su=l.stateNode,Cu=!1;break a}break;case 5:Su=l.stateNode,Cu=!1;break a;case 3:case 4:Su=l.stateNode.containerInfo,Cu=!0;break a}l=l.return}if(Su===null)throw Error(i(160));Tu(s,c,o),Su=null,Cu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mu(t,e,n),t=t.sibling}var ju=null;function Mu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Au(t,e,n),Nu(e),a&4&&(Cl(3,e,e.return),Sl(3,e),Cl(5,e,e.return));break;case 1:Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),a&64&&au&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=ju,Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(au)e.stateNode=vp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Et]||r[yt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),cp(r,t,n),r[yt]=e,Nt(r),t=r;break a;case`link`:if(o=Ym(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Ym(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[yt]=e,Nt(r),t=r}e.stateNode=t}}else au||Xm(o,e.type,e.stateNode)}else e.stateNode=Wm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Pl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ou||t.parentNode.removeChild(t)):a.count--,n===null?au||Xm(o,e.type,e.stateNode):Wm(o,n,e.memoizedProps))}break;case 27:Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),r!==null&&a&4&&Pl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=su,su=!1,Au(t,e,n),su=o,Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),Ut=!0}catch(t){vf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Pl(e,t,r===null?t:r.memoizedProps)),a&1024&&(cu=!0);break;case 6:if(Au(t,e,n),Nu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ut=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(Ut=!1,Jm=null,o=ju,ju=Tm(t.containerInfo),Au(t,e,n),ju=o,Nu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Kh(t.containerInfo)}catch(t){vf(e,e.return,t)}cu&&(cu=!1,W(e)),Ut=!1;break;case 4:a=su,su=au,r=Wt(),o=ju,ju=Tm(e.stateNode.containerInfo),Au(t,e,n),Nu(e),ju=o,Ut&&fu&&(pu=!0),Ut=r,su=a;break;case 12:Au(t,e,n),Nu(e);break;case 31:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 13:Au(t,e,n),Nu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vd=Re()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=au,l=ou,u=su;au=c||o,su=u||o,ou=l||s,Au(t,e,n),ou=l,su=u,au=c,Nu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||au||ou||(t=s||ou,n=au,r=ou,au=o||au,ou=t,Lu(e,2),au=n,ou=r),!o&&su||vu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,ku(e,n))));break;case 19:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 30:a&512&&(ou||r===null||Dl(r,r.return)),a=Wt(),o=fu,s=(n&335544064)===n,c=e.memoizedProps,fu=s&&_i(c.default,c.update)!==`none`,Au(t,e,n),Nu(e),s&&r!==null&&Ut&&(e.flags|=4),fu=o,Ut=a;break;case 21:break;case 7:a&512&&(ou||r===null||Dl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Au(t,e,n),Nu(e)}}function Nu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Fl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Ml(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(jl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Rl(e,Il(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),Rl(e,Il(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ll(e,Il(e),u,s);break;default:throw Error(i(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;W(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,bh=!0,t.reset(),bh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else iu(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Xl(e,!1);else switch(e.tag){case 3:if(mu=du=!1,Wl(),Pu(t,e),!du&&!pu){if(e=Ul,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Mp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),mu=!0}Ul=null;break;case 5:Pu(t,e);break;case 4:r=du,du=!1,Pu(t,e),du&&(pu=!0),du=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Xl(e,!1));break;case 30:r=du,i=Wl(),du=!1,Pu(t,e),du&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=hi(a,o),o=hi(n.memoizedProps,o);var s=_i(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Gl=0,t=ru(e,n,t,o,s,a,!0),Gl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ld(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),du=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_u(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Cl(4,n,n.return),Lu(n,r);break;case 1:Dl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Tl(n,n.return,i),Lu(n,r);break;case 27:r&2&&xm(n.stateNode,n.type,n.memoizedProps);case 5:Dl(n,n.return),n.tag!==5&&n.tag!==27||Al(n),Lu(n,r);break;case 6:Al(n);break;case 26:Dl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ou||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:Dl(n,n.return),Lu(n,r);break;case 7:Dl(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),Sl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)So(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&wl(a),El(a,a.return);break;case 27:n&2&&zl(a);case 5:a.tag!==5&&a.tag!==27||kl(a),Ru(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 6:kl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||au||Xm(Tm(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Du(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),El(a,a.return);break;case 30:Ru(i,a,n),El(a,a.return);break;case 7:El(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ja(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&nu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&tu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&Sl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&mu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&ja(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&tu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&tu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Jl(a.child,!0),Jl(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),Sl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&th(n,e)):nh(n,ju,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&th(n,e));break;case 3:case 4:var r=ju;ju=Tm(e.stateNode.containerInfo),Ku(e,t,n),ju=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Vl===null&&(Vl=new Map),Vl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];uu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];uu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;uu!==null;){var n=uu;switch(n.tag){case 0:case 11:case 15:Cl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,uu=r;else a:for(n=e;uu!==null;){r=uu;var i=r.sibling,a=r.return;if(xu(r),r===n){uu=null;break a}if(i!==null){i.return=a,uu=i;break a}uu=a}}}var $u={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,G=null,K=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=null,gd=null,_d=!1,vd=0,yd=0,bd=1/0,xd=null,Sd=null,Cd=0,wd=null,Td=null,Ed=0,Dd=0,Od=null,kd=null,Ad=null,jd=null,Md=null,Nd=0,Pd=null;function Fd(){return td&2&&K!==0?K&-K:R.T===null?gt():zf()}function Id(){if(pd===0){if(!(K&536870912)||H){var e=tt;tt<<=1,!(tt&3932160)&&(tt=262144),pd=e}else pd=536870912}return e=ko.current,e!==null&&(e.flags|=32),pd}function Ld(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=zp(hi(e.memoizedProps,n))),jd===null&&(jd=[]),jd.push(t.bind(null,r))}}function Rd(e,t,n){(e===nd&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Gd(e,0),Hd(e,K,pd,!1)),lt(e,n),(!(td&2)||e!==nd)&&(e===nd&&(!(td&2)&&(dd|=n),ld===4&&Hd(e,K,pd,!1)),jf(e))}function zd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||at(e,t),a=r?$d(e,t):Zd(e,t,!0),o=r;do{if(a===0){od&&!r&&Hd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Vd(n))a=Zd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=hd;var l=c.current.memoizedState.isDehydrated;if(l&&(Gd(c,s).flags|=256),s=Zd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,dd|=o,a=4;break a}o=gd,gd=a,o!==null&&(gd===null?gd=o:gd.push.apply(gd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Gd(e,0),Hd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Hd(r,t,pd,!ad);break a;case 2:gd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=vd+300-Re(),10<a)){if(Hd(r,t,pd,!ad),it(r,0,!0)!==0)break a;Ed=t,r.timeoutHandle=Sp(Bd.bind(null,r,n,gd,xd,_d,t,pd,dd,md,ad,o,`Throttled`,-0,0),a);break a}Bd(r,n,gd,xd,_d,t,pd,dd,md,ad,o,null,-0,0)}break}}while(1);jf(e)}function Bd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},Vl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=oh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?vd-Re():(a&4194048)===a?yd-Re():0,m=ih(d,m),m!==null)?(Ed=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Hd(e,a,o,!l)):sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Vd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!zr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hd(e,t,n,r){t=V(e,t),t&=~fd,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Xe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Ud(){return td&6?!0:(Mf(0,!1),!1)}function Wd(){if(G!==null){if(rd===0)var e=G.return;else e=G,ha=ma=null,is(e),ro=null,io=0,e=G;for(;e!==null;)xl(e.alternate,e),e=e.return;G=null}}function Gd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Cp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ed=0,Wd(),nd=e,G=n=Mi(e.current,null),K=t,rd=0,id=null,ad=!1,od=at(e,t),sd=!1,md=pd=fd=dd=ud=ld=0,gd=hd=null,_d=!1,cd=V(e,t),Si(),n}function Kd(e,t){U=null,R.H=mc,t===qa||t===Ya?(t=to(),rd=3):t===Ja?(t=to(),rd=4):rd=t===Mc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,G===null&&(ld=1,Ec(e,Bi(t,e.current)))}function qd(){var e=ko.current;return e===null?!0:(K&4194048)===K?Ao===null:(K&62914560)===K||K&536870912?e===Ao:!1}function Jd(){var e=R.H;return R.H=mc,e===null?mc:e}function Yd(){var e=R.A;return R.A=$u,e}function Xd(){ld=4,ad||(K&4194048)!==K&&ko.current!==null||(od=!0),!(ud&134217727)&&!(dd&134217727)||nd===null||Hd(nd,K,pd,!1)}function Zd(e,t,n){var r=td;td|=2;var i=Jd(),a=Yd();(nd!==e||K!==t)&&(xd=null,Gd(e,t)),t=!1;var o=ld;a:do try{if(rd!==0&&G!==null){var s=G,c=id;switch(rd){case 8:Wd(),o=6;break a;case 3:case 2:case 9:case 6:ko.current===null&&(t=!0);var l=rd;if(rd=0,id=null,rf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,rf(e,s,c,l)}}Qd(),o=ld;break}catch(t){Kd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,td=r,R.H=i,R.A=a,G===null&&(nd=null,K=0,Si()),o}function Qd(){for(;G!==null;)tf(G)}function $d(e,t){var n=td;td|=2;var r=Jd(),a=Yd();nd!==e||K!==t?(xd=null,bd=Re()+500,Gd(e,t)):od=at(e,t);a:do try{if(rd!==0&&G!==null){t=G;var o=id;b:switch(rd){case 1:rd=0,id=null,rf(e,t,o,1);break;case 2:case 9:if(Za(o)){rd=0,id=null,nf(t);break}t=function(){rd!==2&&rd!==9||nd!==e||(rd=7),jf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Za(o)?(rd=0,id=null,nf(t)):(rd=0,id=null,rf(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?$m(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,af(u))}break b}}rd=0,id=null,rf(e,t,o,5);break;case 6:rd=0,id=null,rf(e,t,o,6);break;case 8:Wd(),ld=6;break a;default:throw Error(i(462))}}ef();break}catch(t){Kd(e,t)}while(1);return ha=ma=null,R.H=r,R.A=a,td=n,G===null?(nd=null,K=0,Si(),ld):0}function ef(){for(;G!==null&&!Ie();)tf(G)}function tf(e){var t=fl(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?af(e):G=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=Kc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:is(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:xl(n,t),t=G=Ni(t,cd),t=fl(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?af(e):G=t}function rf(e,t,n,r){ha=ma=null,is(t),ro=null,io=0;var i=t.return;try{if(jc(e,i,t,n,K)){ld=1,Ec(e,Bi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;ld=1,Ec(e,Bi(n,e.current)),G=null;return}t.flags&32768?(H||r===1?e=!0:od||K&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=ko.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,ad);return}e=t.return;var n=yl(t.alternate,t,cd);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ld===0&&(ld=5)}function of(e,t){do{var n=bl(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);ld=6,G=null}function sf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(Cd!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(G=nd=null,K=0),Td=t,wd=e,Ed=n,Od=a,kd=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Dd=s,s|=xi,ut(e,n,s,r,i,a),jd=null,(n&335544064)===n?(Md=Pa(e),r=10262):(Md=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,wf(He,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Bl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=R.T,R.T=null,i=pe.p,pe.p=2,a=td,td|=4;try{hu(e,t,n)}finally{td=a,pe.p=i,R.T=r}}Cd=1,Bl?Ad=Lp(o,e.containerInfo,Md,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(Cd!==0){var t=wd.onRecoverableError;t(e,{componentStack:null})}}function uf(){Cd===3&&(Cd=0,Fu(Td,wd),Cd=4)}function df(){if(Cd===1){Cd=0;var e=wd,t=Td,n=Ed,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=R.T,R.T=null;var i=pe.p;pe.p=2;var a=td;td|=4;try{fu=pu=!1,Mu(t,e,n),n=mp;var o=Gr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Wr(s.ownerDocument.documentElement,s)){if(c!==null&&Kr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ur(s,h),v=Ur(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bh=!!pp,mp=pp=null}finally{td=a,pe.p=i,R.T=r}}e.current=t,Cd=2}}function ff(){if(Cd===2){Cd=0;var e=wd,t=Td,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=R.T,R.T=null;var r=pe.p;pe.p=2;var i=td;td|=4;try{_u(e,t.alternate,t)}finally{td=i,pe.p=r,R.T=n}}Cd=3}}function pf(){if(Cd===4||Cd===3){Cd=0;var e=Ad;Ad=null,Le();var t=wd,n=Td,r=Ed,i=kd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Cd=5:(Cd=0,Td=wd=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Sd=null),ht(r),n=n.stateNode,Je&&typeof Je.onCommitFiberRoot==`function`)try{Je.onCommitFiberRoot(qe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=R.T,a=pe.p,pe.p=2,R.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{R.T=n,pe.p=a}}if(i=jd,o=Md,Md=null,i!==null&&(jd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Ed&3&&hf(),jf(t),a=t.pendingLanes,r&261930&&a&42?t===Pd?Nd++:(Nd=0,Pd=t):(Nd=0,Pd=null),Mf(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function hf(){return Ad!==null&&(Ad.skipTransition(),Ad=null),df(),ff(),pf(),gf()}function gf(){if(Cd!==5)return!1;var e=wd,t=Dd;Dd=0;var n=ht(Ed),r=R.T,a=pe.p;try{pe.p=32>n?32:n,R.T=null,n=Od,Od=null;var o=wd,s=Ed;if(Cd=0,Td=wd=null,Ed=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Mf(0,!1),Je&&typeof Je.onPostCommitFiberRoot==`function`)try{Je.onPostCommitFiberRoot(qe,o)}catch{}return!0}finally{pe.p=a,R.T=r,mf(e,t)}}function _f(e,t,n){t=Bi(n,t),t=Oc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(lt(e,2),jf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Sd===null||!Sd.has(r))){e=Bi(n,e),n=kc(2),r=go(t,n,2),r!==null&&(Ac(n,r,t,e),lt(r,2),jf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=bf.bind(null,e,t,n),t.then(e,e))}function bf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(K&n)===n&&(ld===4||ld===3&&(K&62914560)===K&&300>Re()-vd?td&2?fd|=n:Gd(e,0):fd|=n,md===K&&(md=0)),jf(e)}function xf(e,t){t===0&&(t=st()),e=Ti(e,t),e!==null&&(lt(e,t),jf(e))}function Sf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function Cf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),xf(e,n)}function wf(e,t){return Pe(e,t)}var Tf=null,Ef=null,Df=!1,Of=!1,kf=!1,Af=0;function jf(e){e!==Ef&&e.next===null&&(Ef===null?Tf=Ef=e:Ef=Ef.next=e),Of=!0,Df||(Df=!0,Rf())}function Mf(e,t){if(!kf&&Of){kf=!0;do for(var n=!1,r=Tf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Xe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Lf(r,a))}else a=K,a=it(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||at(r,a)||(n=!0,Lf(r,a))}r=r.next}while(n);kf=!1}}function Nf(){Pf()}function Pf(){Of=Df=!1;var e=0;Af!==0&&xp()&&(e=Af);for(var t=Re(),n=null,r=Tf;r!==null;){var i=r.next,a=Ff(r,t);a===0?(r.next=null,n===null?Tf=i:n.next=i,i===null&&(Ef=n)):(n=r,(e!==0||a&3)&&(Of=!0)),r=i}Cd!==0&&Cd!==5||Mf(e,!1),Af!==0&&(Af=0)}function Ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Xe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=K,n=it(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||at(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Fe(r),ht(n)){case 2:case 8:n=Ve;break;case 32:n=He;break;case 268435456:n=We;break;default:n=He}return r=If.bind(null,e),n=Pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Fe(r),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(Cd!==0&&Cd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=K;return r=it(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zd(e,r,t),Ff(e,Re()),e.callbackNode!=null&&e.callbackNode===n?If.bind(null,e):null)}function Lf(e,t){if(hf())return null;zd(e,t,!0)}function Rf(){Ep(function(){td&6?Pe(Be,Nf):Pf()})}function zf(){if(Af===0){var e=La;e===0&&(e=et,et<<=1,!(et&261888)&&(et=256)),Af=e}return Af}function Bf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function Vf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Bf((i[bt]||null).action),o=r.submitter;o&&(t=(t=o[bt]||null)?Bf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Af!==0){var e=new FormData(i,o);ec(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ec(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Hf=0;Hf<fi.length;Hf++){var Uf=fi[Hf];pi(Uf.toLowerCase(),`on`+(Uf[0].toUpperCase()+Uf.slice(1)))}pi(ii,`onAnimationEnd`),pi(ai,`onAnimationIteration`),pi(oi,`onAnimationStart`),pi(`dblclick`,`onDoubleClick`),pi(`focusin`,`onFocus`),pi(`focusout`,`onBlur`),pi(si,`onTransitionRun`),pi(ci,`onTransitionStart`),pi(li,`onTransitionCancel`),pi(ui,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Wf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Gf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Wf));function Kf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(e)}i.currentTarget=null,a=c}}}}function q(e,t){var n=t[St];n===void 0&&(n=t[St]=new Set);var r=e+`__bubble`;n.has(r)||(Xf(t,e,2,!1),n.add(r))}function qf(e,t,n){var r=0;t&&(r|=4),Xf(n,e,r,t)}var Jf=`_reactListening`+Math.random().toString(36).slice(2);function Yf(e){if(!e[Jf]){e[Jf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Gf.has(t)||qf(t,!1,e),qf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jf]||(t[Jf]=!0,qf(`selectionchange`,!1,t))}}function Xf(e,t,n,r){switch(Dh(t)){case 2:var i=xh;break;case 8:i=Sh;break;default:i=Ch}n=i.bind(null,t,n,e),i=void 0,!En||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Zf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=kt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Cn(function(){var r=a,i=vn(n),s=[];a:{var c=di.get(e);if(c!==void 0){var l=Ln,u=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:l=tr;break;case`focusin`:u=`focus`,l=Kn;break;case`focusout`:u=`blur`,l=Kn;break;case`beforeblur`:case`afterblur`:l=Kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ir;break;case ii:case ai:case oi:l=qn;break;case ui:l=ar;break;case`scroll`:case`scrollend`:l=zn;break;case`wheel`:l=or;break;case`copy`:case`cut`:case`paste`:l=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=nr;break;case`submit`:l=rr;break;case`toggle`:case`beforetoggle`:l=sr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=wn(m,p),g!=null&&d.push(Qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==_n&&(u=n.relatedTarget||n.fromElement)&&(kt(u)||u[xt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?kt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=nr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,ep):null,c!==null&&tp(s,u,c,d,!1),l!==null&&f!==null&&tp(s,f,l,d,!0)))}a:{if(c=r?jt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Dr;else if(xr(c)){if(Or)_=Lr;else{_=Fr;var v=Pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?jt(r):window,e){case`focusin`:(xr(v)||v.contentEditable===`true`)&&(Jr=v,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(s,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(s,n,i)}var y;if(lr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else _r?hr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(fr&&n.locale!==`ko`&&(_r||b!==`onCompositionStart`?b===`onCompositionEnd`&&_r&&(y=jn()):(On=i,kn=`value`in On?On.value:On.textContent,_r=!0)),v=$f(r,b),0<v.length&&(b=new Yn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=gr(n),y!==null&&(b.data=y)))),(y=dr?vr(e,n):yr(e,n))&&(b=$f(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Vf(s,e,r,n,i)}Kf(s,t)})}function Qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $f(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=wn(e,n),i!=null&&r.unshift(Qf(e,i,a)),i=wn(e,t),i!=null&&r.push(Qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function ep(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tp(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=wn(n,a),l!=null&&o.unshift(Qf(n,l,c))):i||(l=wn(n,a),l!=null&&o.push(Qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var np=/\r\n?/g,rp=/\u0000|\uFFFD/g;function ip(e){return(typeof e==`string`?e:``+e).replace(np,`
|
|
9
|
+
`).replace(rp,``)}function ap(e,t){return t=ip(t),ip(e)===t}function op(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;break;case`className`:Kt(e,`class`,r);break;case`tabIndex`:Kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Kt(e,n,r);break;case`style`:dn(e,r,o);return;case`data`:if(t!==`object`){Kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&op(e,t,`name`,a.name,a,null),op(e,t,`formEncType`,a.formEncType,a,null),op(e,t,`formMethod`,a.formMethod,a,null),op(e,t,`formTarget`,a.formTarget,a,null)):(op(e,t,`encType`,a.encType,a,null),op(e,t,`method`,a.method,a,null),op(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&q(`scroll`,e);return;case`onScrollEnd`:r!=null&&q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=hn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:q(`beforetoggle`,e),q(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=pn.get(n)||n,Gt(e,n,r);else return}Ut=!0}function sp(e,t,n,r,a,o){switch(n){case`style`:dn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&q(`scroll`,e);return;case`onScrollEnd`:r!=null&&q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[bt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Ut=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}Ut=!0}function cp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:q(`error`,e),q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,o,s,n,null)}}a&&op(e,t,`srcSet`,n.srcSet,n,null),r&&op(e,t,`src`,n.src,n,null);return;case`input`:q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:op(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:op(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:op(e,t,s,c,n,null)}sn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:op(e,t,l,r,n,null)}return;case`dialog`:q(`beforetoggle`,e),q(`toggle`,e),q(`cancel`,e),q(`close`,e);break;case`iframe`:case`object`:q(`load`,e);break;case`video`:case`audio`:for(r=0;r<Wf.length;r++)q(Wf[r],e);break;case`image`:q(`error`,e),q(`load`,e);break;case`details`:q(`toggle`,e);break;case`embed`:case`source`:case`link`:q(`error`,e),q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&sp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&op(e,t,c,r,n,null))}var lp={};function up(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||op(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Ut=!0),o=m;break;case`name`:m!==f&&(Ut=!0),a=m;break;case`checked`:m!==f&&(Ut=!0),u=m;break;case`defaultChecked`:m!==f&&(Ut=!0),d=m;break;case`value`:m!==f&&(Ut=!0),s=m;break;case`defaultValue`:m!==f&&(Ut=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&op(e,t,p,m,r,f)}}tn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||op(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Ut=!0),p=o;break;case`defaultValue`:o!==l&&(Ut=!0),c=o;break;case`multiple`:o!==l&&(Ut=!0),s=o;default:o!==l&&op(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:op(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Ut=!0),p=a;break;case`defaultValue`:a!==o&&(Ut=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&op(e,t,s,a,r,o)}on(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:op(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Ut=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:op(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&op(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:op(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&sp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||sp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&op(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||op(e,t,f,p,r,m)}function dp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function fp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&dp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&dp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var pp=null,mp=null;function hp(e){return e.nodeType===9?e:e.ownerDocument}function gp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function _p(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function vp(e,t,n,r){return n=hp(n).createElement(e),n[yt]=r,n[bt]=t,cp(n,e,t),Nt(n),n}function yp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bp=null;function xp(){var e=window.event;return e&&e.type===`popstate`?e!==bp&&(bp=e,!0):(bp=null,!1)}var Sp=typeof setTimeout==`function`?setTimeout:void 0,Cp=typeof clearTimeout==`function`?clearTimeout:void 0,wp=typeof Promise==`function`?Promise:void 0,Tp=typeof requestAnimationFrame==`function`?requestAnimationFrame:Sp,Ep=typeof queueMicrotask==`function`?queueMicrotask:wp===void 0?Sp:function(e){return wp.resolve(null).then(e).catch(Dp)};function Dp(e){setTimeout(function(){throw e})}function Op(e){return e===`head`}function kp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Kh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sm(e.ownerDocument.body)}n=i}while(n);Kh(t)}function Ap(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function jp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Mp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function J(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Np(e){return J(e.getBoundingClientRect(),getComputedStyle(e),e)}function Pp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return J(t,n,e)}function Fp(e){return e.documentElement.clientHeight}function Ip(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Lp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Fp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=eh(f),u>rh){s.length=o;break}f=new Promise(Ip.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Rp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Rp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Rp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Rp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zp(e){return{name:e,group:new Rp(`group`,e),imagePair:new Rp(`image-pair`,e),old:new Rp(`old`,e),new:new Rp(`new`,e)}}function Bp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Bp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Gp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Up(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Vp,e,s,r)}this._eventListeners=a}};function Vp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Bp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Gp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Up(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Hp,e,n,i),r.splice(t,1),a!==null&&a()}};function Hp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Up(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Wp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Gp(e,t,n,r){if(e.length===0)return-1;r=Wp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Wp(a.optionsOrUseCapture)===r)return i}return-1}Bp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Bp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=b(e),vm(e,t))}Bp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,qp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Kp(t[n],e);n--);};function qp(e,t){return t.push(e),!1}Bp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=hp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0))};function Jp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Bp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Bp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Xp,e,void 0,void 0);for(var n=t=0;n<Zp.length;n++){var r=Zp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Zp[t++]=r}Zp.length=t}};function Xp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Zp=[],Qp=!1;function $p(e,t,n){Zp.push({fragmentInstance:e,observer:t,instance:n}),Qp||(Qp=!0,ym(function(){Qp=!1;var e=Zp;Zp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Bp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,em,e,void 0,void 0),e};function em(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Bp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Bp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,qp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tm(e,t,n,r,i){var a=kt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function nm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Bp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,qp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),nm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),nm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function rm(e,t){return e=b(e),im(e,t),!1}function im(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Zp.length;i++){var a=Zp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Zp[r++]=a)}Zp.length=r,n.observe(e)}),im(e,t))}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?$p(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function sm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sm(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Et])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mm(e.nextSibling),e===null)break}return null}function lm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mm(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mm(e.nextSibling),e===null))return null;return e}function dm(e){return e.data===`$?`||e.data===`$~`}function fm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var hm=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function vm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function ym(e){Tp(function(){Tp(function(t){return e(t)})})}function bm(e,t,n){switch(t=hp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&op(e,t,r,null,lp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),Ot(e)}function Sm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var Cm=new Map,wm=new Set;function Tm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Em=pe.d;pe.d={f:Dm,r:Om,D:jm,C:Mm,L:Nm,m:Pm,X:Im,S:Fm,M:Lm};function Dm(){var e=Em.f(),t=Ud();return e||t}function Om(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?nc(t):Em.r(e)}var km=typeof document>`u`?null:document;function Am(e,t,n){var r=km;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wm.has(i)||(wm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),cp(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function jm(e){Em.D(e),Am(`dns-prefetch`,e,null)}function Mm(e,t){Em.C(e,t),Am(`preconnect`,e,t)}function Nm(e,t,n){Em.L(e,t,n);var r=km;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Y(e);break;case`script`:a=Hm(e)}if(!(Cm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);cp(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function Pm(e,t){Em.m(e,t);var n=km;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Cm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Cm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),cp(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Fm(e,t,n){Em.S(e,t,n);var r=km;if(r&&e){var i=Mt(r).hoistableStyles,a=Y(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);Nt(c),cp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Im(e,t){Em.X(e,t);var n=km;if(n&&e){var r=Mt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0},t),(t=Cm.get(i))&&qm(e,t),a=n.createElement(`script`),Nt(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t){Em.M(e,t);var n=km;if(n&&e){var r=Mt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Cm.get(i))&&qm(e,t),a=n.createElement(`script`),Nt(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t,n,r){var a=(a=z.current)?Tm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Y(n.href),t=Mt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Y(n.href);var o=Mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Cm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cm.set(e,o)),Vm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Hm(n),t=Mt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Y(e){return`href="`+en(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),cp(t,`link`,n),Nt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Hm(e){return`[src="`+en(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,Nt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Nt(r),cp(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Y(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Bm(n),(a=Cm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),cp(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,Nt(a),a):(r=n,(a=Cm.get(o))&&(r=D({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),cp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gm(r,n.precedence,e));return t.instance}function Gm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jm=null;function Ym(e,t,n){if(Jm===null){var r=new Map,i=Jm=new Map;i.set(n,r)}else i=Jm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Et]||a[yt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Y(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Cm.get(i))&&Km(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),cp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*fp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=oh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dh={$$typeof:P,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function fh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function ph(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ai(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function mh(e){return e?(e=Oi,e):Oi}function hh(e,t,n,r,i,a){i=mh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Rd(n,e,t),_o(n,e,t))}function gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _h(e,t){gh(e,t),(e=e.alternate)&&gh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Ti(e,67108864);t!==null&&Rd(t,e,67108864),_h(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Fd();t=mt(t);var n=Ti(e,t);n!==null&&Rd(n,e,t),_h(e,t)}}var bh=!0;function xh(e,t,n,r){var i=R.T;R.T=null;var a=pe.p;try{pe.p=2,Ch(e,t,n,r)}finally{pe.p=a,R.T=i}}function Sh(e,t,n,r){var i=R.T;R.T=null;var a=pe.p;try{pe.p=8,Ch(e,t,n,r)}finally{pe.p=a,R.T=i}}function Ch(e,t,n,r){if(bh){var i=wh(r);if(i===null)Zf(e,t,r,Th,n),Ih(e,r);else if(Rh(i,e,t,n,r))r.stopPropagation();else if(Ih(e,r),t&4&&-1<Fh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=rt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Xe(o);s.entanglements[1]|=c,o&=~c}jf(a),!(td&6)&&(bd=Re()+500,Mf(0,!1))}}break;case 31:case 13:s=Ti(a,2),s!==null&&Rd(s,a,2),Ud(),_h(a,2)}if(a=wh(r),a===null&&Zf(e,t,r,Th,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Zf(e,t,r,null,n)}}function wh(e){return e=vn(e),Eh(e)}var Th=null;function Eh(e){if(Th=null,e=kt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Th=e,null}function Dh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ze()){case Be:return 2;case Ve:return 8;case He:case Ue:return 32;case We:return 268435456;default:return 32}default:return 32}}var Oh=!1,kh=null,Ah=null,jh=null,Mh=new Map,Nh=new Map,Ph=[],Fh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ih(e,t){switch(e){case`focusin`:case`focusout`:kh=null;break;case`dragenter`:case`dragleave`:Ah=null;break;case`mouseover`:case`mouseout`:jh=null;break;case`pointerover`:case`pointerout`:Mh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Nh.delete(t.pointerId)}}function Lh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=At(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rh(e,t,n,r,i){switch(t){case`focusin`:return kh=Lh(kh,e,t,n,r,i),!0;case`dragenter`:return Ah=Lh(Ah,e,t,n,r,i),!0;case`mouseover`:return jh=Lh(jh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mh.set(a,Lh(Mh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Nh.set(a,Lh(Nh.get(a)||null,e,t,n,r,i)),!0}return!1}function zh(e){var t=kt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){yh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){yh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=At(n),t!==null&&vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Vh(e,t,n){Bh(e)&&n.delete(t)}function Hh(){Oh=!1,kh!==null&&Bh(kh)&&(kh=null),Ah!==null&&Bh(Ah)&&(Ah=null),jh!==null&&Bh(jh)&&(jh=null),Mh.forEach(Vh),Nh.forEach(Vh)}function Uh(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hh)))}var Wh=null;function Gh(e){Wh!==e&&(Wh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Wh===e&&(Wh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Eh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,ec(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Kh(e){function t(t){return Uh(t,e)}kh!==null&&Uh(kh,e),Ah!==null&&Uh(Ah,e),jh!==null&&Uh(jh,e),Mh.forEach(t),Nh.forEach(t);for(var n=0;n<Ph.length;n++){var r=Ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ph.length&&(n=Ph[0],n.blockedOn===null);)zh(n),n.blockedOn===null&&Ph.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[bt]||null;if(typeof a==`function`)o||Gh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(Eh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Gh(n)}}}function qh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Jh(e){this._internalRoot=e}Yh.prototype.render=Jh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hh(n,Fd(),e,t,null,null)},Yh.prototype.unmount=Jh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Ud(),t[xt]=null}};function Yh(e){this._internalRoot=e}Yh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ph.length&&t!==0&&t<Ph[n].priority;n++);Ph.splice(n,0,e),n===0&&zh(e)}};var Xh=n.version;if(Xh!==`19.3.1`)throw Error(i(527,Xh,`19.3.1`));pe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Zh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:R,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qh.isDisabled&&Qh.supportsFiber)try{qe=Qh.inject(Zh),Je=Qh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Cc,s=wc,c=Tc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ph(e,1,!1,null,null,n,r,null,o,s,c,qh),e[xt]=t.current,Yf(e),new Jh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=l(d(),1),y=_(),b=[{kind:`planning.overview`,product:`planning`,label:`Overview`,description:`Project progress and the highest planning attention.`,href:`#/overview`,navigation:`primary`},{kind:`planning.graph`,product:`planning`,label:`Graph`,description:`Relationships, dependencies, and an accessible structural view.`,href:`#/graph`,navigation:`primary`},{kind:`planning.board`,product:`planning`,label:`Board`,description:`Planning work grouped for comparison without losing project context.`,href:`#/board`,navigation:`primary`},{kind:`planning.list`,product:`planning`,label:`List`,description:`A dense, filterable inventory of project work.`,href:`#/list`,navigation:`primary`},{kind:`planning.sprints`,product:`planning`,label:`Sprints`,description:`Delivery cadence and current sprint context.`,href:`#/sprints`,navigation:`primary`},{kind:`planning.activity`,product:`planning`,label:`Activity`,description:`Durable project changes in chronological order.`,href:`#/activity`,navigation:`primary`},{kind:`planning.search`,product:`planning`,label:`Search`,description:`Callable Planning and Operate destinations from access-safe projections.`,href:`#/search`,navigation:`primary`},{kind:`planning.console`,product:`planning`,label:`Console`,description:`Every planr-* capability, its dashboard home, and how to run it.`,href:`#/console`,navigation:`primary`},{kind:`planning.detail`,product:`planning`,label:`Artifact detail`,description:`Exact planning artifact identity and delivery trace.`,href:`#/detail/:subjectId`,navigation:`hidden`},{kind:`planning.spec`,product:`planning`,label:`SPEC trace`,description:`The exact SPEC, operating origin, and delivery trace.`,href:`#/plan/specs/:subjectId`,navigation:`hidden`},{kind:`system.diagnostics`,product:null,label:`Diagnostics`,description:`Compatibility, package, and API checks.`,href:`#/diagnostics`,navigation:`hidden`},{kind:`operate.today`,product:`operate`,label:`Today`,description:`Material change, highest-priority attention, active Cycle, evidence, and the exact continuation.`,href:`#/operate/today`,navigation:`primary`},{kind:`operate.cycles`,product:`operate`,label:`Cycles`,description:`Operating cycles from Observe through Learn.`,href:`#/operate/cycles`,navigation:`primary`},{kind:`operate.cycle`,product:`operate`,label:`Cycle detail`,description:`Exact stages, assignments, gates, blockers, and proof.`,href:`#/operate/cycles/:subjectId`,navigation:`hidden`},{kind:`operate.review`,product:`operate`,label:`Review`,description:`Evidence-backed owner choices, consequences, and immutable disposition.`,href:`#/operate/cycles/:cycleId/reviews/:reviewId`,navigation:`hidden`},{kind:`operate.inbox`,product:`operate`,label:`Inbox`,description:`Decisions, approvals, and verification that need attention.`,href:`#/operate/inbox`,navigation:`primary`},{kind:`operate.inbox-item`,product:`operate`,label:`Inbox item`,description:`An exact projected decision, approval, or verification item.`,href:`#/operate/inbox/:subjectId`,navigation:`hidden`},{kind:`operate.actions`,product:`operate`,label:`Actions`,description:`Proposed, approved, active, blocked, and verified action work.`,href:`#/operate/actions`,navigation:`primary`},{kind:`operate.action`,product:`operate`,label:`Action detail`,description:`Exact proposal, authority, execution, verification, and recovery context.`,href:`#/operate/actions/:subjectId`,navigation:`hidden`},{kind:`operate.action-planning`,product:`operate`,label:`Planning handoff`,description:`Review the exact governed bridge into Planning without starting PLAN or SHIP.`,href:`#/operate/actions/:subjectId/planning`,navigation:`hidden`},{kind:`operate.evidence`,product:`operate`,label:`Evidence`,description:`Claims, support, contradiction, access, freshness, and limitations.`,href:`#/operate/evidence`,navigation:`primary`},{kind:`operate.evidence-item`,product:`operate`,label:`Evidence detail`,description:`An exact access-safe evidence identity.`,href:`#/operate/evidence/:subjectId`,navigation:`hidden`},{kind:`operate.outcomes`,product:`operate`,label:`Outcomes`,description:`Observed effects, metrics, outcomes, and durable learning.`,href:`#/operate/outcomes`,navigation:`primary`},{kind:`operate.outcome`,product:`operate`,label:`Outcome detail`,description:`An exact outcome and its projected learning.`,href:`#/operate/outcomes/:subjectId`,navigation:`hidden`},{kind:`operate.history`,product:`operate`,label:`History`,description:`Causality, event history, checkpoint, tail, and replay proof.`,href:`#/operate/history`,navigation:`primary`},{kind:`operate.recovery`,product:`operate`,label:`Recovery`,description:`Proven state, unknown state, and only canonical next steps.`,href:`#/operate/recovery`,navigation:`contextual`}],x=b,S=new Map(b.map(e=>[e.kind,e]));function C(e,t){return{kind:e,product:t,subjectId:null}}function w(e,t,n){return{kind:e,product:t,subjectId:n}}function T(e,t){return{kind:`operate.review`,product:`operate`,cycleId:e,subjectId:t}}var E=Object.freeze({kind:`system.diagnostics`,product:null,subjectId:null});function D(e){return!(e===`.`||e===`..`||e.length===0||e.length>256||[...e].some(e=>{let t=e.codePointAt(0)??0;return t<=31||t===127||e===`/`||e===`\\`}))}function O(e){if(!e||/%(?:2f|5c)/iu.test(e))return null;try{let t=decodeURIComponent(e);return D(t)?t:null}catch{return null}}var k=Object.freeze({kind:`not-found`,product:null,subjectId:null});function A(e){if(e===``||e===`#`)return C(`planning.overview`,`planning`);if(!e.startsWith(`#/`)||e.includes(`?`)||e.indexOf(`#`,1)!==-1)return k;let t=e.slice(2);if(!t||t.endsWith(`/`)||t.includes(`//`))return k;let n=t.split(`/`);if(n.length===1){if(n[0]===`diagnostics`)return E;let e=new Map([[`overview`,`planning.overview`],[`graph`,`planning.graph`],[`board`,`planning.board`],[`list`,`planning.list`],[`sprints`,`planning.sprints`],[`activity`,`planning.activity`],[`search`,`planning.search`],[`console`,`planning.console`]]).get(n[0]);if(e)return C(e,`planning`)}if(n.length===2&&n[0]===`detail`){let e=O(n[1]);return e?w(`planning.detail`,`planning`,e):k}if(n.length===3&&n[0]===`plan`&&n[1]===`specs`){let e=O(n[2]);return e?w(`planning.spec`,`planning`,e):k}if(n[0]!==`operate`)return k;if(n.length===2){let e=new Map([[`today`,`operate.today`],[`cycles`,`operate.cycles`],[`inbox`,`operate.inbox`],[`actions`,`operate.actions`],[`evidence`,`operate.evidence`],[`outcomes`,`operate.outcomes`],[`history`,`operate.history`],[`recovery`,`operate.recovery`]]).get(n[1]);return e?C(e,`operate`):k}if(n.length===3){let e=O(n[2]);if(!e)return k;let t=new Map([[`cycles`,`operate.cycle`],[`inbox`,`operate.inbox-item`],[`actions`,`operate.action`],[`evidence`,`operate.evidence-item`],[`outcomes`,`operate.outcome`]]).get(n[1]);return t?w(t,`operate`,e):k}if(n.length===4&&n[1]===`actions`&&n[3]===`planning`){let e=O(n[2]);return e?w(`operate.action-planning`,`operate`,e):k}if(n.length===5&&n[1]===`cycles`&&n[3]===`reviews`){let e=O(n[2]),t=O(n[4]);return e&&t?T(e,t):k}return k}function j(e){let t=S.get(e.kind);if(!t)throw Error(`Unknown dashboard route kind: ${String(e.kind)}`);if(e.kind===`operate.review`){if(!D(e.cycleId)||!D(e.subjectId))throw Error(`Dashboard Review routes require valid opaque Cycle and Review identities.`);return t.href.replace(`:cycleId`,encodeURIComponent(e.cycleId)).replace(`:reviewId`,encodeURIComponent(e.subjectId))}if(t.href.includes(`:subjectId`)){let n=e.subjectId;if(typeof n!=`string`||!D(n))throw Error(`Dashboard detail routes require a valid opaque subject identity.`);return t.href.replace(`:subjectId`,encodeURIComponent(n))}return t.href}function M(e){return e.kind===`not-found`?null:S.get(e.kind)??null}function N(e){let t=A(e);return t.kind===`not-found`?null:j(t)===e?e:null}function ee(e){return e.kind===`not-found`?`not-found`:e.kind===`operate.review`?`${e.product}:${e.kind}:${e.cycleId}:${e.subjectId}`:`${e.product??`system`}:${e.kind}:${e.subjectId??`collection`}`}var P=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=o(((e,t)=>{t.exports=P()}))(),te=Object.freeze({kind:`current`,subjectId:null}),ne=(0,v.createContext)(null);function re(e){return e?[e.productArea,e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId??`no-cycle`,e.subjectId??`collection`,String(e.generation)].join(``):`unbound`}function ie(e){e.dispatchEvent(new CustomEvent(`openplanr-live-state-close`,{bubbles:!1}));for(let t of e.querySelectorAll(`[data-live-unsafe-control]`))t instanceof HTMLDetailsElement&&(t.open=!1),t instanceof HTMLDialogElement&&t.open&&t.close()}function ae(e){return e.querySelector(`[data-live-successor]`)??e.querySelector(`[data-live-focus-return]`)??e}function oe({children:e,route:t,binding:n,transition:r=te,trackedSubjectId:i=null}){let a=(0,v.useRef)(null),[o,s]=(0,v.useState)(!1),c=`${ee(t)}\u001e${re(n)}`,l=(0,v.useRef)(c),u=n?.subjectId??t.subjectId??i,d=r.kind===`current`||r.subjectId!==null&&r.subjectId===u?r:te,f=`${d.kind}:${d.subjectId??``}:${d.successorHref??``}`;(0,v.useLayoutEffect)(()=>{let e=a.current;e&&l.current!==c&&(ie(e),s(!1),ae(e).focus({preventScroll:!0}),l.current=c)},[c]),(0,v.useLayoutEffect)(()=>{let e=a.current;e&&!f.startsWith(`current:`)&&(ie(e),s(!1),ae(e).focus({preventScroll:!0}))},[f]),(0,v.useEffect)(()=>{if(!o||typeof window>`u`)return;let e=()=>s(!1);return window.addEventListener(`pointerup`,e,{capture:!0,once:!0}),window.addEventListener(`pointercancel`,e,{capture:!0,once:!0}),()=>{window.removeEventListener(`pointerup`,e,{capture:!0}),window.removeEventListener(`pointercancel`,e,{capture:!0})}},[o]);let p=d.successorHref?N(d.successorHref):null,m=p?M(A(p)):null,h=(0,v.useMemo)(()=>Object.freeze({routeScopeKey:c,pointerActive:o,mutationSafe:d.kind===`current`,transition:d}),[d,o,c]),g=e=>{e.isPrimary&&s(!0)},_=e=>{e.isPrimary&&s(!1)};return(0,F.jsx)(ne.Provider,{value:h,children:(0,F.jsxs)(`div`,{ref:a,tabIndex:-1,"data-live-state-boundary":d.kind,"data-live-route-scope":c,onPointerDownCapture:g,onPointerUpCapture:_,onPointerCancelCapture:_,children:[d.kind===`current`?null:(0,F.jsxs)(`div`,{className:`op-projection-boundary__notice`,role:`status`,"aria-live":`polite`,children:[(0,F.jsx)(`strong`,{children:d.kind===`deleted`?`This item is no longer available`:`This item has a newer successor`}),(0,F.jsx)(`span`,{children:d.kind===`deleted`?`The current public projection no longer includes this item. Unsafe controls were closed.`:`A newer public subject is available. Unsafe controls were closed before continuing.`}),p&&m?(0,F.jsxs)(`a`,{className:`op-inline-action`,"data-live-successor":!0,href:p,children:[`Open `,m.label]}):null]}),e]})})}var I=class extends Error{path;code=`DASHBOARD_RESPONSE_INVALID`;constructor(e,t){super(`${e}: ${t}`),this.path=e,this.name=`DashboardValidationError`}},se=96,ce=25e4;function le(e,t){let n=new WeakSet,r=0,i=(e,a)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return;if(typeof e==`function`)throw new I(t,`contains an executable value`);if(r+=1,a>se||r>ce)throw new I(t,`contains an over-complex object graph`);if(n.has(e))throw new I(t,`contains a repeated or cyclic object reference`);n.add(e);let o=Object.getPrototypeOf(e);if(o!==(Array.isArray(e)?Array.prototype:Object.prototype)&&o!==null)throw new I(t,`contains a non-plain nested object`);let s=Object.getOwnPropertyDescriptors(e);for(let e of Reflect.ownKeys(s)){if(typeof e!=`string`)throw new I(t,`contains a symbol field`);let n=s[e];if(n?.get!==void 0||n?.set!==void 0)throw new I(t,`contains a nested accessor field`);i(n?.value,a+1)}};i(e,0)}function ue(e,t,n){if(typeof e!=`object`||!e||Array.isArray(e))throw new I(n,`expected an object`);try{let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)throw new I(n,`expected a plain object`);let i=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(i).some(e=>typeof e!=`string`||i[e]?.get!==void 0||i[e]?.set!==void 0))throw new I(n,`contains an accessor or symbol field`);let a=Object.keys(i).sort(),o=[...t].sort();if(JSON.stringify(a)!==JSON.stringify(o))throw new I(n,`contains missing or unknown fields`);return le(e,n),structuredClone(e),Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.value]))}catch(e){throw e instanceof I?e:new I(n,`could not be inspected safely`)}}function de(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw new I(t,`expected an object`);try{let n=Object.getPrototypeOf(e);if(n!==Object.prototype&&n!==null)throw new I(t,`expected a plain object`);let r=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(r).some(e=>typeof e!=`string`||r[e]?.get!==void 0||r[e]?.set!==void 0))throw new I(t,`contains an accessor or symbol field`);return le(e,t),structuredClone(e),Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t.value]))}catch(e){throw e instanceof I?e:new I(t,`could not be inspected safely`)}}function L(e,t,n){if(typeof e!=`string`||!n.test(e))throw new I(t,`contains an invalid string`);return e}function fe(e,t,n){return e===null?null:L(e,t,n)}function R(e,t){if(typeof e!=`boolean`)throw new I(t,`expected a boolean`);return e}var pe=65536,me=64,he=4096;function ge(e){try{if(typeof e!=`string`)throw new I(`$`,`expected a JSON string`);if(new TextEncoder().encode(e).byteLength>pe)throw new I(`$`,`response exceeds the dashboard JSON limit`);let t=0,n=0,r=()=>{for(;/\s/u.test(e[t]??``);)t+=1},i=()=>{if(e[t]!==`"`)throw new I(`$`,`invalid JSON string`);let n=t;for(t+=1;t<e.length;)if(e[t]===`\\`)t+=2;else if(e[t]===`"`){t+=1;try{return JSON.parse(e.slice(n,t))}catch{throw new I(`$`,`invalid JSON string`)}}else t+=1;throw new I(`$`,`unterminated JSON string`)},a=o=>{if(n+=1,o>me||n>he)throw new I(`$`,`response exceeds the dashboard JSON complexity limit`);if(r(),e[t]===`{`){t+=1,r();let n=new Set;if(e[t]===`}`){t+=1;return}for(;t<e.length;){r();let s=i();if(n.has(s))throw new I(`$`,`response contains duplicate object members`);if(n.add(s),r(),e[t]!==`:`)throw new I(`$`,`invalid JSON object`);if(t+=1,a(o+1),r(),e[t]===`}`){t+=1;return}if(e[t]!==`,`)throw new I(`$`,`invalid JSON object`);t+=1}}else if(e[t]===`[`){if(t+=1,r(),e[t]===`]`){t+=1;return}for(;t<e.length;){if(a(o+1),r(),e[t]===`]`){t+=1;return}if(e[t]!==`,`)throw new I(`$`,`invalid JSON array`);t+=1}}else if(e[t]===`"`){i();return}else{let n=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u)?.[0];if(!n)throw new I(`$`,`invalid JSON value`);t+=n.length;return}throw new I(`$`,`unterminated JSON value`)};if(a(0),r(),t!==e.length)throw new I(`$`,`trailing JSON bytes`);return JSON.parse(e)}catch(e){throw e instanceof I?e:new I(`$`,`invalid JSON response`)}}var _e=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,ve=/^sha256:[a-f0-9]{64}$/u,ye=[`productArea`,`route`,`actorId`,`projectId`,`scopeId`,`domainId`,`domainVersion`,`cycleId`,`subjectId`,`eventHead`,`viewHash`,`generation`];function be(e,t){return e===null?null:L(e,t,_e)}function xe(e){if(e===null)return null;let t=ue(e,[`sequence`,`hash`],`$.eventHead`);if(!Number.isSafeInteger(t.sequence)||t.sequence<0)throw new I(`$.eventHead.sequence`,`expected a non-negative safe integer`);let n=t.hash===null?null:L(t.hash,`$.eventHead.hash`,ve);if(t.sequence===0!=(n===null))throw new I(`$.eventHead`,`sequence and hash are inconsistent`);return Object.freeze({sequence:t.sequence,hash:n})}function z(e){let t=ue(e,ye,`$`);if(t.productArea!==`planning`&&t.productArea!==`operate`)throw new I(`$.productArea`,`expected planning or operate`);if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new I(`$.generation`,`expected a non-negative safe integer`);let n=L(t.route,`$.route`,/^#.{1,512}$/u),r=A(n);if(r.kind===`not-found`||j(r)!==n)throw new I(`$.route`,`must be a canonical closed dashboard route`);if(r.product!==t.productArea)throw new I(`$.route`,`does not belong to the selected product area`);let i=be(t.cycleId,`$.cycleId`),a=be(t.subjectId,`$.subjectId`);if(r.subjectId!==a)throw new I(`$.subjectId`,`does not equal the canonical route subject`);if(r.kind===`operate.review`&&r.cycleId!==i)throw new I(`$.cycleId`,`does not equal the canonical Review route Cycle`);return Object.freeze({productArea:t.productArea,route:n,actorId:L(t.actorId,`$.actorId`,_e),projectId:L(t.projectId,`$.projectId`,ve),scopeId:L(t.scopeId,`$.scopeId`,_e),domainId:L(t.domainId,`$.domainId`,_e),domainVersion:L(t.domainVersion,`$.domainVersion`,_e),cycleId:i,subjectId:a,eventHead:xe(t.eventHead),viewHash:t.viewHash===null?null:L(t.viewHash,`$.viewHash`,ve),generation:t.generation})}function Se(e){return Object.freeze([`dashboard-projection`,z(e)])}function B(e,t){return ye.every(n=>n===`eventHead`?e.eventHead?.sequence===t.eventHead?.sequence&&e.eventHead?.hash===t.eventHead?.hash:e[n]===t[n])}var Ce=Object.freeze([`DASHBOARD_ERROR_UNAVAILABLE`,`DASHBOARD_LOOPBACK_HOST_INVALID`,`DASHBOARD_BOOTSTRAP_INVALID`,`CAPABILITY_DENIED`,`DASHBOARD_BUILD_MISMATCH`,`DASHBOARD_RESPONSE_INVALID`,`CONCURRENT_MODIFICATION`,`OPERATION_UNCERTAIN`,`DASHBOARD_ASSET_MISSING`,`DASHBOARD_MANIFEST_INVALID`,`DASHBOARD_MANIFEST_MISSING`,`DASHBOARD_READ_FAILED`,`DASHBOARD_STALE_RESPONSE`,`OPERATION_CONFLICT`]),we=new Set(Ce),Te=Object.freeze([`operation`,`cycleId`,`assignmentId`,`submissionId`,`submissionState`,`reviewId`,`state`,`maxBytes`]),Ee=Te,De=new Set(Ee),Oe=/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:-[a-z0-9]+)*){1,7}$/u,ke=new Set([`private`,`secret`]),Ae=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,je=/^[a-z][a-z0-9]*(?:[_-][a-z0-9]+){0,7}$/u,Me=160,Ne=16777216;function Pe(e,t){if(typeof e!=`string`||e.length>Me)throw new I(t,`contains an overlong public operation`);let n=L(e,t,Oe);if(n.split(/[.-]/u).some(e=>ke.has(e)))throw new I(t,`contains a non-public operation segment`);return n}function Fe(e,t){if(typeof e!=`string`||e.length>Me)throw new I(t,`contains an overlong public state`);return L(e,t,je)}Object.freeze({code:`DASHBOARD_ERROR_UNAVAILABLE`,retryable:!1,context:Object.freeze({})});function Ie(e){let t=de(e,`$.context`),n=Object.keys(t);if(n.length>Ee.length)throw new I(`$.context`,`contains too many fields`);if(n.some(e=>!De.has(e)))throw new I(`$.context`,`contains a non-public field`);let r={};for(let e of Ee){if(!Object.hasOwn(t,e))continue;let n=t[e];if(e===`maxBytes`){if(!Number.isSafeInteger(n)||n<0||n>Ne)throw new I(`$.context.maxBytes`,`expected a bounded byte count`);r[e]=n}else{let t=`$.context.${e}`;r[e]=e===`operation`?Pe(n,t):e.endsWith(`State`)||e===`state`?Fe(n,t):L(n,t,Ae)}}return Object.freeze(r)}function Le(e){let t=ue(e,[`code`,`retryable`,`context`],`$`);if(typeof t.code!=`string`||!we.has(t.code))throw new I(`$.code`,`contains an unsupported public error code`);return Object.freeze({code:t.code,retryable:R(t.retryable,`$.retryable`),context:Ie(t.context)})}function Re(e){return Object.freeze({blindRetry:!1,requiresReconciliation:!0,retryableAfterReconciliation:e.retryable})}var ze=Object.freeze([`booting`,`loading`,`first-use`,`ready`,`empty`,`read-only`,`refreshing`,`stale`,`degraded`,`blocked`,`unavailable`,`unauthorized`,`offline`,`incompatible`,`corrupt`,`conflict`,`partial`,`uncertain`,`recovering`]),Be=Object.freeze({booting:Ve(`booting`,`disabled`,`route-heading`,`wait`),loading:Ve(`loading`,`disabled`,`route-heading`,`wait`),"first-use":Ve(`first-use`,`disabled`,`state-heading`,`server-action-only`),ready:Ve(`ready`,`server-validated`,`route-heading`,`none`),empty:Ve(`empty`,`disabled`,`state-heading`,`server-action-only`),"read-only":Ve(`read-only`,`disabled`,`route-heading`,`inspect`),refreshing:Ve(`refreshing`,`disabled`,`route-heading`,`wait`),stale:Ve(`stale`,`disabled`,`state-heading`,`reconcile`),degraded:Ve(`degraded`,`disabled`,`state-heading`,`inspect`),blocked:Ve(`blocked`,`disabled`,`state-heading`,`canonical-recovery-only`),unavailable:Ve(`unavailable`,`disabled`,`state-heading`,`inspect`),unauthorized:Ve(`unauthorized`,`disabled`,`state-heading`,`request-access`),offline:Ve(`offline`,`disabled`,`state-heading`,`restore-connection`),incompatible:Ve(`incompatible`,`disabled`,`recovery-heading`,`reinstall`),corrupt:Ve(`corrupt`,`disabled`,`recovery-heading`,`canonical-recovery-only`),conflict:Ve(`conflict`,`disabled`,`recovery-heading`,`reconcile`),partial:Ve(`partial`,`disabled`,`recovery-heading`,`reconcile`),uncertain:Ve(`uncertain`,`disabled`,`recovery-heading`,`canonical-recovery-only`),recovering:Ve(`recovering`,`disabled`,`recovery-heading`,`wait`)});function Ve(e,t,n,r){return Object.freeze({state:e,mutation:t,focus:n,recovery:r,blindRetry:!1})}var He=/^[A-Z][A-Z0-9_]{0,127}$/u,Ue=new Set([`ready`,`read-only`,`refreshing`,`stale`,`degraded`,`blocked`,`partial`,`uncertain`,`recovering`]),We=new Set([`booting`,`unauthorized`,`offline`,`incompatible`,`corrupt`]),Ge=new Set([`unauthorized`,`incompatible`,`corrupt`,`conflict`,`uncertain`]),Ke=new Set([`booting`,`loading`,`ready`]),qe=(...e)=>new Set(e),Je=Object.freeze({booting:qe(),loading:qe(),"first-use":qe(),ready:qe(),empty:qe(),"read-only":qe(),refreshing:qe(),stale:qe(`DASHBOARD_STALE_RESPONSE`,`DASHBOARD_READ_FAILED`),degraded:qe(`DASHBOARD_ERROR_UNAVAILABLE`,`DASHBOARD_READ_FAILED`),blocked:qe(),unavailable:qe(`DASHBOARD_ERROR_UNAVAILABLE`,`DASHBOARD_READ_FAILED`),unauthorized:qe(`CAPABILITY_DENIED`),offline:qe(`DASHBOARD_ERROR_UNAVAILABLE`,`DASHBOARD_READ_FAILED`),incompatible:qe(`DASHBOARD_BUILD_MISMATCH`,`DASHBOARD_ASSET_MISSING`,`DASHBOARD_MANIFEST_MISSING`),corrupt:qe(`DASHBOARD_RESPONSE_INVALID`,`DASHBOARD_MANIFEST_INVALID`,`DASHBOARD_BOOTSTRAP_INVALID`),conflict:qe(`CONCURRENT_MODIFICATION`,`OPERATION_CONFLICT`),partial:qe(`DASHBOARD_READ_FAILED`),uncertain:qe(`OPERATION_UNCERTAIN`),recovering:qe()}),Ye=new Set(ze.map(e=>Ze(e))),Xe=new WeakSet;function Ze(e){return`DASHBOARD_${e.toUpperCase().replace(`-`,`_`)}`}function Qe(e){if(typeof e!=`string`||!ze.includes(e))throw new I(`$.kind`,`contains an unsupported product state`);return e}function $e(e,t){if(!Array.isArray(e)||e.length>16)throw new I(`$.reasonCodes`,`expected a bounded reason array`);let n=e.map((e,t)=>L(e,`$.reasonCodes[${t}]`,He));if(new Set(n).size!==n.length)throw new I(`$.reasonCodes`,`contains duplicate reasons`);if(Ke.has(t)&&n.length!==0)throw new I(`$.reasonCodes`,`is not valid for this product state`);if(!Ke.has(t)&&n.length===0)throw new I(`$.reasonCodes`,`requires a certified reason`);if(!Ke.has(t)&&n[0]!==Ze(t))throw new I(`$.reasonCodes`,`does not begin with the tagged presentation-state reason`);if(n.slice(1).some(e=>Ye.has(e)))throw new I(`$.reasonCodes`,`contains a secondary presentation-state substitution`);return Object.freeze(n)}function et(e,t){let n=ue(e,[`state`,`mutation`,`focus`,`recovery`,`blindRetry`],`$.policy`),r=Be[t];if(n.state!==r.state||n.mutation!==r.mutation||n.focus!==r.focus||n.recovery!==r.recovery||n.blindRetry!==!1)throw new I(`$.policy`,`does not match the tagged product state`);return r}function tt(e){let t;try{t=structuredClone(e)}catch{throw new I(`$.data`,`cannot be cloned safely`)}let n=new WeakSet,r=e=>{if(typeof e==`object`&&e&&!n.has(e)){n.add(e);for(let t of Object.values(e))r(t);Object.freeze(e)}};return r(t),t}function nt(e,t,n){if(e===null){if(Ge.has(t))throw new I(`$.error`,`is required for this product state`);return null}let r=Je[t];if(r.size===0)throw new I(`$.error`,`is not valid for this product state`);let i=Le(e);if(!r.has(i.code))throw new I(`$.error.code`,`does not match the tagged product state`);if(n===null&&Object.keys(i.context).length!==0)throw new I(`$.error.context`,`must not disclose owner-bound identifiers in this product state`);if(i.context.cycleId!==void 0&&(n?.cycleId===null||n?.cycleId===void 0||i.context.cycleId!==n.cycleId))throw new I(`$.error.context.cycleId`,`does not match exact custody`);for(let e of[`assignmentId`,`submissionId`,`reviewId`])if(i.context[e]!==void 0&&(n?.subjectId===null||n?.subjectId===void 0||i.context[e]!==n.subjectId))throw new I(`$.error.context.${e}`,`does not match exact custody`);return i}function rt(e){if(e==null)return e;try{return z(e)}catch{throw new I(`$.currentBinding`,`does not satisfy the exact current-binding contract`)}}function it(e,t={}){let n=ue(e,[`kind`,`binding`,`data`,`reasonCodes`,`error`,`mutationEnabled`,`policy`],`$`),r=Qe(n.kind),i=et(n.policy,r),a=R(n.mutationEnabled,`$.mutationEnabled`);if(r!==`ready`&&a)throw new I(`$.mutationEnabled`,`is default-denied for this state`);let o=n.binding===null?null:z(n.binding),s=rt(t.currentBinding);if(!We.has(r)&&o===null)throw new I(`$.binding`,`is required for this product state`);if([`booting`,`unauthorized`,`incompatible`,`corrupt`].includes(r)&&o!==null)throw new I(`$.binding`,`must not disclose a bound subject in this state`);if(o&&(!s||!B(o,s)))throw new I(`$.binding`,`requires an explicitly supplied non-null exact current binding`);let c=null;if(n.data!==null){if(!t.validateData)throw new I(`$.data`,`requires an owner-boundary validator`);let e=tt(n.data);try{if(!t.validateData(e))throw new I(`$.data`,`failed its owner-boundary contract`)}catch(e){throw e instanceof I?e:new I(`$.data`,`failed its owner-boundary contract`)}c=e}if(Ue.has(r)&&c===null)throw new I(`$.data`,`is required for this product state`);if(!Ue.has(r)&&r!==`offline`&&c!==null)throw new I(`$.data`,`is forbidden for this state`);if(r===`offline`&&o===null!=(c===null))throw new I(`$.data`,`offline cache requires its exact binding`);if(a&&(r!==`ready`||!o||s==null||!B(o,s)))throw new I(`$.mutationEnabled`,`requires current validated ready data and exact custody`);let l=Object.freeze({kind:r,binding:o,data:c,reasonCodes:$e(n.reasonCodes,r),error:nt(n.error,r,o),mutationEnabled:a,policy:i});return Xe.add(l),l}function at(e,t){if(!Xe.has(e))return!1;try{let n=rt(t);return e.kind===`ready`&&e.mutationEnabled&&e.data!==null&&e.binding!==null&&n!=null&&B(e.binding,n)}catch{return!1}}function V(e){return typeof e==`object`&&!!e&&Xe.has(e)}function ot(e){return Be[e]}var st=Object.freeze({projectName:`OpenPlanr`,projectDetail:`Project context pending`,actorLabel:`Actor binding pending`,bindingLabel:`Scope and domain pending`}),ct=Object.freeze({state:`booting`,label:`Checking local dashboard`,reason:`Waiting for OpenPlanr to return a validated project projection.`}),lt=()=>Promise.reject(Error(`No exact dashboard refetch is available.`)),ut=(0,v.createContext)(null);function dt(e){return e===void 0?typeof window>`u`?``:window.location.hash:e}function ft(e,t){return e!==void 0||typeof window>`u`?()=>void 0:(window.addEventListener(`hashchange`,t),()=>window.removeEventListener(`hashchange`,t))}function pt(e){return e.state===`offline`?it({kind:`offline`,binding:null,data:null,reasonCodes:[`DASHBOARD_OFFLINE`],error:null,mutationEnabled:!1,policy:ot(`offline`)}):e.state===`incompatible`?it({kind:`incompatible`,binding:null,data:null,reasonCodes:[`DASHBOARD_INCOMPATIBLE`],error:Object.freeze({code:`DASHBOARD_BUILD_MISMATCH`,retryable:!1,context:Object.freeze({})}),mutationEnabled:!1,policy:ot(`incompatible`)}):it({kind:`booting`,binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:ot(`booting`)})}function mt({children:e,initialHash:t,identity:n=st,connection:r=ct,buildId:i,binding:a=null,projection:o,planningProjection:s,operateCyclesProjection:c,operateSearchBindings:l=Object.freeze([]),operateReviewNavigation:u=null,refetchCurrent:d=lt,bootstrap:f=null,bootPhase:p=`checking`,bootDetail:m=null,liveTransition:h,liveSubjectId:g}){let _=(0,v.useSyncExternalStore)(e=>ft(t,e),()=>dt(t),()=>dt(t)),y=(0,v.useMemo)(()=>A(_),[_]),b=(0,v.useMemo)(()=>o??pt(r),[r,o]),x=(0,v.useMemo)(()=>s??(a?.productArea===`planning`?b:pt(r)),[a?.productArea,r,b,s]),S=(0,v.useMemo)(()=>c??(a?.route===`#/operate/cycles`?b:pt(r)),[a?.route,r,b,c]),C=(0,v.useMemo)(()=>Object.freeze({route:y,identity:n,connection:r,buildId:i,binding:a,projection:b,planningProjection:x,operateCyclesProjection:S,operateSearchBindings:l,operateReviewNavigation:u,refetchCurrent:d,bootstrap:f,bootPhase:p,bootDetail:m}),[y,n,r,i,a,b,x,S,l,u,d,f,p,m]);return(0,F.jsx)(ut.Provider,{value:C,children:(0,F.jsx)(oe,{route:y,binding:a,transition:h,trackedSubjectId:g,children:e})})}function ht(){let e=(0,v.useContext)(ut);if(!e)throw Error(`useDashboard must be used inside DashboardProviders.`);return e}function gt(e){if(e.kind===`not-found`)return`not-found`;if(e.kind===`operate.review`)return`${e.kind}:${e.cycleId}:${e.subjectId}`;let t=e.subjectId;return`${e.kind}:${t??``}`}function _t(){let{route:e}=ht(),t=(0,v.useMemo)(()=>{if(e.kind===`not-found`)return``;let t=M(e);if(!t)return``;let n=e.kind===`operate.review`?` · ${e.cycleId} · ${e.subjectId}`:e.subjectId?` · ${e.subjectId}`:``;return`${t.label}${n}. ${t.description}`},[e]);return t?(0,F.jsx)(`div`,{className:`op-route-announcer`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:t},gt(e)):null}var vt=Object.freeze([`boot`,`incompatible-installation`,`missing-asset`,`stale-package`,`api-version`,`watcher-gap`,`optional-dependency`]),yt=Object.freeze({DASHBOARD_MANIFEST_MISSING:`incompatible-installation`,DASHBOARD_MANIFEST_INVALID:`api-version`,DASHBOARD_ASSET_MISSING:`missing-asset`,DASHBOARD_BUILD_MISMATCH:`stale-package`});function bt(e,t,n,r,i){return Object.freeze({category:e,status:t,title:n,detail:r,remediation:i})}function xt(e,t){return bt(`boot`,e===`checking`?`pending`:`fail`,e===`checking`?`Verifying dashboard bootstrap`:`Bootstrap could not be certified`,t,e===`checking`?`Wait for OpenPlanr to publish the public bootstrap envelope.`:`Restore the loopback connection, then reopen diagnostics without mutation.`)}function St(e,t,n){return bt(e,`pass`,t,n,`No remediation is required for this check.`)}function Ct(e,t,n,r){return bt(e,`fail`,t,n,r)}function wt(e,t,n,r){return bt(e,`warn`,t,n,r)}function Tt(e){let t=new Map;e.bootPhase===`checking`?t.set(`boot`,xt(`checking`,e.bootDetail??`Bootstrap request is in flight.`)):e.bootPhase===`unavailable`?t.set(`boot`,xt(`failed`,e.bootDetail??`OpenPlanr did not return a validated bootstrap envelope.`)):t.set(`boot`,St(`boot`,`Bootstrap envelope validated`,`The public bootstrap response matched the installed dashboard build contract.`));let n=e.bootstrap,r=n?.compatibility.reasonCodes??[],i=new Set(r.map(e=>yt[e]));!n||n.compatibility.status===`incompatible`||r.length>0?t.set(`incompatible-installation`,Ct(`incompatible-installation`,`Dashboard installation is incompatible`,r.length>0?`Certified reason codes: ${r.join(` · `)}.`:`OpenPlanr refused the installed dashboard before presenting project data.`,`Install matching OpenPlanr dashboard assets, then verify compatibility again.`)):t.set(`incompatible-installation`,St(`incompatible-installation`,`Installation contract is compatible`,`The UI, server, and packaged assets satisfy one compatible build contract.`)),t.set(`missing-asset`,i.has(`missing-asset`)?Ct(`missing-asset`,`Packaged asset is missing`,`At least one dashboard asset required by the build manifest is absent.`,`Reinstall the dashboard package or rebuild the embedded asset manifest.`):St(`missing-asset`,`Packaged assets resolve`,`Every asset entry required by the certified manifest is present.`));let a=i.has(`stale-package`)||n!==null&&n.ui.buildId!==null&&n.ui.expectedBuildId!==null&&n.ui.buildId!==n.ui.expectedBuildId;t.set(`stale-package`,a?Ct(`stale-package`,`Installed build does not match the server expectation`,n?`Embedded build ${e.embeddedBuildId} differs from the served build ${n.ui.buildId??`unknown`}.`:`The embedded dashboard build identity could not be reconciled with the server.`,`Install the dashboard build expected by this OpenPlanr server, then reload diagnostics.`):St(`stale-package`,`Build custody matches`,`Embedded and served builds both report ${e.embeddedBuildId}.`)),t.set(`api-version`,i.has(`api-version`)?Ct(`api-version`,`API or manifest version is unsupported`,`The dashboard manifest or protocol envelope failed semantic validation.`,`Upgrade OpenPlanr to a release that publishes a supported dashboard contract.`):St(`api-version`,`API versions are supported`,n?`Protocol ${n.protocolVersion} with Operate ${n.capabilities.operateExperience.protocolVersion} and Planning graph ${n.capabilities.planningGraph.schemaVersion}.`:`Protocol versions remain unproven until bootstrap succeeds.`));let o=e.connection.state===`stale`||e.connection.state===`offline`||e.connection.reason.toLowerCase().includes(`watch`);t.set(`watcher-gap`,o?wt(`watcher-gap`,`Live reconciliation may be unavailable`,e.connection.reason,`Restore the loopback connection or restart the dashboard without --no-watch before relying on live updates.`):St(`watcher-gap`,`Live update channel is available`,e.connection.label));let s=n!==null&&(!n.capabilities.diagnostics.available||!n.capabilities.operateCommands.available);return t.set(`optional-dependency`,s?wt(`optional-dependency`,`Optional capability is unavailable`,[n?.capabilities.diagnostics.available?null:`diagnostics unavailable`,n?.capabilities.operateCommands.available?null:`operate commands unavailable`].filter(e=>e!==null).join(` · `),`Reinstall OpenPlanr with optional dependencies enabled. Global navigation and diagnostics remain available.`):St(`optional-dependency`,`Optional dependencies are present`,`Diagnostics and governed Operate command transport are both advertised.`)),Object.freeze(vt.map(e=>{let n=t.get(e);if(!n)throw Error(`Missing compatibility finding for ${e}`);return n}))}function Et(e,t,n){return e?e.compatibility.status!==`compatible`||e.ui.buildId!==t||e.ui.expectedBuildId!==t?Object.freeze({state:`incompatible`,label:`Dashboard installation is incompatible`,reason:e.compatibility.reasonCodes.length>0?e.compatibility.reasonCodes.join(` · `):`Install matching OpenPlanr dashboard assets before relying on current operating state.`}):e.capabilities.operateCommands.available?Object.freeze({state:`connected`,label:`Connected to local OpenPlanr`,reason:`Validated projection channel is available.`}):Object.freeze({state:`read-only`,label:`Connected in read-only mode`,reason:`Governed Operate commands are unavailable. Planning inspection and diagnostics remain available.`}):Object.freeze({state:`booting`,label:`Checking local dashboard`,reason:n??`Waiting for OpenPlanr to return a validated project projection.`})}function Dt(e){return e?{projectName:e.project.name,projectDetail:e.project.products.length>1?`Planning and operations`:`Project workspace`,actorLabel:`Actor binding pending`,bindingLabel:`Scope and domain pending`}:{projectName:`OpenPlanr`,projectDetail:`Project context pending`,actorLabel:`Actor binding pending`,bindingLabel:`Scope and domain pending`}}var Ot=Object.defineProperty,kt=(e,t)=>Ot(e,`name`,{value:t,configurable:!0});function At(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}kt(At,`setRef`);function jt(...e){return t=>{let n=!1,r=e.map(e=>{let r=At(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():At(e[t],null)}}}}kt(jt,`composeRefs`);function Mt(...e){return v.useCallback(jt(...e),e)}kt(Mt,`useComposedRefs`);var Nt=Object.defineProperty,Pt=(e,t)=>Nt(e,`name`,{value:t,configurable:!0});function Ft(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Gt(r),v.Children.forEach(r,e=>{if(Vt(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Ut(n)&&typeof Yt==`function`;)n=Yt(n._payload);a=Rt(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?Bt(a):void 0,l=Mt(n,c);if(!a){if(r||r===0)throw Error(o?Jt(e):qt(e));return r}let u=zt(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Pt(Ft,`createSlot`);var It=Symbol.for(`radix.slottable`);function Lt(e){let t=Pt(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=It,t}Pt(Lt,`createSlottable`);var Rt=Pt((e,t)=>`child`in e.props?v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null:v.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function zt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Kt(a,i))}return{...e,...n}}Pt(zt,`mergeProps`);function Bt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Pt(Bt,`getElementRef`);function Vt(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===It}Pt(Vt,`isSlottable`);var Ht=Symbol.for(`react.lazy`);function Ut(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ht&&`_payload`in e&&Wt(e._payload)}Pt(Ut,`isLazyComponent`);function Wt(e){return typeof e==`object`&&!!e&&`then`in e}Pt(Wt,`isPromiseLike`);function Gt(e){let t=e;for(;Ut(t)&&typeof Yt==`function`;)t=Yt(t._payload);return t}Pt(Gt,`useUnwrappedLazy`);function Kt(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Pt(Kt,`concatAriaDescribedby`);var qt=Pt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Jt=Pt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Yt=v.use,Xt=l(h(),1),Zt=Object.defineProperty,Qt=(e,t)=>Zt(e,`name`,{value:t,configurable:!0}),$t=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ft(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function en(e,t){e&&Xt.flushSync(()=>e.dispatchEvent(t))}Qt(en,`dispatchDiscreteCustomEvent`);var tn=Object.defineProperty,nn=(e,t)=>tn(e,`name`,{value:t,configurable:!0}),rn=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),an=v.forwardRef(nn(function(e,t){return(0,F.jsx)($t.span,{...e,ref:t,style:{...rn,...e.style}})},`VisuallyHidden`)),on=Object.defineProperty,sn=(e,t)=>on(e,`name`,{value:t,configurable:!0});function cn(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=sn(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,F.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return sn(i,`useContext`),[r,i]}sn(cn,`createContext`);function ln(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=sn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return sn(s,`useContext`),[o,s]}sn(r,`createContext`);let i=sn(()=>{let t=n.map(e=>v.createContext(e));return sn(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,un(i,...t)]}sn(ln,`createContextScope`);function un(...e){let t=e[0];if(e.length===1)return t;let n=sn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return sn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}sn(un,`composeContextScopes`);var dn=globalThis?.document?v.useLayoutEffect:()=>{},fn=Object.defineProperty,pn=(e,t)=>fn(e,`name`,{value:t,configurable:!0});function mn(e){let t=e+`CollectionProvider`,[n,r]=ln(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=pn(e=>{let{scope:t,children:n}=e,r=v.useRef(null),a=v.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Ft(s),l=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Mt(t,a(s,n).collectionRef);return(0,F.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Ft(u),p=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),s=Mt(t,o),c=a(u,n);return v.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return v.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return pn(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}pn(mn,`createCollection`);var hn=new WeakMap,gn=class e extends Map{static{pn(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],hn.set(this,!0)}set(e,t){return hn.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=yn(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=_n(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=_n(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return _n(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function _n(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=vn(e,t);return n===-1?void 0:e[n]}pn(_n,`at`);function vn(e,t){let n=e.length,r=yn(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}pn(vn,`toSafeIndex`);function yn(e){return e!==e||e===0?0:Math.trunc(e)}pn(yn,`toSafeInteger`);function bn(e){let t=e+`CollectionProvider`,[n,r]=ln(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=pn(({state:e,...t})=>e?(0,F.jsx)(u,{...t,state:e}):(0,F.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=pn(e=>{let t=_();return(0,F.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=pn(e=>{let{scope:t,children:n,state:r}=e,a=v.useRef(null),[s,c]=v.useState(null),l=Mt(a,c),[u,d]=r,f=v.useRef(new gn),p=v.useCallback(()=>{let e=f.current;return Cn(e)||e.sort(wn),e},[]);return v.useEffect(()=>{if(!s)return;let e=Tn(()=>{d(e=>{let t=e.toSorted(wn);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,F.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,F.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=Ft(d),p=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Mt(t,a(d,n).collectionElementRef);return(0,F.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=Ft(m),g=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=v.useRef(i);xn(l.current,i)||(l.current=i);let u=l.current,d=Mt(t,v.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);dn(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=v.useRef(null);return v.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new gn(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(wn)}))}),v.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new gn(t);return n.delete(e.element),n})},[s]),(0,F.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return v.useState(new gn)}pn(_,`useInitCollection`);function y(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}pn(y,`useCollection`);function b(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return pn(b,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:y,useGetCollection:b,useInitCollection:_}]}pn(bn,`createCollection`);function xn(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}pn(xn,`shallowEqual`);function Sn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}pn(Sn,`isElementPreceding`);function Cn(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}pn(Cn,`isInDocumentOrder`);function wn(e,t){return!e[1].element||!t[1].element?0:Sn(e[1].element,t[1].element)?-1:1}pn(wn,`sortByDocumentPosition`);function Tn(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}pn(Tn,`getChildListObserver`);var En=Object.defineProperty,Dn=(e,t)=>En(e,`name`,{value:t,configurable:!0}),On=!!(typeof window<`u`&&window.document&&window.document.createElement);function kn(e,t,{checkForDefaultPrevented:n=!0}={}){return Dn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Dn(kn,`composeEventHandlers`);function An(e){if(!On)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Dn(An,`getOwnerWindow`);function jn(e){if(!On)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Dn(jn,`getOwnerDocument`);function Mn(e,t=!1){let{activeElement:n}=jn(e);if(!n?.nodeName)return null;if(Nn(n)&&n.contentDocument)return Mn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=jn(n).getElementById(e);if(t)return t}}return n}Dn(Mn,`getActiveElement`);function Nn(e){return e.tagName===`IFRAME`}Dn(Nn,`isFrame`);var Pn=Object.defineProperty,Fn=(e,t)=>Pn(e,`name`,{value:t,configurable:!0}),In=v.useEffectEvent,Ln=v.useInsertionEffect;function Rn(e){if(typeof In==`function`)return In(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Ln==`function`?Ln(()=>{t.current=e}):dn(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Fn(Rn,`useEffectEvent`);var zn=Object.defineProperty,Bn=(e,t)=>zn(e,`name`,{value:t,configurable:!0}),Vn=v.useInsertionEffect||dn;function Hn({prop:e,defaultProp:t,onChange:n=Bn(()=>{},`onChange`),caller:r}){let[i,a,o]=Un({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=Wn(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Bn(Hn,`useControllableState`);function Un({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return Vn(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Bn(Un,`useUncontrolledState`);function Wn(e){return typeof e==`function`}Bn(Wn,`isFunction`);var Gn=Symbol(`RADIX:SYNC_STATE`);function Kn(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Rn(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===Gn)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Gn,state:i})},[i,d.state,c]),[h,f]}Bn(Kn,`useControllableStateReducer`);var qn=Object.defineProperty,Jn=(e,t)=>qn(e,`name`,{value:t,configurable:!0});function Yn(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}Jn(Yn,`useStateMachine`);var Xn=Jn(e=>{let{present:t,children:n}=e,r=Zn(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=$n(r.ref,tr(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function Zn(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=Yn(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??er(r.current),o.current=void 0):a.current=`none`},[s]),dn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=er(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),dn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Jn(a=>{let o=er(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Jn(e=>{e.target===t&&(a.current=er(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=er(t)}else r.current=null;n(e)},[])}}Jn(Zn,`usePresence`);function Qn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Jn(Qn,`setRef`);function $n(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Qn(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Qn(n[e],null)}}},[])}Jn($n,`useStableComposedRefs`);function er(e){return e?.animationName||`none`}Jn(er,`getAnimationName`);function tr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Jn(tr,`getElementRef`);var nr=Object.defineProperty,rr=(e,t)=>nr(e,`name`,{value:t,configurable:!0}),ir=v.useId||(()=>void 0),ar=0;function or(e){let[t,n]=v.useState(ir());return dn(()=>{e||n(e=>e??String(ar++))},[e]),e||(t?`radix-${t}`:``)}rr(or,`useId`);var sr=Object.defineProperty,cr=(e,t)=>sr(e,`name`,{value:t,configurable:!0}),lr={LTR:`ltr`,RTL:`rtl`},ur=v.createContext(void 0);function dr(e){let t=v.useContext(ur);return e||t||lr.LTR}cr(dr,`useDirection`);var fr=Object.defineProperty,pr=(e,t)=>fr(e,`name`,{value:t,configurable:!0}),mr=v.useInsertionEffect;function hr(e){let t=v.useRef(e);return typeof mr==`function`?mr(()=>{t.current=e}):dn(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}pr(hr,`useCallbackRef`);var gr=Object.defineProperty,_r=(e,t)=>gr(e,`name`,{value:t,configurable:!0}),vr=`dismissableLayer.update`,yr=`dismissableLayer.pointerDownOutside`,br=`dismissableLayer.focusOutside`,xr,Sr=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Cr=v.forwardRef(_r(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(Sr),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=Mt(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=Er(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Dr(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=hr(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Or(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=xr))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Or())},[d,u]),v.useEffect(()=>{let e=_r(()=>m({}),`handleUpdate`);return document.addEventListener(vr,e),()=>document.removeEventListener(vr,e)},[]),(0,F.jsx)($t.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:kn(e.onFocusCapture,T.onFocusCapture),onBlurCapture:kn(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:kn(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function wr(){let e=v.useContext(Sr),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}_r(wr,`useDismissableLayerSurface`);var Tr=_r(()=>!0,`IS_TRUE`);function Er(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Tr}=t,s=hr(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}_r(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}_r(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}_r(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}_r(p,`handleInteractionBubble`);let m=_r(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||kr(yr,s,p,{discrete:!0})};if(_r(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:_r(()=>c.current=!0,`onPointerDownCapture`)}}_r(Er,`usePointerDownOutside`);function Dr(e,t=globalThis?.document){let n=hr(e),r=v.useRef(!1);return v.useEffect(()=>{let e=_r(e=>{e.target&&!r.current&&kr(br,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:_r(()=>r.current=!0,`onFocusCapture`),onBlurCapture:_r(()=>r.current=!1,`onBlurCapture`)}}_r(Dr,`useFocusOutside`);function Or(){let e=new CustomEvent(vr);document.dispatchEvent(e)}_r(Or,`dispatchUpdate`);function kr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?en(i,a):i.dispatchEvent(a)}_r(kr,`handleAndDispatchCustomEvent`);var Ar=Object.defineProperty,jr=(e,t)=>Ar(e,`name`,{value:t,configurable:!0}),Mr=`focusScope.autoFocusOnMount`,Nr=`focusScope.autoFocusOnUnmount`,Pr={bubbles:!1,cancelable:!0},Fr=v.forwardRef(jr(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=v.useState(null),u=hr(a),d=hr(o),f=v.useRef(null),p=Mt(t,l),m=v.useRef(i);v.useEffect(()=>{m.current=i});let h=v.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Kr(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Kr(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Kr(c)};jr(e,`handleFocusIn`),jr(t,`handleFocusOut`),jr(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),v.useEffect(()=>{if(c){qr.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Mr,Pr);c.addEventListener(Mr,u),c.dispatchEvent(t),t.defaultPrevented||(Br(Xr(Hr(c)),{select:!0}),document.activeElement===e&&Kr(c))}return()=>{c.removeEventListener(Mr,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Nr,Pr);c.addEventListener(Nr,d),c.dispatchEvent(r),r.defaultPrevented||Kr(e??t.body,{select:!0}),c.removeEventListener(Nr,d),qr.remove(g)},0)}}},[c,u,d,g]);let _=v.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Vr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Kr(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Kr(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,F.jsx)($t.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),Ir=v.createContext(null);function Lr({registry:e,children:t}){return e?(0,F.jsx)(Ir.Provider,{value:e,children:t}):t}jr(Lr,`FocusScopeBranchProvider`);function Rr(){let[e,t]=v.useState([]);return{nodes:e,registry:v.useMemo(()=>({add:jr(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:jr(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}jr(Rr,`useFocusScopeBranchRegistry`);function zr(e){let t=v.useContext(Ir);v.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}jr(zr,`useFocusScopeBranch`);function Br(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Kr(r,{select:t}),document.activeElement!==n)return}jr(Br,`focusFirst`);function Vr(e){let t=Hr(e);return[Ur(t,e),Ur(t.reverse(),e)]}jr(Vr,`getTabbableEdges`);function Hr(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:jr(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}jr(Hr,`getTabbableCandidates`);function Ur(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Wr(r,{upTo:t})))return r}jr(Ur,`findVisible`);function Wr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}jr(Wr,`isHidden`);function Gr(e){return e.tagName===`INPUT`&&typeof e.select==`function`}jr(Gr,`isSelectableInput`);function Kr(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Gr(e)&&t&&e.select()}}jr(Kr,`focus`);var qr=Jr();function Jr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Yr(e,t),e.unshift(t)},remove(t){e=Yr(e,t),e[0]?.resume()}}}jr(Jr,`createFocusScopesStack`);function Yr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}jr(Yr,`arrayRemove`);function Xr(e){return e.filter(e=>e.tagName!==`A`)}jr(Xr,`removeLinks`);var Zr=Object.defineProperty,Qr=v.forwardRef(((e,t)=>Zr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);dn(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Xt.createPortal((0,F.jsx)($t.div,{...r,ref:t}),o):null},`Portal`)),$r=Object.defineProperty,ei=(e,t)=>$r(e,`name`,{value:t,configurable:!0}),ti=0,ni=null;function ri(e){return ii(),e.children}ei(ri,`FocusGuards`);function ii(){v.useEffect(()=>{ni||={start:ai(),end:ai()};let{start:e,end:t}=ni;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),ti++,()=>{ti===1&&(ni?.start.remove(),ni?.end.remove(),ni=null),ti=Math.max(0,ti-1)}},[])}ei(ii,`useFocusGuards`);function ai(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}ei(ai,`createFocusGuard`);var oi=function(){return oi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oi.apply(this,arguments)};function si(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ci(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var li=`right-scroll-bar-position`,ui=`width-before-scroll-bar`,di=`with-scroll-bars-hidden`,fi=`--removed-body-scroll-bar-size`;function pi(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function mi(e,t){var n=(0,v.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var hi=typeof window<`u`?v.useLayoutEffect:v.useEffect,gi=new WeakMap;function _i(e,t){var n=mi(t||null,function(t){return e.forEach(function(e){return pi(e,t)})});return hi(function(){var t=gi.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||pi(e,null)}),i.forEach(function(e){r.has(e)||pi(e,a)})}gi.set(n,e)},[e]),n}function vi(e){return e}function yi(e,t){t===void 0&&(t=vi);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function bi(e){e===void 0&&(e={});var t=yi(null);return t.options=oi({async:!0,ssr:!1},e),t}var xi=function(e){var t=e.sideCar,n=si(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return v.createElement(r,oi({},n))};xi.isSideCarExport=!0;function Si(e,t){return e.useMedium(t),xi}var Ci=bi(),wi=function(){},Ti=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:wi,onWheelCapture:wi,onTouchMoveCapture:wi}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,y=_===void 0?`div`:_,b=e.gapMode,x=si(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=_i([n,t]),w=oi(oi({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:Ci,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),oi(oi({},w),{ref:C})):v.createElement(y,oi({},w,{className:c,ref:C}),s))});Ti.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ti.classNames={fullWidth:ui,zeroRight:li};var Ei=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Di(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ei();return t&&e.setAttribute(`nonce`,t),e}function Oi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ki(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ai=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Di())&&(Oi(t,n),ki(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ji=function(){var e=Ai();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Mi=function(){var e=ji();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ni={left:0,top:0,right:0,gap:0},Pi=function(e){return parseInt(e||``,10)||0},Fi=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Pi(n),Pi(r),Pi(i)]},Ii=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ni;var t=Fi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Li=Mi(),Ri=`data-scroll-locked`,zi=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
10
|
+
.${di} {
|
|
11
|
+
overflow: hidden ${r};
|
|
12
|
+
padding-right: ${s}px ${r};
|
|
13
|
+
}
|
|
14
|
+
body[${Ri}] {
|
|
15
|
+
overflow: hidden ${r};
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
18
|
+
padding-left: ${i}px;
|
|
19
|
+
padding-top: ${a}px;
|
|
20
|
+
padding-right: ${o}px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: ${s}px ${r};
|
|
24
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.${li} {
|
|
28
|
+
right: ${s}px ${r};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.${ui} {
|
|
32
|
+
margin-right: ${s}px ${r};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.${li} .${li} {
|
|
36
|
+
right: 0 ${r};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.${ui} .${ui} {
|
|
40
|
+
margin-right: 0 ${r};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[${Ri}] {
|
|
44
|
+
${fi}: ${s}px;
|
|
45
|
+
}
|
|
46
|
+
`},Bi=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Vi=function(){v.useEffect(function(){return document.body.setAttribute(Ri,(Bi()+1).toString()),function(){var e=Bi()-1;e<=0?document.body.removeAttribute(Ri):document.body.setAttribute(Ri,e.toString())}},[])},Hi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Vi();var a=v.useMemo(function(){return Ii(i)},[i]);return v.createElement(Li,{styles:zi(a,!t,i,n?``:`!important`)})},Ui=!1;if(typeof window<`u`)try{var Wi=Object.defineProperty({},"passive",{get:function(){return Ui=!0,!0}});window.addEventListener(`test`,Wi,Wi),window.removeEventListener(`test`,Wi,Wi)}catch{Ui=!1}var Gi=Ui?{passive:!1}:!1,Ki=function(e){return e.tagName===`TEXTAREA`},qi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ki(e)&&n[t]===`visible`)},Ji=function(e){return qi(e,`overflowY`)},Yi=function(e){return qi(e,`overflowX`)},Xi=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),$i(e,r)){var i=ea(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Zi=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Qi=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},$i=function(e,t){return e===`v`?Ji(t):Yi(t)},ea=function(e,t){return e===`v`?Zi(t):Qi(t)},ta=function(e,t){return e===`h`&&t===`rtl`?-1:1},na=function(e,t,n,r,i){var a=ta(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ea(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&$i(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},H=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ra=function(e){return[e.deltaX,e.deltaY]},ia=function(e){return e&&`current`in e?e.current:e},aa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oa=function(e){return`
|
|
47
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
49
|
+
`},sa=0,ca=[];function la(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(sa++)[0],a=v.useState(Mi)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ci([e.lockRef.current],(e.shards||[]).map(ia),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=H(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Xi(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Xi(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return na(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(ca.length&&ca[ca.length-1]===a){var r=`deltaY`in n?ra(n):H(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&aa(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(ia).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ua(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=H(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,ra(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,H(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return ca.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Gi),document.addEventListener(`touchmove`,c,Gi),document.addEventListener(`touchstart`,u,Gi),function(){ca=ca.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Gi),document.removeEventListener(`touchmove`,c,Gi),document.removeEventListener(`touchstart`,u,Gi)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:oa(i)}):null,p?v.createElement(Hi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ua(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var da=Si(Ci,la),fa=v.forwardRef(function(e,t){return v.createElement(Ti,oi({},e,{ref:t,sideCar:da}))});fa.classNames=Ti.classNames;var pa=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ma=new WeakMap,ha=new WeakMap,ga={},_a=0,va=function(e){return e&&(e.host||va(e.parentNode))},ya=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=va(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ba=function(e,t,n,r){var i=ya(t,Array.isArray(e)?e:[e]);ga[n]||(ga[n]=new WeakMap);var a=ga[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ma.get(e)||0)+1,l=(a.get(e)||0)+1;ma.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ha.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),_a++,function(){o.forEach(function(e){var t=ma.get(e)-1,i=a.get(e)-1;ma.set(e,t),a.set(e,i),t||(ha.has(e)||e.removeAttribute(r),ha.delete(e)),i||e.removeAttribute(n)}),_a--,_a||(ma=new WeakMap,ma=new WeakMap,ha=new WeakMap,ga={})}},xa=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||pa(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ba(r,i,n,`aria-hidden`)):function(){return null}},Sa=Object.defineProperty,Ca=(e,t)=>Sa(e,`name`,{value:t,configurable:!0}),wa=`Dialog`,[Ta,Ea]=ln(wa),[Da,Oa]=Ta(wa),ka=Ca(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),{nodes:l,registry:u}=Rr(),[d,f]=Hn({prop:r,defaultProp:i??!1,onChange:a,caller:wa}),[p,m]=v.useState(0),[h,g]=v.useState(0);return(0,F.jsx)(Da,{scope:t,triggerRef:s,contentRef:c,contentId:or(),titleId:or(),descriptionId:or(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),Aa=`DialogTrigger`,ja=v.forwardRef(Ca(function(e,t){let{__scopeDialog:n,...r}=e,i=Oa(Aa,n),a=Mt(t,i.triggerRef);return(0,F.jsx)($t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Xa(i.open),...r,ref:a,onClick:kn(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Ma=`DialogPortal`,[Na,Pa]=Ta(Ma,{forceMount:void 0}),Fa=Ca(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Oa(Ma,t);return(0,F.jsx)(Na,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,F.jsx)(Xn,{present:n||a.open,children:(0,F.jsx)(Qr,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Ia=`DialogOverlay`,La=v.forwardRef(Ca(function(e,t){let n=Pa(Ia,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Oa(Ia,e.__scopeDialog);return a.modal?(0,F.jsx)(Xn,{present:r||a.open,children:(0,F.jsx)(za,{...i,ref:t})}):null},`DialogOverlay`)),Ra=Ft(`DialogOverlay.RemoveScroll`),za=v.forwardRef(Ca(function(e,t){let{__scopeDialog:n,...r}=e,i=Oa(Ia,n),a=Mt(t,wr());return(0,F.jsx)(fa,{as:Ra,allowPinchZoom:!0,shards:v.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,F.jsx)($t.div,{"data-state":Xa(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Ba=`DialogContent`,Va=v.forwardRef(Ca(function(e,t){let n=Pa(Ba,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Oa(Ba,e.__scopeDialog);return(0,F.jsx)(Xn,{present:r||a.open,children:a.modal?(0,F.jsx)(Ha,{...i,ref:t}):(0,F.jsx)(Ua,{...i,ref:t})})},`DialogContent`)),Ha=v.forwardRef(Ca(function(e,t){let n=Oa(Ba,e.__scopeDialog),r=v.useRef(null),i=Mt(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return xa(e)},[]),(0,F.jsx)(Wa,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:kn(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:kn(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:kn(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Ua=v.forwardRef(Ca(function(e,t){let n=Oa(Ba,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,F.jsx)(Wa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),Wa=v.forwardRef(Ca(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Oa(Ba,n);return ii(),(0,F.jsx)(Lr,{registry:l.branchRegistry,children:(0,F.jsx)(Fr,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,F.jsx)(Cr,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?Ya(o,l.descriptionId):o,"data-state":Xa(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),Ga=v.forwardRef(Ca(function(e,t){let{__scopeDialog:n,...r}=e,i=Oa(`DialogTitle`,n),{setTitleCount:a}=i;return dn(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,F.jsx)($t.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),Ka=v.forwardRef(Ca(function(e,t){let{__scopeDialog:n,...r}=e,i=Oa(`DialogDescription`,n),{setDescriptionCount:a}=i;return dn(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,F.jsx)($t.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),qa=`DialogClose`,Ja=v.forwardRef(Ca(function(e,t){let{__scopeDialog:n,...r}=e,i=Oa(qa,n);return(0,F.jsx)($t.button,{type:`button`,...r,ref:t,onClick:kn(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Ya(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ca(Ya,`concatAriaDescribedby`);function Xa(e){return e?`open`:`closed`}Ca(Xa,`getState`);var Za=Object.defineProperty,Qa=(e,t)=>Za(e,`name`,{value:t,configurable:!0}),[$a,eo]=ln(`AlertDialog`,[Ea]),to=Ea(),no=Qa(e=>{let{__scopeAlertDialog:t,...n}=e,r=to(t);return(0,F.jsx)(ka,{...r,...n,modal:!0})},`AlertDialog`);v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=to(n);return(0,F.jsx)(ja,{...i,...r,ref:t})},`AlertDialogTrigger`));var ro=Qa(e=>{let{__scopeAlertDialog:t,...n}=e,r=to(t);return(0,F.jsx)(Fa,{...r,...n})},`AlertDialogPortal`),io=v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=to(n);return(0,F.jsx)(La,{...i,...r,ref:t})},`AlertDialogOverlay`)),[ao,oo]=$a(`AlertDialogContent`),so=v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=to(n),o=Mt(t,v.useRef(null)),s=v.useRef(null);return(0,F.jsx)(ao,{scope:n,cancelRef:s,children:(0,F.jsx)(Va,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:kn(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),co=v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=to(n);return(0,F.jsx)(Ga,{...i,...r,ref:t})},`AlertDialogTitle`)),lo=v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=to(n);return(0,F.jsx)(Ka,{...i,...r,ref:t})},`AlertDialogDescription`));v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=to(n);return(0,F.jsx)(Ja,{...i,...r,ref:t})},`AlertDialogAction`));var uo=`AlertDialogCancel`,fo=v.forwardRef(Qa(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=oo(uo,n),a=to(n),o=Mt(t,i);return(0,F.jsx)(Ja,{...a,...r,ref:o})},`AlertDialogCancel`)),po=Object.defineProperty,mo=(e,t)=>po(e,`name`,{value:t,configurable:!0});function ho(e){let[t,n]=v.useState(void 0);return dn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}mo(ho,`useSize`);var go=[`top`,`right`,`bottom`,`left`],_o=Math.min,vo=Math.max,yo=Math.round,bo=Math.floor,xo=e=>({x:e,y:e}),So={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Co(e,t,n){return vo(e,_o(t,n))}function wo(e,t){return typeof e==`function`?e(t):e}function To(e){return e.split(`-`)[0]}function Eo(e){return e.split(`-`)[1]}function Do(e){return e===`x`?`y`:`x`}function Oo(e){return e===`y`?`height`:`width`}function ko(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ao(e){return Do(ko(e))}function jo(e,t,n){n===void 0&&(n=!1);let r=Eo(e),i=Ao(e),a=Oo(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Bo(o)),[o,Bo(o)]}function Mo(e){let t=Bo(e);return[No(e),t,No(t)]}function No(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Po=[`left`,`right`],Fo=[`right`,`left`],Io=[`top`,`bottom`],Lo=[`bottom`,`top`];function Ro(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Fo:Po:t?Po:Fo;case`left`:case`right`:return t?Io:Lo;default:return[]}}function zo(e,t,n,r){let i=Eo(e),a=Ro(To(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(No)))),a}function Bo(e){let t=To(e);return So[t]+e.slice(t.length)}function U(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Vo(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:U(e)}function Ho(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Uo(e,t,n){let{reference:r,floating:i}=e,a=ko(t),o=Ao(t),s=Oo(o),c=To(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Eo(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Wo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=wo(t,e),p=Vo(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ho(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ho(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Go=50,Ko=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Wo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Uo(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Go&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Uo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},qo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=wo(e,t)||{};if(l==null)return{};let d=Vo(u),f={x:n,y:r},p=Ao(i),m=Oo(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=_o(d[_],T),D=_o(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Co(E,k,O),j=!c.arrow&&Eo(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Jo=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=wo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=To(r),_=ko(o),v=To(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Bo(o)]:Mo(o)),x=p!==`none`;!d&&x&&b.push(...zo(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=jo(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===ko(t)||T.every(e=>ko(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ko(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Yo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xo(e){return go.some(t=>e[t]>=0)}var Zo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=wo(e,t);switch(i){case`referenceHidden`:{let e=Yo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Xo(e)}}}case`escaped`:{let e=Yo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Xo(e)}}}default:return{}}}}},Qo=new Set([`left`,`top`]);async function $o(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=To(n),s=Eo(n),c=ko(n)===`y`,l=Qo.has(o)?-1:1,u=a&&c?-1:1,d=wo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var es=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await $o(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ts=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=wo(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ko(i),p=Do(f),m=u[p],h=u[f],g=(e,t)=>Co(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},ns=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=wo(e,t),u={x:n,y:r},d=ko(i),f=Do(d),p=u[f],m=u[d],h=wo(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Qo.has(To(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},rs=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=wo(e,t),c=await i.detectOverflow(t,s),l=To(n),u=Eo(n),d=ko(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=_o(p-c[m],g),y=_o(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*vo(c.left,c.right):S=p-2*vo(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function is(){return typeof window<`u`}function as(e){return cs(e)?(e.nodeName||``).toLowerCase():`#document`}function os(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ss(e){return((cs(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function cs(e){return is()?e instanceof Node||e instanceof os(e).Node:!1}function ls(e){return is()?e instanceof Element||e instanceof os(e).Element:!1}function us(e){return is()?e instanceof HTMLElement||e instanceof os(e).HTMLElement:!1}function ds(e){return!is()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof os(e).ShadowRoot}function fs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Cs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ps(e){return/^(table|td|th)$/.test(as(e))}function ms(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var hs=/transform|translate|scale|rotate|perspective|filter/,gs=/paint|layout|strict|content/,_s=e=>!!e&&e!==`none`,vs;function ys(e){let t=ls(e)?Cs(e):e;return _s(t.transform)||_s(t.translate)||_s(t.scale)||_s(t.rotate)||_s(t.perspective)||!xs()&&(_s(t.backdropFilter)||_s(t.filter))||hs.test(t.willChange||``)||gs.test(t.contain||``)}function bs(e){let t=Ts(e);for(;us(t)&&!Ss(t);){if(ys(t))return t;if(ms(t))return null;t=Ts(t)}return null}function xs(){return vs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),vs}function Ss(e){return/^(html|body|#document)$/.test(as(e))}function Cs(e){return os(e).getComputedStyle(e)}function ws(e){return ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ts(e){if(as(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ds(e)&&e.host||ss(e);return ds(t)?t.host:t}function Es(e){let t=Ts(e);return Ss(t)?(e.ownerDocument||e).body:us(t)&&fs(t)?t:Es(t)}function Ds(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Es(e),i=r===e.ownerDocument?.body,a=os(r);if(i){let e=Os(a);return t.concat(a,a.visualViewport||[],fs(r)?r:[],e&&n?Ds(e):[])}return t.concat(r,Ds(r,[],n))}function Os(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ks(e){let t=Cs(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=us(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=yo(n)!==a||yo(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function As(e){return ls(e)?e:e.contextElement}function js(e){let t=As(e);if(!us(t))return xo(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ks(t),o=(a?yo(n.width):n.width)/r,s=(a?yo(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ms=xo(0);function Ns(e){let t=os(e);return!xs()||!t.visualViewport?Ms:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ps(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===os(e)}function Fs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=As(e),o=xo(1);t&&(r?ls(r)&&(o=js(r)):o=js(e));let s=Ps(a,n,r)?Ns(a):xo(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=os(a),t=ls(r)?os(r):r,n=e,i=Os(n);for(;i&&t!==n;){let e=js(i),t=i.getBoundingClientRect(),r=Cs(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=os(i),i=Os(n)}}return Ho({width:u,height:d,x:c,y:l})}function Is(e,t){let n=ws(e).scrollLeft;return t?t.left+n:Fs(ss(e)).left+n}function Ls(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Is(e,n),y:n.top+t.scrollTop}}function Rs(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ss(r),s=t?ms(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=xo(1),u=xo(0),d=us(r);if((d||!a)&&((as(r)!==`body`||fs(o))&&(c=ws(r)),d)){let e=Fs(r);l=js(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ls(o,c):xo(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function zs(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bs(e){let t=ws(e),n=e.ownerDocument.body,r=vo(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=vo(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Is(e),o=-t.scrollTop;return Cs(n).direction===`rtl`&&(a+=vo(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Vs=25;function Hs(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=os(e),a=ss(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!xs()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Is(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Vs&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Us(e,t){let n=Fs(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=js(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ws(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Hs(e,n,t);else if(t===`document`)r=Bs(ss(e));else if(ls(t))r=Us(t,n);else{let n=Ns(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ho(r)}function Gs(e,t){let n=t.get(e);if(n)return n;let r=Ds(e,[],!1).filter(e=>ls(e)&&as(e)!==`body`),i=null,a=Cs(e).position===`fixed`,o=a?Ts(e):e;for(;ls(o)&&!Ss(o);){let e=Cs(o),t=ys(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Ts(o)}return t.set(e,r),r}function Ks(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ms(t)?[]:Gs(t,this._c):[].concat(n),r],o=Ws(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ws(t,a[e],i);s=vo(n.top,s),c=_o(n.right,c),l=_o(n.bottom,l),u=vo(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function qs(e){let{width:t,height:n}=ks(e);return{width:t,height:n}}function Js(e,t,n){let r=us(t),i=ss(t),a=n===`fixed`,o=Fs(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=xo(0);if((r||!a)&&((as(t)!==`body`||fs(i))&&(s=ws(t)),r)){let e=Fs(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Is(i));let l=i&&!r&&!a?Ls(i,s):xo(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ys(e){return Cs(e).position===`static`}function Xs(e,t){if(!us(e)||Cs(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ss(e)===n&&(n=n.ownerDocument.body),n}function Zs(e,t){let n=os(e);if(ms(e))return n;if(!us(e)){let t=Ts(e);for(;t&&!Ss(t);){if(ls(t)&&!Ys(t))return t;t=Ts(t)}return n}let r=Xs(e,t);for(;r&&ps(r)&&Ys(r);)r=Xs(r,t);return r&&Ss(r)&&Ys(r)&&!ys(r)?n:r||bs(e)||n}var Qs=async function(e){let t=this.getOffsetParent||Zs,n=this.getDimensions,r=await n(e.floating);return{reference:Js(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $s(e){return Cs(e).direction===`rtl`}var ec={convertOffsetParentRelativeRectToViewportRelativeRect:Rs,getDocumentElement:ss,getClippingRect:Ks,getOffsetParent:Zs,getElementRects:Qs,getClientRects:zs,getDimensions:qs,getScale:js,isElement:ls,isRTL:$s};function tc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nc(e,t,n){let r=null,i,a=ss(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=bo(d),h=bo(a.clientWidth-(u+f)),g=bo(a.clientHeight-(d+p)),_=bo(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:vo(0,_o(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!tc(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=os(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function rc(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=As(e),u=i||a?[...l?Ds(l):[],...t?Ds(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?nc(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Fs(e):null;c&&g();function g(){let t=Fs(e);h&&!tc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ic=es,ac=ts,oc=Jo,sc=rs,cc=Zo,lc=qo,uc=ns,dc=(e,t,n)=>{let r=new Map,i=n??{},a={...ec,...i.platform,_c:r};return Ko(e,t,{...i,platform:a})},fc=typeof document<`u`?v.useLayoutEffect:function(){};function pc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!pc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function mc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hc(e,t){let n=mc(e);return Math.round(t*n)/n}function gc(e){let t=v.useRef(e);return fc(()=>{t.current=e}),t}function _c(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);pc(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=gc(c),O=gc(i),k=gc(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),dc(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!pc(T.current,t)&&(T.current=t,Xt.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);fc(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=v.useRef(!1);fc(()=>(j.current=!0,()=>{j.current=!1}),[]),fc(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=v.useMemo(()=>({reference:x,floating:S}),[x,S]),ee=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=hc(N.floating,u.x),r=hc(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...mc(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:ee}),[u,A,M,N,ee])}var vc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:lc({element:r.current,padding:i}).fn(n):r?lc({element:r,padding:i}).fn(n):{}}}},yc=(e,t)=>{let n=ic(e);return{name:n.name,fn:n.fn,options:[e,t]}},bc=(e,t)=>{let n=ac(e);return{name:n.name,fn:n.fn,options:[e,t]}},xc=(e,t)=>({fn:uc(e).fn,options:[e,t]}),Sc=(e,t)=>{let n=oc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cc=(e,t)=>{let n=sc(e);return{name:n.name,fn:n.fn,options:[e,t]}},wc=(e,t)=>{let n=cc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tc=(e,t)=>{let n=vc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ec=Object.defineProperty,Dc=(e,t)=>Ec(e,`name`,{value:t,configurable:!0}),Oc={Partial:`partial`,Always:`always`},kc={Optimized:`optimized`,Always:`always`},Ac=`Popper`,[jc,Mc]=ln(Ac),[Nc,Pc]=jc(Ac),Fc=Dc(e=>{let{__scopePopper:t,children:n}=e,[r,i]=v.useState(null),[a,o]=v.useState(void 0);return(0,F.jsx)(Nc,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Ic=`PopperAnchor`,Lc=v.forwardRef(Dc(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Pc(Ic,n),o=v.useRef(null),s=a.onAnchorChange,c=Mt(t,v.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=v.useRef(null);v.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Wc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,F.jsx)($t.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Rc=`PopperContent`,[zc,Bc]=jc(Rc),Vc=v.forwardRef(Dc(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Oc.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=kc.Optimized,onPlaced:m,...h}=e,g=Pc(Rc,n),[_,y]=v.useState(null),b=Mt(t,y),[x,S]=v.useState(null),C=ho(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Hc),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:ee,middlewareData:P}=_c({strategy:`fixed`,placement:E,whileElementsMounted:Dc((...e)=>rc(...e,{animationFrame:p===kc.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[yc({mainAxis:i+T,alignmentAxis:o}),c&&bc({mainAxis:!0,crossAxis:!1,...d===Oc.Partial?{limiter:xc()}:{},...A}),c&&Sc({...A}),Cc({...A,apply:Dc(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&Tc({element:x,padding:s}),Uc({arrowWidth:w,arrowHeight:T}),f&&wc(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),te=g.setPlacementState;dn(()=>(te(N),()=>{te(void 0)}),[N,te]);let[ne,re]=Wc(N),ie=hr(m);dn(()=>{ee&&ie?.()},[ee,ie]);let ae=P.arrow?.x,oe=P.arrow?.y,I=P.arrow?.centerOffset!==0,[se,ce]=v.useState();return dn(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,F.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:ee?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,F.jsx)(zc,{scope:n,placedSide:ne,placedAlign:re,onArrowChange:S,arrowX:ae,arrowY:oe,shouldHideArrow:I,children:(0,F.jsx)($t.div,{"data-side":ne,"data-align":re,...h,ref:b,style:{...h.style,animation:ee?h.style?.animation:`none`}})})})},`PopperContent`));function Hc(e){return e!==null}Dc(Hc,`isNotNull`);var Uc=Dc(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Wc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Wc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Dc(Wc,`getSideAndAlignFromPlacement`);var Gc=Object.defineProperty,Kc=(e,t)=>Gc(e,`name`,{value:t,configurable:!0}),qc=!1;function Jc(){let[e,t]=v.useState(qc);return v.useEffect(()=>{qc||(qc=!0,t(!0))},[]),e}Kc(Jc,`useIsHydrated`);var Yc=v.useSyncExternalStore;function Xc(){return()=>{}}Kc(Xc,`subscribe`);function Zc(){return Yc(Xc,()=>!0,()=>!1)}Kc(Zc,`useIsHydratedModern`);var Qc=typeof Yc==`function`?Zc:Jc,$c=Object.defineProperty,el=(e,t)=>$c(e,`name`,{value:t,configurable:!0}),tl=`rovingFocusGroup.onEntryFocus`,nl={bubbles:!1,cancelable:!0},rl=`RovingFocusGroup`,[il,al,ol]=mn(rl),[sl,cl]=ln(rl,[ol]),ll={Vertical:`vertical`,Horizontal:`horizontal`},ul={LTR:`ltr`,RTL:`rtl`},[dl,fl]=sl(rl),pl=v.forwardRef(el(function(e,t){return(0,F.jsx)(il.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(il.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(ml,{...e,ref:t})})})},`RovingFocusGroup`)),ml=v.forwardRef(el(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=v.useRef(null),p=Mt(t,f),m=dr(a),[h,g]=Hn({prop:o,defaultProp:s??null,onChange:c,caller:rl}),[_,y]=v.useState(!1),b=hr(l),x=al(n),S=v.useRef(!1),[C,w]=v.useState(0);return v.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(tl,b),()=>e.removeEventListener(tl,b)},[b]),(0,F.jsx)(dl,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:v.useCallback(e=>g(e),[g]),onItemShiftTab:v.useCallback(()=>y(!0),[]),onFocusableItemAdd:v.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:v.useCallback(()=>w(e=>e-1),[]),children:(0,F.jsx)($t.div,{tabIndex:_||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:kn(e.onMouseDown,()=>{S.current=!0}),onFocus:kn(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(tl,nl);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);bl([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:kn(e.onBlur,()=>y(!1))})})},`RovingFocusGroupImpl`)),hl=`RovingFocusGroupItem`,gl=v.forwardRef(el(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=or(),l=a||c,u=fl(hl,n),d=u.currentTabStopId===l,f=al(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Qc();return dn(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),v.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,F.jsx)(il.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)($t.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:kn(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:kn(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:kn(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=yl(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?xl(n,r+1):n.slice(r+1)}setTimeout(()=>bl(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),_l={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function vl(e,t){return t===ul.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}el(vl,`getDirectionAwareKey`);function yl(e,t,n){let r=vl(e.key,n);if(!(t===ll.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===ll.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return _l[r]}el(yl,`getFocusIntent`);function bl(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}el(bl,`focusFirst`);function xl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}el(xl,`wrapArray`);var Sl=Object.defineProperty,Cl=(e,t)=>Sl(e,`name`,{value:t,configurable:!0}),wl={Automatic:`automatic`,Manual:`manual`},Tl=`Tabs`,[El,Dl]=ln(Tl,[cl]),Ol=cl(),[kl,Al]=El(Tl),jl=v.forwardRef(Cl(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=wl.Automatic,...l}=e,u=dr(s),[d,f]=Hn({prop:r,onChange:i,defaultProp:a??``,caller:Tl});return(0,F.jsx)(kl,{scope:n,baseId:or(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,F.jsx)($t.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),Ml=`TabsList`,Nl=v.forwardRef(Cl(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=Al(Ml,n),o=Ol(n);return(0,F.jsx)(pl,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,F.jsx)($t.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),Pl=`TabsTrigger`,Fl=v.forwardRef(Cl(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Al(Pl,n),s=Ol(n),c=Rl(o.baseId,r),l=zl(o.baseId,r),u=r===o.value;return(0,F.jsx)(gl,{asChild:!0,...s,focusable:!i,active:u,children:(0,F.jsx)($t.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:kn(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?(e.currentTarget.focus(),o.onValueChange(r)):e.preventDefault()}),onKeyDown:kn(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:kn(e.onFocus,()=>{let e=o.activationMode!==wl.Manual;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),Il=`TabsContent`,Ll=v.forwardRef(Cl(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=Al(Il,n),c=Rl(s.baseId,r),l=zl(s.baseId,r),u=r===s.value,d=v.useRef(u);return v.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,F.jsx)(Xn,{present:i||u,children:({present:n})=>(0,F.jsx)($t.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})},`TabsContent`));function Rl(e,t){return`${e}-trigger-${t}`}Cl(Rl,`makeTriggerId`);function zl(e,t){return`${e}-content-${t}`}Cl(zl,`makeContentId`);var Bl=Object.defineProperty,Vl=(e,t)=>Bl(e,`name`,{value:t,configurable:!0}),[Hl,Ul]=ln(`Tooltip`,[Mc]),Wl=Mc(),Gl=`TooltipProvider`,Kl=700,ql=`tooltip.open`,[Jl,Yl]=Hl(Gl),Xl=Vl(e=>{let{__scopeTooltip:t,delayDuration:n=Kl,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=v.useRef(!0),s=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,F.jsx)(Jl,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Zl=`Tooltip`,[Ql,$l]=Hl(Zl),eu=Vl(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Yl(Zl,e.__scopeTooltip),l=Wl(t),[u,d]=v.useState(null),[f,p]=v.useState(void 0),m=or(),h=v.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,y=v.useRef(!1),[b,x]=Hn({prop:r,defaultProp:i??!1,onChange:Vl(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ql))):c.onClose(),a?.(e)},`onChange`),caller:Zl}),S=v.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),w=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},_)},[_,x]);v.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,F.jsx)(Fc,{...l,children:(0,F.jsx)(Ql,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:v.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),tu=`TooltipTrigger`,nu=v.forwardRef(Vl(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=$l(tu,n),o=Yl(tu,n),s=Wl(n),c=Mt(t,v.useRef(null),a.onTriggerChange),l=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,F.jsx)(Lc,{asChild:!0,...s,children:(0,F.jsx)($t.button,{"aria-describedby":a.open?vu(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:kn(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:kn(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:kn(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:kn(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:kn(e.onBlur,a.onClose),onClick:kn(e.onClick,a.onClose)})})},`TooltipTrigger`)),ru=`TooltipPortal`,[iu,au]=Hl(ru,{forceMount:void 0}),ou=Vl(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=$l(ru,t);return(0,F.jsx)(iu,{scope:t,forceMount:n,children:(0,F.jsx)(Xn,{present:n||a.open,children:(0,F.jsx)(Qr,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),su=`TooltipContent`,cu=v.forwardRef(Vl(function(e,t){let n=au(su,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=$l(su,e.__scopeTooltip);return(0,F.jsx)(Xn,{present:r||o.open,children:o.disableHoverableContent?(0,F.jsx)(du,{side:i,...a,ref:t}):(0,F.jsx)(lu,{side:i,...a,ref:t})})},`TooltipContent`)),lu=v.forwardRef(Vl(function(e,t){let n=$l(su,e.__scopeTooltip),r=Yl(su,e.__scopeTooltip),i=v.useRef(null),a=Mt(t,i),[o,s]=v.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{s(null),d(!1)},[d]),p=v.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=pu(r,fu(r,n.getBoundingClientRect())),a=mu(t.getBoundingClientRect()),o=gu([...i,...a]);s(o),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(c&&u){let e=Vl(e=>p(e,u),`handleTriggerLeave`),t=Vl(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),v.useEffect(()=>{if(o){let e=Vl(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!hu(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,F.jsx)(du,{...e,ref:a})},`TooltipContentHoverable`)),uu=Lt(`TooltipContent`),du=v.forwardRef(Vl(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=$l(su,n),u=Wl(n),{onClose:d}=l,[f,p]=v.useState(null),m=Mt(t,p);zr(f),v.useEffect(()=>(document.addEventListener(ql,d),()=>document.removeEventListener(ql,d)),[d]),v.useEffect(()=>{if(l.trigger){let e=Vl(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return dn(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,F.jsx)(Cr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,F.jsxs)(Vc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,F.jsx)(uu,{children:r}),i?(0,F.jsx)(an,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function fu(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Vl(fu,`getExitSideFromRect`);function pu(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Vl(pu,`getPaddedExitPoints`);function mu(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Vl(mu,`getPointsFromRect`);function hu(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Vl(hu,`isPointInPolygon`);function gu(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),_u(t)}Vl(gu,`getHull`);function _u(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Vl(_u,`getHullPresorted`);function vu(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Vl(vu,`concatAriaDescribedby`);var yu=Object.freeze({Root:no,Portal:ro,Overlay:io,Content:so,Title:co,Description:lo,Cancel:fo}),bu=Object.freeze({Root:jl,List:Nl,Trigger:Fl,Content:Ll}),xu=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Su(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:xu(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Cu=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},wu=e=>{let t=Cu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Tu=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Eu={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Du(e){return e!=null}function Ou(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Eu.width,a=e.size??e.height??Eu.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Tu(...c):Tu(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Eu[`stroke-width`])*Number(e.size??e.width??Eu.width)/Number(t.size??t.width??Eu.width):t.strokeWidth??Eu[`stroke-width`];return[`svg`,{...Object.entries(Eu).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Du(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Du(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Du(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ku(e,t={}){return Ou(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Au=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ju=(0,v.createContext)({}),Mu=()=>(0,v.useContext)(ju),Nu=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=Mu()??{},b=!!c||Au(d),[x,S,C=[]]=ku(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Tu(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function W(e,t=[],n=[]){let r=typeof e==`string`?Su(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(Nu,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=wu(r.name)),i}var Pu={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};Pu.node;var Fu=W(Pu),Iu={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Iu.node;var Lu=W(Iu),Ru={name:`ban`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]};Ru.node;var zu=W(Ru),Bu={name:`bookmark`,size:24,node:[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]};Bu.node;var Vu=W(Bu),Hu={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};Hu.node;var Uu=W(Hu),Wu={name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]};Wu.node;var Gu=W(Wu),Ku={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};Ku.node;var qu=W(Ku),Ju={name:`cable`,size:24,node:[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]};Ju.node;var Yu=W(Ju),Xu={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Xu.node;var Zu=W(Xu),Qu={name:`calendar-range`,size:24,node:[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M17 13h-6`,key:`1qbiup`}],[`path`,{d:`M13 17H7`,key:`1x38vv`}],[`path`,{d:`M7 13h.01`,key:`1vezk1`}],[`path`,{d:`M17 17h.01`,key:`1sd3ek`}]]};Qu.node;var $u=W(Qu),ed={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};ed.node;var td=W(ed),nd={name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]};nd.node;var G=W(nd),K={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};K.node;var rd=W(K),id={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};id.node;var ad=W(id),od={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};od.node;var sd=W(od),cd={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};cd.node;var ld=W(cd),ud={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};ud.node;var dd=W(ud),fd={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};fd.node;var pd=W(fd),md={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};md.node;var hd=W(md),gd={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};gd.node;var _d=W(gd),vd={name:`circle-dot-dashed`,size:24,node:[[`path`,{d:`M10.1 2.18a9.93 9.93 0 0 1 3.8 0`,key:`1qdqn0`}],[`path`,{d:`M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7`,key:`1bq7p6`}],[`path`,{d:`M21.82 10.1a9.93 9.93 0 0 1 0 3.8`,key:`1rlaqf`}],[`path`,{d:`M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69`,key:`1xk03u`}],[`path`,{d:`M13.9 21.82a9.94 9.94 0 0 1-3.8 0`,key:`l7re25`}],[`path`,{d:`M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7`,key:`1v18p6`}],[`path`,{d:`M2.18 13.9a9.93 9.93 0 0 1 0-3.8`,key:`xdo6bj`}],[`path`,{d:`M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69`,key:`1jjmaz`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]};vd.node;var yd=W(vd),bd={name:`circle-minus`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]],aliases:[`minus-circle`]};bd.node;var xd=W(bd),Sd={name:`circle-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]};Sd.node;var Cd=W(Sd),wd={name:`circle-pause`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]],aliases:[`pause-circle`]};wd.node;var Td=W(wd),Ed={name:`circle-play`,size:24,node:[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],aliases:[`play-circle`]};Ed.node;var Dd=W(Ed),Od={name:`circle-slash`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]};Od.node;var kd=W(Od),Ad={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Ad.node;var jd=W(Ad),Md={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Md.node;var Nd=W(Md),Pd={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Pd.node;var Fd=W(Pd),Id={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};Id.node;var Ld=W(Id),Rd={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Rd.node;var zd=W(Rd),Bd={name:`corner-down-right`,size:24,node:[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]};Bd.node;var Vd=W(Bd),Hd={name:`dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]};Hd.node;var Ud=W(Hd),Wd={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Wd.node;var Gd=W(Wd),Kd={name:`file-check`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]};Kd.node;var qd=W(Kd),Jd={name:`file-diff`,size:24,node:[[`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`}]]};Jd.node;var Yd=W(Jd),Xd={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Xd.node;var Zd=W(Xd),Qd={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};Qd.node;var $d=W(Qd),ef={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};ef.node;var tf=W(ef),nf={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};nf.node;var rf=W(nf),af={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};af.node;var of=W(af),sf={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};sf.node;var cf=W(sf),lf={name:`git-commit-horizontal`,size:24,node:[[`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`}]],aliases:[`git-commit`]};lf.node;var uf=W(lf),df={name:`git-pull-request`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]};df.node;var ff=W(df),pf={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};pf.node;var mf=W(pf),hf={name:`inbox`,size:24,node:[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]};hf.node;var gf=W(hf),_f={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};_f.node;var vf=W(_f),yf={name:`layers`,size:24,node:[[`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`}]],aliases:[`layers-3`]};yf.node;var bf=W(yf),xf={name:`life-buoy`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]};xf.node;var Sf=W(xf),Cf={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};Cf.node;var wf=W(Cf),Tf={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};Tf.node;var Ef=W(Tf),Df={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Df.node;var Of=W(Df),kf={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};kf.node;var Af=W(kf),jf={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};jf.node;var Mf=W(jf),Nf={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};Nf.node;var Pf=W(Nf),Ff={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Ff.node;var If=W(Ff),Lf={name:`octagon-alert`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]],aliases:[`alert-octagon`]};Lf.node;var Rf=W(Lf),zf={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]],aliases:[`sidebar-close`]};zf.node;var Bf=W(zf),Vf={name:`panel-right-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]};Vf.node;var Hf=W(Vf),Uf={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Uf.node;var Wf=W(Uf),Gf={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Gf.node;var Kf=W(Gf),q={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};q.node;var qf=W(q),Jf={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};Jf.node;var Yf=W(Jf),Xf={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Xf.node;var Zf=W(Xf),Qf={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Qf.node;var $f=W(Qf),ep={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};ep.node;var tp=W(ep),np={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};np.node;var rp=W(np),ip={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};ip.node;var ap=W(ip),op={name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]};op.node;var sp=W(op),cp={name:`square-dashed`,size:24,node:[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]],aliases:[`box-select`]};cp.node;var lp=W(cp),up={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};up.node;var dp=W(up),fp={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};fp.node;var pp=W(fp),mp={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};mp.node;var hp=W(mp),gp={name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]};gp.node;var _p=W(gp),vp={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};vp.node;var yp=W(vp),bp={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};bp.node;var xp=W(bp),Sp={name:`triangle-alert`,size:24,node:[[`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`}]],aliases:[`alert-triangle`]};Sp.node;var Cp=W(Sp),wp={name:`unplug`,size:24,node:[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]};wp.node;var Tp=W(wp),Ep={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};Ep.node;var Dp=W(Ep),Op={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};Op.node;var kp=W(Op),Ap={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ap.node;var jp=W(Ap),Mp=Object.freeze({activity:Fu,"arrow-right":Lu,ban:zu,bookmark:Vu,bot:Uu,box:Gu,braces:qu,"calendar-days":Zu,"calendar-range":$u,check:td,"check-check":G,"chevron-down":rd,"chevron-left":ad,"chevron-right":sd,"chevron-up":ld,"chevrons-up-down":dd,circle:Nd,"circle-alert":pd,"circle-check":hd,"circle-dashed":_d,"circle-minus":xd,"circle-pause":Td,"circle-play":Dd,"circle-slash":kd,"circle-x":jd,clock:Fd,"columns-3":Ld,copy:zd,"corner-down-right":Vd,dot:Ud,"external-link":Gd,"file-check":qd,"file-diff":Yd,"file-text":Zd,filter:rf,flag:$d,folder:tf,gauge:of,"git-branch":cf,"git-commit":uf,"git-pull-request":ff,hash:mf,history:qf,inbox:gf,info:vf,layers:bf,"life-buoy":Sf,list:Ef,"list-tree":wf,"loader-circle":Of,lock:Af,minus:Mf,monitor:Pf,moon:If,"octagon-alert":Rf,"panel-left-close":Bf,"panel-right-close":Hf,plus:Wf,"refresh-cw":Kf,"rotate-ccw":Yf,"scroll-text":Zf,search:$f,shield:rp,sparkles:ap,square:dp,"square-check-big":sp,"square-dashed":lp,star:pp,sun:hp,table:_p,target:yp,terminal:xp,"triangle-alert":Cp,unplug:Tp,user:Dp,workflow:kp,x:jp});function J({name:e,size:t=16,color:n=`currentColor`,strokeWidth:r=1.75,title:i,spin:a=!1,pulse:o=!1}){let s=Mp[e];return(0,F.jsx)(s,{className:`pc-icon`,"data-icon":e,"data-spin":a||void 0,"data-pulse":o||void 0,size:t,color:n,strokeWidth:r,"aria-hidden":!i||void 0,role:i?`img`:void 0,"aria-label":i})}var Np={sm:13,md:14,lg:16};function Pp({children:e,variant:t=`secondary`,size:n=`md`,icon:r,iconAfter:i,disabled:a=!1,loading:o=!1,fullWidth:s=!1,shortcut:c,type:l=`button`,onClick:u,ariaLabel:d}){return(0,F.jsxs)(`button`,{type:l,className:`pc-button`,"data-variant":t,"data-size":n,"data-full":s||void 0,disabled:a||o,"aria-label":d,onClick:u,children:[o?(0,F.jsx)(J,{name:`loader-circle`,size:Np[n],spin:!0}):r?(0,F.jsx)(J,{name:r,size:Np[n]}):null,e,i?(0,F.jsx)(J,{name:i,size:Np[n]}):null,c?(0,F.jsx)(`span`,{className:`pc-button__shortcut`,children:c}):null]})}var Fp={sm:13,md:15,lg:17};function Ip({icon:e,label:t,size:n=`md`,active:r=!1,disabled:i=!1,tone:a=`default`,onClick:o}){return(0,F.jsx)(`button`,{type:`button`,className:`pc-icon-button`,"data-size":n,"data-tone":a,"data-active":r||void 0,title:t,"aria-label":t,"aria-pressed":r||void 0,disabled:i,onClick:o,children:(0,F.jsx)(J,{name:e,size:Fp[n]})})}function Lp({children:e,size:t=`md`}){return(0,F.jsx)(`kbd`,{className:`pc-kbd`,"data-size":t,children:e})}function Rp({children:e,tone:t=`neutral`,variant:n=`soft`,icon:r,mono:i=!1}){return(0,F.jsxs)(`span`,{className:`pc-badge`,"data-tone":t,"data-variant":n,"data-mono":i||void 0,children:[r?(0,F.jsx)(J,{name:r,size:11}):null,e]})}function zp({children:e,title:t,meta:n,actions:r,padding:i=14,elevated:a=!1}){return(0,F.jsxs)(`section`,{className:`pc-card`,"data-elevated":a||void 0,children:[t||r?(0,F.jsxs)(`header`,{className:`pc-card__head`,children:[t?(0,F.jsx)(`h2`,{className:`pc-card__title`,children:t}):null,n?(0,F.jsx)(`span`,{className:`pc-card__meta`,children:n}):null,r?(0,F.jsx)(`div`,{className:`pc-card__actions`,children:r}):null]}):null,(0,F.jsx)(`div`,{className:`pc-card__body`,style:{padding:i},children:e})]})}function Bp({icon:e=`inbox`,title:t,description:n,action:r}){return(0,F.jsxs)(`div`,{className:`pc-empty`,children:[(0,F.jsx)(`span`,{className:`pc-empty__glyph`,"aria-hidden":`true`,children:(0,F.jsx)(J,{name:e,size:17})}),(0,F.jsx)(`span`,{className:`pc-empty__title`,children:t}),n?(0,F.jsx)(`p`,{className:`pc-empty__desc`,children:n}):null,r?(0,F.jsx)(`div`,{className:`pc-empty__action`,children:r}):null]})}function Vp({tabs:e,value:t,onChange:n,size:r=`md`,label:i}){return(0,F.jsx)(`div`,{className:`pc-tabs`,"data-size":r,role:`tablist`,"aria-label":i,children:e.map(e=>{let r=e.id===t;return(0,F.jsxs)(`button`,{type:`button`,role:`tab`,className:`pc-tabs__tab`,"aria-selected":r,"data-active":r||void 0,onClick:()=>n(e.id),children:[e.icon?(0,F.jsx)(J,{name:e.icon,size:13}):null,e.label,e.count===void 0?null:(0,F.jsx)(`span`,{className:`pc-tabs__count`,children:e.count})]},e.id)})})}function Hp({w:e=`100%`,h:t=10,radius:n,delay:r=0}){return(0,F.jsx)(`span`,{className:`pc-skeleton`,"aria-hidden":`true`,style:{width:e,height:t,borderRadius:n,animationDelay:`${r}ms`}})}var Up=160;function Wp({columns:e,rows:t=6,label:n}){let r=24+12*Math.max(e.length-1,0)+e.reduce((e,t)=>e+(t.width??Up),0),i=e=>({flex:e.width?`0 0 ${e.width}px`:`1 0 ${Up}px`}),a=Array.from({length:t},(e,t)=>({id:`row-${t}`,row:t}));return(0,F.jsxs)(`output`,{className:`pc-skeleton-table`,"aria-busy":`true`,"aria-label":n??`Loading`,children:[(0,F.jsx)(`div`,{className:`pc-skeleton-table__head`,style:{minWidth:r},children:e.map(e=>(0,F.jsx)(`span`,{style:i(e),children:e.label},e.label))}),a.map(({id:t,row:n})=>(0,F.jsx)(`div`,{className:`pc-skeleton-table__row`,style:{minWidth:r},children:e.map((t,r)=>(0,F.jsx)(`span`,{style:i(t),children:(0,F.jsx)(Hp,{w:t.fill??(r===0?`72%`:`56%`),delay:(n*e.length+r)*40})},t.label))},t))]})}function Gp({count:e=4,height:t=148,min:n=360,label:r}){let i=Array.from({length:e},(e,t)=>({id:`card-${t}`,index:t}));return(0,F.jsx)(`output`,{className:`pc-skeleton-cards`,"aria-busy":`true`,"aria-label":r??`Loading`,style:{gridTemplateColumns:`repeat(auto-fill, minmax(${n}px, 1fr))`},children:i.map(({id:e,index:n})=>(0,F.jsxs)(`div`,{className:`pc-skeleton-cards__card`,style:{height:t},children:[(0,F.jsxs)(`div`,{className:`pc-skeleton-cards__row`,children:[(0,F.jsx)(Hp,{w:84,h:16,delay:n*60}),(0,F.jsx)(Hp,{w:104,h:18,radius:`999px`,delay:n*60+40})]}),(0,F.jsx)(Hp,{w:`82%`,h:13,delay:n*60+80}),(0,F.jsx)(Hp,{w:`94%`,delay:n*60+120}),(0,F.jsx)(Hp,{w:`66%`,delay:n*60+160}),(0,F.jsx)(`span`,{className:`pc-skeleton-cards__foot`,children:(0,F.jsx)(Hp,{w:`46%`,h:22,delay:n*60+200})})]},e))})}function Kp({children:e,right:t}){return(0,F.jsxs)(`div`,{className:`pc-toolbar-bar`,children:[e,t?(0,F.jsx)(`div`,{className:`pc-toolbar-bar__right`,children:t}):null]})}function qp(){return(0,F.jsx)(`span`,{className:`pc-toolbar-bar__divider`,"aria-hidden":`true`})}function Jp({eyebrow:e,title:t,count:n,description:r,actions:i,sticky:a=!1,headingLevel:o=1}){return(0,F.jsxs)(`header`,{className:`pc-section-header`,"data-sticky":a||void 0,children:[(0,F.jsxs)(`div`,{className:`pc-section-header__text`,children:[e?(0,F.jsx)(`span`,{className:`pc-section-header__eyebrow`,children:e}):null,(0,F.jsxs)(`div`,{className:`pc-section-header__row`,children:[(0,F.jsx)(o===1?`h1`:o===2?`h2`:`h3`,{className:`pc-section-header__title`,children:t}),n===void 0?null:(0,F.jsx)(`span`,{className:`pc-section-header__count`,children:n})]}),r?(0,F.jsx)(`p`,{className:`pc-section-header__desc`,children:r}):null]}),i?(0,F.jsx)(`div`,{className:`pc-section-header__actions`,children:i}):null]})}function Yp({value:e,onChange:t,ariaLabel:n,placeholder:r,icon:i,suffix:a,size:o=`md`,mono:s=!1,width:c}){return(0,F.jsxs)(`span`,{className:`pc-input`,"data-size":o,style:{width:c},children:[i?(0,F.jsx)(J,{name:i,size:14,color:`var(--pc-text-tertiary)`}):null,(0,F.jsx)(`input`,{className:`pc-input__field`,"data-mono":s||void 0,type:`text`,value:e,placeholder:r,"aria-label":n,onChange:e=>t(e.target.value)}),a?(0,F.jsx)(`span`,{className:`pc-input__suffix`,children:a}):null]})}function Xp({value:e,onChange:t,options:n,ariaLabel:r,size:i=`md`,width:a}){return(0,F.jsxs)(`span`,{className:`pc-select`,"data-size":i,style:{width:a},children:[(0,F.jsx)(`select`,{className:`pc-select__field`,value:e,"aria-label":r,onChange:e=>t(e.target.value),children:n.map(e=>{let t=typeof e==`string`?{value:e,label:e}:e;return(0,F.jsx)(`option`,{value:t.value,children:t.label},t.value)})}),(0,F.jsx)(J,{name:`chevron-down`,size:13,color:`var(--pc-text-tertiary)`})]})}function Zp({checked:e,onChange:t,label:n,ariaLabel:r,disabled:i=!1,size:a=`md`}){return(0,F.jsxs)(`label`,{className:`pc-switch`,"data-size":a,"data-disabled":i||void 0,children:[(0,F.jsx)(`input`,{type:`checkbox`,role:`switch`,className:`pc-switch__input`,checked:e,"aria-checked":e,disabled:i,"aria-label":n?void 0:r,onChange:e=>t(e.target.checked)}),(0,F.jsx)(`span`,{className:`pc-switch__track`,"aria-hidden":`true`,children:(0,F.jsx)(`span`,{className:`pc-switch__thumb`})}),n?(0,F.jsx)(`span`,{className:`pc-switch__label`,children:n}):null]})}var Qp=Object.freeze({warn:`triangle-alert`,danger:`octagon-alert`,info:`info`,success:`circle-check`});function $p({tone:e=`warn`,title:t,children:n,actions:r}){let i=e===`warning`?`warn`:e;return(0,F.jsxs)(`div`,{className:`pc-alert`,"data-tone":i,role:`note`,children:[(0,F.jsx)(J,{name:Qp[i],size:14}),(0,F.jsxs)(`div`,{className:`pc-alert__body`,children:[t?(0,F.jsx)(`span`,{className:`pc-alert__title`,children:t}):null,n?(0,F.jsx)(`span`,{className:`pc-alert__text`,children:n}):null]}),r?(0,F.jsx)(`div`,{className:`pc-alert__actions`,children:r}):null]})}function em({command:e,label:t,size:n=`md`}){let[r,i]=(0,v.useState)(`idle`);return(0,v.useEffect)(()=>{if(r===`idle`)return;let e=window.setTimeout(()=>i(`idle`),1400);return()=>window.clearTimeout(e)},[r]),(0,F.jsxs)(`div`,{className:`pc-command-hint`,"data-size":n,children:[t?(0,F.jsx)(`span`,{className:`pc-command-hint__label`,children:t}):null,(0,F.jsxs)(`div`,{className:`pc-command-hint__row`,children:[(0,F.jsxs)(`span`,{className:`pc-command-hint__command`,children:[(0,F.jsx)(J,{name:`terminal`,size:12,color:`var(--pc-text-tertiary)`}),e]}),(0,F.jsxs)(`button`,{type:`button`,className:`pc-command-hint__copy`,"data-state":r,"aria-label":r===`copied`?`Command copied`:r===`blocked`?`Copy was blocked`:`Copy command`,onClick:()=>{navigator.clipboard?navigator.clipboard.writeText(e).then(()=>i(`copied`),()=>i(`blocked`)):i(`blocked`)},children:[(0,F.jsx)(J,{name:r===`copied`?`check`:r===`blocked`?`x`:`copy`,size:12}),r===`idle`?null:r]})]})]})}function tm(e,t){let n=e[t];return n==null?null:String(n)}function nm({columns:e,rows:t,compact:n=!1,caption:r,emptyMessage:i=`Nothing here yet.`,selectedId:a,sort:o,onSort:s,onRowClick:c}){let l=e=>c?.(e),u=(e,t)=>{c&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(t))};return(0,F.jsx)(`div`,{className:`pc-table-wrap`,children:(0,F.jsxs)(`table`,{className:`pc-table`,"data-compact":n||void 0,"data-interactive":c?!0:void 0,children:[r?(0,F.jsx)(`caption`,{className:`pc-visually-hidden`,children:r}):null,(0,F.jsx)(`thead`,{children:(0,F.jsx)(`tr`,{children:e.map(e=>{let t=o?.key===e.key,n=(0,F.jsxs)(`span`,{className:`pc-table__heading`,children:[e.label,e.sortable?(0,F.jsx)(J,{name:t?o?.dir===`asc`?`chevron-up`:`chevron-down`:`chevrons-up-down`,size:12,color:t?`var(--pc-text-primary)`:`var(--pc-text-tertiary)`}):null]});return(0,F.jsx)(`th`,{scope:`col`,"data-align":e.align??`left`,style:{width:e.width},"aria-sort":t?o?.dir===`asc`?`ascending`:`descending`:void 0,children:e.sortable&&s?(0,F.jsx)(`button`,{type:`button`,className:`pc-table__sort`,onClick:()=>s(e.key),children:n}):n},e.key)})})}),(0,F.jsx)(`tbody`,{children:t.length===0?(0,F.jsx)(`tr`,{children:(0,F.jsx)(`td`,{className:`pc-table__empty`,colSpan:e.length,children:i})}):t.map(t=>(0,F.jsx)(`tr`,{"data-selected":a!==void 0&&t.id===a||void 0,tabIndex:c?0:void 0,onClick:c?()=>l(t):void 0,onKeyDown:c?e=>u(e,t):void 0,children:e.map(e=>(0,F.jsx)(`td`,{"data-align":e.align??`left`,"data-mono":e.mono||void 0,style:{maxWidth:e.width},children:e.render?e.render(t):tm(t,e.key)},e.key))},t.id))})]})})}var rm=Object.freeze([`outstanding`,`in-progress`,`blocked`,`addressed`,`done`]),im=Object.freeze({done:`done`,"in-progress":`in progress`,blocked:`blocked`,outstanding:`outstanding`,addressed:`addressed`});function am({status:e,size:t=`md`,showLabel:n=!0,count:r}){let i=e in im?e:`outstanding`,a=im[i]??e;return(0,F.jsxs)(`span`,{className:`pc-artifact`,"data-status":i,"data-size":t,children:[(0,F.jsx)(`span`,{className:`pc-artifact__dot`,"aria-hidden":`true`}),(0,F.jsx)(`span`,{className:n?`pc-artifact__label`:`pc-visually-hidden`,children:a}),r===void 0?null:(0,F.jsx)(`span`,{className:`pc-artifact__count`,children:r})]})}var om=Object.freeze({proposed:{label:`proposed`,icon:`circle-dashed`,family:`pre`,dash:!0},approved:{label:`approved`,icon:`circle-check`,family:`pre`},queued:{label:`queued`,icon:`clock`,family:`pre`},in_progress:{label:`in progress`,icon:`circle-play`,family:`active`,live:!0},completed:{label:`completed`,icon:`circle-check`,family:`good`},blocked:{label:`blocked`,icon:`circle-slash`,family:`bad`},rejected:{label:`rejected`,icon:`circle-x`,family:`bad`,double:!0},deferred:{label:`deferred`,icon:`circle-pause`,family:`inert`,dash:!0},cancelled:{label:`cancelled`,icon:`ban`,family:`inert`}}),sm=Object.freeze({succeeded:{label:`succeeded`,icon:`check-check`,family:`good`},failed:{label:`failed`,icon:`triangle-alert`,family:`bad`,double:!0},partial:{label:`partial`,icon:`circle-minus`,family:`pre`},uncertain:{label:`uncertain`,icon:`circle-alert`,family:`inert`,dash:!0}}),cm=Object.freeze({running:`in_progress`,closed:`completed`,"in-progress":`in_progress`});function lm({state:e,size:t=`md`,showLabel:n=!0,label:r}){let i=cm[e]??e,a=om[i]??sm[i]??om.proposed,o=r??a.label;return(0,F.jsxs)(`span`,{className:`pc-state-badge`,role:`status`,"aria-label":`State: ${o}`,"data-state":i,"data-family":a.family,"data-dash":a.dash||void 0,"data-double":a.double||void 0,"data-size":t,children:[(0,F.jsx)(J,{name:a.icon,size:t===`sm`?11:13,pulse:a.live}),n?o:null]})}var um=Object.freeze({epic:{icon:`layers`,prefix:`EPC`},feature:{icon:`box`,prefix:`FTR`},story:{icon:`bookmark`,prefix:`STY`},task:{icon:`square-check-big`,prefix:`TSK`},spec:{icon:`file-text`,prefix:`SPC`},backlog:{icon:`inbox`,prefix:`BKL`},quick:{icon:`flag`,prefix:`QCK`},sprint:{icon:`calendar-range`,prefix:`SPR`},adr:{icon:`shield`,prefix:`ADR`}});function dm({type:e,id:t,title:n,blocked:r=!1,interactive:i=!1,onClick:a}){let o=e in um?e:`task`,s=um[o],c=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`pc-work-item__type`,"data-type":o,"aria-hidden":`true`,children:(0,F.jsx)(J,{name:s.icon,size:12})}),(0,F.jsx)(`span`,{className:`pc-work-item__id`,children:t}),n?(0,F.jsx)(`span`,{className:`pc-work-item__title`,children:n}):null,r?(0,F.jsx)(J,{name:`circle-slash`,size:13,color:`var(--pc-astate-failed-fg)`,title:`Blocked`}):null]});return a?(0,F.jsx)(`button`,{type:`button`,className:`pc-work-item`,"data-interactive":!0,onClick:a,children:c}):(0,F.jsx)(`span`,{className:`pc-work-item`,"data-interactive":i||void 0,children:c})}var fm=Object.freeze({"planr-plan":{family:`plan`,icon:`list-tree`},"planr-plan-review":{family:`plan`,icon:`list-tree`},"planr-spec":{family:`plan`,icon:`file-text`},"planr-ship":{family:`ship`,icon:`git-branch`},"planr-land":{family:`ship`,icon:`git-pull-request`},"planr-operate":{family:`operate`,icon:`gauge`},"planr-ceo-review":{family:`operate`,icon:`scroll-text`},"planr-cpo-review":{family:`operate`,icon:`scroll-text`},"planr-cto-review":{family:`operate`,icon:`scroll-text`},"planr-cmo-review":{family:`operate`,icon:`scroll-text`},"planr-coo-review":{family:`operate`,icon:`scroll-text`},"planr-challenger-review":{family:`operate`,icon:`scroll-text`},"planr-chair-review":{family:`operate`,icon:`scroll-text`},"planr-diagram":{family:`diagram`,icon:`workflow`},"planr-design":{family:`diagram`,icon:`sparkles`},"planr-design-loop":{family:`diagram`,icon:`sparkles`},"planr-design-review":{family:`diagram`,icon:`sparkles`},"planr-artifact":{family:`diagram`,icon:`file-check`},"planr-status":{family:`status`,icon:`activity`},"planr-investigate":{family:`status`,icon:`search`},"planr-browser-qa":{family:`status`,icon:`shield`},"planr-doctor":{family:`status`,icon:`life-buoy`},"planr-sync":{family:`status`,icon:`refresh-cw`},"planr-dashboard":{family:`status`,icon:`gauge`}});function pm({name:e,showIcon:t=!0,size:n=`md`,muted:r=!1}){let i=fm[e];return(0,F.jsxs)(`span`,{className:`pc-capability`,"data-family":i?.family??`status`,"data-size":n,"data-muted":r||void 0,children:[t?(0,F.jsx)(J,{name:i?.icon??`square-dashed`,size:n===`sm`?11:13}):(0,F.jsx)(`span`,{className:`pc-capability__dot`,"aria-hidden":`true`}),e]})}var mm=Object.freeze({proposed:`pre`,approved:`pre`,queued:`pre`,in_progress:`active`,completed:`good`,blocked:`bad`,rejected:`bad`,deferred:`inert`,cancelled:`inert`});function hm({actionId:e,state:t,capability:n,title:r,headingLevel:i=3,summary:a,scope:o,revision:s,route:c,execution:l,deepLink:u,command:d,error:f,compact:p=!1}){let m=i===2?`h2`:`h3`,h=cm[t]??t,g=mm[h]??`pre`;return(0,F.jsxs)(`article`,{className:`pc-action-card`,"data-action":e,"data-family":g,"data-adverse":h===`blocked`||h===`rejected`||void 0,"data-faded":h===`completed`||h===`cancelled`||void 0,"data-live":h===`in_progress`||void 0,"data-compact":p||void 0,children:[(0,F.jsx)(`div`,{className:`pc-action-card__rail`,"aria-hidden":`true`}),(0,F.jsxs)(`div`,{className:`pc-action-card__body`,children:[(0,F.jsxs)(`div`,{className:`pc-action-card__head`,children:[(0,F.jsx)(lm,{state:h,size:`sm`}),n?(0,F.jsx)(pm,{name:n,size:`sm`,muted:!0}):null,e?(0,F.jsx)(`span`,{className:`pc-action-card__id`,children:e}):null,s===void 0?null:(0,F.jsxs)(`span`,{className:`pc-action-card__rev`,title:`Protocol revision`,children:[(0,F.jsx)(J,{name:`git-commit`,size:11}),`rev `,s]})]}),(0,F.jsxs)(`div`,{className:`pc-action-card__text`,children:[(0,F.jsx)(m,{className:`pc-action-card__title`,children:r}),a?(0,F.jsx)(`p`,{className:`pc-action-card__summary`,children:a}):null]}),o&&o.length>0?(0,F.jsx)(`ul`,{className:`pc-action-card__scope`,children:o.map(e=>(0,F.jsx)(`li`,{className:`pc-action-card__chip`,children:e},e))}):null,l?(0,F.jsxs)(`div`,{className:`pc-action-card__execution`,children:[(0,F.jsx)(`span`,{className:`pc-action-card__label`,children:`latest execution`}),(0,F.jsx)(lm,{state:l,size:`sm`})]}):null,f?(0,F.jsxs)(`div`,{className:`pc-action-card__error`,children:[(0,F.jsx)(J,{name:`triangle-alert`,size:13}),(0,F.jsx)(`span`,{children:f})]}):null,d?(0,F.jsx)(em,{command:d,size:`sm`}):null,c||u?(0,F.jsxs)(`div`,{className:`pc-action-card__foot`,children:[c?(0,F.jsxs)(`span`,{className:`pc-action-card__route`,title:`Delivery route`,children:[(0,F.jsx)(J,{name:`corner-down-right`,size:11}),c]}):null,u?(0,F.jsxs)(`a`,{className:`pc-action-card__open`,href:u,"aria-label":`Open ${r}`,children:[`open`,(0,F.jsx)(J,{name:`external-link`,size:11})]}):null]}):null]})]})}var gm=[`epic`,`feature`,`story`,`task`,`spec`,`adr`,`backlog`,`quick`,`sprint`],_m=220,vm=52,ym=184,bm=34,xm=1e3;function Sm(e,t){let n=gm.indexOf(e.type),r=gm.indexOf(t.type);return(n<0?gm.length:n)-(r<0?gm.length:r)||e.id.localeCompare(t.id,void 0,{numeric:!0})}function Cm(e,t){let n=new Set(e.map(e=>e.id)),r=new Map;for(let t of e)r.set(t.id,[]);for(let e of t)n.has(e.from)&&n.has(e.to)&&r.get(e.from)?.push(e.to);let i=0,a=new Map,o=new Map,s=[],c=new Set,l=[],u=e=>{a.set(e,i),o.set(e,i),i+=1,s.push(e),c.add(e);for(let t of r.get(e)??[])a.has(t)?c.has(t)&&o.set(e,Math.min(o.get(e)??0,a.get(t)??0)):(u(t),o.set(e,Math.min(o.get(e)??0,o.get(t)??0)));if(o.get(e)!==a.get(e))return;let t=[];for(;s.length>0;){let n=s.pop();if(n===void 0||(c.delete(n),t.push(n),n===e))break}l.push(t)};for(let t of[...e].sort(Sm))a.has(t.id)||u(t.id);let d=new Map;l.forEach((e,t)=>{for(let n of e)d.set(n,t)});let f=l.map(()=>new Set),p=l.map(()=>0);for(let e of t){let t=d.get(e.from),n=d.get(e.to);t===void 0||n===void 0||t===n||f[t]?.has(n)||(f[t]?.add(n),p[n]=(p[n]??0)+1)}let m=e=>[...l[e]??[]].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))[0]??``,h=l.map((e,t)=>t).filter(e=>p[e]===0).sort((e,t)=>m(e).localeCompare(m(t),void 0,{numeric:!0})),g=l.map(()=>0);for(;h.length>0;){let e=h.shift();if(e===void 0)break;for(let t of f[e]??[])g[t]=Math.max(g[t]??0,(g[e]??0)+1),p[t]=(p[t]??0)-1,p[t]===0&&(h.push(t),h.sort((e,t)=>m(e).localeCompare(m(t),void 0,{numeric:!0})))}return new Map(e.map(e=>[e.id,g[d.get(e.id)??0]??0]))}function wm(e,t,n){let r=e.map(e=>[...e]),i=new Map,a=e=>{let t=r[e]??[],n=Math.max(1,t.length-1);t.forEach((e,t)=>{i.set(e.id,t/n)})},o=(e,o)=>{let s=(r[e]??[]).map(r=>{let a=t.filter(e=>o===`parents`?e.to===r.id:e.from===r.id).map(e=>o===`parents`?e.from:e.to).filter(t=>{let r=n.get(t);return r!==void 0&&(o===`parents`?r<e:r>e)}).map(e=>i.get(e)).filter(e=>e!==void 0);return{node:r,score:a.length>0?a.reduce((e,t)=>e+t,0)/a.length:null}});s.sort((e,t)=>e.score===null&&t.score===null?Sm(e.node,t.node):e.score===null?1:t.score===null?-1:e.score-t.score||Sm(e.node,t.node)),r[e]=s.map(({node:e})=>e),a(e)};for(let e=0;e<2;e+=1){r.forEach((e,t)=>{a(t)});for(let e=1;e<r.length;e+=1)o(e,`parents`);for(let e=r.length-2;e>=0;--e)o(e,`children`)}return r}function Tm({node:e,depth:t,byId:n,edges:r,selectedId:i,onSelect:a}){let o=r.filter(t=>t.from===e.id).map(e=>n.get(e.to)).filter(e=>e!==void 0),s=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`pc-graph-outline__dot`,"data-type":e.type,"aria-hidden":`true`}),(0,F.jsx)(`span`,{className:`pc-graph-outline__id`,children:e.id}),(0,F.jsx)(`span`,{className:`pc-graph-outline__label`,children:e.label}),e.blocked?(0,F.jsx)(`span`,{className:`pc-graph-outline__blocked`,children:`blocked`}):null]});return(0,F.jsxs)(`li`,{className:`pc-graph-outline__item`,"data-depth":t===0?`root`:void 0,children:[a?(0,F.jsx)(`button`,{type:`button`,className:`pc-graph-outline__row`,"data-selected":i===e.id||void 0,onClick:()=>a(e.id),children:s}):(0,F.jsx)(`span`,{className:`pc-graph-outline__row`,children:s}),o.length>0?(0,F.jsx)(`ul`,{className:`pc-graph-outline__list`,children:o.map(e=>(0,F.jsx)(Tm,{node:e,depth:t+1,byId:n,edges:r,selectedId:i,onSelect:a},e.id))}):null]})}function Em({nodes:e,edges:t,view:n=`graph`,flow:r=`source-to-target`,selectedId:i,onSelect:a,height:o}){let s=new Map(e.map(e=>[e.id,e])),c=r===`target-to-source`?t.map(e=>({...e,from:e.to,to:e.from})):t;if(n===`outline`){let t=e.filter(e=>!c.some(t=>t.to===e.id));return(0,F.jsx)(`div`,{className:`pc-graph-outline`,children:(0,F.jsx)(`ul`,{className:`pc-graph-outline__list`,children:t.map(e=>(0,F.jsx)(Tm,{node:e,depth:0,byId:s,edges:c,selectedId:i,onSelect:a},e.id))})})}let l=Cm(e,c),u=Math.max(0,...l.values())+1,d=wm(Array.from({length:u},(t,n)=>[...e].filter(e=>l.get(e.id)===n).sort(Sm)),c,l),f=Math.max(1,...d.map(e=>e.length)),p=Math.max(o??0,f*vm+78),m=Math.max(680,u*_m+48),h=new Set(c.filter(e=>e.active).flatMap(e=>[e.from,e.to])),g=new Map;return d.forEach((e,t)=>{let n=u===1?50:7+t/(u-1)*86,r=48+(f-e.length)*vm/2;e.forEach((e,t)=>{g.set(e.id,{x:n/100*xm,xPercent:n,y:r+t*vm})})}),(0,F.jsx)(`figure`,{className:`pc-graph`,"aria-label":`Dependency graph`,"data-tracing":h.size>0||void 0,style:{height:o},children:(0,F.jsxs)(`div`,{className:`pc-graph__canvas`,style:{minWidth:m,height:p},children:[(0,F.jsx)(`div`,{className:`pc-graph__ranks`,"aria-hidden":`true`,children:d.map((e,t)=>{let n=u===1?50:7+t/(u-1)*86;return(0,F.jsxs)(`span`,{className:`pc-graph__rank`,style:{left:`${n}%`},children:[t===0?`foundation`:`stage ${t+1}`,` · `,e.length]},t)})}),(0,F.jsxs)(`svg`,{className:`pc-graph__edges`,viewBox:`0 0 ${xm} ${p}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,F.jsx)(`title`,{children:`Dependency edges`}),c.map(e=>{let t=g.get(e.from),n=g.get(e.to);if(!t||!n)return null;let r=t.x,i=t.y+bm/2,a=n.x,o=n.y+bm/2,s=(r+a)/2;return(0,F.jsx)(`path`,{className:`pc-graph__edge`,"data-blocked":e.blocked||void 0,"data-active":e.active||void 0,d:`M${r},${i} C${s},${i} ${s},${o} ${a},${o}`,vectorEffect:`non-scaling-stroke`},`${e.from}-${e.to}`)})]}),e.map(e=>{let t=g.get(e.id);return t?(0,F.jsxs)(`button`,{type:`button`,className:`pc-graph-node`,"data-selected":i===e.id||void 0,"data-related":h.has(e.id)||void 0,"data-blocked":e.blocked||void 0,style:{left:`calc(${t.xPercent}% - ${ym/2}px)`,top:t.y,width:ym,height:bm},onClick:a?()=>a(e.id):void 0,title:`${e.id} · ${e.label}`,"aria-label":`${e.id}: ${e.label}${e.blocked?`, blocked`:``}`,children:[(0,F.jsx)(`span`,{className:`pc-graph-node__dot`,"data-type":e.type,"aria-hidden":`true`}),(0,F.jsx)(`span`,{className:`pc-graph-node__code`,children:e.id}),(0,F.jsx)(`span`,{className:`pc-graph-node__label`,children:e.label}),e.blocked?(0,F.jsx)(J,{name:`circle-slash`,size:11,color:`var(--pc-astate-failed-fg)`}):null]},e.id):null})]})})}function Dm({name:e,segments:t,day:n,days:r,compact:i=!1}){let a=t.reduce((e,t)=>e+t.count,0),o=a||1;return(0,F.jsxs)(`div`,{className:`pc-sprint`,"data-compact":i||void 0,children:[(0,F.jsxs)(`div`,{className:`pc-sprint__head`,children:[(0,F.jsx)(`span`,{className:`pc-sprint__name`,children:e}),r?(0,F.jsxs)(`span`,{className:`pc-sprint__day`,children:[`day `,n,`/`,r]}):null,(0,F.jsxs)(`span`,{className:`pc-sprint__total`,children:[a,` items`]})]}),(0,F.jsx)(`div`,{className:`pc-sprint__bar`,role:`img`,"aria-label":`${e} progress`,children:t.map(e=>(0,F.jsx)(`span`,{className:`pc-sprint__seg`,"data-state":e.state,style:{width:`${e.count/o*100}%`},title:`${e.label??e.state}: ${e.count}`},e.state))}),i?null:(0,F.jsx)(`div`,{className:`pc-sprint__legend`,children:t.map(e=>(0,F.jsxs)(`span`,{className:`pc-sprint__legend-item`,children:[(0,F.jsx)(`span`,{className:`pc-sprint__dot`,"data-state":e.state}),e.label??e.state,` `,(0,F.jsx)(`span`,{className:`pc-sprint__count`,children:e.count})]},e.state))})]})}function Om({children:e,tone:t=`default`}){return(0,F.jsx)(`span`,{className:`pc-prose`,"data-tone":t,children:e})}function km({children:e}){return(0,F.jsx)(`span`,{className:`pc-absent`,children:e??`—`})}function Am({label:e,children:t,mono:n=!1}){return(0,F.jsxs)(`div`,{className:`pc-field`,children:[(0,F.jsx)(`span`,{className:`pc-field__label`,children:e}),(0,F.jsx)(`span`,{className:`pc-field__value`,"data-mono":n||void 0,children:t})]})}function jm({counts:e,total:t,active:n,onPick:r}){return(0,F.jsxs)(`div`,{className:`pc-tally`,children:[(0,F.jsx)(`div`,{className:`pc-tally__cells`,children:rm.map(t=>r?(0,F.jsxs)(`button`,{type:`button`,className:`pc-tally__cell`,"data-active":n===t||void 0,onClick:()=>r(t),children:[(0,F.jsx)(am,{status:t,size:`sm`}),(0,F.jsx)(`span`,{className:`pc-tally__value`,children:e[t]??0})]},t):(0,F.jsxs)(`span`,{className:`pc-tally__cell`,children:[(0,F.jsx)(am,{status:t,size:`sm`}),(0,F.jsx)(`span`,{className:`pc-tally__value`,children:e[t]??0})]},t))}),(0,F.jsxs)(`div`,{className:`pc-tally__total`,children:[(0,F.jsx)(`span`,{className:`pc-tally__label`,children:`total`}),(0,F.jsx)(`span`,{className:`pc-tally__value`,children:t})]})]})}var Mm=(0,v.forwardRef)(function({children:e,className:t,disabled:n=!1,disabledReason:r,id:i,onInvoke:a,pendingLabel:o=`Waiting for durable acceptance`,tabIndex:s,title:c,variant:l=`primary`,"aria-label":u,"aria-controls":d,"aria-expanded":f,"aria-haspopup":p},m){let h=(0,v.useId)(),g=(0,v.useRef)(!1),_=(0,v.useRef)(!0),[y,b]=(0,v.useState)(!1);(0,v.useEffect)(()=>(_.current=!0,()=>{_.current=!1}),[]);let x=y?o:r,S=n||y;async function C(){if(!(S||g.current||!a)){g.current=!0,b(!0);try{await a()}finally{g.current=!1,_.current&&b(!1)}}}let w=(0,F.jsxs)(`button`,{ref:m,type:`button`,id:i,className:`op-governed-button${t?` ${t}`:``}`,"data-variant":l,title:c,tabIndex:s,disabled:S,"aria-label":u,"aria-controls":d,"aria-expanded":f,"aria-haspopup":p,"aria-busy":y||void 0,"aria-describedby":x?h:void 0,onClick:C,children:[y?(0,F.jsx)(`span`,{className:`op-governed-button__spinner`,"aria-hidden":`true`}):null,(0,F.jsx)(`span`,{children:y?o:e})]});return(0,F.jsxs)(`div`,{className:`op-governed-action`,"data-governed-action-state":y?`pending`:`idle`,children:[x?(0,F.jsx)(Xl,{delayDuration:300,children:(0,F.jsxs)(eu,{children:[(0,F.jsx)(nu,{asChild:!0,children:(0,F.jsx)(`span`,{children:w})}),(0,F.jsx)(ou,{children:(0,F.jsx)(cu,{className:`op-governed-tooltip`,sideOffset:8,children:x})})]})}):w,x?(0,F.jsx)(`p`,{className:`op-governed-reason`,id:h,children:x}):null]})});Object.freeze({outstanding:`outstanding`,"in-progress":`in progress`,blocked:`blocked`,done:`done`,addressed:`addressed`});var Nm=Object.freeze({proposed:`pending`,approved:`active`,queued:`pending`,in_progress:`active`,completed:`settled`,blocked:`alert`,rejected:`alert`,deferred:`neutral`,cancelled:`neutral`,succeeded:`settled`,failed:`alert`,partial:`pending`,uncertain:`pending`,created:`neutral`,observing:`active`,advising:`active`,challenging:`active`,synthesizing:`active`,awaiting_review:`pending`,executing:`active`,verifying:`active`,closed:`settled`,current:`active`,available:`neutral`,complete:`settled`,skipped:`neutral`,revisited:`pending`,waiting:`pending`,normal:`active`,quiet:`neutral`,custody:`pending`,divergent:`alert`,corrupt:`alert`,incompatible:`alert`,restored:`settled`,"not-required":`neutral`,verified:`settled`,unverified:`pending`,"insufficient-evidence":`pending`,open:`pending`,accepted:`active`,resolved:`settled`,superseded:`neutral`,supported:`settled`,contradicted:`alert`,unknown:`neutral`,restricted:`neutral`,ready:`active`,"read-only":`neutral`,stale:`pending`,offline:`alert`});function Pm(e){return e.replaceAll(`_`,` `).replaceAll(`-`,` `)}function Fm({state:e,label:t}){return(0,F.jsx)(`span`,{className:`pc-state`,"data-tone":Nm[e]??`neutral`,"data-state":e,children:t??Pm(e)})}function Im({label:e,value:t,tone:n=`default`,icon:r,delta:i,trend:a}){return(0,F.jsxs)(`li`,{className:`pc-metric`,"data-tone":n,children:[(0,F.jsxs)(`span`,{className:`pc-metric__label`,children:[r?(0,F.jsx)(`span`,{className:`pc-metric__icon`,"aria-hidden":`true`,children:r}):null,e]}),(0,F.jsxs)(`span`,{className:`pc-metric__row`,children:[(0,F.jsx)(`span`,{className:`pc-metric__value`,children:t}),i?(0,F.jsx)(`span`,{className:`pc-metric__delta`,"data-trend":a??`up`,children:i}):null]})]})}function Lm({items:e}){return(0,F.jsx)(`dl`,{className:`pc-def-grid`,children:e.map(e=>(0,F.jsxs)(`div`,{className:`pc-def-grid__row`,children:[(0,F.jsx)(`dt`,{className:`pc-def-grid__term`,children:e.term}),(0,F.jsx)(`dd`,{className:`pc-def-grid__desc`,"data-mono":e.mono??!1,children:e.description})]},e.term))})}var Rm={booting:yd,"first-use":Yu,"ready-to-resume":tp,unavailable:Cd,incompatible:Cp,offline:Yf};function Y({state:e,eyebrow:t,title:n,description:r,detail:i,actions:a,headingId:o}){let s=Rm[e],c=e===`offline`||e===`incompatible`,l=(0,v.useId)(),u=o??`dashboard-state-panel-${l}`;return(0,F.jsxs)(`section`,{className:`op-state-panel`,"data-state":e,"aria-labelledby":u,role:c?`alert`:`status`,"aria-live":c?`assertive`:`polite`,children:[(0,F.jsx)(`span`,{className:`op-state-panel__signal`,"aria-hidden":`true`}),(0,F.jsxs)(`div`,{className:`op-state-panel__body`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:t}),(0,F.jsxs)(`div`,{className:`op-state-panel__heading`,children:[(0,F.jsx)(s,{"aria-hidden":`true`}),(0,F.jsx)(`h2`,{id:u,children:n})]}),(0,F.jsx)(`p`,{children:r}),i?(0,F.jsx)(`p`,{className:`op-state-panel__detail`,children:i}):null]}),a?(0,F.jsx)(`div`,{className:`op-state-panel__actions`,children:a}):null]})}var zm=/(?:^|[\s"'`])\/(?:Users|home|opt|var|private|tmp)\//iu;function Bm(e){return e==null||e.length===0?`Not returned`:zm.test(e)?`Redacted`:e}function Vm({embeddedBuildId:e,bootstrap:t}){let n=[[`Embedded dashboard build`,e],[`Served dashboard build`,Bm(t?.ui.buildId)],[`Expected dashboard build`,Bm(t?.ui.expectedBuildId)],[`Asset manifest hash`,Bm(t?.ui.assetManifestHash)],[`OpenPlanr package version`,Bm(t?.server.packageVersion)],[`Bootstrap protocol`,Bm(t?.protocolVersion)],[`Planning graph schema`,Bm(t?.capabilities.planningGraph.schemaVersion)],[`Operate experience protocol`,Bm(t?.capabilities.operateExperience.protocolVersion)],[`Operate commands transport`,Bm(t?.capabilities.operateCommands.transportVersion)],[`Diagnostics capability`,t?.capabilities.diagnostics.available?`available`:`unavailable`],[`Operate commands capability`,t?.capabilities.operateCommands.available?`available`:`unavailable`],[`Compatibility status`,Bm(t?.compatibility.status)],[`Compatibility reasons`,t?.compatibility.reasonCodes.length?t.compatibility.reasonCodes.join(` · `):`None`],[`Project name`,Bm(t?.project.name)],[`Project branch`,Bm(t?.project.branch)],[`Loopback origin`,Bm(t?.origin)]],r=n.map(([e,t])=>`${e}: ${t}`).join(`
|
|
50
|
+
`);return(0,F.jsxs)(`section`,{className:`op-diagnostics__summary`,"aria-labelledby":`dashboard-support-summary-title`,children:[(0,F.jsxs)(`div`,{className:`op-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Support bundle`}),(0,F.jsx)(`h2`,{id:`dashboard-support-summary-title`,children:`Access-safe installation summary`})]}),(0,F.jsx)(`p`,{children:`Only public bootstrap fields appear here. Private paths, bodies, and credentials never do.`})]}),(0,F.jsx)(`dl`,{"aria-label":`Support summary fields`,children:n.map(([e,t])=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:e}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:t})})]},e))}),(0,F.jsx)(`textarea`,{className:`op-diagnostics__bundle`,readOnly:!0,"aria-label":`Support bundle text`,value:r})]})}function Hm(e){return e===`pass`?`Pass`:e===`warn`?`Attention`:e===`pending`?`Checking`:`Fail`}function Um(e){return e.some(e=>e.status===`fail`)?{state:`incompatible`,title:`Dashboard compatibility needs attention`,description:`OpenPlanr certified at least one installation, package, or API problem. Mutation and durable work remain unavailable until remediation.`}:e.some(e=>e.status===`pending`)?{state:`booting`,title:`Checking dashboard compatibility`,description:`Diagnostics remain read-only while bootstrap custody is verified.`}:e.some(e=>e.status===`warn`)?{state:`ready-to-resume`,title:`Dashboard is usable with certified limitations`,description:`Core navigation remains available, but one or more optional capabilities or live-update channels need attention.`}:{state:`ready-to-resume`,title:`Dashboard compatibility is certified`,description:`Installed assets, API versions, and optional dependencies match the served bootstrap contract.`}}function Wm({embeddedBuildId:e,bootstrap:t,bootPhase:n,bootDetail:r,connection:i,onReturn:a}){let o=Tt({embeddedBuildId:e,bootstrap:t,bootPhase:n,bootDetail:r,connection:i}),s=Um(o);return(0,F.jsxs)(`section`,{className:`op-workspace op-diagnostics`,"data-route-kind":`system.diagnostics`,"aria-labelledby":`dashboard-diagnostics-title`,children:[(0,F.jsxs)(`header`,{className:`op-diagnostics__header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Diagnostics`}),(0,F.jsx)(`h1`,{id:`dashboard-diagnostics-title`,children:`Compatibility and installation checks`}),(0,F.jsx)(`p`,{children:`These checks explain why the dashboard can or cannot present durable Planning and Operate state. They never infer authority, repair packages, or expose private installation paths.`})]}),a?(0,F.jsx)(`button`,{type:`button`,className:`op-inline-action`,onClick:a,children:`Return to dashboard`}):null]}),(0,F.jsx)(Y,{state:s.state,eyebrow:`Current posture`,title:s.title,description:s.description}),(0,F.jsxs)(`section`,{className:`op-diagnostics__findings`,"aria-labelledby":`dashboard-diagnostics-findings-title`,children:[(0,F.jsxs)(`div`,{className:`op-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Certified checks`}),(0,F.jsx)(`h2`,{id:`dashboard-diagnostics-findings-title`,children:`Boot through optional dependencies`})]}),(0,F.jsx)(`p`,{children:`Each row is derived only from the public bootstrap envelope and current connection state.`})]}),(0,F.jsx)(`ol`,{className:`op-diagnostics__list`,children:o.map(e=>(0,F.jsx)(`li`,{"data-diagnostic":e.category,"data-status":e.status,children:(0,F.jsxs)(`article`,{children:[(0,F.jsxs)(`header`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:e.category.replaceAll(`-`,` `)}),(0,F.jsx)(`h3`,{children:e.title}),(0,F.jsx)(`span`,{className:`op-diagnostics__status`,children:Hm(e.status)})]}),(0,F.jsx)(`p`,{children:e.detail}),(0,F.jsxs)(`p`,{className:`op-diagnostics__remediation`,children:[(0,F.jsx)(`strong`,{children:`Next safe step:`}),` `,e.remediation]})]})},e.category))})]}),(0,F.jsx)(Vm,{embeddedBuildId:e,bootstrap:t}),(0,F.jsx)(`p`,{className:`op-authority-note`,children:`Diagnostics do not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs.`})]})}var Gm=Object.freeze({kind:`local-operate-review-index`,schemaVersion:`1.0.0`,readOnly:!0,pagination:Object.freeze({page:1,pageSize:12,pageCount:1,total:0}),items:Object.freeze([])});function Km(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function qm(e,t){return t.every(t=>typeof e[t]==`string`)}function Jm(e){if(!Km(e)||!Km(e.counts))return!1;let t=e.counts;return qm(e,[`cycleId`,`title`,`summary`,`signal`,`updatedAt`,`href`])&&[`decisions`,`actions`,`gaps`,`issues`].every(e=>Number.isSafeInteger(t[e]))}function Ym(e){if(!Km(e)||e.kind!==`local-operate-review-index`||e.schemaVersion!==`1.0.0`||e.readOnly!==!0||!Km(e.pagination)||!Array.isArray(e.items)||!e.items.every(Jm))throw Error(`OpenPlanr returned an invalid local review index.`);if(![`page`,`pageSize`,`pageCount`,`total`].every(t=>Number.isSafeInteger(e.pagination[t])))throw Error(`OpenPlanr returned invalid local review pagination.`);return e}function Xm(e){let t=Km(e)&&Km(e.item)?e.item:null,n=t!==null&&typeof t.markdown==`string`&&Km(t.scope)&&Km(t.recovery)&&[`decisions`,`actions`,`gaps`,`risks`,`issues`,`lenses`,`evidence`].every(e=>Array.isArray(t[e]));if(!Km(e)||e.kind!==`local-operate-review`||e.schemaVersion!==`1.0.0`||e.readOnly!==!0||!t||!n||!Jm(t))throw Error(`OpenPlanr returned an invalid local review.`);return e}async function Zm(e,t){let n=await fetch(e,{headers:{accept:`application/json`},signal:t});if(!n.ok)throw Error(`OpenPlanr could not read this report (${n.status}).`);return n.json()}function Qm(e,t){let[n,r]=(0,v.useState)({status:`loading`,data:null,error:null});return(0,v.useEffect)(()=>{let n=new AbortController,i=!0,a=async()=>{try{let a=new URL(`/api/operate/local-reviews`,e);a.searchParams.set(`page`,String(t)),a.searchParams.set(`pageSize`,`12`);let o=Ym(await Zm(a,n.signal));i&&r({status:`ready`,data:o,error:null})}catch(e){i&&!n.signal.aborted&&r(t=>({status:`failed`,data:t.data,error:e instanceof Error?e.message:`Review index unavailable.`}))}};a();let o=window.setInterval(()=>void a(),2e3);return()=>{i=!1,n.abort(),window.clearInterval(o)}},[e,t]),n}function $m(e,t){let[n,r]=(0,v.useState)({status:`loading`,data:null,error:null});return(0,v.useEffect)(()=>{if(!t){r({status:`loading`,data:null,error:null});return}let n=new AbortController,i=!0,a=async()=>{try{let a=Xm(await Zm(new URL(`/api/operate/local-reviews/${encodeURIComponent(t)}`,e),n.signal));i&&r({status:`ready`,data:a,error:null})}catch(e){i&&!n.signal.aborted&&r(t=>({status:`failed`,data:t.data,error:e instanceof Error?e.message:`Review unavailable.`}))}};a();let o=window.setInterval(()=>void a(),2e3);return()=>{i=!1,n.abort(),window.clearInterval(o)}},[t,e]),n}function eh(e){let t=new Date(e);return Number.isNaN(t.valueOf())?`Updated recently`:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}).format(t)}function th(e,t){let n=new Map;return e.map(e=>{let r=t(e),i=(n.get(r)??0)+1;return n.set(r,i),Object.freeze({key:`${r}:${i}`,value:e})})}function nh({text:e}){let t=th(e.split(/(\*\*[^*]+\*\*|`[^`]+`)/gu),e=>e);return(0,F.jsx)(F.Fragment,{children:t.map(({key:e,value:t})=>t.startsWith(`**`)&&t.endsWith(`**`)?(0,F.jsx)(`strong`,{children:t.slice(2,-2)},e):t.startsWith("`")&&t.endsWith("`")?(0,F.jsx)(`code`,{children:t.slice(1,-1)},e):(0,F.jsx)(v.Fragment,{children:t},e))})}function rh(e){let t=e.replace(/\r\n?/gu,`
|
|
51
|
+
`).split(`
|
|
52
|
+
`),n=[],r=0;for(;r<t.length;){let e=t[r].trim();if(!e){r+=1;continue}let i=/^(#{1,3})\s+(.+)$/u.exec(e);if(i){n.push({kind:`heading`,depth:i[1].length,text:i[2]}),r+=1;continue}if(e.startsWith(`|`)&&t[r+1]?.trim().match(/^\|?\s*:?-{3,}/u)){let i=[],a=e=>e.replace(/^\||\|$/gu,``).split(`|`).map(e=>e.trim());for(i.push(a(e)),r+=2;r<t.length&&t[r].trim().startsWith(`|`);)i.push(a(t[r].trim())),r+=1;n.push({kind:`table`,rows:i});continue}if(/^[-*]\s+/u.test(e)){let e=[];for(;r<t.length&&/^[-*]\s+/u.test(t[r].trim());)e.push(t[r].trim().replace(/^[-*]\s+/u,``)),r+=1;n.push({kind:`list`,items:e});continue}if(e.startsWith(`>`)){let e=[];for(;r<t.length&&t[r].trim().startsWith(`>`);)e.push(t[r].trim().replace(/^>\s?/u,``)),r+=1;n.push({kind:`quote`,text:e.join(` `)});continue}let a=[e];for(r+=1;r<t.length&&t[r].trim()&&!/^(#{1,3})\s+/u.test(t[r].trim())&&!/^[-*]\s+/u.test(t[r].trim())&&!t[r].trim().startsWith(`|`)&&!t[r].trim().startsWith(`>`);)a.push(t[r].trim()),r+=1;n.push({kind:`paragraph`,text:a.join(` `)})}return n}function ih({markdown:e}){let t=(0,v.useMemo)(()=>th(rh(e),e=>JSON.stringify(e)),[e]);return(0,F.jsx)(`article`,{className:`pc-local-review__report`,children:t.map(({key:e,value:t})=>{if(t.kind===`heading`)return t.depth===1?null:t.depth===2?(0,F.jsx)(`h2`,{children:(0,F.jsx)(nh,{text:t.text})},e):(0,F.jsx)(`h3`,{children:(0,F.jsx)(nh,{text:t.text})},e);if(t.kind===`paragraph`)return(0,F.jsx)(`p`,{children:(0,F.jsx)(nh,{text:t.text})},e);if(t.kind===`quote`)return(0,F.jsx)(`blockquote`,{children:(0,F.jsx)(nh,{text:t.text})},e);if(t.kind===`list`)return(0,F.jsx)(`ul`,{children:t.items.map(e=>(0,F.jsx)(`li`,{children:(0,F.jsx)(nh,{text:e})},e))},e);let[n,...r]=t.rows;return(0,F.jsx)(`section`,{className:`pc-local-review__table-wrap`,"aria-label":`Scrollable report table`,children:(0,F.jsxs)(`table`,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsx)(`tr`,{children:th(n,e=>e).map(({key:e,value:t})=>(0,F.jsx)(`th`,{children:(0,F.jsx)(nh,{text:t})},e))})}),(0,F.jsx)(`tbody`,{children:th(r,e=>e.join(`|`)).map(({key:e,value:t})=>(0,F.jsx)(`tr`,{children:th(t,e=>e).map(({key:e,value:t})=>(0,F.jsx)(`td`,{children:(0,F.jsx)(nh,{text:t})},e))},e))})]})},e)})})}function ah(e){return e.toUpperCase()===`P0`?`danger`:e.toUpperCase()===`P1`?`warn`:e.toUpperCase()===`P2`?`info`:`neutral`}function oh({counts:e}){return(0,F.jsxs)(`span`,{className:`pc-local-review__counts`,children:[(0,F.jsxs)(`span`,{children:[e.decisions,` decisions`]}),(0,F.jsxs)(`span`,{children:[e.actions,` actions`]}),(0,F.jsxs)(`span`,{children:[e.gaps,` gaps`]}),(0,F.jsxs)(`span`,{children:[e.issues,` issues`]})]})}function sh({item:e}){let t=[[`Decision queue`,e.counts.decisions,`inbox`],[`Proposed actions`,e.counts.actions,`git-pull-request`],[`Evidence gaps`,e.counts.gaps,`circle-alert`],[`Lenses reported`,e.lenses.filter(e=>e.present).length,`layers`]];return(0,F.jsx)(`section`,{className:`pc-local-review__metrics`,"aria-label":`Cycle summary`,children:t.map(([e,t,n])=>(0,F.jsxs)(`div`,{className:`pc-local-review__metric`,children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(J,{name:n,size:14}),e]}),(0,F.jsx)(`strong`,{children:t})]},e))})}function ch({item:e}){let t=e.decisions[0];return(0,F.jsxs)(`section`,{className:`pc-local-review__signal`,"aria-labelledby":`local-signal-title`,children:[(0,F.jsxs)(`div`,{className:`pc-local-review__signal-copy`,children:[(0,F.jsxs)(`span`,{className:`pc-local-review__kicker`,children:[(0,F.jsx)(`span`,{className:`pc-local-review__signal-dot`}),`Board signal · `,e.signal]}),(0,F.jsx)(`h2`,{id:`local-signal-title`,children:t?.title??`Review the latest operating cycle`}),(0,F.jsx)(`p`,{children:t?.whyNow||e.summary})]}),(0,F.jsxs)(`div`,{className:`pc-local-review__next-step`,children:[(0,F.jsx)(`span`,{children:`First verified move`}),(0,F.jsx)(`strong`,{children:t?.firstStep||`Open the cycle record and assign its next decision.`}),(0,F.jsxs)(`a`,{href:`#/operate/inbox`,children:[`Open decision inbox `,(0,F.jsx)(J,{name:`arrow-right`,size:13})]})]})]})}function lh({decision:e,compact:t=!1}){return(0,F.jsxs)(`article`,{className:`pc-local-review__decision`,"data-priority":e.priority.toLowerCase(),children:[(0,F.jsxs)(`div`,{className:`pc-local-review__decision-head`,children:[(0,F.jsx)(`span`,{className:`pc-local-review__item-id`,children:e.id}),(0,F.jsx)(Rp,{tone:ah(e.priority),variant:`outline`,mono:!0,children:e.priority}),(0,F.jsx)(`h3`,{children:e.title})]}),(0,F.jsx)(`p`,{children:e.recommendation||e.whyNow}),(0,F.jsxs)(`div`,{className:`pc-local-review__decision-meta`,children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`b`,{children:`Owner`}),e.owner]}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`b`,{children:`Depends on`}),e.dependencies]})]}),t?null:(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`Rationale and verification`}),(0,F.jsxs)(`dl`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Why now`}),(0,F.jsx)(`dd`,{children:e.whyNow||`Not recorded`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`First step`}),(0,F.jsx)(`dd`,{children:e.firstStep||`Not recorded`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Expected result`}),(0,F.jsx)(`dd`,{children:e.expectedResult||`Not recorded`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Check`}),(0,F.jsx)(`dd`,{children:e.check||`Not recorded`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Confidence`}),(0,F.jsx)(`dd`,{children:e.confidence})]}),e.dissent?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Dissent`}),(0,F.jsx)(`dd`,{children:e.dissent})]}):null]})]})]})}function uh({decisions:e,limit:t}){let n=typeof t==`number`?e.slice(0,t):e;return n.length===0?(0,F.jsx)(Bp,{icon:`inbox`,title:`No decisions recorded`,description:`This cycle did not produce a decision queue.`}):(0,F.jsx)(`div`,{className:`pc-local-review__decision-grid`,children:n.map(e=>(0,F.jsx)(lh,{decision:e,compact:typeof t==`number`},e.id))})}function dh({actions:e,limit:t}){let n=typeof t==`number`?e.slice(0,t):e;return n.length===0?(0,F.jsx)(Bp,{icon:`git-pull-request`,title:`No actions recorded`,description:`No action rows were found in this cycle.`}):(0,F.jsx)(`div`,{className:`pc-local-review__action-list`,children:n.map(e=>(0,F.jsxs)(`a`,{className:`pc-local-review__action`,href:`#/operate/actions/${encodeURIComponent(e.id)}`,children:[(0,F.jsx)(`span`,{className:`pc-local-review__item-id`,children:e.id}),(0,F.jsxs)(`span`,{className:`pc-local-review__action-copy`,children:[(0,F.jsx)(`strong`,{children:e.action}),(0,F.jsx)(`span`,{children:e.firstStep}),(0,F.jsx)(`small`,{children:e.owner})]}),(0,F.jsxs)(`span`,{className:`pc-local-review__action-status`,children:[(0,F.jsx)(Rp,{tone:ah(e.priority),variant:`outline`,mono:!0,children:e.priority}),(0,F.jsx)(Rp,{tone:e.state===`needs-owner`?`warn`:`neutral`,children:e.state===`needs-owner`?`Needs owner`:`Proposed`})]}),(0,F.jsx)(J,{name:`chevron-right`,size:14})]},e.id))})}function fh({lenses:e}){return(0,F.jsx)(`div`,{className:`pc-local-review__lenses`,children:e.map(e=>(0,F.jsxs)(`article`,{className:`pc-local-review__lens`,"data-present":e.present||void 0,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`pc-local-review__lens-mark`,children:e.name.slice(0,2)}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`strong`,{children:e.name}),(0,F.jsxs)(`small`,{children:[e.findings,` `,e.name===`Challenger`?`exceptions`:e.name===`Chair`?`decisions`:`findings`]})]})]}),(0,F.jsx)(Rp,{tone:e.signal.includes(`insufficient`)||!e.present?`warn`:e.name===`Challenger`?`info`:`success`,children:e.signal}),e.informed?(0,F.jsx)(`p`,{children:e.informed}):null]},e.name))})}function ph({items:e,icon:t=`circle-alert`}){return e.length===0?(0,F.jsx)(Bp,{icon:t,title:`Nothing recorded`,description:`No items were found in this section.`}):(0,F.jsx)(`div`,{className:`pc-local-review__named-list`,children:e.map(e=>(0,F.jsxs)(`article`,{children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(J,{name:t,size:14}),e.id]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{children:e.title}),e.detail?(0,F.jsx)(`p`,{children:e.detail}):null]})]},e.id))})}function mh({evidence:e}){let[t,n]=(0,v.useState)(1),r=Math.max(1,Math.ceil(e.length/20)),i=Math.min(t,r),a=e.slice((i-1)*20,i*20);return e.length===0?(0,F.jsx)(Bp,{icon:`file-check`,title:`No source references extracted`,description:`The board report did not include path-addressable evidence.`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`pc-local-review__evidence-list`,children:a.map(e=>(0,F.jsxs)(`article`,{children:[(0,F.jsx)(`span`,{className:`pc-local-review__item-id`,children:e.id}),(0,F.jsx)(`code`,{children:e.reference}),(0,F.jsx)(`span`,{children:e.kind}),(0,F.jsx)(Rp,{tone:`success`,icon:`check`,children:e.freshness})]},e.id))}),r>1?(0,F.jsxs)(`nav`,{className:`pc-local-review__pagination`,"aria-label":`Evidence pages`,children:[(0,F.jsx)(Pp,{size:`sm`,icon:`chevron-left`,disabled:i===1,onClick:()=>n(i-1),children:`Previous`}),(0,F.jsxs)(`span`,{children:[e.length,` references · page `,i,` of `,r]}),(0,F.jsx)(Pp,{size:`sm`,iconAfter:`chevron-right`,disabled:i===r,onClick:()=>n(i+1),children:`Next`})]}):null]})}function hh({items:e,history:t=!1}){return(0,F.jsx)(`div`,{className:`pc-local-review__list`,"data-history":t||void 0,children:e.map((n,r)=>{let i=e[r+1];return(0,F.jsxs)(`a`,{className:`pc-local-review__item`,href:n.href,children:[(0,F.jsx)(`span`,{className:`pc-local-review__item-glyph`,children:(0,F.jsx)(J,{name:t?`history`:`calendar-days`,size:15})}),(0,F.jsxs)(`span`,{className:`pc-local-review__item-copy`,children:[(0,F.jsxs)(`span`,{className:`pc-local-review__item-title`,children:[(0,F.jsx)(`strong`,{children:n.title}),(0,F.jsx)(Rp,{tone:n.signal.includes(`act`)?`warn`:`info`,children:n.signal})]}),(0,F.jsx)(`span`,{children:n.summary}),(0,F.jsx)(oh,{counts:n.counts}),t&&i?(0,F.jsxs)(`small`,{children:[n.counts.actions-i.counts.actions>=0?`+`:``,n.counts.actions-i.counts.actions,` actions ·`,` `,n.counts.gaps-i.counts.gaps>=0?`+`:``,n.counts.gaps-i.counts.gaps,` gaps from prior cycle`]}):null]}),(0,F.jsx)(`span`,{className:`pc-local-review__item-time`,children:eh(n.updatedAt)}),(0,F.jsx)(J,{name:`chevron-right`,size:14})]},n.cycleId)})})}function gh({index:e,onPage:t}){return e.pagination.pageCount<=1?null:(0,F.jsxs)(`nav`,{className:`pc-local-review__pagination`,"aria-label":`Operating review pages`,children:[(0,F.jsx)(Pp,{size:`sm`,icon:`chevron-left`,disabled:e.pagination.page===1,onClick:()=>t(e.pagination.page-1),children:`Previous`}),(0,F.jsxs)(`span`,{children:[`Page `,e.pagination.page,` of `,e.pagination.pageCount]}),(0,F.jsx)(Pp,{size:`sm`,iconAfter:`chevron-right`,disabled:e.pagination.page===e.pagination.pageCount,onClick:()=>t(e.pagination.page+1),children:`Next`})]})}function _h({title:e,description:t,action:n,children:r}){return(0,F.jsxs)(`section`,{className:`pc-local-review__section`,children:[(0,F.jsxs)(`header`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{children:e}),t?(0,F.jsx)(`p`,{children:t}):null]}),n]}),r]})}function vh({item:e}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ch,{item:e}),(0,F.jsx)(sh,{item:e}),(0,F.jsxs)(`div`,{className:`pc-local-review__split`,children:[(0,F.jsx)(_h,{title:`Priority decisions`,description:`Recommendations waiting for owner disposition.`,action:(0,F.jsx)(`a`,{href:`#/operate/inbox`,children:`View all`}),children:(0,F.jsx)(uh,{decisions:e.decisions,limit:2})}),(0,F.jsx)(_h,{title:`Lens coverage`,description:`Independent perspectives and where they converged.`,children:(0,F.jsx)(fh,{lenses:e.lenses})})]}),(0,F.jsx)(_h,{title:`Next actions`,description:`Concrete first steps extracted from the Chair action plan.`,action:(0,F.jsx)(`a`,{href:`#/operate/actions`,children:`Open register`}),children:(0,F.jsx)(dh,{actions:e.actions,limit:4})}),(0,F.jsx)(_h,{title:`Uncertainty to resolve`,description:`Evidence gaps that can change the decision order.`,action:(0,F.jsx)(`a`,{href:`#/operate/evidence`,children:`Inspect evidence`}),children:(0,F.jsx)(ph,{items:e.gaps.slice(0,3)})})]})}function yh({item:e}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)($p,{tone:`info`,title:`Recommendations require human disposition`,children:`This local cycle can inform a choice, but it cannot approve work or run commands. Assign and decide through the governed Operate gateway when available.`}),(0,F.jsxs)(`div`,{className:`pc-local-review__inbox-summary`,children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`b`,{children:e.decisions.length}),` decisions waiting`]}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`b`,{children:e.actions.filter(e=>e.state===`needs-owner`).length}),` ownership gaps`]}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`b`,{children:e.gaps.length}),` evidence gaps`]})]}),(0,F.jsx)(uh,{decisions:e.decisions}),(0,F.jsx)(_h,{title:`Decision-changing gaps`,description:`Resolve these before confidence is treated as durable.`,children:(0,F.jsx)(ph,{items:e.gaps})})]})}function bh({item:e,actionId:t}){let n=e.actions.find(e=>e.id===t);return n?(0,F.jsx)(zp,{padding:0,children:(0,F.jsxs)(`article`,{className:`pc-local-review__action-detail`,children:[(0,F.jsxs)(`header`,{children:[(0,F.jsx)(`span`,{className:`pc-local-review__item-id`,children:n.id}),(0,F.jsx)(Rp,{tone:ah(n.priority),variant:`outline`,children:n.priority}),(0,F.jsx)(Rp,{tone:n.state===`needs-owner`?`warn`:`neutral`,children:n.state===`needs-owner`?`Needs owner`:`Proposed`})]}),(0,F.jsx)(`h2`,{children:n.action}),(0,F.jsxs)(`dl`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Suggested owner`}),(0,F.jsx)(`dd`,{children:n.owner})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`First step`}),(0,F.jsx)(`dd`,{children:n.firstStep})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Success measure`}),(0,F.jsx)(`dd`,{children:n.successMeasure})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Verification`}),(0,F.jsx)(`dd`,{children:n.check})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Dependencies`}),(0,F.jsx)(`dd`,{children:n.dependencies})]})]}),(0,F.jsx)($p,{tone:`info`,title:`Read-only proposal`,children:`Execution state begins only after this proposal is accepted through an actor-bound Operate session.`})]})}):(0,F.jsxs)($p,{tone:`warn`,title:`Action not found`,children:[`This cycle does not contain `,t,`.`]})}function xh({item:e}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)($p,{tone:`info`,title:`Expected outcomes, awaiting observed evidence`,children:`The local review defines success and checks. It does not claim these outcomes occurred.`}),(0,F.jsx)(`div`,{className:`pc-local-review__outcomes`,children:e.decisions.map(e=>(0,F.jsxs)(`article`,{children:[(0,F.jsxs)(`header`,{children:[(0,F.jsx)(`span`,{className:`pc-local-review__item-id`,children:e.id}),(0,F.jsx)(Rp,{tone:`neutral`,children:`Awaiting evidence`})]}),(0,F.jsx)(`h3`,{children:e.expectedResult||e.title}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{children:`Verification`}),(0,F.jsx)(`p`,{children:e.check||`No check recorded.`})]})]},e.id))})]})}function Sh({item:e}){let{recovery:t}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`section`,{className:`pc-local-review__integrity`,"data-complete":t.complete||void 0,children:[(0,F.jsx)(`span`,{children:(0,F.jsx)(J,{name:t.complete?`shield`:`triangle-alert`,size:20})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`small`,{children:`Local cycle integrity`}),(0,F.jsx)(`h2`,{children:t.complete?`Complete review bundle detected`:`Review bundle is incomplete`}),(0,F.jsxs)(`p`,{children:[t.presentFiles.length,` readable files · `,Math.ceil(t.totalBytes/1024),` `,`KB · `,t.custody]})]}),(0,F.jsx)(Rp,{tone:t.complete?`success`:`warn`,children:t.complete?`Complete`:`Attention`})]}),(0,F.jsxs)(`div`,{className:`pc-local-review__recovery-grid`,children:[(0,F.jsx)(_h,{title:`Present records`,children:(0,F.jsx)(`div`,{className:`pc-local-review__file-grid`,children:t.presentFiles.map(e=>(0,F.jsxs)(`span`,{children:[(0,F.jsx)(J,{name:`file-check`,size:13}),e]},e))})}),(0,F.jsx)(_h,{title:`Missing records`,children:(0,F.jsx)(`div`,{className:`pc-local-review__file-grid`,children:t.missingFiles.length?t.missingFiles.map(e=>(0,F.jsxs)(`span`,{children:[(0,F.jsx)(J,{name:`circle-alert`,size:13}),e]},e)):(0,F.jsx)(`p`,{className:`pc-local-review__muted`,children:`No required review records are missing.`})})})]}),(0,F.jsx)(_h,{title:`Recorded issues`,description:`Cycle limitations and tooling defects preserved with the report.`,children:(0,F.jsx)(ph,{items:e.issues,icon:`triangle-alert`})})]})}function Ch({item:e}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`nav`,{className:`pc-local-review__cycle-nav`,"aria-label":`Cycle sections`,children:[(0,F.jsxs)(`a`,{href:`#/operate/inbox`,children:[(0,F.jsx)(J,{name:`inbox`,size:13}),`Decisions`]}),(0,F.jsxs)(`a`,{href:`#/operate/actions`,children:[(0,F.jsx)(J,{name:`git-pull-request`,size:13}),`Actions`]}),(0,F.jsxs)(`a`,{href:`#/operate/evidence`,children:[(0,F.jsx)(J,{name:`file-check`,size:13}),`Evidence`]}),(0,F.jsxs)(`a`,{href:`#/operate/outcomes`,children:[(0,F.jsx)(J,{name:`flag`,size:13}),`Outcomes`]})]}),(0,F.jsx)(ch,{item:e}),(0,F.jsx)(sh,{item:e}),(0,F.jsx)(_h,{title:`Review coverage`,description:`What each lens contributed to the Chair synthesis.`,children:(0,F.jsx)(fh,{lenses:e.lenses})}),(0,F.jsx)(_h,{title:`Decision record`,children:(0,F.jsx)(uh,{decisions:e.decisions})}),(0,F.jsx)(_h,{title:`Action plan`,children:(0,F.jsx)(dh,{actions:e.actions})}),(0,F.jsx)(_h,{title:`Risks and dissent`,description:`Challenges retained rather than flattened into consensus.`,children:(0,F.jsx)(ph,{items:e.risks,icon:`circle-alert`})}),(0,F.jsxs)(`details`,{className:`pc-local-review__full-report`,children:[(0,F.jsxs)(`summary`,{children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(J,{name:`scroll-text`,size:15}),`Full board report`]}),(0,F.jsx)(`span`,{children:`Audit record`})]}),(0,F.jsx)(ih,{markdown:e.markdown})]})]})}function wh({item:e,evidenceId:t}){let n=e.evidence.find(e=>e.id===t);return n?(0,F.jsx)(zp,{children:(0,F.jsxs)(`article`,{className:`pc-local-review__evidence-detail`,children:[(0,F.jsx)(Rp,{tone:`success`,icon:`check`,children:n.freshness}),(0,F.jsxs)(`h2`,{children:[n.id,` · `,n.kind]}),(0,F.jsx)(`code`,{children:n.reference}),(0,F.jsx)(`p`,{children:`This source reference was captured by the completed local cycle. OpenPlanr has not re-read the target to claim current freshness.`})]})}):(0,F.jsxs)($p,{tone:`warn`,title:`Evidence not found`,children:[`This cycle does not contain `,t,`.`]})}function Th({route:e,item:t}){switch(e.kind){case`operate.today`:return(0,F.jsx)(vh,{item:t});case`operate.inbox`:return(0,F.jsx)(yh,{item:t});case`operate.actions`:return(0,F.jsx)(dh,{actions:t.actions});case`operate.action`:return(0,F.jsx)(bh,{item:t,actionId:e.subjectId});case`operate.evidence`:return(0,F.jsx)(mh,{evidence:t.evidence});case`operate.evidence-item`:return(0,F.jsx)(wh,{item:t,evidenceId:e.subjectId});case`operate.outcomes`:return(0,F.jsx)(xh,{item:t});case`operate.recovery`:return(0,F.jsx)(Sh,{item:t});case`operate.cycle`:case`operate.review`:return(0,F.jsx)(Ch,{item:t});default:return(0,F.jsx)(vh,{item:t})}}function Eh(){return(0,F.jsx)(zp,{children:(0,F.jsx)(Bp,{icon:`calendar-days`,title:`No completed local reviews yet`,description:`Complete an Operate review in your agent host. This read-only console refreshes when a board report is completed.`})})}var Dh={"operate.today":[`Operate today`,`The current signal, priority choices, action load, and independent lens coverage.`],"operate.inbox":[`Decision inbox`,`Recommendations, ownership gaps, and evidence questions waiting for attention.`],"operate.actions":[`Action register`,`Proposed work with owners, first steps, success measures, and verification.`],"operate.cycles":[`Operating cycles`,`Completed local reviews, grouped as durable read-only records.`],"operate.evidence":[`Evidence register`,`Source locations captured by the current cycle, with explicit freshness.`],"operate.outcomes":[`Outcome tracking`,`Expected effects and verification checks, separated from observed results.`],"operate.history":[`Operating history`,`Cycle chronology and change from the prior review.`],"operate.recovery":[`Cycle integrity`,`Readable records, missing inputs, custody, and known review issues.`],"operate.action":[`Action detail`,`The exact local proposal, owner, first step, measure, and check.`],"operate.evidence-item":[`Evidence detail`,`The exact source reference and its freshness boundary.`]};function Oh({route:e,origin:t}){let[n,r]=(0,v.useState)(1),i=Qm(t,n),a=i.data??Gm,o=e.kind===`operate.cycles`||e.kind===`operate.history`,s=e.kind===`operate.cycle`||e.kind===`operate.review`?e.kind===`operate.review`?e.cycleId:e.subjectId:o?null:a.items[0]?.cycleId??null,c=$m(t,s),l=c.data?.item??null,u=Dh[e.kind],d=e.kind===`operate.cycle`||e.kind===`operate.review`?l?.title??(e.kind===`operate.review`?e.cycleId:e.subjectId):u?.[0]??`Operate`,f=e.kind===`operate.cycle`||e.kind===`operate.review`?`Structured decisions, action plan, lens coverage, dissent, and the full audit record.`:u?.[1]??`Completed local operating review.`;return(0,F.jsxs)(`div`,{className:`pc-shell__scroll pc-local-review`,"data-route-kind":e.kind,children:[(0,F.jsx)(Jp,{eyebrow:`planr-operate · local`,title:d,count:o?a.pagination.total:void 0,description:f,actions:(0,F.jsx)(Rp,{tone:`info`,variant:`outline`,icon:`lock`,children:`Read-only`})}),i.status===`failed`?(0,F.jsx)($p,{tone:`warn`,title:`Local reviews could not refresh`,children:i.error}):null,o?i.status===`loading`&&!i.data?(0,F.jsx)(Gp,{count:3}):a.items.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hh,{items:a.items,history:e.kind===`operate.history`}),(0,F.jsx)(gh,{index:a,onPage:r})]}):(0,F.jsx)(Eh,{}):!s&&i.status===`loading`?(0,F.jsx)(Gp,{count:2}):s?c.status===`loading`&&!l?(0,F.jsx)(Gp,{count:3}):l?(0,F.jsxs)(F.Fragment,{children:[c.status===`failed`?(0,F.jsx)($p,{tone:`warn`,title:`Showing the last readable review`,children:c.error}):null,(0,F.jsx)(Th,{route:e,item:l})]}):(0,F.jsx)($p,{tone:`warn`,title:`This local review is unavailable`,children:c.error??`The report was not found.`}):(0,F.jsx)(Eh,{}),(0,F.jsxs)(`div`,{className:`pc-local-review__footnote`,children:[(0,F.jsx)(J,{name:`lock`,size:12}),` Local projections are review records. Approval and execution require an actor-bound Operate session.`]})]})}var kh=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`}),Ah=Object.freeze({"read-only":`This plan is available to review, but changes are not available here.`,stale:`This plan may be out of date.`,partial:`Some planning information is unavailable.`,blocked:`Planning information is temporarily unavailable.`,offline:`You’re viewing the last available Planning information. Reconnect before checking again.`}),jh=Object.freeze([`#/overview`,`#/graph`,`#/board`,`#/list`,`#/sprints`,`#/activity`,`#/search`]);function Mh(e){try{let t=z(e),n=jh.includes(t.route),r=t.subjectId!==null&&(t.route===`#/detail/${encodeURIComponent(t.subjectId)}`||t.route===`#/plan/specs/${encodeURIComponent(t.subjectId)}`);return t.productArea===`planning`&&(n||r)&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Nh(e){if(typeof e!=`object`||!e||!Object.isFrozen(e))return null;let t=Reflect.get(e,`kind`),n=Reflect.get(e,`graph`);if(t!==`planning-graph-snapshot`||typeof n!=`object`||!n)return null;let r=Reflect.get(n,`nodes`),i=Reflect.get(n,`edges`);return!Array.isArray(r)||!Array.isArray(i)?null:e}function Ph(e){if(!V(e)||e.data===null)return Object.freeze([]);let t=Nh(e.data);return Object.freeze(t?[...t.graph.nodes]:[])}function Fh(e,t){let n=Mh(t);if(!n||!V(e)||e.binding===null||e.data===null||!B(e.binding,n))return null;let r=e.kind===`refreshing`?`ready`:kh[e.kind],i=Nh(e.data);return r===void 0||i===null?null:Object.freeze({envelope:i,graph:i.graph,presentation:r,binding:e.binding,readOnly:!0,mutationEnabled:!1})}function Ih({presentation:e}){return e===`ready`?null:(0,F.jsxs)(`p`,{className:`op-planning-notice`,role:`status`,children:[Ah[e],` `,(0,F.jsx)(`a`,{className:`op-inline-action`,href:`#/overview`,children:`Open Planning overview`})]})}function Lh({routeKind:e,title:t}){return(0,F.jsx)(`div`,{className:`op-workspace op-planning`,"data-route-kind":e,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Planning unavailable`,title:t,description:`We could not verify the Planning information for this view, so it is not shown.`,actions:(0,F.jsx)(`a`,{className:`op-inline-action`,href:`#/overview`,children:`Return to Planning overview`})})})}var Rh=Object.freeze([`route`,`planning`,`operate`]),zh=Object.freeze({route:`Go to`,planning:`Planning work`,operate:`Operate items`}),Bh=Object.freeze({route:`chevron-right`,planning:`corner-down-right`,operate:`gauge`});function Vh(e){let t=e.replace(/([a-z0-9])([A-Z])/gu,`$1 $2`).replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Hh(e){let t={route:[],planning:[],operate:[]};for(let n of e)t[n.source].push(n);return Object.freeze({route:Object.freeze(t.route),planning:Object.freeze(t.planning),operate:Object.freeze(t.operate)})}function Uh({hits:e,unsupported:t=Object.freeze([]),activeHref:n,listId:r,onSelect:i}){let a=Hh(e),o=e.length>0,s=t.length>0;return!o&&!s?(0,F.jsx)(`p`,{className:`pc-palette__empty`,role:`status`,children:`No matches. Try a view name or an item id like US-001.`}):(0,F.jsxs)(`div`,{className:`pc-palette__results`,children:[Rh.map(e=>{let t=a[e];return t.length===0?null:(0,F.jsxs)(`section`,{className:`pc-palette__group`,"aria-labelledby":`${r}-${e}-heading`,children:[(0,F.jsx)(`h2`,{id:`${r}-${e}-heading`,className:`pc-palette__group-title`,children:zh[e]}),(0,F.jsx)(`ol`,{className:`pc-palette__list`,"aria-label":zh[e],children:t.map((t,r)=>{let a=t.href===n;return(0,F.jsx)(`li`,{children:(0,F.jsxs)(`button`,{type:`button`,className:`pc-palette__row`,"data-active":a?`true`:`false`,"aria-current":a?`true`:void 0,onClick:()=>i(t),children:[(0,F.jsx)(J,{name:Bh[e],size:14}),(0,F.jsx)(`span`,{className:`pc-palette__row-title`,children:t.title}),(0,F.jsx)(`span`,{className:`pc-palette__row-hint`,children:Vh(t.kind)})]})},`${t.id}:${r}`)})})]},e)}),s?(0,F.jsxs)(`section`,{className:`pc-palette__group`,"aria-labelledby":`${r}-unsupported-heading`,children:[(0,F.jsx)(`h2`,{id:`${r}-unsupported-heading`,className:`pc-palette__group-title`,children:`Unavailable destinations`}),(0,F.jsx)(`ol`,{className:`pc-palette__list`,"aria-label":`Unavailable destinations`,children:t.map((e,t)=>(0,F.jsx)(`li`,{children:(0,F.jsxs)(`div`,{className:`pc-palette__row`,"aria-disabled":`true`,children:[(0,F.jsx)(J,{name:`circle-slash`,size:14}),(0,F.jsx)(`span`,{className:`pc-palette__row-title`,children:e.title}),(0,F.jsxs)(`span`,{className:`pc-palette__row-hint`,children:[Vh(e.kind),` · `,e.reason]})]})},`${e.id}:${t}`))})]}):null]})}function Wh(e){return N(e)}function Gh(){return Object.freeze(x.filter(e=>e.navigation!==`hidden`).map(e=>{let t=N(e.href);return t===null?null:Object.freeze({kind:e.kind,product:e.product,title:e.label,href:t})}).filter(e=>e!==null))}var Kh=`.planr`,qh=`openplanr`,Jh=Object.freeze([Object.freeze({id:`epic`,label:`Epic`,plural:`Epics`}),Object.freeze({id:`feature`,label:`Feature`,plural:`Features`}),Object.freeze({id:`story`,label:`Story`,plural:`Stories`}),Object.freeze({id:`task`,label:`Task`,plural:`Tasks`}),Object.freeze({id:`spec`,label:`Spec`,plural:`Specs`}),Object.freeze({id:`backlog`,label:`Backlog`,plural:`Backlog`}),Object.freeze({id:`quick`,label:`Quick`,plural:`Quick tasks`}),Object.freeze({id:`sprint`,label:`Sprint`,plural:`Sprints`}),Object.freeze({id:`adr`,label:`ADR`,plural:`ADRs`})]),Yh=new Map(Jh.map((e,t)=>[e.id,t])),Xh=new Map(Jh.map(e=>[e.id,e.label])),Zh=new Map(Jh.map(e=>[e.id,e.plural])),Qh=Object.freeze([Object.freeze({id:`outstanding`,label:`Outstanding`}),Object.freeze({id:`in-progress`,label:`In progress`}),Object.freeze({id:`blocked`,label:`Blocked`}),Object.freeze({id:`done`,label:`Done`}),Object.freeze({id:`addressed`,label:`Addressed`})]),$h=new Map(Qh.map(e=>[e.id,e.label])),eg=Object.freeze([`outstanding`,`in-progress`,`blocked`,`done`]),tg=Object.freeze({blocked:`blocked`,done:`done`,"in-progress":`in progress`,outstanding:`outstanding`,addressed:`addressed`});function ng(e){let t=e.trim();return t?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:`Item`}function rg(e){return Yh.get(e)??Jh.length}function ig(e){return Xh.get(e)??ng(e)}function ag(e){return Zh.get(e)??ig(e)}function og(e){return $h.get(e)??(e||`Unknown`)}function sg(e){if(e==null)return``;if(typeof e==`string`){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}let t=e.frontmatter.id;if(t!=null&&t!==``)return String(t);let n=e.id.lastIndexOf(`/`);return n>=0?e.id.slice(n+1):e.id}function cg(e){return e.frontmatter.sprintId??e.frontmatter.sprint??``}function lg(e,t=Object.freeze({})){let n=t.typeFilter??[],r=t.statusFilter??null,i=typeof t.search==`string`?t.search.trim().toLowerCase():``;return Object.freeze(e.filter(e=>!(n.length>0&&!n.includes(e.type)||r!==null&&e.status!==r||i&&!`${e.id} ${sg(e)} ${e.title}`.toLowerCase().includes(i))))}function ug(e,t){switch(t){case`id`:return e.id;case`title`:return e.title;case`type`:return e.type;case`status`:return tg[e.status]??e.status;case`sprint`:return String(cg(e))}}function dg(e,t=`id`,n=`asc`){let r=n===`desc`?-1:1;return Object.freeze(e.map((e,t)=>({node:e,index:t})).sort((e,n)=>{let i=ug(e.node,t).localeCompare(ug(n.node,t),void 0,{numeric:!0,sensitivity:`base`});return i===0?e.index-n.index:i*r}).map(({node:e})=>e))}function fg(e){let t=0,n=0,r=0,i=0;for(let a of e)a.status===`done`||a.status===`addressed`?i+=1:a.status===`in-progress`?n+=1:a.status===`blocked`?r+=1:t+=1;return Object.freeze({outstanding:t,inProgress:n,blocked:r,done:i})}function pg(e){let{frontmatter:t}=e;if(typeof t.specScope==`string`&&t.specScope)return t.specScope;if(typeof t.specId==`string`&&t.specId)return t.specId;let n=e.id.indexOf(`/`);if(n>=0){let t=e.id.slice(0,n);if(/^SPEC-/iu.test(t))return t}if(e.type===`spec`){let n=t.id!=null&&t.id!==``?t.id:e.id;return n==null||n===``?null:String(n)}return null}function mg(e){let t=new Set;for(let n of e){let e=pg(n);e&&t.add(e)}return Object.freeze([...t].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})))}function hg(e){return e===`addressed`?`done`:eg.includes(e)?e:`outstanding`}function gg(e,t){let{frontmatter:n}=e;switch(t){case`status`:return hg(e.status);case`type`:return e.type||`unknown`;case`sprint`:return String(cg(e)||``);case`feature`:return n.featureId==null?``:String(n.featureId);case`epic`:return n.epicId==null?``:String(n.epicId);case`spec`:return pg(e)??``;default:return n[t]==null?``:String(n[t])}}function _g(e){switch(e){case`status`:return`Status`;case`type`:return`Type`;case`sprint`:return`Sprint`;case`feature`:return`Feature`;case`epic`:return`Epic`;case`spec`:return`Spec`;default:return ng(e||`Group`)}}function vg(e){let t=[];e.length>0&&(t.push(Object.freeze({key:`status`,label:`Status`})),t.push(Object.freeze({key:`type`,label:`Type`})));let n=t=>e.some(e=>gg(e,t)!==``);return n(`sprint`)&&t.push(Object.freeze({key:`sprint`,label:`Sprint`})),n(`feature`)&&t.push(Object.freeze({key:`feature`,label:`Feature`})),n(`epic`)&&t.push(Object.freeze({key:`epic`,label:`Epic`})),mg(e).length>0&&t.push(Object.freeze({key:`spec`,label:`Spec`})),Object.freeze(t)}function yg(e,t){return t?e===`status`?og(t):e===`type`?ag(t):t:`No ${_g(e).toLowerCase()}`}function bg(e,t){if(t===`status`){let t=new Map(eg.map(e=>[e,[]]));for(let n of e)t.get(hg(n.status))?.push(n);return Object.freeze(eg.map(e=>Object.freeze({key:e,label:og(e),nodes:Object.freeze(t.get(e)??[])})))}let n=new Map;for(let r of e){let e=gg(r,t),i=n.get(e);i?i.push(r):n.set(e,[r])}let r;return t===`type`?r=[...n.keys()].sort((e,t)=>rg(e)-rg(t)||e.localeCompare(t)):(r=[...n.keys()].filter(e=>e!==``).sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})),n.has(``)&&r.push(``)),Object.freeze(r.map(e=>Object.freeze({key:e,label:yg(t,e),nodes:Object.freeze(n.get(e)??[])})))}function xg(e){return String(e??``).toLowerCase().replace(/\s+/gu,` `).trim()}function Sg(e){let t=xg(e);if(!t)return Object.freeze([]);if(t.length<3)return Object.freeze([t]);let n=[];for(let e=0;e<=t.length-3;e+=1)n.push(t.slice(e,e+3));return Object.freeze(n)}function Cg(e){let t=new Map,n=new Map;for(let r of e){t.set(r.id,r);let e=new Set([...Sg(r.id),...Sg(r.title)]);for(let t of e){let e=n.get(t);e?e.add(r.id):n.set(t,new Set([r.id]))}}let r=new Map([...n].map(([e,t])=>[e,new Set(t)]));return Object.freeze({nodes:Object.freeze([...e]),byId:t,postings:r})}function wg(e,t,n=20){let r=xg(t);if(!r||!Number.isSafeInteger(n)||n<0)return Object.freeze([]);let i=Sg(r),a=new Map;for(let t of i){let n=e.postings.get(t);if(n)for(let e of n)a.set(e,(a.get(e)??0)+1)}for(let t of e.nodes)`${xg(t.id)} ${xg(t.title)}`.includes(r)&&a.set(t.id,(a.get(t.id)??0)+i.length+1);return Object.freeze([...a].sort(([e,t],[n,r])=>r-t||e.localeCompare(n)).slice(0,n).map(([t])=>e.byId.get(t)).filter(e=>e!==void 0))}function Tg(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){let n=e.charCodeAt(t+1);if(!(n>=56320&&n<=57343))return!0;t+=1}else if(n>=56320&&n<=57343)return!0}return!1}function Eg(e){let t=typeof e==`string`?e:e.id;if(!t||Tg(t))return null;let n=``;for(let e of new TextEncoder().encode(t)){let t=String.fromCharCode(e);n+=/^[A-Za-z0-9._-]$/u.test(t)?t:`:${e.toString(16).toUpperCase().padStart(2,`0`)}`}return n}function Dg(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];if(r!==`:`){if(!/^[A-Za-z0-9._-]$/u.test(r))return null;t.push(r.charCodeAt(0));continue}let i=e.slice(n+1,n+3);if(!/^[0-9A-F]{2}$/u.test(i))return null;t.push(Number.parseInt(i,16)),n+=2}try{let n=new TextDecoder(`utf-8`,{fatal:!0}).decode(new Uint8Array(t));return n&&Eg(n)===e?n:null}catch{return null}}function Og(e){let t=Eg(e);return t===null?null:N(`#/detail/${encodeURIComponent(t)}`)}function kg(e){let t=[];for(let n of String(e??``).split(`
|
|
53
|
+
`)){let e=n.match(/^\s*[-*+]\s+\[([ xX])\]\s+(.*)$/u);e&&t.push(Object.freeze({text:e[2].trim(),done:e[1].toLowerCase()===`x`}))}return Object.freeze(t)}function Ag(e){let t=[],n=!1;for(let r of String(e??``).split(`
|
|
54
|
+
`)){let e=r.match(/^#{2,6}\s+(.*)$/u);if(e){n=/acceptance criteria/iu.test(e[1]);continue}if(!n||/^\s*[-*+]\s+\[[ xX]\]/u.test(r))continue;let i=r.match(/^\s*[-*+]\s+(.*)$/u);i?.[1].trim()&&t.push(i[1].trim())}return Object.freeze(t)}function jg(e){if(Array.isArray(e))return e.map(e=>String(e)).join(`, `);if(typeof e==`object`&&e)try{return JSON.stringify(e)}catch{return String(e)}return String(e)}var Mg=new Set([`id`,`title`,`type`,`status`,`body`]);function Ng(e){let t={};for(let[n,r]of Object.entries(e.frontmatter))Mg.has(n)||r==null||(t[n]=jg(r));let n=e.frontmatter.dependsOn,r=Array.isArray(n)?n.map(e=>String(e)):[],i=e.frontmatter.shipRef,a=e.frontmatter.qaRef;return Object.freeze({header:Object.freeze({id:e.id,title:e.title,type:e.type,status:e.status}),meta:Object.freeze(t),criteria:Ag(e.body),subtasks:kg(e.body),depIds:Object.freeze(r),...i!=null&&i!==``?{shipRef:String(i)}:{},...a!=null&&a!==``?{qaRef:String(a)}:{}})}function Pg(e,t,n,r,i){if(n==null)return null;let a=Wh(n);return a===null?null:Object.freeze({id:e,title:t,href:a,source:r,kind:i})}function Fg(e){if(!e)return Object.freeze([]);let t=[];for(let n of e){let e=Pg(`operate:${n.kind}:${n.subjectId}`,n.title,n.deepLink,`operate`,n.kind);e&&t.push(e)}return Object.freeze(t)}function Ig(e=Object.freeze({})){let t=Object.freeze([...e.planningNodes??[]]),n=Fg(e.operateResults);return Object.freeze({routes:Gh(),planningNodes:t,operateHits:n})}function Lg(e,t){return e.toLowerCase().includes(t)}function Rg(e,t,n=20){let r=t.trim().toLowerCase();if(!r||!Number.isSafeInteger(n)||n<0)return Object.freeze([]);let i=[];for(let t of e.routes)if(Lg(`${t.title} ${t.kind} ${t.href}`,r)){let e=Pg(`route:${t.kind}`,t.title,t.href,`route`,t.kind);e&&i.push(e)}for(let r of wg(Cg(e.planningNodes),t,n)){let e=Pg(`planning:${r.id}`,r.title,Og(r),`planning`,r.type);e&&i.push(e)}for(let t of e.operateHits)Lg(`${t.title} ${t.kind} ${t.id}`,r)&&i.push(t);let a=new Set;return Object.freeze(i.filter(e=>!a.has(e.href)&&(a.add(e.href),!0)).slice(0,n))}function zg(e,t,n=20){if(!t.trim().toLowerCase()||!Number.isSafeInteger(n)||n<0)return Object.freeze([]);let r=[];for(let i of wg(Cg(e.planningNodes),t,n))Og(i)===null&&r.push(Object.freeze({id:i.id,title:i.title,kind:i.type,reason:`This artifact identity cannot be opened through the closed dashboard grammar.`}));return Object.freeze(r.slice(0,n))}function Bg(e){let t=Object.freeze([...e]);return Object.freeze({items:t,activeIndex:-1,moveDown(){let e=this.activeIndex<this.items.length-1?this.activeIndex+1:this.activeIndex;return Vg(this.items,e)},moveUp(){let e=this.activeIndex>0?this.activeIndex-1:this.activeIndex;return Vg(this.items,e)},reset(e){return Bg(e)},getActive(){return this.activeIndex>=0&&this.activeIndex<this.items.length?this.items[this.activeIndex]??null:null}})}function Vg(e,t){let n=Object.freeze([...e]);return Object.freeze({items:n,activeIndex:t,moveDown(){let e=t<n.length-1?t+1:t;return Vg(n,e)},moveUp(){let e=t>0?t-1:t;return Vg(n,e)},reset(e){return Bg(e)},getActive(){return t>=0&&t<n.length?n[t]??null:null}})}var Hg=e=>e===null?`null`:Array.isArray(e)?`array`:Number.isInteger(e)?`integer`:typeof e==`number`?`number`:typeof e,Ug=(e,t)=>t===`integer`?Number.isInteger(e):t===`number`?typeof e==`number`:t===`string`?typeof e==`string`:t===`boolean`?typeof e==`boolean`:t===`null`?e===null:t===`array`?Array.isArray(e):t===`object`&&typeof e==`object`&&!!e&&!Array.isArray(e),Wg=/^\d{4}-\d{2}-\d{2}$/,Gg=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/,Kg=new Set([`date`,`date-time`]),qg=[`$schema`,`$id`,`$defs`,`$comment`,`title`,`description`,`default`,`examples`,`deprecated`,`readOnly`,`writeOnly`],Jg=`$ref.type.const.enum.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.minItems.maxItems.prefixItems.items.uniqueItems.contains.minContains.maxContains.required.properties.propertyNames.additionalProperties.maxProperties.dependentRequired.unevaluatedProperties.oneOf.anyOf.allOf.if.then.else.not`.split(`.`),Yg=new Set([...qg,...Jg]),Xg=new Set([`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]),Zg=e=>typeof e==`boolean`||typeof e==`object`&&!!e&&!Array.isArray(e),Qg=e=>typeof e==`object`&&!!e&&!Array.isArray(e),$g=e=>Number.isSafeInteger(e)&&e>=0,e_=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`)&&new Set(e).size===e.length,t_=e=>Array.isArray(e)&&e.length>0&&e.every(Zg),n_=e=>Qg(e)&&Object.values(e).every(Zg),r_=new Map,i_=1024,a_=e=>{try{return new RegExp(e)}catch(e){if(e instanceof SyntaxError)return null;throw e}},o_=e=>(r_.has(e)||(r_.size>=i_&&r_.clear(),r_.set(e,a_(e))),r_.get(e)??null),s_=e=>{let t=String(JSON.stringify(e));return t.length>80?`${t.slice(0,77)}...`:t},c_={$ref:[`a string`,e=>typeof e==`string`],$defs:[`an object of schemas`,n_],type:[`a type name or a non-empty array of unique type names`,e=>typeof e==`string`&&Xg.has(e)||e_(e)&&e.length>0&&e.every(e=>Xg.has(e))],enum:[`an array`,Array.isArray],minLength:[`a non-negative integer`,$g],maxLength:[`a non-negative integer`,$g],pattern:[`a valid regular expression string`,e=>typeof e==`string`&&o_(e)!==null],minimum:[`a finite number`,Number.isFinite],maximum:[`a finite number`,Number.isFinite],exclusiveMinimum:[`a finite number`,Number.isFinite],minItems:[`a non-negative integer`,$g],maxItems:[`a non-negative integer`,$g],prefixItems:[`a non-empty array of schemas`,t_],items:[`a schema`,Zg],uniqueItems:[`a boolean`,e=>typeof e==`boolean`],contains:[`a schema`,Zg],minContains:[`a non-negative integer`,$g],maxContains:[`a non-negative integer`,$g],required:[`an array of unique strings`,e_],properties:[`an object of schemas`,n_],propertyNames:[`a schema`,Zg],additionalProperties:[`a schema`,Zg],maxProperties:[`a non-negative integer`,$g],dependentRequired:[`an object of unique string arrays`,e=>Qg(e)&&Object.values(e).every(e_)],unevaluatedProperties:[`a schema`,Zg],oneOf:[`a non-empty array of schemas`,t_],anyOf:[`a non-empty array of schemas`,t_],allOf:[`a non-empty array of schemas`,t_],if:[`a schema`,Zg],then:[`a schema`,Zg],else:[`a schema`,Zg],not:[`a schema`,Zg]};function l_(e,t){return t===`#`?e:t.startsWith(`#/`)?t.slice(2).split(`/`).map(e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`)).reduce((e,t)=>e?.[t],e):null}var u_=new WeakSet,d_=e=>Object.isFrozen(e)&&Object.values(e).every(Object.isFrozen)&&(!Qg(e.dependentRequired)||Object.values(e.dependentRequired).every(Object.isFrozen)),f_=(e,t,n)=>{if(u_.has(e)||n.checkedSchemas.has(e))return;n.checkedSchemas.add(e);let r=n.schemaErrors.length;for(let r of Object.keys(e))!Yg.has(r)&&!r.startsWith(`x-`)&&n.schemaErrors.push({path:t,rule:`unsupported-keyword`,detail:`schema keyword '${r}' is not supported by this validator`});Object.hasOwn(e,`format`)&&!Kg.has(e.format)&&n.schemaErrors.push({path:t,rule:`unsupported-format`,detail:`schema format ${JSON.stringify(e.format)} is not supported by this validator`});for(let[r,[i,a]]of Object.entries(c_))Object.hasOwn(e,r)&&!a(e[r])&&n.schemaErrors.push({path:t,rule:`schema`,detail:`schema keyword '${r}' must be ${i}, got ${s_(e[r])}`});n.schemaErrors.length===r&&d_(e)&&u_.add(e)},p_=(e,t,n,r)=>{r.reportedReferences.has(e)||(r.reportedReferences.add(e),r.schemaErrors.push({path:t,rule:`$ref`,detail:n}))},m_=(e,t,n,r,i)=>{let a=new Set;if(t===!0)return a;if(t===!1)return r.push({path:n,rule:`schema:false`,detail:`value not allowed`}),a;if(!Zg(t))return a;if(f_(t,n,i),typeof t?.$ref==`string`){let o=t.$ref,s,c=i.rootSchema,l=i.base;if(o.startsWith(`#`))s=l_(i.rootSchema,o);else if(typeof i.resolveRef==`function`){let e=i.resolveRef(o,{base:i.base});s=e?.schema??e,c=e?.rootSchema??s,l=e?.base??s?.$id??i.base}if(!Zg(s))return p_(t,n,s==null?`could not resolve schema reference ${o}`:`schema reference ${o} resolved to ${Hg(s)}, not a schema`,i),a;let u=`${n} ${i.base??`<root>`}:${o}`;if(i.referenceStack.includes(u))return p_(t,n,`circular schema reference ${o}`,i),a;let d=m_(e,s,n,r,{...i,rootSchema:c,base:l,referenceStack:[...i.referenceStack,u]});for(let e of d)a.add(e)}if(t.type!==void 0){let i=Array.isArray(t.type)?t.type:[t.type];if(!i.some(t=>Ug(e,t)))return r.push({path:n,rule:`type`,detail:`expected ${i.join(`|`)}, got ${Hg(e)}`}),a}if(t.const!==void 0&&e!==t.const&&r.push({path:n,rule:`const`,detail:`expected ${JSON.stringify(t.const)}, got ${JSON.stringify(e)}`}),Array.isArray(t.enum)&&(t.enum.includes(e)||r.push({path:n,rule:`enum`,detail:`value ${JSON.stringify(e)} not in enum [${t.enum.map(e=>JSON.stringify(e)).join(`, `)}]`})),typeof e==`string`){typeof t.minLength==`number`&&e.length<t.minLength&&r.push({path:n,rule:`minLength`,detail:`length ${e.length} < ${t.minLength}`}),typeof t.maxLength==`number`&&e.length>t.maxLength&&r.push({path:n,rule:`maxLength`,detail:`length ${e.length} > ${t.maxLength}`});let i=typeof t.pattern==`string`?o_(t.pattern):null;i&&!i.test(e)&&r.push({path:n,rule:`pattern`,detail:`value ${JSON.stringify(e)} does not match /${t.pattern}/`}),typeof t.format==`string`&&(t.format===`date`&&!Wg.test(e)?r.push({path:n,rule:`format:date`,detail:`value ${JSON.stringify(e)} is not YYYY-MM-DD`}):t.format===`date-time`&&!Gg.test(e)&&r.push({path:n,rule:`format:date-time`,detail:`value ${JSON.stringify(e)} is not ISO 8601 date-time`}))}if(typeof e==`number`&&(typeof t.minimum==`number`&&e<t.minimum&&r.push({path:n,rule:`minimum`,detail:`value ${e} < ${t.minimum}`}),typeof t.maximum==`number`&&e>t.maximum&&r.push({path:n,rule:`maximum`,detail:`value ${e} > ${t.maximum}`}),typeof t.exclusiveMinimum==`number`&&e<=t.exclusiveMinimum&&r.push({path:n,rule:`exclusiveMinimum`,detail:`value ${e} <= ${t.exclusiveMinimum}`})),Array.isArray(e)){typeof t.minItems==`number`&&e.length<t.minItems&&r.push({path:n,rule:`minItems`,detail:`length ${e.length} < ${t.minItems}`}),typeof t.maxItems==`number`&&e.length>t.maxItems&&r.push({path:n,rule:`maxItems`,detail:`length ${e.length} > ${t.maxItems}`});let a=Array.isArray(t.prefixItems)?t.prefixItems.length:0;if(a>0)for(let o=0;o<Math.min(e.length,a);o++)m_(e[o],t.prefixItems[o],`${n}[${o}]`,r,i);if(t.items!==void 0)for(let o=a;o<e.length;o++)m_(e[o],t.items,`${n}[${o}]`,r,i);if(t.uniqueItems===!0){let t=new Set;for(let i of e){let e=JSON.stringify(i);if(t.has(e)){r.push({path:n,rule:`uniqueItems`,detail:`duplicate item ${e}`});break}t.add(e)}}if(t.contains!==void 0){let a=0;for(let r=0;r<e.length;r+=1){let o=[];m_(e[r],t.contains,`${n}[${r}]`,o,i),o.length===0&&(a+=1)}let o=Number.isSafeInteger(t.minContains)?t.minContains:1,s=Number.isSafeInteger(t.maxContains)?t.maxContains:null;a<o&&r.push({path:n,rule:`contains`,detail:`matched ${a} contained items; expected at least ${o}`}),s!==null&&a>s&&r.push({path:n,rule:`contains`,detail:`matched ${a} contained items; expected at most ${s}`})}}if(typeof e==`object`&&e&&!Array.isArray(e)){if(Array.isArray(t.required))for(let i of t.required)Object.hasOwn(e,i)||r.push({path:n,rule:`required`,detail:`missing required property '${i}'`});if(typeof t.maxProperties==`number`&&Object.keys(e).length>t.maxProperties&&r.push({path:n,rule:`maxProperties`,detail:`property count ${Object.keys(e).length} > ${t.maxProperties}`}),t.dependentRequired!==null&&typeof t.dependentRequired==`object`){for(let[i,a]of Object.entries(t.dependentRequired))if(Object.hasOwn(e,i)&&Array.isArray(a))for(let t of a)Object.hasOwn(e,t)||r.push({path:n,rule:`dependentRequired`,detail:`property '${i}' requires property '${t}'`})}let o=t.properties||{};for(let[s,c]of Object.entries(e))t.propertyNames!==void 0&&m_(s,t.propertyNames,`${n}.${s}`,r,i),(Object.hasOwn(o,s)||t.additionalProperties!==void 0)&&a.add(s),Object.hasOwn(o,s)||(t.additionalProperties===!1?r.push({path:n,rule:`additionalProperties`,detail:`unknown property '${s}'`}):(t.additionalProperties===!0||t.additionalProperties!==null&&typeof t.additionalProperties==`object`)&&m_(c,t.additionalProperties,`${n}.${s}`,r,i));for(let[t,a]of Object.entries(e))Object.hasOwn(o,t)&&m_(a,o[t],`${n}.${t}`,r,i)}if(Array.isArray(t.oneOf)){let o=0;for(let r of t.oneOf){let t=[],s=m_(e,r,n,t,i);if(t.length===0){o++;for(let e of s)a.add(e)}}if(o!==1){let e=t.oneOf.map(e=>e.title||`(unnamed)`).join(` | `);r.push({path:n,rule:`oneOf`,detail:`matched ${o}/${t.oneOf.length} branches (expected exactly 1). Branches: ${e}`})}}if(Array.isArray(t.anyOf)){let o=0;for(let r of t.anyOf){let t=[],s=m_(e,r,n,t,i);if(t.length===0){o+=1;for(let e of s)a.add(e)}}if(o===0){let e=t.anyOf.map(e=>e.title||`(unnamed)`).join(` | `);r.push({path:n,rule:`anyOf`,detail:`matched 0/${t.anyOf.length} branches (expected at least 1). Branches: ${e}`})}}if(Array.isArray(t.allOf))for(let o of t.allOf)for(let t of m_(e,o,n,r,i))a.add(t);if(t.if!==void 0){let o=[],s=m_(e,t.if,n,o,i),c=o.length===0;if(c)for(let e of s)a.add(e);let l=c?t.then:t.else;if(l!==void 0){let t=[],o=m_(e,l,n,t,i);if(r.push(...t),t.length===0)for(let e of o)a.add(e)}}if(t.not!==void 0){let a=[];m_(e,t.not,n,a,i),a.length===0&&r.push({path:n,rule:`not`,detail:`value matched a forbidden subschema`})}if(t.unevaluatedProperties!==void 0&&typeof e==`object`&&e&&!Array.isArray(e))for(let[o,s]of Object.entries(e))a.has(o)||(t.unevaluatedProperties===!1?r.push({path:n,rule:`unevaluatedProperties`,detail:`unevaluated property '${o}'`}):m_(s,t.unevaluatedProperties,`${n}.${o}`,r,i),a.add(o));return a},h_=(e,t,{resolveRef:n,base:r=t?.$id??null}={})=>{let i=[],a=[];return Zg(t)?(m_(e,t,`$`,i,{rootSchema:t,resolveRef:n,base:r,referenceStack:[],schemaErrors:a,checkedSchemas:new WeakSet,reportedReferences:new WeakSet}),[...a,...i]):[{path:`$`,rule:`schema`,detail:`expected a schema object or boolean, got ${Hg(t)}`}]},g_=(e,t)=>Object.hasOwn(e,t);function __(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>=55296&&r<=56319){let r=e.charCodeAt(n+1);if(!(r>=56320&&r<=57343))throw TypeError(`JCS cannot canonicalize a lone high surrogate at ${t}.`);n+=1}else if(r>=56320&&r<=57343)throw TypeError(`JCS cannot canonicalize a lone low surrogate at ${t}.`)}}function v_(e,t,n){if(e===null)return`null`;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`string`)return __(e,t),JSON.stringify(e);if(typeof e==`number`){if(!Number.isFinite(e))throw TypeError(`JCS requires a finite number at ${t}.`);return JSON.stringify(e)}if(typeof e!=`object`)throw TypeError(`JCS cannot canonicalize ${typeof e} at ${t}.`);if(n.has(e))throw TypeError(`JCS cannot canonicalize a cycle at ${t}.`);n.add(e);try{if(Array.isArray(e)){let r=[];for(let i=0;i<e.length;i+=1){if(!g_(e,i))throw TypeError(`JCS cannot canonicalize a sparse array at ${t}[${i}].`);r.push(v_(e[i],`${t}[${i}]`,n))}return`[${r.join(`,`)}]`}let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)throw TypeError(`JCS requires a plain JSON object at ${t}.`);return`{${Object.keys(e).sort().map(r=>(__(r,`${t} key`),`${JSON.stringify(r)}:${v_(e[r],`${t}.${r}`,n)}`)).join(`,`)}}`}finally{n.delete(e)}}function y_(e){return v_(e,`$`,new Set)}var b_=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),x_=(e,t)=>e>>>t|e<<32-t;function S_(e){let t=typeof e==`string`?new TextEncoder().encode(e):e;if(!ArrayBuffer.isView(t)||Object.prototype.toString.call(t)!==`[object Uint8Array]`)throw TypeError(`sha256Hex expects a string or Uint8Array.`);let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),r=Math.ceil((n.length+9)/64)*64,i=new Uint8Array(r);i.set(n),i[n.length]=128;let a=new DataView(i.buffer),o=BigInt(n.length)*8n;a.setUint32(r-8,Number(o>>32n&4294967295n)),a.setUint32(r-4,Number(o&4294967295n));let s=1779033703,c=3144134277,l=1013904242,u=2773480762,d=1359893119,f=2600822924,p=528734635,m=1541459225,h=new Int32Array(64);for(let e=0;e<i.length;e+=64){for(let t=0;t<16;t+=1)h[t]=a.getUint32(e+t*4);for(let e=16;e<64;e+=1){let t=x_(h[e-15],7)^x_(h[e-15],18)^h[e-15]>>>3,n=x_(h[e-2],17)^x_(h[e-2],19)^h[e-2]>>>10;h[e]=h[e-16]+t+h[e-7]+n|0}let t=s,n=c,r=l,i=u,o=d,g=f,_=p,v=m;for(let e=0;e<64;e+=1){let a=x_(o,6)^x_(o,11)^x_(o,25),s=o&g^~o&_,c=v+a+s+b_[e]+h[e]|0,l=(x_(t,2)^x_(t,13)^x_(t,22))+(t&n^t&r^n&r)|0;v=_,_=g,g=o,o=i+c|0,i=r,r=n,n=t,t=c+l|0}s=s+t|0,c=c+n|0,l=l+r|0,u=u+i|0,d=d+o|0,f=f+g|0,p=p+_|0,m=m+v|0}return[s,c,l,u,d,f,p,m].map(e=>(e>>>0).toString(16).padStart(8,`0`)).join(``)}function C_(e){return`sha256:${S_(y_(e))}`}function w_(e){if(e&&typeof e==`object`&&!Object.isFrozen(e)){for(let t of Object.values(e))w_(t);Object.freeze(e)}return e}var T_=(e,t)=>Object.hasOwn(e,t);function E_(e,t=new Set){if(typeof e!=`object`||!e||t.has(e))return e;t.add(e);for(let n of Object.values(e))E_(n,t);return Object.freeze(e)}function D_(e){return A_(e),structuredClone(e)}function O_(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){let n=e.charCodeAt(t+1);if(!(n>=56320&&n<=57343))throw TypeError(`JCS requires Unicode scalar strings.`);t+=1}else if(n>=56320&&n<=57343)throw TypeError(`JCS requires Unicode scalar strings.`)}}function k_(e,t){if(e===null)return`null`;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`string`)return O_(e),JSON.stringify(e);if(typeof e==`number`){if(!Number.isFinite(e))throw TypeError(`JCS requires finite numbers.`);return JSON.stringify(e)}if(typeof e!=`object`)throw TypeError(`JCS requires JSON data.`);if(t.has(e))throw TypeError(`JCS cannot canonicalize a cycle.`);t.add(e);try{if(Array.isArray(e)){if(Reflect.ownKeys(e).some(t=>{if(t===`length`)return!1;if(typeof t!=`string`)return!0;let n=Number(t);return!Number.isSafeInteger(n)||n<0||n>=e.length||String(n)!==t}))throw TypeError(`JCS requires plain JSON arrays.`);let n=[];for(let r=0;r<e.length;r+=1){let i=Object.getOwnPropertyDescriptor(e,String(r));if(!i||!i.enumerable||i.get||i.set)throw TypeError(`JCS cannot canonicalize a sparse array.`);n.push(k_(i.value,t))}return`[${n.join(`,`)}]`}let n=Object.getPrototypeOf(e);if(n!==Object.prototype&&n!==null)throw TypeError(`JCS requires plain JSON objects.`);let r=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(e).some(e=>{if(typeof e!=`string`)return!0;let t=r[e];return!t?.enumerable||typeof t.get==`function`||typeof t.set==`function`}))throw TypeError(`JCS requires enumerable data properties only.`);return`{${Object.keys(r).sort().map(e=>(O_(e),`${JSON.stringify(e)}:${k_(r[e].value,t)}`)).join(`,`)}}`}finally{t.delete(e)}}function A_(e){return k_(e,new Set)}function j_(e,t){return`sha256:${S_(`${t}\u0000${A_(e)}`)}`}function M_(e){return`sha256:${S_(A_(e))}`}function N_(e){let t=D_(e);return delete t.integrity.contentHash,t}function P_(e,t){return A_(e)===A_(t)}function F_(e,t){return e?.sequence===t?.sequence&&e?.hash===t?.hash}var I_=Object.freeze([`type`,`$ref`,`properties`,`string`,`required`,`const`,`object`,`additionalProperties`,`array`,`items`,`null`,`pattern`,`1`,`#/$defs/id`,`enum`,`maxLength`,`minimum`,`kind`,`integer`,`0`,`maxItems`,`128`,`uniqueItems`,`minLength`,`title`,`oneOf`,`id`,`schemaVersion`,`state`,`format`,`version`,`status`,`date-time`,`protocolVersion`,`if`,`then`,`2.0.0`,`#/$defs/text`,`minItems`,`data`,`#/$defs/hash`,`domainId`,`domainVersion`,`reason`,`scopeId`,`surface`,`1.0.0`,`cycleId`,`action`,`hash`,`actorId`,`allOf`,`eventHead`,`subjectId`,`outcome`,`reasonCodes`,`#/$defs/version`,`deepLink`,`ownerActorId`,`scope`,`artifactId`,`origin`,`sequence`,`^sha256:[a-f0-9]{64}$`,`rejected`,`$id`,`$schema`,`https://json-schema.org/draft/2020-12/schema`,`x-openplanr-contract`,`$defs`,`../v2.0.0/operate-experience-view.schema.json#/$defs/id`,`confidence`,`not`,`number`,`roleId`,`#/$defs/identifier`,`256`,`maximum`,`actions`,`evidence`,`recoveryDisposition`,`revision`,`stale`,`assignmentId`,`assignmentKind`,`available`,`mutationEnabled`,`restricted`,`accessLevel`,`actionId`,`disposition`,`rationale`,`statement`,`#/$defs/nonPlaceholder`,`../v2.0.0/operate-experience-view.schema.json#/$defs/hash`,`boolean`,`evidenceRefIds`,`integrity`,`2048`,`blocked`,`decision`,`generatedAt`,`mediaType`,`sourceArtifactId`,`sourceViewHash`,`^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`absenceId`,`actor`,`target`,`verification`,`4096`,`64`,`accessReason`,`code`,`createdAt`,`effect`,`ok`,`rawHash`,`read-only`,`roleKind`,`tool`,`failed`,`payload`,`reviewId`,`roleVersion`,`#/$defs/nullableText`,`512`,`arguments`,`canonicalHash`,`cycle`,`evidenceRefId`,`history`,`operation`,`total`,`viewHash`,`8192`,`dissent`,`gaps`,`outcomes`,`review`,`schemaId`,`#/$defs/deepLink`,`16`,`algorithm`,`approved`,`cancelled`,`contentHash`,`current`,`domain`,`learnings`,`observedAt`,`producer`,`readOnly`,`requirementId`,`runtime`,`uncertain`,`description`,`evidenceKind`,`findings`,`partial`,`sourceAssignmentId`,`summary`,`#/$defs/shortText`,`#/$defs/successBase`,`absenceCode`,`actionHash`,`allowedActions`,`encoding`,`error`,`inbox`,`label`,`metricId`,`outputContract`,`uncertainty`,`verificationPlanId`,`workDispositions`,`^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`claims`,`contradicted`,`contradictingEvidenceRefIds`,`decisions`,`findingType`,`pending`,`replay`,`resolved`,`severity`,`supportingEvidenceRefIds`,`unknown`,`#/$defs/artifactId`,`#/$defs/scope`,`abandoned`,`advisor`,`capability`,`chair`,`challenger`,`changes_requested`,`claim`,`classification`,`deferred`,`dueAt`,`evidenceArtifactId`,`freshness`,`inputArtifactIds`,`operating-intelligence`,`persistent-work`,`relation`,`resolvedAt`,`reversibility`,`rollbackPlanId`,`source`,`#/$defs/accessLevel`,`#/$defs/evidenceRefId`,`#/$defs/title`,`1024`,`^[\\s\\S]*\\S[\\s\\S]*$`,`absence`,`accepted`,`artifact`,`cycles`,`entityId`,`filesystem`,`git`,`governedOperationId`,`historical`,`offline`,`operate-artifact`,`planr`,`project-write`,`ready`,`revisitAt`,`subject`,`terminal`,`utf-8`,`#/$defs/absenceId`,`#/$defs/accessReason`,`#/$defs/eventHead`,`#/$defs/objectArray`,`^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`absent`,`accessState`,`actorKind`,`anyOf`,`application/json`,`assignment`,`baseline`,`causalLinks`,`choiceHash`,`choiceId`,`completedAt`,`consequence`,`context`,`dissentIds`,`domainMetrics`,`errors`,`expectedResult`,`findingId`,`message`,`omissions`,`operate-experience-view.schema.json#/$defs/hash`,`operationKind`,`provenance`,`representation`,`retryable`,`sensitivity`,`sourceArtifactKind`,`sourceContract`,`sourceContracts`,`subjectKind`,`submitArguments`,`truthSummary`,`updatedAt`,`validated`,`#/$defs/integrity`,`#/$defs/safeToken`,`../v2.0.0/operate-experience-view.schema.json#/$defs/eventHead`,`../v2.0.0/operate-experience-view.schema.json#/$defs/version`,`^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$`,`^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$`,`^cyc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^rev_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`attention`,`contentBase64`,`export`,`human`,`operate-experience-view.schema.json#/$defs/id`,`requestBinding`,`resolutionId`,`sha-256-jcs`,`supported`,`targets`,`text`,`#/$defs/contractRef`,`#/$defs/producer`,`(?:<[^>]+>|\\{\\{[^}]+\\}\\})`,`../v2.0.0/operate-experience-view.schema.json#/$defs/accessLevel`,`^[A-Z][A-Z0-9_]{0,127}$`,`^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^op_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`advisorArtifactId`,`analysisProfile`,`appliedChoiceHash`,`appliedChoiceId`,`approvalIds`,`claimId`,`corrupt`,`cycleLinks`,`decisionId`,`deltaId`,`dependsOn`,`evaluationId`,`eventReplayIndexHash`,`execution`,`executor`,`expectedDownside`,`expectedUpside`,`expiresAt`,`generation`,`grantId`,`incompatible`,`intelligenceContext`,`localDissentId`,`machine-local-write`,`metadata`,`operating-review-read`,`operating-review.schema.json#/$defs/workDisposition`,`operationId`,`outputArtifactIds`,`projectId`,`provider`,`query`,`question`,`recommendation`,`redacted`,`resolutionCondition`,`resolver`,`resultId`,`revisitConditions`,`role`,`rollback`,`seatStatus`,`sizeBytes`,`sourceEventHead`,`threshold`,`unavailableReason`,`unverified`,`verificationMethod`,`verificationWindow`,`verified`,`window`,`#/$defs/humanActor`,`#/$defs/nullableShortText`,`#/$defs/omission`,`#/$defs/rubricClauses`,`32768`,`^cgr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`actionLocator`,`active`,`analysisRubric`,`capabilityGrantId`,`complete`,`confidential`,`contentJson`,`correctionCondition`,`effectSummary`,`entityKind`,`evidenceRequirements`,`identifier`,`internal`,`mandate`,`maxBytes`,`operate-allowed-action.schema.json`,`operate-experience-view.schema.json#/$defs/eventHead`,`operate.action.approve`,`operate.action.execute`,`operate.action.rollback`,`operate.artifact.get`,`operate.assignment.claim`,`operate.assignment.submit`,`operate.cycle.get`,`operate.cycle.resume`,`operate.cycle.start`,`operate.recovery.inspect`,`operate.review.get`,`operate.review.submit`,`operating-review-receipt`,`proof`,`public`,`result`,`resultRequirements`,`revisited`,`search`,`skipped`,`sourceLocalFindingId`,`submissionId`,`superseded`,`terminalDisposition`,`waiting`,`#/$defs/action`,`#/$defs/artifactIds`,`#/$defs/causalLink`,`#/$defs/cycleId`,`#/$defs/implementationRef`,`#/$defs/resolutionError`,`#/$defs/result`,`#/$defs/sourceContract`,`#/$defs/versionedId`,`../v2.0.0/operate-experience-view.schema.json#/$defs/action`,`../v2.0.0/operate-experience-view.schema.json#/$defs/outcome`,`4`,`7`,`^\\S(?:[\\s\\S]*\\S)?$`,`^dissent:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$`,`^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^rbp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`absenceIds`,`actionCount`,`actionDigest`,`allowedCapabilities`,`appliedWorkDispositions`,`approval`,`artifactType`,`assignmentState`,`authority`,`blockers`,`blocking`,`change`,`changed`,`choices`,`claimStatus`,`committedAt`,`connector`,`contains`,`content`,`contradictClaimIds`,`contradictEvidenceRefIds`,`correlated-reasoning`,`count`,`critical`,`currentSnapshotId`,`decisionCount`,`decisionIds`,`delta`,`dependencies`,`destructive`,`dispositionChoices`,`dissentCount`,`effectClass`,`epistemicStatus`,`eventId`,`evidenceKinds`,`executiveBoard`,`executorId`,`executorVersion`,`findingCount`,`focus`,`gapCount`,`high`,`html`,`informs`,`intelligencePlanId`,`irreversibility-mismatch`,`json`,`low`,`medium`,`metricHash`,`missing-alternative`,`navigationLocator`,`next`,`open`,`operate.recovery.clear-stale-lock`,`operate.recovery.restore`,`operating-review.schema.json`,`originalOperationId`,`outcomeId`,`overconfidence`,`parentOperationId`,`partyId`,`persistentActionIds`,`persistentWork`,`priorSnapshotId`,`progress`,`readEventHead`,`reasonCode`,`receiptId`,`recorded`,`redactions`,`requestFingerprint`,`requiredCapability`,`results`,`revisit`,`running`,`scope-violation`,`seats`,`snapshot`,`snapshotId`,`sourceArtifactHash`,`sourceArtifactIds`,`sourceClaimRefs`,`sourceDecisionId`,`sourceEventId`,`sourceEventIds`,`sourceEvidenceRefIds`,`sourceStateHash`,`stages`,`supportClaimIds`,`supportEvidenceRefIds`,`targetAfterHash`,`targetBeforeHash`,`traceMatrix`,`typedAbsences`,`unit`,`unpriced-downside`,`unsupported`,`#/$defs/actionIdentity`,`#/$defs/assignmentId`,`#/$defs/cycleView`,`#/$defs/nodeId`,`#/$defs/nodeKind`,`#/$defs/nonBlankText`,`#/$defs/payload`,`#/$defs/publicActor`,`#/$defs/reviewSubmitArguments`,`#/$defs/target`,`#/$defs/workspace`,`../v2.0.0/operate-experience-view.schema.json#/$defs/cycle`,`../v2.0.0/operate-experience-view.schema.json#/$defs/history`,`../v2.0.0/operate-experience-view.schema.json#/$defs/inbox`,`../v2.0.0/operate-experience-view.schema.json#/$defs/learning`,`../v2.0.0/operate-experience-view.schema.json#/$defs/replay`,`../v2.0.0/operate-review-display-workspace.schema.json#/$defs/sharedTruthSummary`,`^#/operate/(?:cycles|inbox|actions|evidence|outcomes|history)/`,`^abs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^rch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^tre_[a-f0-9]{32}$`,`access-denied`,`agent`,`analysisIds`,`beforeAfter`,`binary`,`candidateId`,`canonical`,`claimIds`,`completed`,`contradiction`,`decoded-json`,`deliveryRoute`,`dependencyPolicy`,`dueVerification`,`evaluates`,`execute`,`executiveSummary`,`external-effect`,`finding`,`humanActor`,`inputBundle`,`issuedEvidence`,`learning`,`localClaimId`,`localRecommendationId`,`locator`,`measurementIds`,`nextObservation`,`nodeId`,`nonPlaceholder`,`not-applicable`,`not-required`,`observationRequest`,`omission`,`omitted`,`operate-experience-surface`,`operate-experience-view`,`operating-assignment`,`operating-evidence-resolution`,`operating-finding`,`operating-review`,`operating-review-read.schema.json#/$defs/dispositionChoice/properties/choiceId`,`operating-review-read.schema.json#/$defs/eventHead`,`operating-review-read.schema.json#/$defs/hash`,`operating-review-read.schema.json#/$defs/text`,`parityProof`,`policyBinding`,`proposed`,`provider-call`,`raw`,`recommendationIds`,`replayCheckpoint`,`reversible`,`reviewSubmitArguments`,`riskIds`,`rollbackClass`,`safeErrorContext`,`submitted`,`support`,`terminalOutcome`,`today`,`transition`,`unavailable`,`workspace`,`#/$defs/analysisProfile`,`#/$defs/artifactMetadata`,`#/$defs/artifactProvenance`,`#/$defs/assignmentDependency`,`#/$defs/cycleIdentityArguments`,`#/$defs/deltaRef`,`#/$defs/digest`,`#/$defs/effect`,`#/$defs/endpoint`,`#/$defs/evidenceData`,`#/$defs/evidenceGapSummary`,`#/$defs/evidenceKind`,`#/$defs/evidenceProvenance`,`#/$defs/evidenceRefIds`,`#/$defs/evidenceRequirement`,`#/$defs/evidenceSource`,`#/$defs/executiveBoardArtifact`,`#/$defs/executiveBoardClaimRef`,`#/$defs/executiveBoardDissent`,`#/$defs/executor`,`#/$defs/exportData`,`#/$defs/historyData`,`#/$defs/inboxActionLocator`,`#/$defs/inboxNavigationLocator`,`#/$defs/inboxUnavailableReason`,`#/$defs/intelligenceContext`,`#/$defs/nextAction`,`#/$defs/outcomeData`,`#/$defs/outcomesData`,`#/$defs/replayCheckpoint`,`#/$defs/resultRequirement`,`#/$defs/roleGapSummary`,`#/$defs/safeError`,`#/$defs/safeErrorContext`,`#/$defs/searchData`,`#/$defs/snapshotRef`,`#/$defs/subject`,`#/$defs/terminalDisposition`,`#/$defs/unavailableReason`,`../v2.0.0/operate-allowed-action.schema.json`,`../v2.0.0/operate-experience-view.schema.json#/$defs/boundAllowedAction`,`../v2.0.0/operate-experience-view.schema.json#/$defs/deepLink`,`../v2.0.0/operate-experience-view.schema.json#/$defs/domainMetric`,`2`,`32`,`8`,`ANCESTRY_MISMATCH`,`ARTIFACT_HASH_MISMATCH`,`ARTIFACT_NOT_FOUND`,`CAPABILITY_DENIED`,`CONSENT_REQUIRED`,`EVIDENCE_LOCATOR_INVALID`,`EVIDENCE_PROVIDER_UNAVAILABLE`,`EVIDENCE_RESOLVER_UNAVAILABLE`,`EVIDENCE_RESOLVER_UNREGISTERED`,`EVIDENCE_RESOLVER_VERSION_UNSUPPORTED`,`EVIDENCE_SOURCE_SCOPE_MISMATCH`,`LINE_RANGE_INVALID`,`OBJECT_TYPE_MISMATCH`,`OpenPlanr Operate 2.0 Phase 1 operating assignment`,`OpenPlanr Operate 2.0 evidence resolution outcome`,`OpenPlanr Operate 2.0 owner-bound review read`,`OpenPlanr Operate access-safe product experience`,`PATH_NOT_FOUND`,`REVISION_NOT_FOUND`,`Runtime-owned outcome envelope. A rejection contains safe structured context only; a resolution binds one immutable evidence Artifact.`,`Runtime-projected pre-commit Review data for the exact immutable human owner. The runtime owns readAt.`,`SECRET_DETECTED`,`SENSITIVITY_BLOCKED`,`SOURCE_NOT_FOUND`,`SOURCE_STALE`,`SOURCE_UNTRACKED`,`UNSUPPORTED_EVIDENCE_KIND`,`^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`,`^(?:fnd|dec|act)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^.*\\S.*$`,`^aprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^pevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^rrc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^sub_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^xres_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`acceptedArtifactIds`,`acceptedArtifacts`,`acceptedEvidenceKinds`,`acceptedFreshness`,`acceptedSourceContracts`,`accessSafe`,`accountabilityDisposition`,`act`,`actionHypotheses`,`actionSummary`,`actionable`,`activeCycle`,`actorMatchesOwner`,`added`,`advisorArtifactIds`,`affectedTargetIds`,`allowedAction`,`allowedEvidence`,`allowedRecovery`,`allowedTerminalOutcomes`,`alternativeDispositions`,`appliesToOutcomes`,`approvalExecution`,`approvals`,`artifact.read`,`artifact.submit`,`artifactIds`,`artifactMetadata`,`artifactProvenance`,`artifactQualityBar`,`assignments`,`assumptionIds`,`attempt`,`attemptPolicy`,`attentionId`,`authenticity`,`authoritativeForMutation`,`authorityBoundary`,`availableAssignments`,`availableAt`,`baselineArtifactId`,`baselineHash`,`blockingSubjectIds`,`boardId`,`boundAllowedAction`,`boundSubmission`,`boundSubmissionHash`,`boundaries`,`bundleArtifactId`,`bundleCanonicalHash`,`bundleId`,`bundleRawHash`,`byStage`,`capabilities`,`capabilityCeiling`,`causalLink`,`causationId`,`chairSynthesis`,`challengerArtifactId`,`challengerFindingIds`,`challengerFindings`,`checkpoint`,`checkpointVerified`,`conditions`,`conflict`,`contained-execution`,`context-capture`,`contract`,`contractRef`,`contradictedClaims`,`correlationId`,`currentGeneration`,`currentValue`,`decide`,`decisionOwnerActorId`,`decisionSummary`,`deepLinks`,`deltaValue`,`dependencyActionIds`,`dependsOnActionHypothesisIds`,`derivedAt`,`detects`,`dispositionChoice`,`dissentSummary`,`edgeId`,`edges`,`else`,`endSequence`,`engine`,`entityType`,`evaluation`,`evaluationRules`,`eventCount`,`eventHash`,`eventIds`,`evidenceData`,`evidenceGapIds`,`evidenceGapSummary`,`evidenceInputAbsence`,`evidenceProvenance`,`evidenceSource`,`executionResultId`,`executions`,`expectedReadEventHead`,`expectedTargetHash`,`exportData`,`externalEffectsAuthorized`,`failureModes`,`filterDimensions`,`finalEventHashMatches`,`finalHead`,`findingSummary`,`forbiddenEffects`,`formats`,`from`,`future-analysis`,`future-observation`,`futureRequirement`,`gapSummary`,`gates`,`generationCount`,`govern`,`health`,`historyData`,`https://openplanr.dev/schemas/v2.0.0/operate-experience-view.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-assignment.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-evidence-resolution.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-review-read.schema.json`,`human-external`,`implementationRef`,`in_progress`,`inboundEdgeIds`,`incidentEdgeCount`,`inputAbsences`,`inspection`,`insufficientEvidence`,`integrityBoundary`,`intentEventId`,`issuedAt`,`itemId`,`known`,`learn`,`learningId`,`ledger`,`lensAbsences`,`limits`,`linked`,`linkedEvidence`,`liveAccessUsed`,`local-claim`,`localActionHypothesisId`,`localAlternativeId`,`localDecisionId`,`lock`,`manual`,`materializedEventId`,`matrixHash`,`matrixId`,`maxAttempts`,`maxEdges`,`maxNodes`,`maximumEvidenceRefs`,`maximumItems`,`method`,`metric`,`minimumEvidenceRefs`,`minimumItems`,`minimumSatisfied`,`mode`,`model`,`necessity`,`nextState`,`nodes`,`nonce`,`none`,`not-authorized`,`not-available`,`notRequired`,`note`,`nullableText`,`objective`,`objectiveId`,`observationIds`,`observe`,`observe-only`,`observed`,`omissionId`,`operate-action-display-workspace`,`operate-cycle-display-workspace`,`operate-executive-board-display-surface`,`operate-experience-audit-display-surface`,`operate-experience-display-surface`,`operate-experience-preview`,`operate-recovery-display-surface`,`operate-review-bound-submission`,`operate-review-bound-submission.schema.json`,`operate-review-display-workspace`,`operating-action.schema.json`,`operating-advisor-result`,`operating-artifact.schema.json`,`operating-assignment.schema.json`,`operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/reason`,`operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/recoveryDisposition`,`operating-assignment.schema.json#/$defs/roleInputAbsence/properties/reason`,`operating-assignment.schema.json#/$defs/roleInputAbsence/properties/recoveryDisposition`,`operating-assignment.schema.json#/$defs/roleInputAbsence/properties/roleId`,`operating-challenger-review`,`operating-cycle.schema.json`,`operating-decision-ledger`,`operating-delivery-route`,`operating-evidence-candidate.schema.json#/$defs/implementationRef`,`operating-evidence-resolution.schema.json#/$defs/safeErrorContext`,`operating-execution-result`,`operating-governed-operation`,`operating-governed-operation.schema.json`,`operating-governed-operation.schema.json#/$defs/versionedId`,`operating-review-read.schema.json`,`operating-review-read.schema.json#/$defs/cycleId`,`operating-review-read.schema.json#/$defs/decisionSummary`,`operating-review-read.schema.json#/$defs/dissentSummary`,`operating-review-read.schema.json#/$defs/findingSummary`,`operating-review-read.schema.json#/$defs/gapSummary`,`operating-review-read.schema.json#/$defs/reviewSubmitArguments`,`operating-review-read.schema.json#/$defs/title`,`operating-trace-matrix`,`operating-trace-matrix.schema.json`,`operating-work-ledger`,`operationHash`,`outOfScope`,`outboundEdgeIds`,`outcomeData`,`outcomesData`,`outsideBoundary`,`ownerCycle`,`ownerLabel`,`ownerPid`,`parties`,`planHash`,`planId`,`planning-work`,`preconditionArtifactIds`,`previewHash`,`previewId`,`previousEventHash`,`prior`,`priorValue`,`priority`,`probable`,`projectionMode`,`proofState`,`questionIds`,`queued`,`read`,`readActionDigest`,`readAt`,`reader`,`recoverableGeneration`,`recoveryState`,`recoveryVersion`,`redactionCount`,`remaining`,`removed`,`repositoryId`,`requiredDispositions`,`requiredEvidence`,`requiredParties`,`requiredQuestions`,`requirements`,`resolution-failed`,`resolutionError`,`resolvedClaims`,`resolverId`,`restrictedEvidence`,`restrictedNodes`,`resultArtifactId`,`resultHash`,`retry`,`roleGapSummary`,`roleInputAbsence`,`rollbacks`,`rolled-back`,`route`,`routeHash`,`routeId`,`runtimeStateHash`,`safeError`,`searchData`,`seat`,`semanticHash`,`skillId`,`sourceBoardHash`,`sourceCycleId`,`sourceFindingIds`,`sourceId`,`sourceKind`,`sourceReadEventHead`,`sourceRecommendationRefs`,`sourceRootId`,`speculative`,`staleEvidence`,`startSequence`,`stateParityVerified`,`strongly-supported`,`subjectIds`,`succeeded`,`supportedClaims`,`tail`,`terminalAssignments`,`text/html; charset=utf-8`,`timeoutMs`,`timestamp`,`to`,`trigger`,`truncated`,`uncertaintyCount`,`uncertaintyId`,`uncertaintyIds`,`understand`,`unresolvedClaims`,`unresolvedGaps`,`unverifiedClaims`,`unverifiedOutcomes`,`value`,`verificationPlanHash`,`verifiedActions`,`verifiedEvidence`,`verifiedOutcomes`,`verify`,`versionedId`,`viewId`,`why`,`whyNow`,`#/$defs/actionApproval`,`#/$defs/actionApproveArguments`,`#/$defs/actionApproveSuccess`,`#/$defs/actionData`,`#/$defs/actionDependency`,`#/$defs/actionExecuteArguments`,`#/$defs/actionExecuteSuccess`,`#/$defs/actionRollbackArguments`,`#/$defs/actionRollbackSuccess`,`#/$defs/actionSummary`,`#/$defs/actionsData`,`#/$defs/advisorOutputContract`,`#/$defs/analysisRubric`,`#/$defs/artifactGetArguments`,`#/$defs/artifactGetSuccess`,`#/$defs/artifactRepresentation`,`#/$defs/assignment`,`#/$defs/assignmentClaim`,`#/$defs/assignmentClaimArguments`,`#/$defs/assignmentClaimSuccess`,`#/$defs/assignmentSubmitArguments`,`#/$defs/assignmentSubmitSuccess`,`#/$defs/attention`,`#/$defs/attentionCounts`,`#/$defs/beforeAfter`,`#/$defs/blockedReasons`,`#/$defs/blocker`,`#/$defs/boundAllowedAction`,`#/$defs/candidateId`,`#/$defs/capability`,`#/$defs/chairOutputContract`,`#/$defs/challengerOutputContract`,`#/$defs/choice`,`#/$defs/claim`,`#/$defs/claimCounts`,`#/$defs/contextCaptureOutputContract`,`#/$defs/corruptReasons`,`#/$defs/cycle`,`#/$defs/cycleData`,`#/$defs/cycleGetSuccess`,`#/$defs/cycleLink`,`#/$defs/cycleResumeSuccess`,`#/$defs/cycleStartArguments`,`#/$defs/cycleStartSuccess`,`#/$defs/cyclesData`,`#/$defs/data`,`#/$defs/decisionRef`,`#/$defs/decisionSummary`,`#/$defs/dependency`,`#/$defs/dependencyPolicy`,`#/$defs/dispositionChoice`,`#/$defs/dissentSummary`,`#/$defs/domainMetric`,`#/$defs/dueVerification`,`#/$defs/edge`,`#/$defs/effectSummary`,`#/$defs/error`,`#/$defs/errorCode`,`#/$defs/evidence`,`#/$defs/evidenceCounts`,`#/$defs/evidenceInputAbsence`,`#/$defs/executiveBoard`,`#/$defs/executiveBoardActionHypothesis`,`#/$defs/executiveBoardAlternativeDisposition`,`#/$defs/executiveBoardChairArtifact`,`#/$defs/executiveBoardChairDecision`,`#/$defs/executiveBoardChairSynthesis`,`#/$defs/executiveBoardChallengerFinding`,`#/$defs/executiveBoardChallengerFindings`,`#/$defs/executiveBoardEvidenceGap`,`#/$defs/executiveBoardGap`,`#/$defs/executiveBoardRecommendationRef`,`#/$defs/executiveBoardRoleGap`,`#/$defs/executiveBoardSeat`,`#/$defs/executiveBoardSeatAbsence`,`#/$defs/executiveSummary`,`#/$defs/findingSummary`,`#/$defs/gapSummary`,`#/$defs/gate`,`#/$defs/history`,`#/$defs/historyAuthority`,`#/$defs/historyChange`,`#/$defs/historyPrior`,`#/$defs/historyResult`,`#/$defs/inbox`,`#/$defs/inboxData`,`#/$defs/inboxEvidence`,`#/$defs/inboxParty`,`#/$defs/incompatibleReasons`,`#/$defs/inputAbsence`,`#/$defs/inputBundle`,`#/$defs/intelligenceInputBundleOutputContract`,`#/$defs/issuedEvidence`,`#/$defs/learning`,`#/$defs/lensAbsence`,`#/$defs/localAnalysisId`,`#/$defs/localClaimId`,`#/$defs/localFindingId`,`#/$defs/localMeasurementId`,`#/$defs/localRecommendationId`,`#/$defs/localRiskId`,`#/$defs/locator`,`#/$defs/mandate`,`#/$defs/mandateCapability`,`#/$defs/mandateForbiddenEffect`,`#/$defs/metricChange`,`#/$defs/nextObservation`,`#/$defs/node`,`#/$defs/nullableDeepLink`,`#/$defs/observationRequest`,`#/$defs/offlineReasons`,`#/$defs/outcome`,`#/$defs/outcomeMetric`,`#/$defs/parityProof`,`#/$defs/partialReasons`,`#/$defs/party`,`#/$defs/policyBinding`,`#/$defs/proof`,`#/$defs/proofCounts`,`#/$defs/rationale`,`#/$defs/readOnlyReasons`,`#/$defs/recommendation`,`#/$defs/recoveryInspectSuccess`,`#/$defs/recoveryInspection`,`#/$defs/replay`,`#/$defs/replayTail`,`#/$defs/requestBinding`,`#/$defs/resolutionId`,`#/$defs/reviewGetSuccess`,`#/$defs/reviewIdentityArguments`,`#/$defs/reviewSubmitSuccess`,`#/$defs/revisit`,`#/$defs/roleInputAbsence`,`#/$defs/searchResult`,`#/$defs/seatCounts`,`#/$defs/seatStatus`,`#/$defs/sharedTruthSummary`,`#/$defs/stage`,`#/$defs/stageCounts`,`#/$defs/staleReasons`,`#/$defs/submissionAcceptance`,`#/$defs/summary`,`#/$defs/summaryOmissions`,`#/$defs/terminalAbsence`,`#/$defs/terminalOutcome`,`#/$defs/threshold`,`#/$defs/todayData`,`#/$defs/toolName`,`#/$defs/transition`,`#/$defs/transitionTarget`,`#/$defs/uncertainty`,`#/$defs/verification`,`#/$defs/verificationCounts`,`#/$defs/workDisposition`,`#/properties/appliedChoiceHash`,`#/properties/appliedChoiceId`,`../v2.0.0/operate-api-envelope.schema.json#/$defs/cycleView/properties/progress`,`../v2.0.0/operate-experience-view.schema.json#/$defs/attention`,`../v2.0.0/operate-experience-view.schema.json#/$defs/claim`,`../v2.0.0/operate-experience-view.schema.json#/$defs/evidence`,`../v2.0.0/operate-experience-view.schema.json#/$defs/executiveBoard`,`../v2.0.0/operate-experience-view.schema.json#/$defs/rationale`,`1000`,`3`,`5`,`ACTION_NOT_FOUND`,`ACTION_REVISION_MISMATCH`,`APPROVAL_EXPIRED`,`APPROVAL_INVALID`,`APPROVAL_REQUIRED`,`ASSIGNMENT_ALREADY_CLAIMED`,`ASSIGNMENT_ALREADY_SUBMITTED`,`ASSIGNMENT_NOT_AVAILABLE`,`Access-safe identity graph joining operating requirements and absences to seats, accepted work, proof, decisions, governed actions, and verification. Every edge is listed once and reciprocally indexed by both endpoint nodes.`,`Access-safe, content-hashed projection over either one verified pending operating-review-read or one immutable terminal operating-review-receipt and its exact actor-bound experience view.`,`Additive wrapper that binds one exact advertised Review choice and optional owner note to the source Event head without changing the legacy operate.review.submit tool arguments.`,`CAPABILITY_GRANT_CONSUMED`,`CAPABILITY_GRANT_INVALID`,`CAPABILITY_PROVIDER_UNAVAILABLE`,`CAPABILITY_UNAVAILABLE`,`CONCURRENT_MODIFICATION`,`CONTRACT_VERSION_UNSUPPORTED`,`CYCLE_NOT_FOUND`,`CYCLE_TERMINAL`,`DOMAIN_CONTRACT_UNSUPPORTED`,`EVIDENCE_RESOLUTION_FAILED`,`EXECUTOR_UNAVAILABLE`,`OPERATE_CONTRACT_INCOMPATIBLE`,`OPERATE_OFFLINE`,`OPERATE_PROJECTION_BLOCKED`,`OPERATE_PROJECTION_PARTIAL`,`OPERATE_PROJECTION_STALE`,`OPERATE_READ_ONLY`,`OPERATE_STATE_CORRUPT`,`OPERATE_TRACE_ACCESS_RESTRICTED`,`OPERATE_TRACE_ROLE_NOT_SELECTED`,`OPERATE_TRACE_TYPED_ABSENCE`,`OPERATING_PROVIDER_INPUT_INVALID`,`OPERATING_PROVIDER_UNAVAILABLE`,`OPERATING_SCOPE_INVALID`,`OPERATION_CONFLICT`,`OPERATION_UNCERTAIN`,`OpenPlanr Operate 2.0 API envelope`,`OpenPlanr Operate 2.0 allowed action`,`OpenPlanr Operate 2.0 bounded reciprocal trace matrix`,`OpenPlanr Operate 2.0 cycle-scoped review`,`OpenPlanr Operate 2.0 execution result`,`OpenPlanr Operate 2.0 governed operation`,`OpenPlanr Operate 2.0 owner-bound review receipt`,`OpenPlanr Operate 2.0 persistent finding`,`OpenPlanr Operate 2.0 rebuildable persistent-work ledger`,`OpenPlanr Operate delivery route`,`OpenPlanr Operate governed experience preview`,`OpenPlanr browser-verifiable Operate display surface`,`OpenPlanr browser-verifiable access-safe audit display surface`,`OpenPlanr browser-verifiable executive board display surface`,`OpenPlanr browser-verifiable owner Review display workspace`,`OpenPlanr browser-verifiable recovery display surface`,`OpenPlanr browser-verifiable sanitized Action workspace`,`OpenPlanr browser-verifiable sanitized Cycle workspace`,`OpenPlanr dashboard Operate experience surface`,`OpenPlanr owner-bound Review submission`,`POLICY_EVALUATION_DEFERRED`,`POLICY_EVALUATION_REJECTED`,`POLICY_PROHIBITED`,`POLICY_PROVIDER_UNAVAILABLE`,`Post-commit proof of the exact human owner's Review disposition. The runtime owns receiptId and committedAt.`,`RESULT_CONTRACT_INVALID`,`REVIEW_NOT_AUTHORIZED`,`REVIEW_NOT_FOUND`,`REVIEW_NOT_PENDING`,`REVIEW_TERMINAL`,`ROLLBACK_NOT_ELIGIBLE`,`Runtime-owned pre-commit Review read and exact applied choice proof retained for byte-identical receipt replay. Receipt identity, post-commit Event head, and commit time derive from the committed Event and are intentionally excluded to avoid a hash cycle.`,`STATE_TRANSITION_INVALID`,`SUBMISSION_ID_CONFLICT`,`^(?:ceiling_[a-f0-9]{24}|grant-[A-Za-z0-9][A-Za-z0-9._-]{2,127})$`,`^(?:xres|rbres)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^[0-9]+\\.[0-9]+\\.[0-9]+$`,`^[A-Z][A-Z0-9_]*$`,`^analysis:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$`,`^claim:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$`,`^droute_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^evc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^evs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^finding:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$`,`^ibd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^ipl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^measurement:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$`,`^recommendation:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$`,`^risk:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$`,`^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^tro_[a-f0-9]{32}$`,`^trx_[a-f0-9]{32}$`,`^xbr_[a-f0-9]{32}$`,`^xprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`^xview_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$`,`action.approve success`,`action.execute success`,`action.rollback success`,`actionApproval`,`actionApproveArguments`,`actionApproveSuccess`,`actionData`,`actionDependency`,`actionExecuteArguments`,`actionExecuteSuccess`,`actionIdentity`,`actionRollbackArguments`,`actionRollbackSuccess`,`actionsData`,`advisorOutputContract`,`all-required`,`allowed`,`alternatives`,`always`,`analysis`,`approved review`,`artifact.get success`,`artifactGetArguments`,`artifactGetSuccess`,`artifactRepresentation`,`assigned-to`,`assignment.claim success`,`assignment.submit success`,`assignmentClaim`,`assignmentClaimArguments`,`assignmentClaimSuccess`,`assignmentDependency`,`assignmentSubmitArguments`,`assignmentSubmitSuccess`,`attentionCounts`,`authorized`,`blockedReasons`,`blocker`,`body-never-projected`,`cancelled review`,`canonical bytes`,`carried-forward`,`chairOutputContract`,`challenge`,`challengerOutputContract`,`challenges`,`changes requested review`,`choice`,`claimCounts`,`claimed`,`clear-stale-lock`,`compatibility`,`compensating`,`contested`,`contextCaptureOutputContract`,`contradicted-by`,`corruptReasons`,`custody`,`customer-contact`,`cycle.get success`,`cycle.resume success`,`cycle.start success`,`cycleData`,`cycleGetSuccess`,`cycleIdentityArguments`,`cycleLink`,`cycleResumeSuccess`,`cycleStartArguments`,`cycleStartSuccess`,`cycleView`,`cyclesData`,`date`,`decides`,`decisionRef`,`declares`,`deltaRef`,`dependency`,`dependentRequired`,`digest`,`dispatching`,`disposes`,`divergent`,`domainMetric`,`edge`,`empty`,`endpoint`,`errorCode`,`event-type`,`evidence-ref`,`evidenceCounts`,`evidenceRequirement`,`executiveBoardActionHypothesis`,`executiveBoardAlternativeDisposition`,`executiveBoardArtifact`,`executiveBoardChairArtifact`,`executiveBoardChairDecision`,`executiveBoardChairSynthesis`,`executiveBoardChallengerFinding`,`executiveBoardChallengerFindings`,`executiveBoardClaimRef`,`executiveBoardDissent`,`executiveBoardEvidenceGap`,`executiveBoardGap`,`executiveBoardRecommendationRef`,`executiveBoardRoleGap`,`executiveBoardSeat`,`executiveBoardSeatAbsence`,`failure`,`gap`,`gate`,`git.read`,`governed`,`governed-by`,`governed-execution`,`healthy`,`historyAuthority`,`historyChange`,`historyPrior`,`historyResult`,`https://openplanr.dev/schemas/v1.2.0/operate-action-display-workspace.schema.json`,`https://openplanr.dev/schemas/v1.2.0/operate-cycle-display-workspace.schema.json`,`https://openplanr.dev/schemas/v1.2.0/operate-executive-board-display-surface.schema.json`,`https://openplanr.dev/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json`,`https://openplanr.dev/schemas/v1.2.0/operate-experience-display-surface.schema.json`,`https://openplanr.dev/schemas/v1.2.0/operate-experience-surface.schema.json`,`https://openplanr.dev/schemas/v1.2.0/operate-recovery-display-surface.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operate-allowed-action.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operate-api-envelope.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operate-experience-preview.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operate-review-bound-submission.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operate-review-display-workspace.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-delivery-route.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-execution-result.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-finding.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-governed-operation.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-review-receipt.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-review.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-trace-matrix.schema.json`,`https://openplanr.dev/schemas/v2.0.0/operating-work-ledger.schema.json`,`identity-redacted`,`immutable-review-event`,`inboxActionLocator`,`inboxData`,`inboxEvidence`,`inboxNavigationLocator`,`inboxParty`,`inboxUnavailableReason`,`incompatibleReasons`,`inputAbsence`,`insufficient`,`intelligenceInputBundleOutputContract`,`intent-recorded`,`issued-as`,`lens`,`lensAbsence`,`localAnalysisId`,`localFindingId`,`localMeasurementId`,`localRiskId`,`locked`,`mandateCapability`,`mandateForbiddenEffect`,`materialized`,`measurements`,`metadata only`,`metricChange`,`nextAction`,`node`,`nodeKind`,`nonBlankText`,`nullableDeepLink`,`nullableShortText`,`objectArray`,`observed-as`,`offlineReasons`,`openplanr:operate-action-display-workspace:1.0.0`,`openplanr:operate-cycle-display-workspace:1.0.0`,`openplanr:operate-executive-board-display-surface:1.0.0`,`openplanr:operate-experience-audit-display-surface:1.0.0`,`openplanr:operate-experience-display-surface:1.0.0`,`openplanr:operate-recovery-display-surface:1.0.0`,`openplanr:operate-review-display-workspace:1.0.0`,`operate-action-workspace`,`operate-allowed-action`,`operate-api-envelope`,`operate-cycle-workspace`,`operate-executive-board`,`operate-experience-surface.schema.json`,`operate-experience-view.schema.json#/$defs/accessLevel`,`operate-experience-view.schema.json#/$defs/boundAllowedAction`,`operate-experience-view.schema.json#/$defs/claim`,`operate-experience-view.schema.json#/$defs/evidence`,`operate-experience-view.schema.json#/$defs/version`,`operate-planning-decision-revisit`,`operate-planning-delivery-verifier`,`operate-recovery`,`operate-review-workspace`,`operate-shared-truth-summary`,`operating-action`,`operating-approval-record.schema.json`,`operating-approval-requirement.schema.json`,`operating-context-capture`,`operating-decision`,`operating-decision.schema.json`,`operating-delivery-route.schema.json`,`operating-execution-result.schema.json#/$defs/effectSummary`,`operating-finding.schema.json`,`operating-finding.schema.json#/$defs/target`,`operating-intelligence-input-bundle`,`operating-policy-evaluation.schema.json`,`operating-review-read.schema.json#/$defs/actionSummary`,`operating-review-read.schema.json#/$defs/dispositionChoice`,`operating-review-read.schema.json#/$defs/humanActor`,`operating-review-read.schema.json#/$defs/scope`,`operating-review-read.schema.json#/$defs/seatStatus`,`operating-review-receipt.schema.json`,`operating-work-ledger.schema.json`,`operating-work-ledger.schema.json#/$defs/cycleLink`,`outcomeMetric`,`partialReasons`,`party`,`payment.change`,`pending review`,`planr.read`,`preferred`,`preview`,`produces`,`production.deploy`,`proofCounts`,`proposes`,`publicActor`,`publish`,`question-coverage`,`quiet`,`raw bytes`,`readOnlyReasons`,`records`,`recovery.inspect success`,`recoveryInspectSuccess`,`recoveryInspection`,`refused`,`rejected review`,`repairable`,`replayProjection`,`replayTail`,`repository.read`,`repository.write`,`requirement`,`restore-generation`,`restored`,`resultRequirement`,`review-only`,`review.get success`,`review.submit success`,`reviewGetSuccess`,`reviewIdentityArguments`,`reviewSubmit`,`reviewSubmitSuccess`,`risks`,`rubricClauses`,`safeToken`,`searchResult`,`seatCounts`,`separately-governed-follow-on`,`sharedTruthSummary`,`ship`,`shortText`,`snapshotRef`,`source-dispositions`,`spend`,`stage`,`stageCounts`,`staleReasons`,`standard`,`submissionAcceptance`,`submissionState`,`successBase`,`summaryOmissions`,`supported-by`,`synthesis`,`terminalAbsence`,`todayData`,`toolName`,`touched`,`transitionTarget`,`unowned`,`verificationCounts`,`verified decoded JSON`,`verified-by`,`workDisposition`]),L_=1e6,R_=5e5,z_=256,B_=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,V_=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/u;function H_(){let e=TypeError(`Dashboard schema token payload is invalid.`);return Object.defineProperty(e,"code",{value:`E_DASHBOARD_SCHEMA_TOKEN_INVALID`,enumerable:!0,configurable:!1,writable:!1}),e}function U_(e){if(typeof e!=`string`||e.length===0||e.length>L_||e.length%4!=0||!B_.test(e))throw H_();let t;try{if(t=globalThis.atob(e),globalThis.btoa(t)!==e)throw H_()}catch{throw H_()}let n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1){let r=t.charCodeAt(e);if(r>255)throw H_();n[e]=r}return n}function W_(e){let t=U_(e),n=0,r=0,i=()=>{if(n>=t.length)throw H_();let e=t[n];return n+=1,e},a=()=>{let e=0,t=1;for(let n=0;n<5;n+=1){let r=i();if(e+=(r&127)*t,e>4294967295)throw H_();if(!(r&128)){if(n>0&&r===0)throw H_();return e}t*=128}throw H_()},o=()=>{let e=I_[a()];if(typeof e!=`string`)throw H_();return e},s=e=>{if(r+=1,r>R_||e>z_)throw H_();switch(i()){case 0:return null;case 1:return!1;case 2:return!0;case 3:{let e=o();if(!V_.test(e))throw H_();let t=Number(e);if(!Number.isFinite(t)||JSON.stringify(t)!==e)throw H_();return t}case 4:return o();case 5:{let t=a();if(t>R_-r)throw H_();let n=Array(t);for(let r=0;r<t;r+=1)n[r]=s(e+1);return n}case 6:{let t=a();if(t>R_-r)throw H_();let n={};for(let r=0;r<t;r+=1){let t=o();if(Object.hasOwn(n,t))throw H_();Object.defineProperty(n,t,{value:s(e+1),enumerable:!0,configurable:!0,writable:!0})}return n}default:throw H_()}},c=s(0);if(n!==t.length||!c||typeof c!=`object`||Array.isArray(c))throw H_();return c}var G_=W_(`BgpCBENBBPYKRAYCGgSvCx4EJBgEwgkABAYHAQQFBAR4BH8EqgEEcwIGBHgGAgAEAw4FDgT9AgT7AgT8AgT5AgT6AgT4AgT/AgSAAwT1AgT2AgT3AgT+AgTXAwTWA38GAKoBBgQABAMXAwwPA0xIBgELBKUCcwYCAAQDDgUGBHYEwQIE4wEExwQEqAQEvAMZBQ4GAhgE/QICBgN4BgEFBP0CfwYBAQShCHMGAQUE4wEGAhgE+wICBgN4BgEFBPsCfwYBAQTbBHMGAQUEdgYCGAT8AgIGA3gGAQUE/AJ/BgEBBNsEcwYBBQTjAQYCGAT5AgIGA3gGAQUE+QJ/BgEBBIkIcwYBBQTBAgYCGAT6AgIGA3gGAQUE+gJ/BgEBBIsIcwYBBQTBAgYCGAT4AgIGA3gGAQUE+AJ/BgEBBIQIcwYBBQR2BgIYBP8CAgYDeAYBBQT/An8GAQEE+AhzBgEFBHYGAhgEgAMCBgN4BgEFBIADfwYBAQSKBHMGAQUE4wEGAhgE9QICBgN4BgEFBPUCfwYBAQT4B3MGAQUE4wEGAhgE9gICBgN4BgEFBPYCfwYBAQT8B3MGAQUE4wEGAhgE9wICBgN4BgEFBPcCfwYBAQT+B3MGAQUE4wEGAhgE/gICBgN4BgEFBP4CfwYCAAQGBwFzBgEFBHYGAhgE1wMCBgN4BgEFBNcDfwYEAAQGBwEEBQEEvAICBgG8AgYBAQRdcwYBBQS8AwYCGATWAwIGA3gGAQUE1gN/BgIABAYHAXMGAQUEwQJFBg+7CgYEAAQGBwEEBQUEOwTHAwTjBwTTBgQ6AgYGOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBF0pBgEBBF0qBgEzBQIGAQEEXQYBDwNvxwMGAwAECBYCCQYBAQRd4wcGBAAEBgcBBAUBBBECBgERBgEFBMUG0wYGAgAEAw4FAgSJDATZCzoGAQEEXaIEBgIABAMOBQQE7AUEmgcEqwYE4wa4CgYEAAQGBwEEBQEELwIGAS8GAQEEXZUKBgQABAYHAQQFAgRTBGsCBgJTBgIABAMLBLABawYBAQSJBJgKBgQABAYHAQQFBgRTBIoDBGsEZgSnAQSZAgIGBlMGAgAEAwsEsAGKAwYCAAQDCwSoBWsGAQEEiQRmBgEBBF2nAQYCAAQDDgUCBOgBBJsEmQIGAgAEAwsEoAWOCgYFAAQGBwEEBQUEPASFAgRrBDsEUwIGBTwGAgAEAwsEaYUCBgIABAMOBQQEyAQEnQQEwgIEoQRrBgEBBIkEOwYBAQS9AVMGAgAFAgQDBAoLBLABMwUBBgIiBgICBgFrBgICBgERBgEFBJgEBAUBBBEEBQEEayMGAQIGAVMGAQAEA/cLBgQABAYHAQQFBAR7BC8EawQ7AgYEewYCAAQDCwSXAi8GAgAEAwsElgJrBgEBBN0COwYBAQS9AcwEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYCAAQDCwSWAmsGAQEE3QI7BgEBBL0BWgYCAAQDDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAoIKBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAgAEAwsEP/wJBgQABAYHAQQFAgQwBGQCBgMwBgEBBIIEZAYBDgUDBJABBEAExgHSAgYEAAQGBwEEBQUE0AEEmAcE2QMEkAYEkwYCBgXQAQYCAAQDCwSeA5gHBgIABAMLBD/ZAwYCAAQDCwSpApAGBgIABAMLBKoFkwYGAgAEAwsEP4AKBgQABAYHAQQFAQQwAgYBMAYBAQSCBIMKBgQABAYHAQQFAwQwBNkDBNABAgYDMAYBAQSCBNkDBgIABAMLBKkC0AEGAgAEAwsEngPeCwYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQRdEQYCAAQDDgUCBJgEBJsCmgEGAQEEXaoEBgQABAYHAQQFAwQyBBEEmgECBgMyBgEBBF0RBgEFBJsCmgEGAQEEXTsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db7QEBgQABAMXAwwPAxVIBgELBKUC`),K_=W_(`BgVCBENBBKcGRAYCGgS7BB4ELhgElQVFBhVYBgEOBQQEgwME8AIE6QIEV3AGAgAFAgQDBAoOBQIElwQAxgUGBAAEBgcBBAUGBDwEpQMElwEElgEEdQSAAQIGBjwGAQEEDaUDBgEBBA2XAQYBAQSkApYBBgIABAMdBCB1BgEBBCiAAQYCAAUCBAMECgsEP8cFBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYCAAUCBAMECgsEP9cFBgQABAYHAQQFAgQ1BDACBgI1BgEBBA0wBgEBBPMC4gUGBAAEBgcBBAUEBBEENQTNAQQ5AgYEEQYBDgUFBMQBBMAGBGQEMAQ2NQYBAQQNzQEGAQ4FBATRBASgBATLAwSlBDkGAQEEjQHEAQYEAAQGBwEEBRIErwIEHwTAAwRcBPoDBLMDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhKvAgYBAQQNHwYBDgUFBKACBLIBBJsBBLsBBFfAAwYBDgUFBLcGBNkHBKIHBNUHBLsBXAYBAQR9+gMGAwAECBYCCQYBAQQNswMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBNgElwEGARkFAgYBAAQKBgEBBKQClgEGAgAEAx0EIDsGAQEEvQGHAgYBAQTSAYQCBgEZBQIGAQAECgYBAQTZBEcGAwAFAgRJBAoQAxNNAwyJAQYDAAQIFgIJBgEBBA39AQYCAAQICQYBAQSTA3AGAQEE6gH1AQYCAAQICQYBAQSQAzkGAQEEjQE5BgIABAMLBJMENAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKE8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BjgYGBAAEBgcBBAUHBGcEyAEEdQSAAQTUAgRmBFgCBgdnBgEBBA3IAQYBAQQNdQYBAQQogAEGAgAFAgQDBAoLBD/UAgYCAAQSEAMTZgYBAQQNWAYBAQTSAY8GBgQABAYHAQQFAwSdAQTIAgTOAgIGA50BBgEOBQQE3QEE3AEE4gEE4QHIAgYBAQSSA84CBgEBBJIDMQYCAAQDCwQ/GgYDAAQDFwMMDwMVrAYGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEON4GBgQABQIEAwQKFwMMDwNuCwTWAZcBBgQABAYHAQQFAwQyBEoEmgECBgMyBgEBBA1KBgEBBA2aAQYBAQQNuAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BjsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQQNKQYBAQQNKgYBAQQ4HgYDAAQDFwMMDwNv`),q_=W_(`BglCBENBBPkKRAYCGgTtBh4ELhgE1AmcAQSmCQAEBgcBBAUJBBEEGwQhBJIGBPcBBPYBBIwCBN0GBNkFAgYJEQYBBQTtBhsGAQUELiEGAQUEJJIGBgEBBMEE9wEGAQEEwAT2AQYBAQTCBIwCBgEBBIkH3QYGARkFAgYBAAQKBgQABAMXAwwPA2ILBJsD2QUGAQEEwgQ=`),J_=W_(`BgpCBENBBPoKRAYCGgTvBh4ELhgEzwmcAQSlCQAEBgcBBAUFBBEEGwQhBHoEYQIGBREGAQUE7wYbBgEFBC4hBgEFBCR6BgEBBIwEYQYBAQSQAkUGFdYEBgUABAYHAQQFFgR0BBEEGwQhBJgBBFYELAQpBCoELwR7BDIEWARlBIgCBPADBNUCBNIHBGgEHwQ3BCcCBhZ0BgEFAhEGAQUEvAsbBgEFBC4hBgEFBCSYAQYBBQJWBgEABF8sBgEBBJwCKQYBAQScAioGAQEEuAsvBgEBBIQHewYCAAQDCwSXAjIGAQEEnAJYBgEBBLQLZQYCAAQDHQQgiAIGAQ4FAgTDAgSBA/ADBgEBBIIC1QIGAQEE9ALSBwYBAQT0AmgGAQEEggIfBgEOBQcE5AEEdgRSBJ8BBGME4AEE5wE3BgQABAgUAxUWAgkGAgAEAwsEpwInBgEBBKQIMwUCBgIiBgICBgGIAgYBBQTDAgQFAQSIAiMGAQIGAh8GAUgGAQUE5wEnBgECBgOLAQYCAgYCHAYBBQS2AVoGAQAECgQFAgQcBFqsAwYBJgMMjAMGAQAECgYCIgYCAgYBiAIGAQUEgQMEBQEEiAIjBgECBgQfBgEFBOcBVgYBBQE3BgGwAwYBBQTeCScGAQIGBIsBBgICBgEcBgEOBQQEkAEEwwEEQASRAQQFAQQcrAMGARQDE4wDBgEBBPwEwAEGAgIGAlUGAQUBTgYBFAMTBAUCBFUETicGBAAEBgcBBAUQBIsBBMUEBKcEBMsCBKwDBJ4BBIgBBK0BBIkBBLEBBE8EgQIE/QMEjQIEjAMEwAECBhCLAQYBAQTYA8UEBgEBBOsIpwQGAQEEwgjLAgYBAQTwCKwDBgMABAgUAxUJBgEBBJcIngEGAwAECBQDTAkGAQEEhweIAQYDAAQIFANMCQYBAQSGB60BBgMABAgUA2IJBgEBBI0JiQEGAwAECBQDYgkGAQEEiAexAQYDAAQIFANuCQYBAQS2C08GAwAECBQDbgkGAQEEtwuBAgYDAAQIFANuCQYBAQTfAv0DBgEZBQIGAQAECgYBAQSMB40CBgEBBP8IjAMGARkFAgYBAAQKBgEBBPwEwAEGAQEElAjFBAYEAAQGBwEEBQUEiQIEOgS3BQTQBQSVBgIGBYkCBgQABAYHAQQFAgQaBB4CBgIaBgEFBL8EHgYBBQQkOgYBAQScArcFBgEABF/QBQYBBQTzC5UGBgEFAacEBgQABAYHAQQFBwSiAgS4AwSgAwTGAwS+AwTIAwTlBwIGB6ICBgEBBMMEuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxPlBwYCAAQSEAMTywIGARkFAgYEAAQGBwEEBQMEHwQJBNcBAgYDHwYBBQRVCQYEAAQIJgMMFANMCQYBAQSFB9cBBgEABAoGBAAEBgcBBAUDBB8ECQTXAQIGAx8GAQUE7gEJBgIABAgUAxPXAQYBAQT9BKcKBgQABAYHAQQFBwT3AQT2AQSqAQSMAgT5AQTPAQSyBwIGB/cBBgEBBMAE9gEGAQEEggKqAQYBAQSKB4wCBgEBBIkH+QEGAQEEwwTPAQYBDgUCBIQLBP8LsgcGBAAECBQD1QEWAgkGAQEExAKtAQYEAAQGBwEEBQQE5gcE0QcE0AcEXAIGBOYHBgEBBJwC0QcGAQ4FBARkBMQBBE8E5ArQBwYBAQScAlwGAQEEwwS4BAYEAAQGBwEEBQUEEQTmAQS1AwTaBwTjAwIGBREGAQ4FAgRXBO4B5gEGAQ4FBARPBMQBBMoHBNEBtQMGAgAEEhADDNoHBgQABAgUA24WAgkGAQEEnALjAwYCAAQDCwSnAoAMBgQABAYHAQQFDAQRBBsE1QIEaAT4AwSCAwTtAwRPBLEBBG0EmAIEgQICBgwRBgEFBL0LGwYBBQQu1QIGAQEE9AJoBgEBBIIC+AMGAQEEgQmCAwYBAQTtCO0DBgEBBP0ITwYBAQSyCLEBBgEBBJkIbQYBAQSPCZgCBgEBBI4IgQIGAQEEhQmHDAYEAAQGBwEEBQwE2gEEhQEE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgME3wUCBgzaAQYCAAQSEAMThQEGAgAEEhADE+gCBgIABBIQAxOTAQYCAAQSEAMTVQYCAAQSEAMTjQMGAgAEEhADE2MGAgAEEhADE3kGAgAEEhADE4gDBgIABBIQAxObAQYCAAQSEAMThgMGAgAEEhADE98FBgQABAgmA5oDFAOaAwkGBAAEBgcBBAUKBBoE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgMCBgoaBgEOBQcE4gYE6AcE9AUEpAYEsgUE8gcEuAboAgYCAAQSEAMTkwEGAgAEEhADE1UGAgAEEhADE40DBgIABBIQAxNjBgIABBIQAxN5BgIABBIQAxOIAwYCAAQSEAMTmwEGAgAEEhADE4YDBgIABBIQAxPcCwYEAAQGBwEEBQgEHwS+BgS7BwS5BwTpBwTxBwTsBwQ3AgYIHwYBDgUEBNsCBNgCBJ8BBLYEvgYGAgAEEhADE7sHBgIABBIQAxO5BwYCAAQSEAMT6QcGAgAEEhADE/EHBgIABBIQAxPsBwYCAAQSEAMTNwYEAAQIFAMVFgIJBgIABAMLBKcC/gsGBAAEBgcBBAUJBIUBBOcBBI8CBEAEeQS+AQTlAgS2AQT+AwIGCYUBBgIABBIQAxPnAQYCAAQSEAMTjwIGAgAEEhADE0AGAgAEEhADE3kGAgAEEhADE74BBgIABBIQAxPlAgYCAAQSEAMTtgEGAgAEEhADE/4DBgIABBIQAxPRCgYEAAQGBwEEBQgEhQEEVQRXBJMBBN8BBFIEvQYEuQQCBgiFAQYCAAQSEAMTVQYCAAQSEAMTVwYCAAQSEAMTkwEGAgAEEhADE98BBgIABBIQAxNSBgIABBIQAxO9BgYCAAQSEAMTuQQGAgAEEhADE6gKBgQABAYHAQQFBgSFAQSgAgSyAQSbAQS7AQRXAgYGhQEGAgAEEhADE6ACBgIABBIQAxOyAQYCAAQSEAMTmwEGAgAEEhADE7sBBgIABBIQAxNXBgIABBIQAxOWDAYEAAQGBwEEBQUEhQEE2wIE2AIE3AYEsgYCBgWFAQYCAAQSEAMT2wIGAgAEEhADE9gCBgIABBIQAxPcBgYCAAQSEAMTsgYGAgAEEhADE5oKBgQABAYHAQQFBASFAQSpAwS1BQTVBAIGBIUBBgIABBIQAxOpAwYCAAQSEAMTtQUGAgAEEhADE9UEBgIABBIQAxONDAYEAAQGBwEEBQQEhQEEVwTuAQQ3AgYEhQEGAgAEEhADE1cGAgAEEhADE+4BBgIABBIQAxM3BgQABAgUAxUWAgkGAgAEAwsEpwKMAwYEAAQGBwEEBQgE5AMEZAStAgSsAgSjAwTiAwQ0BK4DAgYI5AMGAgAEAwsEpwVkBgEOBQQEkAEEwwEEQASRAa0CBgEBBMAErAIGAQEEggKjAwYEAAQIFAPVARYCCQYBAQTEAuIDBgEBBPQCNAYBAQT0Aq4DBgIABAMdBCDAAQYBGQUCBgQABAYHAQQFAwRVBE4EKwIGA1UGAQUCTgYEAAQIJgMMFAMVCQYBAQS1CysGAQAECgYEAAQGBwEEBQMEVQROBCsCBgNVBgEFAU4GAgAECBQDEysGAQEE/QTXAgYEAAQGBwEEBQIEcQSAAgIGAnEGAgAEAwsEpwKAAgYBAQSKB2EGBAAEBgcBBAUGBI8BBJQBBIgCBGgE8AMEkgECBgaPAQYBBQSfApQBBgEFBK0LiAIGAQ4FAgTDAgSBA2gGAQEEggLwAwYBAQSCApIBBgEBBIIC`),Y_=W_(`BgVCBENBBKgGRAYCGgS8BB4EJBgEkgVFBgKNBgYBAgYCKwYDAAQDFwMMDwNiUAYDAAQDFwMMDwMVwQcGAQIGAysGAwAEAxcDDA8DYlAGAwAEAxcDDA8DFUoGAwAEAxcDDA8DFQ==`),X_=W_(`BgZCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBUUGAzwGAgAEAwsEae8CBgIABAMLBJUCzwQGAwAEBgcBAgYGnQEGAQ4FBATdAQTcAQTiAQThAbEHBgEBBEvUBwYBAQRLxwIGAQEESzwGAQEEvAG6BwYBAQRL`),Z_=W_(`BgZCBENBBKoGRAYCGgTDAh4EJBgElAWcAQSZBUUGGGoGAgAEAwsElAS0BQYEAAQGBwEEBQsEWQQYBBwEOgTzAwT+AQSrAQT0AQRsBNoCBNkCAgYLWQYCAAQDCwTtARgGAQEE1AEcBgEOBQkExgQEkAEEpgcErQYEnwQEYwRABMYBBJEBOgYDAAUCBAMEChcDDA8DFfMDBgIABQIEAwQKCwTjAv4BBgEBBCWrAQYCAAUCBAMECgsEpQX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQQl2QIGAQEEJTwGAgAEAwsEaVMGAgAEAwsEsAEvBgIABAMLBJYC9gUGBQAEBgcBBAUNBD0EsgIEGATKAgQ2BFsERwQ6BLoCBLkCBNACBIgBBGACBhA9BgEOBQIEzAEEywGyAgYCAAQDCwTjAhgGAQEE1AHKAgYBAQQlNgYBGQUCBgEABAoGAQEEJVsGAQEEJUcGAwAESRADE00DDDoGAQEEDboCBgEBBCW5AgYBAQQlrQEGAQEEJc8BBgEBBCXQAgYEAAQIJgMMFAODBQkGAQEEJfsBBgQABAgUAxUWAgkGAgAEAwsEnAOIAQYDAAQIFAMVCQYBAQQlYAYFAAQIJgMMFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUDBgEEBQEErQEGAQQFAQTPAQYBBAUBBPsBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQMErQEEzwEE+wH9BQYEAAQGBwEEBQQE9wEE9gEEqgEEjAICBgT3AQYCAAQDCwSVBPYBBgEBBCiqAQYBAQTUAYwCBgEBBIoE/gUGBAAEBgcBBAUEBGcEwAIEXATNAgIGBGcGAQEEvAHAAgYCAAQDCwScA1wGAQEEJc0CBgEBBCU0BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiMBgYEAAQGBwEEBQYEagQRBJkBBIoCBCsEUAIGBmoGAQEE6QERBgEFBE+ZAQYBAQRLigIGBQAECCYDDBQDjgEWAgkGBAAEBgcBBAUCBBoEHgIGAhoGAQEESx4GAQEEOCsGAQEE9AZQBgEBBPUGggEGAgAEAwsEqAKaBgYFAAQGBwEEBQcEPQT/AQQYBFwEHAQ6BOUBAgYMPQYBDgUCBMwBBMsB/wEGAgAEAwsEnQMYBgEBBNQBXAYBAQQltQEGAQ4FCASBBASyAQS0AwTSAwSABATNAwTbAwTsA7kBBgEOBQQEzwME0AMEyQMEtgNHBgMABEkQAxNNAwwcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAwAFAgQDBAoXAwwPAxXlAQYCAAUCBAMECh0EILoBBgQABAgUAxUWAgkGAQEE0wGzAQYEAAQIFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUFBgEEBQEEtQEGAQQFAQS5AQYBBAUBBEcGAQQFAQS6AQYBBAUBBLMBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQUEtQEEuQEERwS6AQSzAaEGBgEZBQIGAQEE9gQGAQEE4QQxBgIABAMLBD+qBAYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQQNEQYBBQSbApoBBgEBBA0aBgMABAMXAwwPAxXvAgYCAAQDCwSVAswEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYBAQSRA2sGAQEE3QI7BgEBBL0BWgYBDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAsAHBgQABAYHAQQFCARqBBEESgR3BHwEoAEEKwRQAgYIagYBAQTpAREGAQUE0QJKBgEBBPgGdwYBDgUDBL8BBMIBBMEBfAYBAQQ4oAEGARkFAgYBAAQKBgEBBIMEKwYBAQT2BlAGAQEE9wY7BgQABAYHAQQFAwQsBCkEKgIGAywGAQEEDSkGAQEESyoGAQEEONMCBgQABAYHAQQFBgRKBHcEfAQcBDwEnwMCBgZKBgEBBEt3BgEOBQMEvwEEwgEEwQF8BgEBBDgcBgEOBQcEtgEEVQTrAwSPAgRABL4BBHk8BgIABQIEAwQKCwRpnwMGBAAECBQDYhYCCQYBAQTpAaICBgQABAMXAwwPA24LBNYBGAYEAAQDFwMMDwNMCwSbAx4GAgAEAwsElAI=`),Q_=W_(`BgpCBENBBP8KRAYCGgSBAx4EJBgExwmcAQTZCQAEBgcBBAUXBBEEGwQhBOQDBC8E4gMENAQ7BGsEiwEEZATTAgS0AQROBJ4BBIgBBIkBBL0DBK0CBKwCBKMDBKEBBK4DAgYYEQYBBQSBAxsGAQUELiEGAQUEJOQDBgIABAMLBKcFLwYBAQSEB+IDBgEBBMEENAYBAQTBBDsGAQEEzQtrBgEBBMwLiwEGAQEE2ANkBgEOBQQEkAEEwwEEQASRAdMCBgMABAgUA44BCQYBAQTOC7QBBgMABAgUA0wJBgEBBIUHTgYDAAQIFAN+CQYBAQTKC54BBgMABAgUA0wJBgEBBIcHiAEGAwAECBQDTAkGAQEEhgeJAQYDAAQIFANiCQYBAQSIB70DBgQABAgmAwwUAxUJBgEBBMsLrQIGAgAEAwsElQSsAgYBAQTCBKMDBgQABAgUA9UBFgIJBgEBBMQC2AUGAQEE7gahAQYBAQSECa4DBgIABAMdBCBFBgLrCwYFAAQGBwGcAQTgCQQFAwSnBwStAgSsAgIGBKcHBgEBBIMHrQIGAQEEkgmsAgYBAQSRCdgFBgEBBO4GoQEGBAAEBgcBBAUGBLgDBKADBMYDBL4DBMgDBIACAgYGuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxOAAgYEAAQDFwMMDwNuCwSiBQ==`),$_=W_(`BgpCBENBBIALRAYCGgS/BB4EJBgExAkABAYHAQQFCwQRBBsEIQR7BC8EOgQcBFoErwEEcgSOAgIGDBEGAQUEvwQbBgEFBC4hBgEFBCR7BgIABAMLBJcCLwYDAAQDFwMMDwMV5gEGAQEE+wQ6BgMABAMXAwwPAxUcBgIABAMOBQUEtgEEkAEEwwEEQASRAVoGAgAFAgQDBAoOBQUABJABBMMBBEAEkQGvAQYDAAQIFgIJBgEBBJAJcgYCAAQDHQQgjgIGAgAEAx0EIBkFBQYCGATWCwIGAxwGAQUEtgFaBgEFAK8BBgEUAxMGAhgEjAoCBgIcBgEFBJABWgYBBQSQAQYCGASmCgIGAxwGAQUEwwFaBgEFBMMBrwEGARQDEwYCGATpCwIGAxwGAQUEQFoGAQUEQK8BBgEUAxMGAhgEnwoCBgMcBgEFBJEBWgYBBQSRAa8BBgEUAxNFBgLmAQYBGQUCBgQABAYHAQQFAgQABC8CBgIABgEFBIEBLwYDAAQDFwMMDwMVBgQABAYHAQQFBAQABFkEUQSlAQIGBAAGAQUEMFkGAgAEAwsE7QFRBgIABBIQAwylAQYCAAQDCwQ/mQwGBAAEBgcBBAUDBIQGBNsBBFoCBgOEBgYCAAQDDgUDBL4EBMILBL4L2wEGAgAEAwsEoQVaBgIABAMOBQcE2AEEkAEEQAS4AQTGAQSLAwSRAQ==`),ev=W_(`BgpCBENBBIELRAYCGgSLBx4EJBgEwwmcAQSkCQAEBgcBBAUPBBEEGwQhBMgGBCwEKQQqBC8ENAS8BgTXBgSABgSBAgSCAwTHBgIGDxEGAQUEiwcbBgEFBC4hBgEFBCTIBgYCAAQDCwT0CSwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDTQGAQEE6wG8BgYEAAQGBwEEBQMEywYEygYE5AcCBgPLBgYBBQOHAcoGBgEFA+EC5AcGAQUB1wYGAwAECBQDhwEJBgEBBOIIgAYGAwAECBQD4QIJBgEBBK0IgQIGAwAECBQDhwEJBgEBBN8CggMGAQEE7AjHBgYBAQQoRQYMGgYDAAQDFwMMDwMVswQGAwAEAxcDDA8Dfh4GAgAEAwsElAIxBgIABAMLBD80BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCigCwYBDgUNBO8LBNcBBMoHBPMBBNkBBMQBBNAKBKkEBGQEMARaBG0ENrAEBgQABAYHAQQFBwQRBBoE7gUELAQpBCoELwIGBxEGAQEEhgQaBgEBBIUE7gUGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOCwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDZ8LBgQABAYHAQQFBQSwBATvAQSkBwSuBgSQBwIGBbAEBgEBBNwI7wEGAQ4FAwRVBFcE7gGkBwYBDgUTBLUEBLYBBOcBBNgBBEAEeQS+AQTbAgRSBKACBLIBBK0KBNgCBO4BBFcExgQE5woEnwQEjQuuBgYEAAQIFAPhAhYCCQYCAAQDCwSWBJAHBgQABAgUA+ECFgIJBgIABAMLBJYEzQoGBAAEBgcBBAUCBBEEGgIGAhEGAQEEhgQaBgEBBIUEywoGBAAEBgcBBAUEBP8FBM0BBJ0GBOIHAgYE/wUGAgAEAwsElgTNAQYBDgUQBMIKBJEKBJALBOQLBNoLBLADBI4MBK8KBMsDBKUKBMAKBN0LBMgKBOgKBJgMBKULnQYGAQEE3wTiBwYBAQTfBLgEBgQABAYHAQQFBgTlBgQRBOYBBDUE4wMErwYCBgblBgYCAAQDCwTzCREGAQ4FAgRXBO4B5gEGAQEEhgQ1BgEBBIUE4wMGAQ4FAwS5CQS7CQS6Ca8GBgMABBIQAxNNA+ECggMGBAAEBgcBBAUKBN4HBKwFBPAHBNYHBNwHBPAFBOsHBLwHBP4DBO8HAgYK3gcGAwAEEhADE00DhwGsBQYDAAQSEAMTTQOHAfAHBgMABBIQAxNNA4cB1gcGAwAEEhADE00DhwHcBwYDAAQSEAMTTQOHAfAFBgMABBIQAxNNA4cB6wcGAwAEEhADE00DhwG8BwYDAAQSEAMTTQOHAf4DBgMABBIQAxNNA4cB7wcGAwAEEhADE00DhwE=`),tv=W_(`BglCBENBBO8KRAYCGgTmBh4ELhgE0QkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOYGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBREEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEHwQ3BCcCBhF0BgEFAhEGAQUErgsbBgEFBC4hBgEFBCSYAQYBAARfVgYBAARfLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQkEMAQ2BJUBBKkBBIMBBLcBBG0E2gUEpgECBgkwBgEBBJcDNgYBGQUCBgEABAoGAQEEmAOVAQYCAAQICQYBAQSQBKkBBgIABAgJBgEBBI8EgwEGAgAECAkGAQEEjgS3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD2gUGBAAEBgcBBAUDBMEFBG0EvwcCBgPBBQYDAAQDFwMMDwN+bQYDAAQDFwMMDwN+vwcGAwAEAxcDDA8DfqYBBgIABAgJBgEBBP8EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEpwtoBgEBBF6SAQYBAQRe`),nv=W_(`BglCBENBBPAKRAYCGgTnBh4ELhgE0gkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOcGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBRIEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEjQIEHwQ3BCcCBhJ0BgEFAhEGAQUEsQsbBgEFBC4hBgEFBCSYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQcElAcEgQEE4QMEtwEEbQTfAwSmAQIGB5QHBgEABAaBAQYBAAQG4QMGAQEEkwm3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD3wMGBAAEBgcBBAUGBJ4BBLQBBE4EigEElQEEsQICBgaeAQYBAAQItAEGAQAECE4GAQAECIoBBgEABAiVAQYBAAQIsQIGAQAECKYBBgQABAgmAwwUAwwJBgEBBP4EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqAtoBgEBBF6SAQYBAQRe`),rv=W_(`BglCBENBBPUKRAYCGgTsBh4ELhgE0AkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOwGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQS7CxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQQEsQYEgwEEpgEErAcCBgSxBgYBAAQGgwEGAgAECAkGAQEEjgSmAQYCAAQICQYBAQT+BKwHBgEOBQcEYwSbAQSxCgTJCgSwAgS+AgTxC2EGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKwLaAYBAQRekgEGAQEEXg==`),iv=W_(`BglCBENBBPEKRAYCGgToBh4ELhgEzgkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOgGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQSyCxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQIELwTDAwIGAi8GAQEERsMDBgEBBJcJYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqQtoBgEBBF6SAQYBAQRe`),av=W_(`BglCBENBBPMKRAYCGgTqBh4ELhgEzAkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOoGGwYBBQQuIQYBBQQkegYBMwUCBgEBBLMLBgICBgEtBgEOBQUE0wQEqQEE2gEEgQEETgQFAQQtYQYBAQSQAkUGAWEGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKsLaAYBAQRekgEGAQEEXg==`),ov=W_(`BglCBENBBPIKRAYCGgTpBh4ELhgEzQkABAYHAQQFBgQRBBsEIQSdAgR6BGECBgYRBgEFBOkGGwYBBQQuIQYBBQQknQIGAQEE9Qh6BgEBBIgEYQYBAQSQAkUGCp0CBgQABAYHAQQFDAQyBCwEKQQqBC8ENQQtBMkCBB0EZQQ0BIYBAgYMMgYBAQRGLAYBAQRGKQYBAQRGKgYBAQSTAi8GAQEERjUGARkFAgYBAAQKBgEBBEYtBgEOBQYETwSKAQQ2BIMBBIcDBJoCyQIGAgAFAgQDBAoPA34dBgIABQIEAwQKDgUDAATOAwTKA2UGAgAEAx0EIDQGAQEEkgKGAQYBAQReegYFAAQGBwEEBRMEdAQRBBsEIQQtBJgBBFYELAQpBCoEMgRYBGUENASGAQSNAgQfBDcEJwIGE3QGAQUCEQYBBQS6BBsGAQUELiEGAQUEJC0GAQ4FBgRPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FCATkAQR2BFIEnwEEYwTgAQS+AgSwAjcGAwAECBYCCQYBAAQDJwYBAAQGMwUGBgIiBgICBgEtBgEFBE8EBQEELSMGAQIGAScGAQEE4AQGAiIGAgIGAS0GAQUEigEEBQEELSMGAQIGAScGAQEE8wQGAiIGAgIGAS0GAQUENgQFAQQtIwYBAgYBJwYBAQTyBAYCIgYCAgYBLQYBBQSDAQQFAQQtIwYBAgYBJwYBAQTsBAYCIgYCAgYBLQYBBQSHAwQFAQQtIwYBAgYBJwYBAQT5BAYCIgYCAgYBLQYBBQSaAgQFAQQtIwYBAgYBJwYBAQTrBKQLBgIABAgJBgEABAaKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYBAQTsAbEBBgEBBOwBWwYBAQTsAZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgEBBOwBigEGAQEE7AGVAQYBAQTsAZEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAAQGlQEGAQEE7AGmBgYEAAQGBwEEBQIEgwEEtwECBgKDAQYBAQTsAbcBBgEABAbJBwYEAAQGBwEEBQIEyQIE6QMCBgLJAgYCAAQDDwN+6QMGAgAECAkGBAAEBgcBBAUFBBEENQQYBKEBBBwCBgYRBgMABAMXAwwPAxU1BgEBBEYYBgMABAMXAwwPA26hAQYCAAQDDwNuHAYDAAQDFwMMDwMVOQYBAQSABZQGBgQABAYHAQQFAwQdBGYEsQMCBgMdBgEOBQIEzgMEygNmBgEOBQIE8gEE3wexAwYBAAQDYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqgtoBgEBBF6SAQYBAQRe`),sv=W_(`BgpCBENBBPQKRAYCGgS6BB4ELhgE0wkABAYHAQQFEwR0BBEEGwQhBC0EmAEEVgQsBCkEKgQyBFgEZQQ0BIYBBI0CBB8ENwQnAgYTdAYBBQIRBgEFBLoEGwYBBQQuIQYBBQQkLQYBDgUMBNMEBKkBBNoBBIEBBE4EMARPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEABF8sBgEBBEYpBgEBBEYqBgEBBJMCMgYBAQRGWAYBAQSmAmUGAgAEAx0EIDQGAQEEkgKGAQYBAQRejQIGAQEEkgQfBgEOBQgE5AEEdgRSBJ8BBGME4AEEvgIEsAI3BgMABAgWAgkGAQAEAycGADMFFAYCIgYCAgYBLQYBBQTTBAQFAQQtIwYBAgYBJwYBAQSJCQYCIgYCAgYBLQYBBQSpAQQFAQQtIwYBAgYBJwYBAQTMCAYCIgYCAgYBLQYBBQTaAQQFAQQtIwYBAgYBJwYBAQSjCAYCIgYCAgYBLQYBBQSBAQQFAQQtIwYBAgYBJwYBAQSdCAYCIgYCAgYBLQYBBQROBAUBBC0jBgECBgEnBgEBBIEIBgIiBgICBgEtBgEFBDAEBQEELSMGAQIGAScGAQEE+gcGAiIGAgIGAS0GAQUETwQFAQQtIwYBAgYBJwYBAQTgBAYCIgYCAgYBLQYBBQSKAQQFAQQtIwYBAgYBJwYBAQTzBAYCIgYCAgYBLQYBBQQ2BAUBBC0jBgECBgEnBgEBBPIEBgIiBgICBgEtBgEFBIMBBAUBBC0jBgECBgEnBgEBBOwEBgIiBgICBgEtBgEFBIcDBAUBBC0jBgECBgEnBgEBBPkEBgIiBgICBgEtBgEFBJoCBAUBBC0jBgECBgEnBgEBBOsEBgIiBgICBgEfBgEFBOQBBAUBBB8jBgECBgJWBgEFAjcGAgAECBQDEwYCIgYCAgYBHwYBBQR2BAUBBB8jBgECBgJWBgEFATcGAQEE7wgGAiIGAgIGAR8GAQUEUgQFAQQfIwYBAgYCVgYBBQE3BgEBBIIJBgIiBgICBgEfBgEFBJ8BBAUBBB8jBgECBgJWBgEFATcGAQEE6QgGAiIGAgIGAR8GAQUEYwQFAQQfIwYBAgYCVgYBBQE3BgEBBJAIBgIiBgICBgEfBgEFBOABBAUBBB8jBgECBgJWBgEFATcGAQEE5QgGAiIGAgIGAR8GAQUEvgIEBQEEHyMGAQIGAlYGAQUBNwYBAQTPCAYCIgYCAgYBHwYBBQSwAgQFAQQfIwYBAgYCVgYBBQE3BgEBBJsIRQYUhgsGBAAEBgcBBAUCBKkBBJ0CAgYCqQEGAgAECAkGAQEEjwSdAgYEAAQGBwEEBQMExwIEvAIENQIGA8cCBgEBBF68AgYCAAQSEAMTNQYBGQUCBgEABAoGAQEERpEMBgQABAYHAQQFBwSYAgT8AQS2BQSpAQROBIoBBKYBAgYHmAIGAgAECAkGAQEElAn8AQYCAAQICQYBAQSBBbYFBgEZBQIGAQAECgYBAQSNBKkBBgIABAgJBgEBBI8ETgYCAAQICQYBAQSXA4oBBgIABAgJBgEBBJgDpgEGAgAECAkGAQEE/wS+CgYEAAQGBwEEBQEE2gECBgHaAQYCAAQICQYBAQSNBLYKBgQABAYHAQQFAQSBAQIGAYEBBgEBBI0EhQoGBAAEBgcBBAUCBE4EnQICBgJOBgIABAgJBgEBBJcDnQIGBAAEBgcBBAUCBMcCBLwCAgYCxwIGAQEEXrwCBgIABBIQAxP+CQYEAAQGBwEEBQEEMAIGATAGAQEElwOKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYCAAQICQYBAQSWCbEBBgIABAgJBgEBBJUJWwYCAAQICQYBAQSYCZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgIABAgJBgEBBIEFigEGAgAECAkGAQEEmAOVAQYCAAQICQYBAQSQBJEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAQSYA5UBBgIABAgJBgEBBJAEpgYGBAAEBgcBBAUCBIMBBLcBAgYCgwEGAgAECAkGAQEEjgS3AQYBAQSRBMkHBgQABAYHAQQFAgTJAgTpAwIGAskCBgIABAMPA37pAwYCAAQICQYBAQT8CP0LBgQABAYHAQQFBQQRBDUEGAShAQQcAgYGEQYDAAQDFwMMDwMVNQYBAQRGGAYDAAQDFwMMDwNuoQEGAgAEAw8DbhwGAwAEAxcDDA8DFTkGAQEEgAWUBgYEAAQGBwEEBQMEHQRmBLEDAgYDHQYBDgUCBM4DBMoDZgYBDgUCBPIBBN8HsQMGAQAEA+MLBgQABAgmAwwUAwwJBgEFBLcJiAwGBAAECCYDDBQDDAkGAQUEtgnTCwYEAAQIJgMMFAMMCQYBBQS1CZwKBgQABAgmAwwUAwwJBgEFBLQJpgsGBAAECCYDDBQDDAkGAQUEswmLCwYEAAQIJgMMFAMMCQYBBQSyCbAKBgQABAgmAwwUAwwJBgEFBLgJ`),cv=W_(`BgpCBENBBPcKRAYCGgSwCx4EJBgEwQkABAYHAQQFAwR0BIQBBKYBAgYFdAYBAARfhAEGAQEEigknBgCoAQYBAQSvCKYBBgIABAgJBgEBBPMCGQUNBgIYBLUKAQSiCAYCGASzCgEEnggGAhgEtAoBBKAIBgIYBJIKAQSKCAYCGASTCgEEjAgGAhgEjQoBBIUIBgIYBPQLAQT3CAYCGAT1CwEE+QgGAhgE+AkBBPkHBgIYBPkJAQT9BwYCGAT6CQEE/wcGAhgE5QsBBPEIBgQYBOMKBAUBBKgBAgYBdAYBBQFIBgEEBQEEJ0UGGZIMBgIABAMOBQ4E/QIE+wIE/AIE+QIE+gIE+AIE/wIEgAME9QIE9gIE9wIE/gIE1wME1gOoAQYEAAQGBwEEBQQEcQSAAgSGAgT6AQIGBHEGAgAEAw4FOASHBQSGBQSFBQShCQSiCQSjCQSIBQSrCQSsCQSJBQStCQSuCQSvCQSKBQSLBQSwCQSMBQSNBQSOBQSPBQSQBQSRBQS8CQS9CQS+CQSWBQTbCQTcCQTdCQTaCQSXBQSaBQSbBQScBQSdBQSeBQThCQTiCQSfBQScCQSdCQTWCQTVCQTXCQSgCQSfCQSeCQSqCQSoCQSnCQSpCQTYCQSxCQS/CQTACQTfCYACBgMABAMXAwwPA2KGAgYBAARf+gEGAQEE+ASMDAYDBAUBBCcCBgF0BgEFAkgGAQQFAQSoAbwKBgEzBQIGAQEEowEGAQIGAoQBBgEFBP0CJwYBAQSEBLcKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPsCJwYBAQSEBLoKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPwCJwYBAQSEBJYKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPkCJwYBAQSICJkKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPoCJwYBAQSDCY8KBgEzBQIGAQEEowEGAQIGAoQBBgEFBPgCJwYBAQSGCPYLBgEzBQIGAQEEowEGAQIGAoQBBgEFBP8CJwYBAQSDB/kLBgEzBQIGAQEEowEGAQIGAoQBBgEFBIADJwYBAQTPC/0JBgEzBQIGAQEEowEGAQIGAoQBBgEFBPUCJwYBAQT3B4EKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPYCJwYBAQSBB4QKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPcCJwYBAQSBB+YLBgEzBQIGAQEEowEGAQIGAoQBBgEFBP4CJwYBAQTyCPsJBgQABAYHAQQFBAQwBIUGBLYHBMIFAgYEMAYBAQTwBoUGBgEBBMkLtgcGAgAECAkGAQEEwAvCBQYCAAQICQYBAQS/C70KBgQABAYHAQQFBgSBAQThAwTRBQSrBQTfAwROAgYGgQEGAQEE+gbhAwYEAAQGBwEEBQgEhQEEtgEEVQTlAgTQBASPAgRABOcBAgYIhQEGAgAEEhADE7YBBgIABBIQAxNVBgIABBIQAxPlAgYCAAQSEAMT0AQGAgAEEhADE48CBgIABBIQAxNABgIABBIQAxPnAQYCAAQSEAMT0QUGAgAECAkGAQEE8warBQYDAAQIFgIJBgIABAMLBGnfAwYEAAQGBwEEBQIEugYEsQICBgK6BgYBAQTQC7ECBgIABAgJBgEBBNELTgYCAAQICQYBAQTzAvgLBgQABAYHAQQFAgSLAQSBAQIGAosBBgEBBNgDgQEGAQEE+gaUCgYEAAQGBwEEBQME8wEEigME4AUCBgPzAQYBMwUCBgEBBPMGBgICBgEcBgEFBOsDBAUBBBzgBQYDAAQIFgIJBgMABAMXAwwPAxWKAwYCAAQDCwSoBYoMBgQABAYHAQQFBQTYAQQ8BHUE1AIEpgMCBgXYAQYBBQI8BgIABAMLBGl1BgIABAMLBD/UAgYCAAQSEAMTpgMGAQUEjwLvBQYEAAQGBwEEBQUEjAEEGwRmBKcBBPICAgYFjAEGAwAEAxcDDA8DTBsGAwAEAxcDDA8Db2YGAwAEAxcDDA8DFacBBgIABAMOBQIE6AEEmwTyAgYCAAQSEAMMzwQGAwAEBgcBAgYIhAEGAQEEkQIvBgEBBJECUwYBAQSRAooDBgEBBJECiwwGAQEEkQJ7BgEBBJECHAYBAQSRAvICBgIABBIQAxP8CwYEAAQDFwMMDwNMSAYBCwSlApAKBgUABAYHAQQFAgTCAgSFAgIGBMICBgEBBPIGhQIGAgAEAw4FBATIBASdBATCAgShBJkCBgIABAMLBKAF6gIGABkFBAYEGATiCwQFAQSZAgIGAYUCBgEFBMgESAYBBAUBBOoCBgQYBKAKBAUBBJkCAgYBhQIGAQUEnQRIBgEEBQEE6gIGAxgEnAsCBgGFAgYBBQTCAkgGAfEBBQIGAQQFAQSZAgYBBAUBBOoCBgQYBJcMBAUBBOoCAgYChQIGAQUEoQTCAgYBMwUCBgEBBPIGBgECBgJmBgEFBPIBpwEGAQUE6AFIBgEEBQEEmQLnCwYEAAQGBwEEBQgEHwTyBQSrBwSjBgQrBL0FBMQGBLMGAgYIHwYCAAQDDgUGBOoKBMwKBLACBL4CBJcLBOoL8gUGAgAEAxcDDKsHBgIABQIEAwQKFwMMowYGAgAEEhADEysGAwAEAxcDDA8DYr0FBgIABAMOBQME2QYEqgoE8AvEBgYEAAQGBwEEBQUEHwSWBwTYBgS7AgQrAgYFHwYCAAQDDgUDBO4BBOUCBFKWBwYCAAUCBBIEChADE9gGBgIABQIEAwQKFwMMuwIGAgAFAgQDBAodBCArBgIABAMPA2KzBgYEAAQGBwEEBQUE1AYE/AUEzgUEkwcEoAYCBgXUBgYCAAQDFwMM/AUGAgAECAkGAgAEAxcDDM4FBgIABAMXAwyTBwYCAAQICQYCAAQDFwMMoAYGAgAEAxcDDA==`),lv=W_(`BglCBENBBKcGRAYCGgS7BB4ELhgElQUABAYHAQQFHQQRBBsEIQT0BwQsBCkEKgQyBFgEZQQ0BPcDBB8EmAIE/AEE2gEEqQEETgRPBLEBBFsEigEElQEEgwEEtwEEpgEEgQIEmgIEhgECBh0RBgEFBLsEGwYBBQQuIQYBBQQk9AcGAgAEAwsE9wksBgEBBA0pBgEBBA0qBgEBBDgyBgEBBA1YBgEOBQQEgwME8AIE6QIEV2UGAgAEAx0EIDQGAQEE6wH3AwYBAQQoHwYBDgUIBOQBBHYEUgSfAQRjBOABBL4CBLACmAIGAgAECAkGAQEEjQj8AQYCAAQICQYBAQSrCNoBBgIABAgJBgEBBJwIqQEGAgAECAkGAQEEywhOBgIABAgJBgEBBI4DTwYCAAQICQYBAQSxCLEBBgIABAgJBgEBBJgIWwYCAAQICQYBAQTuCIoBBgIABAgJBgEBBOYIlQEGAgAECAkGAQEE1AiDAQYCAAQICQYBAQTGCLcBBgEBBPMIpgEGAgAECAkGAQEEkgiBAgYCAAQICQYBAQTfApoCBgQABAYHAQQFAwScBgSwBQSuBwIGA5wGBgMABAgWAgkGAQ4FAgTOAwTKA7AFBgEFAq4HBgIABBIQAxOGAQYBAQQoRQZXGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DbgsE1gGCDAYEAAQDFwMMDwN+CwTWAd4GBgQABQIEAwQKFwMMDwNuCwTWAaMLBgQABQIEAwQKFwMMDwN+CwTWAVgGAQ4FBASDAwTwAgTpAgRXcAYCAAUCBAMECg4FAgSXBAA5BgIABAMLBJMEogsGAgAFAgQDBAoLBJMEOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBA0pBgEBBA0qBgEBBDiXAQYEAAQGBwEEBQMEMgRKBJoBAgYDMgYBAQQNSgYBAQQNmgEGAQEEDawGBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDiDDAYEAAQGBwEEBQIE7wMEcgIGAu8DBgEBBA1yBgIABAMdBCDDCgYEAAQGBwEEBQQEswIE4AMEtwME+wUCBgSzAgYBAQQN4AMGAgAFAgQDBAoPAxW3AwYBAQQN+wUGAgAEAx0EIJ4LBgQABAYHAQQFAgSqAQR4AgYCqgEGAQEEogF4BgEBBA00BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQAECgYEAAQGBwEEBQIEPgQxAgYCPgYCAAQSEAMMMQYBAQQomAIGBAAEBgcBBAUKBM0FBBEENQShBwQYBPYHBPkBBBwExwEEYAIGCs0FBgEBBA0RBgEOBQYEZASkAwQwBG0ENgStATUGAQEEDaEHBgMABBIQAxNNA5kJGAYBAQSiAfYHBgEBBKIB+QEGAQEEJRwGAQEEDccBBgIABQIEAwQKHQQgYAYDAAQIFgIJBgEBBA3KCgYEAAQGBwEEBQ8EqwEEGATtBwT/AwSqAwTcAgTJAQQcBGwE1gIEYATuAwS6AwSkBARwAgYPqwEGAQEEDRgGAQEE3gLtBwYBAAUCBEkECv8DBgIABQIEAwQKDwMVqgMGARkFAgYBAAQKBgEBBOAI3AIGAgAFAgQDBAoPA37JAQYBDgUEBJMBBN8BBFIEuwEcBgEOBQYEkwEE3wEEUgS7AQTVBARXbAYBAAUCBEkECtYCBgEABQIESQQKYAYDAAQIFgIJBgEBBA3uAwYBGQUCBgEABAoGAQEE+gS6AwYBGQUCBgEABAoGAQEE3ASkBAYCAAQICQYBAQSsCHAGAQEE6gGdCwYEAAQGBwEEBQUEEQSgBwTzBQT4BQSzAgIGBREGAQ4FBQS4BQSwBwSrAwRSBOsFoAcGAQAFAgRJBArzBQYBAAUCBEkECvgFBgEABQIESQQKswIGAgAFAgQDBAoPAxWkBAYEAAQGBwEEBQYErgEEWQQcBMcBBNwCBDkCBgauAQYBAQQNWQYBAQQNHAYCAAUCBAMECg8DFccBBgIABQIEAwQKHQQg3AIGAgAFAgQDBAoPA345BgEBBOMIgQEGBAAEBgcBBAUOBC8EHASlBgTHAwRyBI4CBPgDBMkFBLsGBLsDBKgDBN4DBMoEBDkCBg8vBgEBBA0cBgEBBA2lBgYBAQQNxwMGAgAECAkGAQEEogFyBgIABAMdBCCOAgYCAAQDHQQg+AMGBAAECCYDmgMUA5oDCQYBAQSACckFBgIABAgJBgEBBIcIuwYGAgAECAkGAQEE1QjDAwYBGQUCBgEABAoGAQEEtAi7AwYCAAQICQYBAQSnCKgDBgIABAgJBgEBBJEI3gMGAwAECBYCCQYBAQQNygQGARkFAgYBAAQKBgEBBPQEOQYBAQSNAYYMBgQABAYHAQQFCQQaBBwEKwTKAQTGAgSiBgSLBgTnBwTeAwIGCRoGAQ4FBwTiBgToBwT0BQSkBgSyBQTyBwS4BhwGAQ4FCQToAgSTAQRVBGMEiAMEeQSbAQSGAwSNAysGAgAFAgQDBAoPA37KAQYDAAQIFgIJBgEBBA3GAgYDAAQIFgIJBgEBBA2iBgYCAAQICQYBAQTFCIsGBgMABAgWAgkGAQEEDecHBgMABAgWAgkGAQEEDd4DBgMABAgWAgkGAQEEDfMBBgQABAYHAQQFDQRTBBgE0QIElQcEHATXAQTHAQTUAwQ5BLsDBKgDBMoBBMYCAgYNUwYBAQQNGAYBAQTeAtECBgIABQIEAwQKDwMVlQcGAgAFAgQDBAoPAxUcBgEBBA3XAQYBGQUCBgEABAoGAQEEhgnHAQYCAAUCBAMECh0EINQDBgEZBQIGAQAECgYBAQTxBDkGAQEEjQG7AwYCAAQICQYBAQTaBKgDBgMABAgWAgkGAQEEDcoBBgMABAgWAgkGAQEEDcYCBgMABAgWAgkGAQEEDZcKBgQABAYHAQQFAwRTBBwEuAECBgNTBgEBBA0cBgIABQIEAwQKDwMVuAEGAQAEX5AMBgQABAYHAQQFBAQ2BHEEKwRQAgYENgYBDgUCBL4BBHlxBgIABAMPAxUrBgEBBKIBUAYCAAQDDwMVkgsGBAAEBgcBBAUEBEoEdwSkAQQrAgYESgYBAQQNdwYCAAQDDwMVpAEGAgAEAw8DFSsGAQEEJdUKBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYBAQQo4goGARkFAwYEAAQGBwEEBQUEEQQ2BHEEKwRQAgYFEQYBBQTnATYGAQ4FAgS+AQR5cQYCAAQDDwMVKwYBAQSiAVAGAgAEAw8DFQYEAAQGBwEEBQUEEQRKBHcEpAEEKwIGBREGAQUEkQtKBgEBBA13BgIABAMPAxWkAQYCAAQDDwMVKwYBAQQlBgQABAYHAQQFAgQRBCsCBgIRBgEFBLkEKwYBAQQl4QoGBAAEBgcBBAUIBEoEqgEEdwR8BFMEpgME2QEE1wECBghKBgEBBA2qAQYBAQSiAXcGAgAEAw8DFXwGAQEEOFMGAgAFAgQDBAoPAxWmAwYCAAUCBAMECg8DFdkBBgEZBQIGAQAECgYBAQTnBNcBBgEZBQIGAQAECgYBAQTBCMMDBgUABAYHAQQFBQQvBJkHBO0DBOcFBOQFAgYOLwYBAQQNmQcGAQEEDdYFBgIABAMLBPUJewYBAQQNowcGAQ4FAgSaCwSrCs8FBgEABF/GBgYCAAUCBAMECg8DFdUCBgEBBOsBzQcGAQEEKMsHBgEBBCj9AwYBAQSMB+0DBgMABAgUA44BCQYBAQTACOcFBgEZBQIGAQAECgYBAQS7COQFBgEZBQIGAQAECgYBAQS5CMUKBgHWBQUIBHsEowcEzwUExgYE1QIEzQcEywcE/QPaCgYEAAQGBwEEBQME2QEEngEEiAECBgPZAQYBGQUCBgEABAoGAQEE5wSeAQYDAAQIFANMCQYBAQS6CIgBBgMABAgUA0wJBgEBBOkE2QoGBAAEBgcBBAURBP8BBGcEoAEEiQMEtQEEuQEERwShAgS6AQSzAQQYBFwEWwTrAgQcBDoE5QECBhH/AQYBAQQNZwYBAQQNoAEGAQEEDYkDBgEBBA21AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBMcLugEGBAAECBQDFRYCCQYBAQQNswEGBAAECBQDFRYCCQYBAQQNGAYBAQSiAVwGAQEEJVsGAQEEJesCBgEBBCUcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAgAFAgQDBAoPAxXlAQYCAAUCBAMECh0EINwKBgQABAYHAQQFBARnBMACBFwEzQICBgRnBgEBBA3AAgYBAQQNXAYBAQQlzQIGAQEEJdgKBgQABAYHAQQFBATZAQS0AQSIAQTqBwIGBNkBBgEBBLcItAEGAwAECBQDTAkGAQEEuAiIAQYDAAQIFANMCQYBAQTpBOoHBgMABAgUA2IJBgEBBL0I1goGBAAEBgcBBAUEBDwEzAMEuQUE5QUCBgQ8BgEBBA3MAwYBAQQNuQUGBAAECBQDjgEWAgkGAQEEDeUFBgIABQIEAwQKDwMV2woGBAAEBgcBBAUCBKoCBK4EAgYCqgIGAQEEDa4EBgEBBA3fCgYEAAQGBwEEBQIEqgIErwQCBgKqAgYBAQQNrwQGAQEEDdQKBgQABAYHAQQFBQRnBMIGBBgEWgRbAgYFZwYBAQQNwgYGAQEEDRgGAQEE3gJaBgEOBQME2AEEQATGAVsGAQEEfdcKBgQABAYHAQQFFATDBgQYBMoCBDYEWwTyAwTTBwTmBQRgBEcEygUEugIEuQIErQEEzwEEOgTQAgT7AQS/BQSzBQIGFMMGBgEBBA0YBgEBBN4CygIGAQEEfTYGAQEEfVsGAQEEffIDBgQABAgmAwwUAxUJBgEBBOgE0wcGAwAECBQDjgEJBgEBBL4I5gUGBAAECBQDTBYCCQYBAQQNYAYFAAQIJgMMFAMVFgIJBgEBBA1HBgMABQIESQQKEAMTTQMMygUGBAAECBQDFRYCCQYBAQQNugIGAQEEfbkCBgEBBH2tAQYBAQR9zwEGAQEEfToGAgAFAgQDBAoPAxXQAgYEAAQIJgMMFANvCQYBAQQl+wEGBAAECBQDFRYCCQYBAQQNvwUGAwAECBQDbwkGAQEEtgizBQYDAAQIFANMCQYBAQS1CNMKBgQABAYHAQQFDgTBBgQYBOAGBDoEsQUE/gEEqwEE9AEEbATaAgTZAgTyAwTPBwT6BQIGDsEGBgEBBA0YBgEBBN4C4AYGAgAFAgQDBAoPAxU6BgIABQIEAwQKDwMVsQUGAgAFAgQDBAoOBQMABJUMBGP+AQYBAQR9qwEGAgAFAgQDBAoPAxX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQR92QIGAQEEffIDBgMABAgUAxUJBgEBBOgEzwcGBAAECBQDTBYCCQYBAQQN+gUGBAAECBQDTBYCCQYBAQQN3goGARkFAgYBAQS/CAYBAQS8COAKBgQABAYHAQQFCgRqBBEESgR3BHwEpAEEKwRQBKABBPQDAgYKagYCAAUCBAMECg8DFREGAQUE0QJKBgEBBA13BgEOBQMEvwEEwgEEwQF8BgIABQIEAwQKDwNvpAEGAQEEDSsGAQEEJVAGAgAFAgQDBAoPAxWgAQYCAAUCBAMECg8DFfQDBgIABQIEAwQKDwMV3QoGBAAEBgcBBAUKBGoEEQSZAQTCAwSKAgSkAQQrBFAE9gME9QMCBgpqBgEBBA0RBgEFBE+ZAQYBAQQNwgMGBQAECCYDDBQDmQMWAgkGAQ4FBATdAQTcAQTiAQThAYoCBgUABAgmAwwUA44BFgIJBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBA2kAQYBDgUEBNsGBNoGBLcHBFIrBgEBBCVQBgEBBA32AwYEAAQIFAMVFgIJBgEBBA31AwYEAAQIFANiFgIJBgEBBA3/CQYEAAQGBwEEBQMEWQQcBLgBAgYDWQYBAQQNHAYCAAUCBAMECg8DFbgBBgEABF/ECgYBGQUCBgQABAYHAQQFAwSLAgQ1BLQCAgYDiwIGAQUE8wE1BgEBBA20AgYCAAQICQYBAQTaBAYEAAQGBwEEBQMEiwIENQS0AgIGA4sCBgEFBDA1BgEBBA20AgYCAAQICQYBAQT7B50KBgQABAYHAQQFAwSLAgQ1BNUFAgYDiwIGAQ4FAgTzAQQwNQYBAQQN1QUGBAAECCYDDBYCCQYBAQQN5QoGBAAEBgcBBAUDBBEENQQcAgYDEQYBDgUFBIsBBKQDBLcCBG0ErQQ1BgEBBA0cBgEBBA2pAQYFAAQGBwEEBQ8EtgYEEQQ1BDoEHAQYBPkBBLsCBKkDBE8EtAcE5gME5AIE0wME1wICBg+2BgYBAQQNEQYBDgUDBGQEpAMEbTUGAQEEDToGAQEEDRwGAQEEDRgGAQEEogH5AQYBAQSiAbsCBgIABQIEAwQKHQQgqQMGAQAEX08GAgAECAkGAQEEzQi0BwYCAAQICQYBAQTOCOYDBgIABAgJBgEBBN8C5AIGARkFAgYBAAQKBgEBBO0E0wMGARkFAgYBAAQKBgEBBO4E1wIGARkFAgYBAAQKBgEBBO8EGQUDBgECBgLkAgYBAQTtBNcCBgEABAoGAQIGA+QCBgEABArTAwYBAQTuBNcCBgEABAoGAQIGA+QCBgEABArTAwYBAAQK1wIGAQEE7wSHCwYEAAQGBwEEBQQEggEExQEE7wEEzQECBgSCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV80BBgEOBQQE0QQEoAQEywMEpQSJCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGAQEEggccBgEOBQMEBATlAwTMAswCBgEABF+FCwYEAAQGBwEEBQIENQShAwIGAjUGAQEEDaEDBgEBBCiICwYEAAQGBwEEBQUEEQQvBHsEOQSoBwIGBREGAQUEiwEvBgIABAMLBJYCewYCAAQDCwSXAjkGAQEEjQGoBwYBAQQoigsGBAAEBgcBBAUCBHEEgAICBgJxBgIABAMLBKcCgAIGAQEEogEwBgQABAYHAQQFDQRZBFEEpQEEGAQcBDoE/gEErgEEogQE+QUEkQYEwgcEOQIGDVkGAQEEDVEGAgAEEhADDKUBBgEBBCgYBgEBBKIBHAYBAQQNOgYCAAUCBAMECg8DFf4BBgEBBCWuAQYBAQQNogQGAQEExAv5BQYDAAQIFgIJBgEBBA2RBgYCAAQICQYBAQSUA8IHBgIABAgJBgEBBJQDOQYBAQSNAU8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BxAEGBAAEBgcBBAUSBK8CBB8EwAMEXAT6AwSzAwTRAQSXAQSWAQQ7BIcCBIQCBEcEiQEE/QEEcAT1AQQ5AgYSrwIGAQEEDR8GAQ4FBQSgAgSyAQSbAQS7AQRXwAMGAQ4FBQS3BgTZBwSiBwTVBwS7AVwGAQEEffoDBgMABAgWAgkGAQEEDbMDBgMABAgWAgkGAQEEDdEBBgEZBQIGAQAECgYBAQTYBJcBBgEZBQIGAQAECgYBAQSkApYBBgIABAMdBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE2QRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BWwYEAAQGBwEEBQYEswQEEQQ1BKEBBDwEYAIGBrMEBgEBBA0RBgEOBQoExAEEywIEowoEjwwEZAQwBIQDBDYErQQE6gM1BgEBBA2hAQYBAQQlPAYCAAUCBAMECg8DFWAGAwAECBYCCQYBAQQNNgYEAAQGBwEEBRIE2gMEWQSuAQQfBM8GBOEGBGAElgEEZAS3AgTSAgRtBLIEBOoDBO4DBLoDBHAEOQIGEtoDBgEBBA1ZBgEBBA2uAQYBAQQNHwYBAQQNzwYGARkFAgYBAAQKBgEBBOcI4QYGAwAECBYCCQYBAQQNYAYDAAQIFgIJBgEBBA2WAQYCAAQDHQQgZAYBGQUCBgEABAoGAQEEpQi3AgYCAAQICQYBAQSUA9ICBgIABAgJBgEBBJQDbQYBGQUCBgEABAoGAQEEjgmyBAYBGQUCBgEABAoGAQEE4QjqAwYBGQUCBgEABAoGAQEE+gjuAwYBGQUCBgEABAoGAQEE+gS6AwYBGQUCBgEABAoGAQEE3ARwBgEBBOoBOQYBAQSNAa0EBgQABAYHAQQFBgS5BgTaAwRcBLkDBGAEcgIGBrkGBgEBBA3aAwYBAQQNXAYBAQQluQMGAgAECAkGAQEEDWAGAgAECAkGAQEEDXIGAgAEAx0EIIMBBgQABAYHAQQFEgTBAwQ+BAAE2wEE8AEEMgThBwTxBQSIBgSqAwT1BwSnAwRgBJ8HBIQDBNQDBPcFBJoEAgYSwQMGAQEEDT4GAgAEEhADDAAGAQEEDdsBBgEBBA3wAQYBAQQNMgYDAAUCBAMEChcDDA8DFeEHBgIABAMdBCDxBQYBAQQNiAYGAQEEKKoDBgEBBMgI9QcGAQEEfacDBgEZBQIGAQAECgYBAQTHCGAGAwAECBYCCQYBAQQNnwcGAQEEyQiEAwYBGQUCBgEABAoGAQEEygjUAwYBGQUCBgEABAoGAQEE8QT3BQYDAAQIFgIJBgEBBI0BmgQGARkFAgYBAAQKBgEBBI8ItwEGBAAEBgcBBAUHBOgFBN0HBJkGBL8GBMQEBJcGBOYDAgYH6AUGARkFAgYBAAQKBgEBBPQE3QcGAQEE9AiZBgYBAQTrAb8GBgEFAcQEBgEBBOgIlwYGAwAECBYCCQYBDgUIBIEBBDAEZARrBIQBBIQDBM8KBL8K5gMGAgAECAkGAQEE3wKPBgYEAAQGBwEEBQMEnQEEyAIEzgICBgOdAQYBDgUEBN0BBNwBBOIBBOEByAIGAQEEkgPOAgYBAQSSA44GBgQABAYHAQQFBwRnBMgBBHUEgAEE1AIEZgRYAgYHZwYBAQQNyAEGAQEEDXUGAQEEKIABBgIABQIEAwQKCwQ/1AIGAgAEEhADE2YGAQEEDVgGAQEE0gHGBQYEAAQGBwEEBQYEPASlAwSXAQSWAQR1BIABAgYGPAYBAQQNpQMGAQEEDZcBBgEBBKQClgEGAgAEAx0EIHUGAQEEKIABBgIABQIEAwQKCwQ/xwUGBAAEBgcBBAUDBDwEdQSAAQIGAzwGAQEEDXUGAQEEKIABBgIABQIEAwQKCwQ/uAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BuIFBgQABAYHAQQFBAQRBDUEzQEEOQIGBBEGAQ4FBQTEAQTABgRkBDAENjUGAQEEDc0BBgEOBQQE0QQEoAQEywMEpQQ5BgEBBI0BhAMGBAAEBgcBBAUJBM8CBMUCBB8E+AEE7AIE/AME+wMEcAQ5AgYJzwIGAQEEDcUCBgEBBA0fBgEBBA34AQYCAAQDHQQg7AIGARkFAgYBAAQKBgEBBMUL/AMGAgAFAgQDBAoLBD/7AwYCAAUCBAMECgsEP3AGAQEE6gE5BgEBBI0B0gsGBAAEBgcBBAUKBKsBBNEDBPQBBGwE5AYE/wME3AIExwEEyQEERwIGCqsBBgEBBA3RAwYBAQQo9AEGAQAFAgRJBApsBgEABQIESQQK5AYGAQAFAgRJBAr/AwYCAAUCBAMECg8DFdwCBgIABQIEAwQKDwN+xwEGAgAFAgQDBAodBCDJAQYBDgUEBJMBBN8BBFIEuwFHBgMABQIESQQKEAMTTQMMwQoGBAAEBgcBBAUEBLICBFEEHAQ5AgYEsgIGAQEEDVEGAgAEEhADDBwGAQEEDTkGAQEEjQFtBgQABAYHAQQFCASuAQTuBwSrAQTRAwTOBgSGBgS3BARwAgYIrgEGAQEEDe4HBgEBBCirAQYBAQQN0QMGAQEEKM4GBgEBBH2GBgYCAAQICQYBAQQltwQGARkFAgYBAAQKBgEBBOQIcAYBAQTqAbcEBgQABAYHAQQFAgQRBCsCBgIRBgEOBQIEnwYEngYrBgEBBCWyBAYEAAQGBwEEBQMEEQQrBMcBAgYDEQYBDgUCBJ8GBJ4GKwYBAQQlxwEGAgAFAgQDBAodBCDqAwYEAAQGBwEEBQIEuQME6gUCBgK5AwYDAAQIFgIJBgEBBA3qBQYCAAQICQYBAQQl7AoGBAAEBgcBBAUCBIsCBKEBAgYCiwIGAgAFAgQDBAoPAxWhAQYBAQR96woGBAAEBgcBBAUEBLUCBK4CBL0CBMABAgYEtQIGAQEEDa4CBgMABAgWAgkGAQEEDb0CBgEBBA3AAQYBAQSCB+0KBgQABAYHAQQFAgSeBwTjBQIGAp4HBgIABQIEAwQKCwQ/4wUGAgAFAgQDBAoPAxXuCgYEAAQGBwEEBQIEHwT4AQIGAh8GAQEEDfgBBgIABQIEAwQKHQQgmgQGBAAEBgcBBAUEBLMCBBEE4AMEtwMCBgSzAgYBAQQNEQYBDgUFBLgFBLAHBKsDBFIE6wXgAwYCAAUCBAMECg8DFbcDBgEBBA3KBAYEAAQGBwEEBQUEcgQ0BMcHBLYCBK0HAgYFcgYCAAQDHQQgNAYBAQTrAccHBgEBBCi2AgYBAQQorQcGAQEEOOwLBgQABAYHAQQFBATXBwSCBgSHBgS2AgIGBNcHBgIABQIEEgQKEAMMggYGAgAFAgQSBAoQAwyHBgYCAAQSEAMTtgIGAQEEKMQEBgQABAYHAQQFBQT3AwS2AgTpBQSYBgTYBwIGBfcDBgEBBCi2AgYBAQQo6QUGAQAEX5gGBgEABF/YBwYBAARf1wUGBAAEBgcBBAUCBDUEMAIGAjUGAQEEDTAGAQEE8wK4BAYEAAQGBwEEBQMExQEEtQMEKwIGA8UBBgEOBQQEgwME8AIE6QIEV7UDBgIABBIQAwwrBgEOBQMElwQEngoEgws=`),uv=W_(`BgpCBENBBP0KRAYCGgS+BB4EJBgEyAkABAYHAQQFEQQRBBsEIQT/AQQsBCkEKgQ9BM4HBGcEGARcBBwEOgTlAQRyBI4CAgYbEQYBBQS+BBsGAQUELiEGAQUEJP8BBgIABAMLBJ0DLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Dbz0GAQ4FAgTMAQTLAc4HBgEBBJEDZwYBAQS8AaABBgEBBIMEiQMGAQEE2Ai1AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBIsEugEGAQEE5ASzAQYBAQTkBBgGAQEE1AFcBgEBBIcEWwYBAQSHBOsCBgEBBIcEHAYCAAQDDgUGBNUDBNgBBLgBBEAExgEEiwM6BgMABQIEAwQKFwMMDwMV5QEGAgAFAgQDBAodBCByBgIABAMdBCCOAgYCAAQDHQQgMwUDBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUKBgEEBQEEoAEGAQQFAQSJAwYBBAUBBLUBBgEEBQEEuQEGAQQFAQRHBgEEBQEEoQIGAQQFAQS6AQYBBAUBBLMBBgEEBQEEWwYBBAUBBOsCBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQoEoAEEiQMEtQEEuQEERwShAgS6AQSzAQRbBOsCBgIiBgECBgEcBgEFBMYBIwYB8QEFAgYBAgYBOgYBAAQDBgECBgHlAQYCAAQDHQQgRQYPUwYCAAQDCwSwATwGAgAEAwsEaS8GAgAEAwsElgKCAQYCAAQDCwSoApQLBgIABAMLBOwJkwsGAgAEAwsE5wmuBAYCAAQDCwToCZULBgIABAMLBO8JlgsGAgAEAwsE8QmvBAYCAAQDCwTwCWAGBAAECBQDFRYCCQYBAQTTAWwGBQAEBgcBBAUGBKoCBJkEBJ4EBLEEBM0EBMkEAgYGqgIGAQEEvAGZBAYEAAQIFAMVFgIJBgEBBNYIngQGBAAECBQDFRYCCQYBAQTXCLEEBgQABAgUAxUWAgkGAQEE2QjNBAYEAAQIFAMVFgIJBgEBBNsIyQQGBAAECBQDDBYCCQYBAQTaCPEBBQUGAQIGAZkEBgEmAwwGAQIGAZ4EBgEmAwwGAQIGAbEEBgEmAwwGAQIGAc0EBgEmAwwGAQIGAckEBgEmAwyhCwYEAAQDFwMMDwNuCwTWAbQEBgQABAMXAwwPAxVIBgELBKUCGAYFAAQDFwMMDwNMCwSbA0gGAQsEpQI=`),dv=W_(`BglCBENBBPgKRAYCGgTrBh4ELhgEywkABAYHAQQFFAQRBBsEIQSdBwQsBCkEKgQyBOYBBDQEaAShAwS7BQSnAwT5AQQ3BNQEBLUGBLsCBJwHAgYUEQYBBQTrBhsGAQUELiEGAQUEJJ0HBgIABAMLBPYJLAYBAQQNKQYBAQQNKgYBAQQ4MgYBAQQN5gEGAQEE+wQ0BgEBBOsBaAYBAQQooQMGAQEEKLsFBgEBBPMCpwMGAQ4FAwSICgToCwR2+QEGAQEEJTcGAwAECBYCCQYCAAQDCwTmCdQEBgEBBIsJtQYGAgAEAx0EILsCBgIABAMdBCCcBwYBAQQoRQYKGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DhwELBNYB5gEGBQAEBgcBBAUEBBEEGgRRBDECBgQRBgEOBQYEgQEE8wEE2QEEZASLAQQwGgYBAQQNUQYCAAUCBBIEChADDDEGAQEEKDMFAgYCIgYCAgYBEQYBDgUCBGQEMAQFAQQRIwYBAgYBUQYCAAQSEAMMBgIiBgICBgERBgEOBQQEgQEE8wEE2QEEiwEEBQEEESMGAQIGAVEGAQAECjQGARkFAgYEAAQGBwEEBQIEPgQxAgYCPgYBBQMTMQYBAAQKBgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiUDAYEAAQGBwEEBQUEEQQaBFEEMQRaAgYFEQYBAQQNGgYBAQQNUQYEAAUDBBIEAwQKEAMMFwMMDwMVMQYCAAUCBAMECgsEP1oGAwAFAgQDBAoXAwwPAxXUCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOBwGAQ4FAwQEBOUDBMwCzAIGAQAEX9YCBgQABAYHAQQFBAQEBOUDBK8HBJcHAgYEBAYCAAQSEAMM5QMGAgAEEhADE68HBgIABBIQAxOXBwYCAAQICQYBAQTqCNQEBgQABAYHAQQFBQQRBKECBMsEBNYGBNYCAgYFEQYBDgUFBIsBBKQDBG0EtwIE0gKhAgYDAAQIJgMMCQYBAQSMCcsEBgEABF/WBgYBAQQN1gIGARkFAgYBAAQKBgEBBIgJ`),fv=W_(`BglCBENBBIILRAYCGgSNBx4EJBgEyQkABAYHAQQFCwQRBBsEIQQsBCkEKgRlBJ4BBLQBBE4EsQICBgsRBgEFBI0HGwYBBQQuIQYBBQQkLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db2UGAgAEAx0EIJ4BBgIABAgJBgEBBMYLtAEGAgAECAkGAQEEwwtOBgIABAgJBgEBBPAGsQIGAgAECAkGAQEEnwhFBgK5CgYFAAQGBwEEBQQE7QIE2wEELwTNAQIGBO0CBgIABAMOBQMEqQQEZAQw2wEGAgAEAwsEoQUvBgIABAMLBJYCzQEGAgAEAw4FAwTRAQSTDAShChkFAwYBAgYC7QIGAQUEqQTbAQYBCwSdAwYBAgYC7QIGAQUEZNsBBgELBOMCBgECBgLtAgYBBQQw2wEGAQsE7QG0BAYEAAQDFwMMDwMVSAYBCwSlAg==`),pv=W_(`BglCBENBBPsKRAYCGgT8Bh4ELhgEygkABAYHAQQFDQQRBBsEIQTGBwQsBCkEKgQwBDQExAcEWwRyBMUHAgYNEQYBBQT8BhsGAQUELiEGAQUEJMYHBgIABAMLBOkJLAYBAQQNKQYBAQQNKgYBAQQ4MAYBAQSOAzQGAQEE6wHEBwYBDgUEBOwFBJoHBKsGBOMGWwYBAQQlcgYCAAQDHQQgxQcGAQEEKEUGBhoGAwAEAxcDDA8DFR4GAgAEAwsElAIxBgIABAMLBD+iAgYEAAQDFwMMDwNuCwSiBTAGBAAEBgcBBAUDBFkEUQSlAQIGA1kGAgAEAwsE7QFRBgIABBIQAwylAQYBAQQoNAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKA==`),mv=W_(`BgtCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBQAEBgcBBAUSBBEEGwQhBJ4CBJwEBCwEKQQqBGcEnQEEiQIEyAIEzgIENgSCAQTIAQSoAQTOAQIGEhEGAQUEvQQbBgEFBC4hBgEFBCSeAgYBAQT2CJwEBgEBBJMILAYBAQRLKQYBAQRLKgYBAQQ4ZwYBAQS8AZ0BBgEOBQQE3QEE3AEE4gEE4QGJAgYBGQUCBgEABAoGAQEElQPIAgYBAQT9Bs4CBgEBBP0GNgYBDgUCBLgBBECCAQYCAAUCBAMECgsEqALIAQYCAAUCBAMECgsEaagBBgQABQIEBgQKBwEEBQMEcQSGAgT6AQIGA3EGAQEEsAiGAgYBAARf+gEGAQEE+ATOAQYCAAQDHQQgMwUCBgIiBgECBgE2BgEFBLgBIwYBAgYEiQIGAQEElQOCAQYBAAQDyAEGAQAEA6gBBgEFAAYCIgYBAgYBNgYBBQRAIwYBAgYEiQIGAQUAggEGAQUAyAEGAQUAqAEGAQAEBkUGCO8CBgIABAMLBJUCHgYCAAQDCwSUAp4CBgIABAMLBOsJnAQGAgAEAwsE6gk8BgIABAMLBGmJAgYEAAQGBwEEBQIEGgQeAgYCGgYBAQRLHgYBAQQ4zgoGAQ4FFQScBQSXBQSRBQSWBQSQBQSFBQSHBQSGBQSeBQSdBQSIBQSJBQSbBQSaBQSfBQSLBQSNBQSMBQSOBQSPBQSKBc8EBgMABAYHAQIGBp0BBgEOBQQE3QEE3AEE4gEE4QGxBwYBAQRL1AcGAQEES8cCBgEBBEs8BgEBBLwBugcGAQEESw==`),hv=W_(`BglCBENBBPwKRAYCGgT/Bh4EJBgExQkABAYHAQQFHwQRBBsEIQTPAgTFAgSDAgTnAwQwBFMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwQfBPwDBPsDBNMFBNQFBMoBBMYCBOwCBL0HBK4BBNABBIkGBPgBBL4HAgYfEQYBBQT/BhsGAQUELiEGAQUEJM8CBgIABAMLBKoFxQIGAgAEAwsEqQKDAgYBBQSmBOcDBgEBBCgwBgEBBI4DUwYCAAQDCwSwAbUCBgIABAMLBKYFrgIGAwAECBYCCQYCAAQDCwSjBb0CBgIABAMLBOICwAEGAQEElgNsBgEBBIsEvwMGAQEE3gS4AgYBAQTqBK8DBgEZBQIGAQAECgYBAQSWAx8GAQ4FBQTbBwR5BJ8BBJsBBGP8AwYBAQQo+wMGAgAFAgQDBAoLBD/TBQYCAAUCBAMECgsEadQFBgIABQIEAwQKCwQ/ygEGAQEEjwPGAgYBAQSPA+wCBgEBBK4IvQcGAgAEAwsEaa4BBgIABAMLBKkF0AEGAgAFAgQDBAoLBJ4DiQYGBAAECCYDDBYCCQYCAAQDCwSkBfgBBgIABAMdBCC+BwYBAQQoRQYKGgYCAAQDCwSVAh4GAgAEAwsElAIxBgIABAMLBD9zBgEOBQYEdgTBAgTjAQTHBASoBAS8A/MHBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDjFBQYDAAQIFgIJBgIABAMLBGkwBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAQEEKGwGBAAEBgcBBAUDBBEEGgRRAgYDEQYBAQQNGgYDAAQDFwMMDwMVUQYDAAQDFwMMDwMVuAIGBAAEBgcBBAUCBMQDBMUDAgYCxAMGAQEEDcUDBgEBBDjsAgYEAAQGBwEEBQMEqwMEoQEEugUCBgOrAwYBAARfoQEGAwAEAxcDDA8DYroFBgMABAgWAgkGAwAEAxcDDA8DFQ==`),gv=W_(`BgpCBENBBP4KRAYCGgSABx4EJBgExgkABAYHAQQFHAQRBBsEIQTFAgSDAgQwBFME5wMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwSbBwTKAQSuAQTOBAQcBLQGBM8CBNABBNwDBHIEjgIEjgcCBhwRBgEFBIAHGwYBBQQuIQYBBQQkxQIGAgAEAwsEqQKDAgYBDgUCBKYEBNICMAYBAQSOA1MGAgAEAwsEsAHnAwYBAQQotQIGAgAEAwsEpgWuAgYDAAQIFgIJBgIABAMLBKMFvQIGAgAEAwsE4gLAAQYBAQSWA2wGAQEEiwS/AwYBAQTeBLgCBgEBBOoErwMGARkFAgYBAAQKBgEBBJYDmwcGAQEEjwPKAQYBAQSPA64BBgIABAMLBKkFzgQGAQ4FBAS1BATLBASsCgTFBhwGAQ4FCgSbCgSPCwTHCgTbBwR5BJ8BBJsBBGMEkQEEwwe0BgYCAAQDCwSkBc8CBgIABQIEAwQKCwTkCdABBgIABQIEAwQKCwSeA9wDBgIABQIEAwQKCwSpAnIGAgAEAx0EII4CBgIABAMdBCCOBwYBAQQoMwUCBgIiBgICBgGDAgYBBQSmBAQFAQSDAiMGAQIGA9ABBgEFANwDBgEFABwGAUgGAQUEwwcGAiIGAgIGAYMCBgEFBNICBAUBBIMCIwYBAgYD0AEGAQAEA9wDBgEABAPOBAYBSAYBBQS1BEUGCRoGAgAEAwsElQIeBgIABAMLBJQCMQYCAAQDCwQ/cwYBDgUGBHYEwQIE4wEExwQEqAQEvAPzBwYEAAQGBwEEBQIEGgQeAgYCGgYBAQQNHgYBAQQ4xQUGAwAECBYCCQYCAAQDCwRpMAYEAAQGBwEEBQMEWQRRBKUBAgYDWQYCAAQDCwTtAVEGAgAEEhADDKUBBgEBBChsBgQABAYHAQQFAwQRBBoEUQIGAxEGAQEEDRoGAwAEAxcDDA8DFVEGAwAEAxcDDA8DFbgCBgQABAYHAQQFAgTEAwTFAwIGAsQDBgEBBA3FAwYBAQQ4`),_v=new Map([[`operate-experience-view.schema.json`,lv],[`operating-finding.schema.json`,uv],[`operate-allowed-action.schema.json`,G_],[`operating-delivery-route.schema.json`,pv],[`operating-evidence-resolution.schema.json`,mv],[`operating-execution-result.schema.json`,hv],[`operating-governed-operation.schema.json`,gv],[`operating-review.schema.json`,$_],[`operating-trace-matrix.schema.json`,ev],[`operate-review-display-workspace.schema.json`,J_]]);function vv(e,t){return!t||t===`#`?e:t.startsWith(`#/`)?t.slice(2).split(`/`).map(e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`)).reduce((e,t)=>e?.[t],e):null}function yv(e){let[t,n=``]=e.split(`#`),r=t.split(`/`).at(-1),i=_v.get(r);return i?{schema:vv(i,n?`#${n}`:`#`),rootSchema:i,base:r}:null}function bv(e){let t=h_(e,sv,{base:`schemas/v1.2.0/operate-experience-surface.schema.json`,resolveRef:yv});if(t.length>0)return t;let n=e.truthSummary;return n.sourceViewHash!==e.viewHash||n.sourceEventHead.sequence!==e.eventHead.sequence||n.sourceEventHead.hash!==e.eventHead.hash||n.stages.total!==n.stages.cycles*7||n.evidence.linked>n.evidence.total||n.proof.linkedEvidence!==n.evidence.linked||n.seats.total!==n.seats.terminal+n.seats.active+n.seats.pending?[{path:`$.truthSummary`,rule:`sharedTruth`,detail:`does not bind one internally consistent shared truth summary`}]:[]}function xv(e){let t=bv(e);if(t.length>0){let e=TypeError(`operate-experience-surface: ${t[0].path} ${t[0].detail}`);throw e.code=`E_OPERATE_EXPERIENCE_SURFACE_INVALID`,e}return e}Object.freeze(structuredClone(sv));var Sv=new Set([`evidence`,`outcomes`,`outcome`,`history`,`search`,`export`]),Cv=new Map([[`operate-experience-audit-display-surface.schema.json`,ov],[`operate-experience-surface.schema.json`,sv],[`operate-experience-view.schema.json`,lv],[`operate-review-display-workspace.schema.json`,J_],[`operating-trace-matrix.schema.json`,ev]]);function wv(e,t){return!t||t===`#`?e:t.startsWith(`#/`)?t.slice(2).split(`/`).map(e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`)).reduce((e,t)=>e?.[t],e):null}function Tv(e){let[t,n=``]=e.split(`#`),r=t.split(`/`).at(-1),i=Cv.get(r);return i?{schema:wv(i,n?`#${n}`:`#`),rootSchema:i,base:r}:null}function Ev(){return[{path:`$`,rule:`closedContract`,detail:`does not satisfy the closed audit display contract`}]}function Dv(e){try{let t=decodeURIComponent(e);return t.length>0&&t!==`.`&&t!==`..`&&!t.includes(`/`)&&!t.includes(`\\`)&&encodeURIComponent(t)===e}catch{return!1}}function Ov(e){return e===null||Av(e)!==null}function kv(e,t,n){return e===null?!0:typeof n==`string`?t===`action`?e===`#/operate/actions/${encodeURIComponent(n)}`:t===`cycle`?e===`#/operate/cycles/${encodeURIComponent(n)}`:e===`#/operate/${t===`evidence`?`evidence`:`outcomes`}/${encodeURIComponent(n)}`:!1}function Av(e){if(typeof e!=`string`)return null;let t=/^#\/operate\/(evidence|outcomes)\/([^/?#]+)$/u.exec(e);if(t!==null&&Dv(t[2]))return{surface:t[1]===`evidence`?`evidence`:`outcome`,subjectId:decodeURIComponent(t[2])};let n=/^#\/operate\/actions\/([^/?#]+)$/u.exec(e);if(n!==null&&Dv(n[1]))return{surface:`action`,subjectId:decodeURIComponent(n[1])};let r=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(e);return r!==null&&Dv(r[1])?{surface:`cycle`,subjectId:decodeURIComponent(r[1])}:null}function jv(e,t=new Set){if(typeof e!=`object`||!e)return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(e=>jv(e,t));for(let[n,r]of Object.entries(e))if(n===`deepLink`){if(!Ov(r))return!1}else if(n===`deepLinks`){if(!Array.isArray(r)||!r.every(Ov))return!1}else if(!jv(r,t))return!1;return!0}finally{t.delete(e)}}function Mv(e,t=new Set){if(typeof e==`object`&&e&&!t.has(e)){if(t.add(e),Array.isArray(e))for(let n of e)Mv(n,t);else for(let[n,r]of Object.entries(e))n===`deepLink`&&r===null?e[n]=`#/operate/history/redacted`:Mv(r,t)}}function Nv(e){return{...e,results:e.results.map(e=>{if(![`evidence`,`claim`,`outcome`].includes(e.kind)&&T_(e,`deepLink`)){let{deepLink:t,...n}=e;return n}return e})}}function Pv(e){try{let t=D_(e);return t.mutationEnabled=t.status===`ready`,t.surface===`search`&&(t.data=Nv(t.data)),Mv(t.data),xv(t),!0}catch{return!1}}function Fv(e,t){let n=e.map(e=>e[t]);return n.every(e=>typeof e==`string`)&&new Set(n).size===n.length}function Iv(e){return e.accessState===`available`?e.accessReason===null:e.accessState===`restricted`&&e.claimStatus===`restricted`&&e.evidenceKind===null&&e.resolvedAt===null&&e.source===null&&e.producer===null&&e.observedAt===null&&e.provenance===null&&e.confidence===null&&e.accessReason===`access-denied`&&e.supportClaimIds.length===0&&e.contradictClaimIds.length===0&&e.gaps.length===0&&e.errors.length===0&&e.causalLinks.length===0}function Lv(e){return e.accessReason===null?e.statement!==null:e.status===`restricted`&&e.accessReason===`access-denied`&&e.statement===null&&e.source===null&&e.producer===null&&e.provenance===null&&e.confidence===null&&e.supportEvidenceRefIds.length===0&&e.contradictEvidenceRefIds.length===0&&e.gaps.length===0&&e.errors.length===0&&e.causalLinks.length===0}function Rv(e){return e.kind===`outcome`?kv(e.deepLink,`outcome`,e.subjectId):e.deepLink===null}function zv(e){let t=new Map(e.evidence.map(e=>[e.evidenceRefId,e])),n=new Map(e.claims.map(e=>[e.claimId,e]));if(!Fv(e.evidence,`evidenceRefId`)||!Fv(e.claims,`claimId`)||!e.evidence.every(e=>Iv(e)&&kv(e.deepLink,`evidence`,e.evidenceRefId)&&e.causalLinks.every(Rv))||!e.claims.every(e=>Lv(e)&&kv(e.deepLink,`evidence`,e.claimId)&&e.causalLinks.every(Rv)))return!1;for(let t of e.evidence)if(!t.supportClaimIds.every(e=>n.get(e)?.supportEvidenceRefIds.includes(t.evidenceRefId))||!t.contradictClaimIds.every(e=>n.get(e)?.contradictEvidenceRefIds.includes(t.evidenceRefId)))return!1;return e.claims.every(e=>e.supportEvidenceRefIds.every(n=>t.get(n)?.supportClaimIds.includes(e.claimId))&&e.contradictEvidenceRefIds.every(n=>t.get(n)?.contradictClaimIds.includes(e.claimId)))}function Bv(e){return e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&e.metric.observed!==null&&e.metric.freshness===`current`&&e.verification.accessReason===null}function Vv(e){return e.accessReason===`access-denied`&&e.observationIds.length===0&&e.evidenceRefIds.length===0&&e.metric.baseline===null&&e.metric.target===null&&e.metric.observed===null&&e.metric.unit===null&&e.metric.window===null&&e.metric.confidence===null&&e.verification.accessReason===`access-denied`&&e.verification.method===null&&e.verification.evaluationRules.length===0&&e.verification.observationRequest===null&&e.nextObservation===null&&e.revisit===null}function Hv(e){return[`succeeded`,`failed`].includes(e.status)&&Vv(e)}function Uv(e){let t=e.metric,n=e.verification;return t===null||n===null||e.verificationPlanId!==n.verificationPlanId||t.metricId!==n.metricId||t.metricHash!==n.metricHash||!kv(e.deepLink,`outcome`,e.outcomeId)||e.decision!==null&&e.decision.deepLink!==null||!e.execution.every(e=>e.deepLink===null)||!e.rollback.every(e=>e.deepLink===null)||(e.accessReason===`access-denied`||n.accessReason===`access-denied`)&&!Vv(e)?!1:e.status===`insufficient-evidence`?t.observed===null&&e.observationIds.length===0&&e.evidenceRefIds.length===0&&e.snapshot===null&&e.delta===null:![`succeeded`,`failed`].includes(e.status)||Bv(e)||Hv(e)}function Wv(e,t=!1){let n=t?[e.outcome]:e.outcomes;if(!Fv(n,`outcomeId`)||!n.every(Uv)||!t&&!e.domainMetrics.every(e=>e.dueVerification.every(e=>e.deepLink===null)))return!1;let r=new Set(n.map(e=>e.outcomeId));return Fv(e.learnings,`learningId`)&&e.learnings.every(e=>r.has(e.outcomeId))}function Gv(e,t){return Fv(e.history,`eventId`)&&e.history.every(e=>e.deepLinks.every(t=>{let n=Av(t);return n?.surface===`evidence`?n.subjectId===e.entityId||e.evidenceRefIds.includes(n.subjectId):n?.surface===`outcome`&&n.subjectId===e.entityId}))&&e.replay.liveAccessUsed===!1&&F_(e.replay.finalHead,t)&&e.replay.parityProof.finalEventHashMatches===!0}function Kv(e){return e.results.every(e=>{if(!T_(e,`deepLink`))return!0;if(e.kind===`evidence`||e.kind===`claim`)return kv(e.deepLink,`evidence`,e.subjectId);if(e.kind===`outcome`)return kv(e.deepLink,`outcome`,e.subjectId);if(e.kind===`action`)return kv(e.deepLink,`action`,e.subjectId);if(e.kind===`cycle`)return kv(e.deepLink,`cycle`,e.subjectId);if(e.kind===`assignment`){if(e.deepLink===null)return!0;let t=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(e.deepLink);return t!==null&&Dv(t[1])}return!1})}var qv=[`kind`,`schemaVersion`,`protocolVersion`,`scopeId`,`domainId`,`domainVersion`,`generatedAt`,`eventHead`,`status`,`attention`,`domainMetrics`,`cycles`,`inbox`,`actions`,`evidence`,`claims`,`rationale`,`outcomes`,`learnings`,`history`,`replay`,`omissions`].sort(),Jv=new Set([`ownerActorId`,`actorId`,`partyId`,`requiredCapability`,`source`,`producer`,`provenance`,`authority`,`actionLocator`,`rawHash`,`canonicalHash`]);function Yv(e,t=new Set){if(typeof e!=`object`||!e)return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(e=>Yv(e,t));for(let[n,r]of Object.entries(e))if(Jv.has(n)||n===`errors`&&(!Array.isArray(r)||r.length!==0)||!Yv(r,t))return!1;return!0}finally{t.delete(e)}}function Xv(e){return e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`)}function Zv(e){return e.replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`&`,`&`)}function Qv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&P_(Object.keys(e).sort(),qv)&&Yv(e)&&jv(e)}function $v(e){return Array.isArray(e)?e.map(e=>$v(e)):typeof e!=`object`||!e?e:Object.fromEntries(Object.keys(e).sort().map(t=>[t,$v(e[t])]))}function ey(e){try{if(e.format===`json`){if(e.mediaType!==`application/json`)return!1;let t=JSON.parse(e.content);return Qv(t)&&JSON.stringify($v(t))===e.content}if(e.mediaType!==`text/html; charset=utf-8`)return!1;let t=`<!doctype html><html lang="en"><meta charset="utf-8"><title>OpenPlanr Operate audit export</title><body><main><h1>Operate audit export</h1><p>`,n=`</p><pre>`,r=`</pre></main></body></html>`;if(!e.content.startsWith(t)||!e.content.endsWith(r))return!1;let i=e.content.indexOf(n,142);if(i<0)return!1;let a=e.content.slice(i+9,-27),o=JSON.parse(Zv(a));if(!Qv(o))return!1;let s=$v(o),c=`${t}${Xv(`${s.domainId} / ${s.scopeId}`)}${n}${Xv(JSON.stringify(s,null,2))}${r}`;return e.content===c}catch{return!1}}function ty(e){return e.surface===`evidence`?zv(e.data):e.surface===`outcomes`?Wv(e.data):e.surface===`outcome`?Wv(e.data,!0):e.surface===`history`?Gv(e.data,e.eventHead):e.surface===`search`?Kv(e.data):e.surface===`export`&&ey(e.data)}function ny(e,t){return e.actorId!==t.actorId||e.scopeId!==t.scopeId||e.domainId!==t.domainId||e.domainVersion!==t.domainVersion||e.generatedAt!==t.generatedAt||e.viewHash!==t.viewHash||e.surface!==t.surface||!F_(e.eventHead,t.eventHead)?!1:e.surface===`outcome`?typeof e.subjectId==`string`&&e.query===null&&e.format===null&&t.data.outcome?.outcomeId===e.subjectId:e.surface===`evidence`?(e.subjectId===null||t.data.evidence?.some(t=>t.evidenceRefId===e.subjectId)||t.data.claims?.some(t=>t.claimId===e.subjectId))&&e.query===null&&e.format===null:e.surface===`search`?e.subjectId===null&&typeof e.query==`string`&&e.query===t.data.query&&e.format===null:e.surface===`export`?e.subjectId===null&&e.query===null&&e.format===t.data.format:e.subjectId===null&&e.query===null&&e.format===null}function ry(e,t){return Sv.has(e.payload.surface)&&e.payload.readOnly===!0&&e.payload.mutationEnabled===!1&&e.integrity.sourceViewHash===e.payload.viewHash&&e.integrity.sourceViewHash===e.requestBinding.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&F_(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&ny(e.requestBinding,e.payload)&&(t===void 0||P_(e.requestBinding,t))&&jv(e.payload.data)&&ty(e.payload)&&Pv(e.payload)}function iy(e,t){try{let n=D_(e),r=h_(n,ov,{base:`schemas/v1.2.0/operate-experience-audit-display-surface.schema.json`,resolveRef:Tv});return r.length>0||!ry(n,t)?r.length>0?r:Ev():n.integrity.contentHash===j_(N_(n),n.integrity.domain)?[]:Ev()}catch{return Ev()}}function ay(e,t){if(iy(e,t).length>0){let e=TypeError(`The Operate audit display surface does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_EXPERIENCE_AUDIT_DISPLAY_INVALID`,e}return e}Object.freeze(structuredClone(ov));function oy(e){if(!Array.isArray(e))return Object.freeze([]);let t=[];for(let n of e){if(typeof n!=`object`||!n)continue;let e=Reflect.get(n,`kind`),r=Reflect.get(n,`subjectId`),i=Reflect.get(n,`title`),a=Reflect.get(n,`summary`),o=Reflect.get(n,`state`),s=Reflect.get(n,`deepLink`);typeof e==`string`&&typeof r==`string`&&typeof i==`string`&&t.push(Object.freeze({kind:e,subjectId:r,title:i,summary:typeof a==`string`?a:null,state:typeof o==`string`?o:null,deepLink:typeof s==`string`&&s.startsWith(`#/operate/`)?s:null}))}return Object.freeze(t)}function sy(e){return e===null||e.hash===null?null:Object.freeze({sequence:e.sequence,hash:e.hash})}var cy=4194304;function ly(e){let t;try{t=new URL(e)}catch{throw Error(`OPERATE_ORIGIN_INVALID`)}if(t.origin!==e||t.protocol!==`http:`||![`127.0.0.1`,`localhost`,`[::1]`].includes(t.hostname))throw Error(`OPERATE_ORIGIN_INVALID`);return t.origin}async function uy(e){let{identity:t}=e;if(t.productArea!==`operate`||t.cycleId===null||t.viewHash===null)return Object.freeze([]);let n=ly(e.origin),r=e.query??``;if(r.length>512)return Object.freeze([]);let i=new URL(`/api/operate/search`,n);i.searchParams.set(`scopeId`,t.scopeId),i.searchParams.set(`domainId`,t.domainId),i.searchParams.set(`domainVersion`,t.domainVersion),i.searchParams.set(`cycleId`,t.cycleId),i.searchParams.set(`q`,r);let a=await(e.fetcher??fetch)(i,{headers:{accept:`application/json`,"x-openplanr-actor":t.actorId},cache:`no-store`,signal:e.signal}),o=await a.text();if(new TextEncoder().encode(o).byteLength>cy)throw Error(`Search response exceeds the dashboard JSON limit.`);let s;try{s=JSON.parse(o)}catch{throw Error(`Search response is not JSON.`)}if(!a.ok)return Object.freeze([]);try{let e=ay(s),n=e.payload,i=sy(t.eventHead);return n.surface!==`search`||i===null?Object.freeze([]):(ay(e,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:null,surface:`search`,query:r,format:null,generatedAt:n.generatedAt,eventHead:i,viewHash:t.viewHash})),oy(n.data.results))}catch{return Object.freeze([])}}var dy=200;function fy(e){let[t,n]=(0,v.useState)([]),{binding:r,connectionState:i,query:a}=e;return(0,v.useEffect)(()=>{let e=a.trim();if(typeof window>`u`||!r||r.productArea!==`operate`||r.cycleId===null||i!==`connected`||e.length===0){n([]);return}let t=new AbortController,o=setTimeout(()=>{uy({origin:window.location.origin,identity:r,query:e,signal:t.signal}).then(e=>{t.signal.aborted||n(e)}).catch(()=>{t.signal.aborted||n([])})},dy);return()=>{clearTimeout(o),t.abort()}},[r,i,a]),t}var py=Object.freeze([]),my=`Jump to a view or an artifact…`;function hy(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function gy(e,t){let[n,r]=(0,v.useState)(t);(0,v.useEffect)(()=>{t&&e.some(e=>e.cycleId===t)?r(t):r(t=>t&&e.some(e=>e.cycleId===t)?t:null)},[e,t]);let i=(0,v.useMemo)(()=>e.find(e=>e.cycleId===n)??null,[e,n]);return Object.freeze({binding:i,selectedCycleId:n,setSelectedCycleId:r})}function _y({bindings:e,selectedCycleId:t,onSelect:n}){return e.length===0?null:(0,F.jsxs)(`div`,{className:`pc-palette__cycle`,children:[(0,F.jsx)(`span`,{children:`operate cycle`}),(0,F.jsx)(Xp,{size:`sm`,ariaLabel:`Operate Cycle for search results`,value:t??``,onChange:e=>n(e||null),options:[{value:``,label:`Select a cycle`},...e.map((t,n)=>({value:t.cycleId??``,label:`${hy(t.domainId)} cycle${e.length>1?` ${n+1}`:``}`}))]})]})}function vy(e){typeof window<`u`&&(window.location.hash=e)}function yy(e,t,n,r,i){let[a,o]=(0,v.useState)(t),[s,c]=(0,v.useState)(()=>Bg([])),l=gy(n,r),u=fy({binding:l.binding,connectionState:i,query:a}),d=(0,v.useMemo)(()=>Object.freeze({...e,operateResults:u}),[e,u]),f=(0,v.useMemo)(()=>Ig(d),[d]),p=(0,v.useMemo)(()=>Rg(f,a),[f,a]),m=(0,v.useMemo)(()=>zg(f,a),[f,a]);return(0,v.useEffect)(()=>{c(Bg(p))},[p]),{query:a,setQuery:o,hits:p,unsupported:m,active:s.getActive(),selectedOperate:l,onKeyDown:(e,t)=>{if(e.key===`ArrowDown`)e.preventDefault(),c(e=>e.moveDown());else if(e.key===`ArrowUp`)e.preventDefault(),c(e=>e.moveUp());else if(e.key===`Enter`){e.preventDefault();let n=s.getActive()??p[0]??null;n&&t(n)}}}}function by({open:e,onClose:t,sources:n=Object.freeze({}),initialQuery:r=``,operateBindings:i=py,preferredOperateCycleId:a=null,connectionState:o=`disconnected`}){let s=(0,v.useRef)(null),c=(0,v.useRef)(null),l=(0,v.useId)(),u=yy(n,r,i,a,o),{setQuery:d}=u;(0,v.useEffect)(()=>{e&&d(r)},[e,r,d]),(0,v.useEffect)(()=>{let t=s.current;t&&(e?(typeof t.showModal==`function`&&!t.open?t.showModal():t.setAttribute(`open`,``),c.current?.focus(),c.current?.select()):typeof t.close==`function`&&t.open?t.close():t.removeAttribute(`open`))},[e]),(0,v.useEffect)(()=>{let e=s.current;if(!e)return;let n=()=>t();return e.addEventListener(`close`,n),()=>e.removeEventListener(`close`,n)},[t]);function f(e){vy(e.href),t()}return(0,F.jsx)(`dialog`,{ref:s,className:`pc-palette`,"aria-labelledby":`${l}-label`,onCancel:e=>{e.preventDefault(),t()},onMouseDown:e=>{e.target===s.current&&t()},children:(0,F.jsxs)(`div`,{className:`pc-palette__panel`,role:`document`,children:[(0,F.jsxs)(`div`,{className:`pc-palette__input-row`,children:[(0,F.jsx)(J,{name:`search`,size:15,color:`var(--pc-text-tertiary)`}),(0,F.jsx)(`span`,{id:`${l}-label`,className:`pc-visually-hidden`,children:`Command palette`}),(0,F.jsx)(`input`,{ref:c,id:`${l}-input`,className:`pc-palette__input`,type:`search`,value:u.query,placeholder:my,"aria-label":`Search views and artifacts`,autoComplete:`off`,spellCheck:!1,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Escape`?(e.preventDefault(),t()):u.onKeyDown(e,f)}}),(0,F.jsx)(Lp,{size:`sm`,children:`esc`})]}),(0,F.jsx)(_y,{bindings:i,selectedCycleId:u.selectedOperate.selectedCycleId,onSelect:u.selectedOperate.setSelectedCycleId}),(0,F.jsx)(Uh,{hits:u.hits,unsupported:u.unsupported,activeHref:u.active?.href??null,listId:l,onSelect:f}),(0,F.jsxs)(`div`,{className:`pc-palette__foot`,"aria-hidden":`true`,children:[(0,F.jsxs)(`span`,{className:`pc-palette__key`,children:[(0,F.jsx)(Lp,{size:`sm`,children:`↑`}),(0,F.jsx)(Lp,{size:`sm`,children:`↓`}),` move`]}),(0,F.jsxs)(`span`,{className:`pc-palette__key`,children:[(0,F.jsx)(Lp,{size:`sm`,children:`⏎`}),` open`]}),(0,F.jsxs)(`span`,{className:`pc-palette__count`,children:[u.hits.length,` results`]})]})]})})}function xy({sources:e=Object.freeze({}),initialQuery:t=``,operateBindings:n=py,preferredOperateCycleId:r=null,connectionState:i=`disconnected`}){let a=(0,v.useId)(),o=yy(e,t,n,r,i);return(0,F.jsxs)(`section`,{className:`op-workspace pc-search-page`,"data-route-kind":`planning.search`,children:[(0,F.jsx)(Jp,{eyebrow:`planr-status · search`,title:`Search`,count:`${o.hits.length} ${o.hits.length===1?`result`:`results`}`,description:`Planning work and Operate items, from access-safe projections.`}),(0,F.jsx)(`div`,{className:`pc-search-page__query`,children:(0,F.jsx)(Yp,{value:o.query,onChange:o.setQuery,ariaLabel:`Search query`,placeholder:my,icon:`search`,size:`lg`,width:560})}),(0,F.jsx)(_y,{bindings:n,selectedCycleId:o.selectedOperate.selectedCycleId,onSelect:o.selectedOperate.setSelectedCycleId}),(0,F.jsx)(Uh,{hits:o.hits,unsupported:o.unsupported,activeHref:o.active?.href??null,listId:a,onSelect:e=>vy(e.href)})]})}function Sy(e){return Object.freeze({planningNodes:Ph(e)})}function Cy(e){let[t,n]=(0,v.useState)(!1),r=(0,v.useMemo)(()=>Sy(e),[e]);return(0,v.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),n(!0))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),Object.freeze({open:t,sources:r,show:()=>n(!0),close:()=>n(!1)})}var wy=Object.freeze({selection:null,openTick:0}),Ty=new Set;function Ey(){for(let e of Ty)e()}function Dy(e){wy=Object.freeze({selection:e,openTick:wy.openTick+1}),Ey()}function Oy(e){return Ty.add(e),()=>{Ty.delete(e)}}function ky(){return(0,v.useSyncExternalStore)(Oy,()=>wy,()=>wy)}var Ay=Object.freeze({wait:Object.freeze({instruction:`Wait for OpenPlanr to publish another validated state. No action is inferred.`}),none:Object.freeze({instruction:`Continue only with exact allowed actions returned for the current binding.`}),"server-action-only":Object.freeze({instruction:`Use only an exact action returned by OpenPlanr for this state.`}),inspect:Object.freeze({instruction:`Inspect access-safe history. Inspection does not change durable state.`,href:`#/operate/history`,linkLabel:`Inspect History`}),reconcile:Object.freeze({instruction:`Reconcile against the current projection before considering another action.`,href:`#/operate/recovery`,linkLabel:`Open Recovery`}),"request-access":Object.freeze({instruction:`Request access through the project owner. This dashboard cannot grant authority.`}),"restore-connection":Object.freeze({instruction:`Restore the loopback connection, then wait for exact current reconciliation.`}),reinstall:Object.freeze({instruction:`Install matching OpenPlanr dashboard assets, then verify compatibility again.`,href:`#/diagnostics`,linkLabel:`Open diagnostics`}),"canonical-recovery-only":Object.freeze({instruction:`Use only the canonical reconciliation or recovery path returned by OpenPlanr.`,href:`#/operate/recovery`,linkLabel:`Open Recovery`})});function jy(e){return{operation:`Operation`,cycleId:`Cycle`,assignmentId:`Assignment`,submissionId:`Submission`,submissionState:`Submission state`,reviewId:`Review`,state:`State`,maxBytes:`Maximum bytes`}[e]}function My({state:e,proven:t,notProven:n,headingId:r}){let i=(0,v.useId)(),a=r??`dashboard-recovery-${i}`,o=Ay[e.policy.recovery],s=o.href===`#/diagnostics`||e.binding?.productArea===`operate`?o.href:void 0,c=e.error?Re(e.error):null,l=e.error?Te.flatMap(t=>{let n=e.error?.context[t];return n===void 0?[]:[[t,n]]}):[];return(0,F.jsxs)(`section`,{className:`op-ready-truth`,"data-recovery-guidance":e.policy.recovery,"aria-labelledby":a,children:[(0,F.jsxs)(`div`,{className:`op-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Recovery posture`}),(0,F.jsx)(`h2`,{id:a,tabIndex:-1,"data-product-state-recovery-heading":!0,children:`Known, unknown, and next safe step`})]}),(0,F.jsx)(`p`,{children:o.instruction})]}),(0,F.jsxs)(`dl`,{"aria-label":`Recovery truth`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Proven`}),(0,F.jsx)(`dd`,{children:t})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Not proven`}),(0,F.jsx)(`dd`,{children:n})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Next safe step`}),(0,F.jsx)(`dd`,{children:o.instruction})]})]}),e.error?(0,F.jsxs)(`section`,{"data-safe-error":!0,"aria-labelledby":`${a}-diagnostic`,children:[(0,F.jsx)(`h3`,{id:`${a}-diagnostic`,children:`Certified diagnostic`}),(0,F.jsxs)(`dl`,{"aria-label":`Certified diagnostic fields`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Code`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.error.code})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Recovery classification`}),(0,F.jsx)(`dd`,{children:e.kind===`uncertain`?`Reconciliation is required before any further instruction.`:c?.retryableAfterReconciliation?`Eligible for a new instruction only after current reconciliation.`:`No repeated instruction is certified by this diagnostic.`})]}),l.map(([e,t])=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:jy(e)}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:String(t)})})]},e))]})]}):null,s&&o.linkLabel?(0,F.jsx)(`a`,{className:`op-inline-action`,href:s,children:o.linkLabel}):null,(0,F.jsx)(`p`,{className:`op-authority-note`,children:`This view does not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs.`})]})}var Ny=Object.freeze({booting:Py(`Compatibility check`,`Verifying this dashboard`,`OpenPlanr has not yet published a complete compatible context.`,`The requested dashboard route is mounted.`,`Package compatibility, binding, and durable state are not yet proven.`),loading:Py(`Bound read`,`Loading the exact projection`,`The current public binding is known while its projection is loading.`,`The actor, project, scope, domain, subject, and generation are exact.`,`No current projection data or mutation authority is proven yet.`),"first-use":Py(`First durable context`,`Choose the first durable context`,`The server proved that this exact binding has no established operating state.`,`This is a validated first-use state for the current binding.`,`No Cycle, continuation, or browser-created start action is implied.`),ready:Py(`Current projection`,`Current state is ready`,`The projection passed its owner-boundary contract for the exact current binding.`,`The displayed data is current and validated for this binding.`,`No authority exists beyond exact runtime-issued allowed actions.`),empty:Py(`Exact empty result`,`Nothing is present in this view`,`The server returned an empty result for this exact binding.`,`The empty result belongs to the current route and binding.`,`No missing Cycle, hidden item, or first-use state is inferred.`),"read-only":Py(`Observer projection`,`Current state is read-only`,`Access-safe current data is available without mutation authority.`,`The displayed projection is validated for this exact binding.`,`No approval, execution, recovery, or write authority is available here.`),refreshing:Py(`Reconciliation`,`Refreshing current state`,`A new exact projection is required before controls can become available.`,`The retained projection still belongs to the current binding.`,`The latest Event head and mutation safety are not yet reconciled.`),stale:Py(`Stale projection`,`Current view is stale`,`Validated retained data is visible, but it is not the proven current head.`,`The retained data belongs to this exact binding.`,`Current Event-head parity and mutation safety are not proven.`),degraded:Py(`Degraded projection`,`Some current data is unavailable`,`Only the access-safe validated portion of this bound projection is shown.`,`The displayed portion passed its exact presentation contract.`,`Completeness and mutation safety are not proven.`),blocked:Py(`Blocked work`,`Current work is blocked`,`The projection proves a blocker without inventing a way around it.`,`The blocker and retained data belong to the exact current binding.`,`No bypass, completion, or recovery authority is implied.`),unavailable:Py(`Unavailable projection`,`This view is unavailable`,`OpenPlanr could not provide this exact view in the current context.`,`The unavailable result belongs to the exact current binding.`,`No empty result, private cause, or mutation authority is inferred.`),unauthorized:Py(`Access boundary`,`Access is not available`,`The public capability boundary refused this view without disclosing bound data.`,`The capability refusal is certified and access-safe.`,`No subject identity, private reason, or authority is disclosed.`),offline:Py(`Connection state`,`OpenPlanr is offline`,`Only a validated same-binding projection may remain visible while disconnected.`,`Any displayed retained data belongs to the exact current binding.`,`Freshness, server continuity, and mutation safety are not proven.`),incompatible:Py(`Installation boundary`,`Dashboard installation is incompatible`,`The UI, server, or packaged assets do not satisfy one compatible build contract.`,`The compatibility refusal is certified without presenting project data.`,`This is not an empty project, offline state, or partial projection.`),corrupt:Py(`Integrity boundary`,`Projection cannot be trusted`,`Contradictory or invalid public state was rejected before presentation.`,`The integrity refusal is certified and contains no partial project truth.`,`No retained data, lifecycle result, or mutation authority is trusted.`),conflict:Py(`Current-state conflict`,`Current state changed`,`The prior instruction no longer matches the current durable state.`,`A certified conflict was returned for this exact binding.`,`No prior confirmation, result, or successor is assumed to remain current.`),partial:Py(`Partial projection`,`Only part of the state is proven`,`The displayed portion is validated, but completeness is not established.`,`The access-safe displayed portion belongs to the exact current binding.`,`Completion, outcome, and mutation safety are not proven.`),uncertain:Py(`Effect custody`,`Effect state is uncertain`,`OpenPlanr cannot prove whether the external effect occurred.`,`The uncertainty is certified for the exact current binding.`,`No effect outcome or repeated instruction is proven.`),recovering:Py(`Recovery progress`,`Recovery is in progress`,`OpenPlanr is reconciling durable state through its canonical recovery path.`,`The recovery projection belongs to the exact current binding.`,`No terminal recovery result or new mutation authority is proven yet.`)});function Py(e,t,n,r,i){return Object.freeze({eyebrow:e,title:t,description:n,proven:r,notProven:i})}function Fy(e){return e===`booting`||e===`loading`||e===`refreshing`?`booting`:e===`first-use`||e===`empty`?`first-use`:e===`ready`?`ready-to-resume`:e===`offline`?`offline`:e===`incompatible`||e===`corrupt`||e===`conflict`||e===`uncertain`?`incompatible`:`unavailable`}function Iy(e){let t=e.closest(`[data-live-state-boundary]`)??e;t.dispatchEvent(new CustomEvent(`openplanr-live-state-close`,{bubbles:!1}));for(let e of t.querySelectorAll(`[data-live-unsafe-control]`))e instanceof HTMLDetailsElement&&(e.open=!1),typeof HTMLDialogElement<`u`&&e instanceof HTMLDialogElement&&e.open&&e.close()}function Ly(e,t){return t===`recovery-heading`?e.querySelector(`[data-product-state-recovery-heading]`):t===`state-heading`?e.querySelector(`.op-state-panel h2`):e.closest(`main`)?.querySelector(`h1`)??e.closest(`main`)}function Ry(e,t){if(e===null)return!0;if(t===null)return!1;try{return B(e,z(t))}catch{return!1}}function zy(e){return e.kind===`first-use`?e.binding?.cycleId===null:e.kind!==`empty`||e.binding?.route!==`#/operate/today`||e.binding.cycleId===null}function By({state:e,currentBinding:t,children:n}){let r=(0,v.useRef)(null),i=(0,v.useId)(),a=`dashboard-product-state-${i}`,o=`dashboard-product-recovery-${i}`,s=V(e),c=s&&zy(e),l=s&&c,u=l&&Ry(e.binding,t),d=l&&u&&at(e,t),f=(0,v.useRef)(null),p=(0,v.useRef)(null),m=l&&u?e.policy.focus:`state-heading`,h=`${l&&u?e.kind:`state-rejected`}:${m}:${d?`mutable`:`safe`}`;if((0,v.useEffect)(()=>{let e=r.current;if(!e||(!d&&p.current!==!1&&Iy(e),p.current=d,f.current===h))return;let t=Ly(e,m);t&&(t.hasAttribute(`tabindex`)||t.setAttribute(`tabindex`,`-1`),t.focus({preventScroll:!0})),f.current=h},[m,h,d]),!l||!u)return(0,F.jsx)(`div`,{ref:r,"data-product-state":`incompatible`,"data-product-state-custody":`rejected`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Validation boundary`,title:s&&!c?`Product state contradicts durable context`:l?`Projection does not match the current context`:`Product state could not be validated`,description:`OpenPlanr rejected untrusted or foreign data before it reached this route.`,detail:`No foreign actor, project, scope, domain, Cycle, subject, head, view, or generation is displayed.`,headingId:a})});if(e.kind===`ready`)return(0,F.jsxs)(`div`,{ref:r,"data-product-state":`ready`,"data-product-state-mutation":d?`allowed`:`disabled`,children:[e.data!==null&&n?n(e.data,e.kind,d):null,(0,F.jsx)(`p`,{className:`op-authority-note`,"data-product-state-authority":!0,children:d?`Mutation remains limited to exact runtime-issued allowed actions for this binding.`:`Mutation controls remain disabled in this presentation state.`})]});let g=Ny[e.kind];return(0,F.jsxs)(`div`,{ref:r,"data-product-state":e.kind,"data-product-state-mutation":d?`allowed`:`disabled`,children:[(0,F.jsx)(Y,{state:Fy(e.kind),eyebrow:g.eyebrow,title:g.title,description:g.description,detail:e.reasonCodes.length>0?e.reasonCodes.join(` · `):void 0,headingId:a}),e.data!==null&&n?n(e.data,e.kind,d):null,(0,F.jsx)(My,{state:e,proven:g.proven,notProven:g.notProven,headingId:o}),(0,F.jsx)(`p`,{className:`op-authority-note`,"data-product-state-authority":!0,children:d?`Mutation remains limited to exact runtime-issued allowed actions for this binding.`:`Mutation controls remain disabled in this presentation state.`})]})}Object.freeze({presentation:`incompatible`,reason:Object.freeze({title:`Projection is incompatible`,detail:`The parser-branded state does not match the exact current route binding.`})});function Vy({currentBinding:e,route:t,state:n,children:r}){let i=!t||e===null||t.kind!==`not-found`&&e.route===j(t)&&e.productArea===t.product&&e.subjectId===t.subjectId;return V(n)?(0,F.jsx)(`section`,{className:`op-projection-boundary`,"data-projection-boundary":n.kind,"aria-label":`Current product state`,children:(0,F.jsx)(By,{state:n,currentBinding:i?e:null,children:r})}):(0,F.jsx)(`section`,{className:`op-projection-boundary`,"data-projection-boundary":`incompatible`,"aria-label":`Current product state`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`State boundary`,title:`Product state could not be validated`,description:`OpenPlanr rejected an unverified state before presenting any product data.`})})}var Hy=Object.freeze({approvalExecution:`Named approval satisfies only its exact version-bound requirement. Execution receives a fresh authority check.`,verification:`Outcome verification remains separate. No success claim appears before accepted evidence.`,retry:`An effect may have occurred. Only Inspect, Reconcile, custody restoration, or an explicit runtime recovery route is legal.`}),Uy=new Set([`today`,`inbox`,`cycles`,`cycle`,`actions`]),Wy=Object.freeze([`observe`,`understand`,`decide`,`govern`,`act`,`verify`,`learn`]),Gy=Object.freeze({created:0,observing:0,advising:1,challenging:1,synthesizing:1,awaiting_review:2,approved:3,executing:4,verifying:5,closed:6,blocked:0,failed:0,cancelled:0}),Ky=new Set([...Object.keys(Gy),`closed`,`blocked`,`failed`,`cancelled`]),qy=new Set([`normal`,`quiet`,`partial`,`blocked`]),Jy=Object.freeze([`source`,`touched`,`carried-forward`]),Yy=Object.freeze({finding:/^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,decision:/^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,action:/^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u}),Xy=Object.freeze({finding:new Set([`open`,`accepted`,`resolved`,`rejected`,`deferred`,`superseded`]),decision:new Set([`proposed`,`approved`,`rejected`,`deferred`,`superseded`]),action:new Set([`proposed`,`approved`,`queued`,`in_progress`,`completed`,`blocked`,`rejected`,`deferred`,`cancelled`])}),Zy=new Map([[`operate-experience-display-surface.schema.json`,av],[`operate-action-display-workspace.schema.json`,tv],[`operate-cycle-display-workspace.schema.json`,nv],[`operate-executive-board-display-surface.schema.json`,iv],[`operate-recovery-display-surface.schema.json`,rv],[`operate-experience-surface.schema.json`,sv],[`operate-experience-view.schema.json`,lv],[`operate-review-display-workspace.schema.json`,J_],[`operating-finding.schema.json`,uv],[`operate-experience-preview.schema.json`,dv],[`operate-api-envelope.schema.json`,cv],[`operate-allowed-action.schema.json`,G_],[`operating-work-ledger.schema.json`,fv],[`operating-delivery-route.schema.json`,pv],[`operating-evidence-resolution.schema.json`,mv],[`operating-execution-result.schema.json`,hv],[`operating-governed-operation.schema.json`,gv],[`operating-review.schema.json`,$_],[`operating-trace-matrix.schema.json`,ev]]);function Qy(e,t){return!t||t===`#`?e:t.startsWith(`#/`)?t.slice(2).split(`/`).map(e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`)).reduce((e,t)=>e?.[t],e):null}function $y(e){let[t,n=``]=e.split(`#`),r=t.split(`/`).at(-1),i=Zy.get(r);return i?{schema:Qy(i,n?`#${n}`:`#`),rootSchema:i,base:r}:null}function eb(){return[{path:`$`,rule:`closedContract`,detail:`does not satisfy the closed display contract`}]}function tb(e,t){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let n=Object.keys(e);return n.length===t.length&&t.every(e=>n.includes(e))}function nb(e,t,{workspace:n=!1,executiveBoard:r=!1,action:i=!1,recovery:a=!1}={}){if(!t)return!0;if(e.actorId!==t.actorId||e.scopeId!==t.scopeId||e.domainId!==t.domainId||e.domainVersion!==t.domainVersion||e.generatedAt!==t.generatedAt||e.viewHash!==t.viewHash||!F_(e.eventHead,t.eventHead))return!1;if(!n){if(t.surface!==void 0&&e.surface!==t.surface)return!1;if(e.surface===`inbox`||e.surface===`actions`)return t.surface===e.surface&&typeof t.projectId==`string`&&Number.isSafeInteger(t.generation)&&e.data.requestBinding.projectId===t.projectId&&e.data.requestBinding.generation===t.generation&&(e.surface!==`inbox`||e.data.requestBinding.subjectId===t.subjectId)&&(e.surface!==`actions`||t.subjectId===null&&typeof t.cycleId==`string`&&t.cycleId.length>0);if(e.surface===`cycle`){let n=e.data.cycle.cycleId;if(typeof t.subjectId!=`string`||typeof t.cycleId!=`string`||t.subjectId!==n||t.cycleId!==n)return!1}return!0}return r?t.cycleId===e.data.cycleId&&t.subjectId===e.data.cycleId:i?t.subjectId===e.data.action.actionId&&t.actionId===e.data.action.actionId:a?!0:t.cycleId===e.data.cycle.cycleId&&t.subjectId===e.data.cycle.cycleId}function rb(e){if(!e||typeof e!=`object`||!Ky.has(e.state)||!qy.has(e.health)||!Array.isArray(e.stages)||e.stages.length!==Wy.length||!e.stages.every((e,t)=>e.id===Wy[t]))return!1;let t=Gy[e.state];return e.stages.every((n,r)=>{let i=r<t?`complete`:r===t?`current`:`waiting`;e.state===`closed`&&(i=`complete`),r===t&&[`blocked`,`failed`].includes(e.state)&&(i=e.state),r===t&&e.state===`cancelled`&&(i=`skipped`);let a=[`blocked`,`failed`,`skipped`].includes(i)?`Cycle is ${e.state}.`:null;return n.state===i&&n.reason===a})}function ib(e,t){let n=e.payload;if(!Uy.has(n.surface)||e.integrity.sourceViewHash!==n.viewHash||n.truthSummary.sourceViewHash!==n.viewHash||!F_(n.truthSummary.sourceEventHead,n.eventHead)||!nb(n,t))return!1;if(n.surface===`inbox`){let e=n.data.inbox,t=n.data.requestBinding.subjectId;return Array.isArray(e)&&new Set(e.map(e=>e.itemId)).size===e.length&&(t===null||e.length===1&&e[0].itemId===t)&&e.every((t,n)=>n===0||Number(e[n-1].blocking)>Number(t.blocking)||Number(e[n-1].blocking)===Number(t.blocking)&&e[n-1].itemId.localeCompare(t.itemId)<0)}if(n.surface===`actions`){let e=n.data.actions;return Array.isArray(e)&&new Set(e.map(e=>e.actionId)).size===e.length}let r=n.surface===`today`?n.data.activeCycle===null?[]:[n.data.activeCycle]:n.surface===`cycles`?n.data.cycles:[n.data.cycle];return new Set(r.map(e=>e.cycleId)).size===r.length&&r.every(rb)}function ab(e,t){return tb(e,[`kind`,`subjectId`,`state`,`relations`])&&e.kind===t&&typeof e.subjectId==`string`&&Yy[t].test(e.subjectId)&&typeof e.state==`string`&&Xy[t].has(e.state)&&Array.isArray(e.relations)&&e.relations.length>=1&&e.relations.length<=Jy.length&&e.relations.every(e=>Jy.includes(e))&&new Set(e.relations).size===e.relations.length}function ob(e){return tb(e,[`entityKind`,`entityId`,`cycleId`,`relation`])&&Yy[e.entityKind]?.test(e.entityId)===!0&&typeof e.cycleId==`string`&&Jy.includes(e.relation)}function sb(e,t){let n=[...e.findings,...e.decisions,...e.actions],r=n.map(e=>`${e.kind}:${e.subjectId}`),i=e.cycleLinks.map(e=>`${e.entityKind}:${e.entityId}:${e.cycleId}:${e.relation}`);return new Set(r).size!==r.length||new Set(i).size!==i.length||e.cycleLinks.some(e=>e.cycleId!==t||!n.some(t=>t.kind===e.entityKind&&t.subjectId===e.entityId))?!1:n.every(t=>P_(t.relations,e.cycleLinks.filter(e=>e.entityKind===t.kind&&e.entityId===t.subjectId).map(e=>e.relation)))}function cb(e,t){return tb(e,[`tool`,`arguments`,`label`,`effect`])&&e.tool===`operate.cycle.get`&&tb(e.arguments,[`cycleId`])&&e.arguments.cycleId===t&&typeof e.label==`string`&&e.label.length>0&&e.label.length<=256&&!/(?:<[^>]+>|\{\{[^}]+\}\})/u.test(e.label)&&e.effect===`read-only`}function lb(e){let t=e.verification,n=e.metric;return[`succeeded`,`failed`].includes(e.status)&&e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&n!==null&&n.observed!==null&&n.freshness===`current`&&t!==null&&t.accessReason===null&&e.verificationPlanId===t.verificationPlanId&&n.metricId===t.metricId&&n.metricHash===t.metricHash}function ub(e,t,n,r){let i=e.actions.map(e=>e.subjectId),a=e.outcomes.map(e=>e.outcomeId),o=e.learnings.map(e=>e.learningId);if(new Set(a).size!==a.length||new Set(o).size!==o.length||e.outcomes.some(e=>!i.includes(e.actionId))||e.learnings.some(e=>!a.includes(e.outcomeId)))return!1;let s=r.proof.status===`verified`?`verified`:r.proof.status===`not-required`?`not-required`:`unverified`,c=s===`unverified`?r.proof.reasonCodes.length>0?r.proof.reasonCodes:[`OPERATE_VERIFICATION_EVIDENCE_MISSING`]:[];return n.status===s&&P_(n.reasonCodes,c)}function db(e,t,n){return{ok:!0,kind:`operate-experience-surface`,schemaVersion:`1.0.0`,protocolVersion:e.protocolVersion,surface:t,readOnly:!0,mutationEnabled:e.status===`ready`,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,actorId:e.actorId,accessLevel:e.accessLevel,generatedAt:e.generatedAt,eventHead:e.eventHead,viewHash:e.viewHash,truthSummary:e.truthSummary,status:e.status,reasonCodes:e.reasonCodes,data:n}}function fb(e){let t=e.data;if(!tb(t.ownerCycle,[`cycleId`,`scopeId`,`domainId`,`domainVersion`,`state`,`health`,`focus`,`createdAt`,`updatedAt`])||!Array.isArray(t.persistentWork.findings)||!t.persistentWork.findings.every(e=>ab(e,`finding`))||!Array.isArray(t.persistentWork.decisions)||!t.persistentWork.decisions.every(e=>ab(e,`decision`))||!Array.isArray(t.persistentWork.actions)||!t.persistentWork.actions.every(e=>ab(e,`action`))||!Array.isArray(t.persistentWork.cycleLinks)||!t.persistentWork.cycleLinks.every(ob)||!Array.isArray(t.persistentWork.outcomes)||!Array.isArray(t.persistentWork.learnings)||t.allowedActions.length!==1)return!1;try{let n=t.cycle,r={...n,assignments:n.assignments.map(e=>e.deepLink===null?{...e,deepLink:n.deepLink}:e)},i=t.persistentWork.outcomes.map(e=>e.deepLink===null?{...e,deepLink:`#/operate/outcomes/${encodeURIComponent(e.outcomeId)}`}:e);xv(db(e,`cycle`,{cycle:r})),xv(db(e,`outcomes`,{domainMetrics:[],outcomes:i,learnings:t.persistentWork.learnings})),xv(db(e,`history`,{history:[],replay:t.replay}));let a=t.persistentWork.actions.filter(e=>e.relations.includes(`source`)).map(e=>e.subjectId);return rb(n)&&t.ownerCycle.cycleId===n.cycleId&&t.ownerCycle.scopeId===e.scopeId&&t.ownerCycle.domainId===e.domainId&&t.ownerCycle.domainVersion===e.domainVersion&&t.ownerCycle.state===n.state&&t.ownerCycle.health===n.health&&P_(t.ownerCycle.focus,n.focus)&&t.ownerCycle.createdAt===n.createdAt&&t.ownerCycle.updatedAt===n.updatedAt&&n.deepLink===`#/operate/cycles/${encodeURIComponent(n.cycleId)}`&&F_(t.replay.finalHead,e.eventHead)&&P_(n.replayCheckpoint,t.replay.checkpoint)&&P_(n.persistentActionIds,a)&&sb(t.persistentWork,n.cycleId)&&ub(t.persistentWork,n,t.verification,e.truthSummary)&&cb(t.allowedActions[0],n.cycleId)}catch{return!1}}function pb(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&F_(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&nb(e.payload,t,{workspace:!0})&&fb(e.payload)}function mb(e,t,n,r,i){try{let a=D_(e);if(h_(a,t,{base:n,resolveRef:$y}).length>0||!r(a,i))return eb();let o=j_(N_(a),a.integrity.domain);return a.integrity.contentHash===o?[]:eb()}catch{return eb()}}function hb(e,t){return mb(e,av,`schemas/v1.2.0/operate-experience-display-surface.schema.json`,ib,t)}function gb(e,t){if(hb(e,t).length>0){let e=TypeError(`The Operate display surface does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_EXPERIENCE_DISPLAY_INVALID`,e}return e}function _b(e,t){return!t||e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&F_(e.eventHead,t.eventHead)&&e.sourceViewHash===t.sourceViewHash&&e.subject.id===t.subjectId&&e.actionDigest===t.actionDigest}function vb(e){if(new Set(e.targets.map(e=>`${e.kind}:${e.id}`)).size!==e.targets.length)return!1;if(e.kind!==`approval`)return e.threshold===null;let t=e.threshold;return t===null||t.recorded>t.required||t.remaining!==t.required-t.recorded?!1:t.remaining===0?e.nextState===`threshold-satisfied`:e.nextState===`recorded-parties-remain`}function yb(e,t){try{let n=D_(e),r=h_(n,dv,{base:`schemas/v2.0.0/operate-experience-preview.schema.json`,resolveRef:$y});if(r.length>0||!_b(n,t)||!vb(n.transition))return r.length>0?r:eb();let i=D_(n);return delete i.previewHash,n.actionDigest!==M_(n.allowedAction)||n.previewHash!==M_(i)?eb():[]}catch{return eb()}}function bb(e,t){if(yb(e,t).length>0){let e=TypeError(`The Operate preview does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_EXPERIENCE_PREVIEW_INVALID`,e}return E_(D_(e))}function xb(e,t){return mb(e,nv,`schemas/v1.2.0/operate-cycle-display-workspace.schema.json`,pb,t)}function Sb(e,t){if(xb(e,t).length>0){let e=TypeError(`The Cycle display workspace does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_CYCLE_DISPLAY_INVALID`,e}return e}function Cb(e){return e===null?!0:typeof e!=`object`||Array.isArray(e)?!1:e.kind===`omitted`?typeof e.reason==`string`&&e.reason.length>0:e.kind===`lens`?typeof e.roleId==`string`&&typeof e.roleKind==`string`&&typeof e.absenceCode==`string`&&typeof e.reason==`string`:e.kind===`terminal`&&(e.outcome===`abandoned`||e.outcome===`failed`)&&typeof e.code==`string`&&typeof e.reason==`string`&&typeof e.recoveryDisposition==`string`}function wb(e){return typeof e?.roleId==`string`&&typeof e?.label==`string`&&e.roleId!==e.label&&typeof e?.roleKind==`string`&&typeof e?.roleVersion==`string`&&Cb(e?.absence??null)}function Tb(e){let t=e?.data?.executiveBoard;return!t||!Array.isArray(t.seats)?!1:t.seats.every(wb)}function Eb(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&nb(e.payload,t,{executiveBoard:!0})&&Tb(e.payload)}function Db(e,t){return mb(e,iv,`schemas/v1.2.0/operate-executive-board-display-surface.schema.json`,Eb,t)}function Ob(e,t){if(Db(e,t).length>0){let e=TypeError(`The executive board display surface does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_EXECUTIVE_BOARD_DISPLAY_INVALID`,e}return e}function kb(e){return`#/operate/actions/${encodeURIComponent(e)}`}function Ab(e){return e===null?Object.freeze({status:`not-required`,reasonCodes:Object.freeze([])}):e.status===`insufficient-evidence`?Object.freeze({status:`unverified`,reasonCodes:Object.freeze([`OPERATE_VERIFICATION_EVIDENCE_MISSING`])}):[`succeeded`,`failed`].includes(e.status)&&lb(e)?Object.freeze({status:`verified`,reasonCodes:Object.freeze([])}):Object.freeze({status:`unverified`,reasonCodes:Object.freeze([`OPERATE_VERIFICATION_EVIDENCE_MISSING`])})}function jb(e){let t=e?.status;return t===`healthy`||t===`empty`?`restored`:t===`corrupt`?`corrupt`:t===`incompatible`?`incompatible`:t===`locked`?`blocked`:t===`repairable`?e.allowedRecovery===`clear-stale-lock`?`blocked`:(e.allowedRecovery,`uncertain`):`blocked`}function Mb(e){let t=e.data,n=t.action,r=kb(n.actionId),i=t.allowedActions,a=t.outcome,o=Ab(a),s=i.some(e=>e.action.effect!==`read-only`);return!(e.readOnly===e.mutationEnabled||e.mutationEnabled&&(e.status!==`ready`||!s)||n.deepLink!==r||!P_(t.boundaries,Hy)||!P_(t.verification,o)||!P_(t.replay.finalHead,e.eventHead)||i.some(e=>e.subjectId!==n.actionId)||t.inbox.some(e=>e.subjectId!==n.actionId)||t.learnings.some(e=>a===null||e.outcomeId!==a.outcomeId)||a!==null&&a.actionId!==n.actionId)}function Nb(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&nb(e.payload,t,{workspace:!0,action:!0})&&Mb(e.payload)}function Pb(e,t){return mb(e,tv,`schemas/v1.2.0/operate-action-display-workspace.schema.json`,Nb,t)}function Fb(e,t){if(Pb(e,t).length>0){let e=TypeError(`The Action display workspace does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_ACTION_DISPLAY_INVALID`,e}return e}function Ib(e){let t=e.data;return!(`integrityBoundary`in t.inspection||t.recoveryState!==jb(t.inspection))}function Lb(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&nb(e.payload,t,{workspace:!0,recovery:!0})&&Ib(e.payload)}function Rb(e,t){return mb(e,rv,`schemas/v1.2.0/operate-recovery-display-surface.schema.json`,Lb,t)}function zb(e,t){if(Rb(e,t).length>0){let e=TypeError(`The recovery display surface does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_RECOVERY_DISPLAY_INVALID`,e}return e}Object.freeze(structuredClone(tv)),Object.freeze(structuredClone(rv)),Object.freeze(structuredClone(iv)),Object.freeze(structuredClone(av)),Object.freeze(structuredClone(nv));var Bb=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,Vb=/^[A-Za-z0-9_-]{16,256}$/u,Hb=/^[A-Za-z0-9_-]{43,256}$/u,Ub=/^sha256:[a-f0-9]{64}$/u,Wb=262144;function Gb(){let e=0,t=!1,n=!1,r=new Set,i=()=>{e+=1;for(let e of r)e.abort();r.clear()};return Object.freeze({isDisposed:()=>t,isUncertain:()=>n,invalidate:i,markUncertain(){n=!0,i()},reconcile(){n=!1,i()},start(){if(t)throw new DOMException(`Cancelled`,`AbortError`);n&&X(`OPERATION_UNCERTAIN`),r.size>0&&X(`OPERATE_COMMAND_IN_FLIGHT`);let i=new AbortController;r.add(i);let a=!0;return Object.freeze({controller:i,epoch:e,release(){a&&(a=!1,r.delete(i))}})},assert(n,r,i){if(t||r.aborted||n!==e||!i)throw new DOMException(`Cancelled`,`AbortError`)},dispose(){t||(t=!0,i())}})}function Kb(e){let t=new Set(e.routeKinds),n=Gb(),r=null,i=null,a=null,o=null,s=(t,n)=>r!==null&&i!==null&&B(t,r)&&e.sameLocator(n,i),c=(e,t)=>e.productArea===t.productArea&&e.route===t.route&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.subjectId===t.subjectId&&e.generation===t.generation;return Object.freeze({bind(c,l){n.isDisposed()&&X(`OPERATE_ADAPTER_DISPOSED`);let u=z(c);(u.productArea!==`operate`||!t.has(A(u.route).kind))&&X(e.routeErrorCode);let d=e.parseLocator(l);s(u,d)||(a=null,o=null,n.invalidate(),r=u,i=d)},async run(t,o={}){n.isDisposed()&&X(`OPERATE_ADAPTER_DISPOSED`),(r===null||i===null)&&X(`OPERATE_BINDING_REQUIRED`);let c=r,l=i,u=n.start(),d=()=>{n.assert(u.epoch,u.controller.signal,s(c,l))},f=async e=>{try{let t=await e;return d(),t}catch(e){throw d(),e}};try{let n=a??await f(e.issueSession({identity:c,locator:l,signal:u.controller.signal,assertCurrent:d,waitForCurrent:f}));return a=n,await f(t({identity:c,locator:l,session:n,signal:u.controller.signal,assertCurrent:d,waitForCurrent:f}))}catch(e){throw o.uncertainOnFailure&&e instanceof Error&&e.name===`OPERATION_UNCERTAIN`&&(a=null,n.markUncertain()),e}finally{u.release()}},retainPreviewProof(e){(n.isDisposed()||n.isUncertain())&&X(`OPERATION_UNCERTAIN`),o=structuredClone(e)},requirePreviewProof(e){return n.isDisposed()&&X(`OPERATE_ADAPTER_DISPOSED`),e(o)||X(`OPERATE_BINDING_MISMATCH`),structuredClone(o)},clearPreviewProof(){o=null},cancel(){a=null,o=null,n.invalidate()},reconcile(s,l){a=null,o=null,n.isDisposed()&&X(`OPERATE_ADAPTER_DISPOSED`),(r===null||i===null)&&X(`OPERATE_BINDING_REQUIRED`);let u=z(s);(u.productArea!==`operate`||!t.has(A(u.route).kind)||!c(r,u))&&X(`OPERATE_BINDING_MISMATCH`);let d=l===void 0?i:e.parseLocator(l);e.sameLocator(i,d)||X(`OPERATE_BINDING_MISMATCH`),r=u,i=d,n.reconcile()},dispose(){n.isDisposed()||(a=null,o=null,r=null,i=null,n.dispose())}})}var qb=class extends Error{code;constructor(e){super(`The governed command was refused without effect.`),this.code=e,this.name=e}};function X(e=`OPERATE_COMMAND_INVALID`){throw new qb(e)}function Jb(e){return(typeof e!=`object`||!e||Array.isArray(e))&&X(),e}function Yb(e,t){let n=Object.keys(e).sort(),r=[...t].sort();(n.length!==r.length||n.some((e,t)=>e!==r[t]))&&X()}function Xb(e,t){return(typeof e!=`string`||!t.test(e))&&X(),e}function Zb(e){let t=Jb(e);Yb(t,[`sequence`,`hash`]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&X();let n=t.hash===null?null:Xb(t.hash,Ub);return t.sequence===0!=(n===null)&&X(),Object.freeze({sequence:t.sequence,hash:n})}function Qb(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function $b(e){let t=Jb(e);return Yb(t,[`subjectId`,`actionDigest`]),Object.freeze({subjectId:Xb(t.subjectId,Bb),actionDigest:Xb(t.actionDigest,Ub)})}function ex(e){let t;try{t=new URL(e)}catch{X(`OPERATE_ORIGIN_INVALID`)}return(t.origin!==e||t.protocol!==`http:`||![`127.0.0.1`,`localhost`,`[::1]`].includes(t.hostname))&&X(`OPERATE_ORIGIN_INVALID`),t.origin}function tx(e,t,n){let r=new URL(t,e);return r.searchParams.set(`scopeId`,n.scopeId),r.searchParams.set(`domainId`,n.domainId),r.searchParams.set(`domainVersion`,n.domainVersion),r.toString()}function nx(e){try{let t=Jb(e);Yb(t,[`ok`,`error`]);let n=Jb(t.error);Yb(n,[`reasonCode`,`message`,`retryable`]);let r=n.reasonCode;return t.ok===!1&&typeof r==`string`&&/^[A-Z][A-Z0-9_]{0,127}$/u.test(r)&&typeof n.message==`string`&&n.retryable===!1?r:null}catch{return null}}function rx(e,t){Yb(e,[`ok`,`operation`,`error`,`allowedActions`]);let n=Jb(e.error);Yb(n,[`code`,`message`,`retryable`,`context`]),Yb(Jb(n.context),[]),(e.ok!==!1||e.operation!==t||n.code!==`OPERATION_UNCERTAIN`||typeof n.message!=`string`||n.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&X(`OPERATE_COMMAND_REFUSED`)}function ix(e,t,n,r){Yb(e,[`ok`,`operation`,`data`,`allowedActions`,`eventHead`]),(e.ok!==!0||e.operation!==t||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&X(`OPERATE_RESPONSE_INVALID`);let i=Zb(e.eventHead),a=Jb(e.data),o=Zb(a.eventHead);return(a.kind!==`operate-experience-view`||a.schemaVersion!==`1.0.0`||a.protocolVersion!==`2.0.0`||a.actorId!==n.actorId||a.scopeId!==n.scopeId||a.domainId!==n.domainId||a.domainVersion!==n.domainVersion||!Qb(o,i)||i.sequence<=r.sequence||i.hash===null)&&X(`OPERATE_RESPONSE_INVALID`),i}async function ax(e,t){let n=e.headers.get(`content-type`);(!n||!/^application\/json(?:\s*;\s*charset=utf-8)?$/iu.test(n))&&X(`OPERATE_RESPONSE_INVALID`);let r=e.text(),i=t?await t.waitForCurrent(r):await r;t?.assertCurrent(),i.length>Wb&&X(`OPERATE_RESPONSE_INVALID`);let a;try{a=JSON.parse(i)}catch{X(`OPERATE_RESPONSE_INVALID`)}if(!e.ok){let e=nx(a);e===null&&X(`OPERATE_RESPONSE_INVALID`),X(e)}return a}function ox(e,t,n,r){let i=Jb(e);Yb(i,[`kind`,`schemaVersion`,`protocolVersion`,`sessionId`,`sessionCapability`,`issuedAt`,`expiresAt`,`binding`,`allowedActions`,`readOnly`]),(i.kind!==`operate-command-session`||i.schemaVersion!==`1.0.0`||i.protocolVersion!==`2.0.0`||i.readOnly!==!1||typeof i.issuedAt!=`string`||typeof i.expiresAt!=`string`)&&X(`OPERATE_SESSION_INVALID`);let a=Jb(i.binding);Yb(a,[`actorId`,`scopeId`,`domainId`,`domainVersion`,`cycleId`,`eventHead`,`sourceViewHash`,`actionLocator`]);let o=r.parseLocator(a.actionLocator),s=Zb(a.eventHead);(a.actorId!==t.actorId||a.scopeId!==t.scopeId||a.domainId!==t.domainId||a.domainVersion!==t.domainVersion||a.cycleId!==t.cycleId||t.eventHead===null||!Qb(s,t.eventHead)||a.sourceViewHash!==t.viewHash||!r.sameLocator(o,n))&&X(`OPERATE_BINDING_MISMATCH`),Array.isArray(i.allowedActions)||X(`OPERATE_ACTION_REFERENCE_INVALID`);let c=null;if(r.allowedActions.kind===`none`)i.allowedActions.length!==0&&X(`OPERATE_ACTION_REFERENCE_INVALID`);else{i.allowedActions.length!==1&&X(`OPERATE_ACTION_REFERENCE_INVALID`);let e=Jb(i.allowedActions[0]),t=r.allowedActions.parseLocator(e);r.sameLocator(t,n)||X(`OPERATE_BINDING_MISMATCH`),c=Xb(e.actionReference,Vb)}return Object.freeze({sessionId:Xb(i.sessionId,Vb),capability:Xb(i.sessionCapability,Hb),actionReference:c})}function sx(e,t,n,r){let i={"content-type":`application/json`,"x-openplanr-actor":e.actorId};return n&&(i.origin=t),r!==void 0&&(i.authorization=`Bearer ${r}`),i}async function cx(e,t,n,r,i,a,o,s,c){let l=e(tx(t,n,r),{method:`POST`,credentials:`same-origin`,headers:sx(r,t,o,s),body:JSON.stringify(i),signal:a}),u=c?await c.waitForCurrent(l):await l;return c?.assertCurrent(),ax(u,c)}function lx(e){let t=ex(e.origin),n=e.fetcher??globalThis.fetch.bind(globalThis),r=new Set(e.routeKinds),i=e.includeOriginHeader??!1,a=null,o=Kb({routeKinds:e.routeKinds,routeErrorCode:e.routeErrorCode,parseLocator:$b,sameLocator:(e,t)=>e.subjectId===t.subjectId&&e.actionDigest===t.actionDigest,async issueSession({identity:e,locator:r,signal:a,assertCurrent:o,waitForCurrent:s}){(e.cycleId===null||e.eventHead===null||e.viewHash===null)&&X(`OPERATE_BINDING_REQUIRED`);let c=await cx(n,t,`/api/operate/session`,e,{cycleId:e.cycleId,eventHead:e.eventHead,sourceViewHash:e.viewHash,actionLocator:r},a,i,void 0,{assertCurrent:o,waitForCurrent:s});return o(),ox(c,e,r,{parseLocator:$b,sameLocator:(e,t)=>e.subjectId===t.subjectId&&e.actionDigest===t.actionDigest,allowedActions:{kind:`single-reference`,parseLocator(e){return Yb(e,[`actionReference`,`subjectId`,`actionDigest`]),$b({subjectId:e.subjectId,actionDigest:e.actionDigest})}}})}});return Object.freeze({bind:t=>{let n=z(t),i=A(n.route);(n.productArea!==`operate`||!r.has(i.kind))&&X(e.routeErrorCode),!(a!==null&&B(a,n))&&(o.cancel(),a=n)},preview:async r=>{(a===null||a.productArea!==`operate`||a.cycleId===null||a.eventHead===null||a.viewHash===null)&&X(`OPERATE_BINDING_REQUIRED`);let s=$b(r),c=a,l=a.eventHead,u=a.viewHash;o.bind(c,s);let d=await o.run(async({session:e,signal:r,assertCurrent:a,waitForCurrent:d})=>{e.actionReference===null&&X(`OPERATE_ACTION_REFERENCE_INVALID`);let f;try{f=await cx(n,t,`/api/operate/commands/preview`,c,{sessionId:e.sessionId,actionReference:e.actionReference},r,i,e.capability,{assertCurrent:a,waitForCurrent:d}),a()}catch(e){if(r.aborted&&e instanceof DOMException&&e.name===`AbortError`||e instanceof qb&&e.code!==`OPERATE_RESPONSE_INVALID`&&e.code!==`OPERATION_UNCERTAIN`)throw e;X(`OPERATION_UNCERTAIN`)}try{let e=bb(f,{actorId:c.actorId,scopeId:c.scopeId,domainId:c.domainId,domainVersion:c.domainVersion,eventHead:l,sourceViewHash:u,subjectId:s.subjectId,actionDigest:s.actionDigest});return o.retainPreviewProof(e),e}catch{X(`OPERATION_UNCERTAIN`)}},{uncertainOnFailure:!0}),f=!0,p=null;return Object.freeze({preview:d,confirm:r=>(p===null&&(p=(async()=>{if(!f)throw new DOMException(`Cancelled`,`AbortError`);try{let a=await o.run(async({session:a,signal:s,assertCurrent:u,waitForCurrent:f})=>{let p=o.requirePreviewProof(e=>Jb(e).previewId===d.previewId&&Jb(e).previewHash===d.previewHash),m;try{m=await cx(n,t,`/api/operate/commands/confirm`,c,{sessionId:a.sessionId,previewId:p.previewId,previewHash:p.previewHash,...e.confirmation?.additionalBody(p,r)??{}},s,i,a.capability,{assertCurrent:u,waitForCurrent:f}),u()}catch(e){if(s.aborted&&e instanceof DOMException&&e.name===`AbortError`||e instanceof qb&&e.code!==`OPERATION_UNCERTAIN`&&e.code!==`OPERATE_RESPONSE_INVALID`)throw e;X(`OPERATION_UNCERTAIN`)}try{if(e.confirmation)return e.confirmation.parse({value:m,preview:p,identity:c,previousHead:l,input:r});let t=Jb(m);return t.ok!==!0&&(rx(t,p.allowedAction.tool),X(`OPERATION_UNCERTAIN`)),ix(t,p.allowedAction.tool,c,l)}catch(e){if(e instanceof qb&&e.code===`OPERATION_UNCERTAIN`)throw e;X(`OPERATION_UNCERTAIN`)}},{uncertainOnFailure:!0});return o.clearPreviewProof(),e.confirmation?a:Object.freeze({ok:!0,eventHead:a})}catch(e){if(e instanceof qb&&e.code===`OPERATION_UNCERTAIN`)return Object.freeze({ok:!1,reasonCode:`OPERATION_UNCERTAIN`});throw e}finally{f=!1}})()),p),cancel:()=>{f&&(f=!1,o.cancel())}})},reconcile(e){a===null&&X(`OPERATE_BINDING_REQUIRED`);let t=z(e);o.reconcile(t),a=t},cancel:o.cancel,dispose(){o.dispose(),a=null}})}function ux(e){return lx({...e,routeKinds:[`operate.action`],routeErrorCode:`OPERATE_ACTION_ROUTE_REQUIRED`,includeOriginHeader:!0})}var dx=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function fx(e){try{let t=z(e);return t.productArea===`operate`&&t.subjectId!==null&&t.cycleId!==null&&t.route===`#/operate/actions/${encodeURIComponent(t.subjectId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function px(e){let t=fx(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=Fb(e),r=n.payload;return t.eventHead===null||t.viewHash===null||t.subjectId===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(Fb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:`actions`,cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId})),!0)}catch{return!1}}}function mx(e,t){let n=fx(t);if(n===null||!V(e)||e.binding===null||e.data===null||!B(e.binding,n)||!px(n)(e.data))return null;let r=e.data,i=r.payload,a=dx[e.kind];return a===void 0||i.status!==a||i.mutationEnabled!==e.mutationEnabled?null:Object.freeze({kind:`action`,presentation:a,binding:e.binding,display:r,workspace:i,action:i.data.action,outcome:i.data.outcome,learnings:i.data.learnings,inbox:i.data.inbox,history:i.data.history,replay:i.data.replay,verification:i.data.verification,boundaries:i.data.boundaries,allowedActions:i.data.allowedActions,mutationEnabled:a===`ready`&&i.mutationEnabled})}var hx=2147e6;function gx(e){let t=e?.action?.tool??``;return t.endsWith(`.approve`)?`approval`:t.endsWith(`.execute`)?`execute`:t.endsWith(`.rollback`)?`rollback`:t.includes(`recovery`)||t.includes(`reconcile`)?`reconcile`:e?.action?.effect===`read-only`?`inspect`:`governed`}function _x(e){return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,e.eventHead?.sequence??null,e.eventHead?.hash??null,e.viewHash,e.subjectId])}function vx(e){return e.presentation===`offline`?`Changes are unavailable offline. Reconnect and refresh before continuing.`:e.presentation===`stale`?`This workspace is out of date. Refresh before reviewing a new action.`:e.workspace.reasonCodes.includes(`OPERATE_EVENT_GAP`)?`This workspace is missing an update. Refresh before continuing.`:e.presentation===`read-only`||!e.mutationEnabled?`You do not currently have permission to make changes here.`:null}function yx(e){return e instanceof DOMException&&e.name===`AbortError`}function bx(e){return e instanceof Error&&e.name===`OPERATION_UNCERTAIN`}function xx(){typeof window<`u`&&window.setTimeout(()=>window.location.reload(),0)}function Sx(e){return Date.parse(e.custody.preview.expiresAt)}function Cx(e,t=Date.now()){let n=Sx(e);return!Number.isFinite(n)||n<=t}function wx(e,t){return t!==null&&e.contextKey===_x(t.binding)&&B(e.binding,t.binding)&&e.locator.subjectId===t.action.actionId}function Tx({label:e,value:t}){return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:e}),(0,F.jsx)(`dd`,{children:t==null||t===``?`Not available`:t})]})}function Ex({label:e,value:t}){return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:e}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:t==null||t===``?`Not available`:t})})]})}function Dx(e){return e.split(/[-_]/u).filter(Boolean).map(e=>`${e.slice(0,1).toUpperCase()}${e.slice(1)}`).join(` `)}function Ox(e){let t=new Date(e);return Number.isFinite(t.valueOf())?new Intl.DateTimeFormat(`en`,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZone:`UTC`,timeZoneName:`short`,year:`numeric`}).format(t):e}function kx(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function Ax(e){return e===`insufficient-evidence`?`More evidence is needed`:e===`verified`?`Outcome confirmed`:e===`not-required`?`No further verification is needed`:Dx(e)}function jx({kind:e,result:t}){let n=t.targetBeforeHash===t.targetAfterHash;return(0,F.jsxs)(`section`,{className:`op-action-result`,"aria-labelledby":`op-action-${e.toLowerCase()}-title`,"data-result-kind":e.toLowerCase(),children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`p`,{className:`op-eyebrow`,children:[e,` result`]}),(0,F.jsx)(`h2`,{id:`op-action-${e.toLowerCase()}-title`,children:t.effectSummary?.summary??`${e} result is access-restricted`})]}),(0,F.jsx)(`p`,{children:`A recorded change still needs evidence before its result can be confirmed.`})]}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Tx,{label:`Status`,value:Dx(t.status)}),(0,F.jsx)(Tx,{label:`Completed`,value:Ox(t.completedAt)}),(0,F.jsx)(Tx,{label:`Change`,value:n?`No change recorded`:`Change recorded`}),(0,F.jsx)(Tx,{label:`Access`,value:t.accessReason??`Current actor may inspect the projected summary`})]}),(0,F.jsxs)(`details`,{className:`op-action-detail__technical-details`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Ex,{label:`Target before digest`,value:t.targetBeforeHash}),(0,F.jsx)(Ex,{label:`Target after digest`,value:t.targetAfterHash})]})]})]})}function Mx({outcome:e}){return(0,F.jsxs)(`section`,{className:`op-action-outcome`,"aria-labelledby":`op-action-outcome-title`,"data-result-kind":`outcome`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Outcome`}),(0,F.jsx)(`h2`,{id:`op-action-outcome-title`,children:Ax(e.status)})]}),(0,F.jsx)(`p`,{children:`This is where the expected result is checked against real evidence.`})]}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Tx,{label:`Status`,value:Ax(e.status)}),(0,F.jsx)(Tx,{label:`Last checked`,value:Ox(e.observedAt)}),(0,F.jsx)(Tx,{label:`Observations`,value:kx(e.observationIds.length,`observation`)}),(0,F.jsx)(Tx,{label:`Evidence`,value:kx(e.evidenceRefIds.length,`reference`)})]}),(0,F.jsxs)(`details`,{className:`op-action-detail__technical-details`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Ex,{label:`Outcome ID`,value:e.outcomeId}),(0,F.jsx)(Ex,{label:`Verification plan`,value:e.verificationPlanId})]})]})]})}function Nx({learning:e}){return(0,F.jsxs)(`section`,{className:`op-action-learning`,"aria-labelledby":`op-learning-${e.learningId}`,"data-result-kind":`learning`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`What we learned`}),(0,F.jsx)(`h2`,{id:`op-learning-${e.learningId}`,children:e.statement})]}),(0,F.jsx)(`p`,{children:`This insight is based on the work and its evidence.`})]}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Tx,{label:`Recorded`,value:Ox(e.createdAt)}),(0,F.jsx)(Tx,{label:`Related decisions`,value:kx(e.decisionIds.length,`decision`)}),(0,F.jsx)(Tx,{label:`Evidence`,value:kx(e.evidenceRefIds.length,`reference`)})]}),(0,F.jsxs)(`details`,{className:`op-action-detail__technical-details`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Ex,{label:`Learning ID`,value:e.learningId}),(0,F.jsx)(Ex,{label:`Outcome ID`,value:e.outcomeId})]})]})]})}function Px({entry:e,model:t,variant:n,fallbackLabel:r,fallbackReason:i,pending:a,onInvoke:o}){let s=vx(t),c=`op-action-control-${gx(e)}`;return e&&!s&&e.action?.effect!==`read-only`?(0,F.jsx)(Mm,{id:c,variant:n,...a?{disabled:!0,disabledReason:`A governed preview is already in flight.`}:{onInvoke:()=>o(e,c)},children:e.action?.label??r}):(0,F.jsx)(Mm,{id:c,disabled:!0,disabledReason:s??i,children:e?.action?.label??r})}function Fx({model:e,pending:t,onInvoke:n}){let{action:r,outcome:i,learnings:a,boundaries:o}=e,s=e.allowedActions.filter(e=>e.subjectId===r.actionId),c=new Map(s.map(e=>[gx(e),e])),l=r.executions.at(-1)??null,u=r.rollbacks.at(-1)??null,d=l?.status===`uncertain`||u?.status===`uncertain`||r.state===`uncertain`,f=l?.status===`succeeded`,p=i?.status===`insufficient-evidence`,m=r.deliveryRoute?.route===`planning-work`?`#/operate/actions/${encodeURIComponent(r.actionId)}/planning`:null,h=r.dependencyActionIds.length===0?`No dependencies`:kx(r.dependencyActionIds.length,`dependency`,`dependencies`);return(0,F.jsxs)(`article`,{className:`op-action-detail__workspace`,"data-action-state":r.state,"aria-labelledby":`op-action-title`,children:[(0,F.jsxs)(`header`,{className:`op-action-detail__header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`planr-operate · action`}),(0,F.jsx)(`h1`,{id:`op-action-title`,children:r.title}),(0,F.jsx)(`p`,{children:r.expectedResult}),(0,F.jsx)(Fm,{state:r.state})]}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Tx,{label:`Status`,value:Dx(r.state)}),(0,F.jsx)(Tx,{label:`Related work`,value:h})]})]}),(0,F.jsxs)(`details`,{className:`op-action-detail__technical-details`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Ex,{label:`Action ID`,value:r.actionId}),(0,F.jsx)(Ex,{label:`Revision`,value:r.revision}),(0,F.jsx)(Ex,{label:`Action digest`,value:r.actionHash}),(0,F.jsx)(Ex,{label:`Verification plan`,value:r.verificationPlanId}),(0,F.jsx)(Ex,{label:`Delivery route`,value:r.deliveryRoute?.route}),(0,F.jsx)(Ex,{label:`Dependencies`,value:r.dependencyActionIds.length>0?r.dependencyActionIds.join(` · `):`None`})]})]}),(0,F.jsxs)(`section`,{className:`op-action-boundaries`,"aria-labelledby":`op-action-boundaries-title`,children:[(0,F.jsx)(`div`,{className:`op-cycle-section-heading`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Before you continue`}),(0,F.jsx)(`h2`,{id:`op-action-boundaries-title`,children:`Review each step separately`})]})}),(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Approval`,title:`Approval does not make a change`,description:o.approvalExecution}),f?(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Recorded change`,title:`The change is complete; its result is still being checked`,description:o.verification}):null,p?(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Evidence`,title:`More evidence is needed`,description:`The change is recorded, but the expected result is not proven yet. Review the next observation or revisit the work.`}):null,d?(0,F.jsx)(Y,{state:`offline`,eyebrow:`Uncertainty`,title:`Do not retry this Action`,description:o.retry}):null]}),(0,F.jsxs)(`section`,{className:`op-action-detail__controls`,"aria-label":`Available actions for ${r.title}`,children:[m?(0,F.jsx)(`a`,{className:`op-cycle-link`,href:m,children:`Review Planning handoff`}):null,c.has(`approval`)?(0,F.jsx)(Px,{entry:c.get(`approval`),model:e,pending:t,onInvoke:n,fallbackLabel:`Approve`,fallbackReason:`OpenPlanr returned no approval action for the current authority and state.`}):null,c.has(`execute`)?(0,F.jsx)(Px,{entry:c.get(`execute`),model:e,pending:t,onInvoke:n,fallbackLabel:`Execute`,fallbackReason:`OpenPlanr returned no execute action for the current authority and state.`}):(0,F.jsx)(Mm,{disabled:!0,disabledReason:f?`This execution already has a durable terminal result. It cannot be dispatched again.`:d?`Uncertain effect state prohibits blind retry.`:`OpenPlanr returned no execute action for the current authority and state.`,children:`Execute unavailable`}),c.has(`rollback`)?(0,F.jsx)(Px,{entry:c.get(`rollback`),model:e,variant:`danger`,pending:t,onInvoke:n,fallbackLabel:`Rollback`,fallbackReason:`Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline.`}):(0,F.jsx)(Mm,{disabled:!0,disabledReason:`Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline.`,children:`Rollback unavailable`}),c.has(`reconcile`)?(0,F.jsx)(Px,{entry:c.get(`reconcile`),model:e,pending:t,onInvoke:n,fallbackLabel:`Reconcile`,fallbackReason:`OpenPlanr returned no reconcile action for the current state.`}):null]}),l?(0,F.jsx)(jx,{kind:`Execution`,result:l}):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Change`,title:`No change has been recorded`,description:`Approval alone does not make a change.`}),u?(0,F.jsx)(jx,{kind:`Rollback`,result:u}):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Rollback`,title:`A rollback is a separate action`,description:`Restoring a prior setting creates a separate record and a new check.`}),i?(0,F.jsx)(Mx,{outcome:i}):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Outcome`,title:`No outcome has been confirmed yet`,description:`A recorded change still needs evidence of the expected result.`}),a.length>0?a.map(e=>(0,F.jsx)(Nx,{learning:e},e.learningId)):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`What we learned`,title:`No shared insight has been recorded yet`,description:`Insights are added after the result has enough supporting evidence.`}),d?(0,F.jsx)(Y,{state:`offline`,eyebrow:`Recovery`,title:`Reconciliation is required`,description:`Use Recovery inspection or an explicit runtime recovery route. Blind retry is prohibited.`}):null,(0,F.jsx)(`p`,{className:`op-action-detail__history-link`,children:(0,F.jsx)(`a`,{className:`op-cycle-link`,href:`#/operate/history`,children:`View activity and recovery details`})})]})}function Ix({currentBinding:e,current:t,actions:n,onRefetch:r}){let i=(0,v.useMemo)(()=>mx(t,e),[t,e]),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(!1),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!1),b=(0,v.useRef)(n??null),x=(0,v.useRef)(null),S=(0,v.useRef)(0),C=(0,v.useRef)(!1),w=(0,v.useRef)(!1),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=(0,v.useRef)(!0),j=(0,v.useCallback)(e=>{let t=n=>{if(!A.current||e===null||typeof document>`u`)return;let r=document.getElementById(e);!(r instanceof HTMLButtonElement)||!r.isConnected||r.disabled?n>0&&typeof window<`u`&&window.setTimeout(()=>t(n-1),16):r.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>`u`?t(4):window.setTimeout(()=>t(4),0)})},[]),M=(0,v.useCallback)(async()=>{if(r){let e=await r();return e&&typeof e==`object`?e:null}return xx(),null},[r]),N=(0,v.useCallback)(async(e=x.current)=>{if(e&&!_){y(!0);try{let e=await M(),t=e?.binding?mx(e,e.binding):null;if(!t||!b.current)throw Error(`Exact reconciliation failed.`);b.current.reconcile(t.binding),x.current=null,g(null),m({contextKey:_x(t.binding),tone:`verified`,text:`The current action status is confirmed. Review a new preview to continue.`})}catch{m({contextKey:_x(e),tone:`attention`,text:`We could not confirm the current action status. Do not retry yet.`})}finally{A.current&&y(!1)}}},[_,M]),ee=(0,v.useCallback)(()=>{let e=O.current;e!==null&&(clearTimeout(e),O.current=null)},[]),P=(0,v.useCallback)(()=>{ee();let e=D.current;D.current=null,S.current+=1,T.current?.custody.cancel(),b.current?.cancel(),T.current=null,C.current=!1,w.current=!1,o(!1),c(null),f(!1),u(!1),j(e)},[ee,j]),te=(0,v.useCallback)(e=>{A.current&&wx(e,k.current)&&(P(),m({contextKey:e.contextKey,tone:`attention`,text:`This review expired before confirmation. The action is refreshing.`}),M())},[P,M]),ne=(0,v.useCallback)(e=>{ee();let t=()=>{if(!A.current||T.current!==e)return;let n=Sx(e)-Date.now();!Number.isFinite(n)||n<=0?(O.current=null,te(e)):O.current=setTimeout(t,Math.min(n,hx))};t()},[ee,te]);(0,v.useEffect)(()=>(A.current=!0,n&&(b.current=n),!b.current&&typeof window<`u`&&(b.current=ux({origin:window.location.origin})),()=>{A.current=!1,S.current+=1,ee();let e=b.current;T.current?.custody.cancel(),e?.cancel(),T.current=null,C.current=!1,w.current=!1,queueMicrotask(()=>{!A.current&&b.current===e&&(e?.dispose(),b.current=null)})}),[n,ee]),(0,v.useLayoutEffect)(()=>{let e=k.current;k.current=i;let t=i?_x(i.binding):null;m(e=>e!==null&&e.contextKey!==t?null:e),i&&b.current&&b.current.bind(i.binding);let n=T.current,r=e&&i?_x(e.binding)!==_x(i.binding):e!==i;(r||n!==null&&!wx(n,i)||r&&(C.current||w.current))&&P()},[i,P]);let re=(0,v.useCallback)(async(e,t)=>{if(!i||C.current||w.current)return;D.current=t;let n=b.current;if(!n){D.current=null;return}let r=Object.freeze({subjectId:e.subjectId,actionDigest:C_(e.action)}),a=i.binding,s=_x(a);C.current=!0,o(!0);let l=S.current;try{n.bind(a);let e=await n.preview(r);if(!(A.current&&l===S.current&&k.current!==null&&_x(k.current.binding)===s&&B(a,k.current.binding))){e.cancel();return}if(e.preview.authority!==`allowed`){e.cancel(),n.cancel(),m({contextKey:s,tone:`refusal`,text:e.preview.reasonCodes.length>0?e.preview.reasonCodes.join(` · `):`Preview authority: ${e.preview.authority}.`}),await M();return}let t=Object.freeze({locator:r,binding:a,contextKey:s,custody:e});if(Cx(t)){e.cancel(),P(),m({contextKey:s,tone:`attention`,text:`This review expired before confirmation. The action is refreshing.`}),await M();return}T.current=t,c(t),u(!0),ne(t)}catch(e){!yx(e)&&A.current&&l===S.current&&k.current&&_x(k.current.binding)===s&&(n.cancel(),bx(e)&&(x.current=a,g(a)),m({contextKey:s,tone:bx(e)?`attention`:`refusal`,text:bx(e)?`We could not confirm whether this action ran. Check the current status before trying again.`:`This action was not accepted. The workspace is refreshing.`}),bx(e)?await N(a):await M())}finally{l===S.current&&(C.current=!1,A.current&&o(!1))}},[i,P,N,M,ne]),ie=(0,v.useCallback)(async()=>{let e=T.current;if(!e||w.current)return;if(!wx(e,k.current)){P();return}if(Cx(e)){te(e);return}w.current=!0;let t=S.current;f(!0);try{let n=await e.custody.confirm();if(!A.current||t!==S.current||!wx(e,k.current))return;n.ok?m({contextKey:e.contextKey,tone:`verified`,text:`Your action was accepted. The workspace is refreshing.`}):(x.current=e.binding,g(e.binding),m({contextKey:e.contextKey,tone:`attention`,text:`The command outcome is uncertain. Refresh before retrying.`})),P(),n.ok?await M():await N(e.binding)}catch(n){!yx(n)&&A.current&&t===S.current&&wx(e,k.current)&&(m({contextKey:e.contextKey,tone:`refusal`,text:`This action was not accepted. The workspace is refreshing.`}),P(),await M())}finally{t===S.current&&(w.current=!1,A.current&&f(!1))}},[P,te,N,M]);if(!i)return(0,F.jsx)(`div`,{className:`op-workspace op-action-detail pc-operate`,"data-route-kind":`operate.action`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Action projection`,title:`Action cannot be trusted`,description:`The owner-issued display workspace did not pass exact binding and integrity verification.`})});let ae=vx(i),oe=h!==null,I=p?.contextKey===_x(i.binding)?p:null,se=s!==null&&wx(s,i)?s.custody.preview:null;return(0,F.jsxs)(`section`,{className:`op-workspace op-action-detail pc-operate`,"data-route-kind":`operate.action`,"data-action-presentation":i.presentation,"aria-label":`Operate Action detail`,children:[ae?(0,F.jsx)(Y,{state:i.presentation===`offline`?`offline`:`unavailable`,eyebrow:`Actions`,title:`Actions are unavailable`,description:ae}):null,I?(0,F.jsx)(`p`,{className:`pc-operate__notice`,"data-tone":I.tone,role:`status`,children:I.text}):null,oe?(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Action status`,title:`This action is locked until its current status is confirmed`,description:`A request may have taken effect. You cannot retry until the current status is confirmed.`,actions:(0,F.jsx)(Mm,{disabled:!r||_,disabledReason:`A parser-verified current Action projection is required.`,onInvoke:()=>void N(),children:_?`Reconciling current Action…`:`Reconcile current Action`})}):null,(0,F.jsx)(Fx,{model:i,pending:a||oe||_,onInvoke:re}),se?(0,F.jsx)(yu.Root,{open:l,onOpenChange:e=>{!e&&!w.current&&P()},children:(0,F.jsxs)(yu.Portal,{children:[(0,F.jsx)(yu.Overlay,{className:`op-inbox-dialog__overlay`}),(0,F.jsxs)(yu.Content,{className:`op-inbox-dialog__content`,onOpenAutoFocus:e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})},onCloseAutoFocus:e=>{e.preventDefault()},children:[(0,F.jsxs)(yu.Title,{children:[`Confirm `,se.allowedAction.label]}),(0,F.jsx)(yu.Description,{children:`You are about to ${se.allowedAction.label}. ${se.consequence??`Review the prepared change before confirming.`}`}),(0,F.jsxs)(`details`,{className:`op-action-detail__technical-details op-action-detail__dialog-details`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(Ex,{label:`Tool`,value:se.allowedAction.tool}),(0,F.jsx)(Ex,{label:`Digest`,value:se.actionDigest})]})]}),(0,F.jsxs)(`div`,{className:`op-inbox-dialog__actions`,children:[(0,F.jsx)(yu.Cancel,{asChild:!0,children:(0,F.jsx)(Mm,{ref:E,variant:`secondary`,...d?{disabled:!0,disabledReason:`Confirmation in progress.`}:{onInvoke:()=>P()},children:`Cancel`})}),(0,F.jsx)(Mm,{disabled:d,onInvoke:()=>void ie(),children:d?`Confirming ${se.allowedAction.label}…`:`Confirm ${se.allowedAction.label}`})]})]})]})}):null]})}var Lx=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function Rx(e){try{let t=z(e);return t.productArea===`operate`&&t.route===`#/operate/actions`&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function zx(e){let t=Rx(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=gb(e),r=n.payload;return r.surface!==`actions`||t.eventHead===null||t.viewHash===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(gb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:`actions`,subjectId:null,cycleId:t.cycleId})),!0)}catch{return!1}}}function Bx(e,t){let n=Rx(t);if(n===null||!V(e)||e.binding===null||e.data===null||!B(e.binding,n)||!zx(n)(e.data))return null;let r=e.data,i=r.payload;if(i.surface!==`actions`)return null;let a=Lx[e.kind];return a===void 0||i.status!==a||i.mutationEnabled!==e.mutationEnabled||i.data.requestBinding.projectId!==n.projectId||i.data.requestBinding.generation!==n.generation?null:Object.freeze({kind:`actions`,presentation:a,binding:e.binding,display:r,surface:i,actions:Object.freeze(i.data.actions),mutationEnabled:e.mutationEnabled})}var Vx=new Set([`blocked`,`failed`,`rejected`]);function Hx(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Ux({currentBinding:e,current:t}){let n=Bx(t,e);if(!n)return(0,F.jsx)(`div`,{className:`op-workspace op-action-list pc-operate`,"data-route-kind":`operate.actions`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Action projection`,title:`Actions cannot be trusted`,description:`The owner-issued experience surface did not pass exact binding and integrity verification.`})});let{presentation:r}=n,i=n.actions.map((e,t)=>({...e,id:`${e.actionId}:${t}`})),a=[],o=new Map;for(let e of n.actions)o.has(e.state)||a.push(e.state),o.set(e.state,(o.get(e.state)??0)+1);return(0,F.jsxs)(`div`,{className:`op-workspace op-action-list pc-operate`,"data-route-kind":`operate.actions`,"data-action-presentation":r,children:[r===`ready`?null:(0,F.jsxs)(`p`,{className:`pc-operate__notice`,role:`status`,children:[`This is a `,r,` projection. Durable Action identity remains visible; no command is inferred.`]}),a.length>0?(0,F.jsx)(`ul`,{className:`pc-metrics`,"aria-label":`Action states`,children:a.map(e=>(0,F.jsx)(Im,{label:Hx(e),value:o.get(e)??0,tone:Vx.has(e)?`attention`:`default`},e))}):null,(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · actions`,title:`Actions`,count:`${n.actions.length} ${n.actions.length===1?`action`:`actions`}`,description:`Review approved work, its outcome, and the next safe step.`}),n.actions.length===0?(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Actions`,title:`No actions yet`,description:`There are no saved actions in this workspace.`}):(0,F.jsx)(`div`,{className:`pc-action-queue`,children:i.map(e=>{let t=e.executions.at(-1);return(0,F.jsx)(hm,{actionId:e.actionId,state:e.state,title:e.title,headingLevel:2,revision:e.revision,route:e.deliveryRoute?.route,execution:t?.status,deepLink:e.deepLink},e.id)})})]})}function Wx(e){return typeof e!=`object`||!e||Array.isArray(e)?{}:e}function Gx(e){return Array.isArray(e)?e:[]}function Kx(e,t=null){return typeof e==`string`&&e.trim()?e:t}function qx(e){return j({kind:`planning.detail`,product:`planning`,subjectId:e})}function Jx(e){return j({kind:`operate.action-planning`,product:`operate`,subjectId:e})}function Yx(e){let t=Kx(e.href),n=Kx(e.subjectId);if(!t||!n)return null;let r=qx(n);if(t===r||t===`#detail/${encodeURIComponent(n)}`)return r;let i=Jx(n);return t===i?i:null}function Xx(e){let t=Wx(e);return Object.freeze({kind:Kx(t.kind,`unknown`)??`unknown`,label:Kx(t.label,Kx(t.kind,`Trace step`)??`Trace step`)??`Trace step`,state:Kx(t.state,`unknown`)??`unknown`,owner:Kx(t.owner,`OpenPlanr`)??`OpenPlanr`,reason:Kx(t.reason),time:Kx(t.time),subjectId:Kx(t.subjectId),href:Yx(t)})}function Zx(e){let t=Wx(e),n=Wx(t.decision),r=Wx(t.action),i=Wx(t.spec),a=Wx(t.transaction),o=Wx(t.eventHead);return Object.freeze({kind:Kx(t.kind),status:Kx(t.status,Kx(i.status,`unknown`)??`unknown`)??`unknown`,correlationId:Kx(t.correlationId),proposalId:Kx(t.proposalId),proposalRevision:typeof t.proposalRevision==`number`?t.proposalRevision:null,proposalHash:Kx(t.proposalHash),scopeId:Kx(t.scopeId),domainId:Kx(t.domainId),domainVersion:Kx(t.domainVersion),cycleId:Kx(t.cycleId),eventHead:Object.freeze({sequence:typeof o.sequence==`number`?o.sequence:null,hash:Kx(o.hash)}),decision:Object.freeze({id:Kx(n.id),revision:typeof n.revision==`number`?n.revision:null,hash:Kx(n.hash)}),action:Object.freeze({id:Kx(r.id),revision:typeof r.revision==`number`?r.revision:null,hash:Kx(r.hash)}),metric:Object.freeze({...Wx(t.metric)}),verification:Object.freeze({...Wx(t.verification)}),evidence:Object.freeze(Gx(t.evidence).map(e=>Object.freeze(Wx(e)))),spec:Object.freeze({specId:Kx(i.specId),slug:Kx(i.slug),contentHash:Kx(i.contentHash),status:Kx(i.status,`unknown`)??`unknown`}),actor:Object.freeze({actorId:Kx(Wx(t.actor).actorId),kind:Kx(Wx(t.actor).kind)}),transaction:Object.freeze({transactionId:Kx(a.transactionId),receiptHash:Kx(a.receiptHash),planningProvenanceEventId:Kx(a.planningProvenanceEventId)}),createdAt:Kx(t.createdAt),originHash:Kx(t.originHash)})}function Qx(e,t={}){let n=Gx(Wx(e).nodes).map(Xx);return n.length>0?Object.freeze(n):Object.freeze([Xx({kind:`trace`,label:t.label??`Delivery trace unavailable`,state:`unknown`,owner:`OpenPlanr`,reason:t.reason??`No ledger-owned Planning progress projection is available.`})])}function $x(e){return e.action.id?Jx(e.action.id):null}function eS({node:e}){let t=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`op-planning-trace__label`,children:e.label}),(0,F.jsxs)(`span`,{className:`op-planning-trace__meta`,children:[e.owner,` · `,e.state]}),e.reason?(0,F.jsx)(`span`,{className:`op-planning-trace__reason`,children:e.reason}):null]});return(0,F.jsx)(`li`,{"data-kind":e.kind,"data-state":e.state,children:e.href?(0,F.jsx)(`a`,{className:`op-cycle-link op-planning-trace__link`,href:e.href,children:t}):(0,F.jsx)(`div`,{className:`op-planning-trace__static`,children:t})})}function tS({progress:e,label:t,reason:n}){let r=Qx(e,{label:t,reason:n});return(0,F.jsx)(`ol`,{className:`op-planning-trace operate-delivery-trace`,"aria-label":t??`Delivery trace`,children:r.map(e=>(0,F.jsx)(eS,{node:e},`${e.kind}:${e.subjectId??`none`}`))})}var nS=Object.freeze([[`title`,`SPEC title`,`text`],[`slug`,`SPEC slug`,`text`],[`problem`,`Problem`,`textarea`],[`objective`,`Objective`,`textarea`],[`users`,`Users`,`list`],[`scope`,`In scope`,`list`],[`nonScope`,`Out of scope`,`list`],[`risks`,`Risks`,`list`],[`constraints`,`Constraints`,`list`],[`requirements`,`Requirements`,`list`],[`acceptanceOutcomes`,`Acceptance outcomes`,`list`]]);function rS(e){try{let t=z(e);return t.productArea===`operate`&&t.subjectId!==null&&t.cycleId!==null&&t.route===`#/operate/actions/${encodeURIComponent(t.subjectId)}/planning`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function iS(e){if(e.subjectId===null)throw Error(`Planning handoff requires a subject identity.`);return z({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function aS(e){return typeof e!=`object`||!e||Array.isArray(e)?{}:e}function oS(e){return Array.isArray(e)?e:[]}function sS(e,t=``){return typeof e==`string`?e:t}function cS(e,t){return JSON.stringify(e)===JSON.stringify(t)}function lS(e,t){return e?.sequence===t?.sequence&&e?.hash===t?.hash}function uS(e,t){return!!(e?.actionId&&e.actionId===t?.actionId&&e.revision===t?.revision&&e.actionHash===t?.actionHash)}function dS(e,t=Date.now()){let n=Date.parse(String(e??``));return Number.isFinite(n)&&n>t}function fS(e,t,n,r=Date.now()){let i=aS(e.preview);return!!(e.proposalId&&e.proposalHash&&i.digest&&t.contentHash&&n.actorId&&aS(e.actor).actorId===n.actorId&&e.scopeId===n.scopeId&&e.domainId===n.domainId&&e.domainVersion===n.domainVersion&&uS(aS(e.action),n.action)&&lS(aS(e.eventHead),n.eventHead)&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.previewDigest===i.digest&&lS(aS(t.eventHead),aS(e.eventHead))&&dS(i.expiresAt,r))}function pS(e){let t=aS(e);return Object.freeze({title:sS(t.title),slug:sS(t.slug),problem:sS(t.problem),objective:sS(t.objective),users:Object.freeze(oS(t.users).map(String)),scope:Object.freeze(oS(t.scope).map(String)),nonScope:Object.freeze(oS(t.nonScope).map(String)),risks:Object.freeze(oS(t.risks).map(String)),constraints:Object.freeze(oS(t.constraints).map(String)),requirements:Object.freeze(oS(t.requirements).map(String)),acceptanceOutcomes:Object.freeze(oS(t.acceptanceOutcomes).map(String))})}function mS(e,t){return cS(pS(e),pS(t))}function hS(e,t){let n=String(e.specId),r=[`${qh} spec show ${n}`,`$planr:plan ${n}`,`/planr:plan ${n}`];return t.length===r.length&&t.every((e,t)=>e===r[t]||t===1&&e===`$planr-plan ${n}`)}function gS(e,t,n){let r=aS(t.spec);return!!(e.specId&&e.transactionId&&e.contentHash&&e.originHash&&e.receiptHash&&e.proposalId&&e.proposalHash&&e.correlationId&&e.provenanceEventId&&r.specId===e.specId&&r.contentHash===e.contentHash&&t.originHash===e.originHash&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.correlationId===e.correlationId&&aS(t.action).id&&aS(t.decision).id&&t.eventHead&&Array.isArray(n.nodes))}function _S(e,t){let n=rS(t);if(n===null||!V(e)||e.binding===null||e.data===null||!B(e.binding,n)||!px(iS(n))(e.data))return null;let r=e.data.payload,i=r.status;if(e.mutationEnabled)return null;let a=i===`ready`;return Object.freeze({kind:`planning-handoff`,presentation:i,binding:e.binding,action:r.data.action,workspace:r,mutationEnabled:a,reasonCodes:Object.freeze([...r.reasonCodes])})}var vS=/^sha256:[a-f0-9]{64}$/u,yS=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,bS=4194304,xS=class extends Error{code;constructor(e){super(`The governed Planning handoff was refused without effect.`),this.code=e,this.name=e}};function Z(e=`OPERATE_COMMAND_INVALID`){throw new xS(e)}function SS(e){return(typeof e!=`object`||!e||Array.isArray(e))&&Z(),e}function CS(e,t){let n=SS(e),r=Object.keys(n).sort(),i=[...t].sort();return JSON.stringify(r)!==JSON.stringify(i)&&Z(`OPERATE_RESPONSE_INVALID`),n}function wS(e){let t;try{t=new URL(e)}catch{Z(`OPERATE_ORIGIN_INVALID`)}return(t.origin!==e||t.protocol!==`http:`||![`127.0.0.1`,`localhost`,`[::1]`].includes(t.hostname))&&Z(`OPERATE_ORIGIN_INVALID`),t.origin}function TS(e,t,n){let r=new URL(t,e);return r.searchParams.set(`scopeId`,n.scopeId),r.searchParams.set(`domainId`,n.domainId),r.searchParams.set(`domainVersion`,n.domainVersion),r.toString()}function ES(e){let t=CS(e,[`sequence`,`hash`]),n=Object.keys(t).sort();(n.length!==2||n[0]!==`hash`||n[1]!==`sequence`)&&Z(),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Z();let r=t.hash===null?null:t.hash;return r!==null&&typeof r!=`string`&&Z(),r!==null&&!vS.test(r)&&Z(),t.sequence===0!=(r===null)&&Z(),Object.freeze({sequence:t.sequence,hash:r})}function DS(e){let t=CS(e,[`subjectId`,`actionDigest`,`revision`]),n=Object.keys(t).sort();(n.length!==3||n[0]!==`actionDigest`||n[1]!==`revision`||n[2]!==`subjectId`)&&Z();let r=t.revision;return(!Number.isSafeInteger(r)||r<0)&&Z(),Object.freeze({subjectId:typeof t.subjectId==`string`&&yS.test(t.subjectId)?t.subjectId:Z(),actionDigest:typeof t.actionDigest==`string`&&vS.test(t.actionDigest)?t.actionDigest:Z(),revision:r})}function OS(e,t,n,r){return(e.cycleId===null||e.viewHash===null||e.eventHead===null)&&Z(`OPERATE_BINDING_REQUIRED`),Object.freeze({actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,generation:e.generation,route:e.route,cycleId:e.cycleId,viewHash:e.viewHash,eventHead:e.eventHead,actionId:t.subjectId,actionHash:t.actionDigest,actionRevision:t.revision,proposalId:n,confirmDigest:r})}function kS(e,t){let n=SS(e),r=SS(n.eventHead);return Object.keys(n).length===15&&n.actorId===t.actorId&&n.projectId===t.projectId&&n.scopeId===t.scopeId&&n.domainId===t.domainId&&n.domainVersion===t.domainVersion&&n.generation===t.generation&&n.route===t.route&&n.cycleId===t.cycleId&&n.viewHash===t.viewHash&&r.sequence===t.eventHead.sequence&&r.hash===t.eventHead.hash&&n.actionId===t.actionId&&n.actionHash===t.actionHash&&n.actionRevision===t.actionRevision&&n.proposalId===t.proposalId&&n.confirmDigest===t.confirmDigest}async function AS(e,t,n,r,i,a,o,s){let c={accept:`application/json`,"content-type":`application/json`,"x-openplanr-actor":r.actorId};o&&(c.authorization=`Bearer ${o}`);let l;try{let o=e(TS(t,n,r),{method:`POST`,headers:c,body:JSON.stringify(i),cache:`no-store`,signal:a});l=s?await s.waitForCurrent(o):await o,s?.assertCurrent()}catch{if(a.aborted)throw new DOMException(`Cancelled`,`AbortError`);Z(`OPERATION_UNCERTAIN`)}let u;try{let e=l.text();u=s?await s.waitForCurrent(e):await e,s?.assertCurrent()}catch{if(a.aborted)throw new DOMException(`Cancelled`,`AbortError`);Z(`OPERATION_UNCERTAIN`)}(!l.headers.get(`content-type`)?.startsWith(`application/json`)||new TextEncoder().encode(u).byteLength>bS)&&Z(`OPERATION_UNCERTAIN`);let d;try{d=JSON.parse(u)}catch{Z(`OPERATION_UNCERTAIN`)}if(!l.ok){let e,t;try{e=SS(d),t=SS(e.error)}catch{Z(`OPERATION_UNCERTAIN`)}Z(typeof t.reasonCode==`string`?t.reasonCode:`OPERATE_COMMAND_REFUSED`)}try{return SS(d)}catch{Z(`OPERATION_UNCERTAIN`)}}async function jS(e,t,n,r,i,a){let o=e(TS(t,n,r),{headers:{accept:`application/json`,"x-openplanr-actor":r.actorId},cache:`no-store`,signal:i}),s=a?await a.waitForCurrent(o):await o;a?.assertCurrent();let c=s.text(),l=a?await a.waitForCurrent(c):await c;a?.assertCurrent(),new TextEncoder().encode(l).byteLength>bS&&Z();let u;try{u=JSON.parse(l)}catch{Z()}return s.ok||Z(`OPERATE_COMMAND_REFUSED`),SS(u)}function MS(e){try{return e()}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)throw e;Z(`OPERATION_UNCERTAIN`)}}function NS(e,t){let n=CS(e,[`proposal`,`specPreview`]),r=SS(n.proposal),i=SS(n.specPreview);return fS(r,i,t)||Z(`OPERATE_RESPONSE_INVALID`),Object.freeze({proposal:r,specPreview:i})}function PS(e,t){let n=CS(e,[`receipt`,`origin`,`progress`,`nextCommands`]),r=SS(n.receipt),i=SS(n.origin),a=CS(n.progress,[`nodes`]);if(gS(r,i,a)||Z(`OPERATE_RESPONSE_INVALID`),t){let e=SS(i.actor),n=SS(i.action),a=ES(i.eventHead);(r.proposalId!==t.proposalId||i.proposalId!==t.proposalId||i.proposalRevision!==2||e.actorId!==t.identity.actorId||e.kind!==`human`||i.scopeId!==t.identity.scopeId||i.domainId!==t.identity.domainId||i.domainVersion!==t.identity.domainVersion||i.cycleId!==t.identity.cycleId||n.id!==t.locator.subjectId||n.revision!==t.locator.revision||n.hash!==t.locator.actionDigest||t.identity.eventHead===null||a.sequence!==t.identity.eventHead.sequence||a.hash!==t.identity.eventHead.hash||!vS.test(t.confirmDigest))&&Z(`OPERATE_RESPONSE_INVALID`)}(!Array.isArray(n.nextCommands)||!n.nextCommands.every(e=>typeof e==`string`))&&Z(`OPERATE_RESPONSE_INVALID`);let o=n.nextCommands;return hS(r,o)||Z(`OPERATE_RESPONSE_INVALID`),Object.freeze({receipt:r,origin:i,progress:Object.freeze({nodes:Object.freeze(a.nodes)}),nextCommands:Object.freeze(o)})}function FS(e,t,n){let r=PS(e),i=SS(r.origin);return(SS(i.spec).specId!==n||SS(i.actor).actorId!==t.actorId||SS(i.actor).kind!==`human`||i.scopeId!==t.scopeId||i.domainId!==t.domainId||i.domainVersion!==t.domainVersion)&&Z(`OPERATE_RESPONSE_INVALID`),r}async function IS(e){let t=wS(e.origin),n=e.fetcher??fetch;/^SPEC-\d{3}$/u.test(e.specId)||Z();let r=e.signal??new AbortController().signal;return FS(await jS(n,t,`/api/operate/planning/trace/${encodeURIComponent(e.specId)}`,e.identity,r),e.identity,e.specId)}function LS(e){let t=wS(e.origin),n=e.fetcher??fetch,r=(e,t)=>(e.eventHead===null&&Z(`OPERATE_BINDING_REQUIRED`),Object.freeze({actorId:e.actorId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,action:Object.freeze({actionId:t.subjectId,revision:t.revision,actionHash:t.actionDigest}),eventHead:e.eventHead})),i=Kb({routeKinds:[`operate.action-planning`],routeErrorCode:`OPERATE_PLANNING_ROUTE_REQUIRED`,parseLocator:DS,sameLocator:(e,t)=>e.subjectId===t.subjectId&&e.actionDigest===t.actionDigest&&e.revision===t.revision,async issueSession({identity:e,locator:r,signal:i,assertCurrent:a,waitForCurrent:o}){(e.cycleId===null||e.eventHead===null||e.viewHash===null)&&Z(`OPERATE_BINDING_REQUIRED`);let s=await AS(n,t,`/api/operate/session`,e,{cycleId:e.cycleId,eventHead:e.eventHead,sourceViewHash:e.viewHash,actionLocator:r},i,void 0,{assertCurrent:a,waitForCurrent:o});return a(),MS(()=>{let t=ox(s,e,r,{parseLocator:DS,sameLocator:(e,t)=>e.subjectId===t.subjectId&&e.actionDigest===t.actionDigest&&e.revision===t.revision,allowedActions:{kind:`none`}});return Object.freeze({sessionId:t.sessionId,capability:t.capability})})}});return Object.freeze({bind:i.bind,async preview(e,a){return i.clearPreviewProof(),await i.run(async({identity:o,locator:s,session:c,signal:l,assertCurrent:u,waitForCurrent:d})=>{e!==s.subjectId&&Z(`OPERATE_BINDING_MISMATCH`);let f={sessionId:c.sessionId,actionId:e};a&&(f.framing=structuredClone(a));let p=await AS(n,t,`/api/operate/planning/preview`,o,f,l,c.capability,{assertCurrent:u,waitForCurrent:d});u();let m=MS(()=>NS(p,r(o,s)));return i.retainPreviewProof(OS(o,s,String(m.proposal.proposalId),String(SS(m.proposal.preview).digest))),m},{uncertainOnFailure:!0})},async createSpec(e,r){return(!/^oprop_[a-f0-9]{32}$/u.test(e)||!vS.test(r))&&Z(),await i.run(async({identity:a,locator:o,session:s,signal:c,assertCurrent:l,waitForCurrent:u})=>{let d=OS(a,o,e,r);i.requirePreviewProof(e=>kS(e,d));let f=await AS(n,t,`/api/operate/planning/create-spec`,a,{sessionId:s.sessionId,proposalId:e,confirmDigest:r},c,s.capability,{assertCurrent:l,waitForCurrent:u});l();let p=MS(()=>PS(f,{identity:a,locator:o,proposalId:e,confirmDigest:r}));return i.clearPreviewProof(),p},{uncertainOnFailure:!0})},async trace(e){return/^SPEC-\d{3}$/u.test(e)||Z(),await i.run(async({identity:r,signal:i,assertCurrent:a,waitForCurrent:o})=>{let s=await jS(n,t,`/api/operate/planning/trace/${encodeURIComponent(e)}`,r,i,{assertCurrent:a,waitForCurrent:o});return a(),FS(s,r,e)})},reconcile:i.reconcile,cancel:i.cancel,dispose:i.dispose})}function RS(e){return JSON.stringify({actorId:e.binding.actorId,projectId:e.binding.projectId,scopeId:e.binding.scopeId,domainId:e.binding.domainId,domainVersion:e.binding.domainVersion,generation:e.binding.generation,route:e.binding.route,cycleId:e.binding.cycleId,subjectId:e.binding.subjectId,eventHead:e.binding.eventHead,viewHash:e.binding.viewHash,action:{actionId:e.action.actionId,actionHash:e.action.actionHash,revision:e.action.revision}})}function zS(e){return JSON.stringify({actorId:e.binding.actorId,projectId:e.binding.projectId,scopeId:e.binding.scopeId,domainId:e.binding.domainId,domainVersion:e.binding.domainVersion,generation:e.binding.generation,route:e.binding.route,cycleId:e.binding.cycleId,subjectId:e.binding.subjectId})}function BS(e){return e instanceof DOMException&&e.name===`AbortError`}function VS(e){return typeof e!=`object`||!e||Array.isArray(e)?{}:e}function HS(e){return Array.isArray(e)?e:[]}function US(e,t=``){return typeof e==`string`?e:t}function WS({label:e,value:t}){return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:e}),(0,F.jsx)(`dd`,{children:t==null||t===``?`Not available`:t})]})}function GS(e,t){return e===`offline`?`Live authority is unavailable offline. Reconnect and refresh before any command.`:e===`stale`?`The displayed Event head is stale. Refresh before requesting a new preview.`:t.includes(`OPERATE_EVENT_GAP`)?`An ordered Event gap was detected. Refresh the validated snapshot before any command.`:e===`read-only`?`No command gateway or current mutation authority is available.`:null}function KS(e){return j({kind:`planning.detail`,product:`planning`,subjectId:e})}function qS(e){return j({kind:`operate.action`,product:`operate`,subjectId:e})}function JS({creation:e,actionId:t,actionTitle:n}){let r=VS(e.receipt),i=US(r.specId),a=i?KS(i):null;return(0,F.jsxs)(`section`,{className:`op-planning-handoff__created`,"aria-label":`Created SPEC draft and delivery trace`,children:[(0,F.jsxs)(`header`,{className:`op-planning-handoff__header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Planning handoff · SPEC created`}),(0,F.jsxs)(`h1`,{children:[i||`SPEC`,` ·`,` `,US(r.title)||US(r.slug)||n||`Created draft`]}),(0,F.jsxs)(`p`,{children:[i?`${i} is durable with status shaping.`:`The shaping draft and origin receipt are durable.`,` `,`No story, task, PLAN, SHIP, commit, or target effect was started.`]})]}),(0,F.jsxs)(`div`,{className:`op-planning-handoff__actions`,children:[(0,F.jsx)(`a`,{className:`op-cycle-link`,href:qS(t),children:`Return to source Action`}),a?(0,F.jsx)(`a`,{className:`op-cycle-link op-cycle-link--primary`,href:a,children:`Open in Planning`}):null]})]}),(0,F.jsx)(tS,{progress:e.progress}),(0,F.jsxs)(`div`,{className:`op-planning-handoff__grid`,children:[(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Draft details`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Draft details`}),(0,F.jsx)(`h2`,{children:i||`Created SPEC`}),(0,F.jsx)(`p`,{children:`Status shaping`}),(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(WS,{label:`Content digest`,value:US(r.contentHash)}),(0,F.jsx)(WS,{label:`Origin digest`,value:US(r.originHash)}),(0,F.jsx)(WS,{label:`Receipt digest`,value:US(r.receiptHash)}),(0,F.jsx)(WS,{label:`Proposal`,value:US(r.proposalId)}),(0,F.jsx)(WS,{label:`Correlation`,value:US(r.correlationId)}),(0,F.jsx)(WS,{label:`Planning provenance`,value:US(r.provenanceEventId)})]})]})]}),(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Next human gates`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Next human gates`}),(0,F.jsx)(`h2`,{children:`Planning owns the next commands`}),(0,F.jsx)(`p`,{children:`These commands are returned by OpenPlanr; this screen does not construct or run them.`}),e.nextCommands.length>0?(0,F.jsx)(`pre`,{className:`op-planning-handoff__commands`,children:(0,F.jsx)(`code`,{children:e.nextCommands.join(`
|
|
55
|
+
`)})}):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Next commands`,title:`Next commands unavailable`,description:`No planning command is inferred from the SPEC ID.`})]})]})]})}function YS({currentBinding:e,current:t,actions:n,onRefetch:r}){let i=(0,v.useMemo)(()=>_S(t,e),[t,e]),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(!1),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!1),b=(0,v.useRef)(null),x=(0,v.useRef)(null),S=(0,v.useRef)(``),C=(0,v.useRef)(``),w=i?RS(i):``,T=i?zS(i):``,E=a?VS(a.proposal):null,D=a?VS(a.specPreview):null,O=E?pS(E.framing):null,k=l??O,A=E&&D&&i?.binding.eventHead&&k&&O&&mS(k,O)&&fS(E,D,{actorId:i.binding.actorId,scopeId:i.binding.scopeId,domainId:i.binding.domainId,domainVersion:i.binding.domainVersion,action:{actionId:i.action.actionId,revision:i.action.revision,actionHash:i.action.actionHash},eventHead:i.binding.eventHead}),j=(0,v.useCallback)(()=>{if(n)return n;if(!i||typeof window>`u`||i.binding.cycleId===null||i.binding.eventHead===null||i.binding.viewHash===null)return null;if(b.current&&x.current===w)return b.current;b.current?.cancel(),b.current?.dispose(),b.current=null,x.current=null;let e=LS({origin:window.location.origin});return e.bind(i.binding,{subjectId:i.action.actionId,actionDigest:i.action.actionHash,revision:i.action.revision}),b.current=e,x.current=w,e},[n,w,i]),M=i?GS(i.presentation,i.reasonCodes):null,N=s&&gS(VS(s.receipt),VS(s.origin),VS(s.progress)),ee=(0,v.useCallback)(async e=>{if(!i)return;let t=w;f(null),o(null),m(!1);let n=j();if(n)try{let r=await n.preview(i.action.actionId,e);if(S.current!==t)return;o(r),u(pS(VS(r.proposal).framing))}catch(e){if(BS(e)||S.current!==t)return;let n=e&&typeof e==`object`&&`name`in e?String(e.name):`OPERATE_COMMAND_REFUSED`;n===`OPERATION_UNCERTAIN`&&g(T),f({tone:n===`OPERATION_UNCERTAIN`?`attention`:`refusal`,text:n===`E_OPERATE_PLANNING_EXPIRED`?`Planning preview expired. Refresh the canonical preview before confirming creation.`:n===`OPERATION_UNCERTAIN`?`Planning preview proof was lost after POST. Reconcile exact current state; do not reuse the prior preview.`:`The governed Planning preview was refused without effect.`})}},[w,i,T,j]),P=(0,v.useCallback)(async()=>{if(!E||!i?.binding.eventHead)return;let e=w,t=US(VS(E.preview).digest),n=US(E.proposalId);if(!t||!n)return;let r=j();if(r)try{let i=await r.createSpec(n,t);if(S.current!==e)return;c(i),m(!1),f({tone:`verified`,text:`${US(VS(i.receipt).specId)||`SPEC`} is durable with status shaping.`})}catch(t){if(BS(t)||S.current!==e)return;let n=t&&typeof t==`object`&&`name`in t?String(t.name):`OPERATE_COMMAND_REFUSED`;m(!1),n===`OPERATION_UNCERTAIN`&&g(T),f({tone:n===`OPERATION_UNCERTAIN`?`attention`:`refusal`,text:n===`E_OPERATE_PLANNING_EXPIRED`?`Planning preview expired. Refresh the canonical preview before confirming creation.`:n===`OPERATION_UNCERTAIN`?`The command outcome is uncertain. Reconcile exact current state; do not retry.`:`The governed Planning creation was refused without effect.`})}},[w,i,E,T,j]);(0,v.useEffect)(()=>()=>{b.current?.cancel(),b.current?.dispose(),b.current=null,x.current=null},[]),(0,v.useLayoutEffect)(()=>{S.current=w,C.current!==w&&(C.current=w,h!==T&&(b.current?.cancel(),b.current?.dispose(),b.current=null,x.current=null),o(null),c(null),u(null),m(!1),f(null),y(!1))},[w,T,h]),(0,v.useLayoutEffect)(()=>{n&&(b.current?.cancel(),b.current?.dispose(),b.current=null,x.current=null)},[n]);let te=(0,v.useCallback)(async()=>{if(r&&h===T){y(!0);try{let e=await r(),t=e.binding?_S(e,e.binding):null,i=n??b.current;if(!t||!i)throw Error(`Exact reconciliation failed.`);i.reconcile(t.binding),g(null),o(null),u(null),m(!1),f({tone:`verified`,text:`Exact current state was reconciled. Request a new canonical preview before any creation.`})}catch{f({tone:`attention`,text:`Planning remains locked: exact current state did not reconcile. Do not retry creation.`})}finally{y(!1)}}},[n,r,T,h]);if(!i)return(0,F.jsx)(`div`,{className:`op-workspace op-planning-handoff pc-operate`,"data-route-kind":`operate.action-planning`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Planning handoff`,title:`Planning handoff cannot be trusted`,description:`The owner-issued Action workspace did not pass exact binding and integrity verification.`})});if(i.action.deliveryRoute?.route!==`planning-work`)return(0,F.jsx)(`section`,{className:`op-workspace op-planning-handoff pc-operate`,"data-route-kind":`operate.action-planning`,"aria-label":`Planning handoff unavailable`,children:(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Delivery route`,title:`This Action does not enter Planning`,description:`Only the canonical planning-work route can request a proposal. The browser does not infer or change delivery routes.`})});if(N&&s)return(0,F.jsx)(`section`,{className:`op-workspace op-planning-handoff pc-operate`,"data-route-kind":`operate.action-planning`,"data-planning-state":`created`,"aria-label":`Created Planning handoff`,children:(0,F.jsx)(JS,{creation:s,actionId:i.action.actionId,actionTitle:i.action.title})});let ne=!!E?.proposalId,re=h===T,ie=i.mutationEnabled&&!M&&!re&&!_&&ne&&!N,ae=i.mutationEnabled&&!M&&!re&&!_&&!!i.action,oe=ae&&A&&US(E?.state)===`review-required`&≠return(0,F.jsxs)(`section`,{className:`op-workspace op-planning-handoff pc-operate`,"data-route-kind":`operate.action-planning`,"data-planning-preview":A?`current`:`stale`,"aria-labelledby":`operate-planning-handoff-title`,children:[(0,F.jsxs)(`header`,{className:`op-planning-handoff__header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Planning handoff`}),(0,F.jsx)(`h1`,{id:`operate-planning-handoff-title`,children:i.action.title}),(0,F.jsx)(`p`,{children:`Review the context, shape the draft, and confirm it before creating a Planning SPEC.`})]}),(0,F.jsx)(`a`,{className:`op-cycle-link`,href:qS(i.action.actionId),children:`Return to source Action`})]}),M?(0,F.jsx)(Y,{state:i.presentation===`offline`?`offline`:`unavailable`,eyebrow:`Governed controls`,title:`Planning creation is unavailable`,description:M}):null,d?(0,F.jsx)(`p`,{className:`pc-operate__notice`,role:`status`,"data-tone":d.tone,children:d.text}):null,re?(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Uncertain operation`,title:`Creation stays disabled until exact reconciliation`,description:`A Planning POST may have taken effect. OpenPlanr will not offer a blind retry.`,actions:(0,F.jsx)(Mm,{disabled:!r||_,disabledReason:`An exact adapter-owned refetch is required before another preview.`,onInvoke:te,children:_?`Reconciling current state…`:`Reconcile current state`})}):null,(0,F.jsxs)(`div`,{className:`op-planning-handoff__layout`,children:[(0,F.jsxs)(`div`,{className:`op-planning-handoff__stack`,children:[(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Why this draft`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Why this draft`}),(0,F.jsx)(`h2`,{children:US(VS(E?.decision).title)||i.action.title}),(0,F.jsx)(`p`,{children:US(VS(E?.decision).rationale)||`OpenPlanr has not returned a canonical Planning proposal for this Action.`}),(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(WS,{label:`Decision`,value:US(VS(E?.decision).decisionId)}),(0,F.jsx)(WS,{label:`Action`,value:US(VS(E?.action).actionId)||i.action.actionId}),(0,F.jsx)(WS,{label:`Delivery route`,value:i.action.deliveryRoute?.route}),(0,F.jsx)(WS,{label:`Cycle`,value:US(E?.cycleId)})]})]})]}),(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Team perspectives`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Team perspectives`}),(0,F.jsx)(`h2`,{children:`What informed this draft`}),(0,F.jsx)(`p`,{children:`Review the perspectives and any disagreement before shaping the draft.`}),HS(E?.acceptedPerspectiveSummaries).length>0?(0,F.jsx)(`ul`,{className:`op-planning-handoff__perspectives`,children:HS(E?.acceptedPerspectiveSummaries).map((e,t)=>{let n=VS(e);return(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:US(n.summary,`Summary unavailable`)}),(0,F.jsxs)(`span`,{children:[US(n.roleKind,`role`),` ·`,` `,US(n.stance,`unknown`)]})]},`${US(n.roleId)}:${t}`)})}):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Perspectives`,title:`No canonical proposal yet`,description:`Request a preview to load accepted advisor, Challenger, and Chair summaries.`})]}),(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Supporting evidence`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Supporting evidence`}),(0,F.jsx)(`h2`,{children:`What the draft is based on`}),HS(E?.evidence).length>0?(0,F.jsx)(`ul`,{className:`op-planning-handoff__evidence`,children:HS(E?.evidence).map((e,t)=>{let n=VS(e);return(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:US(n.summary,`Evidence body omitted by access policy`)}),(0,F.jsxs)(`span`,{children:[US(n.relation,`relation unavailable`),` ·`,` `,US(n.accessState,`access unavailable`)]})]},`${US(n.evidenceRefId)}:${t}`)})}):(0,F.jsx)(`p`,{children:`No supporting evidence is available yet.`})]})]}),(0,F.jsxs)(`div`,{className:`op-planning-handoff__stack`,children:[(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Shape the draft`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Shape the draft`}),(0,F.jsx)(`h2`,{children:`Shape the draft before confirmation`}),(0,F.jsx)(`p`,{children:`Editing refreshes the preview. You can create the draft only after reviewing the updated version.`}),(0,F.jsx)(`form`,{className:`op-planning-handoff__form`,"aria-label":`Draft framing`,children:nS.map(([e,t,n])=>{let r=`op-planning-framing-${e}`,i=k&&n===`list`?k[e].join(`
|
|
56
|
+
`):k?k[e]:``;return(0,F.jsxs)(`label`,{className:`op-planning-handoff__field`,htmlFor:r,children:[(0,F.jsx)(`span`,{children:t}),n===`textarea`||n===`list`?(0,F.jsx)(`textarea`,{id:r,name:e,rows:n===`list`?4:5,disabled:!ie,value:i,onChange:t=>{if(!k)return;let r=n===`list`?t.target.value.split(/\r?\n/u).map(e=>e.trim()).filter(Boolean):t.target.value;u(Object.freeze({...k,[e]:r}))}}):(0,F.jsx)(`input`,{id:r,name:e,type:`text`,disabled:!ie,value:i,onChange:t=>{k&&u(Object.freeze({...k,[e]:t.target.value}))}})]},e)})}),(0,F.jsx)(`div`,{className:`op-planning-handoff__actions`,children:(0,F.jsx)(Mm,{disabled:!ae,disabledReason:M??(ne?`Human framing is editable only from a current, online, actor-bound Planning handoff.`:`Request the initial canonical proposal before editing human-owned framing.`),onInvoke:()=>ee(ne&&k?pS(k):void 0),children:ne?`Refresh canonical SPEC preview`:`Preview SPEC draft`})})]}),(0,F.jsxs)(`section`,{className:`op-planning-handoff__card`,"aria-label":`Draft preview`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Draft preview`}),(0,F.jsx)(`h2`,{children:US(D?.title)||US(VS(E?.framing).title)||`No canonical SPEC preview yet`}),(0,F.jsx)(`p`,{children:A?`The canonical SPEC preview is current for these exact human-owned framing fields.`:`Request a canonical preview before creating the draft.`}),typeof D?.content==`string`?(0,F.jsx)(`pre`,{className:`op-planning-handoff__spec-preview operate-planning-spec-preview`,children:(0,F.jsx)(`code`,{children:D.content})}):(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Preview`,title:`Preview not issued`,description:`No local renderer is used. OpenPlanr must return the same validated SPEC bytes it will later publish.`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(WS,{label:`Proposal`,value:US(E?.proposalId)}),(0,F.jsx)(WS,{label:`Preview digest`,value:US(VS(E?.preview).digest)}),(0,F.jsx)(WS,{label:`Preview expiry`,value:US(VS(E?.preview).expiresAt)}),(0,F.jsx)(WS,{label:`SPEC content digest`,value:US(D?.contentHash)})]}),(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`What happens next`,title:`This creates a draft only`,description:`It does not start work, create a commit, publish, or deploy.`}),(0,F.jsx)(`div`,{className:`op-planning-handoff__actions`,children:(0,F.jsx)(Mm,{disabled:!oe,disabledReason:A?`Only a current review-required proposal can be confirmed once.`:`Refresh the exact canonical preview after every framing change.`,onInvoke:()=>m(!0),children:`Create SPEC draft`})})]})]})]}),(0,F.jsx)(yu.Root,{open:p,onOpenChange:m,children:(0,F.jsxs)(yu.Portal,{children:[(0,F.jsx)(yu.Overlay,{className:`op-planning-handoff__overlay`}),(0,F.jsxs)(yu.Content,{className:`op-planning-handoff__dialog`,role:`dialog`,"aria-modal":`true`,children:[(0,F.jsx)(yu.Title,{children:`Create one shaping SPEC draft?`}),(0,F.jsx)(yu.Description,{children:`This confirms the exact proposal, Event head, human framing, preview digest, and expiry shown in this workspace.`}),(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`What happens next`,title:`More decisions are still required`,description:`Creating this draft does not start PLAN, SHIP, an Action, a commit, publication, or deployment.`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(WS,{label:`Proposal`,value:US(E?.proposalId)}),(0,F.jsx)(WS,{label:`Digest`,value:US(VS(E?.preview).digest)}),(0,F.jsx)(WS,{label:`Expires`,value:US(VS(E?.preview).expiresAt)})]}),(0,F.jsxs)(`div`,{className:`op-planning-handoff__dialog-actions`,children:[(0,F.jsx)(yu.Cancel,{className:`op-governed-button`,type:`button`,children:`Cancel`}),(0,F.jsx)(Mm,{onInvoke:P,children:`Confirm Create SPEC draft`})]})]})]})})]})}var XS=Object.freeze({DetailPage:Ix,ListPage:Ux,PlanningHandoffPage:YS,createDetailValidator:px,createListValidator:zx}),ZS=Object.freeze([`claimStatus`,`status`,`state`]),QS=Object.freeze([`classification`,`accessState`,`accessReason`,`freshness`,`evidenceKind`,`confidence`,`why`,`epistemicStatus`]);function $S(e){return typeof e==`string`&&e.trim()!==``?e:typeof e==`number`&&Number.isFinite(e)?String(e):typeof e==`boolean`?e?`true`:`false`:null}function eC(e){let t=e.replace(/([a-z0-9])([A-Z])/gu,`$1 $2`).replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function tC(e){return e===`true`?`Yes`:e===`false`?`No`:eC(e)}function nC(e,t){return $S(Reflect.get(e,`evidenceRefId`))??$S(Reflect.get(e,`outcomeId`))??$S(Reflect.get(e,`claimId`))??$S(Reflect.get(e,`eventId`))??$S(Reflect.get(e,`metricId`))??$S(Reflect.get(e,`learningId`))??t}function rC(e){let t=$S(Reflect.get(e,`deepLink`));return t?.startsWith(`#/`)?t:null}function iC(e){for(let t of ZS){let n=$S(Reflect.get(e,t));if(n!==null)return n}return null}function aC(e,t){return`${e===`History`?`History entry`:e.endsWith(`s`)?e.slice(0,-1):e} ${t+1}`}function oC({presentation:e}){return e===`ready`?null:(0,F.jsxs)(`p`,{className:`pc-operate__notice`,role:`status`,children:[`This view is `,eC(e).toLocaleLowerCase(`en-US`),`. It does not make a success claim.`]})}function sC({record:e}){let t=QS.flatMap(t=>{let n=$S(Reflect.get(e,t));return n===null?[]:[{key:t,value:n}]});return t.length===0?null:(0,F.jsx)(`dl`,{className:`pc-operate__record-facts`,children:t.map(e=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:eC(e.key)}),(0,F.jsx)(`dd`,{children:tC(e.value)})]},e.key))})}function cC({heading:e,records:t}){return t.length===0?(0,F.jsx)(Y,{state:`unavailable`,eyebrow:e,title:`No ${e.toLowerCase()} to review`,description:`There are no ${e.toLocaleLowerCase(`en-US`)} in this cycle right now.`}):(0,F.jsxs)(`section`,{className:`pc-operate__section`,"aria-label":e,children:[(0,F.jsx)(Jp,{headingLevel:2,title:e,count:t.length}),(0,F.jsx)(`ol`,{className:`pc-operate__records`,children:t.map((t,n)=>{let r=$S(Reflect.get(t,`title`))??$S(Reflect.get(t,`statement`))??$S(Reflect.get(t,`summary`))??$S(Reflect.get(t,`why`))??aC(e,n),i=nC(t,`${e}-${n}`),a=rC(t),o=iC(t);return(0,F.jsxs)(`li`,{className:`pc-operate__record`,children:[(0,F.jsxs)(`div`,{className:`pc-operate__record-head`,children:[(0,F.jsxs)(`h3`,{className:`pc-operate__record-title`,children:[(0,F.jsx)(`span`,{className:`pc-operate__record-index`,"aria-hidden":`true`,children:String(n+1).padStart(2,`0`)}),` `,a?(0,F.jsx)(`a`,{className:`pc-row-link`,href:a,children:r}):r]}),o?(0,F.jsx)(Fm,{state:o}):null]}),(0,F.jsx)(sC,{record:t}),(0,F.jsxs)(`details`,{className:`pc-operate__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:i})]})]},i)})})]})}var lC=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function uC(e){try{let t=z(e),n=t.route===`#/operate/evidence`||t.subjectId!==null&&t.route===`#/operate/evidence/${encodeURIComponent(t.subjectId)}`;return t.productArea===`operate`&&n&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function dC(e){let t=uC(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=ay(e),r=n.payload;if(r.surface!==`evidence`||t.eventHead===null||t.viewHash===null||t.cycleId===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash||r.viewHash!==t.viewHash)return!1;let i=sy(t.eventHead);return i!==null&&(ay(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:t.subjectId,surface:`evidence`,query:null,format:null,generatedAt:r.generatedAt,eventHead:i,viewHash:t.viewHash})),!0)}catch{return!1}}}function fC(e,t){let n=uC(t);if(!n||!V(e)||e.binding===null||e.data===null||!B(e.binding,n)||!dC(n)(e.data))return null;let r=lC[e.kind],i=e.data;if(r===void 0||i.payload.surface!==`evidence`)return null;let a=i.payload;return a.status!==r||a.readOnly!==!0?null:Object.freeze({kind:`evidence`,presentation:r,binding:e.binding,display:i,surface:a,data:a.data,evidence:a.data.evidence,claims:a.data.claims,rationale:a.data.rationale,detailRequested:n.subjectId!==null,subjectId:n.subjectId,readOnly:!0,mutationEnabled:!1})}function pC({currentBinding:e,current:t}){let n=fC(t,e);if(!n)return(0,F.jsx)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":`operate.evidence`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Evidence projection`,title:`Evidence cannot be trusted`,description:`The owner-issued audit display did not pass exact binding and integrity verification.`})});let r=n.detailRequested?n.evidence.filter(e=>Reflect.get(e,`evidenceRefId`)===n.subjectId):n.evidence,i=`${n.surface.eventHead.sequence} · ${n.surface.eventHead.hash??`genesis`}`;return(0,F.jsxs)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":n.detailRequested?`operate.evidence-item`:`operate.evidence`,"data-audit-presentation":n.presentation,children:[(0,F.jsxs)(`ul`,{className:`pc-metrics`,"aria-label":`Evidence`,children:[(0,F.jsx)(Im,{label:`rows`,value:r.length}),n.detailRequested?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Im,{label:`claims`,value:n.claims.length}),(0,F.jsx)(Im,{label:`rationale`,value:n.rationale.length})]})]}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · evidence`,title:n.detailRequested?`Evidence item`:`Evidence`,description:`See what supports or challenges the work.`}),(0,F.jsx)(Lm,{items:[{term:`Event record`,description:i,mono:!0},{term:`View key`,description:n.surface.viewHash,mono:!0}]}),(0,F.jsx)(oC,{presentation:n.presentation}),n.detailRequested&&r.length===0?(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Exact item`,title:`Requested evidence was not returned`,description:`The owner-issued Evidence surface does not contain this subject.`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(cC,{heading:`Evidence`,records:r}),n.detailRequested?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(cC,{heading:`Claims`,records:n.claims}),(0,F.jsx)(cC,{heading:`Rationale`,records:n.rationale})]})]})]})}var mC=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function hC(e){try{let t=z(e);return t.productArea===`operate`&&t.route===`#/operate/history`&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function gC(e,t){let n=hC(e);return e=>{if(!n||!Object.isFrozen(e))return!1;try{let r=ay(e),i=r.payload;if(i.surface!==t.surface||n.eventHead===null||n.viewHash===null||n.cycleId===null||i.eventHead.sequence!==n.eventHead.sequence||i.eventHead.hash!==n.eventHead.hash||i.viewHash!==n.viewHash)return!1;let a=sy(n.eventHead);return a!==null&&(ay(r,Object.freeze({actorId:n.actorId,scopeId:n.scopeId,domainId:n.domainId,domainVersion:n.domainVersion,cycleId:n.cycleId,subjectId:null,surface:t.surface,query:t.query,format:t.format,generatedAt:i.generatedAt,eventHead:a,viewHash:n.viewHash})),!0)}catch{return!1}}}function _C(e){return gC(e,Object.freeze({surface:`history`,query:null,format:null}))}function vC(e,t,n){return V(e)&&e.binding!==null&&e.data!==null&&B(e.binding,t)&&n(e.data)?e.data:null}function yC(e,t){let n=hC(t);if(!n)return null;let r=vC(e,n,_C(n)),i=mC[e.kind];if(!r||i===void 0||r.payload.surface!==`history`||r.payload.status!==i||r.payload.readOnly!==!0)return null;let a=r.payload;return Object.freeze({kind:`history`,presentation:i,binding:e.binding,display:r,surface:a,data:a.data,history:a.data.history,replay:a.data.replay,readOnly:!0,mutationEnabled:!1})}function bC(e){let t=Reflect.get(e,`tail`),n=Reflect.get(e,`finalHead`),r=Reflect.get(e,`parityProof`),i=[];if(typeof t==`object`&&t){let e=Reflect.get(t,`startSequence`),n=Reflect.get(t,`endSequence`),r=Reflect.get(t,`eventCount`);typeof e==`number`&&i.push({key:`Tail start`,value:String(e)}),typeof n==`number`&&i.push({key:`Tail end`,value:String(n)}),typeof r==`number`&&i.push({key:`Event count`,value:String(r)})}if(typeof n==`object`&&n){let e=Reflect.get(n,`sequence`),t=Reflect.get(n,`hash`);typeof e==`number`&&i.push({key:`Final head`,value:String(e)}),typeof t==`string`&&i.push({key:`Final hash`,value:t})}if(typeof r==`object`&&r)for(let e of[`checkpointVerified`,`finalEventHashMatches`,`stateParityVerified`]){let t=Reflect.get(r,e);typeof t==`boolean`&&i.push({key:e,value:t?`true`:`false`})}let a=Reflect.get(e,`liveAccessUsed`);return typeof a==`boolean`&&i.push({key:`Live access used`,value:a?`true`:`false`}),Object.freeze(i)}function xC({currentBinding:e,current:t}){let n=yC(t,e);if(!n)return(0,F.jsx)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":`operate.history`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`History projection`,title:`History cannot be trusted`,description:`The owner-issued audit display did not pass exact binding and integrity verification.`})});let r=bC(n.replay),i=`${n.surface.eventHead.sequence} · ${n.surface.eventHead.hash??`genesis`}`;return(0,F.jsxs)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":`operate.history`,"data-audit-presentation":n.presentation,children:[(0,F.jsx)(`ul`,{className:`pc-metrics`,"aria-label":`History`,children:(0,F.jsx)(Im,{label:`events`,value:n.history.length})}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · history`,title:`History`,description:`See what changed, why it changed, and what happens next.`}),(0,F.jsx)(Lm,{items:[{term:`Event record`,description:i,mono:!0},{term:`View key`,description:n.surface.viewHash,mono:!0}]}),(0,F.jsx)(oC,{presentation:n.presentation}),(0,F.jsx)(cC,{heading:`History`,records:n.history}),(0,F.jsxs)(`section`,{className:`pc-operate__section`,"aria-label":`Replay proof`,children:[(0,F.jsx)(Jp,{headingLevel:2,title:`Replay proof`,count:r.length}),r.length===0?(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Replay`,title:`No replay proof returned`,description:`OpenPlanr returned no checkpoint, tail, head, or parity fields for this Cycle.`}):(0,F.jsx)(Lm,{items:r.map(e=>({term:e.key,description:e.value,mono:!0}))})]})]})}var SC=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function CC(e){try{let t=z(e),n=null;return t.route===`#/operate/outcomes`&&t.subjectId===null?n=`outcomes`:t.subjectId!==null&&t.route===`#/operate/outcomes/${encodeURIComponent(t.subjectId)}`&&(n=`outcome`),t.productArea===`operate`&&n!==null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?Object.freeze({binding:t,surface:n}):null}catch{return null}}function wC(e){let t=CC(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=ay(e),r=n.payload,{binding:i,surface:a}=t;if(r.surface!==a||i.eventHead===null||i.viewHash===null||i.cycleId===null||r.eventHead.sequence!==i.eventHead.sequence||r.eventHead.hash!==i.eventHead.hash||r.viewHash!==i.viewHash)return!1;let o=sy(i.eventHead);return o!==null&&(ay(n,Object.freeze({actorId:i.actorId,scopeId:i.scopeId,domainId:i.domainId,domainVersion:i.domainVersion,cycleId:i.cycleId,subjectId:a===`outcome`?i.subjectId:null,surface:a,query:null,format:null,generatedAt:r.generatedAt,eventHead:o,viewHash:i.viewHash})),!0)}catch{return!1}}}function TC(e,t){let n=CC(t);if(!n||!V(e)||e.binding===null||e.data===null||!B(e.binding,n.binding)||!wC(n.binding)(e.data))return null;let r=SC[e.kind],i=e.data;if(r===void 0||i.payload.surface!==n.surface||i.payload.status!==r||i.payload.readOnly!==!0)return null;if(i.payload.surface===`outcome`){if(n.binding.subjectId===null)return null;let t=i.payload;return Object.freeze({kind:`outcome`,presentation:r,binding:e.binding,display:i,surface:t,data:t.data,outcome:t.data.outcome,learnings:t.data.learnings,subjectId:n.binding.subjectId,readOnly:!0,mutationEnabled:!1})}let a=i.payload;return Object.freeze({kind:`outcomes`,presentation:r,binding:e.binding,display:i,surface:a,data:a.data,domainMetrics:a.data.domainMetrics,outcomes:a.data.outcomes,learnings:a.data.learnings,readOnly:!0,mutationEnabled:!1})}function EC({currentBinding:e,current:t}){let n=TC(t,e);if(!n)return(0,F.jsx)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":`operate.outcomes`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Outcomes projection`,title:`Outcomes cannot be trusted`,description:`The owner-issued audit display did not pass exact binding and integrity verification.`})});let r=`${n.surface.eventHead.sequence} · ${n.surface.eventHead.hash??`genesis`}`;return n.kind===`outcome`?(0,F.jsxs)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":`operate.outcome`,"data-audit-presentation":n.presentation,children:[(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · outcome`,title:`Outcome`,description:`Track what changed and what still needs proof.`}),(0,F.jsx)(Lm,{items:[{term:`Outcome ID`,description:n.subjectId??`Not returned`,mono:!0},{term:`Event record`,description:r,mono:!0},{term:`View key`,description:n.surface.viewHash,mono:!0}]}),(0,F.jsx)(oC,{presentation:n.presentation}),(0,F.jsx)(cC,{heading:`Outcome`,records:[n.outcome]}),(0,F.jsx)(cC,{heading:`Learnings`,records:n.learnings})]}):(0,F.jsxs)(`div`,{className:`op-workspace op-audit pc-operate`,"data-route-kind":`operate.outcomes`,"data-audit-presentation":n.presentation,children:[(0,F.jsxs)(`ul`,{className:`pc-metrics`,"aria-label":`Outcomes`,children:[(0,F.jsx)(Im,{label:`domain metrics`,value:n.domainMetrics.length}),(0,F.jsx)(Im,{label:`outcomes`,value:n.outcomes.length}),(0,F.jsx)(Im,{label:`learnings`,value:n.learnings.length})]}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · outcomes`,title:`Outcomes`,description:`Track results, measurements, and what the team learned.`}),(0,F.jsx)(Lm,{items:[{term:`Event record`,description:r,mono:!0},{term:`View key`,description:n.surface.viewHash,mono:!0}]}),(0,F.jsx)(oC,{presentation:n.presentation}),(0,F.jsx)(cC,{heading:`Domain metrics`,records:n.domainMetrics}),(0,F.jsx)(cC,{heading:`Outcomes`,records:n.outcomes}),(0,F.jsx)(cC,{heading:`Learnings`,records:n.learnings})]})}var DC=Object.freeze({EvidencePage:pC,HistoryPage:xC,OutcomesPage:EC}),OC=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,kC=/^sha256:[a-f0-9]{64}$/u,AC=/^[A-Z][A-Z0-9_]{0,127}$/u,jC=/^xpatch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,MC=new Set([`/status`,`/attention`,`/domainMetrics`,`/cycles`,`/inbox`,`/actions`,`/evidence`,`/claims`,`/rationale`,`/outcomes`,`/learnings`,`/history`,`/replay`,`/allowedActions`,`/omissions`,`/export`]),NC=new WeakMap;function PC(e,t){let n=ue(e,[`sequence`,`hash`],t);if(!Number.isSafeInteger(n.sequence)||n.sequence<0)throw new I(`${t}.sequence`,`expected a non-negative safe integer`);let r=n.sequence,i=n.hash===null?null:L(n.hash,`${t}.hash`,kC);if(r===0!=(i===null))throw new I(t,`sequence and hash are inconsistent`);return Object.freeze({sequence:r,hash:i})}function FC(e,t){let n=ue(e,[`eventHead`,`viewHash`],t);return Object.freeze({eventHead:PC(n.eventHead,`${t}.eventHead`),viewHash:L(n.viewHash,`${t}.viewHash`,kC)})}function IC(e){let t=ue(e,[`actorId`,`projectId`,`scopeId`,`domainId`,`domainVersion`,`generation`],`$.binding`);if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new I(`$.binding.generation`,`expected a non-negative safe integer`);return Object.freeze({actorId:L(t.actorId,`$.binding.actorId`,OC),projectId:L(t.projectId,`$.binding.projectId`,kC),scopeId:L(t.scopeId,`$.binding.scopeId`,OC),domainId:L(t.domainId,`$.binding.domainId`,OC),domainVersion:L(t.domainVersion,`$.binding.domainVersion`,OC),generation:t.generation})}function LC(e,t){if(!Array.isArray(e))throw new I(t,`expected an array`);return Object.freeze(e.map((e,n)=>L(e,`${t}[${n}]`,AC)))}function RC(e,t=`$.payload`){let n=ue(e,[`mutationEnabled`,`reasonCodes`],t),r=R(n.mutationEnabled,`${t}.mutationEnabled`),i=LC(n.reasonCodes,`${t}.reasonCodes`);if(r&&i.length!==0||!r&&i.length===0)throw new I(t,`ready mutation and reason state are inconsistent`);return Object.freeze({mutationEnabled:r,reasonCodes:i})}function zC(e){if(typeof e!=`string`||e.length<1||e.length>240||[...e].some(e=>(e.codePointAt(0)??0)<=31))throw new I(`$.payload.recovery`,`contains invalid recovery text`);return e}function BC(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function VC(e,t){return BC(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function HC(e){return e?.route===`#/operate/inbox`||e?.route.startsWith(`#/operate/inbox/`)?`inbox`:`today`}function UC(e,t){let n=ue(e,[`patchId`,`patchHash`,`from`,`to`,`changedPaths`],`$.payload`),r=FC(n.from,`$.payload.from`),i=FC(n.to,`$.payload.to`);if(!VC(i,t))throw new I(`$.payload`,`patch target does not equal envelope cursor`);if(!Array.isArray(n.changedPaths))throw new I(`$.payload.changedPaths`,`expected an array`);let a=n.changedPaths.map((e,t)=>{if(typeof e!=`string`||!MC.has(e))throw new I(`$.payload.changedPaths[${t}]`,`contains an unsupported path`);return e});if(new Set(a).size!==a.length)throw new I(`$.payload.changedPaths`,`contains duplicate paths`);let o={patchId:L(n.patchId,`$.payload.patchId`,jC),patchHash:L(n.patchHash,`$.payload.patchHash`,kC),from:r,to:i,changedPaths:Object.freeze(a)};return NC.set(o,JSON.stringify(e)),Object.freeze(o)}function WC(e,t=null){let n=ue(ge(e),[`kind`,`schemaVersion`,`event`,`binding`,`cursor`,`payload`],`$`);if(n.kind!==`dashboard-live-event`||n.schemaVersion!==`1.0.0`)throw new I(`$`,`has an unsupported live event contract`);let r=IC(n.binding),i=FC(n.cursor,`$.cursor`),a={kind:`dashboard-live-event`,schemaVersion:`1.0.0`,binding:r,cursor:i};if(n.event===`snapshot`){let e=gb(n.payload),o=e.payload,s=HC(t),c=o.surface===`today`?o.data.activeCycle?.cycleId??null:null;if(o.surface!==s||o.eventHead.sequence!==i.eventHead.sequence||o.eventHead.hash!==i.eventHead.hash||s===`today`&&t!==null&&t.cycleId!==null&&c!==t.cycleId)throw new I(`$.payload`,`snapshot binding or cursor is inconsistent`);let l=Object.freeze({actorId:r.actorId,scopeId:r.scopeId,domainId:r.domainId,domainVersion:r.domainVersion,generatedAt:o.generatedAt,eventHead:o.eventHead,viewHash:i.viewHash,surface:s,subjectId:null,cycleId:t?.cycleId??c,...s===`inbox`?{projectId:r.projectId,generation:r.generation}:{}});try{gb(e,l)}catch{throw new I(`$.payload`,`snapshot binding or cursor is inconsistent`)}return Object.freeze({...a,event:`snapshot`,payload:e})}if(n.event===`patch`){let e=UC(n.payload,i);return Object.freeze({...a,event:`patch`,payload:e})}if(n.event===`ready`)return Object.freeze({...a,event:`ready`,payload:RC(n.payload)});if(n.event===`stale`){let e=ue(n.payload,[`mutationEnabled`,`reasonCodes`,`recovery`],`$.payload`);if(e.mutationEnabled!==!1)throw new I(`$.payload.mutationEnabled`,`stale events disable mutation`);let t=LC(e.reasonCodes,`$.payload.reasonCodes`);if(t.length===0)throw new I(`$.payload.reasonCodes`,`stale events require a reason`);return Object.freeze({...a,event:`stale`,payload:Object.freeze({mutationEnabled:!1,reasonCodes:t,recovery:zC(e.recovery)})})}throw new I(`$.event`,`contains an unsupported event`)}function GC(e){let t=e.identity,n=t.eventHead&&t.viewHash?Object.freeze({eventHead:t.eventHead,viewHash:t.viewHash}):null,r=!1,i=!1,a=!1,o=null,s=null,c=new Map,l=t=>(i||(i=!0,e.onRefetch(t)),Object.freeze({kind:`refetch`,reason:t})),u=e=>e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion,d=d=>{if(r||!e.isCurrent(t))return Object.freeze({kind:`rejected`,reason:`inactive`});if(d.binding.generation!==t.generation)return Object.freeze({kind:`rejected`,reason:`foreign-generation`});if(!u(d.binding))return Object.freeze({kind:`rejected`,reason:`foreign-binding`});if(d.event===`snapshot`){if(n){if(d.cursor.eventHead.sequence<n.eventHead.sequence)return l(`restart-regression`);if(d.cursor.eventHead.sequence>n.eventHead.sequence&&(d.payload.payload.surface!==`inbox`||d.cursor.eventHead.sequence!==n.eventHead.sequence+1))return l(`gap`);if(d.cursor.eventHead.sequence===n.eventHead.sequence&&!VC(d.cursor,n))return l(`divergent-duplicate`)}return a&&n&&VC(d.cursor,n)?o===JSON.stringify(d.payload)?Object.freeze({kind:`duplicate`}):l(`divergent-duplicate`):(n=d.cursor,a=!0,o=JSON.stringify(d.payload),s=JSON.stringify({mutationEnabled:d.payload.payload.mutationEnabled,reasonCodes:d.payload.payload.reasonCodes}),i=!1,c.clear(),e.onSnapshot(d.payload,d.cursor),Object.freeze({kind:`accepted`,event:`snapshot`}))}if(!n)return l(`cursor-mismatch`);if(d.event===`ready`)return VC(d.cursor,n)?s===null||s!==JSON.stringify(d.payload)?l(`state-mismatch`):(e.onReady?.(d.payload),Object.freeze({kind:`accepted`,event:`ready`})):l(`cursor-mismatch`);if(d.event===`stale`)return e.onStale?.(d.payload),l(`stale`);let f=d.payload,p=`${f.to.eventHead.sequence}:${f.to.eventHead.hash}:${f.to.viewHash}`,m=NC.get(f)??JSON.stringify(f);return VC(f.to,n)?c.get(p)===m?Object.freeze({kind:`duplicate`}):l(`divergent-duplicate`):f.to.eventHead.sequence<=n.eventHead.sequence?l(`reordered`):f.to.eventHead.sequence===n.eventHead.sequence+1?VC(f.from,n)?(c.set(p,m),n=f.to,s=null,e.onPatch(f),Object.freeze({kind:`accepted`,event:`patch`})):l(`reordered`):l(`gap`)};return Object.freeze({ingest:d,ingestJson:e=>{try{return d(WC(e,t))}catch{return l(`invalid-event`)}},getCursor:()=>n,markReconciled:(e,t)=>!r&&(n=FC(e,`$.cursor`),s=JSON.stringify(RC(t,`$.state`)),i=!1,a=!1,o=null,c.clear(),!0),dispose:()=>{r=!0}})}function KC(e){let t=new URL(e.origin);if(t.protocol!==`http:`||![`127.0.0.1`,`localhost`].includes(t.hostname)||t.pathname!==`/`||t.search||t.hash)throw new I(`$.origin`,`expected an exact loopback HTTP origin`);let n=new AbortController,r=()=>n.abort();e.signal?.aborted?n.abort(e.signal.reason):e.signal?.addEventListener(`abort`,r,{once:!0});let i=new URL(`/api/operate/events`,t);i.searchParams.set(`scopeId`,e.identity.scopeId),i.searchParams.set(`domainId`,e.identity.domainId),i.searchParams.set(`domainVersion`,e.identity.domainVersion),i.searchParams.set(`generation`,String(e.identity.generation)),HC(e.identity)===`inbox`&&(i.searchParams.set(`projectId`,e.identity.projectId),i.searchParams.set(`surface`,`inbox`));let a={accept:`text/event-stream`,"x-openplanr-actor":e.identity.actorId};e.lastEventId&&(a[`last-event-id`]=e.lastEventId);let o=(async()=>{let t=await(e.fetcher??fetch)(i,{headers:a,signal:n.signal});if(!t.ok||!t.headers.get(`content-type`)?.startsWith(`text/event-stream`)||!t.body)throw new I(`$`,`live stream response is unavailable`);let r=t.body.getReader(),o=new TextDecoder,s=``;try{for(;!n.signal.aborted;){let t=await r.read();if(s+=o.decode(t.value,{stream:!t.done}),s=s.replaceAll(`\r
|
|
57
|
+
`,`
|
|
58
|
+
`).replace(/\r(?!$)/gu,`
|
|
59
|
+
`),t.done&&s.endsWith(`\r`)&&(s=`${s.slice(0,-1)}\n`),s.length>262144)throw new I(`$`,`live frame exceeds limit`);let n=s.indexOf(`
|
|
60
|
+
|
|
61
|
+
`);for(;n>=0;){let t=s.slice(0,n);s=s.slice(n+2);let r=t.split(`
|
|
62
|
+
`),i=r.find(e=>e.startsWith(`event:`))?.slice(6).trim(),a=r.filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
|
|
63
|
+
`);if(a){let t=WC(a,e.identity);if(i&&i!==t.event)throw new I(`$.event`,`SSE name and envelope event differ`);e.reconciler.ingest(t)}n=s.indexOf(`
|
|
64
|
+
|
|
65
|
+
`)}if(t.done){if(s.trim().length>0)throw new I(`$`,`live stream ended with a partial frame`);break}}}finally{r.releaseLock()}})().catch(e=>{if(!n.signal.aborted)throw e instanceof I?e:new I(`$`,`live stream failed safely`)}).finally(()=>e.signal?.removeEventListener(`abort`,r));return Object.freeze({completion:o,close:()=>{n.abort(),e.reconciler.dispose(),e.signal?.removeEventListener(`abort`,r)}})}var qC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},JC=new class{#e=qC;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function YC(e){setTimeout(e,0)}var XC=typeof window>`u`||`Deno`in globalThis;function ZC(){}function QC(e,t){return typeof e==`function`?e(t):e}function $C(e){return typeof e==`number`&&e>=0&&e!==1/0}function ew(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tw(e,t){return typeof e==`function`?e(t):e}function nw(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==iw(o,t.options))return!1}else if(!ow(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function rw(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(aw(t.options.mutationKey)!==aw(a))return!1}else if(!ow(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function iw(e,t){return(t?.queryKeyHashFn||aw)(e)}function aw(e){return JSON.stringify(e,(e,t)=>uw(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ow(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!ow(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!ow(e[r],t[r]))return!1;return!0}return!1}var sw=Object.prototype.hasOwnProperty;function cw(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=lw(e)&&lw(t);if(!r&&!(uw(e)&&uw(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:sw.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=cw(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function lw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function uw(e){if(!dw(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!dw(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function dw(e){return Object.prototype.toString.call(e)===`[object Object]`}function fw(e){return new Promise(t=>{JC.setTimeout(t,e)})}function pw(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:cw(e,t)}function mw(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function hw(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gw=Symbol();function _w(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===gw?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vw(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var yw=()=>XC,bw=()=>yw(),xw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sw=new class extends xw{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Cw=YC;function ww(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Cw,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Tw=ww(),Ew=new class extends xw{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Dw(e){return Math.min(1e3*2**e,3e4)}function Ow(e){return(e??`online`)!==`online`||Ew.isOnline()}var kw=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Aw(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(ZC);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new kw(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Sw.isFocused()&&(e.networkMode===`always`||Ew.isOnline())&&e.canRun(),p=()=>Ow(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(bw()?0:3),a=e.retryDelay??Dw,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),fw(o).then(()=>f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var jw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$C(this.gcTime)&&(this.#e=JC.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bw()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(JC.clearTimeout(this.#e),this.#e=void 0)}};function Mw(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{vw(e,()=>t.signal,()=>n=!0)},u=_w(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?hw:mw;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Pw:Nw,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:Nw(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Nw(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Pw(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Fw=class extends jw{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Rw(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Rw(this.options);e.data!==void 0&&(this.setState(Lw(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=pw(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ZC).catch(ZC):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>tw(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gw||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>tw(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ew(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=_w(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Mw(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Aw({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof kw&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof kw){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Iw(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Lw(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Tw.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Iw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ow(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Lw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Rw(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var zw=class extends jw{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Bw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Aw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Tw.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Bw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Vw=class extends xw{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new zw({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Hw(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Hw(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Hw(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Hw(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Tw.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>rw(t,e))}findAll(e={}){return this.getAll().filter(t=>rw(e,t))}notify(e){Tw.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Tw.batch(()=>Promise.all(e.map(e=>e.continue().catch(ZC))))}};function Hw(e){return e.options.scope?.id}var Uw=class extends xw{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??iw(r,t),a=this.get(i);return a||(a=new Fw({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Tw.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>nw(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>nw(e,t)):t}notify(e){Tw.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Tw.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Tw.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ww=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Uw,this.#t=e.mutationCache||new Vw,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Sw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ew.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tw(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=QC(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Tw.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Tw.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Tw.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=Tw.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ZC).catch(ZC)}invalidateQueries(e,t={}){return Tw.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tw.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ZC)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ZC)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(tw(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(tw(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ZC).catch(ZC)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ZC).catch(ZC)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ew.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(aw(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ow(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(aw(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ow(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=iw(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===gw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Gw=class extends Error{code=`DASHBOARD_STALE_RESPONSE`;constructor(){super(`The dashboard read was superseded by a newer route or binding generation.`),this.name=`DashboardStaleResponseError`}},Kw=class extends Error{code=`DASHBOARD_READ_FAILED`;constructor(){super(`The dashboard read failed safely.`),this.name=`DashboardReadError`}},qw=[`productArea`,`route`,`actorId`,`projectId`,`scopeId`,`domainId`,`domainVersion`,`cycleId`,`subjectId`,`generation`];function Jw(e,t){return qw.every(n=>e[n]===t[n])}function Yw(e){return JSON.stringify(Se(e))}function Xw(){let e=new Ww({defaultOptions:{queries:{gcTime:1/0,retry:!1,staleTime:0}}}),t=new Map,n=new Map,r=null,i=!1,a=()=>{for(let e of t.values())e.abort();t.clear(),n.clear(),e.cancelQueries()},o=t=>{if(i)throw Error(`Dashboard query client is disposed.`);let n=z(t);if(r&&B(r,n))return r;let o=r;r=n,a();for(let t of e.getQueryCache().findAll()){let r=Array.isArray(t.queryKey)&&t.queryKey[0]===`dashboard-projection`?t.queryKey[1]:null;if(r)try{Jw(z(r),n)||e.removeQueries({queryKey:t.queryKey,exact:!0})}catch{e.removeQueries({queryKey:t.queryKey,exact:!0})}}return o&&Jw(o,n)&&e.invalidateQueries({queryKey:[`dashboard-projection`],refetchType:`none`}),n};return Object.freeze({queryClient:e,activate:o,read:(i,a,s)=>{let c=o(i),l=Yw(c),u=n.get(l);if(u)return u;let d=new AbortController;t.set(l,d);let f=Promise.resolve().then(()=>a({identity:c,signal:d.signal})).then(t=>{let n=s(t);if(d.signal.aborted||!r||!B(c,r))throw new Gw;return e.setQueryData(Se(c),n),n}).catch(e=>{throw e instanceof Gw?e:d.signal.aborted||!r||!B(c,r)?new Gw:new Kw}).finally(()=>{t.get(l)===d&&t.delete(l),n.get(l)===f&&n.delete(l)});return n.set(l,f),f},getCurrentIdentity:()=>r,getData:t=>e.getQueryData(Se(t)),inFlightCount:()=>n.size,dispose:()=>{i||(i=!0,a(),r=null,e.clear())}})}var Zw=Object.freeze({checking:`Checking the current durable projection.`,changed:`Durable state changed. Controls remain unavailable until the bound view is current.`,failed:`The current projection could not be reconciled safely.`}),Qw=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;function $w(e){let t=e??`default`;if(!Qw.test(t))throw Error(`Bound projection source key is invalid.`);return t}function eT(e=()=>void 0,t=()=>Promise.reject(Error(Zw.failed))){return Object.freeze({phase:`idle`,identity:null,data:null,mutationEnabled:!1,reason:null,refetch:e,reconcile:t})}function tT(e,t){return e.productArea===t.productArea&&e.route===t.route&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.subjectId===t.subjectId&&e.generation===t.generation}function nT(){let e=Xw(),t=new Set,n=eT(),r=null,i=null,a=null,o=null,s=!1,c=0,l=0,u=0,d=!1,f=0,p=0,m=!1,h=e=>{if(s||!r)return;if(o){m=!0,_({phase:n.data===null?`stale`:`refreshing`,identity:n.identity??r.identity,data:n.data,mutationEnabled:!1,reason:Zw.changed});return}b(r.identity),_({phase:n.data===null?`stale`:`refreshing`,identity:n.identity??r.identity,data:n.data,mutationEnabled:!1,reason:Zw.changed});let t=p;o=C(!0).finally(()=>{t===p&&(o=null,m&&(m=!1,h(`patch`)))})},g=()=>h(`patch`),_=e=>{n=Object.freeze({...e,refetch:g,reconcile:S});for(let e of t)e()},v=e=>!s&&r!==null&&B(e,r.identity),y=()=>{f+=1,i?.close(),i=null,a?.dispose(),a=null},b=t=>{u+=1,e.dispose(),e=Xw(),e.activate(t)},x=()=>{p+=1,o=null,m=!1},S=async()=>{let e=r?.identity??null;if(s||e===null)throw Error(Zw.failed);for(h(`patch`);o!==null;){let e=o;if(await e,e===o)break}if(s||r===null||!B(e,r.identity)||n.phase!==`ready`||n.identity===null||n.data===null||!tT(n.identity,e))throw Error(Zw.failed);return n},C=async t=>{let i=r;if(!i||s)return;let o=++u,c=n.identity!==null&&(B(n.identity,i.identity)||t&&tT(n.identity,i.identity))?n.data:null,l=c===null?i.identity:n.identity;_({phase:t&&c!==null?`refreshing`:`loading`,identity:l,data:c,mutationEnabled:!1,reason:t?Zw.changed:Zw.checking});try{let t=await e.read(i.identity,i.read,i.validate);if(!v(i.identity)||o!==u)return;let n=i.identity,r=!1;if(i.live){let e=i.live.reconcile(t),o=a?.getCursor();if(o&&(e.cursor.eventHead.sequence<o.eventHead.sequence||e.cursor.eventHead.sequence===o.eventHead.sequence&&(e.cursor.eventHead.hash!==o.eventHead.hash||e.cursor.viewHash!==o.viewHash)))throw new Gw;if(a){if(!a.markReconciled(e.cursor,{mutationEnabled:e.mutationEnabled,reasonCodes:e.reasonCodes}))throw new Gw}else if(!d)throw new Gw;n=z({...i.identity,eventHead:e.cursor.eventHead,viewHash:e.cursor.viewHash}),r=e.mutationEnabled}_({phase:i.live&&d?`stale`:`ready`,identity:n,data:t,mutationEnabled:!d&&r,reason:d?Zw.failed:null})}catch{if(!v(i.identity)||o!==u)return;_({phase:`stale`,identity:l,data:c,mutationEnabled:!1,reason:Zw.failed})}},w=e=>{if(d=!1,!e.live)return;let t=++f;a=GC({identity:e.identity,isCurrent:()=>v(e.identity),onSnapshot:(t,n)=>{if(v(e.identity))try{let r=e.validate(t);x(),b(e.identity),_({phase:`refreshing`,identity:z({...e.identity,eventHead:n.eventHead,viewHash:n.viewHash}),data:r,mutationEnabled:!1,reason:Zw.checking})}catch{h(`invalid-event`)}},onPatch:()=>h(`patch`),onReady:t=>{v(e.identity)&&n.data!==null&&!d&&_({...n,phase:`ready`,mutationEnabled:t.mutationEnabled,reason:null})},onStale:()=>{v(e.identity)&&_({phase:n.data===null?`stale`:`refreshing`,identity:n.identity??e.identity,data:n.data,mutationEnabled:!1,reason:Zw.changed})},onRefetch:h});try{i=KC({origin:e.live.origin,identity:e.identity,reconciler:a,fetcher:e.live.fetcher,lastEventId:e.live.lastEventId})}catch{d=!0,a.dispose(),a=null,i=null;return}let r=()=>{t===f&&v(e.identity)&&(d=!0,x(),_({phase:`stale`,identity:n.identity??e.identity,data:n.data,mutationEnabled:!1,reason:Zw.failed}))};i.completion.then(r,r)},T=t=>{if(s)throw Error(`Bound projection controller is disposed.`);let n=z(t.identity),i=$w(t.sourceKey),a=r?.sourceKey===i&&r.live?.origin===t.live?.origin&&r.live?.lastEventId===t.live?.lastEventId;r&&B(r.identity,n)&&a||(y(),x(),r&&B(r.identity,n)&&b(n),r={...t,identity:n,sourceKey:i},e.activate(n),w(r),C(!1))};return Object.freeze({activate:T,subscribe:e=>(t.add(e),()=>t.delete(e)),getSnapshot:()=>n,isActiveIdentity:e=>r!==null&&B(r.identity,e),retain:t=>{let n=++l;return c+=1,T(t),()=>{c=Math.max(0,c-1),queueMicrotask(()=>{c===0&&n===l&&!s&&(y(),x(),e.dispose(),e=Xw(),r=null,o=null)})}},dispose:()=>{s||(s=!0,y(),x(),e.dispose(),r=null,o=null,t.clear(),n=eT())}})}function rT(e){let[t]=(0,v.useState)(nT),{identity:n,read:r,sourceKey:i=`default`,validate:a,live:o}=e,s=JSON.stringify(n),c=(0,v.useMemo)(()=>z(JSON.parse(s)),[s]),l=o?.origin,u=o?.fetcher,d=o?.lastEventId,f=o?.reconcile,p=o!==void 0,m=(0,v.useRef)(r),h=(0,v.useRef)(a),g=(0,v.useRef)(u),_=(0,v.useRef)(f);m.current=r,h.current=a,g.current=u,_.current=f;let y=(0,v.useCallback)(e=>m.current(e),[]),b=(0,v.useCallback)(e=>h.current(e),[]),x=(0,v.useCallback)((...e)=>(g.current??fetch)(...e),[]),S=(0,v.useCallback)(e=>{let t=_.current;if(!t)throw Error(`Bound projection live reconciler is unavailable.`);return t(e)},[]),C=(0,v.useMemo)(()=>p&&l!==void 0?Object.freeze({origin:l,fetcher:x,lastEventId:d,reconcile:S}):void 0,[p,d,l,x,S]),w=(0,v.useMemo)(()=>Object.freeze({identity:c,sourceKey:i,read:y,validate:b,live:C}),[c,i,C,y,b]);(0,v.useEffect)(()=>t.retain(w),[w,t]);let T=(0,v.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getSnapshot);return T.identity===null||!t.isActiveIdentity(c)||!tT(T.identity,c)?Object.freeze({phase:`loading`,identity:c,data:null,mutationEnabled:!1,reason:Zw.checking,refetch:T.refetch,reconcile:T.reconcile}):T}var iT=/^sha256:[a-f0-9]{64}$/u;function aT(e,t){return e.kind===`review`&&e.cycleId===t&&iT.test(e.readActionDigest)&&e.deepLink===`#/operate/cycles/${encodeURIComponent(e.cycleId)}/reviews/${encodeURIComponent(e.reviewId)}`}function oT(e,t){let n=e.inbox.flatMap(e=>{let n=e.navigationLocator;return n&&aT(n,t)?[n]:[]});return n.length===1?n[0]:null}var sT=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function cT(e){return Object.freeze(e===`business`?{domain:`business`,title:`Business Cycle`,assignment:`Business assignment`,outcome:`Business outcome`}:e===`software`?{domain:`repository`,title:`Repository Cycle`,assignment:`Repository assignment`,outcome:`Repository outcome`}:{domain:`operating`,title:`Operating Cycle`,assignment:`Operating assignment`,outcome:`Operating outcome`})}function lT(e){try{let t=z(e);return t.productArea===`operate`&&t.cycleId!==null&&t.subjectId===t.cycleId&&t.route===`#/operate/cycles/${encodeURIComponent(t.cycleId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function uT(e){let t=lT(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=Sb(e),r=n.payload;return t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(Sb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,surface:`cycle`,subjectId:t.subjectId,cycleId:t.cycleId})),!0)}catch{return!1}}}function dT(e,t,n){if(!V(e)||e.binding===null||e.data===null||!B(e.binding,t)||!uT(t)(e.data))return null;let r=e.data,i=r.payload,a=sT[e.kind];if(a===void 0||i.status!==a||i.mutationEnabled!==!1||e.mutationEnabled)return null;let o=i.data.cycle;return Object.freeze({kind:`cycle`,source:n,presentation:a,binding:e.binding,display:r,workspace:i,vocabulary:cT(i.domainId),cycle:o,progress:i.data.progress,stages:o.stages,assignments:o.assignments,dependencies:o.dependencies,blockers:o.blockers,currentStage:o.stages.find(e=>e.state===`current`)??null,persistentWork:i.data.persistentWork,replay:i.data.replay,verification:i.data.verification,allowedActions:i.data.allowedActions,mutationEnabled:!1})}function fT(e,t){let n=lT(t);if(!n)return null;if(e.resumable){let t=dT(e.resumable.workspace,n,`durable-resume`);if(t)return t}return dT(e.current.workspace,n,`current`)}function pT(e){let t=e.replace(/([a-z0-9])([A-Z])/gu,`$1 $2`).replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function mT(e){return!e||!Array.isArray(e.findings)||!Array.isArray(e.dissent)?null:e}function hT(e){return!e||!Array.isArray(e.decisions)?null:e}function gT(e){return e?(e.kind===`omitted`||e.kind,e.reason):`No absence was returned.`}function _T({seat:e,index:t}){let n=e.artifact!==null;return(0,F.jsxs)(`article`,{className:`op-executive-seat`,"data-seat-role-id":e.roleId,"data-seat-role-kind":e.roleKind,"data-seat-state":e.assignmentState??`absent`,"aria-labelledby":`op-executive-seat-${t}-title`,children:[(0,F.jsxs)(`header`,{className:`op-executive-seat__header`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:pT(e.roleKind)}),(0,F.jsx)(`h3`,{id:`op-executive-seat-${t}-title`,children:e.label}),(0,F.jsx)(`p`,{children:e.assignmentState?pT(e.assignmentState):`Not issued`})]}),(0,F.jsxs)(`dl`,{className:`op-executive-seat__facts`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Report`}),(0,F.jsx)(`dd`,{children:n?`Submitted`:`Not submitted`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`State`}),(0,F.jsx)(`dd`,{children:e.assignmentState?pT(e.assignmentState):`Not issued`})]}),e.absence?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Typed absence`}),(0,F.jsx)(`dd`,{children:gT(e.absence)})]}):null]}),(0,F.jsxs)(`details`,{className:`op-executive-seat__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-executive-seat__facts`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Role ID`}),(0,F.jsxs)(`dd`,{children:[(0,F.jsx)(`code`,{children:e.roleId}),` · v`,e.roleVersion]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Assignment ID`}),(0,F.jsx)(`dd`,{children:e.assignmentId?(0,F.jsx)(`code`,{children:e.assignmentId}):`Not issued`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Artifact`}),(0,F.jsx)(`dd`,{children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`code`,{children:e.artifact.artifactId}),(0,F.jsxs)(`span`,{className:`op-executive-seat__hash`,children:[`Raw `,(0,F.jsx)(`code`,{children:e.artifact.rawHash})]}),(0,F.jsxs)(`span`,{className:`op-executive-seat__hash`,children:[`Canonical `,(0,F.jsx)(`code`,{children:e.artifact.canonicalHash})]})]}):`No accepted artifact was returned.`})]})]})]})]})}function vT({findings:e}){return e?(0,F.jsxs)(`section`,{className:`op-executive-challenger`,"aria-labelledby":`op-executive-challenger-title`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Independent challenge`}),(0,F.jsx)(`h2`,{id:`op-executive-challenger-title`,children:`Challenger findings`})]}),(0,F.jsx)(`p`,{children:`The Challenger tests the board's assumptions independently.`})]}),e.findings.length>0?(0,F.jsx)(`ul`,{className:`op-executive-claims`,children:e.findings.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:e.title}),(0,F.jsx)(`p`,{children:e.statement}),(0,F.jsxs)(`p`,{children:[pT(e.severity),` severity · `,pT(e.state)]}),(0,F.jsxs)(`details`,{className:`op-executive-claim__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:e.findingId}),` · `,(0,F.jsx)(`code`,{children:e.findingType})]})]},`${e.findingId}:${t}`))}):(0,F.jsx)(`p`,{children:`No Challenger finding was returned.`}),e.dissent.length>0?(0,F.jsxs)(`div`,{className:`op-executive-dissent`,children:[(0,F.jsx)(`h3`,{children:`Dissent`}),(0,F.jsx)(`ul`,{children:e.dissent.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{children:e.statement}),(0,F.jsxs)(`small`,{children:[` Resolve when `,e.resolutionCondition]})]},`${e.sourceArtifactId}:${e.localDissentId}:${t}`))})]}):null]}):null}function yT({synthesis:e}){return e?(0,F.jsxs)(`section`,{className:`op-executive-chair`,"aria-labelledby":`op-executive-chair-title`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Evidence-bound synthesis`}),(0,F.jsx)(`h2`,{id:`op-executive-chair-title`,children:`Chair synthesis`})]}),(0,F.jsx)(`p`,{children:`The Chair brings the reports together. Any next step still needs review.`})]}),e.decisions.length>0?(0,F.jsx)(`div`,{className:`op-executive-decisions`,children:e.decisions.map((e,t)=>(0,F.jsxs)(`article`,{children:[(0,F.jsx)(`h3`,{children:e.title??`Untitled decision`}),e.question?(0,F.jsx)(`p`,{children:e.question}):null,e.outcome?(0,F.jsx)(`p`,{children:e.outcome}):null,e.rationale?(0,F.jsx)(`p`,{children:e.rationale}):null,e.actionHypotheses.length>0?(0,F.jsx)(`ul`,{children:e.actionHypotheses.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:e.title??`Proposed action`}),e.expectedResult?(0,F.jsx)(`span`,{children:e.expectedResult}):null]},`${e.title??`action`}:${t}`))}):null]},`${e.title??`decision`}:${t}`))}):(0,F.jsx)(`p`,{children:`No Chair decision was returned.`}),e.unresolvedGaps.length>0?(0,F.jsxs)(`div`,{className:`op-executive-gaps`,children:[(0,F.jsx)(`h3`,{children:`Unresolved gaps`}),(0,F.jsx)(`ul`,{children:e.unresolvedGaps.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{children:e.reason}),(0,F.jsxs)(`details`,{className:`op-executive-gap__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:e.kind===`role`?e.roleId:e.requirementId}),` ·`,` `,(0,F.jsx)(`code`,{children:e.absenceCode})]})]},`${e.kind}:${e.kind===`role`?e.roleId:e.requirementId}:${t}`))})]}):null,e.dissent.length>0?(0,F.jsxs)(`div`,{className:`op-executive-dissent`,children:[(0,F.jsx)(`h3`,{children:`Preserved dissent`}),(0,F.jsx)(`ul`,{children:e.dissent.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{children:e.statement}),(0,F.jsxs)(`small`,{children:[` Resolve when `,e.resolutionCondition]})]},`${e.sourceArtifactId}:${e.localDissentId}:${t}`))})]}):null]}):null}function bT({model:e}){let t=e.board;return(0,F.jsxs)(`section`,{className:`op-executive-board`,"aria-labelledby":`op-executive-board-title`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Issued executive board`}),(0,F.jsx)(`h2`,{id:`op-executive-board-title`,children:`Executive seats`})]}),(0,F.jsx)(`p`,{children:`See the perspectives that informed this cycle.`})]}),(0,F.jsx)(`div`,{className:`op-executive-board__seats`,children:t.seats.map((e,t)=>(0,F.jsx)(_T,{seat:e,index:t},`${e.roleId}:${t}`))}),t.challengerFindings?(0,F.jsx)(vT,{findings:mT(t.challengerFindings)}):null,t.chairSynthesis?(0,F.jsx)(yT,{synthesis:hT(t.chairSynthesis)}):null]})}function xT(e){try{let t=z(e);return t.productArea===`operate`&&t.domainId===`business`&&t.cycleId!==null&&t.subjectId===t.cycleId&&t.route===`#/operate/cycles/${encodeURIComponent(t.cycleId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function ST(e){let t=xT(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=Ob(e),r=n.payload;return t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(Ob(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,subjectId:t.subjectId,cycleId:t.cycleId})),r.data.executiveBoard.seats.every(e=>e.roleId!==e.label&&typeof e.label==`string`))}catch{return!1}}}function CT(e,t){if(xT(t)===null||!V(e)||e.binding===null||e.data===null||!B(e.binding,t)||!ST(t)(e.data)||e.mutationEnabled)return null;let n=e.data,r=n.payload;return r.mutationEnabled===!1?Object.freeze({kind:`executive-board`,binding:e.binding,display:n,board:r.data.executiveBoard,mutationEnabled:!1}):null}function wT(e,t,n){return e.vocabulary.domain===`business`?t?CT(t,n)||Object.freeze({kind:`incompatible`}):Object.freeze({kind:`unavailable`,title:`Executive board not yet issued`,description:`The owner has not issued a verified executive board display for this business Cycle.`}):Object.freeze({kind:`hidden`})}function TT(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ET(e){if(e===`normal`)return`On track`;let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function DT(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function OT({stages:e,health:t,eyebrow:n=`Active lifecycle`,title:r,labelledBy:i=`op-operating-spine-title`}){let a=e.find(e=>e.state===`current`);return(0,F.jsxs)(`section`,{className:`op-cycle-spine`,"aria-labelledby":i,children:[(0,F.jsxs)(`div`,{className:`op-cycle-spine__heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:n}),(0,F.jsx)(`h2`,{id:i,children:r??(a?TT(a.id):ET(t))})]}),(0,F.jsx)(`p`,{children:ET(t)})]}),(0,F.jsx)(`ol`,{"aria-label":`Observe through Learn operating spine`,children:e.map((e,t)=>(0,F.jsxs)(`li`,{"data-projection-state":e.state,"aria-current":e.state===`current`?`step`:void 0,children:[(0,F.jsx)(`span`,{"aria-hidden":`true`,children:String(t+1).padStart(2,`0`)}),(0,F.jsx)(`strong`,{children:TT(e.id)}),(0,F.jsx)(`small`,{children:e.reason??DT(e.state)})]},`${e.id}:${t}`))})]})}function kT(e){let t=e.replace(/([a-z0-9])([A-Z])/gu,`$1 $2`).replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function AT(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function jT({values:e,empty:t,className:n}){return e.length>0?(0,F.jsx)(`ul`,{className:n,children:e.map((e,t)=>(0,F.jsx)(`li`,{children:(0,F.jsx)(`code`,{children:e})},`${e}:${t}`))}):(0,F.jsx)(`p`,{children:t})}function MT({model:e}){return(0,F.jsxs)(`section`,{className:`op-cycle-stages`,"aria-labelledby":`op-cycle-stages-title`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Cycle progress`}),(0,F.jsx)(`h2`,{id:`op-cycle-stages-title`,children:`What is happening now`})]}),(0,F.jsx)(`p`,{children:`Open a stage to inspect only its returned inputs, outputs, gates, gaps, and uncertainty.`})]}),(0,F.jsx)(`div`,{className:`op-cycle-stages__ledger`,children:e.stages.map((e,t)=>(0,F.jsxs)(`details`,{className:`op-cycle-stage`,open:e.state===`current`,"data-stage-state":e.state,children:[(0,F.jsxs)(`summary`,{children:[(0,F.jsx)(`span`,{"aria-hidden":`true`,children:String(t+1).padStart(2,`0`)}),(0,F.jsx)(`strong`,{children:TT(e.id)}),(0,F.jsx)(`small`,{children:e.reason??kT(e.state)}),(0,F.jsx)(`span`,{className:`op-cycle-stage__status`,children:kT(e.state)})]}),(0,F.jsxs)(`div`,{className:`op-cycle-stage__overview`,children:[(0,F.jsx)(`span`,{children:AT(e.inputArtifactIds.length,`input`)}),(0,F.jsx)(`span`,{children:AT(e.outputArtifactIds.length,`output`)}),(0,F.jsx)(`span`,{children:AT(e.gates.length,`gate`)}),(0,F.jsx)(`span`,{children:AT(e.evidenceGapIds.length,`evidence gap`)}),(0,F.jsx)(`span`,{children:AT(e.uncertaintyIds.length,`uncertainty`,`uncertainties`)}),(0,F.jsx)(`span`,{children:AT(e.persistentActionIds.length,`persistent action`)})]}),(0,F.jsxs)(`details`,{className:`op-cycle-stage__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`div`,{className:`op-cycle-stage__body`,children:[(0,F.jsxs)(`section`,{"aria-labelledby":`op-cycle-stage-${t}-inputs`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-stage-${t}-inputs`,children:`Inputs`}),(0,F.jsx)(jT,{values:e.inputArtifactIds,empty:`No inputs were returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-cycle-stage-${t}-outputs`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-stage-${t}-outputs`,children:`Outputs`}),(0,F.jsx)(jT,{values:e.outputArtifactIds,empty:`No outputs were returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-cycle-stage-${t}-gates`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-stage-${t}-gates`,children:`Gates`}),e.gates.length>0?(0,F.jsx)(`ul`,{children:e.gates.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:kT(e.kind)}),` `,(0,F.jsx)(`code`,{children:e.subjectId}),` `,(0,F.jsx)(`span`,{children:kT(e.state)})]},`${e.kind}:${e.subjectId}:${t}`))}):(0,F.jsx)(`p`,{children:`No gates were returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-cycle-stage-${t}-blockers`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-stage-${t}-blockers`,children:`Blockers and uncertainty`}),(0,F.jsxs)(`div`,{className:`op-cycle-stage__signals`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h4`,{children:`Evidence gaps`}),(0,F.jsx)(jT,{values:e.evidenceGapIds,empty:`No evidence gaps were returned.`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h4`,{children:`Uncertainty`}),(0,F.jsx)(jT,{values:e.uncertaintyIds,empty:`No uncertainty was returned.`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h4`,{children:`Persistent actions`}),(0,F.jsx)(jT,{values:e.persistentActionIds,empty:`No persistent actions were returned for this stage.`})]})]})]})]})]})]},`${e.id}:${t}`))})]})}function NT({model:e}){return(0,F.jsxs)(`section`,{className:`op-cycle-ownership`,"aria-labelledby":`op-cycle-ownership-title`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`People and dependencies`}),(0,F.jsx)(`h2`,{id:`op-cycle-ownership-title`,children:`Work in this cycle`})]}),(0,F.jsx)(`p`,{children:`See who owns the work, what it depends on, and what is blocking progress.`})]}),e.assignments.length>0?(0,F.jsx)(`ol`,{className:`op-cycle-assignments`,"aria-label":`Cycle assignments`,children:e.assignments.map((t,n)=>(0,F.jsxs)(`li`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{children:String(n+1).padStart(2,`0`)}),(0,F.jsx)(`div`,{children:(0,F.jsx)(`strong`,{children:t.title??e.vocabulary.assignment})})]}),(0,F.jsxs)(`dl`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Role`}),(0,F.jsx)(`dd`,{children:t.role?kT(t.role):`Not returned`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Owner`}),(0,F.jsx)(`dd`,{children:t.ownerLabel??`Not returned`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`State`}),(0,F.jsx)(`dd`,{children:kT(t.state)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Due`}),(0,F.jsx)(`dd`,{children:t.dueAt??`Not returned`})]})]}),(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`div`,{className:`op-cycle-assignment__detail`,children:[(0,F.jsxs)(`section`,{children:[(0,F.jsx)(`h3`,{children:`Assignment ID`}),(0,F.jsx)(`code`,{children:t.assignmentId})]}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(`h3`,{children:`Dependencies`}),t.dependencies.length>0?(0,F.jsx)(`ul`,{children:t.dependencies.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`code`,{children:e.assignmentId}),` ·`,` `,e.state??`state not returned`,` ·`,` `,e.resolved?`resolved`:`unresolved`]},`${e.assignmentId}:${t}`))}):(0,F.jsx)(`p`,{children:`No dependency was returned.`})]}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(`h3`,{children:`Blockers`}),(0,F.jsx)(jT,{values:t.blockers,empty:`No blocker was returned.`})]}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(`h3`,{children:`Artifacts`}),(0,F.jsx)(`p`,{children:`Inputs`}),(0,F.jsx)(jT,{values:t.inputArtifactIds,empty:`No input Artifact was returned.`}),(0,F.jsx)(`p`,{children:`Outputs`}),(0,F.jsx)(jT,{values:t.outputArtifactIds,empty:`No output Artifact was returned.`})]}),t.next?(0,F.jsxs)(`p`,{children:[`Next step: `,(0,F.jsx)(`strong`,{children:t.next.label}),` `,(0,F.jsx)(`code`,{children:t.next.tool})]}):null]})]})]},`${t.assignmentId}:${n}`))}):(0,F.jsx)(`p`,{className:`op-cycle-empty-line`,children:`No assignment was returned for this Cycle.`}),(0,F.jsxs)(`div`,{className:`op-cycle-relations`,children:[(0,F.jsxs)(`section`,{"aria-labelledby":`op-cycle-dependencies-title`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-dependencies-title`,children:`Dependency graph`}),e.dependencies.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`p`,{children:[AT(e.dependencies.length,`dependency`,`dependencies`),` in this cycle.`]}),(0,F.jsxs)(`details`,{className:`op-cycle-relations__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`ol`,{children:e.dependencies.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:kT(e.subjectKind)}),` `,(0,F.jsx)(`code`,{children:e.subjectId}),(0,F.jsx)(`ul`,{children:e.dependsOn.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`code`,{children:e.assignmentId??e.actionId}),` ·`,` `,e.state?kT(e.state):`State not returned`,` ·`,` `,e.resolved?`Resolved`:`Unresolved`]},`${e.assignmentId??e.actionId??`dependency`}:${t}`))})]},`${e.subjectKind}:${e.subjectId}:${t}`))})]})]}):(0,F.jsx)(`p`,{children:`No dependencies were returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-cycle-blockers-title`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-blockers-title`,children:`Cycle blockers`}),e.blockers.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`p`,{children:[AT(e.blockers.length,`blocker`),` need attention.`]}),(0,F.jsxs)(`details`,{className:`op-cycle-relations__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`ol`,{children:e.blockers.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:kT(e.subjectKind)}),` `,(0,F.jsx)(`code`,{children:e.subjectId}),(0,F.jsx)(jT,{values:e.blockingSubjectIds,empty:`No blocking subject was returned.`})]},`${e.subjectKind}:${e.subjectId}:${t}`))})]})]}):(0,F.jsx)(`p`,{children:`No blockers are currently returned.`})]})]})]})}function PT({model:e}){let t=[...e.persistentWork.findings,...e.persistentWork.decisions,...e.persistentWork.actions];return(0,F.jsxs)(`section`,{className:`op-cycle-persistent`,"aria-labelledby":`op-cycle-persistent-title`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Beyond Cycle closure`}),(0,F.jsx)(`h2`,{id:`op-cycle-persistent-title`,children:`Persistent work`})]}),(0,F.jsx)(`p`,{children:`Closure does not complete or delete the work this Cycle created or touched.`})]}),t.length>0?(0,F.jsx)(`ol`,{className:`op-cycle-persistent__items`,children:t.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{children:kT(e.kind)}),(0,F.jsx)(`strong`,{children:kT(e.state)}),(0,F.jsx)(`small`,{children:AT(e.relations.length,`related record`)}),(0,F.jsxs)(`details`,{className:`op-cycle-persistent__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:e.subjectId}),(0,F.jsx)(jT,{values:e.relations,empty:`No related records were returned.`})]})]},`${e.kind}:${e.subjectId}:${t}`))}):(0,F.jsx)(`p`,{className:`op-cycle-empty-line`,children:`No persistent Finding, Decision, or Action was returned.`}),(0,F.jsxs)(`div`,{className:`op-cycle-outcomes`,children:[(0,F.jsxs)(`section`,{children:[(0,F.jsx)(`h3`,{children:`Outcomes`}),e.persistentWork.outcomes.length>0?(0,F.jsx)(`ol`,{children:e.persistentWork.outcomes.map((e,t)=>(0,F.jsxs)(`li`,{children:[e.deepLink?(0,F.jsx)(`a`,{href:e.deepLink,children:kT(e.status)}):(0,F.jsx)(`strong`,{children:kT(e.status)}),(0,F.jsxs)(`details`,{className:`op-cycle-outcome__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:e.outcomeId})]})]},`${e.outcomeId}:${t}`))}):(0,F.jsx)(`p`,{children:`No Outcome was returned.`})]}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(`h3`,{children:`Learnings`}),e.persistentWork.learnings.length>0?(0,F.jsx)(`ol`,{children:e.persistentWork.learnings.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:e.statement}),(0,F.jsxs)(`details`,{className:`op-cycle-outcome__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:e.learningId})]})]},`${e.learningId}:${t}`))}):(0,F.jsx)(`p`,{children:`No Learning was returned.`})]})]})]})}function FT({model:e}){let t=e.replay.checkpoint;return(0,F.jsxs)(`aside`,{className:`op-cycle-proof`,"aria-labelledby":`op-cycle-proof-title`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`History and verification`}),(0,F.jsx)(`h2`,{id:`op-cycle-proof-title`,children:`Confidence in this cycle`}),(0,F.jsxs)(`section`,{className:`op-cycle-verification`,"data-verification":e.verification.status,children:[(0,F.jsx)(`h3`,{children:kT(e.verification.status)}),(0,F.jsx)(`p`,{children:e.verification.status===`unverified`?`Required proof is missing or incomplete. This Cycle is not presented as verified.`:e.verification.status===`not-required`?`The canonical projection returned no required verification.`:`The canonical projection returned complete affirmative verification proof.`}),e.verification.reasonCodes.length>0?(0,F.jsxs)(`details`,{className:`op-cycle-verification__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(jT,{values:e.verification.reasonCodes,empty:`No reason codes were returned.`})]}):null]}),(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-proof__facts`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Final head`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.replay.finalHead.sequence})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Tail events`}),(0,F.jsx)(`dd`,{children:e.replay.tail.eventCount})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Checkpoint`}),(0,F.jsx)(`dd`,{children:t?`returned`:`not returned`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Checkpoint verified`}),(0,F.jsx)(`dd`,{children:e.replay.parityProof.checkpointVerified?`yes`:`no`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Final hash matches`}),(0,F.jsx)(`dd`,{children:e.replay.parityProof.finalEventHashMatches?`yes`:`no`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`State parity`}),(0,F.jsx)(`dd`,{children:e.replay.parityProof.stateParityVerified?`yes`:`no`})]})]}),t?(0,F.jsxs)(`div`,{className:`op-cycle-proof__checkpoint`,children:[(0,F.jsx)(`time`,{dateTime:t.createdAt,children:t.createdAt}),(0,F.jsx)(`code`,{children:t.runtimeStateHash}),(0,F.jsx)(`code`,{children:t.eventReplayIndexHash}),(0,F.jsx)(`span`,{children:t.recoveryVersion})]}):null]}),(0,F.jsxs)(`section`,{className:`op-cycle-read-actions`,"aria-labelledby":`op-cycle-read-actions-title`,children:[(0,F.jsx)(`h3`,{id:`op-cycle-read-actions-title`,children:`Available actions`}),(0,F.jsx)(`ul`,{children:e.allowedActions.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:e.label}),(0,F.jsx)(`span`,{children:kT(e.effect)}),(0,F.jsxs)(`details`,{className:`op-cycle-read-actions__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`code`,{children:e.tool})]})]},`${e.tool}:${t}`))}),(0,F.jsx)(`p`,{children:`Action details are available only when the current cycle allows them.`})]})]})}function IT({model:e,currentBinding:t,executiveBoard:n}){let r=wT(e,n,t);return r.kind===`hidden`?null:r.kind===`unavailable`?(0,F.jsx)(`section`,{className:`op-executive-board op-executive-board--unavailable`,"aria-live":`polite`,children:(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Executive board`,title:r.title,description:r.description})}):r.kind===`incompatible`?(0,F.jsx)(`section`,{className:`op-executive-board op-executive-board--incompatible`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Executive board`,title:`Executive board cannot be trusted`,description:`The owner-issued executive board display did not pass exact binding and integrity verification.`})}):(0,F.jsx)(bT,{model:r})}function LT({currentBinding:e,sources:t,reviewNavigation:n=null}){let r=fT(t,e);if(!r)return(0,F.jsx)(`div`,{className:`op-workspace op-cycle-detail pc-operate`,"data-route-kind":`operate.cycle`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Cycle projection`,title:`Cycle cannot be trusted`,description:`The owner-issued workspace did not pass exact binding and integrity verification.`})});let i=n&&aT(n,r.cycle.cycleId)?n:null;return(0,F.jsxs)(`div`,{className:`op-workspace op-cycle-detail pc-operate`,"data-route-kind":`operate.cycle`,"data-cycle-presentation":r.presentation,"data-cycle-source":r.source,children:[(0,F.jsxs)(`ul`,{className:`pc-metrics`,"aria-label":`Cycle progress`,children:[(0,F.jsx)(Im,{label:`terminal`,value:r.progress.terminal}),(0,F.jsx)(Im,{label:`total`,value:r.progress.total})]}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · ${r.vocabulary.title.toLowerCase()}`,title:r.cycle.focus[0]??r.vocabulary.title,description:`${kT(r.cycle.state)} · ${kT(r.cycle.health)}`,actions:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Fm,{state:r.cycle.state}),(0,F.jsx)(Fm,{state:r.cycle.health}),i?(0,F.jsx)(`a`,{className:`pc-row-link`,"data-review-navigation":``,"data-review-read-action-digest":i.readActionDigest,href:i.deepLink,children:`Open Review`}):null]})}),r.source===`durable-resume`?(0,F.jsx)(`p`,{className:`pc-operate__notice`,"data-tone":`verified`,role:`status`,children:`Your saved cycle has been restored.`}):null,r.cycle.state===`closed`?(0,F.jsx)(`p`,{className:`pc-operate__notice`,role:`status`,children:`This Cycle is closed. Persistent Decisions, Actions, Findings, Outcomes, and Learnings remain discoverable below.`}):null,(0,F.jsx)(OT,{stages:r.stages,cycleId:r.cycle.cycleId,health:r.cycle.health,eyebrow:`Observe through Learn`,title:r.currentStage?TT(r.currentStage.id):kT(r.cycle.state),labelledBy:`op-cycle-detail-spine-title`}),(0,F.jsx)(IT,{model:r,currentBinding:e,executiveBoard:t.current.executiveBoard}),(0,F.jsxs)(`div`,{className:`op-cycle-detail__workspace`,children:[(0,F.jsxs)(`div`,{className:`op-cycle-detail__primary`,children:[(0,F.jsx)(MT,{model:r}),(0,F.jsx)(NT,{model:r}),(0,F.jsx)(PT,{model:r})]}),(0,F.jsx)(FT,{model:r})]})]})}var RT=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,zT=4194304;function BT(e){return typeof e==`object`&&!!e&&e.kind===`operate-executive-board-display-surface`}function VT(e,t,n){if(!RT.test(e))throw Error(`Operate dashboard reads require an exact loopback origin.`);if(n.productArea!==`operate`||n.cycleId===null||n.subjectId===null)throw Error(`Operate Cycle detail identity is incomplete.`);let r=new URL(t,e);return r.searchParams.set(`scopeId`,n.scopeId),r.searchParams.set(`domainId`,n.domainId),r.searchParams.set(`domainVersion`,n.domainVersion),r}async function HT(e){let{identity:t}=e;if(t.domainId!==`business`||t.cycleId===null)return null;let n=VT(e.origin,`/api/operate/cycles/${encodeURIComponent(t.cycleId)}/executive-board`,t),r=await(e.fetcher??fetch)(n,{headers:{accept:`application/json`,"x-openplanr-actor":t.actorId},cache:`no-store`,signal:e.signal}),i=await r.text();if(new TextEncoder().encode(i).byteLength>zT)throw Error(`Executive board response exceeds the dashboard JSON limit.`);let a;try{a=JSON.parse(i)}catch{throw Error(`Executive board response is not JSON.`)}if(!r.ok||!BT(a))return null;try{Ob(a,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:a.payload.generatedAt,eventHead:a.payload.eventHead,viewHash:t.viewHash??a.payload.viewHash,subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return a}function UT(){if(typeof window>`u`)return``;let{origin:e,protocol:t,hostname:n,pathname:r,search:i,hash:a}=window.location;return t!==`http:`||![`127.0.0.1`,`localhost`].includes(n)||r!==`/`||i||a?``:e}function WT(e,t){let n=ST(e);return n(t)?it({kind:`ready`,binding:e,data:t,reasonCodes:[],error:null,mutationEnabled:!1,policy:ot(`ready`)},{currentBinding:e,validateData:n}):null}function GT(e,t){let n=UT(),r=t&&n.length>0,i=rT({identity:e,sourceKey:r?`executive-board`:`executive-board-offline`,read:async({identity:e,signal:t})=>!r||e.cycleId===null?null:HT({origin:n,identity:e,signal:t}),validate:t=>{if(t===null)return null;let n=WT(e,t);if(!n)throw Error(`Executive board display did not verify.`);return n}});if(t){if(!r)return null;if(i.phase!==`loading`&&i.phase!==`refreshing`)return i.phase===`ready`?i.data:null}}function KT({currentBinding:e,workspace:t,reviewNavigation:n=null}){let r=e.domainId===`business`,i=GT(e,r),a=Object.freeze({current:Object.freeze({workspace:t,...r?{executiveBoard:i??null}:{}})});return r&&i===void 0?(0,F.jsx)(`div`,{className:`op-workspace op-cycle-detail`,"data-route-kind":`operate.cycle`,children:(0,F.jsx)(Y,{state:`booting`,eyebrow:`Executive board`,title:`Loading executive board`,description:`Waiting for the owner-issued executive board display for this business Cycle.`})}):(0,F.jsx)(LT,{currentBinding:e,sources:a,reviewNavigation:n})}function qT(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}var JT=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function YT(e){try{let t=z(e);return t.productArea===`operate`&&t.route===`#/operate/cycles`&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function XT(e){let t=YT(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=gb(e),r=n.payload;return r.surface!==`cycles`||t.eventHead===null||t.viewHash===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(gb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,surface:`cycles`,subjectId:null,cycleId:t.cycleId})),!0)}catch{return!1}}}function ZT(e,t){let n=YT(t);if(!n||!V(e)||e.binding===null||e.data===null||!B(e.binding,n)||!XT(n)(e.data))return null;let r=e.data;if(r.payload.surface!==`cycles`)return null;let i=r.payload,a=JT[e.kind];return a===void 0||i.status!==a||i.mutationEnabled!==e.mutationEnabled?null:Object.freeze({display:r,surface:i,presentation:a})}function QT(e){return e===`business`?`Business Cycles`:e===`software`?`Repository Cycles`:`Operating Cycles`}var $T=new Set([`blocked`,`failed`,`cancelled`]);function eE(e){let t=e.stages.find(e=>e.state===`current`);return t?TT(t.id):qT(e.health)}var tE=[{key:`cycle`,label:`Cycle`,render:e=>(0,F.jsx)(`a`,{className:`pc-row-link`,href:e.deepLink,"aria-label":`Open ${e.focus[0]??`cycle`}`,children:e.focus[0]??`Untitled cycle`})},{key:`state`,label:`State`,render:e=>(0,F.jsx)(Fm,{state:e.state})},{key:`health`,label:`Health`,render:e=>(0,F.jsx)(Fm,{state:e.health})},{key:`current`,label:`Current stage`,render:e=>eE(e)},{key:`assignments`,label:`Assignments`,align:`right`,mono:!0,render:e=>e.assignments.length},{key:`persistent`,label:`Persistent actions`,align:`right`,mono:!0,render:e=>e.persistentActionIds.length}];function nE({currentBinding:e,current:t}){let n=ZT(t,e);if(!n)return(0,F.jsx)(`div`,{className:`op-workspace op-cycle-list pc-operate`,"data-route-kind":`operate.cycles`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Cycle projection`,title:`Cycles cannot be trusted`,description:`The owner-issued display did not pass exact binding and integrity verification.`})});let{surface:r,presentation:i}=n,a=r.data.cycles,o=a.map((e,t)=>({...e,id:`${e.cycleId}:${t}`})),s=[],c=new Map;for(let e of a)c.has(e.state)||s.push(e.state),c.set(e.state,(c.get(e.state)??0)+1);return(0,F.jsxs)(`div`,{className:`op-workspace op-cycle-list pc-operate`,"data-route-kind":`operate.cycles`,"data-cycle-presentation":i,children:[i===`ready`?null:(0,F.jsxs)(`p`,{className:`pc-operate__notice`,role:`status`,children:[`This is a `,i,` projection. Durable Cycle identity remains visible; no action is inferred.`]}),s.length>0?(0,F.jsx)(`ul`,{className:`pc-metrics`,"aria-label":`Cycle states`,children:s.map(e=>(0,F.jsx)(Im,{label:qT(e),value:c.get(e)??0,tone:$T.has(e)?`attention`:`default`},e))}):null,(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · cycles`,title:QT(r.domainId),count:`${a.length} ${a.length===1?`cycle`:`cycles`}`,description:`Follow the work from observation through learning.`}),a.length===0?(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Cycles`,title:`No cycles yet`,description:`There is no active cycle in this workspace yet.`}):(0,F.jsx)(nm,{columns:tE,rows:o,caption:`Operating cycles`})]})}var rE=Object.freeze({DetailRoute:KT,ListPage:nE,createListValidator:XT});function iE(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `).trim();return t===``?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function aE(e,t,n){return e.unavailableReason?`${e.unavailableReason.code}: ${e.unavailableReason.message}`:e.actionLocator===null?`No owner-issued action locator is available for this item.`:t?null:n.length>0?n.join(` · `):`Mutation is unavailable for this exact Inbox projection.`}function oE(e){return j({kind:`operate.inbox-item`,product:`operate`,subjectId:e})}function sE({item:e,mutationEnabled:t,pendingItemId:n,surfaceReasonCodes:r,showDeepLink:i=!0,headingLevel:a=3,onPreview:o}){let s=`op-inbox-action-${encodeURIComponent(e.itemId)}`,c=e.navigationLocator??null,l=aE(e,t,r),u=c===null&&l===null,d=a===2?`h2`:`h3`;return(0,F.jsxs)(`article`,{className:`op-inbox-item`,"data-inbox-kind":e.kind,"data-inbox-state":e.state,"data-inbox-blocking":e.blocking?`true`:`false`,"aria-labelledby":`${s}-title`,children:[(0,F.jsxs)(`header`,{className:`op-inbox-item__header`,children:[(0,F.jsx)(`div`,{className:`op-inbox-item__sequence`,"aria-hidden":`true`}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:iE(e.kind)}),(0,F.jsx)(d,{id:`${s}-title`,children:e.title}),(0,F.jsx)(`p`,{className:`op-inbox-item__consequence`,children:e.consequence})]}),(0,F.jsx)(`span`,{className:`op-inbox-item__state`,children:iE(e.state)})]}),(0,F.jsxs)(`dl`,{className:`op-inbox-item__facts`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Owner`}),(0,F.jsx)(`dd`,{children:`Assigned`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Blocking`}),(0,F.jsx)(`dd`,{children:e.blocking?`Yes`:`No`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Expiry`}),(0,F.jsx)(`dd`,{children:e.expiresAt?(0,F.jsx)(`time`,{dateTime:e.expiresAt,children:e.expiresAt}):`Not returned`})]})]}),(0,F.jsxs)(`details`,{className:`op-inbox-item__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsx)(`dl`,{className:`op-inbox-item__facts`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Owner ID`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.ownerActorId})})]})})]}),(0,F.jsxs)(`div`,{className:`op-inbox-item__disclosure`,children:[(0,F.jsxs)(`details`,{children:[(0,F.jsxs)(`summary`,{children:[`Evidence (`,e.evidence.length,`)`]}),e.evidence.length>0?(0,F.jsx)(`ol`,{children:e.evidence.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`code`,{children:e.evidenceRefId}),(0,F.jsx)(`span`,{children:e.relation}),(0,F.jsxs)(`span`,{children:[e.classification,` · `,e.accessState]})]},`${e.evidenceRefId}:${t}`))}):(0,F.jsx)(`p`,{children:`No item-bound evidence was returned.`})]}),(0,F.jsxs)(`details`,{children:[(0,F.jsxs)(`summary`,{children:[`Required parties (`,e.requiredParties.length,`)`]}),e.requiredParties.length>0?(0,F.jsx)(`ol`,{children:e.requiredParties.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`code`,{children:e.partyId}),(0,F.jsx)(`span`,{children:e.actorKind}),(0,F.jsx)(`span`,{children:e.state}),(0,F.jsx)(`strong`,{children:e.redacted?`Identity redacted`:e.actorId??`Actor not returned`})]},`${e.partyId}:${t}`))}):(0,F.jsx)(`p`,{children:`No required party was returned.`})]}),(0,F.jsxs)(`details`,{children:[(0,F.jsxs)(`summary`,{children:[`Redactions (`,e.redactions.length,`)`]}),e.redactions.length>0?(0,F.jsx)(`ol`,{children:e.redactions.map((e,t)=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{children:e.classification}),(0,F.jsx)(`strong`,{children:e.count}),(0,F.jsx)(`code`,{children:e.reason})]},`${e.classification}:${e.reason}:${t}`))}):(0,F.jsx)(`p`,{children:`No redaction was returned.`})]})]}),(0,F.jsxs)(`footer`,{className:`op-inbox-item__actions`,children:[i?(0,F.jsx)(`a`,{className:`op-inbox-item__link`,href:oE(e.itemId),children:`View item`}):(0,F.jsx)(`a`,{className:`op-inbox-item__link`,href:`#/operate/inbox`,children:`Back to Inbox`}),c?(0,F.jsx)(`a`,{className:`op-inbox-item__link`,"data-review-navigation":``,"data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:`Open Review`}):(0,F.jsx)(`fieldset`,{className:`op-inbox-item__trigger-anchor`,"data-inbox-item-trigger-anchor":``,tabIndex:-1,"aria-labelledby":`${s}-title`,children:u?(0,F.jsx)(Mm,{id:s,disabled:!1,pendingLabel:`Verifying exact preview`,"aria-haspopup":`dialog`,onInvoke:()=>o(e,s),children:`Open verified preview`}):(0,F.jsx)(Mm,{id:s,disabled:!0,disabledReason:l??`No owner-issued action locator is available.`,"aria-haspopup":`dialog`,children:`Open verified preview`})}),c===null&&n===e.itemId?(0,F.jsx)(`span`,{className:`op-inbox-item__pending`,role:`status`,children:`Verifying the exact owner preview.`}):null]})]})}var cE=Object.freeze([`decision`,`approval`,`verification`]),lE=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function uE(e){try{let t=z(e);return t.productArea===`operate`&&(t.route===`#/operate/inbox`||t.subjectId!==null&&t.route===`#/operate/inbox/${encodeURIComponent(t.subjectId)}`)&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function dE(e){let t=uE(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=gb(e),r=n.payload;return r.surface!==`inbox`||t.eventHead===null||t.viewHash===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(gb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:`inbox`,subjectId:t.subjectId,cycleId:t.cycleId})),!0)}catch{return!1}}}function fE(e){return JSON.stringify([e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation])}function pE(e){return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,e.eventHead?.sequence??null,e.eventHead?.hash??null,e.viewHash])}function mE(e,t){let n=uE(t);if(!n||!V(e)||e.binding===null||e.data===null||!B(e.binding,n))return null;let r=lE[e.kind];if(r===void 0||!dE(n)(e.data))return null;let i=e.data;if(i.payload.surface!==`inbox`)return null;let a=i.payload;if(a.status!==r||a.mutationEnabled!==e.mutationEnabled||a.data.requestBinding.projectId!==n.projectId||a.data.requestBinding.generation!==n.generation)return null;let o=a.data.inbox,s=Object.freeze({decision:Object.freeze(o.filter(e=>e.kind===`decision`)),approval:Object.freeze(o.filter(e=>e.kind===`approval`)),verification:Object.freeze(o.filter(e=>e.kind===`verification`))}),c=n.subjectId!==null,l=c?o.find(e=>e.itemId===n.subjectId)??null:null;return Object.freeze({kind:`inbox`,presentation:r,binding:e.binding,actionContextKey:pE(n),selectionScopeKey:fE(n),display:i,surface:a,items:o,categories:s,detailRequested:c,detailItem:l,mutationEnabled:a.mutationEnabled&&at(e,n)})}var hE=Object.freeze({decision:`Decision`,approval:`Approval`,verification:`Verification`});function gE(e){return cE.some(t=>t===e)}function _E({model:e,mutationEnabled:t=e.mutationEnabled,selected:n,pendingItemId:r,onSelectedChange:i,onPreview:a}){return(0,F.jsxs)(bu.Root,{className:`op-inbox-tabs`,value:n,activationMode:`automatic`,orientation:`horizontal`,onValueChange:e=>{gE(e)&&i(e)},children:[(0,F.jsx)(bu.List,{className:`op-inbox-tabs__list`,"aria-label":`Inbox categories`,children:cE.map(t=>{let n=e.categories[t].length,r=n===1?`item`:`items`;return(0,F.jsxs)(bu.Trigger,{className:`op-inbox-tabs__trigger`,value:t,"aria-label":`${hE[t]}, ${n} ${r}`,children:[(0,F.jsx)(`span`,{children:hE[t]}),` `,(0,F.jsx)(`strong`,{"aria-hidden":`true`,children:n})]},t)})}),cE.map(n=>{let i=e.categories[n];return(0,F.jsx)(bu.Content,{className:`op-inbox-tabs__panel`,value:n,forceMount:!0,tabIndex:0,"aria-label":`${hE[n]} queue, ${i.length} ${i.length===1?`item`:`items`}`,children:i.length>0?(0,F.jsx)(`ol`,{className:`op-inbox-queue`,"aria-label":`${hE[n]} items`,children:i.map(n=>(0,F.jsx)(`li`,{children:(0,F.jsx)(sE,{item:n,mutationEnabled:t,pendingItemId:r,surfaceReasonCodes:e.surface.reasonCodes,headingLevel:2,onPreview:a})},n.itemId))}):(0,F.jsxs)(`section`,{className:`op-inbox-empty`,role:`status`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Nothing to review`}),(0,F.jsxs)(`h2`,{children:[`No `,hE[n].toLocaleLowerCase(`en-US`),` items`]}),(0,F.jsx)(`p`,{children:`This category is clear right now.`})]})},n)})]})}function vE(e){return lx({...e,routeKinds:[`operate.inbox`,`operate.inbox-item`],routeErrorCode:`OPERATE_INBOX_ROUTE_REQUIRED`})}var yE=2147e6;function bE(e){return e instanceof DOMException&&e.name===`AbortError`}function xE(e){return e instanceof Error&&e.name===`OPERATION_UNCERTAIN`}function SE(){typeof window<`u`&&window.setTimeout(()=>window.location.reload(),0)}function CE(e,t){return e.itemId===t.itemId&&e.actionLocator?.subjectId===t.locator.subjectId&&e.actionLocator.actionDigest===t.locator.actionDigest}function wE(e,t){return t!==null&&e.contextKey===t.actionContextKey&&B(e.binding,t.binding)&&t.items.some(t=>CE(t,e))}function TE(e){return Date.parse(e.custody.preview.expiresAt)}function EE(e){let t=TE(e);return!Number.isFinite(t)||t<=Date.now()}function DE(e,t){let n=t===null?null:document.getElementById(t);if(n instanceof HTMLButtonElement&&e.contains(n)&&n.isConnected&&!n.disabled)return n;let r=e.querySelector(`.op-inbox-tabs__panel[data-state="active"]`)??e.querySelector(`.op-inbox__detail`),i=r?[...r.querySelectorAll(`[data-inbox-item-trigger-anchor]`)]:[];for(let e of i){let t=e.querySelector(`button.op-governed-button`);if(t?.isConnected&&!t.disabled)return t}let a=i.find(e=>e.isConnected);if(a)return a;let o=e.querySelector(`.op-inbox-tabs__trigger[aria-selected="true"]`);if(o?.isConnected)return o;let s=e.querySelector(`[data-inbox-focus-heading]`);return s?.isConnected?s:e.isConnected?e:null}function OE({currentBinding:e,current:t,actions:n,onRefetch:r}){let i=(0,v.useMemo)(()=>mE(t,e),[t,e]),a=i?.selectionScopeKey??null,o=i?.detailItem?.kind??`decision`,[s,c]=(0,v.useState)(()=>Object.freeze({scope:a,category:o})),l=s.scope===a?s.category:o,[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(!1),[g,_]=(0,v.useState)(!1),[y,b]=(0,v.useState)(null),[x,S]=(0,v.useState)(null),[C,w]=(0,v.useState)(!1),T=(0,v.useRef)(n??null),E=(0,v.useRef)(null),D=(0,v.useRef)(0),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=(0,v.useRef)(null),N=(0,v.useRef)(null),ee=(0,v.useRef)(null),P=(0,v.useRef)(!0),te=(0,v.useCallback)(e=>{let t=n=>{let r=ee.current;if(!P.current||!r?.isConnected||typeof document>`u`)return;let i=e===null?null:document.getElementById(e);i instanceof HTMLButtonElement&&r.contains(i)&&i.isConnected&&i.disabled&&n>0&&typeof window<`u`?window.setTimeout(()=>t(n-1),16):DE(r,e)?.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>`u`?t(4):window.setTimeout(()=>t(4),0)})},[]),ne=(0,v.useCallback)(async()=>{if(r){let e=await r();return e&&typeof e==`object`?e:null}return SE(),null},[r]),re=(0,v.useCallback)(async(e=E.current)=>{if(e&&!C){w(!0);try{let e=await ne(),t=e?.binding?mE(e,e.binding):null;if(!t||!T.current)throw Error(`Exact reconciliation failed.`);T.current.reconcile(t.binding),E.current=null,S(null),b({contextKey:t.actionContextKey,tone:`verified`,text:`Exact current Inbox truth was reconciled. A new governed preview is required.`})}catch{b({contextKey:i?.actionContextKey??``,tone:`attention`,text:`OPERATION_UNCERTAIN · Exact current Inbox truth did not reconcile; do not retry.`})}finally{P.current&&w(!1)}}},[i?.actionContextKey,C,ne]),ie=(0,v.useCallback)(()=>{let e=M.current;e!==null&&(clearTimeout(e),M.current=null)},[]),ae=(0,v.useCallback)(e=>{ie();let t=A.current;A.current=null,D.current+=1;let n=j.current,r=n!==null||O.current||k.current;return n?.custody.cancel(),r&&T.current?.cancel(),j.current=null,O.current=!1,k.current=!1,d(null),p(null),_(!1),h(!1),e&&te(t),t},[ie,te]),oe=(0,v.useCallback)(e=>{P.current&&j.current===e&&wE(e,N.current)&&(ae(!0),b({contextKey:e.contextKey,tone:`attention`,text:`The verified preview expired before confirmation. Current Inbox truth is being refreshed.`}),ne())},[ae,ne]),I=(0,v.useCallback)(e=>{ie();let t=()=>{if(!P.current||j.current!==e)return;let n=TE(e)-Date.now();!Number.isFinite(n)||n<=0?(M.current=null,oe(e)):M.current=setTimeout(t,Math.min(n,yE))};t()},[ie,oe]);(0,v.useEffect)(()=>(P.current=!0,n&&(T.current=n),!T.current&&typeof window<`u`&&(T.current=vE({origin:window.location.origin})),()=>{P.current=!1,D.current+=1,ie();let e=T.current;j.current?.custody.cancel(),e?.cancel(),j.current=null,O.current=!1,k.current=!1,queueMicrotask(()=>{(!P.current||T.current!==e)&&e?.dispose(),!P.current&&T.current===e&&(T.current=null)})}),[n,ie]),(0,v.useLayoutEffect)(()=>{s.scope!==a&&c(Object.freeze({scope:a,category:o}))},[s.scope,o,a]),(0,v.useLayoutEffect)(()=>{let e=N.current;N.current=i;let t=i?.actionContextKey??null;b(e=>e!==null&&e.contextKey!==t?null:e);let n=j.current,r=e?.actionContextKey!==t;if((n===null||wE(n,i))&&!(r&&(O.current||k.current)))return;let a=n!==null&&i!==null&&n.selectionScopeKey===i.selectionScopeKey&&!i.items.some(e=>CE(e,n)),o=n?.selectionScopeKey??null,s=ae(!1);te(s),a&&N.current?.selectionScopeKey===o&&ne()},[ae,i,ne,te]),(0,v.useEffect)(()=>{let e=n??T.current;if(e&&i)try{e.bind(i.binding)}catch{b({contextKey:i.actionContextKey,tone:`refusal`,text:`The governed Inbox adapter refused this exact route binding.`})}},[n,i]);let se=(0,v.useCallback)(e=>{c(Object.freeze({scope:a,category:e}))},[a]),ce=(0,v.useCallback)(async(e,t)=>{let n=e.actionLocator,r=T.current;if(!i||!n||!r||O.current)return;let a=i.binding,o=i.actionContextKey,s=i.selectionScopeKey;O.current=!0;let c=++D.current;A.current=t,d(e.itemId),b(null);try{r.bind(a);let t=await r.preview({subjectId:n.subjectId,actionDigest:n.actionDigest}),i=N.current,l=i!==null&&i.actionContextKey===o&&B(a,i.binding)&&i.items.some(t=>CE(t,{itemId:e.itemId,locator:n}));if(!P.current||c!==D.current||!l){t.cancel();return}if(t.preview.authority!==`allowed`){t.cancel(),r.cancel(),b({contextKey:o,tone:`refusal`,text:t.preview.reasonCodes.length>0?t.preview.reasonCodes.join(` · `):`Preview authority: ${t.preview.authority}.`});let e=A.current;A.current=null,te(e),await ne();return}let u=Object.freeze({itemId:e.itemId,locator:Object.freeze({subjectId:n.subjectId,actionDigest:n.actionDigest}),binding:a,contextKey:o,selectionScopeKey:s,custody:t});if(EE(u)){t.cancel(),ae(!0),b({contextKey:o,tone:`attention`,text:`The verified preview expired before confirmation. Current Inbox truth is being refreshed.`}),await ne();return}j.current=u,p(u),h(!0),I(u)}catch(e){let t=N.current;if(!bE(e)&&P.current&&c===D.current&&t?.actionContextKey===o&&B(a,t.binding)){r.cancel(),xE(e)&&(E.current=a,S(a)),b({contextKey:o,tone:xE(e)?`attention`:`refusal`,text:xE(e)?`The governed preview outcome is uncertain. Exact current Inbox truth must reconcile before retry.`:`The governed preview was refused. Current Inbox truth is being refreshed.`});let t=A.current;A.current=null,te(t),xE(e)?await re(a):await ne()}}finally{c===D.current&&(O.current=!1,P.current&&d(null))}},[ae,i,re,ne,te,I]),le=(0,v.useCallback)(async()=>{let e=j.current;if(!e||k.current)return;if(!wE(e,N.current)){ae(!0);return}if(EE(e)){oe(e);return}k.current=!0;let t=D.current;_(!0);try{let n=await e.custody.confirm();if(!P.current||t!==D.current||!wE(e,N.current))return;n.ok?b({contextKey:e.contextKey,tone:`verified`,text:`The transition was accepted. The Inbox has been refreshed.`}):(E.current=e.binding,S(e.binding),b({contextKey:e.contextKey,tone:`attention`,text:n.reasonCode})),ae(!0),n.ok?await ne():await re(e.binding)}catch(n){!bE(n)&&P.current&&t===D.current&&wE(e,N.current)&&(b({contextKey:e.contextKey,tone:`refusal`,text:`The governed confirmation was refused. Current Inbox truth is being refreshed.`}),ae(!0),await ne())}finally{t===D.current&&(k.current=!1,P.current&&_(!1))}},[ae,oe,re,ne]);if(!i)return(0,F.jsx)(`div`,{ref:ee,className:`op-workspace op-inbox pc-operate`,"data-inbox-focus-workspace":``,"data-route-kind":`operate.inbox`,tabIndex:-1,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Inbox projection`,title:`Inbox cannot be trusted`,description:`The owner-issued Inbox did not pass exact binding and integrity verification.`})});if(i.detailRequested&&!i.detailItem)return(0,F.jsxs)(`div`,{ref:ee,className:`op-workspace op-inbox pc-operate`,"data-inbox-focus-workspace":``,"data-route-kind":`operate.inbox-item`,tabIndex:-1,children:[(0,F.jsx)(`header`,{className:`op-inbox__header`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Operate · Inbox`}),(0,F.jsx)(`h1`,{"data-inbox-focus-heading":``,tabIndex:-1,children:`Inbox item not found`}),(0,F.jsx)(`p`,{children:`This item is not available in the current Inbox.`})]})}),(0,F.jsx)(Y,{state:`unavailable`,eyebrow:`Not found`,title:`No matching Inbox item`,description:`Return to the Inbox to review the work that is currently available.`,actions:(0,F.jsx)(`a`,{className:`op-inline-action`,href:`#/operate/inbox`,children:`Return to Inbox`})})]});let ue=y?.contextKey===i.actionContextKey?y:null,de=x!==null,L=(f!==null&&wE(f,i)?f:null)?.custody.preview??null;return(0,F.jsxs)(`div`,{ref:ee,className:`op-workspace op-inbox`,"data-inbox-focus-workspace":``,"data-route-kind":i.detailRequested?`operate.inbox-item`:`operate.inbox`,"data-inbox-presentation":i.presentation,tabIndex:-1,children:[(0,F.jsxs)(`header`,{className:`op-inbox__header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Operate · Inbox`}),(0,F.jsx)(`h1`,{"data-inbox-focus-heading":``,tabIndex:-1,children:i.detailItem?.title??`Decision and approval Inbox`}),(0,F.jsx)(`p`,{children:`Review decisions, approvals, and verification work.`}),(0,F.jsx)(Fm,{state:i.presentation})]}),(0,F.jsx)(`dl`,{className:`op-inbox__custody`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Items`}),(0,F.jsx)(`dd`,{children:i.items.length})]})})]}),(0,F.jsxs)(`details`,{className:`op-inbox__technical`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-inbox__custody`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`View state`}),(0,F.jsx)(`dd`,{children:i.presentation})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Event record`}),(0,F.jsx)(`dd`,{children:(0,F.jsxs)(`code`,{children:[i.surface.eventHead.sequence,` · `,i.surface.eventHead.hash??`genesis`]})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`View key`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:i.surface.viewHash})})]})]})]}),i.presentation===`ready`?null:(0,F.jsxs)(`p`,{className:`pc-operate__notice`,role:`status`,children:[`Current access-safe Inbox truth remains visible. Mutation is unavailable on this`,` `,i.presentation,` projection.`]}),ue?(0,F.jsx)(`p`,{className:`pc-operate__notice`,"data-tone":ue.tone,role:`status`,"aria-live":`polite`,children:ue.text}):null,de?(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Uncertain operation`,title:`Inbox stays locked until exact reconciliation`,description:`A governed POST may have taken effect. OpenPlanr will not offer a blind retry.`,actions:(0,F.jsx)(Mm,{disabled:!r||C,disabledReason:`A parser-verified current Inbox projection is required.`,onInvoke:()=>void re(),children:C?`Reconciling current Inbox…`:`Reconcile current Inbox`})}):null,i.detailItem?(0,F.jsxs)(`section`,{className:`op-inbox__detail`,"aria-labelledby":`op-inbox-detail-title`,children:[(0,F.jsxs)(`div`,{className:`op-inbox__section-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Selected item`}),(0,F.jsx)(`h2`,{id:`op-inbox-detail-title`,children:`Review item`})]}),(0,F.jsx)(`p`,{children:`This item is available in the current Inbox.`})]}),(0,F.jsx)(sE,{item:i.detailItem,mutationEnabled:i.mutationEnabled&&!de&&!C,pendingItemId:u,surfaceReasonCodes:i.surface.reasonCodes,showDeepLink:!1,onPreview:ce})]}):(0,F.jsx)(_E,{model:i,mutationEnabled:i.mutationEnabled&&!de&&!C,selected:l,pendingItemId:u,onSelectedChange:se,onPreview:ce}),(0,F.jsx)(yu.Root,{open:m&&L!==null,onOpenChange:e=>{!e&&!k.current&&ae(!0)},children:(0,F.jsxs)(yu.Portal,{children:[(0,F.jsx)(yu.Overlay,{className:`op-inbox-dialog__overlay`}),(0,F.jsx)(yu.Content,{className:`op-inbox-dialog__content`,onCloseAutoFocus:e=>{e.preventDefault()},children:L?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Verified governed preview`}),(0,F.jsx)(yu.Title,{className:`op-inbox-dialog__title`,children:`Confirm the exact transition`}),(0,F.jsx)(yu.Description,{className:`op-inbox-dialog__description`,children:L.consequence}),(0,F.jsxs)(`dl`,{className:`op-inbox-dialog__facts`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Subject kind and ID`}),(0,F.jsxs)(`dd`,{children:[L.subject.kind,` `,(0,F.jsx)(`code`,{children:L.subject.id})]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Revision`}),(0,F.jsx)(`dd`,{children:L.subject.revision??`Not returned`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Subject hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:L.subject.hash??`No subject hash returned`})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Event head sequence`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:L.eventHead.sequence})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Event head hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:L.eventHead.hash??`No event hash returned`})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Expires`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`time`,{dateTime:L.expiresAt,children:L.expiresAt})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Effect`}),(0,F.jsx)(`dd`,{children:L.allowedAction.effect})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Reversible`}),(0,F.jsx)(`dd`,{children:L.transition.reversible?`Yes`:`No`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Next state`}),(0,F.jsx)(`dd`,{children:L.transition.nextState})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Action digest`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:L.actionDigest})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Preview digest`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:L.previewHash})})]})]}),(0,F.jsxs)(`section`,{className:`op-inbox-dialog__targets`,"aria-labelledby":`op-preview-targets`,children:[(0,F.jsx)(`h2`,{id:`op-preview-targets`,children:`Exact targets and dispositions`}),(0,F.jsx)(`ol`,{children:L.transition.targets.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:e.kind}),(0,F.jsx)(`code`,{children:e.id}),(0,F.jsxs)(`span`,{children:[`Revision `,e.revision??`not returned`]}),(0,F.jsx)(`code`,{children:e.hash??`No target hash returned`}),(0,F.jsx)(`span`,{children:e.disposition??`No disposition returned`})]},`${e.kind}:${e.id}`))})]}),L.transition.threshold?(0,F.jsxs)(`section`,{className:`op-inbox-dialog__threshold`,"aria-labelledby":`op-preview-threshold`,children:[(0,F.jsx)(`h2`,{id:`op-preview-threshold`,children:`Approval threshold`}),(0,F.jsxs)(`p`,{children:[L.transition.threshold.recorded,` recorded ·`,` `,L.transition.threshold.required,` required ·`,` `,L.transition.threshold.remaining,` remaining`]})]}):null,(0,F.jsxs)(`div`,{className:`op-inbox-dialog__actions`,children:[(0,F.jsx)(yu.Cancel,{asChild:!0,children:(0,F.jsx)(`button`,{type:`button`,className:`op-inbox-dialog__cancel`,disabled:g,children:`Cancel`})}),(0,F.jsx)(`button`,{type:`button`,className:`op-governed-button op-inbox-dialog__confirm`,disabled:g,"aria-busy":g||void 0,onClick:le,children:g?`Waiting for durable acceptance`:`Confirm exact transition`})]})]}):null})]})})]})}var kE=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function AE(e){try{let t=z(e);return t.productArea===`operate`&&t.route===`#/operate/recovery`&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function jE(e){let t=AE(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=zb(e),r=n.payload;return t.eventHead===null||t.viewHash===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(zb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash})),!0)}catch{return!1}}}function ME(e,t){let n=AE(t);if(n===null||!V(e)||e.binding===null||e.data===null||!B(e.binding,n)||!jE(n)(e.data))return null;let r=e.data,i=r.payload,a=kE[e.kind];return a===void 0||i.status!==a||i.mutationEnabled!==!1||e.mutationEnabled?null:Object.freeze({kind:`recovery`,presentation:a,binding:e.binding,display:r,payload:i,recoveryState:i.data.recoveryState,inspection:i.data.inspection,history:i.data.history,allowedActions:i.data.allowedActions,mutationEnabled:!1})}var NE=Object.freeze({blocked:Object.freeze({title:`Recovery is blocked`,summary:`A prerequisite needs attention before work can continue.`,known:`The blocking state and its history are still available.`,unknown:`The current view cannot safely say more about the target or effect.`,forbidden:`Do not bypass this block or try to recreate the missing approval.`}),uncertain:Object.freeze({title:`Reconciliation is required`,summary:`An action may have happened. OpenPlanr will not run it again until it is reconciled.`,known:`The original intent and a single attempted dispatch are recorded.`,unknown:`There is not enough proof yet to say what happened.`,forbidden:`Do not retry or run a different version of the action.`}),custody:Object.freeze({title:`Result custody needs restoration`,summary:`The result is recorded, but it cannot be read safely right now.`,known:`The original intent and history remain available.`,unknown:`The result details cannot be shown until access is restored.`,forbidden:`Do not copy private receipts or create a replacement result.`}),divergent:Object.freeze({title:`Target state diverged`,summary:`The target changed after this work was reviewed.`,known:`OpenPlanr can see that the reviewed target and current target no longer match.`,unknown:`It cannot safely choose a replacement change.`,forbidden:`Do not confirm an expired review or silently update the target.`}),corrupt:Object.freeze({title:`State integrity could not be established`,summary:`Keep the project isolated and inspect the Event tail or a known-good backup.`,known:`Integrity validation refused the current state before mutation.`,unknown:`No unvalidated record is presented as current truth.`,forbidden:`Do not edit checkpoints, Event history, or durable state by hand.`}),incompatible:Object.freeze({title:`State version is incompatible`,summary:`Use a supported backup, upgrade, or refusal path without mutation.`,known:`The installed runtime refused an unsupported contract version.`,unknown:`No compatibility translation or mutation is attempted.`,forbidden:`Do not downgrade, rewrite, or guess a compatible contract.`}),restored:Object.freeze({title:`Recovery is restored`,summary:`The recovered work is readable again. Review it before taking a new step.`,known:`Recovery history and the restored state remain visible.`,unknown:`Recovery alone does not prove the outcome or authorize another action.`,forbidden:`Do not reuse an old approval or review.`})});function PE(e){return e.filter(e=>{let t=e.tool??``;return e.effect===`read-only`||t.includes(`recovery`)||t.includes(`reconcile`)||t.endsWith(`.rollback`)})}function FE(e){return e===`restored`?`ready-to-resume`:e===`corrupt`||e===`incompatible`?`incompatible`:`unavailable`}var IE=[{key:`sequence`,label:`Seq`,mono:!0,render:e=>e.sequence},{key:`change`,label:`Change`,render:e=>e.change?.summary??e.type},{key:`timestamp`,label:`When`,mono:!0,render:e=>(0,F.jsx)(`time`,{dateTime:e.timestamp,children:e.timestamp})},{key:`result`,label:`Result`,align:`right`,render:e=>e.result?.status?(0,F.jsx)(Fm,{state:e.result.status}):`—`}];function LE({currentBinding:e,current:t}){let n=ME(t,e);if(!n)return(0,F.jsx)(`div`,{className:`op-workspace op-recovery pc-operate`,"data-route-kind":`operate.recovery`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Recovery projection`,title:`Recovery cannot be trusted`,description:`The owner-issued recovery display did not pass exact binding and integrity verification.`})});let r=NE[n.recoveryState],i=PE(n.allowedActions),a=FE(n.recoveryState),o=`${n.payload.eventHead.sequence} · ${n.payload.eventHead.hash??`genesis`}`,s=n.history.slice(-6).map((e,t)=>({...e,id:`${e.eventId}:${t}`}));return(0,F.jsxs)(`section`,{className:`op-workspace op-recovery pc-operate`,"data-route-kind":`operate.recovery`,"data-recovery-state":n.recoveryState,"data-recovery-presentation":n.presentation,"aria-label":`Operate recovery`,children:[(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · recovery`,title:`Recovery`,description:`Understand what is known, what is not, and the safe next step.`,actions:(0,F.jsx)(Fm,{state:n.recoveryState})}),(0,F.jsx)(Lm,{items:[{term:`Recovery state`,description:n.recoveryState,mono:!0},{term:`Event record`,description:o,mono:!0},{term:`View key`,description:n.payload.viewHash,mono:!0}]}),(0,F.jsx)(Y,{state:a,eyebrow:`Recovery`,title:r.title,description:r.summary}),(0,F.jsxs)(`div`,{className:`pc-operate__split`,children:[(0,F.jsxs)(`section`,{className:`pc-operate__panel`,"aria-labelledby":`op-recovery-proven-title`,children:[(0,F.jsx)(`h2`,{id:`op-recovery-proven-title`,children:`What is proven`}),(0,F.jsx)(`p`,{children:r.known})]}),(0,F.jsxs)(`section`,{className:`pc-operate__panel`,"aria-labelledby":`op-recovery-unknown-title`,children:[(0,F.jsx)(`h2`,{id:`op-recovery-unknown-title`,children:`What remains unknown`}),(0,F.jsx)(`p`,{children:r.unknown})]})]}),(0,F.jsxs)(`section`,{className:`pc-operate__section`,"aria-label":`Available recovery steps`,children:[(0,F.jsx)(Jp,{headingLevel:2,title:`Available recovery steps`,description:`OpenPlanr shows only steps that are safe for the current state.`}),(0,F.jsx)(`div`,{className:`pc-operate__controls`,children:i.length>0?i.map(e=>(0,F.jsx)(Mm,{variant:e.tool.endsWith(`.rollback`)?`danger`:`secondary`,disabled:!0,disabledReason:`The dashboard has not bound a live recovery command gateway for this actor.`,children:e.label},e.tool)):(0,F.jsx)(Mm,{disabled:!0,disabledReason:`OpenPlanr returned no legal recovery action for this actor and current state.`,children:`No legal recovery action`})})]}),(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Prohibited action`,title:`Prohibited action`,description:r.forbidden}),(0,F.jsxs)(`section`,{className:`pc-operate__section`,"aria-label":`Recovery history`,children:[(0,F.jsx)(Jp,{headingLevel:2,title:`Recovery history`,count:n.history.length,description:`Original intent and every recovery result remain immutable.`}),s.length===0?(0,F.jsx)(`p`,{className:`pc-operate__notice`,children:`No access-safe recovery history is projected.`}):(0,F.jsx)(nm,{columns:IE,rows:s,caption:`Immutable recovery history`})]}),(0,F.jsxs)(`section`,{className:`pc-operate__section`,"aria-label":`What support can collect`,children:[(0,F.jsx)(Jp,{headingLevel:2,title:`What support can collect`,description:`Support information is prepared safely and never uploaded automatically.`}),(0,F.jsx)(Lm,{items:[{term:`May include`,description:`Versions, safe reason codes, hashes, Event range, and recovery steps`},{term:`Always redacted`,description:`Evidence bodies, private identities, credentials, receipts, and machine paths`},{term:`Upload behavior`,description:`Project state is never uploaded automatically`}]})]})]})}var RE=Object.freeze({InboxPage:OE,RecoveryPage:LE,createInboxValidator:dE,createRecoveryValidator:jE});function zE(e){return e.replaceAll(`-`,` `).replaceAll(`_`,` `)}function BE(e){return e.length===0||e.length<=2048&&/^\S(?:[\s\S]*\S)?$/u.test(e)}function VE({choice:e,custody:t,confirming:n,onCancel:r,onConfirm:i}){let[a,o]=(0,v.useState)(``),s=BE(a),c=t?.preview??null;return(0,F.jsx)(yu.Root,{open:c!==null&&e!==null,onOpenChange:e=>{!e&&!n&&r()},children:(0,F.jsxs)(yu.Portal,{children:[(0,F.jsx)(yu.Overlay,{className:`op-inbox-dialog__overlay`}),(0,F.jsx)(yu.Content,{className:`op-inbox-dialog__content op-review-dialog`,children:c&&e?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Exact owner choice`}),(0,F.jsxs)(yu.Title,{className:`op-inbox-dialog__title`,children:[`Record “`,e.choice.label,`”?`]}),(0,F.jsx)(yu.Description,{className:`op-inbox-dialog__description`,children:e.choice.consequence}),(0,F.jsxs)(`dl`,{className:`op-inbox-dialog__facts`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Authority`}),(0,F.jsx)(`dd`,{children:`Review only`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`External effects`}),(0,F.jsx)(`dd`,{children:`Not authorized`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Runtime effect`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.action?.action.effect??`not-issued`})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Reversibility`}),(0,F.jsx)(`dd`,{children:zE(e.choice.reversibility)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Event head`}),(0,F.jsx)(`dd`,{children:c.eventHead.sequence})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Choice proof`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.choice.choiceHash})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Preview proof`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:c.previewHash})})]})]}),(0,F.jsxs)(`section`,{className:`op-inbox-dialog__targets`,"aria-labelledby":`op-review-dispositions-title`,children:[(0,F.jsx)(`h2`,{id:`op-review-dispositions-title`,children:`Exact work dispositions`}),e.choice.requiredDispositions.length?(0,F.jsx)(`ol`,{children:e.choice.requiredDispositions.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:zE(e.entityType)}),(0,F.jsx)(`code`,{children:e.entityId}),(0,F.jsx)(`span`,{children:zE(e.disposition)})]},`${e.entityType}:${e.entityId}`))}):(0,F.jsx)(`p`,{children:`No persistent work disposition is attached to this choice.`})]}),(0,F.jsxs)(`label`,{className:`op-review-dialog__note`,children:[(0,F.jsxs)(`span`,{children:[`Owner note `,(0,F.jsx)(`small`,{children:`(optional)`})]}),(0,F.jsx)(`textarea`,{value:a,maxLength:2048,rows:3,disabled:n,"aria-invalid":!s||void 0,"aria-describedby":`op-review-note-help`,onChange:e=>o(e.currentTarget.value)})]}),(0,F.jsx)(`p`,{id:`op-review-note-help`,role:s?void 0:`alert`,children:s?`${a.length} of 2,048 characters. The exact text is bound into the receipt.`:`Remove leading or trailing whitespace before confirming.`}),(0,F.jsxs)(`div`,{className:`op-inbox-dialog__actions`,children:[(0,F.jsx)(yu.Cancel,{asChild:!0,children:(0,F.jsx)(`button`,{type:`button`,className:`op-inbox-dialog__cancel`,disabled:n,children:`Keep reviewing`})}),(0,F.jsx)(`button`,{type:`button`,className:`op-governed-button op-inbox-dialog__confirm`,disabled:n||!s,"aria-busy":n||void 0,onClick:()=>void i(a===``?null:a),children:n?`Recording immutable receipt`:`Record ${e.choice.label}`})]})]}):null})]})})}var HE=40;function UE(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `);return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function WE({ids:e,model:t,label:n}){if(e.length===0)return(0,F.jsxs)(`span`,{children:[`No `,n.toLocaleLowerCase(`en-US`),` linked.`]});let r=new Map(t.payload.data.evidence.map(e=>[e.evidenceRefId,e]));return(0,F.jsx)(`ul`,{className:`op-review__evidence-links`,"aria-label":n,children:e.map(e=>{let t=r.get(e),n=t?N(t.deepLink):null;return(0,F.jsxs)(`li`,{children:[n?(0,F.jsx)(`a`,{href:n,children:e}):(0,F.jsx)(`code`,{children:e}),(0,F.jsx)(`span`,{children:t?`${UE(t.claimStatus)} · ${UE(t.freshness)}`:`Not visible`})]},e)})})}function GE({model:e}){let{findings:t,dissent:n,uncertainty:r,gaps:i}=e.payload.data;return(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-challenge-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Challenge record`}),(0,F.jsx)(`h2`,{id:`op-review-challenge-title`,children:`What could change this decision`})]}),(0,F.jsxs)(`div`,{className:`op-review__challenge-grid`,children:[(0,F.jsxs)(`section`,{"aria-labelledby":`op-review-findings-title`,children:[(0,F.jsxs)(`h3`,{id:`op-review-findings-title`,children:[`Findings (`,t.length,`)`]}),t.length?(0,F.jsx)(`ol`,{children:t.map(t=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:t.title}),(0,F.jsx)(`p`,{children:t.statement}),(0,F.jsx)(`span`,{children:UE(t.state)}),t.origin===`operating-intelligence`?(0,F.jsx)(WE,{ids:[...t.supportingEvidenceRefIds,...t.contradictingEvidenceRefIds],model:e,label:`Evidence for ${t.title}`}):null]},t.findingId))}):(0,F.jsx)(`p`,{children:`No findings were returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-review-dissent-title`,children:[(0,F.jsxs)(`h3`,{id:`op-review-dissent-title`,children:[`Dissent (`,n.length,`)`]}),n.length?(0,F.jsx)(`ol`,{children:n.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`p`,{children:e.statement}),(0,F.jsx)(`strong`,{children:`Resolution condition`}),(0,F.jsx)(`p`,{children:e.resolutionCondition})]},`${e.sourceArtifactId}:${e.localDissentId}`))}):(0,F.jsx)(`p`,{children:`No dissent was returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-review-uncertainty-title`,children:[(0,F.jsxs)(`h3`,{id:`op-review-uncertainty-title`,children:[`Uncertainty (`,r.length,`)`]}),r.length?(0,F.jsx)(`ol`,{children:r.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`p`,{children:e.statement}),(0,F.jsx)(`span`,{children:UE(e.sourceKind)})]},e.uncertaintyId))}):(0,F.jsx)(`p`,{children:`No explicit uncertainty was returned.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`op-review-gaps-title`,children:[(0,F.jsxs)(`h3`,{id:`op-review-gaps-title`,children:[`Missing proof (`,i.length,`)`]}),i.length?(0,F.jsx)(`ol`,{children:i.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`p`,{children:e.reason}),(0,F.jsx)(`strong`,{children:`Next step`}),(0,F.jsx)(`p`,{children:e.recoveryDisposition})]},e.absenceId))}):(0,F.jsx)(`p`,{children:`No typed gaps were returned.`})]})]})]})}function KE({model:e}){let{claims:t}=e.payload.data;return(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-claims-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Evidence desk`}),(0,F.jsx)(`h2`,{id:`op-review-claims-title`,children:`Claims and sentence-level proof`})]}),t.length?(0,F.jsx)(`ol`,{className:`op-review__claims`,children:t.map(t=>(0,F.jsxs)(`li`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`strong`,{children:t.statement??`Restricted claim ${t.claimId}`}),(0,F.jsxs)(`span`,{children:[UE(t.status),` · `,UE(t.epistemicStatus)]})]}),(0,F.jsx)(WE,{ids:t.supportEvidenceRefIds,model:e,label:`Supporting evidence for ${t.claimId}`}),(0,F.jsx)(WE,{ids:t.contradictEvidenceRefIds,model:e,label:`Contradicting evidence for ${t.claimId}`})]},t.claimId))}):(0,F.jsx)(`p`,{children:`No claim statements were returned for this Review.`})]})}function qE({model:e}){let[t,n]=(0,v.useState)(HE),r=e.payload.data.traceMatrix,i=(0,v.useMemo)(()=>r?.edges.slice(0,t)??[],[r,t]);return r?(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-trace-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Reciprocal trace`}),(0,F.jsx)(`h2`,{id:`op-review-trace-title`,children:`Requirement to outcome custody`})]}),(0,F.jsxs)(`dl`,{className:`op-review__proof`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Nodes`}),(0,F.jsx)(`dd`,{children:r.nodes.length})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Relationships`}),(0,F.jsx)(`dd`,{children:r.edges.length})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Restricted`}),(0,F.jsx)(`dd`,{children:r.proof.restrictedNodes})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Typed absences`}),(0,F.jsx)(`dd`,{children:r.proof.typedAbsences})]})]}),(0,F.jsx)(`section`,{className:`op-review__table-scroll`,"aria-label":`Scrollable reciprocal decision trace`,tabIndex:0,children:(0,F.jsxs)(`table`,{children:[(0,F.jsxs)(`caption`,{children:[`Exact trace relationships, shown `,i.length,` of `,r.edges.length]}),(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{scope:`col`,children:`From`}),(0,F.jsx)(`th`,{scope:`col`,children:`Relationship`}),(0,F.jsx)(`th`,{scope:`col`,children:`To`})]})}),(0,F.jsx)(`tbody`,{children:i.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsxs)(`td`,{children:[(0,F.jsx)(`span`,{children:UE(e.from.kind)}),(0,F.jsx)(`code`,{children:e.from.id})]}),(0,F.jsx)(`td`,{children:UE(e.relation)}),(0,F.jsxs)(`td`,{children:[(0,F.jsx)(`span`,{children:UE(e.to.kind)}),(0,F.jsx)(`code`,{children:e.to.id})]})]},e.edgeId))})]})}),t<r.edges.length?(0,F.jsxs)(`button`,{type:`button`,className:`op-inline-action`,onClick:()=>n(e=>e+HE),children:[`Show the next `,Math.min(HE,r.edges.length-t),` relationships`]}):null,r.omissions.length?(0,F.jsxs)(`details`,{children:[(0,F.jsxs)(`summary`,{children:[`Trace omissions (`,r.omissions.length,`)`]}),(0,F.jsx)(`ul`,{children:r.omissions.map(e=>(0,F.jsxs)(`li`,{children:[UE(e.subject),` `,(0,F.jsx)(`code`,{children:e.subjectId}),` · `,UE(e.kind)]},e.omissionId))})]}):null]}):(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-trace-title`,children:[(0,F.jsx)(`h2`,{id:`op-review-trace-title`,children:`Reciprocal decision trace`}),(0,F.jsx)(`p`,{children:`The bounded trace matrix is not available in this workspace.`})]})}function JE({model:e}){let t=e.payload.data.truthSummary;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(GE,{model:e}),(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-proof-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Shared proof truth`}),(0,F.jsx)(`h2`,{id:`op-review-proof-title`,children:`What the evidence can prove`})]}),(0,F.jsxs)(`dl`,{className:`op-review__proof`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Proof status`}),(0,F.jsx)(`dd`,{children:UE(t.proof.status)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Linked evidence`}),(0,F.jsx)(`dd`,{children:t.proof.linkedEvidence})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Restricted evidence`}),(0,F.jsx)(`dd`,{children:t.proof.restrictedEvidence})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Unresolved claims`}),(0,F.jsx)(`dd`,{children:t.proof.unresolvedClaims})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Validated seats`}),(0,F.jsxs)(`dd`,{children:[t.seats.validated,` / `,t.seats.total]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Verified outcomes`}),(0,F.jsx)(`dd`,{children:t.proof.verifiedOutcomes})]})]}),t.proof.reasonCodes.length?(0,F.jsxs)(`p`,{role:`status`,children:[`Limits: `,t.proof.reasonCodes.map(UE).join(` · `)]}):null]}),(0,F.jsx)(KE,{model:e}),(0,F.jsx)(qE,{model:e})]})}function YE({workspace:e,receipt:t}){let n=e.payload.data.terminalDisposition;if(!n)return null;let r=t?.boundSubmission??null;return(0,F.jsxs)(`section`,{className:`op-review__section op-review__receipt`,"aria-labelledby":`op-review-receipt-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Immutable record`}),(0,F.jsx)(`h2`,{id:`op-review-receipt-title`,tabIndex:-1,children:`Review recorded`})]}),(0,F.jsxs)(`p`,{children:[`The owner recorded `,(0,F.jsx)(`strong`,{children:n.decision}),`. This receipt does not execute an Action or authorize an external effect.`]}),(0,F.jsxs)(`dl`,{className:`op-review__proof`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Applied choice`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:n.appliedChoiceId})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Committed event`}),(0,F.jsx)(`dd`,{children:n.eventHead.sequence})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Review read event`}),(0,F.jsx)(`dd`,{children:n.readEventHead.sequence})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Committed`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`time`,{dateTime:n.committedAt,children:n.committedAt})})]})]}),(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`Technical receipt proof`}),(0,F.jsxs)(`dl`,{className:`op-review__technical`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Receipt ID`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:n.receiptId})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Source receipt hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.payload.sourceArtifactHash})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Applied choice hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:n.appliedChoiceHash})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Committed event hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:n.eventHead.hash??`genesis`})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Bound submission hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:r?.boundSubmissionHash??`Not included in this display`})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Owner note`}),(0,F.jsx)(`dd`,{children:r?r.note??`No note recorded`:`Not included in this display`})]})]})]})]})}var XE=/(?:\bfile:\/\/|(?:^|[\s"'(=])\/(?:Users|home|private|tmp|var|Volumes|etc|opt|root|srv)\/|\b[A-Za-z]:\\(?:Users|Documents and Settings|Windows|ProgramData)\\)/u,ZE=/(?:-----BEGIN [A-Z ]*PRIVATE KEY-----|\b(?:api[_-]?key|access[_-]?token|refresh[_-]?token|password|passwd|authorization|client[_-]?secret)\s*[:=]\s*[^\s,;]+|\bBearer\s+[A-Za-z0-9._~+\/-]{12,})/iu;function QE(e,t){let n=Error(`Review workspace contains unsafe display text.`);return n.name=`PipelineError`,n.code=`E_OPERATE_REVIEW_WORKSPACE_UNSAFE`,n.fix=``,n.details={retryable:!1,context:{path:e,reason:t}},n.toJSON=()=>({ok:!1,code:n.code,problem:n.message,details:n.details}),n}function $E(e){return XE.test(e)?`private-path`:ZE.test(e)?`secret`:null}function eD(e){let t=(e,n=`$`)=>{if(typeof e==`string`){let t=$E(e);if(t!==null)throw QE(n,t)}else Array.isArray(e)?e.forEach((e,r)=>t(e,`${n}[${r}]`)):e&&typeof e==`object`&&Object.entries(e).forEach(([e,r])=>t(r,`${n}.${e}`))};return t(e),e}var tD=new Map([[`operate-allowed-action.schema.json`,G_],[`operate-experience-view.schema.json`,K_],[`operate-review-display-workspace.schema.json`,J_],[`operating-assignment.schema.json`,Y_],[`operating-evidence-resolution.schema.json`,X_],[`operating-review-read.schema.json`,Z_],[`operating-review-receipt.schema.json`,Q_],[`operating-review.schema.json`,$_],[`operating-trace-matrix.schema.json`,ev]]);function nD(e,t){return!t||t===`#`?e:t.startsWith(`#/`)?t.slice(2).split(`/`).map(e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`)).reduce((e,t)=>e?.[t],e):null}function rD(e){let[t,n=``]=e.split(`#`),r=t.split(`/`).at(-1),i=tD.get(r);return i?{schema:nD(i,n?`#${n}`:`#`),rootSchema:i,base:r}:null}function iD(){return[{path:`$`,rule:`closedContract`,detail:`does not satisfy the closed Review display workspace contract`}]}function aD(e,t){return new Set(e.map(e=>e[t])).size===e.length}function oD(e,t){return!t||e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.reviewId===t.reviewId&&e.sourceArtifactKind===t.sourceArtifactKind&&e.sourceArtifactHash===t.sourceArtifactHash&&e.sourceViewHash===t.sourceViewHash&&F_(e.sourceEventHead,t.sourceEventHead)&&F_(e.sourceReadEventHead,t.sourceReadEventHead)}function sD(e){return!(e.stages.total!==e.stages.cycles*7||e.stages.byStage.length!==7||new Set(e.stages.byStage.map(({id:e})=>e)).size!==7||[`complete`,`current`,`available`,`waiting`,`blocked`,`failed`,`skipped`,`uncertain`,`revisited`].some(t=>e.stages[t]!==e.stages.byStage.reduce((e,n)=>e+n[t],0))||e.seats.terminal!==e.seats.validated+e.seats.rejected+e.seats.failed+e.seats.abandoned||e.seats.total!==e.seats.terminal+e.seats.active+e.seats.pending||e.evidence.total!==e.evidence.available+e.evidence.restricted||e.evidence.total!==e.evidence.current+e.evidence.historical+e.evidence.stale||e.evidence.linked>e.evidence.total||e.proof.linkedEvidence!==e.evidence.linked||e.proof.restrictedEvidence!==e.evidence.restricted||e.proof.resolvedClaims!==e.claims.supported+e.claims.contradicted||e.proof.unresolvedClaims!==e.claims.uncertain+e.claims.unknown+e.claims.restricted||e.claims.total!==e.proof.resolvedClaims+e.proof.unresolvedClaims||e.verification.total!==e.verification.verified+e.verification.unverified+e.verification.notRequired+e.verification.insufficientEvidence||e.proof.verifiedOutcomes!==e.verification.verified||e.proof.unverifiedOutcomes!==e.verification.unverified+e.verification.insufficientEvidence||e.omissions.total!==e.omissions.restricted+e.omissions.absent)}function cD(e,t){return e.choiceHash===M_(e.submitArguments)&&e.submitArguments.reviewId===t.reviewId&&e.submitArguments.cycleId===t.cycleId&&e.submitArguments.actor.actorId===t.actorId&&P_(e.submitArguments.scope,{scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion})&&P_(e.requiredDispositions,e.submitArguments.workDispositions)&&e.reversibility===`immutable-review-event`}function lD(e){let{capability:t,choices:n}=e.data;if(!t.available)return t.actions.length===0&&e.mutationEnabled===!1;if(e.sourceArtifactKind!==`operating-review-read`||e.status!==`ready`||e.mutationEnabled!==!0||t.actions.length!==n.length)return!1;let r=new Map(n.map(e=>[M_(e.submitArguments),e]));if(r.size!==n.length)return!1;let i=new Set;for(let n of t.actions){let t=M_(n.action.arguments);if(n.subjectId!==e.reviewId||n.action.tool!==`operate.review.submit`||n.action.effect!==`project-write`||!r.has(t))return!1;i.add(t)}return i.size===n.length}function uD(e){let t=e.data.terminalDisposition;return e.sourceArtifactKind===`operating-review-read`?t===null&&e.data.review.state===`pending`&&e.data.review.disposition===null&&e.data.choices.length>0&&F_(e.sourceReadEventHead,e.sourceEventHead):e.status===`terminal`&&e.reasonCodes.includes(`REVIEW_TERMINAL`)&&e.mutationEnabled===!1&&e.data.choices.length===0&&e.data.capability.available===!1&&e.data.capability.actions.length===0&&e.data.capability.reason.code===`REVIEW_TERMINAL`&&t!==null&&t.decision===e.data.review.state&&e.data.review.disposition===t.decision&&P_(e.data.review.workDispositions,t.appliedWorkDispositions)&&F_(t.readEventHead,e.sourceReadEventHead)&&F_(t.eventHead,e.sourceEventHead)}function dD(e,t){let{payload:n,integrity:r}=e,{data:i}=n;if(r.domain!==`openplanr:operate-review-display-workspace:1.0.0`||r.sourceArtifactKind!==n.sourceArtifactKind||r.sourceViewHash!==n.sourceViewHash||r.sourceArtifactHash!==n.sourceArtifactHash||i.review.reviewId!==n.reviewId||i.review.cycleId!==n.cycleId||i.policyBinding.ownerActorId!==i.review.ownerActorId||i.policyBinding.actorMatchesOwner!==(n.actorId===i.review.ownerActorId)||i.policyBinding.actorMatchesOwner!==!0||!F_(i.truthSummary.sourceEventHead,n.sourceEventHead)||i.truthSummary.sourceViewHash!==n.sourceViewHash||i.executiveSummary.decisionCount!==i.recommendation.items.length||i.executiveSummary.findingCount!==i.findings.length||i.executiveSummary.dissentCount!==i.dissent.length||i.executiveSummary.gapCount!==i.gaps.length||i.executiveSummary.uncertaintyCount!==i.uncertainty.length||!aD(i.choices,`choiceId`)||!aD(i.findings,`findingId`)||!aD(i.dissent,`localDissentId`)||!aD(i.uncertainty,`uncertaintyId`)||!aD(i.gaps,`absenceId`)||!aD(i.claims,`claimId`)||!aD(i.evidence,`evidenceRefId`)||i.choices.some(e=>!cD(e,n))||!lD(n)||!uD(n)||!sD(i.truthSummary)||!oD(n,t))return!1;try{eD(n)}catch{return!1}return!0}function fD(e,t){try{let n=D_(e),r=h_(n,J_,{base:`schemas/v2.0.0/operate-review-display-workspace.schema.json`,resolveRef:rD});return r.length>0||!dD(n,t)?r.length>0?r:iD():n.integrity.contentHash===j_(n.payload,`openplanr:operate-review-display-workspace:1.0.0`)?[]:iD()}catch{return iD()}}function pD(e,t){if(fD(e,t).length>0){let e=TypeError(`The Review display workspace does not satisfy its closed integrity contract.`);throw e.code=`E_OPERATE_REVIEW_DISPLAY_INVALID`,e}return e}Object.freeze(structuredClone(J_));var mD=`openplanr:operate-review-bound-submission:project-write:operating-review@2.0.0#/$defs/workDisposition:1.0.0`,hD=new Map([[`operate-review-bound-submission.schema.json`,q_],[`operating-assignment.schema.json`,Y_],[`operating-review-read.schema.json`,Z_],[`operating-review-receipt.schema.json`,Q_],[`operating-review.schema.json`,$_]]);function gD(e,t){return!t||t===`#`?e:t.startsWith(`#/`)?t.slice(2).split(`/`).map(e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`)).reduce((e,t)=>e?.[t],e):null}function _D(e){let[t,n=``]=e.split(`#`),r=t.split(`/`).at(-1),i=hD.get(r);return i?{schema:gD(i,n?`#${n}`:`#`),rootSchema:i,base:r}:null}function vD(e,t){let n=TypeError(t);throw n.code=e,n}function yD(e,t,n,r,i){let a;try{a=D_(e),h_(a,t,{base:n,resolveRef:_D}).length>0&&vD(r,i)}catch(e){if(e?.code===r)throw e;vD(r,i)}return a}function bD(e){return{domain:mD,expectedReadEventHead:e.expectedReadEventHead,choiceId:e.choiceId,choiceHash:e.choiceHash,submitArguments:e.submitArguments,note:e.note}}function xD(e){return M_(bD(D_(e)))}function SD(e){let t=yD(e,q_,`schemas/v2.0.0/operate-review-bound-submission.schema.json`,`RESULT_CONTRACT_INVALID`,`The bound Review submission does not satisfy its closed integrity contract.`);return(t.choiceHash!==M_(t.submitArguments)||t.boundSubmissionHash!==xD(t))&&vD(`RESULT_CONTRACT_INVALID`,`The bound Review submission does not satisfy its closed integrity contract.`),e}function CD(e,t){return e.choiceHash===M_(e.submitArguments)&&e.submitArguments.reviewId===t.review.reviewId&&e.submitArguments.cycleId===t.cycleId&&P_(e.submitArguments.actor,t.actor)&&P_(e.submitArguments.scope,t.scope)}function wD(e){let t=e.dispositionChoices,n=new Set(t.map(({choiceId:e})=>e)),r=new Set(t.map(({choiceHash:e})=>e));if(n.size!==t.length||r.size!==t.length||t.some(t=>!CD(t,e))||e.review.reviewId.length===0||e.review.cycleId!==e.cycleId||e.review.ownerActorId!==e.actor.actorId||e.review.state!==e.decision||e.review.disposition!==e.decision||!P_(e.review.workDispositions,e.appliedWorkDispositions)||e.eventHead.sequence!==e.readEventHead.sequence+1)return!1;let i=t.filter(t=>t.choiceId===e.appliedChoiceId&&t.choiceHash===e.appliedChoiceHash);if(i.length!==1)return!1;let[a]=i;if(a.submitArguments.disposition!==e.decision||!P_(a.submitArguments.workDispositions,e.appliedWorkDispositions)||e.summary.decisionCount!==e.decisions.length||e.summary.actionCount!==e.actions.length||e.summary.findingCount!==e.findings.length||e.summary.dissentCount!==e.dissent.length||e.summary.gapCount!==e.gaps.length)return!1;if(e.boundSubmission===void 0)return!0;try{SD(e.boundSubmission)}catch{return!1}return F_(e.boundSubmission.expectedReadEventHead,e.readEventHead)&&e.boundSubmission.choiceId===a.choiceId&&e.boundSubmission.choiceHash===a.choiceHash&&P_(e.boundSubmission.submitArguments,a.submitArguments)}function TD(e){let t=yD(e,Q_,`schemas/v2.0.0/operating-review-receipt.schema.json`,`E_OPERATE_REVIEW_RECEIPT_INVALID`,`The operating Review receipt does not satisfy its closed integrity contract.`);return eD(t),wD(t)||vD(`E_OPERATE_REVIEW_RECEIPT_INVALID`,`The operating Review receipt does not satisfy its closed integrity contract.`),e}var ED=/^sha256:[a-f0-9]{64}$/u,DD=new Set([`CONCURRENT_MODIFICATION`,`CAPABILITY_DENIED`,`OPERATION_UNCERTAIN`]);function OD(e=`OPERATE_RESPONSE_INVALID`){let t=Error(`The governed Review response was refused.`);throw t.name=e,t}function kD(e){return(typeof e!=`object`||!e||Array.isArray(e))&&OD(),e}function AD(e,t){let n=Object.keys(e).sort(),r=[...t].sort();(n.length!==r.length||n.some((e,t)=>e!==r[t]))&&OD()}function jD(e){let t=kD(e);AD(t,[`sequence`,`hash`]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&OD();let n=t.hash;return n!==null&&(typeof n!=`string`||!ED.test(n))&&OD(),t.sequence===0!=(n===null)&&OD(),Object.freeze({sequence:t.sequence,hash:n})}function MD(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function ND(e){return(!e||e.note!==null&&typeof e.note!=`string`)&&OD(`OPERATE_COMMAND_INVALID`),e.note===null?null:((e.note.length===0||e.note.length>2048||!/^\S(?:[\s\S]*\S)?$/u.test(e.note))&&OD(`OPERATE_COMMAND_INVALID`),e.note)}function PD(e,t){AD(e,[`ok`,`operation`,`error`,`allowedActions`]);let n=kD(e.error);AD(n,[`code`,`message`,`retryable`,`context`]),AD(kD(n.context),[]),(e.ok!==!1||e.operation!==`operate.review.submit`||typeof n.code!=`string`||!DD.has(n.code)||typeof n.message!=`string`||n.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length>16)&&OD();let r=e.allowedActions.map(e=>{let n=kD(e);AD(n,[`subjectId`,`action`]);let r=kD(n.action);return(n.subjectId!==t||r.tool!==`operate.review.submit`||r.effect!==`project-write`||typeof r.label!=`string`||r.arguments===null||typeof r.arguments!=`object`||Array.isArray(r.arguments))&&OD(),C_(r)});return Object.freeze({ok:!1,reasonCode:n.code,allowedActionDigests:Object.freeze(r)})}function FD(e,t,n,r,i){AD(e,[`ok`,`operation`,`data`,`allowedActions`,`eventHead`]),(e.ok!==!0||e.operation!==`operate.review.submit`||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&OD();let a=kD(e.data);AD(a,[`receipt`,`workspace`]);let o=tt(a.receipt);TD(o),o.boundSubmission===void 0&&OD();let s=SD(o.boundSubmission),c=tt(a.workspace);pD(c);let l=jD(e.eventHead),u=c.payload.data.terminalDisposition;return(t.cycleId===null||t.subjectId===null||r.allowedAction.tool!==`operate.review.submit`||r.allowedAction.effect!==`project-write`||o.cycleId!==t.cycleId||o.review.reviewId!==t.subjectId||o.actor.actorId!==t.actorId||o.scope.scopeId!==t.scopeId||o.scope.domainId!==t.domainId||o.scope.domainVersion!==t.domainVersion||!MD(o.readEventHead,n)||!MD(o.eventHead,l)||o.eventHead.sequence<=n.sequence||!MD(s.expectedReadEventHead,n)||s.note!==i||s.choiceId!==o.appliedChoiceId||s.choiceHash!==o.appliedChoiceHash||s.choiceHash!==C_(r.allowedAction.arguments)||C_(s.submitArguments)!==C_(r.allowedAction.arguments)||c.payload.actorId!==t.actorId||c.payload.cycleId!==t.cycleId||c.payload.reviewId!==t.subjectId||c.payload.sourceArtifactKind!==`operating-review-receipt`||c.payload.sourceArtifactHash!==C_(o)||c.payload.status!==`terminal`||c.payload.mutationEnabled||c.payload.data.choices.length!==0||u===null||u.receiptId!==o.receiptId||u.appliedChoiceId!==o.appliedChoiceId||u.appliedChoiceHash!==o.appliedChoiceHash||!MD(u.readEventHead,o.readEventHead)||!MD(u.eventHead,o.eventHead))&&OD(),Object.freeze({ok:!0,receipt:o,workspace:c,eventHead:l})}function ID(e){return lx({...e,routeKinds:[`operate.review`],routeErrorCode:`OPERATE_REVIEW_ROUTE_REQUIRED`,includeOriginHeader:!0,confirmation:{additionalBody(e,t){return{note:ND(t)}},parse({value:e,preview:t,identity:n,previousHead:r,input:i}){let a=kD(e);return a.ok===!1?PD(a,n.subjectId??``):FD(a,n,r,t,ND(i))}}})}function LD(e,t){return e?.sequence===t.sequence&&e.hash===t.hash}function RD(e){try{let t=z(e),n=A(t.route);return n.kind===`operate.review`&&t.productArea===`operate`&&t.cycleId===n.cycleId&&t.subjectId===n.subjectId&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function zD(e){let t=RD(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{pD(e);let n=e,r=n.payload;return r.cycleId!==t.cycleId||r.reviewId!==t.subjectId||r.actorId!==t.actorId||r.scopeId!==t.scopeId||r.domainId!==t.domainId||r.domainVersion!==t.domainVersion||!LD(t.eventHead,r.sourceEventHead)||r.sourceViewHash!==t.viewHash?!1:(pD(n,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:r.cycleId,reviewId:r.reviewId,sourceArtifactKind:r.sourceArtifactKind,sourceArtifactHash:r.sourceArtifactHash,sourceEventHead:r.sourceEventHead,sourceReadEventHead:r.sourceReadEventHead,sourceViewHash:r.sourceViewHash}),!0)}catch{return!1}}}function BD(e){let t=e.payload.data.capability,n=t.available?t.actions:[],r=e.payload.data.choices.map(r=>{let i=n.filter(({subjectId:t,action:n})=>t===e.payload.reviewId&&C_(n.arguments)===r.choiceHash);if(i.length>1||t.available&&i.length!==1)return null;let a=i[0]??null;return Object.freeze({choice:r,action:a,locator:a===null?null:Object.freeze({subjectId:e.payload.reviewId,actionDigest:C_(a.action)})})});return r.some(e=>e===null)?null:Object.freeze(r)}function VD(e,t){if(!V(e)||e.binding===null||e.data===null||!B(e.binding,t)||!zD(t)(e.data))return null;let n=e.data,r=BD(n);if(r===null)return null;let i=n.payload.status===`terminal`,a=i?`terminal`:e.kind===`ready`?n.payload.status:e.kind,o=!i&&n.payload.status===`ready`&&n.payload.mutationEnabled&&n.payload.data.capability.available&&r.every(({locator:e})=>e!==null)&&at(e,t);return Object.freeze({kind:`review`,binding:e.binding,workspace:n,payload:n.payload,presentation:a,choices:r,mutationEnabled:o,terminal:i})}var HD=new Set([`CAPABILITY_DENIED`,`CONCURRENT_MODIFICATION`,`OPERATE_ACTION_REFERENCE_STALE`,`OPERATE_BINDING_MISMATCH`,`OPERATE_PREVIEW_EXPIRED`,`OPERATE_PREVIEW_STALE`,`OPERATE_SESSION_EXPIRED`,`OPERATE_SESSION_STALE`]);function UD(e){if(!(e instanceof Error))return``;let t=e.code;return typeof t==`string`?t:e.name}function WD(e){let t=e.replaceAll(`-`,` `).replaceAll(`_`,` `);return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function GD(e,t){let n=e.workspace,r=z({...t.binding,eventHead:n.payload.sourceEventHead,viewHash:n.payload.sourceViewHash});return VD(it({kind:`read-only`,binding:r,data:n,reasonCodes:[`DASHBOARD_READ_ONLY`],error:null,mutationEnabled:!1,policy:ot(`read-only`)},{currentBinding:r,validateData:zD(r)}),r)}function KD({currentBinding:e,current:t,onRefetch:n,actions:r}){let i=(0,v.useMemo)(()=>VD(t,e),[t,e]),a=(0,v.useRef)(r??null),o=(0,v.useRef)(0),s=(0,v.useRef)(!1),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(null),[y,b]=(0,v.useState)(null),[x,S]=(0,v.useState)(null),C=i?JSON.stringify([i.binding.route,i.binding.eventHead,i.binding.viewHash]):`invalid`,w=i?JSON.stringify([i.binding.route,i.binding.actorId,i.binding.projectId,i.binding.scopeId,i.binding.domainId,i.binding.domainVersion,i.binding.cycleId,i.binding.subjectId,i.binding.generation]):`invalid`,T=(0,v.useRef)(C),E=(0,v.useRef)(w);T.current=C,E.current=w,(0,v.useEffect)(()=>{!a.current&&typeof window<`u`&&(a.current=ID({origin:window.location.origin})),i&&a.current?.bind(i.binding)},[i]),(0,v.useEffect)(()=>{T.current=C,o.current+=1,s.current=!1,a.current?.cancel(),l(null),d(e=>(e?.custody.cancel(),null)),p(null),h(null),b(null)},[C]),(0,v.useEffect)(()=>{S(e=>e?.scopeKey===w?e:null),_(e=>e===w?e:null);let e=requestAnimationFrame(()=>{E.current===w&&document.querySelector(`[data-route-kind="operate.review"] h1`)?.focus()});return()=>cancelAnimationFrame(e)},[w]),(0,v.useEffect)(()=>()=>{a.current?.dispose(),a.current=null},[]);let D=c?.bindingKey===C?i?.choices.find(({choice:e})=>e.choiceId===c.choiceId)??null:null,O=u?.bindingKey===C?u:null,k=x?.scopeKey===w?x.result:null,A=(0,v.useMemo)(()=>k&&i?GD(k,i):null,[k,i]),j=k?A:i,M=g===w,N=f===C,ee=m===C,P=j?.terminal?j.workspace:null,te=!(!i?.mutationEnabled||M||k),ne=N||O!==null||ee,re=(0,v.useCallback)(()=>{o.current+=1,u?.custody.cancel(),a.current?.cancel(),s.current=!1,d(null),p(null),h(null),requestAnimationFrame(()=>{T.current===C&&document.querySelector(`#op-review-choice-preview-trigger`)?.focus()})},[u,C]),ie=(0,v.useCallback)(async()=>{if(!i||!D?.locator||!te||N||s.current)return;let e=a.current;if(!e)return;let t=C,n=o.current+1;o.current=n;let r=D,c=Object.freeze({...D.locator});s.current=!0,p(t),b(null);let l=!1,u=!1;try{e.bind(i.binding);let a=await e.preview(c);if(T.current!==t||o.current!==n){a.cancel();return}l=!0,d(Object.freeze({bindingKey:t,epoch:n,choiceId:r.choice.choiceId,choiceHash:r.choice.choiceHash,locator:c,choice:r,custody:a}))}catch(e){if(T.current!==t||o.current!==n)return;let r=UD(e);if(r===`AbortError`)return;r===`OPERATION_UNCERTAIN`&&(u=!0,_(w)),b({tone:r===`OPERATION_UNCERTAIN`?`attention`:`refusal`,text:r===`OPERATION_UNCERTAIN`?`The preview outcome is uncertain. This Review is locked against blind retry.`:`The exact Review preview was refused. Refresh current Review truth before trying again.`})}finally{T.current===t&&o.current===n&&(p(null),!l&&!u&&(s.current=!1))}},[C,i,te,N,w,D]),ae=(0,v.useCallback)(async e=>{if(!O||ee)return;let t=O,r=t.bindingKey,i=w;h(r);try{let c=await t.custody.confirm({note:e});if(T.current!==r||E.current!==i||o.current!==t.epoch)return;if(c.ok){S(Object.freeze({scopeKey:i,result:c})),b({tone:`verified`,text:`The immutable Review receipt was recorded.`}),d(null),s.current=!1,await n?.().catch(()=>void 0),requestAnimationFrame(()=>{E.current===i&&document.querySelector(`#op-review-receipt-title`)?.focus()});return}if(d(null),a.current?.cancel(),c.reasonCode===`OPERATION_UNCERTAIN`){_(i),b({tone:`attention`,text:`The durable result is uncertain. Open Recovery; do not submit this choice again.`});return}s.current=!1,b({tone:c.reasonCode===`CONCURRENT_MODIFICATION`?`attention`:`refusal`,text:c.reasonCode===`CONCURRENT_MODIFICATION`?`Review truth changed. ${c.allowedActionDigests.length} current legal choices are available after refresh.`:`The owner capability no longer permits this Review choice.`}),await n?.().catch(()=>void 0)}catch(e){if(T.current!==r||E.current!==i||o.current!==t.epoch)return;let c=UD(e);if(c===`AbortError`)return;if(t.custody.cancel(),a.current?.cancel(),d(null),c===`OPERATION_UNCERTAIN`||!HD.has(c)){_(i),b({tone:`attention`,text:`The durable result is uncertain. Open Recovery; do not submit this choice again.`});return}s.current=!1,b({tone:c===`CAPABILITY_DENIED`?`refusal`:`attention`,text:c===`CAPABILITY_DENIED`?`The owner capability no longer permits this Review choice.`:`Review truth changed or the preview expired. Current legal choices are being refreshed.`}),await n?.().catch(()=>void 0)}finally{T.current===r&&h(null)}},[O,ee,n,w]);if(!j)return(0,F.jsx)(`div`,{className:`op-workspace op-review pc-operate`,"data-route-kind":`operate.review`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Review projection`,title:`Review cannot be trusted`,description:`The owner-issued Review workspace did not pass exact route, actor, event, and integrity validation.`})});let{data:oe}=j.payload;return(0,F.jsxs)(`article`,{className:`op-workspace op-review pc-operate`,"data-route-kind":`operate.review`,"data-review-presentation":k?`terminal`:j.presentation,children:[(0,F.jsxs)(`nav`,{"aria-label":`Review breadcrumb`,className:`op-review__breadcrumb`,children:[(0,F.jsx)(`a`,{href:`#/operate/cycles/${encodeURIComponent(j.payload.cycleId)}`,children:`Cycle`}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),(0,F.jsx)(`span`,{"aria-current":`page`,children:`Review`})]}),(0,F.jsxs)(`header`,{className:`op-review__hero`,"data-review-useful":``,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`planr-operate · executive decision docket`}),(0,F.jsx)(`h1`,{tabIndex:-1,children:`Owner Review`}),(0,F.jsx)(`p`,{className:`op-review__lede`,children:oe.executiveSummary.text}),(0,F.jsx)(Fm,{state:k?`terminal`:j.presentation,label:WD(k?`terminal`:j.presentation)})]}),(0,F.jsxs)(`dl`,{className:`op-review__status`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Status`}),(0,F.jsx)(`dd`,{children:WD(k?`terminal`:j.presentation)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Choices`}),(0,F.jsx)(`dd`,{children:j.choices.length})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Proof`}),(0,F.jsx)(`dd`,{children:WD(oe.truthSummary.proof.status)})]})]})]}),j.presentation!==`ready`&&!k?(0,F.jsxs)(`p`,{className:`pc-operate__notice`,role:`status`,children:[`Verified Review content remains visible on this`,` `,WD(j.presentation).toLocaleLowerCase(`en-US`),` workspace. Mutation is unavailable.`]}):null,y?(0,F.jsx)(`p`,{className:`pc-operate__notice`,"data-tone":y.tone,role:`status`,"aria-live":`polite`,children:y.text}):null,M?(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Uncertain Review submission`,title:`Blind retry is locked`,description:`A Review event may have committed. Inspect canonical recovery state before taking another action.`,actions:(0,F.jsx)(`a`,{className:`op-inline-action`,href:`#/operate/recovery`,children:`Open Recovery`})}):null,(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-recommendation-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Recommendation`}),(0,F.jsx)(`h2`,{id:`op-review-recommendation-title`,children:`What the board recommends`})]}),oe.recommendation.status===`available`?(0,F.jsx)(`ol`,{className:`op-review__recommendations`,children:oe.recommendation.items.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`h3`,{children:e.title}),(0,F.jsx)(`p`,{children:e.outcome??e.rationale}),(0,F.jsxs)(`dl`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Upside`}),(0,F.jsx)(`dd`,{children:e.expectedUpside})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Downside`}),(0,F.jsx)(`dd`,{children:e.expectedDownside})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Confidence`}),(0,F.jsxs)(`dd`,{children:[Math.round(e.confidence*100),`%`]})]})]})]},e.decisionId))}):(0,F.jsx)(`p`,{children:oe.recommendation.absence.message})]}),P?null:(0,F.jsxs)(`section`,{className:`op-review__section`,"aria-labelledby":`op-review-choices-title`,children:[(0,F.jsxs)(`div`,{className:`op-review__section-heading`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Owner choices`}),(0,F.jsx)(`h2`,{id:`op-review-choices-title`,children:`Choose the record to make`})]}),j.choices.length?(0,F.jsxs)(`div`,{className:`op-review__choice-layout`,children:[(0,F.jsxs)(`fieldset`,{disabled:!te||ne,children:[(0,F.jsx)(`legend`,{children:`Select one exact choice. Nothing changes until confirmation.`}),j.choices.map(e=>(0,F.jsxs)(`label`,{className:`op-review__choice`,children:[(0,F.jsx)(`input`,{type:`radio`,name:`review-choice`,value:e.choice.choiceId,checked:D?.choice.choiceId===e.choice.choiceId,onChange:()=>{s.current||l(Object.freeze({bindingKey:C,choiceId:e.choice.choiceId}))}}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`strong`,{children:e.choice.label}),(0,F.jsx)(`small`,{children:e.choice.consequence})]})]},e.choice.choiceId))]}),(0,F.jsx)(`aside`,{className:`op-review__choice-brief`,"aria-live":`polite`,children:D?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Selected consequence`}),(0,F.jsx)(`h3`,{children:D.choice.label}),(0,F.jsx)(`p`,{children:D.choice.consequence}),(0,F.jsxs)(`p`,{children:[(0,F.jsx)(`strong`,{children:`Authority:`}),` Review only. External effects are not authorized.`]}),(0,F.jsx)(Mm,{id:`op-review-choice-preview-trigger`,disabled:!te||!D.locator||ne,disabledReason:oe.capability.reason?.message??`This exact choice is unavailable.`,pendingLabel:`Verifying exact preview`,"aria-haspopup":`dialog`,onInvoke:ie,children:`Review exact choice`})]}):(0,F.jsx)(`p`,{children:`Select a choice to compare its exact consequence and dispositions.`})})]}):(0,F.jsx)(`p`,{children:oe.capability.reason?.message??`This Review has no choices to submit.`})]}),(0,F.jsx)(JE,{model:j}),P?(0,F.jsx)(YE,{workspace:P,receipt:k?.receipt}):null,(0,F.jsxs)(`details`,{className:`op-review__section`,children:[(0,F.jsx)(`summary`,{children:`Workspace custody`}),(0,F.jsxs)(`dl`,{className:`op-review__technical`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Review ID`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:j.payload.reviewId})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Cycle ID`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:j.payload.cycleId})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Source event`}),(0,F.jsxs)(`dd`,{children:[j.payload.sourceEventHead.sequence,` ·`,` `,(0,F.jsx)(`code`,{children:j.payload.sourceEventHead.hash??`genesis`})]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Source view`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:j.payload.sourceViewHash})})]})]})]}),(0,F.jsx)(VE,{choice:O?.choice??null,custody:O?.custody??null,confirming:ee,onCancel:re,onConfirm:ae},O?.custody.preview.previewId??`closed`)]})}var qD=Object.freeze({Page:KD,createValidator:zD});function JD(e,t){return e.continuation?e.continuation.action.effect!==`read-only`&&!e.mutationEnabled?`This view is read-only, so changes are unavailable.`:t?null:`This next step is visible, but its command control is unavailable.`:`No next step is available for this active work.`}function YD({model:e,onContinuation:t}){let n=e.priorityAttention,r=e.continuation,i=oT(e,e.activeCycle.cycleId),a=r?e.actions.find(e=>e.actionId===r.subjectId)??null:null,o=JD(e,t!==void 0),s=e.activeCycle.deepLink;return(0,F.jsxs)(`section`,{className:`op-today-focus`,"aria-labelledby":`op-today-focus-title`,children:[(0,F.jsx)(`div`,{className:`op-today-focus__custody`,children:(0,F.jsx)(`p`,{className:`op-eyebrow`,children:n?`Priority focus`:`Current work`})}),(0,F.jsxs)(`div`,{className:`op-today-focus__question`,children:[(0,F.jsx)(`h2`,{id:`op-today-focus-title`,children:n?.title??`Continue this work`}),(0,F.jsx)(`p`,{children:n?.whyNow??e.activeCycle.focus[0]??`Review the active work before continuing.`})]}),(0,F.jsxs)(`dl`,{className:`op-today-focus__brief`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Expected result`}),(0,F.jsx)(`dd`,{children:a?.expectedResult??n?.consequence??`Not projected on Today.`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Consequence`}),(0,F.jsx)(`dd`,{children:n?.consequence??`No consequence was projected for this attention item.`})]})]}),e.continuationRelationship?.kind===`different-subject`?(0,F.jsxs)(`div`,{className:`op-today-focus__relationship`,role:`note`,children:[(0,F.jsxs)(`p`,{children:[`The available next step relates to this priority item`,s?(0,F.jsxs)(F.Fragment,{children:[`. Review the `,(0,F.jsx)(`a`,{href:s,children:`active work`}),` before continuing.`]}):`.`]}),(0,F.jsxs)(`details`,{className:`op-binding-passport__details`,children:[(0,F.jsx)(`summary`,{children:`Relationship details`}),(0,F.jsxs)(`dl`,{className:`op-today__status`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Focus item`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.continuationRelationship.attentionSubjectId})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Next-step item`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.continuationRelationship.continuationSubjectId})})]})]})]})]}):null,(0,F.jsxs)(`div`,{className:`op-today-focus__actions`,children:[i?(0,F.jsx)(`a`,{className:`op-today-focus__evidence-link`,"data-review-navigation":``,"data-review-read-action-digest":i.readActionDigest,href:i.deepLink,children:`Open Review`}):r&&!o&&t?(0,F.jsx)(Mm,{onInvoke:()=>t(r),children:r.action.label}):(0,F.jsx)(Mm,{disabled:!0,disabledReason:o??`The next step is unavailable.`,children:r?.action.label??`No next step available`}),(0,F.jsx)(`a`,{className:`op-today-focus__evidence-link`,href:`#/operate/evidence`,children:`View evidence`}),(0,F.jsx)(`small`,{children:`Changes take effect only after confirmation and verification.`})]})]})}function XD(e,t){return e===null?`Not observed`:t?`${e} ${t}`:String(e)}function ZD(e){return e.split(/[-_]/u).filter(Boolean).map(e=>`${e.slice(0,1).toUpperCase()}${e.slice(1)}`).join(` `)}function QD(e,t){let n=ZD(e),r=ZD(t);return n===r?`${n} data`:`${n} data · ${r}`}function $D({model:e,idPrefix:t}){let n=e.attention.flatMap(e=>e.evidenceRefIds.map(t=>({attentionId:e.attentionId,evidenceRefId:t})));return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`op-today-evidence__summary`,children:[(0,F.jsxs)(`span`,{children:[n.length,` linked`]}),(0,F.jsxs)(`span`,{children:[e.domainMetrics.length,` metric`,e.domainMetrics.length===1?``:`s`]})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`${t}-metrics`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,id:`${t}-metrics`,children:e.vocabulary.signals}),e.domainMetrics.length>0?(0,F.jsx)(`dl`,{className:`op-today-evidence__metrics`,children:e.domainMetrics.map(e=>(0,F.jsxs)(`div`,{"data-freshness":e.freshness,children:[(0,F.jsx)(`dt`,{children:e.title??`Key signal`}),(0,F.jsxs)(`dd`,{children:[(0,F.jsx)(`span`,{children:XD(e.value,e.unit)}),(0,F.jsx)(`small`,{children:QD(e.freshness,e.state)})]})]},e.metricId))}):(0,F.jsx)(`p`,{children:`No signal is available for this workspace yet.`})]}),(0,F.jsxs)(`section`,{"aria-labelledby":`${t}-evidence-refs`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,id:`${t}-evidence-refs`,children:`Supporting evidence`}),n.length>0?(0,F.jsxs)(`p`,{children:[n.length,` supporting record`,n.length===1?``:`s`,` are available in Evidence.`]}):(0,F.jsx)(`p`,{children:`No supporting record is linked to this focus yet.`})]}),(0,F.jsxs)(`details`,{className:`op-binding-passport__details`,children:[(0,F.jsx)(`summary`,{children:`Technical details`}),(0,F.jsxs)(`dl`,{className:`op-today-evidence__custody`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Supporting records`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:n.length>0?n.map(e=>e.evidenceRefId).join(` · `):`None`})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Event record`}),(0,F.jsx)(`dd`,{children:(0,F.jsxs)(`code`,{children:[e.surface.eventHead.sequence,` · `,e.surface.eventHead.hash??`genesis`]})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`View hash`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`code`,{children:e.surface.viewHash})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Generated`}),(0,F.jsx)(`dd`,{children:(0,F.jsx)(`time`,{dateTime:e.surface.generatedAt,children:e.surface.generatedAt})})]})]})]})]})}function eO({model:e,mode:t}){let n=`op-today-evidence-${t}-${e.binding.generation}`;return t===`compact`?(0,F.jsxs)(`details`,{className:`op-today-evidence op-today-evidence--compact`,children:[(0,F.jsx)(`summary`,{children:`Evidence`}),(0,F.jsx)(`div`,{className:`op-today-evidence__body`,children:(0,F.jsx)($D,{model:e,idPrefix:n})})]}):(0,F.jsxs)(`aside`,{className:`op-today-evidence op-today-evidence--wide`,"aria-label":`Evidence`,children:[(0,F.jsx)(`h2`,{children:`Evidence`}),(0,F.jsx)($D,{model:e,idPrefix:n})]})}var tO=Object.freeze({ready:`ready`,"read-only":`read-only`,stale:`stale`,partial:`partial`,blocked:`blocked`,offline:`offline`});function nO(e){return Object.freeze(e===`business`?{domain:`business`,title:`Business Today`,context:`Business context`,signals:`Business signals`,cycle:`Business Cycle`}:e===`software`?{domain:`repository`,title:`Repository Today`,context:`Repository context`,signals:`Repository signals`,cycle:`Repository Cycle`}:{domain:`operating`,title:`Operate Today`,context:`Operating context`,signals:`Operating signals`,cycle:`Operating Cycle`})}function rO(e){try{let t=z(e);return t.productArea===`operate`&&t.route===`#/operate/today`&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function iO(e){let t=rO(e);return e=>{if(!t||!Object.isFrozen(e))return!1;try{let n=gb(e),r=n.payload;return r.surface!==`today`||t.eventHead===null||t.viewHash===null||r.eventHead.sequence!==t.eventHead.sequence||r.eventHead.hash!==t.eventHead.hash?!1:(gb(n,Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:t.viewHash,surface:`today`,subjectId:null,cycleId:t.cycleId})),!0)}catch{return!1}}}function aO(e,t){return iO(t)(e)?e:null}function oO(e,t,n){if(!V(e)||e.binding===null||e.data===null||!B(e.binding,t))return null;let r=tO[e.kind];if(r===void 0)return null;let i=aO(e.data,t);if(i?.payload.surface!==`today`)return null;let a=i.payload;if(a.status!==r||a.mutationEnabled!==e.mutationEnabled||a.data.activeCycle===null||t.cycleId===null||a.data.activeCycle.cycleId!==t.cycleId)return null;let o=a.data.attention[0]??null,s=a.data.allowedActions[0]??null,c=o&&s?Object.freeze({kind:o.subjectId===s.subjectId?`same-subject`:`different-subject`,attentionSubjectId:o.subjectId,continuationSubjectId:s.subjectId}):null;return Object.freeze({kind:`surface`,source:n,presentation:r,binding:e.binding,display:i,vocabulary:nO(a.domainId),surface:a,attention:a.data.attention,domainMetrics:a.data.domainMetrics,activeCycle:a.data.activeCycle,inbox:a.data.inbox,actions:a.data.actions,outcomes:a.data.outcomes,allowedActions:a.data.allowedActions,priorityAttention:o,currentStage:a.data.activeCycle.stages.find(e=>e.state===`current`)??null,continuation:s,continuationRelationship:c,mutationEnabled:e.mutationEnabled&&a.mutationEnabled})}function sO(e,t){return!V(e)||e.kind!==`first-use`&&e.kind!==`empty`||e.binding===null||e.data!==null||e.mutationEnabled||t.cycleId!==null||!B(e.binding,t)?null:Object.freeze({kind:e.kind,source:`current`,binding:e.binding,vocabulary:nO(t.domainId),reasonCodes:e.reasonCodes,continuation:null,continuationAvailability:`not-returned`})}function cO(e,t){let n=rO(t);if(!n)return null;if(e.resumable){let t=oO(e.resumable,n,`durable-resume`);if(t)return t}return oO(e.current,n,`current`)??sO(e.current,n)}function lO(e){let t=e.domainMetrics[0];if(t){let e=t.title??`A key signal`;if(t.change)return`${e} ${{added:`is now available.`,removed:`is no longer available.`,changed:`has changed.`,stale:`may be out of date.`,conflict:`needs review.`}[t.change.kind]}`;let n=t.value===null?null:String(t.value);return n?`${e} is currently ${n}${t.unit?` ${t.unit}`:``}.`:`${e} is current.`}return e.priorityAttention?.whyNow??`A fuller update is not available yet.`}function uO(e){return e.split(/[-_]/u).filter(Boolean).map(e=>`${e.slice(0,1).toUpperCase()}${e.slice(1)}`).join(` `)}function dO(e){return{decision:`Decision`,approval:`Approval`,action:`Action`,verification:`Verification`,outcome:`Outcome`,uncertainty:`Open question`}[e]}function fO({model:e}){let t=e.kind===`first-use`;return(0,F.jsxs)(`div`,{className:`op-workspace op-today pc-operate`,"data-route-kind":`operate.today`,children:[(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · today · ${e.vocabulary.context}`,title:e.vocabulary.title,description:`Choose a workspace to see what needs attention.`}),(0,F.jsx)(Y,{state:`first-use`,eyebrow:t?`First use`:`Exact empty state`,title:t?`No active work yet`:`Nothing active here yet`,description:t?`Choose a workspace from the available project context to get started.`:`There is no active work in this workspace right now.`}),(0,F.jsx)(`p`,{className:`op-today__context-note`,children:`No next step is available until work is returned for this workspace.`})]})}function pO({currentBinding:e,sources:t,onContinuation:n}){let r=cO(t,e);return r?r.kind===`surface`?(0,F.jsxs)(`div`,{className:`op-workspace op-today pc-operate`,"data-route-kind":`operate.today`,"data-today-presentation":r.presentation,"data-today-source":r.source,children:[(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-operate · today · ${r.vocabulary.context}`,title:r.priorityAttention?.title??r.activeCycle.focus[0]??`Continue this work`,description:lO(r),actions:(0,F.jsx)(Fm,{state:r.presentation,label:uO(r.presentation)})}),r.source===`durable-resume`?(0,F.jsx)(`p`,{className:`pc-operate__notice`,"data-tone":`verified`,role:`status`,children:`Your active work has been restored.`}):null,r.presentation===`ready`?null:(0,F.jsxs)(`p`,{className:`pc-operate__notice`,role:`status`,children:[`This is a `,r.presentation,` projection. Current access-safe truth remains visible; mutation stays unavailable.`]}),(0,F.jsx)(OT,{stages:r.activeCycle.stages,cycleId:r.activeCycle.cycleId,health:r.activeCycle.health,title:r.currentStage?TT(r.currentStage.id):r.activeCycle.state,labelledBy:`op-today-spine-title`}),(0,F.jsxs)(`div`,{className:`op-today__desk-layout`,children:[(0,F.jsxs)(`section`,{className:`op-today__work`,"aria-label":`Today decision workspace`,children:[(0,F.jsx)(YD,{model:r,onContinuation:n}),(0,F.jsxs)(`section`,{className:`pc-operate__section`,"aria-label":`What needs attention now`,children:[(0,F.jsx)(Jp,{headingLevel:2,title:`What needs attention now`,count:`${r.attention.length} item${r.attention.length===1?``:`s`}`}),r.attention.length>0?(0,F.jsx)(`ol`,{className:`pc-operate__records`,children:r.attention.map(e=>(0,F.jsxs)(`li`,{className:`pc-operate__record`,children:[(0,F.jsxs)(`div`,{className:`pc-operate__record-head`,children:[(0,F.jsxs)(`h3`,{className:`pc-operate__record-title`,children:[(0,F.jsx)(`span`,{className:`pc-operate__record-index`,children:dO(e.kind)}),` `,e.title]}),(0,F.jsx)(Fm,{state:e.state})]}),(0,F.jsx)(`p`,{className:`pc-operate__record-facts`,children:e.whyNow})]},e.attentionId))}):(0,F.jsx)(`p`,{className:`pc-operate__notice`,children:`Nothing else needs attention in this active workspace.`})]})]}),(0,F.jsx)(eO,{model:r,mode:`wide`}),(0,F.jsx)(eO,{model:r,mode:`compact`})]})]}):(0,F.jsx)(fO,{model:r}):(0,F.jsx)(`div`,{className:`op-workspace op-today pc-operate`,"data-route-kind":`operate.today`,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Today projection`,title:`Today cannot be trusted`,description:`The returned state did not match the exact current binding and Today contract.`})})}var mO=Object.freeze({Page:pO,createValidator:iO}),hO=Object.freeze({actions:XS,audit:DC,cycles:rE,inboxRecovery:RE,review:qD,today:mO});function gO(e){let t=e.frontmatter.updated;return t!=null&&t!==``}function _O({currentBinding:e,current:t}){let n=Fh(t,e);if(!n)return(0,F.jsx)(Lh,{routeKind:`planning.activity`,title:`Planning cannot be trusted`});let r=n.graph.nodes.length,i=n.graph.nodes.filter(gO).length;return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-pipeline pc-activity`,"data-route-kind":`planning.activity`,children:[(0,F.jsx)(Ih,{presentation:n.presentation}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-status`,title:`Activity`,description:`Owner-issued watcher patches only. A graph snapshot is not a change log.`}),(0,F.jsxs)(zp,{padding:0,children:[(0,F.jsx)(Bp,{icon:`activity`,title:`No activity returned`,description:`Activity is a live patch feed, not a history. This route was given a graph snapshot, which carries no change log — so empty is the normal state, not an error.`}),(0,F.jsxs)(`div`,{className:`pc-activity__aid`,children:[(0,F.jsx)(em,{command:`/planr-status`,label:`inspect delivery status without changing state`,size:`sm`}),(0,F.jsx)($p,{tone:`info`,title:`Looking for what changed?`,children:i>0?(0,F.jsxs)(F.Fragment,{children:[`A graph snapshot carries no history. The nearest signal is each item's`,` `,(0,F.jsx)(`code`,{className:`pc-activity__code`,children:`updated`}),` frontmatter — `,i,` of`,` `,r,` items carry one — shown on List.`]}):(0,F.jsxs)(F.Fragment,{children:[`A graph snapshot carries no history, and no item in this snapshot carries`,` `,(0,F.jsx)(`code`,{className:`pc-activity__code`,children:`updated`}),` frontmatter.`]})})]})]})]})}function vO(e,t){let n=e[t];return typeof n==`string`&&n.trim()!==``?n:null}function yO(e){let t=e.frontmatter.dependsOn;return Object.freeze({kind:`node`,id:e.id,type:e.type,title:e.title,status:e.status,sprintId:vO(e.frontmatter,`sprintId`)??vO(e.frontmatter,`sprint`),updated:vO(e.frontmatter,`updated`),dependsOn:Object.freeze(Array.isArray(t)?t.filter(e=>typeof e==`string`):[]),ref:e.githubIssue===void 0?e.linearIssueIdentifier??null:`#${e.githubIssue}`,href:Og(e)})}function bO(e){Dy(yO(e))}function xO(e,t){let n=e.frontmatter[t];return typeof n==`string`&&n.trim()!==``?n:null}function SO(e){return xO(e,`sprintId`)??xO(e,`sprint`)}function CO(e){return rm.map(t=>({key:t,label:t,nodes:e.filter(e=>e.status===t)}))}function wO(e){return`${e} ${e===1?`artifact`:`artifacts`}`}function TO({node:e}){let t=SO(e),n=xO(e,`updated`);return(0,F.jsxs)(`button`,{type:`button`,className:`pc-status-board__card`,onClick:()=>bO(e),children:[(0,F.jsx)(dm,{type:e.type,id:sg(e)}),(0,F.jsx)(`span`,{className:`pc-status-board__title`,children:e.title}),(0,F.jsxs)(`span`,{className:`pc-status-board__foot`,children:[t?(0,F.jsx)(`span`,{className:`pc-status-board__sprint`,children:t}):null,(0,F.jsx)(`span`,{className:`pc-status-board__updated`,children:n??(0,F.jsx)(km,{})})]})]})}function EO({group:e,byStatus:t}){return(0,F.jsxs)(`section`,{className:`pc-status-board__column`,"aria-label":e.label,children:[(0,F.jsxs)(`header`,{className:`pc-status-board__head`,children:[t?(0,F.jsx)(am,{status:e.key,size:`sm`}):(0,F.jsx)(`span`,{className:`pc-status-board__label`,children:e.label}),(0,F.jsx)(`span`,{className:`pc-status-board__count`,children:e.nodes.length})]}),(0,F.jsxs)(`div`,{className:`pc-status-board__cards`,children:[e.nodes.map(e=>(0,F.jsx)(TO,{node:e},e.id)),e.nodes.length===0?(0,F.jsx)(`span`,{className:`pc-status-board__empty`,children:`empty`}):null]})]})}function DO({currentBinding:e,current:t}){let[n,r]=(0,v.useState)(`status`),i=Fh(t,e);if(!i)return(0,F.jsx)(Lh,{routeKind:`planning.board`,title:`Planning cannot be trusted`});let a=i.graph.nodes.filter(e=>e.type!==`sprint`),o=vg(a),s=o.find(e=>e.key===n),c=s?.key??`status`,l=c===`status`,u=l?CO(a):bg(a,c),d=s?.label.toLowerCase()??`status`;return(0,F.jsxs)(`div`,{className:`op-workspace op-planning op-planning--board pc-pipeline`,"data-route-kind":`planning.board`,children:[(0,F.jsx)(Ih,{presentation:i.presentation}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-status · board`,title:`Board`,count:wO(a.length),description:`Grouped by ${d}. Read-only — status changes come from the CLI lifecycle.`}),a.length===0?(0,F.jsx)(Bp,{icon:`columns-3`,title:`No artifacts yet`,description:`The board fills in as the graph gains epics, features, stories and tasks.`,action:(0,F.jsx)(em,{command:`/planr-plan`,label:`create the graph`,size:`sm`})}):(0,F.jsxs)(F.Fragment,{children:[o.length>1?(0,F.jsxs)(Kp,{children:[(0,F.jsx)(`span`,{className:`pc-status-board__group`,children:`group by`}),(0,F.jsx)(Xp,{value:c,onChange:r,options:o.map(e=>({value:e.key,label:e.label})),ariaLabel:`Group by`,size:`sm`})]}):null,(0,F.jsx)(`div`,{className:`pc-status-board`,children:u.map(e=>(0,F.jsx)(EO,{group:e,byStatus:l},e.key||`none`))})]})]})}var OO=(e,t,n)=>({id:e,summary:t,view:n,command:`/${e}`}),kO=Object.freeze([{id:`lifecycle`,title:`Plan & deliver`,description:`Shape intent into work, review it, implement it, and land it.`,capabilities:Object.freeze([OO(`planr-spec`,`Shape vague intent into a measurable, Protocol-compatible specification.`,`#/list`),OO(`planr-plan`,`Turn a specification or intent into schema-compatible stories and tasks.`,`#/board`),OO(`planr-plan-review`,`Review a plan for product, engineering, design, and DX problems.`,`#/board`),OO(`planr-ship`,`Implement a plan, specification, task, or clearly stated request.`,`#/board`),OO(`planr-land`,`Assess release readiness and prepare a landing sequence.`,`#/overview`),OO(`planr-status`,`Inspect project or one feature's delivery status without changing state.`,`#/overview`)])},{id:`operate`,title:`Operate`,description:`Run operating cycles and executive reviews over delivered work.`,capabilities:Object.freeze([OO(`planr-operate`,`Run a focused operating review across executive lenses and produce a board report.`,`#/operate/today`)])},{id:`review-board`,title:`Executive review board`,description:`Grounded single-lens reviews and their synthesis for an Operate cycle.`,capabilities:Object.freeze([OO(`planr-ceo-review`,`Grounded strategy and finance review for an Operate cycle.`,`#/operate/cycles`),OO(`planr-cpo-review`,`Grounded product and activation review for an Operate cycle.`,`#/operate/cycles`),OO(`planr-cto-review`,`Grounded technology and delivery-risk review for an Operate cycle.`,`#/operate/cycles`),OO(`planr-cmo-review`,`Grounded market and growth review for an Operate cycle.`,`#/operate/cycles`),OO(`planr-coo-review`,`Grounded operations and customer-health review for an Operate cycle.`,`#/operate/cycles`),OO(`planr-challenger-review`,`Challenge a cycle's claims, alternatives, downside, and confidence.`,`#/operate/cycles`),OO(`planr-chair-review`,`Synthesize a cycle into a prioritized decision queue and action plan.`,`#/operate/cycles`)])},{id:`design`,title:`Design & artifacts`,description:`Explore, review, and produce visual and document artifacts.`,capabilities:Object.freeze([OO(`planr-design`,`Create or route a product-design workflow using portable boards.`,null),OO(`planr-design-loop`,`Explore multiple design directions and collect pinned board feedback.`,null),OO(`planr-design-review`,`Review and revise an existing design from pinned board feedback.`,null),OO(`planr-diagram`,`Create, inspect, verify, or rerender professional offline diagrams.`,null),OO(`planr-artifact`,`Open, share, import, or export an HTML artifact review.`,null)])},{id:`maintain`,title:`Investigate & maintain`,description:`Diagnose problems, verify behavior, and keep planning state healthy.`,capabilities:Object.freeze([OO(`planr-investigate`,`Diagnose a bug, regression, or unexplained behavior, and optionally fix it.`,null),OO(`planr-browser-qa`,`Browser-backed QA over real routes, forms, viewports, accessibility, and network.`,null),OO(`planr-doctor`,`Diagnose CLI, pipeline, runtime-adapter, and installation problems.`,`#/diagnostics`),OO(`planr-sync`,`Audit planning artifacts for graph and protocol drift.`,`#/activity`),OO(`planr-dashboard`,`Start or inspect this loopback-only planning dashboard.`,`#/overview`)])}]),AO=kO.reduce((e,t)=>e+t.capabilities.length,0),jO=[{key:`id`,label:`Skill`,width:190,render:e=>(0,F.jsx)(pm,{name:e.id,size:`sm`})},{key:`summary`,label:`Purpose`,render:e=>(0,F.jsx)(Om,{children:e.summary})},{key:`view`,label:`Dashboard`,width:132,render:e=>{let t=e.view?N(e.view):null;return t?(0,F.jsx)(`a`,{className:`pc-console__link`,href:t,children:e.view}):(0,F.jsx)(km,{})}},{key:`command`,label:`Invocation`,width:268,render:e=>(0,F.jsx)(em,{command:e.command,size:`sm`})}];function MO(e,t){return`${e.id} ${e.summary}`.toLowerCase().includes(t)}function NO(){let[e,t]=(0,v.useState)(``),n=e.trim().toLowerCase(),r=kO.map(e=>({id:e.id,title:e.title,capabilities:n?e.capabilities.filter(e=>MO(e,n)):e.capabilities})).filter(e=>e.capabilities.length>0),i=r.reduce((e,t)=>e+t.capabilities.length,0);return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-console`,"data-route-kind":`planning.console`,children:[(0,F.jsx)(Jp,{eyebrow:`planr-dashboard · console`,title:`Console`,count:`${AO} skills`,description:`The static catalog of planr-* skills, in their shipped groups. Reference only — the console cannot invoke them.`}),(0,F.jsxs)(Kp,{children:[(0,F.jsx)(Yp,{size:`sm`,icon:`search`,placeholder:`Filter skills`,ariaLabel:`Filter skills`,value:e,onChange:t,width:220}),(0,F.jsx)(qp,{}),(0,F.jsxs)(`span`,{className:`pc-console__shown`,children:[i,` shown`]})]}),(0,F.jsx)(`div`,{className:`pc-console__catalog`,children:r.length===0?(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`search`,title:`No skill matches this filter`,description:`Filter by skill name or purpose.`})}):r.map(e=>(0,F.jsx)(zp,{title:e.title,meta:String(e.capabilities.length),padding:0,children:(0,F.jsx)(nm,{compact:!0,columns:jO,rows:e.capabilities,caption:e.title})},e.id))})]})}function PO({label:e,value:t}){return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:e}),(0,F.jsx)(`dd`,{children:t==null||t===``?`Not available`:t})]})}function FO({origin:e}){let t=e.eventHead.sequence===null?null:`${e.eventHead.sequence} · ${e.eventHead.hash??`genesis`}`;return(0,F.jsxs)(`details`,{className:`op-planning-origin__details`,children:[(0,F.jsx)(`summary`,{children:`Origin integrity details`}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(PO,{label:`Proposal`,value:e.proposalId}),(0,F.jsx)(PO,{label:`Proposal revision`,value:e.proposalRevision}),(0,F.jsx)(PO,{label:`Proposal digest`,value:e.proposalHash}),(0,F.jsx)(PO,{label:`Event head`,value:t}),(0,F.jsx)(PO,{label:`Origin digest`,value:e.originHash}),(0,F.jsx)(PO,{label:`Planning receipt`,value:e.transaction.receiptHash}),(0,F.jsx)(PO,{label:`Planning provenance`,value:e.transaction.planningProvenanceEventId}),(0,F.jsx)(PO,{label:`Verification plan`,value:typeof e.verification.verificationPlanId==`string`?e.verification.verificationPlanId:null}),(0,F.jsx)(PO,{label:`Metric`,value:typeof e.metric.metricId==`string`?e.metric.metricId:null})]})]})}function IO({envelope:e,title:t,summary:n}){let r=e&&typeof e==`object`?e:{},i=Zx(r.origin??e),a=$x(i),o=t??(i.spec.specId?`Why ${i.spec.specId} exists`:`Why this Planning work exists`);return(0,F.jsxs)(`section`,{className:`op-planning-origin planning-operating-origin`,"aria-label":`Operating origin and delivery trace`,"data-origin-state":i.status,children:[(0,F.jsxs)(`header`,{className:`op-planning-origin__header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Operating origin`}),(0,F.jsx)(`h2`,{children:o}),(0,F.jsx)(`p`,{children:n??`The sidecar preserves exact Operate custody while Planning remains independently authoritative.`})]}),a?(0,F.jsx)(`a`,{className:`op-cycle-link`,href:a,children:`Open in Operate`}):null]}),(0,F.jsxs)(`dl`,{className:`op-cycle-custody`,children:[(0,F.jsx)(PO,{label:`SPEC`,value:i.spec.specId}),(0,F.jsx)(PO,{label:`Status`,value:i.spec.status}),(0,F.jsx)(PO,{label:`Decision`,value:i.decision.id}),(0,F.jsx)(PO,{label:`Action`,value:i.action.id}),(0,F.jsx)(PO,{label:`Correlation`,value:i.correlationId})]}),(0,F.jsx)(FO,{origin:i}),(0,F.jsxs)(`section`,{className:`op-planning-origin__trace`,"aria-labelledby":`op-planning-delivery-trace-title`,children:[(0,F.jsx)(`header`,{className:`op-cycle-section-heading`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{id:`op-planning-delivery-trace-title`,children:`Delivery and value trace`}),(0,F.jsx)(`p`,{children:`Each state belongs to its own ledger. Delivery is evidence; it is not Outcome success.`})]})}),(0,F.jsx)(tS,{progress:r.progress??{nodes:[]}})]})]})}function LO({specId:e,binding:t}){let{bootstrap:n}=ht(),r=n?.queryRoots.operate??null,[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(`idle`);return(0,v.useEffect)(()=>{if(typeof window>`u`||r===null||r.projectId!==t.projectId){a(null),s(`unavailable`);return}let n=!1,i=new AbortController;s(`loading`);let o=z({productArea:`operate`,route:`#/operate/today`,actorId:r.actorId,projectId:r.projectId,scopeId:r.scopeId,domainId:r.domainId,domainVersion:r.domainVersion,cycleId:null,subjectId:null,eventHead:null,viewHash:null,generation:r.generation});return IS({origin:window.location.origin,identity:o,specId:e,signal:i.signal}).then(t=>{if(n)return;let i=t.origin;i.spec?.specId===e&&i.scopeId===r.scopeId&&i.domainId===r.domainId&&i.domainVersion===r.domainVersion&&RO(i.actor)===r.actorId?(a({origin:t.origin,progress:t.progress}),s(`ready`)):s(`unavailable`)}).catch(()=>{n||s(`unavailable`)}),()=>{n=!0,i.abort()}},[t.projectId,r,e]),o===`loading`||o===`idle`?(0,F.jsx)(`section`,{className:`op-planning-section`,"aria-label":`Operating origin loading`,children:(0,F.jsx)(`p`,{role:`status`,children:`Loading operating origin projection…`})}):i?(0,F.jsx)(IO,{envelope:i}):null}function RO(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=Reflect.get(e,`actorId`);return typeof t==`string`?t:null}function zO(e,t){let n=e.frontmatter[t];return typeof n==`string`&&n.trim()!==``?n:null}function BO(e){return zO(e,`sprintId`)??zO(e,`sprint`)}function VO(e){return e.githubIssue===void 0?e.linearIssueIdentifier??null:`#${e.githubIssue}`}function HO(e){let t=e.frontmatter.dependsOn;return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}function UO(e){let t=new Map;for(let n of e)n.kind===`depends_on`&&t.set(n.from,(t.get(n.from)??0)+1);return t}var WO=Object.freeze({key:`item`,label:`Item`,render:e=>(0,F.jsx)(dm,{type:e.type,id:sg(e),title:e.title,blocked:e.status===`blocked`,interactive:!0})}),GO=Object.freeze({key:`status`,label:`Status`,width:132,render:e=>(0,F.jsx)(am,{status:e.status,size:`sm`})}),KO=Object.freeze({key:`sprint`,label:`Sprint`,width:92,mono:!0,render:e=>BO(e)??(0,F.jsx)(km,{})}),qO=Object.freeze({key:`updated`,label:`Updated`,width:96,mono:!0,align:`right`,render:e=>zO(e,`updated`)??(0,F.jsx)(km,{})}),JO=Object.freeze({key:`ref`,label:`Ref`,width:96,mono:!0,align:`right`,render:e=>VO(e)??(0,F.jsx)(km,{})});function YO(e){let t=typeof e.get==`function`?e:UO(e);return Object.freeze({key:`deps`,label:`Deps`,width:56,mono:!0,align:`right`,render:e=>{let n=t.get(e.id)??0;return n>0?String(n):(0,F.jsx)(km,{})}})}var XO=new Set([`created`,`updated`,`sprintId`,`sprint`,`owner`,`dependsOn`]),ZO=Object.freeze([WO,GO,qO]);function QO(){typeof window<`u`&&(window.location.hash=`#/list`)}function $O(e){let t=Og(e);t&&typeof window<`u`&&(window.location.hash=t)}function ek(e,t){let n=new Map(e.nodes.map(e=>[e.id,e])),r=new Set,i=[],a=(t,o)=>{for(let s of e.edges){let e=s.kind,c=e===`depends_on`&&s.to===t?s.from:e===`contains`&&s.from===t?s.to:null;if(c===null||r.has(c))continue;r.add(c);let l=n.get(c);l&&(i.push({...l,depth:o,via:e}),a(c,o+1))}};return a(t,0),i}function tk({title:e,rows:t}){return(0,F.jsx)(zp,{title:e,meta:String(t.length),padding:0,children:t.length>0?(0,F.jsx)(nm,{compact:!0,rows:t,onRowClick:$O,caption:e,columns:ZO}):(0,F.jsx)(`div`,{className:`pc-detail__none`,children:`none`})})}function nk({currentBinding:e,current:t}){let n=e.route.startsWith(`#/plan/specs/`),r=n?`planning.spec`:`planning.detail`,[i,a]=(0,v.useState)(n?`downstream`:`fields`),o=Fh(t,e);if(!o)return(0,F.jsx)(Lh,{routeKind:r,title:`Planning cannot be trusted`});let s=e.subjectId===null?null:Dg(e.subjectId),c=s===null?void 0:o.graph.nodes.find(e=>e.id===s);if(!c)return(0,F.jsx)(`div`,{className:`op-workspace op-planning pc-pipeline pc-detail`,"data-route-kind":r,children:(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`circle-alert`,title:`No artifact ${e.subjectId??``}`.trim(),description:`This id is not in the current graph snapshot.`,action:(0,F.jsx)(Pp,{size:`sm`,icon:`chevron-left`,onClick:QO,children:`Back to List`})})})});let{graph:l}=o,u=new Map(l.nodes.map(e=>[e.id,e])),d=HO(c).map(e=>u.get(e)).filter(e=>e!==void 0),f=l.edges.filter(e=>e.kind===`depends_on`&&e.to===c.id).map(e=>u.get(e.from)).filter(e=>e!==void 0),p=l.edges.filter(e=>e.kind===`contains`&&e.from===c.id).map(e=>u.get(e.to)).filter(e=>e!==void 0),m=l.edges.find(e=>e.kind===`contains`&&e.to===c.id),h=n?ek(l,c.id):[],g=Ng(c),_=Object.entries(g.meta).filter(([e])=>!XO.has(e)),y=BO(c),b=VO(c),x=sg(c),S=n?[{id:`downstream`,label:`Downstream`,count:h.length},{id:`fields`,label:`Fields`},{id:`body`,label:`Body`}]:[{id:`fields`,label:`Fields`},{id:`relations`,label:`Relations`,count:d.length+f.length+p.length},{id:`body`,label:`Body`}];return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-pipeline pc-detail`,"data-route-kind":r,children:[(0,F.jsx)(Ih,{presentation:o.presentation}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:n?`planr-spec · trace`:`planr-plan · ${c.type}`,title:c.title,count:x,description:n?`SPEC trace: everything downstream of this specification.`:void 0,actions:(0,F.jsx)(Pp,{variant:`ghost`,size:`sm`,icon:`chevron-left`,onClick:QO,children:`List`})}),(0,F.jsxs)(`div`,{className:`pc-detail__identity`,children:[(0,F.jsx)(dm,{type:c.type,id:x}),(0,F.jsx)(am,{status:c.status}),y?(0,F.jsx)(`span`,{className:`pc-detail__mono`,children:y}):null,b?(0,F.jsx)(`span`,{className:`pc-detail__mono`,children:b}):null]}),c.type===`spec`?(0,F.jsx)(LO,{specId:c.id,binding:e}):null,(0,F.jsx)(Vp,{label:`Artifact sections`,value:i,onChange:a,tabs:S}),(0,F.jsx)(`div`,{className:`pc-detail__stack`,children:i===`downstream`?(0,F.jsx)(zp,{title:`Downstream of this spec`,meta:String(h.length),padding:0,children:h.length>0?(0,F.jsx)(nm,{compact:!0,rows:h,onRowClick:$O,caption:`Downstream artifacts`,columns:[{key:`item`,label:`Item`,render:e=>(0,F.jsx)(`span`,{className:`pc-detail__indent`,style:{paddingLeft:e.depth*16},children:(0,F.jsx)(dm,{type:e.type,id:sg(e),title:e.title,blocked:e.status===`blocked`,interactive:!0})})},{key:`via`,label:`Via`,width:116,mono:!0,render:e=>e.via},{key:`status`,label:`Status`,width:132,render:e=>(0,F.jsx)(am,{status:e.status,size:`sm`})},{key:`updated`,label:`Updated`,width:96,mono:!0,align:`right`,render:e=>zO(e,`updated`)??(0,F.jsx)(km,{})}]}):(0,F.jsx)(`div`,{className:`pc-detail__empty`,children:(0,F.jsx)(Bp,{icon:`list-tree`,title:`Nothing waits on this spec`,description:`No artifact carries a depends_on edge to it.`})})}):i===`fields`?(0,F.jsx)(zp,{title:`Frontmatter`,meta:`${x}.md`,padding:14,children:(0,F.jsxs)(`div`,{className:`pc-detail__fields`,children:[(0,F.jsx)(Am,{label:`id`,mono:!0,children:c.id}),(0,F.jsx)(Am,{label:`type`,mono:!0,children:c.type}),(0,F.jsx)(Am,{label:`status`,mono:!0,children:c.status}),(0,F.jsx)(Am,{label:`created`,mono:!0,children:zO(c,`created`)??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`updated`,mono:!0,children:zO(c,`updated`)??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`sprintId`,mono:!0,children:y??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`owner`,mono:!0,children:zO(c,`owner`)??(0,F.jsx)(km,{children:`not recorded`})}),(0,F.jsx)(Am,{label:`dependsOn`,mono:!0,children:HO(c).length>0?HO(c).join(`, `):(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`githubIssue`,mono:!0,children:c.githubIssue===void 0?(0,F.jsx)(km,{}):`#${c.githubIssue}`}),(0,F.jsx)(Am,{label:`linearIssue`,mono:!0,children:c.linearIssueIdentifier??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`parent`,mono:!0,children:m?sg(u.get(m.from)??m.from):(0,F.jsx)(km,{children:`root`})}),_.map(([e,t])=>(0,F.jsx)(Am,{label:e,mono:!0,children:t},e))]})}):i===`relations`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(tk,{title:`Depends on`,rows:d}),(0,F.jsx)(tk,{title:`Depended on by`,rows:f}),(0,F.jsx)(tk,{title:`Contains`,rows:p})]}):(0,F.jsx)(zp,{title:`Body`,meta:`markdown`,padding:14,children:g.criteria.length===0&&g.subtasks.length===0&&!c.body?(0,F.jsx)($p,{tone:`info`,title:`No body in this snapshot`,children:`The artifact file has frontmatter only, or the body was not read into the graph.`}):(0,F.jsxs)(`div`,{className:`pc-detail__body`,children:[g.criteria.length>0?(0,F.jsxs)(`section`,{className:`pc-detail__section`,"aria-label":`Acceptance criteria`,children:[(0,F.jsxs)(`h3`,{className:`pc-detail__label`,children:[`acceptance criteria · `,g.criteria.length]}),(0,F.jsx)(`ol`,{className:`pc-detail__criteria`,children:g.criteria.map(e=>(0,F.jsx)(`li`,{children:e},e))})]}):null,g.subtasks.length>0?(0,F.jsxs)(`section`,{className:`pc-detail__section`,"aria-label":`Subtasks`,children:[(0,F.jsxs)(`h3`,{className:`pc-detail__label`,children:[`subtasks · `,g.subtasks.length]}),(0,F.jsx)(`ul`,{className:`pc-detail__subtasks`,children:g.subtasks.map(e=>(0,F.jsxs)(`li`,{className:`pc-detail__subtask`,children:[(0,F.jsx)(am,{status:e.done?`done`:`outstanding`,size:`sm`,showLabel:!1}),(0,F.jsx)(`span`,{children:e.text})]},e.text))})]}):null,c.body?(0,F.jsx)(`pre`,{className:`pc-detail__markdown`,children:c.body}):null]})})})]})}var rk=Object.freeze([`depends_on`,`contains`]),ik=Object.freeze([{id:`graph`,label:`Graph`,icon:`workflow`},{id:`outline`,label:`Outline`,icon:`list-tree`}]),ak=460,ok=Object.freeze({font:`var(--pc-type-mono-sm)`}),sk=Object.freeze({font:`var(--pc-type-mono-sm)`,color:`var(--pc-text-tertiary)`});function ck(e){return e===`depends_on`||e===`contains`}function lk(e,t){let n=e.edges.filter(e=>e.kind===t),r=new Set(n.flatMap(e=>[e.from,e.to])),i=new Map;for(let t of e.nodes){let e=sg(t);i.set(e,(i.get(e)??0)+1)}let a=new Map,o=new Map,s=[];for(let t of e.nodes){if(!r.has(t.id))continue;let e=sg(t),n=i.get(e)===1?e:t.id;a.set(t.id,n),o.set(n,t),s.push({id:n,type:t.type,label:t.title,blocked:t.status===`blocked`})}let c=[];for(let e of n){let n=a.get(e.from),r=a.get(e.to);if(n===void 0||r===void 0)continue;let i=t===`depends_on`&&o.get(r)?.status===`blocked`;c.push(i?{from:n,to:r,blocked:!0}:{from:n,to:r})}return{nodes:s,edges:c,byGraphId:o,graphIdOf:a}}function uk(e,t){let n=new Map;for(let e of t){let t=n.get(e.from);t?t.push(e):n.set(e.from,[e])}let r=new Map,i=new Set,a=e=>{r.set(e,`open`);for(let t of n.get(e)??[]){let e=r.get(t.to);e===`open`?i.add(t):e===void 0&&a(t.to)}r.set(e,`closed`)};for(let t of e)r.has(t.id)||a(t.id);return i}function dk({currentBinding:e,current:t}){let[n,r]=(0,v.useState)(`graph`),[i,a]=(0,v.useState)(`depends_on`),o=ky(),s=Fh(t,e);if(!s)return(0,F.jsx)(Lh,{routeKind:`planning.graph`,title:`Planning cannot be trusted`});let c=lk(s.graph,i),l=n===`outline`?uk(c.nodes,c.edges):null,u=l&&l.size>0?c.edges.filter(e=>!l.has(e)):c.edges,d=o.selection?.kind===`node`?c.graphIdOf.get(o.selection.id)??null:null,f=u.map(e=>d!==null&&(e.from===d||e.to===d)?{...e,active:!0}:e);return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-pipeline`,"data-route-kind":`planning.graph`,children:[(0,F.jsx)(Ih,{presentation:s.presentation}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-diagram · graph`,title:`Graph`,count:`${c.nodes.length} nodes · ${c.edges.length} edges`,description:i===`depends_on`?`A dependency map ordered from prerequisites to dependent work. Select a node to trace its relationships and inspect its record.`:`A containment map ordered from parent artifacts to their children. Select a node to inspect its record.`}),s.graph.nodes.length===0?(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`workflow`,title:`Nothing to draw`,description:`This plan has no artifacts yet, so there are no edges to show.`,action:(0,F.jsx)(em,{command:`/planr-plan`,label:`create the graph`,size:`sm`})})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Kp,{right:(0,F.jsx)(Vp,{size:`sm`,label:`Graph view`,value:n,onChange:e=>r(e===`outline`?`outline`:`graph`),tabs:ik}),children:[(0,F.jsx)(Xp,{size:`sm`,width:132,ariaLabel:`Edge kind`,value:i,onChange:e=>{ck(e)&&a(e)},options:rk}),(0,F.jsx)(qp,{}),(0,F.jsx)(`span`,{style:sk,children:`edge kind`})]}),c.edges.length===0?(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`workflow`,title:`No ${i} edges in this plan`,description:`Both views draw edges only; an artifact without an edge of this kind is not shown.`})}):(0,F.jsx)(`div`,{style:{marginTop:6},children:(0,F.jsx)(Em,{nodes:c.nodes,edges:f,view:n,flow:i===`depends_on`?`target-to-source`:`source-to-target`,selectedId:d,onSelect:e=>{let t=c.byGraphId.get(e);t&&bO(t)},height:ak})}),l&&l.size>0?(0,F.jsx)(`div`,{style:{marginTop:12},children:(0,F.jsx)($p,{tone:`warn`,title:`${l.size} ${l.size===1?`edge closes`:`edges close`} a cycle`,children:`The outline nests parent to child and cannot draw a cycle, so these edges are left out of it. The graph view draws every edge.`})}):null,i===`depends_on`&&c.edges.length>0?(0,F.jsx)(`div`,{style:{marginTop:12},children:(0,F.jsxs)($p,{tone:`info`,title:`Edges carry no satisfaction state`,children:[`An edge means `,(0,F.jsx)(`code`,{style:ok,children:`depends_on`}),`, nothing more. The model does not say whether a dependency is met, so a satisfied edge and an unsatisfied one draw identically; an edge dashes only when the artifact it points at is itself blocked.`]})}):null]})]})]})}var fk=null;function pk(e){fk=e}function mk(){let e=fk;return fk=null,e}var hk=Object.freeze({query:``,type:`all`,status:`all`,compact:!1,sort:Object.freeze({key:`updated`,dir:`desc`}),page:0}),gk=new Map,_k=new Set;function vk(e){return _k.add(e),()=>_k.delete(e)}function yk(e){let t=JSON.stringify([e.productArea,e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.subjectId,e.generation]),n=(0,v.useRef)(null);if(n.current!==t){let e=mk();e!==null&&gk.set(t,Object.freeze({...gk.get(t)??hk,status:e,page:0})),n.current=t}let r=(0,v.useCallback)(()=>gk.get(t)??hk,[t]),i=(0,v.useCallback)(e=>{gk.set(t,Object.freeze({...gk.get(t)??hk,...e}));for(let e of _k)e()},[t]);return[(0,v.useSyncExternalStore)(vk,r,r),i]}var bk=`all`,xk=100,Sk=Object.freeze([`epic`,`feature`,`story`,`task`,`spec`,`backlog`,`quick`,`sprint`,`adr`]),Ck=Object.freeze([{value:bk,label:`All types`},...Sk.map(e=>({value:e,label:e}))]),wk=Object.freeze([{value:bk,label:`All statuses`},...rm.map(e=>({value:e,label:e}))]),Tk=Object.freeze({...qO,sortable:!0});function Ek(e){return Sk.includes(e)}function Dk(e){return rm.includes(e)}function Ok(e,t){return[...e].sort((e,n)=>{let r=zO(e,`updated`),i=zO(n,`updated`);return r===i?0:r===null?1:i===null?-1:t===`asc`?r.localeCompare(i):i.localeCompare(r)})}function kk({currentBinding:e,current:t}){let[{query:n,type:r,status:i,compact:a,sort:o,page:s},c]=yk(e),l=ky(),u=Fh(t,e);if(!u)return(0,F.jsx)(Lh,{routeKind:`planning.list`,title:`Planning cannot be trusted`});let d=dg(u.graph.nodes,`id`),f=lg(d,{search:n.trim()||void 0,typeFilter:Ek(r)?[r]:void 0,statusFilter:Dk(i)?i:null}),p=o.key===`updated`?Ok(f,o.dir):f,m=Math.max(1,Math.ceil(p.length/xk)),h=Math.min(s,m-1),g=h*xk,_=p.slice(g,g+xk),v=UO(u.graph.edges),y=l.selection?.kind===`node`?l.selection.id:void 0;return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-pipeline pc-list`,"data-route-kind":`planning.list`,children:[(0,F.jsx)(Ih,{presentation:u.presentation}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-plan · list`,title:`List`,count:`${p.length} of ${d.length}`,description:`Every node in the graph, filterable by text, type and status.`}),d.length===0?(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`list`,title:`No artifacts yet`,description:`The list fills in as the graph gains epics, features, stories and tasks.`,action:(0,F.jsx)(em,{command:`/planr-plan`,label:`create the graph`,size:`sm`})})}):(0,F.jsxs)(`section`,{className:`pc-list__surface`,"aria-label":`Planning artifact index`,children:[(0,F.jsxs)(Kp,{right:(0,F.jsx)(Zp,{size:`sm`,checked:a,onChange:e=>c({compact:e}),label:`Compact`}),children:[(0,F.jsx)(Yp,{size:`sm`,icon:`search`,width:220,placeholder:`Filter by id or title`,ariaLabel:`Filter by id or title`,value:n,onChange:e=>{c({query:e,page:0})}}),(0,F.jsx)(Xp,{size:`sm`,width:128,ariaLabel:`Filter by type`,value:r,onChange:e=>{c({type:e,page:0})},options:Ck}),(0,F.jsx)(Xp,{size:`sm`,width:138,ariaLabel:`Filter by status`,value:i,onChange:e=>{c({status:e,page:0})},options:wk}),(0,F.jsx)(qp,{}),(0,F.jsx)(`span`,{className:`pc-list__note`,children:`read-only view of .planr/`})]}),(0,F.jsx)(nm,{rows:_,compact:a,selectedId:y,sort:o,onSort:e=>{c({sort:{key:e,dir:o.key===e&&o.dir===`desc`?`asc`:`desc`},page:0})},onRowClick:bO,caption:`Planning artifacts`,emptyMessage:`No node matches this filter.`,columns:[WO,GO,KO,YO(v),Tk,JO]}),p.length>xk?(0,F.jsxs)(`nav`,{className:`pc-list__pagination`,"aria-label":`Planning artifact pages`,children:[(0,F.jsxs)(`span`,{className:`pc-list__page-status`,"aria-live":`polite`,children:[`Page `,h+1,` of `,m,` · `,g+1,`–`,Math.min(g+xk,p.length),` of `,p.length]}),(0,F.jsxs)(`div`,{className:`pc-list__page-actions`,children:[(0,F.jsx)(Pp,{size:`sm`,icon:`chevron-left`,disabled:h===0,onClick:()=>c({page:Math.max(0,h-1)}),children:`Previous`}),(0,F.jsx)(Pp,{size:`sm`,iconAfter:`chevron-right`,disabled:h+1>=m,onClick:()=>c({page:Math.min(m-1,h+1)}),children:`Next`})]})]}):null]})]})}var Ak=3,jk=new Set([`done`,`in-progress`,`blocked`,`outstanding`,`addressed`]);function Mk(e){return jk.has(e)}function Nk(e){return{key:`dependsOn`,label:`Depends on`,width:220,render:t=>{let n=HO(t),r=n[0];if(r===void 0)return(0,F.jsx)(km,{children:`no depends_on`});let i=e.get(r);return(0,F.jsxs)(`span`,{className:`pc-overview__deps`,title:n.join(`, `),children:[i?(0,F.jsx)(dm,{type:i.type,id:sg(i)}):(0,F.jsx)(`span`,{className:`pc-overview__mono`,children:r}),n.length>1?(0,F.jsxs)(`span`,{className:`pc-overview__mono`,children:[`+`,n.length-1]}):null]})}}}function Pk(e){Mk(e)&&(pk(e),typeof window<`u`&&(window.location.hash=`#/list`))}function Fk({currentBinding:e,current:t}){let n=Fh(t,e);if(!n)return(0,F.jsx)(Lh,{routeKind:`planning.overview`,title:`Planning cannot be trusted`});let{graph:r,presentation:i}=n,a=r.nodes.filter(e=>e.type!==`sprint`),o={};for(let e of a)o[e.status]=(o[e.status]??0)+1;let s=a.filter(e=>e.status===`blocked`),c=a.filter(e=>e.status===`in-progress`),l=new Map(r.nodes.map(e=>[e.id,e]));return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-pipeline pc-overview`,"data-route-kind":`planning.overview`,children:[(0,F.jsx)(Ih,{presentation:i}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-status · overview`,title:`Overview`,count:`${a.length} ${a.length===1?`artifact`:`artifacts`}`,description:`Status counts come straight from the graph snapshot.`}),a.length===0?(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`gauge`,title:`No artifacts yet`,description:`The overview fills in as the graph gains epics, features, stories and tasks.`,action:(0,F.jsx)(em,{command:`/planr-plan`,label:`create the graph`,size:`sm`})})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`pc-overview__tally`,children:(0,F.jsx)(jm,{counts:o,total:a.length,onPick:Pk})}),(0,F.jsxs)(`div`,{className:`pc-overview__stack`,children:[(0,F.jsx)(zp,{title:`Blocked`,meta:`${s.length} ${s.length===1?`item`:`items`}`,padding:0,actions:s.length>Ak?(0,F.jsx)(Pp,{size:`sm`,variant:`ghost`,onClick:()=>Pk(`blocked`),children:`View all blocked`}):null,children:s.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(nm,{compact:!0,rows:s.slice(0,Ak),onRowClick:bO,caption:`Blocked artifacts`,columns:[WO,Nk(l),KO,qO]}),s.length>Ak?(0,F.jsxs)(`p`,{className:`pc-overview__note`,children:[`Showing `,Ak,` of `,s.length,` blocked artifacts, in project order.`]}):null,(0,F.jsx)(`div`,{className:`pc-overview__note`,children:(0,F.jsxs)($p,{tone:`info`,title:`Depends-on is not the same as blocked-by`,children:[`The graph records `,(0,F.jsx)(`code`,{children:`depends_on`}),` edges and a `,(0,F.jsx)(`code`,{children:`blocked`}),` `,`status, but nothing that links them. These are every dependency, not the blocking one.`]})})]}):(0,F.jsx)(`div`,{className:`pc-overview__empty`,children:(0,F.jsx)(Bp,{icon:`check-check`,title:`Nothing is blocked`,description:`No artifact carries the blocked status.`})})}),(0,F.jsxs)(zp,{title:`In progress`,meta:`${c.length} ${c.length===1?`item`:`items`}`,padding:0,actions:c.length>Ak?(0,F.jsx)(Pp,{size:`sm`,variant:`ghost`,onClick:()=>Pk(`in-progress`),children:`View all in progress`}):null,children:[(0,F.jsx)(nm,{compact:!0,rows:c.slice(0,Ak),onRowClick:bO,caption:`Artifacts in progress`,emptyMessage:`No artifact carries the in-progress status.`,columns:[WO,GO,YO(r.edges),KO,qO]}),c.length>Ak?(0,F.jsxs)(`p`,{className:`pc-overview__note`,children:[`Showing `,Ak,` of `,c.length,` in-progress artifacts, in project order.`]}):null]})]})]})]})}var Ik=Object.freeze([`taskIds`,`storyIds`,`itemIds`,`artifactIds`]);function Lk(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&e.trim()!==``):[]}function Rk(e){return Object.freeze([...new Set(Ik.flatMap(t=>Lk(e.frontmatter[t])))])}function zk(e,t){let n=sg(t),r=Rk(t),i=new Map;for(let t of e)if(t.type!==`sprint`)for(let e of new Set([t.id,sg(t)]))i.set(e,[...i.get(e)??[],t]);let a=new Map;for(let e of r)for(let t of i.get(e)??[])a.set(t.id,t);for(let r of e){if(r.type===`sprint`)continue;let e=BO(r);(e===t.id||e===n)&&a.set(r.id,r)}let o=r.filter(e=>!(i.get(e)?.length??0));return Object.freeze({members:Object.freeze([...a.values()].sort((e,t)=>e.id.localeCompare(t.id))),missing:Object.freeze(o)})}function Bk(e,...t){for(let n of t){let t=e.frontmatter[n];if(typeof t==`string`&&t.trim()!==``)return t.trim()}return null}function Vk(e){return Bk(e,`title`,`name`)??e.title}function Hk(e){let t=Bk(e,`status`)?.toLowerCase().replaceAll(`_`,`-`);return t===`active`||t===`in progress`?`in-progress`:t??e.status}function Uk(e){return Object.freeze({start:Bk(e,`startDate`,`startsAt`,`start`),end:Bk(e,`endDate`,`endsAt`,`end`)})}function Wk(e,t){let n=fg(t.members);if(t.missing.length>0)return Object.freeze({label:`scope mismatch`,tone:`warn`});if(n.blocked>0)return Object.freeze({label:`blocked work`,tone:`danger`});if(t.members.length>0&&n.done===t.members.length){let t=Hk(e);return Object.freeze(t===`done`||t===`addressed`?{label:`complete`,tone:`success`}:{label:`ready to close`,tone:`warn`})}let{end:r}=Uk(e);return r&&/^\d{4}-\d{2}-\d{2}$/u.test(r)&&r<new Date().toISOString().slice(0,10)?Object.freeze({label:`past end date`,tone:`warn`}):Object.freeze({label:`in flight`,tone:`info`})}function Gk(e,t,n){let r=new Set(e.map(e=>e.id)),i=new Map(t.map(e=>[e.id,e])),a=new Map;for(let e of n){if(e.kind!==`depends_on`||!r.has(e.from)||r.has(e.to))continue;let t=i.get(e.to);t&&t.status!==`done`&&t.status!==`addressed`&&a.set(t.id,t)}return Object.freeze([...a.values()].sort((e,t)=>e.id.localeCompare(t.id)))}function Kk(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function qk(e,t){if(!Kk(e)||!Array.isArray(e.items)||!Kk(e.items[0]))return null;let n=e.items[0],r=Kk(t)&&Kk(t.item)?t.item:null;if(!r||typeof n.cycleId!=`string`||typeof n.title!=`string`||typeof n.signal!=`string`||typeof n.updatedAt!=`string`||!Kk(n.counts)||!Array.isArray(r.actions))return null;let i=r.actions.filter(e=>Kk(e)?[`id`,`priority`,`action`,`owner`,`firstStep`,`successMeasure`].every(t=>typeof e[t]==`string`):!1);return Object.freeze({cycleId:n.cycleId,title:n.title,signal:n.signal,updatedAt:n.updatedAt,counts:Object.freeze({actions:Number.isSafeInteger(n.counts.actions)?Number(n.counts.actions):0,gaps:Number.isSafeInteger(n.counts.gaps)?Number(n.counts.gaps):0}),actions:Object.freeze(i)})}function Jk(){let[e,t]=(0,v.useState)({status:`loading`,pulse:null});return(0,v.useEffect)(()=>{let e=new AbortController,n=async()=>{try{let n=new URL(`/api/operate/local-reviews?page=1&pageSize=1`,window.location.origin),r=await fetch(n,{headers:{accept:`application/json`},signal:e.signal});if(!r.ok){t({status:`empty`,pulse:null});return}let i=await r.json(),a=Kk(i)&&Array.isArray(i.items)&&Kk(i.items[0])?i.items[0].cycleId:null;if(typeof a!=`string`){t({status:`empty`,pulse:null});return}let o=await fetch(new URL(`/api/operate/local-reviews/${encodeURIComponent(a)}`,window.location.origin),{headers:{accept:`application/json`},signal:e.signal});if(!o.ok){t({status:`failed`,pulse:null});return}let s=qk(i,await o.json());t(s?{status:`ready`,pulse:s}:{status:`failed`,pulse:null})}catch{e.signal.aborted||t({status:`failed`,pulse:null})}};n();let r=window.setInterval(()=>void n(),5e3);return()=>{window.clearInterval(r),e.abort()}},[]),e}function Yk(e,t){let n=`${e.action} ${e.firstStep} ${e.successMeasure}`.toLowerCase();return[...t].some(e=>n.includes(e.toLowerCase()))}function Xk({currentBinding:e,current:t}){let[n,r]=(0,v.useState)(null),i=Jk(),a=Fh(t,e);if(!a)return(0,F.jsx)(Lh,{routeKind:`planning.sprints`,title:`Planning cannot be trusted`});let{nodes:o,edges:s}=a.graph,c=o.filter(e=>e.type===`sprint`).sort((e,t)=>t.id.localeCompare(e.id)),l=c.find(e=>e.id===n)??c.find(e=>Hk(e)!==`done`)??c[0]??null,u=l?zk(o,l):Object.freeze({members:Object.freeze([]),missing:Object.freeze([])}),d=fg(u.members),f=u.members.length===0?0:Math.round(d.done/u.members.length*100),p=l?Gk(u.members,o,s):[],m=new Set(l?[sg(l),...u.members.flatMap(e=>[e.id,sg(e)])]:[]),h=i.status===`ready`?i.pulse.actions.filter(e=>Yk(e,m)):[];return(0,F.jsxs)(`div`,{className:`op-workspace op-planning pc-pipeline pc-sprints`,"data-route-kind":`planning.sprints`,children:[(0,F.jsx)(Ih,{presentation:a.presentation}),(0,F.jsx)(Jp,{headingLevel:1,eyebrow:`planr-status · sprints`,title:`Sprints`,count:`${c.length} ${c.length===1?`sprint`:`sprints`}`,description:`Commitment, delivery health, dependencies, and operating context from the records already in this workspace.`}),c.length===0?(0,F.jsx)(zp,{padding:0,children:(0,F.jsx)(Bp,{icon:`calendar-range`,title:`No sprints yet`,description:`No artifact of type sprint is in the graph.`,action:(0,F.jsx)(em,{command:`/planr-plan`,label:`plan the next sprint`,size:`sm`})})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`section`,{className:`pc-sprints__grid`,"aria-label":`Sprint timeline`,children:c.map(e=>{let t=zk(o,e),n=rm.map(e=>({state:e,count:t.members.filter(t=>t.status===e).length})).filter(e=>e.count>0),i=Uk(e),a=Wk(e,t),s=l?.id===e.id;return(0,F.jsxs)(`button`,{type:`button`,className:`pc-sprints__card`,"data-active":s||void 0,"aria-pressed":s,onClick:()=>r(e.id),children:[(0,F.jsxs)(`span`,{className:`pc-sprints__head`,children:[(0,F.jsx)(dm,{type:`sprint`,id:sg(e)}),(0,F.jsx)(Rp,{tone:a.tone,variant:`outline`,children:a.label})]}),(0,F.jsx)(Dm,{name:Vk(e),segments:n}),(0,F.jsxs)(`span`,{className:`pc-sprints__dates`,children:[(0,F.jsx)(J,{name:`calendar-range`,size:12}),i.start&&i.end?`${i.start} → ${i.end}`:`Dates not recorded`]})]},e.id)})}),l?(0,F.jsxs)(`section`,{className:`pc-sprints__workspace`,"aria-label":`${sg(l)} delivery workspace`,children:[(0,F.jsxs)(`div`,{className:`pc-sprints__summary`,children:[(0,F.jsxs)(`div`,{className:`pc-sprints__summary-copy`,children:[(0,F.jsx)(`span`,{className:`pc-sprints__eyebrow`,children:`Current commitment`}),(0,F.jsx)(`h2`,{children:Vk(l)}),(0,F.jsx)(`p`,{children:Bk(l,`goal`,`sprintGoal`)??`No sprint goal is recorded.`})]}),(0,F.jsx)(am,{status:Hk(l),size:`sm`})]}),(0,F.jsxs)(`dl`,{className:`pc-sprints__metrics`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Complete`}),(0,F.jsxs)(`dd`,{children:[f,`%`]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`Committed`}),(0,F.jsx)(`dd`,{children:u.members.length})]}),(0,F.jsxs)(`div`,{"data-attention":d.blocked>0||void 0,children:[(0,F.jsx)(`dt`,{children:`Blocked`}),(0,F.jsx)(`dd`,{children:d.blocked})]}),(0,F.jsxs)(`div`,{"data-attention":p.length>0||void 0,children:[(0,F.jsx)(`dt`,{children:`External deps`}),(0,F.jsx)(`dd`,{children:p.length})]})]}),(0,F.jsxs)(`div`,{className:`pc-sprints__body`,children:[(0,F.jsx)(zp,{title:`${sg(l)} commitment`,meta:`${u.members.length} items`,padding:0,children:u.members.length>0?(0,F.jsx)(nm,{compact:!0,rows:u.members,onRowClick:bO,caption:`Members of ${sg(l)}`,columns:[WO,GO,YO(s),qO]}):(0,F.jsx)(`div`,{className:`pc-sprints__empty`,children:(0,F.jsx)(Bp,{icon:`calendar-range`,title:`No committed work`,description:`This sprint has no taskIds and no item points back through sprintId.`})})}),(0,F.jsxs)(`aside`,{className:`pc-sprints__intelligence`,"aria-label":`Sprint intelligence`,children:[(0,F.jsxs)(`div`,{className:`pc-sprints__intelligence-section`,children:[(0,F.jsx)(`span`,{className:`pc-sprints__eyebrow`,children:`Delivery health`}),(0,F.jsx)(`strong`,{children:Wk(l,u).label}),(0,F.jsxs)(`p`,{children:[d.done,` done · `,d.inProgress,` in progress · `,d.outstanding,` `,`outstanding`]})]}),u.missing.length>0?(0,F.jsxs)(`div`,{className:`pc-sprints__intelligence-section`,"data-tone":`warn`,children:[(0,F.jsx)(`span`,{className:`pc-sprints__eyebrow`,children:`Scope gaps`}),(0,F.jsxs)(`strong`,{children:[u.missing.length,` committed IDs are missing`]}),(0,F.jsx)(`p`,{children:u.missing.join(`, `)})]}):null,(0,F.jsxs)(`div`,{className:`pc-sprints__intelligence-section`,children:[(0,F.jsx)(`span`,{className:`pc-sprints__eyebrow`,children:`Open dependencies`}),(0,F.jsx)(`strong`,{children:p.length===0?`No external blockers recorded`:`${p.length} outside this sprint`}),p.length>0?(0,F.jsx)(`ul`,{children:p.slice(0,4).map(e=>(0,F.jsx)(`li`,{children:(0,F.jsxs)(`button`,{type:`button`,onClick:()=>bO(e),children:[sg(e),` · `,e.title]})},e.id))}):null]}),i.status===`ready`?(0,F.jsxs)(`div`,{className:`pc-sprints__intelligence-section`,"data-tone":`operate`,children:[(0,F.jsx)(`span`,{className:`pc-sprints__eyebrow`,children:`Latest operating review`}),(0,F.jsx)(`strong`,{children:i.pulse.signal}),(0,F.jsxs)(`p`,{children:[i.pulse.counts.actions,` actions · `,i.pulse.counts.gaps,` gaps ·`,` `,h.length,` reference this scope`]}),h.slice(0,3).map(e=>(0,F.jsxs)(`div`,{className:`pc-sprints__operate-action`,children:[(0,F.jsx)(`span`,{children:e.priority}),(0,F.jsx)(`p`,{children:e.action}),(0,F.jsxs)(`small`,{children:[`Next: `,e.firstStep]}),(0,F.jsxs)(`small`,{children:[`Owner: `,e.owner]})]},e.id)),(0,F.jsx)(`a`,{href:`#/operate/today`,children:`Open Operate today →`})]}):null]})]})]}):null]})]})}var Zk=Object.freeze({"planning.overview":Fk,"planning.graph":dk,"planning.board":DO,"planning.list":kk,"planning.sprints":Xk,"planning.activity":_O,"planning.console":NO,"planning.detail":nk,"planning.spec":nk});function Qk(e){return Zk[e.kind]??null}var $k=xy;function eA({route:e,projection:t,binding:n}){return V(t)&&t.data!==null&&n!==null&&t.binding!==null&&B(t.binding,n)&&e.subjectId===n.subjectId}function tA(e,t,n=!1){return!V(e)||e.kind!==`booting`&&e.kind!==`loading`&&(e.kind!==`refreshing`||n&&e.data!==null)?!1:e.binding===null?e.kind===`booting`&&t===null:t!==null&&B(e.binding,t)}function nA({route:e,projection:t}){let n=M(e)?.label??`Workspace`,r=e.product===`operate`,i=t.kind===`refreshing`?`refreshing`:`loading`;return(0,F.jsxs)(`section`,{className:`op-workspace op-route-pending`,"data-route-kind":e.kind,"data-route-pending":t.kind,"aria-busy":`true`,children:[(0,F.jsx)(Jp,{eyebrow:r?`planr-operate`:`planr-plan`,title:n,count:i,description:r?`Reading the Operate projection. The route is already resolved.`:`Reading the graph from ${Kh}/. The route is already resolved.`}),r?(0,F.jsx)(Gp,{count:4,label:`Loading ${n}`}):(0,F.jsx)(Wp,{rows:8,label:`Loading ${n}`,columns:[{label:`Item`},{label:`Status`,width:132},{label:`Sprint`,width:88},{label:`Updated`,width:88}]})]})}function rA({route:e,binding:t,projection:n,eyebrow:r,title:i,description:a}){return tA(n,t)?(0,F.jsx)(nA,{route:e,projection:n}):V(n)&&n.data===null?(0,F.jsx)(`div`,{className:`op-workspace`,"data-route-kind":e.kind,children:(0,F.jsx)(Vy,{currentBinding:t,route:e,state:n,children:()=>null})}):(0,F.jsx)(`div`,{className:`op-workspace`,"data-route-kind":e.kind,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:r,title:i,description:a})})}function iA({route:e,binding:t,projection:n}){return tA(n,t)?(0,F.jsx)(nA,{route:e,projection:n}):V(n)&&n.data===null?(0,F.jsx)(rA,{route:e,binding:t,projection:n,eyebrow:`Planning projection`,title:`Planning cannot be trusted`,description:`The current state is not a parser-verified owner-issued Planning graph.`}):(0,F.jsx)(`div`,{className:`op-workspace op-planning`,"data-route-kind":e.kind,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Planning projection`,title:`Planning cannot be trusted`,description:`The current state is not a parser-verified owner-issued Planning graph.`})})}function aA({route:e,projection:t,binding:n,connectionState:r,searchSources:i,operateSearchBindings:a}){if(e.kind===`planning.search`)return(0,F.jsx)($k,{sources:i,operateBindings:a,connectionState:r});let o=Qk(e);return tA(t,n,!0)?(0,F.jsx)(nA,{route:e,projection:t}):o&&n&&V(t)?(0,F.jsx)(o,{currentBinding:n,current:t}):(0,F.jsx)(iA,{route:e,binding:n,projection:t})}function oA({route:e,projection:t,binding:n}){if(n&&V(t)){if(e.kind===`operate.evidence`||e.kind===`operate.evidence-item`)return(0,F.jsx)(hO.audit.EvidencePage,{currentBinding:n,current:t});if(e.kind===`operate.outcomes`||e.kind===`operate.outcome`)return(0,F.jsx)(hO.audit.OutcomesPage,{currentBinding:n,current:t});if(e.kind===`operate.history`)return(0,F.jsx)(hO.audit.HistoryPage,{currentBinding:n,current:t})}let r=e.kind===`operate.history`?`History`:e.kind===`operate.outcomes`||e.kind===`operate.outcome`?`Outcomes`:`Evidence`;return(0,F.jsx)(`div`,{className:`op-workspace op-audit`,"data-route-kind":e.kind,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`${r} projection`,title:`${r} cannot be trusted`,description:`The current state is not a parser-verified owner-issued audit projection.`})})}function sA(e){let{route:t,projection:n,binding:r,operateReviewNavigation:i,refetchCurrent:a}=e;return M(t)?t.product===`planning`?(0,F.jsx)(aA,{...e}):t.kind===`operate.today`?r&&V(n)&&(n.kind===`first-use`||n.kind===`empty`||n.data!==null&&hO.today.createValidator(r)(n.data))?(0,F.jsx)(hO.today.Page,{currentBinding:r,sources:{current:n}}):(0,F.jsx)(rA,{...e,eyebrow:`Today projection`,title:`Today cannot be trusted`,description:`The current state is not a parser-verified owner-issued Today projection.`}):t.kind===`operate.cycles`?r&&V(n)&&n.data!==null&&hO.cycles.createListValidator(r)(n.data)?(0,F.jsx)(hO.cycles.ListPage,{currentBinding:r,current:n}):(0,F.jsx)(rA,{...e,eyebrow:`Cycle projection`,title:`Cycles cannot be trusted`,description:`The current state is not a parser-verified owner-issued Cycles projection.`}):t.kind===`operate.cycle`?r&&V(n)&&n.data!==null?(0,F.jsx)(hO.cycles.DetailRoute,{currentBinding:r,workspace:n,reviewNavigation:i}):(0,F.jsx)(rA,{...e,eyebrow:`Cycle projection`,title:`Cycle cannot be trusted`,description:`The current state is not a parser-verified owner-issued Cycle projection.`}):t.kind===`operate.review`?r&&V(n)&&n.data!==null&&hO.review.createValidator(r)(n.data)?(0,F.jsx)(hO.review.Page,{currentBinding:r,current:n,onRefetch:a}):(0,F.jsx)(rA,{...e,eyebrow:`Review projection`,title:`Review cannot be trusted`,description:`The current state is not a parser-verified owner-issued Review workspace.`}):t.kind===`operate.actions`?r&&V(n)&&hO.actions.createListValidator(r)(n.data)?(0,F.jsx)(hO.actions.ListPage,{currentBinding:r,current:n}):(0,F.jsx)(rA,{...e,eyebrow:`Action projection`,title:`Actions cannot be trusted`,description:`The current state is not a parser-verified owner-issued Actions projection.`}):t.kind===`operate.action-planning`?r&&V(n)&&n.data!==null?(0,F.jsx)(hO.actions.PlanningHandoffPage,{currentBinding:r,current:n,onRefetch:a}):(0,F.jsx)(rA,{...e,eyebrow:`Action projection`,title:`Action cannot be trusted`,description:`The current state is not a parser-verified owner-issued Action workspace.`}):t.kind===`operate.action`?r&&V(n)&&hO.actions.createDetailValidator(r)(n.data)?(0,F.jsx)(hO.actions.DetailPage,{currentBinding:r,current:n,onRefetch:a}):(0,F.jsx)(rA,{...e,eyebrow:`Action projection`,title:`Action cannot be trusted`,description:`The current state is not a parser-verified owner-issued Action workspace.`}):t.kind===`operate.recovery`?r&&V(n)&&hO.inboxRecovery.createRecoveryValidator(r)(n.data)?(0,F.jsx)(hO.inboxRecovery.RecoveryPage,{currentBinding:r,current:n}):(0,F.jsx)(rA,{...e,eyebrow:`Recovery projection`,title:`Recovery cannot be trusted`,description:`The current state is not a parser-verified owner-issued recovery display.`}):t.kind===`operate.inbox`||t.kind===`operate.inbox-item`?r&&V(n)&&hO.inboxRecovery.createInboxValidator(r)(n.data)?(0,F.jsx)(hO.inboxRecovery.InboxPage,{currentBinding:r,current:n,onRefetch:a}):(0,F.jsx)(rA,{...e,eyebrow:`Inbox projection`,title:`Inbox cannot be trusted`,description:`The current state is not a parser-verified owner-issued Inbox projection.`}):t.kind===`operate.evidence`||t.kind===`operate.evidence-item`||t.kind===`operate.outcomes`||t.kind===`operate.outcome`||t.kind===`operate.history`?(0,F.jsx)(oA,{route:t,projection:n,binding:r}):(0,F.jsx)(`div`,{className:`op-workspace op-workspace--unknown`,"data-route-kind":t.kind,children:(0,F.jsx)(Y,{state:`incompatible`,eyebrow:`Route composition`,title:`Destination is not implemented`,description:`This parsed route has no dedicated verified workspace in the current dashboard build.`})}):(0,F.jsxs)(`div`,{className:`op-workspace op-workspace--unknown`,"data-route-kind":`not-found`,children:[(0,F.jsx)(`p`,{className:`op-eyebrow`,children:`Closed route`}),(0,F.jsx)(`h1`,{children:`Destination not available`}),(0,F.jsx)(`p`,{children:`This address is not part of the OpenPlanr dashboard route contract.`}),(0,F.jsx)(`a`,{className:`op-inline-action`,href:`#/overview`,children:`Return to Planning overview`})]})}var cA=Object.freeze([{label:`Plan`,items:[{kind:`planning.overview`,icon:`gauge`},{kind:`planning.list`,icon:`list`},{kind:`planning.graph`,icon:`workflow`},{kind:`planning.board`,icon:`columns-3`},{kind:`planning.sprints`,icon:`calendar-range`},{kind:`planning.activity`,icon:`activity`}]}]),lA=Object.freeze([{label:`Work`,items:[{kind:`operate.today`,icon:`target`},{kind:`operate.inbox`,icon:`inbox`},{kind:`operate.actions`,icon:`git-pull-request`},{kind:`operate.cycles`,icon:`calendar-days`}]},{label:`Record`,items:[{kind:`operate.evidence`,icon:`file-check`},{kind:`operate.outcomes`,icon:`flag`},{kind:`operate.history`,icon:`history`},{kind:`operate.recovery`,icon:`life-buoy`}]}]),uA=Object.freeze([{kind:`planning.console`,icon:`terminal`},{kind:`system.diagnostics`,icon:`life-buoy`}]),dA=new Map(x.map(e=>[e.kind,e])),fA={"planning.detail":`planning.list`,"planning.spec":`planning.list`,"operate.cycle":`operate.cycles`,"operate.review":`operate.cycles`,"operate.inbox-item":`operate.inbox`,"operate.action":`operate.actions`,"operate.action-planning":`operate.actions`,"operate.evidence-item":`operate.evidence`,"operate.outcome":`operate.outcomes`};function pA(e,t){return t.kind===`not-found`?!1:e.kind===t.kind||fA[t.kind]===e.kind}function mA({item:e,route:t}){let n=dA.get(e.kind);return n?(0,F.jsxs)(`a`,{className:`pc-rail__item`,href:n.href,"aria-current":pA(n,t)?`page`:void 0,children:[(0,F.jsx)(J,{name:e.icon,size:14}),(0,F.jsx)(`span`,{children:n.label})]}):null}function hA({item:e,route:t,onNavigate:n}){let r=dA.get(e.kind);return r?(0,F.jsxs)(`a`,{className:`pc-mobile-nav__item`,href:r.href,"aria-current":pA(r,t)?`page`:void 0,onClick:n,children:[(0,F.jsx)(J,{name:e.icon,size:16}),(0,F.jsx)(`span`,{children:r.label})]}):null}function gA({product:e,route:t,operateAvailable:n}){let[r,i]=(0,v.useState)(!1);(0,v.useEffect)(()=>i(!1),[t.kind]);let a=e===`operate`?lA[0]?.items.slice(0,3)??[]:cA[0]?.items.slice(0,3)??[],o=e===`operate`?[...lA[0]?.items.slice(3)??[],...lA[1]?.items??[],...uA]:[...cA[0]?.items.slice(3)??[],...uA],s=e===`operate`?`Operate`:`Planning`,c=e===`operate`?{href:`#/overview`,icon:`list-tree`,label:`Planning`,unavailable:!1}:{href:`#/operate/today`,icon:n?`gauge`:`unplug`,label:`Operate`,unavailable:!n};return(0,F.jsxs)(`nav`,{className:`pc-mobile-nav`,"aria-label":`Mobile ${s} navigation`,children:[a.map(e=>(0,F.jsx)(hA,{item:e,route:t},e.kind)),(0,F.jsxs)(`a`,{className:`pc-mobile-nav__item`,href:c.href,"data-unavailable":c.unavailable||void 0,title:c.unavailable?`operate — local reviews available; actions require a command gateway`:void 0,children:[(0,F.jsx)(J,{name:c.icon,size:16}),(0,F.jsx)(`span`,{children:c.label})]}),(0,F.jsxs)(`details`,{className:`pc-mobile-more`,open:r,onToggle:e=>i(e.currentTarget.open),children:[(0,F.jsxs)(`summary`,{className:`pc-mobile-nav__item`,"aria-label":`More ${s} destinations`,children:[(0,F.jsx)(J,{name:`layers`,size:16}),(0,F.jsx)(`span`,{children:`More`})]}),(0,F.jsx)(`div`,{className:`pc-mobile-more__sheet`,children:o.map(e=>(0,F.jsx)(hA,{item:e,route:t,onNavigate:()=>i(!1)},e.kind))})]})]})}function _A({product:e,route:t,operateAvailable:n,onOpenPalette:r}){let i=e===`operate`?lA:cA,a=!n;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`nav`,{className:`pc-rail`,"aria-label":`Dashboard navigation`,children:[(0,F.jsxs)(`div`,{className:`pc-rail__brand`,children:[(0,F.jsx)(`span`,{className:`pc-rail__tile`,"aria-hidden":`true`,children:`P`}),(0,F.jsx)(`span`,{className:`pc-rail__wordmark`,children:`openplanr`}),(0,F.jsx)(J,{name:`chevrons-up-down`,size:13,color:`var(--pc-text-tertiary)`})]}),(0,F.jsxs)(`div`,{className:`pc-rail__products`,children:[(0,F.jsxs)(`a`,{className:`pc-rail__product`,href:`#/overview`,"aria-current":e===`planning`?`page`:void 0,children:[(0,F.jsx)(J,{name:`list-tree`,size:12}),`planning`]}),(0,F.jsxs)(`a`,{className:`pc-rail__product`,href:`#/operate/today`,"aria-current":e===`operate`?`page`:void 0,"data-unavailable":a||void 0,title:a?`operate — local reviews available; actions require a command gateway`:`operate`,children:[(0,F.jsx)(J,{name:a?`unplug`:`gauge`,size:12}),`operate`]})]}),(0,F.jsxs)(`button`,{type:`button`,className:`pc-rail__palette`,onClick:r,"aria-keyshortcuts":`Meta+K Control+K`,children:[(0,F.jsx)(J,{name:`search`,size:13}),(0,F.jsx)(`span`,{children:`Command…`}),(0,F.jsxs)(`span`,{className:`pc-rail__keys`,children:[(0,F.jsx)(Lp,{size:`sm`,children:`⌘`}),(0,F.jsx)(Lp,{size:`sm`,children:`K`})]})]}),(0,F.jsx)(`div`,{className:`pc-rail__sections`,children:i.map(e=>(0,F.jsxs)(`div`,{className:`pc-rail__section`,children:[(0,F.jsx)(`div`,{className:`pc-rail__label`,children:e.label}),(0,F.jsx)(`div`,{className:`pc-rail__items`,children:e.items.map(e=>(0,F.jsx)(mA,{item:e,route:t},e.kind))})]},e.label))}),(0,F.jsx)(`div`,{className:`pc-rail__footer`,children:uA.map(e=>(0,F.jsx)(mA,{item:e,route:t},e.kind))})]}),(0,F.jsx)(gA,{product:e,route:t,operateAvailable:n},t.kind)]})}var vA=Object.freeze({booting:{label:`booting`,icon:`loader-circle`,tone:`amber`,dot:`amber`,dotLabel:`connecting to the watcher`},connected:{label:`connected`,icon:`activity`,tone:`lime`,dot:`lime`,dotLabel:`watcher connected`},"read-only":{label:`read-only`,icon:`lock`,tone:`ink`,dot:`lime`,dotLabel:`watcher connected`},stale:{label:`stale`,icon:`clock`,tone:`amber`,dot:`amber`,dotLabel:`watcher stale`},offline:{label:`offline`,icon:`unplug`,tone:`verm`,dot:`off`,dotLabel:`watcher offline`},incompatible:{label:`incompatible`,icon:`octagon-alert`,tone:`verm`,dot:`off`,dotLabel:`watcher stopped`}});function yA({state:e}){let t=vA[e];return(0,F.jsxs)(`span`,{className:`pc-conn`,"data-tone":t.tone,title:`connection: ${t.label}`,children:[(0,F.jsx)(J,{name:t.icon,size:11,spin:e===`booting`}),t.label]})}function bA({state:e}){let t=vA[e];return(0,F.jsxs)(`span`,{className:`pc-watcher`,role:`status`,"aria-label":t.dotLabel,children:[(0,F.jsx)(`span`,{className:`pc-watcher__dot`,"data-dot":t.dot,"aria-hidden":`true`}),(0,F.jsx)(`span`,{className:`pc-watcher__label`,children:t.dotLabel})]})}var xA=`op-theme`,SA=Object.freeze({system:`light`,light:`dark`,dark:`system`}),CA=Object.freeze({system:`monitor`,light:`sun`,dark:`moon`});function wA(){try{let e=localStorage.getItem(xA);if(e===`light`||e===`dark`||e===`system`)return e}catch{}return`system`}function TA(e){let t=document.documentElement;e===`system`?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,e)}function EA(){let[e,t]=(0,v.useState)(`system`);return(0,v.useEffect)(()=>{let e=wA();t(e),TA(e)},[]),(0,F.jsx)(Ip,{icon:CA[e],label:`Theme: ${e}. Switch to ${SA[e]}.`,size:`sm`,onClick:()=>{let n=SA[e];t(n),TA(n);try{localStorage.setItem(xA,n)}catch{}}})}function DA({projectName:e,showSubject:t=!1,route:n,connectionState:r,inspectorOpen:i,onToggleInspector:a,onOpenPalette:o}){let s=M(n),c=n.product??`system`,l=!t||n.kind===`not-found`?null:n.subjectId;return(0,F.jsxs)(`header`,{className:`pc-topbar`,children:[e?(0,F.jsx)(`span`,{className:`pc-topbar__crumb`,title:e,children:e}):null,(0,F.jsx)(`span`,{className:`pc-topbar__crumb`,children:c}),(0,F.jsx)(J,{name:`chevron-right`,size:12,color:`var(--pc-text-tertiary)`}),(0,F.jsx)(`span`,{className:`pc-topbar__view`,children:s?.label??`Closed route`}),l?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(J,{name:`chevron-right`,size:12,color:`var(--pc-text-tertiary)`}),(0,F.jsx)(`span`,{className:`pc-topbar__subject`,title:l,children:l})]}):null,(0,F.jsxs)(`button`,{type:`button`,className:`pc-topbar__palette`,onClick:o,"aria-keyshortcuts":`Meta+K Control+K`,children:[(0,F.jsx)(J,{name:`search`,size:13}),(0,F.jsx)(`span`,{className:`pc-topbar__placeholder`,children:`Jump to a view or an artifact…`}),(0,F.jsxs)(`span`,{className:`pc-rail__keys`,children:[(0,F.jsx)(Lp,{size:`sm`,children:`⌘`}),(0,F.jsx)(Lp,{size:`sm`,children:`K`})]})]}),(0,F.jsxs)(`output`,{className:`pc-topbar__end`,"aria-live":`polite`,children:[r===`read-only`?null:(0,F.jsx)(yA,{state:r}),(0,F.jsx)(yA,{state:`read-only`})]}),(0,F.jsx)(EA,{}),(0,F.jsx)(Ip,{icon:i?`panel-right-close`:`panel-left-close`,label:i?`Hide inspector`:`Show inspector`,size:`sm`,active:i,onClick:a})]})}function OA({branch:e,nodeCount:t,edgeCount:n,connectionState:r,buildId:i}){return(0,F.jsxs)(`footer`,{className:`pc-statusbar`,children:[(0,F.jsxs)(`span`,{className:`pc-statusbar__item`,children:[(0,F.jsx)(J,{name:`git-branch`,size:11}),(0,F.jsx)(`span`,{className:`pc-statusbar__text`,children:e??(0,F.jsx)(km,{children:`no branch`})})]}),(0,F.jsx)(`span`,{className:`pc-statusbar__item`,children:(0,F.jsx)(`span`,{className:`pc-statusbar__text`,children:t===null?`graph not read`:`${t} nodes · ${n===null?`—`:n} edges`})}),(0,F.jsx)(bA,{state:r}),(0,F.jsx)(`span`,{className:`pc-statusbar__end`,title:`Served build`,children:(0,F.jsx)(`span`,{className:`pc-statusbar__text`,children:i})})]})}var kA=Object.freeze([`type`,`sprintId`,`updated`,`dependsOn`,`ref`]);function AA(e){typeof window<`u`&&(window.location.hash=e)}function jA({mode:e,selection:t,floating:n}){return(0,F.jsx)(`aside`,{className:`pc-shell-inspector`,"data-floating":n||void 0,"aria-label":`Inspector`,children:e===`skeleton`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`pc-shell-inspector__head`,children:[(0,F.jsx)(Hp,{w:92,h:18,radius:`var(--pc-radius-xs)`}),(0,F.jsx)(Hp,{w:64,h:14})]}),(0,F.jsx)(Hp,{h:16}),(0,F.jsx)(Hp,{w:`72%`,h:16}),(0,F.jsx)(`div`,{className:`pc-shell-inspector__skeleton`,children:kA.map((e,t)=>(0,F.jsxs)(`div`,{className:`pc-shell-inspector__skeleton-row`,children:[(0,F.jsx)(`span`,{children:e}),(0,F.jsx)(Hp,{h:12,delay:t*60})]},e))})]}):e===`stub`?(0,F.jsxs)(`div`,{className:`pc-shell-inspector__stub`,children:[(0,F.jsx)(`span`,{className:`pc-shell-inspector__id`,children:`inspector`}),(0,F.jsx)(`p`,{children:`No artifact has been read. The schema on disk is a version this build does not parse.`})]}):t===null?(0,F.jsx)(Bp,{icon:`square-dashed`,title:`Nothing selected`,description:`Pick a row in a table or a node in the graph to read it here.`}):t.kind===`action`?(0,F.jsxs)(`div`,{className:`pc-shell-inspector__content`,"aria-live":`polite`,children:[(0,F.jsxs)(`div`,{className:`pc-shell-inspector__head`,children:[(0,F.jsx)(`span`,{className:`pc-shell-inspector__id`,children:t.actionId}),(0,F.jsx)(lm,{state:t.state,size:`sm`})]}),(0,F.jsx)(`h2`,{className:`pc-shell-inspector__title`,children:t.title}),(0,F.jsxs)(`div`,{className:`pc-shell-inspector__metadata`,children:[(0,F.jsx)(Am,{label:`Revision`,mono:!0,children:t.revision}),(0,F.jsx)(Am,{label:`Route`,mono:!0,children:t.route??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`Executions`,mono:!0,children:t.executions>0?t.executions:(0,F.jsx)(km,{children:`none`})}),(0,F.jsx)(Am,{label:`Deep link`,mono:!0,children:t.deepLink??(0,F.jsx)(km,{})})]}),t.href?(0,F.jsx)(Pp,{variant:`secondary`,size:`sm`,iconAfter:`arrow-right`,onClick:()=>AA(t.href),children:`Open action`}):null]}):(0,F.jsxs)(`div`,{className:`pc-shell-inspector__content`,"aria-live":`polite`,children:[(0,F.jsxs)(`div`,{className:`pc-shell-inspector__head`,children:[(0,F.jsx)(dm,{type:t.type,id:t.id}),(0,F.jsx)(am,{status:t.status,size:`sm`})]}),(0,F.jsx)(`h2`,{className:`pc-shell-inspector__title`,children:t.title}),(0,F.jsxs)(`div`,{className:`pc-shell-inspector__metadata`,children:[(0,F.jsx)(Am,{label:`Type`,mono:!0,children:t.type}),(0,F.jsx)(Am,{label:`Sprint`,mono:!0,children:t.sprintId??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`Updated`,mono:!0,children:t.updated??(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`Dependencies`,mono:!0,children:t.dependsOn.length>0?t.dependsOn.join(`, `):(0,F.jsx)(km,{})}),(0,F.jsx)(Am,{label:`Reference`,mono:!0,children:t.ref??(0,F.jsx)(km,{})})]}),t.href?(0,F.jsx)(Pp,{variant:`secondary`,size:`sm`,iconAfter:`arrow-right`,onClick:()=>AA(t.href),children:`Open artifact`}):null]})})}var MA=1180,NA=Object.freeze({"planning.overview":{eyebrow:`planr-status`,shape:`overview`},"planning.list":{eyebrow:`planr-plan`,shape:`table`,columns:[{label:`Item`},{label:`Status`,width:132},{label:`Sprint`,width:88},{label:`Deps`,width:56},{label:`Updated`,width:88},{label:`Ref`,width:96}]},"planning.graph":{eyebrow:`planr-diagram`,shape:`graph`},"planning.board":{eyebrow:`planr-status`,shape:`board`},"planning.sprints":{eyebrow:`planr-status`,shape:`cards`},"planning.activity":{eyebrow:`planr-status`,shape:`cards`},"planning.search":{eyebrow:`planr-status`,shape:`table`,columns:[{label:`Result`},{label:`Kind`,width:120}]},"planning.console":{eyebrow:`planr-dashboard`,shape:`table`,columns:[{label:`Skill`,width:190},{label:`Purpose`},{label:`Invocation`,width:268}]},"planning.detail":{eyebrow:`planr-plan`,shape:`detail`},"planning.spec":{eyebrow:`planr-spec`,shape:`detail`},"system.diagnostics":{eyebrow:`planr-doctor`,shape:`table`,columns:[{label:`Check`},{label:`Detail`},{label:`Result`,width:140}]}}),PA=Object.freeze({eyebrow:`planr-operate`,shape:`cards`}),FA=Object.freeze([`a`,`b`,`c`,`d`,`e`]);function IA(e){return e.kind!==`not-found`&&e.kind in NA?NA[e.kind]:e.product===`operate`?PA:NA[`planning.overview`]}function LA({route:e,note:t}){let n=M(e),r=IA(e),i=e.subjectId??n?.label??`Workspace`,a=e.product===`operate`?`Reading the Operate projection. The route is already resolved.`:`Reading the graph from ${Kh}/. The route is already resolved.`;return(0,F.jsxs)(`div`,{className:`pc-transit`,"aria-busy":`true`,children:[(0,F.jsx)(Jp,{eyebrow:r.eyebrow,title:i,count:t,description:a}),r.shape===`overview`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(zp,{padding:14,children:(0,F.jsx)(Hp,{h:44})}),(0,F.jsx)(`div`,{className:`pc-transit__gap`,children:(0,F.jsx)(Wp,{rows:4,label:`Loading blocked`,columns:[{label:`Item`},{label:`Depends on`,width:200},{label:`Sprint`,width:92},{label:`Updated`,width:88}]})})]}):r.shape===`graph`?(0,F.jsx)(zp,{padding:14,children:(0,F.jsx)(Hp,{h:420})}):r.shape===`board`?(0,F.jsx)(`div`,{className:`pc-transit__board`,children:FA.map((e,t)=>(0,F.jsxs)(zp,{padding:10,children:[(0,F.jsx)(Hp,{w:`52%`,h:12,delay:t*60}),(0,F.jsx)(`div`,{className:`pc-transit__gap-sm`,children:(0,F.jsx)(Hp,{h:54,delay:t*60+40})}),(0,F.jsx)(`div`,{className:`pc-transit__gap-sm`,children:(0,F.jsx)(Hp,{h:54,delay:t*60+80})})]},e))}):r.shape===`cards`?(0,F.jsx)(Gp,{count:4,label:`Loading ${i}`}):r.shape===`detail`?(0,F.jsx)(Gp,{count:1,height:168,min:520,label:`Loading artifact`}):(0,F.jsx)(Wp,{rows:8,columns:r.columns??[],label:`Loading ${i}`})]})}function RA({route:e,phase:t,detail:n}){let r=t===`incompatible`||t===`unavailable`;return(0,F.jsxs)(`div`,{className:`pc-boot`,children:[(0,F.jsxs)(`div`,{className:`pc-boot__strip`,role:`status`,"aria-live":`polite`,children:[(0,F.jsx)(J,{name:r?`octagon-alert`:`loader-circle`,size:13,spin:!r,color:r?`var(--pc-astate-failed-fg)`:`var(--pc-astate-proposed-fg)`}),(0,F.jsx)(`span`,{children:`boot`}),(0,F.jsx)(`span`,{className:`pc-boot__steps`,children:[`checking`,r?t:`compatible`].map((e,n)=>(0,F.jsxs)(v.Fragment,{children:[n>0?(0,F.jsx)(J,{name:`chevron-right`,size:11,color:`var(--pc-text-tertiary)`}):null,(0,F.jsx)(`span`,{className:`pc-boot__phase`,"data-current":e===t||void 0,children:e})]},e))})]}),(0,F.jsx)(`div`,{className:`pc-boot__body`,children:r?(0,F.jsx)(`div`,{className:`pc-boot__card`,children:(0,F.jsx)(zp,{padding:14,children:(0,F.jsxs)(`div`,{className:`pc-boot__stack`,children:[(0,F.jsx)($p,{tone:t===`incompatible`?`danger`:`warn`,title:t===`incompatible`?`This build cannot read the graph on disk`:`No graph at this path`,children:n??(t===`incompatible`?`The .planr/ schema on disk is a version this dashboard does not read. Nothing was opened, and nothing on disk was touched.`:`The dashboard started, but there is no .planr/ directory to read. Planning fills in as soon as one exists.`)}),(0,F.jsx)(em,{command:t===`incompatible`?`/planr-doctor`:`/planr-plan`,label:t===`incompatible`?`check the schema version`:`create the graph`,size:`sm`})]})})}):(0,F.jsx)(`div`,{className:`pc-shell__scroll`,children:(0,F.jsx)(LA,{route:e,note:`booting`})})})]})}function zA({state:e,reason:t}){return e===`stale`?(0,F.jsx)(`div`,{className:`pc-plane-banner`,children:(0,F.jsx)($p,{tone:`warn`,title:`Showing the last good read`,children:t})}):(0,F.jsxs)(`div`,{className:`pc-plane-banner`,children:[(0,F.jsx)($p,{tone:`danger`,title:`Offline — the watcher is not reachable`,children:t}),(0,F.jsx)(em,{command:`/planr-dashboard`,label:`restart the local reader`,size:`sm`})]})}function BA({detail:e}){return(0,F.jsxs)(`div`,{className:`pc-incompatible`,children:[(0,F.jsx)($p,{tone:`danger`,title:`This build cannot read the graph on disk`,children:e??`The .planr/ schema is a version the dashboard does not understand. It stopped rather than render a partial or wrong reading of the plan.`}),(0,F.jsx)(em,{command:`/planr-doctor`,label:`report the schema version on disk`,size:`sm`}),(0,F.jsx)($p,{tone:`info`,title:`Nothing was changed`,children:`The dashboard only ever reads. No file was migrated, rewritten or removed.`})]})}var VA=1440;function HA(e){return typeof window>`u`?()=>void 0:(window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e))}function UA(){return typeof window>`u`?VA:window.innerWidth}function WA(){let{route:e,identity:t,connection:n,buildId:r,binding:i,projection:a,planningProjection:o,operateSearchBindings:s,operateReviewNavigation:c,refetchCurrent:l,bootstrap:u,bootPhase:d,bootDetail:f}=ht(),p=Cy(o),m=ky(),h=(0,v.useSyncExternalStore)(HA,UA,()=>VA)<MA,[g,_]=(0,v.useState)(()=>UA()>=MA);(0,v.useEffect)(()=>{h&&_(!1)},[h,e]),(0,v.useEffect)(()=>{m.openTick>0&&_(!0)},[m.openTick]);let y=e.product??`planning`,b=d===`incompatible`||n.state===`incompatible`,x=e.kind===`system.diagnostics`||b,S=n.state===`booting`&&!x,C=S?`skeleton`:b?`stub`:`selection`,w=u!==null&&u.queryRoots.operate===null,T=e.product===`operate`&&w,E=i?.productArea===`planning`?Fh(o,i):null,D=E?null:Ph(o),O=E?E.graph.nodes.length:D&&D.length>0?D.length:null,k=E?E.graph.edges.length:null;return(0,F.jsxs)(`div`,{className:`pc-shell`,"data-dashboard-build-id":r,"data-product":e.product??`system`,children:[(0,F.jsx)(`a`,{className:`pc-skip-link`,href:`#main-content`,onClick:e=>{e.preventDefault(),document.getElementById(`main-content`)?.focus({preventScroll:!1})},children:`Skip to main content`}),(0,F.jsx)(_A,{product:y,route:e,operateAvailable:!w,onOpenPalette:p.show}),(0,F.jsxs)(`div`,{className:`pc-shell__column`,children:[(0,F.jsx)(DA,{route:e,projectName:t.projectName,showSubject:eA({route:e,projection:a,binding:i}),connectionState:n.state,inspectorOpen:g,onToggleInspector:()=>_(e=>!e),onOpenPalette:p.show}),(0,F.jsxs)(`div`,{className:`pc-shell__plane`,children:[(0,F.jsx)(`main`,{id:`main-content`,className:`pc-shell__main`,tabIndex:-1,"aria-busy":S||void 0,children:T?(0,F.jsx)(Oh,{route:e,origin:u.origin},e.kind):S?(0,F.jsx)(RA,{route:e,phase:d,detail:f}):(0,F.jsxs)(F.Fragment,{children:[n.state===`stale`||n.state===`offline`?(0,F.jsx)(zA,{state:n.state,reason:n.reason}):null,(0,F.jsx)(`div`,{className:`pc-shell__scroll`,children:x?(0,F.jsxs)(F.Fragment,{children:[b?(0,F.jsx)(BA,{detail:f}):null,(0,F.jsx)(Wm,{embeddedBuildId:r,bootstrap:u,bootPhase:d,bootDetail:f,connection:n})]}):(0,F.jsx)(`div`,{className:`op-route-frame`,children:(0,F.jsx)(sA,{route:e,projection:a,binding:i,connectionState:n.state,searchSources:p.sources,operateSearchBindings:s,operateReviewNavigation:c,refetchCurrent:l})})})]})}),g?(0,F.jsx)(jA,{mode:C,selection:m.selection,floating:h},`${e.kind}:${e.subjectId??``}:${m.openTick}`):null]}),(0,F.jsx)(OA,{branch:u?.project.branch??null,nodeCount:O,edgeCount:k,connectionState:n.state,buildId:r})]}),(0,F.jsx)(by,{open:p.open,onClose:p.close,sources:p.sources,operateBindings:s,preferredOperateCycleId:e.product===`operate`?i?.cycleId:null,connectionState:n.state})]})}var GA=/^[A-Za-z0-9][A-Za-z0-9._-]{0,159}$/u,KA=/^sha256:[a-f0-9]{64}$/u,qA=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,JA=/^(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/u,YA=/^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?$/u,XA=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,ZA=[`DASHBOARD_MANIFEST_MISSING`,`DASHBOARD_MANIFEST_INVALID`,`DASHBOARD_ASSET_MISSING`,`DASHBOARD_BUILD_MISMATCH`];function QA(e,t,n){if(e!==t)throw new I(n,`expected ${t}`);return t}function $A(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new I(n,`contains an unsupported value`);return e}function ej(e){if(typeof e!=`string`||e.length<1||e.length>160)throw new I(`$.project.name`,`contains an invalid string`);for(let t of e){let e=t.codePointAt(0)??0;if(e<=31||e>=127&&e<=159)throw new I(`$.project.name`,`contains an invalid string`)}return e}function tj(e,t){if(e===null)return null;let n=ue(e,[`actorId`,`projectId`,`scopeId`,`domainId`,`domainVersion`,`generation`],t);if(!Number.isSafeInteger(n.generation)||n.generation<0)throw new I(`${t}.generation`,`expected a non-negative safe integer`);return Object.freeze({actorId:L(n.actorId,`${t}.actorId`,qA),projectId:L(n.projectId,`${t}.projectId`,KA),scopeId:L(n.scopeId,`${t}.scopeId`,qA),domainId:L(n.domainId,`${t}.domainId`,qA),domainVersion:L(n.domainVersion,`${t}.domainVersion`,JA),generation:n.generation})}function nj(e){let t=ue(e,[`kind`,`schemaVersion`,`protocolVersion`,`ui`,`server`,`capabilities`,`project`,`queryRoots`,`origin`,`compatibility`],`$`),n=ue(t.ui,[`buildId`,`expectedBuildId`,`assetManifestHash`],`$.ui`),r=ue(t.server,[`packageVersion`],`$.server`),i=ue(t.capabilities,[`planningGraph`,`operateExperience`,`operateCommands`,`diagnostics`],`$.capabilities`),a=ue(i.planningGraph,[`schemaVersion`],`$.capabilities.planningGraph`),o=ue(i.operateExperience,[`protocolVersion`,`schemaVersion`],`$.capabilities.operateExperience`),s=ue(i.operateCommands,[`protocolVersion`,`transportVersion`,`available`],`$.capabilities.operateCommands`),c=ue(i.diagnostics,[`schemaVersion`,`available`],`$.capabilities.diagnostics`),l=ue(t.project,[`projectId`,`name`,`branch`,`products`],`$.project`),u=ue(t.queryRoots,[`planning`,`operate`],`$.queryRoots`),d=ue(t.compatibility,[`status`,`reasonCodes`],`$.compatibility`),f=fe(n.buildId,`$.ui.buildId`,GA),p=fe(n.expectedBuildId,`$.ui.expectedBuildId`,GA),m=fe(n.assetManifestHash,`$.ui.assetManifestHash`,KA),h=$A(d.status,[`compatible`,`incompatible`],`$.compatibility.status`);if(!Array.isArray(d.reasonCodes))throw new I(`$.compatibility.reasonCodes`,`expected an array`);let g=d.reasonCodes.map((e,t)=>$A(e,ZA,`$.compatibility.reasonCodes[${t}]`));if(new Set(g).size!==g.length)throw new I(`$.compatibility.reasonCodes`,`contains duplicates`);if(h===`compatible`){if(!f||!p||!m||g.length>0)throw new I(`$.compatibility`,`compatible bootstrap lacks exact build custody`);if(f!==p)throw new I(`$.ui`,`compatible build identities differ`)}else if(g.length===0)throw new I(`$.compatibility`,`incompatible bootstrap requires a reason`);if(f!==p&&!g.includes(`DASHBOARD_BUILD_MISMATCH`))throw new I(`$.ui`,`build mismatch requires its exact reason`);if(g.includes(`DASHBOARD_BUILD_MISMATCH`)&&f===p)throw new I(`$.ui`,`build mismatch reason requires unequal build identities`);if(!Array.isArray(l.products)||l.products.length!==2||new Set(l.products).size!==2||!l.products.includes(`planning`)||!l.products.includes(`operate`))throw new I(`$.project.products`,`expected the exact Planning and Operate set`);let _=L(l.projectId,`$.project.projectId`,KA),v=tj(u.planning,`$.queryRoots.planning`),y=tj(u.operate,`$.queryRoots.operate`);for(let[e,t]of[[`planning`,v],[`operate`,y]])if(t!==null&&t.projectId!==_)throw new I(`$.queryRoots.${e}.projectId`,`does not equal the bootstrap project identity`);if(v!==null&&(v.scopeId!==`planning`||v.domainId!==`planning`||v.domainVersion!==`1.0.0`))throw new I(`$.queryRoots.planning`,`does not equal the Planning read domain`);return Object.freeze({kind:QA(t.kind,`dashboard-bootstrap`,`$.kind`),schemaVersion:QA(t.schemaVersion,`1.0.0`,`$.schemaVersion`),protocolVersion:QA(t.protocolVersion,`1.2.0`,`$.protocolVersion`),ui:Object.freeze({buildId:f,expectedBuildId:p,assetManifestHash:m}),server:Object.freeze({packageVersion:L(r.packageVersion,`$.server.packageVersion`,YA)}),capabilities:Object.freeze({planningGraph:Object.freeze({schemaVersion:QA(a.schemaVersion,`1.0.0`,`$.capabilities.planningGraph.schemaVersion`)}),operateExperience:Object.freeze({protocolVersion:QA(o.protocolVersion,`2.0.0`,`$.capabilities.operateExperience.protocolVersion`),schemaVersion:QA(o.schemaVersion,`1.0.0`,`$.capabilities.operateExperience.schemaVersion`)}),operateCommands:Object.freeze({protocolVersion:QA(s.protocolVersion,`2.0.0`,`$.capabilities.operateCommands.protocolVersion`),transportVersion:QA(s.transportVersion,`1.0.0`,`$.capabilities.operateCommands.transportVersion`),available:R(s.available,`$.capabilities.operateCommands.available`)}),diagnostics:Object.freeze({schemaVersion:QA(c.schemaVersion,`1.0.0`,`$.capabilities.diagnostics.schemaVersion`),available:R(c.available,`$.capabilities.diagnostics.available`)})}),project:Object.freeze({projectId:_,name:ej(l.name),branch:L(l.branch,`$.project.branch`,/^.{1,255}$/u),products:Object.freeze([...l.products])}),queryRoots:Object.freeze({planning:v,operate:y}),origin:L(t.origin,`$.origin`,XA),compatibility:Object.freeze({status:h,reasonCodes:Object.freeze(g)})})}async function rj(e,t={}){try{let n=await(t.fetcher??fetch)(`/api/bootstrap`,{method:`GET`,headers:{accept:`application/json`},signal:t.signal});if(!n.ok)throw new I(`$`,`bootstrap request failed with ${n.status}`);if(!n.headers.get(`content-type`)?.toLowerCase().startsWith(`application/json`))throw new I(`$`,`bootstrap response is not JSON`);let r=nj(ge(await n.text())),i=t.expectedOrigin??(typeof window>`u`?null:window.location.origin);if(!i||r.origin!==i)throw new I(`$.origin`,`does not equal the current loopback origin`);return r.compatibility.status!==`compatible`||r.ui.buildId!==e||r.ui.expectedBuildId!==e?Object.freeze({bootstrap:r,phase:`incompatible`,detail:r.compatibility.reasonCodes.length>0?r.compatibility.reasonCodes.join(` · `):`Installed dashboard build is incompatible.`}):Object.freeze({bootstrap:r,phase:`compatible`,detail:null})}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)throw e;return Object.freeze({bootstrap:null,phase:`unavailable`,detail:e instanceof Error?e.message:`OpenPlanr did not return a validated bootstrap envelope.`})}}var ij=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,aj=4194304;function oj(e){return typeof e==`object`&&!!e&&e.kind===`operate-action-display-workspace`}function sj(e){return typeof e==`object`&&!!e&&e.kind===`operate-recovery-display-surface`}function cj(e){return typeof e==`object`&&!!e&&e.kind===`operate-experience-display-surface`}function lj(e,t,n){if(!ij.test(e))throw Error(`Operate dashboard reads require an exact loopback origin.`);if(n.productArea!==`operate`||n.cycleId===null)throw Error(`Operate collection identity is incomplete.`);let r=new URL(t,e);return r.searchParams.set(`scopeId`,n.scopeId),r.searchParams.set(`domainId`,n.domainId),r.searchParams.set(`domainVersion`,n.domainVersion),r.searchParams.set(`cycleId`,n.cycleId),r.searchParams.set(`projectId`,n.projectId),r.searchParams.set(`generation`,String(n.generation)),r}async function uj(e){let{identity:t}=e;if(t.cycleId===null)return null;let n=lj(e.origin,`/api/operate/actions`,t),r=await(e.fetcher??fetch)(n,{headers:{accept:`application/json`,"x-openplanr-actor":t.actorId},cache:`no-store`,signal:e.signal}),i=await r.text();if(new TextEncoder().encode(i).byteLength>aj)throw Error(`Actions display response exceeds the dashboard JSON limit.`);let a;try{a=JSON.parse(i)}catch{throw Error(`Actions display response is not JSON.`)}if(!r.ok||!cj(a))return null;try{gb(a,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:a.payload.generatedAt,eventHead:a.payload.eventHead,viewHash:t.viewHash??a.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:`actions`,subjectId:null,cycleId:t.cycleId})}catch{return null}return a}function dj(e,t,n){if(!ij.test(e))throw Error(`Operate dashboard reads require an exact loopback origin.`);if(n.productArea!==`operate`||n.cycleId===null||n.subjectId===null)throw Error(`Operate Action detail identity is incomplete.`);let r=new URL(t,e);return r.searchParams.set(`scopeId`,n.scopeId),r.searchParams.set(`domainId`,n.domainId),r.searchParams.set(`domainVersion`,n.domainVersion),r}async function fj(e){let{identity:t}=e;if(t.subjectId===null||t.cycleId===null)return null;let n=dj(e.origin,`/api/operate/actions/${encodeURIComponent(t.subjectId)}`,t),r=await(e.fetcher??fetch)(n,{headers:{accept:`application/json`,"x-openplanr-actor":t.actorId},cache:`no-store`,signal:e.signal}),i=await r.text();if(new TextEncoder().encode(i).byteLength>aj)throw Error(`Action display response exceeds the dashboard JSON limit.`);let a;try{a=JSON.parse(i)}catch{throw Error(`Action display response is not JSON.`)}if(!r.ok||!oj(a))return null;try{let e={actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:a.payload.generatedAt,eventHead:a.payload.eventHead,viewHash:t.viewHash??a.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:`actions`,cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId};Fb(a,e)}catch{return null}return a}async function pj(e){let{identity:t}=e,n=t.subjectId===null?`/api/operate/inbox`:`/api/operate/inbox/${encodeURIComponent(t.subjectId)}`,r=new URL(n,e.origin);r.searchParams.set(`scopeId`,t.scopeId),r.searchParams.set(`domainId`,t.domainId),r.searchParams.set(`domainVersion`,t.domainVersion),r.searchParams.set(`projectId`,t.projectId),r.searchParams.set(`generation`,String(t.generation));let i=await(e.fetcher??fetch)(r,{headers:{accept:`application/json`,"x-openplanr-actor":t.actorId},cache:`no-store`,signal:e.signal}),a=await i.text();if(new TextEncoder().encode(a).byteLength>aj)throw Error(`Inbox display response exceeds the dashboard JSON limit.`);let o;try{o=JSON.parse(a)}catch{throw Error(`Inbox display response is not JSON.`)}if(!i.ok||!cj(o))return null;try{gb(o,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:o.payload.generatedAt,eventHead:o.payload.eventHead,viewHash:t.viewHash??o.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:`inbox`,subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return o}async function mj(e){let{identity:t}=e,n=new URL(`/api/operate/recovery`,e.origin);n.searchParams.set(`scopeId`,t.scopeId),n.searchParams.set(`domainId`,t.domainId),n.searchParams.set(`domainVersion`,t.domainVersion);let r=await(e.fetcher??fetch)(n,{headers:{accept:`application/json`,"x-openplanr-actor":t.actorId},cache:`no-store`,signal:e.signal}),i=await r.text();if(new TextEncoder().encode(i).byteLength>aj)throw Error(`Recovery display response exceeds the dashboard JSON limit.`);let a;try{a=JSON.parse(i)}catch{throw Error(`Recovery display response is not JSON.`)}if(!r.ok||!sj(a))return null;try{zb(a,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:a.payload.generatedAt,eventHead:a.payload.eventHead,viewHash:t.viewHash??a.payload.viewHash})}catch{return null}return a}var hj=Object.freeze({createDetailValidator:px,createInboxValidator:dE,createListValidator:zx,createRecoveryValidator:jE,fetchDetail:fj,fetchInbox:pj,fetchList:uj,fetchRecovery:mj}),gj=Object.freeze({createEvidenceValidator:dC,createHistoryValidator:_C,createOutcomeValidator:wC}),_j=Object.freeze({createDetailValidator:uT,createListValidator:XT}),vj=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,yj=4194304;function bj(e,t,n,r){if(!vj.test(e))throw Error(`Review reads require an exact loopback origin.`);let i=new URL(`/api/operate/cycles/${encodeURIComponent(n)}/reviews/${encodeURIComponent(r)}`,e);return i.searchParams.set(`scopeId`,t.scopeId),i.searchParams.set(`domainId`,t.domainId),i.searchParams.set(`domainVersion`,t.domainVersion),i}async function xj(e){let t=await(e.fetcher??fetch)(bj(e.origin,e.root,e.cycleId,e.reviewId),{headers:{accept:`application/json`,"x-openplanr-actor":e.root.actorId},cache:`no-store`,signal:e.signal});if(!t.ok||!t.headers.get(`content-type`)?.startsWith(`application/json`))throw Error(`The owner-issued Review workspace is unavailable.`);let n=await t.text();if(new TextEncoder().encode(n).byteLength>yj)throw Error(`The owner-issued Review workspace exceeds its wire limit.`);let r;try{r=JSON.parse(n)}catch{throw Error(`The owner-issued Review workspace is not JSON.`)}let i=tt(r);return pD(i),pD(i,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,reviewId:e.reviewId,sourceArtifactKind:i.payload.sourceArtifactKind,sourceArtifactHash:i.payload.sourceArtifactHash,sourceEventHead:i.payload.sourceEventHead,sourceReadEventHead:i.payload.sourceReadEventHead,sourceViewHash:i.payload.sourceViewHash}),i}var Sj=Object.freeze({createValidator:zD,fetch:xj,uniqueNavigationForCycle:oT}),Cj=Object.freeze({createValidator:iO,resolveModel:cO}),wj=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,Tj=4194304;function Ej(e,t){if(!wj.test(e))throw Error(`Dashboard reads require an exact loopback origin.`);return new URL(t,e)}async function Dj(e,t){if(t?.aborted)throw t.reason;if(!e.ok||!e.headers.get(`content-type`)?.startsWith(`application/json`))throw Error(`The owner-issued dashboard projection is unavailable.`);let n=await e.text();if(new TextEncoder().encode(n).byteLength>Tj)throw Error(`The owner-issued dashboard projection exceeds its wire limit.`);try{return JSON.parse(n)}catch{throw Error(`The owner-issued dashboard projection is not JSON.`)}}function Oj(e,t,n){let r=Ej(e,t);return r.searchParams.set(`scopeId`,n.scopeId),r.searchParams.set(`domainId`,n.domainId),r.searchParams.set(`domainVersion`,n.domainVersion),r}function kj(e){return Object.freeze({accept:`application/json`,"x-openplanr-actor":e.actorId})}function Aj(e,t,n={}){if(t.kind===`not-found`||t.product===null)throw Error(`A query root cannot bind an unknown or system route.`);return z({productArea:t.product,route:j(t),actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,cycleId:n.cycleId??null,subjectId:t.subjectId,eventHead:n.eventHead??null,viewHash:n.viewHash??null,generation:e.generation})}async function jj(e){let t=Oj(e.origin,`/api/operate/${e.surface}`,e.root),n=tt(await Dj(await(e.fetcher??fetch)(t,{headers:kj(e.root),cache:`no-store`,signal:e.signal}),e.signal)),r=gb(n).payload;if(gb(n,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:r.viewHash,surface:e.surface,subjectId:null,cycleId:null}),r.surface!==e.surface)throw Error(`The owner returned a display for a different Operate surface.`);return n}function Mj(e,t){if(t===`history`)return`/api/operate/history`;if(t===`outcome`){if(e.subjectId===null)throw Error(`Outcome detail requires an exact subject.`);return`/api/operate/outcomes/${encodeURIComponent(e.subjectId)}`}return`/api/operate/${t}${e.subjectId?`/${encodeURIComponent(e.subjectId)}`:``}`}async function Nj(e){let t=Oj(e.origin,Mj(e.route,e.surface),e.root);t.searchParams.set(`cycleId`,e.cycleId);let n=tt(await Dj(await(e.fetcher??fetch)(t,{headers:kj(e.root),cache:`no-store`,signal:e.signal}),e.signal)),r=ay(n).payload;if(ay(n,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,subjectId:e.route.subjectId,surface:e.surface,query:null,format:null,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:r.viewHash}),r.surface!==e.surface)throw Error(`The owner returned a display for a different Operate audit surface.`);return n}async function Pj(e){let t=Oj(e.origin,`/api/operate/cycles/${encodeURIComponent(e.cycleId)}`,e.root),n=tt(await Dj(await(e.fetcher??fetch)(t,{headers:kj(e.root),cache:`no-store`,signal:e.signal}),e.signal)),r=Sb(n).payload;return Sb(n,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:r.generatedAt,eventHead:r.eventHead,viewHash:r.viewHash,subjectId:e.cycleId,cycleId:e.cycleId}),n}var Fj=Object.freeze({fetchAuditDisplay:Nj,fetchCycleDisplay:Pj,fetchRootDisplay:jj,identityFromRoot:Aj}),Ij=s({operateRuntime:()=>Lj}),Lj=Object.freeze({actions:hj,audit:gj,cycles:_j,review:Sj,today:Cj,transport:Fj}),Rj=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,zj=/^sha256:[a-f0-9]{64}$/u,Bj=/^ppatch_[1-9][0-9]*_[a-f0-9]{16}$/u,Vj=/^PLANNING_[A-Z0-9_]{1,119}$/u,Hj=new Set([`epic`,`feature`,`story`,`task`,`spec`,`backlog`,`quick`,`sprint`,`adr`]),Uj=new Set([`done`,`in-progress`,`blocked`,`outstanding`,`addressed`]),Wj=new Set([`contains`,`depends_on`]),Gj=new Set([`agile`,`spec`,`mixed`,`empty`]),Kj=16777216,qj=96,Jj=25e4;function Q(e,t){throw new I(e,t)}function Yj(e,t,n){if(typeof e!=`object`||!e||Array.isArray(e))return Q(n,`expected an object`);try{let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)return Q(n,`expected a plain object`);let i=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(i).some(e=>typeof e!=`string`||i[e]?.get!==void 0||i[e]?.set!==void 0))return Q(n,`contains an accessor or symbol field`);let a=Object.keys(i).sort(),o=[...t].sort();return JSON.stringify(a)===JSON.stringify(o)?Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.value])):Q(n,`contains missing or unknown fields`)}catch(e){if(e instanceof I)throw e;return Q(n,`could not be inspected safely`)}}function Xj(e,t,n){for(let r of t)try{return Yj(e,r,n)}catch(e){if(!(e instanceof I))throw e}return Q(n,`contains missing or unknown fields`)}function Zj(e,t){let n=new WeakSet,r=0,i=(e,t,a)=>{if(r+=1,a>qj||r>Jj)return Q(t,`contains an over-complex value`);if(e===null||typeof e==`string`||typeof e==`boolean`)return e;if(typeof e==`number`)return Number.isFinite(e)?e:Q(t,`contains a non-finite number`);if(typeof e!=`object`)return Q(t,`contains a non-JSON value`);if(n.has(e))return Q(t,`contains a repeated or cyclic object`);n.add(e);try{let n=Object.getPrototypeOf(e);if(n!==(Array.isArray(e)?Array.prototype:Object.prototype)&&n!==null)return Q(t,`contains a non-plain object`);let r=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(r).some(e=>typeof e!=`string`||r[e]?.get!==void 0||r[e]?.set!==void 0))return Q(t,`contains an accessor or symbol field`);if(Array.isArray(e)){if(Object.keys(r).some(e=>e!==`length`&&!/^(?:0|[1-9][0-9]*)$/u.test(e)))return Q(t,`contains an invalid array field`);let n=[];for(let o=0;o<e.length;o+=1){let e=r[String(o)];if(!e)return Q(t,`contains a sparse array`);n.push(i(e.value,`${t}[${o}]`,a+1))}return n}return Object.fromEntries(Object.entries(r).map(([e,n])=>[e,i(n.value,`${t}.${e}`,a+1)]))}catch(e){if(e instanceof I)throw e;return Q(t,`could not be inspected safely`)}finally{n.delete(e)}};return i(e,t,0)}function Qj(e,t,n){return typeof e==`string`&&n.test(e)?e:Q(t,`contains an invalid string`)}function $j(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){let n=e.charCodeAt(t+1);if(!(n>=56320&&n<=57343))return!0;t+=1}else if(n>=56320&&n<=57343)return!0}return!1}function eM(e,t){return typeof e!=`string`||e.length<1||e.length>256||e===`.`||e===`..`||e.includes(`\\`)||$j(e)||[...e].some(e=>{let t=e.codePointAt(0)??0;return t<=31||t===127})?Q(t,`contains an invalid subject identity`):e}function tM(e,t){let n=Yj(e,[`sequence`,`hash`],t);if(!Number.isSafeInteger(n.sequence)||n.sequence<0)return Q(`${t}.sequence`,`expected a non-negative safe integer`);let r=n.sequence,i=n.hash===null?null:Qj(n.hash,`${t}.hash`,zj);return r===0==(i===null)?Object.freeze({sequence:r,hash:i}):Q(t,`has an inconsistent head`)}function nM(e,t){let n=Yj(e,[`eventHead`,`viewHash`],t);return Object.freeze({eventHead:tM(n.eventHead,`${t}.eventHead`),viewHash:Qj(n.viewHash,`${t}.viewHash`,zj)})}function rM(e,t=`$.binding`){let n=Yj(e,[`actorId`,`projectId`,`scopeId`,`domainId`,`domainVersion`,`generation`],t);return!Number.isSafeInteger(n.generation)||n.generation<0?Q(`${t}.generation`,`expected a non-negative safe integer`):n.scopeId!==`planning`||n.domainId!==`planning`||n.domainVersion!==`1.0.0`?Q(t,`does not belong to the Planning read domain`):Object.freeze({actorId:Qj(n.actorId,`${t}.actorId`,Rj),projectId:Qj(n.projectId,`${t}.projectId`,zj),scopeId:`planning`,domainId:`planning`,domainVersion:`1.0.0`,generation:n.generation})}function iM(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function aM(e,t){return iM(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function oM(e,t){return t.productArea===`planning`&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.generation===t.generation}function sM(e,t){let n=rM(e);return oM(n,t)?n:Q(`$.binding`,`is foreign to the active read`)}function cM(e,t,n){let r=[`id`,`type`,`title`,`status`,`frontmatter`],i=[`githubIssue`,`linearIssueIdentifier`,...n?[`body`]:[]],a=Xj(e,Array.from({length:1<<i.length},(e,t)=>[...r,...i.filter((e,n)=>!!(t&1<<n))]),t),o=a.type,s=a.status;if(typeof o!=`string`||!Hj.has(o))return Q(`${t}.type`,`contains an unsupported artifact type`);if(typeof s!=`string`||!Uj.has(s))return Q(`${t}.status`,`contains an unsupported status`);if(typeof a.title!=`string`)return Q(`${t}.title`,`expected a string`);let c=Zj(a.frontmatter,`${t}.frontmatter`);if(typeof c!=`object`||!c||Array.isArray(c))return Q(`${t}.frontmatter`,`expected a plain object`);let l={id:eM(a.id,`${t}.id`),type:o,title:a.title,status:s,frontmatter:c};if(Object.hasOwn(a,`githubIssue`)){if(!(typeof a.githubIssue==`string`||Number.isSafeInteger(a.githubIssue)&&a.githubIssue>=0))return Q(`${t}.githubIssue`,`expected a string or non-negative integer`);l.githubIssue=a.githubIssue}if(Object.hasOwn(a,`linearIssueIdentifier`)){if(typeof a.linearIssueIdentifier!=`string`)return Q(`${t}.linearIssueIdentifier`,`expected a string`);l.linearIssueIdentifier=a.linearIssueIdentifier}if(Object.hasOwn(a,`body`)){if(!n||typeof a.body!=`string`)return Q(`${t}.body`,`is not permitted on a graph node`);l.body=a.body}return w_(l)}function lM(e,t){let n=Yj(e,[`from`,`to`,`kind`],t);return typeof n.kind!=`string`||!Wj.has(n.kind)?Q(`${t}.kind`,`contains an unsupported edge kind`):Object.freeze({from:eM(n.from,`${t}.from`),to:eM(n.to,`${t}.to`),kind:n.kind})}function uM(e,t){let n=Yj(e,[`nodes`,`edges`],t);if(!Array.isArray(n.nodes)||!Array.isArray(n.edges))return Q(t,`expected node and edge arrays`);let r=n.nodes.map((e,n)=>cM(e,`${t}.nodes[${n}]`,!1)),i=new Set;for(let e of r){if(i.has(e.id))return Q(`${t}.nodes`,`contains duplicate node identities`);i.add(e.id)}let a=n.edges.map((e,n)=>lM(e,`${t}.edges[${n}]`)),o=new Set;for(let e of a){let n=`${e.kind}\0${e.from}\0${e.to}`;if(!i.has(e.from)||!i.has(e.to))return Q(`${t}.edges`,`contains an edge outside this graph`);if(o.has(n))return Q(`${t}.edges`,`contains duplicate edges`);o.add(n)}return Object.freeze({nodes:Object.freeze(r),edges:Object.freeze(a)})}function dM(e){let t=!1,n=!1;for(let r of e.nodes)(r.type===`epic`||r.type===`feature`)&&(t=!0),r.type===`spec`&&(n=!0);return t&&n?`mixed`:t?`agile`:n?`spec`:`empty`}function fM(e,t){return typeof e==`string`&&Gj.has(e)?e:Q(t,`contains an unsupported Planning mode`)}function pM(e,t){let n=Yj(e,[`updated`,`added`,`removed`,`edges`],t),r=Yj(n.edges,[`added`,`removed`],`${t}.edges`);if(!Array.isArray(n.updated)||!Array.isArray(n.added)||!Array.isArray(n.removed)||!Array.isArray(r.added)||!Array.isArray(r.removed))return Q(t,`contains invalid patch arrays`);let i=n.updated.map((e,n)=>cM(e,`${t}.updated[${n}]`,!1)),a=n.added.map((e,n)=>cM(e,`${t}.added[${n}]`,!1)),o=n.removed.map((e,n)=>eM(e,`${t}.removed[${n}]`)),s=r.added.map((e,n)=>lM(e,`${t}.edges.added[${n}]`)),c=r.removed.map((e,n)=>lM(e,`${t}.edges.removed[${n}]`)),l=[...i,...a].map(e=>e.id);if(new Set(l).size!==l.length||new Set(o).size!==o.length||l.some(e=>o.includes(e)))return Q(t,`contains conflicting node operations`);let u=e=>`${e.kind}\0${e.from}\0${e.to}`,d=s.map(u),f=c.map(u);return new Set(d).size!==d.length||new Set(f).size!==f.length||d.some(e=>f.includes(e))?Q(`${t}.edges`,`contains conflicting edge operations`):Object.freeze({updated:Object.freeze(i),added:Object.freeze(a),removed:Object.freeze(o),edges:Object.freeze({added:Object.freeze(s),removed:Object.freeze(c)})})}function mM(e){if(typeof e!=`string`||new TextEncoder().encode(e).byteLength>Kj)return Q(`$`,`response exceeds the Planning wire limit`);try{let t=0,n=0,r=()=>{for(;/\s/u.test(e[t]??``);)t+=1},i=()=>{if(e[t]!==`"`)return Q(`$`,`contains an invalid JSON string`);let n=t;for(t+=1;t<e.length;)if(e[t]===`\\`)t+=2;else if(e[t]===`"`)return t+=1,JSON.parse(e.slice(n,t));else t+=1;return Q(`$`,`contains an unterminated JSON string`)},a=o=>{if(n+=1,(o>qj||n>Jj)&&Q(`$`,`response exceeds the Planning complexity limit`),r(),e[t]===`{`){t+=1,r();let n=new Set;if(e[t]===`}`){t+=1;return}for(;t<e.length;){r();let s=i();if(n.has(s)&&Q(`$`,`response contains duplicate object members`),n.add(s),r(),e[t]!==`:`&&Q(`$`,`contains an invalid JSON object`),t+=1,a(o+1),r(),e[t]===`}`){t+=1;return}e[t]!==`,`&&Q(`$`,`contains an invalid JSON object`),t+=1}}else if(e[t]===`[`){if(t+=1,r(),e[t]===`]`){t+=1;return}for(;t<e.length;){if(a(o+1),r(),e[t]===`]`){t+=1;return}e[t]!==`,`&&Q(`$`,`contains an invalid JSON array`),t+=1}}else if(e[t]===`"`){i();return}else{let n=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u)?.[0];n||Q(`$`,`contains an invalid JSON value`),t+=n.length;return}Q(`$`,`contains an unterminated JSON value`)};return a(0),r(),t===e.length?JSON.parse(e):Q(`$`,`contains trailing JSON bytes`)}catch(e){if(e instanceof I)throw e;return Q(`$`,`contains invalid JSON`)}}function hM(e,t){let n=Yj(e,[`kind`,`schemaVersion`,`binding`,`cursor`,`mode`,`graph`],`$`);if(n.kind!==`planning-graph-snapshot`||n.schemaVersion!==`1.0.0`)return Q(`$`,`has an unsupported Planning graph contract`);let r=sM(n.binding,t),i=nM(n.cursor,`$.cursor`),a=uM(n.graph,`$.graph`),o=fM(n.mode,`$.mode`);return C_(a)!==i.viewHash||dM(a)!==o?Q(`$`,`graph, mode, and cursor commitment disagree`):Object.freeze({kind:`planning-graph-snapshot`,schemaVersion:`1.0.0`,binding:r,cursor:i,mode:o,graph:a})}function gM(e,t){return hM(mM(e),t)}function _M(e,t){let n=Yj(e,[`patchId`,`patchHash`,`from`,`to`,`patch`],`$.payload`),r=nM(n.from,`$.payload.from`),i=nM(n.to,`$.payload.to`),a=pM(n.patch,`$.payload.patch`),o=Qj(n.patchHash,`$.payload.patchHash`,zj),s=Qj(n.patchId,`$.payload.patchId`,Bj),c=C_(a),l=C_({kind:`planning-live-head`,previous:r.eventHead,sequence:i.eventHead.sequence,patchHash:c,viewHash:i.viewHash});return!aM(i,t)||i.eventHead.sequence!==r.eventHead.sequence+1||i.viewHash===r.viewHash||i.eventHead.hash!==l||C_({from:r,to:i,patch:a})!==o||s!==`ppatch_${i.eventHead.sequence}_${o.slice(7,23)}`?Q(`$.payload`,`patch cursor and commitment disagree`):Object.freeze({patchId:s,patchHash:o,from:r,to:i,patch:a})}function vM(e,t){let n=Yj(typeof e==`string`?mM(e):e,[`kind`,`schemaVersion`,`event`,`binding`,`cursor`,`payload`],`$`);if(n.kind!==`planning-live-event`||n.schemaVersion!==`1.0.0`)return Q(`$`,`has an unsupported Planning live contract`);let r=sM(n.binding,t),i=nM(n.cursor,`$.cursor`),a={kind:`planning-live-event`,schemaVersion:`1.0.0`,binding:r,cursor:i};if(n.event===`snapshot`){let e=Yj(n.payload,[`mode`,`graph`],`$.payload`),t=uM(e.graph,`$.payload.graph`),r=fM(e.mode,`$.payload.mode`);return C_(t)!==i.viewHash||dM(t)!==r?Q(`$.payload`,`snapshot graph and cursor commitment disagree`):Object.freeze({...a,event:`snapshot`,payload:Object.freeze({mode:r,graph:t})})}if(n.event===`patch`)return Object.freeze({...a,event:`patch`,payload:_M(n.payload,i)});if(n.event===`ready`){let e=Yj(n.payload,[`readOnly`,`reasonCodes`],`$.payload`);return e.readOnly!==!0||!Array.isArray(e.reasonCodes)||e.reasonCodes.length?Q(`$.payload`,`contains an invalid ready state`):Object.freeze({...a,event:`ready`,payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([])})})}if(n.event===`stale`){let e=Yj(n.payload,[`readOnly`,`reasonCodes`,`recovery`],`$.payload`);return e.readOnly!==!0||!Array.isArray(e.reasonCodes)||e.reasonCodes.length<1||e.reasonCodes.length>8||e.reasonCodes.some(e=>typeof e!=`string`||!Vj.test(e))||typeof e.recovery!=`string`||e.recovery.length<1||e.recovery.length>240?Q(`$.payload`,`contains an invalid stale state`):Object.freeze({...a,event:`stale`,payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([...e.reasonCodes]),recovery:e.recovery})})}return Q(`$.event`,`contains an unsupported Planning event`)}function yM(e,t){let n=new Set(t.patch.removed),r=new Map(t.patch.updated.map(e=>[e.id,e])),i=e.nodes.filter(e=>!n.has(e.id)).map(e=>r.get(e.id)??e),a=new Set(i.map(e=>e.id));for(let e of t.patch.updated)if(!a.has(e.id))return Q(`$.payload.patch.updated`,`targets a missing node`);for(let e of t.patch.added){if(a.has(e.id))return Q(`$.payload.patch.added`,`duplicates an existing node`);a.add(e.id),i.push(e)}let o=e=>`${e.kind}\0${e.from}\0${e.to}`,s=new Set(t.patch.edges.removed.map(o)),c=e.edges.filter(e=>!s.has(o(e))),l=new Set(c.map(o));for(let n of t.patch.edges.removed)if(!e.edges.some(e=>o(e)===o(n)))return Q(`$.payload.patch.edges.removed`,`targets a missing edge`);for(let e of t.patch.edges.added){if(l.has(o(e)))return Q(`$.payload.patch.edges.added`,`duplicates an existing edge`);l.add(o(e)),c.push(e)}return uM({nodes:i,edges:c},`$.nextGraph`)}function bM(e){let t=e.identity,n=e.initial?hM(e.initial,t):null,r=!1,i=!1,a=null,o=n?JSON.stringify(n):null,s=new Map;n&&!oM(n.binding,t)&&Q(`$.initial.binding`,`is foreign to this reconciler`);let c=()=>r||!e.isCurrent(t),l=t=>c()?Object.freeze({kind:`rejected`,reason:`inactive`}):(i||(i=!0,a=t,e.onRefetch(t)),Object.freeze({kind:`refetch`,reason:a??t})),u=r=>{if(c())return Object.freeze({kind:`rejected`,reason:`inactive`});if(i)return Object.freeze({kind:`refetch`,reason:a??`invalid-event`});if(!oM(r.binding,t))return Object.freeze({kind:`rejected`,reason:`foreign-binding`});if(r.event===`snapshot`){let t=Object.freeze({kind:`planning-graph-snapshot`,schemaVersion:`1.0.0`,binding:r.binding,cursor:r.cursor,mode:r.payload.mode,graph:r.payload.graph});if(n){if(t.cursor.eventHead.sequence<n.cursor.eventHead.sequence)return l(`restart-regression`);if(t.cursor.eventHead.sequence>n.cursor.eventHead.sequence)return l(`gap`);if(!aM(t.cursor,n.cursor))return l(`divergent-duplicate`);let e=JSON.stringify(t);return o===e?Object.freeze({kind:`duplicate`}):l(`divergent-duplicate`)}return n=t,o=JSON.stringify(t),s.clear(),i=!1,a=null,e.onSnapshot(t),Object.freeze({kind:`accepted`,event:`snapshot`})}if(!n)return l(`cursor-mismatch`);if(r.event===`ready`)return aM(r.cursor,n.cursor)?(e.onReady?.(r),Object.freeze({kind:`accepted`,event:`ready`})):l(`cursor-mismatch`);if(r.event===`stale`)return e.onStale?.(r),l(`stale`);let u=r.payload,d=`${u.to.eventHead.sequence}:${u.to.eventHead.hash}:${u.to.viewHash}`,f=JSON.stringify(u);if(aM(u.to,n.cursor))return s.get(d)===f?Object.freeze({kind:`duplicate`}):l(`divergent-duplicate`);if(u.to.eventHead.sequence<=n.cursor.eventHead.sequence)return l(`reordered`);if(u.to.eventHead.sequence!==n.cursor.eventHead.sequence+1)return l(`gap`);if(!aM(u.from,n.cursor))return l(`reordered`);try{let t=yM(n.graph,u);if(C_(t)!==u.to.viewHash)return l(`state-mismatch`);let r=Object.freeze({...n,cursor:u.to,mode:dM(t),graph:t});return s.set(d,f),n=r,o=null,e.onPatch(r,u),Object.freeze({kind:`accepted`,event:`patch`})}catch{return l(`state-mismatch`)}};return Object.freeze({ingest:u,ingestJson:e=>{if(c())return Object.freeze({kind:`rejected`,reason:`inactive`});try{return u(vM(e,t))}catch{return l(`invalid-event`)}},ingestSseFrame:(e,n)=>{if(c())return Object.freeze({kind:`rejected`,reason:`inactive`});try{let r=vM(e,t);return n&&n!==r.event?l(`invalid-event`):u(r)}catch{return l(`invalid-event`)}},getSnapshot:()=>n,markReconciled:e=>{let r=hM(e,t);return n=r,o=JSON.stringify(r),s.clear(),i=!1,a=null,!0},dispose:()=>{r=!0}})}function xM(e,t,n){let r=new URL(e);if(r.protocol!==`http:`||![`127.0.0.1`,`localhost`].includes(r.hostname)||r.pathname!==`/`||r.search||r.hash)return Q(`$.origin`,`expected an exact loopback HTTP origin`);if(n.productArea!==`planning`||n.scopeId!==`planning`||n.domainId!==`planning`||n.domainVersion!==`1.0.0`)return Q(`$.identity`,`does not belong to the Planning read domain`);let i=new URL(t,r);return i.searchParams.set(`projectId`,n.projectId),i.searchParams.set(`scopeId`,n.scopeId),i.searchParams.set(`domainId`,n.domainId),i.searchParams.set(`domainVersion`,n.domainVersion),i.searchParams.set(`generation`,String(n.generation)),i}async function SM(e,t){if(!e.ok||!e.headers.get(`content-type`)?.startsWith(t))return Q(`$`,`Planning response is unavailable`);let n=await e.text();return new TextEncoder().encode(n).byteLength>Kj?Q(`$`,`Planning response exceeds its wire limit`):n}async function CM(e){let t=xM(e.origin,`/api/planning/graph`,e.identity);return gM(await SM(await(e.fetcher??fetch)(t,{headers:{accept:`application/json`,"x-openplanr-actor":e.identity.actorId},cache:`no-store`,signal:e.signal}),`application/json`),e.identity)}function wM(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/u,``)}function TM(e){let t=nM(e,`$.cursor`);return wM(new TextEncoder().encode(JSON.stringify(t)))}function EM(e){let t=new AbortController,n=()=>t.abort();e.signal?.aborted?t.abort(e.signal.reason):e.signal?.addEventListener(`abort`,n,{once:!0});let r=xM(e.origin,`/api/planning/events`,e.identity),i={accept:`text/event-stream`,"x-openplanr-actor":e.identity.actorId};e.lastEventId&&(i[`last-event-id`]=e.lastEventId);let a=(async()=>{let n=await(e.fetcher??fetch)(r,{headers:i,signal:t.signal});if(!n.ok||!n.headers.get(`content-type`)?.startsWith(`text/event-stream`)||!n.body)return Q(`$`,`Planning live response is unavailable`);let a=n.body.getReader(),o=new TextDecoder,s=``;try{for(;!t.signal.aborted;){let t=await a.read();if(s+=o.decode(t.value,{stream:!t.done}),s=s.replaceAll(`\r
|
|
66
|
+
`,`
|
|
67
|
+
`).replace(/\r(?!$)/gu,`
|
|
68
|
+
`),t.done&&s.endsWith(`\r`)&&(s=`${s.slice(0,-1)}\n`),new TextEncoder().encode(s).byteLength>Kj)return Q(`$`,`Planning live frame exceeds its wire limit`);let n=s.indexOf(`
|
|
69
|
+
|
|
70
|
+
`);for(;n>=0;){let t=s.slice(0,n);s=s.slice(n+2);let r=t.split(`
|
|
71
|
+
`),i=r.find(e=>e.startsWith(`event:`))?.slice(6).trim(),a=r.filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
|
|
72
|
+
`);a&&e.reconciler.ingestSseFrame(a,i),n=s.indexOf(`
|
|
73
|
+
|
|
74
|
+
`)}if(t.done){if(s.trim())return Q(`$`,`Planning live response ended mid-frame`);break}}}finally{a.releaseLock()}})().catch(e=>{if(!t.signal.aborted)throw e instanceof I?e:new I(`$`,`Planning live response failed safely`)}).finally(()=>e.signal?.removeEventListener(`abort`,n));return Object.freeze({completion:a,close:()=>{t.abort(),e.reconciler.dispose(),e.signal?.removeEventListener(`abort`,n)}})}var DM=s({planningRuntime:()=>OM}),OM=Object.freeze({connectSse:EM,createSseReconciler:bM,encodeCheckpoint:TM,fetchGraph:CM,parseGraphEnvelope:hM}),kM=Object.freeze({create:z}),AM=Object.freeze({ValidationError:I,isValidatedState:V,parseSafeError:Le,parseState:it,statePolicy:ot}),jM=Object.freeze({parse:A}),MM=Object.freeze({connectSse:KC,createSseReconciler:GC}),NM=s({dashboardRuntime:()=>PM}),PM=Object.freeze({identity:kM,projection:AM,routing:jM,transport:MM}),{operateRuntime:FM}=Ij,{planningRuntime:IM}=DM,{dashboardRuntime:$}=NM,LM=new Set([`ready`,`read-only`,`stale`,`partial`,`blocked`,`offline`]),RM=$.projection.parseState({kind:`booting`,binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:$.projection.statePolicy(`booting`)}),zM=$.routing.parse(`#/overview`);function BM(e){return`DASHBOARD_${e.toUpperCase().replace(`-`,`_`)}`}function VM(e){return $.projection.parseState({kind:`loading`,binding:e,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:$.projection.statePolicy(`loading`)},{currentBinding:e})}function HM(e,t=null){return $.projection.parseState({kind:`unavailable`,binding:e,data:null,reasonCodes:[`DASHBOARD_UNAVAILABLE`],error:t,mutationEnabled:!1,policy:$.projection.statePolicy(`unavailable`)},{currentBinding:e})}function UM(e,t=!1){let n=(typeof e==`object`&&e&&!Array.isArray(e)?e:{}).code===`DASHBOARD_RESPONSE_INVALID`||e instanceof $.projection.ValidationError;return $.projection.parseSafeError({code:t||!n?`DASHBOARD_READ_FAILED`:`DASHBOARD_RESPONSE_INVALID`,retryable:!1,context:{operation:`dashboard.projection.read`}})}function WM(e,t){let n=t??UM(void 0);if(n.code!==`DASHBOARD_RESPONSE_INVALID`)return HM(e,n);let r=$.projection.parseSafeError({code:`DASHBOARD_RESPONSE_INVALID`,retryable:!1,context:{}});return $.projection.parseState({kind:`corrupt`,binding:null,data:null,reasonCodes:[`DASHBOARD_CORRUPT`],error:r,mutationEnabled:!1,policy:$.projection.statePolicy(`corrupt`)})}function GM(e,t,n,r,i=!1,a=null){if(!LM.has(e)&&(e!==`refreshing`||t.productArea!==`planning`))throw Error(`Unsupported owner presentation state.`);return $.projection.parseState({kind:e,binding:t,data:n,reasonCodes:e===`ready`?[]:[BM(e)],error:a,mutationEnabled:e===`ready`&&i,policy:$.projection.statePolicy(e)},{currentBinding:t,validateData:r})}function KM(e,t){return!$.projection.isValidatedState(e)||e.binding===null||e.data===null?e:$.projection.parseState({kind:`stale`,binding:e.binding,data:e.data,reasonCodes:[`DASHBOARD_STALE`],error:t,mutationEnabled:!1,policy:$.projection.statePolicy(`stale`)},{currentBinding:e.binding,validateData:e=>e!==null})}function qM(e,t){return $.projection.parseState({kind:e,binding:t,data:null,reasonCodes:[BM(e)],error:null,mutationEnabled:!1,policy:$.projection.statePolicy(e)},{currentBinding:t})}function JM(e,t,n=!1){let r=(0,v.useRef)(t);r.current=t;let i=(0,v.useRef)(e);i.current=e;let a=(0,v.useRef)(null),o=(0,v.useRef)(null),[s,c]=(0,v.useState)(0),[l,u]=(0,v.useState)(()=>Object.freeze({key:null,revision:0,phase:`idle`,data:null,error:null})),d=(0,v.useCallback)(()=>c(e=>e+1),[]),f=(0,v.useCallback)(()=>{if(a.current!==null)return a.current;let e=i.current;if(e===null)return Promise.reject(Error(`Owner read is unavailable.`));let t=new AbortController;o.current?.abort(),o.current=t,u(t=>Object.freeze({key:e,revision:t.revision,phase:`loading`,data:t.key===e?t.data:null,error:null}));let n=r.current(t.signal).then(n=>{if(t.signal.aborted||i.current!==e)throw new DOMException(`Cancelled`,`AbortError`);return u(t=>Object.freeze({key:e,revision:t.revision,phase:`ready`,data:n,error:null})),n}).catch(n=>{throw!t.signal.aborted&&i.current===e&&u(t=>Object.freeze({key:e,revision:t.revision,phase:`failed`,data:t.key===e?t.data:null,error:UM(n,t.key===e&&t.data!==null)})),n}).finally(()=>{a.current===n&&(a.current=null),o.current===t&&(o.current=null)});return a.current=n,n},[]);(0,v.useEffect)(()=>{if(o.current?.abort(),o.current=null,a.current=null,e===null){u(Object.freeze({key:null,revision:s,phase:`idle`,data:null,error:null}));return}let t=new AbortController;return u(t=>Object.freeze({key:e,revision:s,phase:`loading`,data:t.key===e?t.data:null,error:null})),r.current(t.signal).then(n=>{t.signal.aborted||u(Object.freeze({key:e,revision:s,phase:`ready`,data:n,error:null}))}).catch(n=>{t.signal.aborted||u(t=>Object.freeze({key:e,revision:s,phase:`failed`,data:t.key===e?t.data:null,error:UM(n,t.key===e&&t.data!==null)}))}),()=>t.abort()},[e,s]);let p=l.key===e&&l.revision===s,m=p?l.phase:e===null?`idle`:`loading`,h=p||n&&l.key===e?l.data:null,g=p?l.error:null;return(0,v.useMemo)(()=>Object.freeze({phase:m,data:h,error:g,refetch:d,reconcile:f}),[h,g,m,f,d])}function YM(e){return e===null?null:JSON.stringify(e)}function XM(e){return e.product===`planning`?e:zM}function ZM(e){return e.kind===`operate.evidence`||e.kind===`operate.evidence-item`?`evidence`:e.kind===`operate.outcomes`?`outcomes`:e.kind===`operate.outcome`?`outcome`:e.kind===`operate.history`?`history`:null}function QM(e){return e.kind===`operate.actions`||e.kind===`operate.action`||e.kind===`operate.action-planning`||e.kind===`operate.inbox`||e.kind===`operate.inbox-item`||e.kind===`operate.recovery`}function $M(e){return e.kind===`operate.action-planning`?{kind:`operate.action`,product:`operate`,subjectId:e.subjectId}:e}function eN(e){return Object.freeze({eventHead:e.payload.eventHead,viewHash:e.payload.viewHash})}function tN(e){let t=e.payload.status;if(!LM.has(t))throw new $.projection.ValidationError(`$.payload.status`,`contains an unsupported display status`);return t}function nN(e){return e.payload.status===`terminal`?`read-only`:tN(e)}function rN(e,t){if(e.data===null)return e.phase===`loading`||e.phase===`idle`?VM(t):WM(t,e.error);let n=$.identity.create({...t,eventHead:e.data.payload.sourceEventHead,viewHash:e.data.payload.sourceViewHash});return iN(e,n,e.data,FM.review.createValidator(n),nN(e.data),e.data.payload.mutationEnabled)}function iN(e,t,n,r,i,a=!1){let o=e.phase===`failed`?`stale`:e.phase===`loading`||e.phase===`idle`?`refreshing`:i;try{return GM(o,t,n,r,a,o===`stale`?e.error??UM(void 0,!0):null)}catch(e){return WM(t,UM(e))}}function aN(e,t){return e.data===null?e.phase===`loading`||e.phase===`idle`?VM(t):WM(t,e.error):iN(e,$.identity.create({...t,eventHead:e.data.cursor.eventHead,viewHash:e.data.cursor.viewHash}),e.data,e=>{try{return IM.parseGraphEnvelope(e,t),!0}catch{return!1}},`ready`)}function oN(e,t,n,r){if(e.data===null)return e.phase===`loading`||e.phase===`idle`?VM(t):WM(t,e.error);let i=$.identity.create({...t,...eN(e.data)}),a=n===`today`?FM.today.createValidator(i):FM.cycles.createListValidator(i);return e.phase===`ready`&&n===`today`&&e.data.payload.surface===`today`&&e.data.payload.status===`ready`&&e.data.payload.data.activeCycle===null?a(e.data)?r?r.phase===`loading`||r.phase===`idle`?iN(Object.freeze({...e,phase:`loading`,error:null}),i,e.data,a,`ready`):r.phase===`failed`?iN(Object.freeze({...e,phase:`failed`,error:r.error}),i,e.data,a,`ready`):r.data?.payload.surface===`cycles`?qM(r.data.payload.data.cycles.length===0?`first-use`:`empty`,i):WM(i,UM(new $.projection.ValidationError(`$.payload.surface`,`does not contain the required cycles display`))):VM(i):WM(i,UM(new $.projection.ValidationError(`$.data`,`failed its owner-boundary contract`))):iN(e,i,e.data,a,tN(e.data),e.data.payload.mutationEnabled)}function sN(e){if(e.subjectId===null)throw Error(`Action display identity requires a subject.`);return $.identity.create({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function cN(e,t,n){if(e.data===null)return e.phase===`loading`||e.phase===`idle`?VM(t):WM(t,e.error);let r=$.identity.create({...t,...eN(e.data)}),i;if(n.kind===`operate.actions`)i=FM.actions.createListValidator(r);else if(n.kind===`operate.action`||n.kind===`operate.action-planning`){let e=n.kind===`operate.action-planning`?sN(r):r;i=FM.actions.createDetailValidator(e)}else if(n.kind===`operate.inbox`||n.kind===`operate.inbox-item`)i=FM.actions.createInboxValidator(r);else if(n.kind===`operate.recovery`)i=FM.actions.createRecoveryValidator(r);else return HM(r);return iN(e,r,e.data,i,tN(e.data),n.kind!==`operate.action-planning`&&e.data.payload.mutationEnabled)}function lN(e,t){let n=e?.origin??null,r=JSON.stringify(t),[i,a]=(0,v.useState)(null),o=e?.queryRoots.planning??null,s=e?.queryRoots.operate??null,c=(0,v.useMemo)(()=>XM(t),[t]),l=(0,v.useMemo)(()=>o?FM.transport.identityFromRoot(o,zM):null,[o]),u=(0,v.useMemo)(()=>o?FM.transport.identityFromRoot(o,c):null,[o,c]),d=JM(l?JSON.stringify(l):null,e=>{if(!n||!l)throw Error(`Planning query root is unavailable.`);return IM.fetchGraph({origin:n,identity:l,signal:e})},!0),f=YM(s),p=JM(f,e=>{if(!n||!s)throw Error(`Operate query root is unavailable.`);return FM.transport.fetchRootDisplay({origin:n,root:s,surface:`today`,signal:e})}),m=JM(f,e=>{if(!n||!s)throw Error(`Operate query root is unavailable.`);return FM.transport.fetchRootDisplay({origin:n,root:s,surface:`cycles`,signal:e})}),h=p.data?.payload.surface===`today`?p.data:null,g=h?.payload.surface===`today`?h.payload.data.activeCycle?.cycleId??null:null,_=t.kind===`operate.cycle`?t.subjectId:t.kind===`operate.review`?t.cycleId:g,y=h?eN(h):null,b=(0,v.useMemo)(()=>s&&t.product===`operate`&&_&&y?FM.transport.identityFromRoot(s,t,{cycleId:_,eventHead:y.eventHead,viewHash:y.viewHash}):null,[y,s,t,_]),x=n&&s&&b?JSON.stringify({root:s,binding:b}):null,S=(0,v.useMemo)(()=>s&&t.kind===`operate.review`?FM.transport.identityFromRoot(s,t,{cycleId:t.cycleId}):null,[s,t]),C=JM(n&&S?JSON.stringify({root:s,route:S.route}):null,e=>{if(!n||!s||t.kind!==`operate.review`)throw Error(`Operate Review query custody is incomplete.`);return FM.review.fetch({origin:n,root:s,cycleId:t.cycleId,reviewId:t.subjectId,signal:e})}),w=(0,v.useMemo)(()=>$M(t),[t]),T=(0,v.useMemo)(()=>s&&QM(t)&&_&&y?FM.transport.identityFromRoot(s,w,{cycleId:_,eventHead:y.eventHead,viewHash:y.viewHash}):null,[w,y,s,t,_]),E=n&&s&&T?JSON.stringify({root:s,binding:T}):null,D=ZM(t),O=JM(D?x:null,e=>{if(!n||!s||!_||!D)throw Error(`Operate audit query custody is incomplete.`);return FM.transport.fetchAuditDisplay({origin:n,root:s,route:t,surface:D,cycleId:_,signal:e})}),k=JM(t.kind===`operate.cycle`?x:null,e=>{if(!n||!s||t.kind!==`operate.cycle`)throw Error(`Operate Cycle query custody is incomplete.`);return FM.transport.fetchCycleDisplay({origin:n,root:s,cycleId:t.subjectId,signal:e})}),A=JM(QM(t)?E:null,e=>{if(!n||!T)throw Error(`Operate route display custody is incomplete.`);if(t.kind===`operate.actions`)return FM.actions.fetchList({origin:n,identity:T,signal:e});if(t.kind===`operate.action`||t.kind===`operate.action-planning`)return FM.actions.fetchDetail({origin:n,identity:T,signal:e});if(t.kind===`operate.inbox`||t.kind===`operate.inbox-item`)return FM.actions.fetchInbox({origin:n,identity:T,signal:e});if(t.kind===`operate.recovery`)return FM.actions.fetchRecovery({origin:n,identity:T,signal:e});throw Error(`Operate route does not own a bound display read.`)}),j=(0,v.useMemo)(()=>u?aN(d,u):RM,[u,d]),M=(0,v.useMemo)(()=>{if(!s)return null;let e=$.routing.parse(`#/operate/today`);return FM.transport.identityFromRoot(s,e,{cycleId:g})},[g,s]),N=(0,v.useMemo)(()=>M?oN(p,M,`today`,m):RM,[m,M,p]),ee=(0,v.useMemo)(()=>{if(!N.binding||!_)return null;let e=FM.today.resolveModel({current:N},N.binding);return e?.kind===`surface`?FM.review.uniqueNavigationForCycle(e,_):null},[_,N]),P=(0,v.useMemo)(()=>s?FM.transport.identityFromRoot(s,$.routing.parse(`#/operate/cycles`)):null,[s]),F=(0,v.useMemo)(()=>P?oN(m,P,`cycles`):RM,[P,m]),te=(0,v.useMemo)(()=>{if(!s||m.data?.payload.surface!==`cycles`)return Object.freeze([]);let e=eN(m.data),t=$.routing.parse(`#/operate/cycles`);return Object.freeze(m.data.payload.data.cycles.map(n=>FM.transport.identityFromRoot(s,t,{cycleId:n.cycleId,eventHead:e.eventHead,viewHash:e.viewHash})))},[m,s]),ne=(0,v.useMemo)(()=>{if(t.product===`planning`)return Object.freeze({binding:j.binding,projection:j});if(t.product!==`operate`||!s)return Object.freeze({binding:null,projection:RM});if(t.kind===`operate.today`)return Object.freeze({binding:N.binding,projection:N});if(t.kind===`operate.cycles`)return Object.freeze({binding:F.binding,projection:F});if(t.kind===`operate.review`){if(!S)return Object.freeze({binding:null,projection:RM});let e=rN(C,S);return Object.freeze({binding:e.binding,projection:e})}if(!y||!_)return Object.freeze({binding:null,projection:RM});let e=b;if(!e)return Object.freeze({binding:null,projection:RM});if(t.kind===`operate.cycle`){if(k.data===null){let t=k.phase===`loading`||k.phase===`idle`?VM(e):WM(e,k.error);return Object.freeze({binding:t.binding,projection:t})}let t=$.identity.create({...e,...eN(k.data)});return Object.freeze({binding:t,projection:iN(k,t,k.data,FM.cycles.createDetailValidator(t),tN(k.data),k.data.payload.mutationEnabled)})}if(D){if(O.data===null){let t=O.phase===`loading`||O.phase===`idle`?VM(e):WM(e,O.error);return Object.freeze({binding:t.binding,projection:t})}let t=$.identity.create({...e,...eN(O.data)}),n=D===`evidence`?FM.audit.createEvidenceValidator(t):D===`outcomes`||D===`outcome`?FM.audit.createOutcomeValidator(t):FM.audit.createHistoryValidator(t);return Object.freeze({binding:t,projection:iN(O,t,O.data,n,tN(O.data),!1)})}return QM(t)?Object.freeze({binding:e,projection:cN(A,e,t)}):Object.freeze({binding:e,projection:VM(e)})},[O,D,A,b,k,y,F,s,j,C,S,t,_,N]);(0,v.useEffect)(()=>{a(e=>e!==null&&e.routeKey!==r?null:e)},[r]);let re=(0,v.useMemo)(()=>i!==null&&i.routeKey===r&&(!$.projection.isValidatedState(ne.projection)||ne.projection.data===null)?Object.freeze({binding:i.binding,projection:i.projection}):ne,[i,ne,r]);(0,v.useEffect)(()=>{if(!n||!d.data||d.phase!==`ready`||!l)return;let e=$.identity.create({...l,eventHead:d.data.cursor.eventHead,viewHash:d.data.cursor.viewHash}),t=!0,r=IM.createSseReconciler({identity:e,initial:d.data,isCurrent:()=>t,onSnapshot:()=>void 0,onPatch:()=>d.refetch(),onRefetch:()=>d.refetch(),onStale:()=>d.refetch()}),i=IM.connectSse({origin:n,identity:e,reconciler:r,lastEventId:IM.encodeCheckpoint(d.data.cursor)});return i.completion.catch(()=>void 0),()=>{t=!1,i.close()}},[n,l,d]),(0,v.useEffect)(()=>{if(!n||!s||!h||!M)return;let e=eN(h),t=$.identity.create({...M,...e}),r=!0,i=$.transport.createSseReconciler({identity:t,isCurrent:()=>r,onSnapshot:(t,n)=>{(n.eventHead.sequence!==e.eventHead?.sequence||n.eventHead.hash!==e.eventHead?.hash||n.viewHash!==e.viewHash)&&(p.refetch(),m.refetch())},onPatch:()=>{p.refetch(),m.refetch()},onRefetch:()=>{p.refetch(),m.refetch()},onStale:()=>{p.refetch(),m.refetch()}}),a=$.transport.connectSse({origin:n,identity:t,reconciler:i});return a.completion.catch(()=>void 0),()=>{r=!1,a.close()}},[m,n,s,h,M,p]);let ie=(0,v.useCallback)(async()=>{let e=re;e.binding!==null&&$.projection.isValidatedState(e.projection)&&e.projection.data!==null&&a(Object.freeze({routeKey:r,binding:e.binding,projection:e.projection}));try{let e;if(t.kind===`operate.review`&&S){let t=await C.reconcile();e=rN(Object.freeze({phase:`ready`,data:t,error:null,refetch:C.refetch,reconcile:C.reconcile}),S)}else if(QM(t)&&b){let n=await A.reconcile();e=cN(Object.freeze({phase:`ready`,data:n,error:null,refetch:A.refetch,reconcile:A.reconcile}),b,t)}else if(t.product===`planning`&&u){let t=await d.reconcile();e=aN(Object.freeze({phase:`ready`,data:t,error:null,refetch:d.refetch,reconcile:d.reconcile}),u)}else throw new $.projection.ValidationError(`$.route`,`does not own an exact reconciliation read`);if(!$.projection.isValidatedState(e)||e.data===null)throw new $.projection.ValidationError(`$.projection`,`did not return a verified projection`);return a(null),e}catch(t){let n=e.binding!==null&&$.projection.isValidatedState(e.projection)&&e.projection.data!==null,i=UM(t,n),o=n?KM(e.projection,i):e.binding===null?e.projection:WM(e.binding,i);return n&&e.binding!==null&&a(Object.freeze({routeKey:r,binding:e.binding,projection:o})),o}},[A,b,re,u,d,C,S,t,r]);return Object.freeze({binding:re.binding,projection:re.projection,planningProjection:j,operateCyclesProjection:F,operateSearchBindings:te,operateReviewNavigation:ee,refetchCurrent:ie})}function uN(e){return e===void 0?typeof window>`u`?``:window.location.hash:e}function dN(e,t){return e!==void 0||typeof window>`u`?()=>void 0:(window.addEventListener(`hashchange`,t),()=>window.removeEventListener(`hashchange`,t))}function fN({buildId:e,initialHash:t,identity:n,connection:r,bootstrap:i,bootPhase:a,bootDetail:o}){let s=(0,v.useSyncExternalStore)(e=>dN(t,e),()=>uN(t),()=>uN(t)),c=i===void 0&&r===void 0,[l,u]=(0,v.useState)(i??null),[d,f]=(0,v.useState)(a??(c?`checking`:`compatible`)),[p,m]=(0,v.useState)(o??null);(0,v.useEffect)(()=>{if(!c)return;let t=new AbortController;return f(`checking`),m(`Waiting for OpenPlanr to return a validated bootstrap envelope.`),rj(e,{signal:t.signal}).then(e=>{u(e.bootstrap),f(e.phase===`compatible`?`compatible`:e.phase),m(e.detail)}).catch(()=>void 0),()=>t.abort()},[e,c]);let h=(0,v.useMemo)(()=>r??Et(l,e,p),[l,p,e,r]),g=(0,v.useMemo)(()=>n??Dt(l),[l,n]),_=(0,v.useMemo)(()=>A(s),[s]),y=_.kind===`system.diagnostics`||d===`incompatible`||h.state===`incompatible`,b=lN(d===`compatible`&&h.state!==`incompatible`&&_.product!==null?l:null,_);return(0,F.jsxs)(mt,{buildId:e,initialHash:y?j(E):t,identity:g,connection:h,bootstrap:l,bootPhase:d,bootDetail:p,binding:b.binding,projection:b.projection,planningProjection:b.planningProjection,operateCyclesProjection:b.operateCyclesProjection,operateSearchBindings:b.operateSearchBindings,operateReviewNavigation:b.operateReviewNavigation,refetchCurrent:b.refetchCurrent,children:[(0,F.jsx)(_t,{}),(0,F.jsx)(WA,{})]})}var pN=document.querySelector(`#root`);if(!pN)throw Error(`OpenPlanr dashboard root element is missing.`);(0,y.createRoot)(pN).render((0,F.jsx)(v.StrictMode,{children:(0,F.jsx)(fN,{buildId:`dashboard-0.1.24-a45b8b75cef359dc`})}));
|
|
75
|
+
//# sourceMappingURL=index-B-l_941W.js.map
|