@zsviczian/excalidraw
Version:
Excalidraw as a React component
2 lines • 8.16 MB
JavaScript
/*! For license information please see excalidraw.production.min.js.LICENSE.txt */
!function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["react","react-dom","react/jsx-runtime"],e):"object"==typeof exports?exports.ExcalidrawLib=e(require("react"),require("react-dom"),require("react/jsx-runtime")):A.ExcalidrawLib=e(A.React,A.ReactDOM,A.React.jsxRuntime)}(self,((A,e,t)=>(()=>{var i,n,a={333:(A,e,t)=>{"use strict";t.d(e,{diagram:()=>c});var i=t(19484),n=t(21491),a=(t(23464),t(75410),t(71651),function(){var A=function(A,e,t,i){for(t=t||{},i=A.length;i--;t[A[i]]=e);return t},e=[1,3],t=[1,4],i=[1,5],n=[1,6],a=[1,7],r=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],o=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],s=[32,33,34],g=[2,7],l=[1,13],c=[1,17],C=[1,18],I=[1,19],B=[1,20],h=[1,21],d=[1,22],Q=[1,23],u=[1,24],E=[1,25],p=[1,26],w=[1,27],f=[1,30],b=[1,31],m=[1,32],y=[1,33],D=[1,34],k=[1,35],v=[1,36],L=[1,37],S=[1,38],U=[1,39],G=[1,40],x=[1,41],N=[1,42],F=[1,57],M=[1,58],R=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],Y={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(A,e,t,i,n,a,r){var o=a.length-1;switch(n){case 12:this.$=a[o].trim(),i.setDiagramTitle(this.$);break;case 13:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 14:case 15:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 16:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 17:i.addPoint(a[o-3],a[o-1],a[o]);break;case 18:i.setXAxisLeftText(a[o-2]),i.setXAxisRightText(a[o]);break;case 19:a[o-1].text+=" ⟶ ",i.setXAxisLeftText(a[o-1]);break;case 20:i.setXAxisLeftText(a[o]);break;case 21:i.setYAxisBottomText(a[o-2]),i.setYAxisTopText(a[o]);break;case 22:a[o-1].text+=" ⟶ ",i.setYAxisBottomText(a[o-1]);break;case 23:i.setYAxisBottomText(a[o]);break;case 24:i.setQuadrant1Text(a[o]);break;case 25:i.setQuadrant2Text(a[o]);break;case 26:i.setQuadrant3Text(a[o]);break;case 27:i.setQuadrant4Text(a[o]);break;case 31:case 33:this.$={text:a[o],type:"text"};break;case 32:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 34:this.$={text:a[o],type:"markdown"};break;case 35:this.$=a[o];break;case 36:this.$=a[o-1]+""+a[o]}},table:[{3:1,4:2,5:e,6:t,32:i,33:n,34:a},{1:[3]},{3:8,4:2,5:e,6:t,32:i,33:n,34:a},{3:9,4:2,5:e,6:t,32:i,33:n,34:a},A(r,[2,4],{7:10}),A(o,[2,28]),A(o,[2,29]),A(o,[2,30]),{1:[2,1]},{1:[2,2]},A(s,g,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:l,13:c,15:C,17:I,19:B,20:h,25:d,27:Q,28:u,29:E,30:p,31:w,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N}),A(r,[2,5]),{4:43,32:i,33:n,34:a},A(s,g,{10:14,11:15,12:16,21:28,35:29,9:44,5:l,13:c,15:C,17:I,19:B,20:h,25:d,27:Q,28:u,29:E,30:p,31:w,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N}),A(s,[2,9]),A(s,[2,10]),A(s,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},A(s,[2,15]),A(s,[2,16]),{21:48,35:29,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N},{21:49,35:29,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N},{21:50,35:29,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N},{21:51,35:29,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N},{21:52,35:29,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N},{21:53,35:29,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N},{5:F,22:[1,54],35:56,36:55,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M},A(R,[2,31]),A(R,[2,33]),A(R,[2,34]),A(R,[2,37]),A(R,[2,38]),A(R,[2,39]),A(R,[2,40]),A(R,[2,41]),A(R,[2,42]),A(R,[2,43]),A(R,[2,44]),A(R,[2,45]),A(R,[2,46]),A(R,[2,47]),A(r,[2,6]),A(s,[2,8]),A(s,[2,12]),A(s,[2,13]),A(s,[2,14]),A(s,[2,20],{36:55,35:56,5:F,26:[1,59],40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,23],{36:55,35:56,5:F,26:[1,60],40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,24],{36:55,35:56,5:F,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,25],{36:55,35:56,5:F,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,26],{36:55,35:56,5:F,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,27],{36:55,35:56,5:F,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),{23:[1,61]},A(R,[2,32]),A(R,[2,48]),A(R,[2,49]),A(R,[2,50]),A(s,[2,19],{35:29,21:62,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N}),A(s,[2,22],{35:29,21:63,37:f,38:b,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N}),{24:[1,64]},A(s,[2,18],{36:55,35:56,5:F,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,21],{36:55,35:56,5:F,40:m,41:y,42:D,43:k,44:v,45:L,46:S,47:U,48:G,49:x,50:N,51:M}),A(s,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(A,e){if(!e.recoverable){var t=new Error(A);throw t.hash=e,t}this.trace(A)},parse:function(A){var e=this,t=[0],i=[],n=[null],a=[],r=this.table,o="",s=0,g=0,l=a.slice.call(arguments,1),c=Object.create(this.lexer),C={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(C.yy[I]=this.yy[I]);c.setInput(A,C.yy),C.yy.lexer=c,C.yy.parser=this,void 0===c.yylloc&&(c.yylloc={});var B=c.yylloc;a.push(B);var h=c.options&&c.options.ranges;"function"==typeof C.yy.parseError?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var d,Q,u,E,p,w,f,b,m,y={};;){if(Q=t[t.length-1],this.defaultActions[Q]?u=this.defaultActions[Q]:(null==d&&(m=void 0,"number"!=typeof(m=i.pop()||c.lex()||1)&&(m instanceof Array&&(m=(i=m).pop()),m=e.symbols_[m]||m),d=m),u=r[Q]&&r[Q][d]),void 0===u||!u.length||!u[0]){var D="";for(p in b=[],r[Q])this.terminals_[p]&&p>2&&b.push("'"+this.terminals_[p]+"'");D=c.showPosition?"Parse error on line "+(s+1)+":\n"+c.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(D,{text:c.match,token:this.terminals_[d]||d,line:c.yylineno,loc:B,expected:b})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+d);switch(u[0]){case 1:t.push(d),n.push(c.yytext),a.push(c.yylloc),t.push(u[1]),d=null,g=c.yyleng,o=c.yytext,s=c.yylineno,B=c.yylloc;break;case 2:if(w=this.productions_[u[1]][1],y.$=n[n.length-w],y._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},h&&(y._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(y,[o,g,s,C.yy,u[1],n,a].concat(l))))return E;w&&(t=t.slice(0,-1*w*2),n=n.slice(0,-1*w),a=a.slice(0,-1*w)),t.push(this.productions_[u[1]][0]),n.push(y.$),a.push(y._$),f=r[t[t.length-2]][t[t.length-1]],t.push(f);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(A,e){if(!this.yy.parser)throw new Error(A);this.yy.parser.parseError(A,e)},setInput:function(A,e){return this.yy=e||this.yy||{},this._input=A,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},input:function(){var A=this._input[0];return this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A,A.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),A},unput:function(A){var e=A.length,t=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===i.length?this.yylloc.first_column:0)+i[i.length-t.length].length-t[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(A){this.unput(this.match.slice(A))},pastInput:function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var A=this.pastInput(),e=new Array(A.length+1).join("-");return A+this.upcomingInput()+"\n"+e+"^"},test_match:function(A,e){var t,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=A[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+A[0].length},this.yytext+=A[0],this.match+=A[0],this.matches=A,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(A[0].length),this.matched+=A[0],t=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t)return t;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var A,e,t,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((t=this._input.match(this.rules[n[a]]))&&(!e||t[0].length>e[0].length)){if(e=t,i=a,this.options.backtrack_lexer){if(!1!==(A=this.test_match(t,n[a])))return A;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(A=this.test_match(e,n[i]))&&A:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var A=this.next();return A||this.lex()},begin:function(A){this.conditionStack.push(A)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(A){return(A=this.conditionStack.length-1-Math.abs(A||0))>=0?this.conditionStack[A]:"INITIAL"},pushState:function(A){this.begin(A)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(A,e,t,i){switch(t){case 0:case 1:case 3:break;case 2:return 32;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 22:case 24:case 28:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 23:this.begin("string");break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};function K(){this.yy={}}return Y.lexer=H,K.prototype=Y,Y.Parser=K,new K}());a.parser=a;const r=a,o=(0,i.E)();const s=(0,i.c)();function g(A){return(0,i.d)(A.trim(),s)}const l=new class{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var A,e,t,n,a,r,o,s,g,l,c,C,I,B,h,d,Q,u;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(A=i.B.quadrantChart)?void 0:A.chartWidth)||500,chartWidth:(null==(e=i.B.quadrantChart)?void 0:e.chartHeight)||500,titlePadding:(null==(t=i.B.quadrantChart)?void 0:t.titlePadding)||10,titleFontSize:(null==(n=i.B.quadrantChart)?void 0:n.titleFontSize)||20,quadrantPadding:(null==(a=i.B.quadrantChart)?void 0:a.quadrantPadding)||5,xAxisLabelPadding:(null==(r=i.B.quadrantChart)?void 0:r.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(o=i.B.quadrantChart)?void 0:o.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(s=i.B.quadrantChart)?void 0:s.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(g=i.B.quadrantChart)?void 0:g.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(l=i.B.quadrantChart)?void 0:l.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(c=i.B.quadrantChart)?void 0:c.quadrantTextTopPadding)||5,pointTextPadding:(null==(C=i.B.quadrantChart)?void 0:C.pointTextPadding)||5,pointLabelFontSize:(null==(I=i.B.quadrantChart)?void 0:I.pointLabelFontSize)||12,pointRadius:(null==(B=i.B.quadrantChart)?void 0:B.pointRadius)||5,xAxisPosition:(null==(h=i.B.quadrantChart)?void 0:h.xAxisPosition)||"top",yAxisPosition:(null==(d=i.B.quadrantChart)?void 0:d.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(Q=i.B.quadrantChart)?void 0:Q.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(u=i.B.quadrantChart)?void 0:u.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:o.quadrant1Fill,quadrant2Fill:o.quadrant2Fill,quadrant3Fill:o.quadrant3Fill,quadrant4Fill:o.quadrant4Fill,quadrant1TextFill:o.quadrant1TextFill,quadrant2TextFill:o.quadrant2TextFill,quadrant3TextFill:o.quadrant3TextFill,quadrant4TextFill:o.quadrant4TextFill,quadrantPointFill:o.quadrantPointFill,quadrantPointTextFill:o.quadrantPointTextFill,quadrantXAxisTextFill:o.quadrantXAxisTextFill,quadrantYAxisTextFill:o.quadrantYAxisTextFill,quadrantTitleFill:o.quadrantTitleFill,quadrantInternalBorderStrokeFill:o.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:o.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),i.l.info("clear called")}setData(A){this.data={...this.data,...A}}addPoints(A){this.data.points=[...A,...this.data.points]}setConfig(A){i.l.trace("setConfig called with: ",A),this.config={...this.config,...A}}setThemeConfig(A){i.l.trace("setThemeConfig called with: ",A),this.themeConfig={...this.themeConfig,...A}}calculateSpace(A,e,t,i){const n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,a={top:"top"===A&&e?n:0,bottom:"bottom"===A&&e?n:0},r=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,o={left:"left"===this.config.yAxisPosition&&t?r:0,right:"right"===this.config.yAxisPosition&&t?r:0},s=this.config.titleFontSize+2*this.config.titlePadding,g={top:i?s:0},l=this.config.quadrantPadding+o.left,c=this.config.quadrantPadding+a.top+g.top,C=this.config.chartWidth-2*this.config.quadrantPadding-o.left-o.right,I=this.config.chartHeight-2*this.config.quadrantPadding-a.top-a.bottom-g.top;return{xAxisSpace:a,yAxisSpace:o,titleSpace:g,quadrantSpace:{quadrantLeft:l,quadrantTop:c,quadrantWidth:C,quadrantHalfWidth:C/2,quadrantHeight:I,quadrantHalfHeight:I/2}}}getAxisLabels(A,e,t,i){const{quadrantSpace:n,titleSpace:a}=i,{quadrantHalfHeight:r,quadrantHeight:o,quadrantLeft:s,quadrantHalfWidth:g,quadrantTop:l,quadrantWidth:c}=n,C=Boolean(this.data.xAxisRightText),I=Boolean(this.data.yAxisTopText),B=[];return this.data.xAxisLeftText&&e&&B.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:s+(C?g/2:0),y:"top"===A?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+l+o+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:C?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&B.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:s+g+(C?g/2:0),y:"top"===A?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+l+o+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:C?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&t&&B.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+s+c+this.config.quadrantPadding,y:l+o-(I?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&t&&B.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+s+c+this.config.quadrantPadding,y:l+r-(I?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),B}getQuadrants(A){const{quadrantSpace:e}=A,{quadrantHalfHeight:t,quadrantLeft:i,quadrantHalfWidth:n,quadrantTop:a}=e,r=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+n,y:a,width:n,height:t,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a,width:n,height:t,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a+t,width:n,height:t,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+n,y:a+t,width:n,height:t,fill:this.themeConfig.quadrant4Fill}];for(const A of r)A.text.x=A.x+A.width/2,0===this.data.points.length?(A.text.y=A.y+A.height/2,A.text.horizontalPos="middle"):(A.text.y=A.y+this.config.quadrantTextTopPadding,A.text.horizontalPos="top");return r}getQuadrantPoints(A){const{quadrantSpace:e}=A,{quadrantHeight:t,quadrantLeft:i,quadrantTop:a,quadrantWidth:r}=e,o=(0,n.m4Y)().domain([0,1]).range([i,r+i]),s=(0,n.m4Y)().domain([0,1]).range([t+a,a]);return this.data.points.map((A=>({x:o(A.x),y:s(A.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:A.text,fill:this.themeConfig.quadrantPointTextFill,x:o(A.x),y:s(A.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}})))}getBorders(A){const e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:t}=A,{quadrantHalfHeight:i,quadrantHeight:n,quadrantLeft:a,quadrantHalfWidth:r,quadrantTop:o,quadrantWidth:s}=t;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:o,x2:a+s+e,y2:o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+s,y1:o+e,x2:a+s,y2:o+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:o+n,x2:a+s+e,y2:o+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:o+e,x2:a,y2:o+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+r,y1:o+e,x2:a+r,y2:o+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:o+i,x2:a+s-e,y2:o+i}]}getTitle(A){if(A)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const A=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),t=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(i,A,e,t);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(i,A,e,n),borderLines:this.getBorders(n),title:this.getTitle(t)}}};const c={parser:r,db:{setWidth:function(A){l.setConfig({chartWidth:A})},setHeight:function(A){l.setConfig({chartHeight:A})},setQuadrant1Text:function(A){l.setData({quadrant1Text:g(A.text)})},setQuadrant2Text:function(A){l.setData({quadrant2Text:g(A.text)})},setQuadrant3Text:function(A){l.setData({quadrant3Text:g(A.text)})},setQuadrant4Text:function(A){l.setData({quadrant4Text:g(A.text)})},setXAxisLeftText:function(A){l.setData({xAxisLeftText:g(A.text)})},setXAxisRightText:function(A){l.setData({xAxisRightText:g(A.text)})},setYAxisTopText:function(A){l.setData({yAxisTopText:g(A.text)})},setYAxisBottomText:function(A){l.setData({yAxisBottomText:g(A.text)})},addPoint:function(A,e,t){l.addPoints([{x:e,y:t,text:g(A.text)}])},getQuadrantData:function(){const A=(0,i.c)(),{themeVariables:e,quadrantChart:t}=A;return t&&l.setConfig(t),l.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),l.setData({titleText:(0,i.t)()}),l.build()},clear:function(){l.clear(),(0,i.v)()},setAccTitle:i.s,getAccTitle:i.g,setDiagramTitle:i.q,getDiagramTitle:i.t,getAccDescription:i.a,setAccDescription:i.b},renderer:{draw:(A,e,t,a)=>{var r,o,s;function g(A){return"top"===A?"hanging":"middle"}function l(A){return"left"===A?"start":"middle"}function c(A){return`translate(${A.x}, ${A.y}) rotate(${A.rotation||0})`}const C=(0,i.c)();i.l.debug("Rendering quadrant chart\n"+A);const I=C.securityLevel;let B;"sandbox"===I&&(B=(0,n.Ltv)("#i"+e));const h=("sandbox"===I?(0,n.Ltv)(B.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${e}"]`),d=h.append("g").attr("class","main"),Q=(null==(r=C.quadrantChart)?void 0:r.chartWidth)||500,u=(null==(o=C.quadrantChart)?void 0:o.chartHeight)||500;(0,i.i)(h,u,Q,(null==(s=C.quadrantChart)?void 0:s.useMaxWidth)||!0),h.attr("viewBox","0 0 "+Q+" "+u),a.db.setHeight(u),a.db.setWidth(Q);const E=a.db.getQuadrantData(),p=d.append("g").attr("class","quadrants"),w=d.append("g").attr("class","border"),f=d.append("g").attr("class","data-points"),b=d.append("g").attr("class","labels"),m=d.append("g").attr("class","title");E.title&&m.append("text").attr("x",0).attr("y",0).attr("fill",E.title.fill).attr("font-size",E.title.fontSize).attr("dominant-baseline",g(E.title.horizontalPos)).attr("text-anchor",l(E.title.verticalPos)).attr("transform",c(E.title)).text(E.title.text),E.borderLines&&w.selectAll("line").data(E.borderLines).enter().append("line").attr("x1",(A=>A.x1)).attr("y1",(A=>A.y1)).attr("x2",(A=>A.x2)).attr("y2",(A=>A.y2)).style("stroke",(A=>A.strokeFill)).style("stroke-width",(A=>A.strokeWidth));const y=p.selectAll("g.quadrant").data(E.quadrants).enter().append("g").attr("class","quadrant");y.append("rect").attr("x",(A=>A.x)).attr("y",(A=>A.y)).attr("width",(A=>A.width)).attr("height",(A=>A.height)).attr("fill",(A=>A.fill)),y.append("text").attr("x",0).attr("y",0).attr("fill",(A=>A.text.fill)).attr("font-size",(A=>A.text.fontSize)).attr("dominant-baseline",(A=>g(A.text.horizontalPos))).attr("text-anchor",(A=>l(A.text.verticalPos))).attr("transform",(A=>c(A.text))).text((A=>A.text.text));b.selectAll("g.label").data(E.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((A=>A.text)).attr("fill",(A=>A.fill)).attr("font-size",(A=>A.fontSize)).attr("dominant-baseline",(A=>g(A.horizontalPos))).attr("text-anchor",(A=>l(A.verticalPos))).attr("transform",(A=>c(A)));const D=f.selectAll("g.data-point").data(E.points).enter().append("g").attr("class","data-point");D.append("circle").attr("cx",(A=>A.x)).attr("cy",(A=>A.y)).attr("r",(A=>A.radius)).attr("fill",(A=>A.fill)),D.append("text").attr("x",0).attr("y",0).text((A=>A.text.text)).attr("fill",(A=>A.text.fill)).attr("font-size",(A=>A.text.fontSize)).attr("dominant-baseline",(A=>g(A.text.horizontalPos))).attr("text-anchor",(A=>l(A.text.verticalPos))).attr("transform",(A=>c(A.text)))}},styles:()=>""}},521:(A,e,t)=>{"use strict";t.d(e,{A:()=>s});var i=t(39600),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=n&&"object"==typeof module&&module&&!module.nodeType&&module,r=a&&a.exports===n?i.A.Buffer:void 0,o=r?r.allocUnsafe:void 0;const s=function(A,e){if(e)return A.slice();var t=A.length,i=o?o(t):new A.constructor(t);return A.copy(i),i}},637:(A,e)=>{var t;t=function(A){A.version="0.3.0";var e=function(){for(var A=0,e=new Array(256),t=0;256!=t;++t)A=1&(A=1&(A=1&(A=1&(A=1&(A=1&(A=1&(A=1&(A=t)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1)?-306674912^A>>>1:A>>>1,e[t]=A;return"undefined"!=typeof Int32Array?new Int32Array(e):e}(),t="undefined"!=typeof Buffer;function i(A){for(var t=-1,i=0,n=A.length-7;i<n;)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])])>>>8^e[255&(t^A[i++])];for(;i<n+7;)t=t>>>8^e[255&(t^A[i++])];return~t}A.table=e,A.bstr=function(A){if(A.length>32768&&t)return i(new Buffer(A));for(var n=-1,a=A.length-1,r=0;r<a;)n=e[255&(n^A.charCodeAt(r++))]^n>>>8,n=e[255&(n^A.charCodeAt(r++))]^n>>>8;return r===a&&(n=n>>>8^e[255&(n^A.charCodeAt(r))]),~n},A.buf=function(A){if(A.length>1e4)return i(A);for(var t=-1,n=0,a=A.length-3;n<a;)t=(t=(t=(t=t>>>8^e[255&(t^A[n++])])>>>8^e[255&(t^A[n++])])>>>8^e[255&(t^A[n++])])>>>8^e[255&(t^A[n++])];for(;n<a+3;)t=t>>>8^e[255&(t^A[n++])];return~t},A.str=function(A){for(var t,i,n=-1,a=0,r=A.length;a<r;)(t=A.charCodeAt(a++))<128?n=n>>>8^e[255&(n^t)]:t<2048?n=(n=n>>>8^e[255&(n^(192|t>>6&31))])>>>8^e[255&(n^(128|63&t))]:t>=55296&&t<57344?(t=64+(1023&t),i=1023&A.charCodeAt(a++),n=(n=(n=(n=n>>>8^e[255&(n^(240|t>>8&7))])>>>8^e[255&(n^(128|t>>2&63))])>>>8^e[255&(n^(128|i>>6&15|3&t))])>>>8^e[255&(n^(128|63&i))]):n=(n=(n=n>>>8^e[255&(n^(224|t>>12&15))])>>>8^e[255&(n^(128|t>>6&63))])>>>8^e[255&(n^(128|63&t))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?t(e):t({})},1298:(A,e,t)=>{"use strict";t.d(e,{diagram:()=>tA});var i=t(19484),n=t(21491),a=t(92183),r=t(75410),o=(t(23464),t(71651),function(){var A=function(A,e,t,i){for(t=t||{},i=A.length;i--;t[A[i]]=e);return t},e=[1,2],t=[1,3],i=[1,4],n=[2,4],a=[1,9],r=[1,11],o=[1,13],s=[1,14],g=[1,16],l=[1,17],c=[1,18],C=[1,24],I=[1,25],B=[1,26],h=[1,27],d=[1,28],Q=[1,29],u=[1,30],E=[1,31],p=[1,32],w=[1,33],f=[1,34],b=[1,35],m=[1,36],y=[1,37],D=[1,38],k=[1,39],v=[1,41],L=[1,42],S=[1,43],U=[1,44],G=[1,45],x=[1,46],N=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],F=[4,5,16,50,52,53],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],R=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],Y=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],H=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],K=[68,69,70],J=[1,120],T={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(A,e,t,i,n,a,r){var o=a.length-1;switch(n){case 3:return i.apply(a[o]),a[o];case 4:case 9:case 8:case 13:this.$=[];break;case 5:case 10:a[o-1].push(a[o]),this.$=a[o-1];break;case 6:case 7:case 11:case 12:case 62:this.$=a[o];break;case 15:a[o].type="createParticipant",this.$=a[o];break;case 16:a[o-1].unshift({type:"boxStart",boxData:i.parseBoxData(a[o-2])}),a[o-1].push({type:"boxEnd",boxText:a[o-2]}),this.$=a[o-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-2]),sequenceIndexStep:Number(a[o-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[o-1]};break;case 23:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[o-1]};break;case 29:i.setDiagramTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 30:i.setDiagramTitle(a[o].substring(7)),this.$=a[o].substring(7);break;case 31:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 34:a[o-1].unshift({type:"loopStart",loopText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:i.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 35:a[o-1].unshift({type:"rectStart",color:i.parseMessage(a[o-2]),signalType:i.LINETYPE.RECT_START}),a[o-1].push({type:"rectEnd",color:i.parseMessage(a[o-2]),signalType:i.LINETYPE.RECT_END}),this.$=a[o-1];break;case 36:a[o-1].unshift({type:"optStart",optText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.OPT_END}),this.$=a[o-1];break;case 37:a[o-1].unshift({type:"altStart",altText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.ALT_START}),a[o-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=a[o-1];break;case 38:a[o-1].unshift({type:"parStart",parText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.PAR_START}),a[o-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[o-1];break;case 39:a[o-1].unshift({type:"parStart",parText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.PAR_OVER_START}),a[o-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[o-1];break;case 40:a[o-1].unshift({type:"criticalStart",criticalText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.CRITICAL_START}),a[o-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=a[o-1];break;case 41:a[o-1].unshift({type:"breakStart",breakText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.BREAK_START}),a[o-1].push({type:"breakEnd",optText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.BREAK_END}),this.$=a[o-1];break;case 43:this.$=a[o-3].concat([{type:"option",optionText:i.parseMessage(a[o-1]),signalType:i.LINETYPE.CRITICAL_OPTION},a[o]]);break;case 45:this.$=a[o-3].concat([{type:"and",parText:i.parseMessage(a[o-1]),signalType:i.LINETYPE.PAR_AND},a[o]]);break;case 47:this.$=a[o-3].concat([{type:"else",altText:i.parseMessage(a[o-1]),signalType:i.LINETYPE.ALT_ELSE},a[o]]);break;case 48:a[o-3].draw="participant",a[o-3].type="addParticipant",a[o-3].description=i.parseMessage(a[o-1]),this.$=a[o-3];break;case 49:a[o-1].draw="participant",a[o-1].type="addParticipant",this.$=a[o-1];break;case 50:a[o-3].draw="actor",a[o-3].type="addParticipant",a[o-3].description=i.parseMessage(a[o-1]),this.$=a[o-3];break;case 51:a[o-1].draw="actor",a[o-1].type="addParticipant",this.$=a[o-1];break;case 52:a[o-1].type="destroyParticipant",this.$=a[o-1];break;case 53:this.$=[a[o-1],{type:"addNote",placement:a[o-2],actor:a[o-1].actor,text:a[o]}];break;case 54:a[o-2]=[].concat(a[o-1],a[o-1]).slice(0,2),a[o-2][0]=a[o-2][0].actor,a[o-2][1]=a[o-2][1].actor,this.$=[a[o-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:a[o-2].slice(0,2),text:a[o]}];break;case 55:this.$=[a[o-1],{type:"addLinks",actor:a[o-1].actor,text:a[o]}];break;case 56:this.$=[a[o-1],{type:"addALink",actor:a[o-1].actor,text:a[o]}];break;case 57:this.$=[a[o-1],{type:"addProperties",actor:a[o-1].actor,text:a[o]}];break;case 58:this.$=[a[o-1],{type:"addDetails",actor:a[o-1].actor,text:a[o]}];break;case 61:this.$=[a[o-2],a[o]];break;case 63:this.$=i.PLACEMENT.LEFTOF;break;case 64:this.$=i.PLACEMENT.RIGHTOF;break;case 65:this.$=[a[o-4],a[o-1],{type:"addMessage",from:a[o-4].actor,to:a[o-1].actor,signalType:a[o-3],msg:a[o],activate:!0},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[o-1]}];break;case 66:this.$=[a[o-4],a[o-1],{type:"addMessage",from:a[o-4].actor,to:a[o-1].actor,signalType:a[o-3],msg:a[o]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[o-4]}];break;case 67:this.$=[a[o-3],a[o-1],{type:"addMessage",from:a[o-3].actor,to:a[o-1].actor,signalType:a[o-2],msg:a[o]}];break;case 68:this.$={type:"addParticipant",actor:a[o]};break;case 69:this.$=i.LINETYPE.SOLID_OPEN;break;case 70:this.$=i.LINETYPE.DOTTED_OPEN;break;case 71:this.$=i.LINETYPE.SOLID;break;case 72:this.$=i.LINETYPE.DOTTED;break;case 73:this.$=i.LINETYPE.SOLID_CROSS;break;case 74:this.$=i.LINETYPE.DOTTED_CROSS;break;case 75:this.$=i.LINETYPE.SOLID_POINT;break;case 76:this.$=i.LINETYPE.DOTTED_POINT;break;case 77:this.$=i.parseMessage(a[o].trim().substring(1))}},table:[{3:1,4:e,5:t,6:i},{1:[3]},{3:5,4:e,5:t,6:i},{3:6,4:e,5:t,6:i},A([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:r,8:8,9:10,12:12,13:o,14:s,17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},A(N,[2,5]),{9:47,12:12,13:o,14:s,17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},A(N,[2,7]),A(N,[2,8]),A(N,[2,14]),{12:48,50:y,52:D,53:k},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:x},{22:55,70:x},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},A(N,[2,29]),A(N,[2,30]),{32:[1,61]},{34:[1,62]},A(N,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:x},{22:72,70:x},{22:73,70:x},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:x},{22:88,70:x},{22:89,70:x},{22:90,70:x},A([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),A(N,[2,6]),A(N,[2,15]),A(F,[2,9],{10:91}),A(N,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},A(N,[2,21]),{5:[1,95]},{5:[1,96]},A(N,[2,24]),A(N,[2,25]),A(N,[2,26]),A(N,[2,27]),A(N,[2,28]),A(N,[2,31]),A(N,[2,32]),A(M,n,{7:97}),A(M,n,{7:98}),A(M,n,{7:99}),A(R,n,{40:100,7:101}),A(Y,n,{42:102,7:103}),A(Y,n,{7:103,42:104}),A(H,n,{45:105,7:106}),A(M,n,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:x},A(K,[2,69]),A(K,[2,70]),A(K,[2,71]),A(K,[2,72]),A(K,[2,73]),A(K,[2,74]),A(K,[2,75]),A(K,[2,76]),{22:116,70:x},{22:118,58:117,70:x},{70:[2,63]},{70:[2,64]},{56:119,79:J},{56:121,79:J},{56:122,79:J},{56:123,79:J},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:y,52:D,53:k},{5:[1,129]},A(N,[2,19]),A(N,[2,20]),A(N,[2,22]),A(N,[2,23]),{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[1,130],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[1,131],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[1,132],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{16:[1,133]},{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[2,46],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,49:[1,134],50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{16:[1,135]},{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[2,44],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,48:[1,136],50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{16:[1,137]},{16:[1,138]},{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[2,42],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,47:[1,139],50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{4:a,5:r,8:8,9:10,12:12,13:o,14:s,16:[1,140],17:15,18:g,21:l,22:40,23:c,24:19,25:20,26:21,27:22,28:23,29:C,30:I,31:B,33:h,35:d,36:Q,37:u,38:E,39:p,41:w,43:f,44:b,46:m,50:y,52:D,53:k,54:v,59:L,60:S,61:U,62:G,70:x},{15:[1,141]},A(N,[2,49]),{15:[1,142]},A(N,[2,51]),A(N,[2,52]),{22:143,70:x},{22:144,70:x},{56:145,79:J},{56:146,79:J},{56:147,79:J},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},A(N,[2,16]),A(F,[2,10]),{12:149,50:y,52:D,53:k},A(F,[2,12]),A(F,[2,13]),A(N,[2,18]),A(N,[2,34]),A(N,[2,35]),A(N,[2,36]),A(N,[2,37]),{15:[1,150]},A(N,[2,38]),{15:[1,151]},A(N,[2,39]),A(N,[2,40]),{15:[1,152]},A(N,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:J},{56:156,79:J},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:x},A(F,[2,11]),A(R,n,{7:101,40:158}),A(Y,n,{7:103,42:159}),A(H,n,{7:106,45:160}),A(N,[2,48]),A(N,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(A,e){if(!e.recoverable){var t=new Error(A);throw t.hash=e,t}this.trace(A)},parse:function(A){var e=this,t=[0],i=[],n=[null],a=[],r=this.table,o="",s=0,g=0,l=a.slice.call(arguments,1),c=Object.create(this.lexer),C={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(C.yy[I]=this.yy[I]);c.setInput(A,C.yy),C.yy.lexer=c,C.yy.parser=this,void 0===c.yylloc&&(c.yylloc={});var B=c.yylloc;a.push(B);var h=c.options&&c.options.ranges;"function"==typeof C.yy.parseError?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var d,Q,u,E,p,w,f,b,m,y={};;){if(Q=t[t.length-1],this.defaultActions[Q]?u=this.defaultActions[Q]:(null==d&&(m=void 0,"number"!=typeof(m=i.pop()||c.lex()||1)&&(m instanceof Array&&(m=(i=m).pop()),m=e.symbols_[m]||m),d=m),u=r[Q]&&r[Q][d]),void 0===u||!u.length||!u[0]){var D="";for(p in b=[],r[Q])this.terminals_[p]&&p>2&&b.push("'"+this.terminals_[p]+"'");D=c.showPosition?"Parse error on line "+(s+1)+":\n"+c.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(D,{text:c.match,token:this.terminals_[d]||d,line:c.yylineno,loc:B,expected:b})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+d);switch(u[0]){case 1:t.push(d),n.push(c.yytext),a.push(c.yylloc),t.push(u[1]),d=null,g=c.yyleng,o=c.yytext,s=c.yylineno,B=c.yylloc;break;case 2:if(w=this.productions_[u[1]][1],y.$=n[n.length-w],y._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},h&&(y._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(y,[o,g,s,C.yy,u[1],n,a].concat(l))))return E;w&&(t=t.slice(0,-1*w*2),n=n.slice(0,-1*w),a=a.slice(0,-1*w)),t.push(this.productions_[u[1]][0]),n.push(y.$),a.push(y._$),f=r[t[t.length-2]][t[t.length-1]],t.push(f);break;case 3:return!0}}return!0}},j={EOF:1,parseError:function(A,e){if(!this.yy.parser)throw new Error(A);this.yy.parser.parseError(A,e)},setInput:function(A,e){return this.yy=e||this.yy||{},this._input=A,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},input:function(){var A=this._input[0];return this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A,A.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),A},unput:function(A){var e=A.length,t=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===i.length?this.yylloc.first_column:0)+i[i.length-t.length].length-t[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(A){this.unput(this.match.slice(A))},pastInput:function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var A=this.pastInput(),e=new Array(A.length+1).join("-");return A+this.upcomingInput()+"\n"+e+"^"},test_match:function(A,e){var t,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=A[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yy