interactive-drawer 0.4.0 → 0.4.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 +14 -14
- package/dist/index.js +6482 -94
- package/dist/mcp-app.html +48 -47
- package/dist/server.js +6424 -36
- package/dist/viewer/assets/Tableau10-DrPBiGEf.js +1 -0
- package/dist/viewer/assets/ar-SA-G6X2FPQ2-BFqqR8FR.js +10 -0
- package/dist/viewer/assets/arc-GaJhGPcn.js +1 -0
- package/dist/viewer/assets/array-eiH4WfvY.js +1 -0
- package/dist/viewer/assets/az-AZ-76LH7QW2-DCeCaEDa.js +1 -0
- package/dist/viewer/assets/bg-BG-XCXSNQG7-CJnR7Nxx.js +5 -0
- package/dist/viewer/assets/blockDiagram-c4efeb88-Bq-rw8Uo.js +118 -0
- package/dist/viewer/assets/bn-BD-2XOGV67Q-DniN6gQV.js +5 -0
- package/dist/viewer/assets/c4Diagram-c83219d4-P4d2aMNQ.js +10 -0
- package/dist/viewer/assets/ca-ES-6MX7JW3Y-RlcHvNhZ.js +8 -0
- package/dist/viewer/assets/channel-C9ytsi9W.js +1 -0
- package/dist/viewer/assets/chunk-DseTPa7n.js +1 -0
- package/dist/viewer/assets/chunk-EIO257PC-8vtwmiF2.js +22 -0
- package/dist/viewer/assets/classDiagram-beda092f-BbZqlrnC.js +2 -0
- package/dist/viewer/assets/classDiagram-v2-2358418a-ClJ67nU_.js +2 -0
- package/dist/viewer/assets/clone-DeosMkZ8.js +1 -0
- package/dist/viewer/assets/createText-1719965b-CDC9UGX7.js +7 -0
- package/dist/viewer/assets/cs-CZ-2BRQDIVT-BBRI7OB2.js +11 -0
- package/dist/viewer/assets/da-DK-5WZEPLOC-X7Tc9fPY.js +5 -0
- package/dist/viewer/assets/dagre-CYaQwyjE.js +1 -0
- package/dist/viewer/assets/de-DE-XR44H4JA-BGdWdZ6Y.js +8 -0
- package/dist/viewer/assets/directory-open-01563666-DJZ0Svp1.js +1 -0
- package/dist/viewer/assets/directory-open-4ed118d0-DmPqFVGU.js +1 -0
- package/dist/viewer/assets/dist-Df4G2036.js +7 -0
- package/dist/viewer/assets/edges-96097737-DFipR3OC.js +4 -0
- package/dist/viewer/assets/el-GR-BZB4AONW-cUKQ4z-m.js +10 -0
- package/dist/viewer/assets/en-B4ZKOASM-B7a4Uff4.js +1 -0
- package/dist/viewer/assets/erDiagram-0228fc6a-C0KmS7Y6.js +51 -0
- package/dist/viewer/assets/es-ES-U4NZUMDT-DO3b5sfh.js +9 -0
- package/dist/viewer/assets/eu-ES-A7QVB2H4-Bz48GjZD.js +11 -0
- package/dist/viewer/assets/fa-IR-HGAKTJCU-D5WdotN3.js +8 -0
- package/dist/viewer/assets/fi-FI-Z5N7JZ37-DSeyUEff.js +6 -0
- package/dist/viewer/assets/file-open-002ab408-DIgra59R.js +1 -0
- package/dist/viewer/assets/file-open-7c801643-BAm_j8m_.js +1 -0
- package/dist/viewer/assets/file-save-3189631c-B1XCX4Ho.js +1 -0
- package/dist/viewer/assets/file-save-745eba88-DBUdNUxO.js +1 -0
- package/dist/viewer/assets/flowDb-c6c81e3f-CxbqyWny.js +10 -0
- package/dist/viewer/assets/flowDiagram-50d868cf-DeY6CLtt.js +4 -0
- package/dist/viewer/assets/flowDiagram-v2-4f6560a1-D4r3CihG.js +1 -0
- package/dist/viewer/assets/flowchart-elk-definition-6af322e1-BUJhZGoB.js +139 -0
- package/dist/viewer/assets/fr-FR-RHASNOE6-DCzPW_R5.js +9 -0
- package/dist/viewer/assets/ganttDiagram-a2739b55-Y2jSgQ5_.js +257 -0
- package/dist/viewer/assets/gitGraphDiagram-82fe8481-B-G9PxZD.js +70 -0
- package/dist/viewer/assets/gl-ES-HMX3MZ6V-4v9b_boY.js +10 -0
- package/dist/viewer/assets/graphlib-BFISMqHp.js +1 -0
- package/dist/viewer/assets/he-IL-6SHJWFNN-BDBk7TIu.js +10 -0
- package/dist/viewer/assets/hi-IN-IWLTKZ5I-B6ZhK1-r.js +4 -0
- package/dist/viewer/assets/hu-HU-A5ZG7DT2-BmhPjlz2.js +7 -0
- package/dist/viewer/assets/id-ID-SAP4L64H-Ca9c1v2y.js +10 -0
- package/dist/viewer/assets/image-7KUKJ7J4-C_3TAm4E.js +1 -0
- package/dist/viewer/assets/image-blob-reduce.esm-BVtT0K8A.js +2 -0
- package/dist/viewer/assets/index-5325376f-BP_L7r1w.js +1 -0
- package/dist/viewer/assets/index-CAvUkg_l.js +210 -0
- package/dist/viewer/assets/index-DtRVLazd.css +1 -0
- package/dist/viewer/assets/infoDiagram-8eee0895-pHJ5AUlk.js +7 -0
- package/dist/viewer/assets/init-BdkYWjJJ.js +1 -0
- package/dist/viewer/assets/it-IT-JPQ66NNP-BtnPiSOt.js +11 -0
- package/dist/viewer/assets/ja-JP-DBVTYXUO-IKf5mITh.js +8 -0
- package/dist/viewer/assets/journeyDiagram-c64418c1-DcUxfC5f.js +139 -0
- package/dist/viewer/assets/kaa-6HZHGXH3-D98FSJfx.js +1 -0
- package/dist/viewer/assets/kab-KAB-ZGHBKWFO-8T1OXJlA.js +8 -0
- package/dist/viewer/assets/katex-D7lVlZR3.js +261 -0
- package/dist/viewer/assets/kk-KZ-P5N5QNE5-hmkL9lmH.js +1 -0
- package/dist/viewer/assets/km-KH-HSX4SM5Z-DIv7bsrY.js +11 -0
- package/dist/viewer/assets/ko-KR-MTYHY66A-Ce2HW7MD.js +9 -0
- package/dist/viewer/assets/ku-TR-6OUDTVRD-CmmFskjS.js +9 -0
- package/dist/viewer/assets/line-DVouyT6m.js +1 -0
- package/dist/viewer/assets/linear-CwtknuR1.js +1 -0
- package/dist/viewer/assets/lt-LT-XHIRWOB4-fxXcoOJu.js +3 -0
- package/dist/viewer/assets/lv-LV-5QDEKY6T-MuO2KWsv.js +7 -0
- package/dist/viewer/assets/mermaid-7ea9cbd6-QHMIyrmu.js +89 -0
- package/dist/viewer/assets/mindmap-definition-8da855dc-37JNJqVl.js +415 -0
- package/dist/viewer/assets/mr-IN-CRQNXWMA-4y5geKZE.js +13 -0
- package/dist/viewer/assets/my-MM-5M5IBNSE-B-IRBixJ.js +1 -0
- package/dist/viewer/assets/nb-NO-T6EIAALU-DKd_39gb.js +10 -0
- package/dist/viewer/assets/nl-NL-IS3SIHDZ-VUyGNxJV.js +8 -0
- package/dist/viewer/assets/nn-NO-6E72VCQL-D7O6iyxQ.js +8 -0
- package/dist/viewer/assets/oc-FR-POXYY2M6-BN5YJ9MM.js +8 -0
- package/dist/viewer/assets/ordinal-gnpqfIHn.js +1 -0
- package/dist/viewer/assets/pa-IN-N4M65BXN-BaKFq2TD.js +4 -0
- package/dist/viewer/assets/path-B4emajHp.js +1 -0
- package/dist/viewer/assets/percentages-BXMCSKIN-DYgAIZll.js +1 -0
- package/dist/viewer/assets/pica-C6VdRnu2.js +2 -0
- package/dist/viewer/assets/pieDiagram-a8764435-DF_IQH2O.js +35 -0
- package/dist/viewer/assets/pl-PL-T2D74RX3-Dxiw8she.js +9 -0
- package/dist/viewer/assets/pt-BR-5N22H2LF-C9V7C5Bx.js +9 -0
- package/dist/viewer/assets/pt-PT-UZXXM6DQ-BG4j3hQ6.js +9 -0
- package/dist/viewer/assets/quadrantDiagram-1e28029f-Bu-ydjF2.js +7 -0
- package/dist/viewer/assets/requirementDiagram-08caed73-D3rsJYSP.js +52 -0
- package/dist/viewer/assets/ro-RO-JPDTUUEW-C3joF14E.js +11 -0
- package/dist/viewer/assets/roundRect-h00du4IH.js +1 -0
- package/dist/viewer/assets/ru-RU-B4JR7IUQ-Bmxqcu-c.js +9 -0
- package/dist/viewer/assets/sankeyDiagram-a04cb91d-_p8wXWXs.js +8 -0
- package/dist/viewer/assets/sequenceDiagram-c5b8d532-Dtg9Z8RA.js +122 -0
- package/dist/viewer/assets/si-LK-N5RQ5JYF-DUy51NFG.js +1 -0
- package/dist/viewer/assets/sk-SK-C5VTKIMK-BTwIUYAW.js +6 -0
- package/dist/viewer/assets/sl-SI-NN7IZMDC-Dztr_8tT.js +6 -0
- package/dist/viewer/assets/stateDiagram-1ecb1508-Dl5UpWCH.js +1 -0
- package/dist/viewer/assets/stateDiagram-v2-c2b004d7-DDttuxof.js +1 -0
- package/dist/viewer/assets/styles-b4e223ce-SxTtvvOZ.js +160 -0
- package/dist/viewer/assets/styles-ca3715f6-Pj9q5Oqy.js +207 -0
- package/dist/viewer/assets/styles-d45a18b0-CXdBN14L.js +116 -0
- package/dist/viewer/assets/subset-shared.chunk-BjY0OTOG.js +1 -0
- package/dist/viewer/assets/subset-worker.chunk-CtXL6u_B.js +1 -0
- package/dist/viewer/assets/sv-SE-XGPEYMSR-SfqXUjz-.js +10 -0
- package/dist/viewer/assets/svgDrawCommon-b86b1483-CFeizGgn.js +1 -0
- package/dist/viewer/assets/ta-IN-2NMHFXQM-Bv5HXCfF.js +9 -0
- package/dist/viewer/assets/th-TH-HPSO5L25--_SAf8xQ.js +2 -0
- package/dist/viewer/assets/timeline-definition-faaaa080-DWR1Otmc.js +61 -0
- package/dist/viewer/assets/tr-TR-DEFEU3FU-CVMTsAZi.js +7 -0
- package/dist/viewer/assets/uk-UA-QMV73CPH-CPDONm8a.js +6 -0
- package/dist/viewer/assets/vi-VN-M7AON7JQ-CF_ysUfb.js +5 -0
- package/dist/viewer/assets/xychartDiagram-f5964ef8-_Jv5IYur.js +7 -0
- package/dist/viewer/assets/zh-CN-LNUGB5OW-B4SpY2Q5.js +10 -0
- package/dist/viewer/assets/zh-HK-E62DVLB3-BCMdT5Ol.js +1 -0
- package/dist/viewer/assets/zh-TW-RAJ6MFWO-CkV2IlSF.js +9 -0
- package/dist/viewer/index.html +3 -2
- package/package.json +13 -9
- package/dist/viewer/assets/Tableau10-B-NsZVaP.js +0 -1
- package/dist/viewer/assets/_commonjs-dynamic-modules-TDtrdbi3.js +0 -1
- package/dist/viewer/assets/ar-SA-G6X2FPQ2-DadQCH2-.js +0 -10
- package/dist/viewer/assets/arc-CQgrOt5x.js +0 -1
- package/dist/viewer/assets/array-BKyUJesY.js +0 -1
- package/dist/viewer/assets/az-AZ-76LH7QW2-DQfUuqqi.js +0 -1
- package/dist/viewer/assets/bg-BG-XCXSNQG7-BB40UBFK.js +0 -5
- package/dist/viewer/assets/blockDiagram-c4efeb88-BaF5AmVI.js +0 -118
- package/dist/viewer/assets/bn-BD-2XOGV67Q-uzDHfiqC.js +0 -5
- package/dist/viewer/assets/c4Diagram-c83219d4-hWhr-GlJ.js +0 -10
- package/dist/viewer/assets/ca-ES-6MX7JW3Y-BW7AckRl.js +0 -8
- package/dist/viewer/assets/channel-CXejbLtU.js +0 -1
- package/dist/viewer/assets/classDiagram-beda092f-CymCu8CT.js +0 -2
- package/dist/viewer/assets/classDiagram-v2-2358418a-DJAISyxA.js +0 -2
- package/dist/viewer/assets/clone-CfbodbqL.js +0 -1
- package/dist/viewer/assets/createText-1719965b-BnEANXd0.js +0 -7
- package/dist/viewer/assets/cs-CZ-2BRQDIVT-DuVk-qPr.js +0 -11
- package/dist/viewer/assets/da-DK-5WZEPLOC-DFahLFHr.js +0 -5
- package/dist/viewer/assets/de-DE-XR44H4JA-DoRzoyVr.js +0 -8
- package/dist/viewer/assets/directory-open-01563666-DWU9wJ6I.js +0 -1
- package/dist/viewer/assets/directory-open-4ed118d0-CunoC1EB.js +0 -1
- package/dist/viewer/assets/edges-96097737-BaZooScF.js +0 -4
- package/dist/viewer/assets/el-GR-BZB4AONW--pwLECF8.js +0 -10
- package/dist/viewer/assets/erDiagram-0228fc6a-57itH3DJ.js +0 -51
- package/dist/viewer/assets/es-ES-U4NZUMDT-C1NjAcMt.js +0 -9
- package/dist/viewer/assets/eu-ES-A7QVB2H4-Ck1DCJa4.js +0 -11
- package/dist/viewer/assets/fa-IR-HGAKTJCU-tLLl_5WD.js +0 -8
- package/dist/viewer/assets/fi-FI-Z5N7JZ37-DVtDP0gn.js +0 -6
- package/dist/viewer/assets/file-open-002ab408-DIuFHtCF.js +0 -1
- package/dist/viewer/assets/file-open-7c801643-684qeFg4.js +0 -1
- package/dist/viewer/assets/file-save-3189631c-C1wFhQhH.js +0 -1
- package/dist/viewer/assets/file-save-745eba88-Bb9F9Kg7.js +0 -1
- package/dist/viewer/assets/flowDb-c6c81e3f-C7AEsokK.js +0 -10
- package/dist/viewer/assets/flowDiagram-50d868cf-CssTUsiu.js +0 -4
- package/dist/viewer/assets/flowDiagram-v2-4f6560a1-D0GG9NIT.js +0 -1
- package/dist/viewer/assets/flowchart-elk-definition-6af322e1-CRyPEh1i.js +0 -139
- package/dist/viewer/assets/fr-FR-RHASNOE6-T_qZ0zEK.js +0 -9
- package/dist/viewer/assets/ganttDiagram-a2739b55-DsyTeswu.js +0 -257
- package/dist/viewer/assets/gitGraphDiagram-82fe8481-D85sePVV.js +0 -70
- package/dist/viewer/assets/gl-ES-HMX3MZ6V-IW3daBzE.js +0 -10
- package/dist/viewer/assets/graph-i-2SK2w1.js +0 -1
- package/dist/viewer/assets/he-IL-6SHJWFNN-CUxTwbdR.js +0 -10
- package/dist/viewer/assets/hi-IN-IWLTKZ5I-DvQFf43e.js +0 -4
- package/dist/viewer/assets/hu-HU-A5ZG7DT2-CO4Q4G1z.js +0 -7
- package/dist/viewer/assets/id-ID-SAP4L64H-Bf_UXdp6.js +0 -10
- package/dist/viewer/assets/image-blob-reduce.esm-D6s-rqMO.js +0 -7
- package/dist/viewer/assets/index-5325376f-BRzpdHqA.js +0 -1
- package/dist/viewer/assets/index-BDC2daNC.js +0 -275
- package/dist/viewer/assets/index-BcAUh2Nm.css +0 -1
- package/dist/viewer/assets/index-rEzfVlKD.js +0 -97
- package/dist/viewer/assets/infoDiagram-8eee0895-BkRxMuec.js +0 -7
- package/dist/viewer/assets/init-Gi6I4Gst.js +0 -1
- package/dist/viewer/assets/it-IT-JPQ66NNP-AwjkJc7y.js +0 -11
- package/dist/viewer/assets/ja-JP-DBVTYXUO-07sucMhN.js +0 -8
- package/dist/viewer/assets/journeyDiagram-c64418c1-6-ZVFaXG.js +0 -139
- package/dist/viewer/assets/kaa-6HZHGXH3-CXk_Wo6h.js +0 -1
- package/dist/viewer/assets/kab-KAB-ZGHBKWFO-D88OOW68.js +0 -8
- package/dist/viewer/assets/katex-BkgLa5T_.js +0 -261
- package/dist/viewer/assets/kk-KZ-P5N5QNE5-TzX_GmjC.js +0 -1
- package/dist/viewer/assets/km-KH-HSX4SM5Z-Dy-luINx.js +0 -11
- package/dist/viewer/assets/ko-KR-MTYHY66A-Bno63g5m.js +0 -9
- package/dist/viewer/assets/ku-TR-6OUDTVRD-Daw-B1bN.js +0 -9
- package/dist/viewer/assets/layout-BSQSdjji.js +0 -1
- package/dist/viewer/assets/line-DajA25FK.js +0 -1
- package/dist/viewer/assets/linear-BUWo07xp.js +0 -1
- package/dist/viewer/assets/lt-LT-XHIRWOB4-C3_9a2Cz.js +0 -3
- package/dist/viewer/assets/lv-LV-5QDEKY6T-3H9zX9pi.js +0 -7
- package/dist/viewer/assets/mindmap-definition-8da855dc-DIeJ0MUj.js +0 -425
- package/dist/viewer/assets/mr-IN-CRQNXWMA-DLf6m35n.js +0 -13
- package/dist/viewer/assets/my-MM-5M5IBNSE-CW_RWZBw.js +0 -1
- package/dist/viewer/assets/nb-NO-T6EIAALU-B0ZpuoZJ.js +0 -10
- package/dist/viewer/assets/nl-NL-IS3SIHDZ-nZ0JmIIM.js +0 -8
- package/dist/viewer/assets/nn-NO-6E72VCQL-C_dDeYAp.js +0 -8
- package/dist/viewer/assets/oc-FR-POXYY2M6-CsidHxkc.js +0 -8
- package/dist/viewer/assets/ordinal-Cboi1Yqb.js +0 -1
- package/dist/viewer/assets/pa-IN-N4M65BXN-DuEUGA-r.js +0 -4
- package/dist/viewer/assets/path-CbwjOpE9.js +0 -1
- package/dist/viewer/assets/pica-B90j7hbh.js +0 -7
- package/dist/viewer/assets/pieDiagram-a8764435-CY0HndHR.js +0 -35
- package/dist/viewer/assets/pl-PL-T2D74RX3-D87DC8D9.js +0 -9
- package/dist/viewer/assets/pt-BR-5N22H2LF-BtSoEeex.js +0 -9
- package/dist/viewer/assets/pt-PT-UZXXM6DQ-D4bk4PLe.js +0 -9
- package/dist/viewer/assets/quadrantDiagram-1e28029f-DGki2tT-.js +0 -7
- package/dist/viewer/assets/requirementDiagram-08caed73-BkzKWnbZ.js +0 -52
- package/dist/viewer/assets/ro-RO-JPDTUUEW-Ra2U-BVb.js +0 -11
- package/dist/viewer/assets/roundRect-0PYZxl1G.js +0 -1
- package/dist/viewer/assets/ru-RU-B4JR7IUQ-DAMFn0BJ.js +0 -9
- package/dist/viewer/assets/sankeyDiagram-a04cb91d-C1WQeKAS.js +0 -8
- package/dist/viewer/assets/sequenceDiagram-c5b8d532-BQy1AIyh.js +0 -122
- package/dist/viewer/assets/si-LK-N5RQ5JYF-DtRsuwQ6.js +0 -1
- package/dist/viewer/assets/sk-SK-C5VTKIMK-Dph_9bOP.js +0 -6
- package/dist/viewer/assets/sl-SI-NN7IZMDC-CzYryWZd.js +0 -6
- package/dist/viewer/assets/stateDiagram-1ecb1508-f7QEpJSj.js +0 -1
- package/dist/viewer/assets/stateDiagram-v2-c2b004d7-B8MjoGqH.js +0 -1
- package/dist/viewer/assets/styles-b4e223ce-DfLT12Nx.js +0 -160
- package/dist/viewer/assets/styles-ca3715f6-CnuYZzQT.js +0 -207
- package/dist/viewer/assets/styles-d45a18b0-Ci9tlpxY.js +0 -116
- package/dist/viewer/assets/subset-shared.chunk-B9IoriSA.js +0 -84
- package/dist/viewer/assets/subset-worker.chunk-Bpe7TPYu.js +0 -1
- package/dist/viewer/assets/sv-SE-XGPEYMSR-B4Y9n4LB.js +0 -10
- package/dist/viewer/assets/svgDrawCommon-b86b1483-4HzjGm6B.js +0 -1
- package/dist/viewer/assets/ta-IN-2NMHFXQM-DE7pdoSM.js +0 -9
- package/dist/viewer/assets/th-TH-HPSO5L25-Dd8iADEt.js +0 -2
- package/dist/viewer/assets/timeline-definition-faaaa080-DYgcS_Y5.js +0 -61
- package/dist/viewer/assets/tr-TR-DEFEU3FU-DTOmyIrt.js +0 -7
- package/dist/viewer/assets/uk-UA-QMV73CPH-B05zHRYx.js +0 -6
- package/dist/viewer/assets/vi-VN-M7AON7JQ-ChW6Q5sn.js +0 -5
- package/dist/viewer/assets/xychartDiagram-f5964ef8-BrW97HI1.js +0 -7
- package/dist/viewer/assets/zh-CN-LNUGB5OW-DF3LdZpE.js +0 -10
- package/dist/viewer/assets/zh-HK-E62DVLB3-C3QgGFS0.js +0 -1
- package/dist/viewer/assets/zh-TW-RAJ6MFWO-ciUClBxf.js +0 -9
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import{I as e,N as t,O as n,P as r,T as i,_ as a,dn as o,g as s,h as c,j as l,o as u,s as d,y as f,z as p}from"./mermaid-7ea9cbd6-QHMIyrmu.js";var m=function(){var e=function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},t=[1,17],n=[1,18],r=[1,19],i=[1,39],a=[1,40],o=[1,25],s=[1,23],c=[1,24],l=[1,31],u=[1,32],d=[1,33],f=[1,34],p=[1,35],m=[1,36],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,43],b=[1,30],x=[1,42],S=[1,44],C=[1,41],w=[1,45],T=[1,9],E=[1,8,9],D=[1,56],O=[1,57],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,8,9,39],F=[1,74],I=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],L=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],R=[13,74,80,95,97,98],z=[13,64,65,74,80,95,97,98],B=[13,59,60,61,62,63,74,80,95,97,98],V=[1,93],H=[1,110],U=[1,108],W=[1,102],G=[1,103],K=[1,104],q=[1,105],J=[1,106],Y=[1,107],X=[1,109],Z=[1,8,9,37,39,42],Q=[1,8,9,21],ee=[1,8,9,78],$=[1,8,9,21,73,74,78,80,81,82,83,84,85],te={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,19:`GENERICTYPE`,21:`LABEL`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,37:`STRUCT_START`,39:`STRUCT_STOP`,40:`NAMESPACE`,42:`STYLE_SEPARATOR`,44:`CLASS`,45:`ANNOTATION_START`,46:`ANNOTATION_END`,47:`MEMBER`,48:`SEPARATOR`,50:`NOTE_FOR`,52:`NOTE`,53:`direction_tb`,54:`direction_bt`,55:`direction_rl`,56:`direction_lr`,59:`AGGREGATION`,60:`EXTENSION`,61:`COMPOSITION`,62:`DEPENDENCY`,63:`LOLLIPOP`,64:`LINE`,65:`DOTTED_LINE`,66:`CALLBACK`,67:`LINK`,68:`LINK_TARGET`,69:`CLICK`,70:`CALLBACK_NAME`,71:`CALLBACK_ARGS`,72:`HREF`,73:`STYLE`,74:`ALPHA`,76:`CSSCLASS`,78:`COMMA`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,88:`graphCodeTokens`,90:`TAGSTART`,91:`TAGEND`,92:`==`,93:`--`,94:`DEFAULT`,95:`MINUS`,96:`keywords`,97:`UNICODE_TEXT`,98:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 11:case 12:this.$=a[s];break;case 10:case 13:this.$=a[s-1]+a[s];break;case 14:case 15:this.$=a[s-1]+`~`+a[s]+`~`;break;case 16:r.addRelation(a[s]);break;case 17:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 27:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 28:case 29:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 30:r.addClassesToNamespace(a[s-3],a[s-1]);break;case 31:r.addClassesToNamespace(a[s-4],a[s-1]);break;case 32:this.$=a[s],r.addNamespace(a[s]);break;case 33:this.$=[a[s]];break;case 34:this.$=[a[s-1]];break;case 35:a[s].unshift(a[s-2]),this.$=a[s];break;case 37:r.setCssClass(a[s-2],a[s]);break;case 38:r.addMembers(a[s-3],a[s-1]);break;case 39:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 40:this.$=a[s],r.addClass(a[s]);break;case 41:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 42:r.addAnnotation(a[s],a[s-2]);break;case 43:this.$=[a[s]];break;case 44:a[s].push(a[s-1]),this.$=a[s];break;case 45:break;case 46:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 47:break;case 48:break;case 49:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 50:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 51:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 52:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 53:r.addNote(a[s],a[s-1]);break;case 54:r.addNote(a[s]);break;case 55:r.setDirection(`TB`);break;case 56:r.setDirection(`BT`);break;case 57:r.setDirection(`RL`);break;case 58:r.setDirection(`LR`);break;case 59:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 60:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 61:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 62:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 63:this.$=r.relationType.AGGREGATION;break;case 64:this.$=r.relationType.EXTENSION;break;case 65:this.$=r.relationType.COMPOSITION;break;case 66:this.$=r.relationType.DEPENDENCY;break;case 67:this.$=r.relationType.LOLLIPOP;break;case 68:this.$=r.lineType.LINE;break;case 69:this.$=r.lineType.DOTTED_LINE;break;case 70:case 76:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 71:case 77:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 72:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 73:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 74:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 75:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 78:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 79:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 80:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 81:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 82:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 83:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 84:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 85:r.setCssClass(a[s-1],a[s]);break;case 86:this.$=[a[s]];break;case 87:a[s-2].push(a[s]),this.$=a[s-2];break;case 89:this.$=a[s-1]+a[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:t,33:n,35:r,36:21,40:i,41:22,44:a,45:o,47:s,48:c,50:l,52:u,53:d,54:f,55:p,56:m,66:h,67:g,69:_,73:v,74:y,76:b,80:x,95:S,97:C,98:w},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(T,[2,5],{8:[1,46]}),{8:[1,47]},e(E,[2,16],{21:[1,48]}),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),e(E,[2,21]),e(E,[2,22]),e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),{32:[1,49]},{34:[1,50]},e(E,[2,29]),e(E,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:D,60:O,61:k,62:A,63:j,64:M,65:N}),{37:[1,63]},e(P,[2,36],{37:[1,65],42:[1,64]}),e(E,[2,47]),e(E,[2,48]),{16:66,74:y,80:x,95:S,97:C},{16:37,17:67,18:38,74:y,80:x,95:S,97:C,98:w},{16:37,17:68,18:38,74:y,80:x,95:S,97:C,98:w},{16:37,17:69,18:38,74:y,80:x,95:S,97:C,98:w},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:y,80:x,95:S,97:C,98:w},{13:F,51:73},e(E,[2,55]),e(E,[2,56]),e(E,[2,57]),e(E,[2,58]),e(I,[2,11],{16:37,18:38,17:75,19:[1,76],74:y,80:x,95:S,97:C,98:w}),e(I,[2,12],{19:[1,77]}),{15:78,16:79,74:y,80:x,95:S,97:C},{16:37,17:80,18:38,74:y,80:x,95:S,97:C,98:w},e(L,[2,112]),e(L,[2,113]),e(L,[2,114]),e(L,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(T,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:t,33:n,35:r,40:i,44:a,45:o,47:s,48:c,50:l,52:u,53:d,54:f,55:p,56:m,66:h,67:g,69:_,73:v,74:y,76:b,80:x,95:S,97:C,98:w}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:t,33:n,35:r,36:21,40:i,41:22,44:a,45:o,47:s,48:c,50:l,52:u,53:d,54:f,55:p,56:m,66:h,67:g,69:_,73:v,74:y,76:b,80:x,95:S,97:C,98:w},e(E,[2,17]),e(E,[2,27]),e(E,[2,28]),{13:[1,84],16:37,17:83,18:38,74:y,80:x,95:S,97:C,98:w},{49:85,57:54,58:55,59:D,60:O,61:k,62:A,63:j,64:M,65:N},e(E,[2,46]),{58:86,64:M,65:N},e(R,[2,62],{57:87,59:D,60:O,61:k,62:A,63:j}),e(z,[2,63]),e(z,[2,64]),e(z,[2,65]),e(z,[2,66]),e(z,[2,67]),e(B,[2,68]),e(B,[2,69]),{8:[1,89],23:90,38:88,41:22,44:a},{16:91,74:y,80:x,95:S,97:C},{43:92,47:V},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:H,73:U,74:W,75:99,77:100,79:101,80:G,81:K,82:q,83:J,84:Y,85:X},{74:[1,111]},{13:F,51:112},e(E,[2,54]),e(E,[2,117]),e(I,[2,13]),e(I,[2,14]),e(I,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:y,80:x,95:S,97:C},e(Z,[2,40],{11:114,12:[1,115]}),e(T,[2,7]),{9:[1,116]},e(Q,[2,49]),{16:37,17:117,18:38,74:y,80:x,95:S,97:C,98:w},{13:[1,119],16:37,17:118,18:38,74:y,80:x,95:S,97:C,98:w},e(R,[2,61],{57:120,59:D,60:O,61:k,62:A,63:j}),e(R,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:a},{8:[1,123],39:[2,33]},e(P,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:V},{16:37,17:127,18:38,74:y,80:x,95:S,97:C,98:w},e(E,[2,70],{13:[1,128]}),e(E,[2,72],{13:[1,130],68:[1,129]}),e(E,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(E,[2,84],{78:[1,134]}),e(ee,[2,86],{79:135,21:H,73:U,74:W,80:G,81:K,82:q,83:J,84:Y,85:X}),e($,[2,88]),e($,[2,90]),e($,[2,91]),e($,[2,92]),e($,[2,93]),e($,[2,94]),e($,[2,95]),e($,[2,96]),e($,[2,97]),e($,[2,98]),e(E,[2,85]),e(E,[2,53]),{37:[2,10]},e(Z,[2,41]),{13:[1,136]},{1:[2,4]},e(Q,[2,51]),e(Q,[2,50]),{16:37,17:137,18:38,74:y,80:x,95:S,97:C,98:w},e(R,[2,59]),e(E,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:a},{43:140,47:V},e(P,[2,38]),{39:[2,44]},e(E,[2,42]),e(E,[2,71]),e(E,[2,73]),e(E,[2,74],{68:[1,141]}),e(E,[2,77]),e(E,[2,78],{13:[1,142]}),e(E,[2,80],{13:[1,144],68:[1,143]}),{21:H,73:U,74:W,77:145,79:101,80:G,81:K,82:q,83:J,84:Y,85:X},e($,[2,89]),{14:[1,146]},e(Q,[2,52]),e(E,[2,31]),{39:[2,35]},{39:[1,147]},e(E,[2,75]),e(E,[2,79]),e(E,[2,81]),e(E,[2,82],{68:[1,148]}),e(ee,[2,87],{79:135,21:H,73:U,74:W,80:G,81:K,82:q,83:J,84:Y,85:X}),e(Z,[2,8]),e(P,[2,39]),e(E,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},parse:function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=2,d=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(m.yy[h]=this.yy[h]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var g=p.yylloc;a.push(g);var _=p.options&&p.options.ranges;typeof m.yy.parseError==`function`?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function v(){var e=r.pop()||p.lex()||d;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}for(var y,b,x,S,C={},w,T,E,D;;){if(b=n[n.length-1],this.defaultActions[b]?x=this.defaultActions[b]:(y??=v(),x=o[b]&&o[b][y]),x===void 0||!x.length||!x[0]){var O=``;for(w in D=[],o[b])this.terminals_[w]&&w>u&&D.push(`'`+this.terminals_[w]+`'`);O=p.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+p.showPosition()+`
|
|
3
|
+
Expecting `+D.join(`, `)+`, got '`+(this.terminals_[y]||y)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(y==d?`end of input`:`'`+(this.terminals_[y]||y)+`'`),this.parseError(O,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:g,expected:D})}if(x[0]instanceof Array&&x.length>1)throw Error(`Parse Error: multiple actions possible at state: `+b+`, token: `+y);switch(x[0]){case 1:n.push(y),i.push(p.yytext),a.push(p.yylloc),n.push(x[1]),y=null,l=p.yyleng,s=p.yytext,c=p.yylineno,g=p.yylloc;break;case 2:if(T=this.productions_[x[1]][1],C.$=i[i.length-T],C._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(C._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),S=this.performAction.apply(C,[s,l,c,m.yy,x[1],i,a].concat(f)),S!==void 0)return S;T&&(n=n.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[x[1]][0]),i.push(C.$),a.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}};te.lexer=function(){return{EOF:1,parseError:function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},setInput: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},input: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},unput: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},more:function(){return this._more=!0,this},reject: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},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},upcomingInput: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,``)},showPosition:function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},test_match: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},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin(`acc_title`),31;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),33;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return`EDGE_STATE`;case 18:this.begin(`callback_name`);break;case 19:this.popState();break;case 20:this.popState(),this.begin(`callback_args`);break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return`STR`;case 26:this.begin(`string`);break;case 27:return 73;case 28:return this.begin(`namespace`),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin(`namespace-body`),37;case 32:return this.popState(),39;case 33:return`EOF_IN_STRUCT`;case 34:return 8;case 35:break;case 36:return`EDGE_STATE`;case 37:return this.begin(`class`),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin(`class-body`),37;case 42:return this.popState(),39;case 43:return`EOF_IN_STRUCT`;case 44:return`EDGE_STATE`;case 45:return`OPEN_IN_STRUCT`;case 46:break;case 47:return`MEMBER`;case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return`GENERICTYPE`;case 59:this.begin(`generic`);break;case 60:this.popState();break;case 61:return`BQUOTE_STR`;case 62:this.begin(`bqstring`);break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return`DOT`;case 80:return`PLUS`;case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return`EQUALS`;case 87:return`EQUALS`;case 88:return 74;case 89:return 12;case 90:return 14;case 91:return`PUNCTUATION`;case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,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,94,95,96],inclusive:!0}}}}();function ne(){this.yy={}}return ne.prototype=te,te.Parser=ne,new ne}();m.parser=m;var h=m,g=[`#`,`+`,`~`,`-`,``],_=class{constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``;let n=l(e,a());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+n(this.id);this.memberType===`method`&&(e+=`(${n(this.parameters.trim())})`,this.returnType&&(e+=` : `+n(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=e.match(/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/);if(n){let e=n[1]?n[1].trim():``;if(g.includes(e)&&(this.visibility=e),this.id=n[2].trim(),this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);e.match(/[$*]/)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);g.includes(r)&&(this.visibility=r),i.match(/[$*]/)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t}parseClassifier(){switch(this.classifier){case`*`:return`font-style:italic;`;case`$`:return`text-decoration:underline;`;default:return``}}},v=`classId-`,y=[],b={},x=[],S=0,C={},w=0,T=[],E=e=>d.sanitizeText(e,a()),D=function(e){let t=d.sanitizeText(e,a()),n=``,r=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);r=E(e[0]),n=E(e[1])}return{className:r,type:n}},O=function(e,t){let n=d.sanitizeText(e,a());t&&=E(t);let{className:r}=D(n);b[r].label=t},k=function(e){let{className:t,type:n}=D(d.sanitizeText(e,a()));if(Object.hasOwn(b,t))return;let r=d.sanitizeText(t,a());b[r]={id:r,type:n,label:r,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:v+r+`-`+S},S++},A=function(e){let t=d.sanitizeText(e,a());if(t in b)return b[t].domId;throw Error(`Class not found: `+t)},j=function(){y=[],b={},x=[],T=[],T.push(Z),C={},w=0,u()},M=function(e){return b[e]},N=function(){return b},P=function(){return y},F=function(){return x},I=function(e){i.debug(`Adding relation: `+JSON.stringify(e)),k(e.id1),k(e.id2),e.id1=D(e.id1).className,e.id2=D(e.id2).className,e.relationTitle1=d.sanitizeText(e.relationTitle1.trim(),a()),e.relationTitle2=d.sanitizeText(e.relationTitle2.trim(),a()),y.push(e)},L=function(e,t){let n=D(e).className;b[n].annotations.push(t)},R=function(e,t){k(e);let n=D(e).className,r=b[n];if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(E(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new _(e,`method`)):e&&r.members.push(new _(e,`attribute`))}},z=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>R(e,t)))},B=function(e,t){let n={id:`note${x.length}`,class:t,text:e};x.push(n)},V=function(e){return e.startsWith(`:`)&&(e=e.substring(1)),E(e.trim())},H=function(e,t){e.split(`,`).forEach(function(e){let n=e;e[0].match(/\d/)&&(n=v+n),b[n]!==void 0&&b[n].cssClasses.push(t)})},U=function(e,t){e.split(`,`).forEach(function(e){t!==void 0&&(b[e].tooltip=E(t))})},W=function(e,t){return t?C[t].classes[e].tooltip:b[e].tooltip},G=function(e,t,n){let r=a();e.split(`,`).forEach(function(e){let i=e;e[0].match(/\d/)&&(i=v+i),b[i]!==void 0&&(b[i].link=p.formatUrl(t,r),r.securityLevel===`sandbox`?b[i].linkTarget=`_top`:typeof n==`string`?b[i].linkTarget=E(n):b[i].linkTarget=`_blank`)}),H(e,`clickable`)},K=function(e,t,n){e.split(`,`).forEach(function(e){q(e,t,n),b[e].haveCallback=!0}),H(e,`clickable`)},q=function(e,t,n){let r=d.sanitizeText(e,a());if(a().securityLevel!==`loose`||t===void 0)return;let i=r;if(b[i]!==void 0){let e=A(i),r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.charAt(0)===`"`&&t.charAt(t.length-1)===`"`&&(t=t.substr(1,t.length-2)),r[e]=t}}r.length===0&&r.push(e),T.push(function(){let n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener(`click`,function(){p.runFunc(t,...r)},!1)})}},J=function(e){T.forEach(function(t){t(e)})},Y={LINE:0,DOTTED_LINE:1},X={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Z=function(e){let t=o(`.mermaidTooltip`);(t._groups||t)[0][0]===null&&(t=o(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0)),o(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,function(){let e=o(this);if(e.attr(`title`)===null)return;let n=this.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(e.attr(`title`)).style(`left`,window.scrollX+n.left+(n.right-n.left)/2+`px`).style(`top`,window.scrollY+n.top-14+document.body.scrollTop+`px`),t.html(t.html().replace(/<br\/>/g,`<br/>`)),e.classed(`hover`,!0)}).on(`mouseout`,function(){t.transition().duration(500).style(`opacity`,0),o(this).classed(`hover`,!1)})};T.push(Z);var Q=`TB`,ee={setAccTitle:r,getAccTitle:s,getAccDescription:c,setAccDescription:t,getConfig:()=>a().class,addClass:k,bindFunctions:J,clear:j,getClass:M,getClasses:N,getNotes:F,addAnnotation:L,addNote:B,getRelations:P,addRelation:I,getDirection:()=>Q,setDirection:e=>{Q=e},addMember:R,addMembers:z,cleanupLabel:V,lineType:Y,relationType:X,setClickEvent:K,setCssClass:H,setLink:G,getTooltip:W,setTooltip:U,lookUpDomId:A,setDiagramTitle:e,getDiagramTitle:f,setClassLabel:O,addNamespace:function(e){C[e]===void 0&&(C[e]={id:e,classes:{},children:{},domId:v+e+`-`+w},w++)},addClassesToNamespace:function(e,t){if(C[e]!==void 0)for(let n of t){let{className:t}=D(n);b[t].parent=e,C[e].classes[t]=b[t]}},getNamespace:function(e){return C[e]},getNamespaces:function(){return C},setCssStyle:function(e,t){let n=b[e];if(!(!t||!n))for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}},$=e=>`g.classGroup text {
|
|
7
|
+
fill: ${e.nodeBorder||e.classText};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-family: ${e.fontFamily};
|
|
10
|
+
font-size: 10px;
|
|
11
|
+
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: bolder;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nodeLabel, .edgeLabel {
|
|
19
|
+
color: ${e.classText};
|
|
20
|
+
}
|
|
21
|
+
.edgeLabel .label rect {
|
|
22
|
+
fill: ${e.mainBkg};
|
|
23
|
+
}
|
|
24
|
+
.label text {
|
|
25
|
+
fill: ${e.classText};
|
|
26
|
+
}
|
|
27
|
+
.edgeLabel .label span {
|
|
28
|
+
background: ${e.mainBkg};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.classTitle {
|
|
32
|
+
font-weight: bolder;
|
|
33
|
+
}
|
|
34
|
+
.node rect,
|
|
35
|
+
.node circle,
|
|
36
|
+
.node ellipse,
|
|
37
|
+
.node polygon,
|
|
38
|
+
.node path {
|
|
39
|
+
fill: ${e.mainBkg};
|
|
40
|
+
stroke: ${e.nodeBorder};
|
|
41
|
+
stroke-width: 1px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
.divider {
|
|
46
|
+
stroke: ${e.nodeBorder};
|
|
47
|
+
stroke-width: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
g.clickable {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
g.classGroup rect {
|
|
55
|
+
fill: ${e.mainBkg};
|
|
56
|
+
stroke: ${e.nodeBorder};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
g.classGroup line {
|
|
60
|
+
stroke: ${e.nodeBorder};
|
|
61
|
+
stroke-width: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.classLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${e.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.classLabel .label {
|
|
72
|
+
fill: ${e.nodeBorder};
|
|
73
|
+
font-size: 10px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.relation {
|
|
77
|
+
stroke: ${e.lineColor};
|
|
78
|
+
stroke-width: 1;
|
|
79
|
+
fill: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dashed-line{
|
|
83
|
+
stroke-dasharray: 3;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dotted-line{
|
|
87
|
+
stroke-dasharray: 1 2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#compositionStart, .composition {
|
|
91
|
+
fill: ${e.lineColor} !important;
|
|
92
|
+
stroke: ${e.lineColor} !important;
|
|
93
|
+
stroke-width: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#compositionEnd, .composition {
|
|
97
|
+
fill: ${e.lineColor} !important;
|
|
98
|
+
stroke: ${e.lineColor} !important;
|
|
99
|
+
stroke-width: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
#dependencyStart, .dependency {
|
|
103
|
+
fill: ${e.lineColor} !important;
|
|
104
|
+
stroke: ${e.lineColor} !important;
|
|
105
|
+
stroke-width: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#dependencyStart, .dependency {
|
|
109
|
+
fill: ${e.lineColor} !important;
|
|
110
|
+
stroke: ${e.lineColor} !important;
|
|
111
|
+
stroke-width: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#extensionStart, .extension {
|
|
115
|
+
fill: transparent !important;
|
|
116
|
+
stroke: ${e.lineColor} !important;
|
|
117
|
+
stroke-width: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
#extensionEnd, .extension {
|
|
121
|
+
fill: transparent !important;
|
|
122
|
+
stroke: ${e.lineColor} !important;
|
|
123
|
+
stroke-width: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#aggregationStart, .aggregation {
|
|
127
|
+
fill: transparent !important;
|
|
128
|
+
stroke: ${e.lineColor} !important;
|
|
129
|
+
stroke-width: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
#aggregationEnd, .aggregation {
|
|
133
|
+
fill: transparent !important;
|
|
134
|
+
stroke: ${e.lineColor} !important;
|
|
135
|
+
stroke-width: 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#lollipopStart, .lollipop {
|
|
139
|
+
fill: ${e.mainBkg} !important;
|
|
140
|
+
stroke: ${e.lineColor} !important;
|
|
141
|
+
stroke-width: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
#lollipopEnd, .lollipop {
|
|
145
|
+
fill: ${e.mainBkg} !important;
|
|
146
|
+
stroke: ${e.lineColor} !important;
|
|
147
|
+
stroke-width: 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.edgeTerminals {
|
|
151
|
+
font-size: 11px;
|
|
152
|
+
line-height: initial;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.classTitleText {
|
|
156
|
+
text-anchor: middle;
|
|
157
|
+
font-size: 18px;
|
|
158
|
+
fill: ${e.textColor};
|
|
159
|
+
}
|
|
160
|
+
`;export{h as n,$ as r,ee as t};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import{I as e,N as t,P as n,T as r,_ as i,g as a,h as o,m as s,o as c,s as l,y as u}from"./mermaid-7ea9cbd6-QHMIyrmu.js";var d=function(){var e=function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,15],c=[1,16],l=[1,17],u=[1,18],d=[1,30],f=[1,19],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,25],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,32],C=[1,33],w=[1,34],T=[1,35],E=[1,31],D=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],O=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],k=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],A={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,13:`DESCR`,14:`-->`,15:`HIDE_EMPTY`,16:`scale`,17:`WIDTH`,18:`COMPOSIT_STATE`,19:`STRUCT_START`,20:`STRUCT_STOP`,21:`STATE_DESCR`,22:`AS`,23:`ID`,24:`FORK`,25:`JOIN`,26:`CHOICE`,27:`CONCURRENT`,28:`note`,30:`NOTE_TEXT`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`classDef`,38:`CLASSDEF_ID`,39:`CLASSDEF_STYLEOPTS`,40:`DEFAULT`,41:`class`,42:`CLASSENTITY_IDS`,43:`STYLECLASS`,44:`direction_tb`,45:`direction_bt`,46:`direction_rl`,47:`direction_lr`,49:`;`,50:`EDGE_STATE`,51:`STYLE_SEPARATOR`,52:`left_of`,53:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 11:this.$=a[s];break;case 12:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 13:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 14:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 18:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 19:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 20:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 21:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 22:this.$={stmt:`state`,id:a[s],type:`join`};break;case 23:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 24:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 25:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 33:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 34:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 35:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 36:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 37:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 40:case 41:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 42:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 43:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,15:s,16:c,18:l,21:u,23:d,24:f,25:p,26:m,27:h,28:g,31:24,32:_,34:v,36:y,37:b,41:x,44:S,45:C,46:w,47:T,50:E},e(D,[2,5]),{9:36,10:12,11:13,12:14,15:s,16:c,18:l,21:u,23:d,24:f,25:p,26:m,27:h,28:g,31:24,32:_,34:v,36:y,37:b,41:x,44:S,45:C,46:w,47:T,50:E},e(D,[2,7]),e(D,[2,8]),e(D,[2,9]),e(D,[2,10]),e(D,[2,11],{13:[1,37],14:[1,38]}),e(D,[2,15]),{17:[1,39]},e(D,[2,17],{19:[1,40]}),{22:[1,41]},e(D,[2,21]),e(D,[2,22]),e(D,[2,23]),e(D,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},e(D,[2,27]),{33:[1,46]},{35:[1,47]},e(D,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},e(O,[2,40],{51:[1,51]}),e(O,[2,41],{51:[1,52]}),e(D,[2,34]),e(D,[2,35]),e(D,[2,36]),e(D,[2,37]),e(D,[2,6]),e(D,[2,12]),{12:53,23:d,50:E},e(D,[2,16]),e(k,i,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},e(D,[2,28]),e(D,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},e(D,[2,13],{13:[1,63]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,15:s,16:c,18:l,20:[1,64],21:u,23:d,24:f,25:p,26:m,27:h,28:g,31:24,32:_,34:v,36:y,37:b,41:x,44:S,45:C,46:w,47:T,50:E},e(D,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(O,[2,42]),e(O,[2,43]),e(D,[2,14]),e(D,[2,18]),e(k,i,{7:68}),e(D,[2,25]),e(D,[2,26]),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,15:s,16:c,18:l,20:[1,69],21:u,23:d,24:f,25:p,26:m,27:h,28:g,31:24,32:_,34:v,36:y,37:b,41:x,44:S,45:C,46:w,47:T,50:E},e(D,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},parse:function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=2,d=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(m.yy[h]=this.yy[h]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var g=p.yylloc;a.push(g);var _=p.options&&p.options.ranges;typeof m.yy.parseError==`function`?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function v(){var e=r.pop()||p.lex()||d;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}for(var y,b,x,S,C={},w,T,E,D;;){if(b=n[n.length-1],this.defaultActions[b]?x=this.defaultActions[b]:(y??=v(),x=o[b]&&o[b][y]),x===void 0||!x.length||!x[0]){var O=``;for(w in D=[],o[b])this.terminals_[w]&&w>u&&D.push(`'`+this.terminals_[w]+`'`);O=p.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+p.showPosition()+`
|
|
3
|
+
Expecting `+D.join(`, `)+`, got '`+(this.terminals_[y]||y)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(y==d?`end of input`:`'`+(this.terminals_[y]||y)+`'`),this.parseError(O,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:g,expected:D})}if(x[0]instanceof Array&&x.length>1)throw Error(`Parse Error: multiple actions possible at state: `+b+`, token: `+y);switch(x[0]){case 1:n.push(y),i.push(p.yytext),a.push(p.yylloc),n.push(x[1]),y=null,l=p.yyleng,s=p.yytext,c=p.yylineno,g=p.yylloc;break;case 2:if(T=this.productions_[x[1]][1],C.$=i[i.length-T],C._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(C._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),S=this.performAction.apply(C,[s,l,c,m.yy,x[1],i,a].concat(f)),S!==void 0)return S;T&&(n=n.slice(0,-1*T*2),i=i.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[x[1]][0]),i.push(C.$),a.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}};A.lexer=function(){return{EOF:1,parseError:function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},setInput: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},input: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},unput: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},more:function(){return this._more=!0,this},reject: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},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},upcomingInput: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,``)},showPosition:function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},test_match: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},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState(`SCALE`),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin(`acc_title`),32;case 16:return this.popState(),`acc_title_value`;case 17:return this.begin(`acc_descr`),34;case 18:return this.popState(),`acc_descr_value`;case 19:this.begin(`acc_descr_multiline`);break;case 20:this.popState();break;case 21:return`acc_descr_multiline_value`;case 22:return this.pushState(`CLASSDEF`),37;case 23:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 24:return this.popState(),this.pushState(`CLASSDEFID`),38;case 25:return this.popState(),39;case 26:return this.pushState(`CLASS`),41;case 27:return this.popState(),this.pushState(`CLASS_STYLE`),42;case 28:return this.popState(),43;case 29:return this.pushState(`SCALE`),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState(`STATE`);break;case 33:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState(`STATE_STRING`);break;case 44:return this.pushState(`STATE_ID`),`AS`;case 45:return this.popState(),`ID`;case 46:this.popState();break;case 47:return`STATE_DESCR`;case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState(`struct`),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin(`NOTE`),28;case 55:return this.popState(),this.pushState(`NOTE_ID`),52;case 56:return this.popState(),this.pushState(`NOTE_ID`),53;case 57:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 58:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 59:break;case 60:return`NOTE_TEXT`;case 61:return this.popState(),`ID`;case 62:return this.popState(),this.pushState(`NOTE_TEXT`),23;case 63:return this.popState(),t.yytext=t.yytext.substr(2).trim(),30;case 64:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return t.yytext=t.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return`INVALID`}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}}}();function j(){this.yy={}}return j.prototype=A,A.Parser=j,new j}();d.parser=d;var f=d,p=`LR`,m=`state`,h=`relation`,g=`classDef`,_=`applyClass`,v=`default`,y=`divider`,b=`[*]`,x=`start`,S=b,C=`end`,w=`color`,T=`fill`,E=`bgFill`,D=`,`;function O(){return{}}var k=p,A=[],j=O(),M=()=>({relations:[],states:{},documents:{}}),N={root:M()},P=N.root,F=0,I=0,L={LINE:0,DOTTED_LINE:1},R={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},z=e=>JSON.parse(JSON.stringify(e)),ee=e=>{r.info(`Setting root doc`,e),A=e},te=()=>A,B=(e,t,n)=>{if(t.stmt===`relation`)B(e,t.state1,!0),B(e,t.state2,!1);else if(t.stmt===`state`&&(t.id===`[*]`?(t.id=n?e.id+`_start`:e.id+`_end`,t.start=n):t.id=t.id.trim()),t.doc){let e=[],n=[],r;for(r=0;r<t.doc.length;r++)if(t.doc[r].type===`divider`){let i=z(t.doc[r]);i.doc=z(n),e.push(i),n=[]}else n.push(t.doc[r]);if(e.length>0&&n.length>0){let r={stmt:m,id:s(),type:`divider`,doc:z(n)};e.push(z(r)),t.doc=e}t.doc.forEach(e=>B(t,e,!0))}},ne=()=>(B({id:`root`},{id:`root`,doc:A},!0),{id:`root`,doc:A}),V=e=>{let t;t=e.doc?e.doc:e,r.info(t),U(!0),r.info(`Extract`,t),t.forEach(e=>{switch(e.stmt){case m:H(e.id.trim(),e.type,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles);break;case h:X(e.state1,e.state2,e.description);break;case g:Q(e.id.trim(),e.classes);break;case _:$(e.id.trim(),e.styleClass);break}})},H=function(e,t=v,n=null,a=null,o=null,s=null,c=null,u=null){let d=e?.trim();P.states[d]===void 0?(r.info(`Adding state `,d,a),P.states[d]={id:d,descriptions:[],type:t,doc:n,note:o,classes:[],styles:[],textStyles:[]}):(P.states[d].doc||(P.states[d].doc=n),P.states[d].type||(P.states[d].type=t)),a&&(r.info(`Setting state description`,d,a),typeof a==`string`&&Z(d,a.trim()),typeof a==`object`&&a.forEach(e=>Z(d,e.trim()))),o&&(P.states[d].note=o,P.states[d].note.text=l.sanitizeText(P.states[d].note.text,i())),s&&(r.info(`Setting state classes`,d,s),(typeof s==`string`?[s]:s).forEach(e=>$(d,e.trim()))),c&&(r.info(`Setting state styles`,d,c),(typeof c==`string`?[c]:c).forEach(e=>le(d,e.trim()))),u&&(r.info(`Setting state styles`,d,c),(typeof u==`string`?[u]:u).forEach(e=>ue(d,e.trim())))},U=function(e){N={root:M()},P=N.root,F=0,j=O(),e||c()},W=function(e){return P.states[e]},G=function(){return P.states},K=function(){r.info(`Documents = `,N)},q=function(){return P.relations};function J(e=``){let t=e;return e===b&&(F++,t=`${x}${F}`),t}function Y(e=``,t=v){return e===b?x:t}function re(e=``){let t=e;return e===S&&(F++,t=`${C}${F}`),t}function ie(e=``,t=v){return e===S?C:t}function ae(e,t,n){let r=J(e.id.trim()),a=Y(e.id.trim(),e.type),o=J(t.id.trim()),s=Y(t.id.trim(),t.type);H(r,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),H(o,s,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),P.relations.push({id1:r,id2:o,relationTitle:l.sanitizeText(n,i())})}var X=function(e,t,n){if(typeof e==`object`)ae(e,t,n);else{let r=J(e.trim()),a=Y(e),o=re(t.trim()),s=ie(t);H(r,a),H(o,s),P.relations.push({id1:r,id2:o,title:l.sanitizeText(n,i())})}},Z=function(e,t){let n=P.states[e],r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n.descriptions.push(l.sanitizeText(r,i()))},oe=function(e){return e.substring(0,1)===`:`?e.substr(2).trim():e.trim()},se=()=>(I++,`divider-id-`+I),Q=function(e,t=``){j[e]===void 0&&(j[e]={id:e,styles:[],textStyles:[]});let n=j[e];t?.split(D).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(e.match(w)){let e=t.replace(T,E).replace(w,T);n.textStyles.push(e)}n.styles.push(t)})},ce=function(){return j},$=function(e,t){e.split(`,`).forEach(function(e){let n=W(e);if(n===void 0){let t=e.trim();H(t),n=W(t)}n.classes.push(t)})},le=function(e,t){let n=W(e);n!==void 0&&n.textStyles.push(t)},ue=function(e,t){let n=W(e);n!==void 0&&n.textStyles.push(t)},de={getConfig:()=>i().state,addState:H,clear:U,getState:W,getStates:G,getRelations:q,getClasses:ce,getDirection:()=>k,addRelation:X,getDividerId:se,setDirection:e=>{k=e},cleanupLabel:oe,lineType:L,relationType:R,logDocuments:K,getRootDoc:te,setRootDoc:ee,getRootDocV2:ne,extract:V,trimColon:e=>e&&e[0]===`:`?e.substr(1).trim():e.trim(),getAccTitle:a,setAccTitle:n,getAccDescription:o,setAccDescription:t,addStyleClass:Q,setCssClass:$,addDescription:Z,setDiagramTitle:e,getDiagramTitle:u},fe=e=>`
|
|
7
|
+
defs #statediagram-barbEnd {
|
|
8
|
+
fill: ${e.transitionColor};
|
|
9
|
+
stroke: ${e.transitionColor};
|
|
10
|
+
}
|
|
11
|
+
g.stateGroup text {
|
|
12
|
+
fill: ${e.nodeBorder};
|
|
13
|
+
stroke: none;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
}
|
|
16
|
+
g.stateGroup text {
|
|
17
|
+
fill: ${e.textColor};
|
|
18
|
+
stroke: none;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
g.stateGroup .state-title {
|
|
23
|
+
font-weight: bolder;
|
|
24
|
+
fill: ${e.stateLabelColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
g.stateGroup rect {
|
|
28
|
+
fill: ${e.mainBkg};
|
|
29
|
+
stroke: ${e.nodeBorder};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
g.stateGroup line {
|
|
33
|
+
stroke: ${e.lineColor};
|
|
34
|
+
stroke-width: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.transition {
|
|
38
|
+
stroke: ${e.transitionColor};
|
|
39
|
+
stroke-width: 1;
|
|
40
|
+
fill: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stateGroup .composit {
|
|
44
|
+
fill: ${e.background};
|
|
45
|
+
border-bottom: 1px
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.stateGroup .alt-composit {
|
|
49
|
+
fill: #e0e0e0;
|
|
50
|
+
border-bottom: 1px
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.state-note {
|
|
54
|
+
stroke: ${e.noteBorderColor};
|
|
55
|
+
fill: ${e.noteBkgColor};
|
|
56
|
+
|
|
57
|
+
text {
|
|
58
|
+
fill: ${e.noteTextColor};
|
|
59
|
+
stroke: none;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.stateLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${e.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgeLabel .label rect {
|
|
72
|
+
fill: ${e.labelBackgroundColor};
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
.edgeLabel .label text {
|
|
76
|
+
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
77
|
+
}
|
|
78
|
+
.label div .edgeLabel {
|
|
79
|
+
color: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.stateLabel text {
|
|
83
|
+
fill: ${e.stateLabelColor};
|
|
84
|
+
font-size: 10px;
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.node circle.state-start {
|
|
89
|
+
fill: ${e.specialStateColor};
|
|
90
|
+
stroke: ${e.specialStateColor};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.node .fork-join {
|
|
94
|
+
fill: ${e.specialStateColor};
|
|
95
|
+
stroke: ${e.specialStateColor};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.node circle.state-end {
|
|
99
|
+
fill: ${e.innerEndBackground};
|
|
100
|
+
stroke: ${e.background};
|
|
101
|
+
stroke-width: 1.5
|
|
102
|
+
}
|
|
103
|
+
.end-state-inner {
|
|
104
|
+
fill: ${e.compositeBackground||e.background};
|
|
105
|
+
// stroke: ${e.background};
|
|
106
|
+
stroke-width: 1.5
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.node rect {
|
|
110
|
+
fill: ${e.stateBkg||e.mainBkg};
|
|
111
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
112
|
+
stroke-width: 1px;
|
|
113
|
+
}
|
|
114
|
+
.node polygon {
|
|
115
|
+
fill: ${e.mainBkg};
|
|
116
|
+
stroke: ${e.stateBorder||e.nodeBorder};;
|
|
117
|
+
stroke-width: 1px;
|
|
118
|
+
}
|
|
119
|
+
#statediagram-barbEnd {
|
|
120
|
+
fill: ${e.lineColor};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.statediagram-cluster rect {
|
|
124
|
+
fill: ${e.compositeTitleBackground};
|
|
125
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
126
|
+
stroke-width: 1px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cluster-label, .nodeLabel {
|
|
130
|
+
color: ${e.stateLabelColor};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.statediagram-cluster rect.outer {
|
|
134
|
+
rx: 5px;
|
|
135
|
+
ry: 5px;
|
|
136
|
+
}
|
|
137
|
+
.statediagram-state .divider {
|
|
138
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.statediagram-state .title-state {
|
|
142
|
+
rx: 5px;
|
|
143
|
+
ry: 5px;
|
|
144
|
+
}
|
|
145
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
146
|
+
fill: ${e.compositeBackground||e.background};
|
|
147
|
+
}
|
|
148
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
149
|
+
fill: ${e.altBackground?e.altBackground:`#efefef`};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.statediagram-cluster .inner {
|
|
153
|
+
rx:0;
|
|
154
|
+
ry:0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.statediagram-state rect.basic {
|
|
158
|
+
rx: 5px;
|
|
159
|
+
ry: 5px;
|
|
160
|
+
}
|
|
161
|
+
.statediagram-state rect.divider {
|
|
162
|
+
stroke-dasharray: 10,10;
|
|
163
|
+
fill: ${e.altBackground?e.altBackground:`#efefef`};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.note-edge {
|
|
167
|
+
stroke-dasharray: 5;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.statediagram-note rect {
|
|
171
|
+
fill: ${e.noteBkgColor};
|
|
172
|
+
stroke: ${e.noteBorderColor};
|
|
173
|
+
stroke-width: 1px;
|
|
174
|
+
rx: 0;
|
|
175
|
+
ry: 0;
|
|
176
|
+
}
|
|
177
|
+
.statediagram-note rect {
|
|
178
|
+
fill: ${e.noteBkgColor};
|
|
179
|
+
stroke: ${e.noteBorderColor};
|
|
180
|
+
stroke-width: 1px;
|
|
181
|
+
rx: 0;
|
|
182
|
+
ry: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.statediagram-note text {
|
|
186
|
+
fill: ${e.noteTextColor};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.statediagram-note .nodeLabel {
|
|
190
|
+
color: ${e.noteTextColor};
|
|
191
|
+
}
|
|
192
|
+
.statediagram .edgeLabel {
|
|
193
|
+
color: red; // ${e.noteTextColor};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
#dependencyStart, #dependencyEnd {
|
|
197
|
+
fill: ${e.lineColor};
|
|
198
|
+
stroke: ${e.lineColor};
|
|
199
|
+
stroke-width: 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.statediagramTitleText {
|
|
203
|
+
text-anchor: middle;
|
|
204
|
+
font-size: 18px;
|
|
205
|
+
fill: ${e.textColor};
|
|
206
|
+
}
|
|
207
|
+
`;export{de as a,m as i,y as n,f as o,h as r,fe as s,v as t};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import{A as e,C as t,Dt as n,Ft as r,R as i,T as a,_ as o,b as s,dn as c,fn as l,mn as u,ot as d,p as f,pn as p,s as m,z as h,zt as g}from"./mermaid-7ea9cbd6-QHMIyrmu.js";import{t as _}from"./channel-C9ytsi9W.js";import{t as v}from"./graphlib-BFISMqHp.js";import{t as y}from"./index-5325376f-BP_L7r1w.js";function b(e){return typeof e==`string`?new l([document.querySelectorAll(e)],[document.documentElement]):new l([u(e)],p)}function x(e,t){return!!e.children(t).length}function S(e){return w(e.v)+`:`+w(e.w)+`:`+w(e.name)}var C=/:/g;function w(e){return e?String(e).replace(C,`\\:`):``}function T(e,t){t&&e.attr(`style`,t)}function E(e,t,n){t&&e.attr(`class`,t).attr(`class`,n+` `+e.attr(`class`))}function D(e,t){var r=t.graph();if(d(r)){var i=r.transition;if(n(i))return i(e)}return e}function O(e,t){var n=e.append(`foreignObject`).attr(`width`,`100000`),r=n.append(`xhtml:div`);r.attr(`xmlns`,`http://www.w3.org/1999/xhtml`);var i=t.label;switch(typeof i){case`function`:r.insert(i);break;case`object`:r.insert(function(){return i});break;default:r.html(i)}T(r,t.labelStyle),r.style(`display`,`inline-block`),r.style(`white-space`,`nowrap`);var a=r.node().getBoundingClientRect();return n.attr(`width`,a.width).attr(`height`,a.height),n}var k={},A=function(e){let t=Object.keys(e);for(let n of t)k[n]=e[n]},j=async function(t,n,r,i,c,l){let u=i.select(`[id="${r}"]`),d=Object.keys(t);for(let r of d){let i=t[r],d=`default`;i.classes.length>0&&(d=i.classes.join(` `)),d+=` flowchart-label`;let p=s(i.styles),h=i.text===void 0?i.id:i.text,g;if(a.info(`vertex`,i,i.labelType),i.labelType===`markdown`)a.info(`vertex`,i,i.labelType);else if(f(o().flowchart.htmlLabels))g=O(u,{label:h}).node(),g.parentNode.removeChild(g);else{let e=c.createElementNS(`http://www.w3.org/2000/svg`,`text`);e.setAttribute(`style`,p.labelStyle.replace(`color:`,`fill:`));let t=h.split(m.lineBreakRegex);for(let n of t){let t=c.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),t.setAttribute(`dy`,`1em`),t.setAttribute(`x`,`1`),t.textContent=n,e.appendChild(t)}g=e}let _=0,v=``;switch(i.type){case`round`:_=5,v=`rect`;break;case`square`:v=`rect`;break;case`diamond`:v=`question`;break;case`hexagon`:v=`hexagon`;break;case`odd`:v=`rect_left_inv_arrow`;break;case`lean_right`:v=`lean_right`;break;case`lean_left`:v=`lean_left`;break;case`trapezoid`:v=`trapezoid`;break;case`inv_trapezoid`:v=`inv_trapezoid`;break;case`odd_right`:v=`rect_left_inv_arrow`;break;case`circle`:v=`circle`;break;case`ellipse`:v=`ellipse`;break;case`stadium`:v=`stadium`;break;case`subroutine`:v=`subroutine`;break;case`cylinder`:v=`cylinder`;break;case`group`:v=`rect`;break;case`doublecircle`:v=`doublecircle`;break;default:v=`rect`}let y=await e(h,o());n.setNode(i.id,{labelStyle:p.labelStyle,shape:v,labelText:y,labelType:i.labelType,rx:_,ry:_,class:d,style:p.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:l.db.getTooltip(i.id)||``,domId:l.db.lookUpDomId(i.id),haveCallback:i.haveCallback,width:i.type===`group`?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:o().flowchart.padding}),a.info(`setNode`,{labelStyle:p.labelStyle,labelType:i.labelType,shape:v,labelText:y,rx:_,ry:_,class:d,style:p.style,id:i.id,domId:l.db.lookUpDomId(i.id),width:i.type===`group`?500:void 0,type:i.type,dir:i.dir,props:i.props,padding:o().flowchart.padding})}},M=async function(n,r,i){a.info(`abc78 edges = `,n);let c=0,l={},u,d;if(n.defaultStyle!==void 0){let e=s(n.defaultStyle);u=e.style,d=e.labelStyle}for(let i of n){c++;let f=`L-`+i.start+`-`+i.end;l[f]===void 0?(l[f]=0,a.info(`abc78 new entry`,f,l[f])):(l[f]++,a.info(`abc78 new entry`,f,l[f]));let p=f+`-`+l[f];a.info(`abc78 new link id to be used is`,f,p,l[f]);let h=`LS-`+i.start,_=`LE-`+i.end,v={style:``,labelStyle:``};switch(v.minlen=i.length||1,i.type===`arrow_open`?v.arrowhead=`none`:v.arrowhead=`normal`,v.arrowTypeStart=`arrow_open`,v.arrowTypeEnd=`arrow_open`,i.type){case`double_arrow_cross`:v.arrowTypeStart=`arrow_cross`;case`arrow_cross`:v.arrowTypeEnd=`arrow_cross`;break;case`double_arrow_point`:v.arrowTypeStart=`arrow_point`;case`arrow_point`:v.arrowTypeEnd=`arrow_point`;break;case`double_arrow_circle`:v.arrowTypeStart=`arrow_circle`;case`arrow_circle`:v.arrowTypeEnd=`arrow_circle`;break}let y=``,b=``;switch(i.stroke){case`normal`:y=`fill:none;`,u!==void 0&&(y=u),d!==void 0&&(b=d),v.thickness=`normal`,v.pattern=`solid`;break;case`dotted`:v.thickness=`normal`,v.pattern=`dotted`,v.style=`fill:none;stroke-width:2px;stroke-dasharray:3;`;break;case`thick`:v.thickness=`thick`,v.pattern=`solid`,v.style=`stroke-width: 3.5px;fill:none;`;break;case`invisible`:v.thickness=`invisible`,v.pattern=`solid`,v.style=`stroke-width: 0;fill:none;`;break}if(i.style!==void 0){let e=s(i.style);y=e.style,b=e.labelStyle}v.style=v.style+=y,v.labelStyle=v.labelStyle+=b,i.interpolate===void 0?n.defaultInterpolate===void 0?v.curve=t(k.curve,g):v.curve=t(n.defaultInterpolate,g):v.curve=t(i.interpolate,g),i.text===void 0?i.style!==void 0&&(v.arrowheadStyle=`fill: #333`):(v.arrowheadStyle=`fill: #333`,v.labelpos=`c`),v.labelType=i.labelType,v.label=await e(i.text.replace(m.lineBreakRegex,`
|
|
2
|
+
`),o()),i.style===void 0&&(v.style=v.style||`stroke: #333; stroke-width: 1.5px;fill:none;`),v.labelStyle=v.labelStyle.replace(`color:`,`fill:`),v.id=p,v.classes=`flowchart-link `+h+` `+_,r.setEdge(i.start,i.end,v,c)}},N={setConf:A,addVertices:j,addEdges:M,getClasses:function(e,t){return t.db.getClasses()},draw:async function(e,t,n,r){a.info(`Drawing flowchart`);let s=r.db.getDirection();s===void 0&&(s=`TD`);let{securityLevel:l,flowchart:u}=o(),d=u.nodeSpacing||50,f=u.rankSpacing||50,p;l===`sandbox`&&(p=c(`#i`+t));let m=c(l===`sandbox`?p.nodes()[0].contentDocument.body:`body`),g=l===`sandbox`?p.nodes()[0].contentDocument:document,_=new v({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:d,ranksep:f,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),x,S=r.db.getSubGraphs();a.info(`Subgraphs - `,S);for(let e=S.length-1;e>=0;e--)x=S[e],a.info(`Subgraph - `,x),r.db.addVertex(x.id,{text:x.title,type:x.labelType},`group`,void 0,x.classes,x.dir);let C=r.db.getVertices(),w=r.db.getEdges();a.info(`Edges`,w);let T=0;for(T=S.length-1;T>=0;T--){x=S[T],b(`cluster`).append(`text`);for(let e=0;e<x.nodes.length;e++)a.info(`Setting up subgraphs`,x.nodes[e],x.id),_.setParent(x.nodes[e],x.id)}await j(C,_,t,m,g,r),await M(w,_);let E=m.select(`[id="${t}"]`);if(await y(m.select(`#`+t+` g`),_,[`point`,`circle`,`cross`],`flowchart`,t),h.insertTitle(E,`flowchartTitleText`,u.titleTopMargin,r.db.getDiagramTitle()),i(_,E,u.diagramPadding,u.useMaxWidth),r.db.indexNodes(`subGraph`+T),!u.htmlLabels){let e=g.querySelectorAll(`[id="`+t+`"] .edgeLabel .label`);for(let t of e){let e=t.getBBox(),n=g.createElementNS(`http://www.w3.org/2000/svg`,`rect`);n.setAttribute(`rx`,0),n.setAttribute(`ry`,0),n.setAttribute(`width`,e.width),n.setAttribute(`height`,e.height),t.insertBefore(n,t.firstChild)}}Object.keys(C).forEach(function(e){let n=C[e];if(n.link){let r=c(`#`+t+` [id="`+e+`"]`);if(r){let e=g.createElementNS(`http://www.w3.org/2000/svg`,`a`);e.setAttributeNS(`http://www.w3.org/2000/svg`,`class`,n.classes.join(` `)),e.setAttributeNS(`http://www.w3.org/2000/svg`,`href`,n.link),e.setAttributeNS(`http://www.w3.org/2000/svg`,`rel`,`noopener`),l===`sandbox`?e.setAttributeNS(`http://www.w3.org/2000/svg`,`target`,`_top`):n.linkTarget&&e.setAttributeNS(`http://www.w3.org/2000/svg`,`target`,n.linkTarget);let t=r.insert(function(){return e},`:first-child`),i=r.select(`.label-container`);i&&t.append(function(){return i.node()});let a=r.select(`.label`);a&&t.append(function(){return a.node()})}}})}},P=(e,t)=>{let n=_;return r(n(e,`r`),n(e,`g`),n(e,`b`),t)},F=e=>`.label {
|
|
3
|
+
font-family: ${e.fontFamily};
|
|
4
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
5
|
+
}
|
|
6
|
+
.cluster-label text {
|
|
7
|
+
fill: ${e.titleColor};
|
|
8
|
+
}
|
|
9
|
+
.cluster-label span,p {
|
|
10
|
+
color: ${e.titleColor};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.label text,span,p {
|
|
14
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
15
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.node rect,
|
|
19
|
+
.node circle,
|
|
20
|
+
.node ellipse,
|
|
21
|
+
.node polygon,
|
|
22
|
+
.node path {
|
|
23
|
+
fill: ${e.mainBkg};
|
|
24
|
+
stroke: ${e.nodeBorder};
|
|
25
|
+
stroke-width: 1px;
|
|
26
|
+
}
|
|
27
|
+
.flowchart-label text {
|
|
28
|
+
text-anchor: middle;
|
|
29
|
+
}
|
|
30
|
+
// .flowchart-label .text-outer-tspan {
|
|
31
|
+
// text-anchor: middle;
|
|
32
|
+
// }
|
|
33
|
+
// .flowchart-label .text-inner-tspan {
|
|
34
|
+
// text-anchor: start;
|
|
35
|
+
// }
|
|
36
|
+
|
|
37
|
+
.node .katex path {
|
|
38
|
+
fill: #000;
|
|
39
|
+
stroke: #000;
|
|
40
|
+
stroke-width: 1px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.node .label {
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.node.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.arrowheadPath {
|
|
51
|
+
fill: ${e.arrowheadColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.edgePath .path {
|
|
55
|
+
stroke: ${e.lineColor};
|
|
56
|
+
stroke-width: 2.0px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flowchart-link {
|
|
60
|
+
stroke: ${e.lineColor};
|
|
61
|
+
fill: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.edgeLabel {
|
|
65
|
+
background-color: ${e.edgeLabelBackground};
|
|
66
|
+
rect {
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
background-color: ${e.edgeLabelBackground};
|
|
69
|
+
fill: ${e.edgeLabelBackground};
|
|
70
|
+
}
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* For html labels only */
|
|
75
|
+
.labelBkg {
|
|
76
|
+
background-color: ${P(e.edgeLabelBackground,.5)};
|
|
77
|
+
// background-color:
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cluster rect {
|
|
81
|
+
fill: ${e.clusterBkg};
|
|
82
|
+
stroke: ${e.clusterBorder};
|
|
83
|
+
stroke-width: 1px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cluster text {
|
|
87
|
+
fill: ${e.titleColor};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cluster span,p {
|
|
91
|
+
color: ${e.titleColor};
|
|
92
|
+
}
|
|
93
|
+
/* .cluster div {
|
|
94
|
+
color: ${e.titleColor};
|
|
95
|
+
} */
|
|
96
|
+
|
|
97
|
+
div.mermaidTooltip {
|
|
98
|
+
position: absolute;
|
|
99
|
+
text-align: center;
|
|
100
|
+
max-width: 200px;
|
|
101
|
+
padding: 2px;
|
|
102
|
+
font-family: ${e.fontFamily};
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
background: ${e.tertiaryColor};
|
|
105
|
+
border: 1px solid ${e.border2};
|
|
106
|
+
border-radius: 2px;
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
z-index: 100;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.flowchartTitleText {
|
|
112
|
+
text-anchor: middle;
|
|
113
|
+
font-size: 18px;
|
|
114
|
+
fill: ${e.textColor};
|
|
115
|
+
}
|
|
116
|
+
`;export{T as a,x as c,E as i,b as l,F as n,D as o,O as r,S as s,N as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./index-CAvUkg_l.js";import{i as e,n as t,r as n,t as r}from"./chunk-EIO257PC-8vtwmiF2.js";export{t as Commands,e as subsetToBase64,n as subsetToBinary,r as toBase64};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./index-CAvUkg_l.js";import{n as e,r as t}from"./chunk-EIO257PC-8vtwmiF2.js";var n=import.meta.url?new URL(import.meta.url):void 0;typeof window>`u`&&typeof self<`u`&&(self.onmessage=async n=>{switch(n.data.command){case e.Subset:let r=await t(n.data.arrayBuffer,n.data.codePoints);self.postMessage(r,{transfer:[r]});break}});export{n as WorkerUrl};
|