markdown-flow-ui
Version:
A React UI library for rendering markdown with interactive flow components, typewriter effects, and plugin support
222 lines (194 loc) • 37.1 kB
JavaScript
"use strict";const Jt=require("./chunk-WVR4S24B-BtHx5uyM.js"),Qt=require("./chunk-NRVI72HA-CS7yAr6Y.js"),s=require("./index-CbHAb2u0.js");var bt=(function(){var t=s.__name(function(P,l,h,o){for(h=h||{},o=P.length;o--;h[P[o]]=l);return h},"o"),e=[1,2],i=[1,3],n=[1,4],a=[2,4],u=[1,9],d=[1,11],S=[1,16],f=[1,17],y=[1,18],T=[1,19],E=[1,33],C=[1,20],k=[1,21],p=[1,22],D=[1,23],R=[1,24],x=[1,26],N=[1,27],L=[1,28],w=[1,29],Z=[1,30],tt=[1,31],et=[1,32],st=[1,35],it=[1,36],rt=[1,37],at=[1,38],M=[1,34],_=[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],nt=[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],vt=[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],pt={trace:s.__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,"-->":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:"-->",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:s.__name(function(l,h,o,g,m,r,z){var c=r.length-1;switch(m){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const K=r[c-1];K.description=g.trimColon(r[c]),this.$=K;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const St=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:St};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var Y=r[c],U=r[c-2].trim();if(r[c].match(":")){var lt=r[c].split(":");Y=lt[0],U=[U,lt[1]]}this.$={stmt:"state",id:Y,type:"default",description:U};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:y,22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:N,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:f,19:y,22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:N,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,7]),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(_,[2,11]),t(_,[2,12],{14:[1,40],15:[1,41]}),t(_,[2,16]),{18:[1,42]},t(_,[2,18],{20:[1,43]}),{23:[1,44]},t(_,[2,22]),t(_,[2,23]),t(_,[2,24]),t(_,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(_,[2,28]),{34:[1,49]},{36:[1,50]},t(_,[2,31]),{13:51,24:E,57:M},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(nt,[2,44],{58:[1,56]}),t(nt,[2,45],{58:[1,57]}),t(_,[2,38]),t(_,[2,39]),t(_,[2,40]),t(_,[2,41]),t(_,[2,6]),t(_,[2,13]),{13:58,24:E,57:M},t(_,[2,17]),t(vt,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(_,[2,29]),t(_,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(_,[2,14],{14:[1,71]}),{4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:y,21:[1,72],22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:N,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),t(_,[2,37]),t(nt,[2,46]),t(nt,[2,47]),t(_,[2,15]),t(_,[2,19]),t(vt,a,{7:78}),t(_,[2,26]),t(_,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:y,21:[1,81],22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:N,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,32]),t(_,[2,33]),t(_,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s.__name(function(l,h){if(h.recoverable)this.trace(l);else{var o=new Error(l);throw o.hash=h,o}},"parseError"),parse:s.__name(function(l){var h=this,o=[0],g=[],m=[null],r=[],z=this.table,c="",Y=0,U=0,lt=2,K=1,St=r.slice.call(arguments,1),b=Object.create(this.lexer),B={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(B.yy[_t]=this.yy[_t]);b.setInput(l,B.yy),B.yy.lexer=b,B.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var gt=b.yylloc;r.push(gt);var Xt=b.options&&b.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qt(I){o.length=o.length-2*I,m.length=m.length-I,r.length=r.length-I}s.__name(qt,"popStack");function Ct(){var I;return I=g.pop()||b.lex()||K,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=h.symbols_[I]||I),I}s.__name(Ct,"lex");for(var A,G,O,yt,j={},ct,$,At,ht;;){if(G=o[o.length-1],this.defaultActions[G]?O=this.defaultActions[G]:((A===null||typeof A>"u")&&(A=Ct()),O=z[G]&&z[G][A]),typeof O>"u"||!O.length||!O[0]){var mt="";ht=[];for(ct in z[G])this.terminals_[ct]&&ct>lt&&ht.push("'"+this.terminals_[ct]+"'");b.showPosition?mt="Parse error on line "+(Y+1)+`:
`+b.showPosition()+`
Expecting `+ht.join(", ")+", got '"+(this.terminals_[A]||A)+"'":mt="Parse error on line "+(Y+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:gt,expected:ht})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+A);switch(O[0]){case 1:o.push(A),m.push(b.yytext),r.push(b.yylloc),o.push(O[1]),A=null,U=b.yyleng,c=b.yytext,Y=b.yylineno,gt=b.yylloc;break;case 2:if($=this.productions_[O[1]][1],j.$=m[m.length-$],j._$={first_line:r[r.length-($||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-($||1)].first_column,last_column:r[r.length-1].last_column},Xt&&(j._$.range=[r[r.length-($||1)].range[0],r[r.length-1].range[1]]),yt=this.performAction.apply(j,[c,U,Y,B.yy,O[1],m,r].concat(St)),typeof yt<"u")return yt;$&&(o=o.slice(0,-1*$*2),m=m.slice(0,-1*$),r=r.slice(0,-1*$)),o.push(this.productions_[O[1]][0]),m.push(j.$),r.push(j._$),At=z[o[o.length-2]][o[o.length-1]],o.push(At);break;case 3:return!0}}return!0},"parse")},Kt=(function(){var P={EOF:1,parseError:s.__name(function(h,o){if(this.yy.parser)this.yy.parser.parseError(h,o);else throw new Error(h)},"parseError"),setInput:s.__name(function(l,h){return this.yy=h||this.yy||{},this._input=l,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:s.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var h=l.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:s.__name(function(l){var h=l.length,o=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=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),o.length-1&&(this.yylineno-=o.length-1);var m=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:o?(o.length===g.length?this.yylloc.first_column:0)+g[g.length-o.length].length-o[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:s.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var l=this.pastInput(),h=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
`+h+"^"},"showPosition"),test_match:s.__name(function(l,h){var o,g,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),g=l[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,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(l[0].length),this.matched+=l[0],o=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in m)this[r]=m[r];return!1}return!1},"test_match"),next:s.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,h,o,g;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),r=0;r<m.length;r++)if(o=this._input.match(this.rules[m[r]]),o&&(!h||o[0].length>h[0].length)){if(h=o,g=r,this.options.backtrack_lexer){if(l=this.test_match(o,m[r]),l!==!1)return l;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(l=this.test_match(h,m[g]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s.__name(function(){var h=this.next();return h||this.lex()},"lex"),begin:s.__name(function(h){this.conditionStack.push(h)},"begin"),popState:s.__name(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__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:s.__name(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:s.__name(function(h){this.begin(h)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(h,o,g,m){switch(g){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17: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 23:this.popState();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 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;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 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),o.yytext=o.yytext.substr(2).trim(),31;case 70:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return o.yytext=o.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}};return P})();pt.lexer=Kt;function ot(){this.yy={}}return s.__name(ot,"Parser"),ot.prototype=pt,pt.Parser=ot,new ot})();bt.parser=bt;var Zt=bt,te="TB",$t="TB",xt="dir",W="state",H="root",Dt="relation",ee="classDef",se="style",ie="applyClass",J="default",Pt="divider",Ft="fill:none",Yt="fill: #333",Bt="c",Gt="text",Vt="normal",Tt="rect",Et="rectWithTitle",re="stateStart",ae="stateEnd",Lt="divider",It="roundedWithTitle",ne="note",oe="noteGroup",Q="statediagram",le="state",ce=`${Q}-${le}`,Mt="transition",he="note",ue="note-edge",de=`${Mt} ${ue}`,fe=`${Q}-${he}`,pe="cluster",Se=`${Q}-${pe}`,_e="cluster-alt",ge=`${Q}-${_e}`,Ut="parent",jt="note",ye="state",kt="----",me=`${kt}${jt}`,Rt=`${kt}${Ut}`,Ht=s.__name((t,e=$t)=>{if(!t.doc)return e;let i=e;for(const n of t.doc)n.stmt==="dir"&&(i=n.value);return i},"getDir"),Te=s.__name(function(t,e){return e.db.getClasses()},"getClasses"),Ee=s.__name(async function(t,e,i,n){s.log.info("REF0:"),s.log.info("Drawing state diagram (v2)",e);const{securityLevel:a,state:u,layout:d}=s.getConfig2();n.db.extract(n.db.getRootDocV2());const S=n.db.getData(),f=Jt.getDiagramElement(e,a);S.type=n.type,S.layoutAlgorithm=d,S.nodeSpacing=u?.nodeSpacing||50,S.rankSpacing=u?.rankSpacing||50,S.markers=["barb"],S.diagramId=e,await s.render(S,f);const y=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((E,C)=>{const k=typeof C=="string"?C:typeof C?.id=="string"?C.id:"";if(!k){s.log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(C));return}const p=f.node()?.querySelectorAll("g");let D;if(p?.forEach(L=>{L.textContent?.trim()===k&&(D=L)}),!D){s.log.warn("⚠️ Could not find node matching text:",k);return}const R=D.parentNode;if(!R){s.log.warn("⚠️ Node has no parent, cannot wrap:",k);return}const x=document.createElementNS("http://www.w3.org/2000/svg","a"),N=E.url.replace(/^"+|"+$/g,"");if(x.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",N),x.setAttribute("target","_blank"),E.tooltip){const L=E.tooltip.replace(/^"+|"+$/g,"");x.setAttribute("title",L)}R.replaceChild(x,D),x.appendChild(D),s.log.info("🔗 Wrapped node in <a> tag for:",k,E.url)})}catch(T){s.log.error("❌ Error injecting clickable links:",T)}s.utils_default.insertTitle(f,"statediagramTitleText",u?.titleTopMargin??25,n.db.getDiagramTitle()),Qt.setupViewPortForSVG(f,y,Q,u?.useMaxWidth??!0)},"draw"),be={getClasses:Te,draw:Ee,getDir:Ht},dt=new Map,F=0;function ft(t="",e=0,i="",n=kt){const a=i!==null&&i.length>0?`${n}${i}`:"";return`${ye}-${t}${a}-${e}`}s.__name(ft,"stateDomId");var De=s.__name((t,e,i,n,a,u,d,S)=>{s.log.trace("items",e),e.forEach(f=>{switch(f.stmt){case W:q(t,f,i,n,a,u,d,S);break;case J:q(t,f,i,n,a,u,d,S);break;case Dt:{q(t,f.state1,i,n,a,u,d,S),q(t,f.state2,i,n,a,u,d,S);const y={id:"edge"+F,start:f.state1.id,end:f.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Ft,labelStyle:"",label:s.common_default.sanitizeText(f.description??"",s.getConfig2()),arrowheadStyle:Yt,labelpos:Bt,labelType:Gt,thickness:Vt,classes:Mt,look:d};a.push(y),F++}break}})},"setupDoc"),Ot=s.__name((t,e=$t)=>{let i=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(i=n.value);return i},"getDir");function X(t,e,i){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(a=>{const u=i.get(a);u&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...u.styles])}));const n=t.find(a=>a.id===e.id);n?Object.assign(n,e):t.push(e)}s.__name(X,"insertOrUpdateNode");function Wt(t){return t?.classes?.join(" ")??""}s.__name(Wt,"getClassesFromDbInfo");function zt(t){return t?.styles??[]}s.__name(zt,"getStylesFromDbInfo");var q=s.__name((t,e,i,n,a,u,d,S)=>{const f=e.id,y=i.get(f),T=Wt(y),E=zt(y),C=s.getConfig2();if(s.log.info("dataFetcher parsedItem",e,y,E),f!=="root"){let k=Tt;e.start===!0?k=re:e.start===!1&&(k=ae),e.type!==J&&(k=e.type),dt.get(f)||dt.set(f,{id:f,shape:k,description:s.common_default.sanitizeText(f,C),cssClasses:`${T} ${ce}`,cssStyles:E});const p=dt.get(f);e.description&&(Array.isArray(p.description)?(p.shape=Et,p.description.push(e.description)):p.description?.length&&p.description.length>0?(p.shape=Et,p.description===f?p.description=[e.description]:p.description=[p.description,e.description]):(p.shape=Tt,p.description=e.description),p.description=s.common_default.sanitizeTextOrArray(p.description,C)),p.description?.length===1&&p.shape===Et&&(p.type==="group"?p.shape=It:p.shape=Tt),!p.type&&e.doc&&(s.log.info("Setting cluster for XCX",f,Ot(e)),p.type="group",p.isGroup=!0,p.dir=Ot(e),p.shape=e.type===Pt?Lt:It,p.cssClasses=`${p.cssClasses} ${Se} ${u?ge:""}`);const D={labelStyle:"",shape:p.shape,label:p.description,cssClasses:p.cssClasses,cssCompiledStyles:[],cssStyles:p.cssStyles,id:f,dir:p.dir,domId:ft(f,F),type:p.type,isGroup:p.type==="group",padding:8,rx:10,ry:10,look:d};if(D.shape===Lt&&(D.label=""),t&&t.id!=="root"&&(s.log.trace("Setting node ",f," to be child of its parent ",t.id),D.parentId=t.id),D.centerLabel=!0,e.note){const R={labelStyle:"",shape:ne,label:e.note.text,cssClasses:fe,cssStyles:[],cssCompiledStyles:[],id:f+me+"-"+F,domId:ft(f,F,jt),type:p.type,isGroup:p.type==="group",padding:C.flowchart?.padding,look:d,position:e.note.position},x=f+Rt,N={labelStyle:"",shape:oe,label:e.note.text,cssClasses:p.cssClasses,cssStyles:[],id:f+Rt,domId:ft(f,F,Ut),type:"group",isGroup:!0,padding:16,look:d,position:e.note.position};F++,N.id=x,R.parentId=x,X(n,N,S),X(n,R,S),X(n,D,S);let L=f,w=R.id;e.note.position==="left of"&&(L=R.id,w=f),a.push({id:L+"-"+w,start:L,end:w,arrowhead:"none",arrowTypeEnd:"",style:Ft,labelStyle:"",classes:de,arrowheadStyle:Yt,labelpos:Bt,labelType:Gt,thickness:Vt,look:d})}else X(n,D,S)}e.doc&&(s.log.trace("Adding nodes children "),De(e,e.doc,i,n,a,!u,d,S))},"dataFetcher"),ke=s.__name(()=>{dt.clear(),F=0},"reset"),v={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Nt=s.__name(()=>new Map,"newClassesList"),wt=s.__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),ut=s.__name(t=>JSON.parse(JSON.stringify(t)),"clone"),V,ve=(V=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Nt(),this.documents={root:wt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=s.getAccTitle,this.setAccTitle=s.setAccTitle,this.getAccDescription=s.getAccDescription,this.setAccDescription=s.setAccDescription,this.setDiagramTitle=s.setDiagramTitle,this.getDiagramTitle=s.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(e){this.clear(!0);for(const a of Array.isArray(e)?e:e.doc)switch(a.stmt){case W:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Dt:this.addRelation(a.state1,a.state2,a.description);break;case ee:this.addStyleClass(a.id.trim(),a.classes);break;case se:this.handleStyleDef(a);break;case ie:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}const i=this.getStates(),n=s.getConfig2();ke(),q(void 0,this.getRootDocV2(),i,this.nodes,this.edges,!0,n.look,this.classes);for(const a of this.nodes)if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){const i=e.id.trim().split(","),n=e.styleClass.split(",");for(const a of i){let u=this.getState(a);if(!u){const d=a.trim();this.addState(d),u=this.getState(d)}u&&(u.styles=n.map(d=>d.replace(/;/g,"")?.trim()))}}setRootDoc(e){s.log.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,i,n){if(i.stmt===Dt){this.docTranslator(e,i.state1,!0),this.docTranslator(e,i.state2,!1);return}if(i.stmt===W&&(i.id===v.START_NODE?(i.id=e.id+(n?"_start":"_end"),i.start=n):i.id=i.id.trim()),i.stmt!==H&&i.stmt!==W||!i.doc)return;const a=[];let u=[];for(const d of i.doc)if(d.type===Pt){const S=ut(d);S.doc=ut(u),a.push(S),u=[]}else u.push(d);if(a.length>0&&u.length>0){const d={stmt:W,id:s.generateId(),type:"divider",doc:ut(u)};a.push(ut(d)),i.doc=a}i.doc.forEach(d=>this.docTranslator(i,d,!0))}getRootDocV2(){return this.docTranslator({id:H,stmt:H},{id:H,stmt:H,doc:this.rootDoc},!0),{id:H,doc:this.rootDoc}}addState(e,i=J,n=void 0,a=void 0,u=void 0,d=void 0,S=void 0,f=void 0){const y=e?.trim();if(!this.currentDocument.states.has(y))s.log.info("Adding state ",y,a),this.currentDocument.states.set(y,{stmt:W,id:y,descriptions:[],type:i,doc:n,note:u,classes:[],styles:[],textStyles:[]});else{const T=this.currentDocument.states.get(y);if(!T)throw new Error(`State not found: ${y}`);T.doc||(T.doc=n),T.type||(T.type=i)}if(a&&(s.log.info("Setting state description",y,a),(Array.isArray(a)?a:[a]).forEach(E=>this.addDescription(y,E.trim()))),u){const T=this.currentDocument.states.get(y);if(!T)throw new Error(`State not found: ${y}`);T.note=u,T.note.text=s.common_default.sanitizeText(T.note.text,s.getConfig2())}d&&(s.log.info("Setting state classes",y,d),(Array.isArray(d)?d:[d]).forEach(E=>this.setCssClass(y,E.trim()))),S&&(s.log.info("Setting state styles",y,S),(Array.isArray(S)?S:[S]).forEach(E=>this.setStyle(y,E.trim()))),f&&(s.log.info("Setting state styles",y,S),(Array.isArray(f)?f:[f]).forEach(E=>this.setTextStyle(y,E.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:wt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Nt(),e||(this.links=new Map,s.clear())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){s.log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,i,n){this.links.set(e,{url:i,tooltip:n}),s.log.warn("Adding link",e,i,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===v.START_NODE?(this.startEndCount++,`${v.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",i=J){return e===v.START_NODE?v.START_TYPE:i}endIdIfNeeded(e=""){return e===v.END_NODE?(this.startEndCount++,`${v.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",i=J){return e===v.END_NODE?v.END_TYPE:i}addRelationObjs(e,i,n=""){const a=this.startIdIfNeeded(e.id.trim()),u=this.startTypeIfNeeded(e.id.trim(),e.type),d=this.startIdIfNeeded(i.id.trim()),S=this.startTypeIfNeeded(i.id.trim(),i.type);this.addState(a,u,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(d,S,i.doc,i.description,i.note,i.classes,i.styles,i.textStyles),this.currentDocument.relations.push({id1:a,id2:d,relationTitle:s.common_default.sanitizeText(n,s.getConfig2())})}addRelation(e,i,n){if(typeof e=="object"&&typeof i=="object")this.addRelationObjs(e,i,n);else if(typeof e=="string"&&typeof i=="string"){const a=this.startIdIfNeeded(e.trim()),u=this.startTypeIfNeeded(e),d=this.endIdIfNeeded(i.trim()),S=this.endTypeIfNeeded(i);this.addState(a,u),this.addState(d,S),this.currentDocument.relations.push({id1:a,id2:d,relationTitle:n?s.common_default.sanitizeText(n,s.getConfig2()):void 0})}}addDescription(e,i){const n=this.currentDocument.states.get(e),a=i.startsWith(":")?i.replace(":","").trim():i;n?.descriptions?.push(s.common_default.sanitizeText(a,s.getConfig2()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,i=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);i&&n&&i.split(v.STYLECLASS_SEP).forEach(a=>{const u=a.replace(/([^;]*);/,"$1").trim();if(RegExp(v.COLOR_KEYWORD).exec(a)){const S=u.replace(v.FILL_KEYWORD,v.BG_FILL).replace(v.COLOR_KEYWORD,v.FILL_KEYWORD);n.textStyles.push(S)}n.styles.push(u)})}getClasses(){return this.classes}setCssClass(e,i){e.split(",").forEach(n=>{let a=this.getState(n);if(!a){const u=n.trim();this.addState(u),a=this.getState(u)}a?.classes?.push(i)})}setStyle(e,i){this.getState(e)?.styles?.push(i)}setTextStyle(e,i){this.getState(e)?.textStyles?.push(i)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===xt)}getDirection(){return this.getDirectionStatement()?.value??te}setDirection(e){const i=this.getDirectionStatement();i?i.value=e:this.rootDoc.unshift({stmt:xt,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=s.getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Ht(this.getRootDocV2())}}getConfig(){return s.getConfig2().state}},s.__name(V,"StateDB"),V.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},V),Ce=s.__name(t=>`
defs #statediagram-barbEnd {
fill: ${t.transitionColor};
stroke: ${t.transitionColor};
}
g.stateGroup text {
fill: ${t.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${t.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${t.stateLabelColor};
}
g.stateGroup rect {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
g.stateGroup line {
stroke: ${t.lineColor};
stroke-width: 1;
}
.transition {
stroke: ${t.transitionColor};
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: ${t.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
text {
fill: ${t.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${t.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${t.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel {
background-color: ${t.edgeLabelBackground};
p {
background-color: ${t.edgeLabelBackground};
}
rect {
opacity: 0.5;
background-color: ${t.edgeLabelBackground};
fill: ${t.edgeLabelBackground};
}
text-align: center;
}
.edgeLabel .label text {
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.stateLabel text {
fill: ${t.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${t.specialStateColor};
stroke: ${t.specialStateColor};
}
.node .fork-join {
fill: ${t.specialStateColor};
stroke: ${t.specialStateColor};
}
.node circle.state-end {
fill: ${t.innerEndBackground};
stroke: ${t.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${t.compositeBackground||t.background};
// stroke: ${t.background};
stroke-width: 1.5
}
.node rect {
fill: ${t.stateBkg||t.mainBkg};
stroke: ${t.stateBorder||t.nodeBorder};
stroke-width: 1px;
}
.node polygon {
fill: ${t.mainBkg};
stroke: ${t.stateBorder||t.nodeBorder};;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: ${t.lineColor};
}
.statediagram-cluster rect {
fill: ${t.compositeTitleBackground};
stroke: ${t.stateBorder||t.nodeBorder};
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: ${t.stateLabelColor};
// line-height: 1;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${t.stateBorder||t.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${t.compositeBackground||t.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${t.altBackground?t.altBackground:"#efefef"};
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: ${t.altBackground?t.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${t.noteBkgColor};
stroke: ${t.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${t.noteBkgColor};
stroke: ${t.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${t.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${t.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${t.noteTextColor};
}
#dependencyStart, #dependencyEnd {
fill: ${t.lineColor};
stroke: ${t.lineColor};
stroke-width: 1;
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
`,"getStyles"),Ae=Ce;exports.StateDB=ve;exports.stateDiagram_default=Zt;exports.stateRenderer_v3_unified_default=be;exports.styles_default=Ae;
//# sourceMappingURL=chunk-LXBSTHXV-DcqoLZYo.js.map