cc-viewer 1.6.199 → 1.6.201

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 (65) hide show
  1. package/dist/assets/App-B0Cfe4hA.js +1 -0
  2. package/dist/assets/{App-fG2r3jFq.css → App-DOYmReD4.css} +1 -1
  3. package/dist/assets/{AppHeader-pu5K74SB.css → AppHeader-auOOOaQm.css} +2 -2
  4. package/dist/assets/AppHeader.module-CDgQaFoO.js +2 -0
  5. package/dist/assets/{Mobile-DnvC6H2O.js → Mobile-CsKFJYE2.js} +1 -1
  6. package/dist/assets/{_baseUniq-Cnd-_Qe2.js → _baseUniq-C73FOqig.js} +1 -1
  7. package/dist/assets/{arc-CPVCmYmr.js → arc-DAWkd4Du.js} +1 -1
  8. package/dist/assets/{architectureDiagram-Q4EWVU46-CTmPWolC.js → architectureDiagram-Q4EWVU46-CXA8GRiC.js} +1 -1
  9. package/dist/assets/{blockDiagram-DXYQGD6D-BYUa2ljj.js → blockDiagram-DXYQGD6D-BH7SCCtR.js} +1 -1
  10. package/dist/assets/{c4Diagram-AHTNJAMY-BBfrYhDN.js → c4Diagram-AHTNJAMY-DjidAThD.js} +1 -1
  11. package/dist/assets/{channel-D1pwh2Yq.js → channel-fMMU54GK.js} +1 -1
  12. package/dist/assets/{chunk-4BX2VUAB-DYCV-6PI.js → chunk-4BX2VUAB-C7VtouVc.js} +1 -1
  13. package/dist/assets/{chunk-4TB4RGXK-DZWVouv1.js → chunk-4TB4RGXK-E8ZyU2MN.js} +1 -1
  14. package/dist/assets/{chunk-55IACEB6-BnetqbRo.js → chunk-55IACEB6-kKpXz88M.js} +1 -1
  15. package/dist/assets/{chunk-EDXVE4YY-CL4WCxSM.js → chunk-EDXVE4YY-DGxEwZ4m.js} +1 -1
  16. package/dist/assets/{chunk-FMBD7UC4-DLmQmJbs.js → chunk-FMBD7UC4-CD8bIwZQ.js} +1 -1
  17. package/dist/assets/{chunk-OYMX7WX6-B7jkMtrd.js → chunk-OYMX7WX6-gYD4Acaz.js} +1 -1
  18. package/dist/assets/{chunk-QZHKN3VN-tscrjv7L.js → chunk-QZHKN3VN-BjwG7rZm.js} +1 -1
  19. package/dist/assets/{chunk-YZCP3GAM-BreqZYYH.js → chunk-YZCP3GAM-QsYUvoBQ.js} +1 -1
  20. package/dist/assets/classDiagram-6PBFFD2Q-BIdWZE2B.js +1 -0
  21. package/dist/assets/classDiagram-v2-HSJHXN6E-BIdWZE2B.js +1 -0
  22. package/dist/assets/clone-DUPgDT2x.js +1 -0
  23. package/dist/assets/{cose-bilkent-S5V4N54A-BqETFkWe.js → cose-bilkent-S5V4N54A-9ctKMOYC.js} +1 -1
  24. package/dist/assets/{dagre-KV5264BT-C1fQhqsm.js → dagre-KV5264BT-By2HwLaW.js} +1 -1
  25. package/dist/assets/{diagram-5BDNPKRD-BQ_AArZ4.js → diagram-5BDNPKRD-BpgOHENA.js} +1 -1
  26. package/dist/assets/{diagram-G4DWMVQ6-ETR1atoi.js → diagram-G4DWMVQ6-B2x2muJb.js} +1 -1
  27. package/dist/assets/{diagram-MMDJMWI5-BS5YlnF7.js → diagram-MMDJMWI5-un9PMQTJ.js} +1 -1
  28. package/dist/assets/{diagram-TYMM5635-DgEDTcSl.js → diagram-TYMM5635-CoSUmrbF.js} +1 -1
  29. package/dist/assets/{erDiagram-SMLLAGMA-BfJzSJyz.js → erDiagram-SMLLAGMA-D9ycUUrR.js} +1 -1
  30. package/dist/assets/{flowDiagram-DWJPFMVM-CmZyhVxI.js → flowDiagram-DWJPFMVM-CMwSrS0j.js} +1 -1
  31. package/dist/assets/{ganttDiagram-T4ZO3ILL-CyCgF8EH.js → ganttDiagram-T4ZO3ILL-dNzPWJ2v.js} +1 -1
  32. package/dist/assets/{gitGraphDiagram-UUTBAWPF-Ch_lyUYI.js → gitGraphDiagram-UUTBAWPF-5jScxIeV.js} +1 -1
  33. package/dist/assets/{graph-DONA5GRX.js → graph-CSAV79cR.js} +1 -1
  34. package/dist/assets/{index-CP_dJQHF.js → index-BnE1kmli.js} +2 -2
  35. package/dist/assets/{infoDiagram-42DDH7IO-sWbLdJMA.js → infoDiagram-42DDH7IO-BBwe5zCb.js} +1 -1
  36. package/dist/assets/{ishikawaDiagram-UXIWVN3A-B1-Sul49.js → ishikawaDiagram-UXIWVN3A-DxpzhU4G.js} +1 -1
  37. package/dist/assets/{journeyDiagram-VCZTEJTY-B2GzVR2v.js → journeyDiagram-VCZTEJTY-BiLOryhx.js} +1 -1
  38. package/dist/assets/{kanban-definition-6JOO6SKY-BQ369gG9.js → kanban-definition-6JOO6SKY-BwMtkCnE.js} +1 -1
  39. package/dist/assets/{layout-Dg4txuWO.js → layout-DEZivYZo.js} +1 -1
  40. package/dist/assets/{linear-CB6_fADN.js → linear-8H25OaNu.js} +1 -1
  41. package/dist/assets/{mermaid.core-fx56L749.js → mermaid.core-O3WUNQR6.js} +2 -2
  42. package/dist/assets/{min-Cfm_qmEy.js → min-BDNYdllt.js} +1 -1
  43. package/dist/assets/{mindmap-definition-QFDTVHPH-CucfYr3R.js → mindmap-definition-QFDTVHPH-DLa1a2PT.js} +1 -1
  44. package/dist/assets/{pieDiagram-DEJITSTG-B1JuDmET.js → pieDiagram-DEJITSTG-C7a0wkId.js} +1 -1
  45. package/dist/assets/{quadrantDiagram-34T5L4WZ-D45nu4Jo.js → quadrantDiagram-34T5L4WZ-qaO4n-DR.js} +1 -1
  46. package/dist/assets/{requirementDiagram-MS252O5E-C4MR71jH.js → requirementDiagram-MS252O5E-B5elAix1.js} +1 -1
  47. package/dist/assets/{sankeyDiagram-XADWPNL6-BjN93eui.js → sankeyDiagram-XADWPNL6-BxAAO2OT.js} +1 -1
  48. package/dist/assets/{sequenceDiagram-FGHM5R23-DfNydjTE.js → sequenceDiagram-FGHM5R23-D4epWe89.js} +1 -1
  49. package/dist/assets/{stateDiagram-FHFEXIEX-Cth1bRU5.js → stateDiagram-FHFEXIEX-DgLET5fE.js} +1 -1
  50. package/dist/assets/{stateDiagram-v2-QKLJ7IA2-DRKS8TSe.js → stateDiagram-v2-QKLJ7IA2-Ci28Wp9J.js} +1 -1
  51. package/dist/assets/{timeline-definition-GMOUNBTQ-CGI0k2Go.js → timeline-definition-GMOUNBTQ-8JmSnBLT.js} +1 -1
  52. package/dist/assets/{vennDiagram-DHZGUBPP-C1-dVDob.js → vennDiagram-DHZGUBPP-DYVoEvAU.js} +1 -1
  53. package/dist/assets/{wardley-RL74JXVD-Cw6grnZ8.js → wardley-RL74JXVD-DS_huD5U.js} +1 -1
  54. package/dist/assets/{wardleyDiagram-NUSXRM2D-Dz6uGDTV.js → wardleyDiagram-NUSXRM2D-BldFmHzV.js} +1 -1
  55. package/dist/assets/{xychartDiagram-5P7HB3ND-B_Pl_Y8E.js → xychartDiagram-5P7HB3ND-DS97a-id.js} +1 -1
  56. package/dist/index.html +1 -1
  57. package/interceptor.js +141 -10
  58. package/package.json +1 -1
  59. package/proxy.js +8 -0
  60. package/server.js +20 -7
  61. package/dist/assets/App-P57OfZoY.js +0 -1
  62. package/dist/assets/AppHeader.module-BaWqwKOb.js +0 -2
  63. package/dist/assets/classDiagram-6PBFFD2Q-DNn_1CVl.js +0 -1
  64. package/dist/assets/classDiagram-v2-HSJHXN6E-DNn_1CVl.js +0 -1
  65. package/dist/assets/clone-6rNpdByw.js +0 -1
@@ -1 +1 @@
1
- var _a,_b;import{g as getIconStyles}from"./chunk-FMBD7UC4-DLmQmJbs.js";import{c as createTooltip}from"./chunk-YZCP3GAM-BreqZYYH.js";import{g as getDiagramElement}from"./chunk-55IACEB6-BnetqbRo.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-CL4WCxSM.js";import{_ as __name,l as log,c as getConfig2,o as getRegisteredLayoutAlgorithm,r as render,u as utils_default,d as select,b as setAccTitle,a as getAccTitle,s as setAccDescription,g as getAccDescription,p as setDiagramTitle,q as getDiagramTitle,k as common_default,y as clear,x as getEdgeId,i as sanitizeText,P as parseGenericTypes}from"./mermaid.core-fx56L749.js";import{p as purify}from"./vendor-markdown-Bpu4AByL.js";var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,18],$V1=[1,19],$V2=[1,20],$V3=[1,41],$V4=[1,26],$V5=[1,42],$V6=[1,24],$V7=[1,25],$V8=[1,32],$V9=[1,33],$Va=[1,34],$Vb=[1,45],$Vc=[1,35],$Vd=[1,36],$Ve=[1,37],$Vf=[1,38],$Vg=[1,27],$Vh=[1,28],$Vi=[1,29],$Vj=[1,30],$Vk=[1,31],$Vl=[1,44],$Vm=[1,46],$Vn=[1,43],$Vo=[1,47],$Vp=[1,9],$Vq=[1,8,9],$Vr=[1,58],$Vs=[1,59],$Vt=[1,60],$Vu=[1,61],$Vv=[1,62],$Vw=[1,63],$Vx=[1,64],$Vy=[1,8,9,41],$Vz=[1,77],$VA=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],$VB=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],$VC=[13,60,86,100,102,103],$VD=[13,60,73,74,86,100,102,103],$VE=[13,60,68,69,70,71,72,86,100,102,103],$VF=[1,102],$VG=[1,120],$VH=[1,116],$VI=[1,112],$VJ=[1,118],$VK=[1,113],$VL=[1,114],$VM=[1,115],$VN=[1,117],$VO=[1,119],$VP=[22,50,60,61,82,86,87,88,89,90],$VQ=[1,8,9,39,41,44,46],$VR=[1,8,9,22],$VS=[1,150],$VT=[1,8,9,61],$VU=[1,8,9,22,50,60,61,82,86,87,88,89,90],parser2={trace:__name(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,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE: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:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",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],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,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:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 8:this.$=$$[$0-1];break;case 9:case 10:case 13:case 15:this.$=$$[$0];break;case 11:case 14:this.$=$$[$0-2]+"."+$$[$0];break;case 12:case 16:case 106:this.$=$$[$0-1]+$$[$0];break;case 17:case 18:this.$=$$[$0-1]+"~"+$$[$0]+"~";break;case 19:yy.addRelation($$[$0]);break;case 20:$$[$0-1].title=yy.cleanupLabel($$[$0]),yy.addRelation($$[$0-1]);break;case 31:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 32:case 33:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 34:yy.addClassesToNamespace($$[$0-3],$$[$0-1][0],$$[$0-1][1]);break;case 35:yy.addClassesToNamespace($$[$0-4],$$[$0-1][0],$$[$0-1][1]);break;case 36:this.$=$$[$0],yy.addNamespace($$[$0]);break;case 37:this.$=[[$$[$0]],[]];break;case 38:this.$=[[$$[$0-1]],[]];break;case 39:$$[$0][0].unshift($$[$0-2]),this.$=$$[$0];break;case 40:this.$=[[],[$$[$0]]];break;case 41:this.$=[[],[$$[$0-1]]];break;case 42:$$[$0][1].unshift($$[$0-2]),this.$=$$[$0];break;case 44:yy.setCssClass($$[$0-2],$$[$0]);break;case 45:yy.addMembers($$[$0-3],$$[$0-1]);break;case 47:yy.setCssClass($$[$0-5],$$[$0-3]),yy.addMembers($$[$0-5],$$[$0-1]);break;case 48:yy.addAnnotation($$[$0-3],$$[$0-1]);break;case 49:yy.addAnnotation($$[$0-6],$$[$0-4]),yy.addMembers($$[$0-6],$$[$0-1]);break;case 50:yy.addAnnotation($$[$0-5],$$[$0-3]);break;case 51:this.$=$$[$0],yy.addClass($$[$0]);break;case 52:this.$=$$[$0-1],yy.addClass($$[$0-1]),yy.setClassLabel($$[$0-1],$$[$0]);break;case 56:yy.addAnnotation($$[$0],$$[$0-2]);break;case 57:case 70:case 103:this.$=[$$[$0]];break;case 58:$$[$0].push($$[$0-1]),this.$=$$[$0];break;case 59:case 61:case 62:break;case 60:yy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));break;case 63:this.$={id1:$$[$0-2],id2:$$[$0],relation:$$[$0-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:$$[$0-3],id2:$$[$0],relation:$$[$0-1],relationTitle1:$$[$0-2],relationTitle2:"none"};break;case 65:this.$={id1:$$[$0-3],id2:$$[$0],relation:$$[$0-2],relationTitle1:"none",relationTitle2:$$[$0-1]};break;case 66:this.$={id1:$$[$0-4],id2:$$[$0],relation:$$[$0-2],relationTitle1:$$[$0-3],relationTitle2:$$[$0-1]};break;case 67:this.$=yy.addNote($$[$0],$$[$0-1]);break;case 68:this.$=yy.addNote($$[$0]);break;case 69:this.$=$$[$0-2],yy.defineClass($$[$0-1],$$[$0]);break;case 71:this.$=$$[$0-2].concat([$$[$0]]);break;case 72:yy.setDirection("TB");break;case 73:yy.setDirection("BT");break;case 74:yy.setDirection("RL");break;case 75:yy.setDirection("LR");break;case 76:this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]};break;case 77:this.$={type1:"none",type2:$$[$0],lineType:$$[$0-1]};break;case 78:this.$={type1:$$[$0-1],type2:"none",lineType:$$[$0]};break;case 79:this.$={type1:"none",type2:"none",lineType:$$[$0]};break;case 80:this.$=yy.relationType.AGGREGATION;break;case 81:this.$=yy.relationType.EXTENSION;break;case 82:this.$=yy.relationType.COMPOSITION;break;case 83:this.$=yy.relationType.DEPENDENCY;break;case 84:this.$=yy.relationType.LOLLIPOP;break;case 85:this.$=yy.lineType.LINE;break;case 86:this.$=yy.lineType.DOTTED_LINE;break;case 87:case 93:this.$=$$[$0-2],yy.setClickEvent($$[$0-1],$$[$0]);break;case 88:case 94:this.$=$$[$0-3],yy.setClickEvent($$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-2],$$[$0]);break;case 89:this.$=$$[$0-2],yy.setLink($$[$0-1],$$[$0]);break;case 90:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0-1],$$[$0]);break;case 91:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-2],$$[$0]);break;case 92:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-2],$$[$0]),yy.setTooltip($$[$0-3],$$[$0-1]);break;case 95:this.$=$$[$0-3],yy.setClickEvent($$[$0-2],$$[$0-1],$$[$0]);break;case 96:this.$=$$[$0-4],yy.setClickEvent($$[$0-3],$$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-3],$$[$0]);break;case 97:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0]);break;case 98:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-1],$$[$0]);break;case 99:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-1]),yy.setTooltip($$[$0-3],$$[$0]);break;case 100:this.$=$$[$0-5],yy.setLink($$[$0-4],$$[$0-2],$$[$0]),yy.setTooltip($$[$0-4],$$[$0-1]);break;case 101:this.$=$$[$0-2],yy.setCssStyle($$[$0-1],$$[$0]);break;case 102:yy.setCssClass($$[$0-1],$$[$0]);break;case 104:$$[$0-2].push($$[$0]),this.$=$$[$0-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:$V0,35:$V1,37:$V2,38:22,42:$V3,43:23,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},o($Vp,[2,5],{8:[1,48]}),{8:[1,49]},o($Vq,[2,19],{22:[1,50]}),o($Vq,[2,21]),o($Vq,[2,22]),o($Vq,[2,23]),o($Vq,[2,24]),o($Vq,[2,25]),o($Vq,[2,26]),o($Vq,[2,27]),o($Vq,[2,28]),o($Vq,[2,29]),o($Vq,[2,30]),{34:[1,51]},{36:[1,52]},o($Vq,[2,33]),o($Vq,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv,73:$Vw,74:$Vx}),{39:[1,65]},o($Vy,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),o($Vq,[2,61]),o($Vq,[2,62]),{16:69,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{16:39,17:40,19:70,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:71,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:72,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{13:$Vz,55:76},{58:78,60:[1,79]},o($Vq,[2,72]),o($Vq,[2,73]),o($Vq,[2,74]),o($Vq,[2,75]),o($VA,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo}),o($VA,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:87,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VB,[2,129]),o($VB,[2,130]),o($VB,[2,131]),o($VB,[2,132]),o([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),o($Vp,[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:88,33:$V0,35:$V1,37:$V2,42:$V3,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo}),{5:89,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:$V0,35:$V1,37:$V2,38:22,42:$V3,43:23,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($Vq,[2,20]),o($Vq,[2,31]),o($Vq,[2,32]),{13:[1,91],16:39,17:40,19:90,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{53:92,66:56,67:57,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv,73:$Vw,74:$Vx},o($Vq,[2,60]),{67:93,73:$Vw,74:$Vx},o($VC,[2,79],{66:94,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv}),o($VD,[2,80]),o($VD,[2,81]),o($VD,[2,82]),o($VD,[2,83]),o($VD,[2,84]),o($VE,[2,85]),o($VE,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:$V5,54:$V8,56:$V9},{16:99,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{41:[1,101],45:100,51:$VF},{16:103,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:$VG,50:$VH,59:109,60:$VI,82:$VJ,84:110,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},{60:[1,121]},{13:$Vz,55:122},o($Vy,[2,68]),o($Vy,[2,134]),{22:$VG,50:$VH,59:123,60:$VI,61:[1,124],82:$VJ,84:110,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},o($VP,[2,70]),{16:39,17:40,19:125,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VA,[2,16]),o($VA,[2,17]),o($VA,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{39:[2,10]},o($VQ,[2,51],{11:128,12:[1,129]}),o($Vp,[2,7]),{9:[1,130]},o($VR,[2,63]),{16:39,17:40,19:131,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{13:[1,133],16:39,17:40,19:132,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VC,[2,78],{66:134,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv}),o($VC,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:$V5,54:$V8,56:$V9},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},o($Vy,[2,44],{39:[1,139]}),{41:[1,140]},o($Vy,[2,46]),{41:[2,57],45:141,51:$VF},{47:[1,142]},{16:39,17:40,19:143,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($Vq,[2,87],{13:[1,144]}),o($Vq,[2,89],{13:[1,146],77:[1,145]}),o($Vq,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},o($Vq,[2,101],{61:$VS}),o($VT,[2,103],{85:151,22:$VG,50:$VH,60:$VI,82:$VJ,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO}),o($VU,[2,105]),o($VU,[2,107]),o($VU,[2,108]),o($VU,[2,109]),o($VU,[2,110]),o($VU,[2,111]),o($VU,[2,112]),o($VU,[2,113]),o($VU,[2,114]),o($VU,[2,115]),o($Vq,[2,102]),o($Vy,[2,67]),o($Vq,[2,69],{61:$VS}),{60:[1,152]},o($VA,[2,14]),{15:153,16:85,17:86,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{39:[2,12]},o($VQ,[2,52]),{13:[1,154]},{1:[2,4]},o($VR,[2,65]),o($VR,[2,64]),{16:39,17:40,19:155,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VC,[2,76]),o($Vq,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:$V5,54:$V8,56:$V9},{24:97,30:98,40:158,41:[2,41],43:23,48:$V5,54:$V8,56:$V9},{45:159,51:$VF},o($Vy,[2,45]),{41:[2,58]},o($Vy,[2,48],{39:[1,160]}),o($Vq,[2,56]),o($Vq,[2,88]),o($Vq,[2,90]),o($Vq,[2,91],{77:[1,161]}),o($Vq,[2,94]),o($Vq,[2,95],{13:[1,162]}),o($Vq,[2,97],{13:[1,164],77:[1,163]}),{22:$VG,50:$VH,60:$VI,82:$VJ,84:165,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},o($VU,[2,106]),o($VP,[2,71]),{39:[2,11]},{14:[1,166]},o($VR,[2,66]),o($Vq,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:$VF},o($Vq,[2,92]),o($Vq,[2,96]),o($Vq,[2,98]),o($Vq,[2,99],{77:[1,170]}),o($VT,[2,104],{85:151,22:$VG,50:$VH,60:$VI,82:$VJ,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO}),o($VQ,[2,8]),o($Vy,[2,47]),{41:[1,171]},o($Vy,[2,50]),o($Vq,[2,100]),o($Vy,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.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),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=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:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(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:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){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"),48;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 46;case 56:return 47;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 50;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 Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var classDiagram_default=parser,visibilityValues=["#","+","~","-",""],ClassMember=(__name(_a=class{constructor(input,memberType){this.memberType=memberType,this.visibility="",this.classifier="",this.text="";const sanitizedInput=sanitizeText(input,getConfig2());this.parseMember(sanitizedInput)}getDisplayDetails(){let displayText=this.visibility+parseGenericTypes(this.id);"method"===this.memberType&&(displayText+=`(${parseGenericTypes(this.parameters.trim())})`,this.returnType&&(displayText+=" : "+parseGenericTypes(this.returnType))),displayText=displayText.trim();return{displayText:displayText,cssStyle:this.parseClassifier()}}parseMember(input){let potentialClassifier="";if("method"===this.memberType){const match=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(input);if(match){const detectedVisibility=match[1]?match[1].trim():"";if(visibilityValues.includes(detectedVisibility)&&(this.visibility=detectedVisibility),this.id=match[2],this.parameters=match[3]?match[3].trim():"",potentialClassifier=match[4]?match[4].trim():"",this.returnType=match[5]?match[5].trim():"",""===potentialClassifier){const lastChar=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(lastChar)&&(potentialClassifier=lastChar,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const length=input.length,firstChar=input.substring(0,1),lastChar=input.substring(length-1);visibilityValues.includes(firstChar)&&(this.visibility=firstChar),/[$*]/.exec(lastChar)&&(potentialClassifier=lastChar),this.id=input.substring(""===this.visibility?0:1,""===potentialClassifier?length:length-1)}this.classifier=potentialClassifier,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const combinedText=`${this.visibility?"\\"+this.visibility:""}${parseGenericTypes(this.id)}${"method"===this.memberType?`(${parseGenericTypes(this.parameters)})${this.returnType?" : "+parseGenericTypes(this.returnType):""}`:""}`;this.text=combinedText.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"),_a),classCounter=0,sanitizeText2=__name(txt=>common_default.sanitizeText(txt,getConfig2()),"sanitizeText"),ClassDB=(__name(_b=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=__name(element=>{const tooltipElem=createTooltip();select(element).select("svg").selectAll("g").filter(function(){return null!==select(this).attr("title")}).on("mouseover",event=>{const el=select(event.currentTarget),title=el.attr("title");if(!title)return;const rect=event.currentTarget.getBoundingClientRect();tooltipElem.transition().duration(200).style("opacity",".9"),tooltipElem.html(purify.sanitize(title)).style("left",`${window.scrollX+rect.left+rect.width/2}px`).style("top",`${window.scrollY+rect.bottom+4}px`),el.classed("hover",!0)}).on("mouseout",event=>{tooltipElem.transition().duration(500).style("opacity",0),select(event.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=setAccTitle,this.getAccTitle=getAccTitle,this.setAccDescription=setAccDescription,this.getAccDescription=getAccDescription,this.setDiagramTitle=setDiagramTitle,this.getDiagramTitle=getDiagramTitle,this.getConfig=__name(()=>getConfig2().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(_id){const id=common_default.sanitizeText(_id,getConfig2());let genericType="",className=id;if(id.indexOf("~")>0){const split=id.split("~");className=sanitizeText2(split[0]),genericType=sanitizeText2(split[1])}return{className:className,type:genericType}}setClassLabel(_id,label){const id=common_default.sanitizeText(_id,getConfig2());label&&(label=sanitizeText2(label));const{className:className}=this.splitClassNameAndType(id);this.classes.get(className).label=label,this.classes.get(className).text=`${label}${this.classes.get(className).type?`<${this.classes.get(className).type}>`:""}`}addClass(_id){const id=common_default.sanitizeText(_id,getConfig2()),{className:className,type:type}=this.splitClassNameAndType(id);if(this.classes.has(className))return;const name=common_default.sanitizeText(className,getConfig2());this.classes.set(name,{id:name,type:type,label:name,text:`${name}${type?`&lt;${type}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:"classId-"+name+"-"+classCounter}),classCounter++}addInterface(label,classId){const classInterface={id:`interface${this.interfaces.length}`,label:label,classId:classId};this.interfaces.push(classInterface)}setDiagramId(svgElementId){this.diagramId=svgElementId}lookUpDomId(_id){const id=common_default.sanitizeText(_id,getConfig2());if(this.classes.has(id)){const domId=this.classes.get(id).domId;return this.diagramId?`${this.diagramId}-${domId}`:domId}throw new Error("Class not found: "+id)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",clear()}getClass(id){return this.classes.get(id)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(id){const key="number"==typeof id?`note${id}`:id;return this.notes.get(key)}getNotes(){return this.notes}addRelation(classRelation){log.debug("Adding relation: "+JSON.stringify(classRelation));const invalidTypes=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];classRelation.relation.type1!==this.relationType.LOLLIPOP||invalidTypes.includes(classRelation.relation.type2)?classRelation.relation.type2!==this.relationType.LOLLIPOP||invalidTypes.includes(classRelation.relation.type1)?(this.addClass(classRelation.id1),this.addClass(classRelation.id2)):(this.addClass(classRelation.id1),this.addInterface(classRelation.id2,classRelation.id1),classRelation.id2="interface"+(this.interfaces.length-1)):(this.addClass(classRelation.id2),this.addInterface(classRelation.id1,classRelation.id2),classRelation.id1="interface"+(this.interfaces.length-1)),classRelation.id1=this.splitClassNameAndType(classRelation.id1).className,classRelation.id2=this.splitClassNameAndType(classRelation.id2).className,classRelation.relationTitle1=common_default.sanitizeText(classRelation.relationTitle1.trim(),getConfig2()),classRelation.relationTitle2=common_default.sanitizeText(classRelation.relationTitle2.trim(),getConfig2()),this.relations.push(classRelation)}addAnnotation(className,annotation){const validatedClassName=this.splitClassNameAndType(className).className;this.classes.get(validatedClassName).annotations.push(annotation)}addMember(className,member){this.addClass(className);const validatedClassName=this.splitClassNameAndType(className).className,theClass=this.classes.get(validatedClassName);if("string"==typeof member){const memberString=member.trim();memberString.startsWith("<<")&&memberString.endsWith(">>")?theClass.annotations.push(sanitizeText2(memberString.substring(2,memberString.length-2))):memberString.indexOf(")")>0?theClass.methods.push(new ClassMember(memberString,"method")):memberString&&theClass.members.push(new ClassMember(memberString,"attribute"))}}addMembers(className,members){Array.isArray(members)&&(members.reverse(),members.forEach(member=>this.addMember(className,member)))}addNote(text,className){const index=this.notes.size,note={id:`note${index}`,class:className,text:text,index:index};return this.notes.set(note.id,note),note.id}cleanupLabel(label){return label.startsWith(":")&&(label=label.substring(1)),sanitizeText2(label.trim())}setCssClass(ids,className){ids.split(",").forEach(_id=>{let id=_id;/\d/.exec(_id[0])&&(id="classId-"+id);const classNode=this.classes.get(id);classNode&&(classNode.cssClasses+=" "+className)})}defineClass(ids,style){for(const id of ids){let styleClass=this.styleClasses.get(id);void 0===styleClass&&(styleClass={id:id,styles:[],textStyles:[]},this.styleClasses.set(id,styleClass)),style&&style.forEach(s=>{if(/color/.exec(s)){const newStyle=s.replace("fill","bgFill");styleClass.textStyles.push(newStyle)}styleClass.styles.push(s)}),this.classes.forEach(value=>{value.cssClasses.includes(id)&&value.styles.push(...style.flatMap(s=>s.split(",")))})}}setTooltip(ids,tooltip){ids.split(",").forEach(id=>{void 0!==tooltip&&(this.classes.get(id).tooltip=sanitizeText2(tooltip))})}getTooltip(id,namespace){return namespace&&this.namespaces.has(namespace)?this.namespaces.get(namespace).classes.get(id).tooltip:this.classes.get(id).tooltip}setLink(ids,linkStr,target){const config=getConfig2();ids.split(",").forEach(_id=>{let id=_id;/\d/.exec(_id[0])&&(id="classId-"+id);const theClass=this.classes.get(id);theClass&&(theClass.link=utils_default.formatUrl(linkStr,config),"sandbox"===config.securityLevel?theClass.linkTarget="_top":theClass.linkTarget="string"==typeof target?sanitizeText2(target):"_blank")}),this.setCssClass(ids,"clickable")}setClickEvent(ids,functionName,functionArgs){ids.split(",").forEach(id=>{this.setClickFunc(id,functionName,functionArgs),this.classes.get(id).haveCallback=!0}),this.setCssClass(ids,"clickable")}setClickFunc(_domId,functionName,functionArgs){const domId=common_default.sanitizeText(_domId,getConfig2());if("loose"!==getConfig2().securityLevel)return;if(void 0===functionName)return;const id=domId;if(this.classes.has(id)){let argList=[];if("string"==typeof functionArgs){argList=functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<argList.length;i++){let item=argList[i].trim();item.startsWith('"')&&item.endsWith('"')&&(item=item.substr(1,item.length-2)),argList[i]=item}}0===argList.length&&argList.push(id),this.functions.push(()=>{const elemId=this.lookUpDomId(id),elem=document.querySelector(`[id="${elemId}"]`);null!==elem&&elem.addEventListener("click",()=>{utils_default.runFunc(functionName,...argList)},!1)})}}bindFunctions(element){this.functions.forEach(fun=>{fun(element)})}escapeHtml(str){return str.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(dir){this.direction=dir}addNamespace(id){this.namespaces.has(id)||(this.namespaces.set(id,{id:id,classes:new Map,notes:new Map,children:new Map,domId:"classId-"+id+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(name){return this.namespaces.get(name)}getNamespaces(){return this.namespaces}addClassesToNamespace(id,classNames,noteNames){if(this.namespaces.has(id)){for(const name of classNames){const{className:className}=this.splitClassNameAndType(name),classNode=this.getClass(className);classNode.parent=id,this.namespaces.get(id).classes.set(className,classNode)}for(const noteName of noteNames){const noteNode=this.getNote(noteName);noteNode.parent=id,this.namespaces.get(id).notes.set(noteName,noteNode)}}}setCssStyle(id,styles){const thisClass=this.classes.get(id);if(styles&&thisClass)for(const s of styles)s.includes(",")?thisClass.styles.push(...s.split(",")):thisClass.styles.push(s)}getArrowMarker(type){let marker;switch(type){case 0:marker="aggregation";break;case 1:marker="extension";break;case 2:marker="composition";break;case 3:marker="dependency";break;case 4:marker="lollipop";break;default:marker="none"}return marker}getData(){var _a2;const nodes=[],edges=[],config=getConfig2();for(const namespace of this.namespaces.values()){const node={id:namespace.id,label:namespace.id,isGroup:!0,padding:config.class.padding??16,shape:"rect",cssStyles:[],look:config.look};nodes.push(node)}for(const classNode of this.classes.values()){const node={...classNode,type:void 0,isGroup:!1,parentId:classNode.parent,look:config.look};nodes.push(node)}for(const note of this.notes.values()){const noteNode={id:note.id,label:note.text,isGroup:!1,shape:"note",padding:config.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${config.themeVariables.noteBkgColor}`,`stroke: ${config.themeVariables.noteBorderColor}`],look:config.look,parentId:note.parent,labelType:"markdown"};nodes.push(noteNode);const noteClassId=null==(_a2=this.classes.get(note.class))?void 0:_a2.id;if(noteClassId){const edge={id:`edgeNote${note.index}`,start:note.id,end:noteClassId,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:config.look};edges.push(edge)}}for(const _interface of this.interfaces){const interfaceNode={id:_interface.id,label:_interface.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:config.look};nodes.push(interfaceNode)}let cnt=0;for(const classRelation of this.relations){cnt++;const edge={id:getEdgeId(classRelation.id1,classRelation.id2,{prefix:"id",counter:cnt}),start:classRelation.id1,end:classRelation.id2,type:"normal",label:classRelation.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(classRelation.relation.type1),arrowTypeEnd:this.getArrowMarker(classRelation.relation.type2),startLabelRight:"none"===classRelation.relationTitle1?"":classRelation.relationTitle1,endLabelLeft:"none"===classRelation.relationTitle2?"":classRelation.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:classRelation.style||"",pattern:1==classRelation.relation.lineType?"dashed":"solid",look:config.look,labelType:"markdown"};edges.push(edge)}return{nodes:nodes,edges:edges,other:{},config:config,direction:this.getDirection()}}},"ClassDB"),_b),styles_default=__name(options=>`g.classGroup text {\n fill: ${options.nodeBorder||options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n .cluster-label text {\n fill: ${options.titleColor};\n }\n .cluster-label span {\n color: ${options.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n .cluster span {\n color: ${options.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${options.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${options.noteTextColor};\n}\n.edgeLabel .label rect {\n fill: ${options.mainBkg};\n}\n.label text {\n fill: ${options.classText};\n}\n\n.labelBkg {\n background: ${options.mainBkg};\n}\n.edgeLabel .label span {\n background: ${options.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: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: ${options.strokeWidth};\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: ${options.strokeWidth};\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[id$="-compositionStart"], .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${options.mainBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n fill: ${options.mainBkg} !important;\n stroke: ${options.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: ${options.textColor};\n}\n\n.edgeLabel[data-look="neo"] {\n background-color: ${options.edgeLabelBackground};\n p {\n background-color: ${options.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n}\n ${getIconStyles()}\n`,"getStyles"),getDir=__name((parsedItem,defaultDir="TB")=>{if(!parsedItem.doc)return defaultDir;let dir=defaultDir;for(const parsedItemDoc of parsedItem.doc)"dir"===parsedItemDoc.stmt&&(dir=parsedItemDoc.value);return dir},"getDir"),classRenderer_v3_unified_default={getClasses:__name(function(text,diagramObj){return diagramObj.db.getClasses()},"getClasses"),draw:__name(async function(text,id,_version,diag){log.info("REF0:"),log.info("Drawing class diagram (v3)",id);const{securityLevel:securityLevel,state:conf,layout:layout}=getConfig2();diag.db.setDiagramId(id);const data4Layout=diag.db.getData(),svg=getDiagramElement(id,securityLevel);data4Layout.type=diag.type,data4Layout.layoutAlgorithm=getRegisteredLayoutAlgorithm(layout),data4Layout.nodeSpacing=(null==conf?void 0:conf.nodeSpacing)||50,data4Layout.rankSpacing=(null==conf?void 0:conf.rankSpacing)||50,data4Layout.markers=["aggregation","extension","composition","dependency","lollipop"],data4Layout.diagramId=id,await render(data4Layout,svg);utils_default.insertTitle(svg,"classDiagramTitleText",(null==conf?void 0:conf.titleTopMargin)??25,diag.db.getDiagramTitle()),setupViewPortForSVG(svg,8,"classDiagram",(null==conf?void 0:conf.useMaxWidth)??!0)},"draw"),getDir:getDir};export{ClassDB as C,classDiagram_default as a,classRenderer_v3_unified_default as c,styles_default as s};
1
+ var _a,_b;import{g as getIconStyles}from"./chunk-FMBD7UC4-CD8bIwZQ.js";import{c as createTooltip}from"./chunk-YZCP3GAM-QsYUvoBQ.js";import{g as getDiagramElement}from"./chunk-55IACEB6-kKpXz88M.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-DGxEwZ4m.js";import{_ as __name,l as log,c as getConfig2,o as getRegisteredLayoutAlgorithm,r as render,u as utils_default,d as select,b as setAccTitle,a as getAccTitle,s as setAccDescription,g as getAccDescription,p as setDiagramTitle,q as getDiagramTitle,k as common_default,y as clear,x as getEdgeId,i as sanitizeText,P as parseGenericTypes}from"./mermaid.core-O3WUNQR6.js";import{p as purify}from"./vendor-markdown-Bpu4AByL.js";var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,18],$V1=[1,19],$V2=[1,20],$V3=[1,41],$V4=[1,26],$V5=[1,42],$V6=[1,24],$V7=[1,25],$V8=[1,32],$V9=[1,33],$Va=[1,34],$Vb=[1,45],$Vc=[1,35],$Vd=[1,36],$Ve=[1,37],$Vf=[1,38],$Vg=[1,27],$Vh=[1,28],$Vi=[1,29],$Vj=[1,30],$Vk=[1,31],$Vl=[1,44],$Vm=[1,46],$Vn=[1,43],$Vo=[1,47],$Vp=[1,9],$Vq=[1,8,9],$Vr=[1,58],$Vs=[1,59],$Vt=[1,60],$Vu=[1,61],$Vv=[1,62],$Vw=[1,63],$Vx=[1,64],$Vy=[1,8,9,41],$Vz=[1,77],$VA=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],$VB=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],$VC=[13,60,86,100,102,103],$VD=[13,60,73,74,86,100,102,103],$VE=[13,60,68,69,70,71,72,86,100,102,103],$VF=[1,102],$VG=[1,120],$VH=[1,116],$VI=[1,112],$VJ=[1,118],$VK=[1,113],$VL=[1,114],$VM=[1,115],$VN=[1,117],$VO=[1,119],$VP=[22,50,60,61,82,86,87,88,89,90],$VQ=[1,8,9,39,41,44,46],$VR=[1,8,9,22],$VS=[1,150],$VT=[1,8,9,61],$VU=[1,8,9,22,50,60,61,82,86,87,88,89,90],parser2={trace:__name(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,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE: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:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",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],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,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:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 8:this.$=$$[$0-1];break;case 9:case 10:case 13:case 15:this.$=$$[$0];break;case 11:case 14:this.$=$$[$0-2]+"."+$$[$0];break;case 12:case 16:case 106:this.$=$$[$0-1]+$$[$0];break;case 17:case 18:this.$=$$[$0-1]+"~"+$$[$0]+"~";break;case 19:yy.addRelation($$[$0]);break;case 20:$$[$0-1].title=yy.cleanupLabel($$[$0]),yy.addRelation($$[$0-1]);break;case 31:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 32:case 33:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 34:yy.addClassesToNamespace($$[$0-3],$$[$0-1][0],$$[$0-1][1]);break;case 35:yy.addClassesToNamespace($$[$0-4],$$[$0-1][0],$$[$0-1][1]);break;case 36:this.$=$$[$0],yy.addNamespace($$[$0]);break;case 37:this.$=[[$$[$0]],[]];break;case 38:this.$=[[$$[$0-1]],[]];break;case 39:$$[$0][0].unshift($$[$0-2]),this.$=$$[$0];break;case 40:this.$=[[],[$$[$0]]];break;case 41:this.$=[[],[$$[$0-1]]];break;case 42:$$[$0][1].unshift($$[$0-2]),this.$=$$[$0];break;case 44:yy.setCssClass($$[$0-2],$$[$0]);break;case 45:yy.addMembers($$[$0-3],$$[$0-1]);break;case 47:yy.setCssClass($$[$0-5],$$[$0-3]),yy.addMembers($$[$0-5],$$[$0-1]);break;case 48:yy.addAnnotation($$[$0-3],$$[$0-1]);break;case 49:yy.addAnnotation($$[$0-6],$$[$0-4]),yy.addMembers($$[$0-6],$$[$0-1]);break;case 50:yy.addAnnotation($$[$0-5],$$[$0-3]);break;case 51:this.$=$$[$0],yy.addClass($$[$0]);break;case 52:this.$=$$[$0-1],yy.addClass($$[$0-1]),yy.setClassLabel($$[$0-1],$$[$0]);break;case 56:yy.addAnnotation($$[$0],$$[$0-2]);break;case 57:case 70:case 103:this.$=[$$[$0]];break;case 58:$$[$0].push($$[$0-1]),this.$=$$[$0];break;case 59:case 61:case 62:break;case 60:yy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));break;case 63:this.$={id1:$$[$0-2],id2:$$[$0],relation:$$[$0-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:$$[$0-3],id2:$$[$0],relation:$$[$0-1],relationTitle1:$$[$0-2],relationTitle2:"none"};break;case 65:this.$={id1:$$[$0-3],id2:$$[$0],relation:$$[$0-2],relationTitle1:"none",relationTitle2:$$[$0-1]};break;case 66:this.$={id1:$$[$0-4],id2:$$[$0],relation:$$[$0-2],relationTitle1:$$[$0-3],relationTitle2:$$[$0-1]};break;case 67:this.$=yy.addNote($$[$0],$$[$0-1]);break;case 68:this.$=yy.addNote($$[$0]);break;case 69:this.$=$$[$0-2],yy.defineClass($$[$0-1],$$[$0]);break;case 71:this.$=$$[$0-2].concat([$$[$0]]);break;case 72:yy.setDirection("TB");break;case 73:yy.setDirection("BT");break;case 74:yy.setDirection("RL");break;case 75:yy.setDirection("LR");break;case 76:this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]};break;case 77:this.$={type1:"none",type2:$$[$0],lineType:$$[$0-1]};break;case 78:this.$={type1:$$[$0-1],type2:"none",lineType:$$[$0]};break;case 79:this.$={type1:"none",type2:"none",lineType:$$[$0]};break;case 80:this.$=yy.relationType.AGGREGATION;break;case 81:this.$=yy.relationType.EXTENSION;break;case 82:this.$=yy.relationType.COMPOSITION;break;case 83:this.$=yy.relationType.DEPENDENCY;break;case 84:this.$=yy.relationType.LOLLIPOP;break;case 85:this.$=yy.lineType.LINE;break;case 86:this.$=yy.lineType.DOTTED_LINE;break;case 87:case 93:this.$=$$[$0-2],yy.setClickEvent($$[$0-1],$$[$0]);break;case 88:case 94:this.$=$$[$0-3],yy.setClickEvent($$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-2],$$[$0]);break;case 89:this.$=$$[$0-2],yy.setLink($$[$0-1],$$[$0]);break;case 90:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0-1],$$[$0]);break;case 91:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-2],$$[$0]);break;case 92:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-2],$$[$0]),yy.setTooltip($$[$0-3],$$[$0-1]);break;case 95:this.$=$$[$0-3],yy.setClickEvent($$[$0-2],$$[$0-1],$$[$0]);break;case 96:this.$=$$[$0-4],yy.setClickEvent($$[$0-3],$$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-3],$$[$0]);break;case 97:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0]);break;case 98:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-1],$$[$0]);break;case 99:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-1]),yy.setTooltip($$[$0-3],$$[$0]);break;case 100:this.$=$$[$0-5],yy.setLink($$[$0-4],$$[$0-2],$$[$0]),yy.setTooltip($$[$0-4],$$[$0-1]);break;case 101:this.$=$$[$0-2],yy.setCssStyle($$[$0-1],$$[$0]);break;case 102:yy.setCssClass($$[$0-1],$$[$0]);break;case 104:$$[$0-2].push($$[$0]),this.$=$$[$0-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:$V0,35:$V1,37:$V2,38:22,42:$V3,43:23,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},o($Vp,[2,5],{8:[1,48]}),{8:[1,49]},o($Vq,[2,19],{22:[1,50]}),o($Vq,[2,21]),o($Vq,[2,22]),o($Vq,[2,23]),o($Vq,[2,24]),o($Vq,[2,25]),o($Vq,[2,26]),o($Vq,[2,27]),o($Vq,[2,28]),o($Vq,[2,29]),o($Vq,[2,30]),{34:[1,51]},{36:[1,52]},o($Vq,[2,33]),o($Vq,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv,73:$Vw,74:$Vx}),{39:[1,65]},o($Vy,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),o($Vq,[2,61]),o($Vq,[2,62]),{16:69,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{16:39,17:40,19:70,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:71,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:72,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{13:$Vz,55:76},{58:78,60:[1,79]},o($Vq,[2,72]),o($Vq,[2,73]),o($Vq,[2,74]),o($Vq,[2,75]),o($VA,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo}),o($VA,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:87,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VB,[2,129]),o($VB,[2,130]),o($VB,[2,131]),o($VB,[2,132]),o([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),o($Vp,[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:88,33:$V0,35:$V1,37:$V2,42:$V3,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo}),{5:89,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:$V0,35:$V1,37:$V2,38:22,42:$V3,43:23,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($Vq,[2,20]),o($Vq,[2,31]),o($Vq,[2,32]),{13:[1,91],16:39,17:40,19:90,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{53:92,66:56,67:57,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv,73:$Vw,74:$Vx},o($Vq,[2,60]),{67:93,73:$Vw,74:$Vx},o($VC,[2,79],{66:94,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv}),o($VD,[2,80]),o($VD,[2,81]),o($VD,[2,82]),o($VD,[2,83]),o($VD,[2,84]),o($VE,[2,85]),o($VE,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:$V5,54:$V8,56:$V9},{16:99,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{41:[1,101],45:100,51:$VF},{16:103,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:$VG,50:$VH,59:109,60:$VI,82:$VJ,84:110,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},{60:[1,121]},{13:$Vz,55:122},o($Vy,[2,68]),o($Vy,[2,134]),{22:$VG,50:$VH,59:123,60:$VI,61:[1,124],82:$VJ,84:110,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},o($VP,[2,70]),{16:39,17:40,19:125,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VA,[2,16]),o($VA,[2,17]),o($VA,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{39:[2,10]},o($VQ,[2,51],{11:128,12:[1,129]}),o($Vp,[2,7]),{9:[1,130]},o($VR,[2,63]),{16:39,17:40,19:131,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{13:[1,133],16:39,17:40,19:132,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VC,[2,78],{66:134,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv}),o($VC,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:$V5,54:$V8,56:$V9},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},o($Vy,[2,44],{39:[1,139]}),{41:[1,140]},o($Vy,[2,46]),{41:[2,57],45:141,51:$VF},{47:[1,142]},{16:39,17:40,19:143,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($Vq,[2,87],{13:[1,144]}),o($Vq,[2,89],{13:[1,146],77:[1,145]}),o($Vq,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},o($Vq,[2,101],{61:$VS}),o($VT,[2,103],{85:151,22:$VG,50:$VH,60:$VI,82:$VJ,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO}),o($VU,[2,105]),o($VU,[2,107]),o($VU,[2,108]),o($VU,[2,109]),o($VU,[2,110]),o($VU,[2,111]),o($VU,[2,112]),o($VU,[2,113]),o($VU,[2,114]),o($VU,[2,115]),o($Vq,[2,102]),o($Vy,[2,67]),o($Vq,[2,69],{61:$VS}),{60:[1,152]},o($VA,[2,14]),{15:153,16:85,17:86,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{39:[2,12]},o($VQ,[2,52]),{13:[1,154]},{1:[2,4]},o($VR,[2,65]),o($VR,[2,64]),{16:39,17:40,19:155,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VC,[2,76]),o($Vq,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:$V5,54:$V8,56:$V9},{24:97,30:98,40:158,41:[2,41],43:23,48:$V5,54:$V8,56:$V9},{45:159,51:$VF},o($Vy,[2,45]),{41:[2,58]},o($Vy,[2,48],{39:[1,160]}),o($Vq,[2,56]),o($Vq,[2,88]),o($Vq,[2,90]),o($Vq,[2,91],{77:[1,161]}),o($Vq,[2,94]),o($Vq,[2,95],{13:[1,162]}),o($Vq,[2,97],{13:[1,164],77:[1,163]}),{22:$VG,50:$VH,60:$VI,82:$VJ,84:165,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},o($VU,[2,106]),o($VP,[2,71]),{39:[2,11]},{14:[1,166]},o($VR,[2,66]),o($Vq,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:$VF},o($Vq,[2,92]),o($Vq,[2,96]),o($Vq,[2,98]),o($Vq,[2,99],{77:[1,170]}),o($VT,[2,104],{85:151,22:$VG,50:$VH,60:$VI,82:$VJ,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO}),o($VQ,[2,8]),o($Vy,[2,47]),{41:[1,171]},o($Vy,[2,50]),o($Vq,[2,100]),o($Vy,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.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),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=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:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(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:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){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"),48;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 46;case 56:return 47;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 50;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 Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var classDiagram_default=parser,visibilityValues=["#","+","~","-",""],ClassMember=(__name(_a=class{constructor(input,memberType){this.memberType=memberType,this.visibility="",this.classifier="",this.text="";const sanitizedInput=sanitizeText(input,getConfig2());this.parseMember(sanitizedInput)}getDisplayDetails(){let displayText=this.visibility+parseGenericTypes(this.id);"method"===this.memberType&&(displayText+=`(${parseGenericTypes(this.parameters.trim())})`,this.returnType&&(displayText+=" : "+parseGenericTypes(this.returnType))),displayText=displayText.trim();return{displayText:displayText,cssStyle:this.parseClassifier()}}parseMember(input){let potentialClassifier="";if("method"===this.memberType){const match=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(input);if(match){const detectedVisibility=match[1]?match[1].trim():"";if(visibilityValues.includes(detectedVisibility)&&(this.visibility=detectedVisibility),this.id=match[2],this.parameters=match[3]?match[3].trim():"",potentialClassifier=match[4]?match[4].trim():"",this.returnType=match[5]?match[5].trim():"",""===potentialClassifier){const lastChar=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(lastChar)&&(potentialClassifier=lastChar,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const length=input.length,firstChar=input.substring(0,1),lastChar=input.substring(length-1);visibilityValues.includes(firstChar)&&(this.visibility=firstChar),/[$*]/.exec(lastChar)&&(potentialClassifier=lastChar),this.id=input.substring(""===this.visibility?0:1,""===potentialClassifier?length:length-1)}this.classifier=potentialClassifier,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const combinedText=`${this.visibility?"\\"+this.visibility:""}${parseGenericTypes(this.id)}${"method"===this.memberType?`(${parseGenericTypes(this.parameters)})${this.returnType?" : "+parseGenericTypes(this.returnType):""}`:""}`;this.text=combinedText.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"),_a),classCounter=0,sanitizeText2=__name(txt=>common_default.sanitizeText(txt,getConfig2()),"sanitizeText"),ClassDB=(__name(_b=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=__name(element=>{const tooltipElem=createTooltip();select(element).select("svg").selectAll("g").filter(function(){return null!==select(this).attr("title")}).on("mouseover",event=>{const el=select(event.currentTarget),title=el.attr("title");if(!title)return;const rect=event.currentTarget.getBoundingClientRect();tooltipElem.transition().duration(200).style("opacity",".9"),tooltipElem.html(purify.sanitize(title)).style("left",`${window.scrollX+rect.left+rect.width/2}px`).style("top",`${window.scrollY+rect.bottom+4}px`),el.classed("hover",!0)}).on("mouseout",event=>{tooltipElem.transition().duration(500).style("opacity",0),select(event.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=setAccTitle,this.getAccTitle=getAccTitle,this.setAccDescription=setAccDescription,this.getAccDescription=getAccDescription,this.setDiagramTitle=setDiagramTitle,this.getDiagramTitle=getDiagramTitle,this.getConfig=__name(()=>getConfig2().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(_id){const id=common_default.sanitizeText(_id,getConfig2());let genericType="",className=id;if(id.indexOf("~")>0){const split=id.split("~");className=sanitizeText2(split[0]),genericType=sanitizeText2(split[1])}return{className:className,type:genericType}}setClassLabel(_id,label){const id=common_default.sanitizeText(_id,getConfig2());label&&(label=sanitizeText2(label));const{className:className}=this.splitClassNameAndType(id);this.classes.get(className).label=label,this.classes.get(className).text=`${label}${this.classes.get(className).type?`<${this.classes.get(className).type}>`:""}`}addClass(_id){const id=common_default.sanitizeText(_id,getConfig2()),{className:className,type:type}=this.splitClassNameAndType(id);if(this.classes.has(className))return;const name=common_default.sanitizeText(className,getConfig2());this.classes.set(name,{id:name,type:type,label:name,text:`${name}${type?`&lt;${type}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:"classId-"+name+"-"+classCounter}),classCounter++}addInterface(label,classId){const classInterface={id:`interface${this.interfaces.length}`,label:label,classId:classId};this.interfaces.push(classInterface)}setDiagramId(svgElementId){this.diagramId=svgElementId}lookUpDomId(_id){const id=common_default.sanitizeText(_id,getConfig2());if(this.classes.has(id)){const domId=this.classes.get(id).domId;return this.diagramId?`${this.diagramId}-${domId}`:domId}throw new Error("Class not found: "+id)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",clear()}getClass(id){return this.classes.get(id)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(id){const key="number"==typeof id?`note${id}`:id;return this.notes.get(key)}getNotes(){return this.notes}addRelation(classRelation){log.debug("Adding relation: "+JSON.stringify(classRelation));const invalidTypes=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];classRelation.relation.type1!==this.relationType.LOLLIPOP||invalidTypes.includes(classRelation.relation.type2)?classRelation.relation.type2!==this.relationType.LOLLIPOP||invalidTypes.includes(classRelation.relation.type1)?(this.addClass(classRelation.id1),this.addClass(classRelation.id2)):(this.addClass(classRelation.id1),this.addInterface(classRelation.id2,classRelation.id1),classRelation.id2="interface"+(this.interfaces.length-1)):(this.addClass(classRelation.id2),this.addInterface(classRelation.id1,classRelation.id2),classRelation.id1="interface"+(this.interfaces.length-1)),classRelation.id1=this.splitClassNameAndType(classRelation.id1).className,classRelation.id2=this.splitClassNameAndType(classRelation.id2).className,classRelation.relationTitle1=common_default.sanitizeText(classRelation.relationTitle1.trim(),getConfig2()),classRelation.relationTitle2=common_default.sanitizeText(classRelation.relationTitle2.trim(),getConfig2()),this.relations.push(classRelation)}addAnnotation(className,annotation){const validatedClassName=this.splitClassNameAndType(className).className;this.classes.get(validatedClassName).annotations.push(annotation)}addMember(className,member){this.addClass(className);const validatedClassName=this.splitClassNameAndType(className).className,theClass=this.classes.get(validatedClassName);if("string"==typeof member){const memberString=member.trim();memberString.startsWith("<<")&&memberString.endsWith(">>")?theClass.annotations.push(sanitizeText2(memberString.substring(2,memberString.length-2))):memberString.indexOf(")")>0?theClass.methods.push(new ClassMember(memberString,"method")):memberString&&theClass.members.push(new ClassMember(memberString,"attribute"))}}addMembers(className,members){Array.isArray(members)&&(members.reverse(),members.forEach(member=>this.addMember(className,member)))}addNote(text,className){const index=this.notes.size,note={id:`note${index}`,class:className,text:text,index:index};return this.notes.set(note.id,note),note.id}cleanupLabel(label){return label.startsWith(":")&&(label=label.substring(1)),sanitizeText2(label.trim())}setCssClass(ids,className){ids.split(",").forEach(_id=>{let id=_id;/\d/.exec(_id[0])&&(id="classId-"+id);const classNode=this.classes.get(id);classNode&&(classNode.cssClasses+=" "+className)})}defineClass(ids,style){for(const id of ids){let styleClass=this.styleClasses.get(id);void 0===styleClass&&(styleClass={id:id,styles:[],textStyles:[]},this.styleClasses.set(id,styleClass)),style&&style.forEach(s=>{if(/color/.exec(s)){const newStyle=s.replace("fill","bgFill");styleClass.textStyles.push(newStyle)}styleClass.styles.push(s)}),this.classes.forEach(value=>{value.cssClasses.includes(id)&&value.styles.push(...style.flatMap(s=>s.split(",")))})}}setTooltip(ids,tooltip){ids.split(",").forEach(id=>{void 0!==tooltip&&(this.classes.get(id).tooltip=sanitizeText2(tooltip))})}getTooltip(id,namespace){return namespace&&this.namespaces.has(namespace)?this.namespaces.get(namespace).classes.get(id).tooltip:this.classes.get(id).tooltip}setLink(ids,linkStr,target){const config=getConfig2();ids.split(",").forEach(_id=>{let id=_id;/\d/.exec(_id[0])&&(id="classId-"+id);const theClass=this.classes.get(id);theClass&&(theClass.link=utils_default.formatUrl(linkStr,config),"sandbox"===config.securityLevel?theClass.linkTarget="_top":theClass.linkTarget="string"==typeof target?sanitizeText2(target):"_blank")}),this.setCssClass(ids,"clickable")}setClickEvent(ids,functionName,functionArgs){ids.split(",").forEach(id=>{this.setClickFunc(id,functionName,functionArgs),this.classes.get(id).haveCallback=!0}),this.setCssClass(ids,"clickable")}setClickFunc(_domId,functionName,functionArgs){const domId=common_default.sanitizeText(_domId,getConfig2());if("loose"!==getConfig2().securityLevel)return;if(void 0===functionName)return;const id=domId;if(this.classes.has(id)){let argList=[];if("string"==typeof functionArgs){argList=functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<argList.length;i++){let item=argList[i].trim();item.startsWith('"')&&item.endsWith('"')&&(item=item.substr(1,item.length-2)),argList[i]=item}}0===argList.length&&argList.push(id),this.functions.push(()=>{const elemId=this.lookUpDomId(id),elem=document.querySelector(`[id="${elemId}"]`);null!==elem&&elem.addEventListener("click",()=>{utils_default.runFunc(functionName,...argList)},!1)})}}bindFunctions(element){this.functions.forEach(fun=>{fun(element)})}escapeHtml(str){return str.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(dir){this.direction=dir}addNamespace(id){this.namespaces.has(id)||(this.namespaces.set(id,{id:id,classes:new Map,notes:new Map,children:new Map,domId:"classId-"+id+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(name){return this.namespaces.get(name)}getNamespaces(){return this.namespaces}addClassesToNamespace(id,classNames,noteNames){if(this.namespaces.has(id)){for(const name of classNames){const{className:className}=this.splitClassNameAndType(name),classNode=this.getClass(className);classNode.parent=id,this.namespaces.get(id).classes.set(className,classNode)}for(const noteName of noteNames){const noteNode=this.getNote(noteName);noteNode.parent=id,this.namespaces.get(id).notes.set(noteName,noteNode)}}}setCssStyle(id,styles){const thisClass=this.classes.get(id);if(styles&&thisClass)for(const s of styles)s.includes(",")?thisClass.styles.push(...s.split(",")):thisClass.styles.push(s)}getArrowMarker(type){let marker;switch(type){case 0:marker="aggregation";break;case 1:marker="extension";break;case 2:marker="composition";break;case 3:marker="dependency";break;case 4:marker="lollipop";break;default:marker="none"}return marker}getData(){var _a2;const nodes=[],edges=[],config=getConfig2();for(const namespace of this.namespaces.values()){const node={id:namespace.id,label:namespace.id,isGroup:!0,padding:config.class.padding??16,shape:"rect",cssStyles:[],look:config.look};nodes.push(node)}for(const classNode of this.classes.values()){const node={...classNode,type:void 0,isGroup:!1,parentId:classNode.parent,look:config.look};nodes.push(node)}for(const note of this.notes.values()){const noteNode={id:note.id,label:note.text,isGroup:!1,shape:"note",padding:config.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${config.themeVariables.noteBkgColor}`,`stroke: ${config.themeVariables.noteBorderColor}`],look:config.look,parentId:note.parent,labelType:"markdown"};nodes.push(noteNode);const noteClassId=null==(_a2=this.classes.get(note.class))?void 0:_a2.id;if(noteClassId){const edge={id:`edgeNote${note.index}`,start:note.id,end:noteClassId,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:config.look};edges.push(edge)}}for(const _interface of this.interfaces){const interfaceNode={id:_interface.id,label:_interface.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:config.look};nodes.push(interfaceNode)}let cnt=0;for(const classRelation of this.relations){cnt++;const edge={id:getEdgeId(classRelation.id1,classRelation.id2,{prefix:"id",counter:cnt}),start:classRelation.id1,end:classRelation.id2,type:"normal",label:classRelation.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(classRelation.relation.type1),arrowTypeEnd:this.getArrowMarker(classRelation.relation.type2),startLabelRight:"none"===classRelation.relationTitle1?"":classRelation.relationTitle1,endLabelLeft:"none"===classRelation.relationTitle2?"":classRelation.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:classRelation.style||"",pattern:1==classRelation.relation.lineType?"dashed":"solid",look:config.look,labelType:"markdown"};edges.push(edge)}return{nodes:nodes,edges:edges,other:{},config:config,direction:this.getDirection()}}},"ClassDB"),_b),styles_default=__name(options=>`g.classGroup text {\n fill: ${options.nodeBorder||options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n .cluster-label text {\n fill: ${options.titleColor};\n }\n .cluster-label span {\n color: ${options.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n .cluster span {\n color: ${options.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${options.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${options.noteTextColor};\n}\n.edgeLabel .label rect {\n fill: ${options.mainBkg};\n}\n.label text {\n fill: ${options.classText};\n}\n\n.labelBkg {\n background: ${options.mainBkg};\n}\n.edgeLabel .label span {\n background: ${options.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: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: ${options.strokeWidth};\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: ${options.strokeWidth};\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[id$="-compositionStart"], .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${options.mainBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n fill: ${options.mainBkg} !important;\n stroke: ${options.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: ${options.textColor};\n}\n\n.edgeLabel[data-look="neo"] {\n background-color: ${options.edgeLabelBackground};\n p {\n background-color: ${options.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n}\n ${getIconStyles()}\n`,"getStyles"),getDir=__name((parsedItem,defaultDir="TB")=>{if(!parsedItem.doc)return defaultDir;let dir=defaultDir;for(const parsedItemDoc of parsedItem.doc)"dir"===parsedItemDoc.stmt&&(dir=parsedItemDoc.value);return dir},"getDir"),classRenderer_v3_unified_default={getClasses:__name(function(text,diagramObj){return diagramObj.db.getClasses()},"getClasses"),draw:__name(async function(text,id,_version,diag){log.info("REF0:"),log.info("Drawing class diagram (v3)",id);const{securityLevel:securityLevel,state:conf,layout:layout}=getConfig2();diag.db.setDiagramId(id);const data4Layout=diag.db.getData(),svg=getDiagramElement(id,securityLevel);data4Layout.type=diag.type,data4Layout.layoutAlgorithm=getRegisteredLayoutAlgorithm(layout),data4Layout.nodeSpacing=(null==conf?void 0:conf.nodeSpacing)||50,data4Layout.rankSpacing=(null==conf?void 0:conf.rankSpacing)||50,data4Layout.markers=["aggregation","extension","composition","dependency","lollipop"],data4Layout.diagramId=id,await render(data4Layout,svg);utils_default.insertTitle(svg,"classDiagramTitleText",(null==conf?void 0:conf.titleTopMargin)??25,diag.db.getDiagramTitle()),setupViewPortForSVG(svg,8,"classDiagram",(null==conf?void 0:conf.useMaxWidth)??!0)},"draw"),getDir:getDir};export{ClassDB as C,classDiagram_default as a,classRenderer_v3_unified_default as c,styles_default as s};
@@ -1 +1 @@
1
- import{_ as __name,d as select}from"./mermaid.core-fx56L749.js";var getDiagramElement=__name((id,securityLevel)=>{let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=select("#i"+id));return select("sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument.body:"body").select(`[id="${id}"]`)},"getDiagramElement");export{getDiagramElement as g};
1
+ import{_ as __name,d as select}from"./mermaid.core-O3WUNQR6.js";var getDiagramElement=__name((id,securityLevel)=>{let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=select("#i"+id));return select("sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument.body:"body").select(`[id="${id}"]`)},"getDiagramElement");export{getDiagramElement as g};
@@ -1 +1 @@
1
- import{_ as __name,e as configureSvgSize,l as log}from"./mermaid.core-fx56L749.js";var setupViewPortForSVG=__name((svg,padding,cssDiagram,useMaxWidth)=>{svg.attr("class",cssDiagram);const{width:width,height:height,x:x,y:y}=calculateDimensionsWithPadding(svg,padding);configureSvgSize(svg,height,width,useMaxWidth);const viewBox=createViewBox(x,y,width,height,padding);svg.attr("viewBox",viewBox),log.debug(`viewBox configured: ${viewBox} with padding: ${padding}`)},"setupViewPortForSVG"),calculateDimensionsWithPadding=__name((svg,padding)=>{var _a;const bounds=(null==(_a=svg.node())?void 0:_a.getBBox())||{width:0,height:0,x:0,y:0};return{width:bounds.width+2*padding,height:bounds.height+2*padding,x:bounds.x,y:bounds.y}},"calculateDimensionsWithPadding"),createViewBox=__name((x,y,width,height,padding)=>`${x-padding} ${y-padding} ${width} ${height}`,"createViewBox");export{setupViewPortForSVG as s};
1
+ import{_ as __name,e as configureSvgSize,l as log}from"./mermaid.core-O3WUNQR6.js";var setupViewPortForSVG=__name((svg,padding,cssDiagram,useMaxWidth)=>{svg.attr("class",cssDiagram);const{width:width,height:height,x:x,y:y}=calculateDimensionsWithPadding(svg,padding);configureSvgSize(svg,height,width,useMaxWidth);const viewBox=createViewBox(x,y,width,height,padding);svg.attr("viewBox",viewBox),log.debug(`viewBox configured: ${viewBox} with padding: ${padding}`)},"setupViewPortForSVG"),calculateDimensionsWithPadding=__name((svg,padding)=>{var _a;const bounds=(null==(_a=svg.node())?void 0:_a.getBBox())||{width:0,height:0,x:0,y:0};return{width:bounds.width+2*padding,height:bounds.height+2*padding,x:bounds.x,y:bounds.y}},"calculateDimensionsWithPadding"),createViewBox=__name((x,y,width,height,padding)=>`${x-padding} ${y-padding} ${width} ${height}`,"createViewBox");export{setupViewPortForSVG as s};
@@ -1 +1 @@
1
- import{_ as __name}from"./mermaid.core-fx56L749.js";var getIconStyles=__name(()=>"\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{getIconStyles as g};
1
+ import{_ as __name}from"./mermaid.core-O3WUNQR6.js";var getIconStyles=__name(()=>"\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{getIconStyles as g};
@@ -1 +1 @@
1
- var _a;import{g as getDiagramElement}from"./chunk-55IACEB6-BnetqbRo.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-CL4WCxSM.js";import{_ as __name,l as log,c as getConfig2,r as render,u as utils_default,a as getAccTitle,b as setAccTitle,g as getAccDescription,s as setAccDescription,p as setDiagramTitle,q as getDiagramTitle,S as generateId,k as common_default,y as clear}from"./mermaid.core-fx56L749.js";var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,16],$V7=[1,17],$V8=[1,18],$V9=[1,19],$Va=[1,33],$Vb=[1,20],$Vc=[1,21],$Vd=[1,22],$Ve=[1,23],$Vf=[1,24],$Vg=[1,26],$Vh=[1,27],$Vi=[1,28],$Vj=[1,29],$Vk=[1,30],$Vl=[1,31],$Vm=[1,32],$Vn=[1,35],$Vo=[1,36],$Vp=[1,37],$Vq=[1,38],$Vr=[1,34],$Vs=[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],$Vt=[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],$Vu=[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],parser2={trace:__name(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:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 3:return yy.setRootDoc($$[$0]),$$[$0];case 4:this.$=[];break;case 5:"nl"!=$$[$0]&&($$[$0-1].push($$[$0]),this.$=$$[$0-1]);break;case 6:case 7:case 12:this.$=$$[$0];break;case 8:this.$="nl";break;case 13:const stateStmt=$$[$0-1];stateStmt.description=yy.trimColon($$[$0]),this.$=stateStmt;break;case 14:this.$={stmt:"relation",state1:$$[$0-2],state2:$$[$0]};break;case 15:const relDescription=yy.trimColon($$[$0]);this.$={stmt:"relation",state1:$$[$0-3],state2:$$[$0-1],description:relDescription};break;case 19:this.$={stmt:"state",id:$$[$0-3],type:"default",description:"",doc:$$[$0-1]};break;case 20:var id=$$[$0],description=$$[$0-2].trim();if($$[$0].match(":")){var parts=$$[$0].split(":");id=parts[0],description=[description,parts[1]]}this.$={stmt:"state",id:id,type:"default",description:description};break;case 21:this.$={stmt:"state",id:$$[$0-3],type:"default",description:$$[$0-5],doc:$$[$0-1]};break;case 22:this.$={stmt:"state",id:$$[$0],type:"fork"};break;case 23:this.$={stmt:"state",id:$$[$0],type:"join"};break;case 24:this.$={stmt:"state",id:$$[$0],type:"choice"};break;case 25:this.$={stmt:"state",id:yy.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:$$[$0-1].trim(),note:{position:$$[$0-2].trim(),text:$$[$0].trim()}};break;case 29:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 30:case 31:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:$$[$0-3],url:$$[$0-2],tooltip:$$[$0-1]};break;case 33:this.$={stmt:"click",id:$$[$0-3],url:$$[$0-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:$$[$0-1].trim(),classes:$$[$0].trim()};break;case 36:this.$={stmt:"style",id:$$[$0-1].trim(),styleClass:$$[$0].trim()};break;case 37:this.$={stmt:"applyClass",id:$$[$0-1].trim(),styleClass:$$[$0].trim()};break;case 38:yy.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:yy.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:yy.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:yy.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:$$[$0].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:$$[$0-2].trim(),classes:[$$[$0].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([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],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,7]),o($Vs,[2,8]),o($Vs,[2,9]),o($Vs,[2,10]),o($Vs,[2,11]),o($Vs,[2,12],{14:[1,40],15:[1,41]}),o($Vs,[2,16]),{18:[1,42]},o($Vs,[2,18],{20:[1,43]}),{23:[1,44]},o($Vs,[2,22]),o($Vs,[2,23]),o($Vs,[2,24]),o($Vs,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},o($Vs,[2,28]),{34:[1,49]},{36:[1,50]},o($Vs,[2,31]),{13:51,24:$Va,57:$Vr},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},o($Vt,[2,44],{58:[1,56]}),o($Vt,[2,45],{58:[1,57]}),o($Vs,[2,38]),o($Vs,[2,39]),o($Vs,[2,40]),o($Vs,[2,41]),o($Vs,[2,6]),o($Vs,[2,13]),{13:58,24:$Va,57:$Vr},o($Vs,[2,17]),o($Vu,$V3,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},o($Vs,[2,29]),o($Vs,[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]},o($Vs,[2,14],{14:[1,71]}),{4:$V4,5:$V5,8:8,9:10,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,21:[1,72],22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},o($Vs,[2,34]),o($Vs,[2,35]),o($Vs,[2,36]),o($Vs,[2,37]),o($Vt,[2,46]),o($Vt,[2,47]),o($Vs,[2,15]),o($Vs,[2,19]),o($Vu,$V3,{7:78}),o($Vs,[2,26]),o($Vs,[2,27]),{5:[1,79]},{5:[1,80]},{4:$V4,5:$V5,8:8,9:10,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,21:[1,81],22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,32]),o($Vs,[2,33]),o($Vs,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.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),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=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:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(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:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){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(),yy_.yytext=yy_.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),yy_.yytext=yy_.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),yy_.yytext=yy_.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(),yy_.yytext=yy_.yytext.substr(2).trim(),31;case 70:return this.popState(),yy_.yytext=yy_.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 yy_.yytext=yy_.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;]|:[^:\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,79],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 Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var stateDiagram_default=parser,getDir=__name((parsedItem,defaultDir="TB")=>{if(!parsedItem.doc)return defaultDir;let dir=defaultDir;for(const parsedItemDoc of parsedItem.doc)"dir"===parsedItemDoc.stmt&&(dir=parsedItemDoc.value);return dir},"getDir"),stateRenderer_v3_unified_default={getClasses:__name(function(text,diagramObj){return diagramObj.db.getClasses()},"getClasses"),draw:__name(async function(text,id,_version,diag){log.info("REF0:"),log.info("Drawing state diagram (v2)",id);const{securityLevel:securityLevel,state:conf,layout:layout}=getConfig2();diag.db.extract(diag.db.getRootDocV2());const data4Layout=diag.db.getData(),svg=getDiagramElement(id,securityLevel);data4Layout.type=diag.type,data4Layout.layoutAlgorithm=layout,data4Layout.nodeSpacing=(null==conf?void 0:conf.nodeSpacing)||50,data4Layout.rankSpacing=(null==conf?void 0:conf.rankSpacing)||50;"neo"===getConfig2().look?data4Layout.markers=["barbNeo"]:data4Layout.markers=["barb"],data4Layout.diagramId=id,await render(data4Layout,svg);try{("function"==typeof diag.db.getLinks?diag.db.getLinks():new Map).forEach((linkInfo,key)=>{var _a2;const stateId="string"==typeof key?key:"string"==typeof(null==key?void 0:key.id)?key.id:"";if(!stateId)return void log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(key));const allNodes=null==(_a2=svg.node())?void 0:_a2.querySelectorAll("g");let matchedElem;if(null==allNodes||allNodes.forEach(g=>{var _a3;(null==(_a3=g.textContent)?void 0:_a3.trim())===stateId&&(matchedElem=g)}),!matchedElem)return void log.warn("⚠️ Could not find node matching text:",stateId);const parent=matchedElem.parentNode;if(!parent)return void log.warn("⚠️ Node has no parent, cannot wrap:",stateId);const a=document.createElementNS("http://www.w3.org/2000/svg","a"),cleanedUrl=linkInfo.url.replace(/^"+|"+$/g,"");if(a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",cleanedUrl),a.setAttribute("target","_blank"),linkInfo.tooltip){const tooltip=linkInfo.tooltip.replace(/^"+|"+$/g,"");a.setAttribute("title",tooltip)}parent.replaceChild(a,matchedElem),a.appendChild(matchedElem),log.info("🔗 Wrapped node in <a> tag for:",stateId,linkInfo.url)})}catch(err){log.error("❌ Error injecting clickable links:",err)}utils_default.insertTitle(svg,"statediagramTitleText",(null==conf?void 0:conf.titleTopMargin)??25,diag.db.getDiagramTitle()),setupViewPortForSVG(svg,8,"statediagram",(null==conf?void 0:conf.useMaxWidth)??!0)},"draw"),getDir:getDir},nodeDb=new Map,graphItemCount=0;function stateDomId(itemId="",counter=0,type="",typeSpacer="----"){return`state-${itemId}${null!==type&&type.length>0?`${typeSpacer}${type}`:""}-${counter}`}__name(stateDomId,"stateDomId");var setupDoc=__name((parentParsedItem,doc,diagramStates,nodes,edges,altFlag,look,classes)=>{log.trace("items",doc),doc.forEach(item=>{switch(item.stmt){case"state":case"default":dataFetcher(parentParsedItem,item,diagramStates,nodes,edges,altFlag,look,classes);break;case"relation":{dataFetcher(parentParsedItem,item.state1,diagramStates,nodes,edges,altFlag,look,classes),dataFetcher(parentParsedItem,item.state2,diagramStates,nodes,edges,altFlag,look,classes);const isNeo="neo"===look,edgeData={id:"edge"+graphItemCount,start:item.state1.id,end:item.state2.id,arrowhead:"normal",arrowTypeEnd:isNeo?"arrow_barb_neo":"arrow_barb",style:"fill:none",labelStyle:"",label:common_default.sanitizeText(item.description??"",getConfig2()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"markdown",thickness:"normal",classes:"transition",look:look};edges.push(edgeData),graphItemCount++}}})},"setupDoc"),getDir2=__name((parsedItem,defaultDir="TB")=>{let dir=defaultDir;if(parsedItem.doc)for(const parsedItemDoc of parsedItem.doc)"dir"===parsedItemDoc.stmt&&(dir=parsedItemDoc.value);return dir},"getDir");function insertOrUpdateNode(nodes,nodeData,classes){if(!nodeData.id||"</join></fork>"===nodeData.id||"</choice>"===nodeData.id)return;nodeData.cssClasses&&(Array.isArray(nodeData.cssCompiledStyles)||(nodeData.cssCompiledStyles=[]),nodeData.cssClasses.split(" ").forEach(cssClass=>{const classDef=classes.get(cssClass);classDef&&(nodeData.cssCompiledStyles=[...nodeData.cssCompiledStyles??[],...classDef.styles])}));const existingNodeData=nodes.find(node=>node.id===nodeData.id);existingNodeData?Object.assign(existingNodeData,nodeData):nodes.push(nodeData)}function getClassesFromDbInfo(dbInfoItem){var _a2;return(null==(_a2=null==dbInfoItem?void 0:dbInfoItem.classes)?void 0:_a2.join(" "))??""}function getStylesFromDbInfo(dbInfoItem){return(null==dbInfoItem?void 0:dbInfoItem.styles)??[]}__name(insertOrUpdateNode,"insertOrUpdateNode"),__name(getClassesFromDbInfo,"getClassesFromDbInfo"),__name(getStylesFromDbInfo,"getStylesFromDbInfo");var dataFetcher=__name((parent,parsedItem,diagramStates,nodes,edges,altFlag,look,classes)=>{var _a2,_b,_c;const itemId=parsedItem.id,dbState=diagramStates.get(itemId),classStr=getClassesFromDbInfo(dbState),style=getStylesFromDbInfo(dbState),config=getConfig2();if(log.info("dataFetcher parsedItem",parsedItem,dbState,style),"root"!==itemId){let shape="rect";!0===parsedItem.start?shape="stateStart":!1===parsedItem.start&&(shape="stateEnd"),"default"!==parsedItem.type&&(shape=parsedItem.type),nodeDb.get(itemId)||nodeDb.set(itemId,{id:itemId,shape:shape,description:common_default.sanitizeText(itemId,config),cssClasses:`${classStr} statediagram-state`,cssStyles:style});const newNode=nodeDb.get(itemId);parsedItem.description&&(Array.isArray(newNode.description)?(newNode.shape="rectWithTitle",newNode.description.push(parsedItem.description)):(null==(_a2=newNode.description)?void 0:_a2.length)&&newNode.description.length>0?(newNode.shape="rectWithTitle",newNode.description===itemId?newNode.description=[parsedItem.description]:newNode.description=[newNode.description,parsedItem.description]):(newNode.shape="rect",newNode.description=parsedItem.description),newNode.description=common_default.sanitizeTextOrArray(newNode.description,config)),1===(null==(_b=newNode.description)?void 0:_b.length)&&"rectWithTitle"===newNode.shape&&("group"===newNode.type?newNode.shape="roundedWithTitle":newNode.shape="rect"),!newNode.type&&parsedItem.doc&&(log.info("Setting cluster for XCX",itemId,getDir2(parsedItem)),newNode.type="group",newNode.isGroup=!0,newNode.dir=getDir2(parsedItem),newNode.shape="divider"===parsedItem.type?"divider":"roundedWithTitle",newNode.cssClasses=`${newNode.cssClasses} statediagram-cluster ${altFlag?"statediagram-cluster-alt":""}`);const nodeData={labelStyle:"",shape:newNode.shape,label:newNode.description,cssClasses:newNode.cssClasses,cssCompiledStyles:[],cssStyles:newNode.cssStyles,id:itemId,dir:newNode.dir,domId:stateDomId(itemId,graphItemCount),type:newNode.type,isGroup:"group"===newNode.type,padding:8,rx:10,ry:10,look:look,labelType:"markdown"};if("divider"===nodeData.shape&&(nodeData.label=""),parent&&"root"!==parent.id&&(log.trace("Setting node ",itemId," to be child of its parent ",parent.id),nodeData.parentId=parent.id),nodeData.centerLabel=!0,parsedItem.note){const noteData={labelStyle:"",shape:"note",label:parsedItem.note.text,labelType:"markdown",cssClasses:"statediagram-note",cssStyles:[],cssCompiledStyles:[],id:itemId+"----note-"+graphItemCount,domId:stateDomId(itemId,graphItemCount,"note"),type:newNode.type,isGroup:"group"===newNode.type,padding:null==(_c=config.flowchart)?void 0:_c.padding,look:look,position:parsedItem.note.position},parentNodeId=itemId+"----parent",groupData={labelStyle:"",shape:"noteGroup",label:parsedItem.note.text,cssClasses:newNode.cssClasses,cssStyles:[],id:itemId+"----parent",domId:stateDomId(itemId,graphItemCount,"parent"),type:"group",isGroup:!0,padding:16,look:look,position:parsedItem.note.position};graphItemCount++,groupData.id=parentNodeId,noteData.parentId=parentNodeId,insertOrUpdateNode(nodes,groupData,classes),insertOrUpdateNode(nodes,noteData,classes),insertOrUpdateNode(nodes,nodeData,classes);let from=itemId,to=noteData.id;"left of"===parsedItem.note.position&&(from=noteData.id,to=itemId),edges.push({id:from+"-"+to,start:from,end:to,arrowhead:"none",arrowTypeEnd:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"markdown",thickness:"normal",look:look})}else insertOrUpdateNode(nodes,nodeData,classes)}parsedItem.doc&&(log.trace("Adding nodes children "),setupDoc(parsedItem,parsedItem.doc,diagramStates,nodes,edges,!altFlag,look,classes))},"dataFetcher"),reset=__name(()=>{nodeDb.clear(),graphItemCount=0},"reset"),CONSTANTS_START_NODE="[*]",CONSTANTS_START_TYPE="start",CONSTANTS_END_NODE="[*]",CONSTANTS_END_TYPE="end",CONSTANTS_COLOR_KEYWORD="color",CONSTANTS_FILL_KEYWORD="fill",CONSTANTS_BG_FILL="bgFill",CONSTANTS_STYLECLASS_SEP=",",newClassesList=__name(()=>new Map,"newClassesList"),newDoc=__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),clone=__name(o=>JSON.parse(JSON.stringify(o)),"clone"),StateDB=(__name(_a=class{constructor(version){this.version=version,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=newClassesList(),this.documents={root:newDoc()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=getAccTitle,this.setAccTitle=setAccTitle,this.getAccDescription=getAccDescription,this.setAccDescription=setAccDescription,this.setDiagramTitle=setDiagramTitle,this.getDiagramTitle=getDiagramTitle,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(statements){this.clear(!0);for(const item of Array.isArray(statements)?statements:statements.doc)switch(item.stmt){case"state":this.addState(item.id.trim(),item.type,item.doc,item.description,item.note);break;case"relation":this.addRelation(item.state1,item.state2,item.description);break;case"classDef":this.addStyleClass(item.id.trim(),item.classes);break;case"style":this.handleStyleDef(item);break;case"applyClass":this.setCssClass(item.id.trim(),item.styleClass);break;case"click":this.addLink(item.id,item.url,item.tooltip)}const diagramStates=this.getStates(),config=getConfig2();reset(),dataFetcher(void 0,this.getRootDocV2(),diagramStates,this.nodes,this.edges,!0,config.look,this.classes);for(const node of this.nodes)if(Array.isArray(node.label)){if(node.description=node.label.slice(1),node.isGroup&&node.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${node.id}]`);node.label=node.label[0]}}handleStyleDef(item){const ids=item.id.trim().split(","),styles=item.styleClass.split(",");for(const id of ids){let state=this.getState(id);if(!state){const trimmedId=id.trim();this.addState(trimmedId),state=this.getState(trimmedId)}state&&(state.styles=styles.map(s=>{var _a2;return null==(_a2=s.replace(/;/g,""))?void 0:_a2.trim()}))}}setRootDoc(o){log.info("Setting root doc",o),this.rootDoc=o,1===this.version?this.extract(o):this.extract(this.getRootDocV2())}docTranslator(parent,node,first){if("relation"===node.stmt)return this.docTranslator(parent,node.state1,!0),void this.docTranslator(parent,node.state2,!1);if("state"===node.stmt&&(node.id===CONSTANTS_START_NODE?(node.id=parent.id+(first?"_start":"_end"),node.start=first):node.id=node.id.trim()),"root"!==node.stmt&&"state"!==node.stmt||!node.doc)return;const doc=[];let currentDoc=[];for(const stmt of node.doc)if("divider"===stmt.type){const newNode=clone(stmt);newNode.doc=clone(currentDoc),doc.push(newNode),currentDoc=[]}else currentDoc.push(stmt);if(doc.length>0&&currentDoc.length>0){const newNode={stmt:"state",id:generateId(),type:"divider",doc:clone(currentDoc)};doc.push(clone(newNode)),node.doc=doc}node.doc.forEach(docNode=>this.docTranslator(node,docNode,!0))}getRootDocV2(){return this.docTranslator({id:"root",stmt:"root"},{id:"root",stmt:"root",doc:this.rootDoc},!0),{id:"root",doc:this.rootDoc}}addState(id,type="default",doc=void 0,descr=void 0,note=void 0,classes=void 0,styles=void 0,textStyles=void 0){const trimmedId=null==id?void 0:id.trim();if(this.currentDocument.states.has(trimmedId)){const state=this.currentDocument.states.get(trimmedId);if(!state)throw new Error(`State not found: ${trimmedId}`);state.doc||(state.doc=doc),state.type||(state.type=type)}else log.info("Adding state ",trimmedId,descr),this.currentDocument.states.set(trimmedId,{stmt:"state",id:trimmedId,descriptions:[],type:type,doc:doc,note:note,classes:[],styles:[],textStyles:[]});if(descr){log.info("Setting state description",trimmedId,descr);(Array.isArray(descr)?descr:[descr]).forEach(des=>this.addDescription(trimmedId,des.trim()))}if(note){const doc2=this.currentDocument.states.get(trimmedId);if(!doc2)throw new Error(`State not found: ${trimmedId}`);doc2.note=note,doc2.note.text=common_default.sanitizeText(doc2.note.text,getConfig2())}if(classes){log.info("Setting state classes",trimmedId,classes);(Array.isArray(classes)?classes:[classes]).forEach(cssClass=>this.setCssClass(trimmedId,cssClass.trim()))}if(styles){log.info("Setting state styles",trimmedId,styles);(Array.isArray(styles)?styles:[styles]).forEach(style=>this.setStyle(trimmedId,style.trim()))}if(textStyles){log.info("Setting state styles",trimmedId,styles);(Array.isArray(textStyles)?textStyles:[textStyles]).forEach(textStyle=>this.setTextStyle(trimmedId,textStyle.trim()))}}clear(saveCommon){this.nodes=[],this.edges=[],this.documents={root:newDoc()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=newClassesList(),saveCommon||(this.links=new Map,clear())}getState(id){return this.currentDocument.states.get(id)}getStates(){return this.currentDocument.states}logDocuments(){log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(stateId,url,tooltip){this.links.set(stateId,{url:url,tooltip:tooltip}),log.warn("Adding link",stateId,url,tooltip)}getLinks(){return this.links}startIdIfNeeded(id=""){return id===CONSTANTS_START_NODE?(this.startEndCount++,`${CONSTANTS_START_TYPE}${this.startEndCount}`):id}startTypeIfNeeded(id="",type="default"){return id===CONSTANTS_START_NODE?CONSTANTS_START_TYPE:type}endIdIfNeeded(id=""){return id===CONSTANTS_END_NODE?(this.startEndCount++,`${CONSTANTS_END_TYPE}${this.startEndCount}`):id}endTypeIfNeeded(id="",type="default"){return id===CONSTANTS_END_NODE?CONSTANTS_END_TYPE:type}addRelationObjs(item1,item2,relationTitle=""){const id1=this.startIdIfNeeded(item1.id.trim()),type1=this.startTypeIfNeeded(item1.id.trim(),item1.type),id2=this.startIdIfNeeded(item2.id.trim()),type2=this.startTypeIfNeeded(item2.id.trim(),item2.type);this.addState(id1,type1,item1.doc,item1.description,item1.note,item1.classes,item1.styles,item1.textStyles),this.addState(id2,type2,item2.doc,item2.description,item2.note,item2.classes,item2.styles,item2.textStyles),this.currentDocument.relations.push({id1:id1,id2:id2,relationTitle:common_default.sanitizeText(relationTitle,getConfig2())})}addRelation(item1,item2,title){if("object"==typeof item1&&"object"==typeof item2)this.addRelationObjs(item1,item2,title);else if("string"==typeof item1&&"string"==typeof item2){const id1=this.startIdIfNeeded(item1.trim()),type1=this.startTypeIfNeeded(item1),id2=this.endIdIfNeeded(item2.trim()),type2=this.endTypeIfNeeded(item2);this.addState(id1,type1),this.addState(id2,type2),this.currentDocument.relations.push({id1:id1,id2:id2,relationTitle:title?common_default.sanitizeText(title,getConfig2()):void 0})}}addDescription(id,descr){var _a2;const theState=this.currentDocument.states.get(id),_descr=descr.startsWith(":")?descr.replace(":","").trim():descr;null==(_a2=null==theState?void 0:theState.descriptions)||_a2.push(common_default.sanitizeText(_descr,getConfig2()))}cleanupLabel(label){return label.startsWith(":")?label.slice(2).trim():label.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(id,styleAttributes=""){this.classes.has(id)||this.classes.set(id,{id:id,styles:[],textStyles:[]});const foundClass=this.classes.get(id);styleAttributes&&foundClass&&styleAttributes.split(CONSTANTS_STYLECLASS_SEP).forEach(attrib=>{const fixedAttrib=attrib.replace(/([^;]*);/,"$1").trim();if(RegExp(CONSTANTS_COLOR_KEYWORD).exec(attrib)){const newStyle2=fixedAttrib.replace(CONSTANTS_FILL_KEYWORD,CONSTANTS_BG_FILL).replace(CONSTANTS_COLOR_KEYWORD,CONSTANTS_FILL_KEYWORD);foundClass.textStyles.push(newStyle2)}foundClass.styles.push(fixedAttrib)})}getClasses(){return this.classes}setCssClass(itemIds,cssClassName){itemIds.split(",").forEach(id=>{var _a2;let foundState=this.getState(id);if(!foundState){const trimmedId=id.trim();this.addState(trimmedId),foundState=this.getState(trimmedId)}null==(_a2=null==foundState?void 0:foundState.classes)||_a2.push(cssClassName)})}setStyle(itemId,styleText){var _a2,_b;null==(_b=null==(_a2=this.getState(itemId))?void 0:_a2.styles)||_b.push(styleText)}setTextStyle(itemId,cssClassName){var _a2,_b;null==(_b=null==(_a2=this.getState(itemId))?void 0:_a2.textStyles)||_b.push(cssClassName)}getDirectionStatement(){return this.rootDoc.find(doc=>"dir"===doc.stmt)}getDirection(){var _a2;return(null==(_a2=this.getDirectionStatement())?void 0:_a2.value)??"TB"}setDirection(dir){const doc=this.getDirectionStatement();doc?doc.value=dir:this.rootDoc.unshift({stmt:"dir",value:dir})}trimColon(str){return str.startsWith(":")?str.slice(1).trim():str.trim()}getData(){const config=getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:config,direction:getDir(this.getRootDocV2())}}getConfig(){return getConfig2().state}},"StateDB"),_a.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},_a),styles_default=__name(options=>`\ndefs [id$="-barbEnd"] {\n fill: ${options.transitionColor};\n stroke: ${options.transitionColor};\n }\ng.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: ${options.strokeWidth||1};\n}\n\n.transition {\n stroke: ${options.transitionColor};\n stroke-width: ${options.strokeWidth||1};\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.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: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: ${options.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${options.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${options.edgeLabelBackground};\n p {\n background-color: ${options.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${options.transitionLabelColor||options.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${options.transitionLabelColor||options.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${options.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${options.specialStateColor};\n stroke: ${options.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${options.specialStateColor};\n stroke: ${options.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${options.innerEndBackground};\n stroke: ${options.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${options.compositeBackground||options.background};\n // stroke: ${options.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.stateBkg||options.mainBkg};\n stroke: ${options.stateBorder||options.nodeBorder};\n stroke-width: ${options.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${options.mainBkg};\n stroke: ${options.stateBorder||options.nodeBorder};;\n stroke-width: ${options.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.compositeTitleBackground};\n stroke: ${options.stateBorder||options.nodeBorder};\n stroke-width: ${options.strokeWidth||1}px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.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: ${options.stateBorder||options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.compositeBackground||options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${options.altBackground?options.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: ${options.altBackground?options.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${options.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${options.noteTextColor};\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: ${options.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${options.mainBkg};\n stroke: ${options.useGradient?"url("+options.svgId+"-gradient)":options.stateBorder||options.nodeBorder};\n stroke-width: ${options.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${options.radius}px;\n ry: ${options.radius}px;\n filter: ${options.dropShadow?options.dropShadow.replace("url(#drop-shadow)",`url(${options.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles");export{StateDB as S,stateDiagram_default as a,stateRenderer_v3_unified_default as b,styles_default as s};
1
+ var _a;import{g as getDiagramElement}from"./chunk-55IACEB6-kKpXz88M.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-DGxEwZ4m.js";import{_ as __name,l as log,c as getConfig2,r as render,u as utils_default,a as getAccTitle,b as setAccTitle,g as getAccDescription,s as setAccDescription,p as setDiagramTitle,q as getDiagramTitle,S as generateId,k as common_default,y as clear}from"./mermaid.core-O3WUNQR6.js";var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,16],$V7=[1,17],$V8=[1,18],$V9=[1,19],$Va=[1,33],$Vb=[1,20],$Vc=[1,21],$Vd=[1,22],$Ve=[1,23],$Vf=[1,24],$Vg=[1,26],$Vh=[1,27],$Vi=[1,28],$Vj=[1,29],$Vk=[1,30],$Vl=[1,31],$Vm=[1,32],$Vn=[1,35],$Vo=[1,36],$Vp=[1,37],$Vq=[1,38],$Vr=[1,34],$Vs=[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],$Vt=[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],$Vu=[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],parser2={trace:__name(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:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 3:return yy.setRootDoc($$[$0]),$$[$0];case 4:this.$=[];break;case 5:"nl"!=$$[$0]&&($$[$0-1].push($$[$0]),this.$=$$[$0-1]);break;case 6:case 7:case 12:this.$=$$[$0];break;case 8:this.$="nl";break;case 13:const stateStmt=$$[$0-1];stateStmt.description=yy.trimColon($$[$0]),this.$=stateStmt;break;case 14:this.$={stmt:"relation",state1:$$[$0-2],state2:$$[$0]};break;case 15:const relDescription=yy.trimColon($$[$0]);this.$={stmt:"relation",state1:$$[$0-3],state2:$$[$0-1],description:relDescription};break;case 19:this.$={stmt:"state",id:$$[$0-3],type:"default",description:"",doc:$$[$0-1]};break;case 20:var id=$$[$0],description=$$[$0-2].trim();if($$[$0].match(":")){var parts=$$[$0].split(":");id=parts[0],description=[description,parts[1]]}this.$={stmt:"state",id:id,type:"default",description:description};break;case 21:this.$={stmt:"state",id:$$[$0-3],type:"default",description:$$[$0-5],doc:$$[$0-1]};break;case 22:this.$={stmt:"state",id:$$[$0],type:"fork"};break;case 23:this.$={stmt:"state",id:$$[$0],type:"join"};break;case 24:this.$={stmt:"state",id:$$[$0],type:"choice"};break;case 25:this.$={stmt:"state",id:yy.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:$$[$0-1].trim(),note:{position:$$[$0-2].trim(),text:$$[$0].trim()}};break;case 29:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 30:case 31:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:$$[$0-3],url:$$[$0-2],tooltip:$$[$0-1]};break;case 33:this.$={stmt:"click",id:$$[$0-3],url:$$[$0-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:$$[$0-1].trim(),classes:$$[$0].trim()};break;case 36:this.$={stmt:"style",id:$$[$0-1].trim(),styleClass:$$[$0].trim()};break;case 37:this.$={stmt:"applyClass",id:$$[$0-1].trim(),styleClass:$$[$0].trim()};break;case 38:yy.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:yy.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:yy.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:yy.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:$$[$0].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:$$[$0-2].trim(),classes:[$$[$0].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([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],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,7]),o($Vs,[2,8]),o($Vs,[2,9]),o($Vs,[2,10]),o($Vs,[2,11]),o($Vs,[2,12],{14:[1,40],15:[1,41]}),o($Vs,[2,16]),{18:[1,42]},o($Vs,[2,18],{20:[1,43]}),{23:[1,44]},o($Vs,[2,22]),o($Vs,[2,23]),o($Vs,[2,24]),o($Vs,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},o($Vs,[2,28]),{34:[1,49]},{36:[1,50]},o($Vs,[2,31]),{13:51,24:$Va,57:$Vr},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},o($Vt,[2,44],{58:[1,56]}),o($Vt,[2,45],{58:[1,57]}),o($Vs,[2,38]),o($Vs,[2,39]),o($Vs,[2,40]),o($Vs,[2,41]),o($Vs,[2,6]),o($Vs,[2,13]),{13:58,24:$Va,57:$Vr},o($Vs,[2,17]),o($Vu,$V3,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},o($Vs,[2,29]),o($Vs,[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]},o($Vs,[2,14],{14:[1,71]}),{4:$V4,5:$V5,8:8,9:10,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,21:[1,72],22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},o($Vs,[2,34]),o($Vs,[2,35]),o($Vs,[2,36]),o($Vs,[2,37]),o($Vt,[2,46]),o($Vt,[2,47]),o($Vs,[2,15]),o($Vs,[2,19]),o($Vu,$V3,{7:78}),o($Vs,[2,26]),o($Vs,[2,27]),{5:[1,79]},{5:[1,80]},{4:$V4,5:$V5,8:8,9:10,10:12,11:13,12:14,13:15,16:$V6,17:$V7,19:$V8,21:[1,81],22:$V9,24:$Va,25:$Vb,26:$Vc,27:$Vd,28:$Ve,29:$Vf,32:25,33:$Vg,35:$Vh,37:$Vi,38:$Vj,41:$Vk,45:$Vl,48:$Vm,51:$Vn,52:$Vo,53:$Vp,54:$Vq,57:$Vr},o($Vs,[2,32]),o($Vs,[2,33]),o($Vs,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.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),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=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:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(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:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){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(),yy_.yytext=yy_.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),yy_.yytext=yy_.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),yy_.yytext=yy_.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(),yy_.yytext=yy_.yytext.substr(2).trim(),31;case 70:return this.popState(),yy_.yytext=yy_.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 yy_.yytext=yy_.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;]|:[^:\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,79],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 Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var stateDiagram_default=parser,getDir=__name((parsedItem,defaultDir="TB")=>{if(!parsedItem.doc)return defaultDir;let dir=defaultDir;for(const parsedItemDoc of parsedItem.doc)"dir"===parsedItemDoc.stmt&&(dir=parsedItemDoc.value);return dir},"getDir"),stateRenderer_v3_unified_default={getClasses:__name(function(text,diagramObj){return diagramObj.db.getClasses()},"getClasses"),draw:__name(async function(text,id,_version,diag){log.info("REF0:"),log.info("Drawing state diagram (v2)",id);const{securityLevel:securityLevel,state:conf,layout:layout}=getConfig2();diag.db.extract(diag.db.getRootDocV2());const data4Layout=diag.db.getData(),svg=getDiagramElement(id,securityLevel);data4Layout.type=diag.type,data4Layout.layoutAlgorithm=layout,data4Layout.nodeSpacing=(null==conf?void 0:conf.nodeSpacing)||50,data4Layout.rankSpacing=(null==conf?void 0:conf.rankSpacing)||50;"neo"===getConfig2().look?data4Layout.markers=["barbNeo"]:data4Layout.markers=["barb"],data4Layout.diagramId=id,await render(data4Layout,svg);try{("function"==typeof diag.db.getLinks?diag.db.getLinks():new Map).forEach((linkInfo,key)=>{var _a2;const stateId="string"==typeof key?key:"string"==typeof(null==key?void 0:key.id)?key.id:"";if(!stateId)return void log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(key));const allNodes=null==(_a2=svg.node())?void 0:_a2.querySelectorAll("g");let matchedElem;if(null==allNodes||allNodes.forEach(g=>{var _a3;(null==(_a3=g.textContent)?void 0:_a3.trim())===stateId&&(matchedElem=g)}),!matchedElem)return void log.warn("⚠️ Could not find node matching text:",stateId);const parent=matchedElem.parentNode;if(!parent)return void log.warn("⚠️ Node has no parent, cannot wrap:",stateId);const a=document.createElementNS("http://www.w3.org/2000/svg","a"),cleanedUrl=linkInfo.url.replace(/^"+|"+$/g,"");if(a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",cleanedUrl),a.setAttribute("target","_blank"),linkInfo.tooltip){const tooltip=linkInfo.tooltip.replace(/^"+|"+$/g,"");a.setAttribute("title",tooltip)}parent.replaceChild(a,matchedElem),a.appendChild(matchedElem),log.info("🔗 Wrapped node in <a> tag for:",stateId,linkInfo.url)})}catch(err){log.error("❌ Error injecting clickable links:",err)}utils_default.insertTitle(svg,"statediagramTitleText",(null==conf?void 0:conf.titleTopMargin)??25,diag.db.getDiagramTitle()),setupViewPortForSVG(svg,8,"statediagram",(null==conf?void 0:conf.useMaxWidth)??!0)},"draw"),getDir:getDir},nodeDb=new Map,graphItemCount=0;function stateDomId(itemId="",counter=0,type="",typeSpacer="----"){return`state-${itemId}${null!==type&&type.length>0?`${typeSpacer}${type}`:""}-${counter}`}__name(stateDomId,"stateDomId");var setupDoc=__name((parentParsedItem,doc,diagramStates,nodes,edges,altFlag,look,classes)=>{log.trace("items",doc),doc.forEach(item=>{switch(item.stmt){case"state":case"default":dataFetcher(parentParsedItem,item,diagramStates,nodes,edges,altFlag,look,classes);break;case"relation":{dataFetcher(parentParsedItem,item.state1,diagramStates,nodes,edges,altFlag,look,classes),dataFetcher(parentParsedItem,item.state2,diagramStates,nodes,edges,altFlag,look,classes);const isNeo="neo"===look,edgeData={id:"edge"+graphItemCount,start:item.state1.id,end:item.state2.id,arrowhead:"normal",arrowTypeEnd:isNeo?"arrow_barb_neo":"arrow_barb",style:"fill:none",labelStyle:"",label:common_default.sanitizeText(item.description??"",getConfig2()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"markdown",thickness:"normal",classes:"transition",look:look};edges.push(edgeData),graphItemCount++}}})},"setupDoc"),getDir2=__name((parsedItem,defaultDir="TB")=>{let dir=defaultDir;if(parsedItem.doc)for(const parsedItemDoc of parsedItem.doc)"dir"===parsedItemDoc.stmt&&(dir=parsedItemDoc.value);return dir},"getDir");function insertOrUpdateNode(nodes,nodeData,classes){if(!nodeData.id||"</join></fork>"===nodeData.id||"</choice>"===nodeData.id)return;nodeData.cssClasses&&(Array.isArray(nodeData.cssCompiledStyles)||(nodeData.cssCompiledStyles=[]),nodeData.cssClasses.split(" ").forEach(cssClass=>{const classDef=classes.get(cssClass);classDef&&(nodeData.cssCompiledStyles=[...nodeData.cssCompiledStyles??[],...classDef.styles])}));const existingNodeData=nodes.find(node=>node.id===nodeData.id);existingNodeData?Object.assign(existingNodeData,nodeData):nodes.push(nodeData)}function getClassesFromDbInfo(dbInfoItem){var _a2;return(null==(_a2=null==dbInfoItem?void 0:dbInfoItem.classes)?void 0:_a2.join(" "))??""}function getStylesFromDbInfo(dbInfoItem){return(null==dbInfoItem?void 0:dbInfoItem.styles)??[]}__name(insertOrUpdateNode,"insertOrUpdateNode"),__name(getClassesFromDbInfo,"getClassesFromDbInfo"),__name(getStylesFromDbInfo,"getStylesFromDbInfo");var dataFetcher=__name((parent,parsedItem,diagramStates,nodes,edges,altFlag,look,classes)=>{var _a2,_b,_c;const itemId=parsedItem.id,dbState=diagramStates.get(itemId),classStr=getClassesFromDbInfo(dbState),style=getStylesFromDbInfo(dbState),config=getConfig2();if(log.info("dataFetcher parsedItem",parsedItem,dbState,style),"root"!==itemId){let shape="rect";!0===parsedItem.start?shape="stateStart":!1===parsedItem.start&&(shape="stateEnd"),"default"!==parsedItem.type&&(shape=parsedItem.type),nodeDb.get(itemId)||nodeDb.set(itemId,{id:itemId,shape:shape,description:common_default.sanitizeText(itemId,config),cssClasses:`${classStr} statediagram-state`,cssStyles:style});const newNode=nodeDb.get(itemId);parsedItem.description&&(Array.isArray(newNode.description)?(newNode.shape="rectWithTitle",newNode.description.push(parsedItem.description)):(null==(_a2=newNode.description)?void 0:_a2.length)&&newNode.description.length>0?(newNode.shape="rectWithTitle",newNode.description===itemId?newNode.description=[parsedItem.description]:newNode.description=[newNode.description,parsedItem.description]):(newNode.shape="rect",newNode.description=parsedItem.description),newNode.description=common_default.sanitizeTextOrArray(newNode.description,config)),1===(null==(_b=newNode.description)?void 0:_b.length)&&"rectWithTitle"===newNode.shape&&("group"===newNode.type?newNode.shape="roundedWithTitle":newNode.shape="rect"),!newNode.type&&parsedItem.doc&&(log.info("Setting cluster for XCX",itemId,getDir2(parsedItem)),newNode.type="group",newNode.isGroup=!0,newNode.dir=getDir2(parsedItem),newNode.shape="divider"===parsedItem.type?"divider":"roundedWithTitle",newNode.cssClasses=`${newNode.cssClasses} statediagram-cluster ${altFlag?"statediagram-cluster-alt":""}`);const nodeData={labelStyle:"",shape:newNode.shape,label:newNode.description,cssClasses:newNode.cssClasses,cssCompiledStyles:[],cssStyles:newNode.cssStyles,id:itemId,dir:newNode.dir,domId:stateDomId(itemId,graphItemCount),type:newNode.type,isGroup:"group"===newNode.type,padding:8,rx:10,ry:10,look:look,labelType:"markdown"};if("divider"===nodeData.shape&&(nodeData.label=""),parent&&"root"!==parent.id&&(log.trace("Setting node ",itemId," to be child of its parent ",parent.id),nodeData.parentId=parent.id),nodeData.centerLabel=!0,parsedItem.note){const noteData={labelStyle:"",shape:"note",label:parsedItem.note.text,labelType:"markdown",cssClasses:"statediagram-note",cssStyles:[],cssCompiledStyles:[],id:itemId+"----note-"+graphItemCount,domId:stateDomId(itemId,graphItemCount,"note"),type:newNode.type,isGroup:"group"===newNode.type,padding:null==(_c=config.flowchart)?void 0:_c.padding,look:look,position:parsedItem.note.position},parentNodeId=itemId+"----parent",groupData={labelStyle:"",shape:"noteGroup",label:parsedItem.note.text,cssClasses:newNode.cssClasses,cssStyles:[],id:itemId+"----parent",domId:stateDomId(itemId,graphItemCount,"parent"),type:"group",isGroup:!0,padding:16,look:look,position:parsedItem.note.position};graphItemCount++,groupData.id=parentNodeId,noteData.parentId=parentNodeId,insertOrUpdateNode(nodes,groupData,classes),insertOrUpdateNode(nodes,noteData,classes),insertOrUpdateNode(nodes,nodeData,classes);let from=itemId,to=noteData.id;"left of"===parsedItem.note.position&&(from=noteData.id,to=itemId),edges.push({id:from+"-"+to,start:from,end:to,arrowhead:"none",arrowTypeEnd:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"markdown",thickness:"normal",look:look})}else insertOrUpdateNode(nodes,nodeData,classes)}parsedItem.doc&&(log.trace("Adding nodes children "),setupDoc(parsedItem,parsedItem.doc,diagramStates,nodes,edges,!altFlag,look,classes))},"dataFetcher"),reset=__name(()=>{nodeDb.clear(),graphItemCount=0},"reset"),CONSTANTS_START_NODE="[*]",CONSTANTS_START_TYPE="start",CONSTANTS_END_NODE="[*]",CONSTANTS_END_TYPE="end",CONSTANTS_COLOR_KEYWORD="color",CONSTANTS_FILL_KEYWORD="fill",CONSTANTS_BG_FILL="bgFill",CONSTANTS_STYLECLASS_SEP=",",newClassesList=__name(()=>new Map,"newClassesList"),newDoc=__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),clone=__name(o=>JSON.parse(JSON.stringify(o)),"clone"),StateDB=(__name(_a=class{constructor(version){this.version=version,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=newClassesList(),this.documents={root:newDoc()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=getAccTitle,this.setAccTitle=setAccTitle,this.getAccDescription=getAccDescription,this.setAccDescription=setAccDescription,this.setDiagramTitle=setDiagramTitle,this.getDiagramTitle=getDiagramTitle,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(statements){this.clear(!0);for(const item of Array.isArray(statements)?statements:statements.doc)switch(item.stmt){case"state":this.addState(item.id.trim(),item.type,item.doc,item.description,item.note);break;case"relation":this.addRelation(item.state1,item.state2,item.description);break;case"classDef":this.addStyleClass(item.id.trim(),item.classes);break;case"style":this.handleStyleDef(item);break;case"applyClass":this.setCssClass(item.id.trim(),item.styleClass);break;case"click":this.addLink(item.id,item.url,item.tooltip)}const diagramStates=this.getStates(),config=getConfig2();reset(),dataFetcher(void 0,this.getRootDocV2(),diagramStates,this.nodes,this.edges,!0,config.look,this.classes);for(const node of this.nodes)if(Array.isArray(node.label)){if(node.description=node.label.slice(1),node.isGroup&&node.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${node.id}]`);node.label=node.label[0]}}handleStyleDef(item){const ids=item.id.trim().split(","),styles=item.styleClass.split(",");for(const id of ids){let state=this.getState(id);if(!state){const trimmedId=id.trim();this.addState(trimmedId),state=this.getState(trimmedId)}state&&(state.styles=styles.map(s=>{var _a2;return null==(_a2=s.replace(/;/g,""))?void 0:_a2.trim()}))}}setRootDoc(o){log.info("Setting root doc",o),this.rootDoc=o,1===this.version?this.extract(o):this.extract(this.getRootDocV2())}docTranslator(parent,node,first){if("relation"===node.stmt)return this.docTranslator(parent,node.state1,!0),void this.docTranslator(parent,node.state2,!1);if("state"===node.stmt&&(node.id===CONSTANTS_START_NODE?(node.id=parent.id+(first?"_start":"_end"),node.start=first):node.id=node.id.trim()),"root"!==node.stmt&&"state"!==node.stmt||!node.doc)return;const doc=[];let currentDoc=[];for(const stmt of node.doc)if("divider"===stmt.type){const newNode=clone(stmt);newNode.doc=clone(currentDoc),doc.push(newNode),currentDoc=[]}else currentDoc.push(stmt);if(doc.length>0&&currentDoc.length>0){const newNode={stmt:"state",id:generateId(),type:"divider",doc:clone(currentDoc)};doc.push(clone(newNode)),node.doc=doc}node.doc.forEach(docNode=>this.docTranslator(node,docNode,!0))}getRootDocV2(){return this.docTranslator({id:"root",stmt:"root"},{id:"root",stmt:"root",doc:this.rootDoc},!0),{id:"root",doc:this.rootDoc}}addState(id,type="default",doc=void 0,descr=void 0,note=void 0,classes=void 0,styles=void 0,textStyles=void 0){const trimmedId=null==id?void 0:id.trim();if(this.currentDocument.states.has(trimmedId)){const state=this.currentDocument.states.get(trimmedId);if(!state)throw new Error(`State not found: ${trimmedId}`);state.doc||(state.doc=doc),state.type||(state.type=type)}else log.info("Adding state ",trimmedId,descr),this.currentDocument.states.set(trimmedId,{stmt:"state",id:trimmedId,descriptions:[],type:type,doc:doc,note:note,classes:[],styles:[],textStyles:[]});if(descr){log.info("Setting state description",trimmedId,descr);(Array.isArray(descr)?descr:[descr]).forEach(des=>this.addDescription(trimmedId,des.trim()))}if(note){const doc2=this.currentDocument.states.get(trimmedId);if(!doc2)throw new Error(`State not found: ${trimmedId}`);doc2.note=note,doc2.note.text=common_default.sanitizeText(doc2.note.text,getConfig2())}if(classes){log.info("Setting state classes",trimmedId,classes);(Array.isArray(classes)?classes:[classes]).forEach(cssClass=>this.setCssClass(trimmedId,cssClass.trim()))}if(styles){log.info("Setting state styles",trimmedId,styles);(Array.isArray(styles)?styles:[styles]).forEach(style=>this.setStyle(trimmedId,style.trim()))}if(textStyles){log.info("Setting state styles",trimmedId,styles);(Array.isArray(textStyles)?textStyles:[textStyles]).forEach(textStyle=>this.setTextStyle(trimmedId,textStyle.trim()))}}clear(saveCommon){this.nodes=[],this.edges=[],this.documents={root:newDoc()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=newClassesList(),saveCommon||(this.links=new Map,clear())}getState(id){return this.currentDocument.states.get(id)}getStates(){return this.currentDocument.states}logDocuments(){log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(stateId,url,tooltip){this.links.set(stateId,{url:url,tooltip:tooltip}),log.warn("Adding link",stateId,url,tooltip)}getLinks(){return this.links}startIdIfNeeded(id=""){return id===CONSTANTS_START_NODE?(this.startEndCount++,`${CONSTANTS_START_TYPE}${this.startEndCount}`):id}startTypeIfNeeded(id="",type="default"){return id===CONSTANTS_START_NODE?CONSTANTS_START_TYPE:type}endIdIfNeeded(id=""){return id===CONSTANTS_END_NODE?(this.startEndCount++,`${CONSTANTS_END_TYPE}${this.startEndCount}`):id}endTypeIfNeeded(id="",type="default"){return id===CONSTANTS_END_NODE?CONSTANTS_END_TYPE:type}addRelationObjs(item1,item2,relationTitle=""){const id1=this.startIdIfNeeded(item1.id.trim()),type1=this.startTypeIfNeeded(item1.id.trim(),item1.type),id2=this.startIdIfNeeded(item2.id.trim()),type2=this.startTypeIfNeeded(item2.id.trim(),item2.type);this.addState(id1,type1,item1.doc,item1.description,item1.note,item1.classes,item1.styles,item1.textStyles),this.addState(id2,type2,item2.doc,item2.description,item2.note,item2.classes,item2.styles,item2.textStyles),this.currentDocument.relations.push({id1:id1,id2:id2,relationTitle:common_default.sanitizeText(relationTitle,getConfig2())})}addRelation(item1,item2,title){if("object"==typeof item1&&"object"==typeof item2)this.addRelationObjs(item1,item2,title);else if("string"==typeof item1&&"string"==typeof item2){const id1=this.startIdIfNeeded(item1.trim()),type1=this.startTypeIfNeeded(item1),id2=this.endIdIfNeeded(item2.trim()),type2=this.endTypeIfNeeded(item2);this.addState(id1,type1),this.addState(id2,type2),this.currentDocument.relations.push({id1:id1,id2:id2,relationTitle:title?common_default.sanitizeText(title,getConfig2()):void 0})}}addDescription(id,descr){var _a2;const theState=this.currentDocument.states.get(id),_descr=descr.startsWith(":")?descr.replace(":","").trim():descr;null==(_a2=null==theState?void 0:theState.descriptions)||_a2.push(common_default.sanitizeText(_descr,getConfig2()))}cleanupLabel(label){return label.startsWith(":")?label.slice(2).trim():label.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(id,styleAttributes=""){this.classes.has(id)||this.classes.set(id,{id:id,styles:[],textStyles:[]});const foundClass=this.classes.get(id);styleAttributes&&foundClass&&styleAttributes.split(CONSTANTS_STYLECLASS_SEP).forEach(attrib=>{const fixedAttrib=attrib.replace(/([^;]*);/,"$1").trim();if(RegExp(CONSTANTS_COLOR_KEYWORD).exec(attrib)){const newStyle2=fixedAttrib.replace(CONSTANTS_FILL_KEYWORD,CONSTANTS_BG_FILL).replace(CONSTANTS_COLOR_KEYWORD,CONSTANTS_FILL_KEYWORD);foundClass.textStyles.push(newStyle2)}foundClass.styles.push(fixedAttrib)})}getClasses(){return this.classes}setCssClass(itemIds,cssClassName){itemIds.split(",").forEach(id=>{var _a2;let foundState=this.getState(id);if(!foundState){const trimmedId=id.trim();this.addState(trimmedId),foundState=this.getState(trimmedId)}null==(_a2=null==foundState?void 0:foundState.classes)||_a2.push(cssClassName)})}setStyle(itemId,styleText){var _a2,_b;null==(_b=null==(_a2=this.getState(itemId))?void 0:_a2.styles)||_b.push(styleText)}setTextStyle(itemId,cssClassName){var _a2,_b;null==(_b=null==(_a2=this.getState(itemId))?void 0:_a2.textStyles)||_b.push(cssClassName)}getDirectionStatement(){return this.rootDoc.find(doc=>"dir"===doc.stmt)}getDirection(){var _a2;return(null==(_a2=this.getDirectionStatement())?void 0:_a2.value)??"TB"}setDirection(dir){const doc=this.getDirectionStatement();doc?doc.value=dir:this.rootDoc.unshift({stmt:"dir",value:dir})}trimColon(str){return str.startsWith(":")?str.slice(1).trim():str.trim()}getData(){const config=getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:config,direction:getDir(this.getRootDocV2())}}getConfig(){return getConfig2().state}},"StateDB"),_a.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},_a),styles_default=__name(options=>`\ndefs [id$="-barbEnd"] {\n fill: ${options.transitionColor};\n stroke: ${options.transitionColor};\n }\ng.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: ${options.strokeWidth||1};\n}\n\n.transition {\n stroke: ${options.transitionColor};\n stroke-width: ${options.strokeWidth||1};\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.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: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: ${options.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${options.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${options.edgeLabelBackground};\n p {\n background-color: ${options.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${options.transitionLabelColor||options.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${options.transitionLabelColor||options.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${options.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${options.specialStateColor};\n stroke: ${options.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${options.specialStateColor};\n stroke: ${options.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${options.innerEndBackground};\n stroke: ${options.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${options.compositeBackground||options.background};\n // stroke: ${options.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.stateBkg||options.mainBkg};\n stroke: ${options.stateBorder||options.nodeBorder};\n stroke-width: ${options.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${options.mainBkg};\n stroke: ${options.stateBorder||options.nodeBorder};;\n stroke-width: ${options.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.compositeTitleBackground};\n stroke: ${options.stateBorder||options.nodeBorder};\n stroke-width: ${options.strokeWidth||1}px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.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: ${options.stateBorder||options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.compositeBackground||options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${options.altBackground?options.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: ${options.altBackground?options.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${options.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${options.noteTextColor};\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: ${options.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${options.mainBkg};\n stroke: ${options.useGradient?"url("+options.svgId+"-gradient)":options.stateBorder||options.nodeBorder};\n stroke-width: ${options.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${options.radius}px;\n ry: ${options.radius}px;\n filter: ${options.dropShadow?options.dropShadow.replace("url(#drop-shadow)",`url(${options.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles");export{StateDB as S,stateDiagram_default as a,stateRenderer_v3_unified_default as b,styles_default as s};
@@ -1 +1 @@
1
- var _a;import{_ as __name}from"./mermaid.core-fx56L749.js";var ImperativeState=(__name(_a=class{constructor(init){this.init=init,this.records=this.init()}reset(){this.records=this.init()}},"ImperativeState"),_a);export{ImperativeState as I};
1
+ var _a;import{_ as __name}from"./mermaid.core-O3WUNQR6.js";var ImperativeState=(__name(_a=class{constructor(init){this.init=init,this.records=this.init()}reset(){this.records=this.init()}},"ImperativeState"),_a);export{ImperativeState as I};
@@ -1 +1 @@
1
- import{_ as __name,d as select,T as lineBreakRegex,j as distExports}from"./mermaid.core-fx56L749.js";var drawRect=__name((element,rectData)=>{const rectElement=element.append("rect");if(rectElement.attr("x",rectData.x),rectElement.attr("y",rectData.y),rectElement.attr("fill",rectData.fill),rectElement.attr("stroke",rectData.stroke),rectElement.attr("width",rectData.width),rectElement.attr("height",rectData.height),rectData.name&&rectElement.attr("name",rectData.name),rectData.rx&&rectElement.attr("rx",rectData.rx),rectData.ry&&rectElement.attr("ry",rectData.ry),void 0!==rectData.attrs)for(const attrKey in rectData.attrs)rectElement.attr(attrKey,rectData.attrs[attrKey]);return rectData.class&&rectElement.attr("class",rectData.class),rectElement},"drawRect"),drawBackgroundRect=__name((element,bounds)=>{const rectData={x:bounds.startx,y:bounds.starty,width:bounds.stopx-bounds.startx,height:bounds.stopy-bounds.starty,fill:bounds.fill,stroke:bounds.stroke,class:"rect"};drawRect(element,rectData).lower()},"drawBackgroundRect"),drawText=__name((element,textData)=>{const nText=textData.text.replace(lineBreakRegex," "),textElem=element.append("text");textElem.attr("x",textData.x),textElem.attr("y",textData.y),textElem.attr("class","legend"),textElem.style("text-anchor",textData.anchor),textData.class&&textElem.attr("class",textData.class);const tspan=textElem.append("tspan");return tspan.attr("x",textData.x+2*textData.textMargin),tspan.text(nText),textElem},"drawText"),drawImage=__name((elem,x,y,link)=>{const imageElement=elem.append("image");imageElement.attr("x",x),imageElement.attr("y",y);const sanitizedLink=distExports.sanitizeUrl(link);imageElement.attr("xlink:href",sanitizedLink)},"drawImage"),drawEmbeddedImage=__name((element,x,y,link)=>{const imageElement=element.append("use");imageElement.attr("x",x),imageElement.attr("y",y);const sanitizedLink=distExports.sanitizeUrl(link);imageElement.attr("xlink:href",`#${sanitizedLink}`)},"drawEmbeddedImage"),getNoteRect=__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),getTextObj=__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),createTooltip=__name(()=>{let tooltipElem=select(".mermaidTooltip");return tooltipElem.empty()&&(tooltipElem=select("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),tooltipElem},"createTooltip");export{drawBackgroundRect as a,getTextObj as b,createTooltip as c,drawRect as d,drawEmbeddedImage as e,drawImage as f,getNoteRect as g,drawText as h};
1
+ import{_ as __name,d as select,T as lineBreakRegex,j as distExports}from"./mermaid.core-O3WUNQR6.js";var drawRect=__name((element,rectData)=>{const rectElement=element.append("rect");if(rectElement.attr("x",rectData.x),rectElement.attr("y",rectData.y),rectElement.attr("fill",rectData.fill),rectElement.attr("stroke",rectData.stroke),rectElement.attr("width",rectData.width),rectElement.attr("height",rectData.height),rectData.name&&rectElement.attr("name",rectData.name),rectData.rx&&rectElement.attr("rx",rectData.rx),rectData.ry&&rectElement.attr("ry",rectData.ry),void 0!==rectData.attrs)for(const attrKey in rectData.attrs)rectElement.attr(attrKey,rectData.attrs[attrKey]);return rectData.class&&rectElement.attr("class",rectData.class),rectElement},"drawRect"),drawBackgroundRect=__name((element,bounds)=>{const rectData={x:bounds.startx,y:bounds.starty,width:bounds.stopx-bounds.startx,height:bounds.stopy-bounds.starty,fill:bounds.fill,stroke:bounds.stroke,class:"rect"};drawRect(element,rectData).lower()},"drawBackgroundRect"),drawText=__name((element,textData)=>{const nText=textData.text.replace(lineBreakRegex," "),textElem=element.append("text");textElem.attr("x",textData.x),textElem.attr("y",textData.y),textElem.attr("class","legend"),textElem.style("text-anchor",textData.anchor),textData.class&&textElem.attr("class",textData.class);const tspan=textElem.append("tspan");return tspan.attr("x",textData.x+2*textData.textMargin),tspan.text(nText),textElem},"drawText"),drawImage=__name((elem,x,y,link)=>{const imageElement=elem.append("image");imageElement.attr("x",x),imageElement.attr("y",y);const sanitizedLink=distExports.sanitizeUrl(link);imageElement.attr("xlink:href",sanitizedLink)},"drawImage"),drawEmbeddedImage=__name((element,x,y,link)=>{const imageElement=element.append("use");imageElement.attr("x",x),imageElement.attr("y",y);const sanitizedLink=distExports.sanitizeUrl(link);imageElement.attr("xlink:href",`#${sanitizedLink}`)},"drawEmbeddedImage"),getNoteRect=__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),getTextObj=__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),createTooltip=__name(()=>{let tooltipElem=select(".mermaidTooltip");return tooltipElem.empty()&&(tooltipElem=select("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),tooltipElem},"createTooltip");export{drawBackgroundRect as a,getTextObj as b,createTooltip as c,drawRect as d,drawEmbeddedImage as e,drawImage as f,getNoteRect as g,drawText as h};
@@ -0,0 +1 @@
1
+ import{s as styles_default,c as classRenderer_v3_unified_default,a as classDiagram_default,C as ClassDB}from"./chunk-4TB4RGXK-E8ZyU2MN.js";import{_ as __name}from"./mermaid.core-O3WUNQR6.js";import"./chunk-FMBD7UC4-CD8bIwZQ.js";import"./chunk-YZCP3GAM-QsYUvoBQ.js";import"./chunk-55IACEB6-kKpXz88M.js";import"./chunk-EDXVE4YY-DGxEwZ4m.js";import"./vendor-markdown-Bpu4AByL.js";import"./index-BnE1kmli.js";import"./vendor-codemirror-BiCbU51m.js";import"./vendor-antd-CAmbzFZk.js";var diagram={parser:classDiagram_default,get db(){return new ClassDB},renderer:classRenderer_v3_unified_default,styles:styles_default,init:__name(cnf=>{cnf.class||(cnf.class={}),cnf.class.arrowMarkerAbsolute=cnf.arrowMarkerAbsolute},"init")};export{diagram};
@@ -0,0 +1 @@
1
+ import{s as styles_default,c as classRenderer_v3_unified_default,a as classDiagram_default,C as ClassDB}from"./chunk-4TB4RGXK-E8ZyU2MN.js";import{_ as __name}from"./mermaid.core-O3WUNQR6.js";import"./chunk-FMBD7UC4-CD8bIwZQ.js";import"./chunk-YZCP3GAM-QsYUvoBQ.js";import"./chunk-55IACEB6-kKpXz88M.js";import"./chunk-EDXVE4YY-DGxEwZ4m.js";import"./vendor-markdown-Bpu4AByL.js";import"./index-BnE1kmli.js";import"./vendor-codemirror-BiCbU51m.js";import"./vendor-antd-CAmbzFZk.js";var diagram={parser:classDiagram_default,get db(){return new ClassDB},renderer:classRenderer_v3_unified_default,styles:styles_default,init:__name(cnf=>{cnf.class||(cnf.class={}),cnf.class.arrowMarkerAbsolute=cnf.arrowMarkerAbsolute},"init")};export{diagram};
@@ -0,0 +1 @@
1
+ import{b as baseClone}from"./graph-CSAV79cR.js";function clone(value){return baseClone(value,4)}export{clone as c};