UNPKG

@nodefony/monitoring-bundle

Version:
1 lines 102 kB
"use strict";(self["webpackChunk_nodefony_monitoring_bundle"]=self["webpackChunk_nodefony_monitoring_bundle"]||[]).push([[9732],{62334:function(t,e,n){n.d(e,{Zp:function(){return jr}});var r=n(8058),i=n(28894),o=0;function s(t){var e=++o;return(0,i.A)(t)+e}var a=s,c=n(39142),u=n(34098),d=n(74722),l=Math.ceil,h=Math.max;function f(t,e,n,r){var i=-1,o=h(l((e-t)/(n||1)),0),s=Array(o);while(o--)s[r?o:++i]=t,t+=n;return s}var p=f,g=n(6832),v=n(74342);function y(t){return function(e,n,r){return r&&"number"!=typeof r&&(0,g.A)(e,n,r)&&(n=r=void 0),e=(0,v.A)(e),void 0===n?(n=e,e=0):n=(0,v.A)(n),r=void 0===r?e<n?1:-1:(0,v.A)(r),p(e,n,r,t)}}var A=y,b=A(),m=b,w=n(697);class _{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return x(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&x(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){var t=[],e=this._sentinel,n=e._prev;while(n!==e)t.push(JSON.stringify(n,S)),n=n._prev;return"["+t.join(", ")+"]"}}function x(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function S(t,e){if("_next"!==t&&"_prev"!==t)return e}var k=c.A(1);function E(t,e){if(t.nodeCount()<=1)return[];var n=C(t,e||k),r=D(n.graph,n.buckets,n.zeroIdx);return u.A(d.A(r,(function(e){return t.outEdges(e.v,e.w)})))}function D(t,e,n){var r,i=[],o=e[e.length-1],s=e[0];while(t.nodeCount()){while(r=s.dequeue())T(t,e,n,r);while(r=o.dequeue())T(t,e,n,r);if(t.nodeCount())for(var a=e.length-2;a>0;--a)if(r=e[a].dequeue(),r){i=i.concat(T(t,e,n,r,!0));break}}return i}function T(t,e,n,i,o){var s=o?[]:void 0;return r.A(t.inEdges(i.v),(function(r){var i=t.edge(r),a=t.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,O(e,n,a)})),r.A(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,s=t.node(o);s["in"]-=i,O(e,n,s)})),t.removeNode(i.v),s}function C(t,e){var n=new w.T,i=0,o=0;r.A(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.A(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,s=e(t),a=r+s;n.setEdge(t.v,t.w,a),o=Math.max(o,n.node(t.v).out+=s),i=Math.max(i,n.node(t.w)["in"]+=s)}));var s=m(o+i+3).map((function(){return new _})),a=i+1;return r.A(n.nodes(),(function(t){O(s,a,n.node(t))})),{graph:n,buckets:s,zeroIdx:a}}function O(t,e,n){n.out?n["in"]?t[n.out-n["in"]+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function L(t){var e="greedy"===t.graph().acyclicer?E(t,n(t)):N(t);function n(t){return function(e){return t.edge(e).weight}}r.A(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,a("rev"))}))}function N(t){var e=[],n={},i={};function o(s){Object.prototype.hasOwnProperty.call(i,s)||(i[s]=!0,n[s]=!0,r.A(t.outEdges(s),(function(t){Object.prototype.hasOwnProperty.call(n,t.w)?e.push(t):o(t.w)})),delete n[s])}return r.A(t.nodes(),o),e}function j(t){r.A(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}var I=n(42837),$=n(99354),R=n(39188);function P(t,e){return(0,$.A)(t,e,(function(e,n){return(0,R.A)(t,n)}))}var K=P,B=n(76875),M=n(67525);function F(t){return(0,M.A)((0,B.A)(t,void 0,u.A),t+"")}var G=F,Y=G((function(t,e){return null==t?{}:K(t,e)})),z=Y,U=n(23068),H=n(72559);function V(t,e){return t>e}var W=V,X=n(29008);function q(t){return t&&t.length?(0,H.A)(t,X.A,W):void 0}var J=q,Z=n(26666),Q=n(52528),tt=n(79841),et=n(23958);function nt(t,e){var n={};return e=(0,et.A)(e,3),(0,tt.A)(t,(function(t,r,i){(0,Q.A)(n,r,e(t,r,i))})),n}var rt=nt,it=n(69592),ot=n(86452),st=n(48585),at=n(41917),ct=function(){return at.A.Date.now()},ut=ct;function dt(t,e,n,r){var i;do{i=a(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function lt(t){var e=(new w.T).setGraph(t.graph());return r.A(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.A(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function ht(t){var e=new w.T({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.A(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.A(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function ft(t,e){var n,r,i=t.x,o=t.y,s=e.x-i,a=e.y-o,c=t.width/2,u=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*c>Math.abs(s)*u?(a<0&&(u=-u),n=u*s/a,r=u):(s<0&&(c=-c),n=c,r=c*a/s),{x:i+n,y:o+r}}function pt(t){var e=d.A(m(At(t)+1),(function(){return[]}));return r.A(t.nodes(),(function(n){var r=t.node(n),i=r.rank;it.A(i)||(e[i][r.order]=n)})),e}function gt(t){var e=ot.A(d.A(t.nodes(),(function(e){return t.node(e).rank})));r.A(t.nodes(),(function(n){var r=t.node(n);st.A(r,"rank")&&(r.rank-=e)}))}function vt(t){var e=ot.A(d.A(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.A(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.A(n,(function(e,n){it.A(e)&&n%o!==0?--i:i&&r.A(e,(function(e){t.node(e).rank+=i}))}))}function yt(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),dt(t,"border",i,e)}function At(t){return J(d.A(t.nodes(),(function(e){var n=t.node(e).rank;if(!it.A(n))return n})))}function bt(t,e){var n={lhs:[],rhs:[]};return r.A(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function mt(t,e){var n=ut();try{return e()}finally{console.log(t+" time: "+(ut()-n)+"ms")}}function wt(t,e){return e()}function _t(t){function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.A(i,e),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,a=o.maxRank+1;s<a;++s)xt(t,"borderLeft","_bl",n,o,s),xt(t,"borderRight","_br",n,o,s)}}r.A(t.children(),e)}function xt(t,e,n,r,i,o){var s={width:0,height:0,rank:o,borderType:e},a=i[e][o-1],c=dt(t,"border",s,n);i[e][o]=c,t.setParent(c,r),a&&t.setEdge(a,c,{weight:1})}function St(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Et(t)}function kt(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||Tt(t),"lr"!==e&&"rl"!==e||(Ot(t),Et(t))}function Et(t){r.A(t.nodes(),(function(e){Dt(t.node(e))})),r.A(t.edges(),(function(e){Dt(t.edge(e))}))}function Dt(t){var e=t.width;t.width=t.height,t.height=e}function Tt(t){r.A(t.nodes(),(function(e){Ct(t.node(e))})),r.A(t.edges(),(function(e){var n=t.edge(e);r.A(n.points,Ct),Object.prototype.hasOwnProperty.call(n,"y")&&Ct(n)}))}function Ct(t){t.y=-t.y}function Ot(t){r.A(t.nodes(),(function(e){Lt(t.node(e))})),r.A(t.edges(),(function(e){var n=t.edge(e);r.A(n.points,Lt),Object.prototype.hasOwnProperty.call(n,"x")&&Lt(n)}))}function Lt(t){var e=t.x;t.x=t.y,t.y=e}function Nt(t){t.graph().dummyChains=[],r.A(t.edges(),(function(e){jt(t,e)}))}function jt(t,e){var n=e.v,r=t.node(n).rank,i=e.w,o=t.node(i).rank,s=e.name,a=t.edge(e),c=a.labelRank;if(o!==r+1){t.removeEdge(e);var u,d,l=void 0;for(d=0,++r;r<o;++d,++r)a.points=[],l={width:0,height:0,edgeLabel:a,edgeObj:e,rank:r},u=dt(t,"edge",l,"_d"),r===c&&(l.width=a.width,l.height=a.height,l.dummy="edge-label",l.labelpos=a.labelpos),t.setEdge(n,u,{weight:a.weight},s),0===d&&t.graph().dummyChains.push(u),n=u;t.setEdge(n,i,{weight:a.weight},s)}}function It(t){r.A(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;t.setEdge(r.edgeObj,i);while(r.dummy)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}var $t=n(36224);function Rt(t,e){return t&&t.length?(0,H.A)(t,(0,et.A)(e,2),$t.A):void 0}var Pt=Rt;function Kt(t){var e={};function n(r){var i=t.node(r);if(Object.prototype.hasOwnProperty.call(e,r))return i.rank;e[r]=!0;var o=ot.A(d.A(t.outEdges(r),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&void 0!==o&&null!==o||(o=0),i.rank=o}r.A(t.sources(),n)}function Bt(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function Mt(t){var e,n,r=new w.T({directed:!1}),i=t.nodes()[0],o=t.nodeCount();r.setNode(i,{});while(Ft(r,t)<o)e=Gt(r,t),n=r.hasNode(e.v)?Bt(t,e):-Bt(t,e),Yt(r,t,n);return r}function Ft(t,e){function n(i){r.A(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||Bt(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))}return r.A(t.nodes(),n),t.nodeCount()}function Gt(t,e){return Pt(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return Bt(e,n)}))}function Yt(t,e,n){r.A(t.nodes(),(function(t){e.node(t).rank+=n}))}var zt=n(16145),Ut=n(94092);c.A(1);c.A(1);var Ht=n(69471),Vt=n(9779),Wt=n(38446),Xt=n(9703),qt=n(70805),Jt=(0,qt.A)("length"),Zt=Jt,Qt="\\ud800-\\udfff",te="\\u0300-\\u036f",ee="\\ufe20-\\ufe2f",ne="\\u20d0-\\u20ff",re=te+ee+ne,ie="\\ufe0e\\ufe0f",oe="\\u200d",se=RegExp("["+oe+Qt+re+ie+"]");function ae(t){return se.test(t)}var ce=ae,ue="\\ud800-\\udfff",de="\\u0300-\\u036f",le="\\ufe20-\\ufe2f",he="\\u20d0-\\u20ff",fe=de+le+he,pe="\\ufe0e\\ufe0f",ge="["+ue+"]",ve="["+fe+"]",ye="\\ud83c[\\udffb-\\udfff]",Ae="(?:"+ve+"|"+ye+")",be="[^"+ue+"]",me="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="\\u200d",xe=Ae+"?",Se="["+pe+"]?",ke="(?:"+_e+"(?:"+[be,me,we].join("|")+")"+Se+xe+")*",Ee=Se+xe+ke,De="(?:"+[be+ve+"?",ve,me,we,ge].join("|")+")",Te=RegExp(ye+"(?="+ye+")|"+De+Ee,"g");function Ce(t){var e=Te.lastIndex=0;while(Te.test(t))++e;return e}var Oe=Ce;function Le(t){return ce(t)?Oe(t):Zt(t)}var Ne=Le,je="[object Map]",Ie="[object Set]";function $e(t){if(null==t)return 0;if((0,Wt.A)(t))return(0,Xt.A)(t)?Ne(t):t.length;var e=(0,Vt.A)(t);return e==je||e==Ie?t.size:(0,Ht.A)(t).length}var Re=$e;function Pe(t){var e={},n={},i=[];function o(s){if(Object.prototype.hasOwnProperty.call(n,s))throw new Ke;Object.prototype.hasOwnProperty.call(e,s)||(n[s]=!0,e[s]=!0,r.A(t.predecessors(s),o),delete n[s],i.push(s))}if(r.A(t.sinks(),o),Re(e)!==t.nodeCount())throw new Ke;return i}function Ke(){}Pe.CycleException=Ke,Ke.prototype=new Error;var Be=n(92049);function Me(t,e,n){Be.A(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.A(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);Fe(t,e,"post"===n,s,i,o)})),o}function Fe(t,e,n,i,o,s){Object.prototype.hasOwnProperty.call(i,e)||(i[e]=!0,n||s.push(e),r.A(o(e),(function(e){Fe(t,e,n,i,o,s)})),n&&s.push(e))}function Ge(t,e){return Me(t,e,"post")}function Ye(t,e){return Me(t,e,"pre")}n(37981);function ze(t){t=lt(t),Kt(t);var e,n,r=Mt(t);We(r),Ue(r,t);while(e=qe(r))n=Je(r,t,e),Ze(r,t,e,n)}function Ue(t,e){var n=Ge(t,t.nodes());n=n.slice(0,n.length-1),r.A(n,(function(n){He(t,e,n)}))}function He(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=Ve(t,e,n)}function Ve(t,e,n){var i=t.node(n),o=i.parent,s=!0,a=e.edge(n,o),c=0;return a||(s=!1,a=e.edge(o,n)),c=a.weight,r.A(e.nodeEdges(n),(function(r){var i=r.v===n,a=i?r.w:r.v;if(a!==o){var u=i===s,d=e.edge(r).weight;if(c+=u?d:-d,tn(t,n,a)){var l=t.edge(n,a).cutvalue;c+=u?-l:l}}})),c}function We(t,e){arguments.length<2&&(e=t.nodes()[0]),Xe(t,{},1,e)}function Xe(t,e,n,i,o){var s=n,a=t.node(i);return e[i]=!0,r.A(t.neighbors(i),(function(r){Object.prototype.hasOwnProperty.call(e,r)||(n=Xe(t,e,n,r,i))})),a.low=s,a.lim=n++,o?a.parent=o:delete a.parent,n}function qe(t){return zt.A(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function Je(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var o=t.node(r),s=t.node(i),a=o,c=!1;o.lim>s.lim&&(a=s,c=!0);var u=Ut.A(e.edges(),(function(e){return c===en(t,t.node(e.v),a)&&c!==en(t,t.node(e.w),a)}));return Pt(u,(function(t){return Bt(e,t)}))}function Ze(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),We(t),Ue(t,e),Qe(t,e)}function Qe(t,e){var n=zt.A(t.nodes(),(function(t){return!e.node(t).parent})),i=Ye(t,n);i=i.slice(1),r.A(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}function tn(t,e,n){return t.hasEdge(e,n)}function en(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}function nn(t){switch(t.graph().ranker){case"network-simplex":sn(t);break;case"tight-tree":on(t);break;case"longest-path":rn(t);break;default:sn(t)}}ze.initLowLimValues=We,ze.initCutValues=Ue,ze.calcCutValue=Ve,ze.leaveEdge=qe,ze.enterEdge=Je,ze.exchangeEdges=Ze;var rn=Kt;function on(t){Kt(t),Mt(t)}function sn(t){ze(t)}var an=n(38207),cn=n(89463);function un(t){var e=dt(t,"root",{},"_root"),n=ln(t),i=J(an.A(n))-1,o=2*i+1;t.graph().nestingRoot=e,r.A(t.edges(),(function(e){t.edge(e).minlen*=o}));var s=hn(t)+1;r.A(t.children(),(function(r){dn(t,e,o,s,i,n,r)})),t.graph().nodeRankFactor=o}function dn(t,e,n,i,o,s,a){var c=t.children(a);if(c.length){var u=yt(t,"_bt"),d=yt(t,"_bb"),l=t.node(a);t.setParent(u,a),l.borderTop=u,t.setParent(d,a),l.borderBottom=d,r.A(c,(function(r){dn(t,e,n,i,o,s,r);var c=t.node(r),l=c.borderTop?c.borderTop:r,h=c.borderBottom?c.borderBottom:r,f=c.borderTop?i:2*i,p=l!==h?1:o-s[a]+1;t.setEdge(u,l,{weight:f,minlen:p,nestingEdge:!0}),t.setEdge(h,d,{weight:f,minlen:p,nestingEdge:!0})})),t.parent(a)||t.setEdge(e,u,{weight:0,minlen:o+s[a]})}else a!==e&&t.setEdge(e,a,{weight:0,minlen:n})}function ln(t){var e={};function n(i,o){var s=t.children(i);s&&s.length&&r.A(s,(function(t){n(t,o+1)})),e[i]=o}return r.A(t.children(),(function(t){n(t,1)})),e}function hn(t){return cn.A(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function fn(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.A(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}var pn=n(68675),gn=1,vn=4;function yn(t){return(0,pn.A)(t,gn|vn)}var An=yn;function bn(t,e,n){var i,o={};r.A(n,(function(n){var r,s,a=t.parent(n);while(a){if(r=t.parent(a),r?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void e.setEdge(s,a);a=r}}))}function mn(t,e,n){var i=wn(t),o=new w.T({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.A(t.nodes(),(function(s){var a=t.node(s),c=t.parent(s);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(o.setNode(s),o.setParent(s,c||i),r.A(t[n](s),(function(e){var n=e.v===s?e.w:e.v,r=o.edge(n,s),i=it.A(r)?0:r.weight;o.setEdge(n,s,{weight:t.edge(e).weight+i})})),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(s,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),o}function wn(t){var e;while(t.hasNode(e=a("_root")));return e}var _n=n(52851);function xn(t,e,n){var r=-1,i=t.length,o=e.length,s={};while(++r<i){var a=r<o?e[r]:void 0;n(s,t[r],a)}return s}var Sn=xn;function kn(t,e){return Sn(t||[],e||[],_n.A)}var En=kn,Dn=n(13588),Tn=n(45572),Cn=n(66318),On=n(52568);function Ln(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}var Nn=Ln,jn=n(52789),In=n(61882);function $n(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t===t,o=(0,In.A)(t),s=void 0!==e,a=null===e,c=e===e,u=(0,In.A)(e);if(!a&&!u&&!o&&t>e||o&&s&&c&&!a&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!c)return-1}return 0}var Rn=$n;function Pn(t,e,n){var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;while(++r<s){var c=Rn(i[r],o[r]);if(c){if(r>=a)return c;var u=n[r];return c*("desc"==u?-1:1)}}return t.index-e.index}var Kn=Pn;function Bn(t,e,n){e=e.length?(0,Tn.A)(e,(function(t){return(0,Be.A)(t)?function(e){return(0,Cn.A)(e,1===t.length?t[0]:t)}:t})):[X.A];var r=-1;e=(0,Tn.A)(e,(0,jn.A)(et.A));var i=(0,On.A)(t,(function(t,n,i){var o=(0,Tn.A)(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return Nn(i,(function(t,e){return Kn(t,e,n)}))}var Mn=Bn,Fn=n(24326),Gn=(0,Fn.A)((function(t,e){if(null==t)return[];var n=e.length;return n>1&&(0,g.A)(t,e[0],e[1])?e=[]:n>2&&(0,g.A)(e[0],e[1],e[2])&&(e=[e[0]]),Mn(t,(0,Dn.A)(e,1),[])})),Yn=Gn;function zn(t,e){for(var n=0,r=1;r<e.length;++r)n+=Un(t,e[r-1],e[r]);return n}function Un(t,e,n){var i=En(n,d.A(n,(function(t,e){return e}))),o=u.A(d.A(e,(function(e){return Yn(d.A(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")}))),s=1;while(s<n.length)s<<=1;var a=2*s-1;s-=1;var c=d.A(new Array(a),(function(){return 0})),l=0;return r.A(o.forEach((function(t){var e=t.pos+s;c[e]+=t.weight;var n=0;while(e>0)e%2&&(n+=c[e+1]),e=e-1>>1,c[e]+=t.weight;l+=t.weight*n}))),l}function Hn(t){var e={},n=Ut.A(t.nodes(),(function(e){return!t.children(e).length})),i=J(d.A(n,(function(e){return t.node(e).rank}))),o=d.A(m(i+1),(function(){return[]}));function s(n){if(!st.A(e,n)){e[n]=!0;var i=t.node(n);o[i.rank].push(n),r.A(t.successors(n),s)}}var a=Yn(n,(function(e){return t.node(e).rank}));return r.A(a,s),o}function Vn(t,e){return d.A(e,(function(e){var n=t.inEdges(e);if(n.length){var r=cn.A(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}}))}function Wn(t,e){var n={};r.A(t,(function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};it.A(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)})),r.A(e.edges(),(function(t){var e=n[t.v],r=n[t.w];it.A(e)||it.A(r)||(r.indegree++,e.out.push(n[t.w]))}));var i=Ut.A(n,(function(t){return!t.indegree}));return Xn(i)}function Xn(t){var e=[];function n(t){return function(e){e.merged||(it.A(e.barycenter)||it.A(t.barycenter)||e.barycenter>=t.barycenter)&&qn(t,e)}}function i(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var o=t.pop();e.push(o),r.A(o["in"].reverse(),n(o)),r.A(o.out,i(o))}return d.A(Ut.A(e,(function(t){return!t.merged})),(function(t){return z(t,["vs","i","barycenter","weight"])}))}function qn(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}function Jn(t,e){var n=bt(t,(function(t){return Object.prototype.hasOwnProperty.call(t,"barycenter")})),i=n.lhs,o=Yn(n.rhs,(function(t){return-t.i})),s=[],a=0,c=0,d=0;i.sort(Qn(!!e)),d=Zn(s,o,d),r.A(i,(function(t){d+=t.vs.length,s.push(t.vs),a+=t.barycenter*t.weight,c+=t.weight,d=Zn(s,o,d)}));var l={vs:u.A(s)};return c&&(l.barycenter=a/c,l.weight=c),l}function Zn(t,e,n){var r;while(e.length&&(r=Z.A(e)).i<=n)e.pop(),t.push(r.vs),n++;return n}function Qn(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}function tr(t,e,n,i){var o=t.children(e),s=t.node(e),a=s?s.borderLeft:void 0,c=s?s.borderRight:void 0,d={};a&&(o=Ut.A(o,(function(t){return t!==a&&t!==c})));var l=Vn(t,o);r.A(l,(function(e){if(t.children(e.v).length){var r=tr(t,e.v,n,i);d[e.v]=r,Object.prototype.hasOwnProperty.call(r,"barycenter")&&nr(e,r)}}));var h=Wn(l,n);er(h,d);var f=Jn(h,i);if(a&&(f.vs=u.A([a,f.vs,c]),t.predecessors(a).length)){var p=t.node(t.predecessors(a)[0]),g=t.node(t.predecessors(c)[0]);Object.prototype.hasOwnProperty.call(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+g.order)/(f.weight+2),f.weight+=2}return f}function er(t,e){r.A(t,(function(t){t.vs=u.A(t.vs.map((function(t){return e[t]?e[t].vs:t})))}))}function nr(t,e){it.A(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}function rr(t){var e=At(t),n=ir(t,m(1,e+1),"inEdges"),r=ir(t,m(e-1,-1,-1),"outEdges"),i=Hn(t);sr(t,i);for(var o,s=Number.POSITIVE_INFINITY,a=0,c=0;c<4;++a,++c){or(a%2?n:r,a%4>=2),i=pt(t);var u=zn(t,i);u<s&&(c=0,o=An(i),s=u)}sr(t,o)}function ir(t,e,n){return d.A(e,(function(e){return mn(t,e,n)}))}function or(t,e){var n=new w.T;r.A(t,(function(t){var i=t.graph().root,o=tr(t,i,n,e);r.A(o.vs,(function(e,n){t.node(e).order=n})),bn(t,n,o.vs)}))}function sr(t,e){r.A(e,(function(e){r.A(e,(function(e,n){t.node(e).order=n}))}))}function ar(t){var e=ur(t);r.A(t.graph().dummyChains,(function(n){var r=t.node(n),i=r.edgeObj,o=cr(t,e,i.v,i.w),s=o.path,a=o.lca,c=0,u=s[c],d=!0;while(n!==i.w){if(r=t.node(n),d){while((u=s[c])!==a&&t.node(u).maxRank<r.rank)c++;u===a&&(d=!1)}if(!d){while(c<s.length-1&&t.node(u=s[c+1]).minRank<=r.rank)c++;u=s[c]}t.setParent(n,u),n=t.successors(n)[0]}}))}function cr(t,e,n,r){var i,o,s=[],a=[],c=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),s.push(i)}while(i&&(e[i].low>c||u>e[i].lim));o=i,i=r;while((i=t.parent(i))!==o)a.push(i);return{path:s.concat(a.reverse()),lca:o}}function ur(t){var e={},n=0;function i(o){var s=n;r.A(t.children(o),i),e[o]={low:s,lim:n++}}return r.A(t.children(),i),e}var dr=n(99922);function lr(t,e){return t&&(0,tt.A)(t,(0,dr.A)(e))}var hr=lr,fr=n(4574),pr=n(55615);function gr(t,e){return null==t?t:(0,fr.A)(t,(0,dr.A)(e),pr.A)}var vr=gr;function yr(t,e){var n={};function i(e,i){var o=0,s=0,a=e.length,c=Z.A(i);return r.A(i,(function(e,u){var d=br(t,e),l=d?t.node(d).order:a;(d||e===c)&&(r.A(i.slice(s,u+1),(function(e){r.A(t.predecessors(e),(function(r){var i=t.node(r),s=i.order;!(s<o||l<s)||i.dummy&&t.node(e).dummy||mr(n,r,e)}))})),s=u+1,o=l)})),i}return cn.A(e,i),n}function Ar(t,e){var n={};function i(e,i,o,s,a){var c;r.A(m(i,o),(function(i){c=e[i],t.node(c).dummy&&r.A(t.predecessors(c),(function(e){var r=t.node(e);r.dummy&&(r.order<s||r.order>a)&&mr(n,e,c)}))}))}function o(e,n){var o,s=-1,a=0;return r.A(n,(function(r,c){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(o=t.node(u[0]).order,i(n,a,c,s,o),a=c,s=o)}i(n,a,n.length,o,e.length)})),n}return cn.A(e,o),n}function br(t,e){if(t.node(e).dummy)return zt.A(t.predecessors(e),(function(e){return t.node(e).dummy}))}function mr(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function wr(t,e,n){if(e>n){var r=e;e=n,n=r}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],n)}function _r(t,e,n,i){var o={},s={},a={};return r.A(e,(function(t){r.A(t,(function(t,e){o[t]=t,s[t]=t,a[t]=e}))})),r.A(e,(function(t){var e=-1;r.A(t,(function(t){var r=i(t);if(r.length){r=Yn(r,(function(t){return a[t]}));for(var c=(r.length-1)/2,u=Math.floor(c),d=Math.ceil(c);u<=d;++u){var l=r[u];s[t]===t&&e<a[l]&&!wr(n,t,l)&&(s[l]=t,s[t]=o[t]=o[l],e=a[l])}}}))})),{root:o,align:s}}function xr(t,e,n,i,o){var s={},a=Sr(t,e,n,o),c=o?"borderLeft":"borderRight";function u(t,e){var n=a.nodes(),r=n.pop(),i={};while(r)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}function d(t){s[t]=a.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+a.edge(e))}),0)}function l(e){var n=a.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-a.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[e]=Math.max(s[e],n))}return u(d,a.predecessors.bind(a)),u(l,a.successors.bind(a)),r.A(i,(function(t){s[t]=s[n[t]]})),s}function Sr(t,e,n,i){var o=new w.T,s=t.graph(),a=Cr(s.nodesep,s.edgesep,i);return r.A(e,(function(e){var i;r.A(e,(function(e){var r=n[e];if(o.setNode(r),i){var s=n[i],c=o.edge(s,r);o.setEdge(s,r,Math.max(a(t,e,i),c||0))}i=e}))})),o}function kr(t,e){return Pt(an.A(e),(function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return vr(e,(function(e,i){var o=Or(t,i)/2;n=Math.max(e+o,n),r=Math.min(e-o,r)})),n-r}))}function Er(t,e){var n=an.A(e),i=ot.A(n),o=J(n);r.A(["u","d"],(function(n){r.A(["l","r"],(function(r){var s,a=n+r,c=t[a];if(c!==e){var u=an.A(c);s="l"===r?i-ot.A(u):o-J(u),s&&(t[a]=rt(c,(function(t){return t+s})))}}))}))}function Dr(t,e){return rt(t.ul,(function(n,r){if(e)return t[e.toLowerCase()][r];var i=Yn(d.A(t,r));return(i[1]+i[2])/2}))}function Tr(t){var e,n=pt(t),i=I.A(yr(t,n),Ar(t,n)),o={};r.A(["u","d"],(function(s){e="u"===s?n:an.A(n).reverse(),r.A(["l","r"],(function(n){"r"===n&&(e=d.A(e,(function(t){return an.A(t).reverse()})));var r=("u"===s?t.predecessors:t.successors).bind(t),a=_r(t,e,i,r),c=xr(t,e,a.root,a.align,"r"===n);"r"===n&&(c=rt(c,(function(t){return-t}))),o[s+n]=c}))}));var s=kr(t,o);return Er(o,s),Dr(o,t.graph().align)}function Cr(t,e,n){return function(r,i,o){var s,a=r.node(i),c=r.node(o),u=0;if(u+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":s=-a.width/2;break;case"r":s=a.width/2;break}if(s&&(u+=n?s:-s),s=0,u+=(a.dummy?e:t)/2,u+=(c.dummy?e:t)/2,u+=c.width/2,Object.prototype.hasOwnProperty.call(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;break}return s&&(u+=n?s:-s),s=0,u}}function Or(t,e){return t.node(e).width}function Lr(t){t=ht(t),Nr(t),hr(Tr(t),(function(e,n){t.node(n).x=e}))}function Nr(t){var e=pt(t),n=t.graph().ranksep,i=0;r.A(e,(function(e){var o=J(d.A(e,(function(e){return t.node(e).height})));r.A(e,(function(e){t.node(e).y=i+o/2})),i+=o+n}))}function jr(t,e){var n=e&&e.debugTiming?mt:wt;n("layout",(()=>{var e=n(" buildLayoutGraph",(()=>zr(t)));n(" runLayout",(()=>Ir(e,n))),n(" updateInputGraph",(()=>$r(t,e)))}))}function Ir(t,e){e(" makeSpaceForEdgeLabels",(()=>Ur(t))),e(" removeSelfEdges",(()=>ti(t))),e(" acyclic",(()=>L(t))),e(" nestingGraph.run",(()=>un(t))),e(" rank",(()=>nn(ht(t)))),e(" injectEdgeLabelProxies",(()=>Hr(t))),e(" removeEmptyRanks",(()=>vt(t))),e(" nestingGraph.cleanup",(()=>fn(t))),e(" normalizeRanks",(()=>gt(t))),e(" assignRankMinMax",(()=>Vr(t))),e(" removeEdgeLabelProxies",(()=>Wr(t))),e(" normalize.run",(()=>Nt(t))),e(" parentDummyChains",(()=>ar(t))),e(" addBorderSegments",(()=>_t(t))),e(" order",(()=>rr(t))),e(" insertSelfEdges",(()=>ei(t))),e(" adjustCoordinateSystem",(()=>St(t))),e(" position",(()=>Lr(t))),e(" positionSelfEdges",(()=>ni(t))),e(" removeBorderNodes",(()=>Qr(t))),e(" normalize.undo",(()=>It(t))),e(" fixupEdgeLabelCoords",(()=>Jr(t))),e(" undoCoordinateSystem",(()=>kt(t))),e(" translateGraph",(()=>Xr(t))),e(" assignNodeIntersects",(()=>qr(t))),e(" reversePoints",(()=>Zr(t))),e(" acyclic.undo",(()=>j(t)))}function $r(t,e){r.A(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.A(t.edges(),(function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(r.x=i.x,r.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var Rr=["nodesep","edgesep","ranksep","marginx","marginy"],Pr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Kr=["acyclicer","ranker","rankdir","align"],Br=["width","height"],Mr={width:0,height:0},Fr=["minlen","weight","width","height","labeloffset"],Gr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Yr=["labelpos"];function zr(t){var e=new w.T({multigraph:!0,compound:!0}),n=ii(t.graph());return e.setGraph(I.A({},Pr,ri(n,Rr),z(n,Kr))),r.A(t.nodes(),(function(n){var r=ii(t.node(n));e.setNode(n,U.A(ri(r,Br),Mr)),e.setParent(n,t.parent(n))})),r.A(t.edges(),(function(n){var r=ii(t.edge(n));e.setEdge(n,I.A({},Gr,ri(r,Fr),z(r,Yr)))})),e}function Ur(t){var e=t.graph();e.ranksep/=2,r.A(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}function Hr(t){r.A(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),o={rank:(i.rank-r.rank)/2+r.rank,e:e};dt(t,"edge-proxy",o,"_ep")}}))}function Vr(t){var e=0;r.A(t.nodes(),(function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=J(e,r.maxRank))})),t.graph().maxRank=e}function Wr(t){r.A(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}function Xr(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,c=s.marginy||0;function u(t){var r=t.x,s=t.y,a=t.width,c=t.height;e=Math.min(e,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-c/2),o=Math.max(o,s+c/2)}r.A(t.nodes(),(function(e){u(t.node(e))})),r.A(t.edges(),(function(e){var n=t.edge(e);Object.prototype.hasOwnProperty.call(n,"x")&&u(n)})),e-=a,i-=c,r.A(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.A(t.edges(),(function(n){var o=t.edge(n);r.A(o.points,(function(t){t.x-=e,t.y-=i})),Object.prototype.hasOwnProperty.call(o,"x")&&(o.x-=e),Object.prototype.hasOwnProperty.call(o,"y")&&(o.y-=i)})),s.width=n-e+a,s.height=o-i+c}function qr(t){r.A(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),s=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(ft(o,n)),i.points.push(ft(s,r))}))}function Jr(t){r.A(t.edges(),(function(e){var n=t.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}))}function Zr(t){r.A(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}function Qr(t){r.A(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),o=t.node(Z.A(n.borderLeft)),s=t.node(Z.A(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}})),r.A(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}function ti(t){r.A(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}function ei(t){var e=pt(t);r.A(e,(function(e){var n=0;r.A(e,(function(e,i){var o=t.node(e);o.order=i+n,r.A(o.selfEdges,(function(e){dt(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}function ni(t){r.A(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}function ri(t,e){return rt(z(t,e),Number)}function ii(t){var e={};return r.A(t,(function(t,n){e[n.toLowerCase()]=t})),e}},37981:function(t,e,n){n.d(e,{T:function(){return w}});var r=n(39142),i=n(89610),o=n(27422),s=n(94092),a=n(66401),c=n(8058),u=n(69592),d=n(13588),l=n(24326),h=n(99902),f=n(53533),p=(0,l.A)((function(t){return(0,h.A)((0,d.A)(t,1,f.A,!0))})),g=p,v=n(38207),y=n(89463),A="\0",b="\0",m="";class w{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=r.A(void 0),this._defaultEdgeLabelFn=r.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[b]={}),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 i.A(t)||(t=r.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return o.A(this._nodes)}sources(){var t=this;return s.A(this.nodes(),(function(e){return a.A(t._in[e])}))}sinks(){var t=this;return s.A(this.nodes(),(function(e){return a.A(t._out[e])}))}setNodes(t,e){var n=arguments,r=this;return c.A(t,(function(t){n.length>1?r.setNode(t,e):r.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]=b,this._children[t]={},this._children[b][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],c.A(this.children(t),(t=>{this.setParent(t)})),delete this._children[t]),c.A(o.A(this._in[t]),e),delete this._in[t],delete this._preds[t],c.A(o.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(u.A(e))e=b;else{e+="";for(var n=e;!u.A(n);n=this.parent(n))if(n===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!==b)return e}}children(t){if(u.A(t)&&(t=b),this._isCompound){var e=this._children[t];if(e)return o.A(e)}else{if(t===b)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return o.A(e)}successors(t){var e=this._sucs[t];if(e)return o.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return g(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 n=this;c.A(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),c.A(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};function i(t){var o=n.parent(t);return void 0===o||e.hasNode(o)?(r[t]=o,o):o in r?r[o]:i(o)}return this._isCompound&&c.A(e.nodes(),(function(t){e.setParent(t,i(t))})),e}setDefaultEdgeLabel(t){return i.A(t)||(t=r.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return v.A(this._edgeObjs)}setPath(t,e){var n=this,r=arguments;return y.A(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this}setEdge(){var t,e,n,r,i=!1,o=arguments[0];"object"===typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(r=arguments[1],i=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,u.A(n)||(n=""+n);var s=S(this._isDirected,t,e,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return i&&(this._edgeLabels[s]=r),this;if(!u.A(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=i?r:this._defaultEdgeLabelFn(t,e,n);var a=k(this._isDirected,t,e,n);return t=a.v,e=a.w,Object.freeze(a),this._edgeObjs[s]=a,_(this._preds[e],t),_(this._sucs[t],e),this._in[e][s]=a,this._out[t][s]=a,this._edgeCount++,this}edge(t,e,n){var r=1===arguments.length?E(this._isDirected,arguments[0]):S(this._isDirected,t,e,n);return this._edgeLabels[r]}hasEdge(t,e,n){var r=1===arguments.length?E(this._isDirected,arguments[0]):S(this._isDirected,t,e,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,n){var r=1===arguments.length?E(this._isDirected,arguments[0]):S(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],x(this._preds[e],t),x(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var n=this._in[t];if(n){var r=v.A(n);return e?s.A(r,(function(t){return t.v===e})):r}}outEdges(t,e){var n=this._out[t];if(n){var r=v.A(n);return e?s.A(r,(function(t){return t.w===e})):r}}nodeEdges(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}}function _(t,e){t[e]?t[e]++:t[e]=1}function x(t,e){--t[e]||delete t[e]}function S(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}return i+m+o+m+(u.A(r)?A:r)}function k(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function E(t,e){return S(t,e.v,e.w,e.name)}w.prototype._nodeCount=0,w.prototype._edgeCount=0},697:function(t,e,n){n.d(e,{T:function(){return r.T}});var r=n(37981)},62062:function(t,e,n){n.d(e,{A:function(){return d}});var r=n(29471),i="__lodash_hash_undefined__";function o(t){return this.__data__.set(t,i),this}var s=o;function a(t){return this.__data__.has(t)}var c=a;function u(t){var e=-1,n=null==t?0:t.length;this.__data__=new r.A;while(++e<n)this.add(t[e])}u.prototype.add=u.prototype.push=s,u.prototype.has=c;var d=u},72641:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}e.A=n},2634:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}e.A=n},83149:function(t,e,n){var r=n(60818);function i(t,e){var n=null==t?0:t.length;return!!n&&(0,r.A)(t,e,0)>-1}e.A=i},87809:function(t,e){function n(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}e.A=n},45572:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}e.A=n},76912:function(t,e){function n(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}e.A=n},63736:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}e.A=n},68675:function(t,e,n){n.d(e,{A:function(){return re}});var r=n(11754),i=n(72641),o=n(52851),s=n(22031),a=n(27422);function c(t,e){return t&&(0,s.A)(e,(0,a.A)(e),t)}var u=c,d=n(55615);function l(t,e){return t&&(0,s.A)(e,(0,d.A)(e),t)}var h=l,f=n(80154),p=n(39759),g=n(92411);function v(t,e){return(0,s.A)(t,(0,g.A)(t),e)}var y=v,A=n(83511);function b(t,e){return(0,s.A)(t,(0,A.A)(t),e)}var m=b,w=n(19042),_=n(83973),x=n(9779),S=Object.prototype,k=S.hasOwnProperty;function E(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&k.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var D=E,T=n(90565);function C(t,e){var n=e?(0,T.A)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var O=C,L=/\w*$/;function N(t){var e=new t.constructor(t.source,L.exec(t));return e.lastIndex=t.lastIndex,e}var j=N,I=n(241),$=I.A?I.A.prototype:void 0,R=$?$.valueOf:void 0;function P(t){return R?Object(R.call(t)):{}}var K=P,B=n(1801),M="[object Boolean]",F="[object Date]",G="[object Map]",Y="[object Number]",z="[object RegExp]",U="[object Set]",H="[object String]",V="[object Symbol]",W="[object ArrayBuffer]",X="[object DataView]",q="[object Float32Array]",J="[object Float64Array]",Z="[object Int8Array]",Q="[object Int16Array]",tt="[object Int32Array]",et="[object Uint8Array]",nt="[object Uint8ClampedArray]",rt="[object Uint16Array]",it="[object Uint32Array]";function ot(t,e,n){var r=t.constructor;switch(e){case W:return(0,T.A)(t);case M:case F:return new r(+t);case X:return O(t,n);case q:case J:case Z:case Q:case tt:case et:case nt:case rt:case it:return(0,B.A)(t,n);case G:return new r;case Y:case H:return new r(t);case z:return j(t);case U:return new r;case V:return K(t)}}var st=ot,at=n(18598),ct=n(92049),ut=n(99912),dt=n(53098),lt="[object Map]";function ht(t){return(0,dt.A)(t)&&(0,x.A)(t)==lt}var ft=ht,pt=n(52789),gt=n(64841),vt=gt.A&&gt.A.isMap,yt=vt?(0,pt.A)(vt):ft,At=yt,bt=n(23149),mt="[object Set]";function wt(t){return(0,dt.A)(t)&&(0,x.A)(t)==mt}var _t=wt,xt=gt.A&&gt.A.isSet,St=xt?(0,pt.A)(xt):_t,kt=St,Et=1,Dt=2,Tt=4,Ct="[object Arguments]",Ot="[object Array]",Lt="[object Boolean]",Nt="[object Date]",jt="[object Error]",It="[object Function]",$t="[object GeneratorFunction]",Rt="[object Map]",Pt="[object Number]",Kt="[object Object]",Bt="[object RegExp]",Mt="[object Set]",Ft="[object String]",Gt="[object Symbol]",Yt="[object WeakMap]",zt="[object ArrayBuffer]",Ut="[object DataView]",Ht="[object Float32Array]",Vt="[object Float64Array]",Wt="[object Int8Array]",Xt="[object Int16Array]",qt="[object Int32Array]",Jt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",Qt="[object Uint16Array]",te="[object Uint32Array]",ee={};function ne(t,e,n,s,c,l){var g,v=e&Et,A=e&Dt,b=e&Tt;if(n&&(g=c?n(t,s,c,l):n(t)),void 0!==g)return g;if(!(0,bt.A)(t))return t;var S=(0,ct.A)(t);if(S){if(g=D(t),!v)return(0,p.A)(t,g)}else{var k=(0,x.A)(t),E=k==It||k==$t;if((0,ut.A)(t))return(0,f.A)(t,v);if(k==Kt||k==Ct||E&&!c){if(g=A||E?{}:(0,at.A)(t),!v)return A?m(t,h(g,t)):y(t,u(g,t))}else{if(!ee[k])return c?t:{};g=st(t,k,v)}}l||(l=new r.A);var T=l.get(t);if(T)return T;l.set(t,g),kt(t)?t.forEach((function(r){g.add(ne(r,e,n,r,t,l))})):At(t)&&t.forEach((function(r,i){g.set(i,ne(r,e,n,i,t,l))}));var C=b?A?_.A:w.A:A?d.A:a.A,O=S?void 0:C(t);return(0,i.A)(O||t,(function(r,i){O&&(i=r,r=t[i]),(0,o.A)(g,i,ne(r,e,n,i,t,l))})),g}ee[Ct]=ee[Ot]=ee[zt]=ee[Ut]=ee[Lt]=ee[Nt]=ee[Ht]=ee[Vt]=ee[Wt]=ee[Xt]=ee[qt]=ee[Rt]=ee[Pt]=ee[Kt]=ee[Bt]=ee[Mt]=ee[Ft]=ee[Gt]=ee[Jt]=ee[Zt]=ee[Qt]=ee[te]=!0,ee[jt]=ee[It]=ee[Yt]=!1;var re=ne},6240:function(t,e,n){n.d(e,{A:function(){return c}});var r=n(79841),i=n(38446);function o(t,e){return function(n,r){if(null==n)return n;if(!(0,i.A)(n))return t(n,r);var o=n.length,s=e?o:-1,a=Object(n);while(e?s--:++s<o)if(!1===r(a[s],s,a))break;return n}}var s=o,a=s(r.A),c=a},72559:function(t,e,n){var r=n(61882);function i(t,e,n){var i=-1,o=t.length;while(++i<o){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a===a&&!(0,r.A)(a):n(a,c)))var c=a,u=s}return u}e.A=i},51790:function(t,e,n){var r=n(6240);function i(t,e){var n=[];return(0,r.A)(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}e.A=i},25707:function(t,e){function n(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}e.A=n},13588:function(t,e,n){n.d(e,{A:function(){return l}});var r=n(76912),i=n(241),o=n(52274),s=n(92049),a=i.A?i.A.isConcatSpreadable:void 0;function c(t){return(0,s.A)(t)||(0,o.A)(t)||!!(a&&t&&t[a])}var u=c;function d(t,e,n,i,o){var s=-1,a=t.length;n||(n=u),o||(o=[]);while(++s<a){var c=t[s];e>0&&n(c)?e>1?d(c,e-1,n,i,o):(0,r.A)(o,c):i||(o[o.length]=c)}return o}var l=d},79841:function(t,e,n){var r=n(4574),i=n(27422);function o(t,e){return t&&(0,r.A)(t,e,i.A)}e.A=o},66318:function(t,e,n){var r=n(7819),i=n(30901);function o(t,e){e=(0,r.A)(e,t);var n=0,o=e.length;while(null!=t&&n<o)t=t[(0,i.A)(e[n++])];return n&&n==o?t:void 0}e.A=o},33831:function(t,e,n){var r=n(76912),i=n(92049);function o(t,e,n){var o=e(t);return(0,i.A)(t)?o:(0,r.A)(o,n(t))}e.A=o},60818:function(t,e,n){n.d(e,{A:function(){return u}});var r=n(25707);function i(t){return t!==t}var o=i;function s(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var a=s;function c(t,e,n){return e===e?a(t,e,n):(0,r.A)(t,o,n)}var u=c},23958:function(t,e,n){n.d(e,{A:function(){return Nt}});var r=n(11754),i=n(62062),o=n(63736),s=n(64099),a=1,c=2;function u(t,e,n,r,u,d){var l=n&a,h=t.length,f=e.length;if(h!=f&&!(l&&f>h))return!1;var p=d.get(t),g=d.get(e);if(p&&g)return p==e&&g==t;var v=-1,y=!0,A=n&c?new i.A:void 0;d.set(t,e),d.set(e,t);while(++v<h){var b=t[v],m=e[v];if(r)var w=l?r(m,b,v,e,t,d):r(b,m,v,t,e,d);if(void 0!==w){if(w)continue;y=!1;break}if(A){if(!(0,o.A)(e,(function(t,e){if(!(0,s.A)(A,e)&&(b===t||u(b,t,n,r,d)))return A.push(e)}))){y=!1;break}}else if(b!==m&&!u(b,m,n,r,d)){y=!1;break}}return d["delete"](t),d["delete"](e),y}var d=u,l=n(241),h=n(43988),f=n(66984);function p(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var g=p,v=n(29959),y=1,A=2,b="[object Boolean]",m="[object Date]",w="[object Error]",_="[object Map]",x="[object Number]",S="[object RegExp]",k="[object Set]",E="[object String]",D="[object Symbol]",T="[object ArrayBuffer]",C="[object DataView]",O=l.A?l.A.prototype:void 0,L=O?O.valueOf:void 0;function N(t,e,n,r,i,o,s){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!o(new h.A(t),new h.A(e)));case b:case m:case x:return(0,f.A)(+t,+e);case w:return t.name==e.name&&t.message==e.message;case S:case E:return t==e+"";case _:var a=g;case k:var c=r&y;if(a||(a=v.A),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=A,s.set(t,e);var l=d(a(t),a(e),r,i,o,s);return s["delete"](t),l;case D:if(L)return L.call(t)==L.call(e)}return!1}var j=N,I=n(19042),$=1,R=Object.prototype,P=R.hasOwnProperty;function K(t,e,n,r,i,o){var s=n&$,a=(0,I.A)(t),c=a.length,u=(0,I.A)(e),d=u.length;if(c!=d&&!s)return!1;var l=c;while(l--){var h=a[l];if(!(s?h in e:P.call(e,h)))return!1}var f=o.get(t),p=o.get(e);if(f&&p)return f==e&&p==t;var g=!0;o.set(t,e),o.set(e,t);var v=s;while(++l<c){h=a[l];var y=t[h],A=e[h];if(r)var b=s?r(A,y,h,e,t,o):r(y,A,h,t,e,o);if(!(void 0===b?y===A||i(y,A,n,r,o):b)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var m=t.constructor,w=e.constructor;m==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof w&&w instanceof w||(g=!1)}return o["delete"](t),o["delete"](e),g}var B=K,M=n(9779),F=n(92049),G=n(99912),Y=n(33858),z=1,U="[object Arguments]",H="[object Array]",V="[object Object]",W=Object.prototype,X=W.hasOwnProperty;function q(t,e,n,i,o,s){var a=(0,F.A)(t),c=(0,F.A)(e),u=a?H:(0,M.A)(t),l=c?H:(0,M.A)(e);u=u==U?V:u,l=l==U?V:l;var h=u==V,f=l==V,p=u==l;if(p&&(0,G.A)(t)){if(!(0,G.A)(e))return!1;a=!0,h=!1}if(p&&!h)return s||(s=new r.A),a||(0,Y.A)(t)?d(t,e,n,i,o,s):j(t,e,u,n,i,o,s);if(!(n&z)){var g=h&&X.call(t,"__wrapped__"),v=f&&X.call(e,"__wrapped__");if(g||v){var y=g?t.value():t,A=v?e.value():e;return s||(s=new r.A),o(y,A,n,i,s)}}return!!p&&(s||(s=new r.A),B(t,e,n,i,o,s))}var J=q,Z=n(53098);function Q(t,e,n,r,i){return t===e||(null==t||null==e||!(0,Z.A)(t)&&!(0,Z.A)(e)?t!==t&&e!==e:J(t,e,n,r,Q,i))}var tt=Q,et=1,nt=2;function rt(t,e,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;t=Object(t);while(o--){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}while(++o<s){c=n[o];var u=c[0],d=t[u],l=c[1];if(a&&c[2]){if(void 0===d&&!(u in t))return!1}else{var h=new r.A;if(i)var f=i(d,l,u,t,e,h);if(!(void 0===f?tt(l,d,et|nt,i,h):f))return!1}}return!0}var it=rt,ot=n(23149);function st(t){return t===t&&!(0,ot.A)(t)}var at=st,ct=n(27422);function ut(t){var e=(0,ct.A)(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,at(i)]}return e}var dt=ut;function lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var ht=lt;function ft(t){var e=dt(t);return 1==e.length&&e[0][2]?ht(e[0][0],e[0][1]):function(n){return n===t||it(n,t,e)}}var pt=ft,gt=n(66318);function vt(t,e,n){var r=null==t?void 0:(0,gt.A)(t,e);return void 0===r?n:r}var yt=vt,At=n(39188),bt=n(86586),mt=n(30901),wt=1,_t=2;function xt(t,e){return(0,bt.A)(t)&&at(e)?ht((0,mt.A)(t),e):function(n){var r=yt(n,t);return void 0===r&&r===e?(0,At.A)(n,t):tt(e,r,wt|_t)}}var St=xt,kt=n(29008),Et=n(70805);function Dt(t){return function(e){return(0,gt.A)(e,t)}}var Tt=Dt;function Ct(t){return(0,bt.A)(t)?(0,Et.A)((0,mt.A)(t)):Tt(t)}var Ot=Ct;function Lt(t){return"function"==typeof t?t:null==t?kt.A:"object"==typeof t?(0,F.A)(t)?St(t[0],t[1]):pt(t):Ot(t)}var Nt=Lt},36224:function(t,e){function n(t,e){return t<e}e.A=n},52568:function(t,e,n){var r=n(6240),i=n(38446);function o(t,e){var n=-1,o=(0,i.A)(t)?Array(t.length):[];return(0,r.A)(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}e.A=o},99354:function(t,e,n){n.d(e,{A:function(){return h}});var r=n(66318),i=n(52851),o=n(7819),s=n(25353),a=n(23149),c=n(30901);function u(t,e,n,r){if(!(0,a.A)(t))return t;e=(0,o.A)(e,t);var u=-1,d=e.length,l=d-1,h=t;while(null!=h&&++u<d){var f=(0,c.A)(e[u]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(u!=l){var g=h[f];p=r?r(g,f,h):void 0,void 0===p&&(p=(0,a.A)(g)?g:(0,s.A)(e[u+1])?[]:{})}(0,i.A)(h,f,p),h=h[f]}return t}var d=u;function l(t,e,n){var i=-1,s=e.length,a={};while(++i<s){var c=e[i],u=(0,r.A)(t,c);n(u,c)&&d(a,(0,o.A)(c,t),u)}return a}var h=l},70805:function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}e.A=n},99902:function(t,e,n){n.d(e,{A:function(){return g}});var r=n(62062),i=n(83149),o=n(87809),s=n(64099),a=n(39857),c=n(42302),u=n(29959),d=1/0,l=a.A&&1/(0,u.A)(new a.A([,-0]))[1]==d?function(t){return new a.A(t)}:c.A,h=l,f=200;function p(t,e,n){var a=-1,c=i.A,d=t.length,l=!0,p=[],g=p;if(n)l=!1,c=o.A;else if(d>=f){var v=e?null:h(t);if(v)return(0,u.A)(v);l=!1,c=s.A,g=new r.A}else g=e?[]:p;t:while(++a<d){var y=t[a],A=e?e(y):y;if(y=n||0!==y?y:0,l&&A===A){var b=g.length;while(b--)if(g[b]===A)continue t;e&&g.push(A),p.push(y)}else c(g,A,n)||(g!==p&&g.push(A),p.push(y))}return p}var g=p},64099:function(t,e){function n(t,e){return t.has(e)}e.A=n},99922:function(t,e,n){var r=n(29008);function i(t){return"function"==typeof t?t:r.A}e.A=i},7819:function(t,e,n){n.d(e,{A:function(){return g}});var r=n(92049),i=n(86586),o=n(46632),s=500;function a(t){var e=(0,o.A)(t,(function(t){return n.size===s&&n.clear(),t})),n=e.cache;return e}var c=a,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,l=c((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,(function(t,n,r,i){e.push(r?i.replace(d,"$1"):n||t)})),e})),h=l,f=n(28894);function p(t,e){return(0,r.A)(t)?t:(0,i.A)(t,e)?[t]:h((0,f.A)(t))}var g=p},19042:function(t,e,n){var r=n(33831),i=n(92411),o=n(27422);function s(t){return(0,r.A)(t,o.A,i.A)}e.A=s},83973:function(t,e,n){var r=n(33831),i=n(83511),o=n(55615);function s(t){return(0,r.A)(t,o.A,i.A)}e.A=s},92411:function(t,e,n){var r=n(2634),i=n(13153),o=Object.prototype,s=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),(0,r.A)(a(t),(function(e){return s.call(t,e)})))}:i.A;e.A=c},83511:function(t,e,n){var r=n(76912),i=n(15647),o=n(92411),s=n(13153),a=Object.getOwnPropertySymbols,c=a?function(t){var e=[];while(t)(0,r.A)(e,(0,o.A)(t)),t=(0,i.A)(t);return e}:s.A;e.A=c},85054:function(t,e,n){var r=n(7819),i=n(52274),o=n(92049),s=n(25353),a=n(5254),c