elanous 0.2.19 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/{J5H7BvqgSI8DUjtRRcA_S → Bam1YziK2iH9bN4K0utGk}/_buildManifest.js +1 -1
- package/apps/pwa/out/_next/static/chunks/{4323.c5dfb6f503304775.js → 1268.0840ff91e083fcbd.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1307-77fad80cf54477c6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1612-f60c0c93ec773f81.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1826-5d279da64bbbc2de.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1844-9ec4b1d12f6e80eb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1866-e7a6999f25548b30.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1948.15f356b15a625597.js +5 -0
- package/apps/pwa/out/_next/static/chunks/195-fb1d7690bf30bab4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1986-33e13d648a9df765.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2977-e38442e86289f1d3.js → 211-9c9090c59e2c5907.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/2116-6429c188eb846ab8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2196-4700653d12a44b40.js +1 -0
- package/apps/pwa/out/_next/static/chunks/224-e7be8f762fe74986.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2489-ff55a35b202c0f94.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2537-6c289376caa88ca1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2549-89c518a4c8ed4d00.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2699-325cc923ba7b8631.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2957-96ffab3d521fb08f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/311.e685738f92e6e2ec.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3194-807b212fb8eae065.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3324-d1d2979821dfa845.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3558-bbb5ab553a0471d3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3857-995ea9f5ef33d71e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3916-3d02dd1fc257dd3c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4144-fad095b48a1862ee.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4565-3d7e3fdeb43686a8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4795-f372490b178583fc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5360-be1f1d8f9fcc9755.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5755-ea7ed88eb956f47b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5977-94ed6f78e9814b2b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4847.56f5bc454fbcc827.js → 6110.1297d4093fdfbb0d.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/6158.af2e93b7adff709b.js +2 -0
- package/apps/pwa/out/_next/static/chunks/6877-74399f69c7da1433.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1470.98a6ab61ccb4131c.js → 726.83532d69452ee24b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7290-f09c928a06c52e2d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6062-73e68343a9814f6a.js → 7327-2d69fb321ba73389.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{8870-9614a213b990b10b.js → 7748-6e51bfe927019f5c.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/7797-df5aa0381fdc078f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8060-cc008cc6fedfa818.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8085-d065d0393c1760f5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8401-35e94e9091f5eb8d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8682-7061dd4fa7bd62ed.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8695-846034ce44852c70.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9070.067c106528ec1ae6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9103-60fbef33e66f0a46.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9247-c1753a059e7bac08.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7647.2fcd30d894d5ee30.js → 935.4ddaa99fc1d1126c.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{ae787e4c-e5b1ef00b2dbceca.js → a9f2b54d-33c0689b70ed8cf3.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c1a96669158471ec.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-c855c24de7db74fe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-85b316bb4235980b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-9b2b26a33cb2cd42.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-c9955fde67b1bcb5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/bots/page-7a852956c74015a3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-c5a5c621be0e04ae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-4ba4abe096b6c2a8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-575d4a8b4f7becb2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-f5d56ff5f45ad164.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-2260e9eef0357421.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-7c058069c5e7fa63.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-dc5da0b8a2edb8a4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-466bf0ee16ad1432.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-a23bc71713bcc08f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-c1a96669158471ec.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/{page-5b29d9b06ceadade.js → page-ed4a6f799f005d09.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-9cd565005b93aca6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-55f0f40c6db95f15.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-474cb5888ea0e8f3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-35bfec2e631d3eae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-9ca21f9ad3208a61.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-f9ccb1b1adbea14d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/page-ec102c9b8b691e37.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/not-found-a9c2cfa8dda922a5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-6da35144878feb6d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-f6055495e9ed7ea8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-25204694fa9984a5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-a60e035f151d84d3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-189c587f36874538.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/page-c56634bde705a65d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-db03ae3589a81c9e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-4a6463b97f0ad94f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-75bffecc9aa1004e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-a8d2fe0c669e0de4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/page-31d5b875760bb62d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-c26fa10aac6c21c4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-c1a96669158471ec.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-68793c6e10331d66.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-46d5201d2207a511.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-d81c07a7b4f618ae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-be1c4e8697f22360.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-cf0a4b4abead71ea.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-a4717e2c4bf7a28f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-0fd895fab9b62c1b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-8b6c1454a8e8f306.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-c6e4364d9de8f717.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-0acc8e198f7b0dfb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-34882c84f84021c5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-0506a1e0e4bdb2f5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{8046cadf-211ca3c0e00f2b72.js → f6231284-45726550aba08fca.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{2ea96958.e8c7e112de50b067.js → f6b7c9ba.64a895b8b2fedbdc.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/framework-5c169757551134ed.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-59fe95fed40c7a01.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-4ca74dbbee7057c6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-13a0a886df4d97a1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-6af8591cd3a3f038.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-c260571513bf43c2.js +1 -0
- package/apps/pwa/out/_next/static/css/c23d959d3ee15e57.css +1 -0
- package/apps/pwa/out/approvals/index.html +1 -1
- package/apps/pwa/out/approvals/index.txt +23 -23
- package/apps/pwa/out/autopilot/index.html +1 -1
- package/apps/pwa/out/autopilot/index.txt +23 -23
- package/apps/pwa/out/board/index.html +1 -1
- package/apps/pwa/out/board/index.txt +23 -23
- package/apps/pwa/out/botlab/index.html +1 -1
- package/apps/pwa/out/botlab/index.txt +22 -22
- package/apps/pwa/out/bots/index.html +1 -1
- package/apps/pwa/out/bots/index.txt +22 -22
- package/apps/pwa/out/ceo/index.html +1 -1
- package/apps/pwa/out/ceo/index.txt +23 -23
- package/apps/pwa/out/chat/index.html +1 -1
- package/apps/pwa/out/chat/index.txt +22 -22
- package/apps/pwa/out/consult/index.html +1 -1
- package/apps/pwa/out/consult/index.txt +23 -23
- package/apps/pwa/out/control/index.html +1 -1
- package/apps/pwa/out/control/index.txt +23 -23
- package/apps/pwa/out/decisions/index.html +1 -1
- package/apps/pwa/out/decisions/index.txt +22 -22
- package/apps/pwa/out/design-check/index.html +1 -1
- package/apps/pwa/out/design-check/index.txt +23 -23
- package/apps/pwa/out/editor/index.html +1 -1
- package/apps/pwa/out/editor/index.txt +23 -23
- package/apps/pwa/out/exec/index.html +1 -1
- package/apps/pwa/out/exec/index.txt +23 -23
- package/apps/pwa/out/field/index.html +1 -1
- package/apps/pwa/out/field/index.txt +23 -23
- package/apps/pwa/out/healthz +1 -1
- package/apps/pwa/out/index.html +1 -1
- package/apps/pwa/out/index.txt +22 -22
- package/apps/pwa/out/inside/index.html +1 -1
- package/apps/pwa/out/inside/index.txt +22 -22
- package/apps/pwa/out/intake/index.html +1 -1
- package/apps/pwa/out/intake/index.txt +23 -23
- package/apps/pwa/out/live/index.html +1 -1
- package/apps/pwa/out/live/index.txt +23 -23
- package/apps/pwa/out/loops/index.html +1 -1
- package/apps/pwa/out/loops/index.txt +22 -22
- package/apps/pwa/out/market/index.html +1 -1
- package/apps/pwa/out/market/index.txt +22 -22
- package/apps/pwa/out/missions/placeholder/index.html +1 -1
- package/apps/pwa/out/missions/placeholder/index.txt +22 -22
- package/apps/pwa/out/morning/index.html +1 -1
- package/apps/pwa/out/morning/index.txt +23 -23
- package/apps/pwa/out/observatory/index.html +1 -1
- package/apps/pwa/out/observatory/index.txt +23 -23
- package/apps/pwa/out/ops/checklist/index.html +1 -1
- package/apps/pwa/out/ops/checklist/index.txt +22 -22
- package/apps/pwa/out/ops/release/index.html +1 -1
- package/apps/pwa/out/ops/release/index.txt +22 -22
- package/apps/pwa/out/ops/seats/index.html +1 -1
- package/apps/pwa/out/ops/seats/index.txt +22 -22
- package/apps/pwa/out/outputs/index.html +1 -1
- package/apps/pwa/out/outputs/index.txt +22 -22
- package/apps/pwa/out/reflection/index.html +1 -1
- package/apps/pwa/out/reflection/index.txt +23 -23
- package/apps/pwa/out/scheduler/index.html +1 -1
- package/apps/pwa/out/scheduler/index.txt +23 -23
- package/apps/pwa/out/sessions/index.html +1 -1
- package/apps/pwa/out/sessions/index.txt +22 -22
- package/apps/pwa/out/settings/devices/index.html +1 -1
- package/apps/pwa/out/settings/devices/index.txt +23 -23
- package/apps/pwa/out/settings/index.html +1 -1
- package/apps/pwa/out/settings/index.txt +23 -23
- package/apps/pwa/out/setup/done/index.html +1 -1
- package/apps/pwa/out/setup/done/index.txt +23 -23
- package/apps/pwa/out/setup/index.html +1 -1
- package/apps/pwa/out/setup/index.txt +23 -23
- package/apps/pwa/out/share/index.html +1 -1
- package/apps/pwa/out/share/index.txt +23 -23
- package/apps/pwa/out/showroom/index.html +1 -1
- package/apps/pwa/out/showroom/index.txt +22 -22
- package/apps/pwa/out/tasks/index.html +1 -1
- package/apps/pwa/out/tasks/index.txt +23 -23
- package/apps/pwa/out/term/index.html +1 -1
- package/apps/pwa/out/term/index.txt +23 -23
- package/apps/pwa/out/today/index.html +1 -1
- package/apps/pwa/out/today/index.txt +23 -23
- package/apps/pwa/out/trace/index.html +1 -1
- package/apps/pwa/out/trace/index.txt +23 -23
- package/apps/pwa/out/vault/index.html +1 -1
- package/apps/pwa/out/vault/index.txt +23 -23
- package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +23 -23
- package/apps/pwa/out/workflows/index.html +1 -1
- package/apps/pwa/out/workflows/index.txt +23 -23
- package/apps/pwa/out/workspace/index.html +1 -1
- package/apps/pwa/out/workspace/index.txt +23 -23
- package/apps/pwa/out/worktrees/index.html +1 -1
- package/apps/pwa/out/worktrees/index.txt +23 -23
- package/graphs/demo/editor-recipes.yaml +22 -0
- package/graphs/retro/daily.yaml +25 -0
- package/graphs/retro/recipes.yaml +24 -0
- package/package.json +1 -1
- package/scripts/ask-marker-check.ts +3 -1
- package/scripts/land-global-checks.ts +89 -0
- package/scripts/lib/pch-regress-map.ts +2 -1
- package/scripts/release-loop/gate-node.ts +296 -25
- package/scripts/release-loop/gate-timing.ts +116 -7
- package/scripts/release-loop/preflight.ts +6 -4
- package/scripts/release-loop/publish-window.ts +141 -0
- package/scripts/release-loop/release-docs.ts +1 -4
- package/scripts/release-loop/release-universe.ts +38 -0
- package/scripts/release-loop/resume-release.ts +4 -1
- package/scripts/release-loop/unattended-release.ts +10 -2
- package/scripts/release-story/draft.ts +5 -1
- package/scripts/retro/shadow-compare.ts +71 -0
- package/scripts/rhythm/daily.ts +6 -1
- package/src/agent-mission/driver.ts +34 -6
- package/src/autopilot/build/llm-conflict-merge.ts +132 -7
- package/src/autopilot/build/merge-intent.ts +135 -7
- package/src/away/release-watch.ts +20 -3
- package/src/cli/config-drift.ts +513 -0
- package/src/cli/log-event-names.ts +4 -0
- package/src/cli/pr-cli.ts +20 -0
- package/src/cli/release-cli.ts +20 -5
- package/src/cli/retro-cli.ts +78 -0
- package/src/cli/tasks-cli.ts +94 -8
- package/src/dashboard/slash-runtime/dashboard-handlers.ts +5 -4
- package/src/dashboard/slash-runtime/help-from-registry.ts +57 -31
- package/src/domains/outbound-log-probe.ts +6 -1
- package/src/graph-runner/graph-run-api.ts +205 -0
- package/src/graph-runner/runner.ts +11 -1
- package/src/harness/harness-cli-command.ts +419 -52
- package/src/harness/harness-queue.ts +315 -25
- package/src/harness/harness-salvage-cli.ts +62 -0
- package/src/hq/fence-outcomes.ts +63 -0
- package/src/hq/fence-wrapper.ts +33 -0
- package/src/hq/hq.ts +11 -1
- package/src/index.ts +69 -6
- package/src/maturity/feature-maturity.ts +2 -2
- package/src/nexus/api/graph-kinds.ts +10 -4
- package/src/nexus/api/graphs-api.ts +178 -6
- package/src/nexus/api/http-server.ts +38 -3
- package/src/nexus/api/loop-edges.ts +4 -2
- package/src/nexus/api/ops-api.ts +22 -7
- package/src/nexus/api/ops-board-route.ts +48 -0
- package/src/onboarding/entry-hints.ts +5 -0
- package/src/onboarding.ts +24 -6
- package/src/release-loop/feature-store.ts +14 -11
- package/src/release-loop/gate-shards.ts +158 -0
- package/src/release-loop/release-schedule.ts +6 -2
- package/src/retro/daily.ts +372 -0
- package/src/seat-loop/op-decide.ts +173 -0
- package/src/seat-loop/seat-loop.ts +60 -3
- package/src/seat-loop/seat-report.ts +58 -3
- package/src/self-dev/ask-launch-flow.ts +5 -4
- package/src/self-dev/ask-launch-io.ts +49 -1
- package/src/self-dev/ask-path-candidates.ts +40 -2
- package/src/self-dev/draft-sweep.ts +371 -16
- package/src/self-dev/draft-triage-rules.ts +19 -4
- package/src/self-dev/pr-preview.ts +84 -16
- package/src/self-implement/blocked-draft-policy.ts +101 -0
- package/src/self-implement/execution-clarification.ts +11 -0
- package/src/self-implement/gate-env-retry.ts +83 -0
- package/src/self-implement/orchestrator.ts +218 -5
- package/src/self-implement/run-stop.ts +123 -0
- package/src/self-implement/run-ttl.ts +258 -0
- package/src/self-implement/salvage-retention.ts +123 -0
- package/src/self-implement/seams.ts +4 -0
- package/src/self-implement/self-implement-cli.ts +2 -0
- package/src/self-implement/sibling-resync.ts +223 -0
- package/src/self-implement/stop-autoheal.ts +204 -0
- package/src/task-agent/board.ts +1 -1
- package/src/task-agent/card-evidence.ts +99 -10
- package/src/task-agent/judge.ts +7 -0
- package/src/task-agent/live-moves.ts +120 -20
- package/src/task-agent/mission.ts +1 -1
- package/src/task-agent/shadow.ts +10 -1
- package/src/task-agent/task-hand.ts +7 -2
- package/src/task-orchestrator/surfaces/pod-command-job.ts +19 -5
- package/src/task-orchestrator/surfaces/pod-failure-reason.ts +4 -0
- package/src/task-orchestrator/surfaces/pod-install-slots.ts +89 -0
- package/src/task-orchestrator/surfaces/pod-lease.ts +93 -10
- package/src/task-orchestrator/surfaces/pod-pool.ts +147 -34
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +19 -3
- package/src/telegram-commands.ts +41 -0
- package/src/testing/real-cli-spawn.ts +106 -0
- package/src/user-config.ts +56 -3
- package/src/version/packed-revision.json +1 -1
- package/apps/pwa/out/_next/static/chunks/1105-c473ed46272fba79.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1157-cba0e8553d35a980.js +0 -1
- package/apps/pwa/out/_next/static/chunks/171-23a877ed11720de9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/216-5acd01cbde4acda7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2330-c2f07246c8788af1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2336-e830c777eb6bce04.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2375-e061bb24cd2b5cde.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2415.ed6428ff334c7ce2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3094.67339318c7f72a3a.js +0 -2
- package/apps/pwa/out/_next/static/chunks/338-ceb956612dcfaa86.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3395-835e4ceaa6335ba4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3403.4bc97b4066945a94.js +0 -5
- package/apps/pwa/out/_next/static/chunks/3441-be82e3595aef3a20.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3689-89905039bf3e7257.js +0 -1
- package/apps/pwa/out/_next/static/chunks/371-4ad6af55dad02ced.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3822-6f268bc26c6a84ac.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4114-3e63117452378807.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4457-d7df81c90f9d0268.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4551-77dadae76f6cbace.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4978.6fd93b974441e87f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5012-f746f6549b869f91.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5609-012bb3557211f07e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5791-bb82743fa6299562.js +0 -1
- package/apps/pwa/out/_next/static/chunks/62-5bfed1e23790b745.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6320-9bc8561fde416e07.js +0 -1
- package/apps/pwa/out/_next/static/chunks/649-ca96d1c5d09e02b8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6725-68ab7cc0b1faf00d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6726-85a7db59b288c53f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6735-33267c4630d0d963.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6998-a654fe5c58271600.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7633-141682015873beb6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7673-2eda1507d38dadb8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7990-e12efba616f46e03.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8067-143791231c99bd02.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8142-744998d65d7bb17e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8430-a10cfba8ef282d4e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/920-f7dceb78f1c585ef.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9454-12c2f30dea62291c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/976-4a9b4ebdca7c739a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9989-15cdf568bafa9fc8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-859cea1570b6227a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-deef5ee191830f14.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-b193da485f9a14b2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-b6e1a79df0e214f4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-e84df4d907f703c7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-a5fb9a5db89ae4ea.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-1499f481d7fc52d6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-c7cf753aeb648790.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-4118469e514e10fd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-e968f7630654332a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-505915052f947022.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-c2f962fb4a3b06c6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-7b5ed0bd8a589ec4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-cf8193250dd42dd4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-cf3f5dfa35dea8e9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-859cea1570b6227a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-a15e7fcc283e9ca7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-d2915e7b70ff3d0e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-b70cd005d9169e25.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-2595f0eba29f57e1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-c776322454156e36.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-77bbd17f4435aa10.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-049689e611ecc936.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-85954a4fb09c44eb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-e773e552e1068ee6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-5633c4bfa7684b4a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-d829b92bd01b4994.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-061c317fc771becf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-3a45ece8865ed4b6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-0be990618c0d56bd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-bfea4865dc244b73.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-0d6ba8e337741484.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-76a88b55d816482e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-bba1542df59f61ce.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-4185c95689bb372e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-b699e1a8d5d34b8b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-859cea1570b6227a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-c225e338c31bf274.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-449353f70507ca1f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-90b889714102476d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-f1ee7fbeb7f96ddc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-d59a95e1434dfaa0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-71491a23414d1a47.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-de7112bdb65fa4fe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-feb4d0d88079660d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-f17d887b40dd6b1d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-8da77be2192bcd5d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-72c3b9a5e9582b29.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-c3afe4c8d0c48c39.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-ea806bb57f2b8923.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-8d2302399c2c8f87.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-b9308f2d8a931531.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-b10928c60f0b8488.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-689039227d443fab.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-6f35f9d892fa630b.js +0 -1
- package/apps/pwa/out/_next/static/css/85f53c6f35d11382.css +0 -1
- /package/apps/pwa/out/_next/static/{J5H7BvqgSI8DUjtRRcA_S → Bam1YziK2iH9bN4K0utGk}/_ssgManifest.js +0 -0
package/apps/pwa/out/_next/static/chunks/{8870-9614a213b990b10b.js → 7748-6e51bfe927019f5c.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8870],{6015:(e,t,n)=>{n.d(t,{n:()=>h});var s=n(91269),r=n(95817),i=n(83026),o=n(37963),a=n(98883),l=class extends o.Q{#e;#t=void 0;#n;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(e,t){return this.#s=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#r(){let e=this.#n?.state??(0,r.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.jG.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,n,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,n,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,n,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,n,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},c=n(24818);function h(e,t){let n=(0,c.jE)(t),[r]=s.useState(()=>new l(n,e));s.useEffect(()=>{r.setOptions(e)},[r,e]);let o=s.useSyncExternalStore(s.useCallback(e=>r.subscribe(i.jG.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=s.useCallback((e,t)=>{r.mutate(e,t).catch(a.lQ)},[r]);if(o.error&&(0,a.GU)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:h,mutateAsync:o.mutate}}},7002:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},10793:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},11635:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},27810:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]])},29565:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},29910:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("panel-right-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]])},30311:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]])},36767:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},40807:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]])},42716:(e,t,n)=>{n.d(t,{Ay:()=>eI});var s=Object.defineProperty,r={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(r,{Graph:()=>a,alg:()=>m,json:()=>f,version:()=>d});var i=Object.defineProperty,o=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},a=class{constructor(e){this._isDirected=!0,this._isMultigraph=!1,this._isCompound=!1,this._nodes={},this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={},this._nodeCount=0,this._edgeCount=0,this._defaultNodeLabelFn=()=>{},this._defaultEdgeLabelFn=()=>{},e&&(this._isDirected=!("directed"in e)||e.directed,this._isMultigraph="multigraph"in e&&e.multigraph,this._isCompound="compound"in e&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return"function"!=typeof e?this._defaultNodeLabelFn=()=>e:this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){return this.nodes().filter(e=>0===Object.keys(this._in[e]).length)}sinks(){return this.nodes().filter(e=>0===Object.keys(this._out[e]).length)}setNodes(e,t){return e.forEach(e=>{void 0!==t?this.setNode(e,t):this.setNode(e)}),this}setNode(e,t){return e in this._nodes?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return e in this._nodes}removeNode(e){if(e in this._nodes){let t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(e=>{this.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(t),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(void 0===t)t="\0";else{t+="";for(let n=t;void 0!==n;n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}parent(e){if(this._isCompound){let t=this._parent[e];if("\0"!==t)return t}}children(e="\0"){if(this._isCompound){let t=this._children[e];if(t)return Object.keys(t)}else{if("\0"===e)return this.nodes();this.hasNode(e)}return[]}predecessors(e){let t=this._preds[e];if(t)return Object.keys(t)}successors(e){let t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){let t=this.predecessors(e);if(t){let n=new Set(t);for(let t of this.successors(e))n.add(t);return Array.from(n.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){let t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph()),Object.entries(this._nodes).forEach(([n,s])=>{e(n)&&t.setNode(n,s)}),Object.values(this._edgeObjs).forEach(e=>{t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,this.edge(e))});let n={},s=e=>{let r=this.parent(e);return!r||t.hasNode(r)?(n[e]=null!=r?r:void 0,null!=r?r:void 0):r in n?n[r]:s(r)};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,s(e))),t}setDefaultEdgeLabel(e){return"function"!=typeof e?this._defaultEdgeLabelFn=()=>e:this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){return e.reduce((e,n)=>(void 0!==t?this.setEdge(e,n,t):this.setEdge(e,n),n)),this}setEdge(e,t,n,s){let r,i,o,a,c=!1;"object"==typeof e&&null!==e&&"v"in e?(r=e.v,i=e.w,o=e.name,2==arguments.length&&(a=t,c=!0)):(r=e,i=t,o=s,arguments.length>2&&(a=n,c=!0)),r=""+r,i=""+i,void 0!==o&&(o=""+o);let u=h(this._isDirected,r,i,o);if(u in this._edgeLabels)return c&&(this._edgeLabels[u]=a),this;if(void 0!==o&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(i),this._edgeLabels[u]=c?a:this._defaultEdgeLabelFn(r,i,o);let d=function(e,t,n,s){let r=""+t,i=""+n;if(!e&&r>i){let e=r;r=i,i=e}let o={v:r,w:i};return s&&(o.name=s),o}(this._isDirected,r,i,o);return r=d.v,i=d.w,Object.freeze(d),this._edgeObjs[u]=d,l(this._preds[i],r),l(this._sucs[r],i),this._in[i][u]=d,this._out[r][u]=d,this._edgeCount++,this}edge(e,t,n){let s=1==arguments.length?u(this._isDirected,e):h(this._isDirected,e,t,n);return this._edgeLabels[s]}edgeAsObj(e,t,n){let s=1==arguments.length?this.edge(e):this.edge(e,t,n);return"object"!=typeof s?{label:s}:s}hasEdge(e,t,n){return(1==arguments.length?u(this._isDirected,e):h(this._isDirected,e,t,n))in this._edgeLabels}removeEdge(e,t,n){let s=1==arguments.length?u(this._isDirected,e):h(this._isDirected,e,t,n),r=this._edgeObjs[s];if(r){let e=r.v,t=r.w;delete this._edgeLabels[s],delete this._edgeObjs[s],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][s],delete this._out[e][s],this._edgeCount--}return this}inEdges(e,t){return this.isDirected()?this.filterEdges(this._in[e],e,t):this.nodeEdges(e,t)}outEdges(e,t){return this.isDirected()?this.filterEdges(this._out[e],e,t):this.nodeEdges(e,t)}nodeEdges(e,t){if(e in this._nodes)return this.filterEdges({...this._in[e],...this._out[e]},e,t)}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}filterEdges(e,t,n){if(!e)return;let s=Object.values(e);return n?s.filter(e=>e.v===t&&e.w===n||e.v===n&&e.w===t):s}};function l(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){void 0===e[t]||--e[t]||delete e[t]}function h(e,t,n,s){let r=""+t,i=""+n;if(!e&&r>i){let e=r;r=i,i=e}return r+"\x01"+i+"\x01"+(void 0===s?"\0":s)}function u(e,t){return h(e,t.v,t.w,t.name)}var d="4.0.1",f={};function p(e){var t,n;let s={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e).nodes().map(e=>{let n=t.node(e),s=t.parent(e),r={v:e};return void 0!==n&&(r.value=n),void 0!==s&&(r.parent=s),r}),edges:(n=e).edges().map(e=>{let t=n.edge(e),s={v:e.v,w:e.w};return void 0!==e.name&&(s.name=e.name),void 0!==t&&(s.value=t),s})},r=e.graph();return void 0!==r&&(s.value=structuredClone(r)),s}function g(e){let t=new a(e.options);return void 0!==e.value&&t.setGraph(e.value),e.nodes.forEach(e=>{t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(e=>{t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}o(f,{read:()=>g,write:()=>p});var m={};o(m,{CycleException:()=>A,bellmanFord:()=>b,components:()=>v,dijkstra:()=>E,dijkstraAll:()=>O,findCycles:()=>N,floydWarshall:()=>x,isAcyclic:()=>M,postorder:()=>T,preorder:()=>I,prim:()=>j,shortestPaths:()=>$,tarjan:()=>S,topsort:()=>L});var y=()=>1;function b(e,t,n,s){return function(e,t,n,s){let r={},i,o=0,a=e.nodes(),l=function(e){let t=n(e);r[e.v].distance+t<r[e.w].distance&&(r[e.w]={distance:r[e.v].distance+t,predecessor:e.v},i=!0)},c=function(){a.forEach(function(e){s(e).forEach(function(t){let n=t.v===e?t.v:t.w,s=n===t.v?t.w:t.v;l({v:n,w:s})})})};a.forEach(function(e){r[e]={distance:e===t?0:1/0,predecessor:""}});let h=a.length;for(let e=1;e<h&&(i=!1,o++,c(),i);e++);if(o===h-1&&(i=!1,c(),i))throw Error("The graph contains a negative weight cycle");return r}(e,String(t),n||y,s||function(t){return e.outEdges(t)})}function v(e){let t={},n=[],s;return e.nodes().forEach(function(r){s=[],function n(r){r in t||(t[r]=!0,s.push(r),e.successors(r).forEach(n),e.predecessors(r).forEach(n))}(r),s.length&&n.push(s)}),n}var w=class{constructor(){this._arr=[],this._keyIndices={}}size(){return this._arr.length}keys(){return this._arr.map(e=>e.key)}has(e){return e in this._keyIndices}priority(e){let t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key}add(e,t){let n=this._keyIndices,s=String(e);if(!(s in n)){let e=this._arr,r=e.length;return n[s]=r,e.push({key:s,priority:t}),this._decrease(r),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);let e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){let n=this._keyIndices[e];if(void 0===n)throw Error(`Key not found: ${e}`);let s=this._arr[n].priority;if(t>s)throw Error(`New priority is greater than current priority. Key: ${e} Old: ${s} New: ${t}`);this._arr[n].priority=t,this._decrease(n)}_heapify(e){let t=this._arr,n=2*e,s=n+1,r=e;n<t.length&&(r=t[n].priority<t[r].priority?n:r,s<t.length&&(r=t[s].priority<t[r].priority?s:r),r!==e&&(this._swap(e,r),this._heapify(r)))}_decrease(e){let t=this._arr,n=t[e].priority,s;for(;0!==e&&!(t[s=e>>1].priority<n);)this._swap(e,s),e=s}_swap(e,t){let n=this._arr,s=this._keyIndices,r=n[e],i=n[t];n[e]=i,n[t]=r,s[i.key]=e,s[r.key]=t}},k=()=>1;function E(e,t,n,s){return function(e,t,n,s){let r={},i=new w,o,a,l=function(e){let t=e.v!==o?e.v:e.w,s=r[t],l=n(e),c=a.distance+l;if(l<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+l);c<s.distance&&(s.distance=c,s.predecessor=o,i.decrease(t,c))};for(e.nodes().forEach(function(e){let n=e===t?0:1/0;r[e]={distance:n,predecessor:""},i.add(e,n)});i.size()>0&&(a=r[o=i.removeMin()]).distance!==1/0;)s(o).forEach(l);return r}(e,String(t),n||k,s||function(t){return e.outEdges(t)})}function O(e,t,n){return e.nodes().reduce(function(s,r){return s[r]=E(e,r,t,n),s},{})}function S(e){let t=0,n=[],s={},r=[];return e.nodes().forEach(function(i){i in s||function i(o){let a=s[o]={onStack:!0,lowlink:t,index:t++};if(n.push(o),e.successors(o).forEach(function(e){e in s?s[e].onStack&&(a.lowlink=Math.min(a.lowlink,s[e].index)):(i(e),a.lowlink=Math.min(a.lowlink,s[e].lowlink))}),a.lowlink===a.index){let e=[],t;do s[t=n.pop()].onStack=!1,e.push(t);while(o!==t);r.push(e)}}(i)}),r}function N(e){return S(e).filter(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}var _=()=>1;function x(e,t,n){var s,r,i;let o,a;return s=e,r=t||_,i=n||function(t){return e.outEdges(t)},o={},(a=s.nodes()).forEach(function(e){o[e]={},o[e][e]={distance:0,predecessor:""},a.forEach(function(t){e!==t&&(o[e][t]={distance:1/0,predecessor:""})}),i(e).forEach(function(t){let n=t.v===e?t.w:t.v,s=r(t);o[e][n]={distance:s,predecessor:e}})}),a.forEach(function(e){let t=o[e];a.forEach(function(n){let s=o[n];a.forEach(function(n){let r=s[e],i=t[n],o=s[n],a=r.distance+i.distance;a<o.distance&&(o.distance=a,o.predecessor=i.predecessor)})})}),o}var A=class extends Error{constructor(...e){super(...e)}};function L(e){let t={},n={},s=[];if(e.sinks().forEach(function r(i){if(i in n)throw new A;i in t||(n[i]=!0,t[i]=!0,e.predecessors(i).forEach(r),delete n[i],s.push(i))}),Object.keys(t).length!==e.nodeCount())throw new A;return s}function M(e){try{L(e)}catch(e){if(e instanceof A)return!1;throw e}return!0}function C(e,t,n){var s,r,i;let o,a;return s=t,r=function(e,t){return e.push(t),e},i=[],Array.isArray(s)||(s=[s]),o=t=>{var n;return null!=(n=e.isDirected()?e.successors(t):e.neighbors(t))?n:[]},a={},s.forEach(function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);i=function e(t,n,s,r,i,o,a){return n in r||(r[n]=!0,s||(a=o(a,n)),i(n).forEach(function(n){a=e(t,n,s,r,i,o,a)}),s&&(a=o(a,n))),a}(e,t,"post"===n,a,o,r,i)}),i}function T(e,t){return C(e,t,"post")}function I(e,t){return C(e,t,"pre")}function j(e,t){let n=new a,s={},r=new w,i;function o(e){let n=e.v===i?e.w:e.v,o=r.priority(n);if(void 0!==o){let a=t(e);a<o&&(s[n]=i,r.decrease(n,a))}}if(0===e.nodeCount())return n;e.nodes().forEach(function(e){r.add(e,1/0),n.setNode(e)}),r.decrease(e.nodes()[0],0);let l=!1;for(;r.size()>0;){if((i=r.removeMin())in s)n.setEdge(i,s[i]);else{if(l)throw Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(i).forEach(o)}return n}function $(e,t,n,s){return function(e,t,n,s){if(void 0===n)return E(e,t,n,s);let r=!1,i=e.nodes();for(let o=0;o<i.length;o++){let a=s(i[o]);for(let e=0;e<a.length;e++){let t=a[e],s=t.v===i[o]?t.v:t.w,l=s===t.v?t.w:t.v;0>n({v:s,w:l})&&(r=!0)}if(r)return b(e,t,n,s)}return E(e,t,n,s)}(e,t,n,null!=s?s:t=>{let n=e.outEdges(t);return null!=n?n:[]})}function B(e,t,n,s){let r=s;for(;e.hasNode(r);)r=s+""+ ++G;return n.dummy=t,e.setNode(r,n),r}function D(e){let t=new a({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(n=>{e.children(n).length||t.setNode(n,e.node(n))}),e.edges().forEach(n=>{t.setEdge(n,e.edge(n))}),t}function K(e,t){let n,s,r=e.x,i=e.y,o=t.x-r,a=t.y-i,l=e.width/2,c=e.height/2;if(!o&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*l>Math.abs(o)*c?(a<0&&(c=-c),n=c*o/a,s=c):(o<0&&(l=-l),n=l,s=l*a/o),{x:r+n,y:i+s}}function R(e){let t=J(U(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let s=e.node(n),r=s.rank;void 0!==r&&(t[r]||(t[r]=[]),t[r][s.order]=n)}),t}function P(e,t,n,s){let r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=s),B(e,"border",r,t)}function q(e,t){return t.length>65535?e(...(function(e,t=65535){let n=[];for(let s=0;s<e.length;s+=t){let r=e.slice(s,s+t);n.push(r)}return n})(t).map(t=>e(...t))):e(...t)}function U(e){return q(Math.max,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?5e-324:n}))}function F(e,t){let n=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-n)+"ms")}}function V(e,t){return t()}var G=0;function J(e,t,n=1){null==t&&(t=e,e=0);let s=e=>e<t;n<0&&(s=e=>t<e);let r=[];for(let t=e;s(t);t+=n)r.push(t);return r}function z(e,t){let n={};for(let s of t)void 0!==e[s]&&(n[s]=e[s]);return n}function H(e,t){let n;return n="string"==typeof t?e=>e[t]:t,Object.entries(e).reduce((e,[t,s])=>(e[t]=n(s,t),e),{})}var W=class{constructor(){((e,t,n)=>((e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n))(this,"_sentinel");let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return Y(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&Y(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,n=t._prev;for(;n!==t;)e.push(JSON.stringify(n,Q)),n=n._prev;return"["+e.join(", ")+"]"}};function Y(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Q(e,t){if("_next"!==e&&"_prev"!==e)return t}var X=()=>1;function Z(e,t,n,s,r){let i=[],o=r?i:void 0;return(e.inEdges(s.v)||[]).forEach(s=>{let o=e.edge(s),a=e.node(s.v);r&&i.push({v:s.v,w:s.w}),a.out-=o,ee(t,n,a)}),(e.outEdges(s.v)||[]).forEach(s=>{let r=e.edge(s),i=s.w,o=e.node(i);o.in-=r,ee(t,n,o)}),e.removeNode(s.v),o}function ee(e,t,n){var s,r,i;n.out?n.in?null==(i=e[n.out-n.in+t])||i.enqueue(n):null==(r=e[e.length-1])||r.enqueue(n):null==(s=e[0])||s.enqueue(n)}function et(e){let t={};e.sources().forEach(function n(s){let r=e.node(s);if(Object.hasOwn(t,s))return r.rank;t[s]=!0;let i=e.outEdges(s),o=q(Math.min,i?i.map(t=>null==t?1/0:n(t.w)-e.edge(t).minlen):[]);return o===1/0&&(o=0),r.rank=o})}function en(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var es=function(e){var t,n,s,r;let i,o,l=new a({directed:!1}),c=e.nodes();if(0===c.length)throw Error("Graph must have at least one node");let h=c[0],u=e.nodeCount();for(l.setNode(h,{});t=l,n=e,t.nodes().forEach(function e(s){let r=n.nodeEdges(s);r&&r.forEach(r=>{let i=r.v,o=s===i?r.w:i;t.hasNode(o)||en(n,r)||(t.setNode(o,{}),t.setEdge(s,o,{}),e(o))})}),t.nodeCount()<u&&(s=l,i=(r=e).edges().reduce((e,t)=>{let n=1/0;return s.hasNode(t.v)!==s.hasNode(t.w)&&(n=en(r,t)),n<e[0]?[n,t]:e},[1/0,null])[1]);)o=l.hasNode(i.v)?en(e,i):-en(e,i),function(e,t,n){e.nodes().forEach(e=>t.node(e).rank+=n)}(l,e,o);return l},{preorder:er,postorder:ei}=m;function eo(e){var t;let n,s,r;t=e,r=new a().setGraph(t.graph()),t.nodes().forEach(e=>r.setNode(e,t.node(e))),t.edges().forEach(e=>{let n=r.edge(e.v,e.w)||{weight:0,minlen:1},s=t.edge(e);r.setEdge(e.v,e.w,{weight:n.weight+s.weight,minlen:Math.max(n.minlen,s.minlen)})}),et(e=r);let i=es(e);for(ec(i),ea(i,e);n=eh(i);)s=eu(i,e,n),ed(i,e,n,s)}function ea(e,t){let n=ei(e,e.nodes());(n=n.slice(0,n.length-1)).forEach(n=>{var s,r,i;let o;return s=e,r=t,i=n,o=s.node(i).parent,void(s.edge(i,o).cutvalue=el(s,r,i))})}function el(e,t,n){let s=e.node(n).parent,r=!0,i=t.edge(n,s),o=0;i||(r=!1,i=t.edge(s,n)),o=i.weight;let a=t.nodeEdges(n);return a&&a.forEach(i=>{let a=i.v===n,l=a?i.w:i.v;if(l!==s){var c,h,u;let s=a===r,d=t.edge(i).weight;if(o+=s?d:-d,c=e,h=n,u=l,c.hasEdge(h,u)){let t=e.edge(n,l).cutvalue;o+=s?-t:t}}}),o}function ec(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,s,r,i){let o=s,a=t.node(r);n[r]=!0;let l=t.neighbors(r);return l&&l.forEach(i=>{Object.hasOwn(n,i)||(s=e(t,n,s,i,r))}),a.low=o,a.lim=s++,i?a.parent=i:delete a.parent,s}(e,{},1,t)}function eh(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function eu(e,t,n){let s=n.v,r=n.w;t.hasEdge(s,r)||(s=n.w,r=n.v);let i=e.node(s),o=e.node(r),a=i,l=!1;return i.lim>o.lim&&(a=o,l=!0),t.edges().filter(t=>l===ef(e,e.node(t.v),a)&&l!==ef(e,e.node(t.w),a)).reduce((e,n)=>en(t,n)<en(t,e)?n:e)}function ed(e,t,n,s){let r=n.v,i=n.w;e.removeEdge(r,i),e.setEdge(s.v,s.w,{}),ec(e),ea(e,t),function(e,t){let n=e.nodes().find(t=>!e.node(t).parent);if(!n)return;let s=er(e,[n]);(s=s.slice(1)).forEach(n=>{let s=e.node(n).parent,r=t.edge(n,s),i=!1;r||(r=t.edge(s,n),i=!0),t.node(n).rank=t.node(s).rank+(i?r.minlen:-r.minlen)})}(e,t)}function ef(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}eo.initLowLimValues=ec,eo.initCutValues=ea,eo.calcCutValue=el,eo.leaveEdge=eh,eo.enterEdge=eu,eo.exchangeEdges=ed;function ep(e,t,n,s,r,i){let o=r[t][i-1],a=B(e,"border",{width:0,height:0,rank:i,borderType:t},n);r[t][i]=a,e.setParent(a,s),o&&e.setEdge(o,a,{weight:1})}function eg(e){e.nodes().forEach(t=>em(e.node(t))),e.edges().forEach(t=>em(e.edge(t)))}function em(e){let t=e.width;e.width=e.height,e.height=t}function ey(e){e.y=-e.y}function eb(e){let t=e.x;e.x=e.y,e.y=t}function ev(e,t,n){let s;for(;t.length&&(s=t[t.length-1]).i<=n;)t.pop(),e.push(s.vs),n++;return n}function ew(e,t,n){let s=new Map,r=(e,t)=>{s.has(e)||s.set(e,[]),s.get(e).push(t)};for(let t of e.nodes()){let n=e.node(t);if("number"==typeof n.rank&&r(n.rank,t),"number"==typeof n.minRank&&"number"==typeof n.maxRank)for(let e=n.minRank;e<=n.maxRank;e++)e!==n.rank&&r(e,t)}return t.map(function(t){var r;let i,o;return r=s.get(t)||[],i=function(e){let t;for(;e.hasNode(t="_root"+ ++G););return t}(e),o=new a({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t)),r.forEach(s=>{let r=e.node(s),a=e.parent(s);if(r.rank===t||r.minRank<=t&&t<=r.maxRank){o.setNode(s),o.setParent(s,a||i);let l=e[n](s);l&&l.forEach(t=>{let n=t.v===s?t.w:t.v,r=o.edge(n,s),i=void 0!==r?r.weight:0;o.setEdge(n,s,{weight:e.edge(t).weight+i})}),Object.hasOwn(r,"minRank")&&o.setNode(s,{borderLeft:r.borderLeft[t],borderRight:r.borderRight[t]})}}),o})}function ek(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}function eE(e,t,n){if(t>n){let e=t;t=n,n=e}let s=e[t];s||(e[t]=s={}),s[n]=!0}var eO=["nodesep","edgesep","ranksep","marginx","marginy"],eS={ranksep:50,edgesep:20,nodesep:50,rankdir:"TB",rankalign:"center"},eN=["acyclicer","ranker","rankdir","align","rankalign"],e_=["width","height","rank"],ex={width:0,height:0},eA=["minlen","weight","width","height","labeloffset"],eL={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},eM=["labelpos"];function eC(e,t){return H(z(e,t),Number)}function eT(e){let t={};return e&&Object.entries(e).forEach(([e,n])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=n}),t}var eI={graphlib:r,version:"3.0.0",layout:function(e,t={}){let n=t.debugTiming?F:V;return n("layout",()=>{let s=n(" buildLayoutGraph",()=>{var t;let n,s;return t=e,n=new a({multigraph:!0,compound:!0}),s=eT(t.graph()),n.setGraph(Object.assign({},eS,eC(s,eO),z(s,eN))),t.nodes().forEach(e=>{let s=eC(eT(t.node(e)),e_);Object.keys(ex).forEach(e=>{void 0===s[e]&&(s[e]=ex[e])}),n.setNode(e,s);let r=t.parent(e);void 0!==r&&n.setParent(e,r)}),t.edges().forEach(e=>{let s=eT(t.edge(e));n.setEdge(e,Object.assign({},eL,eC(s,eA),z(s,eM)))}),n});return n(" runLayout",()=>{var e,r,i;return e=s,r=n,i=t,void(r(" makeSpaceForEdgeLabels",()=>{var t;let n;return n=(t=e).graph(),void(n.ranksep/=2,t.edges().forEach(e=>{let s=t.edge(e);s.minlen*=2,"c"!==s.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?s.width+=s.labeloffset:s.height+=s.labeloffset)}))}),r(" removeSelfEdges",()=>{var t;(t=e).edges().forEach(e=>{if(e.v===e.w){let n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),r(" acyclic",()=>{var t,n;let s,r,i;("greedy"===e.graph().acyclicer?function(e,t){var n,s;let r,i,o,l,c;if(1>=e.nodeCount())return[];let h=(n=e,s=t||X,r=new a,i=0,o=0,n.nodes().forEach(e=>{r.setNode(e,{v:e,in:0,out:0})}),n.edges().forEach(e=>{let t=r.edge(e.v,e.w)||0,n=s(e);r.setEdge(e.v,e.w,t+n);let a=r.node(e.v),l=r.node(e.w);o=Math.max(o,a.out+=n),i=Math.max(i,l.in+=n)}),l=(function(e){let t=[];for(let n=0;n<e;n++)t.push(n);return t})(o+i+3).map(()=>new W),c=i+1,r.nodes().forEach(e=>{ee(l,c,r.node(e))}),{graph:r,buckets:l,zeroIdx:c});return(function(e,t,n){var s;let r=[],i=t[t.length-1],o=t[0],a;for(;e.nodeCount();){for(;a=o.dequeue();)Z(e,t,n,a);for(;a=i.dequeue();)Z(e,t,n,a);if(e.nodeCount()){for(let i=t.length-2;i>0;--i)if(a=null==(s=t[i])?void 0:s.dequeue()){r=r.concat(Z(e,t,n,a,!0)||[]);break}}}return r})(h.graph,h.buckets,h.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w)||[])}(e,(t=e,e=>t.edge(e).weight)):(s=[],r={},i={},(n=e).nodes().forEach(function e(t){Object.hasOwn(i,t)||(i[t]=!0,r[t]=!0,n.outEdges(t).forEach(t=>{Object.hasOwn(r,t.w)?s.push(t):e(t.w)}),delete r[t])}),s)).forEach(t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,"rev"+ ++G)})}),r(" nestingGraph.run",()=>{var t,n;let s,r,i,o,a,l;return s=B(e,"root",{},"_root"),o=2*(i=q(Math.max,Object.values((l={},(t=e).children("\0").forEach(e=>(function e(n,s){let r=t.children(n);r&&r.length&&r.forEach(t=>e(t,s+1)),l[n]=s})(e,1)),r=l)))-1)+1,e.graph().nestingRoot=s,e.edges().forEach(t=>e.edge(t).minlen*=o),a=(n=e).edges().reduce((e,t)=>e+n.edge(t).weight,0)+1,void(e.children("\0").forEach(t=>(function e(t,n,s,r,i,o,a){var l;let c=t.children(a);if(!c.length){a!==n&&t.setEdge(n,a,{weight:0,minlen:s});return}let h=P(t,"_bt"),u=P(t,"_bb"),d=t.node(a);t.setParent(h,a),d.borderTop=h,t.setParent(u,a),d.borderBottom=u,c.forEach(l=>{var c;e(t,n,s,r,i,o,l);let d=t.node(l),f=d.borderTop?d.borderTop:l,p=d.borderBottom?d.borderBottom:l,g=d.borderTop?r:2*r,m=f!==p?1:i-(null!=(c=o[a])?c:0)+1;t.setEdge(h,f,{weight:g,minlen:m,nestingEdge:!0}),t.setEdge(p,u,{weight:g,minlen:m,nestingEdge:!0})}),t.parent(a)||t.setEdge(n,h,{weight:0,minlen:i+(null!=(l=o[a])?l:0)})})(e,s,o,a,i,r,t)),e.graph().nodeRankFactor=o)}),r(" rank",()=>(function(e){let t=e.graph().ranker;if("function"==typeof t)return t(e);switch(t){case"network-simplex":default:eo(e);break;case"tight-tree":var n;et(n=e),es(n);break;case"longest-path":et(e);case"none":}})(D(e))),r(" injectEdgeLabelProxies",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let n=t.node(e.v),s={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};B(t,"edge-proxy",s,"_ep")}})}),r(" removeEmptyRanks",()=>{let t,n,s,r;return t=q(Math.min,e.nodes().map(t=>e.node(t).rank).filter(e=>void 0!==e)),n=[],e.nodes().forEach(s=>{let r=e.node(s).rank-t;n[r]||(n[r]=[]),n[r].push(s)}),s=0,r=e.graph().nodeRankFactor,void Array.from(n).forEach((t,n)=>{void 0===t&&n%r!=0?--s:void 0!==t&&s&&t.forEach(t=>e.node(t).rank+=s)})}),r(" nestingGraph.cleanup",()=>{let t;return t=e.graph(),void(e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)}))}),r(" normalizeRanks",()=>{let t;return t=q(Math.min,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?Number.MAX_VALUE:n})),void e.nodes().forEach(n=>{let s=e.node(n);Object.hasOwn(s,"rank")&&(s.rank-=t)})}),r(" assignRankMinMax",()=>{var t;let n;return n=0,void((t=e).nodes().forEach(e=>{let s=t.node(e);s.borderTop&&(s.minRank=t.node(s.borderTop).rank,s.maxRank=t.node(s.borderBottom).rank,n=Math.max(n,s.maxRank))}),t.graph().maxRank=n)}),r(" removeEdgeLabelProxies",()=>{var t;(t=e).nodes().forEach(e=>{let n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),r(" normalize.run",()=>{e.graph().dummyChains=[],e.edges().forEach(t=>(function(e,t){let n,s,r,i=t.v,o=e.node(i).rank,a=t.w,l=e.node(a).rank,c=t.name,h=e.edge(t),u=h.labelRank;if(l!==o+1){for(e.removeEdge(t),r=0,++o;o<l;++r,++o)h.points=[],n=B(e,"edge",s={width:0,height:0,edgeLabel:h,edgeObj:t,rank:o},"_d"),o===u&&(s.width=h.width,s.height=h.height,s.dummy="edge-label",s.labelpos=h.labelpos),e.setEdge(i,n,{weight:h.weight},c),0===r&&e.graph().dummyChains.push(n),i=n;e.setEdge(i,a,{weight:h.weight},c)}})(e,t))}),r(" parentDummyChains",()=>{var t,n;let s,r,i;return i=(s={},r=0,(n=t=e).children("\0").forEach(function e(t){let i=r;n.children(t).forEach(e),s[t]={low:i,lim:r++}}),s),void t.graph().dummyChains.forEach(e=>{let n=t.node(e),s=n.edgeObj,r=function(e,t,n,s){let r=[],i=[],o=Math.min(t[n].low,t[s].low),a=Math.max(t[n].lim,t[s].lim),l;l=n;do r.push(l=e.parent(l));while(l&&(t[l].low>o||a>t[l].lim));let c=l,h=s;for(;(h=e.parent(h))!==c;)i.push(h);return{path:r.concat(i.reverse()),lca:c}}(t,i,s.v,s.w),o=r.path,a=r.lca,l=0,c=o[0],h=!0;for(;e!==s.w;){if(n=t.node(e),h){for(;(c=o[l])!==a&&t.node(c).maxRank<n.rank;)l++;c===a&&(h=!1)}if(!h){for(;l<o.length-1&&t.node(o[l+1]).minRank<=n.rank;)l++;c=o[l]}void 0!==c&&t.setParent(e,c),e=t.successors(e)[0]}})}),r(" addBorderSegments",()=>{var t;(t=e).children("\0").forEach(function e(n){let s=t.children(n),r=t.node(n);if(s.length&&s.forEach(e),Object.hasOwn(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(let e=r.minRank,s=r.maxRank+1;e<s;++e)ep(t,"borderLeft","_bl",n,r,e),ep(t,"borderRight","_br",n,r,e)}})}),r(" order",()=>(function e(t,n={}){let s,r,i;if("function"==typeof n.customOrder)return void n.customOrder(t,e);let o=U(t),l=ew(t,J(1,o+1),"inEdges"),c=ew(t,J(o-1,-1,-1),"outEdges"),h=(s={},i=J(q(Math.max,(r=t.nodes().filter(e=>!t.children(e).length)).map(e=>t.node(e).rank))+1).map(()=>[]),r.sort((e,n)=>t.node(e).rank-t.node(n).rank).forEach(function e(n){if(s[n])return;s[n]=!0,i[t.node(n).rank].push(n);let r=t.successors(n);r&&r.forEach(e)}),i);if(ek(t,h),n.disableOptimalOrderHeuristic)return;let u=1/0,d,f=n.constraints||[];for(let e=0,n=0;n<4;++e,++n){(function(e,t,n){let s=new a;e.forEach(function(e){var r;let i,o;n.forEach(e=>s.setEdge(e.left,e.right));let a=e.graph().root,l=function e(t,n,s,r){var i;let o,a,l,c,h,u,d,f,p,g,m=t.children(n),y=t.node(n),b=y?y.borderLeft:void 0,v=y?y.borderRight:void 0,w={};b&&(m=m.filter(e=>e!==b&&e!==v));let k=function(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(!n||!n.length)return{v:t};{let s=n.reduce((t,n)=>{let s=e.edge(n),r=e.node(n.v);return{sum:t.sum+s.weight*r.order,weight:t.weight+s.weight}},{sum:0,weight:0});return{v:t,barycenter:s.sum/s.weight,weight:s.weight}}})}(t,m);k.forEach(n=>{if(t.children(n.v).length){var i,o;let a=e(t,n.v,s,r);w[n.v]=a,Object.hasOwn(a,"barycenter")&&(i=n,o=a,void 0!==i.barycenter?(i.barycenter=(i.barycenter*i.weight+o.barycenter*o.weight)/(i.weight+o.weight),i.weight+=o.weight):(i.barycenter=o.barycenter,i.weight=o.weight))}});let E=(o={},k.forEach((e,t)=>{let n={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(n.barycenter=e.barycenter,n.weight=e.weight),o[e.v]=n}),s.edges().forEach(e=>{let t=o[e.v],n=o[e.w];void 0!==t&&void 0!==n&&(n.indegree++,t.out.push(n))}),function(e){let t=[];for(;e.length;){let n=e.pop();t.push(n),n.in.reverse().forEach(function(e){return t=>{t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let n=0,s=0;e.weight&&(n+=e.barycenter*e.weight,s+=e.weight),t.weight&&(n+=t.barycenter*t.weight,s+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/s,e.weight=s,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),n.out.forEach(function(t){return n=>{n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return t.filter(e=>!e.merged).map(e=>z(e,["vs","i","barycenter","weight"]))}(Object.values(o).filter(e=>!e.indegree)));!function(e,t){e.forEach(e=>{e.vs=e.vs.flatMap(e=>t[e]?t[e].vs:e)})}(E,w);let O=(c=(i=e=>Object.hasOwn(e,"barycenter"),a={lhs:[],rhs:[]},E.forEach(e=>{i(e)?a.lhs.push(e):a.rhs.push(e)}),l=a).lhs,h=l.rhs.sort((e,t)=>t.i-e.i),u=[],d=0,f=0,p=0,c.sort(function(e){return(t,n)=>t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}(!!r)),p=ev(u,h,p),c.forEach(e=>{p+=e.vs.length,u.push(e.vs),d+=e.barycenter*e.weight,f+=e.weight,p=ev(u,h,p)}),g={vs:u.flat(1)},f&&(g.barycenter=d/f,g.weight=f),g);if(b&&v){O.vs=[b,O.vs,v].flat(1);let e=t.predecessors(b);if(e&&e.length){let n=t.node(e[0]),s=t.predecessors(v),r=t.node(s[0]);Object.hasOwn(O,"barycenter")||(O.barycenter=0,O.weight=0),O.barycenter=(O.barycenter*O.weight+n.order+r.order)/(O.weight+2),O.weight+=2}}return O}(e,a,s,t);l.vs.forEach((t,n)=>e.node(t).order=n),r=l.vs,i={},r.forEach(t=>{let n=e.parent(t),r,a;for(;n;){if((r=e.parent(n))?(a=i[r],i[r]=n):(a=o,o=n),a&&a!==n)return void s.setEdge(a,n);n=r}})})})(e%2?l:c,e%4>=2,f),h=R(t);let s=function(e,t){let n=0;for(let s=1;s<t.length;++s)n+=function(e,t,n){var s;let r=(s=n.map((e,t)=>t),n.reduce((e,t,n)=>(e[t]=s[n],e),{})),i=t.flatMap(t=>{let n=e.outEdges(t);return n?n.map(t=>({pos:r[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos):[]}),o=1;for(;o<n.length;)o<<=1;let a=2*o-1;o-=1;let l=Array(a).fill(0),c=0;return i.forEach(e=>{let t=e.pos+o;l[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;c+=e.weight*n}),c}(e,t[s-1],t[s]);return n}(t,h);s<u?(n=0,d=Object.assign({},h),u=s):s===u&&(d=structuredClone(h))}ek(t,d)})(e,i)),r(" insertSelfEdges",()=>{var t;R(t=e).forEach(e=>{let n=0;e.forEach((e,s)=>{let r=t.node(e);r.order=s+n,(r.selfEdges||[]).forEach(e=>{B(t,"selfedge",{width:e.label.width,height:e.label.height,rank:r.rank,order:s+ ++n,e:e.e,label:e.label},"_se")}),delete r.selfEdges})})}),r(" adjustCoordinateSystem",()=>{var t;let n;("lr"===(n=null==(t=e.graph().rankdir)?void 0:t.toLowerCase())||"rl"===n)&&eg(e)}),r(" position",()=>{var t,n,s,r;let i,o,l,c,h,u,d,f,p,g,m,y,b,v,w;m=R(r=t=D(t=e)),b=(y=r.graph()).ranksep,v=y.rankalign,w=0,m.forEach(e=>{let t=e.reduce((e,t)=>{var n;let s=null!=(n=r.node(t).height)?n:0;return e>s?e:s},0);e.forEach(e=>{let n=r.node(e);"top"===v?n.y=w+n.height/2:"bottom"===v?n.y=w+t-n.height/2:n.y=w+t/2}),w+=t+b}),Object.entries((o=R(n=t),l=Object.assign((i={},o.length&&o.reduce(function(e,t){let s=0,r=0,o=e.length,a=t[t.length-1];return t.forEach((e,l)=>{let c=function(e,t){if(e.node(t).dummy){let n=e.predecessors(t);if(n)return n.find(t=>e.node(t).dummy)}}(n,e),h=c?n.node(c).order:o;(c||e===a)&&(t.slice(r,l+1).forEach(e=>{let t=n.predecessors(e);t&&t.forEach(t=>{let r=n.node(t),o=r.order;(o<s||h<o)&&!(r.dummy&&n.node(e).dummy)&&eE(i,t,e)})}),r=l+1,s=h)}),t}),i),function(e,t){let n={};function s(t,s,r,i,o){J(s,r).forEach(s=>{let r=t[s];if(void 0!==r&&e.node(r).dummy){let t=e.predecessors(r);t&&t.forEach(t=>{if(void 0===t)return;let s=e.node(t);s.dummy&&(s.order<i||s.order>o)&&eE(n,t,r)})}})}return t.length&&t.reduce(function(t,n){let r=-1,i=-1,o=0;return n.forEach((a,l)=>{if("border"===e.node(a).dummy){let t=e.predecessors(a);if(t&&t.length){let a=t[0];if(void 0===a)return;i=e.node(a).order,s(n,o,l,r,i),o=l,r=i}}s(n,o,n.length,i,t.length)}),n}),n}(n,o)),c={},["u","d"].forEach(e=>{h="u"===e?o:Object.values(o).reverse(),["l","r"].forEach(t=>{var s,r;let i,o,u;"r"===t&&(h=h.map(e=>Object.values(e).reverse()));let d=(s=h,r=t=>("u"===e?n.predecessors(t):n.successors(t))||[],i={},o={},u={},s.forEach(e=>{e.forEach((e,t)=>{i[e]=e,o[e]=e,u[e]=t})}),s.forEach(e=>{let t=-1;e.forEach(e=>{let n=r(e);if(n&&n.length){let s=n.sort((e,t)=>{let n=u[e],s=u[t];return(void 0!==n?n:0)-(void 0!==s?s:0)}),r=(s.length-1)/2;for(let n=Math.floor(r),a=Math.ceil(r);n<=a;++n){let r=s[n];if(void 0===r)continue;let a=u[r];if(void 0!==a&&o[e]===e&&t<a&&!function(e,t,n){if(t>n){let e=t;t=n,n=e}let s=e[t];return void 0!==s&&Object.hasOwn(s,n)}(l,e,r)){let n=i[r];void 0!==n&&(o[r]=e,o[e]=i[e]=n,t=a)}}}})}),{root:i,align:o}),f=function(e,t,n,s,r=!1){var i,o,l,c,h,u,d;let f,p,g,m={},y=(i=e,o=t,l=n,c=r,f=new a,g=(h=(p=i.graph()).nodesep,u=p.edgesep,d=c,(e,t,n)=>{let s=e.node(t),r=e.node(n),i,o;if(i=0+s.width/2,Object.hasOwn(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=-s.width/2;break;case"r":o=s.width/2}if(o&&(i+=d?o:-o),o=void 0,i+=(s.dummy?u:h)/2,i+=(r.dummy?u:h)/2,i+=r.width/2,Object.hasOwn(r,"labelpos"))switch(r.labelpos.toLowerCase()){case"l":o=r.width/2;break;case"r":o=-r.width/2}return o&&(i+=d?o:-o),i}),o.forEach(e=>{let t;e.forEach(e=>{let n=l[e];if(void 0!==n){if(f.setNode(n),void 0!==t){let s=l[t];if(void 0!==s){let r=f.edge(s,n);f.setEdge(s,n,Math.max(g(i,e,t),r||0))}}t=e}})}),f),b=r?"borderLeft":"borderRight";function v(e,t){let n=y.nodes().slice(),s={},r=n.pop();for(;r;){if(s[r])e(r);else for(let e of(s[r]=!0,n.push(r),t(r)))n.push(e);r=n.pop()}}return v(function(e){let t=y.inEdges(e);t?m[e]=t.reduce((e,t)=>{var n;let s=null!=(n=m[t.v])?n:0,r=y.edge(t);return Math.max(e,s+(void 0!==r?r:0))},0):m[e]=0},function(e){return y.predecessors(e)||[]}),v(function(t){let n=y.outEdges(t),s=1/0;n&&(s=n.reduce((e,t)=>{let n=m[t.w],s=y.edge(t);return Math.min(e,(void 0!==n?n:0)-(void 0!==s?s:0))},1/0));let r=e.node(t);s!==1/0&&r.borderType!==b&&(m[t]=Math.max(void 0!==m[t]?m[t]:0,s))},function(e){return y.successors(e)||[]}),Object.keys(s).forEach(e=>{var t;let s=n[e];void 0!==s&&(m[e]=null!=(t=m[s])?t:0)}),m}(n,h,d.root,d.align,"r"===t);"r"===t&&(f=H(f,e=>-e)),c[e+t]=f})}),u=Object.values(c).reduce((e,t)=>{let s=-1/0,r=1/0;Object.entries(t).forEach(([e,t])=>{var i,o;let a=(i=n,o=e,i.node(o).width/2);s=Math.max(t+a,s),r=Math.min(t-a,r)});let i=s-r;return i<e[0]&&(e=[i,t]),e},[1/0,null])[1],f=q(Math.min,d=Object.values(u)),p=q(Math.max,d),["u","d"].forEach(e=>{["l","r"].forEach(t=>{let n=e+t,s=c[n];if(!s||s===u)return;let r=Object.values(s),i=f-q(Math.min,r);"l"!==t&&(i=p-q(Math.max,r)),i&&(c[n]=H(s,e=>e+i))})}),s=n.graph().align,(g=c.ul)?H(g,(e,t)=>{var n,r;if(s){let e=c[s.toLowerCase()];if(e&&void 0!==e[t])return e[t]}let i=Object.values(c).map(e=>{let n=e[t];return void 0!==n?n:0}).sort((e,t)=>e-t);return((null!=(n=i[1])?n:0)+(null!=(r=i[2])?r:0))/2}):{})).forEach(([e,n])=>t.node(e).x=n)}),r(" positionSelfEdges",()=>{var t;(t=e).nodes().forEach(e=>{let n=t.node(e);if("selfedge"===n.dummy){let s=t.node(n.e.v),r=s.x+s.width/2,i=s.y,o=n.x-r,a=s.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*o/3,y:i-a},{x:r+5*o/6,y:i-a},{x:r+o,y:i},{x:r+5*o/6,y:i+a},{x:r+2*o/3,y:i+a}],n.label.x=n.x,n.label.y=n.y}})}),r(" removeBorderNodes",()=>{var t;(t=e).nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),s=t.node(n.borderTop),r=t.node(n.borderBottom),i=t.node(n.borderLeft[n.borderLeft.length-1]),o=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(o.x-i.x),n.height=Math.abs(r.y-s.y),n.x=i.x+n.width/2,n.y=s.y+n.height/2}}),t.nodes().forEach(e=>{"border"===t.node(e).dummy&&t.removeNode(e)})}),r(" normalize.undo",()=>{e.graph().dummyChains.forEach(t=>{let n=e.node(t),s=n.edgeLabel,r;for(e.setEdge(n.edgeObj,s);n.dummy;)r=e.successors(t)[0],e.removeNode(t),s.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(s.x=n.x,s.y=n.y,s.width=n.width,s.height=n.height),t=r,n=e.node(t)})}),r(" fixupEdgeLabelCoords",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(Object.hasOwn(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),r(" undoCoordinateSystem",()=>{var t,n,s;let r;("bt"===(r=null==(t=e.graph().rankdir)?void 0:t.toLowerCase())||"rl"===r)&&((n=e).nodes().forEach(e=>ey(n.node(e))),n.edges().forEach(e=>{var t;let s=n.edge(e);null==(t=s.points)||t.forEach(ey),Object.hasOwn(s,"y")&&ey(s)})),("lr"===r||"rl"===r)&&((s=e).nodes().forEach(e=>eb(s.node(e))),s.edges().forEach(e=>{var t;let n=s.edge(e);null==(t=n.points)||t.forEach(eb),Object.hasOwn(n,"x")&&eb(n)}),eg(e))}),r(" translateGraph",()=>(function(e){let t=1/0,n=0,s=1/0,r=0,i=e.graph(),o=i.marginx||0,a=i.marginy||0;function l(e){let i=e.x,o=e.y,a=e.width,l=e.height;t=Math.min(t,i-a/2),n=Math.max(n,i+a/2),s=Math.min(s,o-l/2),r=Math.max(r,o+l/2)}e.nodes().forEach(t=>l(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,"x")&&l(n)}),t-=o,s-=a,e.nodes().forEach(n=>{let r=e.node(n);r.x-=t,r.y-=s}),e.edges().forEach(n=>{let r=e.edge(n);r.points.forEach(e=>{e.x-=t,e.y-=s}),Object.hasOwn(r,"x")&&(r.x-=t),Object.hasOwn(r,"y")&&(r.y-=s)}),i.width=n-t+o,i.height=r-s+a})(e)),r(" assignNodeIntersects",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e),s=t.node(e.v),r=t.node(e.w),i,o;n.points?(i=n.points[0],o=n.points[n.points.length-1]):(n.points=[],i=r,o=s),n.points.unshift(K(s,i)),n.points.push(K(r,o))})}),r(" reversePoints",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}),r(" acyclic.undo",()=>{e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let s=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,s)}})}))}),n(" updateInputGraph",()=>{var t,n;return t=e,n=s,void(t.nodes().forEach(e=>{let s=t.node(e),r=n.node(e);s&&(s.x=r.x,s.y=r.y,s.order=r.order,s.rank=r.rank,n.children(e).length&&(s.width=r.width,s.height=r.height))}),t.edges().forEach(e=>{let s=t.edge(e),r=n.edge(e);s.points=r.points,Object.hasOwn(r,"x")&&(s.x=r.x,s.y=r.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height)}),s})},debug:function(e){let t=R(e),n=new a({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),e.edges().forEach(e=>n.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{n.setNode("layer"+t,{rank:"same"}),e.reduce((e,t)=>(n.setEdge(e,t,{style:"invis"}),t))}),n},util:{time:F,notime:V}}},44100:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("panel-right-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]])},45560:(e,t,n)=>{let s;n.d(t,{CA:()=>ew,jh:()=>f,jn:()=>g,oP:()=>m,parse:()=>tW,Tp:()=>tH,As:()=>tY});let r=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),o=Symbol.for("yaml.map"),a=Symbol.for("yaml.pair"),l=Symbol.for("yaml.scalar"),c=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[h]===r,d=e=>!!e&&"object"==typeof e&&e[h]===i,f=e=>!!e&&"object"==typeof e&&e[h]===o,p=e=>!!e&&"object"==typeof e&&e[h]===a,g=e=>!!e&&"object"==typeof e&&e[h]===l,m=e=>!!e&&"object"==typeof e&&e[h]===c;function y(e){if(e&&"object"==typeof e)switch(e[h]){case o:case c:return!0}return!1}function b(e){if(e&&"object"==typeof e)switch(e[h]){case r:case o:case l:case c:return!0}return!1}let v=e=>(g(e)||y(e))&&!!e.anchor,w=Symbol("break visit"),k=Symbol("skip children"),E=Symbol("remove node");function O(e,t){let n=x(t);d(e)?S(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):S(null,e,n,Object.freeze([]))}function S(e,t,n,s){let r=A(e,t,n,s);if(b(r)||p(r))return L(e,s,r),S(e,r,n,s);if("symbol"!=typeof r){if(y(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let r=S(e,t.items[e],n,s);if("number"==typeof r)e=r-1;else{if(r===w)return w;r===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){s=Object.freeze(s.concat(t));let e=S("key",t.key,n,s);if(e===w)return w;e===E&&(t.key=null);let r=S("value",t.value,n,s);if(r===w)return w;r===E&&(t.value=null)}}return r}async function N(e,t){let n=x(t);d(e)?await _(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):await _(null,e,n,Object.freeze([]))}async function _(e,t,n,s){let r=await A(e,t,n,s);if(b(r)||p(r))return L(e,s,r),_(e,r,n,s);if("symbol"!=typeof r){if(y(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let r=await _(e,t.items[e],n,s);if("number"==typeof r)e=r-1;else{if(r===w)return w;r===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){s=Object.freeze(s.concat(t));let e=await _("key",t.key,n,s);if(e===w)return w;e===E&&(t.key=null);let r=await _("value",t.value,n,s);if(r===w)return w;r===E&&(t.value=null)}}return r}function x(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function A(e,t,n,s){return"function"==typeof n?n(e,t,s):f(t)?n.Map?.(e,t,s):m(t)?n.Seq?.(e,t,s):p(t)?n.Pair?.(e,t,s):g(t)?n.Scalar?.(e,t,s):u(t)?n.Alias?.(e,t,s):void 0}function L(e,t,n){let s=t[t.length-1];if(y(s))s.items[e]=n;else if(p(s))"key"===e?s.key=n:s.value=n;else if(d(s))s.contents=n;else{let e=u(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}O.BREAK=w,O.SKIP=k,O.REMOVE=E,N.BREAK=w,N.SKIP=k,N.REMOVE=E;let M={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C=e=>e.replace(/[!,[\]{}]/g,e=>M[e]);class T{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},T.defaultYaml,e),this.tags=Object.assign({},T.defaultTags,t)}clone(){let e=new T(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new T(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:T.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},T.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:T.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},T.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+C(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&b(e.contents)){let n={};O(e.contents,(e,t)=>{b(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[r,i]of s)("!!"!==r||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${r} ${i}`);return n.join("\n")}}function I(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function j(e){let t=new Set;return O(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function $(e,t){for(let n=1;;++n){let s=`${e}${n}`;if(!t.has(s))return s}}function B(e,t,n,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,n=s.length;t<n;++t){let n=s[t],r=B(e,s,String(t),n);void 0===r?delete s[t]:r!==n&&(s[t]=r)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let n=s.get(t),r=B(e,s,t,n);void 0===r?s.delete(t):r!==n&&s.set(t,r)}else if(s instanceof Set)for(let t of Array.from(s)){let n=B(e,s,t,t);void 0===n?s.delete(t):n!==t&&(s.delete(t),s.add(n))}else for(let[t,n]of Object.entries(s)){let r=B(e,s,t,n);void 0===r?delete s[t]:r!==n&&(s[t]=r)}return e.call(t,n,s)}function D(e,t,n){if(Array.isArray(e))return e.map((e,t)=>D(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!v(e))return e.toJSON(t,n);let s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=e=>{s.res=e,delete n.onCreate};let r=e.toJSON(t,n);return n.onCreate&&n.onCreate(r),r}return"bigint"!=typeof e||n?.keep?e:Number(e)}T.defaultYaml={explicit:!1,version:"1.2"},T.defaultTags={"!!":"tag:yaml.org,2002:"};class K{constructor(e){Object.defineProperty(this,h,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:s,reviver:r}={}){if(!d(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=D(this,"",i);if("function"==typeof s)for(let{count:e,res:t}of i.anchors.values())s(t,e);return"function"==typeof r?B(r,{"":o},"",o):o}}class R extends K{constructor(e){super(r),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,s;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let r of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],O(e,{Node:(e,t)=>{(u(t)||v(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(r===this)break;r.anchor===this.source&&(s=r)}if(s&&t){let{anchors:e,doc:n,maxAliasCount:r}=t,i=e.get(s);if(i||(D(s,null,t),i=e.get(s)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n,s){if(u(n)){let e=n.resolve(t),r=s&&e&&s.get(e);return r?r.count*r.aliasCount:0}if(y(n)){let r=0;for(let i of n.items){let n=e(t,i,s);n>r&&(r=n)}return r}return p(n)?Math.max(e(t,n.key,s),e(t,n.value,s)):1}(n,s,e)),i.count*i.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return s}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let s=`*${this.source}`;if(e){if(I(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${s} `}return s}}let P=e=>!e||"function"!=typeof e&&"object"!=typeof e;class q extends K{constructor(e){super(l),this.value=e}toJSON(e,t){return t?.keep?this.value:D(this.value,e,t)}toString(){return String(this.value)}}function U(e,t,n){let s;if(d(e)&&(e=e.contents),b(e))return e;if(p(e)){let t=n.schema[o].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:l,sourceObjects:h}=n;if(r&&e&&"object"==typeof e){if(s=h.get(e))return s.anchor??(s.anchor=i(e)),new R(s.anchor);s={anchor:null,node:null},h.set(e,s)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new q(e);return s&&(s.node=t),t}u=e instanceof Map?l[o]:Symbol.iterator in Object(e)?l[c]:l[o]}a&&(a(u),delete n.onTagObj);let f=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new q(e);return t?f.tag=t:u.default||(f.tag=u.tag),s&&(s.node=f),f}function F(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=s,s=e}else s=new Map([[n,s]])}return U(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}q.BLOCK_FOLDED="BLOCK_FOLDED",q.BLOCK_LITERAL="BLOCK_LITERAL",q.PLAIN="PLAIN",q.QUOTE_DOUBLE="QUOTE_DOUBLE",q.QUOTE_SINGLE="QUOTE_SINGLE";let V=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class G extends K{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>b(t)||p(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(V(e))this.add(t);else{let[n,...s]=e,r=this.get(n,!0);if(y(r))r.addIn(s,t);else if(void 0===r&&this.schema)this.set(n,F(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let s=this.get(t,!0);if(y(s))return s.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...s]=e,r=this.get(n,!0);return 0===s.length?!t&&g(r)?r.value:r:y(r)?r.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!p(t))return!1;let n=t.value;return null==n||e&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let s=this.get(t,!0);return!!y(s)&&s.hasIn(n)}setIn(e,t){let[n,...s]=e;if(0===s.length)this.set(n,t);else{let e=this.get(n,!0);if(y(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(n,F(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}let J=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function z(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,n)=>e.endsWith("\n")?z(n,t):n.includes("\n")?"\n"+z(n,t):(e.endsWith(" ")?"":" ")+n,W="flow",Y="block",Q="quoted";function X(e,t,n="flow",{indentAtStart:s,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){let l,c,h;if(!r||r<0)return e;r<i&&(i=0);let u=Math.max(1+i,1+r-t.length);if(e.length<=u)return e;let d=[],f={},p=r-t.length;"number"==typeof s&&(s>r-Math.max(2,i)?d.push(0):p=r-s);let g=!1,m=-1,y=-1,b=-1;for(n===Y&&-1!==(m=Z(e,m,t.length))&&(p=m+u);h=e[m+=1];){if(n===Q&&"\\"===h){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}b=m}if("\n"===h)n===Y&&(m=Z(e,m,t.length)),p=m+t.length+u,l=void 0;else{if(" "===h&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[m+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=m)}if(m>=p)if(l)d.push(l),p=l+u,l=void 0;else if(n===Q){for(;" "===c||" "===c;)c=h,h=e[m+=1],g=!0;let t=m>b+1?m-2:y-1;if(f[t])return e;d.push(t),f[t]=!0,p=t+u,l=void 0}else g=!0}c=h}if(g&&a&&a(),0===d.length)return e;o&&o();let v=e.slice(0,d[0]);for(let s=0;s<d.length;++s){let r=d[s],i=d[s+1]||e.length;0===r?v=`
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7748],{2886:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]])},3004:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},5230:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]])},7499:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("panel-right-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]])},12623:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("panel-right-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]])},24231:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},24982:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]])},26684:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},27175:(e,t,n)=>{n.d(t,{Ay:()=>eI});var s=Object.defineProperty,r={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(r,{Graph:()=>a,alg:()=>m,json:()=>f,version:()=>d});var i=Object.defineProperty,o=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},a=class{constructor(e){this._isDirected=!0,this._isMultigraph=!1,this._isCompound=!1,this._nodes={},this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={},this._nodeCount=0,this._edgeCount=0,this._defaultNodeLabelFn=()=>{},this._defaultEdgeLabelFn=()=>{},e&&(this._isDirected=!("directed"in e)||e.directed,this._isMultigraph="multigraph"in e&&e.multigraph,this._isCompound="compound"in e&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return"function"!=typeof e?this._defaultNodeLabelFn=()=>e:this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){return this.nodes().filter(e=>0===Object.keys(this._in[e]).length)}sinks(){return this.nodes().filter(e=>0===Object.keys(this._out[e]).length)}setNodes(e,t){return e.forEach(e=>{void 0!==t?this.setNode(e,t):this.setNode(e)}),this}setNode(e,t){return e in this._nodes?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return e in this._nodes}removeNode(e){if(e in this._nodes){let t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(e=>{this.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(t),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(void 0===t)t="\0";else{t+="";for(let n=t;void 0!==n;n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}parent(e){if(this._isCompound){let t=this._parent[e];if("\0"!==t)return t}}children(e="\0"){if(this._isCompound){let t=this._children[e];if(t)return Object.keys(t)}else{if("\0"===e)return this.nodes();this.hasNode(e)}return[]}predecessors(e){let t=this._preds[e];if(t)return Object.keys(t)}successors(e){let t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){let t=this.predecessors(e);if(t){let n=new Set(t);for(let t of this.successors(e))n.add(t);return Array.from(n.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){let t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph()),Object.entries(this._nodes).forEach(([n,s])=>{e(n)&&t.setNode(n,s)}),Object.values(this._edgeObjs).forEach(e=>{t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,this.edge(e))});let n={},s=e=>{let r=this.parent(e);return!r||t.hasNode(r)?(n[e]=null!=r?r:void 0,null!=r?r:void 0):r in n?n[r]:s(r)};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,s(e))),t}setDefaultEdgeLabel(e){return"function"!=typeof e?this._defaultEdgeLabelFn=()=>e:this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){return e.reduce((e,n)=>(void 0!==t?this.setEdge(e,n,t):this.setEdge(e,n),n)),this}setEdge(e,t,n,s){let r,i,o,a,c=!1;"object"==typeof e&&null!==e&&"v"in e?(r=e.v,i=e.w,o=e.name,2==arguments.length&&(a=t,c=!0)):(r=e,i=t,o=s,arguments.length>2&&(a=n,c=!0)),r=""+r,i=""+i,void 0!==o&&(o=""+o);let u=h(this._isDirected,r,i,o);if(u in this._edgeLabels)return c&&(this._edgeLabels[u]=a),this;if(void 0!==o&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(i),this._edgeLabels[u]=c?a:this._defaultEdgeLabelFn(r,i,o);let d=function(e,t,n,s){let r=""+t,i=""+n;if(!e&&r>i){let e=r;r=i,i=e}let o={v:r,w:i};return s&&(o.name=s),o}(this._isDirected,r,i,o);return r=d.v,i=d.w,Object.freeze(d),this._edgeObjs[u]=d,l(this._preds[i],r),l(this._sucs[r],i),this._in[i][u]=d,this._out[r][u]=d,this._edgeCount++,this}edge(e,t,n){let s=1==arguments.length?u(this._isDirected,e):h(this._isDirected,e,t,n);return this._edgeLabels[s]}edgeAsObj(e,t,n){let s=1==arguments.length?this.edge(e):this.edge(e,t,n);return"object"!=typeof s?{label:s}:s}hasEdge(e,t,n){return(1==arguments.length?u(this._isDirected,e):h(this._isDirected,e,t,n))in this._edgeLabels}removeEdge(e,t,n){let s=1==arguments.length?u(this._isDirected,e):h(this._isDirected,e,t,n),r=this._edgeObjs[s];if(r){let e=r.v,t=r.w;delete this._edgeLabels[s],delete this._edgeObjs[s],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][s],delete this._out[e][s],this._edgeCount--}return this}inEdges(e,t){return this.isDirected()?this.filterEdges(this._in[e],e,t):this.nodeEdges(e,t)}outEdges(e,t){return this.isDirected()?this.filterEdges(this._out[e],e,t):this.nodeEdges(e,t)}nodeEdges(e,t){if(e in this._nodes)return this.filterEdges({...this._in[e],...this._out[e]},e,t)}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}filterEdges(e,t,n){if(!e)return;let s=Object.values(e);return n?s.filter(e=>e.v===t&&e.w===n||e.v===n&&e.w===t):s}};function l(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){void 0===e[t]||--e[t]||delete e[t]}function h(e,t,n,s){let r=""+t,i=""+n;if(!e&&r>i){let e=r;r=i,i=e}return r+"\x01"+i+"\x01"+(void 0===s?"\0":s)}function u(e,t){return h(e,t.v,t.w,t.name)}var d="4.0.1",f={};function p(e){var t,n;let s={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e).nodes().map(e=>{let n=t.node(e),s=t.parent(e),r={v:e};return void 0!==n&&(r.value=n),void 0!==s&&(r.parent=s),r}),edges:(n=e).edges().map(e=>{let t=n.edge(e),s={v:e.v,w:e.w};return void 0!==e.name&&(s.name=e.name),void 0!==t&&(s.value=t),s})},r=e.graph();return void 0!==r&&(s.value=structuredClone(r)),s}function g(e){let t=new a(e.options);return void 0!==e.value&&t.setGraph(e.value),e.nodes.forEach(e=>{t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(e=>{t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}o(f,{read:()=>g,write:()=>p});var m={};o(m,{CycleException:()=>A,bellmanFord:()=>b,components:()=>v,dijkstra:()=>E,dijkstraAll:()=>O,findCycles:()=>N,floydWarshall:()=>x,isAcyclic:()=>M,postorder:()=>T,preorder:()=>I,prim:()=>j,shortestPaths:()=>$,tarjan:()=>S,topsort:()=>L});var y=()=>1;function b(e,t,n,s){return function(e,t,n,s){let r={},i,o=0,a=e.nodes(),l=function(e){let t=n(e);r[e.v].distance+t<r[e.w].distance&&(r[e.w]={distance:r[e.v].distance+t,predecessor:e.v},i=!0)},c=function(){a.forEach(function(e){s(e).forEach(function(t){let n=t.v===e?t.v:t.w,s=n===t.v?t.w:t.v;l({v:n,w:s})})})};a.forEach(function(e){r[e]={distance:e===t?0:1/0,predecessor:""}});let h=a.length;for(let e=1;e<h&&(i=!1,o++,c(),i);e++);if(o===h-1&&(i=!1,c(),i))throw Error("The graph contains a negative weight cycle");return r}(e,String(t),n||y,s||function(t){return e.outEdges(t)})}function v(e){let t={},n=[],s;return e.nodes().forEach(function(r){s=[],function n(r){r in t||(t[r]=!0,s.push(r),e.successors(r).forEach(n),e.predecessors(r).forEach(n))}(r),s.length&&n.push(s)}),n}var w=class{constructor(){this._arr=[],this._keyIndices={}}size(){return this._arr.length}keys(){return this._arr.map(e=>e.key)}has(e){return e in this._keyIndices}priority(e){let t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key}add(e,t){let n=this._keyIndices,s=String(e);if(!(s in n)){let e=this._arr,r=e.length;return n[s]=r,e.push({key:s,priority:t}),this._decrease(r),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);let e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){let n=this._keyIndices[e];if(void 0===n)throw Error(`Key not found: ${e}`);let s=this._arr[n].priority;if(t>s)throw Error(`New priority is greater than current priority. Key: ${e} Old: ${s} New: ${t}`);this._arr[n].priority=t,this._decrease(n)}_heapify(e){let t=this._arr,n=2*e,s=n+1,r=e;n<t.length&&(r=t[n].priority<t[r].priority?n:r,s<t.length&&(r=t[s].priority<t[r].priority?s:r),r!==e&&(this._swap(e,r),this._heapify(r)))}_decrease(e){let t=this._arr,n=t[e].priority,s;for(;0!==e&&!(t[s=e>>1].priority<n);)this._swap(e,s),e=s}_swap(e,t){let n=this._arr,s=this._keyIndices,r=n[e],i=n[t];n[e]=i,n[t]=r,s[i.key]=e,s[r.key]=t}},k=()=>1;function E(e,t,n,s){return function(e,t,n,s){let r={},i=new w,o,a,l=function(e){let t=e.v!==o?e.v:e.w,s=r[t],l=n(e),c=a.distance+l;if(l<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+l);c<s.distance&&(s.distance=c,s.predecessor=o,i.decrease(t,c))};for(e.nodes().forEach(function(e){let n=e===t?0:1/0;r[e]={distance:n,predecessor:""},i.add(e,n)});i.size()>0&&(a=r[o=i.removeMin()]).distance!==1/0;)s(o).forEach(l);return r}(e,String(t),n||k,s||function(t){return e.outEdges(t)})}function O(e,t,n){return e.nodes().reduce(function(s,r){return s[r]=E(e,r,t,n),s},{})}function S(e){let t=0,n=[],s={},r=[];return e.nodes().forEach(function(i){i in s||function i(o){let a=s[o]={onStack:!0,lowlink:t,index:t++};if(n.push(o),e.successors(o).forEach(function(e){e in s?s[e].onStack&&(a.lowlink=Math.min(a.lowlink,s[e].index)):(i(e),a.lowlink=Math.min(a.lowlink,s[e].lowlink))}),a.lowlink===a.index){let e=[],t;do s[t=n.pop()].onStack=!1,e.push(t);while(o!==t);r.push(e)}}(i)}),r}function N(e){return S(e).filter(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}var _=()=>1;function x(e,t,n){var s,r,i;let o,a;return s=e,r=t||_,i=n||function(t){return e.outEdges(t)},o={},(a=s.nodes()).forEach(function(e){o[e]={},o[e][e]={distance:0,predecessor:""},a.forEach(function(t){e!==t&&(o[e][t]={distance:1/0,predecessor:""})}),i(e).forEach(function(t){let n=t.v===e?t.w:t.v,s=r(t);o[e][n]={distance:s,predecessor:e}})}),a.forEach(function(e){let t=o[e];a.forEach(function(n){let s=o[n];a.forEach(function(n){let r=s[e],i=t[n],o=s[n],a=r.distance+i.distance;a<o.distance&&(o.distance=a,o.predecessor=i.predecessor)})})}),o}var A=class extends Error{constructor(...e){super(...e)}};function L(e){let t={},n={},s=[];if(e.sinks().forEach(function r(i){if(i in n)throw new A;i in t||(n[i]=!0,t[i]=!0,e.predecessors(i).forEach(r),delete n[i],s.push(i))}),Object.keys(t).length!==e.nodeCount())throw new A;return s}function M(e){try{L(e)}catch(e){if(e instanceof A)return!1;throw e}return!0}function C(e,t,n){var s,r,i;let o,a;return s=t,r=function(e,t){return e.push(t),e},i=[],Array.isArray(s)||(s=[s]),o=t=>{var n;return null!=(n=e.isDirected()?e.successors(t):e.neighbors(t))?n:[]},a={},s.forEach(function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);i=function e(t,n,s,r,i,o,a){return n in r||(r[n]=!0,s||(a=o(a,n)),i(n).forEach(function(n){a=e(t,n,s,r,i,o,a)}),s&&(a=o(a,n))),a}(e,t,"post"===n,a,o,r,i)}),i}function T(e,t){return C(e,t,"post")}function I(e,t){return C(e,t,"pre")}function j(e,t){let n=new a,s={},r=new w,i;function o(e){let n=e.v===i?e.w:e.v,o=r.priority(n);if(void 0!==o){let a=t(e);a<o&&(s[n]=i,r.decrease(n,a))}}if(0===e.nodeCount())return n;e.nodes().forEach(function(e){r.add(e,1/0),n.setNode(e)}),r.decrease(e.nodes()[0],0);let l=!1;for(;r.size()>0;){if((i=r.removeMin())in s)n.setEdge(i,s[i]);else{if(l)throw Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(i).forEach(o)}return n}function $(e,t,n,s){return function(e,t,n,s){if(void 0===n)return E(e,t,n,s);let r=!1,i=e.nodes();for(let o=0;o<i.length;o++){let a=s(i[o]);for(let e=0;e<a.length;e++){let t=a[e],s=t.v===i[o]?t.v:t.w,l=s===t.v?t.w:t.v;0>n({v:s,w:l})&&(r=!0)}if(r)return b(e,t,n,s)}return E(e,t,n,s)}(e,t,n,null!=s?s:t=>{let n=e.outEdges(t);return null!=n?n:[]})}function B(e,t,n,s){let r=s;for(;e.hasNode(r);)r=s+""+ ++G;return n.dummy=t,e.setNode(r,n),r}function D(e){let t=new a({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(n=>{e.children(n).length||t.setNode(n,e.node(n))}),e.edges().forEach(n=>{t.setEdge(n,e.edge(n))}),t}function K(e,t){let n,s,r=e.x,i=e.y,o=t.x-r,a=t.y-i,l=e.width/2,c=e.height/2;if(!o&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*l>Math.abs(o)*c?(a<0&&(c=-c),n=c*o/a,s=c):(o<0&&(l=-l),n=l,s=l*a/o),{x:r+n,y:i+s}}function R(e){let t=J(U(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let s=e.node(n),r=s.rank;void 0!==r&&(t[r]||(t[r]=[]),t[r][s.order]=n)}),t}function P(e,t,n,s){let r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=s),B(e,"border",r,t)}function q(e,t){return t.length>65535?e(...(function(e,t=65535){let n=[];for(let s=0;s<e.length;s+=t){let r=e.slice(s,s+t);n.push(r)}return n})(t).map(t=>e(...t))):e(...t)}function U(e){return q(Math.max,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?5e-324:n}))}function F(e,t){let n=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-n)+"ms")}}function V(e,t){return t()}var G=0;function J(e,t,n=1){null==t&&(t=e,e=0);let s=e=>e<t;n<0&&(s=e=>t<e);let r=[];for(let t=e;s(t);t+=n)r.push(t);return r}function z(e,t){let n={};for(let s of t)void 0!==e[s]&&(n[s]=e[s]);return n}function H(e,t){let n;return n="string"==typeof t?e=>e[t]:t,Object.entries(e).reduce((e,[t,s])=>(e[t]=n(s,t),e),{})}var W=class{constructor(){((e,t,n)=>((e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n))(this,"_sentinel");let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return Y(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&Y(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,n=t._prev;for(;n!==t;)e.push(JSON.stringify(n,Q)),n=n._prev;return"["+e.join(", ")+"]"}};function Y(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Q(e,t){if("_next"!==e&&"_prev"!==e)return t}var X=()=>1;function Z(e,t,n,s,r){let i=[],o=r?i:void 0;return(e.inEdges(s.v)||[]).forEach(s=>{let o=e.edge(s),a=e.node(s.v);r&&i.push({v:s.v,w:s.w}),a.out-=o,ee(t,n,a)}),(e.outEdges(s.v)||[]).forEach(s=>{let r=e.edge(s),i=s.w,o=e.node(i);o.in-=r,ee(t,n,o)}),e.removeNode(s.v),o}function ee(e,t,n){var s,r,i;n.out?n.in?null==(i=e[n.out-n.in+t])||i.enqueue(n):null==(r=e[e.length-1])||r.enqueue(n):null==(s=e[0])||s.enqueue(n)}function et(e){let t={};e.sources().forEach(function n(s){let r=e.node(s);if(Object.hasOwn(t,s))return r.rank;t[s]=!0;let i=e.outEdges(s),o=q(Math.min,i?i.map(t=>null==t?1/0:n(t.w)-e.edge(t).minlen):[]);return o===1/0&&(o=0),r.rank=o})}function en(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var es=function(e){var t,n,s,r;let i,o,l=new a({directed:!1}),c=e.nodes();if(0===c.length)throw Error("Graph must have at least one node");let h=c[0],u=e.nodeCount();for(l.setNode(h,{});t=l,n=e,t.nodes().forEach(function e(s){let r=n.nodeEdges(s);r&&r.forEach(r=>{let i=r.v,o=s===i?r.w:i;t.hasNode(o)||en(n,r)||(t.setNode(o,{}),t.setEdge(s,o,{}),e(o))})}),t.nodeCount()<u&&(s=l,i=(r=e).edges().reduce((e,t)=>{let n=1/0;return s.hasNode(t.v)!==s.hasNode(t.w)&&(n=en(r,t)),n<e[0]?[n,t]:e},[1/0,null])[1]);)o=l.hasNode(i.v)?en(e,i):-en(e,i),function(e,t,n){e.nodes().forEach(e=>t.node(e).rank+=n)}(l,e,o);return l},{preorder:er,postorder:ei}=m;function eo(e){var t;let n,s,r;t=e,r=new a().setGraph(t.graph()),t.nodes().forEach(e=>r.setNode(e,t.node(e))),t.edges().forEach(e=>{let n=r.edge(e.v,e.w)||{weight:0,minlen:1},s=t.edge(e);r.setEdge(e.v,e.w,{weight:n.weight+s.weight,minlen:Math.max(n.minlen,s.minlen)})}),et(e=r);let i=es(e);for(ec(i),ea(i,e);n=eh(i);)s=eu(i,e,n),ed(i,e,n,s)}function ea(e,t){let n=ei(e,e.nodes());(n=n.slice(0,n.length-1)).forEach(n=>{var s,r,i;let o;return s=e,r=t,i=n,o=s.node(i).parent,void(s.edge(i,o).cutvalue=el(s,r,i))})}function el(e,t,n){let s=e.node(n).parent,r=!0,i=t.edge(n,s),o=0;i||(r=!1,i=t.edge(s,n)),o=i.weight;let a=t.nodeEdges(n);return a&&a.forEach(i=>{let a=i.v===n,l=a?i.w:i.v;if(l!==s){var c,h,u;let s=a===r,d=t.edge(i).weight;if(o+=s?d:-d,c=e,h=n,u=l,c.hasEdge(h,u)){let t=e.edge(n,l).cutvalue;o+=s?-t:t}}}),o}function ec(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,s,r,i){let o=s,a=t.node(r);n[r]=!0;let l=t.neighbors(r);return l&&l.forEach(i=>{Object.hasOwn(n,i)||(s=e(t,n,s,i,r))}),a.low=o,a.lim=s++,i?a.parent=i:delete a.parent,s}(e,{},1,t)}function eh(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function eu(e,t,n){let s=n.v,r=n.w;t.hasEdge(s,r)||(s=n.w,r=n.v);let i=e.node(s),o=e.node(r),a=i,l=!1;return i.lim>o.lim&&(a=o,l=!0),t.edges().filter(t=>l===ef(e,e.node(t.v),a)&&l!==ef(e,e.node(t.w),a)).reduce((e,n)=>en(t,n)<en(t,e)?n:e)}function ed(e,t,n,s){let r=n.v,i=n.w;e.removeEdge(r,i),e.setEdge(s.v,s.w,{}),ec(e),ea(e,t),function(e,t){let n=e.nodes().find(t=>!e.node(t).parent);if(!n)return;let s=er(e,[n]);(s=s.slice(1)).forEach(n=>{let s=e.node(n).parent,r=t.edge(n,s),i=!1;r||(r=t.edge(s,n),i=!0),t.node(n).rank=t.node(s).rank+(i?r.minlen:-r.minlen)})}(e,t)}function ef(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}eo.initLowLimValues=ec,eo.initCutValues=ea,eo.calcCutValue=el,eo.leaveEdge=eh,eo.enterEdge=eu,eo.exchangeEdges=ed;function ep(e,t,n,s,r,i){let o=r[t][i-1],a=B(e,"border",{width:0,height:0,rank:i,borderType:t},n);r[t][i]=a,e.setParent(a,s),o&&e.setEdge(o,a,{weight:1})}function eg(e){e.nodes().forEach(t=>em(e.node(t))),e.edges().forEach(t=>em(e.edge(t)))}function em(e){let t=e.width;e.width=e.height,e.height=t}function ey(e){e.y=-e.y}function eb(e){let t=e.x;e.x=e.y,e.y=t}function ev(e,t,n){let s;for(;t.length&&(s=t[t.length-1]).i<=n;)t.pop(),e.push(s.vs),n++;return n}function ew(e,t,n){let s=new Map,r=(e,t)=>{s.has(e)||s.set(e,[]),s.get(e).push(t)};for(let t of e.nodes()){let n=e.node(t);if("number"==typeof n.rank&&r(n.rank,t),"number"==typeof n.minRank&&"number"==typeof n.maxRank)for(let e=n.minRank;e<=n.maxRank;e++)e!==n.rank&&r(e,t)}return t.map(function(t){var r;let i,o;return r=s.get(t)||[],i=function(e){let t;for(;e.hasNode(t="_root"+ ++G););return t}(e),o=new a({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t)),r.forEach(s=>{let r=e.node(s),a=e.parent(s);if(r.rank===t||r.minRank<=t&&t<=r.maxRank){o.setNode(s),o.setParent(s,a||i);let l=e[n](s);l&&l.forEach(t=>{let n=t.v===s?t.w:t.v,r=o.edge(n,s),i=void 0!==r?r.weight:0;o.setEdge(n,s,{weight:e.edge(t).weight+i})}),Object.hasOwn(r,"minRank")&&o.setNode(s,{borderLeft:r.borderLeft[t],borderRight:r.borderRight[t]})}}),o})}function ek(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}function eE(e,t,n){if(t>n){let e=t;t=n,n=e}let s=e[t];s||(e[t]=s={}),s[n]=!0}var eO=["nodesep","edgesep","ranksep","marginx","marginy"],eS={ranksep:50,edgesep:20,nodesep:50,rankdir:"TB",rankalign:"center"},eN=["acyclicer","ranker","rankdir","align","rankalign"],e_=["width","height","rank"],ex={width:0,height:0},eA=["minlen","weight","width","height","labeloffset"],eL={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},eM=["labelpos"];function eC(e,t){return H(z(e,t),Number)}function eT(e){let t={};return e&&Object.entries(e).forEach(([e,n])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=n}),t}var eI={graphlib:r,version:"3.0.0",layout:function(e,t={}){let n=t.debugTiming?F:V;return n("layout",()=>{let s=n(" buildLayoutGraph",()=>{var t;let n,s;return t=e,n=new a({multigraph:!0,compound:!0}),s=eT(t.graph()),n.setGraph(Object.assign({},eS,eC(s,eO),z(s,eN))),t.nodes().forEach(e=>{let s=eC(eT(t.node(e)),e_);Object.keys(ex).forEach(e=>{void 0===s[e]&&(s[e]=ex[e])}),n.setNode(e,s);let r=t.parent(e);void 0!==r&&n.setParent(e,r)}),t.edges().forEach(e=>{let s=eT(t.edge(e));n.setEdge(e,Object.assign({},eL,eC(s,eA),z(s,eM)))}),n});return n(" runLayout",()=>{var e,r,i;return e=s,r=n,i=t,void(r(" makeSpaceForEdgeLabels",()=>{var t;let n;return n=(t=e).graph(),void(n.ranksep/=2,t.edges().forEach(e=>{let s=t.edge(e);s.minlen*=2,"c"!==s.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?s.width+=s.labeloffset:s.height+=s.labeloffset)}))}),r(" removeSelfEdges",()=>{var t;(t=e).edges().forEach(e=>{if(e.v===e.w){let n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),r(" acyclic",()=>{var t,n;let s,r,i;("greedy"===e.graph().acyclicer?function(e,t){var n,s;let r,i,o,l,c;if(1>=e.nodeCount())return[];let h=(n=e,s=t||X,r=new a,i=0,o=0,n.nodes().forEach(e=>{r.setNode(e,{v:e,in:0,out:0})}),n.edges().forEach(e=>{let t=r.edge(e.v,e.w)||0,n=s(e);r.setEdge(e.v,e.w,t+n);let a=r.node(e.v),l=r.node(e.w);o=Math.max(o,a.out+=n),i=Math.max(i,l.in+=n)}),l=(function(e){let t=[];for(let n=0;n<e;n++)t.push(n);return t})(o+i+3).map(()=>new W),c=i+1,r.nodes().forEach(e=>{ee(l,c,r.node(e))}),{graph:r,buckets:l,zeroIdx:c});return(function(e,t,n){var s;let r=[],i=t[t.length-1],o=t[0],a;for(;e.nodeCount();){for(;a=o.dequeue();)Z(e,t,n,a);for(;a=i.dequeue();)Z(e,t,n,a);if(e.nodeCount()){for(let i=t.length-2;i>0;--i)if(a=null==(s=t[i])?void 0:s.dequeue()){r=r.concat(Z(e,t,n,a,!0)||[]);break}}}return r})(h.graph,h.buckets,h.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w)||[])}(e,(t=e,e=>t.edge(e).weight)):(s=[],r={},i={},(n=e).nodes().forEach(function e(t){Object.hasOwn(i,t)||(i[t]=!0,r[t]=!0,n.outEdges(t).forEach(t=>{Object.hasOwn(r,t.w)?s.push(t):e(t.w)}),delete r[t])}),s)).forEach(t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,"rev"+ ++G)})}),r(" nestingGraph.run",()=>{var t,n;let s,r,i,o,a,l;return s=B(e,"root",{},"_root"),o=2*(i=q(Math.max,Object.values((l={},(t=e).children("\0").forEach(e=>(function e(n,s){let r=t.children(n);r&&r.length&&r.forEach(t=>e(t,s+1)),l[n]=s})(e,1)),r=l)))-1)+1,e.graph().nestingRoot=s,e.edges().forEach(t=>e.edge(t).minlen*=o),a=(n=e).edges().reduce((e,t)=>e+n.edge(t).weight,0)+1,void(e.children("\0").forEach(t=>(function e(t,n,s,r,i,o,a){var l;let c=t.children(a);if(!c.length){a!==n&&t.setEdge(n,a,{weight:0,minlen:s});return}let h=P(t,"_bt"),u=P(t,"_bb"),d=t.node(a);t.setParent(h,a),d.borderTop=h,t.setParent(u,a),d.borderBottom=u,c.forEach(l=>{var c;e(t,n,s,r,i,o,l);let d=t.node(l),f=d.borderTop?d.borderTop:l,p=d.borderBottom?d.borderBottom:l,g=d.borderTop?r:2*r,m=f!==p?1:i-(null!=(c=o[a])?c:0)+1;t.setEdge(h,f,{weight:g,minlen:m,nestingEdge:!0}),t.setEdge(p,u,{weight:g,minlen:m,nestingEdge:!0})}),t.parent(a)||t.setEdge(n,h,{weight:0,minlen:i+(null!=(l=o[a])?l:0)})})(e,s,o,a,i,r,t)),e.graph().nodeRankFactor=o)}),r(" rank",()=>(function(e){let t=e.graph().ranker;if("function"==typeof t)return t(e);switch(t){case"network-simplex":default:eo(e);break;case"tight-tree":var n;et(n=e),es(n);break;case"longest-path":et(e);case"none":}})(D(e))),r(" injectEdgeLabelProxies",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let n=t.node(e.v),s={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};B(t,"edge-proxy",s,"_ep")}})}),r(" removeEmptyRanks",()=>{let t,n,s,r;return t=q(Math.min,e.nodes().map(t=>e.node(t).rank).filter(e=>void 0!==e)),n=[],e.nodes().forEach(s=>{let r=e.node(s).rank-t;n[r]||(n[r]=[]),n[r].push(s)}),s=0,r=e.graph().nodeRankFactor,void Array.from(n).forEach((t,n)=>{void 0===t&&n%r!=0?--s:void 0!==t&&s&&t.forEach(t=>e.node(t).rank+=s)})}),r(" nestingGraph.cleanup",()=>{let t;return t=e.graph(),void(e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)}))}),r(" normalizeRanks",()=>{let t;return t=q(Math.min,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?Number.MAX_VALUE:n})),void e.nodes().forEach(n=>{let s=e.node(n);Object.hasOwn(s,"rank")&&(s.rank-=t)})}),r(" assignRankMinMax",()=>{var t;let n;return n=0,void((t=e).nodes().forEach(e=>{let s=t.node(e);s.borderTop&&(s.minRank=t.node(s.borderTop).rank,s.maxRank=t.node(s.borderBottom).rank,n=Math.max(n,s.maxRank))}),t.graph().maxRank=n)}),r(" removeEdgeLabelProxies",()=>{var t;(t=e).nodes().forEach(e=>{let n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),r(" normalize.run",()=>{e.graph().dummyChains=[],e.edges().forEach(t=>(function(e,t){let n,s,r,i=t.v,o=e.node(i).rank,a=t.w,l=e.node(a).rank,c=t.name,h=e.edge(t),u=h.labelRank;if(l!==o+1){for(e.removeEdge(t),r=0,++o;o<l;++r,++o)h.points=[],n=B(e,"edge",s={width:0,height:0,edgeLabel:h,edgeObj:t,rank:o},"_d"),o===u&&(s.width=h.width,s.height=h.height,s.dummy="edge-label",s.labelpos=h.labelpos),e.setEdge(i,n,{weight:h.weight},c),0===r&&e.graph().dummyChains.push(n),i=n;e.setEdge(i,a,{weight:h.weight},c)}})(e,t))}),r(" parentDummyChains",()=>{var t,n;let s,r,i;return i=(s={},r=0,(n=t=e).children("\0").forEach(function e(t){let i=r;n.children(t).forEach(e),s[t]={low:i,lim:r++}}),s),void t.graph().dummyChains.forEach(e=>{let n=t.node(e),s=n.edgeObj,r=function(e,t,n,s){let r=[],i=[],o=Math.min(t[n].low,t[s].low),a=Math.max(t[n].lim,t[s].lim),l;l=n;do r.push(l=e.parent(l));while(l&&(t[l].low>o||a>t[l].lim));let c=l,h=s;for(;(h=e.parent(h))!==c;)i.push(h);return{path:r.concat(i.reverse()),lca:c}}(t,i,s.v,s.w),o=r.path,a=r.lca,l=0,c=o[0],h=!0;for(;e!==s.w;){if(n=t.node(e),h){for(;(c=o[l])!==a&&t.node(c).maxRank<n.rank;)l++;c===a&&(h=!1)}if(!h){for(;l<o.length-1&&t.node(o[l+1]).minRank<=n.rank;)l++;c=o[l]}void 0!==c&&t.setParent(e,c),e=t.successors(e)[0]}})}),r(" addBorderSegments",()=>{var t;(t=e).children("\0").forEach(function e(n){let s=t.children(n),r=t.node(n);if(s.length&&s.forEach(e),Object.hasOwn(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(let e=r.minRank,s=r.maxRank+1;e<s;++e)ep(t,"borderLeft","_bl",n,r,e),ep(t,"borderRight","_br",n,r,e)}})}),r(" order",()=>(function e(t,n={}){let s,r,i;if("function"==typeof n.customOrder)return void n.customOrder(t,e);let o=U(t),l=ew(t,J(1,o+1),"inEdges"),c=ew(t,J(o-1,-1,-1),"outEdges"),h=(s={},i=J(q(Math.max,(r=t.nodes().filter(e=>!t.children(e).length)).map(e=>t.node(e).rank))+1).map(()=>[]),r.sort((e,n)=>t.node(e).rank-t.node(n).rank).forEach(function e(n){if(s[n])return;s[n]=!0,i[t.node(n).rank].push(n);let r=t.successors(n);r&&r.forEach(e)}),i);if(ek(t,h),n.disableOptimalOrderHeuristic)return;let u=1/0,d,f=n.constraints||[];for(let e=0,n=0;n<4;++e,++n){(function(e,t,n){let s=new a;e.forEach(function(e){var r;let i,o;n.forEach(e=>s.setEdge(e.left,e.right));let a=e.graph().root,l=function e(t,n,s,r){var i;let o,a,l,c,h,u,d,f,p,g,m=t.children(n),y=t.node(n),b=y?y.borderLeft:void 0,v=y?y.borderRight:void 0,w={};b&&(m=m.filter(e=>e!==b&&e!==v));let k=function(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(!n||!n.length)return{v:t};{let s=n.reduce((t,n)=>{let s=e.edge(n),r=e.node(n.v);return{sum:t.sum+s.weight*r.order,weight:t.weight+s.weight}},{sum:0,weight:0});return{v:t,barycenter:s.sum/s.weight,weight:s.weight}}})}(t,m);k.forEach(n=>{if(t.children(n.v).length){var i,o;let a=e(t,n.v,s,r);w[n.v]=a,Object.hasOwn(a,"barycenter")&&(i=n,o=a,void 0!==i.barycenter?(i.barycenter=(i.barycenter*i.weight+o.barycenter*o.weight)/(i.weight+o.weight),i.weight+=o.weight):(i.barycenter=o.barycenter,i.weight=o.weight))}});let E=(o={},k.forEach((e,t)=>{let n={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(n.barycenter=e.barycenter,n.weight=e.weight),o[e.v]=n}),s.edges().forEach(e=>{let t=o[e.v],n=o[e.w];void 0!==t&&void 0!==n&&(n.indegree++,t.out.push(n))}),function(e){let t=[];for(;e.length;){let n=e.pop();t.push(n),n.in.reverse().forEach(function(e){return t=>{t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let n=0,s=0;e.weight&&(n+=e.barycenter*e.weight,s+=e.weight),t.weight&&(n+=t.barycenter*t.weight,s+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/s,e.weight=s,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),n.out.forEach(function(t){return n=>{n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return t.filter(e=>!e.merged).map(e=>z(e,["vs","i","barycenter","weight"]))}(Object.values(o).filter(e=>!e.indegree)));!function(e,t){e.forEach(e=>{e.vs=e.vs.flatMap(e=>t[e]?t[e].vs:e)})}(E,w);let O=(c=(i=e=>Object.hasOwn(e,"barycenter"),a={lhs:[],rhs:[]},E.forEach(e=>{i(e)?a.lhs.push(e):a.rhs.push(e)}),l=a).lhs,h=l.rhs.sort((e,t)=>t.i-e.i),u=[],d=0,f=0,p=0,c.sort(function(e){return(t,n)=>t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}(!!r)),p=ev(u,h,p),c.forEach(e=>{p+=e.vs.length,u.push(e.vs),d+=e.barycenter*e.weight,f+=e.weight,p=ev(u,h,p)}),g={vs:u.flat(1)},f&&(g.barycenter=d/f,g.weight=f),g);if(b&&v){O.vs=[b,O.vs,v].flat(1);let e=t.predecessors(b);if(e&&e.length){let n=t.node(e[0]),s=t.predecessors(v),r=t.node(s[0]);Object.hasOwn(O,"barycenter")||(O.barycenter=0,O.weight=0),O.barycenter=(O.barycenter*O.weight+n.order+r.order)/(O.weight+2),O.weight+=2}}return O}(e,a,s,t);l.vs.forEach((t,n)=>e.node(t).order=n),r=l.vs,i={},r.forEach(t=>{let n=e.parent(t),r,a;for(;n;){if((r=e.parent(n))?(a=i[r],i[r]=n):(a=o,o=n),a&&a!==n)return void s.setEdge(a,n);n=r}})})})(e%2?l:c,e%4>=2,f),h=R(t);let s=function(e,t){let n=0;for(let s=1;s<t.length;++s)n+=function(e,t,n){var s;let r=(s=n.map((e,t)=>t),n.reduce((e,t,n)=>(e[t]=s[n],e),{})),i=t.flatMap(t=>{let n=e.outEdges(t);return n?n.map(t=>({pos:r[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos):[]}),o=1;for(;o<n.length;)o<<=1;let a=2*o-1;o-=1;let l=Array(a).fill(0),c=0;return i.forEach(e=>{let t=e.pos+o;l[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;c+=e.weight*n}),c}(e,t[s-1],t[s]);return n}(t,h);s<u?(n=0,d=Object.assign({},h),u=s):s===u&&(d=structuredClone(h))}ek(t,d)})(e,i)),r(" insertSelfEdges",()=>{var t;R(t=e).forEach(e=>{let n=0;e.forEach((e,s)=>{let r=t.node(e);r.order=s+n,(r.selfEdges||[]).forEach(e=>{B(t,"selfedge",{width:e.label.width,height:e.label.height,rank:r.rank,order:s+ ++n,e:e.e,label:e.label},"_se")}),delete r.selfEdges})})}),r(" adjustCoordinateSystem",()=>{var t;let n;("lr"===(n=null==(t=e.graph().rankdir)?void 0:t.toLowerCase())||"rl"===n)&&eg(e)}),r(" position",()=>{var t,n,s,r;let i,o,l,c,h,u,d,f,p,g,m,y,b,v,w;m=R(r=t=D(t=e)),b=(y=r.graph()).ranksep,v=y.rankalign,w=0,m.forEach(e=>{let t=e.reduce((e,t)=>{var n;let s=null!=(n=r.node(t).height)?n:0;return e>s?e:s},0);e.forEach(e=>{let n=r.node(e);"top"===v?n.y=w+n.height/2:"bottom"===v?n.y=w+t-n.height/2:n.y=w+t/2}),w+=t+b}),Object.entries((o=R(n=t),l=Object.assign((i={},o.length&&o.reduce(function(e,t){let s=0,r=0,o=e.length,a=t[t.length-1];return t.forEach((e,l)=>{let c=function(e,t){if(e.node(t).dummy){let n=e.predecessors(t);if(n)return n.find(t=>e.node(t).dummy)}}(n,e),h=c?n.node(c).order:o;(c||e===a)&&(t.slice(r,l+1).forEach(e=>{let t=n.predecessors(e);t&&t.forEach(t=>{let r=n.node(t),o=r.order;(o<s||h<o)&&!(r.dummy&&n.node(e).dummy)&&eE(i,t,e)})}),r=l+1,s=h)}),t}),i),function(e,t){let n={};function s(t,s,r,i,o){J(s,r).forEach(s=>{let r=t[s];if(void 0!==r&&e.node(r).dummy){let t=e.predecessors(r);t&&t.forEach(t=>{if(void 0===t)return;let s=e.node(t);s.dummy&&(s.order<i||s.order>o)&&eE(n,t,r)})}})}return t.length&&t.reduce(function(t,n){let r=-1,i=-1,o=0;return n.forEach((a,l)=>{if("border"===e.node(a).dummy){let t=e.predecessors(a);if(t&&t.length){let a=t[0];if(void 0===a)return;i=e.node(a).order,s(n,o,l,r,i),o=l,r=i}}s(n,o,n.length,i,t.length)}),n}),n}(n,o)),c={},["u","d"].forEach(e=>{h="u"===e?o:Object.values(o).reverse(),["l","r"].forEach(t=>{var s,r;let i,o,u;"r"===t&&(h=h.map(e=>Object.values(e).reverse()));let d=(s=h,r=t=>("u"===e?n.predecessors(t):n.successors(t))||[],i={},o={},u={},s.forEach(e=>{e.forEach((e,t)=>{i[e]=e,o[e]=e,u[e]=t})}),s.forEach(e=>{let t=-1;e.forEach(e=>{let n=r(e);if(n&&n.length){let s=n.sort((e,t)=>{let n=u[e],s=u[t];return(void 0!==n?n:0)-(void 0!==s?s:0)}),r=(s.length-1)/2;for(let n=Math.floor(r),a=Math.ceil(r);n<=a;++n){let r=s[n];if(void 0===r)continue;let a=u[r];if(void 0!==a&&o[e]===e&&t<a&&!function(e,t,n){if(t>n){let e=t;t=n,n=e}let s=e[t];return void 0!==s&&Object.hasOwn(s,n)}(l,e,r)){let n=i[r];void 0!==n&&(o[r]=e,o[e]=i[e]=n,t=a)}}}})}),{root:i,align:o}),f=function(e,t,n,s,r=!1){var i,o,l,c,h,u,d;let f,p,g,m={},y=(i=e,o=t,l=n,c=r,f=new a,g=(h=(p=i.graph()).nodesep,u=p.edgesep,d=c,(e,t,n)=>{let s=e.node(t),r=e.node(n),i,o;if(i=0+s.width/2,Object.hasOwn(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=-s.width/2;break;case"r":o=s.width/2}if(o&&(i+=d?o:-o),o=void 0,i+=(s.dummy?u:h)/2,i+=(r.dummy?u:h)/2,i+=r.width/2,Object.hasOwn(r,"labelpos"))switch(r.labelpos.toLowerCase()){case"l":o=r.width/2;break;case"r":o=-r.width/2}return o&&(i+=d?o:-o),i}),o.forEach(e=>{let t;e.forEach(e=>{let n=l[e];if(void 0!==n){if(f.setNode(n),void 0!==t){let s=l[t];if(void 0!==s){let r=f.edge(s,n);f.setEdge(s,n,Math.max(g(i,e,t),r||0))}}t=e}})}),f),b=r?"borderLeft":"borderRight";function v(e,t){let n=y.nodes().slice(),s={},r=n.pop();for(;r;){if(s[r])e(r);else for(let e of(s[r]=!0,n.push(r),t(r)))n.push(e);r=n.pop()}}return v(function(e){let t=y.inEdges(e);t?m[e]=t.reduce((e,t)=>{var n;let s=null!=(n=m[t.v])?n:0,r=y.edge(t);return Math.max(e,s+(void 0!==r?r:0))},0):m[e]=0},function(e){return y.predecessors(e)||[]}),v(function(t){let n=y.outEdges(t),s=1/0;n&&(s=n.reduce((e,t)=>{let n=m[t.w],s=y.edge(t);return Math.min(e,(void 0!==n?n:0)-(void 0!==s?s:0))},1/0));let r=e.node(t);s!==1/0&&r.borderType!==b&&(m[t]=Math.max(void 0!==m[t]?m[t]:0,s))},function(e){return y.successors(e)||[]}),Object.keys(s).forEach(e=>{var t;let s=n[e];void 0!==s&&(m[e]=null!=(t=m[s])?t:0)}),m}(n,h,d.root,d.align,"r"===t);"r"===t&&(f=H(f,e=>-e)),c[e+t]=f})}),u=Object.values(c).reduce((e,t)=>{let s=-1/0,r=1/0;Object.entries(t).forEach(([e,t])=>{var i,o;let a=(i=n,o=e,i.node(o).width/2);s=Math.max(t+a,s),r=Math.min(t-a,r)});let i=s-r;return i<e[0]&&(e=[i,t]),e},[1/0,null])[1],f=q(Math.min,d=Object.values(u)),p=q(Math.max,d),["u","d"].forEach(e=>{["l","r"].forEach(t=>{let n=e+t,s=c[n];if(!s||s===u)return;let r=Object.values(s),i=f-q(Math.min,r);"l"!==t&&(i=p-q(Math.max,r)),i&&(c[n]=H(s,e=>e+i))})}),s=n.graph().align,(g=c.ul)?H(g,(e,t)=>{var n,r;if(s){let e=c[s.toLowerCase()];if(e&&void 0!==e[t])return e[t]}let i=Object.values(c).map(e=>{let n=e[t];return void 0!==n?n:0}).sort((e,t)=>e-t);return((null!=(n=i[1])?n:0)+(null!=(r=i[2])?r:0))/2}):{})).forEach(([e,n])=>t.node(e).x=n)}),r(" positionSelfEdges",()=>{var t;(t=e).nodes().forEach(e=>{let n=t.node(e);if("selfedge"===n.dummy){let s=t.node(n.e.v),r=s.x+s.width/2,i=s.y,o=n.x-r,a=s.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*o/3,y:i-a},{x:r+5*o/6,y:i-a},{x:r+o,y:i},{x:r+5*o/6,y:i+a},{x:r+2*o/3,y:i+a}],n.label.x=n.x,n.label.y=n.y}})}),r(" removeBorderNodes",()=>{var t;(t=e).nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),s=t.node(n.borderTop),r=t.node(n.borderBottom),i=t.node(n.borderLeft[n.borderLeft.length-1]),o=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(o.x-i.x),n.height=Math.abs(r.y-s.y),n.x=i.x+n.width/2,n.y=s.y+n.height/2}}),t.nodes().forEach(e=>{"border"===t.node(e).dummy&&t.removeNode(e)})}),r(" normalize.undo",()=>{e.graph().dummyChains.forEach(t=>{let n=e.node(t),s=n.edgeLabel,r;for(e.setEdge(n.edgeObj,s);n.dummy;)r=e.successors(t)[0],e.removeNode(t),s.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(s.x=n.x,s.y=n.y,s.width=n.width,s.height=n.height),t=r,n=e.node(t)})}),r(" fixupEdgeLabelCoords",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(Object.hasOwn(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),r(" undoCoordinateSystem",()=>{var t,n,s;let r;("bt"===(r=null==(t=e.graph().rankdir)?void 0:t.toLowerCase())||"rl"===r)&&((n=e).nodes().forEach(e=>ey(n.node(e))),n.edges().forEach(e=>{var t;let s=n.edge(e);null==(t=s.points)||t.forEach(ey),Object.hasOwn(s,"y")&&ey(s)})),("lr"===r||"rl"===r)&&((s=e).nodes().forEach(e=>eb(s.node(e))),s.edges().forEach(e=>{var t;let n=s.edge(e);null==(t=n.points)||t.forEach(eb),Object.hasOwn(n,"x")&&eb(n)}),eg(e))}),r(" translateGraph",()=>(function(e){let t=1/0,n=0,s=1/0,r=0,i=e.graph(),o=i.marginx||0,a=i.marginy||0;function l(e){let i=e.x,o=e.y,a=e.width,l=e.height;t=Math.min(t,i-a/2),n=Math.max(n,i+a/2),s=Math.min(s,o-l/2),r=Math.max(r,o+l/2)}e.nodes().forEach(t=>l(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,"x")&&l(n)}),t-=o,s-=a,e.nodes().forEach(n=>{let r=e.node(n);r.x-=t,r.y-=s}),e.edges().forEach(n=>{let r=e.edge(n);r.points.forEach(e=>{e.x-=t,e.y-=s}),Object.hasOwn(r,"x")&&(r.x-=t),Object.hasOwn(r,"y")&&(r.y-=s)}),i.width=n-t+o,i.height=r-s+a})(e)),r(" assignNodeIntersects",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e),s=t.node(e.v),r=t.node(e.w),i,o;n.points?(i=n.points[0],o=n.points[n.points.length-1]):(n.points=[],i=r,o=s),n.points.unshift(K(s,i)),n.points.push(K(r,o))})}),r(" reversePoints",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}),r(" acyclic.undo",()=>{e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let s=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,s)}})}))}),n(" updateInputGraph",()=>{var t,n;return t=e,n=s,void(t.nodes().forEach(e=>{let s=t.node(e),r=n.node(e);s&&(s.x=r.x,s.y=r.y,s.order=r.order,s.rank=r.rank,n.children(e).length&&(s.width=r.width,s.height=r.height))}),t.edges().forEach(e=>{let s=t.edge(e),r=n.edge(e);s.points=r.points,Object.hasOwn(r,"x")&&(s.x=r.x,s.y=r.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height)}),s})},debug:function(e){let t=R(e),n=new a({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),e.edges().forEach(e=>n.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{n.setNode("layer"+t,{rank:"same"}),e.reduce((e,t)=>(n.setEdge(e,t,{style:"invis"}),t))}),n},util:{time:F,notime:V}}},28657:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]])},33112:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]])},36485:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},45876:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},51706:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},51748:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},55536:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},56671:(e,t,n)=>{let s;n.d(t,{yo:()=>tr,CA:()=>ew,jh:()=>f,jn:()=>g,oP:()=>m,parse:()=>tW,Tp:()=>tH,As:()=>tY});let r=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),o=Symbol.for("yaml.map"),a=Symbol.for("yaml.pair"),l=Symbol.for("yaml.scalar"),c=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[h]===r,d=e=>!!e&&"object"==typeof e&&e[h]===i,f=e=>!!e&&"object"==typeof e&&e[h]===o,p=e=>!!e&&"object"==typeof e&&e[h]===a,g=e=>!!e&&"object"==typeof e&&e[h]===l,m=e=>!!e&&"object"==typeof e&&e[h]===c;function y(e){if(e&&"object"==typeof e)switch(e[h]){case o:case c:return!0}return!1}function b(e){if(e&&"object"==typeof e)switch(e[h]){case r:case o:case l:case c:return!0}return!1}let v=e=>(g(e)||y(e))&&!!e.anchor,w=Symbol("break visit"),k=Symbol("skip children"),E=Symbol("remove node");function O(e,t){let n=x(t);d(e)?S(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):S(null,e,n,Object.freeze([]))}function S(e,t,n,s){let r=A(e,t,n,s);if(b(r)||p(r))return L(e,s,r),S(e,r,n,s);if("symbol"!=typeof r){if(y(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let r=S(e,t.items[e],n,s);if("number"==typeof r)e=r-1;else{if(r===w)return w;r===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){s=Object.freeze(s.concat(t));let e=S("key",t.key,n,s);if(e===w)return w;e===E&&(t.key=null);let r=S("value",t.value,n,s);if(r===w)return w;r===E&&(t.value=null)}}return r}async function N(e,t){let n=x(t);d(e)?await _(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):await _(null,e,n,Object.freeze([]))}async function _(e,t,n,s){let r=await A(e,t,n,s);if(b(r)||p(r))return L(e,s,r),_(e,r,n,s);if("symbol"!=typeof r){if(y(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let r=await _(e,t.items[e],n,s);if("number"==typeof r)e=r-1;else{if(r===w)return w;r===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){s=Object.freeze(s.concat(t));let e=await _("key",t.key,n,s);if(e===w)return w;e===E&&(t.key=null);let r=await _("value",t.value,n,s);if(r===w)return w;r===E&&(t.value=null)}}return r}function x(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function A(e,t,n,s){return"function"==typeof n?n(e,t,s):f(t)?n.Map?.(e,t,s):m(t)?n.Seq?.(e,t,s):p(t)?n.Pair?.(e,t,s):g(t)?n.Scalar?.(e,t,s):u(t)?n.Alias?.(e,t,s):void 0}function L(e,t,n){let s=t[t.length-1];if(y(s))s.items[e]=n;else if(p(s))"key"===e?s.key=n:s.value=n;else if(d(s))s.contents=n;else{let e=u(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}O.BREAK=w,O.SKIP=k,O.REMOVE=E,N.BREAK=w,N.SKIP=k,N.REMOVE=E;let M={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C=e=>e.replace(/[!,[\]{}]/g,e=>M[e]);class T{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},T.defaultYaml,e),this.tags=Object.assign({},T.defaultTags,t)}clone(){let e=new T(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new T(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:T.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},T.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:T.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},T.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+C(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&b(e.contents)){let n={};O(e.contents,(e,t)=>{b(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[r,i]of s)("!!"!==r||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${r} ${i}`);return n.join("\n")}}function I(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function j(e){let t=new Set;return O(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function $(e,t){for(let n=1;;++n){let s=`${e}${n}`;if(!t.has(s))return s}}function B(e,t,n,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,n=s.length;t<n;++t){let n=s[t],r=B(e,s,String(t),n);void 0===r?delete s[t]:r!==n&&(s[t]=r)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let n=s.get(t),r=B(e,s,t,n);void 0===r?s.delete(t):r!==n&&s.set(t,r)}else if(s instanceof Set)for(let t of Array.from(s)){let n=B(e,s,t,t);void 0===n?s.delete(t):n!==t&&(s.delete(t),s.add(n))}else for(let[t,n]of Object.entries(s)){let r=B(e,s,t,n);void 0===r?delete s[t]:r!==n&&(s[t]=r)}return e.call(t,n,s)}function D(e,t,n){if(Array.isArray(e))return e.map((e,t)=>D(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!v(e))return e.toJSON(t,n);let s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=e=>{s.res=e,delete n.onCreate};let r=e.toJSON(t,n);return n.onCreate&&n.onCreate(r),r}return"bigint"!=typeof e||n?.keep?e:Number(e)}T.defaultYaml={explicit:!1,version:"1.2"},T.defaultTags={"!!":"tag:yaml.org,2002:"};class K{constructor(e){Object.defineProperty(this,h,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:s,reviver:r}={}){if(!d(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=D(this,"",i);if("function"==typeof s)for(let{count:e,res:t}of i.anchors.values())s(t,e);return"function"==typeof r?B(r,{"":o},"",o):o}}class R extends K{constructor(e){super(r),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,s;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let r of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],O(e,{Node:(e,t)=>{(u(t)||v(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(r===this)break;r.anchor===this.source&&(s=r)}if(s&&t){let{anchors:e,doc:n,maxAliasCount:r}=t,i=e.get(s);if(i||(D(s,null,t),i=e.get(s)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n,s){if(u(n)){let e=n.resolve(t),r=s&&e&&s.get(e);return r?r.count*r.aliasCount:0}if(y(n)){let r=0;for(let i of n.items){let n=e(t,i,s);n>r&&(r=n)}return r}return p(n)?Math.max(e(t,n.key,s),e(t,n.value,s)):1}(n,s,e)),i.count*i.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return s}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let s=`*${this.source}`;if(e){if(I(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${s} `}return s}}let P=e=>!e||"function"!=typeof e&&"object"!=typeof e;class q extends K{constructor(e){super(l),this.value=e}toJSON(e,t){return t?.keep?this.value:D(this.value,e,t)}toString(){return String(this.value)}}function U(e,t,n){let s;if(d(e)&&(e=e.contents),b(e))return e;if(p(e)){let t=n.schema[o].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:l,sourceObjects:h}=n;if(r&&e&&"object"==typeof e){if(s=h.get(e))return s.anchor??(s.anchor=i(e)),new R(s.anchor);s={anchor:null,node:null},h.set(e,s)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new q(e);return s&&(s.node=t),t}u=e instanceof Map?l[o]:Symbol.iterator in Object(e)?l[c]:l[o]}a&&(a(u),delete n.onTagObj);let f=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new q(e);return t?f.tag=t:u.default||(f.tag=u.tag),s&&(s.node=f),f}function F(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=s,s=e}else s=new Map([[n,s]])}return U(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}q.BLOCK_FOLDED="BLOCK_FOLDED",q.BLOCK_LITERAL="BLOCK_LITERAL",q.PLAIN="PLAIN",q.QUOTE_DOUBLE="QUOTE_DOUBLE",q.QUOTE_SINGLE="QUOTE_SINGLE";let V=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class G extends K{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>b(t)||p(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(V(e))this.add(t);else{let[n,...s]=e,r=this.get(n,!0);if(y(r))r.addIn(s,t);else if(void 0===r&&this.schema)this.set(n,F(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let s=this.get(t,!0);if(y(s))return s.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...s]=e,r=this.get(n,!0);return 0===s.length?!t&&g(r)?r.value:r:y(r)?r.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!p(t))return!1;let n=t.value;return null==n||e&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let s=this.get(t,!0);return!!y(s)&&s.hasIn(n)}setIn(e,t){let[n,...s]=e;if(0===s.length)this.set(n,t);else{let e=this.get(n,!0);if(y(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(n,F(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}let J=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function z(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,n)=>e.endsWith("\n")?z(n,t):n.includes("\n")?"\n"+z(n,t):(e.endsWith(" ")?"":" ")+n,W="flow",Y="block",Q="quoted";function X(e,t,n="flow",{indentAtStart:s,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){let l,c,h;if(!r||r<0)return e;r<i&&(i=0);let u=Math.max(1+i,1+r-t.length);if(e.length<=u)return e;let d=[],f={},p=r-t.length;"number"==typeof s&&(s>r-Math.max(2,i)?d.push(0):p=r-s);let g=!1,m=-1,y=-1,b=-1;for(n===Y&&-1!==(m=Z(e,m,t.length))&&(p=m+u);h=e[m+=1];){if(n===Q&&"\\"===h){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}b=m}if("\n"===h)n===Y&&(m=Z(e,m,t.length)),p=m+t.length+u,l=void 0;else{if(" "===h&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[m+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=m)}if(m>=p)if(l)d.push(l),p=l+u,l=void 0;else if(n===Q){for(;" "===c||" "===c;)c=h,h=e[m+=1],g=!0;let t=m>b+1?m-2:y-1;if(f[t])return e;d.push(t),f[t]=!0,p=t+u,l=void 0}else g=!0}c=h}if(g&&a&&a(),0===d.length)return e;o&&o();let v=e.slice(0,d[0]);for(let s=0;s<d.length;++s){let r=d[s],i=d[s+1]||e.length;0===r?v=`
|
|
2
2
|
${t}${e.slice(0,i)}`:(n===Q&&f[r]&&(v+=`${e[r]}\\`),v+=`
|
|
3
3
|
${t}${e.slice(r+1,i)}`)}return v}function Z(e,t,n){let s=t,r=t+1,i=e[r];for(;" "===i||" "===i;)if(t<r+n)i=e[++t];else{do i=e[++t];while(i&&"\n"!==i);s=t,i=e[r=t+1]}return s}let ee=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),et=e=>/^(%|---|\.\.\.)/m.test(e);function en(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:s}=t,r=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(et(e)?" ":""),o="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(s||'"'===n[e+2]||n.length<r)e+=1;else{for(o+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=i," "===n[e+2]&&(o+="\\"),e+=1,a=e+1}break;default:e+=1}return o=a?o+n.slice(a):n,s?o:X(o,i,Q,ee(t,!1))}function es(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return en(e,t);let n=t.indent||(et(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
4
4
|
${n}`)+"'";return t.implicitKey?s:X(s,n,W,ee(t,!1))}function er(e,t){let n,{singleQuote:s}=t.options;if(!1===s)n=en;else{let t=e.includes('"'),r=e.includes("'");n=t&&!r?es:r&&!t?en:s?es:en}return n(e,t)}try{s=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{s=/\n+(?!\n|$)/g}function ei({comment:e,type:t,value:n},r,i,o){let a,l,c,{blockQuote:h,commentString:u,lineWidth:d}=r.options;if(!h||/\n[\t ]+$/.test(n))return er(n,r);let f=r.indent||(r.forceBlockIndent||et(n)?" ":""),p="literal"===h||"folded"!==h&&t!==q.BLOCK_FOLDED&&(t===q.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let s=t-n,r=e.length;if(r<=s)return!1;for(let t=0,n=0;t<r;++t)if("\n"===e[t]){if(t-n>s)return!0;if(r-(n=t+1)<=s)return!1}return!0}(n,d,f.length));if(!n)return p?"|\n":">\n";for(l=n.length;l>0;--l){let e=n[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let g=n.substring(l),m=g.indexOf("\n");-1===m?a="-":n===g||m!==g.length-1?(a="+",o&&o()):a="",g&&(n=n.slice(0,-g.length),"\n"===g[g.length-1]&&(g=g.slice(0,-1)),g=g.replace(s,`$&${f}`));let y=!1,b=-1;for(c=0;c<n.length;++c){let e=n[c];if(" "===e)y=!0;else if("\n"===e)b=c;else break}let v=n.substring(0,b<c?b+1:c);v&&(n=n.substring(v.length),v=v.replace(/\n+/g,`$&${f}`));let w=f?"2":"1",k=(y?w:"")+a;if(e&&(k+=" "+u(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!p){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),s=!1,i=ee(r,!0);"folded"!==h&&t!==q.BLOCK_FOLDED&&(i.onOverflow=()=>{s=!0});let o=X(`${v}${e}${g}`,f,Y,i);if(!s)return`>${k}
|
|
@@ -14,7 +14,7 @@ ${i}${r}${t}`:"\n";return`${e}
|
|
|
14
14
|
${r}${f}`}}:function({comment:e,items:t},n,{blockItemPrefix:s,flowChars:r,itemIndent:i,onChompKeep:o,onComment:a}){let l,{indent:c,options:{commentString:h}}=n,u=Object.assign({},n,{indent:i,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let r=t[e],o=null;if(b(r))!d&&r.spaceBefore&&f.push(""),eb(n,f,r.commentBefore,d),r.comment&&(o=r.comment);else if(p(r)){let e=b(r.key)?r.key:null;e&&(!d&&e.spaceBefore&&f.push(""),eb(n,f,e.commentBefore,d))}d=!1;let a=el(r,u,()=>o=null,()=>d=!0);o&&(a+=H(a,i,h(o))),d&&o&&(d=!1),f.push(s+a)}if(0===f.length)l=r.start+r.end;else{l=f[0];for(let e=1;e<f.length;++e){let t=f[e];l+=t?`
|
|
15
15
|
${c}${t}`:"\n"}}return e?(l+="\n"+z(h(e),c),a&&a()):d&&o&&o(),l})(e,t,n)}function eb({indent:e,options:{commentString:t}},n,s,r){if(s&&r&&(s=s.replace(/^\n+/,"")),s){let r=z(t(s),e);n.push(r.trimStart())}}function ev(e,t){let n=g(t)?t.value:t;for(let s of e)if(p(s)&&(s.key===t||s.key===n||g(s.key)&&s.key.value===n))return s}class ew extends G{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o,e),this.items=[]}static from(e,t,n){let{keepUndefined:s,replacer:r}=n,i=new this(e),o=(e,o)=>{if("function"==typeof r)o=r.call(t,e,o);else if(Array.isArray(r)&&!r.includes(e))return;(void 0!==o||s)&&i.items.push(eg(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let n;n=p(e)?e:e&&"object"==typeof e&&"key"in e?new em(e.key,e.value):new em(e,e?.value);let s=ev(this.items,n.key),r=this.schema?.sortMapEntries;if(s){if(!t)throw Error(`Key ${n.key} already set`);g(s.value)&&P(n.value)?s.value.value=n.value:s.value=n.value}else if(r){let e=this.items.findIndex(e=>0>r(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ev(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ev(this.items,e),s=n?.value;return(!t&&g(s)?s.value:s)??void 0}has(e){return!!ev(this.items,e)}set(e,t){this.add(new em(e,t),!0)}toJSON(e,t,n){let s=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(s),this.items))ep(t,s,e);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!p(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ey(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ek={collection:"map",default:!0,nodeClass:ew,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(f(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>ew.from(e,t,n)};class eE extends G{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(c,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eO(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=eO(e);if("number"!=typeof n)return;let s=this.items[n];return!t&&g(s)?s.value:s}has(e){let t=eO(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=eO(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let s=this.items[n];g(s)&&P(t)?s.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let s=0;for(let e of this.items)n.push(D(e,String(s++),t));return n}toString(e,t,n){return e?ey(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:s}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof s){let n=t instanceof Set?i:String(e++);i=s.call(t,n,i)}r.items.push(U(i,void 0,n))}}return r}}function eO(e){let t=g(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eS={collection:"seq",default:!0,nodeClass:eE,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(m(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>eE.from(e,t,n)},eN={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>eo(e,t=Object.assign({actualString:!0},t),n,s)},e_={identify:e=>null==e,createNode:()=>new q(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new q(null),stringify:({source:e},t)=>"string"==typeof e&&e_.test.test(e)?e:t.options.nullStr},ex={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new q("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&ex.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function eA({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"==typeof s)return String(s);let r="number"==typeof s?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(i)&&!i.includes("e")){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}let eL={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},eM={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},eC={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new q(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:eA},eT=e=>"bigint"==typeof e||Number.isInteger(e),eI=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function ej(e,t,n){let{value:s}=e;return eT(s)&&s>=0?n+s.toString(t):eA(e)}let e$={identify:e=>eT(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eI(e,2,8,n),stringify:e=>ej(e,8,"0o")},eB={identify:eT,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>eI(e,0,10,n),stringify:eA},eD={identify:e=>eT(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>eI(e,2,16,n),stringify:e=>ej(e,16,"0x")},eK=[ek,eS,eN,e_,ex,e$,eB,eD,eL,eM,eC];function eR(e){return"bigint"==typeof e||Number.isInteger(e)}let eP=({value:e})=>JSON.stringify(e),eq=[ek,eS].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eP},{identify:e=>null==e,createNode:()=>new q(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eP},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:eP},{identify:eR,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>eR(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eP}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),eU={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},s,r,i){let o;if(!n)return"";if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=q.BLOCK_LITERAL),t!==q.QUOTE_DOUBLE){let e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),n=Math.ceil(o.length/e),r=Array(n);for(let t=0,s=0;t<n;++t,s+=e)r[t]=o.substr(s,e);o=r.join(t===q.BLOCK_LITERAL?"\n":" ")}return eo({comment:e,type:t,value:o},s,r,i)}};function eF(e,t){if(m(e))for(let n=0;n<e.items.length;++n){let s=e.items[n];if(!p(s)){if(f(s)){s.items.length>1&&t("Each pair must have its own sequence indicator");let e=s.items[0]||new em(new q(null));if(s.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${s.commentBefore}
|
|
16
16
|
${e.key.commentBefore}`:s.commentBefore),s.comment){let t=e.value??e.key;t.comment=t.comment?`${s.comment}
|
|
17
|
-
${t.comment}`:s.comment}s=e}e.items[n]=p(s)?s:new em(s)}}else t("Expected a sequence for this tag");return e}function eV(e,t,n){let{replacer:s}=n,r=new eE(e);r.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof s&&(e=s.call(t,String(i++),e)),Array.isArray(e))if(2===e.length)o=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;r.items.push(eg(o,a,n))}return r}let eG={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eF,createNode:eV};class eJ extends eE{constructor(){super(),this.add=ew.prototype.add.bind(this),this.delete=ew.prototype.delete.bind(this),this.get=ew.prototype.get.bind(this),this.has=ew.prototype.has.bind(this),this.set=ew.prototype.set.bind(this),this.tag=eJ.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let s,r;if(p(e)?(s=D(e.key,"",t),r=D(e.value,s,t)):s=D(e,"",t),n.has(s))throw Error("Ordered maps must not include duplicate keys");n.set(s,r)}return n}static from(e,t,n){let s=eV(e,t,n),r=new this;return r.items=s.items,r}}eJ.tag="tag:yaml.org,2002:omap";let ez={collection:"seq",identify:e=>e instanceof Map,nodeClass:eJ,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eF(e,t),s=[];for(let{key:e}of n.items)g(e)&&(s.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):s.push(e.value));return Object.assign(new eJ,n)},createNode:(e,t,n)=>eJ.from(e,t,n)};function eH({value:e,source:t},n){return t&&(e?eW:eY).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eW={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new q(!0),stringify:eH},eY={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new q(!1),stringify:eH},eQ=e=>"bigint"==typeof e||Number.isInteger(e);function eX(e,t,n,{intAsBigInt:s}){let r=e[0];if(("-"===r||"+"===r)&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===r?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===r?-1*i:i}function eZ(e,t,n){let{value:s}=e;if(eQ(s)){let e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return eA(e)}class e0 extends ew{constructor(e){super(e),this.tag=e0.tag}add(e){let t;t=p(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new em(e.key,null):new em(e,null),ev(this.items,t.key)||this.items.push(t)}get(e,t){let n=ev(this.items,e);return!t&&p(n)?g(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ev(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new em(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:s}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),r.items.push(eg(e,null,n));return r}}e0.tag="tag:yaml.org,2002:set";let e1={collection:"map",identify:e=>e instanceof Set,nodeClass:e0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e0.from(e,t,n),resolve(e,t){if(f(e))if(e.hasAllNullValues(!0))return Object.assign(new e0,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e2(e,t){let n=e[0],s="-"===n||"+"===n?e.substring(1):e,r=e=>t?BigInt(e):Number(e),i=s.replace(/_/g,"").split(":").reduce((e,t)=>e*r(60)+r(t),r(0));return"-"===n?r(-1)*i:i}function e9(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eA(e);let s="";t<0&&(s="-",t*=n(-1));let r=n(60),i=[t%r];return t<60?i.unshift(0):(t=(t-i[0])/r,i.unshift(t%r),t>=60&&(t=(t-i[0])/r,i.unshift(t))),s+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e8={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e2(e,n),stringify:e9},e3={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e2(e,!1),stringify:e9},e5={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e5.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,s,r,i,o,a]=t.map(Number),l=Date.UTC(n,s-1,r,i||0,o||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=e2(c,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e7=[ek,eS,eN,e_,eW,eY,{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eX(e,2,2,n),stringify:e=>eZ(e,2,"0b")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eX(e,1,8,n),stringify:e=>eZ(e,8,"0")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eX(e,0,10,n),stringify:eA},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eX(e,2,16,n),stringify:e=>eZ(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new q(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:eA},eU,eh,ez,eG,e1,e8,e3,e5],e4=new Map([["core",eK],["failsafe",[ek,eS,eN]],["json",eq],["yaml11",e7],["yaml-1.1",e7]]),e6={binary:eU,bool:ex,float:eC,floatExp:eM,floatNaN:eL,floatTime:e3,int:eB,intHex:eD,intOct:e$,intTime:e8,map:ek,merge:eh,null:e_,omap:ez,pairs:eG,seq:eS,set:e1,timestamp:e5},te={"tag:yaml.org,2002:binary":eU,"tag:yaml.org,2002:merge":eh,"tag:yaml.org,2002:omap":ez,"tag:yaml.org,2002:pairs":eG,"tag:yaml.org,2002:set":e1,"tag:yaml.org,2002:timestamp":e5};function tt(e,t,n){let s=e4.get(t);if(s&&!e)return n&&!s.includes(eh)?s.concat(eh):s.slice();let r=s;if(!r)if(Array.isArray(e))r=[];else{let e=Array.from(e4.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return n&&(r=r.concat(eh)),r.reduce((e,t)=>{let n="string"==typeof t?e6[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e6).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tn=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class ts{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:s,schema:r,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?tt(e,"compat"):e?tt(null,e):null,this.name="string"==typeof r&&r||"core",this.knownTags=s?te:{},this.tags=tt(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,o,{value:ek}),Object.defineProperty(this,l,{value:eN}),Object.defineProperty(this,c,{value:eS}),this.sortMapEntries="function"==typeof i?i:!0===i?tn:null}clone(){let e=Object.create(ts.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:i});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new T({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){let e=Object.create(tr.prototype,{[h]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=b(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ti(this.contents)&&this.contents.add(e)}addIn(e,t){ti(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=j(this);e.anchor=!t||n.has(t)?$(t||"a",n):t}return new R(e.anchor)}createNode(e,t,n){let s;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),s=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:l,tag:c}=n??{},{onAnchor:h,setAnchors:u,sourceObjects:d}=function(e,t){let n=[],s=new Map,r=null;return{onAnchor:s=>{n.push(s),r??(r=j(e));let i=$(t,r);return r.add(i),i},setAnchors:()=>{for(let e of n){let t=s.get(e);if("object"==typeof t&&t.anchor&&(g(t.node)||y(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:s}}(this,i||"a"),f={aliasDuplicateObjects:r??!0,keepUndefined:a??!1,onAnchor:h,onTagObj:l,replacer:s,schema:this.schema,sourceObjects:d},p=U(e,c,f);return o&&y(p)&&(p.flow=!0),u(),p}createPair(e,t,n={}){return new em(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!ti(this.contents)&&this.contents.delete(e)}deleteIn(e){return V(e)?null!=this.contents&&(this.contents=null,!0):!!ti(this.contents)&&this.contents.deleteIn(e)}get(e,t){return y(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return V(e)?!t&&g(this.contents)?this.contents.value:this.contents:y(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!y(this.contents)&&this.contents.has(e)}hasIn(e){return V(e)?void 0!==this.contents:!!y(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=F(this.schema,[e],t):ti(this.contents)&&this.contents.set(e,t)}setIn(e,t){V(e)?this.contents=t:null==this.contents?this.contents=F(this.schema,Array.from(e),t):ti(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new T({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new T({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new ts(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:r,reviver:i}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},a=D(this.contents,t??"",o);if("function"==typeof r)for(let{count:e,res:t}of o.anchors.values())r(t,e);return"function"==typeof i?B(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],s=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");let r=ea(e,t),{commentString:i}=r.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(z(t,""))}let o=!1,a=null;if(e.contents){if(b(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(z(t,""))}r.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>o=!0,l=el(e.contents,r,()=>a=null,t);a&&(l+=H(l,"",i(a))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(el(e.contents,r));if(e.directives?.docEnd)if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(z(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(z(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function ti(e){if(y(e))return!0;throw Error("Expected a YAML collection as document contents")}class to extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}class ta extends to{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class tl extends to{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let tc=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:s,col:r}=n.linePos[0];n.message+=` at line ${s}, column ${r}`;let i=r-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===s&&t.col>r&&(e=Math.max(1,Math.min(t.col-r,80-i)));let a=" ".repeat(i)+"^".repeat(e);n.message+=`:
|
|
17
|
+
${t.comment}`:s.comment}s=e}e.items[n]=p(s)?s:new em(s)}}else t("Expected a sequence for this tag");return e}function eV(e,t,n){let{replacer:s}=n,r=new eE(e);r.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof s&&(e=s.call(t,String(i++),e)),Array.isArray(e))if(2===e.length)o=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;r.items.push(eg(o,a,n))}return r}let eG={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eF,createNode:eV};class eJ extends eE{constructor(){super(),this.add=ew.prototype.add.bind(this),this.delete=ew.prototype.delete.bind(this),this.get=ew.prototype.get.bind(this),this.has=ew.prototype.has.bind(this),this.set=ew.prototype.set.bind(this),this.tag=eJ.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let s,r;if(p(e)?(s=D(e.key,"",t),r=D(e.value,s,t)):s=D(e,"",t),n.has(s))throw Error("Ordered maps must not include duplicate keys");n.set(s,r)}return n}static from(e,t,n){let s=eV(e,t,n),r=new this;return r.items=s.items,r}}eJ.tag="tag:yaml.org,2002:omap";let ez={collection:"seq",identify:e=>e instanceof Map,nodeClass:eJ,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eF(e,t),s=[];for(let{key:e}of n.items)g(e)&&(s.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):s.push(e.value));return Object.assign(new eJ,n)},createNode:(e,t,n)=>eJ.from(e,t,n)};function eH({value:e,source:t},n){return t&&(e?eW:eY).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eW={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new q(!0),stringify:eH},eY={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new q(!1),stringify:eH},eQ=e=>"bigint"==typeof e||Number.isInteger(e);function eX(e,t,n,{intAsBigInt:s}){let r=e[0];if(("-"===r||"+"===r)&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===r?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===r?-1*i:i}function eZ(e,t,n){let{value:s}=e;if(eQ(s)){let e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return eA(e)}class e0 extends ew{constructor(e){super(e),this.tag=e0.tag}add(e){let t;t=p(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new em(e.key,null):new em(e,null),ev(this.items,t.key)||this.items.push(t)}get(e,t){let n=ev(this.items,e);return!t&&p(n)?g(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ev(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new em(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:s}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),r.items.push(eg(e,null,n));return r}}e0.tag="tag:yaml.org,2002:set";let e1={collection:"map",identify:e=>e instanceof Set,nodeClass:e0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e0.from(e,t,n),resolve(e,t){if(f(e))if(e.hasAllNullValues(!0))return Object.assign(new e0,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e2(e,t){let n=e[0],s="-"===n||"+"===n?e.substring(1):e,r=e=>t?BigInt(e):Number(e),i=s.replace(/_/g,"").split(":").reduce((e,t)=>e*r(60)+r(t),r(0));return"-"===n?r(-1)*i:i}function e3(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eA(e);let s="";t<0&&(s="-",t*=n(-1));let r=n(60),i=[t%r];return t<60?i.unshift(0):(t=(t-i[0])/r,i.unshift(t%r),t>=60&&(t=(t-i[0])/r,i.unshift(t))),s+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e4={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e2(e,n),stringify:e3},e5={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e2(e,!1),stringify:e3},e9={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e9.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,s,r,i,o,a]=t.map(Number),l=Date.UTC(n,s-1,r,i||0,o||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=e2(c,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e8=[ek,eS,eN,e_,eW,eY,{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eX(e,2,2,n),stringify:e=>eZ(e,2,"0b")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eX(e,1,8,n),stringify:e=>eZ(e,8,"0")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eX(e,0,10,n),stringify:eA},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eX(e,2,16,n),stringify:e=>eZ(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new q(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:eA},eU,eh,ez,eG,e1,e4,e5,e9],e7=new Map([["core",eK],["failsafe",[ek,eS,eN]],["json",eq],["yaml11",e8],["yaml-1.1",e8]]),e6={binary:eU,bool:ex,float:eC,floatExp:eM,floatNaN:eL,floatTime:e5,int:eB,intHex:eD,intOct:e$,intTime:e4,map:ek,merge:eh,null:e_,omap:ez,pairs:eG,seq:eS,set:e1,timestamp:e9},te={"tag:yaml.org,2002:binary":eU,"tag:yaml.org,2002:merge":eh,"tag:yaml.org,2002:omap":ez,"tag:yaml.org,2002:pairs":eG,"tag:yaml.org,2002:set":e1,"tag:yaml.org,2002:timestamp":e9};function tt(e,t,n){let s=e7.get(t);if(s&&!e)return n&&!s.includes(eh)?s.concat(eh):s.slice();let r=s;if(!r)if(Array.isArray(e))r=[];else{let e=Array.from(e7.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return n&&(r=r.concat(eh)),r.reduce((e,t)=>{let n="string"==typeof t?e6[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e6).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tn=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class ts{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:s,schema:r,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?tt(e,"compat"):e?tt(null,e):null,this.name="string"==typeof r&&r||"core",this.knownTags=s?te:{},this.tags=tt(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,o,{value:ek}),Object.defineProperty(this,l,{value:eN}),Object.defineProperty(this,c,{value:eS}),this.sortMapEntries="function"==typeof i?i:!0===i?tn:null}clone(){let e=Object.create(ts.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:i});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new T({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){let e=Object.create(tr.prototype,{[h]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=b(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ti(this.contents)&&this.contents.add(e)}addIn(e,t){ti(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=j(this);e.anchor=!t||n.has(t)?$(t||"a",n):t}return new R(e.anchor)}createNode(e,t,n){let s;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),s=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:l,tag:c}=n??{},{onAnchor:h,setAnchors:u,sourceObjects:d}=function(e,t){let n=[],s=new Map,r=null;return{onAnchor:s=>{n.push(s),r??(r=j(e));let i=$(t,r);return r.add(i),i},setAnchors:()=>{for(let e of n){let t=s.get(e);if("object"==typeof t&&t.anchor&&(g(t.node)||y(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:s}}(this,i||"a"),f={aliasDuplicateObjects:r??!0,keepUndefined:a??!1,onAnchor:h,onTagObj:l,replacer:s,schema:this.schema,sourceObjects:d},p=U(e,c,f);return o&&y(p)&&(p.flow=!0),u(),p}createPair(e,t,n={}){return new em(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!ti(this.contents)&&this.contents.delete(e)}deleteIn(e){return V(e)?null!=this.contents&&(this.contents=null,!0):!!ti(this.contents)&&this.contents.deleteIn(e)}get(e,t){return y(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return V(e)?!t&&g(this.contents)?this.contents.value:this.contents:y(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!y(this.contents)&&this.contents.has(e)}hasIn(e){return V(e)?void 0!==this.contents:!!y(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=F(this.schema,[e],t):ti(this.contents)&&this.contents.set(e,t)}setIn(e,t){V(e)?this.contents=t:null==this.contents?this.contents=F(this.schema,Array.from(e),t):ti(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new T({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new T({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new ts(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:r,reviver:i}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},a=D(this.contents,t??"",o);if("function"==typeof r)for(let{count:e,res:t}of o.anchors.values())r(t,e);return"function"==typeof i?B(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],s=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");let r=ea(e,t),{commentString:i}=r.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(z(t,""))}let o=!1,a=null;if(e.contents){if(b(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(z(t,""))}r.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>o=!0,l=el(e.contents,r,()=>a=null,t);a&&(l+=H(l,"",i(a))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(el(e.contents,r));if(e.directives?.docEnd)if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(z(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(z(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function ti(e){if(y(e))return!0;throw Error("Expected a YAML collection as document contents")}class to extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}class ta extends to{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class tl extends to{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let tc=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:s,col:r}=n.linePos[0];n.message+=` at line ${s}, column ${r}`;let i=r-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===s&&t.col>r&&(e=Math.max(1,Math.min(t.col-r,80-i)));let a=" ".repeat(i)+"^".repeat(e);n.message+=`:
|
|
18
18
|
|
|
19
19
|
${o}
|
|
20
20
|
${a}
|
|
@@ -22,4 +22,4 @@ ${a}
|
|
|
22
22
|
${n}`:n;else if(s||e.directives.docStart||!r)e.commentBefore=n;else if(y(r)&&!r.flow&&r.items.length>0){let e=r.items[0];p(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}
|
|
23
23
|
${t}`:n}else{let e=r.commentBefore;r.commentBefore=e?`${n}
|
|
24
24
|
${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:t_(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,s)=>{let r=tN(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:s,value:r,end:i},o){let a=new tr(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},c=th(s,{indicator:"doc-start",next:r??i?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(a.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=r?tO(l,r,c,o):tS(l,c.end,s,null,c,o);let h=a.contents.range[2],u=tg(i,h,!1,o);return u.comment&&(a.comment=u.comment),a.range=[n,h,u.offset],a}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new ta(tN(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new ta(tN(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=tg(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
|
|
25
|
-
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ta(tN(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new tr(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}let tA=Symbol("break visit"),tL=Symbol("skip children"),tM=Symbol("remove item");function tC(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,s){let r=s(n,t);if("symbol"==typeof r)return r;for(let i of["key","value"]){let o=n[i];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let r=e(Object.freeze(t.concat([[i,n]])),o.items[n],s);if("number"==typeof r)n=r-1;else{if(r===tA)return tA;r===tM&&(o.items.splice(n,1),n-=1)}}"function"==typeof r&&"key"===i&&(r=r(n,t))}}return"function"==typeof r?r(n,t):r}(Object.freeze([]),e,t)}function tT(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}tC.BREAK=tA,tC.SKIP=tL,tC.REMOVE=tM,tC.itemAtPath=(e,t)=>{let n=e;for(let[e,s]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[s]}return n},tC.parentCollection=(e,t)=>{let n=tC.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],r=n?.[s];if(r&&"items"in r)return r;throw Error("Parent collection not found")};let tI=new Set("0123456789ABCDEFabcdef"),tj=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),t$=new Set(",[]{}"),tB=new Set(" ,[]{}\n\r "),tD=e=>!e||tB.has(e);class tK{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tT(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let s=e[n-1];if(" "===s||" "===s){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&tT(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tT(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&tT(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(tD),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==s[0]||0===n&&(s.startsWith("---")||s.startsWith("..."))&&tT(s[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let r=0;for(;","===s[r];)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s[r+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(tD),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tT(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){let e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>tT(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{let e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(e=this.buffer[s];" "===e;)e=this.buffer[++s];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);let r=e;for(;" "===s;)s=this.buffer[--e];if("\n"===s&&e>=this.pos&&e+1+n>r)t=e;else break}return yield"\x1f",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,n=this.pos-1,s=this.pos-1;for(;e=this.buffer[++s];)if(":"===e){let e=this.buffer[s+1];if(tT(e)||t&&t$.has(e))break;n=s}else if(tT(e)){let r=this.buffer[s+1];if("\r"===e&&("\n"===r?(s+=1,e="\n",r=this.buffer[s+1]):n=s),"#"===r||t&&t$.has(r))break;if("\n"===e){let e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(t&&t$.has(e))break;n=s}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(tD),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(tT(n)||t&&t$.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tT(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(tj.has(t))t=this.buffer[++e];else if("%"===t&&tI.has(this.buffer[e+1])&&tI.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function tR(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function tP(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function tq(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function tU(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function tF(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function tV(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function tG(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||tR(t.start,"explicit-key-ind")||tR(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,tq(t.value)?t.value.end?tV(t.value.end,t.sep):t.value.end=t.sep:tV(t.start,t.sep),delete t.sep)}class tJ{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new tK,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=function(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&tG(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===tP(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==tP(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t,n=tF(tU(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){tV(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,s=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,r=[];if(s&&t.sep&&!t.value){let n=[];for(let s=0;s<t.sep.length;++s){let r=t.sep[s];switch(r.type){case"newline":n.push(s);break;case"space":break;case"comment":r.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?s||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(tR(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(tq(t.key)&&!tR(t.sep,"newline")){let e=tF(t.start),n=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:s}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(tR(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=tF(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:r,key:null,sep:[this.sourceToken]}):tR(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);s||t.value?(e.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!tR(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else n&&e.items.push({start:r});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){tV(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||tR(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=tF(tU(t));tG(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=tF(tU(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=tF(tU(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class tz{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let s=this.lineStarts[t-1];return{line:t,col:e-s+1}}}}function tH(e,t={}){let{lineCounter:n,prettyErrors:s}=function(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new tz||null,prettyErrors:t}}(t),r=new tJ(n?.addNewLine),i=new tx(t),o=null;for(let t of i.compose(r.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new ta(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return s&&n&&(o.errors.forEach(tc(e,n)),o.warnings.forEach(tc(e,n))),o}function tW(e,t,n){let s;"function"==typeof t?s=t:void 0===n&&t&&"object"==typeof t&&(n=t);let r=tH(e,n);if(!r)return null;if(r.warnings.forEach(e=>ec(r.options.logLevel,e)),r.errors.length>0)if("silent"!==r.options.logLevel)throw r.errors[0];else r.errors=[];return r.toJS(Object.assign({reviver:s},n))}function tY(e,t,n){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return d(e)&&!s?e.toString(n):new tr(e,s,n).toString(n)}},50940:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},67089:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},67770:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},69109:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},72754:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},73334:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},73404:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},78316:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},79167:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},81731:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]])},83029:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},84081:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]])},86715:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},93981:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},95721:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("git-graph",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v6",key:"158jrl"}],["circle",{cx:"5",cy:"18",r:"3",key:"104gr9"}],["path",{d:"M12 3v18",key:"108xh3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9",key:"1e3vqb"}]])},96823:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},99608:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(89117).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])}}]);
|
|
25
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ta(tN(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new tr(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}let tA=Symbol("break visit"),tL=Symbol("skip children"),tM=Symbol("remove item");function tC(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,s){let r=s(n,t);if("symbol"==typeof r)return r;for(let i of["key","value"]){let o=n[i];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let r=e(Object.freeze(t.concat([[i,n]])),o.items[n],s);if("number"==typeof r)n=r-1;else{if(r===tA)return tA;r===tM&&(o.items.splice(n,1),n-=1)}}"function"==typeof r&&"key"===i&&(r=r(n,t))}}return"function"==typeof r?r(n,t):r}(Object.freeze([]),e,t)}function tT(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}tC.BREAK=tA,tC.SKIP=tL,tC.REMOVE=tM,tC.itemAtPath=(e,t)=>{let n=e;for(let[e,s]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[s]}return n},tC.parentCollection=(e,t)=>{let n=tC.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],r=n?.[s];if(r&&"items"in r)return r;throw Error("Parent collection not found")};let tI=new Set("0123456789ABCDEFabcdef"),tj=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),t$=new Set(",[]{}"),tB=new Set(" ,[]{}\n\r "),tD=e=>!e||tB.has(e);class tK{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tT(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let s=e[n-1];if(" "===s||" "===s){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&tT(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tT(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&tT(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(tD),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==s[0]||0===n&&(s.startsWith("---")||s.startsWith("..."))&&tT(s[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let r=0;for(;","===s[r];)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s[r+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(tD),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tT(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){let e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>tT(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{let e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(e=this.buffer[s];" "===e;)e=this.buffer[++s];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);let r=e;for(;" "===s;)s=this.buffer[--e];if("\n"===s&&e>=this.pos&&e+1+n>r)t=e;else break}return yield"\x1f",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,n=this.pos-1,s=this.pos-1;for(;e=this.buffer[++s];)if(":"===e){let e=this.buffer[s+1];if(tT(e)||t&&t$.has(e))break;n=s}else if(tT(e)){let r=this.buffer[s+1];if("\r"===e&&("\n"===r?(s+=1,e="\n",r=this.buffer[s+1]):n=s),"#"===r||t&&t$.has(r))break;if("\n"===e){let e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(t&&t$.has(e))break;n=s}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(tD),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(tT(n)||t&&t$.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tT(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(tj.has(t))t=this.buffer[++e];else if("%"===t&&tI.has(this.buffer[e+1])&&tI.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function tR(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function tP(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function tq(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function tU(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function tF(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function tV(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function tG(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||tR(t.start,"explicit-key-ind")||tR(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,tq(t.value)?t.value.end?tV(t.value.end,t.sep):t.value.end=t.sep:tV(t.start,t.sep),delete t.sep)}class tJ{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new tK,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=function(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&tG(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===tP(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==tP(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t,n=tF(tU(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){tV(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,s=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,r=[];if(s&&t.sep&&!t.value){let n=[];for(let s=0;s<t.sep.length;++s){let r=t.sep[s];switch(r.type){case"newline":n.push(s);break;case"space":break;case"comment":r.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?s||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(tR(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(tq(t.key)&&!tR(t.sep,"newline")){let e=tF(t.start),n=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:s}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(tR(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=tF(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:r,key:null,sep:[this.sourceToken]}):tR(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);s||t.value?(e.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!tR(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else n&&e.items.push({start:r});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){tV(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||tR(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=tF(tU(t));tG(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=tF(tU(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=tF(tU(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class tz{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let s=this.lineStarts[t-1];return{line:t,col:e-s+1}}}}function tH(e,t={}){let{lineCounter:n,prettyErrors:s}=function(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new tz||null,prettyErrors:t}}(t),r=new tJ(n?.addNewLine),i=new tx(t),o=null;for(let t of i.compose(r.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new ta(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return s&&n&&(o.errors.forEach(tc(e,n)),o.warnings.forEach(tc(e,n))),o}function tW(e,t,n){let s;"function"==typeof t?s=t:void 0===n&&t&&"object"==typeof t&&(n=t);let r=tH(e,n);if(!r)return null;if(r.warnings.forEach(e=>ec(r.options.logLevel,e)),r.errors.length>0)if("silent"!==r.options.logLevel)throw r.errors[0];else r.errors=[];return r.toJS(Object.assign({reviver:s},n))}function tY(e,t,n){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return d(e)&&!s?e.toString(n):new tr(e,s,n).toString(n)}},57547:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},58248:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},59587:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},64820:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("git-graph",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v6",key:"158jrl"}],["circle",{cx:"5",cy:"18",r:"3",key:"104gr9"}],["path",{d:"M12 3v18",key:"108xh3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9",key:"1e3vqb"}]])},67264:(e,t,n)=>{n.d(t,{n:()=>h});var s=n(46124),r=n(17600),i=n(92477),o=n(33814),a=n(40404),l=class extends o.Q{#e;#t=void 0;#n;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(e,t){return this.#s=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#r(){let e=this.#n?.state??(0,r.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.jG.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,n,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,n,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,n,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,n,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},c=n(50363);function h(e,t){let n=(0,c.jE)(t),[r]=s.useState(()=>new l(n,e));s.useEffect(()=>{r.setOptions(e)},[r,e]);let o=s.useSyncExternalStore(s.useCallback(e=>r.subscribe(i.jG.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=s.useCallback((e,t)=>{r.mutate(e,t).catch(a.lQ)},[r]);if(o.error&&(0,a.GU)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:h,mutateAsync:o.mutate}}},69147:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},75342:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},76573:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},78844:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},81694:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},82142:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},87285:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},96395:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(3704).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])}}]);
|