@seqyuan/annovibe 0.8.134 → 0.8.136
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +19 -12
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +1 -1
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +46 -0
- package/.next/server/app/_global-error/page.js +3 -3
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +4 -4
- package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/prepare/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js +2 -2
- package/.next/server/app/api/agent/running/events/route.js +2 -2
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/runtime/route.js +1 -1
- package/.next/server/app/api/apps/[id]/[[...path]]/route.js +2 -2
- package/.next/server/app/api/apps/route.js +2 -2
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
- package/.next/server/app/api/auth/login/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/auth/status/route.js +1 -1
- package/.next/server/app/api/auth/totp/route.js +1 -1
- package/.next/server/app/api/debug-models/route.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -0
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/file-tree/delete/route.js +1 -1
- package/.next/server/app/api/file-tree/mkdir/route.js +1 -1
- package/.next/server/app/api/file-tree/rename/route.js +1 -1
- package/.next/server/app/api/file-tree/reveal/route.js +1 -1
- package/.next/server/app/api/file-tree/write/route.js +1 -1
- package/.next/server/app/api/file-watch/route.js +3 -3
- package/.next/server/app/api/files/[...path]/route.js +2 -2
- package/.next/server/app/api/harness/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/im/cancel/route.js +1 -1
- package/.next/server/app/api/im/gateway-status/route.js +1 -1
- package/.next/server/app/api/im/gateway-token/route.js +1 -1
- package/.next/server/app/api/im/project/route.js +1 -1
- package/.next/server/app/api/im/projects/route.js +1 -1
- package/.next/server/app/api/im/session-ids/route.js +1 -1
- package/.next/server/app/api/im/turn/route.js +2 -2
- package/.next/server/app/api/images/upload/route.js +1 -1
- package/.next/server/app/api/internal/runtime/route.js +1 -1
- package/.next/server/app/api/memory/dismiss/route.js +2 -2
- package/.next/server/app/api/memory/promote/route.js +2 -2
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/plot-kernels/route.js +1 -1
- package/.next/server/app/api/plot-kernels/save/route.js +1 -1
- package/.next/server/app/api/plot-kernels/status/route.js +1 -1
- package/.next/server/app/api/plot-kernels/stop/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -0
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/project-trust/route.js +1 -0
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/projects/browse/route.js +1 -1
- package/.next/server/app/api/projects/route.js +1 -1
- package/.next/server/app/api/search/route.js +1 -1
- package/.next/server/app/api/session-index/events/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +9 -8
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -0
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/kernel-state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/media/route.js +1 -0
- package/.next/server/app/api/sessions/[id]/media/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/shadowed/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/workbench-artifact/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/workbench-review/route.js +1 -1
- package/.next/server/app/api/sessions/new/route.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/settings/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -0
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/install/route.js +2 -2
- package/.next/server/app/api/skills/route.js +2 -2
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/update/route.js +2 -0
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/smoke/prompt-admission/route.js +1 -1
- package/.next/server/app/api/soul/route.js +1 -1
- package/.next/server/app/api/subagents/status/route.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/icon.svg/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login/page.js +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +4 -4
- package/.next/server/app/login.segments/_full.segment.rsc +4 -4
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +4 -4
- package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/page.js +24 -24
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/page.js +3 -3
- package/.next/server/app/smoke/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/session-stream/page.js +2 -2
- package/.next/server/app/smoke/session-stream/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/session-stream.html +1 -1
- package/.next/server/app/smoke/session-stream.rsc +5 -5
- package/.next/server/app/smoke/session-stream.segments/_full.segment.rsc +5 -5
- package/.next/server/app/smoke/session-stream.segments/_head.segment.rsc +1 -1
- package/.next/server/app/smoke/session-stream.segments/_index.segment.rsc +4 -4
- package/.next/server/app/smoke/session-stream.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/smoke/session-stream.segments/smoke/session-stream/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/smoke/session-stream.segments/smoke/session-stream.segment.rsc +1 -1
- package/.next/server/app/smoke/session-stream.segments/smoke.segment.rsc +1 -1
- package/.next/server/app/smoke.html +2 -2
- package/.next/server/app/smoke.rsc +5 -5
- package/.next/server/app/smoke.segments/_full.segment.rsc +5 -5
- package/.next/server/app/smoke.segments/_head.segment.rsc +1 -1
- package/.next/server/app/smoke.segments/_index.segment.rsc +4 -4
- package/.next/server/app/smoke.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/smoke.segments/smoke/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/smoke.segments/smoke.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +19 -12
- package/.next/server/chunks/1761.js +1 -1
- package/.next/server/chunks/402.js +4 -2
- package/.next/server/chunks/6429.js +9 -8
- package/.next/server/chunks/707.js +2 -2
- package/.next/server/chunks/7303.js +260 -0
- package/.next/server/chunks/7365.js +1 -0
- package/.next/server/chunks/7890.js +1 -1
- package/.next/server/chunks/8304.js +1 -1
- package/.next/server/chunks/8797.js +22 -0
- package/.next/server/functions-config-manifest.json +11 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{2693-b831832202452107.js → 2693-52c358cf5d84b069.js} +1 -1
- package/.next/static/chunks/291-bfdfc8bcf5d0a962.js +22 -0
- package/.next/static/chunks/{5618-3b8444e736e6ae4d.js → 5618-5e2e47e6ed401a75.js} +3 -3
- package/.next/static/chunks/{1960.b1e26436d7a5f586.js → 7198.4c3df741a5e26fb2.js} +1 -1
- package/.next/static/chunks/9867-b1d15d9354f100e7.js +260 -0
- package/.next/static/chunks/app/_global-error/page-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/prepare/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/running/events/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/runtime/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/apps/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/login/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/totp/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/debug-models/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/delete/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/mkdir/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/rename/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/reveal/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/write/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-watch/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/harness/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/home/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/cancel/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/gateway-status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/gateway-token/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/project/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/projects/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/session-ids/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/turn/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/images/upload/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/internal/runtime/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/memory/dismiss/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/memory/promote/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/save/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/stop/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/projects/browse/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/projects/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/search/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/session-index/events/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/media/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/shadowed/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/new/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/settings/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/smoke/prompt-admission/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/soul/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/subagents/status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/version/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/favicon.ico/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/{layout-5608bfe5e8f4e4c0.js → layout-101c4ccdf12880f0.js} +1 -1
- package/.next/static/chunks/app/page-703d91d8bff67f70.js +44 -0
- package/.next/static/chunks/app/smoke/{page-35df723c803f35e1.js → page-32674afc320aa48b.js} +2 -2
- package/.next/static/chunks/app/smoke/session-stream/page-e754151f65003821.js +6 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/{webpack-abcc6ba654c7ed4b.js → webpack-0d1f7348ddb20bdc.js} +1 -1
- package/.next/static/css/738b0b1c24aae500.css +1 -0
- package/.next/static/css/{88714c00e109ce28.css → 9bcd6051db4f8890.css} +1 -1
- package/.next/static/zeWki1Z47rqBkR2ph5H6N/_buildManifest.js +1 -0
- package/README.md +4 -1
- package/bin/annovibe-im-gateway.js +0 -4
- package/bin/pi-web.js +103 -37
- package/package.json +6 -5
- package/.next/server/chunks/4584.js +0 -260
- package/.next/server/chunks/9230.js +0 -22
- package/.next/static/2gyhgfAo_GNB2lRPOJwF9/_buildManifest.js +0 -1
- package/.next/static/chunks/4456-91f92907e8ef1f89.js +0 -260
- package/.next/static/chunks/9544-5e2696923ae4f6b5.js +0 -22
- package/.next/static/chunks/app/_global-error/page-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/prepare/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/running/events/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/runtime/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/apps/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/login/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/totp/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/debug-models/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/delete/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/mkdir/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/rename/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/reveal/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/write/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-watch/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/harness/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/home/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/cancel/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/gateway-status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/gateway-token/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/project/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/projects/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/session-ids/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/turn/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/images/upload/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/internal/runtime/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/memory/dismiss/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/memory/promote/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/save/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/stop/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/projects/browse/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/projects/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/search/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/session-index/events/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/shadowed/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/new/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/settings/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/skills/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/smoke/prompt-admission/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/soul/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/subagents/status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/version/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/favicon.ico/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/page-959c2935e21471e4.js +0 -44
- package/.next/static/chunks/app/smoke/session-stream/page-49b8cf27895b9187.js +0 -6
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c47e15c89def27e4.js +0 -1
- package/.next/static/css/fdfd4d4bcfae3c6a.css +0 -1
- /package/.next/static/{2gyhgfAo_GNB2lRPOJwF9 → zeWki1Z47rqBkR2ph5H6N}/_ssgManifest.js +0 -0
|
@@ -99,7 +99,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error
|
|
|
99
99
|
|
|
100
100
|
`})}return n})(n,F)),n},[e,t,i,_,F,x]),H=(0,r.useMemo)(()=>g(B),[B,g]),[U,j]=(0,r.useState)(H);(0,r.useEffect)(()=>{"streaming"!==t||Y?j(H):O(()=>{j(H)})},[H,t]);let $="streaming"===t?U:H,z=(0,r.useMemo)(()=>"auto"===n?$.map(sl):void 0,[$,n]),G=(0,r.useMemo)(()=>$.map((e,t)=>`${I}-${t}`),[$.length,I]),K=(0,r.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),Y=(0,r.useMemo)(()=>K?"true"===K?iJ():iJ(f):null,[K]),q=(0,r.useMemo)(()=>{var e,n;return{shikiTheme:null!=(n=null==(e=null==b?void 0:b.code)?void 0:e.getThemes())?n:u,controls:p,isAnimating:d,lineNumbers:E,mode:t,mermaid:h,linkSafety:k}},[u,p,d,E,t,h,k,null==b?void 0:b.code]),W=(0,r.useMemo)(()=>A?JSON.stringify(A):"",[A]),V=(0,r.useMemo)(()=>({...ao,...A}),[W]),X=(0,r.useMemo)(()=>{let{inlineCode:e,...t}=null!=s?s:{},n={...sa,...t};if(e){let t=n.code;n.code=n=>"data-block"in n?t?(0,r.createElement)(t,n):null:(0,r.createElement)(e,n)}return n},[s]),Q=(0,r.useMemo)(()=>{let e=[];return null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsBefore]),e=[...e,...l],null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsAfter]),null!=b&&b.math&&(e=[...e,b.math.remarkPlugin]),e},[l,null==b?void 0:b.math,null==b?void 0:b.cjk]),Z=(0,r.useMemo)(()=>{var e;let t=o;if(T&&Object.keys(T).length>0&&o===oh){let n={...ol,tagNames:[...null!=(e=ol.tagNames)?e:[],...Object.keys(T)],attributes:{...ol.attributes,...T}};t=[oc.raw,[tK,n],oc.harden]}return x&&x.length>0&&(t=[...t,[oa,x]]),null!=b&&b.math&&(t=[...t,b.math.rehypePlugin]),Y&&d&&(t=[...t,Y.rehypePlugin]),t},[o,null==b?void 0:b.math,Y,d,T,x]),J=(0,r.useMemo)(()=>{if(!d||0===$.length)return!1;let e=$.at(-1);return sK(e)||(e=>{for(let t of e.split(`
|
|
101
101
|
`)){let e=t.trim();if(e.length>0&&e.includes("|")&&sG.test(e))return!0}return!1})(e)},[d,$]),ee=(0,r.useMemo)(()=>y&&d&&!J?{"--streamdown-caret":`"${od[y]}"`}:void 0,[y,d,J]);return"static"===t?(0,rL.jsx)(al.Provider,{value:V,children:(0,rL.jsx)(a_.Provider,{value:null!=b?b:null,children:(0,rL.jsx)(og.Provider,{value:q,children:(0,rL.jsx)(aa,{icons:w,children:(0,rL.jsx)(i3.Provider,{value:M,children:(0,rL.jsx)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",c),dir:"auto"===n?sl(B):n,children:(0,rL.jsx)(sQ,{components:X,rehypePlugins:Z,remarkPlugins:Q,...N,children:B})})})})})})}):(0,rL.jsx)(al.Provider,{value:V,children:(0,rL.jsx)(a_.Provider,{value:null!=b?b:null,children:(0,rL.jsx)(og.Provider,{value:q,children:(0,rL.jsx)(aa,{icons:w,children:(0,rL.jsx)(i3.Provider,{value:M,children:(0,rL.jsxs)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",y&&!J?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,c),style:ee,children:[0===$.length&&y&&d&&(0,rL.jsx)("span",{}),$.map((e,t)=>{var r;let s=t===$.length-1,o=d&&s&&sK(e);return(0,rL.jsx)(m,{animatePlugin:Y,components:X,content:e,dir:null!=(r=null==z?void 0:z[t])?r:"auto"!==n?n:void 0,index:t,isIncomplete:o,rehypePlugins:Z,remarkPlugins:Q,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:i,...N},G[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);ob.displayName="Streamdown";var o_=({children:e,className:t,minZoom:n=.5,maxZoom:i=3,zoomStep:a=.1,showControls:s=!0,initialZoom:o=1,fullscreen:l=!1})=>{let{RotateCcwIcon:c,ZoomInIcon:u,ZoomOutIcon:h}=as(),p=i5(),d=(0,r.useRef)(null),f=(0,r.useRef)(null),[m,g]=(0,r.useState)(o),[y,b]=(0,r.useState)({x:0,y:0}),[_,k]=(0,r.useState)(!1),[E,T]=(0,r.useState)({x:0,y:0}),[x,A]=(0,r.useState)({x:0,y:0}),w=(0,r.useCallback)(e=>{g(t=>Math.max(n,Math.min(i,t+e)))},[n,i]),v=(0,r.useCallback)(()=>{w(a)},[w,a]),S=(0,r.useCallback)(()=>{w(-a)},[w,a]),C=(0,r.useCallback)(()=>{g(o),b({x:0,y:0})},[o]),N=(0,r.useCallback)(e=>{e.preventDefault(),w(e.deltaY>0?-a:a)},[w,a]),I=(0,r.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;k(!0),T({x:e.clientX,y:e.clientY}),A(y);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[y]),D=(0,r.useCallback)(e=>{if(!_)return;e.preventDefault();let t=e.clientX-E.x,n=e.clientY-E.y;b({x:x.x+t,y:x.y+n})},[_,E,x]),O=(0,r.useCallback)(e=>{k(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,r.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("wheel",N,{passive:!1}),()=>{e.removeEventListener("wheel",N)}},[N]),(0,r.useEffect)(()=>{let e=f.current;if(e&&_)return document.body.style.userSelect="none",e.addEventListener("pointermove",D,{passive:!1}),e.addEventListener("pointerup",O),e.addEventListener("pointercancel",O),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",D),e.removeEventListener("pointerup",O),e.removeEventListener("pointercancel",O)}},[_,D,O]),(0,rL.jsxs)("div",{className:p("relative flex flex-col",l?"h-full w-full":"min-h-28 w-full",t),ref:d,style:{cursor:_?"grabbing":"grab"},children:[s?(0,rL.jsxs)("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,rL.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m>=i,onClick:v,title:"Zoom in",type:"button",children:(0,rL.jsx)(u,{size:16})}),(0,rL.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m<=n,onClick:S,title:"Zoom out",type:"button",children:(0,rL.jsx)(h,{size:16})}),(0,rL.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:C,title:"Reset zoom and pan",type:"button",children:(0,rL.jsx)(c,{size:16})})]}):null,(0,rL.jsx)("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",l?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:I,ref:f,role:"application",style:{transform:`translate(${y.x}px, ${y.y}px) scale(${m})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},ok=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:a=!0})=>{let s=i5(),[o,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[h,p]=(0,r.useState)(""),[d,f]=(0,r.useState)(""),[m,g]=(0,r.useState)(0),{mermaid:y}=(0,r.useContext)(og),b=aT(),_=null==y?void 0:y.errorComponent,{shouldRender:k,containerRef:E}=function(e={}){let{immediate:t=!1,debounceDelay:n=300,rootMargin:i="300px",idleTimeout:a=500}=e,[s,o]=(0,r.useState)(!1),l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=(0,r.useRef)(null),h=(0,r.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),p=(0,r.useMemo)(()=>"u">typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):h,[h]),d=(0,r.useMemo)(()=>"u">typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,r.useEffect)(()=>{if(t)return void o(!0);let e=l.current;if(!e)return;c.current&&(clearTimeout(c.current),c.current=null),u.current&&(d(u.current),u.current=null);let r=()=>{c.current&&(clearTimeout(c.current),c.current=null),u.current&&(d(u.current),u.current=null)},s=(e,t)=>{e.isIntersecting?(r(),c.current=window.setTimeout(()=>{var e,n;let r=t.takeRecords();(0===r.length||null!=(n=null==(e=r.at(-1))?void 0:e.isIntersecting)&&n)&&(u.current=p(e=>{e.timeRemaining()>0||e.didTimeout?(o(!0),t.disconnect()):u.current=p(()=>{o(!0),t.disconnect()},{timeout:a/2})},{timeout:a}))},n)):r()},h=new IntersectionObserver(e=>{for(let t of e)s(t,h)},{rootMargin:i,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&d(u.current),h.disconnect()}},[t,n,i,a,d,p]),{shouldRender:s,containerRef:l}}({immediate:i});return((0,r.useEffect)(()=>{if(k){if(!b)return void l("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{l(null),u(!0);let t=b.getMermaid(n),r=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),i=`mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:a}=await t.render(i,e);p(a),f(a)}catch(e){d||h||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{u(!1)}})()}},[e,n,m,k,b]),k||h||d)?!c||h||d?!o||h||d?(0,rL.jsx)("div",{className:s("size-full",t),"data-streamdown":"mermaid",ref:E,children:(0,rL.jsx)(o_,{className:s(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:(0,rL.jsx)("div",{"aria-label":"Mermaid chart",className:s("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||d},role:"img"})})}):_?(0,rL.jsx)("div",{ref:E,children:(0,rL.jsx)(_,{chart:e,error:o,retry:()=>g(e=>e+1)})}):(0,rL.jsxs)("div",{className:s("rounded-md bg-red-50 p-4",t),ref:E,children:[(0,rL.jsxs)("p",{className:s("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",o]}),(0,rL.jsxs)("details",{className:s("mt-2"),children:[(0,rL.jsx)("summary",{className:s("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,rL.jsx)("pre",{className:s("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]}):(0,rL.jsx)("div",{className:s("my-4 flex justify-center p-4",t),ref:E,children:(0,rL.jsxs)("div",{className:s("flex items-center space-x-2 text-muted-foreground"),children:[(0,rL.jsx)("div",{className:s("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,rL.jsx)("span",{className:s("text-sm"),children:"Loading diagram..."})]})}):(0,rL.jsx)("div",{className:s("my-4 min-h-[200px]",t),ref:E})}},13222:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(42112),i=n(68448),a=n(52326),s=n(68420);let o=(e,t,n=0,o=1)=>{if("number"!=typeof e)return(0,s.A)(e,{a:t});let l=i.A.set({r:r.A.channel.clamp.r(e),g:r.A.channel.clamp.g(t),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(o)});return a.A.stringify(l)}},13404:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},14759:(e,t,n)=>{"use strict";n.d(t,{H:()=>tF,r:()=>tP});var r,i=n(32165);function a(e){return null==e}function s(e){return"object"==typeof e&&null!==e}function o(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}function l(e){return 0===e&&-1/0==1/e}(0,i.K2)(a,"isNothing"),(0,i.K2)(s,"isObject"),(0,i.K2)(function(e){return Array.isArray(e)?e:a(e)?[]:[e]},"toArray"),(0,i.K2)(function(e,t){var n,r,i,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[i=a[n]]=t[i];return e},"extend"),(0,i.K2)(o,"repeat"),(0,i.K2)(l,"isNegativeZero");function c(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function u(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function h(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(t=r-o+(a=" ... ").length),n-r>o&&(n=r+o-(s=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function p(e,t){return o(" ",t-e.length)+e}function d(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,c,u="",d=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+d+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)c=h(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),f),u=o(" ",t.indent)+p((e.line-l+1).toString(),d)+" | "+c.str+"\n"+u;for(c=h(e.buffer,r[a],i[a],e.position,f),u+=o(" ",t.indent)+p((e.line+1).toString(),d)+" | "+c.str+"\n"+o("-",t.indent+d+3+c.pos)+"^\n",l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)c=h(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),f),u+=o(" ",t.indent)+p((e.line+l+1).toString(),d)+" | "+c.str+"\n";return u.replace(/\n$/,"")}(0,i.K2)(c,"formatError"),(0,i.K2)(u,"YAMLException$1"),u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=(0,i.K2)(function(e){return this.name+": "+c(this,e)},"toString"),(0,i.K2)(h,"getLine"),(0,i.K2)(p,"padStart"),(0,i.K2)(d,"makeSnippet");var f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function g(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function y(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===f.indexOf(t))throw new u('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=g(t.styleAliases||null),-1===m.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function b(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function _(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for((0,i.K2)(r,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}function k(e){return this.extend(e)}(0,i.K2)(g,"compileStyleAliases"),(0,i.K2)(y,"Type$1"),(0,i.K2)(b,"compileList"),(0,i.K2)(_,"compileMap"),(0,i.K2)(k,"Schema$1"),k.prototype.extend=(0,i.K2)(function(e){var t=[],n=[];if(e instanceof y)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(k.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=b(r,"implicit"),r.compiledExplicit=b(r,"explicit"),r.compiledTypeMap=_(r.compiledImplicit,r.compiledExplicit),r},"extend");var E=new k({explicit:[new y("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,i.K2)(function(e){return null!==e?e:""},"construct")}),new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,i.K2)(function(e){return null!==e?e:[]},"construct")}),new y("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,i.K2)(function(e){return null!==e?e:{}},"construct")})]});function T(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function x(){return null}function A(e){return null===e}(0,i.K2)(T,"resolveYamlNull"),(0,i.K2)(x,"constructYamlNull"),(0,i.K2)(A,"isNull");var w=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:T,construct:x,predicate:A,represent:{canonical:(0,i.K2)(function(){return"~"},"canonical"),lowercase:(0,i.K2)(function(){return"null"},"lowercase"),uppercase:(0,i.K2)(function(){return"NULL"},"uppercase"),camelcase:(0,i.K2)(function(){return"Null"},"camelcase"),empty:(0,i.K2)(function(){return""},"empty")},defaultStyle:"lowercase"});function v(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function S(e){return"true"===e||"True"===e||"TRUE"===e}function C(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,i.K2)(v,"resolveYamlBoolean"),(0,i.K2)(S,"constructYamlBoolean"),(0,i.K2)(C,"isBoolean");var N=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:S,predicate:C,represent:{lowercase:(0,i.K2)(function(e){return e?"true":"false"},"lowercase"),uppercase:(0,i.K2)(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:(0,i.K2)(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function I(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function D(e){return 48<=e&&e<=55}function O(e){return 48<=e&&e<=57}function M(e){if(null===e)return!1;var t,n=e.length,r=0,i=!1;if(!n)return!1;if(("-"===(t=e[r])||"+"===t)&&(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!I(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!D(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!O(e.charCodeAt(r)))return!1;i=!0}return!!i&&"_"!==t}function L(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function R(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!l(e)}(0,i.K2)(I,"isHexCode"),(0,i.K2)(D,"isOctCode"),(0,i.K2)(O,"isDecCode"),(0,i.K2)(M,"resolveYamlInteger"),(0,i.K2)(L,"constructYamlInteger"),(0,i.K2)(R,"isInteger");var P=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:M,construct:L,predicate:R,represent:{binary:(0,i.K2)(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,i.K2)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:(0,i.K2)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,i.K2)(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),F=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function B(e){return null!==e&&!!F.test(e)&&"_"!==e[e.length-1]}function H(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?1/0:-1/0:".nan"===t?NaN:n*parseFloat(t,10)}(0,i.K2)(B,"resolveYamlFloat"),(0,i.K2)(H,"constructYamlFloat");var U=/^[-+]?[0-9]+e/;function j(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(e))return"-0.0";return n=e.toString(10),U.test(n)?n.replace("e",".e"):n}function $(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||l(e))}(0,i.K2)(j,"representYamlFloat"),(0,i.K2)($,"isFloat");var z=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:B,construct:H,predicate:$,represent:j,defaultStyle:"lowercase"}),G=E.extend({implicit:[w,N,P,z]}),K=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Y=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function q(e){return null!==e&&(null!==K.exec(e)||null!==Y.exec(e))}function W(e){var t,n,r,i,a,s,o,l,c=0,u=null;if(null===(t=K.exec(e))&&(t=Y.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(u=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,a,s,o,c)),u&&l.setTime(l.getTime()-u),l}function V(e){return e.toISOString()}(0,i.K2)(q,"resolveYamlTimestamp"),(0,i.K2)(W,"constructYamlTimestamp"),(0,i.K2)(V,"representYamlTimestamp");var X=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:q,construct:W,instanceOf:Date,represent:V});function Q(e){return"<<"===e||null===e}(0,i.K2)(Q,"resolveYamlMerge");var Z=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ee(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n<i;n++)if(!((t=J.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0}function et(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|J.indexOf(r.charAt(t));return 0==(n=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)}function en(e){var t,n,r="",i=0,a=e.length;for(t=0;t<a;t++)t%3==0&&t&&(r+=J[i>>18&63],r+=J[i>>12&63],r+=J[i>>6&63],r+=J[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(r+=J[i>>18&63],r+=J[i>>12&63],r+=J[i>>6&63],r+=J[63&i]):2===n?(r+=J[i>>10&63],r+=J[i>>4&63],r+=J[i<<2&63],r+=J[64]):1===n&&(r+=J[i>>2&63],r+=J[i<<4&63],r+=J[64],r+=J[64]),r}function er(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,i.K2)(ee,"resolveYamlBinary"),(0,i.K2)(et,"constructYamlBinary"),(0,i.K2)(en,"representYamlBinary"),(0,i.K2)(er,"isBinary");var ei=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ee,construct:et,predicate:er,represent:en}),ea=Object.prototype.hasOwnProperty,es=Object.prototype.toString;function eo(e){if(null===e)return!0;var t,n,r,i,a,s=[];for(t=0,n=e.length;t<n;t+=1){if(r=e[t],a=!1,"[object Object]"!==es.call(r))return!1;for(i in r)if(ea.call(r,i))if(a)return!1;else a=!0;if(!a||-1!==s.indexOf(i))return!1;s.push(i)}return!0}function el(e){return null!==e?e:[]}(0,i.K2)(eo,"resolveYamlOmap"),(0,i.K2)(el,"constructYamlOmap");var ec=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eo,construct:el}),eu=Object.prototype.toString;function eh(e){var t,n,r,i,a;if(null===e)return!0;for(t=0,a=Array(e.length),n=e.length;t<n;t+=1){if(r=e[t],"[object Object]"!==eu.call(r)||1!==(i=Object.keys(r)).length)return!1;a[t]=[i[0],r[i[0]]]}return!0}function ep(e){var t,n,r,i,a;if(null===e)return[];for(t=0,a=Array(e.length),n=e.length;t<n;t+=1)i=Object.keys(r=e[t]),a[t]=[i[0],r[i[0]]];return a}(0,i.K2)(eh,"resolveYamlPairs"),(0,i.K2)(ep,"constructYamlPairs");var ed=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eh,construct:ep}),ef=Object.prototype.hasOwnProperty;function em(e){var t;if(null===e)return!0;for(t in e)if(ef.call(e,t)&&null!==e[t])return!1;return!0}function eg(e){return null!==e?e:{}}(0,i.K2)(em,"resolveYamlSet"),(0,i.K2)(eg,"constructYamlSet");var ey=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:em,construct:eg}),eb=G.extend({implicit:[X,Z],explicit:[ei,ec,ed,ey]}),e_=Object.prototype.hasOwnProperty,ek=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eE=/[\x85\u2028\u2029]/,eT=/[,\[\]\{\}]/,ex=/^(?:!|!!|![a-z\-]+!)$/i,eA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ew(e){return Object.prototype.toString.call(e)}function ev(e){return 10===e||13===e}function eS(e){return 9===e||32===e}function eC(e){return 9===e||32===e||10===e||13===e}function eN(e){return 44===e||91===e||93===e||123===e||125===e}function eI(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function eD(e){return 120===e?2:117===e?4:8*(85===e)}function eO(e){return 48<=e&&e<=57?e-48:-1}function eM(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function eL(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function eR(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}(0,i.K2)(ew,"_class"),(0,i.K2)(ev,"is_EOL"),(0,i.K2)(eS,"is_WHITE_SPACE"),(0,i.K2)(eC,"is_WS_OR_EOL"),(0,i.K2)(eN,"is_FLOW_INDICATOR"),(0,i.K2)(eI,"fromHexCode"),(0,i.K2)(eD,"escapedHexLen"),(0,i.K2)(eO,"fromDecimalCode"),(0,i.K2)(eM,"simpleEscapeSequence"),(0,i.K2)(eL,"charFromCodepoint"),(0,i.K2)(eR,"setProperty");var eP=Array(256),eF=Array(256);for(r=0;r<256;r++)eP[r]=+!!eM(r),eF[r]=eM(r);function eB(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eb,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eH(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=d(n),new u(t,n)}function eU(e,t){throw eH(e,t)}function ej(e,t){e.onWarning&&e.onWarning.call(null,eH(e,t))}(0,i.K2)(eB,"State$1"),(0,i.K2)(eH,"generateError"),(0,i.K2)(eU,"throwError"),(0,i.K2)(ej,"throwWarning");var e$={YAML:(0,i.K2)(function(e,t,n){var r,i,a;null!==e.version&&eU(e,"duplication of %YAML directive"),1!==n.length&&eU(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&eU(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),a=parseInt(r[2],10),1!==i&&eU(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&ej(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,i.K2)(function(e,t,n){var r,i;2!==n.length&&eU(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],ex.test(r)||eU(e,"ill-formed tag handle (first argument) of the TAG directive"),e_.call(e.tagMap,r)&&eU(e,'there is a previously declared suffix for "'+r+'" tag handle'),eA.test(i)||eU(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){eU(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i},"handleTagDirective")};function ez(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||eU(e,"expected valid JSON character");else ek.test(o)&&eU(e,"the stream contains non-printable characters");e.result+=o}}function eG(e,t,n,r){var i,a,o,l;for(s(n)||eU(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,l=(i=Object.keys(n)).length;o<l;o+=1)a=i[o],e_.call(t,a)||(eR(t,a,n[a]),r[a]=!0)}function eK(e,t,n,r,i,a,s,o,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&eU(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===ew(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===ew(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)eG(e,t,a[c],n);else eG(e,t,a,n);else!e.json&&!e_.call(n,i)&&e_.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,eU(e,"duplicated mapping key")),eR(t,i,a),delete n[i];return t}function eY(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):eU(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eq(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;eS(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do i=e.input.charCodeAt(++e.position);while(10!==i&&13!==i&&0!==i);if(ev(i))for(eY(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==r&&e.lineIndent<n&&ej(e,"deficient indentation"),r}function eW(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||eC(t)))||!1}function eV(e,t){1===t?e.result+=" ":t>1&&(e.result+=o("\n",t-1))}function eX(e,t,n){var r,i,a,s,o,l,c,u,h=e.kind,p=e.result;if(eC(u=e.input.charCodeAt(e.position))||eN(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(eC(r=e.input.charCodeAt(e.position+1))||n&&eN(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,s=!1;0!==u;){if(58===u){if(eC(r=e.input.charCodeAt(e.position+1))||n&&eN(r))break}else if(35===u){if(eC(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eW(e)||n&&eN(u))break;else if(ev(u)){if(o=e.line,l=e.lineStart,c=e.lineIndent,eq(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=l,e.lineIndent=c;break}s&&(ez(e,i,a,!1),eV(e,e.line-o),i=a=e.position,s=!1),eS(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return ez(e,i,a,!1),!!e.result||(e.kind=h,e.result=p,!1)}function eQ(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(ez(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else ev(n)?(ez(e,r,i,!0),eV(e,eq(e,!1,t)),r=i=e.position):e.position===e.lineStart&&eW(e)?eU(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);eU(e,"unexpected end of the stream within a single quoted scalar")}function eZ(e,t){var n,r,i,a,s,o;if(34!==(o=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));)if(34===o)return ez(e,n,e.position,!0),e.position++,!0;else if(92===o){if(ez(e,n,e.position,!0),ev(o=e.input.charCodeAt(++e.position)))eq(e,!1,t);else if(o<256&&eP[o])e.result+=eF[o],e.position++;else if((s=eD(o))>0){for(i=s,a=0;i>0;i--)(s=eI(o=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+s:eU(e,"expected hexadecimal character");e.result+=eL(a),e.position++}else eU(e,"unknown escape sequence");n=r=e.position}else ev(o)?(ez(e,n,r,!0),eV(e,eq(e,!1,t)),n=r=e.position):e.position===e.lineStart&&eW(e)?eU(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position);eU(e,"unexpected end of the stream within a double quoted scalar")}function eJ(e,t){var n,r,i,a,s,o,l,c,u,h,p,d,f=!0,m=e.tag,g=e.anchor,y=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))s=93,c=!1,a=[];else{if(123!==d)return!1;s=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),d=e.input.charCodeAt(++e.position);0!==d;){if(eq(e,!0,t),(d=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=a,!0;f?44===d&&eU(e,"expected the node content, but found ','"):eU(e,"missed comma between flow collection entries"),h=u=p=null,o=l=!1,63===d&&eC(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,eq(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,e6(e,t,1,!1,!0),h=e.tag,u=e.result,eq(e,!0,t),d=e.input.charCodeAt(e.position),(l||e.line===n)&&58===d&&(o=!0,d=e.input.charCodeAt(++e.position),eq(e,!0,t),e6(e,t,1,!1,!0),p=e.result),c?eK(e,a,y,h,u,p,n,r,i):o?a.push(eK(e,null,y,h,u,p,n,r,i)):a.push(u),eq(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}eU(e,"unexpected end of the stream within a flow collection")}function e0(e,t){var n,r,i,a,s=1,l=!1,c=!1,u=t,h=0,p=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===s?s=43===a?3:2:eU(e,"repeat of a chomping mode identifier");else if((i=eO(a))>=0)0===i?eU(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?eU(e,"repeat of an indentation width identifier"):(u=t+i-1,c=!0);else break;if(eS(a)){do a=e.input.charCodeAt(++e.position);while(eS(a));if(35===a)do a=e.input.charCodeAt(++e.position);while(!ev(a)&&0!==a)}for(;0!==a;){for(eY(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),ev(a)){h++;continue}if(e.lineIndent<u){3===s?e.result+=o("\n",l?1+h:h):1===s&&l&&(e.result+="\n");break}for(r?eS(a)?(p=!0,e.result+=o("\n",l?1+h:h)):p?(p=!1,e.result+=o("\n",h+1)):0===h?l&&(e.result+=" "):e.result+=o("\n",h):e.result+=o("\n",l?1+h:h),l=!0,c=!0,h=0,n=e.position;!ev(a)&&0!==a;)a=e.input.charCodeAt(++e.position);ez(e,n,e.position,!1)}return!0}function e1(e,t){var n,r,i=e.tag,a=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,eU(e,"tab characters must not be used in indentation")),45===r&&eC(e.input.charCodeAt(e.position+1)));){if(o=!0,e.position++,eq(e,!0,-1)&&e.lineIndent<=t){s.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,e6(e,t,3,!1,!0),s.push(e.result),eq(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)eU(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0)}function e2(e,t,n){var r,i,a,s,o,l,c,u=e.tag,h=e.anchor,p={},d=Object.create(null),f=null,m=null,g=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,eU(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(63===c||58===c)&&eC(r))63===c?(y&&(eK(e,p,d,f,m,null,s,o,l),f=m=g=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):eU(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;else{if(s=e.line,o=e.lineStart,l=e.position,!e6(e,n,2,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);eS(c);)c=e.input.charCodeAt(++e.position);if(58===c)eC(c=e.input.charCodeAt(++e.position))||eU(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(eK(e,p,d,f,m,null,s,o,l),f=m=g=null),b=!0,y=!1,i=!1,f=e.tag,m=e.result;else{if(!b)return e.tag=u,e.anchor=h,!0;eU(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=h,!0;eU(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),e6(e,t,4,!0,i)&&(y?m=e.result:g=e.result),y||(eK(e,p,d,f,m,g,s,o,l),f=m=g=null),eq(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)eU(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&eK(e,p,d,f,m,null,s,o,l),b&&(e.tag=u,e.anchor=h,e.kind="mapping",e.result=p),b}function e3(e){var t,n,r,i,a=!1,s=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&eU(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do i=e.input.charCodeAt(++e.position);while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):eU(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!eC(i);)33===i&&(s?eU(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),ex.test(n)||eU(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),eT.test(r)&&eU(e,"tag suffix cannot contain flow indicator characters")}r&&!eA.test(r)&&eU(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){eU(e,"tag name is malformed: "+r)}return a?e.tag=r:e_.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:eU(e,'undeclared tag handle "'+n+'"'),!0}function e5(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&eU(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!eC(n)&&!eN(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&eU(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e9(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eC(r)&&!eN(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&eU(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e_.call(e.anchorMap,n)||eU(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],eq(e,!0,-1),!0}function e6(e,t,n,r,i){var a,s,o,l,c,u,h,p,d,f=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=4===n||3===n,r&&eq(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;e3(e)||e5(e);)eq(e,!0,-1)?(m=!0,o=a,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):o=!1;if(o&&(o=m||i),(1===f||4===n)&&(p=1===n||2===n?t:t+1,d=e.position-e.lineStart,1===f?o&&(e1(e,d)||e2(e,d,p))||eJ(e,p)?g=!0:(s&&e0(e,p)||eQ(e,p)||eZ(e,p)?g=!0:e9(e)?(g=!0,(null!==e.tag||null!==e.anchor)&&eU(e,"alias node should not have any properties")):eX(e,p,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=o&&e1(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&eU(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((h=e.implicitTypes[l]).resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(e_.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(l=0,h=null,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||eU(e,"unknown tag !<"+e.tag+">"),null!==e.result&&h.kind!==e.kind&&eU(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):eU(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function e4(e){var t,n,r,i,a=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(eq(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===i);){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!eC(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&eU(e,"directive name must not be less than one character in length");0!==i;){for(;eS(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!ev(i));break}if(ev(i))break;for(t=e.position;0!==i&&!eC(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&eY(e),e_.call(e$,n)?e$[n](e,n,r):ej(e,'unknown document directive "'+n+'"')}if(eq(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eq(e,!0,-1)):s&&eU(e,"directives end mark is expected"),e6(e,e.lineIndent-1,4,!1,!0),eq(e,!0,-1),e.checkLineBreaks&&eE.test(e.input.slice(a,e.position))&&ej(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eW(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eq(e,!0,-1));return}e.position<e.length-1&&eU(e,"end of the stream or a document separator is expected")}function e8(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new eB(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,eU(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)e4(n);return n.documents}function e7(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=e8(e,n);if("function"!=typeof t)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function te(e,t){var n=e8(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new u("expected a single document in the stream, but found more")}}(0,i.K2)(ez,"captureSegment"),(0,i.K2)(eG,"mergeMappings"),(0,i.K2)(eK,"storeMappingPair"),(0,i.K2)(eY,"readLineBreak"),(0,i.K2)(eq,"skipSeparationSpace"),(0,i.K2)(eW,"testDocumentSeparator"),(0,i.K2)(eV,"writeFoldedLines"),(0,i.K2)(eX,"readPlainScalar"),(0,i.K2)(eQ,"readSingleQuotedScalar"),(0,i.K2)(eZ,"readDoubleQuotedScalar"),(0,i.K2)(eJ,"readFlowCollection"),(0,i.K2)(e0,"readBlockScalar"),(0,i.K2)(e1,"readBlockSequence"),(0,i.K2)(e2,"readBlockMapping"),(0,i.K2)(e3,"readTagProperty"),(0,i.K2)(e5,"readAnchorProperty"),(0,i.K2)(e9,"readAlias"),(0,i.K2)(e6,"composeNode"),(0,i.K2)(e4,"readDocument"),(0,i.K2)(e8,"loadDocuments"),(0,i.K2)(e7,"loadAll$1"),(0,i.K2)(te,"load$1");var tt=Object.prototype.toString,tn=Object.prototype.hasOwnProperty,tr={};tr[0]="\\0",tr[7]="\\a",tr[8]="\\b",tr[9]="\\t",tr[10]="\\n",tr[11]="\\v",tr[12]="\\f",tr[13]="\\r",tr[27]="\\e",tr[34]='\\"',tr[92]="\\\\",tr[133]="\\N",tr[160]="\\_",tr[8232]="\\L",tr[8233]="\\P";var ti=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ta=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ts(e,t){var n,r,i,a,s,o,l;if(null===t)return{};for(i=0,n={},a=(r=Object.keys(t)).length;i<a;i+=1)o=String(t[s=r[i]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&tn.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o;return n}function to(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=0xffffffff)n="U",r=8;else throw new u("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+o("0",r-t.length)+t}function tl(e){this.schema=e.schema||eb,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=a(e.flowLevel)?-1:e.flowLevel,this.styleMap=ts(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tc(e,t){for(var n,r=o(" ",t),i=0,a=-1,s="",l=e.length;i<l;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=l):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(s+=r),s+=n;return s}function tu(e,t){return"\n"+o(" ",e.indent*t)}function th(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function tp(e){return 32===e||9===e}function td(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function tf(e){return td(e)&&65279!==e&&13!==e&&10!==e}function tm(e,t,n){var r=tf(e),i=r&&!tp(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||tf(t)&&!tp(t)&&35===e||58===t&&i}function tg(e){return td(e)&&65279!==e&&!tp(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function ty(e){return!tp(e)&&58!==e}function tb(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function t_(e){return/^\n* /.test(e)}function tk(e,t,n,r,i,a,s,o){var l,c=0,u=null,h=!1,p=!1,d=-1!==r,f=-1,m=tg(tb(e,0))&&ty(tb(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(!td(c=tb(e,l)))return 5;m=m&&tm(c,u,o),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(10===(c=tb(e,l)))h=!0,d&&(p=p||l-f-1>r&&" "!==e[f+1],f=l);else if(!td(c))return 5;m=m&&tm(c,u,o),u=c}p=p||d&&l-f-1>r&&" "!==e[f+1]}return h||p?n>9&&t_(e)?5:s?2===a?5:2:p?4:3:!m||s||i(e)?2===a?5:2:1}function tE(e,t,n,r,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ti.indexOf(t)||ta.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return th(e,t)}switch((0,i.K2)(c,"testAmbiguity"),tk(t,l,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+tT(t,e.indent)+tx(tc(t,s));case 4:return">"+tT(t,e.indent)+tx(tc(tA(t,o),s));case 5:return'"'+tv(t)+'"';default:throw new u("impossible error: invalid scalar style")}}()}function tT(e,t){var n=t_(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function tx(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function tA(e,t){for(var n,r,i,a=/(\n+)([^\n]*)/g,s=(a.lastIndex=n=-1!==(n=e.indexOf("\n"))?n:e.length,tw(e.slice(0,n),t)),o="\n"===e[0]||" "===e[0];i=a.exec(e);){var l=i[1],c=i[2];r=" "===c[0],s+=l+(o||r||""===c?"":"\n")+tw(c,t),o=r}return s}function tw(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,a=0,s=0,o=0,l="";n=i.exec(e);)(o=n.index)-a>t&&(r=s>a?s:o,l+="\n"+e.slice(a,r),a=r+1),s=o;return l+="\n",e.length-a>t&&s>a?l+=e.slice(a,s)+"\n"+e.slice(s+1):l+=e.slice(a),l.slice(1)}function tv(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)!(t=tr[r=tb(e,i)])&&td(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||to(r);return n}function tS(e,t,n){var r,i,a,s="",o=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(tO(e,t,a,!1,!1)||void 0===a&&tO(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=o,e.dump="["+s+"]"}function tC(e,t,n,r){var i,a,s,o="",l=e.tag;for(i=0,a=n.length;i<a;i+=1)s=n[i],e.replacer&&(s=e.replacer.call(n,String(i),s)),(tO(e,t+1,s,!0,!0,!1,!0)||void 0===s&&tO(e,t+1,null,!0,!0,!1,!0))&&(r&&""===o||(o+=tu(e,t)),e.dump&&10===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=l,e.dump=o||"[]"}function tN(e,t,n){var r,i,a,s,o,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)o="",""!==l&&(o+=", "),e.condenseFlow&&(o+='"'),s=n[a=u[r]],e.replacer&&(s=e.replacer.call(n,a,s)),tO(e,t,a,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),tO(e,t,s,!1,!1)&&(o+=e.dump,l+=o));e.tag=c,e.dump="{"+l+"}"}function tI(e,t,n,r){var i,a,s,o,l,c,h="",p=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new u("sortKeys must be a boolean or a function");for(i=0,a=d.length;i<a;i+=1)c="",r&&""===h||(c+=tu(e,t)),o=n[s=d[i]],e.replacer&&(o=e.replacer.call(n,s,o)),tO(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=tu(e,t)),tO(e,t+1,o,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,h+=c));e.tag=p,e.dump=h||"{}"}function tD(e,t,n){var r,i,a,s,o,l;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a<s;a+=1)if(((o=i[a]).instanceOf||o.predicate)&&(!o.instanceOf||"object"==typeof t&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,"[object Function]"===tt.call(o.represent))r=o.represent(t,l);else if(tn.call(o.represent,l))r=o.represent[l](t,l);else throw new u("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function tO(e,t,n,r,i,a,s){e.tag=null,e.dump=n,tD(e,n,!1)||tD(e,n,!0);var o=tt.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var c,h,p,d="[object Object]"===o||"[object Array]"===o;if(d&&(p=-1!==(h=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(d&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===o)r&&0!==Object.keys(e.dump).length?(tI(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(tN(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===o)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?tC(e,t-1,e.dump,i):tC(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(tS(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if("[object String]"===o)"?"!==e.tag&&tE(e,e.dump,t,a,l);else{if("[object Undefined]"===o||e.skipInvalid)return!1;throw new u("unacceptable kind of an object to dump "+o)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function tM(e,t){var n,r,i=[],a=[];for(tL(e,i,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(i[a[n]]);t.usedDuplicates=Array(r)}function tL(e,t,n){var r,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)tL(e[i],t,n);else for(i=0,a=(r=Object.keys(e)).length;i<a;i+=1)tL(e[r[i]],t,n)}(0,i.K2)(ts,"compileStyleMap"),(0,i.K2)(to,"encodeHex"),(0,i.K2)(tl,"State"),(0,i.K2)(tc,"indentString"),(0,i.K2)(tu,"generateNextLine"),(0,i.K2)(th,"testImplicitResolving"),(0,i.K2)(tp,"isWhitespace"),(0,i.K2)(td,"isPrintable"),(0,i.K2)(tf,"isNsCharOrWhitespace"),(0,i.K2)(tm,"isPlainSafe"),(0,i.K2)(tg,"isPlainSafeFirst"),(0,i.K2)(ty,"isPlainSafeLast"),(0,i.K2)(tb,"codePointAt"),(0,i.K2)(t_,"needIndentIndicator");function tR(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}(0,i.K2)(tk,"chooseScalarStyle"),(0,i.K2)(tE,"writeScalar"),(0,i.K2)(tT,"blockHeader"),(0,i.K2)(tx,"dropEndingNewline"),(0,i.K2)(tA,"foldString"),(0,i.K2)(tw,"foldLine"),(0,i.K2)(tv,"escapeString"),(0,i.K2)(tS,"writeFlowSequence"),(0,i.K2)(tC,"writeBlockSequence"),(0,i.K2)(tN,"writeFlowMapping"),(0,i.K2)(tI,"writeBlockMapping"),(0,i.K2)(tD,"detectType"),(0,i.K2)(tO,"writeNode"),(0,i.K2)(tM,"getDuplicateReferences"),(0,i.K2)(tL,"inspectNode"),(0,i.K2)(function(e,t){var n=new tl(t=t||{});n.noRefs||tM(e,n);var r=e;return(n.replacer&&(r=n.replacer.call({"":r},"",r)),tO(n,0,r,!0,!0))?n.dump+"\n":""},"dump$1"),(0,i.K2)(tR,"renamed");var tP=G,tF=te;tR("safeLoad","load"),tR("safeLoadAll","loadAll"),tR("safeDump","dump")},14988:(e,t,n)=>{"use strict";let r,i,a,s;n.d(t,{h:()=>ev});let o="emphasisSequence",l="strongSequence";var c,u=n(23091);function h(e){return!!(e&&e>=55296&&e<=56319)}function p(e){return!!(e&&e>=56320&&e<=57343)}function d(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}var f=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;let o=a.codePointAt(0);return o&&o>=65536?o:s}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function m(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}let g=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],y=[12288,12288,65281,65376,65504,65510],b=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],_=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],k=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],E=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=2*i;if(t<e[a])r=i-1;else{if(!(t>e[a+1]))return!0;n=i+1}}return!1},[T,x]=function(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(19968>=i&&19968<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}(k),A=v(/\p{P}|\p{S}/u),w=v(/\s/);function v(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function S(e){return!!(1&e)}function C(e){return(e&r.cjkPunctuation)==2}function N(e){return!!(e&r.cjk)}function I(e){return!!(e&r.cjkOrIvs)}function D(e){return e===r.nonEmojiGeneralUseVS}function O(e){return!!(e&r.spaceOrPunctuation)}var M=n(4294);function L(e){if(null===e||(0,M.Ee)(e)||w(e))return 1;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return r.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&E(g,e)?"ambiguous":!(e<12288)&&!(e>65510)&&E(y,e)?"fullwidth":!(e<8361)&&!(e>65518)&&E(b,e)?"halfwidth":!(e<32)&&!(e>10630)&&E(_,e)?"narrow":e>=T&&e<=x||!(e<4352)&&!(e>262141)&&E(k,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return r.ivs;case!0:t|=r.cjk}}return A(e)&&(t|=2),t}function R(e,t,n){if(!D(e))return e;let i=t(),a=L(i);return!i||S(a)?e:65025===n&&i&&!(i<8216)&&(8216===i||8217===i||8220===i||8221===i)?r.cjkPunctuation:a&~r.ivs}(c=r||(r={})).spaceOrPunctuation=3,c.cjk=4096,c.cjkPunctuation=4098,c.ivs=8192,c.cjkOrIvs=12288,c.nonEmojiGeneralUseVS=16384,c.variationSelector=24576,c.ivsToCjkRightShift=1;var P=n(41161),F=n(49359);let B={name:"attention",resolveAll:function(e,t){let n,r,i,a,s,c,h,p,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close){for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;c=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let f={...e[n][1].end},m={...e[d][1].start};H(f,-c),H(m,c),a={type:c>1?l:o,start:f,end:{...e[n][1].end}},s={type:c>1?l:o,start:{...e[d][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[d][1].start}},r={type:c>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[d][1].start={...s.end},h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=(0,P.V)(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=(0,P.V)(h,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),(0,u.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=(0,P.V)(h,(0,F.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),h=(0,P.V)(h,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(p=2,h=(0,P.V)(h,[["enter",e[d][1],t],["exit",e[d][1],t]])):p=0,(0,P.m)(e,n-1,d-n+3,h),d=n+h.length-p-2;break}}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,{now:i,sliceSerialize:a,previous:s}=this,o=p(s)?d(s,i(),a):s,l=L(o),c=new f(o,i(),a),g=R(l,c.value.bind(c),o);return function(s){return(0,u.ok)(42===s||95===s,"expected asterisk or underscore"),n=s,e.enter("attentionSequence"),function s(l){if(l===n)return e.consume(l),s;let c=e.exit("attentionSequence"),p=L(h(l)?m(l,i(),a):l);(0,u.ok)(r,"expected `attentionMarkers` to be populated");let d=C(g),f=d||S(g),y=C(p),b=y||S(p),_=I(g),k=!b||y&&(f||_)||r.includes(l),E=!f||d&&(b||N(p))||r.includes(o);return c._open=!!(42===n?k:k&&(O(g)||!E)),c._close=!!(42===n?E:E&&(O(p)||!k)),t(l)}(s)}}};function H(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function U(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:B,95:B},insideSpan:{null:[B]}})}function j(e,t,n,r){return K(e,t,n,r,z(e,t,n),1)}function $(e,t,n,r){return K(e,t,n,r,G(e,t,n),2)}function z(e,t,n){return n.options.emphasis||"*"}function G(e,t,n){return n.options.strong||"*"}function K(e,t,n,r,i,a){let s,o,l=i.repeat(a),c=n.enter(1===a?"emphasis":"strong"),u=n.createTracker(r),h=u.move(l),p=u.move(n.containerPhrasing(e,{after:i,before:h,...u.current()})),d=function(e,t,n,r){var i,a,s;let o=en(r),l=ee(r);if(null!==(i=o)&&56320<=i&&i<=57343||(a=o,s=l,D(L(a))&&(null===s||null===s))){let r=Z(e,t,n,-1);r&&(o=en(r),l=ee(r))}return{current:o,previous:l}}(e,t,n,r.before),f=function(e,t,n,r){var i;let a=et(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let s=Z(e,t,n,1);return s?et(s):a}(e,t,n,r.after),m=q(d,et(p),i,"open");m.inside&&p&&(p=function(e){let[t=""]=[...e];return J(t.codePointAt(0)??null)+e.slice(t.length)}(p));let g=q({current:en(p),previous:ee(p)},f,i,"close");g.inside&&p&&(o=(s=[...p]).pop(),p=`${s.join("")}${J(o?.codePointAt(0)??null)}`);let y=u.move(l);c();let b=g.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(et(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:g.outside&&!b,before:m.outside},n.cjkFriendlyEncodeAfterSupplementaryText=b,h+p+y}function Y(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${J(i.codePointAt(0)??null)}${n.safe(a,{...r,before:";"})}`}function q(e,t,n,r){let i=Q(e),a=L(t);if(!I(i)&&!I(a))return"open"===r?W(i,a,n):W(a,i,n);let s={inside:!0,outside:!0};for(let i of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},s]){let a="open"===r?i.outside?er:e:i.inside?er:e,s="open"===r?i.inside?ei:t:i.outside?ei:t;if("open"===r?function(e,t,n){let r=Q(t),{close:i,open:a}=V(r,L(n));return"_"===e?a&&(O(r)||!i):a}(n,a,s):function(e,t,n){let r=L(n),{close:i,open:a}=V(Q(t),r);return"_"===e?i&&(O(r)||!a):i}(n,a,s))return i}return s}function W(e,t,n){return X(e)?X(t)?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:S(e)?X(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function V(e,t){let n=C(e),r=n||S(e),i=C(t),a=i||S(t);return{open:!a||i&&(r||I(e)),close:!r||n&&(a||N(t))}}function X(e){return!S(e)&&!C(e)}function Q(e){let t=L(e.current);return null!==e.current&&D(t)?R(t,()=>e.previous,e.current):t}function Z(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,s="number"==typeof i?i:a.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[s+r])||void 0}j.peek=z,$.peek=G;function J(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function ee(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function et(e){return e.codePointAt(0)??null}function en(e){return[...e].at(-1)?.codePointAt(0)??null}let er={current:59,previous:null},ei=38;function ea(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({handlers:{emphasis:j,strong:$,text:Y}})}function es(e){let t,n,i=this.data();(i.micromarkExtensions||(i.micromarkExtensions=[])).push((t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let{now:a,sliceSerialize:s,previous:o}=this,l=p(o)?d(o,a(),s):o,c=L(l),g=new f(l,a(),s),y=R(c,g.value.bind(g),l),b=this.events,_=0;return function(o){return((0,u.ok)(126===o,"expected `~`"),126===l&&"characterEscape"!==b[b.length-1][1].type)?i(o):(e.enter("strikethroughSequenceTemporary"),function o(c){let u=L(l);if(126===c)return _>1?i(c):(e.consume(c),_++,o);if(_<2&&!t)return i(c);let p=e.exit("strikethroughSequenceTemporary"),d=L(h(c)?m(c,a(),s):c),f=C(y)||S(y),g=C(d)||S(d),b=N(y)||u===r.ivs;return p._open=!g||2===d&&(f||b),p._close=!f||2===u&&(g||N(d)),n(c)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,P.m)(s,s.length,0,(0,F.W)(o,e.slice(r+1,n),t)),(0,P.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,P.m)(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}))}let eo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function el(e,t,n,r){let i,a,s=n.enter("strikethrough"),o=n.createTracker(r),l=o.move("~~"),c=o.move(n.containerPhrasing(e,{after:"~",before:l,...o.current()})),u=function(e,t,n,r){var i,a,s;let o=e_(r),l=ey(r);if(null!==(i=o)&&56320<=i&&i<=57343||(a=o,s=l,D(L(a))&&(null===s||null===s))){let r=em(e,t,n,-1);r&&(o=e_(r),l=ey(r))}return{current:o,previous:l}}(e,t,n,r.before),h=function(e,t,n,r){var i;let a=eb(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let s=em(e,t,n,1);return s?eb(s):a}(e,t,n,r.after),p=eu(u,eb(c),"open");p.inside&&c&&(c=function(e){let[t=""]=[...e];return eg(t.codePointAt(0)??null)+e.slice(t.length)}(c));let d=eu({current:e_(c),previous:ey(c)},h,"close");d.inside&&c&&(a=(i=[...c]).pop(),c=`${i.join("")}${eg(a?.codePointAt(0)??null)}`);let f=o.move("~~");s();let m=d.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(eb(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:d.outside&&!m,before:p.outside},n.cjkFriendlyEncodeAfterSupplementaryText=m,l+c+f}function ec(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${eg(i.codePointAt(0)??null)}${n.safe(a,{...r,before:";"})}`}function eu(e,t,n){let r=ef(e),i=L(t);if(!I(r)&&!I(i))return"open"===n?eh(r,i):eh(i,r);let a={inside:!0,outside:!0};for(let r of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},a]){let i="open"===n?r.outside?ek:e:r.inside?ek:e,a="open"===n?r.inside?eE:t:r.outside?eE:t;if("open"===n?function(e,t){let{open:n}=ep(ef(e),L(t));return n}(i,a):function(e,t){let n=L(t),{close:r}=ep(ef(e),n);return r}(i,a))return r}return a}function eh(e,t){return ed(e)?ed(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:S(e)?ed(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function ep(e,t){let n=C(e),r=n||S(e),i=C(t),a=i||S(t);return{open:!a||i&&(r||I(e)),close:!r||n&&(a||N(t))}}function ed(e){return!S(e)&&!C(e)}function ef(e){let t=L(e.current);return null!==e.current&&D(t)?R(t,()=>e.previous,e.current):t}function em(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,s="number"==typeof i?i:a.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[s+r])||void 0}el.peek=function(){return"~"};function eg(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function ey(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function eb(e){return e.codePointAt(0)??null}function e_(e){return[...e].at(-1)?.codePointAt(0)??null}let ek={current:59,previous:null},eE=38;function eT(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eo}],handlers:{delete:el,text:ec}})}var ex=n(48250),eA=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),ew=/^(https?:\/\/|mailto:|www\.)/i,ev=(s=[...i=[function(){U.call(this),ea.call(this)}],...a=[()=>e=>{(0,ex.YR)(e,"link",(e,t,n)=>{if(!n||"number"!=typeof t||!(e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url})(e)||!ew.test(e.url))return;let r=(e=>{let t=0;for(let n of e){if(eA.has(n))return t;t+=n.length}return null})(e.url);if(null===r||0===r)return;let i=e.url.slice(0,r),a=e.url.slice(r),s={...e,url:i,children:[{type:"text",value:i}]};return n.children.splice(t,1,s,{type:"text",value:a}),t+1})},function(e){es.call(this,e),eT.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:i,remarkPluginsAfter:a,remarkPlugins:s})},17541:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>u,GX:()=>c,KX:()=>l,WW:()=>s,ue:()=>a});var r=n(97096),i=n(32165),a=(0,i.K2)(e=>{let{handDrawnSeed:t}=(0,r.D7)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),s=(0,i.K2)(e=>{let t=o([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),o=(0,i.K2)(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(":");t.set(n.trim(),r?.trim())}),t},"styles2Map"),l=(0,i.K2)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),c=(0,i.K2)(e=>{let{stylesArray:t}=s(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];l(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&a.push(e.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),u=(0,i.K2)((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:a,mainBkg:o}=n,{stylesMap:l}=s(e);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),h=(0,i.K2)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray")},18931:(e,t,n)=>{"use strict";n.d(t,{oz:()=>g});var r=n(23091),i=n(78140),a=n(99007),s=n(95155);n(12115);var o=n(82948),l=n(54615),c=n(96674),u=n(48250),h=n(72148);let p=[],d={allowDangerousHtml:!0},f=/^(https?|ircs?|mailto|xmpp)$/i,m=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function g(e){var t;let n,f,g,b,_,k=(n=(t=e).rehypePlugins||p,f=t.remarkPlugins||p,g=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...d}:d,(0,c.l)().use(o.A).use(f).use(l.A,g).use(n)),E=(b=e.children||"",_=new h.T,"string"==typeof b?_.value=b:(0,r.HB)("Unexpected value `"+b+"` for `children` prop, expected `string`"),_);return function(e,t){let n=t.allowedElements,o=t.allowElement,l=t.components,c=t.disallowedElements,h=t.skipHtml,p=t.unwrapDisallowed,d=t.urlTransform||y;for(let e of m)Object.hasOwn(t,e.from)&&(0,r.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&c&&(0,r.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,u.YR)(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return h?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in a.$)if(Object.hasOwn(a.$,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=a.$[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!c&&c.includes(e.tagName);if(!i&&o&&"number"==typeof t&&(i=!o(e,t,r)),i&&r&&"number"==typeof t)return p&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),(0,i.H)(e,{Fragment:s.Fragment,components:l,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0})}(k.runSync(k.parse(E),E),e)}function y(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||f.test(e.slice(0,t))?e:""}},20768:(e,t,n)=>{"use strict";n.d(t,{IN:()=>a,dc:()=>s,_Z:()=>o,VG:()=>l});var r=n(73129);let i=[],a=!0,s=!1,o="skip";function l(e,t,n,l){let c;"function"==typeof t&&"function"!=typeof n?(l=n,n=t):c=t;let u=(0,r.C)(c),h=l?-1:1;(function e(r,c,p){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){var d;let f,m,g,y=i;if((!t||u(r,c,p[p.length-1]||void 0))&&(y=Array.isArray(d=n(r,p))?d:"number"==typeof d?[a,d]:null==d?i:[d])[0]===s)return y;if("children"in r&&r.children&&r.children&&y[0]!==o)for(m=(l?r.children.length:-1)+h,g=p.concat(r);m>-1&&m<r.children.length;){if((f=e(r.children[m],m,g)())[0]===s)return f;m="number"==typeof f[1]?f[1]:m+h}return y}})(e,void 0,[])()}},21090:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,h=1;function p(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function d(){var e={line:u,column:h};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:u,column:h},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=h,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var _,k=[];for(y(k);_=function(){var e=d(),n=g(i);if(n){if(b(),!g(a))return m("property missing ':'");var r=g(s),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(o),l}}();)!1!==_&&(k.push(_),y(k));return k}},21354:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(97096),i=n(32165),a=n(33948),s=(0,i.K2)(e=>{let{securityLevel:t}=(0,r.D7)(),n=(0,a.Ltv)("body");if("sandbox"===t){let t=(0,a.Ltv)(`#i${e}`),r=t.node()?.contentDocument??document;n=(0,a.Ltv)(r.body)}return n.select(`#${e}`)},"selectSvgElement")},23091:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},23999:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},24662:(e,t,n)=>{"use strict";n.d(t,{$V:()=>s,Av:()=>r,GX:()=>f,ML:()=>A,NA:()=>h,OG:()=>i,Qb:()=>g,R_:()=>o,Uw:()=>p,VP:()=>l,XZ:()=>k,ZR:()=>_,_u:()=>T,cT:()=>d,i1:()=>E,iq:()=>m,kj:()=>a,pj:()=>u,q:()=>y,ri:()=>x,vC:()=>c,x6:()=>b});let r="[object RegExp]",i="[object String]",a="[object Number]",s="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",p="[object Array]",d="[object ArrayBuffer]",f="[object Object]",m="[object DataView]",g="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",_="[object Uint32Array]",k="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",x="[object Float32Array]",A="[object Float64Array]"},25208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|:)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"},27629:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let a=i.invalid,s=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);a=r.call(s,n)?s[n]:i.unknown}if(a)return a.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},27866:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",a="month",s="quarter",o="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d="en",f={};f[d]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof k||!(!e||!e[m])},y=function e(t,n,r){var i;if(!t)return d;if("string"==typeof t){var a=t.toLowerCase();f[a]&&(i=a),n&&(f[a]=n,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;f[o]=t,i=o}return!r&&i&&(d=i),i||!r&&d},b=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},_={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),s=n-i<0,o=t.clone().add(r+(s?-1:1),a);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:a,y:o,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};_.l=y,_.i=g,_.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function p(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var d=p.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return _},d.isValid=function(){return this.$d.toString()!==c},d.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return b(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<b(e)},d.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,s){var c=this,u=!!_.u(s)||s,h=_.p(e),p=function(e,t){var n=_.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},d=function(e,t){return _.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case o:return u?p(1,0):p(31,11);case a:return u?p(1,m):p(0,m+1);case i:var b=this.$locale().weekStart||0,k=(f<b?f+7:f)-b;return p(u?g-k:g+(6-k),m);case"day":case l:return d(y+"Hours",0);case r:return d(y+"Minutes",1);case n:return d(y+"Seconds",2);case t:return d(y+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(i,s){var c,u=_.p(i),h="set"+(this.$u?"UTC":""),p=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[o]=h+"FullYear",c[r]=h+"Hours",c[n]=h+"Minutes",c[t]=h+"Seconds",c[e]=h+"Milliseconds",c)[u],d="day"===u?this.$D+(s-this.$W):s;if(u===a||u===o){var f=this.clone().set(l,1);f.$d[p](d),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[_.p(e)]()},d.add=function(e,s){var l,c=this;e=Number(e);var u=_.p(s),h=function(t){var n=b(c);return _.w(n.date(n.date()+Math.round(t*e)),c)};if(u===a)return this.set(a,this.$M+e);if(u===o)return this.set(o,this.$y+e);if("day"===u)return h(1);if(u===i)return h(7);var p=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,d=this.$d.getTime()+e*p;return _.w(d,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,u=n.months,p=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return _.s(a%12||12,e,"0")},m=p||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return o+1;case"MM":return _.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,u,3);case"MMMM":return d(u,o);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return _.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return _.s(s,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(e,l,c){var u,h=this,p=_.p(l),d=b(e),f=(d.utcOffset()-this.utcOffset())*6e4,m=this-d,g=function(){return _.m(h,d)};switch(p){case o:u=g()/12;break;case a:u=g();break;case s:u=g()/3;break;case i:u=(m-f)/6048e5;break;case"day":u=(m-f)/864e5;break;case r:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:_.a(u)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return f[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},d.clone=function(){return _.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},p}(),E=k.prototype;return b.prototype=E,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",a],["$y",o],["$D",l]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,k,b),e.$i=!0),b},b.locale=y,b.isDayjs=g,b.unix=function(e){return b(1e3*e)},b.en=f[d],b.Ls=f,b.p={},b}()},28830:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?a(e.position):"start"in e||"end"in e?a(e):"line"in e||"column"in e?i(e):"":""}function i(e){return s(e&&e.line)+":"+s(e&&e.column)}function a(e){return i(e&&e.start)+"-"+i(e&&e.end)}function s(e){return e&&"number"==typeof e?e:1}n.d(t,{L:()=>r})},32165:(e,t,n)=>{"use strict";n.d(t,{He:()=>c,K2:()=>a,Rm:()=>l,VA:()=>s});var r=n(27866),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0}),s=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},o={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},l={trace:a((...e)=>{},"trace"),debug:a((...e)=>{},"debug"),info:a((...e)=>{},"info"),warn:a((...e)=>{},"warn"),error:a((...e)=>{},"error"),fatal:a((...e)=>{},"fatal")},c=a(function(e="fatal"){let t=o.fatal;"string"==typeof e?e.toLowerCase()in o&&(t=o[e]):"number"==typeof e&&(t=e),l.trace=()=>{},l.debug=()=>{},l.info=()=>{},l.warn=()=>{},l.error=()=>{},l.fatal=()=>{},t<=o.fatal&&(l.fatal=console.error?console.error.bind(console,u("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",u("FATAL"))),t<=o.error&&(l.error=console.error?console.error.bind(console,u("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",u("ERROR"))),t<=o.warn&&(l.warn=console.warn?console.warn.bind(console,u("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",u("WARN"))),t<=o.info&&(l.info=console.info?console.info.bind(console,u("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",u("INFO"))),t<=o.debug&&(l.debug=console.debug?console.debug.bind(console,u("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",u("DEBUG"))),t<=o.trace&&(l.trace=console.debug?console.debug.bind(console,u("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",u("TRACE")))},"setLogLevel"),u=a(e=>{let t=r().format("ss.SSS");return`%c${t} : ${e} : `},"format")},32174:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(78437);function i(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,r.b)(e)}},32563:(e,t,n)=>{"use strict";n.d(t,{pe:()=>A,PX:()=>Z,ru:()=>X,Un:()=>Q,$t:()=>ei,Sm:()=>eo,C4:()=>es,$C:()=>z,rY:()=>el,sM:()=>j,KL:()=>ec,Ib:()=>D,dq:()=>et,I5:()=>er,yT:()=>K,vU:()=>N,_K:()=>ea,bH:()=>W});var r,i=n(97096),a=n(32165),s=n(84485),o=n(33948);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(l.Cache||Map),n}function c(){}l.Cache=Map;var u=n(83438),h=n(52618);function p(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var d=n(87789);function f(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var m=n(78437),g=n(24662);function y(e,t,n,r=new Map,i){let a=i?.(e,t,n,r);if(void 0!==a)return a;if((0,u.s)(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=y(e[a],a,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,s]of(r.set(e,t),e))t.set(a,y(s,a,n,r,i));return t}if(e instanceof Set){let t=new Set;for(let a of(r.set(e,t),e))t.add(y(a,void 0,n,r,i));return t}if((0,d.P)(e))return e.subarray();if((0,h.i)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=y(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),b(t,e,n,r,i),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),b(t,e,n,r,i),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),b(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,b(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),b(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),b(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),b(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch((0,m.b)(e)){case g.R_:case g.Uw:case g.cT:case g.iq:case g.$V:case g.vC:case g.ri:case g.ML:case g.XZ:case g.i1:case g._u:case g.pj:case g.kj:case g.GX:case g.Av:case g.NA:case g.OG:case g.VP:case g.Qb:case g.q:case g.x6:case g.ZR:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),b(t,e,n,r,i),t}return e}function b(e,t,n=e,r,i){let a=[...Object.keys(t),...p(t)];for(let s=0;s<a.length;s++){let o=a[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=y(t[o],o,n,r,i))}}function _(e){var t;return t=(t,n,r,i)=>{let a;if(void 0!==a)return a;if("object"==typeof e){if("[object Object]"===(0,m.b)(e)&&"function"!=typeof e.constructor){let t={};return i.set(e,t),b(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case g.kj:case g.OG:case g.$V:{let t=new e.constructor(e?.valueOf());return b(t,e),t}case g.R_:{let t={};return b(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},y(e,void 0,e,new Map,t)}var k=n(32174);function E(e){return"object"==typeof e&&null!==e}var T=n(9101),x=n(95683),A="",w={curveBasis:o.qrM,curveBasisClosed:o.Yu4,curveBasisOpen:o.IA3,curveBumpX:o.Wi0,curveBumpY:o.PGM,curveBundle:o.OEq,curveCardinalClosed:o.olC,curveCardinalOpen:o.IrU,curveCardinal:o.y8u,curveCatmullRomClosed:o.Q7f,curveCatmullRomOpen:o.cVp,curveCatmullRom:o.oDi,curveLinear:o.lUB,curveLinearClosed:o.Lx9,curveMonotoneX:o.nVG,curveMonotoneY:o.uxU,curveNatural:o.Xf2,curveStep:o.GZz,curveStepAfter:o.UPb,curveStepBefore:o.dyv},v=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,S=(0,a.K2)(function(e,t){let n=C(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);(0,i.$i)(e),r=(0,i.hH)(r,[...e])}else r=n.args;if(!r)return;let a=(0,i.Ch)(e,t),s="config";return void 0!==r[s]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[s],delete r[s]),r},"detectInit"),C=(0,a.K2)(function(e,t=null){try{let n,r=RegExp(`[%]{2}(?![{]${v.source})(?=[}][%]{2}).*
|
|
102
|
-
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),a.Rm.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let s=[];for(;null!==(n=i.DB.exec(e));)if(n.index===i.DB.lastIndex&&i.DB.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;s.push({type:e,args:t})}if(0===s.length)return{type:e,args:null};return 1===s.length?s[0]:s}catch(n){return a.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),N=(0,a.K2)(function(e){return e.replace(i.DB,"")},"removeDirectives"),I=(0,a.K2)(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},"isSubstringInArray");function D(e,t){return e?w[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function O(e,t){let n=e.trim();if(n)return"loose"!==t.securityLevel?(0,s.J)(n):n}(0,a.K2)(D,"interpolateToCurve"),(0,a.K2)(O,"formatUrl");var M=(0,a.K2)((e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],s=window;for(let t=0;t<r;t++)if(!(s=s[n[t]]))return void a.Rm.error(`Function name: ${e} not found in window`);s[i](...t)},"runFunc");function L(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function R(e){let t,n=0;return e.forEach(e=>{n+=L(e,t),t=e}),B(e,n/2)}function P(e){return 1===e.length?e[0]:R(e)}(0,a.K2)(L,"distance"),(0,a.K2)(R,"traverseEdge"),(0,a.K2)(P,"calcLabelPosition");var F=(0,a.K2)((e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),B=(0,a.K2)((e,t)=>{let n,r=t;for(let t of e){if(n){let e=L(t,n);if(0===e)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:F((1-i)*n.x+i*t.x,5),y:F((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),H=(0,a.K2)((e,t,n)=>{a.Rm.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=B(t,25),i=e?10:5,s=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(t[0].x+r.x)/2,o.y=-Math.cos(s)*i+(t[0].y+r.y)/2,o},"calcCardinalityPosition");function U(e,t,n){let r=structuredClone(n);a.Rm.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=B(r,25+e),s=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(o+Math.PI)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(r[0].y+i.y)/2):"end_right"===t?(l.x=Math.sin(o-Math.PI)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(r[0].y+i.y)/2-5):"end_left"===t?(l.x=Math.sin(o)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2),l}function j(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,a.K2)(U,"calcTerminalLabelPosition"),(0,a.K2)(j,"getStylesFromArray");var $=0,z=(0,a.K2)(()=>($++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$),"generateId");function G(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}(0,a.K2)(G,"makeRandomHex");var K=(0,a.K2)(e=>G(e.length),"random"),Y=(0,a.K2)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),q=(0,a.K2)(function(e,t){let n=t.text.replace(i.Y2.lineBreakRegex," "),[,r]=er(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);let s=a.append("tspan");return s.attr("x",t.x+2*t.textMargin),s.attr("fill",t.fill),s.text(n),a},"drawSimpleText"),W=l((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.Y2.lineBreakRegex.test(e)))return e;let r=e.split(" ").filter(Boolean),a=[],s="";return r.forEach((e,i)=>{let o=Q(`${e} `,n),l=Q(s,n);if(o>t){let{hyphenatedStrings:r,remainingWord:i}=V(e,t,"-",n);a.push(s,...r),s=i}else l+o>=t?(a.push(s),s=e):s=[s,e].filter(Boolean).join(" ");i+1===r.length&&a.push(s)}),a.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),V=l((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],s="";return i.forEach((e,o)=>{let l=`${s}${e}`;if(Q(l,r)>=t){let e=i.length===o+1,t=`${l}${n}`;a.push(e?l:t),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function X(e,t){return Z(e,t).height}function Q(e,t){return Z(e,t).width}(0,a.K2)(X,"calculateTextHeight"),(0,a.K2)(Q,"calculateTextWidth");var Z=l((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,s]=er(n),l=e.split(i.Y2.lineBreakRegex),c=[],u=(0,o.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=Y();i.text=r||A;let o=q(h,i).style("font-size",s).style("font-weight",a).style("font-family",e),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}c.push(n)}h.remove();let p=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[p]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),J=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,a.K2)(this,"InitIDGenerator")}},ee=(0,a.K2)(function(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)},"entityDecode");function et(e){return"str"in e}(0,a.K2)(et,"isDetailedError");var en=(0,a.K2)((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},"insertTitle"),er=(0,a.K2)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ei(e,t){return function(e,...t){return function(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++)i=function e(t,n,r,i){if((0,u.s)(t)&&(t=Object(t)),null==n||"object"!=typeof n)return t;if(i.has(n))return function(e){if((0,u.s)(e))return e;if(Array.isArray(e)||(0,h.i)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(i.get(n));if(i.set(n,t),Array.isArray(n)){n=n.slice();for(let e=0;e<n.length;e++)n[e]=n[e]??void 0}let a=[...Object.keys(n),...p(n)];for(let o=0;o<a.length;o++){let l=a[o];if("__proto__"===l)continue;let c=n[l],u=t[l];if((0,k.N)(c)&&(c={...c}),(0,k.N)(u)&&(u={...u}),(0,d.P)(c)&&(c=_(c)),Array.isArray(c))if(Array.isArray(u)){let e=[],t=Reflect.ownKeys(u);for(let n=0;n<t.length;n++){let r=t[n];e[r]=u[r]}u=e}else{var s;if(E(s=u)&&(0,T.X)(s)){let e=[];for(let t=0;t<u.length;t++)e[t]=u[t];u=e}else u=[]}let h=r(u,c,l,t,n,i);void 0!==h?t[l]=h:Array.isArray(c)||E(u)&&E(c)&&(f(u)||f(c)||(0,x.i)(u)||(0,x.i)(c))?t[l]=e(u,c,r,i):null==u&&f(c)?t[l]=e({},c,r,i):null==u&&(0,x.i)(c)?t[l]=_(c):(void 0===u||void 0!==c)&&(t[l]=c)}return t}(i,n[e],r,new Map);return i}(e,...t,c)}({},e,t)}(0,a.K2)(ei,"cleanAndMerge");var ea={assignWithDepth:i.hH,wrapLabel:W,calculateTextHeight:X,calculateTextWidth:Q,calculateTextDimensions:Z,cleanAndMerge:ei,detectInit:S,detectDirective:C,isSubstringInArray:I,interpolateToCurve:D,calcLabelPosition:P,calcCardinalityPosition:H,calcTerminalLabelPosition:U,formatUrl:O,getStylesFromArray:j,generateId:z,random:K,runFunc:M,entityDecode:ee,insertTitle:en,isLabelCoordinateInPath:eu,parseFontSize:er,InitIDGenerator:J},es=(0,a.K2)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),eo=(0,a.K2)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),el=(0,a.K2)((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function ec(e){return e??null}function eu(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}(0,a.K2)(ec,"handleUndefinedAttr"),(0,a.K2)(eu,"isLabelCoordinateInPath")},32682:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(99634)),i=n(52634);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},33948:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function s(e){return"translate("+e+",0)"}function o(e){return"translate(0,"+e+")"}function l(){return!this.__axis}function c(e,t){var n=[],r=null,i=null,c=6,u=6,h=3,p="u">typeof window&&window.devicePixelRatio>1?0:.5,d=1===e||4===e?-1:1,f=4===e||2===e?"x":"y",m=1===e||3===e?s:o;function g(s){var o=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,g=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(c,0)+h,b=t.range(),_=+b[0]+p,k=+b[b.length-1]+p,E=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}:function(e){return t=>+e(t)})(t.copy(),p),T=s.selection?s.selection():s,x=T.selectAll(".domain").data([null]),A=T.selectAll(".tick").data(o,t).order(),w=A.exit(),v=A.enter().append("g").attr("class","tick"),S=A.select("line"),C=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(v),S=S.merge(v.append("line").attr("stroke","currentColor").attr(f+"2",d*c)),C=C.merge(v.append("text").attr("fill","currentColor").attr(f,d*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),s!==T&&(x=x.transition(s),A=A.transition(s),S=S.transition(s),C=C.transition(s),w=w.transition(s).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=E(e))?m(e+p):this.getAttribute("transform")}),v.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return m((t&&isFinite(t=t(e))?t:E(e))+p)})),w.remove(),x.attr("d",4===e||2===e?u?"M"+d*u+","+_+"H"+p+"V"+k+"H"+d*u:"M"+p+","+_+"V"+k:u?"M"+_+","+d*u+"V"+p+"H"+k+"V"+d*u:"M"+_+","+p+"H"+k),A.attr("opacity",1).attr("transform",function(e){return m(E(e)+p)}),S.attr(f+"2",d*c),C.attr(f,d*y).text(g),T.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),T.each(function(){this.__axis=E})}return g.scale=function(e){return arguments.length?(t=e,g):t},g.ticks=function(){return n=Array.from(arguments),g},g.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),g):n.slice()},g.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),g):r&&r.slice()},g.tickFormat=function(e){return arguments.length?(i=e,g):i},g.tickSize=function(e){return arguments.length?(c=u=+e,g):c},g.tickSizeInner=function(e){return arguments.length?(c=+e,g):c},g.tickSizeOuter=function(e){return arguments.length?(u=+e,g):u},g.tickPadding=function(e){return arguments.length?(h=+e,g):h},g.offset=function(e){return arguments.length?(p=+e,g):p},g}function u(e){return c(1,e)}function h(e){return c(3,e)}function p(){}function d(e){return null==e?p:function(){return this.querySelector(e)}}function f(){return[]}function m(e){return null==e?f:function(){return this.querySelectorAll(e)}}function g(e){return function(){return this.matches(e)}}function y(e){return function(t){return t.matches(e)}}n.d(t,{JLW:()=>iq,l78:()=>h,tlR:()=>u,qrM:()=>i6,Yu4:()=>i8,IA3:()=>ae,Wi0:()=>an,PGM:()=>ar,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>ap,oDi:()=>am,Q7f:()=>ay,cVp:()=>a_,lUB:()=>iX,Lx9:()=>aE,nVG:()=>aC,uxU:()=>aN,Xf2:()=>aO,GZz:()=>aL,UPb:()=>aP,dyv:()=>aR,GPZ:()=>es,Sk5:()=>t$,bEH:()=>na,n8j:()=>iJ,T9B:()=>r,jkA:()=>i,rLf:()=>i2,WH:()=>function e(){var t,n,r=nh().unknown(void 0),i=r.domain,a=r.range,s=0,o=1,l=!1,c=0,u=0,h=.5;function p(){var e=i().length,r=o<s,p=r?o:s,d=r?s:o;t=(d-p)/Math.max(1,e-c+2*u),l&&(t=Math.floor(t)),p+=(d-p-t*(e-c))*h,n=t*(1-c),l&&(p=Math.round(p),n=Math.round(n));var f=(function(e,t,n){e*=1,t*=1,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r<i;)a[r]=e+r*n;return a})(e).map(function(e){return p+t*e});return a(r?f.reverse():f)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),p()):i()},r.range=function(e){return arguments.length?([s,o]=e,s*=1,o*=1,p()):[s,o]},r.rangeRound=function(e){return[s,o]=e,s*=1,o*=1,l=!0,p()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(e){return arguments.length?(l=!!e,p()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),p()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),p()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,p()):u},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),p()):h},r.copy=function(){return e(i(),[s,o]).round(l).paddingInner(c).paddingOuter(u).align(h)},ns.apply(p(),arguments)},m4Y:()=>function e(){var t,n=nO();return n.copy=function(){return nD(n,e())},ns.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t<e,[i,a,s]=r?nm(t,e,n):nm(e,t,n);if(!(a>=i))return[];let o=a-i+1,l=Array(o);if(r)if(s<0)for(let e=0;e<o;++e)l[e]=-((a-e)/s);else for(let e=0;e<o;++e)l[e]=(a-e)*s;else if(s<0)for(let e=0;e<o;++e)l[e]=-((i+e)/s);else for(let e=0;e<o;++e)l[e]=(i+e)*s;return l}(n[0],n[n.length-1],null==e?10:e)},n.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,a,s=ny(e,t,n);switch((r=tL(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tO(o)/3)))-tO(Math.abs(s))))||(r.precision=a),eo(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,tO(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=s)))-tO(i))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-tO(Math.abs(s))))||(r.precision=a-("%"===r.type)*2)}return es(r)}(r[0],r[r.length-1],null==e?10:e,n)},n.nice=function(e){null==e&&(e=10);var r,i,a=t(),s=0,o=a.length-1,l=a[s],c=a[o],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=o,o=i);u-- >0;){if((i=ng(l,c,e))===r)return a[s]=l,a[o]=c,t(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n},UMr:()=>nh,w7C:()=>ik,zt:()=>iE,Ltv:()=>iT,UAC:()=>n$,DCK:()=>ec,TUC:()=>nQ,Agd:()=>nU,t6C:()=>nP,wXd:()=>nB,ABi:()=>nq,Ui6:()=>n4,rGn:()=>nZ,ucG:()=>nF,YPH:()=>nY,Mol:()=>nX,PGu:()=>nW,GuW:()=>nV,hkb:()=>tZ});var b=Array.prototype.find;function _(){return this.firstElementChild}var k=Array.prototype.filter;function E(){return Array.from(this.children)}function T(e){return Array(e.length)}function x(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function A(e,t,n,r,i,a){for(var s,o=0,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new x(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function w(e,t,n,r,i,a,s){var o,l,c,u=new Map,h=t.length,p=a.length,d=Array(h);for(o=0;o<h;++o)(l=t[o])&&(d[o]=c=s.call(l,l.__data__,o,t)+"",u.has(c)?i[o]=l:u.set(c,l));for(o=0;o<p;++o)c=s.call(e,a[o],o,a)+"",(l=u.get(c))?(r[o]=l,l.__data__=a[o],u.delete(c)):n[o]=new x(e,a[o]);for(o=0;o<h;++o)(l=t[o])&&u.get(d[o])===l&&(i[o]=l)}function v(e){return e.__data__}function S(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}x.prototype={constructor:x,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var C="http://www.w3.org/1999/xhtml";let N={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function I(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),N.hasOwnProperty(t)?{space:N[t],local:e}:e}function D(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function O(e,t){return e.style.getPropertyValue(t)||D(e).getComputedStyle(e,null).getPropertyValue(t)}function M(e){return e.trim().split(/^|\s+/)}function L(e){return e.classList||new R(e)}function R(e){this._node=e,this._names=M(e.getAttribute("class")||"")}function P(e,t){for(var n=L(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function F(e,t){for(var n=L(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function B(){this.textContent=""}function H(){this.innerHTML=""}function U(){this.nextSibling&&this.parentNode.appendChild(this)}function j(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $(e){var t=I(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===C&&t.documentElement.namespaceURI===C?t.createElement(e):t.createElementNS(n,e)}})(t)}function z(){return null}function G(){var e=this.parentNode;e&&e.removeChild(this)}function K(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function W(e,t,n){return function(){var r,i=this.__on,a=function(e){t.call(this,e,this.__data__)};if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function V(e,t,n){var r=D(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}R.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var X=[null];function Q(e,t){this._groups=e,this._parents=t}function Z(){return new Q([[document.documentElement]],X)}Q.prototype=Z.prototype={constructor:Q,select:function(e){"function"!=typeof e&&(e=d(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s,o=t[i],l=o.length,c=r[i]=Array(l),u=0;u<l;++u)(a=o[u])&&(s=e.call(a,a.__data__,u,o))&&("__data__"in a&&(s.__data__=a.__data__),c[u]=s);return new Q(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=m(e);for(var n=this._groups,r=n.length,i=[],a=[],s=0;s<r;++s)for(var o,l=n[s],c=l.length,u=0;u<c;++u)(o=l[u])&&(i.push(e.call(o,o.__data__,u,l)),a.push(o));return new Q(i,a)},selectChild:function(e){var t;return this.select(null==e?_:(t="function"==typeof e?e:y(e),function(){return b.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?E:(t="function"==typeof e?e:y(e),function(){return k.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new Q(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,v);var n=t?w:A,r=this._parents,i=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var a=i.length,s=Array(a),o=Array(a),l=Array(a),c=0;c<a;++c){var u=r[c],h=i[c],p=h.length,d="object"==typeof(y=e.call(u,u&&u.__data__,c,r))&&"length"in y?y:Array.from(y),f=d.length,m=o[c]=Array(f),g=s[c]=Array(f);n(u,h,m,g,l[c]=Array(p),d,t);for(var y,b,_,k,E=0,T=0;E<f;++E)if(_=m[E]){for(E>=T&&(T=E+1);!(k=g[T])&&++T<f;);_._next=k||null}}return(s=new Q(s,r))._enter=o,s._exit=l,s},enter:function(){return new Q(this._enter||this._groups.map(T),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(T),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),o=Array(i),l=0;l<s;++l)for(var c,u=n[l],h=r[l],p=u.length,d=o[l]=Array(p),f=0;f<p;++f)(c=u[f]||h[f])&&(d[f]=c);for(;l<i;++l)o[l]=n[l];return new Q(o,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,s=i[a];--a>=0;)(r=i[a])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=S);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var s,o=n[a],l=o.length,c=i[a]=Array(l),u=0;u<l;++u)(s=o[u])&&(c[u]=s);c.sort(t)}return new Q(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],s=0,o=a.length;s<o;++s)(i=a[s])&&e.call(i,i.__data__,s,a);return this},attr:function(e,t){var n=I(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):O(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=M(e+"");if(arguments.length<2){for(var r=L(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?P:F)(this,e)}}:t?function(e){return function(){P(this,e)}}:function(e){return function(){F(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?B:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?H:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(U)},lower:function(){return this.each(j)},append:function(e){var t="function"==typeof e?e:$(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:$(e),r=null==t?z:"function"==typeof t?t:d(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(G)},clone:function(e){return this.select(e?Y:K)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=a.length;if(arguments.length<2){var o=this.node().__on;if(o){for(var l,c=0,u=o.length;c<u;++c)for(r=0,l=o[c];r<s;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,o=t?W:q;r<s;++r)this.each(o(a[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return V(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return V(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,s=i.length;a<s;++a)(r=i[a])&&(yield r)}};var J={value:()=>{}};function ee(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new et(r)}function et(e){this._=e}function en(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=J,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}et.prototype=ee.prototype={constructor:et,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=en(r[n],e.name,t);else if(null==t)for(n in r)r[n]=en(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new et(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var er,ei,ea,es,eo,el,ec,eu,eh,ep=0,ed=0,ef=0,em=0,eg=0,ey=0,eb="object"==typeof performance&&performance.now?performance:Date,e_="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ek(){return eg||(e_(eE),eg=eb.now()+ey)}function eE(){eg=0}function eT(){this._call=this._time=this._next=null}function ex(e,t,n){var r=new eT;return r.restart(e,t,n),r}function eA(){eg=(em=eb.now())+ey,ep=ed=0;try{ek(),++ep;for(var e,t=eu;t;)(e=eg-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ep}finally{ep=0,function(){for(var e,t,n=eu,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eu=t);eh=e,ev(r)}(),eg=0}}function ew(){var e=eb.now(),t=e-em;t>1e3&&(ey-=t,em=e)}function ev(e){!ep&&(ed&&(ed=clearTimeout(ed)),e-eg>24?(e<1/0&&(ed=setTimeout(eA,e-eb.now()-ey)),ef&&(ef=clearInterval(ef))):(ef||(em=eb.now(),ef=setInterval(ew,1e3)),ep=1,e_(eA)))}function eS(e,t,n){var r=new eT;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eT.prototype=ex.prototype={constructor:eT,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?ek():+n)+(null==t?0:+t),this._next||eh===this||(eh?eh._next=this:eu=this,eh=this),this._call=e,this._time=n,ev()},stop:function(){this._call&&(this._call=null,this._time=1/0,ev())}};var eC=ee("start","end","cancel","interrupt"),eN=[];function eI(e,t,n,r,i,a){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var c,u,h,p;if(1!==n.state)return o();for(c in i)if((p=i[c]).name===n.name){if(3===p.state)return eS(a);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[c]):+c<t&&(p.state=6,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[c])}if(eS(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(h=n.tween.length),u=-1;c<h;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=p);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(o),n.state=5,1),a=-1,s=r.length;++a<s;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=ex(function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eC,tween:eN,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eD(e,t){var n=eM(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eO(e,t){var n=eM(e,t);if(n.state>3)throw Error("too late; already running");return n}function eM(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eL(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var eR=180/Math.PI,eP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eF(e,t,n,r,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*eR,skewX:Math.atan(l)*eR,scaleX:s,scaleY:o}}function eB(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,s){var o,l,c,u,h=[],p=[];return a=e(a),s=e(s),!function(e,r,i,a,s,o){if(e!==i||r!==a){var l=s.push("translate(",null,t,null,n);o.push({i:l-4,x:eL(e,i)},{i:l-2,x:eL(r,a)})}else(i||a)&&s.push("translate("+i+t+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,h,p),o=a.rotate,l=s.rotate,o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:eL(o,l)})):l&&h.push(i(h)+"rotate("+l+r),c=a.skewX,u=s.skewX,c!==u?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:eL(c,u)}):u&&h.push(i(h)+"skewX("+u+r),!function(e,t,n,r,a,s){if(e!==n||t!==r){var o=a.push(i(a)+"scale(",null,",",null,")");s.push({i:o-4,x:eL(e,n)},{i:o-2,x:eL(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,h,p),a=s=null,function(e){for(var t,n=-1,r=p.length;++n<r;)h[(t=p[n]).i]=t.x(e);return h.join("")}}}var eH=eB(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eP:eF(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eU=eB(function(e){return null==e?eP:(er||(er=document.createElementNS("http://www.w3.org/2000/svg","g")),er.setAttribute("transform",e),e=er.transform.baseVal.consolidate())?eF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eP},", ",")",")");function ej(e,t,n){var r=e._id;return e.each(function(){var e=eO(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eM(e,r).value[t]}}function e$(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ez(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eG(){}var eK="\\s*([+-]?\\d+)\\s*",eY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eq="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eW=/^#([0-9a-f]{3,8})$/,eV=RegExp(`^rgb\\(${eK},${eK},${eK}\\)$`),eX=RegExp(`^rgb\\(${eq},${eq},${eq}\\)$`),eQ=RegExp(`^rgba\\(${eK},${eK},${eK},${eY}\\)$`),eZ=RegExp(`^rgba\\(${eq},${eq},${eq},${eY}\\)$`),eJ=RegExp(`^hsl\\(${eY},${eq},${eq}\\)$`),e0=RegExp(`^hsla\\(${eY},${eq},${eq},${eY}\\)$`),e1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function e2(){return this.rgb().formatHex()}function e3(){return this.rgb().formatRgb()}function e5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?e9(t):3===n?new e7(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?e6(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?e6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=eV.exec(e))?new e7(t[1],t[2],t[3],1):(t=eX.exec(e))?new e7(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eQ.exec(e))?e6(t[1],t[2],t[3],t[4]):(t=eZ.exec(e))?e6(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eJ.exec(e))?ta(t[1],t[2]/100,t[3]/100,1):(t=e0.exec(e))?ta(t[1],t[2]/100,t[3]/100,t[4]):e1.hasOwnProperty(e)?e9(e1[e]):"transparent"===e?new e7(NaN,NaN,NaN,0):null}function e9(e){return new e7(e>>16&255,e>>8&255,255&e,1)}function e6(e,t,n,r){return r<=0&&(e=t=n=NaN),new e7(e,t,n,r)}function e4(e){return(e instanceof eG||(e=e5(e)),e)?new e7((e=e.rgb()).r,e.g,e.b,e.opacity):new e7}function e8(e,t,n,r){return 1==arguments.length?e4(e):new e7(e,t,n,null==r?1:r)}function e7(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}`}function tt(){let e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ti(e){return((e=tr(e))<16?"0":"")+e.toString(16)}function ta(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new to(e,t,n,r)}function ts(e){if(e instanceof to)return new to(e.h,e.s,e.l,e.opacity);if(e instanceof eG||(e=e5(e)),!e)return new to;if(e instanceof to)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,o=a-i,l=(a+i)/2;return o?(s=t===a?(n-r)/o+(n<r)*6:n===a?(r-t)/o+2:(t-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new to(s,o,l,e.opacity)}function to(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tl(e){return(e=(e||0)%360)<0?e+360:e}function tc(e){return Math.max(0,Math.min(1,e||0))}function tu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function th(e,t,n,r,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*n+(1+3*e+3*a-3*s)*r+s*i)/6}e$(eG,e5,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e2,formatHex:e2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ts(this).formatHsl()},formatRgb:e3,toString:e3}),e$(e7,e8,ez(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new e7(tr(this.r),tr(this.g),tr(this.b),tn(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}${ti((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tt,toString:tt})),e$(to,function(e,t,n,r){return 1==arguments.length?ts(e):new to(e,t,n,null==r?1:r)},ez(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new to(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new to(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new e7(tu(e>=240?e-240:e+120,i,r),tu(e,i,r),tu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new to(tl(this.h),tc(this.s),tc(this.l),tn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${tl(this.h)}, ${100*tc(this.s)}%, ${100*tc(this.l)}%${1===e?")":`, ${e})`}`}}));let tp=e=>()=>e;function td(e,t){return function(n){return e+n*t}}function tf(e,t){var n=t-e;return n?td(e,n):tp(isNaN(e)?t:e)}let tm=function e(t){var n,r=1==(n=+t)?tf:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):tp(isNaN(e)?t:e)};function i(e,t){var n=r((e=e8(e)).r,(t=e8(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),s=tf(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function tg(e){return function(t){var n,r,i=t.length,a=Array(i),s=Array(i),o=Array(i);for(n=0;n<i;++n)r=e8(t[n]),a[n]=r.r||0,s[n]=r.g||0,o[n]=r.b||0;return a=e(a),s=e(s),o=e(o),r.opacity=1,function(e){return r.r=a(e),r.g=s(e),r.b=o(e),r+""}}}tg(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],s=r>0?e[r-1]:2*i-a,o=r<t-1?e[r+2]:2*a-i;return th((n-r/t)*t,s,i,a,o)}}),tg(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],s=e[(r+1)%t],o=e[(r+2)%t];return th((n-r/t)*t,i,a,s,o)}});var ty=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=RegExp(ty.source,"g");function t_(e,t){var n,r,i,a,s,o=ty.lastIndex=tb.lastIndex=0,l=-1,c=[],u=[];for(e+="",t+="";(i=ty.exec(e))&&(a=tb.exec(t));)(s=a.index)>o&&(s=t.slice(o,s),c[l]?c[l]+=s:c[++l]=s),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:eL(i,a)})),o=tb.lastIndex;return o<t.length&&(s=t.slice(o),c[l]?c[l]+=s:c[++l]=s),c.length<2?u[0]?(n=u[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})}function tk(e,t){var n;return("number"==typeof t?eL:t instanceof e5?tm:(n=e5(t))?(t=n,tm):t_)(e,t)}var tE=Z.prototype.constructor;function tT(e){return function(){this.style.removeProperty(e)}}var tx=0;function tA(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tw=Z.prototype;tA.prototype=(function(e){return Z().transition(e)}).prototype={constructor:tA,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=d(e));for(var r=this._groups,i=r.length,a=Array(i),s=0;s<i;++s)for(var o,l,c=r[s],u=c.length,h=a[s]=Array(u),p=0;p<u;++p)(o=c[p])&&(l=e.call(o,o.__data__,p,c))&&("__data__"in o&&(l.__data__=o.__data__),h[p]=l,eI(h[p],t,n,p,h,eM(o,n)));return new tA(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=m(e));for(var r=this._groups,i=r.length,a=[],s=[],o=0;o<i;++o)for(var l,c=r[o],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var p,d=e.call(l,l.__data__,h,c),f=eM(l,n),g=0,y=d.length;g<y;++g)(p=d[g])&&eI(p,t,n,g,d,f);a.push(d),s.push(l)}return new tA(a,s,t,n)},selectChild:tw.selectChild,selectChildren:tw.selectChildren,filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new tA(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),s=Array(r),o=0;o<a;++o)for(var l,c=t[o],u=n[o],h=c.length,p=s[o]=Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(p[d]=l);for(;o<r;++o)s[o]=t[o];return new tA(s,this._parents,this._name,this._id)},selection:function(){return new tE(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++tx,r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)if(s=o[c]){var u=eM(s,t);eI(s,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tA(r,this._parents,e,n)},call:tw.call,nodes:tw.nodes,node:tw.node,size:tw.size,empty:tw.empty,each:tw.each,on:function(e,t){var n,r,i,a,s,o,l=this._id;return arguments.length<2?eM(this.node(),l).on.on(e):this.each((n=l,r=e,i=t,o=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eD:eO,function(){var e=o(this,n),t=e.on;t!==a&&(s=(a=t).copy()).on(r,i),e.on=s}))},attr:function(e,t){var n=I(e),r="transform"===n?eU:tk;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}}:function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttribute(e):(s=this.getAttribute(e))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}})(n,r,ej(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===r?i:i=t(r=s,n)}}:function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttribute(e);return s===a?null:s===r?i:i=t(r=s,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=I(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,a,s,o,l,c,u,h,p,d,f,m,g,y,b,_,k,E,T,x,A="transform"==(e+="")?eH:tk;return null==t?this.styleTween(e,(r=e,function(){var e=O(this,r),t=(this.style.removeProperty(r),O(this,r));return e===t?null:e===i&&t===a?s:s=A(i=e,a=t)})).on("end.style."+e,tT(e)):"function"==typeof t?this.styleTween(e,(o=e,l=ej(this,"style."+e,t),function(){var e=O(this,o),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(o),n=t=O(this,o)),e===n?null:e===c&&n===u?h:(u=n,h=A(c=e,t))})).each((p=this._id,_="end."+(b="style."+(d=e)),function(){var e=eO(this,p),t=e.on,n=null==e.value[b]?y||(y=tT(d)):void 0;(t!==f||g!==n)&&(m=(f=t).copy()).on(_,g=n),e.on=m})):this.styleTween(e,(k=e,x=t+"",function(){var e=O(this,k);return e===x?null:e===E?T:T=A(E=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=ej(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eM(this.node(),n).tween,a=0,s=i.length;a<s;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eO(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,o=r.length;s<o;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var a=eO(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}a.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eD(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eD(this,e).delay=t}})(t,e)):eM(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eO(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eO(this,e).duration=t}})(t,e)):eM(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eO(this,e).ease=t}}(t,e)):eM(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eO(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var o={value:s},l={value:function(){0==--i&&a()}};n.each(function(){var n=eO(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),n.on=t}),0===i&&a()})},[Symbol.iterator]:tw[Symbol.iterator]};var tv={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};Z.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,a=e.__transition,s=!0;if(a){for(i in t=null==t?null:t+"",a){if((n=a[i]).name!==t){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}s&&delete e.__transition}}(this,e)})},Z.prototype.transition=function(e){var t,n;e instanceof tA?(t=e._id,e=e._name):(t=++tx,(n=tv).time=ek(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)(s=o[c])&&eI(s,e,t,c,o,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,t));return new tA(r,this._parents,e,t)};let{abs:tS,max:tC,min:tN}=Math;function tI(e){return{type:e}}function tD(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tO(e){return(e=tD(Math.abs(e)))?e[1]:NaN}["w","e"].map(tI),["n","s"].map(tI),["n","w","e","s","nw","ne","sw","se"].map(tI);var tM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tL(e){var t;if(!(t=tM.exec(e)))throw Error("invalid format: "+e);return new tR({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function tR(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function tP(e,t){var n=tD(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tL.prototype=tR.prototype,tR.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let tF={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>tP(100*e,t),r:tP,s:function(e,t){var n=tD(e,t);if(!n)return ei=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ei=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return a===s?r:a>s?r+Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+tD(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tB(e){return e}var tH=Array.prototype.map,tU=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tj(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function t$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=tG)):void 0===t&&(t=tz);for(var n,r,i,a,s,o=new tq(e),l=[o];n=l.pop();)if((i=t(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,a=s-1;a>=0;--a)l.push(r=i[a]=new tq(i[a])),r.parent=n,r.depth=n.depth+1;return o.eachBefore(tY)}function tz(e){return e.children}function tG(e){return Array.isArray(e)?e[1]:null}function tK(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tY(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tq(e){this.data=e,this.depth=this.height=0,this.parent=null}function tW(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}es=(ea=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?tB:(t=tH.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(e.substring(i-=o,i+o)),!((l+=o+1)>r));)o=t[s=(s+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?tB:(r=tH.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e,t){var n=(e=tL(e)).fill,r=e.align,p=e.sign,d=e.symbol,f=e.zero,m=e.width,g=e.comma,y=e.precision,b=e.trim,_=e.type;"n"===_?(g=!0,_="g"):tF[_]||(void 0===y&&(y=12),b=!0,_="g"),(f||"0"===n&&"="===r)&&(f=!0,n="0",r="=");var k=(t&&void 0!==t.prefix?t.prefix:"")+("$"===d?a:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),E=("$"===d?s:/[%p]/.test(_)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),T=tF[_],x=/[defgprs%]/.test(_);function A(e){var t,a,s,c=k,d=E;if("c"===_)d=T(e)+d,e="";else{var A=(e*=1)<0||1/e<0;if(e=isNaN(e)?h:T(Math.abs(e),y),b&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),A&&0==+e&&"+"!==p&&(A=!1),c=(A?"("===p?p:u:"-"===p||"("===p?"":p)+c,d=("s"!==_||isNaN(e)||void 0===ei?"":tU[8+ei/3])+d+(A&&"("===p?")":""),x){for(t=-1,a=e.length;++t<a;)if(48>(s=e.charCodeAt(t))||s>57){d=(46===s?o+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}}g&&!f&&(e=i(e,1/0));var w=c.length+e.length+d.length,v=w<m?Array(m-w+1).join(n):"";switch(g&&f&&(e=i(v+e,v.length?m-d.length:1/0),v=""),r){case"<":e=c+e+d+v;break;case"=":e=c+v+e+d;break;case"^":e=v.slice(0,w=v.length>>1)+c+e+d+v.slice(w);break;default:e=v+c+e+d}return l(e)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return e+""},A}return{format:p,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(tO(t)/3))),r=Math.pow(10,-n),i=p(((e=tL(e)).type="f",e),{suffix:tU[8+n/3]});return function(e){return i(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,eo=ea.formatPrefix,tq.prototype=t$.prototype={constructor:tq,count:function(){return this.eachAfter(tj)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,s=[a],o=[],l=-1;a=s.pop();)if(o.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;a=o.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],s=-1;i=a.pop();)if(e.call(t,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return t$(this).eachBefore(tK)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}};let tV=function e(t){function n(e,n,r,i,a){!function(e,t,n,r,i,a){for(var s,o,l,c,u,h,p,d,f,m,g,y=[],b=t.children,_=0,k=0,E=b.length,T=t.value;_<E;){l=i-n,c=a-r;do u=b[k++].value;while(!u&&k<E);for(h=p=u,f=Math.max(p/(g=u*u*(m=Math.max(c/l,l/c)/(T*e))),g/h);k<E;++k){if(u+=o=b[k].value,o<h&&(h=o),o>p&&(p=o),(d=Math.max(p/(g=u*u*m),g/h))>f){u-=o;break}f=d}y.push(s={value:u,dice:l<c,children:b.slice(_,k)}),s.dice?function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)(a=s[o]).y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}(s,n,r,i,T?r+=c*u/T:a):function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)(a=s[o]).x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}(s,n,r,T?n+=l*u/T:i,a),T-=u,_=k}}(t,e,n,r,i,a)}return n.ratio=function(t){return e((t*=1)>1?t:1)},n}((1+Math.sqrt(5))/2);function tX(){return 0}function tQ(e){return function(){return e}}function tZ(){var e=tV,t=!1,n=1,r=1,i=[0],a=tX,s=tX,o=tX,l=tX,c=tX;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(tW),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,p=t.y1-n;h<r&&(r=h=(r+h)/2),p<u&&(u=p=(u+p)/2),t.x0=r,t.y0=u,t.x1=h,t.y1=p,t.children&&(n=i[t.depth+1]=a(t)/2,r+=c(t)-n,u+=s(t)-n,h-=o(t)-n,p-=l(t)-n,h<r&&(r=h=(r+h)/2),p<u&&(u=p=(u+p)/2),e(t,r,u,h,p))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:tQ(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:tQ(+e),u):s},u.paddingRight=function(e){return arguments.length?(o="function"==typeof e?e:tQ(+e),u):o},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:tQ(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:tQ(+e),u):c},u}let tJ=Math.PI/180,t0=180/Math.PI,t1=4/29,t2=6/29,t3=6/29*3*(6/29),t5=6/29*(6/29)*(6/29);function t9(e){if(e instanceof t6)return new t6(e.l,e.a,e.b,e.opacity);if(e instanceof nn)return nr(e);e instanceof e7||(e=e4(e));var t,n,r=ne(e.r),i=ne(e.g),a=ne(e.b),s=t4((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=s:(t=t4((.4360747*r+.3850649*i+.1430804*a)/.96422),n=t4((.0139322*r+.0971045*i+.7141733*a)/.82521)),new t6(116*s-16,500*(t-s),200*(s-n),e.opacity)}function t6(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function t4(e){return e>t5?Math.pow(e,1/3):e/t3+t1}function t8(e){return e>t2?e*e*e:t3*(e-t1)}function t7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ne(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nn)return new nn(e.h,e.c,e.l,e.opacity);if(e instanceof t6||(e=t9(e)),0===e.a&&0===e.b)return new nn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*t0;return new nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nn(e,t,n,null==r?1:r)}function nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nr(e){if(isNaN(e.h))return new t6(e.l,0,0,e.opacity);var t=e.h*tJ;return new t6(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function ni(e){return function(t,n){var r=e((t=nt(t)).h,(n=nt(n)).h),i=tf(t.c,n.c),a=tf(t.l,n.l),s=tf(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=s(e),t+""}}}e$(t6,function(e,t,n,r){return 1==arguments.length?t9(e):new t6(e,t,n,null==r?1:r)},ez(eG,{brighter(e){return new t6(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new t6(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*t8(t),new e7(t7(3.1338561*t-1.6168667*(e=+t8(e))-.4906146*(n=.82521*t8(n))),t7(-.9787684*t+1.9161415*e+.033454*n),t7(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),e$(nn,nt,ez(eG,{brighter(e){return new nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nr(this).rgb()}}));let na=ni(function(e,t){var n=t-e;return n?td(e,n>180||n<-180?n-360*Math.round(n/360):n):tp(isNaN(e)?t:e)});function ns(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}ni(tf);class no extends Map{constructor(e,t=nc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(nl(this,e))}has(e){return super.has(nl(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function nl({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function nc(e){return null!==e&&"object"==typeof e?e.valueOf():e}let nu=Symbol("implicit");function nh(){var e=new no,t=[],n=[],r=nu;function i(i){let a=e.get(i);if(void 0===a){if(r!==nu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new no,n))e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return nh(t,n).unknown(r)},ns.apply(i,arguments),i}let np=Math.sqrt(50),nd=Math.sqrt(10),nf=Math.sqrt(2);function nm(e,t,n){let r,i,a,s=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(s)),l=s/Math.pow(10,o),c=l>=np?10:l>=nd?5:l>=nf?2:1;return(o<0?(r=Math.round(e*(a=Math.pow(10,-o)/c)),i=Math.round(t*a),r/a<e&&++r,i/a>t&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,o)*c)),i=Math.round(t/a),r*a<e&&++r,i*a>t&&--i),i<r&&.5<=n&&n<2)?nm(e,t,2*n):[r,i,a]}function ng(e,t,n){return nm(e*=1,t*=1,n*=1)[2]}function ny(e,t,n){t*=1,e*=1,n*=1;let r=t<e,i=r?ng(t,e,n):ng(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}function nb(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function n_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nk(e){let t,n,r;function i(e,r,a=0,s=e.length){if(a<s){if(0!==t(r,r))return s;do{let t=a+s>>>1;0>n(e[t],r)?a=t+1:s=t}while(a<s)}return a}return 2!==e.length?(t=nb,n=(t,n)=>nb(e(t),n),r=(t,n)=>e(t)-n):(t=e===nb||e===n_?e:nE,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let s=i(e,t,n,a-1);return s>n&&r(e[s-1],t)>-r(e[s],t)?s-1:s},right:function(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{let t=i+a>>>1;0>=n(e[t],r)?i=t+1:a=t}while(i<a)}return i}}}function nE(){return 0}let nT=nk(nb),nx=nT.right;nT.left,nk(function(e){return null===e?NaN:+e}).center;function nA(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}function nw(e){return+e}var nv=[0,1];function nS(e){return e}function nC(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function nN(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=nC(i,r),a=n(s,a)):(r=nC(r,i),a=n(a,s)),function(e){return a(r(e))}}function nI(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=nC(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=nx(e,t,1,r)-1;return a[n](i[n](t))}}function nD(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nO(){return(function(){var e,t,n,r,i,a,s=nv,o=nv,l=function e(t,n){var r,i,a=typeof n;return null==n||"boolean"===a?tp(n):("number"===a?eL:"string"===a?(i=e5(n))?(n=i,tm):t_:n instanceof e5?tm:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(t,n){var r,i=n?n.length:0,a=t?Math.min(i,t.length):0,s=Array(a),o=Array(i);for(r=0;r<a;++r)s[r]=e(t[r],n[r]);for(;r<i;++r)o[r]=n[r];return function(e){for(r=0;r<a;++r)o[r]=s[r](e);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var r,i={},a={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)r in t?i[r]=e(t[r],n[r]):a[r]=n[r];return function(e){for(r in i)a[r]=i[r](e);return a}}:eL:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}})(t,n)},c=nS;function u(){var e,t,n,l=Math.min(s.length,o.length);return c!==nS&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nI:nN,i=a=null,h}function h(t){return null==t||isNaN(t*=1)?n:(i||(i=r(s.map(e),o,l)))(e(c(t)))}return h.invert=function(n){return c(t((a||(a=r(o,s.map(e),eL)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,nw),u()):s.slice()},h.range=function(e){return arguments.length?(o=Array.from(e),u()):o.slice()},h.rangeRound=function(e){return o=Array.from(e),l=nA,u()},h.clamp=function(e){return arguments.length?(c=!!e||nS,u()):c!==nS},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}})()(nS,nS)}let nM=new Date,nL=new Date;function nR(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>nR(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(nM.setTime(+t),nL.setTime(+r),e(nM),e(nL),Math.floor(n(nM,nL))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let nP=nR(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nP.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?nR(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nP:null,nP.range;let nF=nR(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());nF.range;let nB=nR(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());nB.range;let nH=nR(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());nH.range;let nU=nR(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());nU.range;let nj=nR(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());nj.range;let n$=nR(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);n$.range;let nz=nR(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);nz.range;let nG=nR(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function nK(e){return nR(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}nG.range;let nY=nK(0),nq=nK(1),nW=nK(2),nV=nK(3),nX=nK(4),nQ=nK(5),nZ=nK(6);function nJ(e){return nR(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}nY.range,nq.range,nW.range,nV.range,nX.range,nQ.range,nZ.range;let n0=nJ(0),n1=nJ(1),n2=nJ(2),n3=nJ(3),n5=nJ(4),n9=nJ(5),n6=nJ(6);n0.range,n1.range,n2.range,n3.range,n5.range,n9.range,n6.range;let n4=nR(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());n4.range;let n8=nR(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());n8.range;let n7=nR(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());n7.every=e=>isFinite(e=Math.floor(e))&&e>0?nR(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,n7.range;let re=nR(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rt(e,t,n,r,i,a){let s=[[nF,1,1e3],[nF,5,5e3],[nF,15,15e3],[nF,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function o(t,n,r){let i=Math.abs(n-t)/r,a=nk(([,,e])=>e).right(s,i);if(a===s.length)return e.every(ny(t/31536e6,n/31536e6,r));if(0===a)return nP.every(Math.max(ny(t,n,r),1));let[o,l]=s[i/s[a-1][2]<s[a][2]/i?a-1:a];return o.every(l)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:o(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},o]}re.every=e=>isFinite(e=Math.floor(e))&&e>0?nR(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,re.range;let[rn,rr]=rt(re,n8,n0,nG,nj,nH),[ri,ra]=rt(n7,n4,nY,n$,nU,nB);function rs(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ro(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rc={"-":"",_:" ",0:"0"},ru=/^\s*\d+/,rh=/^%/,rp=/[\\^$*+?|[\]().{}]/g;function rd(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function rf(e){return e.replace(rp,"\\$&")}function rm(e){return RegExp("^(?:"+e.map(rf).join("|")+")","i")}function rg(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ry(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rb(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function r_(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function rk(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rT(e,t,n){var r=ru.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rA(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rw(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rv(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rS(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rC(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rI(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rD(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rO(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rM(e,t,n){var r=ru.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rL(e,t,n){var r=rh.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rR(e,t,n){var r=ru.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rP(e,t,n){var r=ru.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rF(e,t){return rd(e.getDate(),t,2)}function rB(e,t){return rd(e.getHours(),t,2)}function rH(e,t){return rd(e.getHours()%12||12,t,2)}function rU(e,t){return rd(1+n$.count(n7(e),e),t,3)}function rj(e,t){return rd(e.getMilliseconds(),t,3)}function r$(e,t){return rj(e,t)+"000"}function rz(e,t){return rd(e.getMonth()+1,t,2)}function rG(e,t){return rd(e.getMinutes(),t,2)}function rK(e,t){return rd(e.getSeconds(),t,2)}function rY(e){var t=e.getDay();return 0===t?7:t}function rq(e,t){return rd(nY.count(n7(e)-1,e),t,2)}function rW(e){var t=e.getDay();return t>=4||0===t?nX(e):nX.ceil(e)}function rV(e,t){return e=rW(e),rd(nX.count(n7(e),e)+(4===n7(e).getDay()),t,2)}function rX(e){return e.getDay()}function rQ(e,t){return rd(nq.count(n7(e)-1,e),t,2)}function rZ(e,t){return rd(e.getFullYear()%100,t,2)}function rJ(e,t){return rd((e=rW(e)).getFullYear()%100,t,2)}function r0(e,t){return rd(e.getFullYear()%1e4,t,4)}function r1(e,t){var n=e.getDay();return rd((e=n>=4||0===n?nX(e):nX.ceil(e)).getFullYear()%1e4,t,4)}function r2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rd(t/60|0,"0",2)+rd(t%60,"0",2)}function r3(e,t){return rd(e.getUTCDate(),t,2)}function r5(e,t){return rd(e.getUTCHours(),t,2)}function r9(e,t){return rd(e.getUTCHours()%12||12,t,2)}function r6(e,t){return rd(1+nz.count(re(e),e),t,3)}function r4(e,t){return rd(e.getUTCMilliseconds(),t,3)}function r8(e,t){return r4(e,t)+"000"}function r7(e,t){return rd(e.getUTCMonth()+1,t,2)}function ie(e,t){return rd(e.getUTCMinutes(),t,2)}function it(e,t){return rd(e.getUTCSeconds(),t,2)}function ir(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return rd(n0.count(re(e)-1,e),t,2)}function ia(e){var t=e.getUTCDay();return t>=4||0===t?n5(e):n5.ceil(e)}function is(e,t){return e=ia(e),rd(n5.count(re(e),e)+(4===re(e).getUTCDay()),t,2)}function io(e){return e.getUTCDay()}function il(e,t){return rd(n1.count(re(e)-1,e),t,2)}function ic(e,t){return rd(e.getUTCFullYear()%100,t,2)}function iu(e,t){return rd((e=ia(e)).getUTCFullYear()%100,t,2)}function ih(e,t){return rd(e.getUTCFullYear()%1e4,t,4)}function ip(e,t){var n=e.getUTCDay();return rd((e=n>=4||0===n?n5(e):n5.ceil(e)).getUTCFullYear()%1e4,t,4)}function id(){return"+0000"}function im(){return"%"}function ig(e){return+e}function iy(e){return Math.floor(e/1e3)}function ib(e){return new Date(e)}function i_(e){return e instanceof Date?+e:+new Date(+e)}function ik(){return ns.apply((function e(t,n,r,i,a,s,o,l,c,u){var h=nO(),p=h.invert,d=h.domain,f=u(".%L"),m=u(":%S"),g=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),_=u("%b %d"),k=u("%B"),E=u("%Y");function T(e){return(c(e)<e?f:l(e)<e?m:o(e)<e?g:s(e)<e?y:i(e)<e?a(e)<e?b:_:r(e)<e?k:E)(e)}return h.invert=function(e){return new Date(p(e))},h.domain=function(e){return arguments.length?d(Array.from(e,i_)):d().map(ib)},h.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},h.tickFormat=function(e,t){return null==t?T:u(t)},h.nice=function(e){var t,r,i,a,s,o,l,c=d();return e&&"function"==typeof e.range||(e=n(c[0],c[c.length-1],null==e?10:e)),e?d((t=c,r=e,t=t.slice(),a=0,s=t.length-1,o=t[a],(l=t[s])<o&&(i=a,a=s,s=i,i=o,o=l,l=i),t[a]=r.floor(o),t[s]=r.ceil(l),t)):h},h.copy=function(){return nD(h,e(t,n,r,i,a,s,o,l,c,u))},h})(ri,ra,n7,n4,nY,n$,nU,nB,nF,ec).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ec=(el=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=rm(i),u=rg(i),h=rm(a),p=rg(a),d=rm(s),f=rg(s),m=rm(o),g=rg(o),y=rm(l),b=rg(l),_={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:rF,e:rF,f:r$,g:rJ,G:r1,H:rB,I:rH,j:rU,L:rj,m:rz,M:rG,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ig,s:iy,S:rK,u:rY,U:rq,V:rV,w:rX,W:rQ,x:null,X:null,y:rZ,Y:r0,Z:r2,"%":im},k={a:function(e){return s[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:r3,e:r3,f:r8,g:iu,G:ip,H:r5,I:r9,j:r6,L:r4,m:r7,M:ie,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ig,s:iy,S:it,u:ir,U:ii,V:is,w:io,W:il,x:null,X:null,y:ic,Y:ih,Z:id,"%":im},E={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:rS,e:rS,f:rM,g:rx,G:rT,H:rN,I:rN,j:rC,L:rO,m:rv,M:rI,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:rw,Q:rR,s:rP,S:rD,u:rb,U:r_,V:rk,w:ry,W:rE,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:rx,Y:rT,Z:rA,"%":rL};function T(e,t){return function(n){var r,i,a,s=[],o=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(l,o)),null!=(i=rc[r=e.charAt(++o)])?r=e.charAt(++o):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),s.push(r),l=o+1);return s.push(e.slice(l,o)),s.join("")}}function x(e,t){return function(n){var r,i,a=rl(1900,void 0,1);if(A(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!t||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=ro(rl(a.y,0,1))).getUTCDay())>4||0===i?n1.ceil(r):n1(r),r=nz.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=rs(rl(a.y,0,1))).getDay())>4||0===i?nq.ceil(r):nq(r),r=n$.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ro(rl(a.y,0,1)).getUTCDay():rs(rl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ro(a)):rs(a)}}function A(e,t,n,r){for(var i,a,s=0,o=t.length,l=n.length;s<o;){if(r>=l)return -1;if(37===(i=t.charCodeAt(s++))){if(!(a=E[(i=t.charAt(s++))in rc?t.charAt(s++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return _.x=T(n,_),_.X=T(r,_),_.c=T(t,_),k.x=T(n,k),k.X=T(r,k),k.c=T(t,k),{format:function(e){var t=T(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=T(e+="",k);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,el.parse,el.utcFormat,el.utcParse;let iE=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function iT(e){return"string"==typeof e?new Q([[document.querySelector(e)]],[document.documentElement]):new Q([[e]],X)}function ix(e){return function(){return e}}let iA=Math.abs,iw=Math.atan2,iv=Math.cos,iS=Math.max,iC=Math.min,iN=Math.sin,iI=Math.sqrt,iD=Math.PI,iO=iD/2,iM=2*iD;function iL(e){return e>=1?iO:e<=-1?-iO:Math.asin(e)}let iR=Math.PI,iP=2*iR,iF=iP-1e-6;function iB(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class iH{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?iB:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return iB;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e*=1,t*=1,n*=1,r*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,o=n-e,l=r-t,c=a-e,u=s-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>1e-6)if(Math.abs(u*o-l*c)>1e-6&&i){let p=n-a,d=r-s,f=o*o+l*l,m=Math.sqrt(f),g=Math.sqrt(h),y=i*Math.tan((iR-Math.acos((f+h-(p*p+d*d))/(2*m*g)))/2),b=y/g,_=y/m;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*p>c*d)},${this._x1=e+_*o},${this._y1=t+_*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e*=1,t*=1,n*=1,a=!!a,n<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(r),o=n*Math.sin(r),l=e+s,c=t+o,u=1^a,h=a?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%iP+iP),h>iF?this._append`A${n},${n},0,1,${u},${e-s},${t-o}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=iR)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function iU(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new iH(t)}function ij(e){return e.innerRadius}function i$(e){return e.outerRadius}function iz(e){return e.startAngle}function iG(e){return e.endAngle}function iK(e){return e&&e.padAngle}function iY(e,t,n,r,i,a,s){var o=e-n,l=t-r,c=(s?a:-a)/iI(o*o+l*l),u=c*l,h=-c*o,p=e+u,d=t+h,f=n+u,m=r+h,g=(p+f)/2,y=(d+m)/2,b=f-p,_=m-d,k=b*b+_*_,E=i-a,T=p*m-f*d,x=(_<0?-1:1)*iI(iS(0,E*E*k-T*T)),A=(T*_-b*x)/k,w=(-T*b-_*x)/k,v=(T*_+b*x)/k,S=(-T*b+_*x)/k,C=A-g,N=w-y,I=v-g,D=S-y;return C*C+N*N>I*I+D*D&&(A=v,w=S),{cx:A,cy:w,x01:-u,y01:-h,x11:A*(i/E-1),y11:w*(i/E-1)}}function iq(){var e=ij,t=i$,n=ix(0),r=null,i=iz,a=iG,s=iK,o=null,l=iU(c);function c(){var c,u,h=+e.apply(this,arguments),p=+t.apply(this,arguments),d=i.apply(this,arguments)-iO,f=a.apply(this,arguments)-iO,m=iA(f-d),g=f>d;if(o||(o=c=l()),p<h&&(u=p,p=h,h=u),p>1e-12)if(m>iM-1e-12)o.moveTo(p*iv(d),p*iN(d)),o.arc(0,0,p,d,f,!g),h>1e-12&&(o.moveTo(h*iv(f),h*iN(f)),o.arc(0,0,h,f,d,g));else{var y,b,_=d,k=f,E=d,T=f,x=m,A=m,w=s.apply(this,arguments)/2,v=w>1e-12&&(r?+r.apply(this,arguments):iI(h*h+p*p)),S=iC(iA(p-h)/2,+n.apply(this,arguments)),C=S,N=S;if(v>1e-12){var I=iL(v/h*iN(w)),D=iL(v/p*iN(w));(x-=2*I)>1e-12?(I*=g?1:-1,E+=I,T-=I):(x=0,E=T=(d+f)/2),(A-=2*D)>1e-12?(D*=g?1:-1,_+=D,k-=D):(A=0,_=k=(d+f)/2)}var O=p*iv(_),M=p*iN(_),L=h*iv(T),R=h*iN(T);if(S>1e-12){var P,F=p*iv(k),B=p*iN(k),H=h*iv(E),U=h*iN(E);if(m<iD)if(P=function(e,t,n,r,i,a,s,o){var l=n-e,c=r-t,u=s-i,h=o-a,p=h*l-u*c;if(!(p*p<1e-12))return p=(u*(t-a)-h*(e-i))/p,[e+p*l,t+p*c]}(O,M,H,U,F,B,L,R)){var j,$=O-P[0],z=M-P[1],G=F-P[0],K=B-P[1],Y=1/iN(((j=($*G+z*K)/(iI($*$+z*z)*iI(G*G+K*K)))>1?0:j<-1?iD:Math.acos(j))/2),q=iI(P[0]*P[0]+P[1]*P[1]);C=iC(S,(h-q)/(Y-1)),N=iC(S,(p-q)/(Y+1))}else C=N=0}A>1e-12?N>1e-12?(y=iY(H,U,O,M,p,N,g),b=iY(F,B,L,R,p,N,g),o.moveTo(y.cx+y.x01,y.cy+y.y01),N<S?o.arc(y.cx,y.cy,N,iw(y.y01,y.x01),iw(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,N,iw(y.y01,y.x01),iw(y.y11,y.x11),!g),o.arc(0,0,p,iw(y.cy+y.y11,y.cx+y.x11),iw(b.cy+b.y11,b.cx+b.x11),!g),o.arc(b.cx,b.cy,N,iw(b.y11,b.x11),iw(b.y01,b.x01),!g))):(o.moveTo(O,M),o.arc(0,0,p,_,k,!g)):o.moveTo(O,M),h>1e-12&&x>1e-12?C>1e-12?(y=iY(L,R,F,B,h,-C,g),b=iY(O,M,H,U,h,-C,g),o.lineTo(y.cx+y.x01,y.cy+y.y01),C<S?o.arc(y.cx,y.cy,C,iw(y.y01,y.x01),iw(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,C,iw(y.y01,y.x01),iw(y.y11,y.x11),!g),o.arc(0,0,h,iw(y.cy+y.y11,y.cx+y.x11),iw(b.cy+b.y11,b.cx+b.x11),g),o.arc(b.cx,b.cy,C,iw(b.y11,b.x11),iw(b.y01,b.x01),!g))):o.arc(0,0,h,T,E,g):o.lineTo(L,R)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iD/2;return[iv(r)*n,iN(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ix(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ix(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ix(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ix(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:ix(+e),c):i},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:ix(+e),c):a},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:ix(+e),c):s},c.context=function(e){return arguments.length?(o=null==e?null:e,c):o},c}function iW(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function iV(e){this._context=e}function iX(e){return new iV(e)}function iQ(e){return e[0]}function iZ(e){return e[1]}function iJ(e,t){var n=ix(!0),r=null,i=iX,a=null,s=iU(o);function o(o){var l,c,u,h=(o=iW(o)).length,p=!1;for(null==r&&(a=i(u=s())),l=0;l<=h;++l)!(l<h&&n(c=o[l],l,o))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(c,l,o),+t(c,l,o));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?iQ:ix(e),t="function"==typeof t?t:void 0===t?iZ:ix(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:ix(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:ix(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:ix(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o}function i0(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function i1(e){return e}function i2(){var e=i1,t=i0,n=null,r=ix(0),i=ix(iM),a=ix(0);function s(s){var o,l,c,u,h,p=(s=iW(s)).length,d=0,f=Array(p),m=Array(p),g=+r.apply(this,arguments),y=Math.min(iM,Math.max(-iM,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/p,a.apply(this,arguments)),_=b*(y<0?-1:1);for(o=0;o<p;++o)(h=m[f[o]=o]=+e(s[o],o,s))>0&&(d+=h);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(s[e],s[t])}),o=0,c=d?(y-p*_)/d:0;o<p;++o,g=u)u=g+((h=m[l=f[o]])>0?h*c:0)+_,m[l]={data:s[l],index:o,value:h,startAngle:g,endAngle:u,padAngle:b};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:ix(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ix(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ix(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:ix(+e),s):a},s}function i3(){}function i5(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i9(e){this._context=e}function i6(e){return new i9(e)}function i4(e){this._context=e}function i8(e){return new i4(e)}function i7(e){this._context=e}function ae(e){return new i7(e)}iH.prototype,Array.prototype.slice,iV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},i9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i4.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class at{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function an(e){return new at(e,!0)}function ar(e){return new at(e,!1)}function ai(e,t){this._basis=new i9(e),this._beta=t}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],s=e[n]-i,o=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(a+r*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let aa=function e(t){function n(e){return 1===t?new i9(e):new ai(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function as(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ao(e,t){this._context=e,this._k=(1-t)/6}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:as(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let al=function e(t){function n(e){return new ao(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ac(e,t){this._context=e,this._k=(1-t)/6}ac.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let au=function e(t){function n(e){return new ac(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ah(e,t){this._context=e,this._k=(1-t)/6}ah.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ap=function e(t){function n(e){return new ah(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ad(e,t,n){var r=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>1e-12){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,s,e._x2,e._y2)}function af(e,t){this._context=e,this._alpha=t}af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ad(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let am=function e(t){function n(e){return t?new af(e,t):new ao(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ag(e,t){this._context=e,this._alpha=t}ag.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ad(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ay=function e(t){function n(e){return t?new ag(e,t):new ac(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ab(e,t){this._context=e,this._alpha=t}ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ad(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let a_=function e(t){function n(e){return t?new ab(e,t):new ah(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ak(e){this._context=e}function aE(e){return new ak(e)}function aT(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs((a*i+s*r)/(r+i)))||0}function ax(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aA(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-r)/3;e._context.bezierCurveTo(r+o,i+o*t,a-o,s-o*n,a,s)}function aw(e){this._context=e}function av(e){this._context=new aS(e)}function aS(e){this._context=e}function aC(e){return new aw(e)}function aN(e){return new av(e)}function aI(e){this._context=e}function aD(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),s=Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function aO(e){return new aI(e)}function aM(e,t){this._context=e,this._t=t}function aL(e){return new aM(e,.5)}function aR(e){return new aM(e,0)}function aP(e){return new aM(e,1)}function aF(e,t,n){this.k=e,this.x=t,this.y=n}ak.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aA(this,this._t0,ax(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,aA(this,ax(this,n=aT(this,e,t)),n);break;default:aA(this,this._t0,n=aT(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(av.prototype=Object.create(aw.prototype)).point=function(e,t){aw.prototype.point.call(this,t,e)},aS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},aI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=aD(e),i=aD(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},aF.prototype={constructor:aF,scale:function(e){return 1===e?this:new aF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new aF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aF(1,0,0);aF.prototype},36088:e=>{function t(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r./.test(e);)e=e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,t,n){return n+t.slice(n.length)});return e}function n(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),n=[];t.length>0;){var r=function(e){for(var t=0,n=0;n<e.length;n++)e[t].length<=e[n].length&&(t=n);return t}(t);n.push(t[r]),t=t.slice(r+1)}return n.join("\r")}e.exports=t,e.exports.escapeCarriageReturn=t,e.exports.escapeCarriageReturnSafe=function(e){if(!e)return"";if(!/\r/.test(e))return e;if(!/\n/.test(e))return n(e);var r=(e=e.replace(/\r+\n/gm,"\n")).lastIndexOf("\n");return t(e.slice(0,r))+"\n"+n(e.slice(r+1))}},36887:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},38033:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,X:()=>o});var r=n(32563),i=n(97096),a=n(32165),s=(0,a.K2)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},"getSubGraphTitleMargins");async function o(e,t){let n=e.getElementsByTagName("img");if(!n||0===n.length)return;let s=""===t.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map(e=>new Promise(t=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",s){let t=(0,i.D7)().fontSize?(0,i.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[n=i.UI.fontSize]=(0,r.I5)(t),a=5*n+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";t(e)}(0,a.K2)(n,"setupImage"),setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}(0,a.K2)(o,"configureLabelImages")},38609:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(49339),i=n(38635),a=n(68289);let s=/[A-Z]/g,o=/-[a-z]/g,l=/^data[-\w.:]+$/i;function c(e,t){let n=(0,a.S)(t),c=t,p=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(o,h);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(s,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=r.E}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},38635:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},39326:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(t=arguments[p],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},o(h,{name:n,newValue:e(f,u,i)})):void 0!==i&&o(h,{name:n,newValue:i}));return h}},41161:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},42112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;let a=(n/=100)<.5?n*(1+t):n+t-n*t,s=2*n-a;switch(i){case"r":return 255*r.hue2rgb(s,a,e+1/3);case"g":return 255*r.hue2rgb(s,a,e);case"b":return 255*r.hue2rgb(s,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{let i=Math.max(e/=255,t/=255,n/=255),a=Math.min(e,t,n),s=(i+a)/2;if("l"===r)return 100*s;if(i===a)return 0;let o=i-a;if("s"===r)return 100*(s>.5?o/(2-i-a):o/(i+a));switch(i){case e:return((t-n)/o+6*(t<n))*60;case t:return((n-e)/o+2)*60;case n:return((e-t)/o+4)*60;default:return -1}}},i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},43328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nO});var r=n(21354),i=n(14759),a=n(3628);n(72475),n(85774),n(63886),n(38033),n(17541);var s=n(88774),o=n(32563),l=n(97096),c=n(32165),u=n(90676),h=n(33948),p="comm",d="rule",f="decl",m="@keyframes",g="@layer",y=Math.abs,b=String.fromCharCode;function _(e,t,n){return e.replace(t,n)}function k(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function T(e){return e.length}function x(e,t){return t.push(e),e}function A(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function w(e,t,n,r){switch(e.type){case g:if(e.children.length)break;case"@import":case"@namespace":case f:return e.return=e.return||e.value;case p:return"";case m:return e.return=e.value+"{"+A(e.children,r)+"}";case d:if(!T(e.value=e.props.join(",")))return""}return T(n=A(e.children,r))?e.return=e.value+"{"+n+"}":""}var v=1,S=1,C=0,N=0,I=0,D="";function O(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:v,column:S,length:s,return:"",siblings:o}}function M(){return I=N<C?k(D,N++):0,S++,10===I&&(S=1,v++),I}function L(){return k(D,N)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(e){var t,n;return(t=N-1,n=function e(t){for(;M();)switch(I){case t:return N;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:M()}return N}(91===e?e+2:40===e?e+1:e),E(D,t,n)).trim()}function F(e,t,n,r,i,a,s,o,l,c,u,h){for(var p=i-1,f=0===i?a:[""],m=f.length,g=0,b=0,k=0;g<r;++g)for(var T=0,x=E(e,p+1,p=y(b=s[g])),A=e;T<m;++T)(A=(b>0?f[T]+" "+x:_(x,/&\f/g,f[T])).trim())&&(l[k++]=A);return O(e,t,n,0===i?d:o,l,c,u,h)}function B(e,t,n,r,i){return O(e,t,n,f,E(e,0,r),E(e,r+1,-1),r,i)}var H=n(91992),U=n(87789),j=n(9101),$=n(32174),z=n(95683);function G(e){if(null==e)return!0;if((0,j.X)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,U.P)(e)||!!(0,z.i)(e)||!!(0,$.N)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var K={id:"c4",detector:(0,c.K2)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await n.e(3837).then(n.bind(n,83837));return{id:"c4",diagram:e}},"loader")},Y="flowchart",q=(0,c.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),W=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:Y,diagram:e}},"loader"),V={id:Y,detector:q,loader:W},X="flowchart-v2",Q=(0,c.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),Z=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:X,diagram:e}},"loader"),J={id:X,detector:Q,loader:Z},ee={id:"er",detector:(0,c.K2)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await n.e(3325).then(n.bind(n,23325));return{id:"er",diagram:e}},"loader")},et="gitGraph",en=(0,c.K2)(e=>/^\s*gitGraph/.test(e),"detector"),er=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7959)]).then(n.bind(n,77959));return{id:et,diagram:e}},"loader"),ei={id:et,detector:en,loader:er},ea="gantt",es=(0,c.K2)(e=>/^\s*gantt/.test(e),"detector"),eo=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2623).then(n.bind(n,52623));return{id:ea,diagram:e}},"loader"),el={id:ea,detector:es,loader:eo},ec="info",eu=(0,c.K2)(e=>/^\s*info/.test(e),"detector"),eh=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(498)]).then(n.bind(n,70498));return{id:ec,diagram:e}},"loader"),ep={id:ec,detector:eu,loader:eh},ed={id:"pie",detector:(0,c.K2)(e=>/^\s*pie/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(83)]).then(n.bind(n,70083));return{id:"pie",diagram:e}},"loader")},ef="quadrantChart",em=(0,c.K2)(e=>/^\s*quadrantChart/.test(e),"detector"),eg=(0,c.K2)(async()=>{let{diagram:e}=await n.e(6922).then(n.bind(n,36922));return{id:ef,diagram:e}},"loader"),ey={id:ef,detector:em,loader:eg},eb="xychart",e_=(0,c.K2)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),ek=(0,c.K2)(async()=>{let{diagram:e}=await n.e(8013).then(n.bind(n,20394));return{id:eb,diagram:e}},"loader"),eE={id:eb,detector:e_,loader:ek},eT="requirement",ex=(0,c.K2)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),eA=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3079).then(n.bind(n,73079));return{id:eT,diagram:e}},"loader"),ew={id:eT,detector:ex,loader:eA},ev="sequence",eS=(0,c.K2)(e=>/^\s*sequenceDiagram/.test(e),"detector"),eC=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(4954),n.e(1960)]).then(n.bind(n,36346));return{id:ev,diagram:e}},"loader"),eN={id:ev,detector:eS,loader:eC},eI="class",eD=(0,c.K2)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),eO=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5567),n.e(5074)]).then(n.bind(n,85074));return{id:eI,diagram:e}},"loader"),eM={id:eI,detector:eD,loader:eO},eL="classDiagram",eR=(0,c.K2)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),eP=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5567),n.e(5034)]).then(n.bind(n,75034));return{id:eL,diagram:e}},"loader"),eF={id:eL,detector:eR,loader:eP},eB="state",eH=(0,c.K2)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),eU=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(2821),n.e(6121),n.e(5749),n.e(3997)]).then(n.bind(n,53997));return{id:eB,diagram:e}},"loader"),ej={id:eB,detector:eH,loader:eU},e$="stateDiagram",ez=(0,c.K2)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eG=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5749),n.e(7343)]).then(n.bind(n,27343));return{id:e$,diagram:e}},"loader"),eK={id:e$,detector:ez,loader:eG},eY="journey",eq=(0,c.K2)(e=>/^\s*journey/.test(e),"detector"),eW=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3274).then(n.bind(n,43274));return{id:eY,diagram:e}},"loader"),eV={id:eY,detector:eq,loader:eW},eX={draw:(0,c.K2)((e,t,n)=>{c.Rm.debug("rendering svg for syntax error\n");let i=(0,r.D)(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},eQ={db:{},renderer:eX,parser:{parse:(0,c.K2)(()=>{},"parse")}},eZ="flowchart-elk",eJ=(0,c.K2)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),e0=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:eZ,diagram:e}},"loader"),e1={id:eZ,detector:eJ,loader:e0},e2="timeline",e3=(0,c.K2)(e=>/^\s*timeline/.test(e),"detector"),e5=(0,c.K2)(async()=>{let{diagram:e}=await n.e(1413).then(n.bind(n,21413));return{id:e2,diagram:e}},"loader"),e9={id:e2,detector:e3,loader:e5},e6="mindmap",e4=(0,c.K2)(e=>/^\s*mindmap/.test(e),"detector"),e8=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3506).then(n.bind(n,3506));return{id:e6,diagram:e}},"loader"),e7={id:e6,detector:e4,loader:e8},te="kanban",tt=(0,c.K2)(e=>/^\s*kanban/.test(e),"detector"),tn=(0,c.K2)(async()=>{let{diagram:e}=await n.e(7547).then(n.bind(n,67547));return{id:te,diagram:e}},"loader"),tr={id:te,detector:tt,loader:tn},ti="sankey",ta=(0,c.K2)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),ts=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2729).then(n.bind(n,22729));return{id:ti,diagram:e}},"loader"),to={id:ti,detector:ta,loader:ts},tl="packet",tc=(0,c.K2)(e=>/^\s*packet(-beta)?/.test(e),"detector"),tu=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(4491)]).then(n.bind(n,14491));return{id:tl,diagram:e}},"loader"),th={id:tl,detector:tc,loader:tu},tp="radar",td=(0,c.K2)(e=>/^\s*radar-beta/.test(e),"detector"),tf=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7006)]).then(n.bind(n,77006));return{id:tp,diagram:e}},"loader"),tm={id:tp,detector:td,loader:tf},tg="block",ty=(0,c.K2)(e=>/^\s*block(-beta)?/.test(e),"detector"),tb=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(2821),n.e(6696)]).then(n.bind(n,26696));return{id:tg,diagram:e}},"loader"),t_={id:tg,detector:ty,loader:tb},tk="treeView",tE=(0,c.K2)(e=>/^\s*treeView-beta/.test(e),"detector"),tT=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(532)]).then(n.bind(n,90532));return{id:tk,diagram:e}},"loader"),tx={id:tk,detector:tE,loader:tT},tA="architecture",tw=(0,c.K2)(e=>/^\s*architecture/.test(e),"detector"),tv=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8747),n.e(8863),n.e(8489)]).then(n.bind(n,18489));return{id:tA,diagram:e}},"loader"),tS={id:tA,detector:tw,loader:tv},tC="eventmodeling",tN=(0,c.K2)(e=>/^\s*eventmodeling/.test(e),"detector"),tI=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7648)]).then(n.bind(n,77648));return{id:tC,diagram:e}},"loader"),tD={id:tC,detector:tN,loader:tI},tO="ishikawa",tM=(0,c.K2)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),tL=(0,c.K2)(async()=>{let{diagram:e}=await n.e(5403).then(n.bind(n,25403));return{id:tO,diagram:e}},"loader"),tR={id:tO,detector:tM,loader:tL},tP="venn",tF=(0,c.K2)(e=>/^\s*venn-beta/.test(e),"detector"),tB=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2947).then(n.bind(n,22947));return{id:tP,diagram:e}},"loader"),tH={id:tP,detector:tF,loader:tB},tU="treemap",tj=(0,c.K2)(e=>/^\s*treemap/.test(e),"detector"),t$=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(1643)]).then(n.bind(n,91643));return{id:tU,diagram:e}},"loader"),tz={id:tU,detector:tj,loader:t$},tG="wardley-beta",tK=(0,c.K2)(e=>/^\s*wardley-beta/i.test(e),"detector"),tY=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(547)]).then(n.bind(n,40547));return{id:tG,diagram:e}},"loader"),tq={id:tG,detector:tK,loader:tY},tW=!1,tV=(0,c.K2)(()=>{tW||(tW=!0,(0,l.Js)("error",eQ,e=>"error"===e.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,c.K2)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.K2)(()=>{},"draw")},parser:{parse:(0,c.K2)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,c.K2)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(e1,e7,tS),(0,l.Xd)(K,tr,eF,eM,ee,el,ep,ed,ew,eN,J,V,e9,ei,eK,ej,eV,ey,to,th,eE,t_,tD,tx,tm,tR,tz,tH,tq))},"addDiagrams"),tX=(0,c.K2)(async()=>{c.Rm.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(l.mW).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,l.Gs)(e)}catch{try{let{diagram:e,id:r}=await n();(0,l.Js)(r,e,t)}catch(t){throw c.Rm.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete l.mW[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(c.Rm.error(`Failed to load ${e.length} external diagrams`),e))c.Rm.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function tQ(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function tZ(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,c.K2)(tQ,"setA11yDiagramInfo"),(0,c.K2)(tZ,"addSVGa11yTitleDescription");var tJ=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,c.K2)(this,"Diagram")}static async fromText(t,n={}){let r=(0,l.zj)(),i=(0,l.Ch)(t,r);t=(0,o.C4)(t)+"\n";try{(0,l.Gs)(i)}catch{let e=(0,l.J$)(i);if(!e)throw new l.C0(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,l.Js)(t,n)}let{db:a,parser:s,renderer:c,init:u}=(0,l.Gs)(i);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(r),n.title&&a.setDiagramTitle?.(n.title),await s.parse(t),new e(i,t,a,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},t0=[],t1=(0,c.K2)(()=>{t0.forEach(e=>{e()}),t0=[]},"attachFunctions"),t2=(0,c.K2)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function t3(e){let t=e.match(l.EJ);if(!t)return{text:e,metadata:{}};let n=(0,i.H)(t[1],{schema:i.r})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}(0,c.K2)(t3,"extractFrontMatter");var t5=(0,c.K2)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),t9=(0,c.K2)(e=>{let{text:t,metadata:n}=t3(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},"processFrontmatter"),t6=(0,c.K2)(e=>{let t=o._K.detectInit(e)??{},n=o._K.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,o.vU)(e),directive:t}},"processDirectives");function t4(e){let t=t9(t5(e)),n=t6(t.text),r=(0,o.$t)(t.config,n.directive);return{code:e=t2(n.text),title:t.title,config:r}}function t8(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,c.K2)(t4,"preprocessDiagram"),(0,c.K2)(t8,"toBase64");var t7=["foreignobject"],ne=["dominant-baseline"];function nt(e){let t=t4(e);return(0,l.cL)(),(0,l.xA)(t.config??{}),t}async function nn(e,t){tV();try{let{code:t,config:n}=nt(e);return{diagramType:(await nf(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,c.K2)(nt,"processAndSetConfigs"),(0,c.K2)(nn,"parse");var nr=(0,c.K2)((e,t,n=[])=>{let r=(0,l.Df)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),ni=(0,c.K2)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,l.E)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{G(e.styles)||r.forEach(t=>{n.insertRule(nr(e.id,t,e.styles),n.cssRules.length)}),G(e.textStyles)||n.insertRule(nr(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,l.KG)(t)+"\n"}else r+=`${e.themeCSS}
|
|
102
|
+
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),a.Rm.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let s=[];for(;null!==(n=i.DB.exec(e));)if(n.index===i.DB.lastIndex&&i.DB.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;s.push({type:e,args:t})}if(0===s.length)return{type:e,args:null};return 1===s.length?s[0]:s}catch(n){return a.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),N=(0,a.K2)(function(e){return e.replace(i.DB,"")},"removeDirectives"),I=(0,a.K2)(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},"isSubstringInArray");function D(e,t){return e?w[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function O(e,t){let n=e.trim();if(n)return"loose"!==t.securityLevel?(0,s.J)(n):n}(0,a.K2)(D,"interpolateToCurve"),(0,a.K2)(O,"formatUrl");var M=(0,a.K2)((e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],s=window;for(let t=0;t<r;t++)if(!(s=s[n[t]]))return void a.Rm.error(`Function name: ${e} not found in window`);s[i](...t)},"runFunc");function L(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function R(e){let t,n=0;return e.forEach(e=>{n+=L(e,t),t=e}),B(e,n/2)}function P(e){return 1===e.length?e[0]:R(e)}(0,a.K2)(L,"distance"),(0,a.K2)(R,"traverseEdge"),(0,a.K2)(P,"calcLabelPosition");var F=(0,a.K2)((e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),B=(0,a.K2)((e,t)=>{let n,r=t;for(let t of e){if(n){let e=L(t,n);if(0===e)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:F((1-i)*n.x+i*t.x,5),y:F((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),H=(0,a.K2)((e,t,n)=>{a.Rm.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=B(t,25),i=e?10:5,s=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(t[0].x+r.x)/2,o.y=-Math.cos(s)*i+(t[0].y+r.y)/2,o},"calcCardinalityPosition");function U(e,t,n){let r=structuredClone(n);a.Rm.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=B(r,25+e),s=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(o+Math.PI)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(r[0].y+i.y)/2):"end_right"===t?(l.x=Math.sin(o-Math.PI)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(r[0].y+i.y)/2-5):"end_left"===t?(l.x=Math.sin(o)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2),l}function j(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,a.K2)(U,"calcTerminalLabelPosition"),(0,a.K2)(j,"getStylesFromArray");var $=0,z=(0,a.K2)(()=>($++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$),"generateId");function G(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}(0,a.K2)(G,"makeRandomHex");var K=(0,a.K2)(e=>G(e.length),"random"),Y=(0,a.K2)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),q=(0,a.K2)(function(e,t){let n=t.text.replace(i.Y2.lineBreakRegex," "),[,r]=er(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);let s=a.append("tspan");return s.attr("x",t.x+2*t.textMargin),s.attr("fill",t.fill),s.text(n),a},"drawSimpleText"),W=l((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.Y2.lineBreakRegex.test(e)))return e;let r=e.split(" ").filter(Boolean),a=[],s="";return r.forEach((e,i)=>{let o=Q(`${e} `,n),l=Q(s,n);if(o>t){let{hyphenatedStrings:r,remainingWord:i}=V(e,t,"-",n);a.push(s,...r),s=i}else l+o>=t?(a.push(s),s=e):s=[s,e].filter(Boolean).join(" ");i+1===r.length&&a.push(s)}),a.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),V=l((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],s="";return i.forEach((e,o)=>{let l=`${s}${e}`;if(Q(l,r)>=t){let e=i.length===o+1,t=`${l}${n}`;a.push(e?l:t),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function X(e,t){return Z(e,t).height}function Q(e,t){return Z(e,t).width}(0,a.K2)(X,"calculateTextHeight"),(0,a.K2)(Q,"calculateTextWidth");var Z=l((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,s]=er(n),l=e.split(i.Y2.lineBreakRegex),c=[],u=(0,o.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=Y();i.text=r||A;let o=q(h,i).style("font-size",s).style("font-weight",a).style("font-family",e),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}c.push(n)}h.remove();let p=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[p]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),J=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,a.K2)(this,"InitIDGenerator")}},ee=(0,a.K2)(function(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)},"entityDecode");function et(e){return"str"in e}(0,a.K2)(et,"isDetailedError");var en=(0,a.K2)((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},"insertTitle"),er=(0,a.K2)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ei(e,t){return function(e,...t){return function(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++)i=function e(t,n,r,i){if((0,u.s)(t)&&(t=Object(t)),null==n||"object"!=typeof n)return t;if(i.has(n))return function(e){if((0,u.s)(e))return e;if(Array.isArray(e)||(0,h.i)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(i.get(n));if(i.set(n,t),Array.isArray(n)){n=n.slice();for(let e=0;e<n.length;e++)n[e]=n[e]??void 0}let a=[...Object.keys(n),...p(n)];for(let o=0;o<a.length;o++){let l=a[o];if("__proto__"===l)continue;let c=n[l],u=t[l];if((0,k.N)(c)&&(c={...c}),(0,k.N)(u)&&(u={...u}),(0,d.P)(c)&&(c=_(c)),Array.isArray(c))if(Array.isArray(u)){let e=[],t=Reflect.ownKeys(u);for(let n=0;n<t.length;n++){let r=t[n];e[r]=u[r]}u=e}else{var s;if(E(s=u)&&(0,T.X)(s)){let e=[];for(let t=0;t<u.length;t++)e[t]=u[t];u=e}else u=[]}let h=r(u,c,l,t,n,i);void 0!==h?t[l]=h:Array.isArray(c)||E(u)&&E(c)&&(f(u)||f(c)||(0,x.i)(u)||(0,x.i)(c))?t[l]=e(u,c,r,i):null==u&&f(c)?t[l]=e({},c,r,i):null==u&&(0,x.i)(c)?t[l]=_(c):(void 0===u||void 0!==c)&&(t[l]=c)}return t}(i,n[e],r,new Map);return i}(e,...t,c)}({},e,t)}(0,a.K2)(ei,"cleanAndMerge");var ea={assignWithDepth:i.hH,wrapLabel:W,calculateTextHeight:X,calculateTextWidth:Q,calculateTextDimensions:Z,cleanAndMerge:ei,detectInit:S,detectDirective:C,isSubstringInArray:I,interpolateToCurve:D,calcLabelPosition:P,calcCardinalityPosition:H,calcTerminalLabelPosition:U,formatUrl:O,getStylesFromArray:j,generateId:z,random:K,runFunc:M,entityDecode:ee,insertTitle:en,isLabelCoordinateInPath:eu,parseFontSize:er,InitIDGenerator:J},es=(0,a.K2)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),eo=(0,a.K2)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),el=(0,a.K2)((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function ec(e){return e??null}function eu(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}(0,a.K2)(ec,"handleUndefinedAttr"),(0,a.K2)(eu,"isLabelCoordinateInPath")},32682:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(99634)),i=n(52634);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},33948:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function s(e){return"translate("+e+",0)"}function o(e){return"translate(0,"+e+")"}function l(){return!this.__axis}function c(e,t){var n=[],r=null,i=null,c=6,u=6,h=3,p="u">typeof window&&window.devicePixelRatio>1?0:.5,d=1===e||4===e?-1:1,f=4===e||2===e?"x":"y",m=1===e||3===e?s:o;function g(s){var o=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,g=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(c,0)+h,b=t.range(),_=+b[0]+p,k=+b[b.length-1]+p,E=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}:function(e){return t=>+e(t)})(t.copy(),p),T=s.selection?s.selection():s,x=T.selectAll(".domain").data([null]),A=T.selectAll(".tick").data(o,t).order(),w=A.exit(),v=A.enter().append("g").attr("class","tick"),S=A.select("line"),C=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(v),S=S.merge(v.append("line").attr("stroke","currentColor").attr(f+"2",d*c)),C=C.merge(v.append("text").attr("fill","currentColor").attr(f,d*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),s!==T&&(x=x.transition(s),A=A.transition(s),S=S.transition(s),C=C.transition(s),w=w.transition(s).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=E(e))?m(e+p):this.getAttribute("transform")}),v.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return m((t&&isFinite(t=t(e))?t:E(e))+p)})),w.remove(),x.attr("d",4===e||2===e?u?"M"+d*u+","+_+"H"+p+"V"+k+"H"+d*u:"M"+p+","+_+"V"+k:u?"M"+_+","+d*u+"V"+p+"H"+k+"V"+d*u:"M"+_+","+p+"H"+k),A.attr("opacity",1).attr("transform",function(e){return m(E(e)+p)}),S.attr(f+"2",d*c),C.attr(f,d*y).text(g),T.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),T.each(function(){this.__axis=E})}return g.scale=function(e){return arguments.length?(t=e,g):t},g.ticks=function(){return n=Array.from(arguments),g},g.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),g):n.slice()},g.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),g):r&&r.slice()},g.tickFormat=function(e){return arguments.length?(i=e,g):i},g.tickSize=function(e){return arguments.length?(c=u=+e,g):c},g.tickSizeInner=function(e){return arguments.length?(c=+e,g):c},g.tickSizeOuter=function(e){return arguments.length?(u=+e,g):u},g.tickPadding=function(e){return arguments.length?(h=+e,g):h},g.offset=function(e){return arguments.length?(p=+e,g):p},g}function u(e){return c(1,e)}function h(e){return c(3,e)}function p(){}function d(e){return null==e?p:function(){return this.querySelector(e)}}function f(){return[]}function m(e){return null==e?f:function(){return this.querySelectorAll(e)}}function g(e){return function(){return this.matches(e)}}function y(e){return function(t){return t.matches(e)}}n.d(t,{JLW:()=>iq,l78:()=>h,tlR:()=>u,qrM:()=>i6,Yu4:()=>i8,IA3:()=>ae,Wi0:()=>an,PGM:()=>ar,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>ap,oDi:()=>am,Q7f:()=>ay,cVp:()=>a_,lUB:()=>iX,Lx9:()=>aE,nVG:()=>aC,uxU:()=>aN,Xf2:()=>aO,GZz:()=>aL,UPb:()=>aP,dyv:()=>aR,GPZ:()=>es,Sk5:()=>t$,bEH:()=>na,n8j:()=>iJ,T9B:()=>r,jkA:()=>i,rLf:()=>i2,WH:()=>function e(){var t,n,r=nh().unknown(void 0),i=r.domain,a=r.range,s=0,o=1,l=!1,c=0,u=0,h=.5;function p(){var e=i().length,r=o<s,p=r?o:s,d=r?s:o;t=(d-p)/Math.max(1,e-c+2*u),l&&(t=Math.floor(t)),p+=(d-p-t*(e-c))*h,n=t*(1-c),l&&(p=Math.round(p),n=Math.round(n));var f=(function(e,t,n){e*=1,t*=1,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r<i;)a[r]=e+r*n;return a})(e).map(function(e){return p+t*e});return a(r?f.reverse():f)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),p()):i()},r.range=function(e){return arguments.length?([s,o]=e,s*=1,o*=1,p()):[s,o]},r.rangeRound=function(e){return[s,o]=e,s*=1,o*=1,l=!0,p()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(e){return arguments.length?(l=!!e,p()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),p()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),p()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,p()):u},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),p()):h},r.copy=function(){return e(i(),[s,o]).round(l).paddingInner(c).paddingOuter(u).align(h)},ns.apply(p(),arguments)},m4Y:()=>function e(){var t,n=nO();return n.copy=function(){return nD(n,e())},ns.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t<e,[i,a,s]=r?nm(t,e,n):nm(e,t,n);if(!(a>=i))return[];let o=a-i+1,l=Array(o);if(r)if(s<0)for(let e=0;e<o;++e)l[e]=-((a-e)/s);else for(let e=0;e<o;++e)l[e]=(a-e)*s;else if(s<0)for(let e=0;e<o;++e)l[e]=-((i+e)/s);else for(let e=0;e<o;++e)l[e]=(i+e)*s;return l}(n[0],n[n.length-1],null==e?10:e)},n.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,a,s=ny(e,t,n);switch((r=tL(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tO(o)/3)))-tO(Math.abs(s))))||(r.precision=a),eo(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,tO(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=s)))-tO(i))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-tO(Math.abs(s))))||(r.precision=a-("%"===r.type)*2)}return es(r)}(r[0],r[r.length-1],null==e?10:e,n)},n.nice=function(e){null==e&&(e=10);var r,i,a=t(),s=0,o=a.length-1,l=a[s],c=a[o],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=o,o=i);u-- >0;){if((i=ng(l,c,e))===r)return a[s]=l,a[o]=c,t(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n},UMr:()=>nh,w7C:()=>ik,zt:()=>iE,Ltv:()=>iT,UAC:()=>n$,DCK:()=>ec,TUC:()=>nQ,Agd:()=>nU,t6C:()=>nP,wXd:()=>nB,ABi:()=>nq,Ui6:()=>n4,rGn:()=>nZ,ucG:()=>nF,YPH:()=>nY,Mol:()=>nX,PGu:()=>nW,GuW:()=>nV,hkb:()=>tZ});var b=Array.prototype.find;function _(){return this.firstElementChild}var k=Array.prototype.filter;function E(){return Array.from(this.children)}function T(e){return Array(e.length)}function x(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function A(e,t,n,r,i,a){for(var s,o=0,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new x(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function w(e,t,n,r,i,a,s){var o,l,c,u=new Map,h=t.length,p=a.length,d=Array(h);for(o=0;o<h;++o)(l=t[o])&&(d[o]=c=s.call(l,l.__data__,o,t)+"",u.has(c)?i[o]=l:u.set(c,l));for(o=0;o<p;++o)c=s.call(e,a[o],o,a)+"",(l=u.get(c))?(r[o]=l,l.__data__=a[o],u.delete(c)):n[o]=new x(e,a[o]);for(o=0;o<h;++o)(l=t[o])&&u.get(d[o])===l&&(i[o]=l)}function v(e){return e.__data__}function S(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}x.prototype={constructor:x,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var C="http://www.w3.org/1999/xhtml";let N={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function I(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),N.hasOwnProperty(t)?{space:N[t],local:e}:e}function D(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function O(e,t){return e.style.getPropertyValue(t)||D(e).getComputedStyle(e,null).getPropertyValue(t)}function M(e){return e.trim().split(/^|\s+/)}function L(e){return e.classList||new R(e)}function R(e){this._node=e,this._names=M(e.getAttribute("class")||"")}function P(e,t){for(var n=L(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function F(e,t){for(var n=L(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function B(){this.textContent=""}function H(){this.innerHTML=""}function U(){this.nextSibling&&this.parentNode.appendChild(this)}function j(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $(e){var t=I(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===C&&t.documentElement.namespaceURI===C?t.createElement(e):t.createElementNS(n,e)}})(t)}function z(){return null}function G(){var e=this.parentNode;e&&e.removeChild(this)}function K(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function W(e,t,n){return function(){var r,i=this.__on,a=function(e){t.call(this,e,this.__data__)};if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function V(e,t,n){var r=D(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}R.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var X=[null];function Q(e,t){this._groups=e,this._parents=t}function Z(){return new Q([[document.documentElement]],X)}Q.prototype=Z.prototype={constructor:Q,select:function(e){"function"!=typeof e&&(e=d(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s,o=t[i],l=o.length,c=r[i]=Array(l),u=0;u<l;++u)(a=o[u])&&(s=e.call(a,a.__data__,u,o))&&("__data__"in a&&(s.__data__=a.__data__),c[u]=s);return new Q(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=m(e);for(var n=this._groups,r=n.length,i=[],a=[],s=0;s<r;++s)for(var o,l=n[s],c=l.length,u=0;u<c;++u)(o=l[u])&&(i.push(e.call(o,o.__data__,u,l)),a.push(o));return new Q(i,a)},selectChild:function(e){var t;return this.select(null==e?_:(t="function"==typeof e?e:y(e),function(){return b.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?E:(t="function"==typeof e?e:y(e),function(){return k.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new Q(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,v);var n=t?w:A,r=this._parents,i=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var a=i.length,s=Array(a),o=Array(a),l=Array(a),c=0;c<a;++c){var u=r[c],h=i[c],p=h.length,d="object"==typeof(y=e.call(u,u&&u.__data__,c,r))&&"length"in y?y:Array.from(y),f=d.length,m=o[c]=Array(f),g=s[c]=Array(f);n(u,h,m,g,l[c]=Array(p),d,t);for(var y,b,_,k,E=0,T=0;E<f;++E)if(_=m[E]){for(E>=T&&(T=E+1);!(k=g[T])&&++T<f;);_._next=k||null}}return(s=new Q(s,r))._enter=o,s._exit=l,s},enter:function(){return new Q(this._enter||this._groups.map(T),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(T),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),o=Array(i),l=0;l<s;++l)for(var c,u=n[l],h=r[l],p=u.length,d=o[l]=Array(p),f=0;f<p;++f)(c=u[f]||h[f])&&(d[f]=c);for(;l<i;++l)o[l]=n[l];return new Q(o,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,s=i[a];--a>=0;)(r=i[a])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=S);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var s,o=n[a],l=o.length,c=i[a]=Array(l),u=0;u<l;++u)(s=o[u])&&(c[u]=s);c.sort(t)}return new Q(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],s=0,o=a.length;s<o;++s)(i=a[s])&&e.call(i,i.__data__,s,a);return this},attr:function(e,t){var n=I(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):O(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=M(e+"");if(arguments.length<2){for(var r=L(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?P:F)(this,e)}}:t?function(e){return function(){P(this,e)}}:function(e){return function(){F(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?B:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?H:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(U)},lower:function(){return this.each(j)},append:function(e){var t="function"==typeof e?e:$(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:$(e),r=null==t?z:"function"==typeof t?t:d(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(G)},clone:function(e){return this.select(e?Y:K)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=a.length;if(arguments.length<2){var o=this.node().__on;if(o){for(var l,c=0,u=o.length;c<u;++c)for(r=0,l=o[c];r<s;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,o=t?W:q;r<s;++r)this.each(o(a[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return V(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return V(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,s=i.length;a<s;++a)(r=i[a])&&(yield r)}};var J={value:()=>{}};function ee(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new et(r)}function et(e){this._=e}function en(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=J,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}et.prototype=ee.prototype={constructor:et,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=en(r[n],e.name,t);else if(null==t)for(n in r)r[n]=en(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new et(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var er,ei,ea,es,eo,el,ec,eu,eh,ep=0,ed=0,ef=0,em=0,eg=0,ey=0,eb="object"==typeof performance&&performance.now?performance:Date,e_="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ek(){return eg||(e_(eE),eg=eb.now()+ey)}function eE(){eg=0}function eT(){this._call=this._time=this._next=null}function ex(e,t,n){var r=new eT;return r.restart(e,t,n),r}function eA(){eg=(em=eb.now())+ey,ep=ed=0;try{ek(),++ep;for(var e,t=eu;t;)(e=eg-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ep}finally{ep=0,function(){for(var e,t,n=eu,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eu=t);eh=e,ev(r)}(),eg=0}}function ew(){var e=eb.now(),t=e-em;t>1e3&&(ey-=t,em=e)}function ev(e){!ep&&(ed&&(ed=clearTimeout(ed)),e-eg>24?(e<1/0&&(ed=setTimeout(eA,e-eb.now()-ey)),ef&&(ef=clearInterval(ef))):(ef||(em=eb.now(),ef=setInterval(ew,1e3)),ep=1,e_(eA)))}function eS(e,t,n){var r=new eT;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eT.prototype=ex.prototype={constructor:eT,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?ek():+n)+(null==t?0:+t),this._next||eh===this||(eh?eh._next=this:eu=this,eh=this),this._call=e,this._time=n,ev()},stop:function(){this._call&&(this._call=null,this._time=1/0,ev())}};var eC=ee("start","end","cancel","interrupt"),eN=[];function eI(e,t,n,r,i,a){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var c,u,h,p;if(1!==n.state)return o();for(c in i)if((p=i[c]).name===n.name){if(3===p.state)return eS(a);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[c]):+c<t&&(p.state=6,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[c])}if(eS(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(h=n.tween.length),u=-1;c<h;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=p);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(o),n.state=5,1),a=-1,s=r.length;++a<s;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=ex(function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eC,tween:eN,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eD(e,t){var n=eM(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eO(e,t){var n=eM(e,t);if(n.state>3)throw Error("too late; already running");return n}function eM(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eL(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var eR=180/Math.PI,eP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eF(e,t,n,r,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*eR,skewX:Math.atan(l)*eR,scaleX:s,scaleY:o}}function eB(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,s){var o,l,c,u,h=[],p=[];return a=e(a),s=e(s),!function(e,r,i,a,s,o){if(e!==i||r!==a){var l=s.push("translate(",null,t,null,n);o.push({i:l-4,x:eL(e,i)},{i:l-2,x:eL(r,a)})}else(i||a)&&s.push("translate("+i+t+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,h,p),o=a.rotate,l=s.rotate,o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:eL(o,l)})):l&&h.push(i(h)+"rotate("+l+r),c=a.skewX,u=s.skewX,c!==u?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:eL(c,u)}):u&&h.push(i(h)+"skewX("+u+r),!function(e,t,n,r,a,s){if(e!==n||t!==r){var o=a.push(i(a)+"scale(",null,",",null,")");s.push({i:o-4,x:eL(e,n)},{i:o-2,x:eL(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,h,p),a=s=null,function(e){for(var t,n=-1,r=p.length;++n<r;)h[(t=p[n]).i]=t.x(e);return h.join("")}}}var eH=eB(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eP:eF(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eU=eB(function(e){return null==e?eP:(er||(er=document.createElementNS("http://www.w3.org/2000/svg","g")),er.setAttribute("transform",e),e=er.transform.baseVal.consolidate())?eF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eP},", ",")",")");function ej(e,t,n){var r=e._id;return e.each(function(){var e=eO(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eM(e,r).value[t]}}function e$(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ez(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eG(){}var eK="\\s*([+-]?\\d+)\\s*",eY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eq="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eW=/^#([0-9a-f]{3,8})$/,eV=RegExp(`^rgb\\(${eK},${eK},${eK}\\)$`),eX=RegExp(`^rgb\\(${eq},${eq},${eq}\\)$`),eQ=RegExp(`^rgba\\(${eK},${eK},${eK},${eY}\\)$`),eZ=RegExp(`^rgba\\(${eq},${eq},${eq},${eY}\\)$`),eJ=RegExp(`^hsl\\(${eY},${eq},${eq}\\)$`),e0=RegExp(`^hsla\\(${eY},${eq},${eq},${eY}\\)$`),e1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function e2(){return this.rgb().formatHex()}function e3(){return this.rgb().formatRgb()}function e5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?e9(t):3===n?new e7(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?e6(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?e6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=eV.exec(e))?new e7(t[1],t[2],t[3],1):(t=eX.exec(e))?new e7(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eQ.exec(e))?e6(t[1],t[2],t[3],t[4]):(t=eZ.exec(e))?e6(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eJ.exec(e))?ta(t[1],t[2]/100,t[3]/100,1):(t=e0.exec(e))?ta(t[1],t[2]/100,t[3]/100,t[4]):e1.hasOwnProperty(e)?e9(e1[e]):"transparent"===e?new e7(NaN,NaN,NaN,0):null}function e9(e){return new e7(e>>16&255,e>>8&255,255&e,1)}function e6(e,t,n,r){return r<=0&&(e=t=n=NaN),new e7(e,t,n,r)}function e4(e){return(e instanceof eG||(e=e5(e)),e)?new e7((e=e.rgb()).r,e.g,e.b,e.opacity):new e7}function e8(e,t,n,r){return 1==arguments.length?e4(e):new e7(e,t,n,null==r?1:r)}function e7(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}`}function tt(){let e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ti(e){return((e=tr(e))<16?"0":"")+e.toString(16)}function ta(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new to(e,t,n,r)}function ts(e){if(e instanceof to)return new to(e.h,e.s,e.l,e.opacity);if(e instanceof eG||(e=e5(e)),!e)return new to;if(e instanceof to)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,o=a-i,l=(a+i)/2;return o?(s=t===a?(n-r)/o+(n<r)*6:n===a?(r-t)/o+2:(t-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new to(s,o,l,e.opacity)}function to(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tl(e){return(e=(e||0)%360)<0?e+360:e}function tc(e){return Math.max(0,Math.min(1,e||0))}function tu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function th(e,t,n,r,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*n+(1+3*e+3*a-3*s)*r+s*i)/6}e$(eG,e5,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e2,formatHex:e2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ts(this).formatHsl()},formatRgb:e3,toString:e3}),e$(e7,e8,ez(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new e7(tr(this.r),tr(this.g),tr(this.b),tn(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}${ti((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tt,toString:tt})),e$(to,function(e,t,n,r){return 1==arguments.length?ts(e):new to(e,t,n,null==r?1:r)},ez(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new to(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new to(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new e7(tu(e>=240?e-240:e+120,i,r),tu(e,i,r),tu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new to(tl(this.h),tc(this.s),tc(this.l),tn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${tl(this.h)}, ${100*tc(this.s)}%, ${100*tc(this.l)}%${1===e?")":`, ${e})`}`}}));let tp=e=>()=>e;function td(e,t){return function(n){return e+n*t}}function tf(e,t){var n=t-e;return n?td(e,n):tp(isNaN(e)?t:e)}let tm=function e(t){var n,r=1==(n=+t)?tf:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):tp(isNaN(e)?t:e)};function i(e,t){var n=r((e=e8(e)).r,(t=e8(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),s=tf(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function tg(e){return function(t){var n,r,i=t.length,a=Array(i),s=Array(i),o=Array(i);for(n=0;n<i;++n)r=e8(t[n]),a[n]=r.r||0,s[n]=r.g||0,o[n]=r.b||0;return a=e(a),s=e(s),o=e(o),r.opacity=1,function(e){return r.r=a(e),r.g=s(e),r.b=o(e),r+""}}}tg(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],s=r>0?e[r-1]:2*i-a,o=r<t-1?e[r+2]:2*a-i;return th((n-r/t)*t,s,i,a,o)}}),tg(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],s=e[(r+1)%t],o=e[(r+2)%t];return th((n-r/t)*t,i,a,s,o)}});var ty=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=RegExp(ty.source,"g");function t_(e,t){var n,r,i,a,s,o=ty.lastIndex=tb.lastIndex=0,l=-1,c=[],u=[];for(e+="",t+="";(i=ty.exec(e))&&(a=tb.exec(t));)(s=a.index)>o&&(s=t.slice(o,s),c[l]?c[l]+=s:c[++l]=s),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:eL(i,a)})),o=tb.lastIndex;return o<t.length&&(s=t.slice(o),c[l]?c[l]+=s:c[++l]=s),c.length<2?u[0]?(n=u[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})}function tk(e,t){var n;return("number"==typeof t?eL:t instanceof e5?tm:(n=e5(t))?(t=n,tm):t_)(e,t)}var tE=Z.prototype.constructor;function tT(e){return function(){this.style.removeProperty(e)}}var tx=0;function tA(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tw=Z.prototype;tA.prototype=(function(e){return Z().transition(e)}).prototype={constructor:tA,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=d(e));for(var r=this._groups,i=r.length,a=Array(i),s=0;s<i;++s)for(var o,l,c=r[s],u=c.length,h=a[s]=Array(u),p=0;p<u;++p)(o=c[p])&&(l=e.call(o,o.__data__,p,c))&&("__data__"in o&&(l.__data__=o.__data__),h[p]=l,eI(h[p],t,n,p,h,eM(o,n)));return new tA(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=m(e));for(var r=this._groups,i=r.length,a=[],s=[],o=0;o<i;++o)for(var l,c=r[o],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var p,d=e.call(l,l.__data__,h,c),f=eM(l,n),g=0,y=d.length;g<y;++g)(p=d[g])&&eI(p,t,n,g,d,f);a.push(d),s.push(l)}return new tA(a,s,t,n)},selectChild:tw.selectChild,selectChildren:tw.selectChildren,filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new tA(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),s=Array(r),o=0;o<a;++o)for(var l,c=t[o],u=n[o],h=c.length,p=s[o]=Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(p[d]=l);for(;o<r;++o)s[o]=t[o];return new tA(s,this._parents,this._name,this._id)},selection:function(){return new tE(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++tx,r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)if(s=o[c]){var u=eM(s,t);eI(s,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tA(r,this._parents,e,n)},call:tw.call,nodes:tw.nodes,node:tw.node,size:tw.size,empty:tw.empty,each:tw.each,on:function(e,t){var n,r,i,a,s,o,l=this._id;return arguments.length<2?eM(this.node(),l).on.on(e):this.each((n=l,r=e,i=t,o=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eD:eO,function(){var e=o(this,n),t=e.on;t!==a&&(s=(a=t).copy()).on(r,i),e.on=s}))},attr:function(e,t){var n=I(e),r="transform"===n?eU:tk;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}}:function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttribute(e):(s=this.getAttribute(e))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}})(n,r,ej(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===r?i:i=t(r=s,n)}}:function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttribute(e);return s===a?null:s===r?i:i=t(r=s,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=I(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,a,s,o,l,c,u,h,p,d,f,m,g,y,b,_,k,E,T,x,A="transform"==(e+="")?eH:tk;return null==t?this.styleTween(e,(r=e,function(){var e=O(this,r),t=(this.style.removeProperty(r),O(this,r));return e===t?null:e===i&&t===a?s:s=A(i=e,a=t)})).on("end.style."+e,tT(e)):"function"==typeof t?this.styleTween(e,(o=e,l=ej(this,"style."+e,t),function(){var e=O(this,o),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(o),n=t=O(this,o)),e===n?null:e===c&&n===u?h:(u=n,h=A(c=e,t))})).each((p=this._id,_="end."+(b="style."+(d=e)),function(){var e=eO(this,p),t=e.on,n=null==e.value[b]?y||(y=tT(d)):void 0;(t!==f||g!==n)&&(m=(f=t).copy()).on(_,g=n),e.on=m})):this.styleTween(e,(k=e,x=t+"",function(){var e=O(this,k);return e===x?null:e===E?T:T=A(E=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=ej(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eM(this.node(),n).tween,a=0,s=i.length;a<s;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eO(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,o=r.length;s<o;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var a=eO(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}a.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eD(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eD(this,e).delay=t}})(t,e)):eM(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eO(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eO(this,e).duration=t}})(t,e)):eM(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eO(this,e).ease=t}}(t,e)):eM(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eO(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var o={value:s},l={value:function(){0==--i&&a()}};n.each(function(){var n=eO(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),n.on=t}),0===i&&a()})},[Symbol.iterator]:tw[Symbol.iterator]};var tv={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};Z.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,a=e.__transition,s=!0;if(a){for(i in t=null==t?null:t+"",a){if((n=a[i]).name!==t){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}s&&delete e.__transition}}(this,e)})},Z.prototype.transition=function(e){var t,n;e instanceof tA?(t=e._id,e=e._name):(t=++tx,(n=tv).time=ek(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)(s=o[c])&&eI(s,e,t,c,o,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,t));return new tA(r,this._parents,e,t)};let{abs:tS,max:tC,min:tN}=Math;function tI(e){return{type:e}}function tD(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tO(e){return(e=tD(Math.abs(e)))?e[1]:NaN}["w","e"].map(tI),["n","s"].map(tI),["n","w","e","s","nw","ne","sw","se"].map(tI);var tM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tL(e){var t;if(!(t=tM.exec(e)))throw Error("invalid format: "+e);return new tR({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function tR(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function tP(e,t){var n=tD(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tL.prototype=tR.prototype,tR.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let tF={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>tP(100*e,t),r:tP,s:function(e,t){var n=tD(e,t);if(!n)return ei=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ei=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return a===s?r:a>s?r+Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+tD(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tB(e){return e}var tH=Array.prototype.map,tU=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tj(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function t$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=tG)):void 0===t&&(t=tz);for(var n,r,i,a,s,o=new tq(e),l=[o];n=l.pop();)if((i=t(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,a=s-1;a>=0;--a)l.push(r=i[a]=new tq(i[a])),r.parent=n,r.depth=n.depth+1;return o.eachBefore(tY)}function tz(e){return e.children}function tG(e){return Array.isArray(e)?e[1]:null}function tK(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tY(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tq(e){this.data=e,this.depth=this.height=0,this.parent=null}function tW(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}es=(ea=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?tB:(t=tH.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(e.substring(i-=o,i+o)),!((l+=o+1)>r));)o=t[s=(s+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?tB:(r=tH.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e,t){var n=(e=tL(e)).fill,r=e.align,p=e.sign,d=e.symbol,f=e.zero,m=e.width,g=e.comma,y=e.precision,b=e.trim,_=e.type;"n"===_?(g=!0,_="g"):tF[_]||(void 0===y&&(y=12),b=!0,_="g"),(f||"0"===n&&"="===r)&&(f=!0,n="0",r="=");var k=(t&&void 0!==t.prefix?t.prefix:"")+("$"===d?a:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),E=("$"===d?s:/[%p]/.test(_)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),T=tF[_],x=/[defgprs%]/.test(_);function A(e){var t,a,s,c=k,d=E;if("c"===_)d=T(e)+d,e="";else{var A=(e*=1)<0||1/e<0;if(e=isNaN(e)?h:T(Math.abs(e),y),b&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),A&&0==+e&&"+"!==p&&(A=!1),c=(A?"("===p?p:u:"-"===p||"("===p?"":p)+c,d=("s"!==_||isNaN(e)||void 0===ei?"":tU[8+ei/3])+d+(A&&"("===p?")":""),x){for(t=-1,a=e.length;++t<a;)if(48>(s=e.charCodeAt(t))||s>57){d=(46===s?o+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}}g&&!f&&(e=i(e,1/0));var w=c.length+e.length+d.length,v=w<m?Array(m-w+1).join(n):"";switch(g&&f&&(e=i(v+e,v.length?m-d.length:1/0),v=""),r){case"<":e=c+e+d+v;break;case"=":e=c+v+e+d;break;case"^":e=v.slice(0,w=v.length>>1)+c+e+d+v.slice(w);break;default:e=v+c+e+d}return l(e)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return e+""},A}return{format:p,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(tO(t)/3))),r=Math.pow(10,-n),i=p(((e=tL(e)).type="f",e),{suffix:tU[8+n/3]});return function(e){return i(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,eo=ea.formatPrefix,tq.prototype=t$.prototype={constructor:tq,count:function(){return this.eachAfter(tj)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,s=[a],o=[],l=-1;a=s.pop();)if(o.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;a=o.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],s=-1;i=a.pop();)if(e.call(t,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return t$(this).eachBefore(tK)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}};let tV=function e(t){function n(e,n,r,i,a){!function(e,t,n,r,i,a){for(var s,o,l,c,u,h,p,d,f,m,g,y=[],b=t.children,_=0,k=0,E=b.length,T=t.value;_<E;){l=i-n,c=a-r;do u=b[k++].value;while(!u&&k<E);for(h=p=u,f=Math.max(p/(g=u*u*(m=Math.max(c/l,l/c)/(T*e))),g/h);k<E;++k){if(u+=o=b[k].value,o<h&&(h=o),o>p&&(p=o),(d=Math.max(p/(g=u*u*m),g/h))>f){u-=o;break}f=d}y.push(s={value:u,dice:l<c,children:b.slice(_,k)}),s.dice?function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)(a=s[o]).y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}(s,n,r,i,T?r+=c*u/T:a):function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)(a=s[o]).x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}(s,n,r,T?n+=l*u/T:i,a),T-=u,_=k}}(t,e,n,r,i,a)}return n.ratio=function(t){return e((t*=1)>1?t:1)},n}((1+Math.sqrt(5))/2);function tX(){return 0}function tQ(e){return function(){return e}}function tZ(){var e=tV,t=!1,n=1,r=1,i=[0],a=tX,s=tX,o=tX,l=tX,c=tX;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(tW),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,p=t.y1-n;h<r&&(r=h=(r+h)/2),p<u&&(u=p=(u+p)/2),t.x0=r,t.y0=u,t.x1=h,t.y1=p,t.children&&(n=i[t.depth+1]=a(t)/2,r+=c(t)-n,u+=s(t)-n,h-=o(t)-n,p-=l(t)-n,h<r&&(r=h=(r+h)/2),p<u&&(u=p=(u+p)/2),e(t,r,u,h,p))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:tQ(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:tQ(+e),u):s},u.paddingRight=function(e){return arguments.length?(o="function"==typeof e?e:tQ(+e),u):o},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:tQ(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:tQ(+e),u):c},u}let tJ=Math.PI/180,t0=180/Math.PI,t1=4/29,t2=6/29,t3=6/29*3*(6/29),t5=6/29*(6/29)*(6/29);function t9(e){if(e instanceof t6)return new t6(e.l,e.a,e.b,e.opacity);if(e instanceof nn)return nr(e);e instanceof e7||(e=e4(e));var t,n,r=ne(e.r),i=ne(e.g),a=ne(e.b),s=t4((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=s:(t=t4((.4360747*r+.3850649*i+.1430804*a)/.96422),n=t4((.0139322*r+.0971045*i+.7141733*a)/.82521)),new t6(116*s-16,500*(t-s),200*(s-n),e.opacity)}function t6(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function t4(e){return e>t5?Math.pow(e,1/3):e/t3+t1}function t8(e){return e>t2?e*e*e:t3*(e-t1)}function t7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ne(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nn)return new nn(e.h,e.c,e.l,e.opacity);if(e instanceof t6||(e=t9(e)),0===e.a&&0===e.b)return new nn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*t0;return new nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nn(e,t,n,null==r?1:r)}function nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nr(e){if(isNaN(e.h))return new t6(e.l,0,0,e.opacity);var t=e.h*tJ;return new t6(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function ni(e){return function(t,n){var r=e((t=nt(t)).h,(n=nt(n)).h),i=tf(t.c,n.c),a=tf(t.l,n.l),s=tf(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=s(e),t+""}}}e$(t6,function(e,t,n,r){return 1==arguments.length?t9(e):new t6(e,t,n,null==r?1:r)},ez(eG,{brighter(e){return new t6(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new t6(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*t8(t),new e7(t7(3.1338561*t-1.6168667*(e=+t8(e))-.4906146*(n=.82521*t8(n))),t7(-.9787684*t+1.9161415*e+.033454*n),t7(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),e$(nn,nt,ez(eG,{brighter(e){return new nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nr(this).rgb()}}));let na=ni(function(e,t){var n=t-e;return n?td(e,n>180||n<-180?n-360*Math.round(n/360):n):tp(isNaN(e)?t:e)});function ns(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}ni(tf);class no extends Map{constructor(e,t=nc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(nl(this,e))}has(e){return super.has(nl(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function nl({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function nc(e){return null!==e&&"object"==typeof e?e.valueOf():e}let nu=Symbol("implicit");function nh(){var e=new no,t=[],n=[],r=nu;function i(i){let a=e.get(i);if(void 0===a){if(r!==nu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new no,n))e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return nh(t,n).unknown(r)},ns.apply(i,arguments),i}let np=Math.sqrt(50),nd=Math.sqrt(10),nf=Math.sqrt(2);function nm(e,t,n){let r,i,a,s=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(s)),l=s/Math.pow(10,o),c=l>=np?10:l>=nd?5:l>=nf?2:1;return(o<0?(r=Math.round(e*(a=Math.pow(10,-o)/c)),i=Math.round(t*a),r/a<e&&++r,i/a>t&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,o)*c)),i=Math.round(t/a),r*a<e&&++r,i*a>t&&--i),i<r&&.5<=n&&n<2)?nm(e,t,2*n):[r,i,a]}function ng(e,t,n){return nm(e*=1,t*=1,n*=1)[2]}function ny(e,t,n){t*=1,e*=1,n*=1;let r=t<e,i=r?ng(t,e,n):ng(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}function nb(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function n_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nk(e){let t,n,r;function i(e,r,a=0,s=e.length){if(a<s){if(0!==t(r,r))return s;do{let t=a+s>>>1;0>n(e[t],r)?a=t+1:s=t}while(a<s)}return a}return 2!==e.length?(t=nb,n=(t,n)=>nb(e(t),n),r=(t,n)=>e(t)-n):(t=e===nb||e===n_?e:nE,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let s=i(e,t,n,a-1);return s>n&&r(e[s-1],t)>-r(e[s],t)?s-1:s},right:function(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{let t=i+a>>>1;0>=n(e[t],r)?i=t+1:a=t}while(i<a)}return i}}}function nE(){return 0}let nT=nk(nb),nx=nT.right;nT.left,nk(function(e){return null===e?NaN:+e}).center;function nA(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}function nw(e){return+e}var nv=[0,1];function nS(e){return e}function nC(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function nN(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=nC(i,r),a=n(s,a)):(r=nC(r,i),a=n(a,s)),function(e){return a(r(e))}}function nI(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=nC(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=nx(e,t,1,r)-1;return a[n](i[n](t))}}function nD(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nO(){return(function(){var e,t,n,r,i,a,s=nv,o=nv,l=function e(t,n){var r,i,a=typeof n;return null==n||"boolean"===a?tp(n):("number"===a?eL:"string"===a?(i=e5(n))?(n=i,tm):t_:n instanceof e5?tm:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(t,n){var r,i=n?n.length:0,a=t?Math.min(i,t.length):0,s=Array(a),o=Array(i);for(r=0;r<a;++r)s[r]=e(t[r],n[r]);for(;r<i;++r)o[r]=n[r];return function(e){for(r=0;r<a;++r)o[r]=s[r](e);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var r,i={},a={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)r in t?i[r]=e(t[r],n[r]):a[r]=n[r];return function(e){for(r in i)a[r]=i[r](e);return a}}:eL:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}})(t,n)},c=nS;function u(){var e,t,n,l=Math.min(s.length,o.length);return c!==nS&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nI:nN,i=a=null,h}function h(t){return null==t||isNaN(t*=1)?n:(i||(i=r(s.map(e),o,l)))(e(c(t)))}return h.invert=function(n){return c(t((a||(a=r(o,s.map(e),eL)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,nw),u()):s.slice()},h.range=function(e){return arguments.length?(o=Array.from(e),u()):o.slice()},h.rangeRound=function(e){return o=Array.from(e),l=nA,u()},h.clamp=function(e){return arguments.length?(c=!!e||nS,u()):c!==nS},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}})()(nS,nS)}let nM=new Date,nL=new Date;function nR(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>nR(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(nM.setTime(+t),nL.setTime(+r),e(nM),e(nL),Math.floor(n(nM,nL))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let nP=nR(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nP.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?nR(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nP:null,nP.range;let nF=nR(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());nF.range;let nB=nR(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());nB.range;let nH=nR(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());nH.range;let nU=nR(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());nU.range;let nj=nR(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());nj.range;let n$=nR(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);n$.range;let nz=nR(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);nz.range;let nG=nR(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function nK(e){return nR(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}nG.range;let nY=nK(0),nq=nK(1),nW=nK(2),nV=nK(3),nX=nK(4),nQ=nK(5),nZ=nK(6);function nJ(e){return nR(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}nY.range,nq.range,nW.range,nV.range,nX.range,nQ.range,nZ.range;let n0=nJ(0),n1=nJ(1),n2=nJ(2),n3=nJ(3),n5=nJ(4),n9=nJ(5),n6=nJ(6);n0.range,n1.range,n2.range,n3.range,n5.range,n9.range,n6.range;let n4=nR(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());n4.range;let n8=nR(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());n8.range;let n7=nR(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());n7.every=e=>isFinite(e=Math.floor(e))&&e>0?nR(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,n7.range;let re=nR(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rt(e,t,n,r,i,a){let s=[[nF,1,1e3],[nF,5,5e3],[nF,15,15e3],[nF,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function o(t,n,r){let i=Math.abs(n-t)/r,a=nk(([,,e])=>e).right(s,i);if(a===s.length)return e.every(ny(t/31536e6,n/31536e6,r));if(0===a)return nP.every(Math.max(ny(t,n,r),1));let[o,l]=s[i/s[a-1][2]<s[a][2]/i?a-1:a];return o.every(l)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:o(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},o]}re.every=e=>isFinite(e=Math.floor(e))&&e>0?nR(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,re.range;let[rn,rr]=rt(re,n8,n0,nG,nj,nH),[ri,ra]=rt(n7,n4,nY,n$,nU,nB);function rs(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ro(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rc={"-":"",_:" ",0:"0"},ru=/^\s*\d+/,rh=/^%/,rp=/[\\^$*+?|[\]().{}]/g;function rd(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function rf(e){return e.replace(rp,"\\$&")}function rm(e){return RegExp("^(?:"+e.map(rf).join("|")+")","i")}function rg(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ry(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rb(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function r_(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function rk(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rT(e,t,n){var r=ru.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rA(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rw(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rv(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rS(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rC(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rI(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rD(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rO(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rM(e,t,n){var r=ru.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rL(e,t,n){var r=rh.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rR(e,t,n){var r=ru.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rP(e,t,n){var r=ru.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rF(e,t){return rd(e.getDate(),t,2)}function rB(e,t){return rd(e.getHours(),t,2)}function rH(e,t){return rd(e.getHours()%12||12,t,2)}function rU(e,t){return rd(1+n$.count(n7(e),e),t,3)}function rj(e,t){return rd(e.getMilliseconds(),t,3)}function r$(e,t){return rj(e,t)+"000"}function rz(e,t){return rd(e.getMonth()+1,t,2)}function rG(e,t){return rd(e.getMinutes(),t,2)}function rK(e,t){return rd(e.getSeconds(),t,2)}function rY(e){var t=e.getDay();return 0===t?7:t}function rq(e,t){return rd(nY.count(n7(e)-1,e),t,2)}function rW(e){var t=e.getDay();return t>=4||0===t?nX(e):nX.ceil(e)}function rV(e,t){return e=rW(e),rd(nX.count(n7(e),e)+(4===n7(e).getDay()),t,2)}function rX(e){return e.getDay()}function rQ(e,t){return rd(nq.count(n7(e)-1,e),t,2)}function rZ(e,t){return rd(e.getFullYear()%100,t,2)}function rJ(e,t){return rd((e=rW(e)).getFullYear()%100,t,2)}function r0(e,t){return rd(e.getFullYear()%1e4,t,4)}function r1(e,t){var n=e.getDay();return rd((e=n>=4||0===n?nX(e):nX.ceil(e)).getFullYear()%1e4,t,4)}function r2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rd(t/60|0,"0",2)+rd(t%60,"0",2)}function r3(e,t){return rd(e.getUTCDate(),t,2)}function r5(e,t){return rd(e.getUTCHours(),t,2)}function r9(e,t){return rd(e.getUTCHours()%12||12,t,2)}function r6(e,t){return rd(1+nz.count(re(e),e),t,3)}function r4(e,t){return rd(e.getUTCMilliseconds(),t,3)}function r8(e,t){return r4(e,t)+"000"}function r7(e,t){return rd(e.getUTCMonth()+1,t,2)}function ie(e,t){return rd(e.getUTCMinutes(),t,2)}function it(e,t){return rd(e.getUTCSeconds(),t,2)}function ir(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return rd(n0.count(re(e)-1,e),t,2)}function ia(e){var t=e.getUTCDay();return t>=4||0===t?n5(e):n5.ceil(e)}function is(e,t){return e=ia(e),rd(n5.count(re(e),e)+(4===re(e).getUTCDay()),t,2)}function io(e){return e.getUTCDay()}function il(e,t){return rd(n1.count(re(e)-1,e),t,2)}function ic(e,t){return rd(e.getUTCFullYear()%100,t,2)}function iu(e,t){return rd((e=ia(e)).getUTCFullYear()%100,t,2)}function ih(e,t){return rd(e.getUTCFullYear()%1e4,t,4)}function ip(e,t){var n=e.getUTCDay();return rd((e=n>=4||0===n?n5(e):n5.ceil(e)).getUTCFullYear()%1e4,t,4)}function id(){return"+0000"}function im(){return"%"}function ig(e){return+e}function iy(e){return Math.floor(e/1e3)}function ib(e){return new Date(e)}function i_(e){return e instanceof Date?+e:+new Date(+e)}function ik(){return ns.apply((function e(t,n,r,i,a,s,o,l,c,u){var h=nO(),p=h.invert,d=h.domain,f=u(".%L"),m=u(":%S"),g=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),_=u("%b %d"),k=u("%B"),E=u("%Y");function T(e){return(c(e)<e?f:l(e)<e?m:o(e)<e?g:s(e)<e?y:i(e)<e?a(e)<e?b:_:r(e)<e?k:E)(e)}return h.invert=function(e){return new Date(p(e))},h.domain=function(e){return arguments.length?d(Array.from(e,i_)):d().map(ib)},h.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},h.tickFormat=function(e,t){return null==t?T:u(t)},h.nice=function(e){var t,r,i,a,s,o,l,c=d();return e&&"function"==typeof e.range||(e=n(c[0],c[c.length-1],null==e?10:e)),e?d((t=c,r=e,t=t.slice(),a=0,s=t.length-1,o=t[a],(l=t[s])<o&&(i=a,a=s,s=i,i=o,o=l,l=i),t[a]=r.floor(o),t[s]=r.ceil(l),t)):h},h.copy=function(){return nD(h,e(t,n,r,i,a,s,o,l,c,u))},h})(ri,ra,n7,n4,nY,n$,nU,nB,nF,ec).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ec=(el=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=rm(i),u=rg(i),h=rm(a),p=rg(a),d=rm(s),f=rg(s),m=rm(o),g=rg(o),y=rm(l),b=rg(l),_={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:rF,e:rF,f:r$,g:rJ,G:r1,H:rB,I:rH,j:rU,L:rj,m:rz,M:rG,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ig,s:iy,S:rK,u:rY,U:rq,V:rV,w:rX,W:rQ,x:null,X:null,y:rZ,Y:r0,Z:r2,"%":im},k={a:function(e){return s[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:r3,e:r3,f:r8,g:iu,G:ip,H:r5,I:r9,j:r6,L:r4,m:r7,M:ie,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ig,s:iy,S:it,u:ir,U:ii,V:is,w:io,W:il,x:null,X:null,y:ic,Y:ih,Z:id,"%":im},E={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:rS,e:rS,f:rM,g:rx,G:rT,H:rN,I:rN,j:rC,L:rO,m:rv,M:rI,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:rw,Q:rR,s:rP,S:rD,u:rb,U:r_,V:rk,w:ry,W:rE,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:rx,Y:rT,Z:rA,"%":rL};function T(e,t){return function(n){var r,i,a,s=[],o=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(l,o)),null!=(i=rc[r=e.charAt(++o)])?r=e.charAt(++o):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),s.push(r),l=o+1);return s.push(e.slice(l,o)),s.join("")}}function x(e,t){return function(n){var r,i,a=rl(1900,void 0,1);if(A(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!t||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=ro(rl(a.y,0,1))).getUTCDay())>4||0===i?n1.ceil(r):n1(r),r=nz.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=rs(rl(a.y,0,1))).getDay())>4||0===i?nq.ceil(r):nq(r),r=n$.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ro(rl(a.y,0,1)).getUTCDay():rs(rl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ro(a)):rs(a)}}function A(e,t,n,r){for(var i,a,s=0,o=t.length,l=n.length;s<o;){if(r>=l)return -1;if(37===(i=t.charCodeAt(s++))){if(!(a=E[(i=t.charAt(s++))in rc?t.charAt(s++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return _.x=T(n,_),_.X=T(r,_),_.c=T(t,_),k.x=T(n,k),k.X=T(r,k),k.c=T(t,k),{format:function(e){var t=T(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=T(e+="",k);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,el.parse,el.utcFormat,el.utcParse;let iE=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function iT(e){return"string"==typeof e?new Q([[document.querySelector(e)]],[document.documentElement]):new Q([[e]],X)}function ix(e){return function(){return e}}let iA=Math.abs,iw=Math.atan2,iv=Math.cos,iS=Math.max,iC=Math.min,iN=Math.sin,iI=Math.sqrt,iD=Math.PI,iO=iD/2,iM=2*iD;function iL(e){return e>=1?iO:e<=-1?-iO:Math.asin(e)}let iR=Math.PI,iP=2*iR,iF=iP-1e-6;function iB(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class iH{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?iB:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return iB;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e*=1,t*=1,n*=1,r*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,o=n-e,l=r-t,c=a-e,u=s-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>1e-6)if(Math.abs(u*o-l*c)>1e-6&&i){let p=n-a,d=r-s,f=o*o+l*l,m=Math.sqrt(f),g=Math.sqrt(h),y=i*Math.tan((iR-Math.acos((f+h-(p*p+d*d))/(2*m*g)))/2),b=y/g,_=y/m;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*p>c*d)},${this._x1=e+_*o},${this._y1=t+_*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e*=1,t*=1,n*=1,a=!!a,n<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(r),o=n*Math.sin(r),l=e+s,c=t+o,u=1^a,h=a?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%iP+iP),h>iF?this._append`A${n},${n},0,1,${u},${e-s},${t-o}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=iR)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function iU(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new iH(t)}function ij(e){return e.innerRadius}function i$(e){return e.outerRadius}function iz(e){return e.startAngle}function iG(e){return e.endAngle}function iK(e){return e&&e.padAngle}function iY(e,t,n,r,i,a,s){var o=e-n,l=t-r,c=(s?a:-a)/iI(o*o+l*l),u=c*l,h=-c*o,p=e+u,d=t+h,f=n+u,m=r+h,g=(p+f)/2,y=(d+m)/2,b=f-p,_=m-d,k=b*b+_*_,E=i-a,T=p*m-f*d,x=(_<0?-1:1)*iI(iS(0,E*E*k-T*T)),A=(T*_-b*x)/k,w=(-T*b-_*x)/k,v=(T*_+b*x)/k,S=(-T*b+_*x)/k,C=A-g,N=w-y,I=v-g,D=S-y;return C*C+N*N>I*I+D*D&&(A=v,w=S),{cx:A,cy:w,x01:-u,y01:-h,x11:A*(i/E-1),y11:w*(i/E-1)}}function iq(){var e=ij,t=i$,n=ix(0),r=null,i=iz,a=iG,s=iK,o=null,l=iU(c);function c(){var c,u,h=+e.apply(this,arguments),p=+t.apply(this,arguments),d=i.apply(this,arguments)-iO,f=a.apply(this,arguments)-iO,m=iA(f-d),g=f>d;if(o||(o=c=l()),p<h&&(u=p,p=h,h=u),p>1e-12)if(m>iM-1e-12)o.moveTo(p*iv(d),p*iN(d)),o.arc(0,0,p,d,f,!g),h>1e-12&&(o.moveTo(h*iv(f),h*iN(f)),o.arc(0,0,h,f,d,g));else{var y,b,_=d,k=f,E=d,T=f,x=m,A=m,w=s.apply(this,arguments)/2,v=w>1e-12&&(r?+r.apply(this,arguments):iI(h*h+p*p)),S=iC(iA(p-h)/2,+n.apply(this,arguments)),C=S,N=S;if(v>1e-12){var I=iL(v/h*iN(w)),D=iL(v/p*iN(w));(x-=2*I)>1e-12?(I*=g?1:-1,E+=I,T-=I):(x=0,E=T=(d+f)/2),(A-=2*D)>1e-12?(D*=g?1:-1,_+=D,k-=D):(A=0,_=k=(d+f)/2)}var O=p*iv(_),M=p*iN(_),L=h*iv(T),R=h*iN(T);if(S>1e-12){var P,F=p*iv(k),B=p*iN(k),H=h*iv(E),U=h*iN(E);if(m<iD)if(P=function(e,t,n,r,i,a,s,o){var l=n-e,c=r-t,u=s-i,h=o-a,p=h*l-u*c;if(!(p*p<1e-12))return p=(u*(t-a)-h*(e-i))/p,[e+p*l,t+p*c]}(O,M,H,U,F,B,L,R)){var j,$=O-P[0],z=M-P[1],G=F-P[0],K=B-P[1],Y=1/iN(((j=($*G+z*K)/(iI($*$+z*z)*iI(G*G+K*K)))>1?0:j<-1?iD:Math.acos(j))/2),q=iI(P[0]*P[0]+P[1]*P[1]);C=iC(S,(h-q)/(Y-1)),N=iC(S,(p-q)/(Y+1))}else C=N=0}A>1e-12?N>1e-12?(y=iY(H,U,O,M,p,N,g),b=iY(F,B,L,R,p,N,g),o.moveTo(y.cx+y.x01,y.cy+y.y01),N<S?o.arc(y.cx,y.cy,N,iw(y.y01,y.x01),iw(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,N,iw(y.y01,y.x01),iw(y.y11,y.x11),!g),o.arc(0,0,p,iw(y.cy+y.y11,y.cx+y.x11),iw(b.cy+b.y11,b.cx+b.x11),!g),o.arc(b.cx,b.cy,N,iw(b.y11,b.x11),iw(b.y01,b.x01),!g))):(o.moveTo(O,M),o.arc(0,0,p,_,k,!g)):o.moveTo(O,M),h>1e-12&&x>1e-12?C>1e-12?(y=iY(L,R,F,B,h,-C,g),b=iY(O,M,H,U,h,-C,g),o.lineTo(y.cx+y.x01,y.cy+y.y01),C<S?o.arc(y.cx,y.cy,C,iw(y.y01,y.x01),iw(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,C,iw(y.y01,y.x01),iw(y.y11,y.x11),!g),o.arc(0,0,h,iw(y.cy+y.y11,y.cx+y.x11),iw(b.cy+b.y11,b.cx+b.x11),g),o.arc(b.cx,b.cy,C,iw(b.y11,b.x11),iw(b.y01,b.x01),!g))):o.arc(0,0,h,T,E,g):o.lineTo(L,R)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iD/2;return[iv(r)*n,iN(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ix(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ix(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ix(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ix(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:ix(+e),c):i},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:ix(+e),c):a},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:ix(+e),c):s},c.context=function(e){return arguments.length?(o=null==e?null:e,c):o},c}function iW(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function iV(e){this._context=e}function iX(e){return new iV(e)}function iQ(e){return e[0]}function iZ(e){return e[1]}function iJ(e,t){var n=ix(!0),r=null,i=iX,a=null,s=iU(o);function o(o){var l,c,u,h=(o=iW(o)).length,p=!1;for(null==r&&(a=i(u=s())),l=0;l<=h;++l)!(l<h&&n(c=o[l],l,o))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(c,l,o),+t(c,l,o));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?iQ:ix(e),t="function"==typeof t?t:void 0===t?iZ:ix(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:ix(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:ix(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:ix(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o}function i0(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function i1(e){return e}function i2(){var e=i1,t=i0,n=null,r=ix(0),i=ix(iM),a=ix(0);function s(s){var o,l,c,u,h,p=(s=iW(s)).length,d=0,f=Array(p),m=Array(p),g=+r.apply(this,arguments),y=Math.min(iM,Math.max(-iM,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/p,a.apply(this,arguments)),_=b*(y<0?-1:1);for(o=0;o<p;++o)(h=m[f[o]=o]=+e(s[o],o,s))>0&&(d+=h);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(s[e],s[t])}),o=0,c=d?(y-p*_)/d:0;o<p;++o,g=u)u=g+((h=m[l=f[o]])>0?h*c:0)+_,m[l]={data:s[l],index:o,value:h,startAngle:g,endAngle:u,padAngle:b};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:ix(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ix(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ix(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:ix(+e),s):a},s}function i3(){}function i5(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i9(e){this._context=e}function i6(e){return new i9(e)}function i4(e){this._context=e}function i8(e){return new i4(e)}function i7(e){this._context=e}function ae(e){return new i7(e)}iH.prototype,Array.prototype.slice,iV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},i9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i4.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class at{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function an(e){return new at(e,!0)}function ar(e){return new at(e,!1)}function ai(e,t){this._basis=new i9(e),this._beta=t}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],s=e[n]-i,o=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(a+r*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let aa=function e(t){function n(e){return 1===t?new i9(e):new ai(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function as(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ao(e,t){this._context=e,this._k=(1-t)/6}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:as(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let al=function e(t){function n(e){return new ao(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ac(e,t){this._context=e,this._k=(1-t)/6}ac.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let au=function e(t){function n(e){return new ac(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ah(e,t){this._context=e,this._k=(1-t)/6}ah.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ap=function e(t){function n(e){return new ah(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ad(e,t,n){var r=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>1e-12){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,s,e._x2,e._y2)}function af(e,t){this._context=e,this._alpha=t}af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ad(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let am=function e(t){function n(e){return t?new af(e,t):new ao(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ag(e,t){this._context=e,this._alpha=t}ag.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ad(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ay=function e(t){function n(e){return t?new ag(e,t):new ac(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ab(e,t){this._context=e,this._alpha=t}ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ad(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let a_=function e(t){function n(e){return t?new ab(e,t):new ah(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ak(e){this._context=e}function aE(e){return new ak(e)}function aT(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs((a*i+s*r)/(r+i)))||0}function ax(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aA(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-r)/3;e._context.bezierCurveTo(r+o,i+o*t,a-o,s-o*n,a,s)}function aw(e){this._context=e}function av(e){this._context=new aS(e)}function aS(e){this._context=e}function aC(e){return new aw(e)}function aN(e){return new av(e)}function aI(e){this._context=e}function aD(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),s=Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function aO(e){return new aI(e)}function aM(e,t){this._context=e,this._t=t}function aL(e){return new aM(e,.5)}function aR(e){return new aM(e,0)}function aP(e){return new aM(e,1)}function aF(e,t,n){this.k=e,this.x=t,this.y=n}ak.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aA(this,this._t0,ax(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,aA(this,ax(this,n=aT(this,e,t)),n);break;default:aA(this,this._t0,n=aT(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(av.prototype=Object.create(aw.prototype)).point=function(e,t){aw.prototype.point.call(this,t,e)},aS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},aI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=aD(e),i=aD(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},aF.prototype={constructor:aF,scale:function(e){return 1===e?this:new aF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new aF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aF(1,0,0);aF.prototype},36088:e=>{function t(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r./.test(e);)e=e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,t,n){return n+t.slice(n.length)});return e}function n(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),n=[];t.length>0;){var r=function(e){for(var t=0,n=0;n<e.length;n++)e[t].length<=e[n].length&&(t=n);return t}(t);n.push(t[r]),t=t.slice(r+1)}return n.join("\r")}e.exports=t,e.exports.escapeCarriageReturn=t,e.exports.escapeCarriageReturnSafe=function(e){if(!e)return"";if(!/\r/.test(e))return e;if(!/\n/.test(e))return n(e);var r=(e=e.replace(/\r+\n/gm,"\n")).lastIndexOf("\n");return t(e.slice(0,r))+"\n"+n(e.slice(r+1))}},36887:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},38033:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,X:()=>o});var r=n(32563),i=n(97096),a=n(32165),s=(0,a.K2)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},"getSubGraphTitleMargins");async function o(e,t){let n=e.getElementsByTagName("img");if(!n||0===n.length)return;let s=""===t.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map(e=>new Promise(t=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",s){let t=(0,i.D7)().fontSize?(0,i.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[n=i.UI.fontSize]=(0,r.I5)(t),a=5*n+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";t(e)}(0,a.K2)(n,"setupImage"),setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}(0,a.K2)(o,"configureLabelImages")},38609:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(49339),i=n(38635),a=n(68289);let s=/[A-Z]/g,o=/-[a-z]/g,l=/^data[-\w.:]+$/i;function c(e,t){let n=(0,a.S)(t),c=t,p=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(o,h);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(s,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=r.E}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},38635:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},39326:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(t=arguments[p],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},o(h,{name:n,newValue:e(f,u,i)})):void 0!==i&&o(h,{name:n,newValue:i}));return h}},41161:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},42112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;let a=(n/=100)<.5?n*(1+t):n+t-n*t,s=2*n-a;switch(i){case"r":return 255*r.hue2rgb(s,a,e+1/3);case"g":return 255*r.hue2rgb(s,a,e);case"b":return 255*r.hue2rgb(s,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{let i=Math.max(e/=255,t/=255,n/=255),a=Math.min(e,t,n),s=(i+a)/2;if("l"===r)return 100*s;if(i===a)return 0;let o=i-a;if("s"===r)return 100*(s>.5?o/(2-i-a):o/(i+a));switch(i){case e:return((t-n)/o+6*(t<n))*60;case t:return((n-e)/o+2)*60;case n:return((e-t)/o+4)*60;default:return -1}}},i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},43328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nO});var r=n(21354),i=n(14759),a=n(3628);n(72475),n(85774),n(63886),n(38033),n(17541);var s=n(88774),o=n(32563),l=n(97096),c=n(32165),u=n(90676),h=n(33948),p="comm",d="rule",f="decl",m="@keyframes",g="@layer",y=Math.abs,b=String.fromCharCode;function _(e,t,n){return e.replace(t,n)}function k(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function T(e){return e.length}function x(e,t){return t.push(e),e}function A(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function w(e,t,n,r){switch(e.type){case g:if(e.children.length)break;case"@import":case"@namespace":case f:return e.return=e.return||e.value;case p:return"";case m:return e.return=e.value+"{"+A(e.children,r)+"}";case d:if(!T(e.value=e.props.join(",")))return""}return T(n=A(e.children,r))?e.return=e.value+"{"+n+"}":""}var v=1,S=1,C=0,N=0,I=0,D="";function O(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:v,column:S,length:s,return:"",siblings:o}}function M(){return I=N<C?k(D,N++):0,S++,10===I&&(S=1,v++),I}function L(){return k(D,N)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(e){var t,n;return(t=N-1,n=function e(t){for(;M();)switch(I){case t:return N;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:M()}return N}(91===e?e+2:40===e?e+1:e),E(D,t,n)).trim()}function F(e,t,n,r,i,a,s,o,l,c,u,h){for(var p=i-1,f=0===i?a:[""],m=f.length,g=0,b=0,k=0;g<r;++g)for(var T=0,x=E(e,p+1,p=y(b=s[g])),A=e;T<m;++T)(A=(b>0?f[T]+" "+x:_(x,/&\f/g,f[T])).trim())&&(l[k++]=A);return O(e,t,n,0===i?d:o,l,c,u,h)}function B(e,t,n,r,i){return O(e,t,n,f,E(e,0,r),E(e,r+1,-1),r,i)}var H=n(91992),U=n(87789),j=n(9101),$=n(32174),z=n(95683);function G(e){if(null==e)return!0;if((0,j.X)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,U.P)(e)||!!(0,z.i)(e)||!!(0,$.N)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var K={id:"c4",detector:(0,c.K2)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await n.e(3837).then(n.bind(n,83837));return{id:"c4",diagram:e}},"loader")},Y="flowchart",q=(0,c.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),W=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:Y,diagram:e}},"loader"),V={id:Y,detector:q,loader:W},X="flowchart-v2",Q=(0,c.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),Z=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:X,diagram:e}},"loader"),J={id:X,detector:Q,loader:Z},ee={id:"er",detector:(0,c.K2)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await n.e(3325).then(n.bind(n,23325));return{id:"er",diagram:e}},"loader")},et="gitGraph",en=(0,c.K2)(e=>/^\s*gitGraph/.test(e),"detector"),er=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7959)]).then(n.bind(n,77959));return{id:et,diagram:e}},"loader"),ei={id:et,detector:en,loader:er},ea="gantt",es=(0,c.K2)(e=>/^\s*gantt/.test(e),"detector"),eo=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2623).then(n.bind(n,52623));return{id:ea,diagram:e}},"loader"),el={id:ea,detector:es,loader:eo},ec="info",eu=(0,c.K2)(e=>/^\s*info/.test(e),"detector"),eh=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(498)]).then(n.bind(n,70498));return{id:ec,diagram:e}},"loader"),ep={id:ec,detector:eu,loader:eh},ed={id:"pie",detector:(0,c.K2)(e=>/^\s*pie/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(83)]).then(n.bind(n,70083));return{id:"pie",diagram:e}},"loader")},ef="quadrantChart",em=(0,c.K2)(e=>/^\s*quadrantChart/.test(e),"detector"),eg=(0,c.K2)(async()=>{let{diagram:e}=await n.e(6922).then(n.bind(n,36922));return{id:ef,diagram:e}},"loader"),ey={id:ef,detector:em,loader:eg},eb="xychart",e_=(0,c.K2)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),ek=(0,c.K2)(async()=>{let{diagram:e}=await n.e(8013).then(n.bind(n,20394));return{id:eb,diagram:e}},"loader"),eE={id:eb,detector:e_,loader:ek},eT="requirement",ex=(0,c.K2)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),eA=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3079).then(n.bind(n,73079));return{id:eT,diagram:e}},"loader"),ew={id:eT,detector:ex,loader:eA},ev="sequence",eS=(0,c.K2)(e=>/^\s*sequenceDiagram/.test(e),"detector"),eC=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(4954),n.e(7198)]).then(n.bind(n,36346));return{id:ev,diagram:e}},"loader"),eN={id:ev,detector:eS,loader:eC},eI="class",eD=(0,c.K2)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),eO=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5567),n.e(5074)]).then(n.bind(n,85074));return{id:eI,diagram:e}},"loader"),eM={id:eI,detector:eD,loader:eO},eL="classDiagram",eR=(0,c.K2)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),eP=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5567),n.e(5034)]).then(n.bind(n,75034));return{id:eL,diagram:e}},"loader"),eF={id:eL,detector:eR,loader:eP},eB="state",eH=(0,c.K2)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),eU=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(2821),n.e(6121),n.e(5749),n.e(3997)]).then(n.bind(n,53997));return{id:eB,diagram:e}},"loader"),ej={id:eB,detector:eH,loader:eU},e$="stateDiagram",ez=(0,c.K2)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eG=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5749),n.e(7343)]).then(n.bind(n,27343));return{id:e$,diagram:e}},"loader"),eK={id:e$,detector:ez,loader:eG},eY="journey",eq=(0,c.K2)(e=>/^\s*journey/.test(e),"detector"),eW=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3274).then(n.bind(n,43274));return{id:eY,diagram:e}},"loader"),eV={id:eY,detector:eq,loader:eW},eX={draw:(0,c.K2)((e,t,n)=>{c.Rm.debug("rendering svg for syntax error\n");let i=(0,r.D)(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},eQ={db:{},renderer:eX,parser:{parse:(0,c.K2)(()=>{},"parse")}},eZ="flowchart-elk",eJ=(0,c.K2)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),e0=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:eZ,diagram:e}},"loader"),e1={id:eZ,detector:eJ,loader:e0},e2="timeline",e3=(0,c.K2)(e=>/^\s*timeline/.test(e),"detector"),e5=(0,c.K2)(async()=>{let{diagram:e}=await n.e(1413).then(n.bind(n,21413));return{id:e2,diagram:e}},"loader"),e9={id:e2,detector:e3,loader:e5},e6="mindmap",e4=(0,c.K2)(e=>/^\s*mindmap/.test(e),"detector"),e8=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3506).then(n.bind(n,3506));return{id:e6,diagram:e}},"loader"),e7={id:e6,detector:e4,loader:e8},te="kanban",tt=(0,c.K2)(e=>/^\s*kanban/.test(e),"detector"),tn=(0,c.K2)(async()=>{let{diagram:e}=await n.e(7547).then(n.bind(n,67547));return{id:te,diagram:e}},"loader"),tr={id:te,detector:tt,loader:tn},ti="sankey",ta=(0,c.K2)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),ts=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2729).then(n.bind(n,22729));return{id:ti,diagram:e}},"loader"),to={id:ti,detector:ta,loader:ts},tl="packet",tc=(0,c.K2)(e=>/^\s*packet(-beta)?/.test(e),"detector"),tu=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(4491)]).then(n.bind(n,14491));return{id:tl,diagram:e}},"loader"),th={id:tl,detector:tc,loader:tu},tp="radar",td=(0,c.K2)(e=>/^\s*radar-beta/.test(e),"detector"),tf=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7006)]).then(n.bind(n,77006));return{id:tp,diagram:e}},"loader"),tm={id:tp,detector:td,loader:tf},tg="block",ty=(0,c.K2)(e=>/^\s*block(-beta)?/.test(e),"detector"),tb=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(2821),n.e(6696)]).then(n.bind(n,26696));return{id:tg,diagram:e}},"loader"),t_={id:tg,detector:ty,loader:tb},tk="treeView",tE=(0,c.K2)(e=>/^\s*treeView-beta/.test(e),"detector"),tT=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(532)]).then(n.bind(n,90532));return{id:tk,diagram:e}},"loader"),tx={id:tk,detector:tE,loader:tT},tA="architecture",tw=(0,c.K2)(e=>/^\s*architecture/.test(e),"detector"),tv=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8747),n.e(8863),n.e(8489)]).then(n.bind(n,18489));return{id:tA,diagram:e}},"loader"),tS={id:tA,detector:tw,loader:tv},tC="eventmodeling",tN=(0,c.K2)(e=>/^\s*eventmodeling/.test(e),"detector"),tI=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7648)]).then(n.bind(n,77648));return{id:tC,diagram:e}},"loader"),tD={id:tC,detector:tN,loader:tI},tO="ishikawa",tM=(0,c.K2)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),tL=(0,c.K2)(async()=>{let{diagram:e}=await n.e(5403).then(n.bind(n,25403));return{id:tO,diagram:e}},"loader"),tR={id:tO,detector:tM,loader:tL},tP="venn",tF=(0,c.K2)(e=>/^\s*venn-beta/.test(e),"detector"),tB=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2947).then(n.bind(n,22947));return{id:tP,diagram:e}},"loader"),tH={id:tP,detector:tF,loader:tB},tU="treemap",tj=(0,c.K2)(e=>/^\s*treemap/.test(e),"detector"),t$=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(1643)]).then(n.bind(n,91643));return{id:tU,diagram:e}},"loader"),tz={id:tU,detector:tj,loader:t$},tG="wardley-beta",tK=(0,c.K2)(e=>/^\s*wardley-beta/i.test(e),"detector"),tY=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(547)]).then(n.bind(n,40547));return{id:tG,diagram:e}},"loader"),tq={id:tG,detector:tK,loader:tY},tW=!1,tV=(0,c.K2)(()=>{tW||(tW=!0,(0,l.Js)("error",eQ,e=>"error"===e.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,c.K2)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.K2)(()=>{},"draw")},parser:{parse:(0,c.K2)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,c.K2)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(e1,e7,tS),(0,l.Xd)(K,tr,eF,eM,ee,el,ep,ed,ew,eN,J,V,e9,ei,eK,ej,eV,ey,to,th,eE,t_,tD,tx,tm,tR,tz,tH,tq))},"addDiagrams"),tX=(0,c.K2)(async()=>{c.Rm.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(l.mW).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,l.Gs)(e)}catch{try{let{diagram:e,id:r}=await n();(0,l.Js)(r,e,t)}catch(t){throw c.Rm.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete l.mW[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(c.Rm.error(`Failed to load ${e.length} external diagrams`),e))c.Rm.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function tQ(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function tZ(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,c.K2)(tQ,"setA11yDiagramInfo"),(0,c.K2)(tZ,"addSVGa11yTitleDescription");var tJ=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,c.K2)(this,"Diagram")}static async fromText(t,n={}){let r=(0,l.zj)(),i=(0,l.Ch)(t,r);t=(0,o.C4)(t)+"\n";try{(0,l.Gs)(i)}catch{let e=(0,l.J$)(i);if(!e)throw new l.C0(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,l.Js)(t,n)}let{db:a,parser:s,renderer:c,init:u}=(0,l.Gs)(i);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(r),n.title&&a.setDiagramTitle?.(n.title),await s.parse(t),new e(i,t,a,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},t0=[],t1=(0,c.K2)(()=>{t0.forEach(e=>{e()}),t0=[]},"attachFunctions"),t2=(0,c.K2)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function t3(e){let t=e.match(l.EJ);if(!t)return{text:e,metadata:{}};let n=(0,i.H)(t[1],{schema:i.r})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}(0,c.K2)(t3,"extractFrontMatter");var t5=(0,c.K2)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),t9=(0,c.K2)(e=>{let{text:t,metadata:n}=t3(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},"processFrontmatter"),t6=(0,c.K2)(e=>{let t=o._K.detectInit(e)??{},n=o._K.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,o.vU)(e),directive:t}},"processDirectives");function t4(e){let t=t9(t5(e)),n=t6(t.text),r=(0,o.$t)(t.config,n.directive);return{code:e=t2(n.text),title:t.title,config:r}}function t8(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,c.K2)(t4,"preprocessDiagram"),(0,c.K2)(t8,"toBase64");var t7=["foreignobject"],ne=["dominant-baseline"];function nt(e){let t=t4(e);return(0,l.cL)(),(0,l.xA)(t.config??{}),t}async function nn(e,t){tV();try{let{code:t,config:n}=nt(e);return{diagramType:(await nf(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,c.K2)(nt,"processAndSetConfigs"),(0,c.K2)(nn,"parse");var nr=(0,c.K2)((e,t,n=[])=>{let r=(0,l.Df)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),ni=(0,c.K2)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,l.E)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{G(e.styles)||r.forEach(t=>{n.insertRule(nr(e.id,t,e.styles),n.cssRules.length)}),G(e.textStyles)||n.insertRule(nr(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,l.KG)(t)+"\n"}else r+=`${e.themeCSS}
|
|
103
103
|
`;return r+(0,l.KG)(n)},"createCssStyles"),na=(0,c.K2)((e,t)=>{var n,r,i,a,s;return A((i=function e(t,n,r,i,a,s,o,l,c){for(var u,h,d,f,m=0,g=0,y=o,A=0,w=0,C=0,H=1,U=1,j=1,$=0,z=0,G="",K=a,Y=s,q=i,W=G;U;)switch(C=z,z=M()){case 40:108!=C&&58==k(W,y-1)?($++,W+="("):W+=P(z);break;case 41:$--,W+=")";break;case 34:case 39:case 91:W+=P(z);break;case 9:case 10:case 13:case 32:if($>0){W+=b(z);break}W+=function(e){for(;I=L();)if(I<33)M();else break;return R(e)>2||R(I)>3?"":" "}(C);break;case 92:W+=function(e,t){for(var n;--t&&M()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return n=N+(t<6&&32==L()&&32==M()),E(D,e,n)}(N-1,7);continue;case 47:switch(L()){case 42:case 47:x((u=function(e,t){for(;M();)if(e+I===57)break;else if(e+I===84&&47===L())break;return"/*"+E(D,t,N-1)+"*"+b(47===e?e:M())}(M(),N),h=n,d=r,f=c,O(u,h,d,p,b(I),E(u,2,-2),0,f)),c),(5==R(C||1)||5==R(L()||1))&&T(W)&&" "!==E(W,-1,void 0)&&(W+=" ");break;default:W+="/"}break;case 123*H:l[m++]=T(W)*j;case 125*H:case 59:case 0:if($>0&&z){W+=b(z);break}switch(z){case 0:case 125:U=0;case 59+g:-1==j&&(W=_(W,/\f/g,"")),w>0&&(T(W)-y||0===H)&&x(w>32?B(W+";",i,r,y-1,c):B(_(W," ","")+";",i,r,y-2,c),c);break;case 59:W+=";";default:if(x(q=F(W,n,r,m,g,a,l,G,K=[],Y=[],y,s),s),123===z)if(0===g)e(W,n,q,q,K,s,y,l,Y);else{switch(A){case 99:if(110===k(W,3))break;case 108:if(97===k(W,2))break;default:g=0;case 100:case 109:case 115:}g?e(t,q,q,i&&x(F(t,q,q,0,0,a,l,G,a,K=[],y,Y),Y),a,Y,y,l,i?K:Y):e(W,q,q,q,[""],Y,0,l,Y)}}m=g=w=0,H=j=1,G=W="",y=o;break;case 58:y=1+T(W),w=C;default:if(H<1){if(123==z)--H;else if(125==z&&0==H++&&125==(I=N>0?k(D,--N):0,S--,10===I&&(S=1,v--),I))continue}switch(W+=b(z),z*H){case 38:j=g>0?1:(W+="\f",-1);break;case 44:if($>0)break;l[m++]=(T(W)-1)*j,j=1;break;case 64:45===L()&&(W+=P(M())),A=L(),g=y=T(G=W+=function(e){for(;!R(L());)M();return E(D,e,N)}(N)),z++;break;case 45:45===C&&2==T(W)&&(H=0)}}return s}("",null,null,null,[""],(r=n=`${e}{${t}}`,v=S=1,C=T(D=r),N=0,n=[]),0,[0],n),D="",i),(s=(a=[(0,c.K2)(function(t,n,r,i){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===m||(t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)):t.type.startsWith("@")&&(["@media","@supports",g,"@scope","@container","@starting-style",m].includes(t.type)||(c.Rm.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=p))},"addNamespace"),w]).length,function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}))},"compileCSS"),ns=(0,c.K2)((e,t,n,r)=>{let i=ni(e,n),a=(0,l.tM)(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return na(r,a)},"createUserStyles"),no=(0,c.K2)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,o.Sm)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),nl=(0,c.K2)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=t8(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
104
104
|
The "iframe" tag is not supported by your browser.
|
|
105
105
|
</iframe>`},"putIntoIFrame"),nc=(0,c.K2)((e,t,n,r,i)=>{let a=e.append("div");a.attr("id",n),r&&a.attr("style",r);let s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&s.attr("xmlns:xlink",i),s.append("g"),e},"appendDivSvgG");function nu(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.K2)(nu,"sandboxedIframe");var nh=(0,c.K2)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),np=(0,c.K2)(async function(e,t,n){let r,i;tV();let a=nt(t);t=a.code;let s=(0,l.zj)();c.Rm.debug(s),t.length>(s?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,u="i"+e,p="#"+u,d="d"+e,f="#"+d,m=(0,c.K2)(()=>{let e=y?p:f,t=(0,h.Ltv)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),g=(0,h.Ltv)(document.body),y="sandbox"===s.securityLevel,b="loose"===s.securityLevel,_=s.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),y){let e=nu((0,h.Ltv)(n),u);(g=(0,h.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else g=(0,h.Ltv)(n);nc(g,e,d,`font-family: ${_}`,"http://www.w3.org/1999/xlink")}else{if(nh(document,e,d,u),y){let e=nu((0,h.Ltv)(document.body),u);(g=(0,h.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else g=(0,h.Ltv)("body");nc(g,e,d)}try{r=await tJ.fromText(t,{title:a.title})}catch(e){if(s.suppressErrorRendering)throw m(),e;r=await tJ.fromText("error"),i=e}let k=g.select(f).node(),E=r.type,T=k.firstChild,x=T.firstChild,A=ns(s,E,r.renderer.getClasses?.(t,r),o),w=document.createElement("style");w.innerHTML=A,T.insertBefore(w,x);try{await r.renderer.draw(t,e,"11.15.0",r)}catch(n){throw s.suppressErrorRendering?m():eX.draw(t,e,"11.15.0"),n}nm(E,g.select(`${f} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let v=g.select(f).node().innerHTML;if(c.Rm.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),v=no(v,y,(0,l._3)(s.arrowMarkerAbsolute)),y?v=nl(v,g.select(f+" svg").node()):b||(v=H.A.sanitize(v,{ADD_TAGS:t7,ADD_ATTR:ne,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),t1(),i)throw i;return m(),{diagramType:E,svg:v,bindFunctions:r.db.bindFunctions}},"render");function nd(e={}){let t=(0,l.hH)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,l.wZ)(t),t?.theme&&t.theme in l.H$?t.themeVariables=l.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=l.H$.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,l.UU)(t):(0,l.Q2)();(0,c.He)(n.logLevel),tV()}(0,c.K2)(nd,"initialize");var nf=(0,c.K2)((e,t={})=>{let{code:n}=t4(e);return tJ.fromText(n,t)},"getDiagramFromText");function nm(e,t,n,r){tQ(t,e),tZ(t,n,r,t.attr("id"))}(0,c.K2)(nm,"addA11yInfo");var ng=Object.freeze({render:np,parse:nn,getDiagramFromText:nf,initialize:nd,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,c.K2)(()=>{(0,l.cL)()},"reset"),globalReset:(0,c.K2)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,c.He)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var ny=(0,c.K2)((e,t,n)=>{c.Rm.warn(e),(0,o.dq)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),nb=(0,c.K2)(async function(e={querySelector:".mermaid"}){try{await n_(e)}catch(t){if((0,o.dq)(t)&&c.Rm.error(t.str),nD.parseError&&nD.parseError(t),!e.suppressErrors)throw c.Rm.error("Use the suppressErrors option to suppress these errors"),t}},"run"),n_=(0,c.K2)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,a=ng.getConfig();if(c.Rm.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");c.Rm.debug(`Found ${r.length} diagrams`),a?.startOnLoad!==void 0&&(c.Rm.debug("Start On Load: "+a?.startOnLoad),ng.updateSiteConfig({startOnLoad:a?.startOnLoad}));let s=new o._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let t of Array.from(r)){if(c.Rm.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${s.next()}`;i=t.innerHTML,i=(0,u.T)(o._K.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=o._K.detectInit(i);r&&c.Rm.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:a}=await nN(n,i,t);t.innerHTML=r,e&&await e(n),a&&a(t)}catch(e){ny(e,l,nD.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),nk=(0,c.K2)(function(e){ng.initialize(e)},"initialize"),nE=(0,c.K2)(async function(e,t,n){c.Rm.warn("mermaid.init is deprecated. Please use run instead."),e&&nk(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await nb(r)},"init"),nT=(0,c.K2)(async(e,{lazyLoad:t=!0}={})=>{tV(),(0,l.Xd)(...e),!1===t&&await tX()},"registerExternalDiagrams"),nx=(0,c.K2)(function(){if(nD.startOnLoad){let{startOnLoad:e}=ng.getConfig();e&&nD.run().catch(e=>c.Rm.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",nx,!1);var nA=(0,c.K2)(function(e){nD.parseError=e},"setParseErrorHandler"),nw=[],nv=!1,nS=(0,c.K2)(async()=>{if(!nv){for(nv=!0;nw.length>0;){let e=nw.shift();if(e)try{await e()}catch(e){c.Rm.error("Error executing queue",e)}}nv=!1}},"executeQueue"),nC=(0,c.K2)(async(e,t)=>new Promise((n,r)=>{let i=(0,c.K2)(()=>new Promise((i,a)=>{ng.parse(e,t).then(e=>{i(e),n(e)},e=>{c.Rm.error("Error parsing",e),nD.parseError?.(e),a(e),r(e)})}),"performCall");nw.push(i),nS().catch(r)}),"parse"),nN=(0,c.K2)((e,t,n)=>new Promise((r,i)=>{let a=(0,c.K2)(()=>new Promise((a,s)=>{ng.render(e,t,n).then(e=>{a(e),r(e)},e=>{c.Rm.error("Error parsing",e),nD.parseError?.(e),s(e),i(e)})}),"performCall");nw.push(a),nS().catch(i)}),"render"),nI=(0,c.K2)(()=>Object.keys(l.mW).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),nD={startOnLoad:!0,mermaidAPI:ng,parse:nC,render:nN,init:nE,run:nb,registerExternalDiagrams:nT,registerLayoutLoaders:a.sO,initialize:nk,parseError:void 0,contentLoaded:nx,setParseErrorHandler:nA,detectType:l.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:nI},nO=nD},44673:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},48006:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,n)}return Array.isArray(e)?s(e,t,n):""}function s(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},48250:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(20768);function i(e,t,n,i){let a,s,o;"function"==typeof t&&"function"!=typeof n?(s=void 0,o=t,a=n):(s=t,o=n,a=i),(0,r.VG)(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}},49339:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(38635),i=n(4800);let a=Object.keys(i);class s extends r.R{constructor(e,t,n,r){let s=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++s<a.length;){const e=a[s];!function(e,t,n){n&&(e[t]=n)}(this,a[s],(n&i[e])===i[e])}}}s.prototype.defined=!0},49359:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},49884:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},50055:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(62835),i=n(4294);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},50643:(e,t,n)=>{"use strict";n.d(t,{jH:()=>r.C});var r=n(12503)},50783:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(41161);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a,s=(i.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(a in o){i.call(s,a)||(s[a]=[]);let e=o[a];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(s[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},51640:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});let r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},51705:(e,t,n)=>{"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},52326:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(68448),i=n(64720);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),s=n.length,o=s%4==0,l=s>4,c=l?1:17,u=l?8:4,h=o?0:-1,p=l?255:15;return r.A.set({r:(i>>u*(h+3)&p)*c,g:(i>>u*(h+2)&p)*c,b:(i>>u*(h+1)&p)*c,a:o?(i&p)*c/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}};var s=n(42112);let o={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(o.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(o.re);if(!n)return;let[,i,a,l,c,u]=n;return r.A.set({h:o._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(l)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${i})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(c.re);if(!n)return;let[,i,a,o,l,u,h,p,d]=n;return r.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:p?s.A.channel.clamp.a(d?parseFloat(p)/100:parseFloat(p)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:o,hsla:o},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||c.parse(e)||o.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.Z.HSL)||void 0===e.data.r?o.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):c.stringify(e)}},52618:(e,t,n)=>{"use strict";function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{i:()=>r})},52634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(r,o))}},54615:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(23091),i=n(78750),a=n(4294);function s(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let s=e.charCodeAt(n),o="";if(37===s&&(0,a.lV)(e.charCodeAt(n+1))&&(0,a.lV)(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){let t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(o=String.fromCharCode(s,t),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function o(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function l(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var c=n(48250),u=n(7370);function h(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function p(e){let t=e.spread;return null==t?e.children.length>1:t}function d(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let f={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=s(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,l+=1,e.footnoteCounts.set(i,l);let c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,c);let u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return h(e,t);let i={src:s(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:s(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return h(e,t);let i={href:s(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:s(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=p(n[r])}return t}(n):p(t),a={},s=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=(0,u.PW)(t.children[1]),s=(0,u.Y)(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,s=a?a.length:t.children.length,o=-1,l=[];for(;++o<s;){let n=t.children[o],r={},s=a?a[o]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(d(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(d(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:m,yaml:m,definition:m,footnoteDefinition:m};function m(){}let g={}.hasOwnProperty,y={};function b(e,t){e.position&&(t.position=(0,u.G1)(e))}function _(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&a&&Object.assign(n.properties,(0,i.Ay)(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function k(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function E(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function T(e,t){let n,a,u,h,p=(n=t||y,a=new Map,u=new Map,h={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=h.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=E(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=E(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:_,definitionById:a,footnoteById:u,footnoteCounts:new Map,footnoteOrder:[],handlers:{...f,...n.handlers},one:function(e,t){let n=e.type,r=h.handlers[n];if(g.call(h.handlers,n)&&r)return r(h,e,t);if(h.options.passThrough&&h.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=(0,i.Ay)(n);return r.children=h.all(e),r}return(0,i.Ay)(e)}return(h.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(g.call(n,"hProperties")||g.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(h,e,t)},options:n,patch:b,wrap:k},(0,c.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?a:u,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),h),d=p.one(e,void 0),m=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||o,r=e.options.footnoteBackLabel||l,a=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},h=[],p=-1;for(;++p<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[p]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=s(o.toLowerCase()),c=0,u=[],d=e.footnoteCounts.get(o);for(;void 0!==d&&++c<=d;){u.length>0&&u.push({type:"text",value:" "});let e="string"==typeof n?n:n(p,c);"string"==typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(p,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...u)}else a.push(...u);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(a,!0)};e.patch(i,m),h.push(m)}if(0!==h.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...(0,i.Ay)(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(h,!0)},{type:"text",value:"\n"}]}}(p),T=Array.isArray(d)?{type:"root",children:d}:d||{type:"root",children:[]};return m&&((0,r.ok)("children"in T),T.children.push({type:"text",value:"\n"},m)),T}function x(e,t){return e&&"run"in e?async function(n,r){let i=T(n,{file:r,...t});await e.run(i,r)}:function(n,r){return T(n,{file:r,...e||t})}}},56424:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(28830);class i extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",a={},s=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!a.cause&&e&&(s=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=(0,r.L)(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},60598:(e,t,n)=>{"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===i(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(){return function(e,t){t.normalize(e)}}function h(e){var t=e.re=n(8047)(e.__opts__),r=e.__tlds__.slice();function o(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,s={validate:null,link:null};if(e.__compiled__[t]=s,"[object Object]"===i(n)){"[object RegExp]"===i(n.validate)?(r=n.validate,s.validate=function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):a(n.validate)?s.validate=n.validate:c(t,n),a(n.normalize)?s.normalize=n.normalize:n.normalize?c(t,n):s.normalize=u();return}if("[object String]"===i(n))return void l.push(t);c(t,n)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:u()};var h=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=r({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},h(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,h(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){var t,n,r,i,a,s,o,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((o=this.re.schema_search).lastIndex=0;null!==(t=o.exec(e));)if(i=this.testSchemaAt(e,t[2],o.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),h(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},62835:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(4294);function i(e,t,n,i){let a=i?i-1:1/0,s=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(o){return(0,r.On)(o)&&s++<a?(e.consume(o),i):(e.exit(n),t(o))}(i)):t(i)}}},64463:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},64720:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,Z:()=>a});var r=n(42112);let i={};for(let e=0;e<=255;e++)i[e]=r.A.unit.dec2hex(e);let a={ALL:0,RGB:1,HSL:2}},64907:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(42112),i=n(52326);let a=(e,t,n)=>{let a=i.A.parse(e),s=a[t],o=r.A.channel.clamp[t](s+n);return s!==o&&(a[t]=o),i.A.stringify(a)}},68195:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64907);let i=(e,t)=>(0,r.A)(e,"l",-t)},68289:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},68420:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(42112),i=n(52326);let a=(e,t)=>{let n=i.A.parse(e);for(let e in t)n[e]=r.A.channel.clamp[e](t[e]);return i.A.stringify(n)}},68448:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(42112),i=n(64720);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.Z.ALL}is(e){return this.type===e}}class s{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.Z.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}let o=new s({r:0,g:0,b:0,a:0},"transparent")},72148:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(56424);let i=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');l(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},a=function(e){let t;if(l(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},s=function(e){let t;l(e);let n=e.length,r=-1,i=0,a=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&a===r-1&&a===i+1?"":e.slice(a,r)},o=function(...e){var t;let n,r,i,a=-1;for(;++a<e.length;)l(e[a]),e[a]&&(i=void 0===i?e[a]:i+"/"+e[a]);return void 0===i?".":(l(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",a=0,s=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(s===l-1||1===o);else if(s!==l-1&&2===o){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function l(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function c(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let u=["history","path","basename","stem","extname","dirname"];class h{constructor(e){let t,n;t=e?c(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<u.length;){const e=u[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)u.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?i(this.path):void 0}set basename(e){d(e,"basename"),p(e,"basename"),this.path=o(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?a(this.path):void 0}set dirname(e){f(this.basename,"dirname"),this.path=o(e||"",this.basename)}get extname(){return"string"==typeof this.path?s(this.path):void 0}set extname(e){if(p(e,"extname"),f(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=o(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){c(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!c(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),d(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?i(this.path,this.extname):void 0}set stem(e){d(e,"stem"),p(e,"stem"),this.path=o(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let i=new r.o(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function p(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function d(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}},72152:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(52326),i=n(13222);let a=(e,t=100)=>{let n=r.A.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((e,t,n=50)=>{let{r:a,g:s,b:o,a:l}=r.A.parse(e),{r:c,g:u,b:h,a:p}=r.A.parse(t),d=n/100,f=2*d-1,m=l-p,g=((f*m==-1?f:(f+m)/(1+f*m))+1)/2,y=1-g;return(0,i.A)(a*g+c*y,s*g+u*y,o*g+h*y,l*d+p*(1-d))})(n,e,t)}},72475:(e,t,n)=>{"use strict";n.d(t,{IU:()=>k,Jo:()=>O,T_:()=>A,g0:()=>ei,jP:()=>T});var r=n(85774),i=n(63886),a=n(38033),s=n(17541),o=n(88774),l=n(32563),c=n(97096),u=n(32165),h=n(33948),p=n(94529),d=(0,u.K2)((e,t,n,r,i,a=!1,s)=>{t.arrowTypeStart&&g(e,"start",t.arrowTypeStart,n,r,i,a,s),t.arrowTypeEnd&&g(e,"end",t.arrowTypeEnd,n,r,i,a,s)},"addEdgeMarkers"),f={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},m=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],g=(0,u.K2)((e,t,n,r,i,a,s=!1,o)=>{let l=f[n],c=l&&m.includes(l.type);if(!l)return void u.Rm.warn(`Unknown arrow type: ${n}`);let h=l.type,p=`${i}_${a}-${h}${"start"===t?"Start":"End"}${s&&c?"-margin":""}`;if(o&&""!==o.trim()){let n=o.replace(/[^\dA-Za-z]/g,"_"),i=`${p}_${n}`;if(!document.getElementById(i)){let e=document.getElementById(p);if(e){let t=e.cloneNode(!0);t.id=i,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",o),l.fill&&e.setAttribute("fill",o)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${i})`)}else e.attr(`marker-${t}`,`url(${r}#${p})`)},"addEdgeMarker"),y=(0,u.K2)(e=>"string"==typeof e?e:(0,c.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),b=new Map,_=new Map,k=(0,u.K2)(()=>{b.clear(),_.clear()},"clear"),E=(0,u.K2)(e=>e?"string"==typeof e?e:e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),T=(0,u.K2)(async(e,t)=>{let n,a=(0,c.D7)(),l=(0,c.E)(a),{labelStyles:p}=(0,s.GX)(t);t.labelStyle=p;let d=e.insert("g").attr("class","edgeLabel"),f=d.insert("g").attr("class","label").attr("data-id",t.id),m="markdown"===t.labelType,g=await (0,o.GZ)(e,t.label,{style:E(t.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:m,width:void 0},a);f.node().appendChild(g),u.Rm.info("abc82",t,t.labelType);let y=g.getBBox(),k=y;if(l){let e=g.children[0],t=(0,h.Ltv)(g);k=y=e.getBoundingClientRect(),t.attr("width",y.width),t.attr("height",y.height)}else{let e=(0,h.Ltv)(g).select("text").node();e&&"function"==typeof e.getBBox&&(k=e.getBBox())}if(f.attr("transform",(0,r.Wg)(k,l)),b.set(t.id,d),t.width=y.width,t.height=y.height,t.startLabelLeft){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(s,t.startLabelLeft,E(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=a,x(n,t.startLabelLeft)}if(t.startLabelRight){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(s,t.startLabelRight,E(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=a,x(n,t.startLabelRight)}if(t.endLabelLeft){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(a,t.endLabelLeft,E(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=a,x(n,t.endLabelLeft)}if(t.endLabelRight){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(a,t.endLabelRight,E(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=a,x(n,t.endLabelRight)}return g},"insertEdgeLabel");function x(e,t){(0,c.E)((0,c.D7)())&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,u.K2)(x,"setTerminalWidth");var A=(0,u.K2)((e,t)=>{u.Rm.debug("Moving label abc88 ",e.id,e.label,b.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=(0,c.D7)(),{subGraphTitleTotalMargin:i}=(0,a.O)(r);if(e.label){let r=b.get(e.id),a=e.x,s=e.y;if(n){let r=l._K.calcLabelPosition(n);u.Rm.debug("Moving label "+e.label+" from (",a,",",s,") to (",r.x,",",r.y,") abc88"),t.updatedPath&&(a=r.x,s=r.y)}r.attr("transform",`translate(${a}, ${s+i/2})`)}if(e.startLabelLeft){let t=_.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){let t=_.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=_.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){let t=_.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}},"positionEdgeLabel"),w=(0,u.K2)((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),s=e.width/2,o=e.height/2;return i>=s||a>=o},"outsideNode"),v=(0,u.K2)((e,t,n)=>{u.Rm.debug(`intersection calc abc89:
|