omni-context-cli 0.0.48 → 0.0.49

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/cli.js +7 -7
  2. package/dist/clients/extension.vsix +0 -0
  3. package/dist/clients/web/assets/{_baseUniq-CWlTL7nF.js → _baseUniq-O6Fk0Wzr.js} +1 -1
  4. package/dist/clients/web/assets/{arc-CZjkqmF_.js → arc-n0x23Ctx.js} +1 -1
  5. package/dist/clients/web/assets/{architectureDiagram-VXUJARFQ-BOYa2bjw.js → architectureDiagram-VXUJARFQ-siUxtu84.js} +1 -1
  6. package/dist/clients/web/assets/{blockDiagram-VD42YOAC-DDOynruE.js → blockDiagram-VD42YOAC-DSqh9eGY.js} +1 -1
  7. package/dist/clients/web/assets/{c4Diagram-YG6GDRKO-C-97RpE_.js → c4Diagram-YG6GDRKO-wYR7H7xi.js} +1 -1
  8. package/dist/clients/web/assets/channel-NwuYDCTJ.js +1 -0
  9. package/dist/clients/web/assets/{chunk-4BX2VUAB-Cq-CVpiF.js → chunk-4BX2VUAB-Cay_iY5D.js} +1 -1
  10. package/dist/clients/web/assets/{chunk-55IACEB6-DgNYsQB7.js → chunk-55IACEB6-BeMIObm3.js} +1 -1
  11. package/dist/clients/web/assets/{chunk-B4BG7PRW-DlQsB2me.js → chunk-B4BG7PRW-B6cIgi7d.js} +1 -1
  12. package/dist/clients/web/assets/{chunk-DI55MBZ5-BHeF7oM6.js → chunk-DI55MBZ5-BXrfKlO3.js} +1 -1
  13. package/dist/clients/web/assets/{chunk-FMBD7UC4-D5QlY4R_.js → chunk-FMBD7UC4-67W1cNu_.js} +1 -1
  14. package/dist/clients/web/assets/{chunk-QN33PNHL-CHk3Nn1_.js → chunk-QN33PNHL-DuPwsSus.js} +1 -1
  15. package/dist/clients/web/assets/{chunk-QZHKN3VN-CAJ02eyq.js → chunk-QZHKN3VN-DWUuzBl_.js} +1 -1
  16. package/dist/clients/web/assets/{chunk-TZMSLE5B-fdEkh5Xq.js → chunk-TZMSLE5B-D3SRAd4i.js} +1 -1
  17. package/dist/clients/web/assets/classDiagram-2ON5EDUG-CA17y53i.js +1 -0
  18. package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-CA17y53i.js +1 -0
  19. package/dist/clients/web/assets/clone-Ccjp7w8U.js +1 -0
  20. package/dist/clients/web/assets/{cose-bilkent-S5V4N54A-C-KgfDpO.js → cose-bilkent-S5V4N54A-2yiAjDsY.js} +1 -1
  21. package/dist/clients/web/assets/{dagre-6UL2VRFP-XmHvxEnn.js → dagre-6UL2VRFP-DWtKyQlZ.js} +1 -1
  22. package/dist/clients/web/assets/{diagram-PSM6KHXK-piStbVS-.js → diagram-PSM6KHXK-BsH8ucOy.js} +1 -1
  23. package/dist/clients/web/assets/{diagram-QEK2KX5R-CclADJ9n.js → diagram-QEK2KX5R-CgAM_caT.js} +1 -1
  24. package/dist/clients/web/assets/{diagram-S2PKOQOG-yfPR_M0P.js → diagram-S2PKOQOG-5sXZE5fB.js} +1 -1
  25. package/dist/clients/web/assets/{erDiagram-Q2GNP2WA-C-QpleLm.js → erDiagram-Q2GNP2WA-SZjIGLfC.js} +1 -1
  26. package/dist/clients/web/assets/{flowDiagram-NV44I4VS-BXBJgvY4.js → flowDiagram-NV44I4VS-B13r1-Qr.js} +1 -1
  27. package/dist/clients/web/assets/{ganttDiagram-JELNMOA3-BId-yi2d.js → ganttDiagram-JELNMOA3-tnNnlmJ_.js} +1 -1
  28. package/dist/clients/web/assets/{gitGraphDiagram-NY62KEGX-C4GmkdUU.js → gitGraphDiagram-NY62KEGX-D3vXxiLR.js} +1 -1
  29. package/dist/clients/web/assets/{graph-lKpmm44U.js → graph-yEZO5As9.js} +1 -1
  30. package/dist/clients/web/assets/index-BvMYTiOr.js +27 -0
  31. package/dist/clients/web/assets/{index-QpapYAy5.css → index-bgcKJQwq.css} +1 -1
  32. package/dist/clients/web/assets/{infoDiagram-WHAUD3N6-DlTKBMRb.js → infoDiagram-WHAUD3N6-Diqs41Bs.js} +1 -1
  33. package/dist/clients/web/assets/{journeyDiagram-XKPGCS4Q-uR4zvhag.js → journeyDiagram-XKPGCS4Q-CsFCBnpU.js} +1 -1
  34. package/dist/clients/web/assets/{kanban-definition-3W4ZIXB7-BAth3XiM.js → kanban-definition-3W4ZIXB7-ToLQEJ6t.js} +1 -1
  35. package/dist/clients/web/assets/{layout-dqzmM9SC.js → layout-DAYHKwLI.js} +1 -1
  36. package/dist/clients/web/assets/{linear-BDsjBD51.js → linear-C6-59Tkb.js} +1 -1
  37. package/dist/clients/web/assets/{min-BpvcSMeI.js → min-CcGwUInn.js} +1 -1
  38. package/dist/clients/web/assets/{mindmap-definition-VGOIOE7T-YOfHJc2b.js → mindmap-definition-VGOIOE7T-DUxl95g0.js} +1 -1
  39. package/dist/clients/web/assets/{pieDiagram-ADFJNKIX-sxupIhex.js → pieDiagram-ADFJNKIX-B01HV9sF.js} +1 -1
  40. package/dist/clients/web/assets/{quadrantDiagram-AYHSOK5B-Clx0aaiI.js → quadrantDiagram-AYHSOK5B-CeqFw4rm.js} +1 -1
  41. package/dist/clients/web/assets/{requirementDiagram-UZGBJVZJ-Jff8r0V3.js → requirementDiagram-UZGBJVZJ-CFCoQIAQ.js} +1 -1
  42. package/dist/clients/web/assets/{sankeyDiagram-TZEHDZUN-tCX6Wk6i.js → sankeyDiagram-TZEHDZUN-C4bOlCv6.js} +1 -1
  43. package/dist/clients/web/assets/{sequenceDiagram-WL72ISMW-B66jOgtV.js → sequenceDiagram-WL72ISMW-CmcZq0aE.js} +1 -1
  44. package/dist/clients/web/assets/{stateDiagram-FKZM4ZOC-DFsarSTD.js → stateDiagram-FKZM4ZOC-BrC_Infp.js} +1 -1
  45. package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-Bi_Pj5vD.js +1 -0
  46. package/dist/clients/web/assets/{timeline-definition-IT6M3QCI-B7iIhHj6.js → timeline-definition-IT6M3QCI-C25RxMkJ.js} +1 -1
  47. package/dist/clients/web/assets/{treemap-KMMF4GRG-bwvPNBHC.js → treemap-KMMF4GRG-CYbXQA3w.js} +1 -1
  48. package/dist/clients/web/assets/{xychartDiagram-PRI3JC2R-CstqFcD3.js → xychartDiagram-PRI3JC2R-DxEjdm1o.js} +1 -1
  49. package/dist/clients/web/index.html +2 -2
  50. package/package.json +1 -1
  51. package/dist/clients/web/assets/channel-CrQbNsBe.js +0 -1
  52. package/dist/clients/web/assets/classDiagram-2ON5EDUG-CoAFxeb1.js +0 -1
  53. package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-CoAFxeb1.js +0 -1
  54. package/dist/clients/web/assets/clone-V8tKmkAv.js +0 -1
  55. package/dist/clients/web/assets/index-5wVqr2Ny.js +0 -27
  56. package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-DhAPZEUr.js +0 -1
@@ -1 +1 @@
1
- var t,s;import{g as e}from"./chunk-FMBD7UC4-D5QlY4R_.js";import{g as i}from"./chunk-55IACEB6-DgNYsQB7.js";import{s as u}from"./chunk-QN33PNHL-CHk3Nn1_.js";import{_ as n,l as a,c as r,o as c,r as h,u as o,d as l,b as A,a as E,s as d,g as C,p,q as F,k as D,y as B,x as f,i as b,Q as k}from"./index-5wVqr2Ny.js";var T=function(){var t=n(function(t,s,e,i){for(e=e||{},i=t.length;i--;e[t[i]]=s);return e},"o"),s=[1,18],e=[1,19],i=[1,20],u=[1,41],a=[1,42],r=[1,26],c=[1,24],h=[1,25],o=[1,32],l=[1,33],A=[1,34],E=[1,45],d=[1,35],C=[1,36],p=[1,37],F=[1,38],D=[1,27],B=[1,28],f=[1,29],b=[1,30],k=[1,31],T=[1,44],m=[1,46],_=[1,43],S=[1,47],g=[1,9],y=[1,8,9],N=[1,58],L=[1,59],v=[1,60],I=[1,61],O=[1,62],$=[1,63],w=[1,64],R=[1,8,9,41],x=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],M=[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],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],K=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,100],j=[1,117],Q=[1,113],z=[1,109],H=[1,115],X=[1,110],q=[1,111],W=[1,112],J=[1,114],V=[1,116],Z=[22,48,60,61,82,86,87,88,89,90],tt=[1,8,9,39,41,44],st=[1,8,9,22],et=[1,145],it=[1,8,9,61],ut=[1,8,9,22,48,60,61,82,86,87,88,89,90],nt={trace:n(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:n(function(t,s,e,i,u,n,a){var r=n.length-1;switch(u){case 8:this.$=n[r-1];break;case 9:case 10:case 13:case 15:this.$=n[r];break;case 11:case 14:this.$=n[r-2]+"."+n[r];break;case 12:case 16:case 100:this.$=n[r-1]+n[r];break;case 17:case 18:this.$=n[r-1]+"~"+n[r]+"~";break;case 19:i.addRelation(n[r]);break;case 20:n[r-1].title=i.cleanupLabel(n[r]),i.addRelation(n[r-1]);break;case 31:this.$=n[r].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=n[r].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(n[r-3],n[r-1]);break;case 35:i.addClassesToNamespace(n[r-4],n[r-1]);break;case 36:this.$=n[r],i.addNamespace(n[r]);break;case 37:case 51:case 64:case 97:this.$=[n[r]];break;case 38:this.$=[n[r-1]];break;case 39:n[r].unshift(n[r-2]),this.$=n[r];break;case 41:i.setCssClass(n[r-2],n[r]);break;case 42:i.addMembers(n[r-3],n[r-1]);break;case 44:i.setCssClass(n[r-5],n[r-3]),i.addMembers(n[r-5],n[r-1]);break;case 45:this.$=n[r],i.addClass(n[r]);break;case 46:this.$=n[r-1],i.addClass(n[r-1]),i.setClassLabel(n[r-1],n[r]);break;case 50:i.addAnnotation(n[r],n[r-2]);break;case 52:n[r].push(n[r-1]),this.$=n[r];break;case 53:case 55:case 56:break;case 54:i.addMember(n[r-1],i.cleanupLabel(n[r]));break;case 57:this.$={id1:n[r-2],id2:n[r],relation:n[r-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:n[r-3],id2:n[r],relation:n[r-1],relationTitle1:n[r-2],relationTitle2:"none"};break;case 59:this.$={id1:n[r-3],id2:n[r],relation:n[r-2],relationTitle1:"none",relationTitle2:n[r-1]};break;case 60:this.$={id1:n[r-4],id2:n[r],relation:n[r-2],relationTitle1:n[r-3],relationTitle2:n[r-1]};break;case 61:i.addNote(n[r],n[r-1]);break;case 62:i.addNote(n[r]);break;case 63:this.$=n[r-2],i.defineClass(n[r-1],n[r]);break;case 65:this.$=n[r-2].concat([n[r]]);break;case 66:i.setDirection("TB");break;case 67:i.setDirection("BT");break;case 68:i.setDirection("RL");break;case 69:i.setDirection("LR");break;case 70:this.$={type1:n[r-2],type2:n[r],lineType:n[r-1]};break;case 71:this.$={type1:"none",type2:n[r],lineType:n[r-1]};break;case 72:this.$={type1:n[r-1],type2:"none",lineType:n[r]};break;case 73:this.$={type1:"none",type2:"none",lineType:n[r]};break;case 74:this.$=i.relationType.AGGREGATION;break;case 75:this.$=i.relationType.EXTENSION;break;case 76:this.$=i.relationType.COMPOSITION;break;case 77:this.$=i.relationType.DEPENDENCY;break;case 78:this.$=i.relationType.LOLLIPOP;break;case 79:this.$=i.lineType.LINE;break;case 80:this.$=i.lineType.DOTTED_LINE;break;case 81:case 87:this.$=n[r-2],i.setClickEvent(n[r-1],n[r]);break;case 82:case 88:this.$=n[r-3],i.setClickEvent(n[r-2],n[r-1]),i.setTooltip(n[r-2],n[r]);break;case 83:this.$=n[r-2],i.setLink(n[r-1],n[r]);break;case 84:this.$=n[r-3],i.setLink(n[r-2],n[r-1],n[r]);break;case 85:this.$=n[r-3],i.setLink(n[r-2],n[r-1]),i.setTooltip(n[r-2],n[r]);break;case 86:this.$=n[r-4],i.setLink(n[r-3],n[r-2],n[r]),i.setTooltip(n[r-3],n[r-1]);break;case 89:this.$=n[r-3],i.setClickEvent(n[r-2],n[r-1],n[r]);break;case 90:this.$=n[r-4],i.setClickEvent(n[r-3],n[r-2],n[r-1]),i.setTooltip(n[r-3],n[r]);break;case 91:this.$=n[r-3],i.setLink(n[r-2],n[r]);break;case 92:this.$=n[r-4],i.setLink(n[r-3],n[r-1],n[r]);break;case 93:this.$=n[r-4],i.setLink(n[r-3],n[r-1]),i.setTooltip(n[r-3],n[r]);break;case 94:this.$=n[r-5],i.setLink(n[r-4],n[r-2],n[r]),i.setTooltip(n[r-4],n[r-1]);break;case 95:this.$=n[r-2],i.setCssStyle(n[r-1],n[r]);break;case 96:i.setCssClass(n[r-1],n[r]);break;case 98:n[r-2].push(n[r]),this.$=n[r-2]}},"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:s,35:e,37:i,38:22,42:u,43:23,46:a,49:r,51:c,52:h,54:o,56:l,57:A,60:E,62:d,63:C,64:p,65:F,75:D,76:B,78:f,82:b,83:k,86:T,100:m,102:_,103:S},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(g,[2,5],{8:[1,48]}),{8:[1,49]},t(y,[2,19],{22:[1,50]}),t(y,[2,21]),t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),{34:[1,51]},{36:[1,52]},t(y,[2,33]),t(y,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:N,69:L,70:v,71:I,72:O,73:$,74:w}),{39:[1,65]},t(R,[2,40],{39:[1,67],44:[1,66]}),t(y,[2,55]),t(y,[2,56]),{16:68,60:E,86:T,100:m,102:_},{16:39,17:40,19:69,60:E,86:T,100:m,102:_,103:S},{16:39,17:40,19:70,60:E,86:T,100:m,102:_,103:S},{16:39,17:40,19:71,60:E,86:T,100:m,102:_,103:S},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:E,86:T,100:m,102:_,103:S},{13:x,55:75},{58:77,60:[1,78]},t(y,[2,66]),t(y,[2,67]),t(y,[2,68]),t(y,[2,69]),t(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:E,86:T,100:m,102:_,103:S}),t(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:E,86:T,100:m,102:_,103:S},{16:39,17:40,19:86,60:E,86:T,100:m,102:_,103:S},t(M,[2,123]),t(M,[2,124]),t(M,[2,125]),t(M,[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(g,[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:s,35:e,37:i,42:u,46:a,49:r,51:c,52:h,54:o,56:l,57:A,60:E,62:d,63:C,64:p,65:F,75:D,76:B,78:f,82:b,83:k,86:T,100:m,102:_,103:S}),{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:s,35:e,37:i,38:22,42:u,43:23,46:a,49:r,51:c,52:h,54:o,56:l,57:A,60:E,62:d,63:C,64:p,65:F,75:D,76:B,78:f,82:b,83:k,86:T,100:m,102:_,103:S},t(y,[2,20]),t(y,[2,31]),t(y,[2,32]),{13:[1,90],16:39,17:40,19:89,60:E,86:T,100:m,102:_,103:S},{53:91,66:56,67:57,68:N,69:L,70:v,71:I,72:O,73:$,74:w},t(y,[2,54]),{67:92,73:$,74:w},t(G,[2,73],{66:93,68:N,69:L,70:v,71:I,72:O}),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(K,[2,79]),t(K,[2,80]),{8:[1,95],24:96,40:94,43:23,46:a},{16:97,60:E,86:T,100:m,102:_},{41:[1,99],45:98,51:Y},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:j,48:Q,59:106,60:z,82:H,84:107,85:108,86:X,87:q,88:W,89:J,90:V},{60:[1,118]},{13:x,55:119},t(y,[2,62]),t(y,[2,128]),{22:j,48:Q,59:120,60:z,61:[1,121],82:H,84:107,85:108,86:X,87:q,88:W,89:J,90:V},t(Z,[2,64]),{16:39,17:40,19:122,60:E,86:T,100:m,102:_,103:S},t(P,[2,16]),t(P,[2,17]),t(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:E,86:T,100:m,102:_,103:S},{39:[2,10]},t(tt,[2,45],{11:125,12:[1,126]}),t(g,[2,7]),{9:[1,127]},t(st,[2,57]),{16:39,17:40,19:128,60:E,86:T,100:m,102:_,103:S},{13:[1,130],16:39,17:40,19:129,60:E,86:T,100:m,102:_,103:S},t(G,[2,72],{66:131,68:N,69:L,70:v,71:I,72:O}),t(G,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:a},{8:[1,134],41:[2,37]},t(R,[2,41],{39:[1,135]}),{41:[1,136]},t(R,[2,43]),{41:[2,51],45:137,51:Y},{16:39,17:40,19:138,60:E,86:T,100:m,102:_,103:S},t(y,[2,81],{13:[1,139]}),t(y,[2,83],{13:[1,141],77:[1,140]}),t(y,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},t(y,[2,95],{61:et}),t(it,[2,97],{85:146,22:j,48:Q,60:z,82:H,86:X,87:q,88:W,89:J,90:V}),t(ut,[2,99]),t(ut,[2,101]),t(ut,[2,102]),t(ut,[2,103]),t(ut,[2,104]),t(ut,[2,105]),t(ut,[2,106]),t(ut,[2,107]),t(ut,[2,108]),t(ut,[2,109]),t(y,[2,96]),t(y,[2,61]),t(y,[2,63],{61:et}),{60:[1,147]},t(P,[2,14]),{15:148,16:84,17:85,60:E,86:T,100:m,102:_,103:S},{39:[2,12]},t(tt,[2,46]),{13:[1,149]},{1:[2,4]},t(st,[2,59]),t(st,[2,58]),{16:39,17:40,19:150,60:E,86:T,100:m,102:_,103:S},t(G,[2,70]),t(y,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:a},{45:153,51:Y},t(R,[2,42]),{41:[2,52]},t(y,[2,50]),t(y,[2,82]),t(y,[2,84]),t(y,[2,85],{77:[1,154]}),t(y,[2,88]),t(y,[2,89],{13:[1,155]}),t(y,[2,91],{13:[1,157],77:[1,156]}),{22:j,48:Q,60:z,82:H,84:158,85:108,86:X,87:q,88:W,89:J,90:V},t(ut,[2,100]),t(Z,[2,65]),{39:[2,11]},{14:[1,159]},t(st,[2,60]),t(y,[2,35]),{41:[2,39]},{41:[1,160]},t(y,[2,86]),t(y,[2,90]),t(y,[2,92]),t(y,[2,93],{77:[1,161]}),t(it,[2,98],{85:146,22:j,48:Q,60:z,82:H,86:X,87:q,88:W,89:J,90:V}),t(tt,[2,8]),t(R,[2,44]),t(y,[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:n(function(t,s){if(!s.recoverable){var e=new Error(t);throw e.hash=s,e}this.trace(t)},"parseError"),parse:n(function(t){var s=this,e=[0],i=[],u=[null],a=[],r=this.table,c="",h=0,o=0,l=a.slice.call(arguments,1),A=Object.create(this.lexer),E={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(E.yy[d]=this.yy[d]);A.setInput(t,E.yy),E.yy.lexer=A,E.yy.parser=this,void 0===A.yylloc&&(A.yylloc={});var C=A.yylloc;a.push(C);var p=A.options&&A.options.ranges;function F(){var t;return"number"!=typeof(t=i.pop()||A.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=s.symbols_[t]||t),t}"function"==typeof E.yy.parseError?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,n(function(t){e.length=e.length-2*t,u.length=u.length-t,a.length=a.length-t},"popStack"),n(F,"lex");for(var D,B,f,b,k,T,m,_,S={};;){if(B=e[e.length-1],this.defaultActions[B]?f=this.defaultActions[B]:(null==D&&(D=F()),f=r[B]&&r[B][D]),void 0===f||!f.length||!f[0]){var g="";for(k in _=[],r[B])this.terminals_[k]&&k>2&&_.push("'"+this.terminals_[k]+"'");g=A.showPosition?"Parse error on line "+(h+1)+":\n"+A.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[D]||D)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==D?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(g,{text:A.match,token:this.terminals_[D]||D,line:A.yylineno,loc:C,expected:_})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+D);switch(f[0]){case 1:e.push(D),u.push(A.yytext),a.push(A.yylloc),e.push(f[1]),D=null,o=A.yyleng,c=A.yytext,h=A.yylineno,C=A.yylloc;break;case 2:if(T=this.productions_[f[1]][1],S.$=u[u.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},p&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(b=this.performAction.apply(S,[c,o,h,E.yy,f[1],u,a].concat(l))))return b;T&&(e=e.slice(0,-1*T*2),u=u.slice(0,-1*T),a=a.slice(0,-1*T)),e.push(this.productions_[f[1]][0]),u.push(S.$),a.push(S._$),m=r[e[e.length-2]][e[e.length-1]],e.push(m);break;case 3:return!0}}return!0},"parse")},at=function(){return{EOF:1,parseError:n(function(t,s){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,s)},"parseError"),setInput:n(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:n(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:n(function(t){var s=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===i.length?this.yylloc.first_column:0)+i[i.length-e.length].length-e[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:n(function(t){this.unput(this.match.slice(t))},"less"),pastInput:n(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+s+"^"},"showPosition"),test_match:n(function(t,s){var e,i,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var n in u)this[n]=u[n];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;var t,s,e,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),n=0;n<u.length;n++)if((e=this._input.match(this.rules[u[n]]))&&(!s||e[0].length>s[0].length)){if(s=e,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,u[n])))return t;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(t=this.test_match(s,u[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){var t=this.next();return t||this.lex()},"lex"),begin:n(function(t){this.conditionStack.push(t)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:n(function(t){this.begin(t)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:n(function(t,s,e,i){switch(e){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}}();function rt(){this.yy={}}return nt.lexer=at,n(rt,"Parser"),rt.prototype=nt,nt.Parser=rt,new rt}();T.parser=T;var m=T,_=["#","+","~","-",""],S=(n(t=class{constructor(t,s){this.memberType=s,this.visibility="",this.classifier="",this.text="";const e=b(t,r());this.parseMember(e)}getDisplayDetails(){let t=this.visibility+k(this.id);"method"===this.memberType&&(t+=`(${k(this.parameters.trim())})`,this.returnType&&(t+=" : "+k(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let s="";if("method"===this.memberType){const e=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(e){const t=e[1]?e[1].trim():"";if(_.includes(t)&&(this.visibility=t),this.id=e[2],this.parameters=e[3]?e[3].trim():"",s=e[4]?e[4].trim():"",this.returnType=e[5]?e[5].trim():"",""===s){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(s=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const e=t.length,i=t.substring(0,1),u=t.substring(e-1);_.includes(i)&&(this.visibility=i),/[$*]/.exec(u)&&(s=u),this.id=t.substring(""===this.visibility?0:1,""===s?e:e-1)}this.classifier=s,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const e=`${this.visibility?"\\"+this.visibility:""}${k(this.id)}${"method"===this.memberType?`(${k(this.parameters)})${this.returnType?" : "+k(this.returnType):""}`:""}`;this.text=e.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},"ClassMember"),t),g="classId-",y=0,N=n(t=>D.sanitizeText(t,r()),"sanitizeText"),L=(n(s=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=n(t=>{let s=l(".mermaidTooltip");null===(s._groups||s)[0][0]&&(s=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0));l(t).select("svg").selectAll("g.node").on("mouseover",t=>{const e=l(t.currentTarget);if(null===e.attr("title"))return;const i=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(e.attr("title")).style("left",window.scrollX+i.left+(i.right-i.left)/2+"px").style("top",window.scrollY+i.top-14+document.body.scrollTop+"px"),s.html(s.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0)}).on("mouseout",t=>{s.transition().duration(500).style("opacity",0);l(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=A,this.getAccTitle=E,this.setAccDescription=d,this.getAccDescription=C,this.setDiagramTitle=p,this.getDiagramTitle=F,this.getConfig=n(()=>r().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(t){const s=D.sanitizeText(t,r());let e="",i=s;if(s.indexOf("~")>0){const t=s.split("~");i=N(t[0]),e=N(t[1])}return{className:i,type:e}}setClassLabel(t,s){const e=D.sanitizeText(t,r());s&&(s=N(s));const{className:i}=this.splitClassNameAndType(e);this.classes.get(i).label=s,this.classes.get(i).text=`${s}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const s=D.sanitizeText(t,r()),{className:e,type:i}=this.splitClassNameAndType(s);if(this.classes.has(e))return;const u=D.sanitizeText(e,r());this.classes.set(u,{id:u,type:i,label:u,text:`${u}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:g+u+"-"+y}),y++}addInterface(t,s){const e={id:`interface${this.interfaces.length}`,label:t,classId:s};this.interfaces.push(e)}lookUpDomId(t){const s=D.sanitizeText(t,r());if(this.classes.has(s))return this.classes.get(s).domId;throw new Error("Class not found: "+s)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",B()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(t){a.debug("Adding relation: "+JSON.stringify(t));const s=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||s.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||s.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=D.sanitizeText(t.relationTitle1.trim(),r()),t.relationTitle2=D.sanitizeText(t.relationTitle2.trim(),r()),this.relations.push(t)}addAnnotation(t,s){const e=this.splitClassNameAndType(t).className;this.classes.get(e).annotations.push(s)}addMember(t,s){this.addClass(t);const e=this.splitClassNameAndType(t).className,i=this.classes.get(e);if("string"==typeof s){const t=s.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(N(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new S(t,"method")):t&&i.members.push(new S(t,"attribute"))}}addMembers(t,s){Array.isArray(s)&&(s.reverse(),s.forEach(s=>this.addMember(t,s)))}addNote(t,s){const e={id:`note${this.notes.length}`,class:s,text:t};this.notes.push(e)}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),N(t.trim())}setCssClass(t,s){t.split(",").forEach(t=>{let e=t;/\d/.exec(t[0])&&(e=g+e);const i=this.classes.get(e);i&&(i.cssClasses+=" "+s)})}defineClass(t,s){for(const e of t){let t=this.styleClasses.get(e);void 0===t&&(t={id:e,styles:[],textStyles:[]},this.styleClasses.set(e,t)),s&&s.forEach(s=>{if(/color/.exec(s)){const e=s.replace("fill","bgFill");t.textStyles.push(e)}t.styles.push(s)}),this.classes.forEach(t=>{t.cssClasses.includes(e)&&t.styles.push(...s.flatMap(t=>t.split(",")))})}}setTooltip(t,s){t.split(",").forEach(t=>{void 0!==s&&(this.classes.get(t).tooltip=N(s))})}getTooltip(t,s){return s&&this.namespaces.has(s)?this.namespaces.get(s).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,s,e){const i=r();t.split(",").forEach(t=>{let u=t;/\d/.exec(t[0])&&(u=g+u);const n=this.classes.get(u);n&&(n.link=o.formatUrl(s,i),"sandbox"===i.securityLevel?n.linkTarget="_top":n.linkTarget="string"==typeof e?N(e):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,s,e){t.split(",").forEach(t=>{this.setClickFunc(t,s,e),this.classes.get(t).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,s,e){const i=D.sanitizeText(t,r());if("loose"!==r().securityLevel)return;if(void 0===s)return;const u=i;if(this.classes.has(u)){const t=this.lookUpDomId(u);let i=[];if("string"==typeof e){i=e.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let s=i[t].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),i[t]=s}}0===i.length&&i.push(t),this.functions.push(()=>{const e=document.querySelector(`[id="${t}"]`);null!==e&&e.addEventListener("click",()=>{o.runFunc(s,...i)},!1)})}}bindFunctions(t){this.functions.forEach(s=>{s(t)})}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){this.namespaces.has(t)||(this.namespaces.set(t,{id:t,classes:new Map,children:{},domId:g+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,s){if(this.namespaces.has(t))for(const e of s){const{className:s}=this.splitClassNameAndType(e);this.classes.get(s).parent=t,this.namespaces.get(t).classes.set(s,this.classes.get(s))}}setCssStyle(t,s){const e=this.classes.get(t);if(s&&e)for(const i of s)i.includes(",")?e.styles.push(...i.split(",")):e.styles.push(i)}getArrowMarker(t){let s;switch(t){case 0:s="aggregation";break;case 1:s="extension";break;case 2:s="composition";break;case 3:s="dependency";break;case 4:s="lollipop";break;default:s="none"}return s}getData(){var t;const s=[],e=[],i=r();for(const n of this.namespaces.keys()){const t=this.namespaces.get(n);if(t){const e={id:t.id,label:t.id,isGroup:!0,padding:i.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:i.look};s.push(e)}}for(const n of this.classes.keys()){const t=this.classes.get(n);if(t){const e=t;e.parentId=t.parent,e.look=i.look,s.push(e)}}let u=0;for(const n of this.notes){u++;const a={id:n.id,label:n.text,isGroup:!1,shape:"note",padding:i.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${i.themeVariables.noteBkgColor}`,`stroke: ${i.themeVariables.noteBorderColor}`],look:i.look};s.push(a);const r=(null==(t=this.classes.get(n.class))?void 0:t.id)??"";if(r){const t={id:`edgeNote${u}`,start:n.id,end:r,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:i.look};e.push(t)}}for(const n of this.interfaces){const t={id:n.id,label:n.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:i.look};s.push(t)}u=0;for(const n of this.relations){u++;const t={id:f(n.id1,n.id2,{prefix:"id",counter:u}),start:n.id1,end:n.id2,type:"normal",label:n.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(n.relation.type1),arrowTypeEnd:this.getArrowMarker(n.relation.type2),startLabelRight:"none"===n.relationTitle1?"":n.relationTitle1,endLabelLeft:"none"===n.relationTitle2?"":n.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:n.style||"",pattern:1==n.relation.lineType?"dashed":"solid",look:i.look};e.push(t)}return{nodes:s,edges:e,other:{},config:i,direction:this.getDirection()}}},"ClassDB"),s),v=n(t=>`g.classGroup text {\n fill: ${t.nodeBorder||t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n\n.labelBkg {\n background: ${t.mainBkg};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n ${e()}\n`,"getStyles"),I=n((t,s="TB")=>{if(!t.doc)return s;let e=s;for(const i of t.doc)"dir"===i.stmt&&(e=i.value);return e},"getDir"),O={getClasses:n(function(t,s){return s.db.getClasses()},"getClasses"),draw:n(async function(t,s,e,n){a.info("REF0:"),a.info("Drawing class diagram (v3)",s);const{securityLevel:l,state:A,layout:E}=r(),d=n.db.getData(),C=i(s,l);d.type=n.type,d.layoutAlgorithm=c(E),d.nodeSpacing=(null==A?void 0:A.nodeSpacing)||50,d.rankSpacing=(null==A?void 0:A.rankSpacing)||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=s,await h(d,C);o.insertTitle(C,"classDiagramTitleText",(null==A?void 0:A.titleTopMargin)??25,n.db.getDiagramTitle()),u(C,8,"classDiagram",(null==A?void 0:A.useMaxWidth)??!0)},"draw"),getDir:I};export{L as C,m as a,O as c,v as s};
1
+ var t,s;import{g as e}from"./chunk-FMBD7UC4-67W1cNu_.js";import{g as i}from"./chunk-55IACEB6-BeMIObm3.js";import{s as u}from"./chunk-QN33PNHL-DuPwsSus.js";import{_ as n,l as a,c as r,o as c,r as h,u as o,d as l,b as A,a as E,s as d,g as C,p,q as F,k as D,y as B,x as f,i as b,Q as k}from"./index-BvMYTiOr.js";var T=function(){var t=n(function(t,s,e,i){for(e=e||{},i=t.length;i--;e[t[i]]=s);return e},"o"),s=[1,18],e=[1,19],i=[1,20],u=[1,41],a=[1,42],r=[1,26],c=[1,24],h=[1,25],o=[1,32],l=[1,33],A=[1,34],E=[1,45],d=[1,35],C=[1,36],p=[1,37],F=[1,38],D=[1,27],B=[1,28],f=[1,29],b=[1,30],k=[1,31],T=[1,44],m=[1,46],_=[1,43],S=[1,47],g=[1,9],y=[1,8,9],N=[1,58],L=[1,59],v=[1,60],I=[1,61],O=[1,62],$=[1,63],w=[1,64],R=[1,8,9,41],x=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],M=[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],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],K=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,100],j=[1,117],Q=[1,113],z=[1,109],H=[1,115],X=[1,110],q=[1,111],W=[1,112],J=[1,114],V=[1,116],Z=[22,48,60,61,82,86,87,88,89,90],tt=[1,8,9,39,41,44],st=[1,8,9,22],et=[1,145],it=[1,8,9,61],ut=[1,8,9,22,48,60,61,82,86,87,88,89,90],nt={trace:n(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:n(function(t,s,e,i,u,n,a){var r=n.length-1;switch(u){case 8:this.$=n[r-1];break;case 9:case 10:case 13:case 15:this.$=n[r];break;case 11:case 14:this.$=n[r-2]+"."+n[r];break;case 12:case 16:case 100:this.$=n[r-1]+n[r];break;case 17:case 18:this.$=n[r-1]+"~"+n[r]+"~";break;case 19:i.addRelation(n[r]);break;case 20:n[r-1].title=i.cleanupLabel(n[r]),i.addRelation(n[r-1]);break;case 31:this.$=n[r].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=n[r].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(n[r-3],n[r-1]);break;case 35:i.addClassesToNamespace(n[r-4],n[r-1]);break;case 36:this.$=n[r],i.addNamespace(n[r]);break;case 37:case 51:case 64:case 97:this.$=[n[r]];break;case 38:this.$=[n[r-1]];break;case 39:n[r].unshift(n[r-2]),this.$=n[r];break;case 41:i.setCssClass(n[r-2],n[r]);break;case 42:i.addMembers(n[r-3],n[r-1]);break;case 44:i.setCssClass(n[r-5],n[r-3]),i.addMembers(n[r-5],n[r-1]);break;case 45:this.$=n[r],i.addClass(n[r]);break;case 46:this.$=n[r-1],i.addClass(n[r-1]),i.setClassLabel(n[r-1],n[r]);break;case 50:i.addAnnotation(n[r],n[r-2]);break;case 52:n[r].push(n[r-1]),this.$=n[r];break;case 53:case 55:case 56:break;case 54:i.addMember(n[r-1],i.cleanupLabel(n[r]));break;case 57:this.$={id1:n[r-2],id2:n[r],relation:n[r-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:n[r-3],id2:n[r],relation:n[r-1],relationTitle1:n[r-2],relationTitle2:"none"};break;case 59:this.$={id1:n[r-3],id2:n[r],relation:n[r-2],relationTitle1:"none",relationTitle2:n[r-1]};break;case 60:this.$={id1:n[r-4],id2:n[r],relation:n[r-2],relationTitle1:n[r-3],relationTitle2:n[r-1]};break;case 61:i.addNote(n[r],n[r-1]);break;case 62:i.addNote(n[r]);break;case 63:this.$=n[r-2],i.defineClass(n[r-1],n[r]);break;case 65:this.$=n[r-2].concat([n[r]]);break;case 66:i.setDirection("TB");break;case 67:i.setDirection("BT");break;case 68:i.setDirection("RL");break;case 69:i.setDirection("LR");break;case 70:this.$={type1:n[r-2],type2:n[r],lineType:n[r-1]};break;case 71:this.$={type1:"none",type2:n[r],lineType:n[r-1]};break;case 72:this.$={type1:n[r-1],type2:"none",lineType:n[r]};break;case 73:this.$={type1:"none",type2:"none",lineType:n[r]};break;case 74:this.$=i.relationType.AGGREGATION;break;case 75:this.$=i.relationType.EXTENSION;break;case 76:this.$=i.relationType.COMPOSITION;break;case 77:this.$=i.relationType.DEPENDENCY;break;case 78:this.$=i.relationType.LOLLIPOP;break;case 79:this.$=i.lineType.LINE;break;case 80:this.$=i.lineType.DOTTED_LINE;break;case 81:case 87:this.$=n[r-2],i.setClickEvent(n[r-1],n[r]);break;case 82:case 88:this.$=n[r-3],i.setClickEvent(n[r-2],n[r-1]),i.setTooltip(n[r-2],n[r]);break;case 83:this.$=n[r-2],i.setLink(n[r-1],n[r]);break;case 84:this.$=n[r-3],i.setLink(n[r-2],n[r-1],n[r]);break;case 85:this.$=n[r-3],i.setLink(n[r-2],n[r-1]),i.setTooltip(n[r-2],n[r]);break;case 86:this.$=n[r-4],i.setLink(n[r-3],n[r-2],n[r]),i.setTooltip(n[r-3],n[r-1]);break;case 89:this.$=n[r-3],i.setClickEvent(n[r-2],n[r-1],n[r]);break;case 90:this.$=n[r-4],i.setClickEvent(n[r-3],n[r-2],n[r-1]),i.setTooltip(n[r-3],n[r]);break;case 91:this.$=n[r-3],i.setLink(n[r-2],n[r]);break;case 92:this.$=n[r-4],i.setLink(n[r-3],n[r-1],n[r]);break;case 93:this.$=n[r-4],i.setLink(n[r-3],n[r-1]),i.setTooltip(n[r-3],n[r]);break;case 94:this.$=n[r-5],i.setLink(n[r-4],n[r-2],n[r]),i.setTooltip(n[r-4],n[r-1]);break;case 95:this.$=n[r-2],i.setCssStyle(n[r-1],n[r]);break;case 96:i.setCssClass(n[r-1],n[r]);break;case 98:n[r-2].push(n[r]),this.$=n[r-2]}},"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:s,35:e,37:i,38:22,42:u,43:23,46:a,49:r,51:c,52:h,54:o,56:l,57:A,60:E,62:d,63:C,64:p,65:F,75:D,76:B,78:f,82:b,83:k,86:T,100:m,102:_,103:S},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(g,[2,5],{8:[1,48]}),{8:[1,49]},t(y,[2,19],{22:[1,50]}),t(y,[2,21]),t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),{34:[1,51]},{36:[1,52]},t(y,[2,33]),t(y,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:N,69:L,70:v,71:I,72:O,73:$,74:w}),{39:[1,65]},t(R,[2,40],{39:[1,67],44:[1,66]}),t(y,[2,55]),t(y,[2,56]),{16:68,60:E,86:T,100:m,102:_},{16:39,17:40,19:69,60:E,86:T,100:m,102:_,103:S},{16:39,17:40,19:70,60:E,86:T,100:m,102:_,103:S},{16:39,17:40,19:71,60:E,86:T,100:m,102:_,103:S},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:E,86:T,100:m,102:_,103:S},{13:x,55:75},{58:77,60:[1,78]},t(y,[2,66]),t(y,[2,67]),t(y,[2,68]),t(y,[2,69]),t(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:E,86:T,100:m,102:_,103:S}),t(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:E,86:T,100:m,102:_,103:S},{16:39,17:40,19:86,60:E,86:T,100:m,102:_,103:S},t(M,[2,123]),t(M,[2,124]),t(M,[2,125]),t(M,[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(g,[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:s,35:e,37:i,42:u,46:a,49:r,51:c,52:h,54:o,56:l,57:A,60:E,62:d,63:C,64:p,65:F,75:D,76:B,78:f,82:b,83:k,86:T,100:m,102:_,103:S}),{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:s,35:e,37:i,38:22,42:u,43:23,46:a,49:r,51:c,52:h,54:o,56:l,57:A,60:E,62:d,63:C,64:p,65:F,75:D,76:B,78:f,82:b,83:k,86:T,100:m,102:_,103:S},t(y,[2,20]),t(y,[2,31]),t(y,[2,32]),{13:[1,90],16:39,17:40,19:89,60:E,86:T,100:m,102:_,103:S},{53:91,66:56,67:57,68:N,69:L,70:v,71:I,72:O,73:$,74:w},t(y,[2,54]),{67:92,73:$,74:w},t(G,[2,73],{66:93,68:N,69:L,70:v,71:I,72:O}),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(K,[2,79]),t(K,[2,80]),{8:[1,95],24:96,40:94,43:23,46:a},{16:97,60:E,86:T,100:m,102:_},{41:[1,99],45:98,51:Y},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:j,48:Q,59:106,60:z,82:H,84:107,85:108,86:X,87:q,88:W,89:J,90:V},{60:[1,118]},{13:x,55:119},t(y,[2,62]),t(y,[2,128]),{22:j,48:Q,59:120,60:z,61:[1,121],82:H,84:107,85:108,86:X,87:q,88:W,89:J,90:V},t(Z,[2,64]),{16:39,17:40,19:122,60:E,86:T,100:m,102:_,103:S},t(P,[2,16]),t(P,[2,17]),t(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:E,86:T,100:m,102:_,103:S},{39:[2,10]},t(tt,[2,45],{11:125,12:[1,126]}),t(g,[2,7]),{9:[1,127]},t(st,[2,57]),{16:39,17:40,19:128,60:E,86:T,100:m,102:_,103:S},{13:[1,130],16:39,17:40,19:129,60:E,86:T,100:m,102:_,103:S},t(G,[2,72],{66:131,68:N,69:L,70:v,71:I,72:O}),t(G,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:a},{8:[1,134],41:[2,37]},t(R,[2,41],{39:[1,135]}),{41:[1,136]},t(R,[2,43]),{41:[2,51],45:137,51:Y},{16:39,17:40,19:138,60:E,86:T,100:m,102:_,103:S},t(y,[2,81],{13:[1,139]}),t(y,[2,83],{13:[1,141],77:[1,140]}),t(y,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},t(y,[2,95],{61:et}),t(it,[2,97],{85:146,22:j,48:Q,60:z,82:H,86:X,87:q,88:W,89:J,90:V}),t(ut,[2,99]),t(ut,[2,101]),t(ut,[2,102]),t(ut,[2,103]),t(ut,[2,104]),t(ut,[2,105]),t(ut,[2,106]),t(ut,[2,107]),t(ut,[2,108]),t(ut,[2,109]),t(y,[2,96]),t(y,[2,61]),t(y,[2,63],{61:et}),{60:[1,147]},t(P,[2,14]),{15:148,16:84,17:85,60:E,86:T,100:m,102:_,103:S},{39:[2,12]},t(tt,[2,46]),{13:[1,149]},{1:[2,4]},t(st,[2,59]),t(st,[2,58]),{16:39,17:40,19:150,60:E,86:T,100:m,102:_,103:S},t(G,[2,70]),t(y,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:a},{45:153,51:Y},t(R,[2,42]),{41:[2,52]},t(y,[2,50]),t(y,[2,82]),t(y,[2,84]),t(y,[2,85],{77:[1,154]}),t(y,[2,88]),t(y,[2,89],{13:[1,155]}),t(y,[2,91],{13:[1,157],77:[1,156]}),{22:j,48:Q,60:z,82:H,84:158,85:108,86:X,87:q,88:W,89:J,90:V},t(ut,[2,100]),t(Z,[2,65]),{39:[2,11]},{14:[1,159]},t(st,[2,60]),t(y,[2,35]),{41:[2,39]},{41:[1,160]},t(y,[2,86]),t(y,[2,90]),t(y,[2,92]),t(y,[2,93],{77:[1,161]}),t(it,[2,98],{85:146,22:j,48:Q,60:z,82:H,86:X,87:q,88:W,89:J,90:V}),t(tt,[2,8]),t(R,[2,44]),t(y,[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:n(function(t,s){if(!s.recoverable){var e=new Error(t);throw e.hash=s,e}this.trace(t)},"parseError"),parse:n(function(t){var s=this,e=[0],i=[],u=[null],a=[],r=this.table,c="",h=0,o=0,l=a.slice.call(arguments,1),A=Object.create(this.lexer),E={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(E.yy[d]=this.yy[d]);A.setInput(t,E.yy),E.yy.lexer=A,E.yy.parser=this,void 0===A.yylloc&&(A.yylloc={});var C=A.yylloc;a.push(C);var p=A.options&&A.options.ranges;function F(){var t;return"number"!=typeof(t=i.pop()||A.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=s.symbols_[t]||t),t}"function"==typeof E.yy.parseError?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,n(function(t){e.length=e.length-2*t,u.length=u.length-t,a.length=a.length-t},"popStack"),n(F,"lex");for(var D,B,f,b,k,T,m,_,S={};;){if(B=e[e.length-1],this.defaultActions[B]?f=this.defaultActions[B]:(null==D&&(D=F()),f=r[B]&&r[B][D]),void 0===f||!f.length||!f[0]){var g="";for(k in _=[],r[B])this.terminals_[k]&&k>2&&_.push("'"+this.terminals_[k]+"'");g=A.showPosition?"Parse error on line "+(h+1)+":\n"+A.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[D]||D)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==D?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(g,{text:A.match,token:this.terminals_[D]||D,line:A.yylineno,loc:C,expected:_})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+D);switch(f[0]){case 1:e.push(D),u.push(A.yytext),a.push(A.yylloc),e.push(f[1]),D=null,o=A.yyleng,c=A.yytext,h=A.yylineno,C=A.yylloc;break;case 2:if(T=this.productions_[f[1]][1],S.$=u[u.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},p&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(b=this.performAction.apply(S,[c,o,h,E.yy,f[1],u,a].concat(l))))return b;T&&(e=e.slice(0,-1*T*2),u=u.slice(0,-1*T),a=a.slice(0,-1*T)),e.push(this.productions_[f[1]][0]),u.push(S.$),a.push(S._$),m=r[e[e.length-2]][e[e.length-1]],e.push(m);break;case 3:return!0}}return!0},"parse")},at=function(){return{EOF:1,parseError:n(function(t,s){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,s)},"parseError"),setInput:n(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:n(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:n(function(t){var s=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===i.length?this.yylloc.first_column:0)+i[i.length-e.length].length-e[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:n(function(t){this.unput(this.match.slice(t))},"less"),pastInput:n(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+s+"^"},"showPosition"),test_match:n(function(t,s){var e,i,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var n in u)this[n]=u[n];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;var t,s,e,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),n=0;n<u.length;n++)if((e=this._input.match(this.rules[u[n]]))&&(!s||e[0].length>s[0].length)){if(s=e,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,u[n])))return t;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(t=this.test_match(s,u[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){var t=this.next();return t||this.lex()},"lex"),begin:n(function(t){this.conditionStack.push(t)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:n(function(t){this.begin(t)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:n(function(t,s,e,i){switch(e){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}}();function rt(){this.yy={}}return nt.lexer=at,n(rt,"Parser"),rt.prototype=nt,nt.Parser=rt,new rt}();T.parser=T;var m=T,_=["#","+","~","-",""],S=(n(t=class{constructor(t,s){this.memberType=s,this.visibility="",this.classifier="",this.text="";const e=b(t,r());this.parseMember(e)}getDisplayDetails(){let t=this.visibility+k(this.id);"method"===this.memberType&&(t+=`(${k(this.parameters.trim())})`,this.returnType&&(t+=" : "+k(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let s="";if("method"===this.memberType){const e=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(e){const t=e[1]?e[1].trim():"";if(_.includes(t)&&(this.visibility=t),this.id=e[2],this.parameters=e[3]?e[3].trim():"",s=e[4]?e[4].trim():"",this.returnType=e[5]?e[5].trim():"",""===s){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(s=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const e=t.length,i=t.substring(0,1),u=t.substring(e-1);_.includes(i)&&(this.visibility=i),/[$*]/.exec(u)&&(s=u),this.id=t.substring(""===this.visibility?0:1,""===s?e:e-1)}this.classifier=s,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const e=`${this.visibility?"\\"+this.visibility:""}${k(this.id)}${"method"===this.memberType?`(${k(this.parameters)})${this.returnType?" : "+k(this.returnType):""}`:""}`;this.text=e.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},"ClassMember"),t),g="classId-",y=0,N=n(t=>D.sanitizeText(t,r()),"sanitizeText"),L=(n(s=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=n(t=>{let s=l(".mermaidTooltip");null===(s._groups||s)[0][0]&&(s=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0));l(t).select("svg").selectAll("g.node").on("mouseover",t=>{const e=l(t.currentTarget);if(null===e.attr("title"))return;const i=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(e.attr("title")).style("left",window.scrollX+i.left+(i.right-i.left)/2+"px").style("top",window.scrollY+i.top-14+document.body.scrollTop+"px"),s.html(s.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0)}).on("mouseout",t=>{s.transition().duration(500).style("opacity",0);l(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=A,this.getAccTitle=E,this.setAccDescription=d,this.getAccDescription=C,this.setDiagramTitle=p,this.getDiagramTitle=F,this.getConfig=n(()=>r().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(t){const s=D.sanitizeText(t,r());let e="",i=s;if(s.indexOf("~")>0){const t=s.split("~");i=N(t[0]),e=N(t[1])}return{className:i,type:e}}setClassLabel(t,s){const e=D.sanitizeText(t,r());s&&(s=N(s));const{className:i}=this.splitClassNameAndType(e);this.classes.get(i).label=s,this.classes.get(i).text=`${s}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const s=D.sanitizeText(t,r()),{className:e,type:i}=this.splitClassNameAndType(s);if(this.classes.has(e))return;const u=D.sanitizeText(e,r());this.classes.set(u,{id:u,type:i,label:u,text:`${u}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:g+u+"-"+y}),y++}addInterface(t,s){const e={id:`interface${this.interfaces.length}`,label:t,classId:s};this.interfaces.push(e)}lookUpDomId(t){const s=D.sanitizeText(t,r());if(this.classes.has(s))return this.classes.get(s).domId;throw new Error("Class not found: "+s)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",B()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(t){a.debug("Adding relation: "+JSON.stringify(t));const s=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||s.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||s.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=D.sanitizeText(t.relationTitle1.trim(),r()),t.relationTitle2=D.sanitizeText(t.relationTitle2.trim(),r()),this.relations.push(t)}addAnnotation(t,s){const e=this.splitClassNameAndType(t).className;this.classes.get(e).annotations.push(s)}addMember(t,s){this.addClass(t);const e=this.splitClassNameAndType(t).className,i=this.classes.get(e);if("string"==typeof s){const t=s.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(N(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new S(t,"method")):t&&i.members.push(new S(t,"attribute"))}}addMembers(t,s){Array.isArray(s)&&(s.reverse(),s.forEach(s=>this.addMember(t,s)))}addNote(t,s){const e={id:`note${this.notes.length}`,class:s,text:t};this.notes.push(e)}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),N(t.trim())}setCssClass(t,s){t.split(",").forEach(t=>{let e=t;/\d/.exec(t[0])&&(e=g+e);const i=this.classes.get(e);i&&(i.cssClasses+=" "+s)})}defineClass(t,s){for(const e of t){let t=this.styleClasses.get(e);void 0===t&&(t={id:e,styles:[],textStyles:[]},this.styleClasses.set(e,t)),s&&s.forEach(s=>{if(/color/.exec(s)){const e=s.replace("fill","bgFill");t.textStyles.push(e)}t.styles.push(s)}),this.classes.forEach(t=>{t.cssClasses.includes(e)&&t.styles.push(...s.flatMap(t=>t.split(",")))})}}setTooltip(t,s){t.split(",").forEach(t=>{void 0!==s&&(this.classes.get(t).tooltip=N(s))})}getTooltip(t,s){return s&&this.namespaces.has(s)?this.namespaces.get(s).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,s,e){const i=r();t.split(",").forEach(t=>{let u=t;/\d/.exec(t[0])&&(u=g+u);const n=this.classes.get(u);n&&(n.link=o.formatUrl(s,i),"sandbox"===i.securityLevel?n.linkTarget="_top":n.linkTarget="string"==typeof e?N(e):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,s,e){t.split(",").forEach(t=>{this.setClickFunc(t,s,e),this.classes.get(t).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,s,e){const i=D.sanitizeText(t,r());if("loose"!==r().securityLevel)return;if(void 0===s)return;const u=i;if(this.classes.has(u)){const t=this.lookUpDomId(u);let i=[];if("string"==typeof e){i=e.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let s=i[t].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),i[t]=s}}0===i.length&&i.push(t),this.functions.push(()=>{const e=document.querySelector(`[id="${t}"]`);null!==e&&e.addEventListener("click",()=>{o.runFunc(s,...i)},!1)})}}bindFunctions(t){this.functions.forEach(s=>{s(t)})}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){this.namespaces.has(t)||(this.namespaces.set(t,{id:t,classes:new Map,children:{},domId:g+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,s){if(this.namespaces.has(t))for(const e of s){const{className:s}=this.splitClassNameAndType(e);this.classes.get(s).parent=t,this.namespaces.get(t).classes.set(s,this.classes.get(s))}}setCssStyle(t,s){const e=this.classes.get(t);if(s&&e)for(const i of s)i.includes(",")?e.styles.push(...i.split(",")):e.styles.push(i)}getArrowMarker(t){let s;switch(t){case 0:s="aggregation";break;case 1:s="extension";break;case 2:s="composition";break;case 3:s="dependency";break;case 4:s="lollipop";break;default:s="none"}return s}getData(){var t;const s=[],e=[],i=r();for(const n of this.namespaces.keys()){const t=this.namespaces.get(n);if(t){const e={id:t.id,label:t.id,isGroup:!0,padding:i.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:i.look};s.push(e)}}for(const n of this.classes.keys()){const t=this.classes.get(n);if(t){const e=t;e.parentId=t.parent,e.look=i.look,s.push(e)}}let u=0;for(const n of this.notes){u++;const a={id:n.id,label:n.text,isGroup:!1,shape:"note",padding:i.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${i.themeVariables.noteBkgColor}`,`stroke: ${i.themeVariables.noteBorderColor}`],look:i.look};s.push(a);const r=(null==(t=this.classes.get(n.class))?void 0:t.id)??"";if(r){const t={id:`edgeNote${u}`,start:n.id,end:r,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:i.look};e.push(t)}}for(const n of this.interfaces){const t={id:n.id,label:n.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:i.look};s.push(t)}u=0;for(const n of this.relations){u++;const t={id:f(n.id1,n.id2,{prefix:"id",counter:u}),start:n.id1,end:n.id2,type:"normal",label:n.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(n.relation.type1),arrowTypeEnd:this.getArrowMarker(n.relation.type2),startLabelRight:"none"===n.relationTitle1?"":n.relationTitle1,endLabelLeft:"none"===n.relationTitle2?"":n.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:n.style||"",pattern:1==n.relation.lineType?"dashed":"solid",look:i.look};e.push(t)}return{nodes:s,edges:e,other:{},config:i,direction:this.getDirection()}}},"ClassDB"),s),v=n(t=>`g.classGroup text {\n fill: ${t.nodeBorder||t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n\n.labelBkg {\n background: ${t.mainBkg};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n ${e()}\n`,"getStyles"),I=n((t,s="TB")=>{if(!t.doc)return s;let e=s;for(const i of t.doc)"dir"===i.stmt&&(e=i.value);return e},"getDir"),O={getClasses:n(function(t,s){return s.db.getClasses()},"getClasses"),draw:n(async function(t,s,e,n){a.info("REF0:"),a.info("Drawing class diagram (v3)",s);const{securityLevel:l,state:A,layout:E}=r(),d=n.db.getData(),C=i(s,l);d.type=n.type,d.layoutAlgorithm=c(E),d.nodeSpacing=(null==A?void 0:A.nodeSpacing)||50,d.rankSpacing=(null==A?void 0:A.rankSpacing)||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=s,await h(d,C);o.insertTitle(C,"classDiagramTitleText",(null==A?void 0:A.titleTopMargin)??25,n.db.getDiagramTitle()),u(C,8,"classDiagram",(null==A?void 0:A.useMaxWidth)??!0)},"draw"),getDir:I};export{L as C,m as a,O as c,v as s};
@@ -1 +1 @@
1
- var t;import{g as s}from"./chunk-55IACEB6-DgNYsQB7.js";import{s as e}from"./chunk-QN33PNHL-CHk3Nn1_.js";import{_ as i,l as n,c as r,r as a,u as o,a as c,b as l,g as h,s as u,p as d,q as f,T as S,k as p,y as T}from"./index-5wVqr2Ny.js";var v=function(){var t=i(function(t,s,e,i){for(e=e||{},i=t.length;i--;e[t[i]]=s);return e},"o"),s=[1,2],e=[1,3],n=[1,4],r=[2,4],a=[1,9],o=[1,11],c=[1,16],l=[1,17],h=[1,18],u=[1,19],d=[1,33],f=[1,20],S=[1,21],p=[1,22],T=[1,23],v=[1,24],E=[1,26],_=[1,27],b=[1,28],g=[1,29],m=[1,30],k=[1,31],y=[1,32],D=[1,35],L=[1,36],$=[1,37],I=[1,38],A=[1,34],C=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],w=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],x=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],O={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:i(function(t,s,e,i,n,r,a){var o=r.length-1;switch(n){case 3:return i.setRootDoc(r[o]),r[o];case 4:this.$=[];break;case 5:"nl"!=r[o]&&(r[o-1].push(r[o]),this.$=r[o-1]);break;case 6:case 7:case 12:this.$=r[o];break;case 8:this.$="nl";break;case 13:const t=r[o-1];t.description=i.trimColon(r[o]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[o-2],state2:r[o]};break;case 15:const s=i.trimColon(r[o]);this.$={stmt:"relation",state1:r[o-3],state2:r[o-1],description:s};break;case 19:this.$={stmt:"state",id:r[o-3],type:"default",description:"",doc:r[o-1]};break;case 20:var c=r[o],l=r[o-2].trim();if(r[o].match(":")){var h=r[o].split(":");c=h[0],l=[l,h[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 21:this.$={stmt:"state",id:r[o-3],type:"default",description:r[o-5],doc:r[o-1]};break;case 22:this.$={stmt:"state",id:r[o],type:"fork"};break;case 23:this.$={stmt:"state",id:r[o],type:"join"};break;case 24:this.$={stmt:"state",id:r[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[o-1].trim(),note:{position:r[o-2].trim(),text:r[o].trim()}};break;case 29:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[o-3],url:r[o-2],tooltip:r[o-1]};break;case 33:this.$={stmt:"click",id:r[o-3],url:r[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[o-1].trim(),classes:r[o].trim()};break;case 36:this.$={stmt:"style",id:r[o-1].trim(),styleClass:r[o].trim()};break;case 37:this.$={stmt:"applyClass",id:r[o-1].trim(),styleClass:r[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[o-2].trim(),classes:[r[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:s,5:e,6:n},{1:[3]},{3:5,4:s,5:e,6:n},{3:6,4:s,5:e,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,7]),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(C,[2,11]),t(C,[2,12],{14:[1,40],15:[1,41]}),t(C,[2,16]),{18:[1,42]},t(C,[2,18],{20:[1,43]}),{23:[1,44]},t(C,[2,22]),t(C,[2,23]),t(C,[2,24]),t(C,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(C,[2,28]),{34:[1,49]},{36:[1,50]},t(C,[2,31]),{13:51,24:d,57:A},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(w,[2,44],{58:[1,56]}),t(w,[2,45],{58:[1,57]}),t(C,[2,38]),t(C,[2,39]),t(C,[2,40]),t(C,[2,41]),t(C,[2,6]),t(C,[2,13]),{13:58,24:d,57:A},t(C,[2,17]),t(x,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(C,[2,29]),t(C,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(C,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,72],22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(C,[2,34]),t(C,[2,35]),t(C,[2,36]),t(C,[2,37]),t(w,[2,46]),t(w,[2,47]),t(C,[2,15]),t(C,[2,19]),t(x,r,{7:78}),t(C,[2,26]),t(C,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,81],22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,32]),t(C,[2,33]),t(C,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:i(function(t,s){if(!s.recoverable){var e=new Error(t);throw e.hash=s,e}this.trace(t)},"parseError"),parse:i(function(t){var s=this,e=[0],n=[],r=[null],a=[],o=this.table,c="",l=0,h=0,u=a.slice.call(arguments,1),d=Object.create(this.lexer),f={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(f.yy[S]=this.yy[S]);d.setInput(t,f.yy),f.yy.lexer=d,f.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;a.push(p);var T=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=s.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){e.length=e.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),i(v,"lex");for(var E,_,b,g,m,k,y,D,L={};;){if(_=e[e.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==E&&(E=v()),b=o[_]&&o[_][E]),void 0===b||!b.length||!b[0]){var $="";for(m in D=[],o[_])this.terminals_[m]&&m>2&&D.push("'"+this.terminals_[m]+"'");$=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==E?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError($,{text:d.match,token:this.terminals_[E]||E,line:d.yylineno,loc:p,expected:D})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+E);switch(b[0]){case 1:e.push(E),r.push(d.yytext),a.push(d.yylloc),e.push(b[1]),E=null,h=d.yyleng,c=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(k=this.productions_[b[1]][1],L.$=r[r.length-k],L._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},T&&(L._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(g=this.performAction.apply(L,[c,h,l,f.yy,b[1],r,a].concat(u))))return g;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),a=a.slice(0,-1*k)),e.push(this.productions_[b[1]][0]),r.push(L.$),a.push(L._$),y=o[e[e.length-2]][e[e.length-1]],e.push(y);break;case 3:return!0}}return!0},"parse")},N=function(){return{EOF:1,parseError:i(function(t,s){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,s)},"parseError"),setInput:i(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var s=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===i.length?this.yylloc.first_column:0)+i[i.length-e.length].length-e[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+s+"^"},"showPosition"),test_match:i(function(t,s){var e,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,s,e,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((e=this._input.match(this.rules[n[r]]))&&(!s||e[0].length>s[0].length)){if(s=e,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,n[r])))return t;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(t=this.test_match(s,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(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:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(t,s,e,i){switch(e){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),s.yytext=s.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),s.yytext=s.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),s.yytext=s.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),s.yytext=s.yytext.substr(2).trim(),31;case 70:return this.popState(),s.yytext=s.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return s.yytext=s.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function R(){this.yy={}}return O.lexer=N,i(R,"Parser"),R.prototype=O,O.Parser=R,new R}();v.parser=v;var E=v,_="state",b="root",g="relation",m="default",k="divider",y="fill:none",D="fill: #333",L="text",$="normal",I="rect",A="rectWithTitle",C="divider",w="roundedWithTitle",x="statediagram",O=`${x}-state`,N="transition",R=`${N} note-edge`,F=`${x}-note`,Y=`${x}-cluster`,G=`${x}-cluster-alt`,P="parent",j="note",B="----",U=`${B}${j}`,M=`${B}${P}`,H=i((t,s="TB")=>{if(!t.doc)return s;let e=s;for(const i of t.doc)"dir"===i.stmt&&(e=i.value);return e},"getDir"),z={getClasses:i(function(t,s){return s.db.getClasses()},"getClasses"),draw:i(async function(t,i,c,l){n.info("REF0:"),n.info("Drawing state diagram (v2)",i);const{securityLevel:h,state:u,layout:d}=r();l.db.extract(l.db.getRootDocV2());const f=l.db.getData(),S=s(i,h);f.type=l.type,f.layoutAlgorithm=d,f.nodeSpacing=(null==u?void 0:u.nodeSpacing)||50,f.rankSpacing=(null==u?void 0:u.rankSpacing)||50,f.markers=["barb"],f.diagramId=i,await a(f,S);try{("function"==typeof l.db.getLinks?l.db.getLinks():new Map).forEach((t,s)=>{var e;const i="string"==typeof s?s:"string"==typeof(null==s?void 0:s.id)?s.id:"";if(!i)return void n.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(s));const r=null==(e=S.node())?void 0:e.querySelectorAll("g");let a;if(null==r||r.forEach(t=>{var s;(null==(s=t.textContent)?void 0:s.trim())===i&&(a=t)}),!a)return void n.warn("⚠️ Could not find node matching text:",i);const o=a.parentNode;if(!o)return void n.warn("⚠️ Node has no parent, cannot wrap:",i);const c=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),c.setAttribute("target","_blank"),t.tooltip){const s=t.tooltip.replace(/^"+|"+$/g,"");c.setAttribute("title",s)}o.replaceChild(c,a),c.appendChild(a),n.info("🔗 Wrapped node in <a> tag for:",i,t.url)})}catch(p){n.error("❌ Error injecting clickable links:",p)}o.insertTitle(S,"statediagramTitleText",(null==u?void 0:u.titleTopMargin)??25,l.db.getDiagramTitle()),e(S,8,x,(null==u?void 0:u.useMaxWidth)??!0)},"draw"),getDir:H},X=new Map,J=0;function K(t="",s=0,e="",i=B){return`state-${t}${null!==e&&e.length>0?`${i}${e}`:""}-${s}`}i(K,"stateDomId");var W=i((t,s,e,i,a,o,c,l)=>{n.trace("items",s),s.forEach(s=>{switch(s.stmt){case _:case m:tt(t,s,e,i,a,o,c,l);break;case g:{tt(t,s.state1,e,i,a,o,c,l),tt(t,s.state2,e,i,a,o,c,l);const n={id:"edge"+J,start:s.state1.id,end:s.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:y,labelStyle:"",label:p.sanitizeText(s.description??"",r()),arrowheadStyle:D,labelpos:"c",labelType:L,thickness:$,classes:N,look:c};a.push(n),J++}}})},"setupDoc"),V=i((t,s="TB")=>{let e=s;if(t.doc)for(const i of t.doc)"dir"===i.stmt&&(e=i.value);return e},"getDir");function q(t,s,e){if(!s.id||"</join></fork>"===s.id||"</choice>"===s.id)return;s.cssClasses&&(Array.isArray(s.cssCompiledStyles)||(s.cssCompiledStyles=[]),s.cssClasses.split(" ").forEach(t=>{const i=e.get(t);i&&(s.cssCompiledStyles=[...s.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===s.id);i?Object.assign(i,s):t.push(s)}function Q(t){var s;return(null==(s=null==t?void 0:t.classes)?void 0:s.join(" "))??""}function Z(t){return(null==t?void 0:t.styles)??[]}i(q,"insertOrUpdateNode"),i(Q,"getClassesFromDbInfo"),i(Z,"getStylesFromDbInfo");var tt=i((t,s,e,i,a,o,c,l)=>{var h,u,d;const f=s.id,S=e.get(f),T=Q(S),v=Z(S),E=r();if(n.info("dataFetcher parsedItem",s,S,v),"root"!==f){let e=I;!0===s.start?e="stateStart":!1===s.start&&(e="stateEnd"),s.type!==m&&(e=s.type),X.get(f)||X.set(f,{id:f,shape:e,description:p.sanitizeText(f,E),cssClasses:`${T} ${O}`,cssStyles:v});const r=X.get(f);s.description&&(Array.isArray(r.description)?(r.shape=A,r.description.push(s.description)):(null==(h=r.description)?void 0:h.length)&&r.description.length>0?(r.shape=A,r.description===f?r.description=[s.description]:r.description=[r.description,s.description]):(r.shape=I,r.description=s.description),r.description=p.sanitizeTextOrArray(r.description,E)),1===(null==(u=r.description)?void 0:u.length)&&r.shape===A&&("group"===r.type?r.shape=w:r.shape=I),!r.type&&s.doc&&(n.info("Setting cluster for XCX",f,V(s)),r.type="group",r.isGroup=!0,r.dir=V(s),r.shape=s.type===k?C:w,r.cssClasses=`${r.cssClasses} ${Y} ${o?G:""}`);const S={labelStyle:"",shape:r.shape,label:r.description,cssClasses:r.cssClasses,cssCompiledStyles:[],cssStyles:r.cssStyles,id:f,dir:r.dir,domId:K(f,J),type:r.type,isGroup:"group"===r.type,padding:8,rx:10,ry:10,look:c};if(S.shape===C&&(S.label=""),t&&"root"!==t.id&&(n.trace("Setting node ",f," to be child of its parent ",t.id),S.parentId=t.id),S.centerLabel=!0,s.note){const t={labelStyle:"",shape:"note",label:s.note.text,cssClasses:F,cssStyles:[],cssCompiledStyles:[],id:f+U+"-"+J,domId:K(f,J,j),type:r.type,isGroup:"group"===r.type,padding:null==(d=E.flowchart)?void 0:d.padding,look:c,position:s.note.position},e=f+M,n={labelStyle:"",shape:"noteGroup",label:s.note.text,cssClasses:r.cssClasses,cssStyles:[],id:f+M,domId:K(f,J,P),type:"group",isGroup:!0,padding:16,look:c,position:s.note.position};J++,n.id=e,t.parentId=e,q(i,n,l),q(i,t,l),q(i,S,l);let o=f,h=t.id;"left of"===s.note.position&&(o=t.id,h=f),a.push({id:o+"-"+h,start:o,end:h,arrowhead:"none",arrowTypeEnd:"",style:y,labelStyle:"",classes:R,arrowheadStyle:D,labelpos:"c",labelType:L,thickness:$,look:c})}else q(i,S,l)}s.doc&&(n.trace("Adding nodes children "),W(s,s.doc,e,i,a,!o,c,l))},"dataFetcher"),st=i(()=>{X.clear(),J=0},"reset"),et="[*]",it="start",nt="[*]",rt="end",at="color",ot="fill",ct="bgFill",lt=",",ht=i(()=>new Map,"newClassesList"),ut=i(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dt=i(t=>JSON.parse(JSON.stringify(t)),"clone"),ft=(i(t=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=ht(),this.documents={root:ut()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=c,this.setAccTitle=l,this.getAccDescription=h,this.setAccDescription=u,this.setDiagramTitle=d,this.getDiagramTitle=f,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case _:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case g:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}const s=this.getStates(),e=r();st(),tt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,e.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const s=t.id.trim().split(","),e=t.styleClass.split(",");for(const i of s){let t=this.getState(i);if(!t){const s=i.trim();this.addState(s),t=this.getState(s)}t&&(t.styles=e.map(t=>{var s;return null==(s=t.replace(/;/g,""))?void 0:s.trim()}))}}setRootDoc(t){n.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,s,e){if(s.stmt===g)return this.docTranslator(t,s.state1,!0),void this.docTranslator(t,s.state2,!1);if(s.stmt===_&&(s.id===et?(s.id=t.id+(e?"_start":"_end"),s.start=e):s.id=s.id.trim()),s.stmt!==b&&s.stmt!==_||!s.doc)return;const i=[];let n=[];for(const r of s.doc)if(r.type===k){const t=dt(r);t.doc=dt(n),i.push(t),n=[]}else n.push(r);if(i.length>0&&n.length>0){const t={stmt:_,id:S(),type:"divider",doc:dt(n)};i.push(dt(t)),s.doc=i}s.doc.forEach(t=>this.docTranslator(s,t,!0))}getRootDocV2(){return this.docTranslator({id:b,stmt:b},{id:b,stmt:b,doc:this.rootDoc},!0),{id:b,doc:this.rootDoc}}addState(t,s=m,e=void 0,i=void 0,a=void 0,o=void 0,c=void 0,l=void 0){const h=null==t?void 0:t.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=e),t.type||(t.type=s)}else n.info("Adding state ",h,i),this.currentDocument.states.set(h,{stmt:_,id:h,descriptions:[],type:s,doc:e,note:a,classes:[],styles:[],textStyles:[]});if(i){n.info("Setting state description",h,i);(Array.isArray(i)?i:[i]).forEach(t=>this.addDescription(h,t.trim()))}if(a){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=a,t.note.text=p.sanitizeText(t.note.text,r())}if(o){n.info("Setting state classes",h,o);(Array.isArray(o)?o:[o]).forEach(t=>this.setCssClass(h,t.trim()))}if(c){n.info("Setting state styles",h,c);(Array.isArray(c)?c:[c]).forEach(t=>this.setStyle(h,t.trim()))}if(l){n.info("Setting state styles",h,c);(Array.isArray(l)?l:[l]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:ut()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=ht(),t||(this.links=new Map,T())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){n.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,s,e){this.links.set(t,{url:s,tooltip:e}),n.warn("Adding link",t,s,e)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===et?(this.startEndCount++,`${it}${this.startEndCount}`):t}startTypeIfNeeded(t="",s=m){return t===et?it:s}endIdIfNeeded(t=""){return t===nt?(this.startEndCount++,`${rt}${this.startEndCount}`):t}endTypeIfNeeded(t="",s=m){return t===nt?rt:s}addRelationObjs(t,s,e=""){const i=this.startIdIfNeeded(t.id.trim()),n=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(s.id.trim()),o=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(i,n,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,o,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:p.sanitizeText(e,r())})}addRelation(t,s,e){if("object"==typeof t&&"object"==typeof s)this.addRelationObjs(t,s,e);else if("string"==typeof t&&"string"==typeof s){const i=this.startIdIfNeeded(t.trim()),n=this.startTypeIfNeeded(t),a=this.endIdIfNeeded(s.trim()),o=this.endTypeIfNeeded(s);this.addState(i,n),this.addState(a,o),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:e?p.sanitizeText(e,r()):void 0})}}addDescription(t,s){var e;const i=this.currentDocument.states.get(t),n=s.startsWith(":")?s.replace(":","").trim():s;null==(e=null==i?void 0:i.descriptions)||e.push(p.sanitizeText(n,r()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,s=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const e=this.classes.get(t);s&&e&&s.split(lt).forEach(t=>{const s=t.replace(/([^;]*);/,"$1").trim();if(RegExp(at).exec(t)){const t=s.replace(ot,ct).replace(at,ot);e.textStyles.push(t)}e.styles.push(s)})}getClasses(){return this.classes}setCssClass(t,s){t.split(",").forEach(t=>{var e;let i=this.getState(t);if(!i){const s=t.trim();this.addState(s),i=this.getState(s)}null==(e=null==i?void 0:i.classes)||e.push(s)})}setStyle(t,s){var e,i;null==(i=null==(e=this.getState(t))?void 0:e.styles)||i.push(s)}setTextStyle(t,s){var e,i;null==(i=null==(e=this.getState(t))?void 0:e.textStyles)||i.push(s)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){var t;return(null==(t=this.getDirectionStatement())?void 0:t.value)??"TB"}setDirection(t){const s=this.getDirectionStatement();s?s.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=r();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:H(this.getRootDocV2())}}getConfig(){return r().state}},"StateDB"),t.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},t),St=i(t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,"getStyles");export{ft as S,E as a,z as b,St as s};
1
+ var t;import{g as s}from"./chunk-55IACEB6-BeMIObm3.js";import{s as e}from"./chunk-QN33PNHL-DuPwsSus.js";import{_ as i,l as n,c as r,r as a,u as o,a as c,b as l,g as h,s as u,p as d,q as f,T as S,k as p,y as T}from"./index-BvMYTiOr.js";var v=function(){var t=i(function(t,s,e,i){for(e=e||{},i=t.length;i--;e[t[i]]=s);return e},"o"),s=[1,2],e=[1,3],n=[1,4],r=[2,4],a=[1,9],o=[1,11],c=[1,16],l=[1,17],h=[1,18],u=[1,19],d=[1,33],f=[1,20],S=[1,21],p=[1,22],T=[1,23],v=[1,24],E=[1,26],_=[1,27],b=[1,28],g=[1,29],m=[1,30],k=[1,31],y=[1,32],D=[1,35],L=[1,36],$=[1,37],I=[1,38],A=[1,34],C=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],w=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],x=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],O={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:i(function(t,s,e,i,n,r,a){var o=r.length-1;switch(n){case 3:return i.setRootDoc(r[o]),r[o];case 4:this.$=[];break;case 5:"nl"!=r[o]&&(r[o-1].push(r[o]),this.$=r[o-1]);break;case 6:case 7:case 12:this.$=r[o];break;case 8:this.$="nl";break;case 13:const t=r[o-1];t.description=i.trimColon(r[o]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[o-2],state2:r[o]};break;case 15:const s=i.trimColon(r[o]);this.$={stmt:"relation",state1:r[o-3],state2:r[o-1],description:s};break;case 19:this.$={stmt:"state",id:r[o-3],type:"default",description:"",doc:r[o-1]};break;case 20:var c=r[o],l=r[o-2].trim();if(r[o].match(":")){var h=r[o].split(":");c=h[0],l=[l,h[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 21:this.$={stmt:"state",id:r[o-3],type:"default",description:r[o-5],doc:r[o-1]};break;case 22:this.$={stmt:"state",id:r[o],type:"fork"};break;case 23:this.$={stmt:"state",id:r[o],type:"join"};break;case 24:this.$={stmt:"state",id:r[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[o-1].trim(),note:{position:r[o-2].trim(),text:r[o].trim()}};break;case 29:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[o-3],url:r[o-2],tooltip:r[o-1]};break;case 33:this.$={stmt:"click",id:r[o-3],url:r[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[o-1].trim(),classes:r[o].trim()};break;case 36:this.$={stmt:"style",id:r[o-1].trim(),styleClass:r[o].trim()};break;case 37:this.$={stmt:"applyClass",id:r[o-1].trim(),styleClass:r[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[o-2].trim(),classes:[r[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:s,5:e,6:n},{1:[3]},{3:5,4:s,5:e,6:n},{3:6,4:s,5:e,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,7]),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(C,[2,11]),t(C,[2,12],{14:[1,40],15:[1,41]}),t(C,[2,16]),{18:[1,42]},t(C,[2,18],{20:[1,43]}),{23:[1,44]},t(C,[2,22]),t(C,[2,23]),t(C,[2,24]),t(C,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(C,[2,28]),{34:[1,49]},{36:[1,50]},t(C,[2,31]),{13:51,24:d,57:A},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(w,[2,44],{58:[1,56]}),t(w,[2,45],{58:[1,57]}),t(C,[2,38]),t(C,[2,39]),t(C,[2,40]),t(C,[2,41]),t(C,[2,6]),t(C,[2,13]),{13:58,24:d,57:A},t(C,[2,17]),t(x,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(C,[2,29]),t(C,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(C,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,72],22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(C,[2,34]),t(C,[2,35]),t(C,[2,36]),t(C,[2,37]),t(w,[2,46]),t(w,[2,47]),t(C,[2,15]),t(C,[2,19]),t(x,r,{7:78}),t(C,[2,26]),t(C,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,81],22:u,24:d,25:f,26:S,27:p,28:T,29:v,32:25,33:E,35:_,37:b,38:g,41:m,45:k,48:y,51:D,52:L,53:$,54:I,57:A},t(C,[2,32]),t(C,[2,33]),t(C,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:i(function(t,s){if(!s.recoverable){var e=new Error(t);throw e.hash=s,e}this.trace(t)},"parseError"),parse:i(function(t){var s=this,e=[0],n=[],r=[null],a=[],o=this.table,c="",l=0,h=0,u=a.slice.call(arguments,1),d=Object.create(this.lexer),f={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(f.yy[S]=this.yy[S]);d.setInput(t,f.yy),f.yy.lexer=d,f.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;a.push(p);var T=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=s.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){e.length=e.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),i(v,"lex");for(var E,_,b,g,m,k,y,D,L={};;){if(_=e[e.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==E&&(E=v()),b=o[_]&&o[_][E]),void 0===b||!b.length||!b[0]){var $="";for(m in D=[],o[_])this.terminals_[m]&&m>2&&D.push("'"+this.terminals_[m]+"'");$=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==E?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError($,{text:d.match,token:this.terminals_[E]||E,line:d.yylineno,loc:p,expected:D})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+E);switch(b[0]){case 1:e.push(E),r.push(d.yytext),a.push(d.yylloc),e.push(b[1]),E=null,h=d.yyleng,c=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(k=this.productions_[b[1]][1],L.$=r[r.length-k],L._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},T&&(L._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(g=this.performAction.apply(L,[c,h,l,f.yy,b[1],r,a].concat(u))))return g;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),a=a.slice(0,-1*k)),e.push(this.productions_[b[1]][0]),r.push(L.$),a.push(L._$),y=o[e[e.length-2]][e[e.length-1]],e.push(y);break;case 3:return!0}}return!0},"parse")},N=function(){return{EOF:1,parseError:i(function(t,s){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,s)},"parseError"),setInput:i(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var s=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===i.length?this.yylloc.first_column:0)+i[i.length-e.length].length-e[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+s+"^"},"showPosition"),test_match:i(function(t,s){var e,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,s,e,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((e=this._input.match(this.rules[n[r]]))&&(!s||e[0].length>s[0].length)){if(s=e,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,n[r])))return t;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(t=this.test_match(s,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(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:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(t,s,e,i){switch(e){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),s.yytext=s.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),s.yytext=s.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),s.yytext=s.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),s.yytext=s.yytext.substr(2).trim(),31;case 70:return this.popState(),s.yytext=s.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return s.yytext=s.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function R(){this.yy={}}return O.lexer=N,i(R,"Parser"),R.prototype=O,O.Parser=R,new R}();v.parser=v;var E=v,_="state",b="root",g="relation",m="default",k="divider",y="fill:none",D="fill: #333",L="text",$="normal",I="rect",A="rectWithTitle",C="divider",w="roundedWithTitle",x="statediagram",O=`${x}-state`,N="transition",R=`${N} note-edge`,F=`${x}-note`,Y=`${x}-cluster`,G=`${x}-cluster-alt`,P="parent",j="note",B="----",U=`${B}${j}`,M=`${B}${P}`,H=i((t,s="TB")=>{if(!t.doc)return s;let e=s;for(const i of t.doc)"dir"===i.stmt&&(e=i.value);return e},"getDir"),z={getClasses:i(function(t,s){return s.db.getClasses()},"getClasses"),draw:i(async function(t,i,c,l){n.info("REF0:"),n.info("Drawing state diagram (v2)",i);const{securityLevel:h,state:u,layout:d}=r();l.db.extract(l.db.getRootDocV2());const f=l.db.getData(),S=s(i,h);f.type=l.type,f.layoutAlgorithm=d,f.nodeSpacing=(null==u?void 0:u.nodeSpacing)||50,f.rankSpacing=(null==u?void 0:u.rankSpacing)||50,f.markers=["barb"],f.diagramId=i,await a(f,S);try{("function"==typeof l.db.getLinks?l.db.getLinks():new Map).forEach((t,s)=>{var e;const i="string"==typeof s?s:"string"==typeof(null==s?void 0:s.id)?s.id:"";if(!i)return void n.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(s));const r=null==(e=S.node())?void 0:e.querySelectorAll("g");let a;if(null==r||r.forEach(t=>{var s;(null==(s=t.textContent)?void 0:s.trim())===i&&(a=t)}),!a)return void n.warn("⚠️ Could not find node matching text:",i);const o=a.parentNode;if(!o)return void n.warn("⚠️ Node has no parent, cannot wrap:",i);const c=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),c.setAttribute("target","_blank"),t.tooltip){const s=t.tooltip.replace(/^"+|"+$/g,"");c.setAttribute("title",s)}o.replaceChild(c,a),c.appendChild(a),n.info("🔗 Wrapped node in <a> tag for:",i,t.url)})}catch(p){n.error("❌ Error injecting clickable links:",p)}o.insertTitle(S,"statediagramTitleText",(null==u?void 0:u.titleTopMargin)??25,l.db.getDiagramTitle()),e(S,8,x,(null==u?void 0:u.useMaxWidth)??!0)},"draw"),getDir:H},X=new Map,J=0;function K(t="",s=0,e="",i=B){return`state-${t}${null!==e&&e.length>0?`${i}${e}`:""}-${s}`}i(K,"stateDomId");var W=i((t,s,e,i,a,o,c,l)=>{n.trace("items",s),s.forEach(s=>{switch(s.stmt){case _:case m:tt(t,s,e,i,a,o,c,l);break;case g:{tt(t,s.state1,e,i,a,o,c,l),tt(t,s.state2,e,i,a,o,c,l);const n={id:"edge"+J,start:s.state1.id,end:s.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:y,labelStyle:"",label:p.sanitizeText(s.description??"",r()),arrowheadStyle:D,labelpos:"c",labelType:L,thickness:$,classes:N,look:c};a.push(n),J++}}})},"setupDoc"),V=i((t,s="TB")=>{let e=s;if(t.doc)for(const i of t.doc)"dir"===i.stmt&&(e=i.value);return e},"getDir");function q(t,s,e){if(!s.id||"</join></fork>"===s.id||"</choice>"===s.id)return;s.cssClasses&&(Array.isArray(s.cssCompiledStyles)||(s.cssCompiledStyles=[]),s.cssClasses.split(" ").forEach(t=>{const i=e.get(t);i&&(s.cssCompiledStyles=[...s.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===s.id);i?Object.assign(i,s):t.push(s)}function Q(t){var s;return(null==(s=null==t?void 0:t.classes)?void 0:s.join(" "))??""}function Z(t){return(null==t?void 0:t.styles)??[]}i(q,"insertOrUpdateNode"),i(Q,"getClassesFromDbInfo"),i(Z,"getStylesFromDbInfo");var tt=i((t,s,e,i,a,o,c,l)=>{var h,u,d;const f=s.id,S=e.get(f),T=Q(S),v=Z(S),E=r();if(n.info("dataFetcher parsedItem",s,S,v),"root"!==f){let e=I;!0===s.start?e="stateStart":!1===s.start&&(e="stateEnd"),s.type!==m&&(e=s.type),X.get(f)||X.set(f,{id:f,shape:e,description:p.sanitizeText(f,E),cssClasses:`${T} ${O}`,cssStyles:v});const r=X.get(f);s.description&&(Array.isArray(r.description)?(r.shape=A,r.description.push(s.description)):(null==(h=r.description)?void 0:h.length)&&r.description.length>0?(r.shape=A,r.description===f?r.description=[s.description]:r.description=[r.description,s.description]):(r.shape=I,r.description=s.description),r.description=p.sanitizeTextOrArray(r.description,E)),1===(null==(u=r.description)?void 0:u.length)&&r.shape===A&&("group"===r.type?r.shape=w:r.shape=I),!r.type&&s.doc&&(n.info("Setting cluster for XCX",f,V(s)),r.type="group",r.isGroup=!0,r.dir=V(s),r.shape=s.type===k?C:w,r.cssClasses=`${r.cssClasses} ${Y} ${o?G:""}`);const S={labelStyle:"",shape:r.shape,label:r.description,cssClasses:r.cssClasses,cssCompiledStyles:[],cssStyles:r.cssStyles,id:f,dir:r.dir,domId:K(f,J),type:r.type,isGroup:"group"===r.type,padding:8,rx:10,ry:10,look:c};if(S.shape===C&&(S.label=""),t&&"root"!==t.id&&(n.trace("Setting node ",f," to be child of its parent ",t.id),S.parentId=t.id),S.centerLabel=!0,s.note){const t={labelStyle:"",shape:"note",label:s.note.text,cssClasses:F,cssStyles:[],cssCompiledStyles:[],id:f+U+"-"+J,domId:K(f,J,j),type:r.type,isGroup:"group"===r.type,padding:null==(d=E.flowchart)?void 0:d.padding,look:c,position:s.note.position},e=f+M,n={labelStyle:"",shape:"noteGroup",label:s.note.text,cssClasses:r.cssClasses,cssStyles:[],id:f+M,domId:K(f,J,P),type:"group",isGroup:!0,padding:16,look:c,position:s.note.position};J++,n.id=e,t.parentId=e,q(i,n,l),q(i,t,l),q(i,S,l);let o=f,h=t.id;"left of"===s.note.position&&(o=t.id,h=f),a.push({id:o+"-"+h,start:o,end:h,arrowhead:"none",arrowTypeEnd:"",style:y,labelStyle:"",classes:R,arrowheadStyle:D,labelpos:"c",labelType:L,thickness:$,look:c})}else q(i,S,l)}s.doc&&(n.trace("Adding nodes children "),W(s,s.doc,e,i,a,!o,c,l))},"dataFetcher"),st=i(()=>{X.clear(),J=0},"reset"),et="[*]",it="start",nt="[*]",rt="end",at="color",ot="fill",ct="bgFill",lt=",",ht=i(()=>new Map,"newClassesList"),ut=i(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dt=i(t=>JSON.parse(JSON.stringify(t)),"clone"),ft=(i(t=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=ht(),this.documents={root:ut()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=c,this.setAccTitle=l,this.getAccDescription=h,this.setAccDescription=u,this.setDiagramTitle=d,this.getDiagramTitle=f,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case _:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case g:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}const s=this.getStates(),e=r();st(),tt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,e.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const s=t.id.trim().split(","),e=t.styleClass.split(",");for(const i of s){let t=this.getState(i);if(!t){const s=i.trim();this.addState(s),t=this.getState(s)}t&&(t.styles=e.map(t=>{var s;return null==(s=t.replace(/;/g,""))?void 0:s.trim()}))}}setRootDoc(t){n.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,s,e){if(s.stmt===g)return this.docTranslator(t,s.state1,!0),void this.docTranslator(t,s.state2,!1);if(s.stmt===_&&(s.id===et?(s.id=t.id+(e?"_start":"_end"),s.start=e):s.id=s.id.trim()),s.stmt!==b&&s.stmt!==_||!s.doc)return;const i=[];let n=[];for(const r of s.doc)if(r.type===k){const t=dt(r);t.doc=dt(n),i.push(t),n=[]}else n.push(r);if(i.length>0&&n.length>0){const t={stmt:_,id:S(),type:"divider",doc:dt(n)};i.push(dt(t)),s.doc=i}s.doc.forEach(t=>this.docTranslator(s,t,!0))}getRootDocV2(){return this.docTranslator({id:b,stmt:b},{id:b,stmt:b,doc:this.rootDoc},!0),{id:b,doc:this.rootDoc}}addState(t,s=m,e=void 0,i=void 0,a=void 0,o=void 0,c=void 0,l=void 0){const h=null==t?void 0:t.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=e),t.type||(t.type=s)}else n.info("Adding state ",h,i),this.currentDocument.states.set(h,{stmt:_,id:h,descriptions:[],type:s,doc:e,note:a,classes:[],styles:[],textStyles:[]});if(i){n.info("Setting state description",h,i);(Array.isArray(i)?i:[i]).forEach(t=>this.addDescription(h,t.trim()))}if(a){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=a,t.note.text=p.sanitizeText(t.note.text,r())}if(o){n.info("Setting state classes",h,o);(Array.isArray(o)?o:[o]).forEach(t=>this.setCssClass(h,t.trim()))}if(c){n.info("Setting state styles",h,c);(Array.isArray(c)?c:[c]).forEach(t=>this.setStyle(h,t.trim()))}if(l){n.info("Setting state styles",h,c);(Array.isArray(l)?l:[l]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:ut()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=ht(),t||(this.links=new Map,T())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){n.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,s,e){this.links.set(t,{url:s,tooltip:e}),n.warn("Adding link",t,s,e)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===et?(this.startEndCount++,`${it}${this.startEndCount}`):t}startTypeIfNeeded(t="",s=m){return t===et?it:s}endIdIfNeeded(t=""){return t===nt?(this.startEndCount++,`${rt}${this.startEndCount}`):t}endTypeIfNeeded(t="",s=m){return t===nt?rt:s}addRelationObjs(t,s,e=""){const i=this.startIdIfNeeded(t.id.trim()),n=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(s.id.trim()),o=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(i,n,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,o,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:p.sanitizeText(e,r())})}addRelation(t,s,e){if("object"==typeof t&&"object"==typeof s)this.addRelationObjs(t,s,e);else if("string"==typeof t&&"string"==typeof s){const i=this.startIdIfNeeded(t.trim()),n=this.startTypeIfNeeded(t),a=this.endIdIfNeeded(s.trim()),o=this.endTypeIfNeeded(s);this.addState(i,n),this.addState(a,o),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:e?p.sanitizeText(e,r()):void 0})}}addDescription(t,s){var e;const i=this.currentDocument.states.get(t),n=s.startsWith(":")?s.replace(":","").trim():s;null==(e=null==i?void 0:i.descriptions)||e.push(p.sanitizeText(n,r()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,s=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const e=this.classes.get(t);s&&e&&s.split(lt).forEach(t=>{const s=t.replace(/([^;]*);/,"$1").trim();if(RegExp(at).exec(t)){const t=s.replace(ot,ct).replace(at,ot);e.textStyles.push(t)}e.styles.push(s)})}getClasses(){return this.classes}setCssClass(t,s){t.split(",").forEach(t=>{var e;let i=this.getState(t);if(!i){const s=t.trim();this.addState(s),i=this.getState(s)}null==(e=null==i?void 0:i.classes)||e.push(s)})}setStyle(t,s){var e,i;null==(i=null==(e=this.getState(t))?void 0:e.styles)||i.push(s)}setTextStyle(t,s){var e,i;null==(i=null==(e=this.getState(t))?void 0:e.textStyles)||i.push(s)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){var t;return(null==(t=this.getDirectionStatement())?void 0:t.value)??"TB"}setDirection(t){const s=this.getDirectionStatement();s?s.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=r();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:H(this.getRootDocV2())}}getConfig(){return r().state}},"StateDB"),t.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},t),St=i(t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,"getStyles");export{ft as S,E as a,z as b,St as s};
@@ -1 +1 @@
1
- import{_ as n}from"./index-5wVqr2Ny.js";var e=n(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles");export{e as g};
1
+ import{_ as n}from"./index-BvMYTiOr.js";var e=n(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles");export{e as g};
@@ -1 +1 @@
1
- import{_ as i,e as t,l as e}from"./index-5wVqr2Ny.js";var o=i((i,o,h,n)=>{i.attr("class",h);const{width:r,height:d,x:c,y:w}=s(i,o);t(i,d,r,n);const x=a(c,w,r,d,o);i.attr("viewBox",x),e.debug(`viewBox configured: ${x} with padding: ${o}`)},"setupViewPortForSVG"),s=i((i,t)=>{var e;const o=(null==(e=i.node())?void 0:e.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+2*t,height:o.height+2*t,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),a=i((i,t,e,o,s)=>`${i-s} ${t-s} ${e} ${o}`,"createViewBox");export{o as s};
1
+ import{_ as i,e as t,l as e}from"./index-BvMYTiOr.js";var o=i((i,o,h,n)=>{i.attr("class",h);const{width:r,height:d,x:c,y:w}=s(i,o);t(i,d,r,n);const x=a(c,w,r,d,o);i.attr("viewBox",x),e.debug(`viewBox configured: ${x} with padding: ${o}`)},"setupViewPortForSVG"),s=i((i,t)=>{var e;const o=(null==(e=i.node())?void 0:e.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+2*t,height:o.height+2*t,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),a=i((i,t,e,o,s)=>`${i-s} ${t-s} ${e} ${o}`,"createViewBox");export{o as s};
@@ -1 +1 @@
1
- var t;import{_ as s}from"./index-5wVqr2Ny.js";var r=(s(t=class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}},"ImperativeState"),t);export{r as I};
1
+ var t;import{_ as s}from"./index-BvMYTiOr.js";var r=(s(t=class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}},"ImperativeState"),t);export{r as I};
@@ -1 +1 @@
1
- import{_ as t,U as e,j as s}from"./index-5wVqr2Ny.js";var a=t((t,e)=>{const s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(const a in e.attrs)s.attr(a,e.attrs[a]);return e.class&&s.attr("class",e.class),s},"drawRect"),r=t((t,e)=>{const s={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};a(t,s).lower()},"drawBackgroundRect"),n=t((t,s)=>{const a=s.text.replace(e," "),r=t.append("text");r.attr("x",s.x),r.attr("y",s.y),r.attr("class","legend"),r.style("text-anchor",s.anchor),s.class&&r.attr("class",s.class);const n=r.append("tspan");return n.attr("x",s.x+2*s.textMargin),n.text(a),r},"drawText"),c=t((t,e,a,r)=>{const n=t.append("image");n.attr("x",e),n.attr("y",a);const c=s.sanitizeUrl(r);n.attr("xlink:href",c)},"drawImage"),o=t((t,e,a,r)=>{const n=t.append("use");n.attr("x",e),n.attr("y",a);const c=s.sanitizeUrl(r);n.attr("xlink:href",`#${c}`)},"drawEmbeddedImage"),x=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),i=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{r as a,i as b,o as c,a as d,c as e,n as f,x as g};
1
+ import{_ as t,U as e,j as s}from"./index-BvMYTiOr.js";var a=t((t,e)=>{const s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(const a in e.attrs)s.attr(a,e.attrs[a]);return e.class&&s.attr("class",e.class),s},"drawRect"),r=t((t,e)=>{const s={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};a(t,s).lower()},"drawBackgroundRect"),n=t((t,s)=>{const a=s.text.replace(e," "),r=t.append("text");r.attr("x",s.x),r.attr("y",s.y),r.attr("class","legend"),r.style("text-anchor",s.anchor),s.class&&r.attr("class",s.class);const n=r.append("tspan");return n.attr("x",s.x+2*s.textMargin),n.text(a),r},"drawText"),c=t((t,e,a,r)=>{const n=t.append("image");n.attr("x",e),n.attr("y",a);const c=s.sanitizeUrl(r);n.attr("xlink:href",c)},"drawImage"),o=t((t,e,a,r)=>{const n=t.append("use");n.attr("x",e),n.attr("y",a);const c=s.sanitizeUrl(r);n.attr("xlink:href",`#${c}`)},"drawEmbeddedImage"),x=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),i=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{r as a,i as b,o as c,a as d,c as e,n as f,x as g};
@@ -0,0 +1 @@
1
+ import{s as r,c as s,a as t,C as e}from"./chunk-B4BG7PRW-B6cIgi7d.js";import{_ as i}from"./index-BvMYTiOr.js";import"./chunk-FMBD7UC4-67W1cNu_.js";import"./chunk-55IACEB6-BeMIObm3.js";import"./chunk-QN33PNHL-DuPwsSus.js";var n={parser:t,get db(){return new e},renderer:s,styles:r,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
@@ -0,0 +1 @@
1
+ import{s as r,c as s,a as t,C as e}from"./chunk-B4BG7PRW-B6cIgi7d.js";import{_ as i}from"./index-BvMYTiOr.js";import"./chunk-FMBD7UC4-67W1cNu_.js";import"./chunk-55IACEB6-BeMIObm3.js";import"./chunk-QN33PNHL-DuPwsSus.js";var n={parser:t,get db(){return new e},renderer:s,styles:r,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
@@ -0,0 +1 @@
1
+ import{b as r}from"./graph-yEZO5As9.js";function o(o){return r(o,4)}export{o as c};