platformforge 0.1.0__py3-none-any.whl

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.
Files changed (659) hide show
  1. platformforge/__init__.py +7 -0
  2. platformforge/__main__.py +5 -0
  3. platformforge/_forge_portal.py +913 -0
  4. platformforge/_graphstudio.py +376 -0
  5. platformforge/_graphview.py +181 -0
  6. platformforge/_installkit.py +1706 -0
  7. platformforge/agents/__init__.py +156 -0
  8. platformforge/agents/bench.py +61 -0
  9. platformforge/agents/contextpack.py +137 -0
  10. platformforge/agents/contracts.py +394 -0
  11. platformforge/agents/coordinators.py +98 -0
  12. platformforge/agents/critic.py +113 -0
  13. platformforge/agents/debate.py +161 -0
  14. platformforge/agents/executors.py +160 -0
  15. platformforge/agents/guardian.py +48 -0
  16. platformforge/agents/mirrors.py +240 -0
  17. platformforge/agents/orchestrator.py +295 -0
  18. platformforge/agents/planner.py +116 -0
  19. platformforge/agents/playbook.py +51 -0
  20. platformforge/agents/referee.py +132 -0
  21. platformforge/agents/reviewers.py +113 -0
  22. platformforge/agents/roster.py +893 -0
  23. platformforge/agents/runledger.py +85 -0
  24. platformforge/agents/runstore.py +74 -0
  25. platformforge/agents/specialists.py +73 -0
  26. platformforge/agents/taskspec.py +94 -0
  27. platformforge/agents/uniqueness.py +115 -0
  28. platformforge/agents/verifier.py +106 -0
  29. platformforge/aiplat/__init__.py +4 -0
  30. platformforge/aiplat/models.py +175 -0
  31. platformforge/analytics/__init__.py +6 -0
  32. platformforge/analytics/capacity.py +109 -0
  33. platformforge/analytics/debt.py +92 -0
  34. platformforge/analytics/dx.py +69 -0
  35. platformforge/analytics/finops_v4.py +171 -0
  36. platformforge/analytics/goldenpath.py +131 -0
  37. platformforge/analytics/history.py +233 -0
  38. platformforge/analytics/measurement.py +149 -0
  39. platformforge/analytics/models.py +127 -0
  40. platformforge/analytics/opsanalytics.py +119 -0
  41. platformforge/analytics/policyintel.py +139 -0
  42. platformforge/analytics/reliability.py +106 -0
  43. platformforge/analytics/soak.py +135 -0
  44. platformforge/analytics/store.py +254 -0
  45. platformforge/bench.py +174 -0
  46. platformforge/cases/__init__.py +13 -0
  47. platformforge/cases/casefile.py +106 -0
  48. platformforge/cases/context_audit.py +134 -0
  49. platformforge/cases/ledgers.py +174 -0
  50. platformforge/cases/replay.py +142 -0
  51. platformforge/cases/routing_audit.py +162 -0
  52. platformforge/caveman/__init__.py +11 -0
  53. platformforge/caveman/compress.py +156 -0
  54. platformforge/cicd/__init__.py +16 -0
  55. platformforge/cicd/backstage.py +51 -0
  56. platformforge/cicd/dockerfile.py +64 -0
  57. platformforge/cicd/github_actions.py +122 -0
  58. platformforge/cicd/gitlab_ci.py +56 -0
  59. platformforge/cicd/gitops.py +130 -0
  60. platformforge/cli/__init__.py +0 -0
  61. platformforge/cli/fleetcmd.py +457 -0
  62. platformforge/cli/main.py +3832 -0
  63. platformforge/cloud/__init__.py +8 -0
  64. platformforge/cloud/aws.py +254 -0
  65. platformforge/cloud/common.py +69 -0
  66. platformforge/cloud/multicloud.py +143 -0
  67. platformforge/collect/__init__.py +11 -0
  68. platformforge/collect/detect.py +254 -0
  69. platformforge/context/__init__.py +10 -0
  70. platformforge/context/capsule.py +60 -0
  71. platformforge/context/gateway.py +227 -0
  72. platformforge/context/refs.py +49 -0
  73. platformforge/context/sufficiency.py +50 -0
  74. platformforge/core/__init__.py +1 -0
  75. platformforge/core/hashing.py +39 -0
  76. platformforge/core/ownership.py +220 -0
  77. platformforge/core/receipts.py +74 -0
  78. platformforge/core/redaction.py +97 -0
  79. platformforge/core/store.py +119 -0
  80. platformforge/core/workspace.py +89 -0
  81. platformforge/data/contracts/agent-handoff.schema.json +26 -0
  82. platformforge/data/contracts/agent-run.schema.json +27 -0
  83. platformforge/data/contracts/agent-spec.schema.json +43 -0
  84. platformforge/data/contracts/capability.schema.json +23 -0
  85. platformforge/data/contracts/change-event.schema.json +22 -0
  86. platformforge/data/contracts/change-intent.schema.json +62 -0
  87. platformforge/data/contracts/change-plan.schema.json +43 -0
  88. platformforge/data/contracts/collector-receipt.schema.json +36 -0
  89. platformforge/data/contracts/context-pack.schema.json +29 -0
  90. platformforge/data/contracts/debate.schema.json +31 -0
  91. platformforge/data/contracts/distribution-manifest-v1.schema.json +81 -0
  92. platformforge/data/contracts/drift-event.schema.json +21 -0
  93. platformforge/data/contracts/fact.schema.json +35 -0
  94. platformforge/data/contracts/finding.schema.json +20 -0
  95. platformforge/data/contracts/graph-v2.schema.json +67 -0
  96. platformforge/data/contracts/graph.schema.json +40 -0
  97. platformforge/data/contracts/install-receipt-v1.schema.json +49 -0
  98. platformforge/data/contracts/observation.schema.json +93 -0
  99. platformforge/data/contracts/receipt.schema.json +21 -0
  100. platformforge/data/contracts/recommendation.schema.json +32 -0
  101. platformforge/data/contracts/refusal.schema.json +16 -0
  102. platformforge/data/contracts/slo-contract.schema.json +25 -0
  103. platformforge/data/contracts/task-spec.schema.json +37 -0
  104. platformforge/data/contracts/workspace-manifest-v1.schema.json +62 -0
  105. platformforge/data/evals/cases/agent-budget-exhaustion/case.yaml +6 -0
  106. platformforge/data/evals/cases/agent-conflicting-specialists/case.yaml +11 -0
  107. platformforge/data/evals/cases/agent-fleet-optimization/case.yaml +13 -0
  108. platformforge/data/evals/cases/agent-host-no-subagents/case.yaml +6 -0
  109. platformforge/data/evals/cases/agent-incident-multi/case.yaml +13 -0
  110. platformforge/data/evals/cases/agent-missing-evidence/case.yaml +6 -0
  111. platformforge/data/evals/cases/agent-multi-domain-audit/case.yaml +14 -0
  112. platformforge/data/evals/cases/agent-production-change/case.yaml +15 -0
  113. platformforge/data/evals/cases/agent-security-mandatory/case.yaml +12 -0
  114. platformforge/data/evals/cases/agent-simple-iac/case.yaml +14 -0
  115. platformforge/data/evals/cases/approval-integrity-seal/case.yaml +6 -0
  116. platformforge/data/evals/cases/capacity-hot/case.yaml +7 -0
  117. platformforge/data/evals/cases/capacity-hot/fixture/capacity.json +5 -0
  118. platformforge/data/evals/cases/catalog-noowner/case.yaml +7 -0
  119. platformforge/data/evals/cases/catalog-noowner/fixture/catalog-info.yaml +6 -0
  120. platformforge/data/evals/cases/contract-fact/case.yaml +5 -0
  121. platformforge/data/evals/cases/contract-fact/fixture/doc.json +2 -0
  122. platformforge/data/evals/cases/cosign-unverified/case.yaml +8 -0
  123. platformforge/data/evals/cases/cosign-unverified/fixture/sig.json +33 -0
  124. platformforge/data/evals/cases/expected-delta-refusal/case.yaml +6 -0
  125. platformforge/data/evals/cases/finops-noattr/case.yaml +9 -0
  126. platformforge/data/evals/cases/finops-noattr/fixture/costs.json +7 -0
  127. platformforge/data/evals/cases/fleet-inv-absent-allocation-unknown/case.yaml +7 -0
  128. platformforge/data/evals/cases/fleet-inv-centrality-not-criticality/case.yaml +7 -0
  129. platformforge/data/evals/cases/fleet-inv-correlation-not-causality/case.yaml +7 -0
  130. platformforge/data/evals/cases/fleet-inv-dx-no-person-metrics/case.yaml +7 -0
  131. platformforge/data/evals/cases/fleet-inv-federation-restricted-denied/case.yaml +7 -0
  132. platformforge/data/evals/cases/fleet-inv-federation-secret-denied/case.yaml +7 -0
  133. platformforge/data/evals/cases/fleet-inv-history-window-deterministic/case.yaml +7 -0
  134. platformforge/data/evals/cases/fleet-inv-low-util-not-deletable/case.yaml +7 -0
  135. platformforge/data/evals/cases/fleet-inv-member-key-deterministic/case.yaml +7 -0
  136. platformforge/data/evals/cases/fleet-inv-missing-denominator/case.yaml +7 -0
  137. platformforge/data/evals/cases/fleet-inv-partial-coverage-visible/case.yaml +7 -0
  138. platformforge/data/evals/cases/fleet-inv-plan-changeintent-only/case.yaml +7 -0
  139. platformforge/data/evals/cases/fleet-inv-report-all-cited/case.yaml +7 -0
  140. platformforge/data/evals/cases/fleet-inv-small-sample-confidence/case.yaml +7 -0
  141. platformforge/data/evals/cases/fleet-inv-uncertain-optimization-suppressed/case.yaml +7 -0
  142. platformforge/data/evals/cases/gha-dangerous/case.yaml +12 -0
  143. platformforge/data/evals/cases/gha-dangerous/fixture/.github/workflows/ci.yaml +11 -0
  144. platformforge/data/evals/cases/gitops-v2/case.yaml +11 -0
  145. platformforge/data/evals/cases/gitops-v2/fixture/argo.yaml +41 -0
  146. platformforge/data/evals/cases/graph-k8s-blast/case.yaml +7 -0
  147. platformforge/data/evals/cases/graph-k8s-blast/fixture/deploy.yaml +15 -0
  148. platformforge/data/evals/cases/iac-module-nopin/case.yaml +8 -0
  149. platformforge/data/evals/cases/iac-module-nopin/fixture/main.tf +3 -0
  150. platformforge/data/evals/cases/iac-plan-replace/case.yaml +8 -0
  151. platformforge/data/evals/cases/iac-plan-replace/fixture/plan.json +12 -0
  152. platformforge/data/evals/cases/iac-sg-open/case.yaml +8 -0
  153. platformforge/data/evals/cases/iac-sg-open/fixture/main.tf +9 -0
  154. platformforge/data/evals/cases/iam-oidc/case.yaml +8 -0
  155. platformforge/data/evals/cases/iam-oidc/fixture/policy.json +11 -0
  156. platformforge/data/evals/cases/iam-wildcard-positive/case.yaml +8 -0
  157. platformforge/data/evals/cases/iam-wildcard-positive/fixture/policy.json +3 -0
  158. platformforge/data/evals/cases/k8s-bad-actor/case.yaml +19 -0
  159. platformforge/data/evals/cases/k8s-bad-actor/fixture/app.yaml +97 -0
  160. platformforge/data/evals/cases/k8s-beta-api/case.yaml +8 -0
  161. platformforge/data/evals/cases/k8s-beta-api/fixture/cr.yaml +7 -0
  162. platformforge/data/evals/cases/k8s-dep-api-boundary/case.yaml +15 -0
  163. platformforge/data/evals/cases/k8s-dep-api-boundary/fixture/app.yaml +25 -0
  164. platformforge/data/evals/cases/k8s-dep-api-clean/case.yaml +12 -0
  165. platformforge/data/evals/cases/k8s-dep-api-clean/fixture/app.yaml +29 -0
  166. platformforge/data/evals/cases/k8s-dep-api-unknown/case.yaml +11 -0
  167. platformforge/data/evals/cases/k8s-dep-api-unknown/fixture/app.yaml +25 -0
  168. platformforge/data/evals/cases/k8s-dep-api-v120/case.yaml +12 -0
  169. platformforge/data/evals/cases/k8s-dep-api-v120/fixture/app.yaml +25 -0
  170. platformforge/data/evals/cases/k8s-dep-api-v129/case.yaml +9 -0
  171. platformforge/data/evals/cases/k8s-dep-api-v129/fixture/app.yaml +25 -0
  172. platformforge/data/evals/cases/k8s-hpa-noreq/case.yaml +8 -0
  173. platformforge/data/evals/cases/k8s-hpa-noreq/fixture/app.yaml +28 -0
  174. platformforge/data/evals/cases/k8s-limits-boundary/case.yaml +10 -0
  175. platformforge/data/evals/cases/k8s-limits-boundary/fixture/app.yaml +15 -0
  176. platformforge/data/evals/cases/k8s-limits-negative/case.yaml +8 -0
  177. platformforge/data/evals/cases/k8s-limits-negative/fixture/deploy.yaml +15 -0
  178. platformforge/data/evals/cases/k8s-limits-positive/case.yaml +8 -0
  179. platformforge/data/evals/cases/k8s-limits-positive/fixture/deploy.yaml +14 -0
  180. platformforge/data/evals/cases/k8s-nopdb/case.yaml +7 -0
  181. platformforge/data/evals/cases/k8s-nopdb/fixture/app.yaml +34 -0
  182. platformforge/data/evals/cases/knowledge-registry/case.yaml +10 -0
  183. platformforge/data/evals/cases/kyverno-dep/case.yaml +10 -0
  184. platformforge/data/evals/cases/kyverno-dep/fixture/pol.yaml +18 -0
  185. platformforge/data/evals/cases/kyverno-legacy/case.yaml +8 -0
  186. platformforge/data/evals/cases/kyverno-legacy/fixture/pol.yaml +7 -0
  187. platformforge/data/evals/cases/live-aws-collect/case.yaml +11 -0
  188. platformforge/data/evals/cases/live-aws-collect/fixture/aws/ec2_describe-vpcs.json +15 -0
  189. platformforge/data/evals/cases/live-aws-collect/fixture/aws/iam_list-users.denied.txt +1 -0
  190. platformforge/data/evals/cases/live-aws-collect/fixture/aws/sts_get-caller-identity.json +5 -0
  191. platformforge/data/evals/cases/live-drift/case.yaml +8 -0
  192. platformforge/data/evals/cases/live-drift/fixture/after.json +22 -0
  193. platformforge/data/evals/cases/live-drift/fixture/before.json +22 -0
  194. platformforge/data/evals/cases/live-incident/case.yaml +7 -0
  195. platformforge/data/evals/cases/live-incident/fixture/changes.json +8 -0
  196. platformforge/data/evals/cases/live-incident/fixture/incident.json +7 -0
  197. platformforge/data/evals/cases/live-k8s-collect/case.yaml +10 -0
  198. platformforge/data/evals/cases/live-k8s-collect/fixture/kubectl/get_configmaps.denied.txt +1 -0
  199. platformforge/data/evals/cases/live-k8s-collect/fixture/kubectl/get_deployments.apps.json +25 -0
  200. platformforge/data/evals/cases/live-k8s-collect/fixture/kubectl/get_pods.json +17 -0
  201. platformforge/data/evals/cases/live-k8s-collect/fixture/kubectl/get_secrets.json +13 -0
  202. platformforge/data/evals/cases/live-multicluster/case.yaml +7 -0
  203. platformforge/data/evals/cases/live-multicluster/fixture/clusters.json +6 -0
  204. platformforge/data/evals/cases/live-plan/case.yaml +7 -0
  205. platformforge/data/evals/cases/live-plan/fixture/drift.json +8 -0
  206. platformforge/data/evals/cases/live-reconcile/case.yaml +7 -0
  207. platformforge/data/evals/cases/live-reconcile/fixture/desired.json +7 -0
  208. platformforge/data/evals/cases/live-reconcile/fixture/observed.json +18 -0
  209. platformforge/data/evals/cases/live-secrets-boundary/case.yaml +8 -0
  210. platformforge/data/evals/cases/live-secrets-boundary/fixture/envelope.json +16 -0
  211. platformforge/data/evals/cases/live-temporal-graph/case.yaml +10 -0
  212. platformforge/data/evals/cases/live-temporal-graph/fixture/graph.json +22 -0
  213. platformforge/data/evals/cases/ops-approval/case.yaml +6 -0
  214. platformforge/data/evals/cases/ops-convergence/case.yaml +6 -0
  215. platformforge/data/evals/cases/ops-execution-safety/case.yaml +6 -0
  216. platformforge/data/evals/cases/ops-intent/case.yaml +6 -0
  217. platformforge/data/evals/cases/ops-planning/case.yaml +6 -0
  218. platformforge/data/evals/cases/ops-policy/case.yaml +6 -0
  219. platformforge/data/evals/cases/ops-rollback/case.yaml +6 -0
  220. platformforge/data/evals/cases/ops-verification/case.yaml +6 -0
  221. platformforge/data/evals/cases/rollback-argocd-revision/case.yaml +6 -0
  222. platformforge/data/evals/cases/rollback-blind-inverse/case.yaml +6 -0
  223. platformforge/data/evals/cases/rollback-git-commit/case.yaml +6 -0
  224. platformforge/data/evals/cases/rollback-impossible/case.yaml +6 -0
  225. platformforge/data/evals/cases/rollback-k8s-annotation-restore/case.yaml +6 -0
  226. platformforge/data/evals/cases/rollback-k8s-scale/case.yaml +6 -0
  227. platformforge/data/evals/cases/rollback-material-tamper/case.yaml +6 -0
  228. platformforge/data/evals/cases/rollback-terraform-replan/case.yaml +6 -0
  229. platformforge/data/evals/cases/rollback-unknown/case.yaml +6 -0
  230. platformforge/data/evals/cases/routing-specialist/case.yaml +9 -0
  231. platformforge/data/evals/cases/rtk-roundtrip/case.yaml +5 -0
  232. platformforge/data/evals/cases/rtk-roundtrip/fixture/verbose.txt +300 -0
  233. platformforge/data/evals/cases/sbom-vuln/case.yaml +9 -0
  234. platformforge/data/evals/cases/sbom-vuln/fixture/sbom.json +9 -0
  235. platformforge/data/evals/cases/secret-prose-mixed/fixture/app.env +1 -0
  236. platformforge/data/evals/cases/secret-prose-mixed/fixture/policy-notes.md +7 -0
  237. platformforge/data/evals/cases/secrets-noleak/case.yaml +5 -0
  238. platformforge/data/evals/cases/secrets-noleak/fixture/app.env +2 -0
  239. platformforge/data/evals/cases/slo-fastburn/case.yaml +8 -0
  240. platformforge/data/evals/cases/slo-fastburn/fixture/events.yaml +2 -0
  241. platformforge/data/evals/cases/slo-fastburn/fixture/slo.yaml +4 -0
  242. platformforge/data/evals/cases/slo-noinput/case.yaml +8 -0
  243. platformforge/data/evals/cases/slo-noinput/fixture/events.yaml +1 -0
  244. platformforge/data/evals/cases/slo-noinput/fixture/slo.yaml +4 -0
  245. platformforge/data/evals/cases/sot-conflict/case.yaml +6 -0
  246. platformforge/data/evals/cases/token-budget/case.yaml +6 -0
  247. platformforge/data/evals/cases/token-budget/fixture/big.py +50 -0
  248. platformforge/data/evals/cases/xr-delete/case.yaml +8 -0
  249. platformforge/data/evals/cases/xr-delete/fixture/xr.yaml +10 -0
  250. platformforge/data/evals/cases/xr-graph-chain/case.yaml +8 -0
  251. platformforge/data/evals/cases/xr-graph-chain/fixture/xrd.yaml +90 -0
  252. platformforge/data/evals/cases/xr-negative-crd/case.yaml +8 -0
  253. platformforge/data/evals/cases/xr-negative-crd/fixture/widget.yaml +19 -0
  254. platformforge/data/evals/cases/xr-upbound-mr/case.yaml +8 -0
  255. platformforge/data/evals/cases/xr-upbound-mr/fixture/bucket.yaml +12 -0
  256. platformforge/data/evals/qpt-bench/change-review/case.yaml +5 -0
  257. platformforge/data/evals/qpt-bench/change-review/fixture/plan.json +9 -0
  258. platformforge/data/evals/qpt-bench/gha-security/case.yaml +5 -0
  259. platformforge/data/evals/qpt-bench/gha-security/fixture/ci.yml +10 -0
  260. platformforge/data/evals/qpt-bench/iam-investigate/case.yaml +5 -0
  261. platformforge/data/evals/qpt-bench/iam-investigate/fixture/policy.json +6 -0
  262. platformforge/data/evals/qpt-bench/incident-analysis/case.yaml +5 -0
  263. platformforge/data/evals/qpt-bench/incident-analysis/fixture/query.json +5 -0
  264. platformforge/data/evals/qpt-bench/incident-analysis/fixture/rules.yaml +6 -0
  265. platformforge/data/evals/qpt-bench/k8s-review/case.yaml +6 -0
  266. platformforge/data/evals/qpt-bench/k8s-review/fixture/deploy.yaml +15 -0
  267. platformforge/data/evals/qpt-bench/tf-security/case.yaml +5 -0
  268. platformforge/data/evals/qpt-bench/tf-security/fixture/main.tf +17 -0
  269. platformforge/data/knowledge/aws/eks.yaml +20 -0
  270. platformforge/data/knowledge/aws/iam.yaml +28 -0
  271. platformforge/data/knowledge/aws/network-exposure.yaml +19 -0
  272. platformforge/data/knowledge/aws/organizations.yaml +19 -0
  273. platformforge/data/knowledge/crossplane/composition-providers.yaml +20 -0
  274. platformforge/data/knowledge/crossplane/managed-resources.yaml +26 -0
  275. platformforge/data/knowledge/crossplane/v1-v2.yaml +25 -0
  276. platformforge/data/knowledge/kubernetes/api-deprecations.yaml +33 -0
  277. platformforge/data/knowledge/kubernetes/autoscaling-rbac.yaml +27 -0
  278. platformforge/data/knowledge/kubernetes/gateway-api.yaml +20 -0
  279. platformforge/data/knowledge/kubernetes/pod-security.yaml +26 -0
  280. platformforge/data/knowledge/sources.yaml +516 -0
  281. platformforge/data/knowledge/terraform/lifecycle.yaml +18 -0
  282. platformforge/data/knowledge/terraform/plan-semantics.yaml +26 -0
  283. platformforge/data/lab/chaos-pod-kill/chaos.yaml +3 -0
  284. platformforge/data/lab/chaos-pod-kill/facts.json +13 -0
  285. platformforge/data/lab/fleets/acme/capacity.yaml +35 -0
  286. platformforge/data/lab/fleets/acme/costs.yaml +25 -0
  287. platformforge/data/lab/fleets/acme/events.yaml +41 -0
  288. platformforge/data/lab/fleets/acme/fleet.yaml +51 -0
  289. platformforge/data/lab/fleets/acme/graph.yaml +45 -0
  290. platformforge/data/lab/fleets/acme/policies.yaml +28 -0
  291. platformforge/data/lab/fleets/acme/requests.yaml +24 -0
  292. platformforge/data/lab/scenarios/argo-bad-rollout/expected.yaml +6 -0
  293. platformforge/data/lab/scenarios/argo-bad-rollout/fixture/app.yaml +9 -0
  294. platformforge/data/lab/scenarios/aws-dump/expected.yaml +19 -0
  295. platformforge/data/lab/scenarios/aws-dump/fixture/compute.json +4 -0
  296. platformforge/data/lab/scenarios/aws-dump/fixture/iam.json +7 -0
  297. platformforge/data/lab/scenarios/aws-dump/fixture/network.json +6 -0
  298. platformforge/data/lab/scenarios/aws-dump/fixture/org.json +4 -0
  299. platformforge/data/lab/scenarios/aws-dump/fixture/storage.json +4 -0
  300. platformforge/data/lab/scenarios/container-unsigned/expected.yaml +5 -0
  301. platformforge/data/lab/scenarios/container-unsigned/fixture/supply.json +11 -0
  302. platformforge/data/lab/scenarios/cost-idle-workload/expected.yaml +5 -0
  303. platformforge/data/lab/scenarios/cost-idle-workload/fixture/costs.json +12 -0
  304. platformforge/data/lab/scenarios/crossplane-platform/expected.yaml +16 -0
  305. platformforge/data/lab/scenarios/crossplane-platform/fixture/negative.yaml +18 -0
  306. platformforge/data/lab/scenarios/crossplane-platform/fixture/xrd.yaml +90 -0
  307. platformforge/data/lab/scenarios/demo-platform/expected.yaml +16 -0
  308. platformforge/data/lab/scenarios/demo-platform/fixture/.github/workflows/ci.yml +10 -0
  309. platformforge/data/lab/scenarios/demo-platform/fixture/deploy.yaml +16 -0
  310. platformforge/data/lab/scenarios/demo-platform/fixture/infra.tf +5 -0
  311. platformforge/data/lab/scenarios/fleet-ai/expected.yaml +12 -0
  312. platformforge/data/lab/scenarios/fleet-capacity/expected.yaml +12 -0
  313. platformforge/data/lab/scenarios/fleet-cost/expected.yaml +18 -0
  314. platformforge/data/lab/scenarios/fleet-federation/expected.yaml +11 -0
  315. platformforge/data/lab/scenarios/fleet-golden-path/expected.yaml +18 -0
  316. platformforge/data/lab/scenarios/fleet-op-hotspot/expected.yaml +11 -0
  317. platformforge/data/lab/scenarios/fleet-ownership/expected.yaml +17 -0
  318. platformforge/data/lab/scenarios/fleet-partial/expected.yaml +10 -0
  319. platformforge/data/lab/scenarios/fleet-policy-friction/expected.yaml +10 -0
  320. platformforge/data/lab/scenarios/fleet-recurring-incident/expected.yaml +12 -0
  321. platformforge/data/lab/scenarios/fleet-report/expected.yaml +13 -0
  322. platformforge/data/lab/scenarios/fleet-risk/expected.yaml +18 -0
  323. platformforge/data/lab/scenarios/gitops-drift/expected.yaml +6 -0
  324. platformforge/data/lab/scenarios/gitops-drift/fixture/app.yaml +12 -0
  325. platformforge/data/lab/scenarios/k8s-bad-readiness/expected.yaml +6 -0
  326. platformforge/data/lab/scenarios/k8s-bad-readiness/fixture/deploy.yaml +23 -0
  327. platformforge/data/lab/scenarios/k8s-bad-readiness/fixture/netpol.yaml +9 -0
  328. platformforge/data/lab/scenarios/k8s-missing-limits/expected.yaml +6 -0
  329. platformforge/data/lab/scenarios/k8s-missing-limits/fixture/deploy.yaml +26 -0
  330. platformforge/data/lab/scenarios/k8s-missing-limits/fixture/netpol.yaml +9 -0
  331. platformforge/data/lab/scenarios/k8s-single-replica/expected.yaml +5 -0
  332. platformforge/data/lab/scenarios/k8s-single-replica/fixture/deploy.yaml +26 -0
  333. platformforge/data/lab/scenarios/k8s-single-replica/fixture/netpol.yaml +4 -0
  334. platformforge/data/lab/scenarios/live-aws-collect/expected.yaml +4 -0
  335. platformforge/data/lab/scenarios/live-aws-collect/fixture/aws/ec2_describe-vpcs.json +15 -0
  336. platformforge/data/lab/scenarios/live-aws-collect/fixture/aws/iam_list-users.denied.txt +1 -0
  337. platformforge/data/lab/scenarios/live-aws-collect/fixture/aws/sts_get-caller-identity.json +5 -0
  338. platformforge/data/lab/scenarios/live-k8s-collect/expected.yaml +4 -0
  339. platformforge/data/lab/scenarios/live-k8s-collect/fixture/kubectl/get_configmaps.denied.txt +1 -0
  340. platformforge/data/lab/scenarios/live-k8s-collect/fixture/kubectl/get_deployments.apps.json +25 -0
  341. platformforge/data/lab/scenarios/live-k8s-collect/fixture/kubectl/get_pods.json +17 -0
  342. platformforge/data/lab/scenarios/live-k8s-collect/fixture/kubectl/get_secrets.json +13 -0
  343. platformforge/data/lab/scenarios/live-kind/expected.yaml +14 -0
  344. platformforge/data/lab/scenarios/live-kind/fixture/kubectl/get_configmaps.denied.txt +1 -0
  345. platformforge/data/lab/scenarios/live-kind/fixture/kubectl/get_deployments.apps.json +25 -0
  346. platformforge/data/lab/scenarios/live-kind/fixture/kubectl/get_pods.json +17 -0
  347. platformforge/data/lab/scenarios/live-kind/fixture/kubectl/get_secrets.json +13 -0
  348. platformforge/data/lab/scenarios/network-policy-missing/expected.yaml +6 -0
  349. platformforge/data/lab/scenarios/network-policy-missing/fixture/deploy.yaml +26 -0
  350. platformforge/data/lab/scenarios/ops-bad-rollout/expected.yaml +3 -0
  351. platformforge/data/lab/scenarios/ops-bad-rollout/fixture/ops.yaml +33 -0
  352. platformforge/data/lab/scenarios/ops-break-glass/expected.yaml +3 -0
  353. platformforge/data/lab/scenarios/ops-break-glass/fixture/ops.yaml +21 -0
  354. platformforge/data/lab/scenarios/ops-broken-selector/expected.yaml +3 -0
  355. platformforge/data/lab/scenarios/ops-broken-selector/fixture/ops.yaml +21 -0
  356. platformforge/data/lab/scenarios/ops-changed-plan-hash/expected.yaml +3 -0
  357. platformforge/data/lab/scenarios/ops-changed-plan-hash/fixture/ops.yaml +20 -0
  358. platformforge/data/lab/scenarios/ops-conflicting-operation/expected.yaml +3 -0
  359. platformforge/data/lab/scenarios/ops-conflicting-operation/fixture/ops.yaml +21 -0
  360. platformforge/data/lab/scenarios/ops-expired-approval/expected.yaml +3 -0
  361. platformforge/data/lab/scenarios/ops-expired-approval/fixture/ops.yaml +20 -0
  362. platformforge/data/lab/scenarios/ops-partial-failure/expected.yaml +3 -0
  363. platformforge/data/lab/scenarios/ops-partial-failure/fixture/ops.yaml +24 -0
  364. platformforge/data/lab/scenarios/ops-policy-denial/expected.yaml +3 -0
  365. platformforge/data/lab/scenarios/ops-policy-denial/fixture/ops.yaml +17 -0
  366. platformforge/data/lab/scenarios/ops-replica-drift/expected.yaml +3 -0
  367. platformforge/data/lab/scenarios/ops-replica-drift/fixture/ops.yaml +28 -0
  368. platformforge/data/lab/scenarios/ops-rollback-annotate/expected.yaml +3 -0
  369. platformforge/data/lab/scenarios/ops-rollback-annotate/fixture/ops.yaml +41 -0
  370. platformforge/data/lab/scenarios/ops-rollback-gitops/expected.yaml +3 -0
  371. platformforge/data/lab/scenarios/ops-rollback-gitops/fixture/ops.yaml +38 -0
  372. platformforge/data/lab/scenarios/ops-rollback-impossible/expected.yaml +3 -0
  373. platformforge/data/lab/scenarios/ops-rollback-impossible/fixture/ops.yaml +34 -0
  374. platformforge/data/lab/scenarios/ops-rollback-scale/expected.yaml +3 -0
  375. platformforge/data/lab/scenarios/ops-rollback-scale/fixture/ops.yaml +40 -0
  376. platformforge/data/lab/scenarios/ops-rollback-terraform/expected.yaml +3 -0
  377. platformforge/data/lab/scenarios/ops-rollback-terraform/fixture/ops.yaml +38 -0
  378. platformforge/data/lab/scenarios/ops-rollback-terraform/fixture/tf/tfplan.bin +1 -0
  379. platformforge/data/lab/scenarios/ops-stale-observation/expected.yaml +3 -0
  380. platformforge/data/lab/scenarios/ops-stale-observation/fixture/ops.yaml +20 -0
  381. platformforge/data/lab/scenarios/secret-exposure/expected.yaml +5 -0
  382. platformforge/data/lab/scenarios/secret-exposure/fixture/app.env +2 -0
  383. platformforge/data/lab/scenarios/slo-burn/expected.yaml +5 -0
  384. platformforge/data/lab/scenarios/slo-burn/fixture/events.yaml +2 -0
  385. platformforge/data/lab/scenarios/slo-burn/fixture/slo.yaml +4 -0
  386. platformforge/data/lab/scenarios/terraform-iam-wildcard/expected.yaml +5 -0
  387. platformforge/data/lab/scenarios/terraform-iam-wildcard/fixture/policy.json +14 -0
  388. platformforge/data/lab/scenarios/terraform-public-bucket/expected.yaml +6 -0
  389. platformforge/data/lab/scenarios/terraform-public-bucket/fixture/main.tf +5 -0
  390. platformforge/data/portable_skills/platformforge-agents/SKILL.md +47 -0
  391. platformforge/data/portable_skills/platformforge-change/SKILL.md +41 -0
  392. platformforge/data/portable_skills/platformforge-core/SKILL.md +62 -0
  393. platformforge/data/portable_skills/platformforge-economy/SKILL.md +42 -0
  394. platformforge/data/portable_skills/platformforge-finops/SKILL.md +34 -0
  395. platformforge/data/portable_skills/platformforge-fleet/SKILL.md +39 -0
  396. platformforge/data/portable_skills/platformforge-governance/SKILL.md +76 -0
  397. platformforge/data/portable_skills/platformforge-graph/SKILL.md +46 -0
  398. platformforge/data/portable_skills/platformforge-lab/SKILL.md +39 -0
  399. platformforge/data/portable_skills/platformforge-sdd/SKILL.md +39 -0
  400. platformforge/data/portable_skills/platformforge-security/SKILL.md +38 -0
  401. platformforge/data/portable_skills/platformforge-sre/SKILL.md +41 -0
  402. platformforge/data/rules/catalog/finops.yaml +26 -0
  403. platformforge/data/rules/catalog/gitops.yaml +161 -0
  404. platformforge/data/rules/catalog/iac.yaml +84 -0
  405. platformforge/data/rules/catalog/k8s.yaml +322 -0
  406. platformforge/data/rules/catalog/orchestration.yaml +99 -0
  407. platformforge/data/rules/catalog/product.yaml +42 -0
  408. platformforge/data/rules/catalog/routing.yaml +122 -0
  409. platformforge/data/rules/catalog/security.yaml +159 -0
  410. platformforge/data/rules/catalog/sre.yaml +67 -0
  411. platformforge/diagnose/__init__.py +75 -0
  412. platformforge/distribution/__init__.py +18 -0
  413. platformforge/distribution/bundle.py +127 -0
  414. platformforge/distribution/hostflow.py +247 -0
  415. platformforge/distribution/models.py +80 -0
  416. platformforge/distribution/service.py +225 -0
  417. platformforge/economy/__init__.py +27 -0
  418. platformforge/economy/bench.py +66 -0
  419. platformforge/economy/budget.py +198 -0
  420. platformforge/economy/cache.py +287 -0
  421. platformforge/economy/checkpoint.py +112 -0
  422. platformforge/economy/collection.py +142 -0
  423. platformforge/economy/doctor.py +207 -0
  424. platformforge/economy/engine.py +158 -0
  425. platformforge/economy/envelope.py +61 -0
  426. platformforge/economy/fleetpack.py +86 -0
  427. platformforge/economy/ledger.py +232 -0
  428. platformforge/economy/plan.py +131 -0
  429. platformforge/economy/pricing.py +101 -0
  430. platformforge/economy/qpt.py +286 -0
  431. platformforge/economy/reconcile.py +86 -0
  432. platformforge/economy/verifyplan.py +107 -0
  433. platformforge/economy/waste.py +123 -0
  434. platformforge/evals/__init__.py +16 -0
  435. platformforge/evals/coverage.py +140 -0
  436. platformforge/evals/fleet_invariants.py +260 -0
  437. platformforge/evals/ops_invariants.py +158 -0
  438. platformforge/evals/runner.py +541 -0
  439. platformforge/federation/__init__.py +4 -0
  440. platformforge/federation/node.py +135 -0
  441. platformforge/finops/__init__.py +14 -0
  442. platformforge/finops/alloc.py +31 -0
  443. platformforge/finops/costs.py +79 -0
  444. platformforge/finops/focus.py +100 -0
  445. platformforge/finops/graph_cost.py +51 -0
  446. platformforge/finops/ingest.py +144 -0
  447. platformforge/finops/insights.py +193 -0
  448. platformforge/finops/unit.py +36 -0
  449. platformforge/fleet/__init__.py +5 -0
  450. platformforge/fleet/loader.py +73 -0
  451. platformforge/fleet/models.py +155 -0
  452. platformforge/fleet/orggraph.py +172 -0
  453. platformforge/fleet/query.py +154 -0
  454. platformforge/forge/__init__.py +9 -0
  455. platformforge/forge/collect.py +88 -0
  456. platformforge/forge/delegate.py +77 -0
  457. platformforge/forge/manifest.py +106 -0
  458. platformforge/freeze/__init__.py +22 -0
  459. platformforge/freeze/exceptions.py +56 -0
  460. platformforge/freeze/manifest.py +167 -0
  461. platformforge/freeze/snapshots.py +108 -0
  462. platformforge/graph/__init__.py +39 -0
  463. platformforge/graph/backend.py +174 -0
  464. platformforge/graph/bench.py +245 -0
  465. platformforge/graph/build.py +130 -0
  466. platformforge/graph/delivery.py +183 -0
  467. platformforge/graph/diff.py +292 -0
  468. platformforge/graph/events.py +116 -0
  469. platformforge/graph/migrate.py +44 -0
  470. platformforge/graph/model.py +264 -0
  471. platformforge/graph/persist.py +97 -0
  472. platformforge/graph/query.py +290 -0
  473. platformforge/graph/temporal.py +78 -0
  474. platformforge/graph/vocab.py +63 -0
  475. platformforge/graphview.py +94 -0
  476. platformforge/iac/__init__.py +7 -0
  477. platformforge/iac/drift.py +53 -0
  478. platformforge/iac/plan.py +84 -0
  479. platformforge/iac/terraform.py +123 -0
  480. platformforge/install/__init__.py +1 -0
  481. platformforge/install/service.py +421 -0
  482. platformforge/k8s/__init__.py +8 -0
  483. platformforge/k8s/helm.py +152 -0
  484. platformforge/k8s/hubble.py +87 -0
  485. platformforge/k8s/manifests.py +513 -0
  486. platformforge/knowledge/__init__.py +1 -0
  487. platformforge/knowledge/packs.py +157 -0
  488. platformforge/knowledge/registry.py +249 -0
  489. platformforge/knowledge/select.py +127 -0
  490. platformforge/lab/__init__.py +5 -0
  491. platformforge/lab/chaos.py +71 -0
  492. platformforge/lab/fleetlab.py +351 -0
  493. platformforge/lab/opslab.py +271 -0
  494. platformforge/lab/runner.py +219 -0
  495. platformforge/live/__init__.py +36 -0
  496. platformforge/live/budget.py +92 -0
  497. platformforge/live/capability.py +80 -0
  498. platformforge/live/collectors/__init__.py +6 -0
  499. platformforge/live/collectors/aws.py +370 -0
  500. platformforge/live/collectors/aws_transport.py +98 -0
  501. platformforge/live/collectors/k8s.py +389 -0
  502. platformforge/live/collectors/k8s_transport.py +85 -0
  503. platformforge/live/cursors.py +48 -0
  504. platformforge/live/drift.py +130 -0
  505. platformforge/live/envelope.py +85 -0
  506. platformforge/live/federation.py +113 -0
  507. platformforge/live/fixtures.py +168 -0
  508. platformforge/live/identity.py +258 -0
  509. platformforge/live/incident.py +200 -0
  510. platformforge/live/models.py +435 -0
  511. platformforge/live/reconcile.py +382 -0
  512. platformforge/live/remediate.py +169 -0
  513. platformforge/live/store.py +256 -0
  514. platformforge/live/topology.py +249 -0
  515. platformforge/mcp/__init__.py +7 -0
  516. platformforge/mcp/parity.py +69 -0
  517. platformforge/mcp/registry.py +427 -0
  518. platformforge/mcp/server.py +84 -0
  519. platformforge/mcp/tools.py +732 -0
  520. platformforge/models/__init__.py +21 -0
  521. platformforge/models/base.py +214 -0
  522. platformforge/observe/__init__.py +26 -0
  523. platformforge/observe/capacity.py +39 -0
  524. platformforge/observe/dr.py +67 -0
  525. platformforge/observe/grafana.py +76 -0
  526. platformforge/observe/incident.py +58 -0
  527. platformforge/observe/otel.py +135 -0
  528. platformforge/observe/postmortem.py +72 -0
  529. platformforge/observe/prometheus.py +88 -0
  530. platformforge/observe/slo.py +125 -0
  531. platformforge/ops/__init__.py +8 -0
  532. platformforge/ops/actions.py +215 -0
  533. platformforge/ops/analytics.py +83 -0
  534. platformforge/ops/approval.py +275 -0
  535. platformforge/ops/autorem.py +101 -0
  536. platformforge/ops/config.py +175 -0
  537. platformforge/ops/engine.py +758 -0
  538. platformforge/ops/envelope.py +135 -0
  539. platformforge/ops/executors/__init__.py +1 -0
  540. platformforge/ops/executors/base.py +211 -0
  541. platformforge/ops/executors/git.py +77 -0
  542. platformforge/ops/executors/gitops.py +134 -0
  543. platformforge/ops/executors/terraform.py +84 -0
  544. platformforge/ops/gates.py +135 -0
  545. platformforge/ops/goldenpath.py +180 -0
  546. platformforge/ops/material.py +181 -0
  547. platformforge/ops/models.py +421 -0
  548. platformforge/ops/operation.py +335 -0
  549. platformforge/ops/opgraph.py +233 -0
  550. platformforge/ops/policy.py +275 -0
  551. platformforge/ops/preconditions.py +109 -0
  552. platformforge/ops/registry.py +101 -0
  553. platformforge/ops/risk.py +216 -0
  554. platformforge/ops/rollback.py +287 -0
  555. platformforge/ops/rollback_builders.py +163 -0
  556. platformforge/ops/runbook.py +269 -0
  557. platformforge/ops/simulate.py +125 -0
  558. platformforge/ops/source_of_truth.py +198 -0
  559. platformforge/ops/store.py +157 -0
  560. platformforge/ops/verify.py +190 -0
  561. platformforge/optimize/__init__.py +4 -0
  562. platformforge/optimize/engine.py +109 -0
  563. platformforge/optimize/models.py +68 -0
  564. platformforge/optimize/scan.py +196 -0
  565. platformforge/plan/__init__.py +107 -0
  566. platformforge/portable_cli.py +199 -0
  567. platformforge/portal_adapter.py +740 -0
  568. platformforge/portal_assets/chunk-7_l-b4Tr.js +1 -0
  569. platformforge/portal_assets/chunk-B0Iad6pD.js +1 -0
  570. platformforge/portal_assets/chunk-B605XnCF.js +1 -0
  571. platformforge/portal_assets/chunk-B7N3TXcn.js +1 -0
  572. platformforge/portal_assets/chunk-BAj6yGem.js +1 -0
  573. platformforge/portal_assets/chunk-BGUitn2r.js +1 -0
  574. platformforge/portal_assets/chunk-BVKnCv85.js +1 -0
  575. platformforge/portal_assets/chunk-BYyM9V_w.js +1 -0
  576. platformforge/portal_assets/chunk-BaQMhq-G.js +1 -0
  577. platformforge/portal_assets/chunk-BavOrxVm.js +1 -0
  578. platformforge/portal_assets/chunk-Bb0C24YV.js +1 -0
  579. platformforge/portal_assets/chunk-BfCFGPzs.js +1 -0
  580. platformforge/portal_assets/chunk-C2t4OUVu.js +1 -0
  581. platformforge/portal_assets/chunk-C3pI4QjU.js +1 -0
  582. platformforge/portal_assets/chunk-C4gpbtbP.js +1 -0
  583. platformforge/portal_assets/chunk-CGWeHhKY.js +1 -0
  584. platformforge/portal_assets/chunk-CJCT86Dr.js +1 -0
  585. platformforge/portal_assets/chunk-CXcsLDPJ.js +1 -0
  586. platformforge/portal_assets/chunk-CcjxoLxw.js +1 -0
  587. platformforge/portal_assets/chunk-D-gBPXHa.js +1 -0
  588. platformforge/portal_assets/chunk-D3eZogIe.js +1 -0
  589. platformforge/portal_assets/chunk-DQU0VyoQ.js +1 -0
  590. platformforge/portal_assets/chunk-DqWNkF1O.js +1 -0
  591. platformforge/portal_assets/chunk-DuPPkSIE.js +3 -0
  592. platformforge/portal_assets/chunk-DyIHOW_a.js +1 -0
  593. platformforge/portal_assets/chunk-Fx4zSGL5.js +1 -0
  594. platformforge/portal_assets/chunk-UBKt05Rg.js +1 -0
  595. platformforge/portal_assets/chunk-htnJDQEY.js +1 -0
  596. platformforge/portal_assets/chunk-kXRFMGqe.js +1 -0
  597. platformforge/portal_assets/chunk-qe3u763a.js +1 -0
  598. platformforge/portal_assets/favicon.ico +0 -0
  599. platformforge/portal_assets/index.html +13 -0
  600. platformforge/portal_assets/main-QDFVZK3T.js +5 -0
  601. platformforge/portal_assets/styles-MQEBDFDX.css +1 -0
  602. platformforge/product/__init__.py +10 -0
  603. platformforge/product/backstage.py +49 -0
  604. platformforge/product/catalog.py +74 -0
  605. platformforge/product/crossplane.py +341 -0
  606. platformforge/product/golden_paths/__init__.py +5 -0
  607. platformforge/product/golden_paths/engine.py +97 -0
  608. platformforge/product/golden_paths/library.yaml +198 -0
  609. platformforge/product/golden_paths/model.py +84 -0
  610. platformforge/product/maturity.py +107 -0
  611. platformforge/product/scorecards.py +84 -0
  612. platformforge/resources.py +36 -0
  613. platformforge/risk/__init__.py +5 -0
  614. platformforge/risk/engine.py +95 -0
  615. platformforge/risk/signals.py +49 -0
  616. platformforge/routing/__init__.py +13 -0
  617. platformforge/routing/decision.py +191 -0
  618. platformforge/routing/router.py +328 -0
  619. platformforge/rtk/__init__.py +9 -0
  620. platformforge/rtk/compact.py +127 -0
  621. platformforge/rtk/parsers.py +199 -0
  622. platformforge/rules/__init__.py +5 -0
  623. platformforge/rules/engine.py +345 -0
  624. platformforge/sandbox/__init__.py +7 -0
  625. platformforge/sandbox/env.py +151 -0
  626. platformforge/sandbox/review.py +92 -0
  627. platformforge/sdd/__init__.py +8 -0
  628. platformforge/sdd/lifecycle.py +239 -0
  629. platformforge/security/__init__.py +19 -0
  630. platformforge/security/cosign.py +67 -0
  631. platformforge/security/iam.py +112 -0
  632. platformforge/security/identity.py +84 -0
  633. platformforge/security/kyverno.py +106 -0
  634. platformforge/security/sbom.py +59 -0
  635. platformforge/security/scan.py +63 -0
  636. platformforge/security/slsa.py +86 -0
  637. platformforge/security/supply.py +62 -0
  638. platformforge/tokensave/__init__.py +20 -0
  639. platformforge/tokensave/budget.py +62 -0
  640. platformforge/tokensave/estimate.py +21 -0
  641. platformforge/tokensave/index.py +172 -0
  642. platformforge/tokensave/ledger.py +121 -0
  643. platformforge/tokensave/packs.py +285 -0
  644. platformforge/ui/__init__.py +28 -0
  645. platformforge/ui/app.py +465 -0
  646. platformforge/ui/home.py +113 -0
  647. platformforge/ui/i18n.py +143 -0
  648. platformforge/ui/kit.py +689 -0
  649. platformforge/ui/screen.py +628 -0
  650. platformforge/ui/tui.py +94 -0
  651. platformforge/ui/wizard.py +309 -0
  652. platformforge/workspace/__init__.py +13 -0
  653. platformforge/workspace/models.py +35 -0
  654. platformforge/workspace/service.py +69 -0
  655. platformforge-0.1.0.dist-info/METADATA +212 -0
  656. platformforge-0.1.0.dist-info/RECORD +659 -0
  657. platformforge-0.1.0.dist-info/WHEEL +4 -0
  658. platformforge-0.1.0.dist-info/entry_points.txt +3 -0
  659. platformforge-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,5 @@
1
+ var f$2=Object.defineProperty;var g$2=Object.defineProperties;var h$1=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty;var j$2=Object.prototype.propertyIsEnumerable;var e=(c,a,b)=>a in c?f$2(c,a,{enumerable:!0,configurable:!0,writable:!0,value:b}):c[a]=b;var k$1=(c,a)=>{for(var b in a||={})i.call(a,b)&&e(c,b,a[b]);if(d)for(var b of d(a))j$2.call(a,b)&&e(c,b,a[b]);return c};var l=(c,a)=>g$2(c,h$1(a));function sn$1(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Tt$1=sn$1(e=>function(){e(this),this.name=`EmptyError`,this.message=`no elements in sequence`});function S(e){return typeof e==`function`}var eo$1=sn$1(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:``,this.name=`UnsubscriptionError`,this.errors=n});function Bn$1(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ee=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(S(r))try{r()}catch(i){t=i instanceof eo$1?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{kl(i)}catch(s){t=t??[],s instanceof eo$1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new eo$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)kl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Bn$1(n,t)}remove(t){let{_finalizers:n}=this;n&&Bn$1(n,t),t instanceof e&&t._removeParent(this)}};ee.EMPTY=(()=>{let e=new ee;return e.closed=!0,e})();var ps=ee.EMPTY;function to$1(e){return e instanceof ee||e&&`closed`in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function kl(e){S(e)?e():e.unsubscribe()}var ve$1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var an$1={setTimeout(e,t,...n){let{delegate:r}=an$1;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=an$1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function no$1(e){an$1.setTimeout(()=>{let{onUnhandledError:t}=ve$1;if(t)t(e);else throw e})}function $n$1(){}var Pl=hs(`C`,void 0,void 0);function Ll(e){return hs(`E`,void 0,e)}function Fl(e){return hs(`N`,e,void 0)}function hs(e,t,n){return{kind:e,value:t,error:n}}var St$1=null;function cn$1(e){if(ve$1.useDeprecatedSynchronousErrorHandling){let t=!St$1;if(t&&(St$1={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=St$1;if(St$1=null,n)throw r}}else e()}function jl(e){ve$1.useDeprecatedSynchronousErrorHandling&&St$1&&(St$1.errorThrown=!0,St$1.error=e)}var Ct$1=class extends ee{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,to$1(t)&&t.add(this)):this.destination=bg}static create(t,n,r){return new nt$1(t,n,r)}next(t){this.isStopped?ms(Fl(t),this):this._next(t)}error(t){this.isStopped?ms(Ll(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ms(Pl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}};var Dg=Function.prototype.bind;function gs(e,t){return Dg.call(e,t)}var ys=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ro$1(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ro$1(r)}else ro$1(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ro$1(n)}}};var nt$1=class extends Ct$1{constructor(t,n,r){super();let o;if(S(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ve$1.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&gs(t.next,i),error:t.error&&gs(t.error,i),complete:t.complete&&gs(t.complete,i)}):o=t}this.destination=new ys(o)}};function ro$1(e){ve$1.useDeprecatedSynchronousErrorHandling?jl(e):no$1(e)}function wg(e){throw e}function ms(e,t){let{onStoppedNotification:n}=ve$1;n&&an$1.setTimeout(()=>n(e,t))}var bg={closed:!0,next:$n$1,error:wg,complete:$n$1};function Tg(e,t){let n=typeof t==`object`;return new Promise((r,o)=>{let i=new nt$1({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Tt$1)}});e.subscribe(i)})}var ln$1=typeof Symbol==`function`&&Symbol.observable||`@@observable`;function Ee$1(e){return e}function Sg(...e){return vs(e)}function vs(e){return e.length===0?Ee$1:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var _=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let o=Mg(t)?t:new nt$1(t,n,r);return cn$1(()=>{let{operator:i,source:s}=this;o.add(i?i.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=Vl(n),new n((r,o)=>{let i=new nt$1({next:s=>{try{t(s)}catch(a){o(a),i.unsubscribe()}},error:o,complete:r});this.subscribe(i)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[ln$1](){return this}pipe(...t){return vs(t)(this)}toPromise(t){return t=Vl(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};_.create=e=>new _(e);function Vl(e){var t;return(t=e??ve$1.Promise)!==null&&t!==void 0?t:Promise}function Cg(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function Mg(e){return e&&e instanceof Ct$1||Cg(e)&&to$1(e)}function _g(e){return S(e?.lift)}function A(e){return t=>{if(_g(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError(`Unable to lift unknown Observable type`)}}function O$1(e,t,n,r,o){return new Es(e,t,n,r,o)}var Es=class extends Ct$1{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Hl=sn$1(e=>function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`});var oe$1=class extends _{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new oo$1(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new Hl}next(t){cn$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){cn$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){cn$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:o}=this;return n||r?ps:(this.currentObservers=null,o.push(t),new ee(()=>{this.currentObservers=null,Bn$1(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){let t=new _;return t.source=this,t}};oe$1.create=(e,t)=>new oo$1(e,t);var oo$1=class extends oe$1{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ps}};var zn$1=class extends oe$1{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Wn$1=new _(e=>e.complete());function Ul(e){return e&&S(e.schedule)}function Bl(e){return e[e.length-1]}function io$1(e){return S(Bl(e))?e.pop():void 0}function rt(e){return Ul(Bl(e))?e.pop():void 0}function zl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function $l(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Mt$1(e){return this instanceof Mt$1?(this.v=e,this):new Mt$1(e)}function Wl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),a(`next`),a(`throw`),a(`return`,s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(w){return new Promise(function(I,N){i.push([f,w,I,N])>1||c(f,w)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(w){p(i[0][3],w)}}function l(f){f.value instanceof Mt$1?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c(`next`,f)}function d(f){c(`throw`,f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Gl(e){if(!Symbol.asyncIterator)throw new TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof $l==`function`?$l(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var so$1=(e=>e&&typeof e.length==`number`&&typeof e!=`function`);function ao$1(e){return S(e?.then)}function co$1(e){return S(e[ln$1])}function lo$1(e){return Symbol.asyncIterator&&S(e?.[Symbol.asyncIterator])}function uo$1(e){return new TypeError(`You provided ${e!==null&&typeof e==`object`?`an invalid object`:`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ng(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var fo$1=Ng();function po$1(e){return S(e?.[fo$1])}function ho$1(e){return Wl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Mt$1(n.read());if(o)return yield Mt$1(void 0);yield yield Mt$1(r)}}finally{n.releaseLock()}})}function go$1(e){return S(e?.getReader)}function G(e){if(e instanceof _)return e;if(e!=null){if(co$1(e))return xg(e);if(so$1(e))return Rg(e);if(ao$1(e))return Ag(e);if(lo$1(e))return ql(e);if(po$1(e))return Og(e);if(go$1(e))return kg(e)}throw uo$1(e)}function xg(e){return new _(t=>{let n=e[ln$1]();if(S(n.subscribe))return n.subscribe(t);throw new TypeError(`Provided object does not correctly implement Symbol.observable`)})}function Rg(e){return new _(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ag(e){return new _(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,no$1)})}function Og(e){return new _(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ql(e){return new _(t=>{Pg(e,t).catch(n=>t.error(n))})}function kg(e){return ql(ho$1(e))}function Pg(e,t){var n,r,o,i;return zl(this,void 0,void 0,function*(){try{for(n=Gl(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ie$1(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function mo$1(e,t=0){return A((n,r)=>{n.subscribe(O$1(r,o=>ie$1(r,e,()=>r.next(o),t),()=>ie$1(r,e,()=>r.complete(),t),o=>ie$1(r,e,()=>r.error(o),t)))})}function yo$1(e,t=0){return A((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zl(e,t){return G(e).pipe(yo$1(t),mo$1(t))}function Yl(e,t){return G(e).pipe(yo$1(t),mo$1(t))}function Ql(e,t){return new _(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Xl(e,t){return new _(n=>{let r;return ie$1(n,t,()=>{r=e[fo$1](),ie$1(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function vo$1(e,t){if(!e)throw new Error(`Iterable cannot be null`);return new _(n=>{ie$1(n,t,()=>{let r=e[Symbol.asyncIterator]();ie$1(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Kl(e,t){return vo$1(ho$1(e),t)}function Jl(e,t){if(e!=null){if(co$1(e))return Zl(e,t);if(so$1(e))return Ql(e,t);if(ao$1(e))return Yl(e,t);if(lo$1(e))return vo$1(e,t);if(po$1(e))return Xl(e,t);if(go$1(e))return Kl(e,t)}throw uo$1(e)}function ot$1(e,t){return t?Jl(e,t):G(e)}function Is(...e){return ot$1(e,rt(e))}function Lg(e,t){let n=S(e)?e:()=>e,r=o=>o.error(n());return new _(t?o=>t.schedule(r,0,o):r)}function Fg(e){return!!e&&(e instanceof _||S(e.lift)&&S(e.subscribe))}function K$2(e,t){return A((n,r)=>{let o=0;n.subscribe(O$1(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:jg}=Array;function Vg(e,t){return jg(t)?e(...t):e(t)}function Eo$1(e){return K$2(t=>Vg(e,t))}var{isArray:Hg}=Array,{getPrototypeOf:Ug,prototype:Bg,keys:$g}=Object;function Io$1(e){if(e.length===1){let t=e[0];if(Hg(t))return{args:t,keys:null};if(zg(t)){let n=$g(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function zg(e){return e&&typeof e==`object`&&Ug(e)===Bg}function Do$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Wg(...e){let t=rt(e),n=io$1(e),{args:r,keys:o}=Io$1(e);if(r.length===0)return ot$1([],t);let i=new _(Gg(r,t,o?s=>Do$1(o,s):Ee$1));return n?i.pipe(Eo$1(n)):i}function Gg(e,t,n=Ee$1){return r=>{eu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)eu(t,()=>{let l=ot$1(e[c],t),u=!1;l.subscribe(O$1(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function eu(e,t,n){e?ie$1(n,e,t):t()}function tu(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=w=>l<r?h(w):c.push(w),h=w=>{i&&t.next(w),l++;let I=!1;G(n(w,u++)).subscribe(O$1(t,N=>{o?.(N),i?f(N):t.next(N)},()=>{I=!0},void 0,()=>{if(I)try{for(l--;c.length&&l<r;){let N=c.shift();s?ie$1(t,s,()=>h(N)):h(N)}p()}catch(N){t.error(N)}}))};return e.subscribe(O$1(t,f,()=>{d=!0,p()})),()=>{a?.()}}function _t(e,t,n=1/0){return S(t)?_t((r,o)=>K$2((i,s)=>t(r,i,o,s))(G(e(r,o))),n):(typeof t==`number`&&(n=t),A((r,o)=>tu(r,o,e,n)))}function Ds(e=1/0){return _t(Ee$1,e)}function nu(){return Ds(1)}function wo$1(...e){return nu()(ot$1(e,rt(e)))}function qg(e){return new _(t=>{G(e()).subscribe(t)})}function Zg(...e){let t=io$1(e),{args:n,keys:r}=Io$1(e),o=new _(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;G(n[u]).subscribe(O$1(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Do$1(r,a):a),i.complete())}))}});return t?o.pipe(Eo$1(t)):o}function Gn$1(e,t){return A((n,r)=>{let o=0;n.subscribe(O$1(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ws(e){return A((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O$1(n,void 0,void 0,s=>{i=G(e(s,ws(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function bs(e,t){return S(t)?_t(e,t,1):_t(e,1)}function ru(e){return A((t,n)=>{let r=!1;t.subscribe(O$1(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Ts(e){return e<=0?()=>Wn$1:A((t,n)=>{let r=0;t.subscribe(O$1(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ou(e=Yg){return A((t,n)=>{let r=!1;t.subscribe(O$1(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Yg(){return new Tt$1}function Ss(e){return A((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Qg(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Gn$1((o,i)=>e(o,i,r)):Ee$1,Ts(1),n?ru(t):ou(()=>new Tt$1))}function Xg(e){return e<=0?()=>Wn$1:A((t,n)=>{let r=[];t.subscribe(O$1(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Kg(...e){let t=rt(e);return A((n,r)=>{(t?wo$1(e,n,t):wo$1(e,n)).subscribe(r)})}function iu(e,t){return A((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O$1(r,c=>{o?.unsubscribe();let l=0,u=i++;G(e(c,u)).subscribe(o=O$1(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Jg(e){return A((t,n)=>{G(e).subscribe(O$1(n,()=>n.complete(),$n$1)),!n.closed&&t.subscribe(n)})}function em(e,t,n){let r=S(e)||t||n?{next:e,error:t,complete:n}:e;return r?A((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O$1(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Ee$1}var te=null;var bo$1=!1;var Nt$1=1;var tm=null;var U$3=Symbol(`SIGNAL`);function m$1(e){let t=te;return te=e,t}function To(){return te}var it$1={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:`unknown`,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function je$2(e){if(bo$1)throw new Error(``);if(te===null)return;te.consumerOnSignalRead(e);let t=te.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=te.recomputing;if(r&&(n=t!==void 0?t.nextProducer:te.producers,n!==void 0&&n.producer===e)){te.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Nt$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===te&&(!r||o.knownValidAtEpoch===Nt$1))return;let i=dn$1(te),s={producer:e,consumer:te,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Nt$1,lastReadVersion:e.version,nextConsumer:void 0};te.producersTail=s,t!==void 0?t.nextProducer=s:te.producers=s,i&&lu(e,s)}function su(){Nt$1++}function st$1(e){if(!(dn$1(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Nt$1)){if(!e.producerMustRecompute(e)&&!qn$1(e)){un$1(e);return}e.producerRecomputeValue(e),un$1(e)}}function Cs(e){if(e.consumers===void 0)return;let t=bo$1;bo$1=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||nm(r)}}finally{bo$1=t}}function Ms(){return te?.consumerAllowSignalWrites!==!1}function nm(e){e.dirty=!0,Cs(e),e.consumerMarkedDirty?.(e)}function un$1(e){e.dirty=!1,e.lastCleanEpoch=Nt$1}function at$1(e){return e&&au(e),m$1(e)}function au(e){if(e.producersTail?.knownValidAtEpoch===Nt$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function At$1(e,t){m$1(t),e&&cu(e)}function cu(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(dn$1(e))do n=_s(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function qn$1(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(st$1(n),r!==n.version))return!0}return!1}function Ot(e){if(dn$1(e)){let t=e.producers;for(;t!==void 0;)t=_s(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function lu(e,t){let n=e.consumersTail,r=dn$1(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)lu(o.producer,o)}function _s(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!dn$1(t)){let i=t.producers;for(;i!==void 0;)i=_s(i)}return n}function dn$1(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Zn(e){tm?.(e)}function Yn(e,t){return Object.is(e,t)}function Qn$1(e,t){let n=Object.create(rm);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(st$1(n),je$2(n),n.value===pe$1)throw n.error;return n.value};return r[U$3]=n,Zn(n),r}var xt=Symbol(`UNSET`);var Rt$1=Symbol(`COMPUTING`);var pe$1=Symbol(`ERRORED`);var rm=l(k$1({},it$1),{value:xt,dirty:!0,error:null,equal:Yn,kind:`computed`,producerMustRecompute(e){return e.value===xt||e.value===Rt$1},producerRecomputeValue(e){if(e.value===Rt$1)throw new Error(``);let t=e.value;e.value=Rt$1;let n=at$1(e),r,o=!1;try{r=e.computation(),m$1(null),o=t!==xt&&t!==pe$1&&r!==pe$1&&e.equal(t,r)}catch(i){r=pe$1,e.error=i}finally{At$1(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function om(){throw new Error}var uu=om;function du(e){uu(e)}function Ns(e){uu=e}var im=null;function xs(e,t){let n=Object.create(Xn$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>fu(n);return r[U$3]=n,Zn(n),[r,s=>Ve$2(n,s),s=>So$1(n,s)]}function fu(e){return je$2(e),e.value}function Ve$2(e,t){Ms()||du(e),e.equal(e.value,t)||(e.value=t,sm(e))}function So$1(e,t){Ms()||du(e),Ve$2(e,t(e.value))}var Xn$1=l(k$1({},it$1),{equal:Yn,value:void 0,kind:`signal`});function sm(e){e.version++,su(),Cs(e),im?.(e)}var Rs=l(k$1({},it$1),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:`effect`});function As(e){if(e.dirty=!1,e.version>0&&!qn$1(e))return;e.version++;let t=at$1(e);try{e.cleanup(),e.fn()}finally{At$1(e,t)}}var Os;function Co$1(){return Os}function Me$1(e){let t=Os;return Os=e,t}var pu=Symbol(`NotFound`);function fn$1(e){return e===pu||e?.name===`ɵNotFound`}function ks(e,t,n){let r=Object.create(am);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(st$1(r),je$2(r),r.value===pe$1)throw r.error;return r.value};return i[U$3]=r,Zn(r),i}function Ps(e,t){st$1(e),Ve$2(e,t),un$1(e)}function hu(e,t){if(st$1(e),e.value===pe$1)throw e.error;So$1(e,t),un$1(e)}var am=l(k$1({},it$1),{value:xt,dirty:!0,error:null,equal:Yn,kind:`linkedSignal`,producerMustRecompute(e){return e.value===xt||e.value===Rt$1},producerRecomputeValue(e){if(e.value===Rt$1)throw new Error(``);let t=e.value;e.value=Rt$1;let n=at$1(e),r,o=!1;try{let i=e.source(),s=t!==xt&&t!==pe$1,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,m$1(null),o=s&&r!==pe$1&&e.equal(t,r)}catch(i){r=pe$1,e.error=i}finally{At$1(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function gu(e){let t=m$1(null);try{return e()}finally{m$1(t)}}var Xs=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`;var y$1=class extends Error{code;constructor(t,n){super(Vt$1(t,n)),this.code=t}};function cm(e){return`NG0${Math.abs(e)}`}function Vt$1(e,t){return`${cm(e)}${t?`: `+t:``}`}function k(e){for(let t in e)if(e[t]===k)return t;throw Error(``)}function Du(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function or$1(e){if(typeof e==`string`)return e;if(Array.isArray(e))return`[${e.map(or$1).join(`, `)}]`;if(e==null)return``+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return``+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Ks(e,t){return e?t?`${e} ${t}`:e:t||``}var lm=k({__forward_ref__:k});function Oo$1(e){return e.__forward_ref__=Oo$1,e}function Y$2(e){return Js(e)?e():e}function Js(e){return typeof e==`function`&&Object.hasOwn(e,lm)&&e.__forward_ref__===Oo$1}function M$1(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ko$1(e){return{providers:e.providers||[],imports:e.imports||[]}}function ir$1(e){return dm(e,Po$1)}function um(e){return ir$1(e)!==null}function dm(e,t){return Object.hasOwn(e,t)&&e[t]||null}function fm(e){return(e?.[Po$1]??null)||null}function Fs(e){return e&&Object.hasOwn(e,_o$1)?e[_o$1]:null}var Po$1=k({ɵprov:k});var _o$1=k({ɵinj:k});var b$1=class{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(t,n){this._desc=t,this.ɵprov=void 0,typeof n==`number`?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.ɵprov=M$1({token:this,providedIn:n.providedIn||`root`,factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ea(e){return e&&!!e.ɵproviders}var sr$1=k({ɵcmp:k});var ar$1=k({ɵdir:k});var ta=k({ɵpipe:k});var na=k({ɵmod:k});var er$1=k({ɵfac:k});var Ht=k({__NG_ELEMENT_ID__:k});var mu=k({__NG_ENV_ID__:k});function wu(e){return Fo(e,`@NgModule`),e[na]||null}function dt$1(e){return Fo(e,`@Component`),e[sr$1]||null}function Lo$1(e){return Fo(e,`@Directive`),e[ar$1]||null}function bu(e){return Fo(e,`@Pipe`),e[ta]||null}function Fo(e,t){if(e==null)throw new y$1(-919,!1)}function ft$1(e){return typeof e==`string`?e:e==null?``:String(e)}var Tu=k({ngErrorCode:k});var pm=k({ngErrorMessage:k});var hm=k({ngTokenPath:k});function ra(e,t){return Su(``,-200,t)}function jo$1(e,t){throw new y$1(-201,!1)}function Su(e,t,n){let r=new y$1(t,e);return r[Tu]=t,r[pm]=e,n&&(r[hm]=n),r}function gm(e){return e[Tu]}var js;function Cu(){return js}function ne$1(e){let t=js;return js=e,t}function oa(e,t,n){let r=ir$1(e);if(r&&r.providedIn==`root`)return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;jo$1(e,``)}var pt$1=globalThis;var kt={};var ym=`__NG_DI_FLAG__`;var Vs=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Pt(n)||0;try{return this.injector.get(t,r&8?null:kt,r)}catch(o){if(fn$1(o))return o;throw o}}};function vm(e,t=0){let n=Co$1();if(n===void 0)throw new y$1(-203,!1);if(n===null)return oa(e,void 0,t);{let r=Em(t),o=n.retrieve(e,r);if(fn$1(o)){if(r.optional)return null;throw o}return o}}function T(e,t=0){return(Cu()||vm)(Y$2(e),t)}function g$1(e,t){return T(e,Pt(t))}function Pt(e){return typeof e>`u`||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Em(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Hs(e){let t=[];for(let n=0;n<e.length;n++){let r=Y$2(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y$1(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Im(a);typeof c==`number`?c===-1?o=a.token:i|=c:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function Im(e){return e[ym]}function lt$1(e,t){return Object.hasOwn(e,er$1)?e[er$1]:null}function Mu(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function _u(e){return e.flat(Number.POSITIVE_INFINITY)}function Vo(e,t){e.forEach(n=>Array.isArray(n)?Vo(n,t):t(n))}function ia(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function cr$1(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Nu(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function xu(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Ru(e,t,n){let r=gn$1(e,t);return r>=0?e[r|1]=n:(r=~r,xu(e,r,t,n)),r}function Ho(e,t){let n=gn$1(e,t);if(n>=0)return e[n|1]}function gn$1(e,t){return Dm(e,t,1)}function Dm(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var ht$1={};var se$1=[];var Ut=new b$1(``);var Uo$1=new b$1(``,-1);var sa=new b$1(``);var hn$1=class{get(t,n=kt){if(n===kt){let o=Su(``,-201);throw o.name=`ɵNotFound`,o}return n}};function gt$1(e){return{ɵproviders:e}}function Au(e){return gt$1([{provide:Ut,multi:!0,useValue:e}])}function Ou(...e){return{ɵproviders:aa(!0,e),ɵfromNgModule:!0}}function aa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Vo(t,s=>{let a=s;No$1(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ku(o,i),n}function ku(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ca(o,i=>{t(i,r)})}}function No$1(e,t,n,r){if(e=Y$2(e),!e)return!1;let o=null,i=Fs(e),s=!i&&dt$1(e);if(!i&&!s){let c=e.ngModule;if(i=Fs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies==`function`?s.dependencies():s.dependencies;for(let l of c)No$1(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Vo(i.imports,u=>{No$1(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&ku(l,t)}if(!a){let l=lt$1(o)||(()=>new o);t({provide:o,useFactory:l,deps:se$1},o),t({provide:sa,useValue:o,multi:!0},o),t({provide:Ut,useValue:()=>T(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ca(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ca(e,t){for(let n of e)ea(n)&&(n=n.ɵproviders),Array.isArray(n)?ca(n,t):t(n)}var wm=k({provide:String,useValue:k});function Pu(e){return e!==null&&typeof e==`object`&&wm in e}function bm(e){return!!(e&&e.useExisting)}function Tm(e){return!!(e&&e.useFactory)}function Lt(e){return typeof e==`function`}function Lu(e){return!!e.useClass}var lr$1=new b$1(``);var Mo$1={};var yu={};var Ls;function ur$1(){return Ls===void 0&&(Ls=new hn$1),Ls}var ae$1=class{};var Ft=class extends ae$1{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Bs(t,s=>this.processProvider(s)),this.records.set(Uo$1,pn$1(void 0,this)),o.has(`environment`)&&this.records.set(ae$1,pn$1(void 0,this));let i=this.records.get(lr$1);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(sa,se$1,{self:!0}))}retrieve(t,n){let r=Pt(n)||0;try{return this.get(t,kt,r)}catch(o){if(fn$1(o))return o;throw o}}destroy(){Kn(this),this._destroyed=!0;let t=m$1(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),m$1(t)}}onDestroy(t){return Kn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kn(this);let n=Me$1(this),r=ne$1(void 0);try{return t()}finally{Me$1(n),ne$1(r)}}get(t,n=kt,r){if(Kn(this),Object.hasOwn(t,mu))return t[mu](this);let o=Pt(r),s=Me$1(this),a=ne$1(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=Nm(t)&&ir$1(t);u&&this.injectableDefInScope(u)?l=pn$1(Us(t),Mo$1):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?ur$1():this.parent;return n=o&8&&n===kt?null:n,c.get(t,n)}catch(c){let l=gm(c);throw l===-200||l===-201?new y$1(l,null):c}finally{ne$1(a),Me$1(s)}}resolveInjectorInitializers(){let t=m$1(null),n=Me$1(this),r=ne$1(void 0);try{let i=this.get(Ut,se$1,{self:!0});for(let s of i)s()}finally{Me$1(n),ne$1(r),m$1(t)}}toString(){return`R3Injector[...]`}processProvider(t){t=Y$2(t);let n=Lt(t)?t:Y$2(t&&t.provide),r=Cm(t);if(!Lt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=pn$1(void 0,Mo$1,!0),o.factory=()=>Hs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=m$1(null);try{if(n.value===yu)throw ra(``);return n.value===Mo$1&&(n.value=yu,n.value=n.factory(void 0,r)),typeof n.value==`object`&&n.value&&_m(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{m$1(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y$2(t.providedIn);return typeof n==`string`?n===`any`||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Us(e){let t=ir$1(e),n=t!==null?t.factory:lt$1(e);if(n!==null)return n;if(e instanceof b$1)throw new y$1(-204,!1);if(e instanceof Function)return Sm(e);throw new y$1(-204,!1)}function Sm(e){if(e.length>0)throw new y$1(-204,!1);let n=fm(e);return n!==null?()=>n.factory(e):()=>new e}function Cm(e){if(Pu(e))return pn$1(void 0,e.useValue);return pn$1(la(e),Mo$1)}function la(e,t,n){let r;if(Lt(e)){let o=Y$2(e);return lt$1(o)||Us(o)}else if(Pu(e))r=()=>Y$2(e.useValue);else if(Tm(e))r=()=>e.useFactory(...Hs(e.deps||[]));else if(bm(e))r=(o,i)=>T(Y$2(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y$2(e&&(e.useClass||e.provide));if(Mm(e))r=()=>new o(...Hs(e.deps));else return lt$1(o)||Us(o)}return r}function Kn(e){if(e.destroyed)throw new y$1(-205,!1)}function pn$1(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Mm(e){return!!e.deps}function _m(e){return e!==null&&typeof e==`object`&&typeof e.ngOnDestroy==`function`}function Nm(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Bs(e,t){for(let n of e)Array.isArray(n)?Bs(n,t):n&&ea(n)?Bs(n.ɵproviders,t):t(n)}function mn$1(e,t){let n;e instanceof Ft?(Kn(e),n=e):n=new Vs(e);let o=Me$1(n),i=ne$1(void 0);try{return t()}finally{Me$1(o),ne$1(i)}}function Fu(){return Cu()!==void 0||Co$1()!=null}var we$2=0;var E$2=1;var D$1=2;var W$1=3;var ge$1=4;var Q$1=5;var Bt$1=6;var yn$1=7;var B$1=8;var ze$2=9;var be$1=10;var P=11;var vn$1=12;var ua=13;var mt$1=14;var J$1=15;var yt$1=16;var $t=17;var _e$1=18;var dr$1=19;var da=20;var Ue$2=21;var Bo=22;var Be$2=23;var ue$1=24;var $o$1=25;var ju=26;var fr$1=27;var H$2=28;var Vu=1;var fa=6;var zt=7;var pr$1=8;var Wt$1=9;var $$1=10;function We$1(e){return Array.isArray(e)&&typeof e[Vu]==`object`}function me$1(e){return Array.isArray(e)&&e[Vu]===!0}function pa(e){return(e.flags&4)!==0}function Ne$2(e){return e.componentOffset>-1}function zo$1(e){return(e.flags&1)===1}function xe$2(e){return!!e.template}function En$1(e){return(e[D$1]&512)!==0}function Gt$1(e){return(e[D$1]&256)===256}var F$2=(function(e){return e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`,e[e.ATTRIBUTE_NO_BINDING=6]=`ATTRIBUTE_NO_BINDING`,e})(F$2||{});var Jn;var jt=`svg`;var Wo=`math`;var $s=``;var vu=`*`;var zs=()=>Object.create(null);function xm(){return Jn||(Jn=zs(),ct$1(F$2.HTML,void 0,[[`iframe`,[`srcdoc`]],[`*`,[`innerHTML`,`outerHTML`]]]),ct$1(F$2.STYLE,void 0,[[`*`,[`style`]]]),ct$1(F$2.URL,void 0,[[`*`,[`formAction`]],[`area`,[`href`]],[`a`,[`href`,`xlink:href`]],[`form`,[`action`]]]),ct$1(F$2.URL,Wo,[[`*`,[`href`,`xlink:href`]]]),ct$1(F$2.RESOURCE_URL,void 0,[[`base`,[`href`]],[`embed`,[`src`]],[`frame`,[`src`]],[`iframe`,[`src`]],[`link`,[`href`]],[`object`,[`codebase`,`data`]]]),ct$1(F$2.URL,jt,[[`a`,[`href`,`xlink:href`]]]),ct$1(F$2.ATTRIBUTE_NO_BINDING,jt,[[`animate`,[`attributeName`,`values`,`to`,`from`]],[`set`,[`to`,`attributeName`]],[`animateMotion`,[`attributeName`]],[`animateTransform`,[`attributeName`]]]),ct$1(F$2.ATTRIBUTE_NO_BINDING,void 0,[[`unknown`,[`attributeName`,`values`,`to`,`from`,`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]],[`iframe`,[`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]]]),Jn)}function ct$1(e,t,n){let r=t??$s;for(let[o,i]of n){let s=o.toLowerCase();for(let a of i){let c=a.toLowerCase(),l=Jn[c]??=zs(),u=l[r]??=zs();u[s]=e}}}function Hu(e,t,n){let o=xm()[t.toLowerCase()];if(!o)return F$2.NONE;let i=e.toLowerCase(),s;if(n){let a=o[n];a&&(s=a[i]??a[vu])}if(s===void 0){let a=o[$s];a&&(s=a[i]??a[vu])}if(s===void 0&&(!n||n===$s)){let a=o[jt];a&&(s=a[i])}return s??F$2.NONE}function X(e){for(;Array.isArray(e);)e=e[we$2];return e}function ha(e,t){return X(t[e])}function ce$1(e,t){return X(t[e.index])}function Go(e,t){return e.data[t]}function qo$1(e,t){return e[t]}function ga(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ye$1(e,t){let n=t[e];return We$1(n)?n:n[we$2]}function Uu(e){return(e[D$1]&4)===4}function Zo(e){return(e[D$1]&128)===128}function Bu(e){return me$1(e[W$1])}function Re$2(e,t){return t==null?null:e[t]}function ma(e){e[$t]=0}function ya(e){e[D$1]&1024||(e[D$1]|=1024,Zo(e)&&In$1(e))}function $u(e,t){for(;e>0;)t=t[mt$1],e--;return t}function hr$1(e){return!!(e[D$1]&9216||e[ue$1]?.dirty)}function Yo(e){e[be$1].changeDetectionScheduler?.notify(8),e[D$1]&64&&(e[D$1]|=1024),hr$1(e)&&In$1(e)}function In$1(e){e[be$1].changeDetectionScheduler?.notify(0);let t=$e$2(e);for(;t!==null&&!(t[D$1]&8192||(t[D$1]|=8192,!Zo(t)));)t=$e$2(t)}function Qo(e,t){if(Gt$1(e))throw new y$1(911,!1);e[Ue$2]===null&&(e[Ue$2]=[]),e[Ue$2].push(t)}function zu(e,t){if(e[Ue$2]===null)return;let n=e[Ue$2].indexOf(t);n!==-1&&e[Ue$2].splice(n,1)}function $e$2(e){let t=e[W$1];return me$1(t)?t[W$1]:t}function va(e){return e[yn$1]??=[]}function Ea(e){return e.cleanup??=[]}function Wu(e,t,n,r){let o=va(t);o.push(n),e.firstCreatePass&&Ea(e).push(r,o.length-1)}var C={lFrame:sd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ws=!1;function Gu(){return C.lFrame.elementDepthCount}function qu(){C.lFrame.elementDepthCount++}function Ia(){C.lFrame.elementDepthCount--}function Zu(){return C.bindingsEnabled}function Da(){return C.skipHydrationRootTNode!==null}function wa(e){return C.skipHydrationRootTNode===e}function ba(){C.skipHydrationRootTNode=null}function v(){return C.lFrame.lView}function V$2(){return C.lFrame.tView}function Yu(e){return C.lFrame.contextLView=e,e[B$1]}function Qu(e){return C.lFrame.contextLView=null,e}function Z$2(){let e=Ta();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ta(){return C.lFrame.currentTNode}function Xu(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Dn$1(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function Sa(){return C.lFrame.isParent}function Ca(){C.lFrame.isParent=!1}function Ku(){return C.lFrame.contextLView}function Ma(){return Ws}function tr$1(e){let t=Ws;return Ws=e,t}function gr$1(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ju(){return C.lFrame.bindingIndex}function ed(e){return C.lFrame.bindingIndex=e}function Ae$1(){return C.lFrame.bindingIndex++}function _a(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function td(){return C.lFrame.inI18n}function nd(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xo(t)}function rd(){return C.lFrame.currentDirectiveIndex}function Xo(e){C.lFrame.currentDirectiveIndex=e}function od(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ko(){return C.lFrame.currentQueryIndex}function mr$1(e){C.lFrame.currentQueryIndex=e}function Rm(e){let t=e[E$2];return t.type===2?t.declTNode:t.type===1?e[Q$1]:null}function Na(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Rm(i),o===null||(i=i[mt$1],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=id();return r.currentTNode=t,r.lView=e,!0}function Jo(e){let t=id(),n=e[E$2];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function id(){let e=C.lFrame,t=e===null?null:e.child;return t===null?sd(e):t}function sd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ad(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var xa=ad;function ei$1(){let e=ad();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function cd(e){return(C.lFrame.contextLView=$u(e,C.lFrame.contextLView))[B$1]}function Oe$2(){return C.lFrame.selectedIndex}function vt$1(e){C.lFrame.selectedIndex=e}function Et$1(){let e=C.lFrame;return Go(e.tView,e.selectedIndex)}function ti$1(){C.lFrame.currentNamespace=jt}function Ra(){return C.lFrame.currentNamespace}var ld=!0;function ni$1(){return ld}function ri$1(e){ld=e}function Gs(e,t=null,n=null,r){let o=Aa(e,t,n,r);return o.resolveInjectorInitializers(),o}function Aa(e,t=null,n=null,r,o=new Set){return new Ft([n||se$1,Ou(e)],t||ur$1(),null,o)}var Ie$1=class e{static THROW_IF_NOT_FOUND=kt;static NULL=new hn$1;static create(t,n){if(Array.isArray(t))return Gs({name:``},n,t,``);{let r=t.name??``;return Gs({name:r},t.parent,t.providers,r)}}static ɵprov=M$1({token:e,providedIn:`any`,factory:()=>T(Uo$1)});static __NG_ELEMENT_ID__=-1};var z$2=new b$1(``);var he=class{static __NG_ELEMENT_ID__=Am;static __NG_ENV_ID__=t=>t};var xo$1=class extends he{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Gt$1(this._lView)}onDestroy(t){let n=this._lView;return Qo(n,t),()=>zu(n,t)}};function Am(){return new xo$1(v())}var ud=!1;var dd=new b$1(``);var qt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new zn$1(!1);debugTaskTracker=g$1(dd,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new _(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static ɵprov=M$1({token:e,providedIn:`root`,factory:()=>new e})}return e})();var qs=class extends oe$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Fu()&&(this.destroyRef=g$1(he,{optional:!0})??void 0,this.pendingTasks=g$1(qt,{optional:!0})??void 0)}emit(t){let n=m$1(null);try{super.next(t)}finally{m$1(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t==`object`){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ee&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}};var He$2=qs;function Ro$1(...e){}function Oa(e){let t,n;function r(){e=Ro$1;try{n!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame==`function`&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function fd(e){return queueMicrotask(()=>e()),()=>{e=Ro$1}}var ka=`isAngularZone`;var nr$1=ka+`_ID`;var Om=0;var re=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new He$2(!1);onMicrotaskEmpty=new He$2(!1);onStable=new He$2(!1);onError=new He$2(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=ud}=t;if(typeof Zone>`u`)throw new y$1(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Lm(s)}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(ka)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new y$1(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y$1(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask(`NgZoneEvent: `+o,t,km,Ro$1,Ro$1);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}};var km={};function Pa(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Pm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Oa(()=>{e.callbackScheduled=!1,Zs(e),e.isCheckStableRunning=!0,Pa(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Zs(e)}function Lm(e){let t=()=>{Pm(e)},n=Om++;e._inner=e._inner.fork({name:`angular`,properties:{[ka]:!0,[nr$1]:n,[nr$1+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Fm(c))return r.invokeTask(i,s,a,c);try{return Eu(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),Iu(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Eu(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!jm(c)&&t(),Iu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change==`microTask`?(e._hasPendingMicrotasks=s.microTask,Zs(e),Pa(e)):s.change==`macroTask`&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Zs(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Eu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Iu(e){e._nesting--,Pa(e)}var rr$1=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new He$2;onMicrotaskEmpty=new He$2;onStable=new He$2;onError=new He$2;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Fm(e){return pd(e,`__ignore_ng_zone__`)}function jm(e){return pd(e,`__scheduler_tick__`)}function pd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var De$1=class{_console=console;handleError(t){this._console.error(`ERROR`,t)}};function hd(e){return gd(e)?e:new Ys(e)}function gd(e){return e instanceof Error||typeof e==`object`&&e!==null&&typeof e.name==`string`&&typeof e.message==`string`}var Ys=class extends Error{constructor(t){super(String(t),{cause:t}),this.name=`ErrorBoundaryWrappedError`}};var It$1=new b$1(``,{factory:()=>{let e=g$1(re),t=g$1(ae$1),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(De$1),n.handleError(r))})}}});var md={provide:Ut,useValue:()=>{g$1(De$1,{optional:!0})},multi:!0};var Vm=new b$1(``,{factory:()=>{let e=g$1(z$2).defaultView;if(!e)return;let t=g$1(It$1),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener(`unhandledrejection`,n),e.addEventListener(`error`,r)};typeof Zone<`u`?Zone.root.run(o):o(),g$1(he).onDestroy(()=>{e.removeEventListener(`error`,r),e.removeEventListener(`unhandledrejection`,n)})}});function Hm(){return gt$1([Au(()=>{g$1(Vm)})])}function Te$2(e,t){let[n,r,o]=xs(e,t?.equal),i=n;i[U$3];return i.set=r,i.update=o,i.asReadonly=yr$1.bind(i),i}function yr$1(){let e=this[U$3];if(e.readonlyFn===void 0){let t=()=>this();t[U$3]=e,e.readonlyFn=t}return e.readonlyFn}var vr$1=new b$1(``,{factory:()=>Um});var Um=`ng`;var oi$1=new b$1(``);var Er=new b$1(``,{providedIn:`platform`,factory:()=>`unknown`});var Ir=new b$1(``,{factory:()=>g$1(z$2).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null});var ii$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Bm}return e})();function Bm(){return new ii$1(v(),Z$2())}var ut$1=class{};var Dr=new b$1(``,{factory:()=>!0});var La=new b$1(``);var si$1=(()=>{class e{static ɵprov=M$1({token:e,providedIn:`root`,factory:()=>new Qs})}return e})();var Qs=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};var Ao$1=class{[U$3];constructor(t){this[U$3]=t}destroy(){this[U$3].destroy()}};function yd(e,t){let n=t?.injector??g$1(Ie$1),r=t?.manualCleanup!==!0?n.get(he):null,o,i=n.get(ii$1,null,{optional:!0}),s=n.get(ut$1);return i!==null?(o=Ed(i.view,s,e),r instanceof xo$1&&r._lView===i.view&&(r=null)):o=Wm(e,n.get(si$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ao$1(o)}var vd=l(k$1({},Rs),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=tr$1(!1);try{As(this)}finally{tr$1(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=m$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],m$1(e)}}});var $m=l(k$1({},vd),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Ot(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}});var zm=l(k$1({},vd),{consumerMarkedDirty(){this.view[D$1]|=8192,In$1(this.view),this.notifier.notify(13)},destroy(){if(Ot(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Be$2]?.delete(this)}});function Ed(e,t,n){let r=Object.create(zm);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.userFn=n,r.fn=Id(r,n),e[Be$2]??=new Set,e[Be$2].add(r),r.consumerMarkedDirty(r),r}function Wm(e,t,n){let r=Object.create($m);return r.userFn=e,r.fn=Id(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<`u`?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Id(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function ai$1(e){return typeof e==`function`&&e[U$3]!==void 0}function ci$1(e){return ai$1(e)&&typeof e.set==`function`}var wr=(()=>{class e{internalPendingTasks=g$1(qt);scheduler=g$1(ut$1);errorHandler=g$1(It$1);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static ɵprov=M$1({token:e,providedIn:`root`,factory:()=>new e})}return e})();var Rn$1=Symbol(`InputSignalNode#UNSET`);var Nc=l(k$1({},Xn$1),{transformFn:void 0,applyValueToInputSignal(e,t){Ve$2(e,t)}});function Ar(e){return{toString:e}.toString()}var x=(function(e){return e[e.TemplateCreateStart=0]=`TemplateCreateStart`,e[e.TemplateCreateEnd=1]=`TemplateCreateEnd`,e[e.TemplateUpdateStart=2]=`TemplateUpdateStart`,e[e.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,e[e.LifecycleHookStart=4]=`LifecycleHookStart`,e[e.LifecycleHookEnd=5]=`LifecycleHookEnd`,e[e.OutputStart=6]=`OutputStart`,e[e.OutputEnd=7]=`OutputEnd`,e[e.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,e[e.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,e[e.BootstrapComponentStart=10]=`BootstrapComponentStart`,e[e.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,e[e.ChangeDetectionStart=12]=`ChangeDetectionStart`,e[e.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,e[e.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,e[e.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,e[e.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,e[e.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,e[e.ComponentStart=18]=`ComponentStart`,e[e.ComponentEnd=19]=`ComponentEnd`,e[e.DeferBlockStateStart=20]=`DeferBlockStateStart`,e[e.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,e[e.DynamicComponentStart=22]=`DynamicComponentStart`,e[e.DynamicComponentEnd=23]=`DynamicComponentEnd`,e[e.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,e[e.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,e})(x||{});var yi$1=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function af(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var cf=null;var ry=(()=>{cf=Dd;let e=()=>Dd;return e.ngInherit=!0,e})();function oy(){return cf}function Dd(e){return e.type.prototype.ngOnChanges&&(e.setInput=sy),iy}function iy(){let e=lf(this),t=e?.current;if(t){let n=e.previous;if(n===ht$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function sy(e,t,n,r,o){let i=this.declaredInputs[r],s=lf(e)||ay(e,{previous:ht$1,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new yi$1(l&&l.currentValue,n,c===ht$1),af(e,t,o,n)}var qa=`__ngSimpleChanges__`;function lf(e){return Object.hasOwn(e,qa)&&e[qa]||null}function ay(e,t){return e[qa]=t}var wd=[];var L$1=function(e,t=null,n){for(let r=0;r<wd.length;r++){let o=wd[r];o(e,t,n)}};function cy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=oy()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ly(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=e.data[n].type.prototype;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function pi$1(e,t,n){uf(e,t,3,n)}function hi$1(e,t,n,r){(e[D$1]&3)===n&&uf(e,t,n,r)}function Fa(e,t){let n=e[D$1];(n&3)===t&&(n&=16383,n+=1,e[D$1]=n)}function uf(e,t,n,r){let o=r!==void 0?e[$t]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]==`number`){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[$t]+=65536),(a<i||i==-1)&&(uy(e,n,t,c),e[$t]=(e[$t]&4294901760)+c+2),c++}function bd(e,t){L$1(x.LifecycleHookStart,e,t);let n=m$1(null);try{t.call(e)}finally{m$1(n),L$1(x.LifecycleHookEnd,e,t)}}function uy(e,t,n,r){let o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[D$1]>>14<e[$t]>>16&&(e[D$1]&3)===t&&(e[D$1]+=16384,bd(a,i)):bd(a,i)}var Tn$1=-1;var Qt$1=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function dy(e){return(e.flags&8)!==0}function fy(e){return(e.flags&16)!==0}function py(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o==`number`){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];hy(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function df(e){return e===3||e===4||e===6}function hy(e){return e.charCodeAt(0)===64}function Sn$1(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o==`number`?n=o:n===0||(n===-1||n===2?Td(e,n,o,null,t[++r]):Td(e,n,o,null,null))}}return e}function Td(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a==`number`){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a==`number`)break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function ff(e){return e!==Tn$1}function vi$1(e){return e&32767}function gy(e){return e>>16}function Ei$1(e,t){let n=gy(e),r=t;for(;n>0;)r=r[mt$1],n--;return r}var Za=!0;function Ii$1(e){let t=Za;return Za=e,t}var pf=255;var hf=5;var yy=0;var ke$2={};function vy(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:Object.hasOwn(n,Ht)&&(r=n[Ht]),r??=n[Ht]=yy++;let o=r&pf,i=1<<o;t.data[e+(o>>hf)]|=i}function Di$1(e,t){let n=gf(e,t);if(n!==-1)return n;let r=t[E$2];r.firstCreatePass&&(e.injectorIndex=t.length,ja(r.data,e),ja(t,null),ja(r.blueprint,null));let o=xc(e,t),i=e.injectorIndex;if(ff(o)){let s=vi$1(o),a=Ei$1(o,t),c=a[E$2].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function ja(e,t){e.push(0,0,0,0,0,0,0,0,t)}function gf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function xc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Df(o),r===null)return Tn$1;if(n++,o=o[mt$1],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Tn$1}function Ya(e,t,n){vy(e,t,n)}function Ey(e,t){if(t===`class`)return e.classes;if(t===`style`)return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(df(i))break;if(i===0)o=o+2;else if(typeof i==`number`)for(o++;o<r&&typeof n[o]==`string`;)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function mf(e,t,n){if(n&8||e!==void 0)return e;jo$1(t,`NodeInjector`)}function yf(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[ze$2],i=ne$1(void 0);try{return o?o.get(t,r,n&8):oa(t,r,n&8)}finally{ne$1(i)}}return mf(r,t,n)}function vf(e,t,n,r=0,o){if(e!==null){if(t[D$1]&2048&&!(r&2)){let s=by(e,t,n,r,ke$2);if(s!==ke$2)return s}let i=Ef(e,t,n,r,ke$2);if(i!==ke$2)return i}return yf(t,n,r,o)}function Ef(e,t,n,r,o){let i=Dy(n);if(typeof i==`function`){if(!Na(t,e,r))return r&1?mf(o,n,r):yf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))jo$1(n);else return s}finally{xa()}}else if(typeof i==`number`){let s=null,a=gf(e,t),c=Tn$1,l=r&1?t[J$1][Q$1]:null;for((a===-1||r&4)&&(c=a===-1?xc(e,t):t[a+8],c===Tn$1||!Cd(r,!1)?a=-1:(s=t[E$2],a=vi$1(c),t=Ei$1(c,t)));a!==-1;){let u=t[E$2];if(Sd(i,a,u.data)){let d=Iy(a,t,n,s,r,l);if(d!==ke$2)return d}c=t[a+8],c!==Tn$1&&Cd(r,t[E$2].data[a+8]===l)&&Sd(i,a,t)?(s=u,a=vi$1(c),t=Ei$1(c,t)):a=-1}}return o}function Iy(e,t,n,r,o,i){let s=t[E$2],a=s.data[e+8],u=gi$1(a,s,n,r==null?Ne$2(a)&&Za:r!=s&&(a.type&3)!==0,o&1&&i===a);return u!==null?Sr(t,s,u,a,o):ke$2}function gi$1(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&xe$2(f)&&f.type===n)return c}return null}function Sr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Qt$1){let a=i;if(a.resolving)throw ra(``);let c=Ii$1(a.canSeeViewProviders);a.resolving=!0;s[n].type||s[n];let d=a.injectImpl?ne$1(a.injectImpl):null;Na(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&cy(n,s[n],t)}finally{d!==null&&ne$1(d),Ii$1(c),a.resolving=!1,xa()}}return i}function Dy(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Ht)?e[Ht]:void 0;return typeof t==`number`?t>=0?t&pf:wy:t}function Sd(e,t,n){let r=1<<e;return!!(n[t+(e>>hf)]&r)}function Cd(e,t){return!(e&2)&&!(e&1&&t)}var Ge=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return vf(this._tNode,this._lView,t,Pt(r),n)}};function wy(){return new Ge(Z$2(),v())}function If(e){return Ar(()=>{let t=e.prototype.constructor,n=t[er$1]||Qa(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[er$1]||Qa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Qa(e){return Js(e)?()=>{let t=Qa(Y$2(e));return t&&t()}:lt$1(e)}function by(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[D$1]&2048&&!En$1(s);){let a=Ef(i,s,n,r|2,ke$2);if(a!==ke$2)return a;r&=-5;let c=i.parent;if(!c){let l=s[da];if(l){let u=l.get(n,ke$2,r);if(u!==ke$2)return u}c=Df(s),s=s[mt$1]}i=c}return o}function Df(e){let t=e[E$2],n=t.type;return n===2?t.declTNode:n===1?e[Q$1]:null}function wf(e){return Ey(Z$2(),e)}function Pe$1(e){return{token:e.token,providedIn:e.autoProvided===!1?null:`root`,factory:e.factory,value:void 0}}function Ty(){return An$1(Z$2(),v())}function An$1(e,t){return new Or(ce$1(e,t))}var Or=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ty}return e})();function bf(e){return e instanceof Or?e.nativeElement:e}function Sy(){return this._results[Symbol.iterator]()}var wi$1=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new oe$1}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=_u(t);(this._changesDetected=!Mu(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Sy};function Tf(e){return(e.flags&128)===128}var Rc=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(Rc||{});var Sf=new Map;var Cy=0;function My(){return Cy++}function _y(e){Sf.set(e[dr$1],e)}function Xa(e){Sf.delete(e[dr$1])}var Md=`__ngContext__`;function Cn$1(e,t){We$1(t)?(e[Md]=t[dr$1],_y(t)):e[Md]=t}function Cf(e){return _f(e[vn$1])}function Mf(e){return _f(e[ge$1])}function _f(e){for(;e!==null&&!me$1(e);)e=e[ge$1];return e}var Ka;function Ac(e){Ka=e}function Oc(){if(Ka!==void 0)return Ka;if(typeof document<`u`)return document;throw new y$1(210,!1)}var Nf=`r`;var xf=`di`;var Rf=!1;var Af=new b$1(``,{factory:()=>Rf});var _d=new WeakMap;function Ny(e,t){if(e==null||typeof e!=`object`)return;let n=_d.get(e);n||(n=new WeakSet,_d.set(e,n)),n.add(t)}function Li$1(e){return(e.flags&32)===32}var Ay=()=>null;function Of(e,t,n=!1){return Ay(e,t,n)}function kf(e,t){let n=e.contentQueries;if(n!==null){let r=m$1(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];mr$1(i),a.contentQueries(2,t[s],s)}}}finally{m$1(r)}}}function Ja(e,t,n){mr$1(0);let r=m$1(null);try{t(e,n)}finally{m$1(r)}}function Pf(e,t,n){if(pa(t)){let r=m$1(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{m$1(r)}}}var Ce$2=(function(e){return e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`,e[e.ExperimentalIsolatedShadowDom=4]=`ExperimentalIsolatedShadowDom`,e})(Ce$2||{});var qe$2=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`}};var ec=class extends qe$2{getTypeName(){return`HTML`}};var tc=class extends qe$2{getTypeName(){return`Style`}};var nc=class extends qe$2{getTypeName(){return`Script`}};var rc=class extends qe$2{getTypeName(){return`URL`}};var oc=class extends qe$2{getTypeName(){return`ResourceURL`}};function de(e){return e instanceof qe$2?e.changingThisBreaksApplicationSecurity:e}function Le$2(e,t){let n=Lf(e);if(n!=null&&n!==t){if(n===`ResourceURL`&&t===`URL`)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Xs})`)}return n===t}function Lf(e){return e instanceof qe$2&&e.getTypeName()||null}function kc(e){return new ec(e)}function Pc(e){return new tc(e)}function Lc(e){return new nc(e)}function Fc(e){return new rc(e)}function jc(e){return new oc(e)}var Oy={"http://www.w3.org/2000/svg":jt,"http://www.w3.org/1998/Math/MathML":Wo};var li$1;function ky(){if(li$1===void 0&&(li$1=null,pt$1.trustedTypes))try{li$1=pt$1.trustedTypes.createPolicy(`angular`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return li$1}function Fi$1(e){return ky()?.createHTML(e)||e}var ui$1;function Ff(){if(ui$1===void 0&&(ui$1=null,pt$1.trustedTypes))try{ui$1=pt$1.trustedTypes.createPolicy(`angular#unsafe-bypass`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ui$1}function Nd(e){return Ff()?.createHTML(e)||e}function xd(e){return Ff()?.createScriptURL(e)||e}function Py(e){let t=new sc(e);return Ly()?new ic(t):t}var ic=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=`<body><remove></remove>`+t;try{let n=new window.DOMParser().parseFromString(Fi$1(t),`text/html`).body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}};var sc=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument(`sanitization-inert`)}getInertBodyElement(t){let n=this.inertDocument.createElement(`template`);return n.innerHTML=Fi$1(t),n}};function Ly(){try{return!!new window.DOMParser().parseFromString(Fi$1(``),`text/html`)}catch{return!1}}var Fy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function kr(e){return e=String(e),e.match(Fy)?e:`unsafe:`+e}function Ye(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=!0;return t}function Pr(...e){let t=Object.create(null);for(let n of e)for(let r in n)Object.hasOwn(n,r)&&(t[r]=!0);return t}var jf=Ye(`area,br,col,hr,img,wbr`);var Vf=Ye(`colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr`);var Hf=Ye(`rp,rt`);var jy=Pr(Hf,Vf);var Rd=Pr(jf,Pr(Vf,Ye(`address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul`)),Pr(Hf,Ye(`a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video`)),jy);var Uf=Ye(`background,cite,href,itemtype,longdesc,poster,src,xlink:href`);var $y=Pr(Uf,Ye(`abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width`),Ye(`aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext`));var zy=Ye(`script,style,template`);var ac=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=qy(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Gy(n);if(i){n=i;break}n=o.pop()}}return this.buf.join(``)}startElement(t){let n=Ad(t).toLowerCase();if(!Object.hasOwn(Rd,n))return this.sanitizedSomething=!0,!Object.hasOwn(zy,n);this.buf.push(`<`),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Object.hasOwn($y,a)){this.sanitizedSomething=!0;continue}let c=i.value;Uf[a]&&(c=kr(c)),this.buf.push(` `,s,`="`,Od(c),`"`)}return this.buf.push(`>`),!0}endElement(t){let n=Ad(t).toLowerCase();Object.hasOwn(Rd,n)&&!Object.hasOwn(jf,n)&&(this.buf.push(`</`),this.buf.push(n),this.buf.push(`>`))}chars(t){this.buf.push(Od(t))}};function Wy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Gy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Bf(t);return t}function qy(e){let t=e.firstChild;if(t&&Wy(e,t))throw Bf(t);return t}function Ad(e){let t=e.nodeName;return typeof t==`string`?t:`FORM`}function Bf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Zy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var Yy=/([^\#-~ |!])/g;function Od(e){return e.replace(/&/g,`&amp;`).replace(Zy,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return`&#`+((n-55296)*1024+(r-56320)+65536)+`;`}).replace(Yy,function(t){return`&#`+t.charCodeAt(0)+`;`}).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var di$1;function ji$1(e,t){let n=null;try{di$1=di$1||Py(e);let r=t?String(t):``;n=di$1.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error(`Failed to sanitize html because the input is unstable`);o--,r=i,i=n.innerHTML,n=di$1.getInertBodyElement(r)}while(r!==i);return Fi$1(new ac().sanitizeChildren(kd(n)||n))}finally{if(n){let r=kd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function kd(e){return`content`in e&&Qy(e)?e.content:null}function Qy(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===`TEMPLATE`}function Xy(e,t){return e.createText(t)}function Ky(e,t,n){e.setValue(t,n)}function $f(e,t,n){return e.createElement(t,n)}function Zt$1(e,t,n,r,o){e.insertBefore(t,n,r,o)}function zf(e,t,n){e.appendChild(t,n)}function Pd(e,t,n,r,o){r!==null?Zt$1(e,t,n,r,o):zf(e,t,n)}function Wf(e,t,n,r){e.removeChild(null,t,n,r)}function Jy(e,t,n){e.setAttribute(t,`style`,n)}function ev(e,t,n){n===``?e.removeAttribute(t,`class`):e.setAttribute(t,`class`,n)}function Gf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&py(e,t,r),o!==null&&ev(e,t,o),i!==null&&Jy(e,t,i)}function tv(e,t=!0){if(e[0]!=`:`)return[null,e];let n=e.indexOf(`:`,1);if(n===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function Vc(e,t,n){if(t!==void 0&&n!==void 0&&Yf(t,n)!==F$2.HTML)return e;let r=Hc();return r?Nd(r.sanitize(F$2.HTML,e)||``):Le$2(e,`HTML`)?Nd(de(e)):ji$1(Oc(),ft$1(e))}function qf(e){let t=Hc();return t?t.sanitize(F$2.URL,e)||``:Le$2(e,`URL`)?de(e):kr(ft$1(e))}function Zf(e){let t=Hc();if(t)return xd(t.sanitize(F$2.RESOURCE_URL,e)||``);if(Le$2(e,`ResourceURL`))return xd(de(e));throw new y$1(-904,!1)}function nv(e,t){switch(Yf(e,t)){case F$2.RESOURCE_URL:return Zf;case F$2.URL:return qf;default:return null}}function rv(e,t,n){return nv(t,n)?.(e)??e}function Hc(){let e=v();return e&&e[be$1].sanitizer}function Yf(e,t){let[n,r]=ov(e);return Hu(r,t,n)}function ov(e){e=e.toLowerCase();let t=tv(e,!1);if(t[0])return t;let r=Oe$2()===-1?null:Et$1(),o=r?.namespace;if(e===`#host`&&r?.type===2){let i=ce$1(r,v());if(i.tagName&&(e=i.tagName.toLowerCase()),o==null){let s=i.namespaceURI;o=s&&Oy[s]}}return[o,e]}function iv(e){return e.ownerDocument}function sv(e){return e instanceof Function?e():e}function av(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Qf=`ng-template`;function cv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]==`string`;o+=2)if(t[o]===`class`&&av(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Uc(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])==`string`;)if(i.toLowerCase()===n)return!0}return!1}function Uc(e){return e.type===4&&e.value!==Qf}function lv(e,t,n){return t===(e.type===4&&!n?Qf:e.value)}function uv(e,t,n){let r=4,o=e.attrs,i=o!==null?pv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c==`number`){if(!s&&!Se$2(r)&&!Se$2(c))return!1;if(s&&Se$2(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==``&&!lv(e,c,n)||c===``&&t.length===1){if(Se$2(r))return!1;s=!0}}else if(r&8){if(o===null||!cv(e,o,c,n)){if(Se$2(r))return!1;s=!0}}else{let l=t[++a],u=dv(c,o,Uc(e),n);if(u===-1){if(Se$2(r))return!1;s=!0;continue}if(l!==``){let d;if(u>i?d=``:d=o[u+1].toLowerCase(),r&2&&l!==d){if(Se$2(r))return!1;s=!0}}}}return Se$2(r)||s}function Se$2(e){return(e&1)===0}function dv(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a==`string`;)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return hv(t,e)}function Xf(e,t,n=!1){for(let r=0;r<t.length;r++)if(uv(e,t[r],n))return!0;return!1}function fv(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function pv(e){for(let t=0;t<e.length;t++){let n=e[t];if(df(n))return t}return e.length}function hv(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r==`number`)return-1;if(r===t)return n;n++}return-1}function gv(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function Ld(e,t){return e?`:not(`+t.trim()+`)`:t}function mv(e){let t=e[0],n=1,r=2,o=``,i=!1;for(;n<e.length;){let s=e[n];if(typeof s==`string`)if(r&2){let a=e[++n];o+=`[`+s+(a.length>0?`="`+a+`"`:``)+`]`}else r&8?o+=`.`+s:r&4&&(o+=` `+s);else o!==``&&!Se$2(s)&&(t+=Ld(i,o),o=``),r=s,i=i||!Se$2(r);n++}return o!==``&&(t+=Ld(i,o)),t}function yv(e){return e.map(mv).join(`,`)}function vv(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i==`string`)o===2?i!==``&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Se$2(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var le$1={};var Ze=(function(e){return e[e.Important=1]=`Important`,e[e.DashCase=2]=`DashCase`,e})(Ze||{});var Ev;function Bc(e,t){return Ev(e,t)}var $c=new Set;typeof document<`u`&&document?.documentElement?.getAnimations;var cc=new WeakMap;function Kf(e){return e?e[mt$1]??e:null}var wn$1=new WeakSet;function Iv(e,t,n){let r=cc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Kf(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===t?(r.splice(a,1),wn$1.add(c),c.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function Dv(e,t,n){let r=Kf(n),o=cc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):cc.set(e,[{el:t,declarationView:r}])}var zc=(function(e){return e[e.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,e[e.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,e})(zc||{});var wt$1=new b$1(``);var Fd=new Set;function en$1(e){Fd.has(e)||(Fd.add(e),performance?.mark?.(`mark_feature_usage`,{detail:{feature:e}}))}var Jf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static ɵprov=M$1({token:e,providedIn:`root`,factory:()=>new e})}return e})();var lc=null;var ep=null;function jd(e,t,n,r){lc?.maybeQueueEnterAnimation(e,t,n,r)}function Vd(e,t,n,r){lc===null?r(!1):lc.runLeaveAnimationsWithCallback(e,t,n,r)}function wv(e){ep?.initViewDetachAnimations(e)}function bv(e){ep?.clearViewDetachAnimations(e)}function bn$1(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;me$1(o)?c=o:We$1(o)&&(l=!0,o=o[we$2]);let u=X(o);e===0&&r!==null?(jd(a,r,i,n),s==null?zf(t,r,u):Zt$1(t,r,u,s||null,!0)):e===1&&r!==null?(Zt$1(t,r,u,s||null,!0),Iv(i,u,a),wn$1.has(u)||jd(a,r,i,n)):e===2?(a?.[ju]?.leave?.has(i.index)&&Dv(i,u,a),wn$1.delete(u),Vd(a,i,n,d=>{if(wn$1.has(u)){wn$1.delete(u);return}Wf(t,u,l,d)})):e===3&&(wn$1.delete(u),Vd(a,i,n,()=>{t.destroyNode(u)})),c!=null&&kv(t,e,n,c,i,r,s)}}function Tv(e,t){tp(e,t),t[we$2]=null,t[Q$1]=null}function Sv(e,t,n,r,o,i){r[we$2]=o,r[Q$1]=t,Hi$1(e,r,n,1,o,i)}function tp(e,t){t[be$1].changeDetectionScheduler?.notify(9),Hi$1(e,t,t[P],2,null,null)}function Cv(e){let t=e[vn$1];if(!t)return Va(e[E$2],e);for(;t;){let n=null;if(We$1(t))n=t[vn$1];else{let r=t[$$1];r&&(n=r)}if(!n){for(;t&&!t[ge$1]&&t!==e;)We$1(t)&&Va(t[E$2],t),t=t[W$1];t===null&&(t=e),We$1(t)&&Va(t[E$2],t),n=t&&t[ge$1]}t=n}}function Wc(e,t){let n=e[Wt$1],r=n.indexOf(t);n.splice(r,1)}function Vi$1(e,t){if(Gt$1(t))return;let n=t[P];n.destroyNode&&Hi$1(e,t,n,3,null,null),Cv(t)}function Va(e,t){if(Gt$1(t))return;let n=m$1(null);try{t[D$1]&=-129,t[D$1]|=256,t[ue$1]&&Ot(t[ue$1]),_v(e,t),Mv(e,t),t[E$2].type===1&&t[P].destroy();let r=t[yt$1];if(r!==null&&me$1(t[W$1])){r!==t[W$1]&&Wc(r,t);let o=t[_e$1];o!==null&&o.detachView(e)}Xa(t)}finally{m$1(n)}}function Mv(e,t){let n=e.cleanup,r=t[yn$1];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]==`string`){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[yn$1]=null);let o=t[Ue$2];if(o!==null){t[Ue$2]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Be$2];if(i!==null){t[Be$2]=null;for(let s of i)s.destroy()}}function _v(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Qt$1)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];L$1(x.LifecycleHookStart,a,c);try{c.call(a)}finally{L$1(x.LifecycleHookEnd,a,c)}}else{L$1(x.LifecycleHookStart,o,i);try{i.call(o)}finally{L$1(x.LifecycleHookEnd,o,i)}}}}}function np(e,t,n){if(t===null)throw new y$1(510,!1);return Nv(e,t.parent,n)}function Nv(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[we$2];if(Ne$2(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ce$2.None||o===Ce$2.Emulated)return null}return ce$1(r,n)}function rp(e,t,n){return Rv(e,t,n)}function xv(e,t,n){return e.type&40?ce$1(e,n):null}var Rv=xv;function Gc(e,t,n,r){let o=np(e,r,t),i=t[P],a=rp(r.parent||t[Q$1],r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Pd(i,o,n[c],a,!1);else Pd(i,o,n,a,!1)}function br(e,t){if(t!==null){let n=t.type;if(n&3)return ce$1(t,e);if(n&4)return uc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return br(e,r);{let o=e[t.index];return me$1(o)?uc(-1,o):X(o)}}else{if(n&128)return br(e,t.next);if(n&32)return Bc(t,e)()||X(e[t.index]);{let r=op(e,t);if(r!==null){if(Array.isArray(r))return r[0];return br($e$2(e[J$1]),r)}else return br(e,t.next)}}}return null}function op(e,t){if(t!==null){let r=e[J$1][Q$1],o=t.projection;return r.projection[o]}return null}function uc(e,t){let n=$$1+e+1;if(n<t.length){let r=t[n],o=r[E$2].firstChild;if(o!==null)return br(r,o)}return t[zt]}function qc(e,t,n,r,o,i,s){for(;n!=null;){let a=r[ze$2];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Cn$1(X(c),r),n.flags|=2),!Li$1(n))if(l&8)qc(e,t,n.child,r,o,i,!1),bn$1(t,e,a,o,c,n,i,r);else if(l&32){let u=Bc(n,r),d;for(;d=u();)bn$1(t,e,a,o,d,n,i,r);bn$1(t,e,a,o,c,n,i,r)}else l&16?ip(e,t,r,n,o,i):bn$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Hi$1(e,t,n,r,o,i){e.type===3?Av(n,r,t,o,i):qc(n,r,e.firstChild,t,o,i,!1)}function Av(e,t,n,r,o){let s=n[E$2].firstChild,a=s.next,c=X(n[s.index]),l=X(n[a.index]),u=a.index+1,d=n[u];if(t===1||t===0)r!==null&&(d&&d.hasChildNodes()?Zt$1(e,r,d,o,!0):(Zt$1(e,r,c,o,!0),Zt$1(e,r,l,o,!0)));else if(t===2){if(d||(d=document.createDocumentFragment(),n[u]=d),c&&c.parentNode===d)return;let p=c;for(;p!==null;){let f=p.nextSibling;if(d.appendChild(p),p===l)break;p=f}}}function Ov(e,t,n){let r=t[P];ip(r,0,t,n,np(e,n,t),rp(n.parent||t[Q$1],n,t))}function ip(e,t,n,r,o,i){let s=n[J$1],c=s[Q$1].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];bn$1(t,e,n[ze$2],o,u,r,i,n)}else{let l=c,u=s[W$1];Tf(r)&&(l.flags|=128),qc(e,t,l,u,o,i,!0)}}function kv(e,t,n,r,o,i,s){let a=r[zt];if(a!==X(r)&&bn$1(t,e,n,i,a,o,s),(r[D$1]&4)===0)for(let l=$$1;l<r.length;l++){let u=r[l];Hi$1(u[E$2],u,e,t,i,a)}}function Pv(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf(`-`)===-1?void 0:Ze.DashCase;o==null?e.removeStyle(n,r,i):(typeof o==`string`&&o.endsWith(`!important`)&&(o=o.slice(0,-10),i|=Ze.Important),e.setStyle(n,r,o,i))}}function Zc(e,t,n,r,o,i,s,a,c,l,u){let d=H$2+r,p=d+o,f=Lv(d,p),h=typeof l==`function`?l():l;return f[E$2]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i==`function`?i():i,pipeRegistry:typeof s==`function`?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:u}}function Lv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:le$1);return n}function Fv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Zc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Yc(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[we$2]=o,d[D$1]=r|1228,(l!==null||e&&e[D$1]&2048)&&(d[D$1]|=2048),ma(d),d[W$1]=d[mt$1]=e,d[B$1]=n,d[be$1]=s||e&&e[be$1],d[P]=a||e&&e[P],d[ze$2]=c||e&&e[ze$2]||null,d[Q$1]=i,d[dr$1]=My(),d[Bt$1]=u,d[da]=l,d[J$1]=t.type==2?e[J$1]:d,d}function jv(e,t,n){let r=ce$1(t,e),o=Fv(n),i=e[be$1].rendererFactory,s=Qc(e,Yc(e,o,null,sp(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function sp(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ap(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Qc(e,t){return e[vn$1]?e[ua][ge$1]=t:e[vn$1]=t,e[ua]=t,t}function Vv(e=1){cp(V$2(),v(),Oe$2()+e,!1)}function cp(e,t,n,r){if(!r)if((t[D$1]&3)===3){let i=e.preOrderCheckHooks;i!==null&&pi$1(t,i,n)}else{let i=e.preOrderHooks;i!==null&&hi$1(t,i,0,n)}vt$1(n)}var Lr=(function(e){return e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`,e})(Lr||{});function Xt$1(e,t,n,r){let o=m$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Lr.SignalBased)!==0&&(c=t[i][U$3]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):af(t,c,i,r)}finally{m$1(o)}}function lp(e,t,n,r,o){let i=Oe$2(),s=r&2;try{vt$1(-1),s&&t.length>H$2&&cp(e,t,H$2,!1);L$1(s?x.TemplateUpdateStart:x.TemplateCreateStart,o,n),n(r,o)}finally{vt$1(i);L$1(s?x.TemplateUpdateEnd:x.TemplateCreateEnd,o,n)}}function up(e,t,n){zv(e,t,n),(n.flags&64)===64&&Wv(e,t,n)}function Xc(e,t,n=ce$1){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Hv(e,t,n,r){let i=r.get(Af,Rf)||n===Ce$2.ShadowDom||n===Ce$2.ExperimentalIsolatedShadowDom;return e.selectRootElement(t,i)}function $v(e){return e===`class`?`className`:e===`for`?`htmlFor`:e===`formaction`?`formAction`:e===`innerHtml`?`innerHTML`:e===`readonly`?`readOnly`:e===`tabindex`?`tabIndex`:e}function dp(e,t,n,r,o,i){let s=t[E$2];if(Ui$1(e,s,t,n,r)){Ne$2(e)&&hp(t,e.index);return}e.type&3&&(n=$v(n)),fp(e,t,n,r,o,i)}function fp(e,t,n,r,o,i){if(e.type&3){let s=ce$1(e,t);r=i!=null?i(r,e.value||``,n):r,r=pp(n,s,r),o.setProperty(s,n,r)}else e.type&12}function pp(e,t,n){return e===`src`&&(t.tagName===`IMG`||t.tagName===`VIDEO`)?n==null?``:de(n):n}function hp(e,t){let n=ye$1(t,e);n[D$1]&16||(n[D$1]|=64)}function zv(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ne$2(n)&&jv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Di$1(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Sr(t,e,s,n);if(Cn$1(c,t),i!==null&&Yv(t,s-r,c,a,n,i),xe$2(a)){let l=ye$1(n.index,t);l[B$1]=Sr(t,e,s,n)}}}function Wv(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=rd();try{vt$1(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Xo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Gv(c,l)}}finally{vt$1(-1),Xo(s)}}function Gv(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qv(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Xf(t,i.selectors,!1)&&(r??=[],xe$2(i)?r.unshift(i):r.push(i))}return r}function Zv(e,t,n,r,o,i){let s=ce$1(e,t);r=pp(n,s,r),gp(t[P],s,i,e.value,n,r,o)}function gp(e,t,n,r,o,i,s){if(i==null)s?.(i,r||``,o),e.removeAttribute(t,o,n);else{let a=s==null?ft$1(i):s(i,r||``,o);e.setAttribute(t,o,a,n)}}function Yv(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Xt$1(r,n,c,l)}}function mp(e,t,n,r,o){let i=H$2+n,s=t[E$2],a=o(s,t,e,r,n);t[i]=a,Dn$1(e,!0);let c=e.type===2;return c?(Gf(t[P],a,e),(Gu()===0||zo$1(e))&&Cn$1(a,t),qu()):Cn$1(a,t),ni$1()&&(!c||!Li$1(e))&&Gc(s,t,a,e),e}function yp(e){let t=e;return Sa()?Ca():(t=t.parent,Dn$1(t,!1)),t}function Qv(e,t){let n=e[ze$2];if(!n)return;let r;try{r=n.get(It$1,null)}catch{r=null}r?.(t)}function Ui$1(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];Xt$1(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Xt$1(u,l,r,o),a=!0}return a}function Xv(e,t,n,r,o,i){let s=null,a=null,c=null,l=!1,u=e.directiveToIndex.get(r.type);if(typeof u==`number`?s=u:[s,a,c]=u,a!==null&&c!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],w=d[p+1];Xt$1(h,n[f],w,i),l=!0}else if(f>c)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(Xt$1(r,n[s],o,i),l=!0),l}function Kv(e,t){let n=ye$1(t,e),r=n[E$2];Jv(r,n);let o=n[we$2];o!==null&&n[Bt$1]===null&&(n[Bt$1]=Of(o,n[ze$2])),L$1(x.ComponentStart);try{Kc(r,n,n[B$1])}finally{L$1(x.ComponentEnd,n[B$1])}}function Jv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Kc(e,t,n){Jo(t);try{let r=e.viewQuery;r!==null&&Ja(1,r,n);let o=e.template;o!==null&&lp(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[_e$1]?.finishViewCreation(e),e.staticContentQueries&&kf(e,t),e.staticViewQueries&&Ja(2,e.viewQuery,n);let i=e.components;i!==null&&eE(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[D$1]&=-5,ei$1()}}function eE(e,t){for(let n=0;n<t.length;n++)Kv(e,t[n])}function Fr(e,t,n,r){let o=m$1(null);try{let i=t.tView,c=Yc(e,i,n,e[D$1]&4096?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[yt$1]=e[t.index];let u=e[_e$1];return u!==null&&(c[_e$1]=u.createEmbeddedView(i)),Kc(i,c,n),c}finally{m$1(o)}}function Mn$1(e,t){return!t||t.firstChild===null||Tf(e)}function Cr(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=X(t[i.index]),c=X(t[s.index]),l=a;for(;l!==null&&(r.push(l),l!==c);)l=l.nextSibling;return r}for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];if(i!==null)if(me$1(i)){let a=i[zt];a!==i[we$2]&&r.push(X(i)),i[D$1]&4||vp(i,r),r.push(a)}else r.push(X(i));let s=n.type;if(s&8)Cr(e,t,n.child,r);else if(s&32){let a=Bc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=op(t,n);if(Array.isArray(a))r.push(...a);else{let c=$e$2(t[J$1]);Cr(c[E$2],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function vp(e,t){for(let n=$$1;n<e.length;n++){let r=e[n],o=r[E$2].firstChild;o!==null&&Cr(r[E$2],r,o,t)}}function Ep(e){if(e[$o$1]!==null){for(let t of e[$o$1])t.impl.addSequence(t);e[$o$1].length=0}}var Ip=[];function tE(e){return e[ue$1]??nE(e)}function nE(e){let t=Ip.pop()??Object.create(oE);return t.lView=e,t}function rE(e){e.lView[ue$1]!==e&&(e.lView=null,Ip.push(e))}var oE=l(k$1({},it$1),{consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:e=>{In$1(e.lView)},consumerOnSignalRead(){this.lView[ue$1]=this}});function iE(e){let t=e[ue$1]??Object.create(sE);return t.lView=e,t}var sE=l(k$1({},it$1),{consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:e=>{let t=$e$2(e.lView);for(;t&&!Dp(t[E$2]);)t=$e$2(t);t&&ya(t)},consumerOnSignalRead(){this.lView[ue$1]=this}});function Dp(e){return e.type!==2}function wp(e){if(e[Be$2]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Be$2])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[Be$2]===null))return;t=n&&!!(e[D$1]&8192)}}var aE=100;function bp(e,t=0){let r=e[be$1].rendererFactory;r.begin?.();try{cE(e,t)}finally{r.end?.()}}function cE(e,t){let n=Ma();try{tr$1(!0),dc(e,t);let r=0;for(;hr$1(e);){if(r===aE)throw new y$1(103,!1);r++,dc(e,1)}}finally{tr$1(n)}}function lE(e,t,n,r){if(Gt$1(t))return;let o=t[D$1];Jo(t);let a=!0,c=null,l=null;Dp(e)?(l=tE(t),c=at$1(l)):To()===null?(a=!1,l=iE(t),c=at$1(l)):t[ue$1]&&(Ot(t[ue$1]),t[ue$1]=null);try{ma(t),ed(e.bindingStartIndex),n!==null&&lp(e,t,n,2,r);let u=(o&3)===3;if(u){let f=e.preOrderCheckHooks;f!==null&&pi$1(t,f,null)}else{let f=e.preOrderHooks;f!==null&&hi$1(t,f,0,null),Fa(t,0)}if(uE(t),wp(t),Tp(t,0),e.contentQueries!==null&&kf(e,t),true)if(u){let f=e.contentCheckHooks;f!==null&&pi$1(t,f)}else{let f=e.contentHooks;f!==null&&hi$1(t,f,1),Fa(t,1)}fE(e,t);let d=e.components;d!==null&&Cp(t,d,0);let p=e.viewQuery;if(p!==null&&Ja(2,p,r),true)if(u){let f=e.viewCheckHooks;f!==null&&pi$1(t,f)}else{let f=e.viewHooks;f!==null&&hi$1(t,f,2),Fa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Bo]){for(let f of t[Bo])f();t[Bo]=null}Ep(t),t[D$1]&=-73}catch(u){let d=!1,p=u,f=t;for(;f!==null;){if(me$1(f)){f=f[W$1];continue}let h=f[fr$1];if(h)try{let w=t[J$1][B$1],N={declarationInstance:w,declarationType:w?.constructor,caughtBy:h},R=m$1(null);try{h(hd(p),N)}finally{m$1(R)}d=!0;break}catch(w){p=w}f=f[W$1]}if(!d)throw In$1(t),p}finally{l!==null&&(At$1(l,c),a&&rE(l)),ei$1()}}function Tp(e,t){for(let n=Cf(e);n!==null;n=Mf(n))for(let r=$$1;r<n.length;r++){let o=n[r];Sp(o,t)}}function uE(e){for(let t=Cf(e);t!==null;t=Mf(t)){if(!(t[D$1]&2))continue;let n=t[Wt$1];for(let r=0;r<n.length;r++){let o=n[r];ya(o)}}}function dE(e,t,n){L$1(x.ComponentStart);let r=ye$1(t,e);try{Sp(r,n)}finally{L$1(x.ComponentEnd,r[B$1])}}function Sp(e,t){Zo(e)&&dc(e,t)}function dc(e,t){let r=e[E$2],o=e[D$1],i=e[ue$1],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&qn$1(i)),s||=!1,i&&(i.dirty=!1),e[D$1]&=-9217,s)lE(r,e,r.template,e[B$1]);else if(o&8192){let a=m$1(null);try{wp(e),Tp(e,1);let c=r.components;c!==null&&Cp(e,c,1),Ep(e)}finally{m$1(a)}}}function Cp(e,t,n){for(let r=0;r<t.length;r++)dE(e,t[r],n)}function fE(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)vt$1(~o);else{let i=o,s=n[++r],a=n[++r];nd(s,i);let c=t[i];L$1(x.HostBindingsUpdateStart,c);try{a(2,c)}finally{L$1(x.HostBindingsUpdateEnd,c)}}}}finally{vt$1(-1)}}function Jc(e,t){let n=Ma()?64:1088;for(e[be$1].changeDetectionScheduler?.notify(t);e;){e[D$1]|=n;let r=$e$2(e);if(En$1(e)&&!r)return e;e=r}return null}function Mp(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function _p(e,t){let n=$$1+t;if(n<e.length)return e[n]}function jr(e,t,n,r=!0){let o=t[E$2];if(pE(o,t,e,n),r){let s=uc(n,e),a=t[P],c=a.parentNode(e[zt]);c!==null&&Sv(o,e[Q$1],a,t,c,s)}let i=t[Bt$1];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Np(e,t){let n=Mr(e,t);return n!==void 0&&Vi$1(n[E$2],n),n}function Mr(e,t){if(e.length<=$$1)return;let n=$$1+t,r=e[n];if(r){let o=r[yt$1];o!==null&&o!==e&&Wc(o,r),t>0&&(e[n-1][ge$1]=r[ge$1]);let i=cr$1(e,$$1+t);Tv(r[E$2],r);let s=i[_e$1];s!==null&&s.detachView(i[E$2]),r[W$1]=null,r[ge$1]=null,r[D$1]&=-129}return r}function pE(e,t,n,r){let o=$$1+r,i=n.length;r>0&&(n[o-1][ge$1]=t),r<i-$$1?(t[ge$1]=n[o],ia(n,$$1+r,t)):(n.push(t),t[ge$1]=null),t[W$1]=n;let s=t[yt$1];s!==null&&n!==s&&xp(s,t);let a=t[_e$1];a!==null&&a.insertView(e),Yo(t),t[D$1]|=128}function xp(e,t){let n=e[Wt$1],r=t[W$1];if(We$1(r))e[D$1]|=2;else{let o=r[W$1][J$1];t[J$1]!==o&&(e[D$1]|=2)}n===null?e[Wt$1]=[t]:n.push(t)}var Dt$1=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[E$2];return Cr(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[B$1]}set context(t){this._lView[B$1]=t}get destroyed(){return Gt$1(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[W$1];if(me$1(t)){let n=t[pr$1],r=n?n.indexOf(this):-1;r>-1&&(Mr(t,r),cr$1(n,r))}this._attachedToViewContainer=!1}Vi$1(this._lView[E$2],this._lView)}onDestroy(t){Qo(this._lView,t)}markForCheck(){Jc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[D$1]&=-129}reattach(){Yo(this._lView),this._lView[D$1]|=128}detectChanges(){this._lView[D$1]|=1024,bp(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y$1(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=En$1(this._lView),n=this._lView[yt$1];n!==null&&!t&&Wc(n,this._lView),tp(this._lView[E$2],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y$1(902,!1);this._appRef=t;let n=En$1(this._lView),r=this._lView[yt$1];r!==null&&!n&&xp(r,this._lView),Yo(this._lView)}};var _r=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=hE;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){return new Dt$1(Fr(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o}))}}return e})();function hE(){return el(Z$2(),v())}function el(e,t){return e.type&4?new _r(t,e,An$1(e,t)):null}function Vr(e,t,n,r,o){let i=e.data[t];if(i===null)i=gE(e,t,n,r,o),td()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Xu();i.injectorIndex=s===null?-1:s.injectorIndex}return Dn$1(i,!0),i}function gE(e,t,n,r,o){let i=Ta(),s=Sa(),a=s?i:i&&i.parent,c=e.data[t]=yE(e,a,n,t,r,o);return mE(e,c,i,s),c}function mE(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function yE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Da()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Ra(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function vE(e){let t=e[fa]??[],r=e[W$1][P],o=[];for(let i of t)i.data[xf]!==void 0?o.push(i):EE(i,r);e[fa]=o}function EE(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Nf];for(;n<o;){let i=r.nextSibling;Wf(t,r,!1),r=i,n++}}}var IE=()=>null;var DE=()=>null;function bi$1(e,t){return IE(e,t)}function Rp(e,t,n){return DE(e,t,n)}var Ap=class{};var Kt$1=class{};var fc=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>wE()};function wE(){let e=v(),n=ye$1(Z$2().index,e);return(We$1(n)?n:e)[P]}var Op=(()=>{class e{static ɵprov=M$1({token:e,providedIn:`root`,factory:()=>null})}return e})();function kp(e){return e.debugInfo?.className||e.type.name||null}var mi$1={};var Ti$1=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,mi$1,r);return o!==mi$1||n===mi$1?o:this.parentInjector.get(t,n,r)}};function tl(e,t,n){return e[t]=n}function bE(e,t){return e[t]}function fe$1(e,t,n){if(n===le$1)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Pp(e,t,n,r){let o=fe$1(e,t,n);return fe$1(e,t+1,r)||o}function Yt$1(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Ny(o,i);Jc(Ne$2(e)?ye$1(e.index,t):t,5);let a=t[B$1],c=Ud(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Ud(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Ud(e,t,n,r){let o=m$1(null);try{return L$1(x.OutputStart,t,n),n(r)!==!1}catch(i){return Qv(e,i),!1}finally{L$1(x.OutputEnd,t,n),m$1(o)}}function nl(e,t,n,r,o,i,s,a){let c=zo$1(e),l=!1,u=null;if(!r&&c&&(u=SE(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=ce$1(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!TE(i))Lp(r?w=>r(X(w[e.index])):e.index,t,n,i,a,f,!1)}return l}function TE(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function SE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[yn$1],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s==`string`&&(i+=2)}return null}function Lp(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ea(t):null,c=va(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Bd(e,t,n,r,o){let i=null,s=null,a=null,c=!1,l=e.directiveToIndex.get(n.type);if(typeof l==`number`?i=l:[i,s,a]=l,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let u=e.hostDirectiveOutputs[r];for(let d=0;d<u.length;d+=2){let p=u[d];if(p>=s&&p<=a)c=!0,Si$1(e,t,p,u[d+1],r,o);else if(p>a)break}}return Object.hasOwn(n.outputs,r)&&(c=!0,Si$1(e,t,i,r,r,o)),c}function Si$1(e,t,n,r,o,i){let s=t[n],a=t[E$2],d=s[a.data[n].outputs[r]].subscribe(i);Lp(e.index,a,t,o,i,d,!0)}function CE(){ME()}function ME(){let e=v(),t=V$2(),n=Z$2();if(t.firstCreatePass&&xE(t,n),n.controlDirectiveIndex===-1)return;en$1(`NgSignalForms`);let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Ci$1(e,t,n))}function _E(){NE()}function NE(){let e=v(),t=V$2(),n=Et$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Ci$1(e,t,n))}var Ci$1=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return ce$1(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Bd(this.tNode,this.lView,r,t,Yt$1(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?`valueChange`:`checkedChange`,r=this.tView.data[this.tNode.customControlIndex];Bd(this.tNode,this.lView,r,n,Yt$1(this.tNode,this.lView,t))}listenToDom(t,n){nl(this.tNode,this.tView,this.lView,void 0,this.lView[P],t,n,Yt$1(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let o=this.tNode.inputs?.[t],i=this.tNode.hostDirectiveInputs?.[t];if(!o&&!i)return!1;let s=!1;if(o)for(let a of o){if(a===this.tNode.controlDirectiveIndex)continue;let c=this.lView[a],l=this.tView.data[a];(!r||r(zd(c,l,t)))&&(Xt$1(l,c,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let c=i[a];if(c===this.tNode.controlDirectiveIndex)continue;let l=this.lView[c],u=i[a+1],d=this.tView.data[c];(!r||r(zd(l,d,t)))&&(Xt$1(d,l,u,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?`value`:`checked`;Xv(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!=`function`){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=$d(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i==`function`)continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=$d(i.directive);s!==null&&r.push(...s)}}}return n}};function $d(e){return typeof e==`function`&&`ɵdir`in e?e.ɵdir.hostDirectives??null:null}function zd(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Lr.SignalBased)!==0){let s=e[r][U$3];return s.value===Rn$1?void 0:s.value}return e[r]}function xE(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}RE(e,t)}function RE(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Wd(r,`value`)){t.flags|=1024,t.customControlIndex=n;return}if(Wd(r,`checked`)){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+`Change`];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2)if(c===s[l])for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,!0}}return!1};if(n(`value`,1024)||n(`checked`,2048))return}}function Wd(e,t){return AE(e,t)&&OE(e,t+`Change`)}function AE(e,t){return t in e.inputs}function OE(e,t){return t in e.outputs}var pc=Symbol(`BINDING`);var tn$1=new b$1(``);function Mi$1(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a==`number`)i=a;else if(i==1)o=Ks(o,a);else if(i==2){let c=a,l=t[++s];r=Ks(r,c+`: `+l+`;`)}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Hr(e,t=0){let n=v();if(n===null)return T(e,t);return vf(Z$2(),n,Y$2(e),t)}function kE(){throw new Error(`invalid`)}function PE(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}jE(e,t,n,a,i,c,l)}i!==null&&r!==null&&LE(n,r,i)}function LE(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new y$1(-301,!1);r.push(t[o],i)}}function FE(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function jE(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&xe$2(f)&&(c=f,FE(e,n,p)),Ya(Di$1(n,t),e,f.type)}zE(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=ap(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Sn$1(n.mergedAttrs,f.hostAttrs),HE(e,n,t,d,f),$E(d,f,o),s!==null&&s.has(f)){let[w,I]=s.get(f);n.directiveToIndex.set(f.type,[d,w+n.directiveStart,I+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}VE(e,n,i)}function VE(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Gd(0,t,o,r),Gd(1,t,o,r),Zd(t,r,!1);else{let i=n.get(o);qd(0,t,i,r),qd(1,t,i,r),Zd(t,r,!0)}}}function Gd(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Fp(t,i)}}function qd(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Fp(t,s)}}function Fp(e,t){t===`class`?e.flags|=8:t===`style`&&(e.flags|=16)}function Zd(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Uc(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c==`number`)break;if(!n&&Object.hasOwn(o,c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&Object.hasOwn(i,c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function HE(e,t,n,r,o){e.data[r]=o;let s=new Qt$1(o.factory||(o.factory=lt$1(o.type,!0)),xe$2(o),Hr,null);e.blueprint[r]=s,n[r]=s,UE(e,t,r,ap(e,n,o.hostVars,le$1),o)}function UE(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;BE(s)!=a&&s.push(a),s.push(n,r,i)}}function BE(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function $E(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;xe$2(t)&&(n[``]=e)}}function zE(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function jp(e,t,n,r,o,i,s,a){let c=t[E$2],l=c.consts,d=Vr(c,e,n,r,Re$2(l,s));return i&&PE(c,t,d,Re$2(l,a),o),d.mergedAttrs=Sn$1(d.mergedAttrs,d.attrs),d.attrs!==null&&Mi$1(d,d.attrs,!1),d.mergedAttrs!==null&&Mi$1(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Vp(e,t){ly(e,t),pa(t)&&e.queries.elementEnd(t)}function WE(e,t,n,r,o,i){let s=t.consts,c=Vr(t,e,n,r,Re$2(s,o));if(c.mergedAttrs=Sn$1(c.mergedAttrs,c.attrs),i!=null){let l=Re$2(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Mi$1(c,c.attrs,!1),c.mergedAttrs!==null&&Mi$1(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}var Hp=typeof ShadowRoot<`u`;var GE=typeof Document<`u`;function qE(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Lr.SignalBased)!==0};return o&&(i.transform=o),i})}function ZE(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function YE(e,t,n){let r=t instanceof ae$1?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ti$1(n,r):n}function QE(e){let t=e.get(Kt$1,null);if(t===null)throw new y$1(407,!1);return{rendererFactory:t,sanitizer:e.get(Op,null),changeDetectionScheduler:e.get(ut$1,null),ngReflect:!1,tracingService:e.get(wt$1,null,{optional:!0})}}function XE(e,t,n){let r=Up(e);return $f(t,r,r===`svg`?jt:r===`math`?Wo:n)}function KE(e){if((e&&`localName`in e&&typeof e.localName==`string`?e.localName:e?.tagName)?.toLowerCase()===`script`)throw new y$1(905,!1)}function Up(e){return(e.selectors[0][0]||`div`).toLowerCase()}var _n$1=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=qE(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=ZE(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=yv(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a,c){L$1(x.DynamicComponentStart);let l=m$1(null);try{let u=this.componentDef,d=YE(u,o||this.ngModule,t),p=QE(d),f=p.tracingService;return f&&f.componentCreate?f.componentCreate(kp(u),()=>this.createComponentRef(p,d,n,r,i,s,a,c)):this.createComponentRef(p,d,n,r,i,s,a,c)}finally{m$1(l)}}createComponentRef(t,n,r,o,i,s,a,c){let l=this.componentDef,u=JE(o,l,s,i,c),d=t.rendererFactory.createRenderer(null,l),p=o?Hv(d,o,l.encapsulation,n):XE(l,d,a??null);KE(p);let f=n.get(tn$1,null),h=eI(p,()=>n.get(z$2,null)??Oc());f&&f.addHost(h);let w=s?.some(Yd)||i?.some(R=>typeof R!=`function`&&R.bindings.some(Yd)),I=Yc(null,u,null,512|sp(l),null,null,t,d,n,null,Of(p,n,!0));f&&Hp&&h instanceof ShadowRoot&&Qo(I,()=>{f.removeHost(h)}),I[H$2]=p,Jo(I);let N=null;try{let R=jp(H$2,I,2,`#host`,()=>u.directiveRegistry,!0,0);Gf(d,p,R),Cn$1(p,I),up(u,I,R),Pf(u,R,I),Vp(u,R),r!==void 0&&nI(R,this.ngContentSelectors,r),N=ye$1(R.index,I),I[B$1]=N[B$1],Kc(u,I,null)}catch(R){throw N!==null&&Xa(N),Xa(I),R}finally{L$1(x.DynamicComponentEnd),ei$1()}return new _i$1(this.componentType,I,!!w)}};function JE(e,t,n,r,o){let i=e?[`ng-version`,`22.2.2`]:vv(t.selectors[0]),s=null,a=null,c=0;if(n)for(let d of n)c+=d[pc].requiredVars,d.create&&(d.targetIdx=0,(s??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(r)for(let d=0;d<r.length;d++){let p=r[d];if(typeof p!=`function`)for(let f of p.bindings){c+=f[pc].requiredVars;let h=d+1;f.create&&(f.targetIdx=h,(s??=[]).push(f)),f.update&&(f.targetIdx=h,(a??=[]).push(f))}}let l=[t];if(r)for(let d of r){let f=Lo$1(typeof d==`function`?d:d.type);l.push(f)}return Zc(0,null,tI(s,a),1,c,l,null,null,null,[i],null)}function eI(e,t){let n=e.getRootNode?.();return GE&&n instanceof Document?n.head:n&&Hp&&n instanceof ShadowRoot?n:t().head}function tI(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Yd(e){let t=e[pc].kind;return t===`input`||t===`twoWay`}var _i$1=class extends Ap{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Go(n[E$2],H$2),this.location=An$1(this._tNode,n),this.instance=ye$1(this._tNode.index,n)[B$1],this.hostView=this.changeDetectorRef=new Dt$1(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;Ui$1(r,o[E$2],o,t,n);this.previousInputValues.set(t,n);Jc(ye$1(r.index,o),1)}get injector(){return new Ge(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function nI(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Bi$1=(()=>{class e{static __NG_ELEMENT_ID__=rI}return e})();function rI(){return Bp(Z$2(),v())}var hc=class e extends Bi$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return An$1(this._hostTNode,this._hostLView)}get injector(){return new Ge(this._hostTNode,this._hostLView)}get parentInjector(){let t=xc(this._hostTNode,this._hostLView);if(ff(t)){let n=Ei$1(t,this._hostLView),r=vi$1(t),o=n[E$2].data[r+8];return new Ge(o,n)}else return new Ge(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Qd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$$1}createEmbeddedView(t,n,r){let o,i,s;typeof r==`number`?o=r:r!=null&&(o=r.index,i=r.injector,s=r.onError);let a=bi$1(this._lContainer,t.ssrId),c=t.createEmbeddedViewImpl(n||{},i,a);return s&&(c._lView[fr$1]=s),this.insertImpl(c,o,Mn$1(this._hostTNode,a)),c}createComponent(t,n,r,o,i,s,a){let c,l,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings,l=u.onError;let d=new _n$1(dt$1(t)),p=r||this.parentInjector;if(!i&&d.ngModule==null){let R=this.parentInjector.get(ae$1,null);R&&(i=R)}let f=dt$1(d.componentType??{}),h=bi$1(this._lContainer,f?.id??null),w=h?.firstChild??null,I=d.create(p,o,w,i,s,a,this._getHostElementNamespace());return l&&(I.hostView._lView[fr$1]=l),this.insertImpl(I.hostView,c,Mn$1(this._hostTNode,h)),I}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[Q$1];return t!==null&&t.type&2&&typeof t.value==`string`&&t.value.toLowerCase()===`foreignobject`?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Bu(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[W$1],l=new e(c,c[Q$1],c[W$1]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return jr(s,o,i,r),t.attachToViewContainerRef(),ia(Ha(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Qd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Mr(this._lContainer,n);r&&(cr$1(Ha(this._lContainer),n),Vi$1(r[E$2],r))}detach(t){let n=this._adjustIndex(t,-1),r=Mr(this._lContainer,n);return r&&cr$1(Ha(this._lContainer),n)!=null?new Dt$1(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Qd(e){return e[pr$1]}function Ha(e){return e[pr$1]||(e[pr$1]=[])}function Bp(e,t){let n,r=t[e.index];return me$1(r)?n=r:(n=Mp(r,t,null,e),t[e.index]=n,Qc(t,n)),iI(n,t,e,r),new hc(n,e,t)}function oI(e,t){let n=e[P],r=n.createComment(``),o=ce$1(t,e);return Zt$1(n,n.parentNode(o),r,n.nextSibling(o),!1),r}var iI=cI;var sI=()=>!1;function aI(e,t,n){return sI(e,t,n)}function cI(e,t,n,r){if(e[zt])return;let o;n.type&8?o=X(r):o=oI(t,n),e[zt]=o}var gc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}};var mc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)ol(t,n).matches!==null&&this.queries[n].setDirty()}};var Ni$1=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t==`string`?this.predicate=gI(t):this.predicate=t}};var yc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}};var vc=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,lI(n,i)),this.matchTNodeWithReadOption(t,n,gi$1(n,t,i,!1,!1))}else r===_r?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,gi$1(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Or||o===Bi$1||o===Ie$1||o===_r&&n.type&4)this.addMatch(n.index,-2);else{let i=gi$1(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function lI(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function uI(e,t){return e.type&11?An$1(e,t):e.type&4?el(e,t):null}function dI(e,t,n,r){return n===-1?uI(t,e):n===-2?fI(e,t,r):Sr(e,e[E$2],n,t)}function fI(e,t,n){if(n===Or)return An$1(t,e);if(n===_r)return el(t,e);if(n===Bi$1)return Bp(t,e);if(n===Ie$1)return new Ge(t,e)}function $p(e,t,n,r){let o=t[_e$1].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(dI(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Ec(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=$p(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=$$1;d<u.length;d++){let p=u[d];p[yt$1]===p[W$1]&&Ec(p[E$2],p,l,r)}if(u[Wt$1]!==null){let d=u[Wt$1];for(let p=0;p<d.length;p++){let f=d[p];Ec(f[E$2],f,l,r)}}}}}return r}function rl(e,t){return e[_e$1].queries[t].queryList}function zp(e,t,n){let r=new wi$1((n&4)===4);return Wu(e,t,r,r.destroy),(t[_e$1]??=new mc).queries.push(new gc(r))-1}function pI(e,t,n){let r=V$2();return r.firstCreatePass&&(Wp(r,new Ni$1(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),zp(r,v(),t)}function hI(e,t,n,r){let o=V$2();if(o.firstCreatePass){let i=Z$2();Wp(o,new Ni$1(t,n,r),i.index),mI(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return zp(o,v(),n)}function gI(e){return e.split(`,`).map(t=>t.trim())}function Wp(e,t,n){e.queries===null&&(e.queries=new yc),e.queries.track(new vc(t,n))}function mI(e,t){let n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}function ol(e,t){return e.queries.getByIndex(t)}function Gp(e,t){let n=e[E$2],r=ol(n,t);return r.crossesNgTemplate?Ec(n,e,t,[]):$p(n,e,r,t)}function qp(e,t,n){let r,o=Qn$1(()=>{r._dirtyCounter();let i=vI(r,e);if(t&&i===void 0)throw new y$1(-951,!1);return i});return r=o[U$3],r._dirtyCounter=Te$2(0),r._flatValue=void 0,o}function Zp(e){return qp(!0,!1,e)}function Yp(e){return qp(!0,!0,e)}function yI(e,t){let n=e[U$3];n._lView=v(),n._queryIndex=t,n._queryList=rl(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function vI(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[D$1]&4)return t?void 0:se$1;let o=rl(n,r),i=Gp(n,r);return o.reset(i,bf),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function il(e){return!!e&&typeof e.then==`function`}function Qp(e){return!!e&&typeof e.subscribe==`function`}var Nn$1=class{};var Xp=class{};var xi$1=class extends Nn$1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=wu(t);this._bootstrapComponents=sv(i.bootstrap),this._r3Injector=Aa(t,n,[{provide:Nn$1,useValue:this},...r],or$1(t),new Set([`environment`])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}};var Ri$1=class extends Xp{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new xi$1(this.moduleType,t,[])}};var Nr=class extends Nn$1{injector;instance=null;constructor(t){super();let n=new Ft([...t.providers,{provide:Nn$1,useValue:this}],t.parent||ur$1(),t.debugName,new Set([`environment`]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Kp(e,t,n=null){return new Nr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var EI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=aa(!1,n.type),o=r.length>0?Kp([r],this._injector,``):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=M$1({token:e,providedIn:`environment`,factory:()=>new e(T(ae$1))})}return e})();function sl(e){return Ar(()=>{let t=Jp(e),n=l(k$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Rc.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(EI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ce$2.Emulated,styles:e.styles||se$1,_:null,schemas:e.schemas||null,tView:null,id:``});t.standalone&&en$1(`NgStandalone`),eh(n);let r=e.dependencies;return n.directiveDefs=Xd(r,II),n.pipeDefs=Xd(r,bu),n.id=TI(n),n})}function II(e){return dt$1(e)||Lo$1(e)}function al(e){return Ar(()=>({type:e.type,bootstrap:e.bootstrap||se$1,declarations:e.declarations||se$1,imports:e.imports||se$1,exports:e.exports||se$1,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function DI(e,t){if(e==null)return ht$1;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Lr.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function wI(e){if(e==null)return ht$1;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function bI(e){return Ar(()=>{let t=Jp(e);return eh(t),t})}function cl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jp(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||ht$1,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||se$1,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:DI(e.inputs,t),outputs:wI(e.outputs),debugInfo:null}}function eh(e){e.features?.forEach(t=>t(e))}function Xd(e,t){return e?()=>{let n=typeof e==`function`?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function TI(e){let t=0,n=typeof e.consts==`function`?``:e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join(`|`))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,`c`+t}var th=new b$1(``);var ll=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g$1(th,{optional:!0})??[];injector=g$1(Ie$1);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=mn$1(this.injector,o);if(il(i))n.push(i);else if(Qp(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();function SI(e){return t=>{t.controlDef={create:(n,r)=>{n?.ɵngControlCreate(r)},update:(n,r)=>{n?.ɵngControlUpdate?.(r)},passThroughInput:e}}}function CI(e){return Object.getPrototypeOf(e.prototype).constructor}function nh(e){let t=CI(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,sr$1)?t[sr$1]:void 0,s=Object.hasOwn(t,ar$1)?t[ar$1]:void 0;if(xe$2(e))o=i??s;else{if(i)throw new y$1(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=Ua(e.inputs),c.declaredInputs=Ua(e.declaredInputs),c.outputs=Ua(e.outputs);let l=o.hostBindings;l&&RI(e,l);let u=o.viewQuery,d=o.contentQueries;if(u&&NI(e,u),d&&xI(e,d),MI(e,o),Du(e.outputs,o.outputs),xe$2(o)&&o.data.animation){let p=e.data;p.animation=(p.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let l=a[c];l&&l.ngInherit&&l(e),l===nh&&(n=!1)}}t=Object.getPrototypeOf(t)}_I(r)}function MI(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function _I(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Sn$1(o.hostAttrs,n=Sn$1(n,o.hostAttrs))}}function Ua(e){return e===ht$1?{}:e===se$1?[]:e}function NI(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function xI(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function RI(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function AI(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Sn$1(e.mergedAttrs,e.attrs);let u=e.tView=Zc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Dn$1(e,!1);let c=OI(n,t,e,r);ni$1()&&Gc(n,t,c,e),Cn$1(c,t);let l=Mp(c,t,c,e);t[r+H$2]=l,Qc(t,l),aI(l,e,t)}function xr(e,t,n,r,o,i,s,a,c,l,u){let d=n+H$2,p;if(t.firstCreatePass){if(p=Vr(t,d,4,s||null,a||null),l!=null){let f=Re$2(t.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=t.data[d];return AI(p,e,t,n,r,o,i,c),l!=null&&Xc(e,p,u),p}var OI=kI;function kI(e,t,n,r){return ri$1(!0),t[P].createComment(``)}var rh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`platform`})}return e})();var ul=new b$1(``);var dl=new b$1(``);function oh(){Ns(e=>{throw new y$1(-600,``)})}var PI=10;var Ur=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g$1(It$1);afterRenderManager=g$1(Jf);zonelessEnabled=g$1(Dr);rootEffectScheduler=g$1(si$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new oe$1;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$1(qt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(K$2(n=>!n))}constructor(){g$1(wt$1,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g$1(ae$1);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ie$1.NULL){return this._injector.get(re).run(()=>{if(L$1(x.BootstrapComponentStart),!this._injector.get(ll).done)throw new y$1(405,``);let a=dt$1(n),c=this._injector.get(Nn$1),l=new _n$1(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=LI(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),w=h.location.nativeElement,I=h.injector.get(ul,null);return I?.registerApplication(w),h.onDestroy(()=>{this.detachView(h.hostView),Tr(this.components,h),I?.unregisterApplication(w)}),this._loadComponent(h),L$1(x.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){L$1(x.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(zc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw L$1(x.ChangeDetectionEnd),new y$1(101,!1);let n=m$1(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,m$1(n),this.afterTick.next(),L$1(x.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Kt$1,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<PI;){L$1(x.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{L$1(x.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!hr$1(o))continue;bp(o,r&&!this.zonelessEnabled?0:1),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>hr$1(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Tr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(dl,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Tr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y$1(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();function LI(e){return e===void 0||typeof e==`string`||e instanceof Element?{hostElement:e}:e}function Tr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ih(e,t){let n=v();if(fe$1(n,Ae$1(),t)){let o=V$2(),i=Et$1();if(Ui$1(i,o,n,e,t))Ne$2(i)&&hp(n,i.index);else{let a=ce$1(i,n);gp(n[P],a,null,i.value,e,t,null)}}return ih}function $i$1(e,t,n,r){let o=v();if(fe$1(o,Ae$1(),t)){V$2();Zv(Et$1(),o,e,t,n,r)}return $i$1}var Ic=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Ba(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function FI(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){m$1(r);let l=t.length-1;for(m$1(null);s<=a&&s<=l;){let u=e.at(s),d=t[s],p=Ba(s,u,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[l],w=Ba(a,f,l,h,n);if(w!==0){w<0&&e.updateValue(a,h),a--,l--;continue}let I=n(s,u),N=n(a,f),R=n(s,d);if(Object.is(R,N)){let Je=n(l,h);Object.is(Je,I)?(e.swap(s,a),e.updateValue(a,h),l--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ai$1,i??=Jd(e,s,a,n),Dc(e,o,s,R))e.updateValue(s,d),s++,a++;else if(i.has(R))o.set(I,e.detach(s)),a--;else{let Je=e.create(s,t[s]);e.attach(s,Je),s++,a++}}for(;s<=l;)Kd(e,o,n,s,t[s]),s++}else if(t!=null){m$1(r);let l=t[Symbol.iterator]();m$1(null);let u=l.next();for(;!u.done&&s<=a;){let d=e.at(s),p=u.value,f=Ba(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,u=l.next();else{o??=new Ai$1,i??=Jd(e,s,a,n);let h=n(s,p);if(Dc(e,o,s,h))e.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,u=l.next();else{let w=n(s,d);o.set(w,e.detach(s)),a--}}}for(;!u.done;)Kd(e,o,n,e.length,u.value),u=l.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l)})}function Dc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Kd(e,t,n,r,o){if(Dc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Jd(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ai$1=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function jI(e,t,n,r,o,i,s,a){en$1(`NgControlFlow`);let c=v(),l=V$2();return xr(c,l,e,t,n,r,o,Re$2(l.consts,i),256,s,a),fl}function fl(e,t,n,r,o,i,s,a){return en$1(`NgControlFlow`),VI(e,t,n,r,o,i,s,a),fl}function VI(e,t,n,r,o,i,s,a){let c=v(),l=V$2();xr(c,l,e,t,n,r,o,Re$2(l.consts,i),512,s,a)}function HI(e,t){en$1(`NgControlFlow`);let n=v(),r=Ae$1(),o=n[r]!==le$1?n[r]:-1,i=o!==-1?Oi$1(n,H$2+o):void 0,s=0;if(fe$1(n,r,e)){let a=m$1(null);try{if(i!==void 0&&Np(i,s),e!==-1){let c=H$2+e,l=Oi$1(n,c),u=Sc(n[E$2],c),d=Rp(l,u,n);jr(l,Fr(n,u,t,{dehydratedView:d}),s,Mn$1(u,d))}}finally{m$1(a)}}else if(i!==void 0){let a=_p(i,s);a!==void 0&&(a[B$1]=t)}}var wc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-$$1}};function UI(e){return e}function BI(e,t){return t}var bc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function $I(e,t,n,r,o,i,s,a,c,l,u,d,p){en$1(`NgControlFlow`);let f=v(),h=V$2(),w=c!==void 0,I=v(),R=new bc(w,a?s.bind(I[J$1][B$1]):s);I[H$2+e]=R,xr(f,h,e+1,t,n,r,o,Re$2(h.consts,i),256),w&&xr(f,h,e+2,c,l,u,d,Re$2(h.consts,p),512)}var Tc=class extends Ic{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-$$1}at(t){return this.getLView(t)[B$1].$implicit}attach(t,n){let r=n[Bt$1];this.needsIndexUpdate||=t!==this.length,jr(this.lContainer,n,t,Mn$1(this.templateTNode,r)),WI(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,GI(this.lContainer,t),qI(this.lContainer,t)}create(t,n){let r=bi$1(this.lContainer,this.templateTNode.tView.ssrId);return Fr(this.hostLView,this.templateTNode,new wc(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Vi$1(t[E$2],t)}updateValue(t,n){this.getLView(t)[B$1].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[B$1].$index=t}getLView(t){return ZI(this.lContainer,t)}};function zI(e){let t=m$1(null),n=Oe$2();try{let r=v(),o=r[E$2],i=r[n],s=n+1,a=Oi$1(r,s);if(i.liveCollection===void 0)i.liveCollection=new Tc(a,r,Sc(o,s));else i.liveCollection.reset();let c=i.liveCollection;if(FI(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=Ae$1(),u=c.length===0;if(fe$1(r,l,u)){let d=n+2,p=Oi$1(r,d);if(u){let f=Sc(o,d),h=Rp(p,f,r);jr(p,Fr(r,f,void 0,{dehydratedView:h}),0,Mn$1(f,h))}else o.firstUpdatePass&&vE(p),Np(p,0)}}}finally{m$1(t)}}function Oi$1(e,t){return e[t]}function WI(e,t){if(e.length<=$$1)return;let r=e[$$1+t];r&&bv(r)}function GI(e,t){if(e.length<=$$1)return;let r=e[$$1+t];r&&wv(r)}function qI(e,t){return Mr(e,t)}function ZI(e,t){return _p(e,t)}function Sc(e,t){return Go(e,t)}function sh(e,t,n){let r=v();if(fe$1(r,Ae$1(),t)){V$2();dp(Et$1(),r,e,t,r[P],n)}return sh}function ef(e,t,n,r,o){Ui$1(t,e,n,o?`class`:`style`,r)}function ki$1(e,t,n,r){let o=v(),i=o[E$2],s=e+H$2,a=i.firstCreatePass?jp(s,o,2,t,qv,Zu(),n,r):i.data[s];if(Ne$2(a)){let c=o[be$1].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(kp(l),()=>(tf(e,t,o,a,r),ki$1))}}return tf(e,t,o,a,r),ki$1}function tf(e,t,n,r,o){if(mp(r,n,e,t,ch),zo$1(r)){let i=n[E$2];up(i,n,r),Pf(i,r,n)}o!=null&&Xc(n,r)}function pl(){let e=V$2(),n=yp(Z$2());return e.firstCreatePass&&Vp(e,n),wa(n)&&ba(),Ia(),n.classesWithoutHost!=null&&dy(n)&&ef(e,n,v(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&fy(n)&&ef(e,n,v(),n.stylesWithoutHost,!1),pl}function ah(e,t,n,r){return ki$1(e,t,n,r),pl(),ah}function hl(e,t,n,r){let o=v(),i=o[E$2],s=e+H$2,a=i.firstCreatePass?WE(s,i,2,t,n,r):i.data[s];return mp(a,o,e,t,ch),r!=null&&Xc(o,a),hl}function gl(){return wa(yp(Z$2()))&&ba(),Ia(),gl}function zi$1(e,t,n,r){return hl(e,t,n,r),gl(),zi$1}var ch=(e,t,n,r,o)=>(ri$1(!0),$f(t[P],r,Ra()));function YI(){return v()}function Wi$1(e,t,n){let r=v();if(fe$1(r,Ae$1(),t)){V$2();fp(Et$1(),r,e,t,r[P],n)}return Wi$1}var Br=`en-US`;function lh(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`)}function uh(e,t,n){let r=v(),o=V$2(),i=Z$2();return fh(o,r,r[P],i,e,t,n),uh}function dh(e,t,n){let r=v(),o=V$2(),i=Z$2();return(i.type&3||n)&&nl(i,o,r,n,r[P],e,t,Yt$1(i,r,t)),dh}function fh(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Yt$1(r,t,i),nl(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=Yt$1(r,t,i),Si$1(r,t,p,f,o,c)}if(l&&l.length)for(let d of l)c??=Yt$1(r,t,i),Si$1(r,t,d,o,o,c)}}function XI(e=1){return cd(e)}function KI(e,t){let n=null,r=fv(e);for(let o=0;o<t.length;o++){let i=t[o];if(i===`*`){n=o;continue}if(r===null?Xf(e,i,!0):gv(r,i))return o}return n}function JI(e){let t=v()[J$1][Q$1];if(!t.projection){let r=t.projection=Nu(e?e.length:1,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?KI(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function eD(e,t=0,n,r,o,i){let s=v(),a=V$2(),c=r?e+1:null;c!==null&&xr(s,a,c,r,o,i,null,n);let l=Vr(a,H$2+e,16,null,n||null);l.projection===null&&(l.projection=t),Ca();let d=!s[Bt$1]||Da();s[J$1][Q$1].projection[l.projection]===null&&c!==null?tD(s,a,c):d&&!Li$1(l)&&Ov(a,s,l)}function tD(e,t,n){let r=H$2+n,o=t.data[r],i=e[r],s=bi$1(i,o.tView.ssrId);jr(i,Fr(e,o,void 0,{dehydratedView:s}),0,Mn$1(o,s))}function ph(e,t,n,r){return hI(e,t,n,r),ph}function nD(e){let t=v(),n=V$2(),r=Ko();mr$1(r+1);let o=ol(n,r);if(e.dirty&&Uu(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Gp(t,r);e.reset(i,bf),e.notifyOnChanges()}return!0}return!1}function rD(){return rl(v(),Ko())}function hh(e,t,n,r){return yI(e,pI(t,n,r)),hh}function oD(e=1){mr$1(Ko()+e)}function iD(e){return qo$1(Ku(),H$2+e)}function fi$1(e,t){return e<<17|t<<2}function Jt$1(e){return e>>17&32767}function sD(e){return(e&2)==2}function aD(e,t){return e&131071|t<<17}function Cc(e){return e|2}function xn$1(e){return(e&131068)>>2}function $a(e,t){return e&-131069|t<<2}function cD(e){return(e&1)===1}function Mc(e){return e|1}function lD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Jt$1(s),c=xn$1(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||gn$1(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=Jt$1(e[a+1]);e[r+1]=fi$1(p,a),p!==0&&(e[p+1]=$a(e[p+1],r)),e[a+1]=aD(e[a+1],r)}else e[r+1]=fi$1(a,0),a!==0&&(e[a+1]=$a(e[a+1],r)),a=r;else e[r+1]=fi$1(c,0),a===0?a=r:e[c+1]=$a(e[c+1],r),c=r;l&&(e[r+1]=Cc(e[r+1])),nf(e,u,r,!0),nf(e,u,r,!1),uD(t,u,e,r,i),s=fi$1(a,c),i?t.classBindings=s:t.styleBindings=s}function uD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t==`string`&&gn$1(i,t)>=0&&(n[r+1]=Mc(n[r+1]))}function nf(e,t,n,r){let o=e[n+1],i=t===null,s=r?Jt$1(o):xn$1(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];dD(c,t)&&(a=!0,e[s+1]=r?Mc(l):Cc(l)),s=r?Jt$1(l):xn$1(l)}a&&(e[n+1]=r?Cc(o):Mc(o))}function dD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t==`string`?gn$1(e,t)>=0:!1}function Gi$1(e,t,n){return mh(e,t,n,!1),Gi$1}function gh(e,t){return mh(e,t,null,!0),gh}function mh(e,t,n,r){let o=v(),i=V$2(),s=_a(2);if(i.firstUpdatePass&&pD(i,e,s,r),t!==le$1&&fe$1(o,s,t)){let a=i.data[Oe$2()];vD(i,a,o,o[P],e,o[s+1]=ED(t,n),r,s)}}function fD(e,t){return t>=e.expandoStartIndex}function pD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Oe$2()],s=fD(e,n);ID(i,r)&&t===null&&!s&&(t=!1),t=hD(o,i,t,r),lD(o,i,t,n,s,r)}}function hD(e,t,n,r){let o=od(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=za(null,e,t,n,r),n=Rr$1(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=za(o,e,t,n,r),i===null){let c=gD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=za(null,e,t,c[1],r),c=Rr$1(c,t.attrs,r),mD(e,t,r,c))}else i=yD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function gD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xn$1(r)!==0)return e[Jt$1(r)]}function mD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Jt$1(o)]=r}function yD(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Rr$1(r,s,n)}return Rr$1(r,t.attrs,n)}function za(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Rr$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Rr$1(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s==`number`?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:[``,e]),Ru(e,s,n?!0:t[++i]))}return e===void 0?null:e}function vD(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1];if(!Pi$1(cD(l)?rf(c,t,n,o,xn$1(l),s):void 0)){Pi$1(i)||sD(l)&&(i=rf(c,null,n,o,a,s));Pv(r,s,ha(Oe$2(),n),o,i)}}function rf(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===le$1&&(p=d?se$1:void 0);let f=d?Ho(p,r):u===r?p:void 0;if(l&&!Pi$1(f)&&(f=Ho(c,r)),Pi$1(f)&&(a=f,s))return a;let h=e[o+1];o=s?Jt$1(h):xn$1(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ho(c,r))}return a}function Pi$1(e){return e!==void 0}function ED(e,t){return e==null||e===``||(typeof t==`string`?e=de(e)+t:typeof e==`object`&&(e=or$1(de(e)))),e}function ID(e,t){return(e.flags&(t?8:16))!==0}function DD(e,t=``){let n=v(),r=V$2(),o=e+H$2,i=r.firstCreatePass?Vr(r,o,1,t,null):r.data[o],s=wD(r,n,i,t);n[o]=s,ni$1()&&Gc(r,n,s,i),Dn$1(i,!1)}var wD=(e,t,n,r)=>(ri$1(!0),Xy(t[P],r));function bD(e,t,n,r=``){return fe$1(e,Ae$1(),n)?t+ft$1(n)+r:le$1}function TD(e,t,n,r,o,i=``){let a=Pp(e,Ju(),n,o);return _a(2),a?t+ft$1(n)+r+ft$1(o)+i:le$1}function yh(e){return ml(``,e),yh}function ml(e,t,n){let r=v(),o=bD(r,e,t,n);return o!==le$1&&Eh(r,Oe$2(),o),ml}function vh(e,t,n,r,o){let i=v(),s=TD(i,e,t,n,r,o);return s!==le$1&&Eh(i,Oe$2(),s),vh}function Eh(e,t,n){let r=ha(t,e);Ky(e[P],r,n)}function Ih(e,t,n){ci$1(t)&&(t=t());let r=v();if(fe$1(r,Ae$1(),t)){V$2();dp(Et$1(),r,e,t,r[P],n)}return Ih}function SD(e,t){let n=ci$1(e);return n&&e.set(t),n}function Dh(e,t){let n=v(),r=V$2(),o=Z$2();return fh(r,n,n[P],o,e,t),Dh}function CD(e){return fe$1(v(),Ae$1(),e)?ft$1(e):le$1}function of(e,t,n){let r=V$2();r.firstCreatePass&&wh(t,r.data,r.blueprint,xe$2(e),n)}function wh(e,t,n,r,o){if(e=Y$2(e),Array.isArray(e))for(let i=0;i<e.length;i++)wh(e[i],t,n,r,o);else{let i=V$2(),s=v(),a=Z$2(),c=Lt(e)?e:Y$2(e.provide),l=la(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Lt(e)||!e.multi){let f=new Qt$1(l,o,Hr,null),h=Ga(c,t,o?u:u+p,d);h===-1?(Ya(Di$1(a,s),i,c),Wa(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=Ga(c,t,u+p,d),h=Ga(c,t,u,u+p),w=f>=0&&n[f],I=h>=0&&n[h];if(o&&!I||!o&&!w){Ya(Di$1(a,s),i,c);let N=ND(o?_D:MD,n.length,o,r,l,e);!o&&I&&(n[h].providerFactory=N),Wa(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(N),s.push(N)}else{let N=bh(n[o?h:f],l,!o&&r);Wa(i,e,f>-1?f:h,N)}!o&&r&&I&&n[h].componentProviders++}}}function Wa(e,t,n,r){let o=Lt(t),i=Lu(t);if(o||i){let c=(i?Y$2(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function bh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ga(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function MD(e,t,n,r,o){return _c(this.multi,[])}function _D(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Sr(r,r[E$2],this.providerFactory.index,o);s=c.slice(0,a),_c(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],_c(i,s);return s}function _c(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function ND(e,t,n,r,o,i){let s=new Qt$1(e,n,Hr,null);return s.multi=[],s.index=t,s.componentProviders=0,bh(s,o,r&&!n),s}function xD(e,t){return n=>{n.providersResolver=(r,o)=>of(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>of(r,o?o(t):t,!0))}}function RD(e,t){let n=gr$1()+e,r=v();return r[n]===le$1?tl(r,n,t()):bE(r,n)}function AD(e,t,n){return Sh(v(),gr$1(),e,t,n)}function Th(e,t){let n=e[t];return n===le$1?void 0:n}function Sh(e,t,n,r,o,i){let s=t+n;return fe$1(e,s,o)?tl(e,s+1,i?r.call(i,o):r(o)):Th(e,s+1)}function OD(e,t,n,r,o,i,s){let a=t+n;return Pp(e,a,o,i)?tl(e,a+2,s?r.call(s,o,i):r(o,i)):Th(e,a+2)}function kD(e,t){let n=V$2(),r,o=e+H$2;n.firstCreatePass?(r=PD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=lt$1(r.type,!0)),a=ne$1(Hr);try{let c=Ii$1(!1),l=i();return Ii$1(c),ga(n,v(),o,l),l}finally{ne$1(a)}}function PD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function LD(e,t,n){let r=e+H$2,o=v(),i=qo$1(o,r);return Ch(o,r)?Sh(o,gr$1(),t,i.transform,n,i):i.transform(n)}function FD(e,t,n,r){let o=e+H$2,i=v(),s=qo$1(i,o);return Ch(i,o)?OD(i,gr$1(),t,s.transform,n,r,s):s.transform(n,r)}function Ch(e,t){return e[E$2].data[t].pure}var Mh=(()=>{class e{applicationErrorHandler=g$1(It$1);appRef=g$1(Ur);taskService=g$1(qt);ngZone=g$1(re);zonelessEnabled=g$1(Dr);tracing=g$1(wt$1,{optional:!0});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ee;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nr$1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$1(La,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:this.appRef.dirtyFlags|=2;break;case 3:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?fd:Oa;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(nr$1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();function _h(){return[{provide:ut$1,useExisting:Mh},{provide:re,useClass:rr$1},{provide:Dr,useValue:!0}]}var jD=(()=>{class e{compileModuleSync(n){return new Ri$1(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();function VD(){return typeof $localize<`u`&&$localize.locale||Br}var yl=new b$1(``,{factory:()=>g$1(yl,{optional:!0,skipSelf:!0})||VD()});var $r=class{destroyed=!1;listeners=null;errorHandler=g$1(De$1,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=g$1(he);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new y$1(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(Vt$1(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=m$1(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&HD(this.listeners)),m$1(n),this.isEmitting=!1}}};function HD(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function zr(e,t){return Qn$1(e,t?.equal)}function Wr(e){return gu(e)}(class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e(`IDLE`);static LOADING=new e(`LOADING`)});var UD=e=>e;function BD(e,t){if(typeof e==`function`)return xh(ks(e,UD,t?.equal),t?.debugName,t?.set);else return xh(ks(e.source,e.computation,e.equal),e.debugName,e.set)}function xh(e,t,n){let r=e[U$3],o=e;if(n!==void 0){let i=s=>Ps(r,s);o.set=s=>n(s,i),o.update=s=>n(s(Wr(e)),i)}else o.set=i=>Ps(r,i),o.update=i=>hu(r,i);return o.asReadonly=yr$1.bind(e),o}function Lh(e,t){let n=Object.create(Nc);n.value=e,n.transformFn=t?.transform;function r(){if(je$2(n),n.value===Rn$1)throw new y$1(-950,null);return n.value}return r[U$3]=n,r}var Rh=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>wf(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function bL(e){return KD(e)?e.default:e}function KD(e){return e&&typeof e==`object`&&`default`in e}function TL(e){return new $r}function Ah(e,t){return Lh(e,t)}function JD(e){return Lh(Rn$1,e)}var Zi$1=(Ah.required=JD,Ah);function Fh(e,t){let n=Object.create(Nc),r=new $r;n.value=e;function o(){return je$2(n),Oh(n.value),n.value}return o[U$3]=n,o.asReadonly=yr$1.bind(o),o.set=i=>{n.equal(n.value,i)||(Ve$2(n,i),r.emit(i))},o.update=i=>{Oh(n.value),o.set(i(n.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Oh(e){if(e===Rn$1)throw new y$1(952,!1)}function kh(e,t){return Fh(e,t)}function ew(e){return Fh(Rn$1,e)}var SL=(kh.required=ew,kh);function Ph(e,t){return Zp(t)}function tw(e,t){return Yp(t)}var CL=(Ph.required=tw,Ph);var _L=(()=>{class e{static __NG_ELEMENT_ID__=rw}return e})();function rw(e){return ow(Z$2(),v(),(e&16)===16)}function ow(e,t,n){if(Ne$2(e)&&!n){let r=ye$1(e.index,t);return new Dt$1(r,r)}else if(e.type&175){let r=t[J$1];return new Dt$1(r,t)}return null}var vl=new b$1(``);var iw=new b$1(``);function Gr(e){return!e.moduleRef}function sw(e){let t=Gr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(re);return n.run(()=>{Gr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(It$1),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Gr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(vl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(vl);s.add(i),e.moduleRef.onDestroy(()=>{Tr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return cw(r,n,()=>{let i=t.get(qt),s=i.add(),a=t.get(ll);return a.runInitializers(),a.donePromise.then(()=>{if(lh(t.get(yl,Br)||Br),!t.get(iw,!0))return Gr(e)?t.get(Ur):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Gr(e)){let u=t.get(Ur);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return aw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var aw;function cw(e,t,n){try{let r=n();return il(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var qi$1=null;function lw(e=[],t){return Ie$1.create({name:t,providers:[{provide:lr$1,useValue:`platform`},{provide:vl,useValue:new Set([()=>qi$1=null])},...e]})}function uw(e=[]){if(qi$1)return qi$1;let t=lw(e);return qi$1=t,oh(),dw(t),t}function dw(e){let t=e.get(oi$1,null);mn$1(e,()=>{t?.forEach(n=>n())})}function jh(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;L$1(x.BootstrapApplicationStart);try{let i=o?.injector??uw(r);return sw({r3Injector:new Nr({providers:[_h(),md,...n||[]],parent:i,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{L$1(x.BootstrapApplicationEnd)}}function NL(e){return typeof e==`boolean`?e:e!=null&&e!==`false`}function xL(e){let t=dt$1(e);if(!t)return null;let n=new _n$1(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Vh=null;function Qe$1(){return Vh}function El(e){Vh??=e}var qr=class{};var kn$1=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:()=>g$1(Hh),providedIn:`platform`})}return e})();var Hh=(()=>{class e extends kn$1{_location;_history;_doc=g$1(z$2);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qe$1().getBaseHref(this._doc)}onPopState(n){let r=Qe$1().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,n,!1),()=>r.removeEventListener(`popstate`,n)}onHashChange(n){let r=Qe$1().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`hashchange`,n,!1),()=>r.removeEventListener(`hashchange`,n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:()=>new e,providedIn:`platform`})}return e})();function $h(e,t){return e?t?e.endsWith(`/`)?t.startsWith(`/`)?e+t.slice(1):e+t:t.startsWith(`/`)?e+t:`${e}/${t}`:e:t}function Uh(e){let t=e.search(/#|\?|$/);return e[t-1]===`/`?e.slice(0,t-1)+e.slice(t):e}function bt$1(e){return e&&e[0]!==`?`?`?${e}`:e}var Yi$1=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:()=>g$1(pw),providedIn:`root`})}return e})();var fw=new b$1(``);var pw=(()=>{class e extends Yi$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$1(z$2).location?.origin??``}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return $h(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+bt$1(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+bt$1(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+bt$1(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static ɵfac=function(r){return new(r||e)(T(kn$1),T(fw,8))};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var zh=(()=>{class e{_subject=new oe$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=mw(Uh(Bh(r))),this._locationStrategy.onPopState(o=>{let i={url:this.path(!0),pop:!0,state:o.state,type:o.type};o.hasUAVisualTransition&&(i.hasUAVisualTransition=!0),this._subject.next(i)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=``){return this.path()==this.normalize(n+bt$1(r))}normalize(n){return e.stripTrailingSlash(gw(this._basePath,Bh(n)))}prepareExternalUrl(n){return n&&n[0]!==`/`&&(n=`/`+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r=``,o=null){this._locationStrategy.pushState(o,``,n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+bt$1(r)),o)}replaceState(n,r=``,o=null){this._locationStrategy.replaceState(o,``,n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+bt$1(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n=``,r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=bt$1;static joinWithSlash=$h;static stripTrailingSlash=Uh;static ɵfac=function(r){return new(r||e)(T(Yi$1))};static ɵprov=M$1({token:e,factory:()=>hw(),providedIn:`root`})}return e})();function hw(){return new zh(T(Yi$1))}function gw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===``||[`/`,`;`,`?`,`#`].includes(n[0])?n:t}function Bh(e){return e.replace(/\/index\.html$/,``)}function mw(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Zr(e,t){t=encodeURIComponent(t);for(let n of e.split(`;`)){let r=n.indexOf(`=`),[o,i]=r==-1?[n,``]:[n.slice(0,r),n.slice(r+1)];if(o.trim()!==t)continue;let s=i;try{s=decodeURIComponent(i)}catch{}return s.length>1&&s[0]===`"`&&s[s.length-1]===`"`&&(s=s.slice(1,-1)),s}return null}var Wh=`browser`;var Yr=class{_doc;constructor(t){this._doc=t}manager};var Qi$1=(()=>{class e extends Yr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static ɵfac=function(r){return new(r||e)(T(z$2))};static ɵprov=M$1({token:e,factory:e.ɵfac})}return e})();var Ji$1=new b$1(``);var bl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof Qi$1));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Qi$1);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new y$1(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static ɵfac=function(r){return new(r||e)(T(Ji$1),T(re))};static ɵprov=M$1({token:e,factory:e.ɵfac})}return e})();var Il=`ng-app-id`;function Gh(e){for(let t of e)t.remove()}function qh(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function vw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Il}="${t}"],link[${Il}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(Il),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf(`/`)+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return!0}function wl(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var Tl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,vw(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,qh);r?.forEach(o=>this.addUsage(o,this.external,wl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Gh(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Gh(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,qh(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,wl(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o}}addElement(n,r){return this.nonce&&r.setAttribute(`nonce`,this.nonce),n.appendChild(r)}static ɵfac=function(r){return new(r||e)(T(z$2),T(vr$1),T(Ir,8),T(Er))};static ɵprov=M$1({token:e,factory:e.ɵfac})}return e})();var Dl={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`,math:`http://www.w3.org/1998/Math/MathML`};var Sl=/%COMP%/g;var Yh=`%COMP%`;var Ew=`_nghost-${Yh}`;var Iw=`_ngcontent-${Yh}`;var Dw=!0;var ww=new b$1(``,{factory:()=>Dw});var bw=new b$1(``);function Tw(e){return Iw.replace(Sl,e)}function Sw(e){return Ew.replace(Sl,e)}function Qh(e,t){return t.map(n=>n.replace(Sl,e))}var Cl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,c=null,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.cssVarNamespace=u??``,this.defaultRenderer=new Qr(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ki$1?o.applyToHost(n):o instanceof Xr$1&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case Ce$2.Emulated:i=new Ki$1(c,l,r,this.appId,u,s,a,d,this.cssVarNamespace);break;case Ce$2.ShadowDom:return new Xi$1(c,n,r,s,a,this.nonce,d,this.cssVarNamespace,l);case Ce$2.ExperimentalIsolatedShadowDom:return new Xi$1(c,n,r,s,a,this.nonce,d,this.cssVarNamespace);default:i=new Xr$1(c,l,r,u,s,a,d,this.cssVarNamespace)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static ɵfac=function(r){return new(r||e)(T(bl),T(tn$1),T(vr$1),T(ww),T(z$2),T(re),T(Ir),T(wt$1,8),T(bw,8))};static ɵprov=M$1({token:e,factory:e.ɵfac})}return e})();var Qr=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i=``){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Dl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Zh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=Zh(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new y$1(-5106,!1);o.insertBefore(n,r)}}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t==`string`?this.doc.querySelector(t):t;if(!r)throw new y$1(-5104,!1);return n||(r.textContent=``),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+`:`+n;let i=Dl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Dl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){let i=n.startsWith(`--`);i&&(n=n.replace(`%NS%`,this.cssVarNamespace)),i||o&(Ze.DashCase|Ze.Important)?t.style.setProperty(n,r,o&Ze.Important?`important`:``):t.style[n]=r}removeStyle(t,n,r){let o=n.startsWith(`--`);o&&(n=n.replace(`%NS%`,this.cssVarNamespace)),o||r&Ze.DashCase?t.style.removeProperty(n):t.style[n]=``}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t==`string`&&(t=Qe$1().getGlobalEventTarget(this.doc,t),!t))throw new y$1(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n===`__ngUnwrap__`)return t;t(n)===!1&&n.preventDefault()}}};function Zh(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var Xi$1=class extends Qr{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,o,i,a,c),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Qh(r.id,u).map(p=>p.replace(/%NS%/g,c));for(let p of u){let f=document.createElement(`style`);s&&f.setAttribute(`nonce`,s),f.textContent=p,this.shadowRoot.appendChild(f)}let d=r.getExternalStyles?.();if(d)for(let p of d){let f=wl(p,o);s&&f.setAttribute(`nonce`,s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}};var Xr$1=class extends Qr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles,d=l?Qh(l,u):u;this.styles=d.map(p=>p.replace(/%NS%/g,c)),this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&$c.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}};var Ki$1=class extends Xr$1{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+`-`+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=Tw(u),this.hostAttr=Sw(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,``)}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,``),r}};var es=class e extends qr{supportsDOMEvents=!0;static makeCurrent(){El(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n===`window`?window:n===`document`?t:n===`body`?t.body:null}getBaseHref(t){let n=Cw();return n==null?null:Mw(n)}resetBaseElement(){Kr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Zr(document.cookie,t)}};var Kr=null;function Cw(){return Kr=Kr||document.head.querySelector(`base`),Kr?Kr.getAttribute(`href`):null}function Mw(e){return new URL(e,document.baseURI).pathname}var Xh=[`alt`,`control`,`meta`,`shift`];var _w={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`};var Nw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};var Kh=(()=>{class e extends Yr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qe$1().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split(`.`),o=r.shift();if(r.length===0||!(o===`keydown`||o===`keyup`))return null;let i=e._normalizeKey(r.pop()),s=``,a=r.indexOf(`code`);if(a>-1&&(r.splice(a,1),s=`code.`),Xh.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+`.`)}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=_w[n.key]||n.key,i=``;return r.indexOf(`code.`)>-1&&(o=n.code,i=`code.`),o==null||!o?!1:(o=o.toLowerCase(),o===` `?o=`space`:o===`.`&&(o=`dot`),Xh.forEach(s=>{if(s!==o){let a=Nw[s];a(n)&&(i+=s+`.`)}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n===`esc`?`escape`:n}static ɵfac=function(r){return new(r||e)(T(z$2))};static ɵprov=M$1({token:e,factory:e.ɵfac})}return e})();async function xw(e,t,n){return jh(k$1({rootComponent:e},Rw(t,n)))}function Rw(e,t){return{platformRef:t?.platformRef,appProviders:[...Lw,...e?.providers??[]],platformProviders:Pw}}function Aw(){es.makeCurrent()}function Ow(){return new De$1}function kw(){return Ac(document),document}var Pw=[{provide:Er,useValue:Wh},{provide:oi$1,useValue:Aw,multi:!0},{provide:z$2,useFactory:kw}];var Lw=[{provide:lr$1,useValue:`root`},{provide:De$1,useFactory:Ow},{provide:Ji$1,useClass:Qi$1,multi:!0},{provide:Ji$1,useClass:Kh,multi:!0},Cl,{provide:tn$1,useClass:Tl},{provide:Tl,useExisting:tn$1},bl,{provide:Kt$1,useExisting:Cl},[]];var Ke$1=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t==`string`?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(`:`);if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<`u`&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:`a`})}set(t,n){return this.clone({name:t,value:n,op:`s`})}delete(t,n){return this.clone({name:t,value:n,op:`d`})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case`a`:case`s`:let r=t.value;if(typeof r==`string`&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op===`a`?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case`d`:let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ns=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};var rs=class{encodeKey(t){return Jh(t)}encodeValue(t){return Jh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Fw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,``).split(`&`).forEach(o=>{let i=o.indexOf(`=`),[s,a]=i==-1?[t.decodeKey(o),``]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var jw=/%(\d[a-f0-9])/gi;var Vw={40:`@`,"3A":`:`,24:`$`,"2C":`,`,"3B":`;`,"3D":`=`,"3F":`?`,"2F":`/`};function Jh(e){return encodeURIComponent(e).replace(jw,(t,n)=>Vw[n]??t)}function ts(e){return`${e}`}var Xe=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new rs,t.fromString){if(t.fromObject)throw new y$1(2805,!1);this.map=Fw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ts):[ts(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:`a`})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:`a`})}):n.push({param:r,value:o,op:`a`})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:`s`})}delete(t,n){return this.clone({param:t,value:n,op:`d`})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+`=`+this.encoder.encodeValue(r)).join(`&`)}).filter(t=>t!==``).join(`&`)}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case`a`:case`s`:let n=t.op===`a`?(this.map.get(t.param)||[]).slice():[];n.push(ts(t.value)),this.map.set(t.param,n);break;case`d`:if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(ts(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function Hw(e){switch(e){case`DELETE`:case`GET`:case`HEAD`:case`OPTIONS`:case`JSONP`:return!1;default:return!0}}function eg(e){return typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer}function tg(e){return typeof Blob<`u`&&e instanceof Blob}function ng(e){return typeof FormData<`u`&&e instanceof FormData}function Uw(e){return typeof URLSearchParams<`u`&&e instanceof URLSearchParams}var Ml=`Content-Type`;var rg=`Accept`;var sg=`text/plain`;var ag=`application/json`;var Bw=`${ag}, ${sg}, */*`;var Pn$1=class e{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType=`json`;method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(Hw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout==`number`){if(i.timeout<1||!Number.isInteger(i.timeout))throw new y$1(2822,``);this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new Ke$1,this.context??=new ns,!this.params)this.params=new Xe,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,c=``,l=n.indexOf(`#`);l!==-1&&(c=n.substring(l),a=n.substring(0,l));let u=a.indexOf(`?`),d=u===-1?`?`:u<a.length-1?`&`:``;this.urlWithParams=a+d+s+c}}}serializeBody(){return this.body===null?null:typeof this.body==`string`||eg(this.body)||tg(this.body)||ng(this.body)||Uw(this.body)?this.body:this.body instanceof Xe?this.body.toString():typeof this.body==`object`||typeof this.body==`boolean`||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ng(this.body)?null:tg(this.body)?this.body.type||null:eg(this.body)?null:typeof this.body==`string`?sg:this.body instanceof Xe?`application/x-www-form-urlencoded;charset=UTF-8`:typeof this.body==`object`||typeof this.body==`number`||typeof this.body==`boolean`?ag:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,w=t.timeout??this.timeout,I=t.body!==void 0?t.body:this.body,N=t.withCredentials??this.withCredentials,R=t.reportProgress??this.reportProgress,Je=t.reportUploadProgress??this.reportUploadProgress,Vn=t.reportDownloadProgress??this.reportDownloadProgress,et=t.headers||this.headers,Hn=t.params||this.params,Un=t.context??this.context;return t.setHeaders!==void 0&&(et=Object.keys(t.setHeaders).reduce((on,tt)=>on.set(tt,t.setHeaders[tt]),et)),t.setParams&&(Hn=Object.keys(t.setParams).reduce((on,tt)=>on.set(tt,t.setParams[tt]),Hn)),new e(n,r,I,{params:Hn,headers:et,context:Un,reportProgress:R,reportUploadProgress:Je,reportDownloadProgress:Vn,responseType:o,withCredentials:N,transferCache:h,keepalive:i,cache:a,priority:s,timeout:w,mode:c,redirect:l,credentials:u,referrer:d,integrity:p,referrerPolicy:f})}};var rn$1=(function(e){return e[e.Sent=0]=`Sent`,e[e.UploadProgress=1]=`UploadProgress`,e[e.ResponseHeader=2]=`ResponseHeader`,e[e.DownloadProgress=3]=`DownloadProgress`,e[e.Response=4]=`Response`,e[e.User=5]=`User`,e})(rn$1||{});var Ln$1=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r=`OK`){this.headers=t.headers||new Ke$1,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}};var os=class e extends Ln$1{constructor(t={}){super(t)}type=rn$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var Jr$1=class e extends Ln$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=rn$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}};var nn$1=class extends Ln$1{name=`HttpErrorResponse`;message;error;ok=!1;constructor(t){super(t,0,`Unknown Error`),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||`(unknown url)`}`:this.message=`Http failure response for ${t.url||`(unknown url)`}: ${t.status} ${t.statusText}`,this.error=t.error||null}};var $w=200;var zw=/^\)\]\}',?\n/;var cg=new b$1(``,{factory:()=>null});var Fn$1=(()=>{class e{fetchImpl=g$1(Nl,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g$1(re);destroyRef=g$1(he);maxResponseSize=g$1(cg);handle(n){return new _(r=>{let o=new AbortController,i=!1,s={next:c=>{c.type===rn$1.Response&&(i=!0),r.next(c)},error:c=>{i=!0,r.error(c)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(xl,c=>s.error(new nn$1({error:c})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException(`signal timed out`,`TimeoutError`))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!i&&!o.signal.aborted&&o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let I=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,k$1({signal:r},i)));Ww(I),o.next({type:rn$1.Sent}),s=await I}catch(I){o.error(new nn$1({error:I,status:I.status??0,statusText:I.statusText,url:n.urlWithParams,headers:I.headers}));return}let a=new Ke$1(s.headers),c=s.statusText,l=s.url||n.urlWithParams,u=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new os({headers:a,status:u,statusText:c,url:l})),s.body){let I=s.headers.get(Ml)??``,N=s.headers.get(`content-length`),R=N!==null?Number(N):NaN;this.maxResponseSize!==null&&Number.isFinite(R)&&R>this.maxResponseSize&&(await s.body.cancel(),og(this.maxResponseSize));let Je=[],Vn=s.body.getReader(),et=0,Hn,Un,on=typeof Zone<`u`&&Zone.current,tt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await Vn.cancel(),tt=!0;break}let{done:ds,value:fs}=await Vn.read();if(ds)break;if(Je.push(fs),et+=fs.length,this.maxResponseSize!==null&&et>this.maxResponseSize&&(await Vn.cancel(),og(this.maxResponseSize)),p){Un=n.responseType===`text`?(Un??``)+(Hn??=ig(I)).decode(fs,{stream:!0}):void 0;let Ol=()=>o.next({type:rn$1.DownloadProgress,total:Number.isFinite(R)?R:void 0,loaded:et,partialText:Un});on?on.run(Ol):Ol()}}}),tt){o.complete();return}let Ig=this.concatChunks(Je,et);try{d=this.parseBody(n,Ig,I,u)}catch(ds){o.error(new nn$1({error:ds,headers:new Ke$1(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}u===0&&(u=d?$w:0);let f=u>=200&&u<300,h=s.redirected,w=s.type;f?(o.next(new Jr$1({body:d,headers:a,status:u,statusText:c,url:l,redirected:h,responseType:w})),o.complete()):o.error(new nn$1({error:d,headers:a,status:u,statusText:c,url:l,redirected:h,responseType:w}))}parseBody(n,r,o,i){switch(n.responseType){case`json`:let s=new TextDecoder().decode(r).replace(zw,``);if(s===``)return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case`text`:return ig(o).decode(r);case`blob`:return new Blob([r],{type:o});case`arraybuffer`:return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new y$1(2824,!1);let r={},o;if(o=n.credentials,n.withCredentials&&(o=`include`),n.headers.forEach((i,s)=>r[i]=s.join(`,`)),n.headers.has(rg)||(r[rg]=Bw),!n.headers.has(Ml)){let i=n.detectContentTypeHeader();i!==null&&(r[Ml]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();var Nl=class{};function xl(){}function Ww(e){e.then(xl,xl)}function og(e){throw new y$1(-2825,!1)}var Gw=/charset=\s*["']?([^;"'\s]+)["']?/i;function ig(e){let t=e.match(Gw);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var qw=new b$1(``,{factory:()=>!0});var Zw=`XSRF-TOKEN`;var Yw=new b$1(``,{factory:()=>Zw});var Qw=`X-XSRF-TOKEN`;var Xw=new b$1(``,{factory:()=>Qw});var Kw=(()=>{class e{cookieName=g$1(Yw);doc=g$1(z$2);lastCookieString=``;lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||``;return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Zr(n,this.cookieName),this.lastCookieString=n),this.lastToken}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();var lg=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Kw),o},providedIn:`root`})}return e})();function ug(e,t){if(!g$1(qw)||e.method===`GET`||e.method===`HEAD`)return t(e);try{let o=g$1(kn$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=g$1(lg).getToken(),r=g$1(Xw);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function Jw(e,t){return t(e)}function eb(e,t,n){return(r,o)=>mn$1(n,()=>t(r,i=>e(i,o)))}var Rl=new b$1(``,{factory:()=>[ug]});var dg=new b$1(``);var fg=new b$1(``,{factory:()=>!0});var ss=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Fn$1),o},providedIn:`root`})}return e})();var is=(()=>{class e{backend;injector;chain=null;pendingTasks=g$1(wr);contributeToStability=g$1(fg);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let o=this.injector.get(as,null,{skipSelf:!0}),i=o!==null&&this.backend===o,s=this.injector.get(dg,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(Rl),...s]));this.chain=a.reduceRight((c,l)=>eb(c,l,this.injector),Jw)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Wr(()=>r(n,i=>this.backend.handle(i))).pipe(Ss(o))}else return Wr(()=>r(n,o=>this.backend.handle(o)))}static ɵfac=function(r){return new(r||e)(T(ss),T(ae$1))};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var as=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(is),o},providedIn:`root`})}return e})();function _l(e,t){return k$1({body:t},e)}var cs=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Pn$1)i=n;else{let c;o.headers instanceof Ke$1?c=o.headers:c=new Ke$1(o.headers);let l;o.params&&(o.params instanceof Xe?l=o.params:l=new Xe({fromObject:o.params})),i=new Pn$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||`json`,withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=Is(i).pipe(bs(c=>this.handler.handle(c)));if(n instanceof Pn$1||o.observe===`events`)return s;let a=s.pipe(Gn$1(c=>c instanceof Jr$1));switch(o.observe||`body`){case`body`:switch(i.responseType){case`arraybuffer`:return a.pipe(K$2(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y$1(2806,!1);return c.body}));case`blob`:return a.pipe(K$2(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y$1(2807,!1);return c.body}));case`text`:return a.pipe(K$2(c=>{if(c.body!==null&&typeof c.body!=`string`)throw new y$1(2808,!1);return c.body}));default:return a.pipe(K$2(c=>c.body))}case`response`:return a;default:throw new y$1(2809,!1)}}delete(n,r={}){return this.request(`DELETE`,n,r)}get(n,r={}){return this.request(`GET`,n,r)}head(n,r={}){return this.request(`HEAD`,n,r)}jsonp(n,r){return this.request(`JSONP`,n,{params:new Xe().append(r,`JSONP_CALLBACK`),observe:`body`,responseType:`json`})}options(n,r={}){return this.request(`OPTIONS`,n,r)}patch(n,r,o={}){return this.request(`PATCH`,n,_l(o,r))}post(n,r,o={}){return this.request(`POST`,n,_l(o,r))}put(n,r,o={}){return this.request(`PUT`,n,_l(o,r))}static ɵfac=function(r){return new(r||e)(T(as))};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var ls=(function(e){return e[e.Interceptors=0]=`Interceptors`,e[e.LegacyInterceptors=1]=`LegacyInterceptors`,e[e.CustomXsrfConfiguration=2]=`CustomXsrfConfiguration`,e[e.NoXsrfProtection=3]=`NoXsrfProtection`,e[e.JsonpSupport=4]=`JsonpSupport`,e[e.RequestsMadeViaParent=5]=`RequestsMadeViaParent`,e[e.Fetch=6]=`Fetch`,e[e.Xhr=7]=`Xhr`,e})(ls||{});function pg(e,t){return{ɵkind:e,ɵproviders:t}}function tb(...e){let t=[cs,Fn$1,is,{provide:as,useExisting:is},{provide:ss,useFactory:()=>g$1(Fn$1)},{provide:Rl,useValue:ug,multi:!0}];for(let n of e)t.push(...n.ɵproviders);return gt$1(t)}function nb(e){return pg(ls.Interceptors,e.map(t=>({provide:Rl,useValue:t,multi:!0})))}function rb(){return pg(ls.Fetch,[Fn$1,{provide:ss,useExisting:Fn$1}])}var m1=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||``}static ɵfac=function(r){return new(r||e)(T(z$2))};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var Al=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵprov=M$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(ob),o},providedIn:`root`})}return e})();var ob=(()=>{class e extends Al{_doc=g$1(z$2);sanitize(n,r){if(r==null)return null;switch(n){case F$2.NONE:return r;case F$2.HTML:return Le$2(r,`HTML`)?de(r):ji$1(this._doc,String(r)).toString();case F$2.STYLE:return Le$2(r,`Style`)?de(r):r;case F$2.SCRIPT:if(Le$2(r,`Script`))return de(r);throw new y$1(5200,!1);case F$2.URL:return Le$2(r,`URL`)?de(r):kr(String(r));case F$2.RESOURCE_URL:if(Le$2(r,`ResourceURL`))return de(r);throw new y$1(-5201,!1);default:throw new y$1(5202,!1)}}bypassSecurityTrustHtml(n){return kc(n)}bypassSecurityTrustStyle(n){return Pc(n)}bypassSecurityTrustScript(n){return Lc(n)}bypassSecurityTrustUrl(n){return Fc(n)}bypassSecurityTrustResourceUrl(n){return jc(n)}static ɵfac=function(r){return new(r||e)};static ɵprov=Pe$1({token:e,factory:e.ɵfac})}return e})();var jn$1=class extends Error{transport;status;body;constructor(t,n){let r=n?.message??`request failed (${t||`network`})`;super(r),this.status=t,this.transport=t===0,this.body={code:n?.code??(t===0?`PORTAL-UNREACHABLE`:`HTTP-${t}`),message:r,message_key:n?.message_key??(t===0?`error.unreachable`:void 0),details:n?.details,severity:n?.severity??`error`,retryable:n?.retryable??(t===0||t>=500),action:n?.action}}};var hg=class e{http=g$1(cs);get(t){return this.http.get(`/api/v1${t}`).pipe(K$2(n=>this.unwrap(n)))}post(t,n){return this.http.post(`/api/v1${t}`,n).pipe(K$2(r=>this.unwrap(r)))}unwrap(t){if(t.schema!==`forge/PortalApi/1`)throw new jn$1(0,{code:`PORTAL-BAD-ENVELOPE`,message:`unexpected response schema`});if(t.error)throw new jn$1(200,t.error);if(t.data===void 0)throw new jn$1(0,{code:`PORTAL-EMPTY-DATA`,message:`envelope carried no data`});return t.data}bootstrap(){return this.get(`/bootstrap`)}health(){return this.get(`/health`)}capabilities(){return this.get(`/capabilities`)}installationStatus(){return this.get(`/installation/status`)}accountEnvironment(){return this.get(`/environment`)}installationPlan(t){return this.post(`/installation/plan`,t)}installationApply(t,n,r=`apply`){return this.post(`/installation/apply`,{plan:t,plan_token:n,confirm:r})}installationRepair(){return this.post(`/installation/repair`,{confirm:`repair`})}installationUninstall(){return this.post(`/installation/uninstall`,{confirm:`uninstall`})}federation(){return this.get(`/federation`)}federationPlan(t){return this.post(`/federation/plan`,t)}federationInstallAuto(t,n){return this.post(`/federation/install-auto`,{plan:t,plan_token:n,confirm:`install`})}profiles(){return this.get(`/profiles`)}profilesApply(t){return this.post(`/profiles/apply`,{profile:t,confirm:`apply`})}hosts(){return this.get(`/hosts`)}hostsLaunch(t){return this.post(`/hosts/launch`,{host:t})}mcpServers(){return this.get(`/mcp/servers`)}mcpVerify(){return this.post(`/mcp/verify`,{confirm:`verify`})}skills(){return this.get(`/skills`)}agents(){return this.get(`/agents`)}tasks(){return this.get(`/tasks`)}metrics(){return this.get(`/metrics`)}versions(){return this.get(`/versions`)}lab(){return this.get(`/lab`)}tasksPlan(t){return this.post(`/tasks/plan`,t)}tasksExecute(t,n){return this.post(`/tasks/execute`,{plan:t,plan_token:n,confirm:`execute`})}graphs(){return this.get(`/graphs`)}docsSearch(t,n=20){return this.get(`/docs/search?q=${encodeURIComponent(t)}&limit=${n}`)}static ɵfac=function(n){return new(n||e)};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`root`})};var gg=`forge-portal.locale`;var mg={"pt-BR":()=>import(`./chunk-BfCFGPzs.js`).then(e=>e.PT_BR),en:()=>import(`./chunk-BYyM9V_w.js`).then(e=>e.EN)};var us=class e{dict=Te$2(new Map);fallbackDict=Te$2(new Map);preference=Te$2(`automatic`);locale=Te$2(`pt-BR`);ready=Te$2(!1);missingKeys=Te$2([]);constructor(){let t=this.readStoredPreference();this.applyPreference(t)}readStoredPreference(){try{let t=globalThis.localStorage?.getItem(gg);if(t===`pt-BR`||t===`en`||t===`automatic`)return t}catch{}return`automatic`}async applyPreference(t){this.preference.set(t);let n=t===`automatic`?this.detectLocale():t;this.locale.set(n);try{globalThis.localStorage?.setItem(gg,t)}catch{}this.fallbackDict().size===0&&this.fallbackDict.set(new Map(Object.entries(await mg[`pt-BR`]()))),this.dict.set(new Map(Object.entries(await mg[n]()))),this.ready.set(!0),this.collectMissing()}detectLocale(){return(globalThis.navigator?.language??`pt-BR`).toLowerCase().startsWith(`pt`)?`pt-BR`:`en`}collectMissing(){let t=this.dict(),n=[];for(let r of this.fallbackDict().keys())t.has(r)||n.push(r);this.missingKeys.set(n)}t(t,n){let r=this.dict().get(t)??this.fallbackDict().get(t);return r===void 0?`\u27EA${t}\u27EB`:(n&&r.includes(`{`)&&(r=r.replace(/\{(\w+),\s*plural,\s*one\{([^}]*)\}\s*other\{([^}]*)\}\}/g,(o,i,s,a)=>{let c=Number(n[i]);return(c===1?s:a).replace(/#/g,String(c))}),r=r.replace(/\{(\w+)\}/g,(o,i)=>n[i]!==void 0?String(n[i]):o)),r)}translate(t,n){return zr(()=>this.t(t,n))}static ɵfac=function(n){return new(n||e)};static ɵprov=M$1({token:e,factory:e.ɵfac,providedIn:`root`})};var yg=class e{i18n=g$1(us);transform(t,n){return t?(this.i18n.locale(),this.i18n.ready(),this.i18n.t(t,n)):``}static ɵfac=function(n){return new(n||e)};static ɵpipe=cl({name:`t`,type:e,pure:!1})};var vg={dashboard:`<rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/>`,install:`<path d="M12 3v12"/><path d="m7 11 5 5 5-5"/><path d="M4 21h16"/>`,profiles:`<path d="m12 3 9 4.5-9 4.5-9-4.5 9-4.5Z"/><path d="m3 12 9 4.5 9-4.5"/><path d="m3 16.5 9 4.5 9-4.5"/>`,hosts:`<rect x="2.5" y="4" width="19" height="12" rx="2"/><path d="M8 21h8M12 16v5"/>`,mcp:`<rect x="3" y="4" width="18" height="7" rx="2"/><rect x="3" y="13" width="18" height="7" rx="2"/><path d="M7 7.5h.01M7 16.5h.01"/>`,skills:`<path d="M12 4.5 13.7 9l4.5 1.7-4.5 1.7L12 17l-1.7-4.6L5.8 10.7 10.3 9 12 4.5Z"/><path d="M18.5 15.5l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8.8-2Z"/>`,agents:`<rect x="5" y="9" width="14" height="10" rx="2.5"/><path d="M12 5v4"/><circle cx="12" cy="4" r="1"/><path d="M9.5 14h.01M14.5 14h.01"/><path d="M3 13v3M21 13v3"/>`,tasks:`<circle cx="12" cy="12" r="9"/><path d="m10.5 8.8 5.5 3.2-5.5 3.2v-6.4Z"/>`,graph:`<circle cx="6" cy="12" r="2.6"/><circle cx="18" cy="5.5" r="2.6"/><circle cx="18" cy="18.5" r="2.6"/><path d="m8.4 11 7.2-4M8.4 13l7.2 4"/>`,network:`<circle cx="6" cy="12" r="2.5"/><circle cx="18" cy="5" r="2.5"/><circle cx="18" cy="19" r="2.5"/><path d="m8.2 10.8 7.5-4.3M8.2 13.2l7.5 4.3"/>`,knowledge:`<path d="M2.5 4.5C4 3.6 6 3 8 3s3.5.6 4 1.7v14.5c-.5-1.1-2-1.7-4-1.7s-4 .6-5.5 1.5V4.5Z"/><path d="M21.5 4.5C20 3.6 18 3 16 3s-3.5.6-4 1.7v14.5c.5-1.1 2-1.7 4-1.7s4 .6 5.5 1.5V4.5Z"/>`,settings:`<path d="M4 21v-6M4 11V3M12 21v-9M12 8V3M20 21v-4M20 13V3"/><path d="M2 15h4M10 8h4M18 17h4"/>`,refresh:`<path d="M21 12a9 9 0 1 1-2.6-6.3"/><path d="M21 3v6h-6"/>`,folder:`<path d="M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9L9.2 3.9A2 2 0 0 0 7.5 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>`,"chevron-left":`<path d="m15 18-6-6 6-6"/>`,"chevron-right":`<path d="m9 18 6-6-6-6"/>`,sun:`<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/>`,moon:`<path d="M12 3a6.4 6.4 0 0 0 8.9 8 9 9 0 1 1-8.9-8Z"/>`,contrast:`<circle cx="12" cy="12" r="9"/><path d="M12 3v18"/>`,globe:`<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a14.6 14.6 0 0 1 0 18 14.6 14.6 0 0 1 0-18Z"/>`,search:`<circle cx="11" cy="11" r="7"/><path d="m20.5 20.5-4.6-4.6"/>`,copy:`<rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>`,check:`<path d="m4.5 12.5 5 5 10-11"/>`,alert:`<path d="M10.7 4.1 2.4 18.6A2 2 0 0 0 4.1 21.5h15.8a2 2 0 0 0 1.7-2.9L13.3 4.1a2 2 0 0 0-2.6 0Z"/><path d="M12 9.5v4.5M12 17.5h.01"/>`,external:`<path d="M15 3.5h5.5V9"/><path d="m10.5 13.5 10-10"/><path d="M19 13.5V18a2 2 0 0 1-2 2H5.5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2H10"/>`,terminal:`<rect x="3" y="4" width="18" height="16" rx="2"/><path d="m7 9 3 3-3 3"/><path d="M13 15h4"/>`,"shield-check":`<path d="M12 2.5 20 6v6c0 5-3.4 8.4-8 9.5C7.4 20.4 4 17 4 12V6l8-3.5Z"/><path d="m8.8 11.7 2.2 2.2 4.2-4.4"/>`,gem:`<path d="M6 3h12l4 6-10 13L2 9 6 3Z"/><path d="m11 3-3 6 4 13 4-13-3-6"/><path d="M2 9h20"/>`,inbox:`<path d="M22 12h-6l-2 3h-4l-2-3H2"/><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"/>`,compass:`<circle cx="12" cy="12" r="9"/><path d="m15.5 8.5-2 5-5 2 2-5 5-2Z"/>`,key:`<circle cx="8" cy="15" r="4.5"/><path d="m11.2 11.8 8.3-8.3"/><path d="M16 4.5l3.5 3.5"/><path d="m13 7.5 3 3"/>`,diff:`<path d="M12 3v18"/><path d="M8 8l4-4 4 4"/><path d="m8 16 4 4 4-4"/>`,history:`<path d="M3 12a9 9 0 1 0 2.6-6.3"/><path d="M3 4v5h5"/><path d="M12 8v4l3 2"/>`,pulse:`<path d="M3 12h4l2.5-6 4 12 2.5-6h5"/>`};var Eg=class e{sanitizer=g$1(Al);name=Zi$1.required();size=Zi$1(18);strokeWidth=Zi$1(1.75);svg=zr(()=>this.sanitizer.bypassSecurityTrustHtml(vg[this.name()]??vg.dashboard));static ɵfac=function(n){return new(n||e)};static ɵcmp=sl({type:e,selectors:[[`ui-icon`]],inputs:{name:[1,`name`],size:[1,`size`],strokeWidth:[1,`strokeWidth`]},decls:1,vars:6,consts:[[`viewBox`,`0 0 24 24`,`fill`,`none`,`stroke`,`currentColor`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`,`aria-hidden`,`true`,3,`innerHTML`]],template:function(n,r){n&1&&(ti$1(),zi$1(0,`svg`,0)),n&2&&(Gi$1(`width`,r.size(),`px`)(`height`,r.size(),`px`),Wi$1(`innerHTML`,r.svg(),Vc),$i$1(`stroke-width`,r.strokeWidth()))},styles:[`[_nghost-%COMP%]{display:inline-flex;flex-shrink:0;line-height:0}`]})};var K$1=[`panel`];function V$1(o,n){if(o&1){let e=YI();hl(0,`div`,2),dh(`click`,function(){Yu(e);let i=XI();return Qu(i.cancel())}),hl(1,`div`,3,0),dh(`click`,function(i){return i.stopPropagation()})(`keydown`,function(i){Yu(e);let f=XI();return Qu(f.onKeydown(i))}),hl(3,`h2`,4),DD(4),gl(),hl(5,`p`,5),DD(6),gl(),hl(7,`div`,6)(8,`button`,7),dh(`click`,function(){Yu(e);let i=XI();return Qu(i.cancel())}),DD(9),gl(),hl(10,`button`,7),dh(`click`,function(){Yu(e);let i=XI();return Qu(i.accept())}),DD(11),gl()()()()}if(o&2){let e=n,t=XI();Vv(4),yh(t.text(e.title)),Vv(2),yh(t.text(e.message)),Vv(3),ml(` `,t.text(e.cancelKey??`state.cancel`),` `),Vv(),gh(`btn--primary`,!e.danger)(`cd__danger`,!!e.danger),Vv(),ml(` `,t.text(e.confirmKey??`state.confirm`),` `)}}var y=class o{_pending=Te$2(null);pending=this._pending.asReadonly();ask(n){return new Promise(e=>{this._pending()?.resolve(!1),this._pending.set(l(k$1({},n),{resolve:e}))})}settle(n){let e=this._pending();e&&(this._pending.set(null),e.resolve(n))}static ɵfac=function(e){return new(e||o)};static ɵprov=M$1({token:o,factory:o.ɵfac,providedIn:`root`})};var F$1=`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`;var L=class o{confirm=g$1(y);i18n=g$1(us);panel=CL(`panel`);isOpen=!1;prevFocus=null;constructor(){yd(()=>{let n=this.confirm.pending()!==null;if(n&&!this.isOpen)this.isOpen=!0,this.prevFocus=document.activeElement,setTimeout(()=>this.focusInitial());else if(!n&&this.isOpen){this.isOpen=!1;let e=this.prevFocus;this.prevFocus=null,setTimeout(()=>{e?.isConnected&&e.focus()})}})}text(n){let e=this.i18n.t(n);return e.startsWith(`⟪`)?n:e}accept(){this.confirm.settle(!0)}cancel(){this.confirm.settle(!1)}onKeydown(n){if(n.key===`Escape`){n.preventDefault(),n.stopPropagation(),this.cancel();return}if(n.key!==`Tab`)return;let e=this.panel()?.nativeElement;if(!e)return;let t=[...e.querySelectorAll(F$1)].filter(D=>!D.hasAttribute(`disabled`));if(t.length===0){n.preventDefault(),e.focus();return}let i=t[0],f=t[t.length-1],u=document.activeElement;(n.shiftKey?u===i||!e.contains(u):u===f||!e.contains(u))&&(n.preventDefault(),(n.shiftKey?f:i).focus())}focusInitial(){let n=this.panel()?.nativeElement;if(!n)return;let e=n.querySelectorAll(`.cd__actions .btn`);((this.confirm.pending()?.danger?e[0]:e[e.length-1])??n).focus()}static ɵfac=function(e){return new(e||o)};static ɵcmp=sl({type:o,selectors:[[`ui-confirm-host`]],viewQuery:function(e,t){e&1&&hh(t.panel,K$1,5),e&2&&oD()},hostBindings:function(e,t){e&1&&uh(`keydown.escape`,function(){return t.cancel()},iv)},decls:1,vars:1,consts:[[`panel`,``],[1,`cd`],[1,`cd`,3,`click`],[`role`,`dialog`,`aria-modal`,`true`,`aria-labelledby`,`ui-confirm-title`,`aria-describedby`,`ui-confirm-desc`,`tabindex`,`-1`,1,`cd__panel`,3,`click`,`keydown`],[`id`,`ui-confirm-title`,1,`cd__title`],[`id`,`ui-confirm-desc`,1,`cd__msg`],[1,`cd__actions`],[`type`,`button`,1,`btn`,3,`click`]],template:function(e,t){if(e&1&&jI(0,V$1,12,8,`div`,1),e&2){let i;HI((i=t.confirm.pending())?0:-1,i)}},styles:[`.cd[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:var(--%NS%z-dialog, 100);display:grid;place-items:center;padding:var(--%NS%space-4);background:var(--%NS%scrim)}.cd__panel[_ngcontent-%COMP%]{width:min(26rem,100%);padding:var(--%NS%space-5);background:var(--%NS%bg-elevated);border:1px solid var(--%NS%border-strong);border-radius:var(--%NS%radius-lg);box-shadow:var(--%NS%elev-pop);animation:_ngcontent-%COMP%_cd-in var(--%NS%fg-motion-med) var(--%NS%ease-out) both}.cd__panel[_ngcontent-%COMP%]:focus{outline:none}.cd__title[_ngcontent-%COMP%]{margin:0 0 var(--%NS%space-2);font-size:var(--%NS%font-lg)}.cd__msg[_ngcontent-%COMP%]{margin:0;color:var(--%NS%fg-muted);font-size:var(--%NS%font-sm);max-width:60ch}.cd__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:var(--%NS%space-2);margin-top:var(--%NS%space-5)}.cd__danger[_ngcontent-%COMP%]{background:var(--%NS%error);border-color:var(--%NS%error);color:#fff}.cd__danger[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--%NS%error) 86%,black);border-color:color-mix(in srgb,var(--%NS%error) 86%,black);box-shadow:0 2px 10px color-mix(in srgb,var(--%NS%error) 40%,transparent)}@keyframes _ngcontent-%COMP%_cd-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.cd__panel[_ngcontent-%COMP%]{animation:none}}`]})};var D=(n,e)=>e.id;function E$1(n,e){if(n&1){let t=YI();hl(0,`div`,1)(1,`p`,2),DD(2),gl(),hl(3,`button`,3),kD(4,`t`),dh(`click`,function(){let o=Yu(t).$implicit,r=XI();return Qu(r.toast.dismiss(o.id))}),hl(5,`span`,4),DD(6,`×`),gl()()()}if(n&2){let t=e.$implicit;$i$1(`data-kind`,t.kind)(`role`,t.kind===`error`?`alert`:null),Vv(2),yh(t.text),Vv(),$i$1(`aria-label`,LD(4,4,`notify.dismiss`))}}var R=3;var U$2={success:4500,info:4500,error:7e3};var f$1=class n{i18n=g$1(us);nextId=1;timers=new Map;_items=Te$2([]);items=this._items.asReadonly();show(e,t=`info`,i){let o={id:this.nextId++,text:this.resolve(e,i?.params),kind:t},r=[...this._items(),o];for(;r.length>R;){let g=r.shift();g&&this.clearTimer(g.id)}return this._items.set(r),this.timers.set(o.id,setTimeout(()=>this.dismiss(o.id),U$2[t])),o.id}dismiss(e){this.clearTimer(e),this._items.update(t=>t.filter(i=>i.id!==e))}ngOnDestroy(){for(let e of this.timers.values())clearTimeout(e);this.timers.clear()}clearTimer(e){let t=this.timers.get(e);t!==void 0&&(clearTimeout(t),this.timers.delete(e))}resolve(e,t){let i=this.i18n.t(e,B(t));return i.startsWith(`⟪`)?e:i}static ɵfac=function(t){return new(t||n)};static ɵprov=M$1({token:n,factory:n.ɵfac,providedIn:`root`})};function B(n){if(!n)return;let e={};for(let[t,i]of Object.entries(n))typeof i==`string`||typeof i==`number`?e[t]=i:typeof i==`boolean`&&(e[t]=String(i));return e}var I=class n{toast=g$1(f$1);dismissNewest(){let e=this.toast.items(),t=e[e.length-1];t&&this.toast.dismiss(t.id)}static ɵfac=function(t){return new(t||n)};static ɵcmp=sl({type:n,selectors:[[`ui-toast-outlet`]],hostBindings:function(t,i){t&1&&uh(`keydown.escape`,function(){return i.dismissNewest()},iv)},decls:4,vars:3,consts:[[`role`,`region`,`aria-live`,`polite`,1,`toasts`],[1,`toast`],[1,`toast__text`],[`type`,`button`,1,`toast__close`,3,`click`],[`aria-hidden`,`true`]],template:function(t,i){t&1&&(hl(0,`div`,0),kD(1,`t`),$I(2,E$1,7,6,`div`,1,D),gl()),t&2&&($i$1(`aria-label`,LD(1,1,`notify.region`)),Vv(2),zI(i.toast.items()))},dependencies:[yg],styles:[`[_nghost-%COMP%]{position:fixed;right:var(--%NS%space-4);bottom:var(--%NS%space-4);z-index:var(--%NS%z-toast, 120);pointer-events:none}.toasts[_ngcontent-%COMP%]{display:grid;gap:var(--%NS%space-2);width:min(360px,calc(100vw - 2 * var(--%NS%space-4)))}.toast[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:var(--%NS%space-3);padding:var(--%NS%space-3);padding-left:calc(var(--%NS%space-3) + 3px);background:color-mix(in srgb,var(--%NS%toast-c, var(--%NS%info)) 6%,var(--%NS%bg-elevated));border:1px solid var(--%NS%border-strong);border-left:3px solid var(--%NS%toast-c, var(--%NS%info));border-radius:var(--%NS%radius-lg);box-shadow:var(--%NS%elev-pop);color:var(--%NS%fg);pointer-events:auto;animation:_ngcontent-%COMP%_toast-in var(--%NS%fg-motion-med) var(--%NS%ease-out) both}.toast[_ngcontent-%COMP%]:before{content:"";width:8px;height:8px;border-radius:50%;margin-top:6px;flex:none;background:var(--%NS%toast-c, var(--%NS%info));box-shadow:0 0 0 3px color-mix(in srgb,var(--%NS%toast-c, var(--%NS%info)) 20%,transparent)}.toast[data-kind=success][_ngcontent-%COMP%]{--%NS%toast-c: var(--%NS%ok)}.toast[data-kind=error][_ngcontent-%COMP%]{--%NS%toast-c: var(--%NS%error)}.toast__text[_ngcontent-%COMP%]{flex:1;margin:0;font-size:var(--%NS%font-sm);line-height:1.4;overflow-wrap:anywhere}.toast__close[_ngcontent-%COMP%]{display:grid;place-items:center;width:26px;height:26px;flex:none;padding:0;border:0;border-radius:var(--%NS%radius-sm);background:transparent;color:var(--%NS%fg-muted);font-size:1rem;line-height:1;cursor:pointer;transition:color var(--%NS%motion-fast),background var(--%NS%motion-fast)}.toast__close[_ngcontent-%COMP%]:hover{color:var(--%NS%fg);background:var(--%NS%bg-hover)}@keyframes _ngcontent-%COMP%_toast-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.toast[_ngcontent-%COMP%]{animation:none}}`]})};var h=`forge-portal.scheme`;var f=[`the-forge`,`spark-forge-aws`,`spark-forge-azure`,`api-forge`,`platform-forge`,`forge-doctor-data`,`forge-doctor-api`];var n=class o{scheme=Te$2(`system`);forge=Te$2(`the-forge`);media=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`);constructor(){try{let e=globalThis.localStorage?.getItem(h);(e===`light`||e===`dark`||e===`system`)&&this.scheme.set(e)}catch{}this.media?.addEventListener(`change`,()=>this.apply()),this.apply()}setScheme(e){this.scheme.set(e);try{globalThis.localStorage?.setItem(h,e)}catch{}this.apply()}setForge(e){this.forge.set(this.normalizeForge(e)),this.apply()}normalizeForge(e){return f.includes(e)?e:`the-forge`}apply(){let e=globalThis.document?.documentElement;if(!e)return;let t=this.scheme()===`system`?this.media?.matches?`dark`:`light`:this.scheme();e.dataset.scheme=t,e.dataset.forge=this.forge()}static ɵfac=function(t){return new(t||o)};static ɵprov=M$1({token:o,factory:o.ɵfac,providedIn:`root`})};var g=class o{api=g$1(hg);theme=g$1(n);status=Te$2(`booting`);descriptor=Te$2(null);health=Te$2(null);accountEnvironment=Te$2(null);lastError=Te$2(null);refreshedAt=Te$2(null);forgeId=zr(()=>this.descriptor()?.forge_id??`the-forge`);forgeName=zr(()=>this.descriptor()?.forge_name??`Forge Portal`);federated=zr(()=>this.descriptor()?.federated??!1);capabilities=zr(()=>this.descriptor()?.capabilities??[]);nav=zr(()=>this.descriptor()?.nav??[]);workspace=zr(()=>this.descriptor()?.workspace??null);hasCapability(e){return this.capabilities().find(m=>m.id===e)?.state===`supported`}async bootstrap(){this.status.set(`booting`);try{let e=await Tg(this.api.bootstrap());this.applyBootstrap(e)}catch(e){let t=e instanceof jn$1?e:new jn$1(0);this.lastError.set(t),this.status.set(`offline`)}}async refreshHealth(){try{let e=await Tg(this.api.installationStatus());this.health.set(e),this.accountEnvironment.set(e.account_environment??this.accountEnvironment()),this.refreshedAt.set(new Date().toISOString()),this.lastError.set(null)}catch(e){let t=e instanceof jn$1?e:new jn$1(0);this.lastError.set(t),t.transport&&this.status.set(`offline`)}}applyBootstrap(e){this.descriptor.set(e.descriptor),this.health.set(e.health),this.accountEnvironment.set(e.account_environment??e.health.account_environment??null),this.lastError.set(null),this.refreshedAt.set(new Date().toISOString()),this.theme.setForge(e.descriptor.theme??e.descriptor.forge_id),this.status.set(e.health.state===`DEGRADED`?`degraded`:`ready`)}static ɵfac=function(t){return new(t||o)};static ɵprov=M$1({token:o,factory:o.ɵfac,providedIn:`root`})};var p=`primary`;var Fe$1=Symbol(`RouteTitle`);var Kt=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ie(t){return new Kt(t)}function Bt(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function an(t,n,e){let r=e.path.split(`/`),i=r.indexOf(`**`);if(i===-1){if(r.length>t.length||e.pathMatch===`full`&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return Bt(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf(`**`))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch===`full`&&n.hasChildren()&&e.path!==`**`)return null;let c={};return!Bt(o,t.slice(0,o.length),c)||!Bt(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function ct(t){return new Promise((n,e)=>{t.pipe(Qg()).subscribe({next:r=>n(r),error:r=>e(r)})})}function Xn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!F(t[e],n[e]))return!1;return!0}function F(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!sn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function sn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function ei(t){return t.length>0?t[t.length-1]:null}function ue(t){return Fg(t)?t:il(t)?ot$1(Promise.resolve(t)):Is(t)}function cn(t){return Fg(t)?ct(t):Promise.resolve(t)}var ti={exact:ln,subset:dn};var un={exact:ri,subset:ni,ignored:()=>!0};var lr={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var ve={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function dr(t,n,e){let r=t instanceof M?t:n.parseUrl(t);return zr(()=>ut(n.lastSuccessfulNavigation()?.finalUrl??new M,r,e))}function ut(t,n,e){let r=k$1(k$1({},ve),e||{});return ti[r.paths](t.root,n.root,r.matrixParams)&&un[r.queryParams](t.queryParams,n.queryParams)&&!(r.fragment===`exact`&&t.fragment!==n.fragment)}function ri(t,n){return F(t,n)}function ln(t,n,e){if(!ne(t.segments,n.segments)||!ot(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!ln(t.children[r],n.children[r],e))return!1;return!0}function ni(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>sn(t[e],n[e]))}function dn(t,n,e){return hn(t,n,n.segments,e)}function hn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ne(i,e)||n.hasChildren()||!ot(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!ot(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!dn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ne(t.segments,i)||!ot(t.segments,i,r)||!t.children[p]?!1:hn(t.children[p],n,o,r)}}function ot(t,n,e){return n.every((r,i)=>un[e](t[i].parameters,r.parameters))}var M=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return si.serialize(this)}};var m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return at(this)}};var K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return pn(this)}};function ii(t,n){return ne(t,n)&&t.every((e,r)=>F(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function oi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var Ce$1=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:()=>new Y$1})}return t})();var Y$1=class{parse(n){let e=new Jt(n);return new M(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Te$1(n.root,!0)}`;ai(e)&&(e=`/`);let r=li(n.queryParams),i=typeof n.fragment==`string`?`#${ci(n.fragment)}`:``;return`${e}${r}${i}`}};var Jr=`http://fake`;function ai(t){try{let n=new URL(t,Jr);return n.origin!==Jr||n.pathname.startsWith(`//`)}catch{return!0}}var si=new Y$1;function at(t){return t.segments.map(n=>pn(n)).join(`/`)}function Te$1(t,n){if(!t.hasChildren())return at(t);if(n){let e=t.children[p]?Te$1(t.children[p],!1):``,r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${Te$1(o,!1)}`)}),r.length>0?`${e}(${r.join(`//`)})`:e}else{let e=oi(t,(r,i)=>i===p?[Te$1(t.children[p],!1)]:[`${i}:${Te$1(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${at(t)}/${e[0]}`:`${at(t)}/(${e.join(`//`)})`}}function fn(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function nt(t){return fn(t).replace(/%3B/gi,`;`)}function ci(t){return encodeURI(t)}function Zt(t){return fn(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function st(t){return decodeURIComponent(t)}function Xr(t){return st(t.replace(/\+/g,`%20`))}function pn(t){return`${Zt(t.path)}${ui(t.parameters)}`}function ui(t){return Object.entries(t).map(([n,e])=>`;${Zt(n)}=${Zt(e)}`).join(``)}function li(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${nt(e)}=${nt(i)}`).join(`&`):`${nt(e)}=${nt(r)}`).filter(e=>e);return n.length?`?${n.join(`&`)}`:``}var Vt=1073741824;function lt(t,n,e){Number(n)>=32&&!Object.hasOwn(t,Vt)&&(t[Vt]=e,delete t[Vt]),t[n]=e}var di=/^[^\/()?;#]+/;function Wt(t){let n=t.match(di);return n?n[0]:``}var hi=/^[^\/()?;=#]+/;function fi(t){let n=t.match(hi);return n?n[0]:``}var pi=/^[^=?&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:``}var vi=/^[^&#]+/;function mi(t){let n=t.match(vi);return n?n[0]:``}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional(`?`))do this.parseQueryParam(n);while(this.consumeOptional(`&`));return n}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new y$1(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let r={};this.peekStartsWith(`/(`)&&(this.capture(`/`),r=this.parseParens(!0,n));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=Wt(this.remaining);if(n===``&&this.peekStartsWith(`;`))throw new y$1(4009,!1);return this.capture(n),new K(st(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(`;`);)this.parseParam(n);return n}parseParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}lt(n,st(e),st(r))}parseQueryParam(n){let e=gi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let a=mi(this.remaining);a&&(r=a,this.capture(r))}let i=Xr(e),o=Xr(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=Wt(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new y$1(4010,!1);let a;i.indexOf(`:`)>-1?(a=i.slice(0,i.indexOf(`:`)),this.capture(a),this.capture(`:`)):n&&(a=p);let c=this.parseChildren(e+1),s=Object.keys(c).length===1&&c[p]?c[p]:new m([],c);lt(r,a??p,s),this.consumeOptional(`//`)}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new y$1(4011,!1)}};function gn(t){return t.segments.length>0?new m([],{[p]:t}):t}function vn(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=vn(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))lt(n,a,c);else(o.segments.length>0||o.hasChildren())&&lt(n,r,o)}return yi(new m(t.segments,n))}function yi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function Z$1(t){return t instanceof M}function mn(t,n,e=null,r=null,i=new Y$1){return Rn(yn(t),n,e,r,i)}function yn(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u}let c=new m(o.url,a);return o===t&&(n=c),c}let i=gn(e(t.root));return n??i}function Rn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let a=Ri(n);if(a.toRoot())return Gt(o,o,new m([],{}),e,r,i);let c=Si(a,o,t),s=c.processChildren?_e(c.segmentGroup,c.index,a.commands):Cn(c.segmentGroup,c.index,a.commands);return Gt(o,c.segmentGroup,s,e,r,i)}function dt(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Le$1(t){return typeof t==`object`&&t!=null&&t.outlets}function en(t,n,e){t||=`ɵ`;let r=new M;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let a={};for(let[u,l]of Object.entries(r??{}))a[u]=Array.isArray(l)?l.map(v=>en(u,v,o)):en(u,l,o);let c;t===n?c=e:c=Sn(t,n,e);return new M(gn(vn(c)),a,i)}function Sn(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Sn(o,n,e)}),new m(t.segments,r)}var ht=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&dt(r[0]))throw new y$1(4003,!1);let i=r.find(Le$1);if(i&&i!==ei(r))throw new y$1(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function Ri(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new ht(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:a===0?(o.split(`/`).forEach((c,s)=>{s==0&&c===`.`||(s==0&&c===``?e=!0:c===`..`?n++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new ht(e,n,r)}var pe=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Si(t,n,e){if(t.isAbsolute)return new pe(n,!0,0);if(!e)return new pe(n,!1,NaN);if(e.parent===null)return new pe(e,!0,0);let r=dt(t.commands[0])?0:1;return Ci(e,e.segments.length-1+r,t.numberOfDoubleDots)}function Ci(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new y$1(4005,!1);i=r.segments.length}return new pe(r,!1,i-o)}function wi(t){return Le$1(t[0])?t[0].outlets:{[p]:t}}function Cn(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=bi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),_e(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?Xt(t,n,e):r.match?_e(t,0,i):Xt(t,n,e)}function _e(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=wi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=_e(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a==`string`&&(a=[a]),a!==null&&(i[o]=Cn(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new m(t.segments,i)}}function bi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Le$1(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u==`object`&&u.outlets===void 0){if(!rn(s,u,a))return o;r+=2}else{if(!rn(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Xt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Le$1(o))return new m(r,Ii(o.outlets));if(i===0&&dt(e[0])){let s=t.segments[n];r.push(new K(s.path,tn(e[0]))),i++;continue}let a=Le$1(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&dt(c)?(r.push(new K(a,tn(c))),i+=2):(r.push(new K(a,{})),i++)}return new m(r,{})}function Ii(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(n[e]=Xt(new m([],{}),0,r))}),n}function tn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function rn(t,n,e){return t==e.path&&F(n,e.parameters)}var ft=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new oe(this.rootInjector)}resetChildren(){this.children=new oe(this.rootInjector)}};var oe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new ft(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(r){return new(r||t)(T(ae$1))};static ɵprov=M$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var pt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=er(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=er(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=tr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return tr(n,this._root).map(e=>e.value)}};function er(t,n){if(t===n.value)return n;for(let e of n.children){let r=er(t,e);if(r)return r}return null}function tr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=tr(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function fe(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var je$1=class extends pt{snapshot;constructor(n,e){super(n),this.snapshot=e,fr(this,n)}toString(){return this.snapshot.toString()}};function wn(t,n){let e=Ei(t,n),r=new zn$1([new K(``,{})]),i=new zn$1({}),o=new zn$1({}),s=new V(r,i,new zn$1({}),new zn$1(``),o,p,t,e.root);return s.snapshot=e.root,new je$1(new E(s,[]),e)}function Ei(t,n){return new xe$1(``,new E(new me([],{},{},``,{},p,t,null,{},n),[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(K$2(u=>u[Fe$1]))??Is(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(K$2(n=>ie(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(K$2(n=>ie(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}};var Mi=`always`;function hr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e===`always`||i?.path===``||!n.component&&!n.routeConfig?.loadComponent)?r={params:Object.keys(t.params).length===0?n.params:Object.freeze(k$1(k$1({},n.params),t.params)),data:Object.freeze(k$1(k$1({},n.data),t.data)),resolve:k$1(k$1(k$1(k$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:Object.freeze(k$1({},t.params)),data:Object.freeze(k$1({},t.data)),resolve:k$1(k$1({},t.data),t._resolvedData??{})},i&&In(i)&&(r.resolve[Fe$1]=i.title),r}var me=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[Fe$1]}constructor(n,e,r,i,o,a,c,s,u,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var xe$1=class extends pt{url;constructor(n,e){super(e),this.url=n,fr(this,e)}toString(){return bn(this._root)}};function fr(t,n){n.value._routerState=t,n.children.forEach(e=>fr(t,e))}function bn(t){let n=t.children.length>0?` { ${t.children.map(bn).join(`, `)} } `:``;return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,F(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),F(n.params,e.params)||t.paramsSubject.next(e.params),Xn(n.url,e.url)||t.urlSubject.next(e.url),F(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function rr(t,n){let e=F(t.params,n.params)&&ii(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||rr(t.parent,n.parent))}function In(t){return typeof t.title==`string`||t.title===null}var En=new b$1(``);var pr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new He$2;deactivateEvents=new He$2;attachEvents=new He$2;detachEvents=new He$2;routerOutletData=Zi$1();parentContexts=g$1(oe);location=g$1(Bi$1);changeDetector=g$1(_L);inputBinder=g$1(Be$1,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y$1(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y$1(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y$1(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new y$1(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new nr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(r){return new(r||t)};static ɵdir=bI({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[ry]})}return t})();var nr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===V?this.route:n===oe?this.childContexts:n===En?this.outletData:this.parent.get(n,e)}};var Be$1=new b$1(``);var Mn=(()=>{class t{options;feature;outletDataSubscriptions=new Map;outletSeenKeys=new Map;outletEffects=new Map;constructor(e,r=null){this.options=e,this.feature=r,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e,r){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e,r)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e),this.outletEffects.get(e)?.forEach(r=>r.destroy()),this.outletEffects.delete(e)}subscribeToRouteData(e,r){let{activatedRoute:i}=e,o=[],a=[];if(this.feature?.createResourceOutletBindingEffects&&e.activatedComponentRef){let{handledKeys:s,createdEffects:u}=this.feature.createResourceOutletBindingEffects(e.activatedComponentRef,i);o.push(...u),a=s}o.length>0&&this.outletEffects.set(e,o);let c=Wg([this.options.queryParams?i.queryParams:Is({}),i.params,i.data]).pipe(iu(([s,u,l],v)=>(l=k$1(k$1(k$1(k$1({},s),u),l),i.resources),v===0?Is(l):Promise.resolve(l)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let u=xL(i.component);if(!u){this.unsubscribeFromRouteData(e);return}let l=this.outletSeenKeys.get(e);l||(l=new Set,this.outletSeenKeys.set(e,l));for(let f of Object.keys(s))l.add(f);let v=this.options.unmatchedInputBehavior??`alwaysUndefined`;for(let{templateName:f}of u.inputs){if(a.includes(f))continue;let R=s[f];(R!==void 0||v===`alwaysUndefined`||l.has(f))&&e.activatedComponentRef.setInput(f,R)}});this.outletDataSubscriptions.set(e,c)}static ɵfac=function(r){kE()};static ɵprov=M$1({token:t,factory:t.ɵfac})}return t})();var gr=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵcmp=sl({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(r,i){r&1&&ah(0,`router-outlet`)},dependencies:[pr],encapsulation:2,changeDetection:1})}return t})();function vr(t){let n=t.children&&t.children.map(vr),e=n?l(k$1({},t),{children:n}):k$1({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=gr),e}var Ue$1=`imperative`;var w=(function(t){return t[t.NavigationStart=0]=`NavigationStart`,t[t.NavigationEnd=1]=`NavigationEnd`,t[t.NavigationCancel=2]=`NavigationCancel`,t[t.NavigationError=3]=`NavigationError`,t[t.RoutesRecognized=4]=`RoutesRecognized`,t[t.ResolveStart=5]=`ResolveStart`,t[t.ResolveEnd=6]=`ResolveEnd`,t[t.GuardsCheckStart=7]=`GuardsCheckStart`,t[t.GuardsCheckEnd=8]=`GuardsCheckEnd`,t[t.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,t[t.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,t[t.ChildActivationStart=11]=`ChildActivationStart`,t[t.ChildActivationEnd=12]=`ChildActivationEnd`,t[t.ActivationStart=13]=`ActivationStart`,t[t.ActivationEnd=14]=`ActivationEnd`,t[t.Scroll=15]=`Scroll`,t[t.NavigationSkipped=16]=`NavigationSkipped`,t})(w||{});var U$1=class{id;url;constructor(n,e){this.id=n,this.url=e}};var ae=class extends U$1{type=w.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r=`imperative`,i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var z$1=class extends U$1{urlAfterRedirects;type=w.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var b=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromResolver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(b||{});var ke$1=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(ke$1||{});var j$1=class extends U$1{reason;code;type=w.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function An(t){return t instanceof j$1&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var W=class extends U$1{reason;code;type=w.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}};var se=class extends U$1{error;target;type=w.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var $e$1=class extends U$1{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var gt=class extends U$1{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var vt=class extends U$1{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var mt=class extends U$1{urlAfterRedirects;state;type=w.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var yt=class extends U$1{urlAfterRedirects;state;type=w.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Rt=class{route;type=w.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var St=class{route;type=w.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var Ct=class{snapshot;type=w.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var wt=class{snapshot;type=w.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var bt=class{snapshot;type=w.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var It=class{snapshot;type=w.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var ye=class{};var ze$1=class{};var Re$1=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ai(t){return!(t instanceof ye)&&!(t instanceof Re$1)&&!(t instanceof ze$1)}function Di(t,n,e){let r=new Set;return{newlyCreatedRoutes:r,state:new je$1(qe$1(t,n._root,e?e._root:void 0,r),n)}}function qe$1(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._setPending(n.value);return new E(i,Ti(t,n,e,r))}else{if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._setPending(n.value),c.children=n.children.map(s=>qe$1(t,s,void 0,r)),c}}let i=Ni(n.value);i._setPending(n.value),r.add(i);return new E(i,n.children.map(a=>qe$1(t,a,void 0,r)))}}function Ti(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return qe$1(t,i,o,r);return qe$1(t,i,void 0,r)})}function Ni(t){return new V(new zn$1(t.url),new zn$1(t.params),new zn$1(t.queryParams),new zn$1(t.fragment),new zn$1(t.data),t.outlet,t.component,t)}var ce=class t extends Error{redirectTo;navigationBehaviorOptions;constructor(n,e){super(),this.redirectTo=n,this.navigationBehaviorOptions=e,Object.setPrototypeOf(this,t.prototype)}};var Dn=`ngNavigationCancelingError`;function Oe$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Tn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Tn(t,n){let e=new Error(`NavigationCancelingError: ${t||``}`);return e[Dn]=!0,e.cancellationCode=n,e}function _i(t){return Nn(t)&&Z$1(t.url)}function Nn(t){return!!t&&t[Dn]}var ir=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=fe(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=fe(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.contexts;r.resetChildren(),this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=fe(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,r){let i=fe(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new It(o.value.snapshot))}),n.children.length&&this.forwardEvent(new wt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Qt(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),Qt(c.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}};var Et=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}};var ge=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Ui(t,n,e){let r=t._root;return Ne$1(r,n?n._root:null,e,[r.value])}function Oi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function we$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t==`function`&&!um(t)?t:n.get(t):r}function Ne$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fe(n);return t.children.forEach(a=>{Pi(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,c])=>Pe(c,e.getContext(a),e,i)),i}function Pi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Li(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Et(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Ne$1(t,n,c?c.children:null,r,i):Ne$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new ge(c.outlet.component,a))}else a&&Pe(n,c,e,i),i.canActivateChecks.push(new Et(r)),o.component?Ne$1(t,null,c?c.children:null,r,i):Ne$1(t,null,e,r,i);return i}function Li(t,n,e){if(typeof e==`function`)return mn$1(n._environmentInjector,()=>e(t,n));switch(e){case`pathParamsChange`:return!ne(t.url,n.url);case`pathParamsOrQueryParamsChange`:return!ne(t.url,n.url)||!F(t.queryParams,n.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!rr(t,n)||!F(t.queryParams,n.queryParams);default:return!rr(t,n)}}function Pe(t,n,e,r){let i=fe(t),o=t.value;Object.entries(i).forEach(([a,c])=>{o.component?n?Pe(c,n.children.getContext(a),n.children,r):Pe(c,null,null,r):Pe(c,e?e.getContext(a):null,e,r)}),o.component?n&&n.outlet&&n.outlet.isActivated?r.canDeactivateChecks.push(new ge(n.outlet.component,o)):r.canDeactivateChecks.push(new ge(null,o)):r.canDeactivateChecks.push(new ge(null,o))}function Ve$1(t){return typeof t==`function`}function ji(t){return typeof t==`boolean`}function xi(t){return t&&Ve$1(t.canLoad)}function ki(t){return t&&Ve$1(t.canActivate)}function $i(t){return t&&Ve$1(t.canActivateChild)}function zi(t){return t&&Ve$1(t.canDeactivate)}function qi(t){return t&&Ve$1(t.canMatch)}function _n(t){return t instanceof Tt$1||t?.name===`EmptyError`}var it=Symbol(`INITIAL_VALUE`);function Se$1(){return iu(t=>Wg(t.map(n=>n.pipe(Ts(1),Kg(it)))).pipe(K$2(n=>{for(let e of n)if(e!==!0){if(e===it)return it;if(e===!1||Hi(e))return e}return!0}),Gn$1(n=>n!==it),Ts(1)))}function Hi(t){return Z$1(t)||t instanceof ce}function Un(t){return t.aborted?Is(void 0).pipe(Ts(1)):new _(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function On(t){return Jg(Un(t))}function Fi(t){return _t(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Is(l(k$1({},n),{guardsResult:!0})):Bi(o,e,r).pipe(_t(a=>a&&ji(a)?Vi(e,i,t):Is(a)),K$2(a=>l(k$1({},n),{guardsResult:a})))})}function Bi(t,n,e){return ot$1(t).pipe(_t(r=>Yi(r.component,r.route,e,n)),Qg(r=>r!==!0,!0))}function Vi(t,n,e){return ot$1(n).pipe(bs(r=>wo$1(Gi(r.route.parent,e),Wi(r.route,e),Ki(t,r.path),Qi(t,r.route))),Qg(r=>r!==!0,!0))}function Wi(t,n){return t!==null&&n&&n(new bt(t)),Is(!0)}function Gi(t,n){return t!==null&&n&&n(new Ct(t)),Is(!0)}function Qi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Is(!0);let r=e.map(i=>qg(()=>{let o=n._environmentInjector,a=we$1(i,o);return ue(ki(a)?a.canActivate(n,t):mn$1(o,()=>a(n,t))).pipe(Qg())}));return Is(r).pipe(Se$1())}function Ki(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Oi(o)).filter(o=>o!==null).map(o=>qg(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=we$1(c,s);return ue($i(u)?u.canActivateChild(e,t):mn$1(s,()=>u(e,t))).pipe(Qg())});return Is(a).pipe(Se$1())}));return Is(i).pipe(Se$1())}function Yi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Is(!0);let o=i.map(a=>{let c=n._environmentInjector,s=we$1(a,c);return ue(zi(s)?s.canDeactivate(t,n,e,r):mn$1(c,()=>s(t,n,e,r))).pipe(Qg())});return Is(o).pipe(Se$1())}function Zi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Is(!0);let a=o.map(c=>{let s=we$1(c,t),l=ue(xi(s)?s.canLoad(n,e):mn$1(t,()=>s(n,e)));return i?l.pipe(On(i)):l});return Is(a).pipe(Se$1(),Pn(r))}function Pn(t){return Sg(em(n=>{if(typeof n!=`boolean`)throw Oe$1(t,n)}),K$2(n=>n===!0))}function Ji(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Is(!0);let c=a.map(s=>{let u=we$1(s,t);return ue(qi(u)?u.canMatch(n,e,i):mn$1(t,()=>u(n,e,i))).pipe(On(o))});return Is(c).pipe(Se$1(),Pn(r))}var H$1=class t extends Error{name=`NoMatch`;segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}};var He$1=class t extends Error{urlTree;name=`AbsoluteRedirect`;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function Xi(t){throw new y$1(4e3,!1)}function eo(t){throw Tn(!1,b.GuardRejected)}var or=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Xi(`${n.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(n,e,r,i,o){let a=await to(e,i,o);if(a instanceof M)throw new He$1(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]===`/`)throw new He$1(c);return c}applyRedirectCreateUrlTree(n,e,r,i){return new M(this.createSegmentGroup(n,e.root,r,i),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);r[i]=e[c]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i)}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new y$1(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function to(t,n,e){if(typeof t==`string`)return Promise.resolve(t);let r=t;return ct(ue(mn$1(e,()=>r(n))))}function ro(t,n){return t.providers&&!t._injector&&(t._injector=Kp(t.providers,n,`Route: ${t.path}`)),t._injector??n}function $(t){return t.outlet||p}function no(t,n){let e=t.filter(r=>$(r)===n);return e.push(...t.filter(r=>$(r)!==n)),e}var ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ln(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function io(t,n,e,r,i,o,a){let c=jn(t,n,e);if(!c.matched)return Is(c);let s=Ln(o(c));return r=ro(n,r),Ji(r,n,e,i,s,a).pipe(K$2(u=>u===!0?c:k$1({},ar)))}function jn(t,n,e){if(n.path===``)return n.pathMatch===`full`&&(t.hasChildren()||e.length>0)?k$1({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||an)(e,t,n);if(!i)return k$1({},ar);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path});let a=i.consumed.length>0?k$1(k$1({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function nn(t,n,e,r,i){return e.length>0&&so(t,e,r,i)?{segmentGroup:new m(n,ao(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&co(t,e,r)?{segmentGroup:new m(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(At(t,n,o)&&!r[$(o)]){let a=new m([],{});i[$(o)]=a}return k$1(k$1({},r),i)}function ao(t,n){let e={};e[p]=n;for(let r of t)if(r.path===``&&$(r)!==p){let i=new m([],{});e[$(r)]=i}return e}function so(t,n,e,r){return e.some(i=>!At(t,n,i)||!($(i)!==p)?!1:!(r!==void 0&&$(i)===r))}function co(t,n,e){return e.some(r=>At(t,n,r))}function At(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch===`full`?!1:e.path===``}function uo(t,n,e){return n.length===0&&!t.hasChildren()}var sr=class{};async function lo(t,n,e,r,i,o,a,c){return new cr(t,n,e,r,i,a,o,c).recognize()}var ho=31;var cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;queryParams;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new or(this.urlSerializer,this.urlTree),this.queryParams=Object.freeze(k$1({},this.urlTree.queryParams))}noMatchError(n){return new y$1(4002,`'${n.segmentGroup}'`)}async recognize(){let n=nn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),o=new xe$1(``,new E(r,e)),a=mn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(n){let e=new me([],Object.freeze({}),this.queryParams,this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof He$1)return this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1),this.urlTree=r.urlTree,this.queryParams=Object.freeze(k$1({},this.urlTree.queryParams)),this.match(r.urlTree.root);throw r instanceof H$1?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=await this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof E?[a]:[]}async processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s===`primary`?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],l=no(e,s),v=await this.processSegment(n,l,u,u.segments,s,!0,i);v instanceof E&&a.push(v)}let c=xn(a);return fo(c),c}async processSegment(n,e,r,i,o,a,c){for(let s of e)try{return await this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof H$1||_n(u))continue;throw u}if(uo(r,i))return new sr;throw new H$1(r)}async processSegmentAgainstRoute(n,e,r,i,o,a,c,s){if($(r)!==a&&(a===p||!At(i,o,r)||!r.children?.length&&!r.loadChildren||o.length===0&&!i.hasChildren()))throw new H$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new H$1(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){let{matched:s,parameters:u,consumedSegments:l,positionalParamSegments:v,remainingSegments:f}=jn(e,i,o);if(!s)throw new H$1(e);let R=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let x=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,Ln(R),n),J=await this.applyRedirects.lineralizeSegments(i,x);return this.processSegment(n,r,e,J.concat(f),a,!1,c)}createSnapshot(n,e,r,i,o){let a=new me(r,i,this.queryParams,this.urlTree.fragment,vo(e),$(e),e.component??e._loadedComponent??null,e,mo(e),n),c=hr(a,o,this.paramsInheritanceStrategy);return a.params=c.params,a.data=c.data,a}async matchSegmentAgainstRoute(n,e,r,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=X=>this.createSnapshot(n,r,X.consumedSegments,X.parameters,a),s=await ct(io(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path===`**`&&(e.children={}),!s?.matched)throw new H$1(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:v,consumedSegments:f,remainingSegments:R}=s,x=this.createSnapshot(n,r,f,v,a),{segmentGroup:J,slicedSegments:Ie}=nn(e,f,R,u,o),de=$(r)===o;if(de&&Ie.length===0&&J.hasChildren())return new E(x,await this.processChildren(l,u,J,x));if(de&&u.length===0&&Ie.length===0)return new E(x,[]);let Ee=await this.processSegment(l,u,J,Ie,de?p:o,!0,x);if(!de&&!(Ee instanceof E))throw new H$1(e);return new E(x,Ee instanceof E?[Ee]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await ct(Zi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw eo(e)}return{routes:[],injector:n}}};function fo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===``}function xn(t){let n=[],e=new Set;for(let i of t){if(!po(i)){n.push(i);continue}let o=n.find(a=>i.value.routeConfig===a.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):n.push(i)}for(let i of e){let o=xn(i.children);n.push(new E(i.value,o))}let r=n.filter(i=>!e.has(i));return go(r),r}function go(t){let n=Object.create(null);t.forEach(e=>{let r=n[e.value.outlet];if(r){r.url.map(a=>a.toString()).join(`/`);e.value.url.map(a=>a.toString()).join(`/`);throw new y$1(4006,!1)}n[e.value.outlet]=e.value})}function vo(t){return t.data||{}}function mo(t){return t.resolve||{}}function yo(t,n,e,r,i,o,a){return _t(async c=>{let{state:s,tree:u}=await lo(t,n,e,r,c.extractedUrl,i,o,a);return l(k$1({},c),{targetSnapshot:s,urlAfterRedirects:u})})}function Ro(t){return _t(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Is(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of kn(c))o.add(s);let a=0;return ot$1(o).pipe(bs(c=>i.has(c)?So(c,e,t):(c.data=hr(c,c.parent,t).resolve,Is(void 0))),em(()=>a++),Xg(1),_t(c=>a===o.size?Is(n):Wn$1))})}function kn(t){return[t,...t.children.map(e=>kn(e)).flat()]}function So(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!In(r)&&(i[Fe$1]=r.title),qg(()=>(t.data=hr(t,t.parent,e).resolve,Co(i,t,n).pipe(K$2(o=>(t._resolvedData=o,t.data=k$1(k$1({},t.data),o),null)))))}function Co(t,n,e){let r=Yt(t);if(r.length===0)return Is({});let i={};return ot$1(r).pipe(_t(o=>wo(t[o],n,e).pipe(Qg(),em(a=>{if(a instanceof ce)throw Oe$1(new Y$1,a);i[o]=a}))),Xg(1),K$2(()=>i),ws(o=>_n(o)?Wn$1:Lg(o)))}function wo(t,n,e){let r=n._environmentInjector,i=we$1(t,r);return ue(i.resolve?i.resolve(n,e):mn$1(r,()=>i(n,e)))}var mr=new b$1(``);function ur(t){return iu(n=>{let e=t(n);return e?ot$1(e).pipe(K$2(()=>n)):Is(n)})}var yr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Fe$1]}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:()=>g$1($n)})}return t})();var $n=(()=>{class t extends yr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static ɵfac=function(r){return new(r||t)(T(m1))};static ɵprov=M$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var be=new b$1(``,{factory:()=>({})});var We=new b$1(``);var zn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$1(jD);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await cn(mn$1(e,()=>r.loadComponent())),a=await Hn(bL(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await qn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();async function qn(t,n,e,r){let i=await cn(mn$1(e,()=>t.loadChildren())),o=await Hn(bL(i)),a;o instanceof Xp||Array.isArray(o)?a=o:a=await n.compileModuleAsync(o),r&&r(t);let c,s,l;return Array.isArray(a)?s=a:(c=a.create(e).injector,l=a,s=c.get(We,[],{optional:!0,self:!0}).flat()),{routes:s.map(vr),injector:c,factory:l}}async function Hn(t){return t}var Dt=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:()=>g$1(bo)})}return t})();var bo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();var Fn=new b$1(``);var Io=()=>{};var Bn=new b$1(``);var Vn=(()=>{class t{currentNavigation=Te$2(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Te$2(null);events=new oe$1;transitionAbortWithErrorSubject=new oe$1;configLoader=g$1(zn);environmentInjector=g$1(ae$1);destroyRef=g$1(he);urlSerializer=g$1(Ce$1);rootContexts=g$1(oe);location=g$1(zh);inputBindingEnabled=g$1(Be$1,{optional:!0})!==null;titleStrategy=g$1(yr);options=g$1(be,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Mi;urlHandlingStrategy=g$1(Dt);createViewTransition=g$1(Fn,{optional:!0});navigationErrorHandler=g$1(Bn,{optional:!0});routerResourcesFeature=g$1(mr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Is(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Rt(i)),r=i=>this.events.next(new St(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Wr(()=>{this.transitions?.next(l(k$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new zn$1(null),this.transitions.pipe(Gn$1(r=>r!==null),iu(r=>{let i=!0,o=!1,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Is(r).pipe(iu(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,``,b.SupersededByNewNavigation),Wn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl==`string`?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?l(k$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let l$1=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l$1&&v!==`reload`)return this.events.next(new W(s.id,this.urlSerializer.serialize(s.rawUrl),``,ke$1.IgnoredSameUrlNavigation)),s.resolve(!1),Wn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Is(s).pipe(iu(f=>(this.events.next(new ae(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?Wn$1:Promise.resolve(f))),yo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),em(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(R=>(R.finalUrl=f.urlAfterRedirects,R)),this.events.next(new ze$1)}),iu(f=>ot$1(r.routesRecognizeHandler.deferredHandle??Is(void 0)).pipe(K$2(()=>f))),em(()=>{let f=new $e$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(l$1&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:R,source:x,restoredState:J,extras:Ie}=s,de=new ae(f,this.urlSerializer.serialize(R),x,J);this.events.next(de);let Ee=wn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=l(k$1({},s),{targetSnapshot:Ee,urlAfterRedirects:R,extras:l(k$1({},Ie),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(X=>(X.finalUrl=R,X)),Is(r)}else return this.events.next(new W(s.id,this.urlSerializer.serialize(s.extractedUrl),``,ke$1.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Wn$1}),K$2(s=>{let u=new gt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=l(k$1({},s),{guards:Ui(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),Fi(s=>this.events.next(s)),iu(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!=`boolean`)throw Oe$1(this.urlSerializer,s.guardsResult);let u=new vt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return Wn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,``,b.GuardRejected),Wn$1;if(s.guards.canActivateChecks.length===0)return Is(s);let l=new mt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(l),!c())return Wn$1;let v=!1;return Is(s).pipe(Ro(this.paramsInheritanceStrategy),em({next:()=>{v=!0;let f=new yt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{v||this.cancelNavigationTransition(s,``,b.NoDataFromResolver)}}))}),ur(s=>{let u=v=>{let f=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let R=v._environmentInjector;f.push(this.configLoader.loadComponent(R,v.routeConfig).then(x=>{v.component=x}))}for(let R of v.children)f.push(...u(R));return f},l=u(s.targetSnapshot.root);return l.length===0?Is(s):ot$1(Promise.all(l).then(()=>s))}),iu(s=>{let{newlyCreatedRoutes:u,state:l$2}=Di(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=l(k$1({},s),{targetRouterState:l$2,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=l$2,v)),Is(s)}),this.routerResourcesFeature?.setupAndRunResources(a.signal)??(s=>s),ur(()=>this.afterPreactivation()),iu(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,l=this.createViewTransition?.(this.environmentInjector,s.root,u.root,r.hasUAVisualTransition);return l?ot$1(l).pipe(K$2(()=>r)):Is(r)}),Ts(1),iu(s=>{i=!1,this.events.next(new ye);let u=r.beforeActivateHandler.deferredHandle;return u?ot$1(u.then(()=>s)):Is(s)}),em(s=>{new ir(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(Wn(s.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=Io,u)),this.lastSuccessfulNavigation.set(Wr(this.currentNavigation)),this.events.next(new z$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Jg(Un(a.signal).pipe(Gn$1(()=>!o&&i),em(()=>{this.cancelNavigationTransition(r,a.signal.reason+``,b.Aborted)}))),em({complete:()=>{o=!0}}),Jg(this.transitionAbortWithErrorSubject.pipe(em(s=>{throw s}))),Ss(()=>{a.abort(),o||this.cancelNavigationTransition(r,``,b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ws(s=>{if(o=!0,on(r),this.destroyed)return r.resolve(!1),Wn$1;if(s instanceof ce&&(s=Oe$1(this.urlSerializer,s)),Nn(s))this.events.next(new j$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),_i(s)?this.events.next(new Re$1(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let u=new se(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let l=mn$1(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof ce){let{message:v,cancellationCode:f}=Oe$1(this.urlSerializer,l);this.events.next(new j$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,f)),this.events.next(new Re$1(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),s}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return Wn$1}))}))}cancelNavigationTransition(e,r,i){on(e);let o=new j$1(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Wr(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();function Eo(t){return t!==Ue$1}function on(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;Wn(t.targetRouterState)}function Wn(t){if(!t)return;let n=e=>{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var Gn=new b$1(``);var Qn=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:()=>g$1(Mo)})}return t})();var Mt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}};var Mo=(()=>{class t extends Mt{static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();var Tt=(()=>{class t{urlSerializer=g$1(Ce$1);options=g$1(be,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=g$1(zh);urlHandlingStrategy=g$1(Dt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new M;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof M?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=wn(null,g$1(ae$1));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:()=>g$1(Ao)})}return t})();var Ao=(()=>{class t extends Tt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type===`popstate`&&setTimeout(()=>{e(r.url,r.state,`popstate`,{replaceUrl:!0},r.hasUAVisualTransition)})})}handleRouterEvent(e,r){e instanceof ae?this.updateStateMemento():e instanceof W?this.commitTransition(r):e instanceof $e$1?this.urlUpdateStrategy===`eager`&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ye?(this.commitTransition(r),this.urlUpdateStrategy===`deferred`&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof j$1?An(e)?e.code===b.Redirect&&this.routerState===r.targetRouterState&&this.resetInternalState(r):this.restoreHistory(r):e instanceof se?this.restoreHistory(r,!0):e instanceof z$1&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=k$1(k$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,``,u)}else{let s=k$1(k$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,``,s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r,i){return this.canceledNavigationResolution===`computed`?k$1({navigationId:e,ɵrouterPageId:r},this.routerUrlState(i)):k$1({navigationId:e},this.routerUrlState(i))}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();function Rr(t,n){t.events.pipe(Gn$1(e=>e instanceof z$1||e instanceof j$1||e instanceof se||e instanceof W),K$2(e=>e instanceof z$1||e instanceof W?0:(e instanceof j$1?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Gn$1(e=>e!==2),Ts(1)).subscribe(()=>{n()})}var le=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g$1(rh);stateManager=g$1(Tt);options=g$1(be,{optional:!0})||{};pendingTasks=g$1(qt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=g$1(Vn);urlSerializer=g$1(Ce$1);location=g$1(zh);urlHandlingStrategy=g$1(Dt);injector=g$1(ae$1);_events=new oe$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g$1(Qn);injectorCleanup=g$1(Gn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=g$1(We,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g$1(Be$1,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new ee;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Wr(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof j$1&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof z$1)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Re$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=k$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||Eo(i.source)},a);this.scheduleNavigation(c,Ue$1,null,s,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ai(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ue$1,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o,a)=>{this.navigateToSyncWithBrowser(e,i,r,o,a)})}navigateToSyncWithBrowser(e,r,i,o,a){let c=i?.navigationId?i:null,s=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=l(k$1({},o),{browserUrl:e})),i){let l=k$1({},i);delete l.navigationId,delete l.ɵrouterPageId,delete l.ɵrouterUrl,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(s);this.scheduleNavigation(u,r,c,o,a).catch(l=>{this.disposed||this.injector.get(It$1)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Wr(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(vr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,l=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:l=k$1(k$1({},this.currentUrlTree.queryParams),o);break;case`preserve`:l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let v;try{v=yn(i?i.snapshot:this.routerState.snapshot.root)}catch{(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),v=this.currentUrlTree.root}return Rn(v,e,l,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Z$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ue$1,null,r)}navigate(e,r={skipLocationChange:!1}){return Do(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Vt$1(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,r){let i;if(r===!0?i=k$1({},lr):r===!1?i=k$1({},ve):i=k$1(k$1({},ve),r),Z$1(e))return ut(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ut(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a,c){if(this.disposed)return Promise.resolve(!1);let s,u,l;c?(s=c.resolve,u=c.reject,l=c.promise):l=new Promise((f,R)=>{s=f,u=R});let v=this.pendingTasks.add();return Rr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:a,resolve:s,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();function Do(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new y$1(4008,!1)}var No=(()=>{class t{router=g$1(le);stateManager=g$1(Tt);fragment=Te$2(``);queryParams=Te$2({});path=Te$2(``);serializer=g$1(Ce$1);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof z$1&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new M(r)))}static ɵfac=function(r){return new(r||t)};static ɵprov=Pe$1({token:t,factory:t.ɵfac})}return t})();var Nt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$1(new Rh(`href`),{optional:!0});reactiveHref=BD(()=>{if(!this.isAnchorElement)return this.hrefAttributeValue;this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r===`preserve`||r===`merge`;return(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams(),this.computeHref(this.createUrlTree())});get href(){return Wr(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Wr(this._target)}_target=Te$2(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Wr(this._queryParams)}_queryParams=Te$2(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Wr(this._fragment)}_fragment=Te$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Wr(this._queryParamsHandling)}_queryParamsHandling=Te$2(void 0);set state(e){this._state.set(e)}get state(){return Wr(this._state)}_state=Te$2(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Wr(this._info)}_info=Te$2(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Wr(this._relativeTo)}_relativeTo=Te$2(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Wr(this._preserveFragment)}_preserveFragment=Te$2(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Wr(this._skipLocationChange)}_skipLocationChange=Te$2(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Wr(this._replaceUrl)}_replaceUrl=Te$2(!1);browserUrl=Zi$1(void 0);isAnchorElement;onChanges=new oe$1;applicationErrorHandler=g$1(It$1);options=g$1(be,{optional:!0});reactiveRouterState=g$1(No);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s===`a`||s===`area`||!!(typeof customElements==`object`&&customElements.get(s)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Te$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Z$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,r,i,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target==`string`&&this.target!=`_self`))return!0;let s=this.browserUrl(),u=k$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}createUrlTree(){let e=this.routerLinkInput();return e===null||!this.router.createUrlTree?null:Z$1(e)?e:this.router.createUrlTree(e,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})}get urlTree(){return Wr(()=>this.createUrlTree())}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(r){return new(r||t)(Hr(le),Hr(V),wf(`tabindex`),Hr(fc),Hr(Or),Hr(Yi$1))};static ɵdir=bI({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(r,i){r&1&&uh(`click`,function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&$i$1(`href`,i.reactiveHref(),rv)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,NL],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,NL],replaceUrl:[2,`replaceUrl`,`replaceUrl`,NL],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[ry]})}return t})();var _o=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new He$2;link=g$1(Nt,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof z$1&&this.update()})}ngAfterContentInit(){Is(this.links.changes,Is(null)).pipe(Ds()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ot$1(e).pipe(Ds()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){if(e==null){this.classes=[];return}let r=Array.isArray(e)?e:e.split(` `);this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,`aria-current`,this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,`aria-current`),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=this.routerLinkActiveOptions;if(r===null)return()=>!1;let i;return r===void 0?i=k$1({},ve):Uo(r)?i=r:r.exact??!1?i=k$1({},lr):i=k$1({},ve),o=>{let a=o.urlTree;return a?Wr(dr(a,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(r){return new(r||t)(Hr(le),Hr(Or),Hr(fc),Hr(_L))};static ɵdir=bI({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(r,i,o){if(r&1&&ph(o,Nt,5),r&2){let a;nD(a=rD())&&(i.links=a)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[ry]})}return t})();function Uo(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Oo=new b$1(``);function Po(t,...n){return gt$1([{provide:We,multi:!0,useValue:t},{provide:V,useFactory:Lo},{provide:dl,multi:!0,useFactory:xo},n.map(e=>e.ɵproviders)])}function Lo(){return g$1(le).routerState.root}function jo(t,n){return{ɵkind:t,ɵproviders:n}}function xo(){let t=g$1(Ie$1);return n=>{let e=t.get(Ur);if(n!==e.components[0])return;let r=t.get(le),i=t.get(ko);t.get($o)===1&&r.initialNavigation(),t.get(zo,null,{optional:!0})?.setUpPreloading(),t.get(Oo,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ko=new b$1(``,{factory:()=>new oe$1});var $o=new b$1(``,{factory:()=>1});var zo=new b$1(``);function qo(t={}){return jo(8,[{provide:Be$1,useFactory:()=>new Mn(t,g$1(mr,{optional:!0}))}])}var ke=[{path:``,pathMatch:`full`,redirectTo:`dashboard`},{path:`dashboard`,loadComponent:()=>import(`./chunk-qe3u763a.js`).then(n=>n.DashboardPage)},{path:`install`,loadComponent:()=>import(`./chunk-BGUitn2r.js`).then(n=>n.InstallPage)},{path:`config`,loadComponent:()=>import(`./chunk-C3pI4QjU.js`).then(n=>n.ConfigPage)},{path:`forges`,loadComponent:()=>import(`./chunk-UBKt05Rg.js`).then(n=>n.ExplorerPage)},{path:`forges/:id`,loadComponent:()=>import(`./chunk-B7N3TXcn.js`).then(n=>n.ForgeDetailPage)},{path:`match`,loadComponent:()=>import(`./chunk-B605XnCF.js`).then(n=>n.MatchPage)},{path:`federation`,loadComponent:()=>import(`./chunk-CcjxoLxw.js`).then(n=>n.FederationPage)},{path:`profiles`,loadComponent:()=>import(`./chunk-BAj6yGem.js`).then(n=>n.ProfilesPage)},{path:`hosts`,loadComponent:()=>import(`./chunk-Fx4zSGL5.js`).then(n=>n.HostsPage)},{path:`mcp`,loadComponent:()=>import(`./chunk-B0Iad6pD.js`).then(n=>n.McpPage)},{path:`skills`,loadComponent:()=>import(`./chunk-D3eZogIe.js`).then(n=>n.SkillsPage)},{path:`agents`,loadComponent:()=>import(`./chunk-D-gBPXHa.js`).then(n=>n.AgentsPage)},{path:`tasks`,loadComponent:()=>import(`./chunk-CGWeHhKY.js`).then(n=>n.TasksPage)},{path:`graph`,loadComponent:()=>import(`./chunk-CXcsLDPJ.js`).then(n=>n.GraphPage)},{path:`observe`,loadComponent:()=>import(`./chunk-C2t4OUVu.js`).then(n=>n.ObservePage)},{path:`lab`,loadComponent:()=>import(`./chunk-DuPPkSIE.js`).then(n=>n.LabPage)},{path:`versions`,loadComponent:()=>import(`./chunk-7_l-b4Tr.js`).then(n=>n.VersionsPage)},{path:`knowledge`,loadComponent:()=>import(`./chunk-htnJDQEY.js`).then(n=>n.KnowledgePage)},{path:`settings`,loadComponent:()=>import(`./chunk-BavOrxVm.js`).then(n=>n.SettingsPage)},{path:`**`,redirectTo:`dashboard`}];var O=class n{tokenSignal=Te$2(null);token=this.tokenSignal.asReadonly();constructor(){let e=new URL(globalThis.location.href),t=e.searchParams.get(`forge_session`);if(t){this.tokenSignal.set(t),e.searchParams.delete(`forge_session`),globalThis.history.replaceState(null,``,e.toString());return}let i=e.searchParams.get(`dev_session`);i&&this.tokenSignal.set(i)}hasSession(){return this.tokenSignal()!==null}static ɵfac=function(t){return new(t||n)};static ɵprov=M$1({token:n,factory:n.ɵfac,providedIn:`root`})};var J=0;function we(){return J=(J+1)%65535,`ui-${Date.now().toString(36)}-${J.toString(36)}`}var Se=(n,e)=>{if(!n.url.startsWith(`/api/`))return e(n);let t=g$1(O),i=n.headers.set(`X-Correlation-Id`,we()),a=t.token();return a&&(i=i.set(`X-Forge-Session`,a)),n.method!==`GET`&&!n.headers.has(`Content-Type`)&&(i=i.set(`Content-Type`,`application/json`)),e(n.clone({headers:i,withCredentials:!0})).pipe(K$2(r=>{if(r.type===4&&r.body&&typeof r.body==`object`){let l=r.body;if(l.schema===`forge/PortalApi/1`&&l.error)throw new jn$1(r.status,l.error)}return r}),ws(r=>{if(r instanceof jn$1)throw r;if(r instanceof nn$1){let l=r.error;throw new jn$1(r.status,l?.error??void 0)}throw new jn$1(0)}))};var Ce={providers:[Hm(),Po(ke,qo()),tb(rb(),nb([Se]))]};var Ee=250;var xe=60;var j=[`page`,`forge`,`capability`,`skill`,`agent`,`mcp`,`host`,`doc`,`error`];var H={page:0,forge:1,capability:2,skill:2,agent:2,mcp:2,host:2,doc:2,error:2};var Z={page:`command.kind.page`,forge:`command.kind.forge`,capability:`command.kind.capability`,skill:`command.kind.skill`,agent:`command.kind.agent`,mcp:`command.kind.mcp`,host:`command.kind.host`,doc:`command.kind.doc`,error:`command.kind.error`};var Ne=[{route:`/dashboard`,labelKey:`nav.dashboard`,icon:`dashboard`},{route:`/install`,labelKey:`nav.install`,icon:`install`},{route:`/federation`,labelKey:`nav.federation`,icon:`network`},{route:`/forges`,labelKey:`nav.forges`,icon:`gem`},{route:`/profiles`,labelKey:`nav.profiles`,icon:`profiles`},{route:`/hosts`,labelKey:`nav.hosts`,icon:`hosts`},{route:`/mcp`,labelKey:`nav.mcp`,icon:`mcp`},{route:`/skills`,labelKey:`nav.skills`,icon:`skills`},{route:`/agents`,labelKey:`nav.agents`,icon:`agents`},{route:`/match`,labelKey:`nav.match`,icon:`compass`},{route:`/tasks`,labelKey:`nav.tasks`,icon:`tasks`,capability:`tasks`},{route:`/graph`,labelKey:`nav.graph`,icon:`graph`,capability:`graph`},{route:`/observe`,labelKey:`nav.observe`,icon:`pulse`},{route:`/lab`,labelKey:`nav.lab`,icon:`diff`},{route:`/versions`,labelKey:`nav.versions`,icon:`history`},{route:`/knowledge`,labelKey:`nav.knowledge`,icon:`knowledge`},{route:`/settings`,labelKey:`nav.settings`,icon:`settings`},{route:`/config`,labelKey:`nav.config`,icon:`settings`}];var Y=n=>n.normalize(`NFD`).replace(new RegExp(`\\p{Diacritic}`,`gu`),``).toLowerCase().replace(/\s+/g,` `).trim();var z=(n,e)=>n<e?-1:n>e?1:0;var U=class n$1{api=g$1(hg);store=g$1(g);theme=g$1(n);i18n=g$1(us);results=Te$2([]);loading=Te$2(!1);searched=Te$2(!1);indexFailures=Te$2([]);docsFailed=Te$2(!1);unverified=zr(()=>{let e=new Set(this.indexFailures());return this.docsFailed()&&e.add(`doc`),j.filter(t=>e.has(t))});cache=null;building=null;bump=0;seq=0;timer=null;lastQuery=``;constructor(){g$1(he).onDestroy(()=>this.clearTimer())}setQuery(e){if(this.lastQuery=e,this.clearTimer(),!e.trim()){this.searchNow(``);return}this.timer=setTimeout(()=>{this.timer=null,this.searchNow(e)},Ee)}async searchNow(e){let t=++this.seq;this.lastQuery=e,this.searched.set(!0),this.loading.set(!0);try{let i=await this.ensureIndex(),a=e.trim()?await this.fetchDocs(e.trim(),t):[];if(t!==this.seq)return;this.results.set(this.rank(e.trim(),[...i,...a]))}finally{t===this.seq&&this.loading.set(!1)}}refresh(){this.bump++,this.cache=null,this.docsFailed.set(!1),this.searched()&&this.searchNow(this.lastQuery)}version(){return`${this.store.refreshedAt()??`never`}|${this.i18n.locale()}|${this.bump}`}async ensureIndex(){let e=this.version();if(this.cache?.version===e)return this.cache.entries;this.building??=this.buildIndex().finally(()=>this.building=null);let t=await this.building;return this.version()!==e?this.ensureIndex():(this.cache={version:e,entries:t.entries},this.indexFailures.set(t.failed),t.entries)}async buildIndex(){let e=[],t=new Set;try{e.push(...this.pageEntries())}catch{t.add(`page`)}try{e.push(...this.capabilityEntries())}catch{t.add(`capability`)}let i=async(a,r)=>{try{e.push(...await r())}catch(l){l instanceof jn$1&&l.status===404||t.add(a)}};return await Promise.all([i(`forge`,async()=>(await Tg(this.api.federation())).specialists.map(a=>this.forgeEntry(a))),i(`skill`,async()=>(await Tg(this.api.skills())).map(a=>this.skillEntry(a))),i(`agent`,async()=>(await Tg(this.api.agents())).map(a=>this.agentEntry(a))),i(`mcp`,async()=>(await Tg(this.api.mcpServers())).map(a=>this.mcpEntry(a))),i(`host`,async()=>(await Tg(this.api.hosts())).map(a=>this.hostEntry(a))),i(`error`,async()=>this.errorEntries(await Tg(this.api.tasks())))]),{entries:e,failed:j.filter(a=>t.has(a))}}async fetchDocs(e,t){try{let i=await Tg(this.api.docsSearch(e));return t===this.seq&&this.docsFailed.set(!1),i.map(a=>this.docEntry(a))}catch(i){return t===this.seq&&this.docsFailed.set(!(i instanceof jn$1&&i.status===404)),[]}}rank(e,t){let i=Y(e);if(!i)return t.slice().sort((r,l)=>H[r.kind]-H[l.kind]||z(r.normLabel,l.normLabel)||z(r.id,l.id)).slice(0,xe).map(r=>this.strip(r));let a=[];for(let r of t){let l=-1;r.normLabel===i?l=0:r.normLabel.startsWith(i)?l=1:(r.norm.includes(i)||r.kind===`doc`)&&(l=2),l>=0&&a.push({e:r,s:l})}return a.sort((r,l)=>r.s-l.s||H[r.e.kind]-H[l.e.kind]||z(r.e.normLabel,l.e.normLabel)||z(r.e.id,l.e.id)),a.slice(0,xe).map(r=>this.strip(r.e))}strip(e){return{id:e.id,kind:e.kind,label:e.label,sublabel:e.sublabel,icon:e.icon,route:e.route,url:e.url,run:e.run}}mk(e){return l(k$1({},e),{normLabel:Y(e.label),norm:Y(`${e.label} ${e.sublabel??``}`)})}capVisible(e){if(!e)return!0;let t=this.store.capabilities();return t.length===0?!0:t.some(i=>i.id===e&&i.state!==`unsupported`)}pageEntries(){let e=[],t=new Set;for(let i of this.store.nav())!i.route||t.has(i.route)||!this.capVisible(i.requires_capability)||(t.add(i.route),e.push(this.mk({id:`page:${i.route}`,kind:`page`,label:this.i18n.t(i.label_key),sublabel:i.route,icon:i.icon||`dashboard`,route:i.route})));for(let i of Ne)t.has(i.route)||!this.capVisible(i.capability)||(t.add(i.route),e.push(this.mk({id:`page:${i.route}`,kind:`page`,label:this.i18n.t(i.labelKey),sublabel:i.route,icon:i.icon,route:i.route})));return e.push(this.mk({id:`act:refresh`,kind:`page`,label:this.i18n.t(`state.refresh`),icon:`refresh`,run:()=>{this.store.refreshHealth()}}),this.mk({id:`act:theme`,kind:`page`,label:this.i18n.t(`settings.theme`),icon:`contrast`,run:()=>this.cycleTheme()}),this.mk({id:`act:locale`,kind:`page`,label:this.i18n.t(`settings.language`),icon:`globe`,run:()=>this.toggleLocale()})),e}capabilityEntries(){return this.store.capabilities().map(e=>this.mk({id:`cap:${e.id}`,kind:`capability`,label:e.label_key?this.i18n.t(e.label_key):e.id,sublabel:e.state,icon:`shield-check`,route:`/dashboard`}))}forgeEntry(e){return this.mk({id:`forge:${e.provider}`,kind:`forge`,label:e.provider,sublabel:[e.state,e.status].filter(Boolean).join(` · `)||void 0,icon:`gem`,route:`/forges/${encodeURIComponent(e.provider)}`})}skillEntry(e){return this.mk({id:`skill:${e.id}`,kind:`skill`,label:e.name||e.id,sublabel:[e.domain,e.state].filter(Boolean).join(` · `)||void 0,icon:`skills`,route:`/skills`})}agentEntry(e){return this.mk({id:`agent:${e.id}`,kind:`agent`,label:e.name||e.id,sublabel:e.role||void 0,icon:`agents`,route:`/agents`})}mcpEntry(e){return this.mk({id:`mcp:${e.id}`,kind:`mcp`,label:e.id,sublabel:[e.state,e.host].filter(Boolean).join(` · `)||void 0,icon:`mcp`,route:`/mcp`})}hostEntry(e){return this.mk({id:`host:${e.host}`,kind:`host`,label:e.host,sublabel:[e.integration,e.version].filter(Boolean).join(` · `)||void 0,icon:`hosts`,route:`/hosts`})}docEntry(e){return this.mk(k$1({id:`doc:${e.path}`,kind:`doc`,label:e.title||e.path,sublabel:e.category||e.path||void 0,icon:`knowledge`},e.url?{url:e.url}:{route:`/knowledge`}))}errorEntries(e){return e.filter(t=>{if(t.refusal)return!0;let i=t.receipt?.status;return typeof i==`string`&&i!==`ok`}).map(t=>this.mk({id:`err:${t.id}`,kind:`error`,label:t.refusal??(t.label||t.verb),sublabel:[t.verb,t.stage].filter(Boolean).join(` · `)||void 0,icon:`alert`,route:`/tasks`}))}cycleTheme(){let e=this.theme.scheme()===`system`?`light`:this.theme.scheme()===`light`?`dark`:`system`;this.theme.setScheme(e)}toggleLocale(){this.i18n.applyPreference(this.i18n.locale()===`pt-BR`?`en`:`pt-BR`)}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=null)}static ɵfac=function(t){return new(t||n$1)};static ɵprov=M$1({token:n$1,factory:n$1.ɵfac,providedIn:`root`})};var Te=[`inp`];var De=[`list`];var Me=(n,e)=>e.kind;var Ie=(n,e)=>e.id;function Ke(n,e){n&1&&ah(0,`ui-icon`,13),n&2&&sh(`size`,11)}function Ae(n,e){if(n&1){let t=YI();ki$1(0,`button`,12),kD(1,`t`),uh(`click`,function(){let a=Yu(t).$implicit,r=XI(2);return Qu(r.setFilter(a.kind))})(`keydown`,function(a){let r=Yu(t).$index,l=XI(2);return Qu(l.onChipKey(a,r))}),DD(2),kD(3,`t`),jI(4,Ke,1,1,`ui-icon`,13),pl()}if(n&2){let t=e.$implicit,i=XI(2);sh(`tabindex`,i.filter()===t.kind?0:-1),$i$1(`aria-checked`,i.filter()===t.kind)(`data-active`,i.filter()===t.kind||null)(`data-unverified`,t.unverified||null)(`title`,t.unverified?LD(1,7,`command.unverified`):null),Vv(2),ml(` `,LD(3,9,t.labelKey),` `),Vv(2),HI(t.unverified?4:-1)}}function Be(n,e){n&1&&(ki$1(0,`li`,9),DD(1),kD(2,`t`),pl()),n&2&&(Vv(),yh(LD(2,1,`command.searching`)))}function Re(n,e){if(n&1&&(ki$1(0,`li`,14),DD(1),kD(2,`t`),pl()),n&2){let t=XI().$implicit,i=XI(2);Vv(),yh(LD(2,1,i.labels[t.kind]))}}function Fe(n,e){if(n&1&&(ki$1(0,`span`,18),DD(1),pl()),n&2){let t=XI().$implicit;Vv(),yh(t.sublabel)}}function $e(n,e){if(n&1){let t=YI();jI(0,Re,3,3,`li`,14),ki$1(1,`li`,15),uh(`click`,function(){let a=Yu(t).$implicit,r=XI(2);return Qu(r.run(a))})(`mousemove`,function(){let a=Yu(t).$index,r=XI(2);return Qu(r.active.set(a))}),ah(2,`ui-icon`,16),ki$1(3,`span`,17),DD(4),pl(),jI(5,Fe,2,1,`span`,18),pl()}if(n&2){let t=e.$implicit,i=e.$index,a=XI(2);HI(i===0||a.flat()[i-1].kind!==t.kind?0:-1),Vv(),sh(`id`,`cp-opt-`+i),$i$1(`aria-selected`,i===a.idx())(`data-active`,i===a.idx()||null),Vv(),sh(`name`,t.icon)(`size`,15),Vv(2),yh(t.label),Vv(),HI(t.sublabel?5:-1)}}function Le(n,e){n&1&&(ki$1(0,`li`,10),DD(1),kD(2,`t`),pl()),n&2&&(Vv(),yh(LD(2,1,`command.empty`)))}function Ve(n,e){if(n&1){let t=YI();ki$1(0,`div`,3),uh(`click`,function(){Yu(t);let a=XI();return Qu(a.close())}),ki$1(1,`div`,4),kD(2,`t`),uh(`click`,function(a){return a.stopPropagation()}),ki$1(3,`input`,5,0),kD(5,`t`),kD(6,`t`),uh(`input`,function(a){Yu(t);let r=XI();return Qu(r.onQuery(a))})(`keydown`,function(a){Yu(t);let r=XI();return Qu(r.onKey(a))}),pl(),ki$1(7,`div`,6),kD(8,`t`),$I(9,Ae,5,11,`button`,7,Me),pl(),ki$1(11,`ul`,8,1),jI(13,Be,3,3,`li`,9),$I(14,$e,6,8,null,null,Ie),jI(16,Le,3,3,`li`,10),pl(),ki$1(17,`div`,11),DD(18),kD(19,`t`),pl()()()}if(n&2){let t=XI();Vv(),$i$1(`aria-label`,LD(2,10,`command.open`)),Vv(2),sh(`value`,t.query())(`placeholder`,LD(5,12,`command.hint`)),$i$1(`aria-activedescendant`,t.activeDesc())(`aria-label`,LD(6,14,`command.open`)),Vv(4),$i$1(`aria-label`,LD(8,16,`command.filters`)),Vv(2),zI(t.chips()),Vv(2),$i$1(`aria-busy`,t.search.loading()||null),Vv(2),HI(t.search.loading()?13:-1),Vv(),zI(t.flat()),Vv(2),HI(!t.search.loading()&&t.search.searched()&&t.flat().length===0?16:-1),Vv(2),yh(LD(19,18,`command.footer`))}}var Q=class n{router=g$1(le);search=g$1(U);open=Te$2(!1);query=Te$2(``);active=Te$2(0);filter=Te$2(`all`);labels=Z;input=CL(`inp`);list=CL(`list`);flat=zr(()=>{let e=this.filter(),t=this.search.results();return e===`all`?t:t.filter(i=>i.kind===e)});idx=zr(()=>{let e=this.flat().length;return e?Math.min(this.active(),e-1):0});activeDesc=zr(()=>this.flat().length?`cp-opt-${this.idx()}`:null);chips=zr(()=>{let e=new Set(this.search.results().map(a=>a.kind)),t=new Set(this.search.unverified()),i=[{kind:`all`,labelKey:`state.all`,unverified:!1}];for(let a of j)(e.has(a)||t.has(a)||this.filter()===a)&&i.push({kind:a,labelKey:Z[a],unverified:t.has(a)});return i});toggle(e){e?.preventDefault();let t=!this.open();this.open.set(t),t&&(this.query.set(``),this.filter.set(`all`),this.active.set(0),this.search.setQuery(``),setTimeout(()=>this.input()?.nativeElement.focus()))}close(){this.open.set(!1)}onQuery(e){let t=e.target.value;this.query.set(t),this.active.set(0),this.search.setQuery(t)}onKey(e){let t=this.flat().length;if(e.key===`ArrowDown`)e.preventDefault(),this.active.set(t?(this.idx()+1)%t:0),this.scrollActive();else if(e.key===`ArrowUp`)e.preventDefault(),this.active.set(t?(this.idx()-1+t)%t:0),this.scrollActive();else if(e.key===`Enter`){let i=this.flat()[this.idx()];i&&this.run(i)}else e.key===`Escape`&&this.close()}onChipKey(e,t){let i=this.chips(),a=i.length;if(a)if(e.key===`ArrowRight`||e.key===`ArrowLeft`){e.preventDefault();let r=e.key===`ArrowRight`?(t+1)%a:(t-1+a)%a,l=i[r];if(!l)return;this.filter.set(l.kind),this.active.set(0),e.currentTarget.parentElement?.children[r]?.focus()}else e.key===`ArrowDown`||e.key===`ArrowUp`?(e.preventDefault(),this.input()?.nativeElement.focus()):e.key===`Escape`&&this.close()}setFilter(e){this.filter.set(e),this.active.set(0),this.input()?.nativeElement.focus()}run(e){this.close(),e.run?e.run():e.route?this.router.navigateByUrl(e.route):e.url&&window.open(e.url,`_blank`,`noopener`)}scrollActive(){setTimeout(()=>{this.list()?.nativeElement.querySelector(`[data-active]`)?.scrollIntoView?.({block:`nearest`})})}static ɵfac=function(t){return new(t||n)};static ɵcmp=sl({type:n,selectors:[[`ui-command-palette`]],viewQuery:function(t,i){t&1&&hh(i.input,Te,5)(i.list,De,5),t&2&&oD(2)},hostBindings:function(t,i){t&1&&uh(`keydown.control.k`,function(r){return i.toggle(r)},iv)(`keydown.meta.k`,function(r){return i.toggle(r)},iv)},decls:1,vars:1,consts:[[`inp`,``],[`list`,``],[1,`cp`],[1,`cp`,3,`click`],[`role`,`dialog`,`aria-modal`,`true`,1,`cp__panel`,3,`click`],[`type`,`text`,`role`,`combobox`,`aria-expanded`,`true`,`aria-controls`,`cp-list`,1,`cp__input`,3,`input`,`keydown`,`value`,`placeholder`],[`role`,`radiogroup`,1,`cp__filters`],[`type`,`button`,`role`,`radio`,1,`cp__chip`,3,`tabindex`],[`id`,`cp-list`,`role`,`listbox`,1,`cp__list`],[`role`,`presentation`,1,`cp__status`],[`role`,`presentation`,1,`cp__empty`],[1,`cp__footer`],[`type`,`button`,`role`,`radio`,1,`cp__chip`,3,`click`,`keydown`,`tabindex`],[`name`,`alert`,3,`size`],[`role`,`presentation`,1,`cp__group`],[`role`,`option`,1,`cp__item`,3,`click`,`mousemove`,`id`],[3,`name`,`size`],[1,`cp__label`],[1,`cp__sub`]],template:function(t,i){t&1&&jI(0,Ve,20,20,`div`,2),t&2&&HI(i.open()?0:-1)},dependencies:[Eg,yg],styles:[`.cp[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:90;background:#00000073;display:grid;place-items:start center;padding-top:14vh}.cp__panel[_ngcontent-%COMP%]{width:min(560px,calc(100vw - var(--%NS%space-6)));background:var(--%NS%bg-elevated);border:1px solid var(--%NS%border-strong);border-radius:var(--%NS%radius-lg);box-shadow:var(--%NS%elev-pop);overflow:hidden}.cp__input[_ngcontent-%COMP%]{width:100%;border:0;border-bottom:1px solid var(--%NS%border);background:transparent;color:var(--%NS%fg);padding:var(--%NS%space-3) var(--%NS%space-4);font:inherit;font-size:var(--%NS%font-lg);outline:none}.cp__filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--%NS%space-1);padding:var(--%NS%space-2) var(--%NS%space-3);border-bottom:1px solid var(--%NS%border)}.cp__chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--%NS%space-1);border:1px solid var(--%NS%border);border-radius:var(--%NS%radius-pill);background:transparent;color:var(--%NS%fg-muted);padding:1px var(--%NS%space-2);font:inherit;font-size:var(--%NS%font-xs);cursor:pointer}.cp__chip[data-active][_ngcontent-%COMP%]{background:var(--%NS%accent-bg);border-color:color-mix(in srgb,var(--%NS%accent) 40%,transparent);color:var(--%NS%accent-strong)}.cp__chip[data-unverified][_ngcontent-%COMP%] ui-icon[_ngcontent-%COMP%]{color:var(--%NS%warning, var(--%NS%accent))}.cp__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:var(--%NS%space-2);max-height:320px;overflow-y:auto}.cp__group[_ngcontent-%COMP%]{padding:var(--%NS%space-2) var(--%NS%space-3) var(--%NS%space-1);color:var(--%NS%fg-muted);font-size:var(--%NS%font-xs);font-weight:600;text-transform:uppercase;letter-spacing:.06em;cursor:default}.cp__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--%NS%space-3);padding:var(--%NS%space-2) var(--%NS%space-3);border-radius:var(--%NS%radius-md);color:var(--%NS%fg);cursor:pointer;font-size:var(--%NS%font-sm)}.cp__item[_ngcontent-%COMP%] ui-icon[_ngcontent-%COMP%]{color:var(--%NS%fg-muted);flex:none}.cp__item[data-active][_ngcontent-%COMP%]{background:var(--%NS%accent-bg);color:var(--%NS%accent-strong)}.cp__item[data-active][_ngcontent-%COMP%] ui-icon[_ngcontent-%COMP%]{color:var(--%NS%accent-strong)}.cp__label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cp__sub[_ngcontent-%COMP%]{margin-left:auto;flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--%NS%fg-muted);font-size:var(--%NS%font-xs)}.cp__status[_ngcontent-%COMP%], .cp__empty[_ngcontent-%COMP%]{padding:var(--%NS%space-2) var(--%NS%space-3);color:var(--%NS%fg-muted);font-size:var(--%NS%font-sm);cursor:default}.cp__footer[_ngcontent-%COMP%]{border-top:1px solid var(--%NS%border);padding:var(--%NS%space-2) var(--%NS%space-4);color:var(--%NS%fg-muted);font-size:var(--%NS%font-xs)}`]})};var Oe=(n,e)=>e.section;var He=(n,e)=>e.route;function ze(n,e){if(n&1&&(ki$1(0,`a`,26),ah(1,`ui-icon`,27),ki$1(2,`span`,28),DD(3),kD(4,`t`),pl()()),n&2){let t=e.$implicit;sh(`routerLink`,t.route),Vv(),sh(`name`,t.icon)(`size`,17),Vv(2),yh(LD(4,4,t.label))}}function je(n,e){if(n&1&&(ki$1(0,`p`,25),DD(1),kD(2,`t`),pl(),$I(3,ze,5,6,`a`,26,He)),n&2){let t=e.$implicit;Vv(),yh(LD(2,1,t.section)),Vv(2),zI(t.items)}}function Ue(n,e){n&1&&(ki$1(0,`span`,17),DD(1),kD(2,`t`),pl()),n&2&&(Vv(),yh(LD(2,1,`settings.federated`)))}function Qe(n,e){if(n&1){let t=YI();ki$1(0,`div`,24)(1,`p`),DD(2),kD(3,`t`),pl(),ki$1(4,`button`,29),uh(`click`,function(){Yu(t);let a=XI();return Qu(a.store.bootstrap())}),DD(5),kD(6,`t`),pl()()}n&2&&(Vv(2),yh(LD(3,2,`error.unreachable`)),Vv(3),ml(` `,LD(6,4,`error.retry`),` `))}var qe=[{section:`nav.section.operate`,items:[{route:`/dashboard`,label:`nav.dashboard`,icon:`dashboard`},{route:`/federation`,label:`nav.federation`,icon:`network`,capability:`federation`},{route:`/forges`,label:`nav.forges`,icon:`compass`,capability:`federation`},{route:`/tasks`,label:`nav.tasks`,icon:`tasks`,capability:`tasks`},{route:`/graph`,label:`nav.graph`,icon:`graph`,capability:`graph`},{route:`/observe`,label:`nav.observe`,icon:`pulse`},{route:`/lab`,label:`nav.lab`,icon:`diff`},{route:`/versions`,label:`nav.versions`,icon:`history`}]},{section:`nav.section.configure`,items:[{route:`/install`,label:`nav.install`,icon:`install`},{route:`/config`,label:`nav.config`,icon:`key`},{route:`/profiles`,label:`nav.profiles`,icon:`profiles`},{route:`/hosts`,label:`nav.hosts`,icon:`hosts`},{route:`/mcp`,label:`nav.mcp`,icon:`mcp`}]},{section:`nav.section.explore`,items:[{route:`/skills`,label:`nav.skills`,icon:`skills`},{route:`/agents`,label:`nav.agents`,icon:`agents`},{route:`/match`,label:`nav.match`,icon:`compass`},{route:`/knowledge`,label:`nav.knowledge`,icon:`knowledge`},{route:`/settings`,label:`nav.settings`,icon:`settings`}]}];var q=class n$2{store=g$1(g);i18n=g$1(us);theme=g$1(n);collapsed=Te$2(!1);nav=qe;visibleNav=zr(()=>this.nav.map(e=>l(k$1({},e),{items:e.items.filter(t=>!t.capability||this.store.capabilities().length===0||this.store.capabilities().some(i=>i.id===t.capability&&i.state!==`unsupported`))})).filter(e=>e.items.length>0));schemeIcon=zr(()=>{let e=this.theme.scheme();return e===`dark`?`moon`:e===`light`?`sun`:`contrast`});constructor(){this.store.bootstrap()}toggleLocale(){this.i18n.applyPreference(this.i18n.locale()===`pt-BR`?`en`:`pt-BR`)}cycleScheme(){let e=this.theme.scheme()===`system`?`light`:this.theme.scheme()===`light`?`dark`:`system`;this.theme.setScheme(e)}static ɵfac=function(t){return new(t||n$2)};static ɵcmp=sl({type:n$2,selectors:[[`app-root`]],decls:51,vars:44,consts:[[`palette`,``],[`href`,`#content`,1,`skip-link`],[1,`shell`],[1,`shell__side`],[`routerLink`,`/dashboard`,1,`brand`],[`aria-hidden`,`true`,1,`brand__mark`],[`name`,`gem`,3,`size`],[1,`brand__text`],[`aria-label`,`portal`,1,`nav`],[1,`nav__collapse`,3,`click`],[3,`name`,`size`],[1,`shell__main`],[1,`topbar`],[1,`topbar__status`],[`aria-hidden`,`true`,1,`dot`,3,`title`],[1,`topbar__workspace`],[`name`,`folder`,3,`size`],[1,`topbar__fed`],[1,`topbar__actions`],[1,`icon-btn`,`icon-btn--search`,3,`click`,`title`],[`name`,`search`,3,`size`],[`aria-hidden`,`true`,1,`icon-btn__kbd`],[1,`icon-btn`,3,`click`,`title`],[`id`,`content`,`tabindex`,`-1`,1,`content`],[`role`,`alert`,1,`offline-banner`],[1,`nav__section`],[`routerLinkActive`,`nav__item--active`,1,`nav__item`,3,`routerLink`],[1,`nav__icon`,3,`name`,`size`],[1,`nav__label`],[1,`btn`,3,`click`]],template:function(t,i){if(t&1){let a=YI();ki$1(0,`a`,1),DD(1),kD(2,`t`),pl(),ki$1(3,`div`,2)(4,`aside`,3)(5,`a`,4)(6,`span`,5),ah(7,`ui-icon`,6),pl(),ki$1(8,`span`,7)(9,`strong`),DD(10),pl(),ki$1(11,`small`),DD(12),kD(13,`t`),pl()()(),ki$1(14,`nav`,8),$I(15,je,5,3,null,null,Oe),pl(),ki$1(17,`button`,9),kD(18,`t`),uh(`click`,function(){return i.collapsed.set(!i.collapsed())}),ah(19,`ui-icon`,10),pl()(),ki$1(20,`div`,11)(21,`header`,12)(22,`div`,13),ah(23,`span`,14),ki$1(24,`span`,15),ah(25,`ui-icon`,16),DD(26),kD(27,`t`),pl(),jI(28,Ue,3,3,`span`,17),pl(),ki$1(29,`div`,18)(30,`button`,19),kD(31,`t`),kD(32,`t`),uh(`click`,function(){Yu(a);let l=iD(48);return Qu(l.toggle())}),ah(33,`ui-icon`,20),ki$1(34,`kbd`,21),DD(35,`Ctrl K`),pl()(),ki$1(36,`button`,22),kD(37,`t`),kD(38,`t`),uh(`click`,function(){return i.toggleLocale()}),DD(39),pl(),ki$1(40,`button`,22),kD(41,`t`),kD(42,`t`),uh(`click`,function(){return i.cycleScheme()}),ah(43,`ui-icon`,10),pl()()(),ki$1(44,`main`,23),jI(45,Qe,7,6,`div`,24),ah(46,`router-outlet`),pl()()(),ah(47,`ui-command-palette`,null,0)(49,`ui-toast-outlet`)(50,`ui-confirm-host`)}t&2&&(Vv(),yh(LD(2,24,`nav.skip`)),Vv(3),$i$1(`data-collapsed`,i.collapsed()||null),Vv(3),sh(`size`,18),Vv(3),yh(i.store.forgeName()),Vv(2),yh(LD(13,26,`app.tagline`)),Vv(3),zI(i.visibleNav()),Vv(2),$i$1(`aria-label`,LD(18,28,i.collapsed()?`nav.expand`:`nav.collapse`)),Vv(2),sh(`name`,i.collapsed()?`chevron-right`:`chevron-left`)(`size`,14),Vv(4),sh(`title`,i.store.status()),$i$1(`data-state`,i.store.status()),Vv(2),sh(`size`,14),Vv(),ml(` `,i.store.workspace()?.name??LD(27,30,`dashboard.noWorkspace`),` `),Vv(2),HI(i.store.federated()?28:-1),Vv(2),sh(`title`,LD(31,32,`command.open`)),$i$1(`aria-label`,LD(32,34,`command.open`)),Vv(3),sh(`size`,15),Vv(3),sh(`title`,LD(37,36,`settings.language`)),$i$1(`aria-label`,LD(38,38,`settings.language`)),Vv(3),ml(` `,i.i18n.locale()===`pt-BR`?`PT`:`EN`,` `),Vv(),sh(`title`,LD(41,40,`settings.theme`)),$i$1(`aria-label`,LD(42,42,`settings.theme`)),Vv(3),sh(`name`,i.schemeIcon())(`size`,15),Vv(2),HI(i.store.status()===`offline`?45:-1))},dependencies:[pr,Nt,_o,Eg,Q,I,L,yg],styles:[`[_nghost-%COMP%]{display:contents}`]})};xw(q,Ce).catch(n=>console.error(n));export{ah as $,NL as A,sl as At,Te$2 as B,zr as Bt,If as C,oD as Ct,K$2 as D,qf as Dt,Jg as E,pl as Et,RD as F,yd as Ft,XI as G,UI as H,l as Ht,SD as I,yg as It,Zg as J,YI as K,SI as L,yh as Lt,Or as M,us as Mt,Qe$1 as N,vh as Nt,LD as O,ry as Ot,Qu as P,xD as Pt,_L as Q,SL as R,zI as Rt,Ie$1 as S,nh as St,JI as T,ot$1 as Tt,Vv as U,Tg as V,k$1 as Vt,Wr as W,_ as X,Zi$1 as Y,_E as Z,FD as _,jn$1 as _t,f$1 as a,ee as at,He$2 as b,ko$1 as bt,$i$1 as c,gh as ct,CD as d,hg as dt,al as et,CE as f,hh as ft,Eg as g,jI as gt,Dh as h,il as ht,n as i,eD as it,Oo$1 as j,uh as jt,M$1 as k,sh as kt,AD as l,gl as lt,DD as m,ih as mt,V as n,bI as nt,y as o,fc as ot,CL as p,hl as pt,Yu as q,g as r,dh as rt,$I as s,g$1 as st,Nt as t,b$1 as tt,BI as u,he as ut,Gi$1 as v,kD as vt,Ih as w,oe$1 as wt,Hr as x,ml as xt,HI as y,ki$1 as yt,TL as z,zi$1 as zt};