pmx-canvas 0.10.0 → 0.12.0
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/.github/extensions/pmx-canvas/extension.mjs +3 -1
- package/.github/extensions/pmx-canvas/runtime.json +1 -1
- package/.github/extensions/pmx-canvas/tools.json +688 -128
- package/CHANGELOG.md +69 -0
- package/dist/amp-plugin/pmx-canvas/LICENSE +21 -0
- package/dist/amp-plugin/pmx-canvas/THIRD_PARTY_LICENSES.txt +331 -0
- package/dist/amp-plugin/pmx-canvas/index.js +5445 -0
- package/dist/amp-plugin/pmx-canvas/runtime.json +3 -0
- package/dist/amp-plugin/pmx-canvas/shared-runtime.mjs +194 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/SKILL.md +251 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/evals.json +1086 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/auth/jwt.ts +17 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/auth/login.ts +12 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/auth/middleware.ts +13 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/code-exploration/src/routes/auth.ts +13 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/evals/fixtures/investigation-board/src/handlers/users.ts +27 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/mcp.json +36 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/ax-html-control-surface.md +101 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/codex-app-adapter.md +151 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/excalidraw-diagram-authoring.md +150 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/full-reference.md +1785 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/github-copilot-app-adapter.md +223 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/html-primitives.md +139 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/importing-context.md +132 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/installing-pmx-canvas.md +251 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/tours-and-recording.md +111 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas/references/workbench-workflows.md +900 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas-orchestration/SKILL.md +141 -0
- package/dist/amp-plugin/pmx-canvas/skills/pmx-canvas-testing/SKILL.md +266 -0
- package/dist/amp-plugin/pmx-canvas/start-mcp.mjs +14857 -0
- package/dist/amp-plugin/pmx-canvas/tools.json +10963 -0
- package/dist/canvas/chunks/abnfDiagram-N423BO3Z-cwtsds5d.js +1 -0
- package/dist/canvas/chunks/architecture-TIHT7OUA-x63cwejs.js +1 -0
- package/dist/canvas/chunks/architectureDiagram-T3A2C74G-b4xc9tpz.js +36 -0
- package/dist/canvas/chunks/blockDiagram-VBNYF7ZC-ahp3yxxs.js +132 -0
- package/dist/canvas/chunks/c4Diagram-5PPSVZJV-nappnay7.js +10 -0
- package/dist/canvas/chunks/classDiagram-JCYQIIEL-k1j2xc1t.js +1 -0
- package/dist/canvas/chunks/classDiagram-v2-OCEON4UE-33x08xf2.js +1 -0
- package/dist/canvas/chunks/cose-bilkent-JH36ORCC-a428syda.js +1 -0
- package/dist/canvas/chunks/cynefin-VYW2F7L2-8v6jxfz8.js +1 -0
- package/dist/canvas/chunks/cynefinDiagram-MW4NZA55-nspsqebj.js +62 -0
- package/dist/canvas/chunks/dagre-VZM6K2ZE-8y6177fh.js +4 -0
- package/dist/canvas/chunks/diagram-7IWD3JNH-vym028wn.js +30 -0
- package/dist/canvas/chunks/diagram-B4RE2ZJO-jddqb8sy.js +3 -0
- package/dist/canvas/chunks/diagram-LBJQPF4R-bjwbpkrn.js +24 -0
- package/dist/canvas/chunks/diagram-Q27KOJAE-j6ph6hcx.js +24 -0
- package/dist/canvas/chunks/diagram-UB23O5K3-p09w8jej.js +41 -0
- package/dist/canvas/chunks/ebnfDiagram-BXEA7PRR-j975ycq5.js +1 -0
- package/dist/canvas/chunks/erDiagram-JOGREHBK-sxp6hjn8.js +85 -0
- package/dist/canvas/chunks/eventmodeling-45OFAUF4-xzfgn6xg.js +1 -0
- package/dist/canvas/chunks/flowDiagram-UKHOOZJN-2nsmkskb.js +1 -0
- package/dist/canvas/chunks/ganttDiagram-PKOTCBZU-4tv230y2.js +292 -0
- package/dist/canvas/chunks/gitGraph-TEB2WS4Q-macbhand.js +1 -0
- package/dist/canvas/chunks/gitGraphDiagram-DS77QQ5N-mqgmnw9g.js +106 -0
- package/dist/canvas/chunks/index-037z5dz2.js +232 -0
- package/dist/canvas/chunks/index-081n3har.js +207 -0
- package/dist/canvas/chunks/index-5n03dmb9.js +2 -0
- package/dist/canvas/chunks/index-5tv8v1hk.js +1 -0
- package/dist/canvas/chunks/index-60pgzdqe.js +157 -0
- package/dist/canvas/chunks/index-6ceya556.js +332 -0
- package/dist/canvas/chunks/index-8g1vb57n.js +2 -0
- package/dist/canvas/chunks/index-8rjes9r6.js +2 -0
- package/dist/canvas/chunks/index-9022d1n9.js +16 -0
- package/dist/canvas/chunks/index-9b02042t.js +2 -0
- package/dist/canvas/chunks/index-ap4q4vez.js +2 -0
- package/dist/canvas/chunks/index-dyp2nhd3.js +2 -0
- package/dist/canvas/chunks/index-frvta4tm.js +2 -0
- package/dist/canvas/chunks/index-gf4e0et4.js +2 -0
- package/dist/canvas/chunks/index-h9ycj8n2.js +2 -0
- package/dist/canvas/chunks/index-hj99nz1f.js +1 -0
- package/dist/canvas/chunks/index-mergmj97.js +2 -0
- package/dist/canvas/chunks/index-nwsya6dj.js +301 -0
- package/dist/canvas/chunks/index-nz8qbd1p.js +2 -0
- package/dist/canvas/chunks/index-qhfrazv3.js +2 -0
- package/dist/canvas/chunks/index-v119nznk.js +4 -0
- package/dist/canvas/chunks/index-vpt37m3d.js +89 -0
- package/dist/canvas/chunks/index-y9ma6azy.js +2 -0
- package/dist/canvas/chunks/index-zx0j3a2z.js +179 -0
- package/dist/canvas/chunks/info-DKCQHKI2-a0ykzs9z.js +1 -0
- package/dist/canvas/chunks/infoDiagram-6WML65LV-qv97qq6a.js +2 -0
- package/dist/canvas/chunks/ishikawaDiagram-WSZJBQD7-p9306gh0.js +70 -0
- package/dist/canvas/chunks/journeyDiagram-NVQOT4AX-sv67zats.js +139 -0
- package/dist/canvas/chunks/kanban-definition-27J2QSJJ-k2pfam6p.js +89 -0
- package/dist/canvas/chunks/katex-dmg8k4zm.js +257 -0
- package/dist/canvas/chunks/mermaid.core-83r0fdce.js +12 -0
- package/dist/canvas/chunks/mindmap-definition-FAOFIHXS-vg2newm1.js +96 -0
- package/dist/canvas/chunks/packet-7NZHBO7P-tqnabcdv.js +1 -0
- package/dist/canvas/chunks/pegDiagram-VL7TDLO6-k2h7zc5n.js +1 -0
- package/dist/canvas/chunks/pie-RZYD4A2V-wke6gyhe.js +1 -0
- package/dist/canvas/chunks/pieDiagram-7S7Q4E2Y-hg169p1v.js +39 -0
- package/dist/canvas/chunks/quadrantDiagram-CIZ2JOQS-bxtvsq0b.js +7 -0
- package/dist/canvas/chunks/radar-I7S5WNFK-w7ka0drw.js +1 -0
- package/dist/canvas/chunks/railroad-3IZDKUUU-y3vg318x.js +1 -0
- package/dist/canvas/chunks/railroad-abnf-AHOZXSZD-6hqvcz3c.js +1 -0
- package/dist/canvas/chunks/railroad-ebnf-EBAXGLYW-vcae260m.js +1 -0
- package/dist/canvas/chunks/railroad-peg-LSFZ7HO6-0dbyme23.js +1 -0
- package/dist/canvas/chunks/railroadDiagram-AXF67PYL-njyhcp4p.js +1 -0
- package/dist/canvas/chunks/requirementDiagram-LRYGKXZP-2z6v09gm.js +84 -0
- package/dist/canvas/chunks/sankeyDiagram-W5VNT64P-15mzam0e.js +40 -0
- package/dist/canvas/chunks/sequenceDiagram-SI44F4Z6-rbshyd2c.js +162 -0
- package/dist/canvas/chunks/sizeCapture-X5ZJPWSS-sg26xwts.js +1 -0
- package/dist/canvas/chunks/stateDiagram-OKZ733FA-6eahp98e.js +1 -0
- package/dist/canvas/chunks/stateDiagram-v2-UEYNNEHI-tty0ggn5.js +1 -0
- package/dist/canvas/chunks/swimlanes-SLNWSIFB-ze5db10t.js +1 -0
- package/dist/canvas/chunks/swimlanesDiagram-ULZ7WXOC-thze75gq.js +8 -0
- package/dist/canvas/chunks/timeline-definition-Z64GVDOM-vnp7jyy8.js +120 -0
- package/dist/canvas/chunks/treeView-QDETBFTQ-6ysffnm6.js +1 -0
- package/dist/canvas/chunks/treemap-6X3UGDF4-m3h9p066.js +1 -0
- package/dist/canvas/chunks/vennDiagram-T6HMQDX7-0qrnb7mj.js +34 -0
- package/dist/canvas/chunks/wardley-OPB4EBWU-dp37drwx.js +1 -0
- package/dist/canvas/chunks/wardleyDiagram-T6FBY63Y-8nxg8wqt.js +78 -0
- package/dist/canvas/chunks/xychartDiagram-ELKLHX3M-nj921e7s.js +7 -0
- package/dist/canvas/global.css +483 -230
- package/dist/canvas/index.js +158 -219
- package/dist/canvas/mcp-app.html +4301 -548
- package/dist/canvas/mermaid-entry.js +338 -338
- package/dist/canvas/surface-theme.css +6 -6
- package/dist/json-render/index.css +1 -1
- package/dist/json-render/index.js +49 -49
- package/dist/types/client/canvas/BarHint.d.ts +5 -3
- package/dist/types/client/canvas/BoardMoveDialog.d.ts +2 -0
- package/dist/types/client/canvas/CanvasNode.d.ts +0 -11
- package/dist/types/client/canvas/EdgeEditor.d.ts +19 -0
- package/dist/types/client/canvas/EdgeLayer.d.ts +1 -2
- package/dist/types/client/canvas/GroupNavigation.d.ts +2 -0
- package/dist/types/client/canvas/TextPrompt.d.ts +4 -0
- package/dist/types/client/canvas/auto-fit.d.ts +4 -5
- package/dist/types/client/mermaid-entry.d.ts +1 -2
- package/dist/types/client/mermaid-render.d.ts +1 -0
- package/dist/types/client/nodes/BoardNode.d.ts +1 -1
- package/dist/types/client/nodes/ExtAppFrame.d.ts +7 -90
- package/dist/types/client/nodes/McpAppNode.d.ts +1 -25
- package/dist/types/client/nodes/MermaidNode.d.ts +1 -8
- package/dist/types/client/nodes/PromptNode.d.ts +1 -0
- package/dist/types/client/nodes/ViewerFrame.d.ts +29 -0
- package/dist/types/client/nodes/ViewerHost.d.ts +6 -0
- package/dist/types/client/nodes/WorkCard.d.ts +7 -0
- package/dist/types/client/nodes/iframe-document-url.d.ts +3 -9
- package/dist/types/client/nodes/primitive-copy.d.ts +5 -0
- package/dist/types/client/nodes/use-ax-surface-bridge.d.ts +1 -0
- package/dist/types/client/nodes/use-iframe-content-height.d.ts +1 -1
- package/dist/types/client/nodes/use-surface-frame.d.ts +4 -6
- package/dist/types/client/nodes/viewer-runtime-state.d.ts +2 -1
- package/dist/types/client/state/canvas-store.d.ts +18 -1
- package/dist/types/client/state/human-store.d.ts +2 -0
- package/dist/types/client/state/intent-bridge.d.ts +5 -2
- package/dist/types/client/state/presentation.d.ts +17 -6
- package/dist/types/client/state/relation-store.d.ts +11 -0
- package/dist/types/client/types.d.ts +1 -1
- package/dist/types/json-render/catalog.d.ts +2 -2
- package/dist/types/json-render/server.d.ts +2 -1
- package/dist/types/server/agent-presence.d.ts +1 -0
- package/dist/types/server/ax-interaction.d.ts +1 -0
- package/dist/types/server/ax-state-manager.d.ts +10 -2
- package/dist/types/server/board-local.d.ts +4 -0
- package/dist/types/server/board-move.d.ts +38 -0
- package/dist/types/server/canvas-db.d.ts +12 -2
- package/dist/types/server/canvas-operations.d.ts +5 -6
- package/dist/types/server/canvas-provenance.d.ts +1 -1
- package/dist/types/server/canvas-serialization.d.ts +1 -0
- package/dist/types/server/canvas-state.d.ts +86 -20
- package/dist/types/server/card-relocation.d.ts +6 -0
- package/dist/types/server/context-reads.d.ts +3 -1
- package/dist/types/server/human-presence.d.ts +1 -1
- package/dist/types/server/index.d.ts +26 -10
- package/dist/types/server/intent-registry.d.ts +8 -4
- package/dist/types/server/knowledge-lifecycle.d.ts +4 -2
- package/dist/types/server/mutation-history.d.ts +7 -5
- package/dist/types/server/operations/ops/boards.d.ts +0 -1
- package/dist/types/server/operations/registry.d.ts +2 -0
- package/dist/types/server/tour-control.d.ts +13 -3
- package/dist/types/server/trace-manager.d.ts +1 -0
- package/dist/types/shared/ax-kinds.d.ts +6 -0
- package/dist/types/shared/ax-surface-protocol.d.ts +8 -9
- package/dist/types/shared/human-presence.d.ts +1 -0
- package/dist/types/shared/lifecycle-status.d.ts +2 -0
- package/dist/types/shared/tour.d.ts +8 -0
- package/docs/RELEASE.md +21 -14
- package/docs/agent-plugin.md +16 -2
- package/docs/amp-plugin.md +271 -0
- package/docs/cli.md +42 -3
- package/docs/design/Chrome.dc.html +32 -6
- package/docs/design/GuestName.dc.html +50 -0
- package/docs/design/PluginLogo.svg +7 -0
- package/docs/design/Types1.dc.html +3 -2
- package/docs/design/Types2.dc.html +1 -1
- package/docs/design/Types3.dc.html +1 -1
- package/docs/design/WorkCards.dc.html +39 -0
- package/docs/design/Zoom.dc.html +37 -60
- package/docs/design/canvas.json +17 -1
- package/docs/design/plugin-logo.png +0 -0
- package/docs/design.md +280 -12
- package/docs/evals/agents-md-sections.md +38 -0
- package/docs/http-api.md +179 -11
- package/docs/mcp.md +69 -9
- package/docs/node-types.md +109 -4
- package/docs/plans/plan-009-tech-debt-backlog.md +3 -3
- package/docs/plans/plan-019-post-0.9-roadmap.md +327 -31
- package/docs/plans/plan-020-wave-5-work-planning.md +553 -0
- package/docs/product-vision-2026-09.md +42 -17
- package/docs/sdk.md +18 -0
- package/package.json +7 -4
- package/plugins/pmx-canvas/assets/preview.png +0 -0
- package/plugins/pmx-canvas/com.github.copilot/extensions/pmx-canvas/extension.mjs +3 -1
- package/plugins/pmx-canvas/com.github.copilot/extensions/pmx-canvas/runtime.json +1 -1
- package/plugins/pmx-canvas/plugin.json +2 -2
- package/plugins/pmx-canvas/runtime.json +1 -1
- package/plugins/pmx-canvas/tools.json +688 -128
- package/skills/data-analysis/SKILL.md +13 -26
- package/skills/frontend-design/LICENSE.txt +177 -0
- package/skills/frontend-design/SKILL.md +3 -0
- package/skills/pmx-canvas/SKILL.md +232 -849
- package/skills/pmx-canvas/evals/evals.json +26 -3
- package/skills/pmx-canvas/references/full-reference.md +89 -24
- package/skills/pmx-canvas/references/html-primitives.md +7 -0
- package/skills/pmx-canvas/references/installing-pmx-canvas.md +6 -6
- package/skills/pmx-canvas/references/tours-and-recording.md +29 -2
- package/skills/pmx-canvas/references/workbench-workflows.md +900 -0
- package/skills/pmx-canvas-testing/SKILL.md +7 -5
- package/skills/published-consumer-e2e/SKILL.md +25 -8
- package/skills/published-consumer-e2e/scripts/run-published-consumer-e2e.sh +51 -77
- package/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/skills/web-artifacts-builder/SKILL.md +6 -0
- package/skills/web-artifacts-builder/scripts/init-artifact.sh +2 -2
- package/src/cli/commands/apps.ts +1 -0
- package/src/cli/commands/boards.ts +30 -0
- package/src/client/App.tsx +20 -4
- package/src/client/canvas/AttentionHistory.tsx +10 -2
- package/src/client/canvas/BarHint.tsx +6 -3
- package/src/client/canvas/BoardMoveDialog.tsx +225 -0
- package/src/client/canvas/CanvasNode.tsx +79 -49
- package/src/client/canvas/CanvasViewport.tsx +42 -14
- package/src/client/canvas/ContextMenu.tsx +97 -15
- package/src/client/canvas/EdgeEditor.tsx +149 -0
- package/src/client/canvas/EdgeLayer.tsx +441 -174
- package/src/client/canvas/ExpandedNodeOverlay.tsx +5 -2
- package/src/client/canvas/GroupNavigation.tsx +85 -0
- package/src/client/canvas/Presentation.tsx +53 -3
- package/src/client/canvas/RelationsPanel.tsx +9 -0
- package/src/client/canvas/SelectionBar.tsx +21 -0
- package/src/client/canvas/SessionPanel.tsx +35 -1
- package/src/client/canvas/TextPrompt.tsx +18 -1
- package/src/client/canvas/TopBar.tsx +54 -9
- package/src/client/canvas/auto-fit.ts +9 -11
- package/src/client/canvas/canvas-area.ts +2 -2
- package/src/client/canvas/use-focus-trap.ts +6 -1
- package/src/client/mermaid-entry.ts +6 -20
- package/src/client/mermaid-render.ts +39 -0
- package/src/client/nodes/AxStepControls.tsx +45 -69
- package/src/client/nodes/BoardNode.tsx +65 -9
- package/src/client/nodes/ContextNode.tsx +88 -396
- package/src/client/nodes/ExtAppFrame.tsx +302 -1465
- package/src/client/nodes/FileNode.tsx +92 -81
- package/src/client/nodes/HtmlNode.tsx +8 -36
- package/src/client/nodes/LedgerNode.tsx +31 -17
- package/src/client/nodes/MarkdownNode.tsx +14 -24
- package/src/client/nodes/McpAppNode.tsx +48 -154
- package/src/client/nodes/MermaidNode.tsx +80 -69
- package/src/client/nodes/PromptNode.tsx +44 -17
- package/src/client/nodes/ResponseNode.tsx +8 -6
- package/src/client/nodes/StatusNode.tsx +34 -7
- package/src/client/nodes/StatusSummary.tsx +16 -3
- package/src/client/nodes/TraceNode.tsx +8 -8
- package/src/client/nodes/ViewerFrame.tsx +273 -0
- package/src/client/nodes/ViewerHost.tsx +41 -0
- package/src/client/nodes/WebpageNode.tsx +22 -24
- package/src/client/nodes/WorkCard.tsx +175 -0
- package/src/client/nodes/iframe-document-url.ts +20 -27
- package/src/client/nodes/primitive-copy.ts +97 -0
- package/src/client/nodes/use-ax-surface-bridge.ts +18 -14
- package/src/client/nodes/use-iframe-content-height.ts +34 -10
- package/src/client/nodes/use-surface-frame.ts +22 -11
- package/src/client/nodes/viewer-runtime-state.ts +41 -35
- package/src/client/state/attention-bridge.ts +5 -0
- package/src/client/state/attention-store.ts +1 -0
- package/src/client/state/canvas-store.ts +202 -26
- package/src/client/state/human-store.ts +22 -2
- package/src/client/state/intent-bridge.ts +20 -5
- package/src/client/state/presentation.ts +135 -15
- package/src/client/state/relation-store.ts +127 -1
- package/src/client/state/sse-bridge.ts +18 -19
- package/src/client/theme/global.css +483 -230
- package/src/client/theme/surface-theme.css +6 -6
- package/src/client/types.ts +1 -0
- package/src/json-render/charts/tufte-components.tsx +44 -2
- package/src/json-render/renderer/index.css +62 -2
- package/src/json-render/renderer/index.tsx +31 -7
- package/src/json-render/server.ts +3 -2
- package/src/mcp/server.ts +13 -3
- package/src/server/agent-presence.ts +43 -23
- package/src/server/ax-flow-loop.ts +6 -0
- package/src/server/ax-gate-ttl.ts +8 -1
- package/src/server/ax-interaction.ts +16 -10
- package/src/server/ax-state-manager.ts +17 -4
- package/src/server/ax-wait.ts +20 -6
- package/src/server/board-export.ts +54 -30
- package/src/server/board-local.ts +20 -0
- package/src/server/board-move.ts +297 -0
- package/src/server/canvas-db.ts +249 -158
- package/src/server/canvas-geometry.ts +1 -0
- package/src/server/canvas-operations.ts +139 -109
- package/src/server/canvas-schema.ts +21 -0
- package/src/server/canvas-serialization.ts +2 -0
- package/src/server/canvas-state.ts +797 -159
- package/src/server/card-relocation.ts +53 -0
- package/src/server/code-graph.ts +4 -3
- package/src/server/context-reads.ts +83 -55
- package/src/server/demo-state.json +140 -114
- package/src/server/file-watcher.ts +30 -10
- package/src/server/html-primitives.ts +3 -9
- package/src/server/html-surface.ts +8 -0
- package/src/server/human-presence.ts +18 -5
- package/src/server/index.ts +54 -24
- package/src/server/intent-registry.ts +43 -5
- package/src/server/knowledge-lifecycle.ts +32 -9
- package/src/server/lifecycle-status.ts +29 -1
- package/src/server/mcp-app-runtime.ts +26 -7
- package/src/server/mutation-history.ts +37 -8
- package/src/server/operations/composites.ts +6 -3
- package/src/server/operations/mcp-contracts.ts +32 -2
- package/src/server/operations/mcp.ts +36 -9
- package/src/server/operations/ops/annotation.ts +22 -1
- package/src/server/operations/ops/ax-await.ts +1 -0
- package/src/server/operations/ops/ax-timeline.ts +28 -2
- package/src/server/operations/ops/batch.ts +25 -11
- package/src/server/operations/ops/boards.ts +45 -6
- package/src/server/operations/ops/nodes.ts +70 -0
- package/src/server/operations/ops/query.ts +32 -3
- package/src/server/operations/ops/snapshots.ts +1 -0
- package/src/server/operations/ops/viewport.ts +11 -9
- package/src/server/operations/registry.ts +49 -4
- package/src/server/server.ts +69 -75
- package/src/server/tour-control.ts +97 -12
- package/src/server/trace-manager.ts +4 -0
- package/src/server/web-artifacts/scripts/init-artifact.sh +2 -2
- package/src/shared/agent-context.ts +7 -1
- package/src/shared/auto-arrange.ts +5 -4
- package/src/shared/ax-kinds.ts +13 -0
- package/src/shared/ax-surface-protocol.ts +20 -9
- package/src/shared/content-height-reporter.ts +4 -3
- package/src/shared/human-presence.ts +1 -0
- package/src/shared/lifecycle-status.ts +2 -0
- package/src/shared/tour.ts +8 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import{e,t,w,lt,l,d,f,p,m,g,b,v,r,n,h,Me,fe,Ce}from"./index-nwsya6dj.js";import{V}from"./index-v119nznk.js";import{It}from"./index-y9ma6azy.js";import{we}from"./index-9022d1n9.js";import{le}from"./index-h9ycj8n2.js";import{J}from"./index-nz8qbd1p.js";var Je=function(){var i=e(function(Q,T,y,F){for(y=y||{},F=Q.length;F--;y[Q[F]]=T);return y},"o"),u=[1,18],c=[1,19],o=[1,20],A=[1,41],E=[1,26],k=[1,42],D=[1,24],S=[1,25],_=[1,32],U=[1,33],Ne=[1,34],L=[1,45],Le=[1,35],xe=[1,36],ve=[1,37],Ie=[1,38],Oe=[1,27],Ve=[1,28],Pe=[1,29],Re=[1,30],Ge=[1,31],x=[1,44],I=[1,46],O=[1,43],P=[1,47],Ue=[1,9],B=[1,8,9],de=[1,58],pe=[1,59],Ae=[1,60],be=[1,61],ke=[1,62],ze=[1,63],Ye=[1,64],G=[1,8,9,41],Ze=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],me=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ge=[13,60,86,100,102,103],ee=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],Ee=[1,103],te=[1,121],se=[1,117],ie=[1,113],ae=[1,119],re=[1,114],ne=[1,115],ue=[1,116],ce=[1,118],oe=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],Te=[12,39],Ke=[1,8,9,39,41,44,46],ye=[1,8,9,22],st=[1,153],it=[1,8,9,61],K=[1,8,9,22,50,60,61,82,86,87,88,89,90],We={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:e(function(T,y,F,C,N,s,he){var a=s.length-1;switch(N){case 8:this.$=s[a-1];break;case 9:case 10:case 13:case 15:this.$=s[a];break;case 11:case 14:this.$=s[a-2]+"."+s[a];break;case 12:case 16:this.$=s[a-1]+s[a];break;case 17:case 18:this.$=s[a-1]+"~"+s[a]+"~";break;case 19:C.addRelation(s[a]);break;case 20:s[a-1].title=C.cleanupLabel(s[a]),C.addRelation(s[a-1]);break;case 31:this.$=s[a].trim(),C.setAccTitle(this.$);break;case 32:case 33:this.$=s[a].trim(),C.setAccDescription(this.$);break;case 34:C.addClassesToNamespace(s[a-3],s[a-1][0],s[a-1][1]),C.popNamespace();break;case 35:C.addClassesToNamespace(s[a-4],s[a-1][0],s[a-1][1]),C.popNamespace();break;case 36:this.$=C.addNamespace(s[a]);break;case 37:this.$=C.addNamespace(s[a-1],s[a]);break;case 38:this.$=[[s[a]],[]];break;case 39:this.$=[[s[a-1]],[]];break;case 40:s[a][0].unshift(s[a-2]),this.$=s[a];break;case 41:this.$=[[],[s[a]]];break;case 42:this.$=[[],[s[a-1]]];break;case 43:s[a][1].unshift(s[a-2]),this.$=s[a];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=s[a];break;case 48:C.setCssClass(s[a-2],s[a]);break;case 49:C.addMembers(s[a-3],s[a-1]);break;case 51:C.setCssClass(s[a-5],s[a-3]),C.addMembers(s[a-5],s[a-1]);break;case 52:C.addAnnotation(s[a-3],s[a-1]);break;case 53:C.addAnnotation(s[a-6],s[a-4]),C.addMembers(s[a-6],s[a-1]);break;case 54:C.addAnnotation(s[a-5],s[a-3]);break;case 55:this.$=s[a],C.addClass(s[a]);break;case 56:this.$=s[a-1],C.addClass(s[a-1]),C.setClassLabel(s[a-1],s[a]);break;case 60:C.addAnnotation(s[a],s[a-2]);break;case 61:case 74:this.$=[s[a]];break;case 62:s[a].push(s[a-1]),this.$=s[a];break;case 63:break;case 64:C.addMember(s[a-1],C.cleanupLabel(s[a]));break;case 65:break;case 66:break;case 67:this.$={id1:s[a-2],id2:s[a],relation:s[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:s[a-3],id2:s[a],relation:s[a-1],relationTitle1:s[a-2],relationTitle2:"none"};break;case 69:this.$={id1:s[a-3],id2:s[a],relation:s[a-2],relationTitle1:"none",relationTitle2:s[a-1]};break;case 70:this.$={id1:s[a-4],id2:s[a],relation:s[a-2],relationTitle1:s[a-3],relationTitle2:s[a-1]};break;case 71:this.$=C.addNote(s[a],s[a-1]);break;case 72:this.$=C.addNote(s[a]);break;case 73:this.$=s[a-2],C.defineClass(s[a-1],s[a]);break;case 75:this.$=s[a-2].concat([s[a]]);break;case 76:C.setDirection("TB");break;case 77:C.setDirection("BT");break;case 78:C.setDirection("RL");break;case 79:C.setDirection("LR");break;case 80:this.$={type1:s[a-2],type2:s[a],lineType:s[a-1]};break;case 81:this.$={type1:"none",type2:s[a],lineType:s[a-1]};break;case 82:this.$={type1:s[a-1],type2:"none",lineType:s[a]};break;case 83:this.$={type1:"none",type2:"none",lineType:s[a]};break;case 84:this.$=C.relationType.AGGREGATION;break;case 85:this.$=C.relationType.EXTENSION;break;case 86:this.$=C.relationType.COMPOSITION;break;case 87:this.$=C.relationType.DEPENDENCY;break;case 88:this.$=C.relationType.LOLLIPOP;break;case 89:this.$=C.lineType.LINE;break;case 90:this.$=C.lineType.DOTTED_LINE;break;case 91:case 97:this.$=s[a-2],C.setClickEvent(s[a-1],s[a]);break;case 92:case 98:this.$=s[a-3],C.setClickEvent(s[a-2],s[a-1]),C.setTooltip(s[a-2],s[a]);break;case 93:this.$=s[a-2],C.setLink(s[a-1],s[a]);break;case 94:this.$=s[a-3],C.setLink(s[a-2],s[a-1],s[a]);break;case 95:this.$=s[a-3],C.setLink(s[a-2],s[a-1]),C.setTooltip(s[a-2],s[a]);break;case 96:this.$=s[a-4],C.setLink(s[a-3],s[a-2],s[a]),C.setTooltip(s[a-3],s[a-1]);break;case 99:this.$=s[a-3],C.setClickEvent(s[a-2],s[a-1],s[a]);break;case 100:this.$=s[a-4],C.setClickEvent(s[a-3],s[a-2],s[a-1]),C.setTooltip(s[a-3],s[a]);break;case 101:this.$=s[a-3],C.setLink(s[a-2],s[a]);break;case 102:this.$=s[a-4],C.setLink(s[a-3],s[a-1],s[a]);break;case 103:this.$=s[a-4],C.setLink(s[a-3],s[a-1]),C.setTooltip(s[a-3],s[a]);break;case 104:this.$=s[a-5],C.setLink(s[a-4],s[a-2],s[a]),C.setTooltip(s[a-4],s[a-1]);break;case 105:this.$=s[a-2],C.setCssStyle(s[a-1],s[a]);break;case 106:C.setCssClass(s[a-1],s[a]);break;case 107:this.$=[s[a]];break;case 108:s[a-2].push(s[a]),this.$=s[a-2];break;case 110:this.$=s[a-1]+s[a];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:u,35:c,37:o,38:22,42:A,43:23,46:E,48:k,51:D,52:S,54:_,56:U,57:Ne,60:L,62:Le,63:xe,64:ve,65:Ie,75:Oe,76:Ve,78:Pe,82:Re,83:Ge,86:x,100:I,102:O,103:P},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},i(Ue,[2,5],{8:[1,48]}),{8:[1,49]},i(B,[2,19],{22:[1,50]}),i(B,[2,21]),i(B,[2,22]),i(B,[2,23]),i(B,[2,24]),i(B,[2,25]),i(B,[2,26]),i(B,[2,27]),i(B,[2,28]),i(B,[2,29]),i(B,[2,30]),{34:[1,51]},{36:[1,52]},i(B,[2,33]),i(B,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:de,69:pe,70:Ae,71:be,72:ke,73:ze,74:Ye}),{39:[1,65]},i(G,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),i(B,[2,65]),i(B,[2,66]),{16:69,60:L,86:x,100:I,102:O},{16:39,17:40,19:70,60:L,86:x,100:I,102:O,103:P},{16:39,17:40,19:71,60:L,86:x,100:I,102:O,103:P},{16:39,17:40,19:72,60:L,86:x,100:I,102:O,103:P},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:L,86:x,100:I,102:O,103:P},{13:Ze,55:76},{58:78,60:[1,79]},i(B,[2,76]),i(B,[2,77]),i(B,[2,78]),i(B,[2,79]),i(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:L,86:x,100:I,102:O,103:P}),i(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:L,86:x,100:I,102:O,103:P},{16:39,17:40,19:87,60:L,86:x,100:I,102:O,103:P},i(me,[2,133]),i(me,[2,134]),i(me,[2,135]),i(me,[2,136]),i([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),i(Ue,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:u,35:c,37:o,42:A,46:E,48:k,51:D,52:S,54:_,56:U,57:Ne,60:L,62:Le,63:xe,64:ve,65:Ie,75:Oe,76:Ve,78:Pe,82:Re,83:Ge,86:x,100:I,102:O,103:P}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:u,35:c,37:o,38:22,42:A,43:23,46:E,48:k,51:D,52:S,54:_,56:U,57:Ne,60:L,62:Le,63:xe,64:ve,65:Ie,75:Oe,76:Ve,78:Pe,82:Re,83:Ge,86:x,100:I,102:O,103:P},i(B,[2,20]),i(B,[2,31]),i(B,[2,32]),{13:[1,91],16:39,17:40,19:90,60:L,86:x,100:I,102:O,103:P},{53:92,66:56,67:57,68:de,69:pe,70:Ae,71:be,72:ke,73:ze,74:Ye},i(B,[2,64]),{67:93,73:ze,74:Ye},i(ge,[2,83],{66:94,68:de,69:pe,70:Ae,71:be,72:ke}),i(ee,[2,84]),i(ee,[2,85]),i(ee,[2,86]),i(ee,[2,87]),i(ee,[2,88]),i($e,[2,89]),i($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:A,43:23,48:k,54:_,56:U},{16:100,60:L,86:x,100:I,102:O},{41:[1,102],45:101,51:Ee},{16:104,60:L,86:x,100:I,102:O},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:te,50:se,59:110,60:ie,82:ae,84:111,85:112,86:re,87:ne,88:ue,89:ce,90:oe},{60:[1,122]},{13:Ze,55:123},i(G,[2,72]),i(G,[2,138]),{22:te,50:se,59:124,60:ie,61:[1,125],82:ae,84:111,85:112,86:re,87:ne,88:ue,89:ce,90:oe},i(et,[2,74]),{16:39,17:40,19:126,60:L,86:x,100:I,102:O,103:P},i(H,[2,16]),i(H,[2,17]),i(H,[2,18]),{11:127,12:tt,39:[2,36]},i(Te,[2,9],{16:85,17:86,15:130,18:[1,129],60:L,86:x,100:I,102:O,103:P}),i(Te,[2,10]),i(Ke,[2,55],{11:131,12:tt}),i(Ue,[2,7]),{9:[1,132]},i(ye,[2,67]),{16:39,17:40,19:133,60:L,86:x,100:I,102:O,103:P},{13:[1,135],16:39,17:40,19:134,60:L,86:x,100:I,102:O,103:P},i(ge,[2,82],{66:136,68:de,69:pe,70:Ae,71:be,72:ke}),i(ge,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:A,43:23,48:k,54:_,56:U},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},i(G,[2,48],{39:[1,142]}),{41:[1,143]},i(G,[2,50]),{41:[2,61],45:144,51:Ee},{47:[1,145]},{16:39,17:40,19:146,60:L,86:x,100:I,102:O,103:P},i(B,[2,91],{13:[1,147]}),i(B,[2,93],{13:[1,149],77:[1,148]}),i(B,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},i(B,[2,105],{61:st}),i(it,[2,107],{85:154,22:te,50:se,60:ie,82:ae,86:re,87:ne,88:ue,89:ce,90:oe}),i(K,[2,109]),i(K,[2,111]),i(K,[2,112]),i(K,[2,113]),i(K,[2,114]),i(K,[2,115]),i(K,[2,116]),i(K,[2,117]),i(K,[2,118]),i(K,[2,119]),i(B,[2,106]),i(G,[2,71]),i(B,[2,73],{61:st}),{60:[1,155]},i(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:L,86:x,100:I,102:O,103:P},i(Te,[2,12]),i(Ke,[2,56]),{1:[2,4]},i(ye,[2,69]),i(ye,[2,68]),{16:39,17:40,19:158,60:L,86:x,100:I,102:O,103:P},i(ge,[2,80]),i(G,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:A,43:23,48:k,54:_,56:U},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:A,43:23,48:k,54:_,56:U},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:A,43:23,48:k,54:_,56:U},{45:163,51:Ee},i(G,[2,49]),{41:[2,62]},i(G,[2,52],{39:[1,164]}),i(B,[2,60]),i(B,[2,92]),i(B,[2,94]),i(B,[2,95],{77:[1,165]}),i(B,[2,98]),i(B,[2,99],{13:[1,166]}),i(B,[2,101],{13:[1,168],77:[1,167]}),{22:te,50:se,60:ie,82:ae,84:169,85:112,86:re,87:ne,88:ue,89:ce,90:oe},i(K,[2,110]),i(et,[2,75]),{14:[1,170]},i(Te,[2,11]),i(ye,[2,70]),i(G,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Ee},i(B,[2,96]),i(B,[2,100]),i(B,[2,102]),i(B,[2,103],{77:[1,174]}),i(it,[2,108],{85:154,22:te,50:se,60:ie,82:ae,86:re,87:ne,88:ue,89:ce,90:oe}),i(Ke,[2,8]),i(G,[2,51]),{41:[1,175]},i(G,[2,54]),i(B,[2,104]),i(G,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:e(function(T,y){if(y.recoverable)this.trace(T);else{var F=Error(T);throw F.hash=y,F}},"parseError"),parse:e(function(T){var y=this,F=[0],C=[],N=[null],s=[],he=this.table,a="",Fe=0,at=0,rt=0,At=2,nt=1,bt=s.slice.call(arguments,1),M=Object.create(this.lexer),j={yy:{}};for(var Qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Qe))j.yy[Qe]=this.yy[Qe];if(M.setInput(T,j.yy),j.yy.lexer=M,j.yy.parser=this,typeof M.yylloc>"u")M.yylloc={};var je=M.yylloc;s.push(je);var ft=M.options&&M.options.ranges;if(typeof j.yy.parseError==="function")this.parseError=j.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function kt(Y){F.length=F.length-2*Y,N.length=N.length-Y,s.length=s.length-Y}e(kt,"popStack");function ut(){var Y=C.pop()||M.lex()||nt;if(typeof Y!=="number"){if(Y instanceof Array)C=Y,Y=C.pop();Y=y.symbols_[Y]||Y}return Y}e(ut,"lex");var R,Xe,X,z,Tt,qe,Z={},Be,W,ct,_e;while(!0){if(X=F[F.length-1],this.defaultActions[X])z=this.defaultActions[X];else{if(R===null||typeof R>"u")R=ut();z=he[X]&&he[X][R]}if(typeof z>"u"||!z.length||!z[0]){var He="";_e=[];for(Be in he[X])if(this.terminals_[Be]&&Be>At)_e.push("'"+this.terminals_[Be]+"'");if(M.showPosition)He="Parse error on line "+(Fe+1)+`:
|
|
2
|
+
`+M.showPosition()+`
|
|
3
|
+
Expecting `+_e.join(", ")+", got '"+(this.terminals_[R]||R)+"'";else He="Parse error on line "+(Fe+1)+": Unexpected "+(R==nt?"end of input":"'"+(this.terminals_[R]||R)+"'");this.parseError(He,{text:M.match,token:this.terminals_[R]||R,line:M.yylineno,loc:je,expected:_e})}if(z[0]instanceof Array&&z.length>1)throw Error("Parse Error: multiple actions possible at state: "+X+", token: "+R);switch(z[0]){case 1:if(F.push(R),N.push(M.yytext),s.push(M.yylloc),F.push(z[1]),R=null,!Xe){if(at=M.yyleng,a=M.yytext,Fe=M.yylineno,je=M.yylloc,rt>0)rt--}else R=Xe,Xe=null;break;case 2:if(W=this.productions_[z[1]][1],Z.$=N[N.length-W],Z._$={first_line:s[s.length-(W||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(W||1)].first_column,last_column:s[s.length-1].last_column},ft)Z._$.range=[s[s.length-(W||1)].range[0],s[s.length-1].range[1]];if(qe=this.performAction.apply(Z,[a,at,Fe,j.yy,z[1],N,s].concat(bt)),typeof qe<"u")return qe;if(W)F=F.slice(0,-1*W*2),N=N.slice(0,-1*W),s=s.slice(0,-1*W);F.push(this.productions_[z[1]][0]),N.push(Z.$),s.push(Z._$),ct=he[F[F.length-2]][F[F.length-1]],F.push(ct);break;case 3:return!0}}return!0},"parse")},pt=function(){var Q={EOF:1,parseError:e(function(y,F){if(this.yy.parser)this.yy.parser.parseError(y,F);else throw Error(y)},"parseError"),setInput:e(function(T,y){if(this.yy=y||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var y=T.match(/(?:\r\n?|\n).*/g);if(y)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),T},"input"),unput:e(function(T){var y=T.length,F=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var C=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1)this.yylineno-=F.length-1;var N=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===C.length?this.yylloc.first_column:0)+C[C.length-F.length].length-F[0].length:this.yylloc.first_column-y},this.options.ranges)this.yylloc.range=[N[0],N[0]+this.yyleng-y];return 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(T){this.unput(this.match.slice(T))},"less"),pastInput:e(function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var T=this.match;if(T.length<20)T+=this._input.substr(0,20-T.length);return(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var T=this.pastInput(),y=Array(T.length+1).join("-");return T+this.upcomingInput()+`
|
|
5
|
+
`+y+"^"},"showPosition"),test_match:e(function(T,y){var F,C,N;if(this.options.backtrack_lexer){if(N={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)N.yylloc.range=this.yylloc.range.slice(0)}if(C=T[0].match(/(?:\r\n?|\n).*/g),C)this.yylineno+=C.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],F=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(F)return F;else if(this._backtrack){for(var s in N)this[s]=N[s];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var T,y,F,C;if(!this._more)this.yytext="",this.match="";var N=this._currentRules();for(var s=0;s<N.length;s++)if(F=this._input.match(this.rules[N[s]]),F&&(!y||F[0].length>y[0].length)){if(y=F,C=s,this.options.backtrack_lexer)if(T=this.test_match(F,N[s]),T!==!1)return T;else if(this._backtrack){y=!1;continue}else return!1;else if(!this.options.flex)break}if(y){if(T=this.test_match(y,N[C]),T!==!1)return T;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var y=this.next();if(y)return y;else return this.lex()},"lex"),begin:e(function(y){this.conditionStack.push(y)},"begin"),popState:e(function(){var y=this.conditionStack.length-1;if(y>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(y){if(y=this.conditionStack.length-1-Math.abs(y||0),y>=0)return this.conditionStack[y];else return"INITIAL"},"topState"),pushState:e(function(y){this.begin(y)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(y,F,C,N){var s=N;switch(C){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,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,93,94,95,96,97,98],inclusive:!0}}};return Q}();We.lexer=pt;function De(){this.yy={}}return e(De,"Parser"),De.prototype=We,We.Parser=De,new De}();Je.parser=Je;var Sr=Je,ot=["#","+","~","-",""],ht=class{static{e(this,"ClassMember")}constructor(i,u){this.memberType=u,this.visibility="",this.classifier="",this.text="";let c=w(i,r());this.parseMember(c)}getDisplayDetails(){let i=this.visibility+lt(this.id);if(this.memberType==="method"){if(i+=`(${lt(this.parameters.trim())})`,this.returnType)i+=" : "+lt(this.returnType)}i=i.trim();let u=this.parseClassifier();return{displayText:i,cssStyle:u}}parseMember(i){let u="";if(this.memberType==="method"){let A=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(A){let E=A[1]?A[1].trim():"";if(ot.includes(E))this.visibility=E;if(this.id=A[2],this.parameters=A[3]?A[3].trim():"",u=A[4]?A[4].trim():"",this.returnType=A[5]?A[5].trim():"",u===""){let k=this.returnType.substring(this.returnType.length-1);if(/[$*]/.exec(k))u=k,this.returnType=this.returnType.substring(0,this.returnType.length-1)}}}else{let o=i.length,A=i.substring(0,1),E=i.substring(o-1);if(ot.includes(A))this.visibility=A;if(/[$*]/.exec(E))u=E;this.id=i.substring(this.visibility===""?0:1,u===""?o:o-1)}this.classifier=u,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let c=`${this.visibility?"\\"+this.visibility:""}${lt(this.id)}${this.memberType==="method"?`(${lt(this.parameters)})${this.returnType?" : "+lt(this.returnType):""}`:""}`;if(this.text=c.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<"))this.text=this.text.replace("\\<","~")}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},Se="classId-",dt=0,q=e((i)=>l.sanitizeText(i,r()),"sanitizeText"),Er=class i{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=e((u)=>{let c=It();n(u).select("svg").selectAll("g").filter(function(){return n(this).attr("title")!==null}).on("mouseover",(E)=>{let k=n(E.currentTarget),D=k.attr("title");if(!D)return;let S=E.currentTarget.getBoundingClientRect();c.transition().duration(200).style("opacity",".9"),c.html(V.sanitize(D)).style("left",`${window.scrollX+S.left+S.width/2}px`).style("top",`${window.scrollY+S.bottom+4}px`),k.classed("hover",!0)}).on("mouseout",(E)=>{c.transition().duration(500).style("opacity",0),n(E.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=f,this.getAccTitle=p,this.setAccDescription=m,this.getAccDescription=g,this.setDiagramTitle=b,this.getDiagramTitle=v,this.getConfig=e(()=>r().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{e(this,"ClassDB")}splitClassNameAndType(u){let c=l.sanitizeText(u,r()),o="",A=c;if(c.indexOf("~")>0){let E=c.split("~");A=q(E[0]),o=q(E[1])}return{className:A,type:o}}setClassLabel(u,c){let o=l.sanitizeText(u,r());if(c)c=q(c);let{className:A}=this.splitClassNameAndType(o);this.classes.get(A).label=c,this.classes.get(A).text=`${c}${this.classes.get(A).type?`<${this.classes.get(A).type}>`:""}`}addClass(u){let c=l.sanitizeText(u,r()),{className:o,type:A}=this.splitClassNameAndType(c);if(this.classes.has(o))return;let E=l.sanitizeText(o,r());this.classes.set(E,{id:E,type:A,label:E,text:`${E}${A?`<${A}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Se+E+"-"+dt}),dt++}addInterface(u,c){let o={id:`interface${this.interfaces.length}`,label:u,classId:c};this.interfaces.push(o)}setDiagramId(u){this.diagramId=u}lookUpDomId(u){let c=l.sanitizeText(u,r());if(this.classes.has(c)){let o=this.classes.get(c).domId;return this.diagramId?`${this.diagramId}-${o}`:o}throw Error("Class not found: "+c)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",d()}getClass(u){return this.classes.get(u)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(u){let c=typeof u==="number"?`note${u}`:u;return this.notes.get(c)}getNotes(){return this.notes}addRelation(u){t.debug("Adding relation: "+JSON.stringify(u));let c=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];if(u.relation.type1===this.relationType.LOLLIPOP&&!c.includes(u.relation.type2))this.addClass(u.id2),this.addInterface(u.id1,u.id2),u.id1=`interface${this.interfaces.length-1}`;else if(u.relation.type2===this.relationType.LOLLIPOP&&!c.includes(u.relation.type1))this.addClass(u.id1),this.addInterface(u.id2,u.id1),u.id2=`interface${this.interfaces.length-1}`;else this.addClass(u.id1),this.addClass(u.id2);u.id1=this.splitClassNameAndType(u.id1).className,u.id2=this.splitClassNameAndType(u.id2).className,u.relationTitle1=l.sanitizeText(u.relationTitle1.trim(),r()),u.relationTitle2=l.sanitizeText(u.relationTitle2.trim(),r()),this.relations.push(u)}addAnnotation(u,c){let o=this.splitClassNameAndType(u).className;this.classes.get(o).annotations.push(c)}addMember(u,c){this.addClass(u);let o=this.splitClassNameAndType(u).className,A=this.classes.get(o);if(typeof c==="string"){let E=c.trim();if(E.startsWith("<<")&&E.endsWith(">>"))A.annotations.push(q(E.substring(2,E.length-2)));else if(E.indexOf(")")>0)A.methods.push(new ht(E,"method"));else if(E)A.members.push(new ht(E,"attribute"))}}addMembers(u,c){if(Array.isArray(c))c.reverse(),c.forEach((o)=>this.addMember(u,o))}addNote(u,c){let o=this.notes.size,A={id:`note${o}`,class:c,text:u,index:o};return this.notes.set(A.id,A),A.id}cleanupLabel(u){if(u.startsWith(":"))u=u.substring(1);return q(u.trim())}setCssClass(u,c){u.split(",").forEach((o)=>{let A=o;if(/\d/.exec(o[0]))A=Se+A;A=this.splitClassNameAndType(A).className;let E=this.classes.get(A);if(E)E.cssClasses+=" "+c})}defineClass(u,c){for(let o of u){let A=this.styleClasses.get(o);if(A===void 0)A={id:o,styles:[],textStyles:[]},this.styleClasses.set(o,A);if(c)c.forEach((E)=>{if(/color/.exec(E)){let k=E.replace("fill","bgFill");A.textStyles.push(k)}A.styles.push(E)});this.classes.forEach((E)=>{if(E.cssClasses.includes(o))E.styles.push(...c.flatMap((k)=>k.split(",")))})}}setTooltip(u,c){u.split(",").forEach((o)=>{if(c!==void 0){let A=this.splitClassNameAndType(o).className,E=this.classes.get(A);if(E)E.tooltip=q(c)}})}getTooltip(u,c){if(c&&this.namespaces.has(c))return this.namespaces.get(c).classes.get(u).tooltip;return this.classes.get(u).tooltip}setLink(u,c,o){let A=r();u.split(",").forEach((E)=>{let k=E;if(/\d/.exec(E[0]))k=Se+k;k=this.splitClassNameAndType(k).className;let D=this.classes.get(k);if(D)if(D.link=h.formatUrl(c,A),A.securityLevel==="sandbox")D.linkTarget="_top";else if(typeof o==="string")D.linkTarget=q(o);else D.linkTarget="_blank"}),this.setCssClass(u,"clickable")}setClickEvent(u,c,o){u.split(",").forEach((A)=>{this.setClickFunc(A,c,o);let E=this.splitClassNameAndType(A).className,k=this.classes.get(E);if(k)k.haveCallback=!0}),this.setCssClass(u,"clickable")}setClickFunc(u,c,o){let A=l.sanitizeText(u,r());if(r().securityLevel!=="loose")return;if(c===void 0)return;let k=this.splitClassNameAndType(A).className;if(this.classes.has(k)){let D=[];if(typeof o==="string"){D=o.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let S=0;S<D.length;S++){let _=D[S].trim();if(_.startsWith('"')&&_.endsWith('"'))_=_.substr(1,_.length-2);D[S]=_}}if(D.length===0)D.push(k);this.functions.push(()=>{let S=this.lookUpDomId(k),_=document.querySelector(`[id="${S}"]`);if(_!==null)_.addEventListener("click",()=>{h.runFunc(c,...D)},!1)})}}bindFunctions(u){this.functions.forEach((c)=>{c(u)})}escapeHtml(u){return u.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(u){this.direction=u}static resolveQualifiedId(u,c){let o=c.at(-1);return o?`${o}.${u}`:u}static getAncestorIds(u){let c=u.split("."),o=Array(c.length);o[0]=c[0];for(let A=1;A<c.length;A++)o[A]=`${o[A-1]}.${c[A]}`;return o}createNamespaceNode(u,c,o,A=!1){return{id:u,label:c,classes:new Map,notes:new Map,children:new Map,domId:Se+u+"-"+this.namespaceCounter++,parent:o,explicit:A}}linkParentChild(u,c){let o=this.namespaces.get(u),A=this.namespaces.get(c);if(!o||!A)return;if(!o.children.has(c))o.children.set(c,A);A.parent??=u}addNamespace(u,c){let o=i.resolveQualifiedId(u,this.namespaceStack);if(this.namespaceStack.push(o),this.namespaces.has(o)){let k=this.namespaces.get(o);if(k.explicit=!0,c)k.label=c;return o}let A=o.split("."),E=i.getAncestorIds(o);for(let k=0;k<E.length;k++){let D=E[k],S=k>0?E[k-1]:void 0,_=k===E.length-1,U=_&&c?c:A[k];if(!this.namespaces.has(D))this.namespaces.set(D,this.createNamespaceNode(D,U,S,_));else if(_)this.namespaces.get(D).explicit=!0;if(S)this.linkParentChild(S,D)}return o}popNamespace(){this.namespaceStack.pop()}getNamespace(u){return this.namespaces.get(u)}getNamespaces(){return this.namespaces}addClassesToNamespace(u,c,o){if(!this.namespaces.has(u))return;for(let A of c){let{className:E}=this.splitClassNameAndType(A),k=this.getClass(E);k.parent=u,this.namespaces.get(u).classes.set(E,k)}for(let A of o){let E=this.getNote(A);E.parent=u,this.namespaces.get(u).notes.set(A,E)}}setCssStyle(u,c){let o=this.classes.get(u);if(!c||!o)return;for(let A of c)if(A.includes(","))o.styles.push(...A.split(","));else o.styles.push(A)}getArrowMarker(u){let c;switch(u){case 0:c="aggregation";break;case 1:c="extension";break;case 2:c="composition";break;case 3:c="dependency";break;case 4:c="lollipop";break;default:c="none"}return c}resolveExplicitAncestor(u){let c=u;while(c){let o=this.namespaces.get(c);if(!o)return;if(o.explicit)return c;c=o.parent}return}getData(){let u=[],c=[],o=r(),A=o.class?.hierarchicalNamespaces??!0;for(let k of this.namespaces.values()){if(!A&&!k.explicit)continue;let D={id:k.id,label:A?k.label:k.id,isGroup:!0,padding:o.class.padding??16,shape:"rect",cssStyles:[],look:o.look,parentId:A?k.parent:void 0};u.push(D)}for(let k of this.classes.values()){let D=A?k.parent:this.resolveExplicitAncestor(k.parent),S={...k,type:void 0,isGroup:!1,parentId:D,look:o.look};u.push(S)}for(let k of this.notes.values()){let D=A?k.parent:this.resolveExplicitAncestor(k.parent),S={id:k.id,label:k.text,isGroup:!1,shape:"note",padding:o.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${o.themeVariables.noteBkgColor}`,`stroke: ${o.themeVariables.noteBorderColor}`],look:o.look,parentId:D,labelType:"markdown"};u.push(S);let _=this.classes.get(k.class)?.id;if(_){let U={id:`edgeNote${k.index}`,start:k.id,end:_,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:o.look};c.push(U)}}for(let k of this.interfaces){let D={id:k.id,label:k.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:o.look};u.push(D)}let E=0;for(let k of this.relations){E++;let D={id:Me(k.id1,k.id2,{prefix:"id",counter:E}),start:k.id1,end:k.id2,type:"normal",label:k.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(k.relation.type1),arrowTypeEnd:this.getArrowMarker(k.relation.type2),startLabelRight:k.relationTitle1==="none"?"":k.relationTitle1,endLabelLeft:k.relationTitle2==="none"?"":k.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:k.style||"",pattern:k.relation.lineType==1?"dashed":"solid",look:o.look,labelType:"markdown"};c.push(D)}return{nodes:u,edges:c,other:{},config:o,direction:this.getDirection()}}},mt=e((i)=>`g.classGroup text {
|
|
7
|
+
fill: ${i.nodeBorder||i.classText};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-family: ${i.fontFamily};
|
|
10
|
+
font-size: 10px;
|
|
11
|
+
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: bolder;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cluster-label text {
|
|
19
|
+
fill: ${i.titleColor};
|
|
20
|
+
}
|
|
21
|
+
.cluster-label span {
|
|
22
|
+
color: ${i.titleColor};
|
|
23
|
+
}
|
|
24
|
+
.cluster-label span p {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cluster rect {
|
|
29
|
+
fill: ${i.clusterBkg};
|
|
30
|
+
stroke: ${i.clusterBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cluster text {
|
|
35
|
+
fill: ${i.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cluster span {
|
|
39
|
+
color: ${i.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nodeLabel, .edgeLabel {
|
|
43
|
+
color: ${i.classText};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
47
|
+
color: ${i.noteTextColor};
|
|
48
|
+
}
|
|
49
|
+
.edgeLabel .label rect {
|
|
50
|
+
fill: ${i.mainBkg};
|
|
51
|
+
}
|
|
52
|
+
.label text {
|
|
53
|
+
fill: ${i.classText};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.labelBkg {
|
|
57
|
+
background: ${i.mainBkg};
|
|
58
|
+
}
|
|
59
|
+
.edgeLabel .label span {
|
|
60
|
+
background: ${i.mainBkg};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.classTitle {
|
|
64
|
+
font-weight: bolder;
|
|
65
|
+
}
|
|
66
|
+
.node rect,
|
|
67
|
+
.node circle,
|
|
68
|
+
.node ellipse,
|
|
69
|
+
.node polygon,
|
|
70
|
+
.node path {
|
|
71
|
+
fill: ${i.mainBkg};
|
|
72
|
+
stroke: ${i.nodeBorder};
|
|
73
|
+
stroke-width: ${i.strokeWidth};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
.divider {
|
|
78
|
+
stroke: ${i.nodeBorder};
|
|
79
|
+
stroke-width: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
g.clickable {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
g.classGroup rect {
|
|
87
|
+
fill: ${i.mainBkg};
|
|
88
|
+
stroke: ${i.nodeBorder};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
g.classGroup line {
|
|
92
|
+
stroke: ${i.nodeBorder};
|
|
93
|
+
stroke-width: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.classLabel .box {
|
|
97
|
+
stroke: none;
|
|
98
|
+
stroke-width: 0;
|
|
99
|
+
fill: ${i.mainBkg};
|
|
100
|
+
opacity: 0.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.classLabel .label {
|
|
104
|
+
fill: ${i.nodeBorder};
|
|
105
|
+
font-size: 10px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.relation {
|
|
109
|
+
stroke: ${i.lineColor};
|
|
110
|
+
stroke-width: ${i.strokeWidth};
|
|
111
|
+
fill: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dashed-line{
|
|
115
|
+
stroke-dasharray: 3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.dotted-line{
|
|
119
|
+
stroke-dasharray: 1 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[id$="-compositionStart"], .composition {
|
|
123
|
+
fill: ${i.lineColor} !important;
|
|
124
|
+
stroke: ${i.lineColor} !important;
|
|
125
|
+
stroke-width: 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[id$="-compositionEnd"], .composition {
|
|
129
|
+
fill: ${i.lineColor} !important;
|
|
130
|
+
stroke: ${i.lineColor} !important;
|
|
131
|
+
stroke-width: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[id$="-dependencyStart"], .dependency {
|
|
135
|
+
fill: ${i.lineColor} !important;
|
|
136
|
+
stroke: ${i.lineColor} !important;
|
|
137
|
+
stroke-width: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[id$="-dependencyEnd"], .dependency {
|
|
141
|
+
fill: ${i.lineColor} !important;
|
|
142
|
+
stroke: ${i.lineColor} !important;
|
|
143
|
+
stroke-width: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[id$="-extensionStart"], .extension {
|
|
147
|
+
fill: transparent !important;
|
|
148
|
+
stroke: ${i.lineColor} !important;
|
|
149
|
+
stroke-width: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[id$="-extensionEnd"], .extension {
|
|
153
|
+
fill: transparent !important;
|
|
154
|
+
stroke: ${i.lineColor} !important;
|
|
155
|
+
stroke-width: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[id$="-aggregationStart"], .aggregation {
|
|
159
|
+
fill: transparent !important;
|
|
160
|
+
stroke: ${i.lineColor} !important;
|
|
161
|
+
stroke-width: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[id$="-aggregationEnd"], .aggregation {
|
|
165
|
+
fill: transparent !important;
|
|
166
|
+
stroke: ${i.lineColor} !important;
|
|
167
|
+
stroke-width: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[id$="-lollipopStart"], .lollipop {
|
|
171
|
+
fill: ${i.mainBkg} !important;
|
|
172
|
+
stroke: ${i.lineColor} !important;
|
|
173
|
+
stroke-width: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[id$="-lollipopEnd"], .lollipop {
|
|
177
|
+
fill: ${i.mainBkg} !important;
|
|
178
|
+
stroke: ${i.lineColor} !important;
|
|
179
|
+
stroke-width: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.edgeTerminals {
|
|
183
|
+
font-size: 11px;
|
|
184
|
+
line-height: initial;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.classTitleText {
|
|
188
|
+
text-anchor: middle;
|
|
189
|
+
font-size: 18px;
|
|
190
|
+
fill: ${i.textColor};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.edgeLabel[data-look="neo"] {
|
|
194
|
+
background-color: ${i.edgeLabelBackground};
|
|
195
|
+
p {
|
|
196
|
+
background-color: ${i.edgeLabelBackground};
|
|
197
|
+
}
|
|
198
|
+
rect {
|
|
199
|
+
opacity: 0.5;
|
|
200
|
+
background-color: ${i.edgeLabelBackground};
|
|
201
|
+
fill: ${i.edgeLabelBackground};
|
|
202
|
+
}
|
|
203
|
+
text-align: center;
|
|
204
|
+
}
|
|
205
|
+
${we()}
|
|
206
|
+
`,"getStyles"),_r=mt,gt=e((i,u="TB")=>{if(!i.doc)return u;let c=u;for(let o of i.doc)if(o.stmt==="dir")c=o.value;return c},"getDir"),Ct=e(function(i,u){return u.db.getClasses()},"getClasses"),Et=e(async function(i,u,c,o){t.info("REF0:"),t.info("Drawing class diagram (v3)",u);let{securityLevel:A,state:E,layout:k}=r();o.db.setDiagramId(u);let D=o.db.getData(),S=le(u,A);D.type=o.type,D.layoutAlgorithm=Ce(k),D.nodeSpacing=E?.nodeSpacing||50,D.rankSpacing=E?.rankSpacing||50,D.markers=["aggregation","extension","composition","dependency","lollipop"],D.diagramId=u,await fe(D,S);let _=8;h.insertTitle(S,"classDiagramTitleText",E?.titleTopMargin??25,o.db.getDiagramTitle()),J(S,_,"classDiagram",E?.useMaxWidth??!0)},"draw"),Ar={getClasses:Ct,draw:Et,getDir:gt};
|
|
207
|
+
export{Sr,Er,_r,Ar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function C(t){return Math.abs(t=Math.round(t))>=1000000000000000000000?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function g(t,r){if(!isFinite(t)||t===0)return null;var i=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"),e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function He(t){return t=g(Math.abs(t)),t?t[1]:NaN}function G(t,r){return function(i,e){var o=i.length,a=[],c=0,u=t[0],M=0;while(o>0&&u>0){if(M+u+1>e)u=Math.max(1,e-M);if(a.push(i.substring(o-=u,o+u)),(M+=u+1)>e)break;u=t[c=(c+1)%t.length]}return a.reverse().join(r)}}function I(t){return function(r){return r.replace(/[0-9]/g,function(i){return t[+i]})}}var tt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bt(t){if(!(r=tt.exec(t)))throw Error("invalid format: "+t);var r;return new E({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}bt.prototype=E.prototype;function E(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}E.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function R(t){t:for(var r=t.length,i=1,e=-1,o;i<r;++i)switch(t[i]){case".":e=o=i;break;case"0":if(e===0)e=i;o=i;break;default:if(!+t[i])break t;if(e>0)e=0;break}return e>0?t.slice(0,e)+t.slice(o+1):t}var P;function X(t,r){var i=g(t,r);if(!i)return P=void 0,t.toPrecision(r);var e=i[0],o=i[1],a=o-(P=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=e.length;return a===c?e:a>c?e+Array(a-c+1).join("0"):a>0?e.slice(0,a)+"."+e.slice(a):"0."+Array(1-a).join("0")+g(t,Math.max(0,r+a-1))[0]}function F(t,r){var i=g(t,r);if(!i)return t+"";var e=i[0],o=i[1];return o<0?"0."+Array(-o).join("0")+e:e.length>o+1?e.slice(0,o+1)+"."+e.slice(o+1):e+Array(o-e.length+2).join("0")}var O={"%":(t,r)=>(t*100).toFixed(r),b:(t)=>Math.round(t).toString(2),c:(t)=>t+"",d:C,e:(t,r)=>t.toExponential(r),f:(t,r)=>t.toFixed(r),g:(t,r)=>t.toPrecision(r),o:(t)=>Math.round(t).toString(8),p:(t,r)=>F(t*100,r),r:F,s:X,X:(t)=>Math.round(t).toString(16).toUpperCase(),x:(t)=>Math.round(t).toString(16)};function N(t){return t}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U(t){var r=t.grouping===void 0||t.thousands===void 0?N:G(K.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",e=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?N:I(K.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"−":t.minus+"",M=t.nan===void 0?"NaN":t.nan+"";function Z(f,p){f=bt(f);var y=f.fill,w=f.align,s=f.sign,S=f.symbol,k=f.zero,L=f.width,T=f.comma,x=f.precision,q=f.trim,m=f.type;if(m==="n")T=!0,m="g";else if(!O[m])x===void 0&&(x=12),q=!0,m="g";if(k||y==="0"&&w==="=")k=!0,y="0",w="=";var W=(p&&p.prefix!==void 0?p.prefix:"")+(S==="$"?i:S==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),_=(S==="$"?e:/[%p]/.test(m)?c:"")+(p&&p.suffix!==void 0?p.suffix:""),B=O[m],v=/[defgprs%]/.test(m);x=x===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function H(n){var l=W,d=_,b,J,z;if(m==="c")d=B(n)+d,n="";else{n=+n;var A=n<0||1/n<0;if(n=isNaN(n)?M:B(Math.abs(n),x),q)n=R(n);if(A&&+n===0&&s!=="+")A=!1;if(l=(A?s==="("?s:u:s==="-"||s==="("?"":s)+l,d=(m==="s"&&!isNaN(n)&&P!==void 0?Q[8+P/3]:"")+d+(A&&s==="("?")":""),v){b=-1,J=n.length;while(++b<J)if(z=n.charCodeAt(b),48>z||z>57){d=(z===46?o+n.slice(b+1):n.slice(b))+d,n=n.slice(0,b);break}}}if(T&&!k)n=r(n,1/0);var j=l.length+n.length+d.length,h=j<L?Array(L-j+1).join(y):"";if(T&&k)n=r(h+n,h.length?L-d.length:1/0),h="";switch(w){case"<":n=l+n+d+h;break;case"=":n=l+h+n+d;break;case"^":n=h.slice(0,j=h.length>>1)+l+n+d+h.slice(j);break;default:n=h+l+n+d;break}return a(n)}return H.toString=function(){return f+""},H}function V(f,p){var y=Math.max(-8,Math.min(8,Math.floor(He(p)/3)))*3,w=Math.pow(10,-y),s=Z((f=bt(f),f.type="f",f),{suffix:Q[8+y/3]});return function(S){return s(w*S)}}return{format:Z,formatPrefix:V}}var D,We,un;Y({thousands:",",grouping:[3],currency:["$",""]});function Y(t){return D=U(t),We=D.format,un=D.formatPrefix,D}export{He,bt,We,un};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import{e,t,q,Gr,l,d,f,p,m,g,b,v,r,gr,Wr,n,Ze,Je,h,Me,_i,fe,Ce}from"./index-nwsya6dj.js";import{V}from"./index-v119nznk.js";import{It}from"./index-y9ma6azy.js";import{we}from"./index-9022d1n9.js";import{Rt}from"./index-frvta4tm.js";import{le}from"./index-h9ycj8n2.js";import{J}from"./index-nz8qbd1p.js";var dt="flowchart-",pt=class{constructor(){this.vertexCounter=0,this.config=r(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=f,this.setAccDescription=m,this.setDiagramTitle=b,this.getAccTitle=p,this.getAccDescription=g,this.getDiagramTitle=v,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(s){return l.sanitizeText(s,this.config)}sanitizeNodeLabelType(s){switch(s){case"markdown":case"string":case"text":return s;default:return"markdown"}}setDiagramId(s){this.diagramId=s}lookUpDomId(s){for(let u of this.vertices.values())if(u.id===s)return this.diagramId?`${this.diagramId}-${u.domId}`:u.domId;return this.diagramId?`${this.diagramId}-${s}`:s}addVertex(s,u,o,c,D,S,C={},_){if(!s||s.trim().length===0)return;let k;if(_!==void 0){let B;if(!_.includes(`
|
|
2
|
+
`))B=`{
|
|
3
|
+
`+_+`
|
|
4
|
+
}`;else B=_+`
|
|
5
|
+
`;k=Je(B,{schema:Ze})}let F=this.edges.find((B)=>B.id===s);if(F){let B=k;if(B?.animate!==void 0)F.animate=B.animate;if(B?.animation!==void 0)F.animation=B.animation;if(B?.curve!==void 0)F.interpolate=B.curve;return}let z,x=this.vertices.get(s);if(x===void 0){if(u===void 0&&o===void 0&&c!==void 0&&c!==null)t.warn(`Style applied to unknown node "${s}". This may indicate a typo. The node will be created automatically.`);x={id:s,labelType:"text",domId:dt+s+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(s,x)}if(this.vertexCounter++,u!==void 0){if(this.config=r(),z=this.sanitizeText(u.text.trim()),x.labelType=u.type,z.startsWith('"')&&z.endsWith('"'))z=z.substring(1,z.length-1);x.text=z}else if(x.text===void 0)x.text=s;if(o!==void 0)x.type=o;if(c!==void 0&&c!==null)c.forEach((B)=>{x.styles.push(B)});if(D!==void 0&&D!==null)D.forEach((B)=>{x.classes.push(B)});if(S!==void 0)x.dir=S;if(x.props===void 0)x.props=C;else if(C!==void 0)Object.assign(x.props,C);if(k!==void 0){if(k.shape){if(k.shape!==k.shape.toLowerCase()||k.shape.includes("_"))throw Error(`No such shape: ${k.shape}. Shape names should be lowercase.`);else if(!_i(k.shape))throw Error(`No such shape: ${k.shape}.`);x.type=k?.shape}if(k?.label)x.text=k?.label,x.labelType=this.sanitizeNodeLabelType(k?.labelType);if(k?.icon){if(x.icon=k?.icon,!k.label?.trim()&&x.text===s)x.text=""}if(k?.form)x.form=k?.form;if(k?.pos)x.pos=k?.pos;if(k?.img){if(x.img=k?.img,!k.label?.trim()&&x.text===s)x.text=""}if(k?.constraint)x.constraint=k.constraint;if(k.w)x.assetWidth=Number(k.w);if(k.h)x.assetHeight=Number(k.h)}}addSingleLink(s,u,o,c){let C={start:s,end:u,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};t.info("abc78 Got edge...",C);let _=o.text;if(_!==void 0){if(C.text=this.sanitizeText(_.text.trim()),C.text.startsWith('"')&&C.text.endsWith('"'))C.text=C.text.substring(1,C.text.length-1);C.labelType=this.sanitizeNodeLabelType(_.type)}if(o!==void 0)C.type=o.type,C.stroke=o.stroke,C.length=o.length>10?10:o.length;if(c&&!this.edges.some((k)=>k.id===c))C.id=c,C.isUserDefinedId=!0;else{let k=this.edges.filter((F)=>F.start===C.start&&F.end===C.end);if(k.length===0)C.id=Me(C.start,C.end,{counter:0,prefix:"L"});else C.id=Me(C.start,C.end,{counter:k.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))t.info("Pushing edge..."),this.edges.push(C);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
6
|
+
|
|
7
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(s){return s!==null&&typeof s==="object"&&"id"in s&&typeof s.id==="string"}addLink(s,u,o){let c=this.isLinkData(o)?o.id.replace("@",""):void 0;t.info("addLink",s,u,c);for(let D of s)for(let S of u){let C=D===s[s.length-1],_=S===u[0];if(C&&_)this.addSingleLink(D,S,o,c);else this.addSingleLink(D,S,o,void 0)}}updateLinkInterpolate(s,u){s.forEach((o)=>{if(o==="default")this.edges.defaultInterpolate=u;else this.edges[o].interpolate=u})}updateLink(s,u){s.forEach((o)=>{if(typeof o==="number"&&o>=this.edges.length)throw Error(`The index ${o} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(o==="default")this.edges.defaultStyle=u;else if(this.edges[o].style=u,(this.edges[o]?.style?.length??0)>0&&!this.edges[o]?.style?.some((c)=>c?.startsWith("fill")))this.edges[o]?.style?.push("fill:none")})}addClass(s,u){let o=u.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s.split(",").forEach((c)=>{let D=this.classes.get(c);if(D===void 0)D={id:c,styles:[],textStyles:[]},this.classes.set(c,D);if(o!==void 0&&o!==null)o.forEach((S)=>{if(/color/.exec(S)){let C=S.replace("fill","bgFill");D.textStyles.push(C)}D.styles.push(S)})})}setDirection(s){if(this.direction=s.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(s,u){for(let o of s.split(",")){let c=this.vertices.get(o);if(c)c.classes.push(u);let D=this.edges.find((C)=>C.id===o);if(D)D.classes.push(u);let S=this.subGraphLookup.get(o);if(S)S.classes.push(u)}}setTooltip(s,u){if(u===void 0)return;u=this.sanitizeText(u);for(let o of s.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(o):o,u)}setClickFun(s,u,o){if(r().securityLevel!=="loose")return;if(u===void 0)return;let c=[];if(typeof o==="string"){c=o.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let S=0;S<c.length;S++){let C=c[S].trim();if(C.startsWith('"')&&C.endsWith('"'))C=C.substr(1,C.length-2);c[S]=C}}if(c.length===0)c.push(s);let D=this.vertices.get(s);if(D)D.haveCallback=!0,this.funs.push(()=>{let S=this.lookUpDomId(s),C=document.querySelector(`[id="${S}"]`);if(C!==null)C.addEventListener("click",()=>{h.runFunc(u,...c)},!1)})}setLink(s,u,o){s.split(",").forEach((c)=>{let D=this.vertices.get(c);if(D!==void 0)D.link=h.formatUrl(u,this.config),D.linkTarget=o}),this.setClass(s,"clickable")}getTooltip(s){return this.tooltips.get(s)}setClickEvent(s,u,o){s.split(",").forEach((c)=>{this.setClickFun(c,u,o)}),this.setClass(s,"clickable")}bindFunctions(s){this.funs.forEach((u)=>{u(s)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(s){let u=It();n(s).select("svg").selectAll("g.node").on("mouseover",(D)=>{let S=n(D.currentTarget),C=S.attr("title");if(C===null)return;let _=D.currentTarget?.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(S.attr("title")).style("left",window.scrollX+_.left+(_.right-_.left)/2+"px").style("top",window.scrollY+_.bottom+"px"),u.html(V.sanitize(C)),S.classed("hover",!0)}).on("mouseout",(D)=>{u.transition().duration(500).style("opacity",0),n(D.currentTarget).classed("hover",!1)})}clear(s="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=s,this.config=r(),d()}setGen(s){this.version=s||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(s,u,o){let c=s.text.trim(),D=o.text;if(s===o&&/\s/.exec(o.text))c=void 0;let C=e((oe)=>{let M={boolean:{},number:{},string:{}},U=[],Ie;return{nodeList:oe.filter(function(ue){let Be=typeof ue;if(ue.stmt&&ue.stmt==="dir")return Ie=ue.value,!1;if(ue.trim()==="")return!1;if(Be in M)return M[Be].hasOwnProperty(ue)?!1:M[Be][ue]=!0;else return U.includes(ue)?!1:U.push(ue)}),dir:Ie}},"uniq")(u.flat()),{nodeList:_,dir:k}=C,F=k!==void 0,z=r().flowchart??{},x=k??(z.inheritDir?this.getDirection()??r().direction??void 0:void 0);if(this.version==="gen-1")for(let oe=0;oe<_.length;oe++)_[oe]=this.lookUpDomId(_[oe]);c=c??"subGraph"+this.subCount,D=D||"",D=this.sanitizeText(D),this.subCount=this.subCount+1;let B={id:c,nodes:_,title:D.trim(),classes:[],dir:x,hasExplicitDir:F,labelType:this.sanitizeNodeLabelType(o?.type)};return t.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes,this.subGraphs.push(B),this.subGraphLookup.set(c,B),c}getPosForId(s){for(let[u,o]of this.subGraphs.entries())if(o.id===s)return u;return-1}indexNodes2(s,u){let o=this.subGraphs[u].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=u,this.subGraphs[u].id===s)return{result:!0,count:0};let c=0,D=1;while(c<o.length){let S=this.getPosForId(o[c]);if(S>=0){let C=this.indexNodes2(s,S);if(C.result)return{result:!0,count:D+C.count};else D=D+C.count}c=c+1}return{result:!1,count:D}}getDepthFirstPos(s){return this.posCrossRef[s]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(s){let u=s.trim(),o="arrow_open";switch(u[0]){case"<":o="arrow_point",u=u.slice(1);break;case"x":o="arrow_cross",u=u.slice(1);break;case"o":o="arrow_circle",u=u.slice(1);break}let c="normal";if(u.includes("="))c="thick";if(u.includes("."))c="dotted";return{type:o,stroke:c}}countChar(s,u){let o=u.length,c=0;for(let D=0;D<o;++D)if(u[D]===s)++c;return c}destructEndLink(s){let u=s.trim(),o=u.slice(0,-1),c="arrow_open";switch(u.slice(-1)){case"x":if(c="arrow_cross",u.startsWith("x"))c="double_"+c,o=o.slice(1);break;case">":if(c="arrow_point",u.startsWith("<"))c="double_"+c,o=o.slice(1);break;case"o":if(c="arrow_circle",u.startsWith("o"))c="double_"+c,o=o.slice(1);break}let D="normal",S=o.length-1;if(o.startsWith("="))D="thick";if(o.startsWith("~"))D="invisible";let C=this.countChar(".",o);if(C)D="dotted",S=C;return{type:c,stroke:D,length:S}}destructLink(s,u){let o=this.destructEndLink(s),c;if(u){if(c=this.destructStartLink(u),c.stroke!==o.stroke)return{type:"INVALID",stroke:"INVALID"};if(c.type==="arrow_open")c.type=o.type;else{if(c.type!==o.type)return{type:"INVALID",stroke:"INVALID"};c.type="double_"+c.type}if(c.type==="double_arrow")c.type="double_arrow_point";return c.length=o.length,c}return o}exists(s,u){for(let o of s)if(o.nodes.includes(u))return!0;return!1}makeUniq(s,u){let o=[];return s.nodes.forEach((c,D)=>{if(!this.exists(u,c))o.push(s.nodes[D])}),{nodes:o}}getTypeFromVertex(s){if(s.img)return"imageSquare";if(s.icon){if(s.form==="circle")return"iconCircle";if(s.form==="square")return"iconSquare";if(s.form==="rounded")return"iconRounded";return"icon"}switch(s.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return s.type}}findNode(s,u){return s.find((o)=>o.id===u)}destructEdgeType(s){let u="none",o="arrow_point";switch(s){case"arrow_point":case"arrow_circle":case"arrow_cross":o=s;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":u=s.replace("double_",""),o=u;break}return{arrowTypeStart:u,arrowTypeEnd:o}}addNodeFromVertex(s,u,o,c,D,S){let C=o.get(s.id),_=c.get(s.id)??!1,k=this.findNode(u,s.id);if(k)k.cssStyles=s.styles,k.cssCompiledStyles=this.getCompiledStyles(s.classes),k.cssClasses=s.classes.join(" ");else{let F={id:s.id,label:s.text,labelType:s.labelType,labelStyle:"",parentId:C,padding:D.flowchart?.padding||8,cssStyles:s.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...s.classes]),cssClasses:"default "+s.classes.join(" "),dir:s.dir,domId:s.domId,look:S,link:s.link,linkTarget:s.linkTarget,tooltip:this.getTooltip(s.id),icon:s.icon,pos:s.pos,img:s.img,assetWidth:s.assetWidth,assetHeight:s.assetHeight,constraint:s.constraint};if(_)u.push({...F,isGroup:!0,shape:"rect"});else u.push({...F,isGroup:!1,shape:this.getTypeFromVertex(s)})}}getCompiledStyles(s){let u=[];for(let o of s){let c=this.classes.get(o);if(c?.styles)u=[...u,...c.styles??[]].map((D)=>D.trim());if(c?.textStyles)u=[...u,...c.textStyles??[]].map((D)=>D.trim())}return u}getData(){let s=r(),u=[],o=[],c=this.getSubGraphs(),D=new Map,S=new Map;for(let k=c.length-1;k>=0;k--){let F=c[k];if(F.nodes.length>0)S.set(F.id,!0);for(let z of F.nodes)D.set(z,F.id)}for(let k=c.length-1;k>=0;k--){let F=c[k];u.push({id:F.id,label:F.title,labelStyle:"",labelType:F.labelType,parentId:D.get(F.id),padding:8,cssCompiledStyles:this.getCompiledStyles(F.classes),cssClasses:F.classes.join(" "),shape:"rect",dir:F.dir==="TD"?"TB":F.dir,explicitDir:F.hasExplicitDir,isGroup:!0,look:s.look})}this.getVertices().forEach((k)=>{this.addNodeFromVertex(k,u,D,S,s,s.look||"classic")});let _=this.getEdges();return _.forEach((k,F)=>{let{arrowTypeStart:z,arrowTypeEnd:x}=this.destructEdgeType(k.type),B=[..._.defaultStyle??[]];if(k.style)B.push(...k.style);let oe={id:Me(k.start,k.end,{counter:F,prefix:"L"},k.id),isUserDefinedId:k.isUserDefinedId,start:k.start,end:k.end,type:k.type??"normal",label:k.text,labelType:k.labelType,labelpos:"c",thickness:k.stroke,minlen:k.length,classes:k?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:k?.stroke==="invisible"||k?.type==="arrow_open"?"none":z,arrowTypeEnd:k?.stroke==="invisible"||k?.type==="arrow_open"?"none":x,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(k.classes),labelStyle:B,style:B,pattern:k.stroke,look:s.look,animate:k.animate,animation:k.animation,curve:k.interpolate||this.edges.defaultInterpolate||s.flowchart?.curve};o.push(oe)}),{nodes:u,edges:o,other:{},config:s}}defaultConfig(){return Wr.flowchart}},ft=e(function(s,u){return u.db.getClasses()},"getClasses"),bt=e(async function(s,u,o,c,D){t.info("REF0:"),t.info("Drawing state diagram (v2)",u);let{securityLevel:S,flowchart:C,layout:_}=r();c.db.setDiagramId(u),t.debug("Before getData: ");let k=c.db.getData();t.debug("Data: ",k);let F=le(u,S),z=c.db.getDirection();if(k.type=c.type,k.layoutAlgorithm=Ce(_),k.layoutAlgorithm==="dagre"&&_==="elk")t.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.");k.direction=z,k.nodeSpacing=C?.nodeSpacing||50,k.rankSpacing=C?.rankSpacing||50,k.markers=["point","circle","cross"],k.diagramId=u,t.debug("REF1:",k),await fe(k,F,D);let x=k.config.flowchart?.diagramPadding??8;h.insertTitle(F,"flowchartTitleText",C?.titleTopMargin||0,c.db.getDiagramTitle()),J(F,x,"flowchart",C?.useMaxWidth||!1)},"draw"),kt={getClasses:ft,draw:bt},T1=function(){var s=e(function(Ve,E,T,y){for(T=T||{},y=Ve.length;y--;T[Ve[y]]=E);return T},"o"),u=[1,4],o=[1,3],c=[1,5],D=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],S=[2,2],C=[1,13],_=[1,14],k=[1,15],F=[1,16],z=[1,23],x=[1,25],B=[1,26],oe=[1,27],M=[1,50],U=[1,49],Ie=[1,29],r1=[1,30],ue=[1,31],Be=[1,32],a1=[1,33],K=[1,45],j=[1,47],Y=[1,43],H=[1,48],X=[1,44],Q=[1,51],Z=[1,46],ee=[1,52],te=[1,53],n1=[1,34],u1=[1,35],o1=[1,36],l1=[1,37],c1=[1,38],ve=[1,58],N=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ke=[1,62],ge=[1,61],Ae=[1,63],Oe=[8,9,11,75,77,78],S1=[1,79],Ue=[1,92],ze=[1,97],We=[1,96],Ke=[1,93],je=[1,89],Ye=[1,95],He=[1,91],qe=[1,98],Xe=[1,94],Qe=[1,99],$e=[1,90],Re=[8,9,10,11,40,75,77,78],ie=[8,9,10,11,40,46,75,77,78],ce=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],y1=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],e1=[44,60,89,102,105,106,109,111,114,115,116],x1=[1,122],F1=[1,123],h1=[1,125],d1=[1,124],_1=[44,60,62,74,89,102,105,106,109,111,114,115,116],B1=[1,134],v1=[1,148],L1=[1,149],V1=[1,150],I1=[1,151],w1=[1,136],R1=[1,138],N1=[1,142],G1=[1,143],P1=[1,144],O1=[1,145],M1=[1,146],U1=[1,147],z1=[1,152],W1=[1,153],K1=[1,132],j1=[1,133],Y1=[1,140],H1=[1,135],q1=[1,139],X1=[1,137],k1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Q1=[1,155],J1=[1,157],O=[8,9,11],he=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],L=[1,177],re=[1,173],ae=[1,174],I=[1,178],w=[1,175],R=[1,176],t1=[77,116,119],G=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Z1=[10,106],Le=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],me=[1,248],De=[1,246],Ee=[1,250],Te=[1,244],Se=[1,245],ye=[1,247],xe=[1,249],Fe=[1,251],s1=[1,269],$1=[8,9,11,106],be=[8,9,10,11,60,84,105,106,109,110,111,112],g1={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(E,T,y,A,P,i,Ne){var a=i.length-1;switch(P){case 2:this.$=[];break;case 3:if(!Array.isArray(i[a])||i[a].length>0)i[a-1].push(i[a]);this.$=i[a-1];break;case 4:case 183:this.$=i[a];break;case 11:A.setDirection("TB"),this.$="TB";break;case 12:A.setDirection(i[a-1]),this.$=i[a-1];break;case 27:this.$=i[a-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=A.addSubGraph(i[a-6],i[a-1],i[a-4]);break;case 34:this.$=A.addSubGraph(i[a-3],i[a-1],i[a-3]);break;case 35:this.$=A.addSubGraph(void 0,i[a-1],void 0);break;case 37:this.$=i[a].trim(),A.setAccTitle(this.$);break;case 38:case 39:this.$=i[a].trim(),A.setAccDescription(this.$);break;case 43:this.$=i[a-1]+i[a];break;case 44:this.$=i[a];break;case 45:A.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),A.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 46:A.addLink(i[a-2].stmt,i[a],i[a-1]),this.$={stmt:i[a],nodes:i[a].concat(i[a-2].nodes)};break;case 47:A.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 48:this.$={stmt:i[a-1],nodes:i[a-1]};break;case 49:A.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),this.$={stmt:i[a-1],nodes:i[a-1],shapeData:i[a]};break;case 50:this.$={stmt:i[a],nodes:i[a]};break;case 51:this.$=[i[a]];break;case 52:A.addVertex(i[a-5][i[a-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a-4]),this.$=i[a-5].concat(i[a]);break;case 53:this.$=i[a-4].concat(i[a]);break;case 54:this.$=i[a];break;case 55:this.$=i[a-2],A.setClass(i[a-2],i[a]);break;case 56:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"square");break;case 57:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"doublecircle");break;case 58:this.$=i[a-5],A.addVertex(i[a-5],i[a-2],"circle");break;case 59:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"ellipse");break;case 60:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"stadium");break;case 61:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"subroutine");break;case 62:this.$=i[a-7],A.addVertex(i[a-7],i[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[a-5],i[a-3]]]));break;case 63:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"cylinder");break;case 64:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"round");break;case 65:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"diamond");break;case 66:this.$=i[a-5],A.addVertex(i[a-5],i[a-2],"hexagon");break;case 67:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"odd");break;case 68:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"trapezoid");break;case 69:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"inv_trapezoid");break;case 70:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"lean_right");break;case 71:this.$=i[a-3],A.addVertex(i[a-3],i[a-1],"lean_left");break;case 72:this.$=i[a],A.addVertex(i[a]);break;case 73:i[a-1].text=i[a],this.$=i[a-1];break;case 74:case 75:i[a-2].text=i[a-1],this.$=i[a-2];break;case 76:this.$=i[a];break;case 77:var W=A.destructLink(i[a],i[a-2]);this.$={type:W.type,stroke:W.stroke,length:W.length,text:i[a-1]};break;case 78:var W=A.destructLink(i[a],i[a-2]);this.$={type:W.type,stroke:W.stroke,length:W.length,text:i[a-1],id:i[a-3]};break;case 79:this.$={text:i[a],type:"text"};break;case 80:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 81:this.$={text:i[a],type:"string"};break;case 82:this.$={text:i[a],type:"markdown"};break;case 83:var W=A.destructLink(i[a]);this.$={type:W.type,stroke:W.stroke,length:W.length};break;case 84:var W=A.destructLink(i[a]);this.$={type:W.type,stroke:W.stroke,length:W.length,id:i[a-1]};break;case 85:this.$=i[a-1];break;case 86:this.$={text:i[a],type:"text"};break;case 87:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 88:this.$={text:i[a],type:"string"};break;case 89:case 104:this.$={text:i[a],type:"markdown"};break;case 101:this.$={text:i[a],type:"text"};break;case 102:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 103:this.$={text:i[a],type:"text"};break;case 105:this.$=i[a-4],A.addClass(i[a-2],i[a]);break;case 106:this.$=i[a-4],A.setClass(i[a-2],i[a]);break;case 107:case 115:this.$=i[a-1],A.setClickEvent(i[a-1],i[a]);break;case 108:case 116:this.$=i[a-3],A.setClickEvent(i[a-3],i[a-2]),A.setTooltip(i[a-3],i[a]);break;case 109:this.$=i[a-2],A.setClickEvent(i[a-2],i[a-1],i[a]);break;case 110:this.$=i[a-4],A.setClickEvent(i[a-4],i[a-3],i[a-2]),A.setTooltip(i[a-4],i[a]);break;case 111:this.$=i[a-2],A.setLink(i[a-2],i[a]);break;case 112:this.$=i[a-4],A.setLink(i[a-4],i[a-2]),A.setTooltip(i[a-4],i[a]);break;case 113:this.$=i[a-4],A.setLink(i[a-4],i[a-2],i[a]);break;case 114:this.$=i[a-6],A.setLink(i[a-6],i[a-4],i[a]),A.setTooltip(i[a-6],i[a-2]);break;case 117:this.$=i[a-1],A.setLink(i[a-1],i[a]);break;case 118:this.$=i[a-3],A.setLink(i[a-3],i[a-2]),A.setTooltip(i[a-3],i[a]);break;case 119:this.$=i[a-3],A.setLink(i[a-3],i[a-2],i[a]);break;case 120:this.$=i[a-5],A.setLink(i[a-5],i[a-4],i[a]),A.setTooltip(i[a-5],i[a-2]);break;case 121:this.$=i[a-4],A.addVertex(i[a-2],void 0,void 0,i[a]);break;case 122:this.$=i[a-4],A.updateLink([i[a-2]],i[a]);break;case 123:this.$=i[a-4],A.updateLink(i[a-2],i[a]);break;case 124:this.$=i[a-8],A.updateLinkInterpolate([i[a-6]],i[a-2]),A.updateLink([i[a-6]],i[a]);break;case 125:this.$=i[a-8],A.updateLinkInterpolate(i[a-6],i[a-2]),A.updateLink(i[a-6],i[a]);break;case 126:this.$=i[a-6],A.updateLinkInterpolate([i[a-4]],i[a]);break;case 127:this.$=i[a-6],A.updateLinkInterpolate(i[a-4],i[a]);break;case 128:case 130:this.$=[i[a]];break;case 129:case 131:i[a-2].push(i[a]),this.$=i[a-2];break;case 133:this.$=i[a-1]+i[a];break;case 181:this.$=i[a];break;case 182:this.$=i[a-1]+""+i[a];break;case 184:this.$=i[a-1]+""+i[a];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:u,10:o,12:c},{1:[3]},s(D,S,{5:6}),{4:7,9:u,10:o,12:c},{4:8,9:u,10:o,12:c},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:C,9:_,10:k,11:F,20:17,22:18,23:19,24:20,25:21,26:22,27:z,33:24,34:x,36:B,38:oe,42:28,43:39,44:M,45:40,47:41,60:U,84:Ie,85:r1,86:ue,87:Be,88:a1,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te,121:n1,122:u1,123:o1,124:l1,125:c1},s(D,[2,9]),s(D,[2,10]),s(D,[2,11]),{8:[1,55],9:[1,56],10:ve,15:54,18:57},s(N,[2,3]),s(N,[2,4]),s(N,[2,5]),s(N,[2,6]),s(N,[2,7]),s(N,[2,8]),{8:ke,9:ge,11:Ae,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ke,9:ge,11:Ae,21:68},{8:ke,9:ge,11:Ae,21:69},{8:ke,9:ge,11:Ae,21:70},{8:ke,9:ge,11:Ae,21:71},{8:ke,9:ge,11:Ae,21:72},{8:ke,9:ge,10:[1,73],11:Ae,21:74},s(N,[2,36]),{35:[1,75]},{37:[1,76]},s(N,[2,39]),s(Oe,[2,50],{18:77,39:78,10:ve,40:S1}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ue,44:ze,60:We,80:[1,87],89:Ke,95:[1,84],97:[1,85],101:86,105:je,106:Ye,109:He,111:qe,114:Xe,115:Qe,116:$e,120:88},s(N,[2,185]),s(N,[2,186]),s(N,[2,187]),s(N,[2,188]),s(N,[2,189]),s(Re,[2,51]),s(Re,[2,54],{46:[1,100]}),s(ie,[2,72],{113:113,29:[1,101],44:M,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:U,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:j,105:Y,106:H,109:X,111:Q,114:Z,115:ee,116:te}),s(ce,[2,181]),s(ce,[2,142]),s(ce,[2,143]),s(ce,[2,144]),s(ce,[2,145]),s(ce,[2,146]),s(ce,[2,147]),s(ce,[2,148]),s(ce,[2,149]),s(ce,[2,150]),s(ce,[2,151]),s(ce,[2,152]),s(D,[2,12]),s(D,[2,18]),s(D,[2,19]),{9:[1,114]},s(y1,[2,26],{18:115,10:ve}),s(N,[2,27]),{42:116,43:39,44:M,45:40,47:41,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},s(N,[2,40]),s(N,[2,41]),s(N,[2,42]),s(e1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:x1,81:F1,116:h1,119:d1},{75:[1,126],77:[1,127]},s(_1,[2,83]),s(N,[2,28]),s(N,[2,29]),s(N,[2,30]),s(N,[2,31]),s(N,[2,32]),{10:B1,12:v1,14:L1,27:V1,28:128,32:I1,44:w1,60:R1,75:N1,80:[1,130],81:[1,131],83:141,84:G1,85:P1,86:O1,87:M1,88:U1,89:z1,90:W1,91:129,105:K1,109:j1,111:Y1,114:H1,115:q1,116:X1},s(k1,S,{5:154}),s(N,[2,37]),s(N,[2,38]),s(Oe,[2,48],{44:Q1}),s(Oe,[2,49],{18:156,10:ve,40:J1}),s(Re,[2,44]),{44:M,47:158,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:M,47:162,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},{44:M,47:163,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},s(O,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},s(O,[2,115],{120:168,10:[1,167],14:Ue,44:ze,60:We,89:Ke,105:je,106:Ye,109:He,111:qe,114:Xe,115:Qe,116:$e}),s(O,[2,117],{10:[1,169]}),s(he,[2,183]),s(he,[2,170]),s(he,[2,171]),s(he,[2,172]),s(he,[2,173]),s(he,[2,174]),s(he,[2,175]),s(he,[2,176]),s(he,[2,177]),s(he,[2,178]),s(he,[2,179]),s(he,[2,180]),{44:M,47:170,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},{30:171,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:179,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:181,50:[1,180],67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:182,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:183,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:184,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{109:[1,185]},{30:186,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:187,65:[1,188],67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:189,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:190,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{30:191,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},s(ce,[2,182]),s(D,[2,20]),s(y1,[2,25]),s(Oe,[2,46],{39:192,18:193,10:ve,40:S1}),s(e1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{77:[1,197],79:198,116:h1,119:d1},s(t1,[2,79]),s(t1,[2,81]),s(t1,[2,82]),s(t1,[2,168]),s(t1,[2,169]),{76:199,79:121,80:x1,81:F1,116:h1,119:d1},s(_1,[2,84]),{8:ke,9:ge,10:B1,11:Ae,12:v1,14:L1,21:201,27:V1,29:[1,200],32:I1,44:w1,60:R1,75:N1,83:141,84:G1,85:P1,86:O1,87:M1,88:U1,89:z1,90:W1,91:202,105:K1,109:j1,111:Y1,114:H1,115:q1,116:X1},s(G,[2,101]),s(G,[2,103]),s(G,[2,104]),s(G,[2,157]),s(G,[2,158]),s(G,[2,159]),s(G,[2,160]),s(G,[2,161]),s(G,[2,162]),s(G,[2,163]),s(G,[2,164]),s(G,[2,165]),s(G,[2,166]),s(G,[2,167]),s(G,[2,90]),s(G,[2,91]),s(G,[2,92]),s(G,[2,93]),s(G,[2,94]),s(G,[2,95]),s(G,[2,96]),s(G,[2,97]),s(G,[2,98]),s(G,[2,99]),s(G,[2,100]),{6:11,7:12,8:C,9:_,10:k,11:F,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,203],33:24,34:x,36:B,38:oe,42:28,43:39,44:M,45:40,47:41,60:U,84:Ie,85:r1,86:ue,87:Be,88:a1,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te,121:n1,122:u1,123:o1,124:l1,125:c1},{10:ve,18:204},{44:[1,205]},s(Re,[2,43]),{10:[1,206],44:M,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},s(Z1,[2,128]),{10:[1,210],44:M,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:113,114:Z,115:ee,116:te},{10:[1,211],44:M,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:113,114:Z,115:ee,116:te},{80:[1,212]},s(O,[2,109],{10:[1,213]}),s(O,[2,111],{10:[1,214]}),{80:[1,215]},s(he,[2,184]),{80:[1,216],98:[1,217]},s(Re,[2,55],{113:113,44:M,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,114:Z,115:ee,116:te}),{31:[1,218],67:L,82:219,116:I,117:w,118:R},s(Le,[2,86]),s(Le,[2,88]),s(Le,[2,89]),s(Le,[2,153]),s(Le,[2,154]),s(Le,[2,155]),s(Le,[2,156]),{49:[1,220],67:L,82:219,116:I,117:w,118:R},{30:221,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{51:[1,222],67:L,82:219,116:I,117:w,118:R},{53:[1,223],67:L,82:219,116:I,117:w,118:R},{55:[1,224],67:L,82:219,116:I,117:w,118:R},{57:[1,225],67:L,82:219,116:I,117:w,118:R},{60:[1,226]},{64:[1,227],67:L,82:219,116:I,117:w,118:R},{66:[1,228],67:L,82:219,116:I,117:w,118:R},{30:229,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},{31:[1,230],67:L,82:219,116:I,117:w,118:R},{67:L,69:[1,231],71:[1,232],82:219,116:I,117:w,118:R},{67:L,69:[1,234],71:[1,233],82:219,116:I,117:w,118:R},s(Oe,[2,45],{18:156,10:ve,40:J1}),s(Oe,[2,47],{44:Q1}),s(e1,[2,75]),s(e1,[2,74]),{62:[1,235],67:L,82:219,116:I,117:w,118:R},s(e1,[2,77]),s(t1,[2,80]),{77:[1,236],79:198,116:h1,119:d1},{30:237,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},s(k1,S,{5:238}),s(G,[2,102]),s(N,[2,35]),{43:239,44:M,45:40,47:41,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},{10:ve,18:240},{10:me,60:De,84:Ee,92:241,105:Te,107:242,108:243,109:Se,110:ye,111:xe,112:Fe},{10:me,60:De,84:Ee,92:252,104:[1,253],105:Te,107:242,108:243,109:Se,110:ye,111:xe,112:Fe},{10:me,60:De,84:Ee,92:254,104:[1,255],105:Te,107:242,108:243,109:Se,110:ye,111:xe,112:Fe},{105:[1,256]},{10:me,60:De,84:Ee,92:257,105:Te,107:242,108:243,109:Se,110:ye,111:xe,112:Fe},{44:M,47:258,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},s(O,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},s(O,[2,116]),s(O,[2,118],{10:[1,262]}),s(O,[2,119]),s(ie,[2,56]),s(Le,[2,87]),s(ie,[2,57]),{51:[1,263],67:L,82:219,116:I,117:w,118:R},s(ie,[2,64]),s(ie,[2,59]),s(ie,[2,60]),s(ie,[2,61]),{109:[1,264]},s(ie,[2,63]),s(ie,[2,65]),{66:[1,265],67:L,82:219,116:I,117:w,118:R},s(ie,[2,67]),s(ie,[2,68]),s(ie,[2,70]),s(ie,[2,69]),s(ie,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(e1,[2,78]),{31:[1,266],67:L,82:219,116:I,117:w,118:R},{6:11,7:12,8:C,9:_,10:k,11:F,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,267],33:24,34:x,36:B,38:oe,42:28,43:39,44:M,45:40,47:41,60:U,84:Ie,85:r1,86:ue,87:Be,88:a1,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te,121:n1,122:u1,123:o1,124:l1,125:c1},s(Re,[2,53]),{43:268,44:M,45:40,47:41,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te},s(O,[2,121],{106:s1}),s($1,[2,130],{108:270,10:me,60:De,84:Ee,105:Te,109:Se,110:ye,111:xe,112:Fe}),s(be,[2,132]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s(be,[2,137]),s(be,[2,138]),s(be,[2,139]),s(be,[2,140]),s(be,[2,141]),s(O,[2,122],{106:s1}),{10:[1,271]},s(O,[2,123],{106:s1}),{10:[1,272]},s(Z1,[2,129]),s(O,[2,105],{106:s1}),s(O,[2,106],{113:113,44:M,60:U,89:K,102:j,105:Y,106:H,109:X,111:Q,114:Z,115:ee,116:te}),s(O,[2,110]),s(O,[2,112],{10:[1,273]}),s(O,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ke,9:ge,11:Ae,21:278},s(N,[2,34]),s(Re,[2,52]),{10:me,60:De,84:Ee,105:Te,107:279,108:243,109:Se,110:ye,111:xe,112:Fe},s(be,[2,133]),{14:Ue,44:ze,60:We,89:Ke,101:280,105:je,106:Ye,109:He,111:qe,114:Xe,115:Qe,116:$e,120:88},{14:Ue,44:ze,60:We,89:Ke,101:281,105:je,106:Ye,109:He,111:qe,114:Xe,115:Qe,116:$e,120:88},{98:[1,282]},s(O,[2,120]),s(ie,[2,58]),{30:283,67:L,80:re,81:ae,82:172,116:I,117:w,118:R},s(ie,[2,66]),s(k1,S,{5:284}),s($1,[2,131],{108:270,10:me,60:De,84:Ee,105:Te,109:Se,110:ye,111:xe,112:Fe}),s(O,[2,126],{120:168,10:[1,285],14:Ue,44:ze,60:We,89:Ke,105:je,106:Ye,109:He,111:qe,114:Xe,115:Qe,116:$e}),s(O,[2,127],{120:168,10:[1,286],14:Ue,44:ze,60:We,89:Ke,105:je,106:Ye,109:He,111:qe,114:Xe,115:Qe,116:$e}),s(O,[2,114]),{31:[1,287],67:L,82:219,116:I,117:w,118:R},{6:11,7:12,8:C,9:_,10:k,11:F,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,288],33:24,34:x,36:B,38:oe,42:28,43:39,44:M,45:40,47:41,60:U,84:Ie,85:r1,86:ue,87:Be,88:a1,89:K,102:j,105:Y,106:H,109:X,111:Q,113:42,114:Z,115:ee,116:te,121:n1,122:u1,123:o1,124:l1,125:c1},{10:me,60:De,84:Ee,92:289,105:Te,107:242,108:243,109:Se,110:ye,111:xe,112:Fe},{10:me,60:De,84:Ee,92:290,105:Te,107:242,108:243,109:Se,110:ye,111:xe,112:Fe},s(ie,[2,62]),s(N,[2,33]),s(O,[2,124],{106:s1}),s(O,[2,125],{106:s1})],defaultActions:{},parseError:e(function(E,T){if(T.recoverable)this.trace(E);else{var y=Error(E);throw y.hash=T,y}},"parseError"),parse:e(function(E){var T=this,y=[0],A=[],P=[null],i=[],Ne=this.table,a="",W=0,et=0,tt=0,ot=2,st=1,lt=i.slice.call(arguments,1),se=Object.create(this.lexer),Ge={yy:{}};for(var A1 in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,A1))Ge.yy[A1]=this.yy[A1];if(se.setInput(E,Ge.yy),Ge.yy.lexer=se,Ge.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var m1=se.yylloc;i.push(m1);var ct=se.options&&se.options.ranges;if(typeof Ge.yy.parseError==="function")this.parseError=Ge.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(pe){y.length=y.length-2*pe,P.length=P.length-pe,i.length=i.length-pe}e(ht,"popStack");function it(){var pe=A.pop()||se.lex()||st;if(typeof pe!=="number"){if(pe instanceof Array)A=pe,pe=A.pop();pe=T.symbols_[pe]||pe}return pe}e(it,"lex");var ne,D1,Pe,de,Dt,C1,i1={},f1,_e,rt,b1;while(!0){if(Pe=y[y.length-1],this.defaultActions[Pe])de=this.defaultActions[Pe];else{if(ne===null||typeof ne>"u")ne=it();de=Ne[Pe]&&Ne[Pe][ne]}if(typeof de>"u"||!de.length||!de[0]){var E1="";b1=[];for(f1 in Ne[Pe])if(this.terminals_[f1]&&f1>ot)b1.push("'"+this.terminals_[f1]+"'");if(se.showPosition)E1="Parse error on line "+(W+1)+`:
|
|
10
|
+
`+se.showPosition()+`
|
|
11
|
+
Expecting `+b1.join(", ")+", got '"+(this.terminals_[ne]||ne)+"'";else E1="Parse error on line "+(W+1)+": Unexpected "+(ne==st?"end of input":"'"+(this.terminals_[ne]||ne)+"'");this.parseError(E1,{text:se.match,token:this.terminals_[ne]||ne,line:se.yylineno,loc:m1,expected:b1})}if(de[0]instanceof Array&&de.length>1)throw Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+ne);switch(de[0]){case 1:if(y.push(ne),P.push(se.yytext),i.push(se.yylloc),y.push(de[1]),ne=null,!D1){if(et=se.yyleng,a=se.yytext,W=se.yylineno,m1=se.yylloc,tt>0)tt--}else ne=D1,D1=null;break;case 2:if(_e=this.productions_[de[1]][1],i1.$=P[P.length-_e],i1._$={first_line:i[i.length-(_e||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(_e||1)].first_column,last_column:i[i.length-1].last_column},ct)i1._$.range=[i[i.length-(_e||1)].range[0],i[i.length-1].range[1]];if(C1=this.performAction.apply(i1,[a,et,W,Ge.yy,de[1],P,i].concat(lt)),typeof C1<"u")return C1;if(_e)y=y.slice(0,-1*_e*2),P=P.slice(0,-1*_e),i=i.slice(0,-1*_e);y.push(this.productions_[de[1]][0]),P.push(i1.$),i.push(i1._$),rt=Ne[y[y.length-2]][y[y.length-1]],y.push(rt);break;case 3:return!0}}return!0},"parse")},ut=function(){var Ve={EOF:1,parseError:e(function(T,y){if(this.yy.parser)this.yy.parser.parseError(T,y);else throw Error(T)},"parseError"),setInput:e(function(E,T){if(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];return this.offset=0,this},"setInput"),input:e(function(){var E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var T=E.match(/(?:\r\n?|\n).*/g);if(T)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),E},"input"),unput:e(function(E){var T=E.length,y=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 A=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1)this.yylineno-=y.length-1;var P=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===A.length?this.yylloc.first_column:0)+A[A.length-y.length].length-y[0].length:this.yylloc.first_column-T},this.options.ranges)this.yylloc.range=[P[0],P[0]+this.yyleng-T];return 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).
|
|
12
|
+
`+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;if(E.length<20)E+=this._input.substr(0,20-E.length);return(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()+`
|
|
13
|
+
`+T+"^"},"showPosition"),test_match:e(function(E,T){var y,A,P;if(this.options.backtrack_lexer){if(P={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)P.yylloc.range=this.yylloc.range.slice(0)}if(A=E[0].match(/(?:\r\n?|\n).*/g),A)this.yylineno+=A.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.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];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(E[0].length),this.matched+=E[0],y=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(y)return y;else if(this._backtrack){for(var i in P)this[i]=P[i];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var E,T,y,A;if(!this._more)this.yytext="",this.match="";var P=this._currentRules();for(var i=0;i<P.length;i++)if(y=this._input.match(this.rules[P[i]]),y&&(!T||y[0].length>T[0].length)){if(T=y,A=i,this.options.backtrack_lexer)if(E=this.test_match(y,P[i]),E!==!1)return E;else if(this._backtrack){T=!1;continue}else return!1;else if(!this.options.flex)break}if(T){if(E=this.test_match(T,P[A]),E!==!1)return E;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var T=this.next();if(T)return T;else return this.lex()},"lex"),begin:e(function(T){this.conditionStack.push(T)},"begin"),popState:e(function(){var T=this.conditionStack.length-1;if(T>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(T){if(T=this.conditionStack.length-1-Math.abs(T||0),T>=0)return this.conditionStack[T];else return"INITIAL"},"topState"),pushState:e(function(T){this.begin(T)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(T,y,A,P){var i=P;switch(A){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),y.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ne=/\n\s*/g;return y.yytext=y.yytext.replace(Ne,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(T.lex.firstGraph())this.begin("dir");return 12;case 36:if(T.lex.firstGraph())this.begin("dir");return 12;case 37:if(T.lex.firstGraph())this.begin("dir");return 12;case 38:if(T.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Ve}();g1.lexer=ut;function p1(){this.yy={}}return e(p1,"Parser"),p1.prototype=g1,g1.Parser=p1,new p1}();T1.parser=T1;var at=T1,nt=Object.assign({},at);nt.parse=(s)=>{let u=s.replace(/}\s*\n/g,`}
|
|
15
|
+
`);return at.parse(u)};var gt=nt,At=e((s,u)=>{let o=Rt,c=o(s,"r"),D=o(s,"g"),S=o(s,"b");return q(c,D,S,u)},"fade"),mt=e((s)=>`.label {
|
|
16
|
+
font-family: ${s.fontFamily};
|
|
17
|
+
color: ${s.nodeTextColor||s.textColor};
|
|
18
|
+
}
|
|
19
|
+
.cluster-label text {
|
|
20
|
+
fill: ${s.titleColor};
|
|
21
|
+
}
|
|
22
|
+
.cluster-label span {
|
|
23
|
+
color: ${s.titleColor};
|
|
24
|
+
}
|
|
25
|
+
.cluster-label span p {
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.label text,span {
|
|
30
|
+
fill: ${s.nodeTextColor||s.textColor};
|
|
31
|
+
color: ${s.nodeTextColor||s.textColor};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.node rect,
|
|
35
|
+
.node circle,
|
|
36
|
+
.node ellipse,
|
|
37
|
+
.node polygon,
|
|
38
|
+
.node path {
|
|
39
|
+
fill: ${s.mainBkg};
|
|
40
|
+
stroke: ${s.nodeBorder};
|
|
41
|
+
stroke-width: ${s.strokeWidth??1}px;
|
|
42
|
+
}
|
|
43
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
44
|
+
text-anchor: middle;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.node .katex path {
|
|
48
|
+
fill: #000;
|
|
49
|
+
stroke: #000;
|
|
50
|
+
stroke-width: 1px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
.node.clickable {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
.root .anchor path {
|
|
62
|
+
fill: ${s.lineColor} !important;
|
|
63
|
+
stroke-width: 0;
|
|
64
|
+
stroke: ${s.lineColor};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.arrowheadPath {
|
|
68
|
+
fill: ${s.arrowheadColor};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgePath .path {
|
|
72
|
+
stroke: ${s.lineColor};
|
|
73
|
+
stroke-width: ${s.strokeWidth??2}px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.flowchart-link {
|
|
77
|
+
stroke: ${s.lineColor};
|
|
78
|
+
fill: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.edgeLabel {
|
|
82
|
+
background-color: ${s.edgeLabelBackground};
|
|
83
|
+
p {
|
|
84
|
+
background-color: ${s.edgeLabelBackground};
|
|
85
|
+
}
|
|
86
|
+
rect {
|
|
87
|
+
opacity: 0.5;
|
|
88
|
+
background-color: ${s.edgeLabelBackground};
|
|
89
|
+
fill: ${s.edgeLabelBackground};
|
|
90
|
+
}
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* For html labels only */
|
|
95
|
+
.labelBkg {
|
|
96
|
+
background-color: ${At(s.edgeLabelBackground,0.5)};
|
|
97
|
+
// background-color:
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.cluster rect {
|
|
101
|
+
fill: ${s.clusterBkg};
|
|
102
|
+
stroke: ${s.clusterBorder};
|
|
103
|
+
stroke-width: 1px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.cluster text {
|
|
107
|
+
fill: ${s.titleColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cluster span {
|
|
111
|
+
color: ${s.titleColor};
|
|
112
|
+
}
|
|
113
|
+
/* .cluster div {
|
|
114
|
+
color: ${s.titleColor};
|
|
115
|
+
} */
|
|
116
|
+
|
|
117
|
+
div.mermaidTooltip {
|
|
118
|
+
position: absolute;
|
|
119
|
+
text-align: center;
|
|
120
|
+
max-width: 200px;
|
|
121
|
+
padding: 2px;
|
|
122
|
+
font-family: ${s.fontFamily};
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
background: ${s.tertiaryColor};
|
|
125
|
+
border: 1px solid ${s.border2};
|
|
126
|
+
border-radius: 2px;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
z-index: 100;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.flowchartTitleText {
|
|
132
|
+
text-anchor: middle;
|
|
133
|
+
font-size: 18px;
|
|
134
|
+
fill: ${s.textColor};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
rect.text {
|
|
138
|
+
fill: none;
|
|
139
|
+
stroke-width: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.icon-shape, .image-shape {
|
|
143
|
+
background-color: ${s.edgeLabelBackground};
|
|
144
|
+
p {
|
|
145
|
+
background-color: ${s.edgeLabelBackground};
|
|
146
|
+
padding: 2px;
|
|
147
|
+
}
|
|
148
|
+
.label rect {
|
|
149
|
+
opacity: 0.5;
|
|
150
|
+
background-color: ${s.edgeLabelBackground};
|
|
151
|
+
fill: ${s.edgeLabelBackground};
|
|
152
|
+
}
|
|
153
|
+
text-align: center;
|
|
154
|
+
}
|
|
155
|
+
${we()}
|
|
156
|
+
`,"getStyles"),di=mt,hi=e(({defaultLayout:s,styles:u=di}={})=>({parser:gt,get db(){return new pt},renderer:kt,styles:u,init:e((o)=>{if(!o.flowchart)o.flowchart={};let c=Gr().layout??s??o.layout;if(c)gr({layout:c});o.flowchart.arrowMarkerAbsolute=o.arrowMarkerAbsolute,gr({flowchart:{arrowMarkerAbsolute:o.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),qi=hi();
|
|
157
|
+
export{di,hi,qi};
|