1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8754],{1341:function(t,e,i){i.d(e,{Z:function(){return a}});var s=i(85562),n=i(46762),a=(t,e)=>s.Z.lang.round(n.Z.parse(t)[e])},56532:function(t,e,i){i.d(e,{j:function(){return r},q:function(){return a}});var s=i(52016),n=i(5402),a=(0,s.eW)((t,e)=>{let i;return"sandbox"===e&&(i=(0,n.Z)("#i"+t)),(0,n.Z)("sandbox"===e?i.nodes()[0].contentDocument.body:"body").select('[id="'.concat(t,'"]'))},"getDiagramElement"),r=(0,s.eW)((t,e,i,n)=>{t.attr("class",i);let{width:a,height:r,x:l,y:h}=c(t,e);(0,s.v2)(t,r,a,n);let u=o(l,h,a,r,e);t.attr("viewBox",u),s.cM.debug("viewBox configured: ".concat(u," with padding: ").concat(e))},"setupViewPortForSVG"),c=(0,s.eW)((t,e)=>{var i;let s=(null===(i=t.node())||void 0===i?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),o=(0,s.eW)((t,e,i,s,n)=>"".concat(t-n," ").concat(e-n," ").concat(i," ").concat(s),"createViewBox")},68754:function(t,e,i){i.d(e,{diagram:function(){return g}});var s,n=i(56532),a=i(52180),r=i(52016),c=i(80424),o=i(5402),l=i(11027),h=i(1341),u=function(){var t=(0,r.eW)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],i=[1,10],s=[1,11],n=[1,12],a=[1,13],c=[1,20],o=[1,21],l=[1,22],h=[1,23],u=[1,24],d=[1,19],y=[1,25],p=[1,26],_=[1,18],g=[1,33],b=[1,34],f=[1,35],m=[1,36],E=[1,37],k=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],S=[1,43],T=[1,52],N=[40,50,68,69],A=[1,63],R=[1,61],v=[1,58],I=[1,62],x=[1,64],C=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],D=[63,64,65,66,67],w=[1,81],M=[1,80],W=[1,78],L=[1,79],$=[6,10,42,47],B=[6,10,13,41,42,47,48,49],F=[1,89],Y=[1,88],P=[1,87],Z=[19,56],G=[1,98],K=[1,97],z=[19,56,58,60],U={trace:(0,r.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:(0,r.eW)(function(t,e,
vendor: 5,119 bytes, line 1
1i,s,n,a,r){var c=a.length-1;switch(n){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:a[c-1].push(a[c]),this.$=a[c-1];break;case 4:case 5:case 55:case 78:case 62:case 63:case 66:this.$=a[c];break;case 8:s.addEntity(a[c-4]),s.addEntity(a[c-2]),s.addRelationship(a[c-4],a[c],a[c-2],a[c-3]);break;case 9:s.addEntity(a[c-8]),s.addEntity(a[c-4]),s.addRelationship(a[c-8],a[c],a[c-4],a[c-5]),s.setClass([a[c-8]],a[c-6]),s.setClass([a[c-4]],a[c-2]);break;case 10:s.addEntity(a[c-6]),s.addEntity(a[c-2]),s.addRelationship(a[c-6],a[c],a[c-2],a[c-3]),s.setClass([a[c-6]],a[c-4]);break;case 11:s.addEntity(a[c-6]),s.addEntity(a[c-4]),s.addRelationship(a[c-6],a[c],a[c-4],a[c-5]),s.setClass([a[c-4]],a[c-2]);break;case 12:s.addEntity(a[c-3]),s.addAttributes(a[c-3],a[c-1]);break;case 13:s.addEntity(a[c-5]),s.addAttributes(a[c-5],a[c-1]),s.setClass([a[c-5]],a[c-3]);break;case 14:s.addEntity(a[c-2]);break;case 15:s.addEntity(a[c-4]),s.setClass([a[c-4]],a[c-2]);break;case 16:s.addEntity(a[c]);break;case 17:s.addEntity(a[c-2]),s.setClass([a[c-2]],a[c]);break;case 18:s.addEntity(a[c-6],a[c-4]),s.addAttributes(a[c-6],a[c-1]);break;case 19:s.addEntity(a[c-8],a[c-6]),s.addAttributes(a[c-8],a[c-1]),s.setClass([a[c-8]],a[c-3]);break;case 20:s.addEntity(a[c-5],a[c-3]);break;case 21:s.addEntity(a[c-7],a[c-5]),s.setClass([a[c-7]],a[c-2]);break;case 22:s.addEntity(a[c-3],a[c-1]);break;case 23:s.addEntity(a[c-5],a[c-3]),s.setClass([a[c-5]],a[c]);break;case 24:case 25:this.$=a[c].trim(),s.setAccTitle(this.$);break;case 26:case 27:this.$=a[c].trim(),s.setAccDescription(this.$);break;case 32:s.setDirection("TB");break;case 33:s.setDirection("BT");break;case 34:s.setDirection("RL");break;case 35:s.setDirection("LR");break;case 36:this.$=a[c-3],s.addClass(a[c-2],a[c-1]);break;case 37:case 38:case 56:case 64:case 43:this.$=[a[c]];break;case 39:case 40:this.$=a[c-2].concat([a[c]]);break;case 41:this.$=a[c-2],s.setClass(a[c-1],a[c]);break;case 42:this.$=a[c-3],s.addCssStyles(a[c-2],a[c-1]);break;case 44:case 65:a[c-2].push(a[c]),this.$=a[c-2];break;case 46:this.$=a[c-1]+a[c];break;case 54:case 76:case 77:case 67:this.$=a[c].replace(/"/g,"");break;case 57:a[c].push(a[c-1]),this.$=a[c];break;case 58:this.$={type:a[c-1],name:a[c]};break;case 59:this.$={type:a[c-2],name:a[c-1],keys:a[c]};break;case 60:this.$={type:a[c-2],name:a[c-1],comment:a[c]};break;case 61:this.$={type:a[c-3],name:a[c-2],keys:a[c-1],comment:a[c]};break;case 68:this.$={cardA:a[c],relType:a[c-1],cardB:a[c-2]};break;case 69:this.$=s.Cardinality.ZERO_OR_ONE;break;case 70:this.$=s.Cardinality.ZERO_OR_MORE;break;case 71:this.$=s.Cardinality.ONE_OR_MORE;break;case 72:this.$=s.Cardinality.ONLY_ONE;break;case 73:this.$=s.Cardinality.MD_PARENT;break;case 74:this.$=s.Identification.NON_IDENTIFYING;break;case 75:this.$=s.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:i,24:s,26:n,28:a,29:14,30:15,31:16,32:17,33:c,34:o,35:l,36:h,37:u,40:d,43:y,44:p,50:_},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:27,11:9,22:i,24:s,26:n,28:a,29:14,30:15,31:16,32:17,33:c,34:o,35:l,36:h,37:u,40:d,43:y,44:p,50:_},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:g,64:b,65:f,66:m,67:E}),{23:[1,38]},{25:[1,39]},{27:[1,40]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(k,[2,54]),t(k,[2,55]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:41,40:O,41:S},{16:44,40:O,41:S},{16:45,40:O,41:S},t(e,[2,4]),{11:46,40:d,50:_},{16:47,40:O,41:S},{18:48,19:[1,49],51:50,52:51,56:T},{11:53,40:d,50:_},{62:54,68:[1,55],69:[1,56]},t(N,[2,69]),t(N,[2,70]),t(N,[2,71]),t(N,[2,72]),t(N,[2,73]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:A,38:57,41:R,42:v,45:59,46:60,48:I,49:x},t(C,[2,37]),t(C,[2,38]),{16:65,40:O,41:S,42:v},{13:A,38:66,41:R,42:v,45:59,46:60,48:I,49:x},{13:[1,67],15:[1,68]},t(e,[2,17],{61:32,12:69,17:[1,70],42:v,63:g,64:b,65:f,66:m,67:E}),{19:[1,71]},t(e,[2,14]),{18:72,19:[2,56],51:50,52:51,56:T},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:g,64:b,65:f,66:m,67:E},t(D,[2,74]),t(D,[2,75]),{6:w,10:M,39:77,42:W,47:L},{40:[1,82],41:[1,83]},t($,[2,43],{46:84,13:A,41:R,48:I,49:x}),t(B,[2,45]),t(B,[2,50]),t(B,[2,51]),t(B,[2,52]),t(B,[2,53]),t(e,[2,41],{42:v}),{6:w,10:M,39:85,42:W,47:L},{14:86,40:F,50:Y,70:P},{16:90,40:O,41:S},{11:91,40:d,50:_},{18:92,19:[1,93],51:50,52:51,56:T},t(e,[2,12]),{19:[2,57]},t(Z,[2,58],{54:94,55:95,57:96,59:G,60:K}),t([19,56,59,60],[2,63]),t(e,[2,22],{15:[1,100],17:[1,99]}),t([40,50],[2,68]),t(e,[2,36]),{13:A,41:R,45:101,46:60,48:I,49:x},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(C,[2,39]),t(C,[2,40]),t(B,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,76]),t(e,[2,77]),t(e,[2,78]),{13:[1,102],42:v},{13:[1,104],15:[1,103]},{19:[1,105]},t(e,[2,15]),t(Z,[2,59],{55:106,58:[1,107],60:K}),t(Z,[2,60]),t(z,[2,64]),t(Z,[2,67]),t(z,[2,66]),{18:108,19:[1,109],51:50,52:51,56:T},{16:110,40:O,41:S},t($,[2,44],{46:84,13:A,41:R,48:I,49:x}),{14:111,40:F,50:Y,70:P},{16:112,40:O,41:S},{14:113,40:F,50:Y,70:P},t(e,[2,13]),t(Z,[2,61]),{57:114,59:G},{19:[1,115]},t(e,[2,20]),t(e,[2,23],{17:[1,116],42:v}),t(e,[2,11]),{13:[1,117],42:v}
1,t(e,[2,10]),t(z,[2,65]),t(e,[2,18]),{18:118,19:[1,119],51:50,52:51,56:T},{14:120,40:F,50:Y,70:P},{19:[1,121]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:(0,r.eW)(function(t,e){if(!e.recoverable){var i=Error(t);throw i.hash=e,i}this.trace(t)},"parseError"),parse:(0,r.eW)(function(t){var e=this,i=[0],s=[],n=[null],a=[],c=this.table,o="",l=0,h=0,u=a.slice.call(arguments,1),d=Object.create(this.lexer),y={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(y.yy[p]=this.yy[p]);d.setInput(t,y.yy),y.yy.lexer=d,y.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var _=d.yylloc;a.push(_);var g=d.options&&d.options.ranges;function b(){var t;return"number"!=typeof(t=s.pop()||d.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.eW)(function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,r.eW)(b,"lex");for(var f,m,E,k,O,S,T,N,A={};;){if(m=i[i.length-1],this.defaultActions[m]?E=this.defaultActions[m]:(null==f&&(f=b()),E=c[m]&&c[m][f]),void 0===E||!E.length||!E[0]){var R="";for(O in N=[],c[m])this.terminals_[O]&&O>2&&N.push("'"+this.terminals_[O]+"'");R=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+N.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(R,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:_,expected:N})}if(E[0]instanceof Array&&E.length>1)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(E[0]){case 1:i.push(f),n.push(d.yytext),a.push(d.yylloc),i.push(E[1]),f=null,h=d.yyleng,o=d.yytext,l=d.yylineno,_=d.yylloc;break;case 2:if(S=this.productions_[E[1]][1],A.$=n[n.length-S],A._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},g&&(A._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[o,h,l,y.yy,E[1],n,a].concat(u))))return k;S&&(i=i.slice(0,-1*S*2),n=n.slice(0,-1*S),a=a.slice(0,-1*S)),i.push(this.productions_[E[1]][0]),n.push(A.$),a.push(A._$),T=c[i[i.length-2]][i[i.length-1]],i.push(T);break;case 3:return!0}}return!0},"parse")},j={EOF:1,parseError:(0,r.eW)(function(t,e){if(!this.yy.parser)throw Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,r.eW)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.eW)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.eW)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=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),i.length-1&&(this.yylineno-=i.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:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[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},"unput"),more:(0,r.eW)(function(){return this._more=!0,this},"more"),reject:(0,r.eW)(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:(0,r.eW)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.eW)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.eW)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.eW)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.eW)(function(t,e){var i,s,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))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in n)this[a]=n[a];return!1},"test_match"),next:(0,r.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),a=0;a<n.length;a++)if((i=this._input.match(this.rules[n[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.eW)(function(){return this.next()||this.lex()},"lex"),begin:(0,r.eW)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.eW)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.eW)(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:(0,r.eW)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.eW)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0}
1,performAction:(0,r.eW)(function(t,e,i,s){switch(i){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 28:case 35:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 38:return 49;case 20:case 37:return 42;case 21:return 15;case 22:case 36:return 13;case 24:return 59;case 25:case 26:return 56;case 27:return 60;case 29:return this.popState(),19;case 30:case 73:return e.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 39:return this.begin("style"),37;case 40:return 43;case 41:case 45:case 46:case 59:return 63;case 42:case 43:case 44:case 52:case 54:case 61:return 65;case 47:case 48:case 49:case 50:case 51:case 53:case 60:return 64;case 55:case 56:case 57:case 58:return 66;case 62:return 67;
1case 63:case 66:case 67:case 68:return 68;case 64:case 65:return 69;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}};function V(){this.yy={}}return U.lexer=j,(0,r.eW)(V,"Parser"),V.prototype=U,U.Parser=V,new V}();u.parser=u;var d=(s=class{addEntity(t){var e,i;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.entities.has(t)?(null===(e=this.entities.get(t))||void 0===e?void 0:e.alias)||!s||(this.entities.get(t).alias=s,r.cM.info("Add alias '".concat(s,"' to entity '").concat(t,"'"))):(this.entities.set(t,{id:"entity-".concat(t,"-").concat(this.entities.size),label:t,attributes:[],alias:s,shape:"erBox",look:null!==(i=(0,r.nV)().look)&&void 0!==i?i:"default",cssClasses:"default",cssStyles:[]}),r.cM.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){let i;let s=this.addEntity(t);for(i=e.length-1;i>=0;i--)e[i].keys||(e[i].keys=[]),e[i].comment||(e[i].comment=""),s.attributes.push(e[i]),r.cM.debug("Added attribute ",e[i].name)}addRelationship(t,e,i,s){let n=this.entities.get(t),a=this.entities.get(i);if(!n||!a)return;let c={entityA:n.id,roleA:e,entityB:a.id,relSpec:s};this.relationships.push(c),r.cM.debug("Added new relationship :",c)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(let n of t){var i,s;let t=this.classes.get(n);(null==t?void 0:t.styles)&&(e=[...e,...null!==(i=t.styles)&&void 0!==i?i:[]].map(t=>t.trim())),(null==t?void 0:t.textStyles)&&(e=[...e,...null!==(s=t.textStyles)&&void 0!==s?s:[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(let i of t){let t=this.entities.get(i);if(!e||!t)return;for(let i of e)t.cssStyles.push(i)}}addClass(t,e){t.forEach(t=>{let i=this.classes.get(t);void 0===i&&(i={id:t,styles:[],textStyles:[]},this.classes.set(t,i)),e&&e.forEach(function(t){if(/color/.exec(t)){let e=t.replace("fill","bgFill");i.textStyles.push(e)}i.styles.push(t)})})}setClass(t,e){for(let i of t){let t=this.entities.get(i);if(t)for(let i of e)t.cssClasses+=" "+i}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,r.ZH)()}getData(){let t=[],e=[],i=(0,r.nV)();for(let e of this.entities.keys()){let i=this.entities.get(e);
1i&&(i.cssCompiledStyles=this.getCompiledStyles(i.cssClasses.split(" ")),t.push(i))}let s=0;for(let t of this.relationships){let n={id:(0,c.Ln)(t.entityA,t.entityB,{prefix:"id",counter:s++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:i.look};e.push(n)}return{nodes:t,edges:e,other:{},config:i,direction:"TB"}}constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=r.GN,this.getAccTitle=r.eu,this.setAccDescription=r.U$,this.getAccDescription=r.Mx,this.setDiagramTitle=r.g2,this.getDiagramTitle=r.Kr,this.getConfig=(0,r.eW)(()=>(0,r.nV)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}},(0,r.eW)(s,"ErDB"),s),y={};(0,r.r2)(y,{draw:()=>p});var p=(0,r.eW)(async function(t,e,i,s){var l,h;r.cM.info("REF0:"),r.cM.info("Drawing er diagram (unified)",e);let{securityLevel:u,er:d,layout:y}=(0,r.nV)(),p=s.db.getData(),_=(0,n.q)(e,u);p.type=s.type,p.layoutAlgorithm=(0,a._b)(y),p.config.flowchart.nodeSpacing=(null==d?void 0:d.nodeSpacing)||140,p.config.flowchart.rankSpacing=(null==d?void 0:d.rankSpacing)||80,p.direction=s.db.getDirection(),p.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],p.diagramId=e,await (0,a.sY)(p,_),"elk"===p.layoutAlgorithm&&_.select(".edges").lower();let g=_.selectAll('[id*="-background"]');Array.from(g).length>0&&g.each(function(){let t=(0,o.Z)(this),e=t.attr("id").replace("-background",""),i=_.select("#".concat(CSS.escape(e)));if(!i.empty()){let e=i.attr("transform");t.attr("transform",e)}}),c.w8.insertTitle(_,"erDiagramTitleText",null!==(l=null==d?void 0:d.titleTopMargin)&&void 0!==l?l:25,s.db.getDiagramTitle()),(0,n.j)(_,8,"erDiagram",null===(h=null==d?void 0:d.useMaxWidth)||void 0===h||h)},"draw"),_=(0,r.eW)((t,e)=>{let i=h.Z,s=i(t,"r"),n=i(t,"g"),a=i(t,"b");return(0,l.Z)(s,n,a,e)},"fade"),g={parser:u,get db(){return new d},renderer:y,styles:(0,r.eW)(t=>
1"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(t.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .labelBkg {\n background-color: ").concat(_(t.tertiaryColor,.5),";\n }\n\n .edgeLabel .label {\n fill: ").concat(t.nodeBorder,";\n font-size: 14px;\n }\n\n .label {\n font-family: ").concat(t.fontFamily,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n\n .edge-pattern-dashed {\n stroke-dasharray: 8,8;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon\n {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n fill: none;\n }\n\n .marker {\n fill: none !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n }\n"),"getStyles")}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.