@eeshaai/code 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/README.md +337 -322
- package/dist/cli.js +4 -4
- package/dist/resources/styles/custom/instructions/design.md +283 -283
- package/dist/resources/styles/custom/instructions/requirements.md +161 -161
- package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -90
- package/dist/resources/styles/custom/instructions/tasks.md +159 -159
- package/dist/resources/styles/custom/process.md +49 -49
- package/dist/resources/styles/custom/prompts/first.md +29 -29
- package/dist/resources/styles/custom/prompts/implement.md +27 -27
- package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -40
- package/dist/resources/styles/custom/prompts/rewrite.md +32 -32
- package/dist/resources/styles/custom/style.yml +46 -46
- package/dist/resources/styles/grammar.md +727 -731
- package/dist/resources/styles/kiro/style.yml +63 -0
- package/dist/resources/styles/speckit/style.yml +59 -0
- package/dist/server.js +465 -486
- package/dist/web/chunks/{abnfDiagram-VCTEODGH-6KC3BO47.js → abnfDiagram-VCTEODGH-P6AZFXJU.js} +2 -2
- package/dist/web/chunks/architecture-7GRP2DOG-K6PMPK7N.js +2 -0
- package/dist/web/chunks/{architectureDiagram-5GKGNRK7-QKPCVOD2.js → architectureDiagram-5GKGNRK7-JB5DD7KL.js} +2 -2
- package/dist/web/chunks/{blockDiagram-I7D4REHJ-4XZWNXLB.js → blockDiagram-I7D4REHJ-ARCDWS5D.js} +2 -2
- package/dist/web/chunks/{c4Diagram-7LVT6UL2-4HJHKNE3.js → c4Diagram-7LVT6UL2-57CIXPJZ.js} +2 -2
- package/dist/web/chunks/{chunk-GQPX4EIC.js → chunk-3EZ2OKHV.js} +2 -2
- package/dist/web/chunks/{chunk-37NHO5VO.js → chunk-4KJ2U3VQ.js} +2 -2
- package/dist/web/chunks/{chunk-OXLTOJNY.js → chunk-4ZUFUR3U.js} +2 -2
- package/dist/web/chunks/{chunk-46RPN6IE.js → chunk-63W35XXT.js} +2 -2
- package/dist/web/chunks/{chunk-LSVIQRSY.js → chunk-6YVFH4BZ.js} +2 -2
- package/dist/web/chunks/{chunk-6VRLULJH.js → chunk-7PUK2GON.js} +2 -2
- package/dist/web/chunks/{chunk-TPXX77KB.js → chunk-7Q4TXKAS.js} +2 -2
- package/dist/web/chunks/{chunk-4S2DRQJ6.js → chunk-7QRY2XB7.js} +2 -2
- package/dist/web/chunks/{chunk-2DLEMZHM.js → chunk-CA2KMNVI.js} +2 -2
- package/dist/web/chunks/{chunk-LHNPPNB7.js → chunk-CFMSYLIK.js} +2 -2
- package/dist/web/chunks/{chunk-4TORDSRR.js → chunk-CKJRXIX7.js} +2 -2
- package/dist/web/chunks/{chunk-L34PKG4P.js → chunk-CXXG5KL5.js} +2 -2
- package/dist/web/chunks/chunk-EFBAEJZJ.js +2 -0
- package/dist/web/chunks/{chunk-LQ6CTWX6.js → chunk-FKTXB6RJ.js} +2 -2
- package/dist/web/chunks/{chunk-TXNHMPKM.js → chunk-FU7R4QOG.js} +2 -2
- package/dist/web/chunks/{chunk-DIRT34TZ.js → chunk-GEV6X2TZ.js} +2 -2
- package/dist/web/chunks/{chunk-II6WN3ZG.js → chunk-GPW7TXQS.js} +2 -2
- package/dist/web/chunks/{chunk-5KNOHX5X.js → chunk-I6RMTJPN.js} +2 -2
- package/dist/web/chunks/{chunk-6TGTE6CF.js → chunk-IKC3ZQV7.js} +2 -2
- package/dist/web/chunks/{chunk-LDXBIOBF.js → chunk-ITN3D7RJ.js} +2 -2
- package/dist/web/chunks/{chunk-OODDZ447.js → chunk-J6N7AUC2.js} +2 -2
- package/dist/web/chunks/{chunk-FGASMJTA.js → chunk-J7VDGOTK.js} +2 -2
- package/dist/web/chunks/chunk-KVRWT2YT.js +2 -0
- package/dist/web/chunks/{chunk-6URXM4C4.js → chunk-NBC6B3KN.js} +2 -2
- package/dist/web/chunks/{chunk-HBEUVMXY.js → chunk-NLHJT4GD.js} +2 -2
- package/dist/web/chunks/{chunk-HNYXDXPN.js → chunk-NOVL2262.js} +2 -2
- package/dist/web/chunks/{chunk-FPLIRG3U.js → chunk-NQ2XP5EN.js} +2 -2
- package/dist/web/chunks/chunk-P44J6WNO.js +2 -0
- package/dist/web/chunks/{chunk-6KSWTVXD.js → chunk-QBOSTM7Q.js} +2 -2
- package/dist/web/chunks/{chunk-HAKJ3AUV.js → chunk-QKU4ZFG5.js} +2 -2
- package/dist/web/chunks/{chunk-T4HEWXAQ.js → chunk-RINQGKTH.js} +2 -2
- package/dist/web/chunks/{chunk-TPYBIPJG.js → chunk-RK4EOCHJ.js} +2 -2
- package/dist/web/chunks/{chunk-YM7LHP34.js → chunk-S4X6ERXI.js} +2 -2
- package/dist/web/chunks/{chunk-VY4GEFSG.js → chunk-SE57RN36.js} +2 -2
- package/dist/web/chunks/{chunk-6FQEBIA3.js → chunk-SGL7WI35.js} +3 -3
- package/dist/web/chunks/chunk-SOAWGUAD.js +2 -0
- package/dist/web/chunks/{chunk-7XAOOQR4.js → chunk-U6ILIHMR.js} +2 -2
- package/dist/web/chunks/{chunk-M3SWKTLZ.js → chunk-USZ3ZJYA.js} +2 -2
- package/dist/web/chunks/{chunk-MBZYSJFT.js → chunk-UU7BHEBD.js} +2 -2
- package/dist/web/chunks/{chunk-QNEZP2TE.js → chunk-WL4ZMLPV.js} +2 -2
- package/dist/web/chunks/{chunk-MZEMPN3C.js → chunk-XE4RLI22.js} +2 -2
- package/dist/web/chunks/{chunk-VAKN3BTM.js → chunk-XJ6FSQEO.js} +2 -2
- package/dist/web/chunks/{chunk-XBYCKXUJ.js → chunk-XM7VXEGI.js} +2 -2
- package/dist/web/chunks/{chunk-2RFQIKC6.js → chunk-XO4SHRSO.js} +2 -2
- package/dist/web/chunks/{chunk-BUZPUGIT.js → chunk-XOZZFIHV.js} +2 -2
- package/dist/web/chunks/{chunk-FNIFXWXL.js → chunk-YYJ5VFH5.js} +2 -2
- package/dist/web/chunks/{chunk-JOSXY3EP.js → chunk-ZX45GMMJ.js} +2 -2
- package/dist/web/chunks/{chunk-4IPDIKAU.js → chunk-ZXMMITLE.js} +2 -2
- package/dist/web/chunks/classDiagram-ZZMXUADV-ALD5ECFE.js +2 -0
- package/dist/web/chunks/classDiagram-v2-VYDZK3BY-IMIEVQNX.js +2 -0
- package/dist/web/chunks/{cose-bilkent-JH36ORCC-ZPRW5JRW.js → cose-bilkent-JH36ORCC-YVEPG7XZ.js} +2 -2
- package/dist/web/chunks/cynefin-OW5HDTMX-5G3MG4ZJ.js +2 -0
- package/dist/web/chunks/{cynefinDiagram-5FMLGOSQ-O7GURHJG.js → cynefinDiagram-5FMLGOSQ-A3E3NM6X.js} +2 -2
- package/dist/web/chunks/{dagre-GXQ25YYZ-WK67O4N6.js → dagre-GXQ25YYZ-WKL3XLC6.js} +2 -2
- package/dist/web/chunks/{diagram-S7CK7UJ4-2CEO2EN2.js → diagram-S7CK7UJ4-AENTNBTM.js} +2 -2
- package/dist/web/chunks/{diagram-UQ7AKVKN-2Z4VHGF3.js → diagram-UQ7AKVKN-BN6IVDBP.js} +2 -2
- package/dist/web/chunks/{diagram-VSXAHHWV-AN4BOWYB.js → diagram-VSXAHHWV-X7IW7FU6.js} +2 -2
- package/dist/web/chunks/{diagram-VX7I27RA-VEZ2GXCM.js → diagram-VX7I27RA-4V6RQ6IS.js} +2 -2
- package/dist/web/chunks/{diagram-Z3DM3KII-TGGNDSLW.js → diagram-Z3DM3KII-ODYVRYAT.js} +2 -2
- package/dist/web/chunks/{ebnfDiagram-PWID7BFC-7RM57IJV.js → ebnfDiagram-PWID7BFC-2KD46JNN.js} +2 -2
- package/dist/web/chunks/{erDiagram-RLTQ6QDP-LCATC3YT.js → erDiagram-RLTQ6QDP-6MYZ2NRT.js} +2 -2
- package/dist/web/chunks/eventmodeling-NTZA5JFV-QZXC5VKS.js +2 -0
- package/dist/web/chunks/flowDiagram-HODETNUW-BILJ37ZX.js +2 -0
- package/dist/web/chunks/{ganttDiagram-EL5Y4UJY-5VPBBF2V.js → ganttDiagram-EL5Y4UJY-LVA23DND.js} +2 -2
- package/dist/web/chunks/gitGraph-4MIJSDKK-H43S2MKN.js +2 -0
- package/dist/web/chunks/{gitGraphDiagram-WWUBYQGX-HZMAGPIJ.js → gitGraphDiagram-WWUBYQGX-JRB4SUZI.js} +2 -2
- package/dist/web/chunks/info-A6RAGUB7-DKS7Q63Q.js +2 -0
- package/dist/web/chunks/infoDiagram-27XIBGKW-JLOVILVF.js +3 -0
- package/dist/web/chunks/{ishikawaDiagram-5VMMS53U-A54WWBPX.js → ishikawaDiagram-5VMMS53U-SUA2YN5D.js} +2 -2
- package/dist/web/chunks/{journeyDiagram-3NMN7TZE-XRCTMTR7.js → journeyDiagram-3NMN7TZE-ORMC2WB2.js} +2 -2
- package/dist/web/chunks/{kanban-definition-UXKFOSKX-UW2PQXZF.js → kanban-definition-UXKFOSKX-TPRG3VMF.js} +2 -2
- package/dist/web/chunks/{katex-B7HWCVTN.js → katex-DLHJF5VS.js} +2 -2
- package/dist/web/chunks/{mermaid.core-VL5SQK5M.js → mermaid.core-ZM3JSPVU.js} +3 -3
- package/dist/web/chunks/{mindmap-definition-YA3MSWOX-2H2Z6CVN.js → mindmap-definition-YA3MSWOX-BLW6WWFS.js} +2 -2
- package/dist/web/chunks/packet-AYTQ26CC-FIXQVEDM.js +2 -0
- package/dist/web/chunks/{pegDiagram-XKGWAZYB-KC4BYUN7.js → pegDiagram-XKGWAZYB-BYMP3YHY.js} +2 -2
- package/dist/web/chunks/pie-WAS4IAKB-R4EUNVPB.js +2 -0
- package/dist/web/chunks/{pieDiagram-E7YTZNPT-54T6XSU5.js → pieDiagram-E7YTZNPT-XOJE3H3L.js} +2 -2
- package/dist/web/chunks/{quadrantDiagram-AXDQQJYC-3G3RXSTE.js → quadrantDiagram-AXDQQJYC-23VSADTC.js} +2 -2
- package/dist/web/chunks/radar-RG4KPBEZ-O6Y2TENX.js +2 -0
- package/dist/web/chunks/railroad-74A4TZTK-PHWZ7KVH.js +2 -0
- package/dist/web/chunks/railroad-abnf-HS5TGJTU-DZ4OSJAN.js +2 -0
- package/dist/web/chunks/railroad-ebnf-LZEXJU2U-GYBLRQUL.js +2 -0
- package/dist/web/chunks/railroad-peg-WCYAUIDC-ZK4ZOBSX.js +2 -0
- package/dist/web/chunks/{railroadDiagram-O6MQD6OU-3LHKFF5N.js → railroadDiagram-O6MQD6OU-Z5IEAZJK.js} +2 -2
- package/dist/web/chunks/{requirementDiagram-BXWQKSXE-M4LF54YT.js → requirementDiagram-BXWQKSXE-MNP4O73E.js} +2 -2
- package/dist/web/chunks/{sankeyDiagram-P5KCCOFB-USCKKKNT.js → sankeyDiagram-P5KCCOFB-PADI35QR.js} +2 -2
- package/dist/web/chunks/{sequenceDiagram-WJ2MYXX4-QZ2O4KWV.js → sequenceDiagram-WJ2MYXX4-FGWOVXU4.js} +2 -2
- package/dist/web/chunks/{sizeCapture-INFHLROL-DZI5JWEV.js → sizeCapture-INFHLROL-Y6H3VQLE.js} +2 -2
- package/dist/web/chunks/{stateDiagram-D77RDMKH-EQJNTBF3.js → stateDiagram-D77RDMKH-7PRO4WYR.js} +2 -2
- package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-2Y6SWEJW.js +2 -0
- package/dist/web/chunks/{swimlanes-42K2YHIH-H7SZ2HG6.js → swimlanes-42K2YHIH-DXVTFB6Q.js} +2 -2
- package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-U2LP4OEE.js +9 -0
- package/dist/web/chunks/{timeline-definition-24CTP7MA-4Q2ARIQ6.js → timeline-definition-24CTP7MA-7ZIALE6C.js} +2 -2
- package/dist/web/chunks/treeView-Q6P3EWNA-VSJ7TJ36.js +2 -0
- package/dist/web/chunks/treemap-WGGIJYW6-JZWFGRKS.js +2 -0
- package/dist/web/chunks/{vennDiagram-4TSXK5OY-WMJVK74C.js → vennDiagram-4TSXK5OY-IPXNDYWM.js} +2 -2
- package/dist/web/chunks/wardley-WFR3VGLG-PAUUFL5N.js +2 -0
- package/dist/web/chunks/{wardleyDiagram-VM6X3IG4-CLB324RQ.js → wardleyDiagram-VM6X3IG4-4Z2U2NNR.js} +2 -2
- package/dist/web/chunks/{xychartDiagram-S5SC5T6Z-G5C2R7C2.js → xychartDiagram-S5SC5T6Z-NAEIWN4K.js} +2 -2
- package/dist/web/page.css +1 -1
- package/dist/web/page.js +156 -125
- package/package.json +64 -62
- package/dist/web/chunks/architecture-7GRP2DOG-JLXNDD4H.js +0 -2
- package/dist/web/chunks/chunk-4KP3BIPB.js +0 -2
- package/dist/web/chunks/chunk-HX7W7GSO.js +0 -2
- package/dist/web/chunks/chunk-PR453BYT.js +0 -2
- package/dist/web/chunks/chunk-R7TFKRNM.js +0 -2
- package/dist/web/chunks/classDiagram-ZZMXUADV-4J5HHZD6.js +0 -2
- package/dist/web/chunks/classDiagram-v2-VYDZK3BY-X6WY2DAS.js +0 -2
- package/dist/web/chunks/cynefin-OW5HDTMX-SVVTQRRB.js +0 -2
- package/dist/web/chunks/eventmodeling-NTZA5JFV-2SR57JAH.js +0 -2
- package/dist/web/chunks/flowDiagram-HODETNUW-HU6Y2EYQ.js +0 -2
- package/dist/web/chunks/gitGraph-4MIJSDKK-25JPIQP7.js +0 -2
- package/dist/web/chunks/info-A6RAGUB7-72MROTVX.js +0 -2
- package/dist/web/chunks/infoDiagram-27XIBGKW-BQYTPGNG.js +0 -3
- package/dist/web/chunks/packet-AYTQ26CC-NEGDW4B6.js +0 -2
- package/dist/web/chunks/pie-WAS4IAKB-OT3EMGHT.js +0 -2
- package/dist/web/chunks/radar-RG4KPBEZ-DCHU5FOQ.js +0 -2
- package/dist/web/chunks/railroad-74A4TZTK-RZX6D7H6.js +0 -2
- package/dist/web/chunks/railroad-abnf-HS5TGJTU-STTFN7R4.js +0 -2
- package/dist/web/chunks/railroad-ebnf-LZEXJU2U-RBXU3IBK.js +0 -2
- package/dist/web/chunks/railroad-peg-WCYAUIDC-OD5BXOH6.js +0 -2
- package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-WSCDKLG6.js +0 -2
- package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-DFYTBPVS.js +0 -9
- package/dist/web/chunks/treeView-Q6P3EWNA-ADCP6RPT.js +0 -2
- package/dist/web/chunks/treemap-WGGIJYW6-NEV7DUDY.js +0 -2
- package/dist/web/chunks/wardley-WFR3VGLG-4QZOFDI5.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as tr}from"./chunk-HX7W7GSO.js";import{a as Qe,b as Ze}from"./chunk-2DLEMZHM.js";import{a as $e,b as je,d as Kt,e as Ft,f as ht,g as qt}from"./chunk-T4HEWXAQ.js";import{c as Je,n as ie,p as X}from"./chunk-LHNPPNB7.js";import{a as Ir}from"./chunk-MBZYSJFT.js";import{$ as Xe,H as Pt,I as We,K as Z,L as Lt,M as ae,N,O as Ke,T as Fe,U as se,V as qe,W as He,X as ze,Y as Ue,Z as Ge,_ as $,h as Ye,u as wt}from"./chunk-6FQEBIA3.js";import{b as tt,h as Dt}from"./chunk-L34PKG4P.js";import{a as x}from"./chunk-LDXBIOBF.js";import{c as xr,d as Ve}from"./chunk-R7TFKRNM.js";Ve();var he=xr(Ir(),1),oe=(function(){var e=x(function(ut,S,v,w){for(v=v||{},w=ut.length;w--;v[ut[w]]=S);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],c=[1,12],u=[1,14],d=[1,15],p=[1,17],_=[1,18],E=[1,19],R=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],O=[1,30],L=[1,31],k=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],J=[1,40],nt=[1,42],et=[1,43],z=[1,44],st=[1,45],rt=[1,46],Y=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],St=[1,74],Ct=[1,80],m=[1,81],P=[1,82],lt=[1,83],at=[1,84],K=[1,85],Rt=[1,86],de=[1,87],Te=[1,88],pe=[1,89],Ee=[1,90],ue=[1,91],fe=[1,92],_e=[1,93],ge=[1,94],xe=[1,95],Ie=[1,96],be=[1,97],ye=[1,98],Re=[1,99],Oe=[1,100],Le=[1,101],me=[1,102],Ae=[1,103],Se=[1,104],ke=[1,105],Ne=[2,78],kt=[4,5,17,51,53,54],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Jt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Pe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Qt=[5,52],F=[70,71,72,73],ot=[1,151],Zt={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(function(S,v,w,b,q,n,Nt){var h=n.length-1;switch(q){case 3:return b.apply(n[h]),n[h];break;case 4:case 10:this.$=[];break;case 5:case 11:n[h-1].push(n[h]),this.$=n[h-1];break;case 6:case 7:case 12:case 13:this.$=n[h];break;case 8:case 9:case 14:this.$=[];break;case 16:n[h].type="createParticipant",this.$=n[h];break;case 17:n[h-1].unshift({type:"boxStart",boxData:b.parseBoxData(n[h-2])}),n[h-1].push({type:"boxEnd",boxText:n[h-2]}),this.$=n[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(n[h-2]),sequenceIndexStep:Number(n[h-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(n[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:n[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:n[h-1].actor};break;case 30:b.setDiagramTitle(n[h].substring(6)),this.$=n[h].substring(6);break;case 31:b.setDiagramTitle(n[h].substring(7)),this.$=n[h].substring(7);break;case 32:this.$=n[h].trim(),b.setAccTitle(this.$);break;case 33:case 34:this.$=n[h].trim(),b.setAccDescription(this.$);break;case 35:n[h-1].unshift({type:"loopStart",loopText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.LOOP_START}),n[h-1].push({type:"loopEnd",loopText:n[h-2],signalType:b.LINETYPE.LOOP_END}),this.$=n[h-1];break;case 36:n[h-1].unshift({type:"rectStart",color:b.parseMessage(n[h-2]),signalType:b.LINETYPE.RECT_START}),n[h-1].push({type:"rectEnd",color:b.parseMessage(n[h-2]),signalType:b.LINETYPE.RECT_END}),this.$=n[h-1];break;case 37:n[h-1].unshift({type:"optStart",optText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.OPT_START}),n[h-1].push({type:"optEnd",optText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.OPT_END}),this.$=n[h-1];break;case 38:n[h-1].unshift({type:"altStart",altText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.ALT_START}),n[h-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=n[h-1];break;case 39:n[h-1].unshift({type:"parStart",parText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.PAR_START}),n[h-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=n[h-1];break;case 40:n[h-1].unshift({type:"parStart",parText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.PAR_OVER_START}),n[h-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=n[h-1];break;case 41:n[h-1].unshift({type:"criticalStart",criticalText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.CRITICAL_START}),n[h-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=n[h-1];break;case 42:n[h-1].unshift({type:"breakStart",breakText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.BREAK_START}),n[h-1].push({type:"breakEnd",optText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.BREAK_END}),this.$=n[h-1];break;case 44:this.$=n[h-3].concat([{type:"option",optionText:b.parseMessage(n[h-1]),signalType:b.LINETYPE.CRITICAL_OPTION},n[h]]);break;case 46:this.$=n[h-3].concat([{type:"and",parText:b.parseMessage(n[h-1]),signalType:b.LINETYPE.PAR_AND},n[h]]);break;case 48:this.$=n[h-3].concat([{type:"else",altText:b.parseMessage(n[h-1]),signalType:b.LINETYPE.ALT_ELSE},n[h]]);break;case 49:n[h-3].draw="participant",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 50:n[h-1].draw="participant",n[h-1].type="addParticipant",this.$=n[h-1];break;case 51:n[h-3].draw="actor",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 52:case 57:n[h-1].draw="actor",n[h-1].type="addParticipant",this.$=n[h-1];break;case 53:n[h-1].type="destroyParticipant",this.$=n[h-1];break;case 54:n[h-3].draw="participant",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 55:n[h-1].draw="participant",n[h-1].type="addParticipant",this.$=n[h-1];break;case 56:n[h-3].draw="actor",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 58:this.$=[n[h-1],{type:"addNote",placement:n[h-2],actor:n[h-1].actor,text:n[h]}];break;case 59:n[h-2]=[].concat(n[h-1],n[h-1]).slice(0,2),n[h-2][0]=n[h-2][0].actor,n[h-2][1]=n[h-2][1].actor,this.$=[n[h-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:n[h-2].slice(0,2),text:n[h]}];break;case 60:this.$=[n[h-1],{type:"addLinks",actor:n[h-1].actor,text:n[h]}];break;case 61:this.$=[n[h-1],{type:"addALink",actor:n[h-1].actor,text:n[h]}];break;case 62:this.$=[n[h-1],{type:"addProperties",actor:n[h-1].actor,text:n[h]}];break;case 63:this.$=[n[h-1],{type:"addDetails",actor:n[h-1].actor,text:n[h]}];break;case 66:this.$=[n[h-2],n[h]];break;case 67:this.$=n[h];break;case 68:this.$=b.PLACEMENT.LEFTOF;break;case 69:this.$=b.PLACEMENT.RIGHTOF;break;case 70:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:n[h-1].actor}];break;case 71:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:n[h-4].actor}];break;case 72:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:n[h-1].actor}];break;case 73:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-2],msg:n[h],activate:!1,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:n[h-4].actor}];break;case 74:this.$=[n[h-5],n[h-1],{type:"addMessage",from:n[h-5].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:n[h-1].actor},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:n[h-5].actor}];break;case 75:this.$=[n[h-3],n[h-1],{type:"addMessage",from:n[h-3].actor,to:n[h-1].actor,signalType:n[h-2],msg:n[h]}];break;case 76:this.$={type:"addParticipant",actor:n[h-1],config:n[h]};break;case 77:this.$=n[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:n[h]};break;case 79:this.$=b.LINETYPE.SOLID_OPEN;break;case 80:this.$=b.LINETYPE.DOTTED_OPEN;break;case 81:this.$=b.LINETYPE.SOLID;break;case 82:this.$=b.LINETYPE.SOLID_TOP;break;case 83:this.$=b.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=b.LINETYPE.STICK_TOP;break;case 85:this.$=b.LINETYPE.STICK_BOTTOM;break;case 86:this.$=b.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=b.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=b.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=b.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=b.LINETYPE.DOTTED;break;case 100:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=b.LINETYPE.SOLID_CROSS;break;case 102:this.$=b.LINETYPE.DOTTED_CROSS;break;case 103:this.$=b.LINETYPE.SOLID_POINT;break;case 104:this.$=b.LINETYPE.DOTTED_POINT;break;case 105:this.$=b.parseMessage(n[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},e(C,[2,5]),{9:48,13:13,14:u,15:d,18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:U,53:G,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:St},{23:75,55:76,73:St},{23:77,73:Y},{69:78,72:[1,79],78:Ct,79:m,80:P,81:lt,82:at,83:K,84:Rt,85:de,86:Te,87:pe,88:Ee,89:ue,90:fe,91:_e,92:ge,93:xe,94:Ie,95:be,96:ye,97:Re,98:Oe,99:Le,100:me,101:Ae,102:Se,103:ke},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ne),e(C,[2,6]),e(C,[2,16]),e(kt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(we,i,{41:123,7:124}),e(Jt,i,{43:125,7:126}),e(Jt,i,{7:126,43:127}),e(Pe,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Qt,Ne,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:Ct,79:m,80:P,81:lt,82:at,83:K,84:Rt,85:de,86:Te,87:pe,88:Ee,89:ue,90:fe,91:_e,92:ge,93:xe,94:Ie,95:be,96:ye,97:Re,98:Oe,99:Le,100:me,101:Ae,102:Se,103:ke},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:ot},{58:152,104:ot},{58:153,104:ot},{58:154,104:ot},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,161],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,162],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,163],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[2,47],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[2,45],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[2,43],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,171],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Qt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:ot},{23:181,72:[1,182],73:Y},{58:183,104:ot},{58:184,104:ot},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(kt,[2,11]),{13:186,51:U,53:G,54:J},e(kt,[2,13]),e(kt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ot},{58:196,104:ot},{58:197,104:ot},{5:[2,75]},{58:198,104:ot},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(kt,[2,12]),e(we,i,{7:124,41:201}),e(Jt,i,{7:126,43:202}),e(Pe,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Qt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ot},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(function(S,v){if(v.recoverable)this.trace(S);else{var w=new Error(S);throw w.hash=v,w}},"parseError"),parse:x(function(S){var v=this,w=[0],b=[],q=[null],n=[],Nt=this.table,h="",Vt=0,De=0,ve=0,ur=2,Ce=1,fr=n.slice.call(arguments,1),Q=Object.create(this.lexer),gt={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(gt.yy[$t]=this.yy[$t]);Q.setInput(S,gt.yy),gt.yy.lexer=Q,gt.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var jt=Q.yylloc;n.push(jt);var _r=Q.options&&Q.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gr(it){w.length=w.length-2*it,q.length=q.length-it,n.length=n.length-it}x(gr,"popStack");function Me(){var it;return it=b.pop()||Q.lex()||Ce,typeof it!="number"&&(it instanceof Array&&(b=it,it=b.pop()),it=v.symbols_[it]||it),it}x(Me,"lex");for(var j,te,xt,ct,ua,ee,Ot={},Yt,Tt,Be,Wt;;){if(xt=w[w.length-1],this.defaultActions[xt]?ct=this.defaultActions[xt]:((j===null||typeof j>"u")&&(j=Me()),ct=Nt[xt]&&Nt[xt][j]),typeof ct>"u"||!ct.length||!ct[0]){var re="";Wt=[];for(Yt in Nt[xt])this.terminals_[Yt]&&Yt>ur&&Wt.push("'"+this.terminals_[Yt]+"'");Q.showPosition?re="Parse error on line "+(Vt+1)+`:
|
|
1
|
+
import{a as tr}from"./chunk-EFBAEJZJ.js";import{a as Qe,b as Ze}from"./chunk-CA2KMNVI.js";import{a as $e,b as je,d as Kt,e as Ft,f as ht,g as qt}from"./chunk-RINQGKTH.js";import{c as Je,n as ie,p as X}from"./chunk-CFMSYLIK.js";import{a as Ir}from"./chunk-UU7BHEBD.js";import{$ as Xe,H as Pt,I as We,K as Z,L as Lt,M as ae,N,O as Ke,T as Fe,U as se,V as qe,W as He,X as ze,Y as Ue,Z as Ge,_ as $,h as Ye,u as wt}from"./chunk-SGL7WI35.js";import{b as tt,h as Dt}from"./chunk-CXXG5KL5.js";import{a as x}from"./chunk-ITN3D7RJ.js";import{c as xr,d as Ve}from"./chunk-SOAWGUAD.js";Ve();var he=xr(Ir(),1),oe=(function(){var e=x(function(ut,S,v,w){for(v=v||{},w=ut.length;w--;v[ut[w]]=S);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],c=[1,12],u=[1,14],d=[1,15],p=[1,17],_=[1,18],E=[1,19],R=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],O=[1,30],L=[1,31],k=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],J=[1,40],nt=[1,42],et=[1,43],z=[1,44],st=[1,45],rt=[1,46],Y=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],St=[1,74],Ct=[1,80],m=[1,81],P=[1,82],lt=[1,83],at=[1,84],K=[1,85],Rt=[1,86],de=[1,87],Te=[1,88],pe=[1,89],Ee=[1,90],ue=[1,91],fe=[1,92],_e=[1,93],ge=[1,94],xe=[1,95],Ie=[1,96],be=[1,97],ye=[1,98],Re=[1,99],Oe=[1,100],Le=[1,101],me=[1,102],Ae=[1,103],Se=[1,104],ke=[1,105],Ne=[2,78],kt=[4,5,17,51,53,54],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Jt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Pe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Qt=[5,52],F=[70,71,72,73],ot=[1,151],Zt={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(function(S,v,w,b,q,n,Nt){var h=n.length-1;switch(q){case 3:return b.apply(n[h]),n[h];break;case 4:case 10:this.$=[];break;case 5:case 11:n[h-1].push(n[h]),this.$=n[h-1];break;case 6:case 7:case 12:case 13:this.$=n[h];break;case 8:case 9:case 14:this.$=[];break;case 16:n[h].type="createParticipant",this.$=n[h];break;case 17:n[h-1].unshift({type:"boxStart",boxData:b.parseBoxData(n[h-2])}),n[h-1].push({type:"boxEnd",boxText:n[h-2]}),this.$=n[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(n[h-2]),sequenceIndexStep:Number(n[h-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(n[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:n[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:n[h-1].actor};break;case 30:b.setDiagramTitle(n[h].substring(6)),this.$=n[h].substring(6);break;case 31:b.setDiagramTitle(n[h].substring(7)),this.$=n[h].substring(7);break;case 32:this.$=n[h].trim(),b.setAccTitle(this.$);break;case 33:case 34:this.$=n[h].trim(),b.setAccDescription(this.$);break;case 35:n[h-1].unshift({type:"loopStart",loopText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.LOOP_START}),n[h-1].push({type:"loopEnd",loopText:n[h-2],signalType:b.LINETYPE.LOOP_END}),this.$=n[h-1];break;case 36:n[h-1].unshift({type:"rectStart",color:b.parseMessage(n[h-2]),signalType:b.LINETYPE.RECT_START}),n[h-1].push({type:"rectEnd",color:b.parseMessage(n[h-2]),signalType:b.LINETYPE.RECT_END}),this.$=n[h-1];break;case 37:n[h-1].unshift({type:"optStart",optText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.OPT_START}),n[h-1].push({type:"optEnd",optText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.OPT_END}),this.$=n[h-1];break;case 38:n[h-1].unshift({type:"altStart",altText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.ALT_START}),n[h-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=n[h-1];break;case 39:n[h-1].unshift({type:"parStart",parText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.PAR_START}),n[h-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=n[h-1];break;case 40:n[h-1].unshift({type:"parStart",parText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.PAR_OVER_START}),n[h-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=n[h-1];break;case 41:n[h-1].unshift({type:"criticalStart",criticalText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.CRITICAL_START}),n[h-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=n[h-1];break;case 42:n[h-1].unshift({type:"breakStart",breakText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.BREAK_START}),n[h-1].push({type:"breakEnd",optText:b.parseMessage(n[h-2]),signalType:b.LINETYPE.BREAK_END}),this.$=n[h-1];break;case 44:this.$=n[h-3].concat([{type:"option",optionText:b.parseMessage(n[h-1]),signalType:b.LINETYPE.CRITICAL_OPTION},n[h]]);break;case 46:this.$=n[h-3].concat([{type:"and",parText:b.parseMessage(n[h-1]),signalType:b.LINETYPE.PAR_AND},n[h]]);break;case 48:this.$=n[h-3].concat([{type:"else",altText:b.parseMessage(n[h-1]),signalType:b.LINETYPE.ALT_ELSE},n[h]]);break;case 49:n[h-3].draw="participant",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 50:n[h-1].draw="participant",n[h-1].type="addParticipant",this.$=n[h-1];break;case 51:n[h-3].draw="actor",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 52:case 57:n[h-1].draw="actor",n[h-1].type="addParticipant",this.$=n[h-1];break;case 53:n[h-1].type="destroyParticipant",this.$=n[h-1];break;case 54:n[h-3].draw="participant",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 55:n[h-1].draw="participant",n[h-1].type="addParticipant",this.$=n[h-1];break;case 56:n[h-3].draw="actor",n[h-3].type="addParticipant",n[h-3].description=b.parseMessage(n[h-1]),this.$=n[h-3];break;case 58:this.$=[n[h-1],{type:"addNote",placement:n[h-2],actor:n[h-1].actor,text:n[h]}];break;case 59:n[h-2]=[].concat(n[h-1],n[h-1]).slice(0,2),n[h-2][0]=n[h-2][0].actor,n[h-2][1]=n[h-2][1].actor,this.$=[n[h-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:n[h-2].slice(0,2),text:n[h]}];break;case 60:this.$=[n[h-1],{type:"addLinks",actor:n[h-1].actor,text:n[h]}];break;case 61:this.$=[n[h-1],{type:"addALink",actor:n[h-1].actor,text:n[h]}];break;case 62:this.$=[n[h-1],{type:"addProperties",actor:n[h-1].actor,text:n[h]}];break;case 63:this.$=[n[h-1],{type:"addDetails",actor:n[h-1].actor,text:n[h]}];break;case 66:this.$=[n[h-2],n[h]];break;case 67:this.$=n[h];break;case 68:this.$=b.PLACEMENT.LEFTOF;break;case 69:this.$=b.PLACEMENT.RIGHTOF;break;case 70:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:n[h-1].actor}];break;case 71:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:n[h-4].actor}];break;case 72:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:n[h-1].actor}];break;case 73:this.$=[n[h-4],n[h-1],{type:"addMessage",from:n[h-4].actor,to:n[h-1].actor,signalType:n[h-2],msg:n[h],activate:!1,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:n[h-4].actor}];break;case 74:this.$=[n[h-5],n[h-1],{type:"addMessage",from:n[h-5].actor,to:n[h-1].actor,signalType:n[h-3],msg:n[h],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:n[h-1].actor},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:n[h-5].actor}];break;case 75:this.$=[n[h-3],n[h-1],{type:"addMessage",from:n[h-3].actor,to:n[h-1].actor,signalType:n[h-2],msg:n[h]}];break;case 76:this.$={type:"addParticipant",actor:n[h-1],config:n[h]};break;case 77:this.$=n[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:n[h]};break;case 79:this.$=b.LINETYPE.SOLID_OPEN;break;case 80:this.$=b.LINETYPE.DOTTED_OPEN;break;case 81:this.$=b.LINETYPE.SOLID;break;case 82:this.$=b.LINETYPE.SOLID_TOP;break;case 83:this.$=b.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=b.LINETYPE.STICK_TOP;break;case 85:this.$=b.LINETYPE.STICK_BOTTOM;break;case 86:this.$=b.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=b.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=b.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=b.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=b.LINETYPE.DOTTED;break;case 100:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=b.LINETYPE.SOLID_CROSS;break;case 102:this.$=b.LINETYPE.DOTTED_CROSS;break;case 103:this.$=b.LINETYPE.SOLID_POINT;break;case 104:this.$=b.LINETYPE.DOTTED_POINT;break;case 105:this.$=b.parseMessage(n[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},e(C,[2,5]),{9:48,13:13,14:u,15:d,18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:U,53:G,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:St},{23:75,55:76,73:St},{23:77,73:Y},{69:78,72:[1,79],78:Ct,79:m,80:P,81:lt,82:at,83:K,84:Rt,85:de,86:Te,87:pe,88:Ee,89:ue,90:fe,91:_e,92:ge,93:xe,94:Ie,95:be,96:ye,97:Re,98:Oe,99:Le,100:me,101:Ae,102:Se,103:ke},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ne),e(C,[2,6]),e(C,[2,16]),e(kt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(we,i,{41:123,7:124}),e(Jt,i,{43:125,7:126}),e(Jt,i,{7:126,43:127}),e(Pe,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Qt,Ne,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:Ct,79:m,80:P,81:lt,82:at,83:K,84:Rt,85:de,86:Te,87:pe,88:Ee,89:ue,90:fe,91:_e,92:ge,93:xe,94:Ie,95:be,96:ye,97:Re,98:Oe,99:Le,100:me,101:Ae,102:Se,103:ke},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:ot},{58:152,104:ot},{58:153,104:ot},{58:154,104:ot},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,161],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,162],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,163],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[2,47],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[2,45],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[2,43],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{4:o,5:s,8:8,9:10,10:c,13:13,14:u,15:d,17:[1,171],18:16,19:p,22:_,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:R,31:T,32:g,34:f,36:I,37:O,38:L,39:k,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:J,56:nt,61:et,62:z,63:st,64:rt,73:Y},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Qt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:ot},{23:181,72:[1,182],73:Y},{58:183,104:ot},{58:184,104:ot},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(kt,[2,11]),{13:186,51:U,53:G,54:J},e(kt,[2,13]),e(kt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ot},{58:196,104:ot},{58:197,104:ot},{5:[2,75]},{58:198,104:ot},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(kt,[2,12]),e(we,i,{7:124,41:201}),e(Jt,i,{7:126,43:202}),e(Pe,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Qt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ot},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(function(S,v){if(v.recoverable)this.trace(S);else{var w=new Error(S);throw w.hash=v,w}},"parseError"),parse:x(function(S){var v=this,w=[0],b=[],q=[null],n=[],Nt=this.table,h="",Vt=0,De=0,ve=0,ur=2,Ce=1,fr=n.slice.call(arguments,1),Q=Object.create(this.lexer),gt={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(gt.yy[$t]=this.yy[$t]);Q.setInput(S,gt.yy),gt.yy.lexer=Q,gt.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var jt=Q.yylloc;n.push(jt);var _r=Q.options&&Q.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gr(it){w.length=w.length-2*it,q.length=q.length-it,n.length=n.length-it}x(gr,"popStack");function Me(){var it;return it=b.pop()||Q.lex()||Ce,typeof it!="number"&&(it instanceof Array&&(b=it,it=b.pop()),it=v.symbols_[it]||it),it}x(Me,"lex");for(var j,te,xt,ct,ua,ee,Ot={},Yt,Tt,Be,Wt;;){if(xt=w[w.length-1],this.defaultActions[xt]?ct=this.defaultActions[xt]:((j===null||typeof j>"u")&&(j=Me()),ct=Nt[xt]&&Nt[xt][j]),typeof ct>"u"||!ct.length||!ct[0]){var re="";Wt=[];for(Yt in Nt[xt])this.terminals_[Yt]&&Yt>ur&&Wt.push("'"+this.terminals_[Yt]+"'");Q.showPosition?re="Parse error on line "+(Vt+1)+`:
|
|
2
2
|
`+Q.showPosition()+`
|
|
3
3
|
Expecting `+Wt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":re="Parse error on line "+(Vt+1)+": Unexpected "+(j==Ce?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(re,{text:Q.match,token:this.terminals_[j]||j,line:Q.yylineno,loc:jt,expected:Wt})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+j);switch(ct[0]){case 1:w.push(j),q.push(Q.yytext),n.push(Q.yylloc),w.push(ct[1]),j=null,te?(j=te,te=null):(De=Q.yyleng,h=Q.yytext,Vt=Q.yylineno,jt=Q.yylloc,ve>0&&ve--);break;case 2:if(Tt=this.productions_[ct[1]][1],Ot.$=q[q.length-Tt],Ot._$={first_line:n[n.length-(Tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(Tt||1)].first_column,last_column:n[n.length-1].last_column},_r&&(Ot._$.range=[n[n.length-(Tt||1)].range[0],n[n.length-1].range[1]]),ee=this.performAction.apply(Ot,[h,De,Vt,gt.yy,ct[1],q,n].concat(fr)),typeof ee<"u")return ee;Tt&&(w=w.slice(0,-1*Tt*2),q=q.slice(0,-1*Tt),n=n.slice(0,-1*Tt)),w.push(this.productions_[ct[1]][0]),q.push(Ot.$),n.push(Ot._$),Be=Nt[w[w.length-2]][w[w.length-1]],w.push(Be);break;case 3:return!0}}return!0},"parse")},Er=(function(){var ut={EOF:1,parseError:x(function(v,w){if(this.yy.parser)this.yy.parser.parseError(v,w);else throw new Error(v)},"parseError"),setInput:x(function(S,v){return this.yy=v||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var v=S.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:x(function(S){var v=S.length,w=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var b=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),w.length-1&&(this.yylineno-=w.length-1);var q=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:w?(w.length===b.length?this.yylloc.first_column:0)+b[b.length-w.length].length-w[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(S){this.unput(this.match.slice(S))},"less"),pastInput:x(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var S=this.pastInput(),v=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
@@ -160,4 +160,4 @@ Expecting `+Wt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":re="Parse error
|
|
|
160
160
|
a ${k},${A} 0 0 0 ${O},0
|
|
161
161
|
l 0,-${L-2*A}
|
|
162
162
|
`;D.append("path").attr("d",M),p==="neo"&&D.attr("filter","url(#drop-shadow)");let V=i.get(t.name)??0;pt.has(u)?(D.style("stroke",E[V%E.length]),D.style("fill",_[V%E.length])):D.style("stroke",R),D.attr("transform",`translate(${O}, ${A})`),t.rectData=f,Et(a,Z(t.description))(t.description,g,f.x,f.y+35,f.width,f.height,{class:`actor ${Ut}`},a);let W=D.select("path:last-child");if(W.node()){let U=W.node().getBBox();t.height=U.height+(a.sequence.labelBoxHeight??0)}return r||(g.attr("data-et","participant"),g.attr("data-type","database"),g.attr("data-id",t.name)),t.height},"drawActorTypeDatabase"),Cr=x(function(e,t,a,r,i){let o=r?t.stopy:t.starty,s=t.x+t.width/2,c=o+80,u=22,d=e.append("g").lower(),{look:p,theme:_,themeVariables:E}=a,{bkgColorArray:R,borderColorArray:T,actorBorder:g}=E;r||(B++,d.append("line").attr("id","actor"+B).attr("x1",s).attr("y1",c).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=B);let f=e.append("g"),I=bt;r?I+=` ${_t}`:I+=` ${ft}`,f.attr("class",I),f.attr("name",t.name);let O=ht();O.x=t.x,O.y=o,O.fill="#eaeaea",O.width=t.width,O.height=t.height,O.class="actor",f.append("line").attr("id","actor-man-torso"+B).attr("x1",t.x+t.width/2-u*2.5).attr("y1",o+12).attr("x2",t.x+t.width/2-15).attr("y2",o+12),f.append("line").attr("id","actor-man-arms"+B).attr("x1",t.x+t.width/2-u*2.5).attr("y1",o+2).attr("x2",t.x+t.width/2-u*2.5).attr("y2",o+22),f.append("circle").attr("cx",t.x+t.width/2).attr("cy",o+12).attr("r",u),p==="neo"&&f.attr("filter","url(#drop-shadow)");let L=i.get(t.name)??0;pt.has(_)?(f.style("stroke",T[L%T.length]),f.style("fill",R[L%T.length])):f.style("stroke",g);let k=f.node().getBBox();return t.height=k.height+(a.sequence.labelBoxHeight??0),Et(a,Z(t.description))(t.description,f,O.x,O.y+15,O.width,O.height,{class:`actor ${bt}`},a),f.attr("transform",`translate(0,${u/2+10})`),r||(f.attr("data-et","participant"),f.attr("data-type","boundary"),f.attr("data-id",t.name)),t.height},"drawActorTypeBoundary"),Mr=x(function(e,t,a,r,i){let o=r?t.stopy:t.starty,s=t.x+t.width/2,c=o+80,{look:u,theme:d,themeVariables:p}=a,{bkgColorArray:_,borderColorArray:E,actorBorder:R}=p,T=e.append("g").lower();r||(B++,T.append("line").attr("id","actor"+B).attr("x1",s).attr("y1",c).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=B);let g=e.append("g"),f=bt;r?f+=` ${_t}`:f+=` ${ft}`,g.attr("class",f),g.attr("name",t.name),r||g.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);let I=u==="neo"?.5:1,O=u==="neo"?o+(1-I)*30:o;g.append("line").attr("id","actor-man-torso"+B).attr("x1",s).attr("y1",O+25*I).attr("x2",s).attr("y2",O+45*I),g.append("line").attr("id","actor-man-arms"+B).attr("x1",s-It/2*I).attr("y1",O+33*I).attr("x2",s+It/2*I).attr("y2",O+33*I),g.append("line").attr("x1",s-It/2*I).attr("y1",O+60*I).attr("x2",s).attr("y2",O+45*I),g.append("line").attr("x1",s).attr("y1",O+45*I).attr("x2",s+(It/2-2)*I).attr("y2",O+60*I);let L=g.append("circle");L.attr("cx",t.x+t.width/2),L.attr("cy",O+10*I),L.attr("r",15*I),L.attr("width",t.width*I),L.attr("height",t.height*I);let k=g.node().getBBox();t.height=k.height;let A=ht();A.x=t.x,A.y=O,A.fill="#eaeaea",A.width=t.width,A.height=t.height/I,A.class="actor",A.rx=3,A.ry=3;let D=i.get(t.name)??0;return pt.has(d)?(g.style("stroke",E[D%E.length]),g.style("fill",_[D%E.length])):g.style("stroke",R),Et(a,Z(t.description))(t.description,g,A.x,O+35*I-(u==="neo"?10:0),A.width,A.height,{class:`actor ${bt}`},a),t.height},"drawActorTypeActor"),Br=x(async function(e,t,a,r,i,o,s){let c=s??new Map([...o.db.getActors().values()].map((u,d)=>[u.name,d]));switch(t.type){case"actor":return await Mr(e,t,a,r,c);case"participant":return await kr(e,t,a,r,c);case"boundary":return await Cr(e,t,a,r,c);case"control":return await Pr(e,t,a,r,i,c);case"entity":return await Dr(e,t,a,r,c);case"database":return await vr(e,t,a,r,c);case"collections":return await Nr(e,t,a,r,c);case"queue":return await wr(e,t,a,r,c)}},"drawActor"),Vr=x(function(e,t,a){let i=e.append("g");ir(i,t),t.name&&Et(a)(t.name,i,t.x,t.y+a.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},a),i.lower()},"drawBox"),Yr=x(function(e){return e.append("g")},"anchorElement"),Wr=x(function(e,t,a,r,i,o,s){let{theme:c,themeVariables:u}=r,{bkgColorArray:d,borderColorArray:p,mainBkg:_}=u,E=ht(),R=t.anchored,T=t.actor;E.x=t.startx,E.y=t.starty,E.class="activation"+i%3,E.width=t.stopx-t.startx,E.height=a-t.starty;let g=vt(R,E),I=(s??new Map([...o.db.getActors().values()].map((O,L)=>[O.name,L]))).get(T)??0;pt.has(c)&&(g.style("stroke",p[I%p.length]),g.style("fill",d[I%p.length]??_))},"drawActivation"),Kr=x(async function(e,t,a,r,i){let{boxMargin:o,boxTextMargin:s,labelBoxHeight:c,labelBoxWidth:u,messageFontFamily:d,messageFontSize:p,messageFontWeight:_}=r,E=e.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),R=x(function(f,I,O,L){return E.append("line").attr("x1",f).attr("y1",I).attr("x2",O).attr("y2",L).attr("class","loopLine")},"drawLoopLine");R(t.startx,t.starty,t.stopx,t.starty),R(t.stopx,t.starty,t.stopx,t.stopy),R(t.startx,t.stopy,t.stopx,t.stopy),R(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(f){R(t.startx,f.y,t.stopx,f.y).style("stroke-dasharray","3, 3")});let T=qt();T.text=a,T.x=t.startx,T.y=t.starty,T.fontFamily=d,T.fontSize=p,T.fontWeight=_,T.anchor="middle",T.valign="middle",T.tspan=!1,T.width=Math.max(u??0,50),T.height=c+(r.look==="neo"?15:0)||20,T.textMargin=s,T.class="labelText",ar(E,T),T=nr(),T.text=t.title,T.x=t.startx+u/2+(t.stopx-t.startx)/2,T.y=t.starty+o+s,T.anchor="middle",T.valign="middle",T.textMargin=s,T.class="loopText",T.fontFamily=d,T.fontSize=p,T.fontWeight=_,T.wrap=!0;let g=Z(T.text)?await zt(E,T,t):At(E,T);if(t.sectionTitles!==void 0){for(let[f,I]of Object.entries(t.sectionTitles))if(I.message){T.text=I.message,T.x=t.startx+(t.stopx-t.startx)/2,T.y=t.sections[f].y+o+s,T.class="sectionTitle",T.anchor="middle",T.valign="middle",T.tspan=!1,T.fontFamily=d,T.fontSize=p,T.fontWeight=_,T.wrap=t.wrap,Z(T.text)?(t.starty=t.sections[f].y,await zt(E,T,t)):At(E,T);let O=Math.round(g.map(L=>(L._groups||L)[0][0].getBBox().height).reduce((L,k)=>L+k));t.sections[f].height+=O-(o+s)}}return t.height=Math.round(t.stopy-t.starty),E},"drawLoop"),ir=x(function(e,t){je(e,t)},"drawBackgroundRect"),Fr=x(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),qr=x(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Hr=x(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),zr=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),Ur=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Gr=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),Xr=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Jr=x(function(e,t){let{theme:a}=t;e.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a==="redux"||a==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),nr=x(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),Qr=x(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Et=(function(){function e(o,s,c,u,d,p,_){let E=s.append("text").attr("x",c+d/2).attr("y",u+p/2+5).style("text-anchor","middle").text(o);i(E,_)}x(e,"byText");function t(o,s,c,u,d,p,_,E){let{actorFontSize:R,actorFontFamily:T,actorFontWeight:g}=E,[f,I]=ie(R),O=o.split(N.lineBreakRegex);for(let L=0;L<O.length;L++){let k=L*f-f*(O.length-1)/2,A=s.append("text").attr("x",c+d/2).attr("y",u).style("text-anchor","middle").style("font-size",I).style("font-weight",g).style("font-family",T);A.append("tspan").attr("x",c+d/2).attr("dy",k).text(O[L]),A.attr("y",u+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(A,_)}}x(t,"byTspan");function a(o,s,c,u,d,p,_,E){let R=s.append("switch"),g=R.append("foreignObject").attr("x",c).attr("y",u).attr("width",d).attr("height",p).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(o),t(o,R,c,u,d,p,_,E),i(g,_)}x(a,"byFo");async function r(o,s,c,u,d,p,_,E){let R=await Lt(o,wt()),T=s.append("switch"),f=T.append("foreignObject").attr("x",c+d/2-R.width/2).attr("y",u+p/2-R.height/2).attr("width",R.width).attr("height",R.height).append("xhtml:div").style("height","100%").style("width","100%");f.append("div").style("text-align","center").style("vertical-align","middle").html(await ae(o,wt())),t(o,T,c,u,d,p,_,E),i(f,_)}x(r,"byKatex");function i(o,s){for(let c in s)s.hasOwnProperty(c)&&o.attr(c,s[c])}return x(i,"_setTextAttrs"),function(o,s=!1){return s?r:o.textPlacement==="fo"?a:o.textPlacement==="old"?e:t}})(),Zr=(function(){function e(i,o,s,c,u,d,p){let _=o.append("text").attr("x",s).attr("y",c).style("text-anchor","start").text(i);r(_,p)}x(e,"byText");function t(i,o,s,c,u,d,p,_){let{actorFontSize:E,actorFontFamily:R,actorFontWeight:T}=_,g=i.split(N.lineBreakRegex);for(let f=0;f<g.length;f++){let I=f*E-E*(g.length-1)/2,O=o.append("text").attr("x",s).attr("y",c).style("text-anchor","start").style("font-size",E).style("font-weight",T).style("font-family",R);O.append("tspan").attr("x",s).attr("dy",I).text(g[f]),O.attr("y",c+d/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(O,p)}}x(t,"byTspan");function a(i,o,s,c,u,d,p,_){let E=o.append("switch"),T=E.append("foreignObject").attr("x",s).attr("y",c).attr("width",u).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");T.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,E,s,c,u,d,p,_),r(T,p)}x(a,"byFo");function r(i,o){for(let s in o)o.hasOwnProperty(s)&&i.attr(s,o[s])}return x(r,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:t}})(),$r=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),jr=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),ta=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),ea=x(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),H={drawRect:vt,drawText:At,drawLabel:ar,drawActor:Br,drawBox:Vr,drawPopup:Sr,anchorElement:Yr,drawActivation:Wr,drawLoop:Kr,drawBackgroundRect:ir,insertArrowHead:zr,insertArrowFilledHead:Ur,insertSequenceNumber:Gr,insertArrowCrossHead:Xr,insertDatabaseIcon:Fr,insertComputerIcon:qr,insertClockIcon:Hr,getTextObj:nr,getNoteRect:Qr,fixLifeLineHeights:sr,sanitizeUrl:he.sanitizeUrl,insertDropShadow:Jr,insertSolidTopArrowHead:$r,insertSolidBottomArrowHead:jr,insertStickTopArrowHead:ta,insertStickBottomArrowHead:ea},l={},y={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:x(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:x(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:x(function(e){this.boxes.push(e)},"addBox"),addActor:x(function(e){this.actors.push(e)},"addActor"),addLoop:x(function(e){this.loops.push(e)},"addLoop"),addMessage:x(function(e){this.messages.push(e)},"addMessage"),addNote:x(function(e){this.notes.push(e)},"addNote"),lastActor:x(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:x(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:x(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:x(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:x(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,lr($())},"init"),updateVal:x(function(e,t,a,r){e[t]===void 0?e[t]=a:e[t]=r(a,e[t])},"updateVal"),updateBounds:x(function(e,t,a,r){let i=this,o=0;function s(c){return x(function(d){o++;let p=i.sequenceItems.length-o+1;i.updateVal(d,"starty",t-p*l.boxMargin,Math.min),i.updateVal(d,"stopy",r+p*l.boxMargin,Math.max),i.updateVal(y.data,"startx",e-p*l.boxMargin,Math.min),i.updateVal(y.data,"stopx",a+p*l.boxMargin,Math.max),c!=="activation"&&(i.updateVal(d,"startx",e-p*l.boxMargin,Math.min),i.updateVal(d,"stopx",a+p*l.boxMargin,Math.max),i.updateVal(y.data,"starty",t-p*l.boxMargin,Math.min),i.updateVal(y.data,"stopy",r+p*l.boxMargin,Math.max))},"updateItemBounds")}x(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:x(function(e,t,a,r){let i=N.getMin(e,a),o=N.getMax(e,a),s=N.getMin(t,r),c=N.getMax(t,r);this.updateVal(y.data,"startx",i,Math.min),this.updateVal(y.data,"starty",s,Math.min),this.updateVal(y.data,"stopx",o,Math.max),this.updateVal(y.data,"stopy",c,Math.max),this.updateBounds(i,s,o,c)},"insert"),newActivation:x(function(e,t,a){let r=a.get(e.from),i=Xt(e.from).length||0,o=r.x+r.width/2+(i-1)*l.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+l.activationWidth,stopy:void 0,actor:e.from,anchored:H.anchorElement(t)})},"newActivation"),endActivation:x(function(e){let t=this.activations.map(function(a){return a.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:x(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:x(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:x(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:x(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:x(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:y.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:x(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:x(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:x(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=N.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:x(function(){return this.verticalPos},"getVerticalPos"),getBounds:x(function(){return{bounds:this.data,models:this.models}},"getBounds")},ra=x(async function(e,t,a){y.bumpVerticalPos(l.boxMargin),t.height=l.boxMargin,t.starty=y.getVerticalPos();let r=ht();r.x=t.startx,r.y=t.starty,r.width=t.width||l.width,r.class="note";let i=e.append("g");i.attr("data-et","note"),i.attr("data-id","i"+a);let o=H.drawRect(i,r),s=qt();s.x=t.startx,s.y=t.starty,s.width=r.width,s.dy="1em",s.text=t.message,s.class="noteText",s.fontFamily=l.noteFontFamily,s.fontSize=l.noteFontSize,s.fontWeight=l.noteFontWeight,s.anchor=l.noteAlign,s.textMargin=l.noteMargin,s.valign="center";let c=Z(s.text)?await zt(i,s):At(i,s),u=Math.round(c.map(d=>(d._groups||d)[0][0].getBBox().height).reduce((d,p)=>d+p));o.attr("height",u+2*l.noteMargin),t.height+=u+2*l.noteMargin,y.bumpVerticalPos(u+2*l.noteMargin),t.stopy=t.starty+u+2*l.noteMargin,t.stopx=t.startx+r.width,y.insert(t.startx,t.starty,t.stopx,t.stopy),y.models.addNote(t)},"drawNote"),er=x(function(e,t,a,r,i,o,s){let c=r.db.getActors(),u=c.get(t.from),d=c.get(t.to),p=a.sequenceVisible,_=u.x+u.width/2,E=d.x+d.width/2,R=_<=E,T=pr(t,r),g=e.append("g"),f=16.5,I=x((D,M)=>{let V=D?f:-f;return M?-V:V},"getCircleOffset"),O=x(D=>{g.append("circle").attr("cx",D).attr("cy",s).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:L,CENTRAL_CONNECTION_REVERSE:k,CENTRAL_CONNECTION_DUAL:A}=r.db.LINETYPE;if(p)switch(t.centralConnection){case L:T&&(E+=I(R,!0));break;case k:T||(_+=I(R,!1));break;case A:T?E+=I(R,!0):_+=I(R,!1);break}switch(t.centralConnection){case L:O(E);break;case k:O(_);break;case A:O(_),O(E);break}},"drawCentralConnection"),yt=x(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),mt=x(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),ce=x(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function or(e,t){y.bumpVerticalPos(10);let{startx:a,stopx:r,message:i}=t,o=N.splitBreaks(i).length,s=Z(i),c=s?await Lt(i,$()):X.calculateTextDimensions(i,yt(l));if(!s){let _=c.height/o;t.height+=_,y.bumpVerticalPos(_)}let u,d=c.height-10,p=c.width;if(a===r){u=y.getVerticalPos()+d,l.rightAngles||(d+=l.boxMargin,u=y.getVerticalPos()+d),d+=30;let _=N.getMax(p/2,l.width/2);y.insert(a-_,y.getVerticalPos()-10+d,r+_,y.getVerticalPos()+30+d)}else d+=l.boxMargin,u=y.getVerticalPos()+d,y.insert(a,u-10,r,u);return y.bumpVerticalPos(d),t.height+=d,t.stopy=t.starty+t.height,y.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),u}x(or,"boundMessage");var aa=x(async function(e,t,a,r,i,o){let{startx:s,stopx:c,starty:u,message:d,type:p,sequenceIndex:_,sequenceVisible:E}=t,R=X.calculateTextDimensions(d,yt(l)),T=qt();T.x=Math.min(s,c),T.y=u+10,T.width=Math.abs(c-s),T.class="messageText",T.dy="1em",T.text=d,T.fontFamily=l.messageFontFamily,T.fontSize=l.messageFontSize,T.fontWeight=l.messageFontWeight,T.anchor=l.messageAlign,T.valign="center",T.textMargin=l.wrapPadding,T.tspan=!1,Z(T.text)?await zt(e,T,{startx:s,stopx:c,starty:a}):At(e,T);let g=R.width,f;if(s===c){let O=E||l.showSequenceNumbers,L=pr(i,r),k=da(i,r),A=s+(O&&(L||k)?10:0);l.rightAngles?f=e.append("path").attr("d",`M ${A},${a} H ${s+N.getMax(l.width/2,g/2)} V ${a+25} H ${s}`):f=e.append("path").attr("d","M "+A+","+a+" C "+(A+60)+","+(a-10)+" "+(s+60)+","+(a+30)+" "+s+","+(a+20)),ne(i,r)&&er(e,i,t,r,s,c,a)}else f=e.append("line"),f.attr("x1",s),f.attr("y1",a),f.attr("x2",c),f.attr("y2",a),ne(i,r)&&er(e,i,t,r,s,c,a);p===r.db.LINETYPE.DOTTED||p===r.db.LINETYPE.DOTTED_CROSS||p===r.db.LINETYPE.DOTTED_POINT||p===r.db.LINETYPE.DOTTED_OPEN||p===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||p===r.db.LINETYPE.SOLID_TOP_DOTTED||p===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||p===r.db.LINETYPE.STICK_TOP_DOTTED||p===r.db.LINETYPE.STICK_BOTTOM_DOTTED||p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(f.style("stroke-dasharray","3, 3"),f.attr("class","messageLine1")):f.attr("class","messageLine0"),f.attr("data-et","message"),f.attr("data-id","i"+t.id),f.attr("data-from",t.from),f.attr("data-to",t.to);let I="";if(l.arrowMarkerAbsolute&&(I=We(!0)),f.attr("stroke-width",2),f.attr("stroke","none"),f.style("fill","none"),(p===r.db.LINETYPE.SOLID_TOP||p===r.db.LINETYPE.SOLID_TOP_DOTTED)&&f.attr("marker-end","url("+I+"#"+o+"-solidTopArrowHead)"),(p===r.db.LINETYPE.SOLID_BOTTOM||p===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&f.attr("marker-end","url("+I+"#"+o+"-solidBottomArrowHead)"),(p===r.db.LINETYPE.STICK_TOP||p===r.db.LINETYPE.STICK_TOP_DOTTED)&&f.attr("marker-end","url("+I+"#"+o+"-stickTopArrowHead)"),(p===r.db.LINETYPE.STICK_BOTTOM||p===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&f.attr("marker-end","url("+I+"#"+o+"-stickBottomArrowHead)"),(p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&f.attr("marker-start","url("+I+"#"+o+"-solidBottomArrowHead)"),(p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&f.attr("marker-start","url("+I+"#"+o+"-solidTopArrowHead)"),(p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&f.attr("marker-start","url("+I+"#"+o+"-stickBottomArrowHead)"),(p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&f.attr("marker-start","url("+I+"#"+o+"-stickTopArrowHead)"),(p===r.db.LINETYPE.SOLID||p===r.db.LINETYPE.DOTTED)&&f.attr("marker-end","url("+I+"#"+o+"-arrowhead)"),(p===r.db.LINETYPE.BIDIRECTIONAL_SOLID||p===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(f.attr("marker-start","url("+I+"#"+o+"-arrowhead)"),f.attr("marker-end","url("+I+"#"+o+"-arrowhead)")),(p===r.db.LINETYPE.SOLID_POINT||p===r.db.LINETYPE.DOTTED_POINT)&&f.attr("marker-end","url("+I+"#"+o+"-filled-head)"),(p===r.db.LINETYPE.SOLID_CROSS||p===r.db.LINETYPE.DOTTED_CROSS)&&f.attr("marker-end","url("+I+"#"+o+"-crosshead)"),E||l.showSequenceNumbers){let O=p===r.db.LINETYPE.BIDIRECTIONAL_SOLID||p===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,L=p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,k=6,A=ne(i,r),D=s,M=c;O?(s<c?D=s+k*2:(D=s-k+(A?-5:0),D+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),f.attr("x1",D)):L?(c>s?M=c-2*k:(M=c-k,D+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),M+=A?15:0,f.attr("x2",M),f.attr("x1",D)):f.attr("x1",s+k);let V=0,W=s===c,U=s<=c;W?V=t.fromBounds+1:L?V=U?t.toBounds-1:t.fromBounds+1:V=U?t.fromBounds+1:t.toBounds-1;let G="12px",J=_.toString().length;J>5?G="7px":J>3&&(G="9px"),e.append("line").attr("x1",V).attr("y1",a).attr("x2",V).attr("y2",a).attr("stroke-width",0).attr("marker-start","url("+I+"#"+o+"-sequencenumber)"),e.append("text").attr("x",V).attr("y",a+4).attr("font-family","sans-serif").attr("font-size",G).attr("text-anchor","middle").attr("class","sequenceNumber").text(_)}},"drawMessage"),sa=x(function(e,t,a,r,i,o,s){let c=0,u=0,d,p=0;for(let _ of r){let E=t.get(_),R=E.box;d&&d!=R&&(s||y.models.addBox(d),u+=l.boxMargin+d.margin),R&&R!=d&&(s||(R.x=c+u,R.y=i),u+=R.margin),E.width=N.getMax(E.width||l.width,l.width),E.height=N.getMax(E.height||l.height,l.height),E.margin=E.margin||l.actorMargin,p=N.getMax(p,E.height),a.get(E.name)&&(u+=E.width/2),E.x=c+u,E.starty=y.getVerticalPos(),y.insert(E.x,i,E.x+E.width,E.height),c+=E.width+u,E.box&&(E.box.width=c+R.margin-E.box.x),u=E.margin,d=E.box,y.models.addActor(E)}d&&!s&&y.models.addBox(d),y.bumpVerticalPos(p)},"addActorRenderingData"),le=x(async function(e,t,a,r,i,o,s){if(r){let c=0;y.bumpVerticalPos(l.boxMargin*2);for(let u of a){let d=t.get(u);d.stopy||(d.stopy=y.getVerticalPos());let p=await H.drawActor(e,d,l,!0,i,o,s);c=N.getMax(c,p)}y.bumpVerticalPos(c+l.boxMargin)}else for(let c of a){let u=t.get(c);await H.drawActor(e,u,l,!1,i,o,s)}},"drawActors"),cr=x(function(e,t,a,r){let i=0,o=0;for(let s of a){let c=t.get(s),u=na(c),d=H.drawPopup(e,c,u,l,l.forceMenus,r);d.height>i&&(i=d.height),d.width+c.x>o&&(o=d.width+c.x)}return{maxHeight:i,maxWidth:o}},"drawActorsPopup"),lr=x(function(e){Ye(l,e),e.fontFamily&&(l.actorFontFamily=l.noteFontFamily=l.messageFontFamily=e.fontFamily),e.fontSize&&(l.actorFontSize=l.noteFontSize=l.messageFontSize=e.fontSize),e.fontWeight&&(l.actorFontWeight=l.noteFontWeight=l.messageFontWeight=e.fontWeight)},"setConf"),Xt=x(function(e){return y.activations.filter(function(t){return t.actor===e})},"actorActivations"),rr=x(function(e,t){let a=t.get(e),r=Xt(e),i=r.reduce(function(s,c){return N.getMin(s,c.startx)},a.x+a.width/2-1),o=r.reduce(function(s,c){return N.getMax(s,c.stopx)},a.x+a.width/2+1);return[i,o]},"activationBounds");function dt(e,t,a,r,i){y.bumpVerticalPos(a);let o=r;if(t.id&&t.message&&e[t.id]){let s=e[t.id].width,c=yt(l);t.message=X.wrapLabel(`[${t.message}]`,s-2*l.wrapPadding,c),t.width=s,t.wrap=!0;let u=X.calculateTextDimensions(t.message,c),d=N.getMax(u.height,l.labelBoxHeight);o=r+d,tt.debug(`${d} - ${t.message}`)}i(t),y.bumpVerticalPos(o)}x(dt,"adjustLoopHeightForWrap");function hr(e,t,a,r,i,o,s){function c(p,_){p.x<i.get(e.from).x?(y.insert(t.stopx-_,t.starty,t.startx,t.stopy+p.height/2+l.noteMargin),t.stopx=t.stopx+_):(y.insert(t.startx,t.starty,t.stopx+_,t.stopy+p.height/2+l.noteMargin),t.stopx=t.stopx-_)}x(c,"receiverAdjustment");function u(p,_){p.x<i.get(e.to).x?(y.insert(t.startx-_,t.starty,t.stopx,t.stopy+p.height/2+l.noteMargin),t.startx=t.startx+_):(y.insert(t.stopx,t.starty,t.startx+_,t.stopy+p.height/2+l.noteMargin),t.startx=t.startx-_)}x(u,"senderAdjustment");let d=[Ht.ACTOR,Ht.CONTROL,Ht.ENTITY,Ht.DATABASE];if(o.get(e.to)==r){let p=i.get(e.to),_=d.includes(p.type)?It/2+3:p.width/2+3;c(p,_),p.starty=a-p.height/2,y.bumpVerticalPos(p.height/2)}else if(s.get(e.from)==r){let p=i.get(e.from);if(l.mirrorActors){let _=d.includes(p.type)?It/2:p.width/2;u(p,_)}p.stopy=a-p.height/2,y.bumpVerticalPos(p.height/2)}else if(s.get(e.to)==r){let p=i.get(e.to);if(l.mirrorActors){let _=d.includes(p.type)?It/2+3:p.width/2+3;c(p,_)}p.stopy=a-p.height/2,y.bumpVerticalPos(p.height/2)}}x(hr,"adjustCreatedDestroyedData");var ia=x(async function(e,t,a,r){let{securityLevel:i,sequence:o,look:s,themeVariables:c}=$();l=o;let u;i==="sandbox"&&(u=Dt("#i"+t));let d=i==="sandbox"?Dt(u.nodes()[0].contentDocument.body):Dt("body"),p=i==="sandbox"?u.nodes()[0].contentDocument:document;y.init(),tt.debug(r.db);let _=i==="sandbox"?d.select(`[id="${t}"]`):Dt(`[id="${t}"]`),E=r.db.getActors(),R=r.db.getCreatedActors(),T=r.db.getDestroyedActors(),g=r.db.getBoxes(),f=r.db.getActorKeys(),I=r.db.getMessages(),O=r.db.getDiagramTitle(),L=r.db.hasAtLeastOneBox(),k=r.db.hasAtLeastOneBoxWithTitle(),A=await dr(E,I,r);if(l.height=await Tr(E,A,g),H.insertComputerIcon(_,t),H.insertDatabaseIcon(_,t),H.insertClockIcon(_,t),L&&(y.bumpVerticalPos(l.boxMargin),k&&y.bumpVerticalPos(g[0].textMaxHeight)),l.hideUnusedParticipants===!0){let m=new Set;I.forEach(P=>{m.add(P.from),m.add(P.to)}),f=f.filter(P=>m.has(P))}let D=new Map(f.map((m,P)=>[E.get(m)?.name??m,P]));sa(_,E,R,f,0,I,!1);let M=await pa(I,E,A,r);H.insertArrowHead(_,t),H.insertArrowCrossHead(_,t),H.insertArrowFilledHead(_,t),H.insertSequenceNumber(_,t),H.insertSolidTopArrowHead(_,t),H.insertSolidBottomArrowHead(_,t),H.insertStickTopArrowHead(_,t),H.insertStickBottomArrowHead(_,t),s==="neo"&&H.insertDropShadow(_,l);function V(m,P){let lt=y.endActivation(m);lt.starty+18>P&&(lt.starty=P-6,P+=12),H.drawActivation(_,lt,P,l,Xt(m.from).length,r,D),y.insert(lt.startx,P-10,lt.stopx,P)}x(V,"activeEnd");let W=1,U=1,G=[],J=[],nt=0;for(let m of I){let P,lt,at;switch(m.type){case r.db.LINETYPE.NOTE:y.resetVerticalPos(),lt=m.noteModel,await ra(_,lt,m.id);break;case r.db.LINETYPE.ACTIVE_START:y.newActivation(m,_,E);break;case r.db.LINETYPE.CENTRAL_CONNECTION:y.newActivation(m,_,E);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:y.newActivation(m,_,E);break;case r.db.LINETYPE.ACTIVE_END:V(m,y.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:dt(M,m,l.boxMargin,l.boxMargin+l.boxTextMargin,K=>y.newLoop(K));break;case r.db.LINETYPE.LOOP_END:P=y.endLoop(),await H.drawLoop(_,P,"loop",l,m),y.bumpVerticalPos(P.stopy-y.getVerticalPos()),y.models.addLoop(P);break;case r.db.LINETYPE.RECT_START:dt(M,m,l.boxMargin,l.boxMargin,K=>{let Rt=K.message;Rt||(Rt=c?.rectBkgColor||c?.actorBkg||"rgba(128, 128, 128, 0.5)"),y.newLoop(void 0,Rt)});break;case r.db.LINETYPE.RECT_END:P=y.endLoop(),J.push(P),y.models.addLoop(P),y.bumpVerticalPos(P.stopy-y.getVerticalPos());break;case r.db.LINETYPE.OPT_START:dt(M,m,l.boxMargin,l.boxMargin+l.boxTextMargin,K=>y.newLoop(K));break;case r.db.LINETYPE.OPT_END:P=y.endLoop(),await H.drawLoop(_,P,"opt",l,m),y.bumpVerticalPos(P.stopy-y.getVerticalPos()),y.models.addLoop(P);break;case r.db.LINETYPE.ALT_START:dt(M,m,l.boxMargin,l.boxMargin+l.boxTextMargin,K=>y.newLoop(K));break;case r.db.LINETYPE.ALT_ELSE:dt(M,m,l.boxMargin+l.boxTextMargin,l.boxMargin,K=>y.addSectionToLoop(K));break;case r.db.LINETYPE.ALT_END:P=y.endLoop(),await H.drawLoop(_,P,"alt",l,m),y.bumpVerticalPos(P.stopy-y.getVerticalPos()),y.models.addLoop(P);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:dt(M,m,l.boxMargin,l.boxMargin+l.boxTextMargin,K=>y.newLoop(K)),y.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:dt(M,m,l.boxMargin+l.boxTextMargin,l.boxMargin,K=>y.addSectionToLoop(K));break;case r.db.LINETYPE.PAR_END:P=y.endLoop(),await H.drawLoop(_,P,"par",l,m),y.bumpVerticalPos(P.stopy-y.getVerticalPos()),y.models.addLoop(P);break;case r.db.LINETYPE.AUTONUMBER:W=m.message.start||W,U=m.message.step||U,m.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:dt(M,m,l.boxMargin,l.boxMargin+l.boxTextMargin,K=>y.newLoop(K));break;case r.db.LINETYPE.CRITICAL_OPTION:dt(M,m,l.boxMargin+l.boxTextMargin,l.boxMargin,K=>y.addSectionToLoop(K));break;case r.db.LINETYPE.CRITICAL_END:P=y.endLoop(),await H.drawLoop(_,P,"critical",l,m),y.bumpVerticalPos(P.stopy-y.getVerticalPos()),y.models.addLoop(P);break;case r.db.LINETYPE.BREAK_START:dt(M,m,l.boxMargin,l.boxMargin+l.boxTextMargin,K=>y.newLoop(K));break;case r.db.LINETYPE.BREAK_END:P=y.endLoop(),await H.drawLoop(_,P,"break",l,m),y.bumpVerticalPos(P.stopy-y.getVerticalPos()),y.models.addLoop(P);break;default:try{at=m.msgModel,at.starty=y.getVerticalPos(),at.sequenceIndex=W,at.sequenceVisible=r.db.showSequenceNumbers(),at.id=m.id,at.from=m.from,at.to=m.to;let K=await or(_,at);hr(m,at,K,nt,E,R,T),G.push({messageModel:at,lineStartY:K,msg:m}),y.models.addMessage(at)}catch(K){tt.error("error while drawing message",K)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(m.type)&&(W=Math.round((W+U)*100)/100),nt++}tt.debug("createdActors",R),tt.debug("destroyedActors",T),await le(_,E,f,!1,t,r,D);for(let m of G)await aa(_,m.messageModel,m.lineStartY,r,m.msg,t);l.mirrorActors&&await le(_,E,f,!0,t,r,D),J.forEach(m=>H.drawBackgroundRect(_,m)),sr(_,E,f,l);for(let m of y.models.boxes){m.height=y.getVerticalPos()-m.y,y.insert(m.x,m.y,m.x+m.width,m.height);let P=l.boxMargin*2;m.startx=m.x-P,m.starty=m.y-P*.25,m.stopx=m.startx+m.width+2*P,m.stopy=m.starty+m.height+P*.75,m.stroke="rgb(0,0,0, 0.5)",H.drawBox(_,m,l)}L&&y.bumpVerticalPos(l.boxMargin);let et=cr(_,E,f,p),{bounds:z}=y.getBounds();z.startx===void 0&&(z.startx=0),z.starty===void 0&&(z.starty=0),z.stopx===void 0&&(z.stopx=0),z.stopy===void 0&&(z.stopy=0);let st=z.stopy-z.starty;st<et.maxHeight&&(st=et.maxHeight);let rt=st+2*l.diagramMarginY;l.mirrorActors&&(rt=rt-l.boxMargin+l.bottomMarginAdj);let Y=z.stopx-z.startx;Y<et.maxWidth&&(Y=et.maxWidth);let C=Y+2*l.diagramMarginX;O&&_.append("text").text(O).attr("x",(z.stopx-z.startx)/2-2*l.diagramMarginX).attr("y",-25),Ke(_,rt,C,l.useMaxWidth);let St=O?40:0,Ct=E.size&&s==="neo"?30:0;_.attr("viewBox",z.startx-l.diagramMarginX+" -"+(l.diagramMarginY+St)+" "+C+" "+(rt+St+Ct)),tt.debug("models:",y.models)},"draw");async function dr(e,t,a){let r={};for(let i of t)if(e.get(i.to)&&e.get(i.from)){let o=e.get(i.to);if(i.placement===a.db.PLACEMENT.LEFTOF&&!o.prevActor||i.placement===a.db.PLACEMENT.RIGHTOF&&!o.nextActor)continue;let s=i.placement!==void 0,c=!s,u=s?mt(l):yt(l),d=i.wrap?X.wrapLabel(i.message,l.width-2*l.wrapPadding,u):i.message,_=(Z(d)?await Lt(i.message,$()):X.calculateTextDimensions(d,u)).width+2*l.wrapPadding;c&&i.from===o.nextActor?r[i.to]=N.getMax(r[i.to]||0,_):c&&i.from===o.prevActor?r[i.from]=N.getMax(r[i.from]||0,_):c&&i.from===i.to?(r[i.from]=N.getMax(r[i.from]||0,_/2),r[i.to]=N.getMax(r[i.to]||0,_/2)):i.placement===a.db.PLACEMENT.RIGHTOF?r[i.from]=N.getMax(r[i.from]||0,_):i.placement===a.db.PLACEMENT.LEFTOF?r[o.prevActor]=N.getMax(r[o.prevActor]||0,_):i.placement===a.db.PLACEMENT.OVER&&(o.prevActor&&(r[o.prevActor]=N.getMax(r[o.prevActor]||0,_/2)),o.nextActor&&(r[i.from]=N.getMax(r[i.from]||0,_/2)))}return tt.debug("maxMessageWidthPerActor:",r),r}x(dr,"getMaxMessageWidthPerActor");var na=x(function(e){let t=0,a=ce(l);for(let r in e.links){let o=X.calculateTextDimensions(r,a).width+2*l.wrapPadding+2*l.boxMargin;t<o&&(t=o)}return t},"getRequiredPopupWidth");async function Tr(e,t,a){let r=0;for(let o of e.keys()){let s=e.get(o);s.wrap&&(s.description=X.wrapLabel(s.description,l.width-2*l.wrapPadding,ce(l)));let c=Z(s.description)?await Lt(s.description,$()):X.calculateTextDimensions(s.description,ce(l));s.width=s.wrap?l.width:N.getMax(l.width,c.width+2*l.wrapPadding),s.height=s.wrap?N.getMax(c.height,l.height):l.height,r=N.getMax(r,s.height)}for(let o in t){let s=e.get(o);if(!s)continue;let c=e.get(s.nextActor);if(!c){let _=t[o]+l.actorMargin-s.width/2;s.margin=N.getMax(_,l.actorMargin);continue}let d=t[o]+l.actorMargin-s.width/2-c.width/2;s.margin=N.getMax(d,l.actorMargin)}let i=0;return a.forEach(o=>{let s=yt(l),c=o.actorKeys.reduce((_,E)=>_+=e.get(E).width+(e.get(E).margin||0),0),u=l.boxMargin*8;c+=u,c-=2*l.boxTextMargin,o.wrap&&(o.name=X.wrapLabel(o.name,c-2*l.wrapPadding,s));let d=X.calculateTextDimensions(o.name,s);i=N.getMax(d.height,i);let p=N.getMax(c,d.width+2*l.wrapPadding);if(o.margin=l.boxTextMargin,c<p){let _=(p-c)/2;o.margin+=_}}),a.forEach(o=>o.textMaxHeight=i),N.getMax(r,l.height)}x(Tr,"calculateActorMargins");var oa=x(async function(e,t,a){let r=t.get(e.from),i=t.get(e.to),o=r.x,s=i.x,c=e.wrap&&e.message,u=Z(e.message)?await Lt(e.message,$()):X.calculateTextDimensions(c?X.wrapLabel(e.message,l.width,mt(l)):e.message,mt(l)),d={width:c?l.width:N.getMax(l.width,u.width+2*l.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===a.db.PLACEMENT.RIGHTOF?(d.width=c?N.getMax(l.width,u.width):N.getMax(r.width/2+i.width/2,u.width+2*l.noteMargin),d.startx=o+(r.width+l.actorMargin)/2):e.placement===a.db.PLACEMENT.LEFTOF?(d.width=c?N.getMax(l.width,u.width+2*l.noteMargin):N.getMax(r.width/2+i.width/2,u.width+2*l.noteMargin),d.startx=o-d.width+(r.width-l.actorMargin)/2):e.to===e.from?(u=X.calculateTextDimensions(c?X.wrapLabel(e.message,N.getMax(l.width,r.width),mt(l)):e.message,mt(l)),d.width=c?N.getMax(l.width,r.width):N.getMax(r.width,l.width,u.width+2*l.noteMargin),d.startx=o+(r.width-d.width)/2):(d.width=Math.abs(o+r.width/2-(s+i.width/2))+l.actorMargin,d.startx=o<s?o+r.width/2-l.actorMargin/2:s+i.width/2-l.actorMargin/2),c&&(d.message=X.wrapLabel(e.message,d.width-2*l.wrapPadding,mt(l))),tt.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`),d},"buildNoteModel"),ca=4,la=6,ne=x(function(e,t){let{CENTRAL_CONNECTION:a,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[a,r,i].includes(e.centralConnection)},"hasCentralConnection"),ha=x(function(e,t,a){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:o,BIDIRECTIONAL_DOTTED:s}=t.db.LINETYPE,c=0;return(e.centralConnection===r||e.centralConnection===i)&&(c+=ca),(e.centralConnection===r||e.centralConnection===i)&&(e.type===o||e.type===s)&&(c+=a?0:-la),c},"calculateCentralConnectionOffset"),pr=x(function(e,t){let{SOLID_ARROW_TOP_REVERSE:a,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:o,STICK_ARROW_TOP_REVERSE:s,STICK_ARROW_TOP_REVERSE_DOTTED:c,STICK_ARROW_BOTTOM_REVERSE:u,STICK_ARROW_BOTTOM_REVERSE_DOTTED:d}=t.db.LINETYPE;return[a,r,i,o,s,c,u,d].includes(e.type)},"isReverseArrowType"),da=x(function(e,t){let{BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[a,r].includes(e.type)},"isBidirectionalArrowType"),Ta=x(function(e,t,a){let{look:r}=$();if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[i,o]=rr(e.from,t),[s,c]=rr(e.to,t),u=i<=s,d=u?o:i,p=u?s:c;r==="neo"&&(e.type!==a.db.LINETYPE.SOLID_OPEN&&(p+=u?-3:3),(e.type===a.db.LINETYPE.BIDIRECTIONAL_SOLID||e.type===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(d+=u?3:-3)),d+=ha(e,a,u);let _=Math.abs(s-c)>2,E=x(f=>u?-f:f,"adjustValue");e.from===e.to?p=d:(e.activate&&!_&&(p+=E(l.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(p+=E(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(d-=E(3)));let R=[i,o,s,c],T=Math.abs(d-p);e.wrap&&e.message&&(e.message=X.wrapLabel(e.message,N.getMax(T+2*l.wrapPadding,l.width),yt(l)));let g=X.calculateTextDimensions(e.message,yt(l));return{width:N.getMax(e.wrap?0:g.width+2*l.wrapPadding,T+2*l.wrapPadding,l.width),height:0,startx:d,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,R),toBounds:Math.max.apply(null,R)}},"buildMessageModel"),pa=x(async function(e,t,a,r){let i={},o=[],s,c,u;for(let d of e){switch(d.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:o.push({id:d.id,msg:d.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:d.message&&(s=o.pop(),i[s.id]=s,i[d.id]=s,o.push(s));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:s=o.pop(),i[s.id]=s;break;case r.db.LINETYPE.ACTIVE_START:{let _=t.get(d.from?d.from:d.to.actor),E=Xt(d.from?d.from:d.to.actor).length,R=_.x+_.width/2+(E-1)*l.activationWidth/2,T={startx:R,stopx:R+l.activationWidth,actor:d.from,enabled:!0};y.activations.push(T)}break;case r.db.LINETYPE.ACTIVE_END:{let _=y.activations.map(E=>E.actor).lastIndexOf(d.from);y.activations.splice(_,1).splice(0,1)}break}d.placement!==void 0?(c=await oa(d,t,r),d.noteModel=c,o.forEach(_=>{s=_,s.from=N.getMin(s.from,c.startx),s.to=N.getMax(s.to,c.startx+c.width),s.width=N.getMax(s.width,Math.abs(s.from-s.to))-l.labelBoxWidth})):(u=Ta(d,t,r),d.msgModel=u,u.startx&&u.stopx&&o.length>0&&o.forEach(_=>{if(s=_,u.startx===u.stopx){let E=t.get(d.from),R=t.get(d.to);s.from=N.getMin(E.x-u.width/2,E.x-E.width/2,s.from),s.to=N.getMax(R.x+u.width/2,R.x+E.width/2,s.to),s.width=N.getMax(s.width,Math.abs(s.to-s.from))-l.labelBoxWidth}else s.from=N.getMin(u.startx,s.from),s.to=N.getMax(u.stopx,s.to),s.width=N.getMax(s.width,u.width)-l.labelBoxWidth}))}return y.activations=[],tt.debug("Loop type widths:",i),i},"calculateLoopBounds"),Ea={bounds:y,drawActors:le,drawActorsPopup:cr,setConf:lr,draw:ia},La={parser:br,get db(){return new Lr},renderer:Ea,styles:Ar,init:x(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,Xe({sequence:{wrap:e.wrap}}))},"init")};export{La as diagram};
|
|
163
|
-
//# sourceMappingURL=sequenceDiagram-WJ2MYXX4-
|
|
163
|
+
//# sourceMappingURL=sequenceDiagram-WJ2MYXX4-FGWOVXU4.js.map
|
package/dist/web/chunks/{sizeCapture-INFHLROL-DZI5JWEV.js → sizeCapture-INFHLROL-Y6H3VQLE.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=sizeCapture-INFHLROL-
|
|
1
|
+
import{a as o}from"./chunk-ITN3D7RJ.js";import{d as u}from"./chunk-SOAWGUAD.js";u();var p=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function m(){return!!i()?.mermaidCaptureSizes}o(m,"shouldCaptureSizes");function d(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(d,"capturedFromLocation");function s(n,r){let t=i();if(!t)return;let e=r.node(),c=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];let a={svgId:c,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(s,"emitCapturedSizes");function l(n,r){let t=[];for(let e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&s({metadata:{captureVersion:p,capturedAt:new Date().toISOString(),capturedFrom:d()},nodes:t},n)}o(l,"captureNodeSizes");export{l as captureNodeSizes,m as shouldCaptureSizes};
|
|
2
|
+
//# sourceMappingURL=sizeCapture-INFHLROL-Y6H3VQLE.js.map
|
package/dist/web/chunks/{stateDiagram-D77RDMKH-EQJNTBF3.js → stateDiagram-D77RDMKH-7PRO4WYR.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as F,c as N,d as O}from"./chunk-2RFQIKC6.js";import{a as _}from"./chunk-4TORDSRR.js";import{C as U}from"./chunk-5KNOHX5X.js";import"./chunk-HBEUVMXY.js";import"./chunk-DIRT34TZ.js";import"./chunk-6TGTE6CF.js";import"./chunk-4IPDIKAU.js";import"./chunk-GQPX4EIC.js";import"./chunk-BUZPUGIT.js";import"./chunk-T4HEWXAQ.js";import"./chunk-HNYXDXPN.js";import"./chunk-M3SWKTLZ.js";import"./chunk-OODDZ447.js";import"./chunk-FPLIRG3U.js";import"./chunk-II6WN3ZG.js";import{p as C}from"./chunk-LHNPPNB7.js";import"./chunk-MBZYSJFT.js";import{I as G,N as T,O as R,_ as t}from"./chunk-6FQEBIA3.js";import{H as W,L as P,b as v,h as z}from"./chunk-L34PKG4P.js";import{a as u}from"./chunk-LDXBIOBF.js";import{d as A}from"./chunk-R7TFKRNM.js";A();var Y=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),I=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),$=u((e,i)=>{let s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),g=s.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g.width+2*t().state.padding).attr("height",g.height+2*t().state.padding).attr("rx",t().state.radius),s},"drawSimpleState"),q=u((e,i)=>{let s=u(function(o,w,y){let S=o.append("tspan").attr("x",2*t().state.padding).text(w);y||S.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),p=n.height,h=e.append("text").attr("x",t().state.padding).attr("y",p+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),a=!0,d=!0;i.descriptions.forEach(function(o){a||(s(h,o,d),d=!1),a=!1});let m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+p+t().state.dividerMargin/2).attr("y2",t().state.padding+p+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),c=Math.max(x.width,n.width);return m.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+p+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Z=u((e,i,s)=>{let g=t().state.padding,n=2*t().state.padding,p=e.node().getBBox(),h=p.width,a=p.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=d.node().getBBox().width+n,c=Math.max(x,h);c===h&&(c=c+n);let o,w=e.node().getBBox();i.doc,o=a-g,x>h&&(o=(h-c)/2+g),Math.abs(a-w.x)<g&&x>h&&(o=a-(x-h)/2);let y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",s?"alt-composit":"composit").attr("width",c).attr("height",w.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",o+g),x<=h&&d.attr("x",a+(c-n)/2-x/2+g),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",w.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),j=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),K=u((e,i)=>{let s=t().state.forkWidth,g=t().state.forkHeight;if(i.parentId){let n=s;s=g,g=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",s).attr("height",g).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Q=u((e,i,s,g)=>{let n=0,p=g.append("text");p.style("text-anchor","start"),p.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");let a=h.split(T.lineBreakRegex),d=1.25*t().state.noteMargin;for(let m of a){let x=m.trim();if(x.length>0){let c=p.append("tspan");if(c.text(x),d===0){let o=c.node().getBBox();d+=o.height}n+=d,c.attr("x",i+t().state.noteMargin),c.attr("y",s+n+1.25*t().state.noteMargin)}}return{textWidth:p.node().getBBox().width,textHeight:n}},"_drawLongText"),V=u((e,i)=>{i.attr("class","state-note");let s=i.append("rect").attr("x",0).attr("y",t().state.padding),g=i.append("g"),{textWidth:n,textHeight:p}=Q(e,0,0,g);return s.attr("height",p+2*t().state.noteMargin),s.attr("width",n+t().state.noteMargin*2),s},"drawNote"),J=u(function(e,i){let s=i.id,g={id:s,label:i.id,width:0,height:0},n=e.append("g").attr("id",s).attr("class","stateGroup");i.type==="start"&&Y(n),i.type==="end"&&j(n),(i.type==="fork"||i.type==="join")&&K(n,i),i.type==="note"&&V(i.note.text,n),i.type==="divider"&&I(n),i.type==="default"&&i.descriptions.length===0&&$(n,i),i.type==="default"&&i.descriptions.length>0&&q(n,i);let p=n.node().getBBox();return g.width=p.width+2*t().state.padding,g.height=p.height+2*t().state.padding,g},"drawState"),X=0,tt=u(function(e,i,s){let g=u(function(d){switch(d){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(d=>!Number.isNaN(d.y));let n=i.points,p=W().x(function(d){return d.x}).y(function(d){return d.y}).curve(P),h=e.append("path").attr("d",p(n)).attr("id","edge"+X).attr("class","transition"),a="";if(t().state.arrowMarkerAbsolute&&(a=G(!0)),h.attr("marker-end","url("+a+"#"+g(N.relationType.DEPENDENCY)+"End)"),s.title!==void 0){let d=e.append("g").attr("class","stateLabel"),{x:m,y:x}=C.calcLabelPosition(i.points),c=T.getRows(s.title),o=0,w=[],y=0,S=0;for(let r=0;r<=c.length;r++){let f=d.append("text").attr("text-anchor","middle").text(c[r]).attr("x",m).attr("y",x+o),l=f.node().getBBox();y=Math.max(y,l.width),S=Math.min(S,l.x),v.info(l.x,m,x+o),o===0&&(o=f.node().getBBox().height,v.info("Title height",o,x)),w.push(f)}let k=o*c.length;if(c.length>1){let r=(c.length-1)*o*.5;w.forEach((f,l)=>f.attr("y",x+l*o-r)),k=o*c.length}let M=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),v.info(M)}X++},"drawEdge"),b,L={},et=u(function(){},"setConf"),at=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),it=u(function(e,i,s,g){b=t().state;let n=t().securityLevel,p;n==="sandbox"&&(p=z("#i"+i));let h=n==="sandbox"?z(p.nodes()[0].contentDocument.body):z("body"),a=n==="sandbox"?p.nodes()[0].contentDocument:document;v.debug("Rendering diagram "+e);let d=h.select(`[id='${i}']`);at(d);let m=g.db.getRootDoc(),x=d.append("g").attr("id",i+"-root");D(m,x,void 0,!1,h,a,g);let c=b.padding,o=d.node().getBBox(),w=o.width+c*2,y=o.height+c*2,S=w*1.75;R(d,y,S,b.useMaxWidth),d.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+w+" "+y)},"draw"),rt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),D=u((e,i,s,g,n,p,h)=>{let a=new U({compound:!0,multigraph:!0}),d,m=!0;for(d=0;d<e.length;d++)if(e[d].stmt==="relation"){m=!1;break}s?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});let x=h.db.getStates(),c=h.db.getRelations(),o=Object.keys(x),w=!0;for(let r of o){let f=x[r];s&&(f.parentId=s);let l;if(f.doc){let B=i.append("g").attr("id",f.id).attr("class","stateGroup");if(l=D(f.doc,B,f.id,!g,n,p,h),w){B=Z(B,f,g);let E=B.node().getBBox();l.width=E.width,l.height=E.height+b.padding/2,L[f.id]={y:b.compositTitleSize}}else{let E=B.node().getBBox();l.width=E.width,l.height=E.height}}else l=J(i,f,a);if(f.note){let B={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},E=J(i,B,a);f.note.position==="left of"?(a.setNode(l.id+"-note",E),a.setNode(l.id,l)):(a.setNode(l.id,l),a.setNode(l.id+"-note",E)),a.setParent(l.id,l.id+"-group"),a.setParent(l.id+"-note",l.id+"-group")}else a.setNode(l.id,l)}v.debug("Count=",a.nodeCount(),a);let y=0;c.forEach(function(r){y++,v.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:rt(r.title),height:b.labelHeight*T.getRows(r.title).length,labelpos:"c"},"id"+y)}),_(a),v.debug("Graph after layout",a.nodes());let S=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(v.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+S.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(L[r]?L[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+S.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),p.querySelectorAll("#"+S.id+" #"+r+" .divider").forEach(l=>{let B=l.parentElement,E=0,H=0;B&&(B.parentElement&&(E=B.parentElement.getBBox().width),H=parseInt(B.getAttribute("data-x-shift"),10),Number.isNaN(H)&&(H=0)),l.setAttribute("x1",0-H+8),l.setAttribute("x2",E-H-8)})):v.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=S.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(v.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),tt(i,a.edge(r),a.edge(r).relation))}),k=S.getBBox();let M={id:s||"root",label:s||"root",width:0,height:0};return M.width=k.width+2*b.padding,M.height=k.height+2*b.padding,v.debug("Doc rendered",M,a),M},"renderDoc"),nt={setConf:et,draw:it},Mt={parser:F,get db(){return new N(1)},renderer:nt,styles:O,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{Mt as diagram};
|
|
2
|
-
//# sourceMappingURL=stateDiagram-D77RDMKH-
|
|
1
|
+
import{a as F,c as N,d as O}from"./chunk-XO4SHRSO.js";import{a as _}from"./chunk-CKJRXIX7.js";import{C as U}from"./chunk-I6RMTJPN.js";import"./chunk-NLHJT4GD.js";import"./chunk-GEV6X2TZ.js";import"./chunk-IKC3ZQV7.js";import"./chunk-ZXMMITLE.js";import"./chunk-3EZ2OKHV.js";import"./chunk-XOZZFIHV.js";import"./chunk-RINQGKTH.js";import"./chunk-NOVL2262.js";import"./chunk-USZ3ZJYA.js";import"./chunk-J6N7AUC2.js";import"./chunk-NQ2XP5EN.js";import"./chunk-GPW7TXQS.js";import{p as C}from"./chunk-CFMSYLIK.js";import"./chunk-UU7BHEBD.js";import{I as G,N as T,O as R,_ as t}from"./chunk-SGL7WI35.js";import{H as W,L as P,b as v,h as z}from"./chunk-CXXG5KL5.js";import{a as u}from"./chunk-ITN3D7RJ.js";import{d as A}from"./chunk-SOAWGUAD.js";A();var Y=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),I=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),$=u((e,i)=>{let s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),g=s.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g.width+2*t().state.padding).attr("height",g.height+2*t().state.padding).attr("rx",t().state.radius),s},"drawSimpleState"),q=u((e,i)=>{let s=u(function(o,w,y){let S=o.append("tspan").attr("x",2*t().state.padding).text(w);y||S.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),p=n.height,h=e.append("text").attr("x",t().state.padding).attr("y",p+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),a=!0,d=!0;i.descriptions.forEach(function(o){a||(s(h,o,d),d=!1),a=!1});let m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+p+t().state.dividerMargin/2).attr("y2",t().state.padding+p+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),c=Math.max(x.width,n.width);return m.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+p+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Z=u((e,i,s)=>{let g=t().state.padding,n=2*t().state.padding,p=e.node().getBBox(),h=p.width,a=p.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=d.node().getBBox().width+n,c=Math.max(x,h);c===h&&(c=c+n);let o,w=e.node().getBBox();i.doc,o=a-g,x>h&&(o=(h-c)/2+g),Math.abs(a-w.x)<g&&x>h&&(o=a-(x-h)/2);let y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",s?"alt-composit":"composit").attr("width",c).attr("height",w.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",o+g),x<=h&&d.attr("x",a+(c-n)/2-x/2+g),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",w.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),j=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),K=u((e,i)=>{let s=t().state.forkWidth,g=t().state.forkHeight;if(i.parentId){let n=s;s=g,g=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",s).attr("height",g).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Q=u((e,i,s,g)=>{let n=0,p=g.append("text");p.style("text-anchor","start"),p.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");let a=h.split(T.lineBreakRegex),d=1.25*t().state.noteMargin;for(let m of a){let x=m.trim();if(x.length>0){let c=p.append("tspan");if(c.text(x),d===0){let o=c.node().getBBox();d+=o.height}n+=d,c.attr("x",i+t().state.noteMargin),c.attr("y",s+n+1.25*t().state.noteMargin)}}return{textWidth:p.node().getBBox().width,textHeight:n}},"_drawLongText"),V=u((e,i)=>{i.attr("class","state-note");let s=i.append("rect").attr("x",0).attr("y",t().state.padding),g=i.append("g"),{textWidth:n,textHeight:p}=Q(e,0,0,g);return s.attr("height",p+2*t().state.noteMargin),s.attr("width",n+t().state.noteMargin*2),s},"drawNote"),J=u(function(e,i){let s=i.id,g={id:s,label:i.id,width:0,height:0},n=e.append("g").attr("id",s).attr("class","stateGroup");i.type==="start"&&Y(n),i.type==="end"&&j(n),(i.type==="fork"||i.type==="join")&&K(n,i),i.type==="note"&&V(i.note.text,n),i.type==="divider"&&I(n),i.type==="default"&&i.descriptions.length===0&&$(n,i),i.type==="default"&&i.descriptions.length>0&&q(n,i);let p=n.node().getBBox();return g.width=p.width+2*t().state.padding,g.height=p.height+2*t().state.padding,g},"drawState"),X=0,tt=u(function(e,i,s){let g=u(function(d){switch(d){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(d=>!Number.isNaN(d.y));let n=i.points,p=W().x(function(d){return d.x}).y(function(d){return d.y}).curve(P),h=e.append("path").attr("d",p(n)).attr("id","edge"+X).attr("class","transition"),a="";if(t().state.arrowMarkerAbsolute&&(a=G(!0)),h.attr("marker-end","url("+a+"#"+g(N.relationType.DEPENDENCY)+"End)"),s.title!==void 0){let d=e.append("g").attr("class","stateLabel"),{x:m,y:x}=C.calcLabelPosition(i.points),c=T.getRows(s.title),o=0,w=[],y=0,S=0;for(let r=0;r<=c.length;r++){let f=d.append("text").attr("text-anchor","middle").text(c[r]).attr("x",m).attr("y",x+o),l=f.node().getBBox();y=Math.max(y,l.width),S=Math.min(S,l.x),v.info(l.x,m,x+o),o===0&&(o=f.node().getBBox().height,v.info("Title height",o,x)),w.push(f)}let k=o*c.length;if(c.length>1){let r=(c.length-1)*o*.5;w.forEach((f,l)=>f.attr("y",x+l*o-r)),k=o*c.length}let M=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),v.info(M)}X++},"drawEdge"),b,L={},et=u(function(){},"setConf"),at=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),it=u(function(e,i,s,g){b=t().state;let n=t().securityLevel,p;n==="sandbox"&&(p=z("#i"+i));let h=n==="sandbox"?z(p.nodes()[0].contentDocument.body):z("body"),a=n==="sandbox"?p.nodes()[0].contentDocument:document;v.debug("Rendering diagram "+e);let d=h.select(`[id='${i}']`);at(d);let m=g.db.getRootDoc(),x=d.append("g").attr("id",i+"-root");D(m,x,void 0,!1,h,a,g);let c=b.padding,o=d.node().getBBox(),w=o.width+c*2,y=o.height+c*2,S=w*1.75;R(d,y,S,b.useMaxWidth),d.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+w+" "+y)},"draw"),rt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),D=u((e,i,s,g,n,p,h)=>{let a=new U({compound:!0,multigraph:!0}),d,m=!0;for(d=0;d<e.length;d++)if(e[d].stmt==="relation"){m=!1;break}s?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});let x=h.db.getStates(),c=h.db.getRelations(),o=Object.keys(x),w=!0;for(let r of o){let f=x[r];s&&(f.parentId=s);let l;if(f.doc){let B=i.append("g").attr("id",f.id).attr("class","stateGroup");if(l=D(f.doc,B,f.id,!g,n,p,h),w){B=Z(B,f,g);let E=B.node().getBBox();l.width=E.width,l.height=E.height+b.padding/2,L[f.id]={y:b.compositTitleSize}}else{let E=B.node().getBBox();l.width=E.width,l.height=E.height}}else l=J(i,f,a);if(f.note){let B={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},E=J(i,B,a);f.note.position==="left of"?(a.setNode(l.id+"-note",E),a.setNode(l.id,l)):(a.setNode(l.id,l),a.setNode(l.id+"-note",E)),a.setParent(l.id,l.id+"-group"),a.setParent(l.id+"-note",l.id+"-group")}else a.setNode(l.id,l)}v.debug("Count=",a.nodeCount(),a);let y=0;c.forEach(function(r){y++,v.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:rt(r.title),height:b.labelHeight*T.getRows(r.title).length,labelpos:"c"},"id"+y)}),_(a),v.debug("Graph after layout",a.nodes());let S=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(v.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+S.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(L[r]?L[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+S.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),p.querySelectorAll("#"+S.id+" #"+r+" .divider").forEach(l=>{let B=l.parentElement,E=0,H=0;B&&(B.parentElement&&(E=B.parentElement.getBBox().width),H=parseInt(B.getAttribute("data-x-shift"),10),Number.isNaN(H)&&(H=0)),l.setAttribute("x1",0-H+8),l.setAttribute("x2",E-H-8)})):v.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=S.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(v.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),tt(i,a.edge(r),a.edge(r).relation))}),k=S.getBBox();let M={id:s||"root",label:s||"root",width:0,height:0};return M.width=k.width+2*b.padding,M.height=k.height+2*b.padding,v.debug("Doc rendered",M,a),M},"renderDoc"),nt={setConf:et,draw:it},Mt={parser:F,get db(){return new N(1)},renderer:nt,styles:O,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{Mt as diagram};
|
|
2
|
+
//# sourceMappingURL=stateDiagram-D77RDMKH-7PRO4WYR.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i,b as o,c as m,d as a}from"./chunk-XO4SHRSO.js";import"./chunk-NLHJT4GD.js";import"./chunk-GEV6X2TZ.js";import"./chunk-IKC3ZQV7.js";import"./chunk-ZXMMITLE.js";import"./chunk-3EZ2OKHV.js";import"./chunk-XOZZFIHV.js";import"./chunk-RINQGKTH.js";import"./chunk-NOVL2262.js";import"./chunk-USZ3ZJYA.js";import"./chunk-J6N7AUC2.js";import"./chunk-NQ2XP5EN.js";import"./chunk-GPW7TXQS.js";import"./chunk-CFMSYLIK.js";import"./chunk-UU7BHEBD.js";import"./chunk-SGL7WI35.js";import"./chunk-CXXG5KL5.js";import{a as e}from"./chunk-ITN3D7RJ.js";import{d as r}from"./chunk-SOAWGUAD.js";r();var x={parser:i,get db(){return new m(2)},renderer:o,styles:a,init:e(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{x as diagram};
|
|
2
|
+
//# sourceMappingURL=stateDiagram-v2-MP3YSRHH-2Y6SWEJW.js.map
|