UNPKG

@nodefony/monitoring-bundle

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