@qt4798/pi-web 0.17.5 → 0.17.6
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 -0
- package/.next/app-path-routes-manifest.json +97 -0
- package/.next/build-manifest.json +20 -0
- package/.next/diagnostics/build-diagnostics.json +1 -1
- package/.next/export-marker.json +6 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/prerender-manifest.json +193 -0
- package/.next/react-loadable-manifest.json +413 -0
- package/.next/required-server-files.js +368 -0
- package/.next/required-server-files.json +368 -0
- package/.next/routes-manifest.json +682 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +27 -0
- package/.next/server/app/_global-error.rsc +14 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +27 -0
- package/.next/server/app/_not-found.rsc +19 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +19 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +25 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/api/agent/[id]/bash-output/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/[id]/events/route.js +3 -1
- package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/running/events/route.js +1 -1
- package/.next/server/app/api/agent/running/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/running/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/running/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/app-update/route.js.nft.json +1 -1
- package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/combined/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/combined/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/providers/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/backup/export/route.js.nft.json +1 -1
- package/.next/server/app/api/backup/export/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/backup/import/route.js.nft.json +1 -1
- package/.next/server/app/api/backup/import/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/cwd/browse/route.js.nft.json +1 -1
- package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/cwd/validate/route.js.nft.json +1 -1
- package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/deepseek/balance/route.js.nft.json +1 -1
- package/.next/server/app/api/deepseek/balance/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/default-cwd/route.js.nft.json +1 -1
- package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/events/route.js +3 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/features/route.js.nft.json +1 -1
- package/.next/server/app/api/features/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/file-index/route.js.nft.json +1 -1
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/git/push/route.js.nft.json +1 -1
- package/.next/server/app/api/git/push/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/git/stash/route.js.nft.json +1 -1
- package/.next/server/app/api/git/stash/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/git/status/route.js.nft.json +1 -1
- package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/home/route.js.nft.json +1 -1
- package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/import/discover/route.js.nft.json +1 -1
- package/.next/server/app/api/import/discover/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/import/execute/route.js.nft.json +1 -1
- package/.next/server/app/api/import/execute/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/import/status/route.js.nft.json +1 -1
- package/.next/server/app/api/import/status/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/logs/route.js.nft.json +1 -1
- package/.next/server/app/api/logs/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/mcp/restart/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models/route.js.nft.json +1 -1
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/builtin/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/builtin/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/discover/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/test/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/modes/route.js.nft.json +1 -1
- package/.next/server/app/api/modes/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/plugins/check/route.js.nft.json +1 -1
- package/.next/server/app/api/plugins/check/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/plugins/route.js.nft.json +1 -1
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/project-aliases/route.js.nft.json +1 -1
- package/.next/server/app/api/project-aliases/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next/server/app/api/project-state/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/project-trust/route.js.nft.json +1 -1
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/projects/visibility/route.js.nft.json +1 -1
- package/.next/server/app/api/projects/visibility/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/proxy/route.js.nft.json +1 -1
- package/.next/server/app/api/proxy/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/proxy/test/route.js.nft.json +1 -1
- package/.next/server/app/api/proxy/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/details/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/details/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/export/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/queue-recovery/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/queue-recovery/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/search/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/settings/title-model/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/title-model/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/check/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/search/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/update/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/snippets/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/snippets/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/snippets/route.js.nft.json +1 -1
- package/.next/server/app/api/snippets/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/profiles/route.js.nft.json +1 -1
- package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/[action]/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[id]/[action]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/changed-files/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[id]/changed-files/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/diff/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[id]/diff/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[id]/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/batch/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/batch/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/events/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/templates/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/templates/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/terminal/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/terminal/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/terminal/route.js.nft.json +1 -1
- package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/themes/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/themes/[name]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/themes/route.js.nft.json +1 -1
- package/.next/server/app/api/themes/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tools/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/tools/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/usage/route.js.nft.json +1 -1
- package/.next/server/app/api/usage/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/vision-config/route.js.nft.json +1 -1
- package/.next/server/app/api/vision-config/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -0
- package/.next/server/app/icon.ico/route.js.nft.json +1 -1
- package/.next/server/app/icon.ico.body +0 -0
- package/.next/server/app/icon.ico.meta +1 -0
- package/.next/server/app/icon.png/route.js.nft.json +1 -1
- package/.next/server/app/icon.png.body +0 -0
- package/.next/server/app/icon.png.meta +1 -0
- package/.next/server/app/icon.svg/route.js.nft.json +1 -1
- package/.next/server/app/icon.svg.body +1 -0
- package/.next/server/app/icon.svg.meta +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +21 -0
- package/.next/server/app/index.rsc +19 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +24 -0
- package/.next/server/app/index.segments/_full.segment.rsc +19 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +7 -7
- package/.next/server/chunks/7915.js +1 -1
- package/.next/server/functions-config-manifest.json +18 -0
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/middleware.js.nft.json +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -1
- package/.next/server/prefetch-hints.json +39 -0
- package/.next/static/-FpELgirC8Ejs9kir4c8Q/_buildManifest.js +1 -0
- package/.next/static/-FpELgirC8Ejs9kir4c8Q/_ssgManifest.js +1 -0
- package/.next/static/chunks/103.23142a67b02246a8.js +215 -0
- package/.next/static/chunks/1032.12b382a9096ab2a4.js +1 -0
- package/.next/static/chunks/1063.775c442bdbeef08b.js +1 -0
- package/.next/static/chunks/1327.09252bb80616cc3a.js +1 -0
- package/.next/static/chunks/1708.d029f8776e4578de.js +1 -0
- package/.next/static/chunks/1781.866132cea8e77cd0.js +1 -0
- package/.next/static/chunks/1ba63609.b2ae90f43319a29e.js +153 -0
- package/.next/static/chunks/2081.47b6e9391094055f.js +1 -0
- package/.next/static/chunks/2181.ba21239d3ac39f81.js +1 -0
- package/.next/static/chunks/2258.4defa30121ef44a5.js +1 -0
- package/.next/static/chunks/2325.23caf22075e51aa5.js +1 -0
- package/.next/static/chunks/2356.523277bb8c6bf72a.js +23 -0
- package/.next/static/chunks/2418.b5d9e177e10a686e.js +1 -0
- package/.next/static/chunks/2539.c5a4f2fd8e421c70.js +41 -0
- package/.next/static/chunks/2619.9431a3f48da8eef4.js +1 -0
- package/.next/static/chunks/268.72794ee2773c2060.js +80 -0
- package/.next/static/chunks/2703.495a65ed14b2f094.js +36 -0
- package/.next/static/chunks/2821.934bcf60fbdc28c6.js +1 -0
- package/.next/static/chunks/3251.0dce7a0a0ff67235.js +1 -0
- package/.next/static/chunks/3308.18c2954e9a937988.js +73 -0
- package/.next/static/chunks/3336.a76f9485fe7cb762.js +1 -0
- package/.next/static/chunks/370.8e8f3cf8eb0e29dd.js +1 -0
- package/.next/static/chunks/3716.72bf4c9d7325debd.js +1 -0
- package/.next/static/chunks/3794-eb2b2ea32d17f197.js +52 -0
- package/.next/static/chunks/398.ffa02af9062a3950.js +77 -0
- package/.next/static/chunks/3995.eca0f5bef1fc3ae5.js +38 -0
- package/.next/static/chunks/4004.74b9bcf5478b1663.js +160 -0
- package/.next/static/chunks/4202.8440832386f023c7.js +226 -0
- package/.next/static/chunks/4238.8c87d84edfed6131.js +141 -0
- package/.next/static/chunks/4405.c4b4ce2efac94ed2.js +287 -0
- package/.next/static/chunks/4424.fd0c93a807a333e1.js +1 -0
- package/.next/static/chunks/4866.d1060b4faf2ae1e2.js +1 -0
- package/.next/static/chunks/4970.8a63b4953b0e4946.js +1 -0
- package/.next/static/chunks/4bd1b696-04d4e6726f46d1d5.js +1 -0
- package/.next/static/chunks/5020.9ac8d0dc8390bb6e.js +1 -0
- package/.next/static/chunks/5137.f163e94c74a94d01.js +1 -0
- package/.next/static/chunks/5242.7b643c6b3394cac1.js +1 -0
- package/.next/static/chunks/5361.afc00ab2626bacbf.js +1 -0
- package/.next/static/chunks/5521.cfdf2cfc6db31407.js +1 -0
- package/.next/static/chunks/5526.ff46471041fdcb79.js +86 -0
- package/.next/static/chunks/5681.dd0e66b0de16e54b.js +27 -0
- package/.next/static/chunks/6121.eb9023b1cbc78ee2.js +1 -0
- package/.next/static/chunks/6161.4836cd7d031026bf.js +1 -0
- package/.next/static/chunks/6195.1153369f5f8b13a2.js +24 -0
- package/.next/static/chunks/6294.24f510c0c3e3714c.js +1 -0
- package/.next/static/chunks/6654.16f727522ec47f5a.js +1 -0
- package/.next/static/chunks/6794.f746d8fbbf248ecf.js +93 -0
- package/.next/static/chunks/7256.e07cf52d87d40252.js +1 -0
- package/.next/static/chunks/7268.236544be8e242c16.js +1 -0
- package/.next/static/chunks/7331.2add3c4e125a2dba.js +104 -0
- package/.next/static/chunks/7543.89f7b805ed0f2901.js +1 -0
- package/.next/static/chunks/8200.a36b9f8c983c6b9e.js +5 -0
- package/.next/static/chunks/8403.1f5a2b397c89fd5e.js +90 -0
- package/.next/static/chunks/8518.3ce3832c4422f57c.js +1 -0
- package/.next/static/chunks/869.7152372b662e31af.js +1 -0
- package/.next/static/chunks/8863.fa0320ea586efb3b.js +1 -0
- package/.next/static/chunks/8885.cf60cac98bf8b70c.js +79 -0
- package/.next/static/chunks/8901.e117d206a917bda0.js +1 -0
- package/.next/static/chunks/90542734.7d1c50d0290e4f3a.js +1 -0
- package/.next/static/chunks/918.6a9bbe564e4a2d0f.js +115 -0
- package/.next/static/chunks/934.9006461bd0548660.js +1 -0
- package/.next/static/chunks/9522.c7c6e9c330f9ba6b.js +1 -0
- package/.next/static/chunks/9614.3221013d7f0af27f.js +64 -0
- package/.next/static/chunks/9698.4d09a99b9d99f3e5.js +148 -0
- package/.next/static/chunks/9705.40a82b97f214e28b.js +1 -0
- package/.next/static/chunks/973.88e865b52eff479a.js +8 -0
- package/.next/static/chunks/9764.2669775c6e107a01.js +62 -0
- package/.next/static/chunks/9786-a857d8cac4c6f124.js +1 -0
- package/.next/static/chunks/9793.4567af813117ad25.js +1 -0
- package/.next/static/chunks/99.280e10a836dfdb17.js +24 -0
- package/.next/static/chunks/993e5495.8797001fcfcf2889.js +62 -0
- package/.next/static/chunks/9974.9a0f79beca65e8c4.js +34 -0
- package/.next/static/chunks/app/_global-error/page-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/_not-found/page-4e8d0b14be117d20.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/agent/running/events/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/auth/combined/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/backup/export/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/backup/import/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/deepseek/balance/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/events/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/features/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/git/push/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/git/stash/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/home/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/import/discover/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/import/execute/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/import/status/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/logs/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/mcp/restart/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/models/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/models-config/builtin/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/modes/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/project-aliases/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/project-state/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/projects/visibility/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/proxy/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/proxy/test/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/details/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/settings/title-model/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/skills/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/snippets/[id]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/snippets/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/events/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/batch/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/events/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/settings/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tasks/templates/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/themes/[name]/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/themes/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/usage/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/vision-config/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/app/layout-fc58518b92867e7e.js +1 -0
- package/.next/static/chunks/app/page-ba6129bed700ce78.js +48 -0
- package/.next/static/chunks/bf2ff291.3a109dffc1fe84af.js +122 -0
- package/.next/static/chunks/d3ac728e-7964f816a1ca64e5.js +1 -0
- package/.next/static/chunks/da12927c.df8334cb8b491be6.js +82 -0
- package/.next/static/chunks/db9d41be.e72ce090a86a3691.js +1 -0
- package/.next/static/chunks/framework-231c77385631dae2.js +1 -0
- package/.next/static/chunks/main-39024e6d570ad5e5.js +5 -0
- package/.next/static/chunks/main-app-0b45ce7a4444c85e.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-9b3287a6309b286c.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-fa23a1b416b6ac37.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-2d83e8fd8b1ff262.js +1 -0
- package/.next/static/css/1e6342ca3186c2ef.css +1 -0
- package/.next/static/css/2f46e0db0d4a3aed.css +1 -0
- package/.next/static/css/99c274a528914086.css +1 -0
- package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
- package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
- package/.next/static/media/ia-writer-quattro-latin-400-italic.1041824d.woff2 +0 -0
- package/.next/static/media/ia-writer-quattro-latin-400-italic.e1e60bf7.woff +0 -0
- package/.next/static/media/ia-writer-quattro-latin-400-normal.179d7f9d.woff2 +0 -0
- package/.next/static/media/ia-writer-quattro-latin-400-normal.7404fbdc.woff +0 -0
- package/.next/static/media/ia-writer-quattro-latin-700-italic.5f79ad89.woff +0 -0
- package/.next/static/media/ia-writer-quattro-latin-700-italic.a08768ff.woff2 +0 -0
- package/.next/static/media/ia-writer-quattro-latin-700-normal.9d4027b4.woff +0 -0
- package/.next/static/media/ia-writer-quattro-latin-700-normal.af04a9c2.woff2 +0 -0
- package/.next/static/media/lilex-cyrillic-400-normal.0dd1e3b7.woff2 +0 -0
- package/.next/static/media/lilex-cyrillic-400-normal.8097f131.woff +0 -0
- package/.next/static/media/lilex-cyrillic-ext-400-normal.13382a44.woff +0 -0
- package/.next/static/media/lilex-cyrillic-ext-400-normal.a1c2a378.woff2 +0 -0
- package/.next/static/media/lilex-greek-400-normal.97f26b1d.woff2 +0 -0
- package/.next/static/media/lilex-greek-400-normal.eb5c7c4d.woff +0 -0
- package/.next/static/media/lilex-latin-400-normal.3a7b14b0.woff +0 -0
- package/.next/static/media/lilex-latin-400-normal.62552ea0.woff2 +0 -0
- package/.next/static/media/lilex-latin-ext-400-normal.0297da55.woff2 +0 -0
- package/.next/static/media/lilex-latin-ext-400-normal.dc9a3323.woff +0 -0
- package/.next/static/media/lilex-symbols2-400-normal.131e0f42.woff2 +0 -0
- package/.next/static/media/lilex-symbols2-400-normal.eb403d1f.woff +0 -0
- package/.next/static/media/lilex-vietnamese-400-normal.53b3f1dc.woff2 +0 -0
- package/.next/static/media/lilex-vietnamese-400-normal.dfbef8e4.woff +0 -0
- package/.next/trace +8 -2
- package/.next/trace-build +1 -1
- package/package.json +1 -1
- package/.next/lock +0 -0
- package/.next/server/proxy.js.nft.json +0 -1
- /package/.next/server/{proxy.js → middleware.js} +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7331],{7331:(t,e,r)=>{r.d(e,{diagram:()=>tM});var o=r(94434),a=r(80650),i=r(86305),n=r(37325),s=r(56037),c=r(89851),d=r(88863),l=r(33948),h={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$=n.UI.gitGraph,m=(0,c.K)(()=>(0,i.$t)({...$,...(0,n.zj)().gitGraph}),"getConfig"),g=new o.m(()=>{let t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function p(){return(0,i.yT)({length:7})}function y(t,e){let r=Object.create(null);return t.reduce((t,o)=>{let a=e(o);return r[a]||(r[a]=!0,t.push(o)),t},[])}(0,c.K)(p,"getID"),(0,c.K)(y,"uniqBy");var f=(0,c.K)(function(t){g.records.direction=t},"setDirection"),x=(0,c.K)(function(t){s.R.debug("options str",t),t=(t=t?.trim())||"{}";try{g.records.options=JSON.parse(t)}catch(t){s.R.error("error while parsing gitGraph options",t.message)}},"setOptions"),u=(0,c.K)(function(){return g.records.options},"getOptions"),b=(0,c.K)(function(t){let e=t.msg,r=t.id,o=t.type,a=t.tags;s.R.info("commit",e,r,o,a),s.R.debug("Entering commit:",e,r,o,a);let i=m();r=n.Y2.sanitizeText(r,i),e=n.Y2.sanitizeText(e,i),a=a?.map(t=>n.Y2.sanitizeText(t,i));let c={id:r||g.records.seq+"-"+p(),message:e,seq:g.records.seq++,type:o??h.NORMAL,tags:a??[],parents:null==g.records.head?[]:[g.records.head.id],branch:g.records.currBranch};g.records.head=c,s.R.info("main branch",i.mainBranchName),g.records.commits.has(c.id)&&s.R.warn(`Commit ID ${c.id} already exists`),g.records.commits.set(c.id,c),g.records.branches.set(g.records.currBranch,c.id),s.R.debug("in pushCommit "+c.id)},"commit"),k=(0,c.K)(function(t){let e=t.name,r=t.order;if(e=n.Y2.sanitizeText(e,m()),g.records.branches.has(e))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);g.records.branches.set(e,null!=g.records.head?g.records.head.id:null),g.records.branchConfig.set(e,{name:e,order:r}),E(e),s.R.debug("in createBranch")},"branch"),B=(0,c.K)(t=>{let e=t.branch,r=t.id,o=t.type,a=t.tags,i=m();e=n.Y2.sanitizeText(e,i),r&&(r=n.Y2.sanitizeText(r,i));let c=g.records.branches.get(g.records.currBranch),d=g.records.branches.get(e),l=c?g.records.commits.get(c):void 0,$=d?g.records.commits.get(d):void 0;if(l&&$&&l.branch===e)throw Error(`Cannot merge branch '${e}' into itself.`);if(g.records.currBranch===e){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(void 0===l||!l){let t=Error(`Incorrect usage of "merge". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},t}if(!g.records.branches.has(e)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},t}if(void 0===$||!$){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},t}if(l===$){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(r&&g.records.commits.has(r)){let t=Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw t.hash={text:`merge ${e} ${r} ${o} ${a?.join(" ")}`,token:`merge ${e} ${r} ${o} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${o} ${a?.join(" ")}`]},t}let y={id:r||`${g.records.seq}-${p()}`,message:`merged branch ${e} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,d||""],branch:g.records.currBranch,type:h.MERGE,customType:o,customId:!!r,tags:a??[]};g.records.head=y,g.records.commits.set(y.id,y),g.records.branches.set(g.records.currBranch,y.id),s.R.debug(g.records.branches),s.R.debug("in mergeBranch")},"merge"),w=(0,c.K)(function(t){let e=t.id,r=t.targetId,o=t.tags,a=t.parent;s.R.debug("Entering cherryPick:",e,r,o);let i=m();if(e=n.Y2.sanitizeText(e,i),r=n.Y2.sanitizeText(r,i),o=o?.map(t=>n.Y2.sanitizeText(t,i)),a=n.Y2.sanitizeText(a,i),!e||!g.records.commits.has(e)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let c=g.records.commits.get(e);if(void 0===c||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(c.parents)&&c.parents.includes(a)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=c.branch;if(c.type===h.MERGE&&!a)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!g.records.commits.has(r)){if(d===g.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let t=g.records.branches.get(g.records.currBranch);if(void 0===t||!t){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let i=g.records.commits.get(t);if(void 0===i||!i){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let n={id:g.records.seq+"-"+p(),message:`cherry-picked ${c?.message} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,c.id],branch:g.records.currBranch,type:h.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${c.id}${c.type===h.MERGE?`|parent:${a}`:""}`]};g.records.head=n,g.records.commits.set(n.id,n),g.records.branches.set(g.records.currBranch,n.id),s.R.debug(g.records.branches),s.R.debug("in cherryPick")}},"cherryPick"),E=(0,c.K)(function(t){if(t=n.Y2.sanitizeText(t,m()),g.records.branches.has(t)){g.records.currBranch=t;let e=g.records.branches.get(g.records.currBranch);void 0!==e&&e?g.records.head=g.records.commits.get(e)??null:g.records.head=null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function T(t,e,r){let o=t.indexOf(e);-1===o?t.push(r):t.splice(o,1,r)}function C(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+=" *":r+=" |"});let o=[r,e.id,e.seq];for(let t in g.records.branches)g.records.branches.get(t)===e.id&&o.push(t);if(s.R.debug(o.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){let r=g.records.commits.get(e.parents[0]);T(t,e,r),e.parents[1]&&t.push(g.records.commits.get(e.parents[1]))}else if(0==e.parents.length)return;else if(e.parents[0]){let r=g.records.commits.get(e.parents[0]);T(t,e,r)}C(t=y(t,t=>t.id))}(0,c.K)(T,"upsert"),(0,c.K)(C,"prettyPrintCommitHistory");var L=(0,c.K)(function(){s.R.debug(g.records.commits),C([I()[0]])},"prettyPrint"),K=(0,c.K)(function(){g.reset(),(0,n.IU)()},"clear"),M=(0,c.K)(function(){return[...g.records.branchConfig.values()].map((t,e)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${e}`)}).sort((t,e)=>(t.order??0)-(e.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),R=(0,c.K)(function(){return g.records.branches},"getBranches"),v=(0,c.K)(function(){return g.records.commits},"getCommits"),I=(0,c.K)(function(){let t=[...g.records.commits.values()];return t.forEach(function(t){s.R.debug(t.id)}),t.sort((t,e)=>t.seq-e.seq),t},"getCommitsArray"),P={commitType:h,getConfig:m,setDirection:f,setOptions:x,getOptions:u,commit:b,branch:k,merge:B,cherryPick:w,checkout:E,prettyPrint:L,clear:K,getBranchesAsObjArray:M,getBranches:R,getCommits:v,getCommitsArray:I,getCurrentBranch:(0,c.K)(function(){return g.records.currBranch},"getCurrentBranch"),getDirection:(0,c.K)(function(){return g.records.direction},"getDirection"),getHead:(0,c.K)(function(){return g.records.head},"getHead"),setAccTitle:n.SV,getAccTitle:n.iN,getAccDescription:n.m7,setAccDescription:n.EI,setDiagramTitle:n.ke,getDiagramTitle:n.ab},O=(0,c.K)((t,e)=>{for(let r of((0,a.S)(t,e),t.dir&&e.setDirection(t.dir),t.statements))A(r,e)},"populate"),A=(0,c.K)((t,e)=>{let r={Commit:(0,c.K)(t=>e.commit(G(t)),"Commit"),Branch:(0,c.K)(t=>e.branch(S(t)),"Branch"),Merge:(0,c.K)(t=>e.merge(H(t)),"Merge"),Checkout:(0,c.K)(t=>e.checkout(D(t)),"Checkout"),CherryPicking:(0,c.K)(t=>e.cherryPick(W(t)),"CherryPicking")}[t.$type];r?r(t):s.R.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),G=(0,c.K)(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?h[t.type]:h.NORMAL,tags:t.tags??void 0}),"parseCommit"),S=(0,c.K)(t=>({name:t.name,order:t.order??0}),"parseBranch"),H=(0,c.K)(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?h[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),D=(0,c.K)(t=>t.branch,"parseCheckout"),W=(0,c.K)(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),q={parse:(0,c.K)(async t=>{let e=await (0,d.qg)("gitGraph",t);s.R.debug(e),O(e,P)},"parse")},_=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),z=new Set(["redux-color","redux-dark-color"]),Y=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),N=(0,c.K)((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),j=new Map,F=new Map,U=new Map,V=[],J=0,Q="LR",X=(0,c.K)(()=>{j.clear(),F.clear(),U.clear(),J=0,V=[],Q="LR"},"clear"),Z=(0,c.K)(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),tt=(0,c.K)(t=>{let e,r,o;return"BT"===Q?(r=(0,c.K)((t,e)=>t<=e,"comparisonFunc"),o=1/0):(r=(0,c.K)((t,e)=>t>=e,"comparisonFunc"),o=0),t.forEach(t=>{let a="TB"===Q||"BT"==Q?F.get(t)?.y:F.get(t)?.x;void 0!==a&&r(a,o)&&(e=t,o=a)}),e},"findClosestParent"),te=(0,c.K)(t=>{let e="",r=1/0;return t.forEach(t=>{let o=F.get(t).y;o<=r&&(e=t,r=o)}),e||void 0},"findClosestParentBT"),tr=(0,c.K)((t,e,r)=>{let o=r,a=r,i=[];t.forEach(t=>{let r=e.get(t);if(!r)throw Error(`Commit not found for key ${t}`);r.parents.length?a=Math.max(o=ta(r),a):i.push(r),ti(r,o)}),o=a,i.forEach(t=>{tn(t,o,r)}),t.forEach(t=>{let r=e.get(t);if(r?.parents.length){let t=te(r.parents);(o=F.get(t).y-40)<=a&&(a=o);let e=j.get(r.branch).pos,i=o-10;F.set(r.id,{x:e,y:i})}})},"setParallelBTPos"),to=(0,c.K)(t=>{let e=tt(t.parents.filter(t=>null!==t));if(!e)throw Error(`Closest parent not found for commit ${t.id}`);let r=F.get(e)?.y;if(void 0===r)throw Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),ta=(0,c.K)(t=>to(t)+40,"calculateCommitPosition"),ti=(0,c.K)((t,e)=>{let r=j.get(t.branch);if(!r)throw Error(`Branch not found for commit ${t.id}`);let o=r.pos,a=e+10;return F.set(t.id,{x:o,y:a}),{x:o,y:a}},"setCommitPosition"),tn=(0,c.K)((t,e,r)=>{let o=j.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let a=o.pos;F.set(t.id,{x:a,y:e+r})},"setRootPosition"),ts=(0,c.K)((t,e,r,o,a,i)=>{let{theme:s}=(0,n.D7)(),c=_.has(s??""),d=z.has(s??""),l=Y.has(s??"");if(i===h.HIGHLIGHT)t.append("rect").attr("x",r.x-10+3*!!c).attr("y",r.y-10+3*!!c).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${e.id} commit-highlight${N(a,8,d)} ${o}-outer`),t.append("rect").attr("x",r.x-6+2*!!c).attr("y",r.y-6+2*!!c).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${e.id} commit${N(a,8,d)} ${o}-inner`);else if(i===h.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",c?7:10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{let n=t.append("circle");if(n.attr("cx",r.x),n.attr("cy",r.y),n.attr("r",c?7:10),n.attr("class",`commit ${e.id} commit${N(a,8,d)}`),i===h.MERGE){let i=t.append("circle");i.attr("cx",r.x),i.attr("cy",r.y),i.attr("r",c?5:6),i.attr("class",`commit ${o} ${e.id} commit${N(a,8,d)}`)}if(i===h.REVERSE){let i=t.append("path"),n=c?4:5;i.attr("d",`M ${r.x-n},${r.y-n}L${r.x+n},${r.y+n}M${r.x-n},${r.y+n}L${r.x+n},${r.y-n}`).attr("class",`commit ${o} ${e.id} commit${N(a,8,d)}`)}}},"drawCommitBullet"),tc=(0,c.K)((t,e,r,o,a)=>{if(e.type!==h.CHERRY_PICK&&(e.customId&&e.type===h.MERGE||e.type!==h.MERGE)&&a.showCommitLabel){let i=t.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",o).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=s.node()?.getBBox();if(c&&(n.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===Q||"BT"===Q?(n.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),s.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):s.attr("x",r.posWithOffset-c.width/2),a.rotateCommitLabel))if("TB"===Q||"BT"===Q)s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),n.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let t=-7.5-(c.width+10)/25*9.5,e=10+c.width/25*8.5;i.attr("transform","translate("+t+", "+e+") rotate(-45, "+o+", "+r.y+")")}}},"drawCommitLabel"),td=(0,c.K)((t,e,r,o)=>{if(e.tags.length>0){let a=0,i=0,n=0,s=[];for(let o of e.tags.reverse()){let e=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",r.y-16-a).attr("class","tag-label").text(o),l=d.node()?.getBBox();if(!l)throw Error("Tag bbox not found");i=Math.max(i,l.width),n=Math.max(n,l.height),d.attr("x",r.posWithOffset-l.width/2),s.push({tag:d,hole:c,rect:e,yOffset:a}),a+=20}for(let{tag:t,hole:e,rect:a,yOffset:c}of s){let s=n/2,d=r.y-19.2-c;if(a.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${o-i/2-2},${d+2}
|
|
3
|
+
${o-i/2-2},${d-2}
|
|
4
|
+
${r.posWithOffset-i/2-4},${d-s-2}
|
|
5
|
+
${r.posWithOffset+i/2+4},${d-s-2}
|
|
6
|
+
${r.posWithOffset+i/2+4},${d+s+2}
|
|
7
|
+
${r.posWithOffset-i/2-4},${d+s+2}`),e.attr("cy",d).attr("cx",o-i/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===Q||"BT"===Q){let n=o+c;a.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${r.x},${n+2}
|
|
9
|
+
${r.x},${n-2}
|
|
10
|
+
${r.x+10},${n-s-2}
|
|
11
|
+
${r.x+10+i+4},${n-s-2}
|
|
12
|
+
${r.x+10+i+4},${n+s+2}
|
|
13
|
+
${r.x+10},${n+s+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),e.attr("cx",r.x+2).attr("cy",n).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),t.attr("x",r.x+5).attr("y",n+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+o+")")}}}},"drawCommitTags"),tl=(0,c.K)(t=>{switch(t.customType??t.type){case h.NORMAL:return"commit-normal";case h.REVERSE:return"commit-reverse";case h.HIGHLIGHT:return"commit-highlight";case h.MERGE:return"commit-merge";case h.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),th=(0,c.K)((t,e,r,o)=>{let a={x:0,y:0};if(t.parents.length>0){let r=tt(t.parents);if(r){let i=o.get(r)??a;return"TB"===e?i.y+40:"BT"===e?(o.get(t.id)??a).y-40:i.x+40}}else if("TB"===e)return 30;else if("BT"===e)return(o.get(t.id)??a).y-40;return 0},"calculatePosition"),t$=(0,c.K)((t,e,r)=>{let o="BT"===Q&&r?e:e+10,a=j.get(t.branch)?.pos,i="TB"===Q||"BT"===Q?j.get(t.branch)?.pos:o;if(void 0===i||void 0===a)throw Error(`Position were undefined for commit ${t.id}`);let s=_.has((0,n.D7)().theme??"");return{x:i,y:"TB"===Q||"BT"===Q?o:a+(s?7:-2),posWithOffset:o}},"getCommitPosition"),tm=(0,c.K)((t,e,r,o)=>{let a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),n=30*("TB"===Q||"BT"===Q),s=[...e.keys()],d=o.parallelCommits??!1,l=s.sort((0,c.K)((t,r)=>{let o=e.get(t)?.seq,a=e.get(r)?.seq;return void 0!==o&&void 0!==a?o-a:0},"sortKeys"));"BT"===Q&&(d&&tr(l,e,n),l=l.reverse()),l.forEach(t=>{let s=e.get(t);if(!s)throw Error(`Commit not found for key ${t}`);d&&(n=th(s,Q,n,F));let c=t$(s,n,d);if(r){let t=tl(s),e=s.customType??s.type,r=j.get(s.branch)?.index??0;ts(a,s,c,t,r,e),tc(i,s,c,n,o),td(i,s,c,n)}"TB"===Q||"BT"===Q?F.set(s.id,{x:c.x,y:c.posWithOffset}):F.set(s.id,{x:c.posWithOffset,y:c.y}),(n="BT"===Q&&d?n+40:n+40+10)>J&&(J=n)})},"drawCommits"),tg=(0,c.K)((t,e,r,o,a)=>{let i=("TB"===Q||"BT"===Q?r.x<o.x:r.y<o.y)?e.branch:t.branch,n=(0,c.K)(t=>t.branch===i,"isOnBranchToGetCurve"),s=(0,c.K)(r=>r.seq>t.seq&&r.seq<e.seq,"isBetweenCommits");return[...a.values()].some(t=>s(t)&&n(t))},"shouldRerouteArrow"),tp=(0,c.K)((t,e,r=0)=>{let o=t+Math.abs(t-e)/2;if(r>5)return o;if(V.every(t=>Math.abs(t-o)>=10))return V.push(o),o;let a=Math.abs(t-e);return tp(t,e-a/5,r+1)},"findLane"),ty=(0,c.K)((t,e,r,o)=>{let a,{theme:i}=(0,n.D7)(),s=z.has(i??""),c=F.get(e.id),d=F.get(r.id);if(void 0===c||void 0===d)throw Error(`Commit positions not found for commits ${e.id} and ${r.id}`);let l=tg(e,r,c,d,o),$="",m="",g=0,p=0,y=j.get(r.branch)?.index;if(r.type===h.MERGE&&e.id!==r.parents[0]&&(y=j.get(e.branch)?.index),l){$="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",g=10,p=10;let t=c.y<d.y?tp(c.y,d.y):tp(d.y,c.y),r=c.x<d.x?tp(c.x,d.x):tp(d.x,c.x);"TB"===Q?c.x<d.x?a=`M ${c.x} ${c.y} L ${r-g} ${c.y} ${m} ${r} ${c.y+p} L ${r} ${d.y-g} ${$} ${r+p} ${d.y} L ${d.x} ${d.y}`:(y=j.get(e.branch)?.index,a=`M ${c.x} ${c.y} L ${r+g} ${c.y} ${$} ${r} ${c.y+p} L ${r} ${d.y-g} ${m} ${r-p} ${d.y} L ${d.x} ${d.y}`):"BT"===Q?c.x<d.x?a=`M ${c.x} ${c.y} L ${r-g} ${c.y} ${$} ${r} ${c.y-p} L ${r} ${d.y+g} ${m} ${r+p} ${d.y} L ${d.x} ${d.y}`:(y=j.get(e.branch)?.index,a=`M ${c.x} ${c.y} L ${r+g} ${c.y} ${m} ${r} ${c.y-p} L ${r} ${d.y+g} ${$} ${r-p} ${d.y} L ${d.x} ${d.y}`):c.y<d.y?a=`M ${c.x} ${c.y} L ${c.x} ${t-g} ${$} ${c.x+p} ${t} L ${d.x-g} ${t} ${m} ${d.x} ${t+p} L ${d.x} ${d.y}`:(y=j.get(e.branch)?.index,a=`M ${c.x} ${c.y} L ${c.x} ${t+g} ${m} ${c.x+p} ${t} L ${d.x-g} ${t} ${$} ${d.x} ${t-p} L ${d.x} ${d.y}`)}else $="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,"TB"===Q?(c.x<d.x&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${$} ${c.x+p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${m} ${d.x} ${c.y+p} L ${d.x} ${d.y}`),c.x>d.x&&($="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${m} ${c.x-p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x+g} ${c.y} ${$} ${d.x} ${c.y+p} L ${d.x} ${d.y}`),c.x===d.x&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`)):"BT"===Q?(c.x<d.x&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${m} ${c.x+p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${$} ${d.x} ${c.y-p} L ${d.x} ${d.y}`),c.x>d.x&&($="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${$} ${c.x-p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x+g} ${c.y} ${m} ${d.x} ${c.y-p} L ${d.x} ${d.y}`),c.x===d.x&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`)):(c.y<d.y&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${m} ${d.x} ${c.y+p} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${$} ${c.x+p} ${d.y} L ${d.x} ${d.y}`),c.y>d.y&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${$} ${d.x} ${c.y-p} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${m} ${c.x+p} ${d.y} L ${d.x} ${d.y}`),c.y===d.y&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`));if(void 0===a)throw Error("Line definition not found");t.append("path").attr("d",a).attr("class","arrow arrow"+N(y,8,s))},"drawArrow"),tf=(0,c.K)((t,e)=>{let r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(t=>{let o=e.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{ty(r,e.get(t),o,e)})})},"drawArrows"),tx=(0,c.K)((t,e,r,o)=>{let{look:a,theme:i,themeVariables:s}=(0,n.D7)(),{dropShadow:c,THEME_COLOR_LIMIT:d}=s,l=_.has(i??""),h=z.has(i??""),$=t.append("g");e.forEach((t,e)=>{let i=N(e,l?d:8,h),n=j.get(t.name)?.pos;if(void 0===n)throw Error(`Position not found for branch ${t.name}`);let s="TB"===Q||"BT"===Q?n:l?n+6+1:n-2,m=$.append("line");m.attr("x1",0),m.attr("y1",s),m.attr("x2",J),m.attr("y2",s),m.attr("class","branch branch"+i),"TB"===Q?(m.attr("y1",30),m.attr("x1",n),m.attr("y2",J),m.attr("x2",n)):"BT"===Q&&(m.attr("y1",J),m.attr("x1",n),m.attr("y2",30),m.attr("x2",n)),V.push(s);let g=Z(t.name),p=$.insert("rect"),y=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);y.node().appendChild(g);let f=g.getBBox(),x=4*!l,u=16*!!l,b=12*!!l;"neo"===a&&p.attr("data-look","neo"),p.attr("class","branchLabelBkg label"+i).attr("style","neo"===a?`filter:${l?`url(#${o}-drop-shadow)`:c}`:"").attr("rx",x).attr("ry",x).attr("x",-f.width-4-30*(!0===r.rotateCommitLabel)).attr("y",-f.height/2+10).attr("width",f.width+18+u).attr("height",f.height+4+b),y.attr("transform","translate("+(-f.width-14-30*(!0===r.rotateCommitLabel)+u/2)+", "+(s-f.height/2-2)+")"),"TB"===Q?(p.attr("x",n-f.width/2-10).attr("y",0),y.attr("transform","translate("+(n-f.width/2-5)+", 0)"),l&&(p.attr("transform",`translate(${-u/2-3}, ${-b-10})`),y.attr("transform","translate("+(n-f.width/2-5)+", "+(-(2*b)+7)+")"))):"BT"===Q?(p.attr("x",n-f.width/2-10).attr("y",J),y.attr("transform","translate("+(n-f.width/2-5)+", "+J+")"),l&&(p.attr("transform",`translate(${-u/2-3}, ${b+10})`),y.attr("transform","translate("+(n-f.width/2-5)+", "+(J+2*b+4)+")"))):p.attr("transform","translate(-19, "+(s-12-b/2)+")")})},"drawBranches"),tu=(0,c.K)(function(t,e,r,o,a){return j.set(t,{pos:e,index:r}),e+=50+40*!!a+("TB"===Q||"BT"===Q?o.width/2:0)},"setBranchPosition"),tb=(0,c.K)(function(t,e,r,o){X(),s.R.debug("in gitgraph renderer",t+"\n","id:",e,r);let a=o.db;if(!a.getConfig)return void s.R.error("getConfig method is not available on db");let c=a.getConfig(),d=c.rotateCommitLabel??!1;U=a.getCommits();let h=a.getBranchesAsObjArray();Q=a.getDirection();let $=(0,l.Ltv)(`[id="${e}"]`),{look:m,theme:g,themeVariables:p}=(0,n.D7)(),{useGradient:y,gradientStart:f,gradientStop:x,filterColor:u}=p;if(y){let t=$.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",f).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}"neo"===m&&_.has(g??"")&&$.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",u);let b=0;h.forEach((t,e)=>{let r=Z(t.name),o=$.append("g"),a=o.insert("g").attr("class","branchLabel"),i=a.insert("g").attr("class","label branch-label");i.node()?.appendChild(r);let n=r.getBBox();b=tu(t.name,b,e,n,d),i.remove(),a.remove(),o.remove()}),tm($,U,!1,c),c.showBranches&&tx($,h,c,e),tf($,U),tm($,U,!0,c),i._K.insertTitle($,"gitTitleText",c.titleTopMargin??0,a.getDiagramTitle()),(0,n.mj)(void 0,$,c.diagramPadding,c.useMaxWidth)},"draw"),tk=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),tB=new Set(["redux-color","redux-dark-color"]),tw=new Set(["neo","neo-dark"]),tE=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),tT=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),tC=(0,c.K)(t=>{let{svgId:e}=t,r="";if(t.useGradient&&e)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)r+=`
|
|
14
|
+
.label${o} { fill: ${t.mainBkg}; stroke: url(${e}-gradient); stroke-width: ${t.strokeWidth};}
|
|
15
|
+
`;return r},"genGitGraphGradient"),tL=(0,c.K)(t=>{let{theme:e,themeVariables:r}=(0,n.zj)(),{borderColorArray:o}=r,a=tk.has(e);if(tw.has(e)){let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)if(0===r)e+=`
|
|
16
|
+
.branch-label${r} { fill: ${t.nodeBorder};}
|
|
17
|
+
.commit${r} { stroke: ${t.nodeBorder}; }
|
|
18
|
+
.commit-highlight${r} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
19
|
+
.arrow${r} { stroke: ${t.nodeBorder}; }
|
|
20
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
21
|
+
.commit-cherry-pick${r} { stroke: ${t.nodeBorder}; }
|
|
22
|
+
${tC(t)}`;else{let o=r%8;e+=`
|
|
23
|
+
.branch-label${r} { fill: ${t["gitBranchLabel"+o]}; }
|
|
24
|
+
.commit${r} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }
|
|
25
|
+
.commit-highlight${r} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }
|
|
26
|
+
.arrow${r} { stroke: ${t["git"+o]}; }
|
|
27
|
+
`}return e}if(tB.has(e)){let r="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)if(0===i)r+=`
|
|
28
|
+
.branch-label${i} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
29
|
+
.commit${i} { stroke: ${t.nodeBorder}; }
|
|
30
|
+
.commit-highlight${i} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
|
|
31
|
+
.label${i} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
32
|
+
.arrow${i} { stroke: ${t.nodeBorder}; }
|
|
33
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
34
|
+
`;else{let n=i%o.length;r+=`
|
|
35
|
+
.branch-label${i} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
36
|
+
.commit${i} { stroke: ${o[n]}; fill: ${o[n]}; }
|
|
37
|
+
.commit-highlight${i} { stroke: ${o[n]}; fill: ${o[n]}; }
|
|
38
|
+
.label${i} { fill: ${tE.has(e)?t.mainBkg:o[n]}; stroke: ${o[n]}; stroke-width: ${t.strokeWidth}; }
|
|
39
|
+
.arrow${i} { stroke: ${o[n]}; }
|
|
40
|
+
`}return r}{let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)e+=`
|
|
41
|
+
.branch-label${r} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
42
|
+
.commit${r} { stroke: ${t.nodeBorder}; }
|
|
43
|
+
.commit-highlight${r} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
44
|
+
.label${r} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}
|
|
45
|
+
.arrow${r} { stroke: ${t.nodeBorder}; }
|
|
46
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
47
|
+
.commit-cherry-pick${r} { stroke: ${t.nodeBorder}; }
|
|
48
|
+
`;return e}},"genColor"),tK=(0,c.K)(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,e)=>e).map(e=>{let r=e%8;return`
|
|
49
|
+
.branch-label${e} { fill: ${t["gitBranchLabel"+r]}; }
|
|
50
|
+
.commit${e} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }
|
|
51
|
+
.commit-highlight${e} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }
|
|
52
|
+
.label${e} { fill: ${t["git"+r]}; }
|
|
53
|
+
.arrow${e} { stroke: ${t["git"+r]}; }
|
|
54
|
+
`}).join("\n")}`,"normalTheme"),tM={parser:q,db:P,renderer:{draw:tb},styles:(0,c.K)(t=>{let{theme:e}=(0,n.zj)(),r=tT.has(e);return`
|
|
55
|
+
.commit-id,
|
|
56
|
+
.commit-msg,
|
|
57
|
+
.branch-label {
|
|
58
|
+
fill: lightgrey;
|
|
59
|
+
color: lightgrey;
|
|
60
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
61
|
+
font-family: var(--mermaid-font-family);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
${r?tL(t):tK(t)}
|
|
65
|
+
|
|
66
|
+
.branch {
|
|
67
|
+
stroke-width: ${t.strokeWidth};
|
|
68
|
+
stroke: ${t.commitLineColor??t.lineColor};
|
|
69
|
+
stroke-dasharray: ${r?"4 2":"2"};
|
|
70
|
+
}
|
|
71
|
+
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${r?t.nodeBorder:t.commitLabelColor}; ${r?`font-weight:${t.noteFontWeight};`:""}}
|
|
72
|
+
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${r?"transparent":t.commitLabelBackground}; opacity: ${r?"":.5}; }
|
|
73
|
+
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
74
|
+
.tag-label-bkg { fill: ${r?t.mainBkg:t.tagLabelBackground}; stroke: ${r?t.nodeBorder:t.tagLabelBorder}; ${r?`filter:${t.dropShadow}`:""} }
|
|
75
|
+
.tag-hole { fill: ${t.textColor}; }
|
|
76
|
+
|
|
77
|
+
.commit-merge {
|
|
78
|
+
stroke: ${r?t.mainBkg:t.primaryColor};
|
|
79
|
+
fill: ${r?t.mainBkg:t.primaryColor};
|
|
80
|
+
}
|
|
81
|
+
.commit-reverse {
|
|
82
|
+
stroke: ${r?t.mainBkg:t.primaryColor};
|
|
83
|
+
fill: ${r?t.mainBkg:t.primaryColor};
|
|
84
|
+
stroke-width: ${r?t.strokeWidth:3};
|
|
85
|
+
}
|
|
86
|
+
.commit-highlight-outer {
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-inner {
|
|
89
|
+
stroke: ${r?t.mainBkg:t.primaryColor};
|
|
90
|
+
fill: ${r?t.mainBkg:t.primaryColor};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.arrow {
|
|
94
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
95
|
+
stroke-width: ${tk.has(e)?t.strokeWidth:8};
|
|
96
|
+
stroke-linecap: round;
|
|
97
|
+
fill: none
|
|
98
|
+
}
|
|
99
|
+
.gitTitleText {
|
|
100
|
+
text-anchor: middle;
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
fill: ${t.textColor};
|
|
103
|
+
}
|
|
104
|
+
`},"getStyles")}},80650:(t,e,r)=>{function o(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}r.d(e,{S:()=>o}),(0,r(89851).K)(o,"populateCommonDb")},94434:(t,e,r)=>{r.d(e,{m:()=>a});var o=r(89851),a=class{constructor(t){this.init=t,this.records=this.init()}static{(0,o.K)(this,"ImperativeState")}reset(){this.records=this.init()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7543],{87543:(e,s,a)=>{a.d(s,{createTreemapServices:()=>c.d});var c=a(13527);a(11176)}}]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8200],{40202:(t,e,a)=>{a.d(e,{CP:()=>p,Ck:()=>b,HT:()=>y,PB:()=>u,aC:()=>d,lC:()=>o,m:()=>h,tk:()=>l});var n=a(37325),i=a(89851),s=a(84485),r=a(33948),l=(0,i.K)((t,e)=>{let a=t.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),e.name&&a.attr("name",e.name),e.rx&&a.attr("rx",e.rx),e.ry&&a.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)a.attr(t,e.attrs[t]);return e.class&&a.attr("class",e.class),a},"drawRect"),o=(0,i.K)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),h=(0,i.K)((t,e)=>{let a=e.text.replace(n.H1," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),e.class&&i.attr("class",e.class);let s=i.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(a),i},"drawText"),d=(0,i.K)((t,e,a,n)=>{let i=t.append("image");i.attr("x",e),i.attr("y",a);let r=(0,s.J)(n);i.attr("xlink:href",r)},"drawImage"),p=(0,i.K)((t,e,a,n)=>{let i=t.append("use");i.attr("x",e),i.attr("y",a);let r=(0,s.J)(n);i.attr("xlink:href",`#${r}`)},"drawEmbeddedImage"),u=(0,i.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=(0,i.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),b=(0,i.K)(()=>{let t=(0,r.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,r.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},58200:(t,e,a)=>{a.d(e,{diagram:()=>tR});var n,i=a(40202),s=a(86305),r=a(37325),l=a(56037),o=a(89851),h=a(33948),d=a(84485),p=function(){var t=(0,o.K)(function(t,e,a,n){for(a=a||{},n=t.length;n--;a[t[n]]=e);return a},"o"),e=[1,24],a=[1,25],n=[1,26],i=[1,27],s=[1,28],r=[1,63],l=[1,64],h=[1,65],d=[1,66],p=[1,67],u=[1,68],y=[1,69],b=[1,29],f=[1,30],g=[1,31],x=[1,32],_=[1,33],m=[1,34],E=[1,35],S=[1,36],A=[1,37],C=[1,38],k=[1,39],O=[1,40],T=[1,41],w=[1,42],v=[1,43],R=[1,44],D=[1,45],N=[1,46],P=[1,47],B=[1,48],M=[1,50],j=[1,51],K=[1,52],L=[1,53],Y=[1,54],I=[1,55],U=[1,56],F=[1,57],X=[1,58],z=[1,59],W=[1,60],Q=[14,42],$=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],V=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[1,82],H=[1,83],G=[1,84],J=[1,85],Z=[12,14,42],tt=[12,14,33,42],te=[12,14,33,42,76,77,79,80],ta=[12,33],tn=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ti={trace:(0,o.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:(0,o.K)(function(t,e,a,n,i,s,r){var l=s.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(s[l-3]);break;case 19:n.setTitle(s[l].substring(6)),this.$=s[l].substring(6);break;case 20:n.setAccDescription(s[l].substring(15)),this.$=s[l].substring(15);break;case 21:this.$=s[l].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=s[l].trim(),n.setAccDescription(this.$);break;case 28:s[l].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 29:s[l].splice(2,0,"SYSTEM"),n.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 30:n.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 31:s[l].splice(2,0,"CONTAINER"),n.addContainerBoundary(...s[l]),this.$=s[l];break;case 32:n.addDeploymentNode("node",...s[l]),this.$=s[l];break;case 33:n.addDeploymentNode("nodeL",...s[l]),this.$=s[l];break;case 34:n.addDeploymentNode("nodeR",...s[l]),this.$=s[l];break;case 35:n.popBoundaryParseStack();break;case 39:n.addPersonOrSystem("person",...s[l]),this.$=s[l];break;case 40:n.addPersonOrSystem("external_person",...s[l]),this.$=s[l];break;case 41:n.addPersonOrSystem("system",...s[l]),this.$=s[l];break;case 42:n.addPersonOrSystem("system_db",...s[l]),this.$=s[l];break;case 43:n.addPersonOrSystem("system_queue",...s[l]),this.$=s[l];break;case 44:n.addPersonOrSystem("external_system",...s[l]),this.$=s[l];break;case 45:n.addPersonOrSystem("external_system_db",...s[l]),this.$=s[l];break;case 46:n.addPersonOrSystem("external_system_queue",...s[l]),this.$=s[l];break;case 47:n.addContainer("container",...s[l]),this.$=s[l];break;case 48:n.addContainer("container_db",...s[l]),this.$=s[l];break;case 49:n.addContainer("container_queue",...s[l]),this.$=s[l];break;case 50:n.addContainer("external_container",...s[l]),this.$=s[l];break;case 51:n.addContainer("external_container_db",...s[l]),this.$=s[l];break;case 52:n.addContainer("external_container_queue",...s[l]),this.$=s[l];break;case 53:n.addComponent("component",...s[l]),this.$=s[l];break;case 54:n.addComponent("component_db",...s[l]),this.$=s[l];break;case 55:n.addComponent("component_queue",...s[l]),this.$=s[l];break;case 56:n.addComponent("external_component",...s[l]),this.$=s[l];break;case 57:n.addComponent("external_component_db",...s[l]),this.$=s[l];break;case 58:n.addComponent("external_component_queue",...s[l]),this.$=s[l];break;case 60:n.addRel("rel",...s[l]),this.$=s[l];break;case 61:n.addRel("birel",...s[l]),this.$=s[l];break;case 62:n.addRel("rel_u",...s[l]),this.$=s[l];break;case 63:n.addRel("rel_d",...s[l]),this.$=s[l];break;case 64:n.addRel("rel_l",...s[l]),this.$=s[l];break;case 65:n.addRel("rel_r",...s[l]),this.$=s[l];break;case 66:n.addRel("rel_b",...s[l]),this.$=s[l];break;case 67:s[l].splice(0,1),n.addRel("rel",...s[l]),this.$=s[l];break;case 68:n.updateElStyle("update_el_style",...s[l]),this.$=s[l];break;case 69:n.updateRelStyle("update_rel_style",...s[l]),this.$=s[l];break;case 70:n.updateLayoutConfig("update_layout_config",...s[l]),this.$=s[l];break;case 71:this.$=[s[l]];break;case 72:s[l].unshift(s[l-1]),this.$=s[l];break;case 73:case 75:this.$=s[l].trim();break;case 74:let o={};o[s[l-1].trim()]=s[l].trim(),this.$=o;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:r,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W},{13:70,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:r,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W},{13:71,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:r,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W},{13:72,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:r,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W},{13:73,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:r,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W},{14:[1,74]},t(Q,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:l,37:h,38:d,39:p,40:u,41:y,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W}),t(Q,[2,14]),t($,[2,16],{12:[1,76]}),t(Q,[2,36],{12:[1,77]}),t(V,[2,19]),t(V,[2,20]),{25:[1,78]},{27:[1,79]},t(V,[2,23]),{35:80,75:81,76:q,77:H,79:G,80:J},{35:86,75:81,76:q,77:H,79:G,80:J},{35:87,75:81,76:q,77:H,79:G,80:J},{35:88,75:81,76:q,77:H,79:G,80:J},{35:89,75:81,76:q,77:H,79:G,80:J},{35:90,75:81,76:q,77:H,79:G,80:J},{35:91,75:81,76:q,77:H,79:G,80:J},{35:92,75:81,76:q,77:H,79:G,80:J},{35:93,75:81,76:q,77:H,79:G,80:J},{35:94,75:81,76:q,77:H,79:G,80:J},{35:95,75:81,76:q,77:H,79:G,80:J},{35:96,75:81,76:q,77:H,79:G,80:J},{35:97,75:81,76:q,77:H,79:G,80:J},{35:98,75:81,76:q,77:H,79:G,80:J},{35:99,75:81,76:q,77:H,79:G,80:J},{35:100,75:81,76:q,77:H,79:G,80:J},{35:101,75:81,76:q,77:H,79:G,80:J},{35:102,75:81,76:q,77:H,79:G,80:J},{35:103,75:81,76:q,77:H,79:G,80:J},{35:104,75:81,76:q,77:H,79:G,80:J},t(Z,[2,59]),{35:105,75:81,76:q,77:H,79:G,80:J},{35:106,75:81,76:q,77:H,79:G,80:J},{35:107,75:81,76:q,77:H,79:G,80:J},{35:108,75:81,76:q,77:H,79:G,80:J},{35:109,75:81,76:q,77:H,79:G,80:J},{35:110,75:81,76:q,77:H,79:G,80:J},{35:111,75:81,76:q,77:H,79:G,80:J},{35:112,75:81,76:q,77:H,79:G,80:J},{35:113,75:81,76:q,77:H,79:G,80:J},{35:114,75:81,76:q,77:H,79:G,80:J},{35:115,75:81,76:q,77:H,79:G,80:J},{20:116,29:49,30:61,32:62,34:r,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W},{12:[1,118],33:[1,117]},{35:119,75:81,76:q,77:H,79:G,80:J},{35:120,75:81,76:q,77:H,79:G,80:J},{35:121,75:81,76:q,77:H,79:G,80:J},{35:122,75:81,76:q,77:H,79:G,80:J},{35:123,75:81,76:q,77:H,79:G,80:J},{35:124,75:81,76:q,77:H,79:G,80:J},{35:125,75:81,76:q,77:H,79:G,80:J},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Q,[2,15]),t($,[2,17],{21:22,19:130,22:e,23:a,24:n,26:i,28:s}),t(Q,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:n,26:i,28:s,34:r,36:l,37:h,38:d,39:p,40:u,41:y,44:b,45:f,46:g,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:k,55:O,56:T,57:w,58:v,59:R,60:D,61:N,62:P,63:B,64:M,65:j,66:K,67:L,68:Y,69:I,70:U,71:F,72:X,73:z,74:W}),t(V,[2,21]),t(V,[2,22]),t(Z,[2,39]),t(tt,[2,71],{75:81,35:132,76:q,77:H,79:G,80:J}),t(te,[2,73]),{78:[1,133]},t(te,[2,75]),t(te,[2,76]),t(Z,[2,40]),t(Z,[2,41]),t(Z,[2,42]),t(Z,[2,43]),t(Z,[2,44]),t(Z,[2,45]),t(Z,[2,46]),t(Z,[2,47]),t(Z,[2,48]),t(Z,[2,49]),t(Z,[2,50]),t(Z,[2,51]),t(Z,[2,52]),t(Z,[2,53]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),t(Z,[2,57]),t(Z,[2,58]),t(Z,[2,60]),t(Z,[2,61]),t(Z,[2,62]),t(Z,[2,63]),t(Z,[2,64]),t(Z,[2,65]),t(Z,[2,66]),t(Z,[2,67]),t(Z,[2,68]),t(Z,[2,69]),t(Z,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(ta,[2,28]),t(ta,[2,29]),t(ta,[2,30]),t(ta,[2,31]),t(ta,[2,32]),t(ta,[2,33]),t(ta,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t($,[2,18]),t(Q,[2,38]),t(tt,[2,72]),t(te,[2,74]),t(Z,[2,24]),t(Z,[2,35]),t(tn,[2,25]),t(tn,[2,26],{12:[1,138]}),t(tn,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:(0,o.K)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,o.K)(function(t){var e=this,a=[0],n=[],i=[null],s=[],r=this.table,l="",h=0,d=0,p=0,u=s.slice.call(arguments,1),y=Object.create(this.lexer),b={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(b[f]=this.yy[f]);y.setInput(t,b),b.lexer=y,b.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;s.push(g);var x=y.options&&y.options.ranges;function _(){var t;return"number"!=typeof(t=n.pop()||y.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof b.parseError?this.parseError=b.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,o.K)(_,"lex");for(var m,E,S,A,C,k,O,T,w,v={};;){if(S=a[a.length-1],this.defaultActions[S]?A=this.defaultActions[S]:(null==m&&(m=_()),A=r[S]&&r[S][m]),void 0===A||!A.length||!A[0]){var R="";for(k in w=[],r[S])this.terminals_[k]&&k>2&&w.push("'"+this.terminals_[k]+"'");R=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(R,{text:y.match,token:this.terminals_[m]||m,line:y.yylineno,loc:g,expected:w})}if(A[0]instanceof Array&&A.length>1)throw Error("Parse Error: multiple actions possible at state: "+S+", token: "+m);switch(A[0]){case 1:a.push(m),i.push(y.yytext),s.push(y.yylloc),a.push(A[1]),m=null,E?(m=E,E=null):(d=y.yyleng,l=y.yytext,h=y.yylineno,g=y.yylloc,p>0&&p--);break;case 2:if(O=this.productions_[A[1]][1],v.$=i[i.length-O],v._$={first_line:s[s.length-(O||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(O||1)].first_column,last_column:s[s.length-1].last_column},x&&(v._$.range=[s[s.length-(O||1)].range[0],s[s.length-1].range[1]]),void 0!==(C=this.performAction.apply(v,[l,d,h,b,A[1],i,s].concat(u))))return C;O&&(a=a.slice(0,-1*O*2),i=i.slice(0,-1*O),s=s.slice(0,-1*O)),a.push(this.productions_[A[1]][0]),i.push(v.$),s.push(v._$),T=r[a[a.length-2]][a[a.length-1]],a.push(T);break;case 3:return!0}}return!0},"parse")};function ts(){this.yy={}}return ti.lexer={EOF:1,parseError:(0,o.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,o.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,o.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,o.K)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,o.K)(function(){return this._more=!0,this},"more"),reject:(0,o.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,o.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,o.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,o.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,o.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,o.K)(function(t,e){var a,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,o.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,n,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,o.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,o.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,o.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,o.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,o.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,o.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,o.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,o.K)(function(t,e,a,n){switch(a){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}},(0,o.K)(ts,"Parser"),ts.prototype=ti,ti.Parser=ts,new ts}();p.parser=p;var u=[],y=[""],b="global",f="",g=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],x=[],_="",m=!1,E=4,S=2,A=(0,o.K)(function(){return n},"getC4Type"),C=(0,o.K)(function(t){n=(0,r.jZ)(t,(0,r.D7)())},"setC4Type"),k=(0,o.K)(function(t,e,a,n,i,s,r,l,o){if(null==t||null==e||null==a||null==n)return;let h={},d=x.find(t=>t.from===e&&t.to===a);if(d?h=d:x.push(h),h.type=t,h.from=e,h.to=a,h.label={text:n},null==i)h.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];h[t]={text:e}}else h.techn={text:i};if(null==s)h.descr={text:""};else if("object"==typeof s){let[t,e]=Object.entries(s)[0];h[t]={text:e}}else h.descr={text:s};if("object"==typeof r){let[t,e]=Object.entries(r)[0];h[t]=e}else h.sprite=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];h[t]=e}else h.tags=l;if("object"==typeof o){let[t,e]=Object.entries(o)[0];h[t]=e}else h.link=o;h.wrap=$()},"addRel"),O=(0,o.K)(function(t,e,a,n,i,s,r){if(null===e||null===a)return;let l={},o=u.find(t=>t.alias===e);if(o&&e===o.alias?l=o:(l.alias=e,u.push(l)),null==a?l.label={text:""}:l.label={text:a},null==n)l.descr={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];l[t]={text:e}}else l.descr={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=e}else l.sprite=i;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=e}else l.link=r;l.typeC4Shape={text:t},l.parentBoundary=b,l.wrap=$()},"addPersonOrSystem"),T=(0,o.K)(function(t,e,a,n,i,s,r,l){if(null===e||null===a)return;let o={},h=u.find(t=>t.alias===e);if(h&&e===h.alias?o=h:(o.alias=e,u.push(o)),null==a?o.label={text:""}:o.label={text:a},null==n)o.techn={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.techn={text:n};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.sprite=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=$(),o.typeC4Shape={text:t},o.parentBoundary=b},"addContainer"),w=(0,o.K)(function(t,e,a,n,i,s,r,l){if(null===e||null===a)return;let o={},h=u.find(t=>t.alias===e);if(h&&e===h.alias?o=h:(o.alias=e,u.push(o)),null==a?o.label={text:""}:o.label={text:a},null==n)o.techn={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.techn={text:n};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.sprite=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=$(),o.typeC4Shape={text:t},o.parentBoundary=b},"addComponent"),v=(0,o.K)(function(t,e,a,n,i){if(null===t||null===e)return;let s={},r=g.find(e=>e.alias===t);if(r&&t===r.alias?s=r:(s.alias=t,g.push(s)),null==e?s.label={text:""}:s.label={text:e},null==a)s.type={text:"system"};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]={text:e}}else s.type={text:a};if("object"==typeof n){let[t,e]=Object.entries(n)[0];s[t]=e}else s.tags=n;if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.link=i;s.parentBoundary=b,s.wrap=$(),f=b,b=t,y.push(f)},"addPersonOrSystemBoundary"),R=(0,o.K)(function(t,e,a,n,i){if(null===t||null===e)return;let s={},r=g.find(e=>e.alias===t);if(r&&t===r.alias?s=r:(s.alias=t,g.push(s)),null==e?s.label={text:""}:s.label={text:e},null==a)s.type={text:"container"};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]={text:e}}else s.type={text:a};if("object"==typeof n){let[t,e]=Object.entries(n)[0];s[t]=e}else s.tags=n;if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.link=i;s.parentBoundary=b,s.wrap=$(),f=b,b=t,y.push(f)},"addContainerBoundary"),D=(0,o.K)(function(t,e,a,n,i,s,r,l){if(null===e||null===a)return;let o={},h=g.find(t=>t.alias===e);if(h&&e===h.alias?o=h:(o.alias=e,g.push(o)),null==a?o.label={text:""}:o.label={text:a},null==n)o.type={text:"node"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.type={text:n};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.nodeType=t,o.parentBoundary=b,o.wrap=$(),f=b,b=e,y.push(f)},"addDeploymentNode"),N=(0,o.K)(function(){b=f,y.pop(),f=y.pop(),y.push(f)},"popBoundaryParseStack"),P=(0,o.K)(function(t,e,a,n,i,s,r,l,o,h,d){let p=u.find(t=>t.alias===e);if(void 0!==p||void 0!==(p=g.find(t=>t.alias===e))){if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];p[t]=e}else p.bgColor=a;if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];p[t]=e}else p.fontColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];p[t]=e}else p.borderColor=i;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];p[t]=e}else p.shadowing=s;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];p[t]=e}else p.shape=r;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];p[t]=e}else p.sprite=l;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];p[t]=e}else p.techn=o;if(null!=h)if("object"==typeof h){let[t,e]=Object.entries(h)[0];p[t]=e}else p.legendText=h;if(null!=d)if("object"==typeof d){let[t,e]=Object.entries(d)[0];p[t]=e}else p.legendSprite=d}},"updateElStyle"),B=(0,o.K)(function(t,e,a,n,i,s,r){let l=x.find(t=>t.from===e&&t.to===a);if(void 0!==l){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];l[t]=e}else l.textColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=e}else l.lineColor=i;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=parseInt(e)}else l.offsetX=parseInt(s);if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=parseInt(e)}else l.offsetY=parseInt(r)}},"updateRelStyle"),M=(0,o.K)(function(t,e,a){let n=E,i=S;n="object"==typeof e?parseInt(Object.values(e)[0]):parseInt(e),i="object"==typeof a?parseInt(Object.values(a)[0]):parseInt(a),n>=1&&(E=n),i>=1&&(S=i)},"updateLayoutConfig"),j=(0,o.K)(function(){return E},"getC4ShapeInRow"),K=(0,o.K)(function(){return S},"getC4BoundaryInRow"),L=(0,o.K)(function(){return b},"getCurrentBoundaryParse"),Y=(0,o.K)(function(){return f},"getParentBoundaryParse"),I=(0,o.K)(function(t){return null==t?u:u.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),U=(0,o.K)(function(t){return u.find(e=>e.alias===t)},"getC4Shape"),F=(0,o.K)(function(t){return Object.keys(I(t))},"getC4ShapeKeys"),X=(0,o.K)(function(t){return null==t?g:g.filter(e=>e.parentBoundary===t)},"getBoundaries"),z=(0,o.K)(function(){return x},"getRels"),W=(0,o.K)(function(){return _},"getTitle"),Q=(0,o.K)(function(t){m=t},"setWrap"),$=(0,o.K)(function(){return m},"autoWrap"),V=(0,o.K)(function(){u=[],g=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],f="",b="global",y=[""],x=[],y=[""],_="",m=!1,E=4,S=2},"clear"),q=(0,o.K)(function(t){_=(0,r.jZ)(t,(0,r.D7)())},"setTitle"),H={addPersonOrSystem:O,addPersonOrSystemBoundary:v,addContainer:T,addContainerBoundary:R,addComponent:w,addDeploymentNode:D,popBoundaryParseStack:N,addRel:k,updateElStyle:P,updateRelStyle:B,updateLayoutConfig:M,autoWrap:$,setWrap:Q,getC4ShapeArray:I,getC4Shape:U,getC4ShapeKeys:F,getBoundaries:X,getBoundarys:X,getCurrentBoundaryParse:L,getParentBoundaryParse:Y,getRels:z,getTitle:W,getC4Type:A,getC4ShapeInRow:j,getC4BoundaryInRow:K,setAccTitle:r.SV,getAccTitle:r.iN,getAccDescription:r.m7,setAccDescription:r.EI,getConfig:(0,o.K)(()=>(0,r.D7)().c4,"getConfig"),clear:V,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:q,setC4Type:C},G=(0,o.K)(function(t,e){return(0,i.tk)(t,e)},"drawRect"),J=(0,o.K)(function(t,e,a,n,i,s){let r=t.append("image");r.attr("width",e),r.attr("height",a),r.attr("x",n),r.attr("y",i);let l=s.startsWith("data:image/png;base64")?s:(0,d.J)(s);r.attr("xlink:href",l)},"drawImage"),Z=(0,o.K)((t,e,a,n)=>{let i=t.append("g"),s=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",r=t.lineColor?t.lineColor:"#444444",l=t.offsetX?parseInt(t.offsetX):0,o=t.offsetY?parseInt(t.offsetY):0;if(0===s){let e=i.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",r),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url(#"+n+"-arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url(#"+n+"-arrowend)"),s=-1}else{let e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url(#"+n+"-arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url(#"+n+"-arrowend)")}let h=a.messageFont();th(a)(t.label.text,i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+l,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+o,t.label.width,t.label.height,{fill:e},h),t.techn&&""!==t.techn.text&&(h=a.messageFont(),th(a)("["+t.techn.text+"]",i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+l,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+a.messageFontSize+5+o,Math.max(t.label.width,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},h))}},"drawRels"),tt=(0,o.K)(function(t,e,a){let n=t.append("g"),i=e.bgColor?e.bgColor:"none",s=e.borderColor?e.borderColor:"#444444",r=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1}),G(n,{x:e.x,y:e.y,fill:i,stroke:s,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l});let o=a.boundaryFont();o.fontWeight="bold",o.fontSize=o.fontSize+2,o.fontColor=r,th(a)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},o),e.type&&""!==e.type.text&&((o=a.boundaryFont()).fontColor=r,th(a)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},o)),e.descr&&""!==e.descr.text&&((o=a.boundaryFont()).fontSize=o.fontSize-2,o.fontColor=r,th(a)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},o))},"drawBoundary"),te=(0,o.K)(function(t,e,a){let n=e.bgColor?e.bgColor:a[e.typeC4Shape.text+"_bg_color"],s=e.borderColor?e.borderColor:a[e.typeC4Shape.text+"_border_color"],r=e.fontColor?e.fontColor:"#FFFFFF",l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}let o=t.append("g");o.attr("class","person-man");let h=(0,i.PB)();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=e.x,h.y=e.y,h.fill=n,h.width=e.width,h.height=e.height,h.stroke=s,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},G(o,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}let d=tc(a,e.typeC4Shape.text);switch(o.append("text").attr("fill",r).attr("font-family",d.fontFamily).attr("font-size",d.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":J(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,l)}let p=a[e.typeC4Shape.text+"Font"]();return p.fontWeight="bold",p.fontSize=p.fontSize+2,p.fontColor=r,th(a)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:r},p),(p=a[e.typeC4Shape.text+"Font"]()).fontColor=r,e.techn&&e.techn?.text!==""?th(a)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:r,"font-style":"italic"},p):e.type&&""!==e.type.text&&th(a)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:r,"font-style":"italic"},p),e.descr&&""!==e.descr.text&&((p=a.personFont()).fontColor=r,th(a)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:r},p)),e.height},"drawC4Shape"),ta=(0,o.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),tn=(0,o.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),ti=(0,o.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),ts=(0,o.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),tr=(0,o.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),tl=(0,o.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),to=(0,o.K)(function(t,e){let a=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),tc=(0,o.K)((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),th=function(){function t(t,e,a,i,s,r,l){n(e.append("text").attr("x",a+s/2).attr("y",i+r/2+5).style("text-anchor","middle").text(t),l)}function e(t,e,a,i,s,l,o,h){let{fontSize:d,fontFamily:p,fontWeight:u}=h,y=t.split(r.Y2.lineBreakRegex);for(let t=0;t<y.length;t++){let r=t*d-d*(y.length-1)/2,l=e.append("text").attr("x",a+s/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",d).style("font-weight",u).style("font-family",p);l.append("tspan").attr("dy",r).text(y[t]).attr("alignment-baseline","mathematical"),n(l,o)}}function a(t,a,i,s,r,l,o,h){let d=a.append("switch"),p=d.append("foreignObject").attr("x",i).attr("y",s).attr("width",r).attr("height",l).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");p.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,i,s,r,l,o,h),n(p,o)}function n(t,e){for(let a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,o.K)(t,"byText"),(0,o.K)(e,"byTspan"),(0,o.K)(a,"byFo"),(0,o.K)(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?a:"old"===n.textPlacement?t:e}}(),td=0,tp=0,tu=4,ty=2;p.yy=H;var tb={},tf=class{static{(0,o.K)(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,tg(t.db.getConfig())}setData(t,e,a,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=n}updateVal(t,e,a,n){void 0===t[e]?t[e]=a:t[e]=n(a,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,a=e+t.width,n=this.nextData.starty+2*t.margin,i=n+t.height;(e>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>tu)&&(e=this.nextData.startx+t.margin+tb.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},tg(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},tg=(0,o.K)(function(t){(0,r.hH)(tb,t),t.fontFamily&&(tb.personFontFamily=tb.systemFontFamily=tb.messageFontFamily=t.fontFamily),t.fontSize&&(tb.personFontSize=tb.systemFontSize=tb.messageFontSize=t.fontSize),t.fontWeight&&(tb.personFontWeight=tb.systemFontWeight=tb.messageFontWeight=t.fontWeight)},"setConf"),tx=(0,o.K)((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),t_=(0,o.K)(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),tm=(0,o.K)(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function tE(t,e,a,n,i){if(!e[t].width)if(a)e[t].text=(0,s.bH)(e[t].text,i,n),e[t].textLines=e[t].text.split(r.Y2.lineBreakRegex).length,e[t].width=i,e[t].height=(0,s.ru)(e[t].text,n);else{let a=e[t].text.split(r.Y2.lineBreakRegex);e[t].textLines=a.length;let i=0;for(let r of(e[t].height=0,e[t].width=0,a))e[t].width=Math.max((0,s.Un)(r,n),e[t].width),i=(0,s.ru)(r,n),e[t].height=e[t].height+i}}(0,o.K)(tE,"calcC4ShapeTextWH");var tS=(0,o.K)(function(t,e,a){e.x=a.data.startx,e.y=a.data.starty,e.width=a.data.stopx-a.data.startx,e.height=a.data.stopy-a.data.starty,e.label.y=tb.c4ShapeMargin-35;let n=e.wrap&&tb.wrap,i=t_(tb);i.fontSize=i.fontSize+2,i.fontWeight="bold";let r=(0,s.Un)(e.label.text,i);tE("label",e,n,i,r),tt(t,e,tb)},"drawBoundary"),tA=(0,o.K)(function(t,e,a,n){let i=0;for(let r of n){i=0;let n=a[r],l=tx(tb,n.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,n.typeC4Shape.width=(0,s.Un)("\xab"+n.typeC4Shape.text+"\xbb",l),n.typeC4Shape.height=l.fontSize+2,n.typeC4Shape.Y=tb.c4ShapePadding,i=n.typeC4Shape.Y+n.typeC4Shape.height-4,n.image={width:0,height:0,Y:0},n.typeC4Shape.text){case"person":case"external_person":n.image.width=48,n.image.height=48,n.image.Y=i,i=n.image.Y+n.image.height}n.sprite&&(n.image.width=48,n.image.height=48,n.image.Y=i,i=n.image.Y+n.image.height);let o=n.wrap&&tb.wrap,h=tb.width-2*tb.c4ShapePadding,d=tx(tb,n.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",tE("label",n,o,d,h),n.label.Y=i+8,i=n.label.Y+n.label.height,n.type&&""!==n.type.text){n.type.text="["+n.type.text+"]";let t=tx(tb,n.typeC4Shape.text);tE("type",n,o,t,h),n.type.Y=i+5,i=n.type.Y+n.type.height}else if(n.techn&&""!==n.techn.text){n.techn.text="["+n.techn.text+"]";let t=tx(tb,n.techn.text);tE("techn",n,o,t,h),n.techn.Y=i+5,i=n.techn.Y+n.techn.height}let p=i,u=n.label.width;if(n.descr&&""!==n.descr.text){let t=tx(tb,n.typeC4Shape.text);tE("descr",n,o,t,h),n.descr.Y=i+20,i=n.descr.Y+n.descr.height,u=Math.max(n.label.width,n.descr.width),p=i-5*n.descr.textLines}u+=tb.c4ShapePadding,n.width=Math.max(n.width||tb.width,u,tb.width),n.height=Math.max(n.height||tb.height,p,tb.height),n.margin=n.margin||tb.c4ShapeMargin,t.insert(n),te(e,n,tb)}t.bumpLastMargin(tb.c4ShapeMargin)},"drawC4ShapeArray"),tC=class{static{(0,o.K)(this,"Point")}constructor(t,e){this.x=t,this.y=e}},tk=(0,o.K)(function(t,e){let a=t.x,n=t.y,i=e.x,s=e.y,r=a+t.width/2,l=n+t.height/2,o=Math.abs(a-i),h=Math.abs(n-s),d=h/o,p=t.height/t.width,u=null;return n==s&&a<i?u=new tC(a+t.width,l):n==s&&a>i?u=new tC(a,l):a==i&&n<s?u=new tC(r,n+t.height):a==i&&n>s&&(u=new tC(r,n)),a>i&&n<s?u=p>=d?new tC(a,l+d*t.width/2):new tC(r-o/h*t.height/2,n+t.height):a<i&&n<s?u=p>=d?new tC(a+t.width,l+d*t.width/2):new tC(r+o/h*t.height/2,n+t.height):a<i&&n>s?u=p>=d?new tC(a+t.width,l-d*t.width/2):new tC(r+t.height/2*o/h,n):a>i&&n>s&&(u=p>=d?new tC(a,l-t.width/2*d):new tC(r-t.height/2*o/h,n)),u},"getIntersectPoint"),tO=(0,o.K)(function(t,e){let a={x:0,y:0};a.x=e.x+e.width/2,a.y=e.y+e.height/2;let n=tk(t,a);return a.x=t.x+t.width/2,a.y=t.y+t.height/2,{startPoint:n,endPoint:tk(e,a)}},"getIntersectPoints"),tT=(0,o.K)(function(t,e,a,n,i){let r=0;for(let t of e){r+=1;let e=t.wrap&&tb.wrap,i=tm(tb);"C4Dynamic"===n.db.getC4Type()&&(t.label.text=r+": "+t.label.text);let l=(0,s.Un)(t.label.text,i);tE("label",t,e,i,l),t.techn&&""!==t.techn.text&&(l=(0,s.Un)(t.techn.text,i),tE("techn",t,e,i,l)),t.descr&&""!==t.descr.text&&(l=(0,s.Un)(t.descr.text,i),tE("descr",t,e,i,l));let o=tO(a(t.from),a(t.to));t.startPoint=o.startPoint,t.endPoint=o.endPoint}Z(t,e,tb,i)},"drawRels");function tw(t,e,a,n,i){let s=new tf(i);for(let[r,l]of(s.data.widthLimit=a.data.widthLimit/Math.min(ty,n.length),n.entries())){let n=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=n,n=l.image.Y+l.image.height);let o=l.wrap&&tb.wrap,h=t_(tb);if(h.fontSize=h.fontSize+2,h.fontWeight="bold",tE("label",l,o,h,s.data.widthLimit),l.label.Y=n+8,n=l.label.Y+l.label.height,l.type&&""!==l.type.text&&(l.type.text="["+l.type.text+"]",tE("type",l,o,t_(tb),s.data.widthLimit),l.type.Y=n+5,n=l.type.Y+l.type.height),l.descr&&""!==l.descr.text){let t=t_(tb);t.fontSize=t.fontSize-2,tE("descr",l,o,t,s.data.widthLimit),l.descr.Y=n+20,n=l.descr.Y+l.descr.height}if(0==r||r%ty==0){let t=a.data.startx+tb.diagramMarginX,e=a.data.stopy+tb.diagramMarginY+n;s.setData(t,t,e,e)}else{let t=s.data.stopx!==s.data.startx?s.data.stopx+tb.diagramMarginX:s.data.startx,e=s.data.starty;s.setData(t,t,e,e)}s.name=l.alias;let d=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&tA(s,t,d,p),e=l.alias;let u=i.db.getBoundaries(e);u.length>0&&tw(t,e,s,u,i),"global"!==l.alias&&tS(t,l,s),a.data.stopy=Math.max(s.data.stopy+tb.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(s.data.stopx+tb.c4ShapeMargin,a.data.stopx),td=Math.max(td,a.data.stopx),tp=Math.max(tp,a.data.stopy)}}(0,o.K)(tw,"drawInsideBoundary");var tv={drawPersonOrSystemArray:tA,drawBoundary:tS,setConf:tg,draw:(0,o.K)(function(t,e,a,n){let i;tb=(0,r.D7)().c4;let s=(0,r.D7)().securityLevel;"sandbox"===s&&(i=(0,h.Ltv)("#i"+e));let o="sandbox"===s?(0,h.Ltv)(i.nodes()[0].contentDocument.body):(0,h.Ltv)("body"),d=n.db;n.db.setWrap(tb.wrap),tu=d.getC4ShapeInRow(),ty=d.getC4BoundaryInRow(),l.R.debug(`C:${JSON.stringify(tb,null,2)}`);let p="sandbox"===s?o.select(`[id="${e}"]`):(0,h.Ltv)(`[id="${e}"]`);tn(p,e),ta(p,e),ti(p,e);let u=new tf(n);u.setData(tb.diagramMarginX,tb.diagramMarginX,tb.diagramMarginY,tb.diagramMarginY),u.data.widthLimit=screen.availWidth,td=tb.diagramMarginX,tp=tb.diagramMarginY;let y=n.db.getTitle();tw(p,"",u,n.db.getBoundaries(""),n),ts(p,e),tr(p,e),to(p,e),tl(p,e),tT(p,n.db.getRels(),n.db.getC4Shape,n,e),u.data.stopx=td,u.data.stopy=tp;let b=u.data,f=b.stopy-b.starty+2*tb.diagramMarginY,g=b.stopx-b.startx+2*tb.diagramMarginX;y&&p.append("text").text(y).attr("x",(b.stopx-b.startx)/2-4*tb.diagramMarginX).attr("y",b.starty+tb.diagramMarginY),(0,r.a$)(p,f,g,tb.useMaxWidth);let x=60*!!y;p.attr("viewBox",b.startx-tb.diagramMarginX+" -"+(tb.diagramMarginY+x)+" "+g+" "+(f+x)),l.R.debug("models:",b)},"draw")},tR={parser:p,db:H,renderer:tv,styles:(0,o.K)(t=>`.person {
|
|
2
|
+
stroke: ${t.personBorder};
|
|
3
|
+
fill: ${t.personBkg};
|
|
4
|
+
}
|
|
5
|
+
`,"getStyles"),init:(0,o.K)(({c4:t,wrap:e})=>{tv.setConf(t),H.setWrap(e)},"init")}}}]);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8403],{16443:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(89851),s=n(33948),o=(0,i.K)((e,t)=>{let n;return"sandbox"===t&&(n=(0,s.Ltv)("#i"+e)),("sandbox"===t?(0,s.Ltv)(n.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement")},45097:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(37325),s=n(56037),o=n(89851),r=(0,o.K)((e,t,n,o)=>{e.attr("class",n);let{width:r,height:l,x:h,y:d}=a(e,t);(0,i.a$)(e,l,r,o);let g=c(h,d,r,l,t);e.attr("viewBox",g),s.R.debug(`viewBox configured: ${g} with padding: ${t}`)},"setupViewPortForSVG"),a=(0,o.K)((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+2*t,height:n.height+2*t,x:n.x,y:n.y}},"calculateDimensionsWithPadding"),c=(0,o.K)((e,t,n,i,s)=>`${e-s} ${t-s} ${n} ${i}`,"createViewBox")},48403:(e,t,n)=>{n.d(t,{diagram:()=>b});var i=n(16443),s=n(45097),o=n(48362);n(4462),n(94340),n(23462),n(44701),n(77809),n(19836),n(39457),n(86305);var r=n(37325),a=n(56037),c=n(89851);let l=new Uint8Array(16),h=[];for(let e=0;e<256;++e)h.push((e+256).toString(16).slice(1));var d=n(6424),g=n(99507),u=n(68195),p=function(){var e=(0,c.K)(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,4],n=[1,13],i=[1,12],s=[1,15],o=[1,16],r=[1,20],a=[1,19],l=[6,7,8],h=[1,26],d=[1,24],g=[1,25],u=[6,7,11],p=[1,6,13,15,16,19,22],y=[1,33],m=[1,34],f=[1,6,7,11,13,15,16,19,22],_={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,c.K)(function(e,t,n,i,s,o,r){var a=o.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},{6:n,9:22,12:11,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},{6:h,7:d,10:23,11:g},e(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:a}),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,23]),e(u,[2,24]),e(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:d,10:32,11:g},{1:[2,7],6:n,12:21,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},e(p,[2,14],{7:y,11:m}),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(u,[2,15]),e(u,[2,16]),e(u,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:y,11:m}),e(f,[2,11]),e(f,[2,12]),{21:[1,37]},e(u,[2,25]),e(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,c.K)(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},"parseError"),parse:(0,c.K)(function(e){var t=this,n=[0],i=[],s=[null],o=[],r=this.table,a="",l=0,h=0,d=0,g=o.slice.call(arguments,1),u=Object.create(this.lexer),p={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p[y]=this.yy[y]);u.setInput(e,p),p.lexer=u,p.parser=this,void 0===u.yylloc&&(u.yylloc={});var m=u.yylloc;o.push(m);var f=u.options&&u.options.ranges;function _(){var e;return"number"!=typeof(e=i.pop()||u.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(e){n.length=n.length-2*e,s.length=s.length-e,o.length=o.length-e},"popStack"),(0,c.K)(_,"lex");for(var E,b,k,S,N,x,L,D,$,v={};;){if(k=n[n.length-1],this.defaultActions[k]?S=this.defaultActions[k]:(null==E&&(E=_()),S=r[k]&&r[k][E]),void 0===S||!S.length||!S[0]){var I="";for(x in $=[],r[k])this.terminals_[x]&&x>2&&$.push("'"+this.terminals_[x]+"'");I=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==E?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(I,{text:u.match,token:this.terminals_[E]||E,line:u.yylineno,loc:m,expected:$})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+E);switch(S[0]){case 1:n.push(E),s.push(u.yytext),o.push(u.yylloc),n.push(S[1]),E=null,b?(E=b,b=null):(h=u.yyleng,a=u.yytext,l=u.yylineno,m=u.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],v.$=s[s.length-L],v._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},f&&(v._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(N=this.performAction.apply(v,[a,h,l,p,S[1],s,o].concat(g))))return N;L&&(n=n.slice(0,-1*L*2),s=s.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),s.push(v.$),o.push(v._$),D=r[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")};function E(){this.yy={}}return _.lexer={EOF:1,parseError:(0,c.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,c.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,c.K)(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,c.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,c.K)(function(e,t){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var o in s)this[o]=s[o];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,n,i,s=this._currentRules(),o=0;o<s.length;o++)if((n=this._input.match(this.rules[s[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[o])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,c.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,c.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.K)(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},(0,c.K)(E,"Parser"),E.prototype=_,_.Parser=E,new E}();p.parser=p;var y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},m=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=y,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{(0,c.K)(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,n,i){a.R.info("addNode",e,t,n,i);let s=!1;0===this.nodes.length?(this.baseLevel=e,e=0,s=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,s=!1);let o=(0,r.D7)(),c=o.mindmap?.padding??r.UI.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:c*=2}let l={id:this.count++,nodeId:(0,r.jZ)(t,o),level:e,descr:(0,r.jZ)(n,o),type:i,children:[],width:o.mindmap?.maxNodeWidth??r.UI.mindmap.maxNodeWidth,padding:c,isRoot:s},h=this.getParent(e);if(h)h.children.push(l),this.nodes.push(l);else if(s)this.nodes.push(l);else throw Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,t){switch(a.R.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=(0,r.D7)(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=(0,r.jZ)(e.icon,t)),e.class&&(n.class=(0,r.jZ)(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(let[n,i]of e.children.entries()){let s=0===e.level?n%11:t;this.assignSections(i,s)}}flattenNodes(e,t){let n=(0,r.D7)(),i=["mindmap-node"];!0===e.isRoot?i.push("section-root","section--1"):void 0!==e.section&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let s=i.join(" "),o=(0,c.K)(e=>{let t=(n.theme?.toLowerCase()??"").includes("redux");switch(e){case y.CIRCLE:return"mindmapCircle";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexagon";case y.DEFAULT:return t?"rounded":"defaultMindmapNode";case y.NO_BORDER:default:return"rect"}},"getShapeFromType"),a={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:s,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(a),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=(0,r.D7)();for(let i of e.children){let s="edge";void 0!==i.section&&(s+=` section-edge-${i.section}`);let o=e.level+1;s+=` edge-depth-${o}`;let r={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:s,depth:e.level,section:i.section};t.push(r),this.generateEdges(i,t)}}getData(){let e=this.getMindmap(),t=(0,r.D7)();if(void 0!==(0,r.TM)().layout||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};a.R.debug("getData: mindmapRoot",e,t),this.assignSections(e);let n=[],i=[];this.flattenNodes(e,n),this.generateEdges(e,i),a.R.debug(`getData: processed ${n.length} nodes and ${i.length} edges`);let s=new Map;for(let e of n)s.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:n,edges:i,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(s),type:"mindmap",diagramId:"mindmap-"+(crypto.randomUUID?crypto.randomUUID():function(e,t,n){let i=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(l);if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase()}(i)}(void 0,void 0,void 0))}}getLogger(){return a.R}},f=(0,c.K)(async(e,t,n,c)=>{a.R.debug("Rendering mindmap diagram\n"+e);let l=c.db,h=l.getData(),d=(0,i.A)(t,h.config.securityLevel);if(h.type=c.type,h.layoutAlgorithm=(0,o.q7)(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=t,!l.getMindmap())return;h.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)}),await (0,o.XX)(h,d);let{themeVariables:g}=(0,r.zj)(),{useGradient:u,gradientStart:p,gradientStop:y}=g;if(u&&p&&y){let e=d.attr("id"),t=d.append("defs").append("linearGradient").attr("id",`${e}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",y).attr("stop-opacity",1)}(0,s.P)(d,h.config.mindmap?.padding??r.UI.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??r.UI.mindmap.useMaxWidth)},"draw"),_=(0,c.K)(e=>{let{theme:t,look:n}=e,i="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],(0,d.A)(e["lineColor"+t])?e["lineColor"+t]=(0,g.A)(e["lineColor"+t],20):e["lineColor"+t]=(0,u.A)(e["lineColor"+t],20);for(let s=0;s<e.THEME_COLOR_LIMIT;s++){let o=""+("neo"===n?Math.max(10-(s-1)*2,2):17-3*s);i+=`
|
|
2
|
+
.section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
|
|
3
|
+
fill: ${e["cScale"+s]};
|
|
4
|
+
}
|
|
5
|
+
.section-${s-1} text {
|
|
6
|
+
fill: ${e["cScaleLabel"+s]};
|
|
7
|
+
}
|
|
8
|
+
.section-${s-1} span {
|
|
9
|
+
color: ${e["cScaleLabel"+s]};
|
|
10
|
+
}
|
|
11
|
+
.node-icon-${s-1} {
|
|
12
|
+
font-size: 40px;
|
|
13
|
+
color: ${e["cScaleLabel"+s]};
|
|
14
|
+
}
|
|
15
|
+
.section-edge-${s-1}{
|
|
16
|
+
stroke: ${e["cScale"+s]};
|
|
17
|
+
}
|
|
18
|
+
.edge-depth-${s-1}{
|
|
19
|
+
stroke-width: ${o};
|
|
20
|
+
}
|
|
21
|
+
.section-${s-1} line {
|
|
22
|
+
stroke: ${e["cScaleInv"+s]} ;
|
|
23
|
+
stroke-width: 3;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.disabled, .disabled circle, .disabled text {
|
|
27
|
+
fill: lightgray;
|
|
28
|
+
}
|
|
29
|
+
.disabled text {
|
|
30
|
+
fill: #efefef;
|
|
31
|
+
}
|
|
32
|
+
[data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {
|
|
33
|
+
fill: ${"redux"===t||"redux-dark"===t||"neutral"===t?e.mainBkg:e["cScale"+s]};
|
|
34
|
+
stroke: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScale"+s]};
|
|
35
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
36
|
+
}
|
|
37
|
+
[data-look="neo"].section-edge-${s-1}{
|
|
38
|
+
stroke: ${t?.includes("redux")||"neo-dark"===t?e.nodeBorder:e["cScale"+s]};
|
|
39
|
+
}
|
|
40
|
+
[data-look="neo"].mindmap-node.section-${s-1} text {
|
|
41
|
+
fill: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:s)]};
|
|
42
|
+
}
|
|
43
|
+
`}return i},"genSections"),E=(0,c.K)((e,t,n)=>{let i="";for(let s=0;s<e;s++)i+=`
|
|
44
|
+
[data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {
|
|
45
|
+
stroke: url(${t}-gradient);
|
|
46
|
+
fill: ${n};
|
|
47
|
+
}
|
|
48
|
+
.section-${s-1} line {
|
|
49
|
+
stroke-width: 0;
|
|
50
|
+
}`;return i},"genGradient"),b={get db(){return new m},renderer:{draw:f},parser:p,styles:(0,c.K)(e=>{let{theme:t}=e,n=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return`
|
|
51
|
+
.edge {
|
|
52
|
+
stroke-width: 3;
|
|
53
|
+
}
|
|
54
|
+
${_(e)}
|
|
55
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
56
|
+
fill: ${e.git0};
|
|
57
|
+
}
|
|
58
|
+
.section-root text {
|
|
59
|
+
fill: ${e.gitBranchLabel0};
|
|
60
|
+
}
|
|
61
|
+
.section-root span {
|
|
62
|
+
color: ${t?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};
|
|
63
|
+
}
|
|
64
|
+
.icon-container {
|
|
65
|
+
height:100%;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
.edge {
|
|
71
|
+
fill: none;
|
|
72
|
+
}
|
|
73
|
+
.mindmap-node-label {
|
|
74
|
+
dy: 1em;
|
|
75
|
+
alignment-baseline: middle;
|
|
76
|
+
text-anchor: middle;
|
|
77
|
+
dominant-baseline: middle;
|
|
78
|
+
text-align: center;
|
|
79
|
+
}
|
|
80
|
+
[data-look="neo"].mindmap-node {
|
|
81
|
+
filter: ${i};
|
|
82
|
+
}
|
|
83
|
+
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
84
|
+
fill: ${t?.includes("redux")?e.mainBkg:e.git0};
|
|
85
|
+
}
|
|
86
|
+
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
87
|
+
fill: ${t?.includes("redux")?e.nodeBorder:e["cScaleLabel"+ +("neutral"===t)]};
|
|
88
|
+
}
|
|
89
|
+
${e.useGradient&&n&&e.mainBkg?E(e.THEME_COLOR_LIMIT,n,e.mainBkg):""}
|
|
90
|
+
`},"getStyles")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8518],{38518:(e,t,i)=>{var n,l,a,s,r,o,u,c,h,d,w,b,p,g,y;i.r(t),i.d(t,{CloseRequestedEvent:()=>R,Effect:()=>u,EffectState:()=>c,LogicalPosition:()=>W,LogicalSize:()=>f,PhysicalPosition:()=>z,PhysicalSize:()=>E,ProgressBarStatus:()=>s,UserAttentionType:()=>a,Window:()=>M,availableMonitors:()=>V,currentMonitor:()=>U,cursorPosition:()=>H,getAllWindows:()=>x,getCurrentWindow:()=>L,monitorFromPoint:()=>G,primaryMonitor:()=>F}),"function"==typeof SuppressedError&&SuppressedError;let _="__TAURI_TO_IPC_KEY__";async function m(e,t={},i){return window.__TAURI_INTERNALS__.invoke(e,t,i)}new WeakMap,new WeakMap,new WeakMap,new WeakMap;class v{get rid(){var e=this,t=n;!1;if("function"==typeof t||!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}constructor(e){n.set(this,void 0),function(e,t,i){!1;!1;if("function"==typeof t||!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");t.set(e,i)}(this,n,e)}async close(){return m("plugin:resources|close",{rid:this.rid})}}n=new WeakMap;class f{constructor(...e){this.type="Logical",1===e.length?"Logical"in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new E(this.width*e,this.height*e)}[_](){return{width:this.width,height:this.height}}toJSON(){return this[_]()}}class E{constructor(...e){this.type="Physical",1===e.length?"Physical"in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new f(this.width/e,this.height/e)}[_](){return{width:this.width,height:this.height}}toJSON(){return this[_]()}}class D{constructor(e){this.size=e}toLogical(e){return this.size instanceof f?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof E?this.size:this.size.toPhysical(e)}[_](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[_]()}}class W{constructor(...e){this.type="Logical",1===e.length?"Logical"in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new z(this.x*e,this.y*e)}[_](){return{x:this.x,y:this.y}}toJSON(){return this[_]()}}class z{constructor(...e){this.type="Physical",1===e.length?"Physical"in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new W(this.x/e,this.y/e)}[_](){return{x:this.x,y:this.y}}toJSON(){return this[_]()}}class A{constructor(e){this.position=e}toLogical(e){return this.position instanceof W?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof z?this.position:this.position.toPhysical(e)}[_](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[_]()}}async function S(e,t){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(e,t),await m("plugin:event|unlisten",{event:e,eventId:t})}async function O(e,t,i){var n;return m("plugin:event|listen",{event:e,target:"string"==typeof(null==i?void 0:i.target)?{kind:"AnyLabel",label:i.target}:null!=(n=null==i?void 0:i.target)?n:{kind:"Any"},handler:function(e,t=!1){return window.__TAURI_INTERNALS__.transformCallback(e,t)}(t)}).then(t=>async()=>S(e,t))}async function N(e,t,i){return O(e,i=>{S(e,i.id),t(i)},i)}async function k(e,t){await m("plugin:event|emit",{event:e,payload:t})}async function I(e,t,i){await m("plugin:event|emit_to",{target:"string"==typeof e?{kind:"AnyLabel",label:e}:e,event:t,payload:i})}(h=l||(l={})).WINDOW_RESIZED="tauri://resize",h.WINDOW_MOVED="tauri://move",h.WINDOW_CLOSE_REQUESTED="tauri://close-requested",h.WINDOW_DESTROYED="tauri://destroyed",h.WINDOW_FOCUS="tauri://focus",h.WINDOW_BLUR="tauri://blur",h.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",h.WINDOW_THEME_CHANGED="tauri://theme-changed",h.WINDOW_CREATED="tauri://window-created",h.WINDOW_SUSPENDED="tauri://suspended",h.WINDOW_RESUMED="tauri://resumed",h.WEBVIEW_CREATED="tauri://webview-created",h.DRAG_ENTER="tauri://drag-enter",h.DRAG_OVER="tauri://drag-over",h.DRAG_DROP="tauri://drag-drop",h.DRAG_LEAVE="tauri://drag-leave";class C extends v{constructor(e){super(e)}static async new(e,t,i){return m("plugin:image|new",{rgba:T(e),width:t,height:i}).then(e=>new C(e))}static async fromBytes(e){return m("plugin:image|from_bytes",{bytes:T(e)}).then(e=>new C(e))}static async fromPath(e){return m("plugin:image|from_path",{path:e}).then(e=>new C(e))}async rgba(){return m("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return m("plugin:image|size",{rid:this.rid})}}function T(e){return null==e?null:"string"==typeof e?e:e instanceof C?e.rid:e}(d=a||(a={}))[d.Critical=1]="Critical",d[d.Informational=2]="Informational";class R{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}function L(){return new M(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function x(){return m("plugin:window|get_all_windows").then(e=>e.map(e=>new M(e,{skip:!0})))}(w=s||(s={})).None="none",w.Normal="normal",w.Indeterminate="indeterminate",w.Paused="paused",w.Error="error";let P=["tauri://created","tauri://error"];class M{constructor(e,t={}){var i;this.label=e,this.listeners=Object.create(null),(null==t?void 0:t.skip)||m("plugin:window|create",{options:{...t,parent:"string"==typeof t.parent?t.parent:null==(i=t.parent)?void 0:i.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async e=>this.emit("tauri://error",e))}static async getByLabel(e){var t;return null!=(t=(await x()).find(t=>t.label===e))?t:null}static getCurrent(){return L()}static async getAll(){return x()}static async getFocusedWindow(){for(let e of(await x()))if(await e.isFocused())return e;return null}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{let i=this.listeners[e];i.splice(i.indexOf(t),1)}:O(e,t,{target:{kind:"Window",label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{let i=this.listeners[e];i.splice(i.indexOf(t),1)}:N(e,t,{target:{kind:"Window",label:this.label}})}async emit(e,t){if(P.includes(e)){for(let i of this.listeners[e]||[])i({event:e,id:-1,payload:t});return}return k(e,t)}async emitTo(e,t,i){if(P.includes(t)){for(let e of this.listeners[t]||[])e({event:t,id:-1,payload:i});return}return I(e,t,i)}_handleTauriEvent(e,t){return!!P.includes(e)&&(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0)}async scaleFactor(){return m("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return m("plugin:window|inner_position",{label:this.label}).then(e=>new z(e))}async outerPosition(){return m("plugin:window|outer_position",{label:this.label}).then(e=>new z(e))}async innerSize(){return m("plugin:window|inner_size",{label:this.label}).then(e=>new E(e))}async outerSize(){return m("plugin:window|outer_size",{label:this.label}).then(e=>new E(e))}async isFullscreen(){return m("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return m("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return m("plugin:window|is_maximized",{label:this.label})}async isFocused(){return m("plugin:window|is_focused",{label:this.label})}async isDecorated(){return m("plugin:window|is_decorated",{label:this.label})}async isResizable(){return m("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return m("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return m("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return m("plugin:window|is_closable",{label:this.label})}async isVisible(){return m("plugin:window|is_visible",{label:this.label})}async title(){return m("plugin:window|title",{label:this.label})}async theme(){return m("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return m("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return m("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return m("plugin:window|scene_identifier",{label:this.label})}async center(){return m("plugin:window|center",{label:this.label})}async requestUserAttention(e){let t=null;return e&&(t=e===a.Critical?{type:"Critical"}:{type:"Informational"}),m("plugin:window|request_user_attention",{label:this.label,value:t})}async setResizable(e){return m("plugin:window|set_resizable",{label:this.label,value:e})}async setEnabled(e){return m("plugin:window|set_enabled",{label:this.label,value:e})}async isEnabled(){return m("plugin:window|is_enabled",{label:this.label})}async setMaximizable(e){return m("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return m("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return m("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return m("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return m("plugin:window|maximize",{label:this.label})}async unmaximize(){return m("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return m("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return m("plugin:window|minimize",{label:this.label})}async unminimize(){return m("plugin:window|unminimize",{label:this.label})}async show(){return m("plugin:window|show",{label:this.label})}async hide(){return m("plugin:window|hide",{label:this.label})}async close(){return m("plugin:window|close",{label:this.label})}async destroy(){return m("plugin:window|destroy",{label:this.label})}async setDecorations(e){return m("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return m("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return m("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return m("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return m("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return m("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return m("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){return m("plugin:window|set_size",{label:this.label,value:e instanceof D?e:new D(e)})}async setMinSize(e){return m("plugin:window|set_min_size",{label:this.label,value:e instanceof D?e:e?new D(e):null})}async setMaxSize(e){return m("plugin:window|set_max_size",{label:this.label,value:e instanceof D?e:e?new D(e):null})}async setSizeConstraints(e){function t(e){return e?{Logical:e}:null}return m("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:t(null==e?void 0:e.minWidth),minHeight:t(null==e?void 0:e.minHeight),maxWidth:t(null==e?void 0:e.maxWidth),maxHeight:t(null==e?void 0:e.maxHeight)}})}async setPosition(e){return m("plugin:window|set_position",{label:this.label,value:e instanceof A?e:new A(e)})}async setFullscreen(e){return m("plugin:window|set_fullscreen",{label:this.label,value:e})}async setSimpleFullscreen(e){return m("plugin:window|set_simple_fullscreen",{label:this.label,value:e})}async setFocus(){return m("plugin:window|set_focus",{label:this.label})}async setFocusable(e){return m("plugin:window|set_focusable",{label:this.label,value:e})}async setIcon(e){return m("plugin:window|set_icon",{label:this.label,value:T(e)})}async setSkipTaskbar(e){return m("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return m("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return m("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return m("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setBackgroundColor(e){return m("plugin:window|set_background_color",{color:e})}async setCursorPosition(e){return m("plugin:window|set_cursor_position",{label:this.label,value:e instanceof A?e:new A(e)})}async setIgnoreCursorEvents(e){return m("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return m("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return m("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setBadgeCount(e){return m("plugin:window|set_badge_count",{label:this.label,value:e})}async setBadgeLabel(e){return m("plugin:window|set_badge_label",{label:this.label,value:e})}async setOverlayIcon(e){return m("plugin:window|set_overlay_icon",{label:this.label,value:e?T(e):void 0})}async setProgressBar(e){return m("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return m("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async setTitleBarStyle(e){return m("plugin:window|set_title_bar_style",{label:this.label,value:e})}async setTheme(e){return m("plugin:window|set_theme",{label:this.label,value:e})}async onResized(e){return this.listen(l.WINDOW_RESIZED,t=>{t.payload=new E(t.payload),e(t)})}async onMoved(e){return this.listen(l.WINDOW_MOVED,t=>{t.payload=new z(t.payload),e(t)})}async onCloseRequested(e){return this.listen(l.WINDOW_CLOSE_REQUESTED,async t=>{let i=new R(t);await e(i),i.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){let t=await this.listen(l.DRAG_ENTER,t=>{e({...t,payload:{type:"enter",paths:t.payload.paths,position:new z(t.payload.position)}})}),i=await this.listen(l.DRAG_OVER,t=>{e({...t,payload:{type:"over",position:new z(t.payload.position)}})}),n=await this.listen(l.DRAG_DROP,t=>{e({...t,payload:{type:"drop",paths:t.payload.paths,position:new z(t.payload.position)}})}),a=await this.listen(l.DRAG_LEAVE,t=>{e({...t,payload:{type:"leave"}})});return()=>{t(),n(),i(),a()}}async onFocusChanged(e){let t=await this.listen(l.WINDOW_FOCUS,t=>{e({...t,payload:!0})}),i=await this.listen(l.WINDOW_BLUR,t=>{e({...t,payload:!1})});return()=>{t(),i()}}async onScaleChanged(e){return this.listen(l.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(l.WINDOW_THEME_CHANGED,e)}}function B(e){return null===e?null:{name:e.name,scaleFactor:e.scaleFactor,position:new z(e.position),size:new E(e.size),workArea:{position:new z(e.workArea.position),size:new E(e.workArea.size)}}}async function U(){return m("plugin:window|current_monitor").then(B)}async function F(){return m("plugin:window|primary_monitor").then(B)}async function G(e,t){return m("plugin:window|monitor_from_point",{x:e,y:t}).then(B)}async function V(){return m("plugin:window|available_monitors").then(e=>e.map(B))}async function H(){return m("plugin:window|cursor_position").then(e=>new z(e))}(b=r||(r={})).Disabled="disabled",b.Throttle="throttle",b.Suspend="suspend",(p=o||(o={})).Default="default",p.FluentOverlay="fluentOverlay",(g=u||(u={})).AppearanceBased="appearanceBased",g.Light="light",g.Dark="dark",g.MediumLight="mediumLight",g.UltraDark="ultraDark",g.Titlebar="titlebar",g.Selection="selection",g.Menu="menu",g.Popover="popover",g.Sidebar="sidebar",g.HeaderView="headerView",g.Sheet="sheet",g.WindowBackground="windowBackground",g.HudWindow="hudWindow",g.FullScreenUI="fullScreenUI",g.Tooltip="tooltip",g.ContentBackground="contentBackground",g.UnderWindowBackground="underWindowBackground",g.UnderPageBackground="underPageBackground",g.Mica="mica",g.Blur="blur",g.Acrylic="acrylic",g.Tabbed="tabbed",g.TabbedDark="tabbedDark",g.TabbedLight="tabbedLight",(y=c||(c={})).FollowsWindowActiveState="followsWindowActiveState",y.Active="active",y.Inactive="inactive"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[869],{70869:(e,s,c)=>{c.d(s,{createInfoServices:()=>a.v});var a=c(2347);c(11176)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8863],{2347:(e,r,t)=>{t.d(r,{v:()=>s});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.FZ,i);return r.ServiceRegistry.register(t),{shared:r,Info:t}}(0,a.K2)(s,"createInfoServices")},13527:(e,r,t)=>{t.d(r,{d:()=>u});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},i=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,s=class extends a.dg{static{(0,a.K2)(this,"TreemapValueConverter")}runCustomConverter(e,r,t){if("NUMBER2"===e.name)return parseFloat(r.replace(/,/g,""));if("SEPARATOR"===e.name)return r.substring(1,r.length-1);if("STRING2"===e.name)return r.substring(1,r.length-1);if("INDENTATION"===e.name)return r.length;if("ClassDef"===e.name){if("string"!=typeof r)return r;let e=i.exec(r);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function o(e){let r=e.validation.TreemapValidator,t=e.validation.ValidationRegistry;if(t){let e={Treemap:r.checkSingleRoot.bind(r)};t.register(e,r)}}(0,a.K2)(o,"registerValidationChecks");var l=class{static{(0,a.K2)(this,"TreemapValidator")}checkSingleRoot(e,r){let t;for(let a of e.TreemapRows)a.item&&(void 0===t&&void 0===a.indent?t=0:void 0===a.indent?r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==t&&t>=parseInt(a.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},c={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")},validation:{TreemapValidator:(0,a.K2)(()=>new l,"TreemapValidator")}};function u(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.XE,c);return r.ServiceRegistry.register(t),o(t),{shared:r,Treemap:t}}(0,a.K2)(u,"createTreemapServices")},27460:(e,r,t)=>{t.d(r,{W:()=>l});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},i=(0,a.K2)(e=>{let r=e.slice(1,-1),t="";for(let e=0;e<r.length;e++){let a=r[e];if("\\"===a&&e+1<r.length){let a=r[++e];switch(a){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;default:t+=a}continue}t+=a}return t},"decodeEscapedString"),s=class extends a.dg{static{(0,a.K2)(this,"RailroadEbnfValueConverter")}runConverter(e,r,t){let a=super.runConverter(e,r,t);if("TITLE"===e.name&&"string"==typeof a){let e=a.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return a}runCustomConverter(e,r,t){return"EBNF_STRING"===e.name?i(r):"EBNF_SPECIAL_SEQUENCE"===e.name?r.slice(1,-1).trim():void 0}},o={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")}};function l(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.U4,o);return r.ServiceRegistry.register(t),{shared:r,RailroadEbnf:t}}(0,a.K2)(l,"createRailroadEbnfServices")},41288:(e,r,t)=>{t.d(r,{P:()=>l});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},i=(0,a.K2)(e=>{let r=e.slice(1,-1),t="";for(let e=0;e<r.length;e++){let a=r[e];if("\\"===a&&e+1<r.length){let a=r[++e];switch(a){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;default:t+=a}continue}t+=a}return t},"decodeEscapedString"),s=class extends a.dg{static{(0,a.K2)(this,"RailroadPegValueConverter")}runConverter(e,r,t){let a=super.runConverter(e,r,t);if("TITLE"===e.name&&"string"==typeof a){let e=a.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return a}runCustomConverter(e,r,t){if("PEG_STRING"===e.name)return i(r)}},o={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")}};function l(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.dj,o);return r.ServiceRegistry.register(t),{shared:r,RailroadPeg:t}}(0,a.K2)(l,"createRailroadPegServices")},43569:(e,r,t)=>{t.d(r,{g:()=>m});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},i=new Set(["cmd","command"]),s=new Set(["evt","event"]),o=new Set(["rmo","readmodel"]),l=new Set(["pcr","processor"]),c=new Set(["ui"]);function u(e){let r=e.validation.EventModelingValidator,t=e.validation.ValidationRegistry;if(t){let e={EmTimeFrame:r.checkSourceFrameTypes.bind(r),EmResetFrame:r.checkSourceFrameTypes.bind(r)};t.register(e,r)}}(0,a.K2)(u,"registerValidationChecks");var d=class{static{(0,a.K2)(this,"EventModelingValidator")}checkSourceFrameTypes(e,r){0!==e.sourceFrames.length&&(i.has(e.modelEntityType)?this.validateSources(e,new Set([...c,...l]),"command","ui or processor",r):s.has(e.modelEntityType)?this.validateSources(e,i,"event","command",r):o.has(e.modelEntityType)?this.validateSources(e,s,"read model","event",r):l.has(e.modelEntityType)?this.validateSources(e,o,"processor","read model",r):c.has(e.modelEntityType)&&this.validateSources(e,o,"ui","read model",r))}validateSources(e,r,t,a,n){for(let i of e.sourceFrames){let s=i.ref;void 0===s||r.has(s.modelEntityType)||n("error",`A ${t} can only receive input from a ${a}, not from '${s.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},v={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")},validation:{EventModelingValidator:(0,a.K2)(()=>new d,"EventModelingValidator")}};function m(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.x0,v);return r.ServiceRegistry.register(t),u(t),{shared:r,EventModel:t}}(0,a.K2)(m,"createEventModelingServices")},47237:(e,r,t)=>{t.d(r,{b:()=>s});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.d$,i);return r.ServiceRegistry.register(t),{shared:r,GitGraph:t}}(0,a.K2)(s,"createGitGraphServices")},55797:(e,r,t)=>{t.d(r,{J:()=>s});var a=t(11176),n=class extends a.dg{static{(0,a.K2)(this,"WardleyValueConverter")}runCustomConverter(e,r,t){return"LINK_LABEL"===e.name.toUpperCase()?r.substring(1).trim():void 0}},i={parser:{ValueConverter:(0,a.K2)(()=>new n,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Xr,i);return r.ServiceRegistry.register(t),{shared:r,Wardley:t}}(0,a.K2)(s,"createWardleyServices")},64517:(e,r,t)=>{t.d(r,{l:()=>l});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},i=(0,a.K2)(e=>{let r=e.slice(1,-1),t="";for(let e=0;e<r.length;e++){let a=r[e];if("\\"===a&&e+1<r.length){let a=r[++e];switch(a){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;default:t+=a}continue}t+=a}return t},"decodeEscapedString"),s=class extends a.dg{static{(0,a.K2)(this,"RailroadValueConverter")}runConverter(e,r,t){let a=super.runConverter(e,r,t);if("TITLE"===e.name&&"string"==typeof a){let e=a.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return a}runCustomConverter(e,r,t){if("RR_STRING"===e.name)return i(r)}},o={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")}};function l(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Bi,o);return r.ServiceRegistry.register(t),{shared:r,Railroad:t}}(0,a.K2)(l,"createRailroadServices")},67058:(e,r,t)=>{t.d(r,{t:()=>s});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Jn,i);return r.ServiceRegistry.register(t),{shared:r,Cynefin:t}}(0,a.K2)(s,"createCynefinServices")},67243:(e,r,t)=>{t.d(r,{f:()=>o});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},i=class extends a.dg{static{(0,a.K2)(this,"PieValueConverter")}runCustomConverter(e,r,t){if("PIE_SECTION_LABEL"===e.name)return r.replace(/"/g,"").trim()}},s={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new i,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.D_,s);return r.ServiceRegistry.register(t),{shared:r,Pie:t}}(0,a.K2)(o,"createPieServices")},74409:(e,r,t)=>{t.d(r,{$:()=>s});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.p5,i);return r.ServiceRegistry.register(t),{shared:r,Packet:t}}(0,a.K2)(s,"createPacketServices")},74797:(e,r,t)=>{t.d(r,{S:()=>o});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},i=class extends a.dg{static{(0,a.K2)(this,"ArchitectureValueConverter")}runCustomConverter(e,r,t){if("ARCH_ICON"===e.name)return r.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return r.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=(e=e.slice(1,-1)).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},s={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new i,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.wV,s);return r.ServiceRegistry.register(t),{shared:r,Architecture:t}}(0,a.K2)(o,"createArchitectureServices")},82483:(e,r,t)=>{t.d(r,{f:()=>s});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Bg,i);return r.ServiceRegistry.register(t),{shared:r,Radar:t}}(0,a.K2)(s,"createRadarServices")},88863:(e,r,t)=>{t.d(r,{F5:()=>o.F5,Pz:()=>s.P,WG:()=>n.W,lz:()=>a.l,qg:()=>u,sB:()=>i.s,zg:()=>d}),t(82483);var a=t(64517),n=t(27460),i=t(99479),s=t(41288);t(13527),t(55797),t(67058),t(47237),t(2347),t(74409),t(67243),t(93087),t(74797),t(43569);var o=t(11176),l={},c={info:(0,o.K2)(async()=>{let{createInfoServices:e}=await t.e(869).then(t.bind(t,70869));l.info=e().Info.parser.LangiumParser},"info"),packet:(0,o.K2)(async()=>{let{createPacketServices:e}=await t.e(9705).then(t.bind(t,79705));l.packet=e().Packet.parser.LangiumParser},"packet"),pie:(0,o.K2)(async()=>{let{createPieServices:e}=await t.e(4424).then(t.bind(t,74424));l.pie=e().Pie.parser.LangiumParser},"pie"),treeView:(0,o.K2)(async()=>{let{createTreeViewServices:e}=await t.e(5020).then(t.bind(t,35020));l.treeView=e().TreeView.parser.LangiumParser},"treeView"),architecture:(0,o.K2)(async()=>{let{createArchitectureServices:e}=await t.e(4866).then(t.bind(t,94866));l.architecture=e().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,o.K2)(async()=>{let{createGitGraphServices:e}=await t.e(9522).then(t.bind(t,59522));l.gitGraph=e().GitGraph.parser.LangiumParser},"gitGraph"),eventmodeling:(0,o.K2)(async()=>{let{createEventModelingServices:e}=await t.e(5361).then(t.bind(t,55361));l.eventmodeling=e().EventModel.parser.LangiumParser},"eventmodeling"),radar:(0,o.K2)(async()=>{let{createRadarServices:e}=await t.e(2418).then(t.bind(t,2418));l.radar=e().Radar.parser.LangiumParser},"radar"),railroad:(0,o.K2)(async()=>{let{createRailroadServices:e}=await t.e(5242).then(t.bind(t,85242));l.railroad=e().Railroad.parser.LangiumParser},"railroad"),railroadEbnf:(0,o.K2)(async()=>{let{createRailroadEbnfServices:e}=await t.e(2081).then(t.bind(t,62081));l.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},"railroadEbnf"),railroadAbnf:(0,o.K2)(async()=>{let{createRailroadAbnfServices:e}=await t.e(1327).then(t.bind(t,31327));l.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},"railroadAbnf"),railroadPeg:(0,o.K2)(async()=>{let{createRailroadPegServices:e}=await t.e(6294).then(t.bind(t,46294));l.railroadPeg=e().RailroadPeg.parser.LangiumParser},"railroadPeg"),treemap:(0,o.K2)(async()=>{let{createTreemapServices:e}=await t.e(7543).then(t.bind(t,87543));l.treemap=e().Treemap.parser.LangiumParser},"treemap"),wardley:(0,o.K2)(async()=>{let{createWardleyServices:e}=await t.e(934).then(t.bind(t,60934));l.wardley=e().Wardley.parser.LangiumParser},"wardley"),cynefin:(0,o.K2)(async()=>{let{createCynefinServices:e}=await t.e(5521).then(t.bind(t,35521));l.cynefin=e().Cynefin.parser.LangiumParser},"cynefin")};async function u(e,r){let t=c[e];if(!t)throw Error(`Unknown diagram type: ${e}`);l[e]||await t();let a=l[e].parse(r);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new d(a);return a.value}(0,o.K2)(u,"parse");var d=class extends Error{constructor(e){const r=e.lexerErrors.map(e=>{let r=void 0===e.line||isNaN(e.line)?"?":e.line,t=void 0===e.column||isNaN(e.column)?"?":e.column;return`Lexer error on line ${r}, column ${t}: ${e.message}`}).join("\n"),t=e.parserErrors.map(e=>{let r=void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine,t=void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn;return`Parse error on line ${r}, column ${t}: ${e.message}`}).join("\n");super(`Parsing failed: ${r} ${t}`),this.result=e}static{(0,o.K2)(this,"MermaidParseError")}}},93087:(e,r,t)=>{t.d(r,{I:()=>o});var a=t(11176),n=class extends a.dg{static{(0,a.K2)(this,"TreeViewValueConverter")}runCustomConverter(e,r,t){if("INDENTATION"===e.name)return r?.length||0;if("QUOTED_NAME"===e.name)return r.substring(1,r.length-1);if("BARE_NAME"===e.name)return r.replace(/[\t ]+$/,"");if("CLASS_ANNOTATION"===e.name)return r.trim().substring(3).trim();if("ICON_ANNOTATION"===e.name){let e=r.trim();return e.substring(5,e.length-1)}if("DESC_ANNOTATION"===e.name)return r.trim().substring(2).trim()}},i=class extends a.mR{static{(0,a.K2)(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},s={parser:{TokenBuilder:(0,a.K2)(()=>new i,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new n,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.CZ,s);return r.ServiceRegistry.register(t),{shared:r,TreeView:t}}(0,a.K2)(o,"createTreeViewServices")},99479:(e,r,t)=>{t.d(r,{s:()=>o});var a=t(11176),n=class extends a.mR{static{(0,a.K2)(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},i=class extends a.dg{static{(0,a.K2)(this,"RailroadAbnfValueConverter")}runConverter(e,r,t){let a=super.runConverter(e,r,t);if("TITLE"===e.name&&"string"==typeof a){let e=a.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return e.slice(1,-1)}return a}runCustomConverter(e,r,t){if("ABNF_STRING"===e.name)return r.slice(1,-1)}},s={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new i,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.oI,s);return r.ServiceRegistry.register(t),{shared:r,RailroadAbnf:t}}(0,a.K2)(o,"createRailroadAbnfServices")}}]);
|