@leanspec/ui 0.2.19-dev.21387450109 → 0.2.19-dev.21389425071
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/bin/leanspec-ui.js +75 -28
- package/dist/assets/{_baseUniq-CQeRAT5P.js → _baseUniq-BsoaREqH.js} +1 -1
- package/dist/assets/{_baseUniq-KSDS6tgF-7Gn6uSY9.js → _baseUniq-KSDS6tgF-C-4qFebV.js} +1 -1
- package/dist/assets/{arc-BBkub4A_.js → arc-6n79Tfx2.js} +1 -1
- package/dist/assets/{arc-C-X5Xt_b-DQOUiVdN.js → arc-C-X5Xt_b-B3TYbMcz.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-Bal8NTn4-DPLxYusq.js → architectureDiagram-VXUJARFQ-Bal8NTn4-BCL87o4h.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-Dlz8s2-e.js → architectureDiagram-VXUJARFQ-P8sPUFFv.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-B2gTo5wW-pBkiv_6N.js → blockDiagram-VD42YOAC-B2gTo5wW-rdjZT-6Z.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-DroSDnTC.js → blockDiagram-VD42YOAC-B_LH4ciH.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-NL1vRdEm.js → c4Diagram-YG6GDRKO-BbCoaLWc.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-dIf_vNCY-CyL_m9R9.js → c4Diagram-YG6GDRKO-dIf_vNCY-DL4DABj7.js} +1 -1
- package/dist/assets/channel-Cg88UM7_.js +1 -0
- package/dist/assets/channel-klR7o7JB-BA92hgvh.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-BQgzc1Sm-Dy4agrCz.js → chunk-4BX2VUAB-BQgzc1Sm-o9UeA92o.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-TC8G6isw.js → chunk-4BX2VUAB-BnM4Ey-A.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-eYzOc9WS.js → chunk-55IACEB6-DRuDSE6v.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-Dd3NjClm-BV9EM6sG.js → chunk-55IACEB6-Dd3NjClm-2avamB6R.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-DnVUp7_8.js → chunk-B4BG7PRW-BRJeNZka.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-DLUrgkJI-DogWRiCT.js → chunk-B4BG7PRW-DLUrgkJI-BIz-U-if.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-BwHLqSW9-VH9rU0-X.js → chunk-DI55MBZ5-BwHLqSW9-fLBLXYqu.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-D4nUIgvc.js → chunk-DI55MBZ5-Deatey85.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-6dsbMKM7-DfNDKCPd.js → chunk-FMBD7UC4-6dsbMKM7-4LY1fre4.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-ByWHQjVA.js → chunk-FMBD7UC4-BRigiN-C.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-C4U1MnPp.js → chunk-QN33PNHL-C5mhxjvn.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-DHNejhbC-Dob37sHv.js → chunk-QN33PNHL-DHNejhbC-Dzf1H1zL.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-CVAEdzef-8qYLwFhJ.js → chunk-QZHKN3VN-CVAEdzef-BFS0CidB.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-B3Rt2Why.js → chunk-QZHKN3VN-DxEo2WQL.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-Cc8_PJIq-CL4KZf-k.js → chunk-TZMSLE5B-Cc8_PJIq-BToSsQub.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-rCMdtJet.js → chunk-TZMSLE5B-o_smO1ge.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-Coznyg-a.js +1 -0
- package/dist/assets/{classDiagram-2ON5EDUG-D7bjndmT-Cvh_uWnL.js → classDiagram-2ON5EDUG-D7bjndmT-Bp9Exnnr.js} +1 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-Coznyg-a.js +1 -0
- package/dist/assets/{classDiagram-v2-WZHVMYZB-D7bjndmT-Cvh_uWnL.js → classDiagram-v2-WZHVMYZB-D7bjndmT-Bp9Exnnr.js} +1 -1
- package/dist/assets/clone-7srXemyd-ddPD0sbr.js +1 -0
- package/dist/assets/clone-BBL425Up.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-MRm4xHKr-DscZFV8r.js → code-block-37QAKDTI-MRm4xHKr-DA5ypbc9.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-0O3dLIoy-C9Z3z4NS.js → cose-bilkent-S5V4N54A-0O3dLIoy-D4Dh8XlP.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-CazrSXiw.js → cose-bilkent-S5V4N54A-D8QB8iVT.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-D6WrdXUK.js → dagre-6UL2VRFP-6Skhzr8u.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-BqaZre9N-CZsf1nTB.js → dagre-6UL2VRFP-BqaZre9N-CNJK18dO.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-qlmDvAhw.js → diagram-PSM6KHXK-OhkCexcT.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-s2xYLlND-bNUMqgJA.js → diagram-PSM6KHXK-s2xYLlND-2NBcIWYg.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-D700jvoY-Cs4n2Em7.js → diagram-QEK2KX5R-D700jvoY-CjoH4Z70.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-BU41q0MW.js → diagram-QEK2KX5R-J9zMFFhj.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-BkgBSa1Q-uyGoPqna.js → diagram-S2PKOQOG-BkgBSa1Q-BPjtcOco.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-BwbkdiiD.js → diagram-S2PKOQOG-DBfX1nG_.js} +1 -1
- package/dist/assets/{erDiagram-Q2GNP2WA-DfJigK4u.js → erDiagram-Q2GNP2WA-C4xTfx7N.js} +1 -1
- package/dist/assets/{erDiagram-Q2GNP2WA-CXv6THpi-CQLsWNcN.js → erDiagram-Q2GNP2WA-CXv6THpi-jBM9oCgW.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-Dsrv00Gy-HprBm9Pz.js → flowDiagram-NV44I4VS-Dsrv00Gy-CDSCzPdF.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-B4mMI2O1.js → flowDiagram-NV44I4VS-IQdR5afF.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-CqVYbgbk-BwIqfaMz.js → ganttDiagram-JELNMOA3-CqVYbgbk-CXxMuoGT.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-BgQobHgm.js → ganttDiagram-JELNMOA3-D2MQHjD7.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-DOanbk62-CyjpirVC.js → gitGraphDiagram-NY62KEGX-DOanbk62-DfLJu9ZY.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-D967N906.js → gitGraphDiagram-NY62KEGX-DT_U3GkJ.js} +1 -1
- package/dist/assets/{graph-D-sZezjj.js → graph-BP-Jibpj.js} +1 -1
- package/dist/assets/{graph-rt_wscbL-BkzytxfK.js → graph-rt_wscbL-BNjHDk3A.js} +1 -1
- package/dist/assets/{index-CljDzOsD.js → index-BffUh93D.js} +349 -349
- package/dist/assets/index-BmRah08N.css +1 -0
- package/dist/assets/{infoDiagram-WHAUD3N6-BIfvGm_8.js → infoDiagram-WHAUD3N6-CibSXYXU.js} +1 -1
- package/dist/assets/{infoDiagram-WHAUD3N6-Fq8ToFQ6-pcE4VjUT.js → infoDiagram-WHAUD3N6-Fq8ToFQ6-eXf-0eda.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-BzZgPZwu-BRG80znu.js → journeyDiagram-XKPGCS4Q-BzZgPZwu-Dq8-0uHr.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-DcmWYlnJ.js → journeyDiagram-XKPGCS4Q-D355rgh1.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-CrmrjRAg-BPpEG97e.js → kanban-definition-3W4ZIXB7-CrmrjRAg-CQFMGdC-.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-BLFwtVzX.js → kanban-definition-3W4ZIXB7-WFOS2NhM.js} +1 -1
- package/dist/assets/{layout-CX9neEHw-CGq1_lWY.js → layout-CX9neEHw-BeASe-L2.js} +1 -1
- package/dist/assets/{layout-COUFj5l3.js → layout-Dz4cXAJl.js} +1 -1
- package/dist/assets/{linear-CkUVga7d-C602fyvr.js → linear-CkUVga7d-JN8zRlYV.js} +1 -1
- package/dist/assets/{min-Ar5ebLd--fvPd2L0o.js → min-Ar5ebLd--DAFAc3TM.js} +1 -1
- package/dist/assets/{min-Dfr6rWx0.js → min-pYcMk-7s.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-CH6N7AJ9.js → mindmap-definition-VGOIOE7T-5TYHgroK.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-DeGZNL21-cXloXg94.js → mindmap-definition-VGOIOE7T-DeGZNL21-B7i2X052.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-C_V2NX6O-B5hplWZm.js → pieDiagram-ADFJNKIX-C_V2NX6O-BCtYOnVn.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-IvMHARhR.js → pieDiagram-ADFJNKIX-Cl9FemBR.js} +1 -1
- package/dist/assets/{quadrantDiagram-AYHSOK5B-B8fSnYQi-DB-sEXVp.js → quadrantDiagram-AYHSOK5B-B8fSnYQi-CsEq7CVM.js} +1 -1
- package/dist/assets/{quadrantDiagram-AYHSOK5B-D_qA6rYE.js → quadrantDiagram-AYHSOK5B-BaMEGEnc.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-CFcr8CJS.js → requirementDiagram-UZGBJVZJ-Cegg7hVN.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-MnXD59Yw-BXKcW0kz.js → requirementDiagram-UZGBJVZJ-MnXD59Yw-Dm-bbX5b.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6-BxREyAGc.js → sankeyDiagram-TZEHDZUN-Dfyu7oJ6-Brsza4C4.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-2StPUADQ.js → sankeyDiagram-TZEHDZUN-DymCbMLh.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-C2DkMi33.js → sequenceDiagram-WL72ISMW-B44Q2U-R.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-D2pgAoWi-BarAOUol.js → sequenceDiagram-WL72ISMW-D2pgAoWi-B9cKeqh_.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-B5OPvJdc.js → stateDiagram-FKZM4ZOC-BjCASZKu.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-DYV-na53-BaKFCeg1.js → stateDiagram-FKZM4ZOC-DYV-na53-BvsNCcKw.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-DKcialcH.js +1 -0
- package/dist/assets/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o-3IJ8Re4S.js → stateDiagram-v2-4FDKWEC3-Kp4sxr9o-Dn2HGh3T.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-621ePKJ0-DsQtYAqE.js → timeline-definition-IT6M3QCI-621ePKJ0-ZE60CCox.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-BXBySuQm.js → timeline-definition-IT6M3QCI-Dike3xBH.js} +1 -1
- package/dist/assets/{treemap-KMMF4GRG-8U2mCMWj.js → treemap-KMMF4GRG-B6R0VeLI.js} +1 -1
- package/dist/assets/{treemap-KMMF4GRG-l6HrdCLC-n20-B8xK.js → treemap-KMMF4GRG-l6HrdCLC-BT57UjJR.js} +1 -1
- package/dist/assets/{xychartDiagram-PRI3JC2R-toptJ0Dc.js → xychartDiagram-PRI3JC2R-B2JxDynv.js} +1 -1
- package/dist/assets/{xychartDiagram-PRI3JC2R-CkfCv2o_-C5wA4cae.js → xychartDiagram-PRI3JC2R-CkfCv2o_-2IOFmXBp.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +5 -5
- package/dist/assets/channel-PRsvO4F7.js +0 -1
- package/dist/assets/channel-klR7o7JB--GRrxarI.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-CDSAP1yv.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-CDSAP1yv.js +0 -1
- package/dist/assets/clone-7srXemyd-Yb5aUWsI.js +0 -1
- package/dist/assets/clone-CWfNUcRF.js +0 -1
- package/dist/assets/index-BP8udSlN.css +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CiEGx6aZ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as We}from"./chunk-55IACEB6-Dd3NjClm-BV9EM6sG.js";import{d as ze}from"./chunk-QN33PNHL-DHNejhbC-Dob37sHv.js";import{H as o,aa as Xe,a9 as Ge,a7 as Ze,a8 as Je,ao as et,ap as tt,z as ke,a as Ne,au as st,az as it,al as rt,am as nt,an as at}from"./index-CljDzOsD.js";var Ce=(function(){var e=o(function(F,i,r,s){for(r=r||{},s=F.length;s--;r[F[s]]=i);return r},"o"),p=[1,3],h=[1,4],c=[1,5],a=[1,6],m=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],l=[2,7],u=[1,26],S=[1,27],b=[1,28],C=[1,29],A=[1,33],q=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],d=[1,39],R=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],G=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],me=[27,29],qe=[1,70],ve=[1,71],Le=[1,72],Oe=[1,73],xe=[1,74],we=[1,75],De=[1,76],J=[1,83],V=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],j=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(F,i,r,s,y,t,g){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:p,9:h,11:c,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:p,9:h,11:c,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(m,[2,6]),{3:12,4:2,6:p,9:h,11:c,13:a},{1:[2,2]},{4:17,5:f,7:13,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},e(m,[2,4]),e(m,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:43,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:44,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:45,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:46,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:47,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:48,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:49,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:50,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:U,89:d,90:R},{30:63,33:62,75:U,89:d,90:R},{30:64,33:62,75:U,89:d,90:R},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(me,[2,79]),e(me,[2,80]),{27:[1,67],29:[1,68]},e(me,[2,85]),e(me,[2,86]),{62:69,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{62:77,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{30:78,33:62,75:U,89:d,90:R},{73:79,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:U,76:V,89:d,90:R},{5:[1,95]},{30:96,33:62,75:U,89:d,90:R},{5:[1,97]},{30:98,33:62,75:U,89:d,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:V}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:d,90:R},e($e,[2,65],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:V}),{5:B,28:105,31:Q,34:H,36:K,38:j,40:W},{27:[1,112],76:V},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:V},{33:119,89:d,90:R},{33:120,89:d,90:R},{75:J,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(pe,[2,61]),e(pe,[2,63]),e(k,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:j,40:W},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e($e,[2,66],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:d,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:j,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:j,40:W},{5:B,28:160,31:Q,34:H,36:K,38:j,40:W},{5:B,28:161,31:Q,34:H,36:K,38:j,40:W},{5:B,28:162,31:Q,34:H,36:K,38:j,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(F,i){if(i.recoverable)this.trace(F);else{var r=new Error(F);throw r.hash=i,r}},"parseError"),parse:o(function(F){var i=this,r=[0],s=[],y=[null],t=[],g=this.table,n="",de=0,Fe=0,Qe=2,Pe=1,He=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(z.yy[Se]=this.yy[Se]);_.setInput(F,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ge=_.yylloc;t.push(ge);var Ke=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){r.length=r.length-2*T,y.length=y.length-T,t.length=t.length-T}o(je,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}o(Ue,"lex");for(var I,X,N,Ie,Z={},Re,P,Ve,fe;;){if(X=r[r.length-1],this.defaultActions[X]?N=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Ue()),N=g[X]&&g[X][I]),typeof N>"u"||!N.length||!N[0]){var Te="";fe=[];for(Re in g[X])this.terminals_[Re]&&Re>Qe&&fe.push("'"+this.terminals_[Re]+"'");_.showPosition?Te="Parse error on line "+(de+1)+`:
|
|
1
|
+
import{g as We}from"./chunk-55IACEB6-Dd3NjClm-2avamB6R.js";import{d as ze}from"./chunk-QN33PNHL-DHNejhbC-Dzf1H1zL.js";import{H as o,aa as Xe,a9 as Ge,a7 as Ze,a8 as Je,ao as et,ap as tt,z as ke,a as Ne,au as st,az as it,al as rt,am as nt,an as at}from"./index-BffUh93D.js";var Ce=(function(){var e=o(function(F,i,r,s){for(r=r||{},s=F.length;s--;r[F[s]]=i);return r},"o"),p=[1,3],h=[1,4],c=[1,5],a=[1,6],m=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],l=[2,7],u=[1,26],S=[1,27],b=[1,28],C=[1,29],A=[1,33],q=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],d=[1,39],R=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],G=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],me=[27,29],qe=[1,70],ve=[1,71],Le=[1,72],Oe=[1,73],xe=[1,74],we=[1,75],De=[1,76],J=[1,83],V=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],j=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(F,i,r,s,y,t,g){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:p,9:h,11:c,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:p,9:h,11:c,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(m,[2,6]),{3:12,4:2,6:p,9:h,11:c,13:a},{1:[2,2]},{4:17,5:f,7:13,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},e(m,[2,4]),e(m,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:43,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:44,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:45,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:46,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:47,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:48,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:49,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:50,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:S,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:U,89:d,90:R},{30:63,33:62,75:U,89:d,90:R},{30:64,33:62,75:U,89:d,90:R},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(me,[2,79]),e(me,[2,80]),{27:[1,67],29:[1,68]},e(me,[2,85]),e(me,[2,86]),{62:69,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{62:77,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{30:78,33:62,75:U,89:d,90:R},{73:79,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:U,76:V,89:d,90:R},{5:[1,95]},{30:96,33:62,75:U,89:d,90:R},{5:[1,97]},{30:98,33:62,75:U,89:d,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:V}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:d,90:R},e($e,[2,65],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:V}),{5:B,28:105,31:Q,34:H,36:K,38:j,40:W},{27:[1,112],76:V},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:V},{33:119,89:d,90:R},{33:120,89:d,90:R},{75:J,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(pe,[2,61]),e(pe,[2,63]),e(k,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:j,40:W},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e($e,[2,66],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:d,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:j,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:j,40:W},{5:B,28:160,31:Q,34:H,36:K,38:j,40:W},{5:B,28:161,31:Q,34:H,36:K,38:j,40:W},{5:B,28:162,31:Q,34:H,36:K,38:j,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(F,i){if(i.recoverable)this.trace(F);else{var r=new Error(F);throw r.hash=i,r}},"parseError"),parse:o(function(F){var i=this,r=[0],s=[],y=[null],t=[],g=this.table,n="",de=0,Fe=0,Qe=2,Pe=1,He=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(z.yy[Se]=this.yy[Se]);_.setInput(F,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ge=_.yylloc;t.push(ge);var Ke=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){r.length=r.length-2*T,y.length=y.length-T,t.length=t.length-T}o(je,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}o(Ue,"lex");for(var I,X,N,Ie,Z={},Re,P,Ve,fe;;){if(X=r[r.length-1],this.defaultActions[X]?N=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Ue()),N=g[X]&&g[X][I]),typeof N>"u"||!N.length||!N[0]){var Te="";fe=[];for(Re in g[X])this.terminals_[Re]&&Re>Qe&&fe.push("'"+this.terminals_[Re]+"'");_.showPosition?Te="Parse error on line "+(de+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+fe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(de+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[I]||I,line:_.yylineno,loc:ge,expected:fe})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+I);switch(N[0]){case 1:r.push(I),y.push(_.yytext),t.push(_.yylloc),r.push(N[1]),I=null,Fe=_.yyleng,n=_.yytext,de=_.yylineno,ge=_.yylloc;break;case 2:if(P=this.productions_[N[1]][1],Z.$=y[y.length-P],Z._$={first_line:t[t.length-(P||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(P||1)].first_column,last_column:t[t.length-1].last_column},Ke&&(Z._$.range=[t[t.length-(P||1)].range[0],t[t.length-1].range[1]]),Ie=this.performAction.apply(Z,[n,Fe,de,z.yy,N[1],y,t].concat(He)),typeof Ie<"u")return Ie;P&&(r=r.slice(0,-1*P*2),y=y.slice(0,-1*P),t=t.slice(0,-1*P)),r.push(this.productions_[N[1]][0]),y.push(Z.$),t.push(Z._$),Ve=g[r[r.length-2]][r[r.length-1]],r.push(Ve);break;case 3:return!0}}return!0},"parse")},Be=(function(){var F={EOF:1,parseError:o(function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},"parseError"),setInput:o(function(i,r){return this.yy=r||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var r=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var y=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),s.length-1&&(this.yylineno-=s.length-1);var t=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:s?(s.length===y.length?this.yylloc.first_column:0)+y[y.length-s.length].length-s[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{H as p,ao as xt,ap as kt,a7 as vt,a8 as bt,aa as wt,a9 as St,z as lt,av as Et,a5 as X,bh as Lt,au as Mt,ah as At}from"./index-CljDzOsD.js";import{h as Tt}from"./ordinal-DfAQgscy-Pc8f3NoK.js";import"./init-DjUOC4st-DHuO7-vr.js";function Pt(t){for(var n=t.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+t.slice(a*6,++a*6);return r}const Nt=Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function pt(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function tt(t,n){let r=0;if(n===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let c of t)(c=+n(c,++a,t))&&(r+=c)}return r}function Ot(t){return t.target.depth}function Ct(t){return t.depth}function Dt(t,n){return n-1-t.height}function _t(t,n){return t.sourceLinks.length?t.depth:n-1}function It(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ot)-1:0}function Z(t){return function(){return t}}function ht(t,n){return q(t.source,n.source)||t.index-n.index}function ut(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function et(t){return t.value}function $t(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function yt({nodes:t}){for(const n of t){let r=n.y0,a=r;for(const c of n.sourceLinks)c.y0=r+c.width/2,r+=c.width;for(const c of n.targetLinks)c.y1=a+c.width/2,a+=c.width}}function Ft(){let t=0,n=0,r=1,a=1,c=24,k=8,_,m=$t,i=_t,o,f,d=jt,y=zt,w=6;function v(){const e={nodes:d.apply(null,arguments),links:y.apply(null,arguments)};return N(e),A(e),T(e),D(e),O(e),yt(e),e}v.update=function(e){return yt(e),e},v.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:Z(e),v):m},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Z(e),v):i},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(c=+e,v):c},v.nodePadding=function(e){return arguments.length?(k=_=+e,v):k},v.nodes=function(e){return arguments.length?(d=typeof e=="function"?e:Z(e),v):d},v.links=function(e){return arguments.length?(y=typeof e=="function"?e:Z(e),v):y},v.linkSort=function(e){return arguments.length?(f=e,v):f},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],a=+e[1],v):[r-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[r,a]]},v.iterations=function(e){return arguments.length?(w=+e,v):w};function N({nodes:e,links:u}){for(const[h,s]of e.entries())s.index=h,s.sourceLinks=[],s.targetLinks=[];const l=new Map(e.map((h,s)=>[m(h,s,e),h]));for(const[h,s]of u.entries()){s.index=h;let{source:x,target:b}=s;typeof x!="object"&&(x=s.source=ft(l,x)),typeof b!="object"&&(b=s.target=ft(l,b)),x.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(const{sourceLinks:h,targetLinks:s}of e)h.sort(f),s.sort(f)}function A({nodes:e}){for(const u of e)u.value=u.fixedValue===void 0?Math.max(tt(u.sourceLinks,et),tt(u.targetLinks,et)):u.fixedValue}function T({nodes:e}){const u=e.length;let l=new Set(e),h=new Set,s=0;for(;l.size;){for(const x of l){x.depth=s;for(const{target:b}of x.sourceLinks)h.add(b)}if(++s>u)throw new Error("circular link");l=h,h=new Set}}function D({nodes:e}){const u=e.length;let l=new Set(e),h=new Set,s=0;for(;l.size;){for(const x of l){x.height=s;for(const{source:b}of x.targetLinks)h.add(b)}if(++s>u)throw new Error("circular link");l=h,h=new Set}}function P({nodes:e}){const u=ct(e,s=>s.depth)+1,l=(r-t-c)/(u-1),h=new Array(u);for(const s of e){const x=Math.max(0,Math.min(u-1,Math.floor(i.call(null,s,u))));s.layer=x,s.x0=t+x*l,s.x1=s.x0+c,h[x]?h[x].push(s):h[x]=[s]}if(o)for(const s of h)s.sort(o);return h}function S(e){const u=pt(e,l=>(a-n-(l.length-1)*_)/tt(l,et));for(const l of e){let h=n;for(const s of l){s.y0=h,s.y1=h+s.value*u,h=s.y1+_;for(const x of s.sourceLinks)x.width=x.value*u}h=(a-h+_)/(l.length+1);for(let s=0;s<l.length;++s){const x=l[s];x.y0+=h*(s+1),x.y1+=h*(s+1)}$(l)}}function O(e){const u=P(e);_=Math.min(k,(a-n)/(ct(u,l=>l.length)-1)),S(u);for(let l=0;l<w;++l){const h=Math.pow(.99,l),s=Math.max(1-h,(l+1)/w);C(u,h,s),I(u,h,s)}}function I(e,u,l){for(let h=1,s=e.length;h<s;++h){const x=e[h];for(const b of x){let W=0,j=0;for(const{source:Y,value:J}of b.targetLinks){let Q=J*(b.layer-Y.layer);W+=M(Y,b)*Q,j+=Q}if(!(j>0))continue;let V=(W/j-b.y0)*u;b.y0+=V,b.y1+=V,E(b)}o===void 0&&x.sort(q),g(x,l)}}function C(e,u,l){for(let h=e.length,s=h-2;s>=0;--s){const x=e[s];for(const b of x){let W=0,j=0;for(const{target:Y,value:J}of b.sourceLinks){let Q=J*(Y.layer-b.layer);W+=G(b,Y)*Q,j+=Q}if(!(j>0))continue;let V=(W/j-b.y0)*u;b.y0+=V,b.y1+=V,E(b)}o===void 0&&x.sort(q),g(x,l)}}function g(e,u){const l=e.length>>1,h=e[l];U(e,h.y0-_,l-1,u),L(e,h.y1+_,l+1,u),U(e,a,e.length-1,u),L(e,n,0,u)}function L(e,u,l,h){for(;l<e.length;++l){const s=e[l],x=(u-s.y0)*h;x>1e-6&&(s.y0+=x,s.y1+=x),u=s.y1+_}}function U(e,u,l,h){for(;l>=0;--l){const s=e[l],x=(s.y1-u)*h;x>1e-6&&(s.y0-=x,s.y1-=x),u=s.y0-_}}function E({sourceLinks:e,targetLinks:u}){if(f===void 0){for(const{source:{sourceLinks:l}}of u)l.sort(ut);for(const{target:{targetLinks:l}}of e)l.sort(ht)}}function $(e){if(f===void 0)for(const{sourceLinks:u,targetLinks:l}of e)u.sort(ut),l.sort(ht)}function M(e,u){let l=e.y0-(e.sourceLinks.length-1)*_/2;for(const{target:h,width:s}of e.sourceLinks){if(h===u)break;l+=s+_}for(const{source:h,width:s}of u.targetLinks){if(h===e)break;l-=s}return l}function G(e,u){let l=u.y0-(u.targetLinks.length-1)*_/2;for(const{source:h,width:s}of u.targetLinks){if(h===e)break;l+=s+_}for(const{target:h,width:s}of e.sourceLinks){if(h===u)break;l-=s}return l}return v}var rt=Math.PI,st=2*rt,z=1e-6,Ut=st-z;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,n,r,a,c,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+k)},arcTo:function(t,n,r,a,c){t=+t,n=+n,r=+r,a=+a,c=+c;var k=this._x1,_=this._y1,m=r-t,i=a-n,o=k-t,f=_-n,d=o*o+f*f;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>z)if(!(Math.abs(f*m-i*o)>z)||!c)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var y=r-k,w=a-_,v=m*m+i*i,N=y*y+w*w,A=Math.sqrt(v),T=Math.sqrt(d),D=c*Math.tan((rt-Math.acos((v+d-N)/(2*A*T)))/2),P=D/T,S=D/A;Math.abs(P-1)>z&&(this._+="L"+(t+P*o)+","+(n+P*f)),this._+="A"+c+","+c+",0,0,"+ +(f*y>o*w)+","+(this._x1=t+S*m)+","+(this._y1=n+S*i)}},arc:function(t,n,r,a,c,k){t=+t,n=+n,r=+r,k=!!k;var _=r*Math.cos(a),m=r*Math.sin(a),i=t+_,o=n+m,f=1^k,d=k?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),r&&(d<0&&(d=d%st+st),d>Ut?this._+="A"+r+","+r+",0,1,"+f+","+(t-_)+","+(n-m)+"A"+r+","+r+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):d>z&&(this._+="A"+r+","+r+",0,"+ +(d>=rt)+","+f+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=n+r*Math.sin(c))))},rect:function(t,n,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function gt(t){return function(){return t}}function Gt(t){return t[0]}function Wt(t){return t[1]}var Vt=Array.prototype.slice;function Yt(t){return t.source}function Qt(t){return t.target}function Xt(t){var n=Yt,r=Qt,a=Gt,c=Wt,k=null;function _(){var m,i=Vt.call(arguments),o=n.apply(this,i),f=r.apply(this,i);if(k||(k=m=mt()),t(k,+a.apply(this,(i[0]=o,i)),+c.apply(this,i),+a.apply(this,(i[0]=f,i)),+c.apply(this,i)),m)return k=null,m+""||null}return _.source=function(m){return arguments.length?(n=m,_):n},_.target=function(m){return arguments.length?(r=m,_):r},_.x=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),_):a},_.y=function(m){return arguments.length?(c=typeof m=="function"?m:gt(+m),_):c},_.context=function(m){return arguments.length?(k=m??null,_):k},_}function Zt(t,n,r,a,c){t.moveTo(n,r),t.bezierCurveTo(n=(n+a)/2,r,n,c,a,c)}function qt(){return Xt(Zt)}function Kt(t){return[t.source.x1,t.y0]}function Rt(t){return[t.target.x0,t.y1]}function Ht(){return qt().source(Kt).target(Rt)}var at=(function(){var t=p(function(m,i,o,f){for(o=o||{},f=m.length;f--;o[m[f]]=i);return o},"o"),n=[1,9],r=[1,10],a=[1,5,10,12],c={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(m,i,o,f,d,y,w){var v=y.length-1;switch(d){case 7:const N=f.findOrCreateNode(y[v-4].trim().replaceAll('""','"')),A=f.findOrCreateNode(y[v-2].trim().replaceAll('""','"')),T=parseFloat(y[v].trim());f.addLink(N,A,T);break;case 8:case 9:case 11:this.$=y[v];break;case 10:this.$=y[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},"parseError"),parse:p(function(m){var i=this,o=[0],f=[],d=[null],y=[],w=this.table,v="",N=0,A=0,T=2,D=1,P=y.slice.call(arguments,1),S=Object.create(this.lexer),O={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(O.yy[I]=this.yy[I]);S.setInput(m,O.yy),O.yy.lexer=S,O.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var g=S.options&&S.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(b){o.length=o.length-2*b,d.length=d.length-b,y.length=y.length-b}p(L,"popStack");function U(){var b;return b=f.pop()||S.lex()||D,typeof b!="number"&&(b instanceof Array&&(f=b,b=f.pop()),b=i.symbols_[b]||b),b}p(U,"lex");for(var E,$,M,G,e={},u,l,h,s;;){if($=o[o.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((E===null||typeof E>"u")&&(E=U()),M=w[$]&&w[$][E]),typeof M>"u"||!M.length||!M[0]){var x="";s=[];for(u in w[$])this.terminals_[u]&&u>T&&s.push("'"+this.terminals_[u]+"'");S.showPosition?x="Parse error on line "+(N+1)+`:
|
|
1
|
+
import{H as p,ao as xt,ap as kt,a7 as vt,a8 as bt,aa as wt,a9 as St,z as lt,av as Et,a5 as X,bh as Lt,au as Mt,ah as At}from"./index-BffUh93D.js";import{h as Tt}from"./ordinal-DfAQgscy-Pc8f3NoK.js";import"./init-DjUOC4st-DHuO7-vr.js";function Pt(t){for(var n=t.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+t.slice(a*6,++a*6);return r}const Nt=Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function pt(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function tt(t,n){let r=0;if(n===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let c of t)(c=+n(c,++a,t))&&(r+=c)}return r}function Ot(t){return t.target.depth}function Ct(t){return t.depth}function Dt(t,n){return n-1-t.height}function _t(t,n){return t.sourceLinks.length?t.depth:n-1}function It(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ot)-1:0}function Z(t){return function(){return t}}function ht(t,n){return q(t.source,n.source)||t.index-n.index}function ut(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function et(t){return t.value}function $t(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function yt({nodes:t}){for(const n of t){let r=n.y0,a=r;for(const c of n.sourceLinks)c.y0=r+c.width/2,r+=c.width;for(const c of n.targetLinks)c.y1=a+c.width/2,a+=c.width}}function Ft(){let t=0,n=0,r=1,a=1,c=24,k=8,_,m=$t,i=_t,o,f,d=jt,y=zt,w=6;function v(){const e={nodes:d.apply(null,arguments),links:y.apply(null,arguments)};return N(e),A(e),T(e),D(e),O(e),yt(e),e}v.update=function(e){return yt(e),e},v.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:Z(e),v):m},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Z(e),v):i},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(c=+e,v):c},v.nodePadding=function(e){return arguments.length?(k=_=+e,v):k},v.nodes=function(e){return arguments.length?(d=typeof e=="function"?e:Z(e),v):d},v.links=function(e){return arguments.length?(y=typeof e=="function"?e:Z(e),v):y},v.linkSort=function(e){return arguments.length?(f=e,v):f},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],a=+e[1],v):[r-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[r,a]]},v.iterations=function(e){return arguments.length?(w=+e,v):w};function N({nodes:e,links:u}){for(const[h,s]of e.entries())s.index=h,s.sourceLinks=[],s.targetLinks=[];const l=new Map(e.map((h,s)=>[m(h,s,e),h]));for(const[h,s]of u.entries()){s.index=h;let{source:x,target:b}=s;typeof x!="object"&&(x=s.source=ft(l,x)),typeof b!="object"&&(b=s.target=ft(l,b)),x.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(const{sourceLinks:h,targetLinks:s}of e)h.sort(f),s.sort(f)}function A({nodes:e}){for(const u of e)u.value=u.fixedValue===void 0?Math.max(tt(u.sourceLinks,et),tt(u.targetLinks,et)):u.fixedValue}function T({nodes:e}){const u=e.length;let l=new Set(e),h=new Set,s=0;for(;l.size;){for(const x of l){x.depth=s;for(const{target:b}of x.sourceLinks)h.add(b)}if(++s>u)throw new Error("circular link");l=h,h=new Set}}function D({nodes:e}){const u=e.length;let l=new Set(e),h=new Set,s=0;for(;l.size;){for(const x of l){x.height=s;for(const{source:b}of x.targetLinks)h.add(b)}if(++s>u)throw new Error("circular link");l=h,h=new Set}}function P({nodes:e}){const u=ct(e,s=>s.depth)+1,l=(r-t-c)/(u-1),h=new Array(u);for(const s of e){const x=Math.max(0,Math.min(u-1,Math.floor(i.call(null,s,u))));s.layer=x,s.x0=t+x*l,s.x1=s.x0+c,h[x]?h[x].push(s):h[x]=[s]}if(o)for(const s of h)s.sort(o);return h}function S(e){const u=pt(e,l=>(a-n-(l.length-1)*_)/tt(l,et));for(const l of e){let h=n;for(const s of l){s.y0=h,s.y1=h+s.value*u,h=s.y1+_;for(const x of s.sourceLinks)x.width=x.value*u}h=(a-h+_)/(l.length+1);for(let s=0;s<l.length;++s){const x=l[s];x.y0+=h*(s+1),x.y1+=h*(s+1)}$(l)}}function O(e){const u=P(e);_=Math.min(k,(a-n)/(ct(u,l=>l.length)-1)),S(u);for(let l=0;l<w;++l){const h=Math.pow(.99,l),s=Math.max(1-h,(l+1)/w);C(u,h,s),I(u,h,s)}}function I(e,u,l){for(let h=1,s=e.length;h<s;++h){const x=e[h];for(const b of x){let W=0,j=0;for(const{source:Y,value:J}of b.targetLinks){let Q=J*(b.layer-Y.layer);W+=M(Y,b)*Q,j+=Q}if(!(j>0))continue;let V=(W/j-b.y0)*u;b.y0+=V,b.y1+=V,E(b)}o===void 0&&x.sort(q),g(x,l)}}function C(e,u,l){for(let h=e.length,s=h-2;s>=0;--s){const x=e[s];for(const b of x){let W=0,j=0;for(const{target:Y,value:J}of b.sourceLinks){let Q=J*(Y.layer-b.layer);W+=G(b,Y)*Q,j+=Q}if(!(j>0))continue;let V=(W/j-b.y0)*u;b.y0+=V,b.y1+=V,E(b)}o===void 0&&x.sort(q),g(x,l)}}function g(e,u){const l=e.length>>1,h=e[l];U(e,h.y0-_,l-1,u),L(e,h.y1+_,l+1,u),U(e,a,e.length-1,u),L(e,n,0,u)}function L(e,u,l,h){for(;l<e.length;++l){const s=e[l],x=(u-s.y0)*h;x>1e-6&&(s.y0+=x,s.y1+=x),u=s.y1+_}}function U(e,u,l,h){for(;l>=0;--l){const s=e[l],x=(s.y1-u)*h;x>1e-6&&(s.y0-=x,s.y1-=x),u=s.y0-_}}function E({sourceLinks:e,targetLinks:u}){if(f===void 0){for(const{source:{sourceLinks:l}}of u)l.sort(ut);for(const{target:{targetLinks:l}}of e)l.sort(ht)}}function $(e){if(f===void 0)for(const{sourceLinks:u,targetLinks:l}of e)u.sort(ut),l.sort(ht)}function M(e,u){let l=e.y0-(e.sourceLinks.length-1)*_/2;for(const{target:h,width:s}of e.sourceLinks){if(h===u)break;l+=s+_}for(const{source:h,width:s}of u.targetLinks){if(h===e)break;l-=s}return l}function G(e,u){let l=u.y0-(u.targetLinks.length-1)*_/2;for(const{source:h,width:s}of u.targetLinks){if(h===e)break;l+=s+_}for(const{target:h,width:s}of e.sourceLinks){if(h===u)break;l-=s}return l}return v}var rt=Math.PI,st=2*rt,z=1e-6,Ut=st-z;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,n,r,a,c,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+k)},arcTo:function(t,n,r,a,c){t=+t,n=+n,r=+r,a=+a,c=+c;var k=this._x1,_=this._y1,m=r-t,i=a-n,o=k-t,f=_-n,d=o*o+f*f;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>z)if(!(Math.abs(f*m-i*o)>z)||!c)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var y=r-k,w=a-_,v=m*m+i*i,N=y*y+w*w,A=Math.sqrt(v),T=Math.sqrt(d),D=c*Math.tan((rt-Math.acos((v+d-N)/(2*A*T)))/2),P=D/T,S=D/A;Math.abs(P-1)>z&&(this._+="L"+(t+P*o)+","+(n+P*f)),this._+="A"+c+","+c+",0,0,"+ +(f*y>o*w)+","+(this._x1=t+S*m)+","+(this._y1=n+S*i)}},arc:function(t,n,r,a,c,k){t=+t,n=+n,r=+r,k=!!k;var _=r*Math.cos(a),m=r*Math.sin(a),i=t+_,o=n+m,f=1^k,d=k?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),r&&(d<0&&(d=d%st+st),d>Ut?this._+="A"+r+","+r+",0,1,"+f+","+(t-_)+","+(n-m)+"A"+r+","+r+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):d>z&&(this._+="A"+r+","+r+",0,"+ +(d>=rt)+","+f+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=n+r*Math.sin(c))))},rect:function(t,n,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function gt(t){return function(){return t}}function Gt(t){return t[0]}function Wt(t){return t[1]}var Vt=Array.prototype.slice;function Yt(t){return t.source}function Qt(t){return t.target}function Xt(t){var n=Yt,r=Qt,a=Gt,c=Wt,k=null;function _(){var m,i=Vt.call(arguments),o=n.apply(this,i),f=r.apply(this,i);if(k||(k=m=mt()),t(k,+a.apply(this,(i[0]=o,i)),+c.apply(this,i),+a.apply(this,(i[0]=f,i)),+c.apply(this,i)),m)return k=null,m+""||null}return _.source=function(m){return arguments.length?(n=m,_):n},_.target=function(m){return arguments.length?(r=m,_):r},_.x=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),_):a},_.y=function(m){return arguments.length?(c=typeof m=="function"?m:gt(+m),_):c},_.context=function(m){return arguments.length?(k=m??null,_):k},_}function Zt(t,n,r,a,c){t.moveTo(n,r),t.bezierCurveTo(n=(n+a)/2,r,n,c,a,c)}function qt(){return Xt(Zt)}function Kt(t){return[t.source.x1,t.y0]}function Rt(t){return[t.target.x0,t.y1]}function Ht(){return qt().source(Kt).target(Rt)}var at=(function(){var t=p(function(m,i,o,f){for(o=o||{},f=m.length;f--;o[m[f]]=i);return o},"o"),n=[1,9],r=[1,10],a=[1,5,10,12],c={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(m,i,o,f,d,y,w){var v=y.length-1;switch(d){case 7:const N=f.findOrCreateNode(y[v-4].trim().replaceAll('""','"')),A=f.findOrCreateNode(y[v-2].trim().replaceAll('""','"')),T=parseFloat(y[v].trim());f.addLink(N,A,T);break;case 8:case 9:case 11:this.$=y[v];break;case 10:this.$=y[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},"parseError"),parse:p(function(m){var i=this,o=[0],f=[],d=[null],y=[],w=this.table,v="",N=0,A=0,T=2,D=1,P=y.slice.call(arguments,1),S=Object.create(this.lexer),O={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(O.yy[I]=this.yy[I]);S.setInput(m,O.yy),O.yy.lexer=S,O.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var g=S.options&&S.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(b){o.length=o.length-2*b,d.length=d.length-b,y.length=y.length-b}p(L,"popStack");function U(){var b;return b=f.pop()||S.lex()||D,typeof b!="number"&&(b instanceof Array&&(f=b,b=f.pop()),b=i.symbols_[b]||b),b}p(U,"lex");for(var E,$,M,G,e={},u,l,h,s;;){if($=o[o.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((E===null||typeof E>"u")&&(E=U()),M=w[$]&&w[$][E]),typeof M>"u"||!M.length||!M[0]){var x="";s=[];for(u in w[$])this.terminals_[u]&&u>T&&s.push("'"+this.terminals_[u]+"'");S.showPosition?x="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+s.join(", ")+", got '"+(this.terminals_[E]||E)+"'":x="Parse error on line "+(N+1)+": Unexpected "+(E==D?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(x,{text:S.match,token:this.terminals_[E]||E,line:S.yylineno,loc:C,expected:s})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+E);switch(M[0]){case 1:o.push(E),d.push(S.yytext),y.push(S.yylloc),o.push(M[1]),E=null,A=S.yyleng,v=S.yytext,N=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[M[1]][1],e.$=d[d.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},g&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),G=this.performAction.apply(e,[v,A,N,O.yy,M[1],d,y].concat(P)),typeof G<"u")return G;l&&(o=o.slice(0,-1*l*2),d=d.slice(0,-1*l),y=y.slice(0,-1*l)),o.push(this.productions_[M[1]][0]),d.push(e.$),y.push(e._$),h=w[o[o.length-2]][o[o.length-1]],o.push(h);break;case 3:return!0}}return!0},"parse")},k=(function(){var m={EOF:1,parseError:p(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:p(function(i,o){return this.yy=o||this.yy||{},this._input=i,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:p(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:p(function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var d=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),f.length-1&&(this.yylineno-=f.length-1);var y=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:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(i){this.unput(this.match.slice(i))},"less"),pastInput:p(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
package/dist/assets/{sankeyDiagram-TZEHDZUN-2StPUADQ.js → sankeyDiagram-TZEHDZUN-DymCbMLh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bE as g,bZ as _t,b_ as xt,bF as vt,bG as bt,bI as St,bH as wt,bJ as lt,c4 as Lt,bK as X,d6 as Et,cJ as At,c3 as Tt,bS as Mt}from"./index-CljDzOsD.js";function Nt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a<e;)i[a]="#"+t.slice(a*6,++a*6);return i}const It=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i<h||i===void 0&&h>=h)&&(i=h)}return i}function pt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function nt(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,e){return e-1-t.height}function mt(t,e){return t.sourceLinks.length?t.depth:e-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,e){return K(t.source,e.source)||t.index-e.index}function ht(t,e){return K(t.target,e.target)||t.index-e.index}function K(t,e){return t.y0-e.y0}function it(t){return t.value}function $t(t){return t.index}function zt(t){return t.nodes}function jt(t){return t.links}function ft(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function yt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Bt(){let t=0,e=0,i=1,a=1,h=24,b=8,p,k=$t,s=mt,o,l,_=zt,x=jt,y=6;function v(){const n={nodes:_.apply(null,arguments),links:x.apply(null,arguments)};return M(n),T(n),N(n),C(n),w(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:q(n),v):k},v.nodeAlign=function(n){return arguments.length?(s=typeof n=="function"?n:q(n),v):s},v.nodeSort=function(n){return arguments.length?(o=n,v):o},v.nodeWidth=function(n){return arguments.length?(h=+n,v):h},v.nodePadding=function(n){return arguments.length?(b=p=+n,v):b},v.nodes=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),v):_},v.links=function(n){return arguments.length?(x=typeof n=="function"?n:q(n),v):x},v.linkSort=function(n){return arguments.length?(l=n,v):l},v.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],v):[i-t,a-e]},v.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],v):[[t,e],[i,a]]},v.iterations=function(n){return arguments.length?(y=+n,v):y};function M({nodes:n,links:f}){for(const[c,r]of n.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((c,r)=>[k(c,r,n),c]));for(const[c,r]of f.entries()){r.index=c;let{source:m,target:S}=r;typeof m!="object"&&(m=r.source=ft(u,m)),typeof S!="object"&&(S=r.target=ft(u,S)),m.sourceLinks.push(r),S.targetLinks.push(r)}if(l!=null)for(const{sourceLinks:c,targetLinks:r}of n)c.sort(l),r.sort(l)}function T({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function N({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const m of u){m.depth=r;for(const{target:S}of m.sourceLinks)c.add(S)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const m of u){m.height=r;for(const{source:S}of m.targetLinks)c.add(S)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function $({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const r of n){const m=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=m,r.x0=t+m*u,r.x1=r.x0+h,c[m]?c[m].push(r):c[m]=[r]}if(o)for(const r of c)r.sort(o);return c}function F(n){const f=pt(n,u=>(a-e-(u.length-1)*p)/nt(u,it));for(const u of n){let c=e;for(const r of u){r.y0=c,r.y1=c+r.value*f,c=r.y1+p;for(const m of r.sourceLinks)m.width=m.value*f}c=(a-c+p)/(u.length+1);for(let r=0;r<u.length;++r){const m=u[r];m.y0+=c*(r+1),m.y1+=c*(r+1)}A(u)}}function w(n){const f=$(n);p=Math.min(b,(a-e)/(ct(f,u=>u.length)-1)),F(f);for(let u=0;u<y;++u){const c=Math.pow(.99,u),r=Math.max(1-c,(u+1)/y);B(f,c,r),P(f,c,r)}}function P(n,f,u){for(let c=1,r=n.length;c<r;++c){const m=n[c];for(const S of m){let L=0,R=0;for(const{source:H,value:et}of S.targetLinks){let Y=et*(S.layer-H.layer);L+=z(H,S)*Y,R+=Y}if(!(R>0))continue;let U=(L/R-S.y0)*f;S.y0+=U,S.y1+=U,E(S)}o===void 0&&m.sort(K),O(m,u)}}function B(n,f,u){for(let c=n.length,r=c-2;r>=0;--r){const m=n[r];for(const S of m){let L=0,R=0;for(const{target:H,value:et}of S.sourceLinks){let Y=et*(H.layer-S.layer);L+=I(S,H)*Y,R+=Y}if(!(R>0))continue;let U=(L/R-S.y0)*f;S.y0+=U,S.y1+=U,E(S)}o===void 0&&m.sort(K),O(m,u)}}function O(n,f){const u=n.length>>1,c=n[u];d(n,c.y0-p,u-1,f),D(n,c.y1+p,u+1,f),d(n,a,n.length-1,f),D(n,e,0,f)}function D(n,f,u,c){for(;u<n.length;++u){const r=n[u],m=(f-r.y0)*c;m>1e-6&&(r.y0+=m,r.y1+=m),f=r.y1+p}}function d(n,f,u,c){for(;u>=0;--u){const r=n[u],m=(r.y1-f)*c;m>1e-6&&(r.y0-=m,r.y1-=m),f=r.y0-p}}function E({sourceLinks:n,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function A(n){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function z(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u+=r+p}for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u-=r}return u}function I(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u+=r+p}for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u-=r}return u}return v}var st=Math.PI,rt=2*st,V=1e-6,Ft=rt-V;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,b){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+b)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var b=this._x1,p=this._y1,k=i-t,s=a-e,o=b-t,l=p-e,_=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(_>V)if(!(Math.abs(l*k-s*o)>V)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var x=i-b,y=a-p,v=k*k+s*s,M=x*x+y*y,T=Math.sqrt(v),N=Math.sqrt(_),C=h*Math.tan((st-Math.acos((v+_-M)/(2*T*N)))/2),$=C/N,F=C/T;Math.abs($-1)>V&&(this._+="L"+(t+$*o)+","+(e+$*l)),this._+="A"+h+","+h+",0,0,"+ +(l*x>o*y)+","+(this._x1=t+F*k)+","+(this._y1=e+F*s)}},arc:function(t,e,i,a,h,b){t=+t,e=+e,i=+i,b=!!b;var p=i*Math.cos(a),k=i*Math.sin(a),s=t+p,o=e+k,l=1^b,_=b?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>V||Math.abs(this._y1-o)>V)&&(this._+="L"+s+","+o),i&&(_<0&&(_=_%rt+rt),_>Ft?this._+="A"+i+","+i+",0,1,"+l+","+(t-p)+","+(e-k)+"A"+i+","+i+",0,1,"+l+","+(this._x1=s)+","+(this._y1=o):_>V&&(this._+="A"+i+","+i+",0,"+ +(_>=st)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Rt(t){return t[0]}function Vt(t){return t[1]}var Wt=Array.prototype.slice;function Gt(t){return t.source}function Ut(t){return t.target}function Ht(t){var e=Gt,i=Ut,a=Rt,h=Vt,b=null;function p(){var k,s=Wt.call(arguments),o=e.apply(this,s),l=i.apply(this,s);if(b||(b=k=kt()),t(b,+a.apply(this,(s[0]=o,s)),+h.apply(this,s),+a.apply(this,(s[0]=l,s)),+h.apply(this,s)),k)return b=null,k+""||null}return p.source=function(k){return arguments.length?(e=k,p):e},p.target=function(k){return arguments.length?(i=k,p):i},p.x=function(k){return arguments.length?(a=typeof k=="function"?k:dt(+k),p):a},p.y=function(k){return arguments.length?(h=typeof k=="function"?k:dt(+k),p):h},p.context=function(k){return arguments.length?(b=k??null,p):b},p}function Yt(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function Xt(){return Ht(Yt)}function qt(t){return[t.source.x1,t.y0]}function Kt(t){return[t.target.x0,t.y1]}function Qt(){return Xt().source(qt).target(Kt)}var at=(function(){var t=g(function(k,s,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=s);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(function(s,o,l,_,x,y,v){var M=y.length-1;switch(x){case 7:const T=_.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=_.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());_.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(function(s,o){if(o.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=o,l}},"parseError"),parse:g(function(s){var o=this,l=[0],_=[],x=[null],y=[],v=this.table,M="",T=0,N=0,C=2,$=1,F=y.slice.call(arguments,1),w=Object.create(this.lexer),P={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(P.yy[B]=this.yy[B]);w.setInput(s,P.yy),P.yy.lexer=w,P.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var O=w.yylloc;y.push(O);var D=w.options&&w.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(L){l.length=l.length-2*L,x.length=x.length-L,y.length=y.length-L}g(d,"popStack");function E(){var L;return L=_.pop()||w.lex()||$,typeof L!="number"&&(L instanceof Array&&(_=L,L=_.pop()),L=o.symbols_[L]||L),L}g(E,"lex");for(var A,z,I,n,f={},u,c,r,m;;){if(z=l[l.length-1],this.defaultActions[z]?I=this.defaultActions[z]:((A===null||typeof A>"u")&&(A=E()),I=v[z]&&v[z][A]),typeof I>"u"||!I.length||!I[0]){var S="";m=[];for(u in v[z])this.terminals_[u]&&u>C&&m.push("'"+this.terminals_[u]+"'");w.showPosition?S="Parse error on line "+(T+1)+`:
|
|
1
|
+
import{bE as g,bZ as _t,b_ as xt,bF as vt,bG as bt,bI as St,bH as wt,bJ as lt,c4 as Lt,bK as X,d6 as Et,cJ as At,c3 as Tt,bS as Mt}from"./index-BffUh93D.js";function Nt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a<e;)i[a]="#"+t.slice(a*6,++a*6);return i}const It=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i<h||i===void 0&&h>=h)&&(i=h)}return i}function pt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function nt(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,e){return e-1-t.height}function mt(t,e){return t.sourceLinks.length?t.depth:e-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,e){return K(t.source,e.source)||t.index-e.index}function ht(t,e){return K(t.target,e.target)||t.index-e.index}function K(t,e){return t.y0-e.y0}function it(t){return t.value}function $t(t){return t.index}function zt(t){return t.nodes}function jt(t){return t.links}function ft(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function yt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Bt(){let t=0,e=0,i=1,a=1,h=24,b=8,p,k=$t,s=mt,o,l,_=zt,x=jt,y=6;function v(){const n={nodes:_.apply(null,arguments),links:x.apply(null,arguments)};return M(n),T(n),N(n),C(n),w(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:q(n),v):k},v.nodeAlign=function(n){return arguments.length?(s=typeof n=="function"?n:q(n),v):s},v.nodeSort=function(n){return arguments.length?(o=n,v):o},v.nodeWidth=function(n){return arguments.length?(h=+n,v):h},v.nodePadding=function(n){return arguments.length?(b=p=+n,v):b},v.nodes=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),v):_},v.links=function(n){return arguments.length?(x=typeof n=="function"?n:q(n),v):x},v.linkSort=function(n){return arguments.length?(l=n,v):l},v.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],v):[i-t,a-e]},v.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],v):[[t,e],[i,a]]},v.iterations=function(n){return arguments.length?(y=+n,v):y};function M({nodes:n,links:f}){for(const[c,r]of n.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((c,r)=>[k(c,r,n),c]));for(const[c,r]of f.entries()){r.index=c;let{source:m,target:S}=r;typeof m!="object"&&(m=r.source=ft(u,m)),typeof S!="object"&&(S=r.target=ft(u,S)),m.sourceLinks.push(r),S.targetLinks.push(r)}if(l!=null)for(const{sourceLinks:c,targetLinks:r}of n)c.sort(l),r.sort(l)}function T({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function N({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const m of u){m.depth=r;for(const{target:S}of m.sourceLinks)c.add(S)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const m of u){m.height=r;for(const{source:S}of m.targetLinks)c.add(S)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function $({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const r of n){const m=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=m,r.x0=t+m*u,r.x1=r.x0+h,c[m]?c[m].push(r):c[m]=[r]}if(o)for(const r of c)r.sort(o);return c}function F(n){const f=pt(n,u=>(a-e-(u.length-1)*p)/nt(u,it));for(const u of n){let c=e;for(const r of u){r.y0=c,r.y1=c+r.value*f,c=r.y1+p;for(const m of r.sourceLinks)m.width=m.value*f}c=(a-c+p)/(u.length+1);for(let r=0;r<u.length;++r){const m=u[r];m.y0+=c*(r+1),m.y1+=c*(r+1)}A(u)}}function w(n){const f=$(n);p=Math.min(b,(a-e)/(ct(f,u=>u.length)-1)),F(f);for(let u=0;u<y;++u){const c=Math.pow(.99,u),r=Math.max(1-c,(u+1)/y);B(f,c,r),P(f,c,r)}}function P(n,f,u){for(let c=1,r=n.length;c<r;++c){const m=n[c];for(const S of m){let L=0,R=0;for(const{source:H,value:et}of S.targetLinks){let Y=et*(S.layer-H.layer);L+=z(H,S)*Y,R+=Y}if(!(R>0))continue;let U=(L/R-S.y0)*f;S.y0+=U,S.y1+=U,E(S)}o===void 0&&m.sort(K),O(m,u)}}function B(n,f,u){for(let c=n.length,r=c-2;r>=0;--r){const m=n[r];for(const S of m){let L=0,R=0;for(const{target:H,value:et}of S.sourceLinks){let Y=et*(H.layer-S.layer);L+=I(S,H)*Y,R+=Y}if(!(R>0))continue;let U=(L/R-S.y0)*f;S.y0+=U,S.y1+=U,E(S)}o===void 0&&m.sort(K),O(m,u)}}function O(n,f){const u=n.length>>1,c=n[u];d(n,c.y0-p,u-1,f),D(n,c.y1+p,u+1,f),d(n,a,n.length-1,f),D(n,e,0,f)}function D(n,f,u,c){for(;u<n.length;++u){const r=n[u],m=(f-r.y0)*c;m>1e-6&&(r.y0+=m,r.y1+=m),f=r.y1+p}}function d(n,f,u,c){for(;u>=0;--u){const r=n[u],m=(r.y1-f)*c;m>1e-6&&(r.y0-=m,r.y1-=m),f=r.y0-p}}function E({sourceLinks:n,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function A(n){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function z(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u+=r+p}for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u-=r}return u}function I(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u+=r+p}for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u-=r}return u}return v}var st=Math.PI,rt=2*st,V=1e-6,Ft=rt-V;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,b){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+b)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var b=this._x1,p=this._y1,k=i-t,s=a-e,o=b-t,l=p-e,_=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(_>V)if(!(Math.abs(l*k-s*o)>V)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var x=i-b,y=a-p,v=k*k+s*s,M=x*x+y*y,T=Math.sqrt(v),N=Math.sqrt(_),C=h*Math.tan((st-Math.acos((v+_-M)/(2*T*N)))/2),$=C/N,F=C/T;Math.abs($-1)>V&&(this._+="L"+(t+$*o)+","+(e+$*l)),this._+="A"+h+","+h+",0,0,"+ +(l*x>o*y)+","+(this._x1=t+F*k)+","+(this._y1=e+F*s)}},arc:function(t,e,i,a,h,b){t=+t,e=+e,i=+i,b=!!b;var p=i*Math.cos(a),k=i*Math.sin(a),s=t+p,o=e+k,l=1^b,_=b?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>V||Math.abs(this._y1-o)>V)&&(this._+="L"+s+","+o),i&&(_<0&&(_=_%rt+rt),_>Ft?this._+="A"+i+","+i+",0,1,"+l+","+(t-p)+","+(e-k)+"A"+i+","+i+",0,1,"+l+","+(this._x1=s)+","+(this._y1=o):_>V&&(this._+="A"+i+","+i+",0,"+ +(_>=st)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Rt(t){return t[0]}function Vt(t){return t[1]}var Wt=Array.prototype.slice;function Gt(t){return t.source}function Ut(t){return t.target}function Ht(t){var e=Gt,i=Ut,a=Rt,h=Vt,b=null;function p(){var k,s=Wt.call(arguments),o=e.apply(this,s),l=i.apply(this,s);if(b||(b=k=kt()),t(b,+a.apply(this,(s[0]=o,s)),+h.apply(this,s),+a.apply(this,(s[0]=l,s)),+h.apply(this,s)),k)return b=null,k+""||null}return p.source=function(k){return arguments.length?(e=k,p):e},p.target=function(k){return arguments.length?(i=k,p):i},p.x=function(k){return arguments.length?(a=typeof k=="function"?k:dt(+k),p):a},p.y=function(k){return arguments.length?(h=typeof k=="function"?k:dt(+k),p):h},p.context=function(k){return arguments.length?(b=k??null,p):b},p}function Yt(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function Xt(){return Ht(Yt)}function qt(t){return[t.source.x1,t.y0]}function Kt(t){return[t.target.x0,t.y1]}function Qt(){return Xt().source(qt).target(Kt)}var at=(function(){var t=g(function(k,s,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=s);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(function(s,o,l,_,x,y,v){var M=y.length-1;switch(x){case 7:const T=_.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=_.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());_.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(function(s,o){if(o.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=o,l}},"parseError"),parse:g(function(s){var o=this,l=[0],_=[],x=[null],y=[],v=this.table,M="",T=0,N=0,C=2,$=1,F=y.slice.call(arguments,1),w=Object.create(this.lexer),P={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(P.yy[B]=this.yy[B]);w.setInput(s,P.yy),P.yy.lexer=w,P.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var O=w.yylloc;y.push(O);var D=w.options&&w.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(L){l.length=l.length-2*L,x.length=x.length-L,y.length=y.length-L}g(d,"popStack");function E(){var L;return L=_.pop()||w.lex()||$,typeof L!="number"&&(L instanceof Array&&(_=L,L=_.pop()),L=o.symbols_[L]||L),L}g(E,"lex");for(var A,z,I,n,f={},u,c,r,m;;){if(z=l[l.length-1],this.defaultActions[z]?I=this.defaultActions[z]:((A===null||typeof A>"u")&&(A=E()),I=v[z]&&v[z][A]),typeof I>"u"||!I.length||!I[0]){var S="";m=[];for(u in v[z])this.terminals_[u]&&u>C&&m.push("'"+this.terminals_[u]+"'");w.showPosition?S="Parse error on line "+(T+1)+`:
|
|
2
2
|
`+w.showPosition()+`
|
|
3
3
|
Expecting `+m.join(", ")+", got '"+(this.terminals_[A]||A)+"'":S="Parse error on line "+(T+1)+": Unexpected "+(A==$?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(S,{text:w.match,token:this.terminals_[A]||A,line:w.yylineno,loc:O,expected:m})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+A);switch(I[0]){case 1:l.push(A),x.push(w.yytext),y.push(w.yylloc),l.push(I[1]),A=null,N=w.yyleng,M=w.yytext,T=w.yylineno,O=w.yylloc;break;case 2:if(c=this.productions_[I[1]][1],f.$=x[x.length-c],f._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},D&&(f._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),n=this.performAction.apply(f,[M,N,T,P.yy,I[1],x,y].concat(F)),typeof n<"u")return n;c&&(l=l.slice(0,-1*c*2),x=x.slice(0,-1*c),y=y.slice(0,-1*c)),l.push(this.productions_[I[1]][0]),x.push(f.$),y.push(f._$),r=v[l[l.length-2]][l[l.length-1]],l.push(r);break;case 3:return!0}}return!0},"parse")},b=(function(){var k={EOF:1,parseError:g(function(o,l){if(this.yy.parser)this.yy.parser.parseError(o,l);else throw new Error(o)},"parseError"),setInput:g(function(s,o){return this.yy=o||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:g(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(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:g(function(s){var o=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var _=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),l.length-1&&(this.yylineno-=l.length-1);var x=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:l?(l.length===_.length?this.yylloc.first_column:0)+_[_.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(s){this.unput(this.match.slice(s))},"less"),pastInput:g(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:g(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:g(function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
package/dist/assets/{sequenceDiagram-WL72ISMW-C2DkMi33.js → sequenceDiagram-WL72ISMW-B44Q2U-R.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as we,b as Xt,g as ct,d as ve,c as Jt,e as Qt}from"./chunk-TZMSLE5B-rCMdtJet.js";import{bE as f,bV as Ie,bJ as st,bK as St,bL as Q,bQ as re,bM as Le,bN as _e,bS as I,bI as se,bF as Ae,bZ as ke,bH as Pe,bG as Ne,b_ as Se,b$ as Me,c0 as Re,c3 as De,bP as Mt,bY as W,cA as z,cB as _t,cC as ie,cD as Ce,cE as Oe,cF as ne,cb as Ht}from"./index-CljDzOsD.js";import{I as Be}from"./chunk-QZHKN3VN-B3Rt2Why.js";var Ut=(function(){var e=f(function(pt,v,A,L){for(A=A||{},L=pt.length;L--;A[pt[L]]=v);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],x=[1,24],y=[1,25],m=[1,26],w=[1,27],k=[1,28],N=[1,29],S=[1,30],O=[1,31],B=[1,32],q=[1,33],H=[1,34],Z=[1,35],at=[1,36],U=[1,37],G=[1,38],F=[1,39],D=[1,41],$=[1,42],K=[1,43],j=[1,44],rt=[1,45],R=[1,46],E=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],_=[2,71],X=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Vt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Zt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],ot=[69,70,71],lt=[1,127],Yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:f(function(v,A,L,b,C,d,It){var u=d.length-1;switch(C){case 3:return b.apply(d[u]),d[u];case 4:case 9:this.$=[];break;case 5:case 10:d[u-1].push(d[u]),this.$=d[u-1];break;case 6:case 7:case 11:case 12:this.$=d[u];break;case 8:case 13:this.$=[];break;case 15:d[u].type="createParticipant",this.$=d[u];break;case 16:d[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(d[u-2])}),d[u-1].push({type:"boxEnd",boxText:d[u-2]}),this.$=d[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-2]),sequenceIndexStep:Number(d[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-1].actor};break;case 29:b.setDiagramTitle(d[u].substring(6)),this.$=d[u].substring(6);break;case 30:b.setDiagramTitle(d[u].substring(7)),this.$=d[u].substring(7);break;case 31:this.$=d[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=d[u].trim(),b.setAccDescription(this.$);break;case 34:d[u-1].unshift({type:"loopStart",loopText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.LOOP_START}),d[u-1].push({type:"loopEnd",loopText:d[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=d[u-1];break;case 35:d[u-1].unshift({type:"rectStart",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_START}),d[u-1].push({type:"rectEnd",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=d[u-1];break;case 36:d[u-1].unshift({type:"optStart",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_START}),d[u-1].push({type:"optEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=d[u-1];break;case 37:d[u-1].unshift({type:"altStart",altText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.ALT_START}),d[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=d[u-1];break;case 38:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 39:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 40:d[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.CRITICAL_START}),d[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=d[u-1];break;case 41:d[u-1].unshift({type:"breakStart",breakText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_START}),d[u-1].push({type:"breakEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=d[u-1];break;case 43:this.$=d[u-3].concat([{type:"option",optionText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},d[u]]);break;case 45:this.$=d[u-3].concat([{type:"and",parText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.PAR_AND},d[u]]);break;case 47:this.$=d[u-3].concat([{type:"else",altText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.ALT_ELSE},d[u]]);break;case 48:d[u-3].draw="participant",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 49:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 50:d[u-3].draw="actor",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 51:d[u-1].draw="actor",d[u-1].type="addParticipant",this.$=d[u-1];break;case 52:d[u-1].type="destroyParticipant",this.$=d[u-1];break;case 53:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 54:this.$=[d[u-1],{type:"addNote",placement:d[u-2],actor:d[u-1].actor,text:d[u]}];break;case 55:d[u-2]=[].concat(d[u-1],d[u-1]).slice(0,2),d[u-2][0]=d[u-2][0].actor,d[u-2][1]=d[u-2][1].actor,this.$=[d[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:d[u-2].slice(0,2),text:d[u]}];break;case 56:this.$=[d[u-1],{type:"addLinks",actor:d[u-1].actor,text:d[u]}];break;case 57:this.$=[d[u-1],{type:"addALink",actor:d[u-1].actor,text:d[u]}];break;case 58:this.$=[d[u-1],{type:"addProperties",actor:d[u-1].actor,text:d[u]}];break;case 59:this.$=[d[u-1],{type:"addDetails",actor:d[u-1].actor,text:d[u]}];break;case 62:this.$=[d[u-2],d[u]];break;case 63:this.$=d[u];break;case 64:this.$=b.PLACEMENT.LEFTOF;break;case 65:this.$=b.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor}];break;case 67:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-4].actor}];break;case 68:this.$=[d[u-3],d[u-1],{type:"addMessage",from:d[u-3].actor,to:d[u-1].actor,signalType:d[u-2],msg:d[u]}];break;case 69:this.$={type:"addParticipant",actor:d[u-1],config:d[u]};break;case 70:this.$=d[u-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[u]};break;case 72:this.$=b.LINETYPE.SOLID_OPEN;break;case 73:this.$=b.LINETYPE.DOTTED_OPEN;break;case 74:this.$=b.LINETYPE.SOLID;break;case 75:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=b.LINETYPE.DOTTED;break;case 77:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=b.LINETYPE.SOLID_CROSS;break;case 79:this.$=b.LINETYPE.DOTTED_CROSS;break;case 80:this.$=b.LINETYPE.SOLID_POINT;break;case 81:this.$=b.LINETYPE.DOTTED_POINT;break;case 82:this.$=b.parseMessage(d[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,7]),e(E,[2,8]),e(E,[2,14]),{12:48,50:U,52:G,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:R},{22:55,71:R},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(E,[2,29]),e(E,[2,30]),{32:[1,61]},{34:[1,62]},e(E,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:R},{22:75,71:R},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:R},{22:92,71:R},{22:93,71:R},{22:94,71:R},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],_),e(E,[2,6]),e(E,[2,15]),e(X,[2,9],{10:95}),e(E,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(E,[2,21]),{5:[1,99]},{5:[1,100]},e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,27]),e(E,[2,28]),e(E,[2,31]),e(E,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(M,r,{40:104,7:105}),e(Vt,r,{42:106,7:107}),e(Vt,r,{7:107,42:108}),e(Zt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],_,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:R},e(ot,[2,72]),e(ot,[2,73]),e(ot,[2,74]),e(ot,[2,75]),e(ot,[2,76]),e(ot,[2,77]),e(ot,[2,78]),e(ot,[2,79]),e(ot,[2,80]),e(ot,[2,81]),{22:123,71:R},{22:125,59:124,71:R},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:U,52:G,53:F},{5:[1,136]},e(E,[2,19]),e(E,[2,20]),e(E,[2,22]),e(E,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,49:[1,141],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,48:[1,143],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,47:[1,146],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{15:[1,148]},e(E,[2,49]),e(E,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(E,[2,51]),e(E,[2,52]),{22:151,71:R},{22:152,71:R},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(E,[2,16]),e(X,[2,10]),{12:157,50:U,52:G,53:F},e(X,[2,12]),e(X,[2,13]),e(E,[2,18]),e(E,[2,34]),e(E,[2,35]),e(E,[2,36]),e(E,[2,37]),{15:[1,158]},e(E,[2,38]),{15:[1,159]},e(E,[2,39]),e(E,[2,40]),{15:[1,160]},e(E,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:R},e(X,[2,11]),e(M,r,{7:105,40:167}),e(Vt,r,{7:107,42:168}),e(Zt,r,{7:110,45:169}),e(E,[2,48]),{5:[2,70]},e(E,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:f(function(v,A){if(A.recoverable)this.trace(v);else{var L=new Error(v);throw L.hash=A,L}},"parseError"),parse:f(function(v){var A=this,L=[0],b=[],C=[null],d=[],It=this.table,u="",kt=0,$t=0,Te=2,jt=1,Ee=d.slice.call(arguments,1),Y=Object.create(this.lexer),ft={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(ft.yy[Wt]=this.yy[Wt]);Y.setInput(v,ft.yy),ft.yy.lexer=Y,ft.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Ft=Y.yylloc;d.push(Ft);var be=Y.options&&Y.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(et){L.length=L.length-2*et,C.length=C.length-et,d.length=d.length-et}f(me,"popStack");function te(){var et;return et=b.pop()||Y.lex()||jt,typeof et!="number"&&(et instanceof Array&&(b=et,et=b.pop()),et=A.symbols_[et]||et),et}f(te,"lex");for(var J,yt,it,qt,bt={},Pt,ht,ee,Nt;;){if(yt=L[L.length-1],this.defaultActions[yt]?it=this.defaultActions[yt]:((J===null||typeof J>"u")&&(J=te()),it=It[yt]&&It[yt][J]),typeof it>"u"||!it.length||!it[0]){var zt="";Nt=[];for(Pt in It[yt])this.terminals_[Pt]&&Pt>Te&&Nt.push("'"+this.terminals_[Pt]+"'");Y.showPosition?zt="Parse error on line "+(kt+1)+`:
|
|
1
|
+
import{a as we,b as Xt,g as ct,d as ve,c as Jt,e as Qt}from"./chunk-TZMSLE5B-o_smO1ge.js";import{bE as f,bV as Ie,bJ as st,bK as St,bL as Q,bQ as re,bM as Le,bN as _e,bS as I,bI as se,bF as Ae,bZ as ke,bH as Pe,bG as Ne,b_ as Se,b$ as Me,c0 as Re,c3 as De,bP as Mt,bY as W,cA as z,cB as _t,cC as ie,cD as Ce,cE as Oe,cF as ne,cb as Ht}from"./index-BffUh93D.js";import{I as Be}from"./chunk-QZHKN3VN-DxEo2WQL.js";var Ut=(function(){var e=f(function(pt,v,A,L){for(A=A||{},L=pt.length;L--;A[pt[L]]=v);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],x=[1,24],y=[1,25],m=[1,26],w=[1,27],k=[1,28],N=[1,29],S=[1,30],O=[1,31],B=[1,32],q=[1,33],H=[1,34],Z=[1,35],at=[1,36],U=[1,37],G=[1,38],F=[1,39],D=[1,41],$=[1,42],K=[1,43],j=[1,44],rt=[1,45],R=[1,46],E=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],_=[2,71],X=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Vt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Zt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],ot=[69,70,71],lt=[1,127],Yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:f(function(v,A,L,b,C,d,It){var u=d.length-1;switch(C){case 3:return b.apply(d[u]),d[u];case 4:case 9:this.$=[];break;case 5:case 10:d[u-1].push(d[u]),this.$=d[u-1];break;case 6:case 7:case 11:case 12:this.$=d[u];break;case 8:case 13:this.$=[];break;case 15:d[u].type="createParticipant",this.$=d[u];break;case 16:d[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(d[u-2])}),d[u-1].push({type:"boxEnd",boxText:d[u-2]}),this.$=d[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-2]),sequenceIndexStep:Number(d[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-1].actor};break;case 29:b.setDiagramTitle(d[u].substring(6)),this.$=d[u].substring(6);break;case 30:b.setDiagramTitle(d[u].substring(7)),this.$=d[u].substring(7);break;case 31:this.$=d[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=d[u].trim(),b.setAccDescription(this.$);break;case 34:d[u-1].unshift({type:"loopStart",loopText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.LOOP_START}),d[u-1].push({type:"loopEnd",loopText:d[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=d[u-1];break;case 35:d[u-1].unshift({type:"rectStart",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_START}),d[u-1].push({type:"rectEnd",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=d[u-1];break;case 36:d[u-1].unshift({type:"optStart",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_START}),d[u-1].push({type:"optEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=d[u-1];break;case 37:d[u-1].unshift({type:"altStart",altText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.ALT_START}),d[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=d[u-1];break;case 38:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 39:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 40:d[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.CRITICAL_START}),d[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=d[u-1];break;case 41:d[u-1].unshift({type:"breakStart",breakText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_START}),d[u-1].push({type:"breakEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=d[u-1];break;case 43:this.$=d[u-3].concat([{type:"option",optionText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},d[u]]);break;case 45:this.$=d[u-3].concat([{type:"and",parText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.PAR_AND},d[u]]);break;case 47:this.$=d[u-3].concat([{type:"else",altText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.ALT_ELSE},d[u]]);break;case 48:d[u-3].draw="participant",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 49:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 50:d[u-3].draw="actor",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 51:d[u-1].draw="actor",d[u-1].type="addParticipant",this.$=d[u-1];break;case 52:d[u-1].type="destroyParticipant",this.$=d[u-1];break;case 53:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 54:this.$=[d[u-1],{type:"addNote",placement:d[u-2],actor:d[u-1].actor,text:d[u]}];break;case 55:d[u-2]=[].concat(d[u-1],d[u-1]).slice(0,2),d[u-2][0]=d[u-2][0].actor,d[u-2][1]=d[u-2][1].actor,this.$=[d[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:d[u-2].slice(0,2),text:d[u]}];break;case 56:this.$=[d[u-1],{type:"addLinks",actor:d[u-1].actor,text:d[u]}];break;case 57:this.$=[d[u-1],{type:"addALink",actor:d[u-1].actor,text:d[u]}];break;case 58:this.$=[d[u-1],{type:"addProperties",actor:d[u-1].actor,text:d[u]}];break;case 59:this.$=[d[u-1],{type:"addDetails",actor:d[u-1].actor,text:d[u]}];break;case 62:this.$=[d[u-2],d[u]];break;case 63:this.$=d[u];break;case 64:this.$=b.PLACEMENT.LEFTOF;break;case 65:this.$=b.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor}];break;case 67:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-4].actor}];break;case 68:this.$=[d[u-3],d[u-1],{type:"addMessage",from:d[u-3].actor,to:d[u-1].actor,signalType:d[u-2],msg:d[u]}];break;case 69:this.$={type:"addParticipant",actor:d[u-1],config:d[u]};break;case 70:this.$=d[u-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[u]};break;case 72:this.$=b.LINETYPE.SOLID_OPEN;break;case 73:this.$=b.LINETYPE.DOTTED_OPEN;break;case 74:this.$=b.LINETYPE.SOLID;break;case 75:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=b.LINETYPE.DOTTED;break;case 77:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=b.LINETYPE.SOLID_CROSS;break;case 79:this.$=b.LINETYPE.DOTTED_CROSS;break;case 80:this.$=b.LINETYPE.SOLID_POINT;break;case 81:this.$=b.LINETYPE.DOTTED_POINT;break;case 82:this.$=b.parseMessage(d[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,7]),e(E,[2,8]),e(E,[2,14]),{12:48,50:U,52:G,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:R},{22:55,71:R},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(E,[2,29]),e(E,[2,30]),{32:[1,61]},{34:[1,62]},e(E,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:R},{22:75,71:R},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:R},{22:92,71:R},{22:93,71:R},{22:94,71:R},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],_),e(E,[2,6]),e(E,[2,15]),e(X,[2,9],{10:95}),e(E,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(E,[2,21]),{5:[1,99]},{5:[1,100]},e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,27]),e(E,[2,28]),e(E,[2,31]),e(E,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(M,r,{40:104,7:105}),e(Vt,r,{42:106,7:107}),e(Vt,r,{7:107,42:108}),e(Zt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],_,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:R},e(ot,[2,72]),e(ot,[2,73]),e(ot,[2,74]),e(ot,[2,75]),e(ot,[2,76]),e(ot,[2,77]),e(ot,[2,78]),e(ot,[2,79]),e(ot,[2,80]),e(ot,[2,81]),{22:123,71:R},{22:125,59:124,71:R},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:U,52:G,53:F},{5:[1,136]},e(E,[2,19]),e(E,[2,20]),e(E,[2,22]),e(E,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,49:[1,141],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,48:[1,143],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,47:[1,146],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{15:[1,148]},e(E,[2,49]),e(E,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(E,[2,51]),e(E,[2,52]),{22:151,71:R},{22:152,71:R},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(E,[2,16]),e(X,[2,10]),{12:157,50:U,52:G,53:F},e(X,[2,12]),e(X,[2,13]),e(E,[2,18]),e(E,[2,34]),e(E,[2,35]),e(E,[2,36]),e(E,[2,37]),{15:[1,158]},e(E,[2,38]),{15:[1,159]},e(E,[2,39]),e(E,[2,40]),{15:[1,160]},e(E,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:R},e(X,[2,11]),e(M,r,{7:105,40:167}),e(Vt,r,{7:107,42:168}),e(Zt,r,{7:110,45:169}),e(E,[2,48]),{5:[2,70]},e(E,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:f(function(v,A){if(A.recoverable)this.trace(v);else{var L=new Error(v);throw L.hash=A,L}},"parseError"),parse:f(function(v){var A=this,L=[0],b=[],C=[null],d=[],It=this.table,u="",kt=0,$t=0,Te=2,jt=1,Ee=d.slice.call(arguments,1),Y=Object.create(this.lexer),ft={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(ft.yy[Wt]=this.yy[Wt]);Y.setInput(v,ft.yy),ft.yy.lexer=Y,ft.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Ft=Y.yylloc;d.push(Ft);var be=Y.options&&Y.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(et){L.length=L.length-2*et,C.length=C.length-et,d.length=d.length-et}f(me,"popStack");function te(){var et;return et=b.pop()||Y.lex()||jt,typeof et!="number"&&(et instanceof Array&&(b=et,et=b.pop()),et=A.symbols_[et]||et),et}f(te,"lex");for(var J,yt,it,qt,bt={},Pt,ht,ee,Nt;;){if(yt=L[L.length-1],this.defaultActions[yt]?it=this.defaultActions[yt]:((J===null||typeof J>"u")&&(J=te()),it=It[yt]&&It[yt][J]),typeof it>"u"||!it.length||!it[0]){var zt="";Nt=[];for(Pt in It[yt])this.terminals_[Pt]&&Pt>Te&&Nt.push("'"+this.terminals_[Pt]+"'");Y.showPosition?zt="Parse error on line "+(kt+1)+`:
|
|
2
2
|
`+Y.showPosition()+`
|
|
3
3
|
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[J]||J)+"'":zt="Parse error on line "+(kt+1)+": Unexpected "+(J==jt?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(zt,{text:Y.match,token:this.terminals_[J]||J,line:Y.yylineno,loc:Ft,expected:Nt})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+J);switch(it[0]){case 1:L.push(J),C.push(Y.yytext),d.push(Y.yylloc),L.push(it[1]),J=null,$t=Y.yyleng,u=Y.yytext,kt=Y.yylineno,Ft=Y.yylloc;break;case 2:if(ht=this.productions_[it[1]][1],bt.$=C[C.length-ht],bt._$={first_line:d[d.length-(ht||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(ht||1)].first_column,last_column:d[d.length-1].last_column},be&&(bt._$.range=[d[d.length-(ht||1)].range[0],d[d.length-1].range[1]]),qt=this.performAction.apply(bt,[u,$t,kt,ft.yy,it[1],C,d].concat(Ee)),typeof qt<"u")return qt;ht&&(L=L.slice(0,-1*ht*2),C=C.slice(0,-1*ht),d=d.slice(0,-1*ht)),L.push(this.productions_[it[1]][0]),C.push(bt.$),d.push(bt._$),ee=It[L[L.length-2]][L[L.length-1]],L.push(ee);break;case 3:return!0}}return!0},"parse")},ye=(function(){var pt={EOF:1,parseError:f(function(A,L){if(this.yy.parser)this.yy.parser.parseError(A,L);else throw new Error(A)},"parseError"),setInput:f(function(v,A){return this.yy=A||this.yy||{},this._input=v,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:f(function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var A=v.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},"input"),unput:f(function(v){var A=v.length,L=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;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),L.length-1&&(this.yylineno-=L.length-1);var C=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:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(v){this.unput(this.match.slice(v))},"less"),pastInput:f(function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var v=this.match;return v.length<20&&(v+=this._input.substr(0,20-v.length)),(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var v=this.pastInput(),A=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,p as Ut,y as lt,x as we,m as Gt,h as Kt}from"./chunk-TZMSLE5B-Cc8_PJIq-CL4KZf-k.js";import{H as y,ak as Ie,z as at,a5 as Nt,a as X,af as re,ab as ke,ac as Le,ah as L,aa as ee,a7 as Pe,ao as ve,a9 as _e,a8 as Ne,ap as Ae,aq as Me,ar as Oe,au as Se,ae as At,an as V,b9 as kt,ba as W,aR as se,bb as De,bc as $e,bd as ie,aC as qt}from"./index-CljDzOsD.js";import{e as Re}from"./chunk-QZHKN3VN-CVAEdzef-8qYLwFhJ.js";var zt=(function(){var e=y(function(ct,I,k,E){for(k=k||{},E=ct.length;E--;k[ct[E]]=I);return k},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],s=[1,9],c=[1,11],h=[1,13],g=[1,14],i=[1,16],d=[1,17],n=[1,18],u=[1,24],b=[1,25],T=[1,26],w=[1,27],v=[1,28],N=[1,29],A=[1,30],M=[1,31],$=[1,32],B=[1,33],q=[1,34],Z=[1,35],rt=[1,36],z=[1,37],H=[1,38],F=[1,39],R=[1,41],Q=[1,42],j=[1,43],J=[1,44],st=[1,45],D=[1,46],f=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],P=[2,71],U=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],ht=[1,127],Ct={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:y(function(ct,I,k,E,O,p,G){var x=p.length-1;switch(O){case 3:return E.apply(p[x]),p[x];case 4:case 9:this.$=[];break;case 5:case 10:p[x-1].push(p[x]),this.$=p[x-1];break;case 6:case 7:case 11:case 12:this.$=p[x];break;case 8:case 13:this.$=[];break;case 15:p[x].type="createParticipant",this.$=p[x];break;case 16:p[x-1].unshift({type:"boxStart",boxData:E.parseBoxData(p[x-2])}),p[x-1].push({type:"boxEnd",boxText:p[x-2]}),this.$=p[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-2]),sequenceIndexStep:Number(p[x-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-1].actor};break;case 29:E.setDiagramTitle(p[x].substring(6)),this.$=p[x].substring(6);break;case 30:E.setDiagramTitle(p[x].substring(7)),this.$=p[x].substring(7);break;case 31:this.$=p[x].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=p[x].trim(),E.setAccDescription(this.$);break;case 34:p[x-1].unshift({type:"loopStart",loopText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.LOOP_START}),p[x-1].push({type:"loopEnd",loopText:p[x-2],signalType:E.LINETYPE.LOOP_END}),this.$=p[x-1];break;case 35:p[x-1].unshift({type:"rectStart",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_START}),p[x-1].push({type:"rectEnd",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_END}),this.$=p[x-1];break;case 36:p[x-1].unshift({type:"optStart",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_START}),p[x-1].push({type:"optEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_END}),this.$=p[x-1];break;case 37:p[x-1].unshift({type:"altStart",altText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.ALT_START}),p[x-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=p[x-1];break;case 38:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 39:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_OVER_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 40:p[x-1].unshift({type:"criticalStart",criticalText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.CRITICAL_START}),p[x-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=p[x-1];break;case 41:p[x-1].unshift({type:"breakStart",breakText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_START}),p[x-1].push({type:"breakEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_END}),this.$=p[x-1];break;case 43:this.$=p[x-3].concat([{type:"option",optionText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.CRITICAL_OPTION},p[x]]);break;case 45:this.$=p[x-3].concat([{type:"and",parText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.PAR_AND},p[x]]);break;case 47:this.$=p[x-3].concat([{type:"else",altText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.ALT_ELSE},p[x]]);break;case 48:p[x-3].draw="participant",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 49:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 50:p[x-3].draw="actor",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 51:p[x-1].draw="actor",p[x-1].type="addParticipant",this.$=p[x-1];break;case 52:p[x-1].type="destroyParticipant",this.$=p[x-1];break;case 53:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 54:this.$=[p[x-1],{type:"addNote",placement:p[x-2],actor:p[x-1].actor,text:p[x]}];break;case 55:p[x-2]=[].concat(p[x-1],p[x-1]).slice(0,2),p[x-2][0]=p[x-2][0].actor,p[x-2][1]=p[x-2][1].actor,this.$=[p[x-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:p[x-2].slice(0,2),text:p[x]}];break;case 56:this.$=[p[x-1],{type:"addLinks",actor:p[x-1].actor,text:p[x]}];break;case 57:this.$=[p[x-1],{type:"addALink",actor:p[x-1].actor,text:p[x]}];break;case 58:this.$=[p[x-1],{type:"addProperties",actor:p[x-1].actor,text:p[x]}];break;case 59:this.$=[p[x-1],{type:"addDetails",actor:p[x-1].actor,text:p[x]}];break;case 62:this.$=[p[x-2],p[x]];break;case 63:this.$=p[x];break;case 64:this.$=E.PLACEMENT.LEFTOF;break;case 65:this.$=E.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor}];break;case 67:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-4].actor}];break;case 68:this.$=[p[x-3],p[x-1],{type:"addMessage",from:p[x-3].actor,to:p[x-1].actor,signalType:p[x-2],msg:p[x]}];break;case 69:this.$={type:"addParticipant",actor:p[x-1],config:p[x]};break;case 70:this.$=p[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[x]};break;case 72:this.$=E.LINETYPE.SOLID_OPEN;break;case 73:this.$=E.LINETYPE.DOTTED_OPEN;break;case 74:this.$=E.LINETYPE.SOLID;break;case 75:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=E.LINETYPE.DOTTED;break;case 77:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=E.LINETYPE.SOLID_CROSS;break;case 79:this.$=E.LINETYPE.DOTTED_CROSS;break;case 80:this.$=E.LINETYPE.SOLID_POINT;break;case 81:this.$=E.LINETYPE.DOTTED_POINT;break;case 82:this.$=E.parseMessage(p[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:c,8:8,9:10,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,7]),e(f,[2,8]),e(f,[2,14]),{12:48,50:z,52:H,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(f,[2,29]),e(f,[2,30]),{32:[1,61]},{34:[1,62]},e(f,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],P),e(f,[2,6]),e(f,[2,15]),e(U,[2,9],{10:95}),e(f,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(f,[2,21]),{5:[1,99]},{5:[1,100]},e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,27]),e(f,[2,28]),e(f,[2,31]),e(f,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(S,r,{40:104,7:105}),e(Rt,r,{42:106,7:107}),e(Rt,r,{7:107,42:108}),e(Xt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],P,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:ht},{57:128,86:ht},{57:129,86:ht},{57:130,86:ht},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:F},{5:[1,136]},e(f,[2,19]),e(f,[2,20]),e(f,[2,22]),e(f,[2,23]),{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,137],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,138],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,139],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,140]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,49:[1,141],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,142]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,48:[1,143],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,144]},{16:[1,145]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,47:[1,146],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,147],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{15:[1,148]},e(f,[2,49]),e(f,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(f,[2,51]),e(f,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:ht},{57:154,86:ht},{57:155,86:ht},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(f,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:F},e(U,[2,12]),e(U,[2,13]),e(f,[2,18]),e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),{15:[1,158]},e(f,[2,38]),{15:[1,159]},e(f,[2,39]),e(f,[2,40]),{15:[1,160]},e(f,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:ht},{57:165,86:ht},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Rt,r,{7:107,42:168}),e(Xt,r,{7:110,45:169}),e(f,[2,48]),{5:[2,70]},e(f,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:y(function(ct,I){if(I.recoverable)this.trace(ct);else{var k=new Error(ct);throw k.hash=I,k}},"parseError"),parse:y(function(ct){var I=this,k=[0],E=[],O=[null],p=[],G=this.table,x="",Pt=0,Zt=0,be=2,Qt=1,me=p.slice.call(arguments,1),Y=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Y.setInput(ct,yt.yy),yt.yy.lexer=Y,yt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Yt=Y.yylloc;p.push(Yt);var Te=Y.options&&Y.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(et){k.length=k.length-2*et,O.length=O.length-et,p.length=p.length-et}y(fe,"popStack");function Jt(){var et;return et=E.pop()||Y.lex()||Qt,typeof et!="number"&&(et instanceof Array&&(E=et,et=E.pop()),et=I.symbols_[et]||et),et}y(Jt,"lex");for(var K,bt,it,Vt,ft={},vt,dt,te,_t;;){if(bt=k[k.length-1],this.defaultActions[bt]?it=this.defaultActions[bt]:((K===null||typeof K>"u")&&(K=Jt()),it=G[bt]&&G[bt][K]),typeof it>"u"||!it.length||!it[0]){var Ft="";_t=[];for(vt in G[bt])this.terminals_[vt]&&vt>be&&_t.push("'"+this.terminals_[vt]+"'");Y.showPosition?Ft="Parse error on line "+(Pt+1)+`:
|
|
1
|
+
import{d as Ee,p as Ut,y as lt,x as we,m as Gt,h as Kt}from"./chunk-TZMSLE5B-Cc8_PJIq-BToSsQub.js";import{H as y,ak as Ie,z as at,a5 as Nt,a as X,af as re,ab as ke,ac as Le,ah as L,aa as ee,a7 as Pe,ao as ve,a9 as _e,a8 as Ne,ap as Ae,aq as Me,ar as Oe,au as Se,ae as At,an as V,b9 as kt,ba as W,aR as se,bb as De,bc as $e,bd as ie,aC as qt}from"./index-BffUh93D.js";import{e as Re}from"./chunk-QZHKN3VN-CVAEdzef-BFS0CidB.js";var zt=(function(){var e=y(function(ct,I,k,E){for(k=k||{},E=ct.length;E--;k[ct[E]]=I);return k},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],s=[1,9],c=[1,11],h=[1,13],g=[1,14],i=[1,16],d=[1,17],n=[1,18],u=[1,24],b=[1,25],T=[1,26],w=[1,27],v=[1,28],N=[1,29],A=[1,30],M=[1,31],$=[1,32],B=[1,33],q=[1,34],Z=[1,35],rt=[1,36],z=[1,37],H=[1,38],F=[1,39],R=[1,41],Q=[1,42],j=[1,43],J=[1,44],st=[1,45],D=[1,46],f=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],P=[2,71],U=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],ht=[1,127],Ct={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:y(function(ct,I,k,E,O,p,G){var x=p.length-1;switch(O){case 3:return E.apply(p[x]),p[x];case 4:case 9:this.$=[];break;case 5:case 10:p[x-1].push(p[x]),this.$=p[x-1];break;case 6:case 7:case 11:case 12:this.$=p[x];break;case 8:case 13:this.$=[];break;case 15:p[x].type="createParticipant",this.$=p[x];break;case 16:p[x-1].unshift({type:"boxStart",boxData:E.parseBoxData(p[x-2])}),p[x-1].push({type:"boxEnd",boxText:p[x-2]}),this.$=p[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-2]),sequenceIndexStep:Number(p[x-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-1].actor};break;case 29:E.setDiagramTitle(p[x].substring(6)),this.$=p[x].substring(6);break;case 30:E.setDiagramTitle(p[x].substring(7)),this.$=p[x].substring(7);break;case 31:this.$=p[x].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=p[x].trim(),E.setAccDescription(this.$);break;case 34:p[x-1].unshift({type:"loopStart",loopText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.LOOP_START}),p[x-1].push({type:"loopEnd",loopText:p[x-2],signalType:E.LINETYPE.LOOP_END}),this.$=p[x-1];break;case 35:p[x-1].unshift({type:"rectStart",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_START}),p[x-1].push({type:"rectEnd",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_END}),this.$=p[x-1];break;case 36:p[x-1].unshift({type:"optStart",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_START}),p[x-1].push({type:"optEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_END}),this.$=p[x-1];break;case 37:p[x-1].unshift({type:"altStart",altText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.ALT_START}),p[x-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=p[x-1];break;case 38:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 39:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_OVER_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 40:p[x-1].unshift({type:"criticalStart",criticalText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.CRITICAL_START}),p[x-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=p[x-1];break;case 41:p[x-1].unshift({type:"breakStart",breakText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_START}),p[x-1].push({type:"breakEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_END}),this.$=p[x-1];break;case 43:this.$=p[x-3].concat([{type:"option",optionText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.CRITICAL_OPTION},p[x]]);break;case 45:this.$=p[x-3].concat([{type:"and",parText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.PAR_AND},p[x]]);break;case 47:this.$=p[x-3].concat([{type:"else",altText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.ALT_ELSE},p[x]]);break;case 48:p[x-3].draw="participant",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 49:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 50:p[x-3].draw="actor",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 51:p[x-1].draw="actor",p[x-1].type="addParticipant",this.$=p[x-1];break;case 52:p[x-1].type="destroyParticipant",this.$=p[x-1];break;case 53:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 54:this.$=[p[x-1],{type:"addNote",placement:p[x-2],actor:p[x-1].actor,text:p[x]}];break;case 55:p[x-2]=[].concat(p[x-1],p[x-1]).slice(0,2),p[x-2][0]=p[x-2][0].actor,p[x-2][1]=p[x-2][1].actor,this.$=[p[x-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:p[x-2].slice(0,2),text:p[x]}];break;case 56:this.$=[p[x-1],{type:"addLinks",actor:p[x-1].actor,text:p[x]}];break;case 57:this.$=[p[x-1],{type:"addALink",actor:p[x-1].actor,text:p[x]}];break;case 58:this.$=[p[x-1],{type:"addProperties",actor:p[x-1].actor,text:p[x]}];break;case 59:this.$=[p[x-1],{type:"addDetails",actor:p[x-1].actor,text:p[x]}];break;case 62:this.$=[p[x-2],p[x]];break;case 63:this.$=p[x];break;case 64:this.$=E.PLACEMENT.LEFTOF;break;case 65:this.$=E.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor}];break;case 67:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-4].actor}];break;case 68:this.$=[p[x-3],p[x-1],{type:"addMessage",from:p[x-3].actor,to:p[x-1].actor,signalType:p[x-2],msg:p[x]}];break;case 69:this.$={type:"addParticipant",actor:p[x-1],config:p[x]};break;case 70:this.$=p[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[x]};break;case 72:this.$=E.LINETYPE.SOLID_OPEN;break;case 73:this.$=E.LINETYPE.DOTTED_OPEN;break;case 74:this.$=E.LINETYPE.SOLID;break;case 75:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=E.LINETYPE.DOTTED;break;case 77:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=E.LINETYPE.SOLID_CROSS;break;case 79:this.$=E.LINETYPE.DOTTED_CROSS;break;case 80:this.$=E.LINETYPE.SOLID_POINT;break;case 81:this.$=E.LINETYPE.DOTTED_POINT;break;case 82:this.$=E.parseMessage(p[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:c,8:8,9:10,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,7]),e(f,[2,8]),e(f,[2,14]),{12:48,50:z,52:H,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(f,[2,29]),e(f,[2,30]),{32:[1,61]},{34:[1,62]},e(f,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],P),e(f,[2,6]),e(f,[2,15]),e(U,[2,9],{10:95}),e(f,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(f,[2,21]),{5:[1,99]},{5:[1,100]},e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,27]),e(f,[2,28]),e(f,[2,31]),e(f,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(S,r,{40:104,7:105}),e(Rt,r,{42:106,7:107}),e(Rt,r,{7:107,42:108}),e(Xt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],P,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:ht},{57:128,86:ht},{57:129,86:ht},{57:130,86:ht},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:F},{5:[1,136]},e(f,[2,19]),e(f,[2,20]),e(f,[2,22]),e(f,[2,23]),{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,137],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,138],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,139],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,140]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,49:[1,141],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,142]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,48:[1,143],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,144]},{16:[1,145]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,47:[1,146],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,147],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:v,36:N,37:A,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{15:[1,148]},e(f,[2,49]),e(f,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(f,[2,51]),e(f,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:ht},{57:154,86:ht},{57:155,86:ht},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(f,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:F},e(U,[2,12]),e(U,[2,13]),e(f,[2,18]),e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),{15:[1,158]},e(f,[2,38]),{15:[1,159]},e(f,[2,39]),e(f,[2,40]),{15:[1,160]},e(f,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:ht},{57:165,86:ht},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Rt,r,{7:107,42:168}),e(Xt,r,{7:110,45:169}),e(f,[2,48]),{5:[2,70]},e(f,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:y(function(ct,I){if(I.recoverable)this.trace(ct);else{var k=new Error(ct);throw k.hash=I,k}},"parseError"),parse:y(function(ct){var I=this,k=[0],E=[],O=[null],p=[],G=this.table,x="",Pt=0,Zt=0,be=2,Qt=1,me=p.slice.call(arguments,1),Y=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Y.setInput(ct,yt.yy),yt.yy.lexer=Y,yt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Yt=Y.yylloc;p.push(Yt);var Te=Y.options&&Y.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(et){k.length=k.length-2*et,O.length=O.length-et,p.length=p.length-et}y(fe,"popStack");function Jt(){var et;return et=E.pop()||Y.lex()||Qt,typeof et!="number"&&(et instanceof Array&&(E=et,et=E.pop()),et=I.symbols_[et]||et),et}y(Jt,"lex");for(var K,bt,it,Vt,ft={},vt,dt,te,_t;;){if(bt=k[k.length-1],this.defaultActions[bt]?it=this.defaultActions[bt]:((K===null||typeof K>"u")&&(K=Jt()),it=G[bt]&&G[bt][K]),typeof it>"u"||!it.length||!it[0]){var Ft="";_t=[];for(vt in G[bt])this.terminals_[vt]&&vt>be&&_t.push("'"+this.terminals_[vt]+"'");Y.showPosition?Ft="Parse error on line "+(Pt+1)+`:
|
|
2
2
|
`+Y.showPosition()+`
|
|
3
3
|
Expecting `+_t.join(", ")+", got '"+(this.terminals_[K]||K)+"'":Ft="Parse error on line "+(Pt+1)+": Unexpected "+(K==Qt?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(Ft,{text:Y.match,token:this.terminals_[K]||K,line:Y.yylineno,loc:Yt,expected:_t})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+bt+", token: "+K);switch(it[0]){case 1:k.push(K),O.push(Y.yytext),p.push(Y.yylloc),k.push(it[1]),K=null,Zt=Y.yyleng,x=Y.yytext,Pt=Y.yylineno,Yt=Y.yylloc;break;case 2:if(dt=this.productions_[it[1]][1],ft.$=O[O.length-dt],ft._$={first_line:p[p.length-(dt||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(dt||1)].first_column,last_column:p[p.length-1].last_column},Te&&(ft._$.range=[p[p.length-(dt||1)].range[0],p[p.length-1].range[1]]),Vt=this.performAction.apply(ft,[x,Zt,Pt,yt.yy,it[1],O,p].concat(me)),typeof Vt<"u")return Vt;dt&&(k=k.slice(0,-1*dt*2),O=O.slice(0,-1*dt),p=p.slice(0,-1*dt)),k.push(this.productions_[it[1]][0]),O.push(ft.$),p.push(ft._$),te=G[k[k.length-2]][k[k.length-1]],k.push(te);break;case 3:return!0}}return!0},"parse")},ye=(function(){var ct={EOF:1,parseError:y(function(I,k){if(this.yy.parser)this.yy.parser.parseError(I,k);else throw new Error(I)},"parseError"),setInput:y(function(I,k){return this.yy=k||this.yy||{},this._input=I,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:y(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var k=I.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:y(function(I){var k=I.length,E=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var O=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),E.length-1&&(this.yylineno-=E.length-1);var p=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:E?(E.length===O.length?this.yylloc.first_column:0)+O[O.length-E.length].length-E[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(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:y(function(I){this.unput(this.match.slice(I))},"less"),pastInput:y(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var I=this.pastInput(),k=new Array(I.length+1).join("-");return I+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as R,a as W,S as N}from"./chunk-DI55MBZ5-D4nUIgvc.js";import{bE as f,bJ as t,bK as H,bL as S,bM as P,bS as z,cz as U,cH as _,cE as C,bY as F}from"./index-CljDzOsD.js";import{G as J}from"./graph-D-sZezjj.js";import{l as O}from"./layout-COUFj5l3.js";import"./chunk-55IACEB6-eYzOc9WS.js";import"./chunk-QN33PNHL-C4U1MnPp.js";import"./_baseUniq-CQeRAT5P.js";import"./min-Dfr6rWx0.js";var X=f(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"),Y=f(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"),D=f((e,i)=>{const d=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),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(g,b,m){const v=g.append("tspan").attr("x",2*t().state.padding).text(b);m||v.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(),l=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(g){a||(d(x,g,s),s=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),o=Math.max(p.width,n.width);return w.attr("x2",o+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o+2*t().state.padding).attr("height",p.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),x=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let o=Math.max(p,x);o===x&&(o=o+n);let g;const b=e.node().getBBox();i.doc,g=a-c,p>x&&(g=(x-o)/2+c),Math.abs(a-b.x)<c&&p>x&&(g=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",o).attr("height",b.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",g+c),p<=x&&s.attr("x",a+(o-n)/2-p/2+c),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",b.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=f(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=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const w of a){const p=w.trim();if(p.length>0){const o=l.append("tspan");if(o.text(p),s===0){const g=o.node().getBBox();s+=g.height}n+=s,o.attr("x",i+t().state.noteMargin),o.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),j=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&q(n),(i.type==="fork"||i.type==="join")&&K(n,i),i.type==="note"&&j(i.note.text,n),i.type==="divider"&&Y(n),i.type==="default"&&i.descriptions.length===0&&D(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),A=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){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(s=>!Number.isNaN(s.y));const n=i.points,l=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(_),x=e.append("path").attr("d",l(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),x.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:w,y:p}=F.calcLabelPosition(i.points),o=z.getRows(d.title);let g=0;const b=[];let m=0,v=0;for(let u=0;u<=o.length;u++){const h=s.append("text").attr("text-anchor","middle").text(o[u]).attr("x",w).attr("y",p+g),y=h.node().getBBox();m=Math.max(m,y.width),v=Math.min(v,y.x),S.info(y.x,w,p+g),g===0&&(g=h.node().getBBox().height,S.info("Title height",g,p)),b.push(h)}let k=g*o.length;if(o.length>1){const u=(o.length-1)*g*.5;b.forEach((h,y)=>h.attr("y",p+y*g-u)),k=g*o.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",w-m/2-t().state.padding/2).attr("y",p-k/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",k+t().state.padding),S.info(r)}A++},"drawEdge"),B,T={},V=f(function(){},"setConf"),tt=f(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"),et=f(function(e,i,d,c){B=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const x=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);tt(s);const w=c.db.getRootDoc();G(w,s,void 0,!1,x,a,c);const p=B.padding,o=s.node().getBBox(),g=o.width+p*2,b=o.height+p*2,m=g*1.75;P(s,b,m,B.useMaxWidth),s.attr("viewBox",`${o.x-B.padding} ${o.y-B.padding} `+g+" "+b)},"draw"),at=f(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),G=f((e,i,d,c,n,l,x)=>{const a=new J({compound:!0,multigraph:!0});let s,w=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){w=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),o=x.db.getRelations(),g=Object.keys(p);for(const r of g){const u=p[r];d&&(u.parentId=d);let h;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");h=G(u.doc,y,u.id,!c,n,l,x);{y=$(y,u,c);let E=y.node().getBBox();h.width=E.width,h.height=E.height+B.padding/2,T[u.id]={y:B.compositTitleSize}}}else h=L(i,u,a);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,y,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let b=0;o.forEach(function(r){b++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:B.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+b)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const y=h.parentElement;let E=0,M=0;y&&(y.parentElement&&(E=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),v=m.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*B.padding,k.height=v.height+2*B.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},ht={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ht as diagram};
|
|
1
|
+
import{s as R,a as W,S as N}from"./chunk-DI55MBZ5-Deatey85.js";import{bE as f,bJ as t,bK as H,bL as S,bM as P,bS as z,cz as U,cH as _,cE as C,bY as F}from"./index-BffUh93D.js";import{G as J}from"./graph-BP-Jibpj.js";import{l as O}from"./layout-Dz4cXAJl.js";import"./chunk-55IACEB6-DRuDSE6v.js";import"./chunk-QN33PNHL-C5mhxjvn.js";import"./_baseUniq-BsoaREqH.js";import"./min-pYcMk-7s.js";var X=f(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"),Y=f(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"),D=f((e,i)=>{const d=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),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(g,b,m){const v=g.append("tspan").attr("x",2*t().state.padding).text(b);m||v.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(),l=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(g){a||(d(x,g,s),s=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),o=Math.max(p.width,n.width);return w.attr("x2",o+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o+2*t().state.padding).attr("height",p.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),x=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let o=Math.max(p,x);o===x&&(o=o+n);let g;const b=e.node().getBBox();i.doc,g=a-c,p>x&&(g=(x-o)/2+c),Math.abs(a-b.x)<c&&p>x&&(g=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",o).attr("height",b.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",g+c),p<=x&&s.attr("x",a+(o-n)/2-p/2+c),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",b.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=f(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=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const w of a){const p=w.trim();if(p.length>0){const o=l.append("tspan");if(o.text(p),s===0){const g=o.node().getBBox();s+=g.height}n+=s,o.attr("x",i+t().state.noteMargin),o.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),j=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&q(n),(i.type==="fork"||i.type==="join")&&K(n,i),i.type==="note"&&j(i.note.text,n),i.type==="divider"&&Y(n),i.type==="default"&&i.descriptions.length===0&&D(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),A=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){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(s=>!Number.isNaN(s.y));const n=i.points,l=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(_),x=e.append("path").attr("d",l(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),x.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:w,y:p}=F.calcLabelPosition(i.points),o=z.getRows(d.title);let g=0;const b=[];let m=0,v=0;for(let u=0;u<=o.length;u++){const h=s.append("text").attr("text-anchor","middle").text(o[u]).attr("x",w).attr("y",p+g),y=h.node().getBBox();m=Math.max(m,y.width),v=Math.min(v,y.x),S.info(y.x,w,p+g),g===0&&(g=h.node().getBBox().height,S.info("Title height",g,p)),b.push(h)}let k=g*o.length;if(o.length>1){const u=(o.length-1)*g*.5;b.forEach((h,y)=>h.attr("y",p+y*g-u)),k=g*o.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",w-m/2-t().state.padding/2).attr("y",p-k/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",k+t().state.padding),S.info(r)}A++},"drawEdge"),B,T={},V=f(function(){},"setConf"),tt=f(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"),et=f(function(e,i,d,c){B=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const x=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);tt(s);const w=c.db.getRootDoc();G(w,s,void 0,!1,x,a,c);const p=B.padding,o=s.node().getBBox(),g=o.width+p*2,b=o.height+p*2,m=g*1.75;P(s,b,m,B.useMaxWidth),s.attr("viewBox",`${o.x-B.padding} ${o.y-B.padding} `+g+" "+b)},"draw"),at=f(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),G=f((e,i,d,c,n,l,x)=>{const a=new J({compound:!0,multigraph:!0});let s,w=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){w=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),o=x.db.getRelations(),g=Object.keys(p);for(const r of g){const u=p[r];d&&(u.parentId=d);let h;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");h=G(u.doc,y,u.id,!c,n,l,x);{y=$(y,u,c);let E=y.node().getBBox();h.width=E.width,h.height=E.height+B.padding/2,T[u.id]={y:B.compositTitleSize}}}else h=L(i,u,a);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,y,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let b=0;o.forEach(function(r){b++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:B.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+b)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const y=h.parentElement;let E=0,M=0;y&&(y.parentElement&&(E=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),v=m.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*B.padding,k.height=v.height+2*B.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},ht={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ht as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as A,B as G,M}from"./chunk-DI55MBZ5-BwHLqSW9-VH9rU0-X.js";import{H as y,z as t,a5 as v,a as E,ab as U,ah as H,b8 as P,bf as C,bc as O,an as R}from"./index-CljDzOsD.js";import{X as I}from"./graph-rt_wscbL-BkzytxfK.js";import{B as W}from"./layout-CX9neEHw-CGq1_lWY.js";import"./chunk-55IACEB6-Dd3NjClm-BV9EM6sG.js";import"./chunk-QN33PNHL-DHNejhbC-Dob37sHv.js";import"./_baseUniq-KSDS6tgF-7Gn6uSY9.js";import"./min-Ar5ebLd--fvPd2L0o.js";var X=y(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"),$=y(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"),j=y((e,n)=>{const g=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(n.id),s=g.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),g},"drawSimpleState"),F=y((e,n)=>{const g=y(function(o,u,B){const m=o.append("tspan").attr("x",2*t().state.padding).text(u);B||m.attr("dy",t().state.textHeight)},"addTspan"),s=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(n.descriptions[0]).node().getBBox(),r=s.height,c=e.append("text").attr("x",t().state.padding).attr("y",r+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;n.descriptions.forEach(function(o){l||(g(c,o,a),a=!1),l=!1});const d=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+r+t().state.dividerMargin/2).attr("y2",t().state.padding+r+t().state.dividerMargin/2).attr("class","descr-divider"),x=c.node().getBBox(),h=Math.max(x.width,s.width);return d.attr("x2",h+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",h+2*t().state.padding).attr("height",x.height+r+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),J=y((e,n,g)=>{const s=t().state.padding,r=2*t().state.padding,c=e.node().getBBox(),l=c.width,a=c.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),x=d.node().getBBox().width+r;let h=Math.max(x,l);h===l&&(h=h+r);let o;const u=e.node().getBBox();n.doc,o=a-s,x>l&&(o=(l-h)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const B=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",B).attr("class",g?"alt-composit":"composit").attr("width",h).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",o+s),x<=l&&d.attr("x",a+(h-r)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",h).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",h).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),Y=y(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"),Z=y((e,n)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(n.parentId){let r=g;g=s,s=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),q=y((e,n,g,s)=>{let r=0;const c=s.append("text");c.style("text-anchor","start"),c.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(H.lineBreakRegex);let d=1.25*t().state.noteMargin;for(const x of a){const h=x.trim();if(h.length>0){const o=c.append("tspan");if(o.text(h),d===0){const u=o.node().getBBox();d+=u.height}r+=d,o.attr("x",n+t().state.noteMargin),o.attr("y",g+r+1.25*t().state.noteMargin)}}return{textWidth:c.node().getBBox().width,textHeight:r}},"_drawLongText"),V=y((e,n)=>{n.attr("class","state-note");const g=n.append("rect").attr("x",0).attr("y",t().state.padding),s=n.append("g"),{textWidth:r,textHeight:c}=q(e,0,0,s);return g.attr("height",c+2*t().state.noteMargin),g.attr("width",r+t().state.noteMargin*2),g},"drawNote"),T=y(function(e,n){const g=n.id,s={id:g,label:n.id,width:0,height:0},r=e.append("g").attr("id",g).attr("class","stateGroup");n.type==="start"&&X(r),n.type==="end"&&Y(r),(n.type==="fork"||n.type==="join")&&Z(r,n),n.type==="note"&&V(n.note.text,r),n.type==="divider"&&$(r),n.type==="default"&&n.descriptions.length===0&&j(r,n),n.type==="default"&&n.descriptions.length>0&&F(r,n);const c=r.node().getBBox();return s.width=c.width+2*t().state.padding,s.height=c.height+2*t().state.padding,s},"drawState"),L=0,K=y(function(e,n,g){const s=y(function(d){switch(d){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(d=>!Number.isNaN(d.y));const r=n.points,c=P().x(function(d){return d.x}).y(function(d){return d.y}).curve(C),l=e.append("path").attr("d",c(r)).attr("id","edge"+L).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=O(!0)),l.attr("marker-end","url("+a+"#"+s(M.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const d=e.append("g").attr("class","stateLabel"),{x,y:h}=R.calcLabelPosition(n.points),o=H.getRows(g.title);let u=0;const B=[];let m=0,N=0;for(let f=0;f<=o.length;f++){const p=d.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",h+u),w=p.node().getBBox();m=Math.max(m,w.width),N=Math.min(N,w.x),E.info(w.x,x,h+u),u===0&&(u=p.node().getBBox().height,E.info("Title height",u,h)),B.push(p)}let S=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;B.forEach((p,w)=>p.attr("y",h+w*u-f)),S=u*o.length}const i=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",x-m/2-t().state.padding/2).attr("y",h-S/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",S+t().state.padding),E.info(i)}L++},"drawEdge"),b,z={},Q=y(function(){},"setConf"),_=y(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"),tt=y(function(e,n,g,s){b=t().state;const r=t().securityLevel;let c;r==="sandbox"&&(c=v("#i"+n));const l=r==="sandbox"?v(c.nodes()[0].contentDocument.body):v("body"),a=r==="sandbox"?c.nodes()[0].contentDocument:document;E.debug("Rendering diagram "+e);const d=l.select(`[id='${n}']`);_(d);const x=s.db.getRootDoc();D(x,d,void 0,!1,l,a,s);const h=b.padding,o=d.node().getBBox(),u=o.width+h*2,B=o.height+h*2,m=u*1.75;U(d,B,m,b.useMaxWidth),d.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+u+" "+B)},"draw"),et=y(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),D=y((e,n,g,s,r,c,l)=>{const a=new I({compound:!0,multigraph:!0});let d,x=!0;for(d=0;d<e.length;d++)if(e[d].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:b.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:b.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(h);for(const i of u){const f=h[i];g&&(f.parentId=g);let p;if(f.doc){let w=n.append("g").attr("id",f.id).attr("class","stateGroup");p=D(f.doc,w,f.id,!s,r,c,l);{w=J(w,f,s);let k=w.node().getBBox();p.width=k.width,p.height=k.height+b.padding/2,z[f.id]={y:b.compositTitleSize}}}else p=T(n,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},k=T(n,w,a);f.note.position==="left of"?(a.setNode(p.id+"-note",k),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",k)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}E.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(i){B++,E.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:et(i.title),height:b.labelHeight*H.getRows(i.title).length,labelpos:"c"},"id"+B)}),W(a),E.debug("Graph after layout",a.nodes());const m=n.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(E.warn("Node "+i+": "+JSON.stringify(a.node(i))),r.select("#"+m.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(z[i]?z[i].y:0)-a.node(i).height/2)+" )"),r.select("#"+m.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),c.querySelectorAll("#"+m.id+" #"+i+" .divider").forEach(f=>{const p=f.parentElement;let w=0,k=0;p&&(p.parentElement&&(w=p.parentElement.getBBox().width),k=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),f.setAttribute("x1",0-k+8),f.setAttribute("x2",w-k-8)})):E.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let N=m.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(E.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),K(n,a.edge(i),a.edge(i).relation))}),N=m.getBBox();const S={id:g||"root",label:g||"root",width:0,height:0};return S.width=N.width+2*b.padding,S.height=N.height+2*b.padding,E.debug("Doc rendered",S,a),S},"renderDoc"),at={setConf:Q,draw:tt},ht={parser:G,get db(){return new M(1)},renderer:at,styles:A,init:y(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ht as diagram};
|
|
1
|
+
import{U as A,B as G,M}from"./chunk-DI55MBZ5-BwHLqSW9-fLBLXYqu.js";import{H as y,z as t,a5 as v,a as E,ab as U,ah as H,b8 as P,bf as C,bc as O,an as R}from"./index-BffUh93D.js";import{X as I}from"./graph-rt_wscbL-BNjHDk3A.js";import{B as W}from"./layout-CX9neEHw-BeASe-L2.js";import"./chunk-55IACEB6-Dd3NjClm-2avamB6R.js";import"./chunk-QN33PNHL-DHNejhbC-Dzf1H1zL.js";import"./_baseUniq-KSDS6tgF-C-4qFebV.js";import"./min-Ar5ebLd--DAFAc3TM.js";var X=y(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"),$=y(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"),j=y((e,n)=>{const g=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(n.id),s=g.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),g},"drawSimpleState"),F=y((e,n)=>{const g=y(function(o,u,B){const m=o.append("tspan").attr("x",2*t().state.padding).text(u);B||m.attr("dy",t().state.textHeight)},"addTspan"),s=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(n.descriptions[0]).node().getBBox(),r=s.height,c=e.append("text").attr("x",t().state.padding).attr("y",r+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;n.descriptions.forEach(function(o){l||(g(c,o,a),a=!1),l=!1});const d=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+r+t().state.dividerMargin/2).attr("y2",t().state.padding+r+t().state.dividerMargin/2).attr("class","descr-divider"),x=c.node().getBBox(),h=Math.max(x.width,s.width);return d.attr("x2",h+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",h+2*t().state.padding).attr("height",x.height+r+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),J=y((e,n,g)=>{const s=t().state.padding,r=2*t().state.padding,c=e.node().getBBox(),l=c.width,a=c.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),x=d.node().getBBox().width+r;let h=Math.max(x,l);h===l&&(h=h+r);let o;const u=e.node().getBBox();n.doc,o=a-s,x>l&&(o=(l-h)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const B=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",B).attr("class",g?"alt-composit":"composit").attr("width",h).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",o+s),x<=l&&d.attr("x",a+(h-r)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",h).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",h).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),Y=y(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"),Z=y((e,n)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(n.parentId){let r=g;g=s,s=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),q=y((e,n,g,s)=>{let r=0;const c=s.append("text");c.style("text-anchor","start"),c.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(H.lineBreakRegex);let d=1.25*t().state.noteMargin;for(const x of a){const h=x.trim();if(h.length>0){const o=c.append("tspan");if(o.text(h),d===0){const u=o.node().getBBox();d+=u.height}r+=d,o.attr("x",n+t().state.noteMargin),o.attr("y",g+r+1.25*t().state.noteMargin)}}return{textWidth:c.node().getBBox().width,textHeight:r}},"_drawLongText"),V=y((e,n)=>{n.attr("class","state-note");const g=n.append("rect").attr("x",0).attr("y",t().state.padding),s=n.append("g"),{textWidth:r,textHeight:c}=q(e,0,0,s);return g.attr("height",c+2*t().state.noteMargin),g.attr("width",r+t().state.noteMargin*2),g},"drawNote"),T=y(function(e,n){const g=n.id,s={id:g,label:n.id,width:0,height:0},r=e.append("g").attr("id",g).attr("class","stateGroup");n.type==="start"&&X(r),n.type==="end"&&Y(r),(n.type==="fork"||n.type==="join")&&Z(r,n),n.type==="note"&&V(n.note.text,r),n.type==="divider"&&$(r),n.type==="default"&&n.descriptions.length===0&&j(r,n),n.type==="default"&&n.descriptions.length>0&&F(r,n);const c=r.node().getBBox();return s.width=c.width+2*t().state.padding,s.height=c.height+2*t().state.padding,s},"drawState"),L=0,K=y(function(e,n,g){const s=y(function(d){switch(d){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(d=>!Number.isNaN(d.y));const r=n.points,c=P().x(function(d){return d.x}).y(function(d){return d.y}).curve(C),l=e.append("path").attr("d",c(r)).attr("id","edge"+L).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=O(!0)),l.attr("marker-end","url("+a+"#"+s(M.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const d=e.append("g").attr("class","stateLabel"),{x,y:h}=R.calcLabelPosition(n.points),o=H.getRows(g.title);let u=0;const B=[];let m=0,N=0;for(let f=0;f<=o.length;f++){const p=d.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",h+u),w=p.node().getBBox();m=Math.max(m,w.width),N=Math.min(N,w.x),E.info(w.x,x,h+u),u===0&&(u=p.node().getBBox().height,E.info("Title height",u,h)),B.push(p)}let S=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;B.forEach((p,w)=>p.attr("y",h+w*u-f)),S=u*o.length}const i=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",x-m/2-t().state.padding/2).attr("y",h-S/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",S+t().state.padding),E.info(i)}L++},"drawEdge"),b,z={},Q=y(function(){},"setConf"),_=y(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"),tt=y(function(e,n,g,s){b=t().state;const r=t().securityLevel;let c;r==="sandbox"&&(c=v("#i"+n));const l=r==="sandbox"?v(c.nodes()[0].contentDocument.body):v("body"),a=r==="sandbox"?c.nodes()[0].contentDocument:document;E.debug("Rendering diagram "+e);const d=l.select(`[id='${n}']`);_(d);const x=s.db.getRootDoc();D(x,d,void 0,!1,l,a,s);const h=b.padding,o=d.node().getBBox(),u=o.width+h*2,B=o.height+h*2,m=u*1.75;U(d,B,m,b.useMaxWidth),d.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+u+" "+B)},"draw"),et=y(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),D=y((e,n,g,s,r,c,l)=>{const a=new I({compound:!0,multigraph:!0});let d,x=!0;for(d=0;d<e.length;d++)if(e[d].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:b.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:b.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(h);for(const i of u){const f=h[i];g&&(f.parentId=g);let p;if(f.doc){let w=n.append("g").attr("id",f.id).attr("class","stateGroup");p=D(f.doc,w,f.id,!s,r,c,l);{w=J(w,f,s);let k=w.node().getBBox();p.width=k.width,p.height=k.height+b.padding/2,z[f.id]={y:b.compositTitleSize}}}else p=T(n,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},k=T(n,w,a);f.note.position==="left of"?(a.setNode(p.id+"-note",k),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",k)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}E.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(i){B++,E.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:et(i.title),height:b.labelHeight*H.getRows(i.title).length,labelpos:"c"},"id"+B)}),W(a),E.debug("Graph after layout",a.nodes());const m=n.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(E.warn("Node "+i+": "+JSON.stringify(a.node(i))),r.select("#"+m.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(z[i]?z[i].y:0)-a.node(i).height/2)+" )"),r.select("#"+m.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),c.querySelectorAll("#"+m.id+" #"+i+" .divider").forEach(f=>{const p=f.parentElement;let w=0,k=0;p&&(p.parentElement&&(w=p.parentElement.getBBox().width),k=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),f.setAttribute("x1",0-k+8),f.setAttribute("x2",w-k-8)})):E.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let N=m.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(E.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),K(n,a.edge(i),a.edge(i).relation))}),N=m.getBBox();const S={id:g||"root",label:g||"root",width:0,height:0};return S.width=N.width+2*b.padding,S.height=N.height+2*b.padding,E.debug("Doc rendered",S,a),S},"renderDoc"),at={setConf:Q,draw:tt},ht={parser:G,get db(){return new M(1)},renderer:at,styles:A,init:y(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ht as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as t,b as r,a,S as s}from"./chunk-DI55MBZ5-Deatey85.js";import{bE as i}from"./index-BffUh93D.js";import"./chunk-55IACEB6-DRuDSE6v.js";import"./chunk-QN33PNHL-C5mhxjvn.js";var u={parser:a,get db(){return new s(2)},renderer:r,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as t,V as e,B as a,M as s}from"./chunk-DI55MBZ5-BwHLqSW9-
|
|
1
|
+
import{U as t,V as e,B as a,M as s}from"./chunk-DI55MBZ5-BwHLqSW9-fLBLXYqu.js";import{H as o}from"./index-BffUh93D.js";import"./chunk-55IACEB6-Dd3NjClm-2avamB6R.js";import"./chunk-QN33PNHL-DHNejhbC-Dzf1H1zL.js";var M={parser:a,get db(){return new s(2)},renderer:e,styles:t,init:o(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{M as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{H as r,z as mt,a as $,a5 as U,bh as xt,bi as bt,bj as kt,bk as _t,az as vt,bl as wt,au as St}from"./index-
|
|
1
|
+
import{H as r,z as mt,a as $,a5 as U,bh as xt,bi as bt,bj as kt,bk as _t,az as vt,bl as wt,au as St}from"./index-BffUh93D.js";import{h as et}from"./arc-C-X5Xt_b-B3TYbMcz.js";var X=(function(){var n=r(function(f,s,l,h){for(l=l||{},h=f.length;h--;l[f[h]]=s);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],i=[1,11],o=[1,12],u=[1,13],p=[1,16],y=[1,17],m={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:r(function(f,s,l,h,d,c,k){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:h.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),h.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),h.getCommonDb().setAccDescription(this.$);break;case 12:h.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:h.addTask(c[x],0,""),this.$=c[x];break;case 16:h.addEvent(c[x].substr(2)),this.$=c[x];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:i,16:o,17:u,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:i,16:o,17:u,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:r(function(f,s){if(s.recoverable)this.trace(f);else{var l=new Error(f);throw l.hash=s,l}},"parseError"),parse:r(function(f){var s=this,l=[0],h=[],d=[null],c=[],k=this.table,x="",N=0,M=0,z=2,I=1,j=c.slice.call(arguments,1),_=Object.create(this.lexer),S={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(S.yy[v]=this.yy[v]);_.setInput(f,S.yy),S.yy.lexer=_,S.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var A=_.yylloc;c.push(A);var O=_.options&&_.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(E){l.length=l.length-2*E,d.length=d.length-E,c.length=c.length-E}r(L,"popStack");function D(){var E;return E=h.pop()||_.lex()||I,typeof E!="number"&&(E instanceof Array&&(h=E,E=h.pop()),E=s.symbols_[E]||E),E}r(D,"lex");for(var w,H,T,Y,P={},W,C,tt,V;;){if(H=l[l.length-1],this.defaultActions[H]?T=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=D()),T=k[H]&&k[H][w]),typeof T>"u"||!T.length||!T[0]){var J="";V=[];for(W in k[H])this.terminals_[W]&&W>z&&V.push("'"+this.terminals_[W]+"'");_.showPosition?J="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[w]||w)+"'":J="Parse error on line "+(N+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(J,{text:_.match,token:this.terminals_[w]||w,line:_.yylineno,loc:A,expected:V})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);switch(T[0]){case 1:l.push(w),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),w=null,M=_.yyleng,x=_.yytext,N=_.yylineno,A=_.yylloc;break;case 2:if(C=this.productions_[T[1]][1],P.$=d[d.length-C],P._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},O&&(P._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(P,[x,M,N,S.yy,T[1],d,c].concat(j)),typeof Y<"u")return Y;C&&(l=l.slice(0,-1*C*2),d=d.slice(0,-1*C),c=c.slice(0,-1*C)),l.push(this.productions_[T[1]][0]),d.push(P.$),c.push(P._$),tt=k[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},b=(function(){var f={EOF:1,parseError:r(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:r(function(s,l){return this.yy=l||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:r(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var l=s.match(/(?:\r\n?|\n).*/g);return l?(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:r(function(s){var l=s.length,h=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=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),h.length-1&&(this.yylineno-=h.length-1);var c=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:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(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:r(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r(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:r(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:r(function(){var s=this.pastInput(),l=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|