atoo-studio 0.0.1 → 0.0.2
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/LICENSE +21 -0
- package/README.github.md +322 -0
- package/README.md +112 -0
- package/README.npm.md +112 -0
- package/bin/atoo-studio.js +90 -0
- package/dist/src/agents/claude-code-terminal/adapter.d.ts +42 -0
- package/dist/src/agents/claude-code-terminal/adapter.js +166 -0
- package/dist/src/agents/claude-code-terminal/index.d.ts +13 -0
- package/dist/src/agents/claude-code-terminal/index.js +45 -0
- package/dist/src/agents/claude-code-terminal/spawner.d.ts +9 -0
- package/dist/src/agents/claude-code-terminal/spawner.js +37 -0
- package/dist/src/agents/claude-code-terminal-chatro/adapter.d.ts +51 -0
- package/dist/src/agents/claude-code-terminal-chatro/adapter.js +301 -0
- package/dist/src/agents/claude-code-terminal-chatro/index.d.ts +13 -0
- package/dist/src/agents/claude-code-terminal-chatro/index.js +45 -0
- package/dist/src/agents/claude-code-terminal-chatro/jsonl-watcher.d.ts +67 -0
- package/dist/src/agents/claude-code-terminal-chatro/jsonl-watcher.js +431 -0
- package/dist/src/agents/claude-code-terminal-chatro/spawner.d.ts +9 -0
- package/dist/src/agents/claude-code-terminal-chatro/spawner.js +37 -0
- package/dist/src/agents/codex-terminal/adapter.d.ts +40 -0
- package/dist/src/agents/codex-terminal/adapter.js +160 -0
- package/dist/src/agents/codex-terminal/index.d.ts +13 -0
- package/dist/src/agents/codex-terminal/index.js +47 -0
- package/dist/src/agents/codex-terminal/spawner.d.ts +9 -0
- package/dist/src/agents/codex-terminal/spawner.js +56 -0
- package/dist/src/agents/codex-terminal-chatro/adapter.d.ts +58 -0
- package/dist/src/agents/codex-terminal-chatro/adapter.js +266 -0
- package/dist/src/agents/codex-terminal-chatro/index.d.ts +13 -0
- package/dist/src/agents/codex-terminal-chatro/index.js +50 -0
- package/dist/src/agents/codex-terminal-chatro/jsonl-watcher.d.ts +36 -0
- package/dist/src/agents/codex-terminal-chatro/jsonl-watcher.js +205 -0
- package/dist/src/agents/codex-terminal-chatro/spawner.d.ts +9 -0
- package/dist/src/agents/codex-terminal-chatro/spawner.js +57 -0
- package/dist/src/agents/lib/chain-builder.d.ts +21 -0
- package/dist/src/agents/lib/chain-builder.js +139 -0
- package/dist/src/agents/lib/claude/fs-sessions.d.ts +31 -0
- package/dist/src/agents/lib/claude/fs-sessions.js +329 -0
- package/dist/src/agents/lib/claude/jsonl-writer.d.ts +32 -0
- package/dist/src/agents/lib/claude/jsonl-writer.js +342 -0
- package/dist/src/agents/lib/claude/workspace-trust.d.ts +1 -0
- package/dist/src/agents/lib/claude/workspace-trust.js +29 -0
- package/dist/src/agents/lib/codex/fs-sessions.d.ts +34 -0
- package/dist/src/agents/lib/codex/fs-sessions.js +255 -0
- package/dist/src/agents/lib/codex/jsonl-mapper.d.ts +11 -0
- package/dist/src/agents/lib/codex/jsonl-mapper.js +154 -0
- package/dist/src/agents/lib/codex/jsonl-writer.d.ts +8 -0
- package/dist/src/agents/lib/codex/jsonl-writer.js +440 -0
- package/dist/src/agents/lib/fs-tracking.d.ts +36 -0
- package/dist/src/agents/lib/fs-tracking.js +109 -0
- package/dist/src/agents/lib/pty-activity-tracker.d.ts +37 -0
- package/dist/src/agents/lib/pty-activity-tracker.js +105 -0
- package/dist/src/agents/lib/session-id-utils.d.ts +46 -0
- package/dist/src/agents/lib/session-id-utils.js +147 -0
- package/dist/src/agents/lib/session-precreate.d.ts +17 -0
- package/dist/src/agents/lib/session-precreate.js +177 -0
- package/dist/src/agents/registry.d.ts +72 -0
- package/dist/src/agents/registry.js +337 -0
- package/dist/src/agents/types.d.ts +135 -0
- package/dist/src/agents/types.js +1 -0
- package/dist/src/auth/crypto-key.d.ts +6 -0
- package/dist/src/auth/crypto-key.js +45 -0
- package/dist/src/auth/middleware.d.ts +18 -0
- package/dist/src/auth/middleware.js +54 -0
- package/dist/src/auth/password.d.ts +2 -0
- package/dist/src/auth/password.js +12 -0
- package/dist/src/auth/session.d.ts +10 -0
- package/dist/src/auth/session.js +33 -0
- package/dist/src/auth/totp.d.ts +12 -0
- package/dist/src/auth/totp.js +61 -0
- package/dist/src/auth/webauthn.d.ts +6 -0
- package/dist/src/auth/webauthn.js +117 -0
- package/dist/src/config.d.ts +10 -0
- package/dist/src/config.js +16 -0
- package/dist/src/database/connection-manager.d.ts +25 -0
- package/dist/src/database/connection-manager.js +211 -0
- package/dist/src/database/discovery/container.d.ts +6 -0
- package/dist/src/database/discovery/container.js +226 -0
- package/dist/src/database/discovery/env-parser.d.ts +9 -0
- package/dist/src/database/discovery/env-parser.js +525 -0
- package/dist/src/database/discovery/local-files.d.ts +6 -0
- package/dist/src/database/discovery/local-files.js +58 -0
- package/dist/src/database/discovery/port-scan.d.ts +7 -0
- package/dist/src/database/discovery/port-scan.js +61 -0
- package/dist/src/database/drivers/cassandra.d.ts +12 -0
- package/dist/src/database/drivers/cassandra.js +91 -0
- package/dist/src/database/drivers/clickhouse.d.ts +11 -0
- package/dist/src/database/drivers/clickhouse.js +127 -0
- package/dist/src/database/drivers/elasticsearch.d.ts +12 -0
- package/dist/src/database/drivers/elasticsearch.js +169 -0
- package/dist/src/database/drivers/influxdb.d.ts +14 -0
- package/dist/src/database/drivers/influxdb.js +194 -0
- package/dist/src/database/drivers/memcached.d.ts +11 -0
- package/dist/src/database/drivers/memcached.js +117 -0
- package/dist/src/database/drivers/mongodb.d.ts +12 -0
- package/dist/src/database/drivers/mongodb.js +128 -0
- package/dist/src/database/drivers/mysql.d.ts +11 -0
- package/dist/src/database/drivers/mysql.js +112 -0
- package/dist/src/database/drivers/neo4j.d.ts +11 -0
- package/dist/src/database/drivers/neo4j.js +158 -0
- package/dist/src/database/drivers/postgresql.d.ts +11 -0
- package/dist/src/database/drivers/postgresql.js +133 -0
- package/dist/src/database/drivers/redis.d.ts +11 -0
- package/dist/src/database/drivers/redis.js +91 -0
- package/dist/src/database/drivers/sqlite.d.ts +10 -0
- package/dist/src/database/drivers/sqlite.js +100 -0
- package/dist/src/database/query-stream.d.ts +5 -0
- package/dist/src/database/query-stream.js +75 -0
- package/dist/src/database/types.d.ts +71 -0
- package/dist/src/database/types.js +1 -0
- package/dist/src/events/index.d.ts +3 -0
- package/dist/src/events/index.js +3 -0
- package/dist/src/events/types.d.ts +214 -0
- package/dist/src/events/types.js +22 -0
- package/dist/src/events/wire.d.ts +114 -0
- package/dist/src/events/wire.js +296 -0
- package/dist/src/fs-monitor-types.d.ts +24 -0
- package/dist/src/fs-monitor-types.js +1 -0
- package/dist/src/fs-monitor.d.ts +80 -0
- package/dist/src/fs-monitor.js +637 -0
- package/dist/src/handlers/auth.d.ts +1 -0
- package/dist/src/handlers/auth.js +170 -0
- package/dist/src/handlers/changes.d.ts +1 -0
- package/dist/src/handlers/changes.js +203 -0
- package/dist/src/handlers/containers.d.ts +12 -0
- package/dist/src/handlers/containers.js +379 -0
- package/dist/src/handlers/databases.d.ts +3 -0
- package/dist/src/handlers/databases.js +327 -0
- package/dist/src/handlers/environments.d.ts +3 -0
- package/dist/src/handlers/environments.js +286 -0
- package/dist/src/handlers/github.d.ts +1 -0
- package/dist/src/handlers/github.js +153 -0
- package/dist/src/handlers/projects.d.ts +1 -0
- package/dist/src/handlers/projects.js +895 -0
- package/dist/src/handlers/ssh.d.ts +1 -0
- package/dist/src/handlers/ssh.js +162 -0
- package/dist/src/handlers/users.d.ts +1 -0
- package/dist/src/handlers/users.js +195 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +228 -0
- package/dist/src/mcp/config.d.ts +32 -0
- package/dist/src/mcp/config.js +227 -0
- package/dist/src/mcp/server.d.ts +1 -0
- package/dist/src/mcp/server.js +574 -0
- package/dist/src/serial/cuse-device.d.ts +19 -0
- package/dist/src/serial/cuse-device.js +260 -0
- package/dist/src/serial/manager.d.ts +63 -0
- package/dist/src/serial/manager.js +206 -0
- package/dist/src/serial/pty-pair.d.ts +16 -0
- package/dist/src/serial/pty-pair.js +68 -0
- package/dist/src/services/fs-browser.d.ts +14 -0
- package/dist/src/services/fs-browser.js +98 -0
- package/dist/src/services/git-ops.d.ts +78 -0
- package/dist/src/services/git-ops.js +288 -0
- package/dist/src/services/github-ops.d.ts +104 -0
- package/dist/src/services/github-ops.js +192 -0
- package/dist/src/services/obfuscation.d.ts +2 -0
- package/dist/src/services/obfuscation.js +16 -0
- package/dist/src/services/preview/headless-backend.d.ts +62 -0
- package/dist/src/services/preview/headless-backend.js +698 -0
- package/dist/src/services/preview/injected-scripts.d.ts +9 -0
- package/dist/src/services/preview/injected-scripts.js +232 -0
- package/dist/src/services/preview/preview-backend.d.ts +92 -0
- package/dist/src/services/preview/preview-backend.js +15 -0
- package/dist/src/services/preview/universal-setter.d.ts +7 -0
- package/dist/src/services/preview/universal-setter.js +46 -0
- package/dist/src/services/preview-manager.d.ts +50 -0
- package/dist/src/services/preview-manager.js +216 -0
- package/dist/src/services/project-watcher.d.ts +6 -0
- package/dist/src/services/project-watcher.js +307 -0
- package/dist/src/services/remote-fs-browser.d.ts +11 -0
- package/dist/src/services/remote-fs-browser.js +50 -0
- package/dist/src/services/remote-git-ops.d.ts +71 -0
- package/dist/src/services/remote-git-ops.js +215 -0
- package/dist/src/services/session-search.d.ts +56 -0
- package/dist/src/services/session-search.js +303 -0
- package/dist/src/services/ssh-manager.d.ts +44 -0
- package/dist/src/services/ssh-manager.js +359 -0
- package/dist/src/session-writer.d.ts +9 -0
- package/dist/src/session-writer.js +66 -0
- package/dist/src/spawner.d.ts +56 -0
- package/dist/src/spawner.js +135 -0
- package/dist/src/state/db.d.ts +214 -0
- package/dist/src/state/db.js +897 -0
- package/dist/src/state/store.d.ts +37 -0
- package/dist/src/state/store.js +108 -0
- package/dist/src/state/types.d.ts +13 -0
- package/dist/src/state/types.js +1 -0
- package/dist/src/web/devtools-proxy.d.ts +7 -0
- package/dist/src/web/devtools-proxy.js +176 -0
- package/dist/src/web/port-proxy.d.ts +15 -0
- package/dist/src/web/port-proxy.js +124 -0
- package/dist/src/web/preview-ws.d.ts +5 -0
- package/dist/src/web/preview-ws.js +207 -0
- package/dist/src/web/server.d.ts +6 -0
- package/dist/src/web/server.js +1694 -0
- package/dist/src/ws/agent-ws.d.ts +5 -0
- package/dist/src/ws/agent-ws.js +93 -0
- package/frontend/dist/assets/_basePickBy-B-LibQ4-.js +1 -0
- package/frontend/dist/assets/_baseUniq-CprifHap.js +1 -0
- package/frontend/dist/assets/_createAssigner-ByDUqGii.js +1 -0
- package/frontend/dist/assets/abap-DuT-3z4x.js +1 -0
- package/frontend/dist/assets/addon-fit-CxQet2ja.js +1 -0
- package/frontend/dist/assets/addon-web-links-D_jRkPIl.js +1 -0
- package/frontend/dist/assets/apex-B-em86xX.js +1 -0
- package/frontend/dist/assets/api-SUPuHhSY.js +2 -0
- package/frontend/dist/assets/arc-Z0_eVteO.js +1 -0
- package/frontend/dist/assets/architecture-PBZL5I3N-hvVXGhqd.js +1 -0
- package/frontend/dist/assets/architectureDiagram-2XIMDMQ5-DiHPxX4j.js +36 -0
- package/frontend/dist/assets/array-CwG8vNfn.js +1 -0
- package/frontend/dist/assets/auth-store-R7eW5SVu.js +1 -0
- package/frontend/dist/assets/azcli-Bg9wQloi.js +1 -0
- package/frontend/dist/assets/bat-BM46z99L.js +1 -0
- package/frontend/dist/assets/bicep-DcBsJUfh.js +2 -0
- package/frontend/dist/assets/blockDiagram-WCTKOSBZ-C40u_hLo.js +132 -0
- package/frontend/dist/assets/c4Diagram-IC4MRINW-Ct7LjWFQ.js +10 -0
- package/frontend/dist/assets/cameligo-zw7JTtim.js +1 -0
- package/frontend/dist/assets/channel-ClCsE6HN.js +1 -0
- package/frontend/dist/assets/chunk-4BX2VUAB-zZ6P90VO.js +1 -0
- package/frontend/dist/assets/chunk-55IACEB6-DXllTDQl.js +1 -0
- package/frontend/dist/assets/chunk-7E7YKBS2-7zRaOLjj.js +1 -0
- package/frontend/dist/assets/chunk-7R4GIKGN-Csst1274.js +80 -0
- package/frontend/dist/assets/chunk-C72U2L5F-_JbQPbLN.js +1 -0
- package/frontend/dist/assets/chunk-CFjPhJqf.js +1 -0
- package/frontend/dist/assets/chunk-EGIJ26TM-B--aFyPw.js +1 -0
- package/frontend/dist/assets/chunk-FMBD7UC4-DVR34RNb.js +15 -0
- package/frontend/dist/assets/chunk-GEFDOKGD-CnmN6cC8.js +2 -0
- package/frontend/dist/assets/chunk-JSJVCQXG-CWxHBzeJ.js +1 -0
- package/frontend/dist/assets/chunk-KX2RTZJC-DkRk56s7.js +1 -0
- package/frontend/dist/assets/chunk-KYZI473N-DCCsG2dK.js +53 -0
- package/frontend/dist/assets/chunk-L3YUKLVL-C-DkZTMr.js +1 -0
- package/frontend/dist/assets/chunk-MX3YWQON-OUdzv5sZ.js +1 -0
- package/frontend/dist/assets/chunk-NQ4KR5QH-Bpu9FsM7.js +220 -0
- package/frontend/dist/assets/chunk-O4XLMI2P-BMLK6_ib.js +7 -0
- package/frontend/dist/assets/chunk-OZEHJAEY-CNNiJtG0.js +1 -0
- package/frontend/dist/assets/chunk-PQ6SQG4A-evVHD3KM.js +1 -0
- package/frontend/dist/assets/chunk-PU5JKC2W-DPFTYuvl.js +70 -0
- package/frontend/dist/assets/chunk-QZHKN3VN-JRdddPvu.js +1 -0
- package/frontend/dist/assets/chunk-R5LLSJPH-CHQzVVOV.js +1 -0
- package/frontend/dist/assets/chunk-WL4C6EOR-BNFU6IIi.js +189 -0
- package/frontend/dist/assets/chunk-XIRO2GV7-98T93G85.js +1 -0
- package/frontend/dist/assets/chunk-XZSTWKYB-BcW3cyNp.js +94 -0
- package/frontend/dist/assets/chunk-YBOYWFTD-BgKO1qAJ.js +1 -0
- package/frontend/dist/assets/classDiagram-VBA2DB6C-DikXzgcD.js +1 -0
- package/frontend/dist/assets/classDiagram-v2-RAHNMMFH-D7E3tQUK.js +1 -0
- package/frontend/dist/assets/clojure-FspFoNNQ.js +1 -0
- package/frontend/dist/assets/clone-mOXuZa7C.js +1 -0
- package/frontend/dist/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/frontend/dist/assets/coffee-13n8Bk2W.js +1 -0
- package/frontend/dist/assets/cose-bilkent-S5V4N54A-zUOWQqLe.js +1 -0
- package/frontend/dist/assets/cpp-BVm2xGEs.js +1 -0
- package/frontend/dist/assets/csharp-D2kAWmUm.js +1 -0
- package/frontend/dist/assets/csp-Ezvgpf0e.js +1 -0
- package/frontend/dist/assets/css-CYxRwcFy.js +3 -0
- package/frontend/dist/assets/css.worker-Cd5h-ZOL.js +89 -0
- package/frontend/dist/assets/cssMode-CrXej49V.js +1 -0
- package/frontend/dist/assets/cypher-jg3SGErc.js +1 -0
- package/frontend/dist/assets/cytoscape.esm-kyyvzxNV.js +321 -0
- package/frontend/dist/assets/dagre-DH4bgZO7.js +1 -0
- package/frontend/dist/assets/dagre-KLK3FWXG-DNSqDkwT.js +4 -0
- package/frontend/dist/assets/dart-179jqhK4.js +1 -0
- package/frontend/dist/assets/defaultLocale-Dda4OpKy.js +1 -0
- package/frontend/dist/assets/diagram-E7M64L7V-RqPNT5Vs.js +24 -0
- package/frontend/dist/assets/diagram-IFDJBPK2-B-5NRyaE.js +43 -0
- package/frontend/dist/assets/diagram-P4PSJMXO-BrP69Hk0.js +24 -0
- package/frontend/dist/assets/dist-CU_Nb1G5.js +1 -0
- package/frontend/dist/assets/dockerfile-CIAtSGxS.js +1 -0
- package/frontend/dist/assets/ecl-CGVKfDxD.js +1 -0
- package/frontend/dist/assets/editor-Br_kD0ds.css +1 -0
- package/frontend/dist/assets/editor.api2-YXkDn0Gm.js +872 -0
- package/frontend/dist/assets/editor.main-fBaXZjJ0.js +6 -0
- package/frontend/dist/assets/elixir-BZ-6w0y3.js +1 -0
- package/frontend/dist/assets/erDiagram-INFDFZHY-BYiB9NYg.js +70 -0
- package/frontend/dist/assets/flow9-CVuOjTMv.js +1 -0
- package/frontend/dist/assets/flowDiagram-PKNHOUZH-Cwq47rsR.js +162 -0
- package/frontend/dist/assets/freemarker2-DM-pztJU.js +3 -0
- package/frontend/dist/assets/fsharp-q0pGJYr6.js +1 -0
- package/frontend/dist/assets/ganttDiagram-A5KZAMGK-Dnx3szD9.js +292 -0
- package/frontend/dist/assets/gitGraph-HDMCJU4V-COlTQ7bA.js +1 -0
- package/frontend/dist/assets/gitGraphDiagram-K3NZZRJ6-BaUxboNc.js +65 -0
- package/frontend/dist/assets/go-dzSPfdEO.js +1 -0
- package/frontend/dist/assets/graphlib-kEFlkt3U.js +1 -0
- package/frontend/dist/assets/graphql-CG4OUoEV.js +1 -0
- package/frontend/dist/assets/handlebars-BbK53Vec.js +1 -0
- package/frontend/dist/assets/hcl-Cy14JPk3.js +1 -0
- package/frontend/dist/assets/html-DYtTQNOG.js +1 -0
- package/frontend/dist/assets/html.worker-BjVEKLoU.js +502 -0
- package/frontend/dist/assets/htmlMode-C6GTouth.js +1 -0
- package/frontend/dist/assets/index-DMLxes_u.js +157 -0
- package/frontend/dist/assets/index-DmzeqkB1.css +1 -0
- package/frontend/dist/assets/info-3K5VOQVL-DBtHyA4C.js +1 -0
- package/frontend/dist/assets/infoDiagram-LFFYTUFH-yBXLgMPI.js +2 -0
- package/frontend/dist/assets/ini-Pbg8HGVD.js +1 -0
- package/frontend/dist/assets/init-D6KNwrax.js +1 -0
- package/frontend/dist/assets/ishikawaDiagram-PHBUUO56-Bld4two_.js +70 -0
- package/frontend/dist/assets/java-BmVu6Qrl.js +1 -0
- package/frontend/dist/assets/javascript-PbfQEdcJ.js +1 -0
- package/frontend/dist/assets/journeyDiagram-4ABVD52K-4HyMd4R2.js +139 -0
- package/frontend/dist/assets/json.worker-DqU5Wxnl.js +58 -0
- package/frontend/dist/assets/jsonMode-CASsGppE.js +7 -0
- package/frontend/dist/assets/julia-3cGnieBq.js +1 -0
- package/frontend/dist/assets/kanban-definition-K7BYSVSG-DpgsZmpG.js +89 -0
- package/frontend/dist/assets/katex-CEw3x5bf.js +261 -0
- package/frontend/dist/assets/kotlin-BuWkVcfV.js +1 -0
- package/frontend/dist/assets/less-CJ_VPy2C.js +2 -0
- package/frontend/dist/assets/lexon-BygAuZPu.js +1 -0
- package/frontend/dist/assets/line-CA_wh_TY.js +1 -0
- package/frontend/dist/assets/linear-BAcLW45z.js +1 -0
- package/frontend/dist/assets/liquid-kz84dle6.js +1 -0
- package/frontend/dist/assets/lspLanguageFeatures-C7hAHFn1.js +4 -0
- package/frontend/dist/assets/lua-C8Xs3dCx.js +1 -0
- package/frontend/dist/assets/m3-DTJeKBk4.js +1 -0
- package/frontend/dist/assets/markdown-QCgx8JqZ.js +1 -0
- package/frontend/dist/assets/math-D0YcMJAn.js +1 -0
- package/frontend/dist/assets/mdx-yRw0ap-E.js +1 -0
- package/frontend/dist/assets/mermaid-parser.core-DAeTodBQ.js +4 -0
- package/frontend/dist/assets/mindmap-definition-YRQLILUH-CoNlFyVl.js +68 -0
- package/frontend/dist/assets/mips-DopWaYgE.js +1 -0
- package/frontend/dist/assets/monaco.contribution-DeY0Qei-.js +2 -0
- package/frontend/dist/assets/msdax-BDis4ARV.js +1 -0
- package/frontend/dist/assets/mysql-BV6MLsOI.js +1 -0
- package/frontend/dist/assets/objective-c-B1UuzKs6.js +1 -0
- package/frontend/dist/assets/ordinal-jM7S0YHN.js +1 -0
- package/frontend/dist/assets/packet-RMMSAZCW-FF6-Tmai.js +1 -0
- package/frontend/dist/assets/pascal-BkvESCrc.js +1 -0
- package/frontend/dist/assets/pascaligo-lTy0kZYr.js +1 -0
- package/frontend/dist/assets/path-DNPd7Py7.js +1 -0
- package/frontend/dist/assets/perl-CrtUPXLV.js +1 -0
- package/frontend/dist/assets/pgsql-B9IbNWx2.js +1 -0
- package/frontend/dist/assets/php-CXvQBY2p.js +1 -0
- package/frontend/dist/assets/pie-UPGHQEXC-CFvXY2o-.js +1 -0
- package/frontend/dist/assets/pieDiagram-SKSYHLDU-CM_hbCcn.js +30 -0
- package/frontend/dist/assets/pla-DxBxuqWu.js +1 -0
- package/frontend/dist/assets/postiats-OkEuT5YF.js +1 -0
- package/frontend/dist/assets/powerquery-CMx5Tq4K.js +1 -0
- package/frontend/dist/assets/powershell-CstRxrEc.js +1 -0
- package/frontend/dist/assets/preload-helper-D4M6sveU.js +1 -0
- package/frontend/dist/assets/protobuf-Bx0Z-uRj.js +2 -0
- package/frontend/dist/assets/pug--W8vanWl.js +1 -0
- package/frontend/dist/assets/python-DA0rnlw3.js +1 -0
- package/frontend/dist/assets/qsharp-CRtr0YbN.js +1 -0
- package/frontend/dist/assets/quadrantDiagram-337W2JSQ-B3n3IUhC.js +7 -0
- package/frontend/dist/assets/r-C6E1d6iv.js +1 -0
- package/frontend/dist/assets/radar-KQ55EAFF-MPZu7SdX.js +1 -0
- package/frontend/dist/assets/razor-yd73uata.js +1 -0
- package/frontend/dist/assets/redis-Dx13voP3.js +1 -0
- package/frontend/dist/assets/redshift-D66HwlyV.js +1 -0
- package/frontend/dist/assets/requirementDiagram-Z7DCOOCP-CorP7L7F.js +73 -0
- package/frontend/dist/assets/restructuredtext-DQT2NKJ2.js +1 -0
- package/frontend/dist/assets/rough.esm-DxAX5Vpo.js +1 -0
- package/frontend/dist/assets/ruby-iFXI8hwH.js +1 -0
- package/frontend/dist/assets/rust-CSKiei34.js +1 -0
- package/frontend/dist/assets/sankeyDiagram-WA2Y5GQK-RDx6Bd-B.js +10 -0
- package/frontend/dist/assets/sb-Bo3ttdP2.js +1 -0
- package/frontend/dist/assets/scala-BC1D-Nxp.js +1 -0
- package/frontend/dist/assets/scheme-Z4OAo4Lv.js +1 -0
- package/frontend/dist/assets/scss-BvrdPs6B.js +3 -0
- package/frontend/dist/assets/sequenceDiagram-2WXFIKYE-JMqJSFq6.js +145 -0
- package/frontend/dist/assets/shell-Bh_aCyF-.js +1 -0
- package/frontend/dist/assets/solidity-CWHj6tSe.js +1 -0
- package/frontend/dist/assets/sophia-raoNtKtm.js +1 -0
- package/frontend/dist/assets/sparql-XzmoGnue.js +1 -0
- package/frontend/dist/assets/sql-BD0i9Gvg.js +1 -0
- package/frontend/dist/assets/src-Bn-kKzs7.js +1 -0
- package/frontend/dist/assets/st-DtVKyms6.js +1 -0
- package/frontend/dist/assets/stateDiagram-RAJIS63D-CgFfENdy.js +1 -0
- package/frontend/dist/assets/stateDiagram-v2-FVOUBMTO-C4Hh2P-U.js +1 -0
- package/frontend/dist/assets/swift--UZs77wT.js +1 -0
- package/frontend/dist/assets/systemverilog-CDnBSWUd.js +1 -0
- package/frontend/dist/assets/tcl-DdCEuTHZ.js +1 -0
- package/frontend/dist/assets/timeline-definition-YZTLITO2-BnatPBR5.js +61 -0
- package/frontend/dist/assets/treemap-KZPCXAKY-qb1Pl9la.js +1 -0
- package/frontend/dist/assets/ts.worker-DyPAEIuH.js +67719 -0
- package/frontend/dist/assets/tsMode-iuvyEpyO.js +11 -0
- package/frontend/dist/assets/twig-SSL-Altf.js +1 -0
- package/frontend/dist/assets/typescript-17918Hud.js +1 -0
- package/frontend/dist/assets/typespec-BT7S0ETg.js +1 -0
- package/frontend/dist/assets/vb-CrIgucua.js +1 -0
- package/frontend/dist/assets/vennDiagram-LZ73GAT5-DygS4Zzd.js +34 -0
- package/frontend/dist/assets/wgsl-BeKc3oEp.js +298 -0
- package/frontend/dist/assets/workers-DTfwKVoM.js +1 -0
- package/frontend/dist/assets/xml-CBMr_Wbw.js +1 -0
- package/frontend/dist/assets/xterm-BrP-ENHg.css +1 -0
- package/frontend/dist/assets/xterm-CBX2m0YM.js +36 -0
- package/frontend/dist/assets/xychartDiagram-JWTSCODW-D6wY1Jwd.js +7 -0
- package/frontend/dist/assets/yaml-CTjCH7Bv.js +1 -0
- package/frontend/dist/fonts/inter-300.ttf +0 -0
- package/frontend/dist/fonts/inter-400.ttf +0 -0
- package/frontend/dist/fonts/inter-500.ttf +0 -0
- package/frontend/dist/fonts/inter-600.ttf +0 -0
- package/frontend/dist/fonts/inter-700.ttf +0 -0
- package/frontend/dist/index.html +49 -0
- package/frontend/dist/logo_192x192.png +0 -0
- package/frontend/dist/logo_32x32.png +0 -0
- package/frontend/dist/logo_512x512.png +0 -0
- package/frontend/dist/logo_64x64.png +0 -0
- package/frontend/dist/logobg_192x192.png +0 -0
- package/frontend/dist/logobg_512x512.png +0 -0
- package/frontend/dist/logobg_64x64.png +0 -0
- package/frontend/dist/manifest.json +25 -0
- package/frontend/dist/sw.js +22 -0
- package/package.json +74 -7
- package/preload/Makefile +12 -0
- package/preload/atoo-studio-preload.c +647 -0
- package/preload/atoo-studio-preload.so +0 -0
- package/setup-cuse.sh +260 -0
- package/setup.sh +81 -0
- package/src/serial/native/binding.gyp +10 -0
- package/src/serial/native/pty_pair.c +222 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{h as e,p as t}from"./src-Bn-kKzs7.js";import{B as n,C as r,K as i,V as a,W as o,_ as s,a as c,b as l,s as u,u as d,v as f}from"./chunk-7R4GIKGN-Csst1274.js";import{t as p}from"./ordinal-jM7S0YHN.js";function m(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var h=m(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function g(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function _(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function v(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function y(e){return e.target.depth}function b(e){return e.depth}function x(e,t){return t-1-e.height}function S(e,t){return e.sourceLinks.length?e.depth:t-1}function C(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_(e.sourceLinks,y)-1:0}function w(e){return function(){return e}}function T(e,t){return D(e.source,t.source)||e.index-t.index}function E(e,t){return D(e.target,t.target)||e.index-t.index}function D(e,t){return e.y0-t.y0}function O(e){return e.value}function k(e){return e.index}function A(e){return e.nodes}function j(e){return e.links}function M(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function N({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function P(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=k,c=S,l,u,d=A,f=j,p=6;function m(){let e={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return h(e),y(e),b(e),x(e),F(e),N(e),e}m.update=function(e){return N(e),e},m.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:w(e),m):s},m.nodeAlign=function(e){return arguments.length?(c=typeof e==`function`?e:w(e),m):c},m.nodeSort=function(e){return arguments.length?(l=e,m):l},m.nodeWidth=function(e){return arguments.length?(i=+e,m):i},m.nodePadding=function(e){return arguments.length?(a=o=+e,m):a},m.nodes=function(e){return arguments.length?(d=typeof e==`function`?e:w(e),m):d},m.links=function(e){return arguments.length?(f=typeof e==`function`?e:w(e),m):f},m.linkSort=function(e){return arguments.length?(u=e,m):u},m.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],m):[n-e,r-t]},m.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],m):[[e,t],[n,r]]},m.iterations=function(e){return arguments.length?(p=+e,m):p};function h({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=M(n,t)),typeof i!=`object`&&(i=r.target=M(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(u!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(u),n.sort(u)}function y({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(v(t.sourceLinks,O),v(t.targetLinks,O)):t.fixedValue}function b({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function x({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function C({nodes:t}){let r=g(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(c.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(l)for(let e of o)e.sort(l);return o}function P(e){let n=_(e,e=>(r-t-(e.length-1)*o)/v(e,O));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}H(i)}}function F(e){let n=C(e);o=Math.min(a,(r-t)/(g(n,e=>e.length)-1)),P(n);for(let e=0;e<p;++e){let t=.99**e,r=Math.max(1-t,(e+1)/p);L(n,t,r),I(n,t,r)}}function I(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=U(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}l===void 0&&i.sort(D),R(i,n)}}function L(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=W(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}l===void 0&&i.sort(D),R(i,n)}}function R(e,n){let i=e.length>>1,a=e[i];B(e,a.y0-o,i-1,n),z(e,a.y1+o,i+1,n),B(e,r,e.length-1,n),z(e,t,0,n)}function z(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function B(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function V({sourceLinks:e,targetLinks:t}){if(u===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(E);for(let{target:{targetLinks:t}}of e)t.sort(T)}}function H(e){if(u===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(E),n.sort(T)}function U(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function W(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return m}var F=Math.PI,I=2*F,L=1e-6,R=I-L;function z(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function B(){return new z}z.prototype=B.prototype={constructor:z,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>L)if(!(Math.abs(u*s-c*l)>L)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((F-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>L&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>L||Math.abs(this._y1-l)>L)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%I+I),d>R?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>L&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=F)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function V(e){return function(){return e}}function H(e){return e[0]}function U(e){return e[1]}var W=Array.prototype.slice;function ee(e){return e.source}function G(e){return e.target}function K(e){var t=ee,n=G,r=H,i=U,a=null;function o(){var o,s=W.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=B(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:V(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:V(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function q(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function te(){return K(q)}function ne(e){return[e.source.x1,e.y0]}function re(e){return[e.target.x0,e.y1]}function ie(){return te().source(ne).target(re)}var J=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,9],r=[1,10],i=[1,5,10,12],a={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};a.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(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:e(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:e(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 r=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 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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(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:e(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:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,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))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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 a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(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:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return this.pushState(`csv`),4;case 1:return this.pushState(`csv`),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState(`escaped_text`),18;case 6:return 20;case 7:return this.popState(`escaped_text`),18;case 8:return 19}},`anonymous`),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}})();function o(){this.yy={}}return e(o,`Parser`),o.prototype=a,a.Parser=o,new o})();J.parser=J;var Y=J,X=[],Z=[],Q=new Map,ae=e(()=>{X=[],Z=[],Q=new Map,c()},`clear`),oe=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static{e(this,`SankeyLink`)}},se=e((e,t,n)=>{X.push(new oe(e,t,n))},`addLink`),ce=class{constructor(e){this.ID=e}static{e(this,`SankeyNode`)}},le={nodesMap:Q,getConfig:e(()=>l().sankey,`getConfig`),getNodes:e(()=>Z,`getNodes`),getLinks:e(()=>X,`getLinks`),getGraph:e(()=>({nodes:Z.map(e=>({id:e.ID})),links:X.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:se,findOrCreateNode:e(e=>{e=u.sanitizeText(e,l());let t=Q.get(e);return t===void 0&&(t=new ce(e),Q.set(e,t),Z.push(t)),t},`findOrCreateNode`),getAccTitle:f,setAccTitle:a,getAccDescription:s,setAccDescription:n,getDiagramTitle:r,setDiagramTitle:o,clear:ae},$=class t{static{e(this,`Uid`)}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},ue={left:b,right:x,center:C,justify:S},de={draw:e(function(n,r,a,o){let{securityLevel:s,sankey:c}=l(),u=d.sankey,f;s===`sandbox`&&(f=t(`#i`+r));let m=t(s===`sandbox`?f.nodes()[0].contentDocument.body:`body`),g=s===`sandbox`?m.select(`[id="${r}"]`):t(`[id="${r}"]`),_=c?.width??u.width,v=c?.height??u.width,y=c?.useMaxWidth??u.useMaxWidth,b=c?.nodeAlignment??u.nodeAlignment,x=c?.prefix??u.prefix,S=c?.suffix??u.suffix,C=c?.showValues??u.showValues,w=o.db.getGraph(),T=ue[b];P().nodeId(e=>e.id).nodeWidth(10).nodePadding(10+(C?15:0)).nodeAlign(T).extent([[0,0],[_,v]])(w);let E=p(h);g.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(w.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=$.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>E(e.id));let D=e(({id:e,value:t})=>C?`${e}
|
|
7
|
+
${x}${Math.round(t*100)/100}${S}`:e,`getText`);g.append(`g`).attr(`class`,`node-labels`).attr(`font-size`,14).selectAll(`text`).data(w.nodes).join(`text`).attr(`x`,e=>e.x0<_/2?e.x1+6:e.x0-6).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${C?`0`:`0.35`}em`).attr(`text-anchor`,e=>e.x0<_/2?`start`:`end`).text(D);let O=g.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(w.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),k=c?.linkColor??`gradient`;if(k===`gradient`){let e=O.append(`linearGradient`).attr(`id`,e=>(e.uid=$.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>E(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>E(e.target.id))}let A;switch(k){case`gradient`:A=e(e=>e.uid,`coloring`);break;case`source`:A=e(e=>E(e.source.id),`coloring`);break;case`target`:A=e(e=>E(e.target.id),`coloring`);break;default:A=k}O.append(`path`).attr(`d`,ie()).attr(`stroke`,A).attr(`stroke-width`,e=>Math.max(1,e.width)),i(void 0,g,0,y)},`draw`)},fe=e(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),`prepareTextForParsing`),pe=e(e=>`.label {
|
|
9
|
+
font-family: ${e.fontFamily};
|
|
10
|
+
}`,`getStyles`),me=Y.parse.bind(Y);Y.parse=e=>me(fe(e));var he={styles:pe,parser:Y,db:le,renderer:de};export{he as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`'`},brackets:[[`(`,`)`],[`[`,`]`],[`If`,`EndIf`],[`While`,`EndWhile`],[`For`,`EndFor`],[`Sub`,`EndSub`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.sb`,ignoreCase:!0,brackets:[{token:`delimiter.array`,open:`[`,close:`]`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`keyword.tag-if`,open:`If`,close:`EndIf`},{token:`keyword.tag-while`,open:`While`,close:`EndWhile`},{token:`keyword.tag-for`,open:`For`,close:`EndFor`},{token:`keyword.tag-sub`,open:`Sub`,close:`EndSub`}],keywords:[`Else`,`ElseIf`,`EndFor`,`EndIf`,`EndSub`,`EndWhile`,`For`,`Goto`,`If`,`Step`,`Sub`,`Then`,`To`,`While`],tagwords:[`If`,`Sub`,`While`,`For`],operators:[`>`,`<`,`<>`,`<=`,`>=`,`And`,`Or`,`+`,`-`,`*`,`/`,`=`],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:`@whitespace`},[/(@identifier)(?=[.])/,`type`],[/@identifier/,{cases:{"@keywords":{token:`keyword.$0`},"@operators":`operator`,"@default":`variable.name`}}],[/([.])(@identifier)/,{cases:{$2:[`delimiter`,`type.member`],"@default":``}}],[/\d*\.\d+/,`number.float`],[/\d+/,`number`],[/[()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@operators":`operator`,"@default":`delimiter`}}],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`]],whitespace:[[/[ \t\r\n]+/,``],[/(\').*$/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"C?/,`string`,`@pop`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))`),end:RegExp(`^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))`)}}},t={tokenPostfix:`.scala`,keywords:`asInstanceOf.catch.class.classOf.def.do.else.extends.finally.for.foreach.forSome.if.import.isInstanceOf.macro.match.new.object.package.return.throw.trait.try.type.until.val.var.while.with.yield.given.enum.then`.split(`.`),softKeywords:[`as`,`export`,`extension`,`end`,`derives`,`on`],constants:[`true`,`false`,`null`,`this`,`super`],modifiers:[`abstract`,`final`,`implicit`,`lazy`,`override`,`private`,`protected`,`sealed`],softModifiers:[`inline`,`opaque`,`open`,`transparent`,`using`],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:`string.quote`,bracket:`@open`,next:`@rawstringt`}],[/\braw"/,{token:`string.quote`,bracket:`@open`,next:`@rawstring`}],[/\bs"""/,{token:`string.quote`,bracket:`@open`,next:`@sstringt`}],[/\bs"/,{token:`string.quote`,bracket:`@open`,next:`@sstring`}],[/\bf""""/,{token:`string.quote`,bracket:`@open`,next:`@fstringt`}],[/\bf"/,{token:`string.quote`,bracket:`@open`,next:`@fstring`}],[/"""/,{token:`string.quote`,bracket:`@open`,next:`@stringt`}],[/"/,{token:`string.quote`,bracket:`@open`,next:`@string`}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,`number.float`,`@allowMethod`],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,`number.float`,`@allowMethod`],[/0[xX](@hexdigits)[Ll]?/,`number.hex`,`@allowMethod`],[/(@digits)[fFdD]/,`number.float`,`@allowMethod`],[/(@digits)[lL]?/,`number`,`@allowMethod`],[/\b_\*/,`key`],[/\b(_)\b/,`keyword`,`@allowMethod`],[/\bimport\b/,`keyword`,`@import`],[/\b(case)([ \t]+)(class)\b/,[`keyword.modifier`,`white`,`keyword`]],[/\bcase\b/,`keyword`,`@case`],[/\bva[lr]\b/,`keyword`,`@vardef`],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,[`keyword`,`white`,`identifier`]],[/@name(?=[ \t]*:(?!:))/,`variable`],[/(\.)(@name|@symbols)/,[`operator`,{token:`@rematch`,next:`@allowMethod`}]],[/([{(])(\s*)(@name(?=\s*=>))/,[`@brackets`,`white`,`variable`]],[/@name/,{cases:{"@keywords":`keyword`,"@softKeywords":`keyword`,"@modifiers":`keyword.modifier`,"@softModifiers":`keyword.modifier`,"@constants":{token:`constant`,next:`@allowMethod`},"@default":{token:`identifier`,next:`@allowMethod`}}}],[/@type/,`type`,`@allowMethod`],{include:`@whitespace`},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,`annotation`],[/[{(]/,`@brackets`],[/[})]/,`@brackets`,`@allowMethod`],[/\[/,`operator.square`],[/](?!\s*(?:va[rl]|def|type)\b)/,`operator.square`,`@allowMethod`],[/]/,`operator.square`],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,`keyword`],[/@symbols/,`operator`],[/[;,\.]/,`delimiter`],[/'[a-zA-Z$][\w$]*(?!')/,`attribute.name`],[/'[^\\']'/,`string`,`@allowMethod`],[/(')(@escapes)(')/,[`string`,`string.escape`,{token:`string`,next:`@allowMethod`}]],[/'/,`string.invalid`]],import:[[/;/,`delimiter`,`@pop`],[/^|$/,``,`@pop`],[/[ \t]+/,`white`],[/[\n\r]+/,`white`,`@pop`],[/\/\*/,`comment`,`@comment`],[/@name|@type/,`type`],[/[(){}]/,`@brackets`],[/[[\]]/,`operator.square`],[/[\.,]/,`delimiter`]],allowMethod:[[/^|$/,``,`@pop`],[/[ \t]+/,`white`],[/[\n\r]+/,`white`,`@pop`],[/\/\*/,`comment`,`@comment`],[/(?==>[\s\w([{])/,`keyword`,`@pop`],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:`keyword`,next:`@pop`},"->|<-|>:|<:|<%":{token:`keyword`,next:`@pop`},"@default":{token:`@rematch`,next:`@pop`}}}],[``,``,`@pop`]],comment:[[/[^\/*]+/,`comment`],[/\/\*/,`comment`,`@push`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],case:[[/\b_\*/,`key`],[/\b(_|true|false|null|this|super)\b/,`keyword`,`@allowMethod`],[/\bif\b|=>/,`keyword`,`@pop`],[/`[^`]+`/,`identifier`,`@allowMethod`],[/@name/,`variable`,`@allowMethod`],[/:::?|\||@(?![a-z_$])/,`keyword`],{include:`@root`}],vardef:[[/\b_\*/,`key`],[/\b(_|true|false|null|this|super)\b/,`keyword`],[/@name/,`variable`],[/:::?|\||@(?![a-z_$])/,`keyword`],[/=|:(?!:)/,`operator`,`@pop`],[/$/,`white`,`@pop`],{include:`@root`}],string:[[/[^\\"\n\r]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}]],stringt:[[/[^\\"\n\r]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"(?=""")/,`string`],[/"""/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}],[/"/,`string`]],fstring:[[/@escapes/,`string.escape`],[/"/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}],[/\$\$/,`string`],[/(\$)([a-z_]\w*)/,[`operator`,`identifier`]],[/\$\{/,`operator`,`@interp`],[/%%/,`string`],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,[`metatag`,`keyword.modifier`,`number`,`metatag`]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,[`metatag`,`number`,`metatag`]],[/(%)([\-#+ 0,(])(@fstring_conv)/,[`metatag`,`keyword.modifier`,`metatag`]],[/(%)(@fstring_conv)/,[`metatag`,`metatag`]],[/./,`string`]],fstringt:[[/@escapes/,`string.escape`],[/"(?=""")/,`string`],[/"""/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}],[/\$\$/,`string`],[/(\$)([a-z_]\w*)/,[`operator`,`identifier`]],[/\$\{/,`operator`,`@interp`],[/%%/,`string`],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,[`metatag`,`keyword.modifier`,`number`,`metatag`]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,[`metatag`,`number`,`metatag`]],[/(%)([\-#+ 0,(])(@fstring_conv)/,[`metatag`,`keyword.modifier`,`metatag`]],[/(%)(@fstring_conv)/,[`metatag`,`metatag`]],[/./,`string`]],sstring:[[/@escapes/,`string.escape`],[/"/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}],[/\$\$/,`string`],[/(\$)([a-z_]\w*)/,[`operator`,`identifier`]],[/\$\{/,`operator`,`@interp`],[/./,`string`]],sstringt:[[/@escapes/,`string.escape`],[/"(?=""")/,`string`],[/"""/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}],[/\$\$/,`string`],[/(\$)([a-z_]\w*)/,[`operator`,`identifier`]],[/\$\{/,`operator`,`@interp`],[/./,`string`]],interp:[[/{/,`operator`,`@push`],[/}/,`operator`,`@pop`],{include:`@root`}],rawstring:[[/[^"]/,`string`],[/"/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}]],rawstringt:[[/[^"]/,`string`],[/"(?=""")/,`string`],[/"""/,{token:`string.quote`,bracket:`@close`,switchTo:`@allowMethod`}],[/"/,`string`]],whitespace:[[/[ \t\r\n]+/,`white`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`;`,blockComment:[`#|`,`|#`]},brackets:[[`(`,`)`],[`{`,`}`],[`[`,`]`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}]},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.scheme`,brackets:[{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`}],keywords:[`case`,`do`,`let`,`loop`,`if`,`else`,`when`,`cons`,`car`,`cdr`,`cond`,`lambda`,`lambda*`,`syntax-rules`,`format`,`set!`,`quote`,`eval`,`append`,`list`,`list?`,`member?`,`load`],constants:[`#t`,`#f`],operators:[`eq?`,`eqv?`,`equal?`,`and`,`or`,`not`,`null?`],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,`number.hex`],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,`number.float`],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,[`keyword`,`white`,`variable`]],{include:`@whitespace`},{include:`@strings`},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":`keyword`,"@constants":`constant`,"@operators":`operators`,"@default":`identifier`}}]],comment:[[/[^\|#]+/,`comment`],[/#\|/,`comment`,`@push`],[/\|#/,`comment`,`@pop`],[/[\|#]/,`comment`]],whitespace:[[/[ \t\r\n]+/,`white`],[/#\|/,`comment`,`@comment`],[/;.*$/,`comment`]],strings:[[/"$/,`string`,`@popall`],[/"(?=.)/,`string`,`@multiLineString`]],multiLineString:[[/[^\\"]+$/,`string`,`@popall`],[/[^\\"]+/,`string`],[/\\./,`string.escape`],[/"/,`string`,`@popall`],[/\\$/,`string`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:[`/*`,`*/`],lineComment:`//`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/`),end:RegExp(`^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/`)}}},t={defaultToken:``,tokenPostfix:`.scss`,ws:`[
|
|
2
|
+
\r\f]*`,identifier:`-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],tokenizer:{root:[{include:`@selector`}],selector:[{include:`@comments`},{include:`@import`},{include:`@variabledeclaration`},{include:`@warndebug`},[`[@](include)`,{token:`keyword`,next:`@includedeclaration`}],[`[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)`,{token:`keyword`,next:`@keyframedeclaration`}],[`[@](page|content|font-face|-moz-document)`,{token:`keyword`}],[`[@](charset|namespace)`,{token:`keyword`,next:`@declarationbody`}],[`[@](function)`,{token:`keyword`,next:`@functiondeclaration`}],[`[@](mixin)`,{token:`keyword`,next:`@mixindeclaration`}],[`url(\\-prefix)?\\(`,{token:`meta`,next:`@urldeclaration`}],{include:`@controlstatement`},{include:`@selectorname`},[`[&\\*]`,`tag`],[`[>\\+,]`,`delimiter`],[`\\[`,{token:`delimiter.bracket`,next:`@selectorattribute`}],[`{`,{token:`delimiter.curly`,next:`@selectorbody`}]],selectorbody:[[`[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))`,`attribute.name`,`@rulevalue`],{include:`@selector`},[`[@](extend)`,{token:`keyword`,next:`@extendbody`}],[`[@](return)`,{token:`keyword`,next:`@declarationbody`}],[`}`,{token:`delimiter.curly`,next:`@pop`}]],selectorname:[[`#{`,{token:`meta`,next:`@variableinterpolation`}],[`(\\.|#(?=[^{])|%|(@identifier)|:)+`,`tag`]],selectorattribute:[{include:`@term`},[`]`,{token:`delimiter.bracket`,next:`@pop`}]],term:[{include:`@comments`},[`url(\\-prefix)?\\(`,{token:`meta`,next:`@urldeclaration`}],{include:`@functioninvocation`},{include:`@numbers`},{include:`@strings`},{include:`@variablereference`},[`(and\\b|or\\b|not\\b)`,`operator`],{include:`@name`},[`([<>=\\+\\-\\*\\/\\^\\|\\~,])`,`operator`],[`,`,`delimiter`],[`!default`,`literal`],[`\\(`,{token:`delimiter.parenthesis`,next:`@parenthizedterm`}]],rulevalue:[{include:`@term`},[`!important`,`literal`],[`;`,`delimiter`,`@pop`],[`{`,{token:`delimiter.curly`,switchTo:`@nestedproperty`}],[`(?=})`,{token:``,next:`@pop`}]],nestedproperty:[[`[*_]?@identifier@ws:`,`attribute.name`,`@rulevalue`],{include:`@comments`},[`}`,{token:`delimiter.curly`,next:`@pop`}]],warndebug:[[`[@](warn|debug)`,{token:`keyword`,next:`@declarationbody`}]],import:[[`[@](import)`,{token:`keyword`,next:`@declarationbody`}]],variabledeclaration:[[`\\$@identifier@ws:`,`variable.decl`,`@declarationbody`]],urldeclaration:[{include:`@strings`},[`[^)\r
|
|
3
|
+
]+`,`string`],[`\\)`,{token:`meta`,next:`@pop`}]],parenthizedterm:[{include:`@term`},[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],declarationbody:[{include:`@term`},[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],extendbody:[{include:`@selectorname`},[`!optional`,`literal`],[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],variablereference:[[`\\$@identifier`,`variable.ref`],[`\\.\\.\\.`,`operator`],[`#{`,{token:`meta`,next:`@variableinterpolation`}]],variableinterpolation:[{include:`@variablereference`},[`}`,{token:`meta`,next:`@pop`}]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[`.`,`comment`]],name:[[`@identifier`,`attribute.value`]],numbers:[[`(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?`,{token:`number`,next:`@units`}],[`#[0-9a-fA-F_]+(?!\\w)`,`number.hex`]],units:[[`(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?`,`number`,`@pop`]],functiondeclaration:[[`@identifier@ws\\(`,{token:`meta`,next:`@parameterdeclaration`}],[`{`,{token:`delimiter.curly`,switchTo:`@functionbody`}]],mixindeclaration:[[`@identifier@ws\\(`,{token:`meta`,next:`@parameterdeclaration`}],[`@identifier`,`meta`],[`{`,{token:`delimiter.curly`,switchTo:`@selectorbody`}]],parameterdeclaration:[[`\\$@identifier@ws:`,`variable.decl`],[`\\.\\.\\.`,`operator`],[`,`,`delimiter`],{include:`@term`},[`\\)`,{token:`meta`,next:`@pop`}]],includedeclaration:[{include:`@functioninvocation`},[`@identifier`,`meta`],[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}],[`{`,{token:`delimiter.curly`,switchTo:`@selectorbody`}]],keyframedeclaration:[[`@identifier`,`meta`],[`{`,{token:`delimiter.curly`,switchTo:`@keyframebody`}]],keyframebody:[{include:`@term`},[`{`,{token:`delimiter.curly`,next:`@selectorbody`}],[`}`,{token:`delimiter.curly`,next:`@pop`}]],controlstatement:[[`[@](if|else|for|while|each|media)`,{token:`keyword.flow`,next:`@controlstatementdeclaration`}]],controlstatementdeclaration:[[`(in|from|through|if|to)\\b`,{token:`keyword.flow`}],{include:`@term`},[`{`,{token:`delimiter.curly`,switchTo:`@selectorbody`}]],functionbody:[[`[@](return)`,{token:`keyword`}],{include:`@variabledeclaration`},{include:`@term`},{include:`@controlstatement`},[`;`,`delimiter`],[`}`,{token:`delimiter.curly`,next:`@pop`}]],functioninvocation:[[`@identifier\\(`,{token:`meta`,next:`@functionarguments`}]],functionarguments:[[`\\$@identifier@ws:`,`attribute.name`],[`[,]`,`delimiter`],{include:`@term`},[`\\)`,{token:`meta`,next:`@pop`}]],strings:[[`~?"`,{token:`string.delimiter`,next:`@stringenddoublequote`}],[`~?'`,{token:`string.delimiter`,next:`@stringendquote`}]],stringenddoublequote:[[`\\\\.`,`string`],[`"`,{token:`string.delimiter`,next:`@pop`}],[`.`,`string`]],stringendquote:[[`\\\\.`,`string`],[`'`,{token:`string.delimiter`,next:`@pop`}],[`.`,`string`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import{g as e,h as t,p as n}from"./src-Bn-kKzs7.js";import{B as r,C as i,D as a,L as o,P as s,U as c,V as l,W as u,_ as d,a as f,b as p,c as m,i as h,k as g,r as _,s as v,v as y,y as b}from"./chunk-7R4GIKGN-Csst1274.js";import{f as x,h as S}from"./chunk-GEFDOKGD-CnmN6cC8.js";import{t as C}from"./dist-CU_Nb1G5.js";import{c as w,s as T}from"./index-DMLxes_u.js";import{a as E,c as D,i as O,n as k,r as A,s as j}from"./chunk-JSJVCQXG-CWxHBzeJ.js";import{t as M}from"./chunk-QZHKN3VN-JRdddPvu.js";var N=C(),P=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ee=[1,74],te=[1,80],ne=[1,81],re=[1,82],ie=[1,83],L=[1,84],R=[1,85],z=[1,86],B=[1,87],V=[1,88],H=[1,89],ae=[1,90],U=[1,91],oe=[1,92],W=[1,93],se=[1,94],G=[1,95],ce=[1,96],le=[1,97],ue=[1,98],de=[1,99],fe=[1,100],pe=[1,101],me=[1,102],he=[1,103],ge=[1,104],_e=[1,105],ve=[2,78],ye=[4,5,17,51,53,54],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],we=[5,52],K=[70,71,72,73],q=[1,151],Te={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:ee},{23:75,55:76,73:ee},{23:77,73:F},{69:78,72:[1,79],78:te,79:ne,80:re,81:ie,82:L,83:R,84:z,85:B,86:V,87:H,88:ae,89:U,90:oe,91:W,92:se,93:G,94:ce,95:le,96:ue,97:de,98:fe,99:pe,100:me,101:he,102:ge,103:_e},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(I,[2,6]),e(I,[2,16]),e(ye,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(be,a,{7:120}),e(be,a,{7:121}),e(be,a,{7:122}),e(xe,a,{41:123,7:124}),e(Se,a,{43:125,7:126}),e(Se,a,{7:126,43:127}),e(Ce,a,{46:128,7:129}),e(be,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(we,ve,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:te,79:ne,80:re,81:ie,82:L,83:R,84:z,85:B,86:V,87:H,88:ae,89:U,90:oe,91:W,92:se,93:G,94:ce,95:le,96:ue,97:de,98:fe,99:pe,100:me,101:he,102:ge,103:_e},e(K,[2,79]),e(K,[2,80]),e(K,[2,81]),e(K,[2,82]),e(K,[2,83]),e(K,[2,84]),e(K,[2,85]),e(K,[2,86]),e(K,[2,87]),e(K,[2,88]),e(K,[2,89]),e(K,[2,90]),e(K,[2,91]),e(K,[2,92]),e(K,[2,93]),e(K,[2,94]),e(K,[2,95]),e(K,[2,96]),e(K,[2,97]),e(K,[2,98]),e(K,[2,99]),e(K,[2,100]),e(K,[2,101]),e(K,[2,102]),e(K,[2,103]),e(K,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:q},{58:152,104:q},{58:153,104:q},{58:154,104:q},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(we,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:q},{23:181,72:[1,182],73:F},{58:183,104:q},{58:184,104:q},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(ye,[2,11]),{13:186,51:D,53:O,54:k},e(ye,[2,13]),e(ye,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:q},{58:196,104:q},{58:197,104:q},{5:[2,75]},{58:198,104:q},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(ye,[2,12]),e(xe,a,{7:124,41:201}),e(Se,a,{7:126,43:202}),e(Ce,a,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(we,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:q},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Te.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(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:t(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:t(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 r=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 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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(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:t(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:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,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))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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 a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(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:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return this.begin(`LINE`),15;case 16:return this.begin(`ID`),51;case 17:return this.begin(`ID`),53;case 18:return 14;case 19:return this.begin(`ID`),54;case 20:return this.popState(),this.popState(),this.begin(`LINE`),52;case 21:return this.popState(),this.popState(),5;case 22:return this.begin(`LINE`),37;case 23:return this.begin(`LINE`),38;case 24:return this.begin(`LINE`),39;case 25:return this.begin(`LINE`),40;case 26:return this.begin(`LINE`),50;case 27:return this.begin(`LINE`),42;case 28:return this.begin(`LINE`),44;case 29:return this.begin(`LINE`),49;case 30:return this.begin(`LINE`),45;case 31:return this.begin(`LINE`),48;case 32:return this.begin(`LINE`),47;case 33:return this.popState(),16;case 34:return 17;case 35:return 67;case 36:return 68;case 37:return 61;case 38:return 62;case 39:return 63;case 40:return 64;case 41:return 59;case 42:return 56;case 43:return this.begin(`ID`),22;case 44:return this.begin(`ID`),24;case 45:return 30;case 46:return 31;case 47:return this.begin(`acc_title`),32;case 48:return this.popState(),`acc_title_value`;case 49:return this.begin(`acc_descr`),34;case 50:return this.popState(),`acc_descr_value`;case 51:this.begin(`acc_descr_multiline`);break;case 52:this.popState();break;case 53:return`acc_descr_multiline_value`;case 54:return 6;case 55:return 19;case 56:return 21;case 57:return 66;case 58:return 5;case 59:return t.yytext=t.yytext.trim(),73;case 60:return 80;case 61:return 97;case 62:return 98;case 63:return 99;case 64:return 78;case 65:return 79;case 66:return 100;case 67:return 101;case 68:return 102;case 69:return 103;case 70:return 85;case 71:return 86;case 72:return 87;case 73:return 88;case 74:return 93;case 75:return 94;case 76:return 95;case 77:return 96;case 78:return 81;case 79:return 82;case 80:return 83;case 81:return 84;case 82:return 89;case 83:return 90;case 84:return 91;case 85:return 92;case 86:return 104;case 87:return 104;case 88:return 70;case 89:return 71;case 90:return 72;case 91:return 5;case 92:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[52,53],inclusive:!1},acc_descr:{rules:[50],inclusive:!1},acc_title:{rules:[48],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14],inclusive:!1},ALIAS:{rules:[2,3,20,21],inclusive:!1},LINE:{rules:[2,3,33],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],inclusive:!0}}}})();function Ee(){this.yy={}}return t(Ee,`Parser`),Ee.prototype=Te,Te.Parser=Ee,new Ee})();P.parser=P;var F=P,I={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,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},ee={FILLED:0,OPEN:1},te={LEFTOF:0,RIGHTOF:1,OVER:2},ne={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},re=class{constructor(){this.state=new M(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=l,this.setAccDescription=r,this.setDiagramTitle=u,this.getAccTitle=y,this.getAccDescription=d,this.getDiagramTitle=i,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(p().wrap),this.LINETYPE=I,this.ARROWTYPE=ee,this.PLACEMENT=te}static{t(this,`SequenceDB`)}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(`
|
|
7
|
+
`)?i+`
|
|
8
|
+
`:`{
|
|
9
|
+
`+i+`
|
|
10
|
+
}`,o=w(e,{schema:T})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:r})}addSignal(e,t,n,r,i=!1,a){if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(e??``)<1){let t=Error(`Trying to inactivate an inactive participant (`+e+`)`);throw t.hash={text:`->>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)===null?/^:?nowrap:/.exec(e)===null?void 0:!1:!0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?p().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),f()}parseMessage(t){let n=t.trim(),{wrap:r,cleanedText:i}=this.extractWrap(n),a={text:i,wrap:r};return e.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?o(a,p()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(t,n){let r=this.getActor(t);try{let e=o(n.text,p());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let t=JSON.parse(e);this.insertLinks(r,t)}catch(t){e.error(`error while parsing actor link text`,t)}}addALink(t,n){let r=this.getActor(t);try{let e={},t=o(n.text,p()),i=t.indexOf(`@`);t=t.replace(/=/g,`=`),t=t.replace(/&/g,`&`);let a=t.slice(0,i-1).trim();e[a]=t.slice(i+1).trim(),this.insertLinks(r,e)}catch(t){e.error(`error while parsing actor link text`,t)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(t,n){let r=this.getActor(t);try{let e=o(n.text,p()),t=JSON.parse(e);this.insertProperties(r,t)}catch(t){e.error(`error while parsing actor properties text`,t)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,n){let r=this.getActor(t),i=document.getElementById(n.text);try{let e=i.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(r,t.properties),t.links&&this.insertLinks(r,t.links)}catch(t){e.error(`error while parsing actor details text`,t)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:l(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return p().sequence}},ie=t(e=>`.actor {
|
|
11
|
+
stroke: ${e.actorBorder};
|
|
12
|
+
fill: ${e.actorBkg};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
text.actor > tspan {
|
|
16
|
+
fill: ${e.actorTextColor};
|
|
17
|
+
stroke: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.actor-line {
|
|
21
|
+
stroke: ${e.actorLineColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.innerArc {
|
|
25
|
+
stroke-width: 1.5;
|
|
26
|
+
stroke-dasharray: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.messageLine0 {
|
|
30
|
+
stroke-width: 1.5;
|
|
31
|
+
stroke-dasharray: none;
|
|
32
|
+
stroke: ${e.signalColor};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.messageLine1 {
|
|
36
|
+
stroke-width: 1.5;
|
|
37
|
+
stroke-dasharray: 2, 2;
|
|
38
|
+
stroke: ${e.signalColor};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#arrowhead path {
|
|
42
|
+
fill: ${e.signalColor};
|
|
43
|
+
stroke: ${e.signalColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sequenceNumber {
|
|
47
|
+
fill: ${e.sequenceNumberColor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#sequencenumber {
|
|
51
|
+
fill: ${e.signalColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#crosshead path {
|
|
55
|
+
fill: ${e.signalColor};
|
|
56
|
+
stroke: ${e.signalColor};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.messageText {
|
|
60
|
+
fill: ${e.signalTextColor};
|
|
61
|
+
stroke: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.labelBox {
|
|
65
|
+
stroke: ${e.labelBoxBorderColor};
|
|
66
|
+
fill: ${e.labelBoxBkgColor};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.labelText, .labelText > tspan {
|
|
70
|
+
fill: ${e.labelTextColor};
|
|
71
|
+
stroke: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.loopText, .loopText > tspan {
|
|
75
|
+
fill: ${e.loopTextColor};
|
|
76
|
+
stroke: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.loopLine {
|
|
80
|
+
stroke-width: 2px;
|
|
81
|
+
stroke-dasharray: 2, 2;
|
|
82
|
+
stroke: ${e.labelBoxBorderColor};
|
|
83
|
+
fill: ${e.labelBoxBorderColor};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.note {
|
|
87
|
+
//stroke: #decc93;
|
|
88
|
+
stroke: ${e.noteBorderColor};
|
|
89
|
+
fill: ${e.noteBkgColor};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.noteText, .noteText > tspan {
|
|
93
|
+
fill: ${e.noteTextColor};
|
|
94
|
+
stroke: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.activation0 {
|
|
98
|
+
fill: ${e.activationBkgColor};
|
|
99
|
+
stroke: ${e.activationBorderColor};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.activation1 {
|
|
103
|
+
fill: ${e.activationBkgColor};
|
|
104
|
+
stroke: ${e.activationBorderColor};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.activation2 {
|
|
108
|
+
fill: ${e.activationBkgColor};
|
|
109
|
+
stroke: ${e.activationBorderColor};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.actorPopupMenu {
|
|
113
|
+
position: absolute;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.actorPopupMenuPanel {
|
|
117
|
+
position: absolute;
|
|
118
|
+
fill: ${e.actorBkg};
|
|
119
|
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
120
|
+
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
121
|
+
}
|
|
122
|
+
.actor-man line {
|
|
123
|
+
stroke: ${e.actorBorder};
|
|
124
|
+
fill: ${e.actorBkg};
|
|
125
|
+
}
|
|
126
|
+
.actor-man circle, line {
|
|
127
|
+
stroke: ${e.actorBorder};
|
|
128
|
+
fill: ${e.actorBkg};
|
|
129
|
+
stroke-width: 2px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
`,`getStyles`),L=36,R=`actor-top`,z=`actor-bottom`,B=`actor-box`,V=`actor-man`,H=t(function(e,t){return E(e,t)},`drawRect`),ae=t(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var c=`none`;i&&(c=`block !important`);let l=e.append(`g`);l.attr(`id`,`actor`+o+`_popup`),l.attr(`class`,`actorPopupMenu`),l.attr(`display`,c);var u=``;s.class!==void 0&&(u=` `+s.class);let d=s.width>n?s.width:n,f=l.append(`rect`);if(f.attr(`class`,`actorPopupMenuPanel`+u),f.attr(`x`,s.x),f.attr(`y`,s.height),f.attr(`fill`,s.fill),f.attr(`stroke`,s.stroke),f.attr(`width`,d),f.attr(`height`,s.height),f.attr(`rx`,s.rx),f.attr(`ry`,s.ry),a!=null){var p=20;for(let e in a){var m=l.append(`a`),h=(0,N.sanitizeUrl)(a[e]);m.attr(`xlink:href`,h),m.attr(`target`,`_blank`),Ae(r)(e,m,s.x+10,s.height+p,d,20,{class:`actor`},r),p+=30}}return f.attr(`height`,p),{height:s.height+p,width:d}},`drawPopup`),U=t(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),oe=t(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await s(t.text,b()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),W=t(function(e,n){let r=0,i=0,a=n.text.split(v.lineBreakRegex),[o,s]=x(n.fontSize),c=[],l=0,u=t(()=>n.y,`yfunc`);if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case`top`:case`start`:u=t(()=>Math.round(n.y+n.textMargin),`yfunc`);break;case`middle`:case`center`:u=t(()=>Math.round(n.y+(r+i+n.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=t(()=>Math.round(n.y+(r+i+2*n.textMargin)-n.textMargin),`yfunc`);break}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case`left`:case`start`:n.x=Math.round(n.x+n.textMargin),n.anchor=`start`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break;case`middle`:case`center`:n.x=Math.round(n.x+n.width/2),n.anchor=`middle`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break;case`right`:case`end`:n.x=Math.round(n.x+n.width-n.textMargin),n.anchor=`end`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break}for(let[t,d]of a.entries()){n.textMargin!==void 0&&n.textMargin===0&&o!==void 0&&(l=t*o);let a=e.append(`text`);a.attr(`x`,n.x),a.attr(`y`,u()),n.anchor!==void 0&&a.attr(`text-anchor`,n.anchor).attr(`dominant-baseline`,n.dominantBaseline).attr(`alignment-baseline`,n.alignmentBaseline),n.fontFamily!==void 0&&a.style(`font-family`,n.fontFamily),s!==void 0&&a.style(`font-size`,s),n.fontWeight!==void 0&&a.style(`font-weight`,n.fontWeight),n.fill!==void 0&&a.attr(`fill`,n.fill),n.class!==void 0&&a.attr(`class`,n.class),n.dy===void 0?l!==0&&a.attr(`dy`,l):a.attr(`dy`,n.dy);let f=d||``;if(n.tspan){let e=a.append(`tspan`);e.attr(`x`,n.x),n.fill!==void 0&&e.attr(`fill`,n.fill),e.text(f)}else a.text(f);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(i+=(a._groups||a)[0][0].getBBox().height,r=i),c.push(a)}return c},`drawText`),se=t(function(e,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}t(r,`genPoints`);let i=e.append(`polygon`);return i.attr(`points`,r(n.x,n.y,n.width,n.height,7)),i.attr(`class`,`labelBox`),n.y+=n.height/2,W(e,n),i},`drawLabel`),G=-1,ce=t((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),le=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+t.height,s=e.append(`g`).lower();var c=s;r||(G++,Object.keys(t.links||{}).length&&!n.forceMenus&&c.attr(`onclick`,U(`actor${G}_popup`)).attr(`cursor`,`pointer`),c.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),c=s.append(`g`),t.actorCnt=G,t.links!=null&&c.attr(`id`,`root-`+G));let l=j();var u=`actor`;t.properties?.class?u=t.properties.class:l.fill=`#eaeaea`,r?u+=` ${z}`:u+=` ${R}`,l.x=t.x,l.y=i,l.width=t.width,l.height=t.height,l.class=u,l.rx=3,l.ry=3,l.name=t.name;let d=H(c,l);if(t.rectData=l,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?A(c,l.x+l.width-20,l.y+10,e.substr(1)):O(c,l.x+l.width-20,l.y+10,e)}J(n,g(t.description))(t.description,c,l.x,l.y,l.width,l.height,{class:`actor ${B}`},n);let f=t.height;if(d.node){let e=d.node().getBBox();t.height=e.height,f=e.height}return f},`drawActorTypeParticipant`),ue=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+t.height,s=e.append(`g`).lower();var c=s;r||(G++,Object.keys(t.links||{}).length&&!n.forceMenus&&c.attr(`onclick`,U(`actor${G}_popup`)).attr(`cursor`,`pointer`),c.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),c=s.append(`g`),t.actorCnt=G,t.links!=null&&c.attr(`id`,`root-`+G));let l=j();var u=`actor`;t.properties?.class?u=t.properties.class:l.fill=`#eaeaea`,r?u+=` ${z}`:u+=` ${R}`,l.x=t.x,l.y=i,l.width=t.width,l.height=t.height,l.class=u,l.name=t.name;let d={...l,x:l.x+-6,y:l.y+6,class:`actor`},f=H(c,l);if(H(c,d),t.rectData=l,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?A(c,l.x+l.width-20,l.y+10,e.substr(1)):O(c,l.x+l.width-20,l.y+10,e)}J(n,g(t.description))(t.description,c,l.x-6,l.y+6,l.width,l.height,{class:`actor ${B}`},n);let p=t.height;if(f.node){let e=f.node().getBBox();t.height=e.height,p=e.height}return p},`drawActorTypeCollections`),de=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+t.height,s=e.append(`g`).lower(),c=s;r||(G++,Object.keys(t.links||{}).length&&!n.forceMenus&&c.attr(`onclick`,U(`actor${G}_popup`)).attr(`cursor`,`pointer`),c.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),c=s.append(`g`),t.actorCnt=G,t.links!=null&&c.attr(`id`,`root-`+G));let l=j(),u=`actor`;t.properties?.class?u=t.properties.class:l.fill=`#eaeaea`,r?u+=` ${z}`:u+=` ${R}`,l.x=t.x,l.y=i,l.width=t.width,l.height=t.height,l.class=u,l.name=t.name;let d=l.height/2,f=d/(2.5+l.height/50),p=c.append(`g`),m=c.append(`g`);if(p.append(`path`).attr(`d`,`M ${l.x},${l.y+d}
|
|
133
|
+
a ${f},${d} 0 0 0 0,${l.height}
|
|
134
|
+
h ${l.width-2*f}
|
|
135
|
+
a ${f},${d} 0 0 0 0,-${l.height}
|
|
136
|
+
Z
|
|
137
|
+
`).attr(`class`,u),m.append(`path`).attr(`d`,`M ${l.x},${l.y+d}
|
|
138
|
+
a ${f},${d} 0 0 0 0,${l.height}`).attr(`stroke`,`#666`).attr(`stroke-width`,`1px`).attr(`class`,u),p.attr(`transform`,`translate(${f}, ${-(l.height/2)})`),m.attr(`transform`,`translate(${l.width-f}, ${-l.height/2})`),t.rectData=l,t.properties?.icon){let e=t.properties.icon.trim(),n=l.x+l.width-20,r=l.y+10;e.charAt(0)===`@`?A(c,n,r,e.substr(1)):O(c,n,r,e)}J(n,g(t.description))(t.description,c,l.x,l.y,l.width,l.height,{class:`actor ${B}`},n);let h=t.height,_=p.select(`path:last-child`);if(_.node()){let e=_.node().getBBox();t.height=e.height,h=e.height}return h},`drawActorTypeQueue`),fe=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+75,s=e.append(`g`).lower();r||(G++,s.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=G);let c=e.append(`g`),l=V;r?l+=` ${z}`:l+=` ${R}`,c.attr(`class`,l),c.attr(`name`,t.name);let u=j();u.x=t.x,u.y=i,u.fill=`#eaeaea`,u.width=t.width,u.height=t.height,u.class=`actor`;let d=t.x+t.width/2,f=i+32;return c.append(`defs`).append(`marker`).attr(`id`,`filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),c.append(`circle`).attr(`cx`,d).attr(`cy`,f).attr(`r`,22).attr(`fill`,`#eaeaf7`).attr(`stroke`,`#666`).attr(`stroke-width`,1.2),c.append(`line`).attr(`marker-end`,`url(#filled-head-control)`).attr(`transform`,`translate(${d}, ${f-22})`),t.height=c.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0),J(n,g(t.description))(t.description,c,u.x,u.y+22+(r?5:12),u.width,u.height,{class:`actor ${V}`},n),t.height},`drawActorTypeControl`),pe=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+75,s=e.append(`g`).lower(),c=e.append(`g`),l=`actor`;r?l+=` ${z}`:l+=` ${R}`,c.attr(`class`,l),c.attr(`name`,t.name);let u=j();u.x=t.x,u.y=i,u.fill=`#eaeaea`,u.width=t.width,u.height=t.height,u.class=`actor`;let d=t.x+t.width/2,f=i+(r?10:25);return c.append(`circle`).attr(`cx`,d).attr(`cy`,f).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),c.append(`line`).attr(`x1`,d-22).attr(`x2`,d+22).attr(`y1`,f+22).attr(`y2`,f+22).attr(`stroke-width`,2),t.height=c.node().getBBox().height+(n?.sequence?.labelBoxHeight??0),r||(G++,s.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=G),J(n,g(t.description))(t.description,c,u.x,u.y+(r?15:30),u.width,u.height,{class:`actor ${V}`},n),r?c.attr(`transform`,`translate(0, 22)`):c.attr(`transform`,`translate(0, ${22/2-5})`),t.height},`drawActorTypeEntity`),me=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+t.height+2*n.boxTextMargin,s=e.append(`g`).lower(),c=s;r||(G++,Object.keys(t.links||{}).length&&!n.forceMenus&&c.attr(`onclick`,U(`actor${G}_popup`)).attr(`cursor`,`pointer`),c.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),c=s.append(`g`),t.actorCnt=G,t.links!=null&&c.attr(`id`,`root-`+G));let l=j(),u=`actor`;t.properties?.class?u=t.properties.class:l.fill=`#eaeaea`,r?u+=` ${z}`:u+=` ${R}`,l.x=t.x,l.y=i,l.width=t.width,l.height=t.height,l.class=u,l.name=t.name,l.x=t.x,l.y=i;let d=l.width/3,f=l.width/3,p=d/2,m=p/(2.5+d/50),h=c.append(`g`),_=`
|
|
139
|
+
M ${l.x},${l.y+m}
|
|
140
|
+
a ${p},${m} 0 0 0 ${d},0
|
|
141
|
+
a ${p},${m} 0 0 0 -${d},0
|
|
142
|
+
l 0,${f-2*m}
|
|
143
|
+
a ${p},${m} 0 0 0 ${d},0
|
|
144
|
+
l 0,-${f-2*m}
|
|
145
|
+
`;h.append(`path`).attr(`d`,_).attr(`fill`,`#eaeaea`).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`class`,u),h.attr(`transform`,`translate(${d}, ${m})`),t.rectData=l,J(n,g(t.description))(t.description,c,l.x,l.y+35,l.width,l.height,{class:`actor ${B}`},n);let v=h.select(`path:last-child`);return v.node()&&(t.height=v.node().getBBox().height+(n.sequence.labelBoxHeight??0)),t.height},`drawActorTypeDatabase`),he=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+80,s=e.append(`g`).lower();r||(G++,s.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=G);let c=e.append(`g`),l=V;r?l+=` ${z}`:l+=` ${R}`,c.attr(`class`,l),c.attr(`name`,t.name);let u=j();return u.x=t.x,u.y=i,u.fill=`#eaeaea`,u.width=t.width,u.height=t.height,u.class=`actor`,c.append(`line`).attr(`id`,`actor-man-torso`+G).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,i+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,i+12),c.append(`line`).attr(`id`,`actor-man-arms`+G).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,i+2).attr(`x2`,t.x+t.width/2-22*2.5).attr(`y2`,i+22),c.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,i+12).attr(`r`,22),t.height=c.node().getBBox().height+(n.sequence.labelBoxHeight??0),J(n,g(t.description))(t.description,c,u.x,u.y+15,u.width,u.height,{class:`actor ${V}`},n),c.attr(`transform`,`translate(0,21)`),t.height},`drawActorTypeBoundary`),ge=t(function(e,t,n,r){let i=r?t.stopy:t.starty,a=t.x+t.width/2,o=i+80,s=e.append(`g`).lower();r||(G++,s.append(`line`).attr(`id`,`actor`+G).attr(`x1`,a).attr(`y1`,o).attr(`x2`,a).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=G);let c=e.append(`g`),l=V;r?l+=` ${z}`:l+=` ${R}`,c.attr(`class`,l),c.attr(`name`,t.name);let u=j();u.x=t.x,u.y=i,u.fill=`#eaeaea`,u.width=t.width,u.height=t.height,u.class=`actor`,u.rx=3,u.ry=3,c.append(`line`).attr(`id`,`actor-man-torso`+G).attr(`x1`,a).attr(`y1`,i+25).attr(`x2`,a).attr(`y2`,i+45),c.append(`line`).attr(`id`,`actor-man-arms`+G).attr(`x1`,a-L/2).attr(`y1`,i+33).attr(`x2`,a+L/2).attr(`y2`,i+33),c.append(`line`).attr(`x1`,a-L/2).attr(`y1`,i+60).attr(`x2`,a).attr(`y2`,i+45),c.append(`line`).attr(`x1`,a).attr(`y1`,i+45).attr(`x2`,a+L/2-2).attr(`y2`,i+60);let d=c.append(`circle`);return d.attr(`cx`,t.x+t.width/2),d.attr(`cy`,i+10),d.attr(`r`,15),d.attr(`width`,t.width),d.attr(`height`,t.height),t.height=c.node().getBBox().height,J(n,g(t.description))(t.description,c,u.x,u.y+35,u.width,u.height,{class:`actor ${V}`},n),t.height},`drawActorTypeActor`),_e=t(async function(e,t,n,r){switch(t.type){case`actor`:return await ge(e,t,n,r);case`participant`:return await le(e,t,n,r);case`boundary`:return await he(e,t,n,r);case`control`:return await fe(e,t,n,r);case`entity`:return await pe(e,t,n,r);case`database`:return await me(e,t,n,r);case`collections`:return await ue(e,t,n,r);case`queue`:return await de(e,t,n,r)}},`drawActor`),ve=t(function(e,t,n){let r=e.append(`g`);Se(r,t),t.name&&J(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),ye=t(function(e){return e.append(`g`)},`anchorElement`),be=t(function(e,t,n,r,i){let a=j(),o=t.anchored;a.x=t.startx,a.y=t.starty,a.class=`activation`+i%3,a.width=t.stopx-t.startx,a.height=n-t.starty,H(o,a)},`drawActivation`),xe=t(async function(e,n,r,i){let{boxMargin:a,boxTextMargin:o,labelBoxHeight:s,labelBoxWidth:c,messageFontFamily:l,messageFontSize:u,messageFontWeight:d}=i,f=e.append(`g`),p=t(function(e,t,n,r){return f.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);p(n.startx,n.starty,n.stopx,n.starty),p(n.stopx,n.starty,n.stopx,n.stopy),p(n.startx,n.stopy,n.stopx,n.stopy),p(n.startx,n.starty,n.startx,n.stopy),n.sections!==void 0&&n.sections.forEach(function(e){p(n.startx,e.y,n.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let m=D();m.text=r,m.x=n.startx,m.y=n.starty,m.fontFamily=l,m.fontSize=u,m.fontWeight=d,m.anchor=`middle`,m.valign=`middle`,m.tspan=!1,m.width=c||50,m.height=s||20,m.textMargin=o,m.class=`labelText`,se(f,m),m=Oe(),m.text=n.title,m.x=n.startx+c/2+(n.stopx-n.startx)/2,m.y=n.starty+a+o,m.anchor=`middle`,m.valign=`middle`,m.textMargin=o,m.class=`loopText`,m.fontFamily=l,m.fontSize=u,m.fontWeight=d,m.wrap=!0;let h=g(m.text)?await oe(f,m,n):W(f,m);if(n.sectionTitles!==void 0){for(let[e,t]of Object.entries(n.sectionTitles))if(t.message){m.text=t.message,m.x=n.startx+(n.stopx-n.startx)/2,m.y=n.sections[e].y+a+o,m.class=`loopText`,m.anchor=`middle`,m.valign=`middle`,m.tspan=!1,m.fontFamily=l,m.fontSize=u,m.fontWeight=d,m.wrap=n.wrap,g(m.text)?(n.starty=n.sections[e].y,await oe(f,m,n)):W(f,m);let r=Math.round(h.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));n.sections[e].height+=r-(a+o)}}return n.height=Math.round(n.stopy-n.starty),f},`drawLoop`),Se=t(function(e,t){k(e,t)},`drawBackgroundRect`),Ce=t(function(e){e.append(`defs`).append(`symbol`).attr(`id`,`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`),we=t(function(e){e.append(`defs`).append(`symbol`).attr(`id`,`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`),K=t(function(e){e.append(`defs`).append(`symbol`).attr(`id`,`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`),q=t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),Te=t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`filled-head`).attr(`refX`,15.5).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`),Ee=t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),De=t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),Oe=t(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),ke=t(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),J=(function(){function e(e,t,n,r,i,o,s){a(t.append(`text`).attr(`x`,n+i/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,i,o,s,c){let{actorFontSize:l,actorFontFamily:u,actorFontWeight:d}=c,[f,p]=x(l),m=e.split(v.lineBreakRegex);for(let e=0;e<m.length;e++){let c=e*f-f*(m.length-1)/2,l=t.append(`text`).attr(`x`,n+i/2).attr(`y`,r).style(`text-anchor`,`middle`).style(`font-size`,p).style(`font-weight`,d).style(`font-family`,u);l.append(`tspan`).attr(`x`,n+i/2).attr(`dy`,c).text(m[e]),l.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),a(l,s)}}t(n,`byTspan`);function r(e,t,r,i,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,i).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,i,o,s,c,l),a(d,c)}t(r,`byFo`);async function i(e,t,r,i,o,c,l,u){let d=await h(e,b()),f=t.append(`switch`),p=f.append(`foreignObject`).attr(`x`,r+o/2-d.width/2).attr(`y`,i+c/2-d.height/2).attr(`width`,d.width).attr(`height`,d.height).append(`xhtml:div`).style(`height`,`100%`).style(`width`,`100%`);p.append(`div`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(await s(e,b())),n(e,f,r,i,o,c,l,u),a(p,l)}t(i,`byKatex`);function a(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return t(a,`_setTextAttrs`),function(t,a=!1){return a?i:t.textPlacement===`fo`?r:t.textPlacement===`old`?e:n}})(),Ae=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n).attr(`y`,r).style(`text-anchor`,`start`).text(e),s)}t(e,`byText`);function n(e,t,n,r,a,o,s,c){let{actorFontSize:l,actorFontFamily:u,actorFontWeight:d}=c,f=e.split(v.lineBreakRegex);for(let e=0;e<f.length;e++){let a=e*l-l*(f.length-1)/2,c=t.append(`text`).attr(`x`,n).attr(`y`,r).style(`text-anchor`,`start`).style(`font-size`,l).style(`font-weight`,d).style(`font-family`,u);c.append(`tspan`).attr(`x`,n).attr(`dy`,a).text(f[e]),c.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(c,s)}}t(n,`byTspan`);function r(e,t,r,a,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,a,o,s,c,l),i(d,c)}t(r,`byFo`);function i(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return t(i,`_setTextAttrs`),function(t){return t.textPlacement===`fo`?r:t.textPlacement===`old`?e:n}})(),Y={drawRect:H,drawText:W,drawLabel:se,drawActor:_e,drawBox:ve,drawPopup:ae,anchorElement:ye,drawActivation:be,drawLoop:xe,drawBackgroundRect:Se,insertArrowHead:q,insertArrowFilledHead:Te,insertSequenceNumber:Ee,insertArrowCrossHead:De,insertDatabaseIcon:Ce,insertComputerIcon:we,insertClockIcon:K,getTextObj:Oe,getNoteRect:ke,fixLifeLineHeights:ce,sanitizeUrl:N.sanitizeUrl,insertSolidTopArrowHead:t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`solidTopArrowHead`).attr(`refX`,7.9).attr(`refY`,7.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 8 L 0 8 z`)},`insertSolidTopArrowHead`),insertSolidBottomArrowHead:t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`solidBottomArrowHead`).attr(`refX`,7.9).attr(`refY`,.75).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 0 L 0 8 z`)},`insertSolidBottomArrowHead`),insertStickTopArrowHead:t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`stickTopArrowHead`).attr(`refX`,7.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 7 7`).attr(`stroke`,`black`).attr(`stroke-width`,1.5).attr(`fill`,`none`)},`insertStickTopArrowHead`),insertStickBottomArrowHead:t(function(e){e.append(`defs`).append(`marker`).attr(`id`,`stickBottomArrowHead`).attr(`refX`,7.5).attr(`refY`,0).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 7 L 7 0`).attr(`stroke`,`black`).attr(`stroke-width`,1.5).attr(`fill`,`none`)},`insertStickBottomArrowHead`)},X={},Z={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:t(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:t(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:t(function(e){this.boxes.push(e)},`addBox`),addActor:t(function(e){this.actors.push(e)},`addActor`),addLoop:t(function(e){this.loops.push(e)},`addLoop`),addMessage:t(function(e){this.messages.push(e)},`addMessage`),addNote:t(function(e){this.notes.push(e)},`addNote`),lastActor:t(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:t(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:t(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:t(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:t(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Be(p())},`init`),updateVal:t(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:t(function(e,n,r,i){let a=this,o=0;function s(s){return t(function(t){o++;let c=a.sequenceItems.length-o+1;a.updateVal(t,`starty`,n-c*X.boxMargin,Math.min),a.updateVal(t,`stopy`,i+c*X.boxMargin,Math.max),a.updateVal(Z.data,`startx`,e-c*X.boxMargin,Math.min),a.updateVal(Z.data,`stopx`,r+c*X.boxMargin,Math.max),s!==`activation`&&(a.updateVal(t,`startx`,e-c*X.boxMargin,Math.min),a.updateVal(t,`stopx`,r+c*X.boxMargin,Math.max),a.updateVal(Z.data,`starty`,n-c*X.boxMargin,Math.min),a.updateVal(Z.data,`stopy`,i+c*X.boxMargin,Math.max))},`updateItemBounds`)}t(s,`updateFn`),this.sequenceItems.forEach(s()),this.activations.forEach(s(`activation`))},`updateBounds`),insert:t(function(e,t,n,r){let i=v.getMin(e,n),a=v.getMax(e,n),o=v.getMin(t,r),s=v.getMax(t,r);this.updateVal(Z.data,`startx`,i,Math.min),this.updateVal(Z.data,`starty`,o,Math.min),this.updateVal(Z.data,`stopx`,a,Math.max),this.updateVal(Z.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:t(function(e,t,n){let r=n.get(e.from),i=Ve(e.from).length||0,a=r.x+r.width/2+(i-1)*X.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+X.activationWidth,stopy:void 0,actor:e.from,anchored:Y.anchorElement(t)})},`newActivation`),endActivation:t(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:t(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:t(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:t(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:t(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:t(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Z.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:t(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:t(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:t(function(e){this.verticalPos+=e,this.data.stopy=v.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:t(function(){return this.verticalPos},`getVerticalPos`),getBounds:t(function(){return{bounds:this.data,models:this.models}},`getBounds`)},je=t(async function(e,t){Z.bumpVerticalPos(X.boxMargin),t.height=X.boxMargin,t.starty=Z.getVerticalPos();let n=j();n.x=t.startx,n.y=t.starty,n.width=t.width||X.width,n.class=`note`;let r=e.append(`g`),i=Y.drawRect(r,n),a=D();a.x=t.startx,a.y=t.starty,a.width=n.width,a.dy=`1em`,a.text=t.message,a.class=`noteText`,a.fontFamily=X.noteFontFamily,a.fontSize=X.noteFontSize,a.fontWeight=X.noteFontWeight,a.anchor=X.noteAlign,a.textMargin=X.noteMargin,a.valign=`center`;let o=g(a.text)?await oe(r,a):W(r,a),s=Math.round(o.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));i.attr(`height`,s+2*X.noteMargin),t.height+=s+2*X.noteMargin,Z.bumpVerticalPos(s+2*X.noteMargin),t.stopy=t.starty+s+2*X.noteMargin,t.stopx=t.startx+n.width,Z.insert(t.startx,t.starty,t.stopx,t.stopy),Z.models.addNote(t)},`drawNote`),Me=t(function(e,n,r,i,a,o,s){let c=i.db.getActors(),l=c.get(n.from),u=c.get(n.to),d=r.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=$e(n,i),g=e.append(`g`),_=16.5,v=t((e,t)=>{let n=e?_:-_;return t?-n:n},`getCircleOffset`),y=t(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,s).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:b,CENTRAL_CONNECTION_REVERSE:x,CENTRAL_CONNECTION_DUAL:S}=i.db.LINETYPE;if(d)switch(n.centralConnection){case b:h&&(p+=v(m,!0));break;case x:h||(f+=v(m,!1));break;case S:h?p+=v(m,!0):f+=v(m,!1);break}switch(n.centralConnection){case b:y(p);break;case x:y(f);break;case S:y(f),y(p);break}},`drawCentralConnection`),Q=t(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),Ne=t(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),Pe=t(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function Fe(e,t){Z.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=v.splitBreaks(i).length,o=g(i),s=o?await h(i,p()):S.calculateTextDimensions(i,Q(X));if(!o){let e=s.height/a;t.height+=e,Z.bumpVerticalPos(e)}let c,l=s.height-10,u=s.width;if(n===r){c=Z.getVerticalPos()+l,X.rightAngles||(l+=X.boxMargin,c=Z.getVerticalPos()+l),l+=30;let e=v.getMax(u/2,X.width/2);Z.insert(n-e,Z.getVerticalPos()-10+l,r+e,Z.getVerticalPos()+30+l)}else l+=X.boxMargin,c=Z.getVerticalPos()+l,Z.insert(n,c-10,r,c);return Z.bumpVerticalPos(l),t.height+=l,t.stopy=t.starty+t.height,Z.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),c}t(Fe,`boundMessage`);var Ie=t(async function(e,t,n,r,i){let{startx:o,stopx:s,starty:c,message:l,type:u,sequenceIndex:d,sequenceVisible:f}=t,p=S.calculateTextDimensions(l,Q(X)),m=D();m.x=o,m.y=c+10,m.width=s-o,m.class=`messageText`,m.dy=`1em`,m.text=l,m.fontFamily=X.messageFontFamily,m.fontSize=X.messageFontSize,m.fontWeight=X.messageFontWeight,m.anchor=X.messageAlign,m.valign=`center`,m.textMargin=X.wrapPadding,m.tspan=!1,g(m.text)?await oe(e,m,{startx:o,stopx:s,starty:n}):W(e,m);let h=p.width,_;if(o===s){let t=f||X.showSequenceNumbers,a=$e(i,r),s=et(i,r),c=o+(t&&(a||s)?10:0);_=X.rightAngles?e.append(`path`).attr(`d`,`M ${c},${n} H ${o+v.getMax(X.width/2,h/2)} V ${n+25} H ${o}`):e.append(`path`).attr(`d`,`M `+c+`,`+n+` C `+(c+60)+`,`+(n-10)+` `+(o+60)+`,`+(n+30)+` `+o+`,`+(n+20))}else _=e.append(`line`),_.attr(`x1`,o),_.attr(`y1`,n),_.attr(`x2`,s),_.attr(`y2`,n),Ze(i,r)&&Me(e,i,t,r,o,s,n);u===r.db.LINETYPE.DOTTED||u===r.db.LINETYPE.DOTTED_CROSS||u===r.db.LINETYPE.DOTTED_POINT||u===r.db.LINETYPE.DOTTED_OPEN||u===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||u===r.db.LINETYPE.SOLID_TOP_DOTTED||u===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||u===r.db.LINETYPE.STICK_TOP_DOTTED||u===r.db.LINETYPE.STICK_BOTTOM_DOTTED||u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(_.style(`stroke-dasharray`,`3, 3`),_.attr(`class`,`messageLine1`)):_.attr(`class`,`messageLine0`);let y=``;if(X.arrowMarkerAbsolute&&(y=a(!0)),_.attr(`stroke-width`,2),_.attr(`stroke`,`none`),_.style(`fill`,`none`),(u===r.db.LINETYPE.SOLID_TOP||u===r.db.LINETYPE.SOLID_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+y+`#solidTopArrowHead)`),(u===r.db.LINETYPE.SOLID_BOTTOM||u===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+y+`#solidBottomArrowHead)`),(u===r.db.LINETYPE.STICK_TOP||u===r.db.LINETYPE.STICK_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+y+`#stickTopArrowHead)`),(u===r.db.LINETYPE.STICK_BOTTOM||u===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+y+`#stickBottomArrowHead)`),(u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+y+`#solidBottomArrowHead)`),(u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+y+`#solidTopArrowHead)`),(u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+y+`#stickBottomArrowHead)`),(u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+y+`#stickTopArrowHead)`),(u===r.db.LINETYPE.SOLID||u===r.db.LINETYPE.DOTTED)&&_.attr(`marker-end`,`url(`+y+`#arrowhead)`),(u===r.db.LINETYPE.BIDIRECTIONAL_SOLID||u===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr(`marker-start`,`url(`+y+`#arrowhead)`),_.attr(`marker-end`,`url(`+y+`#arrowhead)`)),(u===r.db.LINETYPE.SOLID_POINT||u===r.db.LINETYPE.DOTTED_POINT)&&_.attr(`marker-end`,`url(`+y+`#filled-head)`),(u===r.db.LINETYPE.SOLID_CROSS||u===r.db.LINETYPE.DOTTED_CROSS)&&_.attr(`marker-end`,`url(`+y+`#crosshead)`),f||X.showSequenceNumbers){let a=u===r.db.LINETYPE.BIDIRECTIONAL_SOLID||u===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,c=u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,l=Ze(i,r),f=o,p=s;a?(o<s?f=o+12:(f=o-6+(l?-5:0),f+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),_.attr(`x1`,f)):c?(s>o?p=s-12:(p=s-6,f+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),p+=l?15:0,_.attr(`x2`,p),_.attr(`x1`,f)):_.attr(`x1`,o+6);let m=0,h=o===s,g=o<=s;m=h?t.fromBounds+1:c?g?t.toBounds-1:t.fromBounds+1:g?t.fromBounds+1:t.toBounds-1,e.append(`line`).attr(`x1`,m).attr(`y1`,n).attr(`x2`,m).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+y+`#sequencenumber)`),e.append(`text`).attr(`x`,m).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,`12px`).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(d)}},`drawMessage`),Le=t(function(e,t,n,r,i,a,o){let s=0,c=0,l,u=0;for(let e of r){let r=t.get(e),a=r.box;l&&l!=a&&(o||Z.models.addBox(l),c+=X.boxMargin+l.margin),a&&a!=l&&(o||(a.x=s+c,a.y=i),c+=a.margin),r.width=r.width||X.width,r.height=v.getMax(r.height||X.height,X.height),r.margin=r.margin||X.actorMargin,u=v.getMax(u,r.height),n.get(r.name)&&(c+=r.width/2),r.x=s+c,r.starty=Z.getVerticalPos(),Z.insert(r.x,i,r.x+r.width,r.height),s+=r.width+c,r.box&&(r.box.width=s+a.margin-r.box.x),c=r.margin,l=r.box,Z.models.addActor(r)}l&&!o&&Z.models.addBox(l),Z.bumpVerticalPos(u)},`addActorRenderingData`),Re=t(async function(e,t,n,r){if(r){let r=0;Z.bumpVerticalPos(X.boxMargin*2);for(let i of n){let n=t.get(i);n.stopy||=Z.getVerticalPos();let a=await Y.drawActor(e,n,X,!0);r=v.getMax(r,a)}Z.bumpVerticalPos(r+X.boxMargin)}else for(let r of n){let n=t.get(r);await Y.drawActor(e,n,X,!1)}},`drawActors`),ze=t(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Ke(n),c=Y.drawPopup(e,n,s,X,X.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),Be=t(function(e){_(X,e),e.fontFamily&&(X.actorFontFamily=X.noteFontFamily=X.messageFontFamily=e.fontFamily),e.fontSize&&(X.actorFontSize=X.noteFontSize=X.messageFontSize=e.fontSize),e.fontWeight&&(X.actorFontWeight=X.noteFontWeight=X.messageFontWeight=e.fontWeight)},`setConf`),Ve=t(function(e){return Z.activations.filter(function(t){return t.actor===e})},`actorActivations`),He=t(function(e,t){let n=t.get(e),r=Ve(e);return[r.reduce(function(e,t){return v.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return v.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`);function $(t,n,r,i,a){Z.bumpVerticalPos(r);let o=i;if(n.id&&n.message&&t[n.id]){let r=t[n.id].width,a=Q(X);n.message=S.wrapLabel(`[${n.message}]`,r-2*X.wrapPadding,a),n.width=r,n.wrap=!0;let s=S.calculateTextDimensions(n.message,a),c=v.getMax(s.height,X.labelBoxHeight);o=i+c,e.debug(`${c} - ${n.message}`)}a(n),Z.bumpVerticalPos(o)}t($,`adjustLoopHeightForWrap`);function Ue(e,n,r,i,a,o,s){function c(t,r){t.x<a.get(e.from).x?(Z.insert(n.stopx-r,n.starty,n.startx,n.stopy+t.height/2+X.noteMargin),n.stopx+=r):(Z.insert(n.startx,n.starty,n.stopx+r,n.stopy+t.height/2+X.noteMargin),n.stopx-=r)}t(c,`receiverAdjustment`);function l(t,r){t.x<a.get(e.to).x?(Z.insert(n.startx-r,n.starty,n.stopx,n.stopy+t.height/2+X.noteMargin),n.startx+=r):(Z.insert(n.stopx,n.starty,n.startx+r,n.stopy+t.height/2+X.noteMargin),n.startx-=r)}t(l,`senderAdjustment`);let u=[ne.ACTOR,ne.CONTROL,ne.ENTITY,ne.DATABASE];if(o.get(e.to)==i){let t=a.get(e.to);c(t,u.includes(t.type)?L/2+3:t.width/2+3),t.starty=r-t.height/2,Z.bumpVerticalPos(t.height/2)}else if(s.get(e.from)==i){let t=a.get(e.from);X.mirrorActors&&l(t,u.includes(t.type)?L/2:t.width/2),t.stopy=r-t.height/2,Z.bumpVerticalPos(t.height/2)}else if(s.get(e.to)==i){let t=a.get(e.to);X.mirrorActors&&c(t,u.includes(t.type)?L/2+3:t.width/2+3),t.stopy=r-t.height/2,Z.bumpVerticalPos(t.height/2)}}t(Ue,`adjustCreatedDestroyedData`);var We=t(async function(r,i,a,o){let{securityLevel:s,sequence:c}=p();X=c;let l;s===`sandbox`&&(l=n(`#i`+i));let u=n(s===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=s===`sandbox`?l.nodes()[0].contentDocument:document;Z.init(),e.debug(o.db);let f=s===`sandbox`?u.select(`[id="${i}"]`):n(`[id="${i}"]`),h=o.db.getActors(),g=o.db.getCreatedActors(),_=o.db.getDestroyedActors(),v=o.db.getBoxes(),y=o.db.getActorKeys(),b=o.db.getMessages(),x=o.db.getDiagramTitle(),S=o.db.hasAtLeastOneBox(),C=o.db.hasAtLeastOneBoxWithTitle(),w=await Ge(h,b,o);if(X.height=await qe(h,w,v),Y.insertComputerIcon(f),Y.insertDatabaseIcon(f),Y.insertClockIcon(f),S&&(Z.bumpVerticalPos(X.boxMargin),C&&Z.bumpVerticalPos(v[0].textMaxHeight)),X.hideUnusedParticipants===!0){let e=new Set;b.forEach(t=>{e.add(t.from),e.add(t.to)}),y=y.filter(t=>e.has(t))}Le(f,h,g,y,0,b,!1);let T=await nt(b,h,w,o);Y.insertArrowHead(f),Y.insertArrowCrossHead(f),Y.insertArrowFilledHead(f),Y.insertSequenceNumber(f),Y.insertSolidTopArrowHead(f),Y.insertSolidBottomArrowHead(f),Y.insertStickTopArrowHead(f),Y.insertStickBottomArrowHead(f);function E(e,t){let n=Z.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),Y.drawActivation(f,n,t,X,Ve(e.from).length),Z.insert(n.startx,t-10,n.stopx,t)}t(E,`activeEnd`);let D=1,O=1,k=[],A=[],j=0;for(let t of b){let n,r,i;switch(t.type){case o.db.LINETYPE.NOTE:Z.resetVerticalPos(),r=t.noteModel,await je(f,r);break;case o.db.LINETYPE.ACTIVE_START:Z.newActivation(t,f,h);break;case o.db.LINETYPE.CENTRAL_CONNECTION:Z.newActivation(t,f,h);break;case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Z.newActivation(t,f,h);break;case o.db.LINETYPE.ACTIVE_END:E(t,Z.getVerticalPos());break;case o.db.LINETYPE.LOOP_START:$(T,t,X.boxMargin,X.boxMargin+X.boxTextMargin,e=>Z.newLoop(e));break;case o.db.LINETYPE.LOOP_END:n=Z.endLoop(),await Y.drawLoop(f,n,`loop`,X),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos()),Z.models.addLoop(n);break;case o.db.LINETYPE.RECT_START:$(T,t,X.boxMargin,X.boxMargin,e=>Z.newLoop(void 0,e.message));break;case o.db.LINETYPE.RECT_END:n=Z.endLoop(),A.push(n),Z.models.addLoop(n),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos());break;case o.db.LINETYPE.OPT_START:$(T,t,X.boxMargin,X.boxMargin+X.boxTextMargin,e=>Z.newLoop(e));break;case o.db.LINETYPE.OPT_END:n=Z.endLoop(),await Y.drawLoop(f,n,`opt`,X),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos()),Z.models.addLoop(n);break;case o.db.LINETYPE.ALT_START:$(T,t,X.boxMargin,X.boxMargin+X.boxTextMargin,e=>Z.newLoop(e));break;case o.db.LINETYPE.ALT_ELSE:$(T,t,X.boxMargin+X.boxTextMargin,X.boxMargin,e=>Z.addSectionToLoop(e));break;case o.db.LINETYPE.ALT_END:n=Z.endLoop(),await Y.drawLoop(f,n,`alt`,X),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos()),Z.models.addLoop(n);break;case o.db.LINETYPE.PAR_START:case o.db.LINETYPE.PAR_OVER_START:$(T,t,X.boxMargin,X.boxMargin+X.boxTextMargin,e=>Z.newLoop(e)),Z.saveVerticalPos();break;case o.db.LINETYPE.PAR_AND:$(T,t,X.boxMargin+X.boxTextMargin,X.boxMargin,e=>Z.addSectionToLoop(e));break;case o.db.LINETYPE.PAR_END:n=Z.endLoop(),await Y.drawLoop(f,n,`par`,X),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos()),Z.models.addLoop(n);break;case o.db.LINETYPE.AUTONUMBER:D=t.message.start||D,O=t.message.step||O,t.message.visible?o.db.enableSequenceNumbers():o.db.disableSequenceNumbers();break;case o.db.LINETYPE.CRITICAL_START:$(T,t,X.boxMargin,X.boxMargin+X.boxTextMargin,e=>Z.newLoop(e));break;case o.db.LINETYPE.CRITICAL_OPTION:$(T,t,X.boxMargin+X.boxTextMargin,X.boxMargin,e=>Z.addSectionToLoop(e));break;case o.db.LINETYPE.CRITICAL_END:n=Z.endLoop(),await Y.drawLoop(f,n,`critical`,X),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos()),Z.models.addLoop(n);break;case o.db.LINETYPE.BREAK_START:$(T,t,X.boxMargin,X.boxMargin+X.boxTextMargin,e=>Z.newLoop(e));break;case o.db.LINETYPE.BREAK_END:n=Z.endLoop(),await Y.drawLoop(f,n,`break`,X),Z.bumpVerticalPos(n.stopy-Z.getVerticalPos()),Z.models.addLoop(n);break;default:try{i=t.msgModel,i.starty=Z.getVerticalPos(),i.sequenceIndex=D,i.sequenceVisible=o.db.showSequenceNumbers();let e=await Fe(f,i);Ue(t,i,e,j,h,g,_),k.push({messageModel:i,lineStartY:e,msg:t}),Z.models.addMessage(i)}catch(t){e.error(`error while drawing message`,t)}}[o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN,o.db.LINETYPE.SOLID,o.db.LINETYPE.SOLID_TOP,o.db.LINETYPE.SOLID_BOTTOM,o.db.LINETYPE.STICK_TOP,o.db.LINETYPE.STICK_BOTTOM,o.db.LINETYPE.SOLID_TOP_DOTTED,o.db.LINETYPE.SOLID_BOTTOM_DOTTED,o.db.LINETYPE.STICK_TOP_DOTTED,o.db.LINETYPE.STICK_BOTTOM_DOTTED,o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,o.db.LINETYPE.DOTTED,o.db.LINETYPE.SOLID_CROSS,o.db.LINETYPE.DOTTED_CROSS,o.db.LINETYPE.SOLID_POINT,o.db.LINETYPE.DOTTED_POINT,o.db.LINETYPE.BIDIRECTIONAL_SOLID,o.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(D+=O),j++}e.debug(`createdActors`,g),e.debug(`destroyedActors`,_),await Re(f,h,y,!1);for(let e of k)await Ie(f,e.messageModel,e.lineStartY,o,e.msg);X.mirrorActors&&await Re(f,h,y,!0),A.forEach(e=>Y.drawBackgroundRect(f,e)),ce(f,h,y,X);for(let e of Z.models.boxes){e.height=Z.getVerticalPos()-e.y,Z.insert(e.x,e.y,e.x+e.width,e.height);let t=X.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,Y.drawBox(f,e,X)}S&&Z.bumpVerticalPos(X.boxMargin);let M=ze(f,h,y,d),{bounds:N}=Z.getBounds();N.startx===void 0&&(N.startx=0),N.starty===void 0&&(N.starty=0),N.stopx===void 0&&(N.stopx=0),N.stopy===void 0&&(N.stopy=0);let P=N.stopy-N.starty;P<M.maxHeight&&(P=M.maxHeight);let F=P+2*X.diagramMarginY;X.mirrorActors&&(F=F-X.boxMargin+X.bottomMarginAdj);let I=N.stopx-N.startx;I<M.maxWidth&&(I=M.maxWidth);let ee=I+2*X.diagramMarginX;x&&f.append(`text`).text(x).attr(`x`,(N.stopx-N.startx)/2-2*X.diagramMarginX).attr(`y`,-25),m(f,F,ee,X.useMaxWidth);let te=x?40:0;f.attr(`viewBox`,N.startx-X.diagramMarginX+` -`+(X.diagramMarginY+te)+` `+ee+` `+(F+te)),e.debug(`models:`,Z.models)},`draw`);async function Ge(t,n,r){let i={};for(let e of n)if(t.get(e.to)&&t.get(e.from)){let n=t.get(e.to);if(e.placement===r.db.PLACEMENT.LEFTOF&&!n.prevActor||e.placement===r.db.PLACEMENT.RIGHTOF&&!n.nextActor)continue;let a=e.placement!==void 0,o=!a,s=a?Ne(X):Q(X),c=e.wrap?S.wrapLabel(e.message,X.width-2*X.wrapPadding,s):e.message,l=(g(c)?await h(e.message,p()):S.calculateTextDimensions(c,s)).width+2*X.wrapPadding;o&&e.from===n.nextActor?i[e.to]=v.getMax(i[e.to]||0,l):o&&e.from===n.prevActor?i[e.from]=v.getMax(i[e.from]||0,l):o&&e.from===e.to?(i[e.from]=v.getMax(i[e.from]||0,l/2),i[e.to]=v.getMax(i[e.to]||0,l/2)):e.placement===r.db.PLACEMENT.RIGHTOF?i[e.from]=v.getMax(i[e.from]||0,l):e.placement===r.db.PLACEMENT.LEFTOF?i[n.prevActor]=v.getMax(i[n.prevActor]||0,l):e.placement===r.db.PLACEMENT.OVER&&(n.prevActor&&(i[n.prevActor]=v.getMax(i[n.prevActor]||0,l/2)),n.nextActor&&(i[e.from]=v.getMax(i[e.from]||0,l/2)))}return e.debug(`maxMessageWidthPerActor:`,i),i}t(Ge,`getMaxMessageWidthPerActor`);var Ke=t(function(e){let t=0,n=Pe(X);for(let r in e.links){let e=S.calculateTextDimensions(r,n).width+2*X.wrapPadding+2*X.boxMargin;t<e&&(t=e)}return t},`getRequiredPopupWidth`);async function qe(e,t,n){let r=0;for(let t of e.keys()){let n=e.get(t);n.wrap&&(n.description=S.wrapLabel(n.description,X.width-2*X.wrapPadding,Pe(X)));let i=g(n.description)?await h(n.description,p()):S.calculateTextDimensions(n.description,Pe(X));n.width=n.wrap?X.width:v.getMax(X.width,i.width+2*X.wrapPadding),n.height=n.wrap?v.getMax(i.height,X.height):X.height,r=v.getMax(r,n.height)}for(let n in t){let r=e.get(n);if(!r)continue;let i=e.get(r.nextActor);if(!i){let e=t[n]+X.actorMargin-r.width/2;r.margin=v.getMax(e,X.actorMargin);continue}let a=t[n]+X.actorMargin-r.width/2-i.width/2;r.margin=v.getMax(a,X.actorMargin)}let i=0;return n.forEach(t=>{let n=Q(X),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=X.boxMargin*8;r+=a,r-=2*X.boxTextMargin,t.wrap&&(t.name=S.wrapLabel(t.name,r-2*X.wrapPadding,n));let o=S.calculateTextDimensions(t.name,n);i=v.getMax(o.height,i);let s=v.getMax(r,o.width+2*X.wrapPadding);if(t.margin=X.boxTextMargin,r<s){let e=(s-r)/2;t.margin+=e}}),n.forEach(e=>e.textMaxHeight=i),v.getMax(r,X.height)}t(qe,`calculateActorMargins`);var Je=t(async function(t,n,r){let i=n.get(t.from),a=n.get(t.to),o=i.x,s=a.x,c=t.wrap&&t.message,l=g(t.message)?await h(t.message,p()):S.calculateTextDimensions(c?S.wrapLabel(t.message,X.width,Ne(X)):t.message,Ne(X)),u={width:c?X.width:v.getMax(X.width,l.width+2*X.noteMargin),height:0,startx:i.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===r.db.PLACEMENT.RIGHTOF?(u.width=c?v.getMax(X.width,l.width):v.getMax(i.width/2+a.width/2,l.width+2*X.noteMargin),u.startx=o+(i.width+X.actorMargin)/2):t.placement===r.db.PLACEMENT.LEFTOF?(u.width=c?v.getMax(X.width,l.width+2*X.noteMargin):v.getMax(i.width/2+a.width/2,l.width+2*X.noteMargin),u.startx=o-u.width+(i.width-X.actorMargin)/2):t.to===t.from?(l=S.calculateTextDimensions(c?S.wrapLabel(t.message,v.getMax(X.width,i.width),Ne(X)):t.message,Ne(X)),u.width=c?v.getMax(X.width,i.width):v.getMax(i.width,X.width,l.width+2*X.noteMargin),u.startx=o+(i.width-u.width)/2):(u.width=Math.abs(o+i.width/2-(s+a.width/2))+X.actorMargin,u.startx=o<s?o+i.width/2-X.actorMargin/2:s+a.width/2-X.actorMargin/2),c&&(u.message=S.wrapLabel(t.message,u.width-2*X.wrapPadding,Ne(X))),e.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]`),u},`buildNoteModel`),Ye=4,Xe=6,Ze=t(function(e,t){let{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[n,r,i].includes(e.centralConnection)},`hasCentralConnection`),Qe=t(function(e,t,n){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,s=0;return(e.centralConnection===r||e.centralConnection===i)&&(s+=Ye),(e.centralConnection===r||e.centralConnection===i)&&(e.type===a||e.type===o)&&(s+=n?0:-Xe),s},`calculateCentralConnectionOffset`),$e=t(function(e,t){let{SOLID_ARROW_TOP_REVERSE:n,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:a,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:s,STICK_ARROW_BOTTOM_REVERSE:c,STICK_ARROW_BOTTOM_REVERSE_DOTTED:l}=t.db.LINETYPE;return[n,r,i,a,o,s,c,l].includes(e.type)},`isReverseArrowType`),et=t(function(e,t){let{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[n,r].includes(e.type)},`isBidirectionalArrowType`),tt=t(function(e,n,r){if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[i,a]=He(e.from,n),[o,s]=He(e.to,n),c=i<=o,l=c?a:i,u=c?o:s;l+=Qe(e,r,c);let d=Math.abs(o-s)>2,f=t(e=>c?-e:e,`adjustValue`);e.from===e.to?u=l:(e.activate&&!d&&(u+=f(X.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(u+=f(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(l-=f(3)));let p=[i,a,o,s],m=Math.abs(l-u);e.wrap&&e.message&&(e.message=S.wrapLabel(e.message,v.getMax(m+2*X.wrapPadding,X.width),Q(X)));let h=S.calculateTextDimensions(e.message,Q(X));return{width:v.getMax(e.wrap?0:h.width+2*X.wrapPadding,m+2*X.wrapPadding,X.width),height:0,startx:l,stopx:u,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},`buildMessageModel`),nt=t(async function(t,n,r,i){let a={},o=[],s,c,l;for(let e of t){switch(e.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:o.push({id:e.id,msg:e.message,from:2**53-1,to:-(2**53-1),width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:e.message&&(s=o.pop(),a[s.id]=s,a[e.id]=s,o.push(s));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:s=o.pop(),a[s.id]=s;break;case i.db.LINETYPE.ACTIVE_START:{let t=n.get(e.from?e.from:e.to.actor),r=Ve(e.from?e.from:e.to.actor).length,i=t.x+t.width/2+(r-1)*X.activationWidth/2,a={startx:i,stopx:i+X.activationWidth,actor:e.from,enabled:!0};Z.activations.push(a)}break;case i.db.LINETYPE.ACTIVE_END:{let t=Z.activations.map(e=>e.actor).lastIndexOf(e.from);Z.activations.splice(t,1).splice(0,1)}break}e.placement===void 0?(l=tt(e,n,i),e.msgModel=l,l.startx&&l.stopx&&o.length>0&&o.forEach(t=>{if(s=t,l.startx===l.stopx){let t=n.get(e.from),r=n.get(e.to);s.from=v.getMin(t.x-l.width/2,t.x-t.width/2,s.from),s.to=v.getMax(r.x+l.width/2,r.x+t.width/2,s.to),s.width=v.getMax(s.width,Math.abs(s.to-s.from))-X.labelBoxWidth}else s.from=v.getMin(l.startx,s.from),s.to=v.getMax(l.stopx,s.to),s.width=v.getMax(s.width,l.width)-X.labelBoxWidth})):(c=await Je(e,n,i),e.noteModel=c,o.forEach(e=>{s=e,s.from=v.getMin(s.from,c.startx),s.to=v.getMax(s.to,c.startx+c.width),s.width=v.getMax(s.width,Math.abs(s.from-s.to))-X.labelBoxWidth}))}return Z.activations=[],e.debug(`Loop type widths:`,a),a},`calculateLoopBounds`),rt={parser:F,get db(){return new re},renderer:{bounds:Z,drawActors:Re,drawActorsPopup:ze,setConf:Be,draw:We},styles:ie,init:t(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,c({sequence:{wrap:e.wrap}}))},`init`)};export{rt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}]},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.shell`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`if`,`then`,`do`,`else`,`elif`,`while`,`until`,`for`,`in`,`esac`,`fi`,`fin`,`fil`,`done`,`exit`,`set`,`unset`,`export`,`function`],builtins:`ab.awk.bash.beep.cat.cc.cd.chown.chmod.chroot.clear.cp.curl.cut.diff.echo.find.gawk.gcc.get.git.grep.hg.kill.killall.ln.ls.make.mkdir.openssl.mv.nc.node.npm.ping.ps.restart.rm.rmdir.sed.service.sh.shopt.shred.source.sort.sleep.ssh.start.stop.su.sudo.svn.tee.telnet.top.touch.vi.vim.wall.wc.wget.who.write.yes.zsh`.split(`.`),startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[[/@identifiersWithDashes/,``],[/(\s)((?:@startingWithDash)+)/,[`white`,`attribute.name`]],[/[a-zA-Z]\w*/,{cases:{"@keywords":`keyword`,"@builtins":`type.identifier`,"@default":``}}],{include:`@whitespace`},{include:`@strings`},{include:`@parameters`},{include:`@heredoc`},[/[{}\[\]()]/,`@brackets`],[/@symbols/,`delimiter`],{include:`@numbers`},[/[,;]/,`delimiter`]],whitespace:[[/\s+/,`white`],[/(^#!.*$)/,`metatag`],[/(^#.*$)/,`comment`]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,`number.hex`],[/\d+/,`number`]],strings:[[/'/,`string`,`@stringBody`],[/"/,`string`,`@dblStringBody`]],stringBody:[[/'/,`string`,`@popall`],[/./,`string`]],dblStringBody:[[/"/,`string`,`@popall`],[/./,`string`]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,[`constants`,`white`,`string.heredoc.delimiter`,`string.heredoc`,`string.heredoc.delimiter`]]],parameters:[[/\$\d+/,`variable.predefined`],[/\$\w+/,`variable`],[/\$[*@#?\-$!0_]/,`variable`],[/\$'/,`variable`,`@parameterBodyQuote`],[/\$"/,`variable`,`@parameterBodyDoubleQuote`],[/\$\(/,`variable`,`@parameterBodyParen`],[/\$\{/,`variable`,`@parameterBodyCurlyBrace`]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[']/,`variable`,`@pop`]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/["]/,`variable`,`@pop`]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[)]/,`variable`,`@pop`]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[}]/,`variable`,`@pop`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.sol`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`pragma.solidity.contract.library.using.struct.function.modifier.constructor.address.string.bool.Int.Uint.Byte.Fixed.Ufixed.int.int8.int16.int24.int32.int40.int48.int56.int64.int72.int80.int88.int96.int104.int112.int120.int128.int136.int144.int152.int160.int168.int176.int184.int192.int200.int208.int216.int224.int232.int240.int248.int256.uint.uint8.uint16.uint24.uint32.uint40.uint48.uint56.uint64.uint72.uint80.uint88.uint96.uint104.uint112.uint120.uint128.uint136.uint144.uint152.uint160.uint168.uint176.uint184.uint192.uint200.uint208.uint216.uint224.uint232.uint240.uint248.uint256.byte.bytes.bytes1.bytes2.bytes3.bytes4.bytes5.bytes6.bytes7.bytes8.bytes9.bytes10.bytes11.bytes12.bytes13.bytes14.bytes15.bytes16.bytes17.bytes18.bytes19.bytes20.bytes21.bytes22.bytes23.bytes24.bytes25.bytes26.bytes27.bytes28.bytes29.bytes30.bytes31.bytes32.fixed.fixed0x8.fixed0x16.fixed0x24.fixed0x32.fixed0x40.fixed0x48.fixed0x56.fixed0x64.fixed0x72.fixed0x80.fixed0x88.fixed0x96.fixed0x104.fixed0x112.fixed0x120.fixed0x128.fixed0x136.fixed0x144.fixed0x152.fixed0x160.fixed0x168.fixed0x176.fixed0x184.fixed0x192.fixed0x200.fixed0x208.fixed0x216.fixed0x224.fixed0x232.fixed0x240.fixed0x248.fixed0x256.fixed8x8.fixed8x16.fixed8x24.fixed8x32.fixed8x40.fixed8x48.fixed8x56.fixed8x64.fixed8x72.fixed8x80.fixed8x88.fixed8x96.fixed8x104.fixed8x112.fixed8x120.fixed8x128.fixed8x136.fixed8x144.fixed8x152.fixed8x160.fixed8x168.fixed8x176.fixed8x184.fixed8x192.fixed8x200.fixed8x208.fixed8x216.fixed8x224.fixed8x232.fixed8x240.fixed8x248.fixed16x8.fixed16x16.fixed16x24.fixed16x32.fixed16x40.fixed16x48.fixed16x56.fixed16x64.fixed16x72.fixed16x80.fixed16x88.fixed16x96.fixed16x104.fixed16x112.fixed16x120.fixed16x128.fixed16x136.fixed16x144.fixed16x152.fixed16x160.fixed16x168.fixed16x176.fixed16x184.fixed16x192.fixed16x200.fixed16x208.fixed16x216.fixed16x224.fixed16x232.fixed16x240.fixed24x8.fixed24x16.fixed24x24.fixed24x32.fixed24x40.fixed24x48.fixed24x56.fixed24x64.fixed24x72.fixed24x80.fixed24x88.fixed24x96.fixed24x104.fixed24x112.fixed24x120.fixed24x128.fixed24x136.fixed24x144.fixed24x152.fixed24x160.fixed24x168.fixed24x176.fixed24x184.fixed24x192.fixed24x200.fixed24x208.fixed24x216.fixed24x224.fixed24x232.fixed32x8.fixed32x16.fixed32x24.fixed32x32.fixed32x40.fixed32x48.fixed32x56.fixed32x64.fixed32x72.fixed32x80.fixed32x88.fixed32x96.fixed32x104.fixed32x112.fixed32x120.fixed32x128.fixed32x136.fixed32x144.fixed32x152.fixed32x160.fixed32x168.fixed32x176.fixed32x184.fixed32x192.fixed32x200.fixed32x208.fixed32x216.fixed32x224.fixed40x8.fixed40x16.fixed40x24.fixed40x32.fixed40x40.fixed40x48.fixed40x56.fixed40x64.fixed40x72.fixed40x80.fixed40x88.fixed40x96.fixed40x104.fixed40x112.fixed40x120.fixed40x128.fixed40x136.fixed40x144.fixed40x152.fixed40x160.fixed40x168.fixed40x176.fixed40x184.fixed40x192.fixed40x200.fixed40x208.fixed40x216.fixed48x8.fixed48x16.fixed48x24.fixed48x32.fixed48x40.fixed48x48.fixed48x56.fixed48x64.fixed48x72.fixed48x80.fixed48x88.fixed48x96.fixed48x104.fixed48x112.fixed48x120.fixed48x128.fixed48x136.fixed48x144.fixed48x152.fixed48x160.fixed48x168.fixed48x176.fixed48x184.fixed48x192.fixed48x200.fixed48x208.fixed56x8.fixed56x16.fixed56x24.fixed56x32.fixed56x40.fixed56x48.fixed56x56.fixed56x64.fixed56x72.fixed56x80.fixed56x88.fixed56x96.fixed56x104.fixed56x112.fixed56x120.fixed56x128.fixed56x136.fixed56x144.fixed56x152.fixed56x160.fixed56x168.fixed56x176.fixed56x184.fixed56x192.fixed56x200.fixed64x8.fixed64x16.fixed64x24.fixed64x32.fixed64x40.fixed64x48.fixed64x56.fixed64x64.fixed64x72.fixed64x80.fixed64x88.fixed64x96.fixed64x104.fixed64x112.fixed64x120.fixed64x128.fixed64x136.fixed64x144.fixed64x152.fixed64x160.fixed64x168.fixed64x176.fixed64x184.fixed64x192.fixed72x8.fixed72x16.fixed72x24.fixed72x32.fixed72x40.fixed72x48.fixed72x56.fixed72x64.fixed72x72.fixed72x80.fixed72x88.fixed72x96.fixed72x104.fixed72x112.fixed72x120.fixed72x128.fixed72x136.fixed72x144.fixed72x152.fixed72x160.fixed72x168.fixed72x176.fixed72x184.fixed80x8.fixed80x16.fixed80x24.fixed80x32.fixed80x40.fixed80x48.fixed80x56.fixed80x64.fixed80x72.fixed80x80.fixed80x88.fixed80x96.fixed80x104.fixed80x112.fixed80x120.fixed80x128.fixed80x136.fixed80x144.fixed80x152.fixed80x160.fixed80x168.fixed80x176.fixed88x8.fixed88x16.fixed88x24.fixed88x32.fixed88x40.fixed88x48.fixed88x56.fixed88x64.fixed88x72.fixed88x80.fixed88x88.fixed88x96.fixed88x104.fixed88x112.fixed88x120.fixed88x128.fixed88x136.fixed88x144.fixed88x152.fixed88x160.fixed88x168.fixed96x8.fixed96x16.fixed96x24.fixed96x32.fixed96x40.fixed96x48.fixed96x56.fixed96x64.fixed96x72.fixed96x80.fixed96x88.fixed96x96.fixed96x104.fixed96x112.fixed96x120.fixed96x128.fixed96x136.fixed96x144.fixed96x152.fixed96x160.fixed104x8.fixed104x16.fixed104x24.fixed104x32.fixed104x40.fixed104x48.fixed104x56.fixed104x64.fixed104x72.fixed104x80.fixed104x88.fixed104x96.fixed104x104.fixed104x112.fixed104x120.fixed104x128.fixed104x136.fixed104x144.fixed104x152.fixed112x8.fixed112x16.fixed112x24.fixed112x32.fixed112x40.fixed112x48.fixed112x56.fixed112x64.fixed112x72.fixed112x80.fixed112x88.fixed112x96.fixed112x104.fixed112x112.fixed112x120.fixed112x128.fixed112x136.fixed112x144.fixed120x8.fixed120x16.fixed120x24.fixed120x32.fixed120x40.fixed120x48.fixed120x56.fixed120x64.fixed120x72.fixed120x80.fixed120x88.fixed120x96.fixed120x104.fixed120x112.fixed120x120.fixed120x128.fixed120x136.fixed128x8.fixed128x16.fixed128x24.fixed128x32.fixed128x40.fixed128x48.fixed128x56.fixed128x64.fixed128x72.fixed128x80.fixed128x88.fixed128x96.fixed128x104.fixed128x112.fixed128x120.fixed128x128.fixed136x8.fixed136x16.fixed136x24.fixed136x32.fixed136x40.fixed136x48.fixed136x56.fixed136x64.fixed136x72.fixed136x80.fixed136x88.fixed136x96.fixed136x104.fixed136x112.fixed136x120.fixed144x8.fixed144x16.fixed144x24.fixed144x32.fixed144x40.fixed144x48.fixed144x56.fixed144x64.fixed144x72.fixed144x80.fixed144x88.fixed144x96.fixed144x104.fixed144x112.fixed152x8.fixed152x16.fixed152x24.fixed152x32.fixed152x40.fixed152x48.fixed152x56.fixed152x64.fixed152x72.fixed152x80.fixed152x88.fixed152x96.fixed152x104.fixed160x8.fixed160x16.fixed160x24.fixed160x32.fixed160x40.fixed160x48.fixed160x56.fixed160x64.fixed160x72.fixed160x80.fixed160x88.fixed160x96.fixed168x8.fixed168x16.fixed168x24.fixed168x32.fixed168x40.fixed168x48.fixed168x56.fixed168x64.fixed168x72.fixed168x80.fixed168x88.fixed176x8.fixed176x16.fixed176x24.fixed176x32.fixed176x40.fixed176x48.fixed176x56.fixed176x64.fixed176x72.fixed176x80.fixed184x8.fixed184x16.fixed184x24.fixed184x32.fixed184x40.fixed184x48.fixed184x56.fixed184x64.fixed184x72.fixed192x8.fixed192x16.fixed192x24.fixed192x32.fixed192x40.fixed192x48.fixed192x56.fixed192x64.fixed200x8.fixed200x16.fixed200x24.fixed200x32.fixed200x40.fixed200x48.fixed200x56.fixed208x8.fixed208x16.fixed208x24.fixed208x32.fixed208x40.fixed208x48.fixed216x8.fixed216x16.fixed216x24.fixed216x32.fixed216x40.fixed224x8.fixed224x16.fixed224x24.fixed224x32.fixed232x8.fixed232x16.fixed232x24.fixed240x8.fixed240x16.fixed248x8.ufixed.ufixed0x8.ufixed0x16.ufixed0x24.ufixed0x32.ufixed0x40.ufixed0x48.ufixed0x56.ufixed0x64.ufixed0x72.ufixed0x80.ufixed0x88.ufixed0x96.ufixed0x104.ufixed0x112.ufixed0x120.ufixed0x128.ufixed0x136.ufixed0x144.ufixed0x152.ufixed0x160.ufixed0x168.ufixed0x176.ufixed0x184.ufixed0x192.ufixed0x200.ufixed0x208.ufixed0x216.ufixed0x224.ufixed0x232.ufixed0x240.ufixed0x248.ufixed0x256.ufixed8x8.ufixed8x16.ufixed8x24.ufixed8x32.ufixed8x40.ufixed8x48.ufixed8x56.ufixed8x64.ufixed8x72.ufixed8x80.ufixed8x88.ufixed8x96.ufixed8x104.ufixed8x112.ufixed8x120.ufixed8x128.ufixed8x136.ufixed8x144.ufixed8x152.ufixed8x160.ufixed8x168.ufixed8x176.ufixed8x184.ufixed8x192.ufixed8x200.ufixed8x208.ufixed8x216.ufixed8x224.ufixed8x232.ufixed8x240.ufixed8x248.ufixed16x8.ufixed16x16.ufixed16x24.ufixed16x32.ufixed16x40.ufixed16x48.ufixed16x56.ufixed16x64.ufixed16x72.ufixed16x80.ufixed16x88.ufixed16x96.ufixed16x104.ufixed16x112.ufixed16x120.ufixed16x128.ufixed16x136.ufixed16x144.ufixed16x152.ufixed16x160.ufixed16x168.ufixed16x176.ufixed16x184.ufixed16x192.ufixed16x200.ufixed16x208.ufixed16x216.ufixed16x224.ufixed16x232.ufixed16x240.ufixed24x8.ufixed24x16.ufixed24x24.ufixed24x32.ufixed24x40.ufixed24x48.ufixed24x56.ufixed24x64.ufixed24x72.ufixed24x80.ufixed24x88.ufixed24x96.ufixed24x104.ufixed24x112.ufixed24x120.ufixed24x128.ufixed24x136.ufixed24x144.ufixed24x152.ufixed24x160.ufixed24x168.ufixed24x176.ufixed24x184.ufixed24x192.ufixed24x200.ufixed24x208.ufixed24x216.ufixed24x224.ufixed24x232.ufixed32x8.ufixed32x16.ufixed32x24.ufixed32x32.ufixed32x40.ufixed32x48.ufixed32x56.ufixed32x64.ufixed32x72.ufixed32x80.ufixed32x88.ufixed32x96.ufixed32x104.ufixed32x112.ufixed32x120.ufixed32x128.ufixed32x136.ufixed32x144.ufixed32x152.ufixed32x160.ufixed32x168.ufixed32x176.ufixed32x184.ufixed32x192.ufixed32x200.ufixed32x208.ufixed32x216.ufixed32x224.ufixed40x8.ufixed40x16.ufixed40x24.ufixed40x32.ufixed40x40.ufixed40x48.ufixed40x56.ufixed40x64.ufixed40x72.ufixed40x80.ufixed40x88.ufixed40x96.ufixed40x104.ufixed40x112.ufixed40x120.ufixed40x128.ufixed40x136.ufixed40x144.ufixed40x152.ufixed40x160.ufixed40x168.ufixed40x176.ufixed40x184.ufixed40x192.ufixed40x200.ufixed40x208.ufixed40x216.ufixed48x8.ufixed48x16.ufixed48x24.ufixed48x32.ufixed48x40.ufixed48x48.ufixed48x56.ufixed48x64.ufixed48x72.ufixed48x80.ufixed48x88.ufixed48x96.ufixed48x104.ufixed48x112.ufixed48x120.ufixed48x128.ufixed48x136.ufixed48x144.ufixed48x152.ufixed48x160.ufixed48x168.ufixed48x176.ufixed48x184.ufixed48x192.ufixed48x200.ufixed48x208.ufixed56x8.ufixed56x16.ufixed56x24.ufixed56x32.ufixed56x40.ufixed56x48.ufixed56x56.ufixed56x64.ufixed56x72.ufixed56x80.ufixed56x88.ufixed56x96.ufixed56x104.ufixed56x112.ufixed56x120.ufixed56x128.ufixed56x136.ufixed56x144.ufixed56x152.ufixed56x160.ufixed56x168.ufixed56x176.ufixed56x184.ufixed56x192.ufixed56x200.ufixed64x8.ufixed64x16.ufixed64x24.ufixed64x32.ufixed64x40.ufixed64x48.ufixed64x56.ufixed64x64.ufixed64x72.ufixed64x80.ufixed64x88.ufixed64x96.ufixed64x104.ufixed64x112.ufixed64x120.ufixed64x128.ufixed64x136.ufixed64x144.ufixed64x152.ufixed64x160.ufixed64x168.ufixed64x176.ufixed64x184.ufixed64x192.ufixed72x8.ufixed72x16.ufixed72x24.ufixed72x32.ufixed72x40.ufixed72x48.ufixed72x56.ufixed72x64.ufixed72x72.ufixed72x80.ufixed72x88.ufixed72x96.ufixed72x104.ufixed72x112.ufixed72x120.ufixed72x128.ufixed72x136.ufixed72x144.ufixed72x152.ufixed72x160.ufixed72x168.ufixed72x176.ufixed72x184.ufixed80x8.ufixed80x16.ufixed80x24.ufixed80x32.ufixed80x40.ufixed80x48.ufixed80x56.ufixed80x64.ufixed80x72.ufixed80x80.ufixed80x88.ufixed80x96.ufixed80x104.ufixed80x112.ufixed80x120.ufixed80x128.ufixed80x136.ufixed80x144.ufixed80x152.ufixed80x160.ufixed80x168.ufixed80x176.ufixed88x8.ufixed88x16.ufixed88x24.ufixed88x32.ufixed88x40.ufixed88x48.ufixed88x56.ufixed88x64.ufixed88x72.ufixed88x80.ufixed88x88.ufixed88x96.ufixed88x104.ufixed88x112.ufixed88x120.ufixed88x128.ufixed88x136.ufixed88x144.ufixed88x152.ufixed88x160.ufixed88x168.ufixed96x8.ufixed96x16.ufixed96x24.ufixed96x32.ufixed96x40.ufixed96x48.ufixed96x56.ufixed96x64.ufixed96x72.ufixed96x80.ufixed96x88.ufixed96x96.ufixed96x104.ufixed96x112.ufixed96x120.ufixed96x128.ufixed96x136.ufixed96x144.ufixed96x152.ufixed96x160.ufixed104x8.ufixed104x16.ufixed104x24.ufixed104x32.ufixed104x40.ufixed104x48.ufixed104x56.ufixed104x64.ufixed104x72.ufixed104x80.ufixed104x88.ufixed104x96.ufixed104x104.ufixed104x112.ufixed104x120.ufixed104x128.ufixed104x136.ufixed104x144.ufixed104x152.ufixed112x8.ufixed112x16.ufixed112x24.ufixed112x32.ufixed112x40.ufixed112x48.ufixed112x56.ufixed112x64.ufixed112x72.ufixed112x80.ufixed112x88.ufixed112x96.ufixed112x104.ufixed112x112.ufixed112x120.ufixed112x128.ufixed112x136.ufixed112x144.ufixed120x8.ufixed120x16.ufixed120x24.ufixed120x32.ufixed120x40.ufixed120x48.ufixed120x56.ufixed120x64.ufixed120x72.ufixed120x80.ufixed120x88.ufixed120x96.ufixed120x104.ufixed120x112.ufixed120x120.ufixed120x128.ufixed120x136.ufixed128x8.ufixed128x16.ufixed128x24.ufixed128x32.ufixed128x40.ufixed128x48.ufixed128x56.ufixed128x64.ufixed128x72.ufixed128x80.ufixed128x88.ufixed128x96.ufixed128x104.ufixed128x112.ufixed128x120.ufixed128x128.ufixed136x8.ufixed136x16.ufixed136x24.ufixed136x32.ufixed136x40.ufixed136x48.ufixed136x56.ufixed136x64.ufixed136x72.ufixed136x80.ufixed136x88.ufixed136x96.ufixed136x104.ufixed136x112.ufixed136x120.ufixed144x8.ufixed144x16.ufixed144x24.ufixed144x32.ufixed144x40.ufixed144x48.ufixed144x56.ufixed144x64.ufixed144x72.ufixed144x80.ufixed144x88.ufixed144x96.ufixed144x104.ufixed144x112.ufixed152x8.ufixed152x16.ufixed152x24.ufixed152x32.ufixed152x40.ufixed152x48.ufixed152x56.ufixed152x64.ufixed152x72.ufixed152x80.ufixed152x88.ufixed152x96.ufixed152x104.ufixed160x8.ufixed160x16.ufixed160x24.ufixed160x32.ufixed160x40.ufixed160x48.ufixed160x56.ufixed160x64.ufixed160x72.ufixed160x80.ufixed160x88.ufixed160x96.ufixed168x8.ufixed168x16.ufixed168x24.ufixed168x32.ufixed168x40.ufixed168x48.ufixed168x56.ufixed168x64.ufixed168x72.ufixed168x80.ufixed168x88.ufixed176x8.ufixed176x16.ufixed176x24.ufixed176x32.ufixed176x40.ufixed176x48.ufixed176x56.ufixed176x64.ufixed176x72.ufixed176x80.ufixed184x8.ufixed184x16.ufixed184x24.ufixed184x32.ufixed184x40.ufixed184x48.ufixed184x56.ufixed184x64.ufixed184x72.ufixed192x8.ufixed192x16.ufixed192x24.ufixed192x32.ufixed192x40.ufixed192x48.ufixed192x56.ufixed192x64.ufixed200x8.ufixed200x16.ufixed200x24.ufixed200x32.ufixed200x40.ufixed200x48.ufixed200x56.ufixed208x8.ufixed208x16.ufixed208x24.ufixed208x32.ufixed208x40.ufixed208x48.ufixed216x8.ufixed216x16.ufixed216x24.ufixed216x32.ufixed216x40.ufixed224x8.ufixed224x16.ufixed224x24.ufixed224x32.ufixed232x8.ufixed232x16.ufixed232x24.ufixed240x8.ufixed240x16.ufixed248x8.event.enum.let.mapping.private.public.external.inherited.payable.true.false.var.import.constant.if.else.for.else.for.while.do.break.continue.throw.returns.return.suicide.new.is.this.super`.split(`.`),operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.>>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=.>>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/\[\[.*\]\]/,`annotation`],[/^\s*#\w+/,`keyword`],[/int\d*/,`keyword`],[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.aes`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`contract.library.entrypoint.function.stateful.state.hash.signature.tuple.list.address.string.bool.int.record.datatype.type.option.oracle.oracle_query.Call.Bits.Bytes.Oracle.String.Crypto.Address.Auth.Chain.None.Some.bits.bytes.event.let.map.private.public.true.false.var.if.else.throw`.split(`.`),operators:`=.>.<.!.~.?.::.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.>>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=.>>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/\[\[.*\]\]/,`annotation`],[/^\s*#\w+/,`keyword`],[/int\d*/,`keyword`],[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`'`,close:`'`,notIn:[`string`]},{open:`"`,close:`"`,notIn:[`string`]},{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`}]},t={defaultToken:``,tokenPostfix:`.rq`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`add.as.asc.ask.base.by.clear.construct.copy.create.data.delete.desc.describe.distinct.drop.false.filter.from.graph.group.having.in.insert.limit.load.minus.move.named.not.offset.optional.order.prefix.reduced.select.service.silent.to.true.undef.union.using.values.where.with`.split(`.`),builtinFunctions:`a.abs.avg.bind.bnode.bound.ceil.coalesce.concat.contains.count.datatype.day.encode_for_uri.exists.floor.group_concat.hours.if.iri.isblank.isiri.isliteral.isnumeric.isuri.lang.langmatches.lcase.max.md5.min.minutes.month.now.rand.regex.replace.round.sameterm.sample.seconds.sha1.sha256.sha384.sha512.str.strafter.strbefore.strdt.strends.strlang.strlen.strstarts.struuid.substr.sum.timezone.tz.ucase.uri.uuid.year`.split(`.`),ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,`tag`],{include:`@strings`},[/#.*/,`comment`],[/[{}()\[\]]/,`@brackets`],[/[;,.]/,`delimiter`],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,`tag`],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,`tag`],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:`keyword`},"@builtinFunctions":{token:`predefined.sql`},"@default":`identifier`}}],[/\^\^/,`operator.sql`],[/\^[*+\-<>=&|^\/!?]*/,`operator.sql`],[/[*+\-<>=&|\/!?]/,`operator.sql`],[/@[a-z\d\-]*/,`metatag.html`],[/\s+/,`white`]],strings:[[/'([^'\\]|\\.)*$/,`string.invalid`],[/'$/,`string.sql`,`@pop`],[/'/,`string.sql`,`@stringBody`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"$/,`string.sql`,`@pop`],[/"/,`string.sql`,`@dblStringBody`]],stringBody:[[/[^\\']+/,`string.sql`],[/\\./,`string.escape`],[/'/,`string.sql`,`@pop`]],dblStringBody:[[/[^\\"]+/,`string.sql`],[/\\./,`string.escape`],[/"/,`string.sql`,`@pop`]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={comments:{lineComment:`--`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.sql`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`ABORT.ABSOLUTE.ACTION.ADA.ADD.AFTER.ALL.ALLOCATE.ALTER.ALWAYS.ANALYZE.AND.ANY.ARE.AS.ASC.ASSERTION.AT.ATTACH.AUTHORIZATION.AUTOINCREMENT.AVG.BACKUP.BEFORE.BEGIN.BETWEEN.BIT.BIT_LENGTH.BOTH.BREAK.BROWSE.BULK.BY.CASCADE.CASCADED.CASE.CAST.CATALOG.CHAR.CHARACTER.CHARACTER_LENGTH.CHAR_LENGTH.CHECK.CHECKPOINT.CLOSE.CLUSTERED.COALESCE.COLLATE.COLLATION.COLUMN.COMMIT.COMPUTE.CONFLICT.CONNECT.CONNECTION.CONSTRAINT.CONSTRAINTS.CONTAINS.CONTAINSTABLE.CONTINUE.CONVERT.CORRESPONDING.COUNT.CREATE.CROSS.CURRENT.CURRENT_DATE.CURRENT_TIME.CURRENT_TIMESTAMP.CURRENT_USER.CURSOR.DATABASE.DATE.DAY.DBCC.DEALLOCATE.DEC.DECIMAL.DECLARE.DEFAULT.DEFERRABLE.DEFERRED.DELETE.DENY.DESC.DESCRIBE.DESCRIPTOR.DETACH.DIAGNOSTICS.DISCONNECT.DISK.DISTINCT.DISTRIBUTED.DO.DOMAIN.DOUBLE.DROP.DUMP.EACH.ELSE.END.END-EXEC.ERRLVL.ESCAPE.EXCEPT.EXCEPTION.EXCLUDE.EXCLUSIVE.EXEC.EXECUTE.EXISTS.EXIT.EXPLAIN.EXTERNAL.EXTRACT.FAIL.FALSE.FETCH.FILE.FILLFACTOR.FILTER.FIRST.FLOAT.FOLLOWING.FOR.FOREIGN.FORTRAN.FOUND.FREETEXT.FREETEXTTABLE.FROM.FULL.FUNCTION.GENERATED.GET.GLOB.GLOBAL.GO.GOTO.GRANT.GROUP.GROUPS.HAVING.HOLDLOCK.HOUR.IDENTITY.IDENTITYCOL.IDENTITY_INSERT.IF.IGNORE.IMMEDIATE.IN.INCLUDE.INDEX.INDEXED.INDICATOR.INITIALLY.INNER.INPUT.INSENSITIVE.INSERT.INSTEAD.INT.INTEGER.INTERSECT.INTERVAL.INTO.IS.ISNULL.ISOLATION.JOIN.KEY.KILL.LANGUAGE.LAST.LEADING.LEFT.LEVEL.LIKE.LIMIT.LINENO.LOAD.LOCAL.LOWER.MATCH.MATERIALIZED.MAX.MERGE.MIN.MINUTE.MODULE.MONTH.NAMES.NATIONAL.NATURAL.NCHAR.NEXT.NO.NOCHECK.NONCLUSTERED.NONE.NOT.NOTHING.NOTNULL.NULL.NULLIF.NULLS.NUMERIC.OCTET_LENGTH.OF.OFF.OFFSET.OFFSETS.ON.ONLY.OPEN.OPENDATASOURCE.OPENQUERY.OPENROWSET.OPENXML.OPTION.OR.ORDER.OTHERS.OUTER.OUTPUT.OVER.OVERLAPS.PAD.PARTIAL.PARTITION.PASCAL.PERCENT.PIVOT.PLAN.POSITION.PRAGMA.PRECEDING.PRECISION.PREPARE.PRESERVE.PRIMARY.PRINT.PRIOR.PRIVILEGES.PROC.PROCEDURE.PUBLIC.QUERY.RAISE.RAISERROR.RANGE.READ.READTEXT.REAL.RECONFIGURE.RECURSIVE.REFERENCES.REGEXP.REINDEX.RELATIVE.RELEASE.RENAME.REPLACE.REPLICATION.RESTORE.RESTRICT.RETURN.RETURNING.REVERT.REVOKE.RIGHT.ROLLBACK.ROW.ROWCOUNT.ROWGUIDCOL.ROWS.RULE.SAVE.SAVEPOINT.SCHEMA.SCROLL.SECOND.SECTION.SECURITYAUDIT.SELECT.SEMANTICKEYPHRASETABLE.SEMANTICSIMILARITYDETAILSTABLE.SEMANTICSIMILARITYTABLE.SESSION.SESSION_USER.SET.SETUSER.SHUTDOWN.SIZE.SMALLINT.SOME.SPACE.SQL.SQLCA.SQLCODE.SQLERROR.SQLSTATE.SQLWARNING.STATISTICS.SUBSTRING.SUM.SYSTEM_USER.TABLE.TABLESAMPLE.TEMP.TEMPORARY.TEXTSIZE.THEN.TIES.TIME.TIMESTAMP.TIMEZONE_HOUR.TIMEZONE_MINUTE.TO.TOP.TRAILING.TRAN.TRANSACTION.TRANSLATE.TRANSLATION.TRIGGER.TRIM.TRUE.TRUNCATE.TRY_CONVERT.TSEQUAL.UNBOUNDED.UNION.UNIQUE.UNKNOWN.UNPIVOT.UPDATE.UPDATETEXT.UPPER.USAGE.USE.USER.USING.VACUUM.VALUE.VALUES.VARCHAR.VARYING.VIEW.VIRTUAL.WAITFOR.WHEN.WHENEVER.WHERE.WHILE.WINDOW.WITH.WITHIN GROUP.WITHOUT.WORK.WRITE.WRITETEXT.YEAR.ZONE`.split(`.`),operators:`ALL.AND.ANY.BETWEEN.EXISTS.IN.LIKE.NOT.OR.SOME.EXCEPT.INTERSECT.UNION.APPLY.CROSS.FULL.INNER.JOIN.LEFT.OUTER.RIGHT.CONTAINS.FREETEXT.IS.NULL.PIVOT.UNPIVOT.MATCHED`.split(`.`),builtinFunctions:`AVG.CHECKSUM_AGG.COUNT.COUNT_BIG.GROUPING.GROUPING_ID.MAX.MIN.SUM.STDEV.STDEVP.VAR.VARP.CUME_DIST.FIRST_VALUE.LAG.LAST_VALUE.LEAD.PERCENTILE_CONT.PERCENTILE_DISC.PERCENT_RANK.COLLATE.COLLATIONPROPERTY.TERTIARY_WEIGHTS.FEDERATION_FILTERING_VALUE.CAST.CONVERT.PARSE.TRY_CAST.TRY_CONVERT.TRY_PARSE.ASYMKEY_ID.ASYMKEYPROPERTY.CERTPROPERTY.CERT_ID.CRYPT_GEN_RANDOM.DECRYPTBYASYMKEY.DECRYPTBYCERT.DECRYPTBYKEY.DECRYPTBYKEYAUTOASYMKEY.DECRYPTBYKEYAUTOCERT.DECRYPTBYPASSPHRASE.ENCRYPTBYASYMKEY.ENCRYPTBYCERT.ENCRYPTBYKEY.ENCRYPTBYPASSPHRASE.HASHBYTES.IS_OBJECTSIGNED.KEY_GUID.KEY_ID.KEY_NAME.SIGNBYASYMKEY.SIGNBYCERT.SYMKEYPROPERTY.VERIFYSIGNEDBYCERT.VERIFYSIGNEDBYASYMKEY.CURSOR_STATUS.DATALENGTH.IDENT_CURRENT.IDENT_INCR.IDENT_SEED.IDENTITY.SQL_VARIANT_PROPERTY.CURRENT_TIMESTAMP.DATEADD.DATEDIFF.DATEFROMPARTS.DATENAME.DATEPART.DATETIME2FROMPARTS.DATETIMEFROMPARTS.DATETIMEOFFSETFROMPARTS.DAY.EOMONTH.GETDATE.GETUTCDATE.ISDATE.MONTH.SMALLDATETIMEFROMPARTS.SWITCHOFFSET.SYSDATETIME.SYSDATETIMEOFFSET.SYSUTCDATETIME.TIMEFROMPARTS.TODATETIMEOFFSET.YEAR.CHOOSE.COALESCE.IIF.NULLIF.ABS.ACOS.ASIN.ATAN.ATN2.CEILING.COS.COT.DEGREES.EXP.FLOOR.LOG.LOG10.PI.POWER.RADIANS.RAND.ROUND.SIGN.SIN.SQRT.SQUARE.TAN.APP_NAME.APPLOCK_MODE.APPLOCK_TEST.ASSEMBLYPROPERTY.COL_LENGTH.COL_NAME.COLUMNPROPERTY.DATABASE_PRINCIPAL_ID.DATABASEPROPERTYEX.DB_ID.DB_NAME.FILE_ID.FILE_IDEX.FILE_NAME.FILEGROUP_ID.FILEGROUP_NAME.FILEGROUPPROPERTY.FILEPROPERTY.FULLTEXTCATALOGPROPERTY.FULLTEXTSERVICEPROPERTY.INDEX_COL.INDEXKEY_PROPERTY.INDEXPROPERTY.OBJECT_DEFINITION.OBJECT_ID.OBJECT_NAME.OBJECT_SCHEMA_NAME.OBJECTPROPERTY.OBJECTPROPERTYEX.ORIGINAL_DB_NAME.PARSENAME.SCHEMA_ID.SCHEMA_NAME.SCOPE_IDENTITY.SERVERPROPERTY.STATS_DATE.TYPE_ID.TYPE_NAME.TYPEPROPERTY.DENSE_RANK.NTILE.RANK.ROW_NUMBER.PUBLISHINGSERVERNAME.OPENDATASOURCE.OPENQUERY.OPENROWSET.OPENXML.CERTENCODED.CERTPRIVATEKEY.CURRENT_USER.HAS_DBACCESS.HAS_PERMS_BY_NAME.IS_MEMBER.IS_ROLEMEMBER.IS_SRVROLEMEMBER.LOGINPROPERTY.ORIGINAL_LOGIN.PERMISSIONS.PWDENCRYPT.PWDCOMPARE.SESSION_USER.SESSIONPROPERTY.SUSER_ID.SUSER_NAME.SUSER_SID.SUSER_SNAME.SYSTEM_USER.USER.USER_ID.USER_NAME.ASCII.CHAR.CHARINDEX.CONCAT.DIFFERENCE.FORMAT.LEFT.LEN.LOWER.LTRIM.NCHAR.PATINDEX.QUOTENAME.REPLACE.REPLICATE.REVERSE.RIGHT.RTRIM.SOUNDEX.SPACE.STR.STUFF.SUBSTRING.UNICODE.UPPER.BINARY_CHECKSUM.CHECKSUM.CONNECTIONPROPERTY.CONTEXT_INFO.CURRENT_REQUEST_ID.ERROR_LINE.ERROR_NUMBER.ERROR_MESSAGE.ERROR_PROCEDURE.ERROR_SEVERITY.ERROR_STATE.FORMATMESSAGE.GETANSINULL.GET_FILESTREAM_TRANSACTION_CONTEXT.HOST_ID.HOST_NAME.ISNULL.ISNUMERIC.MIN_ACTIVE_ROWVERSION.NEWID.NEWSEQUENTIALID.ROWCOUNT_BIG.XACT_STATE.TEXTPTR.TEXTVALID.COLUMNS_UPDATED.EVENTDATA.TRIGGER_NESTLEVEL.UPDATE.CHANGETABLE.CHANGE_TRACKING_CONTEXT.CHANGE_TRACKING_CURRENT_VERSION.CHANGE_TRACKING_IS_COLUMN_IN_MASK.CHANGE_TRACKING_MIN_VALID_VERSION.CONTAINSTABLE.FREETEXTTABLE.SEMANTICKEYPHRASETABLE.SEMANTICSIMILARITYDETAILSTABLE.SEMANTICSIMILARITYTABLE.FILETABLEROOTPATH.GETFILENAMESPACEPATH.GETPATHLOCATOR.PATHNAME.GET_TRANSMISSION_STATUS`.split(`.`),builtinVariables:`@@DATEFIRST.@@DBTS.@@LANGID.@@LANGUAGE.@@LOCK_TIMEOUT.@@MAX_CONNECTIONS.@@MAX_PRECISION.@@NESTLEVEL.@@OPTIONS.@@REMSERVER.@@SERVERNAME.@@SERVICENAME.@@SPID.@@TEXTSIZE.@@VERSION.@@CURSOR_ROWS.@@FETCH_STATUS.@@DATEFIRST.@@PROCID.@@ERROR.@@IDENTITY.@@ROWCOUNT.@@TRANCOUNT.@@CONNECTIONS.@@CPU_BUSY.@@IDLE.@@IO_BUSY.@@PACKET_ERRORS.@@PACK_RECEIVED.@@PACK_SENT.@@TIMETICKS.@@TOTAL_ERRORS.@@TOTAL_READ.@@TOTAL_WRITE`.split(`.`),pseudoColumns:[`$ACTION`,`$IDENTITY`,`$ROWGUID`,`$PARTITION`],tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@pseudoColumns`},{include:`@numbers`},{include:`@strings`},{include:`@complexIdentifiers`},{include:`@scopes`},[/[;,.]/,`delimiter`],[/[()]/,`@brackets`],[/[\w@#$]+/,{cases:{"@operators":`operator`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@keywords":`keyword`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[/--+.*/,`comment`],[/\/\*/,{token:`comment.quote`,next:`@comment`}]],comment:[[/[^*/]+/,`comment`],[/\*\//,{token:`comment.quote`,next:`@pop`}],[/./,`comment`]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":`predefined`,"@default":`identifier`}}]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/N'/,{token:`string`,next:`@string`}],[/'/,{token:`string`,next:`@string`}]],string:[[/[^']+/,`string`],[/''/,`string`],[/'/,{token:`string`,next:`@pop`}]],complexIdentifiers:[[/\[/,{token:`identifier.quote`,next:`@bracketedIdentifier`}],[/"/,{token:`identifier.quote`,next:`@quotedIdentifier`}]],bracketedIdentifier:[[/[^\]]+/,`identifier`],[/]]/,`identifier`],[/]/,{token:`identifier.quote`,next:`@pop`}]],quotedIdentifier:[[/[^"]+/,`identifier`],[/""/,`identifier`],[/"/,{token:`identifier.quote`,next:`@pop`}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,`keyword`],[/BEGIN\s+TRY\b/i,{token:`keyword.try`}],[/END\s+TRY\b/i,{token:`keyword.try`}],[/BEGIN\s+CATCH\b/i,{token:`keyword.catch`}],[/END\s+CATCH\b/i,{token:`keyword.catch`}],[/(BEGIN|CASE)\b/i,{token:`keyword.block`}],[/END\b/i,{token:`keyword.block`}],[/WHEN\b/i,{token:`keyword.choice`}],[/THEN\b/i,{token:`keyword.choice`}]]}};export{e as conf,t as language};
|