orbitchat 2.2.6 → 2.2.7

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.
Files changed (56) hide show
  1. package/dist/assets/{_basePickBy-BjEly54R-XZ-uT-Uj.js → _basePickBy-1MakYQmz-CFyJwR0u.js} +1 -1
  2. package/dist/assets/{_baseUniq-DRc_T5HB-BsnuNSgv.js → _baseUniq-Cd4llU-Q-D06fzDcA.js} +1 -1
  3. package/dist/assets/{api-RpN2_Bta.js → api-Ciw0inlZ.js} +1 -1
  4. package/dist/assets/arc-b8oyw-lz-BCfULEh7.js +1 -0
  5. package/dist/assets/{architectureDiagram-VXUJARFQ-Cfm45ePu-CSKO1yu3.js → architectureDiagram-VXUJARFQ-BuSDV2Do-DuPWl-E8.js} +1 -1
  6. package/dist/assets/{blockDiagram-VD42YOAC-BRbgLESd-Bbm-oCAg.js → blockDiagram-VD42YOAC-jQHtez-j-C4kvu0Em.js} +4 -4
  7. package/dist/assets/{c4Diagram-YG6GDRKO-DLei6MnZ-SeObXeAe.js → c4Diagram-YG6GDRKO-_5giM-EA-CAUaWHfB.js} +4 -4
  8. package/dist/assets/channel-BLPbvVT2-BU9ed3z7.js +1 -0
  9. package/dist/assets/{chunk-4BX2VUAB-DeMNg1Xd-CMa4zZ7K.js → chunk-4BX2VUAB-BeuiUsbc-SyLBSPGf.js} +1 -1
  10. package/dist/assets/chunk-55IACEB6-C4OH5_NF-CeUEEy8j.js +1 -0
  11. package/dist/assets/{chunk-B4BG7PRW-CIxgz8SC-Cg2SKJYD.js → chunk-B4BG7PRW-CnUkcto7-Bw3MBwH8.js} +1 -1
  12. package/dist/assets/{chunk-DI55MBZ5-i035IDz6-DxyMtoDb.js → chunk-DI55MBZ5-CSd59tsh-DMnz_BT4.js} +4 -4
  13. package/dist/assets/{chunk-FMBD7UC4-Bm0ev8jq-DBEEbKOi.js → chunk-FMBD7UC4-C6VImbBX-Ci00_56S.js} +1 -1
  14. package/dist/assets/{chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js → chunk-QN33PNHL-DrWWTLTH-CxKsUSHw.js} +1 -1
  15. package/dist/assets/{chunk-QZHKN3VN-DMEEp6GB-NSbjkrZ8.js → chunk-QZHKN3VN-C6_I39By-wG4V5ipa.js} +1 -1
  16. package/dist/assets/chunk-TZMSLE5B-DGddLgNl-oFBh2Kwv.js +1 -0
  17. package/dist/assets/classDiagram-2ON5EDUG-BngjTxOv-BTvgR8FJ.js +1 -0
  18. package/dist/assets/classDiagram-v2-WZHVMYZB-BngjTxOv-BTvgR8FJ.js +1 -0
  19. package/dist/assets/clone-DH1Kq5Y6-CC3PuMQg.js +1 -0
  20. package/dist/assets/{cose-bilkent-S5V4N54A-VxeRCpgs-DsXa8Zq3.js → cose-bilkent-S5V4N54A-DcyCVH6S-DmuDbM_l.js} +1 -1
  21. package/dist/assets/{dagre-6UL2VRFP-B-o0qgxK-DfZm7xId.js → dagre-6UL2VRFP-B799wmhr-COgMFtha.js} +1 -1
  22. package/dist/assets/{diagram-PSM6KHXK-CoKmJ9sN-rwg0eDKT.js → diagram-PSM6KHXK-Dxp2wzKk-BBCx56dy.js} +1 -1
  23. package/dist/assets/{diagram-QEK2KX5R-ETMfkzYL-Bawb4i2Y.js → diagram-QEK2KX5R-Km_liL9n-Betp39ze.js} +1 -1
  24. package/dist/assets/{diagram-S2PKOQOG-BgLbl6rv-fjzP4qrY.js → diagram-S2PKOQOG-tSpHqt0k-44sQtblg.js} +1 -1
  25. package/dist/assets/{erDiagram-Q2GNP2WA-Swwdy5pk-TsPzHVEQ.js → erDiagram-Q2GNP2WA-DF6ylQ7o-Dt6nMqG4.js} +2 -2
  26. package/dist/assets/{flowDiagram-NV44I4VS-DXJdBBSZ-DNo_92-L.js → flowDiagram-NV44I4VS-BQUYJeB--BIIW2JbR.js} +1 -1
  27. package/dist/assets/{ganttDiagram-LVOFAZNH-DmRbHwxf-Cwvlwlkm.js → ganttDiagram-LVOFAZNH-BidPm1xz-C_N0fE6y.js} +4 -4
  28. package/dist/assets/{gitGraphDiagram-NY62KEGX-D30uHfXn-C_O3r_x5.js → gitGraphDiagram-NY62KEGX-zbMOFVrv-C2aviXPE.js} +2 -2
  29. package/dist/assets/{graph-ClfIprSM-BZwHPDDo.js → graph-aRt77rZZ-BCYSvQYP.js} +1 -1
  30. package/dist/assets/{index-Dwfg9sR1.js → index-CyVB0J6E.js} +135 -135
  31. package/dist/assets/{index-Bny2bm5_-BBHjCfey.js → index-rW5EEHFR-DdBF6BH7.js} +1 -1
  32. package/dist/assets/{infoDiagram-ER5ION4S-C0DTNQfZ-DOapqc3o.js → infoDiagram-ER5ION4S-ozjqEnsq-Ba1eAJxv.js} +1 -1
  33. package/dist/assets/{journeyDiagram-XKPGCS4Q-53CUbf20-Dh7OAcXv.js → journeyDiagram-XKPGCS4Q-C6JuEafR-CDMHuJkC.js} +4 -4
  34. package/dist/assets/{kanban-definition-3W4ZIXB7-B-HAgUf7-KfKbtZ09.js → kanban-definition-3W4ZIXB7-Ci4U3NR--DxVvWtAD.js} +4 -4
  35. package/dist/assets/{layout-DoRwGyA9-CrmvCQM-.js → layout-BKjRgLFe-BqG-N5rr.js} +1 -1
  36. package/dist/assets/{mindmap-definition-VGOIOE7T-JxieKS1D-DwQCKBi2.js → mindmap-definition-VGOIOE7T-DveejCtl-DLDRL_jx.js} +1 -1
  37. package/dist/assets/{pieDiagram-ADFJNKIX-vEsBIPBi-BNA3SacN.js → pieDiagram-ADFJNKIX-DAbSGtae-DaaJODT6.js} +2 -2
  38. package/dist/assets/{quadrantDiagram-AYHSOK5B-DuNXQUnS-DiYTe8-4.js → quadrantDiagram-AYHSOK5B-DnnzUQMW-ByDrDvpT.js} +4 -4
  39. package/dist/assets/{requirementDiagram-UZGBJVZJ-Ajt9-U96-CaUedp2k.js → requirementDiagram-UZGBJVZJ-BB9jagBx-4ABuhsu-.js} +1 -1
  40. package/dist/assets/{sankeyDiagram-TZEHDZUN-BNMEPupP-CoW39JHu.js → sankeyDiagram-TZEHDZUN-BttZx2-h-DZFrYF3L.js} +4 -4
  41. package/dist/assets/{sequenceDiagram-WL72ISMW-D2j881gi-CpM-9Ot5.js → sequenceDiagram-WL72ISMW-DA6yVs26-Cf4EYRDf.js} +1 -1
  42. package/dist/assets/{stateDiagram-FKZM4ZOC-D9G5SS9f-DyhUPTNH.js → stateDiagram-FKZM4ZOC-BD8xEcbc-DSZVswAk.js} +1 -1
  43. package/dist/assets/stateDiagram-v2-4FDKWEC3-DINzAoyF-Biyi4sW7.js +1 -0
  44. package/dist/assets/{timeline-definition-IT6M3QCI-B95452nE-BtUwy1tt.js → timeline-definition-IT6M3QCI-XN-D5T3b-CUWPxmpi.js} +1 -1
  45. package/dist/assets/{treemap-KMMF4GRG-Dfxm7cSf-Dp6bDrrM.js → treemap-KMMF4GRG-C4GHjB3F-HVe9FL0t.js} +18 -18
  46. package/dist/assets/{xychartDiagram-PRI3JC2R-CZX71UOJ-DZlx6d4_.js → xychartDiagram-PRI3JC2R-BL53__6J-Dk9M98Ob.js} +4 -4
  47. package/dist/index.html +1 -1
  48. package/package.json +2 -2
  49. package/dist/assets/arc-CZCQSTaI-C-VU_J9B.js +0 -1
  50. package/dist/assets/channel-DkFrLL9m-oLu-Ehez.js +0 -1
  51. package/dist/assets/chunk-55IACEB6-_r7qMy9s-Dy635JXO.js +0 -1
  52. package/dist/assets/chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js +0 -1
  53. package/dist/assets/classDiagram-2ON5EDUG-DnsiOvOV-O_0UXE1J.js +0 -1
  54. package/dist/assets/classDiagram-v2-WZHVMYZB-DnsiOvOV-O_0UXE1J.js +0 -1
  55. package/dist/assets/clone-DduvFCk3-BjQT37Sj.js +0 -1
  56. package/dist/assets/stateDiagram-v2-4FDKWEC3-D0cjqibA-Db7olDTG.js +0 -1
@@ -1,10 +1,10 @@
1
- import{y as ve,x as Re}from"./chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js";import{R as g,f as De,u as Pe,l as Be,s as Ne,c as Rt,e as jt,O as de,B as Me,C as je,i as wt,w as fe,A as Le,p as Ye,x as Jt,h as ue}from"./index-Dwfg9sR1.js";var Yt=function(){var e=g(function(z,_,x,b){for(x=x||{},b=z.length;b--;x[z[b]]=_);return x},"o"),t=[1,24],r=[1,25],h=[1,26],l=[1,27],a=[1,28],i=[1,63],s=[1,64],n=[1,65],d=[1,66],p=[1,67],u=[1,68],f=[1,69],E=[1,29],T=[1,30],v=[1,31],N=[1,32],X=[1,33],I=[1,34],H=[1,35],V=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],tt=[1,41],et=[1,42],at=[1,43],nt=[1,44],it=[1,45],st=[1,46],rt=[1,47],lt=[1,48],ot=[1,50],ct=[1,51],ht=[1,52],dt=[1,53],ut=[1,54],pt=[1,55],yt=[1,56],ft=[1,57],gt=[1,58],bt=[1,59],_t=[1,60],Ot=[14,42],zt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Tt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],A=[1,83],C=[1,84],O=[1,85],k=[12,14,42],re=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],Et=[12,33],Qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$t={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(z,_,x,b,w,o,P){var y=o.length-1;switch(w){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(o[y-3]);break;case 19:b.setTitle(o[y].substring(6)),this.$=o[y].substring(6);break;case 20:b.setAccDescription(o[y].substring(15)),this.$=o[y].substring(15);break;case 21:this.$=o[y].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=o[y].trim(),b.setAccDescription(this.$);break;case 28:o[y].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...o[y]),this.$=o[y];break;case 29:o[y].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...o[y]),this.$=o[y];break;case 30:b.addPersonOrSystemBoundary(...o[y]),this.$=o[y];break;case 31:o[y].splice(2,0,"CONTAINER"),b.addContainerBoundary(...o[y]),this.$=o[y];break;case 32:b.addDeploymentNode("node",...o[y]),this.$=o[y];break;case 33:b.addDeploymentNode("nodeL",...o[y]),this.$=o[y];break;case 34:b.addDeploymentNode("nodeR",...o[y]),this.$=o[y];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...o[y]),this.$=o[y];break;case 40:b.addPersonOrSystem("external_person",...o[y]),this.$=o[y];break;case 41:b.addPersonOrSystem("system",...o[y]),this.$=o[y];break;case 42:b.addPersonOrSystem("system_db",...o[y]),this.$=o[y];break;case 43:b.addPersonOrSystem("system_queue",...o[y]),this.$=o[y];break;case 44:b.addPersonOrSystem("external_system",...o[y]),this.$=o[y];break;case 45:b.addPersonOrSystem("external_system_db",...o[y]),this.$=o[y];break;case 46:b.addPersonOrSystem("external_system_queue",...o[y]),this.$=o[y];break;case 47:b.addContainer("container",...o[y]),this.$=o[y];break;case 48:b.addContainer("container_db",...o[y]),this.$=o[y];break;case 49:b.addContainer("container_queue",...o[y]),this.$=o[y];break;case 50:b.addContainer("external_container",...o[y]),this.$=o[y];break;case 51:b.addContainer("external_container_db",...o[y]),this.$=o[y];break;case 52:b.addContainer("external_container_queue",...o[y]),this.$=o[y];break;case 53:b.addComponent("component",...o[y]),this.$=o[y];break;case 54:b.addComponent("component_db",...o[y]),this.$=o[y];break;case 55:b.addComponent("component_queue",...o[y]),this.$=o[y];break;case 56:b.addComponent("external_component",...o[y]),this.$=o[y];break;case 57:b.addComponent("external_component_db",...o[y]),this.$=o[y];break;case 58:b.addComponent("external_component_queue",...o[y]),this.$=o[y];break;case 60:b.addRel("rel",...o[y]),this.$=o[y];break;case 61:b.addRel("birel",...o[y]),this.$=o[y];break;case 62:b.addRel("rel_u",...o[y]),this.$=o[y];break;case 63:b.addRel("rel_d",...o[y]),this.$=o[y];break;case 64:b.addRel("rel_l",...o[y]),this.$=o[y];break;case 65:b.addRel("rel_r",...o[y]),this.$=o[y];break;case 66:b.addRel("rel_b",...o[y]),this.$=o[y];break;case 67:o[y].splice(0,1),b.addRel("rel",...o[y]),this.$=o[y];break;case 68:b.updateElStyle("update_el_style",...o[y]),this.$=o[y];break;case 69:b.updateRelStyle("update_rel_style",...o[y]),this.$=o[y];break;case 70:b.updateLayoutConfig("update_layout_config",...o[y]),this.$=o[y];break;case 71:this.$=[o[y]];break;case 72:o[y].unshift(o[y-1]),this.$=o[y];break;case 73:case 75:this.$=o[y].trim();break;case 74:let St={};St[o[y-1].trim()]=o[y].trim(),this.$=St;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:70,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:71,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:72,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:73,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{14:[1,74]},e(Ot,[2,13],{43:23,29:49,30:61,32:62,20:75,34:i,36:s,37:n,38:d,39:p,40:u,41:f,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t}),e(Ot,[2,14]),e(zt,[2,16],{12:[1,76]}),e(Ot,[2,36],{12:[1,77]}),e(Tt,[2,19]),e(Tt,[2,20]),{25:[1,78]},{27:[1,79]},e(Tt,[2,23]),{35:80,75:81,76:S,77:A,79:C,80:O},{35:86,75:81,76:S,77:A,79:C,80:O},{35:87,75:81,76:S,77:A,79:C,80:O},{35:88,75:81,76:S,77:A,79:C,80:O},{35:89,75:81,76:S,77:A,79:C,80:O},{35:90,75:81,76:S,77:A,79:C,80:O},{35:91,75:81,76:S,77:A,79:C,80:O},{35:92,75:81,76:S,77:A,79:C,80:O},{35:93,75:81,76:S,77:A,79:C,80:O},{35:94,75:81,76:S,77:A,79:C,80:O},{35:95,75:81,76:S,77:A,79:C,80:O},{35:96,75:81,76:S,77:A,79:C,80:O},{35:97,75:81,76:S,77:A,79:C,80:O},{35:98,75:81,76:S,77:A,79:C,80:O},{35:99,75:81,76:S,77:A,79:C,80:O},{35:100,75:81,76:S,77:A,79:C,80:O},{35:101,75:81,76:S,77:A,79:C,80:O},{35:102,75:81,76:S,77:A,79:C,80:O},{35:103,75:81,76:S,77:A,79:C,80:O},{35:104,75:81,76:S,77:A,79:C,80:O},e(k,[2,59]),{35:105,75:81,76:S,77:A,79:C,80:O},{35:106,75:81,76:S,77:A,79:C,80:O},{35:107,75:81,76:S,77:A,79:C,80:O},{35:108,75:81,76:S,77:A,79:C,80:O},{35:109,75:81,76:S,77:A,79:C,80:O},{35:110,75:81,76:S,77:A,79:C,80:O},{35:111,75:81,76:S,77:A,79:C,80:O},{35:112,75:81,76:S,77:A,79:C,80:O},{35:113,75:81,76:S,77:A,79:C,80:O},{35:114,75:81,76:S,77:A,79:C,80:O},{35:115,75:81,76:S,77:A,79:C,80:O},{20:116,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:A,79:C,80:O},{35:120,75:81,76:S,77:A,79:C,80:O},{35:121,75:81,76:S,77:A,79:C,80:O},{35:122,75:81,76:S,77:A,79:C,80:O},{35:123,75:81,76:S,77:A,79:C,80:O},{35:124,75:81,76:S,77:A,79:C,80:O},{35:125,75:81,76:S,77:A,79:C,80:O},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ot,[2,15]),e(zt,[2,17],{21:22,19:130,22:t,23:r,24:h,26:l,28:a}),e(Ot,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:h,26:l,28:a,34:i,36:s,37:n,38:d,39:p,40:u,41:f,44:E,45:T,46:v,47:N,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t}),e(Tt,[2,21]),e(Tt,[2,22]),e(k,[2,39]),e(re,[2,71],{75:81,35:132,76:S,77:A,79:C,80:O}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(k,[2,40]),e(k,[2,41]),e(k,[2,42]),e(k,[2,43]),e(k,[2,44]),e(k,[2,45]),e(k,[2,46]),e(k,[2,47]),e(k,[2,48]),e(k,[2,49]),e(k,[2,50]),e(k,[2,51]),e(k,[2,52]),e(k,[2,53]),e(k,[2,54]),e(k,[2,55]),e(k,[2,56]),e(k,[2,57]),e(k,[2,58]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(k,[2,63]),e(k,[2,64]),e(k,[2,65]),e(k,[2,66]),e(k,[2,67]),e(k,[2,68]),e(k,[2,69]),e(k,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Et,[2,28]),e(Et,[2,29]),e(Et,[2,30]),e(Et,[2,31]),e(Et,[2,32]),e(Et,[2,33]),e(Et,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(zt,[2,18]),e(Ot,[2,38]),e(re,[2,72]),e(Pt,[2,74]),e(k,[2,24]),e(k,[2,35]),e(Qt,[2,25]),e(Qt,[2,26],{12:[1,138]}),e(Qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(z,_){if(_.recoverable)this.trace(z);else{var x=new Error(z);throw x.hash=_,x}},"parseError"),parse:g(function(z){var _=this,x=[0],b=[],w=[null],o=[],P=this.table,y="",St=0,le=0,Oe=2,oe=1,ke=o.slice.call(arguments,1),R=Object.create(this.lexer),At={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(At.yy[Wt]=this.yy[Wt]);R.setInput(z,At.yy),At.yy.lexer=R,At.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var qt=R.yylloc;o.push(qt);var we=R.options&&R.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(M){x.length=x.length-2*M,w.length=w.length-M,o.length=o.length-M}g(Te,"popStack");function ce(){var M;return M=b.pop()||R.lex()||oe,typeof M!="number"&&(M instanceof Array&&(b=M,M=b.pop()),M=_.symbols_[M]||M),M}g(ce,"lex");for(var B,Ct,j,Ht,kt={},Nt,W,he,Mt;;){if(Ct=x[x.length-1],this.defaultActions[Ct]?j=this.defaultActions[Ct]:((B===null||typeof B>"u")&&(B=ce()),j=P[Ct]&&P[Ct][B]),typeof j>"u"||!j.length||!j[0]){var Vt="";Mt=[];for(Nt in P[Ct])this.terminals_[Nt]&&Nt>Oe&&Mt.push("'"+this.terminals_[Nt]+"'");R.showPosition?Vt="Parse error on line "+(St+1)+`:
1
+ import{y as ve,x as Re}from"./chunk-TZMSLE5B-DGddLgNl-oFBh2Kwv.js";import{R as g,f as De,u as Pe,l as Ne,s as Be,g as Rt,e as jt,O as de,B as Me,N as je,h as wt,A as fe,i as Le,p as Ye,x as Jt,j as ue}from"./index-CyVB0J6E.js";var Yt=function(){var e=g(function(z,_,x,b){for(x=x||{},b=z.length;b--;x[z[b]]=_);return x},"o"),t=[1,24],r=[1,25],h=[1,26],l=[1,27],a=[1,28],i=[1,63],s=[1,64],n=[1,65],d=[1,66],p=[1,67],u=[1,68],f=[1,69],E=[1,29],T=[1,30],v=[1,31],B=[1,32],X=[1,33],I=[1,34],H=[1,35],V=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],tt=[1,41],et=[1,42],at=[1,43],nt=[1,44],it=[1,45],st=[1,46],rt=[1,47],lt=[1,48],ot=[1,50],ct=[1,51],ht=[1,52],dt=[1,53],ut=[1,54],pt=[1,55],yt=[1,56],ft=[1,57],gt=[1,58],bt=[1,59],_t=[1,60],Ot=[14,42],zt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Tt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],A=[1,83],C=[1,84],O=[1,85],k=[12,14,42],re=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],Et=[12,33],Qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$t={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(z,_,x,b,w,o,P){var y=o.length-1;switch(w){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(o[y-3]);break;case 19:b.setTitle(o[y].substring(6)),this.$=o[y].substring(6);break;case 20:b.setAccDescription(o[y].substring(15)),this.$=o[y].substring(15);break;case 21:this.$=o[y].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=o[y].trim(),b.setAccDescription(this.$);break;case 28:o[y].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...o[y]),this.$=o[y];break;case 29:o[y].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...o[y]),this.$=o[y];break;case 30:b.addPersonOrSystemBoundary(...o[y]),this.$=o[y];break;case 31:o[y].splice(2,0,"CONTAINER"),b.addContainerBoundary(...o[y]),this.$=o[y];break;case 32:b.addDeploymentNode("node",...o[y]),this.$=o[y];break;case 33:b.addDeploymentNode("nodeL",...o[y]),this.$=o[y];break;case 34:b.addDeploymentNode("nodeR",...o[y]),this.$=o[y];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...o[y]),this.$=o[y];break;case 40:b.addPersonOrSystem("external_person",...o[y]),this.$=o[y];break;case 41:b.addPersonOrSystem("system",...o[y]),this.$=o[y];break;case 42:b.addPersonOrSystem("system_db",...o[y]),this.$=o[y];break;case 43:b.addPersonOrSystem("system_queue",...o[y]),this.$=o[y];break;case 44:b.addPersonOrSystem("external_system",...o[y]),this.$=o[y];break;case 45:b.addPersonOrSystem("external_system_db",...o[y]),this.$=o[y];break;case 46:b.addPersonOrSystem("external_system_queue",...o[y]),this.$=o[y];break;case 47:b.addContainer("container",...o[y]),this.$=o[y];break;case 48:b.addContainer("container_db",...o[y]),this.$=o[y];break;case 49:b.addContainer("container_queue",...o[y]),this.$=o[y];break;case 50:b.addContainer("external_container",...o[y]),this.$=o[y];break;case 51:b.addContainer("external_container_db",...o[y]),this.$=o[y];break;case 52:b.addContainer("external_container_queue",...o[y]),this.$=o[y];break;case 53:b.addComponent("component",...o[y]),this.$=o[y];break;case 54:b.addComponent("component_db",...o[y]),this.$=o[y];break;case 55:b.addComponent("component_queue",...o[y]),this.$=o[y];break;case 56:b.addComponent("external_component",...o[y]),this.$=o[y];break;case 57:b.addComponent("external_component_db",...o[y]),this.$=o[y];break;case 58:b.addComponent("external_component_queue",...o[y]),this.$=o[y];break;case 60:b.addRel("rel",...o[y]),this.$=o[y];break;case 61:b.addRel("birel",...o[y]),this.$=o[y];break;case 62:b.addRel("rel_u",...o[y]),this.$=o[y];break;case 63:b.addRel("rel_d",...o[y]),this.$=o[y];break;case 64:b.addRel("rel_l",...o[y]),this.$=o[y];break;case 65:b.addRel("rel_r",...o[y]),this.$=o[y];break;case 66:b.addRel("rel_b",...o[y]),this.$=o[y];break;case 67:o[y].splice(0,1),b.addRel("rel",...o[y]),this.$=o[y];break;case 68:b.updateElStyle("update_el_style",...o[y]),this.$=o[y];break;case 69:b.updateRelStyle("update_rel_style",...o[y]),this.$=o[y];break;case 70:b.updateLayoutConfig("update_layout_config",...o[y]),this.$=o[y];break;case 71:this.$=[o[y]];break;case 72:o[y].unshift(o[y-1]),this.$=o[y];break;case 73:case 75:this.$=o[y].trim();break;case 74:let St={};St[o[y-1].trim()]=o[y].trim(),this.$=St;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:70,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:71,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:72,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{13:73,19:20,20:21,21:22,22:t,23:r,24:h,26:l,28:a,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{14:[1,74]},e(Ot,[2,13],{43:23,29:49,30:61,32:62,20:75,34:i,36:s,37:n,38:d,39:p,40:u,41:f,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t}),e(Ot,[2,14]),e(zt,[2,16],{12:[1,76]}),e(Ot,[2,36],{12:[1,77]}),e(Tt,[2,19]),e(Tt,[2,20]),{25:[1,78]},{27:[1,79]},e(Tt,[2,23]),{35:80,75:81,76:S,77:A,79:C,80:O},{35:86,75:81,76:S,77:A,79:C,80:O},{35:87,75:81,76:S,77:A,79:C,80:O},{35:88,75:81,76:S,77:A,79:C,80:O},{35:89,75:81,76:S,77:A,79:C,80:O},{35:90,75:81,76:S,77:A,79:C,80:O},{35:91,75:81,76:S,77:A,79:C,80:O},{35:92,75:81,76:S,77:A,79:C,80:O},{35:93,75:81,76:S,77:A,79:C,80:O},{35:94,75:81,76:S,77:A,79:C,80:O},{35:95,75:81,76:S,77:A,79:C,80:O},{35:96,75:81,76:S,77:A,79:C,80:O},{35:97,75:81,76:S,77:A,79:C,80:O},{35:98,75:81,76:S,77:A,79:C,80:O},{35:99,75:81,76:S,77:A,79:C,80:O},{35:100,75:81,76:S,77:A,79:C,80:O},{35:101,75:81,76:S,77:A,79:C,80:O},{35:102,75:81,76:S,77:A,79:C,80:O},{35:103,75:81,76:S,77:A,79:C,80:O},{35:104,75:81,76:S,77:A,79:C,80:O},e(k,[2,59]),{35:105,75:81,76:S,77:A,79:C,80:O},{35:106,75:81,76:S,77:A,79:C,80:O},{35:107,75:81,76:S,77:A,79:C,80:O},{35:108,75:81,76:S,77:A,79:C,80:O},{35:109,75:81,76:S,77:A,79:C,80:O},{35:110,75:81,76:S,77:A,79:C,80:O},{35:111,75:81,76:S,77:A,79:C,80:O},{35:112,75:81,76:S,77:A,79:C,80:O},{35:113,75:81,76:S,77:A,79:C,80:O},{35:114,75:81,76:S,77:A,79:C,80:O},{35:115,75:81,76:S,77:A,79:C,80:O},{20:116,29:49,30:61,32:62,34:i,36:s,37:n,38:d,39:p,40:u,41:f,43:23,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:A,79:C,80:O},{35:120,75:81,76:S,77:A,79:C,80:O},{35:121,75:81,76:S,77:A,79:C,80:O},{35:122,75:81,76:S,77:A,79:C,80:O},{35:123,75:81,76:S,77:A,79:C,80:O},{35:124,75:81,76:S,77:A,79:C,80:O},{35:125,75:81,76:S,77:A,79:C,80:O},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ot,[2,15]),e(zt,[2,17],{21:22,19:130,22:t,23:r,24:h,26:l,28:a}),e(Ot,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:h,26:l,28:a,34:i,36:s,37:n,38:d,39:p,40:u,41:f,44:E,45:T,46:v,47:B,48:X,49:I,50:H,51:V,52:G,53:K,54:J,55:Z,56:tt,57:et,58:at,59:nt,60:it,61:st,62:rt,63:lt,64:ot,65:ct,66:ht,67:dt,68:ut,69:pt,70:yt,71:ft,72:gt,73:bt,74:_t}),e(Tt,[2,21]),e(Tt,[2,22]),e(k,[2,39]),e(re,[2,71],{75:81,35:132,76:S,77:A,79:C,80:O}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(k,[2,40]),e(k,[2,41]),e(k,[2,42]),e(k,[2,43]),e(k,[2,44]),e(k,[2,45]),e(k,[2,46]),e(k,[2,47]),e(k,[2,48]),e(k,[2,49]),e(k,[2,50]),e(k,[2,51]),e(k,[2,52]),e(k,[2,53]),e(k,[2,54]),e(k,[2,55]),e(k,[2,56]),e(k,[2,57]),e(k,[2,58]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(k,[2,63]),e(k,[2,64]),e(k,[2,65]),e(k,[2,66]),e(k,[2,67]),e(k,[2,68]),e(k,[2,69]),e(k,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Et,[2,28]),e(Et,[2,29]),e(Et,[2,30]),e(Et,[2,31]),e(Et,[2,32]),e(Et,[2,33]),e(Et,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(zt,[2,18]),e(Ot,[2,38]),e(re,[2,72]),e(Pt,[2,74]),e(k,[2,24]),e(k,[2,35]),e(Qt,[2,25]),e(Qt,[2,26],{12:[1,138]}),e(Qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(z,_){if(_.recoverable)this.trace(z);else{var x=new Error(z);throw x.hash=_,x}},"parseError"),parse:g(function(z){var _=this,x=[0],b=[],w=[null],o=[],P=this.table,y="",St=0,le=0,Oe=2,oe=1,ke=o.slice.call(arguments,1),R=Object.create(this.lexer),At={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(At.yy[Wt]=this.yy[Wt]);R.setInput(z,At.yy),At.yy.lexer=R,At.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var qt=R.yylloc;o.push(qt);var we=R.options&&R.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(M){x.length=x.length-2*M,w.length=w.length-M,o.length=o.length-M}g(Te,"popStack");function ce(){var M;return M=b.pop()||R.lex()||oe,typeof M!="number"&&(M instanceof Array&&(b=M,M=b.pop()),M=_.symbols_[M]||M),M}g(ce,"lex");for(var N,Ct,j,Ht,kt={},Bt,W,he,Mt;;){if(Ct=x[x.length-1],this.defaultActions[Ct]?j=this.defaultActions[Ct]:((N===null||typeof N>"u")&&(N=ce()),j=P[Ct]&&P[Ct][N]),typeof j>"u"||!j.length||!j[0]){var Vt="";Mt=[];for(Bt in P[Ct])this.terminals_[Bt]&&Bt>Oe&&Mt.push("'"+this.terminals_[Bt]+"'");R.showPosition?Vt="Parse error on line "+(St+1)+`:
2
2
  `+R.showPosition()+`
3
- Expecting `+Mt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Vt="Parse error on line "+(St+1)+": Unexpected "+(B==oe?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Vt,{text:R.match,token:this.terminals_[B]||B,line:R.yylineno,loc:qt,expected:Mt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+B);switch(j[0]){case 1:x.push(B),w.push(R.yytext),o.push(R.yylloc),x.push(j[1]),B=null,le=R.yyleng,y=R.yytext,St=R.yylineno,qt=R.yylloc;break;case 2:if(W=this.productions_[j[1]][1],kt.$=w[w.length-W],kt._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},we&&(kt._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),Ht=this.performAction.apply(kt,[y,le,St,At.yy,j[1],w,o].concat(ke)),typeof Ht<"u")return Ht;W&&(x=x.slice(0,-1*W*2),w=w.slice(0,-1*W),o=o.slice(0,-1*W)),x.push(this.productions_[j[1]][0]),w.push(kt.$),o.push(kt._$),he=P[x[x.length-2]][x[x.length-1]],x.push(he);break;case 3:return!0}}return!0},"parse")},Ce=function(){var z={EOF:1,parseError:g(function(_,x){if(this.yy.parser)this.yy.parser.parseError(_,x);else throw new Error(_)},"parseError"),setInput:g(function(_,x){return this.yy=x||this.yy||{},this._input=_,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 _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:g(function(_){var x=_.length,b=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var w=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),b.length-1&&(this.yylineno-=b.length-1);var o=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:b?(b.length===w.length?this.yylloc.first_column:0)+w[w.length-b.length].length-b[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-x]),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).
3
+ Expecting `+Mt.join(", ")+", got '"+(this.terminals_[N]||N)+"'":Vt="Parse error on line "+(St+1)+": Unexpected "+(N==oe?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(Vt,{text:R.match,token:this.terminals_[N]||N,line:R.yylineno,loc:qt,expected:Mt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+N);switch(j[0]){case 1:x.push(N),w.push(R.yytext),o.push(R.yylloc),x.push(j[1]),N=null,le=R.yyleng,y=R.yytext,St=R.yylineno,qt=R.yylloc;break;case 2:if(W=this.productions_[j[1]][1],kt.$=w[w.length-W],kt._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},we&&(kt._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),Ht=this.performAction.apply(kt,[y,le,St,At.yy,j[1],w,o].concat(ke)),typeof Ht<"u")return Ht;W&&(x=x.slice(0,-1*W*2),w=w.slice(0,-1*W),o=o.slice(0,-1*W)),x.push(this.productions_[j[1]][0]),w.push(kt.$),o.push(kt._$),he=P[x[x.length-2]][x[x.length-1]],x.push(he);break;case 3:return!0}}return!0},"parse")},Ce=function(){var z={EOF:1,parseError:g(function(_,x){if(this.yy.parser)this.yy.parser.parseError(_,x);else throw new Error(_)},"parseError"),setInput:g(function(_,x){return this.yy=x||this.yy||{},this._input=_,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 _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:g(function(_){var x=_.length,b=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var w=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),b.length-1&&(this.yylineno-=b.length-1);var o=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:b?(b.length===w.length?this.yylloc.first_column:0)+w[w.length-b.length].length-b[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-x]),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(_){this.unput(this.match.slice(_))},"less"),pastInput:g(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
5
5
  `+x+"^"},"showPosition"),test_match:g(function(_,x){var b,w,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),w=_[0].match(/(?:\r\n?|\n).*/g),w&&(this.yylineno+=w.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:w?w[w.length-1].length-w[w.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],b=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var P in o)this[P]=o[P];return!1}return!1},"test_match"),next:g(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,b,w;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),P=0;P<o.length;P++)if(b=this._input.match(this.rules[o[P]]),b&&(!x||b[0].length>x[0].length)){if(x=b,w=P,this.options.backtrack_lexer){if(_=this.test_match(b,o[P]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,o[w]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:g(function(){var _=this.next();return _||this.lex()},"lex"),begin:g(function(_){this.conditionStack.push(_)},"begin"),popState:g(function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:g(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:g(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:g(function(_){this.begin(_)},"pushState"),stateStackSize:g(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:g(function(_,x,b,w){switch(b){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return z}();$t.lexer=Ce;function Bt(){this.yy={}}return g(Bt,"Parser"),Bt.prototype=$t,$t.Parser=Bt,new Bt}();Yt.parser=Yt;var Ie=Yt,F=[],mt=[""],D="global",U="",$=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Dt=[],ae="",ne=!1,It=4,Ut=2,ge,Ue=g(function(){return ge},"getC4Type"),Fe=g(function(e){ge=fe(e,Rt())},"setC4Type"),Xe=g(function(e,t,r,h,l,a,i,s,n){if(e==null||t===void 0||t===null||r===void 0||r===null||h===void 0||h===null)return;let d={};const p=Dt.find(u=>u.from===t&&u.to===r);if(p?d=p:Dt.push(d),d.type=e,d.from=t,d.to=r,d.label={text:h},l==null)d.techn={text:""};else if(typeof l=="object"){let[u,f]=Object.entries(l)[0];d[u]={text:f}}else d.techn={text:l};if(a==null)d.descr={text:""};else if(typeof a=="object"){let[u,f]=Object.entries(a)[0];d[u]={text:f}}else d.descr={text:a};if(typeof i=="object"){let[u,f]=Object.entries(i)[0];d[u]=f}else d.sprite=i;if(typeof s=="object"){let[u,f]=Object.entries(s)[0];d[u]=f}else d.tags=s;if(typeof n=="object"){let[u,f]=Object.entries(n)[0];d[u]=f}else d.link=n;d.wrap=xt()},"addRel"),ze=g(function(e,t,r,h,l,a,i){if(t===null||r===null)return;let s={};const n=F.find(d=>d.alias===t);if(n&&t===n.alias?s=n:(s.alias=t,F.push(s)),r==null?s.label={text:""}:s.label={text:r},h==null)s.descr={text:""};else if(typeof h=="object"){let[d,p]=Object.entries(h)[0];s[d]={text:p}}else s.descr={text:h};if(typeof l=="object"){let[d,p]=Object.entries(l)[0];s[d]=p}else s.sprite=l;if(typeof a=="object"){let[d,p]=Object.entries(a)[0];s[d]=p}else s.tags=a;if(typeof i=="object"){let[d,p]=Object.entries(i)[0];s[d]=p}else s.link=i;s.typeC4Shape={text:e},s.parentBoundary=D,s.wrap=xt()},"addPersonOrSystem"),Qe=g(function(e,t,r,h,l,a,i,s){if(t===null||r===null)return;let n={};const d=F.find(p=>p.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,F.push(n)),r==null?n.label={text:""}:n.label={text:r},h==null)n.techn={text:""};else if(typeof h=="object"){let[p,u]=Object.entries(h)[0];n[p]={text:u}}else n.techn={text:h};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[p,u]=Object.entries(l)[0];n[p]={text:u}}else n.descr={text:l};if(typeof a=="object"){let[p,u]=Object.entries(a)[0];n[p]=u}else n.sprite=a;if(typeof i=="object"){let[p,u]=Object.entries(i)[0];n[p]=u}else n.tags=i;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];n[p]=u}else n.link=s;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=D},"addContainer"),$e=g(function(e,t,r,h,l,a,i,s){if(t===null||r===null)return;let n={};const d=F.find(p=>p.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,F.push(n)),r==null?n.label={text:""}:n.label={text:r},h==null)n.techn={text:""};else if(typeof h=="object"){let[p,u]=Object.entries(h)[0];n[p]={text:u}}else n.techn={text:h};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[p,u]=Object.entries(l)[0];n[p]={text:u}}else n.descr={text:l};if(typeof a=="object"){let[p,u]=Object.entries(a)[0];n[p]=u}else n.sprite=a;if(typeof i=="object"){let[p,u]=Object.entries(i)[0];n[p]=u}else n.tags=i;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];n[p]=u}else n.link=s;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=D},"addComponent"),We=g(function(e,t,r,h,l){if(e===null||t===null)return;let a={};const i=$.find(s=>s.alias===e);if(i&&e===i.alias?a=i:(a.alias=e,$.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"system"};else if(typeof r=="object"){let[s,n]=Object.entries(r)[0];a[s]={text:n}}else a.type={text:r};if(typeof h=="object"){let[s,n]=Object.entries(h)[0];a[s]=n}else a.tags=h;if(typeof l=="object"){let[s,n]=Object.entries(l)[0];a[s]=n}else a.link=l;a.parentBoundary=D,a.wrap=xt(),U=D,D=e,mt.push(U)},"addPersonOrSystemBoundary"),qe=g(function(e,t,r,h,l){if(e===null||t===null)return;let a={};const i=$.find(s=>s.alias===e);if(i&&e===i.alias?a=i:(a.alias=e,$.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"container"};else if(typeof r=="object"){let[s,n]=Object.entries(r)[0];a[s]={text:n}}else a.type={text:r};if(typeof h=="object"){let[s,n]=Object.entries(h)[0];a[s]=n}else a.tags=h;if(typeof l=="object"){let[s,n]=Object.entries(l)[0];a[s]=n}else a.link=l;a.parentBoundary=D,a.wrap=xt(),U=D,D=e,mt.push(U)},"addContainerBoundary"),He=g(function(e,t,r,h,l,a,i,s){if(t===null||r===null)return;let n={};const d=$.find(p=>p.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,$.push(n)),r==null?n.label={text:""}:n.label={text:r},h==null)n.type={text:"node"};else if(typeof h=="object"){let[p,u]=Object.entries(h)[0];n[p]={text:u}}else n.type={text:h};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[p,u]=Object.entries(l)[0];n[p]={text:u}}else n.descr={text:l};if(typeof i=="object"){let[p,u]=Object.entries(i)[0];n[p]=u}else n.tags=i;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];n[p]=u}else n.link=s;n.nodeType=e,n.parentBoundary=D,n.wrap=xt(),U=D,D=t,mt.push(U)},"addDeploymentNode"),Ve=g(function(){D=U,mt.pop(),U=mt.pop(),mt.push(U)},"popBoundaryParseStack"),Ge=g(function(e,t,r,h,l,a,i,s,n,d,p){let u=F.find(f=>f.alias===t);if(!(u===void 0&&(u=$.find(f=>f.alias===t),u===void 0))){if(r!=null)if(typeof r=="object"){let[f,E]=Object.entries(r)[0];u[f]=E}else u.bgColor=r;if(h!=null)if(typeof h=="object"){let[f,E]=Object.entries(h)[0];u[f]=E}else u.fontColor=h;if(l!=null)if(typeof l=="object"){let[f,E]=Object.entries(l)[0];u[f]=E}else u.borderColor=l;if(a!=null)if(typeof a=="object"){let[f,E]=Object.entries(a)[0];u[f]=E}else u.shadowing=a;if(i!=null)if(typeof i=="object"){let[f,E]=Object.entries(i)[0];u[f]=E}else u.shape=i;if(s!=null)if(typeof s=="object"){let[f,E]=Object.entries(s)[0];u[f]=E}else u.sprite=s;if(n!=null)if(typeof n=="object"){let[f,E]=Object.entries(n)[0];u[f]=E}else u.techn=n;if(d!=null)if(typeof d=="object"){let[f,E]=Object.entries(d)[0];u[f]=E}else u.legendText=d;if(p!=null)if(typeof p=="object"){let[f,E]=Object.entries(p)[0];u[f]=E}else u.legendSprite=p}},"updateElStyle"),Ke=g(function(e,t,r,h,l,a,i){const s=Dt.find(n=>n.from===t&&n.to===r);if(s!==void 0){if(h!=null)if(typeof h=="object"){let[n,d]=Object.entries(h)[0];s[n]=d}else s.textColor=h;if(l!=null)if(typeof l=="object"){let[n,d]=Object.entries(l)[0];s[n]=d}else s.lineColor=l;if(a!=null)if(typeof a=="object"){let[n,d]=Object.entries(a)[0];s[n]=parseInt(d)}else s.offsetX=parseInt(a);if(i!=null)if(typeof i=="object"){let[n,d]=Object.entries(i)[0];s[n]=parseInt(d)}else s.offsetY=parseInt(i)}},"updateRelStyle"),Je=g(function(e,t,r){let h=It,l=Ut;if(typeof t=="object"){const a=Object.values(t)[0];h=parseInt(a)}else h=parseInt(t);if(typeof r=="object"){const a=Object.values(r)[0];l=parseInt(a)}else l=parseInt(r);h>=1&&(It=h),l>=1&&(Ut=l)},"updateLayoutConfig"),Ze=g(function(){return It},"getC4ShapeInRow"),t0=g(function(){return Ut},"getC4BoundaryInRow"),e0=g(function(){return D},"getCurrentBoundaryParse"),a0=g(function(){return U},"getParentBoundaryParse"),be=g(function(e){return e==null?F:F.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),n0=g(function(e){return F.find(t=>t.alias===e)},"getC4Shape"),i0=g(function(e){return Object.keys(be(e))},"getC4ShapeKeys"),_e=g(function(e){return e==null?$:$.filter(t=>t.parentBoundary===e)},"getBoundaries"),s0=_e,r0=g(function(){return Dt},"getRels"),l0=g(function(){return ae},"getTitle"),o0=g(function(e){ne=e},"setWrap"),xt=g(function(){return ne},"autoWrap"),c0=g(function(){F=[],$=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],U="",D="global",mt=[""],Dt=[],mt=[""],ae="",ne=!1,It=4,Ut=2},"clear"),h0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},d0={FILLED:0,OPEN:1},u0={LEFTOF:0,RIGHTOF:1,OVER:2},p0=g(function(e){ae=fe(e,Rt())},"setTitle"),Zt={addPersonOrSystem:ze,addPersonOrSystemBoundary:We,addContainer:Qe,addContainerBoundary:qe,addComponent:$e,addDeploymentNode:He,popBoundaryParseStack:Ve,addRel:Xe,updateElStyle:Ge,updateRelStyle:Ke,updateLayoutConfig:Je,autoWrap:xt,setWrap:o0,getC4ShapeArray:be,getC4Shape:n0,getC4ShapeKeys:i0,getBoundaries:_e,getBoundarys:s0,getCurrentBoundaryParse:e0,getParentBoundaryParse:a0,getRels:r0,getTitle:l0,getC4Type:Ue,getC4ShapeInRow:Ze,getC4BoundaryInRow:t0,setAccTitle:Ne,getAccTitle:Be,getAccDescription:Pe,setAccDescription:De,getConfig:g(()=>Rt().c4,"getConfig"),clear:c0,LINETYPE:h0,ARROWTYPE:d0,PLACEMENT:u0,setTitle:p0,setC4Type:Fe},ie=g(function(e,t){return Re(e,t)},"drawRect"),me=g(function(e,t,r,h,l,a){const i=e.append("image");i.attr("width",t),i.attr("height",r),i.attr("x",h),i.attr("y",l);let s=a.startsWith("data:image/png;base64")?a:Le.sanitizeUrl(a);i.attr("xlink:href",s)},"drawImage"),y0=g((e,t,r)=>{const h=e.append("g");let l=0;for(let a of t){let i=a.textColor?a.textColor:"#444444",s=a.lineColor?a.lineColor:"#444444",n=a.offsetX?parseInt(a.offsetX):0,d=a.offsetY?parseInt(a.offsetY):0,p="";if(l===0){let f=h.append("line");f.attr("x1",a.startPoint.x),f.attr("y1",a.startPoint.y),f.attr("x2",a.endPoint.x),f.attr("y2",a.endPoint.y),f.attr("stroke-width","1"),f.attr("stroke",s),f.style("fill","none"),a.type!=="rel_b"&&f.attr("marker-end","url("+p+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&f.attr("marker-start","url("+p+"#arrowend)"),l=-1}else{let f=h.append("path");f.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&f.attr("marker-end","url("+p+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&f.attr("marker-start","url("+p+"#arrowend)")}let u=r.messageFont();q(r)(a.label.text,h,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+n,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+d,a.label.width,a.label.height,{fill:i},u),a.techn&&a.techn.text!==""&&(u=r.messageFont(),q(r)("["+a.techn.text+"]",h,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+n,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+r.messageFontSize+5+d,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:i,"font-style":"italic"},u))}},"drawRels"),f0=g(function(e,t,r){const h=e.append("g");let l=t.bgColor?t.bgColor:"none",a=t.borderColor?t.borderColor:"#444444",i=t.fontColor?t.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(s={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s};ie(h,n);let d=r.boundaryFont();d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=i,q(r)(t.label.text,h,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},d),t.type&&t.type.text!==""&&(d=r.boundaryFont(),d.fontColor=i,q(r)(t.type.text,h,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},d)),t.descr&&t.descr.text!==""&&(d=r.boundaryFont(),d.fontSize=d.fontSize-2,d.fontColor=i,q(r)(t.descr.text,h,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},d))},"drawBoundary"),g0=g(function(e,t,r){var h;let l=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],a=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],i=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const d=ve();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":d.x=t.x,d.y=t.y,d.fill=l,d.width=t.width,d.height=t.height,d.stroke=a,d.rx=2.5,d.ry=2.5,d.attrs={"stroke-width":.5},ie(n,d);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let p=O0(r,t.typeC4Shape.text);switch(n.append("text").attr("fill",i).attr("font-family",p.fontFamily).attr("font-size",p.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":me(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,s);break}let u=r[t.typeC4Shape.text+"Font"]();return u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=i,q(r)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:i},u),u=r[t.typeC4Shape.text+"Font"](),u.fontColor=i,t.techn&&((h=t.techn)==null?void 0:h.text)!==""?q(r)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:i,"font-style":"italic"},u):t.type&&t.type.text!==""&&q(r)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:i,"font-style":"italic"},u),t.descr&&t.descr.text!==""&&(u=r.personFont(),u.fontColor=i,q(r)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:i},u)),t.height},"drawC4Shape"),b0=g(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),_0=g(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),m0=g(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),x0=g(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),E0=g(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),S0=g(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),A0=g(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),C0=g(function(e){const t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),O0=g((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),q=function(){function e(l,a,i,s,n,d,p){const u=a.append("text").attr("x",i+n/2).attr("y",s+d/2+5).style("text-anchor","middle").text(l);h(u,p)}g(e,"byText");function t(l,a,i,s,n,d,p,u){const{fontSize:f,fontFamily:E,fontWeight:T}=u,v=l.split(Jt.lineBreakRegex);for(let N=0;N<v.length;N++){const X=N*f-f*(v.length-1)/2,I=a.append("text").attr("x",i+n/2).attr("y",s).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",f).style("font-weight",T).style("font-family",E);I.append("tspan").attr("dy",X).text(v[N]).attr("alignment-baseline","mathematical"),h(I,p)}}g(t,"byTspan");function r(l,a,i,s,n,d,p,u){const f=a.append("switch"),E=f.append("foreignObject").attr("x",i).attr("y",s).attr("width",n).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");E.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,f,i,s,n,d,p,u),h(E,p)}g(r,"byFo");function h(l,a){for(const i in a)a.hasOwnProperty(i)&&l.attr(i,a[i])}return g(h,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?r:l.textPlacement==="old"?e:t}}(),Q={drawRect:ie,drawBoundary:f0,drawC4Shape:g0,drawRels:y0,drawImage:me,insertArrowHead:x0,insertArrowEnd:E0,insertArrowFilledHead:S0,insertDynamicNumber:A0,insertArrowCrossHead:C0,insertDatabaseIcon:b0,insertComputerIcon:_0,insertClockIcon:m0},Ft=0,Xt=0,xe=4,te=2;Yt.yy=Zt;var m={},Gt,Ee=(Gt=class{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,ee(e.db.getConfig())}setData(e,t,r,h){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=r,this.nextData.stopy=this.data.stopy=h}updateVal(e,t,r,h){e[t]===void 0?e[t]=r:e[t]=h(r,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+e.margin*2,r=t+e.width,h=this.nextData.starty+e.margin*2,l=h+e.height;(t>=this.data.widthLimit||r>=this.data.widthLimit||this.nextData.cnt>xe)&&(t=this.nextData.startx+e.margin+m.nextLinePaddingX,h=this.nextData.stopy+e.margin*2,this.nextData.stopx=r=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=l=h+e.height,this.nextData.cnt=1),e.x=t,e.y=h,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",h,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",l,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",h,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",l,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ee(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},g(Gt,"Bounds"),Gt),ee=g(function(e){je(m,e),e.fontFamily&&(m.personFontFamily=m.systemFontFamily=m.messageFontFamily=e.fontFamily),e.fontSize&&(m.personFontSize=m.systemFontSize=m.messageFontSize=e.fontSize),e.fontWeight&&(m.personFontWeight=m.systemFontWeight=m.messageFontWeight=e.fontWeight)},"setConf"),vt=g((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Lt=g(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),k0=g(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Y(e,t,r,h,l){if(!t[e].width)if(r)t[e].text=Ye(t[e].text,l,h),t[e].textLines=t[e].text.split(Jt.lineBreakRegex).length,t[e].width=l,t[e].height=ue(t[e].text,h);else{let a=t[e].text.split(Jt.lineBreakRegex);t[e].textLines=a.length;let i=0;t[e].height=0,t[e].width=0;for(const s of a)t[e].width=Math.max(wt(s,h),t[e].width),i=ue(s,h),t[e].height=t[e].height+i}}g(Y,"calcC4ShapeTextWH");var Se=g(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=m.c4ShapeMargin-35;let h=t.wrap&&m.wrap,l=Lt(m);l.fontSize=l.fontSize+2,l.fontWeight="bold";let a=wt(t.label.text,l);Y("label",t,h,l,a),Q.drawBoundary(e,t,m)},"drawBoundary"),Ae=g(function(e,t,r,h){let l=0;for(const a of h){l=0;const i=r[a];let s=vt(m,i.typeC4Shape.text);switch(s.fontSize=s.fontSize-2,i.typeC4Shape.width=wt("«"+i.typeC4Shape.text+"»",s),i.typeC4Shape.height=s.fontSize+2,i.typeC4Shape.Y=m.c4ShapePadding,l=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=l,l=i.image.Y+i.image.height;break}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=l,l=i.image.Y+i.image.height);let n=i.wrap&&m.wrap,d=m.width-m.c4ShapePadding*2,p=vt(m,i.typeC4Shape.text);if(p.fontSize=p.fontSize+2,p.fontWeight="bold",Y("label",i,n,p,d),i.label.Y=l+8,l=i.label.Y+i.label.height,i.type&&i.type.text!==""){i.type.text="["+i.type.text+"]";let E=vt(m,i.typeC4Shape.text);Y("type",i,n,E,d),i.type.Y=l+5,l=i.type.Y+i.type.height}else if(i.techn&&i.techn.text!==""){i.techn.text="["+i.techn.text+"]";let E=vt(m,i.techn.text);Y("techn",i,n,E,d),i.techn.Y=l+5,l=i.techn.Y+i.techn.height}let u=l,f=i.label.width;if(i.descr&&i.descr.text!==""){let E=vt(m,i.typeC4Shape.text);Y("descr",i,n,E,d),i.descr.Y=l+20,l=i.descr.Y+i.descr.height,f=Math.max(i.label.width,i.descr.width),u=l-i.descr.textLines*5}f=f+m.c4ShapePadding,i.width=Math.max(i.width||m.width,f,m.width),i.height=Math.max(i.height||m.height,u,m.height),i.margin=i.margin||m.c4ShapeMargin,e.insert(i),Q.drawC4Shape(t,i,m)}e.bumpLastMargin(m.c4ShapeMargin)},"drawC4ShapeArray"),Kt,L=(Kt=class{constructor(e,t){this.x=e,this.y=t}},g(Kt,"Point"),Kt),pe=g(function(e,t){let r=e.x,h=e.y,l=t.x,a=t.y,i=r+e.width/2,s=h+e.height/2,n=Math.abs(r-l),d=Math.abs(h-a),p=d/n,u=e.height/e.width,f=null;return h==a&&r<l?f=new L(r+e.width,s):h==a&&r>l?f=new L(r,s):r==l&&h<a?f=new L(i,h+e.height):r==l&&h>a&&(f=new L(i,h)),r>l&&h<a?u>=p?f=new L(r,s+p*e.width/2):f=new L(i-n/d*e.height/2,h+e.height):r<l&&h<a?u>=p?f=new L(r+e.width,s+p*e.width/2):f=new L(i+n/d*e.height/2,h+e.height):r<l&&h>a?u>=p?f=new L(r+e.width,s-p*e.width/2):f=new L(i+e.height/2*n/d,h):r>l&&h>a&&(u>=p?f=new L(r,s-e.width/2*p):f=new L(i-e.height/2*n/d,h)),f},"getIntersectPoint"),w0=g(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let h=pe(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let l=pe(t,r);return{startPoint:h,endPoint:l}},"getIntersectPoints"),T0=g(function(e,t,r,h){let l=0;for(let a of t){l=l+1;let i=a.wrap&&m.wrap,s=k0(m);h.db.getC4Type()==="C4Dynamic"&&(a.label.text=l+": "+a.label.text);let n=wt(a.label.text,s);Y("label",a,i,s,n),a.techn&&a.techn.text!==""&&(n=wt(a.techn.text,s),Y("techn",a,i,s,n)),a.descr&&a.descr.text!==""&&(n=wt(a.descr.text,s),Y("descr",a,i,s,n));let d=r(a.from),p=r(a.to),u=w0(d,p);a.startPoint=u.startPoint,a.endPoint=u.endPoint}Q.drawRels(e,t,m)},"drawRels");function se(e,t,r,h,l){let a=new Ee(l);a.data.widthLimit=r.data.widthLimit/Math.min(te,h.length);for(let[i,s]of h.entries()){let n=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=n,n=s.image.Y+s.image.height);let d=s.wrap&&m.wrap,p=Lt(m);if(p.fontSize=p.fontSize+2,p.fontWeight="bold",Y("label",s,d,p,a.data.widthLimit),s.label.Y=n+8,n=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let T=Lt(m);Y("type",s,d,T,a.data.widthLimit),s.type.Y=n+5,n=s.type.Y+s.type.height}if(s.descr&&s.descr.text!==""){let T=Lt(m);T.fontSize=T.fontSize-2,Y("descr",s,d,T,a.data.widthLimit),s.descr.Y=n+20,n=s.descr.Y+s.descr.height}if(i==0||i%te===0){let T=r.data.startx+m.diagramMarginX,v=r.data.stopy+m.diagramMarginY+n;a.setData(T,T,v,v)}else{let T=a.data.stopx!==a.data.startx?a.data.stopx+m.diagramMarginX:a.data.startx,v=a.data.starty;a.setData(T,T,v,v)}a.name=s.alias;let u=l.db.getC4ShapeArray(s.alias),f=l.db.getC4ShapeKeys(s.alias);f.length>0&&Ae(a,e,u,f),t=s.alias;let E=l.db.getBoundaries(t);E.length>0&&se(e,t,a,E,l),s.alias!=="global"&&Se(e,s,a),r.data.stopy=Math.max(a.data.stopy+m.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+m.c4ShapeMargin,r.data.stopx),Ft=Math.max(Ft,r.data.stopx),Xt=Math.max(Xt,r.data.stopy)}}g(se,"drawInsideBoundary");var v0=g(function(e,t,r,h){m=Rt().c4;const l=Rt().securityLevel;let a;l==="sandbox"&&(a=jt("#i"+t));const i=l==="sandbox"?jt(a.nodes()[0].contentDocument.body):jt("body");let s=h.db;h.db.setWrap(m.wrap),xe=s.getC4ShapeInRow(),te=s.getC4BoundaryInRow(),de.debug(`C:${JSON.stringify(m,null,2)}`);const n=l==="sandbox"?i.select(`[id="${t}"]`):jt(`[id="${t}"]`);Q.insertComputerIcon(n),Q.insertDatabaseIcon(n),Q.insertClockIcon(n);let d=new Ee(h);d.setData(m.diagramMarginX,m.diagramMarginX,m.diagramMarginY,m.diagramMarginY),d.data.widthLimit=screen.availWidth,Ft=m.diagramMarginX,Xt=m.diagramMarginY;const p=h.db.getTitle();let u=h.db.getBoundaries("");se(n,"",d,u,h),Q.insertArrowHead(n),Q.insertArrowEnd(n),Q.insertArrowCrossHead(n),Q.insertArrowFilledHead(n),T0(n,h.db.getRels(),h.db.getC4Shape,h),d.data.stopx=Ft,d.data.stopy=Xt;const f=d.data;let E=f.stopy-f.starty+2*m.diagramMarginY;const T=f.stopx-f.startx+2*m.diagramMarginX;p&&n.append("text").text(p).attr("x",(f.stopx-f.startx)/2-4*m.diagramMarginX).attr("y",f.starty+m.diagramMarginY),Me(n,E,T,m.useMaxWidth);const v=p?60:0;n.attr("viewBox",f.startx-m.diagramMarginX+" -"+(m.diagramMarginY+v)+" "+T+" "+(E+v)),de.debug("models:",f)},"draw"),ye={drawPersonOrSystemArray:Ae,drawBoundary:Se,setConf:ee,draw:v0},R0=g(e=>`.person {
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:g(function(){var _=this.next();return _||this.lex()},"lex"),begin:g(function(_){this.conditionStack.push(_)},"begin"),popState:g(function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:g(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:g(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:g(function(_){this.begin(_)},"pushState"),stateStackSize:g(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:g(function(_,x,b,w){switch(b){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return z}();$t.lexer=Ce;function Nt(){this.yy={}}return g(Nt,"Parser"),Nt.prototype=$t,$t.Parser=Nt,new Nt}();Yt.parser=Yt;var Ie=Yt,F=[],mt=[""],D="global",U="",$=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Dt=[],ae="",ne=!1,It=4,Ut=2,ge,Ue=g(function(){return ge},"getC4Type"),Fe=g(function(e){ge=fe(e,Rt())},"setC4Type"),Xe=g(function(e,t,r,h,l,a,i,s,n){if(e==null||t===void 0||t===null||r===void 0||r===null||h===void 0||h===null)return;let d={};const p=Dt.find(u=>u.from===t&&u.to===r);if(p?d=p:Dt.push(d),d.type=e,d.from=t,d.to=r,d.label={text:h},l==null)d.techn={text:""};else if(typeof l=="object"){let[u,f]=Object.entries(l)[0];d[u]={text:f}}else d.techn={text:l};if(a==null)d.descr={text:""};else if(typeof a=="object"){let[u,f]=Object.entries(a)[0];d[u]={text:f}}else d.descr={text:a};if(typeof i=="object"){let[u,f]=Object.entries(i)[0];d[u]=f}else d.sprite=i;if(typeof s=="object"){let[u,f]=Object.entries(s)[0];d[u]=f}else d.tags=s;if(typeof n=="object"){let[u,f]=Object.entries(n)[0];d[u]=f}else d.link=n;d.wrap=xt()},"addRel"),ze=g(function(e,t,r,h,l,a,i){if(t===null||r===null)return;let s={};const n=F.find(d=>d.alias===t);if(n&&t===n.alias?s=n:(s.alias=t,F.push(s)),r==null?s.label={text:""}:s.label={text:r},h==null)s.descr={text:""};else if(typeof h=="object"){let[d,p]=Object.entries(h)[0];s[d]={text:p}}else s.descr={text:h};if(typeof l=="object"){let[d,p]=Object.entries(l)[0];s[d]=p}else s.sprite=l;if(typeof a=="object"){let[d,p]=Object.entries(a)[0];s[d]=p}else s.tags=a;if(typeof i=="object"){let[d,p]=Object.entries(i)[0];s[d]=p}else s.link=i;s.typeC4Shape={text:e},s.parentBoundary=D,s.wrap=xt()},"addPersonOrSystem"),Qe=g(function(e,t,r,h,l,a,i,s){if(t===null||r===null)return;let n={};const d=F.find(p=>p.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,F.push(n)),r==null?n.label={text:""}:n.label={text:r},h==null)n.techn={text:""};else if(typeof h=="object"){let[p,u]=Object.entries(h)[0];n[p]={text:u}}else n.techn={text:h};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[p,u]=Object.entries(l)[0];n[p]={text:u}}else n.descr={text:l};if(typeof a=="object"){let[p,u]=Object.entries(a)[0];n[p]=u}else n.sprite=a;if(typeof i=="object"){let[p,u]=Object.entries(i)[0];n[p]=u}else n.tags=i;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];n[p]=u}else n.link=s;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=D},"addContainer"),$e=g(function(e,t,r,h,l,a,i,s){if(t===null||r===null)return;let n={};const d=F.find(p=>p.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,F.push(n)),r==null?n.label={text:""}:n.label={text:r},h==null)n.techn={text:""};else if(typeof h=="object"){let[p,u]=Object.entries(h)[0];n[p]={text:u}}else n.techn={text:h};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[p,u]=Object.entries(l)[0];n[p]={text:u}}else n.descr={text:l};if(typeof a=="object"){let[p,u]=Object.entries(a)[0];n[p]=u}else n.sprite=a;if(typeof i=="object"){let[p,u]=Object.entries(i)[0];n[p]=u}else n.tags=i;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];n[p]=u}else n.link=s;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=D},"addComponent"),We=g(function(e,t,r,h,l){if(e===null||t===null)return;let a={};const i=$.find(s=>s.alias===e);if(i&&e===i.alias?a=i:(a.alias=e,$.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"system"};else if(typeof r=="object"){let[s,n]=Object.entries(r)[0];a[s]={text:n}}else a.type={text:r};if(typeof h=="object"){let[s,n]=Object.entries(h)[0];a[s]=n}else a.tags=h;if(typeof l=="object"){let[s,n]=Object.entries(l)[0];a[s]=n}else a.link=l;a.parentBoundary=D,a.wrap=xt(),U=D,D=e,mt.push(U)},"addPersonOrSystemBoundary"),qe=g(function(e,t,r,h,l){if(e===null||t===null)return;let a={};const i=$.find(s=>s.alias===e);if(i&&e===i.alias?a=i:(a.alias=e,$.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"container"};else if(typeof r=="object"){let[s,n]=Object.entries(r)[0];a[s]={text:n}}else a.type={text:r};if(typeof h=="object"){let[s,n]=Object.entries(h)[0];a[s]=n}else a.tags=h;if(typeof l=="object"){let[s,n]=Object.entries(l)[0];a[s]=n}else a.link=l;a.parentBoundary=D,a.wrap=xt(),U=D,D=e,mt.push(U)},"addContainerBoundary"),He=g(function(e,t,r,h,l,a,i,s){if(t===null||r===null)return;let n={};const d=$.find(p=>p.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,$.push(n)),r==null?n.label={text:""}:n.label={text:r},h==null)n.type={text:"node"};else if(typeof h=="object"){let[p,u]=Object.entries(h)[0];n[p]={text:u}}else n.type={text:h};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[p,u]=Object.entries(l)[0];n[p]={text:u}}else n.descr={text:l};if(typeof i=="object"){let[p,u]=Object.entries(i)[0];n[p]=u}else n.tags=i;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];n[p]=u}else n.link=s;n.nodeType=e,n.parentBoundary=D,n.wrap=xt(),U=D,D=t,mt.push(U)},"addDeploymentNode"),Ve=g(function(){D=U,mt.pop(),U=mt.pop(),mt.push(U)},"popBoundaryParseStack"),Ge=g(function(e,t,r,h,l,a,i,s,n,d,p){let u=F.find(f=>f.alias===t);if(!(u===void 0&&(u=$.find(f=>f.alias===t),u===void 0))){if(r!=null)if(typeof r=="object"){let[f,E]=Object.entries(r)[0];u[f]=E}else u.bgColor=r;if(h!=null)if(typeof h=="object"){let[f,E]=Object.entries(h)[0];u[f]=E}else u.fontColor=h;if(l!=null)if(typeof l=="object"){let[f,E]=Object.entries(l)[0];u[f]=E}else u.borderColor=l;if(a!=null)if(typeof a=="object"){let[f,E]=Object.entries(a)[0];u[f]=E}else u.shadowing=a;if(i!=null)if(typeof i=="object"){let[f,E]=Object.entries(i)[0];u[f]=E}else u.shape=i;if(s!=null)if(typeof s=="object"){let[f,E]=Object.entries(s)[0];u[f]=E}else u.sprite=s;if(n!=null)if(typeof n=="object"){let[f,E]=Object.entries(n)[0];u[f]=E}else u.techn=n;if(d!=null)if(typeof d=="object"){let[f,E]=Object.entries(d)[0];u[f]=E}else u.legendText=d;if(p!=null)if(typeof p=="object"){let[f,E]=Object.entries(p)[0];u[f]=E}else u.legendSprite=p}},"updateElStyle"),Ke=g(function(e,t,r,h,l,a,i){const s=Dt.find(n=>n.from===t&&n.to===r);if(s!==void 0){if(h!=null)if(typeof h=="object"){let[n,d]=Object.entries(h)[0];s[n]=d}else s.textColor=h;if(l!=null)if(typeof l=="object"){let[n,d]=Object.entries(l)[0];s[n]=d}else s.lineColor=l;if(a!=null)if(typeof a=="object"){let[n,d]=Object.entries(a)[0];s[n]=parseInt(d)}else s.offsetX=parseInt(a);if(i!=null)if(typeof i=="object"){let[n,d]=Object.entries(i)[0];s[n]=parseInt(d)}else s.offsetY=parseInt(i)}},"updateRelStyle"),Je=g(function(e,t,r){let h=It,l=Ut;if(typeof t=="object"){const a=Object.values(t)[0];h=parseInt(a)}else h=parseInt(t);if(typeof r=="object"){const a=Object.values(r)[0];l=parseInt(a)}else l=parseInt(r);h>=1&&(It=h),l>=1&&(Ut=l)},"updateLayoutConfig"),Ze=g(function(){return It},"getC4ShapeInRow"),t0=g(function(){return Ut},"getC4BoundaryInRow"),e0=g(function(){return D},"getCurrentBoundaryParse"),a0=g(function(){return U},"getParentBoundaryParse"),be=g(function(e){return e==null?F:F.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),n0=g(function(e){return F.find(t=>t.alias===e)},"getC4Shape"),i0=g(function(e){return Object.keys(be(e))},"getC4ShapeKeys"),_e=g(function(e){return e==null?$:$.filter(t=>t.parentBoundary===e)},"getBoundaries"),s0=_e,r0=g(function(){return Dt},"getRels"),l0=g(function(){return ae},"getTitle"),o0=g(function(e){ne=e},"setWrap"),xt=g(function(){return ne},"autoWrap"),c0=g(function(){F=[],$=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],U="",D="global",mt=[""],Dt=[],mt=[""],ae="",ne=!1,It=4,Ut=2},"clear"),h0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},d0={FILLED:0,OPEN:1},u0={LEFTOF:0,RIGHTOF:1,OVER:2},p0=g(function(e){ae=fe(e,Rt())},"setTitle"),Zt={addPersonOrSystem:ze,addPersonOrSystemBoundary:We,addContainer:Qe,addContainerBoundary:qe,addComponent:$e,addDeploymentNode:He,popBoundaryParseStack:Ve,addRel:Xe,updateElStyle:Ge,updateRelStyle:Ke,updateLayoutConfig:Je,autoWrap:xt,setWrap:o0,getC4ShapeArray:be,getC4Shape:n0,getC4ShapeKeys:i0,getBoundaries:_e,getBoundarys:s0,getCurrentBoundaryParse:e0,getParentBoundaryParse:a0,getRels:r0,getTitle:l0,getC4Type:Ue,getC4ShapeInRow:Ze,getC4BoundaryInRow:t0,setAccTitle:Be,getAccTitle:Ne,getAccDescription:Pe,setAccDescription:De,getConfig:g(()=>Rt().c4,"getConfig"),clear:c0,LINETYPE:h0,ARROWTYPE:d0,PLACEMENT:u0,setTitle:p0,setC4Type:Fe},ie=g(function(e,t){return Re(e,t)},"drawRect"),me=g(function(e,t,r,h,l,a){const i=e.append("image");i.attr("width",t),i.attr("height",r),i.attr("x",h),i.attr("y",l);let s=a.startsWith("data:image/png;base64")?a:Le.sanitizeUrl(a);i.attr("xlink:href",s)},"drawImage"),y0=g((e,t,r)=>{const h=e.append("g");let l=0;for(let a of t){let i=a.textColor?a.textColor:"#444444",s=a.lineColor?a.lineColor:"#444444",n=a.offsetX?parseInt(a.offsetX):0,d=a.offsetY?parseInt(a.offsetY):0,p="";if(l===0){let f=h.append("line");f.attr("x1",a.startPoint.x),f.attr("y1",a.startPoint.y),f.attr("x2",a.endPoint.x),f.attr("y2",a.endPoint.y),f.attr("stroke-width","1"),f.attr("stroke",s),f.style("fill","none"),a.type!=="rel_b"&&f.attr("marker-end","url("+p+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&f.attr("marker-start","url("+p+"#arrowend)"),l=-1}else{let f=h.append("path");f.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&f.attr("marker-end","url("+p+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&f.attr("marker-start","url("+p+"#arrowend)")}let u=r.messageFont();q(r)(a.label.text,h,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+n,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+d,a.label.width,a.label.height,{fill:i},u),a.techn&&a.techn.text!==""&&(u=r.messageFont(),q(r)("["+a.techn.text+"]",h,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+n,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+r.messageFontSize+5+d,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:i,"font-style":"italic"},u))}},"drawRels"),f0=g(function(e,t,r){const h=e.append("g");let l=t.bgColor?t.bgColor:"none",a=t.borderColor?t.borderColor:"#444444",i=t.fontColor?t.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(s={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s};ie(h,n);let d=r.boundaryFont();d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=i,q(r)(t.label.text,h,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},d),t.type&&t.type.text!==""&&(d=r.boundaryFont(),d.fontColor=i,q(r)(t.type.text,h,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},d)),t.descr&&t.descr.text!==""&&(d=r.boundaryFont(),d.fontSize=d.fontSize-2,d.fontColor=i,q(r)(t.descr.text,h,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},d))},"drawBoundary"),g0=g(function(e,t,r){var h;let l=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],a=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],i=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const d=ve();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":d.x=t.x,d.y=t.y,d.fill=l,d.width=t.width,d.height=t.height,d.stroke=a,d.rx=2.5,d.ry=2.5,d.attrs={"stroke-width":.5},ie(n,d);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let p=O0(r,t.typeC4Shape.text);switch(n.append("text").attr("fill",i).attr("font-family",p.fontFamily).attr("font-size",p.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":me(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,s);break}let u=r[t.typeC4Shape.text+"Font"]();return u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=i,q(r)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:i},u),u=r[t.typeC4Shape.text+"Font"](),u.fontColor=i,t.techn&&((h=t.techn)==null?void 0:h.text)!==""?q(r)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:i,"font-style":"italic"},u):t.type&&t.type.text!==""&&q(r)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:i,"font-style":"italic"},u),t.descr&&t.descr.text!==""&&(u=r.personFont(),u.fontColor=i,q(r)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:i},u)),t.height},"drawC4Shape"),b0=g(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),_0=g(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),m0=g(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),x0=g(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),E0=g(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),S0=g(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),A0=g(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),C0=g(function(e){const t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),O0=g((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),q=function(){function e(l,a,i,s,n,d,p){const u=a.append("text").attr("x",i+n/2).attr("y",s+d/2+5).style("text-anchor","middle").text(l);h(u,p)}g(e,"byText");function t(l,a,i,s,n,d,p,u){const{fontSize:f,fontFamily:E,fontWeight:T}=u,v=l.split(Jt.lineBreakRegex);for(let B=0;B<v.length;B++){const X=B*f-f*(v.length-1)/2,I=a.append("text").attr("x",i+n/2).attr("y",s).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",f).style("font-weight",T).style("font-family",E);I.append("tspan").attr("dy",X).text(v[B]).attr("alignment-baseline","mathematical"),h(I,p)}}g(t,"byTspan");function r(l,a,i,s,n,d,p,u){const f=a.append("switch"),E=f.append("foreignObject").attr("x",i).attr("y",s).attr("width",n).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");E.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,f,i,s,n,d,p,u),h(E,p)}g(r,"byFo");function h(l,a){for(const i in a)a.hasOwnProperty(i)&&l.attr(i,a[i])}return g(h,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?r:l.textPlacement==="old"?e:t}}(),Q={drawRect:ie,drawBoundary:f0,drawC4Shape:g0,drawRels:y0,drawImage:me,insertArrowHead:x0,insertArrowEnd:E0,insertArrowFilledHead:S0,insertDynamicNumber:A0,insertArrowCrossHead:C0,insertDatabaseIcon:b0,insertComputerIcon:_0,insertClockIcon:m0},Ft=0,Xt=0,xe=4,te=2;Yt.yy=Zt;var m={},Gt,Ee=(Gt=class{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,ee(e.db.getConfig())}setData(e,t,r,h){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=r,this.nextData.stopy=this.data.stopy=h}updateVal(e,t,r,h){e[t]===void 0?e[t]=r:e[t]=h(r,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+e.margin*2,r=t+e.width,h=this.nextData.starty+e.margin*2,l=h+e.height;(t>=this.data.widthLimit||r>=this.data.widthLimit||this.nextData.cnt>xe)&&(t=this.nextData.startx+e.margin+m.nextLinePaddingX,h=this.nextData.stopy+e.margin*2,this.nextData.stopx=r=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=l=h+e.height,this.nextData.cnt=1),e.x=t,e.y=h,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",h,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",l,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",h,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",l,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ee(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},g(Gt,"Bounds"),Gt),ee=g(function(e){je(m,e),e.fontFamily&&(m.personFontFamily=m.systemFontFamily=m.messageFontFamily=e.fontFamily),e.fontSize&&(m.personFontSize=m.systemFontSize=m.messageFontSize=e.fontSize),e.fontWeight&&(m.personFontWeight=m.systemFontWeight=m.messageFontWeight=e.fontWeight)},"setConf"),vt=g((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Lt=g(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),k0=g(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Y(e,t,r,h,l){if(!t[e].width)if(r)t[e].text=Ye(t[e].text,l,h),t[e].textLines=t[e].text.split(Jt.lineBreakRegex).length,t[e].width=l,t[e].height=ue(t[e].text,h);else{let a=t[e].text.split(Jt.lineBreakRegex);t[e].textLines=a.length;let i=0;t[e].height=0,t[e].width=0;for(const s of a)t[e].width=Math.max(wt(s,h),t[e].width),i=ue(s,h),t[e].height=t[e].height+i}}g(Y,"calcC4ShapeTextWH");var Se=g(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=m.c4ShapeMargin-35;let h=t.wrap&&m.wrap,l=Lt(m);l.fontSize=l.fontSize+2,l.fontWeight="bold";let a=wt(t.label.text,l);Y("label",t,h,l,a),Q.drawBoundary(e,t,m)},"drawBoundary"),Ae=g(function(e,t,r,h){let l=0;for(const a of h){l=0;const i=r[a];let s=vt(m,i.typeC4Shape.text);switch(s.fontSize=s.fontSize-2,i.typeC4Shape.width=wt("«"+i.typeC4Shape.text+"»",s),i.typeC4Shape.height=s.fontSize+2,i.typeC4Shape.Y=m.c4ShapePadding,l=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=l,l=i.image.Y+i.image.height;break}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=l,l=i.image.Y+i.image.height);let n=i.wrap&&m.wrap,d=m.width-m.c4ShapePadding*2,p=vt(m,i.typeC4Shape.text);if(p.fontSize=p.fontSize+2,p.fontWeight="bold",Y("label",i,n,p,d),i.label.Y=l+8,l=i.label.Y+i.label.height,i.type&&i.type.text!==""){i.type.text="["+i.type.text+"]";let E=vt(m,i.typeC4Shape.text);Y("type",i,n,E,d),i.type.Y=l+5,l=i.type.Y+i.type.height}else if(i.techn&&i.techn.text!==""){i.techn.text="["+i.techn.text+"]";let E=vt(m,i.techn.text);Y("techn",i,n,E,d),i.techn.Y=l+5,l=i.techn.Y+i.techn.height}let u=l,f=i.label.width;if(i.descr&&i.descr.text!==""){let E=vt(m,i.typeC4Shape.text);Y("descr",i,n,E,d),i.descr.Y=l+20,l=i.descr.Y+i.descr.height,f=Math.max(i.label.width,i.descr.width),u=l-i.descr.textLines*5}f=f+m.c4ShapePadding,i.width=Math.max(i.width||m.width,f,m.width),i.height=Math.max(i.height||m.height,u,m.height),i.margin=i.margin||m.c4ShapeMargin,e.insert(i),Q.drawC4Shape(t,i,m)}e.bumpLastMargin(m.c4ShapeMargin)},"drawC4ShapeArray"),Kt,L=(Kt=class{constructor(e,t){this.x=e,this.y=t}},g(Kt,"Point"),Kt),pe=g(function(e,t){let r=e.x,h=e.y,l=t.x,a=t.y,i=r+e.width/2,s=h+e.height/2,n=Math.abs(r-l),d=Math.abs(h-a),p=d/n,u=e.height/e.width,f=null;return h==a&&r<l?f=new L(r+e.width,s):h==a&&r>l?f=new L(r,s):r==l&&h<a?f=new L(i,h+e.height):r==l&&h>a&&(f=new L(i,h)),r>l&&h<a?u>=p?f=new L(r,s+p*e.width/2):f=new L(i-n/d*e.height/2,h+e.height):r<l&&h<a?u>=p?f=new L(r+e.width,s+p*e.width/2):f=new L(i+n/d*e.height/2,h+e.height):r<l&&h>a?u>=p?f=new L(r+e.width,s-p*e.width/2):f=new L(i+e.height/2*n/d,h):r>l&&h>a&&(u>=p?f=new L(r,s-e.width/2*p):f=new L(i-e.height/2*n/d,h)),f},"getIntersectPoint"),w0=g(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let h=pe(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let l=pe(t,r);return{startPoint:h,endPoint:l}},"getIntersectPoints"),T0=g(function(e,t,r,h){let l=0;for(let a of t){l=l+1;let i=a.wrap&&m.wrap,s=k0(m);h.db.getC4Type()==="C4Dynamic"&&(a.label.text=l+": "+a.label.text);let n=wt(a.label.text,s);Y("label",a,i,s,n),a.techn&&a.techn.text!==""&&(n=wt(a.techn.text,s),Y("techn",a,i,s,n)),a.descr&&a.descr.text!==""&&(n=wt(a.descr.text,s),Y("descr",a,i,s,n));let d=r(a.from),p=r(a.to),u=w0(d,p);a.startPoint=u.startPoint,a.endPoint=u.endPoint}Q.drawRels(e,t,m)},"drawRels");function se(e,t,r,h,l){let a=new Ee(l);a.data.widthLimit=r.data.widthLimit/Math.min(te,h.length);for(let[i,s]of h.entries()){let n=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=n,n=s.image.Y+s.image.height);let d=s.wrap&&m.wrap,p=Lt(m);if(p.fontSize=p.fontSize+2,p.fontWeight="bold",Y("label",s,d,p,a.data.widthLimit),s.label.Y=n+8,n=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let T=Lt(m);Y("type",s,d,T,a.data.widthLimit),s.type.Y=n+5,n=s.type.Y+s.type.height}if(s.descr&&s.descr.text!==""){let T=Lt(m);T.fontSize=T.fontSize-2,Y("descr",s,d,T,a.data.widthLimit),s.descr.Y=n+20,n=s.descr.Y+s.descr.height}if(i==0||i%te===0){let T=r.data.startx+m.diagramMarginX,v=r.data.stopy+m.diagramMarginY+n;a.setData(T,T,v,v)}else{let T=a.data.stopx!==a.data.startx?a.data.stopx+m.diagramMarginX:a.data.startx,v=a.data.starty;a.setData(T,T,v,v)}a.name=s.alias;let u=l.db.getC4ShapeArray(s.alias),f=l.db.getC4ShapeKeys(s.alias);f.length>0&&Ae(a,e,u,f),t=s.alias;let E=l.db.getBoundaries(t);E.length>0&&se(e,t,a,E,l),s.alias!=="global"&&Se(e,s,a),r.data.stopy=Math.max(a.data.stopy+m.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+m.c4ShapeMargin,r.data.stopx),Ft=Math.max(Ft,r.data.stopx),Xt=Math.max(Xt,r.data.stopy)}}g(se,"drawInsideBoundary");var v0=g(function(e,t,r,h){m=Rt().c4;const l=Rt().securityLevel;let a;l==="sandbox"&&(a=jt("#i"+t));const i=l==="sandbox"?jt(a.nodes()[0].contentDocument.body):jt("body");let s=h.db;h.db.setWrap(m.wrap),xe=s.getC4ShapeInRow(),te=s.getC4BoundaryInRow(),de.debug(`C:${JSON.stringify(m,null,2)}`);const n=l==="sandbox"?i.select(`[id="${t}"]`):jt(`[id="${t}"]`);Q.insertComputerIcon(n),Q.insertDatabaseIcon(n),Q.insertClockIcon(n);let d=new Ee(h);d.setData(m.diagramMarginX,m.diagramMarginX,m.diagramMarginY,m.diagramMarginY),d.data.widthLimit=screen.availWidth,Ft=m.diagramMarginX,Xt=m.diagramMarginY;const p=h.db.getTitle();let u=h.db.getBoundaries("");se(n,"",d,u,h),Q.insertArrowHead(n),Q.insertArrowEnd(n),Q.insertArrowCrossHead(n),Q.insertArrowFilledHead(n),T0(n,h.db.getRels(),h.db.getC4Shape,h),d.data.stopx=Ft,d.data.stopy=Xt;const f=d.data;let E=f.stopy-f.starty+2*m.diagramMarginY;const T=f.stopx-f.startx+2*m.diagramMarginX;p&&n.append("text").text(p).attr("x",(f.stopx-f.startx)/2-4*m.diagramMarginX).attr("y",f.starty+m.diagramMarginY),Me(n,E,T,m.useMaxWidth);const v=p?60:0;n.attr("viewBox",f.startx-m.diagramMarginX+" -"+(m.diagramMarginY+v)+" "+T+" "+(E+v)),de.debug("models:",f)},"draw"),ye={drawPersonOrSystemArray:Ae,drawBoundary:Se,setConf:ee,draw:v0},R0=g(e=>`.person {
7
7
  stroke: ${e.personBorder};
8
8
  fill: ${e.personBkg};
9
9
  }
10
- `,"getStyles"),D0=R0,N0={parser:Ie,db:Zt,renderer:ye,styles:D0,init:g(({c4:e,wrap:t})=>{ye.setConf(e),Zt.setWrap(t)},"init")};export{N0 as diagram};
10
+ `,"getStyles"),D0=R0,B0={parser:Ie,db:Zt,renderer:ye,styles:D0,init:g(({c4:e,wrap:t})=>{ye.setConf(e),Zt.setWrap(t)},"init")};export{B0 as diagram};
@@ -0,0 +1 @@
1
+ import{bg as t,bh as a}from"./index-CyVB0J6E.js";const g=(o,r)=>t.lang.round(a.parse(o)[r]);export{g as t};
@@ -1 +1 @@
1
- import{R as e}from"./index-Dwfg9sR1.js";function o(l,t){var c,i,a;l.accDescr&&((c=t.setAccDescription)==null||c.call(t,l.accDescr)),l.accTitle&&((i=t.setAccTitle)==null||i.call(t,l.accTitle)),l.title&&((a=t.setDiagramTitle)==null||a.call(t,l.title))}e(o,"populateCommonDb");export{o as m};
1
+ import{R as e}from"./index-CyVB0J6E.js";function o(l,t){var c,i,a;l.accDescr&&((c=t.setAccDescription)==null||c.call(t,l.accDescr)),l.accTitle&&((i=t.setAccTitle)==null||i.call(t,l.accTitle)),l.title&&((a=t.setDiagramTitle)==null||a.call(t,l.title))}e(o,"populateCommonDb");export{o as m};
@@ -0,0 +1 @@
1
+ import{R as r,e}from"./index-CyVB0J6E.js";var a=r((o,n)=>{let t;return n==="sandbox"&&(t=e("#i"+o)),(n==="sandbox"?e(t.nodes()[0].contentDocument.body):e("body")).select(`[id="${o}"]`)},"getDiagramElement");export{a as d};
@@ -1,4 +1,4 @@
1
- import{l as Jt}from"./chunk-FMBD7UC4-Bm0ev8jq-DBEEbKOi.js";import{d as te}from"./chunk-55IACEB6-_r7qMy9s-Dy635JXO.js";import{d as ee}from"./chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js";import{R as p,O as Ot,c as T,Z as se,X as ie,k as It,e as H,s as ae,l as ne,f as re,u as ue,n as le,o as oe,x as L,t as ce,F as he,w as pe,aC as w}from"./index-Dwfg9sR1.js";var vt=function(){var t=p(function(N,r,h,n){for(h=h||{},n=N.length;n--;h[N[n]]=r);return h},"o"),i=[1,18],u=[1,19],a=[1,20],o=[1,41],l=[1,42],d=[1,26],A=[1,24],k=[1,25],q=[1,32],ct=[1,33],ht=[1,34],C=[1,45],pt=[1,35],dt=[1,36],At=[1,37],yt=[1,38],Ct=[1,27],mt=[1,28],gt=[1,29],bt=[1,30],ft=[1,31],m=[1,44],g=[1,46],b=[1,43],f=[1,47],Et=[1,9],c=[1,8,9],V=[1,58],Z=[1,59],J=[1,60],tt=[1,61],et=[1,62],kt=[1,63],Tt=[1,64],P=[1,8,9,41],Rt=[1,76],v=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],st=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],it=[13,60,86,100,102,103],M=[13,60,73,74,86,100,102,103],wt=[13,60,68,69,70,71,72,86,100,102,103],Ft=[1,100],G=[1,117],U=[1,113],z=[1,109],K=[1,115],Y=[1,110],j=[1,111],W=[1,112],X=[1,114],Q=[1,116],Pt=[22,48,60,61,82,86,87,88,89,90],Dt=[1,8,9,39,41,44],at=[1,8,9,22],Mt=[1,145],Gt=[1,8,9,61],S=[1,8,9,22,48,60,61,82,86,87,88,89,90],Bt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:p(function(N,r,h,n,y,e,F){var s=e.length-1;switch(y){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:n.addRelation(e[s]);break;case 20:e[s-1].title=n.cleanupLabel(e[s]),n.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(e[s-3],e[s-1]);break;case 35:n.addClassesToNamespace(e[s-4],e[s-1]);break;case 36:this.$=e[s],n.addNamespace(e[s]);break;case 37:this.$=[e[s]];break;case 38:this.$=[e[s-1]];break;case 39:e[s].unshift(e[s-2]),this.$=e[s];break;case 41:n.setCssClass(e[s-2],e[s]);break;case 42:n.addMembers(e[s-3],e[s-1]);break;case 44:n.setCssClass(e[s-5],e[s-3]),n.addMembers(e[s-5],e[s-1]);break;case 45:this.$=e[s],n.addClass(e[s]);break;case 46:this.$=e[s-1],n.addClass(e[s-1]),n.setClassLabel(e[s-1],e[s]);break;case 50:n.addAnnotation(e[s],e[s-2]);break;case 51:case 64:this.$=[e[s]];break;case 52:e[s].push(e[s-1]),this.$=e[s];break;case 53:break;case 54:n.addMember(e[s-1],n.cleanupLabel(e[s]));break;case 55:break;case 56:break;case 57:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 59:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 60:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 61:n.addNote(e[s],e[s-1]);break;case 62:n.addNote(e[s]);break;case 63:this.$=e[s-2],n.defineClass(e[s-1],e[s]);break;case 65:this.$=e[s-2].concat([e[s]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 71:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 72:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[s-2],n.setClickEvent(e[s-1],e[s]);break;case 82:case 88:this.$=e[s-3],n.setClickEvent(e[s-2],e[s-1]),n.setTooltip(e[s-2],e[s]);break;case 83:this.$=e[s-2],n.setLink(e[s-1],e[s]);break;case 84:this.$=e[s-3],n.setLink(e[s-2],e[s-1],e[s]);break;case 85:this.$=e[s-3],n.setLink(e[s-2],e[s-1]),n.setTooltip(e[s-2],e[s]);break;case 86:this.$=e[s-4],n.setLink(e[s-3],e[s-2],e[s]),n.setTooltip(e[s-3],e[s-1]);break;case 89:this.$=e[s-3],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 90:this.$=e[s-4],n.setClickEvent(e[s-3],e[s-2],e[s-1]),n.setTooltip(e[s-3],e[s]);break;case 91:this.$=e[s-3],n.setLink(e[s-2],e[s]);break;case 92:this.$=e[s-4],n.setLink(e[s-3],e[s-1],e[s]);break;case 93:this.$=e[s-4],n.setLink(e[s-3],e[s-1]),n.setTooltip(e[s-3],e[s]);break;case 94:this.$=e[s-5],n.setLink(e[s-4],e[s-2],e[s]),n.setTooltip(e[s-4],e[s-1]);break;case 95:this.$=e[s-2],n.setCssStyle(e[s-1],e[s]);break;case 96:n.setCssClass(e[s-1],e[s]);break;case 97:this.$=[e[s]];break;case 98:e[s-2].push(e[s]),this.$=e[s-2];break;case 100:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:u,37:a,38:22,42:o,43:23,46:l,49:d,51:A,52:k,54:q,56:ct,57:ht,60:C,62:pt,63:dt,64:At,65:yt,75:Ct,76:mt,78:gt,82:bt,83:ft,86:m,100:g,102:b,103:f},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Et,[2,5],{8:[1,48]}),{8:[1,49]},t(c,[2,19],{22:[1,50]}),t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),t(c,[2,25]),t(c,[2,26]),t(c,[2,27]),t(c,[2,28]),t(c,[2,29]),t(c,[2,30]),{34:[1,51]},{36:[1,52]},t(c,[2,33]),t(c,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:V,69:Z,70:J,71:tt,72:et,73:kt,74:Tt}),{39:[1,65]},t(P,[2,40],{39:[1,67],44:[1,66]}),t(c,[2,55]),t(c,[2,56]),{16:68,60:C,86:m,100:g,102:b},{16:39,17:40,19:69,60:C,86:m,100:g,102:b,103:f},{16:39,17:40,19:70,60:C,86:m,100:g,102:b,103:f},{16:39,17:40,19:71,60:C,86:m,100:g,102:b,103:f},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:C,86:m,100:g,102:b,103:f},{13:Rt,55:75},{58:77,60:[1,78]},t(c,[2,66]),t(c,[2,67]),t(c,[2,68]),t(c,[2,69]),t(v,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:C,86:m,100:g,102:b,103:f}),t(v,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:C,86:m,100:g,102:b,103:f},{16:39,17:40,19:86,60:C,86:m,100:g,102:b,103:f},t(st,[2,123]),t(st,[2,124]),t(st,[2,125]),t(st,[2,126]),t([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),t(Et,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:u,37:a,42:o,46:l,49:d,51:A,52:k,54:q,56:ct,57:ht,60:C,62:pt,63:dt,64:At,65:yt,75:Ct,76:mt,78:gt,82:bt,83:ft,86:m,100:g,102:b,103:f}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:u,37:a,38:22,42:o,43:23,46:l,49:d,51:A,52:k,54:q,56:ct,57:ht,60:C,62:pt,63:dt,64:At,65:yt,75:Ct,76:mt,78:gt,82:bt,83:ft,86:m,100:g,102:b,103:f},t(c,[2,20]),t(c,[2,31]),t(c,[2,32]),{13:[1,90],16:39,17:40,19:89,60:C,86:m,100:g,102:b,103:f},{53:91,66:56,67:57,68:V,69:Z,70:J,71:tt,72:et,73:kt,74:Tt},t(c,[2,54]),{67:92,73:kt,74:Tt},t(it,[2,73],{66:93,68:V,69:Z,70:J,71:tt,72:et}),t(M,[2,74]),t(M,[2,75]),t(M,[2,76]),t(M,[2,77]),t(M,[2,78]),t(wt,[2,79]),t(wt,[2,80]),{8:[1,95],24:96,40:94,43:23,46:l},{16:97,60:C,86:m,100:g,102:b},{41:[1,99],45:98,51:Ft},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:G,48:U,59:106,60:z,82:K,84:107,85:108,86:Y,87:j,88:W,89:X,90:Q},{60:[1,118]},{13:Rt,55:119},t(c,[2,62]),t(c,[2,128]),{22:G,48:U,59:120,60:z,61:[1,121],82:K,84:107,85:108,86:Y,87:j,88:W,89:X,90:Q},t(Pt,[2,64]),{16:39,17:40,19:122,60:C,86:m,100:g,102:b,103:f},t(v,[2,16]),t(v,[2,17]),t(v,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:C,86:m,100:g,102:b,103:f},{39:[2,10]},t(Dt,[2,45],{11:125,12:[1,126]}),t(Et,[2,7]),{9:[1,127]},t(at,[2,57]),{16:39,17:40,19:128,60:C,86:m,100:g,102:b,103:f},{13:[1,130],16:39,17:40,19:129,60:C,86:m,100:g,102:b,103:f},t(it,[2,72],{66:131,68:V,69:Z,70:J,71:tt,72:et}),t(it,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:l},{8:[1,134],41:[2,37]},t(P,[2,41],{39:[1,135]}),{41:[1,136]},t(P,[2,43]),{41:[2,51],45:137,51:Ft},{16:39,17:40,19:138,60:C,86:m,100:g,102:b,103:f},t(c,[2,81],{13:[1,139]}),t(c,[2,83],{13:[1,141],77:[1,140]}),t(c,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},t(c,[2,95],{61:Mt}),t(Gt,[2,97],{85:146,22:G,48:U,60:z,82:K,86:Y,87:j,88:W,89:X,90:Q}),t(S,[2,99]),t(S,[2,101]),t(S,[2,102]),t(S,[2,103]),t(S,[2,104]),t(S,[2,105]),t(S,[2,106]),t(S,[2,107]),t(S,[2,108]),t(S,[2,109]),t(c,[2,96]),t(c,[2,61]),t(c,[2,63],{61:Mt}),{60:[1,147]},t(v,[2,14]),{15:148,16:84,17:85,60:C,86:m,100:g,102:b,103:f},{39:[2,12]},t(Dt,[2,46]),{13:[1,149]},{1:[2,4]},t(at,[2,59]),t(at,[2,58]),{16:39,17:40,19:150,60:C,86:m,100:g,102:b,103:f},t(it,[2,70]),t(c,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:l},{45:153,51:Ft},t(P,[2,42]),{41:[2,52]},t(c,[2,50]),t(c,[2,82]),t(c,[2,84]),t(c,[2,85],{77:[1,154]}),t(c,[2,88]),t(c,[2,89],{13:[1,155]}),t(c,[2,91],{13:[1,157],77:[1,156]}),{22:G,48:U,60:z,82:K,84:158,85:108,86:Y,87:j,88:W,89:X,90:Q},t(S,[2,100]),t(Pt,[2,65]),{39:[2,11]},{14:[1,159]},t(at,[2,60]),t(c,[2,35]),{41:[2,39]},{41:[1,160]},t(c,[2,86]),t(c,[2,90]),t(c,[2,92]),t(c,[2,93],{77:[1,161]}),t(Gt,[2,98],{85:146,22:G,48:U,60:z,82:K,86:Y,87:j,88:W,89:X,90:Q}),t(Dt,[2,8]),t(P,[2,44]),t(c,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:p(function(N,r){if(r.recoverable)this.trace(N);else{var h=new Error(N);throw h.hash=r,h}},"parseError"),parse:p(function(N){var r=this,h=[0],n=[],y=[null],e=[],F=this.table,s="",rt=0,Ut=0,Ht=2,zt=1,qt=e.slice.call(arguments,1),E=Object.create(this.lexer),x={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(x.yy[_t]=this.yy[_t]);E.setInput(N,x.yy),x.yy.lexer=E,x.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var St=E.yylloc;e.push(St);var Vt=E.options&&E.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(B){h.length=h.length-2*B,y.length=y.length-B,e.length=e.length-B}p(Zt,"popStack");function Kt(){var B;return B=n.pop()||E.lex()||zt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=r.symbols_[B]||B),B}p(Kt,"lex");for(var D,O,_,Nt,R={},ut,$,Yt,lt;;){if(O=h[h.length-1],this.defaultActions[O]?_=this.defaultActions[O]:((D===null||typeof D>"u")&&(D=Kt()),_=F[O]&&F[O][D]),typeof _>"u"||!_.length||!_[0]){var $t="";lt=[];for(ut in F[O])this.terminals_[ut]&&ut>Ht&&lt.push("'"+this.terminals_[ut]+"'");E.showPosition?$t="Parse error on line "+(rt+1)+`:
1
+ import{l as Jt}from"./chunk-FMBD7UC4-C6VImbBX-Ci00_56S.js";import{d as te}from"./chunk-55IACEB6-C4OH5_NF-CeUEEy8j.js";import{d as ee}from"./chunk-QN33PNHL-DrWWTLTH-CxKsUSHw.js";import{R as p,O as Ot,g as T,Z as se,X as ie,n as It,e as H,s as ae,l as ne,f as re,u as ue,o as le,r as oe,x as L,w as ce,F as he,A as pe,aC as w}from"./index-CyVB0J6E.js";var vt=function(){var t=p(function(N,r,h,n){for(h=h||{},n=N.length;n--;h[N[n]]=r);return h},"o"),i=[1,18],u=[1,19],a=[1,20],o=[1,41],l=[1,42],d=[1,26],A=[1,24],k=[1,25],q=[1,32],ct=[1,33],ht=[1,34],C=[1,45],pt=[1,35],dt=[1,36],At=[1,37],yt=[1,38],Ct=[1,27],mt=[1,28],gt=[1,29],bt=[1,30],ft=[1,31],m=[1,44],g=[1,46],b=[1,43],f=[1,47],Et=[1,9],c=[1,8,9],V=[1,58],Z=[1,59],J=[1,60],tt=[1,61],et=[1,62],kt=[1,63],Tt=[1,64],P=[1,8,9,41],Rt=[1,76],v=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],st=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],it=[13,60,86,100,102,103],M=[13,60,73,74,86,100,102,103],wt=[13,60,68,69,70,71,72,86,100,102,103],Ft=[1,100],G=[1,117],U=[1,113],z=[1,109],K=[1,115],Y=[1,110],j=[1,111],W=[1,112],X=[1,114],Q=[1,116],Pt=[22,48,60,61,82,86,87,88,89,90],Dt=[1,8,9,39,41,44],at=[1,8,9,22],Mt=[1,145],Gt=[1,8,9,61],S=[1,8,9,22,48,60,61,82,86,87,88,89,90],Bt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:p(function(N,r,h,n,y,e,F){var s=e.length-1;switch(y){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:n.addRelation(e[s]);break;case 20:e[s-1].title=n.cleanupLabel(e[s]),n.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(e[s-3],e[s-1]);break;case 35:n.addClassesToNamespace(e[s-4],e[s-1]);break;case 36:this.$=e[s],n.addNamespace(e[s]);break;case 37:this.$=[e[s]];break;case 38:this.$=[e[s-1]];break;case 39:e[s].unshift(e[s-2]),this.$=e[s];break;case 41:n.setCssClass(e[s-2],e[s]);break;case 42:n.addMembers(e[s-3],e[s-1]);break;case 44:n.setCssClass(e[s-5],e[s-3]),n.addMembers(e[s-5],e[s-1]);break;case 45:this.$=e[s],n.addClass(e[s]);break;case 46:this.$=e[s-1],n.addClass(e[s-1]),n.setClassLabel(e[s-1],e[s]);break;case 50:n.addAnnotation(e[s],e[s-2]);break;case 51:case 64:this.$=[e[s]];break;case 52:e[s].push(e[s-1]),this.$=e[s];break;case 53:break;case 54:n.addMember(e[s-1],n.cleanupLabel(e[s]));break;case 55:break;case 56:break;case 57:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 59:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 60:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 61:n.addNote(e[s],e[s-1]);break;case 62:n.addNote(e[s]);break;case 63:this.$=e[s-2],n.defineClass(e[s-1],e[s]);break;case 65:this.$=e[s-2].concat([e[s]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 71:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 72:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[s-2],n.setClickEvent(e[s-1],e[s]);break;case 82:case 88:this.$=e[s-3],n.setClickEvent(e[s-2],e[s-1]),n.setTooltip(e[s-2],e[s]);break;case 83:this.$=e[s-2],n.setLink(e[s-1],e[s]);break;case 84:this.$=e[s-3],n.setLink(e[s-2],e[s-1],e[s]);break;case 85:this.$=e[s-3],n.setLink(e[s-2],e[s-1]),n.setTooltip(e[s-2],e[s]);break;case 86:this.$=e[s-4],n.setLink(e[s-3],e[s-2],e[s]),n.setTooltip(e[s-3],e[s-1]);break;case 89:this.$=e[s-3],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 90:this.$=e[s-4],n.setClickEvent(e[s-3],e[s-2],e[s-1]),n.setTooltip(e[s-3],e[s]);break;case 91:this.$=e[s-3],n.setLink(e[s-2],e[s]);break;case 92:this.$=e[s-4],n.setLink(e[s-3],e[s-1],e[s]);break;case 93:this.$=e[s-4],n.setLink(e[s-3],e[s-1]),n.setTooltip(e[s-3],e[s]);break;case 94:this.$=e[s-5],n.setLink(e[s-4],e[s-2],e[s]),n.setTooltip(e[s-4],e[s-1]);break;case 95:this.$=e[s-2],n.setCssStyle(e[s-1],e[s]);break;case 96:n.setCssClass(e[s-1],e[s]);break;case 97:this.$=[e[s]];break;case 98:e[s-2].push(e[s]),this.$=e[s-2];break;case 100:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:u,37:a,38:22,42:o,43:23,46:l,49:d,51:A,52:k,54:q,56:ct,57:ht,60:C,62:pt,63:dt,64:At,65:yt,75:Ct,76:mt,78:gt,82:bt,83:ft,86:m,100:g,102:b,103:f},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Et,[2,5],{8:[1,48]}),{8:[1,49]},t(c,[2,19],{22:[1,50]}),t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),t(c,[2,25]),t(c,[2,26]),t(c,[2,27]),t(c,[2,28]),t(c,[2,29]),t(c,[2,30]),{34:[1,51]},{36:[1,52]},t(c,[2,33]),t(c,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:V,69:Z,70:J,71:tt,72:et,73:kt,74:Tt}),{39:[1,65]},t(P,[2,40],{39:[1,67],44:[1,66]}),t(c,[2,55]),t(c,[2,56]),{16:68,60:C,86:m,100:g,102:b},{16:39,17:40,19:69,60:C,86:m,100:g,102:b,103:f},{16:39,17:40,19:70,60:C,86:m,100:g,102:b,103:f},{16:39,17:40,19:71,60:C,86:m,100:g,102:b,103:f},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:C,86:m,100:g,102:b,103:f},{13:Rt,55:75},{58:77,60:[1,78]},t(c,[2,66]),t(c,[2,67]),t(c,[2,68]),t(c,[2,69]),t(v,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:C,86:m,100:g,102:b,103:f}),t(v,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:C,86:m,100:g,102:b,103:f},{16:39,17:40,19:86,60:C,86:m,100:g,102:b,103:f},t(st,[2,123]),t(st,[2,124]),t(st,[2,125]),t(st,[2,126]),t([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),t(Et,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:u,37:a,42:o,46:l,49:d,51:A,52:k,54:q,56:ct,57:ht,60:C,62:pt,63:dt,64:At,65:yt,75:Ct,76:mt,78:gt,82:bt,83:ft,86:m,100:g,102:b,103:f}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:u,37:a,38:22,42:o,43:23,46:l,49:d,51:A,52:k,54:q,56:ct,57:ht,60:C,62:pt,63:dt,64:At,65:yt,75:Ct,76:mt,78:gt,82:bt,83:ft,86:m,100:g,102:b,103:f},t(c,[2,20]),t(c,[2,31]),t(c,[2,32]),{13:[1,90],16:39,17:40,19:89,60:C,86:m,100:g,102:b,103:f},{53:91,66:56,67:57,68:V,69:Z,70:J,71:tt,72:et,73:kt,74:Tt},t(c,[2,54]),{67:92,73:kt,74:Tt},t(it,[2,73],{66:93,68:V,69:Z,70:J,71:tt,72:et}),t(M,[2,74]),t(M,[2,75]),t(M,[2,76]),t(M,[2,77]),t(M,[2,78]),t(wt,[2,79]),t(wt,[2,80]),{8:[1,95],24:96,40:94,43:23,46:l},{16:97,60:C,86:m,100:g,102:b},{41:[1,99],45:98,51:Ft},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:G,48:U,59:106,60:z,82:K,84:107,85:108,86:Y,87:j,88:W,89:X,90:Q},{60:[1,118]},{13:Rt,55:119},t(c,[2,62]),t(c,[2,128]),{22:G,48:U,59:120,60:z,61:[1,121],82:K,84:107,85:108,86:Y,87:j,88:W,89:X,90:Q},t(Pt,[2,64]),{16:39,17:40,19:122,60:C,86:m,100:g,102:b,103:f},t(v,[2,16]),t(v,[2,17]),t(v,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:C,86:m,100:g,102:b,103:f},{39:[2,10]},t(Dt,[2,45],{11:125,12:[1,126]}),t(Et,[2,7]),{9:[1,127]},t(at,[2,57]),{16:39,17:40,19:128,60:C,86:m,100:g,102:b,103:f},{13:[1,130],16:39,17:40,19:129,60:C,86:m,100:g,102:b,103:f},t(it,[2,72],{66:131,68:V,69:Z,70:J,71:tt,72:et}),t(it,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:l},{8:[1,134],41:[2,37]},t(P,[2,41],{39:[1,135]}),{41:[1,136]},t(P,[2,43]),{41:[2,51],45:137,51:Ft},{16:39,17:40,19:138,60:C,86:m,100:g,102:b,103:f},t(c,[2,81],{13:[1,139]}),t(c,[2,83],{13:[1,141],77:[1,140]}),t(c,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},t(c,[2,95],{61:Mt}),t(Gt,[2,97],{85:146,22:G,48:U,60:z,82:K,86:Y,87:j,88:W,89:X,90:Q}),t(S,[2,99]),t(S,[2,101]),t(S,[2,102]),t(S,[2,103]),t(S,[2,104]),t(S,[2,105]),t(S,[2,106]),t(S,[2,107]),t(S,[2,108]),t(S,[2,109]),t(c,[2,96]),t(c,[2,61]),t(c,[2,63],{61:Mt}),{60:[1,147]},t(v,[2,14]),{15:148,16:84,17:85,60:C,86:m,100:g,102:b,103:f},{39:[2,12]},t(Dt,[2,46]),{13:[1,149]},{1:[2,4]},t(at,[2,59]),t(at,[2,58]),{16:39,17:40,19:150,60:C,86:m,100:g,102:b,103:f},t(it,[2,70]),t(c,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:l},{45:153,51:Ft},t(P,[2,42]),{41:[2,52]},t(c,[2,50]),t(c,[2,82]),t(c,[2,84]),t(c,[2,85],{77:[1,154]}),t(c,[2,88]),t(c,[2,89],{13:[1,155]}),t(c,[2,91],{13:[1,157],77:[1,156]}),{22:G,48:U,60:z,82:K,84:158,85:108,86:Y,87:j,88:W,89:X,90:Q},t(S,[2,100]),t(Pt,[2,65]),{39:[2,11]},{14:[1,159]},t(at,[2,60]),t(c,[2,35]),{41:[2,39]},{41:[1,160]},t(c,[2,86]),t(c,[2,90]),t(c,[2,92]),t(c,[2,93],{77:[1,161]}),t(Gt,[2,98],{85:146,22:G,48:U,60:z,82:K,86:Y,87:j,88:W,89:X,90:Q}),t(Dt,[2,8]),t(P,[2,44]),t(c,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:p(function(N,r){if(r.recoverable)this.trace(N);else{var h=new Error(N);throw h.hash=r,h}},"parseError"),parse:p(function(N){var r=this,h=[0],n=[],y=[null],e=[],F=this.table,s="",rt=0,Ut=0,Ht=2,zt=1,qt=e.slice.call(arguments,1),E=Object.create(this.lexer),x={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(x.yy[_t]=this.yy[_t]);E.setInput(N,x.yy),x.yy.lexer=E,x.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var St=E.yylloc;e.push(St);var Vt=E.options&&E.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(B){h.length=h.length-2*B,y.length=y.length-B,e.length=e.length-B}p(Zt,"popStack");function Kt(){var B;return B=n.pop()||E.lex()||zt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=r.symbols_[B]||B),B}p(Kt,"lex");for(var D,O,_,Nt,R={},ut,$,Yt,lt;;){if(O=h[h.length-1],this.defaultActions[O]?_=this.defaultActions[O]:((D===null||typeof D>"u")&&(D=Kt()),_=F[O]&&F[O][D]),typeof _>"u"||!_.length||!_[0]){var $t="";lt=[];for(ut in F[O])this.terminals_[ut]&&ut>Ht&&lt.push("'"+this.terminals_[ut]+"'");E.showPosition?$t="Parse error on line "+(rt+1)+`:
2
2
  `+E.showPosition()+`
3
3
  Expecting `+lt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":$t="Parse error on line "+(rt+1)+": Unexpected "+(D==zt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError($t,{text:E.match,token:this.terminals_[D]||D,line:E.yylineno,loc:St,expected:lt})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+D);switch(_[0]){case 1:h.push(D),y.push(E.yytext),e.push(E.yylloc),h.push(_[1]),D=null,Ut=E.yyleng,s=E.yytext,rt=E.yylineno,St=E.yylloc;break;case 2:if($=this.productions_[_[1]][1],R.$=y[y.length-$],R._$={first_line:e[e.length-($||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-($||1)].first_column,last_column:e[e.length-1].last_column},Vt&&(R._$.range=[e[e.length-($||1)].range[0],e[e.length-1].range[1]]),Nt=this.performAction.apply(R,[s,Ut,rt,x.yy,_[1],y,e].concat(qt)),typeof Nt<"u")return Nt;$&&(h=h.slice(0,-1*$*2),y=y.slice(0,-1*$),e=e.slice(0,-1*$)),h.push(this.productions_[_[1]][0]),y.push(R.$),e.push(R._$),Yt=F[h[h.length-2]][h[h.length-1]],h.push(Yt);break;case 3:return!0}}return!0},"parse")},Qt=function(){var N={EOF:1,parseError:p(function(r,h){if(this.yy.parser)this.yy.parser.parseError(r,h);else throw new Error(r)},"parseError"),setInput:p(function(r,h){return this.yy=h||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var h=r.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:p(function(r){var h=r.length,n=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;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),n.length-1&&(this.yylineno-=n.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-h]),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(r){this.unput(this.match.slice(r))},"less"),pastInput:p(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var r=this.pastInput(),h=new Array(r.length+1).join("-");return r+this.upcomingInput()+`