UNPKG

@nodefony/monitoring-bundle

Version:
1 lines 95.1 kB
"use strict";(self["webpackChunk_nodefony_monitoring_bundle"]=self["webpackChunk_nodefony_monitoring_bundle"]||[]).push([[5410],{37981:function(t,e,r){r.d(e,{T:function(){return _}});var n=r(39142),a=r(89610),i=r(27422),s=r(94092),o=r(66401),l=r(8058),c=r(69592),h=r(13588),d=r(24326),u=r(99902),g=r(53533),p=(0,d.A)((function(t){return(0,u.A)((0,h.A)(t,1,g.A,!0))})),y=p,f=r(38207),b=r(89463),x="\0",m="\0",w="";class _{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n.A(void 0),this._defaultEdgeLabelFn=n.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return a.A(t)||(t=n.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return i.A(this._nodes)}sources(){var t=this;return s.A(this.nodes(),(function(e){return o.A(t._in[e])}))}sinks(){var t=this;return s.A(this.nodes(),(function(e){return o.A(t._out[e])}))}setNodes(t,e){var r=arguments,n=this;return l.A(t,(function(t){r.length>1?n.setNode(t,e):n.setNode(t)})),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=m,this._children[t]={},this._children[m][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],l.A(this.children(t),(t=>{this.setParent(t)})),delete this._children[t]),l.A(i.A(this._in[t]),e),delete this._in[t],delete this._preds[t],l.A(i.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.A(e))e=m;else{e+="";for(var r=e;!c.A(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==m)return e}}children(t){if(c.A(t)&&(t=m),this._isCompound){var e=this._children[t];if(e)return i.A(e)}else{if(t===m)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return i.A(e)}successors(t){var e=this._sucs[t];if(e)return i.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return y(e,this.successors(t))}isLeaf(t){var e;return e=this.isDirected()?this.successors(t):this.neighbors(t),0===e.length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;l.A(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),l.A(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var n={};function a(t){var i=r.parent(t);return void 0===i||e.hasNode(i)?(n[t]=i,i):i in n?n[i]:a(i)}return this._isCompound&&l.A(e.nodes(),(function(t){e.setParent(t,a(t))})),e}setDefaultEdgeLabel(t){return a.A(t)||(t=n.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return f.A(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return b.A(t,(function(t,a){return n.length>1?r.setEdge(t,a,e):r.setEdge(t,a),a})),this}setEdge(){var t,e,r,n,a=!1,i=arguments[0];"object"===typeof i&&null!==i&&"v"in i?(t=i.v,e=i.w,r=i.name,2===arguments.length&&(n=arguments[1],a=!0)):(t=i,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),t=""+t,e=""+e,c.A(r)||(r=""+r);var s=S(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return a&&(this._edgeLabels[s]=n),this;if(!c.A(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=a?n:this._defaultEdgeLabelFn(t,e,r);var o=k(this._isDirected,t,e,r);return t=o.v,e=o.w,Object.freeze(o),this._edgeObjs[s]=o,L(this._preds[e],t),L(this._sucs[t],e),this._in[e][s]=o,this._out[t][s]=o,this._edgeCount++,this}edge(t,e,r){var n=1===arguments.length?A(this._isDirected,arguments[0]):S(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var n=1===arguments.length?A(this._isDirected,arguments[0]):S(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,e,r){var n=1===arguments.length?A(this._isDirected,arguments[0]):S(this._isDirected,t,e,r),a=this._edgeObjs[n];return a&&(t=a.v,e=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],v(this._preds[e],t),v(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=f.A(r);return e?s.A(n,(function(t){return t.v===e})):n}}outEdges(t,e){var r=this._out[t];if(r){var n=f.A(r);return e?s.A(n,(function(t){return t.w===e})):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function L(t,e){t[e]?t[e]++:t[e]=1}function v(t,e){--t[e]||delete t[e]}function S(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var s=a;a=i,i=s}return a+w+i+w+(c.A(n)?x:n)}function k(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var s=a;a=i,i=s}var o={v:a,w:i};return n&&(o.name=n),o}function A(t,e){return S(t,e.v,e.w,e.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0},697:function(t,e,r){r.d(e,{T:function(){return n.T}});var n=r(37981)},75937:function(t,e,r){var n=r(72453),a=r(74886);const i=(t,e)=>n.A.lang.round(a.A.parse(t)[e]);e.A=i},62062:function(t,e,r){r.d(e,{A:function(){return h}});var n=r(29471),a="__lodash_hash_undefined__";function i(t){return this.__data__.set(t,a),this}var s=i;function o(t){return this.__data__.has(t)}var l=o;function c(t){var e=-1,r=null==t?0:t.length;this.__data__=new n.A;while(++e<r)this.add(t[e])}c.prototype.add=c.prototype.push=s,c.prototype.has=l;var h=c},72641:function(t,e){function r(t,e){var r=-1,n=null==t?0:t.length;while(++r<n)if(!1===e(t[r],r,t))break;return t}e.A=r},2634:function(t,e){function r(t,e){var r=-1,n=null==t?0:t.length,a=0,i=[];while(++r<n){var s=t[r];e(s,r,t)&&(i[a++]=s)}return i}e.A=r},83149:function(t,e,r){var n=r(60818);function a(t,e){var r=null==t?0:t.length;return!!r&&(0,n.A)(t,e,0)>-1}e.A=a},87809:function(t,e){function r(t,e,r){var n=-1,a=null==t?0:t.length;while(++n<a)if(r(e,t[n]))return!0;return!1}e.A=r},45572:function(t,e){function r(t,e){var r=-1,n=null==t?0:t.length,a=Array(n);while(++r<n)a[r]=e(t[r],r,t);return a}e.A=r},76912:function(t,e){function r(t,e){var r=-1,n=e.length,a=t.length;while(++r<n)t[a+r]=e[r];return t}e.A=r},63736:function(t,e){function r(t,e){var r=-1,n=null==t?0:t.length;while(++r<n)if(e(t[r],r,t))return!0;return!1}e.A=r},68675:function(t,e,r){r.d(e,{A:function(){return ne}});var n=r(11754),a=r(72641),i=r(52851),s=r(22031),o=r(27422);function l(t,e){return t&&(0,s.A)(e,(0,o.A)(e),t)}var c=l,h=r(55615);function d(t,e){return t&&(0,s.A)(e,(0,h.A)(e),t)}var u=d,g=r(80154),p=r(39759),y=r(92411);function f(t,e){return(0,s.A)(t,(0,y.A)(t),e)}var b=f,x=r(83511);function m(t,e){return(0,s.A)(t,(0,x.A)(t),e)}var w=m,_=r(19042),L=r(83973),v=r(9779),S=Object.prototype,k=S.hasOwnProperty;function A(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&k.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var E=A,D=r(90565);function N(t,e){var r=e?(0,D.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var C=N,O=/\w*$/;function R(t){var e=new t.constructor(t.source,O.exec(t));return e.lastIndex=t.lastIndex,e}var K=R,T=r(241),$=T.A?T.A.prototype:void 0,I=$?$.valueOf:void 0;function j(t){return I?Object(I.call(t)):{}}var B=j,z=r(1801),M="[object Boolean]",P="[object Date]",F="[object Map]",Y="[object Number]",W="[object RegExp]",X="[object Set]",U="[object String]",H="[object Symbol]",Z="[object ArrayBuffer]",q="[object DataView]",G="[object Float32Array]",V="[object Float64Array]",J="[object Int8Array]",Q="[object Int16Array]",tt="[object Int32Array]",et="[object Uint8Array]",rt="[object Uint8ClampedArray]",nt="[object Uint16Array]",at="[object Uint32Array]";function it(t,e,r){var n=t.constructor;switch(e){case Z:return(0,D.A)(t);case M:case P:return new n(+t);case q:return C(t,r);case G:case V:case J:case Q:case tt:case et:case rt:case nt:case at:return(0,z.A)(t,r);case F:return new n;case Y:case U:return new n(t);case W:return K(t);case X:return new n;case H:return B(t)}}var st=it,ot=r(18598),lt=r(92049),ct=r(99912),ht=r(53098),dt="[object Map]";function ut(t){return(0,ht.A)(t)&&(0,v.A)(t)==dt}var gt=ut,pt=r(52789),yt=r(64841),ft=yt.A&&yt.A.isMap,bt=ft?(0,pt.A)(ft):gt,xt=bt,mt=r(23149),wt="[object Set]";function _t(t){return(0,ht.A)(t)&&(0,v.A)(t)==wt}var Lt=_t,vt=yt.A&&yt.A.isSet,St=vt?(0,pt.A)(vt):Lt,kt=St,At=1,Et=2,Dt=4,Nt="[object Arguments]",Ct="[object Array]",Ot="[object Boolean]",Rt="[object Date]",Kt="[object Error]",Tt="[object Function]",$t="[object GeneratorFunction]",It="[object Map]",jt="[object Number]",Bt="[object Object]",zt="[object RegExp]",Mt="[object Set]",Pt="[object String]",Ft="[object Symbol]",Yt="[object WeakMap]",Wt="[object ArrayBuffer]",Xt="[object DataView]",Ut="[object Float32Array]",Ht="[object Float64Array]",Zt="[object Int8Array]",qt="[object Int16Array]",Gt="[object Int32Array]",Vt="[object Uint8Array]",Jt="[object Uint8ClampedArray]",Qt="[object Uint16Array]",te="[object Uint32Array]",ee={};function re(t,e,r,s,l,d){var y,f=e&At,x=e&Et,m=e&Dt;if(r&&(y=l?r(t,s,l,d):r(t)),void 0!==y)return y;if(!(0,mt.A)(t))return t;var S=(0,lt.A)(t);if(S){if(y=E(t),!f)return(0,p.A)(t,y)}else{var k=(0,v.A)(t),A=k==Tt||k==$t;if((0,ct.A)(t))return(0,g.A)(t,f);if(k==Bt||k==Nt||A&&!l){if(y=x||A?{}:(0,ot.A)(t),!f)return x?w(t,u(y,t)):b(t,c(y,t))}else{if(!ee[k])return l?t:{};y=st(t,k,f)}}d||(d=new n.A);var D=d.get(t);if(D)return D;d.set(t,y),kt(t)?t.forEach((function(n){y.add(re(n,e,r,n,t,d))})):xt(t)&&t.forEach((function(n,a){y.set(a,re(n,e,r,a,t,d))}));var N=m?x?L.A:_.A:x?h.A:o.A,C=S?void 0:N(t);return(0,a.A)(C||t,(function(n,a){C&&(a=n,n=t[a]),(0,i.A)(y,a,re(n,e,r,a,t,d))})),y}ee[Nt]=ee[Ct]=ee[Wt]=ee[Xt]=ee[Ot]=ee[Rt]=ee[Ut]=ee[Ht]=ee[Zt]=ee[qt]=ee[Gt]=ee[It]=ee[jt]=ee[Bt]=ee[zt]=ee[Mt]=ee[Pt]=ee[Ft]=ee[Vt]=ee[Jt]=ee[Qt]=ee[te]=!0,ee[Kt]=ee[Tt]=ee[Yt]=!1;var ne=re},6240:function(t,e,r){r.d(e,{A:function(){return l}});var n=r(79841),a=r(38446);function i(t,e){return function(r,n){if(null==r)return r;if(!(0,a.A)(r))return t(r,n);var i=r.length,s=e?i:-1,o=Object(r);while(e?s--:++s<i)if(!1===n(o[s],s,o))break;return r}}var s=i,o=s(n.A),l=o},51790:function(t,e,r){var n=r(6240);function a(t,e){var r=[];return(0,n.A)(t,(function(t,n,a){e(t,n,a)&&r.push(t)})),r}e.A=a},25707:function(t,e){function r(t,e,r,n){var a=t.length,i=r+(n?1:-1);while(n?i--:++i<a)if(e(t[i],i,t))return i;return-1}e.A=r},13588:function(t,e,r){r.d(e,{A:function(){return d}});var n=r(76912),a=r(241),i=r(52274),s=r(92049),o=a.A?a.A.isConcatSpreadable:void 0;function l(t){return(0,s.A)(t)||(0,i.A)(t)||!!(o&&t&&t[o])}var c=l;function h(t,e,r,a,i){var s=-1,o=t.length;r||(r=c),i||(i=[]);while(++s<o){var l=t[s];e>0&&r(l)?e>1?h(l,e-1,r,a,i):(0,n.A)(i,l):a||(i[i.length]=l)}return i}var d=h},79841:function(t,e,r){var n=r(4574),a=r(27422);function i(t,e){return t&&(0,n.A)(t,e,a.A)}e.A=i},66318:function(t,e,r){var n=r(7819),a=r(30901);function i(t,e){e=(0,n.A)(e,t);var r=0,i=e.length;while(null!=t&&r<i)t=t[(0,a.A)(e[r++])];return r&&r==i?t:void 0}e.A=i},33831:function(t,e,r){var n=r(76912),a=r(92049);function i(t,e,r){var i=e(t);return(0,a.A)(t)?i:(0,n.A)(i,r(t))}e.A=i},60818:function(t,e,r){r.d(e,{A:function(){return c}});var n=r(25707);function a(t){return t!==t}var i=a;function s(t,e,r){var n=r-1,a=t.length;while(++n<a)if(t[n]===e)return n;return-1}var o=s;function l(t,e,r){return e===e?o(t,e,r):(0,n.A)(t,i,r)}var c=l},23958:function(t,e,r){r.d(e,{A:function(){return Rt}});var n=r(11754),a=r(62062),i=r(63736),s=r(64099),o=1,l=2;function c(t,e,r,n,c,h){var d=r&o,u=t.length,g=e.length;if(u!=g&&!(d&&g>u))return!1;var p=h.get(t),y=h.get(e);if(p&&y)return p==e&&y==t;var f=-1,b=!0,x=r&l?new a.A:void 0;h.set(t,e),h.set(e,t);while(++f<u){var m=t[f],w=e[f];if(n)var _=d?n(w,m,f,e,t,h):n(m,w,f,t,e,h);if(void 0!==_){if(_)continue;b=!1;break}if(x){if(!(0,i.A)(e,(function(t,e){if(!(0,s.A)(x,e)&&(m===t||c(m,t,r,n,h)))return x.push(e)}))){b=!1;break}}else if(m!==w&&!c(m,w,r,n,h)){b=!1;break}}return h["delete"](t),h["delete"](e),b}var h=c,d=r(241),u=r(43988),g=r(66984);function p(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}var y=p,f=r(29959),b=1,x=2,m="[object Boolean]",w="[object Date]",_="[object Error]",L="[object Map]",v="[object Number]",S="[object RegExp]",k="[object Set]",A="[object String]",E="[object Symbol]",D="[object ArrayBuffer]",N="[object DataView]",C=d.A?d.A.prototype:void 0,O=C?C.valueOf:void 0;function R(t,e,r,n,a,i,s){switch(r){case N:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case D:return!(t.byteLength!=e.byteLength||!i(new u.A(t),new u.A(e)));case m:case w:case v:return(0,g.A)(+t,+e);case _:return t.name==e.name&&t.message==e.message;case S:case A:return t==e+"";case L:var o=y;case k:var l=n&b;if(o||(o=f.A),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;n|=x,s.set(t,e);var d=h(o(t),o(e),n,a,i,s);return s["delete"](t),d;case E:if(O)return O.call(t)==O.call(e)}return!1}var K=R,T=r(19042),$=1,I=Object.prototype,j=I.hasOwnProperty;function B(t,e,r,n,a,i){var s=r&$,o=(0,T.A)(t),l=o.length,c=(0,T.A)(e),h=c.length;if(l!=h&&!s)return!1;var d=l;while(d--){var u=o[d];if(!(s?u in e:j.call(e,u)))return!1}var g=i.get(t),p=i.get(e);if(g&&p)return g==e&&p==t;var y=!0;i.set(t,e),i.set(e,t);var f=s;while(++d<l){u=o[d];var b=t[u],x=e[u];if(n)var m=s?n(x,b,u,e,t,i):n(b,x,u,t,e,i);if(!(void 0===m?b===x||a(b,x,r,n,i):m)){y=!1;break}f||(f="constructor"==u)}if(y&&!f){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(y=!1)}return i["delete"](t),i["delete"](e),y}var z=B,M=r(9779),P=r(92049),F=r(99912),Y=r(33858),W=1,X="[object Arguments]",U="[object Array]",H="[object Object]",Z=Object.prototype,q=Z.hasOwnProperty;function G(t,e,r,a,i,s){var o=(0,P.A)(t),l=(0,P.A)(e),c=o?U:(0,M.A)(t),d=l?U:(0,M.A)(e);c=c==X?H:c,d=d==X?H:d;var u=c==H,g=d==H,p=c==d;if(p&&(0,F.A)(t)){if(!(0,F.A)(e))return!1;o=!0,u=!1}if(p&&!u)return s||(s=new n.A),o||(0,Y.A)(t)?h(t,e,r,a,i,s):K(t,e,c,r,a,i,s);if(!(r&W)){var y=u&&q.call(t,"__wrapped__"),f=g&&q.call(e,"__wrapped__");if(y||f){var b=y?t.value():t,x=f?e.value():e;return s||(s=new n.A),i(b,x,r,a,s)}}return!!p&&(s||(s=new n.A),z(t,e,r,a,i,s))}var V=G,J=r(53098);function Q(t,e,r,n,a){return t===e||(null==t||null==e||!(0,J.A)(t)&&!(0,J.A)(e)?t!==t&&e!==e:V(t,e,r,n,Q,a))}var tt=Q,et=1,rt=2;function nt(t,e,r,a){var i=r.length,s=i,o=!a;if(null==t)return!s;t=Object(t);while(i--){var l=r[i];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}while(++i<s){l=r[i];var c=l[0],h=t[c],d=l[1];if(o&&l[2]){if(void 0===h&&!(c in t))return!1}else{var u=new n.A;if(a)var g=a(h,d,c,t,e,u);if(!(void 0===g?tt(d,h,et|rt,a,u):g))return!1}}return!0}var at=nt,it=r(23149);function st(t){return t===t&&!(0,it.A)(t)}var ot=st,lt=r(27422);function ct(t){var e=(0,lt.A)(t),r=e.length;while(r--){var n=e[r],a=t[n];e[r]=[n,a,ot(a)]}return e}var ht=ct;function dt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}var ut=dt;function gt(t){var e=ht(t);return 1==e.length&&e[0][2]?ut(e[0][0],e[0][1]):function(r){return r===t||at(r,t,e)}}var pt=gt,yt=r(66318);function ft(t,e,r){var n=null==t?void 0:(0,yt.A)(t,e);return void 0===n?r:n}var bt=ft,xt=r(39188),mt=r(86586),wt=r(30901),_t=1,Lt=2;function vt(t,e){return(0,mt.A)(t)&&ot(e)?ut((0,wt.A)(t),e):function(r){var n=bt(r,t);return void 0===n&&n===e?(0,xt.A)(r,t):tt(e,n,_t|Lt)}}var St=vt,kt=r(29008),At=r(70805);function Et(t){return function(e){return(0,yt.A)(e,t)}}var Dt=Et;function Nt(t){return(0,mt.A)(t)?(0,At.A)((0,wt.A)(t)):Dt(t)}var Ct=Nt;function Ot(t){return"function"==typeof t?t:null==t?kt.A:"object"==typeof t?(0,P.A)(t)?St(t[0],t[1]):pt(t):Ct(t)}var Rt=Ot},70805:function(t,e){function r(t){return function(e){return null==e?void 0:e[t]}}e.A=r},99902:function(t,e,r){r.d(e,{A:function(){return y}});var n=r(62062),a=r(83149),i=r(87809),s=r(64099),o=r(39857),l=r(42302),c=r(29959),h=1/0,d=o.A&&1/(0,c.A)(new o.A([,-0]))[1]==h?function(t){return new o.A(t)}:l.A,u=d,g=200;function p(t,e,r){var o=-1,l=a.A,h=t.length,d=!0,p=[],y=p;if(r)d=!1,l=i.A;else if(h>=g){var f=e?null:u(t);if(f)return(0,c.A)(f);d=!1,l=s.A,y=new n.A}else y=e?[]:p;t:while(++o<h){var b=t[o],x=e?e(b):b;if(b=r||0!==b?b:0,d&&x===x){var m=y.length;while(m--)if(y[m]===x)continue t;e&&y.push(x),p.push(b)}else l(y,x,r)||(y!==p&&y.push(x),p.push(b))}return p}var y=p},64099:function(t,e){function r(t,e){return t.has(e)}e.A=r},99922:function(t,e,r){var n=r(29008);function a(t){return"function"==typeof t?t:n.A}e.A=a},7819:function(t,e,r){r.d(e,{A:function(){return y}});var n=r(92049),a=r(86586),i=r(46632),s=500;function o(t){var e=(0,i.A)(t,(function(t){return r.size===s&&r.clear(),t})),r=e.cache;return e}var l=o,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,d=l((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,a){e.push(n?a.replace(h,"$1"):r||t)})),e})),u=d,g=r(28894);function p(t,e){return(0,n.A)(t)?t:(0,a.A)(t,e)?[t]:u((0,g.A)(t))}var y=p},19042:function(t,e,r){var n=r(33831),a=r(92411),i=r(27422);function s(t){return(0,n.A)(t,i.A,a.A)}e.A=s},83973:function(t,e,r){var n=r(33831),a=r(83511),i=r(55615);function s(t){return(0,n.A)(t,i.A,a.A)}e.A=s},92411:function(t,e,r){var n=r(2634),a=r(13153),i=Object.prototype,s=i.propertyIsEnumerable,o=Object.getOwnPropertySymbols,l=o?function(t){return null==t?[]:(t=Object(t),(0,n.A)(o(t),(function(e){return s.call(t,e)})))}:a.A;e.A=l},83511:function(t,e,r){var n=r(76912),a=r(15647),i=r(92411),s=r(13153),o=Object.getOwnPropertySymbols,l=o?function(t){var e=[];while(t)(0,n.A)(e,(0,i.A)(t)),t=(0,a.A)(t);return e}:s.A;e.A=l},85054:function(t,e,r){var n=r(7819),a=r(52274),i=r(92049),s=r(25353),o=r(5254),l=r(30901);function c(t,e,r){e=(0,n.A)(e,t);var c=-1,h=e.length,d=!1;while(++c<h){var u=(0,l.A)(e[c]);if(!(d=null!=t&&r(t,u)))break;t=t[u]}return d||++c!=h?d:(h=null==t?0:t.length,!!h&&(0,o.A)(h)&&(0,s.A)(u,h)&&((0,i.A)(t)||(0,a.A)(t)))}e.A=c},86586:function(t,e,r){var n=r(92049),a=r(61882),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function o(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,a.A)(t))||(s.test(t)||!i.test(t)||null!=e&&t in Object(e))}e.A=o},29959:function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}e.A=r},30901:function(t,e,r){var n=r(61882),a=1/0;function i(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-a?"-0":e}e.A=i},50053:function(t,e,r){var n=r(68675),a=4;function i(t){return(0,n.A)(t,a)}e.A=i},94092:function(t,e,r){var n=r(2634),a=r(51790),i=r(23958),s=r(92049);function o(t,e){var r=(0,s.A)(t)?n.A:a.A;return r(t,(0,i.A)(e,3))}e.A=o},8058:function(t,e,r){var n=r(72641),a=r(6240),i=r(99922),s=r(92049);function o(t,e){var r=(0,s.A)(t)?n.A:a.A;return r(t,(0,i.A)(e))}e.A=o},39188:function(t,e,r){function n(t,e){return null!=t&&e in Object(t)}r.d(e,{A:function(){return o}});var a=n,i=r(85054);function s(t,e){return null!=t&&(0,i.A)(t,e,a)}var o=s},61882:function(t,e,r){var n=r(88496),a=r(53098),i="[object Symbol]";function s(t){return"symbol"==typeof t||(0,a.A)(t)&&(0,n.A)(t)==i}e.A=s},69592:function(t,e){function r(t){return void 0===t}e.A=r},27422:function(t,e,r){var n=r(83607),a=r(69471),i=r(38446);function s(t){return(0,i.A)(t)?(0,n.A)(t):(0,a.A)(t)}e.A=s},42302:function(t,e){function r(){}e.A=r},89463:function(t,e,r){function n(t,e,r,n){var a=-1,i=null==t?0:t.length;n&&i&&(r=t[++a]);while(++a<i)r=e(r,t[a],a,t);return r}r.d(e,{A:function(){return d}});var a=n,i=r(6240),s=r(23958);function o(t,e,r,n,a){return a(t,(function(t,a,i){r=n?(n=!1,t):e(r,t,a,i)})),r}var l=o,c=r(92049);function h(t,e,r){var n=(0,c.A)(t)?a:l,o=arguments.length<3;return n(t,(0,s.A)(e,4),r,o,i.A)}var d=h},13153:function(t,e){function r(){return[]}e.A=r},28894:function(t,e,r){r.d(e,{A:function(){return g}});var n=r(241),a=r(45572),i=r(92049),s=r(61882),o=1/0,l=n.A?n.A.prototype:void 0,c=l?l.toString:void 0;function h(t){if("string"==typeof t)return t;if((0,i.A)(t))return(0,a.A)(t,h)+"";if((0,s.A)(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}var d=h;function u(t){return null==t?"":d(t)}var g=u},38207:function(t,e,r){r.d(e,{A:function(){return l}});var n=r(45572);function a(t,e){return(0,n.A)(e,(function(e){return t[e]}))}var i=a,s=r(27422);function o(t){return null==t?[]:i(t,(0,s.A)(t))}var l=o},65410:function(t,e,r){r.d(e,{diagram:function(){return ze}});var n=r(47588),a=r(33115),i=r(10483),s=r(8159),o=r(10009),l=r(50053),c=r(75937),h=r(25582),d=r(20007),u=r(697),g=function(){var t=(0,o.K2)((function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r}),"o"),e=[1,7],r=[1,13],n=[1,14],a=[1,15],i=[1,19],s=[1,16],l=[1,17],c=[1,18],h=[8,30],d=[8,21,28,29,30,31,32,40,44,47],u=[1,23],g=[1,24],p=[8,15,16,21,28,29,30,31,32,40,44,47],y=[8,15,16,21,27,28,29,30,31,32,40,44,47],f=[1,49],b={trace:(0,o.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,o.K2)((function(t,e,r,n,a,i,s){var o=i.length-1;switch(a){case 4:n.getLogger().debug("Rule: separator (NL) ");break;case 5:n.getLogger().debug("Rule: separator (Space) ");break;case 6:n.getLogger().debug("Rule: separator (EOF) ");break;case 7:n.getLogger().debug("Rule: hierarchy: ",i[o-1]),n.setHierarchy(i[o-1]);break;case 8:n.getLogger().debug("Stop NL ");break;case 9:n.getLogger().debug("Stop EOF ");break;case 10:n.getLogger().debug("Stop NL2 ");break;case 11:n.getLogger().debug("Stop EOF2 ");break;case 12:n.getLogger().debug("Rule: statement: ",i[o]),"number"===typeof i[o].length?this.$=i[o]:this.$=[i[o]];break;case 13:n.getLogger().debug("Rule: statement #2: ",i[o-1]),this.$=[i[o-1]].concat(i[o]);break;case 14:n.getLogger().debug("Rule: link: ",i[o],t),this.$={edgeTypeStr:i[o],label:""};break;case 15:n.getLogger().debug("Rule: LABEL link: ",i[o-3],i[o-1],i[o]),this.$={edgeTypeStr:i[o],label:i[o-1]};break;case 18:const e=parseInt(i[o]),r=n.generateId();this.$={id:r,type:"space",label:"",width:e,children:[]};break;case 23:n.getLogger().debug("Rule: (nodeStatement link node) ",i[o-2],i[o-1],i[o]," typestr: ",i[o-1].edgeTypeStr);const a=n.edgeStrToEdgeData(i[o-1].edgeTypeStr);this.$=[{id:i[o-2].id,label:i[o-2].label,type:i[o-2].type,directions:i[o-2].directions},{id:i[o-2].id+"-"+i[o].id,start:i[o-2].id,end:i[o].id,label:i[o-1].label,type:"edge",directions:i[o].directions,arrowTypeEnd:a,arrowTypeStart:"arrow_open"},{id:i[o].id,label:i[o].label,type:n.typeStr2Type(i[o].typeStr),directions:i[o].directions}];break;case 24:n.getLogger().debug("Rule: nodeStatement (abc88 node size) ",i[o-1],i[o]),this.$={id:i[o-1].id,label:i[o-1].label,type:n.typeStr2Type(i[o-1].typeStr),directions:i[o-1].directions,widthInColumns:parseInt(i[o],10)};break;case 25:n.getLogger().debug("Rule: nodeStatement (node) ",i[o]),this.$={id:i[o].id,label:i[o].label,type:n.typeStr2Type(i[o].typeStr),directions:i[o].directions,widthInColumns:1};break;case 26:n.getLogger().debug("APA123",this?this:"na"),n.getLogger().debug("COLUMNS: ",i[o]),this.$={type:"column-setting",columns:"auto"===i[o]?-1:parseInt(i[o])};break;case 27:n.getLogger().debug("Rule: id-block statement : ",i[o-2],i[o-1]);n.generateId();this.$={...i[o-2],type:"composite",children:i[o-1]};break;case 28:n.getLogger().debug("Rule: blockStatement : ",i[o-2],i[o-1],i[o]);const s=n.generateId();this.$={id:s,type:"composite",label:"",children:i[o-1]};break;case 29:n.getLogger().debug("Rule: node (NODE_ID separator): ",i[o]),this.$={id:i[o]};break;case 30:n.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",i[o-1],i[o]),this.$={id:i[o-1],label:i[o].label,typeStr:i[o].typeStr,directions:i[o].directions};break;case 31:n.getLogger().debug("Rule: dirList: ",i[o]),this.$=[i[o]];break;case 32:n.getLogger().debug("Rule: dirList: ",i[o-1],i[o]),this.$=[i[o-1]].concat(i[o]);break;case 33:n.getLogger().debug("Rule: nodeShapeNLabel: ",i[o-2],i[o-1],i[o]),this.$={typeStr:i[o-2]+i[o],label:i[o-1]};break;case 34:n.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",i[o-3],i[o-2]," #3:",i[o-1],i[o]),this.$={typeStr:i[o-3]+i[o],label:i[o-2],directions:i[o-1]};break;case 35:case 36:this.$={type:"classDef",id:i[o-1].trim(),css:i[o].trim()};break;case 37:this.$={type:"applyClass",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 38:this.$={type:"applyStyles",id:i[o-1].trim(),stylesStr:i[o].trim()};break}}),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:a,32:i,40:s,44:l,47:c},{8:[1,20]},t(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:e,28:r,29:n,31:a,32:i,40:s,44:l,47:c}),t(d,[2,16],{14:22,15:u,16:g}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(p,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,32:i},{11:27,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:a,32:i,40:s,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(y,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(h,[2,13]),{26:35,32:i},{32:[2,14]},{17:[1,36]},t(p,[2,24]),{11:37,13:4,14:22,15:u,16:g,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:a,32:i,40:s,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(y,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{37:[1,47]},{34:48,35:f},{15:[1,50]},t(d,[2,27]),t(y,[2,33]),{39:[1,51]},{34:52,35:f,39:[2,31]},{32:[2,15]},t(y,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,o.K2)((function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)}),"parseError"),parse:(0,o.K2)((function(t){var e=this,r=[0],n=[],a=[null],i=[],s=this.table,l="",c=0,h=0,d=0,u=2,g=1,p=i.slice.call(arguments,1),y=Object.create(this.lexer),f={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(f.yy[b]=this.yy[b]);y.setInput(t,f.yy),f.yy.lexer=y,f.yy.parser=this,"undefined"==typeof y.yylloc&&(y.yylloc={});var x=y.yylloc;i.push(x);var m=y.options&&y.options.ranges;function w(t){r.length=r.length-2*t,a.length=a.length-t,i.length=i.length-t}function _(){var t;return t=n.pop()||y.lex()||g,"number"!==typeof t&&(t instanceof Array&&(n=t,t=n.pop()),t=e.symbols_[t]||t),t}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K2)(w,"popStack"),(0,o.K2)(_,"lex");var L,v,S,k,A,E,D,N,C,O={};while(1){if(S=r[r.length-1],this.defaultActions[S]?k=this.defaultActions[S]:(null!==L&&"undefined"!=typeof L||(L=_()),k=s[S]&&s[S][L]),"undefined"===typeof k||!k.length||!k[0]){var R="";for(E in C=[],s[S])this.terminals_[E]&&E>u&&C.push("'"+this.terminals_[E]+"'");R=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[L]||L)+"'":"Parse error on line "+(c+1)+": Unexpected "+(L==g?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(R,{text:y.match,token:this.terminals_[L]||L,line:y.yylineno,loc:x,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+L);switch(k[0]){case 1:r.push(L),a.push(y.yytext),i.push(y.yylloc),r.push(k[1]),L=null,v?(L=v,v=null):(h=y.yyleng,l=y.yytext,c=y.yylineno,x=y.yylloc,d>0&&d--);break;case 2:if(D=this.productions_[k[1]][1],O.$=a[a.length-D],O._$={first_line:i[i.length-(D||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(D||1)].first_column,last_column:i[i.length-1].last_column},m&&(O._$.range=[i[i.length-(D||1)].range[0],i[i.length-1].range[1]]),A=this.performAction.apply(O,[l,h,c,f.yy,k[1],a,i].concat(p)),"undefined"!==typeof A)return A;D&&(r=r.slice(0,-1*D*2),a=a.slice(0,-1*D),i=i.slice(0,-1*D)),r.push(this.productions_[k[1]][0]),a.push(O.$),i.push(O._$),N=s[r[r.length-2]][r[r.length-1]],r.push(N);break;case 3:return!0}}return!0}),"parse")},x=function(){var t={EOF:1,parseError:(0,o.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,o.K2)((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,o.K2)((function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(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,o.K2)((function(t){var e=t.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var a=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,o.K2)((function(){return this._more=!0,this}),"more"),reject:(0,o.K2)((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,o.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,o.K2)((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,o.K2)((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,o.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,o.K2)((function(t,e){var r,n,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),n=t[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1}),"test_match"),next:(0,o.K2)((function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(r=this._input.match(this.rules[a[i]]),r&&(!e||r[0].length>e[0].length)){if(e=r,n=i,this.options.backtrack_lexer){if(t=this.test_match(r,a[i]),!1!==t)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,a[n]),!1!==t&&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,o.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,o.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,o.K2)((function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,o.K2)((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,o.K2)((function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,o.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,o.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,o.K2)((function(t,e,r,n){switch(r){case 0:return 10;case 1:return t.getLogger().debug("Found space-block"),31;case 2:return t.getLogger().debug("Found nl-block"),31;case 3:return t.getLogger().debug("Found space-block"),29;case 4:t.getLogger().debug(".",e.yytext);break;case 5:t.getLogger().debug("_",e.yytext);break;case 6:return 5;case 7:return e.yytext=-1,28;case 8:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 14:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 15:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 16:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),38;case 75:return t.getLogger().debug("Lex: NODE_ID",e.yytext),32;case 76:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 84:t.getLogger().debug("LEX POPPING"),this.popState();break;case 85:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 91:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 92:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 94:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 95:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 96:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 97:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 98:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 99:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 103:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 104:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 105:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}}),"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return t}();function m(){this.yy={}}return b.lexer=x,(0,o.K2)(m,"Parser"),m.prototype=b,b.Parser=m,new m}();g.parser=g;var p=g,y=new Map,f=[],b=new Map,x="color",m="fill",w="bgFill",_=",",L=(0,o.D7)(),v=new Map,S=(0,o.K2)((t=>o.Y2.sanitizeText(t,L)),"sanitizeText"),k=(0,o.K2)((function(t,e=""){let r=v.get(t);r||(r={id:t,styles:[],textStyles:[]},v.set(t,r)),void 0!==e&&null!==e&&e.split(_).forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(x).exec(t)){const t=e.replace(m,w),n=t.replace(x,m);r.textStyles.push(n)}r.styles.push(e)}))}),"addStyleClass"),A=(0,o.K2)((function(t,e=""){const r=y.get(t);void 0!==e&&null!==e&&(r.styles=e.split(_))}),"addStyle2Node"),E=(0,o.K2)((function(t,e){t.split(",").forEach((function(t){let r=y.get(t);if(void 0===r){const e=t.trim();r={id:e,type:"na",children:[]},y.set(e,r)}r.classes||(r.classes=[]),r.classes.push(e)}))}),"setCssClass"),D=(0,o.K2)(((t,e)=>{const r=t.flat(),n=[];for(const a of r)if(a.label&&(a.label=S(a.label)),"classDef"!==a.type)if("applyClass"!==a.type)if("applyStyles"!==a.type)if("column-setting"===a.type)e.columns=a.columns??-1;else if("edge"===a.type){const t=(b.get(a.id)??0)+1;b.set(a.id,t),a.id=t+"-"+a.id,f.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);const t=y.get(a.id);if(void 0===t?y.set(a.id,a):("na"!==a.type&&(t.type=a.type),a.label!==a.id&&(t.label=a.label)),a.children&&D(a.children,a),"space"===a.type){const t=a.width??1;for(let e=0;e<t;e++){const t=(0,l.A)(a);t.id=t.id+"-"+e,y.set(t.id,t),n.push(t)}}else void 0===t&&n.push(a)}else a?.stylesStr&&A(a.id,a?.stylesStr);else E(a.id,a?.styleClass??"");else k(a.id,a.css);e.children=n}),"populateBlockDatabase"),N=[],C={id:"root",type:"composite",children:[],columns:-1},O=(0,o.K2)((()=>{o.Rm.debug("Clear called"),(0,o.IU)(),C={id:"root",type:"composite",children:[],columns:-1},y=new Map([["root",C]]),N=[],v=new Map,f=[],b=new Map}),"clear");function R(t){switch(o.Rm.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return o.Rm.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function K(t){switch(o.Rm.debug("typeStr2Type",t),t){case"==":return"thick";default:return"normal"}}function T(t){switch(t.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}(0,o.K2)(R,"typeStr2Type"),(0,o.K2)(K,"edgeTypeStr2Type"),(0,o.K2)(T,"edgeStrToEdgeData");var $=0,I=(0,o.K2)((()=>($++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$)),"generateId"),j=(0,o.K2)((t=>{C.children=t,D(t,C),N=C.children}),"setHierarchy"),B=(0,o.K2)((t=>{const e=y.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1}),"getColumns"),z=(0,o.K2)((()=>[...y.values()]),"getBlocksFlat"),M=(0,o.K2)((()=>N||[]),"getBlocks"),P=(0,o.K2)((()=>f),"getEdges"),F=(0,o.K2)((t=>y.get(t)),"getBlock"),Y=(0,o.K2)((t=>{y.set(t.id,t)}),"setBlock"),W=(0,o.K2)((()=>console),"getLogger"),X=(0,o.K2)((function(){return v}),"getClasses"),U={getConfig:(0,o.K2)((()=>(0,o.zj)().block),"getConfig"),typeStr2Type:R,edgeTypeStr2Type:K,edgeStrToEdgeData:T,getLogger:W,getBlocksFlat:z,getBlocks:M,getEdges:P,setHierarchy:j,getBlock:F,setBlock:Y,getColumns:B,getClasses:X,clear:O,generateId:I},H=U,Z=(0,o.K2)(((t,e)=>{const r=c.A,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return h.A(n,a,i,e)}),"fade"),q=(0,o.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edg