{"name":"mermaid","version":"11.4.1","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],"author":{"name":"Knut Sveidqvist"},"license":"MIT","_id":"mermaid@11.4.1","maintainers":[{"name":"ashishjain0512","email":"ashishjain0512@gmail.com"},{"name":"p_brolin47","email":"per@mermaidchart.com"},{"name":"aloisklink","email":"alois@aloisklink.com"},{"name":"sidv","email":"npmjs@sidharth.dev"},{"name":"knsv","email":"knsv@sveido.com"}],"homepage":"https://github.com/mermaid-js/mermaid#readme","bugs":{"url":"https://github.com/mermaid-js/mermaid/issues"},"dist":{"shasum":"577fad5c31a01a06d9f793e298d411f1379eecc8","tarball":"http://registry-npm.ywwl.com/mermaid/download/mermaid-11.4.1.tgz","fileCount":704,"integrity":"sha512-Mb01JT/x6CKDWaxigwfZYuYmDZ6xtrNwNlidKZwkSrDaY9n90tdrJTV5Umk+wP1fZscGptmKFXHsXMDEVZ+Q6A==","signatures":[{"sig":"MEYCIQCSg8/RSLWXonZHDCzlA7Uy9UN9XXNw4IDBA4Pj0LGFHQIhAK+5Y/KvDiUV4T2xELh4hFcnB29VoCrt1mfZ98cpYsjw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mermaid@11.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61973188,"size":13509484,"noattachment":false,"key":"/mermaid/-/mermaid-11.4.1.tgz"},"type":"module","_from":"file:mermaid-11.4.1.tgz","types":"./dist/mermaid.d.ts","module":"./dist/mermaid.core.mjs","exports":{".":{"types":"./dist/mermaid.d.ts","import":"./dist/mermaid.core.mjs","default":"./dist/mermaid.core.mjs"},"./*":"./*"},"scripts":{"dev":"pnpm -w dev","clean":"rimraf dist","docs:dev":"pnpm docs:pre:vitepress && concurrently \"pnpm --filter ./src/vitepress dev\" \"tsx scripts/docs.cli.mts --watch --vitepress\"","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","checkCircle":"npx madge --circular ./src","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:dev:docker":"pnpm docs:pre:vitepress && concurrently \"pnpm --filter ./src/vitepress dev:docker\" \"tsx scripts/docs.cli.mts --watch --vitepress\"","docs:spellcheck":"cspell \"src/docs/**/*.md\"","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","types:build-config":"tsx scripts/create-types-from-json-schema.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:release-version":"tsx scripts/update-release-version.mts"},"_npmUser":{"name":"sidv","email":"npmjs@sidharth.dev"},"standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"_resolved":"/tmp/2b75c9a9069b8023fd880acda19ebd1e/mermaid-11.4.1.tgz","_integrity":"sha512-Mb01JT/x6CKDWaxigwfZYuYmDZ6xtrNwNlidKZwkSrDaY9n90tdrJTV5Umk+wP1fZscGptmKFXHsXMDEVZ+Q6A==","repository":{"url":"git+https://github.com/mermaid-js/mermaid.git","type":"git"},"_npmVersion":"10.5.0","description":"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"d3":"^7.9.0","uuid":"^9.0.1","dayjs":"^1.11.10","katex":"^0.16.9","khroma":"^2.1.0","marked":"^13.0.2","stylis":"^4.3.1","roughjs":"^4.6.6","@types/d3":"^7.4.3","cytoscape":"^3.29.2","d3-sankey":"^0.12.3","dompurify":"^3.2.1","lodash-es":"^4.17.21","ts-dedent":"^2.2.0","dagre-d3-es":"7.0.11","@iconify/utils":"^2.1.32","cytoscape-fcose":"^2.2.0","@mermaid-js/parser":"^0.3.0","cytoscape-cose-bilkent":"^4.1.0","@braintree/sanitize-url":"^7.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"^8.12.0","jison":"^0.4.18","jsdom":"^24.0.0","globby":"^14.0.1","remark":"^15.0.1","rimraf":"^5.0.5","typedoc":"^0.25.12","chokidar":"^3.6.0","prettier":"^3.2.5","js-base64":"^3.7.7","type-fest":"^4.13.1","vitepress":"^1.0.1","micromatch":"^4.0.5","remark-gfm":"^4.0.0","typescript":"~5.4.3","@types/uuid":"^9.0.8","@types/jsdom":"^21.1.6","@types/katex":"^0.16.7","concurrently":"^8.2.2","@types/stylis":"^4.2.5","@iconify/types":"^2.0.0","@types/d3-scale":"^4.0.8","@types/d3-shape":"^3.1.6","@types/prettier":"^3.0.0","path-browserify":"^1.0.1","@types/cytoscape":"^3.21.4","@types/d3-sankey":"^0.12.4","@types/lodash-es":"^4.17.12","unist-util-visit":"^5.0.0","@types/micromatch":"^4.0.6","csstree-validator":"^3.0.0","remark-frontmatter":"^5.0.0","unist-util-flatmap":"^1.0.0","@types/d3-selection":"^3.0.10","@adobe/jsonschema2md":"^8.0.0","start-server-and-test":"^2.0.3","@types/cytoscape-fcose":"^2.2.4","typedoc-plugin-markdown":"^3.17.1","vitepress-plugin-search":"1.0.4-alpha.22","@types/d3-scale-chromatic":"^3.0.3","json-schema-to-typescript":"^13.1.2"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_11.4.1_1732705378224_0.33681188333155965","host":"s3://npm-registry-packages"},"readme":"<p align=\"center\">\n<img src=\"https://raw.githubusercontent.com/mermaid-js/mermaid/develop/docs/public/favicon.svg\" height=\"150\">\n</p>\n<h1 align=\"center\">\nMermaid\n</h1>\n<p align=\"center\">\n通过解析类 Markdown 的文本语法来实现图表的创建和动态修改。\n<p>\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/mermaid\"><img src=\"https://img.shields.io/npm/v/mermaid?color=ff3670&label=\"></a>\n<p>\n\n<p align=\"center\">\n<a href=\"https://mermaid.live/\"><b>实时编辑器!</b></a>\n</p>\n<p align=\"center\">\n <a href=\"https://mermaid.js.org\">📖 文档</a> | <a href=\"https://mermaid.js.org/intro/\">🚀 入门</a> | <a href=\"https://www.jsdelivr.com/package/npm/mermaid\">🌐 CDN</a> | <a href=\"https://discord.gg/sKeNQX4Wtj\" title=\"Discord invite\">🙌 加入我们</a>\n</p>\n<p align=\"center\">\n<a href=\"./README.md\">English</a>\n</p>\n\n<p align=\"center\">\n尝试未来版本的实时编辑器预览: <a href=\"https://develop.git.mermaid.live/\" title=\"尝试来自develop分支的mermaid版本。\">Develop</a> | <a href=\"https://next.git.mermaid.live/\" title=\"尝试来自next分支的mermaid版本。\">Next</a>\n</p>\n\n<br>\n<br>\n\n[![NPM](https://img.shields.io/npm/v/mermaid)](https://www.npmjs.com/package/mermaid)\n[![Build CI Status](https://github.com/mermaid-js/mermaid/actions/workflows/build.yml/badge.svg)](https://github.com/mermaid-js/mermaid/actions/workflows/build.yml)\n[![npm minified gzipped bundle size](https://img.shields.io/bundlephobia/minzip/mermaid)](https://bundlephobia.com/package/mermaid)\n[![Coverage Status](https://codecov.io/github/mermaid-js/mermaid/branch/develop/graph/badge.svg)](https://app.codecov.io/github/mermaid-js/mermaid/tree/develop)\n[![CDN Status](https://img.shields.io/jsdelivr/npm/hm/mermaid)](https://www.jsdelivr.com/package/npm/mermaid)\n[![NPM Downloads](https://img.shields.io/npm/dm/mermaid)](https://www.npmjs.com/package/mermaid)\n[![Join our Discord!](https://img.shields.io/static/v1?message=join%20chat&color=9cf&logo=discord&label=discord)](https://discord.gg/sKeNQX4Wtj)\n[![Twitter Follow](https://img.shields.io/badge/Social-mermaidjs__-blue?style=social&logo=X)](https://twitter.com/mermaidjs_)\n\n<img src=\"./img/header.png\" alt=\"\" />\n\n:trophy: **Mermaid 被提名并获得了 [JS Open Source Awards (2019)](https://osawards.com/javascript/2019) 的 \"The most exciting use of technology\" 奖项!!!**\n\n**感谢所有参与进来提交 PR，解答疑问的人们! 🙏**\n\n<a href=\"https://mermaid.js.org/landing/\"><img src=\"https://github.com/mermaid-js/mermaid/blob/master/docs/intro/img/book-banner-post-release.jpg\" alt='Banner for \"The Official Guide to Mermaid.js\" book'></a>\n\n## 关于 Mermaid\n\n<!-- <Main description>   -->\n\nMermaid 是一个基于 JavaScript 的图表绘制工具，通过解析类 Markdown 的文本语法来实现图表的创建和动态修改。Mermaid 诞生的主要目的是让文档的更新能够及时跟上开发进度。\n\n> Doc-Rot 是 Mermaid 致力于解决的一个难题。\n\n绘图和编写文档花费了开发者宝贵的开发时间，而且随着业务的变更，它很快就会过期。 但是如果缺少了图表或文档，对于生产力和团队新人的业务学习都会产生巨大的阻碍。 <br/>\nMermaid 通过允许用户创建便于修改的图表来解决这一难题，它也可以作为生产脚本（或其他代码）的一部分。<br/>\n<br/>\nMermaid 甚至能让非程序员也能通过 [Mermaid Live Editor](https://mermaid.live/) 轻松创建详细的图表。<br/>\n你可以访问 [教程](https://mermaid.js.org/ecosystem/tutorials.html) 来查看 Live Editor 的视频教程，也可以查看 [Mermaid 的集成和使用](https://mermaid.js.org/ecosystem/integrations-community.html) 这个清单来检查你的文档工具是否已经集成了 Mermaid 支持。\n\n如果想要查看关于 Mermaid 更详细的介绍及基础使用方式，可以查看 [入门指引](https://mermaid.js.org/intro/getting-started.html), [用法](https://mermaid.js.org/config/usage.html) 和 [教程](https://mermaid.js.org/ecosystem/tutorials.html).\n\n<!-- </Main description> -->\n\n## 示例\n\n**下面是一些可以使用 Mermaid 创建的图表示例。点击 [语法](https://mermaid.js.org/intro/syntax-reference.html) 查看详情。**\n\n<table>\n<!-- <Flowchart> -->\n\n### 流程图 [<a href=\"https://mermaid.js.org/syntax/flowchart.html\">文档</a> - <a href=\"https://mermaid.live/edit#base64:eyJjb2RlIjoiZ3JhcGggVERcbiAgICBBW0hhcmRdIC0tPnxUZXh0fCBCKFJvdW5kKVxuICAgIEIgLS0-IEN7RGVjaXNpb259XG4gICAgQyAtLT58T25lfCBEW1Jlc3VsdCAxXVxuICAgIEMgLS0-fFR3b3wgRVtSZXN1bHQgMl0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ\">live editor</a>]\n\n```\nflowchart LR\nA[Hard] -->|Text| B(Round)\nB --> C{Decision}\nC -->|One| D[Result 1]\nC -->|Two| E[Result 2]\n```\n\n```mermaid\nflowchart LR\nA[Hard] -->|Text| B(Round)\nB --> C{Decision}\nC -->|One| D[Result 1]\nC -->|Two| E[Result 2]\n```\n\n### 时序图 [<a href=\"https://mermaid.js.org/syntax/sequenceDiagram.html\">文档</a> - <a href=\"https://mermaid.live/edit#base64:eyJjb2RlIjoic2VxdWVuY2VEaWFncmFtXG5BbGljZS0-PkpvaG46IEhlbGxvIEpvaG4sIGhvdyBhcmUgeW91P1xubG9vcCBIZWFsdGhjaGVja1xuICAgIEpvaG4tPj5Kb2huOiBGaWdodCBhZ2FpbnN0IGh5cG9jaG9uZHJpYVxuZW5kXG5Ob3RlIHJpZ2h0IG9mIEpvaG46IFJhdGlvbmFsIHRob3VnaHRzIVxuSm9obi0tPj5BbGljZTogR3JlYXQhXG5Kb2huLT4-Qm9iOiBIb3cgYWJvdXQgeW91P1xuQm9iLS0-PkpvaG46IEpvbGx5IGdvb2QhIiwibWVybWFpZCI6eyJ0aGVtZSI6ImRlZmF1bHQifX0\">live editor</a>]\n\n```\nsequenceDiagram\nAlice->>John: Hello John, how are you?\nloop HealthCheck\n    John->>John: Fight against hypochondria\nend\nNote right of John: Rational thoughts!\nJohn-->>Alice: Great!\nJohn->>Bob: How about you?\nBob-->>John: Jolly good!\n```\n\n```mermaid\nsequenceDiagram\nAlice->>John: Hello John, how are you?\nloop HealthCheck\n    John->>John: Fight against hypochondria\nend\nNote right of John: Rational thoughts!\nJohn-->>Alice: Great!\nJohn->>Bob: How about you?\nBob-->>John: Jolly good!\n```\n\n### 甘特图 [<a href=\"https://mermaid.js.org/syntax/gantt.html\">文档</a> - <a href=\"https://mermaid.live/edit#base64:eyJjb2RlIjoiZ2FudHRcbnNlY3Rpb24gU2VjdGlvblxuQ29tcGxldGVkIDpkb25lLCAgICBkZXMxLCAyMDE0LTAxLTA2LDIwMTQtMDEtMDhcbkFjdGl2ZSAgICAgICAgOmFjdGl2ZSwgIGRlczIsIDIwMTQtMDEtMDcsIDNkXG5QYXJhbGxlbCAxICAgOiAgICAgICAgIGRlczMsIGFmdGVyIGRlczEsIDFkXG5QYXJhbGxlbCAyICAgOiAgICAgICAgIGRlczQsIGFmdGVyIGRlczEsIDFkXG5QYXJhbGxlbCAzICAgOiAgICAgICAgIGRlczUsIGFmdGVyIGRlczMsIDFkXG5QYXJhbGxlbCA0ICAgOiAgICAgICAgIGRlczYsIGFmdGVyIGRlczQsIDFkIiwibWVybWFpZCI6eyJ0aGVtZSI6ImRlZmF1bHQifX0\">live editor</a>]\n\n```\ngantt\n    section Section\n    Completed :done,    des1, 2014-01-06,2014-01-08\n    Active        :active,  des2, 2014-01-07, 3d\n    Parallel 1   :         des3, after des1, 1d\n    Parallel 2   :         des4, after des1, 1d\n    Parallel 3   :         des5, after des3, 1d\n    Parallel 4   :         des6, after des4, 1d\n```\n\n```mermaid\ngantt\n    section Section\n    Completed :done,    des1, 2014-01-06,2014-01-08\n    Active        :active,  des2, 2014-01-07, 3d\n    Parallel 1   :         des3, after des1, 1d\n    Parallel 2   :         des4, after des1, 1d\n    Parallel 3   :         des5, after des3, 1d\n    Parallel 4   :         des6, after des4, 1d\n```\n\n### 类图 [<a href=\"https://mermaid.js.org/syntax/classDiagram.html\">文档</a> - <a href=\"https://mermaid.live/edit#base64:eyJjb2RlIjoiY2xhc3NEaWFncmFtXG5DbGFzczAxIDx8LS0gQXZlcnlMb25nQ2xhc3MgOiBDb29sXG48PGludGVyZmFjZT4-IENsYXNzMDFcbkNsYXNzMDkgLS0-IEMyIDogV2hlcmUgYW0gaT9cbkNsYXNzMDkgLS0qIEMzXG5DbGFzczA5IC0tfD4gQ2xhc3MwN1xuQ2xhc3MwNyA6IGVxdWFscygpXG5DbGFzczA3IDogT2JqZWN0W10gZWxlbWVudERhdGFcbkNsYXNzMDEgOiBzaXplKClcbkNsYXNzMDEgOiBpbnQgY2hpbXBcbkNsYXNzMDEgOiBpbnQgZ29yaWxsYVxuY2xhc3MgQ2xhc3MxMCB7XG4gID4-c2VydmljZT4-XG4gIGludCBpZFxuICBzaXplKClcbn0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ\">live editor</a>]\n\n```\nclassDiagram\nClass01 <|-- AveryLongClass : Cool\n<<Interface>> Class01\nClass09 --> C2 : Where am I?\nClass09 --* C3\nClass09 --|> Class07\nClass07 : equals()\nClass07 : Object[] elementData\nClass01 : size()\nClass01 : int chimp\nClass01 : int gorilla\nclass Class10 {\n  <<service>>\n  int id\n  size()\n}\n```\n\n```mermaid\nclassDiagram\nClass01 <|-- AveryLongClass : Cool\n<<Interface>> Class01\nClass09 --> C2 : Where am I?\nClass09 --* C3\nClass09 --|> Class07\nClass07 : equals()\nClass07 : Object[] elementData\nClass01 : size()\nClass01 : int chimp\nClass01 : int gorilla\nclass Class10 {\n  <<service>>\n  int id\n  size()\n}\n```\n\n### 状态图 [<a href=\"https://mermaid.js.org/syntax/stateDiagram.html\">docs</a> - <a href=\"https://mermaid.live/edit#pako:eNpdkLsOwjAMRX-l8ojahTEDCzB26kgYrMYtkfJAqVMJVf13QiIKqqfr44d8vUDvFYGAiZHponEMaJv5KF2V4na4V01zqjrWxhSUZYapuEetn7UbCy16P_5HzwGnR6FZfpdCDZaCRa3SWcunQQI_yJIEkaSiAaNhCdKtqRUj--7lehAcItUQn-pnBMSAZtroVWn2YYOU07b4z29Y37gJVYk\">live editor</a>]\n\n```\nstateDiagram-v2\n[*] --> Still\nStill --> [*]\nStill --> Moving\nMoving --> Still\nMoving --> Crash\nCrash --> [*]\n```\n\n```mermaid\nstateDiagram-v2\n[*] --> Still\nStill --> [*]\nStill --> Moving\nMoving --> Still\nMoving --> Crash\nCrash --> [*]\n```\n\n### 饼图 [<a href=\"https://mermaid.js.org/syntax/pie.html\">文档</a> - <a href=\"https://mermaid.live/edit#base64:eyJjb2RlIjoicGllXG5cIkRvZ3NcIiA6IDQyLjk2XG5cIkNhdHNcIiA6IDUwLjA1XG5cIlJhdHNcIiA6IDEwLjAxIiwibWVybWFpZCI6eyJ0aGVtZSI6ImRlZmF1bHQifX0\">live editor</a>]\n\n```\npie\n\"Dogs\" : 386\n\"Cats\" : 85\n\"Rats\" : 15\n```\n\n```mermaid\npie\n\"Dogs\" : 386\n\"Cats\" : 85\n\"Rats\" : 15\n```\n\n### Git 图 [实验特性 - <a href=\"https://mermaid.live/edit#base64:eyJjb2RlIjoiZ2l0R3JhcGg6XG5vcHRpb25zXG57XG4gICAgXCJub2RlU3BhY2luZ1wiOiAxNTAsXG4gICAgXCJub2RlUmFkaXVzXCI6IDEwXG59XG5lbmRcbmNvbW1pdFxuYnJhbmNoIG5ld2JyYW5jaFxuY2hlY2tvdXQgbmV3YnJhbmNoXG5jb21taXRcbmNvbW1pdFxuY2hlY2tvdXQgbWFzdGVyXG5jb21taXRcbmNvbW1pdFxubWVyZ2UgbmV3YnJhbmNoXG4iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ\">live editor</a>]\n\n### 用户体验旅程图 [<a href=\"https://mermaid.js.org/syntax/userJourney.html\">文档</a> - <a href=\"https://mermaid.live/edit#pako:eNpljzEPgkAMhf9K05nFGJdbJXFiYmVpuKIncDVHL4QQ_ruHaILaqXnf63vpjLVYRoMAd4nB81R5SKNOO4ZiglFC6_wVLL3JwLU68XARUHnhTQcoqGVQJgMnAwV_5GSMj0HJhcHAcU_y7d7AYVUzOJP-ddyk3ydZGf0n66uldPqCPxWYYc-hJ2fTj_OqVqg3Tplo0mq5odhphZVfkpWiSjn5Go2GyBnGhyXl3NE1UI-moW7g5QkSoF5m\">live editor</a>]\n\n```\n  journey\n    title My working day\n    section Go to work\n      Make tea: 5: Me\n      Go upstairs: 3: Me\n      Do work: 1: Me, Cat\n    section Go home\n      Go downstairs: 5: Me\n      Sit down: 3: Me\n```\n\n```mermaid\n  journey\n    title My working day\n    section Go to work\n      Make tea: 5: Me\n      Go upstairs: 3: Me\n      Do work: 1: Me, Cat\n    section Go home\n      Go downstairs: 5: Me\n      Sit down: 3: Me\n```\n\n### C4 图 [<a href=\"https://mermaid.js.org/syntax/c4.html\">文档</a>]\n\n```\nC4Context\ntitle System Context diagram for Internet Banking System\n\nPerson(customerA, \"Banking Customer A\", \"A customer of the bank, with personal bank accounts.\")\nPerson(customerB, \"Banking Customer B\")\nPerson_Ext(customerC, \"Banking Customer C\")\nSystem(SystemAA, \"Internet Banking System\", \"Allows customers to view information about their bank accounts, and make payments.\")\n\nPerson(customerD, \"Banking Customer D\", \"A customer of the bank, <br/> with personal bank accounts.\")\n\nEnterprise_Boundary(b1, \"BankBoundary\") {\n\n  SystemDb_Ext(SystemE, \"Mainframe Banking System\", \"Stores all of the core banking information about customers, accounts, transactions, etc.\")\n\n  System_Boundary(b2, \"BankBoundary2\") {\n    System(SystemA, \"Banking System A\")\n    System(SystemB, \"Banking System B\", \"A system of the bank, with personal bank accounts.\")\n  }\n\n  System_Ext(SystemC, \"E-mail system\", \"The internal Microsoft Exchange e-mail system.\")\n  SystemDb(SystemD, \"Banking System D Database\", \"A system of the bank, with personal bank accounts.\")\n\n  Boundary(b3, \"BankBoundary3\", \"boundary\") {\n    SystemQueue(SystemF, \"Banking System F Queue\", \"A system of the bank, with personal bank accounts.\")\n    SystemQueue_Ext(SystemG, \"Banking System G Queue\", \"A system of the bank, with personal bank accounts.\")\n  }\n}\n\nBiRel(customerA, SystemAA, \"Uses\")\nBiRel(SystemAA, SystemE, \"Uses\")\nRel(SystemAA, SystemC, \"Sends e-mails\", \"SMTP\")\nRel(SystemC, customerA, \"Sends e-mails to\")\n```\n\n```mermaid\nC4Context\ntitle System Context diagram for Internet Banking System\n\nPerson(customerA, \"Banking Customer A\", \"A customer of the bank, with personal bank accounts.\")\nPerson(customerB, \"Banking Customer B\")\nPerson_Ext(customerC, \"Banking Customer C\")\nSystem(SystemAA, \"Internet Banking System\", \"Allows customers to view information about their bank accounts, and make payments.\")\n\nPerson(customerD, \"Banking Customer D\", \"A customer of the bank, <br/> with personal bank accounts.\")\n\nEnterprise_Boundary(b1, \"BankBoundary\") {\n\n  SystemDb_Ext(SystemE, \"Mainframe Banking System\", \"Stores all of the core banking information about customers, accounts, transactions, etc.\")\n\n  System_Boundary(b2, \"BankBoundary2\") {\n    System(SystemA, \"Banking System A\")\n    System(SystemB, \"Banking System B\", \"A system of the bank, with personal bank accounts.\")\n  }\n\n  System_Ext(SystemC, \"E-mail system\", \"The internal Microsoft Exchange e-mail system.\")\n  SystemDb(SystemD, \"Banking System D Database\", \"A system of the bank, with personal bank accounts.\")\n\n  Boundary(b3, \"BankBoundary3\", \"boundary\") {\n    SystemQueue(SystemF, \"Banking System F Queue\", \"A system of the bank, with personal bank accounts.\")\n    SystemQueue_Ext(SystemG, \"Banking System G Queue\", \"A system of the bank, with personal bank accounts.\")\n  }\n}\n\nBiRel(customerA, SystemAA, \"Uses\")\nBiRel(SystemAA, SystemE, \"Uses\")\nRel(SystemAA, SystemC, \"Sends e-mails\", \"SMTP\")\nRel(SystemC, customerA, \"Sends e-mails to\")\n```\n\n## 发布\n\n对于有权限的同学来说，你可以通过以下步骤来完成发布操作：\n\n更新 `package.json` 中的版本号，然后执行如下命令：\n\n```sh\nnpm publish\n```\n\n以上的命令会将文件打包到 `dist` 目录并发布至 <https://www.npmjs.com>.\n\n## 相关项目\n\n- [Command Line Interface](https://github.com/mermaid-js/mermaid-cli)\n- [Live Editor](https://github.com/mermaid-js/mermaid-live-editor)\n- [HTTP Server](https://github.com/TomWright/mermaid-server)\n\n## 贡献者 [![Good first issue](https://img.shields.io/github/labels/mermaid-js/mermaid/Good%20first%20issue%21)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors)\n\nMermaid 是一个不断发展中的社区，并且还在接收新的贡献者。有很多不同的方式可以参与进来，而且我们还在寻找额外的帮助。如果你想知道如何开始贡献，请查看 [这个 issue](https://github.com/mermaid-js/mermaid/issues/866)。\n\n关于如何贡献的详细信息可以在 [贡献指南](https://mermaid.js.org/community/contributing.html) 中找到。\n\n## 安全\n\n对于公开网站来说，从互联网上的用户处检索文本、存储供后续在浏览器中展示的内容可能是不安全的，理由是用户的内容可能嵌入一些数据加载完成之后就会运行的恶意脚本，这些对于 Mermaid 来说毫无疑问是一个风险，尤其是 mermaid 图表还包含了许多在 html 中使用的字符，这意味着我们难以使用常规的手段来过滤不安全代码，因为这些常规手段会造成图表损坏。我们仍然在努力对获取到的代码进行安全过滤并不断完善我们的程序，但很难保证没有漏洞。\n\n作为拥有外部用户的网站的额外安全级别，我们很高兴推出一个新的安全级别，其中的图表在沙盒 iframe 中渲染，防止代码中的 javascript 被执行，这是在安全性方面迈出的一大步。\n\n_很不幸的是，鱼与熊掌不可兼得，在这个场景下它意味着在可能的恶意代码被阻止时，也会损失部分交互能力_。\n\n## 报告漏洞\n\n如果想要报告漏洞，请发送邮件到 security@mermaid.live, 并附上问题的描述、复现问题的步骤、受影响的版本，以及解决问题的方案（如果有的话）。\n\n## 鸣谢\n\n来自 Knut Sveidqvist:\n\n> _特别感谢 [d3](https://d3js.org/) 和 [dagre-d3](https://github.com/cpettitt/dagre-d3) 这两个优秀的项目，它们提供了图形布局和绘图工具库！_ > _同样感谢 [js-sequence-diagram](https://bramp.github.io/js-sequence-diagrams) 提供了时序图语法的使用。 感谢 Jessica Peter 提供了甘特图渲染的灵感。_ > _感谢 [Tyler Long](https://github.com/tylerlong) 从 2017 年四月开始成为了项目的合作者。_\n>\n> _感谢越来越多的 [贡献者们](https://github.com/mermaid-js/mermaid/graphs/contributors)，没有你们，就没有这个项目的今天！_\n\n---\n\n_Mermaid 是由 Knut Sveidqvist 创建，它为了更简单的文档编写而生。_\n","publish_time":1732705378930,"_cnpm_publish_time":1732705378930,"dist-tags":{"alpha":"11.0.0-alpha.7","backport":"10.9.8","latest":"12.2.0","next":"10.9.0-rc.2"}}