docmedown 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -20
- package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
- package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
- package/dist/arc-DgPKXEdT.mjs +82 -0
- package/dist/arc-n7TW7Bis.js +1 -0
- package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
- package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
- package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
- package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
- package/dist/array-CApNbSU9.mjs +6 -0
- package/dist/array-DZSRzHA_.js +1 -0
- package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
- package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
- package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
- package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
- package/dist/channel-LgHproiI.mjs +5 -0
- package/dist/channel-yqu0m4cl.js +1 -0
- package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
- package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
- package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
- package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
- package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
- package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
- package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
- package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
- package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
- package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
- package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
- package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
- package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
- package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
- package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
- package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
- package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
- package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
- package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
- package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
- package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
- package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
- package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
- package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
- package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
- package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
- package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
- package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
- package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
- package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
- package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
- package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
- package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
- package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
- package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
- package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
- package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
- package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
- package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
- package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
- package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
- package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
- package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
- package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
- package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
- package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
- package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
- package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
- package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
- package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
- package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
- package/dist/cli.js +719 -532
- package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
- package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
- package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
- package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
- package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
- package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
- package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
- package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
- package/dist/dagre-CZ6P9L_h.js +1 -0
- package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
- package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
- package/dist/dagre-J_1oH0eY.mjs +1934 -0
- package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
- package/dist/defaultLocale-ybN1Vtvg.js +1 -0
- package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
- package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
- package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
- package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
- package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
- package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
- package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
- package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
- package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
- package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
- package/dist/dist-CXWJafG_.js +1 -0
- package/dist/dist-DNdLIC8h.mjs +59 -0
- package/dist/docmedown.cjs +125 -44
- package/dist/docmedown.iife.js +3477 -72
- package/dist/docmedown.mjs +10003 -4807
- package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
- package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
- package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
- package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
- package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
- package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
- package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
- package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
- package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
- package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
- package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
- package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
- package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
- package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
- package/dist/graphlib-BaETKKSa.js +1 -0
- package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
- package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
- package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
- package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
- package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
- package/dist/init-BJdqMO10.js +1 -0
- package/dist/init-CsQUQz36.mjs +13 -0
- package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
- package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
- package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
- package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
- package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
- package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
- package/dist/line-BEwhHSLl.js +1 -0
- package/dist/line-CiXRog8O.mjs +34 -0
- package/dist/linear-75tfjrny.js +1 -0
- package/dist/linear-Ncx_RuON.mjs +288 -0
- package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
- package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
- package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
- package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
- package/dist/ordinal-B1BNQwUR.mjs +65 -0
- package/dist/ordinal-B9aFWmF9.js +1 -0
- package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
- package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
- package/dist/path-CnWkkRiY.mjs +84 -0
- package/dist/path-DIS6ck99.js +1 -0
- package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
- package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
- package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
- package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
- package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
- package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
- package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
- package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
- package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
- package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
- package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
- package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
- package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
- package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
- package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
- package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
- package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
- package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
- package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
- package/dist/rough.esm-ChRLLRha.js +1 -0
- package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
- package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
- package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
- package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
- package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
- package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
- package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
- package/dist/src-B4mN2BMl.js +1 -0
- package/dist/src-D_hsMyeP.mjs +2154 -0
- package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
- package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
- package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
- package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
- package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
- package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
- package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
- package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
- package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
- package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
- package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
- package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
- package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
- package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
- package/dist/types/runtime/app.d.ts +3 -3
- package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
- package/dist/types/runtime/components/Builtins.d.ts +3 -3
- package/dist/types/runtime/components/Content.d.ts +1 -1
- package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
- package/dist/types/runtime/components/Layout.d.ts +1 -1
- package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
- package/dist/types/runtime/components/Navbar.d.ts +1 -1
- package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
- package/dist/types/runtime/components/Sidebar.d.ts +1 -1
- package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
- package/dist/types/runtime/config-schema.d.ts +386 -0
- package/dist/types/runtime/config.d.ts +10 -3
- package/dist/types/runtime/index.d.ts +7 -5
- package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
- package/dist/types/runtime/loader/local-loader.d.ts +1 -1
- package/dist/types/runtime/loader/remote-github.d.ts +2 -2
- package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
- package/dist/types/runtime/markdown/callouts.d.ts +1 -1
- package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
- package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
- package/dist/types/runtime/markdown/parser.d.ts +1 -1
- package/dist/types/runtime/markdown/renderer.d.ts +1 -1
- package/dist/types/runtime/offline-export.d.ts +26 -0
- package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
- package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
- package/dist/types/runtime/search/SearchModal.d.ts +2 -2
- package/dist/types/runtime/search/search-index.d.ts +1 -1
- package/dist/types/runtime/types.d.ts +28 -99
- package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
- package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
- package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
- package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
- package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
- package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
- package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
- package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
- package/package.json +15 -4
- package/schemas/docs.schema.json +166 -0
- package/templates/README.md +4 -4
- package/templates/docs.json +5 -2
- package/templates/getting-started.md +1 -1
- package/templates/guides/custom-components.md +2 -0
- package/templates/index.html +2 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js"),n=require("./chunk-DU6HZSFF-CWc5ewtb.js"),r=require("./ordinal-B9aFWmF9.js");function i(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var a=i(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function o(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function s(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function c(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function l(e){return e.target.depth}function u(e){return e.depth}function d(e,t){return t-1-e.height}function f(e,t){return e.sourceLinks.length?e.depth:t-1}function p(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?s(e.sourceLinks,l)-1:0}function m(e){return function(){return e}}function h(e,t){return _(e.source,t.source)||e.index-t.index}function g(e,t){return _(e.target,t.target)||e.index-t.index}function _(e,t){return e.y0-t.y0}function v(e){return e.value}function y(e){return e.index}function b(e){return e.nodes}function x(e){return e.links}function S(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function C({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function w(){let e=0,t=0,n=1,r=1,i=24,a=8,l,u=y,d=f,p,w,T=b,E=x,D=6;function O(){let e={nodes:T.apply(null,arguments),links:E.apply(null,arguments)};return k(e),A(e),j(e),M(e),F(e),C(e),e}O.update=function(e){return C(e),e},O.nodeId=function(e){return arguments.length?(u=typeof e==`function`?e:m(e),O):u},O.nodeAlign=function(e){return arguments.length?(d=typeof e==`function`?e:m(e),O):d},O.nodeSort=function(e){return arguments.length?(p=e,O):p},O.nodeWidth=function(e){return arguments.length?(i=+e,O):i},O.nodePadding=function(e){return arguments.length?(a=l=+e,O):a},O.nodes=function(e){return arguments.length?(T=typeof e==`function`?e:m(e),O):T},O.links=function(e){return arguments.length?(E=typeof e==`function`?e:m(e),O):E},O.linkSort=function(e){return arguments.length?(w=e,O):w},O.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],O):[n-e,r-t]},O.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],O):[[e,t],[n,r]]},O.iterations=function(e){return arguments.length?(D=+e,O):D};function k({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[u(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=S(n,t)),typeof i!=`object`&&(i=r.target=S(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(w!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(w),n.sort(w)}function A({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(c(t.sourceLinks,v),c(t.targetLinks,v)):t.fixedValue}function j({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function M({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function N({nodes:t}){let r=o(t,e=>e.depth)+1,a=(n-e-i)/(r-1),s=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(d.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,s[t]?s[t].push(n):s[t]=[n]}if(p)for(let e of s)e.sort(p);return s}function P(e){let n=s(e,e=>(r-t-(e.length-1)*l)/c(e,v));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+l;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+l)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}H(i)}}function F(e){let n=N(e);l=Math.min(a,(r-t)/(o(n,e=>e.length)-1)),P(n);for(let e=0;e<D;++e){let t=.99**e,r=Math.max(1-t,(e+1)/D);L(n,t,r),I(n,t,r)}}function I(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=U(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}p===void 0&&i.sort(_),R(i,n)}}function L(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=W(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}p===void 0&&i.sort(_),R(i,n)}}function R(e,n){let i=e.length>>1,a=e[i];B(e,a.y0-l,i-1,n),z(e,a.y1+l,i+1,n),B(e,r,e.length-1,n),z(e,t,0,n)}function z(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+l}}function B(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-l}}function V({sourceLinks:e,targetLinks:t}){if(w===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(g);for(let{target:{targetLinks:t}}of e)t.sort(h)}}function H(e){if(w===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(g),n.sort(h)}function U(e,t){let n=e.y0-(e.sourceLinks.length-1)*l/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+l}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function W(e,t){let n=t.y0-(t.targetLinks.length-1)*l/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+l}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return O}var T=Math.PI,E=2*T,D=1e-6,O=E-D;function k(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function A(){return new k}k.prototype=A.prototype={constructor:k,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>D){if(!(Math.abs(u*s-c*l)>D)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((T-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>D&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>D||Math.abs(this._y1-l)>D)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%E+E),d>O?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>D&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=T)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function j(e){return function(){return e}}function M(e){return e[0]}function N(e){return e[1]}var P=Array.prototype.slice;function F(e){return e.source}function I(e){return e.target}function L(e){var t=F,n=I,r=M,i=N,a=null;function o(){var o,s=P.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=A(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:j(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:j(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function R(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function z(){return L(R)}function B(e){return[e.source.x1,e.y0]}function V(e){return[e.target.x0,e.y1]}function H(){return z().source(B).target(V)}var U=(function(){var e=t.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,9],r=[1,10],i=[1,5,10,12],a={trace:t.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(i,[2,8]),e(i,[2,9]),{19:[1,16]},e(i,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(i,[2,10]),{15:21,16:7,17:8,18:n,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.n(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};a.lexer=(function(){return{EOF:1,parseError:t.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.n(function(){return this._more=!0,this},`more`),reject:t.n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.n(function(){return this.next()||this.lex()},`lex`),begin:t.n(function(e){this.conditionStack.push(e)},`begin`),popState:t.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.n(function(e){this.begin(e)},`pushState`),stateStackSize:t.n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.n(function(e,t,n,r){switch(n){case 0:return this.pushState(`csv`),4;case 1:return this.pushState(`csv`),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState(`escaped_text`),18;case 6:return 20;case 7:return this.popState(`escaped_text`),18;case 8:return 19}},`anonymous`),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}})();function o(){this.yy={}}return t.n(o,`Parser`),o.prototype=a,a.Parser=o,new o})();U.parser=U;var W=U,G=[],K=[],q=new Map,J=t.n(()=>{G=[],K=[],q=new Map,n.a()},`clear`),Y=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static{t.n(this,`SankeyLink`)}},X=t.n((e,t,n)=>{G.push(new Y(e,t,n))},`addLink`),Z=class{constructor(e){this.ID=e}static{t.n(this,`SankeyNode`)}},Q={nodesMap:q,getConfig:t.n(()=>n.x().sankey,`getConfig`),getNodes:t.n(()=>K,`getNodes`),getLinks:t.n(()=>G,`getLinks`),getGraph:t.n(()=>({nodes:K.map(e=>({id:e.ID})),links:G.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:X,findOrCreateNode:t.n(e=>{e=n.s.sanitizeText(e,n.x());let t=q.get(e);return t===void 0&&(t=new Z(e),q.set(e,t),K.push(t)),t},`findOrCreateNode`),getAccTitle:n.y,setAccTitle:n.U,getAccDescription:n.v,setAccDescription:n.H,getDiagramTitle:n.w,setDiagramTitle:n.K,clear:J},$=class e{static{t.n(this,`Uid`)}static{this.count=0}static next(t){return new e(t+ ++e.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},ee={left:u,right:d,center:p,justify:f},te=t.n(e=>{let t=0,n=0;for(let r of e){let e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},`findCentralNodeLayer`),ne={draw:t.n(function(i,o,s,c){let{securityLevel:l,sankey:u}=n.x(),d=n.d.sankey,f;l===`sandbox`&&(f=e.p(`#i`+o));let p=l===`sandbox`?e.p(f.nodes()[0].contentDocument.body):e.p(`body`),m=l===`sandbox`?p.select(`[id="${o}"]`):e.p(`[id="${o}"]`),h=u?.width??d.width,g=u?.height??d.width,_=u?.useMaxWidth??d.useMaxWidth,v=u?.nodeAlignment??d.nodeAlignment,y=u?.prefix??d.prefix,b=u?.suffix??d.suffix,x=u?.showValues??d.showValues,S=u?.nodeWidth??d.nodeWidth??10,C=u?.nodePadding??d.nodePadding??12,T=u?.labelStyle??d.labelStyle??`legacy`,E=u?.nodeColors??{},D=c.db.getGraph(),O=ee[v];w().nodeId(e=>e.id).nodeWidth(S).nodePadding(C+(x?15:0)).nodeAlign(O).extent([[0,0],[h,g]])(D);let k=te(D.nodes),A=r.t(a),j=t.n(e=>E[e]??A(e),`getNodeColor`);m.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(D.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=$.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>j(e.id));let M=t.n(({id:e,value:t})=>x?`${e}
|
|
7
|
+
${y}${Math.round(t*100)/100}${b}`:e,`getText`),N=t.n(e=>T===`outlined`?(e.layer??0)<k?{x:e.x0-6,anchor:`end`}:{x:e.x1+6,anchor:`start`}:e.x0<h/2?{x:e.x1+6,anchor:`start`}:{x:e.x0-6,anchor:`end`},`getLabelPosition`),P=m.append(`g`).attr(`class`,`node-labels`).attr(`font-size`,14),F=t.n(e=>P.selectAll(e?`.${e}`:`text`).data(D.nodes).join(`text`).attr(`class`,e??null).attr(`x`,e=>N(e).x).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${x?`0`:`0.35`}em`).attr(`text-anchor`,e=>N(e).anchor).text(M),`appendLabel`);T===`outlined`?(F(`sankey-label-bg`),F(`sankey-label-fg`)):F();let I=m.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(D.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),L=u?.linkColor??`gradient`;if(L===`gradient`){let e=I.append(`linearGradient`).attr(`id`,e=>(e.uid=$.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>j(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>j(e.target.id))}let R;switch(L){case`gradient`:R=t.n(e=>e.uid,`coloring`);break;case`source`:R=t.n(e=>j(e.source.id),`coloring`);break;case`target`:R=t.n(e=>j(e.target.id),`coloring`);break;default:R=L}I.append(`path`).attr(`d`,H()).attr(`stroke`,R).attr(`stroke-width`,e=>Math.max(1,e.width)),n.J(void 0,m,0,_)},`draw`)},re=t.n(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),`prepareTextForParsing`),ie=t.n(e=>`.label {
|
|
9
|
+
font-family: ${e.fontFamily};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node-labels {
|
|
13
|
+
font-family: ${e.fontFamily};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Outlined label style - background stroke for better readability */
|
|
17
|
+
.sankey-label-bg {
|
|
18
|
+
stroke: ${e.mainBkg||e.background||`#fff`};
|
|
19
|
+
stroke-width: 4px;
|
|
20
|
+
stroke-linejoin: round;
|
|
21
|
+
paint-order: stroke;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Foreground label text */
|
|
25
|
+
.sankey-label-fg {
|
|
26
|
+
fill: ${e.textColor};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Node styling */
|
|
30
|
+
.node rect {
|
|
31
|
+
shape-rendering: crispEdges;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Link styling */
|
|
35
|
+
.link {
|
|
36
|
+
fill: none;
|
|
37
|
+
stroke-opacity: 0.5;
|
|
38
|
+
mix-blend-mode: multiply;
|
|
39
|
+
}
|
|
40
|
+
`,`getStyles`),ae=W.parse.bind(W);W.parse=e=>ae(re(e));var oe={styles:ie,parser:W,db:Q,renderer:ne};exports.diagram=oe;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js"),n=require("./chunk-DU6HZSFF-CWc5ewtb.js"),r=require("./dist-CXWJafG_.js"),i=require("./chunk-75Z2AOVW-DYouz5MZ.js"),a=require("./chunk-LNGE3PJU-BQX75wkM.js"),o=require("./chunk-F27PBJKO-8jvY_jJK.js"),s=require("./chunk-2Q5K7J3B-DhjCNjaM.js");var c=r.t(),l=(function(){var e=t.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],R=[1,80],ee=[1,81],te=[1,82],ne=[1,83],re=[1,84],ie=[1,85],ae=[1,86],oe=[1,87],se=[1,88],ce=[1,89],le=[1,90],ue=[1,91],de=[1,92],fe=[1,93],pe=[1,94],me=[1,95],he=[1,96],z=[1,97],ge=[1,98],B=[1,99],V=[1,100],H=[1,101],_e=[1,102],ve=[1,103],U=[1,104],W=[1,105],G=[2,78],K=[4,5,17,51,53,54],q=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],J=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Y=[5,52],X=[70,71,72,73],Z=[1,151],Q={trace:t.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:t.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:F},{69:78,72:[1,79],78:R,79:ee,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le,89:ue,90:de,91:fe,92:pe,93:me,94:he,95:z,96:ge,97:B,98:V,99:H,100:_e,101:ve,102:U,103:W},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],G),e(I,[2,6]),e(I,[2,16]),e(K,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(q,a,{7:120}),e(q,a,{7:121}),e(q,a,{7:122}),e(ye,a,{41:123,7:124}),e(J,a,{43:125,7:126}),e(J,a,{7:126,43:127}),e(be,a,{46:128,7:129}),e(q,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Y,G,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:R,79:ee,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le,89:ue,90:de,91:fe,92:pe,93:me,94:he,95:z,96:ge,97:B,98:V,99:H,100:_e,101:ve,102:U,103:W},e(X,[2,79]),e(X,[2,80]),e(X,[2,81]),e(X,[2,82]),e(X,[2,83]),e(X,[2,84]),e(X,[2,85]),e(X,[2,86]),e(X,[2,87]),e(X,[2,88]),e(X,[2,89]),e(X,[2,90]),e(X,[2,91]),e(X,[2,92]),e(X,[2,93]),e(X,[2,94]),e(X,[2,95]),e(X,[2,96]),e(X,[2,97]),e(X,[2,98]),e(X,[2,99]),e(X,[2,100]),e(X,[2,101]),e(X,[2,102]),e(X,[2,103]),e(X,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:Z},{58:152,104:Z},{58:153,104:Z},{58:154,104:Z},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Y,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:Z},{23:181,72:[1,182],73:F},{58:183,104:Z},{58:184,104:Z},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(K,[2,11]),{13:186,51:D,53:O,54:k},e(K,[2,13]),e(K,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:Z},{58:196,104:Z},{58:197,104:Z},{5:[2,75]},{58:198,104:Z},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(K,[2,12]),e(ye,a,{7:124,41:201}),e(J,a,{7:126,43:202}),e(be,a,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Y,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:Z},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:t.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.n(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Q.lexer=(function(){return{EOF:1,parseError:t.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.n(function(){return this._more=!0,this},`more`),reject:t.n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.n(function(){return this.next()||this.lex()},`lex`),begin:t.n(function(e){this.conditionStack.push(e)},`begin`),popState:t.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.n(function(e){this.begin(e)},`pushState`),stateStackSize:t.n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.n(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}})();function $(){this.yy={}}return t.n($,`Parser`),$.prototype=Q,Q.Parser=$,new $})();l.parser=l;var u=l,d={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},f={FILLED:0,OPEN:1},p={LEFTOF:0,RIGHTOF:1,OVER:2},m={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},h=class{constructor(){this.state=new s.t(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=n.U,this.setAccDescription=n.H,this.setDiagramTitle=n.K,this.getAccTitle=n.y,this.getAccDescription=n.v,this.getDiagramTitle=n.w,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(n.x().wrap),this.LINETYPE=d,this.ARROWTYPE=f,this.PLACEMENT=p}static{t.n(this,`SequenceDB`)}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let o=this.state.records.currentBox,s;if(i!==void 0){let e;e=i.includes(`
|
|
7
|
+
`)?i+`
|
|
8
|
+
`:`{
|
|
9
|
+
`+i+`
|
|
10
|
+
}`,s=a.n(e,{schema:a.t})}r=s?.type??r,s?.alias&&(!n||n.text===t)&&(n={text:s.alias,wrap:n?.wrap,type:r});let c=this.state.records.actors.get(e);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&t===c.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:o,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:r})}addSignal(e,t,n,r,i=!1,a){if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(e??``)<1){let t=Error(`Trying to inactivate an inactive participant (`+e+`)`);throw t.hash={text:`->>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)!==null||/^:?nowrap:/.exec(e)===null&&void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?n.x().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),n.a()}parseMessage(t){let n=t.trim(),{wrap:r,cleanedText:i}=this.extractWrap(n),a={text:i,wrap:r};return e.m.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),r=t?.[1]?t[1].trim():`transparent`,i=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,r)||(r=`transparent`,i=e.trim());else{let t=new Option().style;t.color=r,t.color!==r&&(r=`transparent`,i=e.trim())}let{wrap:a,cleanedText:o}=this.extractWrap(i);return{text:o?n.z(o,n.x()):void 0,color:r,wrap:a}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(t,r){let i=this.getActor(t);try{let e=n.z(r.text,n.x());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let t=JSON.parse(e);this.insertLinks(i,t)}catch(t){e.m.error(`error while parsing actor link text`,t)}}addALink(t,r){let i=this.getActor(t);try{let e={},t=n.z(r.text,n.x()),a=t.indexOf(`@`);t=t.replace(/=/g,`=`),t=t.replace(/&/g,`&`);let o=t.slice(0,a-1).trim();e[o]=t.slice(a+1).trim(),this.insertLinks(i,e)}catch(t){e.m.error(`error while parsing actor link text`,t)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(t,r){let i=this.getActor(t);try{let e=n.z(r.text,n.x()),t=JSON.parse(e);this.insertProperties(i,t)}catch(t){e.m.error(`error while parsing actor properties text`,t)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,n){let r=this.getActor(t),i=document.getElementById(n.text);try{let e=i.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(r,t.properties),t.links&&this.insertLinks(r,t.links)}catch(t){e.m.error(`error while parsing actor details text`,t)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:n.U(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType)}}getConfig(){return n.x().sequence}},g=t.n(e=>{let t=e.dropShadow??`none`,{look:r}=n.x();return`.actor {
|
|
11
|
+
stroke: ${e.actorBorder};
|
|
12
|
+
fill: ${e.actorBkg};
|
|
13
|
+
stroke-width: ${e.strokeWidth??1};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
rect.actor.outer-path[data-look="neo"] {
|
|
17
|
+
filter: ${t};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
rect.note[data-look="neo"] {
|
|
21
|
+
stroke:${e.noteBorderColor};
|
|
22
|
+
fill:${e.noteBkgColor};
|
|
23
|
+
filter: ${t};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
text.actor > tspan {
|
|
27
|
+
fill: ${e.actorTextColor};
|
|
28
|
+
stroke: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.actor-line {
|
|
32
|
+
stroke: ${e.actorLineColor};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.innerArc {
|
|
36
|
+
stroke-width: 1.5;
|
|
37
|
+
stroke-dasharray: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.messageLine0 {
|
|
41
|
+
stroke-width: 1.5;
|
|
42
|
+
stroke-dasharray: none;
|
|
43
|
+
stroke: ${e.signalColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.messageLine1 {
|
|
47
|
+
stroke-width: 1.5;
|
|
48
|
+
stroke-dasharray: 2, 2;
|
|
49
|
+
stroke: ${e.signalColor};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[id$="-arrowhead"] path {
|
|
53
|
+
fill: ${e.signalColor};
|
|
54
|
+
stroke: ${e.signalColor};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sequenceNumber {
|
|
58
|
+
fill: ${e.sequenceNumberColor};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[id$="-sequencenumber"] {
|
|
62
|
+
fill: ${e.signalColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[id$="-crosshead"] path {
|
|
66
|
+
fill: ${e.signalColor};
|
|
67
|
+
stroke: ${e.signalColor};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.messageText {
|
|
71
|
+
fill: ${e.signalTextColor};
|
|
72
|
+
stroke: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.labelBox {
|
|
76
|
+
stroke: ${e.labelBoxBorderColor};
|
|
77
|
+
fill: ${e.labelBoxBkgColor};
|
|
78
|
+
filter: ${r===`neo`?t:`none`};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.labelText, .labelText > tspan {
|
|
82
|
+
fill: ${e.labelTextColor};
|
|
83
|
+
stroke: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.loopText, .loopText > tspan {
|
|
87
|
+
fill: ${e.loopTextColor};
|
|
88
|
+
stroke: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sectionTitle, .sectionTitle > tspan {
|
|
92
|
+
fill: ${e.loopTextColor};
|
|
93
|
+
stroke: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.loopLine {
|
|
97
|
+
stroke-width: 2px;
|
|
98
|
+
stroke-dasharray: 2, 2;
|
|
99
|
+
stroke: ${e.labelBoxBorderColor};
|
|
100
|
+
fill: ${e.labelBoxBorderColor};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.note {
|
|
104
|
+
//stroke: #decc93;
|
|
105
|
+
stroke: ${e.noteBorderColor};
|
|
106
|
+
fill: ${e.noteBkgColor};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.noteText, .noteText > tspan {
|
|
110
|
+
fill: ${e.noteTextColor};
|
|
111
|
+
stroke: none;
|
|
112
|
+
${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:``}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.activation0 {
|
|
116
|
+
fill: ${e.activationBkgColor};
|
|
117
|
+
stroke: ${e.activationBorderColor};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.activation1 {
|
|
121
|
+
fill: ${e.activationBkgColor};
|
|
122
|
+
stroke: ${e.activationBorderColor};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.activation2 {
|
|
126
|
+
fill: ${e.activationBkgColor};
|
|
127
|
+
stroke: ${e.activationBorderColor};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.actorPopupMenu {
|
|
131
|
+
position: absolute;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.actorPopupMenuPanel {
|
|
135
|
+
position: absolute;
|
|
136
|
+
fill: ${e.actorBkg};
|
|
137
|
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
138
|
+
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
139
|
+
}
|
|
140
|
+
.actor-man circle, line {
|
|
141
|
+
fill: ${e.actorBkg};
|
|
142
|
+
stroke-width: 2px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
g rect.rect {
|
|
146
|
+
filter: ${t};
|
|
147
|
+
stroke: ${e.nodeBorder};
|
|
148
|
+
}
|
|
149
|
+
`},`getStyles`),_=36,v=`actor-top`,y=`actor-bottom`,b=`actor-box`,x=`actor-man`,S=new Set([`redux-color`,`redux-dark-color`]),C=t.n(function(e,t){let r=o.a(e,t);return n.b().look===`neo`&&r.attr(`data-look`,`neo`),r},`drawRect`),w=t.n(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;s.class!==void 0&&(d=` `+s.class);let f=s.width>n?s.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,s.x),p.attr(`y`,s.height),p.attr(`fill`,s.fill),p.attr(`stroke`,s.stroke),p.attr(`width`,f),p.attr(`height`,s.height),p.attr(`rx`,s.rx),p.attr(`ry`,s.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,c.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),ge(r)(e,h,s.x+10,s.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:s.height+m,width:f}},`drawPopup`),T=t.n(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),E=t.n(async function(e,t,r=null){let i=e.append(`foreignObject`),a=await n.F(t.text,n.b()),o=i.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(a).node().getBoundingClientRect();if(i.attr(`height`,Math.round(o.height)).attr(`width`,Math.round(o.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,o.height+2*t.textMargin);let r=n.getBBox();i.attr(`x`,Math.round(r.x+r.width/2-o.width/2)).attr(`y`,Math.round(r.y+r.height/2-o.height/2))}else if(r){let{startx:e,stopx:n,starty:a}=r;if(e>n){let t=e;e=n,n=t}i.attr(`x`,Math.round(e+Math.abs(e-n)/2-o.width/2)),t.class===`loopText`?i.attr(`y`,Math.round(a)):i.attr(`y`,Math.round(a-o.height))}return[i]},`drawKatex`),D=t.n(function(e,r){let a=0,o=0,s=r.text.split(n.s.lineBreakRegex),[c,l]=i.p(r.fontSize),u=[],d=0,f=t.n(()=>r.y,`yfunc`);if(r.valign!==void 0&&r.textMargin!==void 0&&r.textMargin>0)switch(r.valign){case`top`:case`start`:f=t.n(()=>Math.round(r.y+r.textMargin),`yfunc`);break;case`middle`:case`center`:f=t.n(()=>Math.round(r.y+(a+o+r.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:f=t.n(()=>Math.round(r.y+(a+o+2*r.textMargin)-r.textMargin),`yfunc`)}if(r.anchor!==void 0&&r.textMargin!==void 0&&r.width!==void 0)switch(r.anchor){case`left`:case`start`:r.x=Math.round(r.x+r.textMargin),r.anchor=`start`,r.dominantBaseline=`middle`,r.alignmentBaseline=`middle`;break;case`middle`:case`center`:r.x=Math.round(r.x+r.width/2),r.anchor=`middle`,r.dominantBaseline=`middle`,r.alignmentBaseline=`middle`;break;case`right`:case`end`:r.x=Math.round(r.x+r.width-r.textMargin),r.anchor=`end`,r.dominantBaseline=`middle`,r.alignmentBaseline=`middle`}for(let[t,n]of s.entries()){r.textMargin!==void 0&&r.textMargin===0&&c!==void 0&&(d=t*c);let i=e.append(`text`);i.attr(`x`,r.x),i.attr(`y`,f()),r.anchor!==void 0&&i.attr(`text-anchor`,r.anchor).attr(`dominant-baseline`,r.dominantBaseline).attr(`alignment-baseline`,r.alignmentBaseline),r.fontFamily!==void 0&&i.style(`font-family`,r.fontFamily),l!==void 0&&i.style(`font-size`,l),r.fontWeight!==void 0&&i.style(`font-weight`,r.fontWeight),r.fill!==void 0&&i.attr(`fill`,r.fill),r.class!==void 0&&i.attr(`class`,r.class),r.dy===void 0?d!==0&&i.attr(`dy`,d):i.attr(`dy`,r.dy);let s=n||``;if(r.tspan){let e=i.append(`tspan`);e.attr(`x`,r.x),r.fill!==void 0&&e.attr(`fill`,r.fill),e.text(s)}else i.text(s);r.valign!==void 0&&r.textMargin!==void 0&&r.textMargin>0&&(o+=(i._groups||i)[0][0].getBBox().height,a=o),u.push(i)}return u},`drawText`),O=t.n(function(e,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}t.n(r,`genPoints`);let i=e.append(`polygon`);return i.attr(`points`,r(n.x,n.y,n.width,n.height,7)),i.attr(`class`,`labelBox`),n.y+=n.height/2,D(e,n),i},`drawLabel`),k=-1,A=t.n((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),j=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+t.height,{look:u,theme:d,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower();var g=h;i||(k++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr(`onclick`,T(`actor${k}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=k,t.links!=null&&g.attr(`id`,`root-`+k),u===`neo`&&g.attr(`data-look`,`neo`));let _=o.s();var x=`actor`;t.properties?.class?x=t.properties.class:_.fill=`#eaeaea`,x+=i?` ${y}`:` ${v}`,_.x=t.x,_.y=s,_.width=t.width,_.height=t.height,_.class=x,_.rx=3,_.ry=3,_.name=t.name,u===`neo`&&(_.rx=6,_.ry=6);let w=C(g,_),E=a.get(t.name)??0;if(S.has(d)&&(w.style(`stroke`,m[E%m.length]),w.style(`fill`,p[E%m.length])),u===`neo`&&w.attr(`filter`,`url(#drop-shadow)`),t.rectData=_,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?o.r(g,_.x+_.width-20,_.y+10,e.substr(1)):o.i(g,_.x+_.width-20,_.y+10,e)}i||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`participant`),g.attr(`data-id`,t.name)),z(r,n.A(t.description))(t.description,g,_.x,_.y,_.width,_.height,{class:`actor ${b}`},r);let D=t.height;if(w.node){let e=w.node().getBBox();t.height=e.height,D=e.height}return D},`drawActorTypeParticipant`),M=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+t.height,{look:u,theme:d,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower();var g=h;i||(k++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr(`onclick`,T(`actor${k}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=k,t.links!=null&&g.attr(`id`,`root-`+k),u===`neo`&&g.attr(`data-look`,`neo`));let _=o.s();var x=`actor`;t.properties?.class?x=t.properties.class:_.fill=`#eaeaea`,x+=i?` ${y}`:` ${v}`,_.x=t.x,_.y=s,_.width=t.width,_.height=t.height,_.class=x,_.name=t.name;let w={..._,x:_.x+-6,y:_.y+6,class:`actor`},E=C(g,_),D=C(g,w);t.rectData=_,u===`neo`&&g.attr(`filter`,`url(#drop-shadow)`);let O=a.get(t.name)??0;if(S.has(d)&&(E.style(`stroke`,m[O%m.length]),E.style(`fill`,p[O%m.length]),D.style(`stroke`,m[O%m.length]),D.style(`fill`,p[O%m.length])),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?o.r(g,_.x+_.width-20,_.y+10,e.substr(1)):o.i(g,_.x+_.width-20,_.y+10,e)}z(r,n.A(t.description))(t.description,g,_.x-6,_.y+6,_.width,_.height,{class:`actor ${b}`},r);let A=t.height;if(E.node){let e=E.node().getBBox();t.height=e.height,A=e.height}return i||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`collections`),g.attr(`data-id`,t.name)),A},`drawActorTypeCollections`),N=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+t.height,{look:u,theme:d,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower(),g=h;i||(k++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr(`onclick`,T(`actor${k}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=k,t.links!=null&&g.attr(`id`,`root-`+k),u===`neo`&&g.attr(`data-look`,`neo`));let _=o.s(),x=`actor`;t.properties?.class?x=t.properties.class:_.fill=`#eaeaea`,x+=i?` ${y}`:` ${v}`,g.attr(`class`,x),_.x=t.x,_.y=s,_.width=t.width,_.height=t.height,_.name=t.name;let C=_.height/2,w=C/(2.5+_.height/50),E=g.append(`g`),D=g.append(`g`),O=`M ${_.x},${_.y+C}
|
|
150
|
+
a ${w},${C} 0 0 0 0,${_.height}
|
|
151
|
+
h ${_.width-2*w}
|
|
152
|
+
a ${w},${C} 0 0 0 0,-${_.height}
|
|
153
|
+
Z
|
|
154
|
+
`;E.append(`path`).attr(`d`,O),D.append(`path`).attr(`d`,`M ${_.x},${_.y+C}
|
|
155
|
+
a ${w},${C} 0 0 0 0,${_.height}`),E.attr(`transform`,`translate(${w}, ${-(_.height/2)})`),D.attr(`transform`,`translate(${_.width-w}, ${-_.height/2})`),t.rectData=_,u===`neo`&&E.attr(`filter`,`url(#drop-shadow)`);let A=a.get(t.name)??0;if(S.has(d)&&(E.style(`stroke`,m[A%m.length]),E.style(`fill`,p[A%m.length]),D.style(`stroke`,m[A%m.length]),D.style(`fill`,p[A%m.length])),t.properties?.icon){let e=t.properties.icon.trim(),n=_.x+_.width-20,r=_.y+10;e.charAt(0)===`@`?o.r(g,n,r,e.substr(1)):o.i(g,n,r,e)}z(r,n.A(t.description))(t.description,g,_.x,_.y,_.width,_.height,{class:`actor ${b}`},r);let j=t.height,M=E.select(`path:last-child`);if(M.node()){let e=M.node().getBBox();t.height=e.height,j=e.height}return i||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`queue`),g.attr(`data-id`,t.name)),j},`drawActorTypeQueue`),P=t.n(function(e,t,r,i,a,s){let c=i?t.stopy:t.starty,l=t.x+t.width/2,u=c+75,{look:d,theme:f,themeVariables:p}=r,{bkgColorArray:m,borderColorArray:h,actorBorder:g,actorBkg:_}=p,b=e.append(`g`).lower();i||(k++,b.append(`line`).attr(`id`,`actor`+k).attr(`x1`,l).attr(`y1`,u).attr(`x2`,l).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=k);let C=e.append(`g`),w=x;w+=i?` ${y}`:` ${v}`,C.attr(`class`,w),C.attr(`name`,t.name);let T=o.s();T.x=t.x,T.y=c,T.fill=`#eaeaea`,T.width=t.width,T.height=t.height,T.class=`actor`;let E=t.x+t.width/2,D=c+32;C.append(`defs`).append(`marker`).attr(`id`,a+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),C.append(`circle`).attr(`cx`,E).attr(`cy`,D).attr(`r`,22).attr(`filter`,`${d===`neo`?`url(#drop-shadow)`:``}`),C.append(`line`).attr(`marker-end`,`url(#`+a+`-filled-head-control)`).attr(`transform`,`translate(${E}, ${D-22})`);let O=s.get(t.name)??0;return S.has(f)?(C.style(`stroke`,h[O%h.length]),C.style(`fill`,m[O%h.length])):(C.style(`stroke`,g),C.style(`fill`,_)),t.height=C.node().getBBox().height+2*(r?.sequence?.labelBoxHeight??0),z(r,n.A(t.description))(t.description,C,T.x,T.y+22+(i?5:12),T.width,T.height,{class:`actor ${x}`},r),i||(C.attr(`data-et`,`participant`),C.attr(`data-type`,`control`),C.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),F=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+75,{look:u,theme:d,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower(),g=e.append(`g`),_=`actor`;_+=i?` ${y}`:` ${v}`,g.attr(`class`,_),g.attr(`name`,t.name);let b=o.s();b.x=t.x,b.y=s,b.fill=`#eaeaea`,b.width=t.width,b.height=t.height,b.class=`actor`;let C=t.x+t.width/2,w=s+(i?10:25);g.append(`circle`).attr(`cx`,C).attr(`cy`,w).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),g.append(`line`).attr(`x1`,C-22).attr(`x2`,C+22).attr(`y1`,w+22).attr(`y2`,w+22).attr(`stroke-width`,2),u===`neo`&&g.attr(`filter`,`url(#drop-shadow)`);let T=a.get(t.name)??0;return S.has(d)&&(g.style(`stroke`,m[T%m.length]),g.style(`fill`,p[T%m.length])),t.height=g.node().getBBox().height+(r?.sequence?.labelBoxHeight??0),i||(k++,h.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=k),z(r,n.A(t.description))(t.description,g,b.x,b.y+(i?15:30),b.width,b.height,{class:`actor ${x}`},r),i?g.attr(`transform`,`translate(0, 22)`):(g.attr(`transform`,`translate(0, 6)`),g.attr(`data-et`,`participant`),g.attr(`data-type`,`entity`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),I=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+t.height+2*r.boxTextMargin,{theme:u,themeVariables:d,look:f}=r,{bkgColorArray:p,borderColorArray:m,actorBorder:h}=d,g=e.append(`g`).lower(),_=g;i||(k++,Object.keys(t.links||{}).length&&!r.forceMenus&&_.attr(`onclick`,T(`actor${k}_popup`)).attr(`cursor`,`pointer`),_.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),_=g.append(`g`),t.actorCnt=k,t.links!=null&&_.attr(`id`,`root-`+k),f===`neo`&&_.attr(`data-look`,`neo`));let x=o.s(),C=`actor`;t.properties?.class?C=t.properties.class:x.fill=`#eaeaea`,C+=i?` ${y}`:` ${v}`,x.x=t.x,x.y=s,x.width=t.width,x.height=t.height,x.class=C,x.name=t.name,x.x=t.x,x.y=s;let w=x.width/3,E=x.width/3,D=w/2,O=D/(2.5+w/50),A=_.append(`g`);A.attr(`class`,C);let j=`
|
|
156
|
+
M ${x.x},${x.y+O}
|
|
157
|
+
a ${D},${O} 0 0 0 ${w},0
|
|
158
|
+
a ${D},${O} 0 0 0 -${w},0
|
|
159
|
+
l 0,${E-2*O}
|
|
160
|
+
a ${D},${O} 0 0 0 ${w},0
|
|
161
|
+
l 0,-${E-2*O}
|
|
162
|
+
`;A.append(`path`).attr(`d`,j),f===`neo`&&A.attr(`filter`,`url(#drop-shadow)`);let M=a.get(t.name)??0;S.has(u)?(A.style(`stroke`,m[M%m.length]),A.style(`fill`,p[M%m.length])):A.style(`stroke`,h),A.attr(`transform`,`translate(${w}, ${O})`),t.rectData=x,z(r,n.A(t.description))(t.description,_,x.x,x.y+35,x.width,x.height,{class:`actor ${b}`},r);let N=A.select(`path:last-child`);return N.node()&&(t.height=N.node().getBBox().height+(r.sequence.labelBoxHeight??0)),i||(_.attr(`data-et`,`participant`),_.attr(`data-type`,`database`),_.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),L=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+80,u=e.append(`g`).lower(),{look:d,theme:f,themeVariables:p}=r,{bkgColorArray:m,borderColorArray:h,actorBorder:g}=p;i||(k++,u.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=k);let _=e.append(`g`),b=x;b+=i?` ${y}`:` ${v}`,_.attr(`class`,b),_.attr(`name`,t.name);let C=o.s();C.x=t.x,C.y=s,C.fill=`#eaeaea`,C.width=t.width,C.height=t.height,C.class=`actor`,_.append(`line`).attr(`id`,`actor-man-torso`+k).attr(`x1`,t.x+t.width/2-55).attr(`y1`,s+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,s+12),_.append(`line`).attr(`id`,`actor-man-arms`+k).attr(`x1`,t.x+t.width/2-55).attr(`y1`,s+2).attr(`x2`,t.x+t.width/2-55).attr(`y2`,s+22),_.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,s+12).attr(`r`,22),d===`neo`&&_.attr(`filter`,`url(#drop-shadow)`);let w=a.get(t.name)??0;return S.has(f)?(_.style(`stroke`,h[w%h.length]),_.style(`fill`,m[w%h.length])):_.style(`stroke`,g),t.height=_.node().getBBox().height+(r.sequence.labelBoxHeight??0),z(r,n.A(t.description))(t.description,_,C.x,C.y+15,C.width,C.height,{class:`actor ${x}`},r),_.attr(`transform`,`translate(0,21)`),i||(_.attr(`data-et`,`participant`),_.attr(`data-type`,`boundary`),_.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),R=t.n(function(e,t,r,i,a){let s=i?t.stopy:t.starty,c=t.x+t.width/2,l=s+80,{look:u,theme:d,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:m,actorBorder:h}=f,g=e.append(`g`).lower();i||(k++,g.append(`line`).attr(`id`,`actor`+k).attr(`x1`,c).attr(`y1`,l).attr(`x2`,c).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=k);let b=e.append(`g`),C=x;C+=i?` ${y}`:` ${v}`,b.attr(`class`,C),b.attr(`name`,t.name),i||b.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let w=u===`neo`?.5:1,T=u===`neo`?s+(1-w)*30:s;b.append(`line`).attr(`id`,`actor-man-torso`+k).attr(`x1`,c).attr(`y1`,T+25*w).attr(`x2`,c).attr(`y2`,T+45*w),b.append(`line`).attr(`id`,`actor-man-arms`+k).attr(`x1`,c-_/2*w).attr(`y1`,T+33*w).attr(`x2`,c+_/2*w).attr(`y2`,T+33*w),b.append(`line`).attr(`x1`,c-_/2*w).attr(`y1`,T+60*w).attr(`x2`,c).attr(`y2`,T+45*w),b.append(`line`).attr(`x1`,c).attr(`y1`,T+45*w).attr(`x2`,c+(_/2-2)*w).attr(`y2`,T+60*w);let E=b.append(`circle`);E.attr(`cx`,t.x+t.width/2),E.attr(`cy`,T+10*w),E.attr(`r`,15*w),E.attr(`width`,t.width*w),E.attr(`height`,t.height*w),t.height=b.node().getBBox().height;let D=o.s();D.x=t.x,D.y=T,D.fill=`#eaeaea`,D.width=t.width,D.height=t.height/w,D.class=`actor`,D.rx=3,D.ry=3;let O=a.get(t.name)??0;return S.has(d)?(b.style(`stroke`,m[O%m.length]),b.style(`fill`,p[O%m.length])):b.style(`stroke`,h),z(r,n.A(t.description))(t.description,b,D.x,T+35*w-(u===`neo`?10:0),D.width,D.height,{class:`actor ${x}`},r),t.height},`drawActorTypeActor`),ee=t.n(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await R(e,t,n,r,s);case`participant`:return await j(e,t,n,r,s);case`boundary`:return await L(e,t,n,r,s);case`control`:return await P(e,t,n,r,i,s);case`entity`:return await F(e,t,n,r,s);case`database`:return await I(e,t,n,r,s);case`collections`:return await M(e,t,n,r,s);case`queue`:return await N(e,t,n,r,s)}},`drawActor`),te=t.n(function(e,t,n){let r=e.append(`g`);ae(r,t),t.name&&z(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),ne=t.n(function(e){return e.append(`g`)},`anchorElement`),re=t.n(function(e,t,n,r,i,a,s){let{theme:c,themeVariables:l}=r,{bkgColorArray:u,borderColorArray:d,mainBkg:f}=l,p=o.s(),m=t.anchored,h=t.actor;p.x=t.startx,p.y=t.starty,p.class=`activation`+i%3,p.width=t.stopx-t.startx,p.height=n-t.starty;let g=C(m,p),_=(s??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(h)??0;S.has(c)&&(g.style(`stroke`,d[_%d.length]),g.style(`fill`,u[_%d.length]??f))},`drawActivation`),ie=t.n(async function(e,r,i,a,s){let{boxMargin:c,boxTextMargin:l,labelBoxHeight:u,labelBoxWidth:d,messageFontFamily:f,messageFontSize:p,messageFontWeight:m}=a,h=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+s.id),g=t.n(function(e,t,n,r){return h.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);g(r.startx,r.starty,r.stopx,r.starty),g(r.stopx,r.starty,r.stopx,r.stopy),g(r.startx,r.stopy,r.stopx,r.stopy),g(r.startx,r.starty,r.startx,r.stopy),r.sections!==void 0&&r.sections.forEach(function(e){g(r.startx,e.y,r.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let _=o.c();_.text=i,_.x=r.startx,_.y=r.starty,_.fontFamily=f,_.fontSize=p,_.fontWeight=m,_.anchor=`middle`,_.valign=`middle`,_.tspan=!1,_.width=Math.max(d??0,50),_.height=u+(a.look===`neo`?15:0)||20,_.textMargin=l,_.class=`labelText`,O(h,_),_=me(),_.text=r.title,_.x=r.startx+d/2+(r.stopx-r.startx)/2,_.y=r.starty+c+l,_.anchor=`middle`,_.valign=`middle`,_.textMargin=l,_.class=`loopText`,_.fontFamily=f,_.fontSize=p,_.fontWeight=m,_.wrap=!0;let v=n.A(_.text)?await E(h,_,r):D(h,_);if(r.sectionTitles!==void 0){for(let[e,t]of Object.entries(r.sectionTitles))if(t.message){_.text=t.message,_.x=r.startx+(r.stopx-r.startx)/2,_.y=r.sections[e].y+c+l,_.class=`sectionTitle`,_.anchor=`middle`,_.valign=`middle`,_.tspan=!1,_.fontFamily=f,_.fontSize=p,_.fontWeight=m,_.wrap=r.wrap,n.A(_.text)?(r.starty=r.sections[e].y,await E(h,_,r)):D(h,_);let i=Math.round(v.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));r.sections[e].height+=i-(c+l)}}return r.height=Math.round(r.stopy-r.starty),h},`drawLoop`),ae=t.n(function(e,t){o.n(e,t)},`drawBackgroundRect`),oe=t.n(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),se=t.n(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),ce=t.n(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),le=t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),ue=t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,15.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),de=t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),fe=t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),pe=t.n(function(e,t){let{theme:n}=t;e.append(`defs`).append(`filter`).attr(`id`,`drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${n===`redux`||n===`redux-color`?`#000000`:`#FFFFFF`}`)},`insertDropShadow`),me=t.n(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),he=t.n(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),z=(function(){function e(e,t,n,r,i,a,o){s(t.append(`text`).attr(`x`,n+i/2).attr(`y`,r+a/2+5).style(`text-anchor`,`middle`).text(e),o)}t.n(e,`byText`);function r(e,t,r,a,o,c,l,u){let{actorFontSize:d,actorFontFamily:f,actorFontWeight:p}=u,[m,h]=i.p(d),g=e.split(n.s.lineBreakRegex);for(let e=0;e<g.length;e++){let n=e*m-m*(g.length-1)/2,i=t.append(`text`).attr(`x`,r+o/2).attr(`y`,a).style(`text-anchor`,`middle`).style(`font-size`,h).style(`font-weight`,p).style(`font-family`,f);i.append(`tspan`).attr(`x`,r+o/2).attr(`dy`,n).text(g[e]),i.attr(`y`,a+c/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),s(i,l)}}t.n(r,`byTspan`);function a(e,t,n,i,a,o,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,n).attr(`y`,i).attr(`width`,a).attr(`height`,o).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),r(e,u,n,i,a,o,c,l),s(d,c)}t.n(a,`byFo`);async function o(e,t,i,a,o,c,l,u){let d=await n.i(e,n.b()),f=t.append(`switch`),p=f.append(`foreignObject`).attr(`x`,i+o/2-d.width/2).attr(`y`,a+c/2-d.height/2).attr(`width`,d.width).attr(`height`,d.height).append(`xhtml:div`).style(`height`,`100%`).style(`width`,`100%`);p.append(`div`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(await n.F(e,n.b())),r(e,f,i,a,o,c,l,u),s(p,l)}t.n(o,`byKatex`);function s(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return t.n(s,`_setTextAttrs`),function(t,n=!1){return n?o:t.textPlacement===`fo`?a:t.textPlacement===`old`?e:r}})(),ge=(function(){function e(e,t,n,r,i,o,s){a(t.append(`text`).attr(`x`,n).attr(`y`,r).style(`text-anchor`,`start`).text(e),s)}t.n(e,`byText`);function r(e,t,r,i,o,s,c,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,p=e.split(n.s.lineBreakRegex);for(let e=0;e<p.length;e++){let n=e*u-u*(p.length-1)/2,o=t.append(`text`).attr(`x`,r).attr(`y`,i).style(`text-anchor`,`start`).style(`font-size`,u).style(`font-weight`,f).style(`font-family`,d);o.append(`tspan`).attr(`x`,r).attr(`dy`,n).text(p[e]),o.attr(`y`,i+s/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),a(o,c)}}t.n(r,`byTspan`);function i(e,t,n,i,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,n).attr(`y`,i).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),r(e,u,n,i,o,s,c,l),a(d,c)}t.n(i,`byFo`);function a(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return t.n(a,`_setTextAttrs`),function(t){return t.textPlacement===`fo`?i:t.textPlacement===`old`?e:r}})(),B={drawRect:C,drawText:D,drawLabel:O,drawActor:ee,drawBox:te,drawPopup:w,anchorElement:ne,drawActivation:re,drawLoop:ie,drawBackgroundRect:ae,insertArrowHead:le,insertArrowFilledHead:ue,insertSequenceNumber:de,insertArrowCrossHead:fe,insertDatabaseIcon:oe,insertComputerIcon:se,insertClockIcon:ce,getTextObj:me,getNoteRect:he,fixLifeLineHeights:A,sanitizeUrl:c.sanitizeUrl,insertDropShadow:pe,insertSolidTopArrowHead:t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-solidTopArrowHead`).attr(`refX`,7.9).attr(`refY`,7.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 8 L 0 8 z`)},`insertSolidTopArrowHead`),insertSolidBottomArrowHead:t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-solidBottomArrowHead`).attr(`refX`,7.9).attr(`refY`,.75).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 0 L 0 8 z`)},`insertSolidBottomArrowHead`),insertStickTopArrowHead:t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-stickTopArrowHead`).attr(`refX`,7.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 7 7`).attr(`stroke`,`black`).attr(`stroke-width`,1.5).attr(`fill`,`none`)},`insertStickTopArrowHead`),insertStickBottomArrowHead:t.n(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-stickBottomArrowHead`).attr(`refX`,7.5).attr(`refY`,0).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 7 L 7 0`).attr(`stroke`,`black`).attr(`stroke-width`,1.5).attr(`fill`,`none`)},`insertStickBottomArrowHead`)},V={},H={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:t.n(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:t.n(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:t.n(function(e){this.boxes.push(e)},`addBox`),addActor:t.n(function(e){this.actors.push(e)},`addActor`),addLoop:t.n(function(e){this.loops.push(e)},`addLoop`),addMessage:t.n(function(e){this.messages.push(e)},`addMessage`),addNote:t.n(function(e){this.notes.push(e)},`addNote`),lastActor:t.n(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:t.n(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:t.n(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:t.n(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:t.n(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Y(n.x())},`init`),updateVal:t.n(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:t.n(function(e,n,r,i){let a=this,o=0;function s(s){return t.n(function(t){o++;let c=a.sequenceItems.length-o+1;a.updateVal(t,`starty`,n-c*V.boxMargin,Math.min),a.updateVal(t,`stopy`,i+c*V.boxMargin,Math.max),a.updateVal(H.data,`startx`,e-c*V.boxMargin,Math.min),a.updateVal(H.data,`stopx`,r+c*V.boxMargin,Math.max),s!==`activation`&&(a.updateVal(t,`startx`,e-c*V.boxMargin,Math.min),a.updateVal(t,`stopx`,r+c*V.boxMargin,Math.max),a.updateVal(H.data,`starty`,n-c*V.boxMargin,Math.min),a.updateVal(H.data,`stopy`,i+c*V.boxMargin,Math.max))},`updateItemBounds`)}t.n(s,`updateFn`),this.sequenceItems.forEach(s()),this.activations.forEach(s(`activation`))},`updateBounds`),insert:t.n(function(e,t,r,i){let a=n.s.getMin(e,r),o=n.s.getMax(e,r),s=n.s.getMin(t,i),c=n.s.getMax(t,i);this.updateVal(H.data,`startx`,a,Math.min),this.updateVal(H.data,`starty`,s,Math.min),this.updateVal(H.data,`stopx`,o,Math.max),this.updateVal(H.data,`stopy`,c,Math.max),this.updateBounds(a,s,o,c)},`insert`),newActivation:t.n(function(e,t,n){let r=n.get(e.from),i=X(e.from).length||0,a=r.x+r.width/2+(i-1)*V.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+V.activationWidth,stopy:void 0,actor:e.from,anchored:B.anchorElement(t)})},`newActivation`),endActivation:t.n(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:t.n(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:t.n(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:t.n(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:t.n(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:t.n(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:H.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:t.n(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:t.n(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:t.n(function(e){this.verticalPos+=e,this.data.stopy=n.s.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:t.n(function(){return this.verticalPos},`getVerticalPos`),getBounds:t.n(function(){return{bounds:this.data,models:this.models}},`getBounds`)},_e=t.n(async function(e,t,r){H.bumpVerticalPos(V.boxMargin),t.height=V.boxMargin,t.starty=H.getVerticalPos();let i=o.s();i.x=t.startx,i.y=t.starty,i.width=t.width||V.width,i.class=`note`;let a=e.append(`g`);a.attr(`data-et`,`note`),a.attr(`data-id`,`i`+r);let s=B.drawRect(a,i),c=o.c();c.x=t.startx,c.y=t.starty,c.width=i.width,c.dy=`1em`,c.text=t.message,c.class=`noteText`,c.fontFamily=V.noteFontFamily,c.fontSize=V.noteFontSize,c.fontWeight=V.noteFontWeight,c.anchor=V.noteAlign,c.textMargin=V.noteMargin,c.valign=`center`;let l=n.A(c.text)?await E(a,c):D(a,c),u=Math.round(l.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));s.attr(`height`,u+2*V.noteMargin),t.height+=u+2*V.noteMargin,H.bumpVerticalPos(u+2*V.noteMargin),t.stopy=t.starty+u+2*V.noteMargin,t.stopx=t.startx+i.width,H.insert(t.startx,t.starty,t.stopx,t.stopy),H.models.addNote(t)},`drawNote`),ve=t.n(function(e,n,r,i,a,o,s){let c=i.db.getActors(),l=c.get(n.from),u=c.get(n.to),d=r.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=Ae(n,i),g=e.append(`g`),_=t.n((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),v=t.n(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,s).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:b,CENTRAL_CONNECTION_DUAL:x}=i.db.LINETYPE;if(d)switch(n.centralConnection){case y:h&&(p+=_(m,!0));break;case b:h||(f+=_(m,!1));break;case x:h?p+=_(m,!0):f+=_(m,!1)}switch(n.centralConnection){case y:v(p);break;case b:v(f);break;case x:v(f),v(p)}},`drawCentralConnection`),U=t.n(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),W=t.n(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),G=t.n(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function K(e,t){H.bumpVerticalPos(10);let{startx:r,stopx:a,message:o}=t,s=n.s.splitBreaks(o).length,c=n.A(o),l=c?await n.i(o,n.x()):i.g.calculateTextDimensions(o,U(V));if(!c){let e=l.height/s;t.height+=e,H.bumpVerticalPos(e)}let u,d=l.height-10,f=l.width;if(r===a){u=H.getVerticalPos()+d,V.rightAngles||(d+=V.boxMargin,u=H.getVerticalPos()+d),d+=30;let e=n.s.getMax(f/2,V.width/2);H.insert(r-e,H.getVerticalPos()-10+d,a+e,H.getVerticalPos()+30+d)}else d+=V.boxMargin,u=H.getVerticalPos()+d,H.insert(r,u-10,a,u);return H.bumpVerticalPos(d),t.height+=d,t.stopy=t.starty+t.height,H.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),u}t.n(K,`boundMessage`);var q=t.n(async function(e,t,r,a,s,c){let{startx:l,stopx:u,starty:d,message:f,type:p,sequenceIndex:m,sequenceVisible:h}=t,g=i.g.calculateTextDimensions(f,U(V)),_=o.c();_.x=Math.min(l,u),_.y=d+10,_.width=Math.abs(u-l),_.class=`messageText`,_.dy=`1em`,_.text=f,_.fontFamily=V.messageFontFamily,_.fontSize=V.messageFontSize,_.fontWeight=V.messageFontWeight,_.anchor=V.messageAlign,_.valign=`center`,_.textMargin=V.wrapPadding,_.tspan=!1,n.A(_.text)?await E(e,_,{startx:l,stopx:u,starty:r}):D(e,_);let v=g.width,y;if(l===u){let i=h||V.showSequenceNumbers,o=Ae(s,a),c=je(s,a),d=l+(i&&(o||c)?10:0);y=V.rightAngles?e.append(`path`).attr(`d`,`M ${d},${r} H ${l+n.s.getMax(V.width/2,v/2)} V ${r+25} H ${l}`):e.append(`path`).attr(`d`,`M `+d+`,`+r+` C `+(d+60)+`,`+(r-10)+` `+(l+60)+`,`+(r+30)+` `+l+`,`+(r+20)),Oe(s,a)&&ve(e,s,t,a,l,u,r)}else y=e.append(`line`),y.attr(`x1`,l),y.attr(`y1`,r),y.attr(`x2`,u),y.attr(`y2`,r),Oe(s,a)&&ve(e,s,t,a,l,u,r);p===a.db.LINETYPE.DOTTED||p===a.db.LINETYPE.DOTTED_CROSS||p===a.db.LINETYPE.DOTTED_POINT||p===a.db.LINETYPE.DOTTED_OPEN||p===a.db.LINETYPE.BIDIRECTIONAL_DOTTED||p===a.db.LINETYPE.SOLID_TOP_DOTTED||p===a.db.LINETYPE.SOLID_BOTTOM_DOTTED||p===a.db.LINETYPE.STICK_TOP_DOTTED||p===a.db.LINETYPE.STICK_BOTTOM_DOTTED||p===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style(`stroke-dasharray`,`3, 3`),y.attr(`class`,`messageLine1`)):y.attr(`class`,`messageLine0`),y.attr(`data-et`,`message`),y.attr(`data-id`,`i`+t.id),y.attr(`data-from`,t.from),y.attr(`data-to`,t.to);let b=``;if(V.arrowMarkerAbsolute&&(b=n.O(!0)),y.attr(`stroke-width`,2),y.attr(`stroke`,`none`),y.style(`fill`,`none`),(p===a.db.LINETYPE.SOLID_TOP||p===a.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-solidTopArrowHead)`),(p===a.db.LINETYPE.SOLID_BOTTOM||p===a.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-solidBottomArrowHead)`),(p===a.db.LINETYPE.STICK_TOP||p===a.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-stickTopArrowHead)`),(p===a.db.LINETYPE.STICK_BOTTOM||p===a.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-stickBottomArrowHead)`),(p===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-solidBottomArrowHead)`),(p===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-solidTopArrowHead)`),(p===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-stickBottomArrowHead)`),(p===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+c+`-stickTopArrowHead)`),(p===a.db.LINETYPE.SOLID||p===a.db.LINETYPE.DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-arrowhead)`),(p===a.db.LINETYPE.BIDIRECTIONAL_SOLID||p===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr(`marker-start`,`url(`+b+`#`+c+`-arrowhead)`),y.attr(`marker-end`,`url(`+b+`#`+c+`-arrowhead)`)),(p===a.db.LINETYPE.SOLID_POINT||p===a.db.LINETYPE.DOTTED_POINT)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-filled-head)`),(p===a.db.LINETYPE.SOLID_CROSS||p===a.db.LINETYPE.DOTTED_CROSS)&&y.attr(`marker-end`,`url(`+b+`#`+c+`-crosshead)`),h||V.showSequenceNumbers){let n=p===a.db.LINETYPE.BIDIRECTIONAL_SOLID||p===a.db.LINETYPE.BIDIRECTIONAL_DOTTED,i=p===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,o=Oe(s,a),d=l,f=u;n?(l<u?d=l+12:(d=l-6+(o?-5:0),d+=s?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||s?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),y.attr(`x1`,d)):i?(u>l?f=u-12:(f=u-6,d+=s?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||s?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),f+=o?15:0,y.attr(`x2`,f),y.attr(`x1`,d)):y.attr(`x1`,l+6);let h=0,g=l===u,_=l<=u;h=g?t.fromBounds+1:i?_?t.toBounds-1:t.fromBounds+1:_?t.fromBounds+1:t.toBounds-1;let v=`12px`,x=m.toString().length;x>5?v=`7px`:x>3&&(v=`9px`),e.append(`line`).attr(`x1`,h).attr(`y1`,r).attr(`x2`,h).attr(`y2`,r).attr(`stroke-width`,0).attr(`marker-start`,`url(`+b+`#`+c+`-sequencenumber)`),e.append(`text`).attr(`x`,h).attr(`y`,r+4).attr(`font-family`,`sans-serif`).attr(`font-size`,v).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(m)}},`drawMessage`),ye=t.n(function(e,t,r,i,a,o,s){let c=0,l=0,u,d=0;for(let e of i){let i=t.get(e),o=i.box;u&&u!=o&&(s||H.models.addBox(u),l+=V.boxMargin+u.margin),o&&o!=u&&(s||(o.x=c+l,o.y=a),l+=o.margin),i.width=n.s.getMax(i.width||V.width,V.width),i.height=n.s.getMax(i.height||V.height,V.height),i.margin=i.margin||V.actorMargin,d=n.s.getMax(d,i.height),r.get(i.name)&&(l+=i.width/2),i.x=c+l,i.starty=H.getVerticalPos(),H.insert(i.x,a,i.x+i.width,i.height),c+=i.width+l,i.box&&(i.box.width=c+o.margin-i.box.x),l=i.margin,u=i.box,H.models.addActor(i)}u&&!s&&H.models.addBox(u),H.bumpVerticalPos(d)},`addActorRenderingData`),J=t.n(async function(e,t,r,i,a,o,s){if(i){let i=0;H.bumpVerticalPos(V.boxMargin*2);for(let c of r){let r=t.get(c);r.stopy||=H.getVerticalPos();let l=await B.drawActor(e,r,V,!0,a,o,s);i=n.s.getMax(i,l)}H.bumpVerticalPos(i+V.boxMargin)}else for(let n of r){let r=t.get(n);await B.drawActor(e,r,V,!1,a,o,s)}},`drawActors`),be=t.n(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Ce(n),c=B.drawPopup(e,n,s,V,V.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),Y=t.n(function(e){n.r(V,e),e.fontFamily&&(V.actorFontFamily=V.noteFontFamily=V.messageFontFamily=e.fontFamily),e.fontSize&&(V.actorFontSize=V.noteFontSize=V.messageFontSize=e.fontSize),e.fontWeight&&(V.actorFontWeight=V.noteFontWeight=V.messageFontWeight=e.fontWeight)},`setConf`),X=t.n(function(e){return H.activations.filter(function(t){return t.actor===e})},`actorActivations`),Z=t.n(function(e,t){let r=t.get(e),i=X(e);return[i.reduce(function(e,t){return n.s.getMin(e,t.startx)},r.x+r.width/2-1),i.reduce(function(e,t){return n.s.getMax(e,t.stopx)},r.x+r.width/2+1)]},`activationBounds`);function Q(t,r,a,o,s){H.bumpVerticalPos(a);let c=o;if(r.id&&r.message&&t[r.id]){let a=t[r.id].width,s=U(V);r.message=i.g.wrapLabel(`[${r.message}]`,a-2*V.wrapPadding,s),r.width=a,r.wrap=!0;let l=i.g.calculateTextDimensions(r.message,s),u=n.s.getMax(l.height,V.labelBoxHeight);c=o+u,e.m.debug(`${u} - ${r.message}`)}s(r),H.bumpVerticalPos(c)}t.n(Q,`adjustLoopHeightForWrap`);function $(e,n,r,i,a,o,s){function c(t,r){t.x<a.get(e.from).x?(H.insert(n.stopx-r,n.starty,n.startx,n.stopy+t.height/2+V.noteMargin),n.stopx+=r):(H.insert(n.startx,n.starty,n.stopx+r,n.stopy+t.height/2+V.noteMargin),n.stopx-=r)}t.n(c,`receiverAdjustment`);function l(t,r){t.x<a.get(e.to).x?(H.insert(n.startx-r,n.starty,n.stopx,n.stopy+t.height/2+V.noteMargin),n.startx+=r):(H.insert(n.stopx,n.starty,n.startx+r,n.stopy+t.height/2+V.noteMargin),n.startx-=r)}t.n(l,`senderAdjustment`);let u=[m.ACTOR,m.CONTROL,m.ENTITY,m.DATABASE];if(o.get(e.to)==i){let t=a.get(e.to);c(t,u.includes(t.type)?_/2+3:t.width/2+3),t.starty=r-t.height/2,H.bumpVerticalPos(t.height/2)}else if(s.get(e.from)==i){let t=a.get(e.from);V.mirrorActors&&l(t,u.includes(t.type)?_/2:t.width/2),t.stopy=r-t.height/2,H.bumpVerticalPos(t.height/2)}else if(s.get(e.to)==i){let t=a.get(e.to);V.mirrorActors&&c(t,u.includes(t.type)?_/2+3:t.width/2+3),t.stopy=r-t.height/2,H.bumpVerticalPos(t.height/2)}}t.n($,`adjustCreatedDestroyedData`);var xe=t.n(async function(r,i,a,o){let{securityLevel:s,sequence:c,look:l,themeVariables:u}=n.x();V=c;let d;s===`sandbox`&&(d=e.p(`#i`+i));let f=s===`sandbox`?e.p(d.nodes()[0].contentDocument.body):e.p(`body`),p=s===`sandbox`?d.nodes()[0].contentDocument:document;H.init(),e.m.debug(o.db);let m=s===`sandbox`?f.select(`[id="${i}"]`):e.p(`[id="${i}"]`),h=o.db.getActors(),g=o.db.getCreatedActors(),_=o.db.getDestroyedActors(),v=o.db.getBoxes(),y=o.db.getActorKeys(),b=o.db.getMessages(),x=o.db.getDiagramTitle(),S=o.db.hasAtLeastOneBox(),C=o.db.hasAtLeastOneBoxWithTitle(),w=await Se(h,b,o);if(V.height=await we(h,w,v),B.insertComputerIcon(m,i),B.insertDatabaseIcon(m,i),B.insertClockIcon(m,i),S&&(H.bumpVerticalPos(V.boxMargin),C&&H.bumpVerticalPos(v[0].textMaxHeight)),V.hideUnusedParticipants===!0){let e=new Set;b.forEach(t=>{e.add(t.from),e.add(t.to)}),y=y.filter(t=>e.has(t))}let T=new Map(y.map((e,t)=>[h.get(e)?.name??e,t]));ye(m,h,g,y,0,b,!1);let E=await Ne(b,h,w,o);B.insertArrowHead(m,i),B.insertArrowCrossHead(m,i),B.insertArrowFilledHead(m,i),B.insertSequenceNumber(m,i),B.insertSolidTopArrowHead(m,i),B.insertSolidBottomArrowHead(m,i),B.insertStickTopArrowHead(m,i),B.insertStickBottomArrowHead(m,i),l===`neo`&&B.insertDropShadow(m,V);function D(e,t){let n=H.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),B.drawActivation(m,n,t,V,X(e.from).length,o,T),H.insert(n.startx,t-10,n.stopx,t)}t.n(D,`activeEnd`);let O=1,k=1,j=[],M=[],N=0;for(let t of b){let n,r,i;switch(t.type){case o.db.LINETYPE.NOTE:H.resetVerticalPos(),r=t.noteModel,await _e(m,r,t.id);break;case o.db.LINETYPE.ACTIVE_START:H.newActivation(t,m,h);break;case o.db.LINETYPE.CENTRAL_CONNECTION:H.newActivation(t,m,h);break;case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:H.newActivation(t,m,h);break;case o.db.LINETYPE.ACTIVE_END:D(t,H.getVerticalPos());break;case o.db.LINETYPE.LOOP_START:Q(E,t,V.boxMargin,V.boxMargin+V.boxTextMargin,e=>H.newLoop(e));break;case o.db.LINETYPE.LOOP_END:n=H.endLoop(),await B.drawLoop(m,n,`loop`,V,t),H.bumpVerticalPos(n.stopy-H.getVerticalPos()),H.models.addLoop(n);break;case o.db.LINETYPE.RECT_START:Q(E,t,V.boxMargin,V.boxMargin,e=>{let t=e.message;t||=u?.rectBkgColor||u?.actorBkg||`rgba(128, 128, 128, 0.5)`,H.newLoop(void 0,t)});break;case o.db.LINETYPE.RECT_END:n=H.endLoop(),M.push(n),H.models.addLoop(n),H.bumpVerticalPos(n.stopy-H.getVerticalPos());break;case o.db.LINETYPE.OPT_START:Q(E,t,V.boxMargin,V.boxMargin+V.boxTextMargin,e=>H.newLoop(e));break;case o.db.LINETYPE.OPT_END:n=H.endLoop(),await B.drawLoop(m,n,`opt`,V,t),H.bumpVerticalPos(n.stopy-H.getVerticalPos()),H.models.addLoop(n);break;case o.db.LINETYPE.ALT_START:Q(E,t,V.boxMargin,V.boxMargin+V.boxTextMargin,e=>H.newLoop(e));break;case o.db.LINETYPE.ALT_ELSE:Q(E,t,V.boxMargin+V.boxTextMargin,V.boxMargin,e=>H.addSectionToLoop(e));break;case o.db.LINETYPE.ALT_END:n=H.endLoop(),await B.drawLoop(m,n,`alt`,V,t),H.bumpVerticalPos(n.stopy-H.getVerticalPos()),H.models.addLoop(n);break;case o.db.LINETYPE.PAR_START:case o.db.LINETYPE.PAR_OVER_START:Q(E,t,V.boxMargin,V.boxMargin+V.boxTextMargin,e=>H.newLoop(e)),H.saveVerticalPos();break;case o.db.LINETYPE.PAR_AND:Q(E,t,V.boxMargin+V.boxTextMargin,V.boxMargin,e=>H.addSectionToLoop(e));break;case o.db.LINETYPE.PAR_END:n=H.endLoop(),await B.drawLoop(m,n,`par`,V,t),H.bumpVerticalPos(n.stopy-H.getVerticalPos()),H.models.addLoop(n);break;case o.db.LINETYPE.AUTONUMBER:O=t.message.start||O,k=t.message.step||k,t.message.visible?o.db.enableSequenceNumbers():o.db.disableSequenceNumbers();break;case o.db.LINETYPE.CRITICAL_START:Q(E,t,V.boxMargin,V.boxMargin+V.boxTextMargin,e=>H.newLoop(e));break;case o.db.LINETYPE.CRITICAL_OPTION:Q(E,t,V.boxMargin+V.boxTextMargin,V.boxMargin,e=>H.addSectionToLoop(e));break;case o.db.LINETYPE.CRITICAL_END:n=H.endLoop(),await B.drawLoop(m,n,`critical`,V,t),H.bumpVerticalPos(n.stopy-H.getVerticalPos()),H.models.addLoop(n);break;case o.db.LINETYPE.BREAK_START:Q(E,t,V.boxMargin,V.boxMargin+V.boxTextMargin,e=>H.newLoop(e));break;case o.db.LINETYPE.BREAK_END:n=H.endLoop(),await B.drawLoop(m,n,`break`,V,t),H.bumpVerticalPos(n.stopy-H.getVerticalPos()),H.models.addLoop(n);break;default:try{i=t.msgModel,i.starty=H.getVerticalPos(),i.sequenceIndex=O,i.sequenceVisible=o.db.showSequenceNumbers(),i.id=t.id,i.from=t.from,i.to=t.to;let e=await K(m,i);$(t,i,e,N,h,g,_),j.push({messageModel:i,lineStartY:e,msg:t}),H.models.addMessage(i)}catch(t){e.m.error(`error while drawing message`,t)}}[o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN,o.db.LINETYPE.SOLID,o.db.LINETYPE.SOLID_TOP,o.db.LINETYPE.SOLID_BOTTOM,o.db.LINETYPE.STICK_TOP,o.db.LINETYPE.STICK_BOTTOM,o.db.LINETYPE.SOLID_TOP_DOTTED,o.db.LINETYPE.SOLID_BOTTOM_DOTTED,o.db.LINETYPE.STICK_TOP_DOTTED,o.db.LINETYPE.STICK_BOTTOM_DOTTED,o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,o.db.LINETYPE.DOTTED,o.db.LINETYPE.SOLID_CROSS,o.db.LINETYPE.DOTTED_CROSS,o.db.LINETYPE.SOLID_POINT,o.db.LINETYPE.DOTTED_POINT,o.db.LINETYPE.BIDIRECTIONAL_SOLID,o.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(O=Math.round((O+k)*100)/100),N++}e.m.debug(`createdActors`,g),e.m.debug(`destroyedActors`,_),await J(m,h,y,!1,i,o,T);for(let e of j)await q(m,e.messageModel,e.lineStartY,o,e.msg,i);V.mirrorActors&&await J(m,h,y,!0,i,o,T),M.forEach(e=>B.drawBackgroundRect(m,e)),A(m,h,y,V);for(let e of H.models.boxes){e.height=H.getVerticalPos()-e.y,H.insert(e.x,e.y,e.x+e.width,e.height);let t=V.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,B.drawBox(m,e,V)}S&&H.bumpVerticalPos(V.boxMargin);let P=be(m,h,y,p),{bounds:F}=H.getBounds();F.startx===void 0&&(F.startx=0),F.starty===void 0&&(F.starty=0),F.stopx===void 0&&(F.stopx=0),F.stopy===void 0&&(F.stopy=0);let I=F.stopy-F.starty;I<P.maxHeight&&(I=P.maxHeight);let L=I+2*V.diagramMarginY;V.mirrorActors&&(L=L-V.boxMargin+V.bottomMarginAdj);let R=F.stopx-F.startx;R<P.maxWidth&&(R=P.maxWidth);let ee=R+2*V.diagramMarginX;x&&m.append(`text`).text(x).attr(`x`,(F.stopx-F.startx)/2-2*V.diagramMarginX).attr(`y`,-25),n.c(m,L,ee,V.useMaxWidth);let te=x?40:0,ne=h.size&&l===`neo`?30:0;m.attr(`viewBox`,F.startx-V.diagramMarginX+` -`+(V.diagramMarginY+te)+` `+ee+` `+(L+te+ne)),e.m.debug(`models:`,H.models)},`draw`);async function Se(t,r,a){let o={};for(let e of r)if(t.get(e.to)&&t.get(e.from)){let r=t.get(e.to);if(e.placement===a.db.PLACEMENT.LEFTOF&&!r.prevActor||e.placement===a.db.PLACEMENT.RIGHTOF&&!r.nextActor)continue;let s=e.placement!==void 0,c=!s,l=s?W(V):U(V),u=e.wrap?i.g.wrapLabel(e.message,V.width-2*V.wrapPadding,l):e.message,d=(n.A(u)?await n.i(e.message,n.x()):i.g.calculateTextDimensions(u,l)).width+2*V.wrapPadding;c&&e.from===r.nextActor?o[e.to]=n.s.getMax(o[e.to]||0,d):c&&e.from===r.prevActor?o[e.from]=n.s.getMax(o[e.from]||0,d):c&&e.from===e.to?(o[e.from]=n.s.getMax(o[e.from]||0,d/2),o[e.to]=n.s.getMax(o[e.to]||0,d/2)):e.placement===a.db.PLACEMENT.RIGHTOF?o[e.from]=n.s.getMax(o[e.from]||0,d):e.placement===a.db.PLACEMENT.LEFTOF?o[r.prevActor]=n.s.getMax(o[r.prevActor]||0,d):e.placement===a.db.PLACEMENT.OVER&&(r.prevActor&&(o[r.prevActor]=n.s.getMax(o[r.prevActor]||0,d/2)),r.nextActor&&(o[e.from]=n.s.getMax(o[e.from]||0,d/2)))}return e.m.debug(`maxMessageWidthPerActor:`,o),o}t.n(Se,`getMaxMessageWidthPerActor`);var Ce=t.n(function(e){let t=0,n=G(V);for(let r in e.links){let e=i.g.calculateTextDimensions(r,n).width+2*V.wrapPadding+2*V.boxMargin;t<e&&(t=e)}return t},`getRequiredPopupWidth`);async function we(e,t,r){let a=0;for(let t of e.keys()){let r=e.get(t);r.wrap&&(r.description=i.g.wrapLabel(r.description,V.width-2*V.wrapPadding,G(V)));let o=n.A(r.description)?await n.i(r.description,n.x()):i.g.calculateTextDimensions(r.description,G(V));r.width=r.wrap?V.width:n.s.getMax(V.width,o.width+2*V.wrapPadding),r.height=r.wrap?n.s.getMax(o.height,V.height):V.height,a=n.s.getMax(a,r.height)}for(let r in t){let i=e.get(r);if(!i)continue;let a=e.get(i.nextActor);if(!a){let e=t[r]+V.actorMargin-i.width/2;i.margin=n.s.getMax(e,V.actorMargin);continue}let o=t[r]+V.actorMargin-i.width/2-a.width/2;i.margin=n.s.getMax(o,V.actorMargin)}let o=0;return r.forEach(t=>{let r=U(V),a=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),s=V.boxMargin*8;a+=s,a-=2*V.boxTextMargin,t.wrap&&(t.name=i.g.wrapLabel(t.name,a-2*V.wrapPadding,r));let c=i.g.calculateTextDimensions(t.name,r);o=n.s.getMax(c.height,o);let l=n.s.getMax(a,c.width+2*V.wrapPadding);if(t.margin=V.boxTextMargin,a<l){let e=(l-a)/2;t.margin+=e}}),r.forEach(e=>e.textMaxHeight=o),n.s.getMax(a,V.height)}t.n(we,`calculateActorMargins`);var Te=t.n(async function(t,r,a){let o=r.get(t.from),s=r.get(t.to),c=o.x,l=s.x,u=t.wrap&&t.message,d=n.A(t.message)?await n.i(t.message,n.x()):i.g.calculateTextDimensions(u?i.g.wrapLabel(t.message,V.width,W(V)):t.message,W(V)),f={width:u?V.width:n.s.getMax(V.width,d.width+2*V.noteMargin),height:0,startx:o.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===a.db.PLACEMENT.RIGHTOF?(f.width=u?n.s.getMax(V.width,d.width):n.s.getMax(o.width/2+s.width/2,d.width+2*V.noteMargin),f.startx=c+(o.width+V.actorMargin)/2):t.placement===a.db.PLACEMENT.LEFTOF?(f.width=u?n.s.getMax(V.width,d.width+2*V.noteMargin):n.s.getMax(o.width/2+s.width/2,d.width+2*V.noteMargin),f.startx=c-f.width+(o.width-V.actorMargin)/2):t.to===t.from?(d=i.g.calculateTextDimensions(u?i.g.wrapLabel(t.message,n.s.getMax(V.width,o.width),W(V)):t.message,W(V)),f.width=u?n.s.getMax(V.width,o.width):n.s.getMax(o.width,V.width,d.width+2*V.noteMargin),f.startx=c+(o.width-f.width)/2):(f.width=Math.abs(c+o.width/2-(l+s.width/2))+V.actorMargin,f.startx=c<l?c+o.width/2-V.actorMargin/2:l+s.width/2-V.actorMargin/2),u&&(f.message=i.g.wrapLabel(t.message,f.width-2*V.wrapPadding,W(V))),e.m.debug(`NM:[${f.startx},${f.stopx},${f.starty},${f.stopy}:${f.width},${f.height}=${t.message}]`),f},`buildNoteModel`),Ee=4,De=6,Oe=t.n(function(e,t){let{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[n,r,i].includes(e.centralConnection)},`hasCentralConnection`),ke=t.n(function(e,t,n){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,s=0;return(e.centralConnection===r||e.centralConnection===i)&&(s+=Ee),(e.centralConnection===r||e.centralConnection===i)&&(e.type===a||e.type===o)&&(s+=n?0:-De),s},`calculateCentralConnectionOffset`),Ae=t.n(function(e,t){let{SOLID_ARROW_TOP_REVERSE:n,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:a,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:s,STICK_ARROW_BOTTOM_REVERSE:c,STICK_ARROW_BOTTOM_REVERSE_DOTTED:l}=t.db.LINETYPE;return[n,r,i,a,o,s,c,l].includes(e.type)},`isReverseArrowType`),je=t.n(function(e,t){let{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[n,r].includes(e.type)},`isBidirectionalArrowType`),Me=t.n(function(e,r,a){let{look:o}=n.x();if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[s,c]=Z(e.from,r),[l,u]=Z(e.to,r),d=s<=l,f=d?c:s,p=d?l:u;o===`neo`&&(e.type!==a.db.LINETYPE.SOLID_OPEN&&(p+=d?-3:3),(e.type===a.db.LINETYPE.BIDIRECTIONAL_SOLID||e.type===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(f+=d?3:-3)),f+=ke(e,a,d);let m=Math.abs(l-u)>2,h=t.n(e=>d?-e:e,`adjustValue`);e.from===e.to?p=f:(e.activate&&!m&&(p+=h(V.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(p+=h(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(f-=h(3)));let g=[s,c,l,u],_=Math.abs(f-p);e.wrap&&e.message&&(e.message=i.g.wrapLabel(e.message,n.s.getMax(_+2*V.wrapPadding,V.width),U(V)));let v=i.g.calculateTextDimensions(e.message,U(V));return{width:n.s.getMax(e.wrap?0:v.width+2*V.wrapPadding,_+2*V.wrapPadding,V.width),height:0,startx:f,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,g),toBounds:Math.max.apply(null,g)}},`buildMessageModel`),Ne=t.n(async function(t,r,i,a){let o={},s=[],c,l,u;for(let e of t){switch(e.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:s.push({id:e.id,msg:e.message,from:2**53-1,to:-(2**53-1),width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:e.message&&(c=s.pop(),o[c.id]=c,o[e.id]=c,s.push(c));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:c=s.pop(),o[c.id]=c;break;case a.db.LINETYPE.ACTIVE_START:{let t=r.get(e.from?e.from:e.to.actor),n=X(e.from?e.from:e.to.actor).length,i=t.x+t.width/2+(n-1)*V.activationWidth/2,a={startx:i,stopx:i+V.activationWidth,actor:e.from,enabled:!0};H.activations.push(a)}break;case a.db.LINETYPE.ACTIVE_END:{let t=H.activations.map(e=>e.actor).lastIndexOf(e.from);H.activations.splice(t,1).splice(0,1)}}e.placement===void 0?(u=Me(e,r,a),e.msgModel=u,u.startx&&u.stopx&&s.length>0&&s.forEach(t=>{if(c=t,u.startx===u.stopx){let t=r.get(e.from),i=r.get(e.to);c.from=n.s.getMin(t.x-u.width/2,t.x-t.width/2,c.from),c.to=n.s.getMax(i.x+u.width/2,i.x+t.width/2,c.to),c.width=n.s.getMax(c.width,Math.abs(c.to-c.from))-V.labelBoxWidth}else c.from=n.s.getMin(u.startx,c.from),c.to=n.s.getMax(u.stopx,c.to),c.width=n.s.getMax(c.width,u.width)-V.labelBoxWidth})):(l=await Te(e,r,a),e.noteModel=l,s.forEach(e=>{c=e,c.from=n.s.getMin(c.from,l.startx),c.to=n.s.getMax(c.to,l.startx+l.width),c.width=n.s.getMax(c.width,Math.abs(c.from-c.to))-V.labelBoxWidth}))}return H.activations=[],e.m.debug(`Loop type widths:`,o),o},`calculateLoopBounds`),Pe={parser:u,get db(){return new h},renderer:{bounds:H,drawActors:J,drawActorsPopup:be,setConf:Y,draw:xe},styles:g,init:t.n(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,n.G({sequence:{wrap:e.wrap}}))},`init`)};exports.diagram=Pe;
|