openplanr 1.25.3 → 2.0.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 +70 -0
- package/CONTRIBUTING.md +33 -0
- package/README.md +154 -131
- package/dist/cli/commands/artifact.d.ts.map +1 -1
- package/dist/cli/commands/artifact.js +214 -30
- package/dist/cli/commands/artifact.js.map +1 -1
- package/dist/cli/commands/backlog.d.ts +1 -21
- package/dist/cli/commands/backlog.d.ts.map +1 -1
- package/dist/cli/commands/backlog.js +1 -428
- package/dist/cli/commands/backlog.js.map +1 -1
- package/dist/cli/commands/company.d.ts +3 -0
- package/dist/cli/commands/company.d.ts.map +1 -0
- package/dist/cli/commands/company.js +173 -0
- package/dist/cli/commands/company.js.map +1 -0
- package/dist/cli/commands/config-deterministic.d.ts +3 -0
- package/dist/cli/commands/config-deterministic.d.ts.map +1 -0
- package/dist/cli/commands/config-deterministic.js +88 -0
- package/dist/cli/commands/config-deterministic.js.map +1 -0
- package/dist/cli/commands/dashboard.d.ts +3 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/dashboard.js +36 -0
- package/dist/cli/commands/dashboard.js.map +1 -0
- package/dist/cli/commands/diagram/index.d.ts +3 -0
- package/dist/cli/commands/diagram/index.d.ts.map +1 -0
- package/dist/cli/commands/diagram/index.js +73 -0
- package/dist/cli/commands/diagram/index.js.map +1 -0
- package/dist/cli/commands/diagram/presentation.d.ts +4 -0
- package/dist/cli/commands/diagram/presentation.d.ts.map +1 -0
- package/dist/cli/commands/diagram/presentation.js +38 -0
- package/dist/cli/commands/diagram/presentation.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +1 -11
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/epic.d.ts +1 -9
- package/dist/cli/commands/epic.d.ts.map +1 -1
- package/dist/cli/commands/epic.js +1 -259
- package/dist/cli/commands/epic.js.map +1 -1
- package/dist/cli/commands/feature.d.ts +1 -8
- package/dist/cli/commands/feature.d.ts.map +1 -1
- package/dist/cli/commands/feature.js +1 -220
- package/dist/cli/commands/feature.js.map +1 -1
- package/dist/cli/commands/groups/delivery.d.ts +3 -0
- package/dist/cli/commands/groups/delivery.d.ts.map +1 -0
- package/dist/cli/commands/groups/delivery.js +13 -0
- package/dist/cli/commands/groups/delivery.js.map +1 -0
- package/dist/cli/commands/groups/foundation.d.ts +3 -0
- package/dist/cli/commands/groups/foundation.d.ts.map +1 -0
- package/dist/cli/commands/groups/foundation.js +11 -0
- package/dist/cli/commands/groups/foundation.js.map +1 -0
- package/dist/cli/commands/groups/intelligence.d.ts +3 -0
- package/dist/cli/commands/groups/intelligence.d.ts.map +1 -0
- package/dist/cli/commands/groups/intelligence.js +19 -0
- package/dist/cli/commands/groups/intelligence.js.map +1 -0
- package/dist/cli/commands/groups/operations.d.ts +3 -0
- package/dist/cli/commands/groups/operations.d.ts.map +1 -0
- package/dist/cli/commands/groups/operations.js +17 -0
- package/dist/cli/commands/groups/operations.js.map +1 -0
- package/dist/cli/commands/groups/planning.d.ts +3 -0
- package/dist/cli/commands/groups/planning.d.ts.map +1 -0
- package/dist/cli/commands/groups/planning.js +25 -0
- package/dist/cli/commands/groups/planning.js.map +1 -0
- package/dist/cli/commands/index.d.ts +4 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +14 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/init-deterministic.d.ts +3 -0
- package/dist/cli/commands/init-deterministic.d.ts.map +1 -0
- package/dist/cli/commands/init-deterministic.js +40 -0
- package/dist/cli/commands/init-deterministic.js.map +1 -0
- package/dist/cli/commands/land.d.ts +15 -0
- package/dist/cli/commands/land.d.ts.map +1 -0
- package/dist/cli/commands/land.js +176 -0
- package/dist/cli/commands/land.js.map +1 -0
- package/dist/cli/commands/operate/input.d.ts +54 -0
- package/dist/cli/commands/operate/input.d.ts.map +1 -0
- package/dist/cli/commands/operate/input.js +98 -0
- package/dist/cli/commands/operate/input.js.map +1 -0
- package/dist/cli/commands/operate/registrars/assignments.d.ts +5 -0
- package/dist/cli/commands/operate/registrars/assignments.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/assignments.js +167 -0
- package/dist/cli/commands/operate/registrars/assignments.js.map +1 -0
- package/dist/cli/commands/operate/registrars/catalog.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/catalog.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/catalog.js +12 -0
- package/dist/cli/commands/operate/registrars/catalog.js.map +1 -0
- package/dist/cli/commands/operate/registrars/contracts.d.ts +41 -0
- package/dist/cli/commands/operate/registrars/contracts.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/contracts.js +2 -0
- package/dist/cli/commands/operate/registrars/contracts.js.map +1 -0
- package/dist/cli/commands/operate/registrars/dashboard.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/dashboard.js +26 -0
- package/dist/cli/commands/operate/registrars/dashboard.js.map +1 -0
- package/dist/cli/commands/operate/registrars/dispatch.d.ts +7 -0
- package/dist/cli/commands/operate/registrars/dispatch.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/dispatch.js +55 -0
- package/dist/cli/commands/operate/registrars/dispatch.js.map +1 -0
- package/dist/cli/commands/operate/registrars/experience.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/experience.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/experience.js +93 -0
- package/dist/cli/commands/operate/registrars/experience.js.map +1 -0
- package/dist/cli/commands/operate/registrars/index.d.ts +5 -0
- package/dist/cli/commands/operate/registrars/index.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/index.js +28 -0
- package/dist/cli/commands/operate/registrars/index.js.map +1 -0
- package/dist/cli/commands/operate/registrars/lifecycle.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/lifecycle.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/lifecycle.js +46 -0
- package/dist/cli/commands/operate/registrars/lifecycle.js.map +1 -0
- package/dist/cli/commands/operate/registrars/measurement.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/measurement.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/measurement.js +122 -0
- package/dist/cli/commands/operate/registrars/measurement.js.map +1 -0
- package/dist/cli/commands/operate/registrars/note-validation.d.ts +6 -0
- package/dist/cli/commands/operate/registrars/note-validation.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/note-validation.js +103 -0
- package/dist/cli/commands/operate/registrars/note-validation.js.map +1 -0
- package/dist/cli/commands/operate/registrars/planning.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/planning.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/planning.js +41 -0
- package/dist/cli/commands/operate/registrars/planning.js.map +1 -0
- package/dist/cli/commands/operate/registrars/recovery.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/recovery.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/recovery.js +65 -0
- package/dist/cli/commands/operate/registrars/recovery.js.map +1 -0
- package/dist/cli/commands/operate/registrars/reviews.d.ts +4 -0
- package/dist/cli/commands/operate/registrars/reviews.d.ts.map +1 -0
- package/dist/cli/commands/operate/registrars/reviews.js +83 -0
- package/dist/cli/commands/operate/registrars/reviews.js.map +1 -0
- package/dist/cli/commands/operate/registration.d.ts +4 -0
- package/dist/cli/commands/operate/registration.d.ts.map +1 -0
- package/dist/cli/commands/operate/registration.js +3 -0
- package/dist/cli/commands/operate/registration.js.map +1 -0
- package/dist/cli/commands/operate/render.d.ts +19 -0
- package/dist/cli/commands/operate/render.d.ts.map +1 -0
- package/dist/cli/commands/operate/render.js +201 -0
- package/dist/cli/commands/operate/render.js.map +1 -0
- package/dist/cli/commands/operate.d.ts +58 -13
- package/dist/cli/commands/operate.d.ts.map +1 -1
- package/dist/cli/commands/operate.js +169 -984
- package/dist/cli/commands/operate.js.map +1 -1
- package/dist/cli/commands/planning-artifacts.d.ts +10 -0
- package/dist/cli/commands/planning-artifacts.d.ts.map +1 -0
- package/dist/cli/commands/planning-artifacts.js +350 -0
- package/dist/cli/commands/planning-artifacts.js.map +1 -0
- package/dist/cli/commands/quick/interaction.d.ts +8 -0
- package/dist/cli/commands/quick/interaction.d.ts.map +1 -0
- package/dist/cli/commands/quick/interaction.js +8 -0
- package/dist/cli/commands/quick/interaction.js.map +1 -0
- package/dist/cli/commands/quick/project.d.ts +8 -0
- package/dist/cli/commands/quick/project.d.ts.map +1 -0
- package/dist/cli/commands/quick/project.js +8 -0
- package/dist/cli/commands/quick/project.js.map +1 -0
- package/dist/cli/commands/quick.d.ts +1 -29
- package/dist/cli/commands/quick.d.ts.map +1 -1
- package/dist/cli/commands/quick.js +1 -337
- package/dist/cli/commands/quick.js.map +1 -1
- package/dist/cli/commands/rules.js +1 -1
- package/dist/cli/commands/rules.js.map +1 -1
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +40 -18
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/spec.d.ts +6 -4
- package/dist/cli/commands/spec.d.ts.map +1 -1
- package/dist/cli/commands/spec.js +166 -174
- package/dist/cli/commands/spec.js.map +1 -1
- package/dist/cli/commands/sprint.d.ts +1 -8
- package/dist/cli/commands/sprint.d.ts.map +1 -1
- package/dist/cli/commands/sprint.js +1 -522
- package/dist/cli/commands/sprint.js.map +1 -1
- package/dist/cli/commands/story/interaction.d.ts +7 -0
- package/dist/cli/commands/story/interaction.d.ts.map +1 -0
- package/dist/cli/commands/story/interaction.js +7 -0
- package/dist/cli/commands/story/interaction.js.map +1 -0
- package/dist/cli/commands/story/project.d.ts +10 -0
- package/dist/cli/commands/story/project.d.ts.map +1 -0
- package/dist/cli/commands/story/project.js +10 -0
- package/dist/cli/commands/story/project.js.map +1 -0
- package/dist/cli/commands/story.d.ts +1 -8
- package/dist/cli/commands/story.d.ts.map +1 -1
- package/dist/cli/commands/story.js +1 -358
- package/dist/cli/commands/story.js.map +1 -1
- package/dist/cli/commands/task.d.ts +1 -9
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js +1 -351
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/error-boundary.d.ts +29 -0
- package/dist/cli/error-boundary.d.ts.map +1 -0
- package/dist/cli/error-boundary.js +103 -0
- package/dist/cli/error-boundary.js.map +1 -0
- package/dist/cli/helpers/bulk-checkbox-update.d.ts +1 -1
- package/dist/cli/helpers/bulk-checkbox-update.js +1 -1
- package/dist/cli/index.js +38 -113
- package/dist/cli/index.js.map +1 -1
- package/dist/dashboard/.vite/manifest.json +68 -0
- package/dist/dashboard/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/dashboard/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/dashboard/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/dashboard/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/dashboard/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/dashboard/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/dashboard/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/dashboard/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/dashboard/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/dashboard/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/dashboard/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/dashboard/assets/index-Bk8DyO_2.css +1 -0
- package/dist/dashboard/assets/index-zeygL5iu.js +557 -0
- package/dist/dashboard/assets/index-zeygL5iu.js.map +1 -0
- package/dist/dashboard/dashboard-manifest.json +84 -0
- package/dist/dashboard/index.html +13 -0
- package/dist/generators/base-generator.d.ts +2 -0
- package/dist/generators/base-generator.d.ts.map +1 -1
- package/dist/generators/base-generator.js +8 -0
- package/dist/generators/base-generator.js.map +1 -1
- package/dist/generators/claude-generator.d.ts.map +1 -1
- package/dist/generators/claude-generator.js +12 -14
- package/dist/generators/claude-generator.js.map +1 -1
- package/dist/generators/codex-generator.d.ts.map +1 -1
- package/dist/generators/codex-generator.js +7 -7
- package/dist/generators/codex-generator.js.map +1 -1
- package/dist/generators/cursor-generator.d.ts.map +1 -1
- package/dist/generators/cursor-generator.js +11 -30
- package/dist/generators/cursor-generator.js.map +1 -1
- package/dist/models/schema.d.ts +0 -23
- package/dist/models/schema.d.ts.map +1 -1
- package/dist/models/schema.js +0 -7
- package/dist/models/schema.js.map +1 -1
- package/dist/models/types.d.ts +3 -14
- package/dist/models/types.d.ts.map +1 -1
- package/dist/services/artifact-pipeline-service.d.ts +99 -1
- package/dist/services/artifact-pipeline-service.d.ts.map +1 -1
- package/dist/services/artifact-pipeline-service.js +681 -4
- package/dist/services/artifact-pipeline-service.js.map +1 -1
- package/dist/services/canonical-json.d.ts +3 -0
- package/dist/services/canonical-json.d.ts.map +1 -0
- package/dist/services/canonical-json.js +71 -0
- package/dist/services/canonical-json.js.map +1 -0
- package/dist/services/claude-plugin-service.d.ts +6 -1
- package/dist/services/claude-plugin-service.d.ts.map +1 -1
- package/dist/services/claude-plugin-service.js +184 -12
- package/dist/services/claude-plugin-service.js.map +1 -1
- package/dist/services/codex-plugin-service.d.ts +30 -0
- package/dist/services/codex-plugin-service.d.ts.map +1 -0
- package/dist/services/codex-plugin-service.js +195 -0
- package/dist/services/codex-plugin-service.js.map +1 -0
- package/dist/services/company-auth-service.d.ts +70 -0
- package/dist/services/company-auth-service.d.ts.map +1 -0
- package/dist/services/company-auth-service.js +720 -0
- package/dist/services/company-auth-service.js.map +1 -0
- package/dist/services/company-auth-store.d.ts +22 -0
- package/dist/services/company-auth-store.d.ts.map +1 -0
- package/dist/services/company-auth-store.js +158 -0
- package/dist/services/company-auth-store.js.map +1 -0
- package/dist/services/company-common.d.ts +9 -0
- package/dist/services/company-common.d.ts.map +1 -0
- package/dist/services/company-common.js +35 -0
- package/dist/services/company-common.js.map +1 -0
- package/dist/services/company-sync-service.d.ts +214 -0
- package/dist/services/company-sync-service.d.ts.map +1 -0
- package/dist/services/company-sync-service.js +1299 -0
- package/dist/services/company-sync-service.js.map +1 -0
- package/dist/services/connectors/adapters/business-metrics.d.ts +5 -0
- package/dist/services/connectors/adapters/business-metrics.d.ts.map +1 -0
- package/dist/services/connectors/adapters/business-metrics.js +41 -0
- package/dist/services/connectors/adapters/business-metrics.js.map +1 -0
- package/dist/services/connectors/adapters/deployment-health.d.ts +18 -0
- package/dist/services/connectors/adapters/deployment-health.d.ts.map +1 -0
- package/dist/services/connectors/adapters/deployment-health.js +67 -0
- package/dist/services/connectors/adapters/deployment-health.js.map +1 -0
- package/dist/services/connectors/adapters/github.d.ts +5 -0
- package/dist/services/connectors/adapters/github.d.ts.map +1 -0
- package/dist/services/connectors/adapters/github.js +31 -0
- package/dist/services/connectors/adapters/github.js.map +1 -0
- package/dist/services/connectors/adapters/linear-jira.d.ts +5 -0
- package/dist/services/connectors/adapters/linear-jira.d.ts.map +1 -0
- package/dist/services/connectors/adapters/linear-jira.js +26 -0
- package/dist/services/connectors/adapters/linear-jira.js.map +1 -0
- package/dist/services/connectors/adapters/posthog.d.ts +5 -0
- package/dist/services/connectors/adapters/posthog.d.ts.map +1 -0
- package/dist/services/connectors/adapters/posthog.js +31 -0
- package/dist/services/connectors/adapters/posthog.js.map +1 -0
- package/dist/services/connectors/adapters/sentry.d.ts +5 -0
- package/dist/services/connectors/adapters/sentry.d.ts.map +1 -0
- package/dist/services/connectors/adapters/sentry.js +31 -0
- package/dist/services/connectors/adapters/sentry.js.map +1 -0
- package/dist/services/connectors/checkpoint-custody.d.ts +45 -0
- package/dist/services/connectors/checkpoint-custody.d.ts.map +1 -0
- package/dist/services/connectors/checkpoint-custody.js +496 -0
- package/dist/services/connectors/checkpoint-custody.js.map +1 -0
- package/dist/services/connectors/connector-registry.d.ts +144 -0
- package/dist/services/connectors/connector-registry.d.ts.map +1 -0
- package/dist/services/connectors/connector-registry.js +423 -0
- package/dist/services/connectors/connector-registry.js.map +1 -0
- package/dist/services/connectors/connector-runtime.d.ts +200 -0
- package/dist/services/connectors/connector-runtime.d.ts.map +1 -0
- package/dist/services/connectors/connector-runtime.js +1297 -0
- package/dist/services/connectors/connector-runtime.js.map +1 -0
- package/dist/services/connectors/credential-custody.d.ts +96 -0
- package/dist/services/connectors/credential-custody.d.ts.map +1 -0
- package/dist/services/connectors/credential-custody.js +390 -0
- package/dist/services/connectors/credential-custody.js.map +1 -0
- package/dist/services/credential-backends.d.ts +11 -1
- package/dist/services/credential-backends.d.ts.map +1 -1
- package/dist/services/credential-backends.js +104 -21
- package/dist/services/credential-backends.js.map +1 -1
- package/dist/services/credential-write-lock.d.ts +8 -0
- package/dist/services/credential-write-lock.d.ts.map +1 -0
- package/dist/services/credential-write-lock.js +104 -0
- package/dist/services/credential-write-lock.js.map +1 -0
- package/dist/services/credentials-service.d.ts +8 -2
- package/dist/services/credentials-service.d.ts.map +1 -1
- package/dist/services/credentials-service.js +66 -21
- package/dist/services/credentials-service.js.map +1 -1
- package/dist/services/deprecation-notices.d.ts +2 -2
- package/dist/services/deprecation-notices.d.ts.map +1 -1
- package/dist/services/deprecation-notices.js +2 -2
- package/dist/services/deprecation-notices.js.map +1 -1
- package/dist/services/design-artifact-service.d.ts +37 -0
- package/dist/services/design-artifact-service.d.ts.map +1 -0
- package/dist/services/design-artifact-service.js +94 -0
- package/dist/services/design-artifact-service.js.map +1 -0
- package/dist/services/diagram-artifact-service.d.ts +12 -0
- package/dist/services/diagram-artifact-service.d.ts.map +1 -0
- package/dist/services/diagram-artifact-service.js +41 -0
- package/dist/services/diagram-artifact-service.js.map +1 -0
- package/dist/services/diagram-pipeline-service.d.ts +125 -0
- package/dist/services/diagram-pipeline-service.d.ts.map +1 -0
- package/dist/services/diagram-pipeline-service.js +329 -0
- package/dist/services/diagram-pipeline-service.js.map +1 -0
- package/dist/services/gherkin-service.d.ts +3 -0
- package/dist/services/gherkin-service.d.ts.map +1 -0
- package/dist/services/gherkin-service.js +9 -0
- package/dist/services/gherkin-service.js.map +1 -0
- package/dist/services/graph-service.d.ts.map +1 -1
- package/dist/services/graph-service.js +6 -4
- package/dist/services/graph-service.js.map +1 -1
- package/dist/services/landing/landing-service.d.ts +42 -0
- package/dist/services/landing/landing-service.d.ts.map +1 -0
- package/dist/services/landing/landing-service.js +197 -0
- package/dist/services/landing/landing-service.js.map +1 -0
- package/dist/services/landing/operation-registry.d.ts +56 -0
- package/dist/services/landing/operation-registry.d.ts.map +1 -0
- package/dist/services/landing/operation-registry.js +165 -0
- package/dist/services/landing/operation-registry.js.map +1 -0
- package/dist/services/landing/receipt-custody.d.ts +48 -0
- package/dist/services/landing/receipt-custody.d.ts.map +1 -0
- package/dist/services/landing/receipt-custody.js +375 -0
- package/dist/services/landing/receipt-custody.js.map +1 -0
- package/dist/services/linear/constants.d.ts.map +1 -1
- package/dist/services/linear/constants.js +2 -6
- package/dist/services/linear/constants.js.map +1 -1
- package/dist/services/linear/task-status-aggregation.d.ts +1 -1
- package/dist/services/linear/task-status-aggregation.js +1 -1
- package/dist/services/linear-pull-service.d.ts.map +1 -1
- package/dist/services/linear-pull-service.js +7 -30
- package/dist/services/linear-pull-service.js.map +1 -1
- package/dist/services/linear-push-service.d.ts.map +1 -1
- package/dist/services/linear-push-service.js +4 -5
- package/dist/services/linear-push-service.js.map +1 -1
- package/dist/services/migration-registry.d.ts +0 -19
- package/dist/services/migration-registry.d.ts.map +1 -1
- package/dist/services/migration-registry.js +18 -32
- package/dist/services/migration-registry.js.map +1 -1
- package/dist/services/operate/assignment-lifecycle-service.d.ts +135 -0
- package/dist/services/operate/assignment-lifecycle-service.d.ts.map +1 -0
- package/dist/services/operate/assignment-lifecycle-service.js +113 -0
- package/dist/services/operate/assignment-lifecycle-service.js.map +1 -0
- package/dist/services/operate/assignment-packet-service.d.ts +79 -0
- package/dist/services/operate/assignment-packet-service.d.ts.map +1 -0
- package/dist/services/operate/assignment-packet-service.js +1030 -0
- package/dist/services/operate/assignment-packet-service.js.map +1 -0
- package/dist/services/operate/client/governance.d.ts +4 -0
- package/dist/services/operate/client/governance.d.ts.map +1 -0
- package/dist/services/operate/client/governance.js +3 -0
- package/dist/services/operate/client/governance.js.map +1 -0
- package/dist/services/operate/client/lifecycle.d.ts +18 -0
- package/dist/services/operate/client/lifecycle.d.ts.map +1 -0
- package/dist/services/operate/client/lifecycle.js +15 -0
- package/dist/services/operate/client/lifecycle.js.map +1 -0
- package/dist/services/operate/client/runtime.d.ts +13 -0
- package/dist/services/operate/client/runtime.d.ts.map +1 -0
- package/dist/services/operate/client/runtime.js +11 -0
- package/dist/services/operate/client/runtime.js.map +1 -0
- package/dist/services/operate/client-error.d.ts +9 -0
- package/dist/services/operate/client-error.d.ts.map +1 -0
- package/dist/services/operate/client-error.js +14 -0
- package/dist/services/operate/client-error.js.map +1 -0
- package/dist/services/operate/client.d.ts +415 -0
- package/dist/services/operate/client.d.ts.map +1 -0
- package/dist/services/operate/client.js +2432 -0
- package/dist/services/operate/client.js.map +1 -0
- package/dist/services/operate/command-gateway.d.ts +152 -0
- package/dist/services/operate/command-gateway.d.ts.map +1 -0
- package/dist/services/operate/command-gateway.js +883 -0
- package/dist/services/operate/command-gateway.js.map +1 -0
- package/dist/services/operate/composition.d.ts +421 -0
- package/dist/services/operate/composition.d.ts.map +1 -0
- package/dist/services/operate/composition.js +394 -0
- package/dist/services/operate/composition.js.map +1 -0
- package/dist/services/operate/cycle-lifecycle-service.d.ts +35 -0
- package/dist/services/operate/cycle-lifecycle-service.d.ts.map +1 -0
- package/dist/services/operate/cycle-lifecycle-service.js +427 -0
- package/dist/services/operate/cycle-lifecycle-service.js.map +1 -0
- package/dist/services/operate/delivery-evidence.d.ts +34 -0
- package/dist/services/operate/delivery-evidence.d.ts.map +1 -0
- package/dist/services/operate/delivery-evidence.js +666 -0
- package/dist/services/operate/delivery-evidence.js.map +1 -0
- package/dist/services/operate/domain-catalog-service.d.ts +24 -0
- package/dist/services/operate/domain-catalog-service.d.ts.map +1 -0
- package/dist/services/operate/domain-catalog-service.js +99 -0
- package/dist/services/operate/domain-catalog-service.js.map +1 -0
- package/dist/services/operate/experience-read-service.d.ts +64 -0
- package/dist/services/operate/experience-read-service.d.ts.map +1 -0
- package/dist/services/operate/experience-read-service.js +109 -0
- package/dist/services/operate/experience-read-service.js.map +1 -0
- package/dist/services/operate/governed-action-service.d.ts +80 -0
- package/dist/services/operate/governed-action-service.d.ts.map +1 -0
- package/dist/services/operate/governed-action-service.js +497 -0
- package/dist/services/operate/governed-action-service.js.map +1 -0
- package/dist/services/operate/identity-contract.d.ts +3 -0
- package/dist/services/operate/identity-contract.d.ts.map +1 -0
- package/dist/services/operate/identity-contract.js +6 -0
- package/dist/services/operate/identity-contract.js.map +1 -0
- package/dist/services/operate/measurement-schedule-service.d.ts +81 -0
- package/dist/services/operate/measurement-schedule-service.d.ts.map +1 -0
- package/dist/services/operate/measurement-schedule-service.js +461 -0
- package/dist/services/operate/measurement-schedule-service.js.map +1 -0
- package/dist/services/operate/path-custody.d.ts +16 -0
- package/dist/services/operate/path-custody.d.ts.map +1 -0
- package/dist/services/operate/path-custody.js +120 -0
- package/dist/services/operate/path-custody.js.map +1 -0
- package/dist/services/operate/pinned-legacy-replay-runner.d.ts +9 -0
- package/dist/services/operate/pinned-legacy-replay-runner.d.ts.map +1 -0
- package/dist/services/operate/pinned-legacy-replay-runner.js +441 -0
- package/dist/services/operate/pinned-legacy-replay-runner.js.map +1 -0
- package/dist/services/operate/planning-bridge.d.ts +28 -0
- package/dist/services/operate/planning-bridge.d.ts.map +1 -0
- package/dist/services/operate/planning-bridge.js +341 -0
- package/dist/services/operate/planning-bridge.js.map +1 -0
- package/dist/services/operate/planning-handoff-gateway.d.ts +47 -0
- package/dist/services/operate/planning-handoff-gateway.d.ts.map +1 -0
- package/dist/services/operate/planning-handoff-gateway.js +169 -0
- package/dist/services/operate/planning-handoff-gateway.js.map +1 -0
- package/dist/services/operate/planning-handoff-service.d.ts +38 -0
- package/dist/services/operate/planning-handoff-service.d.ts.map +1 -0
- package/dist/services/operate/planning-handoff-service.js +304 -0
- package/dist/services/operate/planning-handoff-service.js.map +1 -0
- package/dist/services/operate/project-transaction-lock.d.ts +6 -0
- package/dist/services/operate/project-transaction-lock.d.ts.map +1 -0
- package/dist/services/operate/project-transaction-lock.js +146 -0
- package/dist/services/operate/project-transaction-lock.js.map +1 -0
- package/dist/services/operate/recovery-service.d.ts +16 -0
- package/dist/services/operate/recovery-service.d.ts.map +1 -0
- package/dist/services/operate/recovery-service.js +59 -0
- package/dist/services/operate/recovery-service.js.map +1 -0
- package/dist/services/operate/replay-safe-retry-service.d.ts +21 -0
- package/dist/services/operate/replay-safe-retry-service.d.ts.map +1 -0
- package/dist/services/operate/replay-safe-retry-service.js +66 -0
- package/dist/services/operate/replay-safe-retry-service.js.map +1 -0
- package/dist/services/operate/repository-read-service.d.ts +13 -0
- package/dist/services/operate/repository-read-service.d.ts.map +1 -0
- package/dist/services/operate/repository-read-service.js +153 -0
- package/dist/services/operate/repository-read-service.js.map +1 -0
- package/dist/services/operate/review-lifecycle-service.d.ts +50 -0
- package/dist/services/operate/review-lifecycle-service.d.ts.map +1 -0
- package/dist/services/operate/review-lifecycle-service.js +63 -0
- package/dist/services/operate/review-lifecycle-service.js.map +1 -0
- package/dist/services/operate/review-read-gateway.d.ts +21 -0
- package/dist/services/operate/review-read-gateway.d.ts.map +1 -0
- package/dist/services/operate/review-read-gateway.js +119 -0
- package/dist/services/operate/review-read-gateway.js.map +1 -0
- package/dist/services/operate/screened-evidence-service.d.ts +24 -0
- package/dist/services/operate/screened-evidence-service.d.ts.map +1 -0
- package/dist/services/operate/screened-evidence-service.js +186 -0
- package/dist/services/operate/screened-evidence-service.js.map +1 -0
- package/dist/services/operate/search-hit-contract.d.ts +11 -0
- package/dist/services/operate/search-hit-contract.d.ts.map +1 -0
- package/dist/services/operate/search-hit-contract.js +29 -0
- package/dist/services/operate/search-hit-contract.js.map +1 -0
- package/dist/services/operate/session-capability.d.ts +61 -0
- package/dist/services/operate/session-capability.d.ts.map +1 -0
- package/dist/services/operate/session-capability.js +124 -0
- package/dist/services/operate/session-capability.js.map +1 -0
- package/dist/services/operate/spec-operating-origin-service.d.ts +60 -0
- package/dist/services/operate/spec-operating-origin-service.d.ts.map +1 -0
- package/dist/services/operate/spec-operating-origin-service.js +401 -0
- package/dist/services/operate/spec-operating-origin-service.js.map +1 -0
- package/dist/services/operate/storage-layout.d.ts +82 -0
- package/dist/services/operate/storage-layout.d.ts.map +1 -0
- package/dist/services/operate/storage-layout.js +1244 -0
- package/dist/services/operate/storage-layout.js.map +1 -0
- package/dist/services/operate/storage-migration-service.d.ts +15 -0
- package/dist/services/operate/storage-migration-service.d.ts.map +1 -0
- package/dist/services/operate/storage-migration-service.js +27 -0
- package/dist/services/operate/storage-migration-service.js.map +1 -0
- package/dist/services/operate/store.d.ts +132 -0
- package/dist/services/operate/store.d.ts.map +1 -0
- package/dist/services/operate/store.js +1344 -0
- package/dist/services/operate/store.js.map +1 -0
- package/dist/services/pipeline-package-service.d.ts +93 -2
- package/dist/services/pipeline-package-service.d.ts.map +1 -1
- package/dist/services/pipeline-package-service.js +867 -7
- package/dist/services/pipeline-package-service.js.map +1 -1
- package/dist/services/planning-id-service.d.ts +8 -0
- package/dist/services/planning-id-service.d.ts.map +1 -0
- package/dist/services/planning-id-service.js +114 -0
- package/dist/services/planning-id-service.js.map +1 -0
- package/dist/services/provenance-service.d.ts +33 -1
- package/dist/services/provenance-service.d.ts.map +1 -1
- package/dist/services/provenance-service.js +104 -8
- package/dist/services/provenance-service.js.map +1 -1
- package/dist/services/runtime-manager/doctor.d.ts +22 -0
- package/dist/services/runtime-manager/doctor.d.ts.map +1 -0
- package/dist/services/runtime-manager/doctor.js +74 -0
- package/dist/services/runtime-manager/doctor.js.map +1 -0
- package/dist/services/runtime-manager/global-state.d.ts +47 -0
- package/dist/services/runtime-manager/global-state.d.ts.map +1 -0
- package/dist/services/runtime-manager/global-state.js +59 -0
- package/dist/services/runtime-manager/global-state.js.map +1 -0
- package/dist/services/runtime-manager/install-plan.d.ts +37 -0
- package/dist/services/runtime-manager/install-plan.d.ts.map +1 -0
- package/dist/services/runtime-manager/install-plan.js +91 -0
- package/dist/services/runtime-manager/install-plan.js.map +1 -0
- package/dist/services/runtime-manager/inventory.d.ts +29 -0
- package/dist/services/runtime-manager/inventory.d.ts.map +1 -0
- package/dist/services/runtime-manager/inventory.js +46 -0
- package/dist/services/runtime-manager/inventory.js.map +1 -0
- package/dist/services/runtime-manager-service.d.ts +16 -71
- package/dist/services/runtime-manager-service.d.ts.map +1 -1
- package/dist/services/runtime-manager-service.js +1288 -505
- package/dist/services/runtime-manager-service.js.map +1 -1
- package/dist/services/spec-service.d.ts +213 -39
- package/dist/services/spec-service.d.ts.map +1 -1
- package/dist/services/spec-service.js +938 -171
- package/dist/services/spec-service.js.map +1 -1
- package/dist/services/template-service.d.ts.map +1 -1
- package/dist/services/template-service.js +1 -0
- package/dist/services/template-service.js.map +1 -1
- package/dist/templates/quick/quick-task.md.hbs +6 -0
- package/dist/templates/rules/claude/CLAUDE.md.hbs +3 -111
- package/dist/templates/rules/codex/AGENTS.md.hbs +2 -92
- package/dist/templates/rules/cursor/create-task-list.mdc.hbs +1 -1
- package/dist/templates/rules/cursor/implement-task-list.mdc.hbs +5 -83
- package/dist/templates/rules/cursor/openplanr.mdc.hbs +12 -0
- package/dist/templates/rules/shared/host-native-guidance.md.hbs +12 -0
- package/dist/templates/rules/shared/implementation-guidance.md.hbs +44 -0
- package/dist/templates/spec/spec-shaped.md.hbs +66 -22
- package/dist/templates/spec/spec.md.hbs +46 -23
- package/dist/templates/spec/story.md.hbs +15 -4
- package/dist/templates/spec/task.md.hbs +53 -5
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +0 -6
- package/dist/utils/logger.js.map +1 -1
- package/docs/ARTIFACT_REVIEW.md +110 -0
- package/docs/CLI.md +1216 -0
- package/docs/CROSS_RUNTIME_SETUP.md +168 -0
- package/docs/TROUBLESHOOTING.md +227 -0
- package/lib/dashboard-verifier.d.mts +29 -0
- package/lib/dashboard-verifier.mjs +307 -0
- package/lib/host-packages/adapter-registry.json +44 -0
- package/lib/host-packages/claude/.claude-plugin/marketplace.json +20 -0
- package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +9 -0
- package/lib/host-packages/claude/openplanr/.openplanr-content.json +1179 -0
- package/lib/host-packages/claude/openplanr/agents/planr-backend.md +66 -0
- package/lib/host-packages/claude/openplanr/agents/planr-database.md +165 -0
- package/lib/host-packages/claude/openplanr/agents/planr-designer.md +57 -0
- package/lib/host-packages/claude/openplanr/agents/planr-devops.md +57 -0
- package/lib/host-packages/claude/openplanr/agents/planr-documentation.md +63 -0
- package/lib/host-packages/claude/openplanr/agents/planr-entity-scaffold.md +29 -0
- package/lib/host-packages/claude/openplanr/agents/planr-frontend.md +69 -0
- package/lib/host-packages/claude/openplanr/agents/planr-qa.md +162 -0
- package/lib/host-packages/claude/openplanr/agents/planr-specification.md +124 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/backend.md +93 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/designer.md +90 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/devops.md +55 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/doc-gen.md +67 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/frontend.md +94 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/qa.md +17 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/specification.md +111 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/contract-create-modify-preserve.md +17 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/design-craft-rubric.md +51 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/design-principles.md +43 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/design-spec-template.md +88 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/task-context-resolution.md +60 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/verification-and-recovery-backend.md +26 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/verification-and-recovery-frontend.md +27 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/backend.md +96 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/designer.md +83 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/devops.md +55 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/doc-gen.md +67 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/frontend.md +96 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/qa.md +17 -0
- package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/specification.md +112 -0
- package/lib/host-packages/claude/openplanr/references/pipeline/stacks/backend/nestjs.md +130 -0
- package/lib/host-packages/claude/openplanr/references/pipeline/stacks/database/mongodb.md +122 -0
- package/lib/host-packages/claude/openplanr/references/pipeline/stacks/database/prisma.md +155 -0
- package/lib/host-packages/claude/openplanr/references/pipeline/stacks/devops/docker-compose.md +140 -0
- package/lib/host-packages/claude/openplanr/references/pipeline/stacks/frontend/nextjs.md +123 -0
- package/lib/host-packages/claude/openplanr/skills/artifact/SKILL.md +54 -0
- package/lib/host-packages/claude/openplanr/skills/artifact/openplanr.skill.json +48 -0
- package/lib/host-packages/claude/openplanr/skills/artifact/references/company-review.md +18 -0
- package/lib/host-packages/claude/openplanr/skills/artifact/references/design-sharing.md +51 -0
- package/lib/host-packages/claude/openplanr/skills/browser-qa/SKILL.md +34 -0
- package/lib/host-packages/claude/openplanr/skills/browser-qa/openplanr.skill.json +26 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/SKILL.md +47 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/ceo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/chair-review/SKILL.md +101 -0
- package/lib/host-packages/claude/openplanr/skills/chair-review/openplanr.skill.json +70 -0
- package/lib/host-packages/claude/openplanr/skills/chair-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/chair-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/chair-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/chair-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/challenger-review/SKILL.md +86 -0
- package/lib/host-packages/claude/openplanr/skills/challenger-review/openplanr.skill.json +70 -0
- package/lib/host-packages/claude/openplanr/skills/challenger-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/challenger-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/challenger-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/challenger-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/SKILL.md +46 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/cmo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/SKILL.md +45 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/coo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/SKILL.md +48 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/cpo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/SKILL.md +47 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/openplanr.skill.json +81 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/cto-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/dashboard/SKILL.md +20 -0
- package/lib/host-packages/claude/openplanr/skills/dashboard/openplanr.skill.json +26 -0
- package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +73 -0
- package/lib/host-packages/claude/openplanr/skills/design/openplanr.skill.json +466 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/craft.md +68 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/design-spec-template.md +88 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +33 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/discovery.md +53 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +105 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/handoff.md +47 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/review.md +88 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/team-review.md +131 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +93 -0
- package/lib/host-packages/claude/openplanr/skills/design/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/design/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/design/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/design.mjs +17323 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/SKILL.md +58 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/openplanr.skill.json +466 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/craft.md +68 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-spec-template.md +88 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +33 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/discovery.md +53 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +105 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/handoff.md +47 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +88 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/team-review.md +131 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +93 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/design.mjs +17323 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/SKILL.md +54 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/openplanr.skill.json +466 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/craft.md +68 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/design-spec-template.md +88 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +33 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/discovery.md +53 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +105 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/handoff.md +47 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +88 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/team-review.md +131 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +93 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/design.mjs +17323 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/claude/openplanr/skills/diagram/SKILL.md +65 -0
- package/lib/host-packages/claude/openplanr/skills/diagram/openplanr.skill.json +59 -0
- package/lib/host-packages/claude/openplanr/skills/diagram/references/diagram-document.md +86 -0
- package/lib/host-packages/claude/openplanr/skills/diagram/references/diagram-fidelity.md +19 -0
- package/lib/host-packages/claude/openplanr/skills/diagram/references/diagram-intent-to-ir.md +22 -0
- package/lib/host-packages/claude/openplanr/skills/doctor/SKILL.md +40 -0
- package/lib/host-packages/claude/openplanr/skills/doctor/openplanr.skill.json +37 -0
- package/lib/host-packages/claude/openplanr/skills/doctor/references/upgrade.md +106 -0
- package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +31 -0
- package/lib/host-packages/claude/openplanr/skills/investigate/openplanr.skill.json +26 -0
- package/lib/host-packages/claude/openplanr/skills/land/SKILL.md +33 -0
- package/lib/host-packages/claude/openplanr/skills/land/openplanr.skill.json +26 -0
- package/lib/host-packages/claude/openplanr/skills/operate/SKILL.md +181 -0
- package/lib/host-packages/claude/openplanr/skills/operate/openplanr.skill.json +70 -0
- package/lib/host-packages/claude/openplanr/skills/operate/scripts/errors.mjs +8 -0
- package/lib/host-packages/claude/openplanr/skills/operate/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/claude/openplanr/skills/operate/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/claude/openplanr/skills/operate/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +106 -0
- package/lib/host-packages/claude/openplanr/skills/plan/openplanr.skill.json +389 -0
- package/lib/host-packages/claude/openplanr/skills/plan/references/artifact-contract.md +39 -0
- package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/design.mjs +17323 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/planning-ids.mjs +120 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/claude/openplanr/skills/plan-review/SKILL.md +39 -0
- package/lib/host-packages/claude/openplanr/skills/plan-review/openplanr.skill.json +26 -0
- package/lib/host-packages/claude/openplanr/skills/release/SKILL.md +180 -0
- package/lib/host-packages/claude/openplanr/skills/release/assets/changelog-template.md +18 -0
- package/lib/host-packages/claude/openplanr/skills/release/assets/profile-template.md +45 -0
- package/lib/host-packages/claude/openplanr/skills/release/openplanr.skill.json +92 -0
- package/lib/host-packages/claude/openplanr/skills/release/references/cadence.md +92 -0
- package/lib/host-packages/claude/openplanr/skills/release/references/release-notes.md +127 -0
- package/lib/host-packages/claude/openplanr/skills/release/references/schemes.md +103 -0
- package/lib/host-packages/claude/openplanr/skills/release/scripts/collect_changes.sh +85 -0
- package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +80 -0
- package/lib/host-packages/claude/openplanr/skills/ship/openplanr.skill.json +48 -0
- package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +14 -0
- package/lib/host-packages/claude/openplanr/skills/ship/scripts/discover-verification.mjs +107 -0
- package/lib/host-packages/claude/openplanr/skills/spec/SKILL.md +53 -0
- package/lib/host-packages/claude/openplanr/skills/spec/openplanr.skill.json +37 -0
- package/lib/host-packages/claude/openplanr/skills/spec/references/specification-contract.md +32 -0
- package/lib/host-packages/claude/openplanr/skills/status/SKILL.md +21 -0
- package/lib/host-packages/claude/openplanr/skills/status/openplanr.skill.json +26 -0
- package/lib/host-packages/claude/openplanr/skills/sync/SKILL.md +30 -0
- package/lib/host-packages/claude/openplanr/skills/sync/openplanr.skill.json +37 -0
- package/lib/host-packages/claude/openplanr/skills/sync/scripts/sync.mjs +230 -0
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +939 -0
- package/lib/host-packages/cursor/openplanr/manifest.json +32 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-artifact/references/company-review.md +18 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-artifact/references/design-sharing.md +51 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-artifact.mdc +53 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-browser-qa.mdc +34 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review.mdc +45 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-chair-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-chair-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-chair-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-chair-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-chair-review.mdc +99 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-challenger-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-challenger-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-challenger-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-challenger-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-challenger-review.mdc +84 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review.mdc +44 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-coo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-coo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-coo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-coo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-coo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-coo-review.mdc +43 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review.mdc +46 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cto-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cto-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cto-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cto-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cto-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-cto-review.mdc +45 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-dashboard.mdc +19 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/craft.md +68 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-spec-template.md +88 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +33 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/discovery.md +53 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +105 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/handoff.md +47 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +88 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/team-review.md +131 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +93 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/design.mjs +17323 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/craft.md +68 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-spec-template.md +88 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +33 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/discovery.md +53 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +105 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/handoff.md +47 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +88 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/team-review.md +131 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +93 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/design.mjs +17323 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop.mdc +57 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/craft.md +68 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-spec-template.md +88 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +33 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/discovery.md +53 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +105 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/handoff.md +47 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +88 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/team-review.md +131 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +93 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/design.mjs +17323 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review.mdc +53 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +72 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-diagram/references/diagram-document.md +86 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-diagram/references/diagram-fidelity.md +19 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-diagram/references/diagram-intent-to-ir.md +22 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-diagram.mdc +64 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-doctor/references/upgrade.md +106 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-doctor.mdc +39 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-land.mdc +32 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-operate/scripts/errors.mjs +8 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-operate/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-operate/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-operate/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-operate.mdc +180 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/references/artifact-contract.md +39 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/design.mjs +17323 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/planning-ids.mjs +120 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan-review.mdc +38 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +105 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release/assets/changelog-template.md +18 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release/assets/profile-template.md +45 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release/references/cadence.md +92 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release/references/release-notes.md +127 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release/references/schemes.md +103 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release/scripts/collect_changes.sh +85 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-release.mdc +179 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +14 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/discover-verification.mjs +107 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +79 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-spec/references/specification-contract.md +32 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-spec.mdc +52 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-status.mdc +20 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-sync/scripts/sync.mjs +230 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-sync.mdc +29 -0
- package/lib/host-packages/openai/.claude-plugin/marketplace.json +19 -0
- package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +10 -0
- package/lib/host-packages/openai/openplanr/.openplanr-content.json +1139 -0
- package/lib/host-packages/openai/openplanr/skills/artifact/SKILL.md +54 -0
- package/lib/host-packages/openai/openplanr/skills/artifact/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/artifact/openplanr.skill.json +48 -0
- package/lib/host-packages/openai/openplanr/skills/artifact/references/company-review.md +18 -0
- package/lib/host-packages/openai/openplanr/skills/artifact/references/design-sharing.md +51 -0
- package/lib/host-packages/openai/openplanr/skills/browser-qa/SKILL.md +34 -0
- package/lib/host-packages/openai/openplanr/skills/browser-qa/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/browser-qa/openplanr.skill.json +26 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/SKILL.md +47 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/ceo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/SKILL.md +101 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/openplanr.skill.json +70 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/chair-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/SKILL.md +86 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/openplanr.skill.json +70 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/challenger-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/SKILL.md +46 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/cmo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/SKILL.md +45 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/coo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/SKILL.md +48 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/openplanr.skill.json +81 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/cpo-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/SKILL.md +47 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/openplanr.skill.json +81 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/references/operate-advisor-contract.md +111 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/cto-review/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/dashboard/SKILL.md +20 -0
- package/lib/host-packages/openai/openplanr/skills/dashboard/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/dashboard/openplanr.skill.json +26 -0
- package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +73 -0
- package/lib/host-packages/openai/openplanr/skills/design/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +466 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/craft.md +68 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/design-spec-template.md +88 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +33 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/discovery.md +53 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +105 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/handoff.md +47 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/review.md +88 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/team-review.md +131 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +93 -0
- package/lib/host-packages/openai/openplanr/skills/design/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/design/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/design/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/design.mjs +17323 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/SKILL.md +58 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/openplanr.skill.json +466 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/craft.md +68 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-spec-template.md +88 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +33 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/discovery.md +53 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +105 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/handoff.md +47 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +88 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/team-review.md +131 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +93 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/design.mjs +17323 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/SKILL.md +54 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/openplanr.skill.json +466 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/craft.md +68 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/design-spec-template.md +88 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +33 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/discovery.md +53 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +105 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/handoff.md +47 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +88 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/team-review.md +131 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +93 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/design.mjs +17323 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/openai/openplanr/skills/diagram/SKILL.md +65 -0
- package/lib/host-packages/openai/openplanr/skills/diagram/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/diagram/openplanr.skill.json +59 -0
- package/lib/host-packages/openai/openplanr/skills/diagram/references/diagram-document.md +86 -0
- package/lib/host-packages/openai/openplanr/skills/diagram/references/diagram-fidelity.md +19 -0
- package/lib/host-packages/openai/openplanr/skills/diagram/references/diagram-intent-to-ir.md +22 -0
- package/lib/host-packages/openai/openplanr/skills/doctor/SKILL.md +40 -0
- package/lib/host-packages/openai/openplanr/skills/doctor/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/doctor/openplanr.skill.json +37 -0
- package/lib/host-packages/openai/openplanr/skills/doctor/references/upgrade.md +106 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +31 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +26 -0
- package/lib/host-packages/openai/openplanr/skills/land/SKILL.md +33 -0
- package/lib/host-packages/openai/openplanr/skills/land/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/land/openplanr.skill.json +26 -0
- package/lib/host-packages/openai/openplanr/skills/operate/SKILL.md +181 -0
- package/lib/host-packages/openai/openplanr/skills/operate/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/operate/openplanr.skill.json +70 -0
- package/lib/host-packages/openai/openplanr/skills/operate/scripts/errors.mjs +8 -0
- package/lib/host-packages/openai/openplanr/skills/operate/scripts/operate-review-contract.mjs +438 -0
- package/lib/host-packages/openai/openplanr/skills/operate/scripts/operate-review-note.mjs +595 -0
- package/lib/host-packages/openai/openplanr/skills/operate/scripts/validate-note.mjs +31 -0
- package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +106 -0
- package/lib/host-packages/openai/openplanr/skills/plan/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/plan/openplanr.skill.json +389 -0
- package/lib/host-packages/openai/openplanr/skills/plan/references/artifact-contract.md +39 -0
- package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/design.mjs +17323 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/planning-ids.mjs +120 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/notices/entities.txt +13 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/notices/parse5.txt +21 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +3994 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/enhancements.css +378 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/enhancements.js +805 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/share.css +1 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/share.js +132 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/studio.css +1103 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/design/templates/studio/studio.js +1775 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/package.json +115 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/registry/artifact-theme.json +60 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-document.schema.json +306 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/lib/host-packages/openai/openplanr/skills/plan-review/SKILL.md +39 -0
- package/lib/host-packages/openai/openplanr/skills/plan-review/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/plan-review/openplanr.skill.json +26 -0
- package/lib/host-packages/openai/openplanr/skills/release/SKILL.md +180 -0
- package/lib/host-packages/openai/openplanr/skills/release/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/release/assets/changelog-template.md +18 -0
- package/lib/host-packages/openai/openplanr/skills/release/assets/profile-template.md +45 -0
- package/lib/host-packages/openai/openplanr/skills/release/openplanr.skill.json +92 -0
- package/lib/host-packages/openai/openplanr/skills/release/references/cadence.md +92 -0
- package/lib/host-packages/openai/openplanr/skills/release/references/release-notes.md +127 -0
- package/lib/host-packages/openai/openplanr/skills/release/references/schemes.md +103 -0
- package/lib/host-packages/openai/openplanr/skills/release/scripts/collect_changes.sh +85 -0
- package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +80 -0
- package/lib/host-packages/openai/openplanr/skills/ship/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +48 -0
- package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +14 -0
- package/lib/host-packages/openai/openplanr/skills/ship/scripts/discover-verification.mjs +107 -0
- package/lib/host-packages/openai/openplanr/skills/spec/SKILL.md +53 -0
- package/lib/host-packages/openai/openplanr/skills/spec/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/spec/openplanr.skill.json +37 -0
- package/lib/host-packages/openai/openplanr/skills/spec/references/specification-contract.md +32 -0
- package/lib/host-packages/openai/openplanr/skills/status/SKILL.md +21 -0
- package/lib/host-packages/openai/openplanr/skills/status/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/status/openplanr.skill.json +26 -0
- package/lib/host-packages/openai/openplanr/skills/sync/SKILL.md +30 -0
- package/lib/host-packages/openai/openplanr/skills/sync/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/sync/openplanr.skill.json +37 -0
- package/lib/host-packages/openai/openplanr/skills/sync/scripts/sync.mjs +230 -0
- package/lib/integrations.d.mts +43 -0
- package/lib/integrations.mjs +230 -0
- package/lib/skill-runtime/errors.mjs +8 -0
- package/lib/skill-runtime/operate-review-contract.mjs +438 -0
- package/lib/skill-runtime/operate-review-note.mjs +595 -0
- package/package.json +56 -18
- package/dist/ai/codebase/context-builder.d.ts +0 -50
- package/dist/ai/codebase/context-builder.d.ts.map +0 -1
- package/dist/ai/codebase/context-builder.js +0 -281
- package/dist/ai/codebase/context-builder.js.map +0 -1
- package/dist/ai/codebase/file-reader.d.ts +0 -22
- package/dist/ai/codebase/file-reader.d.ts.map +0 -1
- package/dist/ai/codebase/file-reader.js +0 -144
- package/dist/ai/codebase/file-reader.js.map +0 -1
- package/dist/ai/codebase/index.d.ts +0 -7
- package/dist/ai/codebase/index.d.ts.map +0 -1
- package/dist/ai/codebase/index.js +0 -7
- package/dist/ai/codebase/index.js.map +0 -1
- package/dist/ai/codebase/pattern-rules.d.ts +0 -28
- package/dist/ai/codebase/pattern-rules.d.ts.map +0 -1
- package/dist/ai/codebase/pattern-rules.js +0 -186
- package/dist/ai/codebase/pattern-rules.js.map +0 -1
- package/dist/ai/codebase/rules-reader.d.ts +0 -14
- package/dist/ai/codebase/rules-reader.d.ts.map +0 -1
- package/dist/ai/codebase/rules-reader.js +0 -25
- package/dist/ai/codebase/rules-reader.js.map +0 -1
- package/dist/ai/codebase/stack-detector.d.ts +0 -18
- package/dist/ai/codebase/stack-detector.d.ts.map +0 -1
- package/dist/ai/codebase/stack-detector.js +0 -173
- package/dist/ai/codebase/stack-detector.js.map +0 -1
- package/dist/ai/codebase/tree-generator.d.ts +0 -8
- package/dist/ai/codebase/tree-generator.d.ts.map +0 -1
- package/dist/ai/codebase/tree-generator.js +0 -84
- package/dist/ai/codebase/tree-generator.js.map +0 -1
- package/dist/ai/errors.d.ts +0 -22
- package/dist/ai/errors.d.ts.map +0 -1
- package/dist/ai/errors.js +0 -72
- package/dist/ai/errors.js.map +0 -1
- package/dist/ai/index.d.ts +0 -11
- package/dist/ai/index.d.ts.map +0 -1
- package/dist/ai/index.js +0 -10
- package/dist/ai/index.js.map +0 -1
- package/dist/ai/prompts/prompt-builder.d.ts +0 -134
- package/dist/ai/prompts/prompt-builder.d.ts.map +0 -1
- package/dist/ai/prompts/prompt-builder.js +0 -295
- package/dist/ai/prompts/prompt-builder.js.map +0 -1
- package/dist/ai/prompts/system-prompts.d.ts +0 -41
- package/dist/ai/prompts/system-prompts.d.ts.map +0 -1
- package/dist/ai/prompts/system-prompts.js +0 -512
- package/dist/ai/prompts/system-prompts.js.map +0 -1
- package/dist/ai/provider-factory.d.ts +0 -10
- package/dist/ai/provider-factory.d.ts.map +0 -1
- package/dist/ai/provider-factory.js +0 -49
- package/dist/ai/provider-factory.js.map +0 -1
- package/dist/ai/providers/anthropic-provider.d.ts +0 -24
- package/dist/ai/providers/anthropic-provider.d.ts.map +0 -1
- package/dist/ai/providers/anthropic-provider.js +0 -97
- package/dist/ai/providers/anthropic-provider.js.map +0 -1
- package/dist/ai/providers/ollama-provider.d.ts +0 -13
- package/dist/ai/providers/ollama-provider.d.ts.map +0 -1
- package/dist/ai/providers/ollama-provider.js +0 -16
- package/dist/ai/providers/ollama-provider.js.map +0 -1
- package/dist/ai/providers/openai-provider.d.ts +0 -19
- package/dist/ai/providers/openai-provider.d.ts.map +0 -1
- package/dist/ai/providers/openai-provider.js +0 -84
- package/dist/ai/providers/openai-provider.js.map +0 -1
- package/dist/ai/schemas/ai-response-schemas.d.ts +0 -340
- package/dist/ai/schemas/ai-response-schemas.d.ts.map +0 -1
- package/dist/ai/schemas/ai-response-schemas.js +0 -278
- package/dist/ai/schemas/ai-response-schemas.js.map +0 -1
- package/dist/ai/types.d.ts +0 -76
- package/dist/ai/types.d.ts.map +0 -1
- package/dist/ai/types.js +0 -49
- package/dist/ai/types.js.map +0 -1
- package/dist/ai/validation/index.d.ts +0 -2
- package/dist/ai/validation/index.d.ts.map +0 -1
- package/dist/ai/validation/index.js +0 -2
- package/dist/ai/validation/index.js.map +0 -1
- package/dist/ai/validation/task-validator.d.ts +0 -37
- package/dist/ai/validation/task-validator.d.ts.map +0 -1
- package/dist/ai/validation/task-validator.js +0 -81
- package/dist/ai/validation/task-validator.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -8
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -224
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/estimate.d.ts +0 -3
- package/dist/cli/commands/estimate.d.ts.map +0 -1
- package/dist/cli/commands/estimate.js +0 -368
- package/dist/cli/commands/estimate.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -9
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -166
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/pipeline.d.ts +0 -3
- package/dist/cli/commands/pipeline.d.ts.map +0 -1
- package/dist/cli/commands/pipeline.js +0 -59
- package/dist/cli/commands/pipeline.js.map +0 -1
- package/dist/cli/commands/plan.d.ts +0 -15
- package/dist/cli/commands/plan.d.ts.map +0 -1
- package/dist/cli/commands/plan.js +0 -444
- package/dist/cli/commands/plan.js.map +0 -1
- package/dist/cli/commands/refine.d.ts +0 -10
- package/dist/cli/commands/refine.d.ts.map +0 -1
- package/dist/cli/commands/refine.js +0 -226
- package/dist/cli/commands/refine.js.map +0 -1
- package/dist/cli/commands/revise.d.ts +0 -24
- package/dist/cli/commands/revise.d.ts.map +0 -1
- package/dist/cli/commands/revise.js +0 -572
- package/dist/cli/commands/revise.js.map +0 -1
- package/dist/cli/helpers/task-creation.d.ts +0 -89
- package/dist/cli/helpers/task-creation.d.ts.map +0 -1
- package/dist/cli/helpers/task-creation.js +0 -139
- package/dist/cli/helpers/task-creation.js.map +0 -1
- package/dist/services/ai-service.d.ts +0 -77
- package/dist/services/ai-service.d.ts.map +0 -1
- package/dist/services/ai-service.js +0 -241
- package/dist/services/ai-service.js.map +0 -1
- package/dist/services/artifact-gathering.d.ts +0 -55
- package/dist/services/artifact-gathering.d.ts.map +0 -1
- package/dist/services/artifact-gathering.js +0 -147
- package/dist/services/artifact-gathering.js.map +0 -1
- package/dist/services/operate/advisors.d.ts +0 -625
- package/dist/services/operate/advisors.d.ts.map +0 -1
- package/dist/services/operate/advisors.js +0 -1545
- package/dist/services/operate/advisors.js.map +0 -1
- package/dist/services/operate/artifact-route-generation.d.ts +0 -111
- package/dist/services/operate/artifact-route-generation.d.ts.map +0 -1
- package/dist/services/operate/artifact-route-generation.js +0 -460
- package/dist/services/operate/artifact-route-generation.js.map +0 -1
- package/dist/services/operate/artifacts.d.ts +0 -66
- package/dist/services/operate/artifacts.d.ts.map +0 -1
- package/dist/services/operate/artifacts.js +0 -336
- package/dist/services/operate/artifacts.js.map +0 -1
- package/dist/services/operate/cadence.d.ts +0 -50
- package/dist/services/operate/cadence.d.ts.map +0 -1
- package/dist/services/operate/cadence.js +0 -56
- package/dist/services/operate/cadence.js.map +0 -1
- package/dist/services/operate/canonical.d.ts +0 -18
- package/dist/services/operate/canonical.d.ts.map +0 -1
- package/dist/services/operate/canonical.js +0 -157
- package/dist/services/operate/canonical.js.map +0 -1
- package/dist/services/operate/citation-resolution.d.ts +0 -161
- package/dist/services/operate/citation-resolution.d.ts.map +0 -1
- package/dist/services/operate/citation-resolution.js +0 -593
- package/dist/services/operate/citation-resolution.js.map +0 -1
- package/dist/services/operate/completion.d.ts +0 -80
- package/dist/services/operate/completion.d.ts.map +0 -1
- package/dist/services/operate/completion.js +0 -279
- package/dist/services/operate/completion.js.map +0 -1
- package/dist/services/operate/config.d.ts +0 -154
- package/dist/services/operate/config.d.ts.map +0 -1
- package/dist/services/operate/config.js +0 -791
- package/dist/services/operate/config.js.map +0 -1
- package/dist/services/operate/consolidation.d.ts +0 -18
- package/dist/services/operate/consolidation.d.ts.map +0 -1
- package/dist/services/operate/consolidation.js +0 -539
- package/dist/services/operate/consolidation.js.map +0 -1
- package/dist/services/operate/context-research.d.ts +0 -84
- package/dist/services/operate/context-research.d.ts.map +0 -1
- package/dist/services/operate/context-research.js +0 -448
- package/dist/services/operate/context-research.js.map +0 -1
- package/dist/services/operate/decision-brief.d.ts +0 -237
- package/dist/services/operate/decision-brief.d.ts.map +0 -1
- package/dist/services/operate/decision-brief.js +0 -368
- package/dist/services/operate/decision-brief.js.map +0 -1
- package/dist/services/operate/doctor.d.ts +0 -85
- package/dist/services/operate/doctor.d.ts.map +0 -1
- package/dist/services/operate/doctor.js +0 -1070
- package/dist/services/operate/doctor.js.map +0 -1
- package/dist/services/operate/drafts.d.ts +0 -48
- package/dist/services/operate/drafts.d.ts.map +0 -1
- package/dist/services/operate/drafts.js +0 -398
- package/dist/services/operate/drafts.js.map +0 -1
- package/dist/services/operate/engine.d.ts +0 -151
- package/dist/services/operate/engine.d.ts.map +0 -1
- package/dist/services/operate/engine.js +0 -1896
- package/dist/services/operate/engine.js.map +0 -1
- package/dist/services/operate/event-store.d.ts +0 -113
- package/dist/services/operate/event-store.d.ts.map +0 -1
- package/dist/services/operate/event-store.js +0 -384
- package/dist/services/operate/event-store.js.map +0 -1
- package/dist/services/operate/evidence-cache.d.ts +0 -41
- package/dist/services/operate/evidence-cache.d.ts.map +0 -1
- package/dist/services/operate/evidence-cache.js +0 -193
- package/dist/services/operate/evidence-cache.js.map +0 -1
- package/dist/services/operate/evidence-import.d.ts +0 -40
- package/dist/services/operate/evidence-import.d.ts.map +0 -1
- package/dist/services/operate/evidence-import.js +0 -340
- package/dist/services/operate/evidence-import.js.map +0 -1
- package/dist/services/operate/evidence.d.ts +0 -21
- package/dist/services/operate/evidence.d.ts.map +0 -1
- package/dist/services/operate/evidence.js +0 -20
- package/dist/services/operate/evidence.js.map +0 -1
- package/dist/services/operate/ids.d.ts +0 -7
- package/dist/services/operate/ids.d.ts.map +0 -1
- package/dist/services/operate/ids.js +0 -23
- package/dist/services/operate/ids.js.map +0 -1
- package/dist/services/operate/index.d.ts +0 -16
- package/dist/services/operate/index.d.ts.map +0 -1
- package/dist/services/operate/index.js +0 -1864
- package/dist/services/operate/index.js.map +0 -1
- package/dist/services/operate/integrity.d.ts +0 -81
- package/dist/services/operate/integrity.d.ts.map +0 -1
- package/dist/services/operate/integrity.js +0 -152
- package/dist/services/operate/integrity.js.map +0 -1
- package/dist/services/operate/interaction/action-service.d.ts +0 -34
- package/dist/services/operate/interaction/action-service.d.ts.map +0 -1
- package/dist/services/operate/interaction/action-service.js +0 -103
- package/dist/services/operate/interaction/action-service.js.map +0 -1
- package/dist/services/operate/interaction/answer-service.d.ts +0 -40
- package/dist/services/operate/interaction/answer-service.d.ts.map +0 -1
- package/dist/services/operate/interaction/answer-service.js +0 -317
- package/dist/services/operate/interaction/answer-service.js.map +0 -1
- package/dist/services/operate/interaction/charter-suggestions.d.ts +0 -29
- package/dist/services/operate/interaction/charter-suggestions.d.ts.map +0 -1
- package/dist/services/operate/interaction/charter-suggestions.js +0 -104
- package/dist/services/operate/interaction/charter-suggestions.js.map +0 -1
- package/dist/services/operate/interaction/confirmation-service.d.ts +0 -30
- package/dist/services/operate/interaction/confirmation-service.d.ts.map +0 -1
- package/dist/services/operate/interaction/confirmation-service.js +0 -78
- package/dist/services/operate/interaction/confirmation-service.js.map +0 -1
- package/dist/services/operate/interaction/initialization-replay.d.ts +0 -9
- package/dist/services/operate/interaction/initialization-replay.d.ts.map +0 -1
- package/dist/services/operate/interaction/initialization-replay.js +0 -64
- package/dist/services/operate/interaction/initialization-replay.js.map +0 -1
- package/dist/services/operate/interaction/question-engine.d.ts +0 -41
- package/dist/services/operate/interaction/question-engine.d.ts.map +0 -1
- package/dist/services/operate/interaction/question-engine.js +0 -434
- package/dist/services/operate/interaction/question-engine.js.map +0 -1
- package/dist/services/operate/interaction/question-registry.d.ts +0 -52
- package/dist/services/operate/interaction/question-registry.d.ts.map +0 -1
- package/dist/services/operate/interaction/question-registry.js +0 -305
- package/dist/services/operate/interaction/question-registry.js.map +0 -1
- package/dist/services/operate/interaction/session-service.d.ts +0 -55
- package/dist/services/operate/interaction/session-service.d.ts.map +0 -1
- package/dist/services/operate/interaction/session-service.js +0 -304
- package/dist/services/operate/interaction/session-service.js.map +0 -1
- package/dist/services/operate/interaction/terminal-renderer.d.ts +0 -19
- package/dist/services/operate/interaction/terminal-renderer.d.ts.map +0 -1
- package/dist/services/operate/interaction/terminal-renderer.js +0 -124
- package/dist/services/operate/interaction/terminal-renderer.js.map +0 -1
- package/dist/services/operate/journal.d.ts +0 -34
- package/dist/services/operate/journal.d.ts.map +0 -1
- package/dist/services/operate/journal.js +0 -235
- package/dist/services/operate/journal.js.map +0 -1
- package/dist/services/operate/legacy-import-service.d.ts +0 -58
- package/dist/services/operate/legacy-import-service.d.ts.map +0 -1
- package/dist/services/operate/legacy-import-service.js +0 -922
- package/dist/services/operate/legacy-import-service.js.map +0 -1
- package/dist/services/operate/lifecycle-driver.d.ts +0 -309
- package/dist/services/operate/lifecycle-driver.d.ts.map +0 -1
- package/dist/services/operate/lifecycle-driver.js +0 -434
- package/dist/services/operate/lifecycle-driver.js.map +0 -1
- package/dist/services/operate/lifecycle.d.ts +0 -96
- package/dist/services/operate/lifecycle.d.ts.map +0 -1
- package/dist/services/operate/lifecycle.js +0 -596
- package/dist/services/operate/lifecycle.js.map +0 -1
- package/dist/services/operate/lock-service.d.ts +0 -37
- package/dist/services/operate/lock-service.d.ts.map +0 -1
- package/dist/services/operate/lock-service.js +0 -215
- package/dist/services/operate/lock-service.js.map +0 -1
- package/dist/services/operate/maintenance.d.ts +0 -139
- package/dist/services/operate/maintenance.d.ts.map +0 -1
- package/dist/services/operate/maintenance.js +0 -2200
- package/dist/services/operate/maintenance.js.map +0 -1
- package/dist/services/operate/migration.d.ts +0 -68
- package/dist/services/operate/migration.d.ts.map +0 -1
- package/dist/services/operate/migration.js +0 -243
- package/dist/services/operate/migration.js.map +0 -1
- package/dist/services/operate/mission-dispatch.d.ts +0 -271
- package/dist/services/operate/mission-dispatch.d.ts.map +0 -1
- package/dist/services/operate/mission-dispatch.js +0 -590
- package/dist/services/operate/mission-dispatch.js.map +0 -1
- package/dist/services/operate/outcomes.d.ts +0 -48
- package/dist/services/operate/outcomes.d.ts.map +0 -1
- package/dist/services/operate/outcomes.js +0 -312
- package/dist/services/operate/outcomes.js.map +0 -1
- package/dist/services/operate/pipeline-handoff.d.ts +0 -138
- package/dist/services/operate/pipeline-handoff.d.ts.map +0 -1
- package/dist/services/operate/pipeline-handoff.js +0 -175
- package/dist/services/operate/pipeline-handoff.js.map +0 -1
- package/dist/services/operate/profile-migration.d.ts +0 -69
- package/dist/services/operate/profile-migration.d.ts.map +0 -1
- package/dist/services/operate/profile-migration.js +0 -462
- package/dist/services/operate/profile-migration.js.map +0 -1
- package/dist/services/operate/projection-persistence.d.ts +0 -126
- package/dist/services/operate/projection-persistence.d.ts.map +0 -1
- package/dist/services/operate/projection-persistence.js +0 -752
- package/dist/services/operate/projection-persistence.js.map +0 -1
- package/dist/services/operate/projection.d.ts +0 -37
- package/dist/services/operate/projection.d.ts.map +0 -1
- package/dist/services/operate/projection.js +0 -209
- package/dist/services/operate/projection.js.map +0 -1
- package/dist/services/operate/protocol.d.ts +0 -86
- package/dist/services/operate/protocol.d.ts.map +0 -1
- package/dist/services/operate/protocol.js +0 -76
- package/dist/services/operate/protocol.js.map +0 -1
- package/dist/services/operate/read-only-providers.d.ts +0 -76
- package/dist/services/operate/read-only-providers.d.ts.map +0 -1
- package/dist/services/operate/read-only-providers.js +0 -421
- package/dist/services/operate/read-only-providers.js.map +0 -1
- package/dist/services/operate/redaction.d.ts +0 -74
- package/dist/services/operate/redaction.d.ts.map +0 -1
- package/dist/services/operate/redaction.js +0 -406
- package/dist/services/operate/redaction.js.map +0 -1
- package/dist/services/operate/reducer.d.ts +0 -10
- package/dist/services/operate/reducer.d.ts.map +0 -1
- package/dist/services/operate/reducer.js +0 -11
- package/dist/services/operate/reducer.js.map +0 -1
- package/dist/services/operate/report-html.d.ts +0 -32
- package/dist/services/operate/report-html.d.ts.map +0 -1
- package/dist/services/operate/report-html.js +0 -289
- package/dist/services/operate/report-html.js.map +0 -1
- package/dist/services/operate/reports.d.ts +0 -72
- package/dist/services/operate/reports.d.ts.map +0 -1
- package/dist/services/operate/reports.js +0 -481
- package/dist/services/operate/reports.js.map +0 -1
- package/dist/services/operate/routes.d.ts +0 -133
- package/dist/services/operate/routes.d.ts.map +0 -1
- package/dist/services/operate/routes.js +0 -1577
- package/dist/services/operate/routes.js.map +0 -1
- package/dist/services/operate/scratch.d.ts +0 -81
- package/dist/services/operate/scratch.d.ts.map +0 -1
- package/dist/services/operate/scratch.js +0 -190
- package/dist/services/operate/scratch.js.map +0 -1
- package/dist/services/operate/shipment-observer.d.ts +0 -14
- package/dist/services/operate/shipment-observer.d.ts.map +0 -1
- package/dist/services/operate/shipment-observer.js +0 -320
- package/dist/services/operate/shipment-observer.js.map +0 -1
- package/dist/services/operate/stalled-item-service.d.ts +0 -18
- package/dist/services/operate/stalled-item-service.d.ts.map +0 -1
- package/dist/services/operate/stalled-item-service.js +0 -121
- package/dist/services/operate/stalled-item-service.js.map +0 -1
- package/dist/services/operate/subprocess-env.d.ts +0 -4
- package/dist/services/operate/subprocess-env.d.ts.map +0 -1
- package/dist/services/operate/subprocess-env.js +0 -45
- package/dist/services/operate/subprocess-env.js.map +0 -1
- package/dist/services/operate/types.d.ts +0 -1064
- package/dist/services/operate/types.d.ts.map +0 -1
- package/dist/services/operate/types.js +0 -27
- package/dist/services/operate/types.js.map +0 -1
- package/dist/services/operate/workspace.d.ts +0 -76
- package/dist/services/operate/workspace.d.ts.map +0 -1
- package/dist/services/operate/workspace.js +0 -350
- package/dist/services/operate/workspace.js.map +0 -1
- package/dist/services/revise-service.d.ts +0 -115
- package/dist/services/revise-service.d.ts.map +0 -1
- package/dist/services/revise-service.js +0 -294
- package/dist/services/revise-service.js.map +0 -1
- package/dist/templates/rules/claude/planr-pipeline.md.hbs +0 -69
- package/dist/templates/rules/codex/_pipeline-section.md.hbs +0 -154
- package/dist/templates/rules/cursor/agents/backend-agent.md +0 -299
- package/dist/templates/rules/cursor/agents/db-agent.md +0 -163
- package/dist/templates/rules/cursor/agents/designer-agent.md +0 -219
- package/dist/templates/rules/cursor/agents/devops-agent.md +0 -197
- package/dist/templates/rules/cursor/agents/doc-gen-agent.md +0 -203
- package/dist/templates/rules/cursor/agents/frontend-agent.md +0 -220
- package/dist/templates/rules/cursor/agents/qa-agent.md +0 -170
- package/dist/templates/rules/cursor/agents/specification-agent.md +0 -282
- package/dist/templates/rules/cursor/planr-pipeline-plan.mdc.hbs +0 -196
- package/dist/templates/rules/cursor/planr-pipeline-ship.mdc.hbs +0 -246
- package/dist/templates/rules/cursor/planr-pipeline.mdc.hbs +0 -134
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
var vS=Object.defineProperty;var fv=e=>{throw TypeError(e)};var bS=(e,t,a)=>t in e?vS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Nd=(e,t,a)=>bS(e,typeof t!="symbol"?t+"":t,a),hh=(e,t,a)=>t.has(e)||fv("Cannot "+a);var K=(e,t,a)=>(hh(e,t,"read from private field"),a?a.call(e):t.get(e)),Me=(e,t,a)=>t.has(e)?fv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),Qe=(e,t,a,s)=>(hh(e,t,"write to private field"),s?s.call(e,a):t.set(e,a),a),rn=(e,t,a)=>(hh(e,t,"access private method"),a);var Rd=(e,t,a,s)=>({set _(c){Qe(e,t,c,a)},get _(){return K(e,t,s)}});function wS(e,t){for(var a=0;a<t.length;a++){const s=t[a];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in e)){const l=Object.getOwnPropertyDescriptor(s,c);l&&Object.defineProperty(e,c,l.get?l:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const l of c)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function a(c){const l={};return c.integrity&&(l.integrity=c.integrity),c.referrerPolicy&&(l.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?l.credentials="include":c.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(c){if(c.ep)return;c.ep=!0;const l=a(c);fetch(c.href,l)}})();function xS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gh={exports:{}},_c={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var pv;function jS(){if(pv)return _c;pv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(s,c,l){var u=null;if(l!==void 0&&(u=""+l),c.key!==void 0&&(u=""+c.key),"key"in c){l={};for(var f in c)f!=="key"&&(l[f]=c[f])}else l=c;return c=l.ref,{$$typeof:e,type:s,key:u,ref:c!==void 0?c:null,props:l}}return _c.Fragment=t,_c.jsx=a,_c.jsxs=a,_c}var hv;function QS(){return hv||(hv=1,gh.exports=jS()),gh.exports}var r=QS(),Ah={exports:{}},Ce={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var gv;function IS(){if(gv)return Ce;gv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),E=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=E&&T[E]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,j={};function I(T,X,se){this.props=T,this.context=X,this.refs=j,this.updater=se||w}I.prototype.isReactComponent={},I.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,X,"setState")},I.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function C(){}C.prototype=I.prototype;function O(T,X,se){this.props=T,this.context=X,this.refs=j,this.updater=se||w}var S=O.prototype=new C;S.constructor=O,x(S,I.prototype),S.isPureReactComponent=!0;var _=Array.isArray;function k(){}var N={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function M(T,X,se){var de=se.ref;return{$$typeof:e,type:T,key:X,ref:de!==void 0?de:null,props:se}}function L(T,X){return M(T.type,X,T.props)}function Z(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function F(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return X[se]})}var oe=/\/+/g;function re(T,X){return typeof T=="object"&&T!==null&&T.key!=null?F(""+T.key):X.toString(36)}function pe(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(k,k):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Y(T,X,se,de,ye){var Ee=typeof T;(Ee==="undefined"||Ee==="boolean")&&(T=null);var R=!1;if(T===null)R=!0;else switch(Ee){case"bigint":case"string":case"number":R=!0;break;case"object":switch(T.$$typeof){case e:case t:R=!0;break;case y:return R=T._init,Y(R(T._payload),X,se,de,ye)}}if(R)return ye=ye(T),R=de===""?"."+re(T,0):de,_(ye)?(se="",R!=null&&(se=R.replace(oe,"$&/")+"/"),Y(ye,X,se,"",function(Ae){return Ae})):ye!=null&&(Z(ye)&&(ye=L(ye,se+(ye.key==null||T&&T.key===ye.key?"":(""+ye.key).replace(oe,"$&/")+"/")+R)),X.push(ye)),1;R=0;var J=de===""?".":de+":";if(_(T))for(var ne=0;ne<T.length;ne++)de=T[ne],Ee=J+re(de,ne),R+=Y(de,X,se,Ee,ye);else if(ne=b(T),typeof ne=="function")for(T=ne.call(T),ne=0;!(de=T.next()).done;)de=de.value,Ee=J+re(de,ne++),R+=Y(de,X,se,Ee,ye);else if(Ee==="object"){if(typeof T.then=="function")return Y(pe(T),X,se,de,ye);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return R}function V(T,X,se){if(T==null)return T;var de=[],ye=0;return Y(T,de,"","",function(Ee){return X.call(se,Ee,ye++)}),de}function te(T){if(T._status===-1){var X=T._result;X=X(),X.then(function(se){(T._status===0||T._status===-1)&&(T._status=1,T._result=se)},function(se){(T._status===0||T._status===-1)&&(T._status=2,T._result=se)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var le=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},fe={map:V,forEach:function(T,X,se){V(T,function(){X.apply(this,arguments)},se)},count:function(T){var X=0;return V(T,function(){X++}),X},toArray:function(T){return V(T,function(X){return X})||[]},only:function(T){if(!Z(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ce.Activity=m,Ce.Children=fe,Ce.Component=I,Ce.Fragment=a,Ce.Profiler=c,Ce.PureComponent=O,Ce.StrictMode=s,Ce.Suspense=h,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return N.H.useMemoCache(T)}},Ce.cache=function(T){return function(){return T.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(T,X,se){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var de=x({},T.props),ye=T.key;if(X!=null)for(Ee in X.key!==void 0&&(ye=""+X.key),X)!z.call(X,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&X.ref===void 0||(de[Ee]=X[Ee]);var Ee=arguments.length-2;if(Ee===1)de.children=se;else if(1<Ee){for(var R=Array(Ee),J=0;J<Ee;J++)R[J]=arguments[J+2];de.children=R}return M(T.type,ye,de)},Ce.createContext=function(T){return T={$$typeof:u,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:l,_context:T},T},Ce.createElement=function(T,X,se){var de,ye={},Ee=null;if(X!=null)for(de in X.key!==void 0&&(Ee=""+X.key),X)z.call(X,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(ye[de]=X[de]);var R=arguments.length-2;if(R===1)ye.children=se;else if(1<R){for(var J=Array(R),ne=0;ne<R;ne++)J[ne]=arguments[ne+2];ye.children=J}if(T&&T.defaultProps)for(de in R=T.defaultProps,R)ye[de]===void 0&&(ye[de]=R[de]);return M(T,Ee,ye)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(T){return{$$typeof:f,render:T}},Ce.isValidElement=Z,Ce.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:te}},Ce.memo=function(T,X){return{$$typeof:A,type:T,compare:X===void 0?null:X}},Ce.startTransition=function(T){var X=N.T,se={};N.T=se;try{var de=T(),ye=N.S;ye!==null&&ye(se,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(k,le)}catch(Ee){le(Ee)}finally{X!==null&&se.types!==null&&(X.types=se.types),N.T=X}},Ce.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ce.use=function(T){return N.H.use(T)},Ce.useActionState=function(T,X,se){return N.H.useActionState(T,X,se)},Ce.useCallback=function(T,X){return N.H.useCallback(T,X)},Ce.useContext=function(T){return N.H.useContext(T)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(T,X){return N.H.useDeferredValue(T,X)},Ce.useEffect=function(T,X){return N.H.useEffect(T,X)},Ce.useEffectEvent=function(T){return N.H.useEffectEvent(T)},Ce.useId=function(){return N.H.useId()},Ce.useImperativeHandle=function(T,X,se){return N.H.useImperativeHandle(T,X,se)},Ce.useInsertionEffect=function(T,X){return N.H.useInsertionEffect(T,X)},Ce.useLayoutEffect=function(T,X){return N.H.useLayoutEffect(T,X)},Ce.useMemo=function(T,X){return N.H.useMemo(T,X)},Ce.useOptimistic=function(T,X){return N.H.useOptimistic(T,X)},Ce.useReducer=function(T,X,se){return N.H.useReducer(T,X,se)},Ce.useRef=function(T){return N.H.useRef(T)},Ce.useState=function(T){return N.H.useState(T)},Ce.useSyncExternalStore=function(T,X,se){return N.H.useSyncExternalStore(T,X,se)},Ce.useTransition=function(){return N.H.useTransition()},Ce.version="19.2.8",Ce}var Av;function aA(){return Av||(Av=1,Ah.exports=IS()),Ah.exports}var B=aA();const CS=xS(B),Co=wS({__proto__:null,default:CS},[B]);var mh={exports:{}},Nc={},yh={exports:{}},Eh={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var mv;function SS(){return mv||(mv=1,(function(e){function t(Y,V){var te=Y.length;Y.push(V);e:for(;0<te;){var le=te-1>>>1,fe=Y[le];if(0<c(fe,V))Y[le]=V,Y[te]=fe,te=le;else break e}}function a(Y){return Y.length===0?null:Y[0]}function s(Y){if(Y.length===0)return null;var V=Y[0],te=Y.pop();if(te!==V){Y[0]=te;e:for(var le=0,fe=Y.length,T=fe>>>1;le<T;){var X=2*(le+1)-1,se=Y[X],de=X+1,ye=Y[de];if(0>c(se,te))de<fe&&0>c(ye,se)?(Y[le]=ye,Y[de]=te,le=de):(Y[le]=se,Y[X]=te,le=X);else if(de<fe&&0>c(ye,te))Y[le]=ye,Y[de]=te,le=de;else break e}}return V}function c(Y,V){var te=Y.sortIndex-V.sortIndex;return te!==0?te:Y.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],A=[],y=1,m=null,E=3,b=!1,w=!1,x=!1,j=!1,I=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function S(Y){for(var V=a(A);V!==null;){if(V.callback===null)s(A);else if(V.startTime<=Y)s(A),V.sortIndex=V.expirationTime,t(h,V);else break;V=a(A)}}function _(Y){if(x=!1,S(Y),!w)if(a(h)!==null)w=!0,k||(k=!0,F());else{var V=a(A);V!==null&&pe(_,V.startTime-Y)}}var k=!1,N=-1,z=5,M=-1;function L(){return j?!0:!(e.unstable_now()-M<z)}function Z(){if(j=!1,k){var Y=e.unstable_now();M=Y;var V=!0;try{e:{w=!1,x&&(x=!1,C(N),N=-1),b=!0;var te=E;try{t:{for(S(Y),m=a(h);m!==null&&!(m.expirationTime>Y&&L());){var le=m.callback;if(typeof le=="function"){m.callback=null,E=m.priorityLevel;var fe=le(m.expirationTime<=Y);if(Y=e.unstable_now(),typeof fe=="function"){m.callback=fe,S(Y),V=!0;break t}m===a(h)&&s(h),S(Y)}else s(h);m=a(h)}if(m!==null)V=!0;else{var T=a(A);T!==null&&pe(_,T.startTime-Y),V=!1}}break e}finally{m=null,E=te,b=!1}V=void 0}}finally{V?F():k=!1}}}var F;if(typeof O=="function")F=function(){O(Z)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,re=oe.port2;oe.port1.onmessage=Z,F=function(){re.postMessage(null)}}else F=function(){I(Z,0)};function pe(Y,V){N=I(function(){Y(e.unstable_now())},V)}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(Y){Y.callback=null},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(Y){switch(E){case 1:case 2:case 3:var V=3;break;default:V=E}var te=E;E=V;try{return Y()}finally{E=te}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(Y,V){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var te=E;E=Y;try{return V()}finally{E=te}},e.unstable_scheduleCallback=function(Y,V,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,Y){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=te+fe,Y={id:y++,callback:V,priorityLevel:Y,startTime:te,expirationTime:fe,sortIndex:-1},te>le?(Y.sortIndex=te,t(A,Y),a(h)===null&&Y===a(A)&&(x?(C(N),N=-1):x=!0,pe(_,te-le))):(Y.sortIndex=fe,t(h,Y),w||b||(w=!0,k||(k=!0,F()))),Y},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(Y){var V=E;return function(){var te=E;E=V;try{return Y.apply(this,arguments)}finally{E=te}}}})(Eh)),Eh}var yv;function OS(){return yv||(yv=1,yh.exports=SS()),yh.exports}var Bh={exports:{}},ln={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Ev;function _S(){if(Ev)return ln;Ev=1;var e=aA();function t(h){var A="https://react.dev/errors/"+h;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)A+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},c=Symbol.for("react.portal");function l(h,A,y){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:m==null?null:""+m,children:h,containerInfo:A,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,A){if(h==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ln.createPortal=function(h,A){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(t(299));return l(h,A,null,y)},ln.flushSync=function(h){var A=u.T,y=s.p;try{if(u.T=null,s.p=2,h)return h()}finally{u.T=A,s.p=y,s.d.f()}},ln.preconnect=function(h,A){typeof h=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,s.d.C(h,A))},ln.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},ln.preinit=function(h,A){if(typeof h=="string"&&A&&typeof A.as=="string"){var y=A.as,m=f(y,A.crossOrigin),E=typeof A.integrity=="string"?A.integrity:void 0,b=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;y==="style"?s.d.S(h,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:m,integrity:E,fetchPriority:b}):y==="script"&&s.d.X(h,{crossOrigin:m,integrity:E,fetchPriority:b,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},ln.preinitModule=function(h,A){if(typeof h=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var y=f(A.as,A.crossOrigin);s.d.M(h,{crossOrigin:y,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&s.d.M(h)},ln.preload=function(h,A){if(typeof h=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var y=A.as,m=f(y,A.crossOrigin);s.d.L(h,y,{crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},ln.preloadModule=function(h,A){if(typeof h=="string")if(A){var y=f(A.as,A.crossOrigin);s.d.m(h,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:y,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else s.d.m(h)},ln.requestFormReset=function(h){s.d.r(h)},ln.unstable_batchedUpdates=function(h,A){return h(A)},ln.useFormState=function(h,A,y){return u.H.useFormState(h,A,y)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.8",ln}var Bv;function Nw(){if(Bv)return Bh.exports;Bv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bh.exports=_S(),Bh.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var vv;function NS(){if(vv)return Nc;vv=1;var e=OS(),t=aA(),a=Nw();function s(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(l(n)!==n)throw Error(s(188))}function A(n){var i=n.alternate;if(!i){if(i=l(n),i===null)throw Error(s(188));return i!==n?null:n}for(var o=n,d=i;;){var p=o.return;if(p===null)break;var g=p.alternate;if(g===null){if(d=p.return,d!==null){o=d;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===o)return h(p),n;if(g===d)return h(p),i;g=g.sibling}throw Error(s(188))}if(o.return!==d.return)o=p,d=g;else{for(var v=!1,Q=p.child;Q;){if(Q===o){v=!0,o=p,d=g;break}if(Q===d){v=!0,d=p,o=g;break}Q=Q.sibling}if(!v){for(Q=g.child;Q;){if(Q===o){v=!0,o=g,d=p;break}if(Q===d){v=!0,d=g,o=p;break}Q=Q.sibling}if(!v)throw Error(s(189))}}if(o.alternate!==d)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?n:i}function y(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=y(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,E=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),O=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function F(n){return n===null||typeof n!="object"?null:(n=Z&&n[Z]||n["@@iterator"],typeof n=="function"?n:null)}var oe=Symbol.for("react.client.reference");function re(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===oe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case I:return"Profiler";case j:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList";case M:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case w:return"Portal";case O:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case S:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case N:return i=n.displayName||null,i!==null?i:re(n.type)||"Memo";case z:i=n._payload,n=n._init;try{return re(n(i))}catch{}}return null}var pe=Array.isArray,Y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],fe=-1;function T(n){return{current:n}}function X(n){0>fe||(n.current=le[fe],le[fe]=null,fe--)}function se(n,i){fe++,le[fe]=n.current,n.current=i}var de=T(null),ye=T(null),Ee=T(null),R=T(null);function J(n,i){switch(se(Ee,i),se(ye,n),se(de,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?TB(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=TB(i),n=kB(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}X(de),se(de,n)}function ne(){X(de),X(ye),X(Ee)}function Ae(n){n.memoizedState!==null&&se(R,n);var i=de.current,o=kB(i,n.type);i!==o&&(se(ye,n),se(de,o))}function we(n){ye.current===n&&(X(de),X(ye)),R.current===n&&(X(R),Ic._currentValue=te)}var xe,Ze;function Ie(n){if(xe===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);xe=i&&i[1]||"",Ze=-1<o.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+xe+n+Ze}var ce=!1;function De(n,i){if(!n||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(q){var P=q}Reflect.construct(n,[],ie)}else{try{ie.call()}catch(q){P=q}n.call(ie.prototype)}}else{try{throw Error()}catch(q){P=q}(ie=n())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(q){if(q&&P&&typeof q.stack=="string")return[q.stack,P.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=d.DetermineComponentFrameRoot(),v=g[0],Q=g[1];if(v&&Q){var D=v.split(`
|
|
44
|
+
`),U=Q.split(`
|
|
45
|
+
`);for(p=d=0;d<D.length&&!D[d].includes("DetermineComponentFrameRoot");)d++;for(;p<U.length&&!U[p].includes("DetermineComponentFrameRoot");)p++;if(d===D.length||p===U.length)for(d=D.length-1,p=U.length-1;1<=d&&0<=p&&D[d]!==U[p];)p--;for(;1<=d&&0<=p;d--,p--)if(D[d]!==U[p]){if(d!==1||p!==1)do if(d--,p--,0>p||D[d]!==U[p]){var W=`
|
|
46
|
+
`+D[d].replace(" at new "," at ");return n.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",n.displayName)),W}while(1<=d&&0<=p);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Ie(o):""}function Oe(n,i){switch(n.tag){case 26:case 27:case 5:return Ie(n.type);case 16:return Ie("Lazy");case 13:return n.child!==i&&i!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return De(n.type,!1);case 11:return De(n.type.render,!1);case 1:return De(n.type,!0);case 31:return Ie("Activity");default:return""}}function xt(n){try{var i="",o=null;do i+=Oe(n,o),o=n,n=n.return;while(n);return i}catch(d){return`
|
|
47
|
+
Error generating stack: `+d.message+`
|
|
48
|
+
`+d.stack}}var mt=Object.prototype.hasOwnProperty,Xt=e.unstable_scheduleCallback,Fa=e.unstable_cancelCallback,Kn=e.unstable_shouldYield,_t=e.unstable_requestPaint,We=e.unstable_now,Go=e.unstable_getCurrentPriorityLevel,vr=e.unstable_ImmediatePriority,ps=e.unstable_UserBlockingPriority,gl=e.unstable_NormalPriority,n0=e.unstable_LowPriority,gm=e.unstable_IdlePriority,a0=e.log,i0=e.unstable_setDisableYieldValue,Yo=null,Sn=null;function Oi(n){if(typeof a0=="function"&&i0(n),Sn&&typeof Sn.setStrictMode=="function")try{Sn.setStrictMode(Yo,n)}catch{}}var On=Math.clz32?Math.clz32:o0,r0=Math.log,s0=Math.LN2;function o0(n){return n>>>=0,n===0?32:31-(r0(n)/s0|0)|0}var Al=256,ml=262144,yl=4194304;function br(n){var i=n&42;if(i!==0)return i;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function El(n,i,o){var d=n.pendingLanes;if(d===0)return 0;var p=0,g=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var Q=d&134217727;return Q!==0?(d=Q&~g,d!==0?p=br(d):(v&=Q,v!==0?p=br(v):o||(o=Q&~n,o!==0&&(p=br(o))))):(Q=d&~g,Q!==0?p=br(Q):v!==0?p=br(v):o||(o=d&~n,o!==0&&(p=br(o)))),p===0?0:i!==0&&i!==p&&(i&g)===0&&(g=p&-p,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:p}function Ho(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function c0(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Am(){var n=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),n}function tf(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function zo(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function l0(n,i,o,d,p,g){var v=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var Q=n.entanglements,D=n.expirationTimes,U=n.hiddenUpdates;for(o=v&~o;0<o;){var W=31-On(o),ie=1<<W;Q[W]=0,D[W]=-1;var P=U[W];if(P!==null)for(U[W]=null,W=0;W<P.length;W++){var q=P[W];q!==null&&(q.lane&=-536870913)}o&=~ie}d!==0&&mm(n,d,0),g!==0&&p===0&&n.tag!==0&&(n.suspendedLanes|=g&~(v&~i))}function mm(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var d=31-On(i);n.entangledLanes|=i,n.entanglements[d]=n.entanglements[d]|1073741824|o&261930}function ym(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var d=31-On(o),p=1<<d;p&i|n[d]&i&&(n[d]|=i),o&=~p}}function Em(n,i){var o=i&-i;return o=(o&42)!==0?1:nf(o),(o&(n.suspendedLanes|i))!==0?0:o}function nf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function af(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Bm(){var n=V.p;return n!==0?n:(n=window.event,n===void 0?32:rv(n.type))}function vm(n,i){var o=V.p;try{return V.p=n,i()}finally{V.p=o}}var _i=Math.random().toString(36).slice(2),Wt="__reactFiber$"+_i,gn="__reactProps$"+_i,hs="__reactContainer$"+_i,rf="__reactEvents$"+_i,d0="__reactListeners$"+_i,u0="__reactHandles$"+_i,bm="__reactResources$"+_i,$o="__reactMarker$"+_i;function sf(n){delete n[Wt],delete n[gn],delete n[rf],delete n[d0],delete n[u0]}function gs(n){var i=n[Wt];if(i)return i;for(var o=n.parentNode;o;){if(i=o[hs]||o[Wt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=UB(n);n!==null;){if(o=n[Wt])return o;n=UB(n)}return i}n=o,o=n.parentNode}return null}function As(n){if(n=n[Wt]||n[hs]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Uo(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(s(33))}function ms(n){var i=n[bm];return i||(i=n[bm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Yt(n){n[$o]=!0}var wm=new Set,xm={};function wr(n,i){ys(n,i),ys(n+"Capture",i)}function ys(n,i){for(xm[n]=i,n=0;n<i.length;n++)wm.add(i[n])}var f0=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]*$"),jm={},Qm={};function p0(n){return mt.call(Qm,n)?!0:mt.call(jm,n)?!1:f0.test(n)?Qm[n]=!0:(jm[n]=!0,!1)}function Bl(n,i,o){if(p0(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function vl(n,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+o)}}function Va(n,i,o,d){if(d===null)n.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+d)}}function Jn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Im(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function h0(n,i,o){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var p=d.get,g=d.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return p.call(this)},set:function(v){o=""+v,g.call(this,v)}}),Object.defineProperty(n,i,{enumerable:d.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function of(n){if(!n._valueTracker){var i=Im(n)?"checked":"value";n._valueTracker=h0(n,i,""+n[i])}}function Cm(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),d="";return n&&(d=Im(n)?n.checked?"true":"false":n.value),n=d,n!==o?(i.setValue(n),!0):!1}function bl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var g0=/[\n"\\]/g;function Zn(n){return n.replace(g0,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function cf(n,i,o,d,p,g,v,Q){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),i!=null?v==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Jn(i)):n.value!==""+Jn(i)&&(n.value=""+Jn(i)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),i!=null?lf(n,v,Jn(i)):o!=null?lf(n,v,Jn(o)):d!=null&&n.removeAttribute("value"),p==null&&g!=null&&(n.defaultChecked=!!g),p!=null&&(n.checked=p&&typeof p!="function"&&typeof p!="symbol"),Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?n.name=""+Jn(Q):n.removeAttribute("name")}function Sm(n,i,o,d,p,g,v,Q){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),i!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){of(n);return}o=o!=null?""+Jn(o):"",i=i!=null?""+Jn(i):o,Q||i===n.value||(n.value=i),n.defaultValue=i}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=Q?n.checked:!!d,n.defaultChecked=!!d,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),of(n)}function lf(n,i,o){i==="number"&&bl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Es(n,i,o,d){if(n=n.options,i){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=!0;for(o=0;o<n.length;o++)p=i.hasOwnProperty("$"+n[o].value),n[o].selected!==p&&(n[o].selected=p),p&&d&&(n[o].defaultSelected=!0)}else{for(o=""+Jn(o),i=null,p=0;p<n.length;p++){if(n[p].value===o){n[p].selected=!0,d&&(n[p].defaultSelected=!0);return}i!==null||n[p].disabled||(i=n[p])}i!==null&&(i.selected=!0)}}function Om(n,i,o){if(i!=null&&(i=""+Jn(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+Jn(o):""}function _m(n,i,o,d){if(i==null){if(d!=null){if(o!=null)throw Error(s(92));if(pe(d)){if(1<d.length)throw Error(s(93));d=d[0]}o=d}o==null&&(o=""),i=o}o=Jn(i),n.defaultValue=o,d=n.textContent,d===o&&d!==""&&d!==null&&(n.value=d),of(n)}function Bs(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var A0=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 Nm(n,i,o){var d=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":d?n.setProperty(i,o):typeof o!="number"||o===0||A0.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function Rm(n,i,o){if(i!=null&&typeof i!="object")throw Error(s(62));if(n=n.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||i!=null&&i.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var p in i)d=i[p],i.hasOwnProperty(p)&&o[p]!==d&&Nm(n,p,d)}else for(var g in i)i.hasOwnProperty(g)&&Nm(n,g,i[g])}function df(n){if(n.indexOf("-")===-1)return!1;switch(n){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 m0=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"],["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"]]),y0=/^[\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 wl(n){return y0.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function qa(){}var uf=null;function ff(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var vs=null,bs=null;function Dm(n){var i=As(n);if(i&&(n=i.stateNode)){var o=n[gn]||null;e:switch(n=i.stateNode,i.type){case"input":if(cf(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Zn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var d=o[i];if(d!==n&&d.form===n.form){var p=d[gn]||null;if(!p)throw Error(s(90));cf(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<o.length;i++)d=o[i],d.form===n.form&&Cm(d)}break e;case"textarea":Om(n,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&Es(n,!!o.multiple,i,!1)}}}var pf=!1;function Tm(n,i,o){if(pf)return n(i,o);pf=!0;try{var d=n(i);return d}finally{if(pf=!1,(vs!==null||bs!==null)&&(dd(),vs&&(i=vs,n=bs,bs=vs=null,Dm(i),n)))for(i=0;i<n.length;i++)Dm(n[i])}}function Lo(n,i){var o=n.stateNode;if(o===null)return null;var d=o[gn]||null;if(d===null)return null;o=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(s(231,i,typeof o));return o}var Ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hf=!1;if(Ka)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){hf=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{hf=!1}var Ni=null,gf=null,xl=null;function km(){if(xl)return xl;var n,i=gf,o=i.length,d,p="value"in Ni?Ni.value:Ni.textContent,g=p.length;for(n=0;n<o&&i[n]===p[n];n++);var v=o-n;for(d=1;d<=v&&i[o-d]===p[g-d];d++);return xl=p.slice(n,1<d?1-d:void 0)}function jl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ql(){return!0}function Mm(){return!1}function An(n){function i(o,d,p,g,v){this._reactName=o,this._targetInst=p,this.type=d,this.nativeEvent=g,this.target=v,this.currentTarget=null;for(var Q in n)n.hasOwnProperty(Q)&&(o=n[Q],this[Q]=o?o(g):g[Q]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ql:Mm,this.isPropagationStopped=Mm,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),i}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Il=An(xr),Fo=m({},xr,{view:0,detail:0}),E0=An(Fo),Af,mf,Vo,Cl=m({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Vo&&(Vo&&n.type==="mousemove"?(Af=n.screenX-Vo.screenX,mf=n.screenY-Vo.screenY):mf=Af=0,Vo=n),Af)},movementY:function(n){return"movementY"in n?n.movementY:mf}}),Gm=An(Cl),B0=m({},Cl,{dataTransfer:0}),v0=An(B0),b0=m({},Fo,{relatedTarget:0}),yf=An(b0),w0=m({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),x0=An(w0),j0=m({},xr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Q0=An(j0),I0=m({},xr,{data:0}),Ym=An(I0),C0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S0={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"},O0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _0(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=O0[n])?!!i[n]:!1}function Ef(){return _0}var N0=m({},Fo,{key:function(n){if(n.key){var i=C0[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=jl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?S0[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(n){return n.type==="keypress"?jl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?jl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),R0=An(N0),D0=m({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hm=An(D0),T0=m({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),k0=An(T0),M0=m({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),G0=An(M0),Y0=m({},Cl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),H0=An(Y0),z0=m({},xr,{newState:0,oldState:0}),$0=An(z0),U0=[9,13,27,32],Bf=Ka&&"CompositionEvent"in window,qo=null;Ka&&"documentMode"in document&&(qo=document.documentMode);var L0=Ka&&"TextEvent"in window&&!qo,zm=Ka&&(!Bf||qo&&8<qo&&11>=qo),$m=" ",Um=!1;function Lm(n,i){switch(n){case"keyup":return U0.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ws=!1;function P0(n,i){switch(n){case"compositionend":return Pm(i);case"keypress":return i.which!==32?null:(Um=!0,$m);case"textInput":return n=i.data,n===$m&&Um?null:n;default:return null}}function F0(n,i){if(ws)return n==="compositionend"||!Bf&&Lm(n,i)?(n=km(),xl=gf=Ni=null,ws=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return zm&&i.locale!=="ko"?null:i.data;default:return null}}var V0={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 Fm(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!V0[n.type]:i==="textarea"}function Vm(n,i,o,d){vs?bs?bs.push(d):bs=[d]:vs=d,i=md(i,"onChange"),0<i.length&&(o=new Il("onChange","change",null,o,d),n.push({event:o,listeners:i}))}var Ko=null,Jo=null;function q0(n){SB(n,0)}function Sl(n){var i=Uo(n);if(Cm(i))return n}function qm(n,i){if(n==="change")return i}var Km=!1;if(Ka){var vf;if(Ka){var bf="oninput"in document;if(!bf){var Jm=document.createElement("div");Jm.setAttribute("oninput","return;"),bf=typeof Jm.oninput=="function"}vf=bf}else vf=!1;Km=vf&&(!document.documentMode||9<document.documentMode)}function Zm(){Ko&&(Ko.detachEvent("onpropertychange",Xm),Jo=Ko=null)}function Xm(n){if(n.propertyName==="value"&&Sl(Jo)){var i=[];Vm(i,Jo,n,ff(n)),Tm(q0,i)}}function K0(n,i,o){n==="focusin"?(Zm(),Ko=i,Jo=o,Ko.attachEvent("onpropertychange",Xm)):n==="focusout"&&Zm()}function J0(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Sl(Jo)}function Z0(n,i){if(n==="click")return Sl(i)}function X0(n,i){if(n==="input"||n==="change")return Sl(i)}function W0(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var _n=typeof Object.is=="function"?Object.is:W0;function Zo(n,i){if(_n(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),d=Object.keys(i);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var p=o[d];if(!mt.call(i,p)||!_n(n[p],i[p]))return!1}return!0}function Wm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function ey(n,i){var o=Wm(n);n=0;for(var d;o;){if(o.nodeType===3){if(d=n+o.textContent.length,n<=i&&d>=i)return{node:o,offset:i-n};n=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Wm(o)}}function ty(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?ty(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function ny(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=bl(n.document);i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=bl(n.document)}return i}function wf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var eC=Ka&&"documentMode"in document&&11>=document.documentMode,xs=null,xf=null,Xo=null,jf=!1;function ay(n,i,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;jf||xs==null||xs!==bl(d)||(d=xs,"selectionStart"in d&&wf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Xo&&Zo(Xo,d)||(Xo=d,d=md(xf,"onSelect"),0<d.length&&(i=new Il("onSelect","select",null,i,o),n.push({event:i,listeners:d}),i.target=xs)))}function jr(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var js={animationend:jr("Animation","AnimationEnd"),animationiteration:jr("Animation","AnimationIteration"),animationstart:jr("Animation","AnimationStart"),transitionrun:jr("Transition","TransitionRun"),transitionstart:jr("Transition","TransitionStart"),transitioncancel:jr("Transition","TransitionCancel"),transitionend:jr("Transition","TransitionEnd")},Qf={},iy={};Ka&&(iy=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function Qr(n){if(Qf[n])return Qf[n];if(!js[n])return n;var i=js[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in iy)return Qf[n]=i[o];return n}var ry=Qr("animationend"),sy=Qr("animationiteration"),oy=Qr("animationstart"),tC=Qr("transitionrun"),nC=Qr("transitionstart"),aC=Qr("transitioncancel"),cy=Qr("transitionend"),ly=new Map,If="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");If.push("scrollEnd");function pa(n,i){ly.set(n,i),wr(i,[n])}var Ol=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Xn=[],Qs=0,Cf=0;function _l(){for(var n=Qs,i=Cf=Qs=0;i<n;){var o=Xn[i];Xn[i++]=null;var d=Xn[i];Xn[i++]=null;var p=Xn[i];Xn[i++]=null;var g=Xn[i];if(Xn[i++]=null,d!==null&&p!==null){var v=d.pending;v===null?p.next=p:(p.next=v.next,v.next=p),d.pending=p}g!==0&&dy(o,p,g)}}function Nl(n,i,o,d){Xn[Qs++]=n,Xn[Qs++]=i,Xn[Qs++]=o,Xn[Qs++]=d,Cf|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function Sf(n,i,o,d){return Nl(n,i,o,d),Rl(n)}function Ir(n,i){return Nl(n,null,null,i),Rl(n)}function dy(n,i,o){n.lanes|=o;var d=n.alternate;d!==null&&(d.lanes|=o);for(var p=!1,g=n.return;g!==null;)g.childLanes|=o,d=g.alternate,d!==null&&(d.childLanes|=o),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(p=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,p&&i!==null&&(p=31-On(o),n=g.hiddenUpdates,d=n[p],d===null?n[p]=[i]:d.push(i),i.lane=o|536870912),g):null}function Rl(n){if(50<Bc)throw Bc=0,Gp=null,Error(s(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Is={};function iC(n,i,o,d){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(n,i,o,d){return new iC(n,i,o,d)}function Of(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ja(n,i){var o=n.alternate;return o===null?(o=Nn(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function uy(n,i){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Dl(n,i,o,d,p,g){var v=0;if(d=n,typeof n=="function")Of(n)&&(v=1);else if(typeof n=="string")v=lS(n,o,de.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case M:return n=Nn(31,o,i,p),n.elementType=M,n.lanes=g,n;case x:return Cr(o.children,p,g,i);case j:v=8,p|=24;break;case I:return n=Nn(12,o,i,p|2),n.elementType=I,n.lanes=g,n;case _:return n=Nn(13,o,i,p),n.elementType=_,n.lanes=g,n;case k:return n=Nn(19,o,i,p),n.elementType=k,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:v=10;break e;case C:v=9;break e;case S:v=11;break e;case N:v=14;break e;case z:v=16,d=null;break e}v=29,o=Error(s(130,n===null?"null":typeof n,"")),d=null}return i=Nn(v,o,i,p),i.elementType=n,i.type=d,i.lanes=g,i}function Cr(n,i,o,d){return n=Nn(7,n,d,i),n.lanes=o,n}function _f(n,i,o){return n=Nn(6,n,null,i),n.lanes=o,n}function fy(n){var i=Nn(18,null,null,0);return i.stateNode=n,i}function Nf(n,i,o){return i=Nn(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var py=new WeakMap;function Wn(n,i){if(typeof n=="object"&&n!==null){var o=py.get(n);return o!==void 0?o:(i={value:n,source:i,stack:xt(i)},py.set(n,i),i)}return{value:n,source:i,stack:xt(i)}}var Cs=[],Ss=0,Tl=null,Wo=0,ea=[],ta=0,Ri=null,ja=1,Qa="";function Za(n,i){Cs[Ss++]=Wo,Cs[Ss++]=Tl,Tl=n,Wo=i}function hy(n,i,o){ea[ta++]=ja,ea[ta++]=Qa,ea[ta++]=Ri,Ri=n;var d=ja;n=Qa;var p=32-On(d)-1;d&=~(1<<p),o+=1;var g=32-On(i)+p;if(30<g){var v=p-p%5;g=(d&(1<<v)-1).toString(32),d>>=v,p-=v,ja=1<<32-On(i)+p|o<<p|d,Qa=g+n}else ja=1<<g|o<<p|d,Qa=n}function Rf(n){n.return!==null&&(Za(n,1),hy(n,1,0))}function Df(n){for(;n===Tl;)Tl=Cs[--Ss],Cs[Ss]=null,Wo=Cs[--Ss],Cs[Ss]=null;for(;n===Ri;)Ri=ea[--ta],ea[ta]=null,Qa=ea[--ta],ea[ta]=null,ja=ea[--ta],ea[ta]=null}function gy(n,i){ea[ta++]=ja,ea[ta++]=Qa,ea[ta++]=Ri,ja=i.id,Qa=i.overflow,Ri=n}var en=null,lt=null,Ue=!1,Di=null,na=!1,Tf=Error(s(519));function Ti(n){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ec(Wn(i,n)),Tf}function Ay(n){var i=n.stateNode,o=n.type,d=n.memoizedProps;switch(i[Wt]=n,i[gn]=d,o){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(o=0;o<bc.length;o++)ke(bc[o],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":ke("invalid",i),Sm(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":ke("invalid",i);break;case"textarea":ke("invalid",i),_m(i,d.value,d.defaultValue,d.children)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||d.suppressHydrationWarning===!0||RB(i.textContent,o)?(d.popover!=null&&(ke("beforetoggle",i),ke("toggle",i)),d.onScroll!=null&&ke("scroll",i),d.onScrollEnd!=null&&ke("scrollend",i),d.onClick!=null&&(i.onclick=qa),i=!0):i=!1,i||Ti(n,!0)}function my(n){for(en=n.return;en;)switch(en.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:en=en.return}}function Os(n){if(n!==en)return!1;if(!Ue)return my(n),Ue=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Wp(n.type,n.memoizedProps)),o=!o),o&<&&Ti(n),my(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));lt=$B(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));lt=$B(n)}else i===27?(i=lt,Ki(n.type)?(n=ih,ih=null,lt=n):lt=i):lt=en?ia(n.stateNode.nextSibling):null;return!0}function Sr(){lt=en=null,Ue=!1}function kf(){var n=Di;return n!==null&&(Bn===null?Bn=n:Bn.push.apply(Bn,n),Di=null),n}function ec(n){Di===null?Di=[n]:Di.push(n)}var Mf=T(null),Or=null,Xa=null;function ki(n,i,o){se(Mf,i._currentValue),i._currentValue=o}function Wa(n){n._currentValue=Mf.current,X(Mf)}function Gf(n,i,o){for(;n!==null;){var d=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),n===o)break;n=n.return}}function Yf(n,i,o,d){var p=n.child;for(p!==null&&(p.return=n);p!==null;){var g=p.dependencies;if(g!==null){var v=p.child;g=g.firstContext;e:for(;g!==null;){var Q=g;g=p;for(var D=0;D<i.length;D++)if(Q.context===i[D]){g.lanes|=o,Q=g.alternate,Q!==null&&(Q.lanes|=o),Gf(g.return,o,n),d||(v=null);break e}g=Q.next}}else if(p.tag===18){if(v=p.return,v===null)throw Error(s(341));v.lanes|=o,g=v.alternate,g!==null&&(g.lanes|=o),Gf(v,o,n),v=null}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===n){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}}function _s(n,i,o,d){n=null;for(var p=i,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var v=p.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var Q=p.type;_n(p.pendingProps.value,v.value)||(n!==null?n.push(Q):n=[Q])}}else if(p===R.current){if(v=p.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(n!==null?n.push(Ic):n=[Ic])}p=p.return}n!==null&&Yf(i,n,o,d),i.flags|=262144}function kl(n){for(n=n.firstContext;n!==null;){if(!_n(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function _r(n){Or=n,Xa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function tn(n){return yy(Or,n)}function Ml(n,i){return Or===null&&_r(n),yy(n,i)}function yy(n,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Xa===null){if(n===null)throw Error(s(308));Xa=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Xa=Xa.next=i;return o}var rC=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,d){n.push(d)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},sC=e.unstable_scheduleCallback,oC=e.unstable_NormalPriority,jt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hf(){return{controller:new rC,data:new Map,refCount:0}}function tc(n){n.refCount--,n.refCount===0&&sC(oC,function(){n.controller.abort()})}var nc=null,zf=0,Ns=0,Rs=null;function cC(n,i){if(nc===null){var o=nc=[];zf=0,Ns=Lp(),Rs={status:"pending",value:void 0,then:function(d){o.push(d)}}}return zf++,i.then(Ey,Ey),i}function Ey(){if(--zf===0&&nc!==null){Rs!==null&&(Rs.status="fulfilled");var n=nc;nc=null,Ns=0,Rs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function lC(n,i){var o=[],d={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return n.then(function(){d.status="fulfilled",d.value=i;for(var p=0;p<o.length;p++)(0,o[p])(i)},function(p){for(d.status="rejected",d.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),d}var By=Y.S;Y.S=function(n,i){aB=We(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&cC(n,i),By!==null&&By(n,i)};var Nr=T(null);function $f(){var n=Nr.current;return n!==null?n:ot.pooledCache}function Gl(n,i){i===null?se(Nr,Nr.current):se(Nr,i.pool)}function vy(){var n=$f();return n===null?null:{parent:jt._currentValue,pool:n}}var Ds=Error(s(460)),Uf=Error(s(474)),Yl=Error(s(542)),Hl={then:function(){}};function by(n){return n=n.status,n==="fulfilled"||n==="rejected"}function wy(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(qa,qa),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,jy(n),n;default:if(typeof i.status=="string")i.then(qa,qa);else{if(n=ot,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=i,n.status="pending",n.then(function(d){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=d}},function(d){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=d}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,jy(n),n}throw Dr=i,Ds}}function Rr(n){try{var i=n._init;return i(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Dr=o,Ds):o}}var Dr=null;function xy(){if(Dr===null)throw Error(s(459));var n=Dr;return Dr=null,n}function jy(n){if(n===Ds||n===Yl)throw Error(s(483))}var Ts=null,ac=0;function zl(n){var i=ac;return ac+=1,Ts===null&&(Ts=[]),wy(Ts,n,i)}function ic(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function $l(n,i){throw i.$$typeof===E?Error(s(525)):(n=Object.prototype.toString.call(i),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function Qy(n){function i(H,G){if(n){var $=H.deletions;$===null?(H.deletions=[G],H.flags|=16):$.push(G)}}function o(H,G){if(!n)return null;for(;G!==null;)i(H,G),G=G.sibling;return null}function d(H){for(var G=new Map;H!==null;)H.key!==null?G.set(H.key,H):G.set(H.index,H),H=H.sibling;return G}function p(H,G){return H=Ja(H,G),H.index=0,H.sibling=null,H}function g(H,G,$){return H.index=$,n?($=H.alternate,$!==null?($=$.index,$<G?(H.flags|=67108866,G):$):(H.flags|=67108866,G)):(H.flags|=1048576,G)}function v(H){return n&&H.alternate===null&&(H.flags|=67108866),H}function Q(H,G,$,ae){return G===null||G.tag!==6?(G=_f($,H.mode,ae),G.return=H,G):(G=p(G,$),G.return=H,G)}function D(H,G,$,ae){var ve=$.type;return ve===x?W(H,G,$.props.children,ae,$.key):G!==null&&(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&Rr(ve)===G.type)?(G=p(G,$.props),ic(G,$),G.return=H,G):(G=Dl($.type,$.key,$.props,null,H.mode,ae),ic(G,$),G.return=H,G)}function U(H,G,$,ae){return G===null||G.tag!==4||G.stateNode.containerInfo!==$.containerInfo||G.stateNode.implementation!==$.implementation?(G=Nf($,H.mode,ae),G.return=H,G):(G=p(G,$.children||[]),G.return=H,G)}function W(H,G,$,ae,ve){return G===null||G.tag!==7?(G=Cr($,H.mode,ae,ve),G.return=H,G):(G=p(G,$),G.return=H,G)}function ie(H,G,$){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=_f(""+G,H.mode,$),G.return=H,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case b:return $=Dl(G.type,G.key,G.props,null,H.mode,$),ic($,G),$.return=H,$;case w:return G=Nf(G,H.mode,$),G.return=H,G;case z:return G=Rr(G),ie(H,G,$)}if(pe(G)||F(G))return G=Cr(G,H.mode,$,null),G.return=H,G;if(typeof G.then=="function")return ie(H,zl(G),$);if(G.$$typeof===O)return ie(H,Ml(H,G),$);$l(H,G)}return null}function P(H,G,$,ae){var ve=G!==null?G.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ve!==null?null:Q(H,G,""+$,ae);if(typeof $=="object"&&$!==null){switch($.$$typeof){case b:return $.key===ve?D(H,G,$,ae):null;case w:return $.key===ve?U(H,G,$,ae):null;case z:return $=Rr($),P(H,G,$,ae)}if(pe($)||F($))return ve!==null?null:W(H,G,$,ae,null);if(typeof $.then=="function")return P(H,G,zl($),ae);if($.$$typeof===O)return P(H,G,Ml(H,$),ae);$l(H,$)}return null}function q(H,G,$,ae,ve){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return H=H.get($)||null,Q(G,H,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return H=H.get(ae.key===null?$:ae.key)||null,D(G,H,ae,ve);case w:return H=H.get(ae.key===null?$:ae.key)||null,U(G,H,ae,ve);case z:return ae=Rr(ae),q(H,G,$,ae,ve)}if(pe(ae)||F(ae))return H=H.get($)||null,W(G,H,ae,ve,null);if(typeof ae.then=="function")return q(H,G,$,zl(ae),ve);if(ae.$$typeof===O)return q(H,G,$,Ml(G,ae),ve);$l(G,ae)}return null}function ge(H,G,$,ae){for(var ve=null,qe=null,me=G,Re=G=0,ze=null;me!==null&&Re<$.length;Re++){me.index>Re?(ze=me,me=null):ze=me.sibling;var Ke=P(H,me,$[Re],ae);if(Ke===null){me===null&&(me=ze);break}n&&me&&Ke.alternate===null&&i(H,me),G=g(Ke,G,Re),qe===null?ve=Ke:qe.sibling=Ke,qe=Ke,me=ze}if(Re===$.length)return o(H,me),Ue&&Za(H,Re),ve;if(me===null){for(;Re<$.length;Re++)me=ie(H,$[Re],ae),me!==null&&(G=g(me,G,Re),qe===null?ve=me:qe.sibling=me,qe=me);return Ue&&Za(H,Re),ve}for(me=d(me);Re<$.length;Re++)ze=q(me,H,Re,$[Re],ae),ze!==null&&(n&&ze.alternate!==null&&me.delete(ze.key===null?Re:ze.key),G=g(ze,G,Re),qe===null?ve=ze:qe.sibling=ze,qe=ze);return n&&me.forEach(function(er){return i(H,er)}),Ue&&Za(H,Re),ve}function je(H,G,$,ae){if($==null)throw Error(s(151));for(var ve=null,qe=null,me=G,Re=G=0,ze=null,Ke=$.next();me!==null&&!Ke.done;Re++,Ke=$.next()){me.index>Re?(ze=me,me=null):ze=me.sibling;var er=P(H,me,Ke.value,ae);if(er===null){me===null&&(me=ze);break}n&&me&&er.alternate===null&&i(H,me),G=g(er,G,Re),qe===null?ve=er:qe.sibling=er,qe=er,me=ze}if(Ke.done)return o(H,me),Ue&&Za(H,Re),ve;if(me===null){for(;!Ke.done;Re++,Ke=$.next())Ke=ie(H,Ke.value,ae),Ke!==null&&(G=g(Ke,G,Re),qe===null?ve=Ke:qe.sibling=Ke,qe=Ke);return Ue&&Za(H,Re),ve}for(me=d(me);!Ke.done;Re++,Ke=$.next())Ke=q(me,H,Re,Ke.value,ae),Ke!==null&&(n&&Ke.alternate!==null&&me.delete(Ke.key===null?Re:Ke.key),G=g(Ke,G,Re),qe===null?ve=Ke:qe.sibling=Ke,qe=Ke);return n&&me.forEach(function(BS){return i(H,BS)}),Ue&&Za(H,Re),ve}function it(H,G,$,ae){if(typeof $=="object"&&$!==null&&$.type===x&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case b:e:{for(var ve=$.key;G!==null;){if(G.key===ve){if(ve=$.type,ve===x){if(G.tag===7){o(H,G.sibling),ae=p(G,$.props.children),ae.return=H,H=ae;break e}}else if(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&Rr(ve)===G.type){o(H,G.sibling),ae=p(G,$.props),ic(ae,$),ae.return=H,H=ae;break e}o(H,G);break}else i(H,G);G=G.sibling}$.type===x?(ae=Cr($.props.children,H.mode,ae,$.key),ae.return=H,H=ae):(ae=Dl($.type,$.key,$.props,null,H.mode,ae),ic(ae,$),ae.return=H,H=ae)}return v(H);case w:e:{for(ve=$.key;G!==null;){if(G.key===ve)if(G.tag===4&&G.stateNode.containerInfo===$.containerInfo&&G.stateNode.implementation===$.implementation){o(H,G.sibling),ae=p(G,$.children||[]),ae.return=H,H=ae;break e}else{o(H,G);break}else i(H,G);G=G.sibling}ae=Nf($,H.mode,ae),ae.return=H,H=ae}return v(H);case z:return $=Rr($),it(H,G,$,ae)}if(pe($))return ge(H,G,$,ae);if(F($)){if(ve=F($),typeof ve!="function")throw Error(s(150));return $=ve.call($),je(H,G,$,ae)}if(typeof $.then=="function")return it(H,G,zl($),ae);if($.$$typeof===O)return it(H,G,Ml(H,$),ae);$l(H,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,G!==null&&G.tag===6?(o(H,G.sibling),ae=p(G,$),ae.return=H,H=ae):(o(H,G),ae=_f($,H.mode,ae),ae.return=H,H=ae),v(H)):o(H,G)}return function(H,G,$,ae){try{ac=0;var ve=it(H,G,$,ae);return Ts=null,ve}catch(me){if(me===Ds||me===Yl)throw me;var qe=Nn(29,me,null,H.mode);return qe.lanes=ae,qe.return=H,qe}finally{}}}var Tr=Qy(!0),Iy=Qy(!1),Mi=!1;function Lf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pf(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Gi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Yi(n,i,o){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(Je&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,i=Rl(n),dy(n,null,o),i}return Nl(n,d,i,o),Rl(n)}function rc(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var d=i.lanes;d&=n.pendingLanes,o|=d,i.lanes=o,ym(n,o)}}function Ff(n,i){var o=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var p=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?p=g=v:g=g.next=v,o=o.next}while(o!==null);g===null?p=g=i:g=g.next=i}else p=g=i;o={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,callbacks:d.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var Vf=!1;function sc(){if(Vf){var n=Rs;if(n!==null)throw n}}function oc(n,i,o,d){Vf=!1;var p=n.updateQueue;Mi=!1;var g=p.firstBaseUpdate,v=p.lastBaseUpdate,Q=p.shared.pending;if(Q!==null){p.shared.pending=null;var D=Q,U=D.next;D.next=null,v===null?g=U:v.next=U,v=D;var W=n.alternate;W!==null&&(W=W.updateQueue,Q=W.lastBaseUpdate,Q!==v&&(Q===null?W.firstBaseUpdate=U:Q.next=U,W.lastBaseUpdate=D))}if(g!==null){var ie=p.baseState;v=0,W=U=D=null,Q=g;do{var P=Q.lane&-536870913,q=P!==Q.lane;if(q?(He&P)===P:(d&P)===P){P!==0&&P===Ns&&(Vf=!0),W!==null&&(W=W.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});e:{var ge=n,je=Q;P=i;var it=o;switch(je.tag){case 1:if(ge=je.payload,typeof ge=="function"){ie=ge.call(it,ie,P);break e}ie=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=je.payload,P=typeof ge=="function"?ge.call(it,ie,P):ge,P==null)break e;ie=m({},ie,P);break e;case 2:Mi=!0}}P=Q.callback,P!==null&&(n.flags|=64,q&&(n.flags|=8192),q=p.callbacks,q===null?p.callbacks=[P]:q.push(P))}else q={lane:P,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},W===null?(U=W=q,D=ie):W=W.next=q,v|=P;if(Q=Q.next,Q===null){if(Q=p.shared.pending,Q===null)break;q=Q,Q=q.next,q.next=null,p.lastBaseUpdate=q,p.shared.pending=null}}while(!0);W===null&&(D=ie),p.baseState=D,p.firstBaseUpdate=U,p.lastBaseUpdate=W,g===null&&(p.shared.lanes=0),Li|=v,n.lanes=v,n.memoizedState=ie}}function Cy(n,i){if(typeof n!="function")throw Error(s(191,n));n.call(i)}function Sy(n,i){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)Cy(o[n],i)}var ks=T(null),Ul=T(0);function Oy(n,i){n=ci,se(Ul,n),se(ks,i),ci=n|i.baseLanes}function qf(){se(Ul,ci),se(ks,ks.current)}function Kf(){ci=Ul.current,X(ks),X(Ul)}var Rn=T(null),aa=null;function Hi(n){var i=n.alternate;se(vt,vt.current&1),se(Rn,n),aa===null&&(i===null||ks.current!==null||i.memoizedState!==null)&&(aa=n)}function Jf(n){se(vt,vt.current),se(Rn,n),aa===null&&(aa=n)}function _y(n){n.tag===22?(se(vt,vt.current),se(Rn,n),aa===null&&(aa=n)):zi()}function zi(){se(vt,vt.current),se(Rn,Rn.current)}function Dn(n){X(Rn),aa===n&&(aa=null),X(vt)}var vt=T(0);function Ll(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||nh(o)||ah(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ei=0,_e=null,nt=null,Qt=null,Pl=!1,Ms=!1,kr=!1,Fl=0,cc=0,Gs=null,dC=0;function yt(){throw Error(s(321))}function Zf(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!_n(n[o],i[o]))return!1;return!0}function Xf(n,i,o,d,p,g){return ei=g,_e=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Y.H=n===null||n.memoizedState===null?hE:pp,kr=!1,g=o(d,p),kr=!1,Ms&&(g=Ry(i,o,d,p)),Ny(n),g}function Ny(n){Y.H=uc;var i=nt!==null&&nt.next!==null;if(ei=0,Qt=nt=_e=null,Pl=!1,cc=0,Gs=null,i)throw Error(s(300));n===null||It||(n=n.dependencies,n!==null&&kl(n)&&(It=!0))}function Ry(n,i,o,d){_e=n;var p=0;do{if(Ms&&(Gs=null),cc=0,Ms=!1,25<=p)throw Error(s(301));if(p+=1,Qt=nt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}Y.H=gE,g=i(o,d)}while(Ms);return g}function uC(){var n=Y.H,i=n.useState()[0];return i=typeof i.then=="function"?lc(i):i,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&(_e.flags|=1024),i}function Wf(){var n=Fl!==0;return Fl=0,n}function ep(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function tp(n){if(Pl){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Pl=!1}ei=0,Qt=nt=_e=null,Ms=!1,cc=Fl=0,Gs=null}function un(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?_e.memoizedState=Qt=n:Qt=Qt.next=n,Qt}function bt(){if(nt===null){var n=_e.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var i=Qt===null?_e.memoizedState:Qt.next;if(i!==null)Qt=i,nt=n;else{if(n===null)throw _e.alternate===null?Error(s(467)):Error(s(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Qt===null?_e.memoizedState=Qt=n:Qt=Qt.next=n}return Qt}function Vl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lc(n){var i=cc;return cc+=1,Gs===null&&(Gs=[]),n=wy(Gs,n,i),i=_e,(Qt===null?i.memoizedState:Qt.next)===null&&(i=i.alternate,Y.H=i===null||i.memoizedState===null?hE:pp),n}function ql(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return lc(n);if(n.$$typeof===O)return tn(n)}throw Error(s(438,String(n)))}function np(n){var i=null,o=_e.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var d=_e.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Vl(),_e.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),d=0;d<n;d++)o[d]=L;return i.index++,o}function ti(n,i){return typeof i=="function"?i(n):i}function Kl(n){var i=bt();return ap(i,nt,n)}function ap(n,i,o){var d=n.queue;if(d===null)throw Error(s(311));d.lastRenderedReducer=o;var p=n.baseQueue,g=d.pending;if(g!==null){if(p!==null){var v=p.next;p.next=g.next,g.next=v}i.baseQueue=p=g,d.pending=null}if(g=n.baseState,p===null)n.memoizedState=g;else{i=p.next;var Q=v=null,D=null,U=i,W=!1;do{var ie=U.lane&-536870913;if(ie!==U.lane?(He&ie)===ie:(ei&ie)===ie){var P=U.revertLane;if(P===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),ie===Ns&&(W=!0);else if((ei&P)===P){U=U.next,P===Ns&&(W=!0);continue}else ie={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(Q=D=ie,v=g):D=D.next=ie,_e.lanes|=P,Li|=P;ie=U.action,kr&&o(g,ie),g=U.hasEagerState?U.eagerState:o(g,ie)}else P={lane:ie,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(Q=D=P,v=g):D=D.next=P,_e.lanes|=ie,Li|=ie;U=U.next}while(U!==null&&U!==i);if(D===null?v=g:D.next=Q,!_n(g,n.memoizedState)&&(It=!0,W&&(o=Rs,o!==null)))throw o;n.memoizedState=g,n.baseState=v,n.baseQueue=D,d.lastRenderedState=g}return p===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function ip(n){var i=bt(),o=i.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=n;var d=o.dispatch,p=o.pending,g=i.memoizedState;if(p!==null){o.pending=null;var v=p=p.next;do g=n(g,v.action),v=v.next;while(v!==p);_n(g,i.memoizedState)||(It=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),o.lastRenderedState=g}return[g,d]}function Dy(n,i,o){var d=_e,p=bt(),g=Ue;if(g){if(o===void 0)throw Error(s(407));o=o()}else o=i();var v=!_n((nt||p).memoizedState,o);if(v&&(p.memoizedState=o,It=!0),p=p.queue,op(My.bind(null,d,p,n),[n]),p.getSnapshot!==i||v||Qt!==null&&Qt.memoizedState.tag&1){if(d.flags|=2048,Ys(9,{destroy:void 0},ky.bind(null,d,p,o,i),null),ot===null)throw Error(s(349));g||(ei&127)!==0||Ty(d,i,o)}return o}function Ty(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=_e.updateQueue,i===null?(i=Vl(),_e.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function ky(n,i,o,d){i.value=o,i.getSnapshot=d,Gy(i)&&Yy(n)}function My(n,i,o){return o(function(){Gy(i)&&Yy(n)})}function Gy(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!_n(n,o)}catch{return!0}}function Yy(n){var i=Ir(n,2);i!==null&&vn(i,n,2)}function rp(n){var i=un();if(typeof n=="function"){var o=n;if(n=o(),kr){Oi(!0);try{o()}finally{Oi(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:n},i}function Hy(n,i,o,d){return n.baseState=o,ap(n,nt,typeof d=="function"?d:ti)}function fC(n,i,o,d,p){if(Xl(n))throw Error(s(485));if(n=i.action,n!==null){var g={payload:p,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){g.listeners.push(v)}};Y.T!==null?o(!0):g.isTransition=!1,d(g),o=i.pending,o===null?(g.next=i.pending=g,zy(i,g)):(g.next=o.next,i.pending=o.next=g)}}function zy(n,i){var o=i.action,d=i.payload,p=n.state;if(i.isTransition){var g=Y.T,v={};Y.T=v;try{var Q=o(p,d),D=Y.S;D!==null&&D(v,Q),$y(n,i,Q)}catch(U){sp(n,i,U)}finally{g!==null&&v.types!==null&&(g.types=v.types),Y.T=g}}else try{g=o(p,d),$y(n,i,g)}catch(U){sp(n,i,U)}}function $y(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){Uy(n,i,d)},function(d){return sp(n,i,d)}):Uy(n,i,o)}function Uy(n,i,o){i.status="fulfilled",i.value=o,Ly(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,zy(n,o)))}function sp(n,i,o){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=o,Ly(i),i=i.next;while(i!==d)}n.action=null}function Ly(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Py(n,i){return i}function Fy(n,i){if(Ue){var o=ot.formState;if(o!==null){e:{var d=_e;if(Ue){if(lt){t:{for(var p=lt,g=na;p.nodeType!==8;){if(!g){p=null;break t}if(p=ia(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){lt=ia(p.nextSibling),d=p.data==="F!";break e}}Ti(d)}d=!1}d&&(i=o[0])}}return o=un(),o.memoizedState=o.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Py,lastRenderedState:i},o.queue=d,o=uE.bind(null,_e,d),d.dispatch=o,d=rp(!1),g=fp.bind(null,_e,!1,d.queue),d=un(),p={state:i,dispatch:null,action:n,pending:null},d.queue=p,o=fC.bind(null,_e,p,g,o),p.dispatch=o,d.memoizedState=n,[i,o,!1]}function Vy(n){var i=bt();return qy(i,nt,n)}function qy(n,i,o){if(i=ap(n,i,Py)[0],n=Kl(ti)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=lc(i)}catch(v){throw v===Ds?Yl:v}else d=i;i=bt();var p=i.queue,g=p.dispatch;return o!==i.memoizedState&&(_e.flags|=2048,Ys(9,{destroy:void 0},pC.bind(null,p,o),null)),[d,g,n]}function pC(n,i){n.action=i}function Ky(n){var i=bt(),o=nt;if(o!==null)return qy(i,o,n);bt(),i=i.memoizedState,o=bt();var d=o.queue.dispatch;return o.memoizedState=n,[i,d,!1]}function Ys(n,i,o,d){return n={tag:n,create:o,deps:d,inst:i,next:null},i=_e.updateQueue,i===null&&(i=Vl(),_e.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(d=o.next,o.next=n,n.next=d,i.lastEffect=n),n}function Jy(){return bt().memoizedState}function Jl(n,i,o,d){var p=un();_e.flags|=n,p.memoizedState=Ys(1|i,{destroy:void 0},o,d===void 0?null:d)}function Zl(n,i,o,d){var p=bt();d=d===void 0?null:d;var g=p.memoizedState.inst;nt!==null&&d!==null&&Zf(d,nt.memoizedState.deps)?p.memoizedState=Ys(i,g,o,d):(_e.flags|=n,p.memoizedState=Ys(1|i,g,o,d))}function Zy(n,i){Jl(8390656,8,n,i)}function op(n,i){Zl(2048,8,n,i)}function hC(n){_e.flags|=4;var i=_e.updateQueue;if(i===null)i=Vl(),_e.updateQueue=i,i.events=[n];else{var o=i.events;o===null?i.events=[n]:o.push(n)}}function Xy(n){var i=bt().memoizedState;return hC({ref:i,nextImpl:n}),function(){if((Je&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function Wy(n,i){return Zl(4,2,n,i)}function eE(n,i){return Zl(4,4,n,i)}function tE(n,i){if(typeof i=="function"){n=n();var o=i(n);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function nE(n,i,o){o=o!=null?o.concat([n]):null,Zl(4,4,tE.bind(null,i,n),o)}function cp(){}function aE(n,i){var o=bt();i=i===void 0?null:i;var d=o.memoizedState;return i!==null&&Zf(i,d[1])?d[0]:(o.memoizedState=[n,i],n)}function iE(n,i){var o=bt();i=i===void 0?null:i;var d=o.memoizedState;if(i!==null&&Zf(i,d[1]))return d[0];if(d=n(),kr){Oi(!0);try{n()}finally{Oi(!1)}}return o.memoizedState=[d,i],d}function lp(n,i,o){return o===void 0||(ei&1073741824)!==0&&(He&261930)===0?n.memoizedState=i:(n.memoizedState=o,n=rB(),_e.lanes|=n,Li|=n,o)}function rE(n,i,o,d){return _n(o,i)?o:ks.current!==null?(n=lp(n,o,d),_n(n,i)||(It=!0),n):(ei&42)===0||(ei&1073741824)!==0&&(He&261930)===0?(It=!0,n.memoizedState=o):(n=rB(),_e.lanes|=n,Li|=n,i)}function sE(n,i,o,d,p){var g=V.p;V.p=g!==0&&8>g?g:8;var v=Y.T,Q={};Y.T=Q,fp(n,!1,i,o);try{var D=p(),U=Y.S;if(U!==null&&U(Q,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var W=lC(D,d);dc(n,i,W,Mn(n))}else dc(n,i,d,Mn(n))}catch(ie){dc(n,i,{then:function(){},status:"rejected",reason:ie},Mn())}finally{V.p=g,v!==null&&Q.types!==null&&(v.types=Q.types),Y.T=v}}function gC(){}function dp(n,i,o,d){if(n.tag!==5)throw Error(s(476));var p=oE(n).queue;sE(n,p,i,te,o===null?gC:function(){return cE(n),o(d)})}function oE(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:te},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:o},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function cE(n){var i=oE(n);i.next===null&&(i=n.alternate.memoizedState),dc(n,i.next.queue,{},Mn())}function up(){return tn(Ic)}function lE(){return bt().memoizedState}function dE(){return bt().memoizedState}function AC(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=Mn();n=Gi(o);var d=Yi(i,n,o);d!==null&&(vn(d,i,o),rc(d,i,o)),i={cache:Hf()},n.payload=i;return}i=i.return}}function mC(n,i,o){var d=Mn();o={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Xl(n)?fE(i,o):(o=Sf(n,i,o,d),o!==null&&(vn(o,n,d),pE(o,i,d)))}function uE(n,i,o){var d=Mn();dc(n,i,o,d)}function dc(n,i,o,d){var p={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Xl(n))fE(i,p);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var v=i.lastRenderedState,Q=g(v,o);if(p.hasEagerState=!0,p.eagerState=Q,_n(Q,v))return Nl(n,i,p,0),ot===null&&_l(),!1}catch{}finally{}if(o=Sf(n,i,p,d),o!==null)return vn(o,n,d),pE(o,i,d),!0}return!1}function fp(n,i,o,d){if(d={lane:2,revertLane:Lp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Xl(n)){if(i)throw Error(s(479))}else i=Sf(n,o,d,2),i!==null&&vn(i,n,2)}function Xl(n){var i=n.alternate;return n===_e||i!==null&&i===_e}function fE(n,i){Ms=Pl=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function pE(n,i,o){if((o&4194048)!==0){var d=i.lanes;d&=n.pendingLanes,o|=d,i.lanes=o,ym(n,o)}}var uc={readContext:tn,use:ql,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};uc.useEffectEvent=yt;var hE={readContext:tn,use:ql,useCallback:function(n,i){return un().memoizedState=[n,i===void 0?null:i],n},useContext:tn,useEffect:Zy,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,Jl(4194308,4,tE.bind(null,i,n),o)},useLayoutEffect:function(n,i){return Jl(4194308,4,n,i)},useInsertionEffect:function(n,i){Jl(4,2,n,i)},useMemo:function(n,i){var o=un();i=i===void 0?null:i;var d=n();if(kr){Oi(!0);try{n()}finally{Oi(!1)}}return o.memoizedState=[d,i],d},useReducer:function(n,i,o){var d=un();if(o!==void 0){var p=o(i);if(kr){Oi(!0);try{o(i)}finally{Oi(!1)}}}else p=i;return d.memoizedState=d.baseState=p,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:p},d.queue=n,n=n.dispatch=mC.bind(null,_e,n),[d.memoizedState,n]},useRef:function(n){var i=un();return n={current:n},i.memoizedState=n},useState:function(n){n=rp(n);var i=n.queue,o=uE.bind(null,_e,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:cp,useDeferredValue:function(n,i){var o=un();return lp(o,n,i)},useTransition:function(){var n=rp(!1);return n=sE.bind(null,_e,n.queue,!0,!1),un().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var d=_e,p=un();if(Ue){if(o===void 0)throw Error(s(407));o=o()}else{if(o=i(),ot===null)throw Error(s(349));(He&127)!==0||Ty(d,i,o)}p.memoizedState=o;var g={value:o,getSnapshot:i};return p.queue=g,Zy(My.bind(null,d,g,n),[n]),d.flags|=2048,Ys(9,{destroy:void 0},ky.bind(null,d,g,o,i),null),o},useId:function(){var n=un(),i=ot.identifierPrefix;if(Ue){var o=Qa,d=ja;o=(d&~(1<<32-On(d)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Fl++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=dC++,i="_"+i+"r_"+o.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:up,useFormState:Fy,useActionState:Fy,useOptimistic:function(n){var i=un();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=fp.bind(null,_e,!0,o),o.dispatch=i,[n,i]},useMemoCache:np,useCacheRefresh:function(){return un().memoizedState=AC.bind(null,_e)},useEffectEvent:function(n){var i=un(),o={impl:n};return i.memoizedState=o,function(){if((Je&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},pp={readContext:tn,use:ql,useCallback:aE,useContext:tn,useEffect:op,useImperativeHandle:nE,useInsertionEffect:Wy,useLayoutEffect:eE,useMemo:iE,useReducer:Kl,useRef:Jy,useState:function(){return Kl(ti)},useDebugValue:cp,useDeferredValue:function(n,i){var o=bt();return rE(o,nt.memoizedState,n,i)},useTransition:function(){var n=Kl(ti)[0],i=bt().memoizedState;return[typeof n=="boolean"?n:lc(n),i]},useSyncExternalStore:Dy,useId:lE,useHostTransitionStatus:up,useFormState:Vy,useActionState:Vy,useOptimistic:function(n,i){var o=bt();return Hy(o,nt,n,i)},useMemoCache:np,useCacheRefresh:dE};pp.useEffectEvent=Xy;var gE={readContext:tn,use:ql,useCallback:aE,useContext:tn,useEffect:op,useImperativeHandle:nE,useInsertionEffect:Wy,useLayoutEffect:eE,useMemo:iE,useReducer:ip,useRef:Jy,useState:function(){return ip(ti)},useDebugValue:cp,useDeferredValue:function(n,i){var o=bt();return nt===null?lp(o,n,i):rE(o,nt.memoizedState,n,i)},useTransition:function(){var n=ip(ti)[0],i=bt().memoizedState;return[typeof n=="boolean"?n:lc(n),i]},useSyncExternalStore:Dy,useId:lE,useHostTransitionStatus:up,useFormState:Ky,useActionState:Ky,useOptimistic:function(n,i){var o=bt();return nt!==null?Hy(o,nt,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:np,useCacheRefresh:dE};gE.useEffectEvent=Xy;function hp(n,i,o,d){i=n.memoizedState,o=o(d,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var gp={enqueueSetState:function(n,i,o){n=n._reactInternals;var d=Mn(),p=Gi(d);p.payload=i,o!=null&&(p.callback=o),i=Yi(n,p,d),i!==null&&(vn(i,n,d),rc(i,n,d))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var d=Mn(),p=Gi(d);p.tag=1,p.payload=i,o!=null&&(p.callback=o),i=Yi(n,p,d),i!==null&&(vn(i,n,d),rc(i,n,d))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=Mn(),d=Gi(o);d.tag=2,i!=null&&(d.callback=i),i=Yi(n,d,o),i!==null&&(vn(i,n,o),rc(i,n,o))}};function AE(n,i,o,d,p,g,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,g,v):i.prototype&&i.prototype.isPureReactComponent?!Zo(o,d)||!Zo(p,g):!0}function mE(n,i,o,d){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,d),i.state!==n&&gp.enqueueReplaceState(i,i.state,null)}function Mr(n,i){var o=i;if("ref"in i){o={};for(var d in i)d!=="ref"&&(o[d]=i[d])}if(n=n.defaultProps){o===i&&(o=m({},o));for(var p in n)o[p]===void 0&&(o[p]=n[p])}return o}function yE(n){Ol(n)}function EE(n){console.error(n)}function BE(n){Ol(n)}function Wl(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(d){setTimeout(function(){throw d})}}function vE(n,i,o){try{var d=n.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Ap(n,i,o){return o=Gi(o),o.tag=3,o.payload={element:null},o.callback=function(){Wl(n,i)},o}function bE(n){return n=Gi(n),n.tag=3,n}function wE(n,i,o,d){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var g=d.value;n.payload=function(){return p(g)},n.callback=function(){vE(i,o,d)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){vE(i,o,d),typeof p!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var Q=d.stack;this.componentDidCatch(d.value,{componentStack:Q!==null?Q:""})})}function yC(n,i,o,d,p){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=o.alternate,i!==null&&_s(i,o,p,!0),o=Rn.current,o!==null){switch(o.tag){case 31:case 13:return aa===null?ud():o.alternate===null&&Et===0&&(Et=3),o.flags&=-257,o.flags|=65536,o.lanes=p,d===Hl?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([d]):i.add(d),zp(n,d,p)),!1;case 22:return o.flags|=65536,d===Hl?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([d]):o.add(d)),zp(n,d,p)),!1}throw Error(s(435,o.tag))}return zp(n,d,p),ud(),!1}if(Ue)return i=Rn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,d!==Tf&&(n=Error(s(422),{cause:d}),ec(Wn(n,o)))):(d!==Tf&&(i=Error(s(423),{cause:d}),ec(Wn(i,o))),n=n.current.alternate,n.flags|=65536,p&=-p,n.lanes|=p,d=Wn(d,o),p=Ap(n.stateNode,d,p),Ff(n,p),Et!==4&&(Et=2)),!1;var g=Error(s(520),{cause:d});if(g=Wn(g,o),Ec===null?Ec=[g]:Ec.push(g),Et!==4&&(Et=2),i===null)return!0;d=Wn(d,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=p&-p,o.lanes|=n,n=Ap(o.stateNode,d,n),Ff(o,n),!1;case 1:if(i=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Pi===null||!Pi.has(g))))return o.flags|=65536,p&=-p,o.lanes|=p,p=bE(p),wE(p,n,o,d),Ff(o,p),!1}o=o.return}while(o!==null);return!1}var mp=Error(s(461)),It=!1;function nn(n,i,o,d){i.child=n===null?Iy(i,null,o,d):Tr(i,n.child,o,d)}function xE(n,i,o,d,p){o=o.render;var g=i.ref;if("ref"in d){var v={};for(var Q in d)Q!=="ref"&&(v[Q]=d[Q])}else v=d;return _r(i),d=Xf(n,i,o,v,g,p),Q=Wf(),n!==null&&!It?(ep(n,i,p),ni(n,i,p)):(Ue&&Q&&Rf(i),i.flags|=1,nn(n,i,d,p),i.child)}function jE(n,i,o,d,p){if(n===null){var g=o.type;return typeof g=="function"&&!Of(g)&&g.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=g,QE(n,i,g,d,p)):(n=Dl(o.type,null,d,i,i.mode,p),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!jp(n,p)){var v=g.memoizedProps;if(o=o.compare,o=o!==null?o:Zo,o(v,d)&&n.ref===i.ref)return ni(n,i,p)}return i.flags|=1,n=Ja(g,d),n.ref=i.ref,n.return=i,i.child=n}function QE(n,i,o,d,p){if(n!==null){var g=n.memoizedProps;if(Zo(g,d)&&n.ref===i.ref)if(It=!1,i.pendingProps=d=g,jp(n,p))(n.flags&131072)!==0&&(It=!0);else return i.lanes=n.lanes,ni(n,i,p)}return yp(n,i,o,d,p)}function IE(n,i,o,d){var p=d.children,g=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,n!==null){for(d=i.child=n.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~g}else d=0,i.child=null;return CE(n,i,g,o,d)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Gl(i,g!==null?g.cachePool:null),g!==null?Oy(i,g):qf(),_y(i);else return d=i.lanes=536870912,CE(n,i,g!==null?g.baseLanes|o:o,o,d)}else g!==null?(Gl(i,g.cachePool),Oy(i,g),zi(),i.memoizedState=null):(n!==null&&Gl(i,null),qf(),zi());return nn(n,i,p,o),i.child}function fc(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function CE(n,i,o,d,p){var g=$f();return g=g===null?null:{parent:jt._currentValue,pool:g},i.memoizedState={baseLanes:o,cachePool:g},n!==null&&Gl(i,null),qf(),_y(i),n!==null&&_s(n,i,d,!0),i.childLanes=p,null}function ed(n,i){return i=nd({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function SE(n,i,o){return Tr(i,n.child,null,o),n=ed(i,i.pendingProps),n.flags|=2,Dn(i),i.memoizedState=null,n}function EC(n,i,o){var d=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Ue){if(d.mode==="hidden")return n=ed(i,d),i.lanes=536870912,fc(null,n);if(Jf(i),(n=lt)?(n=zB(n,na),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:ja,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},o=fy(n),o.return=i,i.child=o,en=i,lt=null)):n=null,n===null)throw Ti(i);return i.lanes=536870912,null}return ed(i,d)}var g=n.memoizedState;if(g!==null){var v=g.dehydrated;if(Jf(i),p)if(i.flags&256)i.flags&=-257,i=SE(n,i,o);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(s(558));else if(It||_s(n,i,o,!1),p=(o&n.childLanes)!==0,It||p){if(d=ot,d!==null&&(v=Em(d,o),v!==0&&v!==g.retryLane))throw g.retryLane=v,Ir(n,v),vn(d,n,v),mp;ud(),i=SE(n,i,o)}else n=g.treeContext,lt=ia(v.nextSibling),en=i,Ue=!0,Di=null,na=!1,n!==null&&gy(i,n),i=ed(i,d),i.flags|=4096;return i}return n=Ja(n.child,{mode:d.mode,children:d.children}),n.ref=i.ref,i.child=n,n.return=i,n}function td(n,i){var o=i.ref;if(o===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(n===null||n.ref!==o)&&(i.flags|=4194816)}}function yp(n,i,o,d,p){return _r(i),o=Xf(n,i,o,d,void 0,p),d=Wf(),n!==null&&!It?(ep(n,i,p),ni(n,i,p)):(Ue&&d&&Rf(i),i.flags|=1,nn(n,i,o,p),i.child)}function OE(n,i,o,d,p,g){return _r(i),i.updateQueue=null,o=Ry(i,d,o,p),Ny(n),d=Wf(),n!==null&&!It?(ep(n,i,g),ni(n,i,g)):(Ue&&d&&Rf(i),i.flags|=1,nn(n,i,o,g),i.child)}function _E(n,i,o,d,p){if(_r(i),i.stateNode===null){var g=Is,v=o.contextType;typeof v=="object"&&v!==null&&(g=tn(v)),g=new o(d,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=gp,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=d,g.state=i.memoizedState,g.refs={},Lf(i),v=o.contextType,g.context=typeof v=="object"&&v!==null?tn(v):Is,g.state=i.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(hp(i,o,v,d),g.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(v=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),v!==g.state&&gp.enqueueReplaceState(g,g.state,null),oc(i,d,g,p),sc(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),d=!0}else if(n===null){g=i.stateNode;var Q=i.memoizedProps,D=Mr(o,Q);g.props=D;var U=g.context,W=o.contextType;v=Is,typeof W=="object"&&W!==null&&(v=tn(W));var ie=o.getDerivedStateFromProps;W=typeof ie=="function"||typeof g.getSnapshotBeforeUpdate=="function",Q=i.pendingProps!==Q,W||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(Q||U!==v)&&mE(i,g,d,v),Mi=!1;var P=i.memoizedState;g.state=P,oc(i,d,g,p),sc(),U=i.memoizedState,Q||P!==U||Mi?(typeof ie=="function"&&(hp(i,o,ie,d),U=i.memoizedState),(D=Mi||AE(i,o,D,d,P,U,v))?(W||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=U),g.props=d,g.state=U,g.context=v,d=D):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{g=i.stateNode,Pf(n,i),v=i.memoizedProps,W=Mr(o,v),g.props=W,ie=i.pendingProps,P=g.context,U=o.contextType,D=Is,typeof U=="object"&&U!==null&&(D=tn(U)),Q=o.getDerivedStateFromProps,(U=typeof Q=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(v!==ie||P!==D)&&mE(i,g,d,D),Mi=!1,P=i.memoizedState,g.state=P,oc(i,d,g,p),sc();var q=i.memoizedState;v!==ie||P!==q||Mi||n!==null&&n.dependencies!==null&&kl(n.dependencies)?(typeof Q=="function"&&(hp(i,o,Q,d),q=i.memoizedState),(W=Mi||AE(i,o,W,d,P,q,D)||n!==null&&n.dependencies!==null&&kl(n.dependencies))?(U||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(d,q,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(d,q,D)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=q),g.props=d,g.state=q,g.context=D,d=W):(typeof g.componentDidUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=1024),d=!1)}return g=d,td(n,i),d=(i.flags&128)!==0,g||d?(g=i.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,n!==null&&d?(i.child=Tr(i,n.child,null,p),i.child=Tr(i,null,o,p)):nn(n,i,o,p),i.memoizedState=g.state,n=i.child):n=ni(n,i,p),n}function NE(n,i,o,d){return Sr(),i.flags|=256,nn(n,i,o,d),i.child}var Ep={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bp(n){return{baseLanes:n,cachePool:vy()}}function vp(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=kn),n}function RE(n,i,o){var d=i.pendingProps,p=!1,g=(i.flags&128)!==0,v;if((v=g)||(v=n!==null&&n.memoizedState===null?!1:(vt.current&2)!==0),v&&(p=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ue){if(p?Hi(i):zi(),(n=lt)?(n=zB(n,na),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:ja,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},o=fy(n),o.return=i,i.child=o,en=i,lt=null)):n=null,n===null)throw Ti(i);return ah(n)?i.lanes=32:i.lanes=536870912,null}var Q=d.children;return d=d.fallback,p?(zi(),p=i.mode,Q=nd({mode:"hidden",children:Q},p),d=Cr(d,p,o,null),Q.return=i,d.return=i,Q.sibling=d,i.child=Q,d=i.child,d.memoizedState=Bp(o),d.childLanes=vp(n,v,o),i.memoizedState=Ep,fc(null,d)):(Hi(i),bp(i,Q))}var D=n.memoizedState;if(D!==null&&(Q=D.dehydrated,Q!==null)){if(g)i.flags&256?(Hi(i),i.flags&=-257,i=wp(n,i,o)):i.memoizedState!==null?(zi(),i.child=n.child,i.flags|=128,i=null):(zi(),Q=d.fallback,p=i.mode,d=nd({mode:"visible",children:d.children},p),Q=Cr(Q,p,o,null),Q.flags|=2,d.return=i,Q.return=i,d.sibling=Q,i.child=d,Tr(i,n.child,null,o),d=i.child,d.memoizedState=Bp(o),d.childLanes=vp(n,v,o),i.memoizedState=Ep,i=fc(null,d));else if(Hi(i),ah(Q)){if(v=Q.nextSibling&&Q.nextSibling.dataset,v)var U=v.dgst;v=U,d=Error(s(419)),d.stack="",d.digest=v,ec({value:d,source:null,stack:null}),i=wp(n,i,o)}else if(It||_s(n,i,o,!1),v=(o&n.childLanes)!==0,It||v){if(v=ot,v!==null&&(d=Em(v,o),d!==0&&d!==D.retryLane))throw D.retryLane=d,Ir(n,d),vn(v,n,d),mp;nh(Q)||ud(),i=wp(n,i,o)}else nh(Q)?(i.flags|=192,i.child=n.child,i=null):(n=D.treeContext,lt=ia(Q.nextSibling),en=i,Ue=!0,Di=null,na=!1,n!==null&&gy(i,n),i=bp(i,d.children),i.flags|=4096);return i}return p?(zi(),Q=d.fallback,p=i.mode,D=n.child,U=D.sibling,d=Ja(D,{mode:"hidden",children:d.children}),d.subtreeFlags=D.subtreeFlags&65011712,U!==null?Q=Ja(U,Q):(Q=Cr(Q,p,o,null),Q.flags|=2),Q.return=i,d.return=i,d.sibling=Q,i.child=d,fc(null,d),d=i.child,Q=n.child.memoizedState,Q===null?Q=Bp(o):(p=Q.cachePool,p!==null?(D=jt._currentValue,p=p.parent!==D?{parent:D,pool:D}:p):p=vy(),Q={baseLanes:Q.baseLanes|o,cachePool:p}),d.memoizedState=Q,d.childLanes=vp(n,v,o),i.memoizedState=Ep,fc(n.child,d)):(Hi(i),o=n.child,n=o.sibling,o=Ja(o,{mode:"visible",children:d.children}),o.return=i,o.sibling=null,n!==null&&(v=i.deletions,v===null?(i.deletions=[n],i.flags|=16):v.push(n)),i.child=o,i.memoizedState=null,o)}function bp(n,i){return i=nd({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function nd(n,i){return n=Nn(22,n,null,i),n.lanes=0,n}function wp(n,i,o){return Tr(i,n.child,null,o),n=bp(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function DE(n,i,o){n.lanes|=i;var d=n.alternate;d!==null&&(d.lanes|=i),Gf(n.return,i,o)}function xp(n,i,o,d,p,g){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:p,treeForkCount:g}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=d,v.tail=o,v.tailMode=p,v.treeForkCount=g)}function TE(n,i,o){var d=i.pendingProps,p=d.revealOrder,g=d.tail;d=d.children;var v=vt.current,Q=(v&2)!==0;if(Q?(v=v&1|2,i.flags|=128):v&=1,se(vt,v),nn(n,i,d,o),d=Ue?Wo:0,!Q&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&DE(n,o,i);else if(n.tag===19)DE(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(p){case"forwards":for(o=i.child,p=null;o!==null;)n=o.alternate,n!==null&&Ll(n)===null&&(p=o),o=o.sibling;o=p,o===null?(p=i.child,i.child=null):(p=o.sibling,o.sibling=null),xp(i,!1,p,o,g,d);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=i.child,i.child=null;p!==null;){if(n=p.alternate,n!==null&&Ll(n)===null){i.child=p;break}n=p.sibling,p.sibling=o,o=p,p=n}xp(i,!0,o,null,g,d);break;case"together":xp(i,!1,null,null,void 0,d);break;default:i.memoizedState=null}return i.child}function ni(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Li|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(_s(n,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(s(153));if(i.child!==null){for(n=i.child,o=Ja(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=Ja(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function jp(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&kl(n)))}function BC(n,i,o){switch(i.tag){case 3:J(i,i.stateNode.containerInfo),ki(i,jt,n.memoizedState.cache),Sr();break;case 27:case 5:Ae(i);break;case 4:J(i,i.stateNode.containerInfo);break;case 10:ki(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Jf(i),null;break;case 13:var d=i.memoizedState;if(d!==null)return d.dehydrated!==null?(Hi(i),i.flags|=128,null):(o&i.child.childLanes)!==0?RE(n,i,o):(Hi(i),n=ni(n,i,o),n!==null?n.sibling:null);Hi(i);break;case 19:var p=(n.flags&128)!==0;if(d=(o&i.childLanes)!==0,d||(_s(n,i,o,!1),d=(o&i.childLanes)!==0),p){if(d)return TE(n,i,o);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),se(vt,vt.current),d)break;return null;case 22:return i.lanes=0,IE(n,i,o,i.pendingProps);case 24:ki(i,jt,n.memoizedState.cache)}return ni(n,i,o)}function kE(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)It=!0;else{if(!jp(n,o)&&(i.flags&128)===0)return It=!1,BC(n,i,o);It=(n.flags&131072)!==0}else It=!1,Ue&&(i.flags&1048576)!==0&&hy(i,Wo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var d=i.pendingProps;if(n=Rr(i.elementType),i.type=n,typeof n=="function")Of(n)?(d=Mr(n,d),i.tag=1,i=_E(null,i,n,d,o)):(i.tag=0,i=yp(null,i,n,d,o));else{if(n!=null){var p=n.$$typeof;if(p===S){i.tag=11,i=xE(null,i,n,d,o);break e}else if(p===N){i.tag=14,i=jE(null,i,n,d,o);break e}}throw i=re(n)||n,Error(s(306,i,""))}}return i;case 0:return yp(n,i,i.type,i.pendingProps,o);case 1:return d=i.type,p=Mr(d,i.pendingProps),_E(n,i,d,p,o);case 3:e:{if(J(i,i.stateNode.containerInfo),n===null)throw Error(s(387));d=i.pendingProps;var g=i.memoizedState;p=g.element,Pf(n,i),oc(i,d,null,o);var v=i.memoizedState;if(d=v.cache,ki(i,jt,d),d!==g.cache&&Yf(i,[jt],o,!0),sc(),d=v.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=NE(n,i,d,o);break e}else if(d!==p){p=Wn(Error(s(424)),i),ec(p),i=NE(n,i,d,o);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(lt=ia(n.firstChild),en=i,Ue=!0,Di=null,na=!0,o=Iy(i,null,d,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Sr(),d===p){i=ni(n,i,o);break e}nn(n,i,d,o)}i=i.child}return i;case 26:return td(n,i),n===null?(o=VB(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ue||(o=i.type,n=i.pendingProps,d=yd(Ee.current).createElement(o),d[Wt]=i,d[gn]=n,an(d,o,n),Yt(d),i.stateNode=d):i.memoizedState=VB(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Ae(i),n===null&&Ue&&(d=i.stateNode=LB(i.type,i.pendingProps,Ee.current),en=i,na=!0,p=lt,Ki(i.type)?(ih=p,lt=ia(d.firstChild)):lt=p),nn(n,i,i.pendingProps.children,o),td(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ue&&((p=d=lt)&&(d=JC(d,i.type,i.pendingProps,na),d!==null?(i.stateNode=d,en=i,lt=ia(d.firstChild),na=!1,p=!0):p=!1),p||Ti(i)),Ae(i),p=i.type,g=i.pendingProps,v=n!==null?n.memoizedProps:null,d=g.children,Wp(p,g)?d=null:v!==null&&Wp(p,v)&&(i.flags|=32),i.memoizedState!==null&&(p=Xf(n,i,uC,null,null,o),Ic._currentValue=p),td(n,i),nn(n,i,d,o),i.child;case 6:return n===null&&Ue&&((n=o=lt)&&(o=ZC(o,i.pendingProps,na),o!==null?(i.stateNode=o,en=i,lt=null,n=!0):n=!1),n||Ti(i)),null;case 13:return RE(n,i,o);case 4:return J(i,i.stateNode.containerInfo),d=i.pendingProps,n===null?i.child=Tr(i,null,d,o):nn(n,i,d,o),i.child;case 11:return xE(n,i,i.type,i.pendingProps,o);case 7:return nn(n,i,i.pendingProps,o),i.child;case 8:return nn(n,i,i.pendingProps.children,o),i.child;case 12:return nn(n,i,i.pendingProps.children,o),i.child;case 10:return d=i.pendingProps,ki(i,i.type,d.value),nn(n,i,d.children,o),i.child;case 9:return p=i.type._context,d=i.pendingProps.children,_r(i),p=tn(p),d=d(p),i.flags|=1,nn(n,i,d,o),i.child;case 14:return jE(n,i,i.type,i.pendingProps,o);case 15:return QE(n,i,i.type,i.pendingProps,o);case 19:return TE(n,i,o);case 31:return EC(n,i,o);case 22:return IE(n,i,o,i.pendingProps);case 24:return _r(i),d=tn(jt),n===null?(p=$f(),p===null&&(p=ot,g=Hf(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=o),p=g),i.memoizedState={parent:d,cache:p},Lf(i),ki(i,jt,p)):((n.lanes&o)!==0&&(Pf(n,i),oc(i,null,null,o),sc()),p=n.memoizedState,g=i.memoizedState,p.parent!==d?(p={parent:d,cache:d},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),ki(i,jt,d)):(d=g.cache,ki(i,jt,d),d!==p.cache&&Yf(i,[jt],o,!0))),nn(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function ai(n){n.flags|=4}function Qp(n,i,o,d,p){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(p&335544128)===p)if(n.stateNode.complete)n.flags|=8192;else if(lB())n.flags|=8192;else throw Dr=Hl,Uf}else n.flags&=-16777217}function ME(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!XB(i))if(lB())n.flags|=8192;else throw Dr=Hl,Uf}function ad(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Am():536870912,n.lanes|=i,Us|=i)}function pc(n,i){if(!Ue)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,d=0;if(i)for(var p=n.child;p!==null;)o|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)o|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=d,n.childLanes=o,i}function vC(n,i,o){var d=i.pendingProps;switch(Df(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(i),null;case 1:return dt(i),null;case 3:return o=i.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),Wa(jt),ne(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Os(i)?ai(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,kf())),dt(i),null;case 26:var p=i.type,g=i.memoizedState;return n===null?(ai(i),g!==null?(dt(i),ME(i,g)):(dt(i),Qp(i,p,null,d,o))):g?g!==n.memoizedState?(ai(i),dt(i),ME(i,g)):(dt(i),i.flags&=-16777217):(n=n.memoizedProps,n!==d&&ai(i),dt(i),Qp(i,p,n,d,o)),null;case 27:if(we(i),o=Ee.current,p=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==d&&ai(i);else{if(!d){if(i.stateNode===null)throw Error(s(166));return dt(i),null}n=de.current,Os(i)?Ay(i):(n=LB(p,d,o),i.stateNode=n,ai(i))}return dt(i),null;case 5:if(we(i),p=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==d&&ai(i);else{if(!d){if(i.stateNode===null)throw Error(s(166));return dt(i),null}if(g=de.current,Os(i))Ay(i);else{var v=yd(Ee.current);switch(g){case 1:g=v.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=v.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=v.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof d.is=="string"?v.createElement("select",{is:d.is}):v.createElement("select"),d.multiple?g.multiple=!0:d.size&&(g.size=d.size);break;default:g=typeof d.is=="string"?v.createElement(p,{is:d.is}):v.createElement(p)}}g[Wt]=i,g[gn]=d;e:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)g.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break e;for(;v.sibling===null;){if(v.return===null||v.return===i)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=g;e:switch(an(g,p,d),p){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&ai(i)}}return dt(i),Qp(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,o),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==d&&ai(i);else{if(typeof d!="string"&&i.stateNode===null)throw Error(s(166));if(n=Ee.current,Os(i)){if(n=i.stateNode,o=i.memoizedProps,d=null,p=en,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}n[Wt]=i,n=!!(n.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||RB(n.nodeValue,o)),n||Ti(i,!0)}else n=yd(n).createTextNode(d),n[Wt]=i,i.stateNode=n}return dt(i),null;case 31:if(o=i.memoizedState,n===null||n.memoizedState!==null){if(d=Os(i),o!==null){if(n===null){if(!d)throw Error(s(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[Wt]=i}else Sr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),n=!1}else o=kf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return i.flags&256?(Dn(i),i):(Dn(i),null);if((i.flags&128)!==0)throw Error(s(558))}return dt(i),null;case 13:if(d=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(p=Os(i),d!==null&&d.dehydrated!==null){if(n===null){if(!p)throw Error(s(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[Wt]=i}else Sr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),p=!1}else p=kf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(Dn(i),i):(Dn(i),null)}return Dn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=d!==null,n=n!==null&&n.memoizedState!==null,o&&(d=i.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==p&&(d.flags|=2048)),o!==n&&o&&(i.child.flags|=8192),ad(i,i.updateQueue),dt(i),null);case 4:return ne(),n===null&&qp(i.stateNode.containerInfo),dt(i),null;case 10:return Wa(i.type),dt(i),null;case 19:if(X(vt),d=i.memoizedState,d===null)return dt(i),null;if(p=(i.flags&128)!==0,g=d.rendering,g===null)if(p)pc(d,!1);else{if(Et!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(g=Ll(n),g!==null){for(i.flags|=128,pc(d,!1),n=g.updateQueue,i.updateQueue=n,ad(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)uy(o,n),o=o.sibling;return se(vt,vt.current&1|2),Ue&&Za(i,d.treeForkCount),i.child}n=n.sibling}d.tail!==null&&We()>cd&&(i.flags|=128,p=!0,pc(d,!1),i.lanes=4194304)}else{if(!p)if(n=Ll(g),n!==null){if(i.flags|=128,p=!0,n=n.updateQueue,i.updateQueue=n,ad(i,n),pc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Ue)return dt(i),null}else 2*We()-d.renderingStartTime>cd&&o!==536870912&&(i.flags|=128,p=!0,pc(d,!1),i.lanes=4194304);d.isBackwards?(g.sibling=i.child,i.child=g):(n=d.last,n!==null?n.sibling=g:i.child=g,d.last=g)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=We(),n.sibling=null,o=vt.current,se(vt,p?o&1|2:o&1),Ue&&Za(i,d.treeForkCount),n):(dt(i),null);case 22:case 23:return Dn(i),Kf(),d=i.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(o&536870912)!==0&&(i.flags&128)===0&&(dt(i),i.subtreeFlags&6&&(i.flags|=8192)):dt(i),o=i.updateQueue,o!==null&&ad(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==o&&(i.flags|=2048),n!==null&&X(Nr),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Wa(jt),dt(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function bC(n,i){switch(Df(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Wa(jt),ne(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return we(i),null;case 31:if(i.memoizedState!==null){if(Dn(i),i.alternate===null)throw Error(s(340));Sr()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(Dn(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(s(340));Sr()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return X(vt),null;case 4:return ne(),null;case 10:return Wa(i.type),null;case 22:case 23:return Dn(i),Kf(),n!==null&&X(Nr),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Wa(jt),null;case 25:return null;default:return null}}function GE(n,i){switch(Df(i),i.tag){case 3:Wa(jt),ne();break;case 26:case 27:case 5:we(i);break;case 4:ne();break;case 31:i.memoizedState!==null&&Dn(i);break;case 13:Dn(i);break;case 19:X(vt);break;case 10:Wa(i.type);break;case 22:case 23:Dn(i),Kf(),n!==null&&X(Nr);break;case 24:Wa(jt)}}function hc(n,i){try{var o=i.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&n)===n){d=void 0;var g=o.create,v=o.inst;d=g(),v.destroy=d}o=o.next}while(o!==p)}}catch(Q){tt(i,i.return,Q)}}function $i(n,i,o){try{var d=i.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var g=p.next;d=g;do{if((d.tag&n)===n){var v=d.inst,Q=v.destroy;if(Q!==void 0){v.destroy=void 0,p=i;var D=o,U=Q;try{U()}catch(W){tt(p,D,W)}}}d=d.next}while(d!==g)}}catch(W){tt(i,i.return,W)}}function YE(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{Sy(i,o)}catch(d){tt(n,n.return,d)}}}function HE(n,i,o){o.props=Mr(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(d){tt(n,i,d)}}function gc(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof o=="function"?n.refCleanup=o(d):o.current=d}}catch(p){tt(n,i,p)}}function Ia(n,i){var o=n.ref,d=n.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(p){tt(n,i,p)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){tt(n,i,p)}else o.current=null}function zE(n){var i=n.type,o=n.memoizedProps,d=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(p){tt(n,n.return,p)}}function Ip(n,i,o){try{var d=n.stateNode;LC(d,n.type,o,i),d[gn]=i}catch(p){tt(n,n.return,p)}}function $E(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ki(n.type)||n.tag===4}function Cp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||$E(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ki(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Sp(n,i,o){var d=n.tag;if(d===5||d===6)n=n.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(n),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=qa));else if(d!==4&&(d===27&&Ki(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(Sp(n,i,o),n=n.sibling;n!==null;)Sp(n,i,o),n=n.sibling}function id(n,i,o){var d=n.tag;if(d===5||d===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(d!==4&&(d===27&&Ki(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(id(n,i,o),n=n.sibling;n!==null;)id(n,i,o),n=n.sibling}function UE(n){var i=n.stateNode,o=n.memoizedProps;try{for(var d=n.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);an(i,d,o),i[Wt]=n,i[gn]=o}catch(g){tt(n,n.return,g)}}var ii=!1,Ct=!1,Op=!1,LE=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function wC(n,i){if(n=n.containerInfo,Zp=jd,n=ny(n),wf(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var v=0,Q=-1,D=-1,U=0,W=0,ie=n,P=null;t:for(;;){for(var q;ie!==o||p!==0&&ie.nodeType!==3||(Q=v+p),ie!==g||d!==0&&ie.nodeType!==3||(D=v+d),ie.nodeType===3&&(v+=ie.nodeValue.length),(q=ie.firstChild)!==null;)P=ie,ie=q;for(;;){if(ie===n)break t;if(P===o&&++U===p&&(Q=v),P===g&&++W===d&&(D=v),(q=ie.nextSibling)!==null)break;ie=P,P=ie.parentNode}ie=q}o=Q===-1||D===-1?null:{start:Q,end:D}}else o=null}o=o||{start:0,end:0}}else o=null;for(Xp={focusedElem:n,selectionRange:o},jd=!1,Ht=i;Ht!==null;)if(i=Ht,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Ht=n;else for(;Ht!==null;){switch(i=Ht,g=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)p=n[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,o=i,p=g.memoizedProps,g=g.memoizedState,d=o.stateNode;try{var ge=Mr(o.type,p);n=d.getSnapshotBeforeUpdate(ge,g),d.__reactInternalSnapshotBeforeUpdate=n}catch(je){tt(o,o.return,je)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)th(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":th(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=i.sibling,n!==null){n.return=i.return,Ht=n;break}Ht=i.return}}function PE(n,i,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:si(n,o),d&4&&hc(5,o);break;case 1:if(si(n,o),d&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(v){tt(o,o.return,v)}else{var p=Mr(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(p,i,n.__reactInternalSnapshotBeforeUpdate)}catch(v){tt(o,o.return,v)}}d&64&&YE(o),d&512&&gc(o,o.return);break;case 3:if(si(n,o),d&64&&(n=o.updateQueue,n!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{Sy(n,i)}catch(v){tt(o,o.return,v)}}break;case 27:i===null&&d&4&&UE(o);case 26:case 5:si(n,o),i===null&&d&4&&zE(o),d&512&&gc(o,o.return);break;case 12:si(n,o);break;case 31:si(n,o),d&4&&qE(n,o);break;case 13:si(n,o),d&4&&KE(n,o),d&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=NC.bind(null,o),XC(n,o))));break;case 22:if(d=o.memoizedState!==null||ii,!d){i=i!==null&&i.memoizedState!==null||Ct,p=ii;var g=Ct;ii=d,(Ct=i)&&!g?oi(n,o,(o.subtreeFlags&8772)!==0):si(n,o),ii=p,Ct=g}break;case 30:break;default:si(n,o)}}function FE(n){var i=n.alternate;i!==null&&(n.alternate=null,FE(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&sf(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var ft=null,mn=!1;function ri(n,i,o){for(o=o.child;o!==null;)VE(n,i,o),o=o.sibling}function VE(n,i,o){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Yo,o)}catch{}switch(o.tag){case 26:Ct||Ia(o,i),ri(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ct||Ia(o,i);var d=ft,p=mn;Ki(o.type)&&(ft=o.stateNode,mn=!1),ri(n,i,o),xc(o.stateNode),ft=d,mn=p;break;case 5:Ct||Ia(o,i);case 6:if(d=ft,p=mn,ft=null,ri(n,i,o),ft=d,mn=p,ft!==null)if(mn)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(o.stateNode)}catch(g){tt(o,i,g)}else try{ft.removeChild(o.stateNode)}catch(g){tt(o,i,g)}break;case 18:ft!==null&&(mn?(n=ft,YB(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Zs(n)):YB(ft,o.stateNode));break;case 4:d=ft,p=mn,ft=o.stateNode.containerInfo,mn=!0,ri(n,i,o),ft=d,mn=p;break;case 0:case 11:case 14:case 15:$i(2,o,i),Ct||$i(4,o,i),ri(n,i,o);break;case 1:Ct||(Ia(o,i),d=o.stateNode,typeof d.componentWillUnmount=="function"&&HE(o,i,d)),ri(n,i,o);break;case 21:ri(n,i,o);break;case 22:Ct=(d=Ct)||o.memoizedState!==null,ri(n,i,o),Ct=d;break;default:ri(n,i,o)}}function qE(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Zs(n)}catch(o){tt(i,i.return,o)}}}function KE(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Zs(n)}catch(o){tt(i,i.return,o)}}function xC(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new LE),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new LE),i;default:throw Error(s(435,n.tag))}}function rd(n,i){var o=xC(n);i.forEach(function(d){if(!o.has(d)){o.add(d);var p=RC.bind(null,n,d);d.then(p,p)}})}function yn(n,i){var o=i.deletions;if(o!==null)for(var d=0;d<o.length;d++){var p=o[d],g=n,v=i,Q=v;e:for(;Q!==null;){switch(Q.tag){case 27:if(Ki(Q.type)){ft=Q.stateNode,mn=!1;break e}break;case 5:ft=Q.stateNode,mn=!1;break e;case 3:case 4:ft=Q.stateNode.containerInfo,mn=!0;break e}Q=Q.return}if(ft===null)throw Error(s(160));VE(g,v,p),ft=null,mn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)JE(i,n),i=i.sibling}var ha=null;function JE(n,i){var o=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:yn(i,n),En(n),d&4&&($i(3,n,n.return),hc(3,n),$i(5,n,n.return));break;case 1:yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),d&64&&ii&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var p=ha;if(yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),d&4){var g=o!==null?o.memoizedState:null;if(d=n.memoizedState,o===null)if(d===null)if(n.stateNode===null){e:{d=n.type,o=n.memoizedProps,p=p.ownerDocument||p;t:switch(d){case"title":g=p.getElementsByTagName("title")[0],(!g||g[$o]||g[Wt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(d),p.head.insertBefore(g,p.querySelector("head > title"))),an(g,d,o),g[Wt]=n,Yt(g),d=g;break e;case"link":var v=JB("link","href",p).get(d+(o.href||""));if(v){for(var Q=0;Q<v.length;Q++)if(g=v[Q],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){v.splice(Q,1);break t}}g=p.createElement(d),an(g,d,o),p.head.appendChild(g);break;case"meta":if(v=JB("meta","content",p).get(d+(o.content||""))){for(Q=0;Q<v.length;Q++)if(g=v[Q],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){v.splice(Q,1);break t}}g=p.createElement(d),an(g,d,o),p.head.appendChild(g);break;default:throw Error(s(468,d))}g[Wt]=n,Yt(g),d=g}n.stateNode=d}else ZB(p,n.type,n.stateNode);else n.stateNode=KB(p,d,n.memoizedProps);else g!==d?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,d===null?ZB(p,n.type,n.stateNode):KB(p,d,n.memoizedProps)):d===null&&n.stateNode!==null&&Ip(n,n.memoizedProps,o.memoizedProps)}break;case 27:yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),o!==null&&d&4&&Ip(n,n.memoizedProps,o.memoizedProps);break;case 5:if(yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),n.flags&32){p=n.stateNode;try{Bs(p,"")}catch(ge){tt(n,n.return,ge)}}d&4&&n.stateNode!=null&&(p=n.memoizedProps,Ip(n,p,o!==null?o.memoizedProps:p)),d&1024&&(Op=!0);break;case 6:if(yn(i,n),En(n),d&4){if(n.stateNode===null)throw Error(s(162));d=n.memoizedProps,o=n.stateNode;try{o.nodeValue=d}catch(ge){tt(n,n.return,ge)}}break;case 3:if(vd=null,p=ha,ha=Ed(i.containerInfo),yn(i,n),ha=p,En(n),d&4&&o!==null&&o.memoizedState.isDehydrated)try{Zs(i.containerInfo)}catch(ge){tt(n,n.return,ge)}Op&&(Op=!1,ZE(n));break;case 4:d=ha,ha=Ed(n.stateNode.containerInfo),yn(i,n),En(n),ha=d;break;case 12:yn(i,n),En(n);break;case 31:yn(i,n),En(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,rd(n,d)));break;case 13:yn(i,n),En(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(od=We()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,rd(n,d)));break;case 22:p=n.memoizedState!==null;var D=o!==null&&o.memoizedState!==null,U=ii,W=Ct;if(ii=U||p,Ct=W||D,yn(i,n),Ct=W,ii=U,En(n),d&8192)e:for(i=n.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(o===null||D||ii||Ct||Gr(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){D=o=i;try{if(g=D.stateNode,p)v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{Q=D.stateNode;var ie=D.memoizedProps.style,P=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;Q.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ge){tt(D,D.return,ge)}}}else if(i.tag===6){if(o===null){D=i;try{D.stateNode.nodeValue=p?"":D.memoizedProps}catch(ge){tt(D,D.return,ge)}}}else if(i.tag===18){if(o===null){D=i;try{var q=D.stateNode;p?HB(q,!0):HB(D.stateNode,!1)}catch(ge){tt(D,D.return,ge)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}d&4&&(d=n.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,rd(n,o))));break;case 19:yn(i,n),En(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,rd(n,d)));break;case 30:break;case 21:break;default:yn(i,n),En(n)}}function En(n){var i=n.flags;if(i&2){try{for(var o,d=n.return;d!==null;){if($E(d)){o=d;break}d=d.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var p=o.stateNode,g=Cp(n);id(n,g,p);break;case 5:var v=o.stateNode;o.flags&32&&(Bs(v,""),o.flags&=-33);var Q=Cp(n);id(n,Q,v);break;case 3:case 4:var D=o.stateNode.containerInfo,U=Cp(n);Sp(n,U,D);break;default:throw Error(s(161))}}catch(W){tt(n,n.return,W)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function ZE(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;ZE(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function si(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)PE(n,i.alternate,i),i=i.sibling}function Gr(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:$i(4,i,i.return),Gr(i);break;case 1:Ia(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&HE(i,i.return,o),Gr(i);break;case 27:xc(i.stateNode);case 26:case 5:Ia(i,i.return),Gr(i);break;case 22:i.memoizedState===null&&Gr(i);break;case 30:Gr(i);break;default:Gr(i)}n=n.sibling}}function oi(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var d=i.alternate,p=n,g=i,v=g.flags;switch(g.tag){case 0:case 11:case 15:oi(p,g,o),hc(4,g);break;case 1:if(oi(p,g,o),d=g,p=d.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(U){tt(d,d.return,U)}if(d=g,p=d.updateQueue,p!==null){var Q=d.stateNode;try{var D=p.shared.hiddenCallbacks;if(D!==null)for(p.shared.hiddenCallbacks=null,p=0;p<D.length;p++)Cy(D[p],Q)}catch(U){tt(d,d.return,U)}}o&&v&64&&YE(g),gc(g,g.return);break;case 27:UE(g);case 26:case 5:oi(p,g,o),o&&d===null&&v&4&&zE(g),gc(g,g.return);break;case 12:oi(p,g,o);break;case 31:oi(p,g,o),o&&v&4&&qE(p,g);break;case 13:oi(p,g,o),o&&v&4&&KE(p,g);break;case 22:g.memoizedState===null&&oi(p,g,o),gc(g,g.return);break;case 30:break;default:oi(p,g,o)}i=i.sibling}}function _p(n,i){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&tc(o))}function Np(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&tc(n))}function ga(n,i,o,d){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)XE(n,i,o,d),i=i.sibling}function XE(n,i,o,d){var p=i.flags;switch(i.tag){case 0:case 11:case 15:ga(n,i,o,d),p&2048&&hc(9,i);break;case 1:ga(n,i,o,d);break;case 3:ga(n,i,o,d),p&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&tc(n)));break;case 12:if(p&2048){ga(n,i,o,d),n=i.stateNode;try{var g=i.memoizedProps,v=g.id,Q=g.onPostCommit;typeof Q=="function"&&Q(v,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(D){tt(i,i.return,D)}}else ga(n,i,o,d);break;case 31:ga(n,i,o,d);break;case 13:ga(n,i,o,d);break;case 23:break;case 22:g=i.stateNode,v=i.alternate,i.memoizedState!==null?g._visibility&2?ga(n,i,o,d):Ac(n,i):g._visibility&2?ga(n,i,o,d):(g._visibility|=2,Hs(n,i,o,d,(i.subtreeFlags&10256)!==0||!1)),p&2048&&_p(v,i);break;case 24:ga(n,i,o,d),p&2048&&Np(i.alternate,i);break;default:ga(n,i,o,d)}}function Hs(n,i,o,d,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=n,v=i,Q=o,D=d,U=v.flags;switch(v.tag){case 0:case 11:case 15:Hs(g,v,Q,D,p),hc(8,v);break;case 23:break;case 22:var W=v.stateNode;v.memoizedState!==null?W._visibility&2?Hs(g,v,Q,D,p):Ac(g,v):(W._visibility|=2,Hs(g,v,Q,D,p)),p&&U&2048&&_p(v.alternate,v);break;case 24:Hs(g,v,Q,D,p),p&&U&2048&&Np(v.alternate,v);break;default:Hs(g,v,Q,D,p)}i=i.sibling}}function Ac(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,d=i,p=d.flags;switch(d.tag){case 22:Ac(o,d),p&2048&&_p(d.alternate,d);break;case 24:Ac(o,d),p&2048&&Np(d.alternate,d);break;default:Ac(o,d)}i=i.sibling}}var mc=8192;function zs(n,i,o){if(n.subtreeFlags&mc)for(n=n.child;n!==null;)WE(n,i,o),n=n.sibling}function WE(n,i,o){switch(n.tag){case 26:zs(n,i,o),n.flags&mc&&n.memoizedState!==null&&dS(o,ha,n.memoizedState,n.memoizedProps);break;case 5:zs(n,i,o);break;case 3:case 4:var d=ha;ha=Ed(n.stateNode.containerInfo),zs(n,i,o),ha=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=mc,mc=16777216,zs(n,i,o),mc=d):zs(n,i,o));break;default:zs(n,i,o)}}function eB(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function yc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];Ht=d,nB(d,n)}eB(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)tB(n),n=n.sibling}function tB(n){switch(n.tag){case 0:case 11:case 15:yc(n),n.flags&2048&&$i(9,n,n.return);break;case 3:yc(n);break;case 12:yc(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,sd(n)):yc(n);break;default:yc(n)}}function sd(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];Ht=d,nB(d,n)}eB(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:$i(8,i,i.return),sd(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,sd(i));break;default:sd(i)}n=n.sibling}}function nB(n,i){for(;Ht!==null;){var o=Ht;switch(o.tag){case 0:case 11:case 15:$i(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:tc(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,Ht=d;else e:for(o=n;Ht!==null;){d=Ht;var p=d.sibling,g=d.return;if(FE(d),d===o){Ht=null;break e}if(p!==null){p.return=g,Ht=p;break e}Ht=g}}}var jC={getCacheForType:function(n){var i=tn(jt),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o},cacheSignal:function(){return tn(jt).controller.signal}},QC=typeof WeakMap=="function"?WeakMap:Map,Je=0,ot=null,Te=null,He=0,et=0,Tn=null,Ui=!1,$s=!1,Rp=!1,ci=0,Et=0,Li=0,Yr=0,Dp=0,kn=0,Us=0,Ec=null,Bn=null,Tp=!1,od=0,aB=0,cd=1/0,ld=null,Pi=null,Nt=0,Fi=null,Ls=null,li=0,kp=0,Mp=null,iB=null,Bc=0,Gp=null;function Mn(){return(Je&2)!==0&&He!==0?He&-He:Y.T!==null?Lp():Bm()}function rB(){if(kn===0)if((He&536870912)===0||Ue){var n=ml;ml<<=1,(ml&3932160)===0&&(ml=262144),kn=n}else kn=536870912;return n=Rn.current,n!==null&&(n.flags|=32),kn}function vn(n,i,o){(n===ot&&(et===2||et===9)||n.cancelPendingCommit!==null)&&(Ps(n,0),Vi(n,He,kn,!1)),zo(n,o),((Je&2)===0||n!==ot)&&(n===ot&&((Je&2)===0&&(Yr|=o),Et===4&&Vi(n,He,kn,!1)),Ca(n))}function sB(n,i,o){if((Je&6)!==0)throw Error(s(327));var d=!o&&(i&127)===0&&(i&n.expiredLanes)===0||Ho(n,i),p=d?SC(n,i):Hp(n,i,!0),g=d;do{if(p===0){$s&&!d&&Vi(n,i,0,!1);break}else{if(o=n.current.alternate,g&&!IC(o)){p=Hp(n,i,!1),g=!1;continue}if(p===2){if(g=i,n.errorRecoveryDisabledLanes&g)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;e:{var Q=n;p=Ec;var D=Q.current.memoizedState.isDehydrated;if(D&&(Ps(Q,v).flags|=256),v=Hp(Q,v,!1),v!==2){if(Rp&&!D){Q.errorRecoveryDisabledLanes|=g,Yr|=g,p=4;break e}g=Bn,Bn=p,g!==null&&(Bn===null?Bn=g:Bn.push.apply(Bn,g))}p=v}if(g=!1,p!==2)continue}}if(p===1){Ps(n,0),Vi(n,i,0,!0);break}e:{switch(d=n,g=p,g){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:Vi(d,i,kn,!Ui);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(p=od+300-We(),10<p)){if(Vi(d,i,kn,!Ui),El(d,0,!0)!==0)break e;li=i,d.timeoutHandle=MB(oB.bind(null,d,o,Bn,ld,Tp,i,kn,Yr,Us,Ui,g,"Throttled",-0,0),p);break e}oB(d,o,Bn,ld,Tp,i,kn,Yr,Us,Ui,g,null,-0,0)}}break}while(!0);Ca(n)}function oB(n,i,o,d,p,g,v,Q,D,U,W,ie,P,q){if(n.timeoutHandle=-1,ie=i.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qa},WE(i,g,ie);var ge=(g&62914560)===g?od-We():(g&4194048)===g?aB-We():0;if(ge=uS(ie,ge),ge!==null){li=g,n.cancelPendingCommit=ge(gB.bind(null,n,i,g,o,d,p,v,Q,D,W,ie,null,P,q)),Vi(n,g,v,!U);return}}gB(n,i,g,o,d,p,v,Q,D)}function IC(n){for(var i=n;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var p=o[d],g=p.getSnapshot;p=p.value;try{if(!_n(g(),p))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Vi(n,i,o,d){i&=~Dp,i&=~Yr,n.suspendedLanes|=i,n.pingedLanes&=~i,d&&(n.warmLanes|=i),d=n.expirationTimes;for(var p=i;0<p;){var g=31-On(p),v=1<<g;d[g]=-1,p&=~v}o!==0&&mm(n,o,i)}function dd(){return(Je&6)===0?(vc(0),!1):!0}function Yp(){if(Te!==null){if(et===0)var n=Te.return;else n=Te,Xa=Or=null,tp(n),Ts=null,ac=0,n=Te;for(;n!==null;)GE(n.alternate,n),n=n.return;Te=null}}function Ps(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,VC(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),li=0,Yp(),ot=n,Te=o=Ja(n.current,null),He=i,et=0,Tn=null,Ui=!1,$s=Ho(n,i),Rp=!1,Us=kn=Dp=Yr=Li=Et=0,Bn=Ec=null,Tp=!1,(i&8)!==0&&(i|=i&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=i;0<d;){var p=31-On(d),g=1<<p;i|=n[p],d&=~g}return ci=i,_l(),o}function cB(n,i){_e=null,Y.H=uc,i===Ds||i===Yl?(i=xy(),et=3):i===Uf?(i=xy(),et=4):et=i===mp?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Tn=i,Te===null&&(Et=1,Wl(n,Wn(i,n.current)))}function lB(){var n=Rn.current;return n===null?!0:(He&4194048)===He?aa===null:(He&62914560)===He||(He&536870912)!==0?n===aa:!1}function dB(){var n=Y.H;return Y.H=uc,n===null?uc:n}function uB(){var n=Y.A;return Y.A=jC,n}function ud(){Et=4,Ui||(He&4194048)!==He&&Rn.current!==null||($s=!0),(Li&134217727)===0&&(Yr&134217727)===0||ot===null||Vi(ot,He,kn,!1)}function Hp(n,i,o){var d=Je;Je|=2;var p=dB(),g=uB();(ot!==n||He!==i)&&(ld=null,Ps(n,i)),i=!1;var v=Et;e:do try{if(et!==0&&Te!==null){var Q=Te,D=Tn;switch(et){case 8:Yp(),v=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(i=!0);var U=et;if(et=0,Tn=null,Fs(n,Q,D,U),o&&$s){v=0;break e}break;default:U=et,et=0,Tn=null,Fs(n,Q,D,U)}}CC(),v=Et;break}catch(W){cB(n,W)}while(!0);return i&&n.shellSuspendCounter++,Xa=Or=null,Je=d,Y.H=p,Y.A=g,Te===null&&(ot=null,He=0,_l()),v}function CC(){for(;Te!==null;)fB(Te)}function SC(n,i){var o=Je;Je|=2;var d=dB(),p=uB();ot!==n||He!==i?(ld=null,cd=We()+500,Ps(n,i)):$s=Ho(n,i);e:do try{if(et!==0&&Te!==null){i=Te;var g=Tn;t:switch(et){case 1:et=0,Tn=null,Fs(n,i,g,1);break;case 2:case 9:if(by(g)){et=0,Tn=null,pB(i);break}i=function(){et!==2&&et!==9||ot!==n||(et=7),Ca(n)},g.then(i,i);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:by(g)?(et=0,Tn=null,pB(i)):(et=0,Tn=null,Fs(n,i,g,7));break;case 5:var v=null;switch(Te.tag){case 26:v=Te.memoizedState;case 5:case 27:var Q=Te;if(v?XB(v):Q.stateNode.complete){et=0,Tn=null;var D=Q.sibling;if(D!==null)Te=D;else{var U=Q.return;U!==null?(Te=U,fd(U)):Te=null}break t}}et=0,Tn=null,Fs(n,i,g,5);break;case 6:et=0,Tn=null,Fs(n,i,g,6);break;case 8:Yp(),Et=6;break e;default:throw Error(s(462))}}OC();break}catch(W){cB(n,W)}while(!0);return Xa=Or=null,Y.H=d,Y.A=p,Je=o,Te!==null?0:(ot=null,He=0,_l(),Et)}function OC(){for(;Te!==null&&!Kn();)fB(Te)}function fB(n){var i=kE(n.alternate,n,ci);n.memoizedProps=n.pendingProps,i===null?fd(n):Te=i}function pB(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=OE(o,i,i.pendingProps,i.type,void 0,He);break;case 11:i=OE(o,i,i.pendingProps,i.type.render,i.ref,He);break;case 5:tp(i);default:GE(o,i),i=Te=uy(i,ci),i=kE(o,i,ci)}n.memoizedProps=n.pendingProps,i===null?fd(n):Te=i}function Fs(n,i,o,d){Xa=Or=null,tp(i),Ts=null,ac=0;var p=i.return;try{if(yC(n,p,i,o,He)){Et=1,Wl(n,Wn(o,n.current)),Te=null;return}}catch(g){if(p!==null)throw Te=p,g;Et=1,Wl(n,Wn(o,n.current)),Te=null;return}i.flags&32768?(Ue||d===1?n=!0:$s||(He&536870912)!==0?n=!1:(Ui=n=!0,(d===2||d===9||d===3||d===6)&&(d=Rn.current,d!==null&&d.tag===13&&(d.flags|=16384))),hB(i,n)):fd(i)}function fd(n){var i=n;do{if((i.flags&32768)!==0){hB(i,Ui);return}n=i.return;var o=vC(i.alternate,i,ci);if(o!==null){Te=o;return}if(i=i.sibling,i!==null){Te=i;return}Te=i=n}while(i!==null);Et===0&&(Et=5)}function hB(n,i){do{var o=bC(n.alternate,n);if(o!==null){o.flags&=32767,Te=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){Te=n;return}Te=n=o}while(n!==null);Et=6,Te=null}function gB(n,i,o,d,p,g,v,Q,D){n.cancelPendingCommit=null;do pd();while(Nt!==0);if((Je&6)!==0)throw Error(s(327));if(i!==null){if(i===n.current)throw Error(s(177));if(g=i.lanes|i.childLanes,g|=Cf,l0(n,o,g,v,Q,D),n===ot&&(Te=ot=null,He=0),Ls=i,Fi=n,li=o,kp=g,Mp=p,iB=d,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,DC(gl,function(){return BB(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=Y.T,Y.T=null,p=V.p,V.p=2,v=Je,Je|=4;try{wC(n,i,o)}finally{Je=v,V.p=p,Y.T=d}}Nt=1,AB(),mB(),yB()}}function AB(){if(Nt===1){Nt=0;var n=Fi,i=Ls,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null;var d=V.p;V.p=2;var p=Je;Je|=4;try{JE(i,n);var g=Xp,v=ny(n.containerInfo),Q=g.focusedElem,D=g.selectionRange;if(v!==Q&&Q&&Q.ownerDocument&&ty(Q.ownerDocument.documentElement,Q)){if(D!==null&&wf(Q)){var U=D.start,W=D.end;if(W===void 0&&(W=U),"selectionStart"in Q)Q.selectionStart=U,Q.selectionEnd=Math.min(W,Q.value.length);else{var ie=Q.ownerDocument||document,P=ie&&ie.defaultView||window;if(P.getSelection){var q=P.getSelection(),ge=Q.textContent.length,je=Math.min(D.start,ge),it=D.end===void 0?je:Math.min(D.end,ge);!q.extend&&je>it&&(v=it,it=je,je=v);var H=ey(Q,je),G=ey(Q,it);if(H&&G&&(q.rangeCount!==1||q.anchorNode!==H.node||q.anchorOffset!==H.offset||q.focusNode!==G.node||q.focusOffset!==G.offset)){var $=ie.createRange();$.setStart(H.node,H.offset),q.removeAllRanges(),je>it?(q.addRange($),q.extend(G.node,G.offset)):($.setEnd(G.node,G.offset),q.addRange($))}}}}for(ie=[],q=Q;q=q.parentNode;)q.nodeType===1&&ie.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof Q.focus=="function"&&Q.focus(),Q=0;Q<ie.length;Q++){var ae=ie[Q];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}jd=!!Zp,Xp=Zp=null}finally{Je=p,V.p=d,Y.T=o}}n.current=i,Nt=2}}function mB(){if(Nt===2){Nt=0;var n=Fi,i=Ls,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=Y.T,Y.T=null;var d=V.p;V.p=2;var p=Je;Je|=4;try{PE(n,i.alternate,i)}finally{Je=p,V.p=d,Y.T=o}}Nt=3}}function yB(){if(Nt===4||Nt===3){Nt=0,_t();var n=Fi,i=Ls,o=li,d=iB;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Nt=5:(Nt=0,Ls=Fi=null,EB(n,n.pendingLanes));var p=n.pendingLanes;if(p===0&&(Pi=null),af(o),i=i.stateNode,Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(Yo,i,void 0,(i.current.flags&128)===128)}catch{}if(d!==null){i=Y.T,p=V.p,V.p=2,Y.T=null;try{for(var g=n.onRecoverableError,v=0;v<d.length;v++){var Q=d[v];g(Q.value,{componentStack:Q.stack})}}finally{Y.T=i,V.p=p}}(li&3)!==0&&pd(),Ca(n),p=n.pendingLanes,(o&261930)!==0&&(p&42)!==0?n===Gp?Bc++:(Bc=0,Gp=n):Bc=0,vc(0)}}function EB(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,tc(i)))}function pd(){return AB(),mB(),yB(),BB()}function BB(){if(Nt!==5)return!1;var n=Fi,i=kp;kp=0;var o=af(li),d=Y.T,p=V.p;try{V.p=32>o?32:o,Y.T=null,o=Mp,Mp=null;var g=Fi,v=li;if(Nt=0,Ls=Fi=null,li=0,(Je&6)!==0)throw Error(s(331));var Q=Je;if(Je|=4,tB(g.current),XE(g,g.current,v,o),Je=Q,vc(0,!1),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(Yo,g)}catch{}return!0}finally{V.p=p,Y.T=d,EB(n,i)}}function vB(n,i,o){i=Wn(o,i),i=Ap(n.stateNode,i,2),n=Yi(n,i,2),n!==null&&(zo(n,2),Ca(n))}function tt(n,i,o){if(n.tag===3)vB(n,n,o);else for(;i!==null;){if(i.tag===3){vB(i,n,o);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Pi===null||!Pi.has(d))){n=Wn(o,n),o=bE(2),d=Yi(i,o,2),d!==null&&(wE(o,d,i,n),zo(d,2),Ca(d));break}}i=i.return}}function zp(n,i,o){var d=n.pingCache;if(d===null){d=n.pingCache=new QC;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(o)||(Rp=!0,p.add(o),n=_C.bind(null,n,i,o),i.then(n,n))}function _C(n,i,o){var d=n.pingCache;d!==null&&d.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,ot===n&&(He&o)===o&&(Et===4||Et===3&&(He&62914560)===He&&300>We()-od?(Je&2)===0&&Ps(n,0):Dp|=o,Us===He&&(Us=0)),Ca(n)}function bB(n,i){i===0&&(i=Am()),n=Ir(n,i),n!==null&&(zo(n,i),Ca(n))}function NC(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),bB(n,o)}function RC(n,i){var o=0;switch(n.tag){case 31:case 13:var d=n.stateNode,p=n.memoizedState;p!==null&&(o=p.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(s(314))}d!==null&&d.delete(i),bB(n,o)}function DC(n,i){return Xt(n,i)}var hd=null,Vs=null,$p=!1,gd=!1,Up=!1,qi=0;function Ca(n){n!==Vs&&n.next===null&&(Vs===null?hd=Vs=n:Vs=Vs.next=n),gd=!0,$p||($p=!0,kC())}function vc(n,i){if(!Up&&gd){Up=!0;do for(var o=!1,d=hd;d!==null;){if(n!==0){var p=d.pendingLanes;if(p===0)var g=0;else{var v=d.suspendedLanes,Q=d.pingedLanes;g=(1<<31-On(42|n)+1)-1,g&=p&~(v&~Q),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,QB(d,g))}else g=He,g=El(d,d===ot?g:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(g&3)===0||Ho(d,g)||(o=!0,QB(d,g));d=d.next}while(o);Up=!1}}function TC(){wB()}function wB(){gd=$p=!1;var n=0;qi!==0&&FC()&&(n=qi);for(var i=We(),o=null,d=hd;d!==null;){var p=d.next,g=xB(d,i);g===0?(d.next=null,o===null?hd=p:o.next=p,p===null&&(Vs=o)):(o=d,(n!==0||(g&3)!==0)&&(gd=!0)),d=p}Nt!==0&&Nt!==5||vc(n),qi!==0&&(qi=0)}function xB(n,i){for(var o=n.suspendedLanes,d=n.pingedLanes,p=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var v=31-On(g),Q=1<<v,D=p[v];D===-1?((Q&o)===0||(Q&d)!==0)&&(p[v]=c0(Q,i)):D<=i&&(n.expiredLanes|=Q),g&=~Q}if(i=ot,o=He,o=El(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,o===0||n===i&&(et===2||et===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&Fa(d),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||Ho(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(d!==null&&Fa(d),af(o)){case 2:case 8:o=ps;break;case 32:o=gl;break;case 268435456:o=gm;break;default:o=gl}return d=jB.bind(null,n),o=Xt(o,d),n.callbackPriority=i,n.callbackNode=o,i}return d!==null&&d!==null&&Fa(d),n.callbackPriority=2,n.callbackNode=null,2}function jB(n,i){if(Nt!==0&&Nt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(pd()&&n.callbackNode!==o)return null;var d=He;return d=El(n,n===ot?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(sB(n,d,i),xB(n,We()),n.callbackNode!=null&&n.callbackNode===o?jB.bind(null,n):null)}function QB(n,i){if(pd())return null;sB(n,i,!0)}function kC(){qC(function(){(Je&6)!==0?Xt(vr,TC):wB()})}function Lp(){if(qi===0){var n=Ns;n===0&&(n=Al,Al<<=1,(Al&261888)===0&&(Al=256)),qi=n}return qi}function IB(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:wl(""+n)}function CB(n,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,n.id&&o.setAttribute("form",n.id),i.parentNode.insertBefore(o,i),n=new FormData(n),o.parentNode.removeChild(o),n}function MC(n,i,o,d,p){if(i==="submit"&&o&&o.stateNode===p){var g=IB((p[gn]||null).action),v=d.submitter;v&&(i=(i=v[gn]||null)?IB(i.formAction):v.getAttribute("formAction"),i!==null&&(g=i,v=null));var Q=new Il("action","action",null,d,p);n.push({event:Q,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(qi!==0){var D=v?CB(p,v):new FormData(p);dp(o,{pending:!0,data:D,method:p.method,action:g},null,D)}}else typeof g=="function"&&(Q.preventDefault(),D=v?CB(p,v):new FormData(p),dp(o,{pending:!0,data:D,method:p.method,action:g},g,D))},currentTarget:p}]})}}for(var Pp=0;Pp<If.length;Pp++){var Fp=If[Pp],GC=Fp.toLowerCase(),YC=Fp[0].toUpperCase()+Fp.slice(1);pa(GC,"on"+YC)}pa(ry,"onAnimationEnd"),pa(sy,"onAnimationIteration"),pa(oy,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(tC,"onTransitionRun"),pa(nC,"onTransitionStart"),pa(aC,"onTransitionCancel"),pa(cy,"onTransitionEnd"),ys("onMouseEnter",["mouseout","mouseover"]),ys("onMouseLeave",["mouseout","mouseover"]),ys("onPointerEnter",["pointerout","pointerover"]),ys("onPointerLeave",["pointerout","pointerover"]),wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wr("onBeforeInput",["compositionend","keypress","textInput","paste"]),wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bc="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(" "),HC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bc));function SB(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var d=n[o],p=d.event;d=d.listeners;e:{var g=void 0;if(i)for(var v=d.length-1;0<=v;v--){var Q=d[v],D=Q.instance,U=Q.currentTarget;if(Q=Q.listener,D!==g&&p.isPropagationStopped())break e;g=Q,p.currentTarget=U;try{g(p)}catch(W){Ol(W)}p.currentTarget=null,g=D}else for(v=0;v<d.length;v++){if(Q=d[v],D=Q.instance,U=Q.currentTarget,Q=Q.listener,D!==g&&p.isPropagationStopped())break e;g=Q,p.currentTarget=U;try{g(p)}catch(W){Ol(W)}p.currentTarget=null,g=D}}}}function ke(n,i){var o=i[rf];o===void 0&&(o=i[rf]=new Set);var d=n+"__bubble";o.has(d)||(OB(i,n,2,!1),o.add(d))}function Vp(n,i,o){var d=0;i&&(d|=4),OB(o,n,d,i)}var Ad="_reactListening"+Math.random().toString(36).slice(2);function qp(n){if(!n[Ad]){n[Ad]=!0,wm.forEach(function(o){o!=="selectionchange"&&(HC.has(o)||Vp(o,!1,n),Vp(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ad]||(i[Ad]=!0,Vp("selectionchange",!1,i))}}function OB(n,i,o,d){switch(rv(i)){case 2:var p=hS;break;case 8:p=gS;break;default:p=lh}o=p.bind(null,i,o,n),p=void 0,!hf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?n.addEventListener(i,o,{capture:!0,passive:p}):n.addEventListener(i,o,!0):p!==void 0?n.addEventListener(i,o,{passive:p}):n.addEventListener(i,o,!1)}function Kp(n,i,o,d,p){var g=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var v=d.tag;if(v===3||v===4){var Q=d.stateNode.containerInfo;if(Q===p)break;if(v===4)for(v=d.return;v!==null;){var D=v.tag;if((D===3||D===4)&&v.stateNode.containerInfo===p)return;v=v.return}for(;Q!==null;){if(v=gs(Q),v===null)return;if(D=v.tag,D===5||D===6||D===26||D===27){d=g=v;continue e}Q=Q.parentNode}}d=d.return}Tm(function(){var U=g,W=ff(o),ie=[];e:{var P=ly.get(n);if(P!==void 0){var q=Il,ge=n;switch(n){case"keypress":if(jl(o)===0)break e;case"keydown":case"keyup":q=R0;break;case"focusin":ge="focus",q=yf;break;case"focusout":ge="blur",q=yf;break;case"beforeblur":case"afterblur":q=yf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Gm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=v0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=k0;break;case ry:case sy:case oy:q=x0;break;case cy:q=G0;break;case"scroll":case"scrollend":q=E0;break;case"wheel":q=H0;break;case"copy":case"cut":case"paste":q=Q0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Hm;break;case"toggle":case"beforetoggle":q=$0}var je=(i&4)!==0,it=!je&&(n==="scroll"||n==="scrollend"),H=je?P!==null?P+"Capture":null:P;je=[];for(var G=U,$;G!==null;){var ae=G;if($=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||$===null||H===null||(ae=Lo(G,H),ae!=null&&je.push(wc(G,ae,$))),it)break;G=G.return}0<je.length&&(P=new q(P,ge,null,o,W),ie.push({event:P,listeners:je}))}}if((i&7)===0){e:{if(P=n==="mouseover"||n==="pointerover",q=n==="mouseout"||n==="pointerout",P&&o!==uf&&(ge=o.relatedTarget||o.fromElement)&&(gs(ge)||ge[hs]))break e;if((q||P)&&(P=W.window===W?W:(P=W.ownerDocument)?P.defaultView||P.parentWindow:window,q?(ge=o.relatedTarget||o.toElement,q=U,ge=ge?gs(ge):null,ge!==null&&(it=l(ge),je=ge.tag,ge!==it||je!==5&&je!==27&&je!==6)&&(ge=null)):(q=null,ge=U),q!==ge)){if(je=Gm,ae="onMouseLeave",H="onMouseEnter",G="mouse",(n==="pointerout"||n==="pointerover")&&(je=Hm,ae="onPointerLeave",H="onPointerEnter",G="pointer"),it=q==null?P:Uo(q),$=ge==null?P:Uo(ge),P=new je(ae,G+"leave",q,o,W),P.target=it,P.relatedTarget=$,ae=null,gs(W)===U&&(je=new je(H,G+"enter",ge,o,W),je.target=$,je.relatedTarget=it,ae=je),it=ae,q&&ge)t:{for(je=zC,H=q,G=ge,$=0,ae=H;ae;ae=je(ae))$++;ae=0;for(var ve=G;ve;ve=je(ve))ae++;for(;0<$-ae;)H=je(H),$--;for(;0<ae-$;)G=je(G),ae--;for(;$--;){if(H===G||G!==null&&H===G.alternate){je=H;break t}H=je(H),G=je(G)}je=null}else je=null;q!==null&&_B(ie,P,q,je,!1),ge!==null&&it!==null&&_B(ie,it,ge,je,!0)}}e:{if(P=U?Uo(U):window,q=P.nodeName&&P.nodeName.toLowerCase(),q==="select"||q==="input"&&P.type==="file")var qe=qm;else if(Fm(P))if(Km)qe=X0;else{qe=J0;var me=K0}else q=P.nodeName,!q||q.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?U&&df(U.elementType)&&(qe=qm):qe=Z0;if(qe&&(qe=qe(n,U))){Vm(ie,qe,o,W);break e}me&&me(n,P,U),n==="focusout"&&U&&P.type==="number"&&U.memoizedProps.value!=null&&lf(P,"number",P.value)}switch(me=U?Uo(U):window,n){case"focusin":(Fm(me)||me.contentEditable==="true")&&(xs=me,xf=U,Xo=null);break;case"focusout":Xo=xf=xs=null;break;case"mousedown":jf=!0;break;case"contextmenu":case"mouseup":case"dragend":jf=!1,ay(ie,o,W);break;case"selectionchange":if(eC)break;case"keydown":case"keyup":ay(ie,o,W)}var Re;if(Bf)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else ws?Lm(n,o)&&(ze="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(ze="onCompositionStart");ze&&(zm&&o.locale!=="ko"&&(ws||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&ws&&(Re=km()):(Ni=W,gf="value"in Ni?Ni.value:Ni.textContent,ws=!0)),me=md(U,ze),0<me.length&&(ze=new Ym(ze,n,null,o,W),ie.push({event:ze,listeners:me}),Re?ze.data=Re:(Re=Pm(o),Re!==null&&(ze.data=Re)))),(Re=L0?P0(n,o):F0(n,o))&&(ze=md(U,"onBeforeInput"),0<ze.length&&(me=new Ym("onBeforeInput","beforeinput",null,o,W),ie.push({event:me,listeners:ze}),me.data=Re)),MC(ie,n,U,o,W)}SB(ie,i)})}function wc(n,i,o){return{instance:n,listener:i,currentTarget:o}}function md(n,i){for(var o=i+"Capture",d=[];n!==null;){var p=n,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=Lo(n,o),p!=null&&d.unshift(wc(n,p,g)),p=Lo(n,i),p!=null&&d.push(wc(n,p,g))),n.tag===3)return d;n=n.return}return[]}function zC(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function _B(n,i,o,d,p){for(var g=i._reactName,v=[];o!==null&&o!==d;){var Q=o,D=Q.alternate,U=Q.stateNode;if(Q=Q.tag,D!==null&&D===d)break;Q!==5&&Q!==26&&Q!==27||U===null||(D=U,p?(U=Lo(o,g),U!=null&&v.unshift(wc(o,U,D))):p||(U=Lo(o,g),U!=null&&v.push(wc(o,U,D)))),o=o.return}v.length!==0&&n.push({event:i,listeners:v})}var $C=/\r\n?/g,UC=/\u0000|\uFFFD/g;function NB(n){return(typeof n=="string"?n:""+n).replace($C,`
|
|
49
|
+
`).replace(UC,"")}function RB(n,i){return i=NB(i),NB(n)===i}function at(n,i,o,d,p,g){switch(o){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||Bs(n,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&Bs(n,""+d);break;case"className":vl(n,"class",d);break;case"tabIndex":vl(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(n,o,d);break;case"style":Rm(n,d,g);break;case"data":if(i!=="object"){vl(n,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(o);break}d=wl(""+d),n.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(o,"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}else typeof g=="function"&&(o==="formAction"?(i!=="input"&&at(n,i,"name",p.name,p,null),at(n,i,"formEncType",p.formEncType,p,null),at(n,i,"formMethod",p.formMethod,p,null),at(n,i,"formTarget",p.formTarget,p,null)):(at(n,i,"encType",p.encType,p,null),at(n,i,"method",p.method,p,null),at(n,i,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(o);break}d=wl(""+d),n.setAttribute(o,d);break;case"onClick":d!=null&&(n.onclick=qa);break;case"onScroll":d!=null&&ke("scroll",n);break;case"onScrollEnd":d!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(o=d.__html,o!=null){if(p.children!=null)throw Error(s(60));n.innerHTML=o}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}o=wl(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,""+d):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":d===!0?n.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,d):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(o,d):n.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(o):n.setAttribute(o,d);break;case"popover":ke("beforetoggle",n),ke("toggle",n),Bl(n,"popover",d);break;case"xlinkActuate":Va(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Va(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Va(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Va(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Va(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Va(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Va(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Va(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Va(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Bl(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=m0.get(o)||o,Bl(n,o,d))}}function Jp(n,i,o,d,p,g){switch(o){case"style":Rm(n,d,g);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(o=d.__html,o!=null){if(p.children!=null)throw Error(s(60));n.innerHTML=o}}break;case"children":typeof d=="string"?Bs(n,d):(typeof d=="number"||typeof d=="bigint")&&Bs(n,""+d);break;case"onScroll":d!=null&&ke("scroll",n);break;case"onScrollEnd":d!=null&&ke("scrollend",n);break;case"onClick":d!=null&&(n.onclick=qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),i=o.slice(2,p?o.length-7:void 0),g=n[gn]||null,g=g!=null?g[o]:null,typeof g=="function"&&n.removeEventListener(i,g,p),typeof d=="function")){typeof g!="function"&&g!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,d,p);break e}o in n?n[o]=d:d===!0?n.setAttribute(o,""):Bl(n,o,d)}}}function an(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var d=!1,p=!1,g;for(g in o)if(o.hasOwnProperty(g)){var v=o[g];if(v!=null)switch(g){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:at(n,i,g,v,o,null)}}p&&at(n,i,"srcSet",o.srcSet,o,null),d&&at(n,i,"src",o.src,o,null);return;case"input":ke("invalid",n);var Q=g=v=p=null,D=null,U=null;for(d in o)if(o.hasOwnProperty(d)){var W=o[d];if(W!=null)switch(d){case"name":p=W;break;case"type":v=W;break;case"checked":D=W;break;case"defaultChecked":U=W;break;case"value":g=W;break;case"defaultValue":Q=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,i));break;default:at(n,i,d,W,o,null)}}Sm(n,g,Q,D,U,v,p,!1);return;case"select":ke("invalid",n),d=v=g=null;for(p in o)if(o.hasOwnProperty(p)&&(Q=o[p],Q!=null))switch(p){case"value":g=Q;break;case"defaultValue":v=Q;break;case"multiple":d=Q;default:at(n,i,p,Q,o,null)}i=g,o=v,n.multiple=!!d,i!=null?Es(n,!!d,i,!1):o!=null&&Es(n,!!d,o,!0);return;case"textarea":ke("invalid",n),g=p=d=null;for(v in o)if(o.hasOwnProperty(v)&&(Q=o[v],Q!=null))switch(v){case"value":d=Q;break;case"defaultValue":p=Q;break;case"children":g=Q;break;case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(91));break;default:at(n,i,v,Q,o,null)}_m(n,d,p,g);return;case"option":for(D in o)if(o.hasOwnProperty(D)&&(d=o[D],d!=null))switch(D){case"selected":n.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:at(n,i,D,d,o,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(d=0;d<bc.length;d++)ke(bc[d],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);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 o)if(o.hasOwnProperty(U)&&(d=o[U],d!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:at(n,i,U,d,o,null)}return;default:if(df(i)){for(W in o)o.hasOwnProperty(W)&&(d=o[W],d!==void 0&&Jp(n,i,W,d,o,void 0));return}}for(Q in o)o.hasOwnProperty(Q)&&(d=o[Q],d!=null&&at(n,i,Q,d,o,null))}function LC(n,i,o,d){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,v=null,Q=null,D=null,U=null,W=null;for(q in o){var ie=o[q];if(o.hasOwnProperty(q)&&ie!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":D=ie;default:d.hasOwnProperty(q)||at(n,i,q,null,d,ie)}}for(var P in d){var q=d[P];if(ie=o[P],d.hasOwnProperty(P)&&(q!=null||ie!=null))switch(P){case"type":g=q;break;case"name":p=q;break;case"checked":U=q;break;case"defaultChecked":W=q;break;case"value":v=q;break;case"defaultValue":Q=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,i));break;default:q!==ie&&at(n,i,P,q,d,ie)}}cf(n,v,Q,D,U,W,g,p);return;case"select":q=v=Q=P=null;for(g in o)if(D=o[g],o.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":q=D;default:d.hasOwnProperty(g)||at(n,i,g,null,d,D)}for(p in d)if(g=d[p],D=o[p],d.hasOwnProperty(p)&&(g!=null||D!=null))switch(p){case"value":P=g;break;case"defaultValue":Q=g;break;case"multiple":v=g;default:g!==D&&at(n,i,p,g,d,D)}i=Q,o=v,d=q,P!=null?Es(n,!!o,P,!1):!!d!=!!o&&(i!=null?Es(n,!!o,i,!0):Es(n,!!o,o?[]:"",!1));return;case"textarea":q=P=null;for(Q in o)if(p=o[Q],o.hasOwnProperty(Q)&&p!=null&&!d.hasOwnProperty(Q))switch(Q){case"value":break;case"children":break;default:at(n,i,Q,null,d,p)}for(v in d)if(p=d[v],g=o[v],d.hasOwnProperty(v)&&(p!=null||g!=null))switch(v){case"value":P=p;break;case"defaultValue":q=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==g&&at(n,i,v,p,d,g)}Om(n,P,q);return;case"option":for(var ge in o)if(P=o[ge],o.hasOwnProperty(ge)&&P!=null&&!d.hasOwnProperty(ge))switch(ge){case"selected":n.selected=!1;break;default:at(n,i,ge,null,d,P)}for(D in d)if(P=d[D],q=o[D],d.hasOwnProperty(D)&&P!==q&&(P!=null||q!=null))switch(D){case"selected":n.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:at(n,i,D,P,d,q)}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 je in o)P=o[je],o.hasOwnProperty(je)&&P!=null&&!d.hasOwnProperty(je)&&at(n,i,je,null,d,P);for(U in d)if(P=d[U],q=o[U],d.hasOwnProperty(U)&&P!==q&&(P!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,i));break;default:at(n,i,U,P,d,q)}return;default:if(df(i)){for(var it in o)P=o[it],o.hasOwnProperty(it)&&P!==void 0&&!d.hasOwnProperty(it)&&Jp(n,i,it,void 0,d,P);for(W in d)P=d[W],q=o[W],!d.hasOwnProperty(W)||P===q||P===void 0&&q===void 0||Jp(n,i,W,P,d,q);return}}for(var H in o)P=o[H],o.hasOwnProperty(H)&&P!=null&&!d.hasOwnProperty(H)&&at(n,i,H,null,d,P);for(ie in d)P=d[ie],q=o[ie],!d.hasOwnProperty(ie)||P===q||P==null&&q==null||at(n,i,ie,P,d,q)}function DB(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PC(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,o=performance.getEntriesByType("resource"),d=0;d<o.length;d++){var p=o[d],g=p.transferSize,v=p.initiatorType,Q=p.duration;if(g&&Q&&DB(v)){for(v=0,Q=p.responseEnd,d+=1;d<o.length;d++){var D=o[d],U=D.startTime;if(U>Q)break;var W=D.transferSize,ie=D.initiatorType;W&&DB(ie)&&(D=D.responseEnd,v+=W*(D<Q?1:(Q-U)/(D-U)))}if(--d,i+=8*(g+v)/(p.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Zp=null,Xp=null;function yd(n){return n.nodeType===9?n:n.ownerDocument}function TB(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kB(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Wp(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var eh=null;function FC(){var n=window.event;return n&&n.type==="popstate"?n===eh?!1:(eh=n,!0):(eh=null,!1)}var MB=typeof setTimeout=="function"?setTimeout:void 0,VC=typeof clearTimeout=="function"?clearTimeout:void 0,GB=typeof Promise=="function"?Promise:void 0,qC=typeof queueMicrotask=="function"?queueMicrotask:typeof GB<"u"?function(n){return GB.resolve(null).then(n).catch(KC)}:MB;function KC(n){setTimeout(function(){throw n})}function Ki(n){return n==="head"}function YB(n,i){var o=i,d=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(d===0){n.removeChild(p),Zs(i);return}d--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")d++;else if(o==="html")xc(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,xc(o);for(var g=o.firstChild;g;){var v=g.nextSibling,Q=g.nodeName;g[$o]||Q==="SCRIPT"||Q==="STYLE"||Q==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=v}}else o==="body"&&xc(n.ownerDocument.body);o=p}while(o);Zs(i)}function HB(n,i){var o=n;n=0;do{var d=o.nextSibling;if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=d}while(o)}function th(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":th(o),sf(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function JC(n,i,o,d){for(;n.nodeType===1;){var p=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[$o])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==p.rel||n.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||n.getAttribute("title")!==(p.title==null?null:p.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(p.src==null?null:p.src)||n.getAttribute("type")!==(p.type==null?null:p.type)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=ia(n.nextSibling),n===null)break}return null}function ZC(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=ia(n.nextSibling),n===null))return null;return n}function zB(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=ia(n.nextSibling),n===null))return null;return n}function nh(n){return n.data==="$?"||n.data==="$~"}function ah(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function XC(n,i){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||o.readyState!=="loading")i();else{var d=function(){i(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function ia(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var ih=null;function $B(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(i===0)return ia(n.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}n=n.nextSibling}return null}function UB(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return n;i--}else o!=="/$"&&o!=="/&"||i++}n=n.previousSibling}return null}function LB(n,i,o){switch(i=yd(o),n){case"html":if(n=i.documentElement,!n)throw Error(s(452));return n;case"head":if(n=i.head,!n)throw Error(s(453));return n;case"body":if(n=i.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function xc(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);sf(n)}var ra=new Map,PB=new Set;function Ed(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var di=V.d;V.d={f:WC,r:eS,D:tS,C:nS,L:aS,m:iS,X:sS,S:rS,M:oS};function WC(){var n=di.f(),i=dd();return n||i}function eS(n){var i=As(n);i!==null&&i.tag===5&&i.type==="form"?cE(i):di.r(n)}var qs=typeof document>"u"?null:document;function FB(n,i,o){var d=qs;if(d&&typeof i=="string"&&i){var p=Zn(i);p='link[rel="'+n+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),PB.has(p)||(PB.add(p),n={rel:n,crossOrigin:o,href:i},d.querySelector(p)===null&&(i=d.createElement("link"),an(i,"link",n),Yt(i),d.head.appendChild(i)))}}function tS(n){di.D(n),FB("dns-prefetch",n,null)}function nS(n,i){di.C(n,i),FB("preconnect",n,i)}function aS(n,i,o){di.L(n,i,o);var d=qs;if(d&&n&&i){var p='link[rel="preload"][as="'+Zn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Zn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Zn(o.imageSizes)+'"]')):p+='[href="'+Zn(n)+'"]';var g=p;switch(i){case"style":g=Ks(n);break;case"script":g=Js(n)}ra.has(g)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),ra.set(g,n),d.querySelector(p)!==null||i==="style"&&d.querySelector(jc(g))||i==="script"&&d.querySelector(Qc(g))||(i=d.createElement("link"),an(i,"link",n),Yt(i),d.head.appendChild(i)))}}function iS(n,i){di.m(n,i);var o=qs;if(o&&n){var d=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+Zn(d)+'"][href="'+Zn(n)+'"]',g=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Js(n)}if(!ra.has(g)&&(n=m({rel:"modulepreload",href:n},i),ra.set(g,n),o.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Qc(g)))return}d=o.createElement("link"),an(d,"link",n),Yt(d),o.head.appendChild(d)}}}function rS(n,i,o){di.S(n,i,o);var d=qs;if(d&&n){var p=ms(d).hoistableStyles,g=Ks(n);i=i||"default";var v=p.get(g);if(!v){var Q={loading:0,preload:null};if(v=d.querySelector(jc(g)))Q.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=ra.get(g))&&rh(n,o);var D=v=d.createElement("link");Yt(D),an(D,"link",n),D._p=new Promise(function(U,W){D.onload=U,D.onerror=W}),D.addEventListener("load",function(){Q.loading|=1}),D.addEventListener("error",function(){Q.loading|=2}),Q.loading|=4,Bd(v,i,d)}v={type:"stylesheet",instance:v,count:1,state:Q},p.set(g,v)}}}function sS(n,i){di.X(n,i);var o=qs;if(o&&n){var d=ms(o).hoistableScripts,p=Js(n),g=d.get(p);g||(g=o.querySelector(Qc(p)),g||(n=m({src:n,async:!0},i),(i=ra.get(p))&&sh(n,i),g=o.createElement("script"),Yt(g),an(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(p,g))}}function oS(n,i){di.M(n,i);var o=qs;if(o&&n){var d=ms(o).hoistableScripts,p=Js(n),g=d.get(p);g||(g=o.querySelector(Qc(p)),g||(n=m({src:n,async:!0,type:"module"},i),(i=ra.get(p))&&sh(n,i),g=o.createElement("script"),Yt(g),an(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(p,g))}}function VB(n,i,o,d){var p=(p=Ee.current)?Ed(p):null;if(!p)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Ks(o.href),o=ms(p).hoistableStyles,d=o.get(i),d||(d={type:"style",instance:null,count:0,state:null},o.set(i,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ks(o.href);var g=ms(p).hoistableStyles,v=g.get(n);if(v||(p=p.ownerDocument||p,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,v),(g=p.querySelector(jc(n)))&&!g._p&&(v.instance=g,v.state.loading=5),ra.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ra.set(n,o),g||cS(p,n,o,v.state))),i&&d===null)throw Error(s(528,""));return v}if(i&&d!==null)throw Error(s(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Js(o),o=ms(p).hoistableScripts,d=o.get(i),d||(d={type:"script",instance:null,count:0,state:null},o.set(i,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Ks(n){return'href="'+Zn(n)+'"'}function jc(n){return'link[rel="stylesheet"]['+n+"]"}function qB(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function cS(n,i,o,d){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=1:(i=n.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=1}),i.addEventListener("error",function(){return d.loading|=2}),an(i,"link",o),Yt(i),n.head.appendChild(i))}function Js(n){return'[src="'+Zn(n)+'"]'}function Qc(n){return"script[async]"+n}function KB(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var d=n.querySelector('style[data-href~="'+Zn(o.href)+'"]');if(d)return i.instance=d,Yt(d),d;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),Yt(d),an(d,"style",p),Bd(d,o.precedence,n),i.instance=d;case"stylesheet":p=Ks(o.href);var g=n.querySelector(jc(p));if(g)return i.state.loading|=4,i.instance=g,Yt(g),g;d=qB(o),(p=ra.get(p))&&rh(d,p),g=(n.ownerDocument||n).createElement("link"),Yt(g);var v=g;return v._p=new Promise(function(Q,D){v.onload=Q,v.onerror=D}),an(g,"link",d),i.state.loading|=4,Bd(g,o.precedence,n),i.instance=g;case"script":return g=Js(o.src),(p=n.querySelector(Qc(g)))?(i.instance=p,Yt(p),p):(d=o,(p=ra.get(g))&&(d=m({},o),sh(d,p)),n=n.ownerDocument||n,p=n.createElement("script"),Yt(p),an(p,"link",d),n.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(d=i.instance,i.state.loading|=4,Bd(d,o.precedence,n));return i.instance}function Bd(n,i,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,g=p,v=0;v<d.length;v++){var Q=d[v];if(Q.dataset.precedence===i)g=Q;else if(g!==p)break}g?g.parentNode.insertBefore(n,g.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function rh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function sh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var vd=null;function JB(n,i,o){if(vd===null){var d=new Map,p=vd=new Map;p.set(o,d)}else p=vd,d=p.get(o),d||(d=new Map,p.set(o,d));if(d.has(n))return d;for(d.set(n,null),o=o.getElementsByTagName(n),p=0;p<o.length;p++){var g=o[p];if(!(g[$o]||g[Wt]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var v=g.getAttribute(i)||"";v=n+v;var Q=d.get(v);Q?Q.push(g):d.set(v,[g])}}return d}function ZB(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function lS(n,i,o){if(o===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function XB(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function dS(n,i,o,d){if(o.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Ks(d.href),g=i.querySelector(jc(p));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=bd.bind(n),i.then(n,n)),o.state.loading|=4,o.instance=g,Yt(g);return}g=i.ownerDocument||i,d=qB(d),(p=ra.get(p))&&rh(d,p),g=g.createElement("link"),Yt(g);var v=g;v._p=new Promise(function(Q,D){v.onload=Q,v.onerror=D}),an(g,"link",d),o.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=bd.bind(n),i.addEventListener("load",o),i.addEventListener("error",o))}}var oh=0;function uS(n,i){return n.stylesheets&&n.count===0&&xd(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var d=setTimeout(function(){if(n.stylesheets&&xd(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+i);0<n.imgBytes&&oh===0&&(oh=62500*PC());var p=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&xd(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>oh?50:800)+i);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(p)}}:null}function bd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var wd=null;function xd(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,wd=new Map,i.forEach(fS,n),wd=null,bd.call(n))}function fS(n,i){if(!(i.state.loading&4)){var o=wd.get(n);if(o)var d=o.get(null);else{o=new Map,wd.set(n,o);for(var p=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var v=p[g];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(o.set(v.dataset.precedence,v),d=v)}d&&o.set(null,d)}p=i.instance,v=p.getAttribute("data-precedence"),g=o.get(v)||d,g===d&&o.set(null,p),o.set(v,p),this.count++,d=bd.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),g?g.parentNode.insertBefore(p,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(p,n.firstChild)),i.state.loading|=4}}var Ic={$$typeof:O,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function pS(n,i,o,d,p,g,v,Q,D){this.tag=1,this.containerInfo=n,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=tf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tf(0),this.hiddenUpdates=tf(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function WB(n,i,o,d,p,g,v,Q,D,U,W,ie){return n=new pS(n,i,o,v,D,U,W,ie,Q),i=1,g===!0&&(i|=24),g=Nn(3,null,null,i),n.current=g,g.stateNode=n,i=Hf(),i.refCount++,n.pooledCache=i,i.refCount++,g.memoizedState={element:d,isDehydrated:o,cache:i},Lf(g),n}function ev(n){return n?(n=Is,n):Is}function tv(n,i,o,d,p,g){p=ev(p),d.context===null?d.context=p:d.pendingContext=p,d=Gi(i),d.payload={element:o},g=g===void 0?null:g,g!==null&&(d.callback=g),o=Yi(n,d,i),o!==null&&(vn(o,n,i),rc(o,n,i))}function nv(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function ch(n,i){nv(n,i),(n=n.alternate)&&nv(n,i)}function av(n){if(n.tag===13||n.tag===31){var i=Ir(n,67108864);i!==null&&vn(i,n,67108864),ch(n,67108864)}}function iv(n){if(n.tag===13||n.tag===31){var i=Mn();i=nf(i);var o=Ir(n,i);o!==null&&vn(o,n,i),ch(n,i)}}var jd=!0;function hS(n,i,o,d){var p=Y.T;Y.T=null;var g=V.p;try{V.p=2,lh(n,i,o,d)}finally{V.p=g,Y.T=p}}function gS(n,i,o,d){var p=Y.T;Y.T=null;var g=V.p;try{V.p=8,lh(n,i,o,d)}finally{V.p=g,Y.T=p}}function lh(n,i,o,d){if(jd){var p=dh(d);if(p===null)Kp(n,i,d,Qd,o),sv(n,d);else if(mS(p,n,i,o,d))d.stopPropagation();else if(sv(n,d),i&4&&-1<AS.indexOf(n)){for(;p!==null;){var g=As(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var v=br(g.pendingLanes);if(v!==0){var Q=g;for(Q.pendingLanes|=2,Q.entangledLanes|=2;v;){var D=1<<31-On(v);Q.entanglements[1]|=D,v&=~D}Ca(g),(Je&6)===0&&(cd=We()+500,vc(0))}}break;case 31:case 13:Q=Ir(g,2),Q!==null&&vn(Q,g,2),dd(),ch(g,2)}if(g=dh(d),g===null&&Kp(n,i,d,Qd,o),g===p)break;p=g}p!==null&&d.stopPropagation()}else Kp(n,i,d,null,o)}}function dh(n){return n=ff(n),uh(n)}var Qd=null;function uh(n){if(Qd=null,n=gs(n),n!==null){var i=l(n);if(i===null)n=null;else{var o=i.tag;if(o===13){if(n=u(i),n!==null)return n;n=null}else if(o===31){if(n=f(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Qd=n,null}function rv(n){switch(n){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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Go()){case vr:return 2;case ps:return 8;case gl:case n0:return 32;case gm:return 268435456;default:return 32}default:return 32}}var fh=!1,Ji=null,Zi=null,Xi=null,Cc=new Map,Sc=new Map,Wi=[],AS="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 sv(n,i){switch(n){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Xi=null;break;case"pointerover":case"pointerout":Cc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(i.pointerId)}}function Oc(n,i,o,d,p,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:o,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]},i!==null&&(i=As(i),i!==null&&av(i)),n):(n.eventSystemFlags|=d,i=n.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),n)}function mS(n,i,o,d,p){switch(i){case"focusin":return Ji=Oc(Ji,n,i,o,d,p),!0;case"dragenter":return Zi=Oc(Zi,n,i,o,d,p),!0;case"mouseover":return Xi=Oc(Xi,n,i,o,d,p),!0;case"pointerover":var g=p.pointerId;return Cc.set(g,Oc(Cc.get(g)||null,n,i,o,d,p)),!0;case"gotpointercapture":return g=p.pointerId,Sc.set(g,Oc(Sc.get(g)||null,n,i,o,d,p)),!0}return!1}function ov(n){var i=gs(n.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){n.blockedOn=i,vm(n.priority,function(){iv(o)});return}}else if(i===31){if(i=f(o),i!==null){n.blockedOn=i,vm(n.priority,function(){iv(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Id(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=dh(n.nativeEvent);if(o===null){o=n.nativeEvent;var d=new o.constructor(o.type,o);uf=d,o.target.dispatchEvent(d),uf=null}else return i=As(o),i!==null&&av(i),n.blockedOn=o,!1;i.shift()}return!0}function cv(n,i,o){Id(n)&&o.delete(i)}function yS(){fh=!1,Ji!==null&&Id(Ji)&&(Ji=null),Zi!==null&&Id(Zi)&&(Zi=null),Xi!==null&&Id(Xi)&&(Xi=null),Cc.forEach(cv),Sc.forEach(cv)}function Cd(n,i){n.blockedOn===i&&(n.blockedOn=null,fh||(fh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,yS)))}var Sd=null;function lv(n){Sd!==n&&(Sd=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Sd===n&&(Sd=null);for(var i=0;i<n.length;i+=3){var o=n[i],d=n[i+1],p=n[i+2];if(typeof d!="function"){if(uh(d||o)===null)continue;break}var g=As(o);g!==null&&(n.splice(i,3),i-=3,dp(g,{pending:!0,data:p,method:o.method,action:d},d,p))}}))}function Zs(n){function i(D){return Cd(D,n)}Ji!==null&&Cd(Ji,n),Zi!==null&&Cd(Zi,n),Xi!==null&&Cd(Xi,n),Cc.forEach(i),Sc.forEach(i);for(var o=0;o<Wi.length;o++){var d=Wi[o];d.blockedOn===n&&(d.blockedOn=null)}for(;0<Wi.length&&(o=Wi[0],o.blockedOn===null);)ov(o),o.blockedOn===null&&Wi.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var p=o[d],g=o[d+1],v=p[gn]||null;if(typeof g=="function")v||lv(o);else if(v){var Q=null;if(g&&g.hasAttribute("formAction")){if(p=g,v=g[gn]||null)Q=v.formAction;else if(uh(p)!==null)continue}else Q=v.action;typeof Q=="function"?o[d+1]=Q:(o.splice(d,3),d-=3),lv(o)}}}function dv(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(v){return p=v})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),d||setTimeout(o,20)}function o(){if(!d&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,p=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function ph(n){this._internalRoot=n}Od.prototype.render=ph.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(s(409));var o=i.current,d=Mn();tv(o,d,n,i,null,null)},Od.prototype.unmount=ph.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;tv(n.current,2,null,n,null,null),dd(),i[hs]=null}};function Od(n){this._internalRoot=n}Od.prototype.unstable_scheduleHydration=function(n){if(n){var i=Bm();n={blockedOn:null,target:n,priority:i};for(var o=0;o<Wi.length&&i!==0&&i<Wi[o].priority;o++);Wi.splice(o,0,n),o===0&&ov(n)}};var uv=t.version;if(uv!=="19.2.8")throw Error(s(527,uv,"19.2.8"));V.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=A(i),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var ES={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Yo=_d.inject(ES),Sn=_d}catch{}}return Nc.createRoot=function(n,i){if(!c(n))throw Error(s(299));var o=!1,d="",p=yE,g=EE,v=BE;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError)),i=WB(n,1,!1,null,null,o,d,null,p,g,v,dv),n[hs]=i.current,qp(n),new ph(i)},Nc.hydrateRoot=function(n,i,o){if(!c(n))throw Error(s(299));var d=!1,p="",g=yE,v=EE,Q=BE,D=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(Q=o.onRecoverableError),o.formState!==void 0&&(D=o.formState)),i=WB(n,1,!0,i,o??null,d,p,D,g,v,Q,dv),i.context=ev(null),o=i.current,d=Mn(),d=nf(d),p=Gi(d),p.callback=null,Yi(o,p,d),o=d,i.current.lanes=o,zo(i,o),Ca(i),n[hs]=i.current,qp(n),new Od(i)},Nc.version="19.2.8",Nc}var bv;function RS(){if(bv)return mh.exports;bv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),mh.exports=NS(),mh.exports}var DS=RS();const Rw=[{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"}],Dw=Rw,Tw=new Map(Rw.map(e=>[e.kind,e]));function vh(e,t){return{kind:e,product:t,subjectId:null}}function Dd(e,t,a){return{kind:e,product:t,subjectId:a}}function TS(e,t){return{kind:"operate.review",product:"operate",cycleId:e,subjectId:t}}const kw=Object.freeze({kind:"system.diagnostics",product:null,subjectId:null});function tu(e){return!(e==="."||e===".."||e.length===0||e.length>256||[...e].some(t=>{const a=t.codePointAt(0)??0;return a<=31||a===127||t==="/"||t==="\\"}))}function Xs(e){if(!e||/%(?:2f|5c)/iu.test(e))return null;try{const t=decodeURIComponent(e);return tu(t)?t:null}catch{return null}}const Aa=Object.freeze({kind:"not-found",product:null,subjectId:null});function Ha(e){if(e===""||e==="#")return vh("planning.overview","planning");if(!e.startsWith("#/")||e.includes("?")||e.indexOf("#",1)!==-1)return Aa;const t=e.slice(2);if(!t||t.endsWith("/")||t.includes("//"))return Aa;const a=t.split("/");if(a.length===1){if(a[0]==="diagnostics")return kw;const s=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(a[0]);if(s)return vh(s,"planning")}if(a.length===2&&a[0]==="detail"){const s=Xs(a[1]);return s?Dd("planning.detail","planning",s):Aa}if(a.length===3&&a[0]==="plan"&&a[1]==="specs"){const s=Xs(a[2]);return s?Dd("planning.spec","planning",s):Aa}if(a[0]!=="operate")return Aa;if(a.length===2){const s=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(a[1]);return s?vh(s,"operate"):Aa}if(a.length===3){const s=Xs(a[2]);if(!s)return Aa;const c=new Map([["cycles","operate.cycle"],["inbox","operate.inbox-item"],["actions","operate.action"],["evidence","operate.evidence-item"],["outcomes","operate.outcome"]]).get(a[1]);return c?Dd(c,"operate",s):Aa}if(a.length===4&&a[1]==="actions"&&a[3]==="planning"){const s=Xs(a[2]);return s?Dd("operate.action-planning","operate",s):Aa}if(a.length===5&&a[1]==="cycles"&&a[3]==="reviews"){const s=Xs(a[2]),c=Xs(a[4]);return s&&c?TS(s,c):Aa}return Aa}function Pa(e){const t=Tw.get(e.kind);if(!t)throw new Error(`Unknown dashboard route kind: ${String(e.kind)}`);if(e.kind==="operate.review"){if(!tu(e.cycleId)||!tu(e.subjectId))throw new 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")){const a=e.subjectId;if(typeof a!="string"||!tu(a))throw new Error("Dashboard detail routes require a valid opaque subject identity.");return t.href.replace(":subjectId",encodeURIComponent(a))}return t.href}function So(e){return e.kind==="not-found"?null:Tw.get(e.kind)??null}function Oo(e){const t=Ha(e);return t.kind==="not-found"?null:Pa(t)===e?e:null}function kS(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"}`}const wv=Object.freeze({kind:"current",subjectId:null}),MS=B.createContext(null);function GS(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 xv(e){e.dispatchEvent(new CustomEvent("openplanr-live-state-close",{bubbles:!1}));for(const t of e.querySelectorAll("[data-live-unsafe-control]"))t instanceof HTMLDetailsElement&&(t.open=!1),t instanceof HTMLDialogElement&&t.open&&t.close()}function jv(e){return e.querySelector("[data-live-successor]")??e.querySelector("[data-live-focus-return]")??e}function YS({children:e,route:t,binding:a,transition:s=wv,trackedSubjectId:c=null}){const l=B.useRef(null),[u,f]=B.useState(!1),h=`${kS(t)}${GS(a)}`,A=B.useRef(h),y=(a==null?void 0:a.subjectId)??t.subjectId??c,m=s.kind==="current"||s.subjectId!==null&&s.subjectId===y?s:wv,E=`${m.kind}:${m.subjectId??""}:${m.successorHref??""}`;B.useLayoutEffect(()=>{const C=l.current;!C||A.current===h||(xv(C),f(!1),jv(C).focus({preventScroll:!0}),A.current=h)},[h]),B.useLayoutEffect(()=>{const C=l.current;!C||E.startsWith("current:")||(xv(C),f(!1),jv(C).focus({preventScroll:!0}))},[E]),B.useEffect(()=>{if(!u||typeof window>"u")return;const C=()=>f(!1);return window.addEventListener("pointerup",C,{capture:!0,once:!0}),window.addEventListener("pointercancel",C,{capture:!0,once:!0}),()=>{window.removeEventListener("pointerup",C,{capture:!0}),window.removeEventListener("pointercancel",C,{capture:!0})}},[u]);const b=m.successorHref?Oo(m.successorHref):null,w=b?So(Ha(b)):null,x=B.useMemo(()=>Object.freeze({routeScopeKey:h,pointerActive:u,mutationSafe:m.kind==="current",transition:m}),[m,u,h]),j=C=>{C.isPrimary&&f(!0)},I=C=>{C.isPrimary&&f(!1)};return r.jsx(MS.Provider,{value:x,children:r.jsxs("div",{ref:l,tabIndex:-1,"data-live-state-boundary":m.kind,"data-live-route-scope":h,onPointerDownCapture:j,onPointerUpCapture:I,onPointerCancelCapture:I,children:[m.kind!=="current"?r.jsxs("div",{className:"op-projection-boundary__notice",role:"status","aria-live":"polite",children:[r.jsx("strong",{children:m.kind==="deleted"?"This item is no longer available":"This item has a newer successor"}),r.jsx("span",{children:m.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."}),b&&w?r.jsxs("a",{className:"op-inline-action","data-live-successor":!0,href:b,children:["Open ",w.label]}):null]}):null,e]})})}class ee extends Error{constructor(a,s){super(`${a}: ${s}`);Nd(this,"code","DASHBOARD_RESPONSE_INVALID");this.path=a,this.name="DashboardValidationError"}}const HS=96,zS=25e4;function Mw(e,t){const a=new WeakSet;let s=0;const c=(l,u)=>{if(l===null||typeof l!="object"&&typeof l!="function")return;if(typeof l=="function")throw new ee(t,"contains an executable value");if(s+=1,u>HS||s>zS)throw new ee(t,"contains an over-complex object graph");if(a.has(l))throw new ee(t,"contains a repeated or cyclic object reference");a.add(l);const f=Object.getPrototypeOf(l),h=Array.isArray(l)?Array.prototype:Object.prototype;if(f!==h&&f!==null)throw new ee(t,"contains a non-plain nested object");const A=Object.getOwnPropertyDescriptors(l);for(const y of Reflect.ownKeys(A)){if(typeof y!="string")throw new ee(t,"contains a symbol field");const m=A[y];if((m==null?void 0:m.get)!==void 0||(m==null?void 0:m.set)!==void 0)throw new ee(t,"contains a nested accessor field");c(m==null?void 0:m.value,u+1)}};c(e,0)}function ht(e,t,a){if(e===null||typeof e!="object"||Array.isArray(e))throw new ee(a,"expected an object");try{const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)throw new ee(a,"expected a plain object");const c=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(c).some(f=>{var h,A;return typeof f!="string"||((h=c[f])==null?void 0:h.get)!==void 0||((A=c[f])==null?void 0:A.set)!==void 0}))throw new ee(a,"contains an accessor or symbol field");const l=Object.keys(c).sort(),u=[...t].sort();if(JSON.stringify(l)!==JSON.stringify(u))throw new ee(a,"contains missing or unknown fields");return Mw(e,a),structuredClone(e),Object.fromEntries(Object.entries(c).map(([f,h])=>[f,h.value]))}catch(s){throw s instanceof ee?s:new ee(a,"could not be inspected safely")}}function $S(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new ee(t,"expected an object");try{const a=Object.getPrototypeOf(e);if(a!==Object.prototype&&a!==null)throw new ee(t,"expected a plain object");const s=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(s).some(c=>{var l,u;return typeof c!="string"||((l=s[c])==null?void 0:l.get)!==void 0||((u=s[c])==null?void 0:u.set)!==void 0}))throw new ee(t,"contains an accessor or symbol field");return Mw(e,t),structuredClone(e),Object.fromEntries(Object.entries(s).map(([c,l])=>[c,l.value]))}catch(a){throw a instanceof ee?a:new ee(t,"could not be inspected safely")}}function Fe(e,t,a){if(typeof e!="string"||!a.test(e))throw new ee(t,"contains an invalid string");return e}function bh(e,t,a){return e===null?null:Fe(e,t,a)}function Uc(e,t){if(typeof e!="boolean")throw new ee(t,"expected a boolean");return e}const US=64*1024,LS=64,PS=4096;function Gw(e){try{if(typeof e!="string")throw new ee("$","expected a JSON string");if(new TextEncoder().encode(e).byteLength>US)throw new ee("$","response exceeds the dashboard JSON limit");let t=0,a=0;const s=()=>{for(;/\s/u.test(e[t]??"");)t+=1},c=()=>{if(e[t]!=='"')throw new ee("$","invalid JSON string");const u=t;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else if(e[t]==='"'){t+=1;try{return JSON.parse(e.slice(u,t))}catch{throw new ee("$","invalid JSON string")}}else t+=1;throw new ee("$","unterminated JSON string")},l=u=>{var f;if(a+=1,u>LS||a>PS)throw new ee("$","response exceeds the dashboard JSON complexity limit");if(s(),e[t]==="{"){t+=1,s();const h=new Set;if(e[t]==="}"){t+=1;return}for(;t<e.length;){s();const A=c();if(h.has(A))throw new ee("$","response contains duplicate object members");if(h.add(A),s(),e[t]!==":")throw new ee("$","invalid JSON object");if(t+=1,l(u+1),s(),e[t]==="}"){t+=1;return}if(e[t]!==",")throw new ee("$","invalid JSON object");t+=1}}else if(e[t]==="["){if(t+=1,s(),e[t]==="]"){t+=1;return}for(;t<e.length;){if(l(u+1),s(),e[t]==="]"){t+=1;return}if(e[t]!==",")throw new ee("$","invalid JSON array");t+=1}}else if(e[t]==='"'){c();return}else{const h=(f=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u))==null?void 0:f[0];if(!h)throw new ee("$","invalid JSON value");t+=h.length;return}throw new ee("$","unterminated JSON value")};if(l(0),s(),t!==e.length)throw new ee("$","trailing JSON bytes");return JSON.parse(e)}catch(t){throw t instanceof ee?t:new ee("$","invalid JSON response")}}const kc=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,ag=/^sha256:[a-f0-9]{64}$/u,Yw=["productArea","route","actorId","projectId","scopeId","domainId","domainVersion","cycleId","subjectId","eventHead","viewHash","generation"];function Qv(e,t){return e===null?null:Fe(e,t,kc)}function FS(e){if(e===null)return null;const t=ht(e,["sequence","hash"],"$.eventHead");if(!Number.isSafeInteger(t.sequence)||t.sequence<0)throw new ee("$.eventHead.sequence","expected a non-negative safe integer");const a=t.hash===null?null:Fe(t.hash,"$.eventHead.hash",ag);if(t.sequence===0!=(a===null))throw new ee("$.eventHead","sequence and hash are inconsistent");return Object.freeze({sequence:t.sequence,hash:a})}function Ve(e){const t=ht(e,Yw,"$");if(t.productArea!=="planning"&&t.productArea!=="operate")throw new ee("$.productArea","expected planning or operate");if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new ee("$.generation","expected a non-negative safe integer");const a=Fe(t.route,"$.route",/^#.{1,512}$/u),s=Ha(a);if(s.kind==="not-found"||Pa(s)!==a)throw new ee("$.route","must be a canonical closed dashboard route");if(s.product!==t.productArea)throw new ee("$.route","does not belong to the selected product area");const c=Qv(t.cycleId,"$.cycleId"),l=Qv(t.subjectId,"$.subjectId");if(s.subjectId!==l)throw new ee("$.subjectId","does not equal the canonical route subject");if(s.kind==="operate.review"&&s.cycleId!==c)throw new ee("$.cycleId","does not equal the canonical Review route Cycle");return Object.freeze({productArea:t.productArea,route:a,actorId:Fe(t.actorId,"$.actorId",kc),projectId:Fe(t.projectId,"$.projectId",ag),scopeId:Fe(t.scopeId,"$.scopeId",kc),domainId:Fe(t.domainId,"$.domainId",kc),domainVersion:Fe(t.domainVersion,"$.domainVersion",kc),cycleId:c,subjectId:l,eventHead:FS(t.eventHead),viewHash:t.viewHash===null?null:Fe(t.viewHash,"$.viewHash",ag),generation:t.generation})}function ig(e){return Object.freeze(["dashboard-projection",Ve(e)])}function Ye(e,t){return Yw.every(a=>{var s,c,l,u;return a==="eventHead"?((s=e.eventHead)==null?void 0:s.sequence)===((c=t.eventHead)==null?void 0:c.sequence)&&((l=e.eventHead)==null?void 0:l.hash)===((u=t.eventHead)==null?void 0:u.hash):e[a]===t[a]})}const VS=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"]),qS=new Set(VS),Hw=Object.freeze(["operation","cycleId","assignmentId","submissionId","submissionState","reviewId","state","maxBytes"]),rg=Hw,KS=new Set(rg),JS=/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:-[a-z0-9]+)*){1,7}$/u,ZS=new Set(["private","secret"]),XS=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,WS=/^[a-z][a-z0-9]*(?:[_-][a-z0-9]+){0,7}$/u,zw=160,e1=16*1024*1024;function t1(e,t){if(typeof e!="string"||e.length>zw)throw new ee(t,"contains an overlong public operation");const a=Fe(e,t,JS);if(a.split(/[.-]/u).some(s=>ZS.has(s)))throw new ee(t,"contains a non-public operation segment");return a}function n1(e,t){if(typeof e!="string"||e.length>zw)throw new ee(t,"contains an overlong public state");return Fe(e,t,WS)}function a1(e){const t=$S(e,"$.context"),a=Object.keys(t);if(a.length>rg.length)throw new ee("$.context","contains too many fields");if(a.some(c=>!KS.has(c)))throw new ee("$.context","contains a non-public field");const s={};for(const c of rg){if(!Object.hasOwn(t,c))continue;const l=t[c];if(c==="maxBytes"){if(!Number.isSafeInteger(l)||l<0||l>e1)throw new ee("$.context.maxBytes","expected a bounded byte count");s[c]=l}else{const u=`$.context.${c}`;c==="operation"?s[c]=t1(l,u):c.endsWith("State")||c==="state"?s[c]=n1(l,u):s[c]=Fe(l,u,XS)}}return Object.freeze(s)}function $w(e){const t=ht(e,["code","retryable","context"],"$");if(typeof t.code!="string"||!qS.has(t.code))throw new ee("$.code","contains an unsupported public error code");return Object.freeze({code:t.code,retryable:Uc(t.retryable,"$.retryable"),context:a1(t.context)})}function i1(e){return Object.freeze({blindRetry:!1,requiresReconciliation:!0,retryableAfterReconciliation:e.retryable})}const Uw=Object.freeze(["booting","loading","first-use","ready","empty","read-only","refreshing","stale","degraded","blocked","unavailable","unauthorized","offline","incompatible","corrupt","conflict","partial","uncertain","recovering"]),Lw=Object.freeze({booting:Rt("booting","disabled","route-heading","wait"),loading:Rt("loading","disabled","route-heading","wait"),"first-use":Rt("first-use","disabled","state-heading","server-action-only"),ready:Rt("ready","server-validated","route-heading","none"),empty:Rt("empty","disabled","state-heading","server-action-only"),"read-only":Rt("read-only","disabled","route-heading","inspect"),refreshing:Rt("refreshing","disabled","route-heading","wait"),stale:Rt("stale","disabled","state-heading","reconcile"),degraded:Rt("degraded","disabled","state-heading","inspect"),blocked:Rt("blocked","disabled","state-heading","canonical-recovery-only"),unavailable:Rt("unavailable","disabled","state-heading","inspect"),unauthorized:Rt("unauthorized","disabled","state-heading","request-access"),offline:Rt("offline","disabled","state-heading","restore-connection"),incompatible:Rt("incompatible","disabled","recovery-heading","reinstall"),corrupt:Rt("corrupt","disabled","recovery-heading","canonical-recovery-only"),conflict:Rt("conflict","disabled","recovery-heading","reconcile"),partial:Rt("partial","disabled","recovery-heading","reconcile"),uncertain:Rt("uncertain","disabled","recovery-heading","canonical-recovery-only"),recovering:Rt("recovering","disabled","recovery-heading","wait")});function Rt(e,t,a,s){return Object.freeze({state:e,mutation:t,focus:a,recovery:s,blindRetry:!1})}const r1=/^[A-Z][A-Z0-9_]{0,127}$/u,Iv=new Set(["ready","read-only","refreshing","stale","degraded","blocked","partial","uncertain","recovering"]),s1=new Set(["booting","unauthorized","offline","incompatible","corrupt"]),o1=new Set(["unauthorized","incompatible","corrupt","conflict","uncertain"]),wh=new Set(["booting","loading","ready"]),Dt=(...e)=>new Set(e),c1=Object.freeze({booting:Dt(),loading:Dt(),"first-use":Dt(),ready:Dt(),empty:Dt(),"read-only":Dt(),refreshing:Dt(),stale:Dt("DASHBOARD_STALE_RESPONSE","DASHBOARD_READ_FAILED"),degraded:Dt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),blocked:Dt(),unavailable:Dt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),unauthorized:Dt("CAPABILITY_DENIED"),offline:Dt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),incompatible:Dt("DASHBOARD_BUILD_MISMATCH","DASHBOARD_ASSET_MISSING","DASHBOARD_MANIFEST_MISSING"),corrupt:Dt("DASHBOARD_RESPONSE_INVALID","DASHBOARD_MANIFEST_INVALID","DASHBOARD_BOOTSTRAP_INVALID"),conflict:Dt("CONCURRENT_MODIFICATION","OPERATION_CONFLICT"),partial:Dt("DASHBOARD_READ_FAILED"),uncertain:Dt("OPERATION_UNCERTAIN"),recovering:Dt()}),l1=new Set(Uw.map(e=>Pw(e))),iA=new WeakSet;function Pw(e){return`DASHBOARD_${e.toUpperCase().replace("-","_")}`}function d1(e){if(typeof e!="string"||!Uw.includes(e))throw new ee("$.kind","contains an unsupported product state");return e}function u1(e,t){if(!Array.isArray(e)||e.length>16)throw new ee("$.reasonCodes","expected a bounded reason array");const a=e.map((s,c)=>Fe(s,`$.reasonCodes[${c}]`,r1));if(new Set(a).size!==a.length)throw new ee("$.reasonCodes","contains duplicate reasons");if(wh.has(t)&&a.length!==0)throw new ee("$.reasonCodes","is not valid for this product state");if(!wh.has(t)&&a.length===0)throw new ee("$.reasonCodes","requires a certified reason");if(!wh.has(t)&&a[0]!==Pw(t))throw new ee("$.reasonCodes","does not begin with the tagged presentation-state reason");if(a.slice(1).some(s=>l1.has(s)))throw new ee("$.reasonCodes","contains a secondary presentation-state substitution");return Object.freeze(a)}function f1(e,t){const a=ht(e,["state","mutation","focus","recovery","blindRetry"],"$.policy"),s=Lw[t];if(a.state!==s.state||a.mutation!==s.mutation||a.focus!==s.focus||a.recovery!==s.recovery||a.blindRetry!==!1)throw new ee("$.policy","does not match the tagged product state");return s}function as(e){let t;try{t=structuredClone(e)}catch{throw new ee("$.data","cannot be cloned safely")}const a=new WeakSet,s=c=>{if(!(c===null||typeof c!="object"||a.has(c))){a.add(c);for(const l of Object.values(c))s(l);Object.freeze(c)}};return s(t),t}function p1(e,t,a){if(e===null){if(o1.has(t))throw new ee("$.error","is required for this product state");return null}const s=c1[t];if(s.size===0)throw new ee("$.error","is not valid for this product state");const c=$w(e);if(!s.has(c.code))throw new ee("$.error.code","does not match the tagged product state");if(a===null&&Object.keys(c.context).length!==0)throw new ee("$.error.context","must not disclose owner-bound identifiers in this product state");if(c.context.cycleId!==void 0&&((a==null?void 0:a.cycleId)===null||(a==null?void 0:a.cycleId)===void 0||c.context.cycleId!==a.cycleId))throw new ee("$.error.context.cycleId","does not match exact custody");for(const l of["assignmentId","submissionId","reviewId"])if(c.context[l]!==void 0&&((a==null?void 0:a.subjectId)===null||(a==null?void 0:a.subjectId)===void 0||c.context[l]!==a.subjectId))throw new ee(`$.error.context.${l}`,"does not match exact custody");return c}function Fw(e){if(e==null)return e;try{return Ve(e)}catch{throw new ee("$.currentBinding","does not satisfy the exact current-binding contract")}}function so(e,t={}){const a=ht(e,["kind","binding","data","reasonCodes","error","mutationEnabled","policy"],"$"),s=d1(a.kind),c=f1(a.policy,s),l=Uc(a.mutationEnabled,"$.mutationEnabled");if(s!=="ready"&&l)throw new ee("$.mutationEnabled","is default-denied for this state");const u=a.binding===null?null:Ve(a.binding),f=Fw(t.currentBinding);if(!s1.has(s)&&u===null)throw new ee("$.binding","is required for this product state");if(["booting","unauthorized","incompatible","corrupt"].includes(s)&&u!==null)throw new ee("$.binding","must not disclose a bound subject in this state");if(u&&(!f||!Ye(u,f)))throw new ee("$.binding","requires an explicitly supplied non-null exact current binding");let h=null;if(a.data!==null){if(!t.validateData)throw new ee("$.data","requires an owner-boundary validator");const y=as(a.data);try{if(!t.validateData(y))throw new ee("$.data","failed its owner-boundary contract")}catch(m){throw m instanceof ee?m:new ee("$.data","failed its owner-boundary contract")}h=y}if(Iv.has(s)&&h===null)throw new ee("$.data","is required for this product state");if(!Iv.has(s)&&s!=="offline"&&h!==null)throw new ee("$.data","is forbidden for this state");if(s==="offline"&&u===null!=(h===null))throw new ee("$.data","offline cache requires its exact binding");if(l&&(s!=="ready"||!u||f===void 0||f===null||!Ye(u,f)))throw new ee("$.mutationEnabled","requires current validated ready data and exact custody");const A=Object.freeze({kind:s,binding:u,data:h,reasonCodes:u1(a.reasonCodes,s),error:p1(a.error,s,u),mutationEnabled:l,policy:c});return iA.add(A),A}function rA(e,t){if(!iA.has(e))return!1;try{const a=Fw(t);return e.kind==="ready"&&e.mutationEnabled&&e.data!==null&&e.binding!==null&&a!==null&&a!==void 0&&Ye(e.binding,a)}catch{return!1}}function Pe(e){return typeof e=="object"&&e!==null&&iA.has(e)}function oo(e){return Lw[e]}const h1=Object.freeze({projectName:"OpenPlanr",projectDetail:"Project context pending",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}),g1=Object.freeze({state:"booting",label:"Checking local dashboard",reason:"Waiting for OpenPlanr to return a validated project projection."}),A1=()=>Promise.reject(new Error("No exact dashboard refetch is available.")),Vw=B.createContext(null);function Cv(e){return e!==void 0?e:typeof window>"u"?"":window.location.hash}function m1(e,t){return e!==void 0||typeof window>"u"?()=>{}:(window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t))}function xh(e){return e.state==="offline"?so({kind:"offline",binding:null,data:null,reasonCodes:["DASHBOARD_OFFLINE"],error:null,mutationEnabled:!1,policy:oo("offline")}):e.state==="incompatible"?so({kind:"incompatible",binding:null,data:null,reasonCodes:["DASHBOARD_INCOMPATIBLE"],error:Object.freeze({code:"DASHBOARD_BUILD_MISMATCH",retryable:!1,context:Object.freeze({})}),mutationEnabled:!1,policy:oo("incompatible")}):so({kind:"booting",binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:oo("booting")})}function y1({children:e,initialHash:t,identity:a=h1,connection:s=g1,buildId:c,binding:l=null,projection:u,planningProjection:f,operateCyclesProjection:h,operateSearchBindings:A=Object.freeze([]),operateReviewNavigation:y=null,refetchCurrent:m=A1,bootstrap:E=null,bootPhase:b="checking",bootDetail:w=null,liveTransition:x,liveSubjectId:j}){const I=B.useSyncExternalStore(N=>m1(t,N),()=>Cv(t),()=>Cv(t)),C=B.useMemo(()=>Ha(I),[I]),O=B.useMemo(()=>u??xh(s),[s,u]),S=B.useMemo(()=>f??((l==null?void 0:l.productArea)==="planning"?O:xh(s)),[l==null?void 0:l.productArea,s,O,f]),_=B.useMemo(()=>h??((l==null?void 0:l.route)==="#/operate/cycles"?O:xh(s)),[l==null?void 0:l.route,s,O,h]),k=B.useMemo(()=>Object.freeze({route:C,identity:a,connection:s,buildId:c,binding:l,projection:O,planningProjection:S,operateCyclesProjection:_,operateSearchBindings:A,operateReviewNavigation:y,refetchCurrent:m,bootstrap:E,bootPhase:b,bootDetail:w}),[C,a,s,c,l,O,S,_,A,y,m,E,b,w]);return r.jsx(Vw.Provider,{value:k,children:r.jsx(YS,{route:C,binding:l,transition:x,trackedSubjectId:j,children:e})})}function sA(){const e=B.useContext(Vw);if(!e)throw new Error("useDashboard must be used inside DashboardProviders.");return e}function E1(e){if(e.kind==="not-found")return"not-found";if(e.kind==="operate.review")return`${e.kind}:${e.cycleId}:${e.subjectId}`;const t=e.subjectId;return`${e.kind}:${t??""}`}function B1(){const{route:e}=sA(),t=B.useMemo(()=>{if(e.kind==="not-found")return"";const a=So(e);if(!a)return"";const s=e.kind==="operate.review"?` · ${e.cycleId} · ${e.subjectId}`:e.subjectId?` · ${e.subjectId}`:"";return`${a.label}${s}. ${a.description}`},[e]);return t?r.jsx("div",{className:"op-route-announcer",role:"status","aria-live":"polite","aria-atomic":"true",children:t},E1(e)):null}const v1=Object.freeze(["boot","incompatible-installation","missing-asset","stale-package","api-version","watcher-gap","optional-dependency"]),b1=Object.freeze({DASHBOARD_MANIFEST_MISSING:"incompatible-installation",DASHBOARD_MANIFEST_INVALID:"api-version",DASHBOARD_ASSET_MISSING:"missing-asset",DASHBOARD_BUILD_MISMATCH:"stale-package"});function Su(e,t,a,s,c){return Object.freeze({category:e,status:t,title:a,detail:s,remediation:c})}function Sv(e,t){return Su("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 Hr(e,t,a){return Su(e,"pass",t,a,"No remediation is required for this check.")}function Td(e,t,a,s){return Su(e,"fail",t,a,s)}function Ov(e,t,a,s){return Su(e,"warn",t,a,s)}function w1(e){const t=new Map;e.bootPhase==="checking"?t.set("boot",Sv("checking",e.bootDetail??"Bootstrap request is in flight.")):e.bootPhase==="unavailable"?t.set("boot",Sv("failed",e.bootDetail??"OpenPlanr did not return a validated bootstrap envelope.")):t.set("boot",Hr("boot","Bootstrap envelope validated","The public bootstrap response matched the installed dashboard build contract."));const a=e.bootstrap,s=(a==null?void 0:a.compatibility.reasonCodes)??[],c=new Set(s.map(h=>b1[h]));!a||a.compatibility.status==="incompatible"||s.length>0?t.set("incompatible-installation",Td("incompatible-installation","Dashboard installation is incompatible",s.length>0?`Certified reason codes: ${s.join(" · ")}.`:"OpenPlanr refused the installed dashboard before presenting project data.","Install matching OpenPlanr dashboard assets, then verify compatibility again.")):t.set("incompatible-installation",Hr("incompatible-installation","Installation contract is compatible","The UI, server, and packaged assets satisfy one compatible build contract.")),t.set("missing-asset",c.has("missing-asset")?Td("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."):Hr("missing-asset","Packaged assets resolve","Every asset entry required by the certified manifest is present."));const l=c.has("stale-package")||a!==null&&a.ui.buildId!==null&&a.ui.expectedBuildId!==null&&a.ui.buildId!==a.ui.expectedBuildId;t.set("stale-package",l?Td("stale-package","Installed build does not match the server expectation",a?`Embedded build ${e.embeddedBuildId} differs from the served build ${a.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."):Hr("stale-package","Build custody matches",`Embedded and served builds both report ${e.embeddedBuildId}.`)),t.set("api-version",c.has("api-version")?Td("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."):Hr("api-version","API versions are supported",a?`Protocol ${a.protocolVersion} with Operate ${a.capabilities.operateExperience.protocolVersion} and Planning graph ${a.capabilities.planningGraph.schemaVersion}.`:"Protocol versions remain unproven until bootstrap succeeds."));const u=e.connection.state==="stale"||e.connection.state==="offline"||e.connection.reason.toLowerCase().includes("watch");t.set("watcher-gap",u?Ov("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."):Hr("watcher-gap","Live update channel is available",e.connection.label));const f=a!==null&&(!a.capabilities.diagnostics.available||!a.capabilities.operateCommands.available);return t.set("optional-dependency",f?Ov("optional-dependency","Optional capability is unavailable",[a!=null&&a.capabilities.diagnostics.available?null:"diagnostics unavailable",a!=null&&a.capabilities.operateCommands.available?null:"operate commands unavailable"].filter(h=>h!==null).join(" · "),"Reinstall OpenPlanr with optional dependencies enabled. Global navigation and diagnostics remain available."):Hr("optional-dependency","Optional dependencies are present","Diagnostics and governed Operate command transport are both advertised.")),Object.freeze(v1.map(h=>{const A=t.get(h);if(!A)throw new Error(`Missing compatibility finding for ${h}`);return A}))}function x1(e,t,a){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:a??"Waiting for OpenPlanr to return a validated project projection."})}function j1(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 oA=Nw(),Q1=Object.defineProperty,cA=(e,t)=>Q1(e,"name",{value:t,configurable:!0});function sg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}cA(sg,"setRef");function qw(...e){return t=>{let a=!1;const s=e.map(c=>{const l=sg(c,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let c=0;c<s.length;c++){const l=s[c];typeof l=="function"?l():sg(e[c],null)}}}}cA(qw,"composeRefs");function Gt(...e){return B.useCallback(qw(...e),e)}cA(Gt,"useComposedRefs");var I1=Object.defineProperty,ba=(e,t)=>I1(e,"name",{value:t,configurable:!0});function is(e){const t=B.forwardRef((a,s)=>{let{children:c,...l}=a,u=null,f=!1;const h=[];og(c)&&typeof kd=="function"&&(c=kd(c._payload)),B.Children.forEach(c,E=>{var b;if(Ww(E)){f=!0;const w=E;let x="child"in w.props?w.props.child:w.props.children;og(x)&&typeof kd=="function"&&(x=kd(x._payload)),u=C1(w,x),h.push((b=u==null?void 0:u.props)==null?void 0:b.children)}else h.push(E)}),u?u=B.cloneElement(u,void 0,h):!f&&B.Children.count(c)===1&&B.isValidElement(c)&&(u=c);const A=u?Xw(u):void 0,y=Gt(s,A);if(!u){if(c||c===0)throw new Error(f?_1(e):O1(e));return c}const m=Zw(l,u.props??{});return u.type!==B.Fragment&&(m.ref=s?y:A),B.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}ba(is,"createSlot");var Kw=Symbol.for("radix.slottable");function Jw(e){const t=ba(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Kw,t}ba(Jw,"createSlottable");var C1=ba((e,t)=>{if("child"in e.props){const a=e.props.child;return B.isValidElement(a)?B.cloneElement(a,void 0,e.props.children(a.props.children)):null}return B.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Zw(e,t){const a={...t};for(const s in t){const c=e[s],l=t[s];/^on[A-Z]/.test(s)?c&&l?a[s]=(...f)=>{const h=l(...f);return c(...f),h}:c&&(a[s]=c):s==="style"?a[s]={...c,...l}:s==="className"&&(a[s]=[c,l].filter(Boolean).join(" "))}return{...e,...a}}ba(Zw,"mergeProps");function Xw(e){var s,c;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(c=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:c.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}ba(Xw,"getElementRef");function Ww(e){return B.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kw}ba(Ww,"isSlottable");var S1=Symbol.for("react.lazy");function og(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===S1&&"_payload"in e&&ex(e._payload)}ba(og,"isLazyComponent");function ex(e){return typeof e=="object"&&e!==null&&"then"in e}ba(ex,"isPromiseLike");var O1=ba(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),_1=ba(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),kd=Co[" use ".trim().toString()],N1=Object.defineProperty,R1=(e,t)=>N1(e,"name",{value:t,configurable:!0}),D1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=D1.reduce((e,t)=>{const a=is(`Primitive.${t}`),s=B.forwardRef((c,l)=>{const{asChild:u,...f}=c,h=u?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(h,{...f,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function tx(e,t){e&&oA.flushSync(()=>e.dispatchEvent(t))}R1(tx,"dispatchDiscreteCustomEvent");var T1=Object.defineProperty,k1=(e,t)=>T1(e,"name",{value:t,configurable:!0}),M1=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"}),G1=B.forwardRef(k1(function(t,a){return r.jsx(Zt.span,{...t,ref:a,style:{...M1,...t.style}})},"VisuallyHidden")),Y1=G1,H1=Object.defineProperty,ca=(e,t)=>H1(e,"name",{value:t,configurable:!0});function z1(e,t){const a=B.createContext(t);a.displayName=e+"Context";const s=ca(l=>{const{children:u,...f}=l,h=B.useMemo(()=>f,Object.values(f));return r.jsx(a.Provider,{value:h,children:u})},"Provider");s.displayName=e+"Provider";function c(l,u={}){const{optional:f=!1}=u,h=B.useContext(a);if(h)return h;if(t!==void 0)return t;if(!f)throw new Error(`\`${l}\` must be used within \`${e}\``)}return ca(c,"useContext"),[s,c]}ca(z1,"createContext");function Qi(e,t=[]){let a=[];function s(l,u){const f=B.createContext(u);f.displayName=l+"Context";const h=a.length;a=[...a,u];const A=ca(m=>{var I;const{scope:E,children:b,...w}=m,x=((I=E==null?void 0:E[e])==null?void 0:I[h])||f,j=B.useMemo(()=>w,Object.values(w));return r.jsx(x.Provider,{value:j,children:b})},"Provider");A.displayName=l+"Provider";function y(m,E,b={}){var I;const{optional:w=!1}=b,x=((I=E==null?void 0:E[e])==null?void 0:I[h])||f,j=B.useContext(x);if(j)return j;if(u!==void 0)return u;if(!w)throw new Error(`\`${m}\` must be used within \`${l}\``)}return ca(y,"useContext"),[A,y]}ca(s,"createContext");const c=ca(()=>{const l=a.map(u=>B.createContext(u));return ca(function(f){const h=(f==null?void 0:f[e])||l;return B.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])},"useScope")},"createScope");return c.scopeName=e,[s,nx(c,...t)]}ca(Qi,"createContextScope");function nx(...e){const t=e[0];if(e.length===1)return t;const a=ca(()=>{const s=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return ca(function(l){const u=s.reduce((f,{useScope:h,scopeName:A})=>{const m=h(l)[`__scope${A}`];return{...f,...m}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}ca(nx,"composeContextScopes");var $1=Object.defineProperty,Lt=(e,t)=>$1(e,"name",{value:t,configurable:!0});function ax(e){const t=e+"CollectionProvider",[a,s]=Qi(t),[c,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),u=Lt(x=>{const{scope:j,children:I}=x,C=B.useRef(null),O=B.useRef(new Map).current;return r.jsx(c,{scope:j,itemMap:O,collectionRef:C,children:I})},"CollectionProvider");u.displayName=t;const f=e+"CollectionSlot",h=is(f),A=B.forwardRef((x,j)=>{const{scope:I,children:C}=x,O=l(f,I),S=Gt(j,O.collectionRef);return r.jsx(h,{ref:S,children:C})});A.displayName=f;const y=e+"CollectionItemSlot",m="data-radix-collection-item",E=is(y),b=B.forwardRef((x,j)=>{const{scope:I,children:C,...O}=x,S=B.useRef(null),_=Gt(j,S),k=l(y,I);return B.useEffect(()=>(k.itemMap.set(S,{ref:S,...O}),()=>void k.itemMap.delete(S))),r.jsx(E,{[m]:"",ref:_,children:C})});b.displayName=y;function w(x){const j=l(e+"CollectionConsumer",x);return B.useCallback(()=>{const C=j.collectionRef.current;if(!C)return[];const O=Array.from(C.querySelectorAll(`[${m}]`));return Array.from(j.itemMap.values()).sort((k,N)=>O.indexOf(k.ref.current)-O.indexOf(N.ref.current))},[j.collectionRef,j.itemMap])}return Lt(w,"useCollection"),[{Provider:u,Slot:A,ItemSlot:b},w,s]}Lt(ax,"createCollection");var _v=new WeakMap,Ot,zn,jh=(zn=class extends Map{constructor(a){super(a);Me(this,Ot);Qe(this,Ot,[...super.keys()]),_v.set(this,!0)}set(a,s){return _v.get(this)&&(this.has(a)?K(this,Ot)[K(this,Ot).indexOf(a)]=a:K(this,Ot).push(a)),super.set(a,s),this}insert(a,s,c){const l=this.has(s),u=K(this,Ot).length,f=lA(a);let h=f>=0?f:u+f;const A=h<0||h>=u?-1:h;if(A===this.size||l&&A===this.size-1||A===-1)return this.set(s,c),this;const y=this.size+(l?0:1);f<0&&h++;const m=[...K(this,Ot)];let E,b=!1;for(let w=h;w<y;w++)if(h===w){let x=m[w];m[w]===s&&(x=m[w+1]),l&&this.delete(s),E=this.get(x),this.set(s,c)}else{!b&&m[w-1]===s&&(b=!0);const x=m[b?w:w-1],j=E;E=this.get(x),this.delete(x),this.set(x,j)}return this}with(a,s,c){const l=new zn(this);return l.insert(a,s,c),l}before(a){const s=K(this,Ot).indexOf(a)-1;if(!(s<0))return this.entryAt(s)}setBefore(a,s,c){const l=K(this,Ot).indexOf(a);return l===-1?this:this.insert(l,s,c)}after(a){let s=K(this,Ot).indexOf(a);if(s=s===-1||s===this.size-1?-1:s+1,s!==-1)return this.entryAt(s)}setAfter(a,s,c){const l=K(this,Ot).indexOf(a);return l===-1?this:this.insert(l+1,s,c)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Qe(this,Ot,[]),super.clear()}delete(a){const s=super.delete(a);return s&&K(this,Ot).splice(K(this,Ot).indexOf(a),1),s}deleteAt(a){const s=this.keyAt(a);return s!==void 0?this.delete(s):!1}at(a){const s=nu(K(this,Ot),a);if(s!==void 0)return this.get(s)}entryAt(a){const s=nu(K(this,Ot),a);if(s!==void 0)return[s,this.get(s)]}indexOf(a){return K(this,Ot).indexOf(a)}keyAt(a){return nu(K(this,Ot),a)}from(a,s){const c=this.indexOf(a);if(c===-1)return;let l=c+s;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(a,s){const c=this.indexOf(a);if(c===-1)return;let l=c+s;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(a,s){let c=0;for(const l of this){if(Reflect.apply(a,s,[l,c,this]))return l;c++}}findIndex(a,s){let c=0;for(const l of this){if(Reflect.apply(a,s,[l,c,this]))return c;c++}return-1}filter(a,s){const c=[];let l=0;for(const u of this)Reflect.apply(a,s,[u,l,this])&&c.push(u),l++;return new zn(c)}map(a,s){const c=[];let l=0;for(const u of this)c.push([u[0],Reflect.apply(a,s,[u,l,this])]),l++;return new zn(c)}reduce(...a){const[s,c]=a;let l=0,u=c??this.at(0);for(const f of this)l===0&&a.length===1?u=f:u=Reflect.apply(s,this,[u,f,l,this]),l++;return u}reduceRight(...a){const[s,c]=a;let l=c??this.at(-1);for(let u=this.size-1;u>=0;u--){const f=this.at(u);u===this.size-1&&a.length===1?l=f:l=Reflect.apply(s,this,[l,f,u,this])}return l}toSorted(a){const s=[...this.entries()].sort(a);return new zn(s)}toReversed(){const a=new zn;for(let s=this.size-1;s>=0;s--){const c=this.keyAt(s),l=this.get(c);a.set(c,l)}return a}toSpliced(...a){const s=[...this.entries()];return s.splice(...a),new zn(s)}slice(a,s){const c=new zn;let l=this.size-1;if(a===void 0)return c;a<0&&(a=a+this.size),s!==void 0&&s>0&&(l=s-1);for(let u=a;u<=l;u++){const f=this.keyAt(u),h=this.get(f);c.set(f,h)}return c}every(a,s){let c=0;for(const l of this){if(!Reflect.apply(a,s,[l,c,this]))return!1;c++}return!0}some(a,s){let c=0;for(const l of this){if(Reflect.apply(a,s,[l,c,this]))return!0;c++}return!1}},Ot=new WeakMap,Lt(zn,"OrderedDict"),zn);function nu(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const a=ix(e,t);return a===-1?void 0:e[a]}Lt(nu,"at");function ix(e,t){const a=e.length,s=lA(t),c=s>=0?s:a+s;return c<0||c>=a?-1:c}Lt(ix,"toSafeIndex");function lA(e){return e!==e||e===0?0:Math.trunc(e)}Lt(lA,"toSafeInteger");function U1(e){const t=e+"CollectionProvider",[a,s]=Qi(t),[c,l]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new jh,setItemMap:Lt(()=>{},"setItemMap")}),u=Lt(({state:O,...S})=>O?r.jsx(h,{...S,state:O}):r.jsx(f,{...S}),"CollectionProvider");u.displayName=t;const f=Lt(O=>{const S=j();return r.jsx(h,{...O,state:S})},"CollectionInit");f.displayName=t+"Init";const h=Lt(O=>{const{scope:S,children:_,state:k}=O,N=B.useRef(null),[z,M]=B.useState(null),L=Gt(N,M),[Z,F]=k;return B.useEffect(()=>{if(!z)return;const oe=ox(()=>{});return oe.observe(z,{childList:!0,subtree:!0}),()=>{oe.disconnect()}},[z]),r.jsx(c,{scope:S,itemMap:Z,setItemMap:F,collectionRef:L,collectionRefObject:N,collectionElement:z,children:_})},"CollectionProviderImpl");h.displayName=t+"Impl";const A=e+"CollectionSlot",y=is(A),m=B.forwardRef((O,S)=>{const{scope:_,children:k}=O,N=l(A,_),z=Gt(S,N.collectionRef);return r.jsx(y,{ref:z,children:k})});m.displayName=A;const E=e+"CollectionItemSlot",b="data-radix-collection-item",w=is(E),x=B.forwardRef((O,S)=>{const{scope:_,children:k,...N}=O,z=B.useRef(null),[M,L]=B.useState(null),Z=Gt(S,z,L),F=l(E,_),{setItemMap:oe}=F,re=B.useRef(N);rx(re.current,N)||(re.current=N);const pe=re.current;return B.useEffect(()=>{const Y=pe;return oe(V=>M?V.has(M)?V.set(M,{...Y,element:M}).toSorted(cg):(V.set(M,{...Y,element:M}),V.toSorted(cg)):V),()=>{oe(V=>!M||!V.has(M)?V:(V.delete(M),new jh(V)))}},[M,pe,oe]),r.jsx(w,{[b]:"",ref:Z,children:k})});x.displayName=E;function j(){return B.useState(new jh)}Lt(j,"useInitCollection");function I(O){const{itemMap:S}=l(e+"CollectionConsumer",O);return S}return Lt(I,"useCollection"),[{Provider:u,Slot:m,ItemSlot:x},{createCollectionScope:s,useCollection:I,useInitCollection:j}]}Lt(U1,"createCollection");function rx(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(const c of a)if(!Object.prototype.hasOwnProperty.call(t,c)||e[c]!==t[c])return!1;return!0}Lt(rx,"shallowEqual");function sx(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Lt(sx,"isElementPreceding");function cg(e,t){return!e[1].element||!t[1].element?0:sx(e[1].element,t[1].element)?-1:1}Lt(cg,"sortByDocumentPosition");function ox(e){return new MutationObserver(a=>{for(const s of a)if(s.type==="childList"){e();return}})}Lt(ox,"getChildListObserver");var L1=Object.defineProperty,_o=(e,t)=>L1(e,"name",{value:t,configurable:!0}),cx=!!(typeof window<"u"&&window.document&&window.document.createElement);function ut(e,t,{checkForDefaultPrevented:a=!0}={}){return _o(function(c){if(e==null||e(c),a===!1||!c||!c.defaultPrevented)return t==null?void 0:t(c)},"handleEvent")}_o(ut,"composeEventHandlers");function P1(e){var t;if(!cx)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}_o(P1,"getOwnerWindow");function lg(e){if(!cx)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}_o(lg,"getOwnerDocument");function lx(e,t=!1){const{activeElement:a}=lg(e);if(!(a!=null&&a.nodeName))return null;if(dx(a)&&a.contentDocument)return lx(a.contentDocument.body,t);if(t){const s=a.getAttribute("aria-activedescendant");if(s){const c=lg(a).getElementById(s);if(c)return c}}return a}_o(lx,"getActiveElement");function dx(e){return e.tagName==="IFRAME"}_o(dx,"isFrame");var Qn=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},F1=Object.defineProperty,V1=(e,t)=>F1(e,"name",{value:t,configurable:!0}),Nv=Co[" useEffectEvent ".trim().toString()],Rv=Co[" useInsertionEffect ".trim().toString()];function ux(e){if(typeof Nv=="function")return Nv(e);const t=B.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Rv=="function"?Rv(()=>{t.current=e}):Qn(()=>{t.current=e}),B.useMemo(()=>((...a)=>{var s;return(s=t.current)==null?void 0:s.call(t,...a)}),[])}V1(ux,"useEffectEvent");var q1=Object.defineProperty,ll=(e,t)=>q1(e,"name",{value:t,configurable:!0}),K1=Co[" useInsertionEffect ".trim().toString()]||Qn;function dl({prop:e,defaultProp:t,onChange:a=ll(()=>{},"onChange"),caller:s}){const[c,l,u]=fx({defaultProp:t,onChange:a}),f=e!==void 0,h=f?e:c,A=B.useCallback(y=>{var m;if(f){const E=px(y)?y(e):y;E!==e&&((m=u.current)==null||m.call(u,E))}else l(y)},[f,e,l,u]);return[h,A]}ll(dl,"useControllableState");function fx({defaultProp:e,onChange:t}){const[a,s]=B.useState(e),c=B.useRef(a),l=B.useRef(t);return K1(()=>{l.current=t},[t]),B.useEffect(()=>{var u;c.current!==a&&((u=l.current)==null||u.call(l,a),c.current=a)},[a,c]),[a,s,l]}ll(fx,"useUncontrolledState");function px(e){return typeof e=="function"}ll(px,"isFunction");var Dv=Symbol("RADIX:SYNC_STATE");function J1(e,t,a,s){const{prop:c,defaultProp:l,onChange:u,caller:f}=t,h=c!==void 0,A=ux(u),y=[{...a,state:l}];s&&y.push(s);const[m,E]=B.useReducer((j,I)=>{if(I.type===Dv)return{...j,state:I.state};const C=e(j,I);return h&&!Object.is(C.state,j.state)&&A(C.state),C},...y),b=m.state,w=B.useRef(b);B.useEffect(()=>{w.current!==b&&(w.current=b,h||A(b))},[b,w,h]);const x=B.useMemo(()=>c!==void 0?{...m,state:c}:m,[m,c]);return B.useEffect(()=>{h&&!Object.is(c,m.state)&&E({type:Dv,state:c})},[c,m.state,h]),[x,E]}ll(J1,"useControllableStateReducer");var Z1=Object.defineProperty,wi=(e,t)=>Z1(e,"name",{value:t,configurable:!0});function hx(e,t){return B.useReducer((a,s)=>t[a][s]??a,e)}wi(hx,"useStateMachine");var No=wi(e=>{const{present:t,children:a}=e,s=gx(t),c=typeof a=="function"?a({present:s.isPresent}):B.Children.only(a),l=Ax(s.ref,mx(c));return typeof a=="function"||s.isPresent?B.cloneElement(c,{ref:l}):null},"Presence");function gx(e){const[t,a]=B.useState(),s=B.useRef(null),c=B.useRef(e),l=B.useRef("none"),u=B.useRef(void 0),f=e?"mounted":"unmounted",[h,A]=hx(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return B.useEffect(()=>{h==="mounted"?(l.current=u.current??io(s.current),u.current=void 0):l.current="none"},[h]),Qn(()=>{const y=s.current,m=c.current;if(m!==e){const b=l.current,w=io(y);e?(u.current=w,A("MOUNT")):w==="none"||(y==null?void 0:y.display)==="none"?A("UNMOUNT"):A(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,A]),Qn(()=>{if(t){let y;const m=t.ownerDocument.defaultView??window,E=wi(w=>{const j=io(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&j&&(A("ANIMATION_END"),!c.current)){const I=t.style.animationFillMode;t.style.animationFillMode="forwards",y=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},"handleAnimationEnd"),b=wi(w=>{w.target===t&&(l.current=io(s.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(y),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else A("ANIMATION_END")},[t,A]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:B.useCallback(y=>{if(y){const m=getComputedStyle(y);s.current=m,u.current=io(m)}else s.current=null;a(y)},[])}}wi(gx,"usePresence");function dg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}wi(dg,"setRef");function Ax(...e){const t=B.useRef(e);return t.current=e,B.useCallback(a=>{const s=t.current;let c=!1;const l=s.map(u=>{const f=dg(u,a);return!c&&typeof f=="function"&&(c=!0),f});if(c)return()=>{for(let u=0;u<l.length;u++){const f=l[u];typeof f=="function"?f():dg(s[u],null)}}},[])}wi(Ax,"useStableComposedRefs");function io(e){return(e==null?void 0:e.animationName)||"none"}wi(io,"getAnimationName");function mx(e){var s,c;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(c=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:c.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}wi(mx,"getElementRef");var X1=Object.defineProperty,W1=(e,t)=>X1(e,"name",{value:t,configurable:!0}),eO=Co[" useId ".trim().toString()]||(()=>{}),tO=0;function ns(e){const[t,a]=B.useState(eO());return Qn(()=>{e||a(s=>s??String(tO++))},[e]),e||(t?`radix-${t}`:"")}W1(ns,"useId");var nO=Object.defineProperty,aO=(e,t)=>nO(e,"name",{value:t,configurable:!0}),iO=B.createContext(void 0);function dA(e){const t=B.useContext(iO);return e||t||"ltr"}aO(dA,"useDirection");var rO=Object.defineProperty,sO=(e,t)=>rO(e,"name",{value:t,configurable:!0});function hr(e){const t=B.useRef(e);return B.useEffect(()=>{t.current=e}),B.useMemo(()=>((...a)=>{var s;return(s=t.current)==null?void 0:s.call(t,...a)}),[])}sO(hr,"useCallbackRef");var oO=Object.defineProperty,$t=(e,t)=>oO(e,"name",{value:t,configurable:!0}),ug="dismissableLayer.update",cO="dismissableLayer.pointerDownOutside",lO="dismissableLayer.focusOutside",Tv,yx=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ex=B.forwardRef($t(function(t,a){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:A,...y}=t,m=B.useContext(yx),[E,b]=B.useState(null),w=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=B.useState({}),j=Gt(a,b),I=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),O=C?I.indexOf(C):-1,S=E?I.indexOf(E):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,k=S>=O,N=B.useRef(!1),z=vx(F=>{u==null||u(F),h==null||h(F),F.defaultPrevented||A==null||A()},{ownerDocument:w,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:N,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:B.useCallback(F=>{if(!(F instanceof Node))return!1;const oe=[...m.branches].some(re=>re.contains(F));return k&&!oe},[m.branches,k])}),M=bx(F=>{if(c&&N.current)return;const oe=F.target;[...m.branches].some(pe=>pe.contains(oe))||(f==null||f(F),h==null||h(F),F.defaultPrevented||A==null||A())},w),L=E?S===I.length-1:!1,Z=hr(F=>{F.key==="Escape"&&(l==null||l(F),!F.defaultPrevented&&A&&(F.preventDefault(),A()))});return B.useEffect(()=>{if(L)return w.addEventListener("keydown",Z,{capture:!0}),()=>w.removeEventListener("keydown",Z,{capture:!0})},[w,L,Z]),B.useEffect(()=>{if(E)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Tv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(E)),m.layers.add(E),fg(),()=>{s&&(m.layersWithOutsidePointerEventsDisabled.delete(E),m.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=Tv))}},[E,w,s,m]),B.useEffect(()=>()=>{E&&(m.layers.delete(E),m.layersWithOutsidePointerEventsDisabled.delete(E),fg())},[E,m]),B.useEffect(()=>{const F=$t(()=>x({}),"handleUpdate");return document.addEventListener(ug,F),()=>document.removeEventListener(ug,F)},[]),r.jsx(Zt.div,{...y,ref:j,style:{pointerEvents:_?k?"auto":"none":void 0,...t.style},onFocusCapture:ut(t.onFocusCapture,M.onFocusCapture),onBlurCapture:ut(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:ut(t.onPointerDownCapture,z.onPointerDownCapture)})},"DismissableLayer"));function Bx(){const e=B.useContext(yx),[t,a]=B.useState(null);return B.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}$t(Bx,"useDismissableLayerSurface");var dO=$t(()=>!0,"IS_TRUE");function vx(e,t){const{ownerDocument:a=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:c,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=dO}=t,f=hr(e),h=B.useRef(!1),A=B.useRef(!1),y=B.useRef(new Map),m=B.useRef(()=>{});return B.useEffect(()=>{function E(){A.current=!1,c.current=!1,y.current.clear()}$t(E,"resetOutsideInteraction");function b(){return Array.from(y.current.values()).some(Boolean)}$t(b,"isOutsideInteractionIntercepted");function w(O){if(!A.current)return;const S=O.target;S instanceof Node&&[...l].some(k=>k.contains(S))||y.current.set(O.type,!0),O.type==="click"&&window.setTimeout(()=>{A.current&&m.current()},0)}$t(w,"handleInteractionCapture");function x(O){A.current&&y.current.set(O.type,!1)}$t(x,"handleInteractionBubble");const j=$t(O=>{if(O.target&&!h.current){let S=function(){a.removeEventListener("click",m.current);const k=b();E(),k||uA(cO,f,_,{discrete:!0})};if($t(S,"handleAndDispatchPointerDownOutsideEvent"),!u(O.target)){a.removeEventListener("click",m.current),E(),h.current=!1;return}const _={originalEvent:O};A.current=!0,c.current=s&&O.button===0,y.current.clear(),!s||O.button!==0?S():(a.removeEventListener("click",m.current),m.current=S,a.addEventListener("click",m.current,{once:!0}))}else a.removeEventListener("click",m.current),E();h.current=!1},"handlePointerDown"),I=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const O of I)a.addEventListener(O,w,!0),a.addEventListener(O,x);const C=window.setTimeout(()=>{a.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(C),a.removeEventListener("pointerdown",j),a.removeEventListener("click",m.current);for(const O of I)a.removeEventListener(O,w,!0),a.removeEventListener(O,x)}},[a,f,s,c,l,u]),{onPointerDownCapture:$t(()=>h.current=!0,"onPointerDownCapture")}}$t(vx,"usePointerDownOutside");function bx(e,t=globalThis==null?void 0:globalThis.document){const a=hr(e),s=B.useRef(!1);return B.useEffect(()=>{const c=$t(l=>{l.target&&!s.current&&uA(lO,a,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",c),()=>t.removeEventListener("focusin",c)},[t,a]),{onFocusCapture:$t(()=>s.current=!0,"onFocusCapture"),onBlurCapture:$t(()=>s.current=!1,"onBlurCapture")}}$t(bx,"useFocusOutside");function fg(){const e=new CustomEvent(ug);document.dispatchEvent(e)}$t(fg,"dispatchUpdate");function uA(e,t,a,{discrete:s}){const c=a.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&c.addEventListener(e,t,{once:!0}),s?tx(c,l):c.dispatchEvent(l)}$t(uA,"handleAndDispatchCustomEvent");var uO=Object.defineProperty,pn=(e,t)=>uO(e,"name",{value:t,configurable:!0}),Qh="focusScope.autoFocusOnMount",Ih="focusScope.autoFocusOnUnmount",kv={bubbles:!1,cancelable:!0},fO=B.forwardRef(pn(function(t,a){const{loop:s=!1,trapped:c=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=t,[h,A]=B.useState(null),y=hr(l),m=hr(u),E=B.useRef(null),b=Gt(a,A),w=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect(()=>{if(c){let j=function(S){if(w.paused||!h)return;const _=S.target;h.contains(_)?E.current=_:pi(E.current,{select:!0})},I=function(S){if(w.paused||!h)return;const _=S.relatedTarget;_!==null&&(h.contains(_)||pi(E.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&pi(h)};pn(j,"handleFocusIn"),pn(I,"handleFocusOut"),pn(C,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",I);const O=new MutationObserver(C);return h&&O.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",I),O.disconnect()}}},[c,h,w.paused]),B.useEffect(()=>{if(h){Mv.add(w);const j=document.activeElement;if(!h.contains(j)){const C=new CustomEvent(Qh,kv);h.addEventListener(Qh,y),h.dispatchEvent(C),C.defaultPrevented||(wx(Cx(fA(h)),{select:!0}),document.activeElement===j&&pi(h))}return()=>{h.removeEventListener(Qh,y),setTimeout(()=>{const C=new CustomEvent(Ih,kv);h.addEventListener(Ih,m),h.dispatchEvent(C),C.defaultPrevented||pi(j??document.body,{select:!0}),h.removeEventListener(Ih,m),Mv.remove(w)},0)}}},[h,y,m,w]);const x=B.useCallback(j=>{if(!s&&!c||w.paused)return;const I=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,C=document.activeElement;if(I&&C){const O=j.currentTarget,[S,_]=xx(O);S&&_?!j.shiftKey&&C===_?(j.preventDefault(),s&&pi(S,{select:!0})):j.shiftKey&&C===S&&(j.preventDefault(),s&&pi(_,{select:!0})):C===O&&j.preventDefault()}},[s,c,w.paused]);return r.jsx(Zt.div,{tabIndex:-1,...f,ref:b,onKeyDown:x})},"FocusScope"));function wx(e,{select:t=!1}={}){const a=document.activeElement;for(const s of e)if(pi(s,{select:t}),document.activeElement!==a)return}pn(wx,"focusFirst");function xx(e){const t=fA(e),a=pg(t,e),s=pg(t.reverse(),e);return[a,s]}pn(xx,"getTabbableEdges");function fA(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:pn(s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}pn(fA,"getTabbableCandidates");function pg(e,t){const a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const s of e)if(!(a?!s.checkVisibility({checkVisibilityCSS:!0}):jx(s,{upTo:t})))return s}pn(pg,"findVisible");function jx(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}pn(jx,"isHidden");function Qx(e){return e instanceof HTMLInputElement&&"select"in e}pn(Qx,"isSelectableInput");function pi(e,{select:t=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&Qx(e)&&t&&e.select()}}pn(pi,"focus");var Mv=Ix();function Ix(){let e=[];return{add(t){const a=e[0];t!==a&&(a==null||a.pause()),e=hg(e,t),e.unshift(t)},remove(t){var a;e=hg(e,t),(a=e[0])==null||a.resume()}}}pn(Ix,"createFocusScopesStack");function hg(e,t){const a=[...e],s=a.indexOf(t);return s!==-1&&a.splice(s,1),a}pn(hg,"arrayRemove");function Cx(e){return e.filter(t=>t.tagName!=="A")}pn(Cx,"removeLinks");var pO=Object.defineProperty,hO=(e,t)=>pO(e,"name",{value:t,configurable:!0}),Sx=B.forwardRef(hO(function(t,a){var h;const{container:s,...c}=t,[l,u]=B.useState(!1);Qn(()=>u(!0),[]);const f=s||l&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?oA.createPortal(r.jsx(Zt.div,{...c,ref:a}),f):null},"Portal")),gO=Object.defineProperty,pA=(e,t)=>gO(e,"name",{value:t,configurable:!0}),Md=0,Sa=null;function AO(e){return hA(),e.children}pA(AO,"FocusGuards");function hA(){B.useEffect(()=>{Sa||(Sa={start:gg(),end:gg()});const{start:e,end:t}=Sa;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Md++,()=>{Md===1&&(Sa==null||Sa.start.remove(),Sa==null||Sa.end.remove(),Sa=null),Md=Math.max(0,Md-1)}},[])}pA(hA,"useFocusGuards");function gg(){const 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}pA(gg,"createFocusGuard");var Ma=function(){return Ma=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++){a=arguments[s];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},Ma.apply(this,arguments)};function Ox(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c<s.length;c++)t.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(e,s[c])&&(a[s[c]]=e[s[c]]);return a}function mO(e,t,a){if(a||arguments.length===2)for(var s=0,c=t.length,l;s<c;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var au="right-scroll-bar-position",iu="width-before-scroll-bar",yO="with-scroll-bars-hidden",EO="--removed-body-scroll-bar-size";function Ch(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BO(e,t){var a=B.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(s){var c=a.value;c!==s&&(a.value=s,a.callback(s,c))}}}})[0];return a.callback=t,a.facade}var vO=typeof window<"u"?B.useLayoutEffect:B.useEffect,Gv=new WeakMap;function bO(e,t){var a=BO(null,function(s){return e.forEach(function(c){return Ch(c,s)})});return vO(function(){var s=Gv.get(a);if(s){var c=new Set(s),l=new Set(e),u=a.current;c.forEach(function(f){l.has(f)||Ch(f,null)}),l.forEach(function(f){c.has(f)||Ch(f,u)})}Gv.set(a,e)},[e]),a}function wO(e){return e}function xO(e,t){t===void 0&&(t=wO);var a=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(l){var u=t(l,s);return a.push(u),function(){a=a.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(s=!0;a.length;){var u=a;a=[],u.forEach(l)}a={push:function(f){return l(f)},filter:function(){return a}}},assignMedium:function(l){s=!0;var u=[];if(a.length){var f=a;a=[],f.forEach(l),u=a}var h=function(){var y=u;u=[],y.forEach(l)},A=function(){return Promise.resolve().then(h)};A(),a={push:function(y){u.push(y),A()},filter:function(y){return u=u.filter(y),a}}}};return c}function jO(e){e===void 0&&(e={});var t=xO(null);return t.options=Ma({async:!0,ssr:!1},e),t}var _x=function(e){var t=e.sideCar,a=Ox(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return B.createElement(s,Ma({},a))};_x.isSideCarExport=!0;function QO(e,t){return e.useMedium(t),_x}var Nx=jO(),Sh=function(){},Ou=B.forwardRef(function(e,t){var a=B.useRef(null),s=B.useState({onScrollCapture:Sh,onWheelCapture:Sh,onTouchMoveCapture:Sh}),c=s[0],l=s[1],u=e.forwardProps,f=e.children,h=e.className,A=e.removeScrollBar,y=e.enabled,m=e.shards,E=e.sideCar,b=e.noRelative,w=e.noIsolation,x=e.inert,j=e.allowPinchZoom,I=e.as,C=I===void 0?"div":I,O=e.gapMode,S=Ox(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=E,k=bO([a,t]),N=Ma(Ma({},S),c);return B.createElement(B.Fragment,null,y&&B.createElement(_,{sideCar:Nx,removeScrollBar:A,shards:m,noRelative:b,noIsolation:w,inert:x,setCallbacks:l,allowPinchZoom:!!j,lockRef:a,gapMode:O}),u?B.cloneElement(B.Children.only(f),Ma(Ma({},N),{ref:k})):B.createElement(C,Ma({},N,{className:h,ref:k}),f))});Ou.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ou.classNames={fullWidth:iu,zeroRight:au};var IO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IO();return t&&e.setAttribute("nonce",t),e}function SO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _O=function(){var e=0,t=null;return{add:function(a){e==0&&(t=CO())&&(SO(t,a),OO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NO=function(){var e=_O();return function(t,a){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},Rx=function(){var e=NO(),t=function(a){var s=a.styles,c=a.dynamic;return e(s,c),null};return t},RO={left:0,top:0,right:0,gap:0},Oh=function(e){return parseInt(e||"",10)||0},DO=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[Oh(a),Oh(s),Oh(c)]},TO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RO;var t=DO(e),a=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-a+t[2]-t[0])}},kO=Rx(),co="data-scroll-locked",MO=function(e,t,a,s){var c=e.left,l=e.top,u=e.right,f=e.gap;return a===void 0&&(a="margin"),`
|
|
50
|
+
.`.concat(yO,` {
|
|
51
|
+
overflow: hidden `).concat(s,`;
|
|
52
|
+
padding-right: `).concat(f,"px ").concat(s,`;
|
|
53
|
+
}
|
|
54
|
+
body[`).concat(co,`] {
|
|
55
|
+
overflow: hidden `).concat(s,`;
|
|
56
|
+
overscroll-behavior: contain;
|
|
57
|
+
`).concat([t&&"position: relative ".concat(s,";"),a==="margin"&&`
|
|
58
|
+
padding-left: `.concat(c,`px;
|
|
59
|
+
padding-top: `).concat(l,`px;
|
|
60
|
+
padding-right: `).concat(u,`px;
|
|
61
|
+
margin-left:0;
|
|
62
|
+
margin-top:0;
|
|
63
|
+
margin-right: `).concat(f,"px ").concat(s,`;
|
|
64
|
+
`),a==="padding"&&"padding-right: ".concat(f,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.`).concat(au,` {
|
|
68
|
+
right: `).concat(f,"px ").concat(s,`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.`).concat(iu,` {
|
|
72
|
+
margin-right: `).concat(f,"px ").concat(s,`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.`).concat(au," .").concat(au,` {
|
|
76
|
+
right: 0 `).concat(s,`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.`).concat(iu," .").concat(iu,` {
|
|
80
|
+
margin-right: 0 `).concat(s,`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
body[`).concat(co,`] {
|
|
84
|
+
`).concat(EO,": ").concat(f,`px;
|
|
85
|
+
}
|
|
86
|
+
`)},Yv=function(){var e=parseInt(document.body.getAttribute(co)||"0",10);return isFinite(e)?e:0},GO=function(){B.useEffect(function(){return document.body.setAttribute(co,(Yv()+1).toString()),function(){var e=Yv()-1;e<=0?document.body.removeAttribute(co):document.body.setAttribute(co,e.toString())}},[])},YO=function(e){var t=e.noRelative,a=e.noImportant,s=e.gapMode,c=s===void 0?"margin":s;GO();var l=B.useMemo(function(){return TO(c)},[c]);return B.createElement(kO,{styles:MO(l,!t,c,a?"":"!important")})},Ag=!1;if(typeof window<"u")try{var Gd=Object.defineProperty({},"passive",{get:function(){return Ag=!0,!0}});window.addEventListener("test",Gd,Gd),window.removeEventListener("test",Gd,Gd)}catch{Ag=!1}var Ws=Ag?{passive:!1}:!1,HO=function(e){return e.tagName==="TEXTAREA"},Dx=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!HO(e)&&a[t]==="visible")},zO=function(e){return Dx(e,"overflowY")},$O=function(e){return Dx(e,"overflowX")},Hv=function(e,t){var a=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Tx(e,s);if(c){var l=kx(e,s),u=l[1],f=l[2];if(u>f)return!0}s=s.parentNode}while(s&&s!==a.body);return!1},UO=function(e){var t=e.scrollTop,a=e.scrollHeight,s=e.clientHeight;return[t,a,s]},LO=function(e){var t=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth;return[t,a,s]},Tx=function(e,t){return e==="v"?zO(t):$O(t)},kx=function(e,t){return e==="v"?UO(t):LO(t)},PO=function(e,t){return e==="h"&&t==="rtl"?-1:1},FO=function(e,t,a,s,c){var l=PO(e,window.getComputedStyle(t).direction),u=l*s,f=a.target,h=t.contains(f),A=!1,y=u>0,m=0,E=0;do{if(!f)break;var b=kx(e,f),w=b[0],x=b[1],j=b[2],I=x-j-l*w;(w||I)&&Tx(e,f)&&(m+=I,E+=w);var C=f.parentNode;f=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(y&&Math.abs(m)<1||!y&&Math.abs(E)<1)&&(A=!0),A},Yd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zv=function(e){return[e.deltaX,e.deltaY]},$v=function(e){return e&&"current"in e?e.current:e},VO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qO=function(e){return`
|
|
87
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
88
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
89
|
+
`)},KO=0,eo=[];function JO(e){var t=B.useRef([]),a=B.useRef([0,0]),s=B.useRef(),c=B.useState(KO++)[0],l=B.useState(Rx)[0],u=B.useRef(e);B.useEffect(function(){u.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var x=mO([e.lockRef.current],(e.shards||[]).map($v),!0).filter(Boolean);return x.forEach(function(j){return j.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var f=B.useCallback(function(x,j){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!u.current.allowPinchZoom;var I=Yd(x),C=a.current,O="deltaX"in x?x.deltaX:C[0]-I[0],S="deltaY"in x?x.deltaY:C[1]-I[1],_,k=x.target,N=Math.abs(O)>Math.abs(S)?"h":"v";if("touches"in x&&N==="h"&&k.type==="range")return!1;var z=window.getSelection(),M=z&&z.anchorNode,L=M?M===k||M.contains(k):!1;if(L)return!1;var Z=Hv(N,k);if(!Z)return!0;if(Z?_=N:(_=N==="v"?"h":"v",Z=Hv(N,k)),!Z)return!1;if(!s.current&&"changedTouches"in x&&(O||S)&&(s.current=_),!_)return!0;var F=s.current||_;return FO(F,j,x,F==="h"?O:S)},[]),h=B.useCallback(function(x){var j=x;if(!(!eo.length||eo[eo.length-1]!==l)){var I="deltaY"in j?zv(j):Yd(j),C=t.current.filter(function(_){return _.name===j.type&&(_.target===j.target||j.target===_.shadowParent)&&VO(_.delta,I)})[0];if(C&&C.should){j.cancelable&&j.preventDefault();return}if(!C){var O=(u.current.shards||[]).map($v).filter(Boolean).filter(function(_){return _.contains(j.target)}),S=O.length>0?f(j,O[0]):!u.current.noIsolation;S&&j.cancelable&&j.preventDefault()}}},[]),A=B.useCallback(function(x,j,I,C){var O={name:x,delta:j,target:I,should:C,shadowParent:ZO(I)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(S){return S!==O})},1)},[]),y=B.useCallback(function(x){a.current=Yd(x),s.current=void 0},[]),m=B.useCallback(function(x){A(x.type,zv(x),x.target,f(x,e.lockRef.current))},[]),E=B.useCallback(function(x){A(x.type,Yd(x),x.target,f(x,e.lockRef.current))},[]);B.useEffect(function(){return eo.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:E}),document.addEventListener("wheel",h,Ws),document.addEventListener("touchmove",h,Ws),document.addEventListener("touchstart",y,Ws),function(){eo=eo.filter(function(x){return x!==l}),document.removeEventListener("wheel",h,Ws),document.removeEventListener("touchmove",h,Ws),document.removeEventListener("touchstart",y,Ws)}},[]);var b=e.removeScrollBar,w=e.inert;return B.createElement(B.Fragment,null,w?B.createElement(l,{styles:qO(c)}):null,b?B.createElement(YO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const XO=QO(Nx,JO);var Mx=B.forwardRef(function(e,t){return B.createElement(Ou,Ma({},e,{ref:t,sideCar:XO}))});Mx.classNames=Ou.classNames;var WO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,Hd=new WeakMap,zd={},_h=0,Gx=function(e){return e&&(e.host||Gx(e.parentNode))},e_=function(e,t){return t.map(function(a){if(e.contains(a))return a;var s=Gx(a);return s&&e.contains(s)?s:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},t_=function(e,t,a,s){var c=e_(t,Array.isArray(e)?e:[e]);zd[a]||(zd[a]=new WeakMap);var l=zd[a],u=[],f=new Set,h=new Set(c),A=function(m){!m||f.has(m)||(f.add(m),A(m.parentNode))};c.forEach(A);var y=function(m){!m||h.has(m)||Array.prototype.forEach.call(m.children,function(E){if(f.has(E))y(E);else try{var b=E.getAttribute(s),w=b!==null&&b!=="false",x=(to.get(E)||0)+1,j=(l.get(E)||0)+1;to.set(E,x),l.set(E,j),u.push(E),x===1&&w&&Hd.set(E,!0),j===1&&E.setAttribute(a,"true"),w||E.setAttribute(s,"true")}catch(I){console.error("aria-hidden: cannot operate on ",E,I)}})};return y(t),f.clear(),_h++,function(){u.forEach(function(m){var E=to.get(m)-1,b=l.get(m)-1;to.set(m,E),l.set(m,b),E||(Hd.has(m)||m.removeAttribute(s),Hd.delete(m)),b||m.removeAttribute(a)}),_h--,_h||(to=new WeakMap,to=new WeakMap,Hd=new WeakMap,zd={})}},n_=function(e,t,a){a===void 0&&(a="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),c=WO(e);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),t_(s,c,a,"aria-hidden")):function(){return null}},a_=Object.defineProperty,qn=(e,t)=>a_(e,"name",{value:t,configurable:!0}),gA="Dialog",[Yx,Hx]=Qi(gA),[i_,wa]=Yx(gA),r_=qn(e=>{const{__scopeDialog:t,children:a,open:s,defaultOpen:c,onOpenChange:l,modal:u=!0}=e,f=B.useRef(null),h=B.useRef(null),[A,y]=dl({prop:s,defaultProp:c??!1,onChange:l,caller:gA}),[m,E]=B.useState(0),[b,w]=B.useState(0);return r.jsx(i_,{scope:t,triggerRef:f,contentRef:h,contentId:ns(),titleId:ns(),descriptionId:ns(),titlePresent:m>0,descriptionPresent:b>0,setTitleCount:E,setDescriptionCount:w,open:A,onOpenChange:y,onOpenToggle:B.useCallback(()=>y(x=>!x),[y]),modal:u,children:a})},"Dialog"),s_="DialogTrigger",o_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(s_,s),u=Gt(a,l.triggerRef);return r.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":_u(l.open),...c,ref:u,onClick:ut(t.onClick,l.onOpenToggle)})},"DialogTrigger")),zx="DialogPortal",[c_,$x]=Yx(zx,{forceMount:void 0}),l_=qn(e=>{const{__scopeDialog:t,forceMount:a,children:s,container:c}=e,l=wa(zx,t);return r.jsx(c_,{scope:t,forceMount:a,children:B.Children.map(s,u=>r.jsx(No,{present:a||l.open,children:r.jsx(Sx,{asChild:!0,container:c,children:u})}))})},"DialogPortal"),mg="DialogOverlay",d_=B.forwardRef(qn(function(t,a){const s=$x(mg,t.__scopeDialog),{forceMount:c=s.forceMount,...l}=t,u=wa(mg,t.__scopeDialog);return u.modal?r.jsx(No,{present:c||u.open,children:r.jsx(f_,{...l,ref:a})}):null},"DialogOverlay")),u_=is("DialogOverlay.RemoveScroll"),f_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(mg,s),u=Bx(),f=Gt(a,u);return r.jsx(Mx,{as:u_,allowPinchZoom:!0,shards:[l.contentRef],children:r.jsx(Zt.div,{"data-state":_u(l.open),...c,ref:f,style:{pointerEvents:"auto",...c.style}})})},"DialogOverlayImpl")),Lc="DialogContent",p_=B.forwardRef(qn(function(t,a){const s=$x(Lc,t.__scopeDialog),{forceMount:c=s.forceMount,...l}=t,u=wa(Lc,t.__scopeDialog);return r.jsx(No,{present:c||u.open,children:u.modal?r.jsx(h_,{...l,ref:a}):r.jsx(g_,{...l,ref:a})})},"DialogContent")),h_=B.forwardRef(qn(function(t,a){const s=wa(Lc,t.__scopeDialog),c=B.useRef(null),l=Gt(a,s.contentRef,c);return B.useEffect(()=>{const u=c.current;if(u)return n_(u)},[]),r.jsx(Ux,{...t,ref:l,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:ut(t.onCloseAutoFocus,u=>{var f;u.preventDefault(),(f=s.triggerRef.current)==null||f.focus()}),onPointerDownOutside:ut(t.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:ut(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),g_=B.forwardRef(qn(function(t,a){const s=wa(Lc,t.__scopeDialog),c=B.useRef(!1),l=B.useRef(!1);return r.jsx(Ux,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var f,h;(f=t.onCloseAutoFocus)==null||f.call(t,u),u.defaultPrevented||(c.current||(h=s.triggerRef.current)==null||h.focus(),u.preventDefault()),c.current=!1,l.current=!1},onInteractOutside:u=>{var A,y;(A=t.onInteractOutside)==null||A.call(t,u),u.defaultPrevented||(c.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const f=u.target;((y=s.triggerRef.current)==null?void 0:y.contains(f))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"DialogContentNonModal")),Ux=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,trapFocus:c,onOpenAutoFocus:l,onCloseAutoFocus:u,...f}=t,h=wa(Lc,s);return hA(),r.jsx(r.Fragment,{children:r.jsx(fO,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:l,onUnmountAutoFocus:u,children:r.jsx(Ex,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":_u(h.open),...f,ref:a,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),A_="DialogTitle",m_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(A_,s),{setTitleCount:u}=l;return Qn(()=>(u(f=>f+1),()=>u(f=>f-1)),[u]),r.jsx(Zt.h2,{id:l.titleId,...c,ref:a})},"DialogTitle")),y_="DialogDescription",E_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(y_,s),{setDescriptionCount:u}=l;return Qn(()=>(u(f=>f+1),()=>u(f=>f-1)),[u]),r.jsx(Zt.p,{id:l.descriptionId,...c,ref:a})},"DialogDescription")),B_="DialogClose",Lx=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(B_,s);return r.jsx(Zt.button,{type:"button",...c,ref:a,onClick:ut(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function _u(e){return e?"open":"closed"}qn(_u,"getState");var v_=Object.defineProperty,Ii=(e,t)=>v_(e,"name",{value:t,configurable:!0}),b_="AlertDialog",[w_,Y4]=Qi(b_,[Hx]),Ci=Hx(),x_=Ii(e=>{const{__scopeAlertDialog:t,...a}=e,s=Ci(t);return r.jsx(r_,{...s,...a,modal:!0})},"AlertDialog");B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(o_,{...l,...c,ref:a})},"AlertDialogTrigger"));var j_=Ii(e=>{const{__scopeAlertDialog:t,...a}=e,s=Ci(t);return r.jsx(l_,{...s,...a})},"AlertDialogPortal"),Q_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(d_,{...l,...c,ref:a})},"AlertDialogOverlay")),I_="AlertDialogContent",[C_,S_]=w_(I_),O_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,children:c,...l}=t,u=Ci(s),f=B.useRef(null),h=Gt(a,f),A=B.useRef(null);return r.jsx(C_,{scope:s,cancelRef:A,children:r.jsx(p_,{role:"alertdialog",...u,...l,ref:h,onOpenAutoFocus:ut(l.onOpenAutoFocus,y=>{var m;y.preventDefault(),(m=A.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:y=>y.preventDefault(),onInteractOutside:y=>y.preventDefault(),children:c})})},"AlertDialogContent")),__=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(m_,{...l,...c,ref:a})},"AlertDialogTitle")),N_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(E_,{...l,...c,ref:a})},"AlertDialogDescription"));B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(Lx,{...l,...c,ref:a})},"AlertDialogAction"));var R_="AlertDialogCancel",D_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,{cancelRef:l}=S_(R_,s),u=Ci(s),f=Gt(a,l);return r.jsx(Lx,{...u,...c,ref:f})},"AlertDialogCancel")),T_=x_,k_=j_,M_=Q_,G_=O_,Y_=D_,H_=__,z_=N_,$_=Object.defineProperty,U_=(e,t)=>$_(e,"name",{value:t,configurable:!0});function Px(e){const[t,a]=B.useState(void 0);return Qn(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const l=c[0];let u,f;if("borderBoxSize"in l){const h=l.borderBoxSize,A=Array.isArray(h)?h[0]:h;u=A.inlineSize,f=A.blockSize}else u=e.offsetWidth,f=e.offsetHeight;a({width:u,height:f})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else a(void 0)},[e]),t}U_(Px,"useSize");const L_=["top","right","bottom","left"],gr=Math.min,Bi=Math.max,uu=Math.round,$d=Math.floor,vi=e=>({x:e,y:e}),P_={left:"right",right:"left",bottom:"top",top:"bottom"};function Fx(e,t,a){return Bi(e,gr(t,a))}function xi(e,t){return typeof e=="function"?e(t):e}function Ar(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function AA(e){return e==="x"?"y":"x"}function mA(e){return e==="y"?"height":"width"}function Ga(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function yA(e){return AA(Ga(e))}function F_(e,t,a){a===void 0&&(a=!1);const s=Ro(e),c=yA(e),l=mA(c);let u=c==="x"?s===(a?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=fu(u)),[u,fu(u)]}function V_(e){const t=fu(e);return[yg(e),t,yg(t)]}function yg(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Uv=["left","right"],Lv=["right","left"],q_=["top","bottom"],K_=["bottom","top"];function J_(e,t,a){switch(e){case"top":case"bottom":return a?t?Lv:Uv:t?Uv:Lv;case"left":case"right":return t?q_:K_;default:return[]}}function Z_(e,t,a,s){const c=Ro(e);let l=J_(Ar(e),a==="start",s);return c&&(l=l.map(u=>u+"-"+c),t&&(l=l.concat(l.map(yg)))),l}function fu(e){const t=Ar(e);return P_[t]+e.slice(t.length)}function X_(e){var t,a,s,c;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(s=e.bottom)!=null?s:0,left:(c=e.left)!=null?c:0}}function Vx(e){return typeof e!="number"?X_(e):{top:e,right:e,bottom:e,left:e}}function pu(e){const{x:t,y:a,width:s,height:c}=e;return{width:s,height:c,top:a,left:t,right:t+s,bottom:a+c,x:t,y:a}}function Pv(e,t,a){let{reference:s,floating:c}=e;const l=Ga(t),u=yA(t),f=mA(u),h=Ar(t),A=l==="y",y=s.x+s.width/2-c.width/2,m=s.y+s.height/2-c.height/2,E=s[f]/2-c[f]/2;let b;switch(h){case"top":b={x:y,y:s.y-c.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:m};break;case"left":b={x:s.x-c.width,y:m};break;default:b={x:s.x,y:s.y}}const w=Ro(t);return w&&(b[u]+=E*(w==="end"?1:-1)*(a&&A?-1:1)),b}async function W_(e,t){var a;t===void 0&&(t={});const{x:s,y:c,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:A="clippingAncestors",rootBoundary:y="viewport",elementContext:m="floating",altBoundary:E=!1,padding:b=0}=xi(t,e),w=Vx(b),j=f[E?m==="floating"?"reference":"floating":m],I=pu(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(j)))==null||a?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:y,strategy:h})),C=m==="floating"?{x:s,y:c,width:u.floating.width,height:u.floating.height}:u.reference,O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),S=await(l.isElement==null?void 0:l.isElement(O))&&await(l.getScale==null?void 0:l.getScale(O))||{x:1,y:1},_=pu(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:O,strategy:h}):C);return{top:(I.top-_.top+w.top)/S.y,bottom:(_.bottom-I.bottom+w.bottom)/S.y,left:(I.left-_.left+w.left)/S.x,right:(_.right-I.right+w.right)/S.x}}const eN=50,tN=async(e,t,a)=>{const{placement:s="bottom",strategy:c="absolute",middleware:l=[],platform:u}=a,f=u.detectOverflow?u:{...u,detectOverflow:W_},h=await(u.isRTL==null?void 0:u.isRTL(t));let A=await u.getElementRects({reference:e,floating:t,strategy:c}),{x:y,y:m}=Pv(A,s,h),E=s,b=0;const w={};for(let x=0;x<l.length;x++){const j=l[x];if(!j)continue;const{name:I,fn:C}=j,{x:O,y:S,data:_,reset:k}=await C({x:y,y:m,initialPlacement:s,placement:E,strategy:c,middlewareData:w,rects:A,platform:f,elements:{reference:e,floating:t}});y=O??y,m=S??m,w[I]={...w[I],..._},k&&b<eN&&(b++,typeof k=="object"&&(k.placement&&(E=k.placement),k.rects&&(A=k.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:c}):k.rects),{x:y,y:m}=Pv(A,E,h)),x=-1)}return{x:y,y:m,placement:E,strategy:c,middlewareData:w}},nN=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:s,placement:c,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:A,padding:y=0}=xi(e,t)||{};if(A==null)return{};const m=Vx(y),E={x:a,y:s},b=yA(c),w=mA(b),x=await u.getDimensions(A),j=b==="y",I=j?"top":"left",C=j?"bottom":"right",O=j?"clientHeight":"clientWidth",S=l.reference[w]+l.reference[b]-E[b]-l.floating[w],_=E[b]-l.reference[b],k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(A));let N=k?k[O]:0;(!N||!await(u.isElement==null?void 0:u.isElement(k)))&&(N=f.floating[O]||l.floating[w]);const z=S/2-_/2,M=N/2-x[w]/2-1,L=gr(m[I],M),Z=gr(m[C],M),F=N-x[w]-Z,oe=N/2-x[w]/2+z,re=Fx(L,oe,F),pe=!h.arrow&&Ro(c)!=null&&oe!==re&&l.reference[w]/2-(oe<L?L:Z)-x[w]/2<0,Y=pe?oe<L?oe-L:oe-F:0;return{[b]:E[b]+Y,data:{[b]:re,centerOffset:oe-re-Y,...pe&&{alignmentOffset:Y}},reset:pe}}}),aN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,s;const{placement:c,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:A}=t,{mainAxis:y=!0,crossAxis:m=!0,fallbackPlacements:E,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...j}=xi(e,t);if((a=l.arrow)!=null&&a.alignmentOffset)return{};const I=Ar(c),C=Ga(f),O=Ar(f)===f,S=await(h.isRTL==null?void 0:h.isRTL(A.floating)),_=E||(O||!x?[fu(f)]:V_(f)),k=w!=="none";!E&&k&&_.push(...Z_(f,x,w,S));const N=[f,..._],z=await h.detectOverflow(t,j),M=[];let L=((s=l.flip)==null?void 0:s.overflows)||[];if(y&&M.push(z[I]),m){const re=F_(c,u,S);M.push(z[re[0]],z[re[1]])}if(L=[...L,{placement:c,overflows:M}],!M.every(re=>re<=0)){var Z,F;const re=(((Z=l.flip)==null?void 0:Z.index)||0)+1,pe=N[re];if(pe&&(!(m==="alignment"?C!==Ga(pe):!1)||L.every(te=>Ga(te.placement)===C?te.overflows[0]>0:!0)))return{data:{index:re,overflows:L},reset:{placement:pe}};let Y=(F=L.filter(V=>V.overflows[0]<=0).sort((V,te)=>V.overflows[1]-te.overflows[1])[0])==null?void 0:F.placement;if(!Y)switch(b){case"bestFit":{var oe;const V=(oe=L.filter(te=>{if(k){const le=Ga(te.placement);return le===C||le==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(le=>le>0).reduce((le,fe)=>le+fe,0)]).sort((te,le)=>te[1]-le[1])[0])==null?void 0:oe[0];V&&(Y=V);break}case"initialPlacement":Y=f;break}if(c!==Y)return{reset:{placement:Y}}}return{}}}};function Fv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vv(e){return L_.some(t=>e[t]>=0)}const iN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a,platform:s}=t,{strategy:c="referenceHidden",...l}=xi(e,t);switch(c){case"referenceHidden":{const u=await s.detectOverflow(t,{...l,elementContext:"reference"}),f=Fv(u,a.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Vv(f)}}}case"escaped":{const u=await s.detectOverflow(t,{...l,altBoundary:!0}),f=Fv(u,a.floating);return{data:{escapedOffsets:f,escaped:Vv(f)}}}default:return{}}}}},qx=new Set(["left","top"]);async function rN(e,t){const{placement:a,platform:s,elements:c}=e,l=await(s.isRTL==null?void 0:s.isRTL(c.floating)),u=Ar(a),f=Ro(a),h=Ga(a)==="y",A=qx.has(u)?-1:1,y=l&&h?-1:1,m=xi(t,e);let{mainAxis:E,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&typeof w=="number"&&(b=f==="end"?w*-1:w),h?{x:b*y,y:E*A}:{x:E*A,y:b*y}}const sN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,s;const{x:c,y:l,placement:u,middlewareData:f}=t,h=await rN(t,e);return u===((a=f.offset)==null?void 0:a.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:c+h.x,y:l+h.y,data:{...h,placement:u}}}}},oN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:s,placement:c,platform:l}=t,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:C=>{let{x:O,y:S}=C;return{x:O,y:S}}},...A}=xi(e,t),y={x:a,y:s},m=await l.detectOverflow(t,A),E=Ga(c),b=AA(E);let w=y[b],x=y[E];const j=(C,O)=>Fx(O+m[C==="y"?"top":"left"],O,O-m[C==="y"?"bottom":"right"]);u&&(w=j(b,w)),f&&(x=j(E,x));const I=h.fn({...t,[b]:w,[E]:x});return{...I,data:{x:I.x-a,y:I.y-s,enabled:{[b]:u,[E]:f}}}}}},cN=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,s;const{x:c,y:l,placement:u,rects:f,middlewareData:h}=t,{offset:A=0,mainAxis:y=!0,crossAxis:m=!0}=xi(e,t),E={x:c,y:l},b=Ga(u),w=AA(b);let x=E[w],j=E[b];const I=xi(A,t),C=typeof I=="number"?{mainAxis:I,crossAxis:0}:{mainAxis:(a=I.mainAxis)!=null?a:0,crossAxis:(s=I.crossAxis)!=null?s:0};if(y){const _=w==="y"?"height":"width",k=f.reference[w]-f.floating[_]+C.mainAxis,N=f.reference[w]+f.reference[_]-C.mainAxis;x<k?x=k:x>N&&(x=N)}if(m){var O,S;const _=w==="y"?"width":"height",k=qx.has(Ar(u)),N=f.reference[b]-f.floating[_]+(k&&((O=h.offset)==null?void 0:O[b])||0)+(k?0:C.crossAxis),z=f.reference[b]+f.reference[_]+(k?0:((S=h.offset)==null?void 0:S[b])||0)-(k?C.crossAxis:0);j<N?j=N:j>z&&(j=z)}return{[w]:x,[b]:j}}}},lN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:a,rects:s,platform:c,elements:l}=t,{apply:u=()=>{},...f}=xi(e,t),h=await c.detectOverflow(t,f),A=Ar(a),y=Ro(a),m=Ga(a)==="y",{width:E,height:b}=s.floating;let w,x;A==="top"||A==="bottom"?(w=A,x=y===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(x=A,w=y==="end"?"top":"bottom");const j=b-h.top-h.bottom,I=E-h.left-h.right,C=gr(b-h[w],j),O=gr(E-h[x],I),S=t.middlewareData.shift,_=!S;let k=C,N=O;S!=null&&S.enabled.x&&(N=I),S!=null&&S.enabled.y&&(k=j),_&&!y&&(m?N=E-2*Bi(h.left,h.right):k=b-2*Bi(h.top,h.bottom)),await u({...t,availableWidth:N,availableHeight:k});const z=await c.getDimensions(l.floating);return E!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Nu(){return typeof window<"u"}function Do(e){return Kx(e)?(e.nodeName||"").toLowerCase():"#document"}function In(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Si(e){var t;return(t=(Kx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kx(e){return Nu()?e instanceof Node||e instanceof In(e).Node:!1}function za(e){return Nu()?e instanceof Element||e instanceof In(e).Element:!1}function Er(e){return Nu()?e instanceof HTMLElement||e instanceof In(e).HTMLElement:!1}function qv(e){return!Nu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof In(e).ShadowRoot}function Ru(e){const{overflow:t,overflowX:a,overflowY:s,display:c}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+a)&&c!=="inline"&&c!=="contents"}function dN(e){return/^(table|td|th)$/.test(Do(e))}function Du(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const uN=/transform|translate|scale|rotate|perspective|filter/,fN=/paint|layout|strict|content/,zr=e=>!!e&&e!=="none";let Nh;function EA(e){const t=za(e)?$a(e):e;return zr(t.transform)||zr(t.translate)||zr(t.scale)||zr(t.rotate)||zr(t.perspective)||!BA()&&(zr(t.backdropFilter)||zr(t.filter))||uN.test(t.willChange||"")||fN.test(t.contain||"")}function pN(e){let t=rs(e);for(;Er(t)&&!Pc(t);){if(EA(t))return t;if(Du(t))return null;t=rs(t)}return null}function BA(){return Nh==null&&(Nh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nh}function Pc(e){return/^(html|body|#document)$/.test(Do(e))}function $a(e){return In(e).getComputedStyle(e)}function Tu(e){return za(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rs(e){if(Do(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qv(e)&&e.host||Si(e);return qv(t)?t.host:t}function Jx(e){const t=rs(e);return Pc(t)?(e.ownerDocument||e).body:Er(t)&&Ru(t)?t:Jx(t)}function Fc(e,t,a){var s;t===void 0&&(t=[]),a===void 0&&(a=!0);const c=Jx(e),l=c===((s=e.ownerDocument)==null?void 0:s.body),u=In(c);if(l){const f=Eg(u);return t.concat(u,u.visualViewport||[],Ru(c)?c:[],f&&a?Fc(f):[])}else return t.concat(c,Fc(c,[],a))}function Eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zx(e){const t=$a(e);let a=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const c=Er(e),l=c?e.offsetWidth:a,u=c?e.offsetHeight:s,f=uu(a)!==l||uu(s)!==u;return f&&(a=l,s=u),{width:a,height:s,$:f}}function vA(e){return za(e)?e:e.contextElement}function lo(e){const t=vA(e);if(!Er(t))return vi(1);const a=t.getBoundingClientRect(),{width:s,height:c,$:l}=Zx(t);let u=(l?uu(a.width):a.width)/s,f=(l?uu(a.height):a.height)/c;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const hN=vi(0);function Xx(e){const t=In(e);return!BA()||!t.visualViewport?hN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gN(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===In(e)}function ss(e,t,a,s){t===void 0&&(t=!1),a===void 0&&(a=!1);const c=e.getBoundingClientRect(),l=vA(e);let u=vi(1);t&&(s?za(s)&&(u=lo(s)):u=lo(e));const f=gN(l,a,s)?Xx(l):vi(0);let h=(c.left+f.x)/u.x,A=(c.top+f.y)/u.y,y=c.width/u.x,m=c.height/u.y;if(l&&s){const E=In(l),b=za(s)?In(s):s;let w=E,x=Eg(w);for(;x&&b!==w;){const j=lo(x),I=x.getBoundingClientRect(),C=$a(x),O=I.left+(x.clientLeft+parseFloat(C.paddingLeft))*j.x,S=I.top+(x.clientTop+parseFloat(C.paddingTop))*j.y;h*=j.x,A*=j.y,y*=j.x,m*=j.y,h+=O,A+=S,w=In(x),x=Eg(w)}}return pu({width:y,height:m,x:h,y:A})}function ku(e,t){const a=Tu(e).scrollLeft;return t?t.left+a:ss(Si(e)).left+a}function Wx(e,t){const a=e.getBoundingClientRect(),s=a.left+t.scrollLeft-ku(e,a),c=a.top+t.scrollTop;return{x:s,y:c}}function AN(e){let{elements:t,rect:a,offsetParent:s,strategy:c}=e;const l=c==="fixed",u=Si(s),f=t?Du(t.floating):!1;if(s===u||f&&l)return a;let h={scrollLeft:0,scrollTop:0},A=vi(1);const y=vi(0),m=Er(s);if((m||!l)&&((Do(s)!=="body"||Ru(u))&&(h=Tu(s)),m)){const b=ss(s);A=lo(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const E=u&&!m&&!l?Wx(u,h):vi(0);return{width:a.width*A.x,height:a.height*A.y,x:a.x*A.x-h.scrollLeft*A.x+y.x+E.x,y:a.y*A.y-h.scrollTop*A.y+y.y+E.y}}function mN(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function yN(e){const t=Tu(e),a=e.ownerDocument.body,s=Bi(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),c=Bi(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let l=-t.scrollLeft+ku(e);const u=-t.scrollTop;return $a(a).direction==="rtl"&&(l+=Bi(e.clientWidth,a.clientWidth)-s),{width:s,height:c,x:l,y:u}}const EN=25;function BN(e,t,a){a===void 0&&(a="viewport");const s=a==="layoutViewport",c=In(e),l=Si(e),u=c.visualViewport;let f=l.clientWidth,h=l.clientHeight,A=0,y=0;if(u){const E=!BA()||t==="fixed";s?E||(A=-u.offsetLeft,y=-u.offsetTop):(f=u.width,h=u.height,E&&(A=u.offsetLeft,y=u.offsetTop))}if(ku(l)<=0){const E=l.ownerDocument,b=E.body,w=getComputedStyle(b),x=E.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,j=Math.abs(l.clientWidth-b.clientWidth-x),I=getComputedStyle(l).scrollbarGutter==="stable both-edges"?j/2:j;I<=EN&&(f-=I)}return{width:f,height:h,x:A,y}}function vN(e,t){const a=ss(e,!0,t==="fixed"),s=a.top+e.clientTop,c=a.left+e.clientLeft,l=lo(e),u=e.clientWidth*l.x,f=e.clientHeight*l.y,h=c*l.x,A=s*l.y;return{width:u,height:f,x:h,y:A}}function Kv(e,t,a){let s;if(t==="viewport"||t==="layoutViewport")s=BN(e,a,t);else if(t==="document")s=yN(Si(e));else if(za(t))s=vN(t,a);else{const c=Xx(e);s={x:t.x-c.x,y:t.y-c.y,width:t.width,height:t.height}}return pu(s)}function bN(e,t){const a=t.get(e);if(a)return a;let s=Fc(e,[],!1).filter(f=>za(f)&&Do(f)!=="body"),c=null;const l=$a(e).position==="fixed";let u=l?rs(e):e;for(;za(u)&&!Pc(u);){const f=$a(u),h=EA(u),A=c?c.position:l?"fixed":"";!h&&(A==="fixed"||A==="absolute"&&f.position==="static")?s=s.filter(m=>m!==u):c=f,u=rs(u)}return t.set(e,s),s}function wN(e){let{element:t,boundary:a,rootBoundary:s,strategy:c}=e;const u=[...a==="clippingAncestors"?Du(t)?[]:bN(t,this._c):[].concat(a),s],f=Kv(t,u[0],c);let h=f.top,A=f.right,y=f.bottom,m=f.left;for(let E=1;E<u.length;E++){const b=Kv(t,u[E],c);h=Bi(b.top,h),A=gr(b.right,A),y=gr(b.bottom,y),m=Bi(b.left,m)}return{width:A-m,height:y-h,x:m,y:h}}function xN(e){const{width:t,height:a}=Zx(e);return{width:t,height:a}}function jN(e,t,a){const s=Er(t),c=Si(t),l=a==="fixed",u=ss(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=vi(0);if((s||!l)&&((Do(t)!=="body"||Ru(c))&&(f=Tu(t)),s)){const E=ss(t,!0,l,t);h.x=E.x+t.clientLeft,h.y=E.y+t.clientTop}!s&&c&&(h.x=ku(c));const A=c&&!s&&!l?Wx(c,f):vi(0),y=u.left+f.scrollLeft-h.x-A.x,m=u.top+f.scrollTop-h.y-A.y;return{x:y,y:m,width:u.width,height:u.height}}function Rh(e){return $a(e).position==="static"}function Jv(e,t){if(!Er(e)||$a(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Si(e)===a&&(a=a.ownerDocument.body),a}function ej(e,t){const a=In(e);if(Du(e))return a;if(!Er(e)){let c=rs(e);for(;c&&!Pc(c);){if(za(c)&&!Rh(c))return c;c=rs(c)}return a}let s=Jv(e,t);for(;s&&dN(s)&&Rh(s);)s=Jv(s,t);return s&&Pc(s)&&Rh(s)&&!EA(s)?a:s||pN(e)||a}const QN=async function(e){const t=this.getOffsetParent||ej,a=this.getDimensions,s=await a(e.floating);return{reference:jN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function IN(e){return $a(e).direction==="rtl"}const CN={convertOffsetParentRelativeRectToViewportRelativeRect:AN,getDocumentElement:Si,getClippingRect:wN,getOffsetParent:ej,getElementRects:QN,getClientRects:mN,getDimensions:xN,getScale:lo,isElement:za,isRTL:IN};function tj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SN(e,t,a){let s=null,c;const l=Si(e);function u(){var y;clearTimeout(c),(y=s)==null||y.disconnect(),s=null}function f(y,m){y===void 0&&(y=!1),m===void 0&&(m=1),u();const E=e.getBoundingClientRect(),{left:b,top:w,width:x,height:j}=E;if(y||t(),!x||!j)return;const I=$d(w),C=$d(l.clientWidth-(b+x)),O=$d(l.clientHeight-(w+j)),S=$d(b),k={rootMargin:-I+"px "+-C+"px "+-O+"px "+-S+"px",threshold:Bi(0,gr(1,m))||1};let N=!0;function z(M){const L=M[0].intersectionRatio;if(!tj(E,e.getBoundingClientRect()))return f();if(L!==m){if(!N)return f();L?f(!1,L):c=setTimeout(()=>{f(!1,1e-7)},1e3)}N=!1}try{s=new IntersectionObserver(z,{...k,root:l.ownerDocument})}catch{s=new IntersectionObserver(z,k)}s.observe(e)}const h=In(e),A=()=>f(a);return h.addEventListener("resize",A),f(!0),()=>{h.removeEventListener("resize",A),u()}}function ON(e,t,a,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,A=vA(e),y=c||l?[...A?Fc(A):[],...t?Fc(t):[]]:[];y.forEach(I=>{c&&I.addEventListener("scroll",a),l&&I.addEventListener("resize",a)});const m=A&&f?SN(A,a,l):null;let E=-1,b=null;u&&(b=new ResizeObserver(I=>{let[C]=I;C&&C.target===A&&b&&t&&(b.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(t)})),a()}),A&&!h&&b.observe(A),t&&b.observe(t));let w,x=h?ss(e):null;h&&j();function j(){const I=ss(e);x&&!tj(x,I)&&a(),x=I,w=requestAnimationFrame(j)}return a(),()=>{var I;y.forEach(C=>{c&&C.removeEventListener("scroll",a),l&&C.removeEventListener("resize",a)}),m==null||m(),(I=b)==null||I.disconnect(),b=null,h&&cancelAnimationFrame(w)}}const _N=sN,NN=oN,RN=aN,DN=lN,TN=iN,Zv=nN,kN=cN,MN=(e,t,a)=>{const s=new Map,c=a??{},l={...CN,...c.platform,_c:s};return tN(e,t,{...c,platform:l})};var GN=typeof document<"u",YN=function(){},ru=GN?B.useLayoutEffect:YN;function hu(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 a,s,c;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(s=a;s--!==0;)if(!hu(e[s],t[s]))return!1;return!0}if(c=Object.keys(e),a=c.length,a!==Object.keys(t).length)return!1;for(s=a;s--!==0;)if(!{}.hasOwnProperty.call(t,c[s]))return!1;for(s=a;s--!==0;){const l=c[s];if(!(l==="_owner"&&e.$$typeof)&&!hu(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function nj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xv(e,t){const a=nj(e);return Math.round(t*a)/a}function Dh(e){const t=B.useRef(e);return ru(()=>{t.current=e}),t}function HN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:a="absolute",middleware:s=[],platform:c,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:h,open:A}=e,[y,m]=B.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[E,b]=B.useState(s);hu(E,s)||b(s);const[w,x]=B.useState(null),[j,I]=B.useState(null),C=B.useCallback(te=>{te!==k.current&&(k.current=te,x(te))},[]),O=B.useCallback(te=>{te!==N.current&&(N.current=te,I(te))},[]),S=l||w,_=u||j,k=B.useRef(null),N=B.useRef(null),z=B.useRef(y),M=h!=null,L=Dh(h),Z=Dh(c),F=Dh(A),oe=B.useCallback(()=>{if(!k.current||!N.current)return;const te={placement:t,strategy:a,middleware:E};Z.current&&(te.platform=Z.current),MN(k.current,N.current,te).then(le=>{const fe={...le,isPositioned:F.current!==!1};re.current&&!hu(z.current,fe)&&(z.current=fe,oA.flushSync(()=>{m(fe)}))})},[E,t,a,Z,F]);ru(()=>{A===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(te=>({...te,isPositioned:!1})))},[A]);const re=B.useRef(!1);ru(()=>(re.current=!0,()=>{re.current=!1}),[]),ru(()=>{if(S&&(k.current=S),_&&(N.current=_),S&&_){if(L.current)return L.current(S,_,oe);oe()}},[S,_,oe,L,M]);const pe=B.useMemo(()=>({reference:k,floating:N,setReference:C,setFloating:O}),[C,O]),Y=B.useMemo(()=>({reference:S,floating:_}),[S,_]),V=B.useMemo(()=>{const te={position:a,left:0,top:0};if(!Y.floating)return te;const le=Xv(Y.floating,y.x),fe=Xv(Y.floating,y.y);return f?{...te,transform:"translate("+le+"px, "+fe+"px)",...nj(Y.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:le,top:fe}},[a,f,Y.floating,y.x,y.y]);return B.useMemo(()=>({...y,update:oe,refs:pe,elements:Y,floatingStyles:V}),[y,oe,pe,Y,V])}const zN=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:s,padding:c}=typeof e=="function"?e(a):e;return s&&t(s)?s.current!=null?Zv({element:s.current,padding:c}).fn(a):{}:s?Zv({element:s,padding:c}).fn(a):{}}}},$N=(e,t)=>{const a=_N(e);return{name:a.name,fn:a.fn,options:[e,t]}},UN=(e,t)=>{const a=NN(e);return{name:a.name,fn:a.fn,options:[e,t]}},LN=(e,t)=>({fn:kN(e).fn,options:[e,t]}),PN=(e,t)=>{const a=RN(e);return{name:a.name,fn:a.fn,options:[e,t]}},FN=(e,t)=>{const a=DN(e);return{name:a.name,fn:a.fn,options:[e,t]}},VN=(e,t)=>{const a=TN(e);return{name:a.name,fn:a.fn,options:[e,t]}},qN=(e,t)=>{const a=zN(e);return{name:a.name,fn:a.fn,options:[e,t]}};var KN=Object.defineProperty,fr=(e,t)=>KN(e,"name",{value:t,configurable:!0}),aj="Popper",[ij,rj]=Qi(aj),[JN,sj]=ij(aj),ZN=fr(e=>{const{__scopePopper:t,children:a}=e,[s,c]=B.useState(null),[l,u]=B.useState(void 0);return r.jsx(JN,{scope:t,anchor:s,onAnchorChange:c,placementState:l,setPlacementState:u,children:a})},"Popper"),XN="PopperAnchor",WN=B.forwardRef(fr(function(t,a){const{__scopePopper:s,virtualRef:c,...l}=t,u=sj(XN,s),f=B.useRef(null),h=u.onAnchorChange,A=B.useCallback(x=>{f.current=x,x&&h(x)},[h]),y=Gt(a,A),m=B.useRef(null);B.useEffect(()=>{if(!c)return;const x=m.current;m.current=c.current,x!==m.current&&h(m.current)});const E=u.placementState&&Mu(u.placementState),b=E==null?void 0:E[0],w=E==null?void 0:E[1];return c?null:r.jsx(Zt.div,{"data-radix-popper-side":b,"data-radix-popper-align":w,...l,ref:y})},"PopperAnchor")),oj="PopperContent",[eR,H4]=ij(oj),tR=B.forwardRef(fr(function(t,a){var ne,Ae,we,xe,Ze,Ie,ce;const{__scopePopper:s,side:c="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:A=!0,collisionBoundary:y=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:x,...j}=t,I=sj(oj,s),[C,O]=B.useState(null),S=Gt(a,O),[_,k]=B.useState(null),N=Px(_),z=(N==null?void 0:N.width)??0,M=(N==null?void 0:N.height)??0,L=c+(u!=="center"?"-"+u:""),Z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(y)?y:[y],oe=F.length>0,re={padding:Z,boundary:F.filter(cj),altBoundary:oe},{refs:pe,floatingStyles:Y,placement:V,isPositioned:te,middlewareData:le}=HN({strategy:"fixed",placement:L,whileElementsMounted:fr((...De)=>ON(...De,{animationFrame:w==="always"}),"whileElementsMounted"),elements:{reference:I.anchor},middleware:[$N({mainAxis:l+M,alignmentAxis:f}),A&&UN({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?LN():void 0,...re}),A&&PN({...re}),FN({...re,apply:fr(({elements:De,rects:Oe,availableWidth:xt,availableHeight:mt})=>{const{width:Xt,height:Fa}=Oe.reference,Kn=De.floating.style;Kn.setProperty("--radix-popper-available-width",`${xt}px`),Kn.setProperty("--radix-popper-available-height",`${mt}px`),Kn.setProperty("--radix-popper-anchor-width",`${Xt}px`),Kn.setProperty("--radix-popper-anchor-height",`${Fa}px`)},"apply")}),_&&qN({element:_,padding:h}),nR({arrowWidth:z,arrowHeight:M}),b&&VN({strategy:"referenceHidden",...re,boundary:oe?re.boundary:void 0})]}),fe=I.setPlacementState;Qn(()=>(fe(V),()=>{fe(void 0)}),[V,fe]);const[T,X]=Mu(V),se=hr(x);Qn(()=>{te&&(se==null||se())},[te,se]);const de=(ne=le.arrow)==null?void 0:ne.x,ye=(Ae=le.arrow)==null?void 0:Ae.y,Ee=((we=le.arrow)==null?void 0:we.centerOffset)!==0,[R,J]=B.useState();return Qn(()=>{C&&J(window.getComputedStyle(C).zIndex)},[C]),r.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:te?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:R,"--radix-popper-transform-origin":[(xe=le.transformOrigin)==null?void 0:xe.x,(Ze=le.transformOrigin)==null?void 0:Ze.y].join(" "),...((Ie=le.hide)==null?void 0:Ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:r.jsx(eR,{scope:s,placedSide:T,placedAlign:X,onArrowChange:k,arrowX:de,arrowY:ye,shouldHideArrow:Ee,children:r.jsx(Zt.div,{"data-side":T,"data-align":X,...j,ref:S,style:{...j.style,animation:te?(ce=j.style)==null?void 0:ce.animation:"none"}})})})},"PopperContent"));function cj(e){return e!==null}fr(cj,"isNotNull");var nR=fr(e=>({name:"transformOrigin",options:e,fn(t){var j,I,C;const{placement:a,rects:s,middlewareData:c}=t,u=((j=c.arrow)==null?void 0:j.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[A,y]=Mu(a),m={start:"0%",center:"50%",end:"100%"}[y],E=(((I=c.arrow)==null?void 0:I.x)??0)+f/2,b=(((C=c.arrow)==null?void 0:C.y)??0)+h/2;let w="",x="";return A==="bottom"?(w=u?m:`${E}px`,x=`${-h}px`):A==="top"?(w=u?m:`${E}px`,x=`${s.floating.height+h}px`):A==="right"?(w=`${-h}px`,x=u?m:`${b}px`):A==="left"&&(w=`${s.floating.width+h}px`,x=u?m:`${b}px`),{data:{x:w,y:x}}}}),"transformOrigin");function Mu(e){const[t,a="center"]=e.split("-");return[t,a]}fr(Mu,"getSideAndAlignFromPlacement");var aR=ZN,iR=WN,rR=tR,sR=Object.defineProperty,bA=(e,t)=>sR(e,"name",{value:t,configurable:!0}),Th=!1;function lj(){const[e,t]=B.useState(Th);return B.useEffect(()=>{Th||(Th=!0,t(!0))},[]),e}bA(lj,"useIsHydrated");var dj=Co[" useSyncExternalStore ".trim().toString()];function uj(){return()=>{}}bA(uj,"subscribe");function fj(){return dj(uj,()=>!0,()=>!1)}bA(fj,"useIsHydratedModern");var oR=typeof dj=="function"?fj:lj,cR=Object.defineProperty,ds=(e,t)=>cR(e,"name",{value:t,configurable:!0}),kh="rovingFocusGroup.onEntryFocus",lR={bubbles:!1,cancelable:!0},Gu="RovingFocusGroup",[Bg,pj,dR]=ax(Gu),[uR,hj]=Qi(Gu,[dR]),[fR,pR]=uR(Gu),hR=B.forwardRef(ds(function(t,a){return r.jsx(Bg.Provider,{scope:t.__scopeRovingFocusGroup,children:r.jsx(Bg.Slot,{scope:t.__scopeRovingFocusGroup,children:r.jsx(gR,{...t,ref:a})})})},"RovingFocusGroup")),gR=B.forwardRef(ds(function(t,a){const{__scopeRovingFocusGroup:s,orientation:c,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:A,onEntryFocus:y,preventScrollOnEntryFocus:m=!1,...E}=t,b=B.useRef(null),w=Gt(a,b),x=dA(u),[j,I]=dl({prop:f,defaultProp:h??null,onChange:A,caller:Gu}),[C,O]=B.useState(!1),S=hr(y),_=pj(s),k=B.useRef(!1),[N,z]=B.useState(0);return B.useEffect(()=>{const M=b.current;if(M)return M.addEventListener(kh,S),()=>M.removeEventListener(kh,S)},[S]),r.jsx(fR,{scope:s,orientation:c,dir:x,loop:l,currentTabStopId:j,onItemFocus:B.useCallback(M=>I(M),[I]),onItemShiftTab:B.useCallback(()=>O(!0),[]),onFocusableItemAdd:B.useCallback(()=>z(M=>M+1),[]),onFocusableItemRemove:B.useCallback(()=>z(M=>M-1),[]),children:r.jsx(Zt.div,{tabIndex:C||N===0?-1:0,"data-orientation":c,...E,ref:w,style:{outline:"none",...t.style},onMouseDown:ut(t.onMouseDown,()=>{k.current=!0}),onFocus:ut(t.onFocus,M=>{const L=!k.current;if(M.target===M.currentTarget&&L&&!C){const Z=new CustomEvent(kh,lR);if(M.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const F=_().filter(V=>V.focusable),oe=F.find(V=>V.active),re=F.find(V=>V.id===j),Y=[oe,re,...F].filter(Boolean).map(V=>V.ref.current);wA(Y,m)}}k.current=!1}),onBlur:ut(t.onBlur,()=>O(!1))})})},"RovingFocusGroupImpl")),AR="RovingFocusGroupItem",mR=B.forwardRef(ds(function(t,a){const{__scopeRovingFocusGroup:s,focusable:c=!0,active:l=!1,tabStopId:u,children:f,...h}=t,A=ns(),y=u||A,m=pR(AR,s),E=m.currentTabStopId===y,b=pj(s),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:j}=m,I=oR();return Qn(()=>{if(!(!I||!c))return w(),()=>x()},[I,c,w,x]),B.useEffect(()=>{if(!(I||!c))return w(),()=>x()},[I,c,w,x]),r.jsx(Bg.ItemSlot,{scope:s,id:y,focusable:c,active:l,children:r.jsx(Zt.span,{tabIndex:E?0:-1,"data-orientation":m.orientation,...h,ref:a,onMouseDown:ut(t.onMouseDown,C=>{c?m.onItemFocus(y):C.preventDefault()}),onFocus:ut(t.onFocus,()=>m.onItemFocus(y)),onKeyDown:ut(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){m.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const O=Aj(C,m.orientation,m.dir);if(O!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let _=b().filter(k=>k.focusable).map(k=>k.ref.current);if(O==="last")_.reverse();else if(O==="prev"||O==="next"){O==="prev"&&_.reverse();const k=_.indexOf(C.currentTarget);_=m.loop?mj(_,k+1):_.slice(k+1)}setTimeout(()=>wA(_))}}),children:typeof f=="function"?f({isCurrentTabStop:E,hasTabStop:j!=null}):f})})},"RovingFocusGroupItem")),yR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}ds(gj,"getDirectionAwareKey");function Aj(e,t,a){const s=gj(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return yR[s]}ds(Aj,"getFocusIntent");function wA(e,t=!1){const a=document.activeElement;for(const s of e)if(s===a||(s.focus({preventScroll:t}),document.activeElement!==a))return}ds(wA,"focusFirst");function mj(e,t){return e.map((a,s)=>e[(t+s)%e.length])}ds(mj,"wrapArray");var ER=hR,BR=mR,vR=Object.defineProperty,To=(e,t)=>vR(e,"name",{value:t,configurable:!0}),xA="Tabs",[bR,z4]=Qi(xA,[hj]),yj=hj(),[wR,jA]=bR(xA),xR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,value:c,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:h,activationMode:A="automatic",...y}=t,m=dA(h),[E,b]=dl({prop:c,onChange:l,defaultProp:u??"",caller:xA});return r.jsx(wR,{scope:s,baseId:ns(),value:E,onValueChange:b,orientation:f,dir:m,activationMode:A,children:r.jsx(Zt.div,{dir:m,"data-orientation":f,...y,ref:a})})},"Tabs")),jR="TabsList",QR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,loop:c=!0,...l}=t,u=jA(jR,s),f=yj(s);return r.jsx(ER,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:c,children:r.jsx(Zt.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:a})})},"TabsList")),IR="TabsTrigger",CR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,value:c,disabled:l=!1,...u}=t,f=jA(IR,s),h=yj(s),A=QA(f.baseId,c),y=IA(f.baseId,c),m=c===f.value;return r.jsx(BR,{asChild:!0,...h,focusable:!l,active:m,children:r.jsx(Zt.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":y,"data-state":m?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:A,...u,ref:a,onMouseDown:ut(t.onMouseDown,E=>{!l&&E.button===0&&E.ctrlKey===!1?f.onValueChange(c):E.preventDefault()}),onKeyDown:ut(t.onKeyDown,E=>{l||E.target!==E.currentTarget||[" ","Enter"].includes(E.key)&&f.onValueChange(c)}),onFocus:ut(t.onFocus,()=>{const E=f.activationMode!=="manual";!m&&!l&&E&&f.onValueChange(c)})})})},"TabsTrigger")),SR="TabsContent",OR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,value:c,forceMount:l,children:u,...f}=t,h=jA(SR,s),A=QA(h.baseId,c),y=IA(h.baseId,c),m=c===h.value,E=B.useRef(m);return B.useEffect(()=>{const b=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(No,{present:l||m,children:({present:b})=>r.jsx(Zt.div,{"data-state":m?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":A,hidden:!b,id:y,tabIndex:0,...f,ref:a,style:{...t.style,animationDuration:E.current?"0s":void 0},children:b&&u})})},"TabsContent"));function QA(e,t){return`${e}-trigger-${t}`}To(QA,"makeTriggerId");function IA(e,t){return`${e}-content-${t}`}To(IA,"makeContentId");var _R=xR,NR=QR,RR=CR,DR=OR,TR=Object.defineProperty,Ft=(e,t)=>TR(e,"name",{value:t,configurable:!0}),[CA,$4]=Qi("Tooltip",[rj]),SA=rj(),kR="TooltipProvider",MR=700,vg="tooltip.open",[GR,OA]=CA(kR),YR=Ft(e=>{const{__scopeTooltip:t,delayDuration:a=MR,skipDelayDuration:s=300,disableHoverableContent:c=!1,children:l}=e,u=B.useRef(!0),f=B.useRef(!1),h=B.useRef(0);return B.useEffect(()=>{const A=h.current;return()=>window.clearTimeout(A)},[]),r.jsx(GR,{scope:t,isOpenDelayedRef:u,delayDuration:a,onOpen:B.useCallback(()=>{s<=0||(window.clearTimeout(h.current),u.current=!1)},[s]),onClose:B.useCallback(()=>{s<=0||(window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,s))},[s]),isPointerInTransitRef:f,onPointerInTransitChange:B.useCallback(A=>{f.current=A},[]),disableHoverableContent:c,children:l})},"TooltipProvider"),bg="Tooltip",[HR,ul]=CA(bg),zR=Ft(e=>{const{__scopeTooltip:t,children:a,open:s,defaultOpen:c,onOpenChange:l,disableHoverableContent:u,delayDuration:f}=e,h=OA(bg,e.__scopeTooltip),A=SA(t),[y,m]=B.useState(null),[E,b]=B.useState(void 0),w=ns(),x=B.useRef(0),j=u??h.disableHoverableContent,I=f??h.delayDuration,C=B.useRef(!1),[O,S]=dl({prop:s,defaultProp:c??!1,onChange:Ft(L=>{L?(h.onOpen(),document.dispatchEvent(new CustomEvent(vg))):h.onClose(),l==null||l(L)},"onChange"),caller:bg}),_=B.useMemo(()=>O?C.current?"delayed-open":"instant-open":"closed",[O]),k=B.useCallback(()=>{window.clearTimeout(x.current),x.current=0,C.current=!1,S(!0)},[S]),N=B.useCallback(()=>{window.clearTimeout(x.current),x.current=0,S(!1)},[S]),z=B.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{C.current=!0,S(!0),x.current=0},I)},[I,S]);B.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]);const M=E??w;return r.jsx(aR,{...A,children:r.jsx(HR,{scope:t,contentId:M,setContentId:b,open:O,stateAttribute:_,trigger:y,onTriggerChange:m,onTriggerEnter:B.useCallback(()=>{h.isOpenDelayedRef.current?z():k()},[h.isOpenDelayedRef,z,k]),onTriggerLeave:B.useCallback(()=>{j?N():(window.clearTimeout(x.current),x.current=0)},[N,j]),onOpen:k,onClose:N,disableHoverableContent:j,children:a})})},"Tooltip"),Wv="TooltipTrigger",$R=B.forwardRef(Ft(function(t,a){const{__scopeTooltip:s,...c}=t,l=ul(Wv,s),u=OA(Wv,s),f=SA(s),h=B.useRef(null),A=Gt(a,h,l.onTriggerChange),y=B.useRef(!1),m=B.useRef(!1),E=B.useCallback(()=>y.current=!1,[]);return B.useEffect(()=>()=>document.removeEventListener("pointerup",E),[E]),r.jsx(iR,{asChild:!0,...f,children:r.jsx(Zt.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...c,ref:A,onPointerMove:ut(t.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:ut(t.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:ut(t.onPointerDown,()=>{l.open&&l.onClose(),y.current=!0,document.addEventListener("pointerup",E,{once:!0})}),onFocus:ut(t.onFocus,()=>{y.current||l.onOpen()}),onBlur:ut(t.onBlur,l.onClose),onClick:ut(t.onClick,l.onClose)})})},"TooltipTrigger")),Ej="TooltipPortal",[UR,LR]=CA(Ej,{forceMount:void 0}),PR=Ft(e=>{const{__scopeTooltip:t,forceMount:a,children:s,container:c}=e,l=ul(Ej,t);return r.jsx(UR,{scope:t,forceMount:a,children:r.jsx(No,{present:a||l.open,children:r.jsx(Sx,{asChild:!0,container:c,children:s})})})},"TooltipPortal"),Vc="TooltipContent",FR=B.forwardRef(Ft(function(t,a){const s=LR(Vc,t.__scopeTooltip),{forceMount:c=s.forceMount,side:l="top",...u}=t,f=ul(Vc,t.__scopeTooltip);return r.jsx(No,{present:c||f.open,children:f.disableHoverableContent?r.jsx(Bj,{side:l,...u,ref:a}):r.jsx(VR,{side:l,...u,ref:a})})},"TooltipContent")),VR=B.forwardRef(Ft(function(t,a){const s=ul(Vc,t.__scopeTooltip),c=OA(Vc,t.__scopeTooltip),l=B.useRef(null),u=Gt(a,l),[f,h]=B.useState(null),{trigger:A,onClose:y}=s,m=l.current,{onPointerInTransitChange:E}=c,b=B.useCallback(()=>{h(null),E(!1)},[E]),w=B.useCallback((x,j)=>{const I=x.currentTarget,C={x:x.clientX,y:x.clientY},O=vj(C,I.getBoundingClientRect()),S=bj(C,O),_=wj(j.getBoundingClientRect()),k=jj([...S,..._]);h(k),E(!0)},[E]);return B.useEffect(()=>()=>b(),[b]),B.useEffect(()=>{if(A&&m){const x=Ft(I=>w(I,m),"handleTriggerLeave"),j=Ft(I=>w(I,A),"handleContentLeave");return A.addEventListener("pointerleave",x),m.addEventListener("pointerleave",j),()=>{A.removeEventListener("pointerleave",x),m.removeEventListener("pointerleave",j)}}},[A,m,w,b]),B.useEffect(()=>{if(f){const x=Ft(j=>{const I=j.target,C={x:j.clientX,y:j.clientY},O=(A==null?void 0:A.contains(I))||(m==null?void 0:m.contains(I)),S=!xj(C,f);O?b():S&&(b(),y())},"handleTrackPointerGrace");return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[A,m,f,y,b]),r.jsx(Bj,{...t,ref:u})},"TooltipContentHoverable")),qR=Jw("TooltipContent"),Bj=B.forwardRef(Ft(function(t,a){const{__scopeTooltip:s,children:c,"aria-label":l,id:u,onEscapeKeyDown:f,onPointerDownOutside:h,...A}=t,y=ul(Vc,s),m=SA(s),{onClose:E}=y;B.useEffect(()=>(document.addEventListener(vg,E),()=>document.removeEventListener(vg,E)),[E]),B.useEffect(()=>{if(y.trigger){const w=Ft(x=>{x.target instanceof Node&&x.target.contains(y.trigger)&&E()},"handleScroll");return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[y.trigger,E]);const{setContentId:b}=y;return Qn(()=>(b(u),()=>{b(void 0)}),[u,b]),r.jsx(Ex,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:w=>w.preventDefault(),onDismiss:E,children:r.jsxs(rR,{"data-state":y.stateAttribute,role:l?void 0:"tooltip",id:l?void 0:y.contentId,...m,...A,ref:a,style:{...A.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:[r.jsx(qR,{children:c}),l?r.jsx(Y1,{id:y.contentId,role:"tooltip",children:l}):null]})})},"TooltipContentImpl"));function vj(e,t){const a=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),c=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(a,s,c,l)){case l:return"left";case c:return"right";case a:return"top";case s:return"bottom";default:throw new Error("unreachable")}}Ft(vj,"getExitSideFromRect");function bj(e,t,a=5){const s=[];switch(t){case"top":s.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":s.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":s.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":s.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return s}Ft(bj,"getPaddedExitPoints");function wj(e){const{top:t,right:a,bottom:s,left:c}=e;return[{x:c,y:t},{x:a,y:t},{x:a,y:s},{x:c,y:s}]}Ft(wj,"getPointsFromRect");function xj(e,t){const{x:a,y:s}=e;let c=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],h=t[u],A=f.x,y=f.y,m=h.x,E=h.y;y>s!=E>s&&a<(m-A)*(s-y)/(E-y)+A&&(c=!c)}return c}Ft(xj,"isPointInPolygon");function jj(e){const t=e.slice();return t.sort((a,s)=>a.x<s.x?-1:a.x>s.x?1:a.y<s.y?-1:a.y>s.y?1:0),Qj(t)}Ft(jj,"getHull");function Qj(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const c=e[s];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(c.y-u.y)>=(l.y-u.y)*(c.x-u.x))t.pop();else break}t.push(c)}t.pop();const a=[];for(let s=e.length-1;s>=0;s--){const c=e[s];for(;a.length>=2;){const l=a[a.length-1],u=a[a.length-2];if((l.x-u.x)*(c.y-u.y)>=(l.y-u.y)*(c.x-u.x))a.pop();else break}a.push(c)}return a.pop(),t.length===1&&a.length===1&&t[0].x===a[0].x&&t[0].y===a[0].y?t:t.concat(a)}Ft(Qj,"getHullPresorted");var KR=YR,JR=zR,ZR=$R,XR=PR,WR=FR;const rt=Object.freeze({Root:T_,Portal:k_,Overlay:M_,Content:G_,Title:H_,Description:z_,Cancel:Y_}),Ud=Object.freeze({Root:_R,List:NR,Trigger:RR,Content:DR});/**
|
|
90
|
+
* @license lucide-react v1.31.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Ij=(...e)=>e.filter((t,a,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===a).join(" ").trim();/**
|
|
95
|
+
* @license lucide-react v1.31.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const eD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
100
|
+
* @license lucide-react v1.31.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const tD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,s)=>s?s.toUpperCase():a.toLowerCase());/**
|
|
105
|
+
* @license lucide-react v1.31.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const eb=e=>{const t=tD(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
110
|
+
* @license lucide-react v1.31.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/var Mh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
115
|
+
* @license lucide-react v1.31.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const nD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},aD=B.createContext({}),iD=()=>B.useContext(aD),rD=B.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:s,className:c="",children:l,iconNode:u,...f},h)=>{const{size:A=24,strokeWidth:y=2,absoluteStrokeWidth:m=!1,color:E="currentColor",className:b=""}=iD()??{},w=s??m?Number(a??y)*24/Number(t??A):a??y;return B.createElement("svg",{ref:h,...Mh,width:t??A??Mh.width,height:t??A??Mh.height,stroke:e??E,strokeWidth:w,className:Ij("lucide",b,c),...!l&&!nD(f)&&{"aria-hidden":"true"},...f},[...u.map(([x,j])=>B.createElement(x,j)),...Array.isArray(l)?l:[l]])});/**
|
|
120
|
+
* @license lucide-react v1.31.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const ue=(e,t)=>{const a=B.forwardRef(({className:s,...c},l)=>B.createElement(rD,{ref:l,iconNode:t,className:Ij(`lucide-${eD(eb(e))}`,`lucide-${e}`,s),...c}));return a.displayName=eb(e),a};/**
|
|
125
|
+
* @license lucide-react v1.31.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const sD=[["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"}]],oD=ue("activity",sD);/**
|
|
130
|
+
* @license lucide-react v1.31.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const cD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],lD=ue("arrow-right",cD);/**
|
|
135
|
+
* @license lucide-react v1.31.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const dD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],uD=ue("ban",dD);/**
|
|
140
|
+
* @license lucide-react v1.31.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const fD=[["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"}]],pD=ue("bookmark",fD);/**
|
|
145
|
+
* @license lucide-react v1.31.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const hD=[["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"}]],gD=ue("bot",hD);/**
|
|
150
|
+
* @license lucide-react v1.31.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const AD=[["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"}]],mD=ue("box",AD);/**
|
|
155
|
+
* @license lucide-react v1.31.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const yD=[["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"}]],ED=ue("braces",yD);/**
|
|
160
|
+
* @license lucide-react v1.31.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const BD=[["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"}]],vD=ue("cable",BD);/**
|
|
165
|
+
* @license lucide-react v1.31.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const bD=[["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"}]],wD=ue("calendar-days",bD);/**
|
|
170
|
+
* @license lucide-react v1.31.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const xD=[["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"}]],jD=ue("calendar-range",xD);/**
|
|
175
|
+
* @license lucide-react v1.31.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const QD=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],ID=ue("check-check",QD);/**
|
|
180
|
+
* @license lucide-react v1.31.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const CD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],SD=ue("check",CD);/**
|
|
185
|
+
* @license lucide-react v1.31.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const OD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_D=ue("chevron-down",OD);/**
|
|
190
|
+
* @license lucide-react v1.31.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const ND=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],RD=ue("chevron-left",ND);/**
|
|
195
|
+
* @license lucide-react v1.31.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const DD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],TD=ue("chevron-right",DD);/**
|
|
200
|
+
* @license lucide-react v1.31.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const kD=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],MD=ue("chevron-up",kD);/**
|
|
205
|
+
* @license lucide-react v1.31.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const GD=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],YD=ue("chevrons-up-down",GD);/**
|
|
210
|
+
* @license lucide-react v1.31.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const HD=[["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"}]],zD=ue("circle-alert",HD);/**
|
|
215
|
+
* @license lucide-react v1.31.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const $D=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],UD=ue("circle-check",$D);/**
|
|
220
|
+
* @license lucide-react v1.31.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const LD=[["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"}]],PD=ue("circle-dashed",LD);/**
|
|
225
|
+
* @license lucide-react v1.31.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const FD=[["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=ue("circle-dot-dashed",FD);/**
|
|
230
|
+
* @license lucide-react v1.31.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const qD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],KD=ue("circle-minus",qD);/**
|
|
235
|
+
* @license lucide-react v1.31.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const JD=[["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"}]],ZD=ue("circle-off",JD);/**
|
|
240
|
+
* @license lucide-react v1.31.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const XD=[["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"}]],WD=ue("circle-pause",XD);/**
|
|
245
|
+
* @license lucide-react v1.31.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const eT=[["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"}]],tT=ue("circle-play",eT);/**
|
|
250
|
+
* @license lucide-react v1.31.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const nT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],aT=ue("circle-slash",nT);/**
|
|
255
|
+
* @license lucide-react v1.31.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const iT=[["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"}]],rT=ue("circle-x",iT);/**
|
|
260
|
+
* @license lucide-react v1.31.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const sT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],oT=ue("circle",sT);/**
|
|
265
|
+
* @license lucide-react v1.31.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const cT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],lT=ue("clock",cT);/**
|
|
270
|
+
* @license lucide-react v1.31.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const dT=[["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"}]],uT=ue("columns-3",dT);/**
|
|
275
|
+
* @license lucide-react v1.31.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const fT=[["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"}]],pT=ue("copy",fT);/**
|
|
280
|
+
* @license lucide-react v1.31.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const hT=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],gT=ue("corner-down-right",hT);/**
|
|
285
|
+
* @license lucide-react v1.31.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const AT=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],mT=ue("dot",AT);/**
|
|
290
|
+
* @license lucide-react v1.31.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const yT=[["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"}]],ET=ue("external-link",yT);/**
|
|
295
|
+
* @license lucide-react v1.31.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const BT=[["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"}]],vT=ue("file-check",BT);/**
|
|
300
|
+
* @license lucide-react v1.31.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const bT=[["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"}]],wT=ue("file-diff",bT);/**
|
|
305
|
+
* @license lucide-react v1.31.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const xT=[["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"}]],jT=ue("file-text",xT);/**
|
|
310
|
+
* @license lucide-react v1.31.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const QT=[["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"}]],IT=ue("flag",QT);/**
|
|
315
|
+
* @license lucide-react v1.31.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const CT=[["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"}]],ST=ue("folder",CT);/**
|
|
320
|
+
* @license lucide-react v1.31.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const OT=[["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"}]],_T=ue("funnel",OT);/**
|
|
325
|
+
* @license lucide-react v1.31.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const NT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],RT=ue("gauge",NT);/**
|
|
330
|
+
* @license lucide-react v1.31.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const DT=[["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"}]],TT=ue("git-branch",DT);/**
|
|
335
|
+
* @license lucide-react v1.31.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const kT=[["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"}]],MT=ue("git-commit-horizontal",kT);/**
|
|
340
|
+
* @license lucide-react v1.31.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const GT=[["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"}]],YT=ue("git-pull-request",GT);/**
|
|
345
|
+
* @license lucide-react v1.31.0 - ISC
|
|
346
|
+
*
|
|
347
|
+
* This source code is licensed under the ISC license.
|
|
348
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
+
*/const HT=[["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"}]],zT=ue("hash",HT);/**
|
|
350
|
+
* @license lucide-react v1.31.0 - ISC
|
|
351
|
+
*
|
|
352
|
+
* This source code is licensed under the ISC license.
|
|
353
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
+
*/const $T=[["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"}]],UT=ue("inbox",$T);/**
|
|
355
|
+
* @license lucide-react v1.31.0 - ISC
|
|
356
|
+
*
|
|
357
|
+
* This source code is licensed under the ISC license.
|
|
358
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
+
*/const LT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],PT=ue("info",LT);/**
|
|
360
|
+
* @license lucide-react v1.31.0 - ISC
|
|
361
|
+
*
|
|
362
|
+
* This source code is licensed under the ISC license.
|
|
363
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
+
*/const FT=[["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"}]],VT=ue("layers",FT);/**
|
|
365
|
+
* @license lucide-react v1.31.0 - ISC
|
|
366
|
+
*
|
|
367
|
+
* This source code is licensed under the ISC license.
|
|
368
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
+
*/const qT=[["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"}]],KT=ue("life-buoy",qT);/**
|
|
370
|
+
* @license lucide-react v1.31.0 - ISC
|
|
371
|
+
*
|
|
372
|
+
* This source code is licensed under the ISC license.
|
|
373
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
+
*/const JT=[["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"}]],ZT=ue("list-tree",JT);/**
|
|
375
|
+
* @license lucide-react v1.31.0 - ISC
|
|
376
|
+
*
|
|
377
|
+
* This source code is licensed under the ISC license.
|
|
378
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
+
*/const XT=[["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"}]],WT=ue("list",XT);/**
|
|
380
|
+
* @license lucide-react v1.31.0 - ISC
|
|
381
|
+
*
|
|
382
|
+
* This source code is licensed under the ISC license.
|
|
383
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
+
*/const ek=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tk=ue("loader-circle",ek);/**
|
|
385
|
+
* @license lucide-react v1.31.0 - ISC
|
|
386
|
+
*
|
|
387
|
+
* This source code is licensed under the ISC license.
|
|
388
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
+
*/const nk=[["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"}]],ak=ue("lock",nk);/**
|
|
390
|
+
* @license lucide-react v1.31.0 - ISC
|
|
391
|
+
*
|
|
392
|
+
* This source code is licensed under the ISC license.
|
|
393
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
+
*/const ik=[["path",{d:"M5 12h14",key:"1ays0h"}]],rk=ue("minus",ik);/**
|
|
395
|
+
* @license lucide-react v1.31.0 - ISC
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the ISC license.
|
|
398
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
+
*/const sk=[["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"}]],ok=ue("monitor",sk);/**
|
|
400
|
+
* @license lucide-react v1.31.0 - ISC
|
|
401
|
+
*
|
|
402
|
+
* This source code is licensed under the ISC license.
|
|
403
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
+
*/const ck=[["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"}]],lk=ue("moon",ck);/**
|
|
405
|
+
* @license lucide-react v1.31.0 - ISC
|
|
406
|
+
*
|
|
407
|
+
* This source code is licensed under the ISC license.
|
|
408
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
+
*/const dk=[["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"}]],uk=ue("octagon-alert",dk);/**
|
|
410
|
+
* @license lucide-react v1.31.0 - ISC
|
|
411
|
+
*
|
|
412
|
+
* This source code is licensed under the ISC license.
|
|
413
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
+
*/const fk=[["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"}]],pk=ue("panel-left-close",fk);/**
|
|
415
|
+
* @license lucide-react v1.31.0 - ISC
|
|
416
|
+
*
|
|
417
|
+
* This source code is licensed under the ISC license.
|
|
418
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
+
*/const hk=[["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"}]],gk=ue("panel-right-close",hk);/**
|
|
420
|
+
* @license lucide-react v1.31.0 - ISC
|
|
421
|
+
*
|
|
422
|
+
* This source code is licensed under the ISC license.
|
|
423
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
+
*/const Ak=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mk=ue("plus",Ak);/**
|
|
425
|
+
* @license lucide-react v1.31.0 - ISC
|
|
426
|
+
*
|
|
427
|
+
* This source code is licensed under the ISC license.
|
|
428
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
429
|
+
*/const yk=[["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"}]],Ek=ue("refresh-cw",yk);/**
|
|
430
|
+
* @license lucide-react v1.31.0 - ISC
|
|
431
|
+
*
|
|
432
|
+
* This source code is licensed under the ISC license.
|
|
433
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
434
|
+
*/const Bk=[["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"}]],vk=ue("rotate-ccw-clock",Bk);/**
|
|
435
|
+
* @license lucide-react v1.31.0 - ISC
|
|
436
|
+
*
|
|
437
|
+
* This source code is licensed under the ISC license.
|
|
438
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
439
|
+
*/const bk=[["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"}]],Cj=ue("rotate-ccw",bk);/**
|
|
440
|
+
* @license lucide-react v1.31.0 - ISC
|
|
441
|
+
*
|
|
442
|
+
* This source code is licensed under the ISC license.
|
|
443
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
444
|
+
*/const wk=[["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"}]],xk=ue("scroll-text",wk);/**
|
|
445
|
+
* @license lucide-react v1.31.0 - ISC
|
|
446
|
+
*
|
|
447
|
+
* This source code is licensed under the ISC license.
|
|
448
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
+
*/const jk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Qk=ue("search",jk);/**
|
|
450
|
+
* @license lucide-react v1.31.0 - ISC
|
|
451
|
+
*
|
|
452
|
+
* This source code is licensed under the ISC license.
|
|
453
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
454
|
+
*/const Ik=[["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"}]],Ck=ue("shield-check",Ik);/**
|
|
455
|
+
* @license lucide-react v1.31.0 - ISC
|
|
456
|
+
*
|
|
457
|
+
* This source code is licensed under the ISC license.
|
|
458
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
459
|
+
*/const Sk=[["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"}]],Ok=ue("shield",Sk);/**
|
|
460
|
+
* @license lucide-react v1.31.0 - ISC
|
|
461
|
+
*
|
|
462
|
+
* This source code is licensed under the ISC license.
|
|
463
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
+
*/const _k=[["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"}]],Nk=ue("sparkles",_k);/**
|
|
465
|
+
* @license lucide-react v1.31.0 - ISC
|
|
466
|
+
*
|
|
467
|
+
* This source code is licensed under the ISC license.
|
|
468
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
+
*/const Rk=[["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"}]],Dk=ue("square-check-big",Rk);/**
|
|
470
|
+
* @license lucide-react v1.31.0 - ISC
|
|
471
|
+
*
|
|
472
|
+
* This source code is licensed under the ISC license.
|
|
473
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
474
|
+
*/const Tk=[["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"}]],kk=ue("square-dashed",Tk);/**
|
|
475
|
+
* @license lucide-react v1.31.0 - ISC
|
|
476
|
+
*
|
|
477
|
+
* This source code is licensed under the ISC license.
|
|
478
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
479
|
+
*/const Mk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Gk=ue("square",Mk);/**
|
|
480
|
+
* @license lucide-react v1.31.0 - ISC
|
|
481
|
+
*
|
|
482
|
+
* This source code is licensed under the ISC license.
|
|
483
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
484
|
+
*/const Yk=[["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"}]],Hk=ue("star",Yk);/**
|
|
485
|
+
* @license lucide-react v1.31.0 - ISC
|
|
486
|
+
*
|
|
487
|
+
* This source code is licensed under the ISC license.
|
|
488
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
489
|
+
*/const zk=[["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"}]],$k=ue("sun",zk);/**
|
|
490
|
+
* @license lucide-react v1.31.0 - ISC
|
|
491
|
+
*
|
|
492
|
+
* This source code is licensed under the ISC license.
|
|
493
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
494
|
+
*/const Uk=[["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"}]],Lk=ue("table",Uk);/**
|
|
495
|
+
* @license lucide-react v1.31.0 - ISC
|
|
496
|
+
*
|
|
497
|
+
* This source code is licensed under the ISC license.
|
|
498
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
499
|
+
*/const Pk=[["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"}]],Fk=ue("target",Pk);/**
|
|
500
|
+
* @license lucide-react v1.31.0 - ISC
|
|
501
|
+
*
|
|
502
|
+
* This source code is licensed under the ISC license.
|
|
503
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
+
*/const Vk=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],qk=ue("terminal",Vk);/**
|
|
505
|
+
* @license lucide-react v1.31.0 - ISC
|
|
506
|
+
*
|
|
507
|
+
* This source code is licensed under the ISC license.
|
|
508
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
509
|
+
*/const Kk=[["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"}]],Sj=ue("triangle-alert",Kk);/**
|
|
510
|
+
* @license lucide-react v1.31.0 - ISC
|
|
511
|
+
*
|
|
512
|
+
* This source code is licensed under the ISC license.
|
|
513
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
514
|
+
*/const Jk=[["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"}]],Zk=ue("unplug",Jk);/**
|
|
515
|
+
* @license lucide-react v1.31.0 - ISC
|
|
516
|
+
*
|
|
517
|
+
* This source code is licensed under the ISC license.
|
|
518
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
519
|
+
*/const Xk=[["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"}]],Wk=ue("user",Xk);/**
|
|
520
|
+
* @license lucide-react v1.31.0 - ISC
|
|
521
|
+
*
|
|
522
|
+
* This source code is licensed under the ISC license.
|
|
523
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
524
|
+
*/const e2=[["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"}]],t2=ue("workflow",e2);/**
|
|
525
|
+
* @license lucide-react v1.31.0 - ISC
|
|
526
|
+
*
|
|
527
|
+
* This source code is licensed under the ISC license.
|
|
528
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
529
|
+
*/const n2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],a2=ue("x",n2),i2=Object.freeze({activity:oD,"arrow-right":lD,ban:uD,bookmark:pD,bot:gD,box:mD,braces:ED,"calendar-days":wD,"calendar-range":jD,check:SD,"check-check":ID,"chevron-down":_D,"chevron-left":RD,"chevron-right":TD,"chevron-up":MD,"chevrons-up-down":YD,circle:oT,"circle-alert":zD,"circle-check":UD,"circle-dashed":PD,"circle-minus":KD,"circle-pause":WD,"circle-play":tT,"circle-slash":aT,"circle-x":rT,clock:lT,"columns-3":uT,copy:pT,"corner-down-right":gT,dot:mT,"external-link":ET,"file-check":vT,"file-diff":wT,"file-text":jT,filter:_T,flag:IT,folder:ST,gauge:RT,"git-branch":TT,"git-commit":MT,"git-pull-request":YT,hash:zT,history:vk,inbox:UT,info:PT,layers:VT,"life-buoy":KT,list:WT,"list-tree":ZT,"loader-circle":tk,lock:ak,minus:rk,monitor:ok,moon:lk,"octagon-alert":uk,"panel-left-close":pk,"panel-right-close":gk,plus:mk,"refresh-cw":Ek,"rotate-ccw":Cj,"scroll-text":xk,search:Qk,shield:Ok,sparkles:Nk,square:Gk,"square-check-big":Dk,"square-dashed":kk,star:Hk,sun:$k,table:Lk,target:Fk,terminal:qk,"triangle-alert":Sj,unplug:Zk,user:Wk,workflow:t2,x:a2});function Be({name:e,size:t=16,color:a="currentColor",strokeWidth:s=1.75,title:c,spin:l=!1,pulse:u=!1}){const f=i2[e];return r.jsx(f,{className:"pc-icon","data-icon":e,"data-spin":l||void 0,"data-pulse":u||void 0,size:t,color:a,strokeWidth:s,"aria-hidden":c?void 0:!0,role:c?"img":void 0,"aria-label":c})}const Gh={sm:13,md:14,lg:16};function ua({children:e,variant:t="secondary",size:a="md",icon:s,iconAfter:c,disabled:l=!1,loading:u=!1,fullWidth:f=!1,shortcut:h,type:A="button",onClick:y,ariaLabel:m}){return r.jsxs("button",{type:A,className:"pc-button","data-variant":t,"data-size":a,"data-full":f||void 0,disabled:l||u,"aria-label":m,onClick:y,children:[u?r.jsx(Be,{name:"loader-circle",size:Gh[a],spin:!0}):s?r.jsx(Be,{name:s,size:Gh[a]}):null,e,c?r.jsx(Be,{name:c,size:Gh[a]}):null,h?r.jsx("span",{className:"pc-button__shortcut",children:h}):null]})}const r2={sm:13,md:15,lg:17};function Oj({icon:e,label:t,size:a="md",active:s=!1,disabled:c=!1,tone:l="default",onClick:u}){return r.jsx("button",{type:"button",className:"pc-icon-button","data-size":a,"data-tone":l,"data-active":s||void 0,title:t,"aria-label":t,"aria-pressed":s||void 0,disabled:c,onClick:u,children:r.jsx(Be,{name:e,size:r2[a]})})}function dr({children:e,size:t="md"}){return r.jsx("kbd",{className:"pc-kbd","data-size":t,children:e})}function Vn({children:e,tone:t="neutral",variant:a="soft",icon:s,mono:c=!1}){return r.jsxs("span",{className:"pc-badge","data-tone":t,"data-variant":a,"data-mono":c||void 0,children:[s?r.jsx(Be,{name:s,size:11}):null,e]})}function At({children:e,title:t,meta:a,actions:s,padding:c=14,elevated:l=!1}){return r.jsxs("section",{className:"pc-card","data-elevated":l||void 0,children:[t||s?r.jsxs("header",{className:"pc-card__head",children:[t?r.jsx("h2",{className:"pc-card__title",children:t}):null,a?r.jsx("span",{className:"pc-card__meta",children:a}):null,s?r.jsx("div",{className:"pc-card__actions",children:s}):null]}):null,r.jsx("div",{className:"pc-card__body",style:{padding:c},children:e})]})}function Jt({icon:e="inbox",title:t,description:a,action:s}){return r.jsxs("div",{className:"pc-empty",children:[r.jsx("span",{className:"pc-empty__glyph","aria-hidden":"true",children:r.jsx(Be,{name:e,size:17})}),r.jsx("span",{className:"pc-empty__title",children:t}),a?r.jsx("p",{className:"pc-empty__desc",children:a}):null,s?r.jsx("div",{className:"pc-empty__action",children:s}):null]})}function _j({tabs:e,value:t,onChange:a,size:s="md",label:c}){return r.jsx("div",{className:"pc-tabs","data-size":s,role:"tablist","aria-label":c,children:e.map(l=>{const u=l.id===t;return r.jsxs("button",{type:"button",role:"tab",className:"pc-tabs__tab","aria-selected":u,"data-active":u||void 0,onClick:()=>a(l.id),children:[l.icon?r.jsx(Be,{name:l.icon,size:13}):null,l.label,l.count!==void 0?r.jsx("span",{className:"pc-tabs__count",children:l.count}):null]},l.id)})})}function cn({w:e="100%",h:t=10,radius:a,delay:s=0}){return r.jsx("span",{className:"pc-skeleton","aria-hidden":"true",style:{width:e,height:t,borderRadius:a,animationDelay:`${s}ms`}})}const tb=160;function wg({columns:e,rows:t=6,label:a}){const s=24+12*Math.max(e.length-1,0)+e.reduce((u,f)=>u+(f.width??tb),0),c=u=>({flex:u.width?`0 0 ${u.width}px`:`1 0 ${tb}px`}),l=Array.from({length:t},(u,f)=>({id:`row-${f}`,row:f}));return r.jsxs("output",{className:"pc-skeleton-table","aria-busy":"true","aria-label":a??"Loading",children:[r.jsx("div",{className:"pc-skeleton-table__head",style:{minWidth:s},children:e.map(u=>r.jsx("span",{style:c(u),children:u.label},u.label))}),l.map(({id:u,row:f})=>r.jsx("div",{className:"pc-skeleton-table__row",style:{minWidth:s},children:e.map((h,A)=>r.jsx("span",{style:c(h),children:r.jsx(cn,{w:h.fill??(A===0?"72%":"56%"),delay:(f*e.length+A)*40})},h.label))},u))]})}function uo({count:e=4,height:t=148,min:a=360,label:s}){const c=Array.from({length:e},(l,u)=>({id:`card-${u}`,index:u}));return r.jsx("output",{className:"pc-skeleton-cards","aria-busy":"true","aria-label":s??"Loading",style:{gridTemplateColumns:`repeat(auto-fill, minmax(${a}px, 1fr))`},children:c.map(({id:l,index:u})=>r.jsxs("div",{className:"pc-skeleton-cards__card",style:{height:t},children:[r.jsxs("div",{className:"pc-skeleton-cards__row",children:[r.jsx(cn,{w:84,h:16,delay:u*60}),r.jsx(cn,{w:104,h:18,radius:"999px",delay:u*60+40})]}),r.jsx(cn,{w:"82%",h:13,delay:u*60+80}),r.jsx(cn,{w:"94%",delay:u*60+120}),r.jsx(cn,{w:"66%",delay:u*60+160}),r.jsx("span",{className:"pc-skeleton-cards__foot",children:r.jsx(cn,{w:"46%",h:22,delay:u*60+200})})]},l))})}function Yu({children:e,right:t}){return r.jsxs("div",{className:"pc-toolbar-bar",children:[e,t?r.jsx("div",{className:"pc-toolbar-bar__right",children:t}):null]})}function _A(){return r.jsx("span",{className:"pc-toolbar-bar__divider","aria-hidden":"true"})}function st({eyebrow:e,title:t,count:a,description:s,actions:c,sticky:l=!1,headingLevel:u=1}){const f=u===1?"h1":u===2?"h2":"h3";return r.jsxs("header",{className:"pc-section-header","data-sticky":l||void 0,children:[r.jsxs("div",{className:"pc-section-header__text",children:[e?r.jsx("span",{className:"pc-section-header__eyebrow",children:e}):null,r.jsxs("div",{className:"pc-section-header__row",children:[r.jsx(f,{className:"pc-section-header__title",children:t}),a!==void 0?r.jsx("span",{className:"pc-section-header__count",children:a}):null]}),s?r.jsx("p",{className:"pc-section-header__desc",children:s}):null]}),c?r.jsx("div",{className:"pc-section-header__actions",children:c}):null]})}function NA({value:e,onChange:t,ariaLabel:a,placeholder:s,icon:c,suffix:l,size:u="md",mono:f=!1,width:h}){return r.jsxs("span",{className:"pc-input","data-size":u,style:{width:h},children:[c?r.jsx(Be,{name:c,size:14,color:"var(--pc-text-tertiary)"}):null,r.jsx("input",{className:"pc-input__field","data-mono":f||void 0,type:"text",value:e,placeholder:s,"aria-label":a,onChange:A=>t(A.target.value)}),l?r.jsx("span",{className:"pc-input__suffix",children:l}):null]})}function qc({value:e,onChange:t,options:a,ariaLabel:s,size:c="md",width:l}){return r.jsxs("span",{className:"pc-select","data-size":c,style:{width:l},children:[r.jsx("select",{className:"pc-select__field",value:e,"aria-label":s,onChange:u=>t(u.target.value),children:a.map(u=>{const f=typeof u=="string"?{value:u,label:u}:u;return r.jsx("option",{value:f.value,children:f.label},f.value)})}),r.jsx(Be,{name:"chevron-down",size:13,color:"var(--pc-text-tertiary)"})]})}function s2({checked:e,onChange:t,label:a,ariaLabel:s,disabled:c=!1,size:l="md"}){return r.jsxs("label",{className:"pc-switch","data-size":l,"data-disabled":c||void 0,children:[r.jsx("input",{type:"checkbox",role:"switch",className:"pc-switch__input",checked:e,"aria-checked":e,disabled:c,"aria-label":a?void 0:s,onChange:u=>t(u.target.checked)}),r.jsx("span",{className:"pc-switch__track","aria-hidden":"true",children:r.jsx("span",{className:"pc-switch__thumb"})}),a?r.jsx("span",{className:"pc-switch__label",children:a}):null]})}const o2=Object.freeze({warn:"triangle-alert",danger:"octagon-alert",info:"info",success:"circle-check"});function qt({tone:e="warn",title:t,children:a,actions:s}){const c=e==="warning"?"warn":e;return r.jsxs("div",{className:"pc-alert","data-tone":c,role:"note",children:[r.jsx(Be,{name:o2[c],size:14}),r.jsxs("div",{className:"pc-alert__body",children:[t?r.jsx("span",{className:"pc-alert__title",children:t}):null,a?r.jsx("span",{className:"pc-alert__text",children:a}):null]}),s?r.jsx("div",{className:"pc-alert__actions",children:s}):null]})}function xa({command:e,label:t,size:a="md"}){const[s,c]=B.useState("idle");B.useEffect(()=>{if(s==="idle")return;const f=window.setTimeout(()=>c("idle"),1400);return()=>window.clearTimeout(f)},[s]);const l=()=>{if(!navigator.clipboard){c("blocked");return}navigator.clipboard.writeText(e).then(()=>c("copied"),()=>c("blocked"))},u=s==="copied"?"Command copied":s==="blocked"?"Copy was blocked":"Copy command";return r.jsxs("div",{className:"pc-command-hint","data-size":a,children:[t?r.jsx("span",{className:"pc-command-hint__label",children:t}):null,r.jsxs("div",{className:"pc-command-hint__row",children:[r.jsxs("span",{className:"pc-command-hint__command",children:[r.jsx(Be,{name:"terminal",size:12,color:"var(--pc-text-tertiary)"}),e]}),r.jsxs("button",{type:"button",className:"pc-command-hint__copy","data-state":s,"aria-label":u,onClick:l,children:[r.jsx(Be,{name:s==="copied"?"check":s==="blocked"?"x":"copy",size:12}),s==="idle"?null:s]})]})]})}function c2(e,t){const a=e[t];return a==null?null:String(a)}function ji({columns:e,rows:t,compact:a=!1,caption:s,emptyMessage:c="Nothing here yet.",selectedId:l,sort:u,onSort:f,onRowClick:h}){const A=m=>h==null?void 0:h(m),y=(m,E)=>{h&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),A(E))};return r.jsx("div",{className:"pc-table-wrap",children:r.jsxs("table",{className:"pc-table","data-compact":a||void 0,"data-interactive":h?!0:void 0,children:[s?r.jsx("caption",{className:"pc-visually-hidden",children:s}):null,r.jsx("thead",{children:r.jsx("tr",{children:e.map(m=>{const E=(u==null?void 0:u.key)===m.key,b=r.jsxs("span",{className:"pc-table__heading",children:[m.label,m.sortable?r.jsx(Be,{name:E?(u==null?void 0:u.dir)==="asc"?"chevron-up":"chevron-down":"chevrons-up-down",size:12,color:E?"var(--pc-text-primary)":"var(--pc-text-tertiary)"}):null]});return r.jsx("th",{scope:"col","data-align":m.align??"left",style:{width:m.width},"aria-sort":E?(u==null?void 0:u.dir)==="asc"?"ascending":"descending":void 0,children:m.sortable&&f?r.jsx("button",{type:"button",className:"pc-table__sort",onClick:()=>f(m.key),children:b}):b},m.key)})})}),r.jsx("tbody",{children:t.length===0?r.jsx("tr",{children:r.jsx("td",{className:"pc-table__empty",colSpan:e.length,children:c})}):t.map(m=>r.jsx("tr",{"data-selected":l!==void 0&&m.id===l?!0:void 0,tabIndex:h?0:void 0,onClick:h?()=>A(m):void 0,onKeyDown:h?E=>y(E,m):void 0,children:e.map(E=>r.jsx("td",{"data-align":E.align??"left","data-mono":E.mono||void 0,style:{maxWidth:E.width},children:E.render?E.render(m):c2(m,E.key)},E.key))},m.id))})]})})}const fl=Object.freeze(["outstanding","in-progress","blocked","addressed","done"]),nb=Object.freeze({done:"done","in-progress":"in progress",blocked:"blocked",outstanding:"outstanding",addressed:"addressed"});function bi({status:e,size:t="md",showLabel:a=!0,count:s}){const c=e in nb?e:"outstanding",l=nb[c]??e;return r.jsxs("span",{className:"pc-artifact","data-status":c,"data-size":t,children:[r.jsx("span",{className:"pc-artifact__dot","aria-hidden":"true"}),r.jsx("span",{className:a?"pc-artifact__label":"pc-visually-hidden",children:l}),s!==void 0?r.jsx("span",{className:"pc-artifact__count",children:s}):null]})}const ab=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"}}),l2=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}}),Nj=Object.freeze({running:"in_progress",closed:"completed","in-progress":"in_progress"});function xg({state:e,size:t="md",showLabel:a=!0,label:s}){const c=Nj[e]??e,l=ab[c]??l2[c]??ab.proposed,u=s??l.label;return r.jsxs("span",{className:"pc-state-badge",role:"status","aria-label":`State: ${u}`,"data-state":c,"data-family":l.family,"data-dash":l.dash||void 0,"data-double":l.double||void 0,"data-size":t,children:[r.jsx(Be,{name:l.icon,size:t==="sm"?11:13,pulse:l.live}),a?u:null]})}const ib=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 os({type:e,id:t,title:a,blocked:s=!1,interactive:c=!1,onClick:l}){const u=e in ib?e:"task",f=ib[u],h=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"pc-work-item__type","data-type":u,"aria-hidden":"true",children:r.jsx(Be,{name:f.icon,size:12})}),r.jsx("span",{className:"pc-work-item__id",children:t}),a?r.jsx("span",{className:"pc-work-item__title",children:a}):null,s?r.jsx(Be,{name:"circle-slash",size:13,color:"var(--pc-astate-failed-fg)",title:"Blocked"}):null]});return l?r.jsx("button",{type:"button",className:"pc-work-item","data-interactive":!0,onClick:l,children:h}):r.jsx("span",{className:"pc-work-item","data-interactive":c||void 0,children:h})}const d2=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 Rj({name:e,showIcon:t=!0,size:a="md",muted:s=!1}){const c=d2[e];return r.jsxs("span",{className:"pc-capability","data-family":(c==null?void 0:c.family)??"status","data-size":a,"data-muted":s||void 0,children:[t?r.jsx(Be,{name:(c==null?void 0:c.icon)??"square-dashed",size:a==="sm"?11:13}):r.jsx("span",{className:"pc-capability__dot","aria-hidden":"true"}),e]})}const u2=Object.freeze({proposed:"pre",approved:"pre",queued:"pre",in_progress:"active",completed:"good",blocked:"bad",rejected:"bad",deferred:"inert",cancelled:"inert"});function f2({actionId:e,state:t,capability:a,title:s,headingLevel:c=3,summary:l,scope:u,revision:f,route:h,execution:A,deepLink:y,command:m,error:E,compact:b=!1}){const w=c===2?"h2":"h3",x=Nj[t]??t,j=u2[x]??"pre",I=x==="blocked"||x==="rejected",C=x==="completed"||x==="cancelled";return r.jsxs("article",{className:"pc-action-card","data-action":e,"data-family":j,"data-adverse":I||void 0,"data-faded":C||void 0,"data-live":x==="in_progress"||void 0,"data-compact":b||void 0,children:[r.jsx("div",{className:"pc-action-card__rail","aria-hidden":"true"}),r.jsxs("div",{className:"pc-action-card__body",children:[r.jsxs("div",{className:"pc-action-card__head",children:[r.jsx(xg,{state:x,size:"sm"}),a?r.jsx(Rj,{name:a,size:"sm",muted:!0}):null,e?r.jsx("span",{className:"pc-action-card__id",children:e}):null,f!==void 0?r.jsxs("span",{className:"pc-action-card__rev",title:"Protocol revision",children:[r.jsx(Be,{name:"git-commit",size:11}),"rev ",f]}):null]}),r.jsxs("div",{className:"pc-action-card__text",children:[r.jsx(w,{className:"pc-action-card__title",children:s}),l?r.jsx("p",{className:"pc-action-card__summary",children:l}):null]}),u&&u.length>0?r.jsx("ul",{className:"pc-action-card__scope",children:u.map(O=>r.jsx("li",{className:"pc-action-card__chip",children:O},O))}):null,A?r.jsxs("div",{className:"pc-action-card__execution",children:[r.jsx("span",{className:"pc-action-card__label",children:"latest execution"}),r.jsx(xg,{state:A,size:"sm"})]}):null,E?r.jsxs("div",{className:"pc-action-card__error",children:[r.jsx(Be,{name:"triangle-alert",size:13}),r.jsx("span",{children:E})]}):null,m?r.jsx(xa,{command:m,size:"sm"}):null,h||y?r.jsxs("div",{className:"pc-action-card__foot",children:[h?r.jsxs("span",{className:"pc-action-card__route",title:"Delivery route",children:[r.jsx(Be,{name:"corner-down-right",size:11}),h]}):null,y?r.jsxs("a",{className:"pc-action-card__open",href:y,"aria-label":`Open ${s}`,children:["open",r.jsx(Be,{name:"external-link",size:11})]}):null]}):null]})]})}const Ld=["epic","feature","story","task","spec","adr","backlog","quick","sprint"],p2=220,Yh=52,rb=184,Hh=34,sb=1e3;function gu(e,t){const a=Ld.indexOf(e.type),s=Ld.indexOf(t.type);return(a<0?Ld.length:a)-(s<0?Ld.length:s)||e.id.localeCompare(t.id,void 0,{numeric:!0})}function h2(e,t){var I,C,O;const a=new Set(e.map(S=>S.id)),s=new Map;for(const S of e)s.set(S.id,[]);for(const S of t)a.has(S.from)&&a.has(S.to)&&((I=s.get(S.from))==null||I.push(S.to));let c=0;const l=new Map,u=new Map,f=[],h=new Set,A=[],y=S=>{l.set(S,c),u.set(S,c),c+=1,f.push(S),h.add(S);for(const k of s.get(S)??[])l.has(k)?h.has(k)&&u.set(S,Math.min(u.get(S)??0,l.get(k)??0)):(y(k),u.set(S,Math.min(u.get(S)??0,u.get(k)??0)));if(u.get(S)!==l.get(S))return;const _=[];for(;f.length>0;){const k=f.pop();if(k===void 0||(h.delete(k),_.push(k),k===S))break}A.push(_)};for(const S of[...e].sort(gu))l.has(S.id)||y(S.id);const m=new Map;A.forEach((S,_)=>{for(const k of S)m.set(k,_)});const E=A.map(()=>new Set),b=A.map(()=>0);for(const S of t){const _=m.get(S.from),k=m.get(S.to);_===void 0||k===void 0||_===k||(C=E[_])!=null&&C.has(k)||((O=E[_])==null||O.add(k),b[k]=(b[k]??0)+1)}const w=S=>[...A[S]??[]].sort((_,k)=>_.localeCompare(k,void 0,{numeric:!0}))[0]??"",x=A.map((S,_)=>_).filter(S=>b[S]===0).sort((S,_)=>w(S).localeCompare(w(_),void 0,{numeric:!0})),j=A.map(()=>0);for(;x.length>0;){const S=x.shift();if(S===void 0)break;for(const _ of E[S]??[])j[_]=Math.max(j[_]??0,(j[S]??0)+1),b[_]=(b[_]??0)-1,b[_]===0&&(x.push(_),x.sort((k,N)=>w(k).localeCompare(w(N),void 0,{numeric:!0})))}return new Map(e.map(S=>[S.id,j[m.get(S.id)??0]??0]))}function g2(e,t,a){const s=e.map(f=>[...f]),c=new Map,l=f=>{const h=s[f]??[],A=Math.max(1,h.length-1);h.forEach((y,m)=>{c.set(y.id,m/A)})},u=(f,h)=>{const y=(s[f]??[]).map(m=>{const E=t.filter(b=>h==="parents"?b.to===m.id:b.from===m.id).map(b=>h==="parents"?b.from:b.to).filter(b=>{const w=a.get(b);return w!==void 0&&(h==="parents"?w<f:w>f)}).map(b=>c.get(b)).filter(b=>b!==void 0);return{node:m,score:E.length>0?E.reduce((b,w)=>b+w,0)/E.length:null}});y.sort((m,E)=>m.score===null&&E.score===null?gu(m.node,E.node):m.score===null?1:E.score===null?-1:m.score-E.score||gu(m.node,E.node)),s[f]=y.map(({node:m})=>m),l(f)};for(let f=0;f<2;f+=1){s.forEach((h,A)=>{l(A)});for(let h=1;h<s.length;h+=1)u(h,"parents");for(let h=s.length-2;h>=0;h-=1)u(h,"children")}return s}function Dj({node:e,depth:t,byId:a,edges:s,selectedId:c,onSelect:l}){const u=s.filter(h=>h.from===e.id).map(h=>a.get(h.to)).filter(h=>h!==void 0),f=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"pc-graph-outline__dot","data-type":e.type,"aria-hidden":"true"}),r.jsx("span",{className:"pc-graph-outline__id",children:e.id}),r.jsx("span",{className:"pc-graph-outline__label",children:e.label}),e.blocked?r.jsx("span",{className:"pc-graph-outline__blocked",children:"blocked"}):null]});return r.jsxs("li",{className:"pc-graph-outline__item","data-depth":t===0?"root":void 0,children:[l?r.jsx("button",{type:"button",className:"pc-graph-outline__row","data-selected":c===e.id||void 0,onClick:()=>l(e.id),children:f}):r.jsx("span",{className:"pc-graph-outline__row",children:f}),u.length>0?r.jsx("ul",{className:"pc-graph-outline__list",children:u.map(h=>r.jsx(Dj,{node:h,depth:t+1,byId:a,edges:s,selectedId:c,onSelect:l},h.id))}):null]})}function A2({nodes:e,edges:t,view:a="graph",flow:s="source-to-target",selectedId:c,onSelect:l,height:u}){const f=new Map(e.map(I=>[I.id,I])),h=s==="target-to-source"?t.map(I=>({...I,from:I.to,to:I.from})):t;if(a==="outline"){const I=e.filter(C=>!h.some(O=>O.to===C.id));return r.jsx("div",{className:"pc-graph-outline",children:r.jsx("ul",{className:"pc-graph-outline__list",children:I.map(C=>r.jsx(Dj,{node:C,depth:0,byId:f,edges:h,selectedId:c,onSelect:l},C.id))})})}const A=h2(e,h),y=Math.max(0,...A.values())+1,m=g2(Array.from({length:y},(I,C)=>[...e].filter(O=>A.get(O.id)===C).sort(gu)),h,A),E=Math.max(1,...m.map(I=>I.length)),b=Math.max(u??0,E*Yh+78),w=Math.max(680,y*p2+48),x=new Set(h.filter(I=>I.active).flatMap(I=>[I.from,I.to])),j=new Map;return m.forEach((I,C)=>{const O=y===1?50:7+C/(y-1)*86,S=48+(E-I.length)*Yh/2;I.forEach((_,k)=>{j.set(_.id,{x:O/100*sb,xPercent:O,y:S+k*Yh})})}),r.jsx("figure",{className:"pc-graph","aria-label":"Dependency graph","data-tracing":x.size>0||void 0,style:{height:u},children:r.jsxs("div",{className:"pc-graph__canvas",style:{minWidth:w,height:b},children:[r.jsx("div",{className:"pc-graph__ranks","aria-hidden":"true",children:m.map((I,C)=>{const O=y===1?50:7+C/(y-1)*86;return r.jsxs("span",{className:"pc-graph__rank",style:{left:`${O}%`},children:[C===0?"foundation":`stage ${C+1}`," · ",I.length]},C)})}),r.jsxs("svg",{className:"pc-graph__edges",viewBox:`0 0 ${sb} ${b}`,preserveAspectRatio:"none","aria-hidden":"true",children:[r.jsx("title",{children:"Dependency edges"}),h.map(I=>{const C=j.get(I.from),O=j.get(I.to);if(!C||!O)return null;const S=C.x,_=C.y+Hh/2,k=O.x,N=O.y+Hh/2,z=(S+k)/2;return r.jsx("path",{className:"pc-graph__edge","data-blocked":I.blocked||void 0,"data-active":I.active||void 0,d:`M${S},${_} C${z},${_} ${z},${N} ${k},${N}`,vectorEffect:"non-scaling-stroke"},`${I.from}-${I.to}`)})]}),e.map(I=>{const C=j.get(I.id);return C?r.jsxs("button",{type:"button",className:"pc-graph-node","data-selected":c===I.id||void 0,"data-related":x.has(I.id)||void 0,"data-blocked":I.blocked||void 0,style:{left:`calc(${C.xPercent}% - ${rb/2}px)`,top:C.y,width:rb,height:Hh},onClick:l?()=>l(I.id):void 0,title:`${I.id} · ${I.label}`,"aria-label":`${I.id}: ${I.label}${I.blocked?", blocked":""}`,children:[r.jsx("span",{className:"pc-graph-node__dot","data-type":I.type,"aria-hidden":"true"}),r.jsx("span",{className:"pc-graph-node__code",children:I.id}),r.jsx("span",{className:"pc-graph-node__label",children:I.label}),I.blocked?r.jsx(Be,{name:"circle-slash",size:11,color:"var(--pc-astate-failed-fg)"}):null]},I.id):null})]})})}function m2({name:e,segments:t,day:a,days:s,compact:c=!1}){const l=t.reduce((f,h)=>f+h.count,0),u=l||1;return r.jsxs("div",{className:"pc-sprint","data-compact":c||void 0,children:[r.jsxs("div",{className:"pc-sprint__head",children:[r.jsx("span",{className:"pc-sprint__name",children:e}),s?r.jsxs("span",{className:"pc-sprint__day",children:["day ",a,"/",s]}):null,r.jsxs("span",{className:"pc-sprint__total",children:[l," items"]})]}),r.jsx("div",{className:"pc-sprint__bar",role:"img","aria-label":`${e} progress`,children:t.map(f=>r.jsx("span",{className:"pc-sprint__seg","data-state":f.state,style:{width:`${f.count/u*100}%`},title:`${f.label??f.state}: ${f.count}`},f.state))}),c?null:r.jsx("div",{className:"pc-sprint__legend",children:t.map(f=>r.jsxs("span",{className:"pc-sprint__legend-item",children:[r.jsx("span",{className:"pc-sprint__dot","data-state":f.state}),f.label??f.state," ",r.jsx("span",{className:"pc-sprint__count",children:f.count})]},f.state))})]})}function y2({children:e,tone:t="default"}){return r.jsx("span",{className:"pc-prose","data-tone":t,children:e})}function gt({children:e}){return r.jsx("span",{className:"pc-absent",children:e??"—"})}function wt({label:e,children:t,mono:a=!1}){return r.jsxs("div",{className:"pc-field",children:[r.jsx("span",{className:"pc-field__label",children:e}),r.jsx("span",{className:"pc-field__value","data-mono":a||void 0,children:t})]})}function E2({counts:e,total:t,active:a,onPick:s}){return r.jsxs("div",{className:"pc-tally",children:[r.jsx("div",{className:"pc-tally__cells",children:fl.map(c=>s?r.jsxs("button",{type:"button",className:"pc-tally__cell","data-active":a===c||void 0,onClick:()=>s(c),children:[r.jsx(bi,{status:c,size:"sm"}),r.jsx("span",{className:"pc-tally__value",children:e[c]??0})]},c):r.jsxs("span",{className:"pc-tally__cell",children:[r.jsx(bi,{status:c,size:"sm"}),r.jsx("span",{className:"pc-tally__value",children:e[c]??0})]},c))}),r.jsxs("div",{className:"pc-tally__total",children:[r.jsx("span",{className:"pc-tally__label",children:"total"}),r.jsx("span",{className:"pc-tally__value",children:t})]})]})}const Mt=B.forwardRef(function({children:t,className:a,disabled:s=!1,disabledReason:c,id:l,onInvoke:u,pendingLabel:f="Waiting for durable acceptance",tabIndex:h,title:A,variant:y="primary","aria-label":m,"aria-controls":E,"aria-expanded":b,"aria-haspopup":w},x){const j=B.useId(),I=B.useRef(!1),C=B.useRef(!0),[O,S]=B.useState(!1);B.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const _=O?f:c,k=s||O;async function N(){if(!(k||I.current||!u)){I.current=!0,S(!0);try{await u()}finally{I.current=!1,C.current&&S(!1)}}}const z=r.jsxs("button",{ref:x,type:"button",id:l,className:`op-governed-button${a?` ${a}`:""}`,"data-variant":y,title:A,tabIndex:h,disabled:k,"aria-label":m,"aria-controls":E,"aria-expanded":b,"aria-haspopup":w,"aria-busy":O||void 0,"aria-describedby":_?j:void 0,onClick:N,children:[O?r.jsx("span",{className:"op-governed-button__spinner","aria-hidden":"true"}):null,r.jsx("span",{children:O?f:t})]});return r.jsxs("div",{className:"op-governed-action","data-governed-action-state":O?"pending":"idle",children:[_?r.jsx(KR,{delayDuration:300,children:r.jsxs(JR,{children:[r.jsx(ZR,{asChild:!0,children:r.jsx("span",{children:z})}),r.jsx(XR,{children:r.jsx(WR,{className:"op-governed-tooltip",sideOffset:8,children:_})})]})}):z,_?r.jsx("p",{className:"op-governed-reason",id:j,children:_}):null]})}),B2=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 v2(e){return e.replaceAll("_"," ").replaceAll("-"," ")}function fa({state:e,label:t}){return r.jsx("span",{className:"pc-state","data-tone":B2[e]??"neutral","data-state":e,children:t??v2(e)})}function Ba({label:e,value:t,tone:a="default",icon:s,delta:c,trend:l}){return r.jsxs("li",{className:"pc-metric","data-tone":a,children:[r.jsxs("span",{className:"pc-metric__label",children:[s?r.jsx("span",{className:"pc-metric__icon","aria-hidden":"true",children:s}):null,e]}),r.jsxs("span",{className:"pc-metric__row",children:[r.jsx("span",{className:"pc-metric__value",children:t}),c?r.jsx("span",{className:"pc-metric__delta","data-trend":l??"up",children:c}):null]})]})}function cs({items:e}){return r.jsx("dl",{className:"pc-def-grid",children:e.map(t=>r.jsxs("div",{className:"pc-def-grid__row",children:[r.jsx("dt",{className:"pc-def-grid__term",children:t.term}),r.jsx("dd",{className:"pc-def-grid__desc","data-mono":t.mono??!1,children:t.description})]},t.term))})}const b2={booting:VD,"first-use":vD,"ready-to-resume":Ck,unavailable:ZD,incompatible:Sj,offline:Cj};function be({state:e,eyebrow:t,title:a,description:s,detail:c,actions:l,headingId:u}){const f=b2[e],h=e==="offline"||e==="incompatible",A=B.useId(),y=u??`dashboard-state-panel-${A}`;return r.jsxs("section",{className:"op-state-panel","data-state":e,"aria-labelledby":y,role:h?"alert":"status","aria-live":h?"assertive":"polite",children:[r.jsx("span",{className:"op-state-panel__signal","aria-hidden":"true"}),r.jsxs("div",{className:"op-state-panel__body",children:[r.jsx("p",{className:"op-eyebrow",children:t}),r.jsxs("div",{className:"op-state-panel__heading",children:[r.jsx(f,{"aria-hidden":"true"}),r.jsx("h2",{id:y,children:a})]}),r.jsx("p",{children:s}),c?r.jsx("p",{className:"op-state-panel__detail",children:c}):null]}),l?r.jsx("div",{className:"op-state-panel__actions",children:l}):null]})}const w2=/(?:^|[\s"'`])\/(?:Users|home|opt|var|private|tmp)\//iu;function sa(e){return e==null||e.length===0?"Not returned":w2.test(e)?"Redacted":e}function x2({embeddedBuildId:e,bootstrap:t}){const a=[["Embedded dashboard build",e],["Served dashboard build",sa(t==null?void 0:t.ui.buildId)],["Expected dashboard build",sa(t==null?void 0:t.ui.expectedBuildId)],["Asset manifest hash",sa(t==null?void 0:t.ui.assetManifestHash)],["OpenPlanr package version",sa(t==null?void 0:t.server.packageVersion)],["Bootstrap protocol",sa(t==null?void 0:t.protocolVersion)],["Planning graph schema",sa(t==null?void 0:t.capabilities.planningGraph.schemaVersion)],["Operate experience protocol",sa(t==null?void 0:t.capabilities.operateExperience.protocolVersion)],["Operate commands transport",sa(t==null?void 0:t.capabilities.operateCommands.transportVersion)],["Diagnostics capability",t!=null&&t.capabilities.diagnostics.available?"available":"unavailable"],["Operate commands capability",t!=null&&t.capabilities.operateCommands.available?"available":"unavailable"],["Compatibility status",sa(t==null?void 0:t.compatibility.status)],["Compatibility reasons",t!=null&&t.compatibility.reasonCodes.length?t.compatibility.reasonCodes.join(" · "):"None"],["Project name",sa(t==null?void 0:t.project.name)],["Project branch",sa(t==null?void 0:t.project.branch)],["Loopback origin",sa(t==null?void 0:t.origin)]],s=a.map(([c,l])=>`${c}: ${l}`).join(`
|
|
530
|
+
`);return r.jsxs("section",{className:"op-diagnostics__summary","aria-labelledby":"dashboard-support-summary-title",children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Support bundle"}),r.jsx("h2",{id:"dashboard-support-summary-title",children:"Access-safe installation summary"})]}),r.jsx("p",{children:"Only public bootstrap fields appear here. Private paths, bodies, and credentials never do."})]}),r.jsx("dl",{"aria-label":"Support summary fields",children:a.map(([c,l])=>r.jsxs("div",{children:[r.jsx("dt",{children:c}),r.jsx("dd",{children:r.jsx("code",{children:l})})]},c))}),r.jsx("textarea",{className:"op-diagnostics__bundle",readOnly:!0,"aria-label":"Support bundle text",value:s})]})}function j2(e){return e==="pass"?"Pass":e==="warn"?"Attention":e==="pending"?"Checking":"Fail"}function Q2(e){return e.some(t=>t.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(t=>t.status==="pending")?{state:"booting",title:"Checking dashboard compatibility",description:"Diagnostics remain read-only while bootstrap custody is verified."}:e.some(t=>t.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 I2({embeddedBuildId:e,bootstrap:t,bootPhase:a,bootDetail:s,connection:c,onReturn:l}){const u=w1({embeddedBuildId:e,bootstrap:t,bootPhase:a,bootDetail:s,connection:c}),f=Q2(u);return r.jsxs("section",{className:"op-workspace op-diagnostics","data-route-kind":"system.diagnostics","aria-labelledby":"dashboard-diagnostics-title",children:[r.jsxs("header",{className:"op-diagnostics__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Diagnostics"}),r.jsx("h1",{id:"dashboard-diagnostics-title",children:"Compatibility and installation checks"}),r.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."})]}),l?r.jsx("button",{type:"button",className:"op-inline-action",onClick:l,children:"Return to dashboard"}):null]}),r.jsx(be,{state:f.state,eyebrow:"Current posture",title:f.title,description:f.description}),r.jsxs("section",{className:"op-diagnostics__findings","aria-labelledby":"dashboard-diagnostics-findings-title",children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Certified checks"}),r.jsx("h2",{id:"dashboard-diagnostics-findings-title",children:"Boot through optional dependencies"})]}),r.jsx("p",{children:"Each row is derived only from the public bootstrap envelope and current connection state."})]}),r.jsx("ol",{className:"op-diagnostics__list",children:u.map(h=>r.jsx("li",{"data-diagnostic":h.category,"data-status":h.status,children:r.jsxs("article",{children:[r.jsxs("header",{children:[r.jsx("p",{className:"op-eyebrow",children:h.category.replaceAll("-"," ")}),r.jsx("h3",{children:h.title}),r.jsx("span",{className:"op-diagnostics__status",children:j2(h.status)})]}),r.jsx("p",{children:h.detail}),r.jsxs("p",{className:"op-diagnostics__remediation",children:[r.jsx("strong",{children:"Next safe step:"})," ",h.remediation]})]})},h.category))})]}),r.jsx(x2,{embeddedBuildId:e,bootstrap:t}),r.jsx("p",{className:"op-authority-note",children:"Diagnostics do not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs."})]})}const C2=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 Ai(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function S2(e,t){return t.every(a=>typeof e[a]=="string")}function Tj(e){if(!Ai(e)||!Ai(e.counts))return!1;const t=e.counts;return S2(e,["cycleId","title","summary","signal","updatedAt","href"])&&["decisions","actions","gaps","issues"].every(a=>Number.isSafeInteger(t[a]))}function O2(e){if(!Ai(e)||e.kind!=="local-operate-review-index"||e.schemaVersion!=="1.0.0"||e.readOnly!==!0||!Ai(e.pagination)||!Array.isArray(e.items)||!e.items.every(Tj))throw new Error("OpenPlanr returned an invalid local review index.");if(!["page","pageSize","pageCount","total"].every(t=>Number.isSafeInteger(e.pagination[t])))throw new Error("OpenPlanr returned invalid local review pagination.");return e}function _2(e){const t=Ai(e)&&Ai(e.item)?e.item:null,a=["decisions","actions","gaps","risks","issues","lenses","evidence"],s=t!==null&&typeof t.markdown=="string"&&Ai(t.scope)&&Ai(t.recovery)&&a.every(c=>Array.isArray(t[c]));if(!Ai(e)||e.kind!=="local-operate-review"||e.schemaVersion!=="1.0.0"||e.readOnly!==!0||!t||!s||!Tj(t))throw new Error("OpenPlanr returned an invalid local review.");return e}async function kj(e,t){const a=await fetch(e,{headers:{accept:"application/json"},signal:t});if(!a.ok)throw new Error(`OpenPlanr could not read this report (${a.status}).`);return a.json()}function N2(e,t){const[a,s]=B.useState({status:"loading",data:null,error:null});return B.useEffect(()=>{const c=new AbortController;let l=!0;const u=async()=>{try{const h=new URL("/api/operate/local-reviews",e);h.searchParams.set("page",String(t)),h.searchParams.set("pageSize","12");const A=O2(await kj(h,c.signal));l&&s({status:"ready",data:A,error:null})}catch(h){l&&!c.signal.aborted&&s(A=>({status:"failed",data:A.data,error:h instanceof Error?h.message:"Review index unavailable."}))}};u();const f=window.setInterval(()=>void u(),2e3);return()=>{l=!1,c.abort(),window.clearInterval(f)}},[e,t]),a}function R2(e,t){const[a,s]=B.useState({status:"loading",data:null,error:null});return B.useEffect(()=>{if(!t){s({status:"loading",data:null,error:null});return}const c=new AbortController;let l=!0;const u=async()=>{try{const h=new URL(`/api/operate/local-reviews/${encodeURIComponent(t)}`,e),A=_2(await kj(h,c.signal));l&&s({status:"ready",data:A,error:null})}catch(h){l&&!c.signal.aborted&&s(A=>({status:"failed",data:A.data,error:h instanceof Error?h.message:"Review unavailable."}))}};u();const f=window.setInterval(()=>void u(),2e3);return()=>{l=!1,c.abort(),window.clearInterval(f)}},[t,e]),a}function D2(e){const t=new Date(e);return Number.isNaN(t.valueOf())?"Updated recently":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(t)}function Mc(e,t){const a=new Map;return e.map(s=>{const c=t(s),l=(a.get(c)??0)+1;return a.set(c,l),Object.freeze({key:`${c}:${l}`,value:s})})}function $r({text:e}){const t=Mc(e.split(/(\*\*[^*]+\*\*|`[^`]+`)/gu),a=>a);return r.jsx(r.Fragment,{children:t.map(({key:a,value:s})=>s.startsWith("**")&&s.endsWith("**")?r.jsx("strong",{children:s.slice(2,-2)},a):s.startsWith("`")&&s.endsWith("`")?r.jsx("code",{children:s.slice(1,-1)},a):r.jsx(B.Fragment,{children:s},a))})}function T2(e){var c;const t=e.replace(/\r\n?/gu,`
|
|
531
|
+
`).split(`
|
|
532
|
+
`),a=[];let s=0;for(;s<t.length;){const l=t[s].trim();if(!l){s+=1;continue}const u=/^(#{1,3})\s+(.+)$/u.exec(l);if(u){a.push({kind:"heading",depth:u[1].length,text:u[2]}),s+=1;continue}if(l.startsWith("|")&&((c=t[s+1])!=null&&c.trim().match(/^\|?\s*:?-{3,}/u))){const h=[],A=y=>y.replace(/^\||\|$/gu,"").split("|").map(m=>m.trim());for(h.push(A(l)),s+=2;s<t.length&&t[s].trim().startsWith("|");)h.push(A(t[s].trim())),s+=1;a.push({kind:"table",rows:h});continue}if(/^[-*]\s+/u.test(l)){const h=[];for(;s<t.length&&/^[-*]\s+/u.test(t[s].trim());)h.push(t[s].trim().replace(/^[-*]\s+/u,"")),s+=1;a.push({kind:"list",items:h});continue}if(l.startsWith(">")){const h=[];for(;s<t.length&&t[s].trim().startsWith(">");)h.push(t[s].trim().replace(/^>\s?/u,"")),s+=1;a.push({kind:"quote",text:h.join(" ")});continue}const f=[l];for(s+=1;s<t.length&&t[s].trim()&&!/^(#{1,3})\s+/u.test(t[s].trim())&&!/^[-*]\s+/u.test(t[s].trim())&&!t[s].trim().startsWith("|")&&!t[s].trim().startsWith(">");)f.push(t[s].trim()),s+=1;a.push({kind:"paragraph",text:f.join(" ")})}return a}function k2({markdown:e}){const t=B.useMemo(()=>Mc(T2(e),a=>JSON.stringify(a)),[e]);return r.jsx("article",{className:"pc-local-review__report",children:t.map(({key:a,value:s})=>{if(s.kind==="heading")return s.depth===1?null:s.depth===2?r.jsx("h2",{children:r.jsx($r,{text:s.text})},a):r.jsx("h3",{children:r.jsx($r,{text:s.text})},a);if(s.kind==="paragraph")return r.jsx("p",{children:r.jsx($r,{text:s.text})},a);if(s.kind==="quote")return r.jsx("blockquote",{children:r.jsx($r,{text:s.text})},a);if(s.kind==="list")return r.jsx("ul",{children:s.items.map(u=>r.jsx("li",{children:r.jsx($r,{text:u})},u))},a);const[c,...l]=s.rows;return r.jsx("section",{className:"pc-local-review__table-wrap","aria-label":"Scrollable report table",children:r.jsxs("table",{children:[r.jsx("thead",{children:r.jsx("tr",{children:Mc(c,u=>u).map(({key:u,value:f})=>r.jsx("th",{children:r.jsx($r,{text:f})},u))})}),r.jsx("tbody",{children:Mc(l,u=>u.join("|")).map(({key:u,value:f})=>r.jsx("tr",{children:Mc(f,h=>h).map(({key:h,value:A})=>r.jsx("td",{children:r.jsx($r,{text:A})},h))},u))})]})},a)})})}function RA(e){return e.toUpperCase()==="P0"?"danger":e.toUpperCase()==="P1"?"warn":e.toUpperCase()==="P2"?"info":"neutral"}function M2({counts:e}){return r.jsxs("span",{className:"pc-local-review__counts",children:[r.jsxs("span",{children:[e.decisions," decisions"]}),r.jsxs("span",{children:[e.actions," actions"]}),r.jsxs("span",{children:[e.gaps," gaps"]}),r.jsxs("span",{children:[e.issues," issues"]})]})}function Mj({item:e}){const 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(a=>a.present).length,"layers"]];return r.jsx("section",{className:"pc-local-review__metrics","aria-label":"Cycle summary",children:t.map(([a,s,c])=>r.jsxs("div",{className:"pc-local-review__metric",children:[r.jsxs("span",{children:[r.jsx(Be,{name:c,size:14}),a]}),r.jsx("strong",{children:s})]},a))})}function Gj({item:e}){const t=e.decisions[0];return r.jsxs("section",{className:"pc-local-review__signal","aria-labelledby":"local-signal-title",children:[r.jsxs("div",{className:"pc-local-review__signal-copy",children:[r.jsxs("span",{className:"pc-local-review__kicker",children:[r.jsx("span",{className:"pc-local-review__signal-dot"}),"Board signal · ",e.signal]}),r.jsx("h2",{id:"local-signal-title",children:(t==null?void 0:t.title)??"Review the latest operating cycle"}),r.jsx("p",{children:(t==null?void 0:t.whyNow)||e.summary})]}),r.jsxs("div",{className:"pc-local-review__next-step",children:[r.jsx("span",{children:"First verified move"}),r.jsx("strong",{children:(t==null?void 0:t.firstStep)||"Open the cycle record and assign its next decision."}),r.jsxs("a",{href:"#/operate/inbox",children:["Open decision inbox ",r.jsx(Be,{name:"arrow-right",size:13})]})]})]})}function G2({decision:e,compact:t=!1}){return r.jsxs("article",{className:"pc-local-review__decision","data-priority":e.priority.toLowerCase(),children:[r.jsxs("div",{className:"pc-local-review__decision-head",children:[r.jsx("span",{className:"pc-local-review__item-id",children:e.id}),r.jsx(Vn,{tone:RA(e.priority),variant:"outline",mono:!0,children:e.priority}),r.jsx("h3",{children:e.title})]}),r.jsx("p",{children:e.recommendation||e.whyNow}),r.jsxs("div",{className:"pc-local-review__decision-meta",children:[r.jsxs("span",{children:[r.jsx("b",{children:"Owner"}),e.owner]}),r.jsxs("span",{children:[r.jsx("b",{children:"Depends on"}),e.dependencies]})]}),t?null:r.jsxs("details",{children:[r.jsx("summary",{children:"Rationale and verification"}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Why now"}),r.jsx("dd",{children:e.whyNow||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"First step"}),r.jsx("dd",{children:e.firstStep||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expected result"}),r.jsx("dd",{children:e.expectedResult||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Check"}),r.jsx("dd",{children:e.check||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Confidence"}),r.jsx("dd",{children:e.confidence})]}),e.dissent?r.jsxs("div",{children:[r.jsx("dt",{children:"Dissent"}),r.jsx("dd",{children:e.dissent})]}):null]})]})]})}function DA({decisions:e,limit:t}){const a=typeof t=="number"?e.slice(0,t):e;return a.length===0?r.jsx(Jt,{icon:"inbox",title:"No decisions recorded",description:"This cycle did not produce a decision queue."}):r.jsx("div",{className:"pc-local-review__decision-grid",children:a.map(s=>r.jsx(G2,{decision:s,compact:typeof t=="number"},s.id))})}function TA({actions:e,limit:t}){const a=typeof t=="number"?e.slice(0,t):e;return a.length===0?r.jsx(Jt,{icon:"git-pull-request",title:"No actions recorded",description:"No action rows were found in this cycle."}):r.jsx("div",{className:"pc-local-review__action-list",children:a.map(s=>r.jsxs("a",{className:"pc-local-review__action",href:`#/operate/actions/${encodeURIComponent(s.id)}`,children:[r.jsx("span",{className:"pc-local-review__item-id",children:s.id}),r.jsxs("span",{className:"pc-local-review__action-copy",children:[r.jsx("strong",{children:s.action}),r.jsx("span",{children:s.firstStep}),r.jsx("small",{children:s.owner})]}),r.jsxs("span",{className:"pc-local-review__action-status",children:[r.jsx(Vn,{tone:RA(s.priority),variant:"outline",mono:!0,children:s.priority}),r.jsx(Vn,{tone:s.state==="needs-owner"?"warn":"neutral",children:s.state==="needs-owner"?"Needs owner":"Proposed"})]}),r.jsx(Be,{name:"chevron-right",size:14})]},s.id))})}function Yj({lenses:e}){return r.jsx("div",{className:"pc-local-review__lenses",children:e.map(t=>r.jsxs("article",{className:"pc-local-review__lens","data-present":t.present||void 0,children:[r.jsxs("div",{children:[r.jsx("span",{className:"pc-local-review__lens-mark",children:t.name.slice(0,2)}),r.jsxs("span",{children:[r.jsx("strong",{children:t.name}),r.jsxs("small",{children:[t.findings," ",t.name==="Challenger"?"exceptions":t.name==="Chair"?"decisions":"findings"]})]})]}),r.jsx(Vn,{tone:t.signal.includes("insufficient")||!t.present?"warn":t.name==="Challenger"?"info":"success",children:t.signal}),t.informed?r.jsx("p",{children:t.informed}):null]},t.name))})}function Hu({items:e,icon:t="circle-alert"}){return e.length===0?r.jsx(Jt,{icon:t,title:"Nothing recorded",description:"No items were found in this section."}):r.jsx("div",{className:"pc-local-review__named-list",children:e.map(a=>r.jsxs("article",{children:[r.jsxs("span",{children:[r.jsx(Be,{name:t,size:14}),a.id]}),r.jsxs("div",{children:[r.jsx("h3",{children:a.title}),a.detail?r.jsx("p",{children:a.detail}):null]})]},a.id))})}function Y2({evidence:e}){const[t,a]=B.useState(1),s=20,c=Math.max(1,Math.ceil(e.length/s)),l=Math.min(t,c),u=e.slice((l-1)*s,l*s);return e.length===0?r.jsx(Jt,{icon:"file-check",title:"No source references extracted",description:"The board report did not include path-addressable evidence."}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pc-local-review__evidence-list",children:u.map(f=>r.jsxs("article",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:f.id}),r.jsx("code",{children:f.reference}),r.jsx("span",{children:f.kind}),r.jsx(Vn,{tone:"success",icon:"check",children:f.freshness})]},f.id))}),c>1?r.jsxs("nav",{className:"pc-local-review__pagination","aria-label":"Evidence pages",children:[r.jsx(ua,{size:"sm",icon:"chevron-left",disabled:l===1,onClick:()=>a(l-1),children:"Previous"}),r.jsxs("span",{children:[e.length," references · page ",l," of ",c]}),r.jsx(ua,{size:"sm",iconAfter:"chevron-right",disabled:l===c,onClick:()=>a(l+1),children:"Next"})]}):null]})}function H2({items:e,history:t=!1}){return r.jsx("div",{className:"pc-local-review__list","data-history":t||void 0,children:e.map((a,s)=>{const c=e[s+1];return r.jsxs("a",{className:"pc-local-review__item",href:a.href,children:[r.jsx("span",{className:"pc-local-review__item-glyph",children:r.jsx(Be,{name:t?"history":"calendar-days",size:15})}),r.jsxs("span",{className:"pc-local-review__item-copy",children:[r.jsxs("span",{className:"pc-local-review__item-title",children:[r.jsx("strong",{children:a.title}),r.jsx(Vn,{tone:a.signal.includes("act")?"warn":"info",children:a.signal})]}),r.jsx("span",{children:a.summary}),r.jsx(M2,{counts:a.counts}),t&&c?r.jsxs("small",{children:[a.counts.actions-c.counts.actions>=0?"+":"",a.counts.actions-c.counts.actions," actions ·"," ",a.counts.gaps-c.counts.gaps>=0?"+":"",a.counts.gaps-c.counts.gaps," gaps from prior cycle"]}):null]}),r.jsx("span",{className:"pc-local-review__item-time",children:D2(a.updatedAt)}),r.jsx(Be,{name:"chevron-right",size:14})]},a.cycleId)})})}function z2({index:e,onPage:t}){return e.pagination.pageCount<=1?null:r.jsxs("nav",{className:"pc-local-review__pagination","aria-label":"Operating review pages",children:[r.jsx(ua,{size:"sm",icon:"chevron-left",disabled:e.pagination.page===1,onClick:()=>t(e.pagination.page-1),children:"Previous"}),r.jsxs("span",{children:["Page ",e.pagination.page," of ",e.pagination.pageCount]}),r.jsx(ua,{size:"sm",iconAfter:"chevron-right",disabled:e.pagination.page===e.pagination.pageCount,onClick:()=>t(e.pagination.page+1),children:"Next"})]})}function la({title:e,description:t,action:a,children:s}){return r.jsxs("section",{className:"pc-local-review__section",children:[r.jsxs("header",{children:[r.jsxs("div",{children:[r.jsx("h2",{children:e}),t?r.jsx("p",{children:t}):null]}),a]}),s]})}function ob({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(Gj,{item:e}),r.jsx(Mj,{item:e}),r.jsxs("div",{className:"pc-local-review__split",children:[r.jsx(la,{title:"Priority decisions",description:"Recommendations waiting for owner disposition.",action:r.jsx("a",{href:"#/operate/inbox",children:"View all"}),children:r.jsx(DA,{decisions:e.decisions,limit:2})}),r.jsx(la,{title:"Lens coverage",description:"Independent perspectives and where they converged.",children:r.jsx(Yj,{lenses:e.lenses})})]}),r.jsx(la,{title:"Next actions",description:"Concrete first steps extracted from the Chair action plan.",action:r.jsx("a",{href:"#/operate/actions",children:"Open register"}),children:r.jsx(TA,{actions:e.actions,limit:4})}),r.jsx(la,{title:"Uncertainty to resolve",description:"Evidence gaps that can change the decision order.",action:r.jsx("a",{href:"#/operate/evidence",children:"Inspect evidence"}),children:r.jsx(Hu,{items:e.gaps.slice(0,3)})})]})}function $2({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(qt,{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."}),r.jsxs("div",{className:"pc-local-review__inbox-summary",children:[r.jsxs("span",{children:[r.jsx("b",{children:e.decisions.length})," decisions waiting"]}),r.jsxs("span",{children:[r.jsx("b",{children:e.actions.filter(t=>t.state==="needs-owner").length})," ownership gaps"]}),r.jsxs("span",{children:[r.jsx("b",{children:e.gaps.length})," evidence gaps"]})]}),r.jsx(DA,{decisions:e.decisions}),r.jsx(la,{title:"Decision-changing gaps",description:"Resolve these before confidence is treated as durable.",children:r.jsx(Hu,{items:e.gaps})})]})}function U2({item:e,actionId:t}){const a=e.actions.find(s=>s.id===t);return a?r.jsx(At,{padding:0,children:r.jsxs("article",{className:"pc-local-review__action-detail",children:[r.jsxs("header",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:a.id}),r.jsx(Vn,{tone:RA(a.priority),variant:"outline",children:a.priority}),r.jsx(Vn,{tone:a.state==="needs-owner"?"warn":"neutral",children:a.state==="needs-owner"?"Needs owner":"Proposed"})]}),r.jsx("h2",{children:a.action}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Suggested owner"}),r.jsx("dd",{children:a.owner})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"First step"}),r.jsx("dd",{children:a.firstStep})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Success measure"}),r.jsx("dd",{children:a.successMeasure})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Verification"}),r.jsx("dd",{children:a.check})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Dependencies"}),r.jsx("dd",{children:a.dependencies})]})]}),r.jsx(qt,{tone:"info",title:"Read-only proposal",children:"Execution state begins only after this proposal is accepted through an actor-bound Operate session."})]})}):r.jsxs(qt,{tone:"warn",title:"Action not found",children:["This cycle does not contain ",t,"."]})}function L2({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(qt,{tone:"info",title:"Expected outcomes, awaiting observed evidence",children:"The local review defines success and checks. It does not claim these outcomes occurred."}),r.jsx("div",{className:"pc-local-review__outcomes",children:e.decisions.map(t=>r.jsxs("article",{children:[r.jsxs("header",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:t.id}),r.jsx(Vn,{tone:"neutral",children:"Awaiting evidence"})]}),r.jsx("h3",{children:t.expectedResult||t.title}),r.jsxs("div",{children:[r.jsx("span",{children:"Verification"}),r.jsx("p",{children:t.check||"No check recorded."})]})]},t.id))})]})}function P2({item:e}){const{recovery:t}=e;return r.jsxs(r.Fragment,{children:[r.jsxs("section",{className:"pc-local-review__integrity","data-complete":t.complete||void 0,children:[r.jsx("span",{children:r.jsx(Be,{name:t.complete?"shield":"triangle-alert",size:20})}),r.jsxs("div",{children:[r.jsx("small",{children:"Local cycle integrity"}),r.jsx("h2",{children:t.complete?"Complete review bundle detected":"Review bundle is incomplete"}),r.jsxs("p",{children:[t.presentFiles.length," readable files · ",Math.ceil(t.totalBytes/1024)," ","KB · ",t.custody]})]}),r.jsx(Vn,{tone:t.complete?"success":"warn",children:t.complete?"Complete":"Attention"})]}),r.jsxs("div",{className:"pc-local-review__recovery-grid",children:[r.jsx(la,{title:"Present records",children:r.jsx("div",{className:"pc-local-review__file-grid",children:t.presentFiles.map(a=>r.jsxs("span",{children:[r.jsx(Be,{name:"file-check",size:13}),a]},a))})}),r.jsx(la,{title:"Missing records",children:r.jsx("div",{className:"pc-local-review__file-grid",children:t.missingFiles.length?t.missingFiles.map(a=>r.jsxs("span",{children:[r.jsx(Be,{name:"circle-alert",size:13}),a]},a)):r.jsx("p",{className:"pc-local-review__muted",children:"No required review records are missing."})})})]}),r.jsx(la,{title:"Recorded issues",description:"Cycle limitations and tooling defects preserved with the report.",children:r.jsx(Hu,{items:e.issues,icon:"triangle-alert"})})]})}function F2({item:e}){return r.jsxs(r.Fragment,{children:[r.jsxs("nav",{className:"pc-local-review__cycle-nav","aria-label":"Cycle sections",children:[r.jsxs("a",{href:"#/operate/inbox",children:[r.jsx(Be,{name:"inbox",size:13}),"Decisions"]}),r.jsxs("a",{href:"#/operate/actions",children:[r.jsx(Be,{name:"git-pull-request",size:13}),"Actions"]}),r.jsxs("a",{href:"#/operate/evidence",children:[r.jsx(Be,{name:"file-check",size:13}),"Evidence"]}),r.jsxs("a",{href:"#/operate/outcomes",children:[r.jsx(Be,{name:"flag",size:13}),"Outcomes"]})]}),r.jsx(Gj,{item:e}),r.jsx(Mj,{item:e}),r.jsx(la,{title:"Review coverage",description:"What each lens contributed to the Chair synthesis.",children:r.jsx(Yj,{lenses:e.lenses})}),r.jsx(la,{title:"Decision record",children:r.jsx(DA,{decisions:e.decisions})}),r.jsx(la,{title:"Action plan",children:r.jsx(TA,{actions:e.actions})}),r.jsx(la,{title:"Risks and dissent",description:"Challenges retained rather than flattened into consensus.",children:r.jsx(Hu,{items:e.risks,icon:"circle-alert"})}),r.jsxs("details",{className:"pc-local-review__full-report",children:[r.jsxs("summary",{children:[r.jsxs("span",{children:[r.jsx(Be,{name:"scroll-text",size:15}),"Full board report"]}),r.jsx("span",{children:"Audit record"})]}),r.jsx(k2,{markdown:e.markdown})]})]})}function V2({item:e,evidenceId:t}){const a=e.evidence.find(s=>s.id===t);return a?r.jsx(At,{children:r.jsxs("article",{className:"pc-local-review__evidence-detail",children:[r.jsx(Vn,{tone:"success",icon:"check",children:a.freshness}),r.jsxs("h2",{children:[a.id," · ",a.kind]}),r.jsx("code",{children:a.reference}),r.jsx("p",{children:"This source reference was captured by the completed local cycle. OpenPlanr has not re-read the target to claim current freshness."})]})}):r.jsxs(qt,{tone:"warn",title:"Evidence not found",children:["This cycle does not contain ",t,"."]})}function q2({route:e,item:t}){switch(e.kind){case"operate.today":return r.jsx(ob,{item:t});case"operate.inbox":return r.jsx($2,{item:t});case"operate.actions":return r.jsx(TA,{actions:t.actions});case"operate.action":return r.jsx(U2,{item:t,actionId:e.subjectId});case"operate.evidence":return r.jsx(Y2,{evidence:t.evidence});case"operate.evidence-item":return r.jsx(V2,{item:t,evidenceId:e.subjectId});case"operate.outcomes":return r.jsx(L2,{item:t});case"operate.recovery":return r.jsx(P2,{item:t});case"operate.cycle":case"operate.review":return r.jsx(F2,{item:t});default:return r.jsx(ob,{item:t})}}function cb(){return r.jsx(At,{children:r.jsx(Jt,{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."})})}const K2={"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 J2({route:e,origin:t}){var b,w;const[a,s]=B.useState(1),c=N2(t,a),l=c.data??C2,u=e.kind==="operate.cycles"||e.kind==="operate.history",f=e.kind==="operate.cycle"||e.kind==="operate.review"?e.kind==="operate.review"?e.cycleId:e.subjectId:u?null:((b=l.items[0])==null?void 0:b.cycleId)??null,h=R2(t,f),A=((w=h.data)==null?void 0:w.item)??null,y=K2[e.kind],m=e.kind==="operate.cycle"||e.kind==="operate.review"?(A==null?void 0:A.title)??(e.kind==="operate.review"?e.cycleId:e.subjectId):(y==null?void 0:y[0])??"Operate",E=e.kind==="operate.cycle"||e.kind==="operate.review"?"Structured decisions, action plan, lens coverage, dissent, and the full audit record.":(y==null?void 0:y[1])??"Completed local operating review.";return r.jsxs("div",{className:"pc-shell__scroll pc-local-review","data-route-kind":e.kind,children:[r.jsx(st,{eyebrow:"planr-operate · local",title:m,count:u?l.pagination.total:void 0,description:E,actions:r.jsx(Vn,{tone:"info",variant:"outline",icon:"lock",children:"Read-only"})}),c.status==="failed"?r.jsx(qt,{tone:"warn",title:"Local reviews could not refresh",children:c.error}):null,u?c.status==="loading"&&!c.data?r.jsx(uo,{count:3}):l.items.length?r.jsxs(r.Fragment,{children:[r.jsx(H2,{items:l.items,history:e.kind==="operate.history"}),r.jsx(z2,{index:l,onPage:s})]}):r.jsx(cb,{}):!f&&c.status==="loading"?r.jsx(uo,{count:2}):f?h.status==="loading"&&!A?r.jsx(uo,{count:3}):A?r.jsxs(r.Fragment,{children:[h.status==="failed"?r.jsx(qt,{tone:"warn",title:"Showing the last readable review",children:h.error}):null,r.jsx(q2,{route:e,item:A})]}):r.jsx(qt,{tone:"warn",title:"This local review is unavailable",children:h.error??"The report was not found."}):r.jsx(cb,{}),r.jsxs("div",{className:"pc-local-review__footnote",children:[r.jsx(Be,{name:"lock",size:12})," Local projections are review records. Approval and execution require an actor-bound Operate session."]})]})}const Z2=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"}),X2=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."}),W2=Object.freeze(["#/overview","#/graph","#/board","#/list","#/sprints","#/activity","#/search"]);function eM(e){try{const t=Ve(e),a=W2.includes(t.route),s=t.subjectId!==null&&(t.route===`#/detail/${encodeURIComponent(t.subjectId)}`||t.route===`#/plan/specs/${encodeURIComponent(t.subjectId)}`);return t.productArea==="planning"&&(a||s)&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Hj(e){if(typeof e!="object"||e===null||!Object.isFrozen(e))return null;const t=Reflect.get(e,"kind"),a=Reflect.get(e,"graph");if(t!=="planning-graph-snapshot"||typeof a!="object"||a===null)return null;const s=Reflect.get(a,"nodes"),c=Reflect.get(a,"edges");return!Array.isArray(s)||!Array.isArray(c)?null:e}function zj(e){if(!Pe(e)||e.data===null)return Object.freeze([]);const t=Hj(e.data);return Object.freeze(t?[...t.graph.nodes]:[])}function Br(e,t){const a=eM(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a))return null;const s=Z2[e.kind],c=Hj(e.data);return s===void 0||c===null?null:Object.freeze({envelope:c,graph:c.graph,presentation:s,binding:e.binding,readOnly:!0,mutationEnabled:!1})}function us({presentation:e}){return e==="ready"?null:r.jsxs("p",{className:"op-planning-notice",role:"status",children:[X2[e]," ",r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Open Planning overview"})]})}function fs({routeKind:e,title:t}){return r.jsx("div",{className:"op-workspace op-planning","data-route-kind":e,children:r.jsx(be,{state:"incompatible",eyebrow:"Planning unavailable",title:t,description:"We could not verify the Planning information for this view, so it is not shown.",actions:r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Return to Planning overview"})})})}const tM=Object.freeze(["route","planning","operate"]),lb=Object.freeze({route:"Go to",planning:"Planning work",operate:"Operate items"}),nM=Object.freeze({route:"chevron-right",planning:"corner-down-right",operate:"gauge"});function db(e){const 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 aM(e){const t={route:[],planning:[],operate:[]};for(const a of e)t[a.source].push(a);return Object.freeze({route:Object.freeze(t.route),planning:Object.freeze(t.planning),operate:Object.freeze(t.operate)})}function $j({hits:e,unsupported:t=Object.freeze([]),activeHref:a,listId:s,onSelect:c}){const l=aM(e),u=e.length>0,f=t.length>0;return!u&&!f?r.jsx("p",{className:"pc-palette__empty",role:"status",children:"No matches. Try a view name or an item id like US-001."}):r.jsxs("div",{className:"pc-palette__results",children:[tM.map(h=>{const A=l[h];return A.length===0?null:r.jsxs("section",{className:"pc-palette__group","aria-labelledby":`${s}-${h}-heading`,children:[r.jsx("h2",{id:`${s}-${h}-heading`,className:"pc-palette__group-title",children:lb[h]}),r.jsx("ol",{className:"pc-palette__list","aria-label":lb[h],children:A.map((y,m)=>{const E=y.href===a;return r.jsx("li",{children:r.jsxs("button",{type:"button",className:"pc-palette__row","data-active":E?"true":"false","aria-current":E?"true":void 0,onClick:()=>c(y),children:[r.jsx(Be,{name:nM[h],size:14}),r.jsx("span",{className:"pc-palette__row-title",children:y.title}),r.jsx("span",{className:"pc-palette__row-hint",children:db(y.kind)})]})},`${y.id}:${m}`)})})]},h)}),f?r.jsxs("section",{className:"pc-palette__group","aria-labelledby":`${s}-unsupported-heading`,children:[r.jsx("h2",{id:`${s}-unsupported-heading`,className:"pc-palette__group-title",children:"Unavailable destinations"}),r.jsx("ol",{className:"pc-palette__list","aria-label":"Unavailable destinations",children:t.map((h,A)=>r.jsx("li",{children:r.jsxs("div",{className:"pc-palette__row","aria-disabled":"true",children:[r.jsx(Be,{name:"circle-slash",size:14}),r.jsx("span",{className:"pc-palette__row-title",children:h.title}),r.jsxs("span",{className:"pc-palette__row-hint",children:[db(h.kind)," · ",h.reason]})]})},`${h.id}:${A}`))})]}):null]})}function iM(e){return Oo(e)}function rM(){return Object.freeze(Dw.filter(e=>e.navigation!=="hidden").map(e=>{const t=Oo(e.href);return t===null?null:Object.freeze({kind:e.kind,product:e.product,title:e.label,href:t})}).filter(e=>e!==null))}const zu=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"})]),sM=new Map(zu.map((e,t)=>[e.id,t])),oM=new Map(zu.map(e=>[e.id,e.label])),cM=new Map(zu.map(e=>[e.id,e.plural])),lM=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"})]),dM=new Map(lM.map(e=>[e.id,e.label])),jg=Object.freeze(["outstanding","in-progress","blocked","done"]),uM=Object.freeze({blocked:"blocked",done:"done","in-progress":"in progress",outstanding:"outstanding",addressed:"addressed"});function Uj(e){const t=e.trim();return t?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:"Item"}function ub(e){return sM.get(e)??zu.length}function fM(e){return oM.get(e)??Uj(e)}function pM(e){return cM.get(e)??fM(e)}function Lj(e){return dM.get(e)??(e||"Unknown")}function Ut(e){if(e==null)return"";if(typeof e=="string"){const s=e.lastIndexOf("/");return s>=0?e.slice(s+1):e}const t=e.frontmatter.id;if(t!=null&&t!=="")return String(t);const a=e.id.lastIndexOf("/");return a>=0?e.id.slice(a+1):e.id}function Pj(e){return e.frontmatter.sprintId??e.frontmatter.sprint??""}function hM(e,t=Object.freeze({})){const a=t.typeFilter??[],s=t.statusFilter??null,c=typeof t.search=="string"?t.search.trim().toLowerCase():"";return Object.freeze(e.filter(l=>!(a.length>0&&!a.includes(l.type)||s!==null&&l.status!==s||c&&!`${l.id} ${Ut(l)} ${l.title}`.toLowerCase().includes(c))))}function fb(e,t){switch(t){case"id":return e.id;case"title":return e.title;case"type":return e.type;case"status":return uM[e.status]??e.status;case"sprint":return String(Pj(e))}}function gM(e,t="id",a="asc"){const s=a==="desc"?-1:1;return Object.freeze(e.map((c,l)=>({node:c,index:l})).sort((c,l)=>{const u=fb(c.node,t).localeCompare(fb(l.node,t),void 0,{numeric:!0,sensitivity:"base"});return u!==0?u*s:c.index-l.index}).map(({node:c})=>c))}function Fj(e){let t=0,a=0,s=0,c=0;for(const l of e)l.status==="done"||l.status==="addressed"?c+=1:l.status==="in-progress"?a+=1:l.status==="blocked"?s+=1:t+=1;return Object.freeze({outstanding:t,inProgress:a,blocked:s,done:c})}function Vj(e){const{frontmatter:t}=e;if(typeof t.specScope=="string"&&t.specScope)return t.specScope;if(typeof t.specId=="string"&&t.specId)return t.specId;const a=e.id.indexOf("/");if(a>=0){const s=e.id.slice(0,a);if(/^SPEC-/iu.test(s))return s}if(e.type==="spec"){const s=t.id!=null&&t.id!==""?t.id:e.id;return s==null||s===""?null:String(s)}return null}function AM(e){const t=new Set;for(const a of e){const s=Vj(a);s&&t.add(s)}return Object.freeze([...t].sort((a,s)=>a.localeCompare(s,void 0,{numeric:!0,sensitivity:"base"})))}function qj(e){return e==="addressed"?"done":jg.includes(e)?e:"outstanding"}function Kj(e,t){const{frontmatter:a}=e;switch(t){case"status":return qj(e.status);case"type":return e.type||"unknown";case"sprint":return String(Pj(e)||"");case"feature":return a.featureId==null?"":String(a.featureId);case"epic":return a.epicId==null?"":String(a.epicId);case"spec":return Vj(e)??"";default:return a[t]==null?"":String(a[t])}}function mM(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 Uj(e||"Group")}}function yM(e){const t=[];e.length>0&&(t.push(Object.freeze({key:"status",label:"Status"})),t.push(Object.freeze({key:"type",label:"Type"})));const a=s=>e.some(c=>Kj(c,s)!=="");return a("sprint")&&t.push(Object.freeze({key:"sprint",label:"Sprint"})),a("feature")&&t.push(Object.freeze({key:"feature",label:"Feature"})),a("epic")&&t.push(Object.freeze({key:"epic",label:"Epic"})),AM(e).length>0&&t.push(Object.freeze({key:"spec",label:"Spec"})),Object.freeze(t)}function EM(e,t){return t?e==="status"?Lj(t):e==="type"?pM(t):t:`No ${mM(e).toLowerCase()}`}function BM(e,t){var c;if(t==="status"){const l=new Map(jg.map(u=>[u,[]]));for(const u of e)(c=l.get(qj(u.status)))==null||c.push(u);return Object.freeze(jg.map(u=>Object.freeze({key:u,label:Lj(u),nodes:Object.freeze(l.get(u)??[])})))}const a=new Map;for(const l of e){const u=Kj(l,t),f=a.get(u);f?f.push(l):a.set(u,[l])}let s;return t==="type"?s=[...a.keys()].sort((l,u)=>ub(l)-ub(u)||l.localeCompare(u)):(s=[...a.keys()].filter(l=>l!=="").sort((l,u)=>l.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"})),a.has("")&&s.push("")),Object.freeze(s.map(l=>Object.freeze({key:l,label:EM(t,l),nodes:Object.freeze(a.get(l)??[])})))}function su(e){return String(e??"").toLowerCase().replace(/\s+/gu," ").trim()}function Qg(e){const t=su(e);if(!t)return Object.freeze([]);if(t.length<3)return Object.freeze([t]);const a=[];for(let s=0;s<=t.length-3;s+=1)a.push(t.slice(s,s+3));return Object.freeze(a)}function Jj(e){const t=new Map,a=new Map;for(const c of e){t.set(c.id,c);const l=new Set([...Qg(c.id),...Qg(c.title)]);for(const u of l){const f=a.get(u);f?f.add(c.id):a.set(u,new Set([c.id]))}}const s=new Map([...a].map(([c,l])=>[c,new Set(l)]));return Object.freeze({nodes:Object.freeze([...e]),byId:t,postings:s})}function Zj(e,t,a=20){const s=su(t);if(!s||!Number.isSafeInteger(a)||a<0)return Object.freeze([]);const c=Qg(s),l=new Map;for(const u of c){const f=e.postings.get(u);if(f)for(const h of f)l.set(h,(l.get(h)??0)+1)}for(const u of e.nodes)`${su(u.id)} ${su(u.title)}`.includes(s)&&l.set(u.id,(l.get(u.id)??0)+c.length+1);return Object.freeze([...l].sort(([u,f],[h,A])=>A-f||u.localeCompare(h)).slice(0,a).map(([u])=>e.byId.get(u)).filter(u=>u!==void 0))}function vM(e){for(let t=0;t<e.length;t+=1){const a=e.charCodeAt(t);if(a>=55296&&a<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))return!0;t+=1}else if(a>=56320&&a<=57343)return!0}return!1}function Xj(e){const t=typeof e=="string"?e:e.id;if(!t||vM(t))return null;let a="";for(const s of new TextEncoder().encode(t)){const c=String.fromCharCode(s);a+=/^[A-Za-z0-9._-]$/u.test(c)?c:`:${s.toString(16).toUpperCase().padStart(2,"0")}`}return a}function bM(e){const t=[];for(let a=0;a<e.length;a+=1){const s=e[a];if(s!==":"){if(!/^[A-Za-z0-9._-]$/u.test(s))return null;t.push(s.charCodeAt(0));continue}const c=e.slice(a+1,a+3);if(!/^[0-9A-F]{2}$/u.test(c))return null;t.push(Number.parseInt(c,16)),a+=2}try{const a=new TextDecoder("utf-8",{fatal:!0}).decode(new Uint8Array(t));return a&&Xj(a)===e?a:null}catch{return null}}function $u(e){const t=Xj(e);return t===null?null:Oo(`#/detail/${encodeURIComponent(t)}`)}function wM(e){const t=[];for(const a of String(e??"").split(`
|
|
533
|
+
`)){const s=a.match(/^\s*[-*+]\s+\[([ xX])\]\s+(.*)$/u);s&&t.push(Object.freeze({text:s[2].trim(),done:s[1].toLowerCase()==="x"}))}return Object.freeze(t)}function xM(e){const t=[];let a=!1;for(const s of String(e??"").split(`
|
|
534
|
+
`)){const c=s.match(/^#{2,6}\s+(.*)$/u);if(c){a=/acceptance criteria/iu.test(c[1]);continue}if(!a||/^\s*[-*+]\s+\[[ xX]\]/u.test(s))continue;const l=s.match(/^\s*[-*+]\s+(.*)$/u);l!=null&&l[1].trim()&&t.push(l[1].trim())}return Object.freeze(t)}function jM(e){if(Array.isArray(e))return e.map(t=>String(t)).join(", ");if(e!==null&&typeof e=="object")try{return JSON.stringify(e)}catch{return String(e)}return String(e)}const QM=new Set(["id","title","type","status","body"]);function IM(e){const t={};for(const[u,f]of Object.entries(e.frontmatter))QM.has(u)||f==null||(t[u]=jM(f));const a=e.frontmatter.dependsOn,s=Array.isArray(a)?a.map(u=>String(u)):[],c=e.frontmatter.shipRef,l=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:xM(e.body),subtasks:wM(e.body),depIds:Object.freeze(s),...c!=null&&c!==""?{shipRef:String(c)}:{},...l!=null&&l!==""?{qaRef:String(l)}:{}})}function Ig(e,t,a,s,c){if(a==null)return null;const l=iM(a);return l===null?null:Object.freeze({id:e,title:t,href:l,source:s,kind:c})}function CM(e){if(!e)return Object.freeze([]);const t=[];for(const a of e){const s=Ig(`operate:${a.kind}:${a.subjectId}`,a.title,a.deepLink,"operate",a.kind);s&&t.push(s)}return Object.freeze(t)}function SM(e=Object.freeze({})){const t=Object.freeze([...e.planningNodes??[]]),a=CM(e.operateResults);return Object.freeze({routes:rM(),planningNodes:t,operateHits:a})}function pb(e,t){return e.toLowerCase().includes(t)}function OM(e,t,a=20){const s=t.trim().toLowerCase();if(!s||!Number.isSafeInteger(a)||a<0)return Object.freeze([]);const c=[];for(const u of e.routes)if(pb(`${u.title} ${u.kind} ${u.href}`,s)){const f=Ig(`route:${u.kind}`,u.title,u.href,"route",u.kind);f&&c.push(f)}for(const u of Zj(Jj(e.planningNodes),t,a)){const f=Ig(`planning:${u.id}`,u.title,$u(u),"planning",u.type);f&&c.push(f)}for(const u of e.operateHits)pb(`${u.title} ${u.kind} ${u.id}`,s)&&c.push(u);const l=new Set;return Object.freeze(c.filter(u=>l.has(u.href)?!1:(l.add(u.href),!0)).slice(0,a))}function _M(e,t,a=20){if(!t.trim().toLowerCase()||!Number.isSafeInteger(a)||a<0)return Object.freeze([]);const c=[];for(const l of Zj(Jj(e.planningNodes),t,a))$u(l)===null&&c.push(Object.freeze({id:l.id,title:l.title,kind:l.type,reason:"This artifact identity cannot be opened through the closed dashboard grammar."}));return Object.freeze(c.slice(0,a))}function Au(e){const t=Object.freeze([...e]);return Object.freeze({items:t,activeIndex:-1,moveDown(){const s=this.activeIndex<this.items.length-1?this.activeIndex+1:this.activeIndex;return mu(this.items,s)},moveUp(){const s=this.activeIndex>0?this.activeIndex-1:this.activeIndex;return mu(this.items,s)},reset(s){return Au(s)},getActive(){return this.activeIndex>=0&&this.activeIndex<this.items.length?this.items[this.activeIndex]??null:null}})}function mu(e,t){const a=Object.freeze([...e]);return Object.freeze({items:a,activeIndex:t,moveDown(){const s=t<a.length-1?t+1:t;return mu(a,s)},moveUp(){const s=t>0?t-1:t;return mu(a,s)},reset(s){return Au(s)},getActive(){return t>=0&&t<a.length?a[t]??null:null}})}const NM=e=>e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e=="number"?"number":typeof e,RM=(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"?e!==null&&typeof e=="object"&&!Array.isArray(e):!1,DM=/^\d{4}-\d{2}-\d{2}$/,TM=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;function kM(e,t){return t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}const Gn=(e,t,a,s,c)=>{if(t!==!0){if(t===!1){s.push({path:a,rule:"schema:false",detail:"value not allowed"});return}if(typeof(t==null?void 0:t.$ref)=="string"){const l=t.$ref;let u,f=c.rootSchema,h=c.base;if(l.startsWith("#"))u=kM(c.rootSchema,l);else if(typeof c.resolveRef=="function"){const y=c.resolveRef(l,{base:c.base});u=(y==null?void 0:y.schema)??y,f=(y==null?void 0:y.rootSchema)??u,h=(y==null?void 0:y.base)??(u==null?void 0:u.$id)??c.base}if(!u){s.push({path:a,rule:"$ref",detail:`could not resolve schema reference ${l}`});return}const A=`${c.base??"<root>"}:${l}`;if(c.referenceStack.includes(A)){s.push({path:a,rule:"$ref",detail:`circular schema reference ${l}`});return}Gn(e,u,a,s,{...c,rootSchema:f,base:h,referenceStack:[...c.referenceStack,A]})}if(t.type!==void 0){const l=Array.isArray(t.type)?t.type:[t.type];if(!l.some(u=>RM(e,u))){s.push({path:a,rule:"type",detail:`expected ${l.join("|")}, got ${NM(e)}`});return}}if(t.const!==void 0&&e!==t.const&&s.push({path:a,rule:"const",detail:`expected ${JSON.stringify(t.const)}, got ${JSON.stringify(e)}`}),Array.isArray(t.enum)&&(t.enum.includes(e)||s.push({path:a,rule:"enum",detail:`value ${JSON.stringify(e)} not in enum [${t.enum.map(l=>JSON.stringify(l)).join(", ")}]`})),typeof e=="string"){if(typeof t.minLength=="number"&&e.length<t.minLength&&s.push({path:a,rule:"minLength",detail:`length ${e.length} < ${t.minLength}`}),typeof t.maxLength=="number"&&e.length>t.maxLength&&s.push({path:a,rule:"maxLength",detail:`length ${e.length} > ${t.maxLength}`}),typeof t.pattern=="string")try{new RegExp(t.pattern).test(e)||s.push({path:a,rule:"pattern",detail:`value ${JSON.stringify(e)} does not match /${t.pattern}/`})}catch(l){s.push({path:a,rule:"pattern",detail:`invalid regex /${t.pattern}/: ${l.message}`})}typeof t.format=="string"&&(t.format==="date"&&!DM.test(e)?s.push({path:a,rule:"format:date",detail:`value ${JSON.stringify(e)} is not YYYY-MM-DD`}):t.format==="date-time"&&!TM.test(e)&&s.push({path:a,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&&s.push({path:a,rule:"minimum",detail:`value ${e} < ${t.minimum}`}),typeof t.maximum=="number"&&e>t.maximum&&s.push({path:a,rule:"maximum",detail:`value ${e} > ${t.maximum}`})),Array.isArray(e)){typeof t.minItems=="number"&&e.length<t.minItems&&s.push({path:a,rule:"minItems",detail:`length ${e.length} < ${t.minItems}`}),typeof t.maxItems=="number"&&e.length>t.maxItems&&s.push({path:a,rule:"maxItems",detail:`length ${e.length} > ${t.maxItems}`});const l=Array.isArray(t.prefixItems)?t.prefixItems.length:0;if(l>0)for(let u=0;u<Math.min(e.length,l);u++)Gn(e[u],t.prefixItems[u],`${a}[${u}]`,s,c);if(t.items!==void 0)for(let u=l;u<e.length;u++)Gn(e[u],t.items,`${a}[${u}]`,s,c);if(t.uniqueItems===!0){const u=new Set;for(const f of e){const h=JSON.stringify(f);if(u.has(h)){s.push({path:a,rule:"uniqueItems",detail:`duplicate item ${h}`});break}u.add(h)}}if(t.contains!==void 0){let u=0;for(let A=0;A<e.length;A+=1){const y=[];Gn(e[A],t.contains,`${a}[${A}]`,y,c),y.length===0&&(u+=1)}const f=Number.isSafeInteger(t.minContains)?t.minContains:1,h=Number.isSafeInteger(t.maxContains)?t.maxContains:null;u<f&&s.push({path:a,rule:"contains",detail:`matched ${u} contained items; expected at least ${f}`}),h!==null&&u>h&&s.push({path:a,rule:"contains",detail:`matched ${u} contained items; expected at most ${h}`})}}if(e!==null&&typeof e=="object"&&!Array.isArray(e)){if(Array.isArray(t.required))for(const u of t.required)Object.hasOwn(e,u)||s.push({path:a,rule:"required",detail:`missing required property '${u}'`});const l=t.properties||{};for(const[u,f]of Object.entries(e))Object.hasOwn(l,u)||(t.additionalProperties===!1?s.push({path:a,rule:"additionalProperties",detail:`unknown property '${u}'`}):(t.additionalProperties===!0||t.additionalProperties!==null&&typeof t.additionalProperties=="object")&&Gn(f,t.additionalProperties,`${a}.${u}`,s,c));for(const[u,f]of Object.entries(e))Object.hasOwn(l,u)&&Gn(f,l[u],`${a}.${u}`,s,c)}if(Array.isArray(t.oneOf)){let l=0;for(const u of t.oneOf){const f=[];Gn(e,u,a,f,c),f.length===0&&l++}if(l!==1){const u=t.oneOf.map(f=>f.title||"(unnamed)").join(" | ");s.push({path:a,rule:"oneOf",detail:`matched ${l}/${t.oneOf.length} branches (expected exactly 1). Branches: ${u}`})}}if(Array.isArray(t.anyOf)){let l=0;for(const u of t.anyOf){const f=[];Gn(e,u,a,f,c),f.length===0&&(l+=1)}if(l===0){const u=t.anyOf.map(f=>f.title||"(unnamed)").join(" | ");s.push({path:a,rule:"anyOf",detail:`matched 0/${t.anyOf.length} branches (expected at least 1). Branches: ${u}`})}}if(Array.isArray(t.allOf))for(const l of t.allOf)Gn(e,l,a,s,c);if(t.if!==void 0){const l=[];Gn(e,t.if,a,l,c);const u=l.length===0?t.then:t.else;u!==void 0&&Gn(e,u,a,s,c)}if(t.not!==void 0){const l=[];Gn(e,t.not,a,l,c),l.length===0&&s.push({path:a,rule:"not",detail:"value matched a forbidden subschema"})}}},ko=(e,t,{resolveRef:a=null,base:s=(t==null?void 0:t.$id)??null}={})=>{const c=[];return Gn(e,t,"$",c,{rootSchema:t,resolveRef:a,base:s,referenceStack:[]}),c},MM=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function hb(e,t){for(let a=0;a<e.length;a+=1){const s=e.charCodeAt(a);if(s>=55296&&s<=56319){const c=e.charCodeAt(a+1);if(!(c>=56320&&c<=57343))throw new TypeError(`JCS cannot canonicalize a lone high surrogate at ${t}.`);a+=1}else if(s>=56320&&s<=57343)throw new TypeError(`JCS cannot canonicalize a lone low surrogate at ${t}.`)}}function Cg(e,t,a){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return hb(e,t),JSON.stringify(e);if(typeof e=="number"){if(!Number.isFinite(e))throw new TypeError(`JCS requires a finite number at ${t}.`);return JSON.stringify(e)}if(typeof e!="object")throw new TypeError(`JCS cannot canonicalize ${typeof e} at ${t}.`);if(a.has(e))throw new TypeError(`JCS cannot canonicalize a cycle at ${t}.`);a.add(e);try{if(Array.isArray(e)){const l=[];for(let u=0;u<e.length;u+=1){if(!MM(e,u))throw new TypeError(`JCS cannot canonicalize a sparse array at ${t}[${u}].`);l.push(Cg(e[u],`${t}[${u}]`,a))}return`[${l.join(",")}]`}const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)throw new TypeError(`JCS requires a plain JSON object at ${t}.`);return`{${Object.keys(e).sort().map(l=>(hb(l,`${t} key`),`${JSON.stringify(l)}:${Cg(e[l],`${t}.${l}`,a)}`)).join(",")}}`}finally{a.delete(e)}}function GM(e){return Cg(e,"$",new Set)}const YM=new Uint32Array([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]),Oa=(e,t)=>e>>>t|e<<32-t;function kA(e){const t=typeof e=="string"?new TextEncoder().encode(e):e;if(!ArrayBuffer.isView(t)||Object.prototype.toString.call(t)!=="[object Uint8Array]")throw new TypeError("sha256Hex expects a string or Uint8Array.");const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=Math.ceil((a.length+9)/64)*64,c=new Uint8Array(s);c.set(a),c[a.length]=128;const l=new DataView(c.buffer),u=BigInt(a.length)*8n;l.setUint32(s-8,Number(u>>32n&0xffffffffn)),l.setUint32(s-4,Number(u&0xffffffffn));let f=1779033703,h=3144134277,A=1013904242,y=2773480762,m=1359893119,E=2600822924,b=528734635,w=1541459225;const x=new Uint32Array(64);for(let j=0;j<c.length;j+=64){for(let M=0;M<16;M+=1)x[M]=l.getUint32(j+M*4);for(let M=16;M<64;M+=1){const L=Oa(x[M-15],7)^Oa(x[M-15],18)^x[M-15]>>>3,Z=Oa(x[M-2],17)^Oa(x[M-2],19)^x[M-2]>>>10;x[M]=x[M-16]+L+x[M-7]+Z>>>0}let I=f,C=h,O=A,S=y,_=m,k=E,N=b,z=w;for(let M=0;M<64;M+=1){const L=Oa(_,6)^Oa(_,11)^Oa(_,25),Z=_&k^~_&N,F=z+L+Z+YM[M]+x[M]>>>0,oe=Oa(I,2)^Oa(I,13)^Oa(I,22),re=I&C^I&O^C&O,pe=oe+re>>>0;z=N,N=k,k=_,_=S+F>>>0,S=O,O=C,C=I,I=F+pe>>>0}f=f+I>>>0,h=h+C>>>0,A=A+O>>>0,y=y+S>>>0,m=m+_>>>0,E=E+k>>>0,b=b+N>>>0,w=w+z>>>0}return[f,h,A,y,m,E,b,w].map(j=>j.toString(16).padStart(8,"0")).join("")}function xn(e){return`sha256:${kA(GM(e))}`}const Wj=(e,t)=>Object.hasOwn(e,t);function eQ(e,t=new Set){if(e===null||typeof e!="object"||t.has(e))return e;t.add(e);for(const a of Object.values(e))eQ(a,t);return Object.freeze(e)}function Ua(e){return Kc(e),structuredClone(e)}function gb(e){for(let t=0;t<e.length;t+=1){const a=e.charCodeAt(t);if(a>=55296&&a<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))throw new TypeError("JCS requires Unicode scalar strings.");t+=1}else if(a>=56320&&a<=57343)throw new TypeError("JCS requires Unicode scalar strings.")}}function Sg(e,t){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return gb(e),JSON.stringify(e);if(typeof e=="number"){if(!Number.isFinite(e))throw new TypeError("JCS requires finite numbers.");return JSON.stringify(e)}if(typeof e!="object")throw new TypeError("JCS requires JSON data.");if(t.has(e))throw new TypeError("JCS cannot canonicalize a cycle.");t.add(e);try{if(Array.isArray(e)){if(Reflect.ownKeys(e).some(f=>{if(f==="length")return!1;if(typeof f!="string")return!0;const h=Number(f);return!Number.isSafeInteger(h)||h<0||h>=e.length||String(h)!==f}))throw new TypeError("JCS requires plain JSON arrays.");const u=[];for(let f=0;f<e.length;f+=1){const h=Object.getOwnPropertyDescriptor(e,String(f));if(!h||!h.enumerable||h.get||h.set)throw new TypeError("JCS cannot canonicalize a sparse array.");u.push(Sg(h.value,t))}return`[${u.join(",")}]`}const a=Object.getPrototypeOf(e);if(a!==Object.prototype&&a!==null)throw new TypeError("JCS requires plain JSON objects.");const s=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(e).some(l=>{if(typeof l!="string")return!0;const u=s[l];return!(u!=null&&u.enumerable)||typeof u.get=="function"||typeof u.set=="function"}))throw new TypeError("JCS requires enumerable data properties only.");return`{${Object.keys(s).sort().map(l=>(gb(l),`${JSON.stringify(l)}:${Sg(s[l].value,t)}`)).join(",")}}`}finally{t.delete(e)}}function Kc(e){return Sg(e,new Set)}function MA(e,t){return`sha256:${kA(`${t}\0${Kc(e)}`)}`}function mr(e){return`sha256:${kA(Kc(e))}`}function tQ(e){const t=Ua(e);return delete t.integrity.contentHash,t}function Kt(e,t){return Kc(e)===Kc(t)}function hn(e,t){return(e==null?void 0:e.sequence)===(t==null?void 0:t.sequence)&&(e==null?void 0:e.hash)===(t==null?void 0:t.hash)}const HM=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"]),zM=1e6,zh=5e5,$M=256,UM=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,LM=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/u;function sn(){const e=new 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 PM(e){if(typeof e!="string"||e.length===0||e.length>zM||e.length%4!==0||!UM.test(e))throw sn();let t;try{if(t=globalThis.atob(e),globalThis.btoa(t)!==e)throw sn()}catch{throw sn()}const a=new Uint8Array(t.length);for(let s=0;s<t.length;s+=1){const c=t.charCodeAt(s);if(c>255)throw sn();a[s]=c}return a}function ct(e){const t=PM(e);let a=0,s=0;const c=()=>{if(a>=t.length)throw sn();const A=t[a];return a+=1,A},l=()=>{let A=0,y=1;for(let m=0;m<5;m+=1){const E=c();if(A+=(E&127)*y,A>4294967295)throw sn();if((E&128)===0){if(m>0&&E===0)throw sn();return A}y*=128}throw sn()},u=()=>{const A=HM[l()];if(typeof A!="string")throw sn();return A},f=A=>{if(s+=1,s>zh||A>$M)throw sn();switch(c()){case 0:return null;case 1:return!1;case 2:return!0;case 3:{const y=u();if(!LM.test(y))throw sn();const m=Number(y);if(!Number.isFinite(m)||JSON.stringify(m)!==y)throw sn();return m}case 4:return u();case 5:{const y=l();if(y>zh-s)throw sn();const m=new Array(y);for(let E=0;E<y;E+=1)m[E]=f(A+1);return m}case 6:{const y=l();if(y>zh-s)throw sn();const m={};for(let E=0;E<y;E+=1){const b=u();if(Object.hasOwn(m,b))throw sn();Object.defineProperty(m,b,{value:f(A+1),enumerable:!0,configurable:!0,writable:!0})}return m}default:throw sn()}},h=f(0);if(a!==t.length||!h||typeof h!="object"||Array.isArray(h))throw sn();return h}const GA=ct("BgpCBENBBPYKRAYCGgSvCx4EJBgEwgkABAYHAQQFBAR4BH8EqgEEcwIGBHgGAgAEAw4FDgT9AgT7AgT8AgT5AgT6AgT4AgT/AgSAAwT1AgT2AgT3AgT+AgTXAwTWA38GAKoBBgQABAMXAwwPA0xIBgELBKUCcwYCAAQDDgUGBHYEwQIE4wEExwQEqAQEvAMZBQ4GAhgE/QICBgN4BgEFBP0CfwYBAQShCHMGAQUE4wEGAhgE+wICBgN4BgEFBPsCfwYBAQTbBHMGAQUEdgYCGAT8AgIGA3gGAQUE/AJ/BgEBBNsEcwYBBQTjAQYCGAT5AgIGA3gGAQUE+QJ/BgEBBIkIcwYBBQTBAgYCGAT6AgIGA3gGAQUE+gJ/BgEBBIsIcwYBBQTBAgYCGAT4AgIGA3gGAQUE+AJ/BgEBBIQIcwYBBQR2BgIYBP8CAgYDeAYBBQT/An8GAQEE+AhzBgEFBHYGAhgEgAMCBgN4BgEFBIADfwYBAQSKBHMGAQUE4wEGAhgE9QICBgN4BgEFBPUCfwYBAQT4B3MGAQUE4wEGAhgE9gICBgN4BgEFBPYCfwYBAQT8B3MGAQUE4wEGAhgE9wICBgN4BgEFBPcCfwYBAQT+B3MGAQUE4wEGAhgE/gICBgN4BgEFBP4CfwYCAAQGBwFzBgEFBHYGAhgE1wMCBgN4BgEFBNcDfwYEAAQGBwEEBQEEvAICBgG8AgYBAQRdcwYBBQS8AwYCGATWAwIGA3gGAQUE1gN/BgIABAYHAXMGAQUEwQJFBg+7CgYEAAQGBwEEBQUEOwTHAwTjBwTTBgQ6AgYGOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBF0pBgEBBF0qBgEzBQIGAQEEXQYBDwNvxwMGAwAECBYCCQYBAQRd4wcGBAAEBgcBBAUBBBECBgERBgEFBMUG0wYGAgAEAw4FAgSJDATZCzoGAQEEXaIEBgIABAMOBQQE7AUEmgcEqwYE4wa4CgYEAAQGBwEEBQEELwIGAS8GAQEEXZUKBgQABAYHAQQFAgRTBGsCBgJTBgIABAMLBLABawYBAQSJBJgKBgQABAYHAQQFBgRTBIoDBGsEZgSnAQSZAgIGBlMGAgAEAwsEsAGKAwYCAAQDCwSoBWsGAQEEiQRmBgEBBF2nAQYCAAQDDgUCBOgBBJsEmQIGAgAEAwsEoAWOCgYFAAQGBwEEBQUEPASFAgRrBDsEUwIGBTwGAgAEAwsEaYUCBgIABAMOBQQEyAQEnQQEwgIEoQRrBgEBBIkEOwYBAQS9AVMGAgAFAgQDBAoLBLABMwUBBgIiBgICBgFrBgICBgERBgEFBJgEBAUBBBEEBQEEayMGAQIGAVMGAQAEA/cLBgQABAYHAQQFBAR7BC8EawQ7AgYEewYCAAQDCwSXAi8GAgAEAwsElgJrBgEBBN0COwYBAQS9AcwEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYCAAQDCwSWAmsGAQEE3QI7BgEBBL0BWgYCAAQDDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAoIKBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAgAEAwsEP/wJBgQABAYHAQQFAgQwBGQCBgMwBgEBBIIEZAYBDgUDBJABBEAExgHSAgYEAAQGBwEEBQUE0AEEmAcE2QMEkAYEkwYCBgXQAQYCAAQDCwSeA5gHBgIABAMLBD/ZAwYCAAQDCwSpApAGBgIABAMLBKoFkwYGAgAEAwsEP4AKBgQABAYHAQQFAQQwAgYBMAYBAQSCBIMKBgQABAYHAQQFAwQwBNkDBNABAgYDMAYBAQSCBNkDBgIABAMLBKkC0AEGAgAEAwsEngPeCwYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQRdEQYCAAQDDgUCBJgEBJsCmgEGAQEEXaoEBgQABAYHAQQFAwQyBBEEmgECBgMyBgEBBF0RBgEFBJsCmgEGAQEEXTsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db7QEBgQABAMXAwwPAxVIBgELBKUC"),FM=ct("BgVCBENBBKcGRAYCGgS7BB4ELhgElQVFBhVYBgEOBQQEgwME8AIE6QIEV3AGAgAFAgQDBAoOBQIElwQAxgUGBAAEBgcBBAUGBDwEpQMElwEElgEEdQSAAQIGBjwGAQEEDaUDBgEBBA2XAQYBAQSkApYBBgIABAMdBCB1BgEBBCiAAQYCAAUCBAMECgsEP8cFBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYCAAUCBAMECgsEP9cFBgQABAYHAQQFAgQ1BDACBgI1BgEBBA0wBgEBBPMC4gUGBAAEBgcBBAUEBBEENQTNAQQ5AgYEEQYBDgUFBMQBBMAGBGQEMAQ2NQYBAQQNzQEGAQ4FBATRBASgBATLAwSlBDkGAQEEjQHEAQYEAAQGBwEEBRIErwIEHwTAAwRcBPoDBLMDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhKvAgYBAQQNHwYBDgUFBKACBLIBBJsBBLsBBFfAAwYBDgUFBLcGBNkHBKIHBNUHBLsBXAYBAQR9+gMGAwAECBYCCQYBAQQNswMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBNgElwEGARkFAgYBAAQKBgEBBKQClgEGAgAEAx0EIDsGAQEEvQGHAgYBAQTSAYQCBgEZBQIGAQAECgYBAQTZBEcGAwAFAgRJBAoQAxNNAwyJAQYDAAQIFgIJBgEBBA39AQYCAAQICQYBAQSTA3AGAQEE6gH1AQYCAAQICQYBAQSQAzkGAQEEjQE5BgIABAMLBJMENAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKE8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BjgYGBAAEBgcBBAUHBGcEyAEEdQSAAQTUAgRmBFgCBgdnBgEBBA3IAQYBAQQNdQYBAQQogAEGAgAFAgQDBAoLBD/UAgYCAAQSEAMTZgYBAQQNWAYBAQTSAY8GBgQABAYHAQQFAwSdAQTIAgTOAgIGA50BBgEOBQQE3QEE3AEE4gEE4QHIAgYBAQSSA84CBgEBBJIDMQYCAAQDCwQ/GgYDAAQDFwMMDwMVrAYGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEON4GBgQABQIEAwQKFwMMDwNuCwTWAZcBBgQABAYHAQQFAwQyBEoEmgECBgMyBgEBBA1KBgEBBA2aAQYBAQQNuAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BjsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQQNKQYBAQQNKgYBAQQ4HgYDAAQDFwMMDwNv"),nQ=ct("BglCBENBBPkKRAYCGgTtBh4ELhgE1AmcAQSmCQAEBgcBBAUJBBEEGwQhBJIGBPcBBPYBBIwCBN0GBNkFAgYJEQYBBQTtBhsGAQUELiEGAQUEJJIGBgEBBMEE9wEGAQEEwAT2AQYBAQTCBIwCBgEBBIkH3QYGARkFAgYBAAQKBgQABAMXAwwPA2ILBJsD2QUGAQEEwgQ="),Mo=ct("BgpCBENBBPoKRAYCGgTvBh4ELhgEzwmcAQSlCQAEBgcBBAUFBBEEGwQhBHoEYQIGBREGAQUE7wYbBgEFBC4hBgEFBCR6BgEBBIwEYQYBAQSQAkUGFdYEBgUABAYHAQQFFgR0BBEEGwQhBJgBBFYELAQpBCoELwR7BDIEWARlBIgCBPADBNUCBNIHBGgEHwQ3BCcCBhZ0BgEFAhEGAQUEvAsbBgEFBC4hBgEFBCSYAQYBBQJWBgEABF8sBgEBBJwCKQYBAQScAioGAQEEuAsvBgEBBIQHewYCAAQDCwSXAjIGAQEEnAJYBgEBBLQLZQYCAAQDHQQgiAIGAQ4FAgTDAgSBA/ADBgEBBIIC1QIGAQEE9ALSBwYBAQT0AmgGAQEEggIfBgEOBQcE5AEEdgRSBJ8BBGME4AEE5wE3BgQABAgUAxUWAgkGAgAEAwsEpwInBgEBBKQIMwUCBgIiBgICBgGIAgYBBQTDAgQFAQSIAiMGAQIGAh8GAUgGAQUE5wEnBgECBgOLAQYCAgYCHAYBBQS2AVoGAQAECgQFAgQcBFqsAwYBJgMMjAMGAQAECgYCIgYCAgYBiAIGAQUEgQMEBQEEiAIjBgECBgQfBgEFBOcBVgYBBQE3BgGwAwYBBQTeCScGAQIGBIsBBgICBgEcBgEOBQQEkAEEwwEEQASRAQQFAQQcrAMGARQDE4wDBgEBBPwEwAEGAgIGAlUGAQUBTgYBFAMTBAUCBFUETicGBAAEBgcBBAUQBIsBBMUEBKcEBMsCBKwDBJ4BBIgBBK0BBIkBBLEBBE8EgQIE/QMEjQIEjAMEwAECBhCLAQYBAQTYA8UEBgEBBOsIpwQGAQEEwgjLAgYBAQTwCKwDBgMABAgUAxUJBgEBBJcIngEGAwAECBQDTAkGAQEEhweIAQYDAAQIFANMCQYBAQSGB60BBgMABAgUA2IJBgEBBI0JiQEGAwAECBQDYgkGAQEEiAexAQYDAAQIFANuCQYBAQS2C08GAwAECBQDbgkGAQEEtwuBAgYDAAQIFANuCQYBAQTfAv0DBgEZBQIGAQAECgYBAQSMB40CBgEBBP8IjAMGARkFAgYBAAQKBgEBBPwEwAEGAQEElAjFBAYEAAQGBwEEBQUEiQIEOgS3BQTQBQSVBgIGBYkCBgQABAYHAQQFAgQaBB4CBgIaBgEFBL8EHgYBBQQkOgYBAQScArcFBgEABF/QBQYBBQTzC5UGBgEFAacEBgQABAYHAQQFBwSiAgS4AwSgAwTGAwS+AwTIAwTlBwIGB6ICBgEBBMMEuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxPlBwYCAAQSEAMTywIGARkFAgYEAAQGBwEEBQMEHwQJBNcBAgYDHwYBBQRVCQYEAAQIJgMMFANMCQYBAQSFB9cBBgEABAoGBAAEBgcBBAUDBB8ECQTXAQIGAx8GAQUE7gEJBgIABAgUAxPXAQYBAQT9BKcKBgQABAYHAQQFBwT3AQT2AQSqAQSMAgT5AQTPAQSyBwIGB/cBBgEBBMAE9gEGAQEEggKqAQYBAQSKB4wCBgEBBIkH+QEGAQEEwwTPAQYBDgUCBIQLBP8LsgcGBAAECBQD1QEWAgkGAQEExAKtAQYEAAQGBwEEBQQE5gcE0QcE0AcEXAIGBOYHBgEBBJwC0QcGAQ4FBARkBMQBBE8E5ArQBwYBAQScAlwGAQEEwwS4BAYEAAQGBwEEBQUEEQTmAQS1AwTaBwTjAwIGBREGAQ4FAgRXBO4B5gEGAQ4FBARPBMQBBMoHBNEBtQMGAgAEEhADDNoHBgQABAgUA24WAgkGAQEEnALjAwYCAAQDCwSnAoAMBgQABAYHAQQFDAQRBBsE1QIEaAT4AwSCAwTtAwRPBLEBBG0EmAIEgQICBgwRBgEFBL0LGwYBBQQu1QIGAQEE9AJoBgEBBIIC+AMGAQEEgQmCAwYBAQTtCO0DBgEBBP0ITwYBAQSyCLEBBgEBBJkIbQYBAQSPCZgCBgEBBI4IgQIGAQEEhQmHDAYEAAQGBwEEBQwE2gEEhQEE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgME3wUCBgzaAQYCAAQSEAMThQEGAgAEEhADE+gCBgIABBIQAxOTAQYCAAQSEAMTVQYCAAQSEAMTjQMGAgAEEhADE2MGAgAEEhADE3kGAgAEEhADE4gDBgIABBIQAxObAQYCAAQSEAMThgMGAgAEEhADE98FBgQABAgmA5oDFAOaAwkGBAAEBgcBBAUKBBoE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgMCBgoaBgEOBQcE4gYE6AcE9AUEpAYEsgUE8gcEuAboAgYCAAQSEAMTkwEGAgAEEhADE1UGAgAEEhADE40DBgIABBIQAxNjBgIABBIQAxN5BgIABBIQAxOIAwYCAAQSEAMTmwEGAgAEEhADE4YDBgIABBIQAxPcCwYEAAQGBwEEBQgEHwS+BgS7BwS5BwTpBwTxBwTsBwQ3AgYIHwYBDgUEBNsCBNgCBJ8BBLYEvgYGAgAEEhADE7sHBgIABBIQAxO5BwYCAAQSEAMT6QcGAgAEEhADE/EHBgIABBIQAxPsBwYCAAQSEAMTNwYEAAQIFAMVFgIJBgIABAMLBKcC/gsGBAAEBgcBBAUJBIUBBOcBBI8CBEAEeQS+AQTlAgS2AQT+AwIGCYUBBgIABBIQAxPnAQYCAAQSEAMTjwIGAgAEEhADE0AGAgAEEhADE3kGAgAEEhADE74BBgIABBIQAxPlAgYCAAQSEAMTtgEGAgAEEhADE/4DBgIABBIQAxPRCgYEAAQGBwEEBQgEhQEEVQRXBJMBBN8BBFIEvQYEuQQCBgiFAQYCAAQSEAMTVQYCAAQSEAMTVwYCAAQSEAMTkwEGAgAEEhADE98BBgIABBIQAxNSBgIABBIQAxO9BgYCAAQSEAMTuQQGAgAEEhADE6gKBgQABAYHAQQFBgSFAQSgAgSyAQSbAQS7AQRXAgYGhQEGAgAEEhADE6ACBgIABBIQAxOyAQYCAAQSEAMTmwEGAgAEEhADE7sBBgIABBIQAxNXBgIABBIQAxOWDAYEAAQGBwEEBQUEhQEE2wIE2AIE3AYEsgYCBgWFAQYCAAQSEAMT2wIGAgAEEhADE9gCBgIABBIQAxPcBgYCAAQSEAMTsgYGAgAEEhADE5oKBgQABAYHAQQFBASFAQSpAwS1BQTVBAIGBIUBBgIABBIQAxOpAwYCAAQSEAMTtQUGAgAEEhADE9UEBgIABBIQAxONDAYEAAQGBwEEBQQEhQEEVwTuAQQ3AgYEhQEGAgAEEhADE1cGAgAEEhADE+4BBgIABBIQAxM3BgQABAgUAxUWAgkGAgAEAwsEpwKMAwYEAAQGBwEEBQgE5AMEZAStAgSsAgSjAwTiAwQ0BK4DAgYI5AMGAgAEAwsEpwVkBgEOBQQEkAEEwwEEQASRAa0CBgEBBMAErAIGAQEEggKjAwYEAAQIFAPVARYCCQYBAQTEAuIDBgEBBPQCNAYBAQT0Aq4DBgIABAMdBCDAAQYBGQUCBgQABAYHAQQFAwRVBE4EKwIGA1UGAQUCTgYEAAQIJgMMFAMVCQYBAQS1CysGAQAECgYEAAQGBwEEBQMEVQROBCsCBgNVBgEFAU4GAgAECBQDEysGAQEE/QTXAgYEAAQGBwEEBQIEcQSAAgIGAnEGAgAEAwsEpwKAAgYBAQSKB2EGBAAEBgcBBAUGBI8BBJQBBIgCBGgE8AMEkgECBgaPAQYBBQSfApQBBgEFBK0LiAIGAQ4FAgTDAgSBA2gGAQEEggLwAwYBAQSCApIBBgEBBIIC"),aQ=ct("BgVCBENBBKgGRAYCGgS8BB4EJBgEkgVFBgKNBgYBAgYCKwYDAAQDFwMMDwNiUAYDAAQDFwMMDwMVwQcGAQIGAysGAwAEAxcDDA8DYlAGAwAEAxcDDA8DFUoGAwAEAxcDDA8DFQ=="),VM=ct("BgZCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBUUGAzwGAgAEAwsEae8CBgIABAMLBJUCzwQGAwAEBgcBAgYGnQEGAQ4FBATdAQTcAQTiAQThAbEHBgEBBEvUBwYBAQRLxwIGAQEESzwGAQEEvAG6BwYBAQRL"),iQ=ct("BgZCBENBBKoGRAYCGgTDAh4EJBgElAWcAQSZBUUGGGoGAgAEAwsElAS0BQYEAAQGBwEEBQsEWQQYBBwEOgTzAwT+AQSrAQT0AQRsBNoCBNkCAgYLWQYCAAQDCwTtARgGAQEE1AEcBgEOBQkExgQEkAEEpgcErQYEnwQEYwRABMYBBJEBOgYDAAUCBAMEChcDDA8DFfMDBgIABQIEAwQKCwTjAv4BBgEBBCWrAQYCAAUCBAMECgsEpQX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQQl2QIGAQEEJTwGAgAEAwsEaVMGAgAEAwsEsAEvBgIABAMLBJYC9gUGBQAEBgcBBAUNBD0EsgIEGATKAgQ2BFsERwQ6BLoCBLkCBNACBIgBBGACBhA9BgEOBQIEzAEEywGyAgYCAAQDCwTjAhgGAQEE1AHKAgYBAQQlNgYBGQUCBgEABAoGAQEEJVsGAQEEJUcGAwAESRADE00DDDoGAQEEDboCBgEBBCW5AgYBAQQlrQEGAQEEJc8BBgEBBCXQAgYEAAQIJgMMFAODBQkGAQEEJfsBBgQABAgUAxUWAgkGAgAEAwsEnAOIAQYDAAQIFAMVCQYBAQQlYAYFAAQIJgMMFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUDBgEEBQEErQEGAQQFAQTPAQYBBAUBBPsBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQMErQEEzwEE+wH9BQYEAAQGBwEEBQQE9wEE9gEEqgEEjAICBgT3AQYCAAQDCwSVBPYBBgEBBCiqAQYBAQTUAYwCBgEBBIoE/gUGBAAEBgcBBAUEBGcEwAIEXATNAgIGBGcGAQEEvAHAAgYCAAQDCwScA1wGAQEEJc0CBgEBBCU0BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiMBgYEAAQGBwEEBQYEagQRBJkBBIoCBCsEUAIGBmoGAQEE6QERBgEFBE+ZAQYBAQRLigIGBQAECCYDDBQDjgEWAgkGBAAEBgcBBAUCBBoEHgIGAhoGAQEESx4GAQEEOCsGAQEE9AZQBgEBBPUGggEGAgAEAwsEqAKaBgYFAAQGBwEEBQcEPQT/AQQYBFwEHAQ6BOUBAgYMPQYBDgUCBMwBBMsB/wEGAgAEAwsEnQMYBgEBBNQBXAYBAQQltQEGAQ4FCASBBASyAQS0AwTSAwSABATNAwTbAwTsA7kBBgEOBQQEzwME0AMEyQMEtgNHBgMABEkQAxNNAwwcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAwAFAgQDBAoXAwwPAxXlAQYCAAUCBAMECh0EILoBBgQABAgUAxUWAgkGAQEE0wGzAQYEAAQIFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUFBgEEBQEEtQEGAQQFAQS5AQYBBAUBBEcGAQQFAQS6AQYBBAUBBLMBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQUEtQEEuQEERwS6AQSzAaEGBgEZBQIGAQEE9gQGAQEE4QQxBgIABAMLBD+qBAYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQQNEQYBBQSbApoBBgEBBA0aBgMABAMXAwwPAxXvAgYCAAQDCwSVAswEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYBAQSRA2sGAQEE3QI7BgEBBL0BWgYBDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAsAHBgQABAYHAQQFCARqBBEESgR3BHwEoAEEKwRQAgYIagYBAQTpAREGAQUE0QJKBgEBBPgGdwYBDgUDBL8BBMIBBMEBfAYBAQQ4oAEGARkFAgYBAAQKBgEBBIMEKwYBAQT2BlAGAQEE9wY7BgQABAYHAQQFAwQsBCkEKgIGAywGAQEEDSkGAQEESyoGAQEEONMCBgQABAYHAQQFBgRKBHcEfAQcBDwEnwMCBgZKBgEBBEt3BgEOBQMEvwEEwgEEwQF8BgEBBDgcBgEOBQcEtgEEVQTrAwSPAgRABL4BBHk8BgIABQIEAwQKCwRpnwMGBAAECBQDYhYCCQYBAQTpAaICBgQABAMXAwwPA24LBNYBGAYEAAQDFwMMDwNMCwSbAx4GAgAEAwsElAI="),YA=ct("BgpCBENBBP8KRAYCGgSBAx4EJBgExwmcAQTZCQAEBgcBBAUXBBEEGwQhBOQDBC8E4gMENAQ7BGsEiwEEZATTAgS0AQROBJ4BBIgBBIkBBL0DBK0CBKwCBKMDBKEBBK4DAgYYEQYBBQSBAxsGAQUELiEGAQUEJOQDBgIABAMLBKcFLwYBAQSEB+IDBgEBBMEENAYBAQTBBDsGAQEEzQtrBgEBBMwLiwEGAQEE2ANkBgEOBQQEkAEEwwEEQASRAdMCBgMABAgUA44BCQYBAQTOC7QBBgMABAgUA0wJBgEBBIUHTgYDAAQIFAN+CQYBAQTKC54BBgMABAgUA0wJBgEBBIcHiAEGAwAECBQDTAkGAQEEhgeJAQYDAAQIFANiCQYBAQSIB70DBgQABAgmAwwUAxUJBgEBBMsLrQIGAgAEAwsElQSsAgYBAQTCBKMDBgQABAgUA9UBFgIJBgEBBMQC2AUGAQEE7gahAQYBAQSECa4DBgIABAMdBCBFBgLrCwYFAAQGBwGcAQTgCQQFAwSnBwStAgSsAgIGBKcHBgEBBIMHrQIGAQEEkgmsAgYBAQSRCdgFBgEBBO4GoQEGBAAEBgcBBAUGBLgDBKADBMYDBL4DBMgDBIACAgYGuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxOAAgYEAAQDFwMMDwNuCwSiBQ=="),Uu=ct("BgpCBENBBIALRAYCGgS/BB4EJBgExAkABAYHAQQFCwQRBBsEIQR7BC8EOgQcBFoErwEEcgSOAgIGDBEGAQUEvwQbBgEFBC4hBgEFBCR7BgIABAMLBJcCLwYDAAQDFwMMDwMV5gEGAQEE+wQ6BgMABAMXAwwPAxUcBgIABAMOBQUEtgEEkAEEwwEEQASRAVoGAgAFAgQDBAoOBQUABJABBMMBBEAEkQGvAQYDAAQIFgIJBgEBBJAJcgYCAAQDHQQgjgIGAgAEAx0EIBkFBQYCGATWCwIGAxwGAQUEtgFaBgEFAK8BBgEUAxMGAhgEjAoCBgIcBgEFBJABWgYBBQSQAQYCGASmCgIGAxwGAQUEwwFaBgEFBMMBrwEGARQDEwYCGATpCwIGAxwGAQUEQFoGAQUEQK8BBgEUAxMGAhgEnwoCBgMcBgEFBJEBWgYBBQSRAa8BBgEUAxNFBgLmAQYBGQUCBgQABAYHAQQFAgQABC8CBgIABgEFBIEBLwYDAAQDFwMMDwMVBgQABAYHAQQFBAQABFkEUQSlAQIGBAAGAQUEMFkGAgAEAwsE7QFRBgIABBIQAwylAQYCAAQDCwQ/mQwGBAAEBgcBBAUDBIQGBNsBBFoCBgOEBgYCAAQDDgUDBL4EBMILBL4L2wEGAgAEAwsEoQVaBgIABAMOBQcE2AEEkAEEQAS4AQTGAQSLAwSRAQ=="),Lu=ct("BgpCBENBBIELRAYCGgSLBx4EJBgEwwmcAQSkCQAEBgcBBAUPBBEEGwQhBMgGBCwEKQQqBC8ENAS8BgTXBgSABgSBAgSCAwTHBgIGDxEGAQUEiwcbBgEFBC4hBgEFBCTIBgYCAAQDCwT0CSwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDTQGAQEE6wG8BgYEAAQGBwEEBQMEywYEygYE5AcCBgPLBgYBBQOHAcoGBgEFA+EC5AcGAQUB1wYGAwAECBQDhwEJBgEBBOIIgAYGAwAECBQD4QIJBgEBBK0IgQIGAwAECBQDhwEJBgEBBN8CggMGAQEE7AjHBgYBAQQoRQYMGgYDAAQDFwMMDwMVswQGAwAEAxcDDA8Dfh4GAgAEAwsElAIxBgIABAMLBD80BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCigCwYBDgUNBO8LBNcBBMoHBPMBBNkBBMQBBNAKBKkEBGQEMARaBG0ENrAEBgQABAYHAQQFBwQRBBoE7gUELAQpBCoELwIGBxEGAQEEhgQaBgEBBIUE7gUGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOCwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDZ8LBgQABAYHAQQFBQSwBATvAQSkBwSuBgSQBwIGBbAEBgEBBNwI7wEGAQ4FAwRVBFcE7gGkBwYBDgUTBLUEBLYBBOcBBNgBBEAEeQS+AQTbAgRSBKACBLIBBK0KBNgCBO4BBFcExgQE5woEnwQEjQuuBgYEAAQIFAPhAhYCCQYCAAQDCwSWBJAHBgQABAgUA+ECFgIJBgIABAMLBJYEzQoGBAAEBgcBBAUCBBEEGgIGAhEGAQEEhgQaBgEBBIUEywoGBAAEBgcBBAUEBP8FBM0BBJ0GBOIHAgYE/wUGAgAEAwsElgTNAQYBDgUQBMIKBJEKBJALBOQLBNoLBLADBI4MBK8KBMsDBKUKBMAKBN0LBMgKBOgKBJgMBKULnQYGAQEE3wTiBwYBAQTfBLgEBgQABAYHAQQFBgTlBgQRBOYBBDUE4wMErwYCBgblBgYCAAQDCwTzCREGAQ4FAgRXBO4B5gEGAQEEhgQ1BgEBBIUE4wMGAQ4FAwS5CQS7CQS6Ca8GBgMABBIQAxNNA+ECggMGBAAEBgcBBAUKBN4HBKwFBPAHBNYHBNwHBPAFBOsHBLwHBP4DBO8HAgYK3gcGAwAEEhADE00DhwGsBQYDAAQSEAMTTQOHAfAHBgMABBIQAxNNA4cB1gcGAwAEEhADE00DhwHcBwYDAAQSEAMTTQOHAfAFBgMABBIQAxNNA4cB6wcGAwAEEhADE00DhwG8BwYDAAQSEAMTTQOHAf4DBgMABBIQAxNNA4cB7wcGAwAEEhADE00DhwE="),HA=ct("BglCBENBBO8KRAYCGgTmBh4ELhgE0QkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOYGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBREEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEHwQ3BCcCBhF0BgEFAhEGAQUErgsbBgEFBC4hBgEFBCSYAQYBAARfVgYBAARfLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQkEMAQ2BJUBBKkBBIMBBLcBBG0E2gUEpgECBgkwBgEBBJcDNgYBGQUCBgEABAoGAQEEmAOVAQYCAAQICQYBAQSQBKkBBgIABAgJBgEBBI8EgwEGAgAECAkGAQEEjgS3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD2gUGBAAEBgcBBAUDBMEFBG0EvwcCBgPBBQYDAAQDFwMMDwN+bQYDAAQDFwMMDwN+vwcGAwAEAxcDDA8DfqYBBgIABAgJBgEBBP8EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEpwtoBgEBBF6SAQYBAQRe"),zA=ct("BglCBENBBPAKRAYCGgTnBh4ELhgE0gkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOcGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBRIEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEjQIEHwQ3BCcCBhJ0BgEFAhEGAQUEsQsbBgEFBC4hBgEFBCSYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQcElAcEgQEE4QMEtwEEbQTfAwSmAQIGB5QHBgEABAaBAQYBAAQG4QMGAQEEkwm3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD3wMGBAAEBgcBBAUGBJ4BBLQBBE4EigEElQEEsQICBgaeAQYBAAQItAEGAQAECE4GAQAECIoBBgEABAiVAQYBAAQIsQIGAQAECKYBBgQABAgmAwwUAwwJBgEBBP4EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqAtoBgEBBF6SAQYBAQRe"),$A=ct("BglCBENBBPUKRAYCGgTsBh4ELhgE0AkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOwGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQS7CxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQQEsQYEgwEEpgEErAcCBgSxBgYBAAQGgwEGAgAECAkGAQEEjgSmAQYCAAQICQYBAQT+BKwHBgEOBQcEYwSbAQSxCgTJCgSwAgS+AgTxC2EGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKwLaAYBAQRekgEGAQEEXg=="),UA=ct("BglCBENBBPEKRAYCGgToBh4ELhgEzgkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOgGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQSyCxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQIELwTDAwIGAi8GAQEERsMDBgEBBJcJYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqQtoBgEBBF6SAQYBAQRe"),LA=ct("BglCBENBBPMKRAYCGgTqBh4ELhgEzAkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOoGGwYBBQQuIQYBBQQkegYBMwUCBgEBBLMLBgICBgEtBgEOBQUE0wQEqQEE2gEEgQEETgQFAQQtYQYBAQSQAkUGAWEGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKsLaAYBAQRekgEGAQEEXg=="),PA=ct("BglCBENBBPIKRAYCGgTpBh4ELhgEzQkABAYHAQQFBgQRBBsEIQSdAgR6BGECBgYRBgEFBOkGGwYBBQQuIQYBBQQknQIGAQEE9Qh6BgEBBIgEYQYBAQSQAkUGCp0CBgQABAYHAQQFDAQyBCwEKQQqBC8ENQQtBMkCBB0EZQQ0BIYBAgYMMgYBAQRGLAYBAQRGKQYBAQRGKgYBAQSTAi8GAQEERjUGARkFAgYBAAQKBgEBBEYtBgEOBQYETwSKAQQ2BIMBBIcDBJoCyQIGAgAFAgQDBAoPA34dBgIABQIEAwQKDgUDAATOAwTKA2UGAgAEAx0EIDQGAQEEkgKGAQYBAQReegYFAAQGBwEEBRMEdAQRBBsEIQQtBJgBBFYELAQpBCoEMgRYBGUENASGAQSNAgQfBDcEJwIGE3QGAQUCEQYBBQS6BBsGAQUELiEGAQUEJC0GAQ4FBgRPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FCATkAQR2BFIEnwEEYwTgAQS+AgSwAjcGAwAECBYCCQYBAAQDJwYBAAQGMwUGBgIiBgICBgEtBgEFBE8EBQEELSMGAQIGAScGAQEE4AQGAiIGAgIGAS0GAQUEigEEBQEELSMGAQIGAScGAQEE8wQGAiIGAgIGAS0GAQUENgQFAQQtIwYBAgYBJwYBAQTyBAYCIgYCAgYBLQYBBQSDAQQFAQQtIwYBAgYBJwYBAQTsBAYCIgYCAgYBLQYBBQSHAwQFAQQtIwYBAgYBJwYBAQT5BAYCIgYCAgYBLQYBBQSaAgQFAQQtIwYBAgYBJwYBAQTrBKQLBgIABAgJBgEABAaKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYBAQTsAbEBBgEBBOwBWwYBAQTsAZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgEBBOwBigEGAQEE7AGVAQYBAQTsAZEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAAQGlQEGAQEE7AGmBgYEAAQGBwEEBQIEgwEEtwECBgKDAQYBAQTsAbcBBgEABAbJBwYEAAQGBwEEBQIEyQIE6QMCBgLJAgYCAAQDDwN+6QMGAgAECAkGBAAEBgcBBAUFBBEENQQYBKEBBBwCBgYRBgMABAMXAwwPAxU1BgEBBEYYBgMABAMXAwwPA26hAQYCAAQDDwNuHAYDAAQDFwMMDwMVOQYBAQSABZQGBgQABAYHAQQFAwQdBGYEsQMCBgMdBgEOBQIEzgMEygNmBgEOBQIE8gEE3wexAwYBAAQDYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqgtoBgEBBF6SAQYBAQRe"),Pu=ct("BgpCBENBBPQKRAYCGgS6BB4ELhgE0wkABAYHAQQFEwR0BBEEGwQhBC0EmAEEVgQsBCkEKgQyBFgEZQQ0BIYBBI0CBB8ENwQnAgYTdAYBBQIRBgEFBLoEGwYBBQQuIQYBBQQkLQYBDgUMBNMEBKkBBNoBBIEBBE4EMARPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEABF8sBgEBBEYpBgEBBEYqBgEBBJMCMgYBAQRGWAYBAQSmAmUGAgAEAx0EIDQGAQEEkgKGAQYBAQRejQIGAQEEkgQfBgEOBQgE5AEEdgRSBJ8BBGME4AEEvgIEsAI3BgMABAgWAgkGAQAEAycGADMFFAYCIgYCAgYBLQYBBQTTBAQFAQQtIwYBAgYBJwYBAQSJCQYCIgYCAgYBLQYBBQSpAQQFAQQtIwYBAgYBJwYBAQTMCAYCIgYCAgYBLQYBBQTaAQQFAQQtIwYBAgYBJwYBAQSjCAYCIgYCAgYBLQYBBQSBAQQFAQQtIwYBAgYBJwYBAQSdCAYCIgYCAgYBLQYBBQROBAUBBC0jBgECBgEnBgEBBIEIBgIiBgICBgEtBgEFBDAEBQEELSMGAQIGAScGAQEE+gcGAiIGAgIGAS0GAQUETwQFAQQtIwYBAgYBJwYBAQTgBAYCIgYCAgYBLQYBBQSKAQQFAQQtIwYBAgYBJwYBAQTzBAYCIgYCAgYBLQYBBQQ2BAUBBC0jBgECBgEnBgEBBPIEBgIiBgICBgEtBgEFBIMBBAUBBC0jBgECBgEnBgEBBOwEBgIiBgICBgEtBgEFBIcDBAUBBC0jBgECBgEnBgEBBPkEBgIiBgICBgEtBgEFBJoCBAUBBC0jBgECBgEnBgEBBOsEBgIiBgICBgEfBgEFBOQBBAUBBB8jBgECBgJWBgEFAjcGAgAECBQDEwYCIgYCAgYBHwYBBQR2BAUBBB8jBgECBgJWBgEFATcGAQEE7wgGAiIGAgIGAR8GAQUEUgQFAQQfIwYBAgYCVgYBBQE3BgEBBIIJBgIiBgICBgEfBgEFBJ8BBAUBBB8jBgECBgJWBgEFATcGAQEE6QgGAiIGAgIGAR8GAQUEYwQFAQQfIwYBAgYCVgYBBQE3BgEBBJAIBgIiBgICBgEfBgEFBOABBAUBBB8jBgECBgJWBgEFATcGAQEE5QgGAiIGAgIGAR8GAQUEvgIEBQEEHyMGAQIGAlYGAQUBNwYBAQTPCAYCIgYCAgYBHwYBBQSwAgQFAQQfIwYBAgYCVgYBBQE3BgEBBJsIRQYUhgsGBAAEBgcBBAUCBKkBBJ0CAgYCqQEGAgAECAkGAQEEjwSdAgYEAAQGBwEEBQMExwIEvAIENQIGA8cCBgEBBF68AgYCAAQSEAMTNQYBGQUCBgEABAoGAQEERpEMBgQABAYHAQQFBwSYAgT8AQS2BQSpAQROBIoBBKYBAgYHmAIGAgAECAkGAQEElAn8AQYCAAQICQYBAQSBBbYFBgEZBQIGAQAECgYBAQSNBKkBBgIABAgJBgEBBI8ETgYCAAQICQYBAQSXA4oBBgIABAgJBgEBBJgDpgEGAgAECAkGAQEE/wS+CgYEAAQGBwEEBQEE2gECBgHaAQYCAAQICQYBAQSNBLYKBgQABAYHAQQFAQSBAQIGAYEBBgEBBI0EhQoGBAAEBgcBBAUCBE4EnQICBgJOBgIABAgJBgEBBJcDnQIGBAAEBgcBBAUCBMcCBLwCAgYCxwIGAQEEXrwCBgIABBIQAxP+CQYEAAQGBwEEBQEEMAIGATAGAQEElwOKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYCAAQICQYBAQSWCbEBBgIABAgJBgEBBJUJWwYCAAQICQYBAQSYCZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgIABAgJBgEBBIEFigEGAgAECAkGAQEEmAOVAQYCAAQICQYBAQSQBJEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAQSYA5UBBgIABAgJBgEBBJAEpgYGBAAEBgcBBAUCBIMBBLcBAgYCgwEGAgAECAkGAQEEjgS3AQYBAQSRBMkHBgQABAYHAQQFAgTJAgTpAwIGAskCBgIABAMPA37pAwYCAAQICQYBAQT8CP0LBgQABAYHAQQFBQQRBDUEGAShAQQcAgYGEQYDAAQDFwMMDwMVNQYBAQRGGAYDAAQDFwMMDwNuoQEGAgAEAw8DbhwGAwAEAxcDDA8DFTkGAQEEgAWUBgYEAAQGBwEEBQMEHQRmBLEDAgYDHQYBDgUCBM4DBMoDZgYBDgUCBPIBBN8HsQMGAQAEA+MLBgQABAgmAwwUAwwJBgEFBLcJiAwGBAAECCYDDBQDDAkGAQUEtgnTCwYEAAQIJgMMFAMMCQYBBQS1CZwKBgQABAgmAwwUAwwJBgEFBLQJpgsGBAAECCYDDBQDDAkGAQUEswmLCwYEAAQIJgMMFAMMCQYBBQSyCbAKBgQABAgmAwwUAwwJBgEFBLgJ"),qM=ct("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=="),FA=ct("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="),rQ=ct("BgpCBENBBP0KRAYCGgS+BB4EJBgEyAkABAYHAQQFEQQRBBsEIQT/AQQsBCkEKgQ9BM4HBGcEGARcBBwEOgTlAQRyBI4CAgYbEQYBBQS+BBsGAQUELiEGAQUEJP8BBgIABAMLBJ0DLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Dbz0GAQ4FAgTMAQTLAc4HBgEBBJEDZwYBAQS8AaABBgEBBIMEiQMGAQEE2Ai1AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBIsEugEGAQEE5ASzAQYBAQTkBBgGAQEE1AFcBgEBBIcEWwYBAQSHBOsCBgEBBIcEHAYCAAQDDgUGBNUDBNgBBLgBBEAExgEEiwM6BgMABQIEAwQKFwMMDwMV5QEGAgAFAgQDBAodBCByBgIABAMdBCCOAgYCAAQDHQQgMwUDBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUKBgEEBQEEoAEGAQQFAQSJAwYBBAUBBLUBBgEEBQEEuQEGAQQFAQRHBgEEBQEEoQIGAQQFAQS6AQYBBAUBBLMBBgEEBQEEWwYBBAUBBOsCBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQoEoAEEiQMEtQEEuQEERwShAgS6AQSzAQRbBOsCBgIiBgECBgEcBgEFBMYBIwYB8QEFAgYBAgYBOgYBAAQDBgECBgHlAQYCAAQDHQQgRQYPUwYCAAQDCwSwATwGAgAEAwsEaS8GAgAEAwsElgKCAQYCAAQDCwSoApQLBgIABAMLBOwJkwsGAgAEAwsE5wmuBAYCAAQDCwToCZULBgIABAMLBO8JlgsGAgAEAwsE8QmvBAYCAAQDCwTwCWAGBAAECBQDFRYCCQYBAQTTAWwGBQAEBgcBBAUGBKoCBJkEBJ4EBLEEBM0EBMkEAgYGqgIGAQEEvAGZBAYEAAQIFAMVFgIJBgEBBNYIngQGBAAECBQDFRYCCQYBAQTXCLEEBgQABAgUAxUWAgkGAQEE2QjNBAYEAAQIFAMVFgIJBgEBBNsIyQQGBAAECBQDDBYCCQYBAQTaCPEBBQUGAQIGAZkEBgEmAwwGAQIGAZ4EBgEmAwwGAQIGAbEEBgEmAwwGAQIGAc0EBgEmAwwGAQIGAckEBgEmAwyhCwYEAAQDFwMMDwNuCwTWAbQEBgQABAMXAwwPAxVIBgELBKUCGAYFAAQDFwMMDwNMCwSbA0gGAQsEpQI="),sQ=ct("BglCBENBBPgKRAYCGgTrBh4ELhgEywkABAYHAQQFFAQRBBsEIQSdBwQsBCkEKgQyBOYBBDQEaAShAwS7BQSnAwT5AQQ3BNQEBLUGBLsCBJwHAgYUEQYBBQTrBhsGAQUELiEGAQUEJJ0HBgIABAMLBPYJLAYBAQQNKQYBAQQNKgYBAQQ4MgYBAQQN5gEGAQEE+wQ0BgEBBOsBaAYBAQQooQMGAQEEKLsFBgEBBPMCpwMGAQ4FAwSICgToCwR2+QEGAQEEJTcGAwAECBYCCQYCAAQDCwTmCdQEBgEBBIsJtQYGAgAEAx0EILsCBgIABAMdBCCcBwYBAQQoRQYKGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DhwELBNYB5gEGBQAEBgcBBAUEBBEEGgRRBDECBgQRBgEOBQYEgQEE8wEE2QEEZASLAQQwGgYBAQQNUQYCAAUCBBIEChADDDEGAQEEKDMFAgYCIgYCAgYBEQYBDgUCBGQEMAQFAQQRIwYBAgYBUQYCAAQSEAMMBgIiBgICBgERBgEOBQQEgQEE8wEE2QEEiwEEBQEEESMGAQIGAVEGAQAECjQGARkFAgYEAAQGBwEEBQIEPgQxAgYCPgYBBQMTMQYBAAQKBgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiUDAYEAAQGBwEEBQUEEQQaBFEEMQRaAgYFEQYBAQQNGgYBAQQNUQYEAAUDBBIEAwQKEAMMFwMMDwMVMQYCAAUCBAMECgsEP1oGAwAFAgQDBAoXAwwPAxXUCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOBwGAQ4FAwQEBOUDBMwCzAIGAQAEX9YCBgQABAYHAQQFBAQEBOUDBK8HBJcHAgYEBAYCAAQSEAMM5QMGAgAEEhADE68HBgIABBIQAxOXBwYCAAQICQYBAQTqCNQEBgQABAYHAQQFBQQRBKECBMsEBNYGBNYCAgYFEQYBDgUFBIsBBKQDBG0EtwIE0gKhAgYDAAQIJgMMCQYBAQSMCcsEBgEABF/WBgYBAQQN1gIGARkFAgYBAAQKBgEBBIgJ"),KM=ct("BglCBENBBIILRAYCGgSNBx4EJBgEyQkABAYHAQQFCwQRBBsEIQQsBCkEKgRlBJ4BBLQBBE4EsQICBgsRBgEFBI0HGwYBBQQuIQYBBQQkLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db2UGAgAEAx0EIJ4BBgIABAgJBgEBBMYLtAEGAgAECAkGAQEEwwtOBgIABAgJBgEBBPAGsQIGAgAECAkGAQEEnwhFBgK5CgYFAAQGBwEEBQQE7QIE2wEELwTNAQIGBO0CBgIABAMOBQMEqQQEZAQw2wEGAgAEAwsEoQUvBgIABAMLBJYCzQEGAgAEAw4FAwTRAQSTDAShChkFAwYBAgYC7QIGAQUEqQTbAQYBCwSdAwYBAgYC7QIGAQUEZNsBBgELBOMCBgECBgLtAgYBBQQw2wEGAQsE7QG0BAYEAAQDFwMMDwMVSAYBCwSlAg=="),oQ=ct("BglCBENBBPsKRAYCGgT8Bh4ELhgEygkABAYHAQQFDQQRBBsEIQTGBwQsBCkEKgQwBDQExAcEWwRyBMUHAgYNEQYBBQT8BhsGAQUELiEGAQUEJMYHBgIABAMLBOkJLAYBAQQNKQYBAQQNKgYBAQQ4MAYBAQSOAzQGAQEE6wHEBwYBDgUEBOwFBJoHBKsGBOMGWwYBAQQlcgYCAAQDHQQgxQcGAQEEKEUGBhoGAwAEAxcDDA8DFR4GAgAEAwsElAIxBgIABAMLBD+iAgYEAAQDFwMMDwNuCwSiBTAGBAAEBgcBBAUDBFkEUQSlAQIGA1kGAgAEAwsE7QFRBgIABBIQAwylAQYBAQQoNAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKA=="),cQ=ct("BgtCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBQAEBgcBBAUSBBEEGwQhBJ4CBJwEBCwEKQQqBGcEnQEEiQIEyAIEzgIENgSCAQTIAQSoAQTOAQIGEhEGAQUEvQQbBgEFBC4hBgEFBCSeAgYBAQT2CJwEBgEBBJMILAYBAQRLKQYBAQRLKgYBAQQ4ZwYBAQS8AZ0BBgEOBQQE3QEE3AEE4gEE4QGJAgYBGQUCBgEABAoGAQEElQPIAgYBAQT9Bs4CBgEBBP0GNgYBDgUCBLgBBECCAQYCAAUCBAMECgsEqALIAQYCAAUCBAMECgsEaagBBgQABQIEBgQKBwEEBQMEcQSGAgT6AQIGA3EGAQEEsAiGAgYBAARf+gEGAQEE+ATOAQYCAAQDHQQgMwUCBgIiBgECBgE2BgEFBLgBIwYBAgYEiQIGAQEElQOCAQYBAAQDyAEGAQAEA6gBBgEFAAYCIgYBAgYBNgYBBQRAIwYBAgYEiQIGAQUAggEGAQUAyAEGAQUAqAEGAQAEBkUGCO8CBgIABAMLBJUCHgYCAAQDCwSUAp4CBgIABAMLBOsJnAQGAgAEAwsE6gk8BgIABAMLBGmJAgYEAAQGBwEEBQIEGgQeAgYCGgYBAQRLHgYBAQQ4zgoGAQ4FFQScBQSXBQSRBQSWBQSQBQSFBQSHBQSGBQSeBQSdBQSIBQSJBQSbBQSaBQSfBQSLBQSNBQSMBQSOBQSPBQSKBc8EBgMABAYHAQIGBp0BBgEOBQQE3QEE3AEE4gEE4QGxBwYBAQRL1AcGAQEES8cCBgEBBEs8BgEBBLwBugcGAQEESw=="),lQ=ct("BglCBENBBPwKRAYCGgT/Bh4EJBgExQkABAYHAQQFHwQRBBsEIQTPAgTFAgSDAgTnAwQwBFMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwQfBPwDBPsDBNMFBNQFBMoBBMYCBOwCBL0HBK4BBNABBIkGBPgBBL4HAgYfEQYBBQT/BhsGAQUELiEGAQUEJM8CBgIABAMLBKoFxQIGAgAEAwsEqQKDAgYBBQSmBOcDBgEBBCgwBgEBBI4DUwYCAAQDCwSwAbUCBgIABAMLBKYFrgIGAwAECBYCCQYCAAQDCwSjBb0CBgIABAMLBOICwAEGAQEElgNsBgEBBIsEvwMGAQEE3gS4AgYBAQTqBK8DBgEZBQIGAQAECgYBAQSWAx8GAQ4FBQTbBwR5BJ8BBJsBBGP8AwYBAQQo+wMGAgAFAgQDBAoLBD/TBQYCAAUCBAMECgsEadQFBgIABQIEAwQKCwQ/ygEGAQEEjwPGAgYBAQSPA+wCBgEBBK4IvQcGAgAEAwsEaa4BBgIABAMLBKkF0AEGAgAFAgQDBAoLBJ4DiQYGBAAECCYDDBYCCQYCAAQDCwSkBfgBBgIABAMdBCC+BwYBAQQoRQYKGgYCAAQDCwSVAh4GAgAEAwsElAIxBgIABAMLBD9zBgEOBQYEdgTBAgTjAQTHBASoBAS8A/MHBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDjFBQYDAAQIFgIJBgIABAMLBGkwBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAQEEKGwGBAAEBgcBBAUDBBEEGgRRAgYDEQYBAQQNGgYDAAQDFwMMDwMVUQYDAAQDFwMMDwMVuAIGBAAEBgcBBAUCBMQDBMUDAgYCxAMGAQEEDcUDBgEBBDjsAgYEAAQGBwEEBQMEqwMEoQEEugUCBgOrAwYBAARfoQEGAwAEAxcDDA8DYroFBgMABAgWAgkGAwAEAxcDDA8DFQ=="),dQ=ct("BgpCBENBBP4KRAYCGgSABx4EJBgExgkABAYHAQQFHAQRBBsEIQTFAgSDAgQwBFME5wMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwSbBwTKAQSuAQTOBAQcBLQGBM8CBNABBNwDBHIEjgIEjgcCBhwRBgEFBIAHGwYBBQQuIQYBBQQkxQIGAgAEAwsEqQKDAgYBDgUCBKYEBNICMAYBAQSOA1MGAgAEAwsEsAHnAwYBAQQotQIGAgAEAwsEpgWuAgYDAAQIFgIJBgIABAMLBKMFvQIGAgAEAwsE4gLAAQYBAQSWA2wGAQEEiwS/AwYBAQTeBLgCBgEBBOoErwMGARkFAgYBAAQKBgEBBJYDmwcGAQEEjwPKAQYBAQSPA64BBgIABAMLBKkFzgQGAQ4FBAS1BATLBASsCgTFBhwGAQ4FCgSbCgSPCwTHCgTbBwR5BJ8BBJsBBGMEkQEEwwe0BgYCAAQDCwSkBc8CBgIABQIEAwQKCwTkCdABBgIABQIEAwQKCwSeA9wDBgIABQIEAwQKCwSpAnIGAgAEAx0EII4CBgIABAMdBCCOBwYBAQQoMwUCBgIiBgICBgGDAgYBBQSmBAQFAQSDAiMGAQIGA9ABBgEFANwDBgEFABwGAUgGAQUEwwcGAiIGAgIGAYMCBgEFBNICBAUBBIMCIwYBAgYD0AEGAQAEA9wDBgEABAPOBAYBSAYBBQS1BEUGCRoGAgAEAwsElQIeBgIABAMLBJQCMQYCAAQDCwQ/cwYBDgUGBHYEwQIE4wEExwQEqAQEvAPzBwYEAAQGBwEEBQIEGgQeAgYCGgYBAQQNHgYBAQQ4xQUGAwAECBYCCQYCAAQDCwRpMAYEAAQGBwEEBQMEWQRRBKUBAgYDWQYCAAQDCwTtAVEGAgAEEhADDKUBBgEBBChsBgQABAYHAQQFAwQRBBoEUQIGAxEGAQEEDRoGAwAEAxcDDA8DFVEGAwAEAxcDDA8DFbgCBgQABAYHAQQFAgTEAwTFAwIGAsQDBgEBBA3FAwYBAQQ4"),JM=new Map([["operate-experience-view.schema.json",FA],["operating-finding.schema.json",rQ],["operate-allowed-action.schema.json",GA],["operating-delivery-route.schema.json",oQ],["operating-evidence-resolution.schema.json",cQ],["operating-execution-result.schema.json",lQ],["operating-governed-operation.schema.json",dQ],["operating-review.schema.json",Uu],["operating-trace-matrix.schema.json",Lu],["operate-review-display-workspace.schema.json",Mo]]);function ZM(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function XM(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=JM.get(s);return c?{schema:ZM(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function WM(e){const t=ko(e,Pu,{base:"schemas/v1.2.0/operate-experience-surface.schema.json",resolveRef:XM});if(t.length>0)return t;const a=e.truthSummary;return a.sourceViewHash!==e.viewHash||a.sourceEventHead.sequence!==e.eventHead.sequence||a.sourceEventHead.hash!==e.eventHead.hash||a.stages.total!==a.stages.cycles*7||a.evidence.linked>a.evidence.total||a.proof.linkedEvidence!==a.evidence.linked||a.seats.total!==a.seats.terminal+a.seats.active+a.seats.pending?[{path:"$.truthSummary",rule:"sharedTruth",detail:"does not bind one internally consistent shared truth summary"}]:[]}function ou(e){const t=WM(e);if(t.length>0){const a=new TypeError(`operate-experience-surface: ${t[0].path} ${t[0].detail}`);throw a.code="E_OPERATE_EXPERIENCE_SURFACE_INVALID",a}return e}Object.freeze(structuredClone(Pu));const eG=new Set(["evidence","outcomes","outcome","history","search","export"]),tG=new Map([["operate-experience-audit-display-surface.schema.json",PA],["operate-experience-surface.schema.json",Pu],["operate-experience-view.schema.json",FA],["operate-review-display-workspace.schema.json",Mo],["operating-trace-matrix.schema.json",Lu]]);function nG(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function aG(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=tG.get(s);return c?{schema:nG(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function $h(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed audit display contract"}]}function cu(e){try{const t=decodeURIComponent(e);return t.length>0&&t!=="."&&t!==".."&&!t.includes("/")&&!t.includes("\\")&&encodeURIComponent(t)===e}catch{return!1}}function Ab(e){return e===null?!0:uQ(e)!==null}function ur(e,t,a){return e===null?!0:typeof a!="string"?!1:t==="action"?e===`#/operate/actions/${encodeURIComponent(a)}`:t==="cycle"?e===`#/operate/cycles/${encodeURIComponent(a)}`:e===`#/operate/${t==="evidence"?"evidence":"outcomes"}/${encodeURIComponent(a)}`}function uQ(e){if(typeof e!="string")return null;const t=/^#\/operate\/(evidence|outcomes)\/([^/?#]+)$/u.exec(e);if(t!==null&&cu(t[2]))return{surface:t[1]==="evidence"?"evidence":"outcome",subjectId:decodeURIComponent(t[2])};const a=/^#\/operate\/actions\/([^/?#]+)$/u.exec(e);if(a!==null&&cu(a[1]))return{surface:"action",subjectId:decodeURIComponent(a[1])};const s=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(e);return s!==null&&cu(s[1])?{surface:"cycle",subjectId:decodeURIComponent(s[1])}:null}function yu(e,t=new Set){if(e===null||typeof e!="object")return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(a=>yu(a,t));for(const[a,s]of Object.entries(e)){if(a==="deepLink"){if(!Ab(s))return!1;continue}if(a==="deepLinks"){if(!Array.isArray(s)||!s.every(Ab))return!1;continue}if(!yu(s,t))return!1}return!0}finally{t.delete(e)}}function Og(e,t=new Set){if(!(e===null||typeof e!="object"||t.has(e))){if(t.add(e),Array.isArray(e)){for(const a of e)Og(a,t);return}for(const[a,s]of Object.entries(e)){if(a==="deepLink"&&s===null){e[a]="#/operate/history/redacted";continue}Og(s,t)}}}function iG(e){return{...e,results:e.results.map(t=>{if(!["evidence","claim","outcome"].includes(t.kind)&&Wj(t,"deepLink")){const{deepLink:a,...s}=t;return s}return t})}}function rG(e){try{const t=Ua(e);return t.mutationEnabled=t.status==="ready",t.surface==="search"&&(t.data=iG(t.data)),Og(t.data),ou(t),!0}catch{return!1}}function Jc(e,t){const a=e.map(s=>s[t]);return a.every(s=>typeof s=="string")&&new Set(a).size===a.length}function sG(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 oG(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 mb(e){return e.kind==="outcome"?ur(e.deepLink,"outcome",e.subjectId):e.deepLink===null}function cG(e){const t=new Map(e.evidence.map(s=>[s.evidenceRefId,s])),a=new Map(e.claims.map(s=>[s.claimId,s]));if(!Jc(e.evidence,"evidenceRefId")||!Jc(e.claims,"claimId")||!e.evidence.every(s=>sG(s)&&ur(s.deepLink,"evidence",s.evidenceRefId)&&s.causalLinks.every(mb))||!e.claims.every(s=>oG(s)&&ur(s.deepLink,"evidence",s.claimId)&&s.causalLinks.every(mb)))return!1;for(const s of e.evidence)if(!s.supportClaimIds.every(c=>{var l;return(l=a.get(c))==null?void 0:l.supportEvidenceRefIds.includes(s.evidenceRefId)})||!s.contradictClaimIds.every(c=>{var l;return(l=a.get(c))==null?void 0:l.contradictEvidenceRefIds.includes(s.evidenceRefId)}))return!1;return e.claims.every(s=>s.supportEvidenceRefIds.every(c=>{var l;return(l=t.get(c))==null?void 0:l.supportClaimIds.includes(s.claimId)})&&s.contradictEvidenceRefIds.every(c=>{var l;return(l=t.get(c))==null?void 0:l.contradictClaimIds.includes(s.claimId)}))}function lG(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 fQ(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 dG(e){return["succeeded","failed"].includes(e.status)&&fQ(e)}function uG(e){const t=e.metric,a=e.verification;return t===null||a===null||e.verificationPlanId!==a.verificationPlanId||t.metricId!==a.metricId||t.metricHash!==a.metricHash||!ur(e.deepLink,"outcome",e.outcomeId)||e.decision!==null&&e.decision.deepLink!==null||!e.execution.every(s=>s.deepLink===null)||!e.rollback.every(s=>s.deepLink===null)||(e.accessReason==="access-denied"||a.accessReason==="access-denied")&&!fQ(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)||lG(e)||dG(e)}function yb(e,t=!1){const a=t?[e.outcome]:e.outcomes;if(!Jc(a,"outcomeId")||!a.every(uG)||!t&&!e.domainMetrics.every(c=>c.dueVerification.every(l=>l.deepLink===null)))return!1;const s=new Set(a.map(c=>c.outcomeId));return Jc(e.learnings,"learningId")&&e.learnings.every(c=>s.has(c.outcomeId))}function fG(e,t){return Jc(e.history,"eventId")&&e.history.every(a=>a.deepLinks.every(s=>{const c=uQ(s);return(c==null?void 0:c.surface)==="evidence"?c.subjectId===a.entityId||a.evidenceRefIds.includes(c.subjectId):(c==null?void 0:c.surface)==="outcome"&&c.subjectId===a.entityId}))&&e.replay.liveAccessUsed===!1&&hn(e.replay.finalHead,t)&&e.replay.parityProof.finalEventHashMatches===!0}function pG(e){return e.results.every(t=>{if(!Wj(t,"deepLink"))return!0;if(t.kind==="evidence"||t.kind==="claim")return ur(t.deepLink,"evidence",t.subjectId);if(t.kind==="outcome")return ur(t.deepLink,"outcome",t.subjectId);if(t.kind==="action")return ur(t.deepLink,"action",t.subjectId);if(t.kind==="cycle")return ur(t.deepLink,"cycle",t.subjectId);if(t.kind==="assignment"){if(t.deepLink===null)return!0;const a=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(t.deepLink);return a!==null&&cu(a[1])}return!1})}const hG=["kind","schemaVersion","protocolVersion","scopeId","domainId","domainVersion","generatedAt","eventHead","status","attention","domainMetrics","cycles","inbox","actions","evidence","claims","rationale","outcomes","learnings","history","replay","omissions"].sort(),gG=new Set(["ownerActorId","actorId","partyId","requiredCapability","source","producer","provenance","authority","actionLocator","rawHash","canonicalHash"]);function _g(e,t=new Set){if(e===null||typeof e!="object")return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(a=>_g(a,t));for(const[a,s]of Object.entries(e))if(gG.has(a)||a==="errors"&&(!Array.isArray(s)||s.length!==0)||!_g(s,t))return!1;return!0}finally{t.delete(e)}}function Eb(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function AG(e){return e.replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function Bb(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&Kt(Object.keys(e).sort(),hG)&&_g(e)&&yu(e)}function Eu(e){return Array.isArray(e)?e.map(t=>Eu(t)):e===null||typeof e!="object"?e:Object.fromEntries(Object.keys(e).sort().map(t=>[t,Eu(e[t])]))}function mG(e){try{if(e.format==="json"){if(e.mediaType!=="application/json")return!1;const A=JSON.parse(e.content);return Bb(A)&&JSON.stringify(Eu(A))===e.content}if(e.mediaType!=="text/html; charset=utf-8")return!1;const t='<!doctype html><html lang="en"><meta charset="utf-8"><title>OpenPlanr Operate audit export</title><body><main><h1>Operate audit export</h1><p>',a="</p><pre>",s="</pre></main></body></html>";if(!e.content.startsWith(t)||!e.content.endsWith(s))return!1;const c=e.content.indexOf(a,t.length);if(c<0)return!1;const l=e.content.slice(c+a.length,-s.length),u=JSON.parse(AG(l));if(!Bb(u))return!1;const f=Eu(u),h=`${t}${Eb(`${f.domainId} / ${f.scopeId}`)}${a}${Eb(JSON.stringify(f,null,2))}${s}`;return e.content===h}catch{return!1}}function yG(e){return e.surface==="evidence"?cG(e.data):e.surface==="outcomes"?yb(e.data):e.surface==="outcome"?yb(e.data,!0):e.surface==="history"?fG(e.data,e.eventHead):e.surface==="search"?pG(e.data):e.surface==="export"?mG(e.data):!1}function EG(e,t){var a,s,c;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||!hn(e.eventHead,t.eventHead)?!1:e.surface==="outcome"?typeof e.subjectId=="string"&&e.query===null&&e.format===null&&((a=t.data.outcome)==null?void 0:a.outcomeId)===e.subjectId:e.surface==="evidence"?(e.subjectId===null||((s=t.data.evidence)==null?void 0:s.some(u=>u.evidenceRefId===e.subjectId))||((c=t.data.claims)==null?void 0:c.some(u=>u.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 BG(e,t){return eG.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&&hn(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&EG(e.requestBinding,e.payload)&&(t===void 0||Kt(e.requestBinding,t))&&yu(e.payload.data)&&yG(e.payload)&&rG(e.payload)}function vG(e,t){try{const a=Ua(e),s=ko(a,PA,{base:"schemas/v1.2.0/operate-experience-audit-display-surface.schema.json",resolveRef:aG});return s.length>0||!BG(a,t)?s.length>0?s:$h():a.integrity.contentHash===MA(tQ(a),a.integrity.domain)?[]:$h()}catch{return $h()}}function La(e,t){if(vG(e,t).length>0){const a=new TypeError("The Operate audit display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXPERIENCE_AUDIT_DISPLAY_INVALID",a}return e}Object.freeze(structuredClone(PA));function bG(e){if(!Array.isArray(e))return Object.freeze([]);const t=[];for(const a of e){if(typeof a!="object"||a===null)continue;const s=Reflect.get(a,"kind"),c=Reflect.get(a,"subjectId"),l=Reflect.get(a,"title"),u=Reflect.get(a,"summary"),f=Reflect.get(a,"state"),h=Reflect.get(a,"deepLink");typeof s!="string"||typeof c!="string"||typeof l!="string"||t.push(Object.freeze({kind:s,subjectId:c,title:l,summary:typeof u=="string"?u:null,state:typeof f=="string"?f:null,deepLink:typeof h=="string"&&h.startsWith("#/operate/")?h:null}))}return Object.freeze(t)}function Fu(e){return e===null||e.hash===null?null:Object.freeze({sequence:e.sequence,hash:e.hash})}const wG=4*1024*1024;function xG(e){let t;try{t=new URL(e)}catch{throw new Error("OPERATE_ORIGIN_INVALID")}if(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))throw new Error("OPERATE_ORIGIN_INVALID");return t.origin}async function jG(e){const{identity:t}=e;if(t.productArea!=="operate"||t.cycleId===null||t.viewHash===null)return Object.freeze([]);const a=xG(e.origin),s=e.query??"";if(s.length>512)return Object.freeze([]);const c=new URL("/api/operate/search",a);c.searchParams.set("scopeId",t.scopeId),c.searchParams.set("domainId",t.domainId),c.searchParams.set("domainVersion",t.domainVersion),c.searchParams.set("cycleId",t.cycleId),c.searchParams.set("q",s);const l=await(e.fetcher??fetch)(c,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),u=await l.text();if(new TextEncoder().encode(u).byteLength>wG)throw new Error("Search response exceeds the dashboard JSON limit.");let f;try{f=JSON.parse(u)}catch{throw new Error("Search response is not JSON.")}if(!l.ok)return Object.freeze([]);try{const h=La(f),A=h.payload,y=Fu(t.eventHead);if(A.surface!=="search"||y===null)return Object.freeze([]);const m=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:null,surface:"search",query:s,format:null,generatedAt:A.generatedAt,eventHead:y,viewHash:t.viewHash});return La(h,m),bG(A.data.results)}catch{return Object.freeze([])}}const QG=200;function IG(e){const[t,a]=B.useState([]),{binding:s,connectionState:c,query:l}=e;return B.useEffect(()=>{const u=l.trim();if(typeof window>"u"||!s||s.productArea!=="operate"||s.cycleId===null||c!=="connected"||u.length===0){a([]);return}const f=new AbortController,h=setTimeout(()=>{jG({origin:window.location.origin,identity:s,query:u,signal:f.signal}).then(A=>{f.signal.aborted||a(A)}).catch(()=>{f.signal.aborted||a([])})},QG);return()=>{clearTimeout(h),f.abort()}},[s,c,l]),t}const pQ=Object.freeze([]),hQ="Jump to a view or an artifact…";function CG(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function SG(e,t){const[a,s]=B.useState(t);B.useEffect(()=>{if(t&&e.some(l=>l.cycleId===t)){s(t);return}s(l=>l&&e.some(u=>u.cycleId===l)?l:null)},[e,t]);const c=B.useMemo(()=>e.find(l=>l.cycleId===a)??null,[e,a]);return Object.freeze({binding:c,selectedCycleId:a,setSelectedCycleId:s})}function gQ({bindings:e,selectedCycleId:t,onSelect:a}){return e.length===0?null:r.jsxs("div",{className:"pc-palette__cycle",children:[r.jsx("span",{children:"operate cycle"}),r.jsx(qc,{size:"sm",ariaLabel:"Operate Cycle for search results",value:t??"",onChange:s=>a(s||null),options:[{value:"",label:"Select a cycle"},...e.map((s,c)=>({value:s.cycleId??"",label:`${CG(s.domainId)} cycle${e.length>1?` ${c+1}`:""}`}))]})]})}function AQ(e){typeof window>"u"||(window.location.hash=e)}function mQ(e,t,a,s,c){const[l,u]=B.useState(t),[f,h]=B.useState(()=>Au([])),A=SG(a,s),y=IG({binding:A.binding,connectionState:c,query:l}),m=B.useMemo(()=>Object.freeze({...e,operateResults:y}),[e,y]),E=B.useMemo(()=>SM(m),[m]),b=B.useMemo(()=>OM(E,l),[E,l]),w=B.useMemo(()=>_M(E,l),[E,l]);B.useEffect(()=>{h(Au(b))},[b]);const x=(j,I)=>{if(j.key==="ArrowDown")j.preventDefault(),h(C=>C.moveDown());else if(j.key==="ArrowUp")j.preventDefault(),h(C=>C.moveUp());else if(j.key==="Enter"){j.preventDefault();const C=f.getActive()??b[0]??null;C&&I(C)}};return{query:l,setQuery:u,hits:b,unsupported:w,active:f.getActive(),selectedOperate:A,onKeyDown:x}}function OG({open:e,onClose:t,sources:a=Object.freeze({}),initialQuery:s="",operateBindings:c=pQ,preferredOperateCycleId:l=null,connectionState:u="disconnected"}){var b;const f=B.useRef(null),h=B.useRef(null),A=B.useId(),y=mQ(a,s,c,l,u),{setQuery:m}=y;B.useEffect(()=>{e&&m(s)},[e,s,m]),B.useEffect(()=>{var x,j;const w=f.current;if(w){if(e){typeof w.showModal=="function"&&!w.open?w.showModal():w.setAttribute("open",""),(x=h.current)==null||x.focus(),(j=h.current)==null||j.select();return}typeof w.close=="function"&&w.open?w.close():w.removeAttribute("open")}},[e]),B.useEffect(()=>{const w=f.current;if(!w)return;const x=()=>t();return w.addEventListener("close",x),()=>w.removeEventListener("close",x)},[t]);function E(w){AQ(w.href),t()}return r.jsx("dialog",{ref:f,className:"pc-palette","aria-labelledby":`${A}-label`,onCancel:w=>{w.preventDefault(),t()},onMouseDown:w=>{w.target===f.current&&t()},children:r.jsxs("div",{className:"pc-palette__panel",role:"document",children:[r.jsxs("div",{className:"pc-palette__input-row",children:[r.jsx(Be,{name:"search",size:15,color:"var(--pc-text-tertiary)"}),r.jsx("span",{id:`${A}-label`,className:"pc-visually-hidden",children:"Command palette"}),r.jsx("input",{ref:h,id:`${A}-input`,className:"pc-palette__input",type:"search",value:y.query,placeholder:hQ,"aria-label":"Search views and artifacts",autoComplete:"off",spellCheck:!1,onChange:w=>m(w.target.value),onKeyDown:w=>{if(w.key==="Escape"){w.preventDefault(),t();return}y.onKeyDown(w,E)}}),r.jsx(dr,{size:"sm",children:"esc"})]}),r.jsx(gQ,{bindings:c,selectedCycleId:y.selectedOperate.selectedCycleId,onSelect:y.selectedOperate.setSelectedCycleId}),r.jsx($j,{hits:y.hits,unsupported:y.unsupported,activeHref:((b=y.active)==null?void 0:b.href)??null,listId:A,onSelect:E}),r.jsxs("div",{className:"pc-palette__foot","aria-hidden":"true",children:[r.jsxs("span",{className:"pc-palette__key",children:[r.jsx(dr,{size:"sm",children:"↑"}),r.jsx(dr,{size:"sm",children:"↓"})," move"]}),r.jsxs("span",{className:"pc-palette__key",children:[r.jsx(dr,{size:"sm",children:"⏎"})," open"]}),r.jsxs("span",{className:"pc-palette__count",children:[y.hits.length," results"]})]})]})})}function _G({sources:e=Object.freeze({}),initialQuery:t="",operateBindings:a=pQ,preferredOperateCycleId:s=null,connectionState:c="disconnected"}){var f;const l=B.useId(),u=mQ(e,t,a,s,c);return r.jsxs("section",{className:"op-workspace pc-search-page","data-route-kind":"planning.search",children:[r.jsx(st,{eyebrow:"planr-status · search",title:"Search",count:`${u.hits.length} ${u.hits.length===1?"result":"results"}`,description:"Planning work and Operate items, from access-safe projections."}),r.jsx("div",{className:"pc-search-page__query",children:r.jsx(NA,{value:u.query,onChange:u.setQuery,ariaLabel:"Search query",placeholder:hQ,icon:"search",size:"lg",width:560})}),r.jsx(gQ,{bindings:a,selectedCycleId:u.selectedOperate.selectedCycleId,onSelect:u.selectedOperate.setSelectedCycleId}),r.jsx($j,{hits:u.hits,unsupported:u.unsupported,activeHref:((f=u.active)==null?void 0:f.href)??null,listId:l,onSelect:h=>AQ(h.href)})]})}function NG(e){return Object.freeze({planningNodes:zj(e)})}function RG(e){const[t,a]=B.useState(!1),s=B.useMemo(()=>NG(e),[e]);return B.useEffect(()=>{const c=l=>{(l.metaKey||l.ctrlKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),a(!0))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),Object.freeze({open:t,sources:s,show:()=>a(!0),close:()=>a(!1)})}let Bu=Object.freeze({selection:null,openTick:0});const Ng=new Set;function DG(){for(const e of Ng)e()}function TG(e){Bu=Object.freeze({selection:e,openTick:Bu.openTick+1}),DG()}function kG(e){return Ng.add(e),()=>{Ng.delete(e)}}function VA(){return B.useSyncExternalStore(kG,()=>Bu,()=>Bu)}const MG=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 GG(e){return{operation:"Operation",cycleId:"Cycle",assignmentId:"Assignment",submissionId:"Submission",submissionState:"Submission state",reviewId:"Review",state:"State",maxBytes:"Maximum bytes"}[e]}function YG({state:e,proven:t,notProven:a,headingId:s}){var y;const c=B.useId(),l=s??`dashboard-recovery-${c}`,u=MG[e.policy.recovery],f=u.href==="#/diagnostics"||((y=e.binding)==null?void 0:y.productArea)==="operate"?u.href:void 0,h=e.error?i1(e.error):null,A=e.error?Hw.flatMap(m=>{var b;const E=(b=e.error)==null?void 0:b.context[m];return E===void 0?[]:[[m,E]]}):[];return r.jsxs("section",{className:"op-ready-truth","data-recovery-guidance":e.policy.recovery,"aria-labelledby":l,children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Recovery posture"}),r.jsx("h2",{id:l,tabIndex:-1,"data-product-state-recovery-heading":!0,children:"Known, unknown, and next safe step"})]}),r.jsx("p",{children:u.instruction})]}),r.jsxs("dl",{"aria-label":"Recovery truth",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Proven"}),r.jsx("dd",{children:t})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Not proven"}),r.jsx("dd",{children:a})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next safe step"}),r.jsx("dd",{children:u.instruction})]})]}),e.error?r.jsxs("section",{"data-safe-error":!0,"aria-labelledby":`${l}-diagnostic`,children:[r.jsx("h3",{id:`${l}-diagnostic`,children:"Certified diagnostic"}),r.jsxs("dl",{"aria-label":"Certified diagnostic fields",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Code"}),r.jsx("dd",{children:r.jsx("code",{children:e.error.code})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Recovery classification"}),r.jsx("dd",{children:e.kind==="uncertain"?"Reconciliation is required before any further instruction.":h!=null&&h.retryableAfterReconciliation?"Eligible for a new instruction only after current reconciliation.":"No repeated instruction is certified by this diagnostic."})]}),A.map(([m,E])=>r.jsxs("div",{children:[r.jsx("dt",{children:GG(m)}),r.jsx("dd",{children:r.jsx("code",{children:String(E)})})]},m))]})]}):null,f&&u.linkLabel?r.jsx("a",{className:"op-inline-action",href:f,children:u.linkLabel}):null,r.jsx("p",{className:"op-authority-note",children:"This view does not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs."})]})}const HG=Object.freeze({booting:Tt("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:Tt("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":Tt("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:Tt("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:Tt("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":Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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:Tt("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 Tt(e,t,a,s,c){return Object.freeze({eyebrow:e,title:t,description:a,proven:s,notProven:c})}function zG(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 $G(e){const t=e.closest("[data-live-state-boundary]")??e;t.dispatchEvent(new CustomEvent("openplanr-live-state-close",{bubbles:!1}));for(const a of t.querySelectorAll("[data-live-unsafe-control]"))a instanceof HTMLDetailsElement&&(a.open=!1),typeof HTMLDialogElement<"u"&&a instanceof HTMLDialogElement&&a.open&&a.close()}function UG(e,t){var a;return t==="recovery-heading"?e.querySelector("[data-product-state-recovery-heading]"):t==="state-heading"?e.querySelector(".op-state-panel h2"):((a=e.closest("main"))==null?void 0:a.querySelector("h1"))??e.closest("main")}function LG(e,t){if(e===null)return!0;if(t===null)return!1;try{return Ye(e,Ve(t))}catch{return!1}}function PG(e){var t,a;return e.kind==="first-use"?((t=e.binding)==null?void 0:t.cycleId)===null:!(e.kind==="empty"&&((a=e.binding)==null?void 0:a.route)==="#/operate/today"&&e.binding.cycleId!==null)}function FG({state:e,currentBinding:t,children:a}){const s=B.useRef(null),c=B.useId(),l=`dashboard-product-state-${c}`,u=`dashboard-product-recovery-${c}`,f=Pe(e),h=f&&PG(e),A=f&&h,y=A&&LG(e.binding,t),m=A&&y&&rA(e,t),E=B.useRef(null),b=B.useRef(null),w=A&&y?e.policy.focus:"state-heading",x=`${A&&y?e.kind:"state-rejected"}:${w}:${m?"mutable":"safe"}`;if(B.useEffect(()=>{const I=s.current;if(!I||(!m&&b.current!==!1&&$G(I),b.current=m,E.current===x))return;const C=UG(I,w);C&&(C.hasAttribute("tabindex")||C.setAttribute("tabindex","-1"),C.focus({preventScroll:!0})),E.current=x},[w,x,m]),!A||!y)return r.jsx("div",{ref:s,"data-product-state":"incompatible","data-product-state-custody":"rejected",children:r.jsx(be,{state:"incompatible",eyebrow:"Validation boundary",title:f&&!h?"Product state contradicts durable context":A?"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:l})});if(e.kind==="ready")return r.jsxs("div",{ref:s,"data-product-state":"ready","data-product-state-mutation":m?"allowed":"disabled",children:[e.data!==null&&a?a(e.data,e.kind,m):null,r.jsx("p",{className:"op-authority-note","data-product-state-authority":!0,children:m?"Mutation remains limited to exact runtime-issued allowed actions for this binding.":"Mutation controls remain disabled in this presentation state."})]});const j=HG[e.kind];return r.jsxs("div",{ref:s,"data-product-state":e.kind,"data-product-state-mutation":m?"allowed":"disabled",children:[r.jsx(be,{state:zG(e.kind),eyebrow:j.eyebrow,title:j.title,description:j.description,detail:e.reasonCodes.length>0?e.reasonCodes.join(" · "):void 0,headingId:l}),e.data!==null&&a?a(e.data,e.kind,m):null,r.jsx(YG,{state:e,proven:j.proven,notProven:j.notProven,headingId:u}),r.jsx("p",{className:"op-authority-note","data-product-state-authority":!0,children:m?"Mutation remains limited to exact runtime-issued allowed actions for this binding.":"Mutation controls remain disabled in this presentation state."})]})}function VG({currentBinding:e,route:t,state:a,children:s}){const c=!t||e===null||t.kind!=="not-found"&&e.route===Pa(t)&&e.productArea===t.product&&e.subjectId===t.subjectId;return Pe(a)?r.jsx("section",{className:"op-projection-boundary","data-projection-boundary":a.kind,"aria-label":"Current product state",children:r.jsx(FG,{state:a,currentBinding:c?e:null,children:s})}):r.jsx("section",{className:"op-projection-boundary","data-projection-boundary":"incompatible","aria-label":"Current product state",children:r.jsx(be,{state:"incompatible",eyebrow:"State boundary",title:"Product state could not be validated",description:"OpenPlanr rejected an unverified state before presenting any product data."})})}const qG=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."}),KG=new Set(["today","inbox","cycles","cycle","actions"]),vb=Object.freeze(["observe","understand","decide","govern","act","verify","learn"]),yQ=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}),JG=new Set([...Object.keys(yQ),"closed","blocked","failed","cancelled"]),ZG=new Set(["normal","quiet","partial","blocked"]),Rg=Object.freeze(["source","touched","carried-forward"]),EQ=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}),XG=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"])}),WG=new Map([["operate-experience-display-surface.schema.json",LA],["operate-action-display-workspace.schema.json",HA],["operate-cycle-display-workspace.schema.json",zA],["operate-executive-board-display-surface.schema.json",UA],["operate-recovery-display-surface.schema.json",$A],["operate-experience-surface.schema.json",Pu],["operate-experience-view.schema.json",FA],["operate-review-display-workspace.schema.json",Mo],["operating-finding.schema.json",rQ],["operate-experience-preview.schema.json",sQ],["operate-api-envelope.schema.json",qM],["operate-allowed-action.schema.json",GA],["operating-work-ledger.schema.json",KM],["operating-delivery-route.schema.json",oQ],["operating-evidence-resolution.schema.json",cQ],["operating-execution-result.schema.json",lQ],["operating-governed-operation.schema.json",dQ],["operating-review.schema.json",Uu],["operating-trace-matrix.schema.json",Lu]]);function eY(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function BQ(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=WG.get(s);return c?{schema:eY(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function fo(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed display contract"}]}function Zc(e,t){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const a=Object.keys(e);return a.length===t.length&&t.every(s=>a.includes(s))}function pl(e,t,{workspace:a=!1,executiveBoard:s=!1,action:c=!1,recovery:l=!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||!hn(e.eventHead,t.eventHead))return!1;if(!a){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"){const u=e.data.cycle.cycleId;if(typeof t.subjectId!="string"||typeof t.cycleId!="string"||t.subjectId!==u||t.cycleId!==u)return!1}return!0}return s?t.cycleId===e.data.cycleId&&t.subjectId===e.data.cycleId:c?t.subjectId===e.data.action.actionId&&t.actionId===e.data.action.actionId:l?!0:t.cycleId===e.data.cycle.cycleId&&t.subjectId===e.data.cycle.cycleId}function vQ(e){if(!e||typeof e!="object"||!JG.has(e.state)||!ZG.has(e.health)||!Array.isArray(e.stages)||e.stages.length!==vb.length||!e.stages.every((a,s)=>a.id===vb[s]))return!1;const t=yQ[e.state];return e.stages.every((a,s)=>{let c=s<t?"complete":s===t?"current":"waiting";e.state==="closed"&&(c="complete"),s===t&&["blocked","failed"].includes(e.state)&&(c=e.state),s===t&&e.state==="cancelled"&&(c="skipped");const l=["blocked","failed","skipped"].includes(c)?`Cycle is ${e.state}.`:null;return a.state===c&&a.reason===l})}function tY(e,t){const a=e.payload;if(!KG.has(a.surface)||e.integrity.sourceViewHash!==a.viewHash||a.truthSummary.sourceViewHash!==a.viewHash||!hn(a.truthSummary.sourceEventHead,a.eventHead)||!pl(a,t))return!1;if(a.surface==="inbox"){const c=a.data.inbox,l=a.data.requestBinding.subjectId;return Array.isArray(c)&&new Set(c.map(u=>u.itemId)).size===c.length&&(l===null||c.length===1&&c[0].itemId===l)&&c.every((u,f)=>f===0||Number(c[f-1].blocking)>Number(u.blocking)||Number(c[f-1].blocking)===Number(u.blocking)&&c[f-1].itemId.localeCompare(u.itemId)<0)}if(a.surface==="actions"){const c=a.data.actions;return Array.isArray(c)&&new Set(c.map(l=>l.actionId)).size===c.length}const s=a.surface==="today"?a.data.activeCycle===null?[]:[a.data.activeCycle]:a.surface==="cycles"?a.data.cycles:[a.data.cycle];return new Set(s.map(c=>c.cycleId)).size===s.length&&s.every(vQ)}function Uh(e,t){return Zc(e,["kind","subjectId","state","relations"])&&e.kind===t&&typeof e.subjectId=="string"&&EQ[t].test(e.subjectId)&&typeof e.state=="string"&&XG[t].has(e.state)&&Array.isArray(e.relations)&&e.relations.length>=1&&e.relations.length<=Rg.length&&e.relations.every(a=>Rg.includes(a))&&new Set(e.relations).size===e.relations.length}function nY(e){var t;return Zc(e,["entityKind","entityId","cycleId","relation"])&&((t=EQ[e.entityKind])==null?void 0:t.test(e.entityId))===!0&&typeof e.cycleId=="string"&&Rg.includes(e.relation)}function aY(e,t){const a=[...e.findings,...e.decisions,...e.actions],s=a.map(l=>`${l.kind}:${l.subjectId}`),c=e.cycleLinks.map(l=>`${l.entityKind}:${l.entityId}:${l.cycleId}:${l.relation}`);return new Set(s).size!==s.length||new Set(c).size!==c.length||e.cycleLinks.some(l=>l.cycleId!==t||!a.some(u=>u.kind===l.entityKind&&u.subjectId===l.entityId))?!1:a.every(l=>Kt(l.relations,e.cycleLinks.filter(u=>u.entityKind===l.kind&&u.entityId===l.subjectId).map(u=>u.relation)))}function iY(e,t){return Zc(e,["tool","arguments","label","effect"])&&e.tool==="operate.cycle.get"&&Zc(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 rY(e){const t=e.verification,a=e.metric;return["succeeded","failed"].includes(e.status)&&e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&a!==null&&a.observed!==null&&a.freshness==="current"&&t!==null&&t.accessReason===null&&e.verificationPlanId===t.verificationPlanId&&a.metricId===t.metricId&&a.metricHash===t.metricHash}function sY(e,t,a,s){const c=e.actions.map(A=>A.subjectId),l=e.outcomes.map(A=>A.outcomeId),u=e.learnings.map(A=>A.learningId);if(new Set(l).size!==l.length||new Set(u).size!==u.length||e.outcomes.some(A=>!c.includes(A.actionId))||e.learnings.some(A=>!l.includes(A.outcomeId)))return!1;const f=s.proof.status==="verified"?"verified":s.proof.status==="not-required"?"not-required":"unverified",h=f==="unverified"?s.proof.reasonCodes.length>0?s.proof.reasonCodes:["OPERATE_VERIFICATION_EVIDENCE_MISSING"]:[];return a.status===f&&Kt(a.reasonCodes,h)}function Lh(e,t,a){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:a}}function oY(e){const t=e.data;if(!Zc(t.ownerCycle,["cycleId","scopeId","domainId","domainVersion","state","health","focus","createdAt","updatedAt"])||!Array.isArray(t.persistentWork.findings)||!t.persistentWork.findings.every(a=>Uh(a,"finding"))||!Array.isArray(t.persistentWork.decisions)||!t.persistentWork.decisions.every(a=>Uh(a,"decision"))||!Array.isArray(t.persistentWork.actions)||!t.persistentWork.actions.every(a=>Uh(a,"action"))||!Array.isArray(t.persistentWork.cycleLinks)||!t.persistentWork.cycleLinks.every(nY)||!Array.isArray(t.persistentWork.outcomes)||!Array.isArray(t.persistentWork.learnings)||t.allowedActions.length!==1)return!1;try{const a=t.cycle,s={...a,assignments:a.assignments.map(u=>u.deepLink===null?{...u,deepLink:a.deepLink}:u)},c=t.persistentWork.outcomes.map(u=>u.deepLink===null?{...u,deepLink:`#/operate/outcomes/${encodeURIComponent(u.outcomeId)}`}:u);ou(Lh(e,"cycle",{cycle:s})),ou(Lh(e,"outcomes",{domainMetrics:[],outcomes:c,learnings:t.persistentWork.learnings})),ou(Lh(e,"history",{history:[],replay:t.replay}));const l=t.persistentWork.actions.filter(u=>u.relations.includes("source")).map(u=>u.subjectId);return vQ(a)&&t.ownerCycle.cycleId===a.cycleId&&t.ownerCycle.scopeId===e.scopeId&&t.ownerCycle.domainId===e.domainId&&t.ownerCycle.domainVersion===e.domainVersion&&t.ownerCycle.state===a.state&&t.ownerCycle.health===a.health&&Kt(t.ownerCycle.focus,a.focus)&&t.ownerCycle.createdAt===a.createdAt&&t.ownerCycle.updatedAt===a.updatedAt&&a.deepLink===`#/operate/cycles/${encodeURIComponent(a.cycleId)}`&&hn(t.replay.finalHead,e.eventHead)&&Kt(a.replayCheckpoint,t.replay.checkpoint)&&Kt(a.persistentActionIds,l)&&aY(t.persistentWork,a.cycleId)&&sY(t.persistentWork,a,t.verification,e.truthSummary)&&iY(t.allowedActions[0],a.cycleId)}catch{return!1}}function cY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&hn(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&pl(e.payload,t,{workspace:!0})&&oY(e.payload)}function hl(e,t,a,s,c){try{const l=Ua(e);if(ko(l,t,{base:a,resolveRef:BQ}).length>0||!s(l,c))return fo();const f=MA(tQ(l),l.integrity.domain);return l.integrity.contentHash===f?[]:fo()}catch{return fo()}}function lY(e,t){return hl(e,LA,"schemas/v1.2.0/operate-experience-display-surface.schema.json",tY,t)}function Cn(e,t){if(lY(e,t).length>0){const a=new TypeError("The Operate display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXPERIENCE_DISPLAY_INVALID",a}return e}function dY(e,t){return t?e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&hn(e.eventHead,t.eventHead)&&e.sourceViewHash===t.sourceViewHash&&e.subject.id===t.subjectId&&e.actionDigest===t.actionDigest:!0}function uY(e){if(new Set(e.targets.map(a=>`${a.kind}:${a.id}`)).size!==e.targets.length)return!1;if(e.kind!=="approval")return e.threshold===null;const 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 fY(e,t){try{const a=Ua(e),s=ko(a,sQ,{base:"schemas/v2.0.0/operate-experience-preview.schema.json",resolveRef:BQ});if(s.length>0||!dY(a,t)||!uY(a.transition))return s.length>0?s:fo();const c=Ua(a);return delete c.previewHash,a.actionDigest!==mr(a.allowedAction)||a.previewHash!==mr(c)?fo():[]}catch{return fo()}}function pY(e,t){if(fY(e,t).length>0){const a=new TypeError("The Operate preview does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXPERIENCE_PREVIEW_INVALID",a}return eQ(Ua(e))}function hY(e,t){return hl(e,zA,"schemas/v1.2.0/operate-cycle-display-workspace.schema.json",cY,t)}function vu(e,t){if(hY(e,t).length>0){const a=new TypeError("The Cycle display workspace does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_CYCLE_DISPLAY_INVALID",a}return e}function gY(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":!1}function AY(e){return typeof(e==null?void 0:e.roleId)=="string"&&typeof(e==null?void 0:e.label)=="string"&&e.roleId!==e.label&&typeof(e==null?void 0:e.roleKind)=="string"&&typeof(e==null?void 0:e.roleVersion)=="string"&&gY((e==null?void 0:e.absence)??null)}function mY(e){var a;const t=(a=e==null?void 0:e.data)==null?void 0:a.executiveBoard;return!t||!Array.isArray(t.seats)?!1:t.seats.every(AY)}function yY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&pl(e.payload,t,{executiveBoard:!0})&&mY(e.payload)}function EY(e,t){return hl(e,UA,"schemas/v1.2.0/operate-executive-board-display-surface.schema.json",yY,t)}function Dg(e,t){if(EY(e,t).length>0){const a=new TypeError("The executive board display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXECUTIVE_BOARD_DISPLAY_INVALID",a}return e}function BY(e){return`#/operate/actions/${encodeURIComponent(e)}`}function vY(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)&&rY(e)?Object.freeze({status:"verified",reasonCodes:Object.freeze([])}):Object.freeze({status:"unverified",reasonCodes:Object.freeze(["OPERATE_VERIFICATION_EVIDENCE_MISSING"])})}function bY(e){const t=e==null?void 0: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==="restore-generation","uncertain"):"blocked"}function wY(e){const t=e.data,a=t.action,s=BY(a.actionId),c=t.allowedActions,l=t.outcome,u=vY(l),f=c.some(h=>h.action.effect!=="read-only");return!(e.readOnly===e.mutationEnabled||e.mutationEnabled&&(e.status!=="ready"||!f)||a.deepLink!==s||!Kt(t.boundaries,qG)||!Kt(t.verification,u)||!Kt(t.replay.finalHead,e.eventHead)||c.some(h=>h.subjectId!==a.actionId)||t.inbox.some(h=>h.subjectId!==a.actionId)||t.learnings.some(h=>l===null||h.outcomeId!==l.outcomeId)||l!==null&&l.actionId!==a.actionId)}function xY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&pl(e.payload,t,{workspace:!0,action:!0})&&wY(e.payload)}function jY(e,t){return hl(e,HA,"schemas/v1.2.0/operate-action-display-workspace.schema.json",xY,t)}function Tg(e,t){if(jY(e,t).length>0){const a=new TypeError("The Action display workspace does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_ACTION_DISPLAY_INVALID",a}return e}function QY(e){const t=e.data;return!("integrityBoundary"in t.inspection||t.recoveryState!==bY(t.inspection))}function IY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&pl(e.payload,t,{workspace:!0,recovery:!0})&&QY(e.payload)}function CY(e,t){return hl(e,$A,"schemas/v1.2.0/operate-recovery-display-surface.schema.json",IY,t)}function kg(e,t){if(CY(e,t).length>0){const a=new TypeError("The recovery display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_RECOVERY_DISPLAY_INVALID",a}return e}Object.freeze(structuredClone(HA));Object.freeze(structuredClone($A));Object.freeze(structuredClone(UA));Object.freeze(structuredClone(LA));Object.freeze(structuredClone(zA));const SY=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,bb=/^[A-Za-z0-9_-]{16,256}$/u,OY=/^[A-Za-z0-9_-]{43,256}$/u,bQ=/^sha256:[a-f0-9]{64}$/u,_Y=256*1024;function NY(){let e=0,t=!1,a=!1;const s=new Set,c=()=>{e+=1;for(const l of s)l.abort();s.clear()};return Object.freeze({isDisposed:()=>t,isUncertain:()=>a,invalidate:c,markUncertain(){a=!0,c()},reconcile(){a=!1,c()},start(){if(t)throw new DOMException("Cancelled","AbortError");a&&Se("OPERATION_UNCERTAIN"),s.size>0&&Se("OPERATE_COMMAND_IN_FLIGHT");const l=new AbortController;s.add(l);let u=!0;return Object.freeze({controller:l,epoch:e,release(){u&&(u=!1,s.delete(l))}})},assert(l,u,f){if(t||u.aborted||l!==e||!f)throw new DOMException("Cancelled","AbortError")},dispose(){t||(t=!0,c())}})}function wQ(e){const t=new Set(e.routeKinds),a=NY();let s=null,c=null,l=null,u=null;const f=(A,y)=>s!==null&&c!==null&&Ye(A,s)&&e.sameLocator(y,c),h=(A,y)=>A.productArea===y.productArea&&A.route===y.route&&A.actorId===y.actorId&&A.projectId===y.projectId&&A.scopeId===y.scopeId&&A.domainId===y.domainId&&A.domainVersion===y.domainVersion&&A.cycleId===y.cycleId&&A.subjectId===y.subjectId&&A.generation===y.generation;return Object.freeze({bind(A,y){a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED");const m=Ve(A);(m.productArea!=="operate"||!t.has(Ha(m.route).kind))&&Se(e.routeErrorCode);const E=e.parseLocator(y);f(m,E)||(l=null,u=null,a.invalidate(),s=m,c=E)},async run(A,y={}){a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED"),(s===null||c===null)&&Se("OPERATE_BINDING_REQUIRED");const m=s,E=c,b=a.start(),w=()=>{a.assert(b.epoch,b.controller.signal,f(m,E))},x=async j=>{try{const I=await j;return w(),I}catch(I){throw w(),I}};try{const j=l??await x(e.issueSession({identity:m,locator:E,signal:b.controller.signal,assertCurrent:w,waitForCurrent:x}));return l=j,await x(A({identity:m,locator:E,session:j,signal:b.controller.signal,assertCurrent:w,waitForCurrent:x}))}catch(j){throw y.uncertainOnFailure&&j instanceof Error&&j.name==="OPERATION_UNCERTAIN"&&(l=null,a.markUncertain()),j}finally{b.release()}},retainPreviewProof(A){(a.isDisposed()||a.isUncertain())&&Se("OPERATION_UNCERTAIN"),u=structuredClone(A)},requirePreviewProof(A){return a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED"),A(u)||Se("OPERATE_BINDING_MISMATCH"),structuredClone(u)},clearPreviewProof(){u=null},cancel(){l=null,u=null,a.invalidate()},reconcile(A,y){l=null,u=null,a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED"),(s===null||c===null)&&Se("OPERATE_BINDING_REQUIRED");const m=Ve(A);(m.productArea!=="operate"||!t.has(Ha(m.route).kind)||!h(s,m))&&Se("OPERATE_BINDING_MISMATCH");const E=y===void 0?c:e.parseLocator(y);e.sameLocator(c,E)||Se("OPERATE_BINDING_MISMATCH"),s=m,c=E,a.reconcile()},dispose(){a.isDisposed()||(l=null,u=null,s=null,c=null,a.dispose())}})}class Gc extends Error{constructor(t){super("The governed command was refused without effect."),this.code=t,this.name=t}}function Se(e="OPERATE_COMMAND_INVALID"){throw new Gc(e)}function Fn(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Se(),e}function va(e,t){const a=Object.keys(e).sort(),s=[...t].sort();(a.length!==s.length||a.some((c,l)=>c!==s[l]))&&Se()}function po(e,t){return(typeof e!="string"||!t.test(e))&&Se(),e}function Mg(e){const t=Fn(e);va(t,["sequence","hash"]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Se();const a=t.hash===null?null:po(t.hash,bQ);return t.sequence===0!=(a===null)&&Se(),Object.freeze({sequence:t.sequence,hash:a})}function xQ(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Pd(e){const t=Fn(e);return va(t,["subjectId","actionDigest"]),Object.freeze({subjectId:po(t.subjectId,SY),actionDigest:po(t.actionDigest,bQ)})}function RY(e){let t;try{t=new URL(e)}catch{Se("OPERATE_ORIGIN_INVALID")}return(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))&&Se("OPERATE_ORIGIN_INVALID"),t.origin}function DY(e,t,a){const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s.toString()}function TY(e){try{const t=Fn(e);va(t,["ok","error"]);const a=Fn(t.error);va(a,["reasonCode","message","retryable"]);const s=a.reasonCode;return t.ok===!1&&typeof s=="string"&&/^[A-Z][A-Z0-9_]{0,127}$/u.test(s)&&typeof a.message=="string"&&a.retryable===!1?s:null}catch{return null}}function kY(e,t){va(e,["ok","operation","error","allowedActions"]);const a=Fn(e.error);va(a,["code","message","retryable","context"]);const s=Fn(a.context);va(s,[]),(e.ok!==!1||e.operation!==t||a.code!=="OPERATION_UNCERTAIN"||typeof a.message!="string"||a.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Se("OPERATE_COMMAND_REFUSED")}function MY(e,t,a,s){va(e,["ok","operation","data","allowedActions","eventHead"]),(e.ok!==!0||e.operation!==t||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Se("OPERATE_RESPONSE_INVALID");const c=Mg(e.eventHead),l=Fn(e.data),u=Mg(l.eventHead);return(l.kind!=="operate-experience-view"||l.schemaVersion!=="1.0.0"||l.protocolVersion!=="2.0.0"||l.actorId!==a.actorId||l.scopeId!==a.scopeId||l.domainId!==a.domainId||l.domainVersion!==a.domainVersion||!xQ(u,c)||c.sequence<=s.sequence||c.hash===null)&&Se("OPERATE_RESPONSE_INVALID"),c}async function GY(e,t){const a=e.headers.get("content-type");(!a||!/^application\/json(?:\s*;\s*charset=utf-8)?$/iu.test(a))&&Se("OPERATE_RESPONSE_INVALID");const s=e.text(),c=t?await t.waitForCurrent(s):await s;t==null||t.assertCurrent(),c.length>_Y&&Se("OPERATE_RESPONSE_INVALID");let l;try{l=JSON.parse(c)}catch{Se("OPERATE_RESPONSE_INVALID")}if(!e.ok){const u=TY(l);u===null&&Se("OPERATE_RESPONSE_INVALID"),Se(u)}return l}function jQ(e,t,a,s){const c=Fn(e);va(c,["kind","schemaVersion","protocolVersion","sessionId","sessionCapability","issuedAt","expiresAt","binding","allowedActions","readOnly"]),(c.kind!=="operate-command-session"||c.schemaVersion!=="1.0.0"||c.protocolVersion!=="2.0.0"||c.readOnly!==!1||typeof c.issuedAt!="string"||typeof c.expiresAt!="string")&&Se("OPERATE_SESSION_INVALID");const l=Fn(c.binding);va(l,["actorId","scopeId","domainId","domainVersion","cycleId","eventHead","sourceViewHash","actionLocator"]);const u=s.parseLocator(l.actionLocator),f=Mg(l.eventHead);(l.actorId!==t.actorId||l.scopeId!==t.scopeId||l.domainId!==t.domainId||l.domainVersion!==t.domainVersion||l.cycleId!==t.cycleId||t.eventHead===null||!xQ(f,t.eventHead)||l.sourceViewHash!==t.viewHash||!s.sameLocator(u,a))&&Se("OPERATE_BINDING_MISMATCH"),Array.isArray(c.allowedActions)||Se("OPERATE_ACTION_REFERENCE_INVALID");let h=null;if(s.allowedActions.kind==="none")c.allowedActions.length!==0&&Se("OPERATE_ACTION_REFERENCE_INVALID");else{c.allowedActions.length!==1&&Se("OPERATE_ACTION_REFERENCE_INVALID");const A=Fn(c.allowedActions[0]),y=s.allowedActions.parseLocator(A);s.sameLocator(y,a)||Se("OPERATE_BINDING_MISMATCH"),h=po(A.actionReference,bb)}return Object.freeze({sessionId:po(c.sessionId,bb),capability:po(c.sessionCapability,OY),actionReference:h})}function YY(e,t,a,s){const c={"content-type":"application/json","x-openplanr-actor":e.actorId};return a&&(c.origin=t),s!==void 0&&(c.authorization=`Bearer ${s}`),c}async function Ph(e,t,a,s,c,l,u,f,h){const A=e(DY(t,a,s),{method:"POST",credentials:"same-origin",headers:YY(s,t,u,f),body:JSON.stringify(c),signal:l}),y=h?await h.waitForCurrent(A):await A;return h==null||h.assertCurrent(),GY(y,h)}function qA(e){const t=RY(e.origin),a=e.fetcher??globalThis.fetch.bind(globalThis),s=new Set(e.routeKinds),c=e.includeOriginHeader??!1;let l=null;const u=wQ({routeKinds:e.routeKinds,routeErrorCode:e.routeErrorCode,parseLocator:Pd,sameLocator:(A,y)=>A.subjectId===y.subjectId&&A.actionDigest===y.actionDigest,async issueSession({identity:A,locator:y,signal:m,assertCurrent:E,waitForCurrent:b}){(A.cycleId===null||A.eventHead===null||A.viewHash===null)&&Se("OPERATE_BINDING_REQUIRED");const w=await Ph(a,t,"/api/operate/session",A,{cycleId:A.cycleId,eventHead:A.eventHead,sourceViewHash:A.viewHash,actionLocator:y},m,c,void 0,{assertCurrent:E,waitForCurrent:b});return E(),jQ(w,A,y,{parseLocator:Pd,sameLocator:(x,j)=>x.subjectId===j.subjectId&&x.actionDigest===j.actionDigest,allowedActions:{kind:"single-reference",parseLocator(x){return va(x,["actionReference","subjectId","actionDigest"]),Pd({subjectId:x.subjectId,actionDigest:x.actionDigest})}}})}});return Object.freeze({bind:A=>{const y=Ve(A),m=Ha(y.route);(y.productArea!=="operate"||!s.has(m.kind))&&Se(e.routeErrorCode),!(l!==null&&Ye(l,y))&&(u.cancel(),l=y)},preview:async A=>{(l===null||l.productArea!=="operate"||l.cycleId===null||l.eventHead===null||l.viewHash===null)&&Se("OPERATE_BINDING_REQUIRED");const y=Pd(A),m=l,E=l.eventHead,b=l.viewHash;u.bind(m,y);const w=await u.run(async({session:O,signal:S,assertCurrent:_,waitForCurrent:k})=>{O.actionReference===null&&Se("OPERATE_ACTION_REFERENCE_INVALID");let N;try{N=await Ph(a,t,"/api/operate/commands/preview",m,{sessionId:O.sessionId,actionReference:O.actionReference},S,c,O.capability,{assertCurrent:_,waitForCurrent:k}),_()}catch(z){if(S.aborted&&z instanceof DOMException&&z.name==="AbortError"||z instanceof Gc&&z.code!=="OPERATE_RESPONSE_INVALID"&&z.code!=="OPERATION_UNCERTAIN")throw z;Se("OPERATION_UNCERTAIN")}try{const z=pY(N,{actorId:m.actorId,scopeId:m.scopeId,domainId:m.domainId,domainVersion:m.domainVersion,eventHead:E,sourceViewHash:b,subjectId:y.subjectId,actionDigest:y.actionDigest});return u.retainPreviewProof(z),z}catch{Se("OPERATION_UNCERTAIN")}},{uncertainOnFailure:!0});let x=!0,j=null;return Object.freeze({preview:w,confirm:O=>(j!==null||(j=(async()=>{if(!x)throw new DOMException("Cancelled","AbortError");try{const S=await u.run(async({session:_,signal:k,assertCurrent:N,waitForCurrent:z})=>{var Z;const M=u.requirePreviewProof(F=>Fn(F).previewId===w.previewId&&Fn(F).previewHash===w.previewHash);let L;try{L=await Ph(a,t,"/api/operate/commands/confirm",m,{sessionId:_.sessionId,previewId:M.previewId,previewHash:M.previewHash,...((Z=e.confirmation)==null?void 0:Z.additionalBody(M,O))??{}},k,c,_.capability,{assertCurrent:N,waitForCurrent:z}),N()}catch(F){if(k.aborted&&F instanceof DOMException&&F.name==="AbortError"||F instanceof Gc&&F.code!=="OPERATION_UNCERTAIN"&&F.code!=="OPERATE_RESPONSE_INVALID")throw F;Se("OPERATION_UNCERTAIN")}try{if(e.confirmation)return e.confirmation.parse({value:L,preview:M,identity:m,previousHead:E,input:O});const F=Fn(L);return F.ok!==!0&&(kY(F,M.allowedAction.tool),Se("OPERATION_UNCERTAIN")),MY(F,M.allowedAction.tool,m,E)}catch(F){if(F instanceof Gc&&F.code==="OPERATION_UNCERTAIN")throw F;Se("OPERATION_UNCERTAIN")}},{uncertainOnFailure:!0});return u.clearPreviewProof(),e.confirmation?S:Object.freeze({ok:!0,eventHead:S})}catch(S){if(S instanceof Gc&&S.code==="OPERATION_UNCERTAIN")return Object.freeze({ok:!1,reasonCode:"OPERATION_UNCERTAIN"});throw S}finally{x=!1}})()),j),cancel:()=>{x&&(x=!1,u.cancel())}})},reconcile(A){l===null&&Se("OPERATE_BINDING_REQUIRED");const y=Ve(A);u.reconcile(y),l=y},cancel:u.cancel,dispose(){u.dispose(),l=null}})}function HY(e){return qA({...e,routeKinds:["operate.action"],routeErrorCode:"OPERATE_ACTION_ROUTE_REQUIRED",includeOriginHeader:!0})}const zY=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function QQ(e){try{const t=Ve(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 Vu(e){const t=QQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Tg(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId});return Tg(s,l),!0}catch{return!1}}}function wb(e,t){const a=QQ(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!Vu(a)(e.data))return null;const s=e.data,c=s.payload,l=zY[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==e.mutationEnabled?null:Object.freeze({kind:"action",presentation:l,binding:e.binding,display:s,workspace:c,action:c.data.action,outcome:c.data.outcome,learnings:c.data.learnings,inbox:c.data.inbox,history:c.data.history,replay:c.data.replay,verification:c.data.verification,boundaries:c.data.boundaries,allowedActions:c.data.allowedActions,mutationEnabled:l==="ready"&&c.mutationEnabled})}const $Y=2147e6;function IQ(e){var a,s;const t=((a=e==null?void 0:e.action)==null?void 0:a.tool)??"";return t.endsWith(".approve")?"approval":t.endsWith(".execute")?"execute":t.endsWith(".rollback")?"rollback":t.includes("recovery")||t.includes("reconcile")?"reconcile":((s=e==null?void 0:e.action)==null?void 0:s.effect)==="read-only"?"inspect":"governed"}function _a(e){var t,a;return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,((t=e.eventHead)==null?void 0:t.sequence)??null,((a=e.eventHead)==null?void 0:a.hash)??null,e.viewHash,e.subjectId])}function CQ(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 xb(e){return e instanceof DOMException&&e.name==="AbortError"}function Fd(e){return e instanceof Error&&e.name==="OPERATION_UNCERTAIN"}function UY(){typeof window>"u"||window.setTimeout(()=>window.location.reload(),0)}function SQ(e){return Date.parse(e.custody.preview.expiresAt)}function jb(e,t=Date.now()){const a=SQ(e);return!Number.isFinite(a)||a<=t}function no(e,t){return t!==null&&e.contextKey===_a(t.binding)&&Ye(e.binding,t.binding)&&e.locator.subjectId===t.action.actionId}function Pn({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function wn({label:e,value:t}){const a=t==null||t===""?"Not available":t;return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:r.jsx("code",{children:a})})]})}function KA(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function JA(e){const 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 Xc(e,t,a=`${t}s`){return`${e} ${e===1?t:a}`}function Qb(e){return e==="insufficient-evidence"?"More evidence is needed":e==="verified"?"Outcome confirmed":e==="not-required"?"No further verification is needed":KA(e)}function Ib({kind:e,result:t}){var s;const a=t.targetBeforeHash===t.targetAfterHash;return r.jsxs("section",{className:"op-action-result","aria-labelledby":`op-action-${e.toLowerCase()}-title`,"data-result-kind":e.toLowerCase(),children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"op-eyebrow",children:[e," result"]}),r.jsx("h2",{id:`op-action-${e.toLowerCase()}-title`,children:((s=t.effectSummary)==null?void 0:s.summary)??`${e} result is access-restricted`})]}),r.jsx("p",{children:"A recorded change still needs evidence before its result can be confirmed."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Status",value:KA(t.status)}),r.jsx(Pn,{label:"Completed",value:JA(t.completedAt)}),r.jsx(Pn,{label:"Change",value:a?"No change recorded":"Change recorded"}),r.jsx(Pn,{label:"Access",value:t.accessReason??"Current actor may inspect the projected summary"})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Target before digest",value:t.targetBeforeHash}),r.jsx(wn,{label:"Target after digest",value:t.targetAfterHash})]})]})]})}function LY({outcome:e}){return r.jsxs("section",{className:"op-action-outcome","aria-labelledby":"op-action-outcome-title","data-result-kind":"outcome",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Outcome"}),r.jsx("h2",{id:"op-action-outcome-title",children:Qb(e.status)})]}),r.jsx("p",{children:"This is where the expected result is checked against real evidence."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Status",value:Qb(e.status)}),r.jsx(Pn,{label:"Last checked",value:JA(e.observedAt)}),r.jsx(Pn,{label:"Observations",value:Xc(e.observationIds.length,"observation")}),r.jsx(Pn,{label:"Evidence",value:Xc(e.evidenceRefIds.length,"reference")})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Outcome ID",value:e.outcomeId}),r.jsx(wn,{label:"Verification plan",value:e.verificationPlanId})]})]})]})}function PY({learning:e}){return r.jsxs("section",{className:"op-action-learning","aria-labelledby":`op-learning-${e.learningId}`,"data-result-kind":"learning",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"What we learned"}),r.jsx("h2",{id:`op-learning-${e.learningId}`,children:e.statement})]}),r.jsx("p",{children:"This insight is based on the work and its evidence."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Recorded",value:JA(e.createdAt)}),r.jsx(Pn,{label:"Related decisions",value:Xc(e.decisionIds.length,"decision")}),r.jsx(Pn,{label:"Evidence",value:Xc(e.evidenceRefIds.length,"reference")})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Learning ID",value:e.learningId}),r.jsx(wn,{label:"Outcome ID",value:e.outcomeId})]})]})]})}function Vd({entry:e,model:t,variant:a,fallbackLabel:s,fallbackReason:c,pending:l,onInvoke:u}){var A,y,m;const f=CQ(t),h=`op-action-control-${IQ(e)}`;return e&&!f&&((A=e.action)==null?void 0:A.effect)!=="read-only"?r.jsx(Mt,{id:h,variant:a,...l?{disabled:!0,disabledReason:"A governed preview is already in flight."}:{onInvoke:()=>u(e,h)},children:((y=e.action)==null?void 0:y.label)??s}):r.jsx(Mt,{id:h,disabled:!0,disabledReason:f??c,children:((m=e==null?void 0:e.action)==null?void 0:m.label)??s})}function FY({model:e,pending:t,onInvoke:a}){var j,I;const{action:s,outcome:c,learnings:l,boundaries:u}=e,f=e.allowedActions.filter(C=>C.subjectId===s.actionId),h=new Map(f.map(C=>[IQ(C),C])),A=s.executions.at(-1)??null,y=s.rollbacks.at(-1)??null,m=(A==null?void 0:A.status)==="uncertain"||(y==null?void 0:y.status)==="uncertain"||s.state==="uncertain",E=(A==null?void 0:A.status)==="succeeded",b=(c==null?void 0:c.status)==="insufficient-evidence",w=((j=s.deliveryRoute)==null?void 0:j.route)==="planning-work"?`#/operate/actions/${encodeURIComponent(s.actionId)}/planning`:null,x=s.dependencyActionIds.length===0?"No dependencies":Xc(s.dependencyActionIds.length,"dependency","dependencies");return r.jsxs("article",{className:"op-action-detail__workspace","data-action-state":s.state,"aria-labelledby":"op-action-title",children:[r.jsxs("header",{className:"op-action-detail__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"planr-operate · action"}),r.jsx("h1",{id:"op-action-title",children:s.title}),r.jsx("p",{children:s.expectedResult}),r.jsx(fa,{state:s.state})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Status",value:KA(s.state)}),r.jsx(Pn,{label:"Related work",value:x})]})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Action ID",value:s.actionId}),r.jsx(wn,{label:"Revision",value:s.revision}),r.jsx(wn,{label:"Action digest",value:s.actionHash}),r.jsx(wn,{label:"Verification plan",value:s.verificationPlanId}),r.jsx(wn,{label:"Delivery route",value:(I=s.deliveryRoute)==null?void 0:I.route}),r.jsx(wn,{label:"Dependencies",value:s.dependencyActionIds.length>0?s.dependencyActionIds.join(" · "):"None"})]})]}),r.jsxs("section",{className:"op-action-boundaries","aria-labelledby":"op-action-boundaries-title",children:[r.jsx("div",{className:"op-cycle-section-heading",children:r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Before you continue"}),r.jsx("h2",{id:"op-action-boundaries-title",children:"Review each step separately"})]})}),r.jsx(be,{state:"unavailable",eyebrow:"Approval",title:"Approval does not make a change",description:u.approvalExecution}),E?r.jsx(be,{state:"incompatible",eyebrow:"Recorded change",title:"The change is complete; its result is still being checked",description:u.verification}):null,b?r.jsx(be,{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,m?r.jsx(be,{state:"offline",eyebrow:"Uncertainty",title:"Do not retry this Action",description:u.retry}):null]}),r.jsxs("section",{className:"op-action-detail__controls","aria-label":`Available actions for ${s.title}`,children:[w?r.jsx("a",{className:"op-cycle-link",href:w,children:"Review Planning handoff"}):null,h.has("approval")?r.jsx(Vd,{entry:h.get("approval"),model:e,pending:t,onInvoke:a,fallbackLabel:"Approve",fallbackReason:"OpenPlanr returned no approval action for the current authority and state."}):null,h.has("execute")?r.jsx(Vd,{entry:h.get("execute"),model:e,pending:t,onInvoke:a,fallbackLabel:"Execute",fallbackReason:"OpenPlanr returned no execute action for the current authority and state."}):r.jsx(Mt,{disabled:!0,disabledReason:E?"This execution already has a durable terminal result. It cannot be dispatched again.":m?"Uncertain effect state prohibits blind retry.":"OpenPlanr returned no execute action for the current authority and state.",children:"Execute unavailable"}),h.has("rollback")?r.jsx(Vd,{entry:h.get("rollback"),model:e,variant:"danger",pending:t,onInvoke:a,fallbackLabel:"Rollback",fallbackReason:"Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline."}):r.jsx(Mt,{disabled:!0,disabledReason:"Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline.",children:"Rollback unavailable"}),h.has("reconcile")?r.jsx(Vd,{entry:h.get("reconcile"),model:e,pending:t,onInvoke:a,fallbackLabel:"Reconcile",fallbackReason:"OpenPlanr returned no reconcile action for the current state."}):null]}),A?r.jsx(Ib,{kind:"Execution",result:A}):r.jsx(be,{state:"unavailable",eyebrow:"Change",title:"No change has been recorded",description:"Approval alone does not make a change."}),y?r.jsx(Ib,{kind:"Rollback",result:y}):r.jsx(be,{state:"unavailable",eyebrow:"Rollback",title:"A rollback is a separate action",description:"Restoring a prior setting creates a separate record and a new check."}),c?r.jsx(LY,{outcome:c}):r.jsx(be,{state:"unavailable",eyebrow:"Outcome",title:"No outcome has been confirmed yet",description:"A recorded change still needs evidence of the expected result."}),l.length>0?l.map(C=>r.jsx(PY,{learning:C},C.learningId)):r.jsx(be,{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."}),m?r.jsx(be,{state:"offline",eyebrow:"Recovery",title:"Reconciliation is required",description:"Use Recovery inspection or an explicit runtime recovery route. Blind retry is prohibited."}):null,r.jsx("p",{className:"op-action-detail__history-link",children:r.jsx("a",{className:"op-cycle-link",href:"#/operate/history",children:"View activity and recovery details"})})]})}function VY({currentBinding:e,current:t,actions:a,onRefetch:s}){const c=B.useMemo(()=>wb(t,e),[t,e]),[l,u]=B.useState(!1),[f,h]=B.useState(null),[A,y]=B.useState(!1),[m,E]=B.useState(!1),[b,w]=B.useState(null),[x,j]=B.useState(null),[I,C]=B.useState(!1),O=B.useRef(a??null),S=B.useRef(null),_=B.useRef(0),k=B.useRef(!1),N=B.useRef(!1),z=B.useRef(null),M=B.useRef(null),L=B.useRef(null),Z=B.useRef(null),F=B.useRef(null),oe=B.useRef(!0),re=B.useCallback(R=>{const J=ne=>{if(!oe.current||R===null||typeof document>"u")return;const Ae=document.getElementById(R);if(!(Ae instanceof HTMLButtonElement)||!Ae.isConnected){ne>0&&typeof window<"u"&&window.setTimeout(()=>J(ne-1),16);return}if(Ae.disabled){ne>0&&typeof window<"u"&&window.setTimeout(()=>J(ne-1),16);return}Ae.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>"u"?J(4):window.setTimeout(()=>J(4),0)})},[]),pe=B.useCallback(async()=>{if(s){const R=await s();return R&&typeof R=="object"?R:null}return UY(),null},[s]),Y=B.useCallback(async(R=S.current)=>{if(!(!R||I)){C(!0);try{const J=await pe(),ne=J!=null&&J.binding?wb(J,J.binding):null;if(!ne||!O.current)throw new Error("Exact reconciliation failed.");O.current.reconcile(ne.binding),S.current=null,j(null),w({contextKey:_a(ne.binding),tone:"verified",text:"The current action status is confirmed. Review a new preview to continue."})}catch{w({contextKey:_a(R),tone:"attention",text:"We could not confirm the current action status. Do not retry yet."})}finally{oe.current&&C(!1)}}},[I,pe]),V=B.useCallback(()=>{const R=Z.current;R!==null&&(clearTimeout(R),Z.current=null)},[]),te=B.useCallback(()=>{var ne;V();const R=L.current;L.current=null,_.current+=1;const J=z.current;J==null||J.custody.cancel(),(ne=O.current)==null||ne.cancel(),z.current=null,k.current=!1,N.current=!1,u(!1),h(null),E(!1),y(!1),re(R)},[V,re]),le=B.useCallback(R=>{!oe.current||!no(R,F.current)||(te(),w({contextKey:R.contextKey,tone:"attention",text:"This review expired before confirmation. The action is refreshing."}),pe())},[te,pe]),fe=B.useCallback(R=>{V();const J=()=>{if(!oe.current||z.current!==R)return;const ne=SQ(R)-Date.now();if(!Number.isFinite(ne)||ne<=0){Z.current=null,le(R);return}Z.current=setTimeout(J,Math.min(ne,$Y))};J()},[V,le]);B.useEffect(()=>(oe.current=!0,a&&(O.current=a),!O.current&&typeof window<"u"&&(O.current=HY({origin:window.location.origin})),()=>{var J;oe.current=!1,_.current+=1,V();const R=O.current;(J=z.current)==null||J.custody.cancel(),R==null||R.cancel(),z.current=null,k.current=!1,N.current=!1,queueMicrotask(()=>{!oe.current&&O.current===R&&(R==null||R.dispose(),O.current=null)})}),[a,V]),B.useLayoutEffect(()=>{const R=F.current;F.current=c;const J=c?_a(c.binding):null;w(we=>we!==null&&we.contextKey!==J?null:we),c&&O.current&&O.current.bind(c.binding);const ne=z.current,Ae=R&&c?_a(R.binding)!==_a(c.binding):R!==c;(Ae||ne!==null&&!no(ne,c)||Ae&&(k.current||N.current))&&te()},[c,te]);const T=B.useCallback(async(R,J)=>{if(!c||k.current||N.current)return;L.current=J;const ne=O.current;if(!ne){L.current=null;return}const Ae=Object.freeze({subjectId:R.subjectId,actionDigest:xn(R.action)}),we=c.binding,xe=_a(we);k.current=!0,u(!0);const Ze=_.current;try{ne.bind(we);const Ie=await ne.preview(Ae);if(!(oe.current&&Ze===_.current&&F.current!==null&&_a(F.current.binding)===xe&&Ye(we,F.current.binding))){Ie.cancel();return}if(Ie.preview.authority!=="allowed"){Ie.cancel(),ne.cancel(),w({contextKey:xe,tone:"refusal",text:Ie.preview.reasonCodes.length>0?Ie.preview.reasonCodes.join(" · "):`Preview authority: ${Ie.preview.authority}.`}),await pe();return}const De=Object.freeze({locator:Ae,binding:we,contextKey:xe,custody:Ie});if(jb(De)){Ie.cancel(),te(),w({contextKey:xe,tone:"attention",text:"This review expired before confirmation. The action is refreshing."}),await pe();return}z.current=De,h(De),y(!0),fe(De)}catch(Ie){!xb(Ie)&&oe.current&&Ze===_.current&&F.current&&_a(F.current.binding)===xe&&(ne.cancel(),Fd(Ie)&&(S.current=we,j(we)),w({contextKey:xe,tone:Fd(Ie)?"attention":"refusal",text:Fd(Ie)?"We could not confirm whether this action ran. Check the current status before trying again.":"This action was not accepted. The workspace is refreshing."}),Fd(Ie)?await Y(we):await pe())}finally{Ze===_.current&&(k.current=!1,oe.current&&u(!1))}},[c,te,Y,pe,fe]),X=B.useCallback(async()=>{const R=z.current;if(!R||N.current)return;if(!no(R,F.current)){te();return}if(jb(R)){le(R);return}N.current=!0;const J=_.current;E(!0);try{const ne=await R.custody.confirm();if(!oe.current||J!==_.current||!no(R,F.current))return;ne.ok?w({contextKey:R.contextKey,tone:"verified",text:"Your action was accepted. The workspace is refreshing."}):(S.current=R.binding,j(R.binding),w({contextKey:R.contextKey,tone:"attention",text:"The command outcome is uncertain. Refresh before retrying."})),te(),ne.ok?await pe():await Y(R.binding)}catch(ne){!xb(ne)&&oe.current&&J===_.current&&no(R,F.current)&&(w({contextKey:R.contextKey,tone:"refusal",text:"This action was not accepted. The workspace is refreshing."}),te(),await pe())}finally{J===_.current&&(N.current=!1,oe.current&&E(!1))}},[te,le,Y,pe]);if(!c)return r.jsx("div",{className:"op-workspace op-action-detail pc-operate","data-route-kind":"operate.action",children:r.jsx(be,{state:"incompatible",eyebrow:"Action projection",title:"Action cannot be trusted",description:"The owner-issued display workspace did not pass exact binding and integrity verification."})});const se=CQ(c),de=x!==null,ye=(b==null?void 0:b.contextKey)===_a(c.binding)?b:null,Ee=f!==null&&no(f,c)?f.custody.preview:null;return r.jsxs("section",{className:"op-workspace op-action-detail pc-operate","data-route-kind":"operate.action","data-action-presentation":c.presentation,"aria-label":"Operate Action detail",children:[se?r.jsx(be,{state:c.presentation==="offline"?"offline":"unavailable",eyebrow:"Actions",title:"Actions are unavailable",description:se}):null,ye?r.jsx("p",{className:"pc-operate__notice","data-tone":ye.tone,role:"status",children:ye.text}):null,de?r.jsx(be,{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:r.jsx(Mt,{disabled:!s||I,disabledReason:"A parser-verified current Action projection is required.",onInvoke:()=>void Y(),children:I?"Reconciling current Action…":"Reconcile current Action"})}):null,r.jsx(FY,{model:c,pending:l||de||I,onInvoke:T}),Ee?r.jsx(rt.Root,{open:A,onOpenChange:R=>{!R&&!N.current&&te()},children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsxs(rt.Content,{className:"op-inbox-dialog__content",onOpenAutoFocus:R=>{var J;R.preventDefault(),(J=M.current)==null||J.focus({preventScroll:!0})},onCloseAutoFocus:R=>{R.preventDefault()},children:[r.jsxs(rt.Title,{children:["Confirm ",Ee.allowedAction.label]}),r.jsx(rt.Description,{children:`You are about to ${Ee.allowedAction.label}. ${Ee.consequence??"Review the prepared change before confirming."}`}),r.jsxs("details",{className:"op-action-detail__technical-details op-action-detail__dialog-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Tool",value:Ee.allowedAction.tool}),r.jsx(wn,{label:"Digest",value:Ee.actionDigest})]})]}),r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(rt.Cancel,{asChild:!0,children:r.jsx(Mt,{ref:M,variant:"secondary",...m?{disabled:!0,disabledReason:"Confirmation in progress."}:{onInvoke:()=>te()},children:"Cancel"})}),r.jsx(Mt,{disabled:m,onInvoke:()=>void X(),children:m?`Confirming ${Ee.allowedAction.label}…`:`Confirm ${Ee.allowedAction.label}`})]})]})]})}):null]})}const qY=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function OQ(e){try{const t=Ve(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 ZA(e){const t=OQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="actions"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",subjectId:null,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function KY(e,t){const a=OQ(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!ZA(a)(e.data))return null;const s=e.data,c=s.payload;if(c.surface!=="actions")return null;const l=qY[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==e.mutationEnabled||c.data.requestBinding.projectId!==a.projectId||c.data.requestBinding.generation!==a.generation?null:Object.freeze({kind:"actions",presentation:l,binding:e.binding,display:s,surface:c,actions:Object.freeze(c.data.actions),mutationEnabled:e.mutationEnabled})}const JY=new Set(["blocked","failed","rejected"]);function ZY(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function XY({currentBinding:e,current:t}){const a=KY(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-action-list pc-operate","data-route-kind":"operate.actions",children:r.jsx(be,{state:"incompatible",eyebrow:"Action projection",title:"Actions cannot be trusted",description:"The owner-issued experience surface did not pass exact binding and integrity verification."})});const{presentation:s}=a,c=a.actions.map((f,h)=>({...f,id:`${f.actionId}:${h}`})),l=[],u=new Map;for(const f of a.actions)u.has(f.state)||l.push(f.state),u.set(f.state,(u.get(f.state)??0)+1);return r.jsxs("div",{className:"op-workspace op-action-list pc-operate","data-route-kind":"operate.actions","data-action-presentation":s,children:[s!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",s," projection. Durable Action identity remains visible; no command is inferred."]}):null,l.length>0?r.jsx("ul",{className:"pc-metrics","aria-label":"Action states",children:l.map(f=>r.jsx(Ba,{label:ZY(f),value:u.get(f)??0,tone:JY.has(f)?"attention":"default"},f))}):null,r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · actions",title:"Actions",count:`${a.actions.length} ${a.actions.length===1?"action":"actions"}`,description:"Review approved work, its outcome, and the next safe step."}),a.actions.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Actions",title:"No actions yet",description:"There are no saved actions in this workspace."}):r.jsx("div",{className:"pc-action-queue",children:c.map(f=>{var A;const h=f.executions.at(-1);return r.jsx(f2,{actionId:f.actionId,state:f.state,title:f.title,headingLevel:2,revision:f.revision,route:(A=f.deliveryRoute)==null?void 0:A.route,execution:h==null?void 0:h.status,deepLink:f.deepLink},f.id)})})]})}function Yn(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function _Q(e){return Array.isArray(e)?e:[]}function $e(e,t=null){return typeof e=="string"&&e.trim()?e:t}function WY(e){return Pa({kind:"planning.detail",subjectId:e})}function NQ(e){return Pa({kind:"operate.action-planning",subjectId:e})}function eH(e){const t=$e(e.href),a=$e(e.subjectId);if(!t||!a)return null;const s=WY(a);if(t===s||t===`#detail/${encodeURIComponent(a)}`)return s;const c=NQ(a);return t===c?c:null}function Cb(e){const t=Yn(e);return Object.freeze({kind:$e(t.kind,"unknown")??"unknown",label:$e(t.label,$e(t.kind,"Trace step")??"Trace step")??"Trace step",state:$e(t.state,"unknown")??"unknown",owner:$e(t.owner,"OpenPlanr")??"OpenPlanr",reason:$e(t.reason),time:$e(t.time),subjectId:$e(t.subjectId),href:eH(t)})}function tH(e){const t=Yn(e),a=Yn(t.decision),s=Yn(t.action),c=Yn(t.spec),l=Yn(t.transaction),u=Yn(t.eventHead);return Object.freeze({kind:$e(t.kind),status:$e(t.status,$e(c.status,"unknown")??"unknown")??"unknown",correlationId:$e(t.correlationId),proposalId:$e(t.proposalId),proposalRevision:typeof t.proposalRevision=="number"?t.proposalRevision:null,proposalHash:$e(t.proposalHash),scopeId:$e(t.scopeId),domainId:$e(t.domainId),domainVersion:$e(t.domainVersion),cycleId:$e(t.cycleId),eventHead:Object.freeze({sequence:typeof u.sequence=="number"?u.sequence:null,hash:$e(u.hash)}),decision:Object.freeze({id:$e(a.id),revision:typeof a.revision=="number"?a.revision:null,hash:$e(a.hash)}),action:Object.freeze({id:$e(s.id),revision:typeof s.revision=="number"?s.revision:null,hash:$e(s.hash)}),metric:Object.freeze({...Yn(t.metric)}),verification:Object.freeze({...Yn(t.verification)}),evidence:Object.freeze(_Q(t.evidence).map(f=>Object.freeze(Yn(f)))),spec:Object.freeze({specId:$e(c.specId),slug:$e(c.slug),contentHash:$e(c.contentHash),status:$e(c.status,"unknown")??"unknown"}),actor:Object.freeze({actorId:$e(Yn(t.actor).actorId),kind:$e(Yn(t.actor).kind)}),transaction:Object.freeze({transactionId:$e(l.transactionId),receiptHash:$e(l.receiptHash),planningProvenanceEventId:$e(l.planningProvenanceEventId)}),createdAt:$e(t.createdAt),originHash:$e(t.originHash)})}function nH(e,t={}){const a=Yn(e),s=_Q(a.nodes).map(Cb);return s.length>0?Object.freeze(s):Object.freeze([Cb({kind:"trace",label:t.label??"Delivery trace unavailable",state:"unknown",owner:"OpenPlanr",reason:t.reason??"No ledger-owned Planning progress projection is available."})])}function aH(e){return e.action.id?NQ(e.action.id):null}function iH({node:e}){const t=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"op-planning-trace__label",children:e.label}),r.jsxs("span",{className:"op-planning-trace__meta",children:[e.owner," · ",e.state]}),e.reason?r.jsx("span",{className:"op-planning-trace__reason",children:e.reason}):null]});return r.jsx("li",{"data-kind":e.kind,"data-state":e.state,children:e.href?r.jsx("a",{className:"op-cycle-link op-planning-trace__link",href:e.href,children:t}):r.jsx("div",{className:"op-planning-trace__static",children:t})})}function RQ({progress:e,label:t,reason:a}){const s=nH(e,{label:t,reason:a});return r.jsx("ol",{className:"op-planning-trace operate-delivery-trace","aria-label":t??"Delivery trace",children:s.map(c=>r.jsx(iH,{node:c},`${c.kind}:${c.subjectId??"none"}`))})}const rH=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 sH(e){try{const t=Ve(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 oH(e){if(e.subjectId===null)throw new Error("Planning handoff requires a subject identity.");return Ve({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function ka(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function Ur(e){return Array.isArray(e)?e:[]}function qd(e,t=""){return typeof e=="string"?e:t}function cH(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Sb(e,t){return(e==null?void 0:e.sequence)===(t==null?void 0:t.sequence)&&(e==null?void 0:e.hash)===(t==null?void 0:t.hash)}function lH(e,t){return!!(e!=null&&e.actionId&&e.actionId===(t==null?void 0:t.actionId)&&e.revision===(t==null?void 0:t.revision)&&e.actionHash===(t==null?void 0:t.actionHash))}function dH(e,t=Date.now()){const a=Date.parse(String(e??""));return Number.isFinite(a)&&a>t}function DQ(e,t,a,s=Date.now()){const c=ka(e.preview);return!!(e.proposalId&&e.proposalHash&&c.digest&&t.contentHash&&a.actorId&&ka(e.actor).actorId===a.actorId&&e.scopeId===a.scopeId&&e.domainId===a.domainId&&e.domainVersion===a.domainVersion&&lH(ka(e.action),a.action)&&Sb(ka(e.eventHead),a.eventHead)&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.previewDigest===c.digest&&Sb(ka(t.eventHead),ka(e.eventHead))&&dH(c.expiresAt,s))}function zc(e){const t=ka(e);return Object.freeze({title:qd(t.title),slug:qd(t.slug),problem:qd(t.problem),objective:qd(t.objective),users:Object.freeze(Ur(t.users).map(String)),scope:Object.freeze(Ur(t.scope).map(String)),nonScope:Object.freeze(Ur(t.nonScope).map(String)),risks:Object.freeze(Ur(t.risks).map(String)),constraints:Object.freeze(Ur(t.constraints).map(String)),requirements:Object.freeze(Ur(t.requirements).map(String)),acceptanceOutcomes:Object.freeze(Ur(t.acceptanceOutcomes).map(String))})}function uH(e,t){return cH(zc(e),zc(t))}function fH(e,t){const a=String(e.specId),s=[`planr spec show ${a}`,`$planr:plan ${a}`,`/planr:plan ${a}`];return t.length===s.length&&t.every((c,l)=>c===s[l]||l===1&&c===`$planr-plan ${a}`)}function TQ(e,t,a){const s=ka(t.spec);return!!(e.specId&&e.transactionId&&e.contentHash&&e.originHash&&e.receiptHash&&e.proposalId&&e.proposalHash&&e.correlationId&&e.provenanceEventId&&s.specId===e.specId&&s.contentHash===e.contentHash&&t.originHash===e.originHash&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.correlationId===e.correlationId&&ka(t.action).id&&ka(t.decision).id&&t.eventHead&&Array.isArray(a.nodes))}function Ob(e,t){const a=sH(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a))return null;const s=oH(a);if(!Vu(s)(e.data))return null;const l=e.data.payload,u=l.status;if(e.mutationEnabled)return null;const f=u==="ready";return Object.freeze({kind:"planning-handoff",presentation:u,binding:e.binding,action:l.data.action,workspace:l,mutationEnabled:f,reasonCodes:Object.freeze([...l.reasonCodes])})}const qu=/^sha256:[a-f0-9]{64}$/u,pH=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,kQ=4*1024*1024;class hH extends Error{constructor(t){super("The governed Planning handoff was refused without effect."),this.code=t,this.name=t}}function Ge(e="OPERATE_COMMAND_INVALID"){throw new hH(e)}function Vt(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Ge(),e}function Wc(e,t){const a=Vt(e),s=Object.keys(a).sort(),c=[...t].sort();return JSON.stringify(s)!==JSON.stringify(c)&&Ge("OPERATE_RESPONSE_INVALID"),a}function MQ(e){let t;try{t=new URL(e)}catch{Ge("OPERATE_ORIGIN_INVALID")}return(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))&&Ge("OPERATE_ORIGIN_INVALID"),t.origin}function GQ(e,t,a){const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s.toString()}function gH(e){const t=Wc(e,["sequence","hash"]),a=Object.keys(t).sort();(a.length!==2||a[0]!=="hash"||a[1]!=="sequence")&&Ge(),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Ge();const s=t.hash===null?null:t.hash;return s!==null&&typeof s!="string"&&Ge(),s!==null&&!qu.test(s)&&Ge(),t.sequence===0!=(s===null)&&Ge(),Object.freeze({sequence:t.sequence,hash:s})}function _b(e){const t=Wc(e,["subjectId","actionDigest","revision"]),a=Object.keys(t).sort();(a.length!==3||a[0]!=="actionDigest"||a[1]!=="revision"||a[2]!=="subjectId")&&Ge();const s=t.revision;return(!Number.isSafeInteger(s)||s<0)&&Ge(),Object.freeze({subjectId:typeof t.subjectId=="string"&&pH.test(t.subjectId)?t.subjectId:Ge(),actionDigest:typeof t.actionDigest=="string"&&qu.test(t.actionDigest)?t.actionDigest:Ge(),revision:s})}function Nb(e,t,a,s){return(e.cycleId===null||e.viewHash===null||e.eventHead===null)&&Ge("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:a,confirmDigest:s})}function AH(e,t){const a=Vt(e),s=Vt(a.eventHead);return Object.keys(a).length===15&&a.actorId===t.actorId&&a.projectId===t.projectId&&a.scopeId===t.scopeId&&a.domainId===t.domainId&&a.domainVersion===t.domainVersion&&a.generation===t.generation&&a.route===t.route&&a.cycleId===t.cycleId&&a.viewHash===t.viewHash&&s.sequence===t.eventHead.sequence&&s.hash===t.eventHead.hash&&a.actionId===t.actionId&&a.actionHash===t.actionHash&&a.actionRevision===t.actionRevision&&a.proposalId===t.proposalId&&a.confirmDigest===t.confirmDigest}async function Fh(e,t,a,s,c,l,u,f){var E;const h={accept:"application/json","content-type":"application/json","x-openplanr-actor":s.actorId};u&&(h.authorization=`Bearer ${u}`);let A;try{const b=e(GQ(t,a,s),{method:"POST",headers:h,body:JSON.stringify(c),cache:"no-store",signal:l});A=f?await f.waitForCurrent(b):await b,f==null||f.assertCurrent()}catch{if(l.aborted)throw new DOMException("Cancelled","AbortError");Ge("OPERATION_UNCERTAIN")}let y;try{const b=A.text();y=f?await f.waitForCurrent(b):await b,f==null||f.assertCurrent()}catch{if(l.aborted)throw new DOMException("Cancelled","AbortError");Ge("OPERATION_UNCERTAIN")}(!((E=A.headers.get("content-type"))!=null&&E.startsWith("application/json"))||new TextEncoder().encode(y).byteLength>kQ)&&Ge("OPERATION_UNCERTAIN");let m;try{m=JSON.parse(y)}catch{Ge("OPERATION_UNCERTAIN")}if(!A.ok){let b,w;try{b=Vt(m),w=Vt(b.error)}catch{Ge("OPERATION_UNCERTAIN")}Ge(typeof w.reasonCode=="string"?w.reasonCode:"OPERATE_COMMAND_REFUSED")}try{return Vt(m)}catch{Ge("OPERATION_UNCERTAIN")}}async function YQ(e,t,a,s,c,l){const u=e(GQ(t,a,s),{headers:{accept:"application/json","x-openplanr-actor":s.actorId},cache:"no-store",signal:c}),f=l?await l.waitForCurrent(u):await u;l==null||l.assertCurrent();const h=f.text(),A=l?await l.waitForCurrent(h):await h;l==null||l.assertCurrent(),new TextEncoder().encode(A).byteLength>kQ&&Ge();let y;try{y=JSON.parse(A)}catch{Ge()}return f.ok||Ge("OPERATE_COMMAND_REFUSED"),Vt(y)}function Vh(e){try{return e()}catch(t){if(t instanceof DOMException&&t.name==="AbortError")throw t;Ge("OPERATION_UNCERTAIN")}}function mH(e,t){const a=Wc(e,["proposal","specPreview"]),s=Vt(a.proposal),c=Vt(a.specPreview);return DQ(s,c,t)||Ge("OPERATE_RESPONSE_INVALID"),Object.freeze({proposal:s,specPreview:c})}function HQ(e,t){const a=Wc(e,["receipt","origin","progress","nextCommands"]),s=Vt(a.receipt),c=Vt(a.origin),l=Wc(a.progress,["nodes"]);if(TQ(s,c,l)||Ge("OPERATE_RESPONSE_INVALID"),t){const f=Vt(c.actor),h=Vt(c.action),A=gH(c.eventHead);(s.proposalId!==t.proposalId||c.proposalId!==t.proposalId||c.proposalRevision!==2||f.actorId!==t.identity.actorId||f.kind!=="human"||c.scopeId!==t.identity.scopeId||c.domainId!==t.identity.domainId||c.domainVersion!==t.identity.domainVersion||c.cycleId!==t.identity.cycleId||h.id!==t.locator.subjectId||h.revision!==t.locator.revision||h.hash!==t.locator.actionDigest||t.identity.eventHead===null||A.sequence!==t.identity.eventHead.sequence||A.hash!==t.identity.eventHead.hash||!qu.test(t.confirmDigest))&&Ge("OPERATE_RESPONSE_INVALID")}(!Array.isArray(a.nextCommands)||!a.nextCommands.every(f=>typeof f=="string"))&&Ge("OPERATE_RESPONSE_INVALID");const u=a.nextCommands;return fH(s,u)||Ge("OPERATE_RESPONSE_INVALID"),Object.freeze({receipt:s,origin:c,progress:Object.freeze({nodes:Object.freeze(l.nodes)}),nextCommands:Object.freeze(u)})}function zQ(e,t,a){const s=HQ(e),c=Vt(s.origin);return(Vt(c.spec).specId!==a||Vt(c.actor).actorId!==t.actorId||Vt(c.actor).kind!=="human"||c.scopeId!==t.scopeId||c.domainId!==t.domainId||c.domainVersion!==t.domainVersion)&&Ge("OPERATE_RESPONSE_INVALID"),s}async function yH(e){const t=MQ(e.origin),a=e.fetcher??fetch;/^SPEC-\d{3}$/u.test(e.specId)||Ge();const s=e.signal??new AbortController().signal;return zQ(await YQ(a,t,`/api/operate/planning/trace/${encodeURIComponent(e.specId)}`,e.identity,s),e.identity,e.specId)}function EH(e){const t=MQ(e.origin),a=e.fetcher??fetch,s=(l,u)=>(l.eventHead===null&&Ge("OPERATE_BINDING_REQUIRED"),Object.freeze({actorId:l.actorId,scopeId:l.scopeId,domainId:l.domainId,domainVersion:l.domainVersion,action:Object.freeze({actionId:u.subjectId,revision:u.revision,actionHash:u.actionDigest}),eventHead:l.eventHead})),c=wQ({routeKinds:["operate.action-planning"],routeErrorCode:"OPERATE_PLANNING_ROUTE_REQUIRED",parseLocator:_b,sameLocator:(l,u)=>l.subjectId===u.subjectId&&l.actionDigest===u.actionDigest&&l.revision===u.revision,async issueSession({identity:l,locator:u,signal:f,assertCurrent:h,waitForCurrent:A}){(l.cycleId===null||l.eventHead===null||l.viewHash===null)&&Ge("OPERATE_BINDING_REQUIRED");const y=await Fh(a,t,"/api/operate/session",l,{cycleId:l.cycleId,eventHead:l.eventHead,sourceViewHash:l.viewHash,actionLocator:u},f,void 0,{assertCurrent:h,waitForCurrent:A});return h(),Vh(()=>{const m=jQ(y,l,u,{parseLocator:_b,sameLocator:(E,b)=>E.subjectId===b.subjectId&&E.actionDigest===b.actionDigest&&E.revision===b.revision,allowedActions:{kind:"none"}});return Object.freeze({sessionId:m.sessionId,capability:m.capability})})}});return Object.freeze({bind:c.bind,async preview(l,u){return c.clearPreviewProof(),await c.run(async({identity:f,locator:h,session:A,signal:y,assertCurrent:m,waitForCurrent:E})=>{l!==h.subjectId&&Ge("OPERATE_BINDING_MISMATCH");const b={sessionId:A.sessionId,actionId:l};u&&(b.framing=structuredClone(u));const w=await Fh(a,t,"/api/operate/planning/preview",f,b,y,A.capability,{assertCurrent:m,waitForCurrent:E});m();const x=Vh(()=>mH(w,s(f,h)));return c.retainPreviewProof(Nb(f,h,String(x.proposal.proposalId),String(Vt(x.proposal.preview).digest))),x},{uncertainOnFailure:!0})},async createSpec(l,u){return(!/^oprop_[a-f0-9]{32}$/u.test(l)||!qu.test(u))&&Ge(),await c.run(async({identity:f,locator:h,session:A,signal:y,assertCurrent:m,waitForCurrent:E})=>{const b=Nb(f,h,l,u);c.requirePreviewProof(j=>AH(j,b));const w=await Fh(a,t,"/api/operate/planning/create-spec",f,{sessionId:A.sessionId,proposalId:l,confirmDigest:u},y,A.capability,{assertCurrent:m,waitForCurrent:E});m();const x=Vh(()=>HQ(w,{identity:f,locator:h,proposalId:l,confirmDigest:u}));return c.clearPreviewProof(),x},{uncertainOnFailure:!0})},async trace(l){return/^SPEC-\d{3}$/u.test(l)||Ge(),await c.run(async({identity:u,signal:f,assertCurrent:h,waitForCurrent:A})=>{const y=await YQ(a,t,`/api/operate/planning/trace/${encodeURIComponent(l)}`,u,f,{assertCurrent:h,waitForCurrent:A});return h(),zQ(y,u,l)})},reconcile:c.reconcile,cancel:c.cancel,dispose:c.dispose})}function BH(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 vH(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 Rb(e){return e instanceof DOMException&&e.name==="AbortError"}function St(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function Kd(e){return Array.isArray(e)?e:[]}function Le(e,t=""){return typeof e=="string"?e:t}function on({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function bH(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 wH(e){return Pa({kind:"planning.detail",subjectId:e})}function $Q(e){return Pa({kind:"operate.action",subjectId:e})}function xH({creation:e,actionId:t,actionTitle:a}){const s=St(e.receipt),c=Le(s.specId),l=c?wH(c):null;return r.jsxs("section",{className:"op-planning-handoff__created","aria-label":"Created SPEC draft and delivery trace",children:[r.jsxs("header",{className:"op-planning-handoff__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Planning handoff · SPEC created"}),r.jsxs("h1",{children:[c||"SPEC"," ·"," ",Le(s.title)||Le(s.slug)||a||"Created draft"]}),r.jsxs("p",{children:[c?`${c} is durable with status shaping.`:"The shaping draft and origin receipt are durable."," ","No story, task, PLAN, SHIP, commit, or target effect was started."]})]}),r.jsxs("div",{className:"op-planning-handoff__actions",children:[r.jsx("a",{className:"op-cycle-link",href:$Q(t),children:"Return to source Action"}),l?r.jsx("a",{className:"op-cycle-link op-cycle-link--primary",href:l,children:"Open in Planning"}):null]})]}),r.jsx(RQ,{progress:e.progress}),r.jsxs("div",{className:"op-planning-handoff__grid",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Draft details",children:[r.jsx("p",{className:"op-eyebrow",children:"Draft details"}),r.jsx("h2",{children:c||"Created SPEC"}),r.jsx("p",{children:"Status shaping"}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Content digest",value:Le(s.contentHash)}),r.jsx(on,{label:"Origin digest",value:Le(s.originHash)}),r.jsx(on,{label:"Receipt digest",value:Le(s.receiptHash)}),r.jsx(on,{label:"Proposal",value:Le(s.proposalId)}),r.jsx(on,{label:"Correlation",value:Le(s.correlationId)}),r.jsx(on,{label:"Planning provenance",value:Le(s.provenanceEventId)})]})]})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Next human gates",children:[r.jsx("p",{className:"op-eyebrow",children:"Next human gates"}),r.jsx("h2",{children:"Planning owns the next commands"}),r.jsx("p",{children:"These commands are returned by OpenPlanr; this screen does not construct or run them."}),e.nextCommands.length>0?r.jsx("pre",{className:"op-planning-handoff__commands",children:r.jsx("code",{children:e.nextCommands.join(`
|
|
535
|
+
`)})}):r.jsx(be,{state:"unavailable",eyebrow:"Next commands",title:"Next commands unavailable",description:"No planning command is inferred from the SPEC ID."})]})]})]})}function jH({currentBinding:e,current:t,actions:a,onRefetch:s}){var ye,Ee;const c=B.useMemo(()=>Ob(t,e),[t,e]),[l,u]=B.useState(null),[f,h]=B.useState(null),[A,y]=B.useState(null),[m,E]=B.useState(null),[b,w]=B.useState(!1),[x,j]=B.useState(null),[I,C]=B.useState(!1),O=B.useRef(null),S=B.useRef(null),_=B.useRef(""),k=B.useRef(""),N=c?BH(c):"",z=c?vH(c):"",M=l?St(l.proposal):null,L=l?St(l.specPreview):null,Z=M?zc(M.framing):null,F=A??Z,oe=M&&L&&(c==null?void 0:c.binding.eventHead)&&F&&Z&&uH(F,Z)&&DQ(M,L,{actorId:c.binding.actorId,scopeId:c.binding.scopeId,domainId:c.binding.domainId,domainVersion:c.binding.domainVersion,action:{actionId:c.action.actionId,revision:c.action.revision,actionHash:c.action.actionHash},eventHead:c.binding.eventHead}),re=B.useCallback(()=>{var J,ne;if(a)return a;if(!c||typeof window>"u"||c.binding.cycleId===null||c.binding.eventHead===null||c.binding.viewHash===null)return null;if(O.current&&S.current===N)return O.current;(J=O.current)==null||J.cancel(),(ne=O.current)==null||ne.dispose(),O.current=null,S.current=null;const R=EH({origin:window.location.origin});return R.bind(c.binding,{subjectId:c.action.actionId,actionDigest:c.action.actionHash,revision:c.action.revision}),O.current=R,S.current=N,R},[a,N,c]),pe=c?bH(c.presentation,c.reasonCodes):null,Y=f&&TQ(St(f.receipt),St(f.origin),St(f.progress)),V=B.useCallback(async R=>{if(!c)return;const J=N;E(null),u(null),w(!1);const ne=re();if(ne)try{const Ae=await ne.preview(c.action.actionId,R);if(_.current!==J)return;u(Ae),y(zc(St(Ae.proposal).framing))}catch(Ae){if(Rb(Ae)||_.current!==J)return;const we=Ae&&typeof Ae=="object"&&"name"in Ae?String(Ae.name):"OPERATE_COMMAND_REFUSED";we==="OPERATION_UNCERTAIN"&&j(z),E({tone:we==="OPERATION_UNCERTAIN"?"attention":"refusal",text:we==="E_OPERATE_PLANNING_EXPIRED"?"Planning preview expired. Refresh the canonical preview before confirming creation.":we==="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."})}},[N,c,z,re]),te=B.useCallback(async()=>{if(!M||!(c!=null&&c.binding.eventHead))return;const R=N,J=Le(St(M.preview).digest),ne=Le(M.proposalId);if(!J||!ne)return;const Ae=re();if(Ae)try{const we=await Ae.createSpec(ne,J);if(_.current!==R)return;h(we),w(!1),E({tone:"verified",text:`${Le(St(we.receipt).specId)||"SPEC"} is durable with status shaping.`})}catch(we){if(Rb(we)||_.current!==R)return;const xe=we&&typeof we=="object"&&"name"in we?String(we.name):"OPERATE_COMMAND_REFUSED";w(!1),xe==="OPERATION_UNCERTAIN"&&j(z),E({tone:xe==="OPERATION_UNCERTAIN"?"attention":"refusal",text:xe==="E_OPERATE_PLANNING_EXPIRED"?"Planning preview expired. Refresh the canonical preview before confirming creation.":xe==="OPERATION_UNCERTAIN"?"The command outcome is uncertain. Reconcile exact current state; do not retry.":"The governed Planning creation was refused without effect."})}},[N,c,M,z,re]);B.useEffect(()=>()=>{var R,J;(R=O.current)==null||R.cancel(),(J=O.current)==null||J.dispose(),O.current=null,S.current=null},[]),B.useLayoutEffect(()=>{var R,J;_.current=N,k.current!==N&&(k.current=N,x!==z&&((R=O.current)==null||R.cancel(),(J=O.current)==null||J.dispose(),O.current=null,S.current=null),u(null),h(null),y(null),w(!1),E(null),C(!1))},[N,z,x]),B.useLayoutEffect(()=>{var R,J;a&&((R=O.current)==null||R.cancel(),(J=O.current)==null||J.dispose(),O.current=null,S.current=null)},[a]);const le=B.useCallback(async()=>{if(!(!s||x!==z)){C(!0);try{const R=await s(),J=R.binding?Ob(R,R.binding):null,ne=a??O.current;if(!J||!ne)throw new Error("Exact reconciliation failed.");ne.reconcile(J.binding),j(null),u(null),y(null),w(!1),E({tone:"verified",text:"Exact current state was reconciled. Request a new canonical preview before any creation."})}catch{E({tone:"attention",text:"Planning remains locked: exact current state did not reconcile. Do not retry creation."})}finally{C(!1)}}},[a,s,z,x]);if(!c)return r.jsx("div",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning",children:r.jsx(be,{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(((ye=c.action.deliveryRoute)==null?void 0:ye.route)!=="planning-work")return r.jsx("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","aria-label":"Planning handoff unavailable",children:r.jsx(be,{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(Y&&f)return r.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:r.jsx(xH,{creation:f,actionId:c.action.actionId,actionTitle:c.action.title})});const fe=!!(M!=null&&M.proposalId),T=x===z,X=c.mutationEnabled&&!pe&&!T&&!I&&fe&&!Y,se=c.mutationEnabled&&!pe&&!T&&!I&&!!c.action,de=se&&oe&&Le(M==null?void 0:M.state)==="review-required"&&fe;return r.jsxs("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","data-planning-preview":oe?"current":"stale","aria-labelledby":"operate-planning-handoff-title",children:[r.jsxs("header",{className:"op-planning-handoff__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Planning handoff"}),r.jsx("h1",{id:"operate-planning-handoff-title",children:c.action.title}),r.jsx("p",{children:"Review the context, shape the draft, and confirm it before creating a Planning SPEC."})]}),r.jsx("a",{className:"op-cycle-link",href:$Q(c.action.actionId),children:"Return to source Action"})]}),pe?r.jsx(be,{state:c.presentation==="offline"?"offline":"unavailable",eyebrow:"Governed controls",title:"Planning creation is unavailable",description:pe}):null,m?r.jsx("p",{className:"pc-operate__notice",role:"status","data-tone":m.tone,children:m.text}):null,T?r.jsx(be,{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:r.jsx(Mt,{disabled:!s||I,disabledReason:"An exact adapter-owned refetch is required before another preview.",onInvoke:le,children:I?"Reconciling current state…":"Reconcile current state"})}):null,r.jsxs("div",{className:"op-planning-handoff__layout",children:[r.jsxs("div",{className:"op-planning-handoff__stack",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Why this draft",children:[r.jsx("p",{className:"op-eyebrow",children:"Why this draft"}),r.jsx("h2",{children:Le(St(M==null?void 0:M.decision).title)||c.action.title}),r.jsx("p",{children:Le(St(M==null?void 0:M.decision).rationale)||"OpenPlanr has not returned a canonical Planning proposal for this Action."}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Decision",value:Le(St(M==null?void 0:M.decision).decisionId)}),r.jsx(on,{label:"Action",value:Le(St(M==null?void 0:M.action).actionId)||c.action.actionId}),r.jsx(on,{label:"Delivery route",value:(Ee=c.action.deliveryRoute)==null?void 0:Ee.route}),r.jsx(on,{label:"Cycle",value:Le(M==null?void 0:M.cycleId)})]})]})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Team perspectives",children:[r.jsx("p",{className:"op-eyebrow",children:"Team perspectives"}),r.jsx("h2",{children:"What informed this draft"}),r.jsx("p",{children:"Review the perspectives and any disagreement before shaping the draft."}),Kd(M==null?void 0:M.acceptedPerspectiveSummaries).length>0?r.jsx("ul",{className:"op-planning-handoff__perspectives",children:Kd(M==null?void 0:M.acceptedPerspectiveSummaries).map((R,J)=>{const ne=St(R);return r.jsxs("li",{children:[r.jsx("strong",{children:Le(ne.summary,"Summary unavailable")}),r.jsxs("span",{children:[Le(ne.roleKind,"role")," ·"," ",Le(ne.stance,"unknown")]})]},`${Le(ne.roleId)}:${J}`)})}):r.jsx(be,{state:"unavailable",eyebrow:"Perspectives",title:"No canonical proposal yet",description:"Request a preview to load accepted advisor, Challenger, and Chair summaries."})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Supporting evidence",children:[r.jsx("p",{className:"op-eyebrow",children:"Supporting evidence"}),r.jsx("h2",{children:"What the draft is based on"}),Kd(M==null?void 0:M.evidence).length>0?r.jsx("ul",{className:"op-planning-handoff__evidence",children:Kd(M==null?void 0:M.evidence).map((R,J)=>{const ne=St(R);return r.jsxs("li",{children:[r.jsx("strong",{children:Le(ne.summary,"Evidence body omitted by access policy")}),r.jsxs("span",{children:[Le(ne.relation,"relation unavailable")," ·"," ",Le(ne.accessState,"access unavailable")]})]},`${Le(ne.evidenceRefId)}:${J}`)})}):r.jsx("p",{children:"No supporting evidence is available yet."})]})]}),r.jsxs("div",{className:"op-planning-handoff__stack",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Shape the draft",children:[r.jsx("p",{className:"op-eyebrow",children:"Shape the draft"}),r.jsx("h2",{children:"Shape the draft before confirmation"}),r.jsx("p",{children:"Editing refreshes the preview. You can create the draft only after reviewing the updated version."}),r.jsx("form",{className:"op-planning-handoff__form","aria-label":"Draft framing",children:rH.map(([R,J,ne])=>{const Ae=`op-planning-framing-${R}`,we=F&&ne==="list"?F[R].join(`
|
|
536
|
+
`):F?F[R]:"";return r.jsxs("label",{className:"op-planning-handoff__field",htmlFor:Ae,children:[r.jsx("span",{children:J}),ne==="textarea"||ne==="list"?r.jsx("textarea",{id:Ae,name:R,rows:ne==="list"?4:5,disabled:!X,value:we,onChange:xe=>{if(!F)return;const Ze=ne==="list"?xe.target.value.split(/\r?\n/u).map(Ie=>Ie.trim()).filter(Boolean):xe.target.value;y(Object.freeze({...F,[R]:Ze}))}}):r.jsx("input",{id:Ae,name:R,type:"text",disabled:!X,value:we,onChange:xe=>{F&&y(Object.freeze({...F,[R]:xe.target.value}))}})]},R)})}),r.jsx("div",{className:"op-planning-handoff__actions",children:r.jsx(Mt,{disabled:!se,disabledReason:pe??(fe?"Human framing is editable only from a current, online, actor-bound Planning handoff.":"Request the initial canonical proposal before editing human-owned framing."),onInvoke:()=>V(fe&&F?zc(F):void 0),children:fe?"Refresh canonical SPEC preview":"Preview SPEC draft"})})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Draft preview",children:[r.jsx("p",{className:"op-eyebrow",children:"Draft preview"}),r.jsx("h2",{children:Le(L==null?void 0:L.title)||Le(St(M==null?void 0:M.framing).title)||"No canonical SPEC preview yet"}),r.jsx("p",{children:oe?"The canonical SPEC preview is current for these exact human-owned framing fields.":"Request a canonical preview before creating the draft."}),typeof(L==null?void 0:L.content)=="string"?r.jsx("pre",{className:"op-planning-handoff__spec-preview operate-planning-spec-preview",children:r.jsx("code",{children:L.content})}):r.jsx(be,{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."}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Proposal",value:Le(M==null?void 0:M.proposalId)}),r.jsx(on,{label:"Preview digest",value:Le(St(M==null?void 0:M.preview).digest)}),r.jsx(on,{label:"Preview expiry",value:Le(St(M==null?void 0:M.preview).expiresAt)}),r.jsx(on,{label:"SPEC content digest",value:Le(L==null?void 0:L.contentHash)})]}),r.jsx(be,{state:"incompatible",eyebrow:"What happens next",title:"This creates a draft only",description:"It does not start work, create a commit, publish, or deploy."}),r.jsx("div",{className:"op-planning-handoff__actions",children:r.jsx(Mt,{disabled:!de,disabledReason:oe?"Only a current review-required proposal can be confirmed once.":"Refresh the exact canonical preview after every framing change.",onInvoke:()=>w(!0),children:"Create SPEC draft"})})]})]})]}),r.jsx(rt.Root,{open:b,onOpenChange:w,children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-planning-handoff__overlay"}),r.jsxs(rt.Content,{className:"op-planning-handoff__dialog",role:"dialog","aria-modal":"true",children:[r.jsx(rt.Title,{children:"Create one shaping SPEC draft?"}),r.jsx(rt.Description,{children:"This confirms the exact proposal, Event head, human framing, preview digest, and expiry shown in this workspace."}),r.jsx(be,{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."}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Proposal",value:Le(M==null?void 0:M.proposalId)}),r.jsx(on,{label:"Digest",value:Le(St(M==null?void 0:M.preview).digest)}),r.jsx(on,{label:"Expires",value:Le(St(M==null?void 0:M.preview).expiresAt)})]}),r.jsxs("div",{className:"op-planning-handoff__dialog-actions",children:[r.jsx(rt.Cancel,{className:"op-governed-button",type:"button",children:"Cancel"}),r.jsx(Mt,{onInvoke:te,children:"Confirm Create SPEC draft"})]})]})]})})]})}const QH=Object.freeze({DetailPage:VY,ListPage:XY,PlanningHandoffPage:jH,createDetailValidator:Vu,createListValidator:ZA}),IH=Object.freeze(["claimStatus","status","state"]),CH=Object.freeze(["classification","accessState","accessReason","freshness","evidenceKind","confidence","why","epistemicStatus"]);function Un(e){return typeof e=="string"&&e.trim()!==""?e:typeof e=="number"&&Number.isFinite(e)?String(e):typeof e=="boolean"?e?"true":"false":null}function XA(e){const 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 SH(e){return e==="true"?"Yes":e==="false"?"No":XA(e)}function OH(e,t){return Un(Reflect.get(e,"evidenceRefId"))??Un(Reflect.get(e,"outcomeId"))??Un(Reflect.get(e,"claimId"))??Un(Reflect.get(e,"eventId"))??Un(Reflect.get(e,"metricId"))??Un(Reflect.get(e,"learningId"))??t}function _H(e){const t=Un(Reflect.get(e,"deepLink"));return t!=null&&t.startsWith("#/")?t:null}function NH(e){for(const t of IH){const a=Un(Reflect.get(e,t));if(a!==null)return a}return null}function RH(e,t){return`${e==="History"?"History entry":e.endsWith("s")?e.slice(0,-1):e} ${t+1}`}function bu({presentation:e}){return e==="ready"?null:r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This view is ",XA(e).toLocaleLowerCase("en-US"),". It does not make a success claim."]})}function DH({record:e}){const t=CH.flatMap(a=>{const s=Un(Reflect.get(e,a));return s===null?[]:[{key:a,value:s}]});return t.length===0?null:r.jsx("dl",{className:"pc-operate__record-facts",children:t.map(a=>r.jsxs("div",{children:[r.jsx("dt",{children:XA(a.key)}),r.jsx("dd",{children:SH(a.value)})]},a.key))})}function mi({heading:e,records:t}){return t.length===0?r.jsx(be,{state:"unavailable",eyebrow:e,title:`No ${e.toLowerCase()} to review`,description:`There are no ${e.toLocaleLowerCase("en-US")} in this cycle right now.`}):r.jsxs("section",{className:"pc-operate__section","aria-label":e,children:[r.jsx(st,{headingLevel:2,title:e,count:t.length}),r.jsx("ol",{className:"pc-operate__records",children:t.map((a,s)=>{const c=Un(Reflect.get(a,"title"))??Un(Reflect.get(a,"statement"))??Un(Reflect.get(a,"summary"))??Un(Reflect.get(a,"why"))??RH(e,s),l=OH(a,`${e}-${s}`),u=_H(a),f=NH(a);return r.jsxs("li",{className:"pc-operate__record",children:[r.jsxs("div",{className:"pc-operate__record-head",children:[r.jsxs("h3",{className:"pc-operate__record-title",children:[r.jsx("span",{className:"pc-operate__record-index","aria-hidden":"true",children:String(s+1).padStart(2,"0")})," ",u?r.jsx("a",{className:"pc-row-link",href:u,children:c}):c]}),f?r.jsx(fa,{state:f}):null]}),r.jsx(DH,{record:a}),r.jsxs("details",{className:"pc-operate__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:l})]})]},l)})})]})}const TH=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function UQ(e){try{const t=Ve(e),a=t.route==="#/operate/evidence"||t.subjectId!==null&&t.route===`#/operate/evidence/${encodeURIComponent(t.subjectId)}`;return t.productArea==="operate"&&a&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function LQ(e){const t=UQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=La(a),c=s.payload;if(c.surface!=="evidence"||t.eventHead===null||t.viewHash===null||t.cycleId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash||c.viewHash!==t.viewHash)return!1;const l=Fu(t.eventHead);if(l===null)return!1;const u=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:c.generatedAt,eventHead:l,viewHash:t.viewHash});return La(s,u),!0}catch{return!1}}}function kH(e,t){const a=UQ(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!LQ(a)(e.data))return null;const s=TH[e.kind],c=e.data;if(s===void 0||c.payload.surface!=="evidence")return null;const l=c.payload;return l.status!==s||l.readOnly!==!0?null:Object.freeze({kind:"evidence",presentation:s,binding:e.binding,display:c,surface:l,data:l.data,evidence:l.data.evidence,claims:l.data.claims,rationale:l.data.rationale,detailRequested:a.subjectId!==null,subjectId:a.subjectId,readOnly:!0,mutationEnabled:!1})}function MH({currentBinding:e,current:t}){const a=kH(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.evidence",children:r.jsx(be,{state:"incompatible",eyebrow:"Evidence projection",title:"Evidence cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=a.detailRequested?a.evidence.filter(l=>Reflect.get(l,"evidenceRefId")===a.subjectId):a.evidence,c=`${a.surface.eventHead.sequence} · ${a.surface.eventHead.hash??"genesis"}`;return r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":a.detailRequested?"operate.evidence-item":"operate.evidence","data-audit-presentation":a.presentation,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Evidence",children:[r.jsx(Ba,{label:"rows",value:s.length}),a.detailRequested?null:r.jsxs(r.Fragment,{children:[r.jsx(Ba,{label:"claims",value:a.claims.length}),r.jsx(Ba,{label:"rationale",value:a.rationale.length})]})]}),r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · evidence",title:a.detailRequested?"Evidence item":"Evidence",description:"See what supports or challenges the work."}),r.jsx(cs,{items:[{term:"Event record",description:c,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(bu,{presentation:a.presentation}),a.detailRequested&&s.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Exact item",title:"Requested evidence was not returned",description:"The owner-issued Evidence surface does not contain this subject."}):r.jsxs(r.Fragment,{children:[r.jsx(mi,{heading:"Evidence",records:s}),a.detailRequested?null:r.jsxs(r.Fragment,{children:[r.jsx(mi,{heading:"Claims",records:a.claims}),r.jsx(mi,{heading:"Rationale",records:a.rationale})]})]})]})}const GH=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function PQ(e){try{const t=Ve(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 YH(e,t){const a=PQ(e);return s=>{if(!a||!Object.isFrozen(s))return!1;try{const c=La(s),l=c.payload;if(l.surface!==t.surface||a.eventHead===null||a.viewHash===null||a.cycleId===null||l.eventHead.sequence!==a.eventHead.sequence||l.eventHead.hash!==a.eventHead.hash||l.viewHash!==a.viewHash)return!1;const u=Fu(a.eventHead);if(u===null)return!1;const f=Object.freeze({actorId:a.actorId,scopeId:a.scopeId,domainId:a.domainId,domainVersion:a.domainVersion,cycleId:a.cycleId,subjectId:null,surface:t.surface,query:t.query,format:t.format,generatedAt:l.generatedAt,eventHead:u,viewHash:a.viewHash});return La(c,f),!0}catch{return!1}}}function FQ(e){return YH(e,Object.freeze({surface:"history",query:null,format:null}))}function HH(e,t,a){return Pe(e)&&e.binding!==null&&e.data!==null&&Ye(e.binding,t)&&a(e.data)?e.data:null}function zH(e,t){const a=PQ(t);if(!a)return null;const s=HH(e,a,FQ(a)),c=GH[e.kind];if(!s||c===void 0||s.payload.surface!=="history"||s.payload.status!==c||s.payload.readOnly!==!0)return null;const l=s.payload;return Object.freeze({kind:"history",presentation:c,binding:e.binding,display:s,surface:l,data:l.data,history:l.data.history,replay:l.data.replay,readOnly:!0,mutationEnabled:!1})}function $H(e){const t=Reflect.get(e,"tail"),a=Reflect.get(e,"finalHead"),s=Reflect.get(e,"parityProof"),c=[];if(typeof t=="object"&&t!==null){const u=Reflect.get(t,"startSequence"),f=Reflect.get(t,"endSequence"),h=Reflect.get(t,"eventCount");typeof u=="number"&&c.push({key:"Tail start",value:String(u)}),typeof f=="number"&&c.push({key:"Tail end",value:String(f)}),typeof h=="number"&&c.push({key:"Event count",value:String(h)})}if(typeof a=="object"&&a!==null){const u=Reflect.get(a,"sequence"),f=Reflect.get(a,"hash");typeof u=="number"&&c.push({key:"Final head",value:String(u)}),typeof f=="string"&&c.push({key:"Final hash",value:f})}if(typeof s=="object"&&s!==null)for(const u of["checkpointVerified","finalEventHashMatches","stateParityVerified"]){const f=Reflect.get(s,u);typeof f=="boolean"&&c.push({key:u,value:f?"true":"false"})}const l=Reflect.get(e,"liveAccessUsed");return typeof l=="boolean"&&c.push({key:"Live access used",value:l?"true":"false"}),Object.freeze(c)}function UH({currentBinding:e,current:t}){const a=zH(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.history",children:r.jsx(be,{state:"incompatible",eyebrow:"History projection",title:"History cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=$H(a.replay),c=`${a.surface.eventHead.sequence} · ${a.surface.eventHead.hash??"genesis"}`;return r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.history","data-audit-presentation":a.presentation,children:[r.jsx("ul",{className:"pc-metrics","aria-label":"History",children:r.jsx(Ba,{label:"events",value:a.history.length})}),r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · history",title:"History",description:"See what changed, why it changed, and what happens next."}),r.jsx(cs,{items:[{term:"Event record",description:c,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(bu,{presentation:a.presentation}),r.jsx(mi,{heading:"History",records:a.history}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Replay proof",children:[r.jsx(st,{headingLevel:2,title:"Replay proof",count:s.length}),s.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Replay",title:"No replay proof returned",description:"OpenPlanr returned no checkpoint, tail, head, or parity fields for this Cycle."}):r.jsx(cs,{items:s.map(l=>({term:l.key,description:l.value,mono:!0}))})]})]})}const LH=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function VQ(e){try{const t=Ve(e);let a=null;return t.route==="#/operate/outcomes"&&t.subjectId===null?a="outcomes":t.subjectId!==null&&t.route===`#/operate/outcomes/${encodeURIComponent(t.subjectId)}`&&(a="outcome"),t.productArea==="operate"&&a!==null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?Object.freeze({binding:t,surface:a}):null}catch{return null}}function qQ(e){const t=VQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=La(a),c=s.payload,{binding:l,surface:u}=t;if(c.surface!==u||l.eventHead===null||l.viewHash===null||l.cycleId===null||c.eventHead.sequence!==l.eventHead.sequence||c.eventHead.hash!==l.eventHead.hash||c.viewHash!==l.viewHash)return!1;const f=Fu(l.eventHead);if(f===null)return!1;const h=Object.freeze({actorId:l.actorId,scopeId:l.scopeId,domainId:l.domainId,domainVersion:l.domainVersion,cycleId:l.cycleId,subjectId:u==="outcome"?l.subjectId:null,surface:u,query:null,format:null,generatedAt:c.generatedAt,eventHead:f,viewHash:l.viewHash});return La(s,h),!0}catch{return!1}}}function PH(e,t){const a=VQ(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a.binding)||!qQ(a.binding)(e.data))return null;const s=LH[e.kind],c=e.data;if(s===void 0||c.payload.surface!==a.surface||c.payload.status!==s||c.payload.readOnly!==!0)return null;if(c.payload.surface==="outcome"){if(a.binding.subjectId===null)return null;const u=c.payload;return Object.freeze({kind:"outcome",presentation:s,binding:e.binding,display:c,surface:u,data:u.data,outcome:u.data.outcome,learnings:u.data.learnings,subjectId:a.binding.subjectId,readOnly:!0,mutationEnabled:!1})}const l=c.payload;return Object.freeze({kind:"outcomes",presentation:s,binding:e.binding,display:c,surface:l,data:l.data,domainMetrics:l.data.domainMetrics,outcomes:l.data.outcomes,learnings:l.data.learnings,readOnly:!0,mutationEnabled:!1})}function FH({currentBinding:e,current:t}){const a=PH(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcomes",children:r.jsx(be,{state:"incompatible",eyebrow:"Outcomes projection",title:"Outcomes cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=`${a.surface.eventHead.sequence} · ${a.surface.eventHead.hash??"genesis"}`;return a.kind==="outcome"?r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcome","data-audit-presentation":a.presentation,children:[r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · outcome",title:"Outcome",description:"Track what changed and what still needs proof."}),r.jsx(cs,{items:[{term:"Outcome ID",description:a.subjectId??"Not returned",mono:!0},{term:"Event record",description:s,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(bu,{presentation:a.presentation}),r.jsx(mi,{heading:"Outcome",records:[a.outcome]}),r.jsx(mi,{heading:"Learnings",records:a.learnings})]}):r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcomes","data-audit-presentation":a.presentation,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Outcomes",children:[r.jsx(Ba,{label:"domain metrics",value:a.domainMetrics.length}),r.jsx(Ba,{label:"outcomes",value:a.outcomes.length}),r.jsx(Ba,{label:"learnings",value:a.learnings.length})]}),r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · outcomes",title:"Outcomes",description:"Track results, measurements, and what the team learned."}),r.jsx(cs,{items:[{term:"Event record",description:s,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(bu,{presentation:a.presentation}),r.jsx(mi,{heading:"Domain metrics",records:a.domainMetrics}),r.jsx(mi,{heading:"Outcomes",records:a.outcomes}),r.jsx(mi,{heading:"Learnings",records:a.learnings})]})}const VH=Object.freeze({EvidencePage:MH,HistoryPage:UH,OutcomesPage:FH}),Jd=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,Ku=/^sha256:[a-f0-9]{64}$/u,qH=/^[A-Z][A-Z0-9_]{0,127}$/u,KH=/^xpatch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,JH=new Set(["/status","/attention","/domainMetrics","/cycles","/inbox","/actions","/evidence","/claims","/rationale","/outcomes","/learnings","/history","/replay","/allowedActions","/omissions","/export"]),KQ=new WeakMap;function ZH(e,t){const a=ht(e,["sequence","hash"],t);if(!Number.isSafeInteger(a.sequence)||a.sequence<0)throw new ee(`${t}.sequence`,"expected a non-negative safe integer");const s=a.sequence,c=a.hash===null?null:Fe(a.hash,`${t}.hash`,Ku);if(s===0!=(c===null))throw new ee(t,"sequence and hash are inconsistent");return Object.freeze({sequence:s,hash:c})}function wu(e,t){const a=ht(e,["eventHead","viewHash"],t);return Object.freeze({eventHead:ZH(a.eventHead,`${t}.eventHead`),viewHash:Fe(a.viewHash,`${t}.viewHash`,Ku)})}function XH(e){const t=ht(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],"$.binding");if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new ee("$.binding.generation","expected a non-negative safe integer");return Object.freeze({actorId:Fe(t.actorId,"$.binding.actorId",Jd),projectId:Fe(t.projectId,"$.binding.projectId",Ku),scopeId:Fe(t.scopeId,"$.binding.scopeId",Jd),domainId:Fe(t.domainId,"$.binding.domainId",Jd),domainVersion:Fe(t.domainVersion,"$.binding.domainVersion",Jd),generation:t.generation})}function JQ(e,t){if(!Array.isArray(e))throw new ee(t,"expected an array");return Object.freeze(e.map((a,s)=>Fe(a,`${t}[${s}]`,qH)))}function ZQ(e,t="$.payload"){const a=ht(e,["mutationEnabled","reasonCodes"],t),s=Uc(a.mutationEnabled,`${t}.mutationEnabled`),c=JQ(a.reasonCodes,`${t}.reasonCodes`);if(s&&c.length!==0||!s&&c.length===0)throw new ee(t,"ready mutation and reason state are inconsistent");return Object.freeze({mutationEnabled:s,reasonCodes:c})}function WH(e){if(typeof e!="string"||e.length<1||e.length>240||[...e].some(t=>(t.codePointAt(0)??0)<=31))throw new ee("$.payload.recovery","contains invalid recovery text");return e}function ez(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function ro(e,t){return ez(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function XQ(e){return(e==null?void 0:e.route)==="#/operate/inbox"||e!=null&&e.route.startsWith("#/operate/inbox/")?"inbox":"today"}function tz(e,t){const a=ht(e,["patchId","patchHash","from","to","changedPaths"],"$.payload"),s=wu(a.from,"$.payload.from"),c=wu(a.to,"$.payload.to");if(!ro(c,t))throw new ee("$.payload","patch target does not equal envelope cursor");if(!Array.isArray(a.changedPaths))throw new ee("$.payload.changedPaths","expected an array");const l=a.changedPaths.map((f,h)=>{if(typeof f!="string"||!JH.has(f))throw new ee(`$.payload.changedPaths[${h}]`,"contains an unsupported path");return f});if(new Set(l).size!==l.length)throw new ee("$.payload.changedPaths","contains duplicate paths");const u={patchId:Fe(a.patchId,"$.payload.patchId",KH),patchHash:Fe(a.patchHash,"$.payload.patchHash",Ku),from:s,to:c,changedPaths:Object.freeze(l)};return KQ.set(u,JSON.stringify(e)),Object.freeze(u)}function WQ(e,t=null){var u;const a=ht(Gw(e),["kind","schemaVersion","event","binding","cursor","payload"],"$");if(a.kind!=="dashboard-live-event"||a.schemaVersion!=="1.0.0")throw new ee("$","has an unsupported live event contract");const s=XH(a.binding),c=wu(a.cursor,"$.cursor"),l={kind:"dashboard-live-event",schemaVersion:"1.0.0",binding:s,cursor:c};if(a.event==="snapshot"){const f=Cn(a.payload),h=f.payload,A=XQ(t),y=h.surface==="today"?((u=h.data.activeCycle)==null?void 0:u.cycleId)??null:null;if(h.surface!==A||h.eventHead.sequence!==c.eventHead.sequence||h.eventHead.hash!==c.eventHead.hash||A==="today"&&t!==null&&t.cycleId!==null&&y!==t.cycleId)throw new ee("$.payload","snapshot binding or cursor is inconsistent");const m=Object.freeze({actorId:s.actorId,scopeId:s.scopeId,domainId:s.domainId,domainVersion:s.domainVersion,generatedAt:h.generatedAt,eventHead:h.eventHead,viewHash:c.viewHash,surface:A,subjectId:null,cycleId:(t==null?void 0:t.cycleId)??y,...A==="inbox"?{projectId:s.projectId,generation:s.generation}:{}});try{Cn(f,m)}catch{throw new ee("$.payload","snapshot binding or cursor is inconsistent")}return Object.freeze({...l,event:"snapshot",payload:f})}if(a.event==="patch"){const f=tz(a.payload,c);return Object.freeze({...l,event:"patch",payload:f})}if(a.event==="ready")return Object.freeze({...l,event:"ready",payload:ZQ(a.payload)});if(a.event==="stale"){const f=ht(a.payload,["mutationEnabled","reasonCodes","recovery"],"$.payload");if(f.mutationEnabled!==!1)throw new ee("$.payload.mutationEnabled","stale events disable mutation");const h=JQ(f.reasonCodes,"$.payload.reasonCodes");if(h.length===0)throw new ee("$.payload.reasonCodes","stale events require a reason");return Object.freeze({...l,event:"stale",payload:Object.freeze({mutationEnabled:!1,reasonCodes:h,recovery:WH(f.recovery)})})}throw new ee("$.event","contains an unsupported event")}function eI(e){const t=e.identity;let a=t.eventHead&&t.viewHash?Object.freeze({eventHead:t.eventHead,viewHash:t.viewHash}):null,s=!1,c=!1,l=!1,u=null,f=null;const h=new Map,A=E=>(c||(c=!0,e.onRefetch(E)),Object.freeze({kind:"refetch",reason:E})),y=E=>E.actorId===t.actorId&&E.projectId===t.projectId&&E.scopeId===t.scopeId&&E.domainId===t.domainId&&E.domainVersion===t.domainVersion,m=E=>{var j,I;if(s||!e.isCurrent(t))return Object.freeze({kind:"rejected",reason:"inactive"});if(E.binding.generation!==t.generation)return Object.freeze({kind:"rejected",reason:"foreign-generation"});if(!y(E.binding))return Object.freeze({kind:"rejected",reason:"foreign-binding"});if(E.event==="snapshot"){if(a){if(E.cursor.eventHead.sequence<a.eventHead.sequence)return A("restart-regression");if(E.cursor.eventHead.sequence>a.eventHead.sequence&&!(E.payload.payload.surface==="inbox"&&E.cursor.eventHead.sequence===a.eventHead.sequence+1))return A("gap");if(E.cursor.eventHead.sequence===a.eventHead.sequence&&!ro(E.cursor,a))return A("divergent-duplicate")}return l&&a&&ro(E.cursor,a)?u===JSON.stringify(E.payload)?Object.freeze({kind:"duplicate"}):A("divergent-duplicate"):(a=E.cursor,l=!0,u=JSON.stringify(E.payload),f=JSON.stringify({mutationEnabled:E.payload.payload.mutationEnabled,reasonCodes:E.payload.payload.reasonCodes}),c=!1,h.clear(),e.onSnapshot(E.payload,E.cursor),Object.freeze({kind:"accepted",event:"snapshot"}))}if(!a)return A("cursor-mismatch");if(E.event==="ready")return ro(E.cursor,a)?f===null||f!==JSON.stringify(E.payload)?A("state-mismatch"):((j=e.onReady)==null||j.call(e,E.payload),Object.freeze({kind:"accepted",event:"ready"})):A("cursor-mismatch");if(E.event==="stale")return(I=e.onStale)==null||I.call(e,E.payload),A("stale");const b=E.payload,w=`${b.to.eventHead.sequence}:${b.to.eventHead.hash}:${b.to.viewHash}`,x=KQ.get(b)??JSON.stringify(b);return ro(b.to,a)?h.get(w)===x?Object.freeze({kind:"duplicate"}):A("divergent-duplicate"):b.to.eventHead.sequence<=a.eventHead.sequence?A("reordered"):b.to.eventHead.sequence!==a.eventHead.sequence+1?A("gap"):ro(b.from,a)?(h.set(w,x),a=b.to,f=null,e.onPatch(b),Object.freeze({kind:"accepted",event:"patch"})):A("reordered")};return Object.freeze({ingest:m,ingestJson:E=>{try{return m(WQ(E,t))}catch{return A("invalid-event")}},getCursor:()=>a,markReconciled:(E,b)=>s?!1:(a=wu(E,"$.cursor"),f=JSON.stringify(ZQ(b,"$.state")),c=!1,l=!1,u=null,h.clear(),!0),dispose:()=>{s=!0}})}function tI(e){var f,h;const 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 ee("$.origin","expected an exact loopback HTTP origin");const a=new AbortController,s=()=>a.abort();(f=e.signal)!=null&&f.aborted?a.abort(e.signal.reason):(h=e.signal)==null||h.addEventListener("abort",s,{once:!0});const c=new URL("/api/operate/events",t);c.searchParams.set("scopeId",e.identity.scopeId),c.searchParams.set("domainId",e.identity.domainId),c.searchParams.set("domainVersion",e.identity.domainVersion),c.searchParams.set("generation",String(e.identity.generation)),XQ(e.identity)==="inbox"&&(c.searchParams.set("projectId",e.identity.projectId),c.searchParams.set("surface","inbox"));const l={accept:"text/event-stream","x-openplanr-actor":e.identity.actorId};e.lastEventId&&(l["last-event-id"]=e.lastEventId);const u=(async()=>{var b,w;const A=await(e.fetcher??fetch)(c,{headers:l,signal:a.signal});if(!A.ok||!((b=A.headers.get("content-type"))!=null&&b.startsWith("text/event-stream"))||!A.body)throw new ee("$","live stream response is unavailable");const y=A.body.getReader(),m=new TextDecoder;let E="";try{for(;!a.signal.aborted;){const x=await y.read();if(E+=m.decode(x.value,{stream:!x.done}),E=E.replaceAll(`\r
|
|
537
|
+
`,`
|
|
538
|
+
`).replace(/\r(?!$)/gu,`
|
|
539
|
+
`),x.done&&E.endsWith("\r")&&(E=`${E.slice(0,-1)}
|
|
540
|
+
`),E.length>256*1024)throw new ee("$","live frame exceeds limit");let j=E.indexOf(`
|
|
541
|
+
|
|
542
|
+
`);for(;j>=0;){const I=E.slice(0,j);E=E.slice(j+2);const C=I.split(`
|
|
543
|
+
`),O=(w=C.find(_=>_.startsWith("event:")))==null?void 0:w.slice(6).trim(),S=C.filter(_=>_.startsWith("data:")).map(_=>_.slice(5).trimStart()).join(`
|
|
544
|
+
`);if(S){const _=WQ(S,e.identity);if(O&&O!==_.event)throw new ee("$.event","SSE name and envelope event differ");e.reconciler.ingest(_)}j=E.indexOf(`
|
|
545
|
+
|
|
546
|
+
`)}if(x.done){if(E.trim().length>0)throw new ee("$","live stream ended with a partial frame");break}}}finally{y.releaseLock()}})().catch(A=>{if(!a.signal.aborted)throw A instanceof ee?A:new ee("$","live stream failed safely")}).finally(()=>{var A;return(A=e.signal)==null?void 0:A.removeEventListener("abort",s)});return Object.freeze({completion:u,close:()=>{var A;a.abort(),e.reconciler.dispose(),(A=e.signal)==null||A.removeEventListener("abort",s)}})}var Ju=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(){}},Jr,ir,go,ww,nz=(ww=class extends Ju{constructor(){super();Me(this,Jr);Me(this,ir);Me(this,go);Qe(this,go,t=>{if(typeof window<"u"&&window.addEventListener){const a=()=>t();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){K(this,ir)||this.setEventListener(K(this,go))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,ir))==null||t.call(this),Qe(this,ir,void 0))}setEventListener(t){var a;Qe(this,go,t),(a=K(this,ir))==null||a.call(this),Qe(this,ir,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){K(this,Jr)!==t&&(Qe(this,Jr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){var t;return typeof K(this,Jr)=="boolean"?K(this,Jr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jr=new WeakMap,ir=new WeakMap,go=new WeakMap,ww),nI=new nz,az={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rr,nA,xw,iz=(xw=class{constructor(){Me(this,rr,az);Me(this,nA,!1)}setTimeoutProvider(e){Qe(this,rr,e)}setTimeout(e,t){return K(this,rr).setTimeout(e,t)}clearTimeout(e){K(this,rr).clearTimeout(e)}setInterval(e,t){return K(this,rr).setInterval(e,t)}clearInterval(e){K(this,rr).clearInterval(e)}},rr=new WeakMap,nA=new WeakMap,xw),Gg=new iz;function rz(e){setTimeout(e,0)}var sz=typeof window>"u"||"Deno"in globalThis;function ma(){}function oz(e,t){return typeof e=="function"?e(t):e}function cz(e){return typeof e=="number"&&e>=0&&e!==1/0}function lz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yg(e,t){return typeof e=="function"?e(t):e}function dz(e,t){return typeof e=="function"?e(t):e}function Db(e,t){const{type:a="all",exact:s,fetchStatus:c,predicate:l,queryKey:u,stale:f}=e;if(u){if(s){if(t.queryHash!==WA(u,t.options))return!1}else if(!xo(t.queryKey,u))return!1}if(a!=="all"){const h=t.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||c&&c!==t.state.fetchStatus||l&&!l(t))}function Tb(e,t){const{exact:a,status:s,predicate:c,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(a){if(el(t.options.mutationKey)!==el(l))return!1}else if(!xo(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||c&&!c(t))}function WA(e,t){return((t==null?void 0:t.queryKeyHashFn)||el)(e)}function el(e){return JSON.stringify(e,(t,a)=>Hg(a)?Object.keys(a).sort().reduce((s,c)=>(s[c]=a[c],s),{}):a)}function xo(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)){for(let s=0;s<t.length;s++)if(!xo(e[s],t[s]))return!1;return!0}const a=Object.keys(t);for(const s of a)if(!xo(e[s],t[s]))return!1;return!0}return!1}var uz=Object.prototype.hasOwnProperty;function aI(e,t,a=0){if(e===t)return e;if(a>500)return t;const s=kb(e)&&kb(t);if(!s&&!(Hg(e)&&Hg(t)))return t;const l=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),f=u.length,h=s?new Array(f):{};let A=0;for(let y=0;y<f;y++){const m=s?y:u[y],E=e[m],b=t[m];if(E===b){h[m]=E,(s?y<l:uz.call(e,m))&&A++;continue}if(E===null||b===null||typeof E!="object"||typeof b!="object"){h[m]=b;continue}const w=aI(E,b,a+1);h[m]=w,w===E&&A++}return l===f&&A===l?e:h}function kb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hg(e){if(!Mb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(!Mb(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Mb(e){return Object.prototype.toString.call(e)==="[object Object]"}function fz(e){return new Promise(t=>{Gg.setTimeout(t,e)})}function pz(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?aI(e,t):t}function hz(e,t,a=0){const s=[...e,t];return a&&s.length>a?s.slice(1):s}function gz(e,t,a=0){const s=[t,...e];return a&&s.length>a?s.slice(0,-1):s}var em=Symbol();function iI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===em?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Az(e,t,a){let s=!1,c;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(c??(c=t()),s||(s=!0,c.aborted?a():c.addEventListener("abort",a,{once:!0})),c)}),e}var rI=(()=>{let e=()=>sz;return{isServer(){return e()},setIsServer(t){e=t}}})();function mz(){let e,t;const a=new Promise((c,l)=>{e=c,t=l});a.status="pending",a.catch(()=>{});function s(c){Object.assign(a,c),delete a.resolve,delete a.reject}return a.resolve=c=>{s({status:"fulfilled",value:c}),e(c)},a.reject=c=>{s({status:"rejected",reason:c}),t(c)},a}var yz=rz;function Ez(){let e=[],t=0,a=f=>{f()},s=f=>{f()},c=yz;const l=f=>{t?e.push(f):c(()=>{a(f)})},u=()=>{const f=e;e=[],f.length&&c(()=>{s(()=>{f.forEach(h=>{a(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{l(()=>{f(...h)})},schedule:l,setNotifyFunction:f=>{a=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{c=f}}}var fn=Ez(),Ao,sr,mo,jw,Bz=(jw=class extends Ju{constructor(){super();Me(this,Ao,!0);Me(this,sr);Me(this,mo);Qe(this,mo,t=>{if(typeof window<"u"&&window.addEventListener){const a=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}})}onSubscribe(){K(this,sr)||this.setEventListener(K(this,mo))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,sr))==null||t.call(this),Qe(this,sr,void 0))}setEventListener(t){var a;Qe(this,mo,t),(a=K(this,sr))==null||a.call(this),Qe(this,sr,t(this.setOnline.bind(this)))}setOnline(t){K(this,Ao)!==t&&(Qe(this,Ao,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return K(this,Ao)}},Ao=new WeakMap,sr=new WeakMap,mo=new WeakMap,jw),xu=new Bz;function vz(e){return Math.min(1e3*2**e,3e4)}function sI(e){return(e??"online")==="online"?xu.isOnline():!0}var zg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function oI(e){let t=!1,a=0,s;const c=mz(),l=()=>c.status!=="pending",u=x=>{var j;if(!l()){const I=new zg(x);E(I),(j=e.onCancel)==null||j.call(e,I)}},f=()=>{t=!0},h=()=>{t=!1},A=()=>nI.isFocused()&&(e.networkMode==="always"||xu.isOnline())&&e.canRun(),y=()=>sI(e.networkMode)&&e.canRun(),m=x=>{l()||(s==null||s(),c.resolve(x))},E=x=>{l()||(s==null||s(),c.reject(x))},b=()=>new Promise(x=>{var j;s=I=>{(l()||A())&&x(I)},(j=e.onPause)==null||j.call(e)}).then(()=>{var x;s=void 0,l()||(x=e.onContinue)==null||x.call(e)}),w=()=>{if(l())return;let x;const j=a===0?e.initialPromise:void 0;try{x=j??e.fn()}catch(I){x=Promise.reject(I)}Promise.resolve(x).then(m).catch(I=>{var k;if(l())return;const C=e.retry??(rI.isServer()?0:3),O=e.retryDelay??vz,S=typeof O=="function"?O(a,I):O,_=C===!0||typeof C=="number"&&a<C||typeof C=="function"&&C(a,I);if(t||!_){E(I);return}a++,(k=e.onFail)==null||k.call(e,a,I),fz(S).then(()=>A()?void 0:b()).then(()=>{t?E(I):w()})})};return{promise:c,status:()=>c.status,cancel:u,continue:()=>(s==null||s(),c),cancelRetry:f,continueRetry:h,canStart:y,start:()=>(y()?w():b().then(w),c)}}var Zr,Qw,cI=(Qw=class{constructor(){Me(this,Zr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cz(this.gcTime)&&Qe(this,Zr,Gg.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rI.isServer()?1/0:300*1e3))}clearGcTimeout(){K(this,Zr)!==void 0&&(Gg.clearTimeout(K(this,Zr)),Qe(this,Zr,void 0))}},Zr=new WeakMap,Qw);function bz(e){return{onFetch:(t,a)=>{var y,m,E,b,w;const s=t.options,c=(E=(m=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:m.fetchMore)==null?void 0:E.direction,l=((b=t.state.data)==null?void 0:b.pages)||[],u=((w=t.state.data)==null?void 0:w.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const A=async()=>{let x=!1;const j=O=>{Az(O,()=>t.signal,()=>x=!0)},I=iI(t.options,t.fetchOptions),C=async(O,S,_)=>{if(x)return Promise.reject(t.signal.reason);if(S==null&&O.pages.length)return Promise.resolve(O);const N=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return j(Z),Z})(),z=await I(N),{maxPages:M}=t.options,L=_?gz:hz;return{pages:L(O.pages,z,M),pageParams:L(O.pageParams,S,M)}};if(c&&l.length){const O=c==="backward",S=O?wz:Gb,_={pages:l,pageParams:u},k=S(s,_);f=await C(_,k,O)}else{const O=e??l.length;do{const S=h===0?u[0]??s.initialPageParam:Gb(s,f);if(h>0&&S==null)break;f=await C(f,S),h++}while(h<O)}return f};t.options.persister?t.fetchFn=()=>{var x,j;return(j=(x=t.options).persister)==null?void 0:j.call(x,A,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a)}:t.fetchFn=A}}}function Gb(e,{pages:t,pageParams:a}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,a[s],a):void 0}function wz(e,{pages:t,pageParams:a}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,a[0],a):void 0}var yo,Xr,Eo,oa,Wr,zt,sl,es,$n,lI,fi,Iw,xz=(Iw=class extends cI{constructor(t){super();Me(this,$n);Me(this,yo);Me(this,Xr);Me(this,Eo);Me(this,oa);Me(this,Wr);Me(this,zt);Me(this,sl);Me(this,es);Qe(this,es,!1),Qe(this,sl,t.defaultOptions),this.setOptions(t.options),this.observers=[],Qe(this,Wr,t.client),Qe(this,oa,K(this,Wr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Qe(this,Xr,Hb(this.options)),this.state=t.state??K(this,Xr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return K(this,yo)}get promise(){var t;return(t=K(this,zt))==null?void 0:t.promise}setOptions(t){if(this.options={...K(this,sl),...t},t!=null&&t._type&&Qe(this,yo,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Hb(this.options);a.data!==void 0&&(this.setState(Yb(a.data,a.dataUpdatedAt)),Qe(this,Xr,a))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&K(this,oa).remove(this)}setData(t,a){const s=pz(this.state.data,t,this.options);return rn(this,$n,fi).call(this,{data:s,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),s}setState(t){rn(this,$n,fi).call(this,{type:"setState",state:t})}cancel(t){var s,c;const a=(s=K(this,zt))==null?void 0:s.promise;return(c=K(this,zt))==null||c.cancel(t),a?a.then(ma).catch(ma):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return K(this,Xr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>dz(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===em||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yg(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!lz(this.state.dataUpdatedAt,t)}onFocus(){var a;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(a=K(this,zt))==null||a.continue()}onOnline(){var a;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(a=K(this,zt))==null||a.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),K(this,oa).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(K(this,zt)&&(K(this,es)||rn(this,$n,lI).call(this)?K(this,zt).cancel({revert:!0}):K(this,zt).cancelRetry()),this.scheduleGc()),K(this,oa).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rn(this,$n,fi).call(this,{type:"invalidate"})}async fetch(t,a){var A,y,m,E,b,w,x,j,I,C,O;if(this.state.fetchStatus!=="idle"&&((A=K(this,zt))==null?void 0:A.status())!=="rejected"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(K(this,zt))return K(this,zt).continueRetry(),K(this,zt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(_=>_.options.queryFn);S&&this.setOptions(S.options)}const s=new AbortController,c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Qe(this,es,!0),s.signal)})},l=()=>{const S=iI(this.options,a),k=(()=>{const N={client:K(this,Wr),queryKey:this.queryKey,meta:this.meta};return c(N),N})();return Qe(this,es,!1),this.options.persister?this.options.persister(S,k,this):S(k)},f=(()=>{const S={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:K(this,Wr),state:this.state,fetchFn:l};return c(S),S})(),h=K(this,yo)==="infinite"?bz(this.options.pages):this.options.behavior;h==null||h.onFetch(f,this),Qe(this,Eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&rn(this,$n,fi).call(this,{type:"fetch",meta:(m=f.fetchOptions)==null?void 0:m.meta}),Qe(this,zt,oI({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,onCancel:S=>{S instanceof zg&&S.revert&&this.setState({...K(this,Eo),fetchStatus:"idle"}),s.abort()},onFail:(S,_)=>{rn(this,$n,fi).call(this,{type:"failed",failureCount:S,error:_})},onPause:()=>{rn(this,$n,fi).call(this,{type:"pause"})},onContinue:()=>{rn(this,$n,fi).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const S=await K(this,zt).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(b=(E=K(this,oa).config).onSuccess)==null||b.call(E,S,this),(x=(w=K(this,oa).config).onSettled)==null||x.call(w,S,this.state.error,this),S}catch(S){if(S instanceof zg){if(S.silent)return K(this,zt).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw rn(this,$n,fi).call(this,{type:"error",error:S}),(I=(j=K(this,oa).config).onError)==null||I.call(j,S,this),(O=(C=K(this,oa).config).onSettled)==null||O.call(C,this.state.data,S,this),S}finally{this.scheduleGc()}}},yo=new WeakMap,Xr=new WeakMap,Eo=new WeakMap,oa=new WeakMap,Wr=new WeakMap,zt=new WeakMap,sl=new WeakMap,es=new WeakMap,$n=new WeakSet,lI=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},fi=function(t){const a=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...jz(s.data,this.options),fetchMeta:t.meta??null};case"success":const c={...s,...Yb(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Qe(this,Eo,t.manual?c:void 0),c;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=a(this.state),fn.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),K(this,oa).notify({query:this,type:"updated",action:t})})},Iw);function jz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Hb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,s=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var ol,Ra,dn,ts,Da,nr,Cw,Qz=(Cw=class extends cI{constructor(t){super();Me(this,Da);Me(this,ol);Me(this,Ra);Me(this,dn);Me(this,ts);Qe(this,ol,t.client),this.mutationId=t.mutationId,Qe(this,dn,t.mutationCache),Qe(this,Ra,[]),this.state=t.state||Iz(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){K(this,Ra).includes(t)||(K(this,Ra).push(t),this.clearGcTimeout(),K(this,dn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Qe(this,Ra,K(this,Ra).filter(a=>a!==t)),this.scheduleGc(),K(this,dn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){K(this,Ra).length||(this.state.status==="pending"?this.scheduleGc():K(this,dn).remove(this))}continue(){var t;return((t=K(this,ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,A,y,m,E,b,w,x,j,I,C,O,S,_,k,N;const a=()=>{rn(this,Da,nr).call(this,{type:"continue"})},s={client:K(this,ol),meta:this.options.meta,mutationKey:this.options.mutationKey};Qe(this,ts,oI({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(z,M)=>{rn(this,Da,nr).call(this,{type:"failed",failureCount:z,error:M})},onPause:()=>{rn(this,Da,nr).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,dn).canRun(this)}));const c=this.state.status==="pending",l=!K(this,ts).canStart();try{if(c)a();else{rn(this,Da,nr).call(this,{type:"pending",variables:t,isPaused:l}),K(this,dn).config.onMutate&&await K(this,dn).config.onMutate(t,this,s);const M=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t,s));M!==this.state.context&&rn(this,Da,nr).call(this,{type:"pending",context:M,variables:t,isPaused:l})}const z=await K(this,ts).start();return await((A=(h=K(this,dn).config).onSuccess)==null?void 0:A.call(h,z,t,this.state.context,this,s)),await((m=(y=this.options).onSuccess)==null?void 0:m.call(y,z,t,this.state.context,s)),await((b=(E=K(this,dn).config).onSettled)==null?void 0:b.call(E,z,null,this.state.variables,this.state.context,this,s)),await((x=(w=this.options).onSettled)==null?void 0:x.call(w,z,null,t,this.state.context,s)),rn(this,Da,nr).call(this,{type:"success",data:z}),z}catch(z){try{await((I=(j=K(this,dn).config).onError)==null?void 0:I.call(j,z,t,this.state.context,this,s))}catch(M){Promise.reject(M)}try{await((O=(C=this.options).onError)==null?void 0:O.call(C,z,t,this.state.context,s))}catch(M){Promise.reject(M)}try{await((_=(S=K(this,dn).config).onSettled)==null?void 0:_.call(S,void 0,z,this.state.variables,this.state.context,this,s))}catch(M){Promise.reject(M)}try{await((N=(k=this.options).onSettled)==null?void 0:N.call(k,void 0,z,t,this.state.context,s))}catch(M){Promise.reject(M)}throw rn(this,Da,nr).call(this,{type:"error",error:z}),z}finally{K(this,dn).runNext(this)}}},ol=new WeakMap,Ra=new WeakMap,dn=new WeakMap,ts=new WeakMap,Da=new WeakSet,nr=function(t){const a=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),fn.batch(()=>{K(this,Ra).forEach(s=>{s.onMutationUpdate(t)}),K(this,dn).notify({mutation:this,type:"updated",action:t})})},Cw);function Iz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gi,ya,cl,Sw,Cz=(Sw=class extends Ju{constructor(t={}){super();Me(this,gi);Me(this,ya);Me(this,cl);this.config=t,Qe(this,gi,new Set),Qe(this,ya,new Map),Qe(this,cl,0)}build(t,a,s){const c=new Qz({client:t,mutationCache:this,mutationId:++Rd(this,cl)._,options:t.defaultMutationOptions(a),state:s});return this.add(c),c}add(t){K(this,gi).add(t);const a=Zd(t);if(typeof a=="string"){const s=K(this,ya).get(a);s?s.push(t):K(this,ya).set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(K(this,gi).delete(t)){const a=Zd(t);if(typeof a=="string"){const s=K(this,ya).get(a);if(s)if(s.length>1){const c=s.indexOf(t);c!==-1&&s.splice(c,1)}else s[0]===t&&K(this,ya).delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=Zd(t);if(typeof a=="string"){const s=K(this,ya).get(a),c=s==null?void 0:s.find(l=>l.state.status==="pending");return!c||c===t}else return!0}runNext(t){var s;const a=Zd(t);if(typeof a=="string"){const c=(s=K(this,ya).get(a))==null?void 0:s.find(l=>l!==t&&l.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{K(this,gi).forEach(t=>{this.notify({type:"removed",mutation:t})}),K(this,gi).clear(),K(this,ya).clear()})}getAll(){return Array.from(K(this,gi))}find(t){const a={exact:!0,...t};return this.getAll().find(s=>Tb(a,s))}findAll(t={}){return this.getAll().filter(a=>Tb(t,a))}notify(t){fn.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return fn.batch(()=>Promise.all(t.map(a=>a.continue().catch(ma))))}},gi=new WeakMap,ya=new WeakMap,cl=new WeakMap,Sw);function Zd(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ta,Ow,Sz=(Ow=class extends Ju{constructor(t={}){super();Me(this,Ta);this.config=t,Qe(this,Ta,new Map)}build(t,a,s){const c=a.queryKey,l=a.queryHash??WA(c,a);let u=this.get(l);return u||(u=new xz({client:t,queryKey:c,queryHash:l,options:t.defaultQueryOptions(a),state:s,defaultOptions:t.getQueryDefaults(c)}),this.add(u)),u}add(t){K(this,Ta).has(t.queryHash)||(K(this,Ta).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=K(this,Ta).get(t.queryHash);a&&(t.destroy(),a===t&&K(this,Ta).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return K(this,Ta).get(t)}getAll(){return[...K(this,Ta).values()]}find(t){const a={exact:!0,...t};return this.getAll().find(s=>Db(a,s))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(s=>Db(t,s)):a}notify(t){fn.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ta=new WeakMap,Ow),Bt,or,cr,Bo,vo,lr,bo,wo,_w,Oz=(_w=class{constructor(e={}){Me(this,Bt);Me(this,or);Me(this,cr);Me(this,Bo);Me(this,vo);Me(this,lr);Me(this,bo);Me(this,wo);Qe(this,Bt,e.queryCache||new Sz),Qe(this,or,e.mutationCache||new Cz),Qe(this,cr,e.defaultOptions||{}),Qe(this,Bo,new Map),Qe(this,vo,new Map),Qe(this,lr,0)}mount(){Rd(this,lr)._++,K(this,lr)===1&&(Qe(this,bo,nI.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,Bt).onFocus())})),Qe(this,wo,xu.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,Bt).onOnline())})))}unmount(){var e,t;Rd(this,lr)._--,K(this,lr)===0&&((e=K(this,bo))==null||e.call(this),Qe(this,bo,void 0),(t=K(this,wo))==null||t.call(this),Qe(this,wo,void 0))}isFetching(e){return K(this,Bt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,or).findAll({...e,status:"pending"}).length}getQueryData(e){var a;const t=this.defaultQueryOptions({queryKey:e});return(a=K(this,Bt).get(t.queryHash))==null?void 0:a.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=K(this,Bt).build(this,t),s=a.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Yg(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return K(this,Bt).findAll(e).map(({queryKey:t,state:a})=>{const s=a.data;return[t,s]})}setQueryData(e,t,a){const s=this.defaultQueryOptions({queryKey:e}),c=K(this,Bt).get(s.queryHash),l=c==null?void 0:c.state.data,u=oz(t,l);if(u!==void 0)return K(this,Bt).build(this,s).setData(u,{...a,manual:!0})}setQueriesData(e,t,a){return fn.batch(()=>K(this,Bt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,a)]))}getQueryState(e){var a;const t=this.defaultQueryOptions({queryKey:e});return(a=K(this,Bt).get(t.queryHash))==null?void 0:a.state}removeQueries(e){const t=K(this,Bt);fn.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=K(this,Bt);return fn.batch(()=>(a.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},s=fn.batch(()=>K(this,Bt).findAll(e).map(c=>c.cancel(a)));return Promise.all(s).then(ma).catch(ma)}invalidateQueries(e,t={}){return fn.batch(()=>(K(this,Bt).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},s=fn.batch(()=>K(this,Bt).findAll(e).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let l=c.fetch(void 0,a);return a.throwOnError||(l=l.catch(ma)),c.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(ma)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=K(this,Bt).build(this,t);return a.isStaleByTime(Yg(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ma).catch(ma)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ma).catch(ma)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return xu.isOnline()?K(this,or).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,Bt)}getMutationCache(){return K(this,or)}getDefaultOptions(){return K(this,cr)}setDefaultOptions(e){Qe(this,cr,e)}setQueryDefaults(e,t){K(this,Bo).set(el(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,Bo).values()],a={};return t.forEach(s=>{xo(e,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(e,t){K(this,vo).set(el(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,vo).values()],a={};return t.forEach(s=>{xo(e,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,cr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=WA(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===em&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...K(this,cr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,Bt).clear(),K(this,or).clear()}},Bt=new WeakMap,or=new WeakMap,cr=new WeakMap,Bo=new WeakMap,vo=new WeakMap,lr=new WeakMap,bo=new WeakMap,wo=new WeakMap,_w);class ho extends Error{constructor(){super("The dashboard read was superseded by a newer route or binding generation.");Nd(this,"code","DASHBOARD_STALE_RESPONSE");this.name="DashboardStaleResponseError"}}class _z extends Error{constructor(){super("The dashboard read failed safely.");Nd(this,"code","DASHBOARD_READ_FAILED");this.name="DashboardReadError"}}const Nz=["productArea","route","actorId","projectId","scopeId","domainId","domainVersion","cycleId","subjectId","generation"];function zb(e,t){return Nz.every(a=>e[a]===t[a])}function Rz(e){return JSON.stringify(ig(e))}function qh(){const e=new Oz({defaultOptions:{queries:{gcTime:Number.POSITIVE_INFINITY,retry:!1,staleTime:0}}}),t=new Map,a=new Map;let s=null,c=!1;const l=()=>{for(const h of t.values())h.abort();t.clear(),a.clear(),e.cancelQueries()},u=h=>{if(c)throw new Error("Dashboard query client is disposed.");const A=Ve(h);if(s&&Ye(s,A))return s;const y=s;s=A,l();for(const m of e.getQueryCache().findAll()){const E=Array.isArray(m.queryKey)&&m.queryKey[0]==="dashboard-projection"?m.queryKey[1]:null;if(E)try{const b=Ve(E);zb(b,A)||e.removeQueries({queryKey:m.queryKey,exact:!0})}catch{e.removeQueries({queryKey:m.queryKey,exact:!0})}}return y&&zb(y,A)&&e.invalidateQueries({queryKey:["dashboard-projection"],refetchType:"none"}),A};return Object.freeze({queryClient:e,activate:u,read:(h,A,y)=>{const m=u(h),E=Rz(m),b=a.get(E);if(b)return b;const w=new AbortController;t.set(E,w);const x=Promise.resolve().then(()=>A({identity:m,signal:w.signal})).then(j=>{const I=y(j);if(w.signal.aborted||!s||!Ye(m,s))throw new ho;return e.setQueryData(ig(m),I),I}).catch(j=>{throw j instanceof ho?j:w.signal.aborted||!s||!Ye(m,s)?new ho:new _z}).finally(()=>{t.get(E)===w&&t.delete(E),a.get(E)===x&&a.delete(E)});return a.set(E,x),x},getCurrentIdentity:()=>s,getData:h=>e.getQueryData(ig(h)),inFlightCount:()=>a.size,dispose:()=>{c||(c=!0,l(),s=null,e.clear())}})}const Hn=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."}),Dz=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;function Tz(e){const t=e??"default";if(!Dz.test(t))throw new Error("Bound projection source key is invalid.");return t}function $b(e=()=>{},t=()=>Promise.reject(new Error(Hn.failed))){return Object.freeze({phase:"idle",identity:null,data:null,mutationEnabled:!1,reason:null,refetch:e,reconcile:t})}function $g(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 kz(){let e=qh();const t=new Set;let a=$b(),s=null,c=null,l=null,u=null,f=!1,h=0,A=0,y=0,m=!1,E=0,b=0,w=!1;const x=L=>{if(f||!s)return;if(u){w=!0,I({phase:a.data===null?"stale":"refreshing",identity:a.identity??s.identity,data:a.data,mutationEnabled:!1,reason:Hn.changed});return}S(s.identity),I({phase:a.data===null?"stale":"refreshing",identity:a.identity??s.identity,data:a.data,mutationEnabled:!1,reason:Hn.changed});const Z=b;u=N(!0).finally(()=>{Z===b&&(u=null,w&&(w=!1,x()))})},j=()=>x(),I=L=>{a=Object.freeze({...L,refetch:j,reconcile:k});for(const Z of t)Z()},C=L=>!f&&s!==null&&Ye(L,s.identity),O=()=>{E+=1,c==null||c.close(),c=null,l==null||l.dispose(),l=null},S=L=>{y+=1,e.dispose(),e=qh(),e.activate(L)},_=()=>{b+=1,u=null,w=!1},k=async()=>{const L=(s==null?void 0:s.identity)??null;if(f||L===null)throw new Error(Hn.failed);for(x();u!==null;){const Z=u;if(await Z,Z===u)break}if(f||s===null||!Ye(L,s.identity)||a.phase!=="ready"||a.identity===null||a.data===null||!$g(a.identity,L))throw new Error(Hn.failed);return a},N=async L=>{const Z=s;if(!Z||f)return;const F=++y,re=a.identity!==null&&(Ye(a.identity,Z.identity)||L&&$g(a.identity,Z.identity))?a.data:null,pe=re!==null?a.identity:Z.identity;I({phase:L&&re!==null?"refreshing":"loading",identity:pe,data:re,mutationEnabled:!1,reason:L?Hn.changed:Hn.checking});try{const Y=await e.read(Z.identity,Z.read,Z.validate);if(!C(Z.identity)||F!==y)return;let V=Z.identity,te=!1;if(Z.live){const le=Z.live.reconcile(Y),fe=l==null?void 0:l.getCursor();if(fe&&(le.cursor.eventHead.sequence<fe.eventHead.sequence||le.cursor.eventHead.sequence===fe.eventHead.sequence&&(le.cursor.eventHead.hash!==fe.eventHead.hash||le.cursor.viewHash!==fe.viewHash)))throw new ho;if(l){if(!l.markReconciled(le.cursor,{mutationEnabled:le.mutationEnabled,reasonCodes:le.reasonCodes}))throw new ho}else if(!m)throw new ho;V=Ve({...Z.identity,eventHead:le.cursor.eventHead,viewHash:le.cursor.viewHash}),te=le.mutationEnabled}I({phase:Z.live&&m?"stale":"ready",identity:V,data:Y,mutationEnabled:m?!1:te,reason:m?Hn.failed:null})}catch{if(!C(Z.identity)||F!==y)return;I({phase:"stale",identity:pe,data:re,mutationEnabled:!1,reason:Hn.failed})}},z=L=>{if(m=!1,!L.live)return;const Z=++E;l=eI({identity:L.identity,isCurrent:()=>C(L.identity),onSnapshot:(oe,re)=>{if(C(L.identity))try{const pe=L.validate(oe);_(),S(L.identity),I({phase:"refreshing",identity:Ve({...L.identity,eventHead:re.eventHead,viewHash:re.viewHash}),data:pe,mutationEnabled:!1,reason:Hn.checking})}catch{x()}},onPatch:()=>x(),onReady:oe=>{!C(L.identity)||a.data===null||m||I({...a,phase:"ready",mutationEnabled:oe.mutationEnabled,reason:null})},onStale:()=>{C(L.identity)&&I({phase:a.data===null?"stale":"refreshing",identity:a.identity??L.identity,data:a.data,mutationEnabled:!1,reason:Hn.changed})},onRefetch:x});try{c=tI({origin:L.live.origin,identity:L.identity,reconciler:l,fetcher:L.live.fetcher,lastEventId:L.live.lastEventId})}catch{m=!0,l.dispose(),l=null,c=null;return}const F=()=>{Z!==E||!C(L.identity)||(m=!0,_(),I({phase:"stale",identity:a.identity??L.identity,data:a.data,mutationEnabled:!1,reason:Hn.failed}))};c.completion.then(F,F)},M=L=>{var re,pe,Y,V;if(f)throw new Error("Bound projection controller is disposed.");const Z=Ve(L.identity),F=Tz(L.sourceKey),oe=(s==null?void 0:s.sourceKey)===F&&((re=s.live)==null?void 0:re.origin)===((pe=L.live)==null?void 0:pe.origin)&&((Y=s.live)==null?void 0:Y.lastEventId)===((V=L.live)==null?void 0:V.lastEventId);s&&Ye(s.identity,Z)&&oe||(O(),_(),s&&Ye(s.identity,Z)&&S(Z),s={...L,identity:Z,sourceKey:F},e.activate(Z),z(s),N(!1))};return Object.freeze({activate:M,subscribe:L=>(t.add(L),()=>t.delete(L)),getSnapshot:()=>a,isActiveIdentity:L=>s!==null&&Ye(s.identity,L),retain:L=>{const Z=++A;return h+=1,M(L),()=>{h=Math.max(0,h-1),queueMicrotask(()=>{h===0&&Z===A&&!f&&(O(),_(),e.dispose(),e=qh(),s=null,u=null)})}},dispose:()=>{f||(f=!0,O(),_(),e.dispose(),s=null,u=null,t.clear(),a=$b())}})}function Mz(e){const[t]=B.useState(kz),{identity:a,read:s,sourceKey:c="default",validate:l,live:u}=e,f=JSON.stringify(a),h=B.useMemo(()=>Ve(JSON.parse(f)),[f]),A=u==null?void 0:u.origin,y=u==null?void 0:u.fetcher,m=u==null?void 0:u.lastEventId,E=u==null?void 0:u.reconcile,b=u!==void 0,w=B.useRef(s),x=B.useRef(l),j=B.useRef(y),I=B.useRef(E);w.current=s,x.current=l,j.current=y,I.current=E;const C=B.useCallback(M=>w.current(M),[]),O=B.useCallback(M=>x.current(M),[]),S=B.useCallback((...M)=>(j.current??fetch)(...M),[]),_=B.useCallback(M=>{const L=I.current;if(!L)throw new Error("Bound projection live reconciler is unavailable.");return L(M)},[]),k=B.useMemo(()=>b&&A!==void 0?Object.freeze({origin:A,fetcher:S,lastEventId:m,reconcile:_}):void 0,[b,m,A,S,_]),N=B.useMemo(()=>Object.freeze({identity:h,sourceKey:c,read:C,validate:O,live:k}),[h,c,k,C,O]);B.useEffect(()=>t.retain(N),[N,t]);const z=B.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot);return z.identity===null||!t.isActiveIdentity(h)||!$g(z.identity,h)?Object.freeze({phase:"loading",identity:h,data:null,mutationEnabled:!1,reason:Hn.checking,refetch:z.refetch,reconcile:z.reconcile}):z}const Gz=/^sha256:[a-f0-9]{64}$/u;function dI(e,t){return e.kind==="review"&&e.cycleId===t&&Gz.test(e.readActionDigest)&&e.deepLink===`#/operate/cycles/${encodeURIComponent(e.cycleId)}/reviews/${encodeURIComponent(e.reviewId)}`}function uI(e,t){const a=e.inbox.flatMap(s=>{const c=s.navigationLocator;return c&&dI(c,t)?[c]:[]});return a.length===1?a[0]:null}const Yz=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function Hz(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 fI(e){try{const t=Ve(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 pI(e){const t=fI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=vu(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"cycle",subjectId:t.subjectId,cycleId:t.cycleId});return vu(s,l),!0}catch{return!1}}}function Ub(e,t,a){if(!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t)||!pI(t)(e.data))return null;const s=e.data,c=s.payload,l=Yz[e.kind];if(l===void 0||c.status!==l||c.mutationEnabled!==!1||e.mutationEnabled)return null;const u=c.data.cycle;return Object.freeze({kind:"cycle",source:a,presentation:l,binding:e.binding,display:s,workspace:c,vocabulary:Hz(c.domainId),cycle:u,progress:c.data.progress,stages:u.stages,assignments:u.assignments,dependencies:u.dependencies,blockers:u.blockers,currentStage:u.stages.find(f=>f.state==="current")??null,persistentWork:c.data.persistentWork,replay:c.data.replay,verification:c.data.verification,allowedActions:c.data.allowedActions,mutationEnabled:!1})}function zz(e,t){const a=fI(t);if(!a)return null;if(e.resumable){const s=Ub(e.resumable.workspace,a,"durable-resume");if(s)return s}return Ub(e.current.workspace,a,"current")}function $c(e){const 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 $z(e){return!e||!Array.isArray(e.findings)||!Array.isArray(e.dissent)?null:e}function Uz(e){return!e||!Array.isArray(e.decisions)?null:e}function Lz(e){return e?(e.kind==="omitted"||e.kind==="lens",e.reason):"No absence was returned."}function Pz({seat:e,index:t}){const a=e.artifact!==null;return r.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:[r.jsxs("header",{className:"op-executive-seat__header",children:[r.jsx("p",{className:"op-eyebrow",children:$c(e.roleKind)}),r.jsx("h3",{id:`op-executive-seat-${t}-title`,children:e.label}),r.jsx("p",{children:e.assignmentState?$c(e.assignmentState):"Not issued"})]}),r.jsxs("dl",{className:"op-executive-seat__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Report"}),r.jsx("dd",{children:a?"Submitted":"Not submitted"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State"}),r.jsx("dd",{children:e.assignmentState?$c(e.assignmentState):"Not issued"})]}),e.absence?r.jsxs("div",{children:[r.jsx("dt",{children:"Typed absence"}),r.jsx("dd",{children:Lz(e.absence)})]}):null]}),r.jsxs("details",{className:"op-executive-seat__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-executive-seat__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Role ID"}),r.jsxs("dd",{children:[r.jsx("code",{children:e.roleId})," · v",e.roleVersion]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Assignment ID"}),r.jsx("dd",{children:e.assignmentId?r.jsx("code",{children:e.assignmentId}):"Not issued"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Artifact"}),r.jsx("dd",{children:a?r.jsxs(r.Fragment,{children:[r.jsx("code",{children:e.artifact.artifactId}),r.jsxs("span",{className:"op-executive-seat__hash",children:["Raw ",r.jsx("code",{children:e.artifact.rawHash})]}),r.jsxs("span",{className:"op-executive-seat__hash",children:["Canonical ",r.jsx("code",{children:e.artifact.canonicalHash})]})]}):"No accepted artifact was returned."})]})]})]})]})}function Fz({findings:e}){return e?r.jsxs("section",{className:"op-executive-challenger","aria-labelledby":"op-executive-challenger-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Independent challenge"}),r.jsx("h2",{id:"op-executive-challenger-title",children:"Challenger findings"})]}),r.jsx("p",{children:"The Challenger tests the board's assumptions independently."})]}),e.findings.length>0?r.jsx("ul",{className:"op-executive-claims",children:e.findings.map((t,a)=>r.jsxs("li",{children:[r.jsx("strong",{children:t.title}),r.jsx("p",{children:t.statement}),r.jsxs("p",{children:[$c(t.severity)," severity · ",$c(t.state)]}),r.jsxs("details",{className:"op-executive-claim__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:t.findingId})," · ",r.jsx("code",{children:t.findingType})]})]},`${t.findingId}:${a}`))}):r.jsx("p",{children:"No Challenger finding was returned."}),e.dissent.length>0?r.jsxs("div",{className:"op-executive-dissent",children:[r.jsx("h3",{children:"Dissent"}),r.jsx("ul",{children:e.dissent.map((t,a)=>r.jsxs("li",{children:[r.jsx("span",{children:t.statement}),r.jsxs("small",{children:[" Resolve when ",t.resolutionCondition]})]},`${t.sourceArtifactId}:${t.localDissentId}:${a}`))})]}):null]}):null}function Vz({synthesis:e}){return e?r.jsxs("section",{className:"op-executive-chair","aria-labelledby":"op-executive-chair-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Evidence-bound synthesis"}),r.jsx("h2",{id:"op-executive-chair-title",children:"Chair synthesis"})]}),r.jsx("p",{children:"The Chair brings the reports together. Any next step still needs review."})]}),e.decisions.length>0?r.jsx("div",{className:"op-executive-decisions",children:e.decisions.map((t,a)=>r.jsxs("article",{children:[r.jsx("h3",{children:t.title??"Untitled decision"}),t.question?r.jsx("p",{children:t.question}):null,t.outcome?r.jsx("p",{children:t.outcome}):null,t.rationale?r.jsx("p",{children:t.rationale}):null,t.actionHypotheses.length>0?r.jsx("ul",{children:t.actionHypotheses.map((s,c)=>r.jsxs("li",{children:[r.jsx("strong",{children:s.title??"Proposed action"}),s.expectedResult?r.jsx("span",{children:s.expectedResult}):null]},`${s.title??"action"}:${c}`))}):null]},`${t.title??"decision"}:${a}`))}):r.jsx("p",{children:"No Chair decision was returned."}),e.unresolvedGaps.length>0?r.jsxs("div",{className:"op-executive-gaps",children:[r.jsx("h3",{children:"Unresolved gaps"}),r.jsx("ul",{children:e.unresolvedGaps.map((t,a)=>r.jsxs("li",{children:[r.jsx("span",{children:t.reason}),r.jsxs("details",{className:"op-executive-gap__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:t.kind==="role"?t.roleId:t.requirementId})," ·"," ",r.jsx("code",{children:t.absenceCode})]})]},`${t.kind}:${t.kind==="role"?t.roleId:t.requirementId}:${a}`))})]}):null,e.dissent.length>0?r.jsxs("div",{className:"op-executive-dissent",children:[r.jsx("h3",{children:"Preserved dissent"}),r.jsx("ul",{children:e.dissent.map((t,a)=>r.jsxs("li",{children:[r.jsx("span",{children:t.statement}),r.jsxs("small",{children:[" Resolve when ",t.resolutionCondition]})]},`${t.sourceArtifactId}:${t.localDissentId}:${a}`))})]}):null]}):null}function qz({model:e}){const t=e.board;return r.jsxs("section",{className:"op-executive-board","aria-labelledby":"op-executive-board-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Issued executive board"}),r.jsx("h2",{id:"op-executive-board-title",children:"Executive seats"})]}),r.jsx("p",{children:"See the perspectives that informed this cycle."})]}),r.jsx("div",{className:"op-executive-board__seats",children:t.seats.map((a,s)=>r.jsx(Pz,{seat:a,index:s},`${a.roleId}:${s}`))}),t.challengerFindings?r.jsx(Fz,{findings:$z(t.challengerFindings)}):null,t.chairSynthesis?r.jsx(Vz,{synthesis:Uz(t.chairSynthesis)}):null]})}function hI(e){try{const t=Ve(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 gI(e){const t=hI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Dg(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,subjectId:t.subjectId,cycleId:t.cycleId});return Dg(s,l),c.data.executiveBoard.seats.every(u=>u.roleId!==u.label&&typeof u.label=="string")}catch{return!1}}}function Kz(e,t){if(hI(t)===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t)||!gI(t)(e.data)||e.mutationEnabled)return null;const s=e.data,c=s.payload;return c.mutationEnabled!==!1?null:Object.freeze({kind:"executive-board",binding:e.binding,display:s,board:c.data.executiveBoard,mutationEnabled:!1})}function Jz(e,t,a){if(e.vocabulary.domain!=="business")return Object.freeze({kind:"hidden"});if(!t)return 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."});const s=Kz(t,a);return s||Object.freeze({kind:"incompatible"})}function jo(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Lb(e){if(e==="normal")return"On track";const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Zz(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function AI({stages:e,health:t,eyebrow:a="Active lifecycle",title:s,labelledBy:c="op-operating-spine-title"}){const l=e.find(u=>u.state==="current");return r.jsxs("section",{className:"op-cycle-spine","aria-labelledby":c,children:[r.jsxs("div",{className:"op-cycle-spine__heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:a}),r.jsx("h2",{id:c,children:s??(l?jo(l.id):Lb(t))})]}),r.jsx("p",{children:Lb(t)})]}),r.jsx("ol",{"aria-label":"Observe through Learn operating spine",children:e.map((u,f)=>r.jsxs("li",{"data-projection-state":u.state,"aria-current":u.state==="current"?"step":void 0,children:[r.jsx("span",{"aria-hidden":"true",children:String(f+1).padStart(2,"0")}),r.jsx("strong",{children:jo(u.id)}),r.jsx("small",{children:u.reason??Zz(u.state)})]},`${u.id}:${f}`))})]})}function Pt(e){const 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 hi(e,t,a=`${t}s`){return`${e} ${e===1?t:a}`}function Ea({values:e,empty:t,className:a}){return e.length>0?r.jsx("ul",{className:a,children:e.map((s,c)=>r.jsx("li",{children:r.jsx("code",{children:s})},`${s}:${c}`))}):r.jsx("p",{children:t})}function Xz({model:e}){return r.jsxs("section",{className:"op-cycle-stages","aria-labelledby":"op-cycle-stages-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Cycle progress"}),r.jsx("h2",{id:"op-cycle-stages-title",children:"What is happening now"})]}),r.jsx("p",{children:"Open a stage to inspect only its returned inputs, outputs, gates, gaps, and uncertainty."})]}),r.jsx("div",{className:"op-cycle-stages__ledger",children:e.stages.map((t,a)=>r.jsxs("details",{className:"op-cycle-stage",open:t.state==="current","data-stage-state":t.state,children:[r.jsxs("summary",{children:[r.jsx("span",{"aria-hidden":"true",children:String(a+1).padStart(2,"0")}),r.jsx("strong",{children:jo(t.id)}),r.jsx("small",{children:t.reason??Pt(t.state)}),r.jsx("span",{className:"op-cycle-stage__status",children:Pt(t.state)})]}),r.jsxs("div",{className:"op-cycle-stage__overview",children:[r.jsx("span",{children:hi(t.inputArtifactIds.length,"input")}),r.jsx("span",{children:hi(t.outputArtifactIds.length,"output")}),r.jsx("span",{children:hi(t.gates.length,"gate")}),r.jsx("span",{children:hi(t.evidenceGapIds.length,"evidence gap")}),r.jsx("span",{children:hi(t.uncertaintyIds.length,"uncertainty","uncertainties")}),r.jsx("span",{children:hi(t.persistentActionIds.length,"persistent action")})]}),r.jsxs("details",{className:"op-cycle-stage__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("div",{className:"op-cycle-stage__body",children:[r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-inputs`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-inputs`,children:"Inputs"}),r.jsx(Ea,{values:t.inputArtifactIds,empty:"No inputs were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-outputs`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-outputs`,children:"Outputs"}),r.jsx(Ea,{values:t.outputArtifactIds,empty:"No outputs were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-gates`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-gates`,children:"Gates"}),t.gates.length>0?r.jsx("ul",{children:t.gates.map((s,c)=>r.jsxs("li",{children:[r.jsx("strong",{children:Pt(s.kind)})," ",r.jsx("code",{children:s.subjectId})," ",r.jsx("span",{children:Pt(s.state)})]},`${s.kind}:${s.subjectId}:${c}`))}):r.jsx("p",{children:"No gates were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-blockers`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-blockers`,children:"Blockers and uncertainty"}),r.jsxs("div",{className:"op-cycle-stage__signals",children:[r.jsxs("div",{children:[r.jsx("h4",{children:"Evidence gaps"}),r.jsx(Ea,{values:t.evidenceGapIds,empty:"No evidence gaps were returned."})]}),r.jsxs("div",{children:[r.jsx("h4",{children:"Uncertainty"}),r.jsx(Ea,{values:t.uncertaintyIds,empty:"No uncertainty was returned."})]}),r.jsxs("div",{children:[r.jsx("h4",{children:"Persistent actions"}),r.jsx(Ea,{values:t.persistentActionIds,empty:"No persistent actions were returned for this stage."})]})]})]})]})]})]},`${t.id}:${a}`))})]})}function Wz({model:e}){return r.jsxs("section",{className:"op-cycle-ownership","aria-labelledby":"op-cycle-ownership-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"People and dependencies"}),r.jsx("h2",{id:"op-cycle-ownership-title",children:"Work in this cycle"})]}),r.jsx("p",{children:"See who owns the work, what it depends on, and what is blocking progress."})]}),e.assignments.length>0?r.jsx("ol",{className:"op-cycle-assignments","aria-label":"Cycle assignments",children:e.assignments.map((t,a)=>r.jsxs("li",{children:[r.jsxs("div",{children:[r.jsx("span",{children:String(a+1).padStart(2,"0")}),r.jsx("div",{children:r.jsx("strong",{children:t.title??e.vocabulary.assignment})})]}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Role"}),r.jsx("dd",{children:t.role?Pt(t.role):"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Owner"}),r.jsx("dd",{children:t.ownerLabel??"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State"}),r.jsx("dd",{children:Pt(t.state)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Due"}),r.jsx("dd",{children:t.dueAt??"Not returned"})]})]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("div",{className:"op-cycle-assignment__detail",children:[r.jsxs("section",{children:[r.jsx("h3",{children:"Assignment ID"}),r.jsx("code",{children:t.assignmentId})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Dependencies"}),t.dependencies.length>0?r.jsx("ul",{children:t.dependencies.map((s,c)=>r.jsxs("li",{children:[r.jsx("code",{children:s.assignmentId})," ·"," ",s.state??"state not returned"," ·"," ",s.resolved?"resolved":"unresolved"]},`${s.assignmentId}:${c}`))}):r.jsx("p",{children:"No dependency was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Blockers"}),r.jsx(Ea,{values:t.blockers,empty:"No blocker was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Artifacts"}),r.jsx("p",{children:"Inputs"}),r.jsx(Ea,{values:t.inputArtifactIds,empty:"No input Artifact was returned."}),r.jsx("p",{children:"Outputs"}),r.jsx(Ea,{values:t.outputArtifactIds,empty:"No output Artifact was returned."})]}),t.next?r.jsxs("p",{children:["Next step: ",r.jsx("strong",{children:t.next.label})," ",r.jsx("code",{children:t.next.tool})]}):null]})]})]},`${t.assignmentId}:${a}`))}):r.jsx("p",{className:"op-cycle-empty-line",children:"No assignment was returned for this Cycle."}),r.jsxs("div",{className:"op-cycle-relations",children:[r.jsxs("section",{"aria-labelledby":"op-cycle-dependencies-title",children:[r.jsx("h3",{id:"op-cycle-dependencies-title",children:"Dependency graph"}),e.dependencies.length>0?r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[hi(e.dependencies.length,"dependency","dependencies")," in this cycle."]}),r.jsxs("details",{className:"op-cycle-relations__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("ol",{children:e.dependencies.map((t,a)=>r.jsxs("li",{children:[r.jsx("strong",{children:Pt(t.subjectKind)})," ",r.jsx("code",{children:t.subjectId}),r.jsx("ul",{children:t.dependsOn.map((s,c)=>r.jsxs("li",{children:[r.jsx("code",{children:s.assignmentId??s.actionId})," ·"," ",s.state?Pt(s.state):"State not returned"," ·"," ",s.resolved?"Resolved":"Unresolved"]},`${s.assignmentId??s.actionId??"dependency"}:${c}`))})]},`${t.subjectKind}:${t.subjectId}:${a}`))})]})]}):r.jsx("p",{children:"No dependencies were returned."})]}),r.jsxs("section",{"aria-labelledby":"op-cycle-blockers-title",children:[r.jsx("h3",{id:"op-cycle-blockers-title",children:"Cycle blockers"}),e.blockers.length>0?r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[hi(e.blockers.length,"blocker")," need attention."]}),r.jsxs("details",{className:"op-cycle-relations__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("ol",{children:e.blockers.map((t,a)=>r.jsxs("li",{children:[r.jsx("strong",{children:Pt(t.subjectKind)})," ",r.jsx("code",{children:t.subjectId}),r.jsx(Ea,{values:t.blockingSubjectIds,empty:"No blocking subject was returned."})]},`${t.subjectKind}:${t.subjectId}:${a}`))})]})]}):r.jsx("p",{children:"No blockers are currently returned."})]})]})]})}function e$({model:e}){const t=[...e.persistentWork.findings,...e.persistentWork.decisions,...e.persistentWork.actions];return r.jsxs("section",{className:"op-cycle-persistent","aria-labelledby":"op-cycle-persistent-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Beyond Cycle closure"}),r.jsx("h2",{id:"op-cycle-persistent-title",children:"Persistent work"})]}),r.jsx("p",{children:"Closure does not complete or delete the work this Cycle created or touched."})]}),t.length>0?r.jsx("ol",{className:"op-cycle-persistent__items",children:t.map((a,s)=>r.jsxs("li",{children:[r.jsx("span",{children:Pt(a.kind)}),r.jsx("strong",{children:Pt(a.state)}),r.jsx("small",{children:hi(a.relations.length,"related record")}),r.jsxs("details",{className:"op-cycle-persistent__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.subjectId}),r.jsx(Ea,{values:a.relations,empty:"No related records were returned."})]})]},`${a.kind}:${a.subjectId}:${s}`))}):r.jsx("p",{className:"op-cycle-empty-line",children:"No persistent Finding, Decision, or Action was returned."}),r.jsxs("div",{className:"op-cycle-outcomes",children:[r.jsxs("section",{children:[r.jsx("h3",{children:"Outcomes"}),e.persistentWork.outcomes.length>0?r.jsx("ol",{children:e.persistentWork.outcomes.map((a,s)=>r.jsxs("li",{children:[a.deepLink?r.jsx("a",{href:a.deepLink,children:Pt(a.status)}):r.jsx("strong",{children:Pt(a.status)}),r.jsxs("details",{className:"op-cycle-outcome__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.outcomeId})]})]},`${a.outcomeId}:${s}`))}):r.jsx("p",{children:"No Outcome was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Learnings"}),e.persistentWork.learnings.length>0?r.jsx("ol",{children:e.persistentWork.learnings.map((a,s)=>r.jsxs("li",{children:[r.jsx("strong",{children:a.statement}),r.jsxs("details",{className:"op-cycle-outcome__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.learningId})]})]},`${a.learningId}:${s}`))}):r.jsx("p",{children:"No Learning was returned."})]})]})]})}function t$({model:e}){const t=e.replay.checkpoint;return r.jsxs("aside",{className:"op-cycle-proof","aria-labelledby":"op-cycle-proof-title",children:[r.jsx("p",{className:"op-eyebrow",children:"History and verification"}),r.jsx("h2",{id:"op-cycle-proof-title",children:"Confidence in this cycle"}),r.jsxs("section",{className:"op-cycle-verification","data-verification":e.verification.status,children:[r.jsx("h3",{children:Pt(e.verification.status)}),r.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?r.jsxs("details",{className:"op-cycle-verification__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx(Ea,{values:e.verification.reasonCodes,empty:"No reason codes were returned."})]}):null]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-proof__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Final head"}),r.jsx("dd",{children:r.jsx("code",{children:e.replay.finalHead.sequence})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Tail events"}),r.jsx("dd",{children:e.replay.tail.eventCount})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Checkpoint"}),r.jsx("dd",{children:t?"returned":"not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Checkpoint verified"}),r.jsx("dd",{children:e.replay.parityProof.checkpointVerified?"yes":"no"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Final hash matches"}),r.jsx("dd",{children:e.replay.parityProof.finalEventHashMatches?"yes":"no"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State parity"}),r.jsx("dd",{children:e.replay.parityProof.stateParityVerified?"yes":"no"})]})]}),t?r.jsxs("div",{className:"op-cycle-proof__checkpoint",children:[r.jsx("time",{dateTime:t.createdAt,children:t.createdAt}),r.jsx("code",{children:t.runtimeStateHash}),r.jsx("code",{children:t.eventReplayIndexHash}),r.jsx("span",{children:t.recoveryVersion})]}):null]}),r.jsxs("section",{className:"op-cycle-read-actions","aria-labelledby":"op-cycle-read-actions-title",children:[r.jsx("h3",{id:"op-cycle-read-actions-title",children:"Available actions"}),r.jsx("ul",{children:e.allowedActions.map((a,s)=>r.jsxs("li",{children:[r.jsx("strong",{children:a.label}),r.jsx("span",{children:Pt(a.effect)}),r.jsxs("details",{className:"op-cycle-read-actions__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.tool})]})]},`${a.tool}:${s}`))}),r.jsx("p",{children:"Action details are available only when the current cycle allows them."})]})]})}function n$({model:e,currentBinding:t,executiveBoard:a}){const s=Jz(e,a,t);return s.kind==="hidden"?null:s.kind==="unavailable"?r.jsx("section",{className:"op-executive-board op-executive-board--unavailable","aria-live":"polite",children:r.jsx(be,{state:"unavailable",eyebrow:"Executive board",title:s.title,description:s.description})}):s.kind==="incompatible"?r.jsx("section",{className:"op-executive-board op-executive-board--incompatible",children:r.jsx(be,{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."})}):r.jsx(qz,{model:s})}function a$({currentBinding:e,sources:t,reviewNavigation:a=null}){const s=zz(t,e);if(!s)return r.jsx("div",{className:"op-workspace op-cycle-detail pc-operate","data-route-kind":"operate.cycle",children:r.jsx(be,{state:"incompatible",eyebrow:"Cycle projection",title:"Cycle cannot be trusted",description:"The owner-issued workspace did not pass exact binding and integrity verification."})});const c=a&&dI(a,s.cycle.cycleId)?a:null;return r.jsxs("div",{className:"op-workspace op-cycle-detail pc-operate","data-route-kind":"operate.cycle","data-cycle-presentation":s.presentation,"data-cycle-source":s.source,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Cycle progress",children:[r.jsx(Ba,{label:"terminal",value:s.progress.terminal}),r.jsx(Ba,{label:"total",value:s.progress.total})]}),r.jsx(st,{headingLevel:1,eyebrow:`planr-operate · ${s.vocabulary.title.toLowerCase()}`,title:s.cycle.focus[0]??s.vocabulary.title,description:`${Pt(s.cycle.state)} · ${Pt(s.cycle.health)}`,actions:r.jsxs(r.Fragment,{children:[r.jsx(fa,{state:s.cycle.state}),r.jsx(fa,{state:s.cycle.health}),c?r.jsx("a",{className:"pc-row-link","data-review-navigation":"","data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:"Open Review"}):null]})}),s.source==="durable-resume"?r.jsx("p",{className:"pc-operate__notice","data-tone":"verified",role:"status",children:"Your saved cycle has been restored."}):null,s.cycle.state==="closed"?r.jsx("p",{className:"pc-operate__notice",role:"status",children:"This Cycle is closed. Persistent Decisions, Actions, Findings, Outcomes, and Learnings remain discoverable below."}):null,r.jsx(AI,{stages:s.stages,cycleId:s.cycle.cycleId,health:s.cycle.health,eyebrow:"Observe through Learn",title:s.currentStage?jo(s.currentStage.id):Pt(s.cycle.state),labelledBy:"op-cycle-detail-spine-title"}),r.jsx(n$,{model:s,currentBinding:e,executiveBoard:t.current.executiveBoard}),r.jsxs("div",{className:"op-cycle-detail__workspace",children:[r.jsxs("div",{className:"op-cycle-detail__primary",children:[r.jsx(Xz,{model:s}),r.jsx(Wz,{model:s}),r.jsx(e$,{model:s})]}),r.jsx(t$,{model:s})]})]})}const i$=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,r$=4*1024*1024;function s$(e){return typeof e=="object"&&e!==null&&e.kind==="operate-executive-board-display-surface"}function o$(e,t,a){if(!i$.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(a.productArea!=="operate"||a.cycleId===null||a.subjectId===null)throw new Error("Operate Cycle detail identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s}async function c$(e){const{identity:t}=e;if(t.domainId!=="business"||t.cycleId===null)return null;const a=o$(e.origin,`/api/operate/cycles/${encodeURIComponent(t.cycleId)}/executive-board`,t),s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>r$)throw new Error("Executive board response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Executive board response is not JSON.")}if(!s.ok||!s$(l))return null;try{Dg(l,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash,subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return l}function l$(){if(typeof window>"u")return"";const{origin:e,protocol:t,hostname:a,pathname:s,search:c,hash:l}=window.location;return t!=="http:"||!["127.0.0.1","localhost"].includes(a)||s!=="/"||c||l?"":e}function d$(e,t){const a=gI(e);return a(t)?so({kind:"ready",binding:e,data:t,reasonCodes:[],error:null,mutationEnabled:!1,policy:oo("ready")},{currentBinding:e,validateData:a}):null}function u$(e,t){const a=l$(),s=t&&a.length>0,c=Mz({identity:e,sourceKey:s?"executive-board":"executive-board-offline",read:async({identity:l,signal:u})=>!s||l.cycleId===null?null:c$({origin:a,identity:l,signal:u}),validate:l=>{if(l===null)return null;const u=d$(e,l);if(!u)throw new Error("Executive board display did not verify.");return u}});if(t){if(!s)return null;if(!(c.phase==="loading"||c.phase==="refreshing"))return c.phase!=="ready"?null:c.data}}function f$({currentBinding:e,workspace:t,reviewNavigation:a=null}){const s=e.domainId==="business",c=u$(e,s),l=Object.freeze({current:Object.freeze({workspace:t,...s?{executiveBoard:c??null}:{}})});return s&&c===void 0?r.jsx("div",{className:"op-workspace op-cycle-detail","data-route-kind":"operate.cycle",children:r.jsx(be,{state:"booting",eyebrow:"Executive board",title:"Loading executive board",description:"Waiting for the owner-issued executive board display for this business Cycle."})}):r.jsx(a$,{currentBinding:e,sources:l,reviewNavigation:a})}function mI(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const p$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function yI(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/cycles"&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function tm(e){const t=yI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="cycles"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"cycles",subjectId:null,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function h$(e,t){const a=yI(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!tm(a)(e.data))return null;const s=e.data;if(s.payload.surface!=="cycles")return null;const c=s.payload,l=p$[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==e.mutationEnabled?null:Object.freeze({display:s,surface:c,presentation:l})}function g$(e){return e==="business"?"Business Cycles":e==="software"?"Repository Cycles":"Operating Cycles"}const A$=new Set(["blocked","failed","cancelled"]);function m$(e){const t=e.stages.find(a=>a.state==="current");return t?jo(t.id):mI(e.health)}const y$=[{key:"cycle",label:"Cycle",render:e=>r.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=>r.jsx(fa,{state:e.state})},{key:"health",label:"Health",render:e=>r.jsx(fa,{state:e.health})},{key:"current",label:"Current stage",render:e=>m$(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 E$({currentBinding:e,current:t}){const a=h$(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-cycle-list pc-operate","data-route-kind":"operate.cycles",children:r.jsx(be,{state:"incompatible",eyebrow:"Cycle projection",title:"Cycles cannot be trusted",description:"The owner-issued display did not pass exact binding and integrity verification."})});const{surface:s,presentation:c}=a,l=s.data.cycles,u=l.map((A,y)=>({...A,id:`${A.cycleId}:${y}`})),f=[],h=new Map;for(const A of l)h.has(A.state)||f.push(A.state),h.set(A.state,(h.get(A.state)??0)+1);return r.jsxs("div",{className:"op-workspace op-cycle-list pc-operate","data-route-kind":"operate.cycles","data-cycle-presentation":c,children:[c!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",c," projection. Durable Cycle identity remains visible; no action is inferred."]}):null,f.length>0?r.jsx("ul",{className:"pc-metrics","aria-label":"Cycle states",children:f.map(A=>r.jsx(Ba,{label:mI(A),value:h.get(A)??0,tone:A$.has(A)?"attention":"default"},A))}):null,r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · cycles",title:g$(s.domainId),count:`${l.length} ${l.length===1?"cycle":"cycles"}`,description:"Follow the work from observation through learning."}),l.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Cycles",title:"No cycles yet",description:"There is no active cycle in this workspace yet."}):r.jsx(ji,{columns:y$,rows:u,caption:"Operating cycles"})]})}const B$=Object.freeze({DetailRoute:f$,ListPage:E$,createListValidator:tm});function Pb(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function v$(e,t,a){return e.unavailableReason?`${e.unavailableReason.code}: ${e.unavailableReason.message}`:e.actionLocator===null?"No owner-issued action locator is available for this item.":t?null:a.length>0?a.join(" · "):"Mutation is unavailable for this exact Inbox projection."}function b$(e){return Pa({kind:"operate.inbox-item",subjectId:e})}function EI({item:e,mutationEnabled:t,pendingItemId:a,surfaceReasonCodes:s,showDeepLink:c=!0,headingLevel:l=3,onPreview:u}){const f=`op-inbox-action-${encodeURIComponent(e.itemId)}`,h=e.navigationLocator??null,A=v$(e,t,s),y=h===null&&A===null,m=l===2?"h2":"h3";return r.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":`${f}-title`,children:[r.jsxs("header",{className:"op-inbox-item__header",children:[r.jsx("div",{className:"op-inbox-item__sequence","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:Pb(e.kind)}),r.jsx(m,{id:`${f}-title`,children:e.title}),r.jsx("p",{className:"op-inbox-item__consequence",children:e.consequence})]}),r.jsx("span",{className:"op-inbox-item__state",children:Pb(e.state)})]}),r.jsxs("dl",{className:"op-inbox-item__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Owner"}),r.jsx("dd",{children:"Assigned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Blocking"}),r.jsx("dd",{children:e.blocking?"Yes":"No"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expiry"}),r.jsx("dd",{children:e.expiresAt?r.jsx("time",{dateTime:e.expiresAt,children:e.expiresAt}):"Not returned"})]})]}),r.jsxs("details",{className:"op-inbox-item__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("dl",{className:"op-inbox-item__facts",children:r.jsxs("div",{children:[r.jsx("dt",{children:"Owner ID"}),r.jsx("dd",{children:r.jsx("code",{children:e.ownerActorId})})]})})]}),r.jsxs("div",{className:"op-inbox-item__disclosure",children:[r.jsxs("details",{children:[r.jsxs("summary",{children:["Evidence (",e.evidence.length,")"]}),e.evidence.length>0?r.jsx("ol",{children:e.evidence.map((E,b)=>r.jsxs("li",{children:[r.jsx("code",{children:E.evidenceRefId}),r.jsx("span",{children:E.relation}),r.jsxs("span",{children:[E.classification," · ",E.accessState]})]},`${E.evidenceRefId}:${b}`))}):r.jsx("p",{children:"No item-bound evidence was returned."})]}),r.jsxs("details",{children:[r.jsxs("summary",{children:["Required parties (",e.requiredParties.length,")"]}),e.requiredParties.length>0?r.jsx("ol",{children:e.requiredParties.map((E,b)=>r.jsxs("li",{children:[r.jsx("code",{children:E.partyId}),r.jsx("span",{children:E.actorKind}),r.jsx("span",{children:E.state}),r.jsx("strong",{children:E.redacted?"Identity redacted":E.actorId??"Actor not returned"})]},`${E.partyId}:${b}`))}):r.jsx("p",{children:"No required party was returned."})]}),r.jsxs("details",{children:[r.jsxs("summary",{children:["Redactions (",e.redactions.length,")"]}),e.redactions.length>0?r.jsx("ol",{children:e.redactions.map((E,b)=>r.jsxs("li",{children:[r.jsx("span",{children:E.classification}),r.jsx("strong",{children:E.count}),r.jsx("code",{children:E.reason})]},`${E.classification}:${E.reason}:${b}`))}):r.jsx("p",{children:"No redaction was returned."})]})]}),r.jsxs("footer",{className:"op-inbox-item__actions",children:[c?r.jsx("a",{className:"op-inbox-item__link",href:b$(e.itemId),children:"View item"}):r.jsx("a",{className:"op-inbox-item__link",href:"#/operate/inbox",children:"Back to Inbox"}),h?r.jsx("a",{className:"op-inbox-item__link","data-review-navigation":"","data-review-read-action-digest":h.readActionDigest,href:h.deepLink,children:"Open Review"}):r.jsx("fieldset",{className:"op-inbox-item__trigger-anchor","data-inbox-item-trigger-anchor":"",tabIndex:-1,"aria-labelledby":`${f}-title`,children:y?r.jsx(Mt,{id:f,disabled:!1,pendingLabel:"Verifying exact preview","aria-haspopup":"dialog",onInvoke:()=>u(e,f),children:"Open verified preview"}):r.jsx(Mt,{id:f,disabled:!0,disabledReason:A??"No owner-issued action locator is available.","aria-haspopup":"dialog",children:"Open verified preview"})}),h===null&&a===e.itemId?r.jsx("span",{className:"op-inbox-item__pending",role:"status",children:"Verifying the exact owner preview."}):null]})]})}const Ug=Object.freeze(["decision","approval","verification"]),w$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function BI(e){try{const t=Ve(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 nm(e){const t=BI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="inbox"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"inbox",subjectId:t.subjectId,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function x$(e){return JSON.stringify([e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation])}function j$(e){var t,a;return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,((t=e.eventHead)==null?void 0:t.sequence)??null,((a=e.eventHead)==null?void 0:a.hash)??null,e.viewHash])}function Fb(e,t){const a=BI(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a))return null;const s=w$[e.kind];if(s===void 0||!nm(a)(e.data))return null;const c=e.data;if(c.payload.surface!=="inbox")return null;const l=c.payload;if(l.status!==s||l.mutationEnabled!==e.mutationEnabled||l.data.requestBinding.projectId!==a.projectId||l.data.requestBinding.generation!==a.generation)return null;const u=l.data.inbox,f=Object.freeze({decision:Object.freeze(u.filter(y=>y.kind==="decision")),approval:Object.freeze(u.filter(y=>y.kind==="approval")),verification:Object.freeze(u.filter(y=>y.kind==="verification"))}),h=a.subjectId!==null,A=h?u.find(y=>y.itemId===a.subjectId)??null:null;return Object.freeze({kind:"inbox",presentation:s,binding:e.binding,actionContextKey:j$(a),selectionScopeKey:x$(a),display:c,surface:l,items:u,categories:f,detailRequested:h,detailItem:A,mutationEnabled:l.mutationEnabled&&rA(e,a)})}const Rc=Object.freeze({decision:"Decision",approval:"Approval",verification:"Verification"});function Q$(e){return Ug.some(t=>t===e)}function I$({model:e,mutationEnabled:t=e.mutationEnabled,selected:a,pendingItemId:s,onSelectedChange:c,onPreview:l}){return r.jsxs(Ud.Root,{className:"op-inbox-tabs",value:a,activationMode:"automatic",orientation:"horizontal",onValueChange:u=>{Q$(u)&&c(u)},children:[r.jsx(Ud.List,{className:"op-inbox-tabs__list","aria-label":"Inbox categories",children:Ug.map(u=>{const f=e.categories[u].length,h=f===1?"item":"items";return r.jsxs(Ud.Trigger,{className:"op-inbox-tabs__trigger",value:u,"aria-label":`${Rc[u]}, ${f} ${h}`,children:[r.jsx("span",{children:Rc[u]}),r.jsx("strong",{"aria-hidden":"true",children:f})]},u)})}),Ug.map(u=>{const f=e.categories[u];return r.jsx(Ud.Content,{className:"op-inbox-tabs__panel",value:u,forceMount:!0,tabIndex:0,"aria-label":`${Rc[u]} queue, ${f.length} ${f.length===1?"item":"items"}`,children:f.length>0?r.jsx("ol",{className:"op-inbox-queue","aria-label":`${Rc[u]} items`,children:f.map(h=>r.jsx("li",{children:r.jsx(EI,{item:h,mutationEnabled:t,pendingItemId:s,surfaceReasonCodes:e.surface.reasonCodes,headingLevel:2,onPreview:l})},h.itemId))}):r.jsxs("section",{className:"op-inbox-empty",role:"status",children:[r.jsx("p",{className:"op-eyebrow",children:"Nothing to review"}),r.jsxs("h2",{children:["No ",Rc[u].toLocaleLowerCase("en-US")," items"]}),r.jsx("p",{children:"This category is clear right now."})]})},u)})]})}function C$(e){return qA({...e,routeKinds:["operate.inbox","operate.inbox-item"],routeErrorCode:"OPERATE_INBOX_ROUTE_REQUIRED"})}const S$=2147e6;function Vb(e){return e instanceof DOMException&&e.name==="AbortError"}function Xd(e){return e instanceof Error&&e.name==="OPERATION_UNCERTAIN"}function O$(){typeof window>"u"||window.setTimeout(()=>window.location.reload(),0)}function Lg(e,t){var a;return e.itemId===t.itemId&&((a=e.actionLocator)==null?void 0:a.subjectId)===t.locator.subjectId&&e.actionLocator.actionDigest===t.locator.actionDigest}function ao(e,t){return t!==null&&e.contextKey===t.actionContextKey&&Ye(e.binding,t.binding)&&t.items.some(a=>Lg(a,e))}function vI(e){return Date.parse(e.custody.preview.expiresAt)}function qb(e){const t=vI(e);return!Number.isFinite(t)||t<=Date.now()}function _$(e,t){const a=t===null?null:document.getElementById(t);if(a instanceof HTMLButtonElement&&e.contains(a)&&a.isConnected&&!a.disabled)return a;const s=e.querySelector('.op-inbox-tabs__panel[data-state="active"]')??e.querySelector(".op-inbox__detail"),c=s?[...s.querySelectorAll("[data-inbox-item-trigger-anchor]")]:[];for(const h of c){const A=h.querySelector("button.op-governed-button");if(A!=null&&A.isConnected&&!A.disabled)return A}const l=c.find(h=>h.isConnected);if(l)return l;const u=e.querySelector('.op-inbox-tabs__trigger[aria-selected="true"]');if(u!=null&&u.isConnected)return u;const f=e.querySelector("[data-inbox-focus-heading]");return f!=null&&f.isConnected?f:e.isConnected?e:null}function N$({currentBinding:e,current:t,actions:a,onRefetch:s}){var Ze,Ie;const c=B.useMemo(()=>Fb(t,e),[t,e]),l=(c==null?void 0:c.selectionScopeKey)??null,u=((Ze=c==null?void 0:c.detailItem)==null?void 0:Ze.kind)??"decision",[f,h]=B.useState(()=>Object.freeze({scope:l,category:u})),A=f.scope===l?f.category:u,[y,m]=B.useState(null),[E,b]=B.useState(null),[w,x]=B.useState(!1),[j,I]=B.useState(!1),[C,O]=B.useState(null),[S,_]=B.useState(null),[k,N]=B.useState(!1),z=B.useRef(a??null),M=B.useRef(null),L=B.useRef(0),Z=B.useRef(!1),F=B.useRef(!1),oe=B.useRef(null),re=B.useRef(null),pe=B.useRef(null),Y=B.useRef(null),V=B.useRef(null),te=B.useRef(!0),le=B.useCallback(ce=>{const De=Oe=>{var Xt;const xt=V.current;if(!te.current||!(xt!=null&&xt.isConnected)||typeof document>"u")return;const mt=ce===null?null:document.getElementById(ce);if(mt instanceof HTMLButtonElement&&xt.contains(mt)&&mt.isConnected&&mt.disabled&&Oe>0&&typeof window<"u"){window.setTimeout(()=>De(Oe-1),16);return}(Xt=_$(xt,ce))==null||Xt.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>"u"?De(4):window.setTimeout(()=>De(4),0)})},[]),fe=B.useCallback(async()=>{if(s){const ce=await s();return ce&&typeof ce=="object"?ce:null}return O$(),null},[s]),T=B.useCallback(async(ce=M.current)=>{if(!(!ce||k)){N(!0);try{const De=await fe(),Oe=De!=null&&De.binding?Fb(De,De.binding):null;if(!Oe||!z.current)throw new Error("Exact reconciliation failed.");z.current.reconcile(Oe.binding),M.current=null,_(null),O({contextKey:Oe.actionContextKey,tone:"verified",text:"Exact current Inbox truth was reconciled. A new governed preview is required."})}catch{O({contextKey:(c==null?void 0:c.actionContextKey)??"",tone:"attention",text:"OPERATION_UNCERTAIN · Exact current Inbox truth did not reconcile; do not retry."})}finally{te.current&&N(!1)}}},[c==null?void 0:c.actionContextKey,k,fe]),X=B.useCallback(()=>{const ce=pe.current;ce!==null&&(clearTimeout(ce),pe.current=null)},[]),se=B.useCallback(ce=>{var mt;X();const De=oe.current;oe.current=null,L.current+=1;const Oe=re.current,xt=Oe!==null||Z.current||F.current;return Oe==null||Oe.custody.cancel(),xt&&((mt=z.current)==null||mt.cancel()),re.current=null,Z.current=!1,F.current=!1,m(null),b(null),I(!1),x(!1),ce&&le(De),De},[X,le]),de=B.useCallback(ce=>{!te.current||re.current!==ce||!ao(ce,Y.current)||(se(!0),O({contextKey:ce.contextKey,tone:"attention",text:"The verified preview expired before confirmation. Current Inbox truth is being refreshed."}),fe())},[se,fe]),ye=B.useCallback(ce=>{X();const De=()=>{if(!te.current||re.current!==ce)return;const Oe=vI(ce)-Date.now();if(!Number.isFinite(Oe)||Oe<=0){pe.current=null,de(ce);return}pe.current=setTimeout(De,Math.min(Oe,S$))};De()},[X,de]);B.useEffect(()=>(te.current=!0,a&&(z.current=a),!z.current&&typeof window<"u"&&(z.current=C$({origin:window.location.origin})),()=>{var De;te.current=!1,L.current+=1,X();const ce=z.current;(De=re.current)==null||De.custody.cancel(),ce==null||ce.cancel(),re.current=null,Z.current=!1,F.current=!1,queueMicrotask(()=>{(!te.current||z.current!==ce)&&(ce==null||ce.dispose()),!te.current&&z.current===ce&&(z.current=null)})}),[a,X]),B.useLayoutEffect(()=>{f.scope!==l&&h(Object.freeze({scope:l,category:u}))},[f.scope,u,l]),B.useLayoutEffect(()=>{var _t;const ce=Y.current;Y.current=c;const De=(c==null?void 0:c.actionContextKey)??null;O(We=>We!==null&&We.contextKey!==De?null:We);const Oe=re.current,xt=(ce==null?void 0:ce.actionContextKey)!==De;if(!(Oe!==null&&!ao(Oe,c))&&!(xt&&(Z.current||F.current)))return;const Xt=Oe!==null&&c!==null&&Oe.selectionScopeKey===c.selectionScopeKey&&!c.items.some(We=>Lg(We,Oe)),Fa=(Oe==null?void 0:Oe.selectionScopeKey)??null,Kn=se(!1);le(Kn),Xt&&((_t=Y.current)==null?void 0:_t.selectionScopeKey)===Fa&&fe()},[se,c,fe,le]),B.useEffect(()=>{const ce=a??z.current;if(!(!ce||!c))try{ce.bind(c.binding)}catch{O({contextKey:c.actionContextKey,tone:"refusal",text:"The governed Inbox adapter refused this exact route binding."})}},[a,c]);const Ee=B.useCallback(ce=>{h(Object.freeze({scope:l,category:ce}))},[l]),R=B.useCallback(async(ce,De)=>{const Oe=ce.actionLocator,xt=z.current;if(!c||!Oe||!xt||Z.current)return;const mt=c.binding,Xt=c.actionContextKey,Fa=c.selectionScopeKey;Z.current=!0;const Kn=++L.current;oe.current=De,m(ce.itemId),O(null);try{xt.bind(mt);const _t=await xt.preview({subjectId:Oe.subjectId,actionDigest:Oe.actionDigest}),We=Y.current,Go=We!==null&&We.actionContextKey===Xt&&Ye(mt,We.binding)&&We.items.some(ps=>Lg(ps,{itemId:ce.itemId,locator:Oe}));if(!te.current||Kn!==L.current||!Go){_t.cancel();return}if(_t.preview.authority!=="allowed"){_t.cancel(),xt.cancel(),O({contextKey:Xt,tone:"refusal",text:_t.preview.reasonCodes.length>0?_t.preview.reasonCodes.join(" · "):`Preview authority: ${_t.preview.authority}.`});const ps=oe.current;oe.current=null,le(ps),await fe();return}const vr=Object.freeze({itemId:ce.itemId,locator:Object.freeze({subjectId:Oe.subjectId,actionDigest:Oe.actionDigest}),binding:mt,contextKey:Xt,selectionScopeKey:Fa,custody:_t});if(qb(vr)){_t.cancel(),se(!0),O({contextKey:Xt,tone:"attention",text:"The verified preview expired before confirmation. Current Inbox truth is being refreshed."}),await fe();return}re.current=vr,b(vr),x(!0),ye(vr)}catch(_t){const We=Y.current;if(!Vb(_t)&&te.current&&Kn===L.current&&(We==null?void 0:We.actionContextKey)===Xt&&Ye(mt,We.binding)){xt.cancel(),Xd(_t)&&(M.current=mt,_(mt)),O({contextKey:Xt,tone:Xd(_t)?"attention":"refusal",text:Xd(_t)?"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."});const Go=oe.current;oe.current=null,le(Go),Xd(_t)?await T(mt):await fe()}}finally{Kn===L.current&&(Z.current=!1,te.current&&m(null))}},[se,c,T,fe,le,ye]),J=B.useCallback(async()=>{const ce=re.current;if(!ce||F.current)return;if(!ao(ce,Y.current)){se(!0);return}if(qb(ce)){de(ce);return}F.current=!0;const De=L.current;I(!0);try{const Oe=await ce.custody.confirm();if(!te.current||De!==L.current||!ao(ce,Y.current))return;Oe.ok?O({contextKey:ce.contextKey,tone:"verified",text:"The transition was accepted. The Inbox has been refreshed."}):(M.current=ce.binding,_(ce.binding),O({contextKey:ce.contextKey,tone:"attention",text:Oe.reasonCode})),se(!0),Oe.ok?await fe():await T(ce.binding)}catch(Oe){!Vb(Oe)&&te.current&&De===L.current&&ao(ce,Y.current)&&(O({contextKey:ce.contextKey,tone:"refusal",text:"The governed confirmation was refused. Current Inbox truth is being refreshed."}),se(!0),await fe())}finally{De===L.current&&(F.current=!1,te.current&&I(!1))}},[se,de,T,fe]);if(!c)return r.jsx("div",{ref:V,className:"op-workspace op-inbox pc-operate","data-inbox-focus-workspace":"","data-route-kind":"operate.inbox",tabIndex:-1,children:r.jsx(be,{state:"incompatible",eyebrow:"Inbox projection",title:"Inbox cannot be trusted",description:"The owner-issued Inbox did not pass exact binding and integrity verification."})});if(c.detailRequested&&!c.detailItem)return r.jsxs("div",{ref:V,className:"op-workspace op-inbox pc-operate","data-inbox-focus-workspace":"","data-route-kind":"operate.inbox-item",tabIndex:-1,children:[r.jsx("header",{className:"op-inbox__header",children:r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operate · Inbox"}),r.jsx("h1",{"data-inbox-focus-heading":"",tabIndex:-1,children:"Inbox item not found"}),r.jsx("p",{children:"This item is not available in the current Inbox."})]})}),r.jsx(be,{state:"unavailable",eyebrow:"Not found",title:"No matching Inbox item",description:"Return to the Inbox to review the work that is currently available.",actions:r.jsx("a",{className:"op-inline-action",href:"#/operate/inbox",children:"Return to Inbox"})})]});const ne=(C==null?void 0:C.contextKey)===c.actionContextKey?C:null,Ae=S!==null,we=E!==null&&ao(E,c)?E:null,xe=(we==null?void 0:we.custody.preview)??null;return r.jsxs("div",{ref:V,className:"op-workspace op-inbox","data-inbox-focus-workspace":"","data-route-kind":c.detailRequested?"operate.inbox-item":"operate.inbox","data-inbox-presentation":c.presentation,tabIndex:-1,children:[r.jsxs("header",{className:"op-inbox__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operate · Inbox"}),r.jsx("h1",{"data-inbox-focus-heading":"",tabIndex:-1,children:((Ie=c.detailItem)==null?void 0:Ie.title)??"Decision and approval Inbox"}),r.jsx("p",{children:"Review decisions, approvals, and verification work."}),r.jsx(fa,{state:c.presentation})]}),r.jsx("dl",{className:"op-inbox__custody",children:r.jsxs("div",{children:[r.jsx("dt",{children:"Items"}),r.jsx("dd",{children:c.items.length})]})})]}),r.jsxs("details",{className:"op-inbox__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-inbox__custody",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"View state"}),r.jsx("dd",{children:c.presentation})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event record"}),r.jsx("dd",{children:r.jsxs("code",{children:[c.surface.eventHead.sequence," · ",c.surface.eventHead.hash??"genesis"]})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"View key"}),r.jsx("dd",{children:r.jsx("code",{children:c.surface.viewHash})})]})]})]}),c.presentation!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["Current access-safe Inbox truth remains visible. Mutation is unavailable on this"," ",c.presentation," projection."]}):null,ne?r.jsx("p",{className:"pc-operate__notice","data-tone":ne.tone,role:"status","aria-live":"polite",children:ne.text}):null,Ae?r.jsx(be,{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:r.jsx(Mt,{disabled:!s||k,disabledReason:"A parser-verified current Inbox projection is required.",onInvoke:()=>void T(),children:k?"Reconciling current Inbox…":"Reconcile current Inbox"})}):null,c.detailItem?r.jsxs("section",{className:"op-inbox__detail","aria-labelledby":"op-inbox-detail-title",children:[r.jsxs("div",{className:"op-inbox__section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Selected item"}),r.jsx("h2",{id:"op-inbox-detail-title",children:"Review item"})]}),r.jsx("p",{children:"This item is available in the current Inbox."})]}),r.jsx(EI,{item:c.detailItem,mutationEnabled:c.mutationEnabled&&!Ae&&!k,pendingItemId:y,surfaceReasonCodes:c.surface.reasonCodes,showDeepLink:!1,onPreview:R})]}):r.jsx(I$,{model:c,mutationEnabled:c.mutationEnabled&&!Ae&&!k,selected:A,pendingItemId:y,onSelectedChange:Ee,onPreview:R}),r.jsx(rt.Root,{open:w&&xe!==null,onOpenChange:ce=>{!ce&&!F.current&&se(!0)},children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsx(rt.Content,{className:"op-inbox-dialog__content",onCloseAutoFocus:ce=>{ce.preventDefault()},children:xe?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Verified governed preview"}),r.jsx(rt.Title,{className:"op-inbox-dialog__title",children:"Confirm the exact transition"}),r.jsx(rt.Description,{className:"op-inbox-dialog__description",children:xe.consequence}),r.jsxs("dl",{className:"op-inbox-dialog__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Subject kind and ID"}),r.jsxs("dd",{children:[xe.subject.kind," ",r.jsx("code",{children:xe.subject.id})]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Revision"}),r.jsx("dd",{children:xe.subject.revision??"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Subject hash"}),r.jsx("dd",{children:r.jsx("code",{children:xe.subject.hash??"No subject hash returned"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head sequence"}),r.jsx("dd",{children:r.jsx("code",{children:xe.eventHead.sequence})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head hash"}),r.jsx("dd",{children:r.jsx("code",{children:xe.eventHead.hash??"No event hash returned"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expires"}),r.jsx("dd",{children:r.jsx("time",{dateTime:xe.expiresAt,children:xe.expiresAt})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Effect"}),r.jsx("dd",{children:xe.allowedAction.effect})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Reversible"}),r.jsx("dd",{children:xe.transition.reversible?"Yes":"No"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next state"}),r.jsx("dd",{children:xe.transition.nextState})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Action digest"}),r.jsx("dd",{children:r.jsx("code",{children:xe.actionDigest})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Preview digest"}),r.jsx("dd",{children:r.jsx("code",{children:xe.previewHash})})]})]}),r.jsxs("section",{className:"op-inbox-dialog__targets","aria-labelledby":"op-preview-targets",children:[r.jsx("h2",{id:"op-preview-targets",children:"Exact targets and dispositions"}),r.jsx("ol",{children:xe.transition.targets.map(ce=>r.jsxs("li",{children:[r.jsx("strong",{children:ce.kind}),r.jsx("code",{children:ce.id}),r.jsxs("span",{children:["Revision ",ce.revision??"not returned"]}),r.jsx("code",{children:ce.hash??"No target hash returned"}),r.jsx("span",{children:ce.disposition??"No disposition returned"})]},`${ce.kind}:${ce.id}`))})]}),xe.transition.threshold?r.jsxs("section",{className:"op-inbox-dialog__threshold","aria-labelledby":"op-preview-threshold",children:[r.jsx("h2",{id:"op-preview-threshold",children:"Approval threshold"}),r.jsxs("p",{children:[xe.transition.threshold.recorded," recorded ·"," ",xe.transition.threshold.required," required ·"," ",xe.transition.threshold.remaining," remaining"]})]}):null,r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(rt.Cancel,{asChild:!0,children:r.jsx("button",{type:"button",className:"op-inbox-dialog__cancel",disabled:j,children:"Cancel"})}),r.jsx("button",{type:"button",className:"op-governed-button op-inbox-dialog__confirm",disabled:j,"aria-busy":j||void 0,onClick:J,children:j?"Waiting for durable acceptance":"Confirm exact transition"})]})]}):null})]})})]})}const R$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function bI(e){try{const t=Ve(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 am(e){const t=bI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=kg(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash});return kg(s,l),!0}catch{return!1}}}function D$(e,t){const a=bI(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!am(a)(e.data))return null;const s=e.data,c=s.payload,l=R$[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==!1||e.mutationEnabled?null:Object.freeze({kind:"recovery",presentation:l,binding:e.binding,display:s,payload:c,recoveryState:c.data.recoveryState,inspection:c.data.inspection,history:c.data.history,allowedActions:c.data.allowedActions,mutationEnabled:!1})}const T$=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 k$(e){return e.filter(t=>{const a=t.tool??"";return t.effect==="read-only"||a.includes("recovery")||a.includes("reconcile")||a.endsWith(".rollback")})}function M$(e){return e==="restored"?"ready-to-resume":e==="corrupt"||e==="incompatible"?"incompatible":"unavailable"}const G$=[{key:"sequence",label:"Seq",mono:!0,render:e=>e.sequence},{key:"change",label:"Change",render:e=>{var t;return((t=e.change)==null?void 0:t.summary)??e.type}},{key:"timestamp",label:"When",mono:!0,render:e=>r.jsx("time",{dateTime:e.timestamp,children:e.timestamp})},{key:"result",label:"Result",align:"right",render:e=>{var t;return(t=e.result)!=null&&t.status?r.jsx(fa,{state:e.result.status}):"—"}}];function Y$({currentBinding:e,current:t}){const a=D$(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-recovery pc-operate","data-route-kind":"operate.recovery",children:r.jsx(be,{state:"incompatible",eyebrow:"Recovery projection",title:"Recovery cannot be trusted",description:"The owner-issued recovery display did not pass exact binding and integrity verification."})});const s=T$[a.recoveryState],c=k$(a.allowedActions),l=M$(a.recoveryState),u=`${a.payload.eventHead.sequence} · ${a.payload.eventHead.hash??"genesis"}`,f=a.history.slice(-6).map((h,A)=>({...h,id:`${h.eventId}:${A}`}));return r.jsxs("section",{className:"op-workspace op-recovery pc-operate","data-route-kind":"operate.recovery","data-recovery-state":a.recoveryState,"data-recovery-presentation":a.presentation,"aria-label":"Operate recovery",children:[r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · recovery",title:"Recovery",description:"Understand what is known, what is not, and the safe next step.",actions:r.jsx(fa,{state:a.recoveryState})}),r.jsx(cs,{items:[{term:"Recovery state",description:a.recoveryState,mono:!0},{term:"Event record",description:u,mono:!0},{term:"View key",description:a.payload.viewHash,mono:!0}]}),r.jsx(be,{state:l,eyebrow:"Recovery",title:s.title,description:s.summary}),r.jsxs("div",{className:"pc-operate__split",children:[r.jsxs("section",{className:"pc-operate__panel","aria-labelledby":"op-recovery-proven-title",children:[r.jsx("h2",{id:"op-recovery-proven-title",children:"What is proven"}),r.jsx("p",{children:s.known})]}),r.jsxs("section",{className:"pc-operate__panel","aria-labelledby":"op-recovery-unknown-title",children:[r.jsx("h2",{id:"op-recovery-unknown-title",children:"What remains unknown"}),r.jsx("p",{children:s.unknown})]})]}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Available recovery steps",children:[r.jsx(st,{headingLevel:2,title:"Available recovery steps",description:"OpenPlanr shows only steps that are safe for the current state."}),r.jsx("div",{className:"pc-operate__controls",children:c.length>0?c.map(h=>r.jsx(Mt,{variant:h.tool.endsWith(".rollback")?"danger":"secondary",disabled:!0,disabledReason:"The dashboard has not bound a live recovery command gateway for this actor.",children:h.label},h.tool)):r.jsx(Mt,{disabled:!0,disabledReason:"OpenPlanr returned no legal recovery action for this actor and current state.",children:"No legal recovery action"})})]}),r.jsx(be,{state:"incompatible",eyebrow:"Prohibited action",title:"Prohibited action",description:s.forbidden}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Recovery history",children:[r.jsx(st,{headingLevel:2,title:"Recovery history",count:a.history.length,description:"Original intent and every recovery result remain immutable."}),f.length===0?r.jsx("p",{className:"pc-operate__notice",children:"No access-safe recovery history is projected."}):r.jsx(ji,{columns:G$,rows:f,caption:"Immutable recovery history"})]}),r.jsxs("section",{className:"pc-operate__section","aria-label":"What support can collect",children:[r.jsx(st,{headingLevel:2,title:"What support can collect",description:"Support information is prepared safely and never uploaded automatically."}),r.jsx(cs,{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"}]})]})]})}const H$=Object.freeze({InboxPage:N$,RecoveryPage:Y$,createInboxValidator:nm,createRecoveryValidator:am});function Kh(e){return e.replaceAll("-"," ").replaceAll("_"," ")}function z$(e){return e.length===0||e.length<=2048&&/^\S(?:[\s\S]*\S)?$/u.test(e)}function $$({choice:e,custody:t,confirming:a,onCancel:s,onConfirm:c}){var A;const[l,u]=B.useState(""),f=z$(l),h=(t==null?void 0:t.preview)??null;return r.jsx(rt.Root,{open:h!==null&&e!==null,onOpenChange:y=>{!y&&!a&&s()},children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsx(rt.Content,{className:"op-inbox-dialog__content op-review-dialog",children:h&&e?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Exact owner choice"}),r.jsxs(rt.Title,{className:"op-inbox-dialog__title",children:["Record “",e.choice.label,"”?"]}),r.jsx(rt.Description,{className:"op-inbox-dialog__description",children:e.choice.consequence}),r.jsxs("dl",{className:"op-inbox-dialog__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Authority"}),r.jsx("dd",{children:"Review only"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"External effects"}),r.jsx("dd",{children:"Not authorized"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Runtime effect"}),r.jsx("dd",{children:r.jsx("code",{children:((A=e.action)==null?void 0:A.action.effect)??"not-issued"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Reversibility"}),r.jsx("dd",{children:Kh(e.choice.reversibility)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head"}),r.jsx("dd",{children:h.eventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Choice proof"}),r.jsx("dd",{children:r.jsx("code",{children:e.choice.choiceHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Preview proof"}),r.jsx("dd",{children:r.jsx("code",{children:h.previewHash})})]})]}),r.jsxs("section",{className:"op-inbox-dialog__targets","aria-labelledby":"op-review-dispositions-title",children:[r.jsx("h2",{id:"op-review-dispositions-title",children:"Exact work dispositions"}),e.choice.requiredDispositions.length?r.jsx("ol",{children:e.choice.requiredDispositions.map(y=>r.jsxs("li",{children:[r.jsx("strong",{children:Kh(y.entityType)}),r.jsx("code",{children:y.entityId}),r.jsx("span",{children:Kh(y.disposition)})]},`${y.entityType}:${y.entityId}`))}):r.jsx("p",{children:"No persistent work disposition is attached to this choice."})]}),r.jsxs("label",{className:"op-review-dialog__note",children:[r.jsxs("span",{children:["Owner note ",r.jsx("small",{children:"(optional)"})]}),r.jsx("textarea",{value:l,maxLength:2048,rows:3,disabled:a,"aria-invalid":!f||void 0,"aria-describedby":"op-review-note-help",onChange:y=>u(y.currentTarget.value)})]}),r.jsx("p",{id:"op-review-note-help",role:f?void 0:"alert",children:f?`${l.length} of 2,048 characters. The exact text is bound into the receipt.`:"Remove leading or trailing whitespace before confirming."}),r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(rt.Cancel,{asChild:!0,children:r.jsx("button",{type:"button",className:"op-inbox-dialog__cancel",disabled:a,children:"Keep reviewing"})}),r.jsx("button",{type:"button",className:"op-governed-button op-inbox-dialog__confirm",disabled:a||!f,"aria-busy":a||void 0,onClick:()=>void c(l===""?null:l),children:a?"Recording immutable receipt":`Record ${e.choice.label}`})]})]}):null})]})})}const Jh=40;function Ln(e){const t=e.replaceAll("-"," ").replaceAll("_"," ");return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Pg({ids:e,model:t,label:a}){if(e.length===0)return r.jsxs("span",{children:["No ",a.toLocaleLowerCase("en-US")," linked."]});const s=new Map(t.payload.data.evidence.map(c=>[c.evidenceRefId,c]));return r.jsx("ul",{className:"op-review__evidence-links","aria-label":a,children:e.map(c=>{const l=s.get(c),u=l?Oo(l.deepLink):null;return r.jsxs("li",{children:[u?r.jsx("a",{href:u,children:c}):r.jsx("code",{children:c}),r.jsx("span",{children:l?`${Ln(l.claimStatus)} · ${Ln(l.freshness)}`:"Not visible"})]},c)})})}function U$({model:e}){const{findings:t,dissent:a,uncertainty:s,gaps:c}=e.payload.data;return r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-challenge-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Challenge record"}),r.jsx("h2",{id:"op-review-challenge-title",children:"What could change this decision"})]}),r.jsxs("div",{className:"op-review__challenge-grid",children:[r.jsxs("section",{"aria-labelledby":"op-review-findings-title",children:[r.jsxs("h3",{id:"op-review-findings-title",children:["Findings (",t.length,")"]}),t.length?r.jsx("ol",{children:t.map(l=>r.jsxs("li",{children:[r.jsx("strong",{children:l.title}),r.jsx("p",{children:l.statement}),r.jsx("span",{children:Ln(l.state)}),l.origin==="operating-intelligence"?r.jsx(Pg,{ids:[...l.supportingEvidenceRefIds,...l.contradictingEvidenceRefIds],model:e,label:`Evidence for ${l.title}`}):null]},l.findingId))}):r.jsx("p",{children:"No findings were returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-dissent-title",children:[r.jsxs("h3",{id:"op-review-dissent-title",children:["Dissent (",a.length,")"]}),a.length?r.jsx("ol",{children:a.map(l=>r.jsxs("li",{children:[r.jsx("p",{children:l.statement}),r.jsx("strong",{children:"Resolution condition"}),r.jsx("p",{children:l.resolutionCondition})]},`${l.sourceArtifactId}:${l.localDissentId}`))}):r.jsx("p",{children:"No dissent was returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-uncertainty-title",children:[r.jsxs("h3",{id:"op-review-uncertainty-title",children:["Uncertainty (",s.length,")"]}),s.length?r.jsx("ol",{children:s.map(l=>r.jsxs("li",{children:[r.jsx("p",{children:l.statement}),r.jsx("span",{children:Ln(l.sourceKind)})]},l.uncertaintyId))}):r.jsx("p",{children:"No explicit uncertainty was returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-gaps-title",children:[r.jsxs("h3",{id:"op-review-gaps-title",children:["Missing proof (",c.length,")"]}),c.length?r.jsx("ol",{children:c.map(l=>r.jsxs("li",{children:[r.jsx("p",{children:l.reason}),r.jsx("strong",{children:"Next step"}),r.jsx("p",{children:l.recoveryDisposition})]},l.absenceId))}):r.jsx("p",{children:"No typed gaps were returned."})]})]})]})}function L$({model:e}){const{claims:t}=e.payload.data;return r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-claims-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Evidence desk"}),r.jsx("h2",{id:"op-review-claims-title",children:"Claims and sentence-level proof"})]}),t.length?r.jsx("ol",{className:"op-review__claims",children:t.map(a=>r.jsxs("li",{children:[r.jsxs("div",{children:[r.jsx("strong",{children:a.statement??`Restricted claim ${a.claimId}`}),r.jsxs("span",{children:[Ln(a.status)," · ",Ln(a.epistemicStatus)]})]}),r.jsx(Pg,{ids:a.supportEvidenceRefIds,model:e,label:`Supporting evidence for ${a.claimId}`}),r.jsx(Pg,{ids:a.contradictEvidenceRefIds,model:e,label:`Contradicting evidence for ${a.claimId}`})]},a.claimId))}):r.jsx("p",{children:"No claim statements were returned for this Review."})]})}function P$({model:e}){const[t,a]=B.useState(Jh),s=e.payload.data.traceMatrix,c=B.useMemo(()=>(s==null?void 0:s.edges.slice(0,t))??[],[s,t]);return s?r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-trace-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Reciprocal trace"}),r.jsx("h2",{id:"op-review-trace-title",children:"Requirement to outcome custody"})]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Nodes"}),r.jsx("dd",{children:s.nodes.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Relationships"}),r.jsx("dd",{children:s.edges.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Restricted"}),r.jsx("dd",{children:s.proof.restrictedNodes})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Typed absences"}),r.jsx("dd",{children:s.proof.typedAbsences})]})]}),r.jsx("section",{className:"op-review__table-scroll","aria-label":"Scrollable reciprocal decision trace",tabIndex:0,children:r.jsxs("table",{children:[r.jsxs("caption",{children:["Exact trace relationships, shown ",c.length," of ",s.edges.length]}),r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",children:"From"}),r.jsx("th",{scope:"col",children:"Relationship"}),r.jsx("th",{scope:"col",children:"To"})]})}),r.jsx("tbody",{children:c.map(l=>r.jsxs("tr",{children:[r.jsxs("td",{children:[r.jsx("span",{children:Ln(l.from.kind)}),r.jsx("code",{children:l.from.id})]}),r.jsx("td",{children:Ln(l.relation)}),r.jsxs("td",{children:[r.jsx("span",{children:Ln(l.to.kind)}),r.jsx("code",{children:l.to.id})]})]},l.edgeId))})]})}),t<s.edges.length?r.jsxs("button",{type:"button",className:"op-inline-action",onClick:()=>a(l=>l+Jh),children:["Show the next ",Math.min(Jh,s.edges.length-t)," relationships"]}):null,s.omissions.length?r.jsxs("details",{children:[r.jsxs("summary",{children:["Trace omissions (",s.omissions.length,")"]}),r.jsx("ul",{children:s.omissions.map(l=>r.jsxs("li",{children:[Ln(l.subject)," ",r.jsx("code",{children:l.subjectId})," · ",Ln(l.kind)]},l.omissionId))})]}):null]}):r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-trace-title",children:[r.jsx("h2",{id:"op-review-trace-title",children:"Reciprocal decision trace"}),r.jsx("p",{children:"The bounded trace matrix is not available in this workspace."})]})}function F$({model:e}){const t=e.payload.data.truthSummary;return r.jsxs(r.Fragment,{children:[r.jsx(U$,{model:e}),r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-proof-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Shared proof truth"}),r.jsx("h2",{id:"op-review-proof-title",children:"What the evidence can prove"})]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Proof status"}),r.jsx("dd",{children:Ln(t.proof.status)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Linked evidence"}),r.jsx("dd",{children:t.proof.linkedEvidence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Restricted evidence"}),r.jsx("dd",{children:t.proof.restrictedEvidence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Unresolved claims"}),r.jsx("dd",{children:t.proof.unresolvedClaims})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Validated seats"}),r.jsxs("dd",{children:[t.seats.validated," / ",t.seats.total]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Verified outcomes"}),r.jsx("dd",{children:t.proof.verifiedOutcomes})]})]}),t.proof.reasonCodes.length?r.jsxs("p",{role:"status",children:["Limits: ",t.proof.reasonCodes.map(Ln).join(" · ")]}):null]}),r.jsx(L$,{model:e}),r.jsx(P$,{model:e})]})}function V$({workspace:e,receipt:t}){const a=e.payload.data.terminalDisposition;if(!a)return null;const s=(t==null?void 0:t.boundSubmission)??null;return r.jsxs("section",{className:"op-review__section op-review__receipt","aria-labelledby":"op-review-receipt-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Immutable record"}),r.jsx("h2",{id:"op-review-receipt-title",tabIndex:-1,children:"Review recorded"})]}),r.jsxs("p",{children:["The owner recorded ",r.jsx("strong",{children:a.decision}),". This receipt does not execute an Action or authorize an external effect."]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Applied choice"}),r.jsx("dd",{children:r.jsx("code",{children:a.appliedChoiceId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed event"}),r.jsx("dd",{children:a.eventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Review read event"}),r.jsx("dd",{children:a.readEventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed"}),r.jsx("dd",{children:r.jsx("time",{dateTime:a.committedAt,children:a.committedAt})})]})]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical receipt proof"}),r.jsxs("dl",{className:"op-review__technical",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Receipt ID"}),r.jsx("dd",{children:r.jsx("code",{children:a.receiptId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source receipt hash"}),r.jsx("dd",{children:r.jsx("code",{children:e.payload.sourceArtifactHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Applied choice hash"}),r.jsx("dd",{children:r.jsx("code",{children:a.appliedChoiceHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed event hash"}),r.jsx("dd",{children:r.jsx("code",{children:a.eventHead.hash??"genesis"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Bound submission hash"}),r.jsx("dd",{children:r.jsx("code",{children:(s==null?void 0:s.boundSubmissionHash)??"Not included in this display"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Owner note"}),r.jsx("dd",{children:s?s.note??"No note recorded":"Not included in this display"})]})]})]})]})}const q$=/(?:\bfile:\/\/|(?:^|[\s"'(=])\/(?:Users|home|private|tmp|var|Volumes|etc|opt|root|srv)\/|\b[A-Za-z]:\\(?:Users|Documents and Settings|Windows|ProgramData)\\)/u,K$=/(?:-----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 J$(e,t){const a=new Error("Review workspace contains unsafe display text.");return a.name="PipelineError",a.code="E_OPERATE_REVIEW_WORKSPACE_UNSAFE",a.fix="",a.details={retryable:!1,context:{path:e,reason:t}},a.toJSON=()=>({ok:!1,code:a.code,problem:a.message,details:a.details}),a}function Z$(e){return q$.test(e)?"private-path":K$.test(e)?"secret":null}function wI(e){const t=(a,s="$")=>{if(typeof a=="string"){const c=Z$(a);if(c!==null)throw J$(s,c);return}if(Array.isArray(a)){a.forEach((c,l)=>t(c,`${s}[${l}]`));return}a&&typeof a=="object"&&Object.entries(a).forEach(([c,l])=>t(l,`${s}.${c}`))};return t(e),e}const xI="openplanr:operate-review-display-workspace:1.0.0",X$=new Map([["operate-allowed-action.schema.json",GA],["operate-experience-view.schema.json",FM],["operate-review-display-workspace.schema.json",Mo],["operating-assignment.schema.json",aQ],["operating-evidence-resolution.schema.json",VM],["operating-review-read.schema.json",iQ],["operating-review-receipt.schema.json",YA],["operating-review.schema.json",Uu],["operating-trace-matrix.schema.json",Lu]]);function W$(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function eU(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=X$.get(s);return c?{schema:W$(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function Zh(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed Review display workspace contract"}]}function Lr(e,t){return new Set(e.map(a=>a[t])).size===e.length}function tU(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&&hn(e.sourceEventHead,t.sourceEventHead)&&hn(e.sourceReadEventHead,t.sourceReadEventHead):!0}function nU(e){const t=["complete","current","available","waiting","blocked","failed","skipped","uncertain","revisited"];return!(e.stages.total!==e.stages.cycles*7||e.stages.byStage.length!==7||new Set(e.stages.byStage.map(({id:a})=>a)).size!==7||t.some(a=>e.stages[a]!==e.stages.byStage.reduce((s,c)=>s+c[a],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 aU(e,t){return e.choiceHash===mr(e.submitArguments)&&e.submitArguments.reviewId===t.reviewId&&e.submitArguments.cycleId===t.cycleId&&e.submitArguments.actor.actorId===t.actorId&&Kt(e.submitArguments.scope,{scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion})&&Kt(e.requiredDispositions,e.submitArguments.workDispositions)&&e.reversibility==="immutable-review-event"}function iU(e){const{capability:t,choices:a}=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!==a.length)return!1;const s=new Map(a.map(l=>[mr(l.submitArguments),l]));if(s.size!==a.length)return!1;const c=new Set;for(const l of t.actions){const u=mr(l.action.arguments);if(l.subjectId!==e.reviewId||l.action.tool!=="operate.review.submit"||l.action.effect!=="project-write"||!s.has(u))return!1;c.add(u)}return c.size===a.length}function rU(e){const 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&&hn(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&&Kt(e.data.review.workDispositions,t.appliedWorkDispositions)&&hn(t.readEventHead,e.sourceReadEventHead)&&hn(t.eventHead,e.sourceEventHead)}function sU(e,t){const{payload:a,integrity:s}=e,{data:c}=a;if(s.domain!==xI||s.sourceArtifactKind!==a.sourceArtifactKind||s.sourceViewHash!==a.sourceViewHash||s.sourceArtifactHash!==a.sourceArtifactHash||c.review.reviewId!==a.reviewId||c.review.cycleId!==a.cycleId||c.policyBinding.ownerActorId!==c.review.ownerActorId||c.policyBinding.actorMatchesOwner!==(a.actorId===c.review.ownerActorId)||c.policyBinding.actorMatchesOwner!==!0||!hn(c.truthSummary.sourceEventHead,a.sourceEventHead)||c.truthSummary.sourceViewHash!==a.sourceViewHash||c.executiveSummary.decisionCount!==c.recommendation.items.length||c.executiveSummary.findingCount!==c.findings.length||c.executiveSummary.dissentCount!==c.dissent.length||c.executiveSummary.gapCount!==c.gaps.length||c.executiveSummary.uncertaintyCount!==c.uncertainty.length||!Lr(c.choices,"choiceId")||!Lr(c.findings,"findingId")||!Lr(c.dissent,"localDissentId")||!Lr(c.uncertainty,"uncertaintyId")||!Lr(c.gaps,"absenceId")||!Lr(c.claims,"claimId")||!Lr(c.evidence,"evidenceRefId")||c.choices.some(l=>!aU(l,a))||!iU(a)||!rU(a)||!nU(c.truthSummary)||!tU(a,t))return!1;try{wI(a)}catch{return!1}return!0}function oU(e,t){try{const a=Ua(e),s=ko(a,Mo,{base:"schemas/v2.0.0/operate-review-display-workspace.schema.json",resolveRef:eU});return s.length>0||!sU(a,t)?s.length>0?s:Zh():a.integrity.contentHash===MA(a.payload,xI)?[]:Zh()}catch{return Zh()}}function tl(e,t){if(oU(e,t).length>0){const a=new TypeError("The Review display workspace does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_REVIEW_DISPLAY_INVALID",a}return e}Object.freeze(structuredClone(Mo));const cU="openplanr:operate-review-bound-submission:project-write:operating-review@2.0.0#/$defs/workDisposition:1.0.0",lU=new Map([["operate-review-bound-submission.schema.json",nQ],["operating-assignment.schema.json",aQ],["operating-review-read.schema.json",iQ],["operating-review-receipt.schema.json",YA],["operating-review.schema.json",Uu]]);function dU(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function uU(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=lU.get(s);return c?{schema:dU(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function ju(e,t){const a=new TypeError(t);throw a.code=e,a}function jI(e,t,a,s,c){let l;try{l=Ua(e),ko(l,t,{base:a,resolveRef:uU}).length>0&&ju(s,c)}catch(u){if((u==null?void 0:u.code)===s)throw u;ju(s,c)}return l}function fU(e){return{domain:cU,expectedReadEventHead:e.expectedReadEventHead,choiceId:e.choiceId,choiceHash:e.choiceHash,submitArguments:e.submitArguments,note:e.note}}function pU(e){return mr(fU(Ua(e)))}function QI(e){const t=jI(e,nQ,"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!==mr(t.submitArguments)||t.boundSubmissionHash!==pU(t))&&ju("RESULT_CONTRACT_INVALID","The bound Review submission does not satisfy its closed integrity contract."),e}function hU(e,t){return e.choiceHash===mr(e.submitArguments)&&e.submitArguments.reviewId===t.review.reviewId&&e.submitArguments.cycleId===t.cycleId&&Kt(e.submitArguments.actor,t.actor)&&Kt(e.submitArguments.scope,t.scope)}function gU(e){const t=e.dispositionChoices,a=new Set(t.map(({choiceId:u})=>u)),s=new Set(t.map(({choiceHash:u})=>u));if(a.size!==t.length||s.size!==t.length||t.some(u=>!hU(u,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||!Kt(e.review.workDispositions,e.appliedWorkDispositions)||e.eventHead.sequence!==e.readEventHead.sequence+1)return!1;const c=t.filter(u=>u.choiceId===e.appliedChoiceId&&u.choiceHash===e.appliedChoiceHash);if(c.length!==1)return!1;const[l]=c;if(l.submitArguments.disposition!==e.decision||!Kt(l.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{QI(e.boundSubmission)}catch{return!1}return hn(e.boundSubmission.expectedReadEventHead,e.readEventHead)&&e.boundSubmission.choiceId===l.choiceId&&e.boundSubmission.choiceHash===l.choiceHash&&Kt(e.boundSubmission.submitArguments,l.submitArguments)}function AU(e){const t=jI(e,YA,"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 wI(t),gU(t)||ju("E_OPERATE_REVIEW_RECEIPT_INVALID","The operating Review receipt does not satisfy its closed integrity contract."),e}const mU=/^sha256:[a-f0-9]{64}$/u,yU=new Set(["CONCURRENT_MODIFICATION","CAPABILITY_DENIED","OPERATION_UNCERTAIN"]);function da(e="OPERATE_RESPONSE_INVALID"){const t=new Error("The governed Review response was refused.");throw t.name=e,t}function qr(e){return(e===null||typeof e!="object"||Array.isArray(e))&&da(),e}function Kr(e,t){const a=Object.keys(e).sort(),s=[...t].sort();(a.length!==s.length||a.some((c,l)=>c!==s[l]))&&da()}function EU(e){const t=qr(e);Kr(t,["sequence","hash"]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&da();const a=t.hash;return a!==null&&(typeof a!="string"||!mU.test(a))&&da(),t.sequence===0!=(a===null)&&da(),Object.freeze({sequence:t.sequence,hash:a})}function Dc(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Kb(e){return(!e||e.note!==null&&typeof e.note!="string")&&da("OPERATE_COMMAND_INVALID"),e.note===null?null:((e.note.length===0||e.note.length>2048||!/^\S(?:[\s\S]*\S)?$/u.test(e.note))&&da("OPERATE_COMMAND_INVALID"),e.note)}function BU(e,t){Kr(e,["ok","operation","error","allowedActions"]);const a=qr(e.error);Kr(a,["code","message","retryable","context"]);const s=qr(a.context);Kr(s,[]),(e.ok!==!1||e.operation!=="operate.review.submit"||typeof a.code!="string"||!yU.has(a.code)||typeof a.message!="string"||a.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length>16)&&da();const c=e.allowedActions.map(l=>{const u=qr(l);Kr(u,["subjectId","action"]);const f=qr(u.action);return(u.subjectId!==t||f.tool!=="operate.review.submit"||f.effect!=="project-write"||typeof f.label!="string"||f.arguments===null||typeof f.arguments!="object"||Array.isArray(f.arguments))&&da(),xn(f)});return Object.freeze({ok:!1,reasonCode:a.code,allowedActionDigests:Object.freeze(c)})}function vU(e,t,a,s,c){Kr(e,["ok","operation","data","allowedActions","eventHead"]),(e.ok!==!0||e.operation!=="operate.review.submit"||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&da();const l=qr(e.data);Kr(l,["receipt","workspace"]);const u=as(l.receipt);AU(u),u.boundSubmission===void 0&&da();const f=QI(u.boundSubmission),h=as(l.workspace);tl(h);const A=EU(e.eventHead),y=h.payload.data.terminalDisposition;return(t.cycleId===null||t.subjectId===null||s.allowedAction.tool!=="operate.review.submit"||s.allowedAction.effect!=="project-write"||u.cycleId!==t.cycleId||u.review.reviewId!==t.subjectId||u.actor.actorId!==t.actorId||u.scope.scopeId!==t.scopeId||u.scope.domainId!==t.domainId||u.scope.domainVersion!==t.domainVersion||!Dc(u.readEventHead,a)||!Dc(u.eventHead,A)||u.eventHead.sequence<=a.sequence||!Dc(f.expectedReadEventHead,a)||f.note!==c||f.choiceId!==u.appliedChoiceId||f.choiceHash!==u.appliedChoiceHash||f.choiceHash!==xn(s.allowedAction.arguments)||xn(f.submitArguments)!==xn(s.allowedAction.arguments)||h.payload.actorId!==t.actorId||h.payload.cycleId!==t.cycleId||h.payload.reviewId!==t.subjectId||h.payload.sourceArtifactKind!=="operating-review-receipt"||h.payload.sourceArtifactHash!==xn(u)||h.payload.status!=="terminal"||h.payload.mutationEnabled||h.payload.data.choices.length!==0||y===null||y.receiptId!==u.receiptId||y.appliedChoiceId!==u.appliedChoiceId||y.appliedChoiceHash!==u.appliedChoiceHash||!Dc(y.readEventHead,u.readEventHead)||!Dc(y.eventHead,u.eventHead))&&da(),Object.freeze({ok:!0,receipt:u,workspace:h,eventHead:A})}function bU(e){return qA({...e,routeKinds:["operate.review"],routeErrorCode:"OPERATE_REVIEW_ROUTE_REQUIRED",includeOriginHeader:!0,confirmation:{additionalBody(t,a){return{note:Kb(a)}},parse({value:t,preview:a,identity:s,previousHead:c,input:l}){const u=qr(t);return u.ok===!1?BU(u,s.subjectId??""):vU(u,s,c,a,Kb(l))}}})}function wU(e,t){return(e==null?void 0:e.sequence)===t.sequence&&e.hash===t.hash}function xU(e){try{const t=Ve(e),a=Ha(t.route);return a.kind==="operate.review"&&t.productArea==="operate"&&t.cycleId===a.cycleId&&t.subjectId===a.subjectId&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Zu(e){const t=xU(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{tl(a);const s=a,c=s.payload;return c.cycleId!==t.cycleId||c.reviewId!==t.subjectId||c.actorId!==t.actorId||c.scopeId!==t.scopeId||c.domainId!==t.domainId||c.domainVersion!==t.domainVersion||!wU(t.eventHead,c.sourceEventHead)||c.sourceViewHash!==t.viewHash?!1:(tl(s,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:c.cycleId,reviewId:c.reviewId,sourceArtifactKind:c.sourceArtifactKind,sourceArtifactHash:c.sourceArtifactHash,sourceEventHead:c.sourceEventHead,sourceReadEventHead:c.sourceReadEventHead,sourceViewHash:c.sourceViewHash}),!0)}catch{return!1}}}function jU(e){const t=e.payload.data.capability,a=t.available?t.actions:[],s=e.payload.data.choices.map(c=>{const l=a.filter(({subjectId:f,action:h})=>f===e.payload.reviewId&&xn(h.arguments)===c.choiceHash);if(l.length>1||t.available&&l.length!==1)return null;const u=l[0]??null;return Object.freeze({choice:c,action:u,locator:u===null?null:Object.freeze({subjectId:e.payload.reviewId,actionDigest:xn(u.action)})})});return s.some(c=>c===null)?null:Object.freeze(s)}function II(e,t){if(!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t)||!Zu(t)(e.data))return null;const a=e.data,s=jU(a);if(s===null)return null;const c=a.payload.status==="terminal",l=c?"terminal":e.kind==="ready"?a.payload.status:e.kind,u=!c&&a.payload.status==="ready"&&a.payload.mutationEnabled&&a.payload.data.capability.available&&s.every(({locator:f})=>f!==null)&&rA(e,t);return Object.freeze({kind:"review",binding:e.binding,workspace:a,payload:a.payload,presentation:l,choices:s,mutationEnabled:u,terminal:c})}const QU=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 Jb(e){if(!(e instanceof Error))return"";const t=e.code;return typeof t=="string"?t:e.name}function Wd(e){const t=e.replaceAll("-"," ").replaceAll("_"," ");return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function IU(e,t){const a=e.workspace,s=Ve({...t.binding,eventHead:a.payload.sourceEventHead,viewHash:a.payload.sourceViewHash}),c=so({kind:"read-only",binding:s,data:a,reasonCodes:["DASHBOARD_READ_ONLY"],error:null,mutationEnabled:!1,policy:oo("read-only")},{currentBinding:s,validateData:Zu(s)});return II(c,s)}function CU({currentBinding:e,current:t,onRefetch:a,actions:s}){var ye,Ee;const c=B.useMemo(()=>II(t,e),[t,e]),l=B.useRef(s??null),u=B.useRef(0),f=B.useRef(!1),[h,A]=B.useState(null),[y,m]=B.useState(null),[E,b]=B.useState(null),[w,x]=B.useState(null),[j,I]=B.useState(null),[C,O]=B.useState(null),[S,_]=B.useState(null),k=c?JSON.stringify([c.binding.route,c.binding.eventHead,c.binding.viewHash]):"invalid",N=c?JSON.stringify([c.binding.route,c.binding.actorId,c.binding.projectId,c.binding.scopeId,c.binding.domainId,c.binding.domainVersion,c.binding.cycleId,c.binding.subjectId,c.binding.generation]):"invalid",z=B.useRef(k),M=B.useRef(N);z.current=k,M.current=N,B.useEffect(()=>{var R;!l.current&&typeof window<"u"&&(l.current=bU({origin:window.location.origin})),c&&((R=l.current)==null||R.bind(c.binding))},[c]),B.useEffect(()=>{var R;z.current=k,u.current+=1,f.current=!1,(R=l.current)==null||R.cancel(),A(null),m(J=>(J==null||J.custody.cancel(),null)),b(null),x(null),O(null)},[k]),B.useEffect(()=>{_(J=>(J==null?void 0:J.scopeKey)===N?J:null),I(J=>J===N?J:null);const R=requestAnimationFrame(()=>{var J;M.current===N&&((J=document.querySelector('[data-route-kind="operate.review"] h1'))==null||J.focus())});return()=>cancelAnimationFrame(R)},[N]),B.useEffect(()=>()=>{var R;(R=l.current)==null||R.dispose(),l.current=null},[]);const L=(h==null?void 0:h.bindingKey)===k?(c==null?void 0:c.choices.find(({choice:R})=>R.choiceId===h.choiceId))??null:null,Z=(y==null?void 0:y.bindingKey)===k?y:null,F=(S==null?void 0:S.scopeKey)===N?S.result:null,oe=B.useMemo(()=>F&&c?IU(F,c):null,[F,c]),re=F?oe:c,pe=j===N,Y=E===k,V=w===k,te=re!=null&&re.terminal?re.workspace:null,le=!!(c!=null&&c.mutationEnabled&&!pe&&!F),fe=Y||Z!==null||V,T=B.useCallback(()=>{var R;u.current+=1,y==null||y.custody.cancel(),(R=l.current)==null||R.cancel(),f.current=!1,m(null),b(null),x(null),requestAnimationFrame(()=>{var J;z.current===k&&((J=document.querySelector("#op-review-choice-preview-trigger"))==null||J.focus())})},[y,k]),X=B.useCallback(async()=>{if(!c||!(L!=null&&L.locator)||!le||Y||f.current)return;const R=l.current;if(!R)return;const J=k,ne=u.current+1;u.current=ne;const Ae=L,we=Object.freeze({...L.locator});f.current=!0,b(J),O(null);let xe=!1,Ze=!1;try{R.bind(c.binding);const Ie=await R.preview(we);if(z.current!==J||u.current!==ne){Ie.cancel();return}xe=!0,m(Object.freeze({bindingKey:J,epoch:ne,choiceId:Ae.choice.choiceId,choiceHash:Ae.choice.choiceHash,locator:we,choice:Ae,custody:Ie}))}catch(Ie){if(z.current!==J||u.current!==ne)return;const ce=Jb(Ie);if(ce==="AbortError")return;ce==="OPERATION_UNCERTAIN"&&(Ze=!0,I(N)),O({tone:ce==="OPERATION_UNCERTAIN"?"attention":"refusal",text:ce==="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{z.current===J&&u.current===ne&&(b(null),!xe&&!Ze&&(f.current=!1))}},[k,c,le,Y,N,L]),se=B.useCallback(async R=>{var we,xe;if(!Z||V)return;const J=Z,ne=J.bindingKey,Ae=N;x(ne);try{const Ze=await J.custody.confirm({note:R});if(z.current!==ne||M.current!==Ae||u.current!==J.epoch)return;if(Ze.ok){_(Object.freeze({scopeKey:Ae,result:Ze})),O({tone:"verified",text:"The immutable Review receipt was recorded."}),m(null),f.current=!1,await(a==null?void 0:a().catch(()=>{})),requestAnimationFrame(()=>{var Ie;M.current===Ae&&((Ie=document.querySelector("#op-review-receipt-title"))==null||Ie.focus())});return}if(m(null),(we=l.current)==null||we.cancel(),Ze.reasonCode==="OPERATION_UNCERTAIN"){I(Ae),O({tone:"attention",text:"The durable result is uncertain. Open Recovery; do not submit this choice again."});return}f.current=!1,O({tone:Ze.reasonCode==="CONCURRENT_MODIFICATION"?"attention":"refusal",text:Ze.reasonCode==="CONCURRENT_MODIFICATION"?`Review truth changed. ${Ze.allowedActionDigests.length} current legal choices are available after refresh.`:"The owner capability no longer permits this Review choice."}),await(a==null?void 0:a().catch(()=>{}))}catch(Ze){if(z.current!==ne||M.current!==Ae||u.current!==J.epoch)return;const Ie=Jb(Ze);if(Ie==="AbortError")return;if(J.custody.cancel(),(xe=l.current)==null||xe.cancel(),m(null),Ie==="OPERATION_UNCERTAIN"||!QU.has(Ie)){I(Ae),O({tone:"attention",text:"The durable result is uncertain. Open Recovery; do not submit this choice again."});return}f.current=!1,O({tone:Ie==="CAPABILITY_DENIED"?"refusal":"attention",text:Ie==="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(a==null?void 0:a().catch(()=>{}))}finally{z.current===ne&&x(null)}},[Z,V,a,N]);if(!re)return r.jsx("div",{className:"op-workspace op-review pc-operate","data-route-kind":"operate.review",children:r.jsx(be,{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."})});const{data:de}=re.payload;return r.jsxs("article",{className:"op-workspace op-review pc-operate","data-route-kind":"operate.review","data-review-presentation":F?"terminal":re.presentation,children:[r.jsxs("nav",{"aria-label":"Review breadcrumb",className:"op-review__breadcrumb",children:[r.jsx("a",{href:`#/operate/cycles/${encodeURIComponent(re.payload.cycleId)}`,children:"Cycle"}),r.jsx("span",{"aria-hidden":"true",children:"/"}),r.jsx("span",{"aria-current":"page",children:"Review"})]}),r.jsxs("header",{className:"op-review__hero","data-review-useful":"",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"planr-operate · executive decision docket"}),r.jsx("h1",{tabIndex:-1,children:"Owner Review"}),r.jsx("p",{className:"op-review__lede",children:de.executiveSummary.text}),r.jsx(fa,{state:F?"terminal":re.presentation,label:Wd(F?"terminal":re.presentation)})]}),r.jsxs("dl",{className:"op-review__status",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Status"}),r.jsx("dd",{children:Wd(F?"terminal":re.presentation)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Choices"}),r.jsx("dd",{children:re.choices.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Proof"}),r.jsx("dd",{children:Wd(de.truthSummary.proof.status)})]})]})]}),re.presentation!=="ready"&&!F?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["Verified Review content remains visible on this"," ",Wd(re.presentation).toLocaleLowerCase("en-US")," workspace. Mutation is unavailable."]}):null,C?r.jsx("p",{className:"pc-operate__notice","data-tone":C.tone,role:"status","aria-live":"polite",children:C.text}):null,pe?r.jsx(be,{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:r.jsx("a",{className:"op-inline-action",href:"#/operate/recovery",children:"Open Recovery"})}):null,r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-recommendation-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Recommendation"}),r.jsx("h2",{id:"op-review-recommendation-title",children:"What the board recommends"})]}),de.recommendation.status==="available"?r.jsx("ol",{className:"op-review__recommendations",children:de.recommendation.items.map(R=>r.jsxs("li",{children:[r.jsx("h3",{children:R.title}),r.jsx("p",{children:R.outcome??R.rationale}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Upside"}),r.jsx("dd",{children:R.expectedUpside})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Downside"}),r.jsx("dd",{children:R.expectedDownside})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Confidence"}),r.jsxs("dd",{children:[Math.round(R.confidence*100),"%"]})]})]})]},R.decisionId))}):r.jsx("p",{children:de.recommendation.absence.message})]}),te?null:r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-choices-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Owner choices"}),r.jsx("h2",{id:"op-review-choices-title",children:"Choose the record to make"})]}),re.choices.length?r.jsxs("div",{className:"op-review__choice-layout",children:[r.jsxs("fieldset",{disabled:!le||fe,children:[r.jsx("legend",{children:"Select one exact choice. Nothing changes until confirmation."}),re.choices.map(R=>r.jsxs("label",{className:"op-review__choice",children:[r.jsx("input",{type:"radio",name:"review-choice",value:R.choice.choiceId,checked:(L==null?void 0:L.choice.choiceId)===R.choice.choiceId,onChange:()=>{f.current||A(Object.freeze({bindingKey:k,choiceId:R.choice.choiceId}))}}),r.jsxs("span",{children:[r.jsx("strong",{children:R.choice.label}),r.jsx("small",{children:R.choice.consequence})]})]},R.choice.choiceId))]}),r.jsx("aside",{className:"op-review__choice-brief","aria-live":"polite",children:L?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Selected consequence"}),r.jsx("h3",{children:L.choice.label}),r.jsx("p",{children:L.choice.consequence}),r.jsxs("p",{children:[r.jsx("strong",{children:"Authority:"})," Review only. External effects are not authorized."]}),r.jsx(Mt,{id:"op-review-choice-preview-trigger",disabled:!le||!L.locator||fe,disabledReason:((ye=de.capability.reason)==null?void 0:ye.message)??"This exact choice is unavailable.",pendingLabel:"Verifying exact preview","aria-haspopup":"dialog",onInvoke:X,children:"Review exact choice"})]}):r.jsx("p",{children:"Select a choice to compare its exact consequence and dispositions."})})]}):r.jsx("p",{children:((Ee=de.capability.reason)==null?void 0:Ee.message)??"This Review has no choices to submit."})]}),r.jsx(F$,{model:re}),te?r.jsx(V$,{workspace:te,receipt:F==null?void 0:F.receipt}):null,r.jsxs("details",{className:"op-review__section",children:[r.jsx("summary",{children:"Workspace custody"}),r.jsxs("dl",{className:"op-review__technical",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Review ID"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.reviewId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Cycle ID"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.cycleId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source event"}),r.jsxs("dd",{children:[re.payload.sourceEventHead.sequence," ·"," ",r.jsx("code",{children:re.payload.sourceEventHead.hash??"genesis"})]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source view"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.sourceViewHash})})]})]})]}),r.jsx($$,{choice:(Z==null?void 0:Z.choice)??null,custody:(Z==null?void 0:Z.custody)??null,confirming:V,onCancel:T,onConfirm:se},(Z==null?void 0:Z.custody.preview.previewId)??"closed")]})}const SU=Object.freeze({Page:CU,createValidator:Zu});function OU(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 _U({model:e,onContinuation:t}){var h;const a=e.priorityAttention,s=e.continuation,c=uI(e,e.activeCycle.cycleId),l=s?e.actions.find(A=>A.actionId===s.subjectId)??null:null,u=OU(e,t!==void 0),f=e.activeCycle.deepLink;return r.jsxs("section",{className:"op-today-focus","aria-labelledby":"op-today-focus-title",children:[r.jsx("div",{className:"op-today-focus__custody",children:r.jsx("p",{className:"op-eyebrow",children:a?"Priority focus":"Current work"})}),r.jsxs("div",{className:"op-today-focus__question",children:[r.jsx("h2",{id:"op-today-focus-title",children:(a==null?void 0:a.title)??"Continue this work"}),r.jsx("p",{children:(a==null?void 0:a.whyNow)??e.activeCycle.focus[0]??"Review the active work before continuing."})]}),r.jsxs("dl",{className:"op-today-focus__brief",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Expected result"}),r.jsx("dd",{children:(l==null?void 0:l.expectedResult)??(a==null?void 0:a.consequence)??"Not projected on Today."})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Consequence"}),r.jsx("dd",{children:(a==null?void 0:a.consequence)??"No consequence was projected for this attention item."})]})]}),((h=e.continuationRelationship)==null?void 0:h.kind)==="different-subject"?r.jsxs("div",{className:"op-today-focus__relationship",role:"note",children:[r.jsxs("p",{children:["The available next step relates to this priority item",f?r.jsxs(r.Fragment,{children:[". Review the ",r.jsx("a",{href:f,children:"active work"})," before continuing."]}):"."]}),r.jsxs("details",{className:"op-binding-passport__details",children:[r.jsx("summary",{children:"Relationship details"}),r.jsxs("dl",{className:"op-today__status",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Focus item"}),r.jsx("dd",{children:r.jsx("code",{children:e.continuationRelationship.attentionSubjectId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next-step item"}),r.jsx("dd",{children:r.jsx("code",{children:e.continuationRelationship.continuationSubjectId})})]})]})]})]}):null,r.jsxs("div",{className:"op-today-focus__actions",children:[c?r.jsx("a",{className:"op-today-focus__evidence-link","data-review-navigation":"","data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:"Open Review"}):s&&!u&&t?r.jsx(Mt,{onInvoke:()=>t(s),children:s.action.label}):r.jsx(Mt,{disabled:!0,disabledReason:u??"The next step is unavailable.",children:(s==null?void 0:s.action.label)??"No next step available"}),r.jsx("a",{className:"op-today-focus__evidence-link",href:"#/operate/evidence",children:"View evidence"}),r.jsx("small",{children:"Changes take effect only after confirmation and verification."})]})]})}function NU(e,t){return e===null?"Not observed":t?`${e} ${t}`:String(e)}function Zb(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function RU(e,t){const a=Zb(e),s=Zb(t);return a===s?`${a} data`:`${a} data · ${s}`}function Xb({model:e,idPrefix:t}){const a=e.attention.flatMap(s=>s.evidenceRefIds.map(c=>({attentionId:s.attentionId,evidenceRefId:c})));return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"op-today-evidence__summary",children:[r.jsxs("span",{children:[a.length," linked"]}),r.jsxs("span",{children:[e.domainMetrics.length," metric",e.domainMetrics.length===1?"":"s"]})]}),r.jsxs("section",{"aria-labelledby":`${t}-metrics`,children:[r.jsx("p",{className:"op-eyebrow",id:`${t}-metrics`,children:e.vocabulary.signals}),e.domainMetrics.length>0?r.jsx("dl",{className:"op-today-evidence__metrics",children:e.domainMetrics.map(s=>r.jsxs("div",{"data-freshness":s.freshness,children:[r.jsx("dt",{children:s.title??"Key signal"}),r.jsxs("dd",{children:[r.jsx("span",{children:NU(s.value,s.unit)}),r.jsx("small",{children:RU(s.freshness,s.state)})]})]},s.metricId))}):r.jsx("p",{children:"No signal is available for this workspace yet."})]}),r.jsxs("section",{"aria-labelledby":`${t}-evidence-refs`,children:[r.jsx("p",{className:"op-eyebrow",id:`${t}-evidence-refs`,children:"Supporting evidence"}),a.length>0?r.jsxs("p",{children:[a.length," supporting record",a.length===1?"":"s"," are available in Evidence."]}):r.jsx("p",{children:"No supporting record is linked to this focus yet."})]}),r.jsxs("details",{className:"op-binding-passport__details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-today-evidence__custody",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Supporting records"}),r.jsx("dd",{children:r.jsx("code",{children:a.length>0?a.map(s=>s.evidenceRefId).join(" · "):"None"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event record"}),r.jsx("dd",{children:r.jsxs("code",{children:[e.surface.eventHead.sequence," · ",e.surface.eventHead.hash??"genesis"]})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"View hash"}),r.jsx("dd",{children:r.jsx("code",{children:e.surface.viewHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Generated"}),r.jsx("dd",{children:r.jsx("time",{dateTime:e.surface.generatedAt,children:e.surface.generatedAt})})]})]})]})]})}function Wb({model:e,mode:t}){const a=`op-today-evidence-${t}-${e.binding.generation}`;return t==="compact"?r.jsxs("details",{className:"op-today-evidence op-today-evidence--compact",children:[r.jsx("summary",{children:"Evidence"}),r.jsx("div",{className:"op-today-evidence__body",children:r.jsx(Xb,{model:e,idPrefix:a})})]}):r.jsxs("aside",{className:"op-today-evidence op-today-evidence--wide","aria-label":"Evidence",children:[r.jsx("h2",{children:"Evidence"}),r.jsx(Xb,{model:e,idPrefix:a})]})}const DU=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function CI(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 SI(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/today"&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function im(e){const t=SI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="today"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"today",subjectId:null,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function TU(e,t){return im(t)(e)?e:null}function ew(e,t,a){if(!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t))return null;const s=DU[e.kind];if(s===void 0)return null;const c=TU(e.data,t);if((c==null?void 0:c.payload.surface)!=="today")return null;const l=c.payload;if(l.status!==s||l.mutationEnabled!==e.mutationEnabled||l.data.activeCycle===null||t.cycleId===null||l.data.activeCycle.cycleId!==t.cycleId)return null;const u=l.data.attention[0]??null,f=l.data.allowedActions[0]??null,h=u&&f?Object.freeze({kind:u.subjectId===f.subjectId?"same-subject":"different-subject",attentionSubjectId:u.subjectId,continuationSubjectId:f.subjectId}):null;return Object.freeze({kind:"surface",source:a,presentation:s,binding:e.binding,display:c,vocabulary:CI(l.domainId),surface:l,attention:l.data.attention,domainMetrics:l.data.domainMetrics,activeCycle:l.data.activeCycle,inbox:l.data.inbox,actions:l.data.actions,outcomes:l.data.outcomes,allowedActions:l.data.allowedActions,priorityAttention:u,currentStage:l.data.activeCycle.stages.find(A=>A.state==="current")??null,continuation:f,continuationRelationship:h,mutationEnabled:e.mutationEnabled&&l.mutationEnabled})}function kU(e,t){return!Pe(e)||e.kind!=="first-use"&&e.kind!=="empty"||e.binding===null||e.data!==null||e.mutationEnabled||t.cycleId!==null||!Ye(e.binding,t)?null:Object.freeze({kind:e.kind,source:"current",binding:e.binding,vocabulary:CI(t.domainId),reasonCodes:e.reasonCodes,continuation:null,continuationAvailability:"not-returned"})}function OI(e,t){const a=SI(t);if(!a)return null;if(e.resumable){const s=ew(e.resumable,a,"durable-resume");if(s)return s}return ew(e.current,a,"current")??kU(e.current,a)}function MU(e){var a;const t=e.domainMetrics[0];if(t){const s=t.title??"A key signal";if(t.change){const l={added:"is now available.",removed:"is no longer available.",changed:"has changed.",stale:"may be out of date.",conflict:"needs review."}[t.change.kind];return`${s} ${l}`}const c=t.value===null?null:String(t.value);return c?`${s} is currently ${c}${t.unit?` ${t.unit}`:""}.`:`${s} is current.`}return((a=e.priorityAttention)==null?void 0:a.whyNow)??"A fuller update is not available yet."}function GU(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function YU(e){return{decision:"Decision",approval:"Approval",action:"Action",verification:"Verification",outcome:"Outcome",uncertainty:"Open question"}[e]}function HU({model:e}){const t=e.kind==="first-use";return r.jsxs("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today",children:[r.jsx(st,{headingLevel:1,eyebrow:`planr-operate · today · ${e.vocabulary.context}`,title:e.vocabulary.title,description:"Choose a workspace to see what needs attention."}),r.jsx(be,{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."}),r.jsx("p",{className:"op-today__context-note",children:"No next step is available until work is returned for this workspace."})]})}function zU({currentBinding:e,sources:t,onContinuation:a}){var c;const s=OI(t,e);return s?s.kind!=="surface"?r.jsx(HU,{model:s}):r.jsxs("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today","data-today-presentation":s.presentation,"data-today-source":s.source,children:[r.jsx(st,{headingLevel:1,eyebrow:`planr-operate · today · ${s.vocabulary.context}`,title:((c=s.priorityAttention)==null?void 0:c.title)??s.activeCycle.focus[0]??"Continue this work",description:MU(s),actions:r.jsx(fa,{state:s.presentation,label:GU(s.presentation)})}),s.source==="durable-resume"?r.jsx("p",{className:"pc-operate__notice","data-tone":"verified",role:"status",children:"Your active work has been restored."}):null,s.presentation!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",s.presentation," projection. Current access-safe truth remains visible; mutation stays unavailable."]}):null,r.jsx(AI,{stages:s.activeCycle.stages,cycleId:s.activeCycle.cycleId,health:s.activeCycle.health,title:s.currentStage?jo(s.currentStage.id):s.activeCycle.state,labelledBy:"op-today-spine-title"}),r.jsxs("div",{className:"op-today__desk-layout",children:[r.jsxs("section",{className:"op-today__work","aria-label":"Today decision workspace",children:[r.jsx(_U,{model:s,onContinuation:a}),r.jsxs("section",{className:"pc-operate__section","aria-label":"What needs attention now",children:[r.jsx(st,{headingLevel:2,title:"What needs attention now",count:`${s.attention.length} item${s.attention.length===1?"":"s"}`}),s.attention.length>0?r.jsx("ol",{className:"pc-operate__records",children:s.attention.map(l=>r.jsxs("li",{className:"pc-operate__record",children:[r.jsxs("div",{className:"pc-operate__record-head",children:[r.jsxs("h3",{className:"pc-operate__record-title",children:[r.jsx("span",{className:"pc-operate__record-index",children:YU(l.kind)})," ",l.title]}),r.jsx(fa,{state:l.state})]}),r.jsx("p",{className:"pc-operate__record-facts",children:l.whyNow})]},l.attentionId))}):r.jsx("p",{className:"pc-operate__notice",children:"Nothing else needs attention in this active workspace."})]})]}),r.jsx(Wb,{model:s,mode:"wide"}),r.jsx(Wb,{model:s,mode:"compact"})]})]}):r.jsx("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today",children:r.jsx(be,{state:"incompatible",eyebrow:"Today projection",title:"Today cannot be trusted",description:"The returned state did not match the exact current binding and Today contract."})})}const $U=Object.freeze({Page:zU,createValidator:im}),kt=Object.freeze({actions:QH,audit:VH,cycles:B$,inboxRecovery:H$,review:SU,today:$U});function UU(e){const t=e.frontmatter.updated;return t!=null&&t!==""}function LU({currentBinding:e,current:t}){const a=Br(t,e);if(!a)return r.jsx(fs,{routeKind:"planning.activity",title:"Planning cannot be trusted"});const s=a.graph.nodes.length,c=a.graph.nodes.filter(UU).length;return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-activity","data-route-kind":"planning.activity",children:[r.jsx(us,{presentation:a.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status",title:"Activity",description:"Owner-issued watcher patches only. A graph snapshot is not a change log."}),r.jsxs(At,{padding:0,children:[r.jsx(Jt,{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."}),r.jsxs("div",{className:"pc-activity__aid",children:[r.jsx(xa,{command:"/planr-status",label:"inspect delivery status without changing state",size:"sm"}),r.jsx(qt,{tone:"info",title:"Looking for what changed?",children:c>0?r.jsxs(r.Fragment,{children:["A graph snapshot carries no history. The nearest signal is each item's"," ",r.jsx("code",{className:"pc-activity__code",children:"updated"})," frontmatter — ",c," of"," ",s," items carry one — shown on List."]}):r.jsxs(r.Fragment,{children:["A graph snapshot carries no history, and no item in this snapshot carries"," ",r.jsx("code",{className:"pc-activity__code",children:"updated"})," frontmatter."]})})]})]})]})}function Xh(e,t){const a=e[t];return typeof a=="string"&&a.trim()!==""?a:null}function PU(e){const t=e.frontmatter.dependsOn;return Object.freeze({kind:"node",id:e.id,type:e.type,title:e.title,status:e.status,sprintId:Xh(e.frontmatter,"sprintId")??Xh(e.frontmatter,"sprint"),updated:Xh(e.frontmatter,"updated"),dependsOn:Array.isArray(t)?Object.freeze(t.filter(a=>typeof a=="string")):Object.freeze([]),ref:e.githubIssue!==void 0?`#${e.githubIssue}`:e.linearIssueIdentifier??null,href:$u(e)})}function ls(e){TG(PU(e))}function Fg(e,t){const a=e.frontmatter[t];return typeof a=="string"&&a.trim()!==""?a:null}function FU(e){return Fg(e,"sprintId")??Fg(e,"sprint")}function VU(e){return fl.map(t=>({key:t,label:t,nodes:e.filter(a=>a.status===t)}))}function qU(e){return`${e} ${e===1?"artifact":"artifacts"}`}function KU({node:e}){const t=FU(e),a=Fg(e,"updated");return r.jsxs("button",{type:"button",className:"pc-status-board__card",onClick:()=>ls(e),children:[r.jsx(os,{type:e.type,id:Ut(e)}),r.jsx("span",{className:"pc-status-board__title",children:e.title}),r.jsxs("span",{className:"pc-status-board__foot",children:[t?r.jsx("span",{className:"pc-status-board__sprint",children:t}):null,r.jsx("span",{className:"pc-status-board__updated",children:a??r.jsx(gt,{})})]})]})}function JU({group:e,byStatus:t}){return r.jsxs("section",{className:"pc-status-board__column","aria-label":e.label,children:[r.jsxs("header",{className:"pc-status-board__head",children:[t?r.jsx(bi,{status:e.key,size:"sm"}):r.jsx("span",{className:"pc-status-board__label",children:e.label}),r.jsx("span",{className:"pc-status-board__count",children:e.nodes.length})]}),r.jsxs("div",{className:"pc-status-board__cards",children:[e.nodes.map(a=>r.jsx(KU,{node:a},a.id)),e.nodes.length===0?r.jsx("span",{className:"pc-status-board__empty",children:"empty"}):null]})]})}function ZU({currentBinding:e,current:t}){const[a,s]=B.useState("status"),c=Br(t,e);if(!c)return r.jsx(fs,{routeKind:"planning.board",title:"Planning cannot be trusted"});const l=c.graph.nodes.filter(E=>E.type!=="sprint"),u=yM(l),f=u.find(E=>E.key===a),h=(f==null?void 0:f.key)??"status",A=h==="status",y=A?VU(l):BM(l,h),m=(f==null?void 0:f.label.toLowerCase())??"status";return r.jsxs("div",{className:"op-workspace op-planning op-planning--board pc-pipeline","data-route-kind":"planning.board",children:[r.jsx(us,{presentation:c.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status · board",title:"Board",count:qU(l.length),description:`Grouped by ${m}. Read-only — status changes come from the CLI lifecycle.`}),l.length===0?r.jsx(Jt,{icon:"columns-3",title:"No artifacts yet",description:"The board fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})}):r.jsxs(r.Fragment,{children:[u.length>1?r.jsxs(Yu,{children:[r.jsx("span",{className:"pc-status-board__group",children:"group by"}),r.jsx(qc,{value:h,onChange:s,options:u.map(E=>({value:E.key,label:E.label})),ariaLabel:"Group by",size:"sm"})]}):null,r.jsx("div",{className:"pc-status-board",children:y.map(E=>r.jsx(JU,{group:E,byStatus:A},E.key||"none"))})]})]})}const pt=(e,t,a)=>({id:e,summary:t,view:a,command:`/${e}`}),_I=Object.freeze([{id:"lifecycle",title:"Plan & deliver",description:"Shape intent into work, review it, implement it, and land it.",capabilities:Object.freeze([pt("planr-spec","Shape vague intent into a measurable, Protocol-compatible specification.","#/list"),pt("planr-plan","Turn a specification or intent into schema-compatible stories and tasks.","#/board"),pt("planr-plan-review","Review a plan for product, engineering, design, and DX problems.","#/board"),pt("planr-ship","Implement a plan, specification, task, or clearly stated request.","#/board"),pt("planr-land","Assess release readiness and prepare a landing sequence.","#/overview"),pt("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([pt("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([pt("planr-ceo-review","Grounded strategy and finance review for an Operate cycle.","#/operate/cycles"),pt("planr-cpo-review","Grounded product and activation review for an Operate cycle.","#/operate/cycles"),pt("planr-cto-review","Grounded technology and delivery-risk review for an Operate cycle.","#/operate/cycles"),pt("planr-cmo-review","Grounded market and growth review for an Operate cycle.","#/operate/cycles"),pt("planr-coo-review","Grounded operations and customer-health review for an Operate cycle.","#/operate/cycles"),pt("planr-challenger-review","Challenge a cycle's claims, alternatives, downside, and confidence.","#/operate/cycles"),pt("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([pt("planr-design","Create or route a product-design workflow using portable boards.",null),pt("planr-design-loop","Explore multiple design directions and collect pinned board feedback.",null),pt("planr-design-review","Review and revise an existing design from pinned board feedback.",null),pt("planr-diagram","Create, inspect, verify, or rerender professional offline diagrams.",null),pt("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([pt("planr-investigate","Diagnose a bug, regression, or unexplained behavior, and optionally fix it.",null),pt("planr-browser-qa","Browser-backed QA over real routes, forms, viewports, accessibility, and network.",null),pt("planr-doctor","Diagnose CLI, pipeline, runtime-adapter, and installation problems.","#/diagnostics"),pt("planr-sync","Audit planning artifacts for graph and protocol drift.","#/activity"),pt("planr-dashboard","Start or inspect this loopback-only planning dashboard.","#/overview")])}]),XU=_I.reduce((e,t)=>e+t.capabilities.length,0),WU=[{key:"id",label:"Skill",width:190,render:e=>r.jsx(Rj,{name:e.id,size:"sm"})},{key:"summary",label:"Purpose",render:e=>r.jsx(y2,{children:e.summary})},{key:"view",label:"Dashboard",width:132,render:e=>{const t=e.view?Oo(e.view):null;return t?r.jsx("a",{className:"pc-console__link",href:t,children:e.view}):r.jsx(gt,{})}},{key:"command",label:"Invocation",width:268,render:e=>r.jsx(xa,{command:e.command,size:"sm"})}];function eL(e,t){return`${e.id} ${e.summary}`.toLowerCase().includes(t)}function tL(){const[e,t]=B.useState(""),a=e.trim().toLowerCase(),s=_I.map(l=>({id:l.id,title:l.title,capabilities:a?l.capabilities.filter(u=>eL(u,a)):l.capabilities})).filter(l=>l.capabilities.length>0),c=s.reduce((l,u)=>l+u.capabilities.length,0);return r.jsxs("div",{className:"op-workspace op-planning pc-console","data-route-kind":"planning.console",children:[r.jsx(st,{eyebrow:"planr-dashboard · console",title:"Console",count:`${XU} skills`,description:"The static catalog of planr-* skills, in their shipped groups. Reference only — the console cannot invoke them."}),r.jsxs(Yu,{children:[r.jsx(NA,{size:"sm",icon:"search",placeholder:"Filter skills",ariaLabel:"Filter skills",value:e,onChange:t,width:220}),r.jsx(_A,{}),r.jsxs("span",{className:"pc-console__shown",children:[c," shown"]})]}),r.jsx("div",{className:"pc-console__catalog",children:s.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"search",title:"No skill matches this filter",description:"Filter by skill name or purpose."})}):s.map(l=>r.jsx(At,{title:l.title,meta:String(l.capabilities.length),padding:0,children:r.jsx(ji,{compact:!0,columns:WU,rows:l.capabilities,caption:l.title})},l.id))})]})}function bn({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function nL({origin:e}){const t=e.eventHead.sequence===null?null:`${e.eventHead.sequence} · ${e.eventHead.hash??"genesis"}`;return r.jsxs("details",{className:"op-planning-origin__details",children:[r.jsx("summary",{children:"Origin integrity details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(bn,{label:"Proposal",value:e.proposalId}),r.jsx(bn,{label:"Proposal revision",value:e.proposalRevision}),r.jsx(bn,{label:"Proposal digest",value:e.proposalHash}),r.jsx(bn,{label:"Event head",value:t}),r.jsx(bn,{label:"Origin digest",value:e.originHash}),r.jsx(bn,{label:"Planning receipt",value:e.transaction.receiptHash}),r.jsx(bn,{label:"Planning provenance",value:e.transaction.planningProvenanceEventId}),r.jsx(bn,{label:"Verification plan",value:typeof e.verification.verificationPlanId=="string"?e.verification.verificationPlanId:null}),r.jsx(bn,{label:"Metric",value:typeof e.metric.metricId=="string"?e.metric.metricId:null})]})]})}function aL({envelope:e,title:t,summary:a}){const s=e&&typeof e=="object"?e:{},c=tH(s.origin??e),l=aH(c),u=t??(c.spec.specId?`Why ${c.spec.specId} exists`:"Why this Planning work exists");return r.jsxs("section",{className:"op-planning-origin planning-operating-origin","aria-label":"Operating origin and delivery trace","data-origin-state":c.status,children:[r.jsxs("header",{className:"op-planning-origin__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operating origin"}),r.jsx("h2",{children:u}),r.jsx("p",{children:a??"The sidecar preserves exact Operate custody while Planning remains independently authoritative."})]}),l?r.jsx("a",{className:"op-cycle-link",href:l,children:"Open in Operate"}):null]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(bn,{label:"SPEC",value:c.spec.specId}),r.jsx(bn,{label:"Status",value:c.spec.status}),r.jsx(bn,{label:"Decision",value:c.decision.id}),r.jsx(bn,{label:"Action",value:c.action.id}),r.jsx(bn,{label:"Correlation",value:c.correlationId})]}),r.jsx(nL,{origin:c}),r.jsxs("section",{className:"op-planning-origin__trace","aria-labelledby":"op-planning-delivery-trace-title",children:[r.jsx("header",{className:"op-cycle-section-heading",children:r.jsxs("div",{children:[r.jsx("h3",{id:"op-planning-delivery-trace-title",children:"Delivery and value trace"}),r.jsx("p",{children:"Each state belongs to its own ledger. Delivery is evidence; it is not Outcome success."})]})}),r.jsx(RQ,{progress:s.progress??{nodes:[]}})]})]})}function iL({specId:e,binding:t}){const{bootstrap:a}=sA(),s=(a==null?void 0:a.queryRoots.operate)??null,[c,l]=B.useState(null),[u,f]=B.useState("idle");return B.useEffect(()=>{if(typeof window>"u"||s===null||s.projectId!==t.projectId){l(null),f("unavailable");return}let h=!1;const A=new AbortController;f("loading");const y=Ve({productArea:"operate",route:"#/operate/today",actorId:s.actorId,projectId:s.projectId,scopeId:s.scopeId,domainId:s.domainId,domainVersion:s.domainVersion,cycleId:null,subjectId:null,eventHead:null,viewHash:null,generation:s.generation});return yH({origin:window.location.origin,identity:y,specId:e,signal:A.signal}).then(m=>{if(h)return;const E=m.origin,b=E.spec;if((b==null?void 0:b.specId)===e&&E.scopeId===s.scopeId&&E.domainId===s.domainId&&E.domainVersion===s.domainVersion&&rL(E.actor)===s.actorId){l({origin:m.origin,progress:m.progress}),f("ready");return}f("unavailable")}).catch(()=>{h||f("unavailable")}),()=>{h=!0,A.abort()}},[t.projectId,s,e]),u==="loading"||u==="idle"?r.jsx("section",{className:"op-planning-section","aria-label":"Operating origin loading",children:r.jsx("p",{role:"status",children:"Loading operating origin projection…"})}):c?r.jsx(aL,{envelope:c}):null}function rL(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t=Reflect.get(e,"actorId");return typeof t=="string"?t:null}function yi(e,t){const a=e.frontmatter[t];return typeof a=="string"&&a.trim()!==""?a:null}function rm(e){return yi(e,"sprintId")??yi(e,"sprint")}function NI(e){return e.githubIssue!==void 0?`#${e.githubIssue}`:e.linearIssueIdentifier??null}function lu(e){const t=e.frontmatter.dependsOn;return Array.isArray(t)?t.filter(a=>typeof a=="string"):[]}function RI(e){const t=new Map;for(const a of e)a.kind==="depends_on"&&t.set(a.from,(t.get(a.from)??0)+1);return t}const nl=Object.freeze({key:"item",label:"Item",render:e=>r.jsx(os,{type:e.type,id:Ut(e),title:e.title,blocked:e.status==="blocked",interactive:!0})}),Xu=Object.freeze({key:"status",label:"Status",width:132,render:e=>r.jsx(bi,{status:e.status,size:"sm"})}),Vg=Object.freeze({key:"sprint",label:"Sprint",width:92,mono:!0,render:e=>rm(e)??r.jsx(gt,{})}),al=Object.freeze({key:"updated",label:"Updated",width:96,mono:!0,align:"right",render:e=>yi(e,"updated")??r.jsx(gt,{})}),sL=Object.freeze({key:"ref",label:"Ref",width:96,mono:!0,align:"right",render:e=>NI(e)??r.jsx(gt,{})});function sm(e){const t=typeof e.get=="function"?e:RI(e);return Object.freeze({key:"deps",label:"Deps",width:56,mono:!0,align:"right",render:a=>{const s=t.get(a.id)??0;return s>0?String(s):r.jsx(gt,{})}})}const oL=new Set(["created","updated","sprintId","sprint","owner","dependsOn"]),cL=Object.freeze([nl,Xu,al]);function tw(){typeof window<"u"&&(window.location.hash="#/list")}function DI(e){const t=$u(e);t&&typeof window<"u"&&(window.location.hash=t)}function lL(e,t){const a=new Map(e.nodes.map(u=>[u.id,u])),s=new Set,c=[],l=(u,f)=>{for(const h of e.edges){const A=h.kind,y=A==="depends_on"&&h.to===u?h.from:A==="contains"&&h.from===u?h.to:null;if(y===null||s.has(y))continue;s.add(y);const m=a.get(y);m&&(c.push({...m,depth:f,via:A}),l(y,f+1))}};return l(t,0),c}function Wh({title:e,rows:t}){return r.jsx(At,{title:e,meta:String(t.length),padding:0,children:t.length>0?r.jsx(ji,{compact:!0,rows:t,onRowClick:DI,caption:e,columns:cL}):r.jsx("div",{className:"pc-detail__none",children:"none"})})}function nw({currentBinding:e,current:t}){const a=e.route.startsWith("#/plan/specs/"),s=a?"planning.spec":"planning.detail",[c,l]=B.useState(a?"downstream":"fields"),u=Br(t,e);if(!u)return r.jsx(fs,{routeKind:s,title:"Planning cannot be trusted"});const f=e.subjectId===null?null:bM(e.subjectId),h=f===null?void 0:u.graph.nodes.find(N=>N.id===f);if(!h)return r.jsx("div",{className:"op-workspace op-planning pc-pipeline pc-detail","data-route-kind":s,children:r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"circle-alert",title:`No artifact ${e.subjectId??""}`.trim(),description:"This id is not in the current graph snapshot.",action:r.jsx(ua,{size:"sm",icon:"chevron-left",onClick:tw,children:"Back to List"})})})});const{graph:A}=u,y=new Map(A.nodes.map(N=>[N.id,N])),m=lu(h).map(N=>y.get(N)).filter(N=>N!==void 0),E=A.edges.filter(N=>N.kind==="depends_on"&&N.to===h.id).map(N=>y.get(N.from)).filter(N=>N!==void 0),b=A.edges.filter(N=>N.kind==="contains"&&N.from===h.id).map(N=>y.get(N.to)).filter(N=>N!==void 0),w=A.edges.find(N=>N.kind==="contains"&&N.to===h.id),x=a?lL(A,h.id):[],j=IM(h),I=Object.entries(j.meta).filter(([N])=>!oL.has(N)),C=rm(h),O=NI(h),S=Ut(h),_=a?[{id:"downstream",label:"Downstream",count:x.length},{id:"fields",label:"Fields"},{id:"body",label:"Body"}]:[{id:"fields",label:"Fields"},{id:"relations",label:"Relations",count:m.length+E.length+b.length},{id:"body",label:"Body"}],k=[{key:"item",label:"Item",render:N=>r.jsx("span",{className:"pc-detail__indent",style:{paddingLeft:N.depth*16},children:r.jsx(os,{type:N.type,id:Ut(N),title:N.title,blocked:N.status==="blocked",interactive:!0})})},{key:"via",label:"Via",width:116,mono:!0,render:N=>N.via},{key:"status",label:"Status",width:132,render:N=>r.jsx(bi,{status:N.status,size:"sm"})},{key:"updated",label:"Updated",width:96,mono:!0,align:"right",render:N=>yi(N,"updated")??r.jsx(gt,{})}];return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-detail","data-route-kind":s,children:[r.jsx(us,{presentation:u.presentation}),r.jsx(st,{headingLevel:1,eyebrow:a?"planr-spec · trace":`planr-plan · ${h.type}`,title:h.title,count:S,description:a?"SPEC trace: everything downstream of this specification.":void 0,actions:r.jsx(ua,{variant:"ghost",size:"sm",icon:"chevron-left",onClick:tw,children:"List"})}),r.jsxs("div",{className:"pc-detail__identity",children:[r.jsx(os,{type:h.type,id:S}),r.jsx(bi,{status:h.status}),C?r.jsx("span",{className:"pc-detail__mono",children:C}):null,O?r.jsx("span",{className:"pc-detail__mono",children:O}):null]}),h.type==="spec"?r.jsx(iL,{specId:h.id,binding:e}):null,r.jsx(_j,{label:"Artifact sections",value:c,onChange:l,tabs:_}),r.jsx("div",{className:"pc-detail__stack",children:c==="downstream"?r.jsx(At,{title:"Downstream of this spec",meta:String(x.length),padding:0,children:x.length>0?r.jsx(ji,{compact:!0,rows:x,onRowClick:DI,caption:"Downstream artifacts",columns:k}):r.jsx("div",{className:"pc-detail__empty",children:r.jsx(Jt,{icon:"list-tree",title:"Nothing waits on this spec",description:"No artifact carries a depends_on edge to it."})})}):c==="fields"?r.jsx(At,{title:"Frontmatter",meta:`${S}.md`,padding:14,children:r.jsxs("div",{className:"pc-detail__fields",children:[r.jsx(wt,{label:"id",mono:!0,children:h.id}),r.jsx(wt,{label:"type",mono:!0,children:h.type}),r.jsx(wt,{label:"status",mono:!0,children:h.status}),r.jsx(wt,{label:"created",mono:!0,children:yi(h,"created")??r.jsx(gt,{})}),r.jsx(wt,{label:"updated",mono:!0,children:yi(h,"updated")??r.jsx(gt,{})}),r.jsx(wt,{label:"sprintId",mono:!0,children:C??r.jsx(gt,{})}),r.jsx(wt,{label:"owner",mono:!0,children:yi(h,"owner")??r.jsx(gt,{children:"not recorded"})}),r.jsx(wt,{label:"dependsOn",mono:!0,children:lu(h).length>0?lu(h).join(", "):r.jsx(gt,{})}),r.jsx(wt,{label:"githubIssue",mono:!0,children:h.githubIssue!==void 0?`#${h.githubIssue}`:r.jsx(gt,{})}),r.jsx(wt,{label:"linearIssue",mono:!0,children:h.linearIssueIdentifier??r.jsx(gt,{})}),r.jsx(wt,{label:"parent",mono:!0,children:w?Ut(y.get(w.from)??w.from):r.jsx(gt,{children:"root"})}),I.map(([N,z])=>r.jsx(wt,{label:N,mono:!0,children:z},N))]})}):c==="relations"?r.jsxs(r.Fragment,{children:[r.jsx(Wh,{title:"Depends on",rows:m}),r.jsx(Wh,{title:"Depended on by",rows:E}),r.jsx(Wh,{title:"Contains",rows:b})]}):r.jsx(At,{title:"Body",meta:"markdown",padding:14,children:j.criteria.length===0&&j.subtasks.length===0&&!h.body?r.jsx(qt,{tone:"info",title:"No body in this snapshot",children:"The artifact file has frontmatter only, or the body was not read into the graph."}):r.jsxs("div",{className:"pc-detail__body",children:[j.criteria.length>0?r.jsxs("section",{className:"pc-detail__section","aria-label":"Acceptance criteria",children:[r.jsxs("h3",{className:"pc-detail__label",children:["acceptance criteria · ",j.criteria.length]}),r.jsx("ol",{className:"pc-detail__criteria",children:j.criteria.map(N=>r.jsx("li",{children:N},N))})]}):null,j.subtasks.length>0?r.jsxs("section",{className:"pc-detail__section","aria-label":"Subtasks",children:[r.jsxs("h3",{className:"pc-detail__label",children:["subtasks · ",j.subtasks.length]}),r.jsx("ul",{className:"pc-detail__subtasks",children:j.subtasks.map(N=>r.jsxs("li",{className:"pc-detail__subtask",children:[r.jsx(bi,{status:N.done?"done":"outstanding",size:"sm",showLabel:!1}),r.jsx("span",{children:N.text})]},N.text))})]}):null,h.body?r.jsx("pre",{className:"pc-detail__markdown",children:h.body}):null]})})})]})}const dL=Object.freeze(["depends_on","contains"]),uL=Object.freeze([{id:"graph",label:"Graph",icon:"workflow"},{id:"outline",label:"Outline",icon:"list-tree"}]),fL=460,pL=Object.freeze({font:"var(--pc-type-mono-sm)"}),hL=Object.freeze({font:"var(--pc-type-mono-sm)",color:"var(--pc-text-tertiary)"});function gL(e){return e==="depends_on"||e==="contains"}function AL(e,t){var A;const a=e.edges.filter(y=>y.kind===t),s=new Set(a.flatMap(y=>[y.from,y.to])),c=new Map;for(const y of e.nodes){const m=Ut(y);c.set(m,(c.get(m)??0)+1)}const l=new Map,u=new Map,f=[];for(const y of e.nodes){if(!s.has(y.id))continue;const m=Ut(y),E=c.get(m)===1?m:y.id;l.set(y.id,E),u.set(E,y),f.push({id:E,type:y.type,label:y.title,blocked:y.status==="blocked"})}const h=[];for(const y of a){const m=l.get(y.from),E=l.get(y.to);if(m===void 0||E===void 0)continue;const b=t==="depends_on"&&((A=u.get(E))==null?void 0:A.status)==="blocked";h.push(b?{from:m,to:E,blocked:!0}:{from:m,to:E})}return{nodes:f,edges:h,byGraphId:u,graphIdOf:l}}function mL(e,t){const a=new Map;for(const u of t){const f=a.get(u.from);f?f.push(u):a.set(u.from,[u])}const s=new Map,c=new Set,l=u=>{s.set(u,"open");for(const f of a.get(u)??[]){const h=s.get(f.to);h==="open"?c.add(f):h===void 0&&l(f.to)}s.set(u,"closed")};for(const u of e)s.has(u.id)||l(u.id);return c}function yL({currentBinding:e,current:t}){var w;const[a,s]=B.useState("graph"),[c,l]=B.useState("depends_on"),u=VA(),f=Br(t,e);if(!f)return r.jsx(fs,{routeKind:"planning.graph",title:"Planning cannot be trusted"});const h=AL(f.graph,c),A=a==="outline"?mL(h.nodes,h.edges):null,y=A&&A.size>0?h.edges.filter(x=>!A.has(x)):h.edges,m=((w=u.selection)==null?void 0:w.kind)==="node"?h.graphIdOf.get(u.selection.id)??null:null,E=y.map(x=>m!==null&&(x.from===m||x.to===m)?{...x,active:!0}:x),b=x=>{const j=h.byGraphId.get(x);j&&ls(j)};return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline","data-route-kind":"planning.graph",children:[r.jsx(us,{presentation:f.presentation}),r.jsxs("div",{children:[r.jsx(st,{headingLevel:1,eyebrow:"planr-diagram · graph",title:"Graph",count:`${h.nodes.length} nodes · ${h.edges.length} edges`,description:c==="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."}),f.graph.nodes.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"workflow",title:"Nothing to draw",description:"This plan has no artifacts yet, so there are no edges to show.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsxs(Yu,{right:r.jsx(_j,{size:"sm",label:"Graph view",value:a,onChange:x=>s(x==="outline"?"outline":"graph"),tabs:uL}),children:[r.jsx(qc,{size:"sm",width:132,ariaLabel:"Edge kind",value:c,onChange:x=>{gL(x)&&l(x)},options:dL}),r.jsx(_A,{}),r.jsx("span",{style:hL,children:"edge kind"})]}),h.edges.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"workflow",title:`No ${c} edges in this plan`,description:"Both views draw edges only; an artifact without an edge of this kind is not shown."})}):r.jsx("div",{style:{marginTop:6},children:r.jsx(A2,{nodes:h.nodes,edges:E,view:a,flow:c==="depends_on"?"target-to-source":"source-to-target",selectedId:m,onSelect:b,height:fL})}),A&&A.size>0?r.jsx("div",{style:{marginTop:12},children:r.jsx(qt,{tone:"warn",title:`${A.size} ${A.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,c==="depends_on"&&h.edges.length>0?r.jsx("div",{style:{marginTop:12},children:r.jsxs(qt,{tone:"info",title:"Edges carry no satisfaction state",children:["An edge means ",r.jsx("code",{style:pL,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]})]})]})}let qg=null;function EL(e){qg=e}function BL(){const e=qg;return qg=null,e}const Qu="all",Tc=100,TI=Object.freeze(["epic","feature","story","task","spec","backlog","quick","sprint","adr"]),vL=Object.freeze([{value:Qu,label:"All types"},...TI.map(e=>({value:e,label:e}))]),bL=Object.freeze([{value:Qu,label:"All statuses"},...fl.map(e=>({value:e,label:e}))]),wL=Object.freeze({...al,sortable:!0});function xL(e){return TI.includes(e)}function jL(e){return fl.includes(e)}function QL(e,t){return[...e].sort((a,s)=>{const c=yi(a,"updated"),l=yi(s,"updated");return c===l?0:c===null?1:l===null?-1:t==="asc"?c.localeCompare(l):l.localeCompare(c)})}function IL({currentBinding:e,current:t}){var L;const[a,s]=B.useState(""),[c,l]=B.useState(Qu),[u,f]=B.useState(()=>BL()??Qu),[h,A]=B.useState(!1),[y,m]=B.useState({key:"updated",dir:"desc"}),[E,b]=B.useState(0),w=VA(),x=Br(t,e);if(!x)return r.jsx(fs,{routeKind:"planning.list",title:"Planning cannot be trusted"});const j=gM(x.graph.nodes,"id"),I=hM(j,{search:a.trim()||void 0,typeFilter:xL(c)?[c]:void 0,statusFilter:jL(u)?u:null}),C=y.key==="updated"?QL(I,y.dir):I,O=Math.max(1,Math.ceil(C.length/Tc)),S=Math.min(E,O-1),_=S*Tc,k=C.slice(_,_+Tc),N=RI(x.graph.edges),z=()=>b(0),M=((L=w.selection)==null?void 0:L.kind)==="node"?w.selection.id:void 0;return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-list","data-route-kind":"planning.list",children:[r.jsx(us,{presentation:x.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-plan · list",title:"List",count:`${C.length} of ${j.length}`,description:"Every node in the graph, filterable by text, type and status."}),j.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"list",title:"No artifacts yet",description:"The list fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs("section",{className:"pc-list__surface","aria-label":"Planning artifact index",children:[r.jsxs(Yu,{right:r.jsx(s2,{size:"sm",checked:h,onChange:A,label:"Compact"}),children:[r.jsx(NA,{size:"sm",icon:"search",width:220,placeholder:"Filter by id or title",ariaLabel:"Filter by id or title",value:a,onChange:Z=>{s(Z),z()}}),r.jsx(qc,{size:"sm",width:128,ariaLabel:"Filter by type",value:c,onChange:Z=>{l(Z),z()},options:vL}),r.jsx(qc,{size:"sm",width:138,ariaLabel:"Filter by status",value:u,onChange:Z=>{f(Z),z()},options:bL}),r.jsx(_A,{}),r.jsx("span",{className:"pc-list__note",children:"read-only view of .planr/"})]}),r.jsx(ji,{rows:k,compact:h,selectedId:M,sort:y,onSort:Z=>{m(F=>({key:Z,dir:F.key===Z&&F.dir==="desc"?"asc":"desc"})),z()},onRowClick:ls,caption:"Planning artifacts",emptyMessage:"No node matches this filter.",columns:[nl,Xu,Vg,sm(N),wL,sL]}),C.length>Tc?r.jsxs("nav",{className:"pc-list__pagination","aria-label":"Planning artifact pages",children:[r.jsxs("span",{className:"pc-list__page-status","aria-live":"polite",children:["Page ",S+1," of ",O," · ",_+1,"–",Math.min(_+Tc,C.length)," of ",C.length]}),r.jsxs("div",{className:"pc-list__page-actions",children:[r.jsx(ua,{size:"sm",icon:"chevron-left",disabled:S===0,onClick:()=>b(Math.max(0,S-1)),children:"Previous"}),r.jsx(ua,{size:"sm",iconAfter:"chevron-right",disabled:S+1>=O,onClick:()=>b(Math.min(O-1,S+1)),children:"Next"})]})]}):null]})]})}const tr=3,CL=new Set(["done","in-progress","blocked","outstanding","addressed"]);function SL(e){return CL.has(e)}function OL(e){return{key:"dependsOn",label:"Depends on",width:220,render:t=>{const a=lu(t),s=a[0];if(s===void 0)return r.jsx(gt,{children:"no depends_on"});const c=e.get(s);return r.jsxs("span",{className:"pc-overview__deps",title:a.join(", "),children:[c?r.jsx(os,{type:c.type,id:Ut(c)}):r.jsx("span",{className:"pc-overview__mono",children:s}),a.length>1?r.jsxs("span",{className:"pc-overview__mono",children:["+",a.length-1]}):null]})}}}function eg(e){SL(e)&&(EL(e),typeof window<"u"&&(window.location.hash="#/list"))}function _L({currentBinding:e,current:t}){const a=Br(t,e);if(!a)return r.jsx(fs,{routeKind:"planning.overview",title:"Planning cannot be trusted"});const{graph:s,presentation:c}=a,l=s.nodes.filter(y=>y.type!=="sprint"),u={};for(const y of l)u[y.status]=(u[y.status]??0)+1;const f=l.filter(y=>y.status==="blocked"),h=l.filter(y=>y.status==="in-progress"),A=new Map(s.nodes.map(y=>[y.id,y]));return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-overview","data-route-kind":"planning.overview",children:[r.jsx(us,{presentation:c}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status · overview",title:"Overview",count:`${l.length} ${l.length===1?"artifact":"artifacts"}`,description:"Status counts come straight from the graph snapshot."}),l.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"gauge",title:"No artifacts yet",description:"The overview fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pc-overview__tally",children:r.jsx(E2,{counts:u,total:l.length,onPick:eg})}),r.jsxs("div",{className:"pc-overview__stack",children:[r.jsx(At,{title:"Blocked",meta:`${f.length} ${f.length===1?"item":"items"}`,padding:0,actions:f.length>tr?r.jsx(ua,{size:"sm",variant:"ghost",onClick:()=>eg("blocked"),children:"View all blocked"}):null,children:f.length>0?r.jsxs(r.Fragment,{children:[r.jsx(ji,{compact:!0,rows:f.slice(0,tr),onRowClick:ls,caption:"Blocked artifacts",columns:[nl,OL(A),Vg,al]}),f.length>tr?r.jsxs("p",{className:"pc-overview__note",children:["Showing ",tr," of ",f.length," blocked artifacts, in project order."]}):null,r.jsx("div",{className:"pc-overview__note",children:r.jsxs(qt,{tone:"info",title:"Depends-on is not the same as blocked-by",children:["The graph records ",r.jsx("code",{children:"depends_on"})," edges and a ",r.jsx("code",{children:"blocked"})," ","status, but nothing that links them. These are every dependency, not the blocking one."]})})]}):r.jsx("div",{className:"pc-overview__empty",children:r.jsx(Jt,{icon:"check-check",title:"Nothing is blocked",description:"No artifact carries the blocked status."})})}),r.jsxs(At,{title:"In progress",meta:`${h.length} ${h.length===1?"item":"items"}`,padding:0,actions:h.length>tr?r.jsx(ua,{size:"sm",variant:"ghost",onClick:()=>eg("in-progress"),children:"View all in progress"}):null,children:[r.jsx(ji,{compact:!0,rows:h.slice(0,tr),onRowClick:ls,caption:"Artifacts in progress",emptyMessage:"No artifact carries the in-progress status.",columns:[nl,Xu,sm(s.edges),Vg,al]}),h.length>tr?r.jsxs("p",{className:"pc-overview__note",children:["Showing ",tr," of ",h.length," in-progress artifacts, in project order."]}):null]})]})]})]})}const NL=Object.freeze(["taskIds","storyIds","itemIds","artifactIds"]);function RL(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"&&t.trim()!==""):[]}function DL(e){return Object.freeze([...new Set(NL.flatMap(t=>RL(e.frontmatter[t])))])}function aw(e,t){const a=Ut(t),s=DL(t),c=new Map;for(const f of e)if(f.type!=="sprint")for(const h of new Set([f.id,Ut(f)]))c.set(h,[...c.get(h)??[],f]);const l=new Map;for(const f of s)for(const h of c.get(f)??[])l.set(h.id,h);for(const f of e){if(f.type==="sprint")continue;const h=rm(f);(h===t.id||h===a)&&l.set(f.id,f)}const u=s.filter(f=>{var h;return!(((h=c.get(f))==null?void 0:h.length)??0)});return Object.freeze({members:Object.freeze([...l.values()].sort((f,h)=>f.id.localeCompare(h.id))),missing:Object.freeze(u)})}function il(e,...t){for(const a of t){const s=e.frontmatter[a];if(typeof s=="string"&&s.trim()!=="")return s.trim()}return null}function iw(e){return il(e,"title","name")??e.title}function Kg(e){var a;const t=(a=il(e,"status"))==null?void 0:a.toLowerCase().replaceAll("_","-");return t==="active"||t==="in progress"?"in-progress":t??e.status}function kI(e){return Object.freeze({start:il(e,"startDate","startsAt","start"),end:il(e,"endDate","endsAt","end")})}function rw(e,t){const a=Fj(t.members);if(t.missing.length>0)return Object.freeze({label:"scope mismatch",tone:"warn"});if(a.blocked>0)return Object.freeze({label:"blocked work",tone:"danger"});if(t.members.length>0&&a.done===t.members.length){const c=Kg(e);return Object.freeze(c==="done"||c==="addressed"?{label:"complete",tone:"success"}:{label:"ready to close",tone:"warn"})}const{end:s}=kI(e);return s&&/^\d{4}-\d{2}-\d{2}$/u.test(s)&&s<new Date().toISOString().slice(0,10)?Object.freeze({label:"past end date",tone:"warn"}):Object.freeze({label:"in flight",tone:"info"})}function TL(e,t,a){const s=new Set(e.map(u=>u.id)),c=new Map(t.map(u=>[u.id,u])),l=new Map;for(const u of a){if(u.kind!=="depends_on"||!s.has(u.from)||s.has(u.to))continue;const f=c.get(u.to);f&&f.status!=="done"&&f.status!=="addressed"&&l.set(f.id,f)}return Object.freeze([...l.values()].sort((u,f)=>u.id.localeCompare(f.id)))}function ar(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function kL(e,t){if(!ar(e)||!Array.isArray(e.items)||!ar(e.items[0]))return null;const a=e.items[0],s=ar(t)&&ar(t.item)?t.item:null;if(!s||typeof a.cycleId!="string"||typeof a.title!="string"||typeof a.signal!="string"||typeof a.updatedAt!="string"||!ar(a.counts)||!Array.isArray(s.actions))return null;const c=s.actions.filter(l=>ar(l)?["id","priority","action","owner","firstStep","successMeasure"].every(u=>typeof l[u]=="string"):!1);return Object.freeze({cycleId:a.cycleId,title:a.title,signal:a.signal,updatedAt:a.updatedAt,counts:Object.freeze({actions:Number.isSafeInteger(a.counts.actions)?Number(a.counts.actions):0,gaps:Number.isSafeInteger(a.counts.gaps)?Number(a.counts.gaps):0}),actions:Object.freeze(c)})}function ML(){const[e,t]=B.useState({status:"loading",pulse:null});return B.useEffect(()=>{const a=new AbortController,s=async()=>{try{const l=new URL("/api/operate/local-reviews?page=1&pageSize=1",window.location.origin),u=await fetch(l,{headers:{accept:"application/json"},signal:a.signal});if(!u.ok){t({status:"empty",pulse:null});return}const f=await u.json(),h=ar(f)&&Array.isArray(f.items)&&ar(f.items[0])?f.items[0].cycleId:null;if(typeof h!="string"){t({status:"empty",pulse:null});return}const A=await fetch(new URL(`/api/operate/local-reviews/${encodeURIComponent(h)}`,window.location.origin),{headers:{accept:"application/json"},signal:a.signal});if(!A.ok){t({status:"failed",pulse:null});return}const y=kL(f,await A.json());t(y?{status:"ready",pulse:y}:{status:"failed",pulse:null})}catch{a.signal.aborted||t({status:"failed",pulse:null})}};s();const c=window.setInterval(()=>void s(),5e3);return()=>{window.clearInterval(c),a.abort()}},[]),e}function GL(e,t){const a=`${e.action} ${e.firstStep} ${e.successMeasure}`.toLowerCase();return[...t].some(s=>a.includes(s.toLowerCase()))}function YL({currentBinding:e,current:t}){const[a,s]=B.useState(null),c=ML(),l=Br(t,e);if(!l)return r.jsx(fs,{routeKind:"planning.sprints",title:"Planning cannot be trusted"});const{nodes:u,edges:f}=l.graph,h=u.filter(j=>j.type==="sprint").sort((j,I)=>I.id.localeCompare(j.id)),A=h.find(j=>j.id===a)??h.find(j=>Kg(j)!=="done")??h[0]??null,y=A?aw(u,A):Object.freeze({members:Object.freeze([]),missing:Object.freeze([])}),m=Fj(y.members),E=y.members.length===0?0:Math.round(m.done/y.members.length*100),b=A?TL(y.members,u,f):[],w=new Set(A?[Ut(A),...y.members.flatMap(j=>[j.id,Ut(j)])]:[]),x=c.status==="ready"?c.pulse.actions.filter(j=>GL(j,w)):[];return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-sprints","data-route-kind":"planning.sprints",children:[r.jsx(us,{presentation:l.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status · sprints",title:"Sprints",count:`${h.length} ${h.length===1?"sprint":"sprints"}`,description:"Commitment, delivery health, dependencies, and operating context from the records already in this workspace."}),h.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"calendar-range",title:"No sprints yet",description:"No artifact of type sprint is in the graph.",action:r.jsx(xa,{command:"/planr-plan",label:"plan the next sprint",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsx("section",{className:"pc-sprints__grid","aria-label":"Sprint timeline",children:h.map(j=>{const I=aw(u,j),C=fl.map(k=>({state:k,count:I.members.filter(N=>N.status===k).length})).filter(k=>k.count>0),O=kI(j),S=rw(j,I),_=(A==null?void 0:A.id)===j.id;return r.jsxs("button",{type:"button",className:"pc-sprints__card","data-active":_||void 0,"aria-pressed":_,onClick:()=>s(j.id),children:[r.jsxs("span",{className:"pc-sprints__head",children:[r.jsx(os,{type:"sprint",id:Ut(j)}),r.jsx(Vn,{tone:S.tone,variant:"outline",children:S.label})]}),r.jsx(m2,{name:iw(j),segments:C}),r.jsxs("span",{className:"pc-sprints__dates",children:[r.jsx(Be,{name:"calendar-range",size:12}),O.start&&O.end?`${O.start} → ${O.end}`:"Dates not recorded"]})]},j.id)})}),A?r.jsxs("section",{className:"pc-sprints__workspace","aria-label":`${Ut(A)} delivery workspace`,children:[r.jsxs("div",{className:"pc-sprints__summary",children:[r.jsxs("div",{className:"pc-sprints__summary-copy",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Current commitment"}),r.jsx("h2",{children:iw(A)}),r.jsx("p",{children:il(A,"goal","sprintGoal")??"No sprint goal is recorded."})]}),r.jsx(bi,{status:Kg(A),size:"sm"})]}),r.jsxs("dl",{className:"pc-sprints__metrics",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Complete"}),r.jsxs("dd",{children:[E,"%"]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed"}),r.jsx("dd",{children:y.members.length})]}),r.jsxs("div",{"data-attention":m.blocked>0||void 0,children:[r.jsx("dt",{children:"Blocked"}),r.jsx("dd",{children:m.blocked})]}),r.jsxs("div",{"data-attention":b.length>0||void 0,children:[r.jsx("dt",{children:"External deps"}),r.jsx("dd",{children:b.length})]})]}),r.jsxs("div",{className:"pc-sprints__body",children:[r.jsx(At,{title:`${Ut(A)} commitment`,meta:`${y.members.length} items`,padding:0,children:y.members.length>0?r.jsx(ji,{compact:!0,rows:y.members,onRowClick:ls,caption:`Members of ${Ut(A)}`,columns:[nl,Xu,sm(f),al]}):r.jsx("div",{className:"pc-sprints__empty",children:r.jsx(Jt,{icon:"calendar-range",title:"No committed work",description:"This sprint has no taskIds and no item points back through sprintId."})})}),r.jsxs("aside",{className:"pc-sprints__intelligence","aria-label":"Sprint intelligence",children:[r.jsxs("div",{className:"pc-sprints__intelligence-section",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Delivery health"}),r.jsx("strong",{children:rw(A,y).label}),r.jsxs("p",{children:[m.done," done · ",m.inProgress," in progress · ",m.outstanding," ","outstanding"]})]}),y.missing.length>0?r.jsxs("div",{className:"pc-sprints__intelligence-section","data-tone":"warn",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Scope gaps"}),r.jsxs("strong",{children:[y.missing.length," committed IDs are missing"]}),r.jsx("p",{children:y.missing.join(", ")})]}):null,r.jsxs("div",{className:"pc-sprints__intelligence-section",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Open dependencies"}),r.jsx("strong",{children:b.length===0?"No external blockers recorded":`${b.length} outside this sprint`}),b.length>0?r.jsx("ul",{children:b.slice(0,4).map(j=>r.jsx("li",{children:r.jsxs("button",{type:"button",onClick:()=>ls(j),children:[Ut(j)," · ",j.title]})},j.id))}):null]}),c.status==="ready"?r.jsxs("div",{className:"pc-sprints__intelligence-section","data-tone":"operate",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Latest operating review"}),r.jsx("strong",{children:c.pulse.signal}),r.jsxs("p",{children:[c.pulse.counts.actions," actions · ",c.pulse.counts.gaps," gaps ·"," ",x.length," reference this scope"]}),x.slice(0,3).map(j=>r.jsxs("div",{className:"pc-sprints__operate-action",children:[r.jsx("span",{children:j.priority}),r.jsx("p",{children:j.action}),r.jsxs("small",{children:["Next: ",j.firstStep]}),r.jsxs("small",{children:["Owner: ",j.owner]})]},j.id)),r.jsx("a",{href:"#/operate/today",children:"Open Operate today →"})]}):null]})]})]}):null]})]})}const HL=Object.freeze({"planning.overview":_L,"planning.graph":yL,"planning.board":ZU,"planning.list":IL,"planning.sprints":YL,"planning.activity":LU,"planning.console":tL,"planning.detail":nw,"planning.spec":nw});function zL(e){return HL[e.kind]??null}const $L=_G;function UL({route:e,projection:t,binding:a}){return Pe(t)&&t.data!==null&&a!==null&&t.binding!==null&&Ye(t.binding,a)&&e.subjectId===a.subjectId}function om(e,t){return!Pe(e)||e.kind!=="booting"&&e.kind!=="loading"&&e.kind!=="refreshing"?!1:e.binding===null?e.kind==="booting"&&t===null:t!==null&&Ye(e.binding,t)}function cm({route:e,projection:t}){const a=So(e),s=(a==null?void 0:a.label)??"Workspace",c=e.product==="operate",l=t.kind==="refreshing"?"refreshing":"loading";return r.jsxs("section",{className:"op-workspace op-route-pending","data-route-kind":e.kind,"data-route-pending":t.kind,"aria-busy":"true",children:[r.jsx(st,{eyebrow:c?"planr-operate":"planr-plan",title:s,count:l,description:c?"Reading the Operate projection. The route is already resolved.":"Reading the graph from .planr/. The route is already resolved."}),c?r.jsx(uo,{count:4,label:`Loading ${s}`}):r.jsx(wg,{rows:8,label:`Loading ${s}`,columns:[{label:"Item"},{label:"Status",width:132},{label:"Sprint",width:88},{label:"Updated",width:88}]})]})}function Na({route:e,binding:t,projection:a,eyebrow:s,title:c,description:l}){return om(a,t)?r.jsx(cm,{route:e,projection:a}):Pe(a)&&a.data===null?r.jsx("div",{className:"op-workspace","data-route-kind":e.kind,children:r.jsx(VG,{currentBinding:t,route:e,state:a,children:()=>null})}):r.jsx("div",{className:"op-workspace","data-route-kind":e.kind,children:r.jsx(be,{state:"incompatible",eyebrow:s,title:c,description:l})})}function LL({route:e,binding:t,projection:a}){return om(a,t)?r.jsx(cm,{route:e,projection:a}):Pe(a)&&a.data===null?r.jsx(Na,{route:e,binding:t,projection:a,eyebrow:"Planning projection",title:"Planning cannot be trusted",description:"The current state is not a parser-verified owner-issued Planning graph."}):r.jsx("div",{className:"op-workspace op-planning","data-route-kind":e.kind,children:r.jsx(be,{state:"incompatible",eyebrow:"Planning projection",title:"Planning cannot be trusted",description:"The current state is not a parser-verified owner-issued Planning graph."})})}function PL({route:e,projection:t,binding:a,connectionState:s,searchSources:c,operateSearchBindings:l}){if(e.kind==="planning.search")return r.jsx($L,{sources:c,operateBindings:l,connectionState:s});const u=zL(e);return om(t,a)?r.jsx(cm,{route:e,projection:t}):u&&a&&Pe(t)?r.jsx(u,{currentBinding:a,current:t}):r.jsx(LL,{route:e,binding:a,projection:t})}function FL({route:e,projection:t,binding:a}){if(a&&Pe(t)){if(e.kind==="operate.evidence"||e.kind==="operate.evidence-item")return r.jsx(kt.audit.EvidencePage,{currentBinding:a,current:t});if(e.kind==="operate.outcomes"||e.kind==="operate.outcome")return r.jsx(kt.audit.OutcomesPage,{currentBinding:a,current:t});if(e.kind==="operate.history")return r.jsx(kt.audit.HistoryPage,{currentBinding:a,current:t})}const s=e.kind==="operate.history"?"History":e.kind==="operate.outcomes"||e.kind==="operate.outcome"?"Outcomes":"Evidence";return r.jsx("div",{className:"op-workspace op-audit","data-route-kind":e.kind,children:r.jsx(be,{state:"incompatible",eyebrow:`${s} projection`,title:`${s} cannot be trusted`,description:"The current state is not a parser-verified owner-issued audit projection."})})}function VL(e){const{route:t,projection:a,binding:s,operateReviewNavigation:c,refetchCurrent:l}=e;return So(t)?t.product==="planning"?r.jsx(PL,{...e}):t.kind==="operate.today"?s&&Pe(a)&&(a.kind==="first-use"||a.kind==="empty"||a.data!==null&&kt.today.createValidator(s)(a.data))?r.jsx(kt.today.Page,{currentBinding:s,sources:{current:a}}):r.jsx(Na,{...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"?s&&Pe(a)&&a.data!==null&&kt.cycles.createListValidator(s)(a.data)?r.jsx(kt.cycles.ListPage,{currentBinding:s,current:a}):r.jsx(Na,{...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"?s&&Pe(a)&&a.data!==null?r.jsx(kt.cycles.DetailRoute,{currentBinding:s,workspace:a,reviewNavigation:c}):r.jsx(Na,{...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"?s&&Pe(a)&&a.data!==null&&kt.review.createValidator(s)(a.data)?r.jsx(kt.review.Page,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...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"?s&&Pe(a)&&kt.actions.createListValidator(s)(a.data)?r.jsx(kt.actions.ListPage,{currentBinding:s,current:a}):r.jsx(Na,{...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"?s&&Pe(a)&&a.data!==null?r.jsx(kt.actions.PlanningHandoffPage,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...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"?s&&Pe(a)&&kt.actions.createDetailValidator(s)(a.data)?r.jsx(kt.actions.DetailPage,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...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"?s&&Pe(a)&&kt.inboxRecovery.createRecoveryValidator(s)(a.data)?r.jsx(kt.inboxRecovery.RecoveryPage,{currentBinding:s,current:a}):r.jsx(Na,{...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"?s&&Pe(a)&&kt.inboxRecovery.createInboxValidator(s)(a.data)?r.jsx(kt.inboxRecovery.InboxPage,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...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"?r.jsx(FL,{route:t,projection:a,binding:s}):r.jsx("div",{className:"op-workspace op-workspace--unknown","data-route-kind":t.kind,children:r.jsx(be,{state:"incompatible",eyebrow:"Route composition",title:"Destination is not implemented",description:"This parsed route has no dedicated verified workspace in the current dashboard build."})}):r.jsxs("div",{className:"op-workspace op-workspace--unknown","data-route-kind":"not-found",children:[r.jsx("p",{className:"op-eyebrow",children:"Closed route"}),r.jsx("h1",{children:"Destination not available"}),r.jsx("p",{children:"This address is not part of the OpenPlanr dashboard route contract."}),r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Return to Planning overview"})]})}const Jg=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"}]}]),du=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"}]}]),Zg=Object.freeze([{kind:"planning.console",icon:"terminal"},{kind:"system.diagnostics",icon:"life-buoy"}]),MI=new Map(Dw.map(e=>[e.kind,e])),qL={"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 GI(e,t){return t.kind==="not-found"?!1:e.kind===t.kind?!0:qL[t.kind]===e.kind}function sw({item:e,route:t}){const a=MI.get(e.kind);return a?r.jsxs("a",{className:"pc-rail__item",href:a.href,"aria-current":GI(a,t)?"page":void 0,children:[r.jsx(Be,{name:e.icon,size:14}),r.jsx("span",{children:a.label})]}):null}function ow({item:e,route:t,onNavigate:a}){const s=MI.get(e.kind);return s?r.jsxs("a",{className:"pc-mobile-nav__item",href:s.href,"aria-current":GI(s,t)?"page":void 0,onClick:a,children:[r.jsx(Be,{name:e.icon,size:16}),r.jsx("span",{children:s.label})]}):null}function KL({product:e,route:t,operateAvailable:a}){var A,y,m,E,b;const[s,c]=B.useState(!1);B.useEffect(()=>c(!1),[t.kind]);const l=e==="operate"?((A=du[0])==null?void 0:A.items.slice(0,3))??[]:((y=Jg[0])==null?void 0:y.items.slice(0,3))??[],u=e==="operate"?[...((m=du[0])==null?void 0:m.items.slice(3))??[],...((E=du[1])==null?void 0:E.items)??[],...Zg]:[...((b=Jg[0])==null?void 0:b.items.slice(3))??[],...Zg],f=e==="operate"?"Operate":"Planning",h=e==="operate"?{href:"#/overview",icon:"list-tree",label:"Planning",unavailable:!1}:{href:"#/operate/today",icon:a?"gauge":"unplug",label:"Operate",unavailable:!a};return r.jsxs("nav",{className:"pc-mobile-nav","aria-label":`Mobile ${f} navigation`,children:[l.map(w=>r.jsx(ow,{item:w,route:t},w.kind)),r.jsxs("a",{className:"pc-mobile-nav__item",href:h.href,"data-unavailable":h.unavailable||void 0,title:h.unavailable?"operate — local reviews available; actions require a command gateway":void 0,children:[r.jsx(Be,{name:h.icon,size:16}),r.jsx("span",{children:h.label})]}),r.jsxs("details",{className:"pc-mobile-more",open:s,onToggle:w=>c(w.currentTarget.open),children:[r.jsxs("summary",{className:"pc-mobile-nav__item","aria-label":`More ${f} destinations`,children:[r.jsx(Be,{name:"layers",size:16}),r.jsx("span",{children:"More"})]}),r.jsx("div",{className:"pc-mobile-more__sheet",children:u.map(w=>r.jsx(ow,{item:w,route:t,onNavigate:()=>c(!1)},w.kind))})]})]})}function JL({product:e,route:t,operateAvailable:a,onOpenPalette:s}){const c=e==="operate"?du:Jg,l=!a;return r.jsxs(r.Fragment,{children:[r.jsxs("nav",{className:"pc-rail","aria-label":"Dashboard navigation",children:[r.jsxs("div",{className:"pc-rail__brand",children:[r.jsx("span",{className:"pc-rail__tile","aria-hidden":"true",children:"P"}),r.jsx("span",{className:"pc-rail__wordmark",children:"openplanr"}),r.jsx(Be,{name:"chevrons-up-down",size:13,color:"var(--pc-text-tertiary)"})]}),r.jsxs("div",{className:"pc-rail__products",children:[r.jsxs("a",{className:"pc-rail__product",href:"#/overview","aria-current":e==="planning"?"page":void 0,children:[r.jsx(Be,{name:"list-tree",size:12}),"planning"]}),r.jsxs("a",{className:"pc-rail__product",href:"#/operate/today","aria-current":e==="operate"?"page":void 0,"data-unavailable":l||void 0,title:l?"operate — local reviews available; actions require a command gateway":"operate",children:[r.jsx(Be,{name:l?"unplug":"gauge",size:12}),"operate"]})]}),r.jsxs("button",{type:"button",className:"pc-rail__palette",onClick:s,"aria-keyshortcuts":"Meta+K Control+K",children:[r.jsx(Be,{name:"search",size:13}),r.jsx("span",{children:"Command…"}),r.jsxs("span",{className:"pc-rail__keys",children:[r.jsx(dr,{size:"sm",children:"⌘"}),r.jsx(dr,{size:"sm",children:"K"})]})]}),r.jsx("div",{className:"pc-rail__sections",children:c.map(u=>r.jsxs("div",{className:"pc-rail__section",children:[r.jsx("div",{className:"pc-rail__label",children:u.label}),r.jsx("div",{className:"pc-rail__items",children:u.items.map(f=>r.jsx(sw,{item:f,route:t},f.kind))})]},u.label))}),r.jsx("div",{className:"pc-rail__footer",children:Zg.map(u=>r.jsx(sw,{item:u,route:t},u.kind))})]}),r.jsx(KL,{product:e,route:t,operateAvailable:a},t.kind)]})}const YI=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 cw({state:e}){const t=YI[e];return r.jsxs("span",{className:"pc-conn","data-tone":t.tone,title:`connection: ${t.label}`,children:[r.jsx(Be,{name:t.icon,size:11,spin:e==="booting"}),t.label]})}function ZL({state:e}){const t=YI[e];return r.jsxs("span",{className:"pc-watcher",role:"status","aria-label":t.dotLabel,children:[r.jsx("span",{className:"pc-watcher__dot","data-dot":t.dot,"aria-hidden":"true"}),r.jsx("span",{className:"pc-watcher__label",children:t.dotLabel})]})}const HI="op-theme",lw=Object.freeze({system:"light",light:"dark",dark:"system"}),XL=Object.freeze({system:"monitor",light:"sun",dark:"moon"});function WL(){try{const e=localStorage.getItem(HI);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function dw(e){const t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e)}function eP(){const[e,t]=B.useState("system");return B.useEffect(()=>{const a=WL();t(a),dw(a)},[]),r.jsx(Oj,{icon:XL[e],label:`Theme: ${e}. Switch to ${lw[e]}.`,size:"sm",onClick:()=>{const a=lw[e];t(a),dw(a);try{localStorage.setItem(HI,a)}catch{}}})}function tP({projectName:e,showSubject:t=!1,route:a,connectionState:s,inspectorOpen:c,onToggleInspector:l,onOpenPalette:u}){const f=So(a),h=a.product??"system",A=!t||a.kind==="not-found"?null:a.subjectId;return r.jsxs("header",{className:"pc-topbar",children:[e?r.jsx("span",{className:"pc-topbar__crumb",title:e,children:e}):null,r.jsx("span",{className:"pc-topbar__crumb",children:h}),r.jsx(Be,{name:"chevron-right",size:12,color:"var(--pc-text-tertiary)"}),r.jsx("span",{className:"pc-topbar__view",children:(f==null?void 0:f.label)??"Closed route"}),A?r.jsxs(r.Fragment,{children:[r.jsx(Be,{name:"chevron-right",size:12,color:"var(--pc-text-tertiary)"}),r.jsx("span",{className:"pc-topbar__subject",title:A,children:A})]}):null,r.jsxs("button",{type:"button",className:"pc-topbar__palette",onClick:u,"aria-label":"Open the command palette","aria-keyshortcuts":"Meta+K Control+K",children:[r.jsx(Be,{name:"search",size:13}),r.jsx("span",{className:"pc-topbar__placeholder",children:"Jump to a view or an artifact…"}),r.jsxs("span",{className:"pc-rail__keys",children:[r.jsx(dr,{size:"sm",children:"⌘"}),r.jsx(dr,{size:"sm",children:"K"})]})]}),r.jsxs("output",{className:"pc-topbar__end","aria-live":"polite",children:[s!=="read-only"?r.jsx(cw,{state:s}):null,r.jsx(cw,{state:"read-only"})]}),r.jsx(eP,{}),r.jsx(Oj,{icon:c?"panel-right-close":"panel-left-close",label:c?"Hide inspector":"Show inspector",size:"sm",active:c,onClick:l})]})}function nP({branch:e,nodeCount:t,edgeCount:a,connectionState:s,buildId:c}){return r.jsxs("footer",{className:"pc-statusbar",children:[r.jsxs("span",{className:"pc-statusbar__item",children:[r.jsx(Be,{name:"git-branch",size:11}),r.jsx("span",{className:"pc-statusbar__text",children:e??r.jsx(gt,{children:"no branch"})})]}),r.jsx("span",{className:"pc-statusbar__item",children:r.jsx("span",{className:"pc-statusbar__text",children:t===null?"graph not read":`${t} nodes · ${a===null?"—":a} edges`})}),r.jsx(ZL,{state:s}),r.jsx("span",{className:"pc-statusbar__end",title:"Served build",children:r.jsx("span",{className:"pc-statusbar__text",children:c})})]})}const aP=Object.freeze(["type","sprintId","updated","dependsOn","ref"]);function uw(e){typeof window<"u"&&(window.location.hash=e)}function iP({mode:e,selection:t,floating:a}){return r.jsx("aside",{className:"pc-shell-inspector","data-floating":a||void 0,"aria-label":"Inspector",children:e==="skeleton"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx(cn,{w:92,h:18,radius:"var(--pc-radius-xs)"}),r.jsx(cn,{w:64,h:14})]}),r.jsx(cn,{h:16}),r.jsx(cn,{w:"72%",h:16}),r.jsx("div",{className:"pc-shell-inspector__skeleton",children:aP.map((s,c)=>r.jsxs("div",{className:"pc-shell-inspector__skeleton-row",children:[r.jsx("span",{children:s}),r.jsx(cn,{h:12,delay:c*60})]},s))})]}):e==="stub"?r.jsxs("div",{className:"pc-shell-inspector__stub",children:[r.jsx("span",{className:"pc-shell-inspector__id",children:"inspector"}),r.jsx("p",{children:"No artifact has been read. The schema on disk is a version this build does not parse."})]}):t===null?r.jsx(Jt,{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"?r.jsxs("div",{className:"pc-shell-inspector__content","aria-live":"polite",children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx("span",{className:"pc-shell-inspector__id",children:t.actionId}),r.jsx(xg,{state:t.state,size:"sm"})]}),r.jsx("h2",{className:"pc-shell-inspector__title",children:t.title}),r.jsxs("div",{className:"pc-shell-inspector__metadata",children:[r.jsx(wt,{label:"Revision",mono:!0,children:t.revision}),r.jsx(wt,{label:"Route",mono:!0,children:t.route??r.jsx(gt,{})}),r.jsx(wt,{label:"Executions",mono:!0,children:t.executions>0?t.executions:r.jsx(gt,{children:"none"})}),r.jsx(wt,{label:"Deep link",mono:!0,children:t.deepLink??r.jsx(gt,{})})]}),t.href?r.jsx(ua,{variant:"secondary",size:"sm",iconAfter:"arrow-right",onClick:()=>uw(t.href),children:"Open action"}):null]}):r.jsxs("div",{className:"pc-shell-inspector__content","aria-live":"polite",children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx(os,{type:t.type,id:t.id}),r.jsx(bi,{status:t.status,size:"sm"})]}),r.jsx("h2",{className:"pc-shell-inspector__title",children:t.title}),r.jsxs("div",{className:"pc-shell-inspector__metadata",children:[r.jsx(wt,{label:"Type",mono:!0,children:t.type}),r.jsx(wt,{label:"Sprint",mono:!0,children:t.sprintId??r.jsx(gt,{})}),r.jsx(wt,{label:"Updated",mono:!0,children:t.updated??r.jsx(gt,{})}),r.jsx(wt,{label:"Dependencies",mono:!0,children:t.dependsOn.length>0?t.dependsOn.join(", "):r.jsx(gt,{})}),r.jsx(wt,{label:"Reference",mono:!0,children:t.ref??r.jsx(gt,{})})]}),t.href?r.jsx(ua,{variant:"secondary",size:"sm",iconAfter:"arrow-right",onClick:()=>uw(t.href),children:"Open artifact"}):null]})})}const fw=1180,tg=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}]}}),rP=Object.freeze({eyebrow:"planr-operate",shape:"cards"}),sP=Object.freeze(["a","b","c","d","e"]);function oP(e){return e.kind!=="not-found"&&e.kind in tg?tg[e.kind]:e.product==="operate"?rP:tg["planning.overview"]}function cP({route:e,note:t}){const a=So(e),s=oP(e),c=e.subjectId??(a==null?void 0:a.label)??"Workspace",l=e.product==="operate"?"Reading the Operate projection. The route is already resolved.":"Reading the graph from .planr/. The route is already resolved.";return r.jsxs("div",{className:"pc-transit","aria-busy":"true",children:[r.jsx(st,{eyebrow:s.eyebrow,title:c,count:t,description:l}),s.shape==="overview"?r.jsxs(r.Fragment,{children:[r.jsx(At,{padding:14,children:r.jsx(cn,{h:44})}),r.jsx("div",{className:"pc-transit__gap",children:r.jsx(wg,{rows:4,label:"Loading blocked",columns:[{label:"Item"},{label:"Depends on",width:200},{label:"Sprint",width:92},{label:"Updated",width:88}]})})]}):s.shape==="graph"?r.jsx(At,{padding:14,children:r.jsx(cn,{h:420})}):s.shape==="board"?r.jsx("div",{className:"pc-transit__board",children:sP.map((u,f)=>r.jsxs(At,{padding:10,children:[r.jsx(cn,{w:"52%",h:12,delay:f*60}),r.jsx("div",{className:"pc-transit__gap-sm",children:r.jsx(cn,{h:54,delay:f*60+40})}),r.jsx("div",{className:"pc-transit__gap-sm",children:r.jsx(cn,{h:54,delay:f*60+80})})]},u))}):s.shape==="cards"?r.jsx(uo,{count:4,label:`Loading ${c}`}):s.shape==="detail"?r.jsx(uo,{count:1,height:168,min:520,label:"Loading artifact"}):r.jsx(wg,{rows:8,columns:s.columns??[],label:`Loading ${c}`})]})}function lP({route:e,phase:t,detail:a}){const s=t==="incompatible"||t==="unavailable",c=["checking",s?t:"compatible"];return r.jsxs("div",{className:"pc-boot",children:[r.jsxs("div",{className:"pc-boot__strip",role:"status","aria-live":"polite",children:[r.jsx(Be,{name:s?"octagon-alert":"loader-circle",size:13,spin:!s,color:s?"var(--pc-astate-failed-fg)":"var(--pc-astate-proposed-fg)"}),r.jsx("span",{children:"boot"}),r.jsx("span",{className:"pc-boot__steps",children:c.map((l,u)=>r.jsxs(B.Fragment,{children:[u>0?r.jsx(Be,{name:"chevron-right",size:11,color:"var(--pc-text-tertiary)"}):null,r.jsx("span",{className:"pc-boot__phase","data-current":l===t||void 0,children:l})]},l))})]}),r.jsx("div",{className:"pc-boot__body",children:s?r.jsx("div",{className:"pc-boot__card",children:r.jsx(At,{padding:14,children:r.jsxs("div",{className:"pc-boot__stack",children:[r.jsx(qt,{tone:t==="incompatible"?"danger":"warn",title:t==="incompatible"?"This build cannot read the graph on disk":"No graph at this path",children:a??(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.")}),r.jsx(xa,{command:t==="incompatible"?"/planr-doctor":"/planr-plan",label:t==="incompatible"?"check the schema version":"create the graph",size:"sm"})]})})}):r.jsx("div",{className:"pc-shell__scroll",children:r.jsx(cP,{route:e,note:"booting"})})})]})}function dP({state:e,reason:t}){return e==="stale"?r.jsx("div",{className:"pc-plane-banner",children:r.jsx(qt,{tone:"warn",title:"Showing the last good read",children:t})}):r.jsxs("div",{className:"pc-plane-banner",children:[r.jsx(qt,{tone:"danger",title:"Offline — the watcher is not reachable",children:t}),r.jsx(xa,{command:"/planr-dashboard",label:"restart the local reader",size:"sm"})]})}function uP({detail:e}){return r.jsxs("div",{className:"pc-incompatible",children:[r.jsx(qt,{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."}),r.jsx(xa,{command:"/planr-doctor",label:"report the schema version on disk",size:"sm"}),r.jsx(qt,{tone:"info",title:"Nothing was changed",children:"The dashboard only ever reads. No file was migrated, rewritten or removed."})]})}const zI=1440;function fP(e){return typeof window>"u"?()=>{}:(window.addEventListener("resize",e),()=>window.removeEventListener("resize",e))}function pw(){return typeof window>"u"?zI:window.innerWidth}function pP(){const{route:e,identity:t,connection:a,buildId:s,binding:c,projection:l,planningProjection:u,operateSearchBindings:f,operateReviewNavigation:h,refetchCurrent:A,bootstrap:y,bootPhase:m,bootDetail:E}=sA(),b=RG(u),w=VA(),j=B.useSyncExternalStore(fP,pw,()=>zI)<fw,[I,C]=B.useState(()=>pw()>=fw);B.useEffect(()=>{j&&C(!1)},[j,e]),B.useEffect(()=>{w.openTick>0&&C(!0)},[w.openTick]);const O=e.product??"planning",S=m==="incompatible"||a.state==="incompatible",_=e.kind==="system.diagnostics"||S,k=a.state==="booting"&&!_,N=k?"skeleton":S?"stub":"selection",z=y!==null&&y.queryRoots.operate===null,M=e.product==="operate"&&z,L=(c==null?void 0:c.productArea)==="planning"?Br(u,c):null,Z=L?null:zj(u),F=L?L.graph.nodes.length:Z&&Z.length>0?Z.length:null,oe=L?L.graph.edges.length:null;return r.jsxs("div",{className:"pc-shell","data-dashboard-build-id":s,"data-product":e.product??"system",children:[r.jsx("a",{className:"pc-skip-link",href:"#main-content",onClick:re=>{var pe;re.preventDefault(),(pe=document.getElementById("main-content"))==null||pe.focus({preventScroll:!1})},children:"Skip to main content"}),r.jsx(JL,{product:O,route:e,operateAvailable:!z,onOpenPalette:b.show}),r.jsxs("div",{className:"pc-shell__column",children:[r.jsx(tP,{route:e,projectName:t.projectName,showSubject:UL({route:e,projection:l,binding:c}),connectionState:a.state,inspectorOpen:I,onToggleInspector:()=>C(re=>!re),onOpenPalette:b.show}),r.jsxs("div",{className:"pc-shell__plane",children:[r.jsx("main",{id:"main-content",className:"pc-shell__main",tabIndex:-1,"aria-busy":k||void 0,children:M?r.jsx(J2,{route:e,origin:y.origin},e.kind):k?r.jsx(lP,{route:e,phase:m,detail:E}):r.jsxs(r.Fragment,{children:[a.state==="stale"||a.state==="offline"?r.jsx(dP,{state:a.state,reason:a.reason}):null,r.jsx("div",{className:"pc-shell__scroll",children:_?r.jsxs(r.Fragment,{children:[S?r.jsx(uP,{detail:E}):null,r.jsx(I2,{embeddedBuildId:s,bootstrap:y,bootPhase:m,bootDetail:E,connection:a})]}):r.jsx("div",{className:"op-route-frame",children:r.jsx(VL,{route:e,projection:l,binding:c,connectionState:a.state,searchSources:b.sources,operateSearchBindings:f,operateReviewNavigation:h,refetchCurrent:A})})})]})}),I?r.jsx(iP,{mode:N,selection:w.selection,floating:j},`${e.kind}:${e.subjectId??""}:${w.openTick}`):null]}),r.jsx(nP,{branch:(y==null?void 0:y.project.branch)??null,nodeCount:F,edgeCount:oe,connectionState:a.state,buildId:s})]}),r.jsx(OG,{open:b.open,onClose:b.close,sources:b.sources,operateBindings:f,preferredOperateCycleId:e.product==="operate"?c==null?void 0:c.cycleId:null,connectionState:a.state})]})}const hw=/^[A-Za-z0-9][A-Za-z0-9._-]{0,159}$/u,Xg=/^sha256:[a-f0-9]{64}$/u,ng=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,hP=/^(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/u,gP=/^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?$/u,AP=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,mP=["DASHBOARD_MANIFEST_MISSING","DASHBOARD_MANIFEST_INVALID","DASHBOARD_ASSET_MISSING","DASHBOARD_BUILD_MISMATCH"];function ui(e,t,a){if(e!==t)throw new ee(a,`expected ${t}`);return t}function gw(e,t,a){if(typeof e!="string"||!t.includes(e))throw new ee(a,"contains an unsupported value");return e}function yP(e){if(typeof e!="string"||e.length<1||e.length>160)throw new ee("$.project.name","contains an invalid string");for(const t of e){const a=t.codePointAt(0)??0;if(a<=31||a>=127&&a<=159)throw new ee("$.project.name","contains an invalid string")}return e}function Aw(e,t){if(e===null)return null;const a=ht(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],t);if(!Number.isSafeInteger(a.generation)||a.generation<0)throw new ee(`${t}.generation`,"expected a non-negative safe integer");return Object.freeze({actorId:Fe(a.actorId,`${t}.actorId`,ng),projectId:Fe(a.projectId,`${t}.projectId`,Xg),scopeId:Fe(a.scopeId,`${t}.scopeId`,ng),domainId:Fe(a.domainId,`${t}.domainId`,ng),domainVersion:Fe(a.domainVersion,`${t}.domainVersion`,hP),generation:a.generation})}function EP(e){const t=ht(e,["kind","schemaVersion","protocolVersion","ui","server","capabilities","project","queryRoots","origin","compatibility"],"$"),a=ht(t.ui,["buildId","expectedBuildId","assetManifestHash"],"$.ui"),s=ht(t.server,["packageVersion"],"$.server"),c=ht(t.capabilities,["planningGraph","operateExperience","operateCommands","diagnostics"],"$.capabilities"),l=ht(c.planningGraph,["schemaVersion"],"$.capabilities.planningGraph"),u=ht(c.operateExperience,["protocolVersion","schemaVersion"],"$.capabilities.operateExperience"),f=ht(c.operateCommands,["protocolVersion","transportVersion","available"],"$.capabilities.operateCommands"),h=ht(c.diagnostics,["schemaVersion","available"],"$.capabilities.diagnostics"),A=ht(t.project,["projectId","name","branch","products"],"$.project"),y=ht(t.queryRoots,["planning","operate"],"$.queryRoots"),m=ht(t.compatibility,["status","reasonCodes"],"$.compatibility"),E=bh(a.buildId,"$.ui.buildId",hw),b=bh(a.expectedBuildId,"$.ui.expectedBuildId",hw),w=bh(a.assetManifestHash,"$.ui.assetManifestHash",Xg),x=gw(m.status,["compatible","incompatible"],"$.compatibility.status");if(!Array.isArray(m.reasonCodes))throw new ee("$.compatibility.reasonCodes","expected an array");const j=m.reasonCodes.map((S,_)=>gw(S,mP,`$.compatibility.reasonCodes[${_}]`));if(new Set(j).size!==j.length)throw new ee("$.compatibility.reasonCodes","contains duplicates");if(x==="compatible"){if(!E||!b||!w||j.length>0)throw new ee("$.compatibility","compatible bootstrap lacks exact build custody");if(E!==b)throw new ee("$.ui","compatible build identities differ")}else if(j.length===0)throw new ee("$.compatibility","incompatible bootstrap requires a reason");if(E!==b&&!j.includes("DASHBOARD_BUILD_MISMATCH"))throw new ee("$.ui","build mismatch requires its exact reason");if(j.includes("DASHBOARD_BUILD_MISMATCH")&&E===b)throw new ee("$.ui","build mismatch reason requires unequal build identities");if(!Array.isArray(A.products)||A.products.length!==2||new Set(A.products).size!==2||!A.products.includes("planning")||!A.products.includes("operate"))throw new ee("$.project.products","expected the exact Planning and Operate set");const I=Fe(A.projectId,"$.project.projectId",Xg),C=Aw(y.planning,"$.queryRoots.planning"),O=Aw(y.operate,"$.queryRoots.operate");for(const[S,_]of[["planning",C],["operate",O]])if(_!==null&&_.projectId!==I)throw new ee(`$.queryRoots.${S}.projectId`,"does not equal the bootstrap project identity");if(C!==null&&(C.scopeId!=="planning"||C.domainId!=="planning"||C.domainVersion!=="1.0.0"))throw new ee("$.queryRoots.planning","does not equal the Planning read domain");return Object.freeze({kind:ui(t.kind,"dashboard-bootstrap","$.kind"),schemaVersion:ui(t.schemaVersion,"1.0.0","$.schemaVersion"),protocolVersion:ui(t.protocolVersion,"1.2.0","$.protocolVersion"),ui:Object.freeze({buildId:E,expectedBuildId:b,assetManifestHash:w}),server:Object.freeze({packageVersion:Fe(s.packageVersion,"$.server.packageVersion",gP)}),capabilities:Object.freeze({planningGraph:Object.freeze({schemaVersion:ui(l.schemaVersion,"1.0.0","$.capabilities.planningGraph.schemaVersion")}),operateExperience:Object.freeze({protocolVersion:ui(u.protocolVersion,"2.0.0","$.capabilities.operateExperience.protocolVersion"),schemaVersion:ui(u.schemaVersion,"1.0.0","$.capabilities.operateExperience.schemaVersion")}),operateCommands:Object.freeze({protocolVersion:ui(f.protocolVersion,"2.0.0","$.capabilities.operateCommands.protocolVersion"),transportVersion:ui(f.transportVersion,"1.0.0","$.capabilities.operateCommands.transportVersion"),available:Uc(f.available,"$.capabilities.operateCommands.available")}),diagnostics:Object.freeze({schemaVersion:ui(h.schemaVersion,"1.0.0","$.capabilities.diagnostics.schemaVersion"),available:Uc(h.available,"$.capabilities.diagnostics.available")})}),project:Object.freeze({projectId:I,name:yP(A.name),branch:Fe(A.branch,"$.project.branch",/^.{1,255}$/u),products:Object.freeze([...A.products])}),queryRoots:Object.freeze({planning:C,operate:O}),origin:Fe(t.origin,"$.origin",AP),compatibility:Object.freeze({status:x,reasonCodes:Object.freeze(j)})})}async function BP(e,t={}){var a;try{const s=await(t.fetcher??fetch)("/api/bootstrap",{method:"GET",headers:{accept:"application/json"},signal:t.signal});if(!s.ok)throw new ee("$",`bootstrap request failed with ${s.status}`);if(!((a=s.headers.get("content-type"))!=null&&a.toLowerCase().startsWith("application/json")))throw new ee("$","bootstrap response is not JSON");const c=EP(Gw(await s.text())),l=t.expectedOrigin??(typeof window>"u"?null:window.location.origin);if(!l||c.origin!==l)throw new ee("$.origin","does not equal the current loopback origin");return c.compatibility.status!=="compatible"||c.ui.buildId!==e||c.ui.expectedBuildId!==e?Object.freeze({bootstrap:c,phase:"incompatible",detail:c.compatibility.reasonCodes.length>0?c.compatibility.reasonCodes.join(" · "):"Installed dashboard build is incompatible."}):Object.freeze({bootstrap:c,phase:"compatible",detail:null})}catch(s){if(s instanceof DOMException&&s.name==="AbortError")throw s;return Object.freeze({bootstrap:null,phase:"unavailable",detail:s instanceof Error?s.message:"OpenPlanr did not return a validated bootstrap envelope."})}}const $I=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,Wu=4*1024*1024;function vP(e){return typeof e=="object"&&e!==null&&e.kind==="operate-action-display-workspace"}function bP(e){return typeof e=="object"&&e!==null&&e.kind==="operate-recovery-display-surface"}function UI(e){return typeof e=="object"&&e!==null&&e.kind==="operate-experience-display-surface"}function wP(e,t,a){if(!$I.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(a.productArea!=="operate"||a.cycleId===null)throw new Error("Operate collection identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s.searchParams.set("cycleId",a.cycleId),s.searchParams.set("projectId",a.projectId),s.searchParams.set("generation",String(a.generation)),s}async function xP(e){const{identity:t}=e;if(t.cycleId===null)return null;const a=wP(e.origin,"/api/operate/actions",t),s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>Wu)throw new Error("Actions display response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Actions display response is not JSON.")}if(!s.ok||!UI(l))return null;try{Cn(l,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",subjectId:null,cycleId:t.cycleId})}catch{return null}return l}function jP(e,t,a){if(!$I.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(a.productArea!=="operate"||a.cycleId===null||a.subjectId===null)throw new Error("Operate Action detail identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s}async function QP(e){const{identity:t}=e;if(t.subjectId===null||t.cycleId===null)return null;const a=jP(e.origin,`/api/operate/actions/${encodeURIComponent(t.subjectId)}`,t),s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>Wu)throw new Error("Action display response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Action display response is not JSON.")}if(!s.ok||!vP(l))return null;try{const u={actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId};Tg(l,u)}catch{return null}return l}async function IP(e){const{identity:t}=e,a=t.subjectId===null?"/api/operate/inbox":`/api/operate/inbox/${encodeURIComponent(t.subjectId)}`,s=new URL(a,e.origin);s.searchParams.set("scopeId",t.scopeId),s.searchParams.set("domainId",t.domainId),s.searchParams.set("domainVersion",t.domainVersion),s.searchParams.set("projectId",t.projectId),s.searchParams.set("generation",String(t.generation));const c=await(e.fetcher??fetch)(s,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),l=await c.text();if(new TextEncoder().encode(l).byteLength>Wu)throw new Error("Inbox display response exceeds the dashboard JSON limit.");let u;try{u=JSON.parse(l)}catch{throw new Error("Inbox display response is not JSON.")}if(!c.ok||!UI(u))return null;try{Cn(u,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:u.payload.generatedAt,eventHead:u.payload.eventHead,viewHash:t.viewHash??u.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"inbox",subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return u}async function CP(e){const{identity:t}=e,a=new URL("/api/operate/recovery",e.origin);a.searchParams.set("scopeId",t.scopeId),a.searchParams.set("domainId",t.domainId),a.searchParams.set("domainVersion",t.domainVersion);const s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>Wu)throw new Error("Recovery display response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Recovery display response is not JSON.")}if(!s.ok||!bP(l))return null;try{kg(l,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash})}catch{return null}return l}const SP=Object.freeze({createDetailValidator:Vu,createInboxValidator:nm,createListValidator:ZA,createRecoveryValidator:am,fetchDetail:QP,fetchInbox:IP,fetchList:xP,fetchRecovery:CP}),OP=Object.freeze({createEvidenceValidator:LQ,createHistoryValidator:FQ,createOutcomeValidator:qQ}),_P=Object.freeze({createDetailValidator:pI,createListValidator:tm}),NP=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,RP=4*1024*1024;function DP(e,t,a,s){if(!NP.test(e))throw new Error("Review reads require an exact loopback origin.");const c=new URL(`/api/operate/cycles/${encodeURIComponent(a)}/reviews/${encodeURIComponent(s)}`,e);return c.searchParams.set("scopeId",t.scopeId),c.searchParams.set("domainId",t.domainId),c.searchParams.set("domainVersion",t.domainVersion),c}async function TP(e){var l;const t=await(e.fetcher??fetch)(DP(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||!((l=t.headers.get("content-type"))!=null&&l.startsWith("application/json")))throw new Error("The owner-issued Review workspace is unavailable.");const a=await t.text();if(new TextEncoder().encode(a).byteLength>RP)throw new Error("The owner-issued Review workspace exceeds its wire limit.");let s;try{s=JSON.parse(a)}catch{throw new Error("The owner-issued Review workspace is not JSON.")}const c=as(s);return tl(c),tl(c,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,reviewId:e.reviewId,sourceArtifactKind:c.payload.sourceArtifactKind,sourceArtifactHash:c.payload.sourceArtifactHash,sourceEventHead:c.payload.sourceEventHead,sourceReadEventHead:c.payload.sourceReadEventHead,sourceViewHash:c.payload.sourceViewHash}),c}const kP=Object.freeze({createValidator:Zu,fetch:TP,uniqueNavigationForCycle:uI}),MP=Object.freeze({createValidator:im,resolveModel:OI}),GP=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,YP=4*1024*1024;function HP(e,t){if(!GP.test(e))throw new Error("Dashboard reads require an exact loopback origin.");return new URL(t,e)}async function lm(e,t){var s;if(t!=null&&t.aborted)throw t.reason;if(!e.ok||!((s=e.headers.get("content-type"))!=null&&s.startsWith("application/json")))throw new Error("The owner-issued dashboard projection is unavailable.");const a=await e.text();if(new TextEncoder().encode(a).byteLength>YP)throw new Error("The owner-issued dashboard projection exceeds its wire limit.");try{return JSON.parse(a)}catch{throw new Error("The owner-issued dashboard projection is not JSON.")}}function dm(e,t,a){const s=HP(e,t);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s}function um(e){return Object.freeze({accept:"application/json","x-openplanr-actor":e.actorId})}function zP(e,t,a={}){if(t.kind==="not-found"||t.product===null)throw new Error("A query root cannot bind an unknown or system route.");return Ve({productArea:t.product,route:Pa(t),actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,cycleId:a.cycleId??null,subjectId:t.subjectId,eventHead:a.eventHead??null,viewHash:a.viewHash??null,generation:e.generation})}async function $P(e){const t=dm(e.origin,`/api/operate/${e.surface}`,e.root),a=await(e.fetcher??fetch)(t,{headers:um(e.root),cache:"no-store",signal:e.signal}),s=as(await lm(a,e.signal)),c=Cn(s).payload;if(Cn(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash,surface:e.surface,subjectId:null,cycleId:null}),c.surface!==e.surface)throw new Error("The owner returned a display for a different Operate surface.");return s}function UP(e,t){if(t==="history")return"/api/operate/history";if(t==="outcome"){if(e.subjectId===null)throw new Error("Outcome detail requires an exact subject.");return`/api/operate/outcomes/${encodeURIComponent(e.subjectId)}`}const a=e.subjectId?`/${encodeURIComponent(e.subjectId)}`:"";return`/api/operate/${t}${a}`}async function LP(e){const t=dm(e.origin,UP(e.route,e.surface),e.root);t.searchParams.set("cycleId",e.cycleId);const a=await(e.fetcher??fetch)(t,{headers:um(e.root),cache:"no-store",signal:e.signal}),s=as(await lm(a,e.signal)),c=La(s).payload;if(La(s,{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:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash}),c.surface!==e.surface)throw new Error("The owner returned a display for a different Operate audit surface.");return s}async function PP(e){const t=dm(e.origin,`/api/operate/cycles/${encodeURIComponent(e.cycleId)}`,e.root),a=await(e.fetcher??fetch)(t,{headers:um(e.root),cache:"no-store",signal:e.signal}),s=as(await lm(a,e.signal)),c=vu(s).payload;return vu(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash,subjectId:e.cycleId,cycleId:e.cycleId}),s}const FP=Object.freeze({fetchAuditDisplay:LP,fetchCycleDisplay:PP,fetchRootDisplay:$P,identityFromRoot:zP}),VP=Object.freeze({actions:SP,audit:OP,cycles:_P,review:kP,today:MP,transport:FP}),qP=Object.freeze(Object.defineProperty({__proto__:null,operateRuntime:VP},Symbol.toStringTag,{value:"Module"})),KP=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,ef=/^sha256:[a-f0-9]{64}$/u,JP=/^ppatch_[1-9][0-9]*_[a-f0-9]{16}$/u,ZP=/^PLANNING_[A-Z0-9_]{1,119}$/u,XP=new Set(["epic","feature","story","task","spec","backlog","quick","sprint","adr"]),WP=new Set(["done","in-progress","blocked","outstanding","addressed"]),e4=new Set(["contains","depends_on"]),t4=new Set(["agile","spec","mixed","empty"]),fm=16*1024*1024,LI=96,PI=25e4;function he(e,t){throw new ee(e,t)}function jn(e,t,a){if(e===null||typeof e!="object"||Array.isArray(e))return he(a,"expected an object");try{const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)return he(a,"expected a plain object");const c=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(c).some(f=>{var h,A;return typeof f!="string"||((h=c[f])==null?void 0:h.get)!==void 0||((A=c[f])==null?void 0:A.set)!==void 0}))return he(a,"contains an accessor or symbol field");const l=Object.keys(c).sort(),u=[...t].sort();return JSON.stringify(l)!==JSON.stringify(u)?he(a,"contains missing or unknown fields"):Object.fromEntries(Object.entries(c).map(([f,h])=>[f,h.value]))}catch(s){if(s instanceof ee)throw s;return he(a,"could not be inspected safely")}}function n4(e,t,a){for(const s of t)try{return jn(e,s,a)}catch(c){if(!(c instanceof ee))throw c}return he(a,"contains missing or unknown fields")}function a4(e,t){const a=new WeakSet;let s=0;const c=(l,u,f)=>{if(s+=1,f>LI||s>PI)return he(u,"contains an over-complex value");if(l===null||typeof l=="string"||typeof l=="boolean")return l;if(typeof l=="number")return Number.isFinite(l)?l:he(u,"contains a non-finite number");if(typeof l!="object")return he(u,"contains a non-JSON value");if(a.has(l))return he(u,"contains a repeated or cyclic object");a.add(l);try{const h=Object.getPrototypeOf(l),A=Array.isArray(l)?Array.prototype:Object.prototype;if(h!==A&&h!==null)return he(u,"contains a non-plain object");const y=Object.getOwnPropertyDescriptors(l);if(Reflect.ownKeys(y).some(m=>{var E,b;return typeof m!="string"||((E=y[m])==null?void 0:E.get)!==void 0||((b=y[m])==null?void 0:b.set)!==void 0}))return he(u,"contains an accessor or symbol field");if(Array.isArray(l)){if(Object.keys(y).some(b=>b!=="length"&&!/^(?:0|[1-9][0-9]*)$/u.test(b)))return he(u,"contains an invalid array field");const E=[];for(let b=0;b<l.length;b+=1){const w=y[String(b)];if(!w)return he(u,"contains a sparse array");E.push(c(w.value,`${u}[${b}]`,f+1))}return E}return Object.fromEntries(Object.entries(y).map(([m,E])=>[m,c(E.value,`${u}.${m}`,f+1)]))}catch(h){if(h instanceof ee)throw h;return he(u,"could not be inspected safely")}finally{a.delete(l)}};return c(e,t,0)}function FI(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){for(const t of Object.values(e))FI(t);Object.freeze(e)}return e}function Qo(e,t,a){return typeof e=="string"&&a.test(e)?e:he(t,"contains an invalid string")}function i4(e){for(let t=0;t<e.length;t+=1){const a=e.charCodeAt(t);if(a>=55296&&a<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))return!0;t+=1}else if(a>=56320&&a<=57343)return!0}return!1}function Iu(e,t){return typeof e!="string"||e.length<1||e.length>256||e==="."||e===".."||e.includes("\\")||i4(e)||[...e].some(a=>{const s=a.codePointAt(0)??0;return s<=31||s===127})?he(t,"contains an invalid subject identity"):e}function r4(e,t){const a=jn(e,["sequence","hash"],t);if(!Number.isSafeInteger(a.sequence)||a.sequence<0)return he(`${t}.sequence`,"expected a non-negative safe integer");const s=a.sequence,c=a.hash===null?null:Qo(a.hash,`${t}.hash`,ef);return s===0!=(c===null)?he(t,"has an inconsistent head"):Object.freeze({sequence:s,hash:c})}function rl(e,t){const a=jn(e,["eventHead","viewHash"],t);return Object.freeze({eventHead:r4(a.eventHead,`${t}.eventHead`),viewHash:Qo(a.viewHash,`${t}.viewHash`,ef)})}function s4(e,t="$.binding"){const a=jn(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],t);return!Number.isSafeInteger(a.generation)||a.generation<0?he(`${t}.generation`,"expected a non-negative safe integer"):a.scopeId!=="planning"||a.domainId!=="planning"||a.domainVersion!=="1.0.0"?he(t,"does not belong to the Planning read domain"):Object.freeze({actorId:Qo(a.actorId,`${t}.actorId`,KP),projectId:Qo(a.projectId,`${t}.projectId`,ef),scopeId:"planning",domainId:"planning",domainVersion:"1.0.0",generation:a.generation})}function o4(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Yc(e,t){return o4(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function Wg(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 VI(e,t){const a=s4(e);return Wg(a,t)?a:he("$.binding","is foreign to the active read")}function eA(e,t,a){const s=["id","type","title","status","frontmatter"],c=["githubIssue","linearIssueIdentifier"],l=n4(e,Array.from({length:1<<c.length},(y,m)=>[...s,...c.filter((E,b)=>(m&1<<b)!==0)]),t),u=l.type,f=l.status;if(typeof u!="string"||!XP.has(u))return he(`${t}.type`,"contains an unsupported artifact type");if(typeof f!="string"||!WP.has(f))return he(`${t}.status`,"contains an unsupported status");if(typeof l.title!="string")return he(`${t}.title`,"expected a string");const h=a4(l.frontmatter,`${t}.frontmatter`);if(h===null||typeof h!="object"||Array.isArray(h))return he(`${t}.frontmatter`,"expected a plain object");const A={id:Iu(l.id,`${t}.id`),type:u,title:l.title,status:f,frontmatter:h};if(Object.hasOwn(l,"githubIssue")){if(!(typeof l.githubIssue=="string"||Number.isSafeInteger(l.githubIssue)&&l.githubIssue>=0))return he(`${t}.githubIssue`,"expected a string or non-negative integer");A.githubIssue=l.githubIssue}if(Object.hasOwn(l,"linearIssueIdentifier")){if(typeof l.linearIssueIdentifier!="string")return he(`${t}.linearIssueIdentifier`,"expected a string");A.linearIssueIdentifier=l.linearIssueIdentifier}return Object.hasOwn(l,"body")?he(`${t}.body`,"is not permitted on a graph node"):FI(A)}function tA(e,t){const a=jn(e,["from","to","kind"],t);return typeof a.kind!="string"||!e4.has(a.kind)?he(`${t}.kind`,"contains an unsupported edge kind"):Object.freeze({from:Iu(a.from,`${t}.from`),to:Iu(a.to,`${t}.to`),kind:a.kind})}function pm(e,t){const a=jn(e,["nodes","edges"],t);if(!Array.isArray(a.nodes)||!Array.isArray(a.edges))return he(t,"expected node and edge arrays");const s=a.nodes.map((f,h)=>eA(f,`${t}.nodes[${h}]`)),c=new Set;for(const f of s){if(c.has(f.id))return he(`${t}.nodes`,"contains duplicate node identities");c.add(f.id)}const l=a.edges.map((f,h)=>tA(f,`${t}.edges[${h}]`)),u=new Set;for(const f of l){const h=`${f.kind}\0${f.from}\0${f.to}`;if(!c.has(f.from)||!c.has(f.to))return he(`${t}.edges`,"contains an edge outside this graph");if(u.has(h))return he(`${t}.edges`,"contains duplicate edges");u.add(h)}return Object.freeze({nodes:Object.freeze(s),edges:Object.freeze(l)})}function hm(e){let t=!1,a=!1;for(const s of e.nodes)(s.type==="epic"||s.type==="feature")&&(t=!0),s.type==="spec"&&(a=!0);return t&&a?"mixed":t?"agile":a?"spec":"empty"}function qI(e,t){return typeof e=="string"&&t4.has(e)?e:he(t,"contains an unsupported Planning mode")}function c4(e,t){const a=jn(e,["updated","added","removed","edges"],t),s=jn(a.edges,["added","removed"],`${t}.edges`);if(!Array.isArray(a.updated)||!Array.isArray(a.added)||!Array.isArray(a.removed)||!Array.isArray(s.added)||!Array.isArray(s.removed))return he(t,"contains invalid patch arrays");const c=a.updated.map((b,w)=>eA(b,`${t}.updated[${w}]`)),l=a.added.map((b,w)=>eA(b,`${t}.added[${w}]`)),u=a.removed.map((b,w)=>Iu(b,`${t}.removed[${w}]`)),f=s.added.map((b,w)=>tA(b,`${t}.edges.added[${w}]`)),h=s.removed.map((b,w)=>tA(b,`${t}.edges.removed[${w}]`)),A=[...c,...l].map(b=>b.id);if(new Set(A).size!==A.length||new Set(u).size!==u.length||A.some(b=>u.includes(b)))return he(t,"contains conflicting node operations");const y=b=>`${b.kind}\0${b.from}\0${b.to}`,m=f.map(y),E=h.map(y);return new Set(m).size!==m.length||new Set(E).size!==E.length||m.some(b=>E.includes(b))?he(`${t}.edges`,"contains conflicting edge operations"):Object.freeze({updated:Object.freeze(c),added:Object.freeze(l),removed:Object.freeze(u),edges:Object.freeze({added:Object.freeze(f),removed:Object.freeze(h)})})}function KI(e){if(typeof e!="string"||new TextEncoder().encode(e).byteLength>fm)return he("$","response exceeds the Planning wire limit");try{let t=0,a=0;const s=()=>{for(;/\s/u.test(e[t]??"");)t+=1},c=()=>{if(e[t]!=='"')return he("$","contains an invalid JSON string");const u=t;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else{if(e[t]==='"')return t+=1,JSON.parse(e.slice(u,t));t+=1}return he("$","contains an unterminated JSON string")},l=u=>{var f;if(a+=1,(u>LI||a>PI)&&he("$","response exceeds the Planning complexity limit"),s(),e[t]==="{"){t+=1,s();const h=new Set;if(e[t]==="}"){t+=1;return}for(;t<e.length;){s();const A=c();if(h.has(A)&&he("$","response contains duplicate object members"),h.add(A),s(),e[t]!==":"&&he("$","contains an invalid JSON object"),t+=1,l(u+1),s(),e[t]==="}"){t+=1;return}e[t]!==","&&he("$","contains an invalid JSON object"),t+=1}}else if(e[t]==="["){if(t+=1,s(),e[t]==="]"){t+=1;return}for(;t<e.length;){if(l(u+1),s(),e[t]==="]"){t+=1;return}e[t]!==","&&he("$","contains an invalid JSON array"),t+=1}}else if(e[t]==='"'){c();return}else{const h=(f=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u))==null?void 0:f[0];h||he("$","contains an invalid JSON value"),t+=h.length;return}he("$","contains an unterminated JSON value")};return l(0),s(),t!==e.length?he("$","contains trailing JSON bytes"):JSON.parse(e)}catch(t){if(t instanceof ee)throw t;return he("$","contains invalid JSON")}}function Cu(e,t){const a=jn(e,["kind","schemaVersion","binding","cursor","mode","graph"],"$");if(a.kind!=="planning-graph-snapshot"||a.schemaVersion!=="1.0.0")return he("$","has an unsupported Planning graph contract");const s=VI(a.binding,t),c=rl(a.cursor,"$.cursor"),l=pm(a.graph,"$.graph"),u=qI(a.mode,"$.mode");return xn(l)!==c.viewHash||hm(l)!==u?he("$","graph, mode, and cursor commitment disagree"):Object.freeze({kind:"planning-graph-snapshot",schemaVersion:"1.0.0",binding:s,cursor:c,mode:u,graph:l})}function l4(e,t){return Cu(KI(e),t)}function d4(e,t){const a=jn(e,["patchId","patchHash","from","to","patch"],"$.payload"),s=rl(a.from,"$.payload.from"),c=rl(a.to,"$.payload.to"),l=c4(a.patch,"$.payload.patch"),u=Qo(a.patchHash,"$.payload.patchHash",ef),f=Qo(a.patchId,"$.payload.patchId",JP),h=xn(l),A=xn({kind:"planning-live-head",previous:s.eventHead,sequence:c.eventHead.sequence,patchHash:h,viewHash:c.viewHash});return!Yc(c,t)||c.eventHead.sequence!==s.eventHead.sequence+1||c.viewHash===s.viewHash||c.eventHead.hash!==A||xn({from:s,to:c,patch:l})!==u||f!==`ppatch_${c.eventHead.sequence}_${u.slice(7,23)}`?he("$.payload","patch cursor and commitment disagree"):Object.freeze({patchId:f,patchHash:u,from:s,to:c,patch:l})}function mw(e,t){const a=typeof e=="string"?KI(e):e,s=jn(a,["kind","schemaVersion","event","binding","cursor","payload"],"$");if(s.kind!=="planning-live-event"||s.schemaVersion!=="1.0.0")return he("$","has an unsupported Planning live contract");const c=VI(s.binding,t),l=rl(s.cursor,"$.cursor"),u={kind:"planning-live-event",schemaVersion:"1.0.0",binding:c,cursor:l};if(s.event==="snapshot"){const f=jn(s.payload,["mode","graph"],"$.payload"),h=pm(f.graph,"$.payload.graph"),A=qI(f.mode,"$.payload.mode");return xn(h)!==l.viewHash||hm(h)!==A?he("$.payload","snapshot graph and cursor commitment disagree"):Object.freeze({...u,event:"snapshot",payload:Object.freeze({mode:A,graph:h})})}if(s.event==="patch")return Object.freeze({...u,event:"patch",payload:d4(s.payload,l)});if(s.event==="ready"){const f=jn(s.payload,["readOnly","reasonCodes"],"$.payload");return f.readOnly!==!0||!Array.isArray(f.reasonCodes)||f.reasonCodes.length?he("$.payload","contains an invalid ready state"):Object.freeze({...u,event:"ready",payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([])})})}if(s.event==="stale"){const f=jn(s.payload,["readOnly","reasonCodes","recovery"],"$.payload");return f.readOnly!==!0||!Array.isArray(f.reasonCodes)||f.reasonCodes.length<1||f.reasonCodes.length>8||f.reasonCodes.some(h=>typeof h!="string"||!ZP.test(h))||typeof f.recovery!="string"||f.recovery.length<1||f.recovery.length>240?he("$.payload","contains an invalid stale state"):Object.freeze({...u,event:"stale",payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([...f.reasonCodes]),recovery:f.recovery})})}return he("$.event","contains an unsupported Planning event")}function u4(e,t){const a=new Set(t.patch.removed),s=new Map(t.patch.updated.map(y=>[y.id,y])),c=e.nodes.filter(y=>!a.has(y.id)).map(y=>s.get(y.id)??y),l=new Set(c.map(y=>y.id));for(const y of t.patch.updated)if(!l.has(y.id))return he("$.payload.patch.updated","targets a missing node");for(const y of t.patch.added){if(l.has(y.id))return he("$.payload.patch.added","duplicates an existing node");l.add(y.id),c.push(y)}const u=y=>`${y.kind}\0${y.from}\0${y.to}`,f=new Set(t.patch.edges.removed.map(u)),h=e.edges.filter(y=>!f.has(u(y))),A=new Set(h.map(u));for(const y of t.patch.edges.removed)if(!e.edges.some(m=>u(m)===u(y)))return he("$.payload.patch.edges.removed","targets a missing edge");for(const y of t.patch.edges.added){if(A.has(u(y)))return he("$.payload.patch.edges.added","duplicates an existing edge");A.add(u(y)),h.push(y)}return pm({nodes:c,edges:h},"$.nextGraph")}function f4(e){const t=e.identity;let a=e.initial?Cu(e.initial,t):null,s=!1,c=!1,l=null,u=a?JSON.stringify(a):null;const f=new Map;a&&!Wg(a.binding,t)&&he("$.initial.binding","is foreign to this reconciler");const h=()=>s||!e.isCurrent(t),A=m=>h()?Object.freeze({kind:"rejected",reason:"inactive"}):(c||(c=!0,l=m,e.onRefetch(m)),Object.freeze({kind:"refetch",reason:l??m})),y=m=>{var x,j;if(h())return Object.freeze({kind:"rejected",reason:"inactive"});if(c)return Object.freeze({kind:"refetch",reason:l??"invalid-event"});if(!Wg(m.binding,t))return Object.freeze({kind:"rejected",reason:"foreign-binding"});if(m.event==="snapshot"){const I=Object.freeze({kind:"planning-graph-snapshot",schemaVersion:"1.0.0",binding:m.binding,cursor:m.cursor,mode:m.payload.mode,graph:m.payload.graph});if(a){if(I.cursor.eventHead.sequence<a.cursor.eventHead.sequence)return A("restart-regression");if(I.cursor.eventHead.sequence>a.cursor.eventHead.sequence)return A("gap");if(!Yc(I.cursor,a.cursor))return A("divergent-duplicate");const C=JSON.stringify(I);return u===C?Object.freeze({kind:"duplicate"}):A("divergent-duplicate")}return a=I,u=JSON.stringify(I),f.clear(),c=!1,l=null,e.onSnapshot(I),Object.freeze({kind:"accepted",event:"snapshot"})}if(!a)return A("cursor-mismatch");if(m.event==="ready")return Yc(m.cursor,a.cursor)?((x=e.onReady)==null||x.call(e,m),Object.freeze({kind:"accepted",event:"ready"})):A("cursor-mismatch");if(m.event==="stale")return(j=e.onStale)==null||j.call(e,m),A("stale");const E=m.payload,b=`${E.to.eventHead.sequence}:${E.to.eventHead.hash}:${E.to.viewHash}`,w=JSON.stringify(E);if(Yc(E.to,a.cursor))return f.get(b)===w?Object.freeze({kind:"duplicate"}):A("divergent-duplicate");if(E.to.eventHead.sequence<=a.cursor.eventHead.sequence)return A("reordered");if(E.to.eventHead.sequence!==a.cursor.eventHead.sequence+1)return A("gap");if(!Yc(E.from,a.cursor))return A("reordered");try{const I=u4(a.graph,E);if(xn(I)!==E.to.viewHash)return A("state-mismatch");const C=Object.freeze({...a,cursor:E.to,mode:hm(I),graph:I});return f.set(b,w),a=C,u=null,e.onPatch(C,E),Object.freeze({kind:"accepted",event:"patch"})}catch{return A("state-mismatch")}};return Object.freeze({ingest:y,ingestJson:m=>{if(h())return Object.freeze({kind:"rejected",reason:"inactive"});try{return y(mw(m,t))}catch{return A("invalid-event")}},ingestSseFrame:(m,E)=>{if(h())return Object.freeze({kind:"rejected",reason:"inactive"});try{const b=mw(m,t);return E&&E!==b.event?A("invalid-event"):y(b)}catch{return A("invalid-event")}},getSnapshot:()=>a,markReconciled:m=>{const E=Cu(m,t);return a=E,u=JSON.stringify(E),f.clear(),c=!1,l=null,!0},dispose:()=>{s=!0}})}function JI(e,t,a){const s=new URL(e);if(s.protocol!=="http:"||!["127.0.0.1","localhost"].includes(s.hostname)||s.pathname!=="/"||s.search||s.hash)return he("$.origin","expected an exact loopback HTTP origin");if(a.productArea!=="planning"||a.scopeId!=="planning"||a.domainId!=="planning"||a.domainVersion!=="1.0.0")return he("$.identity","does not belong to the Planning read domain");const c=new URL(t,s);return c.searchParams.set("projectId",a.projectId),c.searchParams.set("scopeId",a.scopeId),c.searchParams.set("domainId",a.domainId),c.searchParams.set("domainVersion",a.domainVersion),c.searchParams.set("generation",String(a.generation)),c}async function p4(e,t){var s;if(!e.ok||!((s=e.headers.get("content-type"))!=null&&s.startsWith(t)))return he("$","Planning response is unavailable");const a=await e.text();return new TextEncoder().encode(a).byteLength>fm?he("$","Planning response exceeds its wire limit"):a}async function h4(e){const t=JI(e.origin,"/api/planning/graph",e.identity),a=await(e.fetcher??fetch)(t,{headers:{accept:"application/json","x-openplanr-actor":e.identity.actorId},cache:"no-store",signal:e.signal});return l4(await p4(a,"application/json"),e.identity)}function g4(e){let t="";for(const a of e)t+=String.fromCharCode(a);return btoa(t).replaceAll("+","-").replaceAll("/","_").replace(/=+$/u,"")}function A4(e){const t=rl(e,"$.cursor");return g4(new TextEncoder().encode(JSON.stringify(t)))}function m4(e){var u,f;const t=new AbortController,a=()=>t.abort();(u=e.signal)!=null&&u.aborted?t.abort(e.signal.reason):(f=e.signal)==null||f.addEventListener("abort",a,{once:!0});const s=JI(e.origin,"/api/planning/events",e.identity),c={accept:"text/event-stream","x-openplanr-actor":e.identity.actorId};e.lastEventId&&(c["last-event-id"]=e.lastEventId);const l=(async()=>{var E,b;const h=await(e.fetcher??fetch)(s,{headers:c,signal:t.signal});if(!h.ok||!((E=h.headers.get("content-type"))!=null&&E.startsWith("text/event-stream"))||!h.body)return he("$","Planning live response is unavailable");const A=h.body.getReader(),y=new TextDecoder;let m="";try{for(;!t.signal.aborted;){const w=await A.read();if(m+=y.decode(w.value,{stream:!w.done}),m=m.replaceAll(`\r
|
|
547
|
+
`,`
|
|
548
|
+
`).replace(/\r(?!$)/gu,`
|
|
549
|
+
`),w.done&&m.endsWith("\r")&&(m=`${m.slice(0,-1)}
|
|
550
|
+
`),new TextEncoder().encode(m).byteLength>fm)return he("$","Planning live frame exceeds its wire limit");let x=m.indexOf(`
|
|
551
|
+
|
|
552
|
+
`);for(;x>=0;){const j=m.slice(0,x);m=m.slice(x+2);const I=j.split(`
|
|
553
|
+
`),C=(b=I.find(S=>S.startsWith("event:")))==null?void 0:b.slice(6).trim(),O=I.filter(S=>S.startsWith("data:")).map(S=>S.slice(5).trimStart()).join(`
|
|
554
|
+
`);O&&e.reconciler.ingestSseFrame(O,C),x=m.indexOf(`
|
|
555
|
+
|
|
556
|
+
`)}if(w.done){if(m.trim())return he("$","Planning live response ended mid-frame");break}}}finally{A.releaseLock()}})().catch(h=>{if(!t.signal.aborted)throw h instanceof ee?h:new ee("$","Planning live response failed safely")}).finally(()=>{var h;return(h=e.signal)==null?void 0:h.removeEventListener("abort",a)});return Object.freeze({completion:l,close:()=>{var h;t.abort(),e.reconciler.dispose(),(h=e.signal)==null||h.removeEventListener("abort",a)}})}const y4=Object.freeze({connectSse:m4,createSseReconciler:f4,encodeCheckpoint:A4,fetchGraph:h4,parseGraphEnvelope:Cu}),E4=Object.freeze(Object.defineProperty({__proto__:null,planningRuntime:y4},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze({create:Ve}),v4=Object.freeze({ValidationError:ee,isValidatedState:Pe,parseSafeError:$w,parseState:so,statePolicy:oo}),b4=Object.freeze({parse:Ha}),w4=Object.freeze({connectSse:tI,createSseReconciler:eI}),x4=Object.freeze({identity:B4,projection:v4,routing:b4,transport:w4}),j4=Object.freeze(Object.defineProperty({__proto__:null,dashboardRuntime:x4},Symbol.toStringTag,{value:"Module"})),{operateRuntime:Xe}=qP,{planningRuntime:Hc}=E4,{dashboardRuntime:Ne}=j4,ZI=new Set(["ready","read-only","stale","partial","blocked","offline"]),Pr=Ne.projection.parseState({kind:"booting",binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:Ne.projection.statePolicy("booting")}),XI=Ne.routing.parse("#/overview");function WI(e){return`DASHBOARD_${e.toUpperCase().replace("-","_")}`}function pr(e){return Ne.projection.parseState({kind:"loading",binding:e,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:Ne.projection.statePolicy("loading")},{currentBinding:e})}function e0(e,t=null){return Ne.projection.parseState({kind:"unavailable",binding:e,data:null,reasonCodes:["DASHBOARD_UNAVAILABLE"],error:t,mutationEnabled:!1,policy:Ne.projection.statePolicy("unavailable")},{currentBinding:e})}function yr(e,t=!1){const s=(e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{}).code==="DASHBOARD_RESPONSE_INVALID"||e instanceof Ne.projection.ValidationError;return Ne.projection.parseSafeError({code:t||!s?"DASHBOARD_READ_FAILED":"DASHBOARD_RESPONSE_INVALID",retryable:!1,context:{operation:"dashboard.projection.read"}})}function Ya(e,t){const a=t??yr(void 0);if(a.code!=="DASHBOARD_RESPONSE_INVALID")return e0(e,a);const s=Ne.projection.parseSafeError({code:"DASHBOARD_RESPONSE_INVALID",retryable:!1,context:{}});return Ne.projection.parseState({kind:"corrupt",binding:null,data:null,reasonCodes:["DASHBOARD_CORRUPT"],error:s,mutationEnabled:!1,policy:Ne.projection.statePolicy("corrupt")})}function Q4(e,t,a,s,c=!1,l=null){if(!ZI.has(e))throw new Error("Unsupported owner presentation state.");return Ne.projection.parseState({kind:e,binding:t,data:a,reasonCodes:e==="ready"?[]:[WI(e)],error:l,mutationEnabled:e==="ready"&&c,policy:Ne.projection.statePolicy(e)},{currentBinding:t,validateData:s})}function I4(e,t){return!Ne.projection.isValidatedState(e)||e.binding===null||e.data===null?e:Ne.projection.parseState({kind:"stale",binding:e.binding,data:e.data,reasonCodes:["DASHBOARD_STALE"],error:t,mutationEnabled:!1,policy:Ne.projection.statePolicy("stale")},{currentBinding:e.binding,validateData:a=>a!==null})}function C4(e,t){return Ne.projection.parseState({kind:e,binding:t,data:null,reasonCodes:[WI(e)],error:null,mutationEnabled:!1,policy:Ne.projection.statePolicy(e)},{currentBinding:t})}function Fr(e,t){const a=B.useRef(t);a.current=t;const s=B.useRef(e);s.current=e;const c=B.useRef(null),l=B.useRef(null),[u,f]=B.useState(0),[h,A]=B.useState(()=>Object.freeze({key:null,revision:0,phase:"idle",data:null,error:null})),y=B.useCallback(()=>f(j=>j+1),[]),m=B.useCallback(()=>{var O;if(c.current!==null)return c.current;const j=s.current;if(j===null)return Promise.reject(new Error("Owner read is unavailable."));const I=new AbortController;(O=l.current)==null||O.abort(),l.current=I,A(S=>Object.freeze({key:j,revision:S.revision,phase:"loading",data:S.key===j?S.data:null,error:null}));const C=a.current(I.signal).then(S=>{if(I.signal.aborted||s.current!==j)throw new DOMException("Cancelled","AbortError");return A(_=>Object.freeze({key:j,revision:_.revision,phase:"ready",data:S,error:null})),S}).catch(S=>{throw!I.signal.aborted&&s.current===j&&A(_=>Object.freeze({key:j,revision:_.revision,phase:"failed",data:_.key===j?_.data:null,error:yr(S,_.key===j&&_.data!==null)})),S}).finally(()=>{c.current===C&&(c.current=null),l.current===I&&(l.current=null)});return c.current=C,C},[]);B.useEffect(()=>{var I;if((I=l.current)==null||I.abort(),l.current=null,c.current=null,e===null){A(Object.freeze({key:null,revision:u,phase:"idle",data:null,error:null}));return}const j=new AbortController;return A(C=>Object.freeze({key:e,revision:u,phase:"loading",data:C.key===e?C.data:null,error:null})),a.current(j.signal).then(C=>{j.signal.aborted||A(Object.freeze({key:e,revision:u,phase:"ready",data:C,error:null}))}).catch(C=>{j.signal.aborted||A(O=>Object.freeze({key:e,revision:u,phase:"failed",data:O.key===e?O.data:null,error:yr(C,O.key===e&&O.data!==null)}))}),()=>j.abort()},[e,u]);const E=h.key===e&&h.revision===u,b=E?h.phase:e===null?"idle":"loading",w=E?h.data:null,x=E?h.error:null;return B.useMemo(()=>Object.freeze({phase:b,data:w,error:x,refetch:y,reconcile:m}),[w,x,b,m,y])}function S4(e){return e===null?null:JSON.stringify(e)}function O4(e){return e.product==="planning"?e:XI}function _4(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 eu(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 N4(e){return e.kind==="operate.action-planning"?{kind:"operate.action",product:"operate",subjectId:e.subjectId}:e}function Vr(e){return Object.freeze({eventHead:e.payload.eventHead,viewHash:e.payload.viewHash})}function Io(e){const t=e.payload.status;if(!ZI.has(t))throw new Ne.projection.ValidationError("$.payload.status","contains an unsupported display status");return t}function R4(e){return e.payload.status==="terminal"?"read-only":Io(e)}function yw(e,t){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const a=Ne.identity.create({...t,eventHead:e.data.payload.sourceEventHead,viewHash:e.data.payload.sourceViewHash});return Ei(e,a,e.data,Xe.review.createValidator(a),R4(e.data),e.data.payload.mutationEnabled)}function Ei(e,t,a,s,c,l=!1){const u=e.phase==="failed"?"stale":e.phase==="loading"||e.phase==="idle"?"refreshing":c;try{return Q4(u,t,a,s,l,u==="stale"?e.error??yr(void 0,!0):null)}catch(f){return Ya(t,yr(f))}}function Ew(e,t){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const a=Ne.identity.create({...t,eventHead:e.data.cursor.eventHead,viewHash:e.data.cursor.viewHash});return Ei(e,a,e.data,s=>{try{return Hc.parseGraphEnvelope(s,t),!0}catch{return!1}},"ready")}function Bw(e,t,a,s){var u;if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const c=Ne.identity.create({...t,...Vr(e.data)}),l=a==="today"?Xe.today.createValidator(c):Xe.cycles.createListValidator(c);return e.phase!=="ready"?Ei(e,c,e.data,l,Io(e.data),e.data.payload.mutationEnabled):a==="today"&&e.data.payload.surface==="today"&&e.data.payload.status==="ready"&&e.data.payload.data.activeCycle===null?l(e.data)?s?s.phase==="loading"||s.phase==="idle"?Ei(Object.freeze({...e,phase:"loading",error:null}),c,e.data,l,"ready"):s.phase==="failed"?Ei(Object.freeze({...e,phase:"failed",error:s.error}),c,e.data,l,"ready"):((u=s.data)==null?void 0:u.payload.surface)!=="cycles"?Ya(c,yr(new Ne.projection.ValidationError("$.payload.surface","does not contain the required cycles display"))):C4(s.data.payload.data.cycles.length===0?"first-use":"empty",c):pr(c):Ya(c,yr(new Ne.projection.ValidationError("$.data","failed its owner-boundary contract"))):Ei(e,c,e.data,l,Io(e.data),e.data.payload.mutationEnabled)}function D4(e){if(e.subjectId===null)throw new Error("Action display identity requires a subject.");return Ne.identity.create({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function vw(e,t,a){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const s=Ne.identity.create({...t,...Vr(e.data)});let c;if(a.kind==="operate.actions")c=Xe.actions.createListValidator(s);else if(a.kind==="operate.action"||a.kind==="operate.action-planning"){const l=a.kind==="operate.action-planning"?D4(s):s;c=Xe.actions.createDetailValidator(l)}else if(a.kind==="operate.inbox"||a.kind==="operate.inbox-item")c=Xe.actions.createInboxValidator(s);else if(a.kind==="operate.recovery")c=Xe.actions.createRecoveryValidator(s);else return e0(s);return Ei(e,s,e.data,c,Io(e.data),a.kind==="operate.action-planning"?!1:e.data.payload.mutationEnabled)}function T4(e,t){var ye,Ee;const a=(e==null?void 0:e.origin)??null,s=JSON.stringify(t),[c,l]=B.useState(null),u=(e==null?void 0:e.queryRoots.planning)??null,f=(e==null?void 0:e.queryRoots.operate)??null,h=B.useMemo(()=>O4(t),[t]),A=B.useMemo(()=>u?Xe.transport.identityFromRoot(u,XI):null,[u]),y=B.useMemo(()=>u?Xe.transport.identityFromRoot(u,h):null,[u,h]),m=Fr(A?JSON.stringify(A):null,R=>{if(!a||!A)throw new Error("Planning query root is unavailable.");return Hc.fetchGraph({origin:a,identity:A,signal:R})}),E=S4(f),b=Fr(E,R=>{if(!a||!f)throw new Error("Operate query root is unavailable.");return Xe.transport.fetchRootDisplay({origin:a,root:f,surface:"today",signal:R})}),w=Fr(E,R=>{if(!a||!f)throw new Error("Operate query root is unavailable.");return Xe.transport.fetchRootDisplay({origin:a,root:f,surface:"cycles",signal:R})}),x=((ye=b.data)==null?void 0:ye.payload.surface)==="today"?b.data:null,j=(x==null?void 0:x.payload.surface)==="today"?((Ee=x.payload.data.activeCycle)==null?void 0:Ee.cycleId)??null:null,I=t.kind==="operate.cycle"?t.subjectId:t.kind==="operate.review"?t.cycleId:j,C=x?Vr(x):null,O=B.useMemo(()=>f&&t.product==="operate"&&I&&C?Xe.transport.identityFromRoot(f,t,{cycleId:I,eventHead:C.eventHead,viewHash:C.viewHash}):null,[C,f,t,I]),S=a&&f&&O?JSON.stringify({root:f,binding:O}):null,_=B.useMemo(()=>f&&t.kind==="operate.review"?Xe.transport.identityFromRoot(f,t,{cycleId:t.cycleId}):null,[f,t]),k=a&&_?JSON.stringify({root:f,route:_.route}):null,N=Fr(k,R=>{if(!a||!f||t.kind!=="operate.review")throw new Error("Operate Review query custody is incomplete.");return Xe.review.fetch({origin:a,root:f,cycleId:t.cycleId,reviewId:t.subjectId,signal:R})}),z=B.useMemo(()=>N4(t),[t]),M=B.useMemo(()=>f&&eu(t)&&I&&C?Xe.transport.identityFromRoot(f,z,{cycleId:I,eventHead:C.eventHead,viewHash:C.viewHash}):null,[z,C,f,t,I]),L=a&&f&&M?JSON.stringify({root:f,binding:M}):null,Z=_4(t),F=Fr(Z?S:null,R=>{if(!a||!f||!I||!Z)throw new Error("Operate audit query custody is incomplete.");return Xe.transport.fetchAuditDisplay({origin:a,root:f,route:t,surface:Z,cycleId:I,signal:R})}),oe=Fr(t.kind==="operate.cycle"?S:null,R=>{if(!a||!f||t.kind!=="operate.cycle")throw new Error("Operate Cycle query custody is incomplete.");return Xe.transport.fetchCycleDisplay({origin:a,root:f,cycleId:t.subjectId,signal:R})}),re=Fr(eu(t)?L:null,R=>{if(!a||!M)throw new Error("Operate route display custody is incomplete.");if(t.kind==="operate.actions")return Xe.actions.fetchList({origin:a,identity:M,signal:R});if(t.kind==="operate.action"||t.kind==="operate.action-planning")return Xe.actions.fetchDetail({origin:a,identity:M,signal:R});if(t.kind==="operate.inbox"||t.kind==="operate.inbox-item")return Xe.actions.fetchInbox({origin:a,identity:M,signal:R});if(t.kind==="operate.recovery")return Xe.actions.fetchRecovery({origin:a,identity:M,signal:R});throw new Error("Operate route does not own a bound display read.")}),pe=B.useMemo(()=>y?Ew(m,y):Pr,[y,m]),Y=B.useMemo(()=>{if(!f)return null;const R=Ne.routing.parse("#/operate/today");return Xe.transport.identityFromRoot(f,R,{cycleId:j})},[j,f]),V=B.useMemo(()=>Y?Bw(b,Y,"today",w):Pr,[w,Y,b]),te=B.useMemo(()=>{if(!V.binding||!I)return null;const R=Xe.today.resolveModel({current:V},V.binding);return(R==null?void 0:R.kind)==="surface"?Xe.review.uniqueNavigationForCycle(R,I):null},[I,V]),le=B.useMemo(()=>f?Xe.transport.identityFromRoot(f,Ne.routing.parse("#/operate/cycles")):null,[f]),fe=B.useMemo(()=>le?Bw(w,le,"cycles"):Pr,[le,w]),T=B.useMemo(()=>{var ne;if(!f||((ne=w.data)==null?void 0:ne.payload.surface)!=="cycles")return Object.freeze([]);const R=Vr(w.data),J=Ne.routing.parse("#/operate/cycles");return Object.freeze(w.data.payload.data.cycles.map(Ae=>Xe.transport.identityFromRoot(f,J,{cycleId:Ae.cycleId,eventHead:R.eventHead,viewHash:R.viewHash})))},[w,f]),X=B.useMemo(()=>{if(t.product==="planning")return Object.freeze({binding:pe.binding,projection:pe});if(t.product!=="operate"||!f)return Object.freeze({binding:null,projection:Pr});if(t.kind==="operate.today")return Object.freeze({binding:V.binding,projection:V});if(t.kind==="operate.cycles")return Object.freeze({binding:fe.binding,projection:fe});if(t.kind==="operate.review"){if(!_)return Object.freeze({binding:null,projection:Pr});const J=yw(N,_);return Object.freeze({binding:J.binding,projection:J})}if(!C||!I)return Object.freeze({binding:null,projection:Pr});const R=O;if(!R)return Object.freeze({binding:null,projection:Pr});if(t.kind==="operate.cycle"){if(oe.data===null){const ne=oe.phase==="loading"||oe.phase==="idle"?pr(R):Ya(R,oe.error);return Object.freeze({binding:ne.binding,projection:ne})}const J=Ne.identity.create({...R,...Vr(oe.data)});return Object.freeze({binding:J,projection:Ei(oe,J,oe.data,Xe.cycles.createDetailValidator(J),Io(oe.data),oe.data.payload.mutationEnabled)})}if(Z){if(F.data===null){const Ae=F.phase==="loading"||F.phase==="idle"?pr(R):Ya(R,F.error);return Object.freeze({binding:Ae.binding,projection:Ae})}const J=Ne.identity.create({...R,...Vr(F.data)}),ne=Z==="evidence"?Xe.audit.createEvidenceValidator(J):Z==="outcomes"||Z==="outcome"?Xe.audit.createOutcomeValidator(J):Xe.audit.createHistoryValidator(J);return Object.freeze({binding:J,projection:Ei(F,J,F.data,ne,Io(F.data),!1)})}return eu(t)?Object.freeze({binding:R,projection:vw(re,R,t)}):Object.freeze({binding:R,projection:pr(R)})},[F,Z,re,O,oe,C,fe,f,pe,N,_,t,I,V]);B.useEffect(()=>{l(R=>R!==null&&R.routeKey!==s?null:R)},[s]);const se=B.useMemo(()=>c!==null&&c.routeKey===s&&(!Ne.projection.isValidatedState(X.projection)||X.projection.data===null)?Object.freeze({binding:c.binding,projection:c.projection}):X,[c,X,s]);B.useEffect(()=>{if(!a||!m.data||m.phase!=="ready"||!A)return;const R=Ne.identity.create({...A,eventHead:m.data.cursor.eventHead,viewHash:m.data.cursor.viewHash});let J=!0;const ne=Hc.createSseReconciler({identity:R,initial:m.data,isCurrent:()=>J,onSnapshot:()=>{},onPatch:()=>m.refetch(),onRefetch:()=>m.refetch(),onStale:()=>m.refetch()}),Ae=Hc.connectSse({origin:a,identity:R,reconciler:ne,lastEventId:Hc.encodeCheckpoint(m.data.cursor)});return Ae.completion.catch(()=>{}),()=>{J=!1,Ae.close()}},[a,A,m]),B.useEffect(()=>{if(!a||!f||!x||!Y)return;const R=Vr(x),J=Ne.identity.create({...Y,...R});let ne=!0;const Ae=Ne.transport.createSseReconciler({identity:J,isCurrent:()=>ne,onSnapshot:(xe,Ze)=>{var Ie,ce;(Ze.eventHead.sequence!==((Ie=R.eventHead)==null?void 0:Ie.sequence)||Ze.eventHead.hash!==((ce=R.eventHead)==null?void 0:ce.hash)||Ze.viewHash!==R.viewHash)&&(b.refetch(),w.refetch())},onPatch:()=>{b.refetch(),w.refetch()},onRefetch:()=>{b.refetch(),w.refetch()},onStale:()=>{b.refetch(),w.refetch()}}),we=Ne.transport.connectSse({origin:a,identity:J,reconciler:Ae});return we.completion.catch(()=>{}),()=>{ne=!1,we.close()}},[w,a,f,x,Y,b]);const de=B.useCallback(async()=>{const R=se;R.binding!==null&&Ne.projection.isValidatedState(R.projection)&&R.projection.data!==null&&l(Object.freeze({routeKey:s,binding:R.binding,projection:R.projection}));try{let J;if(t.kind==="operate.review"&&_){const ne=await N.reconcile();J=yw(Object.freeze({phase:"ready",data:ne,error:null,refetch:N.refetch,reconcile:N.reconcile}),_)}else if(eu(t)&&O){const ne=await re.reconcile();J=vw(Object.freeze({phase:"ready",data:ne,error:null,refetch:re.refetch,reconcile:re.reconcile}),O,t)}else if(t.product==="planning"&&y){const ne=await m.reconcile();J=Ew(Object.freeze({phase:"ready",data:ne,error:null,refetch:m.refetch,reconcile:m.reconcile}),y)}else throw new Ne.projection.ValidationError("$.route","does not own an exact reconciliation read");if(!Ne.projection.isValidatedState(J)||J.data===null)throw new Ne.projection.ValidationError("$.projection","did not return a verified projection");return l(null),J}catch(J){const ne=R.binding!==null&&Ne.projection.isValidatedState(R.projection)&&R.projection.data!==null,Ae=yr(J,ne),we=ne?I4(R.projection,Ae):R.binding===null?R.projection:Ya(R.binding,Ae);return ne&&R.binding!==null&&l(Object.freeze({routeKey:s,binding:R.binding,projection:we})),we}},[re,O,se,y,m,N,_,t,s]);return Object.freeze({binding:se.binding,projection:se.projection,planningProjection:pe,operateCyclesProjection:fe,operateSearchBindings:T,operateReviewNavigation:te,refetchCurrent:de})}function bw(e){return e!==void 0?e:typeof window>"u"?"":window.location.hash}function k4(e,t){return e!==void 0||typeof window>"u"?()=>{}:(window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t))}function M4({buildId:e,initialHash:t,identity:a,connection:s,bootstrap:c,bootPhase:l,bootDetail:u}){const f=B.useSyncExternalStore(S=>k4(t,S),()=>bw(t),()=>bw(t)),h=c===void 0&&s===void 0,[A,y]=B.useState(c??null),[m,E]=B.useState(l??(h?"checking":"compatible")),[b,w]=B.useState(u??null);B.useEffect(()=>{if(!h)return;const S=new AbortController;return E("checking"),w("Waiting for OpenPlanr to return a validated bootstrap envelope."),BP(e,{signal:S.signal}).then(_=>{y(_.bootstrap),E(_.phase==="compatible"?"compatible":_.phase),w(_.detail)}).catch(()=>{}),()=>S.abort()},[e,h]);const x=B.useMemo(()=>s??x1(A,e,b),[A,b,e,s]),j=B.useMemo(()=>a??j1(A),[A,a]),I=B.useMemo(()=>Ha(f),[f]),C=I.kind==="system.diagnostics"||m==="incompatible"||x.state==="incompatible",O=T4(m==="compatible"&&x.state!=="incompatible"&&I.product!==null?A:null,I);return r.jsxs(y1,{buildId:e,initialHash:C?Pa(kw):t,identity:j,connection:x,bootstrap:A,bootPhase:m,bootDetail:b,binding:O.binding,projection:O.projection,planningProjection:O.planningProjection,operateCyclesProjection:O.operateCyclesProjection,operateSearchBindings:O.operateSearchBindings,operateReviewNavigation:O.operateReviewNavigation,refetchCurrent:O.refetchCurrent,children:[r.jsx(B1,{}),r.jsx(pP,{})]})}const t0=document.querySelector("#root");if(!t0)throw new Error("OpenPlanr dashboard root element is missing.");DS.createRoot(t0).render(r.jsx(B.StrictMode,{children:r.jsx(M4,{buildId:"dashboard-0.1.1-2589ab848e624908"})}));
|
|
557
|
+
//# sourceMappingURL=index-zeygL5iu.js.map
|